Skip to content

refactor(tools)!: delete agent-directory package; agent-directory tools use stock routes (CL-8466) - #891

Merged
TheGreatAxios merged 4 commits into
mainfrom
cl-8466-delete-agent-directory
Sep 18, 2026
Merged

TheGreatAxios merged 4 commits into
mainfrom
cl-8466-delete-agent-directory

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Deletes 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), so
    tools/agent-directory's client was calling dead routes and 404ing at
    runtime.
  • Rewrites tools/agent-directory (@corbits/agent-directory-tools,
    bundled into Myra) to reach only stock Interchange routes with the
    workflow run's own bearer:
    • list_agents reads GET /api/tenants/:t/assets?kind=workflow,
      filtering to the agent-<slug>-source convention apps/web/src/agent-deploy.ts
      already uses for hand-authored agents, and derives each one's mail
      address from its slug and the tenant's domain.
    • create_agent renders and pushes a single-step, mail-triggered
      workflow 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 — the
      same pipeline the web app's create-agent panel runs.
    • message_agent replaces the old invite/mint-dm pair with a plain
      send through the stock mailbox
      (POST /api/tenants/:t/mailbox/me/inbox/send).
  • Removes the now-dead @corbits/agent-directory dependency from
    apps/hub, apps/web, and tools/access's package.json (none of them
    import it), and deletes the e2e/agent-directory suites that exercised
    the 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 new
    factories
  • bun test tools/agent-directory — 20 pass

Not verified

  • No live hub/sidecar run of create_agent's git-push-then-deploy path
    against 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 no
    tests in this repo).

@linear-code

linear-code Bot commented Sep 18, 2026

Copy link
Copy Markdown

CL-8466

@TheGreatAxios
TheGreatAxios merged commit 6465277 into main Sep 18, 2026
4 checks passed
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