Skip to content

feat: add external agent access via PAT REST API and CLI - #185

Merged
VLSMB merged 8 commits into
mainfrom
feat/ext-agents
Nov 13, 2026
Merged

VLSMB merged 8 commits into
mainfrom
feat/ext-agents

Conversation

@VLSMB

@VLSMB VLSMB commented Nov 10, 2026

Copy link
Copy Markdown
Member

Close #55

  • Add user_pat table, PAT hash storage, create/list/revoke APIs, and access:pat:manage permission.
  • Add PAT management page under /settings/tokens.
  • Add /agent/health, /agent/tools, and /agent/tools/{name} with a dedicated PAT interceptor, isolated from /api/** JWT auth.
  • Add @RestTool + DataAgentTool.restToolMethods() and AgentToolInvoker to expose selected Tool Beans directly.
  • Add data-agent-cli with auth login/status/logout, tools list/describe/call, skill, config storage, session ID, trace propagation, and JSON output.
  • Add data-agent-skill/SKILL.md so external agents can copy the skill folder into their own skill directory.
  • Add frontend PAT management, CLI tests, ESLint/Prettier config, and CLI CI workflow.
  • Add external agent documentation and update the project README.

VLSMB added 6 commits November 9, 2026 21:57
- add user_pat schema and migration
- add access:pat:manage permission
- add PAT create/list/revoke APIs
- add frontend PAT management page
- add PAT authentication and /agent auth interceptor
- add @RestTool exposure for tool methods
- add agent tool discovery and invocation endpoints
- add PAT health endpoint for CLI validation
- move AgentToolController to the agent package
- read X-Session-Id for tool calls
- default to a stable per-user session when the header is absent
- add PAT auth, config storage, and health checks
- add tool discovery and JSON invocation commands
- add skill guide, session and trace headers, JSON output
- add lint, tests, and CLI CI workflow
@github-actions

Copy link
Copy Markdown

Thank you for your contribution! We will review your request as soon as possible. Please review the code yourself using ponytail https://github.com/DietrichGebert/ponytail.

@VLSMB
VLSMB merged commit 8eb0e87 into main Nov 13, 2026
5 checks passed
@VLSMB
VLSMB deleted the feat/ext-agents branch November 15, 2026 07:41
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.

支持通过 Claude Code CLI 使用 DataAgent:REST 工具端点 + 个人访问令牌

1 participant