feat(agents): HTTP CRUD for agent_skill (SR-7, #875) #890

Merged
charles merged 2 commits from feat/875-agent-skill-crud into main 2026-05-05 22:55:33 +00:00
Collaborator

Implements SR-7 (#875): operator-auth CRUD for agent_skill at /agents/:agentType/skills (type scope) and /agents/:agentType/:instanceId/skills (instance scope).

  • Instance GET returns { skills, inherits_from_type }.
  • Instance POST adds pool_session_warning + pool_sessions when active pooled SDK sessions exist for that agent type.
  • Adds getAgentByRowId, listActiveSessionsForAgentType, and agent-skill-routes.test.ts.

Fork branch off latest main after SR-6 merge.

Implements SR-7 (#875): operator-auth CRUD for `agent_skill` at `/agents/:agentType/skills` (type scope) and `/agents/:agentType/:instanceId/skills` (instance scope). - Instance GET returns `{ skills, inherits_from_type }`. - Instance POST adds `pool_session_warning` + `pool_sessions` when active pooled SDK sessions exist for that agent type. - Adds `getAgentByRowId`, `listActiveSessionsForAgentType`, and `agent-skill-routes.test.ts`. Fork branch off latest `main` after SR-6 merge.
feat(agents): HTTP CRUD for agent_skill rows (SR-7, #875)
All checks were successful
qa / dockerfile (pull_request) Successful in 7s
qa / sql-layer-check (pull_request) Successful in 12s
qa / db-schema (pull_request) Successful in 14s
qa / qa-1 (pull_request) Successful in 51s
qa / qa (pull_request) Successful in 0s
6f4cc78d72
Expose type- and instance-scoped skill CRUD under /agents/:type/skills and
/agents/:type/:instanceId/skills with operator auth, pool session warning
on instance POST, and unit tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
fix(agents): address SR-7 review nits
All checks were successful
qa / dockerfile (pull_request) Successful in 8s
qa / sql-layer-check (pull_request) Successful in 9s
qa / db-schema (pull_request) Successful in 36s
qa / qa-1 (pull_request) Successful in 50s
qa / qa (pull_request) Successful in 0s
2512005672
- Use getAgentTypeSkill() point-lookup instead of list+find after type upsert
- Drop dead try/catch in handleAgentInstanceSkillsPost (resolveInstance already guards type mismatch)
- Remove unused getSessionMaxAgeMs export
- Fix misleading route-registration comment in main.ts (no segment collision risk)

Co-authored-by: Cursor <cursoragent@cursor.com>
charles deleted branch feat/875-agent-skill-crud 2026-05-05 22:55:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/claude-hooks!890
No description provided.