@agimon-ai/po-web-components 0.0.0-alpha.13 → 0.0.0-alpha.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1333) hide show
  1. package/LICENSE +191 -1
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.d.mts +14 -3
  4. package/dist/index.mjs +1 -1
  5. package/dist/markdownMediaSlot.cjs +1 -0
  6. package/dist/markdownMediaSlot.d.mts +2 -0
  7. package/dist/markdownMediaSlot.mjs +1 -0
  8. package/dist/mcpAppHost.cjs +1 -0
  9. package/dist/mcpAppHost.d.mts +4 -0
  10. package/dist/mcpAppHost.mjs +1 -0
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. 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
  96. 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
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. 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
  107. 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
  108. 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
  109. 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
  110. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/context.d.mts +103 -0
  111. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/context.d.mts.map +1 -0
  112. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/events.d.mts +235 -0
  113. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/events.d.mts.map +1 -0
  114. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/fiber.d.mts +168 -0
  115. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/fiber.d.mts.map +1 -0
  116. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/index.d.mts +8 -0
  117. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/logger.d.mts +92 -0
  118. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/logger.d.mts.map +1 -0
  119. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/reflect.d.mts +188 -0
  120. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/reflect.d.mts.map +1 -0
  121. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/registry.d.mts +199 -0
  122. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/registry.d.mts.map +1 -0
  123. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/service.d.mts +57 -0
  124. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/service.d.mts.map +1 -0
  125. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/utils.d.mts +37 -0
  126. package/dist/node_modules/.pnpm/@deepseek-ai_cordis@4.0.5/node_modules/@deepseek-ai/cordis/lib/types/utils.d.mts.map +1 -0
  127. package/dist/node_modules/.pnpm/@deepseek-ai_cosmokit@1.8.6/node_modules/@deepseek-ai/cosmokit/lib/types/misc.d.mts +9 -0
  128. package/dist/node_modules/.pnpm/@deepseek-ai_cosmokit@1.8.6/node_modules/@deepseek-ai/cosmokit/lib/types/misc.d.mts.map +1 -0
  129. 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
  130. 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
  131. 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
  132. 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
  133. 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
  134. 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
  135. 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
  136. 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
  137. 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
  138. 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
  139. 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
  140. 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
  141. 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
  142. 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
  143. 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
  144. 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
  145. 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
  146. 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
  147. 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
  148. 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
  149. 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
  150. 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
  151. 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
  152. 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
  153. 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
  154. 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
  155. 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
  156. 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
  157. 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
  158. 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
  159. 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
  160. 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
  161. 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
  162. 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
  163. 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
  164. 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
  165. 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
  166. 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
  167. 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
  168. 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
  169. 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
  170. 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
  171. 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
  172. 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
  173. 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
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. 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
  181. 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
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. 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
  191. 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
  192. 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
  193. 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
  194. 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
  195. 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
  196. 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
  197. 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
  198. 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
  199. 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
  200. 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
  201. 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
  202. 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
  203. 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
  204. 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
  205. 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
  206. 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
  207. 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
  208. 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
  209. 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
  210. 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
  211. 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
  212. 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
  213. 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
  214. package/dist/node_modules/.pnpm/@earendil-works_pi-schema@1.5.0/node_modules/@earendil-works/pi-schema/dist/builders.d.mts +23 -0
  215. 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
  216. 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
  217. 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
  218. package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/index.d.mts +47 -0
  219. 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
  220. package/dist/node_modules/.pnpm/@earendil-works_pi-telemetry@1.5.0/node_modules/@earendil-works/pi-telemetry/dist/metrics.d.mts +31 -0
  221. 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
  222. package/dist/node_modules/.pnpm/@modelcontextprotocol_server@2.3.1/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts +2 -2
  223. package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts +79 -0
  224. package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts.map +1 -0
  225. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  226. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  227. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  228. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  229. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  230. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  231. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  232. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  233. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  234. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  235. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  236. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  237. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  238. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  239. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  240. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  241. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  242. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  243. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  244. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  245. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  246. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  247. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  248. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  249. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  250. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  251. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  252. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  253. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  254. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  255. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  256. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  257. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  258. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  259. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  260. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  261. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  262. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  263. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  264. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  265. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  266. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  267. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  268. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  269. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  270. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  271. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  272. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  273. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  274. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  275. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  276. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  277. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  278. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  279. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  280. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  281. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  282. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  283. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  284. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  285. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  286. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  287. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  288. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  289. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  290. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  291. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  292. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  293. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  294. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  295. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  296. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  297. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  298. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  299. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  300. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  301. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  302. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  303. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  304. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  305. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  306. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  307. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  308. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  309. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  310. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  311. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  312. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  313. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  314. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  315. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  316. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  317. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  318. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  319. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  320. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  321. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  322. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  323. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  324. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  325. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  326. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  327. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  328. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  329. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  330. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  331. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  332. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  333. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  334. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  335. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  336. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  337. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  338. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  339. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  340. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  341. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  342. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  343. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  344. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  345. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  346. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  347. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  348. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  349. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  350. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  351. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  352. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  353. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  354. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  355. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  356. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  357. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  358. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  359. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  360. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  361. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  362. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  363. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  364. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  365. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  366. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  367. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  368. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  369. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  370. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  371. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  372. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  373. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  374. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  375. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  376. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@3.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
  377. package/dist/node_modules/.pnpm/openai@7.19.0_@aws-sdk_credential-provider-node@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
  378. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +12 -0
  379. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/pointer/pointer_get.d.mts.map +1 -0
  380. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_canonical.d.mts +8 -0
  381. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_canonical.d.mts.map +1 -0
  382. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_comparer.d.mts +6 -0
  383. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_comparer.d.mts.map +1 -0
  384. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_elements.d.mts +18 -0
  385. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/_elements.d.mts.map +1 -0
  386. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/additionalProperties.d.mts +10 -0
  387. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/additionalProperties.d.mts.map +1 -0
  388. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/allOf.d.mts +6 -0
  389. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/allOf.d.mts.map +1 -0
  390. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/anyOf.d.mts +6 -0
  391. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/anyOf.d.mts.map +1 -0
  392. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/const.d.mts +4 -0
  393. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/const.d.mts.map +1 -0
  394. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/enum.d.mts +4 -0
  395. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/enum.d.mts.map +1 -0
  396. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/if.d.mts +9 -0
  397. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/if.d.mts.map +1 -0
  398. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/items.d.mts +10 -0
  399. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/items.d.mts.map +1 -0
  400. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/oneOf.d.mts +6 -0
  401. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/oneOf.d.mts.map +1 -0
  402. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/patternProperties.d.mts +8 -0
  403. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/patternProperties.d.mts.map +1 -0
  404. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/prefixItems.d.mts +6 -0
  405. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/prefixItems.d.mts.map +1 -0
  406. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/properties.d.mts +23 -0
  407. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/properties.d.mts.map +1 -0
  408. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/propertyNames.d.mts +6 -0
  409. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/propertyNames.d.mts.map +1 -0
  410. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/ref.d.mts +11 -0
  411. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/ref.d.mts.map +1 -0
  412. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/required.d.mts +6 -0
  413. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/required.d.mts.map +1 -0
  414. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/schema.d.mts +43 -0
  415. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/schema.d.mts.map +1 -0
  416. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/static.d.mts +7 -0
  417. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/static.d.mts.map +1 -0
  418. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/type.d.mts +7 -0
  419. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/type.d.mts.map +1 -0
  420. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +10 -0
  421. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts.map +1 -0
  422. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalItems.d.mts +7 -0
  423. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalItems.d.mts.map +1 -0
  424. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalProperties.d.mts +7 -0
  425. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/additionalProperties.d.mts.map +1 -0
  426. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/allOf.d.mts +7 -0
  427. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/allOf.d.mts.map +1 -0
  428. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/anyOf.d.mts +7 -0
  429. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/anyOf.d.mts.map +1 -0
  430. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/const.d.mts +6 -0
  431. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/const.d.mts.map +1 -0
  432. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/else.d.mts +7 -0
  433. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/else.d.mts.map +1 -0
  434. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/enum.d.mts +6 -0
  435. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/enum.d.mts.map +1 -0
  436. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/if.d.mts +7 -0
  437. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/if.d.mts.map +1 -0
  438. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/items.d.mts +7 -0
  439. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/items.d.mts.map +1 -0
  440. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/maxItems.d.mts +6 -0
  441. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/maxItems.d.mts.map +1 -0
  442. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/minItems.d.mts +6 -0
  443. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/minItems.d.mts.map +1 -0
  444. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/oneOf.d.mts +7 -0
  445. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/oneOf.d.mts.map +1 -0
  446. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/patternProperties.d.mts +7 -0
  447. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/patternProperties.d.mts.map +1 -0
  448. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/prefixItems.d.mts +7 -0
  449. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/prefixItems.d.mts.map +1 -0
  450. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/properties.d.mts +7 -0
  451. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/properties.d.mts.map +1 -0
  452. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/propertyNames.d.mts +7 -0
  453. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/propertyNames.d.mts.map +1 -0
  454. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/ref.d.mts +6 -0
  455. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/ref.d.mts.map +1 -0
  456. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/required.d.mts +6 -0
  457. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/required.d.mts.map +1 -0
  458. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/schema.d.mts +6 -0
  459. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/schema.d.mts.map +1 -0
  460. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/then.d.mts +7 -0
  461. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/then.d.mts.map +1 -0
  462. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/type.d.mts +6 -0
  463. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/type.d.mts.map +1 -0
  464. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +7 -0
  465. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts.map +1 -0
  466. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/memory/assign.d.mts +7 -0
  467. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/memory/assign.d.mts.map +1 -0
  468. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/unreachable/unreachable.d.mts +4 -0
  469. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/system/unreachable/unreachable.d.mts.map +1 -0
  470. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_immutable.d.mts +7 -0
  471. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_immutable.d.mts.map +1 -0
  472. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_optional.d.mts +7 -0
  473. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_optional.d.mts.map +1 -0
  474. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_readonly.d.mts +7 -0
  475. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_add_readonly.d.mts.map +1 -0
  476. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_remove_optional.d.mts +7 -0
  477. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/_remove_optional.d.mts.map +1 -0
  478. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/capitalize.d.mts +7 -0
  479. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/capitalize.d.mts.map +1 -0
  480. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/conditional.d.mts +7 -0
  481. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/conditional.d.mts.map +1 -0
  482. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/constructor_parameters.d.mts +7 -0
  483. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/constructor_parameters.d.mts.map +1 -0
  484. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/exclude.d.mts +7 -0
  485. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/exclude.d.mts.map +1 -0
  486. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/extract.d.mts +7 -0
  487. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/extract.d.mts.map +1 -0
  488. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/indexed.d.mts +7 -0
  489. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/indexed.d.mts.map +1 -0
  490. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/instance_type.d.mts +7 -0
  491. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/instance_type.d.mts.map +1 -0
  492. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/interface.d.mts +8 -0
  493. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/interface.d.mts.map +1 -0
  494. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/keyof.d.mts +7 -0
  495. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/keyof.d.mts.map +1 -0
  496. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/lowercase.d.mts +7 -0
  497. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/lowercase.d.mts.map +1 -0
  498. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/mapped.d.mts +8 -0
  499. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/mapped.d.mts.map +1 -0
  500. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/non_nullable.d.mts +7 -0
  501. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/non_nullable.d.mts.map +1 -0
  502. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/omit.d.mts +7 -0
  503. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/omit.d.mts.map +1 -0
  504. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/parameters.d.mts +7 -0
  505. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/parameters.d.mts.map +1 -0
  506. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/partial.d.mts +7 -0
  507. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/partial.d.mts.map +1 -0
  508. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/pick.d.mts +7 -0
  509. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/pick.d.mts.map +1 -0
  510. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/readonly_object.d.mts +7 -0
  511. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/readonly_object.d.mts.map +1 -0
  512. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/required.d.mts +7 -0
  513. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/required.d.mts.map +1 -0
  514. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/return_type.d.mts +7 -0
  515. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/return_type.d.mts.map +1 -0
  516. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uncapitalize.d.mts +7 -0
  517. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uncapitalize.d.mts.map +1 -0
  518. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uppercase.d.mts +7 -0
  519. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/uppercase.d.mts.map +1 -0
  520. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/with.d.mts +9 -0
  521. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/action/with.d.mts.map +1 -0
  522. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +21 -0
  523. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts.map +1 -0
  524. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/instantiate.d.mts +21 -0
  525. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/instantiate.d.mts.map +1 -0
  526. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
  527. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts.map +1 -0
  528. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +17 -0
  529. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/call/resolve_target.d.mts.map +1 -0
  530. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +13 -0
  531. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts.map +1 -0
  532. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +13 -0
  533. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts.map +1 -0
  534. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +9 -0
  535. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts.map +1 -0
  536. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/check.d.mts +22 -0
  537. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/check.d.mts.map +1 -0
  538. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +23 -0
  539. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts.map +1 -0
  540. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +25 -0
  541. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/extends.d.mts.map +1 -0
  542. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +15 -0
  543. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts.map +1 -0
  544. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/target.d.mts +11 -0
  545. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/cyclic/target.d.mts.map +1 -0
  546. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +16 -0
  547. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts.map +1 -0
  548. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +13 -0
  549. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/compare.d.mts.map +1 -0
  550. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +15 -0
  551. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/composite.d.mts.map +1 -0
  552. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +13 -0
  553. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts.map +1 -0
  554. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +22 -0
  555. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts.map +1 -0
  556. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +8 -0
  557. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts.map +1 -0
  558. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +9 -0
  559. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts.map +1 -0
  560. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +17 -0
  561. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts.map +1 -0
  562. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/property.d.mts +13 -0
  563. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/evaluate/property.d.mts.map +1 -0
  564. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +10 -0
  565. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts.map +1 -0
  566. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/operation.d.mts +12 -0
  567. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/exclude/operation.d.mts.map +1 -0
  568. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +10 -0
  569. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/instantiate.d.mts.map +1 -0
  570. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/operation.d.mts +12 -0
  571. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/extract/operation.d.mts.map +1 -0
  572. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/keys.d.mts +5 -0
  573. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/keys.d.mts.map +1 -0
  574. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/union.d.mts +6 -0
  575. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/helpers/union.d.mts.map +1 -0
  576. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +9 -0
  577. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts.map +1 -0
  578. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +11 -0
  579. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts.map +1 -0
  580. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +8 -0
  581. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts.map +1 -0
  582. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +7 -0
  583. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts.map +1 -0
  584. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +8 -0
  585. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts.map +1 -0
  586. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +7 -0
  587. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts.map +1 -0
  588. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +5 -0
  589. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts.map +1 -0
  590. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +7 -0
  591. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts.map +1 -0
  592. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +20 -0
  593. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_type.d.mts.map +1 -0
  594. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +6 -0
  595. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/from_union.d.mts.map +1 -0
  596. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +10 -0
  597. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts.map +1 -0
  598. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +6 -0
  599. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts.map +1 -0
  600. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +13 -0
  601. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts.map +1 -0
  602. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +17 -0
  603. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_array.d.mts.map +1 -0
  604. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +17 -0
  605. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_object.d.mts.map +1 -0
  606. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +16 -0
  607. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts.map +1 -0
  608. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +13 -0
  609. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/from_type.d.mts.map +1 -0
  610. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +17 -0
  611. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts.map +1 -0
  612. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +13 -0
  613. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts.map +1 -0
  614. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instantiate.d.mts +69 -0
  615. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/instantiate.d.mts.map +1 -0
  616. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +13 -0
  617. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/interface/instantiate.d.mts.map +1 -0
  618. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +6 -0
  619. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts.map +1 -0
  620. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +8 -0
  621. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts.map +1 -0
  622. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +12 -0
  623. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts.map +1 -0
  624. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +8 -0
  625. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts.map +1 -0
  626. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +33 -0
  627. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts.map +1 -0
  628. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +10 -0
  629. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts.map +1 -0
  630. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +8 -0
  631. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_any.d.mts.map +1 -0
  632. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +6 -0
  633. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_array.d.mts.map +1 -0
  634. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +12 -0
  635. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_object.d.mts.map +1 -0
  636. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +6 -0
  637. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_record.d.mts.map +1 -0
  638. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +7 -0
  639. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts.map +1 -0
  640. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +17 -0
  641. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/from_type.d.mts.map +1 -0
  642. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +17 -0
  643. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts.map +1 -0
  644. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +11 -0
  645. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts.map +1 -0
  646. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +19 -0
  647. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts.map +1 -0
  648. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +16 -0
  649. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts.map +1 -0
  650. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/module/instantiate.d.mts +13 -0
  651. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/module/instantiate.d.mts.map +1 -0
  652. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +15 -0
  653. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts.map +1 -0
  654. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/collapse.d.mts +8 -0
  655. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/collapse.d.mts.map +1 -0
  656. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +8 -0
  657. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts.map +1 -0
  658. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +7 -0
  659. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_dependent.d.mts.map +1 -0
  660. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +11 -0
  661. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_intersect.d.mts.map +1 -0
  662. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_object.d.mts +5 -0
  663. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_object.d.mts.map +1 -0
  664. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +8 -0
  665. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_tuple.d.mts.map +1 -0
  666. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_type.d.mts +18 -0
  667. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_type.d.mts.map +1 -0
  668. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_union.d.mts +12 -0
  669. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/object/from_union.d.mts.map +1 -0
  670. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/from_type.d.mts +12 -0
  671. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/from_type.d.mts.map +1 -0
  672. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +10 -0
  673. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/omit/instantiate.d.mts.map +1 -0
  674. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +9 -0
  675. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts.map +1 -0
  676. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +11 -0
  677. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts.map +1 -0
  678. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +13 -0
  679. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts.map +1 -0
  680. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
  681. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts.map +1 -0
  682. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +7 -0
  683. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts.map +1 -0
  684. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +7 -0
  685. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts.map +1 -0
  686. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_object.d.mts +8 -0
  687. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_object.d.mts.map +1 -0
  688. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_type.d.mts +16 -0
  689. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_type.d.mts.map +1 -0
  690. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_union.d.mts +7 -0
  691. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/from_union.d.mts.map +1 -0
  692. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +10 -0
  693. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/partial/instantiate.d.mts.map +1 -0
  694. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +7 -0
  695. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/patterns/pattern.d.mts.map +1 -0
  696. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/from_type.d.mts +13 -0
  697. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/from_type.d.mts.map +1 -0
  698. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +10 -0
  699. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/pick/instantiate.d.mts.map +1 -0
  700. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +9 -0
  701. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts.map +1 -0
  702. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +11 -0
  703. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts.map +1 -0
  704. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +7 -0
  705. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts.map +1 -0
  706. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
  707. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts.map +1 -0
  708. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +7 -0
  709. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts.map +1 -0
  710. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +7 -0
  711. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts.map +1 -0
  712. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
  713. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts.map +1 -0
  714. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +7 -0
  715. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts.map +1 -0
  716. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +20 -0
  717. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts.map +1 -0
  718. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +7 -0
  719. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts.map +1 -0
  720. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +10 -0
  721. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts.map +1 -0
  722. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key.d.mts +26 -0
  723. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key.d.mts.map +1 -0
  724. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +6 -0
  725. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_any.d.mts.map +1 -0
  726. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +9 -0
  727. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts.map +1 -0
  728. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +8 -0
  729. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts.map +1 -0
  730. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +7 -0
  731. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts.map +1 -0
  732. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +7 -0
  733. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts.map +1 -0
  734. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
  735. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts.map +1 -0
  736. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +7 -0
  737. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_number.d.mts.map +1 -0
  738. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +6 -0
  739. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_string.d.mts.map +1 -0
  740. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +10 -0
  741. 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
  742. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +18 -0
  743. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/from_key_union.d.mts.map +1 -0
  744. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/instantiate.d.mts +10 -0
  745. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/record/instantiate.d.mts.map +1 -0
  746. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +7 -0
  747. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/ref/instantiate.d.mts.map +1 -0
  748. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
  749. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts.map +1 -0
  750. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +7 -0
  751. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_dependent.d.mts.map +1 -0
  752. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +7 -0
  753. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_intersect.d.mts.map +1 -0
  754. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_object.d.mts +8 -0
  755. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_object.d.mts.map +1 -0
  756. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_type.d.mts +16 -0
  757. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_type.d.mts.map +1 -0
  758. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_union.d.mts +7 -0
  759. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/from_union.d.mts.map +1 -0
  760. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/instantiate.d.mts +10 -0
  761. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/required/instantiate.d.mts.map +1 -0
  762. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
  763. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/rest/spread.d.mts.map +1 -0
  764. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +13 -0
  765. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts.map +1 -0
  766. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +24 -0
  767. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/decode.d.mts.map +1 -0
  768. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +34 -0
  769. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/encode.d.mts.map +1 -0
  770. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +10 -0
  771. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts.map +1 -0
  772. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +13 -0
  773. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts.map +1 -0
  774. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/static.d.mts +21 -0
  775. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/template_literal/static.d.mts.map +1 -0
  776. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/this/expand_this.d.mts +17 -0
  777. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/this/expand_this.d.mts.map +1 -0
  778. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +9 -0
  779. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/tuple/to_object.d.mts.map +1 -0
  780. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/with/instantiate.d.mts +9 -0
  781. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/engine/with/instantiate.d.mts.map +1 -0
  782. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/any.d.mts +11 -0
  783. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/any.d.mts.map +1 -0
  784. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/array.d.mts +13 -0
  785. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/array.d.mts.map +1 -0
  786. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/bigint.d.mts +9 -0
  787. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/bigint.d.mts.map +1 -0
  788. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/boolean.d.mts +9 -0
  789. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/boolean.d.mts.map +1 -0
  790. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/constructor.d.mts +12 -0
  791. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/constructor.d.mts.map +1 -0
  792. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/dependent.d.mts +8 -0
  793. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/dependent.d.mts.map +1 -0
  794. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/enum.d.mts +9 -0
  795. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/enum.d.mts.map +1 -0
  796. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends.d.mts +14 -0
  797. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends.d.mts.map +1 -0
  798. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_left.d.mts +55 -0
  799. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_left.d.mts.map +1 -0
  800. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_right.d.mts +26 -0
  801. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/extends_right.d.mts.map +1 -0
  802. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/function.d.mts +12 -0
  803. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/function.d.mts.map +1 -0
  804. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/inference.d.mts +27 -0
  805. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/inference.d.mts.map +1 -0
  806. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/integer.d.mts +10 -0
  807. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/integer.d.mts.map +1 -0
  808. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/intersect.d.mts +8 -0
  809. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/intersect.d.mts.map +1 -0
  810. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/literal.d.mts +20 -0
  811. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/literal.d.mts.map +1 -0
  812. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/never.d.mts +10 -0
  813. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/never.d.mts.map +1 -0
  814. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/null.d.mts +9 -0
  815. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/null.d.mts.map +1 -0
  816. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/number.d.mts +9 -0
  817. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/number.d.mts.map +1 -0
  818. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/object.d.mts +28 -0
  819. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/object.d.mts.map +1 -0
  820. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/parameters.d.mts +14 -0
  821. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/parameters.d.mts.map +1 -0
  822. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/record.d.mts +15 -0
  823. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/record.d.mts.map +1 -0
  824. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/result.d.mts +17 -0
  825. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/result.d.mts.map +1 -0
  826. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/return_type.d.mts +9 -0
  827. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/return_type.d.mts.map +1 -0
  828. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/string.d.mts +9 -0
  829. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/string.d.mts.map +1 -0
  830. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/symbol.d.mts +9 -0
  831. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/symbol.d.mts.map +1 -0
  832. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/template_literal.d.mts +8 -0
  833. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/template_literal.d.mts.map +1 -0
  834. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/tuple.d.mts +24 -0
  835. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/tuple.d.mts.map +1 -0
  836. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/undefined.d.mts +10 -0
  837. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/undefined.d.mts.map +1 -0
  838. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/union.d.mts +13 -0
  839. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/union.d.mts.map +1 -0
  840. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/unknown.d.mts +11 -0
  841. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/unknown.d.mts.map +1 -0
  842. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/void.d.mts +9 -0
  843. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/extends/void.d.mts.map +1 -0
  844. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/mapping.d.mts +23 -0
  845. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/mapping.d.mts.map +1 -0
  846. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/parser.d.mts +18 -0
  847. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/parser.d.mts.map +1 -0
  848. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/const.d.mts +10 -0
  849. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/const.d.mts.map +1 -0
  850. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/char.d.mts +9 -0
  851. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/char.d.mts.map +1 -0
  852. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/take.d.mts +9 -0
  853. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/take.d.mts.map +1 -0
  854. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/trim.d.mts +20 -0
  855. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/internal/trim.d.mts.map +1 -0
  856. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until.d.mts +8 -0
  857. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until.d.mts.map +1 -0
  858. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until_1.d.mts +6 -0
  859. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/script/token/until_1.d.mts.map +1 -0
  860. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_codec.d.mts +15 -0
  861. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_codec.d.mts.map +1 -0
  862. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_immutable.d.mts +7 -0
  863. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_immutable.d.mts.map +1 -0
  864. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_optional.d.mts +7 -0
  865. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_optional.d.mts.map +1 -0
  866. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_readonly.d.mts +7 -0
  867. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/_readonly.d.mts.map +1 -0
  868. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/any.d.mts +9 -0
  869. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/any.d.mts.map +1 -0
  870. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/array.d.mts +14 -0
  871. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/array.d.mts.map +1 -0
  872. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/bigint.d.mts +11 -0
  873. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/bigint.d.mts.map +1 -0
  874. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/boolean.d.mts +10 -0
  875. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/boolean.d.mts.map +1 -0
  876. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/call.d.mts +12 -0
  877. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/call.d.mts.map +1 -0
  878. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/constructor.d.mts +15 -0
  879. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/constructor.d.mts.map +1 -0
  880. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/cyclic.d.mts +13 -0
  881. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/cyclic.d.mts.map +1 -0
  882. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/deferred.d.mts +12 -0
  883. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/deferred.d.mts.map +1 -0
  884. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/dependent.d.mts +14 -0
  885. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/dependent.d.mts.map +1 -0
  886. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/enum.d.mts +11 -0
  887. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/enum.d.mts.map +1 -0
  888. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/function.d.mts +17 -0
  889. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/function.d.mts.map +1 -0
  890. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/generic.d.mts +12 -0
  891. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/generic.d.mts.map +1 -0
  892. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/identifier.d.mts +10 -0
  893. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/identifier.d.mts.map +1 -0
  894. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/infer.d.mts +11 -0
  895. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/infer.d.mts.map +1 -0
  896. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/integer.d.mts +11 -0
  897. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/integer.d.mts.map +1 -0
  898. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/intersect.d.mts +12 -0
  899. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/intersect.d.mts.map +1 -0
  900. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/literal.d.mts +13 -0
  901. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/literal.d.mts.map +1 -0
  902. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/never.d.mts +11 -0
  903. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/never.d.mts.map +1 -0
  904. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/null.d.mts +10 -0
  905. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/null.d.mts.map +1 -0
  906. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/number.d.mts +11 -0
  907. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/number.d.mts.map +1 -0
  908. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/object.d.mts +14 -0
  909. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/object.d.mts.map +1 -0
  910. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/parameter.d.mts +11 -0
  911. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/parameter.d.mts.map +1 -0
  912. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/properties.d.mts +28 -0
  913. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/properties.d.mts.map +1 -0
  914. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/record.d.mts +37 -0
  915. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/record.d.mts.map +1 -0
  916. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/ref.d.mts +18 -0
  917. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/ref.d.mts.map +1 -0
  918. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/rest.d.mts +10 -0
  919. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/rest.d.mts.map +1 -0
  920. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/schema.d.mts +88 -0
  921. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/schema.d.mts.map +1 -0
  922. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/static.d.mts +40 -0
  923. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/static.d.mts.map +1 -0
  924. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/string.d.mts +11 -0
  925. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/string.d.mts.map +1 -0
  926. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/symbol.d.mts +10 -0
  927. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/symbol.d.mts.map +1 -0
  928. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/template_literal.d.mts +15 -0
  929. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/template_literal.d.mts.map +1 -0
  930. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/this.d.mts +13 -0
  931. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/this.d.mts.map +1 -0
  932. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/tuple.d.mts +24 -0
  933. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/tuple.d.mts.map +1 -0
  934. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/undefined.d.mts +10 -0
  935. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/undefined.d.mts.map +1 -0
  936. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/union.d.mts +12 -0
  937. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/union.d.mts.map +1 -0
  938. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unknown.d.mts +9 -0
  939. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unknown.d.mts.map +1 -0
  940. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unsafe.d.mts +9 -0
  941. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/unsafe.d.mts.map +1 -0
  942. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/void.d.mts +10 -0
  943. package/dist/node_modules/.pnpm/typebox@1.4.2/node_modules/typebox/build/type/types/void.d.mts.map +1 -0
  944. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.d.mts +1 -0
  945. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/agent.d.mts +4 -0
  946. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/api.d.mts +1 -0
  947. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/balanced-pool.d.mts +2 -0
  948. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/cache.d.mts +1 -0
  949. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/client-stats.d.mts +1 -0
  950. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/client.d.mts +2 -0
  951. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/cookies.d.mts +2 -0
  952. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/diagnostics-channel.d.mts +1 -0
  953. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/dispatcher.d.mts +2 -0
  954. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/env-http-proxy-agent.d.mts +3 -0
  955. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/errors.d.mts +1 -0
  956. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/eventsource.d.mts +2 -0
  957. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/fetch.d.mts +3 -0
  958. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/formdata.d.mts +9 -0
  959. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/formdata.d.mts.map +1 -0
  960. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/global-dispatcher.d.mts +1 -0
  961. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/h2c-client.d.mts +1 -0
  962. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/handlers.d.mts +1 -0
  963. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/index.d.mts +31 -0
  964. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/interceptors.d.mts +2 -0
  965. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-agent.d.mts +4 -0
  966. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-call-history.d.mts +1 -0
  967. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-client.d.mts +4 -0
  968. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-errors.d.mts +1 -0
  969. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-interceptor.d.mts +2 -0
  970. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/mock-pool.d.mts +4 -0
  971. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/pool-stats.d.mts +1 -0
  972. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/pool.d.mts +3 -0
  973. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/proxy-agent.d.mts +2 -0
  974. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/retry-agent.d.mts +2 -0
  975. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/retry-handler.d.mts +1 -0
  976. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/round-robin-pool.d.mts +3 -0
  977. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/snapshot-agent.d.mts +1 -0
  978. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/socks5-proxy-agent.d.mts +2 -0
  979. package/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/types/websocket.d.mts +3 -0
  980. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/compat.d.mts +1 -1
  981. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/compat.d.mts.map +1 -1
  982. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/errors.d.mts +1 -1
  983. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/errors.d.mts.map +1 -1
  984. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/parse.d.mts +1 -1
  985. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/parse.d.mts.map +1 -1
  986. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/schemas.d.mts +1 -1
  987. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/classic/schemas.d.mts.map +1 -1
  988. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/api.d.mts +1 -1
  989. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/api.d.mts.map +1 -1
  990. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/checks.d.mts +1 -1
  991. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/checks.d.mts.map +1 -1
  992. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/core.d.mts +1 -1
  993. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/core.d.mts.map +1 -1
  994. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/errors.d.mts +1 -1
  995. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/errors.d.mts.map +1 -1
  996. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/json-schema.d.mts +1 -1
  997. 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
  998. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/registries.d.mts +1 -1
  999. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/registries.d.mts.map +1 -1
  1000. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/schemas.d.mts +1 -1
  1001. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/schemas.d.mts.map +1 -1
  1002. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/standard-schema.d.mts +1 -1
  1003. 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
  1004. 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
  1005. 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
  1006. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/util.d.mts +1 -1
  1007. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/util.d.mts.map +1 -1
  1008. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/versions.d.mts +1 -1
  1009. package/dist/node_modules/.pnpm/{zod@4.6.6 → zod@4.6.7}/node_modules/zod/v4/core/versions.d.mts.map +1 -1
  1010. package/dist/packages/core/po-core/dist/src/schemas/apiContracts.d.mts +69 -0
  1011. package/dist/packages/core/po-core/dist/src/schemas/apiContracts.d.mts.map +1 -0
  1012. package/dist/packages/core/po-core/dist/src/schemas/approval.d.mts +43 -0
  1013. package/dist/packages/core/po-core/dist/src/schemas/approval.d.mts.map +1 -0
  1014. package/dist/packages/core/po-core/dist/src/schemas/approvalPrompt.d.mts +17 -0
  1015. package/dist/packages/core/po-core/dist/src/schemas/approvalPrompt.d.mts.map +1 -0
  1016. package/dist/packages/core/po-core/dist/src/schemas/backgroundWork.d.mts +66 -0
  1017. package/dist/packages/core/po-core/dist/src/schemas/backgroundWork.d.mts.map +1 -0
  1018. package/dist/packages/core/po-core/dist/src/schemas/brain.d.mts +74 -0
  1019. package/dist/packages/core/po-core/dist/src/schemas/brain.d.mts.map +1 -0
  1020. package/dist/packages/core/po-core/dist/src/schemas/hubChannel.d.mts +20 -0
  1021. package/dist/packages/core/po-core/dist/src/schemas/hubChannel.d.mts.map +1 -0
  1022. package/dist/packages/core/po-core/dist/src/schemas/mcpProjection.d.mts +1 -0
  1023. package/dist/packages/core/po-core/dist/src/schemas/notification.d.mts +28 -0
  1024. package/dist/packages/core/po-core/dist/src/schemas/notification.d.mts.map +1 -0
  1025. package/dist/packages/core/po-core/dist/src/schemas/packageApi.d.mts +40 -0
  1026. package/dist/packages/core/po-core/dist/src/schemas/packageApi.d.mts.map +1 -0
  1027. package/dist/packages/core/po-core/dist/src/schemas/platform.d.mts +349 -0
  1028. package/dist/packages/core/po-core/dist/src/schemas/platform.d.mts.map +1 -0
  1029. package/dist/packages/core/po-core/dist/src/schemas/serverBundle.d.mts +31 -0
  1030. package/dist/packages/core/po-core/dist/src/schemas/serverBundle.d.mts.map +1 -0
  1031. package/dist/packages/core/po-core/dist/src/schemas/serverScope.d.mts +56 -0
  1032. package/dist/packages/core/po-core/dist/src/schemas/serverScope.d.mts.map +1 -0
  1033. package/dist/packages/core/po-core/dist/src/schemas/workflow.d.mts +461 -0
  1034. package/dist/packages/core/po-core/dist/src/schemas/workflow.d.mts.map +1 -0
  1035. package/dist/packages/core/po-core/dist/src/web/hostSlots.d.mts +1 -0
  1036. package/dist/packages/core/po-core/dist/src/web/types/nativeTemplate.d.mts +2 -1
  1037. package/dist/packages/core/po-core/dist/src/web/types/webPlugin.d.mts +470 -1
  1038. package/dist/packages/core/po-core/dist/src/web/types/webPlugin.d.mts.map +1 -0
  1039. package/dist/packages/core/po-core/dist/web.d.mts +4 -2
  1040. package/dist/packages/core/po-web-components/src/components/Accordion.mjs.map +1 -1
  1041. package/dist/packages/core/po-web-components/src/components/AgentAvatar.d.mts +18 -0
  1042. package/dist/packages/core/po-web-components/src/components/AgentAvatar.d.mts.map +1 -0
  1043. package/dist/packages/core/po-web-components/src/components/AgentAvatar.mjs +2 -0
  1044. package/dist/packages/core/po-web-components/src/components/AgentAvatar.mjs.map +1 -0
  1045. package/dist/packages/core/po-web-components/src/components/AnsiText.mjs.map +1 -1
  1046. package/dist/packages/core/po-web-components/src/components/Avatar.mjs.map +1 -1
  1047. package/dist/packages/core/po-web-components/src/components/Badge.mjs.map +1 -1
  1048. package/dist/packages/core/po-web-components/src/components/Breadcrumb.mjs.map +1 -1
  1049. package/dist/packages/core/po-web-components/src/components/Button.mjs.map +1 -1
  1050. package/dist/packages/core/po-web-components/src/components/Checkbox.mjs.map +1 -1
  1051. package/dist/packages/core/po-web-components/src/components/CodeBlock.mjs.map +1 -1
  1052. package/dist/packages/core/po-web-components/src/components/CodeEditor.mjs.map +1 -1
  1053. package/dist/packages/core/po-web-components/src/components/CodeEditorView.mjs.map +1 -1
  1054. package/dist/packages/core/po-web-components/src/components/Collapsible.mjs.map +1 -1
  1055. package/dist/packages/core/po-web-components/src/components/Command.mjs.map +1 -1
  1056. package/dist/packages/core/po-web-components/src/components/CopyButton.mjs.map +1 -1
  1057. package/dist/packages/core/po-web-components/src/components/Dialog.mjs.map +1 -1
  1058. package/dist/packages/core/po-web-components/src/components/DiffView.mjs.map +1 -1
  1059. package/dist/packages/core/po-web-components/src/components/Dot.mjs.map +1 -1
  1060. package/dist/packages/core/po-web-components/src/components/Drawer.mjs.map +1 -1
  1061. package/dist/packages/core/po-web-components/src/components/DropdownMenu.mjs.map +1 -1
  1062. package/dist/packages/core/po-web-components/src/components/EmptyState.mjs.map +1 -1
  1063. package/dist/packages/core/po-web-components/src/components/FlowGraph.d.mts +33 -0
  1064. package/dist/packages/core/po-web-components/src/components/FlowGraph.d.mts.map +1 -0
  1065. package/dist/packages/core/po-web-components/src/components/FlowGraph.mjs +2 -0
  1066. package/dist/packages/core/po-web-components/src/components/FlowGraph.mjs.map +1 -0
  1067. package/dist/packages/core/po-web-components/src/components/HashlineLines.d.mts.map +1 -1
  1068. package/dist/packages/core/po-web-components/src/components/HashlineLines.mjs +1 -1
  1069. package/dist/packages/core/po-web-components/src/components/HashlineLines.mjs.map +1 -1
  1070. package/dist/packages/core/po-web-components/src/components/Input.mjs +1 -1
  1071. package/dist/packages/core/po-web-components/src/components/Input.mjs.map +1 -1
  1072. package/dist/packages/core/po-web-components/src/components/Kbd.mjs.map +1 -1
  1073. package/dist/packages/core/po-web-components/src/components/Label.mjs.map +1 -1
  1074. package/dist/packages/core/po-web-components/src/components/LiveDuration.d.mts +15 -0
  1075. package/dist/packages/core/po-web-components/src/components/LiveDuration.d.mts.map +1 -0
  1076. package/dist/packages/core/po-web-components/src/components/LiveDuration.mjs +2 -0
  1077. package/dist/packages/core/po-web-components/src/components/LiveDuration.mjs.map +1 -0
  1078. package/dist/packages/core/po-web-components/src/components/Markdown.d.mts +8 -1
  1079. package/dist/packages/core/po-web-components/src/components/Markdown.d.mts.map +1 -1
  1080. package/dist/packages/core/po-web-components/src/components/Markdown.mjs +2 -2
  1081. package/dist/packages/core/po-web-components/src/components/Markdown.mjs.map +1 -1
  1082. package/dist/packages/core/po-web-components/src/components/McpApp.mjs.map +1 -1
  1083. package/dist/packages/core/po-web-components/src/components/McpToolWidget.mjs.map +1 -1
  1084. package/dist/packages/core/po-web-components/src/components/MediaPreview.mjs.map +1 -1
  1085. package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.d.mts +14 -0
  1086. package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.d.mts.map +1 -0
  1087. package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.mjs +2 -0
  1088. package/dist/packages/core/po-web-components/src/components/MediaViewerDialog.mjs.map +1 -0
  1089. package/dist/packages/core/po-web-components/src/components/MermaidDiagram.mjs +1 -1
  1090. package/dist/packages/core/po-web-components/src/components/MermaidDiagram.mjs.map +1 -1
  1091. package/dist/packages/core/po-web-components/src/components/MessageItem.d.mts +9 -2
  1092. package/dist/packages/core/po-web-components/src/components/MessageItem.d.mts.map +1 -1
  1093. package/dist/packages/core/po-web-components/src/components/MessageItem.mjs +1 -1
  1094. package/dist/packages/core/po-web-components/src/components/MessageItem.mjs.map +1 -1
  1095. package/dist/packages/core/po-web-components/src/components/MessageLines.mjs.map +1 -1
  1096. package/dist/packages/core/po-web-components/src/components/OptionList.mjs.map +1 -1
  1097. package/dist/packages/core/po-web-components/src/components/Panel.mjs.map +1 -1
  1098. package/dist/packages/core/po-web-components/src/components/PathText.d.mts +15 -0
  1099. package/dist/packages/core/po-web-components/src/components/PathText.d.mts.map +1 -0
  1100. package/dist/packages/core/po-web-components/src/components/PathText.mjs +2 -0
  1101. package/dist/packages/core/po-web-components/src/components/PathText.mjs.map +1 -0
  1102. package/dist/packages/core/po-web-components/src/components/PdfPreview.mjs.map +1 -1
  1103. package/dist/packages/core/po-web-components/src/components/Picker.d.mts +18 -5
  1104. package/dist/packages/core/po-web-components/src/components/Picker.d.mts.map +1 -1
  1105. package/dist/packages/core/po-web-components/src/components/Picker.mjs +1 -1
  1106. package/dist/packages/core/po-web-components/src/components/Picker.mjs.map +1 -1
  1107. package/dist/packages/core/po-web-components/src/components/Popover.mjs.map +1 -1
  1108. package/dist/packages/core/po-web-components/src/components/ProfilePicker.d.mts +34 -0
  1109. package/dist/packages/core/po-web-components/src/components/ProfilePicker.d.mts.map +1 -0
  1110. package/dist/packages/core/po-web-components/src/components/ProfilePicker.mjs +2 -0
  1111. package/dist/packages/core/po-web-components/src/components/ProfilePicker.mjs.map +1 -0
  1112. package/dist/packages/core/po-web-components/src/components/Progress.mjs.map +1 -1
  1113. package/dist/packages/core/po-web-components/src/components/RadioGroup.mjs.map +1 -1
  1114. package/dist/packages/core/po-web-components/src/components/ReviewCommentDraft.mjs.map +1 -1
  1115. package/dist/packages/core/po-web-components/src/components/ScrollArea.mjs.map +1 -1
  1116. package/dist/packages/core/po-web-components/src/components/SectionLabel.mjs.map +1 -1
  1117. package/dist/packages/core/po-web-components/src/components/Select.mjs.map +1 -1
  1118. package/dist/packages/core/po-web-components/src/components/Separator.mjs.map +1 -1
  1119. package/dist/packages/core/po-web-components/src/components/Settings.mjs.map +1 -1
  1120. package/dist/packages/core/po-web-components/src/components/Sheet.mjs.map +1 -1
  1121. package/dist/packages/core/po-web-components/src/components/Skeleton.mjs.map +1 -1
  1122. package/dist/packages/core/po-web-components/src/components/Spinner.mjs.map +1 -1
  1123. package/dist/packages/core/po-web-components/src/components/StatusBadge.mjs.map +1 -1
  1124. package/dist/packages/core/po-web-components/src/components/StreamCursor.mjs.map +1 -1
  1125. package/dist/packages/core/po-web-components/src/components/Switch.mjs.map +1 -1
  1126. package/dist/packages/core/po-web-components/src/components/SyntaxText.d.mts.map +1 -1
  1127. package/dist/packages/core/po-web-components/src/components/SyntaxText.mjs +1 -1
  1128. package/dist/packages/core/po-web-components/src/components/SyntaxText.mjs.map +1 -1
  1129. package/dist/packages/core/po-web-components/src/components/Tabs.d.mts +7 -3
  1130. package/dist/packages/core/po-web-components/src/components/Tabs.d.mts.map +1 -1
  1131. package/dist/packages/core/po-web-components/src/components/Tabs.mjs +1 -1
  1132. package/dist/packages/core/po-web-components/src/components/Tabs.mjs.map +1 -1
  1133. package/dist/packages/core/po-web-components/src/components/TerminalView.mjs.map +1 -1
  1134. package/dist/packages/core/po-web-components/src/components/Textarea.mjs.map +1 -1
  1135. package/dist/packages/core/po-web-components/src/components/Toast.mjs.map +1 -1
  1136. package/dist/packages/core/po-web-components/src/components/ToolPathLink.mjs.map +1 -1
  1137. package/dist/packages/core/po-web-components/src/components/Tooltip.mjs.map +1 -1
  1138. package/dist/packages/core/po-web-components/src/components/ViewableImage.d.mts +15 -0
  1139. package/dist/packages/core/po-web-components/src/components/ViewableImage.d.mts.map +1 -0
  1140. package/dist/packages/core/po-web-components/src/components/ViewableImage.mjs +2 -0
  1141. package/dist/packages/core/po-web-components/src/components/ViewableImage.mjs.map +1 -0
  1142. package/dist/packages/core/po-web-components/src/icons/icons.d.mts +2 -2
  1143. package/dist/packages/core/po-web-components/src/icons/icons.mjs +1 -1
  1144. package/dist/packages/core/po-web-components/src/lib/ansiSpans.mjs.map +1 -1
  1145. package/dist/packages/core/po-web-components/src/lib/cn.mjs.map +1 -1
  1146. package/dist/packages/core/po-web-components/src/lib/collapse.mjs.map +1 -1
  1147. package/dist/packages/core/po-web-components/src/lib/editorController.mjs.map +1 -1
  1148. package/dist/packages/core/po-web-components/src/lib/editorLanguage.mjs.map +1 -1
  1149. package/dist/packages/core/po-web-components/src/lib/editorTheme.mjs.map +1 -1
  1150. package/dist/packages/core/po-web-components/src/lib/fenceGrammar.mjs.map +1 -1
  1151. package/dist/packages/core/po-web-components/src/lib/hashlineHighlight.mjs +1 -1
  1152. package/dist/packages/core/po-web-components/src/lib/hashlineHighlight.mjs.map +1 -1
  1153. package/dist/packages/core/po-web-components/src/lib/hashlineView.mjs.map +1 -1
  1154. package/dist/packages/core/po-web-components/src/lib/markdownMedia.d.mts +57 -0
  1155. package/dist/packages/core/po-web-components/src/lib/markdownMedia.d.mts.map +1 -0
  1156. package/dist/packages/core/po-web-components/src/lib/markdownMedia.mjs +2 -0
  1157. package/dist/packages/core/po-web-components/src/lib/markdownMedia.mjs.map +1 -0
  1158. package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.d.mts +10 -0
  1159. package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.d.mts.map +1 -0
  1160. package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.mjs +2 -0
  1161. package/dist/packages/core/po-web-components/src/lib/markdownMediaSlot.mjs.map +1 -0
  1162. package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.d.mts +47 -0
  1163. package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.d.mts.map +1 -0
  1164. package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.mjs +3 -0
  1165. package/dist/packages/core/po-web-components/src/lib/mcpAppFrame.mjs.map +1 -0
  1166. package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.d.mts +19 -0
  1167. package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.d.mts.map +1 -0
  1168. package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.mjs +2 -0
  1169. package/dist/packages/core/po-web-components/src/lib/mcpAppSandbox.mjs.map +1 -0
  1170. package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.d.mts +32 -0
  1171. package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.d.mts.map +1 -0
  1172. package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.mjs +2 -0
  1173. package/dist/packages/core/po-web-components/src/lib/mcpOpenAiBootstrap.mjs.map +1 -0
  1174. package/dist/packages/core/po-web-components/src/lib/media.mjs.map +1 -1
  1175. package/dist/packages/core/po-web-components/src/lib/mediaPlayback.mjs.map +1 -1
  1176. package/dist/packages/core/po-web-components/src/lib/mermaidDiagram.mjs +1 -1
  1177. package/dist/packages/core/po-web-components/src/lib/mermaidDiagram.mjs.map +1 -1
  1178. package/dist/packages/core/po-web-components/src/lib/optionList.mjs.map +1 -1
  1179. package/dist/packages/core/po-web-components/src/lib/pathGroups.mjs.map +1 -1
  1180. package/dist/packages/core/po-web-components/src/lib/picker.mjs.map +1 -1
  1181. package/dist/packages/core/po-web-components/src/lib/profilePicker.d.mts +43 -0
  1182. package/dist/packages/core/po-web-components/src/lib/profilePicker.d.mts.map +1 -0
  1183. package/dist/packages/core/po-web-components/src/lib/profilePicker.mjs +2 -0
  1184. package/dist/packages/core/po-web-components/src/lib/profilePicker.mjs.map +1 -0
  1185. package/dist/packages/core/po-web-components/src/lib/review.mjs.map +1 -1
  1186. package/dist/packages/core/po-web-components/src/lib/runDuration.d.mts +12 -0
  1187. package/dist/packages/core/po-web-components/src/lib/runDuration.d.mts.map +1 -0
  1188. package/dist/packages/core/po-web-components/src/lib/runDuration.mjs +2 -0
  1189. package/dist/packages/core/po-web-components/src/lib/runDuration.mjs.map +1 -0
  1190. package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.d.mts +6 -8
  1191. package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.d.mts.map +1 -1
  1192. package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.mjs +1 -1
  1193. package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.mjs.map +1 -1
  1194. package/dist/packages/core/po-web-components/src/lib/tone.mjs.map +1 -1
  1195. package/dist/packages/core/po-web-components/src/theme/apply.mjs.map +1 -1
  1196. package/dist/packages/core/po-web-components/src/theme/builtinThemes.mjs.map +1 -1
  1197. package/dist/packages/core/po-web-components/src/theme/derive.mjs.map +1 -1
  1198. package/dist/packages/core/po-web-components/src/theme/nativeTheme.mjs.map +1 -1
  1199. package/dist/packages/core/po-web-components/src/theme/parse.mjs.map +1 -1
  1200. package/dist/packages/core/po-web-components/src/theme/piTheme.mjs.map +1 -1
  1201. package/dist/packages/core/po-web-components/src/theme/preference.mjs.map +1 -1
  1202. package/dist/packages/core/po-web-components/src/types/editor.mjs.map +1 -1
  1203. package/dist/packages/core/po-web-components/src/types/theme.mjs.map +1 -1
  1204. package/dist/packages/core/po-web-components/src/types/tone.mjs.map +1 -1
  1205. package/dist/src/components/Accordion.cjs.map +1 -1
  1206. package/dist/src/components/AgentAvatar.cjs +2 -0
  1207. package/dist/src/components/AgentAvatar.cjs.map +1 -0
  1208. package/dist/src/components/AnsiText.cjs.map +1 -1
  1209. package/dist/src/components/Avatar.cjs.map +1 -1
  1210. package/dist/src/components/Badge.cjs.map +1 -1
  1211. package/dist/src/components/Breadcrumb.cjs.map +1 -1
  1212. package/dist/src/components/Button.cjs.map +1 -1
  1213. package/dist/src/components/Checkbox.cjs.map +1 -1
  1214. package/dist/src/components/CodeBlock.cjs.map +1 -1
  1215. package/dist/src/components/CodeEditor.cjs.map +1 -1
  1216. package/dist/src/components/CodeEditorView.cjs.map +1 -1
  1217. package/dist/src/components/Collapsible.cjs.map +1 -1
  1218. package/dist/src/components/Command.cjs.map +1 -1
  1219. package/dist/src/components/CopyButton.cjs.map +1 -1
  1220. package/dist/src/components/Dialog.cjs.map +1 -1
  1221. package/dist/src/components/DiffView.cjs.map +1 -1
  1222. package/dist/src/components/Dot.cjs.map +1 -1
  1223. package/dist/src/components/Drawer.cjs.map +1 -1
  1224. package/dist/src/components/DropdownMenu.cjs.map +1 -1
  1225. package/dist/src/components/EmptyState.cjs.map +1 -1
  1226. package/dist/src/components/FlowGraph.cjs +2 -0
  1227. package/dist/src/components/FlowGraph.cjs.map +1 -0
  1228. package/dist/src/components/HashlineLines.cjs +1 -1
  1229. package/dist/src/components/HashlineLines.cjs.map +1 -1
  1230. package/dist/src/components/Input.cjs +1 -1
  1231. package/dist/src/components/Input.cjs.map +1 -1
  1232. package/dist/src/components/Kbd.cjs.map +1 -1
  1233. package/dist/src/components/Label.cjs.map +1 -1
  1234. package/dist/src/components/LiveDuration.cjs +2 -0
  1235. package/dist/src/components/LiveDuration.cjs.map +1 -0
  1236. package/dist/src/components/Markdown.cjs +2 -2
  1237. package/dist/src/components/Markdown.cjs.map +1 -1
  1238. package/dist/src/components/McpApp.cjs.map +1 -1
  1239. package/dist/src/components/McpToolWidget.cjs.map +1 -1
  1240. package/dist/src/components/MediaPreview.cjs.map +1 -1
  1241. package/dist/src/components/MediaViewerDialog.cjs +2 -0
  1242. package/dist/src/components/MediaViewerDialog.cjs.map +1 -0
  1243. package/dist/src/components/MermaidDiagram.cjs +1 -1
  1244. package/dist/src/components/MermaidDiagram.cjs.map +1 -1
  1245. package/dist/src/components/MessageItem.cjs +1 -1
  1246. package/dist/src/components/MessageItem.cjs.map +1 -1
  1247. package/dist/src/components/MessageLines.cjs.map +1 -1
  1248. package/dist/src/components/OptionList.cjs.map +1 -1
  1249. package/dist/src/components/Panel.cjs.map +1 -1
  1250. package/dist/src/components/PathText.cjs +2 -0
  1251. package/dist/src/components/PathText.cjs.map +1 -0
  1252. package/dist/src/components/PdfPreview.cjs.map +1 -1
  1253. package/dist/src/components/Picker.cjs +1 -1
  1254. package/dist/src/components/Picker.cjs.map +1 -1
  1255. package/dist/src/components/Popover.cjs.map +1 -1
  1256. package/dist/src/components/ProfilePicker.cjs +2 -0
  1257. package/dist/src/components/ProfilePicker.cjs.map +1 -0
  1258. package/dist/src/components/Progress.cjs.map +1 -1
  1259. package/dist/src/components/RadioGroup.cjs.map +1 -1
  1260. package/dist/src/components/ReviewCommentDraft.cjs.map +1 -1
  1261. package/dist/src/components/ScrollArea.cjs.map +1 -1
  1262. package/dist/src/components/SectionLabel.cjs.map +1 -1
  1263. package/dist/src/components/Select.cjs.map +1 -1
  1264. package/dist/src/components/Separator.cjs.map +1 -1
  1265. package/dist/src/components/Settings.cjs.map +1 -1
  1266. package/dist/src/components/Sheet.cjs.map +1 -1
  1267. package/dist/src/components/Skeleton.cjs.map +1 -1
  1268. package/dist/src/components/Spinner.cjs.map +1 -1
  1269. package/dist/src/components/StatusBadge.cjs.map +1 -1
  1270. package/dist/src/components/StreamCursor.cjs.map +1 -1
  1271. package/dist/src/components/Switch.cjs.map +1 -1
  1272. package/dist/src/components/SyntaxText.cjs +1 -1
  1273. package/dist/src/components/SyntaxText.cjs.map +1 -1
  1274. package/dist/src/components/Tabs.cjs +1 -1
  1275. package/dist/src/components/Tabs.cjs.map +1 -1
  1276. package/dist/src/components/TerminalView.cjs.map +1 -1
  1277. package/dist/src/components/Textarea.cjs.map +1 -1
  1278. package/dist/src/components/Toast.cjs.map +1 -1
  1279. package/dist/src/components/ToolPathLink.cjs.map +1 -1
  1280. package/dist/src/components/Tooltip.cjs.map +1 -1
  1281. package/dist/src/components/ViewableImage.cjs +2 -0
  1282. package/dist/src/components/ViewableImage.cjs.map +1 -0
  1283. package/dist/src/icons/icons.cjs +1 -1
  1284. package/dist/src/lib/ansiSpans.cjs.map +1 -1
  1285. package/dist/src/lib/cn.cjs.map +1 -1
  1286. package/dist/src/lib/collapse.cjs.map +1 -1
  1287. package/dist/src/lib/editorController.cjs.map +1 -1
  1288. package/dist/src/lib/editorLanguage.cjs.map +1 -1
  1289. package/dist/src/lib/editorTheme.cjs.map +1 -1
  1290. package/dist/src/lib/fenceGrammar.cjs.map +1 -1
  1291. package/dist/src/lib/hashlineHighlight.cjs +1 -1
  1292. package/dist/src/lib/hashlineHighlight.cjs.map +1 -1
  1293. package/dist/src/lib/hashlineView.cjs.map +1 -1
  1294. package/dist/src/lib/markdownMedia.cjs +2 -0
  1295. package/dist/src/lib/markdownMedia.cjs.map +1 -0
  1296. package/dist/src/lib/markdownMediaSlot.cjs +2 -0
  1297. package/dist/src/lib/markdownMediaSlot.cjs.map +1 -0
  1298. package/dist/src/lib/mcpAppFrame.cjs +3 -0
  1299. package/dist/src/lib/mcpAppFrame.cjs.map +1 -0
  1300. package/dist/src/lib/mcpAppSandbox.cjs +2 -0
  1301. package/dist/src/lib/mcpAppSandbox.cjs.map +1 -0
  1302. package/dist/src/lib/mcpOpenAiBootstrap.cjs +2 -0
  1303. package/dist/src/lib/mcpOpenAiBootstrap.cjs.map +1 -0
  1304. package/dist/src/lib/media.cjs.map +1 -1
  1305. package/dist/src/lib/mediaPlayback.cjs.map +1 -1
  1306. package/dist/src/lib/mermaidDiagram.cjs +1 -1
  1307. package/dist/src/lib/mermaidDiagram.cjs.map +1 -1
  1308. package/dist/src/lib/optionList.cjs.map +1 -1
  1309. package/dist/src/lib/pathGroups.cjs.map +1 -1
  1310. package/dist/src/lib/picker.cjs.map +1 -1
  1311. package/dist/src/lib/profilePicker.cjs +2 -0
  1312. package/dist/src/lib/profilePicker.cjs.map +1 -0
  1313. package/dist/src/lib/review.cjs.map +1 -1
  1314. package/dist/src/lib/runDuration.cjs +2 -0
  1315. package/dist/src/lib/runDuration.cjs.map +1 -0
  1316. package/dist/src/lib/syntaxHighlight.cjs +1 -1
  1317. package/dist/src/lib/syntaxHighlight.cjs.map +1 -1
  1318. package/dist/src/lib/tone.cjs.map +1 -1
  1319. package/dist/src/theme/apply.cjs.map +1 -1
  1320. package/dist/src/theme/builtinThemes.cjs.map +1 -1
  1321. package/dist/src/theme/derive.cjs.map +1 -1
  1322. package/dist/src/theme/nativeTheme.cjs.map +1 -1
  1323. package/dist/src/theme/parse.cjs.map +1 -1
  1324. package/dist/src/theme/piTheme.cjs.map +1 -1
  1325. package/dist/src/theme/preference.cjs.map +1 -1
  1326. package/dist/src/types/editor.cjs.map +1 -1
  1327. package/dist/src/types/theme.cjs.map +1 -1
  1328. package/dist/src/types/tone.cjs.map +1 -1
  1329. package/dist/text.cjs +1 -1
  1330. package/dist/text.d.mts +7 -1
  1331. package/dist/text.mjs +1 -1
  1332. package/package.json +20 -9
  1333. package/styles/theme.css +23 -0
