Skip to content

Export Interchange defineTool memory tools (CL-5354) - #28

Merged
TheGreatAxios merged 5 commits into
mainfrom
cl-5354-export-interchange-definetool-memory-tools-from
Aug 5, 2026
Merged

Export Interchange defineTool memory tools (CL-5354)#28
TheGreatAxios merged 5 commits into
mainfrom
cl-5354-export-interchange-definetool-memory-tools-from

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

Export installable Interchange defineTool factories from @corbits/memory so workflow agents can call mounted hub memory routes over HTTP.

  • memory_add / memory_search / memory_list under @corbits/memory/tools
  • Thin HTTP clients only — credentials from install env (memoryBaseUrl, memoryTenantId, memoryAuthToken); no plane inject, no model-supplied principal/tenant
  • Package metadata: exports["./tools"] + interchange.tools
  • Docs updated for mount + workflow tool install path

Closes CL-5354.

Test plan

  • bun run typecheck
  • bun test ./src (304 pass, including new src/tools/tools.test.ts)
  • Install tools on a workflow against a hub with tenant-mounted memory routes; verify add/search/list with Bearer auth

Workflow agents install @corbits/memory/tools with hub credentials
and call the mounted tenant memory routes. Tools never take
model-supplied identity and do not touch the in-process plane.
README and product docs now lead with mount plus the shipped
@corbits/memory/tools factories instead of OpenAPI-MCP only.
Share AddRequest/SearchRequest (and limit bounds) between routes and
defineTool parsers without importing the plane. Collapse tool factories
through defineMemoryHttpTool; harden the HTTP client (multi-slash base,
empty/invalid JSON); strip adversarial identity args and coerce LLM
string limits. Expand tools tests accordingly.
Arktype keeps undeclared nested keys; rebuild share field-by-field
so model junk under share never rides the wire. Add regression
tests for nested share and search/list identity strip.
Derive MemoryAddBody/MemorySearchBody from arktype infer; share ListQuery
and parseListLimitString with the list route; clip long HTTP error bodies;
document host install checklist; fix search wire table and find→search
grant-tag action in IMPLEMENTATION and AUTHZ docs.
@TheGreatAxios
TheGreatAxios merged commit 0001fbf into main Aug 5, 2026
1 check passed
@TheGreatAxios
TheGreatAxios deleted the cl-5354-export-interchange-definetool-memory-tools-from branch August 5, 2026 15:31
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