tpmjs/apps/web
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
..
public fix: move tools-export.json to public/ for Vercel compatibility 2026-01-01 17:46:36 +10:00
scripts docs: update all URL references to new username/slug format 2026-01-13 23:14:36 +10:00
src feat: allow public access to agents and collections with caller credentials 2026-01-16 14:59:00 +10:00
.gitignore fix: add npmPublishedAt to API response and add null safety for dates 2025-12-16 12:49:53 +10:00
eslint.config.mjs fix(lint): configure Biome to properly ignore build directories 2025-11-26 22:49:45 +10:00
next-env.d.ts feat: add comprehensive endpoint health monitoring 2026-01-10 03:08:11 +10:00
next.config.ts feat: add /tool-ideas page with 10K AI-generated tools 2026-01-01 17:13:46 +10:00
package.json feat(web): implement SWR for instant data fetching 2026-01-16 11:42:55 +10:00
postcss.config.js feat: add complete monorepo structure and all packages 2025-11-25 21:59:40 +10:00
RATE_LIMITING.md feat: add HN launch readiness features 2025-12-14 11:56:42 +10:00
RATE_LIMITING_SUMMARY.md feat: add HN launch readiness features 2025-12-14 11:56:42 +10:00
tailwind.config.ts feat(ui): add comprehensive design system with 14 new components 2026-01-16 05:51:12 +10:00
tsconfig.json feat(sync): implement Phase 3 Sync Workers with Vercel Cron integration 2025-11-28 02:57:54 +10:00
vercel.json fix: use pnpm -w flag for workspace root build command 2026-01-14 04:35:24 +10:00
vitest.config.ts fix: resolve GitHub Actions workflow failures 2026-01-14 05:16:26 +10:00
vitest.integration.config.ts feat: add comprehensive integration tests for GitHub Actions 2026-01-14 00:50:55 +10:00