@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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function e(e){let t=`po.openai`,n=/* @__PURE__ */ new Map,r=0,i=e,a=e=>{i={...i,...e},window.dispatchEvent(new CustomEvent(`openai:set_globals`,{detail:{globals:e}}))},o=(e,i)=>{if(n.size>=32)return Promise.reject(/* @__PURE__ */ Error(`Too many pending widget requests`));let a=++r;return new Promise((r,o)=>{let s=window.setTimeout(()=>{n.delete(a),o(/* @__PURE__ */ Error(`Widget request timed out`))},6e4);n.set(a,{resolve:r,reject:o,timer:s}),parent.postMessage({channel:t,id:a,method:e,input:i},`*`)})};Object.defineProperty(window,"openai",{value:Object.freeze({get toolInput(){return i.toolInput},get toolOutput(){return i.toolOutput},get toolResponseMetadata(){return i.toolResponseMetadata},get widgetState(){return i.widgetState},get theme(){return i.theme},get locale(){return i.locale},get displayMode(){return i.displayMode},get maxHeight(){return i.maxHeight},get safeArea(){return i.safeArea},get userAgent(){return i.userAgent},callTool:(e,t={})=>o(`callTool`,{name:e,arguments:t}),setWidgetState:e=>(a({widgetState:e}),o(`setState`,{state:e})),sendFollowUpMessage:e=>o(`followUp`,e),requestDisplayMode:()=>Promise.resolve({mode:`inline`}),openExternal:e=>o(`openLink`,{url:e.href}),requestClose:()=>o(`close`,{}),notifyIntrinsicHeight:e=>o(`height`,{height:e})}),configurable:!1,writable:!1}),window.addEventListener(`message`,e=>{if(e.source!==parent)return;let r=e.data;if(r?.channel!==t||(r.globals!==void 0&&a(r.globals),r.id===void 0))return;let i=n.get(r.id);i!==void 0&&(n.delete(r.id),clearTimeout(i.timer),typeof r.error==`string`?i.reject(Error(r.error)):i.resolve(r.result))}),parent.postMessage({channel:t,method:`initialized`,input:{}},`*`),document.addEventListener(`DOMContentLoaded`,()=>{a(i);let e=new ResizeObserver(()=>{let e=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);parent.postMessage({channel:t,method:`height`,input:{height:e}},`*`)});e.observe(document.body),window.addEventListener(`pagehide`,()=>e.disconnect(),{once:!0})},{once:!0})}function t(t){let n=JSON.stringify(t).replaceAll(`<`,`\\u003c`).replaceAll(`\u2028`,`\\u2028`).replaceAll(`\u2029`,`\\u2029`);return`<script>(${e.toString()})(${n})<\/script>`}exports.bootstrap=e,exports.mcpOpenAiScript=t;
|
|
2
|
+
//# sourceMappingURL=mcpOpenAiBootstrap.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpOpenAiBootstrap.cjs","names":["bootstrap","channel","pending","sequence","globals","initial","update","patch","request","id","timer","reject","args","state","input","event","message","callback","observer","height","mcpOpenAiScript","encoded"],"sources":["../../../src/lib/mcpOpenAiBootstrap.ts"],"sourcesContent":["interface LegacyGlobals {\n toolInput: Record<string, unknown>;\n toolOutput: unknown;\n toolResponseMetadata: Record<string, unknown>;\n widgetState: unknown;\n theme: 'light' | 'dark';\n locale: string;\n displayMode: 'inline';\n maxHeight: number;\n userAgent: { device: { type: 'desktop' | 'mobile' }; capabilities: { hover: boolean; touch: boolean } };\n safeArea: { insets: { top: number; right: number; bottom: number; left: number } };\n}\n\nexport function bootstrap(initial: LegacyGlobals): void {\n const channel = 'po.openai';\n const requestTimeout = 60_000;\n const pending = new Map<number, { resolve(value: unknown): void; reject(error: Error): void; timer: number }>();\n let sequence = 0;\n let globals = initial;\n const update = (patch: Partial<LegacyGlobals>): void => {\n globals = { ...globals, ...patch };\n window.dispatchEvent(new CustomEvent('openai:set_globals', { detail: { globals: patch } }));\n };\n const request = (method: string, input: unknown): Promise<unknown> => {\n if (pending.size >= 32) return Promise.reject(new Error('Too many pending widget requests'));\n const id = ++sequence;\n return new Promise((resolve, reject) => {\n const timer = window.setTimeout(() => {\n pending.delete(id);\n reject(new Error('Widget request timed out'));\n }, requestTimeout);\n pending.set(id, { resolve, reject, timer });\n parent.postMessage({ channel, id, method, input }, '*');\n });\n };\n const api = {\n get toolInput() {\n return globals.toolInput;\n },\n get toolOutput() {\n return globals.toolOutput;\n },\n get toolResponseMetadata() {\n return globals.toolResponseMetadata;\n },\n get widgetState() {\n return globals.widgetState;\n },\n get theme() {\n return globals.theme;\n },\n get locale() {\n return globals.locale;\n },\n get displayMode() {\n return globals.displayMode;\n },\n get maxHeight() {\n return globals.maxHeight;\n },\n get safeArea() {\n return globals.safeArea;\n },\n get userAgent() {\n return globals.userAgent;\n },\n callTool: (name: string, args: Record<string, unknown> = {}) => request('callTool', { name, arguments: args }),\n setWidgetState: (state: unknown) => {\n // Immediate local state, with await-compatible durable persistence.\n update({ widgetState: state });\n return request('setState', { state });\n },\n sendFollowUpMessage: (input: { prompt: string }) => request('followUp', input),\n requestDisplayMode: () => Promise.resolve({ mode: 'inline' }),\n openExternal: (input: { href: string }) => request('openLink', { url: input.href }),\n requestClose: () => request('close', {}),\n notifyIntrinsicHeight: (height: number) => request('height', { height }),\n };\n Object.defineProperty(window, 'openai', { value: Object.freeze(api), configurable: false, writable: false });\n window.addEventListener('message', (event: MessageEvent<unknown>) => {\n if (event.source !== parent) return;\n const message = event.data as {\n channel?: string;\n id?: number;\n error?: string;\n result?: unknown;\n globals?: Partial<LegacyGlobals>;\n };\n if (message?.channel !== channel) return;\n if (message.globals !== undefined) update(message.globals);\n if (message.id === undefined) return;\n const callback = pending.get(message.id);\n if (callback === undefined) return;\n pending.delete(message.id);\n clearTimeout(callback.timer);\n if (typeof message.error === 'string') callback.reject(new Error(message.error));\n else callback.resolve(message.result);\n });\n parent.postMessage({ channel, method: 'initialized', input: {} }, '*');\n document.addEventListener(\n 'DOMContentLoaded',\n () => {\n update(globals);\n const observer = new ResizeObserver(() => {\n const height = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);\n parent.postMessage({ channel, method: 'height', input: { height } }, '*');\n });\n observer.observe(document.body);\n window.addEventListener('pagehide', () => observer.disconnect(), { once: true });\n },\n { once: true },\n );\n}\n\nexport function mcpOpenAiScript(globals: LegacyGlobals): string {\n const encoded = JSON.stringify(globals)\n .replaceAll('<', '\\\\u003c')\n .replaceAll('\\u2028', '\\\\u2028')\n .replaceAll('\\u2029', '\\\\u2029');\n return `<script>(${bootstrap.toString()})(${encoded})</script>`;\n}\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.cjs","names":["MEDIA_KIND_BY_EXTENSION","extensionOf","name","filePath","dot","mediaKindOf"],"sources":["../../../src/lib/media.ts"],"sourcesContent":["import type { MediaKind } from '../types/editor';\n\n/**\n * Which files a browser can show without help.\n *\n * Keyed by lower-case extension without the dot, and deliberately short: an\n * entry here is a promise that the element named by its kind will render the\n * bytes, so a format the browser only sometimes handles belongs in the\n * download fallback instead of on this list.\n */\nconst MEDIA_KIND_BY_EXTENSION: Readonly<Record<string, MediaKind>> = {\n avif: 'image',\n bmp: 'image',\n gif: 'image',\n ico: 'image',\n jpeg: 'image',\n jpg: 'image',\n png: 'image',\n svg: 'image',\n webp: 'image',\n m4v: 'video',\n mov: 'video',\n mp4: 'video',\n webm: 'video',\n pdf: 'pdf',\n};\n\n/** The extension of a path, lower-cased and without the dot; empty when it has none. */\nfunction extensionOf(filePath: string): string {\n const name = filePath.split('/').at(-1) ?? '';\n const dot = name.lastIndexOf('.');\n // A leading dot is the whole name of a dotfile, not the start of a suffix.\n return dot < 1 ? '' : name.slice(dot + 1).toLowerCase();\n}\n\n/**\n * How to show the file at this path. Anything unrecognised is a download,\n * which is the honest answer for a `.docx` or a `.zip`: a browser cannot\n * render it, and pretending otherwise costs a converter that loses the\n * formatting it converted.\n */\nexport function mediaKindOf(filePath: string): MediaKind {\n return MEDIA_KIND_BY_EXTENSION[extensionOf(filePath)] ?? 'download';\n}\n"],"mappings":"AAUA,MAAMA,EAA+D,CACnE,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,KACP,EAGA,SAASC,EAAY,EAA0B,CAC7C,IAAMC,EAAOC,EAAS,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,GAAK,GACrCC,EAAMF,EAAK,YAAY,GAAG,EAEhC,OAAOE,EAAM,EAAI,GAAKF,EAAK,MAAME,EAAM,CAAC,CAAC,CAAC,YAAY,CACxD,CAQA,SAAgBC,EAAY,EAA6B,CACvD,OAAOL,EAAwBC,EAAYE,CAAQ,IAAM,UAC3D"}
|
|
1
|
+
{"version":3,"file":"media.cjs","names":["MEDIA_KIND_BY_EXTENSION","extensionOf","name","filePath","dot","mediaKindOf"],"sources":["../../../src/lib/media.ts"],"sourcesContent":["import type { MediaKind } from '../types/editor';\n\n/**\n * Which files a browser can show without help.\n *\n * Keyed by lower-case extension without the dot, and deliberately short: an\n * entry here is a promise that the element named by its kind will render the\n * bytes, so a format the browser only sometimes handles belongs in the\n * download fallback instead of on this list.\n */\nconst MEDIA_KIND_BY_EXTENSION: Readonly<Record<string, MediaKind>> = {\n avif: 'image',\n bmp: 'image',\n gif: 'image',\n ico: 'image',\n jpeg: 'image',\n jpg: 'image',\n png: 'image',\n svg: 'image',\n webp: 'image',\n m4v: 'video',\n mov: 'video',\n mp4: 'video',\n webm: 'video',\n pdf: 'pdf',\n};\n\n/** The extension of a path, lower-cased and without the dot; empty when it has none. */\nfunction extensionOf(filePath: string): string {\n const name = filePath.split('/').at(-1) ?? '';\n const dot = name.lastIndexOf('.');\n // A leading dot is the whole name of a dotfile, not the start of a suffix.\n return dot < 1 ? '' : name.slice(dot + 1).toLowerCase();\n}\n\n/**\n * How to show the file at this path. Anything unrecognised is a download,\n * which is the honest answer for a `.docx` or a `.zip`: a browser cannot\n * render it, and pretending otherwise costs a converter that loses the\n * formatting it converted.\n */\nexport function mediaKindOf(filePath: string): MediaKind {\n return MEDIA_KIND_BY_EXTENSION[extensionOf(filePath)] ?? 'download';\n}\n"],"mappings":"AAUA,MAAMA,EAA+D,CACnE,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,KACP,EAGA,SAASC,EAAY,EAA0B,CAC7C,IAAMC,EAAOC,EAAS,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,GAAK,GACrCC,EAAMF,EAAK,YAAY,GAAG,EAEhC,OAAOE,EAAM,EAAI,GAAKF,EAAK,MAAME,EAAM,CAAC,CAAC,CAAC,YAAY,CACxD,CAQA,SAAgBC,EAAY,EAA6B,CACvD,OAAOL,EAAwBC,EAAYE,CAAQ,IAAM,UAC3D,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaPlayback.cjs","names":["boundedMediaTime","seconds","duration"],"sources":["../../../src/lib/mediaPlayback.ts"],"sourcesContent":["/** Keep an imperative seek inside the playable part of the current video. */\nexport function boundedMediaTime(seconds: number, duration: number): number {\n if (!Number.isFinite(seconds)) throw new RangeError('Media seek time must be finite');\n const end = Number.isFinite(duration) && duration >= 0 ? duration : Number.POSITIVE_INFINITY;\n return Math.min(Math.max(seconds, 0), end);\n}\n"],"mappings":"AACA,SAAgBA,EAAiB,EAAiB,EAA0B,CAC1E,GAAI,CAAC,OAAO,SAASC,CAAO,EAAG,MAAU,WAAW,gCAAgC,EAEpF,OAAO,KAAK,IAAI,KAAK,IAAIA,EAAS,CAAC,EADvB,OAAO,SAASC,CAAQ,GAAKA,GAAY,EAAIA,EAAW,GAC3B,CAC3C"}
|
|
1
|
+
{"version":3,"file":"mediaPlayback.cjs","names":["boundedMediaTime","seconds","duration"],"sources":["../../../src/lib/mediaPlayback.ts"],"sourcesContent":["/** Keep an imperative seek inside the playable part of the current video. */\nexport function boundedMediaTime(seconds: number, duration: number): number {\n if (!Number.isFinite(seconds)) throw new RangeError('Media seek time must be finite');\n const end = Number.isFinite(duration) && duration >= 0 ? duration : Number.POSITIVE_INFINITY;\n return Math.min(Math.max(seconds, 0), end);\n}\n"],"mappings":"AACA,SAAgBA,EAAiB,EAAiB,EAA0B,CAC1E,GAAI,CAAC,OAAO,SAASC,CAAO,EAAG,MAAU,WAAW,gCAAgC,EAEpF,OAAO,KAAK,IAAI,KAAK,IAAIA,EAAS,CAAC,EADvB,OAAO,SAASC,CAAQ,GAAKA,GAAY,EAAIA,EAAW,GAC3B,CAC3C,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let e;async function t(){return e??=import(`mermaid`).then(({default:e})=>(e.initialize({startOnLoad:!1,fontFamily:`inherit`,theme:`dark`,securityLevel:`strict
|
|
1
|
+
let e;async function t(){return e??=import(`mermaid`).then(({default:e})=>(e.initialize({startOnLoad:!1,fontFamily:`inherit`,theme:`dark`,securityLevel:`strict`,suppressErrorRendering:!0}),e)),e}async function n(e,n){let{svg:r}=await(await t()).render(e,n);return r}exports.renderMermaid=n;
|
|
2
2
|
//# sourceMappingURL=mermaidDiagram.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mermaidDiagram.cjs","names":["loading","mermaidApi","mermaid","renderMermaid","id","code","svg"],"sources":["../../../src/lib/mermaidDiagram.ts"],"sourcesContent":["/**\n * Mermaid, loaded only for a message that actually draws one.\n *\n * Mermaid is the largest thing this library can pull in, so nothing imports it\n * at module scope: the dynamic import below is its own chunk, fetched the\n * first time a `mermaid` fence renders and reused after that. The renderer\n * needs a document to measure text, so this module is browser-only by nature\n * and every caller is inside an effect.\n */\n\nlet loading: Promise<typeof import('mermaid').default> | undefined;\n\n/** Loads and configures mermaid once per page. */\nasync function mermaidApi(): Promise<typeof import('mermaid').default> {\n loading ??= import('mermaid').then(({ default: mermaid }) => {\n mermaid.initialize({\n startOnLoad: false,\n // Diagram text follows the surface it sits on rather than mermaid's own\n // font stack, and the dark base is the only preset close to the cockpit.\n fontFamily: 'inherit',\n theme: 'dark',\n // Strict is mermaid's default and its sanitiser: labels are escaped and\n // script-carrying markup is stripped before the SVG is handed back,\n // which is what makes rendering diagram text from a model safe.\n securityLevel: 'strict',\n });\n return mermaid;\n });\n return loading;\n}\n\n/**\n * The SVG for one diagram.\n *\n * Rejects on invalid syntax, which for a streaming message is the normal case\n * until the fence closes; the caller shows the source until it resolves.\n */\nexport async function renderMermaid(id: string, code: string): Promise<string> {\n const mermaid = await mermaidApi();\n const { svg } = await mermaid.render(id, code);\n return svg;\n}\n"],"mappings":"AAUA,IAAIA,EAGJ,eAAeC,GAAwD,
|
|
1
|
+
{"version":3,"file":"mermaidDiagram.cjs","names":["loading","mermaidApi","mermaid","renderMermaid","id","code","svg"],"sources":["../../../src/lib/mermaidDiagram.ts"],"sourcesContent":["/**\n * Mermaid, loaded only for a message that actually draws one.\n *\n * Mermaid is the largest thing this library can pull in, so nothing imports it\n * at module scope: the dynamic import below is its own chunk, fetched the\n * first time a `mermaid` fence renders and reused after that. The renderer\n * needs a document to measure text, so this module is browser-only by nature\n * and every caller is inside an effect.\n */\n\nlet loading: Promise<typeof import('mermaid').default> | undefined;\n\n/** Loads and configures mermaid once per page. */\nasync function mermaidApi(): Promise<typeof import('mermaid').default> {\n loading ??= import('mermaid').then(({ default: mermaid }) => {\n mermaid.initialize({\n startOnLoad: false,\n // Diagram text follows the surface it sits on rather than mermaid's own\n // font stack, and the dark base is the only preset close to the cockpit.\n fontFamily: 'inherit',\n theme: 'dark',\n // Strict is mermaid's default and its sanitiser: labels are escaped and\n // script-carrying markup is stripped before the SVG is handed back,\n // which is what makes rendering diagram text from a model safe.\n securityLevel: 'strict',\n // Without this, a failed render leaves mermaid's bomb error diagram\n // appended to <body>, outside the conversation. The caller already\n // falls back to the source on rejection, so just throw.\n suppressErrorRendering: true,\n });\n return mermaid;\n });\n return loading;\n}\n\n/**\n * The SVG for one diagram.\n *\n * Rejects on invalid syntax, which for a streaming message is the normal case\n * until the fence closes; the caller shows the source until it resolves.\n */\nexport async function renderMermaid(id: string, code: string): Promise<string> {\n const mermaid = await mermaidApi();\n const { svg } = await mermaid.render(id, code);\n return svg;\n}\n"],"mappings":"AAUA,IAAIA,EAGJ,eAAeC,GAAwD,CAmBrE,MAlBA,KAAY,OAAO,UAAU,CAAC,MAAM,CAAE,QAASC,MAC7CA,EAAQ,WAAW,CACjB,YAAa,GAGb,WAAY,UACZ,MAAO,OAIP,cAAe,SAIf,uBAAwB,EAC1B,CAAC,EACMA,EACR,EACMF,CACT,CAQA,eAAsBG,EAAc,EAAY,EAA+B,CAE7E,GAAM,CAAE,OAAQ,MAAM,MADAF,EAAW,EAAA,CACH,OAAOG,EAAIC,CAAI,EAC7C,OAAOC,CACT,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optionList.cjs","names":["handleOptionListKey","input","count","options","event","onCursorChange","cursor","option","onSelect","index","optionListHint","optionMarker"],"sources":["../../../src/lib/optionList.ts"],"sourcesContent":["import type { KeyboardEvent } from 'react';\n\n/** Digits are a shortcut, not the only way in: only the first nine can have one. */\nexport const MAX_DIGIT_SHORTCUT = 9;\n\n/**\n * The keyboard an option list answers to, handled on whichever element the\n * surrounding overlay focuses. Every key it claims is consumed, so a digit\n * that answers the agent never also reaches the rail's session shortcuts.\n */\nexport function handleOptionListKey(\n event: KeyboardEvent,\n input: {\n options: readonly string[];\n cursor: number;\n onCursorChange: (cursor: number) => void;\n onSelect: (option: string) => void;\n },\n): void {\n const { options, cursor, onCursorChange, onSelect } = input;\n const count = options.length;\n if (count === 0) return;\n\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n onCursorChange((cursor + (event.key === 'ArrowDown' ? 1 : -1) + count) % count);\n return;\n }\n if (event.key === 'Enter') {\n const option = options[cursor];\n if (option === undefined) return;\n event.preventDefault();\n event.stopPropagation();\n onSelect(option);\n return;\n }\n const index = Number.parseInt(event.key, 10) - 1;\n const option = Number.isInteger(index) && index < MAX_DIGIT_SHORTCUT ? options[index] : undefined;\n if (option === undefined) return;\n event.preventDefault();\n event.stopPropagation();\n onSelect(option);\n}\n\n/** What the footer should promise, given how many options there are. */\nexport function optionListHint(count: number): string {\n return count > MAX_DIGIT_SHORTCUT ? 'up/down move · enter select · 1-9 jump' : '1-9 select · enter confirm';\n}\n\n/** The digit a row answers to, or the bullet that says it has none. */\nexport function optionMarker(index: number): string {\n return index < MAX_DIGIT_SHORTCUT ? String(index + 1) : '·';\n}\n"],"mappings":"AAUA,SAAgBA,EACd,EACA,EAMM,CACN,GAAM,CAAE,UAAS,SAAQ,iBAAgB,YAAaC,EAChDC,EAAQC,EAAQ,OACtB,GAAID,IAAU,EAAG,OAEjB,GAAIE,EAAM,MAAQ,aAAeA,EAAM,MAAQ,UAAW,CACxDA,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBC,GAAgBC,GAAUF,EAAM,MAAQ,YAAc,EAAI,IAAMF,GAASA,CAAK,EAC9E,MACF,CACA,GAAIE,EAAM,MAAQ,QAAS,CACzB,IAAMG,EAASJ,EAAQG,GACvB,GAAIC,IAAW,IAAA,GAAW,OAC1BH,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBI,EAASD,CAAM,EACf,MACF,CACA,IAAME,EAAQ,OAAO,SAASL,EAAM,IAAK,EAAE,EAAI,EACzCG,EAAS,OAAO,UAAUE,CAAK,GAAKA,EAAA,EAA6BN,EAAQM,GAAS,IAAA,GACpFF,IAAW,IAAA,KACfH,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBI,EAASD,CAAM,EACjB,CAGA,SAAgBG,EAAe,EAAuB,CACpD,OAAOR,EAAA,EAA6B,yCAA2C,4BACjF,CAGA,SAAgBS,EAAa,EAAuB,CAClD,OAAOF,EAAA,EAA6B,OAAOA,EAAQ,CAAC,EAAI,GAC1D"}
|
|
1
|
+
{"version":3,"file":"optionList.cjs","names":["handleOptionListKey","input","count","options","event","onCursorChange","cursor","option","onSelect","index","optionListHint","optionMarker"],"sources":["../../../src/lib/optionList.ts"],"sourcesContent":["import type { KeyboardEvent } from 'react';\n\n/** Digits are a shortcut, not the only way in: only the first nine can have one. */\nexport const MAX_DIGIT_SHORTCUT = 9;\n\n/**\n * The keyboard an option list answers to, handled on whichever element the\n * surrounding overlay focuses. Every key it claims is consumed, so a digit\n * that answers the agent never also reaches the rail's session shortcuts.\n */\nexport function handleOptionListKey(\n event: KeyboardEvent,\n input: {\n options: readonly string[];\n cursor: number;\n onCursorChange: (cursor: number) => void;\n onSelect: (option: string) => void;\n },\n): void {\n const { options, cursor, onCursorChange, onSelect } = input;\n const count = options.length;\n if (count === 0) return;\n\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n onCursorChange((cursor + (event.key === 'ArrowDown' ? 1 : -1) + count) % count);\n return;\n }\n if (event.key === 'Enter') {\n const option = options[cursor];\n if (option === undefined) return;\n event.preventDefault();\n event.stopPropagation();\n onSelect(option);\n return;\n }\n const index = Number.parseInt(event.key, 10) - 1;\n const option = Number.isInteger(index) && index < MAX_DIGIT_SHORTCUT ? options[index] : undefined;\n if (option === undefined) return;\n event.preventDefault();\n event.stopPropagation();\n onSelect(option);\n}\n\n/** What the footer should promise, given how many options there are. */\nexport function optionListHint(count: number): string {\n return count > MAX_DIGIT_SHORTCUT ? 'up/down move · enter select · 1-9 jump' : '1-9 select · enter confirm';\n}\n\n/** The digit a row answers to, or the bullet that says it has none. */\nexport function optionMarker(index: number): string {\n return index < MAX_DIGIT_SHORTCUT ? String(index + 1) : '·';\n}\n"],"mappings":"AAUA,SAAgBA,EACd,EACA,EAMM,CACN,GAAM,CAAE,UAAS,SAAQ,iBAAgB,YAAaC,EAChDC,EAAQC,EAAQ,OACtB,GAAID,IAAU,EAAG,OAEjB,GAAIE,EAAM,MAAQ,aAAeA,EAAM,MAAQ,UAAW,CACxDA,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBC,GAAgBC,GAAUF,EAAM,MAAQ,YAAc,EAAI,IAAMF,GAASA,CAAK,EAC9E,MACF,CACA,GAAIE,EAAM,MAAQ,QAAS,CACzB,IAAMG,EAASJ,EAAQG,GACvB,GAAIC,IAAW,IAAA,GAAW,OAC1BH,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBI,EAASD,CAAM,EACf,MACF,CACA,IAAME,EAAQ,OAAO,SAASL,EAAM,IAAK,EAAE,EAAI,EACzCG,EAAS,OAAO,UAAUE,CAAK,GAAKA,EAAA,EAA6BN,EAAQM,GAAS,IAAA,GACpFF,IAAW,IAAA,KACfH,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBI,EAASD,CAAM,EACjB,CAGA,SAAgBG,EAAe,EAAuB,CACpD,OAAOR,EAAA,EAA6B,yCAA2C,4BACjF,CAGA,SAAgBS,EAAa,EAAuB,CAClD,OAAOF,EAAA,EAA6B,OAAOA,EAAQ,CAAC,EAAI,GAC1D,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pathGroups.cjs","names":["parentDir","cut","relPath","commonDir","leftParts","left","rightParts","right","shared","index","groupByDirectory","buckets","item","items","pathOf","key","bucket","groups","sorted","prefix","groupRowLabel"],"sources":["../../../src/lib/pathGroups.ts"],"sourcesContent":["/**\n * The two-level grouping a changed-file list uses: one header per top-level\n * segment, each naming the deepest directory its files share.\n *\n * Two levels rather than a full tree: paths here run five and six segments\n * deep, so a node per segment spends more rows on directories than on the files\n * someone came to find. The header carries the shared run of directories and\n * each row carries what is left, so a file stays one row and the part that\n * distinguishes it stays readable.\n */\n\n/** One header row and the items under it. */\nexport interface PathGroup<T> {\n /** The shared directory the header names, or empty for files at the root. */\n prefix: string;\n items: T[];\n}\n\n/** The directory part of a relative path, or empty for a file at the root. */\nfunction parentDir(relPath: string): string {\n const cut = relPath.lastIndexOf('/');\n return cut === -1 ? '' : relPath.slice(0, cut);\n}\n\n/** The longest directory two paths share, compared segment by segment rather than character by character. */\nfunction commonDir(left: string, right: string): string {\n const leftParts = left.split('/');\n const rightParts = right.split('/');\n const shared: string[] = [];\n for (let index = 0; index < Math.min(leftParts.length, rightParts.length); index += 1) {\n if (leftParts[index] !== rightParts[index]) break;\n shared.push(leftParts[index]);\n }\n return shared.join('/');\n}\n\n/** Groups by top-level segment, ordered by path so a header's files sit together under it. */\nexport function groupByDirectory<T>(items: readonly T[], pathOf: (item: T) => string): PathGroup<T>[] {\n const buckets = new Map<string, T[]>();\n for (const item of items) {\n const relPath = pathOf(item);\n const cut = relPath.indexOf('/');\n const key = cut === -1 ? '' : relPath.slice(0, cut);\n const bucket = buckets.get(key);\n if (bucket === undefined) buckets.set(key, [item]);\n else bucket.push(item);\n }\n const groups: PathGroup<T>[] = [];\n for (const [key, bucket] of buckets) {\n const sorted = [...bucket].sort((left, right) => pathOf(left).localeCompare(pathOf(right)));\n // Root files have no directory to name, so they keep an empty header and\n // render their own paths in full.\n const prefix = key === '' ? '' : sorted.map((item) => parentDir(pathOf(item))).reduce(commonDir);\n groups.push({ prefix, items: sorted });\n }\n return groups.sort((left, right) => left.prefix.localeCompare(right.prefix));\n}\n\n/** What one row shows once its group's header has already said the shared part. */\nexport function groupRowLabel(prefix: string, relPath: string): string {\n return prefix === '' ? relPath : relPath.slice(prefix.length + 1);\n}\n"],"mappings":"AAmBA,SAASA,EAAU,EAAyB,CAC1C,IAAMC,EAAMC,EAAQ,YAAY,GAAG,EACnC,OAAOD,IAAQ,GAAK,GAAKC,EAAQ,MAAM,EAAGD,CAAG,CAC/C,CAGA,SAASE,EAAU,EAAc,EAAuB,CACtD,IAAMC,EAAYC,EAAK,MAAM,GAAG,EAC1BC,EAAaC,EAAM,MAAM,GAAG,EAC5BC,EAAmB,CAAC,EAC1B,IAAK,IAAIC,EAAQ,EAAGA,EAAQ,KAAK,IAAIL,EAAU,OAAQE,EAAW,MAAM,GAClEF,EAAUK,KAAWH,EAAWG,GADqC,GAAS,EAElFD,EAAO,KAAKJ,EAAUK,EAAM,EAE9B,OAAOD,EAAO,KAAK,GAAG,CACxB,CAGA,SAAgBE,EAAoB,EAAqB,EAA6C,CACpG,IAAMC,kBAAU,IAAI,IACpB,IAAK,IAAMC,KAAQC,EAAO,CACxB,IAAMX,EAAUY,EAAOF,CAAI,EACrBX,EAAMC,EAAQ,QAAQ,GAAG,EACzBa,EAAMd,IAAQ,GAAK,GAAKC,EAAQ,MAAM,EAAGD,CAAG,EAC5Ce,EAASL,EAAQ,IAAII,CAAG,EAC1BC,IAAW,IAAA,GAAWL,EAAQ,IAAII,EAAK,CAACH,CAAI,CAAC,EAC5CI,EAAO,KAAKJ,CAAI,CACvB,CACA,IAAMK,EAAyB,CAAC,EAChC,IAAK,GAAM,CAACF,EAAKC,KAAWL,EAAS,CACnC,IAAMO,EAAS,CAAC,GAAGF,CAAM,CAAC,CAAC,MAAM,EAAM,IAAUF,EAAOT,CAAI,CAAC,CAAC,cAAcS,EAAOP,CAAK,CAAC,CAAC,EAGpFY,EAASJ,IAAQ,GAAK,GAAKG,EAAO,IAAK,GAASlB,EAAUc,EAAOF,CAAI,CAAC,CAAC,CAAC,CAAC,OAAOT,CAAS,EAC/Fc,EAAO,KAAK,CAAE,SAAQ,MAAOC,CAAO,CAAC,CACvC,CACA,OAAOD,EAAO,MAAM,EAAM,IAAUZ,EAAK,OAAO,cAAcE,EAAM,MAAM,CAAC,CAC7E,CAGA,SAAgBa,EAAc,EAAgB,EAAyB,CACrE,OAAOD,IAAW,GAAKjB,EAAUA,EAAQ,MAAMiB,EAAO,OAAS,CAAC,CAClE"}
|
|
1
|
+
{"version":3,"file":"pathGroups.cjs","names":["parentDir","cut","relPath","commonDir","leftParts","left","rightParts","right","shared","index","groupByDirectory","buckets","item","items","pathOf","key","bucket","groups","sorted","prefix","groupRowLabel"],"sources":["../../../src/lib/pathGroups.ts"],"sourcesContent":["/**\n * The two-level grouping a changed-file list uses: one header per top-level\n * segment, each naming the deepest directory its files share.\n *\n * Two levels rather than a full tree: paths here run five and six segments\n * deep, so a node per segment spends more rows on directories than on the files\n * someone came to find. The header carries the shared run of directories and\n * each row carries what is left, so a file stays one row and the part that\n * distinguishes it stays readable.\n */\n\n/** One header row and the items under it. */\nexport interface PathGroup<T> {\n /** The shared directory the header names, or empty for files at the root. */\n prefix: string;\n items: T[];\n}\n\n/** The directory part of a relative path, or empty for a file at the root. */\nfunction parentDir(relPath: string): string {\n const cut = relPath.lastIndexOf('/');\n return cut === -1 ? '' : relPath.slice(0, cut);\n}\n\n/** The longest directory two paths share, compared segment by segment rather than character by character. */\nfunction commonDir(left: string, right: string): string {\n const leftParts = left.split('/');\n const rightParts = right.split('/');\n const shared: string[] = [];\n for (let index = 0; index < Math.min(leftParts.length, rightParts.length); index += 1) {\n if (leftParts[index] !== rightParts[index]) break;\n shared.push(leftParts[index]);\n }\n return shared.join('/');\n}\n\n/** Groups by top-level segment, ordered by path so a header's files sit together under it. */\nexport function groupByDirectory<T>(items: readonly T[], pathOf: (item: T) => string): PathGroup<T>[] {\n const buckets = new Map<string, T[]>();\n for (const item of items) {\n const relPath = pathOf(item);\n const cut = relPath.indexOf('/');\n const key = cut === -1 ? '' : relPath.slice(0, cut);\n const bucket = buckets.get(key);\n if (bucket === undefined) buckets.set(key, [item]);\n else bucket.push(item);\n }\n const groups: PathGroup<T>[] = [];\n for (const [key, bucket] of buckets) {\n const sorted = [...bucket].sort((left, right) => pathOf(left).localeCompare(pathOf(right)));\n // Root files have no directory to name, so they keep an empty header and\n // render their own paths in full.\n const prefix = key === '' ? '' : sorted.map((item) => parentDir(pathOf(item))).reduce(commonDir);\n groups.push({ prefix, items: sorted });\n }\n return groups.sort((left, right) => left.prefix.localeCompare(right.prefix));\n}\n\n/** What one row shows once its group's header has already said the shared part. */\nexport function groupRowLabel(prefix: string, relPath: string): string {\n return prefix === '' ? relPath : relPath.slice(prefix.length + 1);\n}\n"],"mappings":"AAmBA,SAASA,EAAU,EAAyB,CAC1C,IAAMC,EAAMC,EAAQ,YAAY,GAAG,EACnC,OAAOD,IAAQ,GAAK,GAAKC,EAAQ,MAAM,EAAGD,CAAG,CAC/C,CAGA,SAASE,EAAU,EAAc,EAAuB,CACtD,IAAMC,EAAYC,EAAK,MAAM,GAAG,EAC1BC,EAAaC,EAAM,MAAM,GAAG,EAC5BC,EAAmB,CAAC,EAC1B,IAAK,IAAIC,EAAQ,EAAGA,EAAQ,KAAK,IAAIL,EAAU,OAAQE,EAAW,MAAM,GAClEF,EAAUK,KAAWH,EAAWG,GADqC,GAAS,EAElFD,EAAO,KAAKJ,EAAUK,EAAM,EAE9B,OAAOD,EAAO,KAAK,GAAG,CACxB,CAGA,SAAgBE,EAAoB,EAAqB,EAA6C,CACpG,IAAMC,kBAAU,IAAI,IACpB,IAAK,IAAMC,KAAQC,EAAO,CACxB,IAAMX,EAAUY,EAAOF,CAAI,EACrBX,EAAMC,EAAQ,QAAQ,GAAG,EACzBa,EAAMd,IAAQ,GAAK,GAAKC,EAAQ,MAAM,EAAGD,CAAG,EAC5Ce,EAASL,EAAQ,IAAII,CAAG,EAC1BC,IAAW,IAAA,GAAWL,EAAQ,IAAII,EAAK,CAACH,CAAI,CAAC,EAC5CI,EAAO,KAAKJ,CAAI,CACvB,CACA,IAAMK,EAAyB,CAAC,EAChC,IAAK,GAAM,CAACF,EAAKC,KAAWL,EAAS,CACnC,IAAMO,EAAS,CAAC,GAAGF,CAAM,CAAC,CAAC,MAAM,EAAM,IAAUF,EAAOT,CAAI,CAAC,CAAC,cAAcS,EAAOP,CAAK,CAAC,CAAC,EAGpFY,EAASJ,IAAQ,GAAK,GAAKG,EAAO,IAAK,GAASlB,EAAUc,EAAOF,CAAI,CAAC,CAAC,CAAC,CAAC,OAAOT,CAAS,EAC/Fc,EAAO,KAAK,CAAE,SAAQ,MAAOC,CAAO,CAAC,CACvC,CACA,OAAOD,EAAO,MAAM,EAAM,IAAUZ,EAAK,OAAO,cAAcE,EAAM,MAAM,CAAC,CAC7E,CAGA,SAAgBa,EAAc,EAAgB,EAAyB,CACrE,OAAOD,IAAW,GAAKjB,EAAUA,EAAQ,MAAMiB,EAAO,OAAS,CAAC,CAClE,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picker.cjs","names":["filterPickerItems","needle","filter","items","item","initialPickerCursor","value","toggleDraft","next","draft","draftChanged","appliedValues","pickerHint","multiple","filterable","pickerKeyAction","state","key","count","cursor","index"],"sources":["../../../src/lib/picker.ts"],"sourcesContent":["import { MAX_DIGIT_SHORTCUT } from './optionList';\n\n/** What a picker row needs for matching and ordering; the view adds its own presentation. */\nexport interface PickerChoice {\n value: string;\n title: string;\n subtitle?: string;\n disabledReason?: string;\n}\n\n/** What a key does to a picker, decided apart from the DOM so it can be tested. */\nexport type PickerKeyAction = { kind: 'move'; cursor: number } | { kind: 'pick'; index: number };\n\n/** Rows whose title, subtitle or value contain the filter, case-insensitively. */\nexport function filterPickerItems<T extends PickerChoice>(items: readonly T[], filter: string): readonly T[] {\n const needle = filter.trim().toLowerCase();\n if (needle === '') return items;\n return items.filter((item) => `${item.title} ${item.subtitle ?? ''} ${item.value}`.toLowerCase().includes(needle));\n}\n\n/** Open on what is in effect, so Enter on a single choice keeps it. */\nexport function initialPickerCursor(items: readonly PickerChoice[], value: readonly string[]): number {\n return Math.max(\n 0,\n items.findIndex((item) => value.includes(item.value)),\n );\n}\n\n/** The draft with one value flipped. */\nexport function toggleDraft(draft: ReadonlySet<string>, value: string): Set<string> {\n const next = new Set(draft);\n if (!next.delete(value)) next.add(value);\n return next;\n}\n\n/** Whether the draft differs from what is in effect, which is what makes Apply worth pressing. */\nexport function draftChanged(draft: ReadonlySet<string>, value: readonly string[]): boolean {\n return draft.size !== value.length || value.some((item) => !draft.has(item));\n}\n\n/** The drafted values in the order they were offered, not the order they were clicked. */\nexport function appliedValues(items: readonly PickerChoice[], draft: ReadonlySet<string>): string[] {\n return items.filter((item) => draft.has(item.value)).map((item) => item.value);\n}\n\n/** The keys the footer promises, given the mode and whether a filter takes typing. */\nexport function pickerHint(multiple: boolean, filterable: boolean): string {\n if (multiple) return filterable ? 'enter toggles · tab to Apply' : '1-9, space or enter toggles · tab to Apply';\n return filterable ? 'type to filter · enter picks' : '1-9 or enter picks';\n}\n\n/**\n * The action a key asks for, or null to leave it alone. Digits jump to a row\n * only without a filter, which would otherwise take them as typing; space\n * toggles a multiple choice for the same reason.\n */\nexport function pickerKeyAction(\n key: string,\n state: { count: number; cursor: number; multiple: boolean; filterable: boolean },\n): PickerKeyAction | null {\n const { count, cursor, multiple, filterable } = state;\n if (key === 'ArrowDown' || key === 'ArrowUp') {\n if (count === 0) return null;\n return { kind: 'move', cursor: (cursor + (key === 'ArrowDown' ? 1 : -1) + count) % count };\n }\n if (key === 'Enter') return count === 0 ? null : { kind: 'pick', index: cursor };\n if (filterable) return null;\n if (key === ' ' && multiple) return count === 0 ? null : { kind: 'pick', index: cursor };\n const index = Number.parseInt(key, 10) - 1;\n if (!Number.isInteger(index) || index < 0 || index >= Math.min(count, MAX_DIGIT_SHORTCUT)) return null;\n return { kind: 'pick', index };\n}\n"],"mappings":"4BAcA,SAAgBA,EAA0C,EAAqB,EAA8B,CAC3G,IAAMC,EAASC,EAAO,KAAK,CAAC,CAAC,YAAY,EAEzC,OADID,IAAW,GAAWE,EACnBA,EAAM,OAAQ,GAAS,GAAGC,EAAK,MAAM,GAAGA,EAAK,UAAY,GAAG,GAAGA,EAAK,QAAQ,YAAY,CAAC,CAAC,SAASH,CAAM,CAAC,CACnH,CAGA,SAAgBI,EAAoB,EAAgC,EAAkC,CACpG,OAAO,KAAK,IACV,EACAF,EAAM,UAAW,GAASG,EAAM,SAASF,EAAK,KAAK,CAAC,CACtD,CACF,CAGA,SAAgBG,EAAY,EAA4B,EAA4B,CAClF,IAAMC,EAAO,IAAI,IAAIC,CAAK,EAE1B,OADKD,EAAK,OAAOF,CAAK,GAAGE,EAAK,IAAIF,CAAK,EAChCE,CACT,CAGA,SAAgBE,EAAa,EAA4B,EAAmC,CAC1F,OAAOD,EAAM,OAASH,EAAM,QAAUA,EAAM,KAAM,GAAS,CAACG,EAAM,IAAIL,CAAI,CAAC,CAC7E,CAGA,SAAgBO,EAAc,EAAgC,EAAsC,CAClG,OAAOR,EAAM,OAAQ,GAASM,EAAM,IAAIL,EAAK,KAAK,CAAC,CAAC,CAAC,IAAK,GAASA,EAAK,KAAK,CAC/E,CAGA,SAAgBQ,EAAW,EAAmB,EAA6B,CAEzE,OADIC,EAAiBC,EAAa,+BAAiC,6CAC5DA,EAAa,+BAAiC,oBACvD,CAOA,SAAgBC,EACd,EACA,EACwB,CACxB,GAAM,CAAE,QAAO,SAAQ,WAAU,cAAeC,EAChD,GAAIC,IAAQ,aAAeA,IAAQ,UAEjC,OADIC,IAAU,EAAU,KACjB,CAAE,KAAM,OAAQ,QAASC,GAAUF,IAAQ,YAAc,EAAI,IAAMC,GAASA,CAAM,EAE3F,GAAID,IAAQ,QAAS,OAAOC,IAAU,EAAI,KAAO,CAAE,KAAM,OAAQ,MAAOC,CAAO,EAC/E,GAAIL,EAAY,OAAO,KACvB,GAAIG,IAAQ,KAAOJ,EAAU,OAAOK,IAAU,EAAI,KAAO,CAAE,KAAM,OAAQ,MAAOC,CAAO,EACvF,IAAMC,EAAQ,OAAO,SAASH,EAAK,EAAE,EAAI,EAEzC,MADI,CAAC,OAAO,UAAUG,CAAK,GAAKA,EAAQ,GAAKA,GAAS,KAAK,IAAIF,EAAA,CAAyB,EAAU,KAC3F,CAAE,KAAM,OAAQ,OAAM,CAC/B"}
|
|
1
|
+
{"version":3,"file":"picker.cjs","names":["filterPickerItems","needle","filter","items","item","initialPickerCursor","value","toggleDraft","next","draft","draftChanged","appliedValues","pickerHint","multiple","filterable","pickerKeyAction","state","key","count","cursor","index"],"sources":["../../../src/lib/picker.ts"],"sourcesContent":["import { MAX_DIGIT_SHORTCUT } from './optionList';\n\n/** What a picker row needs for matching and ordering; the view adds its own presentation. */\nexport interface PickerChoice {\n value: string;\n title: string;\n subtitle?: string;\n disabledReason?: string;\n}\n\n/** What a key does to a picker, decided apart from the DOM so it can be tested. */\nexport type PickerKeyAction = { kind: 'move'; cursor: number } | { kind: 'pick'; index: number };\n\n/** Rows whose title, subtitle or value contain the filter, case-insensitively. */\nexport function filterPickerItems<T extends PickerChoice>(items: readonly T[], filter: string): readonly T[] {\n const needle = filter.trim().toLowerCase();\n if (needle === '') return items;\n return items.filter((item) => `${item.title} ${item.subtitle ?? ''} ${item.value}`.toLowerCase().includes(needle));\n}\n\n/** Open on what is in effect, so Enter on a single choice keeps it. */\nexport function initialPickerCursor(items: readonly PickerChoice[], value: readonly string[]): number {\n return Math.max(\n 0,\n items.findIndex((item) => value.includes(item.value)),\n );\n}\n\n/** The draft with one value flipped. */\nexport function toggleDraft(draft: ReadonlySet<string>, value: string): Set<string> {\n const next = new Set(draft);\n if (!next.delete(value)) next.add(value);\n return next;\n}\n\n/** Whether the draft differs from what is in effect, which is what makes Apply worth pressing. */\nexport function draftChanged(draft: ReadonlySet<string>, value: readonly string[]): boolean {\n return draft.size !== value.length || value.some((item) => !draft.has(item));\n}\n\n/** The drafted values in the order they were offered, not the order they were clicked. */\nexport function appliedValues(items: readonly PickerChoice[], draft: ReadonlySet<string>): string[] {\n return items.filter((item) => draft.has(item.value)).map((item) => item.value);\n}\n\n/** The keys the footer promises, given the mode and whether a filter takes typing. */\nexport function pickerHint(multiple: boolean, filterable: boolean): string {\n if (multiple) return filterable ? 'enter toggles · tab to Apply' : '1-9, space or enter toggles · tab to Apply';\n return filterable ? 'type to filter · enter picks' : '1-9 or enter picks';\n}\n\n/**\n * The action a key asks for, or null to leave it alone. Digits jump to a row\n * only without a filter, which would otherwise take them as typing; space\n * toggles a multiple choice for the same reason.\n */\nexport function pickerKeyAction(\n key: string,\n state: { count: number; cursor: number; multiple: boolean; filterable: boolean },\n): PickerKeyAction | null {\n const { count, cursor, multiple, filterable } = state;\n if (key === 'ArrowDown' || key === 'ArrowUp') {\n if (count === 0) return null;\n return { kind: 'move', cursor: (cursor + (key === 'ArrowDown' ? 1 : -1) + count) % count };\n }\n if (key === 'Enter') return count === 0 ? null : { kind: 'pick', index: cursor };\n if (filterable) return null;\n if (key === ' ' && multiple) return count === 0 ? null : { kind: 'pick', index: cursor };\n const index = Number.parseInt(key, 10) - 1;\n if (!Number.isInteger(index) || index < 0 || index >= Math.min(count, MAX_DIGIT_SHORTCUT)) return null;\n return { kind: 'pick', index };\n}\n"],"mappings":"A,4BAcA,SAAgBA,EAA0C,EAAqB,EAA8B,CAC3G,IAAMC,EAASC,EAAO,KAAK,CAAC,CAAC,YAAY,EAEzC,OADID,IAAW,GAAWE,EACnBA,EAAM,OAAQ,GAAS,GAAGC,EAAK,MAAM,GAAGA,EAAK,UAAY,GAAG,GAAGA,EAAK,QAAQ,YAAY,CAAC,CAAC,SAASH,CAAM,CAAC,CACnH,CAGA,SAAgBI,EAAoB,EAAgC,EAAkC,CACpG,OAAO,KAAK,IACV,EACAF,EAAM,UAAW,GAASG,EAAM,SAASF,EAAK,KAAK,CAAC,CACtD,CACF,CAGA,SAAgBG,EAAY,EAA4B,EAA4B,CAClF,IAAMC,EAAO,IAAI,IAAIC,CAAK,EAE1B,OADKD,EAAK,OAAOF,CAAK,GAAGE,EAAK,IAAIF,CAAK,EAChCE,CACT,CAGA,SAAgBE,EAAa,EAA4B,EAAmC,CAC1F,OAAOD,EAAM,OAASH,EAAM,QAAUA,EAAM,KAAM,GAAS,CAACG,EAAM,IAAIL,CAAI,CAAC,CAC7E,CAGA,SAAgBO,EAAc,EAAgC,EAAsC,CAClG,OAAOR,EAAM,OAAQ,GAASM,EAAM,IAAIL,EAAK,KAAK,CAAC,CAAC,CAAC,IAAK,GAASA,EAAK,KAAK,CAC/E,CAGA,SAAgBQ,EAAW,EAAmB,EAA6B,CAEzE,OADIC,EAAiBC,EAAa,+BAAiC,6CAC5DA,EAAa,+BAAiC,oBACvD,CAOA,SAAgBC,EACd,EACA,EACwB,CACxB,GAAM,CAAE,QAAO,SAAQ,WAAU,cAAeC,EAChD,GAAIC,IAAQ,aAAeA,IAAQ,UAEjC,OADIC,IAAU,EAAU,KACjB,CAAE,KAAM,OAAQ,QAASC,GAAUF,IAAQ,YAAc,EAAI,IAAMC,GAASA,CAAM,EAE3F,GAAID,IAAQ,QAAS,OAAOC,IAAU,EAAI,KAAO,CAAE,KAAM,OAAQ,MAAOC,CAAO,EAC/E,GAAIL,EAAY,OAAO,KACvB,GAAIG,IAAQ,KAAOJ,EAAU,OAAOK,IAAU,EAAI,KAAO,CAAE,KAAM,OAAQ,MAAOC,CAAO,EACvF,IAAMC,EAAQ,OAAO,SAASH,EAAK,EAAE,EAAI,EAEzC,MADI,CAAC,OAAO,UAAUG,CAAK,GAAKA,EAAQ,GAAKA,GAAS,KAAK,IAAIF,EAAA,CAAyB,EAAU,KAC3F,CAAE,KAAM,OAAQ,OAAM,CAC/B,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=`default`,t=`none`,n=`profile:`,r=`Workspace default`,i=`No profile`;function a(r){return r===void 0?e:r===null?t:`${n}${r}`}function o(e){if(e===`none`)return null;if(e.startsWith(n))return e.slice(8)}function s(e){return e.identity?.name||e.name}function c(e){return[e.identity?.role,e.identity?.contact].filter(Boolean).join(` · `)||(s(e)===e.name?void 0:e.name)}function l(n){return[{value:e,title:r,subtitle:`Use what this workspace sets, if anything`},{value:t,title:i,subtitle:`Start without a profile`},...n.map(e=>{let t=c(e);return{value:a(e.name),title:s(e),...t===void 0?{}:{subtitle:t}}})]}function u(e,t){if(e===void 0)return r;if(e===null)return i;let n=t.find(t=>t.name===e);return n===void 0?e:s(n)}const d=/^data:image\/(?:png|jpeg|gif|webp);base64,[A-Za-z0-9+/]+={0,2}$/;function f(e){return typeof e==`string`&&e.length<=262144&&d.test(e)?e:void 0}function p(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function m(e){if(!p(e)||typeof e.name!=`string`||e.name===``||typeof e.sourceId!=`string`||e.sourceId===``)return;let t=p(e.identity)?e.identity:void 0,n={};for(let e of[`name`,`icon`,`role`,`contact`]){let r=t?.[e];if(e===`icon`){let e=f(r);e&&(n.icon=e)}else typeof r==`string`&&r!==``&&(n[e]=r)}return{name:e.name,sourceId:e.sourceId,...Object.keys(n).length===0?{}:{identity:n}}}function h(e){if(!p(e)||!Array.isArray(e.profiles)||e.readiness!==`ready`&&e.readiness!==`unavailable`)return;let t=/* @__PURE__ */ new Set,n=[];for(let r of e.profiles){let e=m(r);e===void 0||t.has(e.name)||(t.add(e.name),n.push(e))}return{profiles:n,readiness:e.readiness}}const g={status:`unavailable`,profiles:[]};async function _(e,t){let n;try{n=await e(t)}catch{n=void 0}if(t.aborted)return;let r=h(n);return r===void 0?g:{status:r.readiness,profiles:r.profiles}}exports.DEFAULT_PROFILE_LABEL=r,exports.DEFAULT_PROFILE_VALUE=e,exports.NO_PROFILE_LABEL=i,exports.NO_PROFILE_VALUE=t,exports.inlineProfileIcon=f,exports.loadProfileCatalog=_,exports.parseProfileCatalog=h,exports.profileChoiceLabel=u,exports.profileChoiceOf=o,exports.profilePickerItems=l,exports.profileValueOf=a;
|
|
2
|
+
//# sourceMappingURL=profilePicker.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profilePicker.cjs","names":["DEFAULT_PROFILE_VALUE","NO_PROFILE_VALUE","PROFILE_PREFIX","DEFAULT_PROFILE_LABEL","NO_PROFILE_LABEL","profileValueOf","choice","profileChoiceOf","value","titleOf","profile","subtitleOf","profilePickerItems","profiles","subtitle","profileChoiceLabel","candidate","INLINE_ICON","inlineProfileIcon","isRecord","profileOf","identity","presented","key","field","icon","parseProfileCatalog","seen","entry","UNAVAILABLE","loadProfileCatalog","answer","load","signal","catalog"],"sources":["../../../src/lib/profilePicker.ts"],"sourcesContent":["import type { PickerChoice } from './picker';\n\n/**\n * The launch-time profile choice a person makes before a session exists.\n *\n * `undefined` is \"not chosen\": the workspace default may apply. `null` is an\n * explicit \"No profile\", which no default may override. A string names a profile.\n */\nexport type ProfileChoice = string | null | undefined;\n\n/** What the picker may know about a profile. Never its environment, persona, bindings or secrets. */\nexport interface ProfilePickerProfile {\n readonly name: string;\n /** Presentation only: `role` is what the persona does, `contact` a display-only address its source supplies. */\n readonly identity?: {\n readonly name?: string;\n readonly icon?: string;\n readonly role?: string;\n readonly contact?: string;\n };\n /** `files` for a profile file, otherwise the id of the plugin that contributed it. */\n readonly sourceId: string;\n}\n\nexport interface ProfilePickerCatalog {\n readonly profiles: readonly ProfilePickerProfile[];\n /** `unavailable`: a source did not become ready in time or failed. `profiles` lists what loaded. */\n readonly readiness: 'ready' | 'unavailable';\n}\n\nexport type ProfilePickerStatus = 'loading' | ProfilePickerCatalog['readiness'];\n\nexport interface ProfilePickerState {\n readonly status: Exclude<ProfilePickerStatus, 'loading'>;\n readonly profiles: readonly ProfilePickerProfile[];\n}\n\n/** Row values carry a prefix, so a profile named \"none\" or \"default\" cannot pass for a choice. */\nexport const DEFAULT_PROFILE_VALUE = 'default';\nexport const NO_PROFILE_VALUE = 'none';\nconst PROFILE_PREFIX = 'profile:';\n\nexport const DEFAULT_PROFILE_LABEL = 'Workspace default';\nexport const NO_PROFILE_LABEL = 'No profile';\n\nexport function profileValueOf(choice: ProfileChoice): string {\n if (choice === undefined) return DEFAULT_PROFILE_VALUE;\n if (choice === null) return NO_PROFILE_VALUE;\n return `${PROFILE_PREFIX}${choice}`;\n}\n\nexport function profileChoiceOf(value: string): ProfileChoice {\n if (value === NO_PROFILE_VALUE) return null;\n if (value.startsWith(PROFILE_PREFIX)) return value.slice(PROFILE_PREFIX.length);\n return undefined;\n}\n\nfunction titleOf(profile: ProfilePickerProfile): string {\n return profile.identity?.name || profile.name;\n}\n\n/** Role and contact under the name, otherwise the profile name when the title hides it. */\nfunction subtitleOf(profile: ProfilePickerProfile): string | undefined {\n const presented = [profile.identity?.role, profile.identity?.contact].filter(Boolean).join(' · ');\n if (presented) return presented;\n return titleOf(profile) === profile.name ? undefined : profile.name;\n}\n\n/** The workspace default and No profile first, then every profile in the order given. Nothing is preselected. */\nexport function profilePickerItems(profiles: readonly ProfilePickerProfile[]): PickerChoice[] {\n return [\n {\n value: DEFAULT_PROFILE_VALUE,\n title: DEFAULT_PROFILE_LABEL,\n subtitle: 'Use what this workspace sets, if anything',\n },\n { value: NO_PROFILE_VALUE, title: NO_PROFILE_LABEL, subtitle: 'Start without a profile' },\n ...profiles.map((profile) => {\n const subtitle = subtitleOf(profile);\n return {\n value: profileValueOf(profile.name),\n title: titleOf(profile),\n ...(subtitle === undefined ? {} : { subtitle }),\n };\n }),\n ];\n}\n\nexport function profileChoiceLabel(choice: ProfileChoice, profiles: readonly ProfilePickerProfile[]): string {\n if (choice === undefined) return DEFAULT_PROFILE_LABEL;\n if (choice === null) return NO_PROFILE_LABEL;\n const profile = profiles.find((candidate) => candidate.name === choice);\n return profile === undefined ? choice : titleOf(profile);\n}\n\nconst INLINE_ICON = /^data:image\\/(?:png|jpeg|gif|webp);base64,[A-Za-z0-9+/]+={0,2}$/;\n/** po-core's `PROFILE_ICON_MAX_DATA_URL_LENGTH`. */\nconst MAX_INLINE_ICON_LENGTH = 262_144;\n\n/**\n * A profile avatar the page may draw: an inline PNG, JPEG, GIF or WebP `data:` URL within po-core's\n * bound, so rendering never contacts a host and never runs an SVG. Anything else is undefined.\n */\nexport function inlineProfileIcon(value: unknown): string | undefined {\n return typeof value === 'string' && value.length <= MAX_INLINE_ICON_LENGTH && INLINE_ICON.test(value)\n ? value\n : undefined;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction profileOf(value: unknown): ProfilePickerProfile | undefined {\n if (!isRecord(value) || typeof value.name !== 'string' || value.name === '') return undefined;\n if (typeof value.sourceId !== 'string' || value.sourceId === '') return undefined;\n const identity = isRecord(value.identity) ? value.identity : undefined;\n const presented: Record<string, string> = {};\n for (const key of ['name', 'icon', 'role', 'contact'] as const) {\n const field = identity?.[key];\n if (key === 'icon') {\n const icon = inlineProfileIcon(field);\n if (icon) presented.icon = icon;\n } else if (typeof field === 'string' && field !== '') presented[key] = field;\n }\n return {\n name: value.name,\n sourceId: value.sourceId,\n ...(Object.keys(presented).length === 0 ? {} : { identity: presented }),\n };\n}\n\n/**\n * A server answer reduced to the fields the picker may show, or undefined when it is not a catalog.\n * Any other field is dropped here, so nothing sensitive a server mistakenly adds can reach the page.\n */\nexport function parseProfileCatalog(value: unknown): ProfilePickerCatalog | undefined {\n if (!isRecord(value) || !Array.isArray(value.profiles)) return undefined;\n if (value.readiness !== 'ready' && value.readiness !== 'unavailable') return undefined;\n const seen = new Set<string>();\n const profiles: ProfilePickerProfile[] = [];\n for (const entry of value.profiles) {\n const profile = profileOf(entry);\n if (profile === undefined || seen.has(profile.name)) continue;\n seen.add(profile.name);\n profiles.push(profile);\n }\n return { profiles, readiness: value.readiness };\n}\n\nconst UNAVAILABLE: ProfilePickerState = { status: 'unavailable', profiles: [] };\n\n/**\n * Runs one catalog request. A failed or malformed answer is \"unavailable\" with nothing listed, so a\n * session can still start without a profile. Undefined means the caller gave up on this request.\n */\nexport async function loadProfileCatalog(\n load: (signal: AbortSignal) => Promise<unknown>,\n signal: AbortSignal,\n): Promise<ProfilePickerState | undefined> {\n let answer: unknown;\n try {\n answer = await load(signal);\n } catch {\n answer = undefined;\n }\n if (signal.aborted) return undefined;\n const catalog = parseProfileCatalog(answer);\n return catalog === undefined ? UNAVAILABLE : { status: catalog.readiness, profiles: catalog.profiles };\n}\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.cjs","names":["diffGutterWidth","widest","hunk","hunks","row","diffRangeOf","numbered","rows","kept","side","lines","trimSnippet","snippet","text","maxLines","maxChars","reviewCommentAnchor","comment","single","defaultReviewHeading","count","buildReviewPrompt","comments","body","quoted","line","heading"],"sources":["../../../src/lib/review.ts"],"sourcesContent":["import type { DiffHunk, DiffMarker, DiffSide, ReviewComment } from '../types/diff';\n\n/**\n * Pure review logic shared by every surface that comments on a diff: sizing a\n * gutter, deciding which side a selection is on, naming an anchor, and folding\n * a set of notes into one message.\n */\n\n/** The widest line number in a diff, in characters, which sizes the gutter. */\nexport function diffGutterWidth(hunks: readonly DiffHunk[]): number {\n let widest = 1;\n for (const hunk of hunks) {\n for (const row of hunk.rows) widest = Math.max(widest, String(row.line).length);\n }\n return widest;\n}\n\n/**\n * The line range a set of touched rows covers, and the side it is on.\n *\n * Any context or added row puts the selection on the new side, and then the\n * removed rows in it are ignored: their numbers belong to the other file and\n * would stretch the range over lines that have nothing to do with it. Only a\n * selection made entirely of removed rows lands on the old side.\n */\nexport function diffRangeOf(\n rows: readonly { marker: DiffMarker; line: number }[],\n): { side: DiffSide; startLine: number; endLine: number } | undefined {\n const numbered = rows.filter((row) => Number.isFinite(row.line) && row.line > 0);\n const kept = numbered.filter((row) => row.marker !== '-');\n const side: DiffSide = kept.length > 0 ? 'new' : 'old';\n const lines = (kept.length > 0 ? kept : numbered).map((row) => row.line);\n if (lines.length === 0) return undefined;\n return { side, startLine: Math.min(...lines), endLine: Math.max(...lines) };\n}\n\n/** Trims a quoted snippet to something a prompt can carry without drowning it. */\nexport function trimSnippet(snippet: string, maxLines = 20, maxChars = 2000): string {\n const lines = snippet.split('\\n');\n const clipped = lines.length > maxLines ? [...lines.slice(0, maxLines), '…'] : lines;\n const text = clipped.join('\\n');\n return text.length > maxChars ? `${text.slice(0, maxChars)}…` : text;\n}\n\n/** How a comment names the place it is about. New-side anchors keep the `path:line` form. */\nexport function reviewCommentAnchor(comment: ReviewComment): string {\n if (comment.startLine === undefined) return comment.relPath;\n const single = comment.endLine === undefined || comment.endLine === comment.startLine;\n if (comment.side === 'old') {\n return single\n ? `${comment.relPath} (removed line ${comment.startLine})`\n : `${comment.relPath} (removed lines ${comment.startLine}-${comment.endLine})`;\n }\n return single\n ? `${comment.relPath}:${comment.startLine}`\n : `${comment.relPath}:${comment.startLine}-${comment.endLine}`;\n}\n\n/** The opening line of a review when the caller names no context of its own. */\nexport function defaultReviewHeading(count: number): string {\n return count === 1\n ? 'I left one review comment on a file you changed. Please address it.'\n : `I left ${count} review comments on files you changed. Please address them.`;\n}\n\n/**\n * The one message a review sends.\n *\n * Every note goes in a single message rather than one each: N notes then cost\n * one turn, and the agent sees the whole review before it changes anything.\n */\nexport function buildReviewPrompt(comments: readonly ReviewComment[], heading?: string): string {\n if (comments.length === 0) return '';\n const body = comments\n .map((comment) => {\n const quoted = trimSnippet(comment.snippet)\n .split('\\n')\n .map((line) => `> ${line}`)\n .join('\\n');\n return `### ${reviewCommentAnchor(comment)}\\n\\n${quoted}\\n\\n${comment.body.trim()}`;\n })\n .join('\\n\\n');\n return `${heading ?? defaultReviewHeading(comments.length)}\\n\\n${body}`;\n}\n"],"mappings":"AASA,SAAgBA,EAAgB,EAAoC,CAClE,IAAIC,EAAS,EACb,IAAK,IAAMC,KAAQC,EACjB,IAAK,IAAMC,KAAOF,EAAK,KAAM,EAAS,KAAK,IAAID,EAAQ,OAAOG,EAAI,IAAI,CAAC,CAAC,MAAM,EAEhF,OAAOH,CACT,CAUA,SAAgBI,EACd,EACoE,CACpE,IAAMC,EAAWC,EAAK,OAAQ,GAAQ,OAAO,SAASH,EAAI,IAAI,GAAKA,EAAI,KAAO,CAAC,EACzEI,EAAOF,EAAS,OAAQ,GAAQF,EAAI,SAAW,GAAG,EAClDK,EAAiBD,EAAK,OAAS,EAAI,MAAQ,MAC3CE,GAASF,EAAK,OAAS,EAAIA,EAAOF,EAAA,CAAU,IAAK,GAAQF,EAAI,IAAI,EACvE,GAAIM,EAAM,SAAW,EACrB,MAAO,CAAE,OAAM,UAAW,KAAK,IAAI,GAAGA,CAAK,EAAG,QAAS,KAAK,IAAI,GAAGA,CAAK,CAAE,CAC5E,CAGA,SAAgBC,EAAY,EAAiB,EAAW,GAAI,EAAW,IAAc,CACnF,IAAMD,EAAQE,EAAQ,MAAM;CAAI,EAE1BC,GADUH,EAAM,OAASI,EAAW,CAAC,GAAGJ,EAAM,MAAM,EAAGI,CAAQ,EAAG,GAAG,EAAIJ,EAAA,CAC1D,KAAK;CAAI,EAC9B,OAAOG,EAAK,OAASE,EAAW,GAAGF,EAAK,MAAM,EAAGE,CAAQ,EAAE,GAAKF,CAClE,CAGA,SAAgBG,EAAoB,EAAgC,CAClE,GAAIC,EAAQ,YAAc,IAAA,GAAW,OAAOA,EAAQ,QACpD,IAAMC,EAASD,EAAQ,UAAY,IAAA,IAAaA,EAAQ,UAAYA,EAAQ,UAM5E,OALIA,EAAQ,OAAS,MACZC,EACH,GAAGD,EAAQ,QAAQ,iBAAiBA,EAAQ,UAAU,GACtD,GAAGA,EAAQ,QAAQ,kBAAkBA,EAAQ,UAAU,GAAGA,EAAQ,QAAQ,GAEzEC,EACH,GAAGD,EAAQ,QAAQ,GAAGA,EAAQ,YAC9B,GAAGA,EAAQ,QAAQ,GAAGA,EAAQ,UAAU,GAAGA,EAAQ,SACzD,CAGA,SAAgBE,EAAqB,EAAuB,CAC1D,OAAOC,IAAU,EACb,sEACA,UAAUA,EAAM,4DACtB,CAQA,SAAgBC,EAAkB,EAAoC,EAA0B,CAC9F,GAAIC,EAAS,SAAW,EAAG,MAAO,GAClC,IAAMC,EAAOD,EACV,IAAK,GAAY,CAChB,IAAME,EAASb,EAAYM,EAAQ,OAAO,CAAC,CACxC,MAAM;CAAI,CAAC,CACX,IAAK,GAAS,KAAKQ,GAAM,CAAC,CAC1B,KAAK;CAAI,EACZ,MAAO,OAAOT,EAAoBC,CAAO,EAAE,MAAMO,EAAO,MAAMP,EAAQ,KAAK,KAAK,GAClF,CAAC,CAAC,CACD,KAAK;;CAAM,EACd,MAAO,GAAGS,GAAWP,EAAqBG,EAAS,MAAM,EAAE,MAAMC,GACnE"}
|
|
1
|
+
{"version":3,"file":"review.cjs","names":["diffGutterWidth","widest","hunk","hunks","row","diffRangeOf","numbered","rows","kept","side","lines","trimSnippet","snippet","text","maxLines","maxChars","reviewCommentAnchor","comment","single","defaultReviewHeading","count","buildReviewPrompt","comments","body","quoted","line","heading"],"sources":["../../../src/lib/review.ts"],"sourcesContent":["import type { DiffHunk, DiffMarker, DiffSide, ReviewComment } from '../types/diff';\n\n/**\n * Pure review logic shared by every surface that comments on a diff: sizing a\n * gutter, deciding which side a selection is on, naming an anchor, and folding\n * a set of notes into one message.\n */\n\n/** The widest line number in a diff, in characters, which sizes the gutter. */\nexport function diffGutterWidth(hunks: readonly DiffHunk[]): number {\n let widest = 1;\n for (const hunk of hunks) {\n for (const row of hunk.rows) widest = Math.max(widest, String(row.line).length);\n }\n return widest;\n}\n\n/**\n * The line range a set of touched rows covers, and the side it is on.\n *\n * Any context or added row puts the selection on the new side, and then the\n * removed rows in it are ignored: their numbers belong to the other file and\n * would stretch the range over lines that have nothing to do with it. Only a\n * selection made entirely of removed rows lands on the old side.\n */\nexport function diffRangeOf(\n rows: readonly { marker: DiffMarker; line: number }[],\n): { side: DiffSide; startLine: number; endLine: number } | undefined {\n const numbered = rows.filter((row) => Number.isFinite(row.line) && row.line > 0);\n const kept = numbered.filter((row) => row.marker !== '-');\n const side: DiffSide = kept.length > 0 ? 'new' : 'old';\n const lines = (kept.length > 0 ? kept : numbered).map((row) => row.line);\n if (lines.length === 0) return undefined;\n return { side, startLine: Math.min(...lines), endLine: Math.max(...lines) };\n}\n\n/** Trims a quoted snippet to something a prompt can carry without drowning it. */\nexport function trimSnippet(snippet: string, maxLines = 20, maxChars = 2000): string {\n const lines = snippet.split('\\n');\n const clipped = lines.length > maxLines ? [...lines.slice(0, maxLines), '…'] : lines;\n const text = clipped.join('\\n');\n return text.length > maxChars ? `${text.slice(0, maxChars)}…` : text;\n}\n\n/** How a comment names the place it is about. New-side anchors keep the `path:line` form. */\nexport function reviewCommentAnchor(comment: ReviewComment): string {\n if (comment.startLine === undefined) return comment.relPath;\n const single = comment.endLine === undefined || comment.endLine === comment.startLine;\n if (comment.side === 'old') {\n return single\n ? `${comment.relPath} (removed line ${comment.startLine})`\n : `${comment.relPath} (removed lines ${comment.startLine}-${comment.endLine})`;\n }\n return single\n ? `${comment.relPath}:${comment.startLine}`\n : `${comment.relPath}:${comment.startLine}-${comment.endLine}`;\n}\n\n/** The opening line of a review when the caller names no context of its own. */\nexport function defaultReviewHeading(count: number): string {\n return count === 1\n ? 'I left one review comment on a file you changed. Please address it.'\n : `I left ${count} review comments on files you changed. Please address them.`;\n}\n\n/**\n * The one message a review sends.\n *\n * Every note goes in a single message rather than one each: N notes then cost\n * one turn, and the agent sees the whole review before it changes anything.\n */\nexport function buildReviewPrompt(comments: readonly ReviewComment[], heading?: string): string {\n if (comments.length === 0) return '';\n const body = comments\n .map((comment) => {\n const quoted = trimSnippet(comment.snippet)\n .split('\\n')\n .map((line) => `> ${line}`)\n .join('\\n');\n return `### ${reviewCommentAnchor(comment)}\\n\\n${quoted}\\n\\n${comment.body.trim()}`;\n })\n .join('\\n\\n');\n return `${heading ?? defaultReviewHeading(comments.length)}\\n\\n${body}`;\n}\n"],"mappings":"AASA,SAAgBA,EAAgB,EAAoC,CAClE,IAAIC,EAAS,EACb,IAAK,IAAMC,KAAQC,EACjB,IAAK,IAAMC,KAAOF,EAAK,KAAM,EAAS,KAAK,IAAID,EAAQ,OAAOG,EAAI,IAAI,CAAC,CAAC,MAAM,EAEhF,OAAOH,CACT,CAUA,SAAgBI,EACd,EACoE,CACpE,IAAMC,EAAWC,EAAK,OAAQ,GAAQ,OAAO,SAASH,EAAI,IAAI,GAAKA,EAAI,KAAO,CAAC,EACzEI,EAAOF,EAAS,OAAQ,GAAQF,EAAI,SAAW,GAAG,EAClDK,EAAiBD,EAAK,OAAS,EAAI,MAAQ,MAC3CE,GAASF,EAAK,OAAS,EAAIA,EAAOF,EAAA,CAAU,IAAK,GAAQF,EAAI,IAAI,EACvE,GAAIM,EAAM,SAAW,EACrB,MAAO,CAAE,OAAM,UAAW,KAAK,IAAI,GAAGA,CAAK,EAAG,QAAS,KAAK,IAAI,GAAGA,CAAK,CAAE,CAC5E,CAGA,SAAgBC,EAAY,EAAiB,EAAW,GAAI,EAAW,IAAc,CACnF,IAAMD,EAAQE,EAAQ,MAAM;CAAI,EAE1BC,GADUH,EAAM,OAASI,EAAW,CAAC,GAAGJ,EAAM,MAAM,EAAGI,CAAQ,EAAG,GAAG,EAAIJ,EAAA,CAC1D,KAAK;CAAI,EAC9B,OAAOG,EAAK,OAASE,EAAW,GAAGF,EAAK,MAAM,EAAGE,CAAQ,EAAE,GAAKF,CAClE,CAGA,SAAgBG,EAAoB,EAAgC,CAClE,GAAIC,EAAQ,YAAc,IAAA,GAAW,OAAOA,EAAQ,QACpD,IAAMC,EAASD,EAAQ,UAAY,IAAA,IAAaA,EAAQ,UAAYA,EAAQ,UAM5E,OALIA,EAAQ,OAAS,MACZC,EACH,GAAGD,EAAQ,QAAQ,iBAAiBA,EAAQ,UAAU,GACtD,GAAGA,EAAQ,QAAQ,kBAAkBA,EAAQ,UAAU,GAAGA,EAAQ,QAAQ,GAEzEC,EACH,GAAGD,EAAQ,QAAQ,GAAGA,EAAQ,YAC9B,GAAGA,EAAQ,QAAQ,GAAGA,EAAQ,UAAU,GAAGA,EAAQ,SACzD,CAGA,SAAgBE,EAAqB,EAAuB,CAC1D,OAAOC,IAAU,EACb,sEACA,UAAUA,EAAM,4DACtB,CAQA,SAAgBC,EAAkB,EAAoC,EAA0B,CAC9F,GAAIC,EAAS,SAAW,EAAG,MAAO,GAClC,IAAMC,EAAOD,EACV,IAAK,GAAY,CAChB,IAAME,EAASb,EAAYM,EAAQ,OAAO,CAAC,CACxC,MAAM;CAAI,CAAC,CACX,IAAK,GAAS,KAAKQ,GAAM,CAAC,CAC1B,KAAK;CAAI,EACZ,MAAO,OAAOT,EAAoBC,CAAO,EAAE,MAAMO,EAAO,MAAMP,EAAQ,KAAK,KAAK,GAClF,CAAC,CAAC,CACD,KAAK;;CAAM,EACd,MAAO,GAAGS,GAAWP,EAAqBG,EAAS,MAAM,EAAE,MAAMC,GACnE,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=6e4,t=36e5;function n(n){if(n<e)return`<1m`;if(n<t)return`${Math.floor(n/e)}m`;let r=Math.floor(n/t),i=Math.floor(n%t/e);return`${r}h ${String(i).padStart(2,`0`)}m`}function r(e,t){return`${e.label} · ${n(Math.max(0,t-e.since))}`}function i(t,n){let r=Math.max(0,n-t);return e-r%e}exports.clockRefreshMs=i,exports.clockText=r,exports.formatRunDuration=n;
|
|
2
|
+
//# sourceMappingURL=runDuration.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runDuration.cjs","names":["MINUTE_MS","HOUR_MS","formatRunDuration","elapsedMs","hours","minutes","clockText","clock","now","clockRefreshMs","elapsed","since"],"sources":["../../../src/lib/runDuration.ts"],"sourcesContent":["const MINUTE_MS = 60_000;\nconst HOUR_MS = 3_600_000;\n\n/** How long a run has gone on, to the minute: \"<1m\", \"12m\", \"2h 05m\". */\nexport function formatRunDuration(elapsedMs: number): string {\n if (elapsedMs < MINUTE_MS) return '<1m';\n if (elapsedMs < HOUR_MS) return `${Math.floor(elapsedMs / MINUTE_MS)}m`;\n const hours = Math.floor(elapsedMs / HOUR_MS);\n const minutes = Math.floor((elapsedMs % HOUR_MS) / MINUTE_MS);\n return `${hours}h ${String(minutes).padStart(2, '0')}m`;\n}\n\n/** A status clock read at `now`: \"running · 12m\". */\nexport function clockText(clock: { label: string; since: number }, now: number): string {\n return `${clock.label} · ${formatRunDuration(Math.max(0, now - clock.since))}`;\n}\n\n/** Milliseconds until a clock read at `now` shows a different minute. */\nexport function clockRefreshMs(since: number, now: number): number {\n const elapsed = Math.max(0, now - since);\n return MINUTE_MS - (elapsed % MINUTE_MS);\n}\n"],"mappings":"AAAA,MAAMA,EAAY,IACZC,EAAU,KAGhB,SAAgBC,EAAkB,EAA2B,CAC3D,GAAIC,EAAYH,EAAW,MAAO,MAClC,GAAIG,EAAYF,EAAS,MAAO,GAAG,KAAK,MAAME,EAAYH,CAAS,EAAE,GACrE,IAAMI,EAAQ,KAAK,MAAMD,EAAYF,CAAO,EACtCI,EAAU,KAAK,MAAOF,EAAYF,EAAWD,CAAS,EAC5D,MAAO,GAAGI,EAAM,IAAI,OAAOC,CAAO,CAAC,CAAC,SAAS,EAAG,GAAG,EAAE,EACvD,CAGA,SAAgBC,EAAU,EAAyC,EAAqB,CACtF,MAAO,GAAGC,EAAM,MAAM,KAAKL,EAAkB,KAAK,IAAI,EAAGM,EAAMD,EAAM,KAAK,CAAC,GAC7E,CAGA,SAAgBE,EAAe,EAAe,EAAqB,CACjE,IAAMC,EAAU,KAAK,IAAI,EAAGF,EAAMG,CAAK,EACvC,OAAOX,EAAaU,EAAUV,CAChC,C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const e=require("./editorLanguage.cjs"),t=require("./editorTheme.cjs"),n=[{pattern:/^#!.*\b(?:bash|sh|zsh|dash|ksh)\b/,grammar:`shell`},{pattern:/^#!.*\bpython[\d.]*\b/,grammar:`python`},{pattern:/^#!.*\b(?:node|bun|deno)\b/,grammar:`javascript`}],r=/^\s*[[{][\s\S]*[\]}]\s*$/;function i(t){let i=t.path===void 0||t.path.length===0?void 0:e.grammarKeyOf(t.path);if(i!==void 0)return i;let a=t.text??``;if(a.length===0)return;let o=a.slice(0,200);if(o.startsWith(`#!`)){let e=o.split(`
|
|
2
|
-
`,1)[0]??``;for(let t of n)if(t.pattern.test(e))return t.grammar;return`shell`}return r.test(a)?`json`:void 0}function a(e){return e===void 0?void 0:t.PO_SYNTAX_STYLES[e]}async function o(){let{tagHighlighter:e,tags:t}=await import(`@lezer/highlight`);return e([{tag:t.comment,class:`comment`},{tag:t.keyword,class:`keyword`},{tag:[t.atom,t.bool,t.null,t.self],class:`constant`},{tag:t.number,class:`literal`},{tag:[t.string,t.special(t.string)],class:`string`},{tag:t.regexp,class:`regexp`},{tag:[t.operator,t.operatorKeyword],class:`operator`},{tag:[t.punctuation,t.separator,t.bracket],class:`punctuation`},{tag:[t.variableName,t.definition(t.variableName)],class:`variable`},{tag:[t.propertyName,t.definition(t.propertyName)],class:`property`},{tag:[t.function(t.variableName),t.function(t.propertyName)],class:`callable`},{tag:[t.typeName,t.className,t.namespace],class:`type`},{tag:[t.tagName,t.angleBracket],class:`tag`},{tag:t.attributeName,class:`attribute`},{tag:[t.meta,t.processingInstruction,t.documentMeta],class:`meta`},{tag:t.heading,class:`heading`},{tag:[t.link,t.url],class:`link`},{tag:t.emphasis,class:`emphasis`},{tag:t.strong,class:`strong`},{tag:t.strikethrough,class:`strikethrough`},{tag:t.invalid,class:`invalid`}])}async function s(t){let[{Language:n,LanguageSupport:r},i]=await Promise.all([import(`@codemirror/language`),e.loadGrammar(t)]);if(i instanceof r)return i.language.parser;if(i instanceof n)return i.parser}async function c(e,t){
|
|
2
|
+
`,1)[0]??``;for(let t of n)if(t.pattern.test(e))return t.grammar;return`shell`}return r.test(a)?`json`:void 0}function a(e){return e===void 0?void 0:t.PO_SYNTAX_STYLES[e]}async function o(){let{tagHighlighter:e,tags:t}=await import(`@lezer/highlight`);return e([{tag:t.comment,class:`comment`},{tag:t.keyword,class:`keyword`},{tag:[t.atom,t.bool,t.null,t.self],class:`constant`},{tag:t.number,class:`literal`},{tag:[t.string,t.special(t.string)],class:`string`},{tag:t.regexp,class:`regexp`},{tag:[t.operator,t.operatorKeyword],class:`operator`},{tag:[t.punctuation,t.separator,t.bracket],class:`punctuation`},{tag:[t.variableName,t.definition(t.variableName)],class:`variable`},{tag:[t.propertyName,t.definition(t.propertyName)],class:`property`},{tag:[t.function(t.variableName),t.function(t.propertyName)],class:`callable`},{tag:[t.typeName,t.className,t.namespace],class:`type`},{tag:[t.tagName,t.angleBracket],class:`tag`},{tag:t.attributeName,class:`attribute`},{tag:[t.meta,t.processingInstruction,t.documentMeta],class:`meta`},{tag:t.heading,class:`heading`},{tag:[t.link,t.url],class:`link`},{tag:t.emphasis,class:`emphasis`},{tag:t.strong,class:`strong`},{tag:t.strikethrough,class:`strikethrough`},{tag:t.invalid,class:`invalid`}])}async function s(t){let[{Language:n,LanguageSupport:r},i]=await Promise.all([import(`@codemirror/language`),e.loadGrammar(t)]);if(i instanceof r)return i.language.parser;if(i instanceof n)return i.parser}async function c(e,t,n){let[{highlightCode:r},i,a]=await Promise.all([import(`@lezer/highlight`),o(),s(t)]);if(n.aborted||a===void 0)return;let c=[[]];return r(e,a.parse(e),i,(e,t)=>{c[c.length-1]?.push(t===``?{text:e}:{text:e,token:t})},()=>c.push([])),c}const l=4194304,u=/* @__PURE__ */ new Map;let d=0;const f=/* @__PURE__ */ new Map;function p(e,t){let n=e.length*2+t.length*64;for(let e of t)for(let t of e)n+=t.text.length*2+64;if(!(n>l)){for(;d+n>l||u.size>=128;){let e=u.entries().next().value;if(e===void 0)break;u.delete(e[0]),d-=e[1].bytes}u.set(e,{lines:t,bytes:n}),d+=n}}async function m(e,t,n){if(n?.aborted||e.length===0||e.length>2e5)return;let r=`${t}\u0000${e}`,i=u.get(r);if(i!==void 0)return u.delete(r),u.set(r,i),i.lines;let a=f.get(r);if(a===void 0){let n=new AbortController;a={controller:n,users:0,promise:c(e,t,n.signal)};let i=a;a.promise=a.promise.then(e=>(!n.signal.aborted&&e!==void 0&&p(r,e),e)).finally(()=>{f.get(r)===i&&f.delete(r)}),f.set(r,a)}let o=a;return o.users+=1,new Promise((e,t)=>{let i=!1,a=()=>!i&&(i=!0,n?.removeEventListener(`abort`,s),--o.users,!0),s=()=>{a()&&(o.users===0&&(o.controller.abort(),f.get(r)===o&&f.delete(r)),e(void 0))};n?.addEventListener(`abort`,s,{once:!0}),o.promise.then(t=>{a()&&e(t)},e=>{a()&&t(e)})})}exports.detectGrammar=i,exports.highlightToLines=m,exports.syntaxStyleOf=a;
|
|
3
3
|
//# sourceMappingURL=syntaxHighlight.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syntaxHighlight.cjs","names":["grammarKeyOf","PO_SYNTAX_STYLES","loadGrammar","require_editorLanguage","require_editorTheme","SHEBANG_GRAMMARS","JSON_SHAPE","detectGrammar","byPath","query","text","head","firstLine","entry","syntaxStyleOf","token","poHighlighter","tagHighlighter","tags","parserFor","extension","grammar","LanguageSupport","Language","highlightToLines","highlighter","parser","lines","highlightCode","classes","code"],"sources":["../../../src/lib/syntaxHighlight.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\n\nimport { type GrammarKey, grammarKeyOf, loadGrammar } from './editorLanguage';\nimport { PO_SYNTAX_STYLES } from './editorTheme';\n\n/**\n * Static syntax highlighting for read-only code, the timeline's half of the\n * editor's `syntaxHighlighting`.\n *\n * A tool card shows code it cannot edit, so it needs the colours without the\n * editor: the same grammars `editorLanguage.ts` loads and the same token\n * palette `editorTheme.ts` names, run once over a string and handed back as\n * spans. Everything CodeMirror-shaped is behind a dynamic import, so a session\n * that never opens a code result never downloads a parser, and the caller\n * always has plain text to show first.\n */\n\n/** The palette keys a token can land on; the styles themselves are the editor's. */\nexport type SyntaxToken = keyof typeof PO_SYNTAX_STYLES;\n\n/** One run of same-styled text inside a line. `token` absent means unstyled. */\nexport interface SyntaxSpan {\n text: string;\n token?: SyntaxToken;\n}\n\n/** Lines of spans, one array per source line, so a gutter can pair with them. */\nexport type SyntaxLines = readonly (readonly SyntaxSpan[])[];\n\n/**\n * Above this the parse costs more than the colour is worth. Tool results are\n * bounded well below it; a pasted file is not, and blocking the frame to paint\n * a wall of text nobody reads is the worse outcome.\n */\nconst MAX_HIGHLIGHT_CHARS = 200_000;\n\n/** Only the first line is needed to spot a shebang, and reading more of a big string is waste. */\nconst SNIFF_CHARS = 200;\n\nconst SHEBANG_GRAMMARS: ReadonlyArray<{ readonly pattern: RegExp; readonly grammar: GrammarKey }> = [\n { pattern: /^#!.*\\b(?:bash|sh|zsh|dash|ksh)\\b/, grammar: 'shell' },\n { pattern: /^#!.*\\bpython[\\d.]*\\b/, grammar: 'python' },\n { pattern: /^#!.*\\b(?:node|bun|deno)\\b/, grammar: 'javascript' },\n];\n\n/** JSON is the one shape worth guessing from the body: a document is an object or an array. */\nconst JSON_SHAPE = /^\\s*[[{][\\s\\S]*[\\]}]\\s*$/;\n\nexport interface GrammarQuery {\n /** The file the text came from, when the tool knows one. */\n path?: string | undefined;\n /** The text itself, used only when the path settles nothing. */\n text?: string | undefined;\n}\n\n/**\n * Which grammar to colour a result with.\n *\n * The path decides whenever it can, because a name is evidence and a body is a\n * guess. Sniffing only answers for text that arrived without a usable name: a\n * shebang says what runs the script, and a document that opens and closes with\n * brackets is treated as JSON. Anything else stays plain rather than being\n * coloured as the wrong language.\n */\nexport function detectGrammar(query: GrammarQuery): GrammarKey | undefined {\n const byPath = query.path === undefined || query.path.length === 0 ? undefined : grammarKeyOf(query.path);\n if (byPath !== undefined) return byPath;\n const text = query.text ?? '';\n if (text.length === 0) return undefined;\n const head = text.slice(0, SNIFF_CHARS);\n if (head.startsWith('#!')) {\n const firstLine = head.split('\\n', 1)[0] ?? '';\n for (const entry of SHEBANG_GRAMMARS) {\n if (entry.pattern.test(firstLine)) return entry.grammar;\n }\n // A shebang naming something with no grammar here is still a script.\n return 'shell';\n }\n return JSON_SHAPE.test(text) ? 'json' : undefined;\n}\n\n/** The inline style a token wears. Colours come from the editor palette, which names theme tokens. */\nexport function syntaxStyleOf(token: SyntaxToken | undefined): CSSProperties | undefined {\n return token === undefined ? undefined : PO_SYNTAX_STYLES[token];\n}\n\n/**\n * Every tag the palette answers for, in the order the editor lists them. The\n * class each entry carries is a palette key rather than a CSS class: the\n * result is rendered as inline styles, so nothing has to be mounted in the\n * document for a card to show colour.\n */\nasync function poHighlighter() {\n const { tagHighlighter, tags } = await import('@lezer/highlight');\n return tagHighlighter([\n { tag: tags.comment, class: 'comment' satisfies SyntaxToken },\n { tag: tags.keyword, class: 'keyword' satisfies SyntaxToken },\n { tag: [tags.atom, tags.bool, tags.null, tags.self], class: 'constant' satisfies SyntaxToken },\n { tag: tags.number, class: 'literal' satisfies SyntaxToken },\n { tag: [tags.string, tags.special(tags.string)], class: 'string' satisfies SyntaxToken },\n { tag: tags.regexp, class: 'regexp' satisfies SyntaxToken },\n { tag: [tags.operator, tags.operatorKeyword], class: 'operator' satisfies SyntaxToken },\n { tag: [tags.punctuation, tags.separator, tags.bracket], class: 'punctuation' satisfies SyntaxToken },\n { tag: [tags.variableName, tags.definition(tags.variableName)], class: 'variable' satisfies SyntaxToken },\n { tag: [tags.propertyName, tags.definition(tags.propertyName)], class: 'property' satisfies SyntaxToken },\n {\n tag: [tags.function(tags.variableName), tags.function(tags.propertyName)],\n class: 'callable' satisfies SyntaxToken,\n },\n { tag: [tags.typeName, tags.className, tags.namespace], class: 'type' satisfies SyntaxToken },\n { tag: [tags.tagName, tags.angleBracket], class: 'tag' satisfies SyntaxToken },\n { tag: tags.attributeName, class: 'attribute' satisfies SyntaxToken },\n { tag: [tags.meta, tags.processingInstruction, tags.documentMeta], class: 'meta' satisfies SyntaxToken },\n { tag: tags.heading, class: 'heading' satisfies SyntaxToken },\n { tag: [tags.link, tags.url], class: 'link' satisfies SyntaxToken },\n { tag: tags.emphasis, class: 'emphasis' satisfies SyntaxToken },\n { tag: tags.strong, class: 'strong' satisfies SyntaxToken },\n { tag: tags.strikethrough, class: 'strikethrough' satisfies SyntaxToken },\n { tag: tags.invalid, class: 'invalid' satisfies SyntaxToken },\n ]);\n}\n\n/** The parser behind a grammar. `loadGrammar` hands back an editor extension, which wraps one. */\nasync function parserFor(grammar: GrammarKey) {\n const [{ Language, LanguageSupport }, extension] = await Promise.all([\n import('@codemirror/language'),\n loadGrammar(grammar),\n ]);\n if (extension instanceof LanguageSupport) return extension.language.parser;\n if (extension instanceof Language) return extension.parser;\n return undefined;\n}\n\n/**\n * Colours `text` as `grammar`, as lines of spans.\n *\n * The whole text is parsed at once even though the caller may render it line\n * by line, because a template literal or a block comment only makes sense with\n * its neighbours. Text past the size cap, and a grammar whose extension turns\n * out to carry no parser, come back unhighlighted rather than throwing: colour\n * is decoration, and the caller already has the plain text on screen.\n */\nexport async function highlightToLines(text: string, grammar: GrammarKey): Promise<SyntaxLines | undefined> {\n if (text.length === 0 || text.length > MAX_HIGHLIGHT_CHARS) return undefined;\n const [{ highlightCode }, highlighter, parser] = await Promise.all([\n import('@lezer/highlight'),\n poHighlighter(),\n parserFor(grammar),\n ]);\n if (parser === undefined) return undefined;\n\n const lines: SyntaxSpan[][] = [[]];\n highlightCode(\n text,\n parser.parse(text),\n highlighter,\n (code, classes) => {\n const current = lines[lines.length - 1];\n // `classes` is the palette key this module handed the tag highlighter,\n // or empty for text no tag claimed.\n current?.push(classes === '' ? { text: code } : { text: code, token: classes as SyntaxToken });\n },\n () => lines.push([]),\n );\n return lines;\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"syntaxHighlight.cjs","names":["grammarKeyOf","PO_SYNTAX_STYLES","loadGrammar","require_editorLanguage","require_editorTheme","SHEBANG_GRAMMARS","JSON_SHAPE","detectGrammar","byPath","query","text","head","firstLine","entry","syntaxStyleOf","token","poHighlighter","tagHighlighter","tags","parserFor","extension","grammar","LanguageSupport","Language","parseToLines","highlighter","parser","signal","lines","highlightCode","classes","code","HIGHLIGHT_CACHE_BYTES","cache","cacheBytes","pending","remember","bytes","key","line","span","oldest","highlightToLines","hit","job","controller","created","shared","finished","release","abort","resolve","reject","error"],"sources":["../../../src/lib/syntaxHighlight.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\n\nimport { type GrammarKey, grammarKeyOf, loadGrammar } from './editorLanguage';\nimport { PO_SYNTAX_STYLES } from './editorTheme';\n\n/**\n * Static syntax highlighting for read-only code, the timeline's half of the\n * editor's `syntaxHighlighting`.\n *\n * A tool card shows code it cannot edit, so it needs the colours without the\n * editor: the same grammars `editorLanguage.ts` loads and the same token\n * palette `editorTheme.ts` names, run once over a string and handed back as\n * spans. Everything CodeMirror-shaped is behind a dynamic import, so a session\n * that never opens a code result never downloads a parser, and the caller\n * always has plain text to show first.\n */\n\n/** The palette keys a token can land on; the styles themselves are the editor's. */\nexport type SyntaxToken = keyof typeof PO_SYNTAX_STYLES;\n\n/** One run of same-styled text inside a line. `token` absent means unstyled. */\nexport interface SyntaxSpan {\n text: string;\n token?: SyntaxToken;\n}\n\n/** Lines of spans, one array per source line, so a gutter can pair with them. */\nexport type SyntaxLines = readonly (readonly SyntaxSpan[])[];\n\n/**\n * Above this the parse costs more than the colour is worth. Tool results are\n * bounded well below it; a pasted file is not, and blocking the frame to paint\n * a wall of text nobody reads is the worse outcome.\n */\nconst MAX_HIGHLIGHT_CHARS = 200_000;\n\n/** Only the first line is needed to spot a shebang, and reading more of a big string is waste. */\nconst SNIFF_CHARS = 200;\n\nconst SHEBANG_GRAMMARS: ReadonlyArray<{ readonly pattern: RegExp; readonly grammar: GrammarKey }> = [\n { pattern: /^#!.*\\b(?:bash|sh|zsh|dash|ksh)\\b/, grammar: 'shell' },\n { pattern: /^#!.*\\bpython[\\d.]*\\b/, grammar: 'python' },\n { pattern: /^#!.*\\b(?:node|bun|deno)\\b/, grammar: 'javascript' },\n];\n\n/** JSON is the one shape worth guessing from the body: a document is an object or an array. */\nconst JSON_SHAPE = /^\\s*[[{][\\s\\S]*[\\]}]\\s*$/;\n\nexport interface GrammarQuery {\n /** The file the text came from, when the tool knows one. */\n path?: string | undefined;\n /** The text itself, used only when the path settles nothing. */\n text?: string | undefined;\n}\n\n/**\n * Which grammar to colour a result with.\n *\n * The path decides whenever it can, because a name is evidence and a body is a\n * guess. Sniffing only answers for text that arrived without a usable name: a\n * shebang says what runs the script, and a document that opens and closes with\n * brackets is treated as JSON. Anything else stays plain rather than being\n * coloured as the wrong language.\n */\nexport function detectGrammar(query: GrammarQuery): GrammarKey | undefined {\n const byPath = query.path === undefined || query.path.length === 0 ? undefined : grammarKeyOf(query.path);\n if (byPath !== undefined) return byPath;\n const text = query.text ?? '';\n if (text.length === 0) return undefined;\n const head = text.slice(0, SNIFF_CHARS);\n if (head.startsWith('#!')) {\n const firstLine = head.split('\\n', 1)[0] ?? '';\n for (const entry of SHEBANG_GRAMMARS) {\n if (entry.pattern.test(firstLine)) return entry.grammar;\n }\n // A shebang naming something with no grammar here is still a script.\n return 'shell';\n }\n return JSON_SHAPE.test(text) ? 'json' : undefined;\n}\n\n/** The inline style a token wears. Colours come from the editor palette, which names theme tokens. */\nexport function syntaxStyleOf(token: SyntaxToken | undefined): CSSProperties | undefined {\n return token === undefined ? undefined : PO_SYNTAX_STYLES[token];\n}\n\n/**\n * Every tag the palette answers for, in the order the editor lists them. The\n * class each entry carries is a palette key rather than a CSS class: the\n * result is rendered as inline styles, so nothing has to be mounted in the\n * document for a card to show colour.\n */\nasync function poHighlighter() {\n const { tagHighlighter, tags } = await import('@lezer/highlight');\n return tagHighlighter([\n { tag: tags.comment, class: 'comment' satisfies SyntaxToken },\n { tag: tags.keyword, class: 'keyword' satisfies SyntaxToken },\n { tag: [tags.atom, tags.bool, tags.null, tags.self], class: 'constant' satisfies SyntaxToken },\n { tag: tags.number, class: 'literal' satisfies SyntaxToken },\n { tag: [tags.string, tags.special(tags.string)], class: 'string' satisfies SyntaxToken },\n { tag: tags.regexp, class: 'regexp' satisfies SyntaxToken },\n { tag: [tags.operator, tags.operatorKeyword], class: 'operator' satisfies SyntaxToken },\n { tag: [tags.punctuation, tags.separator, tags.bracket], class: 'punctuation' satisfies SyntaxToken },\n { tag: [tags.variableName, tags.definition(tags.variableName)], class: 'variable' satisfies SyntaxToken },\n { tag: [tags.propertyName, tags.definition(tags.propertyName)], class: 'property' satisfies SyntaxToken },\n {\n tag: [tags.function(tags.variableName), tags.function(tags.propertyName)],\n class: 'callable' satisfies SyntaxToken,\n },\n { tag: [tags.typeName, tags.className, tags.namespace], class: 'type' satisfies SyntaxToken },\n { tag: [tags.tagName, tags.angleBracket], class: 'tag' satisfies SyntaxToken },\n { tag: tags.attributeName, class: 'attribute' satisfies SyntaxToken },\n { tag: [tags.meta, tags.processingInstruction, tags.documentMeta], class: 'meta' satisfies SyntaxToken },\n { tag: tags.heading, class: 'heading' satisfies SyntaxToken },\n { tag: [tags.link, tags.url], class: 'link' satisfies SyntaxToken },\n { tag: tags.emphasis, class: 'emphasis' satisfies SyntaxToken },\n { tag: tags.strong, class: 'strong' satisfies SyntaxToken },\n { tag: tags.strikethrough, class: 'strikethrough' satisfies SyntaxToken },\n { tag: tags.invalid, class: 'invalid' satisfies SyntaxToken },\n ]);\n}\n\n/** The parser behind a grammar. `loadGrammar` hands back an editor extension, which wraps one. */\nasync function parserFor(grammar: GrammarKey) {\n const [{ Language, LanguageSupport }, extension] = await Promise.all([\n import('@codemirror/language'),\n loadGrammar(grammar),\n ]);\n if (extension instanceof LanguageSupport) return extension.language.parser;\n if (extension instanceof Language) return extension.parser;\n return undefined;\n}\n\n/**\n * Colours `text` as `grammar`, as lines of spans.\n *\n * The whole text is parsed at once even though the caller may render it line\n * by line, because a template literal or a block comment only makes sense with\n * its neighbours. Text past the size cap, and a grammar whose extension turns\n * out to carry no parser, come back unhighlighted rather than throwing: colour\n * is decoration, and the caller already has the plain text on screen.\n */\nasync function parseToLines(text: string, grammar: GrammarKey, signal: AbortSignal): Promise<SyntaxLines | undefined> {\n const [{ highlightCode }, highlighter, parser] = await Promise.all([\n import('@lezer/highlight'),\n poHighlighter(),\n parserFor(grammar),\n ]);\n // Imports may finish after every interested view has gone away. Parsing is\n // synchronous, so cancellation can skip it here but cannot interrupt it.\n if (signal.aborted || parser === undefined) return undefined;\n\n const lines: SyntaxSpan[][] = [[]];\n highlightCode(\n text,\n parser.parse(text),\n highlighter,\n (code, classes) => {\n const current = lines[lines.length - 1];\n // `classes` is the palette key this module handed the tag highlighter,\n // or empty for text no tag claimed.\n current?.push(classes === '' ? { text: code } : { text: code, token: classes as SyntaxToken });\n },\n () => lines.push([]),\n );\n return lines;\n}\n\n/** Account for UTF-16 keys/text and estimated array/object overhead, not just entry count. */\nconst HIGHLIGHT_CACHE_BYTES = 4 * 1024 * 1024;\nconst HIGHLIGHT_CACHE_ENTRIES = 128;\nconst SPAN_OVERHEAD_BYTES = 64;\nconst cache = new Map<string, { lines: SyntaxLines; bytes: number }>();\nlet cacheBytes = 0;\n\ninterface HighlightJob {\n controller: AbortController;\n users: number;\n promise: Promise<SyntaxLines | undefined>;\n}\nconst pending = new Map<string, HighlightJob>();\n\nfunction remember(key: string, lines: SyntaxLines): void {\n let bytes = key.length * 2 + lines.length * SPAN_OVERHEAD_BYTES;\n for (const line of lines) {\n for (const span of line) bytes += span.text.length * 2 + SPAN_OVERHEAD_BYTES;\n }\n if (bytes > HIGHLIGHT_CACHE_BYTES) return;\n while (cacheBytes + bytes > HIGHLIGHT_CACHE_BYTES || cache.size >= HIGHLIGHT_CACHE_ENTRIES) {\n const oldest = cache.entries().next().value;\n if (oldest === undefined) break;\n cache.delete(oldest[0]);\n cacheBytes -= oldest[1].bytes;\n }\n cache.set(key, { lines, bytes });\n cacheBytes += bytes;\n}\n\n/**\n * Shared whole-block highlighting, keyed by grammar and exact text. Completed\n * spans use a byte-accounted LRU; concurrent readers share one parse. A caller\n * can cancel without cancelling another reader. Once all readers cancel, skip\n * parsing after grammar loading. Cancelled or failed work is never cached.\n * The existing size cap and plain-text fallback are unchanged.\n */\nexport async function highlightToLines(\n text: string,\n grammar: GrammarKey,\n signal?: AbortSignal,\n): Promise<SyntaxLines | undefined> {\n if (signal?.aborted || text.length === 0 || text.length > MAX_HIGHLIGHT_CHARS) return undefined;\n const key = `${grammar}\\u0000${text}`;\n const hit = cache.get(key);\n if (hit !== undefined) {\n cache.delete(key);\n cache.set(key, hit);\n return hit.lines;\n }\n let job = pending.get(key);\n if (job === undefined) {\n const controller = new AbortController();\n job = { controller, users: 0, promise: parseToLines(text, grammar, controller.signal) };\n const created = job;\n job.promise = job.promise\n .then((lines) => {\n if (!controller.signal.aborted && lines !== undefined) remember(key, lines);\n return lines;\n })\n .finally(() => {\n if (pending.get(key) === created) pending.delete(key);\n });\n pending.set(key, job);\n }\n const shared = job;\n shared.users += 1;\n return new Promise((resolve, reject) => {\n let finished = false;\n const release = () => {\n if (finished) return false;\n finished = true;\n signal?.removeEventListener('abort', abort);\n shared.users -= 1;\n return true;\n };\n const abort = () => {\n if (!release()) return;\n if (shared.users === 0) {\n shared.controller.abort();\n if (pending.get(key) === shared) pending.delete(key);\n }\n resolve(undefined);\n };\n signal?.addEventListener('abort', abort, { once: true });\n void shared.promise.then(\n (lines) => {\n if (release()) resolve(lines);\n },\n (error: unknown) => {\n if (release()) reject(error);\n },\n );\n });\n}\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tone.cjs","names":["STATUS_TO_CHIP","STATUS_TO_DOT","CHIP_TO_STATUS","LINE_TONE_TO_STATUS"],"sources":["../../../src/lib/tone.ts"],"sourcesContent":["import type { ChipTone, DotTone, MessageLineTone, StatusTone } from '../types/tone';\n\n/**\n * Translations between the tone vocabularies.\n *\n * Every surface that shows an outcome used to carry its own\n * `Record<Tone, string>` table mapping a state onto a colour class. Those\n * tables disagreed as often as they agreed. These maps are the one place the\n * translation lives, so a card picks a status tone from its own domain and\n * asks here what colour that reads as.\n */\n\n/** The colour a status reads as, for the chip and border families. */\nexport const STATUS_TO_CHIP: Readonly<Record<StatusTone, ChipTone>> = {\n neutral: 'neutral',\n running: 'yellow',\n ok: 'green',\n error: 'red',\n info: 'blue',\n accent: 'magenta',\n};\n\n/** The dot a status reads as; a neutral status is present but not live. */\nexport const STATUS_TO_DOT: Readonly<Record<StatusTone, DotTone>> = {\n neutral: 'muted',\n running: 'yellow',\n ok: 'green',\n error: 'red',\n info: 'blue',\n accent: 'magenta',\n};\n\n/**\n * The status a colour stands for, for a caller that has only a chip tone.\n * Lossy on purpose: the palette has more colours than there are outcomes, and\n * a colour with no outcome of its own reads as neutral.\n */\nexport const CHIP_TO_STATUS: Readonly<Record<ChipTone, StatusTone>> = {\n neutral: 'neutral',\n blue: 'info',\n green: 'ok',\n yellow: 'running',\n red: 'error',\n magenta: 'accent',\n violet: 'accent',\n cyan: 'info',\n orange: 'running',\n teal: 'info',\n};\n\n/** The status a body line's role corresponds to, for a card that badges its worst line. */\nexport const LINE_TONE_TO_STATUS: Readonly<Record<MessageLineTone, StatusTone>> = {\n hi: 'neutral',\n text: 'neutral',\n dim: 'neutral',\n muted: 'neutral',\n success: 'ok',\n error: 'error',\n warning: 'running',\n accent: 'info',\n};\n"],"mappings":"AAaA,MAAaA,EAAyD,CACpE,QAAS,UACT,QAAS,SACT,GAAI,QACJ,MAAO,MACP,KAAM,OACN,OAAQ,SACV,EAGaC,EAAuD,CAClE,QAAS,QACT,QAAS,SACT,GAAI,QACJ,MAAO,MACP,KAAM,OACN,OAAQ,SACV,EAOaC,EAAyD,CACpE,QAAS,UACT,KAAM,OACN,MAAO,KACP,OAAQ,UACR,IAAK,QACL,QAAS,SACT,OAAQ,SACR,KAAM,OACN,OAAQ,UACR,KAAM,MACR,EAGaC,EAAqE,CAChF,GAAI,UACJ,KAAM,UACN,IAAK,UACL,MAAO,UACP,QAAS,KACT,MAAO,QACP,QAAS,UACT,OAAQ,MACV"}
|
|
1
|
+
{"version":3,"file":"tone.cjs","names":["STATUS_TO_CHIP","STATUS_TO_DOT","CHIP_TO_STATUS","LINE_TONE_TO_STATUS"],"sources":["../../../src/lib/tone.ts"],"sourcesContent":["import type { ChipTone, DotTone, MessageLineTone, StatusTone } from '../types/tone';\n\n/**\n * Translations between the tone vocabularies.\n *\n * Every surface that shows an outcome used to carry its own\n * `Record<Tone, string>` table mapping a state onto a colour class. Those\n * tables disagreed as often as they agreed. These maps are the one place the\n * translation lives, so a card picks a status tone from its own domain and\n * asks here what colour that reads as.\n */\n\n/** The colour a status reads as, for the chip and border families. */\nexport const STATUS_TO_CHIP: Readonly<Record<StatusTone, ChipTone>> = {\n neutral: 'neutral',\n running: 'yellow',\n ok: 'green',\n error: 'red',\n info: 'blue',\n accent: 'magenta',\n};\n\n/** The dot a status reads as; a neutral status is present but not live. */\nexport const STATUS_TO_DOT: Readonly<Record<StatusTone, DotTone>> = {\n neutral: 'muted',\n running: 'yellow',\n ok: 'green',\n error: 'red',\n info: 'blue',\n accent: 'magenta',\n};\n\n/**\n * The status a colour stands for, for a caller that has only a chip tone.\n * Lossy on purpose: the palette has more colours than there are outcomes, and\n * a colour with no outcome of its own reads as neutral.\n */\nexport const CHIP_TO_STATUS: Readonly<Record<ChipTone, StatusTone>> = {\n neutral: 'neutral',\n blue: 'info',\n green: 'ok',\n yellow: 'running',\n red: 'error',\n magenta: 'accent',\n violet: 'accent',\n cyan: 'info',\n orange: 'running',\n teal: 'info',\n};\n\n/** The status a body line's role corresponds to, for a card that badges its worst line. */\nexport const LINE_TONE_TO_STATUS: Readonly<Record<MessageLineTone, StatusTone>> = {\n hi: 'neutral',\n text: 'neutral',\n dim: 'neutral',\n muted: 'neutral',\n success: 'ok',\n error: 'error',\n warning: 'running',\n accent: 'info',\n};\n"],"mappings":"AAaA,MAAaA,EAAyD,CACpE,QAAS,UACT,QAAS,SACT,GAAI,QACJ,MAAO,MACP,KAAM,OACN,OAAQ,SACV,EAGaC,EAAuD,CAClE,QAAS,QACT,QAAS,SACT,GAAI,QACJ,MAAO,MACP,KAAM,OACN,OAAQ,SACV,EAOaC,EAAyD,CACpE,QAAS,UACT,KAAM,OACN,MAAO,KACP,OAAQ,UACR,IAAK,QACL,QAAS,SACT,OAAQ,SACR,KAAM,OACN,OAAQ,UACR,KAAM,MACR,EAGaC,EAAqE,CAChF,GAAI,UACJ,KAAM,UACN,IAAK,UACL,MAAO,UACP,QAAS,KACT,MAAO,QACP,QAAS,UACT,OAAQ,MACV,E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.cjs","names":["PALETTE_TOKENS","themeVariable","derivedTokens","tokenValue","require_theme","require_derive","THEME_ATTRIBUTE","themeCssVariables","variables","token","theme","themeCssText","declarations","name","value","selector","applyTheme","root"],"sources":["../../../src/theme/apply.ts"],"sourcesContent":["import { PALETTE_TOKENS, type ThemeConfig, themeVariable } from '../types/theme';\nimport { derivedTokens, tokenValue } from './derive';\n\n/** The attribute the active theme's name is stamped on, for CSS that keys off a theme. */\nexport const THEME_ATTRIBUTE = 'data-theme';\n\n/** Every custom property a theme publishes, keyed by property name. */\nexport function themeCssVariables(theme: ThemeConfig): Record<string, string> {\n const variables: Record<string, string> = {};\n for (const token of PALETTE_TOKENS) variables[themeVariable(token)] = theme.tokens[token];\n for (const token of derivedTokens()) variables[themeVariable(token)] = tokenValue(theme, token);\n return variables;\n}\n\n/** The theme as a stylesheet rule, for a server that wants to inline it. */\nexport function themeCssText(theme: ThemeConfig, selector = ':root'): string {\n const declarations = Object.entries(themeCssVariables(theme)).map(([name, value]) => ` ${name}: ${value};`);\n return `${selector} {\\n color-scheme: ${theme.scheme};\\n${declarations.join('\\n')}\\n}\\n`;\n}\n\n/** The subset of an element the theme touches, so tests can pass a plain object. */\nexport interface ThemeRoot {\n style: { setProperty(name: string, value: string): void; colorScheme: string };\n setAttribute(name: string, value: string): void;\n}\n\n/**\n * Applies a theme to the page: every token becomes a custom property on the\n * root, the colour scheme follows, and the theme name is stamped so a style\n * may key off it. Idempotent and synchronous, so calling it before the first\n * render avoids a flash of the default theme.\n */\nexport function applyTheme(theme: ThemeConfig, root: ThemeRoot): void {\n for (const [name, value] of Object.entries(themeCssVariables(theme))) root.style.setProperty(name, value);\n root.style.colorScheme = theme.scheme;\n root.setAttribute(THEME_ATTRIBUTE, theme.name);\n}\n"],"mappings":"gEAIaM,EAAkB,aAG/B,SAAgBC,EAAkB,EAA4C,CAC5E,IAAMC,EAAoC,CAAC,EAC3C,IAAK,IAAMC,KAAST,EAAAA,eAAgB,EAAUC,EAAAA,cAAcQ,CAAK,GAAKC,EAAM,OAAOD,GACnF,IAAK,IAAMA,KAASP,EAAAA,cAAc,EAAG,EAAUD,EAAAA,cAAcQ,CAAK,GAAKN,EAAAA,WAAWO,EAAOD,CAAK,EAC9F,OAAOD,CACT,CAGA,SAAgBG,EAAa,EAAoB,EAAW,QAAiB,CAC3E,IAAMC,EAAe,OAAO,QAAQL,EAAkBG,CAAK,CAAC,CAAC,CAAC,KAAK,CAACG,EAAMC,KAAW,KAAKD,EAAK,IAAIC,EAAM,EAAE,EAC3G,MAAO,GAAGC,EAAS,sBAAsBL,EAAM,OAAO,KAAKE,EAAa,KAAK;CAAI,EAAE,MACrF,CAcA,SAAgBI,EAAW,EAAoB,EAAuB,CACpE,IAAK,GAAM,CAACH,EAAMC,KAAU,OAAO,QAAQP,EAAkBG,CAAK,CAAC,EAAGO,EAAK,MAAM,YAAYJ,EAAMC,CAAK,EACxG,EAAK,MAAM,YAAcJ,EAAM,OAC/BO,EAAK,aAAaX,EAAiBI,EAAM,IAAI,CAC/C"}
|
|
1
|
+
{"version":3,"file":"apply.cjs","names":["PALETTE_TOKENS","themeVariable","derivedTokens","tokenValue","require_theme","require_derive","THEME_ATTRIBUTE","themeCssVariables","variables","token","theme","themeCssText","declarations","name","value","selector","applyTheme","root"],"sources":["../../../src/theme/apply.ts"],"sourcesContent":["import { PALETTE_TOKENS, type ThemeConfig, themeVariable } from '../types/theme';\nimport { derivedTokens, tokenValue } from './derive';\n\n/** The attribute the active theme's name is stamped on, for CSS that keys off a theme. */\nexport const THEME_ATTRIBUTE = 'data-theme';\n\n/** Every custom property a theme publishes, keyed by property name. */\nexport function themeCssVariables(theme: ThemeConfig): Record<string, string> {\n const variables: Record<string, string> = {};\n for (const token of PALETTE_TOKENS) variables[themeVariable(token)] = theme.tokens[token];\n for (const token of derivedTokens()) variables[themeVariable(token)] = tokenValue(theme, token);\n return variables;\n}\n\n/** The theme as a stylesheet rule, for a server that wants to inline it. */\nexport function themeCssText(theme: ThemeConfig, selector = ':root'): string {\n const declarations = Object.entries(themeCssVariables(theme)).map(([name, value]) => ` ${name}: ${value};`);\n return `${selector} {\\n color-scheme: ${theme.scheme};\\n${declarations.join('\\n')}\\n}\\n`;\n}\n\n/** The subset of an element the theme touches, so tests can pass a plain object. */\nexport interface ThemeRoot {\n style: { setProperty(name: string, value: string): void; colorScheme: string };\n setAttribute(name: string, value: string): void;\n}\n\n/**\n * Applies a theme to the page: every token becomes a custom property on the\n * root, the colour scheme follows, and the theme name is stamped so a style\n * may key off it. Idempotent and synchronous, so calling it before the first\n * render avoids a flash of the default theme.\n */\nexport function applyTheme(theme: ThemeConfig, root: ThemeRoot): void {\n for (const [name, value] of Object.entries(themeCssVariables(theme))) root.style.setProperty(name, value);\n root.style.colorScheme = theme.scheme;\n root.setAttribute(THEME_ATTRIBUTE, theme.name);\n}\n"],"mappings":"A,gEAIaM,EAAkB,aAG/B,SAAgBC,EAAkB,EAA4C,CAC5E,IAAMC,EAAoC,CAAC,EAC3C,IAAK,IAAMC,KAAST,EAAAA,eAAgB,EAAUC,EAAAA,cAAcQ,CAAK,GAAKC,EAAM,OAAOD,GACnF,IAAK,IAAMA,KAASP,EAAAA,cAAc,EAAG,EAAUD,EAAAA,cAAcQ,CAAK,GAAKN,EAAAA,WAAWO,EAAOD,CAAK,EAC9F,OAAOD,CACT,CAGA,SAAgBG,EAAa,EAAoB,EAAW,QAAiB,CAC3E,IAAMC,EAAe,OAAO,QAAQL,EAAkBG,CAAK,CAAC,CAAC,CAAC,KAAK,CAACG,EAAMC,KAAW,KAAKD,EAAK,IAAIC,EAAM,EAAE,EAC3G,MAAO,GAAGC,EAAS,sBAAsBL,EAAM,OAAO,KAAKE,EAAa,KAAK;CAAI,EAAE,MACrF,CAcA,SAAgBI,EAAW,EAAoB,EAAuB,CACpE,IAAK,GAAM,CAACH,EAAMC,KAAU,OAAO,QAAQP,EAAkBG,CAAK,CAAC,EAAGO,EAAK,MAAM,YAAYJ,EAAMC,CAAK,EACxG,EAAK,MAAM,YAAcJ,EAAM,OAC/BO,EAAK,aAAaX,EAAiBI,EAAM,IAAI,CAC/C,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtinThemes.cjs","names":["parseThemeConfig","poOneLight","poNordDark","require_po_nord_dark","require_po_one_light","require_parse","shipped","theme","input","file","BUILTIN_THEMES","DEFAULT_THEME","builtinTheme","name"],"sources":["../../../src/theme/builtinThemes.ts"],"sourcesContent":["import poNordDark from '../../themes/po-nord-dark.json' with { type: 'json' };\nimport poOneLight from '../../themes/po-one-light.json' with { type: 'json' };\nimport type { ThemeConfig } from '../types/theme';\nimport { parseThemeConfig } from './parse';\n\nfunction shipped(input: unknown, file: string): ThemeConfig {\n const theme = parseThemeConfig(input);\n if (theme === null) throw new Error(`The shipped theme ${file} is malformed.`);\n return theme;\n}\n\n/** The theme the cockpit renders with until a preference says otherwise. */\nexport const DEFAULT_THEME_NAME = 'po-one-light';\n\n/** The themes this package ships, default first. */\nexport const BUILTIN_THEMES: readonly ThemeConfig[] = [\n shipped(poOneLight, 'po-one-light.json'),\n shipped(poNordDark, 'po-nord-dark.json'),\n];\n\nexport const DEFAULT_THEME: ThemeConfig = BUILTIN_THEMES[0];\n\n/** A shipped theme by name, or undefined for a name nothing shipped under. */\nexport function builtinTheme(name: string): ThemeConfig | undefined {\n return BUILTIN_THEMES.find((theme) => theme.name === name);\n}\n"],"mappings":"qHAKA,SAASM,EAAQ,EAAgB,EAA2B,CAC1D,IAAMC,EAAQP,EAAAA,iBAAiBQ,CAAK,EACpC,GAAID,IAAU,KAAM,MAAU,MAAM,qBAAqBE,EAAK,eAAe,EAC7E,OAAOF,CACT,CAGA,MAGaG,EAAyC,CACpDJ,EAAQL,EAAAA,QAAY,mBAAmB,EACvCK,EAAQJ,EAAAA,QAAY,mBAAmB,CACzC,EAEaS,EAA6BD,EAAe,GAGzD,SAAgBE,EAAa,EAAuC,CAClE,OAAOF,EAAe,KAAM,GAAUH,EAAM,OAASM,CAAI,CAC3D"}
|
|
1
|
+
{"version":3,"file":"builtinThemes.cjs","names":["parseThemeConfig","poOneLight","poNordDark","require_po_nord_dark","require_po_one_light","require_parse","shipped","theme","input","file","BUILTIN_THEMES","DEFAULT_THEME","builtinTheme","name"],"sources":["../../../src/theme/builtinThemes.ts"],"sourcesContent":["import poNordDark from '../../themes/po-nord-dark.json' with { type: 'json' };\nimport poOneLight from '../../themes/po-one-light.json' with { type: 'json' };\nimport type { ThemeConfig } from '../types/theme';\nimport { parseThemeConfig } from './parse';\n\nfunction shipped(input: unknown, file: string): ThemeConfig {\n const theme = parseThemeConfig(input);\n if (theme === null) throw new Error(`The shipped theme ${file} is malformed.`);\n return theme;\n}\n\n/** The theme the cockpit renders with until a preference says otherwise. */\nexport const DEFAULT_THEME_NAME = 'po-one-light';\n\n/** The themes this package ships, default first. */\nexport const BUILTIN_THEMES: readonly ThemeConfig[] = [\n shipped(poOneLight, 'po-one-light.json'),\n shipped(poNordDark, 'po-nord-dark.json'),\n];\n\nexport const DEFAULT_THEME: ThemeConfig = BUILTIN_THEMES[0];\n\n/** A shipped theme by name, or undefined for a name nothing shipped under. */\nexport function builtinTheme(name: string): ThemeConfig | undefined {\n return BUILTIN_THEMES.find((theme) => theme.name === name);\n}\n"],"mappings":"A,qHAKA,SAASM,EAAQ,EAAgB,EAA2B,CAC1D,IAAMC,EAAQP,EAAAA,iBAAiBQ,CAAK,EACpC,GAAID,IAAU,KAAM,MAAU,MAAM,qBAAqBE,EAAK,eAAe,EAC7E,OAAOF,CACT,CAGA,MAGaG,EAAyC,CACpDJ,EAAQL,EAAAA,QAAY,mBAAmB,EACvCK,EAAQJ,EAAAA,QAAY,mBAAmB,CACzC,EAEaS,EAA6BD,EAAe,GAGzD,SAAgBE,EAAa,EAAuC,CAClE,OAAOF,EAAe,KAAM,GAAUH,EAAM,OAASM,CAAI,CAC3D,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive.cjs","names":["ACCENT_TOKENS","require_theme","DEFAULT_FONT_MONO","derivedFallback","token","kind","accent","derivedTokens","tokens","tokenValue","own","theme"],"sources":["../../../src/theme/derive.ts"],"sourcesContent":["import { ACCENT_TOKENS, type AccentToken, type DerivedToken, type ThemeConfig, type ThemeToken } from '../types/theme';\n\n/** How much of an accent goes into its tinted background; the rest is the panel. */\nexport const TINT_MIX_PERCENT = 16;\n/** How much of an accent goes into its accented border; the rest is the border. */\nexport const EDGE_MIX_PERCENT = 40;\n/** How much of the selection tints its foreground; the rest is white, so the label stays legible on it. */\nexport const ON_SELECTED_MIX_PERCENT = 12;\n\nexport const DEFAULT_FONT_MONO =\n \"'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace\";\n\n/**\n * A derived token's fallback: a CSS colour expression over the palette, so a\n * theme that supplies only its palette still gets coherent tints and edges.\n */\nexport function derivedFallback(token: DerivedToken): string {\n if (token === 'font-mono') return DEFAULT_FONT_MONO;\n if (token === 'on-selected')\n return `color-mix(in srgb, var(--po-selected) ${String(ON_SELECTED_MIX_PERCENT)}%, white)`;\n const [kind, accent] = token.split('-') as ['tint' | 'edge', AccentToken];\n return kind === 'tint'\n ? `color-mix(in srgb, var(--po-${accent}) ${String(TINT_MIX_PERCENT)}%, var(--po-panel))`\n : `color-mix(in srgb, var(--po-${accent}) ${String(EDGE_MIX_PERCENT)}%, var(--po-border))`;\n}\n\n/** Every derived token, in a stable order. */\nexport function derivedTokens(): DerivedToken[] {\n const tokens: DerivedToken[] = [];\n for (const accent of ACCENT_TOKENS) tokens.push(`tint-${accent}`);\n for (const accent of ACCENT_TOKENS) tokens.push(`edge-${accent}`);\n tokens.push('on-selected', 'font-mono');\n return tokens;\n}\n\n/** The value a theme publishes for a token: its own, or the derived fallback. */\nexport function tokenValue(theme: ThemeConfig, token: ThemeToken): string {\n const own = (theme.tokens as Partial<Record<ThemeToken, string>>)[token];\n if (own !== undefined) return own;\n return derivedFallback(token as DerivedToken);\n}\n"],"mappings":"sCASaE,EACX,mHAMF,SAAgBC,EAAgB,EAA6B,CAC3D,GAAIC,IAAU,YAAa,OAAOF,EAClC,GAAIE,IAAU,cACZ,MAAO,oDACT,GAAM,CAACC,EAAMC,GAAUF,EAAM,MAAM,GAAG,EACtC,OAAOC,IAAS,OACZ,+BAA+BC,EAAO,yBACtC,+BAA+BA,EAAO,yBAC5C,CAGA,SAAgBC,GAAgC,CAC9C,IAAMC,EAAyB,CAAC,EAChC,IAAK,IAAMF,KAAUN,EAAAA,cAAeQ,EAAO,KAAK,QAAQF,GAAQ,EAChE,IAAK,IAAMA,KAAUN,EAAAA,cAAeQ,EAAO,KAAK,QAAQF,GAAQ,EAEhE,OADAE,EAAO,KAAK,cAAe,WAAW,EAC/BA,CACT,CAGA,SAAgBC,EAAW,EAAoB,EAA2B,CACxE,IAAMC,EAAOC,EAAM,OAA+CP,GAElE,OADIM,IAAQ,IAAA,GACLP,EAAgBC,CAAqB,EADdM,CAEhC"}
|
|
1
|
+
{"version":3,"file":"derive.cjs","names":["ACCENT_TOKENS","require_theme","DEFAULT_FONT_MONO","derivedFallback","token","kind","accent","derivedTokens","tokens","tokenValue","own","theme"],"sources":["../../../src/theme/derive.ts"],"sourcesContent":["import { ACCENT_TOKENS, type AccentToken, type DerivedToken, type ThemeConfig, type ThemeToken } from '../types/theme';\n\n/** How much of an accent goes into its tinted background; the rest is the panel. */\nexport const TINT_MIX_PERCENT = 16;\n/** How much of an accent goes into its accented border; the rest is the border. */\nexport const EDGE_MIX_PERCENT = 40;\n/** How much of the selection tints its foreground; the rest is white, so the label stays legible on it. */\nexport const ON_SELECTED_MIX_PERCENT = 12;\n\nexport const DEFAULT_FONT_MONO =\n \"'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace\";\n\n/**\n * A derived token's fallback: a CSS colour expression over the palette, so a\n * theme that supplies only its palette still gets coherent tints and edges.\n */\nexport function derivedFallback(token: DerivedToken): string {\n if (token === 'font-mono') return DEFAULT_FONT_MONO;\n if (token === 'on-selected')\n return `color-mix(in srgb, var(--po-selected) ${String(ON_SELECTED_MIX_PERCENT)}%, white)`;\n const [kind, accent] = token.split('-') as ['tint' | 'edge', AccentToken];\n return kind === 'tint'\n ? `color-mix(in srgb, var(--po-${accent}) ${String(TINT_MIX_PERCENT)}%, var(--po-panel))`\n : `color-mix(in srgb, var(--po-${accent}) ${String(EDGE_MIX_PERCENT)}%, var(--po-border))`;\n}\n\n/** Every derived token, in a stable order. */\nexport function derivedTokens(): DerivedToken[] {\n const tokens: DerivedToken[] = [];\n for (const accent of ACCENT_TOKENS) tokens.push(`tint-${accent}`);\n for (const accent of ACCENT_TOKENS) tokens.push(`edge-${accent}`);\n tokens.push('on-selected', 'font-mono');\n return tokens;\n}\n\n/** The value a theme publishes for a token: its own, or the derived fallback. */\nexport function tokenValue(theme: ThemeConfig, token: ThemeToken): string {\n const own = (theme.tokens as Partial<Record<ThemeToken, string>>)[token];\n if (own !== undefined) return own;\n return derivedFallback(token as DerivedToken);\n}\n"],"mappings":"A,sCASaE,EACX,mHAMF,SAAgBC,EAAgB,EAA6B,CAC3D,GAAIC,IAAU,YAAa,OAAOF,EAClC,GAAIE,IAAU,cACZ,MAAO,oDACT,GAAM,CAACC,EAAMC,GAAUF,EAAM,MAAM,GAAG,EACtC,OAAOC,IAAS,OACZ,+BAA+BC,EAAO,yBACtC,+BAA+BA,EAAO,yBAC5C,CAGA,SAAgBC,GAAgC,CAC9C,IAAMC,EAAyB,CAAC,EAChC,IAAK,IAAMF,KAAUN,EAAAA,cAAeQ,EAAO,KAAK,QAAQF,GAAQ,EAChE,IAAK,IAAMA,KAAUN,EAAAA,cAAeQ,EAAO,KAAK,QAAQF,GAAQ,EAEhE,OADAE,EAAO,KAAK,cAAe,WAAW,EAC/BA,CACT,CAGA,SAAgBC,EAAW,EAAoB,EAA2B,CACxE,IAAMC,EAAOC,EAAM,OAA+CP,GAElE,OADIM,IAAQ,IAAA,GACLP,EAAgBC,CAAqB,EADdM,CAEhC,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeTheme.cjs","names":["PALETTE_TOKENS","ACCENT_TOKENS","builtinTheme","require_theme","require_builtinThemes","NATIVE_RADII","NATIVE_BORDER_RADIUS","NATIVE_TYPE_RAMP","NATIVE_LETTER_SPACING_EM","NATIVE_LEADING_RELAXED","NATIVE_FONT_WEIGHT","NATIVE_MOTION","NATIVE_FONT_FAMILY","HEX_COLOR","hexChannels","hex","digits","digit","offset","mixHex","weight","percent","a","first","b","second","mixed","channel","index","withAlpha","alpha","rampValues","values","step","pick","nativeTheme","pinned","config","colors","token","resolve","fallback","accent","steps","em","shippedNative","theme","name","NATIVE_THEMES"],"sources":["../../../src/theme/nativeTheme.ts"],"sourcesContent":["import { ACCENT_TOKENS, PALETTE_TOKENS, type ThemeConfig, type ThemeScheme, type ThemeToken } from '../types/theme';\nimport { builtinTheme } from './builtinThemes';\nimport { EDGE_MIX_PERCENT, ON_SELECTED_MIX_PERCENT, TINT_MIX_PERCENT } from './derive';\n\n/*\n * The React Native copy of the web theme. Native styles cannot read CSS\n * custom properties or evaluate color-mix(), so this module resolves the same\n * tokens to plain values. The scales below mirror styles/theme.css by hand\n * (CSS cannot import TypeScript); tests/nativeTheme.test.ts fails when the two\n * drift.\n *\n * ponytail: bundle IBM Plex Sans and JetBrains Mono through expo-font when the\n * native visual review starts; until then the named families fall back to the\n * platform fonts below.\n * ponytail: add a native theme picker later; the shell follows the system\n * scheme between `light` and `dark` for now.\n * ponytail: `--tracking-*` (tracked uppercase micro-labels) is not ported;\n * docs/design.md bans tracked uppercase on new surfaces.\n * ponytail: `shadow-2xl` is not ported; native surfaces (sheets, modals,\n * headers) draw their own platform shadows.\n */\n\n/** The spacing unit, matching `--spacing: 0.25rem` at a 16px root. */\nexport const NATIVE_SPACING_BASE = 4;\n\n/** Corner radii in px, matching `--radius-*`. */\nexport const NATIVE_RADII = { xs: 2, sm: 3, md: 5, lg: 10 } as const;\n\n/**\n * Every radius a native style may name: the retunable `--radius-*` steps, plus\n * Tailwind's hardcoded bare `rounded` (4px) and `rounded-full`.\n */\nexport const NATIVE_BORDER_RADIUS = { ...NATIVE_RADII, DEFAULT: 4, full: 9999 } as const;\n\n/** The type ramp, matching `--text-*` (px) and `--text-*--line-height` (a multiple of the size). */\nexport const NATIVE_TYPE_RAMP = {\n '2xs': { size: 9, leading: 1.45 },\n xs: { size: 10, leading: 1.45 },\n sm: { size: 12, leading: 1.45 },\n base: { size: 13, leading: 1.5 },\n lg: { size: 15, leading: 1.4 },\n xl: { size: 18, leading: 1.3 },\n '2xl': { size: 22, leading: 1.25 },\n '3xl': { size: 28, leading: 1.2 },\n} as const;\n\n/** Title tracking in em, matching `--text-*--letter-spacing`; steps not listed track at 0. */\nexport const NATIVE_LETTER_SPACING_EM = { xl: -0.01, '2xl': -0.01, '3xl': -0.01 } as const;\n\n/** Tailwind's `leading-relaxed` multiple, which theme.css does not override. */\nexport const NATIVE_LEADING_RELAXED = 1.625;\n\n/** Font weights as React Native takes them, matching `font-normal`, `font-medium` and `font-semibold`. */\nexport const NATIVE_FONT_WEIGHT = { regular: '400', medium: '500', semibold: '600' } as const;\n\n/**\n * Durations in ms and the shared easing curve of `--animate-po-*`. `slide`\n * covers both slide directions; `easing` is the `cubic-bezier()` control points\n * for Reanimated's `Easing.bezier`.\n */\nexport const NATIVE_MOTION = {\n fade: 140,\n pop: 160,\n rise: 160,\n slide: 180,\n easing: [0.16, 1, 0.3, 1],\n} as const;\n\n/** A font as native styles name it: one family, plus the platform font to use until it is bundled. */\nexport interface NativeFontStack {\n family: string;\n ios: string;\n android: string;\n}\n\n/** The sans and mono families of `--font-sans` and `--po-font-mono`, with system fallbacks. */\nexport const NATIVE_FONT_FAMILY: { readonly sans: NativeFontStack; readonly mono: NativeFontStack } = {\n sans: { family: 'IBM Plex Sans', ios: 'System', android: 'sans-serif' },\n mono: { family: 'JetBrains Mono', ios: 'Menlo', android: 'monospace' },\n};\n\n/** The foreground `on-selected` mixes toward, as `white` in derive.ts. */\nconst ON_SELECTED_BASE = '#ffffff';\nconst HEX_COLOR = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;\nconst PERCENT = 100;\nconst CHANNEL_MAX = 255;\n/** Rounds px values to hundredths so `18 * -0.01` reads -0.18, not a float tail. */\nconst PX_PRECISION = 100;\n\nexport type NativeColorToken = Exclude<ThemeToken, 'font-mono'>;\nexport type NativeTypeStep = keyof typeof NATIVE_TYPE_RAMP;\nexport type NativeNamedTheme = 'dark' | 'light';\n\nexport interface PoNativeTheme {\n scheme: ThemeScheme;\n colors: Record<NativeColorToken, string>;\n /** `spacing(n)` is n steps of the 4px base, as Tailwind's `p-n`. */\n spacing: (steps: number) => number;\n borderRadius: typeof NATIVE_BORDER_RADIUS;\n fontSize: Record<NativeTypeStep, number>;\n /** Absolute line heights in px, since native styles take no unitless multiple. */\n lineHeight: Record<NativeTypeStep, number>;\n /** `leading-relaxed` line heights in px, for reading text such as markdown bodies. */\n lineHeightRelaxed: Record<NativeTypeStep, number>;\n /** Letter spacing in px per step; titles track slightly tight, the rest at 0. */\n letterSpacing: Record<NativeTypeStep, number>;\n fontWeight: typeof NATIVE_FONT_WEIGHT;\n fontFamily: typeof NATIVE_FONT_FAMILY;\n motion: typeof NATIVE_MOTION;\n}\n\nfunction hexChannels(hex: string): [number, number, number] {\n if (!HEX_COLOR.test(hex)) throw new Error(`Native themes need hex colours; got \"${hex}\".`);\n const digits =\n hex.length === 4\n ? hex\n .slice(1)\n .split('')\n .map((digit) => digit + digit)\n .join('')\n : hex.slice(1);\n return [0, 2, 4].map((offset) => Number.parseInt(digits.slice(offset, offset + 2), 16)) as [number, number, number];\n}\n\n/**\n * `color-mix(in srgb, first percent%, second)` for hex inputs: a straight\n * per-channel blend, rounded to the nearest 8-bit value.\n */\nexport function mixHex(first: string, percent: number, second: string): string {\n const weight = percent / PERCENT;\n const a = hexChannels(first);\n const b = hexChannels(second);\n return `#${a\n .map((channel, index) => {\n const mixed = Math.round(channel * weight + b[index]! * (1 - weight));\n return Math.min(CHANNEL_MAX, Math.max(0, mixed)).toString(16).padStart(2, '0');\n })\n .join('')}`;\n}\n\n/**\n * A hex colour at `percent` opacity as `#rrggbbaa`: the native form of\n * Tailwind's `/40`-style opacity modifiers.\n */\nexport function withAlpha(hex: string, percent: number): string {\n const alpha = Math.min(CHANNEL_MAX, Math.max(0, Math.round((percent / PERCENT) * CHANNEL_MAX)));\n const channels = [...hexChannels(hex), alpha];\n return `#${channels.map((channel) => channel.toString(16).padStart(2, '0')).join('')}`;\n}\n\nfunction rampValues(pick: (step: NativeTypeStep) => number): Record<NativeTypeStep, number> {\n const values = {} as Record<NativeTypeStep, number>;\n for (const step of Object.keys(NATIVE_TYPE_RAMP) as NativeTypeStep[]) values[step] = pick(step);\n return values;\n}\n\n/** Resolves a web theme config to native values; tokens the theme pins win over the derived mix. */\nexport function nativeTheme(config: ThemeConfig): PoNativeTheme {\n const pinned = config.tokens as Partial<Record<ThemeToken, string>>;\n const colors = {} as Record<NativeColorToken, string>;\n for (const token of PALETTE_TOKENS) colors[token] = config.tokens[token];\n const resolve = (token: NativeColorToken, fallback: () => string): void => {\n colors[token] = pinned[token] ?? fallback();\n };\n for (const accent of ACCENT_TOKENS) {\n resolve(`tint-${accent}`, () => mixHex(colors[accent], TINT_MIX_PERCENT, colors.panel));\n }\n for (const accent of ACCENT_TOKENS) {\n resolve(`edge-${accent}`, () => mixHex(colors[accent], EDGE_MIX_PERCENT, colors.border));\n }\n resolve('on-selected', () => mixHex(colors.selected, ON_SELECTED_MIX_PERCENT, ON_SELECTED_BASE));\n\n return {\n scheme: config.scheme,\n colors,\n spacing: (steps) => steps * NATIVE_SPACING_BASE,\n borderRadius: NATIVE_BORDER_RADIUS,\n fontSize: rampValues((step) => NATIVE_TYPE_RAMP[step].size),\n lineHeight: rampValues((step) => Math.round(NATIVE_TYPE_RAMP[step].size * NATIVE_TYPE_RAMP[step].leading)),\n lineHeightRelaxed: rampValues((step) => Math.round(NATIVE_TYPE_RAMP[step].size * NATIVE_LEADING_RELAXED)),\n letterSpacing: rampValues((step) => {\n const em = (NATIVE_LETTER_SPACING_EM as Partial<Record<NativeTypeStep, number>>)[step] ?? 0;\n return Math.round(NATIVE_TYPE_RAMP[step].size * em * PX_PRECISION) / PX_PRECISION;\n }),\n fontWeight: NATIVE_FONT_WEIGHT,\n fontFamily: NATIVE_FONT_FAMILY,\n motion: NATIVE_MOTION,\n };\n}\n\nfunction shippedNative(name: string): PoNativeTheme {\n const theme = builtinTheme(name);\n if (theme === undefined) throw new Error(`The shipped theme ${name} is missing.`);\n return nativeTheme(theme);\n}\n\n/** The native themes by the names the native shell registers: `dark` and `light`. */\nexport const NATIVE_THEMES: Readonly<Record<NativeNamedTheme, PoNativeTheme>> = {\n dark: shippedNative('po-nord-dark'),\n light: shippedNative('po-one-light'),\n};\n"],"mappings":"+FAuBA,MAGaK,EAAe,CAAE,GAAI,EAAG,GAAI,EAAG,GAAI,EAAG,GAAI,EAAG,EAM7CC,EAAuB,CAAE,GAAGD,EAAc,QAAS,EAAG,KAAM,IAAK,EAGjEE,EAAmB,CAC9B,MAAO,CAAE,KAAM,EAAG,QAAS,IAAK,EAChC,GAAI,CAAE,KAAM,GAAI,QAAS,IAAK,EAC9B,GAAI,CAAE,KAAM,GAAI,QAAS,IAAK,EAC9B,KAAM,CAAE,KAAM,GAAI,QAAS,GAAI,EAC/B,GAAI,CAAE,KAAM,GAAI,QAAS,GAAI,EAC7B,GAAI,CAAE,KAAM,GAAI,QAAS,GAAI,EAC7B,MAAO,CAAE,KAAM,GAAI,QAAS,IAAK,EACjC,MAAO,CAAE,KAAM,GAAI,QAAS,GAAI,CAClC,EAGaC,EAA2B,CAAE,GAAI,KAAO,MAAO,KAAO,MAAO,IAAM,EAGnEC,EAAyB,MAGzBC,EAAqB,CAAE,QAAS,MAAO,OAAQ,MAAO,SAAU,KAAM,EAOtEC,EAAgB,CAC3B,KAAM,IACN,IAAK,IACL,KAAM,IACN,MAAO,IACP,OAAQ,CAAC,IAAM,EAAG,GAAK,CAAC,CAC1B,EAUaC,EAAyF,CACpG,KAAM,CAAE,OAAQ,gBAAiB,IAAK,SAAU,QAAS,YAAa,EACtE,KAAM,CAAE,OAAQ,iBAAkB,IAAK,QAAS,QAAS,WAAY,CACvE,EAIMC,EAAY,kCA4BlB,SAASC,EAAY,EAAuC,CAC1D,GAAI,CAACD,EAAU,KAAKE,CAAG,EAAG,MAAU,MAAM,wCAAwCA,EAAI,GAAG,EACzF,IAAMC,EACJD,EAAI,SAAW,EACXA,EACG,MAAM,CAAC,CAAC,CACR,MAAM,EAAE,CAAC,CACT,IAAK,GAAUE,EAAQA,CAAK,CAAC,CAC7B,KAAK,EAAE,EACVF,EAAI,MAAM,CAAC,EACjB,MAAO,CAAC,EAAG,EAAG,CAAC,CAAC,CAAC,IAAK,GAAW,OAAO,SAASC,EAAO,MAAME,EAAQA,EAAS,CAAC,EAAG,EAAE,CAAC,CACxF,CAMA,SAAgBC,EAAO,EAAe,EAAiB,EAAwB,CAC7E,IAAMC,EAASC,EAAU,IACnBC,EAAIR,EAAYS,CAAK,EACrBC,EAAIV,EAAYW,CAAM,EAC5B,MAAO,IAAIH,EACR,KAAK,EAAS,IAAU,CACvB,IAAMI,EAAQ,KAAK,MAAMC,EAAUP,EAASI,EAAEI,IAAW,EAAIR,EAAO,EACpE,OAAO,KAAK,IAAI,IAAa,KAAK,IAAI,EAAGM,CAAK,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,SAAS,EAAG,GAAG,CAC/E,CAAC,CAAC,CACD,KAAK,EAAE,GACZ,CAMA,SAAgBG,EAAU,EAAa,EAAyB,CAC9D,IAAMC,EAAQ,KAAK,IAAI,IAAa,KAAK,IAAI,EAAG,KAAK,MAAOT,EAAU,IAAW,GAAW,CAAC,CAAC,EAE9F,MAAO,IAAI,CADO,GAAGP,EAAYC,CAAG,EAAGe,CACrB,CAAC,CAAC,IAAK,GAAYH,EAAQ,SAAS,EAAE,CAAC,CAAC,SAAS,EAAG,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,GACrF,CAEA,SAASI,EAAW,EAAwE,CAC1F,IAAMC,EAAS,CAAC,EAChB,IAAK,IAAMC,KAAQ,OAAO,KAAK1B,CAAgB,EAAuB,EAAO0B,GAAQC,EAAKD,CAAI,EAC9F,OAAOD,CACT,CAGA,SAAgBG,EAAY,EAAoC,CAC9D,IAAMC,EAASC,EAAO,OAChBC,EAAS,CAAC,EAChB,IAAK,IAAMC,KAASvC,EAAAA,eAAgB,EAAOuC,GAASF,EAAO,OAAOE,GAClE,IAAMC,GAAW,EAAyB,IAAiC,CACzE,EAAOD,GAASH,EAAOG,IAAUE,EAAS,CAC5C,EACA,IAAK,IAAMC,KAAUzC,EAAAA,cACnBuC,EAAQ,QAAQE,QAAgBvB,EAAOmB,EAAOI,GAAA,GAA2BJ,EAAO,KAAK,CAAC,EAExF,IAAK,IAAMI,KAAUzC,EAAAA,cACnBuC,EAAQ,QAAQE,QAAgBvB,EAAOmB,EAAOI,GAAA,GAA2BJ,EAAO,MAAM,CAAC,EAIzF,OAFAE,EAAQ,kBAAqBrB,EAAOmB,EAAO,SAAA,GAAmC,SAAgB,CAAC,EAExF,CACL,OAAQD,EAAO,OACf,SACA,QAAU,GAAUM,EAAA,EACpB,aAAcrC,EACd,SAAUyB,EAAY,GAASxB,EAAiB0B,EAAK,CAAC,IAAI,EAC1D,WAAYF,EAAY,GAAS,KAAK,MAAMxB,EAAiB0B,EAAK,CAAC,KAAO1B,EAAiB0B,EAAK,CAAC,OAAO,CAAC,EACzG,kBAAmBF,EAAY,GAAS,KAAK,MAAMxB,EAAiB0B,EAAK,CAAC,KAAOxB,CAAsB,CAAC,EACxG,cAAesB,EAAY,GAAS,CAClC,IAAMa,EAAMpC,EAAqEyB,IAAS,EAC1F,OAAO,KAAK,MAAM1B,EAAiB0B,EAAK,CAAC,KAAOW,EAAK,GAAY,EAAI,GACvE,CAAC,EACD,WAAYlC,EACZ,WAAYE,EACZ,OAAQD,CACV,CACF,CAEA,SAASkC,EAAc,EAA6B,CAClD,IAAMC,EAAQ5C,EAAAA,aAAa6C,CAAI,EAC/B,GAAID,IAAU,IAAA,GAAW,MAAU,MAAM,qBAAqBC,EAAK,aAAa,EAChF,OAAOZ,EAAYW,CAAK,CAC1B,CAGA,MAAaE,EAAmE,CAC9E,KAAMH,EAAc,cAAc,EAClC,MAAOA,EAAc,cAAc,CACrC"}
|
|
1
|
+
{"version":3,"file":"nativeTheme.cjs","names":["PALETTE_TOKENS","ACCENT_TOKENS","builtinTheme","require_theme","require_builtinThemes","NATIVE_RADII","NATIVE_BORDER_RADIUS","NATIVE_TYPE_RAMP","NATIVE_LETTER_SPACING_EM","NATIVE_LEADING_RELAXED","NATIVE_FONT_WEIGHT","NATIVE_MOTION","NATIVE_FONT_FAMILY","HEX_COLOR","hexChannels","hex","digits","digit","offset","mixHex","weight","percent","a","first","b","second","mixed","channel","index","withAlpha","alpha","rampValues","values","step","pick","nativeTheme","pinned","config","colors","token","resolve","fallback","accent","steps","em","shippedNative","theme","name","NATIVE_THEMES"],"sources":["../../../src/theme/nativeTheme.ts"],"sourcesContent":["import { ACCENT_TOKENS, PALETTE_TOKENS, type ThemeConfig, type ThemeScheme, type ThemeToken } from '../types/theme';\nimport { builtinTheme } from './builtinThemes';\nimport { EDGE_MIX_PERCENT, ON_SELECTED_MIX_PERCENT, TINT_MIX_PERCENT } from './derive';\n\n/*\n * The React Native copy of the web theme. Native styles cannot read CSS\n * custom properties or evaluate color-mix(), so this module resolves the same\n * tokens to plain values. The scales below mirror styles/theme.css by hand\n * (CSS cannot import TypeScript); tests/nativeTheme.test.ts fails when the two\n * drift.\n *\n * ponytail: bundle IBM Plex Sans and JetBrains Mono through expo-font when the\n * native visual review starts; until then the named families fall back to the\n * platform fonts below.\n * ponytail: add a native theme picker later; the shell follows the system\n * scheme between `light` and `dark` for now.\n * ponytail: `--tracking-*` (tracked uppercase micro-labels) is not ported;\n * docs/design.md bans tracked uppercase on new surfaces.\n * ponytail: `shadow-2xl` is not ported; native surfaces (sheets, modals,\n * headers) draw their own platform shadows.\n */\n\n/** The spacing unit, matching `--spacing: 0.25rem` at a 16px root. */\nexport const NATIVE_SPACING_BASE = 4;\n\n/** Corner radii in px, matching `--radius-*`. */\nexport const NATIVE_RADII = { xs: 2, sm: 3, md: 5, lg: 10 } as const;\n\n/**\n * Every radius a native style may name: the retunable `--radius-*` steps, plus\n * Tailwind's hardcoded bare `rounded` (4px) and `rounded-full`.\n */\nexport const NATIVE_BORDER_RADIUS = { ...NATIVE_RADII, DEFAULT: 4, full: 9999 } as const;\n\n/** The type ramp, matching `--text-*` (px) and `--text-*--line-height` (a multiple of the size). */\nexport const NATIVE_TYPE_RAMP = {\n '2xs': { size: 9, leading: 1.45 },\n xs: { size: 10, leading: 1.45 },\n sm: { size: 12, leading: 1.45 },\n base: { size: 13, leading: 1.5 },\n lg: { size: 15, leading: 1.4 },\n xl: { size: 18, leading: 1.3 },\n '2xl': { size: 22, leading: 1.25 },\n '3xl': { size: 28, leading: 1.2 },\n} as const;\n\n/** Title tracking in em, matching `--text-*--letter-spacing`; steps not listed track at 0. */\nexport const NATIVE_LETTER_SPACING_EM = { xl: -0.01, '2xl': -0.01, '3xl': -0.01 } as const;\n\n/** Tailwind's `leading-relaxed` multiple, which theme.css does not override. */\nexport const NATIVE_LEADING_RELAXED = 1.625;\n\n/** Font weights as React Native takes them, matching `font-normal`, `font-medium` and `font-semibold`. */\nexport const NATIVE_FONT_WEIGHT = { regular: '400', medium: '500', semibold: '600' } as const;\n\n/**\n * Durations in ms and the shared easing curve of `--animate-po-*`. `slide`\n * covers both slide directions; `easing` is the `cubic-bezier()` control points\n * for Reanimated's `Easing.bezier`.\n */\nexport const NATIVE_MOTION = {\n fade: 140,\n pop: 160,\n rise: 160,\n slide: 180,\n easing: [0.16, 1, 0.3, 1],\n} as const;\n\n/** A font as native styles name it: one family, plus the platform font to use until it is bundled. */\nexport interface NativeFontStack {\n family: string;\n ios: string;\n android: string;\n}\n\n/** The sans and mono families of `--font-sans` and `--po-font-mono`, with system fallbacks. */\nexport const NATIVE_FONT_FAMILY: { readonly sans: NativeFontStack; readonly mono: NativeFontStack } = {\n sans: { family: 'IBM Plex Sans', ios: 'System', android: 'sans-serif' },\n mono: { family: 'JetBrains Mono', ios: 'Menlo', android: 'monospace' },\n};\n\n/** The foreground `on-selected` mixes toward, as `white` in derive.ts. */\nconst ON_SELECTED_BASE = '#ffffff';\nconst HEX_COLOR = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;\nconst PERCENT = 100;\nconst CHANNEL_MAX = 255;\n/** Rounds px values to hundredths so `18 * -0.01` reads -0.18, not a float tail. */\nconst PX_PRECISION = 100;\n\nexport type NativeColorToken = Exclude<ThemeToken, 'font-mono'>;\nexport type NativeTypeStep = keyof typeof NATIVE_TYPE_RAMP;\nexport type NativeNamedTheme = 'dark' | 'light';\n\nexport interface PoNativeTheme {\n scheme: ThemeScheme;\n colors: Record<NativeColorToken, string>;\n /** `spacing(n)` is n steps of the 4px base, as Tailwind's `p-n`. */\n spacing: (steps: number) => number;\n borderRadius: typeof NATIVE_BORDER_RADIUS;\n fontSize: Record<NativeTypeStep, number>;\n /** Absolute line heights in px, since native styles take no unitless multiple. */\n lineHeight: Record<NativeTypeStep, number>;\n /** `leading-relaxed` line heights in px, for reading text such as markdown bodies. */\n lineHeightRelaxed: Record<NativeTypeStep, number>;\n /** Letter spacing in px per step; titles track slightly tight, the rest at 0. */\n letterSpacing: Record<NativeTypeStep, number>;\n fontWeight: typeof NATIVE_FONT_WEIGHT;\n fontFamily: typeof NATIVE_FONT_FAMILY;\n motion: typeof NATIVE_MOTION;\n}\n\nfunction hexChannels(hex: string): [number, number, number] {\n if (!HEX_COLOR.test(hex)) throw new Error(`Native themes need hex colours; got \"${hex}\".`);\n const digits =\n hex.length === 4\n ? hex\n .slice(1)\n .split('')\n .map((digit) => digit + digit)\n .join('')\n : hex.slice(1);\n return [0, 2, 4].map((offset) => Number.parseInt(digits.slice(offset, offset + 2), 16)) as [number, number, number];\n}\n\n/**\n * `color-mix(in srgb, first percent%, second)` for hex inputs: a straight\n * per-channel blend, rounded to the nearest 8-bit value.\n */\nexport function mixHex(first: string, percent: number, second: string): string {\n const weight = percent / PERCENT;\n const a = hexChannels(first);\n const b = hexChannels(second);\n return `#${a\n .map((channel, index) => {\n const mixed = Math.round(channel * weight + b[index]! * (1 - weight));\n return Math.min(CHANNEL_MAX, Math.max(0, mixed)).toString(16).padStart(2, '0');\n })\n .join('')}`;\n}\n\n/**\n * A hex colour at `percent` opacity as `#rrggbbaa`: the native form of\n * Tailwind's `/40`-style opacity modifiers.\n */\nexport function withAlpha(hex: string, percent: number): string {\n const alpha = Math.min(CHANNEL_MAX, Math.max(0, Math.round((percent / PERCENT) * CHANNEL_MAX)));\n const channels = [...hexChannels(hex), alpha];\n return `#${channels.map((channel) => channel.toString(16).padStart(2, '0')).join('')}`;\n}\n\nfunction rampValues(pick: (step: NativeTypeStep) => number): Record<NativeTypeStep, number> {\n const values = {} as Record<NativeTypeStep, number>;\n for (const step of Object.keys(NATIVE_TYPE_RAMP) as NativeTypeStep[]) values[step] = pick(step);\n return values;\n}\n\n/** Resolves a web theme config to native values; tokens the theme pins win over the derived mix. */\nexport function nativeTheme(config: ThemeConfig): PoNativeTheme {\n const pinned = config.tokens as Partial<Record<ThemeToken, string>>;\n const colors = {} as Record<NativeColorToken, string>;\n for (const token of PALETTE_TOKENS) colors[token] = config.tokens[token];\n const resolve = (token: NativeColorToken, fallback: () => string): void => {\n colors[token] = pinned[token] ?? fallback();\n };\n for (const accent of ACCENT_TOKENS) {\n resolve(`tint-${accent}`, () => mixHex(colors[accent], TINT_MIX_PERCENT, colors.panel));\n }\n for (const accent of ACCENT_TOKENS) {\n resolve(`edge-${accent}`, () => mixHex(colors[accent], EDGE_MIX_PERCENT, colors.border));\n }\n resolve('on-selected', () => mixHex(colors.selected, ON_SELECTED_MIX_PERCENT, ON_SELECTED_BASE));\n\n return {\n scheme: config.scheme,\n colors,\n spacing: (steps) => steps * NATIVE_SPACING_BASE,\n borderRadius: NATIVE_BORDER_RADIUS,\n fontSize: rampValues((step) => NATIVE_TYPE_RAMP[step].size),\n lineHeight: rampValues((step) => Math.round(NATIVE_TYPE_RAMP[step].size * NATIVE_TYPE_RAMP[step].leading)),\n lineHeightRelaxed: rampValues((step) => Math.round(NATIVE_TYPE_RAMP[step].size * NATIVE_LEADING_RELAXED)),\n letterSpacing: rampValues((step) => {\n const em = (NATIVE_LETTER_SPACING_EM as Partial<Record<NativeTypeStep, number>>)[step] ?? 0;\n return Math.round(NATIVE_TYPE_RAMP[step].size * em * PX_PRECISION) / PX_PRECISION;\n }),\n fontWeight: NATIVE_FONT_WEIGHT,\n fontFamily: NATIVE_FONT_FAMILY,\n motion: NATIVE_MOTION,\n };\n}\n\nfunction shippedNative(name: string): PoNativeTheme {\n const theme = builtinTheme(name);\n if (theme === undefined) throw new Error(`The shipped theme ${name} is missing.`);\n return nativeTheme(theme);\n}\n\n/** The native themes by the names the native shell registers: `dark` and `light`. */\nexport const NATIVE_THEMES: Readonly<Record<NativeNamedTheme, PoNativeTheme>> = {\n dark: shippedNative('po-nord-dark'),\n light: shippedNative('po-one-light'),\n};\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.cjs","names":["PALETTE_TOKENS","DERIVED_TOKENS","require_theme","THEME_NAME","CSS_COLOR","isRecord","value","parseThemeConfig","input","name","label","scheme","tokens","accepted","token"],"sources":["../../../src/theme/parse.ts"],"sourcesContent":["import { DERIVED_TOKENS, PALETTE_TOKENS, type ThemeConfig, type ThemeScheme } from '../types/theme';\n\nconst THEME_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;\n/** A CSS colour as a theme may spell it: hex, a colour function, or a named colour; never a url or an image. */\nconst CSS_COLOR =\n /^(?:#[0-9a-f]{3,8}|(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\\((?:[^()]|\\([^()]*\\))*\\)|[a-z]+)$/i;\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\n/**\n * Validates a theme config read from JSON. Returns null rather than throwing\n * because a bad theme file must never take the cockpit down; the caller falls\n * back to the shipped default and says so.\n */\nexport function parseThemeConfig(input: unknown): ThemeConfig | null {\n if (!isRecord(input)) return null;\n const { name, label, scheme, tokens } = input;\n if (typeof name !== 'string' || !THEME_NAME.test(name)) return null;\n if (typeof label !== 'string' || label.trim() === '') return null;\n if (scheme !== 'dark' && scheme !== 'light') return null;\n if (!isRecord(tokens)) return null;\n\n const accepted: Record<string, string> = {};\n for (const token of PALETTE_TOKENS) {\n const value = tokens[token];\n if (typeof value !== 'string' || !CSS_COLOR.test(value.trim())) return null;\n accepted[token] = value.trim();\n }\n for (const token of DERIVED_TOKENS) {\n const value = tokens[token];\n if (value === undefined) continue;\n if (typeof value !== 'string' || value.trim() === '') return null;\n accepted[token] = value.trim();\n }\n return { name, label, scheme: scheme as ThemeScheme, tokens: accepted as ThemeConfig['tokens'] };\n}\n"],"mappings":"sCAEMG,EAAa,6BAEbC,EACJ,iIAEF,SAASC,EAAS,EAAkD,CAClE,OAAO,OAAOC,GAAU,YAAYA,GAAkB,CAAC,MAAM,QAAQA,CAAK,CAC5E,CAOA,SAAgBC,EAAiB,EAAoC,CACnE,GAAI,CAACF,EAASG,CAAK,EAAG,OAAO,KAC7B,GAAM,CAAE,OAAM,QAAO,SAAQ,UAAWA,EAIxC,GAHI,OAAOC,GAAS,UAAY,CAACN,EAAW,KAAKM,CAAI,GACjD,OAAOC,GAAU,UAAYA,EAAM,KAAK,IAAM,IAC9CC,IAAW,QAAUA,IAAW,SAChC,CAACN,EAASO,CAAM,EAAG,OAAO,KAE9B,IAAMC,EAAmC,CAAC,EAC1C,IAAK,IAAMC,KAASd,EAAAA,eAAgB,CAClC,IAAMM,EAAQM,EAAOE,GACrB,GAAI,OAAOR,GAAU,UAAY,CAACF,EAAU,KAAKE,EAAM,KAAK,CAAC,EAAG,OAAO,KACvE,EAASQ,GAASR,EAAM,KAAK,CAC/B,CACA,IAAK,IAAMQ,KAASb,EAAAA,eAAgB,CAClC,IAAMK,EAAQM,EAAOE,GACrB,GAAIR,IAAU,IAAA,GACd,IAAI,OAAOA,GAAU,UAAYA,EAAM,KAAK,IAAM,GAAI,OAAO,KAC7D,EAASQ,GAASR,EAAM,KAAK,CADgC,CAE/D,CACA,MAAO,CAAE,OAAM,QAAe,SAAuB,OAAQO,CAAkC,CACjG"}
|
|
1
|
+
{"version":3,"file":"parse.cjs","names":["PALETTE_TOKENS","DERIVED_TOKENS","require_theme","THEME_NAME","CSS_COLOR","isRecord","value","parseThemeConfig","input","name","label","scheme","tokens","accepted","token"],"sources":["../../../src/theme/parse.ts"],"sourcesContent":["import { DERIVED_TOKENS, PALETTE_TOKENS, type ThemeConfig, type ThemeScheme } from '../types/theme';\n\nconst THEME_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;\n/** A CSS colour as a theme may spell it: hex, a colour function, or a named colour; never a url or an image. */\nconst CSS_COLOR =\n /^(?:#[0-9a-f]{3,8}|(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\\((?:[^()]|\\([^()]*\\))*\\)|[a-z]+)$/i;\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\n/**\n * Validates a theme config read from JSON. Returns null rather than throwing\n * because a bad theme file must never take the cockpit down; the caller falls\n * back to the shipped default and says so.\n */\nexport function parseThemeConfig(input: unknown): ThemeConfig | null {\n if (!isRecord(input)) return null;\n const { name, label, scheme, tokens } = input;\n if (typeof name !== 'string' || !THEME_NAME.test(name)) return null;\n if (typeof label !== 'string' || label.trim() === '') return null;\n if (scheme !== 'dark' && scheme !== 'light') return null;\n if (!isRecord(tokens)) return null;\n\n const accepted: Record<string, string> = {};\n for (const token of PALETTE_TOKENS) {\n const value = tokens[token];\n if (typeof value !== 'string' || !CSS_COLOR.test(value.trim())) return null;\n accepted[token] = value.trim();\n }\n for (const token of DERIVED_TOKENS) {\n const value = tokens[token];\n if (value === undefined) continue;\n if (typeof value !== 'string' || value.trim() === '') return null;\n accepted[token] = value.trim();\n }\n return { name, label, scheme: scheme as ThemeScheme, tokens: accepted as ThemeConfig['tokens'] };\n}\n"],"mappings":"A,sCAEMG,EAAa,6BAEbC,EACJ,iIAEF,SAASC,EAAS,EAAkD,CAClE,OAAO,OAAOC,GAAU,YAAYA,GAAkB,CAAC,MAAM,QAAQA,CAAK,CAC5E,CAOA,SAAgBC,EAAiB,EAAoC,CACnE,GAAI,CAACF,EAASG,CAAK,EAAG,OAAO,KAC7B,GAAM,CAAE,OAAM,QAAO,SAAQ,UAAWA,EAIxC,GAHI,OAAOC,GAAS,UAAY,CAACN,EAAW,KAAKM,CAAI,GACjD,OAAOC,GAAU,UAAYA,EAAM,KAAK,IAAM,IAC9CC,IAAW,QAAUA,IAAW,SAChC,CAACN,EAASO,CAAM,EAAG,OAAO,KAE9B,IAAMC,EAAmC,CAAC,EAC1C,IAAK,IAAMC,KAASd,EAAAA,eAAgB,CAClC,IAAMM,EAAQM,EAAOE,GACrB,GAAI,OAAOR,GAAU,UAAY,CAACF,EAAU,KAAKE,EAAM,KAAK,CAAC,EAAG,OAAO,KACvE,EAASQ,GAASR,EAAM,KAAK,CAC/B,CACA,IAAK,IAAMQ,KAASb,EAAAA,eAAgB,CAClC,IAAMK,EAAQM,EAAOE,GACrB,GAAIR,IAAU,IAAA,GACd,IAAI,OAAOA,GAAU,UAAYA,EAAM,KAAK,IAAM,GAAI,OAAO,KAC7D,EAASQ,GAASR,EAAM,KAAK,CADgC,CAE/D,CACA,MAAO,CAAE,OAAM,QAAe,SAAuB,OAAQO,CAAkC,CACjG,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"piTheme.cjs","names":["parseThemeConfig","require_parse","isRecord","value","hexLuminance","match","hex","g","b","resolve","reference","vars","themeFromPiTheme","input","palette","key","semantic","colors","bg","bgAlt","fg","luminance","scheme","options","deep","border","themeName","name"],"sources":["../../../src/theme/piTheme.ts"],"sourcesContent":["import type { ThemeConfig, ThemeScheme } from '../types/theme';\nimport { parseThemeConfig } from './parse';\n\n/**\n * The Pi TUI theme shape (theme-schema.json): a palette of named vars and\n * semantic colours that name a var or spell a colour.\n */\ninterface PiThemeLike {\n name?: unknown;\n vars?: unknown;\n colors?: unknown;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction hexLuminance(hex: string): number | null {\n const match = /^#([0-9a-f]{6})$/i.exec(hex.trim());\n if (!match) return null;\n const value = Number.parseInt(match[1], 16);\n const r = (value >> 16) & 0xff;\n const g = (value >> 8) & 0xff;\n const b = value & 0xff;\n return (0.2126 * r + 0.7152 * g + 0.0722 * b) / 255;\n}\n\n/** Resolves a Pi colour reference: a var name, or a literal colour. */\nfunction resolve(vars: Record<string, string>, reference: string | undefined): string | undefined {\n if (reference === undefined) return undefined;\n return vars[reference] ?? reference;\n}\n\nexport interface PiThemeBridgeOptions {\n /** The web theme's id; defaults to the Pi theme's name. */\n name?: string;\n label?: string;\n /** Forced scheme; otherwise inferred from the background luminance. */\n scheme?: ThemeScheme;\n}\n\n/**\n * Builds a web theme from a Pi TUI theme, so the palette Po ships for\n * the terminal (po-ui/themes/po-dark.json) drives the browser too.\n * The mapping is by role, not by name: Pi has no cockpit \"deep\" surface or\n * \"border-soft\" line, so those are mixed from the nearest vars. Returns null\n * when the input is not a Pi theme with a complete palette.\n */\nexport function themeFromPiTheme(input: unknown, options: PiThemeBridgeOptions = {}): ThemeConfig | null {\n if (!isRecord(input)) return null;\n const { name, vars, colors } = input as PiThemeLike;\n if (!isRecord(vars)) return null;\n const palette: Record<string, string> = {};\n for (const [key, value] of Object.entries(vars)) if (typeof value === 'string') palette[key] = value;\n const semantic: Record<string, string> = {};\n if (isRecord(colors))\n for (const [key, value] of Object.entries(colors)) if (typeof value === 'string') semantic[key] = value;\n\n const bg = palette.bg;\n const bgAlt = palette.bgAlt ?? bg;\n const fg = palette.fg;\n if (bg === undefined || fg === undefined) return null;\n\n const luminance = hexLuminance(bg);\n const scheme: ThemeScheme = options.scheme ?? (luminance !== null && luminance > 0.5 ? 'light' : 'dark');\n const towards = scheme === 'dark' ? 'black' : 'white';\n const deep = `color-mix(in srgb, ${bgAlt} 84%, ${towards})`;\n const border = resolve(palette, semantic.borderMuted) ?? palette.grey ?? `color-mix(in srgb, ${fg} 25%, ${bg})`;\n const themeName = options.name ?? (typeof name === 'string' ? name : 'pi-theme');\n\n return parseThemeConfig({\n name: themeName,\n label: options.label ?? themeName,\n scheme,\n tokens: {\n bg,\n rail: bgAlt,\n panel: `color-mix(in srgb, ${bgAlt} 70%, ${bg})`,\n deep,\n border,\n 'border-soft': `color-mix(in srgb, ${border} 55%, ${bg})`,\n hi: `color-mix(in srgb, ${fg} 65%, ${scheme === 'dark' ? 'white' : 'black'})`,\n text: fg,\n dim: resolve(palette, semantic.muted) ?? palette.fgAlt ?? fg,\n faint: resolve(palette, semantic.dim) ?? palette.comment ?? palette.greyAlt ?? fg,\n blue: palette.blue ?? resolve(palette, semantic.accent) ?? fg,\n green: palette.green ?? resolve(palette, semantic.success) ?? fg,\n yellow: palette.yellow ?? resolve(palette, semantic.warning) ?? fg,\n red: palette.red ?? resolve(palette, semantic.error) ?? fg,\n magenta: palette.magenta ?? palette.violet ?? fg,\n violet: palette.violet ?? palette.magenta ?? fg,\n cyan: palette.cyan ?? palette.blue ?? fg,\n orange: palette.orange ?? palette.yellow ?? fg,\n teal: palette.teal ?? palette.cyan ?? fg,\n selected: palette.darkBlue ?? palette.blue ?? fg,\n },\n });\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"piTheme.cjs","names":["parseThemeConfig","require_parse","isRecord","value","hexLuminance","match","hex","g","b","resolve","reference","vars","themeFromPiTheme","input","palette","key","semantic","colors","bg","bgAlt","fg","luminance","scheme","options","deep","border","themeName","name"],"sources":["../../../src/theme/piTheme.ts"],"sourcesContent":["import type { ThemeConfig, ThemeScheme } from '../types/theme';\nimport { parseThemeConfig } from './parse';\n\n/**\n * The Pi TUI theme shape (theme-schema.json): a palette of named vars and\n * semantic colours that name a var or spell a colour.\n */\ninterface PiThemeLike {\n name?: unknown;\n vars?: unknown;\n colors?: unknown;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction hexLuminance(hex: string): number | null {\n const match = /^#([0-9a-f]{6})$/i.exec(hex.trim());\n if (!match) return null;\n const value = Number.parseInt(match[1], 16);\n const r = (value >> 16) & 0xff;\n const g = (value >> 8) & 0xff;\n const b = value & 0xff;\n return (0.2126 * r + 0.7152 * g + 0.0722 * b) / 255;\n}\n\n/** Resolves a Pi colour reference: a var name, or a literal colour. */\nfunction resolve(vars: Record<string, string>, reference: string | undefined): string | undefined {\n if (reference === undefined) return undefined;\n return vars[reference] ?? reference;\n}\n\nexport interface PiThemeBridgeOptions {\n /** The web theme's id; defaults to the Pi theme's name. */\n name?: string;\n label?: string;\n /** Forced scheme; otherwise inferred from the background luminance. */\n scheme?: ThemeScheme;\n}\n\n/**\n * Builds a web theme from a Pi TUI theme, so the palette Po ships for\n * the terminal (po-ui/themes/po-dark.json) drives the browser too.\n * The mapping is by role, not by name: Pi has no cockpit \"deep\" surface or\n * \"border-soft\" line, so those are mixed from the nearest vars. Returns null\n * when the input is not a Pi theme with a complete palette.\n */\nexport function themeFromPiTheme(input: unknown, options: PiThemeBridgeOptions = {}): ThemeConfig | null {\n if (!isRecord(input)) return null;\n const { name, vars, colors } = input as PiThemeLike;\n if (!isRecord(vars)) return null;\n const palette: Record<string, string> = {};\n for (const [key, value] of Object.entries(vars)) if (typeof value === 'string') palette[key] = value;\n const semantic: Record<string, string> = {};\n if (isRecord(colors))\n for (const [key, value] of Object.entries(colors)) if (typeof value === 'string') semantic[key] = value;\n\n const bg = palette.bg;\n const bgAlt = palette.bgAlt ?? bg;\n const fg = palette.fg;\n if (bg === undefined || fg === undefined) return null;\n\n const luminance = hexLuminance(bg);\n const scheme: ThemeScheme = options.scheme ?? (luminance !== null && luminance > 0.5 ? 'light' : 'dark');\n const towards = scheme === 'dark' ? 'black' : 'white';\n const deep = `color-mix(in srgb, ${bgAlt} 84%, ${towards})`;\n const border = resolve(palette, semantic.borderMuted) ?? palette.grey ?? `color-mix(in srgb, ${fg} 25%, ${bg})`;\n const themeName = options.name ?? (typeof name === 'string' ? name : 'pi-theme');\n\n return parseThemeConfig({\n name: themeName,\n label: options.label ?? themeName,\n scheme,\n tokens: {\n bg,\n rail: bgAlt,\n panel: `color-mix(in srgb, ${bgAlt} 70%, ${bg})`,\n deep,\n border,\n 'border-soft': `color-mix(in srgb, ${border} 55%, ${bg})`,\n hi: `color-mix(in srgb, ${fg} 65%, ${scheme === 'dark' ? 'white' : 'black'})`,\n text: fg,\n dim: resolve(palette, semantic.muted) ?? palette.fgAlt ?? fg,\n faint: resolve(palette, semantic.dim) ?? palette.comment ?? palette.greyAlt ?? fg,\n blue: palette.blue ?? resolve(palette, semantic.accent) ?? fg,\n green: palette.green ?? resolve(palette, semantic.success) ?? fg,\n yellow: palette.yellow ?? resolve(palette, semantic.warning) ?? fg,\n red: palette.red ?? resolve(palette, semantic.error) ?? fg,\n magenta: palette.magenta ?? palette.violet ?? fg,\n violet: palette.violet ?? palette.magenta ?? fg,\n cyan: palette.cyan ?? palette.blue ?? fg,\n orange: palette.orange ?? palette.yellow ?? fg,\n teal: palette.teal ?? palette.cyan ?? fg,\n selected: palette.darkBlue ?? palette.blue ?? fg,\n },\n });\n}\n"],"mappings":"A,+BAaA,SAASE,EAAS,EAAkD,CAClE,OAAO,OAAOC,GAAU,YAAYA,GAAkB,CAAC,MAAM,QAAQA,CAAK,CAC5E,CAEA,SAASC,EAAa,EAA4B,CAChD,IAAMC,EAAQ,oBAAoB,KAAKC,EAAI,KAAK,CAAC,EACjD,GAAI,CAACD,EAAO,OAAO,KACnB,IAAMF,EAAQ,OAAO,SAASE,EAAM,GAAI,EAAE,EACpC,EAAKF,GAAS,GAAM,IACpBI,EAAKJ,GAAS,EAAK,IACnBK,EAAIL,EAAQ,IAClB,OAAQ,MAAS,EAAI,MAASI,EAAI,MAASC,GAAK,GAClD,CAGA,SAASC,EAAQ,EAA8B,EAAmD,CAChG,GAAIC,IAAc,IAAA,GAClB,OAAOC,EAAKD,IAAcA,CAC5B,CAiBA,SAAgBE,EAAiB,EAAgB,EAAgC,CAAC,EAAuB,CACvG,GAAI,CAACV,EAASW,CAAK,EAAG,OAAO,KAC7B,GAAM,CAAE,OAAM,OAAM,UAAWA,EAC/B,GAAI,CAACX,EAASS,CAAI,EAAG,OAAO,KAC5B,IAAMG,EAAkC,CAAC,EACzC,IAAK,GAAM,CAACC,EAAKZ,KAAU,OAAO,QAAQQ,CAAI,EAAO,OAAOR,GAAU,WAAU,EAAQY,GAAOZ,GAC/F,IAAMa,EAAmC,CAAC,EAC1C,GAAId,EAASe,CAAM,EACZ,IAAA,GAAM,CAACF,EAAKZ,KAAU,OAAO,QAAQc,CAAM,EAAO,OAAOd,GAAU,WAAU,EAASY,GAAOZ,GAEpG,IAAMe,EAAKJ,EAAQ,GACbK,EAAQL,EAAQ,OAASI,EACzBE,EAAKN,EAAQ,GACnB,GAAII,IAAO,IAAA,IAAaE,IAAO,IAAA,GAAW,OAAO,KAEjD,IAAMC,EAAYjB,EAAac,CAAE,EAC3BI,EAAsBC,EAAQ,SAAWF,IAAc,MAAQA,EAAY,GAAM,QAAU,QAE3FG,EAAO,sBAAsBL,EAAM,QADzBG,IAAW,OAAS,QAAU,QACW,GACnDG,EAAShB,EAAQK,EAASE,EAAS,WAAW,GAAKF,EAAQ,MAAQ,sBAAsBM,EAAG,QAAQF,EAAG,GACvGQ,EAAYH,EAAQ,OAAS,OAAOI,GAAS,SAAWA,EAAO,YAErE,OAAO3B,EAAAA,iBAAiB,CACtB,KAAM0B,EACN,MAAOH,EAAQ,OAASG,EACxB,SACA,OAAQ,CACN,KACA,KAAMP,EACN,MAAO,sBAAsBA,EAAM,QAAQD,EAAG,GAC9C,OACA,SACA,cAAe,sBAAsBO,EAAO,QAAQP,EAAG,GACvD,GAAI,sBAAsBE,EAAG,QAAQE,IAAW,OAAS,QAAU,QAAQ,GAC3E,KAAMF,EACN,IAAKX,EAAQK,EAASE,EAAS,KAAK,GAAKF,EAAQ,OAASM,EAC1D,MAAOX,EAAQK,EAASE,EAAS,GAAG,GAAKF,EAAQ,SAAWA,EAAQ,SAAWM,EAC/E,KAAMN,EAAQ,MAAQL,EAAQK,EAASE,EAAS,MAAM,GAAKI,EAC3D,MAAON,EAAQ,OAASL,EAAQK,EAASE,EAAS,OAAO,GAAKI,EAC9D,OAAQN,EAAQ,QAAUL,EAAQK,EAASE,EAAS,OAAO,GAAKI,EAChE,IAAKN,EAAQ,KAAOL,EAAQK,EAASE,EAAS,KAAK,GAAKI,EACxD,QAASN,EAAQ,SAAWA,EAAQ,QAAUM,EAC9C,OAAQN,EAAQ,QAAUA,EAAQ,SAAWM,EAC7C,KAAMN,EAAQ,MAAQA,EAAQ,MAAQM,EACtC,OAAQN,EAAQ,QAAUA,EAAQ,QAAUM,EAC5C,KAAMN,EAAQ,MAAQA,EAAQ,MAAQM,EACtC,SAAUN,EAAQ,UAAYA,EAAQ,MAAQM,CAChD,CACF,CAAC,CACH,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preference.cjs","names":["THEME_STORAGE_KEY","readThemePreference","value","storage","writeThemePreference","name"],"sources":["../../../src/theme/preference.ts"],"sourcesContent":["/** Where the page remembers the chosen theme; one key, machine-local. */\nexport const THEME_STORAGE_KEY = 'po.web.theme';\n\n/** The two Storage calls the preference needs, so tests pass a plain map. */\nexport interface PreferenceStorage {\n getItem(key: string): string | null;\n setItem(key: string, value: string): void;\n removeItem(key: string): void;\n}\n\n/** The stored theme name, or null when nothing was chosen or storage is unavailable. */\nexport function readThemePreference(storage: PreferenceStorage | undefined): string | null {\n try {\n const value = storage?.getItem(THEME_STORAGE_KEY) ?? null;\n return value === null || value === '' ? null : value;\n } catch {\n return null;\n }\n}\n\n/** Remembers a theme name; null forgets it. Storage failures are swallowed: a theme is a convenience. */\nexport function writeThemePreference(storage: PreferenceStorage | undefined, name: string | null): void {\n try {\n if (name === null) storage?.removeItem(THEME_STORAGE_KEY);\n else storage?.setItem(THEME_STORAGE_KEY, name);\n } catch {\n // Private mode or a full quota: the theme still applies for this page load.\n }\n}\n"],"mappings":"AACA,MAAaA,EAAoB,eAUjC,SAAgBC,EAAoB,EAAuD,CACzF,GAAI,CACF,IAAMC,EAAQC,GAAS,QAAA,cAAyB,GAAK,KACrD,OAAOD,IAAU,MAAQA,IAAU,GAAK,KAAOA,CACjD,MAAQ,CACN,OAAO,IACT,CACF,CAGA,SAAgBE,EAAqB,EAAwC,EAA2B,CACtG,GAAI,CACEC,IAAS,KAAMF,GAAS,WAAWH,CAAiB,EACnDG,GAAS,QAAQH,EAAmBK,CAAI,CAC/C,MAAQ,CAER,CACF"}
|
|
1
|
+
{"version":3,"file":"preference.cjs","names":["THEME_STORAGE_KEY","readThemePreference","value","storage","writeThemePreference","name"],"sources":["../../../src/theme/preference.ts"],"sourcesContent":["/** Where the page remembers the chosen theme; one key, machine-local. */\nexport const THEME_STORAGE_KEY = 'po.web.theme';\n\n/** The two Storage calls the preference needs, so tests pass a plain map. */\nexport interface PreferenceStorage {\n getItem(key: string): string | null;\n setItem(key: string, value: string): void;\n removeItem(key: string): void;\n}\n\n/** The stored theme name, or null when nothing was chosen or storage is unavailable. */\nexport function readThemePreference(storage: PreferenceStorage | undefined): string | null {\n try {\n const value = storage?.getItem(THEME_STORAGE_KEY) ?? null;\n return value === null || value === '' ? null : value;\n } catch {\n return null;\n }\n}\n\n/** Remembers a theme name; null forgets it. Storage failures are swallowed: a theme is a convenience. */\nexport function writeThemePreference(storage: PreferenceStorage | undefined, name: string | null): void {\n try {\n if (name === null) storage?.removeItem(THEME_STORAGE_KEY);\n else storage?.setItem(THEME_STORAGE_KEY, name);\n } catch {\n // Private mode or a full quota: the theme still applies for this page load.\n }\n}\n"],"mappings":"AACA,MAAaA,EAAoB,eAUjC,SAAgBC,EAAoB,EAAuD,CACzF,GAAI,CACF,IAAMC,EAAQC,GAAS,QAAA,cAAyB,GAAK,KACrD,OAAOD,IAAU,MAAQA,IAAU,GAAK,KAAOA,CACjD,MAAQ,CACN,OAAO,IACT,CACF,CAGA,SAAgBE,EAAqB,EAAwC,EAA2B,CACtG,GAAI,CACEC,IAAS,KAAMF,GAAS,WAAWH,CAAiB,EACnDG,GAAS,QAAQH,EAAmBK,CAAI,CAC/C,MAAQ,CAER,CACF,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.cjs","names":["MEDIA_KINDS"],"sources":["../../../src/types/editor.ts"],"sourcesContent":["/**\n * The vocabulary a file surface shares: how a file is shown, and what an\n * editor hands back when a reader selects part of one.\n *\n * It lives here rather than beside the components so a caller can classify a\n * path, or hold a selection in its own state, without pulling the editor\n * chunk in behind it.\n */\n\n/** How a file is shown when its bytes are not text: inline by kind, or offered as a download. */\nexport const MEDIA_KINDS = ['image', 'video', 'pdf', 'download'] as const;\nexport type MediaKind = (typeof MEDIA_KINDS)[number];\n\n/**\n * What a reader picked out, in the terms a review comment needs: the text\n * itself, and where it sits. Lines are one-based, matching what an editor\n * gutter shows, and a caret with nothing selected reports the same line twice\n * with empty text.\n */\nexport interface EditorSelectionRange {\n text: string;\n /** Zero-based, half-open offsets in the mounted document. */\n from: number;\n to: number;\n startLine: number;\n endLine: number;\n}\n\n/** A zero-based half-open range in the mounted editor document. */\nexport interface EditorTextRange {\n from: number;\n to: number;\n}\n\n/** A persistent numbered annotation drawn over a mounted editor range. */\nexport interface EditorMarkedRange extends EditorTextRange {\n label: string;\n}\n/** One replacement applied with the other edits in a single editor transaction. */\nexport interface EditorEdit extends EditorTextRange {\n insert: string;\n}\n\n/** A client-coordinate rectangle over the visible editor viewport. */\nexport interface EditorViewportRectangle {\n left: number;\n top: number;\n right: number;\n bottom: number;\n}\n\n/** The deliberately small imperative surface exposed by a mounted editor. */\nexport interface CodeEditorController {\n focus: () => void;\n revealAndSelect: (range: EditorTextRange) => void;\n applyEdits: (edits: readonly EditorEdit[]) => void;\n setClosedRanges: (ranges: readonly EditorTextRange[]) => void;\n setMarkedRanges: (ranges: readonly EditorMarkedRange[]) => void;\n /** Resolves visible geometry to a document-native range, or null when it misses the document. */\n resolveViewportRegion: (rectangle: EditorViewportRectangle) => EditorSelectionRange | null;\n}\n\nexport interface CodeEditorProps {\n value: string;\n /**\n * The file this content came from. It picks the syntax grammar and nothing\n * else; leave it off and the editor stays plain text.\n */\n path?: string;\n readOnly?: boolean;\n /**\n * Wraps long lines rather than scrolling sideways. On by default, because\n * the cockpit is read on phones and unwrapped code there is unreadable.\n */\n lineWrapping?: boolean;\n className?: string;\n 'data-testid'?: string;\n onChange?: (value: string) => void;\n onSelect?: (range: EditorSelectionRange) => void;\n /** Receives the controller while the CodeMirror view is mounted, and `null` after it is destroyed. */\n controllerRef?: import('react').Ref<CodeEditorController>;\n}\n"],"mappings":"AAUA,MAAaA,EAAc,CAAC,QAAS,QAAS,MAAO,UAAU"}
|
|
1
|
+
{"version":3,"file":"editor.cjs","names":["MEDIA_KINDS"],"sources":["../../../src/types/editor.ts"],"sourcesContent":["/**\n * The vocabulary a file surface shares: how a file is shown, and what an\n * editor hands back when a reader selects part of one.\n *\n * It lives here rather than beside the components so a caller can classify a\n * path, or hold a selection in its own state, without pulling the editor\n * chunk in behind it.\n */\n\n/** How a file is shown when its bytes are not text: inline by kind, or offered as a download. */\nexport const MEDIA_KINDS = ['image', 'video', 'pdf', 'download'] as const;\nexport type MediaKind = (typeof MEDIA_KINDS)[number];\n\n/**\n * What a reader picked out, in the terms a review comment needs: the text\n * itself, and where it sits. Lines are one-based, matching what an editor\n * gutter shows, and a caret with nothing selected reports the same line twice\n * with empty text.\n */\nexport interface EditorSelectionRange {\n text: string;\n /** Zero-based, half-open offsets in the mounted document. */\n from: number;\n to: number;\n startLine: number;\n endLine: number;\n}\n\n/** A zero-based half-open range in the mounted editor document. */\nexport interface EditorTextRange {\n from: number;\n to: number;\n}\n\n/** A persistent numbered annotation drawn over a mounted editor range. */\nexport interface EditorMarkedRange extends EditorTextRange {\n label: string;\n}\n/** One replacement applied with the other edits in a single editor transaction. */\nexport interface EditorEdit extends EditorTextRange {\n insert: string;\n}\n\n/** A client-coordinate rectangle over the visible editor viewport. */\nexport interface EditorViewportRectangle {\n left: number;\n top: number;\n right: number;\n bottom: number;\n}\n\n/** The deliberately small imperative surface exposed by a mounted editor. */\nexport interface CodeEditorController {\n focus: () => void;\n revealAndSelect: (range: EditorTextRange) => void;\n applyEdits: (edits: readonly EditorEdit[]) => void;\n setClosedRanges: (ranges: readonly EditorTextRange[]) => void;\n setMarkedRanges: (ranges: readonly EditorMarkedRange[]) => void;\n /** Resolves visible geometry to a document-native range, or null when it misses the document. */\n resolveViewportRegion: (rectangle: EditorViewportRectangle) => EditorSelectionRange | null;\n}\n\nexport interface CodeEditorProps {\n value: string;\n /**\n * The file this content came from. It picks the syntax grammar and nothing\n * else; leave it off and the editor stays plain text.\n */\n path?: string;\n readOnly?: boolean;\n /**\n * Wraps long lines rather than scrolling sideways. On by default, because\n * the cockpit is read on phones and unwrapped code there is unreadable.\n */\n lineWrapping?: boolean;\n className?: string;\n 'data-testid'?: string;\n onChange?: (value: string) => void;\n onSelect?: (range: EditorSelectionRange) => void;\n /** Receives the controller while the CodeMirror view is mounted, and `null` after it is destroyed. */\n controllerRef?: import('react').Ref<CodeEditorController>;\n}\n"],"mappings":"AAUA,MAAaA,EAAc,CAAC,QAAS,QAAS,MAAO,UAAU,E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.cjs","names":["PALETTE_TOKENS","ACCENT_TOKENS","DERIVED_TOKENS","THEME_TOKENS","themeVariable","token"],"sources":["../../../src/types/theme.ts"],"sourcesContent":["/**\n * The web theme contract: the named colours every cockpit surface is built\n * from. Palette tokens are the hand-picked values a theme must supply; the\n * derived tokens (tinted backgrounds, accented borders) are computed from the\n * palette unless a theme pins them, which is how the shipped dark theme keeps\n * its exact mockup values while a third-party theme needs only the palette.\n */\nexport const PALETTE_TOKENS = [\n 'bg',\n 'rail',\n 'panel',\n 'deep',\n 'border',\n 'border-soft',\n 'hi',\n 'text',\n 'dim',\n 'faint',\n 'blue',\n 'green',\n 'yellow',\n 'red',\n 'magenta',\n 'violet',\n 'cyan',\n 'orange',\n 'teal',\n 'selected',\n] as const;\n\nexport const ACCENT_TOKENS = ['blue', 'green', 'yellow', 'red', 'magenta', 'violet', 'cyan', 'orange', 'teal'] as const;\n\nexport const DERIVED_TOKENS = [\n 'tint-blue',\n 'tint-green',\n 'tint-yellow',\n 'tint-red',\n 'tint-magenta',\n 'tint-violet',\n 'tint-cyan',\n 'tint-orange',\n 'tint-teal',\n 'edge-blue',\n 'edge-green',\n 'edge-yellow',\n 'edge-red',\n 'edge-magenta',\n 'edge-violet',\n 'edge-cyan',\n 'edge-orange',\n 'edge-teal',\n /**\n * The readable foreground on the `selected` surface. Derived so an existing\n * theme stays valid, but a theme whose `selected` is pale must pin it: CSS\n * cannot pick a contrasting colour on its own, and the fallback assumes a\n * saturated selection, which is what both shipped themes use.\n */\n 'on-selected',\n 'font-mono',\n] as const;\n\nexport const THEME_TOKENS = [...PALETTE_TOKENS, ...DERIVED_TOKENS] as const;\n\nexport type PaletteToken = (typeof PALETTE_TOKENS)[number];\nexport type AccentToken = (typeof ACCENT_TOKENS)[number];\nexport type DerivedToken = (typeof DERIVED_TOKENS)[number];\nexport type ThemeToken = (typeof THEME_TOKENS)[number];\n\nexport type ThemeScheme = 'dark' | 'light';\n\n/** A theme config as written in JSON: identity, colour scheme, and the token values. */\nexport interface ThemeConfig {\n /** Stable id, kebab-case; the `data-theme` attribute and the stored preference. */\n name: string;\n /** What a picker shows. */\n label: string;\n /** Drives `color-scheme` so native controls and scrollbars match. */\n scheme: ThemeScheme;\n tokens: Record<PaletteToken, string> & Partial<Record<DerivedToken, string>>;\n}\n\n/** The CSS custom property a token is published as. */\nexport function themeVariable(token: ThemeToken): `--po-${ThemeToken}` {\n return `--po-${token}`;\n}\n"],"mappings":"AAOA,MAAaA,EAAiB,CAC5B,KACA,OACA,QACA,OACA,SACA,cACA,KACA,OACA,MACA,QACA,OACA,QACA,SACA,MACA,UACA,SACA,OACA,SACA,OACA,UACF,EAEaC,EAAgB,CAAC,OAAQ,QAAS,SAAU,MAAO,UAAW,SAAU,OAAQ,SAAU,MAAM,EAEhGC,EAAiB,CAC5B,YACA,aACA,cACA,WACA,eACA,cACA,YACA,cACA,YACA,YACA,aACA,cACA,WACA,eACA,cACA,YACA,cACA,YAOA,cACA,WACF,EAEaC,EAAe,CAAC,GAAGH,EAAgB,GAAGE,CAAc,EAqBjE,SAAgBE,EAAc,EAAyC,CACrE,MAAO,QAAQC,GACjB"}
|
|
1
|
+
{"version":3,"file":"theme.cjs","names":["PALETTE_TOKENS","ACCENT_TOKENS","DERIVED_TOKENS","THEME_TOKENS","themeVariable","token"],"sources":["../../../src/types/theme.ts"],"sourcesContent":["/**\n * The web theme contract: the named colours every cockpit surface is built\n * from. Palette tokens are the hand-picked values a theme must supply; the\n * derived tokens (tinted backgrounds, accented borders) are computed from the\n * palette unless a theme pins them, which is how the shipped dark theme keeps\n * its exact mockup values while a third-party theme needs only the palette.\n */\nexport const PALETTE_TOKENS = [\n 'bg',\n 'rail',\n 'panel',\n 'deep',\n 'border',\n 'border-soft',\n 'hi',\n 'text',\n 'dim',\n 'faint',\n 'blue',\n 'green',\n 'yellow',\n 'red',\n 'magenta',\n 'violet',\n 'cyan',\n 'orange',\n 'teal',\n 'selected',\n] as const;\n\nexport const ACCENT_TOKENS = ['blue', 'green', 'yellow', 'red', 'magenta', 'violet', 'cyan', 'orange', 'teal'] as const;\n\nexport const DERIVED_TOKENS = [\n 'tint-blue',\n 'tint-green',\n 'tint-yellow',\n 'tint-red',\n 'tint-magenta',\n 'tint-violet',\n 'tint-cyan',\n 'tint-orange',\n 'tint-teal',\n 'edge-blue',\n 'edge-green',\n 'edge-yellow',\n 'edge-red',\n 'edge-magenta',\n 'edge-violet',\n 'edge-cyan',\n 'edge-orange',\n 'edge-teal',\n /**\n * The readable foreground on the `selected` surface. Derived so an existing\n * theme stays valid, but a theme whose `selected` is pale must pin it: CSS\n * cannot pick a contrasting colour on its own, and the fallback assumes a\n * saturated selection, which is what both shipped themes use.\n */\n 'on-selected',\n 'font-mono',\n] as const;\n\nexport const THEME_TOKENS = [...PALETTE_TOKENS, ...DERIVED_TOKENS] as const;\n\nexport type PaletteToken = (typeof PALETTE_TOKENS)[number];\nexport type AccentToken = (typeof ACCENT_TOKENS)[number];\nexport type DerivedToken = (typeof DERIVED_TOKENS)[number];\nexport type ThemeToken = (typeof THEME_TOKENS)[number];\n\nexport type ThemeScheme = 'dark' | 'light';\n\n/** A theme config as written in JSON: identity, colour scheme, and the token values. */\nexport interface ThemeConfig {\n /** Stable id, kebab-case; the `data-theme` attribute and the stored preference. */\n name: string;\n /** What a picker shows. */\n label: string;\n /** Drives `color-scheme` so native controls and scrollbars match. */\n scheme: ThemeScheme;\n tokens: Record<PaletteToken, string> & Partial<Record<DerivedToken, string>>;\n}\n\n/** The CSS custom property a token is published as. */\nexport function themeVariable(token: ThemeToken): `--po-${ThemeToken}` {\n return `--po-${token}`;\n}\n"],"mappings":"AAOA,MAAaA,EAAiB,CAC5B,KACA,OACA,QACA,OACA,SACA,cACA,KACA,OACA,MACA,QACA,OACA,QACA,SACA,MACA,UACA,SACA,OACA,SACA,OACA,UACF,EAEaC,EAAgB,CAAC,OAAQ,QAAS,SAAU,MAAO,UAAW,SAAU,OAAQ,SAAU,MAAM,EAEhGC,EAAiB,CAC5B,YACA,aACA,cACA,WACA,eACA,cACA,YACA,cACA,YACA,YACA,aACA,cACA,WACA,eACA,cACA,YACA,cACA,YAOA,cACA,WACF,EAEaC,EAAe,CAAC,GAAGH,EAAgB,GAAGE,CAAc,EAqBjE,SAAgBE,EAAc,EAAyC,CACrE,MAAO,QAAQC,GACjB,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tone.cjs","names":["ACCENT_TONES","CHIP_TONES","DOT_TONES","STATUS_TONES","MESSAGE_LINE_TONES"],"sources":["../../../src/types/tone.ts"],"sourcesContent":["/**\n * The tone vocabularies every surface shares.\n *\n * Three of them exist because they answer different questions. A chromatic\n * tone names a colour (\"this chip is violet\"), a status tone names an outcome\n * (\"this run failed\"), and a line tone names a role inside a body of text.\n * They live here, not beside the components that draw them, so a consumer can\n * translate between them without importing a component, and so adding a tone\n * to one table without the others fails to compile.\n */\n\n/** The accents a theme supplies; mirrors ACCENT_TOKENS in ./theme.ts. */\nexport const ACCENT_TONES = ['blue', 'green', 'yellow', 'red', 'magenta', 'violet', 'cyan', 'orange', 'teal'] as const;\nexport type AccentTone = (typeof ACCENT_TONES)[number];\n\n/** What a chip may be: an accent, or the quiet default. */\nexport const CHIP_TONES = ['neutral', ...ACCENT_TONES] as const;\nexport type ChipTone = (typeof CHIP_TONES)[number];\n\n/** A dot adds `muted` for a thing that exists but is not live. */\nexport const DOT_TONES = ['neutral', 'muted', ...ACCENT_TONES] as const;\nexport type DotTone = (typeof DOT_TONES)[number];\n\n/** What happened, rather than what colour it is. */\nexport const STATUS_TONES = ['neutral', 'running', 'ok', 'error', 'info', 'accent'] as const;\nexport type StatusTone = (typeof STATUS_TONES)[number];\n\n/** The role a single line of a message body plays. */\nexport const MESSAGE_LINE_TONES = ['hi', 'text', 'dim', 'muted', 'success', 'error', 'warning', 'accent'] as const;\nexport type MessageLineTone = (typeof MESSAGE_LINE_TONES)[number];\n"],"mappings":"AAYA,MAAaA,EAAe,CAAC,OAAQ,QAAS,SAAU,MAAO,UAAW,SAAU,OAAQ,SAAU,MAAM,EAI/FC,EAAa,CAAC,UAAW,GAAGD,CAAY,EAIxCE,EAAY,CAAC,UAAW,QAAS,GAAGF,CAAY,EAIhDG,EAAe,CAAC,UAAW,UAAW,KAAM,QAAS,OAAQ,QAAQ,EAIrEC,EAAqB,CAAC,KAAM,OAAQ,MAAO,QAAS,UAAW,QAAS,UAAW,QAAQ"}
|
|
1
|
+
{"version":3,"file":"tone.cjs","names":["ACCENT_TONES","CHIP_TONES","DOT_TONES","STATUS_TONES","MESSAGE_LINE_TONES"],"sources":["../../../src/types/tone.ts"],"sourcesContent":["/**\n * The tone vocabularies every surface shares.\n *\n * Three of them exist because they answer different questions. A chromatic\n * tone names a colour (\"this chip is violet\"), a status tone names an outcome\n * (\"this run failed\"), and a line tone names a role inside a body of text.\n * They live here, not beside the components that draw them, so a consumer can\n * translate between them without importing a component, and so adding a tone\n * to one table without the others fails to compile.\n */\n\n/** The accents a theme supplies; mirrors ACCENT_TOKENS in ./theme.ts. */\nexport const ACCENT_TONES = ['blue', 'green', 'yellow', 'red', 'magenta', 'violet', 'cyan', 'orange', 'teal'] as const;\nexport type AccentTone = (typeof ACCENT_TONES)[number];\n\n/** What a chip may be: an accent, or the quiet default. */\nexport const CHIP_TONES = ['neutral', ...ACCENT_TONES] as const;\nexport type ChipTone = (typeof CHIP_TONES)[number];\n\n/** A dot adds `muted` for a thing that exists but is not live. */\nexport const DOT_TONES = ['neutral', 'muted', ...ACCENT_TONES] as const;\nexport type DotTone = (typeof DOT_TONES)[number];\n\n/** What happened, rather than what colour it is. */\nexport const STATUS_TONES = ['neutral', 'running', 'ok', 'error', 'info', 'accent'] as const;\nexport type StatusTone = (typeof STATUS_TONES)[number];\n\n/** The role a single line of a message body plays. */\nexport const MESSAGE_LINE_TONES = ['hi', 'text', 'dim', 'muted', 'success', 'error', 'warning', 'accent'] as const;\nexport type MessageLineTone = (typeof MESSAGE_LINE_TONES)[number];\n"],"mappings":"AAYA,MAAaA,EAAe,CAAC,OAAQ,QAAS,SAAU,MAAO,UAAW,SAAU,OAAQ,SAAU,MAAM,EAI/FC,EAAa,CAAC,UAAW,GAAGD,CAAY,EAIxCE,EAAY,CAAC,UAAW,QAAS,GAAGF,CAAY,EAIhDG,EAAe,CAAC,UAAW,UAAW,KAAM,QAAS,OAAQ,QAAQ,EAIrEC,EAAqB,CAAC,KAAM,OAAQ,MAAO,QAAS,UAAW,QAAS,UAAW,QAAQ,E"}
|