Repository navigation
refactor(tools)!: delete agent-directory package; agent-directory tools use stock routes (CL-8466) - #891
Merged
Conversation
… routes (CL-8466)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/agent-directory— its workbench-specific hub mount(
/api/workflow-agent-directory/*,/api/workflow-chat/participants/*)was already gone from
apps/hub/src/server.ts(last consumer,apps/web/src/agents-directory.ts, was removed in feat(web): Workflows lists only workflows; Agents is a roster with a Chat action (CL-8455) #890), sotools/agent-directory's client was calling dead routes and 404ing atruntime.
tools/agent-directory(@corbits/agent-directory-tools,bundled into Myra) to reach only stock Interchange routes with the
workflow run's own bearer:
list_agentsreadsGET /api/tenants/:t/assets?kind=workflow,filtering to the
agent-<slug>-sourceconventionapps/web/src/agent-deploy.tsalready uses for hand-authored agents, and derives each one's mail
address from its slug and the tenant's domain.
create_agentrenders and pushes a single-step, mail-triggeredworkflow definition (git smart-HTTP, mirrored server-side from
apps/web/src/git-push.ts), resolves the tenant's catalog offerings,and deploys through the stock
POST /workflows/deployments— thesame pipeline the web app's create-agent panel runs.
message_agentreplaces the old invite/mint-dm pair with a plainsend through the stock mailbox
(
POST /api/tenants/:t/mailbox/me/inbox/send).@corbits/agent-directorydependency fromapps/hub,apps/web, andtools/access's package.json (none of themimport it), and deletes the
e2e/agent-directorysuites that exercisedthe deleted package's own routes.
Verified
bun run check(typecheck, lint, fmt, full test suite across the repo)cd agents/myra && bun run build— the bundle still builds with the newfactories
bun test tools/agent-directory— 20 passNot verified
create_agent's git-push-then-deploy pathagainst a real hub (unit tests stub the git push; the wire-level push
logic itself mirrors
apps/web/src/git-push.ts, which also has notests in this repo).