@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":"McpToolWidget.cjs","names":["react_jsx_runtime","McpToolFrame","failed","phase","result","title","error","children","fieldText","value","item","McpToolFields","values","fields","label","text","McpToolOutput","limit","truncated","nonText","block","part","remaining"],"sources":["../../../src/components/McpToolWidget.tsx"],"sourcesContent":["import type { PoMcpWidgetProps } from '@agimon-ai/po-core/mcpWidget';\nimport type { ReactNode } from 'react';\n\n/** Presentational primitives only. Each package chooses its own fields and result presentation. */\nexport function McpToolFrame({\n title,\n phase,\n result,\n error,\n children,\n}: Pick<PoMcpWidgetProps, 'phase' | 'result' | 'error'> & { title: string; children?: ReactNode }) {\n const failed = phase === 'error' || result?.isError === true;\n const status = failed\n ? 'Tool failed'\n : phase === 'result'\n ? 'Result received'\n : phase === 'cancelled'\n ? 'Tool cancelled'\n : phase === 'running'\n ? 'Running tool...'\n : phase === 'preparing'\n ? 'Preparing tool...'\n : 'Connecting to host...';\n return (\n <section className=\"min-w-0 rounded-md border border-po-border bg-po-bg p-4 text-base text-po-text\">\n <h1 className=\"m-0 break-words text-lg font-semibold\">{title}</h1>\n <p\n role=\"status\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n className={failed ? 'my-2 text-po-red' : 'my-2 text-po-dim'}\n >\n {error ?? status}\n </p>\n {children}\n </section>\n );\n}\n\nfunction fieldText(value: unknown): string | undefined {\n if (typeof value === 'string') return value.length > 500 ? `${value.slice(0, 500)}...` : value;\n if (typeof value === 'number' && Number.isFinite(value)) return String(value);\n if (typeof value === 'boolean') return String(value);\n if (Array.isArray(value) && value.every((item) => typeof item === 'string')) return fieldText(value.join(', '));\n return undefined;\n}\n\nexport function McpToolFields({ fields }: { fields: readonly (readonly [string, unknown])[] }) {\n const values = fields.flatMap(([label, value]) => {\n const text = fieldText(value);\n return text === undefined || text === '' ? [] : [{ label, text }];\n });\n if (values.length === 0) return null;\n return (\n <dl aria-label=\"Tool details\" className=\"my-3 flex min-w-0 flex-col gap-2\">\n {values.map(({ label, text }) => (\n <div key={label} className=\"flex min-w-0 flex-wrap gap-x-3 gap-y-1\">\n <dt className=\"text-sm text-po-dim\">{label}</dt>\n <dd className=\"m-0 min-w-0 whitespace-pre-wrap break-all text-sm\">{text}</dd>\n </div>\n ))}\n </dl>\n );\n}\n\nexport function McpToolOutput({ result }: Pick<PoMcpWidgetProps, 'result'>) {\n if (result === null) return null;\n const limit = 8000;\n let text = '';\n let truncated = false;\n let nonText = 0;\n for (const block of result.content ?? []) {\n if (block.type !== 'text') {\n nonText += 1;\n continue;\n }\n const part = `${text ? '\\n' : ''}${block.text}`;\n const remaining = Math.max(0, limit - text.length);\n truncated ||= part.length > remaining;\n text += part.slice(0, remaining);\n }\n if (!text && result.structuredContent) {\n const value = JSON.stringify(result.structuredContent, null, 2);\n text = value.slice(0, limit);\n truncated = value.length > limit;\n }\n return (\n <details open className=\"min-w-0 rounded-md border border-po-border-soft\">\n <summary className=\"cursor-pointer bg-po-panel p-3 text-sm focus-visible:outline\">Tool output</summary>\n <pre\n tabIndex={0}\n aria-label=\"Tool output preview\"\n className=\"m-0 max-h-72 overflow-auto whitespace-pre-wrap break-all p-3 font-mono text-sm\"\n >\n {text || (nonText ? 'Non-text result returned to the agent.' : 'No text output.')}\n </pre>\n {truncated || nonText ? (\n <p className=\"m-0 border-t border-po-border-soft p-3 text-sm text-po-dim\">\n {truncated ? 'Preview truncated. Full output remains in the tool result. ' : ''}\n {nonText ? `${nonText} non-text content item(s) returned to the agent.` : ''}\n </p>\n ) : null}\n </details>\n );\n}\n"],"mappings":"mCAIA,SAAgBC,EAAa,CAC3B,QACA,QACA,SACA,QACA,YACiG,CACjG,IAAMC,EAASC,IAAU,SAAWC,GAAQ,UAAY,GAYxD,MACE,iBAAA,EAAAJ,EAAA,KAAA,CAAC,UAAD,CAAS,UAAU,iFAAnB,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,KAAD,CAAI,UAAU,wCAAyC,SAAAK,CAAU,CAAA,EACjE,iBAAA,EAAAL,EAAA,IAAA,CAAC,IAAD,CACE,KAAK,SACL,YAAU,SACV,cAAY,OACZ,UAAWE,EAAS,mBAAqB,mBAExC,SAAAI,IApBQJ,EACX,cACAC,IAAU,SACR,kBACAA,IAAU,YACR,iBACAA,IAAU,UACR,kBACAA,IAAU,YACR,oBACA,wBAWL,CAAA,EACFI,CACM,
|
|
1
|
+
{"version":3,"file":"McpToolWidget.cjs","names":["react_jsx_runtime","McpToolFrame","failed","phase","result","title","error","children","fieldText","value","item","McpToolFields","values","fields","label","text","McpToolOutput","limit","truncated","nonText","block","part","remaining"],"sources":["../../../src/components/McpToolWidget.tsx"],"sourcesContent":["import type { PoMcpWidgetProps } from '@agimon-ai/po-core/mcpWidget';\nimport type { ReactNode } from 'react';\n\n/** Presentational primitives only. Each package chooses its own fields and result presentation. */\nexport function McpToolFrame({\n title,\n phase,\n result,\n error,\n children,\n}: Pick<PoMcpWidgetProps, 'phase' | 'result' | 'error'> & { title: string; children?: ReactNode }) {\n const failed = phase === 'error' || result?.isError === true;\n const status = failed\n ? 'Tool failed'\n : phase === 'result'\n ? 'Result received'\n : phase === 'cancelled'\n ? 'Tool cancelled'\n : phase === 'running'\n ? 'Running tool...'\n : phase === 'preparing'\n ? 'Preparing tool...'\n : 'Connecting to host...';\n return (\n <section className=\"min-w-0 rounded-md border border-po-border bg-po-bg p-4 text-base text-po-text\">\n <h1 className=\"m-0 break-words text-lg font-semibold\">{title}</h1>\n <p\n role=\"status\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n className={failed ? 'my-2 text-po-red' : 'my-2 text-po-dim'}\n >\n {error ?? status}\n </p>\n {children}\n </section>\n );\n}\n\nfunction fieldText(value: unknown): string | undefined {\n if (typeof value === 'string') return value.length > 500 ? `${value.slice(0, 500)}...` : value;\n if (typeof value === 'number' && Number.isFinite(value)) return String(value);\n if (typeof value === 'boolean') return String(value);\n if (Array.isArray(value) && value.every((item) => typeof item === 'string')) return fieldText(value.join(', '));\n return undefined;\n}\n\nexport function McpToolFields({ fields }: { fields: readonly (readonly [string, unknown])[] }) {\n const values = fields.flatMap(([label, value]) => {\n const text = fieldText(value);\n return text === undefined || text === '' ? [] : [{ label, text }];\n });\n if (values.length === 0) return null;\n return (\n <dl aria-label=\"Tool details\" className=\"my-3 flex min-w-0 flex-col gap-2\">\n {values.map(({ label, text }) => (\n <div key={label} className=\"flex min-w-0 flex-wrap gap-x-3 gap-y-1\">\n <dt className=\"text-sm text-po-dim\">{label}</dt>\n <dd className=\"m-0 min-w-0 whitespace-pre-wrap break-all text-sm\">{text}</dd>\n </div>\n ))}\n </dl>\n );\n}\n\nexport function McpToolOutput({ result }: Pick<PoMcpWidgetProps, 'result'>) {\n if (result === null) return null;\n const limit = 8000;\n let text = '';\n let truncated = false;\n let nonText = 0;\n for (const block of result.content ?? []) {\n if (block.type !== 'text') {\n nonText += 1;\n continue;\n }\n const part = `${text ? '\\n' : ''}${block.text}`;\n const remaining = Math.max(0, limit - text.length);\n truncated ||= part.length > remaining;\n text += part.slice(0, remaining);\n }\n if (!text && result.structuredContent) {\n const value = JSON.stringify(result.structuredContent, null, 2);\n text = value.slice(0, limit);\n truncated = value.length > limit;\n }\n return (\n <details open className=\"min-w-0 rounded-md border border-po-border-soft\">\n <summary className=\"cursor-pointer bg-po-panel p-3 text-sm focus-visible:outline\">Tool output</summary>\n <pre\n tabIndex={0}\n aria-label=\"Tool output preview\"\n className=\"m-0 max-h-72 overflow-auto whitespace-pre-wrap break-all p-3 font-mono text-sm\"\n >\n {text || (nonText ? 'Non-text result returned to the agent.' : 'No text output.')}\n </pre>\n {truncated || nonText ? (\n <p className=\"m-0 border-t border-po-border-soft p-3 text-sm text-po-dim\">\n {truncated ? 'Preview truncated. Full output remains in the tool result. ' : ''}\n {nonText ? `${nonText} non-text content item(s) returned to the agent.` : ''}\n </p>\n ) : null}\n </details>\n );\n}\n"],"mappings":"A,mCAIA,SAAgBC,EAAa,CAC3B,QACA,QACA,SACA,QACA,YACiG,CACjG,IAAMC,EAASC,IAAU,SAAWC,GAAQ,UAAY,GAYxD,MACE,iBAAA,EAAAJ,EAAA,KAAA,CAAC,UAAD,CAAS,UAAU,iFAAnB,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,KAAD,CAAI,UAAU,wCAAyC,SAAAK,CAAU,CAAA,EACjE,iBAAA,EAAAL,EAAA,IAAA,CAAC,IAAD,CACE,KAAK,SACL,YAAU,SACV,cAAY,OACZ,UAAWE,EAAS,mBAAqB,mBAExC,SAAAI,IApBQJ,EACX,cACAC,IAAU,SACR,kBACAA,IAAU,YACR,iBACAA,IAAU,UACR,kBACAA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,EAAM,OAAS,OAAQ,CACzB,GAAW,EACX,QACF,CACA,IAAMC,EAAO,GAAGN,EAAO;EAAO,KAAKK,EAAM,OACnCE,EAAY,KAAK,IAAI,EAAGL,EAAQF,EAAK,MAAM,EACjD,IAAcM,EAAK,OAASC,EAC5B,GAAQD,EAAK,MAAM,EAAGC,CAAS,CACjC,CACA,GAAI,CAACP,GAAQX,EAAO,kBAAmB,CACrC,IAAMK,EAAQ,KAAK,UAAUL,EAAO,kBAAmB,KAAM,CAAC,EAC9D,EAAOK,EAAM,MAAM,EAAGQ,CAAK,EAC3B,EAAYR,EAAM,OAASQ,CAC7B,CACA,MACE,iBAAA,EAAAjB,EAAA,KAAA,CAAC,UAAD,CAAS,KAAA,GAAK,UAAU,kDAAxB,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,UAAD,CAAS,UAAU,+DAA+D,SAAA,aAAoB,CAAA,EACtG,iBAAA,EAAAA,EAAA,IAAA,CAAC,MAAD,CACE,SAAU,EACV,aAAW,sBACX,UAAU,iFAET,SAAAe,IAASI,EAAU,yCAA2C,kBAC5D,CAAA,EACJD,GAAaC,EACZ,iBAAA,EAAAnB,EAAA,KAAA,CAAC,IAAD,CAAG,UAAU,6DAAb,SAAA,CACGkB,EAAY,8DAAgE,GAC5EC,EAAU,GAAGA,EAAQ,kDAAoD,EACzE,CACD,CAAA,EAAA,IACG,C,EAEb,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaPreview.cjs","names":["boundedMediaTime","useRef","cn","mediaKindOf","PdfPreview","Badge","FileIcon","require_cn","require_Badge","require_media","require_mediaPlayback","require_PdfPreview","react_jsx_runtime","react","lucide_react","FRAME","mediaPlaybackState","video","mediaPreviewController","videoRef","seconds","frameMetadataRef","metadata","timeSeconds","canvas","context","blob","resolve","type","quality","VideoPreview","reportState","onPlaybackStateChange","reportStateRef","controllerRef","request","report","videoControls","testId","className","MediaPreview","resolved","kind","path","name","raster","contentType","image","src","pdfControllerRef"],"sources":["../../../src/components/MediaPreview.tsx"],"sourcesContent":["import { useEffect, useImperativeHandle, useRef } from 'react';\n\nimport { FileIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { mediaKindOf } from '../lib/media';\nimport { boundedMediaTime } from '../lib/mediaPlayback';\nimport type { MediaKind } from '../types/editor';\nimport { Badge } from './Badge';\nimport { PdfPreview, type PdfPreviewController } from './PdfPreview';\n/**\n * A file the browser can show but not edit.\n *\n * It renders bytes a server is already serving, so the caller supplies the\n * URL and this decides only which element reads it. Everything the browser\n * cannot render is a download rather than a converted approximation: a `.docx`\n * turned into HTML is a different document, and offering to edit that one\n * would be offering to overwrite the real one with it.\n */\n\nexport interface MediaPlaybackState {\n playing: boolean;\n currentTime: number;\n duration: number;\n}\n\nexport interface MediaIntrinsicSize {\n width: number;\n height: number;\n}\n\nexport interface MediaFrameMetadata {\n mediaTime: number;\n presentedFrames?: number;\n}\n\nexport interface MediaFrameCapture {\n blob: Blob;\n width: number;\n height: number;\n timeSeconds: number;\n metadata?: MediaFrameMetadata;\n}\n\nexport interface MediaPreviewController {\n play: () => Promise<void>;\n pause: () => void;\n seek: (seconds: number) => void;\n getState: () => MediaPlaybackState;\n isFrameReady: () => boolean;\n getIntrinsicSize: () => MediaIntrinsicSize | null;\n captureFrame: (type?: 'image/png' | 'image/jpeg', quality?: number) => Promise<MediaFrameCapture | null>;\n}\n\nexport interface MediaPreviewProps {\n /** Where the bytes are served from. */\n src: string;\n /** The file's path, used for the accessible name and the download name. */\n path: string;\n /** Overrides the kind inferred from the path, for a server that knows better. */\n kind?: MediaKind;\n /** The fetched MIME type, required before opening image bytes as a document. */\n contentType?: string;\n className?: string;\n videoControls?: boolean;\n 'data-testid'?: string;\n /** Video-only controller. It is assigned while the video element is mounted. */\n controllerRef?: import('react').Ref<MediaPreviewController>;\n /** PDF-only page and geometry controller. */\n pdfControllerRef?: import('react').Ref<PdfPreviewController>;\n /** Reports browser playback state changes for video previews. */\n onPlaybackStateChange?: (state: MediaPlaybackState) => void;\n}\n\nconst FRAME = 'max-w-full rounded border border-po-border bg-po-deep';\n\ninterface VideoPreviewProps {\n src: string;\n className?: string;\n testId?: string;\n videoControls?: boolean;\n controllerRef?: import('react').Ref<MediaPreviewController>;\n onPlaybackStateChange?: (state: MediaPlaybackState) => void;\n}\n\nexport function mediaPlaybackState(video: HTMLVideoElement): MediaPlaybackState {\n return {\n playing: !video.paused && !video.ended,\n currentTime: video.currentTime,\n duration: Number.isFinite(video.duration) ? video.duration : 0,\n };\n}\n\nexport function mediaPreviewController(\n videoRef: { readonly current: HTMLVideoElement | null },\n frameMetadataRef: { readonly current: MediaFrameMetadata | undefined } = { current: undefined },\n): MediaPreviewController {\n return {\n play: async () => {\n const video = videoRef.current;\n if (video !== null) await video.play();\n },\n pause: () => videoRef.current?.pause(),\n seek: (seconds) => {\n const video = videoRef.current;\n if (video !== null) video.currentTime = boundedMediaTime(seconds, video.duration);\n },\n getState: () => {\n const video = videoRef.current;\n return video === null ? { playing: false, currentTime: 0, duration: 0 } : mediaPlaybackState(video);\n },\n isFrameReady: () => {\n const video = videoRef.current;\n return (\n video !== null &&\n !video.seeking &&\n video.readyState >= 2 &&\n (video.requestVideoFrameCallback === undefined || frameMetadataRef.current !== undefined)\n );\n },\n getIntrinsicSize: () => {\n const video = videoRef.current;\n return video === null || video.videoWidth <= 0 || video.videoHeight <= 0\n ? null\n : { width: video.videoWidth, height: video.videoHeight };\n },\n captureFrame: async (type = 'image/png', quality) => {\n const video = videoRef.current;\n if (video === null || video.videoWidth <= 0 || video.videoHeight <= 0 || video.seeking) return null;\n const metadata = frameMetadataRef.current === undefined ? undefined : { ...frameMetadataRef.current };\n const timeSeconds = metadata?.mediaTime ?? video.currentTime;\n const canvas = document.createElement('canvas');\n canvas.width = video.videoWidth;\n canvas.height = video.videoHeight;\n const context = canvas.getContext('2d');\n if (context === null) return null;\n context.drawImage(video, 0, 0, canvas.width, canvas.height);\n const blob = await new Promise<Blob | null>((resolve) => canvas.toBlob(resolve, type, quality));\n if (blob === null) return null;\n return {\n blob,\n width: canvas.width,\n height: canvas.height,\n timeSeconds,\n ...(metadata === undefined ? {} : { metadata }),\n };\n },\n };\n}\n\nfunction VideoPreview({\n src,\n className,\n testId,\n controllerRef,\n onPlaybackStateChange,\n videoControls = true,\n}: VideoPreviewProps) {\n const videoRef = useRef<HTMLVideoElement>(null);\n const frameMetadataRef = useRef<MediaFrameMetadata | undefined>(undefined);\n const reportState = () => {\n const video = videoRef.current;\n if (video !== null) onPlaybackStateChange?.(mediaPlaybackState(video));\n };\n const reportStateRef = useRef(reportState);\n useEffect(() => {\n reportStateRef.current = reportState;\n });\n useImperativeHandle(controllerRef, () => mediaPreviewController(videoRef, frameMetadataRef), []);\n useEffect(() => {\n const video = videoRef.current;\n if (video === null || video.requestVideoFrameCallback === undefined) return;\n let request = 0;\n const report: VideoFrameRequestCallback = (_now, metadata) => {\n frameMetadataRef.current = {\n mediaTime: metadata.mediaTime,\n ...(Number.isFinite(metadata.presentedFrames) ? { presentedFrames: metadata.presentedFrames } : {}),\n };\n reportStateRef.current();\n request = video.requestVideoFrameCallback(report);\n };\n request = video.requestVideoFrameCallback(report);\n return () => video.cancelVideoFrameCallback(request);\n }, []);\n return (\n <video\n ref={videoRef}\n src={src}\n controls={videoControls}\n playsInline\n preload=\"metadata\"\n data-testid={testId}\n data-kind=\"video\"\n className={cn(FRAME, 'max-h-[36rem]', className)}\n onPlay={reportState}\n onPause={reportState}\n onTimeUpdate={reportState}\n onDurationChange={reportState}\n onEnded={reportState}\n onLoadedMetadata={reportState}\n onLoadedData={reportState}\n onSeeking={() => {\n frameMetadataRef.current = undefined;\n reportState();\n }}\n onSeeked={reportState}\n >\n <track kind=\"captions\" />\n </video>\n );\n}\n\nexport function MediaPreview({\n src,\n path,\n kind,\n contentType,\n className,\n controllerRef,\n pdfControllerRef,\n onPlaybackStateChange,\n videoControls,\n 'data-testid': testId,\n}: MediaPreviewProps) {\n const resolved = kind ?? mediaKindOf(path);\n const name = path.split('/').at(-1) ?? path;\n\n if (resolved === 'image') {\n // A symlink's target determines the MIME type, so the path cannot establish SVG safety.\n const raster = /^image\\/(?:avif|bmp|gif|jpeg|png|webp)$/i.test(contentType ?? '');\n const image = <img src={src} alt={path} className={cn(FRAME, 'max-h-[36rem]', className)} />;\n return raster ? (\n <a href={src} target=\"_blank\" rel=\"noreferrer\" data-testid={testId} data-kind={resolved}>\n {image}\n </a>\n ) : (\n <span data-testid={testId} data-kind={resolved}>\n {image}\n </span>\n );\n }\n if (resolved === 'video') {\n return (\n <VideoPreview\n src={src}\n className={className}\n controllerRef={controllerRef}\n onPlaybackStateChange={onPlaybackStateChange}\n testId={testId}\n videoControls={videoControls}\n />\n );\n }\n if (resolved === 'pdf') {\n return (\n <PdfPreview src={src} path={path} controllerRef={pdfControllerRef} data-testid={testId} className={className} />\n );\n }\n return (\n <Badge\n asChild\n size=\"md\"\n data-testid={testId}\n data-kind={resolved}\n className={cn('self-start bg-po-panel text-po-text hover:border-po-blue/50', className)}\n >\n <a href={src} download={name}>\n <FileIcon className=\"h-3 w-3 shrink-0 text-po-faint\" />\n download {name}\n </a>\n </Badge>\n );\n}\n"],"mappings":"0QAyEA,MAAMe,EAAQ,wDAWd,SAAgBC,EAAmB,EAA6C,CAC9E,MAAO,CACL,QAAS,CAACC,EAAM,QAAU,CAACA,EAAM,MACjC,YAAaA,EAAM,YACnB,SAAU,OAAO,SAASA,EAAM,QAAQ,EAAIA,EAAM,SAAW,CAC/D,CACF,CAEA,SAAgBC,EACd,EACA,EAAyE,CAAE,QAAS,IAAA,EAAU,EACtE,CACxB,MAAO,CACL,KAAM,SAAY,CAChB,IAAMD,EAAQE,EAAS,QACnBF,IAAU,MAAM,MAAMA,EAAM,KAAK,CACvC,EACA,UAAaE,EAAS,SAAS,MAAM,EACrC,KAAO,GAAY,CACjB,IAAMF,EAAQE,EAAS,QACnBF,IAAU,OAAM,EAAM,YAAcjB,EAAAA,iBAAiBoB,EAASH,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B,SAAA,CACE,iBAAA,EAAAhC,EAAA,IAAA,CAACN,EAAAA,SAAD,CAAU,UAAU,gCAAkC,CAAA,EAAC,YAC7CsC,CACT,GACE,CAAA,CAEX"}
|
|
1
|
+
{"version":3,"file":"MediaPreview.cjs","names":["boundedMediaTime","useRef","cn","mediaKindOf","PdfPreview","Badge","FileIcon","require_cn","require_Badge","require_media","require_mediaPlayback","require_PdfPreview","react_jsx_runtime","react","lucide_react","FRAME","mediaPlaybackState","video","mediaPreviewController","videoRef","seconds","frameMetadataRef","metadata","timeSeconds","canvas","context","blob","resolve","type","quality","VideoPreview","reportState","onPlaybackStateChange","reportStateRef","controllerRef","request","report","videoControls","testId","className","MediaPreview","resolved","kind","path","name","raster","contentType","image","src","pdfControllerRef"],"sources":["../../../src/components/MediaPreview.tsx"],"sourcesContent":["import { useEffect, useImperativeHandle, useRef } from 'react';\n\nimport { FileIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { mediaKindOf } from '../lib/media';\nimport { boundedMediaTime } from '../lib/mediaPlayback';\nimport type { MediaKind } from '../types/editor';\nimport { Badge } from './Badge';\nimport { PdfPreview, type PdfPreviewController } from './PdfPreview';\n/**\n * A file the browser can show but not edit.\n *\n * It renders bytes a server is already serving, so the caller supplies the\n * URL and this decides only which element reads it. Everything the browser\n * cannot render is a download rather than a converted approximation: a `.docx`\n * turned into HTML is a different document, and offering to edit that one\n * would be offering to overwrite the real one with it.\n */\n\nexport interface MediaPlaybackState {\n playing: boolean;\n currentTime: number;\n duration: number;\n}\n\nexport interface MediaIntrinsicSize {\n width: number;\n height: number;\n}\n\nexport interface MediaFrameMetadata {\n mediaTime: number;\n presentedFrames?: number;\n}\n\nexport interface MediaFrameCapture {\n blob: Blob;\n width: number;\n height: number;\n timeSeconds: number;\n metadata?: MediaFrameMetadata;\n}\n\nexport interface MediaPreviewController {\n play: () => Promise<void>;\n pause: () => void;\n seek: (seconds: number) => void;\n getState: () => MediaPlaybackState;\n isFrameReady: () => boolean;\n getIntrinsicSize: () => MediaIntrinsicSize | null;\n captureFrame: (type?: 'image/png' | 'image/jpeg', quality?: number) => Promise<MediaFrameCapture | null>;\n}\n\nexport interface MediaPreviewProps {\n /** Where the bytes are served from. */\n src: string;\n /** The file's path, used for the accessible name and the download name. */\n path: string;\n /** Overrides the kind inferred from the path, for a server that knows better. */\n kind?: MediaKind;\n /** The fetched MIME type, required before opening image bytes as a document. */\n contentType?: string;\n className?: string;\n videoControls?: boolean;\n 'data-testid'?: string;\n /** Video-only controller. It is assigned while the video element is mounted. */\n controllerRef?: import('react').Ref<MediaPreviewController>;\n /** PDF-only page and geometry controller. */\n pdfControllerRef?: import('react').Ref<PdfPreviewController>;\n /** Reports browser playback state changes for video previews. */\n onPlaybackStateChange?: (state: MediaPlaybackState) => void;\n}\n\nconst FRAME = 'max-w-full rounded border border-po-border bg-po-deep';\n\ninterface VideoPreviewProps {\n src: string;\n className?: string;\n testId?: string;\n videoControls?: boolean;\n controllerRef?: import('react').Ref<MediaPreviewController>;\n onPlaybackStateChange?: (state: MediaPlaybackState) => void;\n}\n\nexport function mediaPlaybackState(video: HTMLVideoElement): MediaPlaybackState {\n return {\n playing: !video.paused && !video.ended,\n currentTime: video.currentTime,\n duration: Number.isFinite(video.duration) ? video.duration : 0,\n };\n}\n\nexport function mediaPreviewController(\n videoRef: { readonly current: HTMLVideoElement | null },\n frameMetadataRef: { readonly current: MediaFrameMetadata | undefined } = { current: undefined },\n): MediaPreviewController {\n return {\n play: async () => {\n const video = videoRef.current;\n if (video !== null) await video.play();\n },\n pause: () => videoRef.current?.pause(),\n seek: (seconds) => {\n const video = videoRef.current;\n if (video !== null) video.currentTime = boundedMediaTime(seconds, video.duration);\n },\n getState: () => {\n const video = videoRef.current;\n return video === null ? { playing: false, currentTime: 0, duration: 0 } : mediaPlaybackState(video);\n },\n isFrameReady: () => {\n const video = videoRef.current;\n return (\n video !== null &&\n !video.seeking &&\n video.readyState >= 2 &&\n (video.requestVideoFrameCallback === undefined || frameMetadataRef.current !== undefined)\n );\n },\n getIntrinsicSize: () => {\n const video = videoRef.current;\n return video === null || video.videoWidth <= 0 || video.videoHeight <= 0\n ? null\n : { width: video.videoWidth, height: video.videoHeight };\n },\n captureFrame: async (type = 'image/png', quality) => {\n const video = videoRef.current;\n if (video === null || video.videoWidth <= 0 || video.videoHeight <= 0 || video.seeking) return null;\n const metadata = frameMetadataRef.current === undefined ? undefined : { ...frameMetadataRef.current };\n const timeSeconds = metadata?.mediaTime ?? video.currentTime;\n const canvas = document.createElement('canvas');\n canvas.width = video.videoWidth;\n canvas.height = video.videoHeight;\n const context = canvas.getContext('2d');\n if (context === null) return null;\n context.drawImage(video, 0, 0, canvas.width, canvas.height);\n const blob = await new Promise<Blob | null>((resolve) => canvas.toBlob(resolve, type, quality));\n if (blob === null) return null;\n return {\n blob,\n width: canvas.width,\n height: canvas.height,\n timeSeconds,\n ...(metadata === undefined ? {} : { metadata }),\n };\n },\n };\n}\n\nfunction VideoPreview({\n src,\n className,\n testId,\n controllerRef,\n onPlaybackStateChange,\n videoControls = true,\n}: VideoPreviewProps) {\n const videoRef = useRef<HTMLVideoElement>(null);\n const frameMetadataRef = useRef<MediaFrameMetadata | undefined>(undefined);\n const reportState = () => {\n const video = videoRef.current;\n if (video !== null) onPlaybackStateChange?.(mediaPlaybackState(video));\n };\n const reportStateRef = useRef(reportState);\n useEffect(() => {\n reportStateRef.current = reportState;\n });\n useImperativeHandle(controllerRef, () => mediaPreviewController(videoRef, frameMetadataRef), []);\n useEffect(() => {\n const video = videoRef.current;\n if (video === null || video.requestVideoFrameCallback === undefined) return;\n let request = 0;\n const report: VideoFrameRequestCallback = (_now, metadata) => {\n frameMetadataRef.current = {\n mediaTime: metadata.mediaTime,\n ...(Number.isFinite(metadata.presentedFrames) ? { presentedFrames: metadata.presentedFrames } : {}),\n };\n reportStateRef.current();\n request = video.requestVideoFrameCallback(report);\n };\n request = video.requestVideoFrameCallback(report);\n return () => video.cancelVideoFrameCallback(request);\n }, []);\n return (\n <video\n ref={videoRef}\n src={src}\n controls={videoControls}\n playsInline\n preload=\"metadata\"\n data-testid={testId}\n data-kind=\"video\"\n className={cn(FRAME, 'max-h-[36rem]', className)}\n onPlay={reportState}\n onPause={reportState}\n onTimeUpdate={reportState}\n onDurationChange={reportState}\n onEnded={reportState}\n onLoadedMetadata={reportState}\n onLoadedData={reportState}\n onSeeking={() => {\n frameMetadataRef.current = undefined;\n reportState();\n }}\n onSeeked={reportState}\n >\n <track kind=\"captions\" />\n </video>\n );\n}\n\nexport function MediaPreview({\n src,\n path,\n kind,\n contentType,\n className,\n controllerRef,\n pdfControllerRef,\n onPlaybackStateChange,\n videoControls,\n 'data-testid': testId,\n}: MediaPreviewProps) {\n const resolved = kind ?? mediaKindOf(path);\n const name = path.split('/').at(-1) ?? path;\n\n if (resolved === 'image') {\n // A symlink's target determines the MIME type, so the path cannot establish SVG safety.\n const raster = /^image\\/(?:avif|bmp|gif|jpeg|png|webp)$/i.test(contentType ?? '');\n const image = <img src={src} alt={path} className={cn(FRAME, 'max-h-[36rem]', className)} />;\n return raster ? (\n <a href={src} target=\"_blank\" rel=\"noreferrer\" data-testid={testId} data-kind={resolved}>\n {image}\n </a>\n ) : (\n <span data-testid={testId} data-kind={resolved}>\n {image}\n </span>\n );\n }\n if (resolved === 'video') {\n return (\n <VideoPreview\n src={src}\n className={className}\n controllerRef={controllerRef}\n onPlaybackStateChange={onPlaybackStateChange}\n testId={testId}\n videoControls={videoControls}\n />\n );\n }\n if (resolved === 'pdf') {\n return (\n <PdfPreview src={src} path={path} controllerRef={pdfControllerRef} data-testid={testId} className={className} />\n );\n }\n return (\n <Badge\n asChild\n size=\"md\"\n data-testid={testId}\n data-kind={resolved}\n className={cn('self-start bg-po-panel text-po-text hover:border-po-blue/50', className)}\n >\n <a href={src} download={name}>\n <FileIcon className=\"h-3 w-3 shrink-0 text-po-faint\" />\n download {name}\n </a>\n </Badge>\n );\n}\n"],"mappings":"A,0QAyEA,MAAMe,EAAQ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BA,OAjBIN,IAAa,QAEb,iBAAA,EAAA7B,EAAA,IAAA,CAACkB,EAAD,CACO,MACM,YACI,gBACQ,wBACf,SACO,eAChB,CAAA,EAGDW,IAAa,MAEb,iBAAA,EAAA7B,EAAA,IAAA,CAACR,EAAAA,WAAD,CAAiB,MAAW,OAAM,cAAe6C,EAAkB,cAAaX,EAAmB,WAAY,CAAA,EAIjH,iBAAA,EAAA1B,EAAA,IAAA,CAACP,EAAAA,MAAD,CACE,QAAA,GACA,KAAK,KACL,cAAaiC,EACb,YAAWG,EACX,UAAWvC,EAAAA,GAAG,8DAA+DqC,CAAS,EAEtF,SAAA,iBAAA,EAAA3B,EAAA,KAAA,CAAC,IAAD,CAAG,KAAMoC,EAAK,SAAUJ,EAAxB,SAAA,CACE,iBAAA,EAAAhC,EAAA,IAAA,CAACN,EAAAA,SAAD,CAAU,UAAU,gCAAkC,CAAA,EAAC,YAC7CsC,CACT,C,EACE,CAAA,CAEX,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("./Button.cjs"),t=require("./Dialog.cjs");let n=require("react/jsx-runtime"),r=require("react");const i={zoom:1,x:0,y:0};function a({media:t}){let[a,o]=(0,r.useState)(i),s=(0,r.useRef)(null),c=(0,r.useRef)(void 0),l=(e,t)=>o(n=>{let r=Math.min(8,Math.max(.25,e)),i=s.current?.getBoundingClientRect();if(i===void 0||t===void 0)return{...n,zoom:r};let a=t.x-(i.left+i.width/2),o=t.y-(i.top+i.height/2),c=r/n.zoom;return{zoom:r,x:a-(a-n.x)*c,y:o-(o-n.y)*c}});return/* @__PURE__ */ (0,n.jsxs)(n.Fragment,{children:[/* @__PURE__ */ (0,n.jsx)(`div`,{ref:s,"data-testid":`media-viewer-canvas`,tabIndex:0,"aria-label":`${t.title}. Drag to pan, scroll or press plus and minus to zoom, 0 to fit.`,className:`relative min-h-0 flex-1 cursor-grab touch-none overflow-hidden bg-po-deep outline-none focus-visible:ring-2 focus-visible:ring-po-blue active:cursor-grabbing`,onWheel:e=>l(a.zoom*(e.deltaY<0?1.15:1/1.15),{x:e.clientX,y:e.clientY}),onPointerDown:e=>{e.button===0&&(c.current={x:e.clientX,y:e.clientY,from:a},e.currentTarget.setPointerCapture(e.pointerId))},onPointerMove:e=>{let t=c.current;t!==void 0&&o({...t.from,x:t.from.x+e.clientX-t.x,y:t.from.y+e.clientY-t.y})},onPointerUp:()=>c.current=void 0,onPointerCancel:()=>c.current=void 0,onKeyDown:e=>{if(e.key===`+`||e.key===`=`)l(a.zoom*1.5);else if(e.key===`-`)l(a.zoom/1.5);else if(e.key===`0`)o(i);else return;e.preventDefault()},children:/* @__PURE__ */ (0,n.jsx)(`img`,{src:t.url,alt:t.title,draggable:!1,className:`absolute top-1/2 left-1/2 max-h-full max-w-full select-none`,style:{transform:`translate(calc(-50% + ${String(a.x)}px), calc(-50% + ${String(a.y)}px)) scale(${String(a.zoom)})`}})}),/* @__PURE__ */ (0,n.jsxs)(`footer`,{className:`flex shrink-0 items-center gap-2 border-t border-po-border bg-po-bg px-3 py-1.5`,children:[/* @__PURE__ */ (0,n.jsxs)(`div`,{role:`group`,"aria-label":`Zoom`,className:`flex items-center rounded-md border border-po-border`,children:[/* @__PURE__ */ (0,n.jsx)(e.Button,{size:`sm`,variant:`ghost`,"aria-label":`Zoom out`,onClick:()=>l(a.zoom/1.5),children:`−`}),/* @__PURE__ */ (0,n.jsxs)(`output`,{className:`flex min-w-14 justify-center text-sm tabular-nums text-po-text`,children:[Math.round(a.zoom*100),`%`]}),/* @__PURE__ */ (0,n.jsx)(e.Button,{size:`sm`,variant:`ghost`,"aria-label":`Zoom in`,onClick:()=>l(a.zoom*1.5),children:`+`})]}),/* @__PURE__ */ (0,n.jsx)(e.Button,{size:`sm`,variant:`outline`,onClick:()=>o(i),children:`Fit`}),/* @__PURE__ */ (0,n.jsx)(`span`,{className:`ml-auto truncate text-sm text-po-dim`,children:t.sourcePath??t.documentPath??``})]})]})}function o({media:e,onClose:r,review:i}){return/* @__PURE__ */ (0,n.jsx)(t.Dialog,{open:e!==void 0,onOpenChange:e=>e?void 0:r(),children:e===void 0?null:/* @__PURE__ */ (0,n.jsxs)(t.DialogContent,{"data-testid":`media-viewer`,className:`h-[calc(100dvh-24px)] w-[calc(100vw-24px)]`,children:[/* @__PURE__ */ (0,n.jsxs)(t.DialogHeader,{dismissible:!0,closeLabel:`Close viewer`,children:[/* @__PURE__ */ (0,n.jsx)(t.DialogTitle,{className:`min-w-0 truncate text-base`,children:e.title}),/* @__PURE__ */ (0,n.jsxs)(t.DialogDescription,{className:`sr-only`,children:[e.kind===`mermaid`?`Mermaid diagram`:`Image`,` opened full screen.`]})]}),i??/* @__PURE__ */ (0,n.jsx)(a,{media:e},e.url)]})})}exports.MediaViewerDialog=o,exports.PanZoom=a;
|
|
2
|
+
//# sourceMappingURL=MediaViewerDialog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaViewerDialog.cjs","names":["useState","useRef","Button","Dialog","DialogContent","DialogHeader","DialogTitle","DialogDescription","require_Button","require_Dialog","react_jsx_runtime","react","FIT","PanZoom","view","setView","host","drag","zoomTo","zoom","requested","bounds","at","current","px","py","ratio","media","event","start","MediaViewerDialog","open","onClose","review"],"sources":["../../../src/components/MediaViewerDialog.tsx"],"sourcesContent":["import { useRef, useState, type ReactNode } from 'react';\n\nimport type { MarkdownMedia } from '../lib/markdownMedia';\nimport { Button } from './Button';\nimport { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from './Dialog';\n\nconst MIN_ZOOM = 0.25;\nconst MAX_ZOOM = 8;\n\ninterface View {\n zoom: number;\n x: number;\n y: number;\n}\n\nconst FIT: View = { zoom: 1, x: 0, y: 0 };\n\n/** Pan by dragging, zoom with the wheel or the footer; the picture starts fitted to the view. */\nexport function PanZoom({ media }: { media: MarkdownMedia }) {\n const [view, setView] = useState<View>(FIT);\n const host = useRef<HTMLDivElement>(null);\n const drag = useRef<{ x: number; y: number; from: View } | undefined>(undefined);\n // Keeps the point under `at` (client coordinates) fixed while the zoom changes.\n const zoomTo = (requested: number, at?: { x: number; y: number }) =>\n setView((current) => {\n const zoom = Math.min(MAX_ZOOM, Math.max(MIN_ZOOM, requested));\n const bounds = host.current?.getBoundingClientRect();\n if (bounds === undefined || at === undefined) return { ...current, zoom };\n const px = at.x - (bounds.left + bounds.width / 2);\n const py = at.y - (bounds.top + bounds.height / 2);\n const ratio = zoom / current.zoom;\n return { zoom, x: px - (px - current.x) * ratio, y: py - (py - current.y) * ratio };\n });\n return (\n <>\n <div\n ref={host}\n data-testid=\"media-viewer-canvas\"\n tabIndex={0}\n aria-label={`${media.title}. Drag to pan, scroll or press plus and minus to zoom, 0 to fit.`}\n className=\"relative min-h-0 flex-1 cursor-grab touch-none overflow-hidden bg-po-deep outline-none focus-visible:ring-2 focus-visible:ring-po-blue active:cursor-grabbing\"\n onWheel={(event) =>\n zoomTo(view.zoom * (event.deltaY < 0 ? 1.15 : 1 / 1.15), { x: event.clientX, y: event.clientY })\n }\n onPointerDown={(event) => {\n if (event.button !== 0) return;\n drag.current = { x: event.clientX, y: event.clientY, from: view };\n event.currentTarget.setPointerCapture(event.pointerId);\n }}\n onPointerMove={(event) => {\n const start = drag.current;\n if (start === undefined) return;\n setView({\n ...start.from,\n x: start.from.x + event.clientX - start.x,\n y: start.from.y + event.clientY - start.y,\n });\n }}\n onPointerUp={() => (drag.current = undefined)}\n onPointerCancel={() => (drag.current = undefined)}\n onKeyDown={(event) => {\n if (event.key === '+' || event.key === '=') zoomTo(view.zoom * 1.5);\n else if (event.key === '-') zoomTo(view.zoom / 1.5);\n else if (event.key === '0') setView(FIT);\n else return;\n event.preventDefault();\n }}\n >\n <img\n src={media.url}\n alt={media.title}\n draggable={false}\n className=\"absolute top-1/2 left-1/2 max-h-full max-w-full select-none\"\n style={{\n transform: `translate(calc(-50% + ${String(view.x)}px), calc(-50% + ${String(view.y)}px)) scale(${String(view.zoom)})`,\n }}\n />\n </div>\n <footer className=\"flex shrink-0 items-center gap-2 border-t border-po-border bg-po-bg px-3 py-1.5\">\n <div role=\"group\" aria-label=\"Zoom\" className=\"flex items-center rounded-md border border-po-border\">\n <Button size=\"sm\" variant=\"ghost\" aria-label=\"Zoom out\" onClick={() => zoomTo(view.zoom / 1.5)}>\n −\n </Button>\n <output className=\"flex min-w-14 justify-center text-sm tabular-nums text-po-text\">\n {Math.round(view.zoom * 100)}%\n </output>\n <Button size=\"sm\" variant=\"ghost\" aria-label=\"Zoom in\" onClick={() => zoomTo(view.zoom * 1.5)}>\n +\n </Button>\n </div>\n <Button size=\"sm\" variant=\"outline\" onClick={() => setView(FIT)}>\n Fit\n </Button>\n <span className=\"ml-auto truncate text-sm text-po-dim\">{media.sourcePath ?? media.documentPath ?? ''}</span>\n </footer>\n </>\n );\n}\n\n/**\n * Opened media, full screen. Without a `review` surface it is a pan and zoom\n * viewer; with one (the Author mode's panel), that surface owns the body.\n */\nexport function MediaViewerDialog({\n media,\n onClose,\n review,\n}: {\n media: MarkdownMedia | undefined;\n onClose: () => void;\n review?: ReactNode;\n}) {\n return (\n <Dialog open={media !== undefined} onOpenChange={(open) => (open ? undefined : onClose())}>\n {media === undefined ? null : (\n <DialogContent data-testid=\"media-viewer\" className=\"h-[calc(100dvh-24px)] w-[calc(100vw-24px)]\">\n <DialogHeader dismissible closeLabel=\"Close viewer\">\n <DialogTitle className=\"min-w-0 truncate text-base\">{media.title}</DialogTitle>\n <DialogDescription className=\"sr-only\">\n {media.kind === 'mermaid' ? 'Mermaid diagram' : 'Image'} opened full screen.\n </DialogDescription>\n </DialogHeader>\n {review ?? <PanZoom key={media.url} media={media} />}\n </DialogContent>\n )}\n </Dialog>\n );\n}\n"],"mappings":"A,gHAMA,MASMY,EAAY,CAAE,KAAM,EAAG,EAAG,EAAG,EAAG,CAAE,EAGxC,SAAgBC,EAAQ,CAAE,SAAmC,CAC3D,GAAM,CAACC,EAAMC,IAAA,EAAWf,EAAAA,SAAAA,CAAeY,CAAG,EACpCI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AA,EAAAJ,EAAA,IAAA,CAACR,EAAAA,OAAD,CAAQ,KAAK,KAAK,QAAQ,UAAU,YAAea,EAAQH,CAAG,EAAG,SAAA,KAEzD,CAAA,EACR,iBAAA,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,uCAAwC,SAAAiB,EAAM,YAAcA,EAAM,cAAgB,EAAS,CAAA,CACrG,CACR,CAAA,CAAA,CAAA,CAAA,CAEN,CAMA,SAAgBG,EAAkB,CAChC,QACA,UACA,UAKC,CACD,MACE,iBAAA,EAAApB,EAAA,IAAA,CAACP,EAAAA,OAAD,CAAQ,KAAMwB,IAAU,IAAA,GAAW,aAAe,GAAUI,EAAO,IAAA,GAAYC,EAAQ,EACpF,SAAAL,IAAU,IAAA,GAAY,KACrB,iBAAA,EAAAjB,EAAA,KAAA,CAACN,EAAAA,cAAD,CAAe,cAAY,eAAe,UAAU,6CAApD,SAAA,CACE,iBAAA,EAAAM,EAAA,KAAA,CAACL,EAAAA,aAAD,CAAc,YAAA,GAAY,WAAW,eAArC,SAAA,CACE,iBAAA,EAAAK,EAAA,IAAA,CAACJ,EAAAA,YAAD,CAAa,UAAU,6BAA8B,SAAAqB,EAAM,KAAmB,CAAA,EAC9E,iBAAA,EAAAjB,EAAA,KAAA,CAACH,EAAAA,kBAAD,CAAmB,UAAU,UAA7B,SAAA,CACGoB,EAAM,OAAS,UAAY,kBAAoB,QAAQ,sBACvC,CACP,CAAA,CAAA,CACb,CAAA,EAAAM,GAAU,iBAAA,EAAAvB,EAAA,IAAA,CAACG,EAAD,CAAgC,OAAQ,EAA1Bc,EAAM,GAAoB,CACtC,C,EAEX,CAAA,CAEZ,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../lib/
|
|
1
|
+
const e=require("../lib/markdownMedia.cjs"),t=require("../lib/mermaidDiagram.cjs"),n=require("./SyntaxText.cjs");let r=require("react/jsx-runtime"),i=require("react");function a({code:a}){let o=`mermaid-${(0,i.useId)().replaceAll(/[^a-zA-Z0-9]/g,``)}`,[s,c]=(0,i.useState)(void 0),l=(0,i.useContext)(e.MarkdownMediaContext);if((0,i.useEffect)(()=>{let e=!0;return t.renderMermaid(o,a).then(t=>{e&&c({source:a,svg:t})},()=>void 0),()=>{e=!1}},[a,o]),s?.source!==a)return/* @__PURE__ */ (0,r.jsx)(n.SyntaxText,{text:a,className:`text-po-text`});let u=/* @__PURE__ */ (0,r.jsx)(`div`,{"data-testid":`mermaid-diagram`,dangerouslySetInnerHTML:{__html:s.svg},className:`flex justify-center overflow-x-auto [&_svg]:h-auto [&_svg]:max-w-full`});return l===void 0?u:/* @__PURE__ */ (0,r.jsx)(`button`,{type:`button`,"data-testid":`markdown-media-open`,"aria-label":`Open diagram full screen`,onClick:()=>l.open({kind:`mermaid`,title:`Diagram`,url:e.svgImageUrl(s.svg.replaceAll(`font-family:inherit`,`font-family:"IBM Plex Sans",ui-sans-serif,system-ui,sans-serif`)),mermaidSource:a}),className:`block w-full cursor-zoom-in rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none`,children:u})}exports.MermaidDiagram=a;
|
|
2
2
|
//# sourceMappingURL=MermaidDiagram.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MermaidDiagram.cjs","names":["useId","useState","renderMermaid","SyntaxText","require_mermaidDiagram","require_SyntaxText","react_jsx_runtime","react","MermaidDiagram","id","drawn","setDrawn","live","code"],"sources":["../../../src/components/MermaidDiagram.tsx"],"sourcesContent":["import { useEffect, useId, useState } from 'react';\n\nimport { renderMermaid } from '../lib/mermaidDiagram';\nimport { SyntaxText } from './SyntaxText';\n\n/**\n * A mermaid fence, drawn.\n *\n * DESIGN PATTERNS:\n * - The source is the fallback, never a spinner or an error box. A diagram\n * that has not loaded yet, a diagram that fails to parse and a diagram in a\n * half-streamed message all show the text the author wrote, which stays\n * useful on its own.\n * - The rendered markup is stored with the source it came from, so a message\n * that grows never paints the previous frame's picture over new text.\n *\n * AVOID:\n * - Rendering at module scope or during render: mermaid measures text in the\n * document, so it only runs in an effect, in a browser.\n */\n\ninterface Drawn {\n source: string;\n svg: string;\n}\n\nexport function MermaidDiagram({ code }: { code: string }) {\n // Mermaid puts the id in the DOM and in the SVG's own ids, so React's\n // colon-wrapped value has to lose its punctuation first.\n const id = `mermaid-${useId().replaceAll(/[^a-zA-Z0-9]/g, '')}`;\n const [drawn, setDrawn] = useState<Drawn | undefined>(undefined);\n\n useEffect(() => {\n let live = true;\n void renderMermaid(id, code).then(\n (svg) => {\n if (live) setDrawn({ source: code, svg });\n },\n // Invalid syntax and a chunk that will not load are the same outcome\n // here: the block keeps showing its source.\n () => undefined,\n );\n return () => {\n live = false;\n };\n }, [code, id]);\n\n if (drawn?.source !== code) return <SyntaxText text={code} className=\"text-po-text\" />;\n
|
|
1
|
+
{"version":3,"file":"MermaidDiagram.cjs","names":["useId","useState","useContext","MarkdownMediaContext","renderMermaid","SyntaxText","svgImageUrl","require_markdownMedia","require_mermaidDiagram","require_SyntaxText","react_jsx_runtime","react","MermaidDiagram","id","drawn","setDrawn","media","live","code","diagram"],"sources":["../../../src/components/MermaidDiagram.tsx"],"sourcesContent":["import { useContext, useEffect, useId, useState } from 'react';\n\nimport { MarkdownMediaContext, svgImageUrl } from '../lib/markdownMedia';\nimport { renderMermaid } from '../lib/mermaidDiagram';\nimport { SyntaxText } from './SyntaxText';\n\n/**\n * A mermaid fence, drawn.\n *\n * DESIGN PATTERNS:\n * - The source is the fallback, never a spinner or an error box. A diagram\n * that has not loaded yet, a diagram that fails to parse and a diagram in a\n * half-streamed message all show the text the author wrote, which stays\n * useful on its own.\n * - The rendered markup is stored with the source it came from, so a message\n * that grows never paints the previous frame's picture over new text.\n *\n * AVOID:\n * - Rendering at module scope or during render: mermaid measures text in the\n * document, so it only runs in an effect, in a browser.\n */\n\ninterface Drawn {\n source: string;\n svg: string;\n}\n\n// Inline, `inherit` picks up the cockpit's font. As a standalone image there\n// is nothing to inherit from, so the copy names the stack or labels go serif.\nconst IMAGE_FONT = 'font-family:\"IBM Plex Sans\",ui-sans-serif,system-ui,sans-serif';\n\nexport function MermaidDiagram({ code }: { code: string }) {\n // Mermaid puts the id in the DOM and in the SVG's own ids, so React's\n // colon-wrapped value has to lose its punctuation first.\n const id = `mermaid-${useId().replaceAll(/[^a-zA-Z0-9]/g, '')}`;\n const [drawn, setDrawn] = useState<Drawn | undefined>(undefined);\n const media = useContext(MarkdownMediaContext);\n\n useEffect(() => {\n let live = true;\n void renderMermaid(id, code).then(\n (svg) => {\n if (live) setDrawn({ source: code, svg });\n },\n // Invalid syntax and a chunk that will not load are the same outcome\n // here: the block keeps showing its source.\n () => undefined,\n );\n return () => {\n live = false;\n };\n }, [code, id]);\n\n if (drawn?.source !== code) return <SyntaxText text={code} className=\"text-po-text\" />;\n const diagram = (\n <div\n data-testid=\"mermaid-diagram\"\n // Mermaid sanitises its own output under the strict security level set\n // in lib/mermaidDiagram.ts; this is the only way it hands back a figure.\n dangerouslySetInnerHTML={{ __html: drawn.svg }}\n className=\"flex justify-center overflow-x-auto [&_svg]:h-auto [&_svg]:max-w-full\"\n />\n );\n if (media === undefined) return diagram;\n return (\n <button\n type=\"button\"\n data-testid=\"markdown-media-open\"\n aria-label=\"Open diagram full screen\"\n onClick={() =>\n media.open({\n kind: 'mermaid',\n title: 'Diagram',\n url: svgImageUrl(drawn.svg.replaceAll('font-family:inherit', IMAGE_FONT)),\n mermaidSource: code,\n })\n }\n className=\"block w-full cursor-zoom-in rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none\"\n >\n {diagram}\n </button>\n );\n}\n"],"mappings":"A,uKA+BA,SAAgBY,EAAe,CAAE,QAA0B,CAGzD,IAAMC,EAAK,YAAA,EAAWb,EAAAA,MAAAA,CAAM,CAAC,CAAC,WAAW,gBAAiB,EAAE,IACtD,CAACc,EAAOC,IAAA,EAAYd,EAAAA,SAAAA,CAA4B,IAAA,EAAS,EACzDe,GAAA,EAAQd,EAAAA,WAAAA,CAAWC,EAAAA,oBAAoB,EAiB7C,IAfA,EAAAQ,EAAA,UAAA,KAAgB,CACd,IAAIM,EAAO,GASX,OARAT,EAAKJ,cAAcS,EAAIK,CAAI,CAAC,CAAC,KAC1B,GAAQ,CACHD,GAAMF,EAAS,CAAE,OAAQG,EAAM,KAAI,CAAC,CAC1C,MAGM,IAAA,EACR,MACa,CACX,EAAO,EACT,CACF,EAAG,CAACA,EAAML,CAAE,CAAC,EAETC,GAAO,SAAWI,EAAM,MAAO,iBAAA,EAAAR,EAAA,IAAA,CAACL,EAAAA,WAAD,CAAY,KAAMa,EAAM,UAAU,cAAgB,CAAA,EACrF,IAAMC,EACJ,iBAAA,EAAAT,EAAA,IAAA,CAAC,MAAD,CACE,cAAY,kBAGZ,wBAAyB,CAAE,OAAQI,EAAM,GAAI,EAC7C,UAAU,uEACX,CAAA,EAGH,OADIE,IAAU,IAAA,GAAkBG,EAE9B,iBAAA,EAAAT,EAAA,IAAA,CAAC,SAAD,CACE,KAAK,SACL,cAAY,sBACZ,aAAW,2BACX,YACEM,EAAM,KAAK,CACT,KAAM,UACN,MAAO,UACP,IAAKV,EAAAA,YAAYQ,EAAM,IAAI,WAAW,sBAAuB,gEAAU,CAAC,EACxE,cAAeI,CACjB,CAAC,EAEH,UAAU,iHAET,SAAAC,CACK,CAAA,CAEZ,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../icons/icons.cjs");const e=require("../lib/cn.cjs"),t=require("./Button.cjs"),n=require("./StatusBadge.cjs");let r=require("react/jsx-runtime"),i=require("react"),a=require("class-variance-authority"),o=require("lucide-react");const s=(0,i.createContext)(null),c=(0,i.createContext)({tone:`neutral`,expandable:!1,expanded:!1,toggle:()=>void 0});function
|
|
1
|
+
require("../icons/icons.cjs");const e=require("../lib/cn.cjs"),t=require("./Button.cjs"),n=require("./StatusBadge.cjs");let r=require("react/jsx-runtime"),i=require("react"),a=require("class-variance-authority"),o=require("lucide-react");const s=(0,i.createContext)(null),c=(0,i.createContext)({tone:`neutral`,expandable:!1,expanded:!1,toggle:()=>void 0}),l=(0,i.createContext)(!1);function u(){return(0,i.useContext)(c)}const d=(0,i.createContext)(null),f=(0,a.cva)(`overflow-hidden rounded-lg border transition-colors`,{variants:{tone:{...n.STATUS_EDGE,ok:`border-po-border-soft`}},defaultVariants:{tone:`neutral`}}),p=(0,a.cva)(`overflow-hidden border-l-2 transition-colors`,{variants:{tone:{...n.STATUS_EDGE,ok:`border-transparent`,neutral:`border-transparent`}},defaultVariants:{tone:`neutral`}});function m({title:e,children:t}){return/* @__PURE__ */ (0,r.jsxs)(r.Fragment,{children:[/* @__PURE__ */ (0,r.jsx)(`span`,{"aria-hidden":!0,className:`grid size-9 shrink-0 place-items-center rounded-full bg-po-rail text-po-dim max-sm:hidden`,children:/* @__PURE__ */ (0,r.jsx)(o.Wrench,{className:`size-4`})}),/* @__PURE__ */ (0,r.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[/* @__PURE__ */ (0,r.jsx)(`span`,{className:`text-sm text-po-dim`,children:`Tool call`}),/* @__PURE__ */ (0,r.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 text-base`,children:[/* @__PURE__ */ (0,r.jsx)(`span`,{className:`min-w-0 truncate font-semibold text-po-hi`,children:e}),/* @__PURE__ */ (0,r.jsx)(`div`,{"data-slot":`message-item-summary`,className:`flex min-w-0 flex-1 items-center gap-2 overflow-hidden`,children:t})]})]})]})}function h({className:t,tone:n,expandable:a=!1,defaultExpanded:o=!1,expanded:u,onExpandedChange:m,children:h,...g}){let[_,v]=(0,i.useState)(o),y=(0,i.useContext)(d),b=(0,i.useContext)(s),x=y!==null,S=(0,i.useContext)(l)&&!x,C=u??_,w={tone:n??`neutral`,headerAccessory:b,expandable:a,expanded:C,nested:S,toggle:()=>{let e=!C;u===void 0&&v(e),m?.(e)}};return/* @__PURE__ */ (0,r.jsx)(c.Provider,{value:w,children:/* @__PURE__ */ (0,r.jsx)(s,{value:null,children:/* @__PURE__ */ (0,r.jsx)(l,{value:!0,children:/* @__PURE__ */ (0,r.jsx)(`div`,{"data-slot":`message-item`,"data-expanded":C,"data-grouped":x,"data-nested":S,className:e.cn(x?p({tone:n}):S?`min-w-0`:f({tone:n}),t),...g,children:typeof h==`function`?h(w):h})})})})}function g({className:e,tone:t,title:n,summary:i,badge:a,children:o,defaultExpanded:s=!1,...c}){return/* @__PURE__ */ (0,r.jsx)(h,{tone:t,expandable:!0,defaultExpanded:s,className:e,"data-slot":`message-item-group`,...c,children:({expanded:e})=>/* @__PURE__ */ (0,r.jsxs)(r.Fragment,{children:[/* @__PURE__ */ (0,r.jsx)(S,{title:n,badge:a,children:/* @__PURE__ */ (0,r.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-po-faint`,children:i})}),e?/* @__PURE__ */ (0,r.jsx)(d.Provider,{value:{tone:t??`neutral`},children:/* @__PURE__ */ (0,r.jsx)(`div`,{className:`flex flex-col divide-y divide-po-border-soft border-t border-po-border-soft`,children:o})}):null]})})}function _(e){return e.running?`running`:e.isError?`error`:`ok`}const v={neutral:``,running:`Running`,ok:`Completed`,error:`Failed`,info:`Info`,accent:`Note`},y={running:/* @__PURE__ */ (0,r.jsx)(o.Loader2,{"aria-hidden":!0,className:`size-3 animate-spin`}),ok:/* @__PURE__ */ (0,r.jsx)(o.Check,{"aria-hidden":!0,className:`size-3`}),error:/* @__PURE__ */ (0,r.jsx)(o.CircleAlert,{"aria-hidden":!0,className:`size-3`})};function b({tone:e,children:t,...i}){return/* @__PURE__ */ (0,r.jsxs)(n.StatusBadge,{tone:e,size:`md`,className:`gap-1 font-semibold`,...i,children:[y[e],/* @__PURE__ */ (0,r.jsx)(`span`,{className:y[e]?`@max-md:sr-only`:void 0,children:t})]})}const x=/* @__PURE__ */ new Set([`ok`,`neutral`]);function S({className:n,title:a,badge:s,children:c,...l}){let{headerAccessory:f,tone:p,expandable:h,expanded:g,toggle:_,nested:S}=u(),C=(0,i.useContext)(d),w=C!==null&&x.has(p)?null:v[p],E=s===void 0?w:s;return/* @__PURE__ */ (0,r.jsxs)(`div`,{"data-slot":`message-item-header`,className:e.cn(`@container flex min-h-11 items-center gap-3 px-4 py-3 text-sm text-po-dim`,S&&`min-h-9 px-0 py-0`,n),...l,children:[C===null?S?/* @__PURE__ */ (0,r.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2 text-base`,children:[/* @__PURE__ */ (0,r.jsx)(`span`,{className:`min-w-0 truncate font-semibold text-po-hi`,children:a}),/* @__PURE__ */ (0,r.jsx)(`div`,{"data-slot":`message-item-summary`,className:`flex min-w-0 flex-1 items-center gap-2 overflow-hidden`,children:c})]}):/* @__PURE__ */ (0,r.jsx)(m,{title:a,children:c}):/* @__PURE__ */ (0,r.jsx)(`div`,{"data-slot":`message-item-summary`,className:`flex min-w-0 flex-1 items-center gap-2`,children:c}),f,E===null||E===``?null:S&&y[p]?/* @__PURE__ */ (0,r.jsxs)(`span`,{"data-testid":`tool-status`,className:e.cn(T({tone:p}),`flex w-3 justify-center`),children:[y[p],/* @__PURE__ */ (0,r.jsx)(`span`,{className:`sr-only`,children:E})]}):/* @__PURE__ */ (0,r.jsx)(b,{tone:p,"data-testid":`tool-status`,children:E}),h?/* @__PURE__ */ (0,r.jsx)(t.Button,{variant:`ghost`,size:`icon`,"data-testid":`tool-expand`,"aria-expanded":g,"aria-label":g?`collapse`:`expand`,onClick:_,className:`text-po-dim hover:text-po-blue`,children:g?/* @__PURE__ */ (0,r.jsx)(o.ChevronUp,{className:`size-4`}):/* @__PURE__ */ (0,r.jsx)(o.ChevronDown,{className:`size-4`})}):null]})}function C({className:t,...n}){let{nested:i}=u();return/* @__PURE__ */ (0,r.jsx)(`div`,{"data-slot":`message-item-body`,className:e.cn(`border-t border-po-border-soft px-4 py-3 text-base text-po-dim`,i&&`border-t-0 px-0 py-1`,t),...n})}const w={neutral:`…`,running:`◐`,ok:`✓`,error:`✗`,info:`●`,accent:`●`},T=(0,a.cva)(`shrink-0`,{variants:{tone:{neutral:`text-po-faint`,running:`text-po-yellow`,ok:`text-po-green`,error:`text-po-red`,info:`text-po-blue`,accent:`text-po-magenta`}},defaultVariants:{tone:`neutral`}});function E({className:t,tone:n,glyph:i,expands:a=!1,children:o,...s}){let{toggle:c}=u(),l=/* @__PURE__ */ (0,r.jsxs)(r.Fragment,{children:[/* @__PURE__ */ (0,r.jsx)(`span`,{className:T({tone:n}),children:i??w[n??`neutral`]}),/* @__PURE__ */ (0,r.jsx)(`span`,{children:o})]});return a?/* @__PURE__ */ (0,r.jsx)(`button`,{type:`button`,"data-slot":`message-item-status`,"data-testid":`tool-more`,onClick:c,className:e.cn(`flex min-h-6 min-w-6 cursor-pointer items-center gap-1.5 text-po-faint hover:text-po-blue`,t),children:l}):/* @__PURE__ */ (0,r.jsx)(`span`,{"data-slot":`message-item-status`,className:e.cn(`flex items-center gap-1.5 text-po-faint`,t),...s,children:l})}exports.MessageItem=h,exports.MessageItemBody=C,exports.MessageItemGroup=g,exports.MessageItemHeader=S,exports.MessageItemHeaderAccessoryContext=s,exports.MessageItemStatus=E,exports.STATUS_GLYPH=w,exports.STATUS_LABEL=v,exports.messageItemRowVariants=p,exports.messageItemStatusVariants=T,exports.messageItemVariants=f,exports.toolTone=_,exports.useMessageItem=u;
|
|
2
2
|
//# sourceMappingURL=MessageItem.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageItem.cjs","names":["createContext","useContext","cva","STATUS_EDGE","WrenchIcon","useState","cn","LoaderIcon","CheckIcon","AlertIcon","StatusBadge","Button","ChevronUpIcon","ChevronDownIcon","require_cn","require_Button","require_StatusBadge","react_jsx_runtime","react","class_variance_authority","lucide_react","MessageItemHeaderAccessoryContext","MessageItemContext","useMessageItem","MessageItemGroupContext","messageItemVariants","messageItemRowVariants","ToolCallLead","title","MessageItem","props","own","setOwn","defaultExpanded","group","headerAccessory","grouped","current","expanded","state","tone","next","onExpandedChange","className","children","MessageItemGroup","label","badge","STATUS_LABEL","summary","OutcomeBadge","toolTone","OUTCOME_ICON","SILENT_IN_GROUP","MessageItemHeader","defaultLabel","expandable","toggle","MessageItemBody","STATUS_GLYPH","messageItemStatusVariants","MessageItemStatus","content","glyph","expands"],"sources":["../../../src/components/MessageItem.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { type ComponentProps, createContext, type ReactNode, useContext, useState } from 'react';\n\nimport { AlertIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon, LoaderIcon, WrenchIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\nimport { STATUS_EDGE, StatusBadge, type StatusTone } from './StatusBadge';\n\n/**\n * The message item: the timeline card a tool call, a run, or a notice sits\n * in. The item owns its outcome tone and its expand state; the header, body,\n * and status parts read both from it, so a card composes the parts and never\n * threads `expanded` by hand. A tool message in a web plugin is built from\n * this, and so is the cockpit's own fallback item, which is what keeps them\n * looking alike.\n */\n\n/** The next item captures this accessory for its header, without passing it to nested items. */\nexport const MessageItemHeaderAccessoryContext = createContext<ReactNode>(null);\n\nexport interface MessageItemState {\n tone: StatusTone;\n headerAccessory?: ReactNode;\n /** Whether the header offers the toggle; an item that hides nothing offers none. */\n expandable: boolean;\n expanded: boolean;\n toggle: () => void;\n}\n\nconst MessageItemContext = createContext<MessageItemState>({\n tone: 'neutral',\n expandable: false,\n expanded: false,\n toggle: () => undefined,\n});\n\n/** The enclosing item's state, for a part that lives deeper than the item's render prop. */\nexport function useMessageItem(): MessageItemState {\n return useContext(MessageItemContext);\n}\n\n/**\n * The group an item is a row of, or null for an item that is a card of its\n * own. A row drops the frame the group already draws and keeps its tone as an\n * edge down its left side, and it stops repeating what the group's header has\n * said once: the tool's name, and an outcome the whole run shares.\n */\nconst MessageItemGroupContext = createContext<{ tone: StatusTone } | null>(null);\n\n/**\n * The frame, wearing the edge STATUS_EDGE names for the tone, so the two never drift apart.\n * A settled OK is the calm default and keeps the soft border; only work in flight or a failure colours the edge.\n */\nexport const messageItemVariants = cva('overflow-hidden rounded-lg border transition-colors', {\n variants: { tone: { ...STATUS_EDGE, ok: 'border-po-border-soft' } },\n defaultVariants: { tone: 'neutral' },\n});\n\n/** The same tone as a row: no card, one coloured edge, and the group's separators between rows. A settled row keeps a quiet edge. */\nexport const messageItemRowVariants = cva('overflow-hidden border-l-2 transition-colors', {\n variants: { tone: { ...STATUS_EDGE, ok: 'border-transparent', neutral: 'border-transparent' } },\n defaultVariants: { tone: 'neutral' },\n});\n\n/** The card's lead: the tool chip, the \"Tool call\" caption, then the name and its summary on one line. */\nfunction ToolCallLead({ title, children }: { title: ReactNode; children?: ReactNode }) {\n return (\n <>\n <span\n aria-hidden\n className=\"grid size-9 shrink-0 place-items-center rounded-full bg-po-rail text-po-dim max-sm:hidden\"\n >\n <WrenchIcon className=\"size-4\" />\n </span>\n <div className=\"flex min-w-0 flex-1 flex-col\">\n <span className=\"text-sm text-po-dim\">Tool call</span>\n <div className=\"flex min-w-0 items-center gap-2 text-base\">\n <span className=\"shrink-0 font-semibold text-po-hi\">{title}</span>\n <div data-slot=\"message-item-summary\" className=\"flex min-w-0 flex-1 items-center gap-2\">\n {children}\n </div>\n </div>\n </div>\n </>\n );\n}\n\nexport interface MessageItemProps\n extends Omit<ComponentProps<'div'>, 'children'>, VariantProps<typeof messageItemVariants> {\n /** Whether the header offers the expand toggle. A toggle that reveals nothing reads as broken, so the card decides. */\n expandable?: boolean;\n defaultExpanded?: boolean;\n /** Controlled mode; pair with onExpandedChange. Omit it and the item keeps its own state. */\n expanded?: boolean;\n onExpandedChange?: (expanded: boolean) => void;\n /** Plain content, or a function of the item's state for a card that picks its lines by `expanded`. */\n children?: ReactNode | ((state: MessageItemState) => ReactNode);\n}\n\nexport function MessageItem({\n className,\n tone,\n expandable = false,\n defaultExpanded = false,\n expanded,\n onExpandedChange,\n children,\n ...props\n}: MessageItemProps) {\n const [own, setOwn] = useState(defaultExpanded);\n const group = useContext(MessageItemGroupContext);\n const headerAccessory = useContext(MessageItemHeaderAccessoryContext);\n const grouped = group !== null;\n const current = expanded ?? own;\n const state: MessageItemState = {\n tone: tone ?? 'neutral',\n headerAccessory,\n expandable,\n expanded: current,\n toggle: () => {\n const next = !current;\n if (expanded === undefined) setOwn(next);\n onExpandedChange?.(next);\n },\n };\n return (\n <MessageItemContext.Provider value={state}>\n <MessageItemHeaderAccessoryContext value={null}>\n <div\n data-slot=\"message-item\"\n data-expanded={current}\n data-grouped={grouped}\n className={cn(grouped ? messageItemRowVariants({ tone }) : messageItemVariants({ tone }), className)}\n {...props}\n >\n {typeof children === 'function' ? children(state) : children}\n </div>\n </MessageItemHeaderAccessoryContext>\n </MessageItemContext.Provider>\n );\n}\n\nexport interface MessageItemGroupProps\n extends Omit<ComponentProps<'div'>, 'title'>, VariantProps<typeof messageItemVariants> {\n /** The bold label at the left of the group header: the tool the run belongs to. */\n title: ReactNode;\n /** The line beside it, such as how many calls the group holds. */\n summary?: ReactNode;\n /** The badge text; defaults to the tone's label, null hides the badge. */\n badge?: ReactNode | null;\n children?: ReactNode;\n}\n\n/**\n * One frame around a run of items that belong together.\n *\n * A transcript that calls the same tool five times in a row is five identical\n * frames, five gutter labels and five gaps, and the repetition reads louder\n * than the commands do. The group draws the frame once and each item inside it\n * becomes a row: same header, same expand, no card of its own. The tone still\n * belongs to the row, as an edge, so a failure in the middle of a run is not\n * flattened into the group's own outcome.\n */\nexport function MessageItemGroup({\n className,\n tone,\n title,\n summary,\n badge,\n children,\n ...props\n}: MessageItemGroupProps) {\n const label = badge === undefined ? STATUS_LABEL[tone ?? 'neutral'] : badge;\n return (\n <MessageItemGroupContext.Provider value={{ tone: tone ?? 'neutral' }}>\n <div data-slot=\"message-item-group\" className={cn(messageItemVariants({ tone }), className)} {...props}>\n <div className=\"flex min-h-11 items-center gap-3 border-po-border-soft border-b px-4 py-3 text-sm text-po-dim\">\n <ToolCallLead title={title}>\n <span className=\"min-w-0 flex-1 truncate text-po-faint\">{summary}</span>\n </ToolCallLead>\n {label !== null && label !== '' ? <OutcomeBadge tone={tone ?? 'neutral'}>{label}</OutcomeBadge> : null}\n </div>\n <div className=\"flex flex-col divide-y divide-po-border-soft\">{children}</div>\n </div>\n </MessageItemGroupContext.Provider>\n );\n}\n\n/** The tone a tool call's item wears: running while the tool runs, then its outcome. */\nexport function toolTone(state: { running: boolean; isError: boolean }): StatusTone {\n return state.running ? 'running' : state.isError ? 'error' : 'ok';\n}\n\n/** The badge text a tone reads as when the header is not told otherwise; empty hides the badge. */\nexport const STATUS_LABEL: Readonly<Record<StatusTone, string>> = {\n neutral: '',\n running: 'Running',\n ok: 'Completed',\n error: 'Failed',\n info: 'Info',\n accent: 'Note',\n};\n\nconst OUTCOME_ICON: Partial<Record<StatusTone, ReactNode>> = {\n running: <LoaderIcon aria-hidden className=\"size-3 animate-spin\" />,\n ok: <CheckIcon aria-hidden className=\"size-3\" />,\n error: <AlertIcon aria-hidden className=\"size-3\" />,\n};\n\n/** The sentence-case outcome pill, led by the tone's icon. */\nfunction OutcomeBadge({ tone, children, ...props }: ComponentProps<typeof StatusBadge> & { tone: StatusTone }) {\n return (\n <StatusBadge tone={tone} size=\"md\" className=\"gap-1 font-semibold\" {...props}>\n {OUTCOME_ICON[tone]}\n {children}\n </StatusBadge>\n );\n}\n\nexport interface MessageItemHeaderProps extends Omit<ComponentProps<'div'>, 'title'> {\n /** The bold label at the left: the tool name. */\n title: ReactNode;\n /** The badge text; defaults to the tone's label, null hides the badge. */\n badge?: ReactNode | null;\n /** The summary beside the title; it gets the remaining width. */\n children?: ReactNode;\n}\n\n/** Inside a group these two are the quiet outcome: the group's header has already said it. */\nconst SILENT_IN_GROUP: ReadonlySet<StatusTone> = new Set<StatusTone>(['ok', 'neutral']);\n\n/**\n * The title row: label, summary, the tone's badge, and the expand toggle when\n * the item is expandable.\n *\n * A row inside a group says less. The group's header has already named the\n * tool and stated the run's outcome, so the row drops its title and speaks up\n * only when something went wrong or is still going: five OK badges down a run\n * of five are noise, and the one ERROR among them is the point.\n */\nexport function MessageItemHeader({ className, title, badge, children, ...props }: MessageItemHeaderProps) {\n const { headerAccessory, tone, expandable, expanded, toggle } = useMessageItem();\n const group = useContext(MessageItemGroupContext);\n const defaultLabel = group !== null && SILENT_IN_GROUP.has(tone) ? null : STATUS_LABEL[tone];\n const label = badge === undefined ? defaultLabel : badge;\n return (\n <div\n data-slot=\"message-item-header\"\n className={cn('flex min-h-11 items-center gap-3 px-4 py-3 text-sm text-po-dim', className)}\n {...props}\n >\n {group === null ? (\n <ToolCallLead title={title}>{children}</ToolCallLead>\n ) : (\n <div data-slot=\"message-item-summary\" className=\"flex min-w-0 flex-1 items-center gap-2\">\n {children}\n </div>\n )}\n {headerAccessory}\n {label !== null && label !== '' ? (\n <OutcomeBadge tone={tone} data-testid=\"tool-status\">\n {label}\n </OutcomeBadge>\n ) : null}\n {expandable ? (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n data-testid=\"tool-expand\"\n aria-expanded={expanded}\n aria-label={expanded ? 'collapse' : 'expand'}\n onClick={toggle}\n className=\"text-po-dim hover:text-po-blue\"\n >\n {expanded ? <ChevronUpIcon className=\"size-4\" /> : <ChevronDownIcon className=\"size-4\" />}\n </Button>\n ) : null}\n </div>\n );\n}\n\n/** The body under the header, on the card's own surface. */\nexport function MessageItemBody({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"message-item-body\"\n className={cn('border-t border-po-border-soft px-4 py-3 text-base text-po-dim', className)}\n {...props}\n />\n );\n}\n\n/** The glyph a tone reads as in a status line. */\nexport const STATUS_GLYPH: Readonly<Record<StatusTone, string>> = {\n neutral: '…',\n running: '◐',\n ok: '✓',\n error: '✗',\n info: '●',\n accent: '●',\n};\n\nexport const messageItemStatusVariants = cva('shrink-0', {\n variants: {\n tone: {\n neutral: 'text-po-faint',\n running: 'text-po-yellow',\n ok: 'text-po-green',\n error: 'text-po-red',\n info: 'text-po-blue',\n accent: 'text-po-magenta',\n } satisfies Record<StatusTone, string>,\n },\n defaultVariants: { tone: 'neutral' },\n});\n\nexport interface MessageItemStatusProps extends ComponentProps<'span'>, VariantProps<typeof messageItemStatusVariants> {\n /** Replaces the tone's glyph. */\n glyph?: string;\n /** Renders as a button that expands the item: the \"N more line(s)\" hint. Only className carries over. */\n expands?: boolean;\n}\n\n/** The one-line status under a body: `◐ running`, `✗ failed`, `✓ done`, or the hint that more is hidden. */\nexport function MessageItemStatus({\n className,\n tone,\n glyph,\n expands = false,\n children,\n ...props\n}: MessageItemStatusProps) {\n const { toggle } = useMessageItem();\n const content = (\n <>\n <span className={messageItemStatusVariants({ tone })}>{glyph ?? STATUS_GLYPH[tone ?? 'neutral']}</span>\n <span>{children}</span>\n </>\n );\n if (expands) {\n return (\n <button\n type=\"button\"\n data-slot=\"message-item-status\"\n data-testid=\"tool-more\"\n onClick={toggle}\n className={cn(\n 'flex min-h-6 min-w-6 cursor-pointer items-center gap-1.5 text-po-faint hover:text-po-blue',\n className,\n )}\n >\n {content}\n </button>\n );\n }\n return (\n <span\n data-slot=\"message-item-status\"\n className={cn('flex items-center gap-1.5 text-po-faint', className)}\n {...props}\n >\n {content}\n </span>\n );\n}\n"],"mappings":"8OAkBA,MAAaqB,GAAA,EAAoCrB,EAAAA,cAAAA,CAAyB,IAAI,EAWxEsB,GAAA,EAAqBtB,EAAAA,cAAAA,CAAgC,CACzD,KAAM,UACN,WAAY,GACZ,SAAU,GACV,WAAc,IAAA,EAChB,CAAC,EAGD,SAAgBuB,GAAmC,CACjD,OAAA,EAAOtB,EAAAA,WAAAA,CAAWqB,CAAkB,CACtC,CAQA,MAAME,GAAA,EAA0BxB,EAAAA,cAAAA,CAA2C,IAAI,EAMlEyB,GAAA,EAAsBvB,EAAAA,IAAAA,CAAI,sDAAuD,CAC5F,SAAU,CAAE,KAAM,CAAE,GAAGC,EAAAA,YAAa,GAAI,uBAAwB,CAAE,EAClE,gBAAiB,CAAE,KAAM,SAAU,CACrC,CAAC,EAGYuB,GAAA,EAAyBxB,EAAAA,IAAAA,CAAI,+C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AAE,KAAM,SAAU,CACrC,CAAC,EAUD,SAAgB2D,EAAkB,CAChC,YACA,OACA,QACA,UAAU,GACV,WACA,GAAG/B,GACsB,CACzB,GAAM,CAAE,UAAWP,EAAe,EAC5BuC,EACJ,iBAAA,EAAA7C,EAAA,KAAA,CAAAA,EAAA,SAAA,CAAA,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW2C,EAA0B,CAAE,MAAK,CAAC,EAAI,SAAAG,GAASJ,EAAanB,GAAQ,UAAiB,CAAA,EACtG,iBAAA,EAAAvB,EAAA,IAAA,CAAC,OAAD,CAAO,UAAe,CAAA,CACtB,CAAA,CAAA,EAkBJ,OAhBI+C,EAEA,iBAAA,EAAA/C,EAAA,IAAA,CAAC,SAAD,CACE,KAAK,SACL,YAAU,sBACV,cAAY,YACZ,QAASwC,EACT,UAAWnD,EAAAA,GACT,4FACAqC,CACF,EAEC,SAAAmB,CACK,CAAA,EAIV,iBAAA,EAAA7C,EAAA,IAAA,CAAC,OAAD,CACE,YAAU,sBACV,UAAWX,EAAAA,GAAG,0CAA2CqC,CAAS,EAClE,GAAIb,EAEH,SAAAgC,CACG,CAAA,CAEV"}
|
|
1
|
+
{"version":3,"file":"MessageItem.cjs","names":["createContext","useContext","cva","STATUS_EDGE","WrenchIcon","useState","cn","LoaderIcon","CheckIcon","AlertIcon","StatusBadge","Button","ChevronUpIcon","ChevronDownIcon","require_cn","require_Button","require_StatusBadge","react_jsx_runtime","react","class_variance_authority","lucide_react","MessageItemHeaderAccessoryContext","MessageItemContext","InsideMessageItemContext","useMessageItem","MessageItemGroupContext","messageItemVariants","messageItemRowVariants","ToolCallLead","title","MessageItem","props","own","setOwn","defaultExpanded","group","headerAccessory","grouped","nested","current","expanded","state","tone","next","onExpandedChange","className","children","MessageItemGroup","MessageItemHeader","summary","toolTone","STATUS_LABEL","OUTCOME_ICON","OutcomeBadge","SILENT_IN_GROUP","defaultLabel","label","badge","messageItemStatusVariants","expandable","toggle","MessageItemBody","STATUS_GLYPH","MessageItemStatus","content","glyph","expands"],"sources":["../../../src/components/MessageItem.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { type ComponentProps, createContext, type ReactNode, useContext, useState } from 'react';\n\nimport { AlertIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon, LoaderIcon, WrenchIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\nimport { STATUS_EDGE, StatusBadge, type StatusTone } from './StatusBadge';\n\n/**\n * The message item: the timeline card a tool call, a run, or a notice sits\n * in. The item owns its outcome tone and its expand state; the header, body,\n * and status parts read both from it, so a card composes the parts and never\n * threads `expanded` by hand. A tool message in a web plugin is built from\n * this, and so is the cockpit's own fallback item, which is what keeps them\n * looking alike.\n */\n\n/** The next item captures this accessory for its header, without passing it to nested items. */\nexport const MessageItemHeaderAccessoryContext = createContext<ReactNode>(null);\n\nexport interface MessageItemState {\n tone: StatusTone;\n headerAccessory?: ReactNode;\n /** Whether the header offers the toggle; an item that hides nothing offers none. */\n expandable: boolean;\n expanded: boolean;\n toggle: () => void;\n /** Whether this item sits inside another item's body, such as a call an exec script made. */\n nested?: boolean;\n}\n\nconst MessageItemContext = createContext<MessageItemState>({\n tone: 'neutral',\n expandable: false,\n expanded: false,\n toggle: () => undefined,\n});\n\n/** True under any item, so an item drawn inside another one drops its own frame. */\nconst InsideMessageItemContext = createContext(false);\n\n/** The enclosing item's state, for a part that lives deeper than the item's render prop. */\nexport function useMessageItem(): MessageItemState {\n return useContext(MessageItemContext);\n}\n\n/**\n * The group an item is a row of, or null for an item that is a card of its\n * own. A row drops the frame the group already draws and keeps its tone as an\n * edge down its left side, and it stops repeating what the group's header has\n * said once: the tool's name, and an outcome the whole run shares.\n */\nconst MessageItemGroupContext = createContext<{ tone: StatusTone } | null>(null);\n\n/**\n * The frame, wearing the edge STATUS_EDGE names for the tone, so the two never drift apart.\n * A settled OK is the calm default and keeps the soft border; only work in flight or a failure colours the edge.\n */\nexport const messageItemVariants = cva('overflow-hidden rounded-lg border transition-colors', {\n variants: { tone: { ...STATUS_EDGE, ok: 'border-po-border-soft' } },\n defaultVariants: { tone: 'neutral' },\n});\n\n/** The same tone as a row: no card, one coloured edge, and the group's separators between rows. A settled row keeps a quiet edge. */\nexport const messageItemRowVariants = cva('overflow-hidden border-l-2 transition-colors', {\n variants: { tone: { ...STATUS_EDGE, ok: 'border-transparent', neutral: 'border-transparent' } },\n defaultVariants: { tone: 'neutral' },\n});\n\n/** The card's lead: the tool chip, the \"Tool call\" caption, then the name and its summary on one line. */\nfunction ToolCallLead({ title, children }: { title: ReactNode; children?: ReactNode }) {\n return (\n <>\n <span\n aria-hidden\n className=\"grid size-9 shrink-0 place-items-center rounded-full bg-po-rail text-po-dim max-sm:hidden\"\n >\n <WrenchIcon className=\"size-4\" />\n </span>\n <div className=\"flex min-w-0 flex-1 flex-col\">\n <span className=\"text-sm text-po-dim\">Tool call</span>\n <div className=\"flex min-w-0 items-center gap-2 text-base\">\n <span className=\"min-w-0 truncate font-semibold text-po-hi\">{title}</span>\n <div data-slot=\"message-item-summary\" className=\"flex min-w-0 flex-1 items-center gap-2 overflow-hidden\">\n {children}\n </div>\n </div>\n </div>\n </>\n );\n}\n\nexport interface MessageItemProps\n extends Omit<ComponentProps<'div'>, 'children'>, VariantProps<typeof messageItemVariants> {\n /** Whether the header offers the expand toggle. A toggle that reveals nothing reads as broken, so the card decides. */\n expandable?: boolean;\n defaultExpanded?: boolean;\n /** Controlled mode; pair with onExpandedChange. Omit it and the item keeps its own state. */\n expanded?: boolean;\n onExpandedChange?: (expanded: boolean) => void;\n /** Plain content, or a function of the item's state for a card that picks its lines by `expanded`. */\n children?: ReactNode | ((state: MessageItemState) => ReactNode);\n}\n\nexport function MessageItem({\n className,\n tone,\n expandable = false,\n defaultExpanded = false,\n expanded,\n onExpandedChange,\n children,\n ...props\n}: MessageItemProps) {\n const [own, setOwn] = useState(defaultExpanded);\n const group = useContext(MessageItemGroupContext);\n const headerAccessory = useContext(MessageItemHeaderAccessoryContext);\n const grouped = group !== null;\n // A grouped row is also inside an item; the row style already handles it.\n const nested = useContext(InsideMessageItemContext) && !grouped;\n const current = expanded ?? own;\n const state: MessageItemState = {\n tone: tone ?? 'neutral',\n headerAccessory,\n expandable,\n expanded: current,\n nested,\n toggle: () => {\n const next = !current;\n if (expanded === undefined) setOwn(next);\n onExpandedChange?.(next);\n },\n };\n return (\n <MessageItemContext.Provider value={state}>\n <MessageItemHeaderAccessoryContext value={null}>\n <InsideMessageItemContext value>\n <div\n data-slot=\"message-item\"\n data-expanded={current}\n data-grouped={grouped}\n data-nested={nested}\n className={cn(\n grouped ? messageItemRowVariants({ tone }) : nested ? 'min-w-0' : messageItemVariants({ tone }),\n className,\n )}\n {...props}\n >\n {typeof children === 'function' ? children(state) : children}\n </div>\n </InsideMessageItemContext>\n </MessageItemHeaderAccessoryContext>\n </MessageItemContext.Provider>\n );\n}\n\nexport interface MessageItemGroupProps\n extends Omit<ComponentProps<'div'>, 'title'>, VariantProps<typeof messageItemVariants> {\n /** The bold label at the left of the group header: the tool the run belongs to. */\n title: ReactNode;\n /** The line beside it, such as how many calls the group holds. */\n summary?: ReactNode;\n /** The badge text; defaults to the tone's label, null hides the badge. */\n badge?: ReactNode | null;\n defaultExpanded?: boolean;\n children?: ReactNode;\n}\n\n/**\n * One frame around a run of items that belong together.\n *\n * A transcript that calls the same tool five times in a row is five identical\n * frames, five gutter labels and five gaps, and the repetition reads louder\n * than the commands do. The group draws the frame once and each item inside it\n * becomes a row: same header, same expand, no card of its own. The tone still\n * belongs to the row, as an edge, so a failure in the middle of a run is not\n * flattened into the group's own outcome.\n */\nexport function MessageItemGroup({\n className,\n tone,\n title,\n summary,\n badge,\n children,\n defaultExpanded = false,\n ...props\n}: MessageItemGroupProps) {\n return (\n <MessageItem\n tone={tone}\n expandable\n defaultExpanded={defaultExpanded}\n className={className}\n data-slot=\"message-item-group\"\n {...props}\n >\n {({ expanded }) => (\n <>\n <MessageItemHeader title={title} badge={badge}>\n <span className=\"min-w-0 flex-1 truncate text-po-faint\">{summary}</span>\n </MessageItemHeader>\n {expanded ? (\n <MessageItemGroupContext.Provider value={{ tone: tone ?? 'neutral' }}>\n <div className=\"flex flex-col divide-y divide-po-border-soft border-t border-po-border-soft\">\n {children}\n </div>\n </MessageItemGroupContext.Provider>\n ) : null}\n </>\n )}\n </MessageItem>\n );\n}\n\n/** The tone a tool call's item wears: running while the tool runs, then its outcome. */\nexport function toolTone(state: { running: boolean; isError: boolean }): StatusTone {\n return state.running ? 'running' : state.isError ? 'error' : 'ok';\n}\n\n/** The badge text a tone reads as when the header is not told otherwise; empty hides the badge. */\nexport const STATUS_LABEL: Readonly<Record<StatusTone, string>> = {\n neutral: '',\n running: 'Running',\n ok: 'Completed',\n error: 'Failed',\n info: 'Info',\n accent: 'Note',\n};\n\nconst OUTCOME_ICON: Partial<Record<StatusTone, ReactNode>> = {\n running: <LoaderIcon aria-hidden className=\"size-3 animate-spin\" />,\n ok: <CheckIcon aria-hidden className=\"size-3\" />,\n error: <AlertIcon aria-hidden className=\"size-3\" />,\n};\n\n/** The sentence-case outcome pill, led by the tone's icon. A narrow card (a phone, a side drawer) keeps the icon and leaves the words to screen readers. */\nfunction OutcomeBadge({ tone, children, ...props }: ComponentProps<typeof StatusBadge> & { tone: StatusTone }) {\n return (\n <StatusBadge tone={tone} size=\"md\" className=\"gap-1 font-semibold\" {...props}>\n {OUTCOME_ICON[tone]}\n <span className={OUTCOME_ICON[tone] ? '@max-md:sr-only' : undefined}>{children}</span>\n </StatusBadge>\n );\n}\n\nexport interface MessageItemHeaderProps extends Omit<ComponentProps<'div'>, 'title'> {\n /** The bold label at the left: the tool name. */\n title: ReactNode;\n /** The badge text; defaults to the tone's label, null hides the badge. */\n badge?: ReactNode | null;\n /** The summary beside the title; it gets the remaining width. */\n children?: ReactNode;\n}\n\n/** Inside a group these two are the quiet outcome: the group's header has already said it. */\nconst SILENT_IN_GROUP: ReadonlySet<StatusTone> = new Set<StatusTone>(['ok', 'neutral']);\n\n/**\n * The title row: label, summary, the tone's badge, and the expand toggle when\n * the item is expandable.\n *\n * A row inside a group says less. The group's header has already named the\n * tool and stated the run's outcome, so the row drops its title and speaks up\n * only when something went wrong or is still going: five OK badges down a run\n * of five are noise, and the one ERROR among them is the point.\n *\n * A nested item keeps its title but drops the chip and the caption: the outer\n * item already said this is a tool call. Its outcome is a bare glyph, as the\n * outer item's own call rows show it; the word stays for screen readers.\n */\nexport function MessageItemHeader({ className, title, badge, children, ...props }: MessageItemHeaderProps) {\n const { headerAccessory, tone, expandable, expanded, toggle, nested } = useMessageItem();\n const group = useContext(MessageItemGroupContext);\n const defaultLabel = group !== null && SILENT_IN_GROUP.has(tone) ? null : STATUS_LABEL[tone];\n const label = badge === undefined ? defaultLabel : badge;\n return (\n <div\n data-slot=\"message-item-header\"\n className={cn(\n '@container flex min-h-11 items-center gap-3 px-4 py-3 text-sm text-po-dim',\n nested && 'min-h-9 px-0 py-0',\n className,\n )}\n {...props}\n >\n {group !== null ? (\n <div data-slot=\"message-item-summary\" className=\"flex min-w-0 flex-1 items-center gap-2\">\n {children}\n </div>\n ) : nested ? (\n <div className=\"flex min-w-0 flex-1 items-center gap-2 text-base\">\n <span className=\"min-w-0 truncate font-semibold text-po-hi\">{title}</span>\n <div data-slot=\"message-item-summary\" className=\"flex min-w-0 flex-1 items-center gap-2 overflow-hidden\">\n {children}\n </div>\n </div>\n ) : (\n <ToolCallLead title={title}>{children}</ToolCallLead>\n )}\n {headerAccessory}\n {label === null || label === '' ? null : nested && OUTCOME_ICON[tone] ? (\n <span data-testid=\"tool-status\" className={cn(messageItemStatusVariants({ tone }), 'flex w-3 justify-center')}>\n {OUTCOME_ICON[tone]}\n <span className=\"sr-only\">{label}</span>\n </span>\n ) : (\n <OutcomeBadge tone={tone} data-testid=\"tool-status\">\n {label}\n </OutcomeBadge>\n )}\n {expandable ? (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n data-testid=\"tool-expand\"\n aria-expanded={expanded}\n aria-label={expanded ? 'collapse' : 'expand'}\n onClick={toggle}\n className=\"text-po-dim hover:text-po-blue\"\n >\n {expanded ? <ChevronUpIcon className=\"size-4\" /> : <ChevronDownIcon className=\"size-4\" />}\n </Button>\n ) : null}\n </div>\n );\n}\n\n/** The body under the header, on the card's own surface; a nested item's body needs no rule or inset. */\nexport function MessageItemBody({ className, ...props }: ComponentProps<'div'>) {\n const { nested } = useMessageItem();\n return (\n <div\n data-slot=\"message-item-body\"\n className={cn(\n 'border-t border-po-border-soft px-4 py-3 text-base text-po-dim',\n nested && 'border-t-0 px-0 py-1',\n className,\n )}\n {...props}\n />\n );\n}\n\n/** The glyph a tone reads as in a status line. */\nexport const STATUS_GLYPH: Readonly<Record<StatusTone, string>> = {\n neutral: '…',\n running: '◐',\n ok: '✓',\n error: '✗',\n info: '●',\n accent: '●',\n};\n\nexport const messageItemStatusVariants = cva('shrink-0', {\n variants: {\n tone: {\n neutral: 'text-po-faint',\n running: 'text-po-yellow',\n ok: 'text-po-green',\n error: 'text-po-red',\n info: 'text-po-blue',\n accent: 'text-po-magenta',\n } satisfies Record<StatusTone, string>,\n },\n defaultVariants: { tone: 'neutral' },\n});\n\nexport interface MessageItemStatusProps extends ComponentProps<'span'>, VariantProps<typeof messageItemStatusVariants> {\n /** Replaces the tone's glyph. */\n glyph?: string;\n /** Renders as a button that expands the item: the \"N more line(s)\" hint. Only className carries over. */\n expands?: boolean;\n}\n\n/** The one-line status under a body: `◐ running`, `✗ failed`, `✓ done`, or the hint that more is hidden. */\nexport function MessageItemStatus({\n className,\n tone,\n glyph,\n expands = false,\n children,\n ...props\n}: MessageItemStatusProps) {\n const { toggle } = useMessageItem();\n const content = (\n <>\n <span className={messageItemStatusVariants({ tone })}>{glyph ?? STATUS_GLYPH[tone ?? 'neutral']}</span>\n <span>{children}</span>\n </>\n );\n if (expands) {\n return (\n <button\n type=\"button\"\n data-slot=\"message-item-status\"\n data-testid=\"tool-more\"\n onClick={toggle}\n className={cn(\n 'flex min-h-6 min-w-6 cursor-pointer items-center gap-1.5 text-po-faint hover:text-po-blue',\n className,\n )}\n >\n {content}\n </button>\n );\n }\n return (\n <span\n data-slot=\"message-item-status\"\n className={cn('flex items-center gap-1.5 text-po-faint', className)}\n {...props}\n >\n {content}\n </span>\n );\n}\n"],"mappings":"A,8OAkBA,MAAaqB,GAAA,EAAoCrB,EAAAA,cAAAA,CAAyB,IAAI,EAaxEsB,GAAA,EAAqBtB,EAAAA,cAAAA,CAAgC,CACzD,KAAM,UACN,WAAY,GACZ,SAAU,GACV,WAAc,IAAA,EAChB,CAAC,EAGKuB,GAAA,EAA2BvB,EAAAA,cAAAA,CAAc,EAAK,EAGpD,SAAgBwB,GAAmC,CACjD,OAAA,EAAOvB,EAAAA,WAAAA,CAAWqB,CAAkB,CACtC,CAQA,MAAMG,GAAA,EAA0BzB,EAAAA,cAAAA,CAA2C,IAAI,EAMlE0B,GAAA,EAAsBxB,EAAAA,IAAAA,CAAI,sDAAuD,CAC5F,SAAU,CAAE,KAAM,CAAE,GAAGC,EAAAA,YAAa,GAAI,uBAAwB,CAAE,EAClE,gBAAiB,CAAE,KAAM,SAAU,CACrC,CAAC,EAGYwB,GAAA,EAAyBzB,EAAAA,IAAAA,CAAI,+CAAgD,CACxF,SAAU,CAAE,KAAM,CAAE,GAAGC,EAAAA,YAAa,GAAI,qBAAsB,QAAS,oBAAqB,CAAE,EAC9F,gBAAiB,CAAE,KAAM,SAAU,CACrC,CAAC,EAGD,SAASyB,EAAa,CAAE,QAAO,YAAwD,CACrF,MACE,iBAAA,EAAAX,EAAA,KAAA,CAAAA,EAAA,SAAA,CAAA,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,OAAD,CACE,cAAA,GACA,UAAU,4FAEV,SAAA,iBAAA,EAAAA,EAAA,IAAA,CAACb,EAAAA,OAAD,CAAY,UAAU,QAAU,CAAA,CAC5B,CAAA,EACN,iBAAA,EAAAa,E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qD,CAChE,QAAS,IACT,QAAS,IACT,GAAI,IACJ,MAAO,IACP,KAAM,IACN,OAAQ,GACV,EAEaJ,GAAA,EAA4BxD,EAAAA,IAAAA,CAAI,WAAY,CACvD,SAAU,CACR,KAAM,CACJ,QAAS,gBACT,QAAS,iBACT,GAAI,gBACJ,MAAO,cACP,KAAM,eACN,OAAQ,iBACV,CACF,EACA,gBAAiB,CAAE,KAAM,SAAU,CACrC,CAAC,EAUD,SAAgB6D,EAAkB,CAChC,YACA,OACA,QACA,UAAU,GACV,WACA,GAAGhC,GACsB,CACzB,GAAM,CAAE,UAAWP,EAAe,EAC5BwC,EACJ,iBAAA,EAAA/C,EAAA,KAAA,CAAAA,EAAA,SAAA,CAAA,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAWyC,EAA0B,CAAE,MAAK,CAAC,EAAI,SAAAO,GAASH,EAAapB,GAAQ,UAAiB,CAAA,EACtG,iBAAA,EAAAzB,EAAA,IAAA,CAAC,OAAD,CAAO,UAAe,CAAA,CACtB,CAAA,CAAA,EAkBJ,OAhBIiD,EAEA,iBAAA,EAAAjD,EAAA,IAAA,CAAC,SAAD,CACE,KAAK,SACL,YAAU,sBACV,cAAY,YACZ,QAAS2C,EACT,UAAWtD,EAAAA,GACT,4FACAuC,CACF,EAEC,SAAAmB,CACK,CAAA,EAIV,iBAAA,EAAA/C,EAAA,IAAA,CAAC,OAAD,CACE,YAAU,sBACV,UAAWX,EAAAA,GAAG,0CAA2CuC,CAAS,EAClE,GAAId,EAEH,SAAAiC,CACG,CAAA,CAEV,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageLines.cjs","names":["cva","cn","require_cn","react_jsx_runtime","messageLineVariants","MessageLines","props","className","lines","line","index"],"sources":["../../../src/components/MessageLines.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport type { MessageLineTone as Tone } from '../types/tone';\n\n/** One line of a message body, with the tone the card's pure view logic chose for it. */\nexport type MessageLineTone = Tone;\n\nexport interface MessageLine {\n text: string;\n tone: MessageLineTone;\n bold?: boolean;\n indent?: boolean;\n}\n\nexport const messageLineVariants = cva('whitespace-pre-wrap break-words', {\n variants: {\n tone: {\n hi: 'text-po-hi',\n text: 'text-po-text',\n dim: 'text-po-dim',\n muted: 'text-po-faint',\n success: 'text-po-green',\n error: 'text-po-red',\n warning: 'text-po-yellow',\n accent: 'text-po-blue',\n } satisfies Record<Tone, string>,\n bold: { true: 'font-bold', false: '' },\n indent: { true: 'pl-4', false: '' },\n },\n defaultVariants: { tone: 'dim', bold: false, indent: false },\n});\n\nexport interface MessageLinesProps extends ComponentProps<'div'> {\n lines: readonly MessageLine[];\n}\n\n/** A body of toned lines: what a card's view helper computed, drawn one line per row. */\nexport function MessageLines({ className, lines, ...props }: MessageLinesProps) {\n return (\n <div data-slot=\"message-lines\" className={cn('flex flex-col gap-0.5', className)} {...props}>\n {lines.map((line, index) => (\n <div\n key={`${String(index)}-${line.text}`}\n className={messageLineVariants({ tone: line.tone, bold: line.bold === true, indent: line.indent === true })}\n >\n {line.text}\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":"oEAgBA,MAAaI,GAAA,
|
|
1
|
+
{"version":3,"file":"MessageLines.cjs","names":["cva","cn","require_cn","react_jsx_runtime","messageLineVariants","MessageLines","props","className","lines","line","index"],"sources":["../../../src/components/MessageLines.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport type { MessageLineTone as Tone } from '../types/tone';\n\n/** One line of a message body, with the tone the card's pure view logic chose for it. */\nexport type MessageLineTone = Tone;\n\nexport interface MessageLine {\n text: string;\n tone: MessageLineTone;\n bold?: boolean;\n indent?: boolean;\n}\n\nexport const messageLineVariants = cva('whitespace-pre-wrap break-words', {\n variants: {\n tone: {\n hi: 'text-po-hi',\n text: 'text-po-text',\n dim: 'text-po-dim',\n muted: 'text-po-faint',\n success: 'text-po-green',\n error: 'text-po-red',\n warning: 'text-po-yellow',\n accent: 'text-po-blue',\n } satisfies Record<Tone, string>,\n bold: { true: 'font-bold', false: '' },\n indent: { true: 'pl-4', false: '' },\n },\n defaultVariants: { tone: 'dim', bold: false, indent: false },\n});\n\nexport interface MessageLinesProps extends ComponentProps<'div'> {\n lines: readonly MessageLine[];\n}\n\n/** A body of toned lines: what a card's view helper computed, drawn one line per row. */\nexport function MessageLines({ className, lines, ...props }: MessageLinesProps) {\n return (\n <div data-slot=\"message-lines\" className={cn('flex flex-col gap-0.5', className)} {...props}>\n {lines.map((line, index) => (\n <div\n key={`${String(index)}-${line.text}`}\n className={messageLineVariants({ tone: line.tone, bold: line.bold === true, indent: line.indent === true })}\n >\n {line.text}\n </div>\n ))}\n </div>\n );\n}\n"],"mappings":"A,oEAgBA,MAAaI,GAAA,E,kCAAsBJ,CAAAA,CAAAA,IAAAA,CAAI,kCAAmC,CACxE,SAAU,CACR,KAAM,CACJ,GAAI,aACJ,KAAM,eACN,IAAK,cACL,MAAO,gBACP,QAAS,gBACT,MAAO,cACP,QAAS,iBACT,OAAQ,cACV,EACA,KAAM,CAAE,KAAM,YAAa,MAAO,EAAG,EACrC,OAAQ,CAAE,KAAM,OAAQ,MAAO,EAAG,CACpC,EACA,gBAAiB,CAAE,KAAM,MAAO,KAAM,GAAO,OAAQ,EAAM,CAC7D,CAAC,EAOD,SAAgBK,EAAa,CAAE,YAAW,QAAO,GAAGC,GAA4B,CAC9E,MACE,iBAAA,EAAAH,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,gBAAgB,UAAWF,EAAAA,GAAG,wBAAyBM,CAAS,EAAG,GAAID,EACnF,SAAAE,EAAM,KAAK,EAAM,IAChB,iBAAA,EAAAL,EAAA,IAAA,CAAC,MAAD,CAEE,UAAWC,EAAoB,CAAE,KAAMK,EAAK,KAAM,KAAMA,EAAK,OAAS,GAAM,OAAQA,EAAK,SAAW,EAAK,CAAC,EAEzG,SAAAA,EAAK,IACH,EAJE,GAAG,OAAOC,CAAK,EAAE,GAAGD,EAAK,MAI3B,CACN,CACE,CAAA,CAET,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionList.cjs","names":["cva","cn","useRef","optionMarker","require_cn","require_optionList","react_jsx_runtime","react","class_variance_authority","optionListVariants","optionRowVariants","optionMarkerVariants","OptionRow","props","active","className","marker","children","OptionLabel","density","OptionList","container","cursor","testIdPrefix","options","index","option","onCursorChange","onSelect"],"sources":["../../../src/components/OptionList.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { type ComponentProps, type ReactNode, useEffect, useRef } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { optionMarker } from '../lib/optionList';\n\nexport const optionListVariants = cva('flex min-h-0 flex-1 flex-col overflow-y-auto', {\n variants: {\n /** The compact rows of a bar popover, or the roomier rows of a modal. */\n density: { compact: 'gap-0.5 p-1.5', comfortable: 'gap-1.5' },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\nexport const optionRowVariants = cva('flex shrink-0 cursor-pointer items-center text-left outline-none', {\n variants: {\n density: {\n compact: 'gap-2.5 rounded-md px-2 py-[7px]',\n comfortable: 'min-h-[42px] gap-3 rounded-md border px-[11px] py-2 text-sm text-po-text transition-colors',\n },\n active: { true: '', false: '' },\n },\n compoundVariants: [\n { density: 'compact', active: true, class: 'bg-po-tint-green' },\n {\n density: 'comfortable',\n active: true,\n class: 'border-po-edge-green bg-po-tint-green',\n },\n {\n density: 'comfortable',\n active: false,\n class: 'border-po-border-soft',\n },\n ],\n defaultVariants: { density: 'comfortable', active: false },\n});\n\nexport const optionMarkerVariants = cva('flex shrink-0 items-center justify-center rounded-full font-semibold', {\n variants: {\n density: {\n compact: 'h-[15px] w-[15px] border border-po-border text-2xs text-po-faint',\n comfortable: 'h-[18px] w-[18px] bg-po-deep text-xs text-po-dim',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\nexport interface OptionRowProps extends ComponentProps<'button'>, VariantProps<typeof optionRowVariants> {\n /** The digit or bullet in the row's leading circle; omit it for a row with no shortcut. */\n marker?: ReactNode;\n}\n\n/**\n * One row of an option list, exported on its own so a surface with richer\n * rows than a plain string still wears the list's shape instead of restating\n * it. Children render straight into the row, so a row is free to hold a name\n * and a description side by side; OptionLabel is the single-string case.\n * `role=\"option\"` means a row belongs inside a `listbox`.\n */\nexport function OptionRow({ className, density, active, marker, children, ...props }: OptionRowProps) {\n return (\n <button\n type=\"button\"\n role=\"option\"\n data-slot=\"option-row\"\n aria-selected={active ?? false}\n data-cursor={active ?? false}\n className={cn(optionRowVariants({ density, active }), className)}\n {...props}\n >\n {marker === undefined ? null : <span className={optionMarkerVariants({ density })}>{marker}</span>}\n {children}\n </button>\n );\n}\n\n/** A row's single-string label: it takes the remaining width and clips or wraps by density. */\nexport function OptionLabel({\n className,\n density,\n ...props\n}: ComponentProps<'span'> & VariantProps<typeof optionListVariants>) {\n return (\n <span\n data-slot=\"option-label\"\n className={cn(\n 'min-w-0 flex-1',\n density === 'compact' ? 'truncate text-sm text-po-text' : 'break-words',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport interface OptionListProps\n extends Omit<ComponentProps<'div'>, 'onSelect'>, VariantProps<typeof optionListVariants> {\n options: readonly string[];\n /** The highlighted row, owned by the surface so its own focused element can drive it. */\n cursor: number;\n onCursorChange: (cursor: number) => void;\n onSelect: (option: string) => void;\n /** Rows are `${testIdPrefix}-${index}`; the list itself is the plural, so a prefix query for a row never catches it. */\n testIdPrefix: string;\n}\n\n/**\n * The answers a select surface offers, wherever it is framed.\n *\n * The agent decides how many options there are, and a real one runs past\n * twenty, so the list cannot rely on the digit shortcuts alone. The cursor is\n * controlled rather than owned here because the surface around it is what the\n * overlay library focuses: keys arrive there, and taking focus away from it to\n * a list would fight the library for it and break the escape and outside-click\n * behaviour that focus carries. Pair it with handleOptionListKey.\n */\nexport function OptionList({\n className,\n options,\n cursor,\n onCursorChange,\n onSelect,\n testIdPrefix,\n density = 'comfortable',\n ...props\n}: OptionListProps) {\n const container = useRef<HTMLDivElement>(null);\n\n // Keep the highlighted row visible when the keyboard moves it past the edge.\n useEffect(() => {\n container.current?.children[cursor]?.scrollIntoView({ block: 'nearest' });\n }, [cursor]);\n\n return (\n <div\n ref={container}\n role=\"listbox\"\n aria-label=\"options\"\n data-slot=\"option-list\"\n data-testid={`${testIdPrefix}s`}\n className={cn(optionListVariants({ density }), className)}\n {...props}\n >\n {options.map((option, index) => (\n <OptionRow\n key={option}\n density={density}\n active={index === cursor}\n marker={optionMarker(index)}\n data-testid={`${testIdPrefix}-${String(index)}`}\n title={option}\n onMouseEnter={() => onCursorChange(index)}\n onClick={() => onSelect(option)}\n >\n <OptionLabel density={density}>{option}</OptionLabel>\n </OptionRow>\n ))}\n </div>\n );\n}\n"],"mappings":"gKAMA,MAAaS,GAAA,EAAqBT,EAAAA,IAAAA,CAAI,+CAAgD,CACpF,SAAU,CAER,QAAS,CAAE,QAAS,gBAAiB,YAAa,SAAU,CAC9D,EACA,gBAAiB,CAAE,QAAS,aAAc,CAC5C,CAAC,EAEYU,GAAA,EAAoBV,EAAAA,IAAAA,CAAI,mEAAoE,CACvG,SAAU,CACR,QAAS,CACP,QAAS,mCACT,YAAa,4FACf,EACA,OAAQ,CAAE,KAAM,GAAI,MAAO,EAAG,CAChC,EACA,iBAAkB,CAChB,CAAE,QAAS,UAAW,OAAQ,GAAM,MAAO,kBAAmB,EAC9D,CACE,QAAS,cACT,OAAQ,GACR,MAAO,uCACT,EACA,CACE,QAAS,cACT,OAAQ,GACR,MAAO,uBACT,CACF,EACA,gBAAiB,CAAE,QAAS,cAAe,OAAQ,EAAM,CAC3D,CAAC,EAEYW,GAAA,EAAuBX,EAAAA,IAAAA,CAAI,uEAAwE,CAC9G,SAAU,CACR,QAAS,CACP,QAAS,mEACT,YAAa,kDACf,CACF,EACA,gBAAiB,CAAE,QAAS,aAAc,CAC5C,CAAC,EAcD,SAAgBY,EAAU,CAAE,YAAW,UAAS,SAAQ,SAAQ,WAAU,GAAGC,GAAyB,CACpG,MACE,iBAAA,EAAAP,EAAA,KAAA,CAAC,SAAD,CACE,KAAK,SACL,KAAK,SACL,YAAU,aACV,gBAAeQ,GAAU,GACzB,cAAaA,GAAU,GACvB,UAAWb,EAAAA,GAAGS,EAAkB,CAAE,UAAS,QAAO,CAAC,EAAGK,CAAS,EAC/D,GAAIF,EAPN,SAAA,CASGG,IAAW,IAAA,GAAY,KAAO,iBAAA,EAAAV,EAAA,IAAA,CAAC,OAAD,CAAM,UAAWK,EAAqB,CAAE,SAAQ,CAAC,EAAI,SAAAK,CAAa,CAAA,EAChGC,CACK,
|
|
1
|
+
{"version":3,"file":"OptionList.cjs","names":["cva","cn","useRef","optionMarker","require_cn","require_optionList","react_jsx_runtime","react","class_variance_authority","optionListVariants","optionRowVariants","optionMarkerVariants","OptionRow","props","active","className","marker","children","OptionLabel","density","OptionList","container","cursor","testIdPrefix","options","index","option","onCursorChange","onSelect"],"sources":["../../../src/components/OptionList.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { type ComponentProps, type ReactNode, useEffect, useRef } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { optionMarker } from '../lib/optionList';\n\nexport const optionListVariants = cva('flex min-h-0 flex-1 flex-col overflow-y-auto', {\n variants: {\n /** The compact rows of a bar popover, or the roomier rows of a modal. */\n density: { compact: 'gap-0.5 p-1.5', comfortable: 'gap-1.5' },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\nexport const optionRowVariants = cva('flex shrink-0 cursor-pointer items-center text-left outline-none', {\n variants: {\n density: {\n compact: 'gap-2.5 rounded-md px-2 py-[7px]',\n comfortable: 'min-h-[42px] gap-3 rounded-md border px-[11px] py-2 text-sm text-po-text transition-colors',\n },\n active: { true: '', false: '' },\n },\n compoundVariants: [\n { density: 'compact', active: true, class: 'bg-po-tint-green' },\n {\n density: 'comfortable',\n active: true,\n class: 'border-po-edge-green bg-po-tint-green',\n },\n {\n density: 'comfortable',\n active: false,\n class: 'border-po-border-soft',\n },\n ],\n defaultVariants: { density: 'comfortable', active: false },\n});\n\nexport const optionMarkerVariants = cva('flex shrink-0 items-center justify-center rounded-full font-semibold', {\n variants: {\n density: {\n compact: 'h-[15px] w-[15px] border border-po-border text-2xs text-po-faint',\n comfortable: 'h-[18px] w-[18px] bg-po-deep text-xs text-po-dim',\n },\n },\n defaultVariants: { density: 'comfortable' },\n});\n\nexport interface OptionRowProps extends ComponentProps<'button'>, VariantProps<typeof optionRowVariants> {\n /** The digit or bullet in the row's leading circle; omit it for a row with no shortcut. */\n marker?: ReactNode;\n}\n\n/**\n * One row of an option list, exported on its own so a surface with richer\n * rows than a plain string still wears the list's shape instead of restating\n * it. Children render straight into the row, so a row is free to hold a name\n * and a description side by side; OptionLabel is the single-string case.\n * `role=\"option\"` means a row belongs inside a `listbox`.\n */\nexport function OptionRow({ className, density, active, marker, children, ...props }: OptionRowProps) {\n return (\n <button\n type=\"button\"\n role=\"option\"\n data-slot=\"option-row\"\n aria-selected={active ?? false}\n data-cursor={active ?? false}\n className={cn(optionRowVariants({ density, active }), className)}\n {...props}\n >\n {marker === undefined ? null : <span className={optionMarkerVariants({ density })}>{marker}</span>}\n {children}\n </button>\n );\n}\n\n/** A row's single-string label: it takes the remaining width and clips or wraps by density. */\nexport function OptionLabel({\n className,\n density,\n ...props\n}: ComponentProps<'span'> & VariantProps<typeof optionListVariants>) {\n return (\n <span\n data-slot=\"option-label\"\n className={cn(\n 'min-w-0 flex-1',\n density === 'compact' ? 'truncate text-sm text-po-text' : 'break-words',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport interface OptionListProps\n extends Omit<ComponentProps<'div'>, 'onSelect'>, VariantProps<typeof optionListVariants> {\n options: readonly string[];\n /** The highlighted row, owned by the surface so its own focused element can drive it. */\n cursor: number;\n onCursorChange: (cursor: number) => void;\n onSelect: (option: string) => void;\n /** Rows are `${testIdPrefix}-${index}`; the list itself is the plural, so a prefix query for a row never catches it. */\n testIdPrefix: string;\n}\n\n/**\n * The answers a select surface offers, wherever it is framed.\n *\n * The agent decides how many options there are, and a real one runs past\n * twenty, so the list cannot rely on the digit shortcuts alone. The cursor is\n * controlled rather than owned here because the surface around it is what the\n * overlay library focuses: keys arrive there, and taking focus away from it to\n * a list would fight the library for it and break the escape and outside-click\n * behaviour that focus carries. Pair it with handleOptionListKey.\n */\nexport function OptionList({\n className,\n options,\n cursor,\n onCursorChange,\n onSelect,\n testIdPrefix,\n density = 'comfortable',\n ...props\n}: OptionListProps) {\n const container = useRef<HTMLDivElement>(null);\n\n // Keep the highlighted row visible when the keyboard moves it past the edge.\n useEffect(() => {\n container.current?.children[cursor]?.scrollIntoView({ block: 'nearest' });\n }, [cursor]);\n\n return (\n <div\n ref={container}\n role=\"listbox\"\n aria-label=\"options\"\n data-slot=\"option-list\"\n data-testid={`${testIdPrefix}s`}\n className={cn(optionListVariants({ density }), className)}\n {...props}\n >\n {options.map((option, index) => (\n <OptionRow\n key={option}\n density={density}\n active={index === cursor}\n marker={optionMarker(index)}\n data-testid={`${testIdPrefix}-${String(index)}`}\n title={option}\n onMouseEnter={() => onCursorChange(index)}\n onClick={() => onSelect(option)}\n >\n <OptionLabel density={density}>{option}</OptionLabel>\n </OptionRow>\n ))}\n </div>\n );\n}\n"],"mappings":"A,gKAMA,MAAaS,GAAA,EAAqBT,EAAAA,IAAAA,CAAI,+CAAgD,CACpF,SAAU,CAER,QAAS,CAAE,QAAS,gBAAiB,YAAa,SAAU,CAC9D,EACA,gBAAiB,CAAE,QAAS,aAAc,CAC5C,CAAC,EAEYU,GAAA,EAAoBV,EAAAA,IAAAA,CAAI,mEAAoE,CACvG,SAAU,CACR,QAAS,CACP,QAAS,mCACT,YAAa,4FACf,EACA,OAAQ,CAAE,KAAM,GAAI,MAAO,EAAG,CAChC,EACA,iBAAkB,CAChB,CAAE,QAAS,UAAW,OAAQ,GAAM,MAAO,kBA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AM,CAAC,EAGT,iBAAA,EAAAhB,EAAA,IAAA,CAAC,MAAD,CACE,IAAKe,EACL,KAAK,UACL,aAAW,UACX,YAAU,cACV,cAAa,GAAGE,EAAa,GAC7B,UAAWtB,EAAAA,GAAGQ,EAAmB,CAAE,SAAQ,CAAC,EAAGM,CAAS,EACxD,GAAIF,EAEH,SAAAW,EAAQ,KAAK,EAAQ,IACpB,iBAAA,EAAAlB,EAAA,IAAA,CAACM,EAAD,CAEW,UACT,OAAQa,IAAUH,EAClB,OAAQnB,EAAAA,aAAasB,CAAK,EAC1B,cAAa,GAAGF,EAAa,GAAG,OAAOE,CAAK,IAC5C,MAAOC,EACP,iBAAoBC,EAAeF,CAAK,EACxC,YAAeG,EAASF,CAAM,EAE9B,SAAA,iBAAA,EAAApB,EAAA,IAAA,CAACY,EAAD,CAAsB,UAAU,SAAAQ,CAAoB,CAAA,CAC3C,EAVJA,CAUI,CACZ,CACE,CAAA,CAET,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.cjs","names":["Slot","cn","require_cn","radix_ui","react_jsx_runtime","Panel","props","Component","asChild","className","PanelHeader","PanelBody"],"sources":["../../../src/components/Panel.tsx"],"sourcesContent":["import { Slot } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\nexport interface PanelProps extends ComponentProps<'div'> {\n /** Render the child element instead of a <div>, so a list row can be a panel. */\n asChild?: boolean;\n}\n\n/** The bordered card surface: a tool card, a run card, a provider row. */\nexport function Panel({ className, asChild = false, ...props }: PanelProps) {\n const Component = asChild ? Slot.Root : 'div';\n return (\n <Component\n data-slot=\"panel\"\n className={cn('overflow-hidden rounded-md border border-po-border bg-po-panel', className)}\n {...props}\n />\n );\n}\n\n/** A panel's title row. */\nexport function PanelHeader({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div data-slot=\"panel-header\" className={cn('flex min-h-8 items-center gap-2 px-[11px]', className)} {...props} />\n );\n}\n\n/** A panel's recessed body: the deep well the header sits above. */\nexport function PanelBody({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"panel-body\"\n className={cn('border-t border-po-border-soft bg-po-deep px-3 py-2 text-sm text-po-dim', className)}\n {...props}\n />\n );\n}\n"],"mappings":"0FAWA,SAAgBK,EAAM,CAAE,YAAW,UAAU,GAAO,GAAGC,GAAqB,CAC1E,IAAMC,EAAYC,EAAUR,EAAAA,KAAK,KAAO,MACxC,MACE,iBAAA,EAAAI,EAAA,IAAA,CAACG,EAAD,CACE,YAAU,QACV,UAAWN,EAAAA,GAAG,iEAAkEQ,CAAS,EACzF,GAAIH,CACL,CAAA,CAEL,CAGA,SAAgBI,EAAY,CAAE,YAAW,GAAGJ,GAAgC,CAC1E,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,eAAe,UAAWH,EAAAA,GAAG,4CAA6CQ,CAAS,EAAG,GAAIH,CAAQ,CAAA,CAErH,CAGA,SAAgBK,EAAU,CAAE,YAAW,GAAGL,GAAgC,CACxE,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,aACV,UAAWH,EAAAA,GAAG,0EAA2EQ,CAAS,EAClG,GAAIH,CACL,CAAA,CAEL"}
|
|
1
|
+
{"version":3,"file":"Panel.cjs","names":["Slot","cn","require_cn","radix_ui","react_jsx_runtime","Panel","props","Component","asChild","className","PanelHeader","PanelBody"],"sources":["../../../src/components/Panel.tsx"],"sourcesContent":["import { Slot } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\nexport interface PanelProps extends ComponentProps<'div'> {\n /** Render the child element instead of a <div>, so a list row can be a panel. */\n asChild?: boolean;\n}\n\n/** The bordered card surface: a tool card, a run card, a provider row. */\nexport function Panel({ className, asChild = false, ...props }: PanelProps) {\n const Component = asChild ? Slot.Root : 'div';\n return (\n <Component\n data-slot=\"panel\"\n className={cn('overflow-hidden rounded-md border border-po-border bg-po-panel', className)}\n {...props}\n />\n );\n}\n\n/** A panel's title row. */\nexport function PanelHeader({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div data-slot=\"panel-header\" className={cn('flex min-h-8 items-center gap-2 px-[11px]', className)} {...props} />\n );\n}\n\n/** A panel's recessed body: the deep well the header sits above. */\nexport function PanelBody({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"panel-body\"\n className={cn('border-t border-po-border-soft bg-po-deep px-3 py-2 text-sm text-po-dim', className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,0FAWA,SAAgBK,EAAM,CAAE,YAAW,UAAU,GAAO,GAAGC,GAAqB,CAC1E,IAAMC,EAAYC,EAAUR,EAAAA,KAAK,KAAO,MACxC,MACE,iBAAA,EAAAI,EAAA,IAAA,CAACG,EAAD,CACE,YAAU,QACV,UAAWN,EAAAA,GAAG,iEAAkEQ,CAAS,EACzF,GAAIH,CACL,CAAA,CAEL,CAGA,SAAgBI,EAAY,CAAE,YAAW,GAAGJ,GAAgC,CAC1E,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,eAAe,UAAWH,EAAAA,GAAG,4CAA6CQ,CAAS,EAAG,GAAIH,CAAQ,CAAA,CAErH,CAGA,SAAgBK,EAAU,CAAE,YAAW,GAAGL,GAAgC,CACxE,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,aACV,UAAWH,EAAAA,GAAG,0EAA2EQ,CAAS,EAClG,GAAIH,CACL,CAAA,CAEL,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime");const t=/(?<![\w./:~-])\/(?:[^\s"'`<>()[\]{}/]+\/)*[^\s"'`<>()[\]{}/]+\.[A-Za-z\d]+(?![\w/])/gu;function n({text:n,onFileLink:r}){if(r===void 0)return n;let i=[],a=0;for(let o of n.matchAll(t)){let t=r(o[0],!0);t!==void 0&&(i.push(n.slice(a,o.index),/* @__PURE__ */ (0,e.jsx)(`button`,{type:`button`,"data-testid":`path-text-link`,title:`open ${o[0]}`,onClick:t,className:`cursor-pointer break-all text-left text-po-blue underline decoration-po-blue/50 hover:text-po-hi`,children:o[0]},o.index)),a=o.index+o[0].length)}return a===0?n:(i.push(n.slice(a)),/* @__PURE__ */ (0,e.jsx)(e.Fragment,{children:i}))}exports.PathText=n;
|
|
2
|
+
//# sourceMappingURL=PathText.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PathText.cjs","names":["react_jsx_runtime","ABSOLUTE_PATH","PathText","onFileLink","text","parts","last","match","open"],"sources":["../../../src/components/PathText.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport type { FileLinkHandler } from './Markdown';\n\n/**\n * An absolute file path with an extension, not glued to a word, a URL or\n * another path. ponytail: POSIX paths without spaces only; quote-aware\n * matching is the upgrade when a tool prints paths with spaces.\n */\nconst ABSOLUTE_PATH = /(?<![\\w./:~-])\\/(?:[^\\s\"'`<>()[\\]{}/]+\\/)*[^\\s\"'`<>()[\\]{}/]+\\.[A-Za-z\\d]+(?![\\w/])/gu;\n\nexport interface PathTextProps {\n text: string;\n /** The host's file opener, called with each path as an explicit reference; a path it declines stays text. */\n onFileLink?: FileLinkHandler;\n}\n\n/**\n * Plain tool output with the absolute file paths in it turned into links, so\n * a tool that reports where it saved something lets the reader open it.\n * Whether a path opens is the host's answer, the same one Markdown asks.\n */\nexport function PathText({ text, onFileLink }: PathTextProps) {\n if (onFileLink === undefined) return text;\n const parts: ReactNode[] = [];\n let last = 0;\n for (const match of text.matchAll(ABSOLUTE_PATH)) {\n const open = onFileLink(match[0], true);\n if (open === undefined) continue;\n parts.push(\n text.slice(last, match.index),\n <button\n key={match.index}\n type=\"button\"\n data-testid=\"path-text-link\"\n title={`open ${match[0]}`}\n onClick={open}\n className=\"cursor-pointer break-all text-left text-po-blue underline decoration-po-blue/50 hover:text-po-hi\"\n >\n {match[0]}\n </button>,\n );\n last = match.index + match[0].length;\n }\n if (last === 0) return text;\n parts.push(text.slice(last));\n return <>{parts}</>;\n}\n"],"mappings":"A,mCASA,MAAMC,EAAgB,wFAatB,SAAgBC,EAAS,CAAE,OAAM,cAA6B,CAC5D,GAAIC,IAAe,IAAA,GAAW,OAAOC,EACrC,IAAMC,EAAqB,CAAC,EACxBC,EAAO,EACX,IAAK,IAAMC,KAASH,EAAK,SAASH,CAAa,EAAG,CAChD,IAAMO,EAAOL,EAAWI,EAAM,GAAI,EAAI,EAClCC,IAAS,IAAA,KACbH,EAAM,KACJD,EAAK,MAAME,EAAMC,EAAM,KAAK,EAC5B,iBAAA,EAAAP,EAAA,IAAA,CAAC,SAAD,CAEE,KAAK,SACL,cAAY,iBACZ,MAAO,QAAQO,EAAM,KACrB,QAASC,EACT,UAAU,mGAET,SAAAD,EAAM,EACD,EARDA,EAAM,KAQL,CACV,EACA,EAAOA,EAAM,MAAQA,EAAM,EAAE,CAAC,OAChC,CAGA,OAFID,IAAS,EAAUF,GACvBC,EAAM,KAAKD,EAAK,MAAME,CAAI,CAAC,EACpB,iBAAA,EAAAN,EAAA,IAAA,CAAAA,EAAA,SAAA,CAAA,SAAGK,CAAQ,CAAA,EACpB,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PdfPreview.cjs","names":["useRef","useState","cn","Button","require_cn","require_Button","react_jsx_runtime","react","EMPTY_STATE","boundedPage","page","pageCount","resolvePdfViewportRegion","bounds","left","rectangle","right","top","bottom","canvasBlob","canvas","resolve","type","quality","PdfPreview","testId","canvasRef","documentRef","renderTask","setPage","pageState","setPageState","error","setError","disposed","loading","getDocument","src","document","reason","source","pdfPage","viewport","context","task","controllerRef","next","className","path","value"],"sources":["../../../src/components/PdfPreview.tsx"],"sourcesContent":["import type { PDFDocumentProxy, PDFPageProxy } from 'pdfjs-dist/webpack.mjs';\nimport { useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\ntype PdfLoadingTask = ReturnType<typeof import('pdfjs-dist/webpack.mjs').getDocument>;\n\nexport interface PdfNormalizedRectangle {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\nexport interface PdfPageState {\n page: number;\n pageCount: number;\n sourceWidth: number;\n sourceHeight: number;\n}\n\nexport interface PdfPageRegion {\n page: number;\n rect: PdfNormalizedRectangle;\n}\n\nexport interface PdfPreviewController {\n getState: () => PdfPageState;\n setPage: (page: number) => void;\n resolveViewportRegion: (rectangle: {\n left: number;\n top: number;\n right: number;\n bottom: number;\n }) => PdfPageRegion | null;\n capturePage: (type?: 'image/png' | 'image/jpeg', quality?: number) => Promise<Blob | null>;\n}\n\nexport interface PdfPreviewProps {\n src: string;\n path: string;\n className?: string;\n 'data-testid'?: string;\n controllerRef?: import('react').Ref<PdfPreviewController>;\n}\n\nconst EMPTY_STATE: PdfPageState = { page: 1, pageCount: 0, sourceWidth: 0, sourceHeight: 0 };\n\nfunction boundedPage(page: number, pageCount: number): number {\n if (!Number.isFinite(page) || pageCount <= 0) return 1;\n return Math.min(pageCount, Math.max(1, Math.trunc(page)));\n}\n\nexport function resolvePdfViewportRegion(\n page: number,\n bounds: { left: number; top: number; right: number; bottom: number; width: number; height: number },\n rectangle: { left: number; top: number; right: number; bottom: number },\n): PdfPageRegion | null {\n if (bounds.width <= 0 || bounds.height <= 0) return null;\n const left = Math.max(bounds.left, Math.min(bounds.right, rectangle.left));\n const right = Math.max(bounds.left, Math.min(bounds.right, rectangle.right));\n const top = Math.max(bounds.top, Math.min(bounds.bottom, rectangle.top));\n const bottom = Math.max(bounds.top, Math.min(bounds.bottom, rectangle.bottom));\n if (right <= left || bottom <= top) return null;\n return {\n page,\n rect: {\n x: (left - bounds.left) / bounds.width,\n y: (top - bounds.top) / bounds.height,\n width: (right - left) / bounds.width,\n height: (bottom - top) / bounds.height,\n },\n };\n}\nfunction canvasBlob(\n canvas: HTMLCanvasElement,\n type: 'image/png' | 'image/jpeg',\n quality?: number,\n): Promise<Blob | null> {\n return new Promise((resolve) => canvas.toBlob(resolve, type, quality));\n}\n\n/** A page-aware PDF canvas. Coordinates resolve against PDF page geometry rather than an opaque browser iframe. */\nexport function PdfPreview({ src, path, className, controllerRef, 'data-testid': testId }: PdfPreviewProps) {\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const documentRef = useRef<PDFDocumentProxy | null>(null);\n const renderTask = useRef<{ cancel(): void } | null>(null);\n const [page, setPage] = useState(1);\n const [pageState, setPageState] = useState<PdfPageState>(EMPTY_STATE);\n const [error, setError] = useState<string | undefined>();\n\n useEffect(() => {\n let disposed = false;\n let loading: PdfLoadingTask | undefined;\n // pdfjs is imported on demand: `pdfjs-dist/webpack.mjs` spins up its worker\n // at module scope, so a static import would make every consumer of this\n // package pay for the worker whether or not it ever shows a PDF.\n void import('pdfjs-dist/webpack.mjs')\n .then(({ getDocument }) => {\n if (disposed) return undefined;\n loading = getDocument({ url: src });\n return loading.promise.then((document) => {\n if (disposed) return;\n documentRef.current = document;\n setError(undefined);\n setPage(1);\n setPageState({ ...EMPTY_STATE, pageCount: document.numPages });\n });\n })\n .catch((reason: unknown) => {\n if (!disposed) setError(reason instanceof Error ? reason.message : String(reason));\n });\n return () => {\n disposed = true;\n void loading?.destroy();\n renderTask.current?.cancel();\n renderTask.current = null;\n documentRef.current = null;\n };\n }, [src]);\n\n useEffect(() => {\n const document = documentRef.current;\n const canvas = canvasRef.current;\n if (document === null || canvas === null) return;\n let disposed = false;\n void document\n .getPage(page)\n .then((pdfPage: PDFPageProxy) => {\n if (disposed) return;\n const source = pdfPage.getViewport({ scale: 1 });\n const viewport = pdfPage.getViewport({ scale: 1.5 });\n canvas.width = Math.ceil(viewport.width);\n canvas.height = Math.ceil(viewport.height);\n setPageState({ page, pageCount: document.numPages, sourceWidth: source.width, sourceHeight: source.height });\n const context = canvas.getContext('2d');\n if (context === null) return;\n const task = pdfPage.render({ canvas, canvasContext: context, viewport });\n renderTask.current = task;\n return task.promise;\n })\n .catch((reason: unknown) => {\n if (!disposed && (reason as { name?: unknown }).name !== 'RenderingCancelledException') {\n setError(reason instanceof Error ? reason.message : String(reason));\n }\n });\n return () => {\n disposed = true;\n renderTask.current?.cancel();\n renderTask.current = null;\n };\n }, [page, pageState.pageCount]);\n\n useImperativeHandle(\n controllerRef,\n () => ({\n getState: () => pageState,\n setPage: (next) => setPage(boundedPage(next, pageState.pageCount)),\n resolveViewportRegion: (rectangle) => {\n const canvas = canvasRef.current;\n if (canvas === null || pageState.pageCount === 0) return null;\n return resolvePdfViewportRegion(pageState.page, canvas.getBoundingClientRect(), rectangle);\n },\n capturePage: async (type = 'image/png', quality) => {\n const canvas = canvasRef.current;\n return canvas === null ? null : await canvasBlob(canvas, type, quality);\n },\n }),\n [pageState],\n );\n\n return (\n <section data-testid={testId} data-kind=\"pdf\" className={cn('flex min-h-0 flex-col gap-2', className)}>\n <div className=\"flex items-center justify-between gap-2 text-sm text-po-dim\">\n <span>{path}</span>\n <div className=\"flex items-center gap-2\">\n <Button\n size=\"xs\"\n variant=\"ghost\"\n disabled={page <= 1}\n onClick={() => setPage((value) => Math.max(1, value - 1))}\n >\n previous\n </Button>\n <span data-testid={testId === undefined ? undefined : `${testId}-page`}>\n {pageState.pageCount === 0 ? 'loading' : `${page} / ${pageState.pageCount}`}\n </span>\n <Button\n size=\"xs\"\n variant=\"ghost\"\n disabled={pageState.pageCount === 0 || page >= pageState.pageCount}\n onClick={() => setPage((value) => boundedPage(value + 1, pageState.pageCount))}\n >\n next\n </Button>\n </div>\n </div>\n {error === undefined ? null : <output className=\"text-sm text-po-red\">{error}</output>}\n <div className=\"min-h-0 overflow-auto rounded border border-po-border bg-po-deep\">\n <canvas ref={canvasRef} aria-label={path} className=\"mx-auto block max-w-full\" />\n </div>\n </section>\n );\n}\n"],"mappings":"iHA+CA,MAAMQ,EAA4B,CAAE,KAAM,EAAG,UAAW,EAAG,YAAa,EAAG,aAAc,CAAE,EAE3F,SAASC,EAAY,EAAc,EAA2B,CAE5D,MADI,CAA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AAQ,EAClB,YAAemB,EAAS,GAAU,KAAK,IAAI,EAAGoB,EAAQ,CAAC,CAAC,EACzD,SAAA,UAEO,CAAA,EACR,iBAAA,EAAA3C,EAAA,IAAA,CAAC,OAAD,CAAM,cAAamB,IAAW,IAAA,GAAY,IAAA,GAAY,GAAGA,EAAO,OAC7D,SAAAK,EAAU,YAAc,EAAI,UAAY,GAAGpB,EAAK,KAAKoB,EAAU,WAC5D,CAAA,EACN,iBAAA,EAAAxB,EAAA,IAAA,CAACH,EAAAA,OAAD,CACE,KAAK,KACL,QAAQ,QACR,SAAU2B,EAAU,YAAc,GAAKpB,GAAQoB,EAAU,UACzD,YAAeD,EAAS,GAAUpB,EAAYwC,EAAQ,EAAGnB,EAAU,SAAS,CAAC,EAC9E,SAAA,MAEO,CAAA,CACL,CACF,CAAA,CAAA,IACJE,IAAU,IAAA,GAAY,KAAO,iBAAA,EAAA1B,EAAA,IAAA,CAAC,SAAD,CAAQ,UAAU,sBAAuB,SAAA0B,CAAc,CAAA,EACrF,iBAAA,EAAA1B,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mEACb,SAAA,iBAAA,EAAAA,EAAA,IAAA,CAAC,SAAD,CAAQ,IAAKoB,EAAW,aAAYsB,EAAM,UAAU,0BAA4B,CAAA,CAC7E,CAAA,CACE,GAEb"}
|
|
1
|
+
{"version":3,"file":"PdfPreview.cjs","names":["useRef","useState","cn","Button","require_cn","require_Button","react_jsx_runtime","react","EMPTY_STATE","boundedPage","page","pageCount","resolvePdfViewportRegion","bounds","left","rectangle","right","top","bottom","canvasBlob","canvas","resolve","type","quality","PdfPreview","testId","canvasRef","documentRef","renderTask","setPage","pageState","setPageState","error","setError","disposed","loading","getDocument","src","document","reason","source","pdfPage","viewport","context","task","controllerRef","next","className","path","value"],"sources":["../../../src/components/PdfPreview.tsx"],"sourcesContent":["import type { PDFDocumentProxy, PDFPageProxy } from 'pdfjs-dist/webpack.mjs';\nimport { useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\ntype PdfLoadingTask = ReturnType<typeof import('pdfjs-dist/webpack.mjs').getDocument>;\n\nexport interface PdfNormalizedRectangle {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\nexport interface PdfPageState {\n page: number;\n pageCount: number;\n sourceWidth: number;\n sourceHeight: number;\n}\n\nexport interface PdfPageRegion {\n page: number;\n rect: PdfNormalizedRectangle;\n}\n\nexport interface PdfPreviewController {\n getState: () => PdfPageState;\n setPage: (page: number) => void;\n resolveViewportRegion: (rectangle: {\n left: number;\n top: number;\n right: number;\n bottom: number;\n }) => PdfPageRegion | null;\n capturePage: (type?: 'image/png' | 'image/jpeg', quality?: number) => Promise<Blob | null>;\n}\n\nexport interface PdfPreviewProps {\n src: string;\n path: string;\n className?: string;\n 'data-testid'?: string;\n controllerRef?: import('react').Ref<PdfPreviewController>;\n}\n\nconst EMPTY_STATE: PdfPageState = { page: 1, pageCount: 0, sourceWidth: 0, sourceHeight: 0 };\n\nfunction boundedPage(page: number, pageCount: number): number {\n if (!Number.isFinite(page) || pageCount <= 0) return 1;\n return Math.min(pageCount, Math.max(1, Math.trunc(page)));\n}\n\nexport function resolvePdfViewportRegion(\n page: number,\n bounds: { left: number; top: number; right: number; bottom: number; width: number; height: number },\n rectangle: { left: number; top: number; right: number; bottom: number },\n): PdfPageRegion | null {\n if (bounds.width <= 0 || bounds.height <= 0) return null;\n const left = Math.max(bounds.left, Math.min(bounds.right, rectangle.left));\n const right = Math.max(bounds.left, Math.min(bounds.right, rectangle.right));\n const top = Math.max(bounds.top, Math.min(bounds.bottom, rectangle.top));\n const bottom = Math.max(bounds.top, Math.min(bounds.bottom, rectangle.bottom));\n if (right <= left || bottom <= top) return null;\n return {\n page,\n rect: {\n x: (left - bounds.left) / bounds.width,\n y: (top - bounds.top) / bounds.height,\n width: (right - left) / bounds.width,\n height: (bottom - top) / bounds.height,\n },\n };\n}\nfunction canvasBlob(\n canvas: HTMLCanvasElement,\n type: 'image/png' | 'image/jpeg',\n quality?: number,\n): Promise<Blob | null> {\n return new Promise((resolve) => canvas.toBlob(resolve, type, quality));\n}\n\n/** A page-aware PDF canvas. Coordinates resolve against PDF page geometry rather than an opaque browser iframe. */\nexport function PdfPreview({ src, path, className, controllerRef, 'data-testid': testId }: PdfPreviewProps) {\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const documentRef = useRef<PDFDocumentProxy | null>(null);\n const renderTask = useRef<{ cancel(): void } | null>(null);\n const [page, setPage] = useState(1);\n const [pageState, setPageState] = useState<PdfPageState>(EMPTY_STATE);\n const [error, setError] = useState<string | undefined>();\n\n useEffect(() => {\n let disposed = false;\n let loading: PdfLoadingTask | undefined;\n // pdfjs is imported on demand: `pdfjs-dist/webpack.mjs` spins up its worker\n // at module scope, so a static import would make every consumer of this\n // package pay for the worker whether or not it ever shows a PDF.\n void import('pdfjs-dist/webpack.mjs')\n .then(({ getDocument }) => {\n if (disposed) return undefined;\n loading = getDocument({ url: src });\n return loading.promise.then((document) => {\n if (disposed) return;\n documentRef.current = document;\n setError(undefined);\n setPage(1);\n setPageState({ ...EMPTY_STATE, pageCount: document.numPages });\n });\n })\n .catch((reason: unknown) => {\n if (!disposed) setError(reason instanceof Error ? reason.message : String(reason));\n });\n return () => {\n disposed = true;\n void loading?.destroy();\n renderTask.current?.cancel();\n renderTask.current = null;\n documentRef.current = null;\n };\n }, [src]);\n\n useEffect(() => {\n const document = documentRef.current;\n const canvas = canvasRef.current;\n if (document === null || canvas === null) return;\n let disposed = false;\n void document\n .getPage(page)\n .then((pdfPage: PDFPageProxy) => {\n if (disposed) return;\n const source = pdfPage.getViewport({ scale: 1 });\n const viewport = pdfPage.getViewport({ scale: 1.5 });\n canvas.width = Math.ceil(viewport.width);\n canvas.height = Math.ceil(viewport.height);\n setPageState({ page, pageCount: document.numPages, sourceWidth: source.width, sourceHeight: source.height });\n const context = canvas.getContext('2d');\n if (context === null) return;\n const task = pdfPage.render({ canvas, canvasContext: context, viewport });\n renderTask.current = task;\n return task.promise;\n })\n .catch((reason: unknown) => {\n if (!disposed && (reason as { name?: unknown }).name !== 'RenderingCancelledException') {\n setError(reason instanceof Error ? reason.message : String(reason));\n }\n });\n return () => {\n disposed = true;\n renderTask.current?.cancel();\n renderTask.current = null;\n };\n }, [page, pageState.pageCount]);\n\n useImperativeHandle(\n controllerRef,\n () => ({\n getState: () => pageState,\n setPage: (next) => setPage(boundedPage(next, pageState.pageCount)),\n resolveViewportRegion: (rectangle) => {\n const canvas = canvasRef.current;\n if (canvas === null || pageState.pageCount === 0) return null;\n return resolvePdfViewportRegion(pageState.page, canvas.getBoundingClientRect(), rectangle);\n },\n capturePage: async (type = 'image/png', quality) => {\n const canvas = canvasRef.current;\n return canvas === null ? null : await canvasBlob(canvas, type, quality);\n },\n }),\n [pageState],\n );\n\n return (\n <section data-testid={testId} data-kind=\"pdf\" className={cn('flex min-h-0 flex-col gap-2', className)}>\n <div className=\"flex items-center justify-between gap-2 text-sm text-po-dim\">\n <span>{path}</span>\n <div className=\"flex items-center gap-2\">\n <Button\n size=\"xs\"\n variant=\"ghost\"\n disabled={page <= 1}\n onClick={() => setPage((value) => Math.max(1, value - 1))}\n >\n previous\n </Button>\n <span data-testid={testId === undefined ? undefined : `${testId}-page`}>\n {pageState.pageCount === 0 ? 'loading' : `${page} / ${pageState.pageCount}`}\n </span>\n <Button\n size=\"xs\"\n variant=\"ghost\"\n disabled={pageState.pageCount === 0 || page >= pageState.pageCount}\n onClick={() => setPage((value) => boundedPage(value + 1, pageState.pageCount))}\n >\n next\n </Button>\n </div>\n </div>\n {error === undefined ? null : <output className=\"text-sm text-po-red\">{error}</output>}\n <div className=\"min-h-0 overflow-auto rounded border border-po-border bg-po-deep\">\n <canvas ref={canvasRef} aria-label={path} className=\"mx-auto block max-w-full\" />\n </div>\n </section>\n );\n}\n"],"mappings":"A,iHA+CA,MAAMQ,EAA4B,CAAE,KAAM,EAAG,UAAW,EAAG,YAAa,EAAG,aAAc,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AACH,EAAAA,OAAD,CACE,KAAK,KACL,QAAQ,QACR,SAAUO,GAAQ,EAClB,YAAemB,EAAS,GAAU,KAAK,IAAI,EAAGoB,EAAQ,CAAC,CAAC,EACzD,SAAA,UAEO,CAAA,EACR,iBAAA,EAAA3C,EAAA,IAAA,CAAC,OAAD,CAAM,cAAamB,IAAW,IAAA,GAAY,IAAA,GAAY,GAAGA,EAAO,OAC7D,SAAAK,EAAU,YAAc,EAAI,UAAY,GAAGpB,EAAK,KAAKoB,EAAU,WAC5D,CAAA,EACN,iBAAA,EAAAxB,EAAA,IAAA,CAACH,EAAAA,OAAD,CACE,KAAK,KACL,QAAQ,QACR,SAAU2B,EAAU,YAAc,GAAKpB,GAAQoB,EAAU,UACzD,YAAeD,EAAS,GAAUpB,EAAYwC,EAAQ,EAAGnB,EAAU,SAAS,CAAC,EAC9E,SAAA,MAEO,CAAA,CACL,CACF,CAAA,CAAA,C,GACJE,IAAU,IAAA,GAAY,KAAO,iBAAA,EAAA1B,EAAA,IAAA,CAAC,SAAD,CAAQ,UAAU,sBAAuB,SAAA0B,CAAc,CAAA,EACrF,iBAAA,EAAA1B,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,mEACb,SAAA,iBAAA,EAAAA,EAAA,IAAA,CAAC,SAAD,CAAQ,IAAKoB,EAAW,aAAYsB,EAAM,UAAU,0BAA4B,CAAA,CAC7E,CAAA,CACE,C,EAEb,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../icons/icons.cjs");const e=require("../lib/cn.cjs"),t=require("./Button.cjs"),n=require("./Input.cjs");require("../lib/optionList.cjs");const r=require("./Kbd.cjs"),i=require("../lib/picker.cjs"),a=require("./Popover.cjs");let o=require("react/jsx-runtime"),s=require("react"),c=require("lucide-react");function l({
|
|
1
|
+
require("../icons/icons.cjs");const e=require("../lib/cn.cjs"),t=require("./Button.cjs"),n=require("./Input.cjs");require("../lib/optionList.cjs");const r=require("./Kbd.cjs"),i=require("../lib/picker.cjs"),a=require("./Popover.cjs");let o=require("react/jsx-runtime"),s=require("react"),c=require("lucide-react");function l({items:e,value:t,multiple:n=!1,actions:r=!1,onSelect:a,onApply:o,filterable:c=e.length>9,onKeyDown:l}){let[u,d]=(0,s.useState)(``),[f,p]=(0,s.useState)(()=>new Set(t)),m=i.filterPickerItems(e,u),[h,g]=(0,s.useState)(()=>i.initialPickerCursor(e,t)),_=Math.min(h,Math.max(0,m.length-1)),[v,y]=(0,s.useState)(null),b=(0,s.useId)(),x=m.length>0?`${b}-${String(_)}`:void 0;(0,s.useEffect)(()=>{let e=v?.children[_];v!==null&&e!==void 0&&(e.offsetTop<v.scrollTop?v.scrollTo({top:e.offsetTop-6}):e.offsetTop+e.offsetHeight>v.scrollTop+v.clientHeight&&v.scrollTo({top:e.offsetTop+e.offsetHeight-v.clientHeight+6}))},[_,v]);let S=e=>n?f.has(e.value):t.includes(e.value),C=e=>{e!==void 0&&e.disabledReason===void 0&&(n?p(t=>i.toggleDraft(t,e.value)):a?.(e.value))};return{filter:u,setFilter:d,setCursor:g,shown:m,at:_,setBox:y,listId:b,activeId:x,checked:S,pick:C,handleKey:e=>{if(l?.(e),e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.nativeEvent.isComposing)return;let t=e.target;if(t.closest(`[data-slot="picker-slot"], [data-slot="popover-footer"], [data-slot="picker-actions"]`)||t.closest(`[data-slot="picker-item"]`)&&(e.key===`Enter`||e.key===` `))return;let r=i.pickerKeyAction(e.key,{count:m.length,cursor:_,multiple:n,filterable:c});r!==null&&(e.preventDefault(),e.stopPropagation(),r.kind===`move`?(g(r.cursor),t.closest(`[data-slot="picker-item"]`)&&(v?.children[r.cursor])?.focus()):(g(r.index),C(m[r.index])))},draft:f,changed:n&&i.draftChanged(f,t),apply:()=>o?.(i.appliedValues(e,f)),filterable:c,multiple:n,actions:r}}function u({state:e,placeholder:t,filterProps:r}){return/* @__PURE__ */ (0,o.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-po-border-soft px-3`,children:[/* @__PURE__ */ (0,o.jsx)(c.Search,{"aria-hidden":!0,className:`size-3.5 shrink-0 text-po-faint`}),/* @__PURE__ */ (0,o.jsx)(n.Input,{variant:`bare`,"data-slot":`picker-filter`,role:e.actions?`searchbox`:`combobox`,"aria-expanded":!e.actions||void 0,"aria-controls":e.listId,"aria-haspopup":e.actions?void 0:`listbox`,"aria-autocomplete":e.actions?void 0:`list`,"aria-activedescendant":e.activeId,"aria-label":t,autoFocus:!0,value:e.filter,placeholder:t,onChange:t=>{e.setFilter(t.target.value),e.setCursor(0)},className:`h-9 w-full`,...r})]})}function d({state:t,onBox:n,loading:r,items:i,labelledBy:a,label:s,className:l}){let{shown:u,at:d,actions:f,multiple:p,filterable:m}=t;return/* @__PURE__ */ (0,o.jsxs)(`div`,{ref:n,id:t.listId,role:f?`menu`:`listbox`,"aria-labelledby":a,"aria-label":s,"aria-multiselectable":f?void 0:p,"aria-activedescendant":m?void 0:t.activeId,tabIndex:m?void 0:0,"data-slot":`picker-list`,className:e.cn(`relative flex min-h-0 flex-col gap-0.5 overflow-y-auto`,l),children:[r!==void 0&&i.length===0?/* @__PURE__ */ (0,o.jsx)(`div`,{className:`flex items-center gap-2 px-2.5 py-2 text-base text-po-dim`,children:r}):u.length===0?/* @__PURE__ */ (0,o.jsx)(`div`,{className:`px-2.5 py-2 text-base text-po-dim`,children:`Nothing matches`}):null,u.map((n,r)=>{let i=t.checked(n),a=n.disabledReason!==void 0;return/* @__PURE__ */ (0,o.jsxs)(`button`,{type:`button`,id:`${t.listId}-${String(r)}`,role:f?`menuitem`:`option`,tabIndex:-1,"data-slot":`picker-item`,"data-value":n.value,"data-cursor":r===d,"aria-selected":f?void 0:i,"aria-disabled":a,disabled:a,...n.props,title:n.disabledReason??n.subtitle,onMouseMove:()=>{r!==d&&t.setCursor(r)},onClick:()=>{t.setCursor(r),t.pick(n)},className:e.cn(`flex w-full shrink-0 cursor-pointer items-center gap-3 rounded-md px-2.5 py-2 text-left outline-none transition-colors`,r===d&&`bg-po-deep`,i&&`bg-po-tint-green`,i&&r===d&&`brightness-110`,a&&`cursor-not-allowed opacity-60`),children:[n.lead===void 0?null:/* @__PURE__ */ (0,o.jsx)(`span`,{className:`flex shrink-0 items-center`,children:n.lead}),/* @__PURE__ */ (0,o.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[/* @__PURE__ */ (0,o.jsx)(`span`,{className:e.cn(`truncate text-base`,i?`font-semibold text-po-hi`:`font-medium text-po-text`),children:n.title}),n.disabledReason!==void 0||n.subtitle!==void 0?/* @__PURE__ */ (0,o.jsx)(`span`,{className:`truncate text-sm text-po-dim`,children:n.disabledReason??n.subtitle}):null]}),n.trail===void 0?null:/* @__PURE__ */ (0,o.jsx)(`span`,{className:`flex shrink-0 items-center text-sm text-po-dim`,children:n.trail}),/* @__PURE__ */ (0,o.jsx)(`span`,{"aria-hidden":!0,className:e.cn(`flex size-4 shrink-0 items-center justify-center text-po-green`,!f&&(p?`rounded-sm border`:`rounded-full border`),!f&&(i?`border-po-green`:`border-po-border`),p&&i&&`bg-po-green text-po-on-selected`),children:f?/* @__PURE__ */ (0,o.jsx)(`span`,{className:e.cn(`size-1.5 rounded-full`,i?`bg-po-green`:`bg-po-faint`)}):p?i?/* @__PURE__ */ (0,o.jsx)(c.Check,{className:`size-3`}):null:i?/* @__PURE__ */ (0,o.jsx)(`span`,{className:`size-2 rounded-full bg-po-green`}):null})]},n.value)})]})}function f({title:n,meta:c,items:f,value:p,multiple:m=!1,actions:h=!1,onSelect:g,onApply:_,onCancel:v,filterable:y,filterPlaceholder:b=`Filter`,filterProps:x,loading:S,footer:C,className:w,onKeyDown:T,...E}){let D=l({items:f,value:p,multiple:m,actions:h,onSelect:g,onApply:_,...y===void 0?{}:{filterable:y},onKeyDown:T}),O=(0,s.useId)(),k=h?`enter opens`:i.pickerHint(m,D.filterable);return/* @__PURE__ */ (0,o.jsxs)(a.PopoverContent,{side:`top`,"data-slot":`picker`,onKeyDown:D.handleKey,className:e.cn(`w-[400px]`,w),...E,children:[/* @__PURE__ */ (0,o.jsxs)(a.PopoverHeader,{className:`h-10 bg-po-panel`,children:[/* @__PURE__ */ (0,o.jsx)(`span`,{id:O,"data-slot":`picker-title`,className:`truncate text-base font-semibold text-po-hi`,children:n}),c===void 0?null:/* @__PURE__ */ (0,o.jsx)(`span`,{"data-slot":`picker-meta`,className:`min-w-0 truncate text-sm text-po-dim`,children:c})]}),D.filterable?/* @__PURE__ */ (0,o.jsx)(u,{state:D,placeholder:b,filterProps:x}):null,/* @__PURE__ */ (0,o.jsx)(d,{state:D,onBox:D.setBox,loading:S,items:f,labelledBy:O,className:`max-h-80 p-1.5`}),C===void 0?null:/* @__PURE__ */ (0,o.jsx)(`div`,{"data-slot":`picker-slot`,className:`flex flex-col border-t border-po-border-soft`,children:C}),/* @__PURE__ */ (0,o.jsxs)(a.PopoverFooter,{className:`min-h-10`,children:[/* @__PURE__ */ (0,o.jsxs)(`span`,{"data-slot":`picker-hint`,className:`flex min-w-0 items-center gap-1.5 truncate`,children:[k,m?null:/* @__PURE__ */ (0,o.jsxs)(o.Fragment,{children:[` · `,/* @__PURE__ */ (0,o.jsx)(r.Kbd,{children:`esc`}),` closes`]})]}),m?/* @__PURE__ */ (0,o.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5`,children:[/* @__PURE__ */ (0,o.jsx)(t.Button,{variant:`ghost`,size:`sm`,"data-slot":`picker-cancel`,onClick:v,children:`Cancel`}),/* @__PURE__ */ (0,o.jsxs)(t.Button,{variant:`primary`,size:`sm`,"data-slot":`picker-apply`,disabled:!D.changed,onClick:D.apply,children:[`Apply`,D.draft.size>0?` (${String(D.draft.size)})`:``]})]}):null]})]})}function p({label:n,items:r,value:i,multiple:a=!1,actions:s=!1,onSelect:c,onApply:f,onCancel:p,filterable:m,filterPlaceholder:h=`Filter`,filterProps:g,loading:_,footer:v,className:y,onKeyDown:b,...x}){let S=l({items:r,value:i,multiple:a,actions:s,onSelect:c,onApply:f,...m===void 0?{}:{filterable:m},onKeyDown:b});return/* @__PURE__ */ (0,o.jsxs)(`div`,{"data-slot":`picker`,onKeyDown:S.handleKey,className:e.cn(`flex flex-col`,y),...x,children:[S.filterable?/* @__PURE__ */ (0,o.jsx)(u,{state:S,placeholder:h,filterProps:g}):null,/* @__PURE__ */ (0,o.jsx)(d,{state:S,onBox:S.setBox,loading:_,items:r,label:n,className:`py-1`}),v===void 0?null:/* @__PURE__ */ (0,o.jsx)(`div`,{"data-slot":`picker-slot`,className:`flex flex-col pt-2`,children:v}),a?/* @__PURE__ */ (0,o.jsxs)(`div`,{"data-slot":`picker-actions`,className:`flex items-center justify-end gap-1.5 pt-2`,children:[/* @__PURE__ */ (0,o.jsx)(t.Button,{variant:`ghost`,size:`sm`,"data-slot":`picker-cancel`,onClick:p,children:`Cancel`}),/* @__PURE__ */ (0,o.jsxs)(t.Button,{variant:`primary`,size:`sm`,"data-slot":`picker-apply`,disabled:!S.changed,onClick:S.apply,children:[`Apply`,S.draft.size>0?` (${String(S.draft.size)})`:``]})]}):null]})}exports.PickerContent=f,exports.PickerList=p;
|
|
2
2
|
//# sourceMappingURL=Picker.cjs.map
|