tpmjs/packages
Ajax Davis 7d9321d9c6 feat: allow public access to agents and collections with caller credentials
Users can now access other users' PUBLIC agents and collections by providing
their own credentials in the request:

For agents:
- Provide `providerApiKey` for LLM access
- Provide `env` object with tool environment variables
- Owner's stored credentials are never shared

For collections (MCP):
- Provide `env` in params for tool environment variables
- Owner's stored credentials are never shared

Returns clear errors listing missing required env vars if not provided.

Files changed:
- packages/types/src/agent.ts: Add providerApiKey to SendMessageSchema
- apps/web/src/lib/agents/env-helpers.ts: New helper functions for env vars
- apps/web/src/lib/agents/build-tools.ts: Accept callerEnvVars parameter
- apps/web/src/app/api/agents/[id]/conversation/[conversationId]/route.ts:
  Allow public agent access with caller credentials
- apps/web/src/lib/mcp/handlers.ts: Accept callerEnvVars, validate requirements
- apps/web/src/app/api/mcp/[username]/[slug]/[transport]/route.ts:
  Allow public collection access, pass isOwner flag
- apps/web/src/app/docs/platform-guide/page.tsx: Update access model docs
2026-01-16 14:59:00 +10:00
..
bridge feat: complete MCP Bridge implementation 2026-01-13 00:59:34 +10:00
config feat(ui): add comprehensive design system with 14 new components 2026-01-16 05:51:12 +10:00
db feat(collections): add AI-generated use cases 2026-01-16 02:33:57 +10:00
env chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
mcp-client feat: complete MCP Bridge implementation 2026-01-13 00:59:34 +10:00
mocks chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
npm-client chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
package-executor fix: pass explicit version to executor to avoid Deno cache issues 2026-01-15 00:59:05 +10:00
storybook fix: enable Biome CSS tailwindDirectives for @apply parsing 2026-01-09 23:35:53 +10:00
test chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
tool-ideas chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
tools fix(create-basic-tools): fix clack select types 2026-01-16 02:46:07 +10:00
types feat: allow public access to agents and collections with caller credentials 2026-01-16 14:59:00 +10:00
ui fix(ui): use tsc for declarations to avoid memory issues in CI 2026-01-16 08:21:41 +10:00
utils chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00