@@ -0,0 +1,19 @@
1
+ //#region src/lib/mcpAppSandbox.d.ts
2
+ export declare function mcpAppCsp(metadata: unknown, hostOrigin: string): string;
3
+ type HostTheme = 'light' | 'dark';
4
+ /** The theme a host message carries, from either bridge. Serialized into frames, so it stays self-contained. */
5
+ export declare function mcpAppHostTheme(data: unknown): HostTheme | undefined;
6
+ /**
7
+ * Bundled trusted code, runs inside the App document. Waits for the App's own
8
+ * <html> attributes, which the parser merges only where the root has none, so
9
+ * an App-chosen class or data-theme wins until the host theme changes.
10
+ */
11
+ export declare function widgetThemeBootstrap(hostTheme: (data: unknown) => HostTheme | undefined, initial: HostTheme): void;
12
+ export declare function mcpAppRelayHtml(policy: string, theme?: HostTheme): string;
13
+ /** No host <html> is injected, so the App's own root attributes survive parsing. */
14
+ export declare function mcpAppDocument(html: string, policy: string, bootstrap?: string, theme?: HostTheme): string;
15
+ /** Required CSP enforcement must survive self-navigation, not only initial srcdoc. */
16
+ export declare function supportsMcpAppSandbox(host: Document | HTMLIFrameElement): boolean;
17
+ //#endregion
18
+ export {};
19
+ //# sourceMappingURL=mcpAppSandbox.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpAppSandbox.d.mts","names":[],"sources":["../../../../../../src/lib/mcpAppSandbox.ts"],"mappings":";wBA0CgB,UAAU,mBAAmB;KAkCxC;;wBAGW,gBAAgB,gBAAgB;;;;;;wBAsBhC,qBAAqB,YAAY,kBAAkB,uBAAuB,SAAS;wBAgHnF,gBAAgB,gBAAgB,QAAO;;wBAUvC,eAAe,cAAc,gBAAgB,oBAAgB,QAAO;;wBAMpE,sBAAsB,MAAM,WAAW"}
@@ -0,0 +1,2 @@
1
+ const e=/^(localhost|127(\.\d{1,3}){3}|\[::1\])$/u;function t(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function n(t,n){if(t===void 0)return[];if(!Array.isArray(t)||t.length>64)throw Error(`Invalid widget CSP domains`);return t.map(t=>{if(typeof t!=`string`||t.length>2048)throw Error(`Invalid widget CSP domain`);let r=new URL(t),i=r.hostname.replace(/^%2a\./iu,`*.`),a=i.startsWith(`*.`),o=new URL(n),s=e.test(r.hostname),c=s?e.test(o.hostname)&&r.port===o.port:i===o.hostname||a&&o.hostname.endsWith(i.slice(1));if(!(s?[`http:`,`https:`,`ws:`,`wss:`]:[`https:`,`wss:`]).includes(r.protocol)||r.username||r.password||r.pathname!==`/`||r.search||r.hash||c||r.hostname.startsWith(`0.`)||/[\s;'"<>]/u.test(t))throw Error(`Unsafe widget CSP domain`);return`${r.protocol}//${i}${r.port?`:${r.port}`:``}`})}function r(e,r){let i=t(e),a=t(i?.ui);if(i?.ui!==void 0&&a===void 0)throw Error(`Invalid widget UI metadata`);let o=a!==void 0&&`csp`in a,s=o?a.csp:i?.[`openai/widgetCSP`],c=s===void 0?{}:t(s);if(c===void 0)throw Error(`Invalid widget CSP`);let l=n(c[o?`resourceDomains`:`resource_domains`],r).join(` `),u=n(c[o?`connectDomains`:`connect_domains`],r).join(` `),d=n(c[o?`frameDomains`:`frame_domains`],r).join(` `);return[`default-src 'none'`,`script-src 'unsafe-inline' ${l}`,`style-src 'unsafe-inline' ${l}`,`img-src data: blob: ${l}`,`font-src data: ${l}`,`media-src blob: ${l}`,`connect-src ${u||`'none'`}`,`frame-src ${d||`'none'`}`,`child-src ${d||`'none'`}`,`worker-src 'none'`,`object-src 'none'`,`base-uri 'none'`,`form-action 'none'`].join(`; `)}function i(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`"`,`&quot;`).replaceAll(`<`,`&lt;`)}function a(e){let t=e,n=t?.channel===`po.openai`?t.globals?.theme:t?.jsonrpc===`2.0`&&t.method===`ui/notifications/host-context-changed`?t.params?.theme:void 0;return n===`light`||n===`dark`?n:void 0}function o(e,t){let n=document.documentElement,r=t,i=!1,a=()=>{!n.classList.contains(`light`)&&!n.classList.contains(`dark`)&&n.classList.add(r),n.getAttribute(`data-theme`)===null&&n.setAttribute(`data-theme`,r)},o=()=>{n.classList.remove(`light`,`dark`),n.classList.add(r);let e=n.getAttribute(`data-theme`);(e===null||e===`light`||e===`dark`)&&n.setAttribute(`data-theme`,r),n.style.colorScheme=r};window.addEventListener(`message`,t=>{let n=t.source===parent?e(t.data):void 0;n!==void 0&&(r=n,i=!0,document.readyState!==`loading`&&o())}),document.readyState===`loading`?document.addEventListener(`readystatechange`,()=>{document.readyState===`interactive`&&(i?o():a())}):a()}function s(e){let t=!1,n=t=>{let n=e(t);n!==void 0&&(document.documentElement.style.colorScheme=n)};window.addEventListener(`message`,e=>{if(e.source!==parent||t||e.ports.length!==1)return;let r=e.data;if(typeof r?.html!=`string`||typeof r.policy!=`string`)return;t=!0;let i=e.ports[0],a=document.createElement(`iframe`);a.title=`MCP App content`,a.setAttribute(`sandbox`,`allow-scripts`),r.policy.includes(`frame-src 'none'`)&&a.setAttribute(`csp`,r.policy),a.setAttribute(`allow`,`camera 'none'; microphone 'none'; geolocation 'none'; clipboard-read 'none'; clipboard-write 'none'`),a.style.cssText=`width:100%;height:100%;border:0;display:block`;let o=!1,s=!1,c=()=>{s||(s=!0,a.remove(),i.postMessage({type:`revoked`}),i.close())};a.addEventListener(`load`,()=>{o&&c(),o=!0});let l=Date.now(),u=0;window.addEventListener(`message`,e=>{if(s||e.source!==a.contentWindow)return;try{let t=JSON.stringify(e.data);if(t===void 0||new TextEncoder().encode(t).byteLength>65536)return c();let n=Date.now();if(n-l>=1e3&&(l=n,u=0),++u>128)return c()}catch{return c()}let t=e.data?.channel===`po.openai`;r.protocol===`mcp`&&!t?parent.postMessage(e.data,`*`):i.postMessage({type:`legacy`,data:e.data})}),i.onmessage=e=>{s||(n(e.data),a.contentWindow?.postMessage(e.data,`*`))},window.addEventListener(`message`,e=>{if(!s&&e.source===parent&&r.protocol===`mcp`){let t=e.data;if(t?.jsonrpc!==`2.0`)return;n(t),a.contentWindow?.postMessage(t,`*`)}}),i.start(),a.srcdoc=r.html,document.body.append(a),i.postMessage({type:`ready`})})}function c(e,t=`light`){return`<!doctype html><html style="color-scheme:${t}"><meta http-equiv="Content-Security-Policy" content="${i(e.replace(/\b(frame|child)-src ([^;]*)/gu,(e,t,n)=>n===`'none'`?`${t}-src about:`:`${t}-src about: ${n}`))}"><style>html,body{margin:0;height:100%;overflow:hidden}</style><script>(${s.toString()})(${a.toString()})<\/script>`}function l(e,t,n=``,r=`light`){let s=`<script>(${o.toString()})(${a.toString()}, ${JSON.stringify(r)})<\/script>`;return`<!doctype html><meta http-equiv="Content-Security-Policy" content="${i(t)}"><meta name="color-scheme" content="${r}">${s}${n}${e}`}function u(e){return`csp`in(`createElement`in e?e.createElement(`iframe`):e)}export{r as mcpAppCsp,l as mcpAppDocument,a as mcpAppHostTheme,c as mcpAppRelayHtml,s as relayBootstrap,u as supportsMcpAppSandbox,o as widgetThemeBootstrap};
2
+ //# sourceMappingURL=mcpAppSandbox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpAppSandbox.mjs","names":["LOOPBACK_HOSTNAME","record","value","origins","domain","parsed","hostname","wildcard","host","hostOrigin","loopback","includesHost","mcpAppCsp","meta","metadata","ui","standard","raw","csp","resource","connect","frame","escapeAttribute","mcpAppHostTheme","message","data","theme","widgetThemeBootstrap","root","initial","changed","settle","follow","current","next","event","hostTheme","relayBootstrap","configured","config","port","inner","loaded","revoked","revoke","messageWindow","messageCount","childEvent","encoded","now","openai","hostEvent","mcpAppRelayHtml","policy","sources","kind","mcpAppDocument","themeScript","bootstrap","html","supportsMcpAppSandbox"],"sources":["../../../../../../src/lib/mcpAppSandbox.ts"],"sourcesContent":["const MAX_CSP_DOMAINS = 64;\nconst MAX_DOMAIN_LENGTH = 2048;\nconst LOOPBACK_HOSTNAME = /^(localhost|127(\\.\\d{1,3}){3}|\\[::1\\])$/u;\n\nfunction record(value: unknown): Record<string, unknown> | undefined {\n return value !== null && typeof value === 'object' && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : undefined;\n}\n\n/** Accept origins only, never CSP tokens, URL paths, credentials, or the host origin. */\nfunction origins(value: unknown, hostOrigin: string): string[] {\n if (value === undefined) return [];\n if (!Array.isArray(value) || value.length > MAX_CSP_DOMAINS) throw new Error('Invalid widget CSP domains');\n return value.map((domain: unknown) => {\n if (typeof domain !== 'string' || domain.length > MAX_DOMAIN_LENGTH) throw new Error('Invalid widget CSP domain');\n const parsed = new URL(domain);\n // Browsers percent-encode a wildcard label (`*.` becomes `%2A.`), which CSP ignores as an invalid source.\n const hostname = parsed.hostname.replace(/^%2a\\./iu, '*.');\n const wildcard = hostname.startsWith('*.');\n const host = new URL(hostOrigin);\n // Local dev servers serve widgets over plain HTTP on loopback; Po's own loopback origin stays excluded.\n const loopback = LOOPBACK_HOSTNAME.test(parsed.hostname);\n const includesHost = loopback\n ? LOOPBACK_HOSTNAME.test(host.hostname) && parsed.port === host.port\n : hostname === host.hostname || (wildcard && host.hostname.endsWith(hostname.slice(1)));\n if (\n !(loopback ? ['http:', 'https:', 'ws:', 'wss:'] : ['https:', 'wss:']).includes(parsed.protocol) ||\n parsed.username ||\n parsed.password ||\n parsed.pathname !== '/' ||\n parsed.search ||\n parsed.hash ||\n includesHost ||\n parsed.hostname.startsWith('0.') ||\n /[\\s;'\"<>]/u.test(domain)\n )\n throw new Error('Unsafe widget CSP domain');\n return `${parsed.protocol}//${hostname}${parsed.port ? `:${parsed.port}` : ''}`;\n });\n}\n\nexport function mcpAppCsp(metadata: unknown, hostOrigin: string): string {\n const meta = record(metadata);\n const ui = record(meta?.ui);\n if (meta?.ui !== undefined && ui === undefined) throw new Error('Invalid widget UI metadata');\n // A present standard field always wins, including malformed values (fail closed).\n const standard = ui !== undefined && 'csp' in ui;\n const raw = standard ? ui.csp : meta?.['openai/widgetCSP'];\n const csp = raw === undefined ? {} : record(raw);\n if (csp === undefined) throw new Error('Invalid widget CSP');\n const resource = origins(csp[standard ? 'resourceDomains' : 'resource_domains'], hostOrigin).join(' ');\n const connect = origins(csp[standard ? 'connectDomains' : 'connect_domains'], hostOrigin).join(' ');\n const frame = origins(csp[standard ? 'frameDomains' : 'frame_domains'], hostOrigin).join(' ');\n // Nested frames load only from declared frame domains; forms, base URLs, workers and navigation privileges are not admitted.\n return [\n \"default-src 'none'\",\n `script-src 'unsafe-inline' ${resource}`,\n `style-src 'unsafe-inline' ${resource}`,\n `img-src data: blob: ${resource}`,\n `font-src data: ${resource}`,\n `media-src blob: ${resource}`,\n `connect-src ${connect || \"'none'\"}`,\n `frame-src ${frame || \"'none'\"}`,\n `child-src ${frame || \"'none'\"}`,\n \"worker-src 'none'\",\n \"object-src 'none'\",\n \"base-uri 'none'\",\n \"form-action 'none'\",\n ].join('; ');\n}\n\nfunction escapeAttribute(value: string): string {\n return value.replaceAll('&', '&amp;').replaceAll('\"', '&quot;').replaceAll('<', '&lt;');\n}\n\ntype HostTheme = 'light' | 'dark';\n\n/** The theme a host message carries, from either bridge. Serialized into frames, so it stays self-contained. */\nexport function mcpAppHostTheme(data: unknown): HostTheme | undefined {\n const message = data as {\n channel?: unknown;\n globals?: { theme?: unknown } | null;\n jsonrpc?: unknown;\n method?: unknown;\n params?: { theme?: unknown } | null;\n } | null;\n const theme =\n message?.channel === 'po.openai'\n ? message.globals?.theme\n : message?.jsonrpc === '2.0' && message.method === 'ui/notifications/host-context-changed'\n ? message.params?.theme\n : undefined;\n return theme === 'light' || theme === 'dark' ? theme : undefined;\n}\n\n/**\n * Bundled trusted code, runs inside the App document. Waits for the App's own\n * <html> attributes, which the parser merges only where the root has none, so\n * an App-chosen class or data-theme wins until the host theme changes.\n */\nexport function widgetThemeBootstrap(hostTheme: (data: unknown) => HostTheme | undefined, initial: HostTheme): void {\n const root = document.documentElement;\n let theme = initial;\n let changed = false;\n const settle = (): void => {\n if (!root.classList.contains('light') && !root.classList.contains('dark')) root.classList.add(theme);\n if (root.getAttribute('data-theme') === null) root.setAttribute('data-theme', theme);\n };\n const follow = (): void => {\n root.classList.remove('light', 'dark');\n root.classList.add(theme);\n const current = root.getAttribute('data-theme');\n if (current === null || current === 'light' || current === 'dark') root.setAttribute('data-theme', theme);\n root.style.colorScheme = theme;\n };\n window.addEventListener('message', (event: MessageEvent<unknown>) => {\n const next = event.source === parent ? hostTheme(event.data) : undefined;\n if (next === undefined) return;\n theme = next;\n changed = true;\n if (document.readyState !== 'loading') follow();\n });\n if (document.readyState !== 'loading') settle();\n else\n document.addEventListener('readystatechange', () => {\n if (document.readyState === 'interactive') {\n if (changed) follow();\n else settle();\n }\n });\n}\n\n/** Bundled trusted code, runs in an opaque relay separate from the untrusted App. */\nexport function relayBootstrap(hostTheme: (data: unknown) => HostTheme | undefined): void {\n let configured = false;\n // The relay canvas must match the App's color scheme or the browser paints it opaque.\n const follow = (data: unknown): void => {\n const theme = hostTheme(data);\n if (theme !== undefined) document.documentElement.style.colorScheme = theme;\n };\n window.addEventListener('message', (event: MessageEvent<unknown>) => {\n if (event.source !== parent || configured || event.ports.length !== 1) return;\n const config = event.data as { html: string; policy: string; protocol: string };\n if (typeof config?.html !== 'string' || typeof config.policy !== 'string') return;\n configured = true;\n const port = event.ports[0]!;\n const inner = document.createElement('iframe');\n inner.title = 'MCP App content';\n inner.setAttribute('sandbox', 'allow-scripts');\n // Required CSP also binds nested frames, so an App with declared frame domains relies on the inherited relay\n // policy instead: MCP Apps let those frames keep their own CSP, and the relay revokes any second document.\n if (config.policy.includes(\"frame-src 'none'\")) inner.setAttribute('csp', config.policy);\n inner.setAttribute(\n 'allow',\n \"camera 'none'; microphone 'none'; geolocation 'none'; clipboard-read 'none'; clipboard-write 'none'\",\n );\n inner.style.cssText = 'width:100%;height:100%;border:0;display:block';\n let loaded = false;\n let revoked = false;\n const revoke = (): void => {\n if (revoked) return;\n revoked = true;\n inner.remove();\n port.postMessage({ type: 'revoked' });\n port.close();\n };\n inner.addEventListener('load', () => {\n if (loaded) revoke();\n loaded = true;\n });\n let messageWindow = Date.now();\n let messageCount = 0;\n window.addEventListener('message', (childEvent: MessageEvent<unknown>) => {\n if (revoked || childEvent.source !== inner.contentWindow) return;\n try {\n const encoded = JSON.stringify(childEvent.data);\n if (encoded === undefined || new TextEncoder().encode(encoded).byteLength > 65536) return revoke();\n const now = Date.now();\n if (now - messageWindow >= 1000) {\n messageWindow = now;\n messageCount = 0;\n }\n if (++messageCount > 128) return revoke();\n } catch {\n return revoke();\n }\n // window.openai is in every App, so its channel reaches the host port whatever the protocol.\n const openai = (childEvent.data as { channel?: unknown } | null)?.channel === 'po.openai';\n if (config.protocol === 'mcp' && !openai) parent.postMessage(childEvent.data, '*');\n else port.postMessage({ type: 'legacy', data: childEvent.data });\n });\n // The parent alone owns the other end of this channel. No origin-based trust.\n port.onmessage = (hostEvent: MessageEvent<unknown>) => {\n if (revoked) return;\n follow(hostEvent.data);\n inner.contentWindow?.postMessage(hostEvent.data, '*');\n };\n window.addEventListener('message', (hostEvent: MessageEvent<unknown>) => {\n if (!revoked && hostEvent.source === parent && config.protocol === 'mcp') {\n const data = hostEvent.data as { jsonrpc?: string } | null;\n if (data?.jsonrpc !== '2.0') return;\n follow(data);\n inner.contentWindow?.postMessage(data, '*');\n }\n });\n port.start();\n inner.srcdoc = config.html;\n document.body.append(inner);\n port.postMessage({ type: 'ready' });\n });\n}\n\nexport function mcpAppRelayHtml(policy: string, theme: HostTheme = 'light'): string {\n // frame-src adds srcdoc/about for the App frame, never a host route or a remote sandbox URL. The App's\n // declared frame domains stay, because the srcdoc App inherits this policy for its own nested frames.\n const relayPolicy = policy.replace(/\\b(frame|child)-src ([^;]*)/gu, (_, kind: string, sources: string) =>\n sources === \"'none'\" ? `${kind}-src about:` : `${kind}-src about: ${sources}`,\n );\n return `<!doctype html><html style=\"color-scheme:${theme}\"><meta http-equiv=\"Content-Security-Policy\" content=\"${escapeAttribute(relayPolicy)}\"><style>html,body{margin:0;height:100%;overflow:hidden}</style><script>(${relayBootstrap.toString()})(${mcpAppHostTheme.toString()})</script>`;\n}\n\n/** No host <html> is injected, so the App's own root attributes survive parsing. */\nexport function mcpAppDocument(html: string, policy: string, bootstrap = '', theme: HostTheme = 'light'): string {\n const themeScript = `<script>(${widgetThemeBootstrap.toString()})(${mcpAppHostTheme.toString()}, ${JSON.stringify(theme)})</script>`;\n return `<!doctype html><meta http-equiv=\"Content-Security-Policy\" content=\"${escapeAttribute(policy)}\"><meta name=\"color-scheme\" content=\"${theme}\">${themeScript}${bootstrap}${html}`;\n}\n\n/** Required CSP enforcement must survive self-navigation, not only initial srcdoc. */\nexport function supportsMcpAppSandbox(host: Document | HTMLIFrameElement): boolean {\n const frame = 'createElement' in host ? host.createElement('iframe') : host;\n return 'csp' in frame;\n}\n"],"mappings":"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"}
@@ -0,0 +1,32 @@
1
+ //#region src/lib/mcpOpenAiBootstrap.d.ts
2
+ interface LegacyGlobals {
3
+ toolInput: Record<string, unknown>;
4
+ toolOutput: unknown;
5
+ toolResponseMetadata: Record<string, unknown>;
6
+ widgetState: unknown;
7
+ theme: 'light' | 'dark';
8
+ locale: string;
9
+ displayMode: 'inline';
10
+ maxHeight: number;
11
+ userAgent: {
12
+ device: {
13
+ type: 'desktop' | 'mobile';
14
+ };
15
+ capabilities: {
16
+ hover: boolean;
17
+ touch: boolean;
18
+ };
19
+ };
20
+ safeArea: {
21
+ insets: {
22
+ top: number;
23
+ right: number;
24
+ bottom: number;
25
+ left: number;
26
+ };
27
+ };
28
+ }
29
+ export declare function mcpOpenAiScript(globals: LegacyGlobals): string;
30
+ //#endregion
31
+ export {};
32
+ //# sourceMappingURL=mcpOpenAiBootstrap.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpOpenAiBootstrap.d.mts","names":[],"sources":["../../../../../../src/lib/mcpOpenAiBootstrap.ts"],"mappings":";UAAU;EACR,WAAW;EACX;EACA,sBAAsB;EACtB;EACA;EACA;EACA;EACA;EACA;IAAa;MAAU;;IAA8B;MAAgB;MAAgB;;;EACrF;IAAY;MAAU;MAAa;MAAe;MAAgB;;;;wBAwGpD,gBAAgB,SAAS"}
@@ -0,0 +1,2 @@
1
+ function e(e){let t=`po.openai`,n=/* @__PURE__ */ new Map,r=0,i=e,a=e=>{i={...i,...e},window.dispatchEvent(new CustomEvent(`openai:set_globals`,{detail:{globals:e}}))},o=(e,i)=>{if(n.size>=32)return Promise.reject(/* @__PURE__ */ Error(`Too many pending widget requests`));let a=++r;return new Promise((r,o)=>{let s=window.setTimeout(()=>{n.delete(a),o(/* @__PURE__ */ Error(`Widget request timed out`))},6e4);n.set(a,{resolve:r,reject:o,timer:s}),parent.postMessage({channel:t,id:a,method:e,input:i},`*`)})};Object.defineProperty(window,"openai",{value:Object.freeze({get toolInput(){return i.toolInput},get toolOutput(){return i.toolOutput},get toolResponseMetadata(){return i.toolResponseMetadata},get widgetState(){return i.widgetState},get theme(){return i.theme},get locale(){return i.locale},get displayMode(){return i.displayMode},get maxHeight(){return i.maxHeight},get safeArea(){return i.safeArea},get userAgent(){return i.userAgent},callTool:(e,t={})=>o(`callTool`,{name:e,arguments:t}),setWidgetState:e=>(a({widgetState:e}),o(`setState`,{state:e})),sendFollowUpMessage:e=>o(`followUp`,e),requestDisplayMode:()=>Promise.resolve({mode:`inline`}),openExternal:e=>o(`openLink`,{url:e.href}),requestClose:()=>o(`close`,{}),notifyIntrinsicHeight:e=>o(`height`,{height:e})}),configurable:!1,writable:!1}),window.addEventListener(`message`,e=>{if(e.source!==parent)return;let r=e.data;if(r?.channel!==t||(r.globals!==void 0&&a(r.globals),r.id===void 0))return;let i=n.get(r.id);i!==void 0&&(n.delete(r.id),clearTimeout(i.timer),typeof r.error==`string`?i.reject(Error(r.error)):i.resolve(r.result))}),parent.postMessage({channel:t,method:`initialized`,input:{}},`*`),document.addEventListener(`DOMContentLoaded`,()=>{a(i);let e=new ResizeObserver(()=>{let e=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);parent.postMessage({channel:t,method:`height`,input:{height:e}},`*`)});e.observe(document.body),window.addEventListener(`pagehide`,()=>e.disconnect(),{once:!0})},{once:!0})}function t(t){let n=JSON.stringify(t).replaceAll(`<`,`\\u003c`).replaceAll(`\u2028`,`\\u2028`).replaceAll(`\u2029`,`\\u2029`);return`<script>(${e.toString()})(${n})<\/script>`}export{e as bootstrap,t as mcpOpenAiScript};
2
+ //# sourceMappingURL=mcpOpenAiBootstrap.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpOpenAiBootstrap.mjs","names":["bootstrap","channel","pending","sequence","globals","initial","update","patch","request","id","timer","reject","args","state","input","event","message","callback","observer","height","mcpOpenAiScript","encoded"],"sources":["../../../../../../src/lib/mcpOpenAiBootstrap.ts"],"sourcesContent":["interface LegacyGlobals {\n toolInput: Record<string, unknown>;\n toolOutput: unknown;\n toolResponseMetadata: Record<string, unknown>;\n widgetState: unknown;\n theme: 'light' | 'dark';\n locale: string;\n displayMode: 'inline';\n maxHeight: number;\n userAgent: { device: { type: 'desktop' | 'mobile' }; capabilities: { hover: boolean; touch: boolean } };\n safeArea: { insets: { top: number; right: number; bottom: number; left: number } };\n}\n\nexport function bootstrap(initial: LegacyGlobals): void {\n const channel = 'po.openai';\n const requestTimeout = 60_000;\n const pending = new Map<number, { resolve(value: unknown): void; reject(error: Error): void; timer: number }>();\n let sequence = 0;\n let globals = initial;\n const update = (patch: Partial<LegacyGlobals>): void => {\n globals = { ...globals, ...patch };\n window.dispatchEvent(new CustomEvent('openai:set_globals', { detail: { globals: patch } }));\n };\n const request = (method: string, input: unknown): Promise<unknown> => {\n if (pending.size >= 32) return Promise.reject(new Error('Too many pending widget requests'));\n const id = ++sequence;\n return new Promise((resolve, reject) => {\n const timer = window.setTimeout(() => {\n pending.delete(id);\n reject(new Error('Widget request timed out'));\n }, requestTimeout);\n pending.set(id, { resolve, reject, timer });\n parent.postMessage({ channel, id, method, input }, '*');\n });\n };\n const api = {\n get toolInput() {\n return globals.toolInput;\n },\n get toolOutput() {\n return globals.toolOutput;\n },\n get toolResponseMetadata() {\n return globals.toolResponseMetadata;\n },\n get widgetState() {\n return globals.widgetState;\n },\n get theme() {\n return globals.theme;\n },\n get locale() {\n return globals.locale;\n },\n get displayMode() {\n return globals.displayMode;\n },\n get maxHeight() {\n return globals.maxHeight;\n },\n get safeArea() {\n return globals.safeArea;\n },\n get userAgent() {\n return globals.userAgent;\n },\n callTool: (name: string, args: Record<string, unknown> = {}) => request('callTool', { name, arguments: args }),\n setWidgetState: (state: unknown) => {\n // Immediate local state, with await-compatible durable persistence.\n update({ widgetState: state });\n return request('setState', { state });\n },\n sendFollowUpMessage: (input: { prompt: string }) => request('followUp', input),\n requestDisplayMode: () => Promise.resolve({ mode: 'inline' }),\n openExternal: (input: { href: string }) => request('openLink', { url: input.href }),\n requestClose: () => request('close', {}),\n notifyIntrinsicHeight: (height: number) => request('height', { height }),\n };\n Object.defineProperty(window, 'openai', { value: Object.freeze(api), configurable: false, writable: false });\n window.addEventListener('message', (event: MessageEvent<unknown>) => {\n if (event.source !== parent) return;\n const message = event.data as {\n channel?: string;\n id?: number;\n error?: string;\n result?: unknown;\n globals?: Partial<LegacyGlobals>;\n };\n if (message?.channel !== channel) return;\n if (message.globals !== undefined) update(message.globals);\n if (message.id === undefined) return;\n const callback = pending.get(message.id);\n if (callback === undefined) return;\n pending.delete(message.id);\n clearTimeout(callback.timer);\n if (typeof message.error === 'string') callback.reject(new Error(message.error));\n else callback.resolve(message.result);\n });\n parent.postMessage({ channel, method: 'initialized', input: {} }, '*');\n document.addEventListener(\n 'DOMContentLoaded',\n () => {\n update(globals);\n const observer = new ResizeObserver(() => {\n const height = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);\n parent.postMessage({ channel, method: 'height', input: { height } }, '*');\n });\n observer.observe(document.body);\n window.addEventListener('pagehide', () => observer.disconnect(), { once: true });\n },\n { once: true },\n );\n}\n\nexport function mcpOpenAiScript(globals: LegacyGlobals): string {\n const encoded = JSON.stringify(globals)\n .replaceAll('<', '\\\\u003c')\n .replaceAll('\\u2028', '\\\\u2028')\n .replaceAll('\\u2029', '\\\\u2029');\n return `<script>(${bootstrap.toString()})(${encoded})</script>`;\n}\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"media.mjs","names":["MEDIA_KIND_BY_EXTENSION","extensionOf","name","filePath","dot","mediaKindOf"],"sources":["../../../../../../src/lib/media.ts"],"sourcesContent":["import type { MediaKind } from '../types/editor';\n\n/**\n * Which files a browser can show without help.\n *\n * Keyed by lower-case extension without the dot, and deliberately short: an\n * entry here is a promise that the element named by its kind will render the\n * bytes, so a format the browser only sometimes handles belongs in the\n * download fallback instead of on this list.\n */\nconst MEDIA_KIND_BY_EXTENSION: Readonly<Record<string, MediaKind>> = {\n avif: 'image',\n bmp: 'image',\n gif: 'image',\n ico: 'image',\n jpeg: 'image',\n jpg: 'image',\n png: 'image',\n svg: 'image',\n webp: 'image',\n m4v: 'video',\n mov: 'video',\n mp4: 'video',\n webm: 'video',\n pdf: 'pdf',\n};\n\n/** The extension of a path, lower-cased and without the dot; empty when it has none. */\nfunction extensionOf(filePath: string): string {\n const name = filePath.split('/').at(-1) ?? '';\n const dot = name.lastIndexOf('.');\n // A leading dot is the whole name of a dotfile, not the start of a suffix.\n return dot < 1 ? '' : name.slice(dot + 1).toLowerCase();\n}\n\n/**\n * How to show the file at this path. Anything unrecognised is a download,\n * which is the honest answer for a `.docx` or a `.zip`: a browser cannot\n * render it, and pretending otherwise costs a converter that loses the\n * formatting it converted.\n */\nexport function mediaKindOf(filePath: string): MediaKind {\n return MEDIA_KIND_BY_EXTENSION[extensionOf(filePath)] ?? 'download';\n}\n"],"mappings":"AAUA,MAAMA,EAA+D,CACnE,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,KACP,EAGA,SAASC,EAAY,EAA0B,CAC7C,IAAMC,EAAOC,EAAS,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,GAAK,GACrCC,EAAMF,EAAK,YAAY,GAAG,EAEhC,OAAOE,EAAM,EAAI,GAAKF,EAAK,MAAME,EAAM,CAAC,CAAC,CAAC,YAAY,CACxD,CAQA,SAAgBC,EAAY,EAA6B,CACvD,OAAOL,EAAwBC,EAAYE,CAAQ,IAAM,UAC3D"}
1
+ {"version":3,"file":"media.mjs","names":["MEDIA_KIND_BY_EXTENSION","extensionOf","name","filePath","dot","mediaKindOf"],"sources":["../../../../../../src/lib/media.ts"],"sourcesContent":["import type { MediaKind } from '../types/editor';\n\n/**\n * Which files a browser can show without help.\n *\n * Keyed by lower-case extension without the dot, and deliberately short: an\n * entry here is a promise that the element named by its kind will render the\n * bytes, so a format the browser only sometimes handles belongs in the\n * download fallback instead of on this list.\n */\nconst MEDIA_KIND_BY_EXTENSION: Readonly<Record<string, MediaKind>> = {\n avif: 'image',\n bmp: 'image',\n gif: 'image',\n ico: 'image',\n jpeg: 'image',\n jpg: 'image',\n png: 'image',\n svg: 'image',\n webp: 'image',\n m4v: 'video',\n mov: 'video',\n mp4: 'video',\n webm: 'video',\n pdf: 'pdf',\n};\n\n/** The extension of a path, lower-cased and without the dot; empty when it has none. */\nfunction extensionOf(filePath: string): string {\n const name = filePath.split('/').at(-1) ?? '';\n const dot = name.lastIndexOf('.');\n // A leading dot is the whole name of a dotfile, not the start of a suffix.\n return dot < 1 ? '' : name.slice(dot + 1).toLowerCase();\n}\n\n/**\n * How to show the file at this path. Anything unrecognised is a download,\n * which is the honest answer for a `.docx` or a `.zip`: a browser cannot\n * render it, and pretending otherwise costs a converter that loses the\n * formatting it converted.\n */\nexport function mediaKindOf(filePath: string): MediaKind {\n return MEDIA_KIND_BY_EXTENSION[extensionOf(filePath)] ?? 'download';\n}\n"],"mappings":"AAUA,MAAMA,EAA+D,CACnE,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,QACL,IAAK,QACL,IAAK,QACL,KAAM,QACN,IAAK,KACP,EAGA,SAASC,EAAY,EAA0B,CAC7C,IAAMC,EAAOC,EAAS,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,GAAK,GACrCC,EAAMF,EAAK,YAAY,GAAG,EAEhC,OAAOE,EAAM,EAAI,GAAKF,EAAK,MAAME,EAAM,CAAC,CAAC,CAAC,YAAY,CACxD,CAQA,SAAgBC,EAAY,EAA6B,CACvD,OAAOL,EAAwBC,EAAYE,CAAQ,IAAM,UAC3D,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"mediaPlayback.mjs","names":["boundedMediaTime","seconds","duration"],"sources":["../../../../../../src/lib/mediaPlayback.ts"],"sourcesContent":["/** Keep an imperative seek inside the playable part of the current video. */\nexport function boundedMediaTime(seconds: number, duration: number): number {\n if (!Number.isFinite(seconds)) throw new RangeError('Media seek time must be finite');\n const end = Number.isFinite(duration) && duration >= 0 ? duration : Number.POSITIVE_INFINITY;\n return Math.min(Math.max(seconds, 0), end);\n}\n"],"mappings":"AACA,SAAgBA,EAAiB,EAAiB,EAA0B,CAC1E,GAAI,CAAC,OAAO,SAASC,CAAO,EAAG,MAAU,WAAW,gCAAgC,EAEpF,OAAO,KAAK,IAAI,KAAK,IAAIA,EAAS,CAAC,EADvB,OAAO,SAASC,CAAQ,GAAKA,GAAY,EAAIA,EAAW,GAC3B,CAC3C"}
1
+ {"version":3,"file":"mediaPlayback.mjs","names":["boundedMediaTime","seconds","duration"],"sources":["../../../../../../src/lib/mediaPlayback.ts"],"sourcesContent":["/** Keep an imperative seek inside the playable part of the current video. */\nexport function boundedMediaTime(seconds: number, duration: number): number {\n if (!Number.isFinite(seconds)) throw new RangeError('Media seek time must be finite');\n const end = Number.isFinite(duration) && duration >= 0 ? duration : Number.POSITIVE_INFINITY;\n return Math.min(Math.max(seconds, 0), end);\n}\n"],"mappings":"AACA,SAAgBA,EAAiB,EAAiB,EAA0B,CAC1E,GAAI,CAAC,OAAO,SAASC,CAAO,EAAG,MAAU,WAAW,gCAAgC,EAEpF,OAAO,KAAK,IAAI,KAAK,IAAIA,EAAS,CAAC,EADvB,OAAO,SAASC,CAAQ,GAAKA,GAAY,EAAIA,EAAW,GAC3B,CAC3C,C"}
@@ -1,2 +1,2 @@
1
- let e;async function t(){return e??=import(`mermaid`).then(({default:e})=>(e.initialize({startOnLoad:!1,fontFamily:`inherit`,theme:`dark`,securityLevel:`strict`}),e)),e}async function n(e,n){let{svg:r}=await(await t()).render(e,n);return r}export{n as renderMermaid};
1
+ let e;async function t(){return e??=import(`mermaid`).then(({default:e})=>(e.initialize({startOnLoad:!1,fontFamily:`inherit`,theme:`dark`,securityLevel:`strict`,suppressErrorRendering:!0}),e)),e}async function n(e,n){let{svg:r}=await(await t()).render(e,n);return r}export{n as renderMermaid};
2
2
  //# sourceMappingURL=mermaidDiagram.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mermaidDiagram.mjs","names":["loading","mermaidApi","mermaid","renderMermaid","id","code","svg"],"sources":["../../../../../../src/lib/mermaidDiagram.ts"],"sourcesContent":["/**\n * Mermaid, loaded only for a message that actually draws one.\n *\n * Mermaid is the largest thing this library can pull in, so nothing imports it\n * at module scope: the dynamic import below is its own chunk, fetched the\n * first time a `mermaid` fence renders and reused after that. The renderer\n * needs a document to measure text, so this module is browser-only by nature\n * and every caller is inside an effect.\n */\n\nlet loading: Promise<typeof import('mermaid').default> | undefined;\n\n/** Loads and configures mermaid once per page. */\nasync function mermaidApi(): Promise<typeof import('mermaid').default> {\n loading ??= import('mermaid').then(({ default: mermaid }) => {\n mermaid.initialize({\n startOnLoad: false,\n // Diagram text follows the surface it sits on rather than mermaid's own\n // font stack, and the dark base is the only preset close to the cockpit.\n fontFamily: 'inherit',\n theme: 'dark',\n // Strict is mermaid's default and its sanitiser: labels are escaped and\n // script-carrying markup is stripped before the SVG is handed back,\n // which is what makes rendering diagram text from a model safe.\n securityLevel: 'strict',\n });\n return mermaid;\n });\n return loading;\n}\n\n/**\n * The SVG for one diagram.\n *\n * Rejects on invalid syntax, which for a streaming message is the normal case\n * until the fence closes; the caller shows the source until it resolves.\n */\nexport async function renderMermaid(id: string, code: string): Promise<string> {\n const mermaid = await mermaidApi();\n const { svg } = await mermaid.render(id, code);\n return svg;\n}\n"],"mappings":"AAUA,IAAIA,EAGJ,eAAeC,GAAwD,CAerE,MAdA,KAAY,OAAO,UAAU,CAAC,MAAM,CAAE,QAASC,MAC7CA,EAAQ,WAAW,CACjB,YAAa,GAGb,WAAY,UACZ,MAAO,OAIP,cAAe,QACjB,CAAC,EACMA,EACR,EACMF,CACT,CAQA,eAAsBG,EAAc,EAAY,EAA+B,CAE7E,GAAM,CAAE,OAAQ,MAAM,MADAF,EAAW,EAAA,CACH,OAAOG,EAAIC,CAAI,EAC7C,OAAOC,CACT"}
1
+ {"version":3,"file":"mermaidDiagram.mjs","names":["loading","mermaidApi","mermaid","renderMermaid","id","code","svg"],"sources":["../../../../../../src/lib/mermaidDiagram.ts"],"sourcesContent":["/**\n * Mermaid, loaded only for a message that actually draws one.\n *\n * Mermaid is the largest thing this library can pull in, so nothing imports it\n * at module scope: the dynamic import below is its own chunk, fetched the\n * first time a `mermaid` fence renders and reused after that. The renderer\n * needs a document to measure text, so this module is browser-only by nature\n * and every caller is inside an effect.\n */\n\nlet loading: Promise<typeof import('mermaid').default> | undefined;\n\n/** Loads and configures mermaid once per page. */\nasync function mermaidApi(): Promise<typeof import('mermaid').default> {\n loading ??= import('mermaid').then(({ default: mermaid }) => {\n mermaid.initialize({\n startOnLoad: false,\n // Diagram text follows the surface it sits on rather than mermaid's own\n // font stack, and the dark base is the only preset close to the cockpit.\n fontFamily: 'inherit',\n theme: 'dark',\n // Strict is mermaid's default and its sanitiser: labels are escaped and\n // script-carrying markup is stripped before the SVG is handed back,\n // which is what makes rendering diagram text from a model safe.\n securityLevel: 'strict',\n // Without this, a failed render leaves mermaid's bomb error diagram\n // appended to <body>, outside the conversation. The caller already\n // falls back to the source on rejection, so just throw.\n suppressErrorRendering: true,\n });\n return mermaid;\n });\n return loading;\n}\n\n/**\n * The SVG for one diagram.\n *\n * Rejects on invalid syntax, which for a streaming message is the normal case\n * until the fence closes; the caller shows the source until it resolves.\n */\nexport async function renderMermaid(id: string, code: string): Promise<string> {\n const mermaid = await mermaidApi();\n const { svg } = await mermaid.render(id, code);\n return svg;\n}\n"],"mappings":"AAUA,IAAIA,EAGJ,eAAeC,GAAwD,CAmBrE,MAlBA,KAAY,OAAO,UAAU,CAAC,MAAM,CAAE,QAASC,MAC7CA,EAAQ,WAAW,CACjB,YAAa,GAGb,WAAY,UACZ,MAAO,OAIP,cAAe,SAIf,uBAAwB,EAC1B,CAAC,EACMA,EACR,EACMF,CACT,CAQA,eAAsBG,EAAc,EAAY,EAA+B,CAE7E,GAAM,CAAE,OAAQ,MAAM,MADAF,EAAW,EAAA,CACH,OAAOG,EAAIC,CAAI,EAC7C,OAAOC,CACT,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"optionList.mjs","names":["MAX_DIGIT_SHORTCUT","handleOptionListKey","input","count","options","event","onCursorChange","cursor","option","onSelect","index","optionListHint","optionMarker"],"sources":["../../../../../../src/lib/optionList.ts"],"sourcesContent":["import type { KeyboardEvent } from 'react';\n\n/** Digits are a shortcut, not the only way in: only the first nine can have one. */\nexport const MAX_DIGIT_SHORTCUT = 9;\n\n/**\n * The keyboard an option list answers to, handled on whichever element the\n * surrounding overlay focuses. Every key it claims is consumed, so a digit\n * that answers the agent never also reaches the rail's session shortcuts.\n */\nexport function handleOptionListKey(\n event: KeyboardEvent,\n input: {\n options: readonly string[];\n cursor: number;\n onCursorChange: (cursor: number) => void;\n onSelect: (option: string) => void;\n },\n): void {\n const { options, cursor, onCursorChange, onSelect } = input;\n const count = options.length;\n if (count === 0) return;\n\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n onCursorChange((cursor + (event.key === 'ArrowDown' ? 1 : -1) + count) % count);\n return;\n }\n if (event.key === 'Enter') {\n const option = options[cursor];\n if (option === undefined) return;\n event.preventDefault();\n event.stopPropagation();\n onSelect(option);\n return;\n }\n const index = Number.parseInt(event.key, 10) - 1;\n const option = Number.isInteger(index) && index < MAX_DIGIT_SHORTCUT ? options[index] : undefined;\n if (option === undefined) return;\n event.preventDefault();\n event.stopPropagation();\n onSelect(option);\n}\n\n/** What the footer should promise, given how many options there are. */\nexport function optionListHint(count: number): string {\n return count > MAX_DIGIT_SHORTCUT ? 'up/down move · enter select · 1-9 jump' : '1-9 select · enter confirm';\n}\n\n/** The digit a row answers to, or the bullet that says it has none. */\nexport function optionMarker(index: number): string {\n return index < MAX_DIGIT_SHORTCUT ? String(index + 1) : '·';\n}\n"],"mappings":"AAGA,MAAaA,EAAqB,EAOlC,SAAgBC,EACd,EACA,EAMM,CACN,GAAM,CAAE,UAAS,SAAQ,iBAAgB,YAAaC,EAChDC,EAAQC,EAAQ,OACtB,GAAID,IAAU,EAAG,OAEjB,GAAIE,EAAM,MAAQ,aAAeA,EAAM,MAAQ,UAAW,CACxDA,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBC,GAAgBC,GAAUF,EAAM,MAAQ,YAAc,EAAI,IAAMF,GAASA,CAAK,EAC9E,MACF,CACA,GAAIE,EAAM,MAAQ,QAAS,CACzB,IAAMG,EAASJ,EAAQG,GACvB,GAAIC,IAAW,IAAA,GAAW,OAC1BH,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBI,EAASD,CAAM,EACf,MACF,CACA,IAAME,EAAQ,OAAO,SAASL,EAAM,IAAK,EAAE,EAAI,EACzCG,EAAS,OAAO,UAAUE,CAAK,GAAKA,EAAA,EAA6BN,EAAQM,GAAS,IAAA,GACpFF,IAAW,IAAA,KACfH,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBI,EAASD,CAAM,EACjB,CAGA,SAAgBG,EAAe,EAAuB,CACpD,OAAOR,EAAA,EAA6B,yCAA2C,4BACjF,CAGA,SAAgBS,EAAa,EAAuB,CAClD,OAAOF,EAAA,EAA6B,OAAOA,EAAQ,CAAC,EAAI,GAC1D"}
1
+ {"version":3,"file":"optionList.mjs","names":["MAX_DIGIT_SHORTCUT","handleOptionListKey","input","count","options","event","onCursorChange","cursor","option","onSelect","index","optionListHint","optionMarker"],"sources":["../../../../../../src/lib/optionList.ts"],"sourcesContent":["import type { KeyboardEvent } from 'react';\n\n/** Digits are a shortcut, not the only way in: only the first nine can have one. */\nexport const MAX_DIGIT_SHORTCUT = 9;\n\n/**\n * The keyboard an option list answers to, handled on whichever element the\n * surrounding overlay focuses. Every key it claims is consumed, so a digit\n * that answers the agent never also reaches the rail's session shortcuts.\n */\nexport function handleOptionListKey(\n event: KeyboardEvent,\n input: {\n options: readonly string[];\n cursor: number;\n onCursorChange: (cursor: number) => void;\n onSelect: (option: string) => void;\n },\n): void {\n const { options, cursor, onCursorChange, onSelect } = input;\n const count = options.length;\n if (count === 0) return;\n\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n event.preventDefault();\n event.stopPropagation();\n onCursorChange((cursor + (event.key === 'ArrowDown' ? 1 : -1) + count) % count);\n return;\n }\n if (event.key === 'Enter') {\n const option = options[cursor];\n if (option === undefined) return;\n event.preventDefault();\n event.stopPropagation();\n onSelect(option);\n return;\n }\n const index = Number.parseInt(event.key, 10) - 1;\n const option = Number.isInteger(index) && index < MAX_DIGIT_SHORTCUT ? options[index] : undefined;\n if (option === undefined) return;\n event.preventDefault();\n event.stopPropagation();\n onSelect(option);\n}\n\n/** What the footer should promise, given how many options there are. */\nexport function optionListHint(count: number): string {\n return count > MAX_DIGIT_SHORTCUT ? 'up/down move · enter select · 1-9 jump' : '1-9 select · enter confirm';\n}\n\n/** The digit a row answers to, or the bullet that says it has none. */\nexport function optionMarker(index: number): string {\n return index < MAX_DIGIT_SHORTCUT ? String(index + 1) : '·';\n}\n"],"mappings":"AAGA,MAAaA,EAAqB,EAOlC,SAAgBC,EACd,EACA,EAMM,CACN,GAAM,CAAE,UAAS,SAAQ,iBAAgB,YAAaC,EAChDC,EAAQC,EAAQ,OACtB,GAAID,IAAU,EAAG,OAEjB,GAAIE,EAAM,MAAQ,aAAeA,EAAM,MAAQ,UAAW,CACxDA,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBC,GAAgBC,GAAUF,EAAM,MAAQ,YAAc,EAAI,IAAMF,GAASA,CAAK,EAC9E,MACF,CACA,GAAIE,EAAM,MAAQ,QAAS,CACzB,IAAMG,EAASJ,EAAQG,GACvB,GAAIC,IAAW,IAAA,GAAW,OAC1BH,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBI,EAASD,CAAM,EACf,MACF,CACA,IAAME,EAAQ,OAAO,SAASL,EAAM,IAAK,EAAE,EAAI,EACzCG,EAAS,OAAO,UAAUE,CAAK,GAAKA,EAAA,EAA6BN,EAAQM,GAAS,IAAA,GACpFF,IAAW,IAAA,KACfH,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBI,EAASD,CAAM,EACjB,CAGA,SAAgBG,EAAe,EAAuB,CACpD,OAAOR,EAAA,EAA6B,yCAA2C,4BACjF,CAGA,SAAgBS,EAAa,EAAuB,CAClD,OAAOF,EAAA,EAA6B,OAAOA,EAAQ,CAAC,EAAI,GAC1D,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"pathGroups.mjs","names":["parentDir","cut","relPath","commonDir","leftParts","left","rightParts","right","shared","index","groupByDirectory","buckets","item","items","pathOf","key","bucket","groups","sorted","prefix","groupRowLabel"],"sources":["../../../../../../src/lib/pathGroups.ts"],"sourcesContent":["/**\n * The two-level grouping a changed-file list uses: one header per top-level\n * segment, each naming the deepest directory its files share.\n *\n * Two levels rather than a full tree: paths here run five and six segments\n * deep, so a node per segment spends more rows on directories than on the files\n * someone came to find. The header carries the shared run of directories and\n * each row carries what is left, so a file stays one row and the part that\n * distinguishes it stays readable.\n */\n\n/** One header row and the items under it. */\nexport interface PathGroup<T> {\n /** The shared directory the header names, or empty for files at the root. */\n prefix: string;\n items: T[];\n}\n\n/** The directory part of a relative path, or empty for a file at the root. */\nfunction parentDir(relPath: string): string {\n const cut = relPath.lastIndexOf('/');\n return cut === -1 ? '' : relPath.slice(0, cut);\n}\n\n/** The longest directory two paths share, compared segment by segment rather than character by character. */\nfunction commonDir(left: string, right: string): string {\n const leftParts = left.split('/');\n const rightParts = right.split('/');\n const shared: string[] = [];\n for (let index = 0; index < Math.min(leftParts.length, rightParts.length); index += 1) {\n if (leftParts[index] !== rightParts[index]) break;\n shared.push(leftParts[index]);\n }\n return shared.join('/');\n}\n\n/** Groups by top-level segment, ordered by path so a header's files sit together under it. */\nexport function groupByDirectory<T>(items: readonly T[], pathOf: (item: T) => string): PathGroup<T>[] {\n const buckets = new Map<string, T[]>();\n for (const item of items) {\n const relPath = pathOf(item);\n const cut = relPath.indexOf('/');\n const key = cut === -1 ? '' : relPath.slice(0, cut);\n const bucket = buckets.get(key);\n if (bucket === undefined) buckets.set(key, [item]);\n else bucket.push(item);\n }\n const groups: PathGroup<T>[] = [];\n for (const [key, bucket] of buckets) {\n const sorted = [...bucket].sort((left, right) => pathOf(left).localeCompare(pathOf(right)));\n // Root files have no directory to name, so they keep an empty header and\n // render their own paths in full.\n const prefix = key === '' ? '' : sorted.map((item) => parentDir(pathOf(item))).reduce(commonDir);\n groups.push({ prefix, items: sorted });\n }\n return groups.sort((left, right) => left.prefix.localeCompare(right.prefix));\n}\n\n/** What one row shows once its group's header has already said the shared part. */\nexport function groupRowLabel(prefix: string, relPath: string): string {\n return prefix === '' ? relPath : relPath.slice(prefix.length + 1);\n}\n"],"mappings":"AAmBA,SAASA,EAAU,EAAyB,CAC1C,IAAMC,EAAMC,EAAQ,YAAY,GAAG,EACnC,OAAOD,IAAQ,GAAK,GAAKC,EAAQ,MAAM,EAAGD,CAAG,CAC/C,CAGA,SAASE,EAAU,EAAc,EAAuB,CACtD,IAAMC,EAAYC,EAAK,MAAM,GAAG,EAC1BC,EAAaC,EAAM,MAAM,GAAG,EAC5BC,EAAmB,CAAC,EAC1B,IAAK,IAAIC,EAAQ,EAAGA,EAAQ,KAAK,IAAIL,EAAU,OAAQE,EAAW,MAAM,GAClEF,EAAUK,KAAWH,EAAWG,GADqC,GAAS,EAElFD,EAAO,KAAKJ,EAAUK,EAAM,EAE9B,OAAOD,EAAO,KAAK,GAAG,CACxB,CAGA,SAAgBE,EAAoB,EAAqB,EAA6C,CACpG,IAAMC,kBAAU,IAAI,IACpB,IAAK,IAAMC,KAAQC,EAAO,CACxB,IAAMX,EAAUY,EAAOF,CAAI,EACrBX,EAAMC,EAAQ,QAAQ,GAAG,EACzBa,EAAMd,IAAQ,GAAK,GAAKC,EAAQ,MAAM,EAAGD,CAAG,EAC5Ce,EAASL,EAAQ,IAAII,CAAG,EAC1BC,IAAW,IAAA,GAAWL,EAAQ,IAAII,EAAK,CAACH,CAAI,CAAC,EAC5CI,EAAO,KAAKJ,CAAI,CACvB,CACA,IAAMK,EAAyB,CAAC,EAChC,IAAK,GAAM,CAACF,EAAKC,KAAWL,EAAS,CACnC,IAAMO,EAAS,CAAC,GAAGF,CAAM,CAAC,CAAC,MAAM,EAAM,IAAUF,EAAOT,CAAI,CAAC,CAAC,cAAcS,EAAOP,CAAK,CAAC,CAAC,EAGpFY,EAASJ,IAAQ,GAAK,GAAKG,EAAO,IAAK,GAASlB,EAAUc,EAAOF,CAAI,CAAC,CAAC,CAAC,CAAC,OAAOT,CAAS,EAC/Fc,EAAO,KAAK,CAAE,SAAQ,MAAOC,CAAO,CAAC,CACvC,CACA,OAAOD,EAAO,MAAM,EAAM,IAAUZ,EAAK,OAAO,cAAcE,EAAM,MAAM,CAAC,CAC7E,CAGA,SAAgBa,EAAc,EAAgB,EAAyB,CACrE,OAAOD,IAAW,GAAKjB,EAAUA,EAAQ,MAAMiB,EAAO,OAAS,CAAC,CAClE"}
1
+ {"version":3,"file":"pathGroups.mjs","names":["parentDir","cut","relPath","commonDir","leftParts","left","rightParts","right","shared","index","groupByDirectory","buckets","item","items","pathOf","key","bucket","groups","sorted","prefix","groupRowLabel"],"sources":["../../../../../../src/lib/pathGroups.ts"],"sourcesContent":["/**\n * The two-level grouping a changed-file list uses: one header per top-level\n * segment, each naming the deepest directory its files share.\n *\n * Two levels rather than a full tree: paths here run five and six segments\n * deep, so a node per segment spends more rows on directories than on the files\n * someone came to find. The header carries the shared run of directories and\n * each row carries what is left, so a file stays one row and the part that\n * distinguishes it stays readable.\n */\n\n/** One header row and the items under it. */\nexport interface PathGroup<T> {\n /** The shared directory the header names, or empty for files at the root. */\n prefix: string;\n items: T[];\n}\n\n/** The directory part of a relative path, or empty for a file at the root. */\nfunction parentDir(relPath: string): string {\n const cut = relPath.lastIndexOf('/');\n return cut === -1 ? '' : relPath.slice(0, cut);\n}\n\n/** The longest directory two paths share, compared segment by segment rather than character by character. */\nfunction commonDir(left: string, right: string): string {\n const leftParts = left.split('/');\n const rightParts = right.split('/');\n const shared: string[] = [];\n for (let index = 0; index < Math.min(leftParts.length, rightParts.length); index += 1) {\n if (leftParts[index] !== rightParts[index]) break;\n shared.push(leftParts[index]);\n }\n return shared.join('/');\n}\n\n/** Groups by top-level segment, ordered by path so a header's files sit together under it. */\nexport function groupByDirectory<T>(items: readonly T[], pathOf: (item: T) => string): PathGroup<T>[] {\n const buckets = new Map<string, T[]>();\n for (const item of items) {\n const relPath = pathOf(item);\n const cut = relPath.indexOf('/');\n const key = cut === -1 ? '' : relPath.slice(0, cut);\n const bucket = buckets.get(key);\n if (bucket === undefined) buckets.set(key, [item]);\n else bucket.push(item);\n }\n const groups: PathGroup<T>[] = [];\n for (const [key, bucket] of buckets) {\n const sorted = [...bucket].sort((left, right) => pathOf(left).localeCompare(pathOf(right)));\n // Root files have no directory to name, so they keep an empty header and\n // render their own paths in full.\n const prefix = key === '' ? '' : sorted.map((item) => parentDir(pathOf(item))).reduce(commonDir);\n groups.push({ prefix, items: sorted });\n }\n return groups.sort((left, right) => left.prefix.localeCompare(right.prefix));\n}\n\n/** What one row shows once its group's header has already said the shared part. */\nexport function groupRowLabel(prefix: string, relPath: string): string {\n return prefix === '' ? relPath : relPath.slice(prefix.length + 1);\n}\n"],"mappings":"AAmBA,SAASA,EAAU,EAAyB,CAC1C,IAAMC,EAAMC,EAAQ,YAAY,GAAG,EACnC,OAAOD,IAAQ,GAAK,GAAKC,EAAQ,MAAM,EAAGD,CAAG,CAC/C,CAGA,SAASE,EAAU,EAAc,EAAuB,CACtD,IAAMC,EAAYC,EAAK,MAAM,GAAG,EAC1BC,EAAaC,EAAM,MAAM,GAAG,EAC5BC,EAAmB,CAAC,EAC1B,IAAK,IAAIC,EAAQ,EAAGA,EAAQ,KAAK,IAAIL,EAAU,OAAQE,EAAW,MAAM,GAClEF,EAAUK,KAAWH,EAAWG,GADqC,GAAS,EAElFD,EAAO,KAAKJ,EAAUK,EAAM,EAE9B,OAAOD,EAAO,KAAK,GAAG,CACxB,CAGA,SAAgBE,EAAoB,EAAqB,EAA6C,CACpG,IAAMC,kBAAU,IAAI,IACpB,IAAK,IAAMC,KAAQC,EAAO,CACxB,IAAMX,EAAUY,EAAOF,CAAI,EACrBX,EAAMC,EAAQ,QAAQ,GAAG,EACzBa,EAAMd,IAAQ,GAAK,GAAKC,EAAQ,MAAM,EAAGD,CAAG,EAC5Ce,EAASL,EAAQ,IAAII,CAAG,EAC1BC,IAAW,IAAA,GAAWL,EAAQ,IAAII,EAAK,CAACH,CAAI,CAAC,EAC5CI,EAAO,KAAKJ,CAAI,CACvB,CACA,IAAMK,EAAyB,CAAC,EAChC,IAAK,GAAM,CAACF,EAAKC,KAAWL,EAAS,CACnC,IAAMO,EAAS,CAAC,GAAGF,CAAM,CAAC,CAAC,MAAM,EAAM,IAAUF,EAAOT,CAAI,CAAC,CAAC,cAAcS,EAAOP,CAAK,CAAC,CAAC,EAGpFY,EAASJ,IAAQ,GAAK,GAAKG,EAAO,IAAK,GAASlB,EAAUc,EAAOF,CAAI,CAAC,CAAC,CAAC,CAAC,OAAOT,CAAS,EAC/Fc,EAAO,KAAK,CAAE,SAAQ,MAAOC,CAAO,CAAC,CACvC,CACA,OAAOD,EAAO,MAAM,EAAM,IAAUZ,EAAK,OAAO,cAAcE,EAAM,MAAM,CAAC,CAC7E,CAGA,SAAgBa,EAAc,EAAgB,EAAyB,CACrE,OAAOD,IAAW,GAAKjB,EAAUA,EAAQ,MAAMiB,EAAO,OAAS,CAAC,CAClE,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"picker.mjs","names":["filterPickerItems","needle","filter","items","item","initialPickerCursor","value","toggleDraft","next","draft","draftChanged","appliedValues","pickerHint","multiple","filterable","pickerKeyAction","state","key","count","cursor","index"],"sources":["../../../../../../src/lib/picker.ts"],"sourcesContent":["import { MAX_DIGIT_SHORTCUT } from './optionList';\n\n/** What a picker row needs for matching and ordering; the view adds its own presentation. */\nexport interface PickerChoice {\n value: string;\n title: string;\n subtitle?: string;\n disabledReason?: string;\n}\n\n/** What a key does to a picker, decided apart from the DOM so it can be tested. */\nexport type PickerKeyAction = { kind: 'move'; cursor: number } | { kind: 'pick'; index: number };\n\n/** Rows whose title, subtitle or value contain the filter, case-insensitively. */\nexport function filterPickerItems<T extends PickerChoice>(items: readonly T[], filter: string): readonly T[] {\n const needle = filter.trim().toLowerCase();\n if (needle === '') return items;\n return items.filter((item) => `${item.title} ${item.subtitle ?? ''} ${item.value}`.toLowerCase().includes(needle));\n}\n\n/** Open on what is in effect, so Enter on a single choice keeps it. */\nexport function initialPickerCursor(items: readonly PickerChoice[], value: readonly string[]): number {\n return Math.max(\n 0,\n items.findIndex((item) => value.includes(item.value)),\n );\n}\n\n/** The draft with one value flipped. */\nexport function toggleDraft(draft: ReadonlySet<string>, value: string): Set<string> {\n const next = new Set(draft);\n if (!next.delete(value)) next.add(value);\n return next;\n}\n\n/** Whether the draft differs from what is in effect, which is what makes Apply worth pressing. */\nexport function draftChanged(draft: ReadonlySet<string>, value: readonly string[]): boolean {\n return draft.size !== value.length || value.some((item) => !draft.has(item));\n}\n\n/** The drafted values in the order they were offered, not the order they were clicked. */\nexport function appliedValues(items: readonly PickerChoice[], draft: ReadonlySet<string>): string[] {\n return items.filter((item) => draft.has(item.value)).map((item) => item.value);\n}\n\n/** The keys the footer promises, given the mode and whether a filter takes typing. */\nexport function pickerHint(multiple: boolean, filterable: boolean): string {\n if (multiple) return filterable ? 'enter toggles · tab to Apply' : '1-9, space or enter toggles · tab to Apply';\n return filterable ? 'type to filter · enter picks' : '1-9 or enter picks';\n}\n\n/**\n * The action a key asks for, or null to leave it alone. Digits jump to a row\n * only without a filter, which would otherwise take them as typing; space\n * toggles a multiple choice for the same reason.\n */\nexport function pickerKeyAction(\n key: string,\n state: { count: number; cursor: number; multiple: boolean; filterable: boolean },\n): PickerKeyAction | null {\n const { count, cursor, multiple, filterable } = state;\n if (key === 'ArrowDown' || key === 'ArrowUp') {\n if (count === 0) return null;\n return { kind: 'move', cursor: (cursor + (key === 'ArrowDown' ? 1 : -1) + count) % count };\n }\n if (key === 'Enter') return count === 0 ? null : { kind: 'pick', index: cursor };\n if (filterable) return null;\n if (key === ' ' && multiple) return count === 0 ? null : { kind: 'pick', index: cursor };\n const index = Number.parseInt(key, 10) - 1;\n if (!Number.isInteger(index) || index < 0 || index >= Math.min(count, MAX_DIGIT_SHORTCUT)) return null;\n return { kind: 'pick', index };\n}\n"],"mappings":"yBAcA,SAAgBA,EAA0C,EAAqB,EAA8B,CAC3G,IAAMC,EAASC,EAAO,KAAK,CAAC,CAAC,YAAY,EAEzC,OADID,IAAW,GAAWE,EACnBA,EAAM,OAAQ,GAAS,GAAGC,EAAK,MAAM,GAAGA,EAAK,UAAY,GAAG,GAAGA,EAAK,QAAQ,YAAY,CAAC,CAAC,SAASH,CAAM,CAAC,CACnH,CAGA,SAAgBI,EAAoB,EAAgC,EAAkC,CACpG,OAAO,KAAK,IACV,EACAF,EAAM,UAAW,GAASG,EAAM,SAASF,EAAK,KAAK,CAAC,CACtD,CACF,CAGA,SAAgBG,EAAY,EAA4B,EAA4B,CAClF,IAAMC,EAAO,IAAI,IAAIC,CAAK,EAE1B,OADKD,EAAK,OAAOF,CAAK,GAAGE,EAAK,IAAIF,CAAK,EAChCE,CACT,CAGA,SAAgBE,EAAa,EAA4B,EAAmC,CAC1F,OAAOD,EAAM,OAASH,EAAM,QAAUA,EAAM,KAAM,GAAS,CAACG,EAAM,IAAIL,CAAI,CAAC,CAC7E,CAGA,SAAgBO,EAAc,EAAgC,EAAsC,CAClG,OAAOR,EAAM,OAAQ,GAASM,EAAM,IAAIL,EAAK,KAAK,CAAC,CAAC,CAAC,IAAK,GAASA,EAAK,KAAK,CAC/E,CAGA,SAAgBQ,EAAW,EAAmB,EAA6B,CAEzE,OADIC,EAAiBC,EAAa,+BAAiC,6CAC5DA,EAAa,+BAAiC,oBACvD,CAOA,SAAgBC,EACd,EACA,EACwB,CACxB,GAAM,CAAE,QAAO,SAAQ,WAAU,cAAeC,EAChD,GAAIC,IAAQ,aAAeA,IAAQ,UAEjC,OADIC,IAAU,EAAU,KACjB,CAAE,KAAM,OAAQ,QAASC,GAAUF,IAAQ,YAAc,EAAI,IAAMC,GAASA,CAAM,EAE3F,GAAID,IAAQ,QAAS,OAAOC,IAAU,EAAI,KAAO,CAAE,KAAM,OAAQ,MAAOC,CAAO,EAC/E,GAAIL,EAAY,OAAO,KACvB,GAAIG,IAAQ,KAAOJ,EAAU,OAAOK,IAAU,EAAI,KAAO,CAAE,KAAM,OAAQ,MAAOC,CAAO,EACvF,IAAMC,EAAQ,OAAO,SAASH,EAAK,EAAE,EAAI,EAEzC,MADI,CAAC,OAAO,UAAUG,CAAK,GAAKA,EAAQ,GAAKA,GAAS,KAAK,IAAIF,EAAA,CAAyB,EAAU,KAC3F,CAAE,KAAM,OAAQ,OAAM,CAC/B"}
1
+ {"version":3,"file":"picker.mjs","names":["filterPickerItems","needle","filter","items","item","initialPickerCursor","value","toggleDraft","next","draft","draftChanged","appliedValues","pickerHint","multiple","filterable","pickerKeyAction","state","key","count","cursor","index"],"sources":["../../../../../../src/lib/picker.ts"],"sourcesContent":["import { MAX_DIGIT_SHORTCUT } from './optionList';\n\n/** What a picker row needs for matching and ordering; the view adds its own presentation. */\nexport interface PickerChoice {\n value: string;\n title: string;\n subtitle?: string;\n disabledReason?: string;\n}\n\n/** What a key does to a picker, decided apart from the DOM so it can be tested. */\nexport type PickerKeyAction = { kind: 'move'; cursor: number } | { kind: 'pick'; index: number };\n\n/** Rows whose title, subtitle or value contain the filter, case-insensitively. */\nexport function filterPickerItems<T extends PickerChoice>(items: readonly T[], filter: string): readonly T[] {\n const needle = filter.trim().toLowerCase();\n if (needle === '') return items;\n return items.filter((item) => `${item.title} ${item.subtitle ?? ''} ${item.value}`.toLowerCase().includes(needle));\n}\n\n/** Open on what is in effect, so Enter on a single choice keeps it. */\nexport function initialPickerCursor(items: readonly PickerChoice[], value: readonly string[]): number {\n return Math.max(\n 0,\n items.findIndex((item) => value.includes(item.value)),\n );\n}\n\n/** The draft with one value flipped. */\nexport function toggleDraft(draft: ReadonlySet<string>, value: string): Set<string> {\n const next = new Set(draft);\n if (!next.delete(value)) next.add(value);\n return next;\n}\n\n/** Whether the draft differs from what is in effect, which is what makes Apply worth pressing. */\nexport function draftChanged(draft: ReadonlySet<string>, value: readonly string[]): boolean {\n return draft.size !== value.length || value.some((item) => !draft.has(item));\n}\n\n/** The drafted values in the order they were offered, not the order they were clicked. */\nexport function appliedValues(items: readonly PickerChoice[], draft: ReadonlySet<string>): string[] {\n return items.filter((item) => draft.has(item.value)).map((item) => item.value);\n}\n\n/** The keys the footer promises, given the mode and whether a filter takes typing. */\nexport function pickerHint(multiple: boolean, filterable: boolean): string {\n if (multiple) return filterable ? 'enter toggles · tab to Apply' : '1-9, space or enter toggles · tab to Apply';\n return filterable ? 'type to filter · enter picks' : '1-9 or enter picks';\n}\n\n/**\n * The action a key asks for, or null to leave it alone. Digits jump to a row\n * only without a filter, which would otherwise take them as typing; space\n * toggles a multiple choice for the same reason.\n */\nexport function pickerKeyAction(\n key: string,\n state: { count: number; cursor: number; multiple: boolean; filterable: boolean },\n): PickerKeyAction | null {\n const { count, cursor, multiple, filterable } = state;\n if (key === 'ArrowDown' || key === 'ArrowUp') {\n if (count === 0) return null;\n return { kind: 'move', cursor: (cursor + (key === 'ArrowDown' ? 1 : -1) + count) % count };\n }\n if (key === 'Enter') return count === 0 ? null : { kind: 'pick', index: cursor };\n if (filterable) return null;\n if (key === ' ' && multiple) return count === 0 ? null : { kind: 'pick', index: cursor };\n const index = Number.parseInt(key, 10) - 1;\n if (!Number.isInteger(index) || index < 0 || index >= Math.min(count, MAX_DIGIT_SHORTCUT)) return null;\n return { kind: 'pick', index };\n}\n"],"mappings":"A,yBAcA,SAAgBA,EAA0C,EAAqB,EAA8B,CAC3G,IAAMC,EAASC,EAAO,KAAK,CAAC,CAAC,YAAY,EAEzC,OADID,IAAW,GAAWE,EACnBA,EAAM,OAAQ,GAAS,GAAGC,EAAK,MAAM,GAAGA,EAAK,UAAY,GAAG,GAAGA,EAAK,QAAQ,YAAY,CAAC,CAAC,SAASH,CAAM,CAAC,CACnH,CAGA,SAAgBI,EAAoB,EAAgC,EAAkC,CACpG,OAAO,KAAK,IACV,EACAF,EAAM,UAAW,GAASG,EAAM,SAASF,EAAK,KAAK,CAAC,CACtD,CACF,CAGA,SAAgBG,EAAY,EAA4B,EAA4B,CAClF,IAAMC,EAAO,IAAI,IAAIC,CAAK,EAE1B,OADKD,EAAK,OAAOF,CAAK,GAAGE,EAAK,IAAIF,CAAK,EAChCE,CACT,CAGA,SAAgBE,EAAa,EAA4B,EAAmC,CAC1F,OAAOD,EAAM,OAASH,EAAM,QAAUA,EAAM,KAAM,GAAS,CAACG,EAAM,IAAIL,CAAI,CAAC,CAC7E,CAGA,SAAgBO,EAAc,EAAgC,EAAsC,CAClG,OAAOR,EAAM,OAAQ,GAASM,EAAM,IAAIL,EAAK,KAAK,CAAC,CAAC,CAAC,IAAK,GAASA,EAAK,KAAK,CAC/E,CAGA,SAAgBQ,EAAW,EAAmB,EAA6B,CAEzE,OADIC,EAAiBC,EAAa,+BAAiC,6CAC5DA,EAAa,+BAAiC,oBACvD,CAOA,SAAgBC,EACd,EACA,EACwB,CACxB,GAAM,CAAE,QAAO,SAAQ,WAAU,cAAeC,EAChD,GAAIC,IAAQ,aAAeA,IAAQ,UAEjC,OADIC,IAAU,EAAU,KACjB,CAAE,KAAM,OAAQ,QAASC,GAAUF,IAAQ,YAAc,EAAI,IAAMC,GAASA,CAAM,EAE3F,GAAID,IAAQ,QAAS,OAAOC,IAAU,EAAI,KAAO,CAAE,KAAM,OAAQ,MAAOC,CAAO,EAC/E,GAAIL,EAAY,OAAO,KACvB,GAAIG,IAAQ,KAAOJ,EAAU,OAAOK,IAAU,EAAI,KAAO,CAAE,KAAM,OAAQ,MAAOC,CAAO,EACvF,IAAMC,EAAQ,OAAO,SAASH,EAAK,EAAE,EAAI,EAEzC,MADI,CAAC,OAAO,UAAUG,CAAK,GAAKA,EAAQ,GAAKA,GAAS,KAAK,IAAIF,EAAA,CAAyB,EAAU,KAC3F,CAAE,KAAM,OAAQ,OAAM,CAC/B,C"}
@@ -0,0 +1,43 @@
1
+ //#region src/lib/profilePicker.d.ts
2
+ /**
3
+ * The launch-time profile choice a person makes before a session exists.
4
+ *
5
+ * `undefined` is "not chosen": the workspace default may apply. `null` is an
6
+ * explicit "No profile", which no default may override. A string names a profile.
7
+ */
8
+ export type ProfileChoice = string | null | undefined;
9
+ /** What the picker may know about a profile. Never its environment, persona, bindings or secrets. */
10
+ export interface ProfilePickerProfile {
11
+ readonly name: string;
12
+ /** Presentation only: `role` is what the persona does, `contact` a display-only address its source supplies. */
13
+ readonly identity?: {
14
+ readonly name?: string;
15
+ readonly icon?: string;
16
+ readonly role?: string;
17
+ readonly contact?: string;
18
+ };
19
+ /** `files` for a profile file, otherwise the id of the plugin that contributed it. */
20
+ readonly sourceId: string;
21
+ }
22
+ export interface ProfilePickerCatalog {
23
+ readonly profiles: readonly ProfilePickerProfile[];
24
+ /** `unavailable`: a source did not become ready in time or failed. `profiles` lists what loaded. */
25
+ readonly readiness: 'ready' | 'unavailable';
26
+ }
27
+ export type ProfilePickerStatus = 'loading' | ProfilePickerCatalog['readiness'];
28
+ export interface ProfilePickerState {
29
+ readonly status: Exclude<ProfilePickerStatus, 'loading'>;
30
+ readonly profiles: readonly ProfilePickerProfile[];
31
+ }
32
+ /**
33
+ * A profile avatar the page may draw: an inline PNG, JPEG, GIF or WebP `data:` URL within po-core's
34
+ * bound, so rendering never contacts a host and never runs an SVG. Anything else is undefined.
35
+ */
36
+ export declare function inlineProfileIcon(value: unknown): string | undefined;
37
+ /**
38
+ * A server answer reduced to the fields the picker may show, or undefined when it is not a catalog.
39
+ * Any other field is dropped here, so nothing sensitive a server mistakenly adds can reach the page.
40
+ */
41
+ export declare function parseProfileCatalog(value: unknown): ProfilePickerCatalog | undefined;
42
+ //#endregion
43
+ //# sourceMappingURL=profilePicker.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profilePicker.d.mts","names":[],"sources":["../../../../../../src/lib/profilePicker.ts"],"mappings":";;;;;;;YAQY;;iBAGK;WACN;;WAEA;aACE;aACA;aACA;aACA;;;WAGF;;iBAGM;WACN,mBAAmB;;WAEnB;;YAGC,kCAAkC;iBAE7B;WACN,QAAQ,QAAQ;WAChB,mBAAmB;;;;;;wBAqEd,kBAAkB;;;;;wBAiClB,oBAAoB,iBAAiB"}
@@ -0,0 +1,2 @@
1
+ const e=`default`,t=`none`,n=`profile:`,r=`Workspace default`,i=`No profile`;function a(r){return r===void 0?e:r===null?t:`${n}${r}`}function o(e){if(e===`none`)return null;if(e.startsWith(n))return e.slice(8)}function s(e){return e.identity?.name||e.name}function c(e){return[e.identity?.role,e.identity?.contact].filter(Boolean).join(` · `)||(s(e)===e.name?void 0:e.name)}function l(n){return[{value:e,title:r,subtitle:`Use what this workspace sets, if anything`},{value:t,title:i,subtitle:`Start without a profile`},...n.map(e=>{let t=c(e);return{value:a(e.name),title:s(e),...t===void 0?{}:{subtitle:t}}})]}function u(e,t){if(e===void 0)return r;if(e===null)return i;let n=t.find(t=>t.name===e);return n===void 0?e:s(n)}const d=/^data:image\/(?:png|jpeg|gif|webp);base64,[A-Za-z0-9+/]+={0,2}$/;function f(e){return typeof e==`string`&&e.length<=262144&&d.test(e)?e:void 0}function p(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function m(e){if(!p(e)||typeof e.name!=`string`||e.name===``||typeof e.sourceId!=`string`||e.sourceId===``)return;let t=p(e.identity)?e.identity:void 0,n={};for(let e of[`name`,`icon`,`role`,`contact`]){let r=t?.[e];if(e===`icon`){let e=f(r);e&&(n.icon=e)}else typeof r==`string`&&r!==``&&(n[e]=r)}return{name:e.name,sourceId:e.sourceId,...Object.keys(n).length===0?{}:{identity:n}}}function h(e){if(!p(e)||!Array.isArray(e.profiles)||e.readiness!==`ready`&&e.readiness!==`unavailable`)return;let t=/* @__PURE__ */ new Set,n=[];for(let r of e.profiles){let e=m(r);e===void 0||t.has(e.name)||(t.add(e.name),n.push(e))}return{profiles:n,readiness:e.readiness}}const g={status:`unavailable`,profiles:[]};async function _(e,t){let n;try{n=await e(t)}catch{n=void 0}if(t.aborted)return;let r=h(n);return r===void 0?g:{status:r.readiness,profiles:r.profiles}}export{r as DEFAULT_PROFILE_LABEL,e as DEFAULT_PROFILE_VALUE,i as NO_PROFILE_LABEL,t as NO_PROFILE_VALUE,f as inlineProfileIcon,_ as loadProfileCatalog,h as parseProfileCatalog,u as profileChoiceLabel,o as profileChoiceOf,l as profilePickerItems,a as profileValueOf};
2
+ //# sourceMappingURL=profilePicker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profilePicker.mjs","names":["DEFAULT_PROFILE_VALUE","NO_PROFILE_VALUE","PROFILE_PREFIX","DEFAULT_PROFILE_LABEL","NO_PROFILE_LABEL","profileValueOf","choice","profileChoiceOf","value","titleOf","profile","subtitleOf","profilePickerItems","profiles","subtitle","profileChoiceLabel","candidate","INLINE_ICON","inlineProfileIcon","isRecord","profileOf","identity","presented","key","field","icon","parseProfileCatalog","seen","entry","UNAVAILABLE","loadProfileCatalog","answer","load","signal","catalog"],"sources":["../../../../../../src/lib/profilePicker.ts"],"sourcesContent":["import type { PickerChoice } from './picker';\n\n/**\n * The launch-time profile choice a person makes before a session exists.\n *\n * `undefined` is \"not chosen\": the workspace default may apply. `null` is an\n * explicit \"No profile\", which no default may override. A string names a profile.\n */\nexport type ProfileChoice = string | null | undefined;\n\n/** What the picker may know about a profile. Never its environment, persona, bindings or secrets. */\nexport interface ProfilePickerProfile {\n readonly name: string;\n /** Presentation only: `role` is what the persona does, `contact` a display-only address its source supplies. */\n readonly identity?: {\n readonly name?: string;\n readonly icon?: string;\n readonly role?: string;\n readonly contact?: string;\n };\n /** `files` for a profile file, otherwise the id of the plugin that contributed it. */\n readonly sourceId: string;\n}\n\nexport interface ProfilePickerCatalog {\n readonly profiles: readonly ProfilePickerProfile[];\n /** `unavailable`: a source did not become ready in time or failed. `profiles` lists what loaded. */\n readonly readiness: 'ready' | 'unavailable';\n}\n\nexport type ProfilePickerStatus = 'loading' | ProfilePickerCatalog['readiness'];\n\nexport interface ProfilePickerState {\n readonly status: Exclude<ProfilePickerStatus, 'loading'>;\n readonly profiles: readonly ProfilePickerProfile[];\n}\n\n/** Row values carry a prefix, so a profile named \"none\" or \"default\" cannot pass for a choice. */\nexport const DEFAULT_PROFILE_VALUE = 'default';\nexport const NO_PROFILE_VALUE = 'none';\nconst PROFILE_PREFIX = 'profile:';\n\nexport const DEFAULT_PROFILE_LABEL = 'Workspace default';\nexport const NO_PROFILE_LABEL = 'No profile';\n\nexport function profileValueOf(choice: ProfileChoice): string {\n if (choice === undefined) return DEFAULT_PROFILE_VALUE;\n if (choice === null) return NO_PROFILE_VALUE;\n return `${PROFILE_PREFIX}${choice}`;\n}\n\nexport function profileChoiceOf(value: string): ProfileChoice {\n if (value === NO_PROFILE_VALUE) return null;\n if (value.startsWith(PROFILE_PREFIX)) return value.slice(PROFILE_PREFIX.length);\n return undefined;\n}\n\nfunction titleOf(profile: ProfilePickerProfile): string {\n return profile.identity?.name || profile.name;\n}\n\n/** Role and contact under the name, otherwise the profile name when the title hides it. */\nfunction subtitleOf(profile: ProfilePickerProfile): string | undefined {\n const presented = [profile.identity?.role, profile.identity?.contact].filter(Boolean).join(' · ');\n if (presented) return presented;\n return titleOf(profile) === profile.name ? undefined : profile.name;\n}\n\n/** The workspace default and No profile first, then every profile in the order given. Nothing is preselected. */\nexport function profilePickerItems(profiles: readonly ProfilePickerProfile[]): PickerChoice[] {\n return [\n {\n value: DEFAULT_PROFILE_VALUE,\n title: DEFAULT_PROFILE_LABEL,\n subtitle: 'Use what this workspace sets, if anything',\n },\n { value: NO_PROFILE_VALUE, title: NO_PROFILE_LABEL, subtitle: 'Start without a profile' },\n ...profiles.map((profile) => {\n const subtitle = subtitleOf(profile);\n return {\n value: profileValueOf(profile.name),\n title: titleOf(profile),\n ...(subtitle === undefined ? {} : { subtitle }),\n };\n }),\n ];\n}\n\nexport function profileChoiceLabel(choice: ProfileChoice, profiles: readonly ProfilePickerProfile[]): string {\n if (choice === undefined) return DEFAULT_PROFILE_LABEL;\n if (choice === null) return NO_PROFILE_LABEL;\n const profile = profiles.find((candidate) => candidate.name === choice);\n return profile === undefined ? choice : titleOf(profile);\n}\n\nconst INLINE_ICON = /^data:image\\/(?:png|jpeg|gif|webp);base64,[A-Za-z0-9+/]+={0,2}$/;\n/** po-core's `PROFILE_ICON_MAX_DATA_URL_LENGTH`. */\nconst MAX_INLINE_ICON_LENGTH = 262_144;\n\n/**\n * A profile avatar the page may draw: an inline PNG, JPEG, GIF or WebP `data:` URL within po-core's\n * bound, so rendering never contacts a host and never runs an SVG. Anything else is undefined.\n */\nexport function inlineProfileIcon(value: unknown): string | undefined {\n return typeof value === 'string' && value.length <= MAX_INLINE_ICON_LENGTH && INLINE_ICON.test(value)\n ? value\n : undefined;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction profileOf(value: unknown): ProfilePickerProfile | undefined {\n if (!isRecord(value) || typeof value.name !== 'string' || value.name === '') return undefined;\n if (typeof value.sourceId !== 'string' || value.sourceId === '') return undefined;\n const identity = isRecord(value.identity) ? value.identity : undefined;\n const presented: Record<string, string> = {};\n for (const key of ['name', 'icon', 'role', 'contact'] as const) {\n const field = identity?.[key];\n if (key === 'icon') {\n const icon = inlineProfileIcon(field);\n if (icon) presented.icon = icon;\n } else if (typeof field === 'string' && field !== '') presented[key] = field;\n }\n return {\n name: value.name,\n sourceId: value.sourceId,\n ...(Object.keys(presented).length === 0 ? {} : { identity: presented }),\n };\n}\n\n/**\n * A server answer reduced to the fields the picker may show, or undefined when it is not a catalog.\n * Any other field is dropped here, so nothing sensitive a server mistakenly adds can reach the page.\n */\nexport function parseProfileCatalog(value: unknown): ProfilePickerCatalog | undefined {\n if (!isRecord(value) || !Array.isArray(value.profiles)) return undefined;\n if (value.readiness !== 'ready' && value.readiness !== 'unavailable') return undefined;\n const seen = new Set<string>();\n const profiles: ProfilePickerProfile[] = [];\n for (const entry of value.profiles) {\n const profile = profileOf(entry);\n if (profile === undefined || seen.has(profile.name)) continue;\n seen.add(profile.name);\n profiles.push(profile);\n }\n return { profiles, readiness: value.readiness };\n}\n\nconst UNAVAILABLE: ProfilePickerState = { status: 'unavailable', profiles: [] };\n\n/**\n * Runs one catalog request. A failed or malformed answer is \"unavailable\" with nothing listed, so a\n * session can still start without a profile. Undefined means the caller gave up on this request.\n */\nexport async function loadProfileCatalog(\n load: (signal: AbortSignal) => Promise<unknown>,\n signal: AbortSignal,\n): Promise<ProfilePickerState | undefined> {\n let answer: unknown;\n try {\n answer = await load(signal);\n } catch {\n answer = undefined;\n }\n if (signal.aborted) return undefined;\n const catalog = parseProfileCatalog(answer);\n return catalog === undefined ? UNAVAILABLE : { status: catalog.readiness, profiles: catalog.profiles };\n}\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"review.mjs","names":["diffGutterWidth","widest","hunk","hunks","row","diffRangeOf","numbered","rows","kept","side","lines","trimSnippet","snippet","text","maxLines","maxChars","reviewCommentAnchor","comment","single","defaultReviewHeading","count","buildReviewPrompt","comments","body","quoted","line","heading"],"sources":["../../../../../../src/lib/review.ts"],"sourcesContent":["import type { DiffHunk, DiffMarker, DiffSide, ReviewComment } from '../types/diff';\n\n/**\n * Pure review logic shared by every surface that comments on a diff: sizing a\n * gutter, deciding which side a selection is on, naming an anchor, and folding\n * a set of notes into one message.\n */\n\n/** The widest line number in a diff, in characters, which sizes the gutter. */\nexport function diffGutterWidth(hunks: readonly DiffHunk[]): number {\n let widest = 1;\n for (const hunk of hunks) {\n for (const row of hunk.rows) widest = Math.max(widest, String(row.line).length);\n }\n return widest;\n}\n\n/**\n * The line range a set of touched rows covers, and the side it is on.\n *\n * Any context or added row puts the selection on the new side, and then the\n * removed rows in it are ignored: their numbers belong to the other file and\n * would stretch the range over lines that have nothing to do with it. Only a\n * selection made entirely of removed rows lands on the old side.\n */\nexport function diffRangeOf(\n rows: readonly { marker: DiffMarker; line: number }[],\n): { side: DiffSide; startLine: number; endLine: number } | undefined {\n const numbered = rows.filter((row) => Number.isFinite(row.line) && row.line > 0);\n const kept = numbered.filter((row) => row.marker !== '-');\n const side: DiffSide = kept.length > 0 ? 'new' : 'old';\n const lines = (kept.length > 0 ? kept : numbered).map((row) => row.line);\n if (lines.length === 0) return undefined;\n return { side, startLine: Math.min(...lines), endLine: Math.max(...lines) };\n}\n\n/** Trims a quoted snippet to something a prompt can carry without drowning it. */\nexport function trimSnippet(snippet: string, maxLines = 20, maxChars = 2000): string {\n const lines = snippet.split('\\n');\n const clipped = lines.length > maxLines ? [...lines.slice(0, maxLines), '…'] : lines;\n const text = clipped.join('\\n');\n return text.length > maxChars ? `${text.slice(0, maxChars)}…` : text;\n}\n\n/** How a comment names the place it is about. New-side anchors keep the `path:line` form. */\nexport function reviewCommentAnchor(comment: ReviewComment): string {\n if (comment.startLine === undefined) return comment.relPath;\n const single = comment.endLine === undefined || comment.endLine === comment.startLine;\n if (comment.side === 'old') {\n return single\n ? `${comment.relPath} (removed line ${comment.startLine})`\n : `${comment.relPath} (removed lines ${comment.startLine}-${comment.endLine})`;\n }\n return single\n ? `${comment.relPath}:${comment.startLine}`\n : `${comment.relPath}:${comment.startLine}-${comment.endLine}`;\n}\n\n/** The opening line of a review when the caller names no context of its own. */\nexport function defaultReviewHeading(count: number): string {\n return count === 1\n ? 'I left one review comment on a file you changed. Please address it.'\n : `I left ${count} review comments on files you changed. Please address them.`;\n}\n\n/**\n * The one message a review sends.\n *\n * Every note goes in a single message rather than one each: N notes then cost\n * one turn, and the agent sees the whole review before it changes anything.\n */\nexport function buildReviewPrompt(comments: readonly ReviewComment[], heading?: string): string {\n if (comments.length === 0) return '';\n const body = comments\n .map((comment) => {\n const quoted = trimSnippet(comment.snippet)\n .split('\\n')\n .map((line) => `> ${line}`)\n .join('\\n');\n return `### ${reviewCommentAnchor(comment)}\\n\\n${quoted}\\n\\n${comment.body.trim()}`;\n })\n .join('\\n\\n');\n return `${heading ?? defaultReviewHeading(comments.length)}\\n\\n${body}`;\n}\n"],"mappings":"AASA,SAAgBA,EAAgB,EAAoC,CAClE,IAAIC,EAAS,EACb,IAAK,IAAMC,KAAQC,EACjB,IAAK,IAAMC,KAAOF,EAAK,KAAM,EAAS,KAAK,IAAID,EAAQ,OAAOG,EAAI,IAAI,CAAC,CAAC,MAAM,EAEhF,OAAOH,CACT,CAUA,SAAgBI,EACd,EACoE,CACpE,IAAMC,EAAWC,EAAK,OAAQ,GAAQ,OAAO,SAASH,EAAI,IAAI,GAAKA,EAAI,KAAO,CAAC,EACzEI,EAAOF,EAAS,OAAQ,GAAQF,EAAI,SAAW,GAAG,EAClDK,EAAiBD,EAAK,OAAS,EAAI,MAAQ,MAC3CE,GAASF,EAAK,OAAS,EAAIA,EAAOF,EAAA,CAAU,IAAK,GAAQF,EAAI,IAAI,EACvE,GAAIM,EAAM,SAAW,EACrB,MAAO,CAAE,OAAM,UAAW,KAAK,IAAI,GAAGA,CAAK,EAAG,QAAS,KAAK,IAAI,GAAGA,CAAK,CAAE,CAC5E,CAGA,SAAgBC,EAAY,EAAiB,EAAW,GAAI,EAAW,IAAc,CACnF,IAAMD,EAAQE,EAAQ,MAAM;CAAI,EAE1BC,GADUH,EAAM,OAASI,EAAW,CAAC,GAAGJ,EAAM,MAAM,EAAGI,CAAQ,EAAG,GAAG,EAAIJ,EAAA,CAC1D,KAAK;CAAI,EAC9B,OAAOG,EAAK,OAASE,EAAW,GAAGF,EAAK,MAAM,EAAGE,CAAQ,EAAE,GAAKF,CAClE,CAGA,SAAgBG,EAAoB,EAAgC,CAClE,GAAIC,EAAQ,YAAc,IAAA,GAAW,OAAOA,EAAQ,QACpD,IAAMC,EAASD,EAAQ,UAAY,IAAA,IAAaA,EAAQ,UAAYA,EAAQ,UAM5E,OALIA,EAAQ,OAAS,MACZC,EACH,GAAGD,EAAQ,QAAQ,iBAAiBA,EAAQ,UAAU,GACtD,GAAGA,EAAQ,QAAQ,kBAAkBA,EAAQ,UAAU,GAAGA,EAAQ,QAAQ,GAEzEC,EACH,GAAGD,EAAQ,QAAQ,GAAGA,EAAQ,YAC9B,GAAGA,EAAQ,QAAQ,GAAGA,EAAQ,UAAU,GAAGA,EAAQ,SACzD,CAGA,SAAgBE,EAAqB,EAAuB,CAC1D,OAAOC,IAAU,EACb,sEACA,UAAUA,EAAM,4DACtB,CAQA,SAAgBC,EAAkB,EAAoC,EAA0B,CAC9F,GAAIC,EAAS,SAAW,EAAG,MAAO,GAClC,IAAMC,EAAOD,EACV,IAAK,GAAY,CAChB,IAAME,EAASb,EAAYM,EAAQ,OAAO,CAAC,CACxC,MAAM;CAAI,CAAC,CACX,IAAK,GAAS,KAAKQ,GAAM,CAAC,CAC1B,KAAK;CAAI,EACZ,MAAO,OAAOT,EAAoBC,CAAO,EAAE,MAAMO,EAAO,MAAMP,EAAQ,KAAK,KAAK,GAClF,CAAC,CAAC,CACD,KAAK;;CAAM,EACd,MAAO,GAAGS,GAAWP,EAAqBG,EAAS,MAAM,EAAE,MAAMC,GACnE"}
1
+ {"version":3,"file":"review.mjs","names":["diffGutterWidth","widest","hunk","hunks","row","diffRangeOf","numbered","rows","kept","side","lines","trimSnippet","snippet","text","maxLines","maxChars","reviewCommentAnchor","comment","single","defaultReviewHeading","count","buildReviewPrompt","comments","body","quoted","line","heading"],"sources":["../../../../../../src/lib/review.ts"],"sourcesContent":["import type { DiffHunk, DiffMarker, DiffSide, ReviewComment } from '../types/diff';\n\n/**\n * Pure review logic shared by every surface that comments on a diff: sizing a\n * gutter, deciding which side a selection is on, naming an anchor, and folding\n * a set of notes into one message.\n */\n\n/** The widest line number in a diff, in characters, which sizes the gutter. */\nexport function diffGutterWidth(hunks: readonly DiffHunk[]): number {\n let widest = 1;\n for (const hunk of hunks) {\n for (const row of hunk.rows) widest = Math.max(widest, String(row.line).length);\n }\n return widest;\n}\n\n/**\n * The line range a set of touched rows covers, and the side it is on.\n *\n * Any context or added row puts the selection on the new side, and then the\n * removed rows in it are ignored: their numbers belong to the other file and\n * would stretch the range over lines that have nothing to do with it. Only a\n * selection made entirely of removed rows lands on the old side.\n */\nexport function diffRangeOf(\n rows: readonly { marker: DiffMarker; line: number }[],\n): { side: DiffSide; startLine: number; endLine: number } | undefined {\n const numbered = rows.filter((row) => Number.isFinite(row.line) && row.line > 0);\n const kept = numbered.filter((row) => row.marker !== '-');\n const side: DiffSide = kept.length > 0 ? 'new' : 'old';\n const lines = (kept.length > 0 ? kept : numbered).map((row) => row.line);\n if (lines.length === 0) return undefined;\n return { side, startLine: Math.min(...lines), endLine: Math.max(...lines) };\n}\n\n/** Trims a quoted snippet to something a prompt can carry without drowning it. */\nexport function trimSnippet(snippet: string, maxLines = 20, maxChars = 2000): string {\n const lines = snippet.split('\\n');\n const clipped = lines.length > maxLines ? [...lines.slice(0, maxLines), '…'] : lines;\n const text = clipped.join('\\n');\n return text.length > maxChars ? `${text.slice(0, maxChars)}…` : text;\n}\n\n/** How a comment names the place it is about. New-side anchors keep the `path:line` form. */\nexport function reviewCommentAnchor(comment: ReviewComment): string {\n if (comment.startLine === undefined) return comment.relPath;\n const single = comment.endLine === undefined || comment.endLine === comment.startLine;\n if (comment.side === 'old') {\n return single\n ? `${comment.relPath} (removed line ${comment.startLine})`\n : `${comment.relPath} (removed lines ${comment.startLine}-${comment.endLine})`;\n }\n return single\n ? `${comment.relPath}:${comment.startLine}`\n : `${comment.relPath}:${comment.startLine}-${comment.endLine}`;\n}\n\n/** The opening line of a review when the caller names no context of its own. */\nexport function defaultReviewHeading(count: number): string {\n return count === 1\n ? 'I left one review comment on a file you changed. Please address it.'\n : `I left ${count} review comments on files you changed. Please address them.`;\n}\n\n/**\n * The one message a review sends.\n *\n * Every note goes in a single message rather than one each: N notes then cost\n * one turn, and the agent sees the whole review before it changes anything.\n */\nexport function buildReviewPrompt(comments: readonly ReviewComment[], heading?: string): string {\n if (comments.length === 0) return '';\n const body = comments\n .map((comment) => {\n const quoted = trimSnippet(comment.snippet)\n .split('\\n')\n .map((line) => `> ${line}`)\n .join('\\n');\n return `### ${reviewCommentAnchor(comment)}\\n\\n${quoted}\\n\\n${comment.body.trim()}`;\n })\n .join('\\n\\n');\n return `${heading ?? defaultReviewHeading(comments.length)}\\n\\n${body}`;\n}\n"],"mappings":"AASA,SAAgBA,EAAgB,EAAoC,CAClE,IAAIC,EAAS,EACb,IAAK,IAAMC,KAAQC,EACjB,IAAK,IAAMC,KAAOF,EAAK,KAAM,EAAS,KAAK,IAAID,EAAQ,OAAOG,EAAI,IAAI,CAAC,CAAC,MAAM,EAEhF,OAAOH,CACT,CAUA,SAAgBI,EACd,EACoE,CACpE,IAAMC,EAAWC,EAAK,OAAQ,GAAQ,OAAO,SAASH,EAAI,IAAI,GAAKA,EAAI,KAAO,CAAC,EACzEI,EAAOF,EAAS,OAAQ,GAAQF,EAAI,SAAW,GAAG,EAClDK,EAAiBD,EAAK,OAAS,EAAI,MAAQ,MAC3CE,GAASF,EAAK,OAAS,EAAIA,EAAOF,EAAA,CAAU,IAAK,GAAQF,EAAI,IAAI,EACvE,GAAIM,EAAM,SAAW,EACrB,MAAO,CAAE,OAAM,UAAW,KAAK,IAAI,GAAGA,CAAK,EAAG,QAAS,KAAK,IAAI,GAAGA,CAAK,CAAE,CAC5E,CAGA,SAAgBC,EAAY,EAAiB,EAAW,GAAI,EAAW,IAAc,CACnF,IAAMD,EAAQE,EAAQ,MAAM;CAAI,EAE1BC,GADUH,EAAM,OAASI,EAAW,CAAC,GAAGJ,EAAM,MAAM,EAAGI,CAAQ,EAAG,GAAG,EAAIJ,EAAA,CAC1D,KAAK;CAAI,EAC9B,OAAOG,EAAK,OAASE,EAAW,GAAGF,EAAK,MAAM,EAAGE,CAAQ,EAAE,GAAKF,CAClE,CAGA,SAAgBG,EAAoB,EAAgC,CAClE,GAAIC,EAAQ,YAAc,IAAA,GAAW,OAAOA,EAAQ,QACpD,IAAMC,EAASD,EAAQ,UAAY,IAAA,IAAaA,EAAQ,UAAYA,EAAQ,UAM5E,OALIA,EAAQ,OAAS,MACZC,EACH,GAAGD,EAAQ,QAAQ,iBAAiBA,EAAQ,UAAU,GACtD,GAAGA,EAAQ,QAAQ,kBAAkBA,EAAQ,UAAU,GAAGA,EAAQ,QAAQ,GAEzEC,EACH,GAAGD,EAAQ,QAAQ,GAAGA,EAAQ,YAC9B,GAAGA,EAAQ,QAAQ,GAAGA,EAAQ,UAAU,GAAGA,EAAQ,SACzD,CAGA,SAAgBE,EAAqB,EAAuB,CAC1D,OAAOC,IAAU,EACb,sEACA,UAAUA,EAAM,4DACtB,CAQA,SAAgBC,EAAkB,EAAoC,EAA0B,CAC9F,GAAIC,EAAS,SAAW,EAAG,MAAO,GAClC,IAAMC,EAAOD,EACV,IAAK,GAAY,CAChB,IAAME,EAASb,EAAYM,EAAQ,OAAO,CAAC,CACxC,MAAM;CAAI,CAAC,CACX,IAAK,GAAS,KAAKQ,GAAM,CAAC,CAC1B,KAAK;CAAI,EACZ,MAAO,OAAOT,EAAoBC,CAAO,EAAE,MAAMO,EAAO,MAAMP,EAAQ,KAAK,KAAK,GAClF,CAAC,CAAC,CACD,KAAK;;CAAM,EACd,MAAO,GAAGS,GAAWP,EAAqBG,EAAS,MAAM,EAAE,MAAMC,GACnE,C"}
@@ -0,0 +1,12 @@
1
+ //#region src/lib/runDuration.d.ts
2
+ /** How long a run has gone on, to the minute: "<1m", "12m", "2h 05m". */
3
+ export declare function formatRunDuration(elapsedMs: number): string;
4
+ /** A status clock read at `now`: "running · 12m". */
5
+ export declare function clockText(clock: {
6
+ label: string;
7
+ since: number;
8
+ }, now: number): string;
9
+ /** Milliseconds until a clock read at `now` shows a different minute. */
10
+ export declare function clockRefreshMs(since: number, now: number): number;
11
+ //#endregion
12
+ //# sourceMappingURL=runDuration.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runDuration.d.mts","names":[],"sources":["../../../../../../src/lib/runDuration.ts"],"mappings":";;wBAIgB,kBAAkB;;wBASlB,UAAU;EAAS;EAAe;GAAiB;;wBAKnD,eAAe,eAAe"}
@@ -0,0 +1,2 @@
1
+ const e=6e4,t=36e5;function n(n){if(n<e)return`<1m`;if(n<t)return`${Math.floor(n/e)}m`;let r=Math.floor(n/t),i=Math.floor(n%t/e);return`${r}h ${String(i).padStart(2,`0`)}m`}function r(e,t){return`${e.label} · ${n(Math.max(0,t-e.since))}`}function i(t,n){let r=Math.max(0,n-t);return e-r%e}export{i as clockRefreshMs,r as clockText,n as formatRunDuration};
2
+ //# sourceMappingURL=runDuration.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runDuration.mjs","names":["MINUTE_MS","HOUR_MS","formatRunDuration","elapsedMs","hours","minutes","clockText","clock","now","clockRefreshMs","elapsed","since"],"sources":["../../../../../../src/lib/runDuration.ts"],"sourcesContent":["const MINUTE_MS = 60_000;\nconst HOUR_MS = 3_600_000;\n\n/** How long a run has gone on, to the minute: \"<1m\", \"12m\", \"2h 05m\". */\nexport function formatRunDuration(elapsedMs: number): string {\n if (elapsedMs < MINUTE_MS) return '<1m';\n if (elapsedMs < HOUR_MS) return `${Math.floor(elapsedMs / MINUTE_MS)}m`;\n const hours = Math.floor(elapsedMs / HOUR_MS);\n const minutes = Math.floor((elapsedMs % HOUR_MS) / MINUTE_MS);\n return `${hours}h ${String(minutes).padStart(2, '0')}m`;\n}\n\n/** A status clock read at `now`: \"running · 12m\". */\nexport function clockText(clock: { label: string; since: number }, now: number): string {\n return `${clock.label} · ${formatRunDuration(Math.max(0, now - clock.since))}`;\n}\n\n/** Milliseconds until a clock read at `now` shows a different minute. */\nexport function clockRefreshMs(since: number, now: number): number {\n const elapsed = Math.max(0, now - since);\n return MINUTE_MS - (elapsed % MINUTE_MS);\n}\n"],"mappings":"AAAA,MAAMA,EAAY,IACZC,EAAU,KAGhB,SAAgBC,EAAkB,EAA2B,CAC3D,GAAIC,EAAYH,EAAW,MAAO,MAClC,GAAIG,EAAYF,EAAS,MAAO,GAAG,KAAK,MAAME,EAAYH,CAAS,EAAE,GACrE,IAAMI,EAAQ,KAAK,MAAMD,EAAYF,CAAO,EACtCI,EAAU,KAAK,MAAOF,EAAYF,EAAWD,CAAS,EAC5D,MAAO,GAAGI,EAAM,IAAI,OAAOC,CAAO,CAAC,CAAC,SAAS,EAAG,GAAG,EAAE,EACvD,CAGA,SAAgBC,EAAU,EAAyC,EAAqB,CACtF,MAAO,GAAGC,EAAM,MAAM,KAAKL,EAAkB,KAAK,IAAI,EAAGM,EAAMD,EAAM,KAAK,CAAC,GAC7E,CAGA,SAAgBE,EAAe,EAAe,EAAqB,CACjE,IAAMC,EAAU,KAAK,IAAI,EAAGF,EAAMG,CAAK,EACvC,OAAOX,EAAaU,EAAUV,CAChC,C"}
@@ -41,14 +41,12 @@ export declare function detectGrammar(query: GrammarQuery): GrammarKey | undefin
41
41
  /** The inline style a token wears. Colours come from the editor palette, which names theme tokens. */
42
42
  export declare function syntaxStyleOf(token: SyntaxToken | undefined): CSSProperties | undefined;
43
43
  /**
44
- * Colours `text` as `grammar`, as lines of spans.
45
- *
46
- * The whole text is parsed at once even though the caller may render it line
47
- * by line, because a template literal or a block comment only makes sense with
48
- * its neighbours. Text past the size cap, and a grammar whose extension turns
49
- * out to carry no parser, come back unhighlighted rather than throwing: colour
50
- * is decoration, and the caller already has the plain text on screen.
44
+ * Shared whole-block highlighting, keyed by grammar and exact text. Completed
45
+ * spans use a byte-accounted LRU; concurrent readers share one parse. A caller
46
+ * can cancel without cancelling another reader. Once all readers cancel, skip
47
+ * parsing after grammar loading. Cancelled or failed work is never cached.
48
+ * The existing size cap and plain-text fallback are unchanged.
51
49
  */
52
- export declare function highlightToLines(text: string, grammar: GrammarKey): Promise<SyntaxLines | undefined>;
50
+ export declare function highlightToLines(text: string, grammar: GrammarKey, signal?: AbortSignal): Promise<SyntaxLines | undefined>;
53
51
  //#endregion
54
52
  //# sourceMappingURL=syntaxHighlight.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"syntaxHighlight.d.mts","names":[],"sources":["../../../../../../src/lib/syntaxHighlight.ts"],"mappings":";;;;;;;;;;;;;;;;YAkBY,2BAA2B;;iBAGtB;EACf;EACA,QAAQ;;;YAIE,iCAAiC;iBAqB5B;;EAEf;;EAEA;;;;;;;;;;;wBAYc,cAAc,OAAO,eAAe;;wBAkBpC,cAAc,OAAO,0BAA0B;;;;;;;;;;wBA4DzC,iBAAiB,cAAc,SAAS,aAAa,QAAQ"}
1
+ {"version":3,"file":"syntaxHighlight.d.mts","names":[],"sources":["../../../../../../src/lib/syntaxHighlight.ts"],"mappings":";;;;;;;;;;;;;;;;YAkBY,2BAA2B;;iBAGtB;EACf;EACA,QAAQ;;;YAIE,iCAAiC;iBAqB5B;;EAEf;;EAEA;;;;;;;;;;;wBAYc,cAAc,OAAO,eAAe;;wBAkBpC,cAAc,OAAO,0BAA0B;;;;;;;;wBA2HzC,iBACpB,cACA,SAAS,YACT,SAAS,cACR,QAAQ"}
@@ -1,3 +1,3 @@
1
1
  import{grammarKeyOf as e,loadGrammar as t}from"./editorLanguage.mjs";import{PO_SYNTAX_STYLES as n}from"./editorTheme.mjs";const r=[{pattern:/^#!.*\b(?:bash|sh|zsh|dash|ksh)\b/,grammar:`shell`},{pattern:/^#!.*\bpython[\d.]*\b/,grammar:`python`},{pattern:/^#!.*\b(?:node|bun|deno)\b/,grammar:`javascript`}],i=/^\s*[[{][\s\S]*[\]}]\s*$/;function a(t){let n=t.path===void 0||t.path.length===0?void 0:e(t.path);if(n!==void 0)return n;let a=t.text??``;if(a.length===0)return;let o=a.slice(0,200);if(o.startsWith(`#!`)){let e=o.split(`
2
- `,1)[0]??``;for(let t of r)if(t.pattern.test(e))return t.grammar;return`shell`}return i.test(a)?`json`:void 0}function o(e){return e===void 0?void 0:n[e]}async function s(){let{tagHighlighter:e,tags:t}=await import(`@lezer/highlight`);return e([{tag:t.comment,class:`comment`},{tag:t.keyword,class:`keyword`},{tag:[t.atom,t.bool,t.null,t.self],class:`constant`},{tag:t.number,class:`literal`},{tag:[t.string,t.special(t.string)],class:`string`},{tag:t.regexp,class:`regexp`},{tag:[t.operator,t.operatorKeyword],class:`operator`},{tag:[t.punctuation,t.separator,t.bracket],class:`punctuation`},{tag:[t.variableName,t.definition(t.variableName)],class:`variable`},{tag:[t.propertyName,t.definition(t.propertyName)],class:`property`},{tag:[t.function(t.variableName),t.function(t.propertyName)],class:`callable`},{tag:[t.typeName,t.className,t.namespace],class:`type`},{tag:[t.tagName,t.angleBracket],class:`tag`},{tag:t.attributeName,class:`attribute`},{tag:[t.meta,t.processingInstruction,t.documentMeta],class:`meta`},{tag:t.heading,class:`heading`},{tag:[t.link,t.url],class:`link`},{tag:t.emphasis,class:`emphasis`},{tag:t.strong,class:`strong`},{tag:t.strikethrough,class:`strikethrough`},{tag:t.invalid,class:`invalid`}])}async function c(e){let[{Language:n,LanguageSupport:r},i]=await Promise.all([import(`@codemirror/language`),t(e)]);if(i instanceof r)return i.language.parser;if(i instanceof n)return i.parser}async function l(e,t){if(e.length===0||e.length>2e5)return;let[{highlightCode:n},r,i]=await Promise.all([import(`@lezer/highlight`),s(),c(t)]);if(i===void 0)return;let a=[[]];return n(e,i.parse(e),r,(e,t)=>{a[a.length-1]?.push(t===``?{text:e}:{text:e,token:t})},()=>a.push([])),a}export{a as detectGrammar,l as highlightToLines,o as syntaxStyleOf};
2
+ `,1)[0]??``;for(let t of r)if(t.pattern.test(e))return t.grammar;return`shell`}return i.test(a)?`json`:void 0}function o(e){return e===void 0?void 0:n[e]}async function s(){let{tagHighlighter:e,tags:t}=await import(`@lezer/highlight`);return e([{tag:t.comment,class:`comment`},{tag:t.keyword,class:`keyword`},{tag:[t.atom,t.bool,t.null,t.self],class:`constant`},{tag:t.number,class:`literal`},{tag:[t.string,t.special(t.string)],class:`string`},{tag:t.regexp,class:`regexp`},{tag:[t.operator,t.operatorKeyword],class:`operator`},{tag:[t.punctuation,t.separator,t.bracket],class:`punctuation`},{tag:[t.variableName,t.definition(t.variableName)],class:`variable`},{tag:[t.propertyName,t.definition(t.propertyName)],class:`property`},{tag:[t.function(t.variableName),t.function(t.propertyName)],class:`callable`},{tag:[t.typeName,t.className,t.namespace],class:`type`},{tag:[t.tagName,t.angleBracket],class:`tag`},{tag:t.attributeName,class:`attribute`},{tag:[t.meta,t.processingInstruction,t.documentMeta],class:`meta`},{tag:t.heading,class:`heading`},{tag:[t.link,t.url],class:`link`},{tag:t.emphasis,class:`emphasis`},{tag:t.strong,class:`strong`},{tag:t.strikethrough,class:`strikethrough`},{tag:t.invalid,class:`invalid`}])}async function c(e){let[{Language:n,LanguageSupport:r},i]=await Promise.all([import(`@codemirror/language`),t(e)]);if(i instanceof r)return i.language.parser;if(i instanceof n)return i.parser}async function l(e,t,n){let[{highlightCode:r},i,a]=await Promise.all([import(`@lezer/highlight`),s(),c(t)]);if(n.aborted||a===void 0)return;let o=[[]];return r(e,a.parse(e),i,(e,t)=>{o[o.length-1]?.push(t===``?{text:e}:{text:e,token:t})},()=>o.push([])),o}const u=4194304,d=/* @__PURE__ */ new Map;let f=0;const p=/* @__PURE__ */ new Map;function m(e,t){let n=e.length*2+t.length*64;for(let e of t)for(let t of e)n+=t.text.length*2+64;if(!(n>u)){for(;f+n>u||d.size>=128;){let e=d.entries().next().value;if(e===void 0)break;d.delete(e[0]),f-=e[1].bytes}d.set(e,{lines:t,bytes:n}),f+=n}}async function h(e,t,n){if(n?.aborted||e.length===0||e.length>2e5)return;let r=`${t}\u0000${e}`,i=d.get(r);if(i!==void 0)return d.delete(r),d.set(r,i),i.lines;let a=p.get(r);if(a===void 0){let n=new AbortController;a={controller:n,users:0,promise:l(e,t,n.signal)};let i=a;a.promise=a.promise.then(e=>(!n.signal.aborted&&e!==void 0&&m(r,e),e)).finally(()=>{p.get(r)===i&&p.delete(r)}),p.set(r,a)}let o=a;return o.users+=1,new Promise((e,t)=>{let i=!1,a=()=>!i&&(i=!0,n?.removeEventListener(`abort`,s),--o.users,!0),s=()=>{a()&&(o.users===0&&(o.controller.abort(),p.get(r)===o&&p.delete(r)),e(void 0))};n?.addEventListener(`abort`,s,{once:!0}),o.promise.then(t=>{a()&&e(t)},e=>{a()&&t(e)})})}export{a as detectGrammar,h as highlightToLines,o as syntaxStyleOf};
3
3
  //# sourceMappingURL=syntaxHighlight.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"syntaxHighlight.mjs","names":["SHEBANG_GRAMMARS","JSON_SHAPE","detectGrammar","byPath","query","grammarKeyOf","text","head","firstLine","entry","syntaxStyleOf","token","PO_SYNTAX_STYLES","poHighlighter","tagHighlighter","tags","parserFor","extension","loadGrammar","grammar","LanguageSupport","Language","highlightToLines","highlighter","parser","lines","highlightCode","classes","code"],"sources":["../../../../../../src/lib/syntaxHighlight.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\n\nimport { type GrammarKey, grammarKeyOf, loadGrammar } from './editorLanguage';\nimport { PO_SYNTAX_STYLES } from './editorTheme';\n\n/**\n * Static syntax highlighting for read-only code, the timeline's half of the\n * editor's `syntaxHighlighting`.\n *\n * A tool card shows code it cannot edit, so it needs the colours without the\n * editor: the same grammars `editorLanguage.ts` loads and the same token\n * palette `editorTheme.ts` names, run once over a string and handed back as\n * spans. Everything CodeMirror-shaped is behind a dynamic import, so a session\n * that never opens a code result never downloads a parser, and the caller\n * always has plain text to show first.\n */\n\n/** The palette keys a token can land on; the styles themselves are the editor's. */\nexport type SyntaxToken = keyof typeof PO_SYNTAX_STYLES;\n\n/** One run of same-styled text inside a line. `token` absent means unstyled. */\nexport interface SyntaxSpan {\n text: string;\n token?: SyntaxToken;\n}\n\n/** Lines of spans, one array per source line, so a gutter can pair with them. */\nexport type SyntaxLines = readonly (readonly SyntaxSpan[])[];\n\n/**\n * Above this the parse costs more than the colour is worth. Tool results are\n * bounded well below it; a pasted file is not, and blocking the frame to paint\n * a wall of text nobody reads is the worse outcome.\n */\nconst MAX_HIGHLIGHT_CHARS = 200_000;\n\n/** Only the first line is needed to spot a shebang, and reading more of a big string is waste. */\nconst SNIFF_CHARS = 200;\n\nconst SHEBANG_GRAMMARS: ReadonlyArray<{ readonly pattern: RegExp; readonly grammar: GrammarKey }> = [\n { pattern: /^#!.*\\b(?:bash|sh|zsh|dash|ksh)\\b/, grammar: 'shell' },\n { pattern: /^#!.*\\bpython[\\d.]*\\b/, grammar: 'python' },\n { pattern: /^#!.*\\b(?:node|bun|deno)\\b/, grammar: 'javascript' },\n];\n\n/** JSON is the one shape worth guessing from the body: a document is an object or an array. */\nconst JSON_SHAPE = /^\\s*[[{][\\s\\S]*[\\]}]\\s*$/;\n\nexport interface GrammarQuery {\n /** The file the text came from, when the tool knows one. */\n path?: string | undefined;\n /** The text itself, used only when the path settles nothing. */\n text?: string | undefined;\n}\n\n/**\n * Which grammar to colour a result with.\n *\n * The path decides whenever it can, because a name is evidence and a body is a\n * guess. Sniffing only answers for text that arrived without a usable name: a\n * shebang says what runs the script, and a document that opens and closes with\n * brackets is treated as JSON. Anything else stays plain rather than being\n * coloured as the wrong language.\n */\nexport function detectGrammar(query: GrammarQuery): GrammarKey | undefined {\n const byPath = query.path === undefined || query.path.length === 0 ? undefined : grammarKeyOf(query.path);\n if (byPath !== undefined) return byPath;\n const text = query.text ?? '';\n if (text.length === 0) return undefined;\n const head = text.slice(0, SNIFF_CHARS);\n if (head.startsWith('#!')) {\n const firstLine = head.split('\\n', 1)[0] ?? '';\n for (const entry of SHEBANG_GRAMMARS) {\n if (entry.pattern.test(firstLine)) return entry.grammar;\n }\n // A shebang naming something with no grammar here is still a script.\n return 'shell';\n }\n return JSON_SHAPE.test(text) ? 'json' : undefined;\n}\n\n/** The inline style a token wears. Colours come from the editor palette, which names theme tokens. */\nexport function syntaxStyleOf(token: SyntaxToken | undefined): CSSProperties | undefined {\n return token === undefined ? undefined : PO_SYNTAX_STYLES[token];\n}\n\n/**\n * Every tag the palette answers for, in the order the editor lists them. The\n * class each entry carries is a palette key rather than a CSS class: the\n * result is rendered as inline styles, so nothing has to be mounted in the\n * document for a card to show colour.\n */\nasync function poHighlighter() {\n const { tagHighlighter, tags } = await import('@lezer/highlight');\n return tagHighlighter([\n { tag: tags.comment, class: 'comment' satisfies SyntaxToken },\n { tag: tags.keyword, class: 'keyword' satisfies SyntaxToken },\n { tag: [tags.atom, tags.bool, tags.null, tags.self], class: 'constant' satisfies SyntaxToken },\n { tag: tags.number, class: 'literal' satisfies SyntaxToken },\n { tag: [tags.string, tags.special(tags.string)], class: 'string' satisfies SyntaxToken },\n { tag: tags.regexp, class: 'regexp' satisfies SyntaxToken },\n { tag: [tags.operator, tags.operatorKeyword], class: 'operator' satisfies SyntaxToken },\n { tag: [tags.punctuation, tags.separator, tags.bracket], class: 'punctuation' satisfies SyntaxToken },\n { tag: [tags.variableName, tags.definition(tags.variableName)], class: 'variable' satisfies SyntaxToken },\n { tag: [tags.propertyName, tags.definition(tags.propertyName)], class: 'property' satisfies SyntaxToken },\n {\n tag: [tags.function(tags.variableName), tags.function(tags.propertyName)],\n class: 'callable' satisfies SyntaxToken,\n },\n { tag: [tags.typeName, tags.className, tags.namespace], class: 'type' satisfies SyntaxToken },\n { tag: [tags.tagName, tags.angleBracket], class: 'tag' satisfies SyntaxToken },\n { tag: tags.attributeName, class: 'attribute' satisfies SyntaxToken },\n { tag: [tags.meta, tags.processingInstruction, tags.documentMeta], class: 'meta' satisfies SyntaxToken },\n { tag: tags.heading, class: 'heading' satisfies SyntaxToken },\n { tag: [tags.link, tags.url], class: 'link' satisfies SyntaxToken },\n { tag: tags.emphasis, class: 'emphasis' satisfies SyntaxToken },\n { tag: tags.strong, class: 'strong' satisfies SyntaxToken },\n { tag: tags.strikethrough, class: 'strikethrough' satisfies SyntaxToken },\n { tag: tags.invalid, class: 'invalid' satisfies SyntaxToken },\n ]);\n}\n\n/** The parser behind a grammar. `loadGrammar` hands back an editor extension, which wraps one. */\nasync function parserFor(grammar: GrammarKey) {\n const [{ Language, LanguageSupport }, extension] = await Promise.all([\n import('@codemirror/language'),\n loadGrammar(grammar),\n ]);\n if (extension instanceof LanguageSupport) return extension.language.parser;\n if (extension instanceof Language) return extension.parser;\n return undefined;\n}\n\n/**\n * Colours `text` as `grammar`, as lines of spans.\n *\n * The whole text is parsed at once even though the caller may render it line\n * by line, because a template literal or a block comment only makes sense with\n * its neighbours. Text past the size cap, and a grammar whose extension turns\n * out to carry no parser, come back unhighlighted rather than throwing: colour\n * is decoration, and the caller already has the plain text on screen.\n */\nexport async function highlightToLines(text: string, grammar: GrammarKey): Promise<SyntaxLines | undefined> {\n if (text.length === 0 || text.length > MAX_HIGHLIGHT_CHARS) return undefined;\n const [{ highlightCode }, highlighter, parser] = await Promise.all([\n import('@lezer/highlight'),\n poHighlighter(),\n parserFor(grammar),\n ]);\n if (parser === undefined) return undefined;\n\n const lines: SyntaxSpan[][] = [[]];\n highlightCode(\n text,\n parser.parse(text),\n highlighter,\n (code, classes) => {\n const current = lines[lines.length - 1];\n // `classes` is the palette key this module handed the tag highlighter,\n // or empty for text no tag claimed.\n current?.push(classes === '' ? { text: code } : { text: code, token: classes as SyntaxToken });\n },\n () => lines.push([]),\n );\n return lines;\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"syntaxHighlight.mjs","names":["SHEBANG_GRAMMARS","JSON_SHAPE","detectGrammar","byPath","query","grammarKeyOf","text","head","firstLine","entry","syntaxStyleOf","token","PO_SYNTAX_STYLES","poHighlighter","tagHighlighter","tags","parserFor","extension","loadGrammar","grammar","LanguageSupport","Language","parseToLines","highlighter","parser","signal","lines","highlightCode","classes","code","HIGHLIGHT_CACHE_BYTES","cache","cacheBytes","pending","remember","bytes","key","line","span","oldest","highlightToLines","hit","job","controller","created","shared","finished","release","abort","resolve","reject","error"],"sources":["../../../../../../src/lib/syntaxHighlight.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\n\nimport { type GrammarKey, grammarKeyOf, loadGrammar } from './editorLanguage';\nimport { PO_SYNTAX_STYLES } from './editorTheme';\n\n/**\n * Static syntax highlighting for read-only code, the timeline's half of the\n * editor's `syntaxHighlighting`.\n *\n * A tool card shows code it cannot edit, so it needs the colours without the\n * editor: the same grammars `editorLanguage.ts` loads and the same token\n * palette `editorTheme.ts` names, run once over a string and handed back as\n * spans. Everything CodeMirror-shaped is behind a dynamic import, so a session\n * that never opens a code result never downloads a parser, and the caller\n * always has plain text to show first.\n */\n\n/** The palette keys a token can land on; the styles themselves are the editor's. */\nexport type SyntaxToken = keyof typeof PO_SYNTAX_STYLES;\n\n/** One run of same-styled text inside a line. `token` absent means unstyled. */\nexport interface SyntaxSpan {\n text: string;\n token?: SyntaxToken;\n}\n\n/** Lines of spans, one array per source line, so a gutter can pair with them. */\nexport type SyntaxLines = readonly (readonly SyntaxSpan[])[];\n\n/**\n * Above this the parse costs more than the colour is worth. Tool results are\n * bounded well below it; a pasted file is not, and blocking the frame to paint\n * a wall of text nobody reads is the worse outcome.\n */\nconst MAX_HIGHLIGHT_CHARS = 200_000;\n\n/** Only the first line is needed to spot a shebang, and reading more of a big string is waste. */\nconst SNIFF_CHARS = 200;\n\nconst SHEBANG_GRAMMARS: ReadonlyArray<{ readonly pattern: RegExp; readonly grammar: GrammarKey }> = [\n { pattern: /^#!.*\\b(?:bash|sh|zsh|dash|ksh)\\b/, grammar: 'shell' },\n { pattern: /^#!.*\\bpython[\\d.]*\\b/, grammar: 'python' },\n { pattern: /^#!.*\\b(?:node|bun|deno)\\b/, grammar: 'javascript' },\n];\n\n/** JSON is the one shape worth guessing from the body: a document is an object or an array. */\nconst JSON_SHAPE = /^\\s*[[{][\\s\\S]*[\\]}]\\s*$/;\n\nexport interface GrammarQuery {\n /** The file the text came from, when the tool knows one. */\n path?: string | undefined;\n /** The text itself, used only when the path settles nothing. */\n text?: string | undefined;\n}\n\n/**\n * Which grammar to colour a result with.\n *\n * The path decides whenever it can, because a name is evidence and a body is a\n * guess. Sniffing only answers for text that arrived without a usable name: a\n * shebang says what runs the script, and a document that opens and closes with\n * brackets is treated as JSON. Anything else stays plain rather than being\n * coloured as the wrong language.\n */\nexport function detectGrammar(query: GrammarQuery): GrammarKey | undefined {\n const byPath = query.path === undefined || query.path.length === 0 ? undefined : grammarKeyOf(query.path);\n if (byPath !== undefined) return byPath;\n const text = query.text ?? '';\n if (text.length === 0) return undefined;\n const head = text.slice(0, SNIFF_CHARS);\n if (head.startsWith('#!')) {\n const firstLine = head.split('\\n', 1)[0] ?? '';\n for (const entry of SHEBANG_GRAMMARS) {\n if (entry.pattern.test(firstLine)) return entry.grammar;\n }\n // A shebang naming something with no grammar here is still a script.\n return 'shell';\n }\n return JSON_SHAPE.test(text) ? 'json' : undefined;\n}\n\n/** The inline style a token wears. Colours come from the editor palette, which names theme tokens. */\nexport function syntaxStyleOf(token: SyntaxToken | undefined): CSSProperties | undefined {\n return token === undefined ? undefined : PO_SYNTAX_STYLES[token];\n}\n\n/**\n * Every tag the palette answers for, in the order the editor lists them. The\n * class each entry carries is a palette key rather than a CSS class: the\n * result is rendered as inline styles, so nothing has to be mounted in the\n * document for a card to show colour.\n */\nasync function poHighlighter() {\n const { tagHighlighter, tags } = await import('@lezer/highlight');\n return tagHighlighter([\n { tag: tags.comment, class: 'comment' satisfies SyntaxToken },\n { tag: tags.keyword, class: 'keyword' satisfies SyntaxToken },\n { tag: [tags.atom, tags.bool, tags.null, tags.self], class: 'constant' satisfies SyntaxToken },\n { tag: tags.number, class: 'literal' satisfies SyntaxToken },\n { tag: [tags.string, tags.special(tags.string)], class: 'string' satisfies SyntaxToken },\n { tag: tags.regexp, class: 'regexp' satisfies SyntaxToken },\n { tag: [tags.operator, tags.operatorKeyword], class: 'operator' satisfies SyntaxToken },\n { tag: [tags.punctuation, tags.separator, tags.bracket], class: 'punctuation' satisfies SyntaxToken },\n { tag: [tags.variableName, tags.definition(tags.variableName)], class: 'variable' satisfies SyntaxToken },\n { tag: [tags.propertyName, tags.definition(tags.propertyName)], class: 'property' satisfies SyntaxToken },\n {\n tag: [tags.function(tags.variableName), tags.function(tags.propertyName)],\n class: 'callable' satisfies SyntaxToken,\n },\n { tag: [tags.typeName, tags.className, tags.namespace], class: 'type' satisfies SyntaxToken },\n { tag: [tags.tagName, tags.angleBracket], class: 'tag' satisfies SyntaxToken },\n { tag: tags.attributeName, class: 'attribute' satisfies SyntaxToken },\n { tag: [tags.meta, tags.processingInstruction, tags.documentMeta], class: 'meta' satisfies SyntaxToken },\n { tag: tags.heading, class: 'heading' satisfies SyntaxToken },\n { tag: [tags.link, tags.url], class: 'link' satisfies SyntaxToken },\n { tag: tags.emphasis, class: 'emphasis' satisfies SyntaxToken },\n { tag: tags.strong, class: 'strong' satisfies SyntaxToken },\n { tag: tags.strikethrough, class: 'strikethrough' satisfies SyntaxToken },\n { tag: tags.invalid, class: 'invalid' satisfies SyntaxToken },\n ]);\n}\n\n/** The parser behind a grammar. `loadGrammar` hands back an editor extension, which wraps one. */\nasync function parserFor(grammar: GrammarKey) {\n const [{ Language, LanguageSupport }, extension] = await Promise.all([\n import('@codemirror/language'),\n loadGrammar(grammar),\n ]);\n if (extension instanceof LanguageSupport) return extension.language.parser;\n if (extension instanceof Language) return extension.parser;\n return undefined;\n}\n\n/**\n * Colours `text` as `grammar`, as lines of spans.\n *\n * The whole text is parsed at once even though the caller may render it line\n * by line, because a template literal or a block comment only makes sense with\n * its neighbours. Text past the size cap, and a grammar whose extension turns\n * out to carry no parser, come back unhighlighted rather than throwing: colour\n * is decoration, and the caller already has the plain text on screen.\n */\nasync function parseToLines(text: string, grammar: GrammarKey, signal: AbortSignal): Promise<SyntaxLines | undefined> {\n const [{ highlightCode }, highlighter, parser] = await Promise.all([\n import('@lezer/highlight'),\n poHighlighter(),\n parserFor(grammar),\n ]);\n // Imports may finish after every interested view has gone away. Parsing is\n // synchronous, so cancellation can skip it here but cannot interrupt it.\n if (signal.aborted || parser === undefined) return undefined;\n\n const lines: SyntaxSpan[][] = [[]];\n highlightCode(\n text,\n parser.parse(text),\n highlighter,\n (code, classes) => {\n const current = lines[lines.length - 1];\n // `classes` is the palette key this module handed the tag highlighter,\n // or empty for text no tag claimed.\n current?.push(classes === '' ? { text: code } : { text: code, token: classes as SyntaxToken });\n },\n () => lines.push([]),\n );\n return lines;\n}\n\n/** Account for UTF-16 keys/text and estimated array/object overhead, not just entry count. */\nconst HIGHLIGHT_CACHE_BYTES = 4 * 1024 * 1024;\nconst HIGHLIGHT_CACHE_ENTRIES = 128;\nconst SPAN_OVERHEAD_BYTES = 64;\nconst cache = new Map<string, { lines: SyntaxLines; bytes: number }>();\nlet cacheBytes = 0;\n\ninterface HighlightJob {\n controller: AbortController;\n users: number;\n promise: Promise<SyntaxLines | undefined>;\n}\nconst pending = new Map<string, HighlightJob>();\n\nfunction remember(key: string, lines: SyntaxLines): void {\n let bytes = key.length * 2 + lines.length * SPAN_OVERHEAD_BYTES;\n for (const line of lines) {\n for (const span of line) bytes += span.text.length * 2 + SPAN_OVERHEAD_BYTES;\n }\n if (bytes > HIGHLIGHT_CACHE_BYTES) return;\n while (cacheBytes + bytes > HIGHLIGHT_CACHE_BYTES || cache.size >= HIGHLIGHT_CACHE_ENTRIES) {\n const oldest = cache.entries().next().value;\n if (oldest === undefined) break;\n cache.delete(oldest[0]);\n cacheBytes -= oldest[1].bytes;\n }\n cache.set(key, { lines, bytes });\n cacheBytes += bytes;\n}\n\n/**\n * Shared whole-block highlighting, keyed by grammar and exact text. Completed\n * spans use a byte-accounted LRU; concurrent readers share one parse. A caller\n * can cancel without cancelling another reader. Once all readers cancel, skip\n * parsing after grammar loading. Cancelled or failed work is never cached.\n * The existing size cap and plain-text fallback are unchanged.\n */\nexport async function highlightToLines(\n text: string,\n grammar: GrammarKey,\n signal?: AbortSignal,\n): Promise<SyntaxLines | undefined> {\n if (signal?.aborted || text.length === 0 || text.length > MAX_HIGHLIGHT_CHARS) return undefined;\n const key = `${grammar}\\u0000${text}`;\n const hit = cache.get(key);\n if (hit !== undefined) {\n cache.delete(key);\n cache.set(key, hit);\n return hit.lines;\n }\n let job = pending.get(key);\n if (job === undefined) {\n const controller = new AbortController();\n job = { controller, users: 0, promise: parseToLines(text, grammar, controller.signal) };\n const created = job;\n job.promise = job.promise\n .then((lines) => {\n if (!controller.signal.aborted && lines !== undefined) remember(key, lines);\n return lines;\n })\n .finally(() => {\n if (pending.get(key) === created) pending.delete(key);\n });\n pending.set(key, job);\n }\n const shared = job;\n shared.users += 1;\n return new Promise((resolve, reject) => {\n let finished = false;\n const release = () => {\n if (finished) return false;\n finished = true;\n signal?.removeEventListener('abort', abort);\n shared.users -= 1;\n return true;\n };\n const abort = () => {\n if (!release()) return;\n if (shared.users === 0) {\n shared.controller.abort();\n if (pending.get(key) === shared) pending.delete(key);\n }\n resolve(undefined);\n };\n signal?.addEventListener('abort', abort, { once: true });\n void shared.promise.then(\n (lines) => {\n if (release()) resolve(lines);\n },\n (error: unknown) => {\n if (release()) reject(error);\n },\n );\n });\n}\n"],"mappings":"A,0HAkCA,MAKMA,EAA8F,CAClG,CAAE,QAAS,oCAAqC,QAAS,OAAQ,EACjE,CAAE,QAAS,wBAAyB,QAAS,QAAS,EACtD,CAAE,QAAS,6BAA8B,QAAS,YAAa,CACjE,EAGMC,EAAa,2BAkBnB,SAAgBC,EAAc,EAA6C,CACzE,IAAMC,EAASC,EAAM,OAAS,IAAA,IAAaA,EAAM,KAAK,SAAW,EAAI,IAAA,GAAYC,EAAaD,EAAM,IAAI,EACxG,GAAID,IAAW,IAAA,GAAW,OAAOA,EACjC,IAAMG,EAAOF,EAAM,MAAQ,GAC3B,GAAIE,EAAK,SAAW,EAAG,OACvB,IAAMC,EAAOD,EAAK,MAAM,EAAG,GAAW,EACtC,GAAIC,EAAK,WAAW,IAAI,EAAG,CACzB,IAAMC,EAAYD,EAAK,MAAM;EAAM,CAAC,CAAC,CAAC,IAAM,GAC5C,IAAK,IAAME,KAAST,EAClB,GAAIS,EAAM,QAAQ,KAAKD,CAAS,EAAG,OAAOC,EAAM,QAGlD,MAAO,OACT,CACA,OAAOR,EAAW,KAAKK,CAAI,EAAI,OAAS,IAAA,EAC1C,CAGA,SAAgBI,EAAc,EAA2D,CACvF,OAAOC,IAAU,IAAA,GAAY,IAAA,GAAYC,EAAiBD,EAC5D,CAQA,eAAeE,GAAgB,CAC7B,GAAM,CAAE,iBAAgB,QAAS,MAAM,OAAO,oBAC9C,OAAOC,EAAe,CACpB,CAAE,IAAKC,EAAK,QAAS,MAAO,SAAgC,EAC5D,CAAE,IAAKA,EAAK,QAAS,MAAO,SAAgC,EAC5D,CAAE,IAAK,CAACA,EAAK,KAAMA,EAAK,KAAMA,EAAK,KAAMA,EAAK,IAAI,EAAG,MAAO,UAAiC,EAC7F,CAAE,IAAKA,EAAK,OAAQ,MAAO,SAAgC,EAC3D,CAAE,IAAK,CAACA,EAAK,OAAQA,EAAK,QAAQA,EAAK,MAAM,CAAC,EAAG,MAAO,QAA+B,EACvF,CAAE,IAAKA,EAAK,OAAQ,MAAO,QAA+B,EAC1D,CAAE,IAAK,CAACA,EAAK,SAAUA,EAAK,eAAe,EAAG,MAAO,UAAiC,EACtF,CAAE,IAAK,CAACA,EAAK,YAAaA,EAAK,UAAWA,EAAK,OAAO,EAAG,MAAO,aAAoC,EACpG,CAAE,IAAK,CAACA,EAAK,aAAcA,EAAK,WAAWA,EAAK,YAAY,CAAC,EAAG,MAAO,UAAiC,EACxG,CAAE,IAAK,CAACA,EAAK,aAAcA,EAAK,WAAWA,EAAK,YAAY,CAAC,EAAG,MAAO,UAAiC,EACxG,CACE,IAAK,CAACA,EAAK,SAASA,EAAK,YAAY,EAAGA,EAAK,SAASA,EAAK,YAAY,CAAC,EACxE,MAAO,UACT,EACA,CAAE,IAAK,CAACA,EAAK,SAAUA,EAAK,UAAWA,EAAK,SAAS,EAAG,MAAO,MAA6B,EAC5F,CAAE,IAAK,CAACA,EAAK,QAASA,EAAK,YAAY,EAAG,MAAO,KAA4B,EAC7E,CAAE,IAAKA,EAAK,cAAe,MAAO,WAAkC,EACpE,CAAE,IAAK,CAACA,EAAK,KAAMA,EAAK,sBAAuBA,EAAK,YAAY,EAAG,MAAO,MAA6B,EACvG,CAAE,IAAKA,EAAK,QAAS,MAAO,SAAgC,EAC5D,CAAE,IAAK,CAACA,EAAK,KAAMA,EAAK,GAAG,EAAG,MAAO,MAA6B,EAClE,CAAE,IAAKA,EAAK,SAAU,MAAO,UAAiC,EAC9D,CAAE,IAAKA,EAAK,OAAQ,MAAO,QAA+B,EAC1D,CAAE,IAAKA,EAAK,cAAe,MAAO,eAAsC,EACxE,CAAE,IAAKA,EAAK,QAAS,MAAO,SAAgC,CAC9D,CAAC,CACH,CAGA,eAAeC,EAAU,EAAqB,CAC5C,GAAM,CAAC,CAAE,WAAU,mBAAmBC,GAAa,MAAM,QAAQ,IAAI,CACnE,OAAO,wBACPC,EAAYC,CAAO,CACrB,CAAC,EACD,GAAIF,aAAqBG,EAAiB,OAAOH,EAAU,SAAS,OACpE,GAAIA,aAAqBI,EAAU,OAAOJ,EAAU,MAEtD,CAWA,eAAeK,EAAa,EAAc,EAAqB,EAAuD,CACpH,GAAM,CAAC,CAAE,iBAAiBC,EAAaC,GAAU,MAAM,QAAQ,IAAI,CACjE,OAAO,oBACPX,EAAc,EACdG,EAAUG,CAAO,CACnB,CAAC,EAGD,GAAIM,EAAO,SAAWD,IAAW,IAAA,GAAW,OAE5C,IAAME,EAAwB,CAAC,CAAC,CAAC,EAajC,OAZAC,EACErB,EACAkB,EAAO,MAAMlB,CAAI,EACjBiB,GACC,EAAM,IAAY,CAIjBG,EAHsBA,EAAM,OAAS,EAG9B,EAAE,KAAKE,IAAY,GAAK,CAAE,KAAMC,CAAK,EAAI,CAAE,KAAMA,EAAM,MAAOD,CAAuB,CAAC,CAC/F,MACMF,EAAM,KAAK,CAAC,CAAC,CACrB,EACOA,CACT,CAGA,MAAMI,EAAwB,QAGxBC,kBAAQ,IAAI,IAClB,IAAIC,EAAa,EAOjB,MAAMC,kBAAU,IAAI,IAEpB,SAASC,EAAS,EAAa,EAA0B,CACvD,IAAIC,EAAQC,EAAI,OAAS,EAAIV,EAAM,OAAS,GAC5C,IAAK,IAAMW,KAAQX,EACjB,IAAK,IAAMY,KAAQD,EAAM,GAASC,EAAK,KAAK,OAAS,EAAI,GAE3D,GAAI,IAAQR,GACZ,MAAOE,EAAaG,EAAQL,GAAyBC,EAAM,MAAQ,KAAyB,CAC1F,IAAMQ,EAASR,EAAM,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,MACtC,GAAIQ,IAAW,IAAA,GAAW,MAC1BR,EAAM,OAAOQ,EAAO,EAAE,EACtB,GAAcA,EAAO,EAAE,CAAC,KAC1B,CACAR,EAAM,IAAIK,EAAK,CAAE,QAAO,OAAM,CAAC,EAC/B,GAAcD,CAFd,CAGF,CASA,eAAsBK,EACpB,EACA,EACA,EACkC,CAClC,GAAIf,GAAQ,SAAWnB,EAAK,SAAW,GAAKA,EAAK,OAAS,IAAqB,OAC/E,IAAM8B,EAAM,GAAGjB,EAAQ,QAAQb,IACzBmC,EAAMV,EAAM,IAAIK,CAAG,EACzB,GAAIK,IAAQ,IAAA,GAGV,OAFAV,EAAM,OAAOK,CAAG,EAChBL,EAAM,IAAIK,EAAKK,CAAG,EACXA,EAAI,MAEb,IAAIC,EAAMT,EAAQ,IAAIG,CAAG,EACzB,GAAIM,IAAQ,IAAA,GAAW,CACrB,IAAMC,EAAa,IAAI,gBACvB,EAAM,CAAE,aAAY,MAAO,EAAG,QAASrB,EAAahB,EAAMa,EAASwB,EAAW,MAAM,CAAE,EACtF,IAAMC,EAAUF,EAChB,EAAI,QAAUA,EAAI,QACf,KAAM,IACD,CAACC,EAAW,OAAO,SAAWjB,IAAU,IAAA,IAAWQ,EAASE,EAAKV,CAAK,EACnEA,EACR,CAAC,CACD,YAAc,CACTO,EAAQ,IAAIG,CAAG,IAAMQ,GAASX,EAAQ,OAAOG,CAAG,CACtD,CAAC,EACHH,EAAQ,IAAIG,EAAKM,CAAG,CACtB,CACA,IAAMG,EAASH,EAEf,MADA,GAAO,OAAS,EACT,IAAI,SAAS,EAAS,IAAW,CACtC,IAAII,EAAW,GACTC,MACJ,CAAID,IACJ,EAAW,GACXrB,GAAQ,oBAAoB,QAASuB,CAAK,EAC1C,IAAO,MACA,IAEHA,MAAc,CACbD,EAAQ,IACTF,EAAO,QAAU,IACnBA,EAAO,WAAW,MAAM,EACpBZ,EAAQ,IAAIG,CAAG,IAAMS,GAAQZ,EAAQ,OAAOG,CAAG,GAErDa,EAAQ,IAAA,EAAS,EACnB,EACAxB,GAAQ,iBAAiB,QAASuB,EAAO,CAAE,KAAM,EAAK,CAAC,EACvDH,EAAY,QAAQ,KACjB,GAAU,CACLE,EAAQ,GAAGE,EAAQvB,CAAK,CAC9B,EACC,GAAmB,CACdqB,EAAQ,GAAGG,EAAOC,CAAK,CAC7B,CACF,CACF,CAAC,CACH,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"tone.mjs","names":["STATUS_TO_CHIP","STATUS_TO_DOT","CHIP_TO_STATUS","LINE_TONE_TO_STATUS"],"sources":["../../../../../../src/lib/tone.ts"],"sourcesContent":["import type { ChipTone, DotTone, MessageLineTone, StatusTone } from '../types/tone';\n\n/**\n * Translations between the tone vocabularies.\n *\n * Every surface that shows an outcome used to carry its own\n * `Record<Tone, string>` table mapping a state onto a colour class. Those\n * tables disagreed as often as they agreed. These maps are the one place the\n * translation lives, so a card picks a status tone from its own domain and\n * asks here what colour that reads as.\n */\n\n/** The colour a status reads as, for the chip and border families. */\nexport const STATUS_TO_CHIP: Readonly<Record<StatusTone, ChipTone>> = {\n neutral: 'neutral',\n running: 'yellow',\n ok: 'green',\n error: 'red',\n info: 'blue',\n accent: 'magenta',\n};\n\n/** The dot a status reads as; a neutral status is present but not live. */\nexport const STATUS_TO_DOT: Readonly<Record<StatusTone, DotTone>> = {\n neutral: 'muted',\n running: 'yellow',\n ok: 'green',\n error: 'red',\n info: 'blue',\n accent: 'magenta',\n};\n\n/**\n * The status a colour stands for, for a caller that has only a chip tone.\n * Lossy on purpose: the palette has more colours than there are outcomes, and\n * a colour with no outcome of its own reads as neutral.\n */\nexport const CHIP_TO_STATUS: Readonly<Record<ChipTone, StatusTone>> = {\n neutral: 'neutral',\n blue: 'info',\n green: 'ok',\n yellow: 'running',\n red: 'error',\n magenta: 'accent',\n violet: 'accent',\n cyan: 'info',\n orange: 'running',\n teal: 'info',\n};\n\n/** The status a body line's role corresponds to, for a card that badges its worst line. */\nexport const LINE_TONE_TO_STATUS: Readonly<Record<MessageLineTone, StatusTone>> = {\n hi: 'neutral',\n text: 'neutral',\n dim: 'neutral',\n muted: 'neutral',\n success: 'ok',\n error: 'error',\n warning: 'running',\n accent: 'info',\n};\n"],"mappings":"AAaA,MAAaA,EAAyD,CACpE,QAAS,UACT,QAAS,SACT,GAAI,QACJ,MAAO,MACP,KAAM,OACN,OAAQ,SACV,EAGaC,EAAuD,CAClE,QAAS,QACT,QAAS,SACT,GAAI,QACJ,MAAO,MACP,KAAM,OACN,OAAQ,SACV,EAOaC,EAAyD,CACpE,QAAS,UACT,KAAM,OACN,MAAO,KACP,OAAQ,UACR,IAAK,QACL,QAAS,SACT,OAAQ,SACR,KAAM,OACN,OAAQ,UACR,KAAM,MACR,EAGaC,EAAqE,CAChF,GAAI,UACJ,KAAM,UACN,IAAK,UACL,MAAO,UACP,QAAS,KACT,MAAO,QACP,QAAS,UACT,OAAQ,MACV"}
1
+ {"version":3,"file":"tone.mjs","names":["STATUS_TO_CHIP","STATUS_TO_DOT","CHIP_TO_STATUS","LINE_TONE_TO_STATUS"],"sources":["../../../../../../src/lib/tone.ts"],"sourcesContent":["import type { ChipTone, DotTone, MessageLineTone, StatusTone } from '../types/tone';\n\n/**\n * Translations between the tone vocabularies.\n *\n * Every surface that shows an outcome used to carry its own\n * `Record<Tone, string>` table mapping a state onto a colour class. Those\n * tables disagreed as often as they agreed. These maps are the one place the\n * translation lives, so a card picks a status tone from its own domain and\n * asks here what colour that reads as.\n */\n\n/** The colour a status reads as, for the chip and border families. */\nexport const STATUS_TO_CHIP: Readonly<Record<StatusTone, ChipTone>> = {\n neutral: 'neutral',\n running: 'yellow',\n ok: 'green',\n error: 'red',\n info: 'blue',\n accent: 'magenta',\n};\n\n/** The dot a status reads as; a neutral status is present but not live. */\nexport const STATUS_TO_DOT: Readonly<Record<StatusTone, DotTone>> = {\n neutral: 'muted',\n running: 'yellow',\n ok: 'green',\n error: 'red',\n info: 'blue',\n accent: 'magenta',\n};\n\n/**\n * The status a colour stands for, for a caller that has only a chip tone.\n * Lossy on purpose: the palette has more colours than there are outcomes, and\n * a colour with no outcome of its own reads as neutral.\n */\nexport const CHIP_TO_STATUS: Readonly<Record<ChipTone, StatusTone>> = {\n neutral: 'neutral',\n blue: 'info',\n green: 'ok',\n yellow: 'running',\n red: 'error',\n magenta: 'accent',\n violet: 'accent',\n cyan: 'info',\n orange: 'running',\n teal: 'info',\n};\n\n/** The status a body line's role corresponds to, for a card that badges its worst line. */\nexport const LINE_TONE_TO_STATUS: Readonly<Record<MessageLineTone, StatusTone>> = {\n hi: 'neutral',\n text: 'neutral',\n dim: 'neutral',\n muted: 'neutral',\n success: 'ok',\n error: 'error',\n warning: 'running',\n accent: 'info',\n};\n"],"mappings":"AAaA,MAAaA,EAAyD,CACpE,QAAS,UACT,QAAS,SACT,GAAI,QACJ,MAAO,MACP,KAAM,OACN,OAAQ,SACV,EAGaC,EAAuD,CAClE,QAAS,QACT,QAAS,SACT,GAAI,QACJ,MAAO,MACP,KAAM,OACN,OAAQ,SACV,EAOaC,EAAyD,CACpE,QAAS,UACT,KAAM,OACN,MAAO,KACP,OAAQ,UACR,IAAK,QACL,QAAS,SACT,OAAQ,SACR,KAAM,OACN,OAAQ,UACR,KAAM,MACR,EAGaC,EAAqE,CAChF,GAAI,UACJ,KAAM,UACN,IAAK,UACL,MAAO,UACP,QAAS,KACT,MAAO,QACP,QAAS,UACT,OAAQ,MACV,E"}
@@ -1 +1 @@
1
- {"version":3,"file":"apply.mjs","names":["THEME_ATTRIBUTE","themeCssVariables","variables","token","PALETTE_TOKENS","themeVariable","theme","derivedTokens","tokenValue","themeCssText","declarations","name","value","selector","applyTheme","root"],"sources":["../../../../../../src/theme/apply.ts"],"sourcesContent":["import { PALETTE_TOKENS, type ThemeConfig, themeVariable } from '../types/theme';\nimport { derivedTokens, tokenValue } from './derive';\n\n/** The attribute the active theme's name is stamped on, for CSS that keys off a theme. */\nexport const THEME_ATTRIBUTE = 'data-theme';\n\n/** Every custom property a theme publishes, keyed by property name. */\nexport function themeCssVariables(theme: ThemeConfig): Record<string, string> {\n const variables: Record<string, string> = {};\n for (const token of PALETTE_TOKENS) variables[themeVariable(token)] = theme.tokens[token];\n for (const token of derivedTokens()) variables[themeVariable(token)] = tokenValue(theme, token);\n return variables;\n}\n\n/** The theme as a stylesheet rule, for a server that wants to inline it. */\nexport function themeCssText(theme: ThemeConfig, selector = ':root'): string {\n const declarations = Object.entries(themeCssVariables(theme)).map(([name, value]) => ` ${name}: ${value};`);\n return `${selector} {\\n color-scheme: ${theme.scheme};\\n${declarations.join('\\n')}\\n}\\n`;\n}\n\n/** The subset of an element the theme touches, so tests can pass a plain object. */\nexport interface ThemeRoot {\n style: { setProperty(name: string, value: string): void; colorScheme: string };\n setAttribute(name: string, value: string): void;\n}\n\n/**\n * Applies a theme to the page: every token becomes a custom property on the\n * root, the colour scheme follows, and the theme name is stamped so a style\n * may key off it. Idempotent and synchronous, so calling it before the first\n * render avoids a flash of the default theme.\n */\nexport function applyTheme(theme: ThemeConfig, root: ThemeRoot): void {\n for (const [name, value] of Object.entries(themeCssVariables(theme))) root.style.setProperty(name, value);\n root.style.colorScheme = theme.scheme;\n root.setAttribute(THEME_ATTRIBUTE, theme.name);\n}\n"],"mappings":"oIAIA,MAAaA,EAAkB,aAG/B,SAAgBC,EAAkB,EAA4C,CAC5E,IAAMC,EAAoC,CAAC,EAC3C,IAAK,IAAMC,KAASC,EAAgB,EAAUC,EAAcF,CAAK,GAAKG,EAAM,OAAOH,GACnF,IAAK,IAAMA,KAASI,EAAc,EAAG,EAAUF,EAAcF,CAAK,GAAKK,EAAWF,EAAOH,CAAK,EAC9F,OAAOD,CACT,CAGA,SAAgBO,EAAa,EAAoB,EAAW,QAAiB,CAC3E,IAAMC,EAAe,OAAO,QAAQT,EAAkBK,CAAK,CAAC,CAAC,CAAC,KAAK,CAACK,EAAMC,KAAW,KAAKD,EAAK,IAAIC,EAAM,EAAE,EAC3G,MAAO,GAAGC,EAAS,sBAAsBP,EAAM,OAAO,KAAKI,EAAa,KAAK;CAAI,EAAE,MACrF,CAcA,SAAgBI,EAAW,EAAoB,EAAuB,CACpE,IAAK,GAAM,CAACH,EAAMC,KAAU,OAAO,QAAQX,EAAkBK,CAAK,CAAC,EAAGS,EAAK,MAAM,YAAYJ,EAAMC,CAAK,EACxG,EAAK,MAAM,YAAcN,EAAM,OAC/BS,EAAK,aAAaf,EAAiBM,EAAM,IAAI,CAC/C"}
1
+ {"version":3,"file":"apply.mjs","names":["THEME_ATTRIBUTE","themeCssVariables","variables","token","PALETTE_TOKENS","themeVariable","theme","derivedTokens","tokenValue","themeCssText","declarations","name","value","selector","applyTheme","root"],"sources":["../../../../../../src/theme/apply.ts"],"sourcesContent":["import { PALETTE_TOKENS, type ThemeConfig, themeVariable } from '../types/theme';\nimport { derivedTokens, tokenValue } from './derive';\n\n/** The attribute the active theme's name is stamped on, for CSS that keys off a theme. */\nexport const THEME_ATTRIBUTE = 'data-theme';\n\n/** Every custom property a theme publishes, keyed by property name. */\nexport function themeCssVariables(theme: ThemeConfig): Record<string, string> {\n const variables: Record<string, string> = {};\n for (const token of PALETTE_TOKENS) variables[themeVariable(token)] = theme.tokens[token];\n for (const token of derivedTokens()) variables[themeVariable(token)] = tokenValue(theme, token);\n return variables;\n}\n\n/** The theme as a stylesheet rule, for a server that wants to inline it. */\nexport function themeCssText(theme: ThemeConfig, selector = ':root'): string {\n const declarations = Object.entries(themeCssVariables(theme)).map(([name, value]) => ` ${name}: ${value};`);\n return `${selector} {\\n color-scheme: ${theme.scheme};\\n${declarations.join('\\n')}\\n}\\n`;\n}\n\n/** The subset of an element the theme touches, so tests can pass a plain object. */\nexport interface ThemeRoot {\n style: { setProperty(name: string, value: string): void; colorScheme: string };\n setAttribute(name: string, value: string): void;\n}\n\n/**\n * Applies a theme to the page: every token becomes a custom property on the\n * root, the colour scheme follows, and the theme name is stamped so a style\n * may key off it. Idempotent and synchronous, so calling it before the first\n * render avoids a flash of the default theme.\n */\nexport function applyTheme(theme: ThemeConfig, root: ThemeRoot): void {\n for (const [name, value] of Object.entries(themeCssVariables(theme))) root.style.setProperty(name, value);\n root.style.colorScheme = theme.scheme;\n root.setAttribute(THEME_ATTRIBUTE, theme.name);\n}\n"],"mappings":"A,oIAIA,MAAaA,EAAkB,aAG/B,SAAgBC,EAAkB,EAA4C,CAC5E,IAAMC,EAAoC,CAAC,EAC3C,IAAK,IAAMC,KAASC,EAAgB,EAAUC,EAAcF,CAAK,GAAKG,EAAM,OAAOH,GACnF,IAAK,IAAMA,KAASI,EAAc,EAAG,EAAUF,EAAcF,CAAK,GAAKK,EAAWF,EAAOH,CAAK,EAC9F,OAAOD,CACT,CAGA,SAAgBO,EAAa,EAAoB,EAAW,QAAiB,CAC3E,IAAMC,EAAe,OAAO,QAAQT,EAAkBK,CAAK,CAAC,CAAC,CAAC,KAAK,CAACK,EAAMC,KAAW,KAAKD,EAAK,IAAIC,EAAM,EAAE,EAC3G,MAAO,GAAGC,EAAS,sBAAsBP,EAAM,OAAO,KAAKI,EAAa,KAAK;CAAI,EAAE,MACrF,CAcA,SAAgBI,EAAW,EAAoB,EAAuB,CACpE,IAAK,GAAM,CAACH,EAAMC,KAAU,OAAO,QAAQX,EAAkBK,CAAK,CAAC,EAAGS,EAAK,MAAM,YAAYJ,EAAMC,CAAK,EACxG,EAAK,MAAM,YAAcN,EAAM,OAC/BS,EAAK,aAAaf,EAAiBM,EAAM,IAAI,CAC/C,C"}
@@ -1 +1 @@
1
- {"version":3,"file":"builtinThemes.mjs","names":["poOneLight","poNordDark","po_nord_dark_default","po_one_light_default","shipped","theme","parseThemeConfig","input","file","DEFAULT_THEME_NAME","BUILTIN_THEMES","DEFAULT_THEME","builtinTheme","name"],"sources":["../../../../../../src/theme/builtinThemes.ts"],"sourcesContent":["import poNordDark from '../../themes/po-nord-dark.json' with { type: 'json' };\nimport poOneLight from '../../themes/po-one-light.json' with { type: 'json' };\nimport type { ThemeConfig } from '../types/theme';\nimport { parseThemeConfig } from './parse';\n\nfunction shipped(input: unknown, file: string): ThemeConfig {\n const theme = parseThemeConfig(input);\n if (theme === null) throw new Error(`The shipped theme ${file} is malformed.`);\n return theme;\n}\n\n/** The theme the cockpit renders with until a preference says otherwise. */\nexport const DEFAULT_THEME_NAME = 'po-one-light';\n\n/** The themes this package ships, default first. */\nexport const BUILTIN_THEMES: readonly ThemeConfig[] = [\n shipped(poOneLight, 'po-one-light.json'),\n shipped(poNordDark, 'po-nord-dark.json'),\n];\n\nexport const DEFAULT_THEME: ThemeConfig = BUILTIN_THEMES[0];\n\n/** A shipped theme by name, or undefined for a name nothing shipped under. */\nexport function builtinTheme(name: string): ThemeConfig | undefined {\n return BUILTIN_THEMES.find((theme) => theme.name === name);\n}\n"],"mappings":"yIAKA,SAASI,EAAQ,EAAgB,EAA2B,CAC1D,IAAMC,EAAQC,EAAiBC,CAAK,EACpC,GAAIF,IAAU,KAAM,MAAU,MAAM,qBAAqBG,EAAK,eAAe,EAC7E,OAAOH,CACT,CAGA,MAAaI,EAAqB,eAGrBC,EAAyC,CACpDN,EAAQJ,EAAY,mBAAmB,EACvCI,EAAQH,EAAY,mBAAmB,CACzC,EAEaU,EAA6BD,EAAe,GAGzD,SAAgBE,EAAa,EAAuC,CAClE,OAAOF,EAAe,KAAM,GAAUL,EAAM,OAASQ,CAAI,CAC3D"}
1
+ {"version":3,"file":"builtinThemes.mjs","names":["poOneLight","poNordDark","po_nord_dark_default","po_one_light_default","shipped","theme","parseThemeConfig","input","file","DEFAULT_THEME_NAME","BUILTIN_THEMES","DEFAULT_THEME","builtinTheme","name"],"sources":["../../../../../../src/theme/builtinThemes.ts"],"sourcesContent":["import poNordDark from '../../themes/po-nord-dark.json' with { type: 'json' };\nimport poOneLight from '../../themes/po-one-light.json' with { type: 'json' };\nimport type { ThemeConfig } from '../types/theme';\nimport { parseThemeConfig } from './parse';\n\nfunction shipped(input: unknown, file: string): ThemeConfig {\n const theme = parseThemeConfig(input);\n if (theme === null) throw new Error(`The shipped theme ${file} is malformed.`);\n return theme;\n}\n\n/** The theme the cockpit renders with until a preference says otherwise. */\nexport const DEFAULT_THEME_NAME = 'po-one-light';\n\n/** The themes this package ships, default first. */\nexport const BUILTIN_THEMES: readonly ThemeConfig[] = [\n shipped(poOneLight, 'po-one-light.json'),\n shipped(poNordDark, 'po-nord-dark.json'),\n];\n\nexport const DEFAULT_THEME: ThemeConfig = BUILTIN_THEMES[0];\n\n/** A shipped theme by name, or undefined for a name nothing shipped under. */\nexport function builtinTheme(name: string): ThemeConfig | undefined {\n return BUILTIN_THEMES.find((theme) => theme.name === name);\n}\n"],"mappings":"A,yIAKA,SAASI,EAAQ,EAAgB,EAA2B,CAC1D,IAAMC,EAAQC,EAAiBC,CAAK,EACpC,GAAIF,IAAU,KAAM,MAAU,MAAM,qBAAqBG,EAAK,eAAe,EAC7E,OAAOH,CACT,CAGA,MAAaI,EAAqB,eAGrBC,EAAyC,CACpDN,EAAQJ,EAAY,mBAAmB,EACvCI,EAAQH,EAAY,mBAAmB,CACzC,EAEaU,EAA6BD,EAAe,GAGzD,SAAgBE,EAAa,EAAuC,CAClE,OAAOF,EAAe,KAAM,GAAUL,EAAM,OAASQ,CAAI,CAC3D,C"}