- cloud: resolves userId from the authenticated session and builds a [userOrgScope, orgScope] stack via createScopedExecutor(userId, orgId, orgName). userId threaded through execution-stack, mcp-session, and MCP dispatch init. - cloud env refactor: deletes the lazy Proxy apps/cloud/src/env.ts in favor of cloudflare:workers env imported at call sites; adds env-augment.d.ts to type secrets not present in generated wrangler types. - cloud/server.ts: env-guarded OTEL wiring (skips instrument() when AXIOM_TOKEN absent); captures rawFetch before instrument() mutates it so dev requests still land on the Hono app. - cloud/services/db.ts: prefers DATABASE_URL over the hyperdrive proxy so local dev works without the tunnel. - vite.config.ts: devCrashGuard plugin that prints uncaught Worker errors with a stable exit. - hosts/mcp: optional debug flag surfaces verbose session logging, wired up from cloud mcp-session. - local/examples/marketing: migrated to scopes: [scope].
Showing the changes to apps/local/src/server/executor.ts (1 of 25 files). Show all
Unified · Split
| @@ -154,7 +154,7 @@ const createLocalExecutorLayer = () => { · 153 unmodified lines | |||
| 154 | }); | 154 | }); |
| 155 | 155 | ||
| 156 | const executor = yield* createExecutor({ | 156 | const executor = yield* createExecutor({ |
| 157 | scope, | 157 | scopes: [scope], |
| 158 | adapter, | 158 | adapter, |
| 159 | blobs, | 159 | blobs, |
| 160 | plugins, | 160 | plugins, |