Skip to content

feat: policy and eino subpackages#8

Merged
inhuman merged 1 commit into
mainfrom
009-policy-eino-subpackages
May 11, 2026
Merged

feat: policy and eino subpackages#8
inhuman merged 1 commit into
mainfrom
009-policy-eino-subpackages

Conversation

@inhuman
Copy link
Copy Markdown
Owner

@inhuman inhuman commented May 11, 2026

Summary

  • policy/ — zero-dep BeforeCallHook/AfterCallHook builders: DenyDestructive, RequireRoles, RateLimit (stdlib token bucket), AuditLog
  • eino/ — separate go.mod adapter exposing MCP tools as Cloudwego/eino InvokableTool; keeps cloudwego/eino out of the core dependency graph

Test plan

  • go test -race ./policy/... — 11 unit tests pass
  • go test -race ./eino/... — 5 unit tests pass (in-process MCP server via mcp.NewInMemoryTransports)
  • golangci-lint run ./... on both modules — 0 issues
  • CI passes

- policy/: DenyDestructive, RequireRoles, RateLimit (stdlib token bucket), AuditLog hook builders
- eino/: separate go.mod adapter wrapping MCP tools as eino InvokableTool
@inhuman inhuman merged commit f9fbb7c into main May 11, 2026
3 checks passed
@inhuman inhuman deleted the 009-policy-eino-subpackages branch May 11, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant