flujo-ai 3.27.0 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +410 -329
- package/.next/app-path-routes-manifest.json +32 -20
- package/.next/build-manifest.json +5 -5
- package/.next/react-loadable-manifest.json +17 -4
- package/.next/routes-manifest.json +31 -0
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +3 -3
- package/.next/server/app/api/approvals/[id]/route.js +1 -1
- package/.next/server/app/api/approvals/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/approvals/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/approvals/route.js +2 -2
- package/.next/server/app/api/approvals/route.js.nft.json +1 -1
- package/.next/server/app/api/approvals/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/backup/route.js +1 -1
- package/.next/server/app/api/backup/route.js.nft.json +1 -1
- package/.next/server/app/api/backup/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/browse/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/bugs/enhance/route.js +3 -3
- package/.next/server/app/api/bugs/enhance/route.js.nft.json +1 -1
- package/.next/server/app/api/bugs/enhance/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/cwd/route.js +1 -1
- package/.next/server/app/api/cwd/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/encryption/secure/route.js +1 -1
- package/.next/server/app/api/encryption/secure/route.js.nft.json +1 -1
- package/.next/server/app/api/encryption/secure/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/env/route.js +2 -2
- package/.next/server/app/api/env/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/flow/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/flow/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/flow/[id]/versions/[versionId]/route.js +1 -0
- package/.next/server/app/api/flow/[id]/versions/[versionId]/route.js.nft.json +1 -0
- package/.next/server/app/api/flow/[id]/versions/[versionId]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/flow/[id]/versions/route.js +1 -0
- package/.next/server/app/api/flow/[id]/versions/route.js.nft.json +1 -0
- package/.next/server/app/api/flow/[id]/versions/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/flow/compile/route.js +1 -1
- package/.next/server/app/api/flow/compile/route.js.nft.json +1 -1
- package/.next/server/app/api/flow/compile/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/flow/generate/route.js +1 -1
- package/.next/server/app/api/flow/generate/route.js.nft.json +1 -1
- package/.next/server/app/api/flow/generate/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/flow/improve/route.js +1 -1
- package/.next/server/app/api/flow/improve/route.js.nft.json +1 -1
- package/.next/server/app/api/flow/improve/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/flow/prompt-renderer/route.js +2 -2
- package/.next/server/app/api/flow/prompt-renderer/route.js.nft.json +1 -1
- package/.next/server/app/api/flow/prompt-renderer/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/flow/quick-chat/route.js +1 -1
- package/.next/server/app/api/flow/quick-chat/route.js.nft.json +1 -1
- package/.next/server/app/api/flow/quick-chat/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/flow/repair/route.js +1 -1
- package/.next/server/app/api/flow/repair/route.js.nft.json +1 -1
- package/.next/server/app/api/flow/repair/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/flow/route.js.nft.json +1 -1
- package/.next/server/app/api/flow/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/route.js +1 -1
- package/.next/server/app/api/git/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/init/route.js +1 -1
- package/.next/server/app/api/init/route.js.nft.json +1 -1
- package/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/local-models/capability/route.js +2 -1
- package/.next/server/app/api/local-models/capability/route.js.nft.json +1 -1
- package/.next/server/app/api/local-models/capability/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/local-models/pull/route.js +2 -1
- package/.next/server/app/api/local-models/pull/route.js.nft.json +1 -1
- package/.next/server/app/api/local-models/pull/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/local-models/suggest/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/app-sandbox/route.js +1 -0
- package/.next/server/app/api/mcp/app-sandbox/route.js.nft.json +1 -0
- package/.next/server/app/api/mcp/app-sandbox/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/mcp/cancel/route.js +2 -2
- package/.next/server/app/api/mcp/cancel/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/cancel/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/oauth-capability/route.js +1 -0
- package/.next/server/app/api/mcp/oauth-capability/route.js.nft.json +1 -0
- package/.next/server/app/api/mcp/oauth-capability/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/mcp/servers/[name]/prompts/get/route.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/prompts/get/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/servers/[name]/prompts/get/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/prompts/route.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/prompts/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/servers/[name]/prompts/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/resources/read/route.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/resources/read/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/servers/[name]/resources/read/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/resources/route.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/resources/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/servers/[name]/resources/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/route.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/servers/[name]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/status/route.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/status/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/servers/[name]/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/tools/[toolName]/route.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/tools/[toolName]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/servers/[name]/tools/[toolName]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/tools/route.js +1 -1
- package/.next/server/app/api/mcp/servers/[name]/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/servers/[name]/tools/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/servers/route.js +1 -1
- package/.next/server/app/api/mcp/servers/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/servers/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/test-connection/route.js +1 -1
- package/.next/server/app/api/mcp/test-connection/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/test-connection/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/test-connection/stream/route.js +1 -1
- package/.next/server/app/api/mcp/test-connection/stream/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/test-connection/stream/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp-registry/route.js +2 -2
- package/.next/server/app/api/mcp-registry/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp-registry/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp-registry/spotlight/route.js +1 -1
- package/.next/server/app/api/mcp-registry/spotlight/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/model/[id]/route.js +1 -1
- package/.next/server/app/api/model/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/model/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/model/provider/route.js +2 -2
- package/.next/server/app/api/model/provider/route.js.nft.json +1 -1
- package/.next/server/app/api/model/provider/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/model/route.js +1 -1
- package/.next/server/app/api/model/route.js.nft.json +1 -1
- package/.next/server/app/api/model/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/model/test/route.js +2 -2
- package/.next/server/app/api/model/test/route.js.nft.json +1 -1
- package/.next/server/app/api/model/test/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/oauth/callback/route.js +2 -2
- package/.next/server/app/api/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/oauth/callback/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/oauth/initiate/route.js +2 -2
- package/.next/server/app/api/oauth/initiate/route.js.nft.json +1 -1
- package/.next/server/app/api/oauth/initiate/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/oauth/reset/route.js +2 -2
- package/.next/server/app/api/oauth/reset/route.js.nft.json +1 -1
- package/.next/server/app/api/oauth/reset/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/packages/build/route.js +1 -1
- package/.next/server/app/api/packages/build/route.js.nft.json +1 -1
- package/.next/server/app/api/packages/build/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/packages/derive-secrets/route.js +1 -1
- package/.next/server/app/api/packages/derive-secrets/route.js.nft.json +1 -1
- package/.next/server/app/api/packages/derive-secrets/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/packages/install/route.js +1 -1
- package/.next/server/app/api/packages/install/route.js.nft.json +1 -1
- package/.next/server/app/api/packages/install/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/packages/install/status/route.js +1 -1
- package/.next/server/app/api/packages/install/status/route.js.nft.json +1 -1
- package/.next/server/app/api/packages/install/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/packages/installed/route.js +1 -0
- package/.next/server/app/api/packages/installed/route.js.nft.json +1 -0
- package/.next/server/app/api/packages/installed/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/packages/resolve/route.js +1 -1
- package/.next/server/app/api/packages/resolve/route.js.nft.json +1 -1
- package/.next/server/app/api/packages/resolve/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/packages/scan-targets/route.js +1 -0
- package/.next/server/app/api/packages/scan-targets/route.js.nft.json +1 -0
- package/.next/server/app/api/packages/scan-targets/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/packages/uninstall/route.js +1 -0
- package/.next/server/app/api/packages/uninstall/route.js.nft.json +1 -0
- package/.next/server/app/api/packages/uninstall/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/planned-executions/[id]/route.js +2 -2
- package/.next/server/app/api/planned-executions/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/planned-executions/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/planned-executions/[id]/run/route.js +2 -2
- package/.next/server/app/api/planned-executions/[id]/run/route.js.nft.json +1 -1
- package/.next/server/app/api/planned-executions/[id]/run/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/planned-executions/[id]/runs/route.js +2 -2
- package/.next/server/app/api/planned-executions/[id]/runs/route.js.nft.json +1 -1
- package/.next/server/app/api/planned-executions/[id]/runs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/planned-executions/preview-schedule/route.js +1 -1
- package/.next/server/app/api/planned-executions/preview-schedule/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/planned-executions/reconcile/route.js +1 -1
- package/.next/server/app/api/planned-executions/reconcile/route.js.nft.json +1 -1
- package/.next/server/app/api/planned-executions/reconcile/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/planned-executions/route.js +1 -1
- package/.next/server/app/api/planned-executions/route.js.nft.json +1 -1
- package/.next/server/app/api/planned-executions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/registry/auth/resend/route.js +1 -1
- package/.next/server/app/api/registry/auth/resend/route.js.nft.json +1 -1
- package/.next/server/app/api/registry/auth/resend/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/registry/auth/reset/route.js +1 -0
- package/.next/server/app/api/registry/auth/reset/route.js.nft.json +1 -0
- package/.next/server/app/api/registry/auth/reset/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/registry/auth/route.js +1 -1
- package/.next/server/app/api/registry/auth/route.js.nft.json +1 -1
- package/.next/server/app/api/registry/auth/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/registry/oauth/callback/route.js +1 -0
- package/.next/server/app/api/registry/oauth/callback/route.js.nft.json +1 -0
- package/.next/server/app/api/registry/oauth/callback/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/registry/oauth/initiate/route.js +1 -0
- package/.next/server/app/api/registry/oauth/initiate/route.js.nft.json +1 -0
- package/.next/server/app/api/registry/oauth/initiate/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/registry/publish/route.js +1 -1
- package/.next/server/app/api/registry/publish/route.js.nft.json +1 -1
- package/.next/server/app/api/registry/publish/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/registry/settings/route.js +1 -1
- package/.next/server/app/api/registry/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/registry/settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/restore/route.js +1 -1
- package/.next/server/app/api/restore/route.js.nft.json +1 -1
- package/.next/server/app/api/restore/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/runs/active/route.js +2 -2
- package/.next/server/app/api/runs/active/route.js.nft.json +1 -1
- package/.next/server/app/api/runs/active/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/storage/route.js +1 -1
- package/.next/server/app/api/storage/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/update/route.js +1 -1
- package/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/waves/route.js +1 -1
- package/.next/server/app/api/waves/route.js.nft.json +1 -1
- package/.next/server/app/api/waves/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/webhooks/[id]/route.js +1 -1
- package/.next/server/app/api/webhooks/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/webhooks/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/chat/page.js +8 -8
- package/.next/server/app/chat/page.js.nft.json +1 -1
- package/.next/server/app/chat/page_client-reference-manifest.js +1 -1
- package/.next/server/app/chat.html +1 -1
- package/.next/server/app/chat.rsc +4 -4
- package/.next/server/app/docs/page.js +7 -6
- package/.next/server/app/docs/page.js.nft.json +1 -1
- package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/docs.html +1 -1
- package/.next/server/app/docs.rsc +4 -4
- package/.next/server/app/executions/page.js +2 -3
- package/.next/server/app/executions/page.js.nft.json +1 -1
- package/.next/server/app/executions/page_client-reference-manifest.js +1 -1
- package/.next/server/app/executions.html +1 -1
- package/.next/server/app/executions.rsc +4 -4
- package/.next/server/app/flows/page.js +3 -3
- package/.next/server/app/flows/page.js.nft.json +1 -1
- package/.next/server/app/flows/page_client-reference-manifest.js +1 -1
- package/.next/server/app/flows.html +1 -1
- package/.next/server/app/flows.rsc +4 -4
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +3 -3
- package/.next/server/app/mcp/page.js +14 -14
- package/.next/server/app/mcp/page.js.nft.json +1 -1
- package/.next/server/app/mcp/page_client-reference-manifest.js +1 -1
- package/.next/server/app/mcp-flows/route.js +1 -1
- package/.next/server/app/mcp-flows/route.js.nft.json +1 -1
- package/.next/server/app/mcp-flows/route_client-reference-manifest.js +1 -1
- package/.next/server/app/mcp-proxy/[server]/route.js +1 -1
- package/.next/server/app/mcp-proxy/[server]/route.js.nft.json +1 -1
- package/.next/server/app/mcp-proxy/[server]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/mcp.html +1 -1
- package/.next/server/app/mcp.rsc +4 -4
- package/.next/server/app/models/page.js +2 -2
- package/.next/server/app/models/page.js.nft.json +1 -1
- package/.next/server/app/models/page_client-reference-manifest.js +1 -1
- package/.next/server/app/packages/page.js +2 -3
- package/.next/server/app/packages/page.js.nft.json +1 -1
- package/.next/server/app/packages/page_client-reference-manifest.js +1 -1
- package/.next/server/app/packages.html +1 -1
- package/.next/server/app/packages.rsc +4 -4
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/page.js +2 -3
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings.html +1 -1
- package/.next/server/app/settings.rsc +4 -4
- package/.next/server/app/v1/chat/completions/route.js +1 -1
- package/.next/server/app/v1/chat/completions/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/completions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/breakpoints/route.js +2 -2
- package/.next/server/app/v1/chat/conversations/[conversationId]/breakpoints/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/breakpoints/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/cancel/route.js +2 -2
- package/.next/server/app/v1/chat/conversations/[conversationId]/cancel/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/cancel/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/debug/continue/route.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/debug/continue/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/debug/continue/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/debug/step/route.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/debug/step/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/debug/step/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/edit-state/route.js +2 -2
- package/.next/server/app/v1/chat/conversations/[conversationId]/edit-state/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/edit-state/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/events/route.js +4 -4
- package/.next/server/app/v1/chat/conversations/[conversationId]/events/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/inject/route.js +2 -0
- package/.next/server/app/v1/chat/conversations/[conversationId]/inject/route.js.nft.json +1 -0
- package/.next/server/app/v1/chat/conversations/[conversationId]/inject/route_client-reference-manifest.js +1 -0
- package/.next/server/app/v1/chat/conversations/[conversationId]/resources/route.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/resources/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/respond/route.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/respond/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/respond/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/route.js +2 -2
- package/.next/server/app/v1/chat/conversations/[conversationId]/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/conversations/[conversationId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/conversations/route.js +2 -2
- package/.next/server/app/v1/chat/conversations/route.js.nft.json +1 -1
- package/.next/server/app/v1/chat/conversations/route_client-reference-manifest.js +1 -1
- package/.next/server/app/v1/chat/events/route.js +11 -0
- package/.next/server/app/v1/chat/events/route.js.nft.json +1 -0
- package/.next/server/app/v1/chat/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/v1/models/route.js +2 -2
- package/.next/server/app/v1/models/route.js.nft.json +1 -1
- package/.next/server/app/v1/models/route_client-reference-manifest.js +1 -1
- package/.next/server/app/waves/page.js +3 -3
- package/.next/server/app/waves/page.js.nft.json +1 -1
- package/.next/server/app/waves/page_client-reference-manifest.js +1 -1
- package/.next/server/app/waves.html +1 -1
- package/.next/server/app/waves.rsc +4 -4
- package/.next/server/app-paths-manifest.json +32 -20
- package/.next/server/chunks/1083.js +1 -1
- package/.next/server/chunks/1114.js +1 -1
- package/.next/server/chunks/1226.js +1 -1
- package/.next/server/chunks/1314.js +1 -1
- package/.next/server/chunks/{6529.js → 1578.js} +2 -2
- package/.next/server/chunks/1615.js +1 -0
- package/.next/server/chunks/1634.js +1 -0
- package/.next/server/chunks/166.js +5 -5
- package/.next/server/chunks/1805.js +1 -1
- package/.next/server/chunks/1819.js +1 -1
- package/.next/server/chunks/2180.js +1 -0
- package/.next/server/chunks/227.js +2 -2
- package/.next/server/chunks/2368.js +2 -0
- package/.next/server/chunks/2859.js +1 -1
- package/.next/server/chunks/{7674.js → 3030.js} +1 -1
- package/.next/server/chunks/3101.js +1 -0
- package/.next/server/chunks/3128.js +62 -0
- package/.next/server/chunks/3273.js +1 -0
- package/.next/server/chunks/3570.js +372 -0
- package/.next/server/chunks/3629.js +1 -1
- package/.next/server/chunks/38.js +2 -2
- package/.next/server/chunks/3951.js +151 -0
- package/.next/server/chunks/3984.js +4 -4
- package/.next/server/chunks/4239.js +1 -1
- package/.next/server/chunks/4265.js +1 -1
- package/.next/server/chunks/4366.js +2 -0
- package/.next/server/chunks/4426.js +2 -2
- package/.next/server/chunks/4551.js +6 -0
- package/.next/server/chunks/4663.js +1 -0
- package/.next/server/chunks/4671.js +1 -1
- package/.next/server/chunks/4681.js +1 -1
- package/.next/server/chunks/4685.js +1 -0
- package/.next/server/chunks/4771.js +2 -2
- package/.next/server/chunks/4961.js +2 -0
- package/.next/server/chunks/5040.js +53 -0
- package/.next/server/chunks/5067.js +1 -0
- package/.next/server/chunks/5096.js +1 -1
- package/.next/server/chunks/5148.js +1 -0
- package/.next/server/chunks/5200.js +1 -0
- package/.next/server/chunks/544.js +135 -0
- package/.next/server/chunks/5463.js +1 -1
- package/.next/server/chunks/5544.js +5 -5
- package/.next/server/chunks/5561.js +1 -0
- package/.next/server/chunks/5708.js +5 -4
- package/.next/server/chunks/5786.js +2 -0
- package/.next/server/chunks/5829.js +1 -0
- package/.next/server/chunks/5863.js +37 -0
- package/.next/server/chunks/5880.js +1 -1
- package/.next/server/chunks/6034.js +77 -0
- package/.next/server/chunks/{1089.js → 6219.js} +1 -1
- package/.next/server/chunks/6226.js +6 -0
- package/.next/server/chunks/6432.js +1 -0
- package/.next/server/chunks/6496.js +1 -0
- package/.next/server/chunks/6518.js +2 -0
- package/.next/server/chunks/6588.js +2 -0
- package/.next/server/chunks/6793.js +1 -0
- package/.next/server/chunks/688.js +3 -0
- package/.next/server/chunks/701.js +1 -1
- package/.next/server/chunks/7032.js +1 -1
- package/.next/server/chunks/7506.js +1 -1
- package/.next/server/chunks/7579.js +8 -7
- package/.next/server/chunks/7634.js +4 -0
- package/.next/server/chunks/7821.js +1 -1
- package/.next/server/chunks/793.js +403 -0
- package/.next/server/chunks/7969.js +1 -0
- package/.next/server/chunks/{6537.js → 8001.js} +1 -1
- package/.next/server/chunks/8092.js +1 -0
- package/.next/server/chunks/8165.js +3 -0
- package/.next/server/chunks/8321.js +1 -0
- package/.next/server/chunks/8339.js +1 -0
- package/.next/server/chunks/8356.js +1 -0
- package/.next/server/chunks/8387.js +1 -1
- package/.next/server/chunks/848.js +39 -0
- package/.next/server/chunks/{8192.js → 8568.js} +1 -1
- package/.next/server/chunks/8667.js +1 -1
- package/.next/server/chunks/8739.js +2 -2
- package/.next/server/chunks/9174.js +1 -0
- package/.next/server/chunks/9251.js +1 -0
- package/.next/server/chunks/9253.js +3 -0
- package/.next/server/chunks/9285.js +1 -1
- package/.next/server/chunks/94.js +1 -1
- package/.next/server/chunks/9537.js +39 -0
- package/.next/server/chunks/9671.js +1 -0
- package/.next/server/chunks/9724.js +403 -0
- package/.next/server/chunks/9857.js +1 -0
- package/.next/server/chunks/{3298.js → 9868.js} +2 -2
- package/.next/server/chunks/991.js +2 -0
- package/.next/server/functions-config-manifest.json +1 -0
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/instrumentation.js.nft.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-manifest.json +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/server/src/middleware.js +1 -1
- package/.next/server/src/middleware.js.map +1 -1
- package/.next/static/JGMk-MwwdpQ94asqw-mUR/_buildManifest.js +1 -0
- package/.next/static/chunks/1572-b663a83bba28a0a1.js +8 -0
- package/.next/static/chunks/1988-bd73f26184e930c1.js +1 -0
- package/.next/static/chunks/2233-1139c1d3ef356980.js +1 -0
- package/.next/static/chunks/2266-d812473724cc6643.js +1 -0
- package/.next/static/chunks/2988-0b197a9b468a2df9.js +1 -0
- package/.next/static/chunks/3089.a0856f8093b90939.js +1 -0
- package/.next/static/chunks/3418-a2f5d0c4f29ee2fb.js +1 -0
- package/.next/static/chunks/3659-0ab9580d5ee5deea.js +1 -0
- package/.next/static/chunks/3672-cd86ace43288da79.js +1 -0
- package/.next/static/chunks/{8041-05830e887c133085.js → 3827-9e9a6e11ef808d90.js} +1 -1
- package/.next/static/chunks/3910.5c6885d7a5bd753e.js +1 -0
- package/.next/static/chunks/3958-5641a828b320f2fe.js +100 -0
- package/.next/static/chunks/435-17c79f3b9f8dd38d.js +1 -0
- package/.next/static/chunks/454.5fc2f8eef98483e3.js +1 -0
- package/.next/static/chunks/4740-62814d07b2b7f760.js +1 -0
- package/.next/static/chunks/5418-45aa7e646ad024be.js +1 -0
- package/.next/static/chunks/5661-1b976072cc3d2fed.js +1 -0
- package/.next/static/chunks/6404-86615a5f5ce5c00f.js +1 -0
- package/.next/static/chunks/6947-0ff3545efb53e959.js +1 -0
- package/.next/static/chunks/7445-d8a8be6e451c522e.js +1 -0
- package/.next/static/chunks/8054-f33d06ecea5d36e4.js +1 -0
- package/.next/static/chunks/812-dfe7ba07ddb7a565.js +1 -0
- package/.next/static/chunks/8404-14ef0345dc401ac5.js +1 -0
- package/.next/static/chunks/8855-02889c9ab4bf0bcf.js +1 -0
- package/.next/static/chunks/8863-c140a742178a4a87.js +1 -0
- package/.next/static/chunks/9562-5494feecd8c6f7a3.js +1 -0
- package/.next/static/chunks/9581-6d2523fd68a5e3c4.js +1 -0
- package/.next/static/chunks/app/api/approvals/[id]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/approvals/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/backup/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/browse/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/bugs/enhance/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/cwd/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/encryption/secure/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/env/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/[id]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/[id]/versions/[versionId]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/[id]/versions/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/compile/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/generate/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/improve/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/prompt-renderer/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/quick-chat/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/repair/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/flow/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/git/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/init/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/local-models/capability/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/local-models/pull/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/local-models/suggest/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/app-sandbox/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/cancel/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/oauth-capability/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/servers/[name]/prompts/get/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/servers/[name]/prompts/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/servers/[name]/resources/read/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/servers/[name]/resources/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/servers/[name]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/servers/[name]/status/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/servers/[name]/tools/[toolName]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/servers/[name]/tools/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/servers/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/test-connection/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp/test-connection/stream/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp-registry/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/mcp-registry/spotlight/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/model/[id]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/model/provider/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/model/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/model/test/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/oauth/callback/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/oauth/initiate/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/oauth/reset/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/packages/build/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/packages/derive-secrets/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/packages/install/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/packages/install/status/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/packages/installed/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/packages/resolve/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/packages/scan-targets/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/packages/uninstall/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/planned-executions/[id]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/planned-executions/[id]/run/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/planned-executions/[id]/runs/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/planned-executions/preview-schedule/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/planned-executions/reconcile/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/planned-executions/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/registry/auth/resend/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/registry/auth/reset/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/registry/auth/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/registry/oauth/callback/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/registry/oauth/initiate/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/registry/publish/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/registry/settings/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/restore/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/runs/active/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/storage/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/update/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/waves/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/api/webhooks/[id]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/chat/page-2b69c5e35164f553.js +1 -0
- package/.next/static/chunks/app/docs/page-250523af44e96120.js +1 -0
- package/.next/static/chunks/app/executions/page-1d8557a642114697.js +1 -0
- package/.next/static/chunks/app/flows/page-3f0d7cca2edff792.js +1 -0
- package/.next/static/chunks/app/layout-81f91fb3b894951a.js +1 -0
- package/.next/static/chunks/app/mcp/page-0e90177062130679.js +1 -0
- package/.next/static/chunks/app/mcp-flows/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/mcp-proxy/[server]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/models/page-c69e10b83c06535d.js +1 -0
- package/.next/static/chunks/app/packages/page-bf8aad441c664433.js +1 -0
- package/.next/static/chunks/app/settings/page-4a9952c514f284e0.js +1 -0
- package/.next/static/chunks/app/v1/chat/completions/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/breakpoints/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/cancel/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/debug/continue/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/debug/step/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/edit-state/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/events/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/inject/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/resources/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/respond/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/conversations/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/chat/events/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/v1/models/route-7d60cffa598f4779.js +1 -0
- package/.next/static/chunks/app/waves/page-3ca939f0f7e817b1.js +1 -0
- package/.next/static/chunks/webpack-08eb993682e1fb1a.js +1 -0
- package/.next/static/css/30253fcfa8035221.css +1 -0
- package/.next/trace +10 -9
- package/.next/types/app/api/flow/[id]/versions/[versionId]/route.ts +347 -0
- package/.next/types/app/api/flow/[id]/versions/route.ts +347 -0
- package/.next/types/app/api/mcp/app-sandbox/route.ts +347 -0
- package/.next/types/app/api/mcp/oauth-capability/route.ts +347 -0
- package/.next/types/app/api/packages/installed/route.ts +347 -0
- package/.next/types/app/api/packages/scan-targets/route.ts +347 -0
- package/.next/types/app/api/packages/uninstall/route.ts +347 -0
- package/.next/types/app/api/registry/auth/reset/route.ts +347 -0
- package/.next/types/app/api/registry/oauth/callback/route.ts +347 -0
- package/.next/types/app/api/registry/oauth/initiate/route.ts +347 -0
- package/.next/types/app/v1/chat/conversations/[conversationId]/inject/route.ts +347 -0
- package/.next/types/app/v1/chat/events/route.ts +347 -0
- package/.next/types/routes.d.ts +13 -1
- package/.next/types/validator.ts +108 -0
- package/README.md +6 -1
- package/package.json +98 -95
- package/.next/server/chunks/1197.js +0 -2
- package/.next/server/chunks/1373.js +0 -1
- package/.next/server/chunks/1604.js +0 -65
- package/.next/server/chunks/1659.js +0 -1
- package/.next/server/chunks/237.js +0 -1
- package/.next/server/chunks/2373.js +0 -1
- package/.next/server/chunks/2434.js +0 -2
- package/.next/server/chunks/2940.js +0 -41
- package/.next/server/chunks/3304.js +0 -1
- package/.next/server/chunks/346.js +0 -1
- package/.next/server/chunks/3569.js +0 -1
- package/.next/server/chunks/4042.js +0 -1
- package/.next/server/chunks/4545.js +0 -21
- package/.next/server/chunks/4661.js +0 -1
- package/.next/server/chunks/4765.js +0 -1
- package/.next/server/chunks/5094.js +0 -2
- package/.next/server/chunks/5734.js +0 -60
- package/.next/server/chunks/6005.js +0 -1
- package/.next/server/chunks/6996.js +0 -1
- package/.next/server/chunks/7028.js +0 -1
- package/.next/server/chunks/7214.js +0 -6
- package/.next/server/chunks/724.js +0 -27
- package/.next/server/chunks/7362.js +0 -158
- package/.next/server/chunks/7463.js +0 -6
- package/.next/server/chunks/7485.js +0 -1
- package/.next/server/chunks/7498.js +0 -42
- package/.next/server/chunks/7764.js +0 -37
- package/.next/server/chunks/826.js +0 -52
- package/.next/server/chunks/8522.js +0 -2
- package/.next/server/chunks/8572.js +0 -1
- package/.next/server/chunks/869.js +0 -2
- package/.next/server/chunks/8732.js +0 -62
- package/.next/server/chunks/8851.js +0 -1
- package/.next/server/chunks/8994.js +0 -2
- package/.next/server/chunks/9387.js +0 -15
- package/.next/server/chunks/9400.js +0 -2
- package/.next/server/chunks/9472.js +0 -2
- package/.next/server/chunks/9583.js +0 -1
- package/.next/static/O-elWbT5rs6ci1CrCqez1/_buildManifest.js +0 -1
- package/.next/static/chunks/2019-f22580cb726c5dca.js +0 -1
- package/.next/static/chunks/256-a13a59247ac6cc68.js +0 -1
- package/.next/static/chunks/2566-60acd5838abd9f3f.js +0 -1
- package/.next/static/chunks/2822-8168e3bb8443a1ec.js +0 -1
- package/.next/static/chunks/2981-10313d395eb99645.js +0 -1
- package/.next/static/chunks/3028-fc1f04241ed578ff.js +0 -1
- package/.next/static/chunks/3089.9e15df4ffd0fe4e8.js +0 -1
- package/.next/static/chunks/3556-b9855146c7506696.js +0 -1
- package/.next/static/chunks/3560-5bdceef09b50e1c3.js +0 -1
- package/.next/static/chunks/3574-94e9f20550550a58.js +0 -1
- package/.next/static/chunks/4483-463f8bfc6f3dd5fa.js +0 -1
- package/.next/static/chunks/5512.682bef7fd3a7c286.js +0 -1
- package/.next/static/chunks/5578-49bc150686c13b6f.js +0 -1
- package/.next/static/chunks/5766-dbd21cb8435605aa.js +0 -1
- package/.next/static/chunks/5866-6834cbc4ab02d86f.js +0 -1
- package/.next/static/chunks/6669-012c73587a6628fc.js +0 -1
- package/.next/static/chunks/6691-117567b2b40cd9f4.js +0 -1
- package/.next/static/chunks/6961-a40e97c06e616300.js +0 -1
- package/.next/static/chunks/7445-2802e158c9093556.js +0 -1
- package/.next/static/chunks/7554-db290baed5782cab.js +0 -8
- package/.next/static/chunks/795-704a0e742ecc2ef6.js +0 -1
- package/.next/static/chunks/812-8b3d4e0f6546d6f9.js +0 -1
- package/.next/static/chunks/9554-cb5bd72cb40e8dbe.js +0 -1
- package/.next/static/chunks/9562-ef0ddd4e6b9023cf.js +0 -1
- package/.next/static/chunks/9720-5ecb48f1a28808fe.js +0 -1
- package/.next/static/chunks/app/api/approvals/[id]/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/approvals/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/backup/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/browse/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/bugs/enhance/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/cwd/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/encryption/secure/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/env/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/flow/[id]/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/flow/compile/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/flow/generate/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/flow/improve/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/flow/prompt-renderer/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/flow/quick-chat/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/flow/repair/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/flow/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/git/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/init/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/local-models/capability/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/local-models/pull/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/local-models/suggest/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/cancel/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/servers/[name]/prompts/get/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/servers/[name]/prompts/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/servers/[name]/resources/read/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/servers/[name]/resources/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/servers/[name]/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/servers/[name]/status/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/servers/[name]/tools/[toolName]/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/servers/[name]/tools/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/servers/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/test-connection/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp/test-connection/stream/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp-registry/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/mcp-registry/spotlight/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/model/[id]/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/model/provider/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/model/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/model/test/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/oauth/callback/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/oauth/initiate/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/oauth/reset/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/packages/build/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/packages/derive-secrets/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/packages/install/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/packages/install/status/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/packages/resolve/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/planned-executions/[id]/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/planned-executions/[id]/run/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/planned-executions/[id]/runs/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/planned-executions/preview-schedule/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/planned-executions/reconcile/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/planned-executions/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/registry/auth/resend/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/registry/auth/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/registry/publish/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/registry/settings/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/restore/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/runs/active/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/storage/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/update/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/waves/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/api/webhooks/[id]/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/chat/page-93403b0e520ba8d3.js +0 -1
- package/.next/static/chunks/app/docs/page-2c972a639cd9a41c.js +0 -1
- package/.next/static/chunks/app/executions/page-bb2fef60b2240f69.js +0 -1
- package/.next/static/chunks/app/flows/page-d60c5b47c923564a.js +0 -1
- package/.next/static/chunks/app/layout-eea7078d7553c21a.js +0 -1
- package/.next/static/chunks/app/mcp/page-92c03186d566a4f5.js +0 -1
- package/.next/static/chunks/app/mcp-flows/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/mcp-proxy/[server]/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/models/page-d71e5606a8e29479.js +0 -1
- package/.next/static/chunks/app/packages/page-e64480d78312edd0.js +0 -1
- package/.next/static/chunks/app/settings/page-d067a3a624ec2fa0.js +0 -1
- package/.next/static/chunks/app/v1/chat/completions/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/breakpoints/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/cancel/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/debug/continue/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/debug/step/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/edit-state/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/events/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/resources/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/respond/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/chat/conversations/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/v1/models/route-3e3cc52436d34625.js +0 -1
- package/.next/static/chunks/app/waves/page-ff15db2f75fb5d62.js +0 -1
- package/.next/static/chunks/webpack-2b2d7505a2ac6538.js +0 -1
- package/.next/static/css/40f9bef305b11bf5.css +0 -1
- /package/.next/static/{O-elWbT5rs6ci1CrCqez1 → JGMk-MwwdpQ94asqw-mUR}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=8387,exports.ids=[8387],exports.modules={7969:(a,b,c)=>{c.d(b,{FK:()=>i,FN:()=>j});var d=c(33873),e=c.n(d),f=c(50846),g=c(7658);let h=(0,f.h)("backend/services/mcp/internal/confinement");function i(a,b){let c=e().relative(a,b);return""===c||!c.startsWith("..")&&!e().isAbsolute(c)}async function j(a,b){let c=function(a){for(let b of Array.isArray(a)?a:[a]){let a=process.env[b];if(!a||!a.trim())continue;let c=a.split(e().delimiter).map(a=>a.trim()).filter(Boolean).map(a=>e().resolve(a));if(c.length)return c}return null}(b),d=[];try{d=(await (0,g.AC)(a)).map(a=>e().resolve(a))}catch(a){h.warn("loadEffectiveRoots: could not read persisted roots",a)}if(!c)return d.length?d:null;let f=d.filter(a=>c.some(b=>i(b,a)));return f.length?f:c}},18387:(a,b,c)=>{c.d(b,{filesystemCallTool:()=>C,filesystemToolDefinitions:()=>o});var d=c(33873),e=c.n(d),f=c(29021),g=c(50846),h=c(43326),i=c(7658),j=c(7969);let k=(0,g.h)("backend/services/mcp/internal/filesystemTools");function l(a){return{content:[{type:"text",text:JSON.stringify(a,null,2)}],structuredContent:a}}function m(a){return{content:[{type:"text",text:JSON.stringify({error:a},null,2)}],isError:!0}}function n(a,b){let c="string"==typeof a?a.trim():"";if(!c)throw Error('Provide "path".');let d=(0,h.ok)(),f=e().isAbsolute(c)?e().resolve(c):e().resolve(d,c);if(b&&!b.some(a=>(0,j.FK)(a,f)))throw Error(`Path "${f}" is outside the configured filesystem roots.`);return f}function o(){let a={type:"string",description:"File or directory path. Relative paths resolve against the FLUJO data directory; absolute paths are used as-is."};return[{name:"read_file",description:'Read a text file and return its content. Optionally read only a line range with "from"/"to" (1-based, inclusive). Returns { path, from, to, totalLines, content, truncated }.',inputSchema:{type:"object",properties:{path:a,from:{type:"number",description:"Optional 1-based first line to return (inclusive)."},to:{type:"number",description:"Optional 1-based last line to return (inclusive)."}},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},from:{type:"number"},to:{type:"number"},totalLines:{type:"number"},truncated:{type:"boolean"},content:{type:"string"}},required:["path","from","to","totalLines","truncated","content"]}},{name:"write_file",description:'Create or write a text file (parent directories are created). "mode": "overwrite" (default) replaces the whole file, or a line range when "startLine"/"endLine" (1-based inclusive) are given; "append" adds content at the end; "insert" inserts content before "startLine". Returns { path, bytesWritten, mode, ... }.',inputSchema:{type:"object",properties:{path:a,content:{type:"string",description:"The content to write/insert/append."},mode:{type:"string",enum:["overwrite","append","insert"],description:'Write mode (default "overwrite").'},startLine:{type:"number",description:'For "insert": line to insert before. For "overwrite": first line of the range to replace (1-based).'},endLine:{type:"number",description:'For "overwrite": last line (inclusive, 1-based) of the range to replace.'}},required:["path","content"]},outputSchema:{type:"object",properties:{path:{type:"string"},bytesWritten:{type:"number"},mode:{type:"string"},startLine:{type:"number"},endLine:{type:"number"},linesReplaced:{type:"number"},linesInserted:{type:"number"}},required:["path","bytesWritten","mode"]}},{name:"edit_file",description:'Edit a text file two ways (mutually exclusive): (1) "edits": [{ oldText, newText, startLine?, endLine? }] literal find/replace — each replaces the first (unambiguous) occurrence, optionally scoped to a line range; or (2) "diff": a unified diff string (standard "@@ -a,b +c,d @@" hunks) applied atomically. Fails with no partial write on any mismatch. Returns { path, editsApplied|applied, diff:{added,removed} }.',inputSchema:{type:"object",properties:{path:a,edits:{type:"array",description:"List of literal { oldText, newText } edits applied in order (optionally scoped with startLine/endLine).",items:{type:"object",properties:{oldText:{type:"string",description:"Exact text to find."},newText:{type:"string",description:"Replacement text."},startLine:{type:"number",description:"Optional 1-based first line to scope this edit to."},endLine:{type:"number",description:"Optional 1-based last line (inclusive) to scope this edit to."}},required:["oldText","newText"]}},diff:{type:"string",description:'A unified diff to apply atomically. Mutually exclusive with "edits".'},startLine:{type:"number",description:"Optional default 1-based first line to scope all literal edits to."},endLine:{type:"number",description:"Optional default 1-based last line (inclusive) to scope all literal edits to."}},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},mode:{type:"string"},editsApplied:{type:"number"},applied:{type:"boolean"},diff:{type:"object",properties:{added:{type:"number"},removed:{type:"number"}},required:["added","removed"]}},required:["path","diff"]}},{name:"list_dir",description:'List the entries of a directory. Returns { path, entries: [{ name, type, size }] } where type is "file" | "directory" | "other".',inputSchema:{type:"object",properties:{path:a},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},entries:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"},size:{type:"number"}},required:["name","type","size"]}}},required:["path","entries"]}},{name:"dir_tree",description:"Return a recursive, depth-limited directory tree as nested JSON. Returns { path, depth, tree }.",inputSchema:{type:"object",properties:{path:a,depth:{type:"number",description:"Maximum recursion depth (default 3, max 10)."}},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},depth:{type:"number"},truncated:{type:"boolean"},tree:{type:"array"}},required:["path","depth","tree"]}},{name:"search",description:'Search a directory tree. Match file/dir NAMES against "namePattern" (substring, case-insensitive) and/or file CONTENT against "content" (substring). Returns { matches: [{ path, line?, text? }], truncated }.',inputSchema:{type:"object",properties:{path:a,namePattern:{type:"string",description:"Optional case-insensitive substring to match against entry names."},content:{type:"string",description:"Optional case-insensitive substring to match inside text files."}},required:["path"]},outputSchema:{type:"object",properties:{matches:{type:"array",items:{type:"object",properties:{path:{type:"string"},line:{type:"number"},text:{type:"string"}},required:["path"]}},truncated:{type:"boolean"}},required:["matches","truncated"]}},{name:"get_file_info",description:"Stat a path. Returns { path, type, size, isFile, isDirectory, createdAt, modifiedAt }.",inputSchema:{type:"object",properties:{path:a},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},type:{type:"string"},size:{type:"number"},isFile:{type:"boolean"},isDirectory:{type:"boolean"},createdAt:{type:"string"},modifiedAt:{type:"string"}},required:["path","type","size","isFile","isDirectory","createdAt","modifiedAt"]}},{name:"create_directory",description:"Create a directory (recursively). Succeeds if it already exists. Returns { path, created }.",inputSchema:{type:"object",properties:{path:a},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},created:{type:"boolean"}},required:["path","created"]}},{name:"move",description:'Move or rename a file/directory from "source" to "destination". Returns { source, destination }.',inputSchema:{type:"object",properties:{source:{type:"string",description:"Existing path to move."},destination:{type:"string",description:"Target path."}},required:["source","destination"]},outputSchema:{type:"object",properties:{source:{type:"string"},destination:{type:"string"}},required:["source","destination"]}},{name:"delete",description:'Delete a file or directory. Pass "recursive": true to remove a non-empty directory. Returns { path, deleted }.',inputSchema:{type:"object",properties:{path:a,recursive:{type:"boolean",description:"Remove directories and their contents recursively."}},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},deleted:{type:"boolean"}},required:["path","deleted"]}}]}function p(a){return a.replace(/\r\n?/g,"\n").split("\n")}function q(a){return a.includes("\r\n")?"\r\n":"\n"}async function r(a,b){let c=n(a.path,b),d=await f.promises.readFile(c,"utf8"),e=p(d),g=e.length,h="number"==typeof a.from||"number"==typeof a.to,i="number"==typeof a.from?Math.max(1,Math.floor(a.from)):1,j="number"==typeof a.to?Math.floor(a.to):g;j<i&&([i,j]=[j,i]),j=Math.min(j,g);let k=h?e.slice(i-1,j).join("\n"):d,m=!1;return k.length>2e5&&(k=k.slice(0,2e5)+"\n…[truncated]",m=!0),l({path:c,from:h?i:1,to:h?j:g,totalLines:g,truncated:m,content:k})}async function s(a,b){let c=n(a.path,b),d="string"==typeof a.content?a.content:"",g="append"===a.mode||"insert"===a.mode?a.mode:"overwrite",h="number"==typeof a.startLine||"number"==typeof a.endLine;if(await f.promises.mkdir(e().dirname(c),{recursive:!0}),"overwrite"===g&&!h)return await f.promises.writeFile(c,d,"utf8"),l({path:c,bytesWritten:Buffer.byteLength(d,"utf8"),mode:"overwrite"});let i="";try{i=await f.promises.readFile(c,"utf8")}catch{i=""}if("append"===g){let a=!i.length||i.endsWith("\n")||i.endsWith("\r\n")?"":q(i),b=i+a+d;return await f.promises.writeFile(c,b,"utf8"),l({path:c,bytesWritten:Buffer.byteLength(b,"utf8"),mode:"append"})}let j=q(i),k=i.length?i.split(/\r?\n/):[],m=d.split(/\r?\n/),o=k.length;if("insert"===g){let b="number"==typeof a.startLine?Math.max(1,Math.floor(a.startLine)):o+1,d=Math.min(b-1,o);k.splice(d,0,...m);let e=k.join(j);return await f.promises.writeFile(c,e,"utf8"),l({path:c,bytesWritten:Buffer.byteLength(e,"utf8"),mode:"insert",startLine:b,linesInserted:m.length})}let p="number"==typeof a.startLine?Math.max(1,Math.floor(a.startLine)):1,r="number"==typeof a.endLine?Math.floor(a.endLine):p;r<p&&([p,r]=[r,p]);let s=Math.max(0,(r=Math.min(r,o))-p+1);k.splice(p-1,s,...m);let t=k.join(j);return await f.promises.writeFile(c,t,"utf8"),l({path:c,bytesWritten:Buffer.byteLength(t,"utf8"),mode:"overwrite",startLine:p,endLine:r,linesReplaced:s})}async function t(a,b){let c=n(a.path,b),d="string"==typeof a.diff&&a.diff.trim().length>0,e=Array.isArray(a.edits)&&a.edits.length>0;if(d&&e)return m('Provide either "diff" or "edits", not both.');let g=await f.promises.readFile(c,"utf8");if(d){let b;try{b=function(a,b){let c=a.split("\n"),d=b.split(/\r?\n/),e=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/,f=[],g=0,h=0,i=0,j=!1,k=0;for(;k<d.length;){let a=d[k];if(void 0===a)break;if(a.startsWith("--- ")||a.startsWith("+++ ")){k++;continue}let b=e.exec(a);if(!b){k++;continue}j=!0;let l=Math.max(0,parseInt(b[1],10)-1);if(l<g)throw Error("overlapping or out-of-order hunks");for(;g<l&&g<c.length;)f.push(c[g]),g++;for(k++;k<d.length&&!e.test(d[k])&&!d[k].startsWith("--- ");){let a=d[k],b=a.length?a[0]:" ",e=a.length?a.slice(1):"";if(" "===b){let a=c[g];if(a!==e)throw Error(`context mismatch at line ${g+1}: expected ${JSON.stringify(a)}, diff has ${JSON.stringify(e)}`);f.push(c[g]),g++}else if("-"===b){let a=c[g];if(a!==e)throw Error(`removed-line mismatch at line ${g+1}: expected ${JSON.stringify(a)}, diff has ${JSON.stringify(e)}`);g++,i++}else if("+"===b)f.push(e),h++;else if("\\"===b);else throw Error(`unexpected diff line: ${JSON.stringify(a)}`);k++}}if(!j)throw Error("no unified-diff hunks (@@ ... @@) found");for(;g<c.length;)f.push(c[g]),g++;return{result:f.join("\n"),added:h,removed:i}}(g,a.diff)}catch(a){return m(`Diff apply failed: ${a instanceof Error?a.message:String(a)}. No changes written.`)}return await f.promises.writeFile(c,b.result,"utf8"),l({path:c,applied:!0,mode:"diff",diff:{added:b.added,removed:b.removed}})}let h=Array.isArray(a.edits)?a.edits:[];if(0===h.length)return m('Provide a non-empty "edits" array of { oldText, newText } or a "diff" string.');let i="number"==typeof a.startLine?a.startLine:void 0,j="number"==typeof a.endLine?a.endLine:void 0,k=q(g),o=g.replace(/\r\n?/g,"\n"),r=0;for(let a of h){let b="string"==typeof a.oldText?a.oldText.replace(/\r\n?/g,"\n"):"",d="string"==typeof a.newText?a.newText.replace(/\r\n?/g,"\n"):"";if(!b)return m(`Edit #${r+1} has an empty "oldText".`);let e="number"==typeof a.startLine?a.startLine:i,f="number"==typeof a.endLine?a.endLine:j,g=void 0!==e||void 0!==f,{lo:h,hi:k}=function(a,b,c){if(void 0===b&&void 0===c)return{lo:0,hi:a.length};let d=a.split("\n"),e=Math.max(1,Math.floor(b??1)),f=Math.min(d.length,Math.floor(c??d.length)),g=0;for(let a=0;a<e-1&&a<d.length;a++)g+=d[a].length+1;let h=g;for(let a=e-1;a<f&&a<d.length;a++)h+=d[a].length+ +(a<d.length-1);return{lo:g,hi:Math.max(g,h)}}(o,e,f),l=o.indexOf(b,h);if(-1===l||l>=k||l+b.length>k)return m(`Edit #${r+1}: "oldText" not found${g?" in the specified line range":""} in ${c}. No changes written.`);let n=o.indexOf(b,l+1);if(-1!==n&&n<k&&n+b.length<=k)return m(`Edit #${r+1}: "oldText" is ambiguous (appears more than once${g?" in the specified line range":""}). No changes written.`);o=o.slice(0,l)+d+o.slice(l+b.length),r+=1}let s=function(a,b){let c=p(a),d=p(b),e=new Map;for(let a of d)e.set(a,(e.get(a)??0)+1);let f=new Map;for(let a of c)f.set(a,(f.get(a)??0)+1);let g=0;for(let[a,b]of f)g+=Math.max(0,b-(e.get(a)??0));let h=0;for(let[a,b]of e)h+=Math.max(0,b-(f.get(a)??0));return{added:h,removed:g}}(g,o),t="\r\n"===k?o.replace(/\n/g,"\r\n"):o;return await f.promises.writeFile(c,t,"utf8"),l({path:c,mode:"edits",editsApplied:r,diff:s})}async function u(a){try{let b=await f.promises.lstat(a);if(b.isFile())return"file";if(b.isDirectory())return"directory";return"other"}catch{return"other"}}async function v(a,b){let c=n(a.path,b),d=await f.promises.readdir(c),g=await Promise.all(d.map(async a=>{let b=e().join(c,a),d=await u(b),g=0;try{g=(await f.promises.stat(b)).size}catch{}return{name:a,type:d,size:g}}));return g.sort((a,b)=>a.type===b.type?a.name.localeCompare(b.name):"directory"===a.type?-1:1),l({path:c,entries:g})}async function w(a,b){let c=n(a.path,b),d=Math.min("number"==typeof a.depth?Math.max(1,Math.floor(a.depth)):3,10),g=0,h=!1;async function i(a,b){let c;if(b>d||h)return[];try{c=await f.promises.readdir(a)}catch{return[]}c.sort((a,b)=>a.localeCompare(b));let j=[];for(let f of c){if(++g>5e3){h=!0;break}let c=e().join(a,f),k=await u(c),l={name:f,type:k};"directory"===k&&b<d&&(l.children=await i(c,b+1)),j.push(l)}return j}let j=await i(c,1);return l({path:c,depth:d,truncated:h,tree:j})}async function x(a,b){let c=n(a.path,b),d="string"==typeof a.namePattern?a.namePattern.toLowerCase():"",g="string"==typeof a.content?a.content.toLowerCase():"";if(!d&&!g)return m('Provide "namePattern" and/or "content" to search for.');let h=[],i=!1;async function j(a){let b;if(!i){try{b=await f.promises.readdir(a)}catch{return}for(let c of b){if(i)return;let b=e().join(a,c),k=await u(b);if(d&&c.toLowerCase().includes(d)&&(h.push({path:b}),h.length>=1e3)){i=!0;return}if("directory"===k)await j(b);else if("file"===k&&g){let a="";try{a=await f.promises.readFile(b,"utf8")}catch{continue}let c=a.split("\n");for(let a=0;a<c.length;a++)if(c[a].toLowerCase().includes(g)&&(h.push({path:b,line:a+1,text:c[a].slice(0,400)}),h.length>=1e3)){i=!0;return}}}}}return await j(c),l({matches:h,truncated:i})}async function y(a,b){let c=n(a.path,b),d=await f.promises.stat(c);return l({path:c,type:d.isFile()?"file":d.isDirectory()?"directory":"other",size:d.size,isFile:d.isFile(),isDirectory:d.isDirectory(),createdAt:d.birthtime.toISOString(),modifiedAt:d.mtime.toISOString()})}async function z(a,b){let c=n(a.path,b);return await f.promises.mkdir(c,{recursive:!0}),l({path:c,created:!0})}async function A(a,b){let c=n(a.source,b),d=n(a.destination,b);return await f.promises.mkdir(e().dirname(d),{recursive:!0}),await f.promises.rename(c,d),l({source:c,destination:d})}async function B(a,b){let c=n(a.path,b),d=!0===a.recursive;return await f.promises.rm(c,{recursive:d,force:!1}),l({path:c,deleted:!0})}async function C(a,b){try{let c=await (0,j.FN)(i.K3,"FLUJO_FS_ROOTS");switch(a){case"read_file":return await r(b,c);case"write_file":return await s(b,c);case"edit_file":return await t(b,c);case"list_dir":return await v(b,c);case"dir_tree":return await w(b,c);case"search":return await x(b,c);case"get_file_info":return await y(b,c);case"create_directory":return await z(b,c);case"move":return await A(b,c);case"delete":return await B(b,c);default:return m(`Unknown tool on the built-in filesystem server: ${a}`)}}catch(b){return k.warn("filesystemCallTool failed",{toolName:a,err:b}),function(a,b=!1){return{content:[{type:"text",text:a}],...b?{isError:!0}:{}}}(`Tool failed: ${b instanceof Error?b.message:String(b)}`,!0)}}}};
|
|
1
|
+
"use strict";exports.id=8387,exports.ids=[8387],exports.modules={5591:(a,b,c)=>{c.d(b,{bz:()=>m,wp:()=>j});var d=c(33873),e=c.n(d),f=c(21820),g=c.n(f),h=c(43326),i=c(7969);let j="FLUJO_ALLOW_PROTECTED_PATHS",k=null;function l(a,...b){return e().resolve(a,...b)}function m(a){let b=e().resolve(a);if((function(){let a=[];try{a.push(e().resolve((0,h.getDataDir)()))}catch{}try{a.push(e().resolve(g().tmpdir()))}catch{}return a})().some(a=>(0,i.F)(a,b)))return{denied:!1};for(let a of function(){var a;let b="string"==typeof(a=process.env[j])&&/^(1|true|yes|on)$/i.test(a.trim()),c=(0,h.getHomeDir)(),d=`${b?"off":"on"}::${c}`;if(k&&k.key===d)return k.paths;let f=b?[]:function(a){let b=[];if("win32"===process.platform)for(let c of["AppData","Downloads","Desktop","Documents","Pictures","Music","Videos","OneDrive"])b.push(l(a,c));else if("darwin"===process.platform){for(let c of["Downloads","Desktop","Documents","Pictures","Music","Movies"])b.push(l(a,c));for(let c of["Library/Mail","Library/Messages","Library/Safari","Library/Cookies","Library/Calendars","Library/Application Support/AddressBook","Library/Application Support/com.apple.TCC","Library/PersonalizationPortrait","Library/Metadata/CoreSpotlight","Library/Suggestions"])b.push(l(a,c));for(let a of["/.Spotlight-V100","/.fseventsd","/.DocumentRevisions-V100"])b.push(e().resolve(a))}else for(let c of["Documents","Downloads","Desktop",".ssh",".gnupg",".aws",".config"])b.push(l(a,c));return Array.from(new Set(b))}(c);return k={key:d,paths:f},f}())if((0,i.F)(a,b))return{denied:!0,matchedRoot:a};return{denied:!1}}},18387:(a,b,c)=>{c.d(b,{filesystemCallTool:()=>O,filesystemToolDefinitions:()=>t});var d=c(33873),e=c.n(d),f=c(29021),g=c(55511),h=c(4984),i=c.n(h),j=c(50846),k=c(43326),l=c(7658),m=c(7969),n=c(5591),o=c(10793);let p=(0,j.h)("backend/services/mcp/internal/filesystemTools");function q(a){return{content:[{type:"text",text:JSON.stringify(a,null,2)}],structuredContent:a}}function r(a){return{content:[{type:"text",text:JSON.stringify({error:a},null,2)}],isError:!0}}function s(a,b){let c="string"==typeof a?a.trim():"";if(!c)throw Error('Provide "path".');let d=(0,k.getDataDir)(),f=e().isAbsolute(c)?e().resolve(c):e().resolve(d,c),g=(0,n.bz)(f);if(g.denied)throw Error(`Path "${f}" is within a protected location (${g.matchedRoot}) and is blocked by the FLUJO built-in server protected-path policy. Set ${n.wp}=1 to override (operator only).`);if(0===b.length||!b.some(a=>(0,m.F)(a,f)))throw Error(`Path "${f}" is outside the configured filesystem roots.`);return f}function t(){let a={type:"string",description:"File or directory path. Relative paths resolve against the FLUJO data directory; absolute paths are used as-is."};return[{name:"read_file",description:'Read a text file and return its content. Optionally read only a line range with "from"/"to" (1-based, inclusive). For large files (> 100 KB) read WHOLE (no "from"/"to"), a "pattern" is REQUIRED: the server greps the file and returns only matching lines (with a little surrounding context) so you can follow up with targeted "from"/"to" reads. Pass pattern "*" to force-read the entire large file anyway. Returns { path, from, to, totalLines, content, truncated, contentHash, matches? }. Pass the returned contentHash back as "expectedHash" on a follow-up edit_file/write_file to guard against the file changing in between (TOCTOU).',inputSchema:{type:"object",properties:{path:a,from:{type:"number",description:"Optional 1-based first line to return (inclusive)."},to:{type:"number",description:"Optional 1-based last line to return (inclusive)."},pattern:{type:"string",description:'Case-insensitive substring to grep for. Required to read a large file whole without a "from"/"to" range; matching lines (plus context) are returned instead of the full body. Use "*" to read the whole large file anyway.'}},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},from:{type:"number"},to:{type:"number"},totalLines:{type:"number"},truncated:{type:"boolean"},content:{type:"string"},contentHash:{type:"string",description:'SHA-256 (hex) of the raw file content. Pass this back as "expectedHash" to edit_file/write_file to guard against the file changing between read and write (TOCTOU).'},matches:{type:"array",items:{type:"object",properties:{line:{type:"number"},text:{type:"string"}},required:["line","text"]}}},required:["path","from","to","totalLines","truncated","content"]}},{name:"write_file",description:'Create or write a text file (parent directories are created). "mode": "overwrite" (default) replaces the whole file, or a line range when "startLine"/"endLine" (1-based inclusive) are given; "append" adds content at the end; "insert" inserts content before "startLine". Optionally pass "expectedHash" (the contentHash from a prior read_file) to reject the write if the file changed on disk since it was read (TOCTOU guard); ignored for a whole-file overwrite. Returns { path, bytesWritten, mode, ... }.',_meta:{ui:{resourceUri:"ui://devcanvas/diff"}},inputSchema:{type:"object",properties:{path:a,content:{type:"string",description:"The content to write/insert/append."},mode:{type:"string",enum:["overwrite","append","insert"],description:'Write mode (default "overwrite").'},startLine:{type:"number",description:'For "insert": line to insert before. For "overwrite": first line of the range to replace (1-based).'},endLine:{type:"number",description:'For "overwrite": last line (inclusive, 1-based) of the range to replace.'},expectedHash:{type:"string",description:"Optional SHA-256 (contentHash from read_file). For append/insert/range-overwrite modes, the write is rejected if the file no longer hashes to this value (TOCTOU guard)."}},required:["path","content"]},outputSchema:{type:"object",properties:{path:{type:"string"},bytesWritten:{type:"number"},mode:{type:"string"},startLine:{type:"number"},endLine:{type:"number"},linesReplaced:{type:"number"},linesInserted:{type:"number"}},required:["path","bytesWritten","mode"]}},{name:"edit_file",description:'Edit a text file two ways (mutually exclusive): (1) "edits": [{ oldText, newText, startLine?, endLine? }] literal find/replace — each replaces the unique occurrence of oldText. startLine/endLine are an optional disambiguation HINT (if exactly one match starts in that range it wins); a wrong/missing range still works as long as oldText is unique in the file. Include enough surrounding context to make oldText unique. Or (2) "diff": a unified diff string ("@@ -a,b +c,d @@" hunks) applied atomically — hunks are relocated to where their context actually matches, so slightly-off @@ line numbers still apply, and CRLF files are handled. Fails with no partial write only when text is missing/ambiguous or a hunk context is not found. Optionally pass "expectedHash" (the contentHash from a prior read_file) to reject the edit if the file changed on disk since it was read (TOCTOU guard). Returns { path, editsApplied|applied, diff:{added,removed} }.',_meta:{ui:{resourceUri:"ui://devcanvas/diff"}},inputSchema:{type:"object",properties:{path:a,edits:{type:"array",description:"List of literal { oldText, newText } edits applied in order (optionally scoped with startLine/endLine).",items:{type:"object",properties:{oldText:{type:"string",description:"Exact text to find."},newText:{type:"string",description:"Replacement text."},startLine:{type:"number",description:"Optional 1-based first line to scope this edit to."},endLine:{type:"number",description:"Optional 1-based last line (inclusive) to scope this edit to."}},required:["oldText","newText"]}},diff:{type:"string",description:'A unified diff to apply atomically. Mutually exclusive with "edits".'},startLine:{type:"number",description:"Optional default 1-based first line to scope all literal edits to."},endLine:{type:"number",description:"Optional default 1-based last line (inclusive) to scope all literal edits to."},expectedHash:{type:"string",description:"Optional SHA-256 (contentHash from read_file). If provided and the freshly-read file no longer hashes to it, the edit is rejected with no changes written (TOCTOU guard)."}},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},mode:{type:"string"},editsApplied:{type:"number"},applied:{type:"boolean"},diff:{type:"object",properties:{added:{type:"number"},removed:{type:"number"}},required:["added","removed"]}},required:["path","diff"]}},{name:"list_dir",description:'List the entries of a directory. Returns { path, entries: [{ name, type, size }] } where type is "file" | "directory" | "other".',inputSchema:{type:"object",properties:{path:a},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},entries:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"},size:{type:"number"}},required:["name","type","size"]}}},required:["path","entries"]}},{name:"file_browser_ui",description:'Open an interactive file browser in the chat so the USER can pick a file. This returns IMMEDIATELY without a selection — the browser is shown to the user and the file they choose arrives afterwards as a follow-up user message (e.g. "Selected file: <path>"). After calling this tool you MUST stop and wait for that message; do not guess a path or continue until the user has selected.',_meta:{ui:{resourceUri:"ui://filesystem/browser"}},inputSchema:{type:"object",properties:{path:{...a,description:"Optional starting directory for the browser (defaults to the FLUJO data directory)."}},required:[]}},{name:"dir_tree",description:"Return a recursive, depth-limited directory tree as nested JSON. Returns { path, depth, tree }.",inputSchema:{type:"object",properties:{path:a,depth:{type:"number",description:"Maximum recursion depth (default 3, max 10)."}},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},depth:{type:"number"},truncated:{type:"boolean"},tree:{type:"array"}},required:["path","depth","tree"]}},{name:"search",description:'Search a directory tree. Match file/dir NAMES against "namePattern" (substring, case-insensitive) and/or file CONTENT against "content" (substring, case-insensitive). Content search DOES look inside every text file, returning each matching line with its 1-based line number; likely-binary and very large files are skipped for speed. Returns { matches: [{ path, line?, text? }], truncated }.',inputSchema:{type:"object",properties:{path:a,namePattern:{type:"string",description:"Optional case-insensitive substring to match against entry names."},content:{type:"string",description:"Optional case-insensitive substring to match inside text files."}},required:["path"]},outputSchema:{type:"object",properties:{matches:{type:"array",items:{type:"object",properties:{path:{type:"string"},line:{type:"number"},text:{type:"string"}},required:["path"]}},truncated:{type:"boolean"}},required:["matches","truncated"]}},{name:"get_file_info",description:"Stat a path. Returns { path, type, size, isFile, isDirectory, createdAt, modifiedAt }.",inputSchema:{type:"object",properties:{path:a},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},type:{type:"string"},size:{type:"number"},isFile:{type:"boolean"},isDirectory:{type:"boolean"},createdAt:{type:"string"},modifiedAt:{type:"string"}},required:["path","type","size","isFile","isDirectory","createdAt","modifiedAt"]}},{name:"create_directory",description:"Create a directory (recursively). Succeeds if it already exists. Returns { path, created }.",inputSchema:{type:"object",properties:{path:a},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},created:{type:"boolean"}},required:["path","created"]}},{name:"move",description:'Move or rename a file/directory from "source" to "destination". Returns { source, destination }.',inputSchema:{type:"object",properties:{source:{type:"string",description:"Existing path to move."},destination:{type:"string",description:"Target path."}},required:["source","destination"]},outputSchema:{type:"object",properties:{source:{type:"string"},destination:{type:"string"}},required:["source","destination"]}},{name:"delete",description:'Delete a file or directory. Pass "recursive": true to remove a non-empty directory. Returns { path, deleted }.',inputSchema:{type:"object",properties:{path:a,recursive:{type:"boolean",description:"Remove directories and their contents recursively."}},required:["path"]},outputSchema:{type:"object",properties:{path:{type:"string"},deleted:{type:"boolean"}},required:["path","deleted"]}},{name:"get_allowed_directories",description:"Returns the list of directories that this filesystem MCP server is currently allowed to access. The list is the merged result of server-level roots (configured via FLUJO MCP settings), MCP-node-level roots (set in the FlowBuilder), and the FLUJO_FS_ROOTS environment variable ceiling. When no roots are configured at all, returns the FLUJO data directory as the default (so the file browser is usable out of the box).",inputSchema:{type:"object",properties:{},required:[]},outputSchema:{type:"object",properties:{directories:{type:"array",items:{type:"string"},description:"Absolute paths of all allowed directories."}},required:["directories"]}}]}function u(a){return a.replace(/\r\n?/g,"\n").split("\n")}function v(a){return a.includes("\r\n")?"\r\n":"\n"}function w(a){return(0,g.createHash)("sha256").update(a,"utf8").digest("hex")}function x(a){return a.startsWith("\uFEFF")?{bom:"\uFEFF",body:a.slice(1)}:{bom:"",body:a}}let y="File changed after permission approval. Read it again before editing. No changes written.";function z(a){let b=Math.min(a.length,8e3);for(let c=0;c<b;c++)if(0===a[c])return!0;return!1}async function A(a,b,c){let d=b.toLowerCase(),e=[],g=!1,h=(0,f.createReadStream)(a,{encoding:"utf8"}),j=i().createInterface({input:h,crlfDelay:1/0}),k=0;try{for await(let a of j)if(k++,a.toLowerCase().includes(d)&&(e.push({line:k,text:a.slice(0,400)}),e.length>=c)){g=!0;break}}finally{j.close(),h.destroy()}return{matches:e,truncated:g}}async function B(a,b){let c=s(a.path,b),d="number"==typeof a.from||"number"==typeof a.to,e="string"==typeof a.pattern?a.pattern.trim():"",g=0;try{g=(await f.promises.stat(c)).size}catch{}if(g>1e5&&!d&&!e)return r(`File is large (${g} bytes > 100000 threshold). Reading it whole would flood the context. Provide a "pattern" to grep for (matching lines + context are returned, then read targeted ranges with "from"/"to"), or pass pattern "*" to read the whole file anyway.`);if(e&&"*"!==e&&!d){let a=await f.promises.readFile(c);if(z(a))return r(`File appears to be binary; cannot grep for a pattern: ${c}`);let b=a.toString("utf8"),d=u(b),h=d.length,i=e.toLowerCase(),j=[];for(let a=0;a<d.length&&(!d[a].toLowerCase().includes(i)||(j.push({line:a+1,text:d[a].slice(0,400)}),!(j.length>=200)));a++);let k=j.length>=200,l=new Set;for(let a of j)for(let b=a.line-2;b<=a.line+2;b++)b>=1&&b<=h&&l.add(b);let m=[...l].sort((a,b)=>a-b),n=[],p=0;for(let a of m)p&&a>p+1&&n.push("…"),n.push(`${a}: ${d[a-1]}`),p=a;let s=n.join("\n");return s.length>2e5&&(s=s.slice(0,2e5)+"\n…[truncated]"),(0,o.Wk)(c,"read",g),q({path:c,from:1,to:h,totalLines:h,truncated:k,content:j.length?s:`(no lines matched pattern ${JSON.stringify(e)})`,matches:j,contentHash:w(b)})}let h=await f.promises.readFile(c,"utf8"),i=u(h),j=i.length,k="number"==typeof a.from?Math.max(1,Math.floor(a.from)):1,l="number"==typeof a.to?Math.floor(a.to):j;l<k&&([k,l]=[l,k]),l=Math.min(l,j);let m=d?i.slice(k-1,l).join("\n"):h,n=!1;return m.length>2e5&&(m=m.slice(0,2e5)+"\n…[truncated]",n=!0),(0,o.Wk)(c,"read",g),q({path:c,from:d?k:1,to:d?l:j,totalLines:j,truncated:n,content:m,contentHash:w(h)})}async function C(a,b){let c=s(a.path,b),d="string"==typeof a.content?a.content:"",g="append"===a.mode||"insert"===a.mode?a.mode:"overwrite",h="number"==typeof a.startLine||"number"==typeof a.endLine;if(await f.promises.mkdir(e().dirname(c),{recursive:!0}),(0,o.Wk)(c,"write"),"overwrite"===g&&!h)return await f.promises.writeFile(c,d,"utf8"),q({path:c,bytesWritten:Buffer.byteLength(d,"utf8"),mode:"overwrite"});let i="";try{i=await f.promises.readFile(c,"utf8")}catch{i=""}let j="string"==typeof a.expectedHash?a.expectedHash:void 0;if(j&&w(i)!==j)return r(y);let{bom:k,body:l}=x(i);if("append"===g){let a=!l.length||l.endsWith("\n")||l.endsWith("\r\n")?"":v(l),b=k+l+a+d;return await f.promises.writeFile(c,b,"utf8"),q({path:c,bytesWritten:Buffer.byteLength(b,"utf8"),mode:"append"})}let m=v(l),n=l.length?l.split(/\r?\n/):[],p=d.split(/\r?\n/),t=n.length;if("insert"===g){let b="number"==typeof a.startLine?Math.max(1,Math.floor(a.startLine)):t+1,d=Math.min(b-1,t);n.splice(d,0,...p);let e=k+n.join(m);return await f.promises.writeFile(c,e,"utf8"),q({path:c,bytesWritten:Buffer.byteLength(e,"utf8"),mode:"insert",startLine:b,linesInserted:p.length})}let u="number"==typeof a.startLine?Math.max(1,Math.floor(a.startLine)):1,z="number"==typeof a.endLine?Math.floor(a.endLine):u;z<u&&([u,z]=[z,u]);let A=Math.max(0,(z=Math.min(z,t))-u+1);n.splice(u-1,A,...p);let B=k+n.join(m);return await f.promises.writeFile(c,B,"utf8"),q({path:c,bytesWritten:Buffer.byteLength(B,"utf8"),mode:"overwrite",startLine:u,endLine:z,linesReplaced:A})}async function D(a,b){let c=s(a.path,b),d="string"==typeof a.diff&&a.diff.trim().length>0,e=Array.isArray(a.edits)&&a.edits.length>0;if(d&&e)return r('Provide either "diff" or "edits", not both.');let g=await f.promises.readFile(c,"utf8"),h="string"==typeof a.expectedHash?a.expectedHash:void 0;if(h&&w(g)!==h)return r(y);let{bom:i,body:j}=x(g);if(d){let b,d=v(j),e=j.replace(/\r\n?/g,"\n");try{b=function(a,b){let c=a.split("\n"),d=b.split(/\r?\n/),e=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/,f=[],g=null;for(let a=0;a<d.length;a++){let b=d[a];if(void 0===b)break;let c=e.exec(b);if(c){g={oldStart:parseInt(c[1],10),ops:[]},f.push(g);continue}if(b.startsWith("--- ")||b.startsWith("+++ ")){g=null;continue}if(!g)continue;let h=b.length?b[0]:" ",i=b.length?b.slice(1):"";if(" "===h||"-"===h||"+"===h)g.ops.push({tag:h,body:i});else if("\\"===h);else throw Error(`unexpected diff line: ${JSON.stringify(b)}`)}if(0===f.length)throw Error("no unified-diff hunks (@@ ... @@) found");let h=[],i=0,j=0,k=0;for(let a of f){let b=function(a,b,c,d){if(0===b.length)return Math.min(Math.max(c,d),a.length);let e=a.length-b.length,f=c=>{if(c<d||c>e)return!1;for(let d=0;d<b.length;d++)if(a[c+d]!==b[d])return!1;return!0},g=Math.max(d,c);if(f(g))return g;let h=Math.max(g-d,e-g);for(let a=1;a<=h;a++){if(f(g-a))return g-a;if(f(g+a))return g+a}throw Error(`could not locate hunk near line ${c+1}; its context/removed lines do not match the file. First expected line: ${JSON.stringify(b[0])}`)}(c,a.ops.filter(a=>" "===a.tag||"-"===a.tag).map(a=>a.body),Math.max(0,a.oldStart-1),i);if(b<i)throw Error("overlapping or out-of-order hunks");for(;i<b;)h.push(c[i]),i++;for(let b of a.ops)" "===b.tag?(h.push(c[i]),i++):"-"===b.tag?(i++,k++):(h.push(b.body),j++)}for(;i<c.length;)h.push(c[i]),i++;return{result:h.join("\n"),added:j,removed:k}}(e,a.diff)}catch(a){return r(`Diff apply failed: ${a instanceof Error?a.message:String(a)}. No changes written.`)}let g=i+("\r\n"===d?b.result.replace(/\n/g,"\r\n"):b.result);return await f.promises.writeFile(c,g,"utf8"),(0,o.Wk)(c,"write"),q({path:c,applied:!0,mode:"diff",diff:{added:b.added,removed:b.removed}})}let k=Array.isArray(a.edits)?a.edits:[];if(0===k.length)return r('Provide a non-empty "edits" array of { oldText, newText } or a "diff" string.');let l="number"==typeof a.startLine?a.startLine:void 0,m="number"==typeof a.endLine?a.endLine:void 0,n=v(j),p=j.replace(/\r\n?/g,"\n"),t=0;for(let a of k){let b="string"==typeof a.oldText?a.oldText.replace(/\r\n?/g,"\n"):"",d="string"==typeof a.newText?a.newText.replace(/\r\n?/g,"\n"):"";if(!b)return r(`Edit #${t+1} has an empty "oldText".`);let e="number"==typeof a.startLine?a.startLine:l,f="number"==typeof a.endLine?a.endLine:m,g=void 0!==e||void 0!==f,h=[];for(let a=p.indexOf(b);-1!==a;a=p.indexOf(b,a+1))h.push(a);if(0===h.length)return r(`Edit #${t+1}: "oldText" not found in ${c}. No changes written.`);let i=-1;if(g){let{lo:a,hi:b}=function(a,b,c){if(void 0===b&&void 0===c)return{lo:0,hi:a.length};let d=a.split("\n"),e=Math.max(1,Math.floor(b??1)),f=Math.min(d.length,Math.floor(c??d.length)),g=0;for(let a=0;a<e-1&&a<d.length;a++)g+=d[a].length+1;let h=g;for(let a=e-1;a<f&&a<d.length;a++)h+=d[a].length+ +(a<d.length-1);return{lo:g,hi:Math.max(g,h)}}(p,e,f),c=h.filter(c=>c>=a&&c<b);1===c.length&&(i=c[0])}if(-1===i)if(1!==h.length)return r(`Edit #${t+1}: "oldText" is ambiguous (appears ${h.length} times); add more surrounding context or a tighter startLine/endLine so exactly one occurrence is in range. No changes written.`);else i=h[0];p=p.slice(0,i)+d+p.slice(i+b.length),t+=1}let z=function(a,b){let c=u(a),d=u(b),e=new Map;for(let a of d)e.set(a,(e.get(a)??0)+1);let f=new Map;for(let a of c)f.set(a,(f.get(a)??0)+1);let g=0;for(let[a,b]of f)g+=Math.max(0,b-(e.get(a)??0));let h=0;for(let[a,b]of e)h+=Math.max(0,b-(f.get(a)??0));return{added:h,removed:g}}(j,p),A=i+("\r\n"===n?p.replace(/\n/g,"\r\n"):p);return await f.promises.writeFile(c,A,"utf8"),(0,o.Wk)(c,"write"),q({path:c,mode:"edits",editsApplied:t,diff:z})}async function E(a){try{let b=await f.promises.lstat(a);if(b.isFile())return"file";if(b.isDirectory())return"directory";return"other"}catch{return"other"}}async function F(a,b){let c=s(a.path,b),d=await f.promises.readdir(c),g=await Promise.all(d.map(async a=>{let b=e().join(c,a),d=await E(b),g=0;try{g=(await f.promises.stat(b)).size}catch{}return{name:a,type:d,size:g}}));return g.sort((a,b)=>a.type===b.type?a.name.localeCompare(b.name):"directory"===a.type?-1:1),q({path:c,entries:g})}async function G(a,b){let c=s(a.path,b),d=Math.min("number"==typeof a.depth?Math.max(1,Math.floor(a.depth)):3,10),g=0,h=!1;async function i(a,b){let c;if(b>d||h)return[];try{c=await f.promises.readdir(a)}catch{return[]}c.sort((a,b)=>a.localeCompare(b));let j=[];for(let f of c){if(++g>5e3){h=!0;break}let c=e().join(a,f),k=await E(c),l={name:f,type:k};"directory"===k&&b<d&&(l.children=await i(c,b+1)),j.push(l)}return j}let j=await i(c,1);return q({path:c,depth:d,truncated:h,tree:j})}async function H(a,b,c){let d;try{d=await f.promises.stat(a)}catch{return[]}if(!d.isFile()||d.size>5e6)return[];try{let b=await f.promises.open(a,"r");try{let a=Buffer.alloc(Math.min(8e3,d.size));if(a.length&&await b.read(a,0,a.length,0),z(a))return[]}finally{await b.close()}}catch{return[]}let{matches:e}=await A(a,b,Math.max(1,c));return e.map(b=>({path:a,line:b.line,text:b.text}))}async function I(a,b){let c=s(a.path,b),d="string"==typeof a.namePattern?a.namePattern.toLowerCase():"",g="string"==typeof a.content?a.content:"";if(!d&&!g)return r('Provide "namePattern" and/or "content" to search for.');let h=[],i=!1,j=[];async function k(a){let b;if(!i){try{b=await f.promises.readdir(a)}catch{return}for(let c of b){if(i)return;let b=e().join(a,c),f=await E(b);if(d&&c.toLowerCase().includes(d)&&(h.push({path:b}),h.length>=1e3)){i=!0;return}"directory"===f?await k(b):"file"===f&&g&&j.push(b)}}}if(await k(c),g&&!i)for(let a=0;a<j.length&&!i;a+=16){let b=j.slice(a,a+16);for(let a of(await Promise.all(b.map(a=>H(a,g,1e3))))){for(let b of a)if(h.push(b),h.length>=1e3){i=!0;break}if(i)break}}return q({matches:h,truncated:i})}async function J(a,b){let c=s(a.path,b),d=await f.promises.stat(c);return q({path:c,type:d.isFile()?"file":d.isDirectory()?"directory":"other",size:d.size,isFile:d.isFile(),isDirectory:d.isDirectory(),createdAt:d.birthtime.toISOString(),modifiedAt:d.mtime.toISOString()})}async function K(a,b){let c=s(a.path,b);return await f.promises.mkdir(c,{recursive:!0}),q({path:c,created:!0})}async function L(a,b){let c=s(a.source,b),d=s(a.destination,b);return await f.promises.mkdir(e().dirname(d),{recursive:!0}),await f.promises.rename(c,d),q({source:c,destination:d})}async function M(a,b){let c=s(a.path,b),d=!0===a.recursive;return await f.promises.rm(c,{recursive:d,force:!1}),q({path:c,deleted:!0})}async function N(a){return q({directories:a})}async function O(a,b,c){try{if("file_browser_ui"===a)return function(a,b=!1){return{content:[{type:"text",text:a}],...b?{isError:!0}:{}}}("File browser shown to the user. Waiting for them to select a file — their choice will arrive as a follow-up message. Do not proceed until then.");let d=await (0,m.loadEffectiveRoots)(l.K3,"FLUJO_FS_ROOTS",c);switch(a){case"read_file":return await B(b,d);case"write_file":return await C(b,d);case"edit_file":return await D(b,d);case"list_dir":return await F(b,d);case"dir_tree":return await G(b,d);case"search":return await I(b,d);case"get_file_info":return await J(b,d);case"create_directory":return await K(b,d);case"move":return await L(b,d);case"delete":return await M(b,d);case"get_allowed_directories":return await N(d);default:return r(`Unknown tool on the built-in filesystem server: ${a}`)}}catch(c){let b=c instanceof Error?c.message:String(c);return p.warn("filesystemCallTool failed",{toolName:a,err:c}),{isError:!0,content:[{type:"text",text:JSON.stringify({error:b})}],structuredContent:{error:b}}}}}};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";exports.id=848,exports.ids=[848],exports.modules={90848:(a,b,c)=>{c.d(b,{aE:()=>i});var d=c(30850),e=c(5643),f=c(25225),g=c(86709);"u">typeof require?require:"u">typeof Proxy&&new Proxy(function(a){if("u">typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')},{get:(a,b)=>("u">typeof require?require:a)[b]});class h extends d.Zs{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(a,b){}_ensureEventSlot(a){let b=this._eventSlots.get(a);if(!b){let c=this.eventSchemas[a];if(!c)throw Error(`Unknown event: ${String(a)}`);b={listeners:[]},this._eventSlots.set(a,b);let d=c.shape.method.value;this._registeredMethods.add(d);let e=b;super.setNotificationHandler(c,b=>{let c=b.params;for(let b of(this.onEventDispatch(a,c),e.onHandler?.(c),[...e.listeners]))b(c)})}return b}setEventHandler(a,b){let c=this._ensureEventSlot(a);c.onHandler&&b&&console.warn(`[MCP Apps] on${String(a)} handler replaced. Use addEventListener("${String(a)}", …) to add multiple listeners without replacing.`),c.onHandler=b}getEventHandler(a){return this._eventSlots.get(a)?.onHandler}addEventListener(a,b){this._ensureEventSlot(a).listeners.push(b)}removeEventListener(a,b){let c=this._eventSlots.get(a);if(!c)return;let d=c.listeners.indexOf(b);-1!==d&&c.listeners.splice(d,1)}setRequestHandler=(a,b)=>{this._assertMethodNotRegistered(a,"setRequestHandler"),super.setRequestHandler(a,b)};setNotificationHandler=(a,b)=>{this._assertMethodNotRegistered(a,"setNotificationHandler"),super.setNotificationHandler(a,b)};warnIfRequestHandlerReplaced(a,b,c){b&&c&&console.warn(`[MCP Apps] ${a} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(a,b)=>{let c=a.shape.method.value;this._registeredMethods.add(c),super.setRequestHandler(a,b)};_assertMethodNotRegistered(a,b){let c=a.shape.method.value;if(this._registeredMethods.has(c))throw Error(`Handler for "${c}" already registered (via ${b}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(c)}}var i="2026-01-26";class j{eventTarget;eventSource;messageListener;constructor(a=window.parent,b){this.eventTarget=a,this.eventSource=b,this.messageListener=a=>{if(b&&a.source!==this.eventSource)return void console.debug("Ignoring message from unknown source",a);let c=e.OR.safeParse(a.data);c.success?(console.debug("Parsed message",c.data),this.onmessage?.(c.data)):a.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",c.error.message,a):(console.error("Failed to parse message",c.error.message,a),this.onerror?.(Error("Invalid JSON-RPC message received: "+c.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(a,b){"ui/notifications/tool-input-partial"!==a.method&&console.debug("Sending message",a),this.eventTarget.postMessage(a,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var k=f.union([f.literal("light"),f.literal("dark")]).describe("Color theme preference for the host environment."),l=f.union([f.literal("inline"),f.literal("fullscreen"),f.literal("pip")]).describe("Display mode for UI presentation."),m=f.union([f.literal("--color-background-primary"),f.literal("--color-background-secondary"),f.literal("--color-background-tertiary"),f.literal("--color-background-inverse"),f.literal("--color-background-ghost"),f.literal("--color-background-info"),f.literal("--color-background-danger"),f.literal("--color-background-success"),f.literal("--color-background-warning"),f.literal("--color-background-disabled"),f.literal("--color-text-primary"),f.literal("--color-text-secondary"),f.literal("--color-text-tertiary"),f.literal("--color-text-inverse"),f.literal("--color-text-ghost"),f.literal("--color-text-info"),f.literal("--color-text-danger"),f.literal("--color-text-success"),f.literal("--color-text-warning"),f.literal("--color-text-disabled"),f.literal("--color-border-primary"),f.literal("--color-border-secondary"),f.literal("--color-border-tertiary"),f.literal("--color-border-inverse"),f.literal("--color-border-ghost"),f.literal("--color-border-info"),f.literal("--color-border-danger"),f.literal("--color-border-success"),f.literal("--color-border-warning"),f.literal("--color-border-disabled"),f.literal("--color-ring-primary"),f.literal("--color-ring-secondary"),f.literal("--color-ring-inverse"),f.literal("--color-ring-info"),f.literal("--color-ring-danger"),f.literal("--color-ring-success"),f.literal("--color-ring-warning"),f.literal("--font-sans"),f.literal("--font-mono"),f.literal("--font-weight-normal"),f.literal("--font-weight-medium"),f.literal("--font-weight-semibold"),f.literal("--font-weight-bold"),f.literal("--font-text-xs-size"),f.literal("--font-text-sm-size"),f.literal("--font-text-md-size"),f.literal("--font-text-lg-size"),f.literal("--font-heading-xs-size"),f.literal("--font-heading-sm-size"),f.literal("--font-heading-md-size"),f.literal("--font-heading-lg-size"),f.literal("--font-heading-xl-size"),f.literal("--font-heading-2xl-size"),f.literal("--font-heading-3xl-size"),f.literal("--font-text-xs-line-height"),f.literal("--font-text-sm-line-height"),f.literal("--font-text-md-line-height"),f.literal("--font-text-lg-line-height"),f.literal("--font-heading-xs-line-height"),f.literal("--font-heading-sm-line-height"),f.literal("--font-heading-md-line-height"),f.literal("--font-heading-lg-line-height"),f.literal("--font-heading-xl-line-height"),f.literal("--font-heading-2xl-line-height"),f.literal("--font-heading-3xl-line-height"),f.literal("--border-radius-xs"),f.literal("--border-radius-sm"),f.literal("--border-radius-md"),f.literal("--border-radius-lg"),f.literal("--border-radius-xl"),f.literal("--border-radius-full"),f.literal("--border-width-regular"),f.literal("--shadow-hairline"),f.literal("--shadow-sm"),f.literal("--shadow-md"),f.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),n=f.record(m.describe(`Style variables for theming MCP apps.
|
|
2
|
+
|
|
3
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
4
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
5
|
+
|
|
6
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
7
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),f.union([f.string(),f.undefined()]).describe(`Style variables for theming MCP apps.
|
|
8
|
+
|
|
9
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
10
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
11
|
+
|
|
12
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
13
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
|
|
14
|
+
|
|
15
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
16
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
17
|
+
|
|
18
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
19
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),o=(f.object({method:f.literal("ui/open-link"),params:f.object({url:f.string().describe("URL to open in the host's browser")})}),f.object({isError:f.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough()),p=f.object({isError:f.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),q=f.object({isError:f.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough(),r=(f.object({method:f.literal("ui/notifications/sandbox-proxy-ready"),params:f.object({})}),f.object({connectDomains:f.array(f.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
|
|
20
|
+
|
|
21
|
+
- Maps to CSP \`connect-src\` directive
|
|
22
|
+
- Empty or omitted → no network connections (secure default)`),resourceDomains:f.array(f.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:f.array(f.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:f.array(f.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")})),s=f.object({camera:f.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:f.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:f.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:f.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")}),t=(f.object({method:f.literal("ui/notifications/size-changed"),params:f.object({width:f.number().optional().describe("New width in pixels."),height:f.number().optional().describe("New height in pixels.")})}),f.object({method:f.literal("ui/notifications/tool-input"),params:f.object({arguments:f.record(f.string(),f.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})})),u=f.object({method:f.literal("ui/notifications/tool-input-partial"),params:f.object({arguments:f.record(f.string(),f.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),v=f.object({method:f.literal("ui/notifications/tool-cancelled"),params:f.object({reason:f.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),w=f.object({fonts:f.string().optional()}),x=f.object({variables:n.optional().describe("CSS variables for theming the app."),css:w.optional().describe("CSS blocks that apps can inject.")}),y=f.object({method:f.literal("ui/resource-teardown"),params:f.object({})}),z=(f.record(f.string(),f.unknown()),f.object({text:f.object({}).optional().describe("Host supports text content blocks."),image:f.object({}).optional().describe("Host supports image content blocks."),audio:f.object({}).optional().describe("Host supports audio content blocks."),resource:f.object({}).optional().describe("Host supports resource content blocks."),resourceLink:f.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:f.object({}).optional().describe("Host supports structured content.")})),A=(f.object({method:f.literal("ui/notifications/request-teardown"),params:f.object({}).optional()}),f.object({experimental:f.object({}).optional().describe("Experimental features (structure TBD)."),openLinks:f.object({}).optional().describe("Host supports opening external URLs."),downloadFile:f.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:f.object({listChanged:f.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:f.object({listChanged:f.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:f.object({}).optional().describe("Host accepts log messages."),sandbox:f.object({permissions:s.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:r.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:z.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:z.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:f.object({tools:f.object({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")})),B=f.object({experimental:f.object({}).optional().describe("Experimental features (structure TBD)."),tools:f.object({listChanged:f.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:f.array(l).optional().describe("Display modes the app supports.")}),C=(f.object({method:f.literal("ui/notifications/initialized"),params:f.object({}).optional()}),f.object({csp:r.optional().describe("Content Security Policy configuration for UI resources."),permissions:s.optional().describe("Sandbox permissions requested by the UI resource."),domain:f.string().optional().describe(`Dedicated origin for view sandbox.
|
|
23
|
+
|
|
24
|
+
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
|
|
25
|
+
|
|
26
|
+
**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
|
|
27
|
+
- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
|
|
28
|
+
- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
|
|
29
|
+
|
|
30
|
+
If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:f.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.
|
|
31
|
+
|
|
32
|
+
Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
|
|
33
|
+
|
|
34
|
+
- \`true\`: request visible border + background
|
|
35
|
+
- \`false\`: request no visible border + background
|
|
36
|
+
- omitted: host decides border`)}),f.object({method:f.literal("ui/request-display-mode"),params:f.object({mode:l.describe("The display mode being requested.")})}),f.object({mode:l.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough()),D=f.union([f.literal("model"),f.literal("app")]).describe("Tool visibility scope - who can access the tool."),E=(f.object({resourceUri:f.string().optional(),visibility:f.array(D).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
37
|
+
- "model": Tool visible to and callable by the agent
|
|
38
|
+
- "app": Tool callable by the app from this server only`),csp:f.never().optional(),permissions:f.never().optional()}),f.object({mimeTypes:f.array(f.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),f.object({method:f.literal("ui/download-file"),params:f.object({contents:f.array(f.union([e.w9,e.u$])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),f.object({method:f.literal("ui/message"),params:f.object({role:f.literal("user").describe('Message role, currently only "user" is supported.'),content:f.array(e.WK).describe("Message content blocks (text, image, etc.).")})}),f.object({method:f.literal("ui/notifications/sandbox-resource-ready"),params:f.object({html:f.string().describe("HTML content to load into the inner iframe."),sandbox:f.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:r.optional().describe("CSP configuration from resource metadata."),permissions:s.optional().describe("Sandbox permissions from resource metadata.")})}),f.object({method:f.literal("ui/notifications/tool-result"),params:e.TF.describe("Standard MCP tool execution result.")})),F=f.object({toolInfo:f.object({id:e.UJ.optional().describe("JSON-RPC id of the tools/call request."),tool:e.Dn.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:k.optional().describe("Current color theme preference."),styles:x.optional().describe("Style configuration for theming the app."),displayMode:l.optional().describe("How the UI is currently displayed."),availableDisplayModes:f.array(l).optional().describe("Display modes the host supports."),containerDimensions:f.union([f.object({height:f.number().describe("Fixed container height in pixels.")}),f.object({maxHeight:f.union([f.number(),f.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(f.union([f.object({width:f.number().describe("Fixed container width in pixels.")}),f.object({maxWidth:f.union([f.number(),f.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
39
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:f.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:f.string().optional().describe("User's timezone in IANA format."),userAgent:f.string().optional().describe("Host application identifier."),platform:f.union([f.literal("web"),f.literal("desktop"),f.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:f.object({touch:f.boolean().optional().describe("Whether the device supports touch input."),hover:f.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:f.object({top:f.number().describe("Top safe area inset in pixels."),right:f.number().describe("Right safe area inset in pixels."),bottom:f.number().describe("Bottom safe area inset in pixels."),left:f.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),G=f.object({method:f.literal("ui/notifications/host-context-changed"),params:F.describe("Partial context update containing only changed fields.")}),H=(f.object({method:f.literal("ui/update-model-context"),params:f.object({content:f.array(e.WK).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:f.record(f.string(),f.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),f.object({method:f.literal("ui/initialize"),params:f.object({appInfo:e.a8.describe("App identification (name and version)."),appCapabilities:B.describe("Features and capabilities this app provides."),protocolVersion:f.string().describe("Protocol version this app supports.")})}),f.object({protocolVersion:f.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:e.a8.describe("Host application identification and version."),hostCapabilities:A.describe("Features and capabilities provided by the host."),hostContext:F.describe("Rich context about the host environment.")}).passthrough()),I={target:"draft-2020-12"};async function J(a,b){let d=a["~standard"];if(d.jsonSchema)return d.jsonSchema[b](I);if("zod"===d.vendor){let{z:d}=await c.e(5829).then(c.bind(c,95829));return d.toJSONSchema(a,{io:b})}throw Error(`Schema (vendor: ${d.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function K(a,b,c=""){let d=await a["~standard"].validate(b);if(d.issues)throw Error(c+d.issues.map(a=>{let b=a.path?.map(a=>"object"==typeof a?a.key:a).join(".");return b?`${b}: ${a.message}`:a.message}).join("; "));return d.value}class L extends h{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(a){if(this._initializedSent)return;let b=`[ext-apps] App.${a}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(b);console.warn(`${b}. This will throw in a future release.`)}eventSchemas={toolinput:t,toolinputpartial:u,toolresult:E,toolcancelled:v,hostcontextchanged:G};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming(a){if(!L.ONE_SHOT_EVENTS.has(a)||this._everHadListener.has(a)||(this._everHadListener.add(a),!this._initializedSent))return;let b=`[ext-apps] "${String(a)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(b);console.warn(b)}setEventHandler(a,b){b&&this._assertHandlerTiming(a),super.setEventHandler(a,b)}addEventListener(a,b){this._assertHandlerTiming(a),super.addEventListener(a,b)}onEventDispatch(a,b){"hostcontextchanged"===a&&(this._hostContext={...this._hostContext,...b})}constructor(a,b={},c={autoResize:!0}){super(c),this._appInfo=a,this._capabilities=b,this.options=c,c.allowUnsafeEval||g.$W({jitless:!0}),this.setRequestHandler(e.tC,a=>(console.log("Received ping:",a.params),{})),this.setEventHandler("hostcontextchanged",void 0)}registerCapabilities(a){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=(0,d.hG)(this._capabilities,a)}registerTool(a,b,c){if(this._registeredTools[a])throw Error(`Tool ${a} is already registered`);let d=this,e=()=>{d._initializedSent&&d._capabilities.tools?.listChanged&&d.sendToolListChanged()},f=void 0!==b.inputSchema,g={title:b.title,description:b.description,inputSchema:b.inputSchema,outputSchema:b.outputSchema,annotations:b.annotations,_meta:b._meta,enabled:!0,enable(){this.enabled=!0,e()},disable(){this.enabled=!1,e()},update(a){Object.assign(this,a),e()},remove(){d._registeredTools[a]===g&&(delete d._registeredTools[a],e())},handler:async(b,d)=>{let e;if(!g.enabled)throw Error(`Tool ${a} is disabled`);if(f){let f=g.inputSchema,h=f?await K(f,b??{},`Invalid input for tool ${a}: `):b??{};e=await c(h,d)}else e=await c(d);return g.outputSchema&&!e.isError&&(e.structuredContent=await K(g.outputSchema,e.structuredContent,`Invalid output for tool ${a}: `)),e}};return this._registeredTools[a]=g,this._capabilities.tools||this.transport||this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),e(),g}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(a,b)=>{let c=this._registeredTools[a.name];if(!c)throw Error(`Tool ${a.name} not found`);return c.handler(a.arguments,b)},this.onlisttools=async(a,b)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([a,b])=>b.enabled).map(async([a,b])=>{let c={name:a,title:b.title,description:b.description,inputSchema:b.inputSchema?await J(b.inputSchema,"input"):{type:"object",properties:{}}};return b.outputSchema&&(c.outputSchema=await J(b.outputSchema,"output")),b.annotations&&(c.annotations=b.annotations),b._meta&&(c._meta=b._meta),c}))}))}async sendToolListChanged(a={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:a})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(a){this.setEventHandler("toolinput",a)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(a){this.setEventHandler("toolinputpartial",a)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(a){this.setEventHandler("toolresult",a)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(a){this.setEventHandler("toolcancelled",a)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(a){this.setEventHandler("hostcontextchanged",a)}_onteardown;get onteardown(){return this._onteardown}set onteardown(a){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,a),this._onteardown=a,this.replaceRequestHandler(y,(a,b)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(a.params,b)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(a){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,a),this._oncalltool=a,this.replaceRequestHandler(e.FT,(a,b)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(a.params,b)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(a){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,a),this._onlisttools=a,this.replaceRequestHandler(e.gW,(a,b)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(a.params,b)})}assertCapabilityForMethod(a){if("sampling/createMessage"===a&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${a})`)}assertRequestHandlerCapability(a){switch(a){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${a})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${a} registered`)}}assertNotificationCapability(a){}assertTaskCapability(a){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(a){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(a,b){if(this._assertInitialized("callServerTool"),"string"==typeof a)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${a}"). Did you mean: callServerTool({ name: "${a}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:a},e.TF,{onprogress:()=>{},resetTimeoutOnProgress:!0,...b})}async readServerResource(a,b){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:a},e.ve,b)}async listServerResources(a,b){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:a},e.cv,b)}async createSamplingMessage(a,b){this._assertInitialized("createSamplingMessage");let c=a.tools?e.TI:e.K1;return await this.request({method:"sampling/createMessage",params:a},c,b)}sendMessage(a,b){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:a},q,b)}sendLog(a){return this.notification({method:"notifications/message",params:a})}updateModelContext(a,b){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:a},e.wR,b)}openLink(a,b){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:a},o,b)}sendOpenLink=this.openLink;downloadFile(a,b){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:a},p,b)}requestTeardown(a={}){return this.notification({method:"ui/notifications/request-teardown",params:a})}requestDisplayMode(a,b){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:a},C,b)}sendSizeChanged(a){return this.notification({method:"ui/notifications/size-changed",params:a})}setupSizeChangedNotifications(){let a=!1,b=0,c=0,d=()=>{a||(a=!0,requestAnimationFrame(()=>{a=!1;let d=document.documentElement,e=d.style.height;d.style.height="max-content";let f=Math.ceil(d.getBoundingClientRect().height);d.style.height=e;let g=Math.ceil(window.innerWidth);(g!==b||f!==c)&&(b=g,c=f,this.sendSizeChanged({width:g,height:f}))}))};d();let e=new ResizeObserver(d);return e.observe(document.documentElement),e.observe(document.body),()=>e.disconnect()}async connect(a=new j(window.parent,window.parent),b){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(a);try{let a=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:i}},H,b);if(void 0===a)throw Error(`Server sent invalid initialize result: ${a}`);this._hostCapabilities=a.hostCapabilities,this._hostInfo=a.hostInfo,this._hostContext=a.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(a){throw this.close(),a}}}}};
|