@agimon-ai/po-web-components 0.0.0-alpha.13 → 0.0.0-alpha.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +191 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +14 -3
- package/dist/index.mjs +1 -1
- package/dist/markdownMediaSlot.cjs +1 -0
- package/dist/markdownMediaSlot.d.mts +2 -0
- package/dist/markdownMediaSlot.mjs +1 -0
- package/dist/mcpAppHost.cjs +1 -0
- package/dist/mcpAppHost.d.mts +4 -0
- package/dist/mcpAppHost.mjs +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/client.d.mts +15 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/api.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/middleware.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/resource.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/core/uploads.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/index.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/parser.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +17 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts +9 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +17 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +12 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.d.mts +10 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.d.mts +12 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.d.mts +3 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.d.mts +8 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts +8 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts +4 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts +9 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts +9 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts +9 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/beta.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +7 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/files.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/index.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +8 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/messages.d.mts +1 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/models.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts +6 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts +2 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts +5 -0
- package/dist/node_modules/.pnpm/@anthropic-ai_sdk@0.129.0_zod@4.6.7/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/context.d.mts +103 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/context.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/events.d.mts +235 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/events.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/fiber.d.mts +168 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/fiber.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/index.d.mts +8 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/logger.d.mts +92 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/logger.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/reflect.d.mts +188 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/reflect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/registry.d.mts +199 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/registry.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/service.d.mts +57 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/service.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/utils.d.mts +37 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/utils.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cosmokit@1.8.6/node_modules/@deepseek-ai/cosmokit/lib/types/misc.d.mts +9 -0
- package/dist/node_modules/.pnpm/@deepseek-ai_cosmokit@1.8.6/node_modules/@deepseek-ai/cosmokit/lib/types/misc.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/context/index.d.mts +17 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/context/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/delta/index.d.mts +21 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/delta/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/json.d.mts +6 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/json.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/sqlite/database.d.mts +42 -0
- package/dist/node_modules/.pnpm/@earendil-works_chord@1.5.0_esbuild@0.28.2_ws@8.22.0/node_modules/@earendil-works/chord/dist/sqlite/database.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-config.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/google-shared.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/lazy.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.mts +4 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/context.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/credential-store.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/helpers.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/types.d.mts +21 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/auth/types.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/compat/extension-oauth-types.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/index.d.mts +34 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/models-store.d.mts +17 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/models-store.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/models.d.mts +7 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.d.mts +141 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/model-schema.d.mts +51 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/providers/model-schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/telemetry.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/types.d.mts +309 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/types.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.mts +16 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/identity.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/model-operations.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/streaming-json.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/text.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/transcript.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-ai@1.5.0_@aws-sdk_credential-provider-node@3.972.86_@modelcontextpro_cbd356c737d8e30c7d704b4728fb9233/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/documents.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/entries.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/env/index.d.mts +301 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/env/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/errors.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/agent.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/compaction.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/define.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/generation.d.mts +5 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/harness.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/inbox.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/live.d.mts +5 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/provider.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/registry-reader.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/registry.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/scheduler.d.mts +6 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/task-graph.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/tool.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/transcript.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/types.d.mts +5 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/usage.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/harness/view.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/index.d.mts +25 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/session/conversation-tails.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/session/session.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/session/transaction.d.mts +2 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/storage/memory.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/storage/sqlite/index.d.mts +3 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/storage/sqlite/storage.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/tasks.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/timers.d.mts +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/types.d.mts +548 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-durable@1.5.0_patch_hash_0f5e595daa4c370af407284d99d6dba48a9e21f56aa_0f219e156e08feb96504f67b2b506549/node_modules/@earendil-works/pi-durable/dist/types.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/builders.d.mts +23 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/builders.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/typebox-static.d.mts +40 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/typebox-static.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/index.d.mts +47 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/metrics.d.mts +31 -0
- package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/metrics.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@modelcontextprotocol_server@2.3.1/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts +2 -2
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts +79 -0
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/azure.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/bedrock.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/client.d.mts +36 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/api-promise.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/pagination.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/resource.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/streaming.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/core/uploads.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/index.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/auth/x509-transport-registry.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/bedrock.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/parse.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/provider.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/request-options.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/uploads.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/internal/utils/log.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/AssistantStream.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/ChatCompletionRunner.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/ChatCompletionStream.d.mts +8 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/ResponsesParser.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/RunnableFunction.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/agents/agent-session-stream.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/parser.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/responses/EventTypes.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/lib/responses/ResponseStream.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/pagination.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/admin.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/admin-api-keys.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/audit-logs.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/certificates.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/data-retention.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/groups/groups.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/groups/roles.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/groups/users.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/invites.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/organization.d.mts +13 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/certificates.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/data-retention.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/groups/groups.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/groups/roles.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/model-permissions.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/projects.d.mts +16 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/rate-limits.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/roles.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/spend-limit.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/users/roles.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/projects/users/users.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/roles.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/spend-alerts.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/spend-limit.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/usage.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/users/roles.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/admin/organization/users/users.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/audio/audio.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/audio/speech.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/audio/transcriptions.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/audio/translations.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/batches.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/agents.d.mts +9 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/environments/environments.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/environments/files.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/environments/templates.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/artifacts.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/events.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/sessions.d.mts +13 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/subagents/items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/subagents/subagents.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/subagents/turns/items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/subagents/turns/turns.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/sessions/turns.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/vaults/credentials.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/agents/vaults/vaults.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/assistants.d.mts +9 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/beta.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/chatkit/chatkit.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/chatkit/sessions.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/chatkit/threads.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/realtime/realtime.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/realtime/sessions.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/responses/input-items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/responses/input-tokens.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/responses/responses.d.mts +8 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/threads/messages.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/threads/runs/runs.d.mts +11 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/threads/runs/steps.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/beta/threads/threads.d.mts +9 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/chat.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/completions/completions.d.mts +14 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/completions/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/completions/messages.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/completions.d.mts +1 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/chat/index.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/completions.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/containers/containers.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/containers/files/content.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/containers/files/files.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/content-provenance-checks.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/conversations/conversations.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/conversations/items.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/embeddings.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/evals/evals.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/evals/runs/output-items.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/evals/runs/runs.d.mts +8 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/files.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/jobs/jobs.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/fine-tuning/methods.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/graders/grader-models.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/graders/graders.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/images.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/index.d.mts +26 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/live/forks/forks.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/live/live.d.mts +8 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/live/sessions.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/live/sideband/sideband.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/models.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/moderations.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/realtime/calls.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/realtime/client-secrets.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/realtime/realtime.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/responses/input-items.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/responses/input-tokens.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/responses/responses.d.mts +10 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/safety/alerts.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/safety/safety.d.mts +2 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/skills/content.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/skills/skills.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/skills/versions/content.d.mts +3 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/skills/versions/versions.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/uploads/parts.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/uploads/uploads.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/vector-stores/file-batches.d.mts +7 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/vector-stores/files.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/vector-stores/vector-stores.d.mts +6 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/videos.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/webhooks/event-types.d.mts +4 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/resources/webhooks/webhooks.d.mts +5 -0
- package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.972.86_@smithy_signature-v4@5.7.4_undici@7.30.0_ws@8.22.0_zod@4.6.7/node_modules/openai/uploads.d.mts +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/pointer/pointer_get.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_canonical.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_canonical.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_comparer.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_comparer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_elements.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_elements.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/additionalProperties.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/additionalProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/allOf.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/allOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/anyOf.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/anyOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/const.d.mts +4 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/const.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/enum.d.mts +4 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/if.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/if.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/items.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/items.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/oneOf.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/oneOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/patternProperties.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/patternProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/prefixItems.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/prefixItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/properties.d.mts +23 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/properties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/propertyNames.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/propertyNames.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/ref.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/ref.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/required.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/required.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/schema.d.mts +43 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/static.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/static.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/type.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalItems.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalProperties.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/allOf.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/allOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/anyOf.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/anyOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/const.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/const.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/else.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/else.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/enum.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/if.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/if.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/items.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/items.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/maxItems.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/maxItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/minItems.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/minItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/oneOf.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/oneOf.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/patternProperties.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/patternProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/prefixItems.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/prefixItems.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/properties.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/properties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/propertyNames.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/propertyNames.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/ref.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/ref.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/required.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/required.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/schema.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/then.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/then.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/type.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/memory/assign.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/memory/assign.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/unreachable/unreachable.d.mts +4 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/unreachable/unreachable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_immutable.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_immutable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_optional.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_optional.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_readonly.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_readonly.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_remove_optional.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_remove_optional.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/capitalize.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/capitalize.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/conditional.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/conditional.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/constructor_parameters.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/constructor_parameters.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/exclude.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/exclude.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/extract.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/extract.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/indexed.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/indexed.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/instance_type.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/instance_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/interface.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/interface.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/keyof.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/keyof.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/lowercase.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/lowercase.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/mapped.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/mapped.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/non_nullable.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/non_nullable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/omit.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/omit.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/parameters.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/parameters.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/partial.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/partial.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/pick.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/pick.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/readonly_object.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/readonly_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/required.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/required.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/return_type.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/return_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uncapitalize.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uncapitalize.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uppercase.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uppercase.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/with.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/with.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +21 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/instantiate.d.mts +21 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_target.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/check.d.mts +22 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/check.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +23 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +25 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/extends.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/target.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/target.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/compare.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/composite.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +22 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/property.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/property.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/operation.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/operation.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/operation.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/operation.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/keys.d.mts +5 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/keys.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/union.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +5 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +20 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instantiate.d.mts +69 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/interface/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +33 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_any.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_record.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +19 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/module/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/module/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/collapse.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/collapse.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_object.d.mts +5 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_type.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_union.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/from_type.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_object.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_type.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_union.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/patterns/pattern.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/from_type.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +20 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key.d.mts +26 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_any.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_number.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_string.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/ref/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_object.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_type.d.mts +16 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_union.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/rest/spread.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +24 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/decode.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +34 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/encode.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/static.d.mts +21 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/static.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/this/expand_this.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/this/expand_this.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/tuple/to_object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/with/instantiate.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/with/instantiate.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/any.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/any.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/array.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/bigint.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/bigint.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/boolean.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/boolean.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/constructor.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/constructor.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/dependent.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/enum.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_left.d.mts +55 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_left.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_right.d.mts +26 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_right.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/function.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/function.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/inference.d.mts +27 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/inference.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/integer.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/integer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/intersect.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/literal.d.mts +20 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/never.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/never.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/null.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/null.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/number.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/number.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/object.d.mts +28 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/parameters.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/parameters.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/record.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/record.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/result.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/result.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/return_type.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/return_type.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/string.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/string.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/symbol.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/symbol.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/template_literal.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/tuple.d.mts +24 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/undefined.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/undefined.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/union.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/unknown.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/unknown.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/void.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/void.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/mapping.d.mts +23 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/mapping.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/parser.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/parser.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/const.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/const.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/char.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/char.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/take.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/take.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/trim.d.mts +20 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/trim.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until.d.mts +8 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until_1.d.mts +6 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until_1.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_codec.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_codec.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_immutable.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_immutable.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_optional.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_optional.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_readonly.d.mts +7 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_readonly.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/any.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/any.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/array.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/array.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/bigint.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/bigint.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/boolean.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/boolean.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/call.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/call.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/constructor.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/constructor.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/cyclic.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/cyclic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/deferred.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/deferred.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/dependent.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/dependent.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/enum.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/enum.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/function.d.mts +17 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/function.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/generic.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/generic.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/identifier.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/identifier.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/infer.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/infer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/integer.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/integer.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/intersect.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/intersect.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/literal.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/never.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/never.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/null.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/null.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/number.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/number.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/object.d.mts +14 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/object.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/parameter.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/parameter.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/properties.d.mts +28 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/properties.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/record.d.mts +37 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/record.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/ref.d.mts +18 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/ref.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/rest.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/rest.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/schema.d.mts +88 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/static.d.mts +40 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/static.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/string.d.mts +11 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/string.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/symbol.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/symbol.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/template_literal.d.mts +15 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/template_literal.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/this.d.mts +13 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/this.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/tuple.d.mts +24 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/tuple.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/undefined.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/undefined.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/union.d.mts +12 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/union.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unknown.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unknown.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unsafe.d.mts +9 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unsafe.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/void.d.mts +10 -0
- package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/void.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/agent.d.mts +4 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/api.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/balanced-pool.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/cache.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/client-stats.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/client.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/cookies.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/diagnostics-channel.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/dispatcher.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/env-http-proxy-agent.d.mts +3 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/errors.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/eventsource.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/fetch.d.mts +3 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/formdata.d.mts +9 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/formdata.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/global-dispatcher.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/h2c-client.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/handlers.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/index.d.mts +31 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/interceptors.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-agent.d.mts +4 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-call-history.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-client.d.mts +4 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-errors.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-interceptor.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-pool.d.mts +4 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/pool-stats.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/pool.d.mts +3 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/proxy-agent.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/retry-agent.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/retry-handler.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/round-robin-pool.d.mts +3 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/snapshot-agent.d.mts +1 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/socks5-proxy-agent.d.mts +2 -0
- package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/websocket.d.mts +3 -0
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/compat.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/compat.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/errors.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/errors.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/parse.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/parse.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/schemas.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/schemas.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/api.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/api.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/checks.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/checks.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/core.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/core.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/errors.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/errors.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/json-schema.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/json-schema.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/registries.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/registries.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/schemas.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/schemas.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/standard-schema.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/standard-schema.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/to-json-schema.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/to-json-schema.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/util.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/util.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/versions.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/versions.d.mts.map +1 -1
- package/dist/packages/core/po-core/dist/src/schemas/apiContracts.d.mts +69 -0
- package/dist/packages/core/po-core/dist/src/schemas/apiContracts.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/approval.d.mts +43 -0
- package/dist/packages/core/po-core/dist/src/schemas/approval.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/approvalPrompt.d.mts +17 -0
- package/dist/packages/core/po-core/dist/src/schemas/approvalPrompt.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/backgroundWork.d.mts +66 -0
- package/dist/packages/core/po-core/dist/src/schemas/backgroundWork.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/brain.d.mts +74 -0
- package/dist/packages/core/po-core/dist/src/schemas/brain.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/hubChannel.d.mts +20 -0
- package/dist/packages/core/po-core/dist/src/schemas/hubChannel.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/mcpProjection.d.mts +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/notification.d.mts +28 -0
- package/dist/packages/core/po-core/dist/src/schemas/notification.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/packageApi.d.mts +40 -0
- package/dist/packages/core/po-core/dist/src/schemas/packageApi.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/platform.d.mts +349 -0
- package/dist/packages/core/po-core/dist/src/schemas/platform.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/serverBundle.d.mts +31 -0
- package/dist/packages/core/po-core/dist/src/schemas/serverBundle.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/serverScope.d.mts +56 -0
- package/dist/packages/core/po-core/dist/src/schemas/serverScope.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/schemas/workflow.d.mts +461 -0
- package/dist/packages/core/po-core/dist/src/schemas/workflow.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/src/web/hostSlots.d.mts +1 -0
- package/dist/packages/core/po-core/dist/src/web/types/nativeTemplate.d.mts +2 -1
- package/dist/packages/core/po-core/dist/src/web/types/webPlugin.d.mts +470 -1
- package/dist/packages/core/po-core/dist/src/web/types/webPlugin.d.mts.map +1 -0
- package/dist/packages/core/po-core/dist/web.d.mts +4 -2
- package/dist/packages/core/po-web-components/src/components/Accordion.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.d.mts +18 -0
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/AnsiText.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Avatar.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Badge.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Breadcrumb.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Button.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Checkbox.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/CodeBlock.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/CodeEditor.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/CodeEditorView.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Collapsible.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Command.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/CopyButton.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Dialog.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/DiffView.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Dot.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Drawer.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/DropdownMenu.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/EmptyState.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/FlowGraph.d.mts +33 -0
- package/dist/packages/core/po-web-components/src/components/FlowGraph.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/FlowGraph.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/FlowGraph.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/HashlineLines.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/HashlineLines.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/HashlineLines.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Input.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/Input.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Kbd.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Label.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/LiveDuration.d.mts +15 -0
- package/dist/packages/core/po-web-components/src/components/LiveDuration.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/LiveDuration.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/LiveDuration.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/Markdown.d.mts +8 -1
- package/dist/packages/core/po-web-components/src/components/Markdown.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Markdown.mjs +2 -2
- package/dist/packages/core/po-web-components/src/components/Markdown.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/McpApp.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/McpToolWidget.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MediaPreview.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.d.mts +14 -0
- package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/MermaidDiagram.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/MermaidDiagram.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MessageItem.d.mts +9 -2
- package/dist/packages/core/po-web-components/src/components/MessageItem.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MessageItem.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/MessageItem.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/MessageLines.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/OptionList.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Panel.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/PathText.d.mts +15 -0
- package/dist/packages/core/po-web-components/src/components/PathText.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/PathText.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/PathText.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/PdfPreview.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Picker.d.mts +18 -5
- package/dist/packages/core/po-web-components/src/components/Picker.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Picker.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/Picker.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Popover.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ProfilePicker.d.mts +34 -0
- package/dist/packages/core/po-web-components/src/components/ProfilePicker.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/ProfilePicker.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/ProfilePicker.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/components/Progress.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/RadioGroup.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ReviewCommentDraft.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ScrollArea.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/SectionLabel.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Select.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Separator.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Settings.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Sheet.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Skeleton.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Spinner.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/StatusBadge.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/StreamCursor.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Switch.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/SyntaxText.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/SyntaxText.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/SyntaxText.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Tabs.d.mts +7 -3
- package/dist/packages/core/po-web-components/src/components/Tabs.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Tabs.mjs +1 -1
- package/dist/packages/core/po-web-components/src/components/Tabs.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/TerminalView.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Textarea.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Toast.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ToolPathLink.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/Tooltip.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/components/ViewableImage.d.mts +15 -0
- package/dist/packages/core/po-web-components/src/components/ViewableImage.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/components/ViewableImage.mjs +2 -0
- package/dist/packages/core/po-web-components/src/components/ViewableImage.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/icons/icons.d.mts +2 -2
- package/dist/packages/core/po-web-components/src/icons/icons.mjs +1 -1
- package/dist/packages/core/po-web-components/src/lib/ansiSpans.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/cn.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/collapse.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/editorController.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/editorLanguage.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/editorTheme.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/fenceGrammar.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineHighlight.mjs +1 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineHighlight.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineView.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/markdownMedia.d.mts +57 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMedia.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMedia.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMedia.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.d.mts +10 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.d.mts +47 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.mjs +3 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.d.mts +19 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.d.mts +32 -0
- package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/media.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/mediaPlayback.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/mermaidDiagram.mjs +1 -1
- package/dist/packages/core/po-web-components/src/lib/mermaidDiagram.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/optionList.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/pathGroups.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/picker.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/profilePicker.d.mts +43 -0
- package/dist/packages/core/po-web-components/src/lib/profilePicker.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/profilePicker.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/profilePicker.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/review.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/runDuration.d.mts +12 -0
- package/dist/packages/core/po-web-components/src/lib/runDuration.d.mts.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/runDuration.mjs +2 -0
- package/dist/packages/core/po-web-components/src/lib/runDuration.mjs.map +1 -0
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.d.mts +6 -8
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.d.mts.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.mjs +1 -1
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/lib/tone.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/apply.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/builtinThemes.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/derive.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/nativeTheme.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/parse.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/piTheme.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/theme/preference.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/types/editor.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/types/theme.mjs.map +1 -1
- package/dist/packages/core/po-web-components/src/types/tone.mjs.map +1 -1
- package/dist/src/components/Accordion.cjs.map +1 -1
- package/dist/src/components/AgentAvatar.cjs +2 -0
- package/dist/src/components/AgentAvatar.cjs.map +1 -0
- package/dist/src/components/AnsiText.cjs.map +1 -1
- package/dist/src/components/Avatar.cjs.map +1 -1
- package/dist/src/components/Badge.cjs.map +1 -1
- package/dist/src/components/Breadcrumb.cjs.map +1 -1
- package/dist/src/components/Button.cjs.map +1 -1
- package/dist/src/components/Checkbox.cjs.map +1 -1
- package/dist/src/components/CodeBlock.cjs.map +1 -1
- package/dist/src/components/CodeEditor.cjs.map +1 -1
- package/dist/src/components/CodeEditorView.cjs.map +1 -1
- package/dist/src/components/Collapsible.cjs.map +1 -1
- package/dist/src/components/Command.cjs.map +1 -1
- package/dist/src/components/CopyButton.cjs.map +1 -1
- package/dist/src/components/Dialog.cjs.map +1 -1
- package/dist/src/components/DiffView.cjs.map +1 -1
- package/dist/src/components/Dot.cjs.map +1 -1
- package/dist/src/components/Drawer.cjs.map +1 -1
- package/dist/src/components/DropdownMenu.cjs.map +1 -1
- package/dist/src/components/EmptyState.cjs.map +1 -1
- package/dist/src/components/FlowGraph.cjs +2 -0
- package/dist/src/components/FlowGraph.cjs.map +1 -0
- package/dist/src/components/HashlineLines.cjs +1 -1
- package/dist/src/components/HashlineLines.cjs.map +1 -1
- package/dist/src/components/Input.cjs +1 -1
- package/dist/src/components/Input.cjs.map +1 -1
- package/dist/src/components/Kbd.cjs.map +1 -1
- package/dist/src/components/Label.cjs.map +1 -1
- package/dist/src/components/LiveDuration.cjs +2 -0
- package/dist/src/components/LiveDuration.cjs.map +1 -0
- package/dist/src/components/Markdown.cjs +2 -2
- package/dist/src/components/Markdown.cjs.map +1 -1
- package/dist/src/components/McpApp.cjs.map +1 -1
- package/dist/src/components/McpToolWidget.cjs.map +1 -1
- package/dist/src/components/MediaPreview.cjs.map +1 -1
- package/dist/src/components/MediaViewerDialog.cjs +2 -0
- package/dist/src/components/MediaViewerDialog.cjs.map +1 -0
- package/dist/src/components/MermaidDiagram.cjs +1 -1
- package/dist/src/components/MermaidDiagram.cjs.map +1 -1
- package/dist/src/components/MessageItem.cjs +1 -1
- package/dist/src/components/MessageItem.cjs.map +1 -1
- package/dist/src/components/MessageLines.cjs.map +1 -1
- package/dist/src/components/OptionList.cjs.map +1 -1
- package/dist/src/components/Panel.cjs.map +1 -1
- package/dist/src/components/PathText.cjs +2 -0
- package/dist/src/components/PathText.cjs.map +1 -0
- package/dist/src/components/PdfPreview.cjs.map +1 -1
- package/dist/src/components/Picker.cjs +1 -1
- package/dist/src/components/Picker.cjs.map +1 -1
- package/dist/src/components/Popover.cjs.map +1 -1
- package/dist/src/components/ProfilePicker.cjs +2 -0
- package/dist/src/components/ProfilePicker.cjs.map +1 -0
- package/dist/src/components/Progress.cjs.map +1 -1
- package/dist/src/components/RadioGroup.cjs.map +1 -1
- package/dist/src/components/ReviewCommentDraft.cjs.map +1 -1
- package/dist/src/components/ScrollArea.cjs.map +1 -1
- package/dist/src/components/SectionLabel.cjs.map +1 -1
- package/dist/src/components/Select.cjs.map +1 -1
- package/dist/src/components/Separator.cjs.map +1 -1
- package/dist/src/components/Settings.cjs.map +1 -1
- package/dist/src/components/Sheet.cjs.map +1 -1
- package/dist/src/components/Skeleton.cjs.map +1 -1
- package/dist/src/components/Spinner.cjs.map +1 -1
- package/dist/src/components/StatusBadge.cjs.map +1 -1
- package/dist/src/components/StreamCursor.cjs.map +1 -1
- package/dist/src/components/Switch.cjs.map +1 -1
- package/dist/src/components/SyntaxText.cjs +1 -1
- package/dist/src/components/SyntaxText.cjs.map +1 -1
- package/dist/src/components/Tabs.cjs +1 -1
- package/dist/src/components/Tabs.cjs.map +1 -1
- package/dist/src/components/TerminalView.cjs.map +1 -1
- package/dist/src/components/Textarea.cjs.map +1 -1
- package/dist/src/components/Toast.cjs.map +1 -1
- package/dist/src/components/ToolPathLink.cjs.map +1 -1
- package/dist/src/components/Tooltip.cjs.map +1 -1
- package/dist/src/components/ViewableImage.cjs +2 -0
- package/dist/src/components/ViewableImage.cjs.map +1 -0
- package/dist/src/icons/icons.cjs +1 -1
- package/dist/src/lib/ansiSpans.cjs.map +1 -1
- package/dist/src/lib/cn.cjs.map +1 -1
- package/dist/src/lib/collapse.cjs.map +1 -1
- package/dist/src/lib/editorController.cjs.map +1 -1
- package/dist/src/lib/editorLanguage.cjs.map +1 -1
- package/dist/src/lib/editorTheme.cjs.map +1 -1
- package/dist/src/lib/fenceGrammar.cjs.map +1 -1
- package/dist/src/lib/hashlineHighlight.cjs +1 -1
- package/dist/src/lib/hashlineHighlight.cjs.map +1 -1
- package/dist/src/lib/hashlineView.cjs.map +1 -1
- package/dist/src/lib/markdownMedia.cjs +2 -0
- package/dist/src/lib/markdownMedia.cjs.map +1 -0
- package/dist/src/lib/markdownMediaSlot.cjs +2 -0
- package/dist/src/lib/markdownMediaSlot.cjs.map +1 -0
- package/dist/src/lib/mcpAppFrame.cjs +3 -0
- package/dist/src/lib/mcpAppFrame.cjs.map +1 -0
- package/dist/src/lib/mcpAppSandbox.cjs +2 -0
- package/dist/src/lib/mcpAppSandbox.cjs.map +1 -0
- package/dist/src/lib/mcpOpenAiBootstrap.cjs +2 -0
- package/dist/src/lib/mcpOpenAiBootstrap.cjs.map +1 -0
- package/dist/src/lib/media.cjs.map +1 -1
- package/dist/src/lib/mediaPlayback.cjs.map +1 -1
- package/dist/src/lib/mermaidDiagram.cjs +1 -1
- package/dist/src/lib/mermaidDiagram.cjs.map +1 -1
- package/dist/src/lib/optionList.cjs.map +1 -1
- package/dist/src/lib/pathGroups.cjs.map +1 -1
- package/dist/src/lib/picker.cjs.map +1 -1
- package/dist/src/lib/profilePicker.cjs +2 -0
- package/dist/src/lib/profilePicker.cjs.map +1 -0
- package/dist/src/lib/review.cjs.map +1 -1
- package/dist/src/lib/runDuration.cjs +2 -0
- package/dist/src/lib/runDuration.cjs.map +1 -0
- package/dist/src/lib/syntaxHighlight.cjs +1 -1
- package/dist/src/lib/syntaxHighlight.cjs.map +1 -1
- package/dist/src/lib/tone.cjs.map +1 -1
- package/dist/src/theme/apply.cjs.map +1 -1
- package/dist/src/theme/builtinThemes.cjs.map +1 -1
- package/dist/src/theme/derive.cjs.map +1 -1
- package/dist/src/theme/nativeTheme.cjs.map +1 -1
- package/dist/src/theme/parse.cjs.map +1 -1
- package/dist/src/theme/piTheme.cjs.map +1 -1
- package/dist/src/theme/preference.cjs.map +1 -1
- package/dist/src/types/editor.cjs.map +1 -1
- package/dist/src/types/theme.cjs.map +1 -1
- package/dist/src/types/tone.cjs.map +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.d.mts +7 -1
- package/dist/text.mjs +1 -1
- package/package.json +20 -9
- package/styles/theme.css +23 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyButton.cjs","names":["useState","useCallback","Button","cn","CheckIcon","CopyIcon","require_cn","require_Button","react_jsx_runtime","react","lucide_react","LABELS","CopyButton","state","setState","timer","copy","text","label","className"],"sources":["../../../src/components/CopyButton.tsx"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nimport { CheckIcon, CopyIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\n/**\n * Puts a piece of text on the clipboard and says so.\n *\n * DESIGN PATTERNS:\n * - Always visible, dimmed. Half the cockpit's surfaces are touched rather\n * than pointed at, and a control revealed by hover does not exist there.\n * - A refused clipboard is a state, not a crash: the label says the browser\n * blocked it and the text is still there to select by hand.\n */\n\n/** How long the control stays acknowledged before returning to its icon. */\nconst FEEDBACK_MS = 1500;\n\ntype CopyState = 'idle' | 'copied' | 'failed';\n\nconst LABELS: Readonly<Record<CopyState, string>> = {\n idle: 'copy',\n copied: 'copied',\n failed: 'copying was blocked by the browser',\n};\n\nexport interface CopyButtonProps {\n /** What lands on the clipboard. */\n text: string;\n className?: string | undefined;\n}\n\nexport function CopyButton({ text, className }: CopyButtonProps) {\n const [state, setState] = useState<CopyState>('idle');\n\n useEffect(() => {\n if (state === 'idle') return;\n const timer = setTimeout(() => setState('idle'), FEEDBACK_MS);\n return () => clearTimeout(timer);\n }, [state]);\n\n const copy = useCallback(() => {\n void navigator.clipboard.writeText(text).then(\n () => setState('copied'),\n () => setState('failed'),\n );\n }, [text]);\n\n const label = LABELS[state];\n return (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n data-testid=\"copy-button\"\n data-state={state}\n title={label}\n aria-label={label}\n onClick={copy}\n className={cn('opacity-60 hover:opacity-100', className)}\n >\n {state === 'copied' ? <CheckIcon className=\"size-3 text-po-green\" /> : <CopyIcon className=\"size-3\" />}\n </Button>\n );\n}\n"],"mappings":"yKAiBA,MAIMW,EAA8C,CAClD,KAAM,OACN,OAAQ,SACR,OAAQ,oCACV,EAQA,SAAgBC,EAAW,CAAE,OAAM,aAA8B,CAC/D,GAAM,CAACC,EAAOC,IAAA,EAAYd,EAAAA,SAAAA,CAAoB,MAAM,GAEpD,EAAAS,EAAA,UAAA,KAAgB,CACd,GAAII,IAAU,OAAQ,OACtB,IAAME,EAAQ,eAAiBD,EAAS,MAAM,EAAG,IAAW,EAC5D,UAAa,aAAaC,CAAK,CACjC,EAAG,CAACF,CAAK,CAAC,EAEV,IAAMG,GAAA,EAAOf,EAAAA,YAAAA,KAAkB,CAC7B,UAAe,UAAU,UAAUgB,CAAI,CAAC,CAAC,SACjCH,EAAS,QAAQ,MACjBA,EAAS,QAAQ,CACzB,CACF,EAAG,CAACG,CAAI,CAAC,EAEHC,EAAQP,EAAOE,GACrB,MACE,iBAAA,EAAAL,EAAA,IAAA,CAACN,EAAAA,OAAD,CACE,KAAK,SACL,QAAQ,QACR,KAAK,OACL,cAAY,cACZ,aAAYW,EACZ,MAAOK,EACP,aAAYA,EACZ,QAASF,EACT,UAAWb,EAAAA,GAAG,+BAAgCgB,CAAS,EAEtD,SAAAN,IAAU,SAAW,iBAAA,EAAAL,EAAA,IAAA,CAACJ,EAAAA,MAAD,CAAW,UAAU,sBAAwB,CAAA,EAAI,iBAAA,EAAAI,EAAA,IAAA,CAACH,EAAAA,KAAD,CAAU,UAAU,QAAU,CAAA,CAC/F,CAAA,CAEZ"}
|
|
1
|
+
{"version":3,"file":"CopyButton.cjs","names":["useState","useCallback","Button","cn","CheckIcon","CopyIcon","require_cn","require_Button","react_jsx_runtime","react","lucide_react","LABELS","CopyButton","state","setState","timer","copy","text","label","className"],"sources":["../../../src/components/CopyButton.tsx"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\n\nimport { CheckIcon, CopyIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\n/**\n * Puts a piece of text on the clipboard and says so.\n *\n * DESIGN PATTERNS:\n * - Always visible, dimmed. Half the cockpit's surfaces are touched rather\n * than pointed at, and a control revealed by hover does not exist there.\n * - A refused clipboard is a state, not a crash: the label says the browser\n * blocked it and the text is still there to select by hand.\n */\n\n/** How long the control stays acknowledged before returning to its icon. */\nconst FEEDBACK_MS = 1500;\n\ntype CopyState = 'idle' | 'copied' | 'failed';\n\nconst LABELS: Readonly<Record<CopyState, string>> = {\n idle: 'copy',\n copied: 'copied',\n failed: 'copying was blocked by the browser',\n};\n\nexport interface CopyButtonProps {\n /** What lands on the clipboard. */\n text: string;\n className?: string | undefined;\n}\n\nexport function CopyButton({ text, className }: CopyButtonProps) {\n const [state, setState] = useState<CopyState>('idle');\n\n useEffect(() => {\n if (state === 'idle') return;\n const timer = setTimeout(() => setState('idle'), FEEDBACK_MS);\n return () => clearTimeout(timer);\n }, [state]);\n\n const copy = useCallback(() => {\n void navigator.clipboard.writeText(text).then(\n () => setState('copied'),\n () => setState('failed'),\n );\n }, [text]);\n\n const label = LABELS[state];\n return (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n data-testid=\"copy-button\"\n data-state={state}\n title={label}\n aria-label={label}\n onClick={copy}\n className={cn('opacity-60 hover:opacity-100', className)}\n >\n {state === 'copied' ? <CheckIcon className=\"size-3 text-po-green\" /> : <CopyIcon className=\"size-3\" />}\n </Button>\n );\n}\n"],"mappings":"A,yKAiBA,MAIMW,EAA8C,CAClD,KAAM,OACN,OAAQ,SACR,OAAQ,oCACV,EAQA,SAAgBC,EAAW,CAAE,OAAM,aAA8B,CAC/D,GAAM,CAACC,EAAOC,IAAA,EAAYd,EAAAA,SAAAA,CAAoB,MAAM,GAEpD,EAAAS,EAAA,UAAA,KAAgB,CACd,GAAII,IAAU,OAAQ,OACtB,IAAME,EAAQ,eAAiBD,EAAS,MAAM,EAAG,IAAW,EAC5D,UAAa,aAAaC,CAAK,CACjC,EAAG,CAACF,CAAK,CAAC,EAEV,IAAMG,GAAA,EAAOf,EAAAA,YAAAA,KAAkB,CAC7B,UAAe,UAAU,UAAUgB,CAAI,CAAC,CAAC,SACjCH,EAAS,QAAQ,MACjBA,EAAS,QAAQ,CACzB,CACF,EAAG,CAACG,CAAI,CAAC,EAEHC,EAAQP,EAAOE,GACrB,MACE,iBAAA,EAAAL,EAAA,IAAA,CAACN,EAAAA,OAAD,CACE,KAAK,SACL,QAAQ,QACR,KAAK,OACL,cAAY,cACZ,aAAYW,EACZ,MAAOK,EACP,aAAYA,EACZ,QAASF,EACT,UAAWb,EAAAA,GAAG,+BAAgCgB,CAAS,EAEtD,SAAAN,IAAU,SAAW,iBAAA,EAAAL,EAAA,IAAA,CAACJ,EAAAA,MAAD,CAAW,UAAU,sBAAwB,CAAA,EAAI,iBAAA,EAAAI,EAAA,IAAA,CAACH,EAAAA,KAAD,CAAU,UAAU,QAAU,CAAA,CAC/F,CAAA,CAEZ,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.cjs","names":["createContext","DialogPrimitive","useContext","cn","Button","CloseIcon","cva","require_cn","require_Button","radix_ui","react_jsx_runtime","react","class_variance_authority","lucide_react","DialogOpenChangeContext","Dialog","onOpenChange","props","open","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","className","onPointerDownCapture","event","dialogContent","bounds","CONTENT_WIDTH","DialogContent","width","DialogHeader","children","dismissible","closeLabel","DialogTitle","DialogDescription","DialogBody","dialogFooterVariants","DialogFooter"],"sources":["../../../src/components/Dialog.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { createContext, type ComponentProps, useContext } from 'react';\n\nimport { CloseIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\nconst DialogOpenChangeContext = createContext<((open: boolean) => void) | undefined>(undefined);\n/**\n * shadcn's Dialog on Radix: focus trap, Escape, outside click, scroll lock,\n * and focus restored to the trigger on close. The frame is the Po panel.\n */\nexport function Dialog(props: ComponentProps<typeof DialogPrimitive.Root>) {\n const onOpenChange = props.onOpenChange === undefined ? undefined : (open: boolean) => props.onOpenChange?.(open);\n return (\n <DialogOpenChangeContext.Provider value={onOpenChange}>\n <DialogPrimitive.Root data-slot=\"dialog\" {...props} onOpenChange={onOpenChange} />\n </DialogOpenChangeContext.Provider>\n );\n}\n\nexport function DialogTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nexport function DialogPortal(props: ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nexport function DialogClose(props: ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nexport function DialogOverlay({\n className,\n onPointerDownCapture,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Overlay>) {\n const onOpenChange = useContext(DialogOpenChangeContext);\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn('fixed inset-0 z-40 bg-po-deep/70 data-[state=open]:animate-po-fade', className)}\n onPointerDownCapture={(event) => {\n onPointerDownCapture?.(event);\n if (event.defaultPrevented || onOpenChange === undefined) return;\n const dialogContent = event.currentTarget.nextElementSibling;\n const openSelectTrigger = dialogContent?.querySelector('[data-slot=\"select-trigger\"][data-state=\"open\"]');\n if (openSelectTrigger === null || openSelectTrigger === undefined) return;\n // An open Select disables pointer events on the dialog; an inside press falls through to this overlay.\n const bounds = dialogContent?.getBoundingClientRect();\n if (\n bounds &&\n event.clientX >= bounds.left &&\n event.clientX <= bounds.right &&\n event.clientY >= bounds.top &&\n event.clientY <= bounds.bottom\n )\n return;\n\n // Radix's parent outside listener can lag one render behind a nested\n // modal Select. Own this backdrop press so the complete stack closes.\n event.stopPropagation();\n onOpenChange(false);\n }}\n {...props}\n />\n );\n}\n\nexport interface DialogContentProps extends ComponentProps<typeof DialogPrimitive.Content> {\n /** Width preset; `className` may still override. */\n width?: 'sm' | 'md' | 'lg';\n}\n\nconst CONTENT_WIDTH = { sm: 'w-[360px]', md: 'w-[480px]', lg: 'w-[620px]' } as const;\n\nexport function DialogContent({ className, children, width = 'md', ...props }: DialogContentProps) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100dvh-24px)] max-w-[calc(100vw-24px)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-lg border border-po-border bg-po-panel shadow-2xl outline-none data-[state=open]:animate-po-pop',\n CONTENT_WIDTH[width],\n className,\n )}\n {...props}\n >\n {children}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\nexport interface DialogHeaderProps extends ComponentProps<'div'> {\n /**\n * Show the close control at the right of the strip. Off by default: most\n * headers already put something there (a spinner, a method label) and every\n * dialog closes on Escape, so an X that fights the existing content is worse\n * than none. Turn it on for a dialog whose only way out is the mouse.\n */\n dismissible?: boolean;\n /** What the close control announces. */\n closeLabel?: string;\n}\n\nexport function DialogHeader({\n className,\n dismissible = false,\n closeLabel = 'close',\n children,\n ...props\n}: DialogHeaderProps) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\n 'flex min-w-0 items-center justify-between gap-3 border-b border-po-border px-3 py-3 sm:px-4',\n className,\n )}\n {...props}\n >\n {children}\n {dismissible ? (\n <DialogPrimitive.Close asChild>\n <Button variant=\"ghost\" size=\"icon\" aria-label={closeLabel} className=\"text-po-faint hover:text-po-hi\">\n <CloseIcon className=\"h-3 w-3\" />\n </Button>\n </DialogPrimitive.Close>\n ) : null}\n </div>\n );\n}\n\nexport function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn('text-xl font-semibold text-po-hi', className)}\n {...props}\n />\n );\n}\n\nexport function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn('text-sm leading-relaxed text-po-dim', className)}\n {...props}\n />\n );\n}\n\nexport function DialogBody({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"dialog-body\"\n className={cn('flex min-h-0 flex-col gap-3 overflow-y-auto px-3 py-3 sm:px-4 sm:py-4', className)}\n {...props}\n />\n );\n}\n\nexport const dialogFooterVariants = cva('flex shrink-0 items-center gap-2', {\n variants: {\n variant: {\n /** Buttons alone, sitting inside the body's padding. */\n plain: 'justify-end',\n /**\n * The full-width strip: a hint on the left, the buttons on the right,\n * recessed and ruled off from the body. The same shape PopoverFooter\n * draws, because a dialog and a popover promise their keys the same way.\n */\n bar: 'min-h-[34px] flex-wrap justify-between border-t border-po-border-soft bg-po-deep px-3 py-1.5 sm:flex-nowrap sm:px-4 sm:py-0',\n },\n },\n defaultVariants: { variant: 'plain' },\n});\n\nexport interface DialogFooterProps extends ComponentProps<'div'>, VariantProps<typeof dialogFooterVariants> {}\n\nexport function DialogFooter({ className, variant, ...props }: DialogFooterProps) {\n return <div data-slot=\"dialog-footer\" className={cn(dialogFooterVariants({ variant }), className)} {...props} />;\n}\n"],"mappings":"qOAQA,MAAMc,GAAA,EAA0Bd,EAAAA,cAAAA,CAAqD,IAAA,EAAS,EAK9F,SAAgBe,EAAO,EAAoD,CACzE,IAAMC,EAAeC,EAAM,eAAiB,IAAA,GAAY,IAAA,GAAa,GAAkBA,EAAM,eAAeC,CAAI,EAChH,MACE,iBAAA,EAAAR,EAAA,IAAA,CAACI,EAAwB,SAAzB,CAAkC,MAAOE,EACvC,SAAA,iBAAA,EAAAN,EAAA,IAAA,CAACT,EAAAA,OAAgB,KAAjB,CAAsB,YAAU,SAAS,GAAIgB,EAAqB,cAAe,CAAA,CACjD,CAAA,CAEtC,CAEA,SAAgBE,EAAc,EAAuD,CACnF,MAAO,iBAAA,EAAAT,EAAA,IAAA,CAACT,EAAAA,OAAgB,QAAjB,CAAyB,YAAU,iBAAiB,GAAIgB,CAAQ,CAAA,CACzE,CAEA,SAAgBG,EAAa,EAAsD,CACjF,MAAO,iBAAA,EAAAV,EAAA,IAAA,CAACT,EAAAA,OAAgB,OAAjB,CAAwB,YAAU,gBAAgB,GAAIgB,CAAQ,CAAA,CACvE,CAEA,SAAgBI,EAAY,EAAqD,CAC/E,MAAO,iBAAA,EAAAX,EAAA,IAAA,CAACT,EAAAA,OAAgB,MAAjB,CAAuB,YAAU,eAAe,GAAIgB,CAAQ,CAAA,CACrE,CAEA,SAAgBK,EAAc,CAC5B,YACA,uBACA,GAA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AG,GAAIN,CAAQ,CAAA,CACjH"}
|
|
1
|
+
{"version":3,"file":"Dialog.cjs","names":["createContext","DialogPrimitive","useContext","cn","Button","CloseIcon","cva","require_cn","require_Button","radix_ui","react_jsx_runtime","react","class_variance_authority","lucide_react","DialogOpenChangeContext","Dialog","onOpenChange","props","open","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","className","onPointerDownCapture","event","dialogContent","bounds","CONTENT_WIDTH","DialogContent","width","DialogHeader","children","dismissible","closeLabel","DialogTitle","DialogDescription","DialogBody","dialogFooterVariants","DialogFooter"],"sources":["../../../src/components/Dialog.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { createContext, type ComponentProps, useContext } from 'react';\n\nimport { CloseIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\nconst DialogOpenChangeContext = createContext<((open: boolean) => void) | undefined>(undefined);\n/**\n * shadcn's Dialog on Radix: focus trap, Escape, outside click, scroll lock,\n * and focus restored to the trigger on close. The frame is the Po panel.\n */\nexport function Dialog(props: ComponentProps<typeof DialogPrimitive.Root>) {\n const onOpenChange = props.onOpenChange === undefined ? undefined : (open: boolean) => props.onOpenChange?.(open);\n return (\n <DialogOpenChangeContext.Provider value={onOpenChange}>\n <DialogPrimitive.Root data-slot=\"dialog\" {...props} onOpenChange={onOpenChange} />\n </DialogOpenChangeContext.Provider>\n );\n}\n\nexport function DialogTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nexport function DialogPortal(props: ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nexport function DialogClose(props: ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nexport function DialogOverlay({\n className,\n onPointerDownCapture,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Overlay>) {\n const onOpenChange = useContext(DialogOpenChangeContext);\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn('fixed inset-0 z-40 bg-po-deep/70 data-[state=open]:animate-po-fade', className)}\n onPointerDownCapture={(event) => {\n onPointerDownCapture?.(event);\n if (event.defaultPrevented || onOpenChange === undefined) return;\n const dialogContent = event.currentTarget.nextElementSibling;\n const openSelectTrigger = dialogContent?.querySelector('[data-slot=\"select-trigger\"][data-state=\"open\"]');\n if (openSelectTrigger === null || openSelectTrigger === undefined) return;\n // An open Select disables pointer events on the dialog; an inside press falls through to this overlay.\n const bounds = dialogContent?.getBoundingClientRect();\n if (\n bounds &&\n event.clientX >= bounds.left &&\n event.clientX <= bounds.right &&\n event.clientY >= bounds.top &&\n event.clientY <= bounds.bottom\n )\n return;\n\n // Radix's parent outside listener can lag one render behind a nested\n // modal Select. Own this backdrop press so the complete stack closes.\n event.stopPropagation();\n onOpenChange(false);\n }}\n {...props}\n />\n );\n}\n\nexport interface DialogContentProps extends ComponentProps<typeof DialogPrimitive.Content> {\n /** Width preset; `className` may still override. */\n width?: 'sm' | 'md' | 'lg';\n}\n\nconst CONTENT_WIDTH = { sm: 'w-[360px]', md: 'w-[480px]', lg: 'w-[620px]' } as const;\n\nexport function DialogContent({ className, children, width = 'md', ...props }: DialogContentProps) {\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100dvh-24px)] max-w-[calc(100vw-24px)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-lg border border-po-border bg-po-panel shadow-2xl outline-none data-[state=open]:animate-po-pop',\n CONTENT_WIDTH[width],\n className,\n )}\n {...props}\n >\n {children}\n </DialogPrimitive.Content>\n </DialogPortal>\n );\n}\n\nexport interface DialogHeaderProps extends ComponentProps<'div'> {\n /**\n * Show the close control at the right of the strip. Off by default: most\n * headers already put something there (a spinner, a method label) and every\n * dialog closes on Escape, so an X that fights the existing content is worse\n * than none. Turn it on for a dialog whose only way out is the mouse.\n */\n dismissible?: boolean;\n /** What the close control announces. */\n closeLabel?: string;\n}\n\nexport function DialogHeader({\n className,\n dismissible = false,\n closeLabel = 'close',\n children,\n ...props\n}: DialogHeaderProps) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\n 'flex min-w-0 items-center justify-between gap-3 border-b border-po-border px-3 py-3 sm:px-4',\n className,\n )}\n {...props}\n >\n {children}\n {dismissible ? (\n <DialogPrimitive.Close asChild>\n <Button variant=\"ghost\" size=\"icon\" aria-label={closeLabel} className=\"text-po-faint hover:text-po-hi\">\n <CloseIcon className=\"h-3 w-3\" />\n </Button>\n </DialogPrimitive.Close>\n ) : null}\n </div>\n );\n}\n\nexport function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn('text-xl font-semibold text-po-hi', className)}\n {...props}\n />\n );\n}\n\nexport function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn('text-sm leading-relaxed text-po-dim', className)}\n {...props}\n />\n );\n}\n\nexport function DialogBody({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"dialog-body\"\n className={cn('flex min-h-0 flex-col gap-3 overflow-y-auto px-3 py-3 sm:px-4 sm:py-4', className)}\n {...props}\n />\n );\n}\n\nexport const dialogFooterVariants = cva('flex shrink-0 items-center gap-2', {\n variants: {\n variant: {\n /** Buttons alone, sitting inside the body's padding. */\n plain: 'justify-end',\n /**\n * The full-width strip: a hint on the left, the buttons on the right,\n * recessed and ruled off from the body. The same shape PopoverFooter\n * draws, because a dialog and a popover promise their keys the same way.\n */\n bar: 'min-h-[34px] flex-wrap justify-between border-t border-po-border-soft bg-po-deep px-3 py-1.5 sm:flex-nowrap sm:px-4 sm:py-0',\n },\n },\n defaultVariants: { variant: 'plain' },\n});\n\nexport interface DialogFooterProps extends ComponentProps<'div'>, VariantProps<typeof dialogFooterVariants> {}\n\nexport function DialogFooter({ className, variant, ...props }: DialogFooterProps) {\n return <div data-slot=\"dialog-footer\" className={cn(dialogFooterVariants({ variant }), className)} {...props} />;\n}\n"],"mappings":"A,qOAQA,MAAMc,GAAA,EAA0Bd,EAAAA,cAAAA,CAAqD,IAAA,EAAS,EAK9F,SAAgBe,EAAO,EAAoD,CACzE,IAAMC,EAAeC,EAAM,eAAiB,IAAA,GAAY,IAAA,GAAa,GAAkBA,EAAM,eAAeC,CAAI,EAChH,MACE,iBAAA,EAAAR,EAAA,IAAA,CAACI,EAAwB,SAAzB,CAAkC,MAAOE,EACvC,SAAA,iBAAA,EAAAN,EAAA,IAAA,CAACT,EAAAA,OAAgB,KAAjB,CAAsB,YAAU,SAAS,GAAIgB,EAAqB,cAAe,CAAA,CACjD,CAAA,CAEtC,CAEA,SAAgBE,EAAc,EAAuD,CACnF,MAAO,iBAAA,EAAAT,EAAA,IAAA,CAACT,EAAAA,OAAgB,QAAjB,CAAyB,YAAU,iBAAiB,GAAIgB,CAAQ,CAAA,CACzE,CAEA,SAAgBG,EAAa,EAAsD,CACjF,MAAO,iBAAA,EAAAV,EAAA,IAAA,CAACT,EAAAA,OAAgB,OAAjB,CAAwB,YAAU,gBAAgB,GAAIgB,CAAQ,CAAA,CACvE,CAEA,SAAgBI,EAAY,EAAqD,CAC/E,MAAO,iBAAA,EAAAX,EAAA,IAAA,CAACT,EAAAA,OAAgB,MAAjB,CAAuB,YAAU,eAAe,GAAIgB,CAAQ,CAAA,CACrE,CAEA,SAAgBK,EAAc,CAC5B,YACA,uBACA,GAAGL,GAC8C,CACjD,IAAMD,GAAA,EAAed,EAAAA,WAAAA,CAAWY,CAAuB,EACvD,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACT,EAAAA,OAAg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Fragment","Button","require_cn","require_Button","require_review","react_jsx_runtime","react","ROW_TONE","isMarker","value","DiffView","gutter","hunks","testId","onSelect","selection","text","touched","row","range","className","position","hunk","renderAfterRow","offset"],"sources":["../../../src/components/DiffView.tsx"],"sourcesContent":["import { Fragment, type ReactNode } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { diffGutterWidth, diffRangeOf } from '../lib/review';\nimport type { DiffHunk, DiffMarker, DiffRow, DiffSelection } from '../types/diff';\nimport { Button } from './Button';\n\n/**\n * A diff, drawn the way this cockpit draws every other one: a numbered gutter\n * and a background wash per row, so a change reads at a glance rather than by\n * hunting for leading punctuation.\n *\n * Hunks arrive apart rather than joined by an elision marker, so the gap\n * between two of them is a rule the component draws, not a line it has to\n * recognise in a string.\n *\n * A reader comments two ways: by highlighting text, which reports the lines the\n * highlight touches, or by clicking a line number, which reports that one line.\n * Either way the selection names its side, so a note on a removed line points\n * at the old file rather than at whatever the new file has on that number.\n */\n\nconst ROW_TONE: Readonly<Record<DiffMarker, string>> = {\n '+': 'bg-po-tint-green text-po-green',\n '-': 'bg-po-tint-red text-po-red',\n ' ': 'text-po-dim',\n};\n\nexport interface DiffViewProps {\n hunks: readonly DiffHunk[];\n /** Marks the surface so a test and a selection handler can find it. Unique per diff on a page. */\n testId: string;\n /** Called with the selected text, the lines it covers, and their side. Enables line-number clicks. */\n onSelect?: (selection: DiffSelection) => void;\n /** Drawn under one row, full width: inline comments and an open draft go here. */\n renderAfterRow?: (row: DiffRow) => ReactNode;\n className?: string;\n}\n\nfunction isMarker(value: string | undefined): value is DiffMarker {\n return value === '+' || value === '-' || value === ' ';\n}\n\nexport function DiffView({ hunks, testId, onSelect, renderAfterRow, className }: DiffViewProps) {\n const gutter = diffGutterWidth(hunks);\n\n /**\n * Turns whatever the reader highlighted into a line range. The rows carry\n * their own numbers and markers, so the range comes from the rows the\n * selection touches rather than from counting newlines in the rendered text.\n */\n const handleSelect = (): void => {\n if (onSelect === undefined) return;\n const selection = globalThis.getSelection?.();\n const text = selection?.toString() ?? '';\n if (text.trim() === '') return;\n const rows = [...document.querySelectorAll<HTMLElement>(`[data-diff-surface=\"${testId}\"] [data-diff-line]`)];\n const touched = rows\n .filter((row) => selection?.containsNode(row, true) === true)\n .map((row) => ({ marker: row.dataset.diffMarker, line: Number(row.dataset.diffLine) }))\n .filter((row): row is { marker: DiffMarker; line: number } => isMarker(row.marker));\n const range = diffRangeOf(touched);\n if (range !== undefined) onSelect({ ...range, snippet: text });\n };\n\n if (hunks.length === 0) {\n return (\n <p data-testid={`${testId}-empty`} className=\"px-2 py-1 text-sm text-po-dim\">\n no lines changed\n </p>\n );\n }\n\n return (\n <div\n data-testid={testId}\n data-diff-surface={testId}\n onMouseUp={handleSelect}\n className={cn('overflow-x-auto font-mono text-sm leading-normal', className)}\n >\n {hunks.map((hunk, position) => (\n <div key={`${hunk.start}-${position}`}>\n {position > 0 ? (\n <div className=\"flex items-center gap-2 px-2 py-0.5 text-2xs text-po-faint\">\n <span className=\"h-px flex-1 bg-po-border-soft\" />\n <span>⋯</span>\n <span className=\"h-px flex-1 bg-po-border-soft\" />\n </div>\n ) : null}\n {hunk.rows.map((row, offset) => (\n <Fragment key={`${row.marker}-${row.line}-${offset}`}>\n <div\n data-diff-line={row.line}\n data-diff-marker={row.marker}\n className={cn('flex whitespace-pre', ROW_TONE[row.marker])}\n >\n {onSelect === undefined ? (\n <span\n aria-hidden\n className=\"shrink-0 select-none pr-2 pl-2 text-right text-po-faint\"\n style={{ width: `${gutter + 2}ch` }}\n >\n {row.line}\n </span>\n ) : (\n <Button\n variant=\"ghost\"\n size=\"xs\"\n data-diff-gutter={row.line}\n aria-label={`comment on ${row.marker === '-' ? 'removed ' : ''}line ${row.line}`}\n onClick={() =>\n onSelect({\n side: row.marker === '-' ? 'old' : 'new',\n startLine: row.line,\n endLine: row.line,\n snippet: row.content,\n })\n }\n className=\"h-auto min-h-0 min-w-0 shrink-0 select-none justify-end rounded-none py-0 pr-2 pl-2 font-normal text-sm text-po-faint hover:bg-transparent hover:text-po-blue\"\n style={{ width: `${gutter + 2}ch` }}\n >\n {row.line}\n </Button>\n )}\n <span className=\"shrink-0 select-none pr-1\">{row.marker}</span>\n <span className=\"min-w-0\">{row.content}</span>\n </div>\n {renderAfterRow?.(row)}\n </Fragment>\n ))}\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":"gJAsBA,MAAMU,EAAiD,CACrD,IAAK,iCACL,IAAK,6BACL,IAAK,aACP,EAaA,SAASC,EAAS,EAAgD,CAChE,OAAOC,IAAU,KAAOA,IAAU,KAAOA,IAAU,GACrD,CAEA,SAAgBC,EAAS,CAAE,QAAO,SAAQ,WAAU,iBAAgB,aAA4B,CAC9F,IAAMC,EAASd,EAAAA,gBAAgBe,CAAK,EA6BpC,OARIA,EAAM,SAAW,EAEjB,iBAAA,EAAAP,EAAA,IAAA,CAAC,IAAD,CAAG,cAAa,GAAGQ,EAAO,QAAS,UAAU,gCAAgC,SAAA,kBAE1E,CAAA,EAKL,iBAAA,EAAAR,EAAA,IAAA,CAAC,MAAD,CACE,cAAaQ,EACb,oBAAmBA,EACnB,cA1B6B,CAC/B,GAAIC,IAAa,IAAA,GAAW,OAC5B,IAAMC,EAAY,WAAW,eAAe,EACtCC,EAAOD,GAAW,SAAS,GAAK,GACtC,GAAIC,EAAK,KAAK,IAAM,GAAI,OAExB,IAAMC,EAAU,CADF,GAAG,SAAS,iBAA8B,uBAAuBJ,EAAO,oBAAoB,CACvF,CAAC,CACjB,OAAQ,GAAQE,GAAW,aAAaG,EAAK,EAAI,IAAM,EAAI,CAAC,CAC5D,IAAK,IAAS,CAAE,OAAQA,EAAI,QAAQ,WAAY,KAAM,OAAOA,EAAI,QAAQ,QAAQ,CAAE,EAAE,CAAC,CACtF,OAAQ,GAAqDV,EAASU,EAAI,MAAM,CAAC,EAC9EC,EAAQrB,EAAAA,YAAYmB,CAAO,EAC7BE,IAAU,IAAA,IAAWL,EAAS,CAAE,GAAGK,EAAO,QAASH,CAAK,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AAAO,EAAI,IACC,CAAA,EAEV,iBAAA,EAAAb,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,4BAA6B,SAAAa,EAAI,MAAa,CAAA,EAC9D,iBAAA,EAAAb,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,UAAW,SAAAa,EAAI,OAAc,CAAA,CAC1C,CACJ,CAAA,EAAAK,IAAiBL,CAAG,CACb,CAAA,EAtCK,GAAGA,EAAI,OAAO,GAAGA,EAAI,KAAK,GAAGM,GAsClC,CACX,CACE,CAAA,EAjDK,GAAGF,EAAK,MAAM,GAAGD,GAiDtB,CACN,CACE,CAAA,CAET"}
|
|
1
|
+
{"version":3,"file":"DiffView.cjs","names":["diffGutterWidth","diffRangeOf","cn","Fragment","Button","require_cn","require_Button","require_review","react_jsx_runtime","react","ROW_TONE","isMarker","value","DiffView","gutter","hunks","testId","onSelect","selection","text","touched","row","range","className","position","hunk","renderAfterRow","offset"],"sources":["../../../src/components/DiffView.tsx"],"sourcesContent":["import { Fragment, type ReactNode } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { diffGutterWidth, diffRangeOf } from '../lib/review';\nimport type { DiffHunk, DiffMarker, DiffRow, DiffSelection } from '../types/diff';\nimport { Button } from './Button';\n\n/**\n * A diff, drawn the way this cockpit draws every other one: a numbered gutter\n * and a background wash per row, so a change reads at a glance rather than by\n * hunting for leading punctuation.\n *\n * Hunks arrive apart rather than joined by an elision marker, so the gap\n * between two of them is a rule the component draws, not a line it has to\n * recognise in a string.\n *\n * A reader comments two ways: by highlighting text, which reports the lines the\n * highlight touches, or by clicking a line number, which reports that one line.\n * Either way the selection names its side, so a note on a removed line points\n * at the old file rather than at whatever the new file has on that number.\n */\n\nconst ROW_TONE: Readonly<Record<DiffMarker, string>> = {\n '+': 'bg-po-tint-green text-po-green',\n '-': 'bg-po-tint-red text-po-red',\n ' ': 'text-po-dim',\n};\n\nexport interface DiffViewProps {\n hunks: readonly DiffHunk[];\n /** Marks the surface so a test and a selection handler can find it. Unique per diff on a page. */\n testId: string;\n /** Called with the selected text, the lines it covers, and their side. Enables line-number clicks. */\n onSelect?: (selection: DiffSelection) => void;\n /** Drawn under one row, full width: inline comments and an open draft go here. */\n renderAfterRow?: (row: DiffRow) => ReactNode;\n className?: string;\n}\n\nfunction isMarker(value: string | undefined): value is DiffMarker {\n return value === '+' || value === '-' || value === ' ';\n}\n\nexport function DiffView({ hunks, testId, onSelect, renderAfterRow, className }: DiffViewProps) {\n const gutter = diffGutterWidth(hunks);\n\n /**\n * Turns whatever the reader highlighted into a line range. The rows carry\n * their own numbers and markers, so the range comes from the rows the\n * selection touches rather than from counting newlines in the rendered text.\n */\n const handleSelect = (): void => {\n if (onSelect === undefined) return;\n const selection = globalThis.getSelection?.();\n const text = selection?.toString() ?? '';\n if (text.trim() === '') return;\n const rows = [...document.querySelectorAll<HTMLElement>(`[data-diff-surface=\"${testId}\"] [data-diff-line]`)];\n const touched = rows\n .filter((row) => selection?.containsNode(row, true) === true)\n .map((row) => ({ marker: row.dataset.diffMarker, line: Number(row.dataset.diffLine) }))\n .filter((row): row is { marker: DiffMarker; line: number } => isMarker(row.marker));\n const range = diffRangeOf(touched);\n if (range !== undefined) onSelect({ ...range, snippet: text });\n };\n\n if (hunks.length === 0) {\n return (\n <p data-testid={`${testId}-empty`} className=\"px-2 py-1 text-sm text-po-dim\">\n no lines changed\n </p>\n );\n }\n\n return (\n <div\n data-testid={testId}\n data-diff-surface={testId}\n onMouseUp={handleSelect}\n className={cn('overflow-x-auto font-mono text-sm leading-normal', className)}\n >\n {hunks.map((hunk, position) => (\n <div key={`${hunk.start}-${position}`}>\n {position > 0 ? (\n <div className=\"flex items-center gap-2 px-2 py-0.5 text-2xs text-po-faint\">\n <span className=\"h-px flex-1 bg-po-border-soft\" />\n <span>⋯</span>\n <span className=\"h-px flex-1 bg-po-border-soft\" />\n </div>\n ) : null}\n {hunk.rows.map((row, offset) => (\n <Fragment key={`${row.marker}-${row.line}-${offset}`}>\n <div\n data-diff-line={row.line}\n data-diff-marker={row.marker}\n className={cn('flex whitespace-pre', ROW_TONE[row.marker])}\n >\n {onSelect === undefined ? (\n <span\n aria-hidden\n className=\"shrink-0 select-none pr-2 pl-2 text-right text-po-faint\"\n style={{ width: `${gutter + 2}ch` }}\n >\n {row.line}\n </span>\n ) : (\n <Button\n variant=\"ghost\"\n size=\"xs\"\n data-diff-gutter={row.line}\n aria-label={`comment on ${row.marker === '-' ? 'removed ' : ''}line ${row.line}`}\n onClick={() =>\n onSelect({\n side: row.marker === '-' ? 'old' : 'new',\n startLine: row.line,\n endLine: row.line,\n snippet: row.content,\n })\n }\n className=\"h-auto min-h-0 min-w-0 shrink-0 select-none justify-end rounded-none py-0 pr-2 pl-2 font-normal text-sm text-po-faint hover:bg-transparent hover:text-po-blue\"\n style={{ width: `${gutter + 2}ch` }}\n >\n {row.line}\n </Button>\n )}\n <span className=\"shrink-0 select-none pr-1\">{row.marker}</span>\n <span className=\"min-w-0\">{row.content}</span>\n </div>\n {renderAfterRow?.(row)}\n </Fragment>\n ))}\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":"A,gJAsBA,MAAMU,EAAiD,CACrD,IAAK,iCACL,IAAK,6BACL,IAAK,aACP,EAaA,SAASC,EAAS,EAAgD,CAChE,OAAOC,IAAU,KAAOA,IAAU,KAAOA,IAAU,GACrD,CAEA,SAAgBC,EAAS,CAAE,QAAO,SAAQ,WAAU,iBAAgB,aAA4B,CAC9F,IAAMC,EAASd,EAAAA,gBAAgBe,CAAK,EA6BpC,OARIA,EAAM,SAAW,EAEjB,iBAAA,EAAAP,EAAA,IAAA,CAAC,IAAD,CAAG,cAAa,GAAGQ,EAAO,QAAS,UAAU,gCAAgC,SAAA,kBAE1E,CAAA,EAKL,iBAAA,EAAAR,EAAA,IAAA,CAAC,MAAD,CACE,cAAaQ,EACb,oBAAmBA,EACnB,cA1B6B,CAC/B,GAAIC,IAAa,IAAA,GAAW,OAC5B,IAAMC,EAAY,WAAW,eAAe,EACtCC,E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OAAD,CACE,cAAA,GACA,UAAU,0DACV,MAAO,CAAE,MAAO,GAAGM,EAAS,EAAE,GAAI,EAEjC,SAAAO,EAAI,IACD,CAAA,EAEN,iBAAA,EAAAb,EAAA,IAAA,CAACJ,EAAAA,OAAD,CACE,QAAQ,QACR,KAAK,KACL,mBAAkBiB,EAAI,KACtB,aAAY,cAAcA,EAAI,SAAW,IAAM,WAAa,GAAG,OAAOA,EAAI,OAC1E,YACEJ,EAAS,CACP,KAAMI,EAAI,SAAW,IAAM,MAAQ,MACnC,UAAWA,EAAI,KACf,QAASA,EAAI,KACb,QAASA,EAAI,OACf,CAAC,EAEH,UAAU,gKACV,MAAO,CAAE,MAAO,GAAGP,EAAS,EAAE,GAAI,EAEjC,SAAAO,EAAI,IACC,CAAA,EAEV,iBAAA,EAAAb,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,4BAA6B,SAAAa,EAAI,MAAa,CAAA,EAC9D,iBAAA,EAAAb,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,UAAW,SAAAa,EAAI,OAAc,CAAA,CAC1C,CACJ,CAAA,EAAAK,IAAiBL,CAAG,CACb,CAAA,EAtCK,GAAGA,EAAI,OAAO,GAAGA,EAAI,KAAK,GAAGM,GAsClC,CACX,CACE,CAAA,EAjDK,GAAGF,EAAK,MAAM,GAAGD,GAiDtB,CACN,CACE,CAAA,CAET,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dot.cjs","names":["cva","cn","require_cn","react_jsx_runtime","dotVariants","Dot","props","className"],"sources":["../../../src/components/Dot.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport type { DotTone as Tone } from '../types/tone';\n\nexport const dotVariants = cva('inline-block shrink-0 rounded-full', {\n variants: {\n tone: {\n neutral: 'bg-po-faint',\n muted: 'bg-po-faint/40',\n blue: 'bg-po-blue',\n green: 'bg-po-green',\n yellow: 'bg-po-yellow',\n red: 'bg-po-red',\n magenta: 'bg-po-magenta',\n violet: 'bg-po-violet',\n cyan: 'bg-po-cyan',\n orange: 'bg-po-orange',\n teal: 'bg-po-teal',\n } satisfies Record<Tone, string>,\n size: {\n xs: 'h-1 w-1',\n sm: 'h-1.5 w-1.5',\n md: 'h-2 w-2',\n lg: 'h-2.5 w-2.5',\n },\n pulse: {\n true: 'animate-pulse',\n false: '',\n },\n },\n defaultVariants: { tone: 'neutral', size: 'sm', pulse: false },\n});\n\nexport type DotTone = Tone;\n\nexport interface DotProps extends ComponentProps<'span'>, VariantProps<typeof dotVariants> {}\n\n/** The status dot: a colour and, while something is live, a pulse. */\nexport function Dot({ className, tone, size, pulse, ...props }: DotProps) {\n return <span data-slot=\"dot\" aria-hidden className={cn(dotVariants({ tone, size, pulse }), className)} {...props} />;\n}\n"],"mappings":"oEAMA,MAAaI,GAAA,
|
|
1
|
+
{"version":3,"file":"Dot.cjs","names":["cva","cn","require_cn","react_jsx_runtime","dotVariants","Dot","props","className"],"sources":["../../../src/components/Dot.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport type { DotTone as Tone } from '../types/tone';\n\nexport const dotVariants = cva('inline-block shrink-0 rounded-full', {\n variants: {\n tone: {\n neutral: 'bg-po-faint',\n muted: 'bg-po-faint/40',\n blue: 'bg-po-blue',\n green: 'bg-po-green',\n yellow: 'bg-po-yellow',\n red: 'bg-po-red',\n magenta: 'bg-po-magenta',\n violet: 'bg-po-violet',\n cyan: 'bg-po-cyan',\n orange: 'bg-po-orange',\n teal: 'bg-po-teal',\n } satisfies Record<Tone, string>,\n size: {\n xs: 'h-1 w-1',\n sm: 'h-1.5 w-1.5',\n md: 'h-2 w-2',\n lg: 'h-2.5 w-2.5',\n },\n pulse: {\n true: 'animate-pulse',\n false: '',\n },\n },\n defaultVariants: { tone: 'neutral', size: 'sm', pulse: false },\n});\n\nexport type DotTone = Tone;\n\nexport interface DotProps extends ComponentProps<'span'>, VariantProps<typeof dotVariants> {}\n\n/** The status dot: a colour and, while something is live, a pulse. */\nexport function Dot({ className, tone, size, pulse, ...props }: DotProps) {\n return <span data-slot=\"dot\" aria-hidden className={cn(dotVariants({ tone, size, pulse }), className)} {...props} />;\n}\n"],"mappings":"A,oEAMA,MAAaI,GAAA,E,kCAAcJ,CAAAA,CAAAA,IAAAA,CAAI,qCAAsC,CACnE,SAAU,CACR,KAAM,CACJ,QAAS,cACT,MAAO,iBACP,KAAM,aACN,MAAO,cACP,OAAQ,eACR,IAAK,YACL,QAAS,gBACT,OAAQ,eACR,KAAM,aACN,OAAQ,eACR,KAAM,YACR,EACA,KAAM,CACJ,GAAI,UACJ,GAAI,cACJ,GAAI,UACJ,GAAI,aACN,EACA,MAAO,CACL,KAAM,gBACN,MAAO,EACT,CACF,EACA,gBAAiB,CAAE,KAAM,UAAW,KAAM,KAAM,MAAO,EAAM,CAC/D,CAAC,EAOD,SAAgBK,EAAI,CAAE,YAAW,OAAM,OAAM,QAAO,GAAGC,GAAmB,CACxE,MAAO,iBAAA,EAAAH,EAAA,IAAA,CAAC,OAAD,CAAM,YAAU,MAAM,cAAA,GAAY,UAAWF,EAAAA,GAAGG,EAAY,CAAE,OAAM,OAAM,OAAM,CAAC,EAAGG,CAAS,EAAG,GAAID,CAAQ,CAAA,CACrH,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.cjs","names":["useRef","Dialog","DialogPortal","DialogOverlay","DialogPrimitive","cn","DialogHeader","DialogTitle","require_cn","require_Dialog","radix_ui","react_jsx_runtime","react","Drawer","testId","opener","backdropTestId","side","className","event","showHeader","title","children"],"sources":["../../../src/components/Drawer.tsx"],"sourcesContent":["import { Dialog as DialogPrimitive } from 'radix-ui';\nimport { type ReactNode, useRef } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { Dialog, DialogHeader, DialogOverlay, DialogPortal, DialogTitle } from './Dialog';\n\nexport interface DrawerProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n side: 'left' | 'right';\n title: string;\n children: ReactNode;\n className?: string;\n showHeader?: boolean;\n 'data-testid'?: string;\n backdropTestId?: string;\n}\n\n/** A controlled side panel with a focus trap and restoration for external header buttons. */\nexport function Drawer({\n open,\n onOpenChange,\n side,\n title,\n children,\n className,\n showHeader = true,\n 'data-testid': testId,\n backdropTestId,\n}: DrawerProps) {\n const opener = useRef<HTMLElement | null>(null);\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogPortal>\n <DialogOverlay data-testid={backdropTestId} />\n <DialogPrimitive.Content\n aria-describedby={undefined}\n data-testid={testId}\n className={cn(\n 'fixed inset-y-0 z-50 flex w-[min(300px,calc(100vw-48px))] flex-col overflow-y-auto border-po-border bg-po-rail outline-none',\n side === 'left' ? 'left-0 border-r' : 'right-0 border-l',\n className,\n )}\n onOpenAutoFocus={() => {\n opener.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;\n }}\n onCloseAutoFocus={(event) => {\n event.preventDefault();\n if (opener.current?.isConnected) opener.current.focus();\n }}\n >\n {showHeader ? (\n <DialogHeader dismissible closeLabel={`hide ${title.toLowerCase()}`}>\n <DialogTitle>{title}</DialogTitle>\n </DialogHeader>\n ) : (\n <DialogTitle className=\"sr-only\">{title}</DialogTitle>\n )}\n {children}\n </DialogPrimitive.Content>\n </DialogPortal>\n </Dialog>\n );\n}\n"],"mappings":"uIAmBA,SAAgBa,EAAO,CACrB,OACA,eACA,OACA,QACA,WACA,YACA,aAAa,GACb,cAAeC,EACf,kBACc,CACd,IAAMC,GAAA,EAASf,EAAAA,OAAAA,CAA2B,IAAI,EAC9C,MACE,iBAAA,EAAAW,EAAA,IAAA,CAACV,EAAAA,OAAD,CAAc,OAAoB,eAChC,SAAA,iBAAA,EAAAU,EAAA,KAAA,CAACT,EAAAA,aAAD,CAAA,SAAA,CACE,iBAAA,EAAAS,EAAA,IAAA,CAACR,EAAAA,cAAD,CAAe,cAAaa,CAAiB,CAAA,EAC7C,iBAAA,EAAAL,EAAA,KAAA,CAACP,EAAAA,OAAgB,QAAjB,CACE,mBAAkB,IAAA,GAClB,cAAaU,EACb,UAAWT,EAAAA,GACT,8HACAY,IAAS,OAAS,kBAAoB,mBACtCC,CACF,EACA,oBAAuB,CACrB,EAAO,QAAU,SAAS,yBAAyB,YAAc,SAAS,cAAgB,IAC5F,EACA,iBAAmB,GAAU,CAC3BC,EAAM,eAAe,EACjBJ,EAAO,SAAS,aAAaA,EAAO,QAAQ,MAAM,CACxD,EAdF,SAAA,CAgBGK,EACC,iBAAA,EAAAT,EAAA,IAAA,CAACL,EAAAA,aAAD,CAAc,YAAA,GAAY,WAAY,QAAQe,EAAM,YAAY,IAC9D,SAAA,iBAAA,EAAAV,EAAA,IAAA,CAACJ,EAAAA,YAAD,CAAA,SAAcc,CAAmB,CAAA,CACrB,CAAA,EAEd,iBAAA,EAAAV,EAAA,IAAA,CAACJ,EAAAA,YAAD,CAAa,UAAU,UAAW,SAAAc,CAAmB,CAAA,EAEtDC,CACsB,CACb,CAAA,CAAA,CAAA,CAAA,CACR,CAAA,CAEZ"}
|
|
1
|
+
{"version":3,"file":"Drawer.cjs","names":["useRef","Dialog","DialogPortal","DialogOverlay","DialogPrimitive","cn","DialogHeader","DialogTitle","require_cn","require_Dialog","radix_ui","react_jsx_runtime","react","Drawer","testId","opener","backdropTestId","side","className","event","showHeader","title","children"],"sources":["../../../src/components/Drawer.tsx"],"sourcesContent":["import { Dialog as DialogPrimitive } from 'radix-ui';\nimport { type ReactNode, useRef } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { Dialog, DialogHeader, DialogOverlay, DialogPortal, DialogTitle } from './Dialog';\n\nexport interface DrawerProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n side: 'left' | 'right';\n title: string;\n children: ReactNode;\n className?: string;\n showHeader?: boolean;\n 'data-testid'?: string;\n backdropTestId?: string;\n}\n\n/** A controlled side panel with a focus trap and restoration for external header buttons. */\nexport function Drawer({\n open,\n onOpenChange,\n side,\n title,\n children,\n className,\n showHeader = true,\n 'data-testid': testId,\n backdropTestId,\n}: DrawerProps) {\n const opener = useRef<HTMLElement | null>(null);\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogPortal>\n <DialogOverlay data-testid={backdropTestId} />\n <DialogPrimitive.Content\n aria-describedby={undefined}\n data-testid={testId}\n className={cn(\n 'fixed inset-y-0 z-50 flex w-[min(300px,calc(100vw-48px))] flex-col overflow-y-auto border-po-border bg-po-rail outline-none',\n side === 'left' ? 'left-0 border-r' : 'right-0 border-l',\n className,\n )}\n onOpenAutoFocus={() => {\n opener.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;\n }}\n onCloseAutoFocus={(event) => {\n event.preventDefault();\n if (opener.current?.isConnected) opener.current.focus();\n }}\n >\n {showHeader ? (\n <DialogHeader dismissible closeLabel={`hide ${title.toLowerCase()}`}>\n <DialogTitle>{title}</DialogTitle>\n </DialogHeader>\n ) : (\n <DialogTitle className=\"sr-only\">{title}</DialogTitle>\n )}\n {children}\n </DialogPrimitive.Content>\n </DialogPortal>\n </Dialog>\n );\n}\n"],"mappings":"A,uIAmBA,SAAgBa,EAAO,CACrB,OACA,eACA,OACA,QACA,WACA,YACA,aAAa,GACb,cAAeC,EACf,kBACc,CACd,IAAMC,GAAA,EAASf,EAAAA,OAAAA,CAA2B,IAAI,EAC9C,MACE,iBAAA,EAAAW,EAAA,IAAA,CAACV,EAAAA,OAAD,CAAc,OAAoB,eAChC,SAAA,iBAAA,EAAAU,EAAA,KAAA,CAACT,EAAAA,aAAD,CAAA,SAAA,CACE,iBAAA,EAAAS,EAAA,IAAA,CAACR,EAAAA,cAAD,CAAe,cAAaa,CAAiB,CAAA,EAC7C,iBAAA,EAAAL,EAAA,KAAA,CAACP,EAAAA,OAAgB,QAAjB,CACE,mBAAkB,IAAA,GAClB,cAAaU,EACb,UAAWT,EAAAA,GACT,8HACAY,IAAS,OAAS,kBAAoB,mBACtCC,CACF,EACA,oBAAuB,CACrB,EAAO,QAAU,SAAS,yBAAyB,YAAc,SAAS,cAAgB,IAC5F,EACA,iBAAmB,GAAU,CAC3BC,EAAM,eAAe,EACjBJ,EAAO,SAAS,aAAaA,EAAO,QAAQ,MAAM,CACxD,EAdF,SAAA,CAgBGK,EACC,iBAAA,EAAAT,EAAA,IAAA,CAACL,EAAAA,aAAD,CAAc,YAAA,GAAY,WAAY,QAAQe,EAAM,YAAY,IAC9D,SAAA,iBAAA,EAAAV,EAAA,IAAA,CAACJ,EAAAA,YAAD,CAAA,SAAcc,CAAmB,CAAA,CACrB,CAAA,EAEd,iBAAA,EAAAV,EAAA,IAAA,CAACJ,EAAAA,YAAD,CAAa,UAAU,UAAW,SAAAc,CAAmB,CAAA,EAEtDC,CACsB,CACb,CAAA,CAAA,CAAA,CAAA,CACR,CAAA,CAEZ,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.cjs","names":["DropdownMenuPrimitive","cn","cva","CheckIcon","ChevronRightIcon","require_cn","radix_ui","react_jsx_runtime","class_variance_authority","lucide_react","DropdownMenu","props","DropdownMenuTrigger","DropdownMenuGroup","CONTENT_CLASS","DropdownMenuContent","className","dropdownMenuItemVariants","DropdownMenuItem","variant","ItemIndicator","DropdownMenuCheckboxItem","children","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSub","DropdownMenuSubTrigger","DropdownMenuSubContent","DropdownMenuLabel","DropdownMenuShortcut","DropdownMenuSeparator"],"sources":["../../../src/components/DropdownMenu.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';\nimport type { ComponentProps, ReactNode } from 'react';\n\nimport { CheckIcon, ChevronRightIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\n\n/** shadcn's DropdownMenu on Radix: roving focus, typeahead, outside click, Escape. */\nexport function DropdownMenu(props: ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />;\n}\n\nexport function DropdownMenuTrigger(props: ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return <DropdownMenuPrimitive.Trigger data-slot=\"dropdown-menu-trigger\" {...props} />;\n}\n\n/** A run of items under one label, so the separator between groups is structural. */\nexport function DropdownMenuGroup(props: ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n return <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />;\n}\n\n/** The surface every menu and submenu wears. */\nconst CONTENT_CLASS =\n 'z-50 flex min-w-[120px] flex-col overflow-hidden rounded border border-po-border bg-po-panel py-1 shadow-xl outline-none data-[state=open]:animate-po-rise';\n\nexport function DropdownMenuContent({\n className,\n align = 'end',\n sideOffset = 4,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(CONTENT_CLASS, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nexport const dropdownMenuItemVariants = cva(\n 'flex w-full cursor-pointer items-center gap-2 px-2.5 py-1.5 text-left text-base outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-40 data-[highlighted]:bg-po-deep',\n {\n variants: {\n variant: {\n default: 'text-po-hi',\n destructive: 'text-po-red',\n },\n /** A row that carries a check or bullet keeps a gutter for it, so labels line up whether or not one is set. */\n indented: { true: 'pl-7', false: '' },\n },\n defaultVariants: { variant: 'default', indented: false },\n },\n);\n\nexport interface DropdownMenuItemProps\n extends ComponentProps<typeof DropdownMenuPrimitive.Item>, VariantProps<typeof dropdownMenuItemVariants> {}\n\nexport function DropdownMenuItem({ className, variant, indented, ...props }: DropdownMenuItemProps) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n data-variant={variant ?? 'default'}\n className={cn(dropdownMenuItemVariants({ variant, indented }), className)}\n {...props}\n />\n );\n}\n\n/** The check or bullet a selectable row shows when it is set; it sits in the row's gutter. */\nfunction ItemIndicator({ children }: { children: ReactNode }) {\n return (\n <span className=\"pointer-events-none absolute left-2.5 flex h-3 w-3 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>{children}</DropdownMenuPrimitive.ItemIndicator>\n </span>\n );\n}\n\nexport interface DropdownMenuCheckboxItemProps\n extends ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>, VariantProps<typeof dropdownMenuItemVariants> {}\n\n/** A row that toggles: the check lives in the gutter so the label never shifts. */\nexport function DropdownMenuCheckboxItem({ className, variant, children, ...props }: DropdownMenuCheckboxItemProps) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn('relative', dropdownMenuItemVariants({ variant, indented: true }), className)}\n {...props}\n >\n <ItemIndicator>\n <CheckIcon className=\"h-3 w-3 text-po-blue\" />\n </ItemIndicator>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\n/** The exclusive-choice group; pair it with DropdownMenuRadioItem. */\nexport function DropdownMenuRadioGroup(props: ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n return <DropdownMenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />;\n}\n\nexport interface DropdownMenuRadioItemProps\n extends ComponentProps<typeof DropdownMenuPrimitive.RadioItem>, VariantProps<typeof dropdownMenuItemVariants> {}\n\nexport function DropdownMenuRadioItem({ className, variant, children, ...props }: DropdownMenuRadioItemProps) {\n return (\n <DropdownMenuPrimitive.RadioItem\n data-slot=\"dropdown-menu-radio-item\"\n className={cn('relative', dropdownMenuItemVariants({ variant, indented: true }), className)}\n {...props}\n >\n <ItemIndicator>\n <span className=\"h-1.5 w-1.5 rounded-full bg-po-blue\" />\n </ItemIndicator>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\nexport function DropdownMenuSub(props: ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n return <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />;\n}\n\n/** The row that opens a submenu; the chevron is part of the row, not the caller's job. */\nexport function DropdownMenuSubTrigger({\n className,\n children,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.SubTrigger>) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n className={cn(dropdownMenuItemVariants(), 'data-[state=open]:bg-po-deep', className)}\n {...props}\n >\n <span className=\"min-w-0 flex-1 truncate\">{children}</span>\n <ChevronRightIcon className=\"h-3 w-3 shrink-0 text-po-faint\" />\n </DropdownMenuPrimitive.SubTrigger>\n );\n}\n\nexport function DropdownMenuSubContent({\n className,\n sideOffset = 2,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n sideOffset={sideOffset}\n className={cn(CONTENT_CLASS, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nexport function DropdownMenuLabel({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Label>) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n className={cn('px-2.5 py-1 text-sm font-semibold text-po-dim first-letter:uppercase', className)}\n {...props}\n />\n );\n}\n\n/** The keystroke printed at the right of a row; the row supplies the gap. */\nexport function DropdownMenuShortcut({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"dropdown-menu-shortcut\"\n className={cn('ml-auto shrink-0 text-sm text-po-dim', className)}\n {...props}\n />\n );\n}\n\nexport function DropdownMenuSeparator({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={c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nB,GAAiE,CACrH,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACP,EAAAA,aAAsB,UAAvB,CACE,YAAU,0BACV,UAAWC,EAAAA,GAAG,8BAA+Be,CAAS,EACtD,GAAIL,CACL,CAAA,CAEL"}
|
|
1
|
+
{"version":3,"file":"DropdownMenu.cjs","names":["DropdownMenuPrimitive","cn","cva","CheckIcon","ChevronRightIcon","require_cn","radix_ui","react_jsx_runtime","class_variance_authority","lucide_react","DropdownMenu","props","DropdownMenuTrigger","DropdownMenuGroup","CONTENT_CLASS","DropdownMenuContent","className","dropdownMenuItemVariants","DropdownMenuItem","variant","ItemIndicator","DropdownMenuCheckboxItem","children","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSub","DropdownMenuSubTrigger","DropdownMenuSubContent","DropdownMenuLabel","DropdownMenuShortcut","DropdownMenuSeparator"],"sources":["../../../src/components/DropdownMenu.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';\nimport type { ComponentProps, ReactNode } from 'react';\n\nimport { CheckIcon, ChevronRightIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\n\n/** shadcn's DropdownMenu on Radix: roving focus, typeahead, outside click, Escape. */\nexport function DropdownMenu(props: ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />;\n}\n\nexport function DropdownMenuTrigger(props: ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return <DropdownMenuPrimitive.Trigger data-slot=\"dropdown-menu-trigger\" {...props} />;\n}\n\n/** A run of items under one label, so the separator between groups is structural. */\nexport function DropdownMenuGroup(props: ComponentProps<typeof DropdownMenuPrimitive.Group>) {\n return <DropdownMenuPrimitive.Group data-slot=\"dropdown-menu-group\" {...props} />;\n}\n\n/** The surface every menu and submenu wears. */\nconst CONTENT_CLASS =\n 'z-50 flex min-w-[120px] flex-col overflow-hidden rounded border border-po-border bg-po-panel py-1 shadow-xl outline-none data-[state=open]:animate-po-rise';\n\nexport function DropdownMenuContent({\n className,\n align = 'end',\n sideOffset = 4,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n data-slot=\"dropdown-menu-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(CONTENT_CLASS, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nexport const dropdownMenuItemVariants = cva(\n 'flex w-full cursor-pointer items-center gap-2 px-2.5 py-1.5 text-left text-base outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-40 data-[highlighted]:bg-po-deep',\n {\n variants: {\n variant: {\n default: 'text-po-hi',\n destructive: 'text-po-red',\n },\n /** A row that carries a check or bullet keeps a gutter for it, so labels line up whether or not one is set. */\n indented: { true: 'pl-7', false: '' },\n },\n defaultVariants: { variant: 'default', indented: false },\n },\n);\n\nexport interface DropdownMenuItemProps\n extends ComponentProps<typeof DropdownMenuPrimitive.Item>, VariantProps<typeof dropdownMenuItemVariants> {}\n\nexport function DropdownMenuItem({ className, variant, indented, ...props }: DropdownMenuItemProps) {\n return (\n <DropdownMenuPrimitive.Item\n data-slot=\"dropdown-menu-item\"\n data-variant={variant ?? 'default'}\n className={cn(dropdownMenuItemVariants({ variant, indented }), className)}\n {...props}\n />\n );\n}\n\n/** The check or bullet a selectable row shows when it is set; it sits in the row's gutter. */\nfunction ItemIndicator({ children }: { children: ReactNode }) {\n return (\n <span className=\"pointer-events-none absolute left-2.5 flex h-3 w-3 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>{children}</DropdownMenuPrimitive.ItemIndicator>\n </span>\n );\n}\n\nexport interface DropdownMenuCheckboxItemProps\n extends ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>, VariantProps<typeof dropdownMenuItemVariants> {}\n\n/** A row that toggles: the check lives in the gutter so the label never shifts. */\nexport function DropdownMenuCheckboxItem({ className, variant, children, ...props }: DropdownMenuCheckboxItemProps) {\n return (\n <DropdownMenuPrimitive.CheckboxItem\n data-slot=\"dropdown-menu-checkbox-item\"\n className={cn('relative', dropdownMenuItemVariants({ variant, indented: true }), className)}\n {...props}\n >\n <ItemIndicator>\n <CheckIcon className=\"h-3 w-3 text-po-blue\" />\n </ItemIndicator>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n );\n}\n\n/** The exclusive-choice group; pair it with DropdownMenuRadioItem. */\nexport function DropdownMenuRadioGroup(props: ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {\n return <DropdownMenuPrimitive.RadioGroup data-slot=\"dropdown-menu-radio-group\" {...props} />;\n}\n\nexport interface DropdownMenuRadioItemProps\n extends ComponentProps<typeof DropdownMenuPrimitive.RadioItem>, VariantProps<typeof dropdownMenuItemVariants> {}\n\nexport function DropdownMenuRadioItem({ className, variant, children, ...props }: DropdownMenuRadioItemProps) {\n return (\n <DropdownMenuPrimitive.RadioItem\n data-slot=\"dropdown-menu-radio-item\"\n className={cn('relative', dropdownMenuItemVariants({ variant, indented: true }), className)}\n {...props}\n >\n <ItemIndicator>\n <span className=\"h-1.5 w-1.5 rounded-full bg-po-blue\" />\n </ItemIndicator>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n );\n}\n\nexport function DropdownMenuSub(props: ComponentProps<typeof DropdownMenuPrimitive.Sub>) {\n return <DropdownMenuPrimitive.Sub data-slot=\"dropdown-menu-sub\" {...props} />;\n}\n\n/** The row that opens a submenu; the chevron is part of the row, not the caller's job. */\nexport function DropdownMenuSubTrigger({\n className,\n children,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.SubTrigger>) {\n return (\n <DropdownMenuPrimitive.SubTrigger\n data-slot=\"dropdown-menu-sub-trigger\"\n className={cn(dropdownMenuItemVariants(), 'data-[state=open]:bg-po-deep', className)}\n {...props}\n >\n <span className=\"min-w-0 flex-1 truncate\">{children}</span>\n <ChevronRightIcon className=\"h-3 w-3 shrink-0 text-po-faint\" />\n </DropdownMenuPrimitive.SubTrigger>\n );\n}\n\nexport function DropdownMenuSubContent({\n className,\n sideOffset = 2,\n ...props\n}: ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n data-slot=\"dropdown-menu-sub-content\"\n sideOffset={sideOffset}\n className={cn(CONTENT_CLASS, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n );\n}\n\nexport function DropdownMenuLabel({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Label>) {\n return (\n <DropdownMenuPrimitive.Label\n data-slot=\"dropdown-menu-label\"\n className={cn('px-2.5 py-1 text-sm font-semibold text-po-dim first-letter:uppercase', className)}\n {...props}\n />\n );\n}\n\n/** The keystroke printed at the right of a row; the row supplies the gap. */\nexport function DropdownMenuShortcut({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"dropdown-menu-shortcut\"\n className={cn('ml-auto shrink-0 text-sm text-po-dim', className)}\n {...props}\n />\n );\n}\n\nexport function DropdownMenuSeparator({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Separator>) {\n return (\n <DropdownMenuPrimitive.Separator\n data-slot=\"dropdown-menu-separator\"\n className={cn('my-1 h-px bg-po-border-soft', className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,wLAQA,SAAgBU,EAAa,EAA0D,CACrF,MAAO,iBAAA,EAAAH,EAAA,IAAA,CAACP,EAAAA,aAAsB,KAAvB,CAA4B,YAAU,gBAAgB,GAAIW,CAAQ,CAAA,CAC3E,CAEA,SAAgBC,EAAoB,EAA6D,CAC/F,MAAO,iBAAA,EAAAL,EAAA,IAAA,CAACP,EAAAA,aAAsB,QAAvB,CAA+B,YAAU,wBAAwB,GAAIW,CAAQ,CAAA,CACtF,CAGA,SAAgBE,EAAkB,EAA2D,CAC3F,MAAO,iBAAA,EAAAN,EAAA,IAAA,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e,CAAA,EAC1D,iBAAA,EAAAA,EAAA,IAAA,CAACH,EAAAA,aAAD,CAAkB,UAAU,gCAAkC,CAAA,CAC9B,C,EAEtC,CAEA,SAAgBuB,EAAuB,CACrC,YACA,aAAa,EACb,GAAGhB,GACuD,CAC1D,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACP,EAAAA,aAAsB,OAAvB,CAAA,SACE,iBAAA,EAAAO,EAAA,IAAA,CAACP,EAAAA,aAAsB,WAAvB,CACE,YAAU,4BACE,aACZ,UAAWC,EAAAA,GAAGa,EAAeE,CAAS,EACtC,GAAIL,CACL,CAAA,CAC2B,CAAA,CAElC,CAEA,SAAgBiB,EAAkB,CAAE,YAAW,GAAGjB,GAA6D,CAC7G,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACP,EAAAA,aAAsB,MAAvB,CACE,YAAU,sBACV,UAAWC,EAAAA,GAAG,uEAAwEe,CAAS,EAC/F,GAAIL,CACL,CAAA,CAEL,CAGA,SAAgBkB,EAAqB,CAAE,YAAW,GAAGlB,GAAiC,CACpF,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAAC,OAAD,CACE,YAAU,yBACV,UAAWN,EAAAA,GAAG,uCAAwCe,CAAS,EAC/D,GAAIL,CACL,CAAA,CAEL,CAEA,SAAgBmB,EAAsB,CAAE,YAAW,GAAGnB,GAAiE,CACrH,MACE,iBAAA,EAAAJ,EAAA,IAAA,CAACP,EAAAA,aAAsB,UAAvB,CACE,YAAU,0BACV,UAAWC,EAAAA,GAAG,8BAA+Be,CAAS,EACtD,GAAIL,CACL,CAAA,CAEL,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.cjs","names":["Slot","cn","require_cn","radix_ui","react_jsx_runtime","EmptyState","props","Component","asChild","className","title","description","children"],"sources":["../../../src/components/EmptyState.tsx"],"sourcesContent":["import { Slot } from 'radix-ui';\nimport type { ComponentProps, ReactNode } from 'react';\n\nimport { cn } from '../lib/cn';\n\nexport interface EmptyStateProps extends Omit<ComponentProps<'div'>, 'title'> {\n title: ReactNode;\n description?: ReactNode;\n /** Optional calls to action under the copy. */\n children?: ReactNode;\n /**\n * Render the child element instead of a <div>, so an empty row inside a\n * list stays an <li> and the list keeps its semantics.\n */\n asChild?: boolean;\n}\n\n/** The centred \"nothing here yet\" card every empty panel shares. */\nexport function EmptyState({ title, description, children, className, asChild = false, ...props }: EmptyStateProps) {\n const Component = asChild ? Slot.Root : 'div';\n return (\n <Component\n data-slot=\"empty-state\"\n className={cn('flex min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4', className)}\n {...props}\n >\n <div className=\"flex min-w-0 w-full max-w-[520px] flex-col items-center gap-3 text-center\">\n <span className=\"text-lg font-semibold text-po-hi\">{title}</span>\n {description ? <span className=\"text-base leading-relaxed text-po-dim\">{description}</span> : null}\n {children}\n </div>\n </Component>\n );\n}\n"],"mappings":"0FAkBA,SAAgBK,EAAW,CAAE,QAAO,cAAa,WAAU,YAAW,UAAU,GAAO,GAAGC,GAA0B,CAClH,IAAMC,EAAYC,EAAUR,EAAAA,KAAK,KAAO,MACxC,MACE,iBAAA,EAAAI,EAAA,IAAA,CAACG,EAAD,CACE,YAAU,cACV,UAAWN,EAAAA,GAAG,oEAAqEQ,CAAS,EAC5F,GAAIH,EAEJ,SAAA,iBAAA,EAAAF,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,4EAAf,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,mCAAoC,SAAAM,CAAY,CAAA,EAC/DC,EAAc,iBAAA,EAAAP,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,wCAAyC,SAAAO,CAAkB,CAAA,EAAI,KAC7FC,CACE,
|
|
1
|
+
{"version":3,"file":"EmptyState.cjs","names":["Slot","cn","require_cn","radix_ui","react_jsx_runtime","EmptyState","props","Component","asChild","className","title","description","children"],"sources":["../../../src/components/EmptyState.tsx"],"sourcesContent":["import { Slot } from 'radix-ui';\nimport type { ComponentProps, ReactNode } from 'react';\n\nimport { cn } from '../lib/cn';\n\nexport interface EmptyStateProps extends Omit<ComponentProps<'div'>, 'title'> {\n title: ReactNode;\n description?: ReactNode;\n /** Optional calls to action under the copy. */\n children?: ReactNode;\n /**\n * Render the child element instead of a <div>, so an empty row inside a\n * list stays an <li> and the list keeps its semantics.\n */\n asChild?: boolean;\n}\n\n/** The centred \"nothing here yet\" card every empty panel shares. */\nexport function EmptyState({ title, description, children, className, asChild = false, ...props }: EmptyStateProps) {\n const Component = asChild ? Slot.Root : 'div';\n return (\n <Component\n data-slot=\"empty-state\"\n className={cn('flex min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4', className)}\n {...props}\n >\n <div className=\"flex min-w-0 w-full max-w-[520px] flex-col items-center gap-3 text-center\">\n <span className=\"text-lg font-semibold text-po-hi\">{title}</span>\n {description ? <span className=\"text-base leading-relaxed text-po-dim\">{description}</span> : null}\n {children}\n </div>\n </Component>\n );\n}\n"],"mappings":"A,0FAkBA,SAAgBK,EAAW,CAAE,QAAO,cAAa,WAAU,YAAW,UAAU,GAAO,GAAGC,GAA0B,CAClH,IAAMC,EAAYC,EAAUR,EAAAA,KAAK,KAAO,MACxC,MACE,iBAAA,EAAAI,EAAA,IAAA,CAACG,EAAD,CACE,YAAU,cACV,UAAWN,EAAAA,GAAG,oEAAqEQ,CAAS,EAC5F,GAAIH,EAEJ,SAAA,iBAAA,EAAAF,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,4EAAf,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,mCAAoC,SAAAM,CAAY,CAAA,EAC/DC,EAAc,iBAAA,EAAAP,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,wCAAyC,SAAAO,CAAkB,CAAA,EAAI,KAC7FC,CACE,C,EACI,CAAA,CAEf,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime"),t=require("@xyflow/react");require("@xyflow/react/dist/style.css");function n({data:n}){return/* @__PURE__ */ (0,e.jsxs)(`div`,{className:`h-full`,style:{pointerEvents:`all`},children:[/* @__PURE__ */ (0,e.jsx)(t.Handle,{isConnectable:!1,type:`target`,position:t.Position.Top,className:`opacity-0`}),n.render(n.node),/* @__PURE__ */ (0,e.jsx)(t.Handle,{isConnectable:!1,type:`source`,position:t.Position.Bottom,className:`opacity-0`})]})}const r={po:n},i={"--xy-background-color":`var(--po-bg)`,"--xy-controls-button-background-color":`var(--po-panel)`,"--xy-controls-button-background-color-hover":`var(--po-deep)`,"--xy-controls-button-color":`var(--po-text)`,"--xy-controls-button-color-hover":`var(--po-hi)`,"--xy-controls-button-border-color":`var(--po-border)`,"--xy-controls-box-shadow":`none`};function a({nodes:n,edges:a,renderNode:o,height:s=720}){let c=typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,l=n.map(e=>({id:e.id,parentId:e.parentId,position:e.position,type:`po`,style:{width:e.width,height:e.height},data:{node:e,render:o}})),u=a.map(({tone:e=`idle`,...n})=>{let r=e===`active`?`var(--po-yellow)`:`var(--po-dim)`;return{...n,animated:e===`active`,markerEnd:{type:t.MarkerType.ArrowClosed,color:r},style:{animation:c?`none`:void 0,stroke:r,strokeDasharray:e===`pending`?`5 5`:void 0}}});return/* @__PURE__ */ (0,e.jsx)(`div`,{className:`min-h-0 w-full`,style:{height:s},children:/* @__PURE__ */ (0,e.jsxs)(t.ReactFlow,{style:i,nodes:l,edges:u,nodeTypes:r,fitView:!0,fitViewOptions:{padding:.15},minZoom:.2,maxZoom:1.5,nodesDraggable:!1,zoomOnScroll:!1,preventScrolling:!1,nodesConnectable:!1,elementsSelectable:!1,nodesFocusable:!1,edgesFocusable:!1,deleteKeyCode:null,ariaLabelConfig:{"node.a11yDescription.default":`Read-only graph step.`,"edge.a11yDescription.default":`Read-only graph connection.`},colorMode:`light`,proOptions:{hideAttribution:!0},children:[/* @__PURE__ */ (0,e.jsx)(t.Background,{color:`var(--po-border)`,gap:20}),/* @__PURE__ */ (0,e.jsx)(t.Controls,{position:`bottom-left`,showInteractive:!1})]})})}exports.FlowGraph=a;
|
|
2
|
+
//# sourceMappingURL=FlowGraph.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowGraph.cjs","names":["Handle","Position","MarkerType","ReactFlow","Background","Controls","react_jsx_runtime","_xyflow_react","FlowGraphNodeView","data","NODE_TYPES","THEME","FlowGraph","reducedMotion","flowNodes","nodes","node","renderNode","flowEdges","edges","edge","color","tone"],"sources":["../../../src/components/FlowGraph.tsx"],"sourcesContent":["import {\n Background,\n Controls,\n Handle,\n MarkerType,\n Position,\n ReactFlow,\n type Edge,\n type Node,\n type NodeProps,\n} from '@xyflow/react';\n\nimport '@xyflow/react/dist/style.css';\nimport type { CSSProperties, ReactNode } from 'react';\n\n/** A node already laid out by the caller; children set `parentId` and a position relative to it. */\nexport interface FlowGraphNode<TData> {\n id: string;\n parentId?: string;\n position: { x: number; y: number };\n width: number;\n height: number;\n data: TData;\n}\n\n/** `active` animates in yellow, `pending` is dashed, `idle` is a plain dim line. */\nexport type FlowGraphEdgeTone = 'active' | 'idle' | 'pending';\n\nexport interface FlowGraphEdge {\n id: string;\n source: string;\n target: string;\n tone?: FlowGraphEdgeTone;\n}\n\nexport interface FlowGraphProps<TData> {\n nodes: FlowGraphNode<TData>[];\n edges: FlowGraphEdge[];\n renderNode: (node: FlowGraphNode<TData>) => ReactNode;\n height?: number;\n}\n\ntype RenderData = { node: FlowGraphNode<unknown>; render: (node: FlowGraphNode<unknown>) => ReactNode };\n\nfunction FlowGraphNodeView({ data }: NodeProps<Node<RenderData>>) {\n return (\n // React Flow sets pointer-events: none on read-only nodes, which would swallow every button inside.\n <div className=\"h-full\" style={{ pointerEvents: 'all' }}>\n <Handle isConnectable={false} type=\"target\" position={Position.Top} className=\"opacity-0\" />\n {data.render(data.node)}\n <Handle isConnectable={false} type=\"source\" position={Position.Bottom} className=\"opacity-0\" />\n </div>\n );\n}\nconst NODE_TYPES = { po: FlowGraphNodeView };\n\nconst THEME = {\n '--xy-background-color': 'var(--po-bg)',\n '--xy-controls-button-background-color': 'var(--po-panel)',\n '--xy-controls-button-background-color-hover': 'var(--po-deep)',\n '--xy-controls-button-color': 'var(--po-text)',\n '--xy-controls-button-color-hover': 'var(--po-hi)',\n '--xy-controls-button-border-color': 'var(--po-border)',\n '--xy-controls-box-shadow': 'none',\n} as CSSProperties;\n\n/** A read-only, pannable node graph for laid-out flows such as workflow runs. */\nexport function FlowGraph<TData>({ nodes, edges, renderNode, height = 720 }: FlowGraphProps<TData>) {\n const reducedMotion =\n typeof window !== 'undefined' && window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n const flowNodes: Node<RenderData>[] = nodes.map((node) => ({\n id: node.id,\n parentId: node.parentId,\n position: node.position,\n type: 'po',\n style: { width: node.width, height: node.height },\n data: { node, render: renderNode as RenderData['render'] },\n }));\n const flowEdges: Edge[] = edges.map(({ tone = 'idle', ...edge }) => {\n const color = tone === 'active' ? 'var(--po-yellow)' : 'var(--po-dim)';\n return {\n ...edge,\n animated: tone === 'active',\n markerEnd: { type: MarkerType.ArrowClosed, color },\n style: {\n animation: reducedMotion ? 'none' : undefined,\n stroke: color,\n strokeDasharray: tone === 'pending' ? '5 5' : undefined,\n },\n };\n });\n return (\n <div className=\"min-h-0 w-full\" style={{ height }}>\n <ReactFlow\n style={THEME}\n nodes={flowNodes}\n edges={flowEdges}\n nodeTypes={NODE_TYPES}\n fitView\n fitViewOptions={{ padding: 0.15 }}\n minZoom={0.2}\n maxZoom={1.5}\n nodesDraggable={false}\n zoomOnScroll={false}\n preventScrolling={false}\n nodesConnectable={false}\n elementsSelectable={false}\n nodesFocusable={false}\n edgesFocusable={false}\n deleteKeyCode={null}\n ariaLabelConfig={{\n 'node.a11yDescription.default': 'Read-only graph step.',\n 'edge.a11yDescription.default': 'Read-only graph connection.',\n }}\n colorMode=\"light\"\n proOptions={{ hideAttribution: true }}\n >\n <Background color=\"var(--po-border)\" gap={20} />\n <Controls position=\"bottom-left\" showInteractive={false} />\n </ReactFlow>\n </div>\n );\n}\n"],"mappings":"A,sGA4CA,SAASQ,EAAkB,CAAE,QAAqC,CAChE,MAEE,iBAAA,EAAAF,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,SAAS,MAAO,CAAE,cAAe,KAAM,EAAtD,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAACN,EAAAA,OAAD,CAAQ,cAAe,GAAO,KAAK,SAAS,SAAUC,EAAAA,SAAS,IAAK,UAAU,WAAa,CAAA,EAC1FQ,EAAK,OAAOA,EAAK,IAAI,EACtB,iBAAA,EAAAH,EAAA,IAAA,CAACN,EAAAA,OAAD,CAAQ,cAAe,GAAO,KAAK,SAAS,SAAUC,EAAAA,SAAS,OAAQ,UAAU,WAAa,CAAA,CAC3F,C,EAET,CACA,MAAMS,EAAa,CAAE,GAAIF,CAAkB,EAErCG,EAAQ,CACZ,wBAAyB,eACzB,wCAAyC,kBACzC,8CAA+C,iBAC/C,6BAA8B,iBAC9B,mCAAoC,eACpC,oCAAqC,mBACrC,2BAA4B,MAC9B,EAGA,SAAgBC,EAAiB,CAAE,QAAO,QAAO,aAAY,SAAS,KAA8B,CAClG,IAAMC,EACJ,OAAO,OAAW,KAAe,OAAO,aAAa,kCAAkC,CAAC,CAAC,QACrFC,EAAgCC,EAAM,IAAK,IAAU,CACzD,GAAIC,EAAK,GACT,SAAUA,EAAK,SACf,SAAUA,EAAK,SACf,KAAM,KACN,MAAO,CAAE,MAAOA,EAAK,MAAO,OAAQA,EAAK,MAAO,EAChD,KAAM,CAAE,OAAM,OAAQC,CAAmC,CAC3D,EAAE,EACIC,EAAoBC,EAAM,KAAK,CAAE,OAAO,OAAQ,GAAGC,KAAW,CAClE,IAAMC,EAAQC,IAAS,SAAW,mBAAqB,gBACvD,MAAO,CACL,GAAGF,EACH,SAAUE,IAAS,SACnB,UAAW,CAAE,KAAMpB,EAAAA,WAAW,YAAa,OAAM,EACjD,MAAO,CACL,UAAWW,EAAgB,OAAS,IAAA,GACpC,OAAQQ,EACR,gBAAiBC,IAAS,UAAY,MAAQ,IAAA,EAChD,CACF,CACF,CAAC,EACD,MACE,iBAAA,EAAAhB,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,iBAAiB,MAAO,CAAE,QAAO,EAC9C,SAAA,iBAAA,EAAAA,EAAA,KAAA,CAACH,EAAAA,UAAD,CACE,MAAOQ,EACP,MAAOG,EACP,MAAOI,EACP,UAAWR,EACX,QAAA,GACA,eAAgB,CAAE,QAAS,GAAK,EAChC,QAAS,GACT,QAAS,IACT,eAAgB,GAChB,aAAc,GACd,iBAAkB,GAClB,iBAAkB,GAClB,mBAAoB,GACpB,eAAgB,GAChB,eAAgB,GAChB,cAAe,KACf,gBAAiB,CACf,+BAAgC,wBAChC,+BAAgC,6BAClC,EACA,UAAU,QACV,WAAY,CAAE,gBAAiB,EAAK,EAtBtC,SAAA,CAwBE,iBAAA,EAAAJ,EAAA,IAAA,CAACF,EAAAA,WAAD,CAAY,MAAM,mBAAmB,IAAK,EAAK,CAAA,EAC/C,iBAAA,EAAAE,EAAA,IAAA,CAACD,EAAAA,SAAD,CAAU,SAAS,cAAc,gBAAiB,EAAQ,CAAA,CACjD,C,EACR,CAAA,CAET,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../lib/cn.cjs"),t=require("../lib/syntaxHighlight.cjs"),n=require("./SyntaxText.cjs"),r=require("../lib/hashlineHighlight.cjs");let i=require("react/jsx-runtime"),a=require("react");const o=/* @__PURE__ */ new Map;function s(e){let n=r.hashlineGroupsKey(e),[i,s]=(0,a.useState)(void 0);return(0,a.useEffect)(()=>{let r=!0,i=/* @__PURE__ */ new Map,
|
|
1
|
+
const e=require("../lib/cn.cjs"),t=require("../lib/syntaxHighlight.cjs"),n=require("./SyntaxText.cjs"),r=require("../lib/hashlineHighlight.cjs");let i=require("react/jsx-runtime"),a=require("react");const o=/* @__PURE__ */ new Map;function s(e){let n=r.hashlineGroupsKey(e),[i,s]=(0,a.useState)(void 0);return(0,a.useEffect)(()=>{let r=!0,i=new AbortController,a=/* @__PURE__ */ new Map,o=e.map(async e=>{let n=t.detectGrammar({path:e.path,text:e.text});if(n===void 0)return;let r=await t.highlightToLines(e.text,n,i.signal);if(r!==void 0)for(let[t,n]of e.indices.entries()){let e=r[t];e!==void 0&&a.set(n,e)}});return Promise.allSettled(o).then(()=>{r&&a.size>0&&s({key:n,spans:a})}),()=>{r=!1,i.abort()}},[n]),i?.key===n?i.spans:o}function c({className:t,lines:o,gutter:c,path:l,...u}){let d=s((0,a.useMemo)(()=>r.hashlineGroups(o,l),[o,l])),f={width:`${c}ch`};return/* @__PURE__ */ (0,i.jsx)(`div`,{"data-slot":`hashline-lines`,className:e.cn(`flex flex-col font-mono`,t),...u,children:o.map((e,t)=>{if(e.type===`file`)return/* @__PURE__ */ (0,i.jsx)(`span`,{className:`mt-1 truncate text-po-faint first:mt-0`,children:e.path},t);if(e.type===`plain`)return/* @__PURE__ */ (0,i.jsx)(`span`,{className:`whitespace-pre-wrap break-words text-po-dim`,children:e.text},t);let{value:r}=e;return/* @__PURE__ */ (0,i.jsxs)(`span`,{className:`flex gap-2`,children:[r.marker===void 0?null:/* @__PURE__ */ (0,i.jsx)(`span`,{className:`w-4 shrink-0 ${r.marker===`match`?`text-po-blue`:`text-po-faint`}`,children:r.marker===`match`?`>>`:``}),/* @__PURE__ */ (0,i.jsx)(`span`,{className:`shrink-0 text-right text-po-faint`,style:f,children:r.line}),/* @__PURE__ */ (0,i.jsx)(n.SyntaxLine,{spans:d.get(t),text:r.content,className:`min-w-0 whitespace-pre-wrap break-words ${r.marker===`match`?`text-po-hi`:`text-po-text`}`})]},t)})})}exports.HashlineLines=c;
|
|
2
2
|
//# sourceMappingURL=HashlineLines.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HashlineLines.cjs","names":["hashlineGroupsKey","useState","detectGrammar","highlightToLines","useMemo","hashlineGroups","cn","SyntaxLine","require_cn","require_syntaxHighlight","require_SyntaxText","require_hashlineHighlight","react_jsx_runtime","react","NO_SPANS","useHashlineSpans","key","groups","done","setDone","live","next","work","grammar","group","highlighted","offset","index","line","HashlineLines","props","spans","lines","path","gutterStyle","gutter","className","value"],"sources":["../../../src/components/HashlineLines.tsx"],"sourcesContent":["import { type ComponentProps, useEffect, useMemo, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { type HashlineGroup, hashlineGroups, hashlineGroupsKey } from '../lib/hashlineHighlight';\nimport type { PresentedLine } from '../lib/hashlineView';\nimport { detectGrammar, highlightToLines, type SyntaxSpan } from '../lib/syntaxHighlight';\nimport { SyntaxLine } from './SyntaxText';\n\n/**\n * The anchored body shared by hashline results: a file heading per group, a\n * right-aligned line-number gutter, and a `>>` marker on grep matches. The\n * gutter width is a style, not a class, because it follows the widest number.\n *\n * The anchored lines are coloured with the editor's grammars when the body\n * names a file, or when `path` names one for a result that does not. Colour\n * arrives a frame or two late and never blocks the text: an unhighlighted body\n * is the same body without the colours.\n */\nexport interface HashlineLinesProps extends ComponentProps<'div'> {\n lines: readonly PresentedLine[];\n /** Width of the line-number column, in characters, from `hashlineBody`. */\n gutter: number;\n /** The file a body of bare anchored lines came from, for highlighting. */\n path?: string | undefined;\n}\n\nconst NO_SPANS: ReadonlyMap<number, readonly SyntaxSpan[]> = new Map();\n\n/**\n * Spans per presented-line index, once every file's run has parsed. The result\n * is stored with the body it belongs to, so a body that has changed since\n * reads as plain rather than wearing the previous body's colours.\n */\nfunction useHashlineSpans(groups: readonly HashlineGroup[]): ReadonlyMap<number, readonly SyntaxSpan[]> {\n const key = hashlineGroupsKey(groups);\n const [done, setDone] = useState<{ key: string; spans: ReadonlyMap<number, readonly SyntaxSpan[]> } | undefined>(\n undefined,\n );\n\n useEffect(() => {\n let live = true;\n const next = new Map<number, readonly SyntaxSpan[]>();\n const work = groups.map(async (group) => {\n const grammar = detectGrammar({ path: group.path, text: group.text });\n if (grammar === undefined) return;\n const highlighted = await highlightToLines(group.text, grammar);\n if (highlighted === undefined) return;\n for (const [offset, index] of group.indices.entries()) {\n const line = highlighted[offset];\n if (line !== undefined) next.set(index, line);\n }\n });\n // One state write for the whole body, so a many-file grep result does not\n // repaint once per file. A grammar that fails to load leaves its run plain.\n void Promise.allSettled(work).then(() => {\n if (live && next.size > 0) setDone({ key, spans: next });\n });\n return () => {\n live = false;\n };\n // The groups are rebuilt every render; their key is what actually changes.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [key]);\n\n return done?.key === key ? done.spans : NO_SPANS;\n}\n\nexport function HashlineLines({ className, lines, gutter, path, ...props }: HashlineLinesProps) {\n const groups = useMemo(() => hashlineGroups(lines, path), [lines, path]);\n const spans = useHashlineSpans(groups);\n // Bound to a name rather than written inline: this file ships as a scaffold\n // template too, and an inline style object opens with the same two braces\n // Liquid reads as an output tag, which fails to render.\n const gutterStyle = { width: `${gutter}ch` };\n return (\n <div data-slot=\"hashline-lines\" className={cn('flex flex-col font-mono', className)} {...props}>\n {lines.map((line, index) => {\n if (line.type === 'file') {\n return (\n <span key={index} className=\"mt-1 truncate text-po-faint first:mt-0\">\n {line.path}\n </span>\n );\n }\n if (line.type === 'plain') {\n return (\n <span key={index} className=\"whitespace-pre-wrap break-words text-po-dim\">\n {line.text}\n </span>\n );\n }\n const { value } = line;\n return (\n <span key={index} className=\"flex gap-2\">\n {value.marker !== undefined ? (\n <span className={`w-4 shrink-0 ${value.marker === 'match' ? 'text-po-blue' : 'text-po-faint'}`}>\n {value.marker === 'match' ? '>>' : ''}\n </span>\n ) : null}\n <span className=\"shrink-0 text-right text-po-faint\" style={gutterStyle}>\n {value.line}\n </span>\n <SyntaxLine\n spans={spans.get(index)}\n text={value.content}\n className={`min-w-0 whitespace-pre-wrap break-words ${value.marker === 'match' ? 'text-po-hi' : 'text-po-text'}`}\n />\n </span>\n );\n })}\n </div>\n );\n}\n"],"mappings":"uMA0BA,MAAMc,kBAAuD,IAAI,IAOjE,SAASC,EAAiB,EAA8E,CACtG,IAAMC,EAAMhB,EAAAA,kBAAkBiB,CAAM,EAC9B,CAACC,EAAMC,IAAA,EAAWlB,EAAAA,SAAAA,CACtB,IAAA,EACF,
|
|
1
|
+
{"version":3,"file":"HashlineLines.cjs","names":["hashlineGroupsKey","useState","detectGrammar","highlightToLines","useMemo","hashlineGroups","cn","SyntaxLine","require_cn","require_syntaxHighlight","require_SyntaxText","require_hashlineHighlight","react_jsx_runtime","react","NO_SPANS","useHashlineSpans","key","groups","done","setDone","live","controller","next","work","grammar","group","highlighted","offset","index","line","HashlineLines","props","spans","lines","path","gutterStyle","gutter","className","value"],"sources":["../../../src/components/HashlineLines.tsx"],"sourcesContent":["import { type ComponentProps, useEffect, useMemo, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { type HashlineGroup, hashlineGroups, hashlineGroupsKey } from '../lib/hashlineHighlight';\nimport type { PresentedLine } from '../lib/hashlineView';\nimport { detectGrammar, highlightToLines, type SyntaxSpan } from '../lib/syntaxHighlight';\nimport { SyntaxLine } from './SyntaxText';\n\n/**\n * The anchored body shared by hashline results: a file heading per group, a\n * right-aligned line-number gutter, and a `>>` marker on grep matches. The\n * gutter width is a style, not a class, because it follows the widest number.\n *\n * The anchored lines are coloured with the editor's grammars when the body\n * names a file, or when `path` names one for a result that does not. Colour\n * arrives a frame or two late and never blocks the text: an unhighlighted body\n * is the same body without the colours.\n */\nexport interface HashlineLinesProps extends ComponentProps<'div'> {\n lines: readonly PresentedLine[];\n /** Width of the line-number column, in characters, from `hashlineBody`. */\n gutter: number;\n /** The file a body of bare anchored lines came from, for highlighting. */\n path?: string | undefined;\n}\n\nconst NO_SPANS: ReadonlyMap<number, readonly SyntaxSpan[]> = new Map();\n\n/**\n * Spans per presented-line index, once every file's run has parsed. The result\n * is stored with the body it belongs to, so a body that has changed since\n * reads as plain rather than wearing the previous body's colours.\n */\nfunction useHashlineSpans(groups: readonly HashlineGroup[]): ReadonlyMap<number, readonly SyntaxSpan[]> {\n const key = hashlineGroupsKey(groups);\n const [done, setDone] = useState<{ key: string; spans: ReadonlyMap<number, readonly SyntaxSpan[]> } | undefined>(\n undefined,\n );\n\n useEffect(() => {\n let live = true;\n const controller = new AbortController();\n const next = new Map<number, readonly SyntaxSpan[]>();\n const work = groups.map(async (group) => {\n const grammar = detectGrammar({ path: group.path, text: group.text });\n if (grammar === undefined) return;\n const highlighted = await highlightToLines(group.text, grammar, controller.signal);\n if (highlighted === undefined) return;\n for (const [offset, index] of group.indices.entries()) {\n const line = highlighted[offset];\n if (line !== undefined) next.set(index, line);\n }\n });\n // One state write for the whole body, so a many-file grep result does not\n // repaint once per file. A grammar that fails to load leaves its run plain.\n void Promise.allSettled(work).then(() => {\n if (live && next.size > 0) setDone({ key, spans: next });\n });\n return () => {\n live = false;\n controller.abort();\n };\n // The groups are rebuilt every render; their key is what actually changes.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [key]);\n\n return done?.key === key ? done.spans : NO_SPANS;\n}\n\nexport function HashlineLines({ className, lines, gutter, path, ...props }: HashlineLinesProps) {\n const groups = useMemo(() => hashlineGroups(lines, path), [lines, path]);\n const spans = useHashlineSpans(groups);\n // Bound to a name rather than written inline: this file ships as a scaffold\n // template too, and an inline style object opens with the same two braces\n // Liquid reads as an output tag, which fails to render.\n const gutterStyle = { width: `${gutter}ch` };\n return (\n <div data-slot=\"hashline-lines\" className={cn('flex flex-col font-mono', className)} {...props}>\n {lines.map((line, index) => {\n if (line.type === 'file') {\n return (\n <span key={index} className=\"mt-1 truncate text-po-faint first:mt-0\">\n {line.path}\n </span>\n );\n }\n if (line.type === 'plain') {\n return (\n <span key={index} className=\"whitespace-pre-wrap break-words text-po-dim\">\n {line.text}\n </span>\n );\n }\n const { value } = line;\n return (\n <span key={index} className=\"flex gap-2\">\n {value.marker !== undefined ? (\n <span className={`w-4 shrink-0 ${value.marker === 'match' ? 'text-po-blue' : 'text-po-faint'}`}>\n {value.marker === 'match' ? '>>' : ''}\n </span>\n ) : null}\n <span className=\"shrink-0 text-right text-po-faint\" style={gutterStyle}>\n {value.line}\n </span>\n <SyntaxLine\n spans={spans.get(index)}\n text={value.content}\n className={`min-w-0 whitespace-pre-wrap break-words ${value.marker === 'match' ? 'text-po-hi' : 'text-po-text'}`}\n />\n </span>\n );\n })}\n </div>\n );\n}\n"],"mappings":"A,uMA0BA,MAAMc,kBAAuD,IAAI,IAOjE,SAASC,EAAiB,EAA8E,CACtG,IAAMC,EAAMhB,EAAAA,kBAAkBiB,CAAM,EAC9B,CAACC,EAAMC,IAAA,EAAWlB,EAAAA,SAAAA,CACtB,IAAA,EACF,EA6BA,OA3BA,EAAAY,EAAA,UAAA,KAAgB,CACd,IAAIO,EAAO,GACLC,EAAa,IAAI,gBACjBC,kBAAO,IAAI,IACXC,EAAON,EAAO,IAAI,KAAO,IAAU,CACvC,IAAMO,EAAUtB,EAAAA,cAAc,CAAE,KAAMuB,EAAM,KAAM,KAAMA,EAAM,IAAK,CAAC,EACpE,GAAID,IAAY,IAAA,GAAW,OAC3B,IAAME,EAAc,MAAMvB,EAAAA,iBAAiBsB,EAAM,KAAMD,EAASH,EAAW,MAAM,EACjF,GAAIK,IAAgB,IAAA,GACpB,IAAK,GAAM,CAACC,EAAQC,KAAUH,EAAM,QAAQ,QAAQ,EAAG,CACrD,IAAMI,EAAOH,EAAYC,GACrBE,IAAS,IAAA,IAAWP,EAAK,IAAIM,EAAOC,CAAI,CAC9C,CACF,CAAC,EAMD,OAHA,QAAa,WAAWN,CAAI,CAAC,CAAC,SAAW,CACnCH,GAAQE,EAAK,KAAO,GAAGH,EAAQ,CAAE,MAAK,MAAOG,CAAK,CAAC,CACzD,CAAC,MACY,CACX,EAAO,GACPD,EAAW,MAAM,CACnB,CAGF,EAAG,CAACL,CAAG,CAAC,EAEDE,GAAM,MAAQF,EAAME,EAAK,MAAQJ,CAC1C,CAEA,SAAgBgB,EAAc,CAAE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|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../lib/cn.cjs");let t=require("react/jsx-runtime");const n=(0,require("class-variance-authority").cva)(`min-w-0 text-po-hi outline-none placeholder:text-po-faint disabled:opacity-50 aria-invalid:border-po-edge-red aria-invalid:text-po-red`,{variants:{variant:{default:`rounded border border-po-border bg-po-deep transition-colors focus:border-po-green/60`,bare:`border-0 bg-transparent`},size:{xs:`min-h-6 px-1.5 py-0.5 text-sm`,sm:`min-h-7 px-2 py-1 text-sm`,md:`min-h-8 px-2.5 py-1.5 text-base`,lg:`min-h-9 px-3 py-1.5 text-base`}},compoundVariants:[{variant:`bare`,class:`min-h-0 p-0`}],defaultVariants:{variant:`default`,size:`md`}});function r({className:r,type:i,variant:a,size:o,...s}){return/* @__PURE__ */ (0,t.jsx)(`input`,{type:i??`text`,"data-slot":`input`,spellCheck:!1,className:e.cn(n({variant:a,size:o}),r),...s})}exports.Input=r,exports.fieldVariants=n;
|
|
1
|
+
const e=require("../lib/cn.cjs");let t=require("react/jsx-runtime");const n=(0,require("class-variance-authority").cva)(`min-w-0 pointer-coarse:text-xl text-po-hi outline-none placeholder:text-po-faint disabled:opacity-50 aria-invalid:border-po-edge-red aria-invalid:text-po-red`,{variants:{variant:{default:`rounded border border-po-border bg-po-deep transition-colors focus:border-po-green/60`,bare:`border-0 bg-transparent`},size:{xs:`min-h-6 px-1.5 py-0.5 text-sm`,sm:`min-h-7 px-2 py-1 text-sm`,md:`min-h-8 px-2.5 py-1.5 text-base`,lg:`min-h-9 px-3 py-1.5 text-base`}},compoundVariants:[{variant:`bare`,class:`min-h-0 p-0`}],defaultVariants:{variant:`default`,size:`md`}});function r({className:r,type:i,variant:a,size:o,...s}){return/* @__PURE__ */ (0,t.jsx)(`input`,{type:i??`text`,"data-slot":`input`,spellCheck:!1,className:e.cn(n({variant:a,size:o}),r),...s})}exports.Input=r,exports.fieldVariants=n;
|
|
2
2
|
//# sourceMappingURL=Input.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.cjs","names":["cva","cn","require_cn","react_jsx_runtime","fieldVariants","Input","props","type","className"],"sources":["../../../src/components/Input.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/**\n * The shape both fields wear, so a single-line and a multi-line field in the\n * same form agree on their well, their type ramp, and their invalid state.\n * Textarea builds on it rather than restating it.\n */\nexport const fieldVariants = cva(\n 'min-w-0 text-po-hi outline-none placeholder:text-po-faint disabled:opacity-50 aria-invalid:border-po-edge-red aria-invalid:text-po-red',\n {\n variants: {\n variant: {\n default: 'rounded border border-po-border bg-po-deep transition-colors focus:border-po-green/60',\n /** No well: a composer or a palette search that draws its own surface. */\n bare: 'border-0 bg-transparent',\n },\n /** The same rungs Button names, so a field and the button beside it line up. */\n size: {\n xs: 'min-h-6 px-1.5 py-0.5 text-sm',\n sm: 'min-h-7 px-2 py-1 text-sm',\n md: 'min-h-8 px-2.5 py-1.5 text-base',\n lg: 'min-h-9 px-3 py-1.5 text-base',\n },\n },\n compoundVariants: [\n // A bare field sits inside a surface that already has its own padding,\n // so it keeps the size's type ramp and gives up the size's box.\n { variant: 'bare', class: 'min-h-0 p-0' },\n ],\n defaultVariants: { variant: 'default', size: 'md' },\n },\n);\n\nexport type FieldVariant = NonNullable<VariantProps<typeof fieldVariants>['variant']>;\nexport type FieldSize = NonNullable<VariantProps<typeof fieldVariants>['size']>;\n\nexport interface InputProps extends Omit<ComponentProps<'input'>, 'size'>, VariantProps<typeof fieldVariants> {}\n\n/** The one text field: deep well, quiet border, accent border on focus, red edge when invalid. */\nexport function Input({ className, type, variant, size, ...props }: InputProps) {\n return (\n <input\n type={type ?? 'text'}\n data-slot=\"input\"\n spellCheck={false}\n className={cn(fieldVariants({ variant, size }), className)}\n {...props}\n />\n );\n}\n"],"mappings":"oEAUA,MAAaI,GAAA,
|
|
1
|
+
{"version":3,"file":"Input.cjs","names":["cva","cn","require_cn","react_jsx_runtime","fieldVariants","Input","props","type","className"],"sources":["../../../src/components/Input.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/**\n * The shape both fields wear, so a single-line and a multi-line field in the\n * same form agree on their well, their type ramp, and their invalid state.\n * Textarea builds on it rather than restating it.\n */\nexport const fieldVariants = cva(\n 'min-w-0 pointer-coarse:text-xl text-po-hi outline-none placeholder:text-po-faint disabled:opacity-50 aria-invalid:border-po-edge-red aria-invalid:text-po-red',\n {\n variants: {\n variant: {\n default: 'rounded border border-po-border bg-po-deep transition-colors focus:border-po-green/60',\n /** No well: a composer or a palette search that draws its own surface. */\n bare: 'border-0 bg-transparent',\n },\n /** The same rungs Button names, so a field and the button beside it line up. */\n size: {\n xs: 'min-h-6 px-1.5 py-0.5 text-sm',\n sm: 'min-h-7 px-2 py-1 text-sm',\n md: 'min-h-8 px-2.5 py-1.5 text-base',\n lg: 'min-h-9 px-3 py-1.5 text-base',\n },\n },\n compoundVariants: [\n // A bare field sits inside a surface that already has its own padding,\n // so it keeps the size's type ramp and gives up the size's box.\n { variant: 'bare', class: 'min-h-0 p-0' },\n ],\n defaultVariants: { variant: 'default', size: 'md' },\n },\n);\n\nexport type FieldVariant = NonNullable<VariantProps<typeof fieldVariants>['variant']>;\nexport type FieldSize = NonNullable<VariantProps<typeof fieldVariants>['size']>;\n\nexport interface InputProps extends Omit<ComponentProps<'input'>, 'size'>, VariantProps<typeof fieldVariants> {}\n\n/** The one text field: deep well, quiet border, accent border on focus, red edge when invalid. */\nexport function Input({ className, type, variant, size, ...props }: InputProps) {\n return (\n <input\n type={type ?? 'text'}\n data-slot=\"input\"\n spellCheck={false}\n className={cn(fieldVariants({ variant, size }), className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,oEAUA,MAAaI,GAAA,E,kCAAgBJ,CAAAA,CAAAA,IAAAA,CAC3B,gKACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,wFAET,KAAM,yBACR,EAEA,KAAM,CACJ,GAAI,gCACJ,GAAI,4BACJ,GAAI,kCACJ,GAAI,+BACN,CACF,EACA,iBAAkB,CAGhB,CAAE,QAAS,OAAQ,MAAO,aAAc,CAC1C,EACA,gBAAiB,CAAE,QAAS,UAAW,KAAM,IAAK,CACpD,CACF,EAQA,SAAgBK,EAAM,CAAE,YAAW,OAAM,UAAS,OAAM,GAAGC,GAAqB,CAC9E,MACE,iBAAA,EAAAH,EAAA,IAAA,CAAC,QAAD,CACE,KAAMI,GAAQ,OACd,YAAU,QACV,WAAY,GACZ,UAAWN,EAAAA,GAAGG,EAAc,CAAE,UAAS,MAAK,CAAC,EAAGI,CAAS,EACzD,GAAIF,CACL,CAAA,CAEL,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kbd.cjs","names":["cn","require_cn","react_jsx_runtime","Kbd","props","className"],"sources":["../../../src/components/Kbd.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** A key or key path, drawn as the leader hints draw them. */\nexport function Kbd({ className, ...props }: ComponentProps<'kbd'>) {\n return (\n <kbd\n data-slot=\"kbd\"\n className={cn(\n 'inline-flex items-center rounded bg-po-deep px-1.5 py-0.5 font-mono text-xs font-medium text-po-dim',\n className,\n )}\n {...props}\n />\n );\n}\n"],"mappings":"oEAKA,SAAgBG,EAAI,CAAE,YAAW,GAAGC,GAAgC,CAClE,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,MACV,UAAWF,EAAAA,GACT,sGACAK,CACF,EACA,GAAID,CACL,CAAA,CAEL"}
|
|
1
|
+
{"version":3,"file":"Kbd.cjs","names":["cn","require_cn","react_jsx_runtime","Kbd","props","className"],"sources":["../../../src/components/Kbd.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** A key or key path, drawn as the leader hints draw them. */\nexport function Kbd({ className, ...props }: ComponentProps<'kbd'>) {\n return (\n <kbd\n data-slot=\"kbd\"\n className={cn(\n 'inline-flex items-center rounded bg-po-deep px-1.5 py-0.5 font-mono text-xs font-medium text-po-dim',\n className,\n )}\n {...props}\n />\n );\n}\n"],"mappings":"A,oEAKA,SAAgBG,EAAI,CAAE,YAAW,GAAGC,GAAgC,CAClE,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,MACV,UAAWF,EAAAA,GACT,sGACAK,CACF,EACA,GAAID,CACL,CAAA,CAEL,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.cjs","names":["LabelPrimitive","cn","require_cn","radix_ui","react_jsx_runtime","Label","props","className"],"sources":["../../../src/components/Label.tsx"],"sourcesContent":["import { Label as LabelPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** A field's name: clicking it focuses the control, which a bare span never does. */\nexport function Label({ className, ...props }: ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'flex items-center gap-1.5 text-base font-medium text-po-text select-none has-[+:disabled]:opacity-50',\n className,\n )}\n {...props}\n />\n );\n}\n"],"mappings":"0FAMA,SAAgBK,EAAM,CAAE,YAAW,GAAGC,GAAqD,CACzF,MACE,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,MAAe,KAAhB,CACE,YAAU,QACV,UAAWC,EAAAA,GACT,uGACAM,CACF,EACA,GAAID,CACL,CAAA,CAEL"}
|
|
1
|
+
{"version":3,"file":"Label.cjs","names":["LabelPrimitive","cn","require_cn","radix_ui","react_jsx_runtime","Label","props","className"],"sources":["../../../src/components/Label.tsx"],"sourcesContent":["import { Label as LabelPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** A field's name: clicking it focuses the control, which a bare span never does. */\nexport function Label({ className, ...props }: ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'flex items-center gap-1.5 text-base font-medium text-po-text select-none has-[+:disabled]:opacity-50',\n className,\n )}\n {...props}\n />\n );\n}\n"],"mappings":"A,0FAMA,SAAgBK,EAAM,CAAE,YAAW,GAAGC,GAAqD,CACzF,MACE,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,MAAe,KAAhB,CACE,YAAU,QACV,UAAWC,EAAAA,GACT,uGACAM,CACF,EACA,GAAID,CACL,CAAA,CAEL,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../lib/runDuration.cjs");let t=require("react/jsx-runtime"),n=require("react");function r({label:r,since:i,...a}){let o=(0,n.useRef)(null),[s]=(0,n.useState)(Date.now);return(0,n.useEffect)(()=>{let t,n=()=>{let a=Date.now(),s=o.current?.firstChild;s&&(s.nodeValue=e.clockText({label:r,since:i},a)),t=setTimeout(n,e.clockRefreshMs(i,a))};return n(),()=>clearTimeout(t)},[r,i]),/* @__PURE__ */ (0,t.jsx)(`span`,{ref:o,"data-slot":`live-duration`,...a,children:e.clockText({label:r,since:i},s)})}exports.LiveDuration=r;
|
|
2
|
+
//# sourceMappingURL=LiveDuration.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveDuration.cjs","names":["useRef","useState","clockText","clockRefreshMs","require_runDuration","react_jsx_runtime","react","LiveDuration","props","ref","mountedAt","timer","tick","now","node","since","label"],"sources":["../../../src/components/LiveDuration.tsx"],"sourcesContent":["import { type ComponentProps, useEffect, useRef, useState } from 'react';\n\nimport { clockRefreshMs, clockText } from '../lib/runDuration';\n\nexport interface LiveDurationProps extends Omit<ComponentProps<'span'>, 'children'> {\n /** The copy before the elapsed time, such as \"running\". */\n label: string;\n /** Epoch milliseconds the clock counts from. */\n since: number;\n}\n\n/**\n * \"running · 12m\" that ages by itself. Each minute it rewrites its own text node\n * rather than re-rendering, so a list of running sessions needs no shared clock.\n */\nexport function LiveDuration({ label, since, ...props }: LiveDurationProps) {\n const ref = useRef<HTMLSpanElement>(null);\n // The first paint's time; the effect below keeps the text current from then on.\n const [mountedAt] = useState(Date.now);\n useEffect(() => {\n let timer: ReturnType<typeof setTimeout>;\n const tick = (): void => {\n const now = Date.now();\n // React owns this text node and keeps it; writing its value is what React would do on a render.\n const node = ref.current?.firstChild;\n if (node) node.nodeValue = clockText({ label, since }, now);\n timer = setTimeout(tick, clockRefreshMs(since, now));\n };\n tick();\n return () => clearTimeout(timer);\n }, [label, since]);\n return (\n <span ref={ref} data-slot=\"live-duration\" {...props}>\n {clockText({ label, since }, mountedAt)}\n </span>\n );\n}\n"],"mappings":"A,gGAeA,SAAgBO,EAAa,CAAE,QAAO,QAAO,GAAGC,GAA4B,CAC1E,IAAMC,GAAA,EAAMT,EAAAA,OAAAA,CAAwB,IAAI,EAElC,CAACU,IAAA,EAAaT,EAAAA,SAAAA,CAAS,KAAK,GAAG,EAarC,OAZA,EAAAK,EAAA,UAAA,KAAgB,CACd,IAAIK,EACEC,MAAmB,CACvB,IAAMC,EAAM,KAAK,IAAI,EAEfC,EAAOL,EAAI,SAAS,WACtBK,IAAM,EAAK,UAAYZ,EAAAA,UAAU,CAAE,QAAO,OAAM,EAAGW,CAAG,GAC1D,EAAQ,WAAWD,EAAMT,EAAAA,eAAeY,EAAOF,CAAG,CAAC,CACrD,EAEA,OADAD,EAAK,MACQ,aAAaD,CAAK,CACjC,EAAG,CAACK,EAAOD,CAAK,CAAC,EAEf,iBAAA,EAAAV,EAAA,IAAA,CAAC,OAAD,CAAW,MAAK,YAAU,gBAAgB,GAAIG,EAC3CN,SAAAA,EAAAA,UAAU,CAAE,QAAO,OAAM,EAAGQ,CAAS,CAClC,CAAA,CAEV,C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./CodeBlock.cjs");let
|
|
2
|
-
`)?t:void 0,
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../lib/markdownMedia.cjs"),n=require("./CodeBlock.cjs"),r=require("./MediaViewerDialog.cjs");let i=require("react/jsx-runtime"),a=require("react"),o=require("react-markdown");o=e.__toESM(o,1);let s=require("remark-gfm");s=e.__toESM(s,1);const c=[s.default],l=`rounded bg-po-deep px-1 py-px font-mono text-po-green`,u=(0,a.createContext)(void 0),d=(0,a.createContext)(void 0);function f({src:e,alt:n}){let r=(0,a.useContext)(d),o=(0,a.useContext)(t.MarkdownMediaContext),s=typeof e==`string`&&/^@?artifact:/u.test(e),c;if(typeof e==`string`&&e!==``&&(s||!/^(?:[a-z][a-z\d+.-]*:|\/\/|#|\?)/i.test(e)))try{c=decodeURIComponent((s&&e.startsWith(`@`)?e.slice(1):e).split(/[?#]/,1)[0])}catch{c=``}let[l,u]=(0,a.useState)();(0,a.useEffect)(()=>{if(r===void 0||c===void 0)return;let e=!0,t;return Promise.resolve().then(()=>{if(e&&u(void 0),c===``)throw Error(`Invalid image path.`);return r(c)}).then(n=>{e?(t=n,u({path:c,loader:r,url:n.url,sourcePath:n.path??c})):n.dispose()}).catch(()=>{e&&u({path:c,loader:r,failed:!0})}),()=>{e=!1,t?.dispose()}},[c,r]);let f=l?.path===c&&l?.loader===r?l:void 0,p=f?.failed===!0||s&&r===void 0;if(p||r!==void 0&&c!==void 0&&f?.url===void 0)return/* @__PURE__ */ (0,i.jsxs)(`span`,{role:p?`alert`:`status`,title:c,children:[n||c||`Image`,` (`,p?`unavailable`:`loading...`,`)`]});let m=r!==void 0&&c!==void 0?f?.url:e,h=/* @__PURE__ */ (0,i.jsx)(`img`,{src:m,alt:n??``,onError:r!==void 0&&c!==void 0?()=>u({path:c,loader:r,failed:!0}):void 0,className:`max-h-[480px] max-w-full rounded border border-po-border`});if(o===void 0||typeof m!=`string`||m===``)return h;let g=n||c||`Image`;return/* @__PURE__ */ (0,i.jsx)(`button`,{type:`button`,"data-testid":`markdown-media-open`,"aria-label":`Open ${g} full screen`,onClick:()=>o.open({kind:`image`,title:g,url:m,sourcePath:f?.sourcePath??c}),className:`max-w-full cursor-zoom-in rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none`,children:h})}function p({className:e,children:t,...n}){let r=(0,a.useContext)(u),o=typeof t==`string`&&!t.includes(`
|
|
2
|
+
`)?t:void 0,s=o===void 0||e!==void 0?void 0:r?.(o);return s!==void 0&&o!==void 0?/* @__PURE__ */ (0,i.jsx)(`button`,{type:`button`,"data-testid":`markdown-file-link`,title:`open ${o}`,onClick:s,className:`${l} cursor-pointer underline decoration-po-green/40 underline-offset-2 hover:text-po-hi hover:decoration-po-hi`,children:o}):/* @__PURE__ */ (0,i.jsx)(`code`,{...n,className:`${e??``} ${l} [pre_&]:bg-transparent [pre_&]:p-0 [pre_&]:text-po-hi`,children:t})}function m({href:e,children:t}){let n=(0,a.useContext)(u),r=e;try{r=e===void 0?void 0:decodeURIComponent(e)}catch{r=void 0}let o=r!==void 0&&r!==``&&!/^(?:[a-z][a-z\d+.-]*:|\/\/|#|\?)/i.test(r)?n?.(r,!0):void 0;return o===void 0?/* @__PURE__ */ (0,i.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer`,className:`text-po-blue underline decoration-po-blue/50`,children:t}):/* @__PURE__ */ (0,i.jsx)(`button`,{type:`button`,"data-testid":`markdown-file-link`,title:`open ${r}`,onClick:o,className:`text-po-blue underline decoration-po-blue/50`,children:t})}function h(e){return typeof e==`string`?e:Array.isArray(e)?e.map(e=>h(e)).join(``):``}function g({children:e}){let t=(0,a.isValidElement)(e)?e:void 0;return t===void 0?/* @__PURE__ */ (0,i.jsx)(`pre`,{className:`overflow-x-auto rounded border border-po-border bg-po-deep p-2.5 text-sm leading-relaxed`,children:e}):/* @__PURE__ */ (0,i.jsx)(n.CodeBlock,{text:h(t.props.children).replace(/\n$/,``),className:t.props.className})}const _={p:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`p`,{className:`whitespace-pre-wrap break-words`,children:e}),strong:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`strong`,{className:`font-semibold text-po-hi`,children:e}),em:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`em`,{className:`italic`,children:e}),del:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`del`,{className:`text-po-dim line-through`,children:e}),a:m,code:p,pre:g,ul:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`ul`,{className:`list-disc pl-5`,children:e}),ol:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`ol`,{className:`list-decimal pl-5`,children:e}),li:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`li`,{className:`whitespace-pre-wrap break-words`,children:e}),h1:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`h1`,{className:`mt-2 text-2xl font-semibold text-po-hi first:mt-0`,children:e}),h2:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`h2`,{className:`mt-2 text-xl font-semibold text-po-hi first:mt-0`,children:e}),h3:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`h3`,{className:`mt-1 text-lg font-semibold text-po-hi first:mt-0`,children:e}),h4:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`h4`,{className:`font-semibold text-po-hi`,children:e}),h5:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`h5`,{className:`font-semibold text-po-text`,children:e}),h6:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`h6`,{className:`font-semibold text-po-dim`,children:e}),blockquote:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`blockquote`,{className:`border-l-2 border-po-border pl-3 text-po-dim`,children:e}),hr:()=>/* @__PURE__ */ (0,i.jsx)(`hr`,{className:`border-po-border-soft`}),table:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`div`,{className:`overflow-x-auto`,children:/* @__PURE__ */ (0,i.jsx)(`table`,{className:`border-collapse`,children:e})}),th:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`th`,{className:`border border-po-border bg-po-deep px-2 py-1 text-left font-semibold text-po-hi`,children:e}),td:({children:e})=>/* @__PURE__ */ (0,i.jsx)(`td`,{className:`border border-po-border px-2 py-1 align-top`,children:e}),img:f};function v({text:e,onFileLink:n,loadImage:s,documentPath:l,renderMediaReview:f}){let[p,m]=(0,a.useState)(),h=(0,a.useMemo)(()=>({open:e=>m({...e,...l===void 0?{}:{documentPath:l}})}),[l]),g=()=>m(void 0);return/* @__PURE__ */ (0,i.jsx)(u.Provider,{value:n,children:/* @__PURE__ */ (0,i.jsx)(d.Provider,{value:s,children:/* @__PURE__ */ (0,i.jsxs)(t.MarkdownMediaContext.Provider,{value:h,children:[/* @__PURE__ */ (0,i.jsx)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:/* @__PURE__ */ (0,i.jsx)(o.default,{remarkPlugins:c,components:_,urlTransform:(e,t,n)=>t===`src`&&n.tagName===`img`&&/^@?artifact:/u.test(e)?e:(0,o.defaultUrlTransform)(e),children:e})}),/* @__PURE__ */ (0,i.jsx)(r.MediaViewerDialog,{media:p,onClose:g,review:p===void 0?void 0:f?.(p,g)})]})})})}exports.Markdown=v;
|
|
3
3
|
//# sourceMappingURL=Markdown.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.cjs","names":["remarkGfm","createContext","useContext","useState","isValidElement","CodeBlock","ReactMarkdown","require_runtime","require_CodeBlock","react_jsx_runtime","react","react_markdown","remark_gfm","REMARK_PLUGINS","CODE_CLASS","FileLinkContext","ImageContext","Image","loader","path","src","loaded","setLoaded","active","asset","result","current","alt","Code","rest","onFileLink","label","children","open","className","Link","href","textOf","child","Pre","code","COMPONENTS","Markdown","loadImage","text"],"sources":["../../../src/components/Markdown.tsx"],"sourcesContent":["import {\n createContext,\n type ComponentProps,\n isValidElement,\n type ReactNode,\n useContext,\n useEffect,\n useState,\n} from 'react';\nimport ReactMarkdown, { type Components } from 'react-markdown';\nimport remarkGfm from 'remark-gfm';\n\nimport { CodeBlock } from './CodeBlock';\n\nconst REMARK_PLUGINS = [remarkGfm];\n\n// No size: inline code follows the prose it sits in, 15px in the conversation\n// and 13px in a compact transcript, so a path never reads smaller than its sentence.\nconst CODE_CLASS = 'rounded bg-po-deep px-1 py-px font-mono text-po-green';\n\n/**\n * What a piece of inline code opens, when the host knows.\n *\n * Returning undefined leaves the span as plain code, which is the answer for\n * everything a message quotes that is not a file: a class name, a flag, a\n * command. The caller decides what counts, because only it knows which files\n * the session has.\n */\nexport type FileLinkHandler = (text: string, explicit?: boolean) => (() => void) | undefined;\n\n/**\n * Passed by context rather than as a component prop so the component map stays\n * a module constant. Rebuilding that map per render gives react-markdown new\n * component identities, which remounts the whole rendered tree on every frame\n * of a streaming reply.\n */\nconst FileLinkContext = createContext<FileLinkHandler | undefined>(undefined);\n\ntype ImageLoader = (path: string) => Promise<{ url: string; dispose(): void }>;\nconst ImageContext = createContext<ImageLoader | undefined>(undefined);\n\nfunction Image({ src, alt }: ComponentProps<'img'>) {\n const loader = useContext(ImageContext);\n let path: string | undefined;\n if (typeof src === 'string' && src !== '' && !/^(?:[a-z][a-z\\d+.-]*:|\\/\\/|#|\\?)/i.test(src)) {\n try {\n path = decodeURIComponent(src.split(/[?#]/, 1)[0]!);\n } catch {\n // An invalid encoded filename is shown as unavailable, never fetched.\n path = '';\n }\n }\n const [loaded, setLoaded] = useState<{ path: string; loader: ImageLoader; url?: string; failed?: boolean }>();\n useEffect(() => {\n if (loader === undefined || path === undefined) return;\n let active = true;\n let asset: Awaited<ReturnType<ImageLoader>> | undefined;\n void Promise.resolve()\n .then(() => {\n if (active) setLoaded(undefined);\n if (path === '') throw new Error('Invalid image path.');\n return loader(path);\n })\n .then((result) => {\n if (!active) {\n result.dispose();\n return;\n }\n asset = result;\n setLoaded({ path, loader, url: result.url });\n })\n .catch(() => {\n if (active) setLoaded({ path, loader, failed: true });\n });\n return () => {\n active = false;\n asset?.dispose();\n };\n }, [path, loader]);\n const current = loaded?.path === path && loaded?.loader === loader ? loaded : undefined;\n if (loader !== undefined && path !== undefined && (current?.url === undefined || current.failed))\n return (\n <span role={current?.failed ? 'alert' : 'status'} title={path}>\n {alt || path || 'Image'} ({current?.failed ? 'unavailable' : 'loading...'})\n </span>\n );\n return (\n <img\n src={loader !== undefined && path !== undefined ? current?.url : src}\n alt={alt ?? ''}\n onError={loader !== undefined && path !== undefined ? () => setLoaded({ path, loader, failed: true }) : undefined}\n className=\"max-h-[480px] max-w-full rounded border border-po-border\"\n />\n );\n}\n\nfunction Code({ className, children, ...rest }: ComponentProps<'code'>) {\n const onFileLink = useContext(FileLinkContext);\n // Only a single-line span with no language class is a candidate: a fenced\n // block is content, not a reference, and its own renderer owns it.\n const label = typeof children === 'string' && !children.includes('\\n') ? children : undefined;\n const open = label === undefined || className !== undefined ? undefined : onFileLink?.(label);\n if (open !== undefined && label !== undefined) {\n return (\n <button\n type=\"button\"\n data-testid=\"markdown-file-link\"\n title={`open ${label}`}\n onClick={open}\n className={`${CODE_CLASS} cursor-pointer underline decoration-po-green/40 underline-offset-2 hover:text-po-hi hover:decoration-po-hi`}\n >\n {label}\n </button>\n );\n }\n return (\n <code\n {...rest}\n className={`${className ?? ''} ${CODE_CLASS} [pre_&]:bg-transparent [pre_&]:p-0 [pre_&]:text-po-hi`}\n >\n {children}\n </code>\n );\n}\n\nfunction Link({ href, children }: ComponentProps<'a'>) {\n const onFileLink = useContext(FileLinkContext);\n let path = href;\n try {\n path = href === undefined ? undefined : decodeURIComponent(href);\n } catch {\n path = undefined;\n }\n const isFile = path !== undefined && path !== '' && !/^(?:[a-z][a-z\\d+.-]*:|\\/\\/|#|\\?)/i.test(path);\n const open = isFile ? onFileLink?.(path!, true) : undefined;\n if (open !== undefined)\n return (\n <button\n type=\"button\"\n data-testid=\"markdown-file-link\"\n title={`open ${path}`}\n onClick={open}\n className=\"text-po-blue underline decoration-po-blue/50\"\n >\n {children}\n </button>\n );\n return (\n <a href={href} target=\"_blank\" rel=\"noreferrer\" className=\"text-po-blue underline decoration-po-blue/50\">\n {children}\n </a>\n );\n}\n\n/** The text inside a fence, which react-markdown hands over as nested strings. */\nfunction textOf(children: ReactNode): string {\n if (typeof children === 'string') return children;\n if (Array.isArray(children)) return children.map((child) => textOf(child as ReactNode)).join('');\n return '';\n}\n\n/**\n * A fenced block, read off the <code> child that carries its language.\n *\n * The block is handed to `CodeBlock` whole rather than rendered as a styled\n * <pre> around inline code, because a fence is content with its own\n * presentation: it is coloured, it can be copied, and a mermaid fence is a\n * picture. A <pre> that came from raw HTML has no such child and keeps the\n * plain box.\n */\nfunction Pre({ children }: ComponentProps<'pre'>) {\n const code = isValidElement<{ className?: string; children?: ReactNode }>(children) ? children : undefined;\n if (code === undefined)\n return (\n <pre className=\"overflow-x-auto rounded border border-po-border bg-po-deep p-2.5 text-sm leading-relaxed\">\n {children}\n </pre>\n );\n // Markdown ends every fence with a newline the author did not type.\n return <CodeBlock text={textOf(code.props.children).replace(/\\n$/, '')} className={code.props.className} />;\n}\nconst COMPONENTS: Components = {\n p: ({ children }) => <p className=\"whitespace-pre-wrap break-words\">{children}</p>,\n strong: ({ children }) => <strong className=\"font-semibold text-po-hi\">{children}</strong>,\n em: ({ children }) => <em className=\"italic\">{children}</em>,\n del: ({ children }) => <del className=\"text-po-dim line-through\">{children}</del>,\n a: Link,\n code: Code,\n pre: Pre,\n ul: ({ children }) => <ul className=\"list-disc pl-5\">{children}</ul>,\n ol: ({ children }) => <ol className=\"list-decimal pl-5\">{children}</ol>,\n li: ({ children }) => <li className=\"whitespace-pre-wrap break-words\">{children}</li>,\n // Headings step up from the prose they sit in and never shrink below it, so a\n // reply's `##` reads as a heading in both the 15px conversation and a 13px\n // compact transcript. h4 to h6 keep the prose size and lean on weight alone.\n h1: ({ children }) => <h1 className=\"mt-2 text-2xl font-semibold text-po-hi first:mt-0\">{children}</h1>,\n h2: ({ children }) => <h2 className=\"mt-2 text-xl font-semibold text-po-hi first:mt-0\">{children}</h2>,\n h3: ({ children }) => <h3 className=\"mt-1 text-lg font-semibold text-po-hi first:mt-0\">{children}</h3>,\n h4: ({ children }) => <h4 className=\"font-semibold text-po-hi\">{children}</h4>,\n h5: ({ children }) => <h5 className=\"font-semibold text-po-text\">{children}</h5>,\n h6: ({ children }) => <h6 className=\"font-semibold text-po-dim\">{children}</h6>,\n blockquote: ({ children }) => (\n <blockquote className=\"border-l-2 border-po-border pl-3 text-po-dim\">{children}</blockquote>\n ),\n hr: () => <hr className=\"border-po-border-soft\" />,\n table: ({ children }) => (\n <div className=\"overflow-x-auto\">\n <table className=\"border-collapse\">{children}</table>\n </div>\n ),\n th: ({ children }) => (\n <th className=\"border border-po-border bg-po-deep px-2 py-1 text-left font-semibold text-po-hi\">{children}</th>\n ),\n td: ({ children }) => <td className=\"border border-po-border px-2 py-1 align-top\">{children}</td>,\n img: Image,\n};\n\n/** GitHub-flavored Markdown using the cockpit's safe, shared presentation. */\nexport function Markdown({\n text,\n onFileLink,\n loadImage,\n}: {\n text: string;\n onFileLink?: FileLinkHandler;\n loadImage?: ImageLoader;\n}) {\n return (\n <FileLinkContext.Provider value={onFileLink}>\n <ImageContext.Provider value={loadImage}>\n <div className=\"flex min-w-0 flex-col gap-2\">\n <ReactMarkdown remarkPlugins={REMARK_PLUGINS} components={COMPONENTS}>\n {text}\n </ReactMarkdown>\n </div>\n </ImageContext.Provider>\n </FileLinkContext.Provider>\n );\n}\n"],"mappings":"qOAcA,MAAMa,EAAiB,CAACb,EAAAA,OAAS,EAI3Bc,EAAa,wDAkBbC,GAAA,EAAkBd,EAAAA,cAAAA,CAA2C,IAAA,EAAS,EAGtEe,GAAA,EAAef,EAAAA,cAAAA,CAAuC,IAAA,EAAS,EAErE,SAASgB,EAAM,CAAE,MAAK,OAA8B,CAClD,IAAMC,GAAA,EAAShB,EAAAA,WAAAA,CAAWc,CAAY,EAClCG,EACJ,GAAI,OAAOC,GAAQ,UAAYA,IAAQ,IAAM,CAAC,oCAAoC,KAAKA,CAAG,EACxF,GAAI,CACF,EAAO,mBAAmBA,EAAI,MAAM,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ACE,iBAAA,EAAAjC,EAAA,IAAA,CAACM,EAAgB,SAAjB,CAA0B,MAAOe,EAC/B,SAAA,iBAAA,EAAArB,EAAA,IAAA,CAACO,EAAa,SAAd,CAAuB,MAAO2B,EAC5B,SAAA,iBAAA,EAAAlC,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,8BACb,SAAA,iBAAA,EAAAA,EAAA,IAAA,CAACH,EAAAA,QAAD,CAAe,cAAeO,EAAgB,WAAY4B,EACvD,SAAAG,CACY,CAAA,CACZ,CAAA,CACgB,CAAA,CACC,CAAA,CAE9B"}
|
|
1
|
+
{"version":3,"file":"Markdown.cjs","names":["remarkGfm","createContext","useContext","MarkdownMediaContext","useState","isValidElement","CodeBlock","useMemo","ReactMarkdown","defaultUrlTransform","MediaViewerDialog","require_runtime","require_markdownMedia","require_CodeBlock","require_MediaViewerDialog","react_jsx_runtime","react","react_markdown","remark_gfm","REMARK_PLUGINS","CODE_CLASS","FileLinkContext","ImageContext","Image","loader","media","artifact","src","path","loaded","setLoaded","active","asset","result","current","unavailable","alt","url","image","title","Code","rest","onFileLink","label","children","open","className","Link","href","textOf","child","Pre","code","COMPONENTS","Markdown","opened","setOpened","next","documentPath","close","loadImage","key","node","text","renderMediaReview"],"sources":["../../../src/components/Markdown.tsx"],"sourcesContent":["import {\n createContext,\n type ComponentProps,\n isValidElement,\n type ReactNode,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport ReactMarkdown, { defaultUrlTransform, type Components } from 'react-markdown';\nimport remarkGfm from 'remark-gfm';\n\nimport {\n type MarkdownMedia,\n MarkdownMediaContext,\n type MarkdownMediaContextValue,\n type MarkdownMediaReview,\n} from '../lib/markdownMedia';\nimport { CodeBlock } from './CodeBlock';\nimport { MediaViewerDialog } from './MediaViewerDialog';\n\nconst REMARK_PLUGINS = [remarkGfm];\n\n// No size: inline code follows the prose it sits in, 15px in the conversation\n// and 13px in a compact transcript, so a path never reads smaller than its sentence.\nconst CODE_CLASS = 'rounded bg-po-deep px-1 py-px font-mono text-po-green';\n\n/**\n * What a piece of inline code opens, when the host knows.\n *\n * Returning undefined leaves the span as plain code, which is the answer for\n * everything a message quotes that is not a file: a class name, a flag, a\n * command. The caller decides what counts, because only it knows which files\n * the session has.\n */\nexport type FileLinkHandler = (text: string, explicit?: boolean) => (() => void) | undefined;\n\n/**\n * Passed by context rather than as a component prop so the component map stays\n * a module constant. Rebuilding that map per render gives react-markdown new\n * component identities, which remounts the whole rendered tree on every frame\n * of a streaming reply.\n */\nconst FileLinkContext = createContext<FileLinkHandler | undefined>(undefined);\n\n/** `path` is the file the host resolved the image to, kept as review provenance. */\ntype ImageLoader = (path: string) => Promise<{ url: string; dispose(): void; path?: string }>;\nconst ImageContext = createContext<ImageLoader | undefined>(undefined);\n\nfunction Image({ src, alt }: ComponentProps<'img'>) {\n const loader = useContext(ImageContext);\n const media = useContext(MarkdownMediaContext);\n const artifact = typeof src === 'string' && /^@?artifact:/u.test(src);\n let path: string | undefined;\n if (typeof src === 'string' && src !== '' && (artifact || !/^(?:[a-z][a-z\\d+.-]*:|\\/\\/|#|\\?)/i.test(src))) {\n try {\n path = decodeURIComponent((artifact && src.startsWith('@') ? src.slice(1) : src).split(/[?#]/, 1)[0]!);\n } catch {\n // An invalid encoded filename is shown as unavailable, never fetched.\n path = '';\n }\n }\n const [loaded, setLoaded] = useState<{\n path: string;\n loader: ImageLoader;\n url?: string;\n sourcePath?: string;\n failed?: boolean;\n }>();\n useEffect(() => {\n if (loader === undefined || path === undefined) return;\n let active = true;\n let asset: Awaited<ReturnType<ImageLoader>> | undefined;\n void Promise.resolve()\n .then(() => {\n if (active) setLoaded(undefined);\n if (path === '') throw new Error('Invalid image path.');\n return loader(path);\n })\n .then((result) => {\n if (!active) {\n result.dispose();\n return;\n }\n asset = result;\n setLoaded({ path, loader, url: result.url, sourcePath: result.path ?? path });\n })\n .catch(() => {\n if (active) setLoaded({ path, loader, failed: true });\n });\n return () => {\n active = false;\n asset?.dispose();\n };\n }, [path, loader]);\n const current = loaded?.path === path && loaded?.loader === loader ? loaded : undefined;\n const unavailable = current?.failed === true || (artifact && loader === undefined);\n if (unavailable || (loader !== undefined && path !== undefined && current?.url === undefined))\n return (\n <span role={unavailable ? 'alert' : 'status'} title={path}>\n {alt || path || 'Image'} ({unavailable ? 'unavailable' : 'loading...'})\n </span>\n );\n const url = loader !== undefined && path !== undefined ? current?.url : src;\n const image = (\n <img\n src={url}\n alt={alt ?? ''}\n onError={loader !== undefined && path !== undefined ? () => setLoaded({ path, loader, failed: true }) : undefined}\n className=\"max-h-[480px] max-w-full rounded border border-po-border\"\n />\n );\n if (media === undefined || typeof url !== 'string' || url === '') return image;\n const title = alt || path || 'Image';\n return (\n <button\n type=\"button\"\n data-testid=\"markdown-media-open\"\n aria-label={`Open ${title} full screen`}\n onClick={() => media.open({ kind: 'image', title, url, sourcePath: current?.sourcePath ?? path })}\n className=\"max-w-full cursor-zoom-in rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none\"\n >\n {image}\n </button>\n );\n}\n\nfunction Code({ className, children, ...rest }: ComponentProps<'code'>) {\n const onFileLink = useContext(FileLinkContext);\n // Only a single-line span with no language class is a candidate: a fenced\n // block is content, not a reference, and its own renderer owns it.\n const label = typeof children === 'string' && !children.includes('\\n') ? children : undefined;\n const open = label === undefined || className !== undefined ? undefined : onFileLink?.(label);\n if (open !== undefined && label !== undefined) {\n return (\n <button\n type=\"button\"\n data-testid=\"markdown-file-link\"\n title={`open ${label}`}\n onClick={open}\n className={`${CODE_CLASS} cursor-pointer underline decoration-po-green/40 underline-offset-2 hover:text-po-hi hover:decoration-po-hi`}\n >\n {label}\n </button>\n );\n }\n return (\n <code\n {...rest}\n className={`${className ?? ''} ${CODE_CLASS} [pre_&]:bg-transparent [pre_&]:p-0 [pre_&]:text-po-hi`}\n >\n {children}\n </code>\n );\n}\n\nfunction Link({ href, children }: ComponentProps<'a'>) {\n const onFileLink = useContext(FileLinkContext);\n let path = href;\n try {\n path = href === undefined ? undefined : decodeURIComponent(href);\n } catch {\n path = undefined;\n }\n const isFile = path !== undefined && path !== '' && !/^(?:[a-z][a-z\\d+.-]*:|\\/\\/|#|\\?)/i.test(path);\n const open = isFile ? onFileLink?.(path!, true) : undefined;\n if (open !== undefined)\n return (\n <button\n type=\"button\"\n data-testid=\"markdown-file-link\"\n title={`open ${path}`}\n onClick={open}\n className=\"text-po-blue underline decoration-po-blue/50\"\n >\n {children}\n </button>\n );\n return (\n <a href={href} target=\"_blank\" rel=\"noreferrer\" className=\"text-po-blue underline decoration-po-blue/50\">\n {children}\n </a>\n );\n}\n\n/** The text inside a fence, which react-markdown hands over as nested strings. */\nfunction textOf(children: ReactNode): string {\n if (typeof children === 'string') return children;\n if (Array.isArray(children)) return children.map((child) => textOf(child as ReactNode)).join('');\n return '';\n}\n\n/**\n * A fenced block, read off the <code> child that carries its language.\n *\n * The block is handed to `CodeBlock` whole rather than rendered as a styled\n * <pre> around inline code, because a fence is content with its own\n * presentation: it is coloured, it can be copied, and a mermaid fence is a\n * picture. A <pre> that came from raw HTML has no such child and keeps the\n * plain box.\n */\nfunction Pre({ children }: ComponentProps<'pre'>) {\n const code = isValidElement<{ className?: string; children?: ReactNode }>(children) ? children : undefined;\n if (code === undefined)\n return (\n <pre className=\"overflow-x-auto rounded border border-po-border bg-po-deep p-2.5 text-sm leading-relaxed\">\n {children}\n </pre>\n );\n // Markdown ends every fence with a newline the author did not type.\n return <CodeBlock text={textOf(code.props.children).replace(/\\n$/, '')} className={code.props.className} />;\n}\nconst COMPONENTS: Components = {\n p: ({ children }) => <p className=\"whitespace-pre-wrap break-words\">{children}</p>,\n strong: ({ children }) => <strong className=\"font-semibold text-po-hi\">{children}</strong>,\n em: ({ children }) => <em className=\"italic\">{children}</em>,\n del: ({ children }) => <del className=\"text-po-dim line-through\">{children}</del>,\n a: Link,\n code: Code,\n pre: Pre,\n ul: ({ children }) => <ul className=\"list-disc pl-5\">{children}</ul>,\n ol: ({ children }) => <ol className=\"list-decimal pl-5\">{children}</ol>,\n li: ({ children }) => <li className=\"whitespace-pre-wrap break-words\">{children}</li>,\n // Headings step up from the prose they sit in and never shrink below it, so a\n // reply's `##` reads as a heading in both the 15px conversation and a 13px\n // compact transcript. h4 to h6 keep the prose size and lean on weight alone.\n h1: ({ children }) => <h1 className=\"mt-2 text-2xl font-semibold text-po-hi first:mt-0\">{children}</h1>,\n h2: ({ children }) => <h2 className=\"mt-2 text-xl font-semibold text-po-hi first:mt-0\">{children}</h2>,\n h3: ({ children }) => <h3 className=\"mt-1 text-lg font-semibold text-po-hi first:mt-0\">{children}</h3>,\n h4: ({ children }) => <h4 className=\"font-semibold text-po-hi\">{children}</h4>,\n h5: ({ children }) => <h5 className=\"font-semibold text-po-text\">{children}</h5>,\n h6: ({ children }) => <h6 className=\"font-semibold text-po-dim\">{children}</h6>,\n blockquote: ({ children }) => (\n <blockquote className=\"border-l-2 border-po-border pl-3 text-po-dim\">{children}</blockquote>\n ),\n hr: () => <hr className=\"border-po-border-soft\" />,\n table: ({ children }) => (\n <div className=\"overflow-x-auto\">\n <table className=\"border-collapse\">{children}</table>\n </div>\n ),\n th: ({ children }) => (\n <th className=\"border border-po-border bg-po-deep px-2 py-1 text-left font-semibold text-po-hi\">{children}</th>\n ),\n td: ({ children }) => <td className=\"border border-po-border px-2 py-1 align-top\">{children}</td>,\n img: Image,\n};\n\n/** GitHub-flavored Markdown using the cockpit's safe, shared presentation. */\nexport function Markdown({\n text,\n onFileLink,\n loadImage,\n documentPath,\n renderMediaReview,\n}: {\n text: string;\n onFileLink?: FileLinkHandler;\n loadImage?: ImageLoader;\n /** The file this Markdown came from, passed to a reviewer of its pictures. */\n documentPath?: string;\n /** Annotate and review surface for an opened picture; without it the viewer only pans and zooms. */\n renderMediaReview?: MarkdownMediaReview;\n}) {\n const [opened, setOpened] = useState<MarkdownMedia>();\n const media = useMemo<MarkdownMediaContextValue>(\n () => ({ open: (next) => setOpened({ ...next, ...(documentPath === undefined ? {} : { documentPath }) }) }),\n [documentPath],\n );\n const close = () => setOpened(undefined);\n return (\n <FileLinkContext.Provider value={onFileLink}>\n <ImageContext.Provider value={loadImage}>\n <MarkdownMediaContext.Provider value={media}>\n <div className=\"flex min-w-0 flex-col gap-2\">\n <ReactMarkdown\n remarkPlugins={REMARK_PLUGINS}\n components={COMPONENTS}\n urlTransform={(url, key, node) =>\n key === 'src' && node.tagName === 'img' && /^@?artifact:/u.test(url) ? url : defaultUrlTransform(url)\n }\n >\n {text}\n </ReactMarkdown>\n </div>\n <MediaViewerDialog\n media={opened}\n onClose={close}\n review={opened === undefined ? undefined : renderMediaReview?.(opened, close)}\n />\n </MarkdownMediaContext.Provider>\n </ImageContext.Provider>\n </FileLinkContext.Provider>\n );\n}\n"],"mappings":"A,gTAsBA,MAAMmB,EAAiB,CAACnB,EAAAA,OAAS,EAI3BoB,EAAa,wDAkBbC,GAAA,EAAkBpB,EAAAA,cAAAA,CAA2C,IAAA,EAAS,EAItEqB,GAAA,EAAerB,EAAAA,cAAAA,CAAuC,IAAA,EAAS,EAErE,SAASsB,EAAM,CAAE,MAAK,OAA8B,CAClD,IAAMC,GAAA,EAAStB,EAAAA,WAAAA,CAAWoB,CAAY,EAChCG,GAAA,EAAQvB,EAAAA,WAAAA,CAAWC,EAAAA,oBAAoB,EACvCuB,EAAW,OAAOC,GAAQ,UAAY,gBAAgB,KAAKA,CAAG,EAChEC,EACJ,GAAI,OAAOD,GAAQ,UAAYA,IAAQ,KAAOD,GAAY,CAAC,oCAAoC,KAAKC,CAAG,GACrG,GAAI,CACF,EAAO,oBAAoBD,GAAYC,EAAI,WAAW,GAAG,EAAIA,EAAI,MAAM,CAAC,EAAIA,EAAA,CAAK,MAAM,OAAQ,CAAC,CAAC,CAAC,EAAG,CACvG,MAAQ,CAEN,EAAO,EACT,CAEF,GAAM,CAACE,EAAQC,IAAA,EAAa1B,EAAAA,SAAAA,CAMzB,GACH,EAAAY,EAAA,UAAA,KAAgB,CACd,GAAIQ,IAAW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,EAAQI,CAAK,CAC7E,CAAA,CAC4B,C,EACV,CAAA,CACC,CAAA,CAE9B,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpApp.cjs","names":["Component","createRoot","App","react_jsx_runtime","react","_modelcontextprotocol_ext_apps","react_dom_client","WidgetBoundary","McpApp","Widget","view","widgets","mountMcpApp","element","root","app","disposed","terminal","connected","appVisible","render","fail","message","identify","name","widget","updateRefresh","enabled","applyContext","context","tool","ui","args","result","dispose"],"sources":["../../../src/components/McpApp.tsx"],"sourcesContent":["import type { PoMcpWidgetProps } from '@agimon-ai/po-core/web';\nimport {\n App,\n applyDocumentTheme,\n applyHostStyleVariables,\n type McpUiHostContext,\n} from '@modelcontextprotocol/ext-apps';\nimport { Component, type ComponentType, type ReactNode } from 'react';\nimport { createRoot } from 'react-dom/client';\n\ninterface View {\n readonly widget?: string;\n readonly props: PoMcpWidgetProps;\n readonly failure?: string;\n}\n\nclass WidgetBoundary extends Component<{ children: ReactNode }, { failed: boolean }> {\n state = { failed: false };\n\n static getDerivedStateFromError() {\n return { failed: true };\n }\n\n render() {\n return this.state.failed ? <p role=\"status\">The tool widget could not be rendered.</p> : this.props.children;\n }\n}\n\n/** The root only dispatches. Tool-specific presentation belongs to the contributing package. */\nexport function McpApp({\n widgets,\n view,\n}: {\n widgets: Readonly<Record<string, ComponentType<PoMcpWidgetProps>>>;\n view: View;\n}) {\n const Widget = view.widget !== undefined && Object.hasOwn(widgets, view.widget) ? widgets[view.widget] : undefined;\n if (view.failure) return <p role=\"status\">{view.failure}</p>;\n if (Widget === undefined)\n return (\n <p role=\"status\">\n {view.widget === undefined ? 'Waiting for tool information...' : 'No widget is available for this tool.'}\n </p>\n );\n return (\n <WidgetBoundary key={view.widget}>\n <Widget {...view.props} />\n </WidgetBoundary>\n );\n}\n\n/** Mounts one independently sandboxed invocation of the sync-generated widget registry. */\nexport async function mountMcpApp(widgets: Readonly<Record<string, ComponentType<PoMcpWidgetProps>>>): Promise<void> {\n const element = document.getElementById('root');\n if (element === null) throw new Error('Missing MCP app root');\n const root = createRoot(element);\n const app = new App({ name: 'po-tools', version: '1.0.0' }, {}, { autoResize: true });\n let disposed = false;\n let terminal = false;\n let connected = false;\n let appVisible = false;\n let view: View = { props: { toolName: '', args: {}, result: null, phase: 'connecting' } };\n\n const render = (): void => {\n if (!disposed) root.render(<McpApp widgets={widgets} view={view} />);\n };\n const fail = (message: string): void => {\n terminal = true;\n view = { ...view, failure: message };\n render();\n };\n const identify = (name: unknown, widget: unknown): boolean => {\n if (typeof name === 'string' && name.length > 0) {\n if (view.props.toolName && view.props.toolName !== name) {\n fail('The tool changed. Reopen this widget from the conversation.');\n return false;\n }\n view = { ...view, props: { ...view.props, toolName: name } };\n }\n if (typeof widget === 'string') {\n if (view.widget !== undefined && view.widget !== widget) {\n fail('The widget changed. Refresh the MCP connection.');\n return false;\n }\n view = { ...view, widget };\n }\n return true;\n };\n const updateRefresh = (): void => {\n const name = view.props.toolName;\n const enabled = connected && appVisible && !!app.getHostCapabilities()?.serverTools && name.length > 0;\n view = {\n ...view,\n props: {\n ...view.props,\n refresh: enabled\n ? async () => {\n if (disposed || name !== view.props.toolName || !appVisible)\n throw new Error('This widget is no longer active.');\n return app.callServerTool({ name, arguments: { ...view.props.args } });\n }\n : undefined,\n },\n };\n };\n const applyContext = (context: McpUiHostContext | undefined): void => {\n if (disposed || context === undefined) return;\n if (context.theme) {\n applyDocumentTheme(context.theme);\n document.documentElement.classList.toggle('dark', context.theme === 'dark');\n document.documentElement.dataset.theme = context.theme;\n }\n if (context.styles?.variables) applyHostStyleVariables(context.styles.variables);\n const tool = context.toolInfo?.tool;\n if (tool) {\n if (!identify(tool.name, tool._meta?.['po/widget'])) return;\n const ui = tool._meta?.ui as { visibility?: unknown } | undefined;\n appVisible = Array.isArray(ui?.visibility) && ui.visibility.includes('app');\n }\n updateRefresh();\n render();\n };\n\n app.ontoolinputpartial = ({ arguments: args }) => {\n if (disposed || terminal) return;\n view = { ...view, props: { ...view.props, args: args ?? {}, phase: 'preparing' } };\n render();\n };\n app.ontoolinput = ({ arguments: args }) => {\n if (disposed || terminal) return;\n view = { ...view, props: { ...view.props, args: args ?? {}, phase: 'running' } };\n render();\n };\n app.ontoolresult = (result) => {\n if (disposed || terminal) return;\n if (!identify(result._meta?.['po/toolName'], result._meta?.['po/widget'])) return;\n terminal = true;\n view = { ...view, props: { ...view.props, result, phase: 'result' } };\n updateRefresh();\n render();\n };\n app.ontoolcancelled = () => {\n if (disposed || terminal) return;\n terminal = true;\n view = { ...view, props: { ...view.props, phase: 'cancelled', result: null } };\n render();\n };\n app.onhostcontextchanged = applyContext;\n\n const dispose = (): void => {\n if (disposed) return;\n view = { ...view, failure: 'Tool view closed.' };\n render();\n disposed = true;\n window.removeEventListener('pagehide', dispose);\n setTimeout(() => {\n void app.close().catch(() => {});\n }, 0);\n };\n\n app.onteardown = () => {\n dispose();\n return {};\n };\n window.addEventListener('pagehide', dispose, { once: true });\n render();\n\n try {\n await app.connect();\n if (disposed) return;\n connected = true;\n applyContext(app.getHostContext());\n } catch {\n if (!disposed) fail('Could not connect to the app host. Reopen this widget in an MCP Apps-compatible client.');\n }\n}\n"],"mappings":"gIAgBA,IAAMO,EAAN,cAA6BP,EAAAA,SAAwD,CACnF,MAAQ,CAAE,OAAQ,EAAM,EAExB,OAAO,0BAA2B,CAChC,MAAO,CAAE,OAAQ,EAAK,CACxB,CAEA,QAAS,CACP,OAAO,KAAK,MAAM,OAAS,iBAAA,EAAAG,EAAA,IAAA,CAAC,IAAD,CAAG,KAAK,SAAS,SAAA,wCAAyC,CAAA,EAAI,KAAK,MAAM,QACtG,CACF,EAGA,SAAgBK,EAAO,CACrB,UACA,QAIC,CACD,IAAMC,EAASC,EAAK,SAAW,IAAA,IAAa,OAAO,OAAOC,EAASD,EAAK,MAAM,EAAIC,EAAQD,EAAK,QAAU,IAAA,GAQzG,OAPIA,EAAK,QAAgB,iBAAA,EAAAP,EAAA,IAAA,CAAC,I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_apps","react_dom_client","WidgetBoundary","McpApp","Widget","view","widgets","mountMcpApp","element","root","app","disposed","terminal","connected","appVisible","render","fail","message","identify","name","widget","updateRefresh","enabled","applyContext","context","tool","ui","args","result","dispose"],"sources":["../../../src/components/McpApp.tsx"],"sourcesContent":["import type { PoMcpWidgetProps } from '@agimon-ai/po-core/web';\nimport {\n App,\n applyDocumentTheme,\n applyHostStyleVariables,\n type McpUiHostContext,\n} from '@modelcontextprotocol/ext-apps';\nimport { Component, type ComponentType, type ReactNode } from 'react';\nimport { createRoot } from 'react-dom/client';\n\ninterface View {\n readonly widget?: string;\n readonly props: PoMcpWidgetProps;\n readonly failure?: string;\n}\n\nclass WidgetBoundary extends Component<{ children: ReactNode }, { failed: boolean }> {\n state = { failed: false };\n\n static getDerivedStateFromError() {\n return { failed: true };\n }\n\n render() {\n return this.state.failed ? <p role=\"status\">The tool widget could not be rendered.</p> : this.props.children;\n }\n}\n\n/** The root only dispatches. Tool-specific presentation belongs to the contributing package. */\nexport function McpApp({\n widgets,\n view,\n}: {\n widgets: Readonly<Record<string, ComponentType<PoMcpWidgetProps>>>;\n view: View;\n}) {\n const Widget = view.widget !== undefined && Object.hasOwn(widgets, view.widget) ? widgets[view.widget] : undefined;\n if (view.failure) return <p role=\"status\">{view.failure}</p>;\n if (Widget === undefined)\n return (\n <p role=\"status\">\n {view.widget === undefined ? 'Waiting for tool information...' : 'No widget is available for this tool.'}\n </p>\n );\n return (\n <WidgetBoundary key={view.widget}>\n <Widget {...view.props} />\n </WidgetBoundary>\n );\n}\n\n/** Mounts one independently sandboxed invocation of the sync-generated widget registry. */\nexport async function mountMcpApp(widgets: Readonly<Record<string, ComponentType<PoMcpWidgetProps>>>): Promise<void> {\n const element = document.getElementById('root');\n if (element === null) throw new Error('Missing MCP app root');\n const root = createRoot(element);\n const app = new App({ name: 'po-tools', version: '1.0.0' }, {}, { autoResize: true });\n let disposed = false;\n let terminal = false;\n let connected = false;\n let appVisible = false;\n let view: View = { props: { toolName: '', args: {}, result: null, phase: 'connecting' } };\n\n const render = (): void => {\n if (!disposed) root.render(<McpApp widgets={widgets} view={view} />);\n };\n const fail = (message: string): void => {\n terminal = true;\n view = { ...view, failure: message };\n render();\n };\n const identify = (name: unknown, widget: unknown): boolean => {\n if (typeof name === 'string' && name.length > 0) {\n if (view.props.toolName && view.props.toolName !== name) {\n fail('The tool changed. Reopen this widget from the conversation.');\n return false;\n }\n view = { ...view, props: { ...view.props, toolName: name } };\n }\n if (typeof widget === 'string') {\n if (view.widget !== undefined && view.widget !== widget) {\n fail('The widget changed. Refresh the MCP connection.');\n return false;\n }\n view = { ...view, widget };\n }\n return true;\n };\n const updateRefresh = (): void => {\n const name = view.props.toolName;\n const enabled = connected && appVisible && !!app.getHostCapabilities()?.serverTools && name.length > 0;\n view = {\n ...view,\n props: {\n ...view.props,\n refresh: enabled\n ? async () => {\n if (disposed || name !== view.props.toolName || !appVisible)\n throw new Error('This widget is no longer active.');\n return app.callServerTool({ name, arguments: { ...view.props.args } });\n }\n : undefined,\n },\n };\n };\n const applyContext = (context: McpUiHostContext | undefined): void => {\n if (disposed || context === undefined) return;\n if (context.theme) {\n applyDocumentTheme(context.theme);\n document.documentElement.classList.toggle('dark', context.theme === 'dark');\n document.documentElement.dataset.theme = context.theme;\n }\n if (context.styles?.variables) applyHostStyleVariables(context.styles.variables);\n const tool = context.toolInfo?.tool;\n if (tool) {\n if (!identify(tool.name, tool._meta?.['po/widget'])) return;\n const ui = tool._meta?.ui as { visibility?: unknown } | undefined;\n appVisible = Array.isArray(ui?.visibility) && ui.visibility.includes('app');\n }\n updateRefresh();\n render();\n };\n\n app.ontoolinputpartial = ({ arguments: args }) => {\n if (disposed || terminal) return;\n view = { ...view, props: { ...view.props, args: args ?? {}, phase: 'preparing' } };\n render();\n };\n app.ontoolinput = ({ arguments: args }) => {\n if (disposed || terminal) return;\n view = { ...view, props: { ...view.props, args: args ?? {}, phase: 'running' } };\n render();\n };\n app.ontoolresult = (result) => {\n if (disposed || terminal) return;\n if (!identify(result._meta?.['po/toolName'], result._meta?.['po/widget'])) return;\n terminal = true;\n view = { ...view, props: { ...view.props, result, phase: 'result' } };\n updateRefresh();\n render();\n };\n app.ontoolcancelled = () => {\n if (disposed || terminal) return;\n terminal = true;\n view = { ...view, props: { ...view.props, phase: 'cancelled', result: null } };\n render();\n };\n app.onhostcontextchanged = applyContext;\n\n const dispose = (): void => {\n if (disposed) return;\n view = { ...view, failure: 'Tool view closed.' };\n render();\n disposed = true;\n window.removeEventListener('pagehide', dispose);\n setTimeout(() => {\n void app.close().catch(() => {});\n }, 0);\n };\n\n app.onteardown = () => {\n dispose();\n return {};\n };\n window.addEventListener('pagehide', dispose, { once: true });\n render();\n\n try {\n await app.connect();\n if (disposed) return;\n connected = true;\n applyContext(app.getHostContext());\n } catch {\n if (!disposed) fail('Could not connect to the app host. Reopen this widget in an MCP Apps-compatible client.');\n }\n}\n"],"mappings":"A,gIAgBA,IAAMO,EAAN,cAA6BP,EAAAA,SAAwD,CACnF,MAAQ,CAAE,OAAQ,EAAM,EAExB,OAAO,0BAA2B,CAChC,MAAO,CAAE,OAAQ,EAAK,CACxB,CAEA,QAAS,CACP,OAAO,KAAK,MAAM,OAAS,iBAAA,EAAAG,EAAA,IAAA,CAAC,IAAD,CAAG,KAAK,SAAS,SAAA,wCAAyC,CAAA,EAAI,KAAK,MAAM,QACtG,CACF,EAGA,SAAgBK,EAAO,CACrB,UACA,QAIC,CACD,IAAMC,EAASC,EAAK,SAAW,IAAA,IAAa,OAAO,OAAOC,EAASD,EAAK,MAAM,EAAIC,EAAQD,EAAK,QAAU,IAAA,GAQzG,OAPIA,EAAK,QAAgB,iBAAA,EAAAP,EAAA,IAAA,CAAC,IAAD,CAAG,KAAK,SAAU,SAAAO,EAAK,OAAW,CAAA,EACvDD,IAAW,IAAA,GAEX,iBAAA,EAAAN,EAAA,IAAA,CAAC,IAAD,CAAG,KAAK,SACL,SAAAO,EAAK,SAAW,IAAA,GAAY,kCAAoC,uC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