@agimon-ai/po-web-components 0.0.0-alpha.13 → 0.0.0-alpha.130
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/LICENSE +191 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +14 -3
- package/dist/index.mjs +1 -1
- package/dist/markdownMediaSlot.cjs +1 -0
- package/dist/markdownMediaSlot.d.mts +2 -0
- package/dist/markdownMediaSlot.mjs +1 -0
- package/dist/mcpAppHost.cjs +1 -0
- package/dist/mcpAppHost.d.mts +4 -0
- package/dist/mcpAppHost.mjs +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/client.d.mts +15 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/api.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/middleware.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/resource.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/uploads.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/index.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/parser.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +17 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts +9 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +17 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +12 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.mts +10 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.mts +12 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.mts +8 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts +8 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts +9 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts +9 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts +9 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/files.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/index.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +8 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/messages.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/models.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/context.d.mts +103 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/context.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/events.d.mts +235 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/events.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/fiber.d.mts +168 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/fiber.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/index.d.mts +8 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/logger.d.mts +92 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/logger.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/reflect.d.mts +188 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/reflect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/registry.d.mts +199 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/registry.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/service.d.mts +57 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/service.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/utils.d.mts +37 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/utils.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cosmokit@1.8.6/node_modules/@deepseek-ai/cosmokit/lib/types/misc.d.mts +9 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cosmokit@1.8.6/node_modules/@deepseek-ai/cosmokit/lib/types/misc.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/context/index.d.mts +17 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/context/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/delta/index.d.mts +21 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/delta/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/json.d.mts +6 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/json.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/sqlite/database.d.mts +42 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/sqlite/database.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-config.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.mts +4 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/context.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/types.d.mts +21 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/types.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/index.d.mts +34 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/models-store.d.mts +17 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/models-store.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/models.d.mts +7 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.d.mts +141 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/model-schema.d.mts +51 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/model-schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/telemetry.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/types.d.mts +309 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/types.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.mts +16 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/identity.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/model-operations.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/streaming-json.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/text.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/transcript.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/documents.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/entries.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/env/index.d.mts +301 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/env/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/errors.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/agent.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/compaction.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/define.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/generation.d.mts +5 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/harness.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/inbox.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/live.d.mts +5 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/provider.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/registry-reader.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/registry.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/scheduler.d.mts +6 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/task-graph.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/tool.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/transcript.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/types.d.mts +5 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/usage.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/view.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/index.d.mts +25 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/session/conversation-tails.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/session/session.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/session/transaction.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/storage/memory.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/storage/sqlite/index.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/storage/sqlite/storage.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/tasks.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/timers.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/types.d.mts +548 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/types.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/builders.d.mts +23 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/builders.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/typebox-static.d.mts +40 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/typebox-static.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/index.d.mts +47 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/metrics.d.mts +31 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/metrics.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@modelcontextprotocol_server@2.3.1/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts +2 -2
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts +79 -0
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/azure.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/bedrock.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/client.d.mts +36 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/api-promise.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/pagination.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/resource.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/streaming.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/uploads.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/index.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/auth/x509-transport-registry.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/bedrock.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/parse.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/provider.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/request-options.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/uploads.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/utils/log.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/AssistantStream.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/ChatCompletionRunner.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/ChatCompletionStream.d.mts +8 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/ResponsesParser.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/RunnableFunction.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/agents/agent-session-stream.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/parser.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/responses/EventTypes.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/responses/ResponseStream.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/pagination.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/admin.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/admin-api-keys.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/audit-logs.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/certificates.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/data-retention.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/groups/groups.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/groups/roles.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/groups/users.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/invites.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/organization.d.mts +13 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/certificates.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/data-retention.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/groups/groups.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/groups/roles.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/model-permissions.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/projects.d.mts +16 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/rate-limits.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/roles.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/spend-limit.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/users/roles.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/users/users.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/roles.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/spend-alerts.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/spend-limit.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/usage.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/users/roles.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/users/users.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/audio/audio.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/audio/speech.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/audio/transcriptions.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/audio/translations.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/batches.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/agents.d.mts +9 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/environments/environments.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/environments/files.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/environments/templates.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/artifacts.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/events.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/sessions.d.mts +13 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/subagents/items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/subagents/subagents.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/subagents/turns/items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/subagents/turns/turns.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/turns.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/vaults/credentials.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/vaults/vaults.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/assistants.d.mts +9 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/beta.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/chatkit/chatkit.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/chatkit/sessions.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/chatkit/threads.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/realtime/realtime.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/realtime/sessions.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/responses/input-items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/responses/input-tokens.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/responses/responses.d.mts +8 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/threads/messages.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/threads/runs/runs.d.mts +11 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/threads/runs/steps.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/threads/threads.d.mts +9 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/chat.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/completions/completions.d.mts +14 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/completions/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/completions/messages.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/completions.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/completions.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/containers/containers.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/containers/files/content.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/containers/files/files.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/content-provenance-checks.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/conversations/conversations.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/conversations/items.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/embeddings.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/evals/evals.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/evals/runs/output-items.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/evals/runs/runs.d.mts +8 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/files.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/jobs/jobs.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/methods.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/graders/grader-models.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/graders/graders.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/images.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/index.d.mts +26 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/live/forks/forks.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/live/live.d.mts +8 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/live/sessions.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/live/sideband/sideband.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/models.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/moderations.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/realtime/calls.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/realtime/client-secrets.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/realtime/realtime.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/responses/input-items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/responses/input-tokens.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/responses/responses.d.mts +10 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/safety/alerts.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/safety/safety.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/skills/content.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/skills/skills.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/skills/versions/content.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/skills/versions/versions.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/uploads/parts.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/uploads/uploads.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/vector-stores/file-batches.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/vector-stores/files.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/vector-stores/vector-stores.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/videos.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/webhooks/event-types.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/webhooks/webhooks.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/uploads.d.mts +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/pointer/pointer_get.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_canonical.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_canonical.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_comparer.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_comparer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_elements.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_elements.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/additionalProperties.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/additionalProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/allOf.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/allOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/anyOf.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/anyOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/const.d.mts +4 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/const.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/enum.d.mts +4 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/if.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/if.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/items.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/items.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/oneOf.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/oneOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/patternProperties.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/patternProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/prefixItems.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/prefixItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/properties.d.mts +23 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/properties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/propertyNames.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/propertyNames.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/ref.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/ref.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/required.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/required.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/schema.d.mts +43 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/static.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/static.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/type.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalItems.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalProperties.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/allOf.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/allOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/anyOf.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/anyOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/const.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/const.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/else.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/else.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/enum.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/if.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/if.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/items.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/items.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/maxItems.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/maxItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/minItems.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/minItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/oneOf.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/oneOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/patternProperties.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/patternProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/prefixItems.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/prefixItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/properties.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/properties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/propertyNames.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/propertyNames.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/ref.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/ref.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/required.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/required.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/schema.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/then.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/then.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/type.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/memory/assign.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/memory/assign.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/unreachable/unreachable.d.mts +4 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/unreachable/unreachable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_immutable.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_immutable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_optional.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_optional.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_readonly.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_readonly.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_remove_optional.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_remove_optional.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/capitalize.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/capitalize.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/conditional.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/conditional.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/constructor_parameters.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/constructor_parameters.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/exclude.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/exclude.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/extract.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/extract.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/indexed.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/indexed.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/instance_type.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/instance_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/interface.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/interface.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/keyof.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/keyof.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/lowercase.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/lowercase.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/mapped.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/mapped.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/non_nullable.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/non_nullable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/omit.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/omit.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/parameters.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/parameters.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/partial.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/partial.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/pick.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/pick.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/readonly_object.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/readonly_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/required.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/required.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/return_type.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/return_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uncapitalize.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uncapitalize.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uppercase.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uppercase.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/with.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/with.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +21 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/instantiate.d.mts +21 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_target.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/check.d.mts +22 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/check.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +23 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +25 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/extends.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/target.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/target.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/compare.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/composite.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +22 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/property.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/property.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/operation.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/operation.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/operation.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/operation.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/keys.d.mts +5 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/keys.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/union.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +5 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +20 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instantiate.d.mts +69 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/interface/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +33 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_any.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_record.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +19 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/module/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/module/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/collapse.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/collapse.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_object.d.mts +5 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_type.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_union.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/from_type.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_object.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_type.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_union.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/patterns/pattern.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/from_type.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +20 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key.d.mts +26 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_any.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_number.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_string.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/ref/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_object.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_type.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_union.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/rest/spread.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +24 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/decode.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +34 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/encode.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/static.d.mts +21 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/static.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/this/expand_this.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/this/expand_this.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/tuple/to_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/with/instantiate.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/with/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/any.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/any.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/array.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/bigint.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/bigint.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/boolean.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/boolean.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/constructor.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/constructor.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/dependent.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/enum.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_left.d.mts +55 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_left.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_right.d.mts +26 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_right.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/function.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/function.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/inference.d.mts +27 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/inference.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/integer.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/integer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/intersect.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/literal.d.mts +20 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/never.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/never.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/null.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/null.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/number.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/number.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/object.d.mts +28 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/parameters.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/parameters.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/record.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/record.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/result.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/result.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/return_type.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/return_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/string.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/string.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/symbol.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/symbol.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/template_literal.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/tuple.d.mts +24 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/undefined.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/undefined.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/union.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/unknown.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/unknown.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/void.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/void.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/mapping.d.mts +23 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/mapping.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/parser.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/parser.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/const.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/const.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/char.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/char.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/take.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/take.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/trim.d.mts +20 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/trim.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until_1.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until_1.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_codec.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_codec.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_immutable.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_immutable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_optional.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_optional.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_readonly.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_readonly.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/any.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/any.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/array.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/bigint.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/bigint.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/boolean.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/boolean.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/call.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/call.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/constructor.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/constructor.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/cyclic.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/deferred.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/deferred.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/dependent.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/enum.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/function.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/function.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/generic.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/generic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/identifier.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/identifier.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/infer.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/infer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/integer.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/integer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/intersect.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/literal.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/never.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/never.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/null.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/null.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/number.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/number.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/object.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/parameter.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/parameter.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/properties.d.mts +28 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/properties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/record.d.mts +37 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/record.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/ref.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/ref.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/rest.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/rest.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/schema.d.mts +88 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/static.d.mts +40 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/static.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/string.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/string.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/symbol.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/symbol.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/template_literal.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/this.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/this.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/tuple.d.mts +24 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/undefined.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/undefined.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/union.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unknown.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unknown.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unsafe.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unsafe.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/void.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/void.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/agent.d.mts +4 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/api.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/balanced-pool.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/cache.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/client-stats.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/client.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/cookies.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/diagnostics-channel.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/dispatcher.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/env-http-proxy-agent.d.mts +3 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/errors.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/eventsource.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/fetch.d.mts +3 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/formdata.d.mts +9 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/formdata.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/global-dispatcher.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/h2c-client.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/handlers.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/index.d.mts +31 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/interceptors.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-agent.d.mts +4 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-call-history.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-client.d.mts +4 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-errors.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-interceptor.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-pool.d.mts +4 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/pool-stats.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/pool.d.mts +3 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/proxy-agent.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/retry-agent.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/retry-handler.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/round-robin-pool.d.mts +3 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/snapshot-agent.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/socks5-proxy-agent.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/websocket.d.mts +3 -0
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/compat.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/compat.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/errors.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/errors.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/parse.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/parse.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/schemas.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/schemas.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/api.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/api.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/checks.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/checks.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/core.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/core.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/errors.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/errors.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/json-schema.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/json-schema.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/registries.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/registries.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/schemas.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/schemas.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/standard-schema.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/standard-schema.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/to-json-schema.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/to-json-schema.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/util.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/util.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/versions.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/versions.d.mts.map +1 -1
- package/dist/packages/core/po-core/dist/src/schemas/apiContracts.d.mts +69 -0
- package/dist/packages/core/po-core/dist/src/schemas/apiContracts.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/approval.d.mts +43 -0
- package/dist/packages/core/po-core/dist/src/schemas/approval.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/approvalPrompt.d.mts +17 -0
- package/dist/packages/core/po-core/dist/src/schemas/approvalPrompt.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/backgroundWork.d.mts +66 -0
- package/dist/packages/core/po-core/dist/src/schemas/backgroundWork.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/brain.d.mts +74 -0
- package/dist/packages/core/po-core/dist/src/schemas/brain.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/hubChannel.d.mts +20 -0
- package/dist/packages/core/po-core/dist/src/schemas/hubChannel.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/mcpProjection.d.mts +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/notification.d.mts +28 -0
- package/dist/packages/core/po-core/dist/src/schemas/notification.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/packageApi.d.mts +40 -0
- package/dist/packages/core/po-core/dist/src/schemas/packageApi.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/platform.d.mts +349 -0
- package/dist/packages/core/po-core/dist/src/schemas/platform.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/serverBundle.d.mts +31 -0
- package/dist/packages/core/po-core/dist/src/schemas/serverBundle.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/serverScope.d.mts +56 -0
- package/dist/packages/core/po-core/dist/src/schemas/serverScope.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/workflow.d.mts +461 -0
- package/dist/packages/core/po-core/dist/src/schemas/workflow.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/web/hostSlots.d.mts +1 -0
- package/dist/packages/core/po-core/dist/src/web/types/nativeTemplate.d.mts +2 -1
- package/dist/packages/core/po-core/dist/src/web/types/webPlugin.d.mts +470 -1
- package/dist/packages/core/po-core/dist/src/web/types/webPlugin.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/web.d.mts +4 -2
- package/dist/packages/core/po-web-components/src/components/Accordion.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.d.mts +18 -0
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/AnsiText.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Avatar.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Badge.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Breadcrumb.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Button.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Checkbox.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/CodeBlock.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/CodeEditor.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/CodeEditorView.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Collapsible.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Command.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/CopyButton.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Dialog.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/DiffView.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Dot.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Drawer.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/DropdownMenu.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/EmptyState.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/FlowGraph.d.mts +33 -0
- package/dist/packages/core/po-web-components/src/components/FlowGraph.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/FlowGraph.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/FlowGraph.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/HashlineLines.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/HashlineLines.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/HashlineLines.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Input.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/Input.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Kbd.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Label.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/LiveDuration.d.mts +15 -0
- package/dist/packages/core/po-web-components/src/components/LiveDuration.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/LiveDuration.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/LiveDuration.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/Markdown.d.mts +8 -1
- package/dist/packages/core/po-web-components/src/components/Markdown.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Markdown.mjs +2 -2
- package/dist/packages/core/po-web-components/src/components/Markdown.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/McpApp.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/McpToolWidget.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MediaPreview.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.d.mts +14 -0
- package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/MermaidDiagram.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/MermaidDiagram.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MessageItem.d.mts +9 -2
- package/dist/packages/core/po-web-components/src/components/MessageItem.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MessageItem.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/MessageItem.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MessageLines.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/OptionList.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Panel.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/PathText.d.mts +15 -0
- package/dist/packages/core/po-web-components/src/components/PathText.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/PathText.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/PathText.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/PdfPreview.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Picker.d.mts +18 -5
- package/dist/packages/core/po-web-components/src/components/Picker.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Picker.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/Picker.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Popover.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ProfilePicker.d.mts +34 -0
- package/dist/packages/core/po-web-components/src/components/ProfilePicker.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/ProfilePicker.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/ProfilePicker.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/Progress.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/RadioGroup.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ReviewCommentDraft.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ScrollArea.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/SectionLabel.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Select.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Separator.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Settings.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Sheet.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Skeleton.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Spinner.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/StatusBadge.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/StreamCursor.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Switch.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/SyntaxText.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/SyntaxText.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/SyntaxText.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Tabs.d.mts +7 -3
- package/dist/packages/core/po-web-components/src/components/Tabs.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Tabs.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/Tabs.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/TerminalView.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Textarea.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Toast.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ToolPathLink.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Tooltip.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ViewableImage.d.mts +15 -0
- package/dist/packages/core/po-web-components/src/components/ViewableImage.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/ViewableImage.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/ViewableImage.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/icons/icons.d.mts +2 -2
- package/dist/packages/core/po-web-components/src/icons/icons.mjs +1 -1
- package/dist/packages/core/po-web-components/src/lib/ansiSpans.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/cn.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/collapse.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/editorController.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/editorLanguage.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/editorTheme.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/fenceGrammar.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineHighlight.mjs +1 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineHighlight.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineView.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/markdownMedia.d.mts +57 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMedia.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMedia.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMedia.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.d.mts +10 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.d.mts +47 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.mjs +3 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.d.mts +19 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.d.mts +32 -0
- package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/media.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/mediaPlayback.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/mermaidDiagram.mjs +1 -1
- package/dist/packages/core/po-web-components/src/lib/mermaidDiagram.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/optionList.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/pathGroups.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/picker.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/profilePicker.d.mts +43 -0
- package/dist/packages/core/po-web-components/src/lib/profilePicker.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/profilePicker.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/profilePicker.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/review.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/runDuration.d.mts +12 -0
- package/dist/packages/core/po-web-components/src/lib/runDuration.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/runDuration.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/runDuration.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.d.mts +6 -8
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.mjs +1 -1
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/tone.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/apply.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/builtinThemes.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/derive.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/nativeTheme.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/parse.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/piTheme.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/preference.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/types/editor.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/types/theme.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/types/tone.mjs.map +1 -1
- package/dist/src/components/Accordion.cjs.map +1 -1
- package/dist/src/components/AgentAvatar.cjs +2 -0
- package/dist/src/components/AgentAvatar.cjs.map +1 -0
- package/dist/src/components/AnsiText.cjs.map +1 -1
- package/dist/src/components/Avatar.cjs.map +1 -1
- package/dist/src/components/Badge.cjs.map +1 -1
- package/dist/src/components/Breadcrumb.cjs.map +1 -1
- package/dist/src/components/Button.cjs.map +1 -1
- package/dist/src/components/Checkbox.cjs.map +1 -1
- package/dist/src/components/CodeBlock.cjs.map +1 -1
- package/dist/src/components/CodeEditor.cjs.map +1 -1
- package/dist/src/components/CodeEditorView.cjs.map +1 -1
- package/dist/src/components/Collapsible.cjs.map +1 -1
- package/dist/src/components/Command.cjs.map +1 -1
- package/dist/src/components/CopyButton.cjs.map +1 -1
- package/dist/src/components/Dialog.cjs.map +1 -1
- package/dist/src/components/DiffView.cjs.map +1 -1
- package/dist/src/components/Dot.cjs.map +1 -1
- package/dist/src/components/Drawer.cjs.map +1 -1
- package/dist/src/components/DropdownMenu.cjs.map +1 -1
- package/dist/src/components/EmptyState.cjs.map +1 -1
- package/dist/src/components/FlowGraph.cjs +2 -0
- package/dist/src/components/FlowGraph.cjs.map +1 -0
- package/dist/src/components/HashlineLines.cjs +1 -1
- package/dist/src/components/HashlineLines.cjs.map +1 -1
- package/dist/src/components/Input.cjs +1 -1
- package/dist/src/components/Input.cjs.map +1 -1
- package/dist/src/components/Kbd.cjs.map +1 -1
- package/dist/src/components/Label.cjs.map +1 -1
- package/dist/src/components/LiveDuration.cjs +2 -0
- package/dist/src/components/LiveDuration.cjs.map +1 -0
- package/dist/src/components/Markdown.cjs +2 -2
- package/dist/src/components/Markdown.cjs.map +1 -1
- package/dist/src/components/McpApp.cjs.map +1 -1
- package/dist/src/components/McpToolWidget.cjs.map +1 -1
- package/dist/src/components/MediaPreview.cjs.map +1 -1
- package/dist/src/components/MediaViewerDialog.cjs +2 -0
- package/dist/src/components/MediaViewerDialog.cjs.map +1 -0
- package/dist/src/components/MermaidDiagram.cjs +1 -1
- package/dist/src/components/MermaidDiagram.cjs.map +1 -1
- package/dist/src/components/MessageItem.cjs +1 -1
- package/dist/src/components/MessageItem.cjs.map +1 -1
- package/dist/src/components/MessageLines.cjs.map +1 -1
- package/dist/src/components/OptionList.cjs.map +1 -1
- package/dist/src/components/Panel.cjs.map +1 -1
- package/dist/src/components/PathText.cjs +2 -0
- package/dist/src/components/PathText.cjs.map +1 -0
- package/dist/src/components/PdfPreview.cjs.map +1 -1
- package/dist/src/components/Picker.cjs +1 -1
- package/dist/src/components/Picker.cjs.map +1 -1
- package/dist/src/components/Popover.cjs.map +1 -1
- package/dist/src/components/ProfilePicker.cjs +2 -0
- package/dist/src/components/ProfilePicker.cjs.map +1 -0
- package/dist/src/components/Progress.cjs.map +1 -1
- package/dist/src/components/RadioGroup.cjs.map +1 -1
- package/dist/src/components/ReviewCommentDraft.cjs.map +1 -1
- package/dist/src/components/ScrollArea.cjs.map +1 -1
- package/dist/src/components/SectionLabel.cjs.map +1 -1
- package/dist/src/components/Select.cjs.map +1 -1
- package/dist/src/components/Separator.cjs.map +1 -1
- package/dist/src/components/Settings.cjs.map +1 -1
- package/dist/src/components/Sheet.cjs.map +1 -1
- package/dist/src/components/Skeleton.cjs.map +1 -1
- package/dist/src/components/Spinner.cjs.map +1 -1
- package/dist/src/components/StatusBadge.cjs.map +1 -1
- package/dist/src/components/StreamCursor.cjs.map +1 -1
- package/dist/src/components/Switch.cjs.map +1 -1
- package/dist/src/components/SyntaxText.cjs +1 -1
- package/dist/src/components/SyntaxText.cjs.map +1 -1
- package/dist/src/components/Tabs.cjs +1 -1
- package/dist/src/components/Tabs.cjs.map +1 -1
- package/dist/src/components/TerminalView.cjs.map +1 -1
- package/dist/src/components/Textarea.cjs.map +1 -1
- package/dist/src/components/Toast.cjs.map +1 -1
- package/dist/src/components/ToolPathLink.cjs.map +1 -1
- package/dist/src/components/Tooltip.cjs.map +1 -1
- package/dist/src/components/ViewableImage.cjs +2 -0
- package/dist/src/components/ViewableImage.cjs.map +1 -0
- package/dist/src/icons/icons.cjs +1 -1
- package/dist/src/lib/ansiSpans.cjs.map +1 -1
- package/dist/src/lib/cn.cjs.map +1 -1
- package/dist/src/lib/collapse.cjs.map +1 -1
- package/dist/src/lib/editorController.cjs.map +1 -1
- package/dist/src/lib/editorLanguage.cjs.map +1 -1
- package/dist/src/lib/editorTheme.cjs.map +1 -1
- package/dist/src/lib/fenceGrammar.cjs.map +1 -1
- package/dist/src/lib/hashlineHighlight.cjs +1 -1
- package/dist/src/lib/hashlineHighlight.cjs.map +1 -1
- package/dist/src/lib/hashlineView.cjs.map +1 -1
- package/dist/src/lib/markdownMedia.cjs +2 -0
- package/dist/src/lib/markdownMedia.cjs.map +1 -0
- package/dist/src/lib/markdownMediaSlot.cjs +2 -0
- package/dist/src/lib/markdownMediaSlot.cjs.map +1 -0
- package/dist/src/lib/mcpAppFrame.cjs +3 -0
- package/dist/src/lib/mcpAppFrame.cjs.map +1 -0
- package/dist/src/lib/mcpAppSandbox.cjs +2 -0
- package/dist/src/lib/mcpAppSandbox.cjs.map +1 -0
- package/dist/src/lib/mcpOpenAiBootstrap.cjs +2 -0
- package/dist/src/lib/mcpOpenAiBootstrap.cjs.map +1 -0
- package/dist/src/lib/media.cjs.map +1 -1
- package/dist/src/lib/mediaPlayback.cjs.map +1 -1
- package/dist/src/lib/mermaidDiagram.cjs +1 -1
- package/dist/src/lib/mermaidDiagram.cjs.map +1 -1
- package/dist/src/lib/optionList.cjs.map +1 -1
- package/dist/src/lib/pathGroups.cjs.map +1 -1
- package/dist/src/lib/picker.cjs.map +1 -1
- package/dist/src/lib/profilePicker.cjs +2 -0
- package/dist/src/lib/profilePicker.cjs.map +1 -0
- package/dist/src/lib/review.cjs.map +1 -1
- package/dist/src/lib/runDuration.cjs +2 -0
- package/dist/src/lib/runDuration.cjs.map +1 -0
- package/dist/src/lib/syntaxHighlight.cjs +1 -1
- package/dist/src/lib/syntaxHighlight.cjs.map +1 -1
- package/dist/src/lib/tone.cjs.map +1 -1
- package/dist/src/theme/apply.cjs.map +1 -1
- package/dist/src/theme/builtinThemes.cjs.map +1 -1
- package/dist/src/theme/derive.cjs.map +1 -1
- package/dist/src/theme/nativeTheme.cjs.map +1 -1
- package/dist/src/theme/parse.cjs.map +1 -1
- package/dist/src/theme/piTheme.cjs.map +1 -1
- package/dist/src/theme/preference.cjs.map +1 -1
- package/dist/src/types/editor.cjs.map +1 -1
- package/dist/src/types/theme.cjs.map +1 -1
- package/dist/src/types/tone.cjs.map +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.d.mts +7 -1
- package/dist/text.mjs +1 -1
- package/package.json +20 -9
- package/styles/theme.css +23 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TerminalView.cjs","names":["themeVariable","useRef","useState","cn","require_cn","require_theme","react_jsx_runtime","react","tokenColour","root","token","TerminalView","props","mount","handle","dataRef","onData","ready","setReady","ref","data","element","disposed","dispose","terminal","Terminal","text","onReady","className"],"sources":["../../../src/components/TerminalView.tsx"],"sourcesContent":["import { type ComponentProps, useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { themeVariable } from '../types/theme';\n\n/**\n * A terminal emulator, for output that is a screen rather than a document.\n *\n * `AnsiText` beside it renders colour in text that happens to carry escapes.\n * This is the other thing: a full VT emulator that keeps a cursor, a grid and\n * an alternate screen, so a prompt, a progress bar or a full-screen program\n * behaves the way it would in a shell. Give it the bytes a pty produced and it\n * draws them; take its `onData` and you have what the reader typed.\n *\n * The emulator is loaded on mount rather than with the bundle. It is not a\n * small dependency, and most surfaces never show a terminal.\n */\n\nexport interface TerminalHandle {\n /** Writes pane bytes, escapes and all. */\n write(data: Uint8Array | string): void;\n /** Clears the screen and scrollback, for a stream that restarted. */\n reset(): void;\n}\n\nexport interface TerminalViewProps extends Omit<ComponentProps<'div'>, 'children' | 'onData' | 'ref'> {\n /** What the reader typed, already encoded the way a terminal sends it. */\n onData?: (text: string) => void;\n /** Called once the emulator is live, so a caller can start feeding it. */\n onReady?: () => void;\n ref?: React.Ref<TerminalHandle>;\n fontSize?: number;\n}\n\nconst DEFAULT_FONT_SIZE = 11;\nconst FONT_STACK = 'ui-monospace, SFMono-Regular, Menlo, monospace';\n\n/** Reads a theme token from the document, so the terminal follows the active theme. */\nfunction tokenColour(root: HTMLElement, token: Parameters<typeof themeVariable>[0]): string {\n return getComputedStyle(root).getPropertyValue(themeVariable(token)).trim();\n}\n\nexport function TerminalView({\n onData,\n onReady,\n ref,\n fontSize = DEFAULT_FONT_SIZE,\n className,\n ...props\n}: TerminalViewProps) {\n const mount = useRef<HTMLDivElement | null>(null);\n const handle = useRef<TerminalHandle | undefined>(undefined);\n const dataRef = useRef<((text: string) => void) | undefined>(onData);\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n dataRef.current = onData;\n });\n\n useImperativeHandle(ref, () => ({\n write: (data) => handle.current?.write(data),\n reset: () => handle.current?.reset(),\n }));\n\n useEffect(() => {\n const element = mount.current;\n if (element === null) return;\n let disposed = false;\n let dispose = (): void => undefined;\n\n void (async () => {\n const [{ Terminal }] = await Promise.all([import('@xterm/xterm'), import('@xterm/xterm/css/xterm.css')]);\n if (disposed) return;\n const terminal = new Terminal({\n cursorBlink: true,\n fontFamily: FONT_STACK,\n fontSize,\n allowTransparency: true,\n // Taken from the document's own custom properties rather than written\n // here, so a theme switch is the only place a colour is ever decided.\n theme: {\n background: tokenColour(element, 'deep'),\n foreground: tokenColour(element, 'dim'),\n cursor: tokenColour(element, 'hi'),\n selectionBackground: tokenColour(element, 'selected'),\n },\n });\n terminal.open(element);\n terminal.onData((text) => dataRef.current?.(text));\n handle.current = {\n write: (data) => terminal.write(data),\n reset: () => terminal.reset(),\n };\n setReady(true);\n onReady?.();\n\n dispose = () => {\n handle.current = undefined;\n terminal.dispose();\n };\n })();\n\n return () => {\n disposed = true;\n dispose();\n };\n // The emulator is built once for the life of the surface; later prop\n // changes reach it through the refs above rather than rebuilding it.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <div\n ref={mount}\n data-slot=\"terminal-view\"\n data-ready={ready}\n className={cn('h-full min-w-0 w-full overflow-auto', className)}\n {...props}\n />\n );\n}\n"],"mappings":"uHAsCA,SAASQ,EAAY,EAAmB,EAAoD,CAC1F,OAAO,iBAAiBC,CAAI,CAAC,CAAC,iBAAiBT,EAAAA,cAAcU,CAAK,CAAC,CAAC,CAAC,KAAK,CAC5E,CAEA,SAAgBC,EAAa,CAC3B,SACA,UACA,MACA,WAAW,GACX,YACA,GAAGC,GACiB,CACpB,IAAMC,GAAA,EAAQZ,EAAAA,OAAAA,CAA8B,IAAI,EAC1Ca,GAAA,EAASb,EAAAA,OAAAA,CAAmC,IAAA,EAAS,EACrDc,GAAA,EAAUd,EAAAA,OAAAA,CAA6Ce,CAAM,EAC7D,CAACC,EAAOC,IAAA,EAAYhB,EAAAA,SAAAA,CAAS,EAAK,EA0DxC,OAxDA,EAAAK,EAAA,UAAA,KAAgB,CACd,EAAQ,QAAUS,CACpB,CAAC,GAED,EAAAT,EAAA,oBAAA,CAAoBY,OAAY,CAC9B,MAAQ,GAASL,EAAO,SAAS,MAAMM,CAAI,EAC3C,UAAaN,EAAO,SAAS,MAAM,CACrC,EAAE,GAEF,EAAAP,EAAA,UAAA,KAAgB,CACd,IAAMc,EAAUR,EAAM,QACtB,GAAIQ,IAAY,KAAM,OACtB,IAAIC,EAAW,GACXC,MAAsB,IAAA,GAkC1B,OAhCM,SAAY,CAChB,GAAM,CAAC,CAAE,aAAc,MAAM,QAAQ,IAAI,CAAC,OAAO,gBAAiB,OAAO,6BAA6B,CAAC,EACvG,GAAID,EAAU,OACd,IAAME,EAAW,IAAIC,EAAS,CAC5B,YAAa,GACb,WAAY,iDACZ,WACA,kBAAmB,GAGnB,MAAO,CACL,WAAYjB,EAAYa,EAAS,MAAM,EACvC,WAAYb,EAAYa,EAAS,KAAK,EACtC,OAAQb,EAAYa,EAAS,IAAI,EACjC,oBAAqBb,EAAYa,EAAS,UAAU,CACtD,CACF,CAAC,EACDG,EAAS,KAAKH,CAAO,EACrBG,EAAS,OAAQ,GAAST,EAAQ,UAAUW,CAAI,CAAC,EACjD,EAAO,QAAU,CACf,MAAQ,GAASF,EAAS,MAAMJ,CAAI,EACpC,UAAaI,EAAS,MAAM,CAC9B,EACAN,EAAS,EAAI,EACbS,IAAU,EAEV,MAAgB,CACd,EAAO,QAAU,IAAA,GACjBH,EAAS,QAAQ,CACnB,CACF,EAAA,CAAG,MAEU,CACX,EAAW,GACXD,EAAQ,CACV,CAIF,EAAG,CAAC,CAAC,EAGH,iBAAA,EAAAjB,EAAA,IAAA,CAAC,MAAD,CACE,IAAKO,EACL,YAAU,gBACV,aAAYI,EACZ,UAAWd,EAAAA,GAAG,sCAAuCyB,CAAS,EAC9D,GAAIhB,CACL,CAAA,CAEL"}
|
|
1
|
+
{"version":3,"file":"TerminalView.cjs","names":["themeVariable","useRef","useState","cn","require_cn","require_theme","react_jsx_runtime","react","tokenColour","root","token","TerminalView","props","mount","handle","dataRef","onData","ready","setReady","ref","data","element","disposed","dispose","terminal","Terminal","text","onReady","className"],"sources":["../../../src/components/TerminalView.tsx"],"sourcesContent":["import { type ComponentProps, useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { themeVariable } from '../types/theme';\n\n/**\n * A terminal emulator, for output that is a screen rather than a document.\n *\n * `AnsiText` beside it renders colour in text that happens to carry escapes.\n * This is the other thing: a full VT emulator that keeps a cursor, a grid and\n * an alternate screen, so a prompt, a progress bar or a full-screen program\n * behaves the way it would in a shell. Give it the bytes a pty produced and it\n * draws them; take its `onData` and you have what the reader typed.\n *\n * The emulator is loaded on mount rather than with the bundle. It is not a\n * small dependency, and most surfaces never show a terminal.\n */\n\nexport interface TerminalHandle {\n /** Writes pane bytes, escapes and all. */\n write(data: Uint8Array | string): void;\n /** Clears the screen and scrollback, for a stream that restarted. */\n reset(): void;\n}\n\nexport interface TerminalViewProps extends Omit<ComponentProps<'div'>, 'children' | 'onData' | 'ref'> {\n /** What the reader typed, already encoded the way a terminal sends it. */\n onData?: (text: string) => void;\n /** Called once the emulator is live, so a caller can start feeding it. */\n onReady?: () => void;\n ref?: React.Ref<TerminalHandle>;\n fontSize?: number;\n}\n\nconst DEFAULT_FONT_SIZE = 11;\nconst FONT_STACK = 'ui-monospace, SFMono-Regular, Menlo, monospace';\n\n/** Reads a theme token from the document, so the terminal follows the active theme. */\nfunction tokenColour(root: HTMLElement, token: Parameters<typeof themeVariable>[0]): string {\n return getComputedStyle(root).getPropertyValue(themeVariable(token)).trim();\n}\n\nexport function TerminalView({\n onData,\n onReady,\n ref,\n fontSize = DEFAULT_FONT_SIZE,\n className,\n ...props\n}: TerminalViewProps) {\n const mount = useRef<HTMLDivElement | null>(null);\n const handle = useRef<TerminalHandle | undefined>(undefined);\n const dataRef = useRef<((text: string) => void) | undefined>(onData);\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n dataRef.current = onData;\n });\n\n useImperativeHandle(ref, () => ({\n write: (data) => handle.current?.write(data),\n reset: () => handle.current?.reset(),\n }));\n\n useEffect(() => {\n const element = mount.current;\n if (element === null) return;\n let disposed = false;\n let dispose = (): void => undefined;\n\n void (async () => {\n const [{ Terminal }] = await Promise.all([import('@xterm/xterm'), import('@xterm/xterm/css/xterm.css')]);\n if (disposed) return;\n const terminal = new Terminal({\n cursorBlink: true,\n fontFamily: FONT_STACK,\n fontSize,\n allowTransparency: true,\n // Taken from the document's own custom properties rather than written\n // here, so a theme switch is the only place a colour is ever decided.\n theme: {\n background: tokenColour(element, 'deep'),\n foreground: tokenColour(element, 'dim'),\n cursor: tokenColour(element, 'hi'),\n selectionBackground: tokenColour(element, 'selected'),\n },\n });\n terminal.open(element);\n terminal.onData((text) => dataRef.current?.(text));\n handle.current = {\n write: (data) => terminal.write(data),\n reset: () => terminal.reset(),\n };\n setReady(true);\n onReady?.();\n\n dispose = () => {\n handle.current = undefined;\n terminal.dispose();\n };\n })();\n\n return () => {\n disposed = true;\n dispose();\n };\n // The emulator is built once for the life of the surface; later prop\n // changes reach it through the refs above rather than rebuilding it.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <div\n ref={mount}\n data-slot=\"terminal-view\"\n data-ready={ready}\n className={cn('h-full min-w-0 w-full overflow-auto', className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,uHAsCA,SAASQ,EAAY,EAAmB,EAAoD,CAC1F,OAAO,iBAAiBC,CAAI,CAAC,CAAC,iBAAiBT,EAAAA,cAAcU,CAAK,CAAC,CAAC,CAAC,KAAK,CAC5E,CAEA,SAAgBC,EAAa,CAC3B,SACA,UACA,MACA,WAAW,GACX,YACA,GAAGC,GACiB,CACpB,IAAMC,GAAA,EAAQZ,EAAAA,OAAAA,CAA8B,IAAI,EAC1Ca,GAAA,EAASb,EAAAA,OAAAA,CAAmC,IAAA,EAAS,EACrDc,GAAA,EAAUd,EAAAA,OAAAA,CAA6Ce,CAAM,EAC7D,CAACC,EAAOC,IAAA,EAAYhB,EAAAA,SAAAA,CAAS,EAAK,EA0DxC,OAxDA,EAAAK,EAAA,UAAA,KAAgB,CACd,EAAQ,QAAUS,CACpB,CAAC,GAED,EAAAT,EAAA,oBAAA,CAAoBY,OAAY,CAC9B,MAAQ,GAASL,EAAO,SAAS,MAAMM,CAAI,EAC3C,UAAaN,EAAO,SAAS,MAAM,CACrC,EAAE,GAEF,EAAAP,EAAA,UAAA,KAAgB,CACd,IAAMc,EAAUR,EAAM,QACtB,GAAIQ,IAAY,KAAM,OACtB,IAAIC,EAAW,GACXC,MAAsB,IAAA,GAkC1B,OAhCM,SAAY,CAChB,GAAM,CAAC,CAAE,aAAc,MAAM,QAAQ,IAAI,CAAC,OAAO,gBAAiB,OAAO,6BAA6B,CAAC,EACvG,GAAID,EAAU,OACd,IAAME,EAAW,IAAIC,EAAS,CAC5B,YAAa,GACb,WAAY,iDACZ,WACA,kBAAmB,GAGnB,MAAO,CACL,WAAYjB,EAAYa,EAAS,MAAM,EACvC,WAAYb,EAAYa,EAAS,KAAK,EACtC,OAAQb,EAAYa,EAAS,IAAI,EACjC,oBAAqBb,EAAYa,EAAS,UAAU,CACtD,CACF,CAAC,EACDG,EAAS,KAAKH,CAAO,EACrBG,EAAS,OAAQ,GAAST,EAAQ,UAAUW,CAAI,CAAC,EACjD,EAAO,QAAU,CACf,MAAQ,GAASF,EAAS,MAAMJ,CAAI,EACpC,UAAaI,EAAS,MAAM,CAC9B,EACAN,EAAS,EAAI,EACbS,IAAU,EAEV,MAAgB,CACd,EAAO,QAAU,IAAA,GACjBH,EAAS,QAAQ,CACnB,CACF,EAAA,CAAG,MAEU,CACX,EAAW,GACXD,EAAQ,CACV,CAIF,EAAG,CAAC,CAAC,EAGH,iBAAA,EAAAjB,EAAA,IAAA,CAAC,MAAD,CACE,IAAKO,EACL,YAAU,gBACV,aAAYI,EACZ,UAAWd,EAAAA,GAAG,sCAAuCyB,CAAS,EAC9D,GAAIhB,CACL,CAAA,CAEL,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.cjs","names":["cn","fieldVariants","require_cn","require_Input","react_jsx_runtime","Textarea","props","className"],"sources":["../../../src/components/Textarea.tsx"],"sourcesContent":["import type { VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { fieldVariants } from './Input';\n\nexport interface TextareaProps extends Omit<ComponentProps<'textarea'>, 'size'>, VariantProps<typeof fieldVariants> {}\n\n/** The multi-line field, styled as the Input; `bare` drops the well for a composer that draws its own. */\nexport function Textarea({ className, variant, size, ...props }: TextareaProps) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn('resize-none', fieldVariants({ variant, size }), className)}\n {...props}\n />\n );\n}\n"],"mappings":"6FASA,SAAgBK,EAAS,CAAE,YAAW,UAAS,OAAM,GAAGC,GAAwB,CAC9E,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,WAAD,CACE,YAAU,WACV,UAAWJ,EAAAA,GAAG,cAAeC,EAAAA,cAAc,CAAE,UAAS,MAAK,CAAC,EAAGM,CAAS,EACxE,GAAID,CACL,CAAA,CAEL"}
|
|
1
|
+
{"version":3,"file":"Textarea.cjs","names":["cn","fieldVariants","require_cn","require_Input","react_jsx_runtime","Textarea","props","className"],"sources":["../../../src/components/Textarea.tsx"],"sourcesContent":["import type { VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { fieldVariants } from './Input';\n\nexport interface TextareaProps extends Omit<ComponentProps<'textarea'>, 'size'>, VariantProps<typeof fieldVariants> {}\n\n/** The multi-line field, styled as the Input; `bare` drops the well for a composer that draws its own. */\nexport function Textarea({ className, variant, size, ...props }: TextareaProps) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn('resize-none', fieldVariants({ variant, size }), className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,6FASA,SAAgBK,EAAS,CAAE,YAAW,UAAS,OAAM,GAAGC,GAAwB,CAC9E,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,WAAD,CACE,YAAU,WACV,UAAWJ,EAAAA,GAAG,cAAeC,EAAAA,cAAc,CAAE,UAAS,MAAK,CAAC,EAAGM,CAAS,EACxE,GAAID,CACL,CAAA,CAEL,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.cjs","names":["ToastPrimitive","cn","cva","CloseIcon","require_cn","radix_ui","react_jsx_runtime","class_variance_authority","lucide_react","ToastProvider","props","ToastViewport","className","toastVariants","Toast","ToastTitle","ToastDescription","ToastAction","ToastClose"],"sources":["../../../src/components/Toast.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Toast as ToastPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { CloseIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport type { StatusTone } from '../types/tone';\n\n/**\n * A transient notice. Radix owns the part that is easy to get wrong: it\n * announces through a live region, pauses its timer on hover and on window\n * blur, and restores focus when it leaves. Mount one ToastProvider and one\n * ToastViewport per page.\n */\nexport function ToastProvider(props: ComponentProps<typeof ToastPrimitive.Provider>) {\n return <ToastPrimitive.Provider {...props} />;\n}\n\nexport function ToastViewport({ className, ...props }: ComponentProps<typeof ToastPrimitive.Viewport>) {\n return (\n <ToastPrimitive.Viewport\n data-slot=\"toast-viewport\"\n className={cn('fixed right-4 bottom-4 z-50 flex w-[360px] max-w-full flex-col gap-2 outline-none', className)}\n {...props}\n />\n );\n}\n\nexport const toastVariants = cva(\n 'flex items-start gap-3 rounded-md border bg-po-panel px-3 py-2.5 shadow-2xl data-[state=open]:animate-po-rise',\n {\n variants: {\n tone: {\n neutral: 'border-po-border',\n running: 'border-po-edge-yellow',\n ok: 'border-po-edge-green',\n error: 'border-po-edge-red',\n info: 'border-po-edge-blue',\n accent: 'border-po-edge-magenta',\n } satisfies Record<StatusTone, string>,\n },\n defaultVariants: { tone: 'neutral' },\n },\n);\n\nexport interface ToastProps extends ComponentProps<typeof ToastPrimitive.Root>, VariantProps<typeof toastVariants> {}\n\nexport function Toast({ className, tone, ...props }: ToastProps) {\n return <ToastPrimitive.Root data-slot=\"toast\" className={cn(toastVariants({ tone }), className)} {...props} />;\n}\n\nexport function ToastTitle({ className, ...props }: ComponentProps<typeof ToastPrimitive.Title>) {\n return (\n <ToastPrimitive.Title\n data-slot=\"toast-title\"\n className={cn('text-base font-semibold text-po-hi', className)}\n {...props}\n />\n );\n}\n\nexport function ToastDescription({ className, ...props }: ComponentProps<typeof ToastPrimitive.Description>) {\n return (\n <ToastPrimitive.Description\n data-slot=\"toast-description\"\n className={cn('text-sm leading-relaxed text-po-dim', className)}\n {...props}\n />\n );\n}\n\nexport function ToastAction(props: ComponentProps<typeof ToastPrimitive.Action>) {\n return <ToastPrimitive.Action data-slot=\"toast-action\" {...props} />;\n}\n\nexport function ToastClose({ className, ...props }: ComponentProps<typeof ToastPrimitive.Close>) {\n return (\n <ToastPrimitive.Close\n data-slot=\"toast-close\"\n aria-label=\"dismiss\"\n className={cn(\n 'inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded text-po-faint transition-colors hover:text-po-hi',\n className,\n )}\n {...props}\n >\n <CloseIcon className=\"h-3 w-3\" />\n </ToastPrimitive.Close>\n );\n}\n"],"mappings":"wLAcA,SAAgBS,EAAc,EAAuD,CACnF,MAAO,iBAAA,EAAAH,EAAA,IAAA,CAACN,EAAAA,MAAe,SAAhB,CAAyB,GAAIU,CAAQ,CAAA,CAC9C,CAEA,SAAgBC,EAAc,CAAE,YAAW,GAAGD,GAAyD,CACrG,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,SAAhB,CACE,YAAU,iBACV,UAAWC,EAAAA,GAAG,oFAAqFW,CAAS,EAC5G,GAAIF,CACL,CAAA,CAEL,CAEA,MAAaG,GAAA,EAAgBX,EAAAA,IAAAA,CAC3B,gHACA,CACE,SAAU,CACR,KAAM,CACJ,QAAS,mBACT,QAAS,wBACT,GAAI,uBACJ,MAAO,qBACP,KAAM,sBACN,OAAQ,wBACV,CACF,EACA,gBAAiB,CAAE,KAAM,SAAU,CACrC,CACF,EAIA,SAAgBY,EAAM,CAAE,YAAW,OAAM,GAAGJ,GAAqB,CAC/D,MAAO,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,KAAhB,CAAqB,YAAU,QAAQ,UAAWC,EAAAA,GAAGY,EAAc,CAAE,MAAK,CAAC,EAAGD,CAAS,EAAG,GAAIF,CAAQ,CAAA,CAC/G,CAEA,SAAgBK,EAAW,CAAE,YAAW,GAAGL,GAAsD,CAC/F,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,MAAhB,CACE,YAAU,cACV,UAAWC,EAAAA,GAAG,qCAAsCW,CAAS,EAC7D,GAAIF,CACL,CAAA,CAEL,CAEA,SAAgBM,EAAiB,CAAE,YAAW,GAAGN,GAA4D,CAC3G,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,YAAhB,CACE,YAAU,oBACV,UAAWC,EAAAA,GAAG,sCAAuCW,CAAS,EAC9D,GAAIF,CACL,CAAA,CAEL,CAEA,SAAgBO,EAAY,EAAqD,CAC/E,MAAO,iBAAA,EAAAX,EAAA,IAAA,CAACN,EAAAA,MAAe,OAAhB,CAAuB,YAAU,eAAe,GAAIU,CAAQ,CAAA,CACrE,CAEA,SAAgBQ,EAAW,CAAE,YAAW,GAAGR,GAAsD,CAC/F,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,MAAhB,CACE,YAAU,cACV,aAAW,UACX,UAAWC,EAAAA,GACT,mIACAW,CACF,EACA,GAAIF,EAEJ,SAAA,iBAAA,EAAAJ,EAAA,IAAA,CAACH,EAAAA,EAAD,CAAW,UAAU,SAAW,CAAA,CACZ,CAAA,CAE1B"}
|
|
1
|
+
{"version":3,"file":"Toast.cjs","names":["ToastPrimitive","cn","cva","CloseIcon","require_cn","radix_ui","react_jsx_runtime","class_variance_authority","lucide_react","ToastProvider","props","ToastViewport","className","toastVariants","Toast","ToastTitle","ToastDescription","ToastAction","ToastClose"],"sources":["../../../src/components/Toast.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Toast as ToastPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { CloseIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport type { StatusTone } from '../types/tone';\n\n/**\n * A transient notice. Radix owns the part that is easy to get wrong: it\n * announces through a live region, pauses its timer on hover and on window\n * blur, and restores focus when it leaves. Mount one ToastProvider and one\n * ToastViewport per page.\n */\nexport function ToastProvider(props: ComponentProps<typeof ToastPrimitive.Provider>) {\n return <ToastPrimitive.Provider {...props} />;\n}\n\nexport function ToastViewport({ className, ...props }: ComponentProps<typeof ToastPrimitive.Viewport>) {\n return (\n <ToastPrimitive.Viewport\n data-slot=\"toast-viewport\"\n className={cn('fixed right-4 bottom-4 z-50 flex w-[360px] max-w-full flex-col gap-2 outline-none', className)}\n {...props}\n />\n );\n}\n\nexport const toastVariants = cva(\n 'flex items-start gap-3 rounded-md border bg-po-panel px-3 py-2.5 shadow-2xl data-[state=open]:animate-po-rise',\n {\n variants: {\n tone: {\n neutral: 'border-po-border',\n running: 'border-po-edge-yellow',\n ok: 'border-po-edge-green',\n error: 'border-po-edge-red',\n info: 'border-po-edge-blue',\n accent: 'border-po-edge-magenta',\n } satisfies Record<StatusTone, string>,\n },\n defaultVariants: { tone: 'neutral' },\n },\n);\n\nexport interface ToastProps extends ComponentProps<typeof ToastPrimitive.Root>, VariantProps<typeof toastVariants> {}\n\nexport function Toast({ className, tone, ...props }: ToastProps) {\n return <ToastPrimitive.Root data-slot=\"toast\" className={cn(toastVariants({ tone }), className)} {...props} />;\n}\n\nexport function ToastTitle({ className, ...props }: ComponentProps<typeof ToastPrimitive.Title>) {\n return (\n <ToastPrimitive.Title\n data-slot=\"toast-title\"\n className={cn('text-base font-semibold text-po-hi', className)}\n {...props}\n />\n );\n}\n\nexport function ToastDescription({ className, ...props }: ComponentProps<typeof ToastPrimitive.Description>) {\n return (\n <ToastPrimitive.Description\n data-slot=\"toast-description\"\n className={cn('text-sm leading-relaxed text-po-dim', className)}\n {...props}\n />\n );\n}\n\nexport function ToastAction(props: ComponentProps<typeof ToastPrimitive.Action>) {\n return <ToastPrimitive.Action data-slot=\"toast-action\" {...props} />;\n}\n\nexport function ToastClose({ className, ...props }: ComponentProps<typeof ToastPrimitive.Close>) {\n return (\n <ToastPrimitive.Close\n data-slot=\"toast-close\"\n aria-label=\"dismiss\"\n className={cn(\n 'inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded text-po-faint transition-colors hover:text-po-hi',\n className,\n )}\n {...props}\n >\n <CloseIcon className=\"h-3 w-3\" />\n </ToastPrimitive.Close>\n );\n}\n"],"mappings":"A,wLAcA,SAAgBS,EAAc,EAAuD,CACnF,MAAO,iBAAA,EAAAH,EAAA,IAAA,CAACN,EAAAA,MAAe,SAAhB,CAAyB,GAAIU,CAAQ,CAAA,CAC9C,CAEA,SAAgBC,EAAc,CAAE,YAAW,GAAGD,GAAyD,CACrG,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,SAAhB,CACE,YAAU,iBACV,UAAWC,EAAAA,GAAG,oFAAqFW,CAAS,EAC5G,GAAIF,CACL,CAAA,CAEL,CAEA,MAAaG,GAAA,EAAgBX,EAAAA,IAAAA,CAC3B,gHACA,CACE,SAAU,CACR,KAAM,CACJ,QAAS,mBACT,QAAS,wBACT,GAAI,uBACJ,MAAO,qBACP,KAAM,sBACN,OAAQ,wBACV,CACF,EACA,gBAAiB,CAAE,KAAM,SAAU,CACrC,CACF,EAIA,SAAgBY,EAAM,CAAE,YAAW,OAAM,GAAGJ,GAAqB,CAC/D,MAAO,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,KAAhB,CAAqB,YAAU,QAAQ,UAAWC,EAAAA,GAAGY,EAAc,CAAE,MAAK,CAAC,EAAGD,CAAS,EAAG,GAAIF,CAAQ,CAAA,CAC/G,CAEA,SAAgBK,EAAW,CAAE,YAAW,GAAGL,GAAsD,CAC/F,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,MAAhB,CACE,YAAU,cACV,UAAWC,EAAAA,GAAG,qCAAsCW,CAAS,EAC7D,GAAIF,CACL,CAAA,CAEL,CAEA,SAAgBM,EAAiB,CAAE,YAAW,GAAGN,GAA4D,CAC3G,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,YAAhB,CACE,YAAU,oBACV,UAAWC,EAAAA,GAAG,sCAAuCW,CAAS,EAC9D,GAAIF,CACL,CAAA,CAEL,CAEA,SAAgBO,EAAY,EAAqD,CAC/E,MAAO,iBAAA,EAAAX,EAAA,IAAA,CAACN,EAAAA,MAAe,OAAhB,CAAuB,YAAU,eAAe,GAAIU,CAAQ,CAAA,CACrE,CAEA,SAAgBQ,EAAW,CAAE,YAAW,GAAGR,GAAsD,CAC/F,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,MAAe,MAAhB,CACE,YAAU,cACV,aAAW,UACX,UAAWC,EAAAA,GACT,mIACAW,CACF,EACA,GAAIF,EAEJ,SAAA,iBAAA,EAAAJ,EAAA,IAAA,CAACH,EAAAA,EAAD,CAAW,UAAU,SAAW,CAAA,CACZ,CAAA,CAE1B,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolPathLink.cjs","names":["cn","require_cn","react_jsx_runtime","ToolPathLink","testId","props","onOpen","className","path"],"sources":["../../../src/components/ToolPathLink.tsx"],"sourcesContent":["import { cn } from '../lib/cn';\n\n/**\n * The file path in a tool call's header, as a link when something can open it.\n *\n * A read, a write and an edit all put a path in the same place, and a reader\n * who wants to see that file should not have to go looking for it in a file\n * list. Whether the path can be opened is not this component's business: the\n * host resolves it against whatever plugin owns files, and hands the answer\n * down as `onOpen`. Without one the path stays exactly what it was, plain\n * text, because a link that opens nothing is worse than no link.\n */\n\nexport interface ToolPathLinkProps {\n path: string;\n /** Opens the file; omitted when nothing installed can show it. */\n onOpen?: () => void;\n className?: string;\n /** Defaults to `tool-path`, which is how a test finds the link inside a call header. */\n 'data-testid'?: string;\n}\n\nexport function ToolPathLink({\n path,\n onOpen,\n className,\n 'data-testid': testId = 'tool-path',\n ...props\n}: ToolPathLinkProps) {\n if (onOpen === undefined) {\n return (\n <span\n data-slot=\"tool-path\"\n data-testid={testId}\n className={cn('inline-block max-w-full min-w-0 truncate align-bottom text-po-text', className)}\n {...props}\n >\n {path}\n </span>\n );\n }\n return (\n <button\n type=\"button\"\n data-slot=\"tool-path\"\n data-testid={testId}\n title={`open ${path}`}\n onClick={onOpen}\n className={cn(\n 'min-h-6 max-w-full min-w-0 cursor-pointer truncate text-left text-po-text hover:text-po-blue hover:underline',\n className,\n )}\n {...props}\n >\n {path}\n </button>\n );\n}\n"],"mappings":"oEAsBA,SAAgBG,EAAa,CAC3B,OACA,SACA,YACA,cAAeC,EAAS,YACxB,GAAGC,GACiB,CAapB,OAZIC,IAAW,IAAA,GAEX,iBAAA,EAAAJ,EAAA,IAAA,CAAC,OAAD,CACE,YAAU,YACV,cAAaE,EACb,UAAWJ,EAAAA,GAAG,qEAAsEO,CAAS,EAC7F,GAAIF,EAEH,SAAAG,CACG,CAAA,EAIR,iBAAA,EAAAN,EAAA,IAAA,CAAC,SAAD,CACE,KAAK,SACL,YAAU,YACV,cAAaE,EACb,MAAO,QAAQI,IACf,QAASF,EACT,UAAWN,EAAAA,GACT,+GACAO,CACF,EACA,GAAIF,EAEH,SAAAG,CACK,CAAA,CAEZ"}
|
|
1
|
+
{"version":3,"file":"ToolPathLink.cjs","names":["cn","require_cn","react_jsx_runtime","ToolPathLink","testId","props","onOpen","className","path"],"sources":["../../../src/components/ToolPathLink.tsx"],"sourcesContent":["import { cn } from '../lib/cn';\n\n/**\n * The file path in a tool call's header, as a link when something can open it.\n *\n * A read, a write and an edit all put a path in the same place, and a reader\n * who wants to see that file should not have to go looking for it in a file\n * list. Whether the path can be opened is not this component's business: the\n * host resolves it against whatever plugin owns files, and hands the answer\n * down as `onOpen`. Without one the path stays exactly what it was, plain\n * text, because a link that opens nothing is worse than no link.\n */\n\nexport interface ToolPathLinkProps {\n path: string;\n /** Opens the file; omitted when nothing installed can show it. */\n onOpen?: () => void;\n className?: string;\n /** Defaults to `tool-path`, which is how a test finds the link inside a call header. */\n 'data-testid'?: string;\n}\n\nexport function ToolPathLink({\n path,\n onOpen,\n className,\n 'data-testid': testId = 'tool-path',\n ...props\n}: ToolPathLinkProps) {\n if (onOpen === undefined) {\n return (\n <span\n data-slot=\"tool-path\"\n data-testid={testId}\n className={cn('inline-block max-w-full min-w-0 truncate align-bottom text-po-text', className)}\n {...props}\n >\n {path}\n </span>\n );\n }\n return (\n <button\n type=\"button\"\n data-slot=\"tool-path\"\n data-testid={testId}\n title={`open ${path}`}\n onClick={onOpen}\n className={cn(\n 'min-h-6 max-w-full min-w-0 cursor-pointer truncate text-left text-po-text hover:text-po-blue hover:underline',\n className,\n )}\n {...props}\n >\n {path}\n </button>\n );\n}\n"],"mappings":"A,oEAsBA,SAAgBG,EAAa,CAC3B,OACA,SACA,YACA,cAAeC,EAAS,YACxB,GAAGC,GACiB,CAapB,OAZIC,IAAW,IAAA,GAEX,iBAAA,EAAAJ,EAAA,IAAA,CAAC,OAAD,CACE,YAAU,YACV,cAAaE,EACb,UAAWJ,EAAAA,GAAG,qEAAsEO,CAAS,EAC7F,GAAIF,EAEH,SAAAG,CACG,CAAA,EAIR,iBAAA,EAAAN,EAAA,IAAA,CAAC,SAAD,CACE,KAAK,SACL,YAAU,YACV,cAAaE,EACb,MAAO,QAAQI,IACf,QAASF,EACT,UAAWN,EAAAA,GACT,+GACAO,CACF,EACA,GAAIF,EAEH,SAAAG,CACK,CAAA,CAEZ,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.cjs","names":["TooltipPrimitive","cn","require_cn","radix_ui","react_jsx_runtime","TooltipProvider","props","Tooltip","TooltipTrigger","TooltipContent","className"],"sources":["../../../src/components/Tooltip.tsx"],"sourcesContent":["import { Tooltip as TooltipPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** Mount once near the root; every Tooltip below shares its delay. */\nexport function TooltipProvider({ delayDuration = 300, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>) {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" delayDuration={delayDuration} {...props} />;\n}\n\nexport function Tooltip(props: ComponentProps<typeof TooltipPrimitive.Root>) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\nexport function TooltipTrigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nexport function TooltipContent({\n className,\n sideOffset = 4,\n children,\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n 'z-50 rounded border border-po-border bg-po-deep px-2 py-1 text-sm text-po-text shadow-lg data-[state=delayed-open]:animate-po-fade',\n className,\n )}\n {...props}\n >\n {children}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n"],"mappings":"0FAMA,SAAgBK,EAAgB,CAAE,gBAAgB,IAAK,GAAGC,GAA2D,CACnH,MAAO,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,QAAiB,SAAlB,CAA2B,YAAU,mBAAkC,gBAAe,GAAIM,CAAQ,CAAA,CAC3G,CAEA,SAAgBC,EAAQ,EAAqD,CAC3E,MAAO,iBAAA,EAAAH,EAAA,IAAA,CAACJ,EAAAA,QAAiB,KAAlB,CAAuB,YAAU,UAAU,GAAIM,CAAQ,CAAA,CAChE,CAEA,SAAgBE,EAAe,EAAwD,CACrF,MAAO,iBAAA,EAAAJ,EAAA,IAAA,CAACJ,EAAAA,QAAiB,QAAlB,CAA0B,YAAU,kBAAkB,GAAIM,CAAQ,CAAA,CAC3E,CAEA,SAAgBG,EAAe,CAC7B,YACA,aAAa,EACb,WACA,GAAGH,GAC+C,CAClD,MACE,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,QAAiB,OAAlB,CAAA,SACE,iBAAA,EAAAI,EAAA,IAAA,CAACJ,EAAAA,QAAiB,QAAlB,CACE,YAAU,kBACE,aACZ,UAAWC,EAAAA,GACT,qIACAS,CACF,EACA,GAAIJ,EAEH,UACuB,CAAA,CACH,CAAA,CAE7B"}
|
|
1
|
+
{"version":3,"file":"Tooltip.cjs","names":["TooltipPrimitive","cn","require_cn","radix_ui","react_jsx_runtime","TooltipProvider","props","Tooltip","TooltipTrigger","TooltipContent","className"],"sources":["../../../src/components/Tooltip.tsx"],"sourcesContent":["import { Tooltip as TooltipPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** Mount once near the root; every Tooltip below shares its delay. */\nexport function TooltipProvider({ delayDuration = 300, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>) {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" delayDuration={delayDuration} {...props} />;\n}\n\nexport function Tooltip(props: ComponentProps<typeof TooltipPrimitive.Root>) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\nexport function TooltipTrigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nexport function TooltipContent({\n className,\n sideOffset = 4,\n children,\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n 'z-50 rounded border border-po-border bg-po-deep px-2 py-1 text-sm text-po-text shadow-lg data-[state=delayed-open]:animate-po-fade',\n className,\n )}\n {...props}\n >\n {children}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n"],"mappings":"A,0FAMA,SAAgBK,EAAgB,CAAE,gBAAgB,IAAK,GAAGC,GAA2D,CACnH,MAAO,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,QAAiB,SAAlB,CAA2B,YAAU,mBAAkC,gBAAe,GAAIM,CAAQ,CAAA,CAC3G,CAEA,SAAgBC,EAAQ,EAAqD,CAC3E,MAAO,iBAAA,EAAAH,EAAA,IAAA,CAACJ,EAAAA,QAAiB,KAAlB,CAAuB,YAAU,UAAU,GAAIM,CAAQ,CAAA,CAChE,CAEA,SAAgBE,EAAe,EAAwD,CACrF,MAAO,iBAAA,EAAAJ,EAAA,IAAA,CAACJ,EAAAA,QAAiB,QAAlB,CAA0B,YAAU,kBAAkB,GAAIM,CAAQ,CAAA,CAC3E,CAEA,SAAgBG,EAAe,CAC7B,YACA,aAAa,EACb,WACA,GAAGH,GAC+C,CAClD,MACE,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,QAAiB,OAAlB,CAAA,SACE,iBAAA,EAAAI,EAAA,IAAA,CAACJ,EAAAA,QAAiB,QAAlB,CACE,YAAU,kBACE,aACZ,UAAWC,EAAAA,GACT,qIACAS,CACF,EACA,GAAIJ,EAEH,UACuB,CAAA,CACH,CAAA,CAE7B,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("./MediaViewerDialog.cjs");let t=require("react/jsx-runtime"),n=require("react");function r({src:r,alt:i,title:a,renderReview:o,...s}){let[c,l]=(0,n.useState)(),u=()=>l(void 0),d=a||i||`Image`;return/* @__PURE__ */ (0,t.jsxs)(t.Fragment,{children:[/* @__PURE__ */ (0,t.jsx)(`button`,{type:`button`,"aria-label":`Open ${d} full screen`,onClick:()=>l({kind:`image`,title:d,url:r}),className:`max-w-full cursor-zoom-in self-start rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none`,children:/* @__PURE__ */ (0,t.jsx)(`img`,{...s,src:r,alt:i})}),/* @__PURE__ */ (0,t.jsx)(e.MediaViewerDialog,{media:c,onClose:u,review:c===void 0?void 0:o?.(c,u)})]})}exports.ViewableImage=r;
|
|
2
|
+
//# sourceMappingURL=ViewableImage.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewableImage.cjs","names":["useState","MediaViewerDialog","require_MediaViewerDialog","react_jsx_runtime","react","ViewableImage","image","opened","setOpened","close","name","title","alt","src","renderReview"],"sources":["../../../src/components/ViewableImage.tsx"],"sourcesContent":["import { useState, type ComponentProps } from 'react';\n\nimport type { MarkdownMedia, MarkdownMediaReview } from '../lib/markdownMedia';\nimport { MediaViewerDialog } from './MediaViewerDialog';\n\nexport interface ViewableImageProps extends Omit<ComponentProps<'img'>, 'src' | 'alt' | 'title'> {\n src: string;\n alt: string;\n /** The viewer's heading; defaults to `alt`. */\n title?: string;\n /** Annotate and review surface for the opened picture; without it the viewer only pans and zooms. */\n renderReview?: MarkdownMediaReview;\n}\n\n/** A picture outside Markdown (a tool result, an attachment) that opens the same full-screen viewer on click. */\nexport function ViewableImage({ src, alt, title, renderReview, ...image }: ViewableImageProps) {\n const [opened, setOpened] = useState<MarkdownMedia>();\n const close = () => setOpened(undefined);\n const name = title || alt || 'Image';\n return (\n <>\n <button\n type=\"button\"\n aria-label={`Open ${name} full screen`}\n onClick={() => setOpened({ kind: 'image', title: name, url: src })}\n className=\"max-w-full cursor-zoom-in self-start rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none\"\n >\n <img {...image} src={src} alt={alt} />\n </button>\n <MediaViewerDialog\n media={opened}\n onClose={close}\n review={opened === undefined ? undefined : renderReview?.(opened, close)}\n />\n </>\n );\n}\n"],"mappings":"A,iGAeA,SAAgBK,EAAc,CAAE,MAAK,MAAK,QAAO,eAAc,GAAGC,GAA6B,CAC7F,GAAM,CAACC,EAAQC,IAAA,EAAaR,EAAAA,SAAAA,CAAwB,EAC9CS,MAAcD,EAAU,IAAA,EAAS,EACjCE,EAAOC,GAASC,GAAO,QAC7B,MACE,iBAAA,EAAAT,EAAA,KAAA,CAAAA,EAAA,SAAA,CAAA,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,SAAD,CACE,KAAK,SACL,aAAY,QAAQO,EAAK,cACzB,YAAeF,EAAU,CAAE,KAAM,QAAS,MAAOE,EAAM,IAAKG,CAAI,CAAC,EACjE,UAAU,0HAEV,SAAA,iBAAA,EAAAV,EAAA,IAAA,CAAC,MAAD,CAAK,GAAIG,EAAY,MAAU,KAAM,CAAA,CAC/B,CAAA,EACR,iBAAA,EAAAH,EAAA,IAAA,CAACF,EAAAA,kBAAD,CACE,MAAOM,EACP,QAASE,EACT,OAAQF,IAAW,IAAA,GAAY,IAAA,GAAYO,IAAeP,EAAQE,CAAK,CACxE,CAAA,CACD,CAAA,CAAA,CAEN,C"}
|
package/dist/src/icons/icons.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=require("lucide-react");Object.defineProperty(exports,"ActivityIcon",{enumerable:!0,get:function(){return e.Activity}}),Object.defineProperty(exports,"AlertIcon",{enumerable:!0,get:function(){return e.CircleAlert}}),Object.defineProperty(exports,"ArrowRightIcon",{enumerable:!0,get:function(){return e.ArrowRight}}),Object.defineProperty(exports,"AudioLinesIcon",{enumerable:!0,get:function(){return e.AudioLines}}),Object.defineProperty(exports,"BookmarkPlusIcon",{enumerable:!0,get:function(){return e.BookmarkPlus}}),Object.defineProperty(exports,"BranchIcon",{enumerable:!0,get:function(){return e.GitBranch}}),Object.defineProperty(exports,"CheckIcon",{enumerable:!0,get:function(){return e.Check}}),Object.defineProperty(exports,"ChevronDownIcon",{enumerable:!0,get:function(){return e.ChevronDown}}),Object.defineProperty(exports,"ChevronRightIcon",{enumerable:!0,get:function(){return e.ChevronRight}}),Object.defineProperty(exports,"ChevronUpIcon",{enumerable:!0,get:function(){return e.ChevronUp}}),Object.defineProperty(exports,"CloseIcon",{enumerable:!0,get:function(){return e.X}}),Object.defineProperty(exports,"CopyIcon",{enumerable:!0,get:function(){return e.Copy}}),Object.defineProperty(exports,"EditIcon",{enumerable:!0,get:function(){return e.Pencil}}),Object.defineProperty(exports,"EnterIcon",{enumerable:!0,get:function(){return e.CornerDownLeft}}),Object.defineProperty(exports,"ExternalLinkIcon",{enumerable:!0,get:function(){return e.ExternalLink}}),Object.defineProperty(exports,"FileIcon",{enumerable:!0,get:function(){return e.FileText}}),Object.defineProperty(exports,"FolderIcon",{enumerable:!0,get:function(){return e.Folder}}),Object.defineProperty(exports,"ForkIcon",{enumerable:!0,get:function(){return e.GitFork}}),Object.defineProperty(exports,"GearIcon",{enumerable:!0,get:function(){return e.Settings}}),Object.defineProperty(exports,"GlobeIcon",{enumerable:!0,get:function(){return e.Globe}}),Object.defineProperty(exports,"HomeIcon",{enumerable:!0,get:function(){return e.House}}),Object.defineProperty(exports,"KebabIcon",{enumerable:!0,get:function(){return e.MoreVertical}}),Object.defineProperty(exports,"LightbulbIcon",{enumerable:!0,get:function(){return e.Lightbulb}}),Object.defineProperty(exports,"LoaderIcon",{enumerable:!0,get:function(){return e.Loader2}}),Object.defineProperty(exports,"LockIcon",{enumerable:!0,get:function(){return e.Lock}}),Object.defineProperty(exports,"MessageIcon",{enumerable:!0,get:function(){return e.MessageCircle}}),Object.defineProperty(exports,"MicIcon",{enumerable:!0,get:function(){return e.Mic}}),Object.defineProperty(exports,"PaletteIcon",{enumerable:!0,get:function(){return e.Palette}}),Object.defineProperty(exports,"PaperclipIcon",{enumerable:!0,get:function(){return e.Paperclip}}),Object.defineProperty(exports,"PlayCircleIcon",{enumerable:!0,get:function(){return e.CirclePlay}}),Object.defineProperty(exports,"PlusIcon",{enumerable:!0,get:function(){return e.Plus}}),Object.defineProperty(exports,"QuoteIcon",{enumerable:!0,get:function(){return e.Quote}}),Object.defineProperty(exports,"RefreshIcon",{enumerable:!0,get:function(){return e.RefreshCw}}),Object.defineProperty(exports,"RewindIcon",{enumerable:!0,get:function(){return e.Rewind}}),Object.defineProperty(exports,"SearchIcon",{enumerable:!0,get:function(){return e.Search}}),Object.defineProperty(exports,"SendIcon",{enumerable:!0,get:function(){return e.Send}}),Object.defineProperty(exports,"ShieldIcon",{enumerable:!0,get:function(){return e.ShieldCheck}}),Object.defineProperty(exports,"SparklesIcon",{enumerable:!0,get:function(){return e.Sparkles}}),Object.defineProperty(exports,"StopIcon",{enumerable:!0,get:function(){return e.Square}}),Object.defineProperty(exports,"TaskIcon",{enumerable:!0,get:function(){return e.SquareCheckBig}}),Object.defineProperty(exports,"TrashIcon",{enumerable:!0,get:function(){return e.Trash2}}),Object.defineProperty(exports,"UnlockIcon",{enumerable:!0,get:function(){return e.LockOpen}}),Object.defineProperty(exports,"UserIcon",{enumerable:!0,get:function(){return e.UserRound}}),Object.defineProperty(exports,"UsersIcon",{enumerable:!0,get:function(){return e.Users}}),Object.defineProperty(exports,"VolumeIcon",{enumerable:!0,get:function(){return e.Volume2}}),Object.defineProperty(exports,"WorkflowIcon",{enumerable:!0,get:function(){return e.Workflow}}),Object.defineProperty(exports,"WrenchIcon",{enumerable:!0,get:function(){return e.Wrench}});
|
|
1
|
+
let e=require("lucide-react");Object.defineProperty(exports,"ActivityIcon",{enumerable:!0,get:function(){return e.Activity}}),Object.defineProperty(exports,"AlertIcon",{enumerable:!0,get:function(){return e.CircleAlert}}),Object.defineProperty(exports,"AppWindowIcon",{enumerable:!0,get:function(){return e.AppWindow}}),Object.defineProperty(exports,"ArrowLeftIcon",{enumerable:!0,get:function(){return e.ArrowLeft}}),Object.defineProperty(exports,"ArrowRightIcon",{enumerable:!0,get:function(){return e.ArrowRight}}),Object.defineProperty(exports,"AudioLinesIcon",{enumerable:!0,get:function(){return e.AudioLines}}),Object.defineProperty(exports,"BellIcon",{enumerable:!0,get:function(){return e.Bell}}),Object.defineProperty(exports,"BookmarkPlusIcon",{enumerable:!0,get:function(){return e.BookmarkPlus}}),Object.defineProperty(exports,"BranchIcon",{enumerable:!0,get:function(){return e.GitBranch}}),Object.defineProperty(exports,"CalendarIcon",{enumerable:!0,get:function(){return e.Calendar}}),Object.defineProperty(exports,"CheckIcon",{enumerable:!0,get:function(){return e.Check}}),Object.defineProperty(exports,"ChevronDownIcon",{enumerable:!0,get:function(){return e.ChevronDown}}),Object.defineProperty(exports,"ChevronRightIcon",{enumerable:!0,get:function(){return e.ChevronRight}}),Object.defineProperty(exports,"ChevronUpIcon",{enumerable:!0,get:function(){return e.ChevronUp}}),Object.defineProperty(exports,"CloseIcon",{enumerable:!0,get:function(){return e.X}}),Object.defineProperty(exports,"CopyIcon",{enumerable:!0,get:function(){return e.Copy}}),Object.defineProperty(exports,"DownloadIcon",{enumerable:!0,get:function(){return e.Download}}),Object.defineProperty(exports,"EditIcon",{enumerable:!0,get:function(){return e.Pencil}}),Object.defineProperty(exports,"EnterIcon",{enumerable:!0,get:function(){return e.CornerDownLeft}}),Object.defineProperty(exports,"ExternalLinkIcon",{enumerable:!0,get:function(){return e.ExternalLink}}),Object.defineProperty(exports,"FileIcon",{enumerable:!0,get:function(){return e.FileText}}),Object.defineProperty(exports,"FolderIcon",{enumerable:!0,get:function(){return e.Folder}}),Object.defineProperty(exports,"ForkIcon",{enumerable:!0,get:function(){return e.GitFork}}),Object.defineProperty(exports,"GearIcon",{enumerable:!0,get:function(){return e.Settings}}),Object.defineProperty(exports,"GlobeIcon",{enumerable:!0,get:function(){return e.Globe}}),Object.defineProperty(exports,"GridIcon",{enumerable:!0,get:function(){return e.LayoutGrid}}),Object.defineProperty(exports,"HelpIcon",{enumerable:!0,get:function(){return e.CircleHelp}}),Object.defineProperty(exports,"HomeIcon",{enumerable:!0,get:function(){return e.House}}),Object.defineProperty(exports,"ImageIcon",{enumerable:!0,get:function(){return e.Image}}),Object.defineProperty(exports,"KebabIcon",{enumerable:!0,get:function(){return e.MoreVertical}}),Object.defineProperty(exports,"LightbulbIcon",{enumerable:!0,get:function(){return e.Lightbulb}}),Object.defineProperty(exports,"ListIcon",{enumerable:!0,get:function(){return e.List}}),Object.defineProperty(exports,"LoaderIcon",{enumerable:!0,get:function(){return e.Loader2}}),Object.defineProperty(exports,"LockIcon",{enumerable:!0,get:function(){return e.Lock}}),Object.defineProperty(exports,"MenuIcon",{enumerable:!0,get:function(){return e.Menu}}),Object.defineProperty(exports,"MessageIcon",{enumerable:!0,get:function(){return e.MessageCircle}}),Object.defineProperty(exports,"MicIcon",{enumerable:!0,get:function(){return e.Mic}}),Object.defineProperty(exports,"MonitorIcon",{enumerable:!0,get:function(){return e.Monitor}}),Object.defineProperty(exports,"PaletteIcon",{enumerable:!0,get:function(){return e.Palette}}),Object.defineProperty(exports,"PaperclipIcon",{enumerable:!0,get:function(){return e.Paperclip}}),Object.defineProperty(exports,"PlayCircleIcon",{enumerable:!0,get:function(){return e.CirclePlay}}),Object.defineProperty(exports,"PlusIcon",{enumerable:!0,get:function(){return e.Plus}}),Object.defineProperty(exports,"PuzzleIcon",{enumerable:!0,get:function(){return e.Puzzle}}),Object.defineProperty(exports,"QuoteIcon",{enumerable:!0,get:function(){return e.Quote}}),Object.defineProperty(exports,"RefreshIcon",{enumerable:!0,get:function(){return e.RefreshCw}}),Object.defineProperty(exports,"RewindIcon",{enumerable:!0,get:function(){return e.Rewind}}),Object.defineProperty(exports,"SearchIcon",{enumerable:!0,get:function(){return e.Search}}),Object.defineProperty(exports,"SendIcon",{enumerable:!0,get:function(){return e.Send}}),Object.defineProperty(exports,"ServerIcon",{enumerable:!0,get:function(){return e.Server}}),Object.defineProperty(exports,"ShieldIcon",{enumerable:!0,get:function(){return e.ShieldCheck}}),Object.defineProperty(exports,"ShrinkIcon",{enumerable:!0,get:function(){return e.Shrink}}),Object.defineProperty(exports,"SidebarIcon",{enumerable:!0,get:function(){return e.PanelLeft}}),Object.defineProperty(exports,"SlidersIcon",{enumerable:!0,get:function(){return e.SlidersHorizontal}}),Object.defineProperty(exports,"SmartphoneIcon",{enumerable:!0,get:function(){return e.Smartphone}}),Object.defineProperty(exports,"SparklesIcon",{enumerable:!0,get:function(){return e.Sparkles}}),Object.defineProperty(exports,"StopIcon",{enumerable:!0,get:function(){return e.Square}}),Object.defineProperty(exports,"TargetIcon",{enumerable:!0,get:function(){return e.Target}}),Object.defineProperty(exports,"TaskIcon",{enumerable:!0,get:function(){return e.SquareCheckBig}}),Object.defineProperty(exports,"TrashIcon",{enumerable:!0,get:function(){return e.Trash2}}),Object.defineProperty(exports,"UnlockIcon",{enumerable:!0,get:function(){return e.LockOpen}}),Object.defineProperty(exports,"UserIcon",{enumerable:!0,get:function(){return e.UserRound}}),Object.defineProperty(exports,"UsersIcon",{enumerable:!0,get:function(){return e.Users}}),Object.defineProperty(exports,"VolumeIcon",{enumerable:!0,get:function(){return e.Volume2}}),Object.defineProperty(exports,"WorkflowIcon",{enumerable:!0,get:function(){return e.Workflow}}),Object.defineProperty(exports,"WrenchIcon",{enumerable:!0,get:function(){return e.Wrench}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ansiSpans.cjs","names":["ANSI_PATTERN","FOREGROUND_CLASS","blank","paletteColor","index","level","rgb","offset","channel","value","clamp","red","green","blue","extendedColor","selector","codes","entry","applySgr","parameters","part","next","current","code","color","consumed","className","spanOf","attributes","ansiSpans","spans","cursor","match","line"],"sources":["../../../src/lib/ansiSpans.ts"],"sourcesContent":["/**\n * The escapes a captured terminal screen carries, turned into spans.\n *\n * WHY THIS EXISTS:\n * Two kinds of output reach the cockpit with a terminal's colour still in it.\n * A workflow captures a tmux pane with `-e`, and a runner's log file keeps the\n * palette on purpose, stripping only cursor moves and redraws. The browser has\n * no terminal, and the cockpit carries no terminal emulator, so the sequences\n * are read here and rendered as ordinary spans. It lives in the component\n * library because both readers need it and neither may import the other.\n *\n * WHAT IT UNDERSTANDS:\n * SGR (`ESC [ … m`) only: the eight base colours and their bright forms, 256\n * colour and truecolour, and bold, faint, italic, underline and inverse. Every\n * other sequence is dropped rather than printed, because a cursor move or a\n * clear that arrives as visible junk is worse than one that arrives as\n * nothing: the screen is a snapshot, and the next one repaints it anyway.\n *\n * The named colours become theme tokens rather than the child's own palette,\n * so a run's output sits in the cockpit's colours instead of fighting them.\n * Only 256-colour and truecolour, which name a colour no token can stand in\n * for, are rendered as themselves.\n */\n\n/** One run of text with the attributes in force when it was printed. */\nexport interface AnsiSpan {\n text: string;\n /** Theme class for a named colour, absent when the colour is the default. */\n className?: string;\n /** An exact colour the child asked for, as `rgb(r g b)`; only 256/truecolour set this. */\n color?: string;\n bold?: boolean;\n faint?: boolean;\n italic?: boolean;\n underline?: boolean;\n /** Foreground and background swapped, which a TUI uses for selection and cursors. */\n inverse?: boolean;\n}\n\n// oxlint-disable-next-line no-control-regex -- reading terminal escapes is the point\nconst ANSI_PATTERN = /\\x1b\\[([0-9;:]*)([A-Za-z])|\\x1b\\][^\\x07\\x1b]*(?:\\x07|\\x1b\\\\)|\\x1b[()][A-Za-z0-9]|\\x1b[A-Za-z]/g;\nconst SGR_FINAL = 'm';\nconst RESET_CODE = 0;\nconst DEFAULT_FOREGROUND = 39;\nconst EXTENDED_FOREGROUND = 38;\nconst EXTENDED_BACKGROUND = 48;\nconst TRUECOLOR_SELECTOR = 2;\nconst PALETTE_SELECTOR = 5;\nconst BASE_FOREGROUND_START = 30;\nconst BASE_FOREGROUND_END = 37;\nconst BRIGHT_FOREGROUND_START = 90;\nconst BRIGHT_FOREGROUND_END = 97;\nconst BACKGROUND_START = 40;\nconst BACKGROUND_END = 49;\nconst BRIGHT_BACKGROUND_START = 100;\nconst BRIGHT_BACKGROUND_END = 107;\nconst RGB_CHANNELS = 3;\nconst PALETTE_SIZE = 256;\nconst PALETTE_CUBE_START = 16;\nconst PALETTE_GREY_START = 232;\nconst CUBE_SIDE = 6;\nconst CUBE_STEP = 40;\nconst CUBE_OFFSET = 55;\nconst GREY_STEP = 10;\nconst GREY_OFFSET = 8;\nconst MAX_CHANNEL = 255;\n\nconst BOLD = 1;\nconst FAINT = 2;\nconst ITALIC = 3;\nconst UNDERLINE = 4;\nconst INVERSE = 7;\nconst NOT_BOLD = 22;\nconst NOT_ITALIC = 23;\nconst NOT_UNDERLINE = 24;\nconst NOT_INVERSE = 27;\n\n/**\n * The eight terminal colours as theme tokens, listed as whole class strings so\n * the host's class scanner can see them.\n */\nconst FOREGROUND_CLASS: Readonly<Record<number, string>> = {\n 30: 'text-po-faint',\n 31: 'text-po-red',\n 32: 'text-po-green',\n 33: 'text-po-yellow',\n 34: 'text-po-blue',\n 35: 'text-po-magenta',\n 36: 'text-po-cyan',\n 37: 'text-po-text',\n 90: 'text-po-dim',\n 91: 'text-po-red',\n 92: 'text-po-green',\n 93: 'text-po-orange',\n 94: 'text-po-blue',\n 95: 'text-po-violet',\n 96: 'text-po-cyan',\n 97: 'text-po-hi',\n};\n\ninterface Attributes {\n className?: string;\n color?: string;\n bold: boolean;\n faint: boolean;\n italic: boolean;\n underline: boolean;\n inverse: boolean;\n}\n\nfunction blank(): Attributes {\n return { bold: false, faint: false, italic: false, underline: false, inverse: false };\n}\n\n/** One of the 256 palette entries as an exact colour, since no token stands for it. */\nfunction paletteColor(index: number): string | undefined {\n if (index < 0 || index >= PALETTE_SIZE) return undefined;\n if (index < PALETTE_CUBE_START) return undefined; // The first sixteen are the named ones.\n if (index >= PALETTE_GREY_START) {\n const level = (index - PALETTE_GREY_START) * GREY_STEP + GREY_OFFSET;\n return rgb(level, level, level);\n }\n const offset = index - PALETTE_CUBE_START;\n const channel = (value: number): number => (value === 0 ? 0 : value * CUBE_STEP + CUBE_OFFSET);\n return rgb(\n channel(Math.floor(offset / (CUBE_SIDE * CUBE_SIDE)) % CUBE_SIDE),\n channel(Math.floor(offset / CUBE_SIDE) % CUBE_SIDE),\n channel(offset % CUBE_SIDE),\n );\n}\n\nfunction rgb(red: number, green: number, blue: number): string {\n const clamp = (value: number): number => Math.max(0, Math.min(MAX_CHANNEL, Math.round(value)));\n return `rgb(${clamp(red)} ${clamp(green)} ${clamp(blue)})`;\n}\n\n/** Reads one extended-colour run (`38;5;n` or `38;2;r;g;b`), answering how many codes it ate. */\nfunction extendedColor(codes: readonly number[], index: number): { color?: string; consumed: number } {\n const selector = codes[index + 1];\n if (selector === TRUECOLOR_SELECTOR) {\n const [red, green, blue] = codes.slice(index + 2, index + 2 + RGB_CHANNELS);\n if (red === undefined || green === undefined || blue === undefined) return { consumed: codes.length };\n return { color: rgb(red, green, blue), consumed: 1 + 1 + RGB_CHANNELS };\n }\n if (selector === PALETTE_SELECTOR) {\n const entry = codes[index + 2];\n return { ...(entry === undefined ? {} : { color: paletteColor(entry) }), consumed: 3 };\n }\n return { consumed: 1 };\n}\n\nfunction applySgr(current: Attributes, parameters: string): Attributes {\n // An empty parameter list is a reset, which is what a bare `ESC[m` means.\n const codes = parameters === '' ? [RESET_CODE] : parameters.split(/[;:]/).map((part) => Number(part) || 0);\n let next = { ...current };\n for (let index = 0; index < codes.length; index += 1) {\n const code = codes[index] as number;\n if (code === RESET_CODE) {\n next = blank();\n } else if (code === BOLD) next.bold = true;\n else if (code === FAINT) next.faint = true;\n else if (code === ITALIC) next.italic = true;\n else if (code === UNDERLINE) next.underline = true;\n else if (code === INVERSE) next.inverse = true;\n else if (code === NOT_BOLD) {\n next.bold = false;\n next.faint = false;\n } else if (code === NOT_ITALIC) next.italic = false;\n else if (code === NOT_UNDERLINE) next.underline = false;\n else if (code === NOT_INVERSE) next.inverse = false;\n else if (code === DEFAULT_FOREGROUND) {\n delete next.className;\n delete next.color;\n } else if (code === EXTENDED_FOREGROUND) {\n const { color, consumed } = extendedColor(codes, index);\n delete next.className;\n if (color === undefined) delete next.color;\n else next.color = color;\n index += consumed - 1;\n } else if (code === EXTENDED_BACKGROUND) {\n // Backgrounds are dropped: a child painting its own background over the\n // cockpit's panel is what makes captured output unreadable in a theme.\n index += extendedColor(codes, index).consumed - 1;\n } else if (\n (code >= BASE_FOREGROUND_START && code <= BASE_FOREGROUND_END) ||\n (code >= BRIGHT_FOREGROUND_START && code <= BRIGHT_FOREGROUND_END)\n ) {\n const className = FOREGROUND_CLASS[code];\n delete next.color;\n if (className === undefined) delete next.className;\n else next.className = className;\n }\n // Background and everything else is read and dropped.\n else if (\n (code >= BACKGROUND_START && code <= BACKGROUND_END) ||\n (code >= BRIGHT_BACKGROUND_START && code <= BRIGHT_BACKGROUND_END)\n ) {\n next.inverse = false;\n }\n }\n return next;\n}\n\nfunction spanOf(text: string, attributes: Attributes): AnsiSpan {\n return {\n text,\n ...(attributes.className === undefined ? {} : { className: attributes.className }),\n ...(attributes.color === undefined ? {} : { color: attributes.color }),\n ...(attributes.bold ? { bold: true } : {}),\n ...(attributes.faint ? { faint: true } : {}),\n ...(attributes.italic ? { italic: true } : {}),\n ...(attributes.underline ? { underline: true } : {}),\n ...(attributes.inverse ? { inverse: true } : {}),\n };\n}\n\n/** One line of captured screen as spans, with every unreadable sequence dropped. */\nexport function ansiSpans(line: string): AnsiSpan[] {\n const spans: AnsiSpan[] = [];\n let attributes = blank();\n let cursor = 0;\n ANSI_PATTERN.lastIndex = 0;\n let match = ANSI_PATTERN.exec(line);\n while (match !== null) {\n if (match.index > cursor) spans.push(spanOf(line.slice(cursor, match.index), attributes));\n if (match[2] === SGR_FINAL) attributes = applySgr(attributes, match[1] ?? '');\n cursor = match.index + match[0].length;\n match = ANSI_PATTERN.exec(line);\n }\n if (cursor < line.length) spans.push(spanOf(line.slice(cursor), attributes));\n return spans;\n}\n"],"mappings":"AAwCA,MAAMA,EAAe,iGAyCfC,EAAqD,CACzD,GAAI,gBACJ,GAAI,cACJ,GAAI,gBACJ,GAAI,iBACJ,GAAI,eACJ,GAAI,kBACJ,GAAI,eACJ,GAAI,eACJ,GAAI,cACJ,GAAI,cACJ,GAAI,gBACJ,GAAI,iBACJ,GAAI,eACJ,GAAI,iBACJ,GAAI,eACJ,GAAI,YACN,EAYA,SAASC,GAAoB,CAC3B,MAAO,CAAE,KAAM,GAAO,MAAO,GAAO,OAAQ,GAAO,UAAW,GAAO,QAAS,EAAM,CACtF,CAGA,SAASC,EAAa,EAAmC,CAEvD,GADIC,EAAQ,GAAKA,GAAS,KACtBA,EAAQ,GAAoB,OAChC,GAAIA,GAAS,IAAoB,CAC/B,IAAMC,GAASD,EAAQ,KAAsB,GAAY,EACzD,OAAOE,EAAID,EAAOA,EAAOA,CAAK,CAChC,CACA,IAAME,EAASH,EAAQ,GACjBI,EAAW,GAA2BC,IAAU,EAAI,EAAIA,EAAQ,GAAY,GAClF,OAAOH,EACLE,EAAQ,KAAK,MAAMD,EAAU,EAAsB,EAAI,CAAS,EAChEC,EAAQ,KAAK,MAAMD,EAAS,CAAS,EAAI,CAAS,EAClDC,EAAQD,EAAS,CAAS,CAC5B,CACF,CAEA,SAASD,EAAI,EAAa,EAAe,EAAsB,CAC7D,IAAMI,EAAS,GAA0B,KAAK,IAAI,EAAG,KAAK,IAAI,IAAa,KAAK,MAAMD,CAAK,CAAC,CAAC,EAC7F,MAAO,OAAOC,EAAMC,CAAG,EAAE,GAAGD,EAAME,CAAK,EAAE,GAAGF,EAAMG,CAAI,EAAE,EAC1D,CAGA,SAASC,EAAc,EAA0B,EAAqD,CACpG,IAAMC,EAAWC,EAAMZ,EAAQ,GAC/B,GAAIW,IAAa,EAAoB,CACnC,GAAM,CAACJ,EAAKC,EAAOC,GAAQG,EAAM,MAAMZ,EAAQ,EAAGA,EAAQ,EAAI,CAAY,EAE1E,OADIO,IAAQ,IAAA,IAAaC,IAAU,IAAA,IAAaC,IAAS,IAAA,GAAkB,CAAE,SAAUG,EAAM,MAAO,EAC7F,CAAE,MAAOV,EAAIK,EAAKC,EAAOC,CAAI,EAAG,SAAU,CAAqB,CACxE,CACA,GAAIE,IAAa,EAAkB,CACjC,IAAME,EAAQD,EAAMZ,EAAQ,GAC5B,MAAO,CAAE,GAAIa,IAAU,IAAA,GAAY,CAAC,EAAI,CAAE,MAAOd,EAAac,CAAK,CAAE,EAAI,SAAU,CAAE,CACvF,CACA,MAAO,CAAE,SAAU,CAAE,CACvB,CAEA,SAASC,EAAS,EAAqB,EAAgC,CAErE,IAAMF,EAAQG,IAAe,GAAK,CAAC,CAAU,EAAIA,EAAW,MAAM,MAAM,CAAC,CAAC,IAAK,GAAS,OAAOC,CAAI,GAAK,CAAC,EACrGC,EAAO,CAAE,GAAGC,CAAQ,EACxB,IAAK,IAAIlB,EAAQ,EAAGA,EAAQY,EAAM,OAAQ,GAAS,EAAG,CACpD,IAAMO,EAAOP,EAAMZ,GACnB,GAAImB,IAAS,EACX,EAAOrB,EAAM,OACR,GAAIqB,IAAS,EAAM,EAAK,KAAO,QACjC,GAAIA,IAAS,EAAO,EAAK,MAAQ,QACjC,GAAIA,IAAS,EAAQ,EAAK,OAAS,QACnC,GAAIA,IAAS,EAAW,EAAK,UAAY,QACzC,GAAIA,IAAS,EAAS,EAAK,QAAU,QACrC,GAAIA,IAAS,GAChB,EAAK,KAAO,GACZ,EAAK,MAAQ,QACR,GAAIA,IAAS,GAAY,EAAK,OAAS,QACzC,GAAIA,IAAS,GAAe,EAAK,UAAY,QAC7C,GAAIA,IAAS,GAAa,EAAK,QAAU,QACzC,GAAIA,IAAS,GAChB,OAAOF,EAAK,UACZ,OAAOA,EAAK,WACP,GAAIE,IAAS,GAAqB,CACvC,GAAM,CAAE,QAAO,YAAaT,EAAcE,EAAOZ,CAAK,EACtD,OAAOiB,EAAK,UACRG,IAAU,IAAA,GAAW,OAAOH,EAAK,MAChC,EAAK,MAAQG,EAClB,GAASC,EAAW,CACtB,MAAO,GAAIF,IAAS,GAGlB,GAAST,EAAcE,EAAOZ,CAAK,CAAC,CAAC,SAAW,OAC3C,GACJmB,GAAQ,IAAyBA,GAAQ,IACzCA,GAAQ,IAA2BA,GAAQ,GAC5C,CACA,IAAMG,EAAYzB,EAAiBsB,GACnC,OAAOF,EAAK,MACRK,IAAc,IAAA,GAAW,OAAOL,EAAK,UACpC,EAAK,UAAYK,CACxB,MAGGH,GAAQ,IAAoBA,GAAQ,IACpCA,GAAQ,KAA2BA,GAAQ,OAE5C,EAAK,QAAU,GAEnB,CACA,OAAOF,CACT,CAEA,SAASM,EAAO,EAAc,EAAkC,CAC9D,MAAO,CACL,OACA,GAAIC,EAAW,YAAc,IAAA,GAAY,CAAC,EAAI,CAAE,UAAWA,EAAW,SAAU,EAChF,GAAIA,EAAW,QAAU,IAAA,GAAY,CAAC,EAAI,CAAE,MAAOA,EAAW,KAAM,EACpE,GAAIA,EAAW,KAAO,CAAE,KAAM,EAAK,EAAI,CAAC,EACxC,GAAIA,EAAW,MAAQ,CAAE,MAAO,EAAK,EAAI,CAAC,EAC1C,GAAIA,EAAW,OAAS,CAAE,OAAQ,EAAK,EAAI,CAAC,EAC5C,GAAIA,EAAW,UAAY,CAAE,UAAW,EAAK,EAAI,CAAC,EAClD,GAAIA,EAAW,QAAU,CAAE,QAAS,EAAK,EAAI,CAAC,CAChD,CACF,CAGA,SAAgBC,EAAU,EAA0B,CAClD,IAAMC,EAAoB,CAAC,EACvBF,EAAa1B,EAAM,EACnB6B,EAAS,EACb,EAAa,UAAY,EACzB,IAAIC,EAAQhC,EAAa,KAAKiC,CAAI,EAClC,KAAOD,IAAU,MACXA,EAAM,MAAQD,GAAQD,EAAM,KAAKH,EAAOM,EAAK,MAAMF,EAAQC,EAAM,KAAK,EAAGJ,CAAU,CAAC,EACpFI,EAAM,KAAO,MAAW,EAAad,EAASU,EAAYI,EAAM,IAAM,EAAE,GAC5E,EAASA,EAAM,MAAQA,EAAM,EAAE,CAAC,OAChC,EAAQhC,EAAa,KAAKiC,CAAI,EAGhC,OADIF,EAASE,EAAK,QAAQH,EAAM,KAAKH,EAAOM,EAAK,MAAMF,CAAM,EAAGH,CAAU,CAAC,EACpEE,CACT"}
|
|
1
|
+
{"version":3,"file":"ansiSpans.cjs","names":["ANSI_PATTERN","FOREGROUND_CLASS","blank","paletteColor","index","level","rgb","offset","channel","value","clamp","red","green","blue","extendedColor","selector","codes","entry","applySgr","parameters","part","next","current","code","color","consumed","className","spanOf","attributes","ansiSpans","spans","cursor","match","line"],"sources":["../../../src/lib/ansiSpans.ts"],"sourcesContent":["/**\n * The escapes a captured terminal screen carries, turned into spans.\n *\n * WHY THIS EXISTS:\n * Two kinds of output reach the cockpit with a terminal's colour still in it.\n * A workflow captures a tmux pane with `-e`, and a runner's log file keeps the\n * palette on purpose, stripping only cursor moves and redraws. The browser has\n * no terminal, and the cockpit carries no terminal emulator, so the sequences\n * are read here and rendered as ordinary spans. It lives in the component\n * library because both readers need it and neither may import the other.\n *\n * WHAT IT UNDERSTANDS:\n * SGR (`ESC [ … m`) only: the eight base colours and their bright forms, 256\n * colour and truecolour, and bold, faint, italic, underline and inverse. Every\n * other sequence is dropped rather than printed, because a cursor move or a\n * clear that arrives as visible junk is worse than one that arrives as\n * nothing: the screen is a snapshot, and the next one repaints it anyway.\n *\n * The named colours become theme tokens rather than the child's own palette,\n * so a run's output sits in the cockpit's colours instead of fighting them.\n * Only 256-colour and truecolour, which name a colour no token can stand in\n * for, are rendered as themselves.\n */\n\n/** One run of text with the attributes in force when it was printed. */\nexport interface AnsiSpan {\n text: string;\n /** Theme class for a named colour, absent when the colour is the default. */\n className?: string;\n /** An exact colour the child asked for, as `rgb(r g b)`; only 256/truecolour set this. */\n color?: string;\n bold?: boolean;\n faint?: boolean;\n italic?: boolean;\n underline?: boolean;\n /** Foreground and background swapped, which a TUI uses for selection and cursors. */\n inverse?: boolean;\n}\n\n// oxlint-disable-next-line no-control-regex -- reading terminal escapes is the point\nconst ANSI_PATTERN = /\\x1b\\[([0-9;:]*)([A-Za-z])|\\x1b\\][^\\x07\\x1b]*(?:\\x07|\\x1b\\\\)|\\x1b[()][A-Za-z0-9]|\\x1b[A-Za-z]/g;\nconst SGR_FINAL = 'm';\nconst RESET_CODE = 0;\nconst DEFAULT_FOREGROUND = 39;\nconst EXTENDED_FOREGROUND = 38;\nconst EXTENDED_BACKGROUND = 48;\nconst TRUECOLOR_SELECTOR = 2;\nconst PALETTE_SELECTOR = 5;\nconst BASE_FOREGROUND_START = 30;\nconst BASE_FOREGROUND_END = 37;\nconst BRIGHT_FOREGROUND_START = 90;\nconst BRIGHT_FOREGROUND_END = 97;\nconst BACKGROUND_START = 40;\nconst BACKGROUND_END = 49;\nconst BRIGHT_BACKGROUND_START = 100;\nconst BRIGHT_BACKGROUND_END = 107;\nconst RGB_CHANNELS = 3;\nconst PALETTE_SIZE = 256;\nconst PALETTE_CUBE_START = 16;\nconst PALETTE_GREY_START = 232;\nconst CUBE_SIDE = 6;\nconst CUBE_STEP = 40;\nconst CUBE_OFFSET = 55;\nconst GREY_STEP = 10;\nconst GREY_OFFSET = 8;\nconst MAX_CHANNEL = 255;\n\nconst BOLD = 1;\nconst FAINT = 2;\nconst ITALIC = 3;\nconst UNDERLINE = 4;\nconst INVERSE = 7;\nconst NOT_BOLD = 22;\nconst NOT_ITALIC = 23;\nconst NOT_UNDERLINE = 24;\nconst NOT_INVERSE = 27;\n\n/**\n * The eight terminal colours as theme tokens, listed as whole class strings so\n * the host's class scanner can see them.\n */\nconst FOREGROUND_CLASS: Readonly<Record<number, string>> = {\n 30: 'text-po-faint',\n 31: 'text-po-red',\n 32: 'text-po-green',\n 33: 'text-po-yellow',\n 34: 'text-po-blue',\n 35: 'text-po-magenta',\n 36: 'text-po-cyan',\n 37: 'text-po-text',\n 90: 'text-po-dim',\n 91: 'text-po-red',\n 92: 'text-po-green',\n 93: 'text-po-orange',\n 94: 'text-po-blue',\n 95: 'text-po-violet',\n 96: 'text-po-cyan',\n 97: 'text-po-hi',\n};\n\ninterface Attributes {\n className?: string;\n color?: string;\n bold: boolean;\n faint: boolean;\n italic: boolean;\n underline: boolean;\n inverse: boolean;\n}\n\nfunction blank(): Attributes {\n return { bold: false, faint: false, italic: false, underline: false, inverse: false };\n}\n\n/** One of the 256 palette entries as an exact colour, since no token stands for it. */\nfunction paletteColor(index: number): string | undefined {\n if (index < 0 || index >= PALETTE_SIZE) return undefined;\n if (index < PALETTE_CUBE_START) return undefined; // The first sixteen are the named ones.\n if (index >= PALETTE_GREY_START) {\n const level = (index - PALETTE_GREY_START) * GREY_STEP + GREY_OFFSET;\n return rgb(level, level, level);\n }\n const offset = index - PALETTE_CUBE_START;\n const channel = (value: number): number => (value === 0 ? 0 : value * CUBE_STEP + CUBE_OFFSET);\n return rgb(\n channel(Math.floor(offset / (CUBE_SIDE * CUBE_SIDE)) % CUBE_SIDE),\n channel(Math.floor(offset / CUBE_SIDE) % CUBE_SIDE),\n channel(offset % CUBE_SIDE),\n );\n}\n\nfunction rgb(red: number, green: number, blue: number): string {\n const clamp = (value: number): number => Math.max(0, Math.min(MAX_CHANNEL, Math.round(value)));\n return `rgb(${clamp(red)} ${clamp(green)} ${clamp(blue)})`;\n}\n\n/** Reads one extended-colour run (`38;5;n` or `38;2;r;g;b`), answering how many codes it ate. */\nfunction extendedColor(codes: readonly number[], index: number): { color?: string; consumed: number } {\n const selector = codes[index + 1];\n if (selector === TRUECOLOR_SELECTOR) {\n const [red, green, blue] = codes.slice(index + 2, index + 2 + RGB_CHANNELS);\n if (red === undefined || green === undefined || blue === undefined) return { consumed: codes.length };\n return { color: rgb(red, green, blue), consumed: 1 + 1 + RGB_CHANNELS };\n }\n if (selector === PALETTE_SELECTOR) {\n const entry = codes[index + 2];\n return { ...(entry === undefined ? {} : { color: paletteColor(entry) }), consumed: 3 };\n }\n return { consumed: 1 };\n}\n\nfunction applySgr(current: Attributes, parameters: string): Attributes {\n // An empty parameter list is a reset, which is what a bare `ESC[m` means.\n const codes = parameters === '' ? [RESET_CODE] : parameters.split(/[;:]/).map((part) => Number(part) || 0);\n let next = { ...current };\n for (let index = 0; index < codes.length; index += 1) {\n const code = codes[index] as number;\n if (code === RESET_CODE) {\n next = blank();\n } else if (code === BOLD) next.bold = true;\n else if (code === FAINT) next.faint = true;\n else if (code === ITALIC) next.italic = true;\n else if (code === UNDERLINE) next.underline = true;\n else if (code === INVERSE) next.inverse = true;\n else if (code === NOT_BOLD) {\n next.bold = false;\n next.faint = false;\n } else if (code === NOT_ITALIC) next.italic = false;\n else if (code === NOT_UNDERLINE) next.underline = false;\n else if (code === NOT_INVERSE) next.inverse = false;\n else if (code === DEFAULT_FOREGROUND) {\n delete next.className;\n delete next.color;\n } else if (code === EXTENDED_FOREGROUND) {\n const { color, consumed } = extendedColor(codes, index);\n delete next.className;\n if (color === undefined) delete next.color;\n else next.color = color;\n index += consumed - 1;\n } else if (code === EXTENDED_BACKGROUND) {\n // Backgrounds are dropped: a child painting its own background over the\n // cockpit's panel is what makes captured output unreadable in a theme.\n index += extendedColor(codes, index).consumed - 1;\n } else if (\n (code >= BASE_FOREGROUND_START && code <= BASE_FOREGROUND_END) ||\n (code >= BRIGHT_FOREGROUND_START && code <= BRIGHT_FOREGROUND_END)\n ) {\n const className = FOREGROUND_CLASS[code];\n delete next.color;\n if (className === undefined) delete next.className;\n else next.className = className;\n }\n // Background and everything else is read and dropped.\n else if (\n (code >= BACKGROUND_START && code <= BACKGROUND_END) ||\n (code >= BRIGHT_BACKGROUND_START && code <= BRIGHT_BACKGROUND_END)\n ) {\n next.inverse = false;\n }\n }\n return next;\n}\n\nfunction spanOf(text: string, attributes: Attributes): AnsiSpan {\n return {\n text,\n ...(attributes.className === undefined ? {} : { className: attributes.className }),\n ...(attributes.color === undefined ? {} : { color: attributes.color }),\n ...(attributes.bold ? { bold: true } : {}),\n ...(attributes.faint ? { faint: true } : {}),\n ...(attributes.italic ? { italic: true } : {}),\n ...(attributes.underline ? { underline: true } : {}),\n ...(attributes.inverse ? { inverse: true } : {}),\n };\n}\n\n/** One line of captured screen as spans, with every unreadable sequence dropped. */\nexport function ansiSpans(line: string): AnsiSpan[] {\n const spans: AnsiSpan[] = [];\n let attributes = blank();\n let cursor = 0;\n ANSI_PATTERN.lastIndex = 0;\n let match = ANSI_PATTERN.exec(line);\n while (match !== null) {\n if (match.index > cursor) spans.push(spanOf(line.slice(cursor, match.index), attributes));\n if (match[2] === SGR_FINAL) attributes = applySgr(attributes, match[1] ?? '');\n cursor = match.index + match[0].length;\n match = ANSI_PATTERN.exec(line);\n }\n if (cursor < line.length) spans.push(spanOf(line.slice(cursor), attributes));\n return spans;\n}\n"],"mappings":"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"}
|
package/dist/src/lib/cn.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cn.cjs","names":["twMerge","clsx","tailwind_merge","cn","inputs"],"sources":["../../../src/lib/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/** Merges class lists the shadcn way: conditional joins, then Tailwind conflict resolution. */\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"kDAIA,SAAgBG,EAAG,GAAGC,EAA8B,CAClD,OAAA,EAAOJ,EAAAA,QAAAA,EAAAA,EAAQC,EAAA,KAAA,CAAKG,CAAM,CAAC,CAC7B"}
|
|
1
|
+
{"version":3,"file":"cn.cjs","names":["twMerge","clsx","tailwind_merge","cn","inputs"],"sources":["../../../src/lib/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/** Merges class lists the shadcn way: conditional joins, then Tailwind conflict resolution. */\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n"],"mappings":"A,kDAIA,SAAgBG,EAAG,GAAGC,EAA8B,CAClD,OAAA,EAAOJ,EAAAA,QAAAA,EAAAA,EAAQC,EAAA,KAAA,CAAKG,CAAM,CAAC,CAC7B,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse.cjs","names":["collapseLines","expanded","lines","limit"],"sources":["../../../src/lib/collapse.ts"],"sourcesContent":["export interface CollapsedLines<T> {\n shown: T[];\n /** How many lines the collapse holds back; 0 once expanded or when nothing was clipped. */\n hidden: number;\n}\n\n/**\n * The first `limit` lines until expanded. Head-only on purpose: a card that\n * shows the tail (a running command) keeps its own slice and reports the\n * count it hid.\n */\nexport function collapseLines<T>(lines: readonly T[], limit: number, expanded: boolean): CollapsedLines<T> {\n if (expanded || lines.length <= limit) return { shown: [...lines], hidden: 0 };\n return { shown: lines.slice(0, limit), hidden: lines.length - limit };\n}\n"],"mappings":"AAWA,SAAgBA,EAAiB,EAAqB,EAAe,EAAsC,CAEzG,OADIC,GAAYC,EAAM,QAAUC,EAAc,CAAE,MAAO,CAAC,GAAGD,CAAK,EAAG,OAAQ,CAAE,EACtE,CAAE,MAAOA,EAAM,MAAM,EAAGC,CAAK,EAAG,OAAQD,EAAM,OAASC,CAAM,CACtE"}
|
|
1
|
+
{"version":3,"file":"collapse.cjs","names":["collapseLines","expanded","lines","limit"],"sources":["../../../src/lib/collapse.ts"],"sourcesContent":["export interface CollapsedLines<T> {\n shown: T[];\n /** How many lines the collapse holds back; 0 once expanded or when nothing was clipped. */\n hidden: number;\n}\n\n/**\n * The first `limit` lines until expanded. Head-only on purpose: a card that\n * shows the tail (a running command) keeps its own slice and reports the\n * count it hid.\n */\nexport function collapseLines<T>(lines: readonly T[], limit: number, expanded: boolean): CollapsedLines<T> {\n if (expanded || lines.length <= limit) return { shown: [...lines], hidden: 0 };\n return { shown: lines.slice(0, limit), hidden: lines.length - limit };\n}\n"],"mappings":"AAWA,SAAgBA,EAAiB,EAAqB,EAAe,EAAsC,CAEzG,OADIC,GAAYC,EAAM,QAAUC,EAAc,CAAE,MAAO,CAAC,GAAGD,CAAK,EAAG,OAAQ,CAAE,EACtE,CAAE,MAAOA,EAAM,MAAM,EAAGC,CAAK,EAAG,OAAQD,EAAM,OAASC,CAAM,CACtE,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorController.cjs","names":["boundedEditorRanges","ordered","ranges","left","right","previousEnd","index","range","documentLength","boundedEditorEdits","edits"],"sources":["../../../src/lib/editorController.ts"],"sourcesContent":["import type { EditorEdit, EditorTextRange } from '../types/editor';\n\n/** Validate and order offset ranges before they reach CodeMirror. */\nexport function boundedEditorRanges<T extends EditorTextRange>(\n documentLength: number,\n ranges: readonly T[],\n): readonly T[] {\n const ordered = [...ranges].sort((left, right) => left.from - right.from || left.to - right.to);\n let previousEnd = 0;\n\n for (const [index, range] of ordered.entries()) {\n if (!Number.isInteger(range.from) || !Number.isInteger(range.to)) {\n throw new RangeError('Editor ranges must use integer offsets');\n }\n if (range.from < 0 || range.to < range.from || range.to > documentLength) {\n throw new RangeError(`Editor range ${index} is outside the document`);\n }\n if (index > 0 && range.from < previousEnd) {\n throw new RangeError('Editor ranges must not overlap');\n }\n previousEnd = Math.max(previousEnd, range.to);\n }\n\n return ordered;\n}\n\n/** Convert caller edits to the bounded, ordered shape accepted by one transaction. */\nexport function boundedEditorEdits(documentLength: number, edits: readonly EditorEdit[]): readonly EditorEdit[] {\n return boundedEditorRanges(documentLength, edits);\n}\n"],"mappings":"AAGA,SAAgBA,EACd,EACA,EACc,CACd,IAAMC,EAAU,CAAC,GAAGC,CAAM,CAAC,CAAC,MAAM,EAAM,IAAUC,EAAK,KAAOC,EAAM,MAAQD,EAAK,GAAKC,EAAM,EAAE,EAC1FC,EAAc,EAElB,IAAK,GAAM,CAACC,EAAOC,KAAUN,EAAQ,QAAQ,EAAG,CAC9C,GAAI,CAAC,OAAO,UAAUM,EAAM,IAAI,GAAK,CAAC,OAAO,UAAUA,EAAM,EAAE,EAC7D,MAAU,WAAW,wCAAwC,EAE/D,GAAIA,EAAM,KAAO,GAAKA,EAAM,GAAKA,EAAM,MAAQA,EAAM,GAAKC,EACxD,MAAU,WAAW,gBAAgBF,EAAM,yBAAyB,EAEtE,GAAIA,EAAQ,GAAKC,EAAM,KAAOF,EAC5B,MAAU,WAAW,gCAAgC,EAEvD,EAAc,KAAK,IAAIA,EAAaE,EAAM,EAAE,CAC9C,CAEA,OAAON,CACT,CAGA,SAAgBQ,EAAmB,EAAwB,EAAqD,CAC9G,OAAOT,EAAoBQ,EAAgBE,CAAK,CAClD"}
|
|
1
|
+
{"version":3,"file":"editorController.cjs","names":["boundedEditorRanges","ordered","ranges","left","right","previousEnd","index","range","documentLength","boundedEditorEdits","edits"],"sources":["../../../src/lib/editorController.ts"],"sourcesContent":["import type { EditorEdit, EditorTextRange } from '../types/editor';\n\n/** Validate and order offset ranges before they reach CodeMirror. */\nexport function boundedEditorRanges<T extends EditorTextRange>(\n documentLength: number,\n ranges: readonly T[],\n): readonly T[] {\n const ordered = [...ranges].sort((left, right) => left.from - right.from || left.to - right.to);\n let previousEnd = 0;\n\n for (const [index, range] of ordered.entries()) {\n if (!Number.isInteger(range.from) || !Number.isInteger(range.to)) {\n throw new RangeError('Editor ranges must use integer offsets');\n }\n if (range.from < 0 || range.to < range.from || range.to > documentLength) {\n throw new RangeError(`Editor range ${index} is outside the document`);\n }\n if (index > 0 && range.from < previousEnd) {\n throw new RangeError('Editor ranges must not overlap');\n }\n previousEnd = Math.max(previousEnd, range.to);\n }\n\n return ordered;\n}\n\n/** Convert caller edits to the bounded, ordered shape accepted by one transaction. */\nexport function boundedEditorEdits(documentLength: number, edits: readonly EditorEdit[]): readonly EditorEdit[] {\n return boundedEditorRanges(documentLength, edits);\n}\n"],"mappings":"AAGA,SAAgBA,EACd,EACA,EACc,CACd,IAAMC,EAAU,CAAC,GAAGC,CAAM,CAAC,CAAC,MAAM,EAAM,IAAUC,EAAK,KAAOC,EAAM,MAAQD,EAAK,GAAKC,EAAM,EAAE,EAC1FC,EAAc,EAElB,IAAK,GAAM,CAACC,EAAOC,KAAUN,EAAQ,QAAQ,EAAG,CAC9C,GAAI,CAAC,OAAO,UAAUM,EAAM,IAAI,GAAK,CAAC,OAAO,UAAUA,EAAM,EAAE,EAC7D,MAAU,WAAW,wCAAwC,EAE/D,GAAIA,EAAM,KAAO,GAAKA,EAAM,GAAKA,EAAM,MAAQA,EAAM,GAAKC,EACxD,MAAU,WAAW,gBAAgBF,EAAM,yBAAyB,EAEtE,GAAIA,EAAQ,GAAKC,EAAM,KAAOF,EAC5B,MAAU,WAAW,gCAAgC,EAEvD,EAAc,KAAK,IAAIA,EAAaE,EAAM,EAAE,CAC9C,CAEA,OAAON,CACT,CAGA,SAAgBQ,EAAmB,EAAwB,EAAqD,CAC9G,OAAOT,EAAoBQ,EAAgBE,CAAK,CAClD,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorLanguage.cjs","names":["GRAMMAR_BY_EXTENSION","GRAMMAR_BY_FILENAME","basenameOf","filePath","grammarKeyOf","name","named","dot","streamMode","parser","load","StreamLanguage","loadGrammar","key"],"sources":["../../../src/lib/editorLanguage.ts"],"sourcesContent":["import type { StreamParser } from '@codemirror/language';\nimport type { Extension } from '@codemirror/state';\n\n/**\n * Which grammar a file gets, and how it arrives.\n *\n * The two halves are apart on purpose. Naming the grammar is a pure lookup a\n * caller can run before deciding anything, and loading it is a dynamic import\n * so a session that only ever opens Markdown never downloads the JavaScript\n * parser. Nothing here imports CodeMirror at runtime: every specifier below is\n * either a type, which erases, or inside an `import()` the bundler splits into\n * its own chunk.\n */\n\nexport type GrammarKey =\n | 'javascript'\n | 'jsx'\n | 'typescript'\n | 'tsx'\n | 'json'\n | 'markdown'\n | 'html'\n | 'css'\n | 'python'\n | 'yaml'\n | 'shell'\n | 'toml'\n | 'dockerfile';\n\n/** Keyed by lower-case extension without the dot. */\nconst GRAMMAR_BY_EXTENSION: Readonly<Record<string, GrammarKey>> = {\n cjs: 'javascript',\n js: 'javascript',\n mjs: 'javascript',\n jsx: 'jsx',\n cts: 'typescript',\n mts: 'typescript',\n ts: 'typescript',\n tsx: 'tsx',\n json: 'json',\n jsonc: 'json',\n markdown: 'markdown',\n md: 'markdown',\n htm: 'html',\n html: 'html',\n xhtml: 'html',\n css: 'css',\n py: 'python',\n pyi: 'python',\n yaml: 'yaml',\n yml: 'yaml',\n bash: 'shell',\n sh: 'shell',\n zsh: 'shell',\n toml: 'toml',\n};\n\n/** Files a project names rather than suffixes, matched on the whole lower-cased basename. */\nconst GRAMMAR_BY_FILENAME: Readonly<Record<string, GrammarKey>> = {\n '.bashrc': 'shell',\n '.zshrc': 'shell',\n containerfile: 'dockerfile',\n dockerfile: 'dockerfile',\n};\n\n/** The last segment of a path, lower-cased. */\nfunction basenameOf(filePath: string): string {\n return (filePath.split('/').at(-1) ?? '').toLowerCase();\n}\n\n/**\n * The grammar for a path, or undefined for a file the editor shows as plain\n * text. A name is tried whole before it is tried as a suffix, so\n * `Dockerfile.dev` is a Dockerfile and not a file with a `dev` extension.\n */\nexport function grammarKeyOf(filePath: string): GrammarKey | undefined {\n const name = basenameOf(filePath);\n const named = GRAMMAR_BY_FILENAME[name];\n if (named !== undefined) return named;\n const dot = name.lastIndexOf('.');\n if (dot < 1) return undefined;\n return GRAMMAR_BY_EXTENSION[name.slice(dot + 1)];\n}\n\n/** A legacy stream mode wrapped as a language; the modes predate Lezer and ship as tokenizers. */\nasync function streamMode(load: () => Promise<StreamParser<unknown>>): Promise<Extension> {\n const [{ StreamLanguage }, parser] = await Promise.all([import('@codemirror/language'), load()]);\n return StreamLanguage.define(parser);\n}\n\n/** Downloads one grammar. Each arm is its own chunk, so the cost is the languages actually opened. */\nexport async function loadGrammar(key: GrammarKey): Promise<Extension> {\n switch (key) {\n case 'javascript':\n return (await import('@codemirror/lang-javascript')).javascript();\n case 'jsx':\n return (await import('@codemirror/lang-javascript')).javascript({ jsx: true });\n case 'typescript':\n return (await import('@codemirror/lang-javascript')).javascript({ typescript: true });\n case 'tsx':\n return (await import('@codemirror/lang-javascript')).javascript({ jsx: true, typescript: true });\n case 'json':\n return (await import('@codemirror/lang-json')).json();\n case 'markdown':\n return (await import('@codemirror/lang-markdown')).markdown();\n case 'html':\n return (await import('@codemirror/lang-html')).html();\n case 'css':\n return (await import('@codemirror/lang-css')).css();\n case 'python':\n return (await import('@codemirror/lang-python')).python();\n case 'yaml':\n return (await import('@codemirror/lang-yaml')).yaml();\n case 'shell':\n return streamMode(async () => (await import('@codemirror/legacy-modes/mode/shell')).shell);\n case 'toml':\n return streamMode(async () => (await import('@codemirror/legacy-modes/mode/toml')).toml);\n case 'dockerfile':\n return streamMode(async () => (await import('@codemirror/legacy-modes/mode/dockerfile')).dockerFile);\n }\n}\n"],"mappings":"AA8BA,MAAMA,EAA6D,CACjE,IAAK,aACL,GAAI,aACJ,IAAK,aACL,IAAK,MACL,IAAK,aACL,IAAK,aACL,GAAI,aACJ,IAAK,MACL,KAAM,OACN,MAAO,OACP,SAAU,WACV,GAAI,WACJ,IAAK,OACL,KAAM,OACN,MAAO,OACP,IAAK,MACL,GAAI,SACJ,IAAK,SACL,KAAM,OACN,IAAK,OACL,KAAM,QACN,GAAI,QACJ,IAAK,QACL,KAAM,MACR,EAGMC,EAA4D,CAChE,UAAW,QACX,SAAU,QACV,cAAe,aACf,WAAY,YACd,EAGA,SAASC,EAAW,EAA0B,CAC5C,OAAQC,EAAS,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,GAAK,GAAA,CAAI,YAAY,CACxD,CAOA,SAAgBC,EAAa,EAA0C,CACrE,IAAMC,EAAOH,EAAWC,CAAQ,EAC1BG,EAAQL,EAAoBI,GAClC,GAAIC,IAAU,IAAA,GAAW,OAAOA,EAChC,IAAMC,EAAMF,EAAK,YAAY,GAAG,EAChC,GAAI,IAAM,GACV,OAAOL,EAAqBK,EAAK,MAAME,EAAM,CAAC,EAChD,CAGA,eAAeC,EAAW,EAAgE,CACxF,GAAM,CAAC,CAAE,kBAAkBC,GAAU,MAAM,QAAQ,IAAI,CAAC,OAAO,wBAAyBC,EAAK,CAAC,CAAC,EAC/F,OAAOC,EAAe,OAAOF,CAAM,CACrC,CAGA,eAAsBG,EAAY,EAAqC,CACrE,OAAQC,EAAR,CACE,IAAK,aACH,OAAQ,MAAM,OAAO,+BAAA,CAAgC,WAAW,EAClE,IAAK,MACH,OAAQ,MAAM,OAAO,+BAAA,CAAgC,WAAW,CAAE,IAAK,EAAK,CAAC,EAC/E,IAAK,aACH,OAAQ,MAAM,OAAO,+BAAA,CAAgC,WAAW,CAAE,WAAY,EAAK,CAAC,EACtF,IAAK,MACH,OAAQ,MAAM,OAAO,+BAAA,CAAgC,WAAW,CAAE,IAAK,GAAM,WAAY,EAAK,CAAC,EACjG,IAAK,OACH,OAAQ,MAAM,OAAO,yBAAA,CAA0B,KAAK,EACtD,IAAK,WACH,OAAQ,MAAM,OAAO,6BAAA,CAA8B,SAAS,EAC9D,IAAK,OACH,OAAQ,MAAM,OAAO,yBAAA,CAA0B,KAAK,EACtD,IAAK,MACH,OAAQ,MAAM,OAAO,wBAAA,CAAyB,IAAI,EACpD,IAAK,SACH,OAAQ,MAAM,OAAO,2BAAA,CAA4B,OAAO,EAC1D,IAAK,OACH,OAAQ,MAAM,OAAO,yBAAA,CAA0B,KAAK,EACtD,IAAK,QACH,OAAOL,EAAW,UAAa,MAAM,OAAO,uCAAA,CAAwC,KAAK,EAC3F,IAAK,OACH,OAAOA,EAAW,UAAa,MAAM,OAAO,sCAAA,CAAuC,IAAI,EACzF,IAAK,aACH,OAAOA,EAAW,UAAa,MAAM,OAAO,4CAAA,CAA6C,UAAU,CACvG,CACF"}
|
|
1
|
+
{"version":3,"file":"editorLanguage.cjs","names":["GRAMMAR_BY_EXTENSION","GRAMMAR_BY_FILENAME","basenameOf","filePath","grammarKeyOf","name","named","dot","streamMode","parser","load","StreamLanguage","loadGrammar","key"],"sources":["../../../src/lib/editorLanguage.ts"],"sourcesContent":["import type { StreamParser } from '@codemirror/language';\nimport type { Extension } from '@codemirror/state';\n\n/**\n * Which grammar a file gets, and how it arrives.\n *\n * The two halves are apart on purpose. Naming the grammar is a pure lookup a\n * caller can run before deciding anything, and loading it is a dynamic import\n * so a session that only ever opens Markdown never downloads the JavaScript\n * parser. Nothing here imports CodeMirror at runtime: every specifier below is\n * either a type, which erases, or inside an `import()` the bundler splits into\n * its own chunk.\n */\n\nexport type GrammarKey =\n | 'javascript'\n | 'jsx'\n | 'typescript'\n | 'tsx'\n | 'json'\n | 'markdown'\n | 'html'\n | 'css'\n | 'python'\n | 'yaml'\n | 'shell'\n | 'toml'\n | 'dockerfile';\n\n/** Keyed by lower-case extension without the dot. */\nconst GRAMMAR_BY_EXTENSION: Readonly<Record<string, GrammarKey>> = {\n cjs: 'javascript',\n js: 'javascript',\n mjs: 'javascript',\n jsx: 'jsx',\n cts: 'typescript',\n mts: 'typescript',\n ts: 'typescript',\n tsx: 'tsx',\n json: 'json',\n jsonc: 'json',\n markdown: 'markdown',\n md: 'markdown',\n htm: 'html',\n html: 'html',\n xhtml: 'html',\n css: 'css',\n py: 'python',\n pyi: 'python',\n yaml: 'yaml',\n yml: 'yaml',\n bash: 'shell',\n sh: 'shell',\n zsh: 'shell',\n toml: 'toml',\n};\n\n/** Files a project names rather than suffixes, matched on the whole lower-cased basename. */\nconst GRAMMAR_BY_FILENAME: Readonly<Record<string, GrammarKey>> = {\n '.bashrc': 'shell',\n '.zshrc': 'shell',\n containerfile: 'dockerfile',\n dockerfile: 'dockerfile',\n};\n\n/** The last segment of a path, lower-cased. */\nfunction basenameOf(filePath: string): string {\n return (filePath.split('/').at(-1) ?? '').toLowerCase();\n}\n\n/**\n * The grammar for a path, or undefined for a file the editor shows as plain\n * text. A name is tried whole before it is tried as a suffix, so\n * `Dockerfile.dev` is a Dockerfile and not a file with a `dev` extension.\n */\nexport function grammarKeyOf(filePath: string): GrammarKey | undefined {\n const name = basenameOf(filePath);\n const named = GRAMMAR_BY_FILENAME[name];\n if (named !== undefined) return named;\n const dot = name.lastIndexOf('.');\n if (dot < 1) return undefined;\n return GRAMMAR_BY_EXTENSION[name.slice(dot + 1)];\n}\n\n/** A legacy stream mode wrapped as a language; the modes predate Lezer and ship as tokenizers. */\nasync function streamMode(load: () => Promise<StreamParser<unknown>>): Promise<Extension> {\n const [{ StreamLanguage }, parser] = await Promise.all([import('@codemirror/language'), load()]);\n return StreamLanguage.define(parser);\n}\n\n/** Downloads one grammar. Each arm is its own chunk, so the cost is the languages actually opened. */\nexport async function loadGrammar(key: GrammarKey): Promise<Extension> {\n switch (key) {\n case 'javascript':\n return (await import('@codemirror/lang-javascript')).javascript();\n case 'jsx':\n return (await import('@codemirror/lang-javascript')).javascript({ jsx: true });\n case 'typescript':\n return (await import('@codemirror/lang-javascript')).javascript({ typescript: true });\n case 'tsx':\n return (await import('@codemirror/lang-javascript')).javascript({ jsx: true, typescript: true });\n case 'json':\n return (await import('@codemirror/lang-json')).json();\n case 'markdown':\n return (await import('@codemirror/lang-markdown')).markdown();\n case 'html':\n return (await import('@codemirror/lang-html')).html();\n case 'css':\n return (await import('@codemirror/lang-css')).css();\n case 'python':\n return (await import('@codemirror/lang-python')).python();\n case 'yaml':\n return (await import('@codemirror/lang-yaml')).yaml();\n case 'shell':\n return streamMode(async () => (await import('@codemirror/legacy-modes/mode/shell')).shell);\n case 'toml':\n return streamMode(async () => (await import('@codemirror/legacy-modes/mode/toml')).toml);\n case 'dockerfile':\n return streamMode(async () => (await import('@codemirror/legacy-modes/mode/dockerfile')).dockerFile);\n }\n}\n"],"mappings":"AA8BA,MAAMA,EAA6D,CACjE,IAAK,aACL,GAAI,aACJ,IAAK,aACL,IAAK,MACL,IAAK,aACL,IAAK,aACL,GAAI,aACJ,IAAK,MACL,KAAM,OACN,MAAO,OACP,SAAU,WACV,GAAI,WACJ,IAAK,OACL,KAAM,OACN,MAAO,OACP,IAAK,MACL,GAAI,SACJ,IAAK,SACL,KAAM,OACN,IAAK,OACL,KAAM,QACN,GAAI,QACJ,IAAK,QACL,KAAM,MACR,EAGMC,EAA4D,CAChE,UAAW,QACX,SAAU,QACV,cAAe,aACf,WAAY,YACd,EAGA,SAASC,EAAW,EAA0B,CAC5C,OAAQC,EAAS,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,GAAK,GAAA,CAAI,YAAY,CACxD,CAOA,SAAgBC,EAAa,EAA0C,CACrE,IAAMC,EAAOH,EAAWC,CAAQ,EAC1BG,EAAQL,EAAoBI,GAClC,GAAIC,IAAU,IAAA,GAAW,OAAOA,EAChC,IAAMC,EAAMF,EAAK,YAAY,GAAG,EAChC,GAAI,IAAM,GACV,OAAOL,EAAqBK,EAAK,MAAME,EAAM,CAAC,EAChD,CAGA,eAAeC,EAAW,EAAgE,CACxF,GAAM,CAAC,CAAE,kBAAkBC,GAAU,MAAM,QAAQ,IAAI,CAAC,OAAO,wBAAyBC,EAAK,CAAC,CAAC,EAC/F,OAAOC,EAAe,OAAOF,CAAM,CACrC,CAGA,eAAsBG,EAAY,EAAqC,CACrE,OAAQC,EAAR,CACE,IAAK,aACH,OAAQ,MAAM,OAAO,+BAAA,CAAgC,WAAW,EAClE,IAAK,MACH,OAAQ,MAAM,OAAO,+BAAA,CAAgC,WAAW,CAAE,IAAK,EAAK,CAAC,EAC/E,IAAK,aACH,OAAQ,MAAM,OAAO,+BAAA,CAAgC,WAAW,CAAE,WAAY,EAAK,CAAC,EACtF,IAAK,MACH,OAAQ,MAAM,OAAO,+BAAA,CAAgC,WAAW,CAAE,IAAK,GAAM,WAAY,EAAK,CAAC,EACjG,IAAK,OACH,OAAQ,MAAM,OAAO,yBAAA,CAA0B,KAAK,EACtD,IAAK,WACH,OAAQ,MAAM,OAAO,6BAAA,CAA8B,SAAS,EAC9D,IAAK,OACH,OAAQ,MAAM,OAAO,yBAAA,CAA0B,KAAK,EACtD,IAAK,MACH,OAAQ,MAAM,OAAO,wBAAA,CAAyB,IAAI,EACpD,IAAK,SACH,OAAQ,MAAM,OAAO,2BAAA,CAA4B,OAAO,EAC1D,IAAK,OACH,OAAQ,MAAM,OAAO,yBAAA,CAA0B,KAAK,EACtD,IAAK,QACH,OAAOL,EAAW,UAAa,MAAM,OAAO,uCAAA,CAAwC,KAAK,EAC3F,IAAK,OACH,OAAOA,EAAW,UAAa,MAAM,OAAO,sCAAA,CAAuC,IAAI,EACzF,IAAK,aACH,OAAOA,EAAW,UAAa,MAAM,OAAO,4CAAA,CAA6C,UAAU,CACvG,CACF,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorTheme.cjs","names":["PO_EDITOR_STYLES","PO_SYNTAX_STYLES"],"sources":["../../../src/lib/editorTheme.ts"],"sourcesContent":["/**\n * The editor's colours, as plain data.\n *\n * Every value is a CSS custom property rather than a resolved colour, which is\n * what lets a theme swap recolour a mounted editor by rewriting `:root`\n * instead of tearing the editor down and rebuilding it. It is also why this is\n * data and not a built CodeMirror extension: nothing here imports an editor,\n * so a caller pays for the styles only inside the chunk that draws them.\n */\n\n/** The chrome: the surface, the gutter, the cursor, the selection, and the search panel. */\nexport const PO_EDITOR_STYLES: Readonly<Record<string, Readonly<Record<string, string>>>> = {\n '&': {\n color: 'var(--po-text)',\n backgroundColor: 'var(--po-deep)',\n fontSize: '12px',\n height: '100%',\n },\n '.cm-scroller': {\n fontFamily: 'var(--po-font-mono)',\n lineHeight: '1.5',\n },\n '.cm-content': {\n caretColor: 'var(--po-blue)',\n padding: '8px 0',\n },\n '.cm-cursor, .cm-dropCursor': {\n borderLeftColor: 'var(--po-blue)',\n borderLeftWidth: '2px',\n },\n // CodeMirror draws its own selection layer when the editor has focus and\n // leans on the native one when it does not, so both need saying or a\n // selection vanishes the moment a reader clicks the comment box.\n '&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {\n backgroundColor: 'var(--po-selected)',\n },\n '.cm-gutters': {\n backgroundColor: 'var(--po-deep)',\n color: 'var(--po-faint)',\n borderRight: '1px solid var(--po-border-soft)',\n },\n '.cm-activeLine': {\n backgroundColor: 'var(--po-panel)',\n },\n '.cm-activeLineGutter': {\n backgroundColor: 'var(--po-panel)',\n color: 'var(--po-dim)',\n },\n '.cm-foldPlaceholder': {\n backgroundColor: 'var(--po-panel)',\n border: '1px solid var(--po-border)',\n color: 'var(--po-dim)',\n },\n '.cm-searchMatch': {\n backgroundColor: 'var(--po-tint-yellow)',\n outline: '1px solid var(--po-edge-yellow)',\n },\n '.cm-searchMatch.cm-searchMatch-selected': {\n backgroundColor: 'var(--po-tint-orange)',\n },\n '.cm-selectionMatch': {\n backgroundColor: 'var(--po-tint-blue)',\n },\n '.cm-closed-tone': {\n backgroundColor: 'var(--po-tint-green)',\n textDecoration: 'line-through',\n textDecorationColor: 'var(--po-edge-green)',\n },\n '.cm-matchingBracket, &.cm-focused .cm-matchingBracket': {\n backgroundColor: 'var(--po-tint-green)',\n outline: '1px solid var(--po-edge-green)',\n },\n '.cm-nonmatchingBracket, &.cm-focused .cm-nonmatchingBracket': {\n backgroundColor: 'var(--po-tint-red)',\n },\n // Search and replace chrome reads as UI; only what is typed into it is literal.\n '.cm-panels': {\n backgroundColor: 'var(--po-panel)',\n color: 'var(--po-text)',\n fontFamily: 'var(--font-sans)',\n fontSize: '12px',\n },\n '.cm-panels.cm-panels-bottom': {\n borderTop: '1px solid var(--po-border)',\n },\n '.cm-panels.cm-panels-top': {\n borderBottom: '1px solid var(--po-border)',\n },\n '.cm-panel input, .cm-panel button, .cm-panel select': {\n backgroundColor: 'var(--po-deep)',\n color: 'var(--po-text)',\n border: '1px solid var(--po-border)',\n borderRadius: '2px',\n fontSize: '12px',\n },\n '.cm-panel input': {\n fontFamily: 'var(--po-font-mono)',\n },\n '.cm-tooltip': {\n backgroundColor: 'var(--po-panel)',\n border: '1px solid var(--po-border)',\n color: 'var(--po-text)',\n },\n};\n\n/**\n * The syntax colours, named by what they mark rather than by tag, so the\n * pairing with Lezer's tags stays next to the editor that imports them and\n * this table can be read as a palette.\n */\nexport const PO_SYNTAX_STYLES = {\n comment: { color: 'var(--po-faint)', fontStyle: 'italic' },\n keyword: { color: 'var(--po-magenta)' },\n constant: { color: 'var(--po-violet)' },\n literal: { color: 'var(--po-orange)' },\n string: { color: 'var(--po-green)' },\n regexp: { color: 'var(--po-teal)' },\n operator: { color: 'var(--po-blue)' },\n punctuation: { color: 'var(--po-dim)' },\n variable: { color: 'var(--po-text)' },\n property: { color: 'var(--po-cyan)' },\n callable: { color: 'var(--po-blue)' },\n type: { color: 'var(--po-yellow)' },\n tag: { color: 'var(--po-red)' },\n attribute: { color: 'var(--po-yellow)' },\n meta: { color: 'var(--po-faint)' },\n heading: { color: 'var(--po-hi)', fontWeight: 'bold' },\n link: { color: 'var(--po-cyan)', textDecoration: 'underline' },\n emphasis: { fontStyle: 'italic' },\n strong: { fontWeight: 'bold' },\n strikethrough: { textDecoration: 'line-through' },\n invalid: { color: 'var(--po-red)' },\n} as const;\n"],"mappings":"AAWA,MAAaA,EAA+E,CAC1F,IAAK,CACH,MAAO,iBACP,gBAAiB,iBACjB,SAAU,OACV,OAAQ,MACV,EACA,eAAgB,CACd,WAAY,sBACZ,WAAY,KACd,EACA,cAAe,CACb,WAAY,iBACZ,QAAS,OACX,EACA,6BAA8B,CAC5B,gBAAiB,iBACjB,gBAAiB,KACnB,EAIA,yFAA0F,CACxF,gBAAiB,oBACnB,EACA,cAAe,CACb,gBAAiB,iBACjB,MAAO,kBACP,YAAa,iCACf,EACA,iBAAkB,CAChB,gBAAiB,iBACnB,EACA,uBAAwB,CACtB,gBAAiB,kBACjB,MAAO,eACT,EACA,sBAAuB,CACrB,gBAAiB,kBACjB,OAAQ,6BACR,MAAO,eACT,EACA,kBAAmB,CACjB,gBAAiB,wBACjB,QAAS,iCACX,EACA,0CAA2C,CACzC,gBAAiB,uBACnB,EACA,qBAAsB,CACpB,gBAAiB,qBACnB,EACA,kBAAmB,CACjB,gBAAiB,uBACjB,eAAgB,eAChB,oBAAqB,sBACvB,EACA,wDAAyD,CACvD,gBAAiB,uBACjB,QAAS,gCACX,EACA,8DAA+D,CAC7D,gBAAiB,oBACnB,EAEA,aAAc,CACZ,gBAAiB,kBACjB,MAAO,iBACP,WAAY,mBACZ,SAAU,MACZ,EACA,8BAA+B,CAC7B,UAAW,4BACb,EACA,2BAA4B,CAC1B,aAAc,4BAChB,EACA,sDAAuD,CACrD,gBAAiB,iBACjB,MAAO,iBACP,OAAQ,6BACR,aAAc,MACd,SAAU,MACZ,EACA,kBAAmB,CACjB,WAAY,qBACd,EACA,cAAe,CACb,gBAAiB,kBACjB,OAAQ,6BACR,MAAO,gBACT,CACF,EAOaC,EAAmB,CAC9B,QAAS,CAAE,MAAO,kBAAmB,UAAW,QAAS,EACzD,QAAS,CAAE,MAAO,mBAAoB,EACtC,SAAU,CAAE,MAAO,kBAAmB,EACtC,QAAS,CAAE,MAAO,kBAAmB,EACrC,OAAQ,CAAE,MAAO,iBAAkB,EACnC,OAAQ,CAAE,MAAO,gBAAiB,EAClC,SAAU,CAAE,MAAO,gBAAiB,EACpC,YAAa,CAAE,MAAO,eAAgB,EACtC,SAAU,CAAE,MAAO,gBAAiB,EACpC,SAAU,CAAE,MAAO,gBAAiB,EACpC,SAAU,CAAE,MAAO,gBAAiB,EACpC,KAAM,CAAE,MAAO,kBAAmB,EAClC,IAAK,CAAE,MAAO,eAAgB,EAC9B,UAAW,CAAE,MAAO,kBAAmB,EACvC,KAAM,CAAE,MAAO,iBAAkB,EACjC,QAAS,CAAE,MAAO,eAAgB,WAAY,MAAO,EACrD,KAAM,CAAE,MAAO,iBAAkB,eAAgB,WAAY,EAC7D,SAAU,CAAE,UAAW,QAAS,EAChC,OAAQ,CAAE,WAAY,MAAO,EAC7B,cAAe,CAAE,eAAgB,cAAe,EAChD,QAAS,CAAE,MAAO,eAAgB,CACpC"}
|
|
1
|
+
{"version":3,"file":"editorTheme.cjs","names":["PO_EDITOR_STYLES","PO_SYNTAX_STYLES"],"sources":["../../../src/lib/editorTheme.ts"],"sourcesContent":["/**\n * The editor's colours, as plain data.\n *\n * Every value is a CSS custom property rather than a resolved colour, which is\n * what lets a theme swap recolour a mounted editor by rewriting `:root`\n * instead of tearing the editor down and rebuilding it. It is also why this is\n * data and not a built CodeMirror extension: nothing here imports an editor,\n * so a caller pays for the styles only inside the chunk that draws them.\n */\n\n/** The chrome: the surface, the gutter, the cursor, the selection, and the search panel. */\nexport const PO_EDITOR_STYLES: Readonly<Record<string, Readonly<Record<string, string>>>> = {\n '&': {\n color: 'var(--po-text)',\n backgroundColor: 'var(--po-deep)',\n fontSize: '12px',\n height: '100%',\n },\n '.cm-scroller': {\n fontFamily: 'var(--po-font-mono)',\n lineHeight: '1.5',\n },\n '.cm-content': {\n caretColor: 'var(--po-blue)',\n padding: '8px 0',\n },\n '.cm-cursor, .cm-dropCursor': {\n borderLeftColor: 'var(--po-blue)',\n borderLeftWidth: '2px',\n },\n // CodeMirror draws its own selection layer when the editor has focus and\n // leans on the native one when it does not, so both need saying or a\n // selection vanishes the moment a reader clicks the comment box.\n '&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {\n backgroundColor: 'var(--po-selected)',\n },\n '.cm-gutters': {\n backgroundColor: 'var(--po-deep)',\n color: 'var(--po-faint)',\n borderRight: '1px solid var(--po-border-soft)',\n },\n '.cm-activeLine': {\n backgroundColor: 'var(--po-panel)',\n },\n '.cm-activeLineGutter': {\n backgroundColor: 'var(--po-panel)',\n color: 'var(--po-dim)',\n },\n '.cm-foldPlaceholder': {\n backgroundColor: 'var(--po-panel)',\n border: '1px solid var(--po-border)',\n color: 'var(--po-dim)',\n },\n '.cm-searchMatch': {\n backgroundColor: 'var(--po-tint-yellow)',\n outline: '1px solid var(--po-edge-yellow)',\n },\n '.cm-searchMatch.cm-searchMatch-selected': {\n backgroundColor: 'var(--po-tint-orange)',\n },\n '.cm-selectionMatch': {\n backgroundColor: 'var(--po-tint-blue)',\n },\n '.cm-closed-tone': {\n backgroundColor: 'var(--po-tint-green)',\n textDecoration: 'line-through',\n textDecorationColor: 'var(--po-edge-green)',\n },\n '.cm-matchingBracket, &.cm-focused .cm-matchingBracket': {\n backgroundColor: 'var(--po-tint-green)',\n outline: '1px solid var(--po-edge-green)',\n },\n '.cm-nonmatchingBracket, &.cm-focused .cm-nonmatchingBracket': {\n backgroundColor: 'var(--po-tint-red)',\n },\n // Search and replace chrome reads as UI; only what is typed into it is literal.\n '.cm-panels': {\n backgroundColor: 'var(--po-panel)',\n color: 'var(--po-text)',\n fontFamily: 'var(--font-sans)',\n fontSize: '12px',\n },\n '.cm-panels.cm-panels-bottom': {\n borderTop: '1px solid var(--po-border)',\n },\n '.cm-panels.cm-panels-top': {\n borderBottom: '1px solid var(--po-border)',\n },\n '.cm-panel input, .cm-panel button, .cm-panel select': {\n backgroundColor: 'var(--po-deep)',\n color: 'var(--po-text)',\n border: '1px solid var(--po-border)',\n borderRadius: '2px',\n fontSize: '12px',\n },\n '.cm-panel input': {\n fontFamily: 'var(--po-font-mono)',\n },\n '.cm-tooltip': {\n backgroundColor: 'var(--po-panel)',\n border: '1px solid var(--po-border)',\n color: 'var(--po-text)',\n },\n};\n\n/**\n * The syntax colours, named by what they mark rather than by tag, so the\n * pairing with Lezer's tags stays next to the editor that imports them and\n * this table can be read as a palette.\n */\nexport const PO_SYNTAX_STYLES = {\n comment: { color: 'var(--po-faint)', fontStyle: 'italic' },\n keyword: { color: 'var(--po-magenta)' },\n constant: { color: 'var(--po-violet)' },\n literal: { color: 'var(--po-orange)' },\n string: { color: 'var(--po-green)' },\n regexp: { color: 'var(--po-teal)' },\n operator: { color: 'var(--po-blue)' },\n punctuation: { color: 'var(--po-dim)' },\n variable: { color: 'var(--po-text)' },\n property: { color: 'var(--po-cyan)' },\n callable: { color: 'var(--po-blue)' },\n type: { color: 'var(--po-yellow)' },\n tag: { color: 'var(--po-red)' },\n attribute: { color: 'var(--po-yellow)' },\n meta: { color: 'var(--po-faint)' },\n heading: { color: 'var(--po-hi)', fontWeight: 'bold' },\n link: { color: 'var(--po-cyan)', textDecoration: 'underline' },\n emphasis: { fontStyle: 'italic' },\n strong: { fontWeight: 'bold' },\n strikethrough: { textDecoration: 'line-through' },\n invalid: { color: 'var(--po-red)' },\n} as const;\n"],"mappings":"AAWA,MAAaA,EAA+E,CAC1F,IAAK,CACH,MAAO,iBACP,gBAAiB,iBACjB,SAAU,OACV,OAAQ,MACV,EACA,eAAgB,CACd,WAAY,sBACZ,WAAY,KACd,EACA,cAAe,CACb,WAAY,iBACZ,QAAS,OACX,EACA,6BAA8B,CAC5B,gBAAiB,iBACjB,gBAAiB,KACnB,EAIA,yFAA0F,CACxF,gBAAiB,oBACnB,EACA,cAAe,CACb,gBAAiB,iBACjB,MAAO,kBACP,YAAa,iCACf,EACA,iBAAkB,CAChB,gBAAiB,iBACnB,EACA,uBAAwB,CACtB,gBAAiB,kBACjB,MAAO,eACT,EACA,sBAAuB,CACrB,gBAAiB,kBACjB,OAAQ,6BACR,MAAO,eACT,EACA,kBAAmB,CACjB,gBAAiB,wBACjB,QAAS,iCACX,EACA,0CAA2C,CACzC,gBAAiB,uBACnB,EACA,qBAAsB,CACpB,gBAAiB,qBACnB,EACA,kBAAmB,CACjB,gBAAiB,uBACjB,eAAgB,eAChB,oBAAqB,sBACvB,EACA,wDAAyD,CACvD,gBAAiB,uBACjB,QAAS,gCACX,EACA,8DAA+D,CAC7D,gBAAiB,oBACnB,EAEA,aAAc,CACZ,gBAAiB,kBACjB,MAAO,iBACP,WAAY,mBACZ,SAAU,MACZ,EACA,8BAA+B,CAC7B,UAAW,4BACb,EACA,2BAA4B,CAC1B,aAAc,4BAChB,EACA,sDAAuD,CACrD,gBAAiB,iBACjB,MAAO,iBACP,OAAQ,6BACR,aAAc,MACd,SAAU,MACZ,EACA,kBAAmB,CACjB,WAAY,qBACd,EACA,cAAe,CACb,gBAAiB,kBACjB,OAAQ,6BACR,MAAO,gBACT,CACF,EAOaC,EAAmB,CAC9B,QAAS,CAAE,MAAO,kBAAmB,UAAW,QAAS,EACzD,QAAS,CAAE,MAAO,mBAAoB,EACtC,SAAU,CAAE,MAAO,kBAAmB,EACtC,QAAS,CAAE,MAAO,kBAAmB,EACrC,OAAQ,CAAE,MAAO,iBAAkB,EACnC,OAAQ,CAAE,MAAO,gBAAiB,EAClC,SAAU,CAAE,MAAO,gBAAiB,EACpC,YAAa,CAAE,MAAO,eAAgB,EACtC,SAAU,CAAE,MAAO,gBAAiB,EACpC,SAAU,CAAE,MAAO,gBAAiB,EACpC,SAAU,CAAE,MAAO,gBAAiB,EACpC,KAAM,CAAE,MAAO,kBAAmB,EAClC,IAAK,CAAE,MAAO,eAAgB,EAC9B,UAAW,CAAE,MAAO,kBAAmB,EACvC,KAAM,CAAE,MAAO,iBAAkB,EACjC,QAAS,CAAE,MAAO,eAAgB,WAAY,MAAO,EACrD,KAAM,CAAE,MAAO,iBAAkB,eAAgB,WAAY,EAC7D,SAAU,CAAE,UAAW,QAAS,EAChC,OAAQ,CAAE,WAAY,MAAO,EAC7B,cAAe,CAAE,eAAgB,cAAe,EAChD,QAAS,CAAE,MAAO,eAAgB,CACpC,E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fenceGrammar.cjs","names":["grammarKeyOf","require_editorLanguage","GRAMMAR_BY_WORD","fenceLanguageOf","className","fenceGrammarOf","language","word"],"sources":["../../../src/lib/fenceGrammar.ts"],"sourcesContent":["import { type GrammarKey, grammarKeyOf } from './editorLanguage';\n\n/**\n * What a fenced code block's info string means.\n *\n * A fence names its language the way a person writes it in a message, so\n * `ts`, `typescript` and `tsx` all arrive and all mean something. The file\n * lookup in `editorLanguage.ts` already answers for every spelling that is\n * also an extension, so this module only carries the words that are not one\n * and leaves the rest to it. A name with no grammar is not an error: the block\n * renders as plain text, which is what it would have done anyway.\n */\n\n/** The one fence that is a picture rather than code. */\nexport const MERMAID_LANGUAGE = 'mermaid';\n\n/** Spellings a fence uses that no filename would. */\nconst GRAMMAR_BY_WORD: Readonly<Record<string, GrammarKey>> = {\n javascript: 'javascript',\n typescript: 'typescript',\n python: 'python',\n shell: 'shell',\n console: 'shell',\n docker: 'dockerfile',\n};\n\n/**\n * The language a fence declares, lower-cased, or undefined for a bare fence.\n *\n * react-markdown hands the info string down as a `language-*` class, and a\n * fence may carry metadata after the language (```` ```ts title=x ````), which\n * is not part of the name.\n */\nexport function fenceLanguageOf(className: string | undefined): string | undefined {\n const match = /(?:^|\\s)language-(\\S+)/.exec(className ?? '');\n return match?.[1]?.toLowerCase();\n}\n\n/** The grammar to colour a fence with, or undefined to leave it plain. */\nexport function fenceGrammarOf(language: string | undefined): GrammarKey | undefined {\n if (language === undefined || language.length === 0) return undefined;\n const word = GRAMMAR_BY_WORD[language];\n if (word !== undefined) return word;\n // A fence that names an extension is the same lookup a file gets, and one\n // that names a whole file, like `dockerfile`, is tried as that name first.\n return grammarKeyOf(language) ?? grammarKeyOf(`fence.${language}`);\n}\n"],"mappings":"wCAiBME,EAAwD,CAC5D,WAAY,aACZ,WAAY,aACZ,OAAQ,SACR,MAAO,QACP,QAAS,QACT,OAAQ,YACV,EASA,SAAgBC,EAAgB,EAAmD,CAEjF,MADc,yBAAyB,KAAKC,GAAa,EAC9C,CAAC,GAAG,EAAE,EAAE,YAAY,CACjC,CAGA,SAAgBC,EAAe,EAAsD,CACnF,GAAIC,IAAa,IAAA,IAAaA,EAAS,SAAW,EAAG,OACrD,IAAMC,EAAOL,EAAgBI,GAI7B,OAHIC,IAAS,IAAA,GAGNP,EAAAA,aAAaM,CAAQ,GAAKN,EAAAA,aAAa,SAASM,GAAU,EAHlCC,CAIjC"}
|
|
1
|
+
{"version":3,"file":"fenceGrammar.cjs","names":["grammarKeyOf","require_editorLanguage","GRAMMAR_BY_WORD","fenceLanguageOf","className","fenceGrammarOf","language","word"],"sources":["../../../src/lib/fenceGrammar.ts"],"sourcesContent":["import { type GrammarKey, grammarKeyOf } from './editorLanguage';\n\n/**\n * What a fenced code block's info string means.\n *\n * A fence names its language the way a person writes it in a message, so\n * `ts`, `typescript` and `tsx` all arrive and all mean something. The file\n * lookup in `editorLanguage.ts` already answers for every spelling that is\n * also an extension, so this module only carries the words that are not one\n * and leaves the rest to it. A name with no grammar is not an error: the block\n * renders as plain text, which is what it would have done anyway.\n */\n\n/** The one fence that is a picture rather than code. */\nexport const MERMAID_LANGUAGE = 'mermaid';\n\n/** Spellings a fence uses that no filename would. */\nconst GRAMMAR_BY_WORD: Readonly<Record<string, GrammarKey>> = {\n javascript: 'javascript',\n typescript: 'typescript',\n python: 'python',\n shell: 'shell',\n console: 'shell',\n docker: 'dockerfile',\n};\n\n/**\n * The language a fence declares, lower-cased, or undefined for a bare fence.\n *\n * react-markdown hands the info string down as a `language-*` class, and a\n * fence may carry metadata after the language (```` ```ts title=x ````), which\n * is not part of the name.\n */\nexport function fenceLanguageOf(className: string | undefined): string | undefined {\n const match = /(?:^|\\s)language-(\\S+)/.exec(className ?? '');\n return match?.[1]?.toLowerCase();\n}\n\n/** The grammar to colour a fence with, or undefined to leave it plain. */\nexport function fenceGrammarOf(language: string | undefined): GrammarKey | undefined {\n if (language === undefined || language.length === 0) return undefined;\n const word = GRAMMAR_BY_WORD[language];\n if (word !== undefined) return word;\n // A fence that names an extension is the same lookup a file gets, and one\n // that names a whole file, like `dockerfile`, is tried as that name first.\n return grammarKeyOf(language) ?? grammarKeyOf(`fence.${language}`);\n}\n"],"mappings":"A,wCAiBME,EAAwD,CAC5D,WAAY,aACZ,WAAY,aACZ,OAAQ,SACR,MAAO,QACP,QAAS,QACT,OAAQ,YACV,EASA,SAAgBC,EAAgB,EAAmD,CAEjF,MADc,yBAAyB,KAAKC,GAAa,EAC9C,CAAC,GAAG,EAAE,EAAE,YAAY,CACjC,CAGA,SAAgBC,EAAe,EAAsD,CACnF,GAAIC,IAAa,IAAA,IAAaA,EAAS,SAAW,EAAG,OACrD,IAAMC,EAAOL,EAAgBI,GAI7B,OAHIC,IAAS,IAAA,GAGNP,EAAAA,aAAaM,CAAQ,GAAKN,EAAAA,aAAa,SAASM,GAAU,EAHlCC,CAIjC,C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
function e(e,t){let n=[],r=t,i=[],a=[],o=()=>{i.length>0&&n.push({path:r,indices:i,text:a.join(`
|
|
2
|
-
`)}),i=[],a=[]};for(let[t,n]of e.entries())n.type===`tagged`?(i.push(t),a.push(n.value.content)):(o(),n.type===`file`&&(r=n.path));return o(),n}function t(e){return e.map(
|
|
2
|
+
`)}),i=[],a=[]};for(let[t,n]of e.entries())n.type===`tagged`?(i.push(t),a.push(n.value.content)):(o(),n.type===`file`&&(r=n.path));return o(),n}function t(e){return JSON.stringify(e.map(({path:e,indices:t,text:n})=>[e,t,n]))}exports.hashlineGroups=e,exports.hashlineGroupsKey=t;
|
|
3
3
|
//# sourceMappingURL=hashlineHighlight.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hashlineHighlight.cjs","names":["hashlineGroups","groups","path","fallbackPath","indices","texts","flush","index","line","lines","hashlineGroupsKey","
|
|
1
|
+
{"version":3,"file":"hashlineHighlight.cjs","names":["hashlineGroups","groups","path","fallbackPath","indices","texts","flush","index","line","lines","hashlineGroupsKey","text"],"sources":["../../../src/lib/hashlineHighlight.ts"],"sourcesContent":["import type { PresentedLine } from './hashlineView';\n\n/**\n * Grouping for highlighted hashline bodies.\n *\n * A read result is one file and a grep result is many, so the lines a card\n * shows have to be cut into runs that belong to the same file before any of\n * them can be parsed. A run is parsed whole because a string or a comment\n * spans lines, and grep's gaps between context blocks are accepted: an excerpt\n * is not the file, and colouring it as if it were is close enough to be worth\n * far more than colouring nothing.\n */\n\nexport interface HashlineGroup {\n /** The file the run came from, when the body named one. */\n readonly path: string | undefined;\n /** Indices into the presented lines, in order, that this run covers. */\n readonly indices: readonly number[];\n /** The run's content, newline-joined, ready to parse. */\n readonly text: string;\n}\n\n/**\n * Consecutive anchored lines, cut at every file heading and at anything that\n * is not code. `fallbackPath` names the file for a body that never states one,\n * which is how a read result arrives.\n */\nexport function hashlineGroups(\n lines: readonly PresentedLine[],\n fallbackPath: string | undefined,\n): readonly HashlineGroup[] {\n const groups: HashlineGroup[] = [];\n let path = fallbackPath;\n let indices: number[] = [];\n let texts: string[] = [];\n\n const flush = (): void => {\n if (indices.length > 0) groups.push({ path, indices, text: texts.join('\\n') });\n indices = [];\n texts = [];\n };\n\n for (const [index, line] of lines.entries()) {\n if (line.type === 'tagged') {\n indices.push(index);\n texts.push(line.value.content);\n continue;\n }\n flush();\n // A heading opens the next file; a plain line is prose between runs.\n if (line.type === 'file') path = line.path;\n }\n flush();\n return groups;\n}\n\n/** One string that changes whenever the groups would highlight differently. */\nexport function hashlineGroupsKey(groups: readonly HashlineGroup[]): string {\n // Indices matter too: prose or headings can move an unchanged run. JSON\n // encoding avoids collisions with delimiters that occur in source text.\n return JSON.stringify(groups.map(({ path, indices, text }) => [path, indices, text]));\n}\n"],"mappings":"AA2BA,SAAgBA,EACd,EACA,EAC0B,CAC1B,IAAMC,EAA0B,CAAC,EAC7BC,EAAOC,EACPC,EAAoB,CAAC,EACrBC,EAAkB,CAAC,EAEjBC,MAAoB,CACpBF,EAAQ,OAAS,GAAGH,EAAO,KAAK,CAAE,OAAM,UAAS,KAAMI,EAAM,KAAK;CAAI,CAAE,CAAC,EAC7E,EAAU,CAAC,EACX,EAAQ,CAAC,CACX,EAEA,IAAK,GAAM,CAACE,EAAOC,KAASC,EAAM,QAAQ,EACpCD,EAAK,OAAS,UAChBJ,EAAQ,KAAKG,CAAK,EAClBF,EAAM,KAAKG,EAAK,MAAM,OAAO,IAG/BF,EAAM,EAEFE,EAAK,OAAS,SAAQ,EAAOA,EAAK,OAGxC,OADAF,EAAM,EACCL,CACT,CAGA,SAAgBS,EAAkB,EAA0C,CAG1E,OAAO,KAAK,UAAUT,EAAO,KAAK,CAAE,OAAM,UAAS,UAAW,CAACC,EAAME,EAASO,CAAI,CAAC,CAAC,CACtF,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hashlineView.cjs","names":["collapseLines","require_collapse","FILE_HEADER_PATTERN","TAGGED_LINE_PATTERN","isTextBlock","block","resultTextLines","blocks","result","text","output","lines","takeTrailingNotice","last","parseTaggedLine","match","value","lineText","content","line","prefix","parseFileHeader","presentHashlineLines","presented","path","kind","tagged","hashlineBody","notice","expanded","shown","widest","compactDetails","values"],"sources":["../../../src/lib/hashlineView.ts"],"sourcesContent":["import { collapseLines } from './collapse';\n\n/**\n * The hashline wire format, parsed the way the TUI's hashlineRendering does:\n * `@file path#tag` opens a file, `N#abc|content` is an anchored line, and a\n * `>> ` or three-space prefix marks grep matches and their context.\n *\n * It lives here rather than in each tool package because the read and grep\n * cards render the same bytes and had drifted into byte-identical copies of\n * this module. The patterns are still a transcription of po-hashline: a\n * cockpit plugin may import this library and the web contract, but not a\n * runtime package, so the format is stated twice on purpose and only once per\n * side of that line.\n */\nconst FILE_HEADER_PATTERN = /^@file (.+)#([A-Za-z0-9_-]{8})$/u;\nconst TAGGED_LINE_PATTERN = /^(>> | {3})?(\\d+)#[a-z]{3}\\|(.*)$/u;\nconst MATCH_PREFIX = '>> ';\nconst CONTEXT_PREFIX = ' ';\nconst IMAGE_PLACEHOLDER = '[Image attached]';\n\nexport const READ_COLLAPSED_LINES = 10;\nexport const GREP_COLLAPSED_LINES = 15;\n\nexport type HashlineResultKind = 'read' | 'grep';\nexport type TaggedLineMarker = 'match' | 'context';\n\n/**\n * The part of a tool result this parser reads.\n *\n * Named structurally rather than imported: the component library sits below\n * the web contract and must not depend on it, so it states the shape it needs\n * and any `ToolResultView` satisfies it.\n */\nexport interface HashlineResult {\n readonly content: readonly unknown[];\n}\n\nexport interface TaggedLine {\n readonly line: number;\n readonly content: string;\n readonly marker: TaggedLineMarker | undefined;\n}\n\nexport type PresentedLine =\n | { readonly type: 'file'; readonly path: string }\n | { readonly type: 'tagged'; readonly value: TaggedLine }\n | { readonly type: 'plain'; readonly text: string };\n\nexport interface HashlineBody {\n readonly shown: readonly PresentedLine[];\n /** Lines the collapsed view holds back; zero once expanded. */\n readonly hidden: number;\n /** The bracketed pagination or compaction note the tool appends after its lines. */\n readonly notice: string | undefined;\n /** Widest line number among the shown anchored lines, in characters. */\n readonly gutter: number;\n}\n\ninterface TextBlock {\n readonly type: string;\n readonly text?: string;\n}\n\nfunction isTextBlock(block: unknown): block is TextBlock {\n return typeof block === 'object' && block !== null && typeof (block as TextBlock).type === 'string';\n}\n\n/**\n * The result's text as lines: tabs widened, CRLF folded, trailing blanks\n * dropped. A result with no text but an image block reads as the TUI's\n * placeholder. The joined `output` stands in when no result view exists.\n */\nexport function resultTextLines(result: HashlineResult | null, output: string): string[] {\n const blocks = result?.content.filter(isTextBlock) ?? [];\n const text =\n result === null ? output : blocks.flatMap((block) => (block.type === 'text' ? [block.text ?? ''] : [])).join('\\n');\n if (text.length === 0) {\n return blocks.some((block) => block.type === 'image') ? [IMAGE_PLACEHOLDER] : [];\n }\n const lines = text.replaceAll('\\t', ' ').replaceAll('\\r\\n', '\\n').split('\\n');\n while (lines.at(-1) === '') lines.pop();\n return lines;\n}\n\n/** Detaches the tool's trailing `[...]` note so the body numbers file content only. */\nexport function takeTrailingNotice(lines: string[]): string | undefined {\n const last = lines.at(-1);\n if (last === undefined || !last.startsWith('[') || !last.endsWith(']')) return undefined;\n lines.pop();\n while (lines.at(-1) === '') lines.pop();\n return last;\n}\n\nexport function parseTaggedLine(value: string): TaggedLine | undefined {\n const match = TAGGED_LINE_PATTERN.exec(value);\n const lineText = match?.[2];\n const content = match?.[3];\n if (lineText === undefined || content === undefined) return undefined;\n const line = Number.parseInt(lineText, 10);\n if (!Number.isSafeInteger(line) || line < 1) return undefined;\n const prefix = match?.[1];\n const marker = prefix === MATCH_PREFIX ? 'match' : prefix === CONTEXT_PREFIX ? 'context' : undefined;\n return { line, content, marker };\n}\n\nexport function parseFileHeader(value: string): string | undefined {\n return FILE_HEADER_PATTERN.exec(value)?.[1];\n}\n\n/**\n * Lines as the card presents them. A read shows one file, so its header is\n * dropped; a grep groups anchored matches under each file's path.\n */\nexport function presentHashlineLines(lines: readonly string[], kind: HashlineResultKind): PresentedLine[] {\n const presented: PresentedLine[] = [];\n for (const line of lines) {\n const path = parseFileHeader(line);\n if (path !== undefined) {\n if (kind !== 'read') presented.push({ type: 'file', path });\n continue;\n }\n const tagged = parseTaggedLine(line);\n if (tagged !== undefined) {\n presented.push({ type: 'tagged', value: tagged });\n continue;\n }\n presented.push({ type: 'plain', text: line });\n }\n return presented;\n}\n\n/** The body a card shows for one result, collapsed to the kind's line budget unless expanded. */\nexport function hashlineBody(\n result: HashlineResult | null,\n output: string,\n kind: HashlineResultKind,\n expanded: boolean,\n): HashlineBody {\n const lines = resultTextLines(result, output);\n const notice = takeTrailingNotice(lines);\n const presented = presentHashlineLines(lines, kind);\n const budget = kind === 'read' ? READ_COLLAPSED_LINES : GREP_COLLAPSED_LINES;\n const { shown, hidden } = collapseLines(presented, budget, expanded);\n const gutter = shown.reduce(\n (widest, line) => (line.type === 'tagged' ? Math.max(widest, String(line.value.line).length) : widest),\n 1,\n );\n return { shown, hidden, notice, gutter };\n}\n\n/** The `key · key` detail list beside a call's primary argument, with absent values dropped. */\nexport function compactDetails(values: ReadonlyArray<string | undefined>): string[] {\n return values.filter((value): value is string => value !== undefined && value.length > 0);\n}\n"],"mappings":"kCAcME,EAAsB,mCACtBC,EAAsB,qCAgD5B,SAASC,EAAY,EAAoC,CACvD,OAAO,OAAOC,GAAU,YAAYA,GAAkB,OAAQA,EAAoB,MAAS,QAC7F,CAOA,SAAgBC,EAAgB,EAA+B,EAA0B,CACvF,IAAMC,EAASC,GAAQ,QAAQ,OAAOJ,CAAW,GAAK,CAAC,EACjDK,EACJD,IAAW,KAAOE,EAASH,EAAO,QAAS,GAAWF,EAAM,OAAS,OAAS,CAACA,EAAM,MAAQ,EAAE,EAAI,CAAC,CAAE,CAAC,CAAC,KAAK;CAAI,EACnH,GAAII,EAAK,SAAW,EAClB,OAAOF,EAAO,KAAM,GAAUF,EAAM,OAAS,OAAO,EAAI,CAAC,kBAAiB,EAAI,CAAC,EAEjF,IAAMM,EAAQF,EAAK,WAAW,IAAM,IAAI,CAAC,CAAC,WAAW;EAAQ;CAAI,CAAC,CAAC,MAAM;CAAI,EAC7E,KAAOE,EAAM,GAAG,EAAE,IAAM,IAAIA,EAAM,IAAI,EACtC,OAAOA,CACT,CAGA,SAAgBC,EAAmB,EAAqC,CACtE,IAAMC,EAAOF,EAAM,GAAG,EAAE,EACxB,GAAIE,IAAS,IAAA,IAAcA,EAAK,WAAW,GAAG,GAAMA,EAAK,SAAS,GAAG,EACrE,CACA,IADAF,EAAM,IAAI,EACHA,EAAM,GAAG,EAAE,IAAM,IAAIA,EAAM,IAAI,EACtC,OAAOE,CAFG,CAGZ,CAEA,SAAgBC,EAAgB,EAAuC,CACrE,IAAMC,EAAQZ,EAAoB,KAAKa,CAAK,EACtCC,EAAWF,IAAQ,GACnBG,EAAUH,IAAQ,GACxB,GAAIE,IAAa,IAAA,IAAaC,IAAY,IAAA,GAAW,OACrD,IAAMC,EAAO,OAAO,SAASF,EAAU,EAAE,EACzC,GAAI,CAAC,OAAO,cAAcE,CAAI,GAAKA,EAAO,EAAG,OAC7C,IAAMC,EAASL,IAAQ,GAEvB,MAAO,CAAE,OAAM,UAAS,OADTK,IAAW,MAAe,QAAUA,IAAW,MAAiB,UAAY,IAAA,EAC5D,CACjC,CAEA,SAAgBC,EAAgB,EAAmC,CACjE,OAAOnB,EAAoB,KAAKc,CAAK,CAAC,GAAG,EAC3C,CAMA,SAAgBM,EAAqB,EAA0B,EAA2C,CACxG,IAAMC,EAA6B,CAAC,EACpC,IAAK,IAAMJ,KAAQR,EAAO,CACxB,IAAMa,EAAOH,EAAgBF,CAAI,EACjC,GAAIK,IAAS,IAAA,GAAW,CAClBC,IAAS,QAAQF,EAAU,KAAK,CAAE,KAAM,OAAQ,MAAK,CAAC,EAC1D,QACF,CACA,IAAMG,EAASZ,EAAgBK,CAAI,EAC/BO,IAAW,IAAA,GAIfH,EAAU,KAAK,CAAE,KAAM,QAAS,KAAMJ,CAAK,CAAC,EAH1CI,EAAU,KAAK,CAAE,KAAM,SAAU,MAAOG,CAAO,CAAC,CAIpD,CACA,OAAOH,CACT,CAGA,SAAgBI,EACd,EACA,EACA,EACA,EACc,CACd,IAAMhB,EAAQL,EAAgBE,EAAQE,CAAM,EACtCkB,EAAShB,EAAmBD,CAAK,EACjCY,EAAYD,EAAqBX,EAAOc,CAAI,EAE5C,CAAE,QAAO,UAAWzB,EAAAA,cAAcuB,EADzBE,IAAS,OAAA,GAAA,GACmCI,CAAQ,EAKnE,MAAO,CAAE,QAAO,SAAQ,SAAQ,OAJjBC,EAAM,QAClB,EAAQ,IAAUX,EAAK,OAAS,SAAW,KAAK,IAAIY,EAAQ,OAAOZ,EAAK,MAAM,IAAI,CAAC,CAAC,MAAM,EAAIY,EAC/F,CAEmC,CAAE,CACzC,CAGA,SAAgBC,EAAe,EAAqD,CAClF,OAAOC,EAAO,OAAQ,GAA2BjB,IAAU,IAAA,IAAaA,EAAM,OAAS,CAAC,CAC1F"}
|
|
1
|
+
{"version":3,"file":"hashlineView.cjs","names":["collapseLines","require_collapse","FILE_HEADER_PATTERN","TAGGED_LINE_PATTERN","isTextBlock","block","resultTextLines","blocks","result","text","output","lines","takeTrailingNotice","last","parseTaggedLine","match","value","lineText","content","line","prefix","parseFileHeader","presentHashlineLines","presented","path","kind","tagged","hashlineBody","notice","expanded","shown","widest","compactDetails","values"],"sources":["../../../src/lib/hashlineView.ts"],"sourcesContent":["import { collapseLines } from './collapse';\n\n/**\n * The hashline wire format, parsed the way the TUI's hashlineRendering does:\n * `@file path#tag` opens a file, `N#abc|content` is an anchored line, and a\n * `>> ` or three-space prefix marks grep matches and their context.\n *\n * It lives here rather than in each tool package because the read and grep\n * cards render the same bytes and had drifted into byte-identical copies of\n * this module. The patterns are still a transcription of po-hashline: a\n * cockpit plugin may import this library and the web contract, but not a\n * runtime package, so the format is stated twice on purpose and only once per\n * side of that line.\n */\nconst FILE_HEADER_PATTERN = /^@file (.+)#([A-Za-z0-9_-]{8})$/u;\nconst TAGGED_LINE_PATTERN = /^(>> | {3})?(\\d+)#[a-z]{3}\\|(.*)$/u;\nconst MATCH_PREFIX = '>> ';\nconst CONTEXT_PREFIX = ' ';\nconst IMAGE_PLACEHOLDER = '[Image attached]';\n\nexport const READ_COLLAPSED_LINES = 10;\nexport const GREP_COLLAPSED_LINES = 15;\n\nexport type HashlineResultKind = 'read' | 'grep';\nexport type TaggedLineMarker = 'match' | 'context';\n\n/**\n * The part of a tool result this parser reads.\n *\n * Named structurally rather than imported: the component library sits below\n * the web contract and must not depend on it, so it states the shape it needs\n * and any `ToolResultView` satisfies it.\n */\nexport interface HashlineResult {\n readonly content: readonly unknown[];\n}\n\nexport interface TaggedLine {\n readonly line: number;\n readonly content: string;\n readonly marker: TaggedLineMarker | undefined;\n}\n\nexport type PresentedLine =\n | { readonly type: 'file'; readonly path: string }\n | { readonly type: 'tagged'; readonly value: TaggedLine }\n | { readonly type: 'plain'; readonly text: string };\n\nexport interface HashlineBody {\n readonly shown: readonly PresentedLine[];\n /** Lines the collapsed view holds back; zero once expanded. */\n readonly hidden: number;\n /** The bracketed pagination or compaction note the tool appends after its lines. */\n readonly notice: string | undefined;\n /** Widest line number among the shown anchored lines, in characters. */\n readonly gutter: number;\n}\n\ninterface TextBlock {\n readonly type: string;\n readonly text?: string;\n}\n\nfunction isTextBlock(block: unknown): block is TextBlock {\n return typeof block === 'object' && block !== null && typeof (block as TextBlock).type === 'string';\n}\n\n/**\n * The result's text as lines: tabs widened, CRLF folded, trailing blanks\n * dropped. A result with no text but an image block reads as the TUI's\n * placeholder. The joined `output` stands in when no result view exists.\n */\nexport function resultTextLines(result: HashlineResult | null, output: string): string[] {\n const blocks = result?.content.filter(isTextBlock) ?? [];\n const text =\n result === null ? output : blocks.flatMap((block) => (block.type === 'text' ? [block.text ?? ''] : [])).join('\\n');\n if (text.length === 0) {\n return blocks.some((block) => block.type === 'image') ? [IMAGE_PLACEHOLDER] : [];\n }\n const lines = text.replaceAll('\\t', ' ').replaceAll('\\r\\n', '\\n').split('\\n');\n while (lines.at(-1) === '') lines.pop();\n return lines;\n}\n\n/** Detaches the tool's trailing `[...]` note so the body numbers file content only. */\nexport function takeTrailingNotice(lines: string[]): string | undefined {\n const last = lines.at(-1);\n if (last === undefined || !last.startsWith('[') || !last.endsWith(']')) return undefined;\n lines.pop();\n while (lines.at(-1) === '') lines.pop();\n return last;\n}\n\nexport function parseTaggedLine(value: string): TaggedLine | undefined {\n const match = TAGGED_LINE_PATTERN.exec(value);\n const lineText = match?.[2];\n const content = match?.[3];\n if (lineText === undefined || content === undefined) return undefined;\n const line = Number.parseInt(lineText, 10);\n if (!Number.isSafeInteger(line) || line < 1) return undefined;\n const prefix = match?.[1];\n const marker = prefix === MATCH_PREFIX ? 'match' : prefix === CONTEXT_PREFIX ? 'context' : undefined;\n return { line, content, marker };\n}\n\nexport function parseFileHeader(value: string): string | undefined {\n return FILE_HEADER_PATTERN.exec(value)?.[1];\n}\n\n/**\n * Lines as the card presents them. A read shows one file, so its header is\n * dropped; a grep groups anchored matches under each file's path.\n */\nexport function presentHashlineLines(lines: readonly string[], kind: HashlineResultKind): PresentedLine[] {\n const presented: PresentedLine[] = [];\n for (const line of lines) {\n const path = parseFileHeader(line);\n if (path !== undefined) {\n if (kind !== 'read') presented.push({ type: 'file', path });\n continue;\n }\n const tagged = parseTaggedLine(line);\n if (tagged !== undefined) {\n presented.push({ type: 'tagged', value: tagged });\n continue;\n }\n presented.push({ type: 'plain', text: line });\n }\n return presented;\n}\n\n/** The body a card shows for one result, collapsed to the kind's line budget unless expanded. */\nexport function hashlineBody(\n result: HashlineResult | null,\n output: string,\n kind: HashlineResultKind,\n expanded: boolean,\n): HashlineBody {\n const lines = resultTextLines(result, output);\n const notice = takeTrailingNotice(lines);\n const presented = presentHashlineLines(lines, kind);\n const budget = kind === 'read' ? READ_COLLAPSED_LINES : GREP_COLLAPSED_LINES;\n const { shown, hidden } = collapseLines(presented, budget, expanded);\n const gutter = shown.reduce(\n (widest, line) => (line.type === 'tagged' ? Math.max(widest, String(line.value.line).length) : widest),\n 1,\n );\n return { shown, hidden, notice, gutter };\n}\n\n/** The `key · key` detail list beside a call's primary argument, with absent values dropped. */\nexport function compactDetails(values: ReadonlyArray<string | undefined>): string[] {\n return values.filter((value): value is string => value !== undefined && value.length > 0);\n}\n"],"mappings":"A,kCAcME,EAAsB,mCACtBC,EAAsB,qCAgD5B,SAASC,EAAY,EAAoC,CACvD,OAAO,OAAOC,GAAU,YAAYA,GAAkB,OAAQA,EAAoB,MAAS,QAC7F,CAOA,SAAgBC,EAAgB,EAA+B,EAA0B,CACvF,IAAMC,EAASC,GAAQ,QAAQ,OAAOJ,CAAW,GAAK,CAAC,EACjDK,EACJD,IAAW,KAAOE,EAASH,EAAO,QAAS,GAAWF,EAAM,OAAS,OAAS,CAACA,EAAM,MAAQ,EAAE,EAAI,CAAC,CAAE,CAAC,CAAC,KAAK;CAAI,EACnH,GAAII,EAAK,SAAW,EAClB,OAAOF,EAAO,KAAM,GAAUF,EAAM,OAAS,OAAO,EAAI,CAAC,kBAAiB,EAAI,CAAC,EAEjF,IAAMM,EAAQF,EAAK,WAAW,IAAM,IAAI,CAAC,CAAC,WAAW;EAAQ;CAAI,CAAC,CAAC,MAAM;CAAI,EAC7E,KAAOE,EAAM,GAAG,EAAE,IAAM,IAAIA,EAAM,IAAI,EACtC,OAAOA,CACT,CAGA,SAAgBC,EAAmB,EAAqC,CACtE,IAAMC,EAAOF,EAAM,GAAG,EAAE,EACxB,GAAIE,IAAS,IAAA,IAAcA,EAAK,WAAW,GAAG,GAAMA,EAAK,SAAS,GAAG,EACrE,CACA,IADAF,EAAM,IAAI,EACHA,EAAM,GAAG,EAAE,IAAM,IAAIA,EAAM,IAAI,EACtC,OAAOE,CAFG,CAGZ,CAEA,SAAgBC,EAAgB,EAAuC,CACrE,IAAMC,EAAQZ,EAAoB,KAAKa,CAAK,EACtCC,EAAWF,IAAQ,GACnBG,EAAUH,IAAQ,GACxB,GAAIE,IAAa,IAAA,IAAaC,IAAY,IAAA,GAAW,OACrD,IAAMC,EAAO,OAAO,SAASF,EAAU,EAAE,EACzC,GAAI,CAAC,OAAO,cAAcE,CAAI,GAAKA,EAAO,EAAG,OAC7C,IAAMC,EAASL,IAAQ,GAEvB,MAAO,CAAE,OAAM,UAAS,OADTK,IAAW,MAAe,QAAUA,IAAW,MAAiB,UAAY,IAAA,EAC5D,CACjC,CAEA,SAAgBC,EAAgB,EAAmC,CACjE,OAAOnB,EAAoB,KAAKc,CAAK,CAAC,GAAG,EAC3C,CAMA,SAAgBM,EAAqB,EAA0B,EAA2C,CACxG,IAAMC,EAA6B,CAAC,EACpC,IAAK,IAAMJ,KAAQR,EAAO,CACxB,IAAMa,EAAOH,EAAgBF,CAAI,EACjC,GAAIK,IAAS,IAAA,GAAW,CAClBC,IAAS,QAAQF,EAAU,KAAK,CAAE,KAAM,OAAQ,MAAK,CAAC,EAC1D,QACF,CACA,IAAMG,EAASZ,EAAgBK,CAAI,EAC/BO,IAAW,IAAA,GAIfH,EAAU,KAAK,CAAE,KAAM,QAAS,KAAMJ,CAAK,CAAC,EAH1CI,EAAU,KAAK,CAAE,KAAM,SAAU,MAAOG,CAAO,CAAC,CAIpD,CACA,OAAOH,CACT,CAGA,SAAgBI,EACd,EACA,EACA,EACA,EACc,CACd,IAAMhB,EAAQL,EAAgBE,EAAQE,CAAM,EACtCkB,EAAShB,EAAmBD,CAAK,EACjCY,EAAYD,EAAqBX,EAAOc,CAAI,EAE5C,CAAE,QAAO,UAAWzB,EAAAA,cAAcuB,EADzBE,IAAS,OAAA,GAAA,GACmCI,CAAQ,EAKnE,MAAO,CAAE,QAAO,SAAQ,SAAQ,OAJjBC,EAAM,QAClB,EAAQ,IAAUX,EAAK,OAAS,SAAW,KAAK,IAAIY,EAAQ,OAAOZ,EAAK,MAAM,IAAI,CAAC,CAAC,MAAM,EAAIY,EAC/F,CAEmC,CAAE,CACzC,CAGA,SAAgBC,EAAe,EAAqD,CAClF,OAAOC,EAAO,OAAQ,GAA2BjB,IAAU,IAAA,IAAaA,EAAM,OAAS,CAAC,CAC1F,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("./markdownMediaSlot.cjs");let t=require("react");const n=(0,t.createContext)(void 0);function r(n){let r=typeof n?.slotData==`function`?n.slotData(e.markdownMediaReviewSlot)[0]?.data.panel:void 0;if(n!==void 0&&r!==void 0)return(e,i)=>(0,t.createElement)(r,{...n,media:e,onClose:i})}const i=/^\s*\d*\.?\d+(?:px)?\s*$/u;function a(e){let t=new DOMParser().parseFromString(e,`text/html`).querySelector(`svg`);if(t===null)return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`;let n=t.getAttribute(`width`),r=t.getAttribute(`height`),a=n!==null&&r!==null&&i.test(n)&&i.test(r),o=(t.getAttribute(`viewBox`)??``).trim().split(/[\s,]+/u).map(Number);return!a&&o.length===4&&o[2]>0&&o[3]>0&&(t.setAttribute(`width`,String(o[2])),t.setAttribute(`height`,String(o[3]))),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(t))}`}async function o(e,t){if(!e.startsWith(`blob:`))return e;let n=await(await fetch(e,t===void 0?{}:{signal:t})).blob();return n.type.startsWith(`image/svg+xml`)?a(await n.text()):e}exports.MarkdownMediaContext=n,exports.drawableImageUrl=o,exports.markdownMediaReview=r,exports.markdownMediaReviewSlot=e.markdownMediaReviewSlot,exports.svgImageUrl=a;
|
|
2
|
+
//# sourceMappingURL=markdownMedia.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownMedia.cjs","names":["createContext","markdownMediaReviewSlot","createElement","require_markdownMediaSlot","react","MarkdownMediaContext","markdownMediaReview","panel","host","close","ABSOLUTE_LENGTH","svgImageUrl","svg","markup","width","height","sized","box","drawableImageUrl","url","blob","signal"],"sources":["../../../src/lib/markdownMedia.ts"],"sourcesContent":["import type { WebPluginSlotProps } from '@agimon-ai/po-core/web';\nimport { createContext, createElement, type ComponentType, type ReactNode } from 'react';\n\nimport { markdownMediaReviewSlot } from './markdownMediaSlot';\n\nexport { markdownMediaReviewSlot } from './markdownMediaSlot';\n\n/**\n * A picture inside rendered Markdown that the person opened full screen.\n *\n * `url` is what the viewer draws: a blob URL from the host's image loader, a\n * remote URL, or a data URL for a mermaid diagram. The paths are provenance\n * for a reviewer, never read authority.\n */\nexport interface MarkdownMedia {\n kind: 'image' | 'mermaid';\n title: string;\n url: string;\n /** The file the image was read from, as the host addresses it. */\n sourcePath?: string;\n /** The Markdown document that embeds the picture, when it is a file. */\n documentPath?: string;\n /** The diagram text, for a mermaid fence. */\n mermaidSource?: string;\n}\n\n/** Renders a review surface (annotate, comment, send) for opened media. */\nexport type MarkdownMediaReview = (media: MarkdownMedia, close: () => void) => ReactNode;\n\nexport interface MarkdownMediaContextValue {\n open(media: Omit<MarkdownMedia, 'documentPath'>): void;\n}\n\n/** Set by Markdown; images and mermaid diagrams become openable only inside it. */\nexport const MarkdownMediaContext = createContext<MarkdownMediaContextValue | undefined>(undefined);\n\nexport interface MarkdownMediaReviewPanelProps extends WebPluginSlotProps {\n media: MarkdownMedia;\n onClose(): void;\n}\n\nexport interface MarkdownMediaReviewContribution {\n version: 1;\n panel: ComponentType<MarkdownMediaReviewPanelProps>;\n}\n\n/** The installed review panel bound to a host's slot props, or undefined when none is installed. */\nexport function markdownMediaReview(host: WebPluginSlotProps | undefined): MarkdownMediaReview | undefined {\n // Partial host props (stories, tests) carry no slot reader; they get the plain viewer.\n const panel =\n typeof host?.slotData === 'function' ? host.slotData(markdownMediaReviewSlot)[0]?.data.panel : undefined;\n if (host === undefined || panel === undefined) return undefined;\n return (media, close) => createElement(panel, { ...host, media, onClose: close });\n}\n\nconst ABSOLUTE_LENGTH = /^\\s*\\d*\\.?\\d+(?:px)?\\s*$/u;\n\n/**\n * SVG markup as an `<img>` source, sized from its viewBox when its own size is\n * relative. Mermaid writes `width=\"100%\"`, which leaves an image with no\n * intrinsic size, so it collapses in a shrink-to-fit frame.\n *\n * A data URL rather than a blob URL: Chrome taints a canvas that draws a blob\n * SVG carrying `foreignObject` (mermaid's labels), which breaks capture.\n *\n * Parsed as HTML, not XML: mermaid's labels hold HTML such as `<br>`, which is\n * not well-formed XML, and an image of it never decodes. Serializing the parsed\n * element writes it back as valid XML.\n */\nexport function svgImageUrl(markup: string): string {\n const svg = new DOMParser().parseFromString(markup, 'text/html').querySelector('svg');\n if (svg === null) return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(markup)}`;\n const width = svg.getAttribute('width');\n const height = svg.getAttribute('height');\n const sized = width !== null && height !== null && ABSOLUTE_LENGTH.test(width) && ABSOLUTE_LENGTH.test(height);\n const box = (svg.getAttribute('viewBox') ?? '')\n .trim()\n .split(/[\\s,]+/u)\n .map(Number);\n if (!sized && box.length === 4 && box[2]! > 0 && box[3]! > 0) {\n svg.setAttribute('width', String(box[2]));\n svg.setAttribute('height', String(box[3]));\n }\n return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(svg))}`;\n}\n\n/**\n * A URL a canvas can draw without being tainted. A blob URL that holds an SVG\n * is re-read and turned into a sized data URL (see `svgImageUrl`); anything\n * else is returned as is. Reading a local blob URL is not a network request.\n */\nexport async function drawableImageUrl(url: string, signal?: AbortSignal): Promise<string> {\n if (!url.startsWith('blob:')) return url;\n const blob = await (await fetch(url, signal === undefined ? {} : { signal })).blob();\n return blob.type.startsWith('image/svg+xml') ? svgImageUrl(await blob.text()) : url;\n}\n"],"mappings":"A,kEAkCA,MAAaK,GAAA,EAAuBL,EAAAA,cAAAA,CAAqD,IAAA,EAAS,EAalG,SAAgBM,EAAoB,EAAuE,CAEzG,IAAMC,EACJ,OAAOC,GAAM,UAAa,WAAaA,EAAK,SAASP,EAAAA,uBAAuB,CAAC,CAAC,EAAE,EAAE,KAAK,MAAQ,IAAA,GACjG,GAAIO,IAAS,IAAA,IAAaD,IAAU,IAAA,GACpC,OAAQ,EAAO,KAAA,EAAUL,EAAAA,cAAAA,CAAcK,EAAO,CAAE,GAAGC,EAAM,QAAO,QAASC,CAAM,CAAC,CAClF,CAEA,MAAMC,EAAkB,4BAcxB,SAAgBC,EAAY,EAAwB,CAClD,IAAMC,EAAM,IAAI,UAAU,CAAC,CAAC,gBAAgBC,EAAQ,WAAW,CAAC,CAAC,cAAc,KAAK,EACpF,GAAID,IAAQ,KAAM,MAAO,oCAAoC,mBAAmBC,CAAM,IACtF,IAAMC,EAAQF,EAAI,aAAa,OAAO,EAChCG,EAASH,EAAI,aAAa,QAAQ,EAClCI,EAAQF,IAAU,MAAQC,IAAW,MAAQL,EAAgB,KAAKI,CAAK,GAAKJ,EAAgB,KAAKK,CAAM,EACvGE,GAAOL,EAAI,aAAa,SAAS,GAAK,GAAA,CACzC,KAAK,CAAC,CACN,MAAM,SAAS,CAAC,CAChB,IAAI,MAAM,EAKb,MAJI,CAACI,GAASC,EAAI,SAAW,GAAKA,EAAI,GAAM,GAAKA,EAAI,GAAM,IACzDL,EAAI,aAAa,QAAS,OAAOK,EAAI,EAAE,CAAC,EACxCL,EAAI,aAAa,SAAU,OAAOK,EAAI,EAAE,CAAC,GAEpC,oCAAoC,mBAAmB,IAAI,cAAc,CAAC,CAAC,kBAAkBL,CAAG,CAAC,GAC1G,CAOA,eAAsBM,EAAiB,EAAa,EAAuC,CACzF,GAAI,CAACC,EAAI,WAAW,OAAO,EAAG,OAAOA,EACrC,IAAMC,EAAO,MAAO,MAAM,MAAMD,EAAKE,IAAW,IAAA,GAAY,CAAC,EAAI,CAAE,QAAO,CAAC,EAAA,CAAG,KAAK,EACnF,OAAOD,EAAK,KAAK,WAAW,eAAe,EAAIT,EAAY,MAAMS,EAAK,KAAK,CAAC,EAAID,CAClF,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e={slot:`author.media-review`,description:`Provide an annotation and feedback panel for an image or diagram opened from Markdown.`,parse:e=>{if(typeof e!=`object`||!e)return null;let t=e;return t.version===1&&typeof t.panel==`function`?t:null}};exports.markdownMediaReviewSlot=e;
|
|
2
|
+
//# sourceMappingURL=markdownMediaSlot.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownMediaSlot.cjs","names":["markdownMediaReviewSlot","input","value"],"sources":["../../../src/lib/markdownMediaSlot.ts"],"sourcesContent":["import type { SlotDeclaration } from '@agimon-ai/po-core/web';\n\nimport type { MarkdownMediaReviewContribution } from './markdownMedia';\n\n/** Filled by the Author mode; any Markdown host reads it through `markdownMediaReview`. */\nexport const markdownMediaReviewSlot = {\n slot: 'author.media-review',\n description: 'Provide an annotation and feedback panel for an image or diagram opened from Markdown.',\n parse: (input: unknown): MarkdownMediaReviewContribution | null => {\n if (input === null || typeof input !== 'object') return null;\n const value = input as Partial<MarkdownMediaReviewContribution>;\n return value.version === 1 && typeof value.panel === 'function' ? (value as MarkdownMediaReviewContribution) : null;\n },\n} satisfies SlotDeclaration<MarkdownMediaReviewContribution>;\n"],"mappings":"AAKA,MAAaA,EAA0B,CACrC,KAAM,sBACN,YAAa,yFACb,MAAQ,GAA2D,CACjE,GAAsB,OAAOC,GAAU,WAAnCA,EAA6C,OAAO,KACxD,IAAMC,EAAQD,EACd,OAAOC,EAAM,UAAY,GAAK,OAAOA,EAAM,OAAU,WAAcA,EAA4C,IACjH,CACF,E"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e=require("./mcpAppSandbox.cjs"),t=require("./mcpOpenAiBootstrap.cjs");let n=require("@modelcontextprotocol/ext-apps/app-bridge");const r=1200,i=`po.openai`;function a(e){return e instanceof Error?e.message:`The MCP App could not complete this request`}function o(e){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Invalid App request`);return e}function s(s,c){if(s.contentWindow===null)throw Error(`MCP App frame is not mounted`);let{data:l}=c,u=!0,d,f=new MessageChannel,p=(e,t)=>u?c.request(e,t):Promise.reject(/* @__PURE__ */ Error(`MCP App is closed`)),m=e=>{typeof e==`number`&&Number.isFinite(e)&&c.resize(Math.min(r,Math.max(80,Math.ceil(e))))},h=e=>{u&&(c.fail(a(e)),u=!1,s.srcdoc=``,g().catch(t=>{c.fail(`${a(e)}. Closing the App lease failed: ${a(t)}`)}))},g=()=>c.request(`close`,{}),_=setTimeout(()=>h(/* @__PURE__ */ Error(`MCP App initialization timed out`)),15e3),v=()=>{u&&(clearTimeout(_),c.ready())},y=async(e,t)=>{if(l.readOnly)throw Error(`Enable interactions in the conversation before calling tools`);if(typeof e!=`string`)throw Error(`Invalid App tool name`);return await p(`callTool`,{name:e,arguments:o(t??{})})},b=async e=>(await p(`setState`,{state:e}),c.saveState(e),{}),x=async e=>{if(l.readOnly)throw Error(`Enable interactions in the conversation before sending a follow-up`);if(typeof e!=`string`)throw Error(`Invalid App follow-up`);return await p(`followUp`,{prompt:e}),{}},S=async()=>(await p(`close`,{}),c.close(),{}),C=c.theme,w=C,T={toolInput:l.args,toolOutput:l.result.structuredContent??null,toolResponseMetadata:l.result._meta??{},widgetState:c.savedState,theme:C,locale:c.locale,displayMode:`inline`,maxHeight:r,safeArea:{insets:{top:0,right:0,bottom:0,left:0}},userAgent:{device:{type:c.device},capabilities:{hover:c.hover??!1,touch:c.touch??!1}}};try{let r=e.mcpAppCsp(l.resourceMeta,c.hostOrigin);l.protocol===`mcp`&&(d=new n.AppBridge(null,{name:`Po`,version:`1`},{...l.readOnly?{}:{serverTools:{},message:{text:{}}},openLinks:{}},{hostContext:{theme:C,locale:c.locale,displayMode:`inline`,availableDisplayModes:[`inline`],toolInfo:{id:c.toolCallId,tool:l.tool}}}),d.oncalltool=({name:e,arguments:t})=>y(e,t),d.onmessage=async({content:e})=>{if(e.some(e=>e.type!==`text`))throw Error(`Only text follow-ups are supported`);return x(e.map(e=>e.type===`text`?e.text:``).join(`
|
|
2
|
+
`))},d.onopenlink=({url:e})=>c.openLink(e),d.onsizechange=({height:e})=>m(e),d.onrequestdisplaymode=async()=>({mode:`inline`}),d.onrequestteardown=()=>{S().catch(h)},d.oninitialized=()=>{(async()=>{await d.sendToolInput({arguments:l.args}),await d.sendToolResult(l.result),v()})().catch(h)},d.connect(new n.PostMessageTransport(s.contentWindow,s.contentWindow)).catch(h)),f.port1.onmessage=e=>{if(!u)return;let t=e.data;if(t?.type===`revoked`){h(/* @__PURE__ */ Error(`MCP App navigation was blocked; reopen it to continue`));return}if(t?.type!==`legacy`)return;let n=t.data;n?.channel===i&&(async()=>{let e=o(n.input??{});switch(n.method){case`initialized`:{v();let e=w;return e!==C&&f.port1.postMessage({channel:i,globals:{theme:e}}),{}}case`height`:return m(e.height),{};case`callTool`:return y(e.name,e.arguments);case`setState`:return b(e.state);case`followUp`:return x(e.prompt);case`openLink`:return c.openLink(e.url);case`close`:return S();default:throw Error(`Unsupported ChatGPT widget method`)}})().then(e=>{if(!u||n.id===void 0)return;let t=n.method===`callTool`&&l.protocol===`openai`?e:void 0;f.port1.postMessage({channel:i,id:n.id,result:e,...t===void 0?{}:{globals:{toolOutput:t.structuredContent??null,toolResponseMetadata:t._meta??{}}}})},e=>{u&&n.id!==void 0&&f.port1.postMessage({channel:i,id:n.id,error:a(e)})})},f.port1.start();let p=()=>{s.contentWindow?.postMessage({html:e.mcpAppDocument(l.html,r,t.mcpOpenAiScript(T),C),policy:r,protocol:l.protocol},`*`,[f.port2])};return s.addEventListener(`load`,p,{once:!0}),s.srcdoc=e.mcpAppRelayHtml(r,C),{setTheme:e=>{w=e,d?.setHostContext({theme:e}),f.port1.postMessage({channel:i,globals:{theme:e}})},dispose:()=>{u=!1,clearTimeout(_),s.removeEventListener(`load`,p),f.port1.close(),f.port2.close(),d!==void 0&&d.close().catch(e=>c.fail(a(e))),s.srcdoc=``}}}catch(e){return h(e),{setTheme:()=>{},dispose:()=>{clearTimeout(_),f.port1.close(),f.port2.close()}}}}exports.connectMcpAppFrame=s;
|
|
3
|
+
//# sourceMappingURL=mcpAppFrame.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpAppFrame.cjs","names":["mcpAppCsp","AppBridge","PostMessageTransport","mcpAppDocument","mcpOpenAiScript","mcpAppRelayHtml","require_mcpAppSandbox","require_mcpOpenAiBootstrap","_modelcontextprotocol_ext_apps_app_bridge","MAX_HEIGHT","LEGACY_CHANNEL","errorText","error","object","value","connectMcpAppFrame","frame","options","live","bridge","channels","request","method","input","resize","fail","requestCloseLease","closeError","timeout","markReady","callTool","data","name","args","persist","state","followUp","prompt","close","theme","activeTheme","globals","policy","content","block","url","next","message","event","legacy","loadedTheme","returned","result","load","nextTheme"],"sources":["../../../src/lib/mcpAppFrame.ts"],"sourcesContent":["import { AppBridge, PostMessageTransport } from '@modelcontextprotocol/ext-apps/app-bridge';\n\nimport { mcpAppCsp, mcpAppDocument, mcpAppRelayHtml } from './mcpAppSandbox';\nimport { mcpOpenAiScript } from './mcpOpenAiBootstrap';\n\ntype CallToolResult = Awaited<ReturnType<NonNullable<AppBridge['oncalltool']>>>;\nconst MAX_HEIGHT = 1200;\nconst MIN_HEIGHT = 80;\nconst OPEN_TIMEOUT = 15_000;\nconst LEGACY_CHANNEL = 'po.openai';\n\nexport interface McpAppFrameOptions {\n data: {\n html: string;\n protocol: 'mcp' | 'openai';\n resourceMeta: Record<string, unknown>;\n args: Record<string, unknown>;\n result: { content: unknown[]; structuredContent?: unknown; _meta?: Record<string, unknown>; isError?: boolean };\n tool: {\n name: string;\n description: string;\n inputSchema: { type: 'object'; [key: string]: unknown };\n _meta: Record<string, unknown>;\n };\n readOnly: boolean;\n };\n toolCallId: string;\n savedState: unknown;\n hostOrigin: string;\n theme: 'light' | 'dark';\n locale: string;\n device: 'mobile' | 'desktop';\n hover?: boolean;\n touch?: boolean;\n request(method: string, input: Record<string, unknown>): Promise<unknown>;\n openLink(url: unknown): Promise<Record<string, never>>;\n resize(height: number): void;\n ready(): void;\n fail(message: string): void;\n close(): void;\n saveState(state: unknown): void;\n}\n\nfunction errorText(error: unknown): string {\n return error instanceof Error ? error.message : 'The MCP App could not complete this request';\n}\nfunction object(value: unknown): Record<string, unknown> {\n if (value === null || typeof value !== 'object' || Array.isArray(value)) throw new Error('Invalid App request');\n return value as Record<string, unknown>;\n}\n\n/** Connect a sandbox relay. The caller owns the lease and closes it on unmount. */\nexport function connectMcpAppFrame(\n frame: HTMLIFrameElement,\n options: McpAppFrameOptions,\n): { setTheme(theme: 'light' | 'dark'): void; dispose(): void } {\n if (frame.contentWindow === null) throw new Error('MCP App frame is not mounted');\n const { data } = options;\n let live = true;\n let bridge: AppBridge | undefined;\n const channels = new MessageChannel();\n const request = (method: string, input: Record<string, unknown>) => {\n if (!live) return Promise.reject(new Error('MCP App is closed'));\n return options.request(method, input);\n };\n const resize = (value: unknown): void => {\n if (typeof value === 'number' && Number.isFinite(value)) {\n options.resize(Math.min(MAX_HEIGHT, Math.max(MIN_HEIGHT, Math.ceil(value))));\n }\n };\n const fail = (error: unknown): void => {\n if (!live) return;\n options.fail(errorText(error));\n live = false;\n frame.srcdoc = '';\n void requestCloseLease().catch((closeError: unknown) => {\n options.fail(`${errorText(error)}. Closing the App lease failed: ${errorText(closeError)}`);\n });\n };\n const requestCloseLease = (): Promise<unknown> => options.request('close', {});\n const timeout = setTimeout(() => fail(new Error('MCP App initialization timed out')), OPEN_TIMEOUT);\n const markReady = (): void => {\n if (!live) return;\n clearTimeout(timeout);\n options.ready();\n };\n const callTool = async (name: unknown, args: unknown): Promise<CallToolResult> => {\n if (data.readOnly) throw new Error('Enable interactions in the conversation before calling tools');\n if (typeof name !== 'string') throw new Error('Invalid App tool name');\n const result = await request('callTool', { name, arguments: object(args ?? {}) });\n return result as CallToolResult;\n };\n const persist = async (state: unknown): Promise<Record<string, never>> => {\n await request('setState', { state });\n options.saveState(state);\n return {};\n };\n const followUp = async (prompt: unknown): Promise<Record<string, never>> => {\n if (data.readOnly) throw new Error('Enable interactions in the conversation before sending a follow-up');\n if (typeof prompt !== 'string') throw new Error('Invalid App follow-up');\n await request('followUp', { prompt });\n return {};\n };\n const close = async (): Promise<Record<string, never>> => {\n await request('close', {});\n options.close();\n return {};\n };\n const theme = options.theme;\n let activeTheme = theme;\n const globals = {\n toolInput: data.args,\n toolOutput: data.result.structuredContent ?? null,\n toolResponseMetadata: data.result._meta ?? {},\n widgetState: options.savedState,\n theme,\n locale: options.locale,\n displayMode: 'inline' as const,\n maxHeight: MAX_HEIGHT,\n safeArea: { insets: { top: 0, right: 0, bottom: 0, left: 0 } },\n userAgent: {\n device: { type: options.device },\n capabilities: { hover: options.hover ?? false, touch: options.touch ?? false },\n },\n };\n try {\n const policy = mcpAppCsp(data.resourceMeta, options.hostOrigin);\n if (data.protocol === 'mcp') {\n bridge = new AppBridge(\n null,\n { name: 'Po', version: '1' },\n {\n ...(data.readOnly ? {} : { serverTools: {}, message: { text: {} } }),\n openLinks: {},\n },\n {\n hostContext: {\n theme,\n locale: options.locale,\n displayMode: 'inline',\n availableDisplayModes: ['inline'],\n toolInfo: { id: options.toolCallId, tool: data.tool },\n },\n },\n );\n bridge.oncalltool = ({ name, arguments: args }) => callTool(name, args);\n bridge.onmessage = async ({ content }) => {\n if (content.some((block) => block.type !== 'text')) throw new Error('Only text follow-ups are supported');\n return followUp(content.map((block) => (block.type === 'text' ? block.text : '')).join('\\n'));\n };\n bridge.onopenlink = ({ url }) => options.openLink(url);\n bridge.onsizechange = ({ height: next }) => resize(next);\n bridge.onrequestdisplaymode = async () => ({ mode: 'inline' });\n bridge.onrequestteardown = () => {\n void close().catch(fail);\n };\n bridge.oninitialized = () => {\n void (async () => {\n await bridge!.sendToolInput({ arguments: data.args });\n await bridge!.sendToolResult(data.result as CallToolResult);\n markReady();\n })().catch(fail);\n };\n void bridge.connect(new PostMessageTransport(frame.contentWindow, frame.contentWindow)).catch(fail);\n }\n channels.port1.onmessage = (event: MessageEvent<unknown>) => {\n if (!live) return;\n const message = event.data as { type?: string; data?: unknown };\n if (message?.type === 'revoked') {\n fail(new Error('MCP App navigation was blocked; reopen it to continue'));\n return;\n }\n if (message?.type !== 'legacy') return;\n const legacy = message.data as { channel?: string; id?: number; method?: string; input?: unknown } | null;\n if (legacy?.channel !== LEGACY_CHANNEL) return;\n void (async () => {\n const input = object(legacy.input ?? {});\n switch (legacy.method) {\n case 'initialized': {\n markReady();\n // A theme change while the App document loaded reached no listener; this one runs after it.\n const loadedTheme = activeTheme;\n if (loadedTheme !== theme)\n channels.port1.postMessage({ channel: LEGACY_CHANNEL, globals: { theme: loadedTheme } });\n return {};\n }\n case 'height':\n resize(input.height);\n return {};\n case 'callTool':\n return callTool(input.name, input.arguments);\n case 'setState':\n return persist(input.state);\n case 'followUp':\n return followUp(input.prompt);\n case 'openLink':\n return options.openLink(input.url);\n case 'close':\n return close();\n default:\n throw new Error('Unsupported ChatGPT widget method');\n }\n })().then(\n (result) => {\n if (!live || legacy.id === undefined) return;\n // A widget's own call returns its result; replacing the rendered tool's output corrupts widgets that persist it.\n const returned =\n legacy.method === 'callTool' && data.protocol === 'openai' ? (result as CallToolResult) : undefined;\n channels.port1.postMessage({\n channel: LEGACY_CHANNEL,\n id: legacy.id,\n result,\n ...(returned === undefined\n ? {}\n : {\n globals: {\n toolOutput: returned.structuredContent ?? null,\n toolResponseMetadata: returned._meta ?? {},\n },\n }),\n });\n },\n (error: unknown) => {\n if (!live || legacy.id === undefined) return;\n channels.port1.postMessage({ channel: LEGACY_CHANNEL, id: legacy.id, error: errorText(error) });\n },\n );\n };\n channels.port1.start();\n const load = (): void => {\n frame.contentWindow?.postMessage(\n {\n html: mcpAppDocument(data.html, policy, mcpOpenAiScript(globals), theme),\n policy,\n protocol: data.protocol,\n },\n '*',\n [channels.port2],\n );\n };\n frame.addEventListener('load', load, { once: true });\n frame.srcdoc = mcpAppRelayHtml(policy, theme);\n const setTheme = (nextTheme: 'light' | 'dark'): void => {\n activeTheme = nextTheme;\n bridge?.setHostContext({ theme: nextTheme });\n channels.port1.postMessage({ channel: LEGACY_CHANNEL, globals: { theme: nextTheme } });\n };\n return {\n setTheme,\n dispose: () => {\n live = false;\n clearTimeout(timeout);\n frame.removeEventListener('load', load);\n channels.port1.close();\n channels.port2.close();\n if (bridge !== undefined) void bridge.close().catch((error: unknown) => options.fail(errorText(error)));\n frame.srcdoc = '';\n },\n };\n } catch (error) {\n fail(error);\n return {\n setTheme: () => {},\n dispose: () => {\n clearTimeout(timeout);\n channels.port1.close();\n channels.port2.close();\n },\n };\n }\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=/^(localhost|127(\.\d{1,3}){3}|\[::1\])$/u;function t(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function n(t,n){if(t===void 0)return[];if(!Array.isArray(t)||t.length>64)throw Error(`Invalid widget CSP domains`);return t.map(t=>{if(typeof t!=`string`||t.length>2048)throw Error(`Invalid widget CSP domain`);let r=new URL(t),i=r.hostname.replace(/^%2a\./iu,`*.`),a=i.startsWith(`*.`),o=new URL(n),s=e.test(r.hostname),c=s?e.test(o.hostname)&&r.port===o.port:i===o.hostname||a&&o.hostname.endsWith(i.slice(1));if(!(s?[`http:`,`https:`,`ws:`,`wss:`]:[`https:`,`wss:`]).includes(r.protocol)||r.username||r.password||r.pathname!==`/`||r.search||r.hash||c||r.hostname.startsWith(`0.`)||/[\s;'"<>]/u.test(t))throw Error(`Unsafe widget CSP domain`);return`${r.protocol}//${i}${r.port?`:${r.port}`:``}`})}function r(e,r){let i=t(e),a=t(i?.ui);if(i?.ui!==void 0&&a===void 0)throw Error(`Invalid widget UI metadata`);let o=a!==void 0&&`csp`in a,s=o?a.csp:i?.[`openai/widgetCSP`],c=s===void 0?{}:t(s);if(c===void 0)throw Error(`Invalid widget CSP`);let l=n(c[o?`resourceDomains`:`resource_domains`],r).join(` `),u=n(c[o?`connectDomains`:`connect_domains`],r).join(` `),d=n(c[o?`frameDomains`:`frame_domains`],r).join(` `);return[`default-src 'none'`,`script-src 'unsafe-inline' ${l}`,`style-src 'unsafe-inline' ${l}`,`img-src data: blob: ${l}`,`font-src data: ${l}`,`media-src blob: ${l}`,`connect-src ${u||`'none'`}`,`frame-src ${d||`'none'`}`,`child-src ${d||`'none'`}`,`worker-src 'none'`,`object-src 'none'`,`base-uri 'none'`,`form-action 'none'`].join(`; `)}function i(e){return e.replaceAll(`&`,`&`).replaceAll(`"`,`"`).replaceAll(`<`,`<`)}function a(e){let t=e,n=t?.channel===`po.openai`?t.globals?.theme:t?.jsonrpc===`2.0`&&t.method===`ui/notifications/host-context-changed`?t.params?.theme:void 0;return n===`light`||n===`dark`?n:void 0}function o(e,t){let n=document.documentElement,r=t,i=!1,a=()=>{!n.classList.contains(`light`)&&!n.classList.contains(`dark`)&&n.classList.add(r),n.getAttribute(`data-theme`)===null&&n.setAttribute(`data-theme`,r)},o=()=>{n.classList.remove(`light`,`dark`),n.classList.add(r);let e=n.getAttribute(`data-theme`);(e===null||e===`light`||e===`dark`)&&n.setAttribute(`data-theme`,r),n.style.colorScheme=r};window.addEventListener(`message`,t=>{let n=t.source===parent?e(t.data):void 0;n!==void 0&&(r=n,i=!0,document.readyState!==`loading`&&o())}),document.readyState===`loading`?document.addEventListener(`readystatechange`,()=>{document.readyState===`interactive`&&(i?o():a())}):a()}function s(e){let t=!1,n=t=>{let n=e(t);n!==void 0&&(document.documentElement.style.colorScheme=n)};window.addEventListener(`message`,e=>{if(e.source!==parent||t||e.ports.length!==1)return;let r=e.data;if(typeof r?.html!=`string`||typeof r.policy!=`string`)return;t=!0;let i=e.ports[0],a=document.createElement(`iframe`);a.title=`MCP App content`,a.setAttribute(`sandbox`,`allow-scripts`),r.policy.includes(`frame-src 'none'`)&&a.setAttribute(`csp`,r.policy),a.setAttribute(`allow`,`camera 'none'; microphone 'none'; geolocation 'none'; clipboard-read 'none'; clipboard-write 'none'`),a.style.cssText=`width:100%;height:100%;border:0;display:block`;let o=!1,s=!1,c=()=>{s||(s=!0,a.remove(),i.postMessage({type:`revoked`}),i.close())};a.addEventListener(`load`,()=>{o&&c(),o=!0});let l=Date.now(),u=0;window.addEventListener(`message`,e=>{if(s||e.source!==a.contentWindow)return;try{let t=JSON.stringify(e.data);if(t===void 0||new TextEncoder().encode(t).byteLength>65536)return c();let n=Date.now();if(n-l>=1e3&&(l=n,u=0),++u>128)return c()}catch{return c()}let t=e.data?.channel===`po.openai`;r.protocol===`mcp`&&!t?parent.postMessage(e.data,`*`):i.postMessage({type:`legacy`,data:e.data})}),i.onmessage=e=>{s||(n(e.data),a.contentWindow?.postMessage(e.data,`*`))},window.addEventListener(`message`,e=>{if(!s&&e.source===parent&&r.protocol===`mcp`){let t=e.data;if(t?.jsonrpc!==`2.0`)return;n(t),a.contentWindow?.postMessage(t,`*`)}}),i.start(),a.srcdoc=r.html,document.body.append(a),i.postMessage({type:`ready`})})}function c(e,t=`light`){return`<!doctype html><html style="color-scheme:${t}"><meta http-equiv="Content-Security-Policy" content="${i(e.replace(/\b(frame|child)-src ([^;]*)/gu,(e,t,n)=>n===`'none'`?`${t}-src about:`:`${t}-src about: ${n}`))}"><style>html,body{margin:0;height:100%;overflow:hidden}</style><script>(${s.toString()})(${a.toString()})<\/script>`}function l(e,t,n=``,r=`light`){let s=`<script>(${o.toString()})(${a.toString()}, ${JSON.stringify(r)})<\/script>`;return`<!doctype html><meta http-equiv="Content-Security-Policy" content="${i(t)}"><meta name="color-scheme" content="${r}">${s}${n}${e}`}function u(e){return`csp`in(`createElement`in e?e.createElement(`iframe`):e)}exports.mcpAppCsp=r,exports.mcpAppDocument=l,exports.mcpAppHostTheme=a,exports.mcpAppRelayHtml=c,exports.relayBootstrap=s,exports.supportsMcpAppSandbox=u,exports.widgetThemeBootstrap=o;
|
|
2
|
+
//# sourceMappingURL=mcpAppSandbox.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpAppSandbox.cjs","names":["LOOPBACK_HOSTNAME","record","value","origins","domain","parsed","hostname","wildcard","host","hostOrigin","loopback","includesHost","mcpAppCsp","meta","metadata","ui","standard","raw","csp","resource","connect","frame","escapeAttribute","mcpAppHostTheme","message","data","theme","widgetThemeBootstrap","root","initial","changed","settle","follow","current","next","event","hostTheme","relayBootstrap","configured","config","port","inner","loaded","revoked","revoke","messageWindow","messageCount","childEvent","encoded","now","openai","hostEvent","mcpAppRelayHtml","policy","sources","kind","mcpAppDocument","themeScript","bootstrap","html","supportsMcpAppSandbox"],"sources":["../../../src/lib/mcpAppSandbox.ts"],"sourcesContent":["const MAX_CSP_DOMAINS = 64;\nconst MAX_DOMAIN_LENGTH = 2048;\nconst LOOPBACK_HOSTNAME = /^(localhost|127(\\.\\d{1,3}){3}|\\[::1\\])$/u;\n\nfunction record(value: unknown): Record<string, unknown> | undefined {\n return value !== null && typeof value === 'object' && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : undefined;\n}\n\n/** Accept origins only, never CSP tokens, URL paths, credentials, or the host origin. */\nfunction origins(value: unknown, hostOrigin: string): string[] {\n if (value === undefined) return [];\n if (!Array.isArray(value) || value.length > MAX_CSP_DOMAINS) throw new Error('Invalid widget CSP domains');\n return value.map((domain: unknown) => {\n if (typeof domain !== 'string' || domain.length > MAX_DOMAIN_LENGTH) throw new Error('Invalid widget CSP domain');\n const parsed = new URL(domain);\n // Browsers percent-encode a wildcard label (`*.` becomes `%2A.`), which CSP ignores as an invalid source.\n const hostname = parsed.hostname.replace(/^%2a\\./iu, '*.');\n const wildcard = hostname.startsWith('*.');\n const host = new URL(hostOrigin);\n // Local dev servers serve widgets over plain HTTP on loopback; Po's own loopback origin stays excluded.\n const loopback = LOOPBACK_HOSTNAME.test(parsed.hostname);\n const includesHost = loopback\n ? LOOPBACK_HOSTNAME.test(host.hostname) && parsed.port === host.port\n : hostname === host.hostname || (wildcard && host.hostname.endsWith(hostname.slice(1)));\n if (\n !(loopback ? ['http:', 'https:', 'ws:', 'wss:'] : ['https:', 'wss:']).includes(parsed.protocol) ||\n parsed.username ||\n parsed.password ||\n parsed.pathname !== '/' ||\n parsed.search ||\n parsed.hash ||\n includesHost ||\n parsed.hostname.startsWith('0.') ||\n /[\\s;'\"<>]/u.test(domain)\n )\n throw new Error('Unsafe widget CSP domain');\n return `${parsed.protocol}//${hostname}${parsed.port ? `:${parsed.port}` : ''}`;\n });\n}\n\nexport function mcpAppCsp(metadata: unknown, hostOrigin: string): string {\n const meta = record(metadata);\n const ui = record(meta?.ui);\n if (meta?.ui !== undefined && ui === undefined) throw new Error('Invalid widget UI metadata');\n // A present standard field always wins, including malformed values (fail closed).\n const standard = ui !== undefined && 'csp' in ui;\n const raw = standard ? ui.csp : meta?.['openai/widgetCSP'];\n const csp = raw === undefined ? {} : record(raw);\n if (csp === undefined) throw new Error('Invalid widget CSP');\n const resource = origins(csp[standard ? 'resourceDomains' : 'resource_domains'], hostOrigin).join(' ');\n const connect = origins(csp[standard ? 'connectDomains' : 'connect_domains'], hostOrigin).join(' ');\n const frame = origins(csp[standard ? 'frameDomains' : 'frame_domains'], hostOrigin).join(' ');\n // Nested frames load only from declared frame domains; forms, base URLs, workers and navigation privileges are not admitted.\n return [\n \"default-src 'none'\",\n `script-src 'unsafe-inline' ${resource}`,\n `style-src 'unsafe-inline' ${resource}`,\n `img-src data: blob: ${resource}`,\n `font-src data: ${resource}`,\n `media-src blob: ${resource}`,\n `connect-src ${connect || \"'none'\"}`,\n `frame-src ${frame || \"'none'\"}`,\n `child-src ${frame || \"'none'\"}`,\n \"worker-src 'none'\",\n \"object-src 'none'\",\n \"base-uri 'none'\",\n \"form-action 'none'\",\n ].join('; ');\n}\n\nfunction escapeAttribute(value: string): string {\n return value.replaceAll('&', '&').replaceAll('\"', '"').replaceAll('<', '<');\n}\n\ntype HostTheme = 'light' | 'dark';\n\n/** The theme a host message carries, from either bridge. Serialized into frames, so it stays self-contained. */\nexport function mcpAppHostTheme(data: unknown): HostTheme | undefined {\n const message = data as {\n channel?: unknown;\n globals?: { theme?: unknown } | null;\n jsonrpc?: unknown;\n method?: unknown;\n params?: { theme?: unknown } | null;\n } | null;\n const theme =\n message?.channel === 'po.openai'\n ? message.globals?.theme\n : message?.jsonrpc === '2.0' && message.method === 'ui/notifications/host-context-changed'\n ? message.params?.theme\n : undefined;\n return theme === 'light' || theme === 'dark' ? theme : undefined;\n}\n\n/**\n * Bundled trusted code, runs inside the App document. Waits for the App's own\n * <html> attributes, which the parser merges only where the root has none, so\n * an App-chosen class or data-theme wins until the host theme changes.\n */\nexport function widgetThemeBootstrap(hostTheme: (data: unknown) => HostTheme | undefined, initial: HostTheme): void {\n const root = document.documentElement;\n let theme = initial;\n let changed = false;\n const settle = (): void => {\n if (!root.classList.contains('light') && !root.classList.contains('dark')) root.classList.add(theme);\n if (root.getAttribute('data-theme') === null) root.setAttribute('data-theme', theme);\n };\n const follow = (): void => {\n root.classList.remove('light', 'dark');\n root.classList.add(theme);\n const current = root.getAttribute('data-theme');\n if (current === null || current === 'light' || current === 'dark') root.setAttribute('data-theme', theme);\n root.style.colorScheme = theme;\n };\n window.addEventListener('message', (event: MessageEvent<unknown>) => {\n const next = event.source === parent ? hostTheme(event.data) : undefined;\n if (next === undefined) return;\n theme = next;\n changed = true;\n if (document.readyState !== 'loading') follow();\n });\n if (document.readyState !== 'loading') settle();\n else\n document.addEventListener('readystatechange', () => {\n if (document.readyState === 'interactive') {\n if (changed) follow();\n else settle();\n }\n });\n}\n\n/** Bundled trusted code, runs in an opaque relay separate from the untrusted App. */\nexport function relayBootstrap(hostTheme: (data: unknown) => HostTheme | undefined): void {\n let configured = false;\n // The relay canvas must match the App's color scheme or the browser paints it opaque.\n const follow = (data: unknown): void => {\n const theme = hostTheme(data);\n if (theme !== undefined) document.documentElement.style.colorScheme = theme;\n };\n window.addEventListener('message', (event: MessageEvent<unknown>) => {\n if (event.source !== parent || configured || event.ports.length !== 1) return;\n const config = event.data as { html: string; policy: string; protocol: string };\n if (typeof config?.html !== 'string' || typeof config.policy !== 'string') return;\n configured = true;\n const port = event.ports[0]!;\n const inner = document.createElement('iframe');\n inner.title = 'MCP App content';\n inner.setAttribute('sandbox', 'allow-scripts');\n // Required CSP also binds nested frames, so an App with declared frame domains relies on the inherited relay\n // policy instead: MCP Apps let those frames keep their own CSP, and the relay revokes any second document.\n if (config.policy.includes(\"frame-src 'none'\")) inner.setAttribute('csp', config.policy);\n inner.setAttribute(\n 'allow',\n \"camera 'none'; microphone 'none'; geolocation 'none'; clipboard-read 'none'; clipboard-write 'none'\",\n );\n inner.style.cssText = 'width:100%;height:100%;border:0;display:block';\n let loaded = false;\n let revoked = false;\n const revoke = (): void => {\n if (revoked) return;\n revoked = true;\n inner.remove();\n port.postMessage({ type: 'revoked' });\n port.close();\n };\n inner.addEventListener('load', () => {\n if (loaded) revoke();\n loaded = true;\n });\n let messageWindow = Date.now();\n let messageCount = 0;\n window.addEventListener('message', (childEvent: MessageEvent<unknown>) => {\n if (revoked || childEvent.source !== inner.contentWindow) return;\n try {\n const encoded = JSON.stringify(childEvent.data);\n if (encoded === undefined || new TextEncoder().encode(encoded).byteLength > 65536) return revoke();\n const now = Date.now();\n if (now - messageWindow >= 1000) {\n messageWindow = now;\n messageCount = 0;\n }\n if (++messageCount > 128) return revoke();\n } catch {\n return revoke();\n }\n // window.openai is in every App, so its channel reaches the host port whatever the protocol.\n const openai = (childEvent.data as { channel?: unknown } | null)?.channel === 'po.openai';\n if (config.protocol === 'mcp' && !openai) parent.postMessage(childEvent.data, '*');\n else port.postMessage({ type: 'legacy', data: childEvent.data });\n });\n // The parent alone owns the other end of this channel. No origin-based trust.\n port.onmessage = (hostEvent: MessageEvent<unknown>) => {\n if (revoked) return;\n follow(hostEvent.data);\n inner.contentWindow?.postMessage(hostEvent.data, '*');\n };\n window.addEventListener('message', (hostEvent: MessageEvent<unknown>) => {\n if (!revoked && hostEvent.source === parent && config.protocol === 'mcp') {\n const data = hostEvent.data as { jsonrpc?: string } | null;\n if (data?.jsonrpc !== '2.0') return;\n follow(data);\n inner.contentWindow?.postMessage(data, '*');\n }\n });\n port.start();\n inner.srcdoc = config.html;\n document.body.append(inner);\n port.postMessage({ type: 'ready' });\n });\n}\n\nexport function mcpAppRelayHtml(policy: string, theme: HostTheme = 'light'): string {\n // frame-src adds srcdoc/about for the App frame, never a host route or a remote sandbox URL. The App's\n // declared frame domains stay, because the srcdoc App inherits this policy for its own nested frames.\n const relayPolicy = policy.replace(/\\b(frame|child)-src ([^;]*)/gu, (_, kind: string, sources: string) =>\n sources === \"'none'\" ? `${kind}-src about:` : `${kind}-src about: ${sources}`,\n );\n return `<!doctype html><html style=\"color-scheme:${theme}\"><meta http-equiv=\"Content-Security-Policy\" content=\"${escapeAttribute(relayPolicy)}\"><style>html,body{margin:0;height:100%;overflow:hidden}</style><script>(${relayBootstrap.toString()})(${mcpAppHostTheme.toString()})</script>`;\n}\n\n/** No host <html> is injected, so the App's own root attributes survive parsing. */\nexport function mcpAppDocument(html: string, policy: string, bootstrap = '', theme: HostTheme = 'light'): string {\n const themeScript = `<script>(${widgetThemeBootstrap.toString()})(${mcpAppHostTheme.toString()}, ${JSON.stringify(theme)})</script>`;\n return `<!doctype html><meta http-equiv=\"Content-Security-Policy\" content=\"${escapeAttribute(policy)}\"><meta name=\"color-scheme\" content=\"${theme}\">${themeScript}${bootstrap}${html}`;\n}\n\n/** Required CSP enforcement must survive self-navigation, not only initial srcdoc. */\nexport function supportsMcpAppSandbox(host: Document | HTMLIFrameElement): boolean {\n const frame = 'createElement' in host ? host.createElement('iframe') : host;\n return 'csp' in frame;\n}\n"],"mappings":"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"}
|