kennel 0.2.0 → 0.2.2

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 (872) hide show
  1. package/README.md +18 -5
  2. package/dist/cli/dispatch.js +9 -0
  3. package/dist/cli/src/automations/notifications.d.ts +40 -0
  4. package/dist/cli/src/automations/notifications.js +220 -0
  5. package/dist/cli/src/cli/dispatch.d.ts +1 -0
  6. package/dist/cli/src/cli/dispatch.js +125 -0
  7. package/dist/cli/src/cli/usage.d.ts +1 -0
  8. package/dist/cli/src/cli/usage.js +25 -0
  9. package/dist/cli/src/core/api-client.d.ts +13 -0
  10. package/dist/cli/src/core/api-client.js +1 -0
  11. package/dist/cli/src/core/command.d.ts +1 -0
  12. package/dist/cli/src/core/command.js +69 -0
  13. package/dist/cli/src/core/core-folders.d.ts +1 -0
  14. package/dist/cli/src/core/core-folders.js +42 -0
  15. package/dist/cli/src/core/init.d.ts +1 -0
  16. package/dist/cli/src/core/init.js +141 -0
  17. package/dist/cli/src/core/runtime.d.ts +14 -0
  18. package/dist/cli/src/core/runtime.js +1 -0
  19. package/dist/cli/src/deploy/cloudflare.d.ts +6 -0
  20. package/dist/cli/src/deploy/cloudflare.js +100 -0
  21. package/dist/cli/src/deploy/environment.d.ts +2 -0
  22. package/dist/cli/src/deploy/environment.js +47 -0
  23. package/dist/cli/src/deploy/smoke-tests.d.ts +4 -0
  24. package/dist/cli/src/deploy/smoke-tests.js +92 -0
  25. package/dist/cli/src/deploy/trigger-dev.d.ts +2 -0
  26. package/dist/cli/src/deploy/trigger-dev.js +255 -0
  27. package/dist/cli/src/deploy/vercel.d.ts +3 -0
  28. package/dist/cli/src/deploy/vercel.js +67 -0
  29. package/dist/cli/src/main.d.ts +1 -0
  30. package/dist/cli/src/main.js +9 -0
  31. package/dist/cli/src/mcp/agent-tools.d.ts +8 -0
  32. package/dist/cli/src/mcp/agent-tools.js +247 -0
  33. package/dist/cli/src/mcp/config.d.ts +25 -0
  34. package/dist/cli/src/mcp/config.js +185 -0
  35. package/dist/cli/src/mcp/function-source.d.ts +7 -0
  36. package/dist/cli/src/mcp/function-source.js +42 -0
  37. package/dist/cli/src/mcp/generate.d.ts +1 -0
  38. package/dist/cli/src/mcp/generate.js +47 -0
  39. package/dist/cli/src/mcp/install-page.d.ts +12 -0
  40. package/dist/cli/src/mcp/install-page.js +5 -0
  41. package/dist/cli/src/notifications/email-worker.d.ts +8 -0
  42. package/dist/cli/src/notifications/email-worker.js +137 -0
  43. package/dist/cli/src/package/mcp-data.d.ts +1 -0
  44. package/dist/cli/src/package/mcp-data.js +1 -0
  45. package/dist/cli/src/package/mcp-email-worker.d.ts +1 -0
  46. package/dist/cli/src/package/mcp-email-worker.js +1 -0
  47. package/dist/cli/src/package/mcp-http.d.ts +1 -0
  48. package/dist/cli/src/package/mcp-http.js +1 -0
  49. package/dist/cli/src/package/mcp-stdio.d.ts +1 -0
  50. package/dist/cli/src/package/mcp-stdio.js +1 -0
  51. package/dist/cli/src/package/mcp.d.ts +1 -0
  52. package/dist/cli/src/package/mcp.js +1 -0
  53. package/dist/cli/src/package/preview.d.ts +9 -0
  54. package/dist/cli/src/package/preview.js +1 -0
  55. package/dist/cli/src/plugins/external.d.ts +36 -0
  56. package/dist/cli/src/plugins/external.js +503 -0
  57. package/dist/cli/src/publish/cloudflare-init.d.ts +12 -0
  58. package/dist/cli/src/publish/cloudflare-init.js +101 -0
  59. package/dist/cli/src/publish/config.d.ts +28 -0
  60. package/dist/cli/src/publish/config.js +178 -0
  61. package/dist/cli/src/publish/options.d.ts +13 -0
  62. package/dist/cli/src/publish/options.js +78 -0
  63. package/dist/cli/src/publish/vercel-init.d.ts +9 -0
  64. package/dist/cli/src/publish/vercel-init.js +52 -0
  65. package/dist/cli/src/shared/json.d.ts +4 -0
  66. package/dist/cli/src/shared/json.js +56 -0
  67. package/dist/cli/src/shared/object.d.ts +2 -0
  68. package/dist/cli/src/shared/object.js +3 -0
  69. package/dist/cli/src/shared/package-manager.d.ts +11 -0
  70. package/dist/cli/src/shared/package-manager.js +39 -0
  71. package/dist/cli/src/shared/path.d.ts +4 -0
  72. package/dist/cli/src/shared/path.js +40 -0
  73. package/dist/cli/src/shared/process.d.ts +7 -0
  74. package/dist/cli/src/shared/process.js +12 -0
  75. package/dist/cli/src/shared/project-config.d.ts +2 -0
  76. package/dist/cli/src/shared/project-config.js +26 -0
  77. package/dist/cli/src/site/dev.d.ts +10 -0
  78. package/dist/cli/src/site/dev.js +126 -0
  79. package/dist/cli/src/site/extension.d.ts +8 -0
  80. package/dist/cli/src/site/extension.js +113 -0
  81. package/dist/cli/src/site/folder-icons.d.ts +46 -0
  82. package/dist/cli/src/site/folder-icons.js +86 -0
  83. package/dist/cli/src/site/hot-viewer.d.ts +2 -0
  84. package/dist/cli/src/site/hot-viewer.js +231 -0
  85. package/dist/cli/src/site/kinds.d.ts +1 -0
  86. package/dist/cli/src/site/kinds.js +1 -0
  87. package/dist/cli/src/site/mail.d.ts +1 -0
  88. package/dist/cli/src/site/mail.js +10 -0
  89. package/dist/cli/src/site/renderers.d.ts +61 -0
  90. package/dist/cli/src/site/renderers.js +219 -0
  91. package/dist/cli/src/site/server-plugins.d.ts +54 -0
  92. package/dist/cli/src/site/server-plugins.js +1 -0
  93. package/dist/cli/src/site/viewer.d.ts +36 -0
  94. package/dist/cli/src/site/viewer.js +352 -0
  95. package/dist/cli/src/site/vitepress.d.ts +1 -0
  96. package/dist/cli/src/site/vitepress.js +1 -0
  97. package/dist/cli/usage.js +1 -0
  98. package/dist/core/api-client.js +75 -44
  99. package/dist/core/command.js +6 -3
  100. package/dist/core/core-folders.js +38280 -33
  101. package/dist/core/init.js +59 -4
  102. package/dist/core/runtime.js +57163 -41853
  103. package/dist/package/preview.js +40589 -17894
  104. package/dist/plugins/external.d.ts +36 -0
  105. package/dist/plugins/external.js +503 -0
  106. package/dist/site/server-plugins.js +394 -59
  107. package/dist/site/viewer.js +18 -5
  108. package/kernel/apps/web/.env.example +11 -0
  109. package/kernel/apps/web/components.json +20 -0
  110. package/kernel/apps/web/eslint.config.mjs +60 -0
  111. package/kernel/apps/web/index.html +17 -0
  112. package/kernel/apps/web/package.json +79 -0
  113. package/kernel/apps/web/public/favicon.svg +6 -0
  114. package/kernel/apps/web/public/providers/claude.svg +1 -0
  115. package/kernel/apps/web/public/providers/codex.svg +1 -0
  116. package/kernel/apps/web/public/providers/cursor.svg +1 -0
  117. package/kernel/apps/web/public/providers/opencode.svg +1 -0
  118. package/kernel/apps/web/public/providers/pi.svg +1 -0
  119. package/kernel/apps/web/server/acp/index.ts +1 -0
  120. package/kernel/apps/web/server/acp/live-agent-connection.ts +1 -0
  121. package/kernel/apps/web/server/acp/process-manager.ts +1 -0
  122. package/kernel/apps/web/server/acp/registry.ts +1 -0
  123. package/kernel/apps/web/server/acp/sdk.ts +1 -0
  124. package/kernel/apps/web/server/acp/transport.ts +1 -0
  125. package/kernel/apps/web/server/acp/types.ts +1 -0
  126. package/kernel/apps/web/server/acp-live-plugin.ts +30 -0
  127. package/kernel/apps/web/server/api/document-edit.ts +1 -0
  128. package/kernel/apps/web/server/api/open-path.ts +1 -0
  129. package/kernel/apps/web/server/core-plugin.ts +49 -0
  130. package/kernel/apps/web/server/folder-favicon.ts +1 -0
  131. package/kernel/apps/web/server/folder-icons.ts +1 -0
  132. package/kernel/apps/web/server/folder-metadata-plugin.ts +31 -0
  133. package/kernel/apps/web/server/plugins.ts +1 -0
  134. package/kernel/apps/web/server/preview-kinds.ts +1 -0
  135. package/kernel/apps/web/src/ai-input.tsx +62 -0
  136. package/kernel/apps/web/src/annotations.tsx +430 -0
  137. package/kernel/apps/web/src/api/client.ts +3 -0
  138. package/kernel/apps/web/src/api/errors.ts +1 -0
  139. package/kernel/apps/web/src/api/events.ts +42 -0
  140. package/kernel/apps/web/src/app.css +332 -0
  141. package/kernel/apps/web/src/app.tsx +667 -0
  142. package/kernel/apps/web/src/ask-draft.ts +164 -0
  143. package/kernel/apps/web/src/ask-tray.tsx +256 -0
  144. package/kernel/apps/web/src/comment-editor.tsx +93 -0
  145. package/kernel/apps/web/src/comment-form.tsx +162 -0
  146. package/kernel/apps/web/src/copy-path.ts +18 -0
  147. package/kernel/apps/web/src/deferred-ask-tray.tsx +20 -0
  148. package/kernel/apps/web/src/document-url.ts +46 -0
  149. package/kernel/apps/web/src/documents-url.ts +23 -0
  150. package/kernel/apps/web/src/dropped-folder.ts +64 -0
  151. package/kernel/apps/web/src/external-plugins.ts +3 -0
  152. package/kernel/apps/web/src/file-viewer.tsx +171 -0
  153. package/kernel/apps/web/src/folder-filter-icons.tsx +39 -0
  154. package/kernel/apps/web/src/folder-metadata.ts +76 -0
  155. package/kernel/apps/web/src/folder-plugin-view.tsx +87 -0
  156. package/kernel/apps/web/src/folder-query-cache.ts +66 -0
  157. package/kernel/apps/web/src/host-adapters.ts +209 -0
  158. package/kernel/apps/web/src/host-bridge.ts +214 -0
  159. package/kernel/apps/web/src/lib/entity-folder.ts +2 -0
  160. package/kernel/apps/web/src/linked-session-header.tsx +43 -0
  161. package/kernel/apps/web/src/live-session-controls.tsx +326 -0
  162. package/kernel/apps/web/src/local-source.ts +32 -0
  163. package/kernel/apps/web/src/main.tsx +24 -0
  164. package/kernel/apps/web/src/markdown-page.tsx +444 -0
  165. package/kernel/apps/web/src/notes-page.tsx +103 -0
  166. package/kernel/apps/web/src/plugins.ts +53 -0
  167. package/kernel/apps/web/src/project-search-dialog.tsx +257 -0
  168. package/kernel/apps/web/src/project-search.ts +18 -0
  169. package/kernel/apps/web/src/query-client.ts +4 -0
  170. package/kernel/apps/web/src/rehype-source-lines.ts +22 -0
  171. package/kernel/apps/web/src/routes/document.tsx +1 -0
  172. package/kernel/apps/web/src/routes/entities.tsx +277 -0
  173. package/kernel/apps/web/src/routes/search.tsx +60 -0
  174. package/kernel/apps/web/src/selection-context.ts +68 -0
  175. package/kernel/apps/web/src/selection-input.tsx +58 -0
  176. package/kernel/apps/web/src/selection-popup.tsx +155 -0
  177. package/kernel/apps/web/src/session-transcript-page.tsx +152 -0
  178. package/kernel/apps/web/src/use-annotations.ts +162 -0
  179. package/kernel/apps/web/src/use-ask-ai.ts +26 -0
  180. package/kernel/apps/web/src/use-ask-draft.ts +27 -0
  181. package/kernel/apps/web/src/use-document.ts +37 -0
  182. package/kernel/apps/web/src/use-folder-notes.ts +49 -0
  183. package/kernel/apps/web/src/use-linked-session.ts +33 -0
  184. package/kernel/apps/web/src/view-context.tsx +69 -0
  185. package/kernel/apps/web/src/view-header.tsx +66 -0
  186. package/kernel/apps/web/src/viewer-capabilities.ts +33 -0
  187. package/kernel/apps/web/src/viewer-route.ts +1 -0
  188. package/kernel/apps/web/src/viewport-height.ts +33 -0
  189. package/kernel/apps/web/tsconfig.json +24 -0
  190. package/kernel/apps/web/vite.config.ts +252 -0
  191. package/kernel/packages/agents/eslint.config.js +10 -0
  192. package/kernel/packages/agents/package.json +75 -0
  193. package/kernel/packages/agents/src/agent-card.tsx +334 -0
  194. package/kernel/packages/agents/src/client.tsx +13 -0
  195. package/kernel/packages/agents/src/index.ts +18 -0
  196. package/kernel/packages/agents/src/manifest.ts +7 -0
  197. package/kernel/packages/agents/src/node.ts +447 -0
  198. package/kernel/packages/agents/src/profiles.ts +137 -0
  199. package/kernel/packages/agents/src/resolve.ts +69 -0
  200. package/kernel/packages/agents/src/server.ts +60 -0
  201. package/kernel/packages/agents/src/types.ts +82 -0
  202. package/kernel/packages/agents/src/viewer.tsx +370 -0
  203. package/kernel/packages/agents/test/profiles.test.mjs +88 -0
  204. package/kernel/packages/agents/test/resolve.test.mjs +729 -0
  205. package/kernel/packages/agents/tsconfig.json +17 -0
  206. package/kernel/packages/api/README.md +73 -0
  207. package/kernel/packages/api/openapi.json +3368 -0
  208. package/kernel/packages/api/package.json +41 -0
  209. package/kernel/packages/api/src/client/errors.ts +1 -0
  210. package/kernel/packages/api/src/client/index.ts +2 -0
  211. package/kernel/packages/api/src/contracts/schemas.ts +277 -0
  212. package/kernel/packages/api/src/contracts.ts +20 -0
  213. package/kernel/packages/api/src/index.ts +34 -0
  214. package/kernel/packages/api/src/server/acp/index.ts +35 -0
  215. package/kernel/packages/api/src/server/acp/live-agent-connection.ts +44 -0
  216. package/kernel/packages/api/src/server/acp/process-manager.ts +291 -0
  217. package/kernel/packages/api/src/server/acp/registry.ts +140 -0
  218. package/kernel/packages/api/src/server/acp/sdk.ts +15 -0
  219. package/kernel/packages/api/src/server/acp/transport.ts +115 -0
  220. package/kernel/packages/api/src/server/acp/types.ts +89 -0
  221. package/kernel/packages/api/src/server/acp-live-plugin.ts +423 -0
  222. package/kernel/packages/api/src/server/api/create-agent-file.ts +46 -0
  223. package/kernel/packages/api/src/server/api/document-edit.ts +125 -0
  224. package/kernel/packages/api/src/server/api/open-path.ts +40 -0
  225. package/kernel/packages/api/src/server/contracts.ts +85 -0
  226. package/kernel/packages/api/src/server/entity-folder.ts +353 -0
  227. package/kernel/packages/api/src/server/folder-favicon.ts +17 -0
  228. package/kernel/packages/api/src/server/folder-icons.ts +113 -0
  229. package/kernel/packages/api/src/server/folder-metadata-plugin.ts +1758 -0
  230. package/kernel/packages/api/src/server/host.ts +21 -0
  231. package/kernel/packages/api/src/server/index.ts +197 -0
  232. package/kernel/packages/api/src/server/linked-folder-discovery.ts +158 -0
  233. package/kernel/packages/api/src/server/plugins.ts +205 -0
  234. package/kernel/packages/api/src/server/project-discovery.ts +69 -0
  235. package/kernel/packages/api/src/server/watcher.ts +46 -0
  236. package/kernel/packages/api/src/shared/selection.ts +16 -0
  237. package/kernel/packages/api/src/shared/viewer-route.ts +200 -0
  238. package/kernel/packages/api/test/agents-loading.test.ts +94 -0
  239. package/kernel/packages/api/test/core.test.ts +364 -0
  240. package/kernel/packages/api/test/entity-folder.test.ts +131 -0
  241. package/kernel/packages/api/test/linked-folder-discovery.test.ts +78 -0
  242. package/kernel/packages/api/test/media-endpoint.test.ts +83 -0
  243. package/kernel/packages/api/test/partial-loading.test.ts +43 -0
  244. package/kernel/packages/api/test/project-discovery.test.ts +44 -0
  245. package/kernel/packages/api/tsconfig.json +11 -0
  246. package/kernel/packages/api-client/README.md +72 -0
  247. package/kernel/packages/api-client/package.json +26 -0
  248. package/kernel/packages/api-client/scripts/generate.ts +68 -0
  249. package/kernel/packages/api-client/src/errors.ts +59 -0
  250. package/kernel/packages/api-client/src/generated.d.ts +1248 -0
  251. package/kernel/packages/api-client/src/index.ts +206 -0
  252. package/kernel/packages/api-client/src/responses.ts +19 -0
  253. package/kernel/packages/api-client/test/client.test.ts +143 -0
  254. package/kernel/packages/api-client/tsconfig.json +12 -0
  255. package/kernel/packages/folder-plugin/eslint.config.js +10 -0
  256. package/kernel/packages/folder-plugin/package.json +50 -0
  257. package/kernel/packages/folder-plugin/src/client.ts +73 -0
  258. package/kernel/packages/folder-plugin/src/endpoint.ts +273 -0
  259. package/kernel/packages/folder-plugin/src/index.ts +15 -0
  260. package/kernel/packages/folder-plugin/src/server.ts +78 -0
  261. package/kernel/packages/folder-plugin/src/subpath.ts +34 -0
  262. package/kernel/packages/folder-plugin/src/types.ts +86 -0
  263. package/kernel/packages/folder-plugin/src/validation.ts +56 -0
  264. package/kernel/packages/folder-plugin/test/contract.test.mjs +133 -0
  265. package/kernel/packages/folder-plugin/tsconfig.json +17 -0
  266. package/kernel/packages/kinds/package.json +24 -0
  267. package/kernel/packages/kinds/src/kinds.ts +172 -0
  268. package/kernel/packages/markdown/README.md +40 -0
  269. package/kernel/packages/markdown/explorer.css +1 -0
  270. package/kernel/packages/markdown/package.json +30 -0
  271. package/kernel/packages/markdown/src/documents.ts +1 -0
  272. package/kernel/packages/markdown/src/explorer.ts +1 -0
  273. package/kernel/packages/markdown/src/index.ts +2 -0
  274. package/kernel/packages/markdown/src/metadata.ts +63 -0
  275. package/kernel/packages/markdown/src/node.ts +1 -0
  276. package/kernel/packages/markdown/styles.css +1 -0
  277. package/kernel/packages/notes/SKILL.md +19 -0
  278. package/kernel/packages/notes/eslint.config.js +10 -0
  279. package/kernel/packages/notes/package.json +72 -0
  280. package/kernel/packages/notes/src/client.tsx +12 -0
  281. package/kernel/packages/notes/src/data/ai-input.ts +58 -0
  282. package/kernel/packages/notes/src/data/api.ts +40 -0
  283. package/kernel/packages/notes/src/data/parse.ts +15 -0
  284. package/kernel/packages/notes/src/data/routing.ts +33 -0
  285. package/kernel/packages/notes/src/data/use-folder-notes.ts +49 -0
  286. package/kernel/packages/notes/src/index.ts +2 -0
  287. package/kernel/packages/notes/src/manifest.ts +6 -0
  288. package/kernel/packages/notes/src/pages/notes-page.tsx +79 -0
  289. package/kernel/packages/notes/src/pages/single-note-page.tsx +57 -0
  290. package/kernel/packages/notes/src/server.ts +88 -0
  291. package/kernel/packages/notes/src/ui/ai-composer-controls.tsx +70 -0
  292. package/kernel/packages/notes/src/ui/folder-notes-list.tsx +140 -0
  293. package/kernel/packages/notes/tsconfig.json +16 -0
  294. package/kernel/packages/schemas/ICON-POLICY.md +43 -0
  295. package/kernel/packages/schemas/SKILL.md +185 -0
  296. package/kernel/packages/schemas/eslint.config.js +10 -0
  297. package/kernel/packages/schemas/package.json +81 -0
  298. package/kernel/packages/schemas/src/client.tsx +137 -0
  299. package/kernel/packages/schemas/src/data/config-file.ts +37 -0
  300. package/kernel/packages/schemas/src/data/contract.ts +174 -0
  301. package/kernel/packages/schemas/src/data/favicon.ts +218 -0
  302. package/kernel/packages/schemas/src/data/fields.ts +96 -0
  303. package/kernel/packages/schemas/src/data/icon-image.ts +53 -0
  304. package/kernel/packages/schemas/src/data/icon.ts +97 -0
  305. package/kernel/packages/schemas/src/data/load.ts +161 -0
  306. package/kernel/packages/schemas/src/data/params.ts +103 -0
  307. package/kernel/packages/schemas/src/data/query.ts +33 -0
  308. package/kernel/packages/schemas/src/data/sort.ts +50 -0
  309. package/kernel/packages/schemas/src/data/workspace.ts +101 -0
  310. package/kernel/packages/schemas/src/index.ts +22 -0
  311. package/kernel/packages/schemas/src/manifest.ts +4 -0
  312. package/kernel/packages/schemas/src/node.ts +384 -0
  313. package/kernel/packages/schemas/src/pages/collection.tsx +252 -0
  314. package/kernel/packages/schemas/src/server.ts +208 -0
  315. package/kernel/packages/schemas/src/ui/schema-entity-list.tsx +124 -0
  316. package/kernel/packages/schemas/src/ui/schema-filters.tsx +186 -0
  317. package/kernel/packages/schemas/src/ui/schema-search.tsx +35 -0
  318. package/kernel/packages/schemas/src/ui/use-query-param-filter-setting.tsx +15 -0
  319. package/kernel/packages/schemas/test/contract.test.mjs +26 -0
  320. package/kernel/packages/schemas/test/fields.test.mjs +187 -0
  321. package/kernel/packages/schemas/test/load.test.mjs +12 -0
  322. package/kernel/packages/schemas/test/node.test.mjs +412 -0
  323. package/kernel/packages/schemas/test/query.test.mjs +134 -0
  324. package/kernel/packages/schemas/test/workspace.test.mjs +86 -0
  325. package/kernel/packages/schemas/tsconfig.json +17 -0
  326. package/kernel/packages/session-finding/package.json +33 -0
  327. package/kernel/packages/session-finding/src/index.ts +120 -0
  328. package/kernel/packages/session-finding/test/list-sessions.test.mjs +139 -0
  329. package/kernel/packages/session-finding/tsconfig.json +12 -0
  330. package/kernel/packages/ui/LICENSE +21 -0
  331. package/kernel/packages/ui/components.json +20 -0
  332. package/kernel/packages/ui/eslint.config.js +8 -0
  333. package/kernel/packages/ui/package.json +106 -0
  334. package/kernel/packages/ui/src/chat/file-link.ts +178 -0
  335. package/kernel/packages/ui/src/chat/index.ts +18 -0
  336. package/kernel/packages/ui/src/chat/transcript.tsx +348 -0
  337. package/kernel/packages/ui/src/chat/turns.ts +76 -0
  338. package/kernel/packages/ui/src/chat/types.ts +23 -0
  339. package/kernel/packages/ui/src/chat/use-overflowing.ts +56 -0
  340. package/kernel/packages/ui/src/components/accordion.tsx +74 -0
  341. package/kernel/packages/ui/src/components/alert-dialog.tsx +164 -0
  342. package/kernel/packages/ui/src/components/alert.tsx +68 -0
  343. package/kernel/packages/ui/src/components/app-breadcrumbs.tsx +170 -0
  344. package/kernel/packages/ui/src/components/app-header.tsx +125 -0
  345. package/kernel/packages/ui/src/components/app-options.tsx +87 -0
  346. package/kernel/packages/ui/src/components/app-view-header.tsx +34 -0
  347. package/kernel/packages/ui/src/components/aspect-ratio.tsx +11 -0
  348. package/kernel/packages/ui/src/components/avatar.tsx +53 -0
  349. package/kernel/packages/ui/src/components/badge.tsx +47 -0
  350. package/kernel/packages/ui/src/components/base-dialog.tsx +3 -0
  351. package/kernel/packages/ui/src/components/base-tabs.tsx +63 -0
  352. package/kernel/packages/ui/src/components/breadcrumb.tsx +110 -0
  353. package/kernel/packages/ui/src/components/button-group.tsx +86 -0
  354. package/kernel/packages/ui/src/components/button.tsx +65 -0
  355. package/kernel/packages/ui/src/components/calendar.tsx +240 -0
  356. package/kernel/packages/ui/src/components/card.tsx +95 -0
  357. package/kernel/packages/ui/src/components/carousel.tsx +240 -0
  358. package/kernel/packages/ui/src/components/chart.tsx +375 -0
  359. package/kernel/packages/ui/src/components/checkbox.tsx +39 -0
  360. package/kernel/packages/ui/src/components/collapsible.tsx +33 -0
  361. package/kernel/packages/ui/src/components/collection-icon.tsx +28 -0
  362. package/kernel/packages/ui/src/components/command.tsx +205 -0
  363. package/kernel/packages/ui/src/components/content-issues.tsx +63 -0
  364. package/kernel/packages/ui/src/components/context-menu.tsx +298 -0
  365. package/kernel/packages/ui/src/components/copy-context.tsx +134 -0
  366. package/kernel/packages/ui/src/components/dialog.tsx +157 -0
  367. package/kernel/packages/ui/src/components/drawer.tsx +162 -0
  368. package/kernel/packages/ui/src/components/dropdown-menu.tsx +303 -0
  369. package/kernel/packages/ui/src/components/empty.tsx +108 -0
  370. package/kernel/packages/ui/src/components/field.tsx +260 -0
  371. package/kernel/packages/ui/src/components/file-preview.tsx +152 -0
  372. package/kernel/packages/ui/src/components/file-renderer.tsx +466 -0
  373. package/kernel/packages/ui/src/components/filter-chip-panel.tsx +157 -0
  374. package/kernel/packages/ui/src/components/filter-select.tsx +127 -0
  375. package/kernel/packages/ui/src/components/folder-activity.tsx +646 -0
  376. package/kernel/packages/ui/src/components/folder-file-list.tsx +58 -0
  377. package/kernel/packages/ui/src/components/folder-filter-bar.tsx +191 -0
  378. package/kernel/packages/ui/src/components/folder-image.tsx +18 -0
  379. package/kernel/packages/ui/src/components/folder-landing.tsx +70 -0
  380. package/kernel/packages/ui/src/components/folder-list.tsx +140 -0
  381. package/kernel/packages/ui/src/components/folder-metadata.tsx +107 -0
  382. package/kernel/packages/ui/src/components/folder-mobile-bar.tsx +60 -0
  383. package/kernel/packages/ui/src/components/folder-project-list.tsx +133 -0
  384. package/kernel/packages/ui/src/components/folder-session-list.tsx +113 -0
  385. package/kernel/packages/ui/src/components/folder-session-page.tsx +126 -0
  386. package/kernel/packages/ui/src/components/folder-sidebar.tsx +52 -0
  387. package/kernel/packages/ui/src/components/folder-skill-list.tsx +62 -0
  388. package/kernel/packages/ui/src/components/folder-tabs.tsx +156 -0
  389. package/kernel/packages/ui/src/components/form.tsx +167 -0
  390. package/kernel/packages/ui/src/components/hover-card.tsx +52 -0
  391. package/kernel/packages/ui/src/components/icons.tsx +34 -0
  392. package/kernel/packages/ui/src/components/input-group.tsx +184 -0
  393. package/kernel/packages/ui/src/components/input-otp.tsx +90 -0
  394. package/kernel/packages/ui/src/components/input.tsx +29 -0
  395. package/kernel/packages/ui/src/components/item.tsx +195 -0
  396. package/kernel/packages/ui/src/components/kbd.tsx +32 -0
  397. package/kernel/packages/ui/src/components/label.tsx +27 -0
  398. package/kernel/packages/ui/src/components/link.tsx +45 -0
  399. package/kernel/packages/ui/src/components/live-tool-call.tsx +193 -0
  400. package/kernel/packages/ui/src/components/menubar.tsx +323 -0
  401. package/kernel/packages/ui/src/components/navigation-menu.tsx +210 -0
  402. package/kernel/packages/ui/src/components/note-card.tsx +149 -0
  403. package/kernel/packages/ui/src/components/pagination.tsx +128 -0
  404. package/kernel/packages/ui/src/components/popover.tsx +56 -0
  405. package/kernel/packages/ui/src/components/progress.tsx +31 -0
  406. package/kernel/packages/ui/src/components/radio-group.tsx +54 -0
  407. package/kernel/packages/ui/src/components/scroll-area.tsx +61 -0
  408. package/kernel/packages/ui/src/components/select.tsx +219 -0
  409. package/kernel/packages/ui/src/components/separator.tsx +30 -0
  410. package/kernel/packages/ui/src/components/session-icon.tsx +124 -0
  411. package/kernel/packages/ui/src/components/sheet.tsx +157 -0
  412. package/kernel/packages/ui/src/components/sidebar.tsx +789 -0
  413. package/kernel/packages/ui/src/components/skeleton.tsx +13 -0
  414. package/kernel/packages/ui/src/components/slider.tsx +73 -0
  415. package/kernel/packages/ui/src/components/sonner.tsx +41 -0
  416. package/kernel/packages/ui/src/components/spinner.tsx +16 -0
  417. package/kernel/packages/ui/src/components/switch.tsx +40 -0
  418. package/kernel/packages/ui/src/components/table.tsx +120 -0
  419. package/kernel/packages/ui/src/components/tabs.tsx +78 -0
  420. package/kernel/packages/ui/src/components/textarea.tsx +25 -0
  421. package/kernel/packages/ui/src/components/toggle-group.tsx +87 -0
  422. package/kernel/packages/ui/src/components/toggle.tsx +48 -0
  423. package/kernel/packages/ui/src/components/tooltip.tsx +71 -0
  424. package/kernel/packages/ui/src/components/viewer-options.tsx +166 -0
  425. package/kernel/packages/ui/src/hooks/use-folder-filter.ts +103 -0
  426. package/kernel/packages/ui/src/hooks/use-mobile.ts +19 -0
  427. package/kernel/packages/ui/src/index.ts +13 -0
  428. package/kernel/packages/ui/src/lib/document-extensions.ts +83 -0
  429. package/kernel/packages/ui/src/lib/folder-activity.ts +143 -0
  430. package/kernel/packages/ui/src/lib/folder-filter.ts +284 -0
  431. package/kernel/packages/ui/src/lib/live-tool-call.tsx +109 -0
  432. package/kernel/packages/ui/src/lib/media-urls.ts +176 -0
  433. package/kernel/packages/ui/src/lib/obsidian-links.ts +120 -0
  434. package/kernel/packages/ui/src/lib/source-components.tsx +65 -0
  435. package/kernel/packages/ui/src/lib/utils.tsx +7 -0
  436. package/kernel/packages/ui/src/pages/entity-detail-page.tsx +82 -0
  437. package/kernel/packages/ui/src/pages/entity-list-page.tsx +50 -0
  438. package/kernel/packages/ui/src/pages/entity-page.tsx +69 -0
  439. package/kernel/packages/ui/src/styles/folder-activity.css +2151 -0
  440. package/kernel/packages/ui/test/copy-context.test.mjs +48 -0
  441. package/kernel/packages/ui/test/folder-filter.test.mjs +484 -0
  442. package/kernel/packages/ui/tsconfig.json +15 -0
  443. package/kernel/plugins/calendar/SKILL.md +173 -0
  444. package/kernel/plugins/calendar/eslint.config.js +10 -0
  445. package/kernel/plugins/calendar/package.json +73 -0
  446. package/kernel/plugins/calendar/schema.json +137 -0
  447. package/kernel/plugins/calendar/src/calendar.tsx +328 -0
  448. package/kernel/plugins/calendar/src/client.tsx +139 -0
  449. package/kernel/plugins/calendar/src/context.ts +48 -0
  450. package/kernel/plugins/calendar/src/copy-button.tsx +66 -0
  451. package/kernel/plugins/calendar/src/event-dialog.tsx +270 -0
  452. package/kernel/plugins/calendar/src/index.ts +4 -0
  453. package/kernel/plugins/calendar/src/manifest.ts +7 -0
  454. package/kernel/plugins/calendar/src/parse.ts +610 -0
  455. package/kernel/plugins/calendar/src/server.ts +160 -0
  456. package/kernel/plugins/calendar/src/utils.ts +80 -0
  457. package/kernel/plugins/calendar/src/views.tsx +418 -0
  458. package/kernel/plugins/calendar/test/context.test.mjs +60 -0
  459. package/kernel/plugins/calendar/test/package.test.mjs +43 -0
  460. package/kernel/plugins/calendar/test/parse.test.mjs +392 -0
  461. package/kernel/plugins/calendar/test/server.test.mjs +126 -0
  462. package/kernel/plugins/calendar/tsconfig.json +17 -0
  463. package/kernel/plugins/mail/SKILL.md +97 -0
  464. package/kernel/plugins/mail/eslint.config.js +10 -0
  465. package/kernel/plugins/mail/package.json +79 -0
  466. package/kernel/plugins/mail/src/api.ts +359 -0
  467. package/kernel/plugins/mail/src/bun-ffi.d.ts +14 -0
  468. package/kernel/plugins/mail/src/client.tsx +14 -0
  469. package/kernel/plugins/mail/src/flock.ts +137 -0
  470. package/kernel/plugins/mail/src/folders.ts +37 -0
  471. package/kernel/plugins/mail/src/history.ts +485 -0
  472. package/kernel/plugins/mail/src/index.ts +3 -0
  473. package/kernel/plugins/mail/src/mail-card.tsx +123 -0
  474. package/kernel/plugins/mail/src/mail-conversation.tsx +153 -0
  475. package/kernel/plugins/mail/src/mail-detail-page.tsx +467 -0
  476. package/kernel/plugins/mail/src/mail-hooks.ts +252 -0
  477. package/kernel/plugins/mail/src/mail-page.tsx +109 -0
  478. package/kernel/plugins/mail/src/mail-request.ts +78 -0
  479. package/kernel/plugins/mail/src/mail-send-box.tsx +175 -0
  480. package/kernel/plugins/mail/src/mailos.ts +723 -0
  481. package/kernel/plugins/mail/src/manifest.ts +7 -0
  482. package/kernel/plugins/mail/src/node.ts +171 -0
  483. package/kernel/plugins/mail/src/parse.ts +139 -0
  484. package/kernel/plugins/mail/src/server.ts +125 -0
  485. package/kernel/plugins/mail/src/types.ts +10 -0
  486. package/kernel/plugins/mail/src/viewer.tsx +147 -0
  487. package/kernel/plugins/mail/test/flock.test.mjs +156 -0
  488. package/kernel/plugins/mail/test/folders.test.mjs +138 -0
  489. package/kernel/plugins/mail/test/history.test.mjs +460 -0
  490. package/kernel/plugins/mail/test/mailos.test.mjs +752 -0
  491. package/kernel/plugins/mail/test/node.test.mjs +207 -0
  492. package/kernel/plugins/mail/test/package.test.mjs +54 -0
  493. package/kernel/plugins/mail/test/parse.test.mjs +32 -0
  494. package/kernel/plugins/mail/test/server.test.mjs +116 -0
  495. package/kernel/plugins/mail/test/viewer.test.mjs +192 -0
  496. package/kernel/plugins/mail/tsconfig.json +17 -0
  497. package/kernel/plugins/projects/SKILL.md +73 -0
  498. package/kernel/plugins/projects/eslint.config.js +10 -0
  499. package/kernel/plugins/projects/package.json +70 -0
  500. package/kernel/plugins/projects/src/client.tsx +17 -0
  501. package/kernel/plugins/projects/src/data/model.ts +129 -0
  502. package/kernel/plugins/projects/src/index.ts +17 -0
  503. package/kernel/plugins/projects/src/manifest.ts +7 -0
  504. package/kernel/plugins/projects/src/project-context.ts +41 -0
  505. package/kernel/plugins/projects/src/server.ts +276 -0
  506. package/kernel/plugins/projects/src/ui/project-card.tsx +61 -0
  507. package/kernel/plugins/projects/src/ui/projects-page.tsx +102 -0
  508. package/kernel/plugins/projects/test/package.test.mjs +51 -0
  509. package/kernel/plugins/projects/tsconfig.json +17 -0
  510. package/kernel/plugins/tasks/SKILL.md +341 -0
  511. package/kernel/plugins/tasks/eslint.config.js +10 -0
  512. package/kernel/plugins/tasks/package.json +74 -0
  513. package/kernel/plugins/tasks/schema.json +939 -0
  514. package/kernel/plugins/tasks/src/api.ts +212 -0
  515. package/kernel/plugins/tasks/src/client.tsx +23 -0
  516. package/kernel/plugins/tasks/src/data/parse.ts +544 -0
  517. package/kernel/plugins/tasks/src/data/task-id.ts +56 -0
  518. package/kernel/plugins/tasks/src/data/todo-model.ts +795 -0
  519. package/kernel/plugins/tasks/src/index.ts +34 -0
  520. package/kernel/plugins/tasks/src/manifest.ts +7 -0
  521. package/kernel/plugins/tasks/src/pages/task-detail.tsx +48 -0
  522. package/kernel/plugins/tasks/src/pages/task-list.tsx +88 -0
  523. package/kernel/plugins/tasks/src/server.ts +447 -0
  524. package/kernel/plugins/tasks/src/styles.css +9 -0
  525. package/kernel/plugins/tasks/src/ui/compact-todo-list.tsx +372 -0
  526. package/kernel/plugins/tasks/src/ui/error-details.tsx +78 -0
  527. package/kernel/plugins/tasks/src/ui/task-page.tsx +392 -0
  528. package/kernel/plugins/tasks/src/ui/todo-agent-filter.tsx +36 -0
  529. package/kernel/plugins/tasks/src/ui/todo-filter-bar.tsx +66 -0
  530. package/kernel/plugins/tasks/src/ui/todo-item.tsx +494 -0
  531. package/kernel/plugins/tasks/src/ui/todo-status-filter.tsx +60 -0
  532. package/kernel/plugins/tasks/src/ui/todo-tag-filter.tsx +48 -0
  533. package/kernel/plugins/tasks/src/ui/todo-warnings.tsx +106 -0
  534. package/kernel/plugins/tasks/test/api.test.mjs +99 -0
  535. package/kernel/plugins/tasks/test/folder-sources.test.mjs +46 -0
  536. package/kernel/plugins/tasks/test/package.test.mjs +54 -0
  537. package/kernel/plugins/tasks/test/parse.test.mjs +225 -0
  538. package/kernel/plugins/tasks/test/server.test.mjs +386 -0
  539. package/kernel/plugins/tasks/tsconfig.json +17 -0
  540. package/node_modules/@agentclientprotocol/sdk/LICENSE +191 -0
  541. package/node_modules/@agentclientprotocol/sdk/README.md +70 -0
  542. package/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +1835 -0
  543. package/node_modules/@agentclientprotocol/sdk/dist/acp.js +1885 -0
  544. package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -0
  545. package/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +1 -0
  546. package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +5036 -0
  547. package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +1 -0
  548. package/node_modules/@agentclientprotocol/sdk/dist/connection.d.ts +82 -0
  549. package/node_modules/@agentclientprotocol/sdk/dist/connection.js +428 -0
  550. package/node_modules/@agentclientprotocol/sdk/dist/connection.js.map +1 -0
  551. package/node_modules/@agentclientprotocol/sdk/dist/connection.test.d.ts +1 -0
  552. package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js +470 -0
  553. package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js.map +1 -0
  554. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.d.ts +26 -0
  555. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js +96 -0
  556. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js.map +1 -0
  557. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.d.ts +1 -0
  558. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js +77 -0
  559. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js.map +1 -0
  560. package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +2 -0
  561. package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js +232 -0
  562. package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js.map +1 -0
  563. package/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +2 -0
  564. package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js +132 -0
  565. package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js.map +1 -0
  566. package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.d.ts +9 -0
  567. package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js +221 -0
  568. package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js.map +1 -0
  569. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.d.ts +2 -0
  570. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js +86 -0
  571. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js.map +1 -0
  572. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.d.ts +2 -0
  573. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js +112 -0
  574. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js.map +1 -0
  575. package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.d.ts +2 -0
  576. package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js +88 -0
  577. package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js.map +1 -0
  578. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.d.ts +33 -0
  579. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js +435 -0
  580. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js.map +1 -0
  581. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.d.ts +1 -0
  582. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js +1380 -0
  583. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js.map +1 -0
  584. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +603 -0
  585. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +1064 -0
  586. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +1 -0
  587. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.d.ts +1 -0
  588. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js +851 -0
  589. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js.map +1 -0
  590. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.d.ts +22 -0
  591. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js +64 -0
  592. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js.map +1 -0
  593. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.d.ts +1 -0
  594. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js +45 -0
  595. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js.map +1 -0
  596. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.d.ts +17 -0
  597. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js +426 -0
  598. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js.map +1 -0
  599. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.d.ts +1 -0
  600. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js +499 -0
  601. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js.map +1 -0
  602. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.d.ts +37 -0
  603. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js +474 -0
  604. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js.map +1 -0
  605. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.d.ts +1 -0
  606. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js +535 -0
  607. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js.map +1 -0
  608. package/node_modules/@agentclientprotocol/sdk/dist/protocol.d.ts +11 -0
  609. package/node_modules/@agentclientprotocol/sdk/dist/protocol.js +57 -0
  610. package/node_modules/@agentclientprotocol/sdk/dist/protocol.js.map +1 -0
  611. package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.d.ts +1 -0
  612. package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js +73 -0
  613. package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js.map +1 -0
  614. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +199 -0
  615. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js +211 -0
  616. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js.map +1 -0
  617. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +51 -0
  618. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +52 -0
  619. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -0
  620. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +6118 -0
  621. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js +3 -0
  622. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js.map +1 -0
  623. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +14160 -0
  624. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +3066 -0
  625. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -0
  626. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +30 -0
  627. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js +98 -0
  628. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js.map +1 -0
  629. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.d.ts +1 -0
  630. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js +93 -0
  631. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js.map +1 -0
  632. package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.d.ts +1 -0
  633. package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js +261 -0
  634. package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js.map +1 -0
  635. package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.d.ts +1 -0
  636. package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js +490 -0
  637. package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js.map +1 -0
  638. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.d.ts +2 -0
  639. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js +104 -0
  640. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js.map +1 -0
  641. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.d.ts +1 -0
  642. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js +52 -0
  643. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js.map +1 -0
  644. package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.d.ts +1 -0
  645. package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js +946 -0
  646. package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js.map +1 -0
  647. package/node_modules/@agentclientprotocol/sdk/dist/server.d.ts +81 -0
  648. package/node_modules/@agentclientprotocol/sdk/dist/server.js +380 -0
  649. package/node_modules/@agentclientprotocol/sdk/dist/server.js.map +1 -0
  650. package/node_modules/@agentclientprotocol/sdk/dist/server.test.d.ts +1 -0
  651. package/node_modules/@agentclientprotocol/sdk/dist/server.test.js +1082 -0
  652. package/node_modules/@agentclientprotocol/sdk/dist/server.test.js.map +1 -0
  653. package/node_modules/@agentclientprotocol/sdk/dist/sse.d.ts +4 -0
  654. package/node_modules/@agentclientprotocol/sdk/dist/sse.js +91 -0
  655. package/node_modules/@agentclientprotocol/sdk/dist/sse.js.map +1 -0
  656. package/node_modules/@agentclientprotocol/sdk/dist/sse.test.d.ts +1 -0
  657. package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js +126 -0
  658. package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js.map +1 -0
  659. package/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +35 -0
  660. package/node_modules/@agentclientprotocol/sdk/dist/stream.js +106 -0
  661. package/node_modules/@agentclientprotocol/sdk/dist/stream.js.map +1 -0
  662. package/node_modules/@agentclientprotocol/sdk/dist/stream.test.d.ts +1 -0
  663. package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js +206 -0
  664. package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js.map +1 -0
  665. package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.d.ts +8 -0
  666. package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js +51 -0
  667. package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js.map +1 -0
  668. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.d.ts +24 -0
  669. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js +163 -0
  670. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js.map +1 -0
  671. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.d.ts +9 -0
  672. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js +74 -0
  673. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js.map +1 -0
  674. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +806 -0
  675. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +1183 -0
  676. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +1 -0
  677. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.d.ts +1 -0
  678. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js +512 -0
  679. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js.map +1 -0
  680. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +954 -0
  681. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +1035 -0
  682. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +1 -0
  683. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +42 -0
  684. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js +43 -0
  685. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js.map +1 -0
  686. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +6146 -0
  687. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js +3 -0
  688. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js.map +1 -0
  689. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +30552 -0
  690. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +3204 -0
  691. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +1 -0
  692. package/node_modules/@agentclientprotocol/sdk/dist/ws-server.d.ts +14 -0
  693. package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js +358 -0
  694. package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js.map +1 -0
  695. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.d.ts +54 -0
  696. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js +246 -0
  697. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js.map +1 -0
  698. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.d.ts +1 -0
  699. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js +833 -0
  700. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js.map +1 -0
  701. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.d.ts +13 -0
  702. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js +78 -0
  703. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js.map +1 -0
  704. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.d.ts +1 -0
  705. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js +42 -0
  706. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js.map +1 -0
  707. package/node_modules/@agentclientprotocol/sdk/package.json +105 -0
  708. package/node_modules/@agentclientprotocol/sdk/schema/schema.json +8819 -0
  709. package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +10098 -0
  710. package/package.json +52 -6
  711. package/web/assets/{abnfDiagram-VRR7QNED-Nfq-O04D.js → abnfDiagram-VRR7QNED-Bgfb1nEB.js} +1 -1
  712. package/web/assets/app-DoGr2Zi7.js +2 -0
  713. package/web/assets/app-options-D-RJiQ-X.js +25 -0
  714. package/web/assets/app-view-header-BLvLq02T.js +1 -0
  715. package/web/assets/arc-Dk_KI36B.js +1 -0
  716. package/web/assets/{architectureDiagram-ZJ3FMSHR-qhRwPNcQ.js → architectureDiagram-ZJ3FMSHR-NR_KhRCf.js} +1 -1
  717. package/web/assets/ask-tray-TzeTcO6-.js +14 -0
  718. package/web/assets/{blockDiagram-677ZJIJ3-C56P3bGu.js → blockDiagram-677ZJIJ3-CkLkwx9C.js} +1 -1
  719. package/web/assets/button-C6arH7zt.js +1 -0
  720. package/web/assets/{c4Diagram-LMCZKHZV-Ey1M72zD.js → c4Diagram-LMCZKHZV-CFCUH8e_.js} +1 -1
  721. package/web/assets/channel-uMEjV8qc.js +1 -0
  722. package/web/assets/{chunk-2Q5K7J3B-a6isk9VU.js → chunk-2Q5K7J3B-B_BPLWsW.js} +1 -1
  723. package/web/assets/{chunk-32BRIVSS-uy4kdSLL.js → chunk-32BRIVSS-B1VB1hOy.js} +1 -1
  724. package/web/assets/{chunk-5VM5RSS4-oj2sBFd7.js → chunk-5VM5RSS4-KFcYr8Co.js} +1 -1
  725. package/web/assets/{chunk-EX3LRPZG-Bzl1ukAi.js → chunk-EX3LRPZG-CpBX3kuK.js} +3 -3
  726. package/web/assets/{chunk-JWPE2WC7-sUph7I_t.js → chunk-JWPE2WC7-BPSl40wG.js} +1 -1
  727. package/web/assets/{chunk-MOJQB5TN-C0ERSuVK.js → chunk-MOJQB5TN-D2RcYmoU.js} +1 -1
  728. package/web/assets/{chunk-RYQCIY6F-Dyw1Hfwp.js → chunk-RYQCIY6F-m7Gyn-t3.js} +1 -1
  729. package/web/assets/{chunk-V7JOEXUC-DnSz22rb.js → chunk-V7JOEXUC-TDvdopxS.js} +1 -1
  730. package/web/assets/{chunk-VR4S4FIN-Bp2SNel7.js → chunk-VR4S4FIN-DZTsG51a.js} +1 -1
  731. package/web/assets/{chunk-XXDRQBXY-Dqtar746.js → chunk-XXDRQBXY-Dp0--RE2.js} +1 -1
  732. package/web/assets/classDiagram-OUVF2IWQ-fbZocVor.js +1 -0
  733. package/web/assets/classDiagram-v2-EOCWNBFH-fbZocVor.js +1 -0
  734. package/web/assets/client-C6Nxdfif.js +2 -0
  735. package/web/assets/client-CXYfBko5.js +17 -0
  736. package/web/assets/client-CoKtOq-X.js +7 -0
  737. package/web/assets/client-DyRQz5RU.js +53 -0
  738. package/web/assets/client-OY6HUzuD.js +98 -0
  739. package/web/assets/client-YOYWZIFi.js +34 -0
  740. package/web/assets/client-j2kQmxsO.js +22 -0
  741. package/web/assets/command-BugZBGXE.js +38 -0
  742. package/web/assets/copy-context-C0Uqsp-3.js +1 -0
  743. package/web/assets/{cose-bilkent-JH36ORCC-Dx1VqMjj.js → cose-bilkent-JH36ORCC-CPu3PI8h.js} +1 -1
  744. package/web/assets/{cynefin-VYW2F7L2-SjhCWmIV.js → cynefin-VYW2F7L2-DWxftYAm.js} +1 -1
  745. package/web/assets/{cynefinDiagram-TSTJHNR4-Dvqz2594.js → cynefinDiagram-TSTJHNR4-DsmN2V-p.js} +1 -1
  746. package/web/assets/{dagre-VKFMJZFB-Ju2m2qXt.js → dagre-VKFMJZFB-COEbApyY.js} +1 -1
  747. package/web/assets/{diagram-FQU43EPY-DsHKTt0k.js → diagram-FQU43EPY-0O9WGWKB.js} +1 -1
  748. package/web/assets/{diagram-G47NLZAW-DWHAcLkJ.js → diagram-G47NLZAW-CutEdMVh.js} +1 -1
  749. package/web/assets/{diagram-NH7WQ7WH-uUMz46ZD.js → diagram-NH7WQ7WH-C9KZc3B2.js} +1 -1
  750. package/web/assets/{diagram-OA4YK3LP-BRjVzjdp.js → diagram-OA4YK3LP-D8kkPXbY.js} +1 -1
  751. package/web/assets/{diagram-WEI45ONY-Cb-FhBpQ.js → diagram-WEI45ONY-_YqiTaGP.js} +1 -1
  752. package/web/assets/document-Dgt5eZFj.js +19 -0
  753. package/web/assets/{ebnfDiagram-CCIWWBDH-IhhxX3IB.js → ebnfDiagram-CCIWWBDH-JO-zQh6g.js} +1 -1
  754. package/web/assets/{entities-DUnx74kH.js → entities-C3wz7FCx.js} +12 -12
  755. package/web/assets/{erDiagram-Q63AITRT-D1frgeWf.js → erDiagram-Q63AITRT-9UjQwJ4P.js} +1 -1
  756. package/web/assets/file-viewer-DZJ8nYnl.js +1 -0
  757. package/web/assets/{flowDiagram-23GEKE2U-BiPPM-FY.js → flowDiagram-23GEKE2U-Ca08tnYM.js} +5 -5
  758. package/web/assets/folder-image-BfGgxo7i.js +1 -0
  759. package/web/assets/folder-landing-qUKBCnG-.js +54 -0
  760. package/web/assets/folder-list-BfFjv7rR.js +1 -0
  761. package/web/assets/folder-metadata-DCw8xzHk.js +2 -0
  762. package/web/assets/folder-mobile-bar-Ubz4babf.js +1 -0
  763. package/web/assets/folder-plugin-view-DsWR1zmQ.js +6 -0
  764. package/web/assets/{ganttDiagram-NO4QXBWP-CmEOlHD7.js → ganttDiagram-NO4QXBWP-KnHzX5W3.js} +1 -1
  765. package/web/assets/{gitGraphDiagram-IHSO6WYX-tTjcpZpU.js → gitGraphDiagram-IHSO6WYX-Cm8woNtK.js} +1 -1
  766. package/web/assets/index-BaRnbYRw.js +1 -0
  767. package/web/assets/index-BexmLxIP.css +1 -0
  768. package/web/assets/index-Bp9DidgD.js +1 -0
  769. package/web/assets/{index-eL1k96k8.js → index-CCXE8zc9.js} +1 -1
  770. package/web/assets/index-CNyy98F8.js +2 -0
  771. package/web/assets/{index-DmrKjrlM.js → index-CXhBn-ar.js} +1 -1
  772. package/web/assets/index-DDirZMgx.js +1 -0
  773. package/web/assets/{infoDiagram-FWYZ7A6U-Ok2sdbc1.js → infoDiagram-FWYZ7A6U-yyqmUtIb.js} +1 -1
  774. package/web/assets/{ishikawaDiagram-FXEZZL3T-kPnM5psX.js → ishikawaDiagram-FXEZZL3T-BfvR_Zy4.js} +4 -4
  775. package/web/assets/{journeyDiagram-5HDEW3XC-BkoT0-45.js → journeyDiagram-5HDEW3XC-BKuw06HM.js} +1 -1
  776. package/web/assets/{kanban-definition-HUTT4EX6-xnm_eFoU.js → kanban-definition-HUTT4EX6-n0010rmQ.js} +8 -8
  777. package/web/assets/{linear-CLZpgLH-.js → linear-C0d0lT8O.js} +1 -1
  778. package/web/assets/linked-session-header-BkEweU0Z.js +3 -0
  779. package/web/assets/{markdown-njUwQKsR.js → markdown-Bw9RgUGR.js} +9 -9
  780. package/web/assets/{mermaid.core-Bvxj3RoN.js → mermaid.core-BDVbShyO.js} +6 -6
  781. package/web/assets/metadata-KV0dpp4G.js +1 -0
  782. package/web/assets/{mindmap-definition-LN4V7U3C-42Uoox79.js → mindmap-definition-LN4V7U3C--_0ks3GF.js} +1 -1
  783. package/web/assets/note-card-DBfX6gW1.js +6 -0
  784. package/web/assets/{pegDiagram-2B236MQR-B-GZCw3w.js → pegDiagram-2B236MQR-CBoNIpKR.js} +1 -1
  785. package/web/assets/{pieDiagram-ENE6RG2P-DRmmssIB.js → pieDiagram-ENE6RG2P-MA5tkYh5.js} +3 -3
  786. package/web/assets/popover-DBD7FF-W.js +9 -0
  787. package/web/assets/{project-search-dialog-B730oZ1S.js → project-search-dialog-DM1IkSZu.js} +6 -6
  788. package/web/assets/{quadrantDiagram-ABIIQ3AL-BfhVQ7V9.js → quadrantDiagram-ABIIQ3AL-CWT1ryqF.js} +1 -1
  789. package/web/assets/{railroadDiagram-RFXS5EU6-DxKx7XRp.js → railroadDiagram-RFXS5EU6-ZiLB5FGi.js} +1 -1
  790. package/web/assets/{react-DZzLHL-l.js → react-B9jn2M18.js} +2 -2
  791. package/web/assets/{requirementDiagram-TGXJPOKE-NUzj9fw1.js → requirementDiagram-TGXJPOKE-CQq9uneq.js} +1 -1
  792. package/web/assets/{sankeyDiagram-HTMAVEWB-Cy9OMnl-.js → sankeyDiagram-HTMAVEWB-qDG-0JqI.js} +1 -1
  793. package/web/assets/search-DNrQA5fF.js +2 -0
  794. package/web/assets/select-D8cqNgcp.js +30 -0
  795. package/web/assets/selection-popup-DmtTeRs2.js +7 -0
  796. package/web/assets/{sequenceDiagram-DBY2YBRQ-CBNE9mzn.js → sequenceDiagram-DBY2YBRQ-CiApurLO.js} +1 -1
  797. package/web/assets/{sizeCapture-X5ZJPWSS-S4HhfX0n.js → sizeCapture-X5ZJPWSS-DZSR5QXm.js} +1 -1
  798. package/web/assets/stateDiagram-2N3HPSRC-CjJJR9_z.js +1 -0
  799. package/web/assets/stateDiagram-v2-6OUMAXLB-BpeGSCu9.js +1 -0
  800. package/web/assets/{swimlanes-5IMT3BWC-DJ2aLWal.js → swimlanes-5IMT3BWC-CKmo1sg6.js} +2 -2
  801. package/web/assets/swimlanesDiagram-G3AALYLV-D9RjLKb9.js +8 -0
  802. package/web/assets/tanstack-YzX_Mi37.js +3 -0
  803. package/web/assets/{timeline-definition-FHXFAJF6-vFDUVPCX.js → timeline-definition-FHXFAJF6-D-NMwS3y.js} +1 -1
  804. package/web/assets/{use-folder-filter-BbTUlXgG.js → use-folder-filter-LQyXns5Q.js} +1 -1
  805. package/web/assets/{utils-CwHGE3BB.js → utils-DCaHk0Gm.js} +1 -1
  806. package/web/assets/{vennDiagram-L72KCM5P-AsnhK2zW.js → vennDiagram-L72KCM5P-CfL6LBWw.js} +1 -1
  807. package/web/assets/view-context-gyDl_p2V.js +229 -0
  808. package/web/assets/viewer-capabilities-Bpp8Uvcg.js +1 -0
  809. package/web/assets/{wardleyDiagram-EHGQE667-Cj1wFbNV.js → wardleyDiagram-EHGQE667-DgldMxaj.js} +1 -1
  810. package/web/assets/{xychartDiagram-FW5EYKEG-Bbvnutsm.js → xychartDiagram-FW5EYKEG-CIoAIFX8.js} +1 -1
  811. package/web/favicon.svg +6 -0
  812. package/web/index.html +5 -4
  813. package/web/assets/app-CPSmsokP.js +0 -2
  814. package/web/assets/app-options-XEWvevsz.js +0 -25
  815. package/web/assets/app-view-header-BKZ90ToF.js +0 -1
  816. package/web/assets/arc-DbpbZvCt.js +0 -1
  817. package/web/assets/arrow-left-CFeHb-Z1.js +0 -1
  818. package/web/assets/ask-tray-D2YHtbPj.js +0 -14
  819. package/web/assets/button-BJ7z-ZA7.js +0 -1
  820. package/web/assets/calendar-days-DWh2XMO2.js +0 -1
  821. package/web/assets/channel-dSRp_qTo.js +0 -1
  822. package/web/assets/chevron-down-C5oRtqbX.js +0 -1
  823. package/web/assets/chevron-right-CsPtvh8C.js +0 -1
  824. package/web/assets/chevron-up-DjpU6Pyv.js +0 -1
  825. package/web/assets/classDiagram-OUVF2IWQ-B7B2zLzM.js +0 -1
  826. package/web/assets/classDiagram-v2-EOCWNBFH-B7B2zLzM.js +0 -1
  827. package/web/assets/client-CAudjYV9.js +0 -34
  828. package/web/assets/client-Dn9-_Gm_.js +0 -14
  829. package/web/assets/client-Dxrf2tyq.js +0 -102
  830. package/web/assets/client-aFI2M4pE.js +0 -53
  831. package/web/assets/collection-icon-TbOVyORG.js +0 -1
  832. package/web/assets/collection-page-Du6FKkuU.js +0 -10
  833. package/web/assets/command-C_g5E1Wx.js +0 -38
  834. package/web/assets/copy-Ikmr6Iq2.js +0 -1
  835. package/web/assets/copy-context-Cl1TE2PJ.js +0 -1
  836. package/web/assets/document-DcjNSJCk.js +0 -2
  837. package/web/assets/external-link-BXmSXqqF.js +0 -1
  838. package/web/assets/file-renderer-BRZTrYx8.js +0 -19
  839. package/web/assets/file-text-CiiSsCDq.js +0 -1
  840. package/web/assets/file-viewer-C1wAeVDK.js +0 -1
  841. package/web/assets/folder-image-AXBrHUcU.js +0 -1
  842. package/web/assets/folder-landing-BhRg7hwn.js +0 -54
  843. package/web/assets/folder-list-rIdszVde.js +0 -1
  844. package/web/assets/folder-metadata-puTC5QqJ.js +0 -2
  845. package/web/assets/folder-mobile-bar-DjjRQo3T.js +0 -1
  846. package/web/assets/folder-plugin-view-BU_kzR8j.js +0 -6
  847. package/web/assets/index-DS2Wmd9I.css +0 -1
  848. package/web/assets/index-DgqzSeIR.js +0 -1
  849. package/web/assets/index-DnlTDqaa.js +0 -1
  850. package/web/assets/index-DztTMDFz.js +0 -2
  851. package/web/assets/index-kY75qc96.js +0 -1
  852. package/web/assets/index-p38i_yyY.js +0 -1
  853. package/web/assets/link-2-BWKA6t--.js +0 -1
  854. package/web/assets/link-DC_1Z6Yy.js +0 -11
  855. package/web/assets/linked-session-header-DJYWZ_-q.js +0 -3
  856. package/web/assets/mail-2rCdIFul.js +0 -1
  857. package/web/assets/markdown-title-dncAYYiP.js +0 -131
  858. package/web/assets/notes-page-DIW6rgJp.js +0 -10
  859. package/web/assets/pencil-8cobiSSq.js +0 -1
  860. package/web/assets/plus-BHV2wJr7.js +0 -1
  861. package/web/assets/popover-Cmmgj-MJ.js +0 -9
  862. package/web/assets/search-CvlYUkN6.js +0 -2
  863. package/web/assets/select-1SvaKQsS.js +0 -30
  864. package/web/assets/selection-popup-ntjycEVh.js +0 -7
  865. package/web/assets/sparkles-CBhGREdc.js +0 -1
  866. package/web/assets/stateDiagram-2N3HPSRC-BEw1Mheu.js +0 -1
  867. package/web/assets/stateDiagram-v2-6OUMAXLB-BHtjl1iD.js +0 -1
  868. package/web/assets/swimlanesDiagram-G3AALYLV-Z362aroZ.js +0 -8
  869. package/web/assets/tanstack-CD46mJkU.js +0 -1
  870. package/web/assets/view-context-D-fh9AbH.js +0 -81
  871. package/web/assets/viewer-capabilities-CROIaoqh.js +0 -1
  872. package/web/assets/x-BUeE--I4.js +0 -1
@@ -0,0 +1,1035 @@
1
+ // This file is auto-generated by scripts/generate.js
2
+ import * as z from "zod/v4";
3
+ import * as validate from "./zod.gen.js";
4
+ function tagOf(value, key) {
5
+ return typeof value === "object" && value !== null
6
+ ? value[key]
7
+ : undefined;
8
+ }
9
+ const zGuardRequestPermissionSubjectToolCall = validate.zToolCallPermissionSubject.and(z.object({ type: z.literal("tool_call") }));
10
+ const zGuardRequestPermissionSubjectCommand = validate.zCommandPermissionSubject.and(z.object({ type: z.literal("command") }));
11
+ const zGuardToolCallContentContent = validate.zContent.and(z.object({ type: z.literal("content") }));
12
+ const zGuardToolCallContentDiff = validate.zDiff.and(z.object({ type: z.literal("diff") }));
13
+ const zGuardToolCallContentTerminal = validate.zTerminal.and(z.object({ type: z.literal("terminal") }));
14
+ const zGuardContentBlockText = validate.zTextContent.and(z.object({ type: z.literal("text") }));
15
+ const zGuardContentBlockImage = validate.zImageContent.and(z.object({ type: z.literal("image") }));
16
+ const zGuardContentBlockAudio = validate.zAudioContent.and(z.object({ type: z.literal("audio") }));
17
+ const zGuardContentBlockResourceLink = validate.zResourceLink.and(z.object({ type: z.literal("resource_link") }));
18
+ const zGuardContentBlockResource = validate.zEmbeddedResource.and(z.object({ type: z.literal("resource") }));
19
+ const zGuardDiffChangeAdd = validate.zDiffPathChange.and(z.object({ operation: z.literal("add") }));
20
+ const zGuardDiffChangeDelete = validate.zDiffPathChange.and(z.object({ operation: z.literal("delete") }));
21
+ const zGuardDiffChangeModify = validate.zDiffPathChange.and(z.object({ operation: z.literal("modify") }));
22
+ const zGuardDiffChangeMove = validate.zDiffPathPairChange.and(z.object({ operation: z.literal("move") }));
23
+ const zGuardDiffChangeCopy = validate.zDiffPathPairChange.and(z.object({ operation: z.literal("copy") }));
24
+ const zGuardCreateElicitationRequestForm = validate.zElicitationFormMode
25
+ .and(z.object({ mode: z.literal("form") }))
26
+ .and(z.object({ message: z.string() }));
27
+ const zGuardCreateElicitationRequestUrl = validate.zElicitationUrlMode
28
+ .and(z.object({ mode: z.literal("url") }))
29
+ .and(z.object({ message: z.string() }));
30
+ const zGuardCreateElicitationRequestCustom = z
31
+ .union([validate.zElicitationSessionScope, validate.zElicitationRequestScope])
32
+ .and(z.object({ message: z.string() }));
33
+ const zGuardElicitationPropertySchemaString = validate.zStringPropertySchema.and(z.object({ type: z.literal("string") }));
34
+ const zGuardElicitationPropertySchemaNumber = validate.zNumberPropertySchema.and(z.object({ type: z.literal("number") }));
35
+ const zGuardElicitationPropertySchemaInteger = validate.zIntegerPropertySchema.and(z.object({ type: z.literal("integer") }));
36
+ const zGuardElicitationPropertySchemaBoolean = validate.zBooleanPropertySchema.and(z.object({ type: z.literal("boolean") }));
37
+ const zGuardElicitationPropertySchemaArray = validate.zMultiSelectPropertySchema.and(z.object({ type: z.literal("array") }));
38
+ const zGuardMultiSelectItemsString = validate.zStringMultiSelectItems.and(z.object({ type: z.literal("string") }));
39
+ const zGuardMultiSelectItemsTitled = validate.zTitledMultiSelectItems;
40
+ const zGuardAuthMethodEnvVar = validate.zAuthMethodEnvVar.and(z.object({ type: z.literal("env_var") }));
41
+ const zGuardAuthMethodTerminal = validate.zAuthMethodTerminal.and(z.object({ type: z.literal("terminal") }));
42
+ const zGuardAuthMethodAgent = validate.zAuthMethodAgent.and(z.object({ type: z.literal("agent") }));
43
+ const zGuardAuthMethodCustom = z.object({
44
+ methodId: validate.zAuthMethodId,
45
+ name: z.string(),
46
+ });
47
+ const zGuardSessionConfigOptionSelect = validate.zSessionConfigSelect
48
+ .and(z.object({ type: z.literal("select") }))
49
+ .and(z.object({ configId: validate.zSessionConfigId, name: z.string() }));
50
+ const zGuardSessionConfigOptionBoolean = validate.zSessionConfigBoolean
51
+ .and(z.object({ type: z.literal("boolean") }))
52
+ .and(z.object({ configId: validate.zSessionConfigId, name: z.string() }));
53
+ const zGuardSessionConfigOptionCustom = z.object({
54
+ configId: validate.zSessionConfigId,
55
+ name: z.string(),
56
+ });
57
+ const zGuardNesSuggestionEdit = validate.zNesEditSuggestion.and(z.object({ kind: z.literal("edit") }));
58
+ const zGuardNesSuggestionJump = validate.zNesJumpSuggestion.and(z.object({ kind: z.literal("jump") }));
59
+ const zGuardNesSuggestionRename = validate.zNesRenameSuggestion.and(z.object({ kind: z.literal("rename") }));
60
+ const zGuardNesSuggestionSearchAndReplace = validate.zNesSearchAndReplaceSuggestion.and(z.object({ kind: z.literal("searchAndReplace") }));
61
+ const zGuardNesSuggestionCustom = z.object({
62
+ suggestionId: validate.zNesSuggestionId,
63
+ });
64
+ const zGuardSessionUpdateUserMessageChunk = validate.zContentChunk.and(z.object({ sessionUpdate: z.literal("user_message_chunk") }));
65
+ const zGuardSessionUpdateUserMessage = validate.zUserMessage.and(z.object({ sessionUpdate: z.literal("user_message") }));
66
+ const zGuardSessionUpdateAgentMessageChunk = validate.zContentChunk.and(z.object({ sessionUpdate: z.literal("agent_message_chunk") }));
67
+ const zGuardSessionUpdateAgentMessage = validate.zAgentMessage.and(z.object({ sessionUpdate: z.literal("agent_message") }));
68
+ const zGuardSessionUpdateAgentThoughtChunk = validate.zContentChunk.and(z.object({ sessionUpdate: z.literal("agent_thought_chunk") }));
69
+ const zGuardSessionUpdateAgentThought = validate.zAgentThought.and(z.object({ sessionUpdate: z.literal("agent_thought") }));
70
+ const zGuardSessionUpdateStateUpdate = validate.zStateUpdate.and(z.object({ sessionUpdate: z.literal("state_update") }));
71
+ const zGuardSessionUpdateToolCallContentChunk = validate.zToolCallContentChunk.and(z.object({ sessionUpdate: z.literal("tool_call_content_chunk") }));
72
+ const zGuardSessionUpdateToolCallUpdate = validate.zToolCallUpdate.and(z.object({ sessionUpdate: z.literal("tool_call_update") }));
73
+ const zGuardSessionUpdateTerminalUpdate = validate.zTerminalUpdate.and(z.object({ sessionUpdate: z.literal("terminal_update") }));
74
+ const zGuardSessionUpdateTerminalOutputChunk = validate.zTerminalOutputChunk.and(z.object({ sessionUpdate: z.literal("terminal_output_chunk") }));
75
+ const zGuardSessionUpdatePlanUpdate = validate.zPlanUpdate.and(z.object({ sessionUpdate: z.literal("plan_update") }));
76
+ const zGuardSessionUpdatePlanRemoved = validate.zPlanRemoved.and(z.object({ sessionUpdate: z.literal("plan_removed") }));
77
+ const zGuardSessionUpdateAvailableCommandsUpdate = validate.zAvailableCommandsUpdate.and(z.object({ sessionUpdate: z.literal("available_commands_update") }));
78
+ const zGuardSessionUpdateConfigOptionUpdate = validate.zConfigOptionUpdate.and(z.object({ sessionUpdate: z.literal("config_option_update") }));
79
+ const zGuardSessionUpdateSessionInfoUpdate = validate.zSessionInfoUpdate.and(z.object({ sessionUpdate: z.literal("session_info_update") }));
80
+ const zGuardSessionUpdateUsageUpdate = validate.zUsageUpdate.and(z.object({ sessionUpdate: z.literal("usage_update") }));
81
+ const zGuardStateUpdateRunning = validate.zRunningStateUpdate.and(z.object({ state: z.literal("running") }));
82
+ const zGuardStateUpdateIdle = validate.zIdleStateUpdate.and(z.object({ state: z.literal("idle") }));
83
+ const zGuardStateUpdateRequiresAction = validate.zRequiresActionStateUpdate.and(z.object({ state: z.literal("requires_action") }));
84
+ const zGuardPlanUpdateContentItems = validate.zPlanItems.and(z.object({ type: z.literal("items") }));
85
+ const zGuardPlanUpdateContentFile = validate.zPlanFile.and(z.object({ type: z.literal("file") }));
86
+ const zGuardPlanUpdateContentMarkdown = validate.zPlanMarkdown.and(z.object({ type: z.literal("markdown") }));
87
+ const zGuardPlanUpdateContentCustom = z.object({ planId: validate.zPlanId });
88
+ const zGuardAvailableCommandInputText = validate.zTextCommandInput.and(z.object({ type: z.literal("text") }));
89
+ const zGuardMcpServerHttp = validate.zMcpServerHttp.and(z.object({ type: z.literal("http") }));
90
+ const zGuardMcpServerAcp = validate.zMcpServerAcp.and(z.object({ type: z.literal("acp") }));
91
+ const zGuardMcpServerStdio = validate.zMcpServerStdio.and(z.object({ type: z.literal("stdio") }));
92
+ const zGuardReplayFromStart = validate.zReplayFromStart.and(z.object({ type: z.literal("start") }));
93
+ const zGuardSetSessionConfigOptionRequestId = z
94
+ .object({ type: z.literal("id") })
95
+ .and(z.object({ value: validate.zSessionConfigValueId }))
96
+ .and(z.object({
97
+ sessionId: validate.zSessionId,
98
+ configId: validate.zSessionConfigId,
99
+ }));
100
+ const zGuardSetSessionConfigOptionRequestBoolean = z
101
+ .object({ type: z.literal("boolean") })
102
+ .and(z.object({ value: z.boolean() }))
103
+ .and(z.object({
104
+ sessionId: validate.zSessionId,
105
+ configId: validate.zSessionConfigId,
106
+ }));
107
+ const zGuardSetSessionConfigOptionRequestCustom = z
108
+ .object({ value: z.unknown() })
109
+ .and(z.object({
110
+ sessionId: validate.zSessionId,
111
+ configId: validate.zSessionConfigId,
112
+ }));
113
+ const zGuardRequestPermissionOutcomeCancelled = z.object({
114
+ outcome: z.literal("cancelled"),
115
+ });
116
+ const zGuardRequestPermissionOutcomeSelected = validate.zSelectedPermissionOutcome.and(z.object({ outcome: z.literal("selected") }));
117
+ const zGuardCreateElicitationResponseAccept = validate.zElicitationAcceptAction.and(z.object({ action: z.literal("accept") }));
118
+ const zGuardCreateElicitationResponseDecline = z.object({
119
+ action: z.literal("decline"),
120
+ });
121
+ const zGuardCreateElicitationResponseCancel = z.object({
122
+ action: z.literal("cancel"),
123
+ });
124
+ /**
125
+ * Validated type guards for `RequestPermissionSubject`'s known variants.
126
+ *
127
+ * Each guard validates the variant's payload, not just its discriminant
128
+ * tag: a malformed known variant (right tag, wrong payload) matches no
129
+ * guard — mirroring wire validation, which rejects such values instead
130
+ * of classifying them as custom.
131
+ *
132
+ * Guards check the value as given: fields that wire deserialization
133
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
134
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
135
+ * another variant's payload) guards are conservative where wire parsing
136
+ * may still accept the value — narrow wire-parsed values when exact
137
+ * parity matters.
138
+ */
139
+ export const RequestPermissionSubject = {
140
+ /** Narrow to the `tool_call` variant, validating its payload. */
141
+ isToolCall(value) {
142
+ return (tagOf(value, "type") === "tool_call" &&
143
+ zGuardRequestPermissionSubjectToolCall.safeParse(value).success);
144
+ },
145
+ /** Narrow to the `command` variant, validating its payload. */
146
+ isCommand(value) {
147
+ return (tagOf(value, "type") === "command" &&
148
+ zGuardRequestPermissionSubjectCommand.safeParse(value).success);
149
+ },
150
+ /**
151
+ * Narrow to a custom or future variant: the `type` tag matches no known variant.
152
+ *
153
+ * TypeScript keeps the known variants in the narrowed union (they are
154
+ * structural subtypes of the catch-all), so read vendor payload keys
155
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
156
+ */
157
+ isCustom(value) {
158
+ const tag = tagOf(value, "type");
159
+ return typeof tag === "string" && !["command", "tool_call"].includes(tag);
160
+ },
161
+ };
162
+ /**
163
+ * Validated type guards for `ToolCallContent`'s known variants.
164
+ *
165
+ * Each guard validates the variant's payload, not just its discriminant
166
+ * tag: a malformed known variant (right tag, wrong payload) matches no
167
+ * guard — mirroring wire validation, which rejects such values instead
168
+ * of classifying them as custom.
169
+ *
170
+ * Guards check the value as given: fields that wire deserialization
171
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
172
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
173
+ * another variant's payload) guards are conservative where wire parsing
174
+ * may still accept the value — narrow wire-parsed values when exact
175
+ * parity matters.
176
+ */
177
+ export const ToolCallContent = {
178
+ /** Narrow to the `content` variant, validating its payload. */
179
+ isContent(value) {
180
+ return (tagOf(value, "type") === "content" &&
181
+ zGuardToolCallContentContent.safeParse(value).success);
182
+ },
183
+ /** Narrow to the `diff` variant, validating its payload. */
184
+ isDiff(value) {
185
+ return (tagOf(value, "type") === "diff" &&
186
+ zGuardToolCallContentDiff.safeParse(value).success);
187
+ },
188
+ /** Narrow to the `terminal` variant, validating its payload. */
189
+ isTerminal(value) {
190
+ return (tagOf(value, "type") === "terminal" &&
191
+ zGuardToolCallContentTerminal.safeParse(value).success);
192
+ },
193
+ /**
194
+ * Narrow to a custom or future variant: the `type` tag matches no known variant.
195
+ *
196
+ * TypeScript keeps the known variants in the narrowed union (they are
197
+ * structural subtypes of the catch-all), so read vendor payload keys
198
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
199
+ */
200
+ isCustom(value) {
201
+ const tag = tagOf(value, "type");
202
+ return (typeof tag === "string" && !["content", "diff", "terminal"].includes(tag));
203
+ },
204
+ };
205
+ /**
206
+ * Validated type guards for `ContentBlock`'s known variants.
207
+ *
208
+ * Each guard validates the variant's payload, not just its discriminant
209
+ * tag: a malformed known variant (right tag, wrong payload) matches no
210
+ * guard — mirroring wire validation, which rejects such values instead
211
+ * of classifying them as custom.
212
+ *
213
+ * Guards check the value as given: fields that wire deserialization
214
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
215
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
216
+ * another variant's payload) guards are conservative where wire parsing
217
+ * may still accept the value — narrow wire-parsed values when exact
218
+ * parity matters.
219
+ */
220
+ export const ContentBlock = {
221
+ /** Narrow to the `text` variant, validating its payload. */
222
+ isText(value) {
223
+ return (tagOf(value, "type") === "text" &&
224
+ zGuardContentBlockText.safeParse(value).success);
225
+ },
226
+ /** Narrow to the `image` variant, validating its payload. */
227
+ isImage(value) {
228
+ return (tagOf(value, "type") === "image" &&
229
+ zGuardContentBlockImage.safeParse(value).success);
230
+ },
231
+ /** Narrow to the `audio` variant, validating its payload. */
232
+ isAudio(value) {
233
+ return (tagOf(value, "type") === "audio" &&
234
+ zGuardContentBlockAudio.safeParse(value).success);
235
+ },
236
+ /** Narrow to the `resource_link` variant, validating its payload. */
237
+ isResourceLink(value) {
238
+ return (tagOf(value, "type") === "resource_link" &&
239
+ zGuardContentBlockResourceLink.safeParse(value).success);
240
+ },
241
+ /** Narrow to the `resource` variant, validating its payload. */
242
+ isResource(value) {
243
+ return (tagOf(value, "type") === "resource" &&
244
+ zGuardContentBlockResource.safeParse(value).success);
245
+ },
246
+ /**
247
+ * Narrow to a custom or future variant: the `type` tag matches no known variant.
248
+ *
249
+ * TypeScript keeps the known variants in the narrowed union (they are
250
+ * structural subtypes of the catch-all), so read vendor payload keys
251
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
252
+ */
253
+ isCustom(value) {
254
+ const tag = tagOf(value, "type");
255
+ return (typeof tag === "string" &&
256
+ !["audio", "image", "resource", "resource_link", "text"].includes(tag));
257
+ },
258
+ };
259
+ /**
260
+ * Validated type guards for `DiffChange`'s known variants.
261
+ *
262
+ * Each guard validates the variant's payload, not just its discriminant
263
+ * tag: a malformed known variant (right tag, wrong payload) matches no
264
+ * guard — mirroring wire validation, which rejects such values instead
265
+ * of classifying them as custom.
266
+ *
267
+ * Guards check the value as given: fields that wire deserialization
268
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
269
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
270
+ * another variant's payload) guards are conservative where wire parsing
271
+ * may still accept the value — narrow wire-parsed values when exact
272
+ * parity matters.
273
+ */
274
+ export const DiffChange = {
275
+ /** Narrow to the `add` variant, validating its payload. */
276
+ isAdd(value) {
277
+ return (tagOf(value, "operation") === "add" &&
278
+ zGuardDiffChangeAdd.safeParse(value).success);
279
+ },
280
+ /** Narrow to the `delete` variant, validating its payload. */
281
+ isDelete(value) {
282
+ return (tagOf(value, "operation") === "delete" &&
283
+ zGuardDiffChangeDelete.safeParse(value).success);
284
+ },
285
+ /** Narrow to the `modify` variant, validating its payload. */
286
+ isModify(value) {
287
+ return (tagOf(value, "operation") === "modify" &&
288
+ zGuardDiffChangeModify.safeParse(value).success);
289
+ },
290
+ /** Narrow to the `move` variant, validating its payload. */
291
+ isMove(value) {
292
+ return (tagOf(value, "operation") === "move" &&
293
+ zGuardDiffChangeMove.safeParse(value).success);
294
+ },
295
+ /** Narrow to the `copy` variant, validating its payload. */
296
+ isCopy(value) {
297
+ return (tagOf(value, "operation") === "copy" &&
298
+ zGuardDiffChangeCopy.safeParse(value).success);
299
+ },
300
+ /**
301
+ * Narrow to a custom or future variant: the `operation` tag matches no known variant.
302
+ *
303
+ * TypeScript keeps the known variants in the narrowed union (they are
304
+ * structural subtypes of the catch-all), so read vendor payload keys
305
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
306
+ */
307
+ isCustom(value) {
308
+ const tag = tagOf(value, "operation");
309
+ return (typeof tag === "string" &&
310
+ !["add", "copy", "delete", "modify", "move"].includes(tag));
311
+ },
312
+ };
313
+ /**
314
+ * Validated type guards for `CreateElicitationRequest`'s known variants.
315
+ *
316
+ * Each guard validates the variant's payload, not just its discriminant
317
+ * tag: a malformed known variant (right tag, wrong payload) matches no
318
+ * guard — mirroring wire validation, which rejects such values instead
319
+ * of classifying them as custom.
320
+ *
321
+ * Guards check the value as given: fields that wire deserialization
322
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
323
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
324
+ * another variant's payload) guards are conservative where wire parsing
325
+ * may still accept the value — narrow wire-parsed values when exact
326
+ * parity matters.
327
+ *
328
+ * @experimental
329
+ */
330
+ export const CreateElicitationRequest = {
331
+ /** Narrow to the `form` variant, validating its payload. */
332
+ isForm(value) {
333
+ return (tagOf(value, "mode") === "form" &&
334
+ zGuardCreateElicitationRequestForm.safeParse(value).success);
335
+ },
336
+ /** Narrow to the `url` variant, validating its payload. */
337
+ isUrl(value) {
338
+ return (tagOf(value, "mode") === "url" &&
339
+ zGuardCreateElicitationRequestUrl.safeParse(value).success);
340
+ },
341
+ /**
342
+ * Narrow to a custom or future variant: the `mode` tag matches no known variant, with a valid payload.
343
+ *
344
+ * TypeScript keeps the known variants in the narrowed union (they are
345
+ * structural subtypes of the catch-all), so read vendor payload keys
346
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
347
+ */
348
+ isCustom(value) {
349
+ const tag = tagOf(value, "mode");
350
+ return (typeof tag === "string" &&
351
+ !["form", "url"].includes(tag) &&
352
+ zGuardCreateElicitationRequestCustom.safeParse(value).success);
353
+ },
354
+ };
355
+ /**
356
+ * Validated type guards for `ElicitationPropertySchema`'s known variants.
357
+ *
358
+ * Each guard validates the variant's payload, not just its discriminant
359
+ * tag: a malformed known variant (right tag, wrong payload) matches no
360
+ * guard — mirroring wire validation, which rejects such values instead
361
+ * of classifying them as custom.
362
+ *
363
+ * Guards check the value as given: fields that wire deserialization
364
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
365
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
366
+ * another variant's payload) guards are conservative where wire parsing
367
+ * may still accept the value — narrow wire-parsed values when exact
368
+ * parity matters.
369
+ */
370
+ export const ElicitationPropertySchema = {
371
+ /** Narrow to the `string` variant, validating its payload. */
372
+ isString(value) {
373
+ return (tagOf(value, "type") === "string" &&
374
+ zGuardElicitationPropertySchemaString.safeParse(value).success);
375
+ },
376
+ /** Narrow to the `number` variant, validating its payload. */
377
+ isNumber(value) {
378
+ return (tagOf(value, "type") === "number" &&
379
+ zGuardElicitationPropertySchemaNumber.safeParse(value).success);
380
+ },
381
+ /** Narrow to the `integer` variant, validating its payload. */
382
+ isInteger(value) {
383
+ return (tagOf(value, "type") === "integer" &&
384
+ zGuardElicitationPropertySchemaInteger.safeParse(value).success);
385
+ },
386
+ /** Narrow to the `boolean` variant, validating its payload. */
387
+ isBoolean(value) {
388
+ return (tagOf(value, "type") === "boolean" &&
389
+ zGuardElicitationPropertySchemaBoolean.safeParse(value).success);
390
+ },
391
+ /** Narrow to the `array` variant, validating its payload. */
392
+ isArray(value) {
393
+ return (tagOf(value, "type") === "array" &&
394
+ zGuardElicitationPropertySchemaArray.safeParse(value).success);
395
+ },
396
+ /**
397
+ * Narrow to a custom or future variant: the `type` tag matches no known variant.
398
+ *
399
+ * TypeScript keeps the known variants in the narrowed union (they are
400
+ * structural subtypes of the catch-all), so read vendor payload keys
401
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
402
+ */
403
+ isCustom(value) {
404
+ const tag = tagOf(value, "type");
405
+ return (typeof tag === "string" &&
406
+ !["array", "boolean", "integer", "number", "string"].includes(tag));
407
+ },
408
+ };
409
+ /**
410
+ * Validated type guards for `MultiSelectItems`'s known variants.
411
+ *
412
+ * Each guard validates the variant's payload, not just its discriminant
413
+ * tag: a malformed known variant (right tag, wrong payload) matches no
414
+ * guard — mirroring wire validation, which rejects such values instead
415
+ * of classifying them as custom.
416
+ *
417
+ * Guards check the value as given: fields that wire deserialization
418
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
419
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
420
+ * another variant's payload) guards are conservative where wire parsing
421
+ * may still accept the value — narrow wire-parsed values when exact
422
+ * parity matters.
423
+ */
424
+ export const MultiSelectItems = {
425
+ /** Narrow to the `string` variant, validating its payload. */
426
+ isString(value) {
427
+ return (tagOf(value, "type") === "string" &&
428
+ zGuardMultiSelectItemsString.safeParse(value).success);
429
+ },
430
+ /** Narrow to the `titled` variant, validating its payload. */
431
+ isTitled(value) {
432
+ return (tagOf(value, "type") === undefined &&
433
+ zGuardMultiSelectItemsTitled.safeParse(value).success);
434
+ },
435
+ /**
436
+ * Narrow to a custom or future variant: the `type` tag matches no known variant.
437
+ *
438
+ * TypeScript keeps the known variants in the narrowed union (they are
439
+ * structural subtypes of the catch-all), so read vendor payload keys
440
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
441
+ */
442
+ isCustom(value) {
443
+ const tag = tagOf(value, "type");
444
+ return typeof tag === "string" && !["string"].includes(tag);
445
+ },
446
+ };
447
+ /**
448
+ * Validated type guards for `AuthMethod`'s known variants.
449
+ *
450
+ * Each guard validates the variant's payload, not just its discriminant
451
+ * tag: a malformed known variant (right tag, wrong payload) matches no
452
+ * guard — mirroring wire validation, which rejects such values instead
453
+ * of classifying them as custom.
454
+ *
455
+ * Guards check the value as given: fields that wire deserialization
456
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
457
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
458
+ * another variant's payload) guards are conservative where wire parsing
459
+ * may still accept the value — narrow wire-parsed values when exact
460
+ * parity matters.
461
+ */
462
+ export const AuthMethod = {
463
+ /** Narrow to the `env_var` variant, validating its payload. */
464
+ isEnvVar(value) {
465
+ return (tagOf(value, "type") === "env_var" &&
466
+ zGuardAuthMethodEnvVar.safeParse(value).success);
467
+ },
468
+ /** Narrow to the `terminal` variant, validating its payload. */
469
+ isTerminal(value) {
470
+ return (tagOf(value, "type") === "terminal" &&
471
+ zGuardAuthMethodTerminal.safeParse(value).success);
472
+ },
473
+ /** Narrow to the `agent` variant, validating its payload. */
474
+ isAgent(value) {
475
+ return (tagOf(value, "type") === "agent" &&
476
+ zGuardAuthMethodAgent.safeParse(value).success);
477
+ },
478
+ /**
479
+ * Narrow to a custom or future variant: the `type` tag matches no known variant, with a valid payload.
480
+ *
481
+ * TypeScript keeps the known variants in the narrowed union (they are
482
+ * structural subtypes of the catch-all), so read vendor payload keys
483
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
484
+ */
485
+ isCustom(value) {
486
+ const tag = tagOf(value, "type");
487
+ return (typeof tag === "string" &&
488
+ !["agent", "env_var", "terminal"].includes(tag) &&
489
+ zGuardAuthMethodCustom.safeParse(value).success);
490
+ },
491
+ };
492
+ /**
493
+ * Validated type guards for `SessionConfigOption`'s known variants.
494
+ *
495
+ * Each guard validates the variant's payload, not just its discriminant
496
+ * tag: a malformed known variant (right tag, wrong payload) matches no
497
+ * guard — mirroring wire validation, which rejects such values instead
498
+ * of classifying them as custom.
499
+ *
500
+ * Guards check the value as given: fields that wire deserialization
501
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
502
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
503
+ * another variant's payload) guards are conservative where wire parsing
504
+ * may still accept the value — narrow wire-parsed values when exact
505
+ * parity matters.
506
+ */
507
+ export const SessionConfigOption = {
508
+ /** Narrow to the `select` variant, validating its payload. */
509
+ isSelect(value) {
510
+ return (tagOf(value, "type") === "select" &&
511
+ zGuardSessionConfigOptionSelect.safeParse(value).success);
512
+ },
513
+ /** Narrow to the `boolean` variant, validating its payload. */
514
+ isBoolean(value) {
515
+ return (tagOf(value, "type") === "boolean" &&
516
+ zGuardSessionConfigOptionBoolean.safeParse(value).success);
517
+ },
518
+ /**
519
+ * Narrow to a custom or future variant: the `type` tag matches no known variant, with a valid payload.
520
+ *
521
+ * TypeScript keeps the known variants in the narrowed union (they are
522
+ * structural subtypes of the catch-all), so read vendor payload keys
523
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
524
+ */
525
+ isCustom(value) {
526
+ const tag = tagOf(value, "type");
527
+ return (typeof tag === "string" &&
528
+ !["boolean", "select"].includes(tag) &&
529
+ zGuardSessionConfigOptionCustom.safeParse(value).success);
530
+ },
531
+ };
532
+ /**
533
+ * Validated type guards for `NesSuggestion`'s known variants.
534
+ *
535
+ * Each guard validates the variant's payload, not just its discriminant
536
+ * tag: a malformed known variant (right tag, wrong payload) matches no
537
+ * guard — mirroring wire validation, which rejects such values instead
538
+ * of classifying them as custom.
539
+ *
540
+ * Guards check the value as given: fields that wire deserialization
541
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
542
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
543
+ * another variant's payload) guards are conservative where wire parsing
544
+ * may still accept the value — narrow wire-parsed values when exact
545
+ * parity matters.
546
+ */
547
+ export const NesSuggestion = {
548
+ /** Narrow to the `edit` variant, validating its payload. */
549
+ isEdit(value) {
550
+ return (tagOf(value, "kind") === "edit" &&
551
+ zGuardNesSuggestionEdit.safeParse(value).success);
552
+ },
553
+ /** Narrow to the `jump` variant, validating its payload. */
554
+ isJump(value) {
555
+ return (tagOf(value, "kind") === "jump" &&
556
+ zGuardNesSuggestionJump.safeParse(value).success);
557
+ },
558
+ /** Narrow to the `rename` variant, validating its payload. */
559
+ isRename(value) {
560
+ return (tagOf(value, "kind") === "rename" &&
561
+ zGuardNesSuggestionRename.safeParse(value).success);
562
+ },
563
+ /** Narrow to the `searchAndReplace` variant, validating its payload. */
564
+ isSearchAndReplace(value) {
565
+ return (tagOf(value, "kind") === "searchAndReplace" &&
566
+ zGuardNesSuggestionSearchAndReplace.safeParse(value).success);
567
+ },
568
+ /**
569
+ * Narrow to a custom or future variant: the `kind` tag matches no known variant, with a valid payload.
570
+ *
571
+ * TypeScript keeps the known variants in the narrowed union (they are
572
+ * structural subtypes of the catch-all), so read vendor payload keys
573
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
574
+ */
575
+ isCustom(value) {
576
+ const tag = tagOf(value, "kind");
577
+ return (typeof tag === "string" &&
578
+ !["edit", "jump", "rename", "searchAndReplace"].includes(tag) &&
579
+ zGuardNesSuggestionCustom.safeParse(value).success);
580
+ },
581
+ };
582
+ /**
583
+ * Validated type guards for `SessionUpdate`'s known variants.
584
+ *
585
+ * Each guard validates the variant's payload, not just its discriminant
586
+ * tag: a malformed known variant (right tag, wrong payload) matches no
587
+ * guard — mirroring wire validation, which rejects such values instead
588
+ * of classifying them as custom.
589
+ *
590
+ * Guards check the value as given: fields that wire deserialization
591
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
592
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
593
+ * another variant's payload) guards are conservative where wire parsing
594
+ * may still accept the value — narrow wire-parsed values when exact
595
+ * parity matters.
596
+ */
597
+ export const SessionUpdate = {
598
+ /** Narrow to the `user_message_chunk` variant, validating its payload. */
599
+ isUserMessageChunk(value) {
600
+ return (tagOf(value, "sessionUpdate") === "user_message_chunk" &&
601
+ zGuardSessionUpdateUserMessageChunk.safeParse(value).success);
602
+ },
603
+ /** Narrow to the `user_message` variant, validating its payload. */
604
+ isUserMessage(value) {
605
+ return (tagOf(value, "sessionUpdate") === "user_message" &&
606
+ zGuardSessionUpdateUserMessage.safeParse(value).success);
607
+ },
608
+ /** Narrow to the `agent_message_chunk` variant, validating its payload. */
609
+ isAgentMessageChunk(value) {
610
+ return (tagOf(value, "sessionUpdate") === "agent_message_chunk" &&
611
+ zGuardSessionUpdateAgentMessageChunk.safeParse(value).success);
612
+ },
613
+ /** Narrow to the `agent_message` variant, validating its payload. */
614
+ isAgentMessage(value) {
615
+ return (tagOf(value, "sessionUpdate") === "agent_message" &&
616
+ zGuardSessionUpdateAgentMessage.safeParse(value).success);
617
+ },
618
+ /** Narrow to the `agent_thought_chunk` variant, validating its payload. */
619
+ isAgentThoughtChunk(value) {
620
+ return (tagOf(value, "sessionUpdate") === "agent_thought_chunk" &&
621
+ zGuardSessionUpdateAgentThoughtChunk.safeParse(value).success);
622
+ },
623
+ /** Narrow to the `agent_thought` variant, validating its payload. */
624
+ isAgentThought(value) {
625
+ return (tagOf(value, "sessionUpdate") === "agent_thought" &&
626
+ zGuardSessionUpdateAgentThought.safeParse(value).success);
627
+ },
628
+ /** Narrow to the `state_update` variant, validating its payload. */
629
+ isStateUpdate(value) {
630
+ return (tagOf(value, "sessionUpdate") === "state_update" &&
631
+ zGuardSessionUpdateStateUpdate.safeParse(value).success);
632
+ },
633
+ /** Narrow to the `tool_call_content_chunk` variant, validating its payload. */
634
+ isToolCallContentChunk(value) {
635
+ return (tagOf(value, "sessionUpdate") === "tool_call_content_chunk" &&
636
+ zGuardSessionUpdateToolCallContentChunk.safeParse(value).success);
637
+ },
638
+ /** Narrow to the `tool_call_update` variant, validating its payload. */
639
+ isToolCallUpdate(value) {
640
+ return (tagOf(value, "sessionUpdate") === "tool_call_update" &&
641
+ zGuardSessionUpdateToolCallUpdate.safeParse(value).success);
642
+ },
643
+ /** Narrow to the `terminal_update` variant, validating its payload. */
644
+ isTerminalUpdate(value) {
645
+ return (tagOf(value, "sessionUpdate") === "terminal_update" &&
646
+ zGuardSessionUpdateTerminalUpdate.safeParse(value).success);
647
+ },
648
+ /** Narrow to the `terminal_output_chunk` variant, validating its payload. */
649
+ isTerminalOutputChunk(value) {
650
+ return (tagOf(value, "sessionUpdate") === "terminal_output_chunk" &&
651
+ zGuardSessionUpdateTerminalOutputChunk.safeParse(value).success);
652
+ },
653
+ /** Narrow to the `plan_update` variant, validating its payload. */
654
+ isPlanUpdate(value) {
655
+ return (tagOf(value, "sessionUpdate") === "plan_update" &&
656
+ zGuardSessionUpdatePlanUpdate.safeParse(value).success);
657
+ },
658
+ /** Narrow to the `plan_removed` variant, validating its payload. */
659
+ isPlanRemoved(value) {
660
+ return (tagOf(value, "sessionUpdate") === "plan_removed" &&
661
+ zGuardSessionUpdatePlanRemoved.safeParse(value).success);
662
+ },
663
+ /** Narrow to the `available_commands_update` variant, validating its payload. */
664
+ isAvailableCommandsUpdate(value) {
665
+ return (tagOf(value, "sessionUpdate") === "available_commands_update" &&
666
+ zGuardSessionUpdateAvailableCommandsUpdate.safeParse(value).success);
667
+ },
668
+ /** Narrow to the `config_option_update` variant, validating its payload. */
669
+ isConfigOptionUpdate(value) {
670
+ return (tagOf(value, "sessionUpdate") === "config_option_update" &&
671
+ zGuardSessionUpdateConfigOptionUpdate.safeParse(value).success);
672
+ },
673
+ /** Narrow to the `session_info_update` variant, validating its payload. */
674
+ isSessionInfoUpdate(value) {
675
+ return (tagOf(value, "sessionUpdate") === "session_info_update" &&
676
+ zGuardSessionUpdateSessionInfoUpdate.safeParse(value).success);
677
+ },
678
+ /** Narrow to the `usage_update` variant, validating its payload. */
679
+ isUsageUpdate(value) {
680
+ return (tagOf(value, "sessionUpdate") === "usage_update" &&
681
+ zGuardSessionUpdateUsageUpdate.safeParse(value).success);
682
+ },
683
+ /**
684
+ * Narrow to a custom or future variant: the `sessionUpdate` tag matches no known variant.
685
+ *
686
+ * TypeScript keeps the known variants in the narrowed union (they are
687
+ * structural subtypes of the catch-all), so read vendor payload keys
688
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
689
+ */
690
+ isCustom(value) {
691
+ const tag = tagOf(value, "sessionUpdate");
692
+ return (typeof tag === "string" &&
693
+ ![
694
+ "agent_message",
695
+ "agent_message_chunk",
696
+ "agent_thought",
697
+ "agent_thought_chunk",
698
+ "available_commands_update",
699
+ "config_option_update",
700
+ "plan_removed",
701
+ "plan_update",
702
+ "session_info_update",
703
+ "state_update",
704
+ "terminal_output_chunk",
705
+ "terminal_update",
706
+ "tool_call_content_chunk",
707
+ "tool_call_update",
708
+ "usage_update",
709
+ "user_message",
710
+ "user_message_chunk",
711
+ ].includes(tag));
712
+ },
713
+ };
714
+ /**
715
+ * Validated type guards for `StateUpdate`'s known variants.
716
+ *
717
+ * Each guard validates the variant's payload, not just its discriminant
718
+ * tag: a malformed known variant (right tag, wrong payload) matches no
719
+ * guard — mirroring wire validation, which rejects such values instead
720
+ * of classifying them as custom.
721
+ *
722
+ * Guards check the value as given: fields that wire deserialization
723
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
724
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
725
+ * another variant's payload) guards are conservative where wire parsing
726
+ * may still accept the value — narrow wire-parsed values when exact
727
+ * parity matters.
728
+ */
729
+ export const StateUpdate = {
730
+ /** Narrow to the `running` variant, validating its payload. */
731
+ isRunning(value) {
732
+ return (tagOf(value, "state") === "running" &&
733
+ zGuardStateUpdateRunning.safeParse(value).success);
734
+ },
735
+ /** Narrow to the `idle` variant, validating its payload. */
736
+ isIdle(value) {
737
+ return (tagOf(value, "state") === "idle" &&
738
+ zGuardStateUpdateIdle.safeParse(value).success);
739
+ },
740
+ /** Narrow to the `requires_action` variant, validating its payload. */
741
+ isRequiresAction(value) {
742
+ return (tagOf(value, "state") === "requires_action" &&
743
+ zGuardStateUpdateRequiresAction.safeParse(value).success);
744
+ },
745
+ /**
746
+ * Narrow to a custom or future variant: the `state` tag matches no known variant.
747
+ *
748
+ * TypeScript keeps the known variants in the narrowed union (they are
749
+ * structural subtypes of the catch-all), so read vendor payload keys
750
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
751
+ */
752
+ isCustom(value) {
753
+ const tag = tagOf(value, "state");
754
+ return (typeof tag === "string" &&
755
+ !["idle", "requires_action", "running"].includes(tag));
756
+ },
757
+ };
758
+ /**
759
+ * Validated type guards for `PlanUpdateContent`'s known variants.
760
+ *
761
+ * Each guard validates the variant's payload, not just its discriminant
762
+ * tag: a malformed known variant (right tag, wrong payload) matches no
763
+ * guard — mirroring wire validation, which rejects such values instead
764
+ * of classifying them as custom.
765
+ *
766
+ * Guards check the value as given: fields that wire deserialization
767
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
768
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
769
+ * another variant's payload) guards are conservative where wire parsing
770
+ * may still accept the value — narrow wire-parsed values when exact
771
+ * parity matters.
772
+ */
773
+ export const PlanUpdateContent = {
774
+ /** Narrow to the `items` variant, validating its payload. */
775
+ isItems(value) {
776
+ return (tagOf(value, "type") === "items" &&
777
+ zGuardPlanUpdateContentItems.safeParse(value).success);
778
+ },
779
+ /** Narrow to the `file` variant, validating its payload. */
780
+ isFile(value) {
781
+ return (tagOf(value, "type") === "file" &&
782
+ zGuardPlanUpdateContentFile.safeParse(value).success);
783
+ },
784
+ /** Narrow to the `markdown` variant, validating its payload. */
785
+ isMarkdown(value) {
786
+ return (tagOf(value, "type") === "markdown" &&
787
+ zGuardPlanUpdateContentMarkdown.safeParse(value).success);
788
+ },
789
+ /**
790
+ * Narrow to a custom or future variant: the `type` tag matches no known variant, with a valid payload.
791
+ *
792
+ * TypeScript keeps the known variants in the narrowed union (they are
793
+ * structural subtypes of the catch-all), so read vendor payload keys
794
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
795
+ */
796
+ isCustom(value) {
797
+ const tag = tagOf(value, "type");
798
+ return (typeof tag === "string" &&
799
+ !["file", "items", "markdown"].includes(tag) &&
800
+ zGuardPlanUpdateContentCustom.safeParse(value).success);
801
+ },
802
+ };
803
+ /**
804
+ * Validated type guards for `AvailableCommandInput`'s known variants.
805
+ *
806
+ * Each guard validates the variant's payload, not just its discriminant
807
+ * tag: a malformed known variant (right tag, wrong payload) matches no
808
+ * guard — mirroring wire validation, which rejects such values instead
809
+ * of classifying them as custom.
810
+ *
811
+ * Guards check the value as given: fields that wire deserialization
812
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
813
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
814
+ * another variant's payload) guards are conservative where wire parsing
815
+ * may still accept the value — narrow wire-parsed values when exact
816
+ * parity matters.
817
+ */
818
+ export const AvailableCommandInput = {
819
+ /** Narrow to the `text` variant, validating its payload. */
820
+ isText(value) {
821
+ return (tagOf(value, "type") === "text" &&
822
+ zGuardAvailableCommandInputText.safeParse(value).success);
823
+ },
824
+ /**
825
+ * Narrow to a custom or future variant: the `type` tag matches no known variant.
826
+ *
827
+ * TypeScript keeps the known variants in the narrowed union (they are
828
+ * structural subtypes of the catch-all), so read vendor payload keys
829
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
830
+ */
831
+ isCustom(value) {
832
+ const tag = tagOf(value, "type");
833
+ return typeof tag === "string" && !["text"].includes(tag);
834
+ },
835
+ };
836
+ /**
837
+ * Validated type guards for `McpServer`'s known variants.
838
+ *
839
+ * Each guard validates the variant's payload, not just its discriminant
840
+ * tag: a malformed known variant (right tag, wrong payload) matches no
841
+ * guard — mirroring wire validation, which rejects such values instead
842
+ * of classifying them as custom.
843
+ *
844
+ * Guards check the value as given: fields that wire deserialization
845
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
846
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
847
+ * another variant's payload) guards are conservative where wire parsing
848
+ * may still accept the value — narrow wire-parsed values when exact
849
+ * parity matters.
850
+ */
851
+ export const McpServer = {
852
+ /** Narrow to the `http` variant, validating its payload. */
853
+ isHttp(value) {
854
+ return (tagOf(value, "type") === "http" &&
855
+ zGuardMcpServerHttp.safeParse(value).success);
856
+ },
857
+ /** Narrow to the `acp` variant, validating its payload. */
858
+ isAcp(value) {
859
+ return (tagOf(value, "type") === "acp" &&
860
+ zGuardMcpServerAcp.safeParse(value).success);
861
+ },
862
+ /** Narrow to the `stdio` variant, validating its payload. */
863
+ isStdio(value) {
864
+ return (tagOf(value, "type") === "stdio" &&
865
+ zGuardMcpServerStdio.safeParse(value).success);
866
+ },
867
+ /**
868
+ * Narrow to a custom or future variant: the `type` tag matches no known variant.
869
+ *
870
+ * TypeScript keeps the known variants in the narrowed union (they are
871
+ * structural subtypes of the catch-all), so read vendor payload keys
872
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
873
+ */
874
+ isCustom(value) {
875
+ const tag = tagOf(value, "type");
876
+ return typeof tag === "string" && !["acp", "http", "stdio"].includes(tag);
877
+ },
878
+ };
879
+ /**
880
+ * Validated type guards for `ReplayFrom`'s known variants.
881
+ *
882
+ * Each guard validates the variant's payload, not just its discriminant
883
+ * tag: a malformed known variant (right tag, wrong payload) matches no
884
+ * guard — mirroring wire validation, which rejects such values instead
885
+ * of classifying them as custom.
886
+ *
887
+ * Guards check the value as given: fields that wire deserialization
888
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
889
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
890
+ * another variant's payload) guards are conservative where wire parsing
891
+ * may still accept the value — narrow wire-parsed values when exact
892
+ * parity matters.
893
+ */
894
+ export const ReplayFrom = {
895
+ /** Narrow to the `start` variant, validating its payload. */
896
+ isStart(value) {
897
+ return (tagOf(value, "type") === "start" &&
898
+ zGuardReplayFromStart.safeParse(value).success);
899
+ },
900
+ /**
901
+ * Narrow to a custom or future variant: the `type` tag matches no known variant.
902
+ *
903
+ * TypeScript keeps the known variants in the narrowed union (they are
904
+ * structural subtypes of the catch-all), so read vendor payload keys
905
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
906
+ */
907
+ isCustom(value) {
908
+ const tag = tagOf(value, "type");
909
+ return typeof tag === "string" && !["start"].includes(tag);
910
+ },
911
+ };
912
+ /**
913
+ * Validated type guards for `SetSessionConfigOptionRequest`'s known variants.
914
+ *
915
+ * Each guard validates the variant's payload, not just its discriminant
916
+ * tag: a malformed known variant (right tag, wrong payload) matches no
917
+ * guard — mirroring wire validation, which rejects such values instead
918
+ * of classifying them as custom.
919
+ *
920
+ * Guards check the value as given: fields that wire deserialization
921
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
922
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
923
+ * another variant's payload) guards are conservative where wire parsing
924
+ * may still accept the value — narrow wire-parsed values when exact
925
+ * parity matters.
926
+ */
927
+ export const SetSessionConfigOptionRequest = {
928
+ /** Narrow to the `id` variant, validating its payload. */
929
+ isId(value) {
930
+ return (tagOf(value, "type") === "id" &&
931
+ zGuardSetSessionConfigOptionRequestId.safeParse(value).success);
932
+ },
933
+ /** Narrow to the `boolean` variant, validating its payload. */
934
+ isBoolean(value) {
935
+ return (tagOf(value, "type") === "boolean" &&
936
+ zGuardSetSessionConfigOptionRequestBoolean.safeParse(value).success);
937
+ },
938
+ /**
939
+ * Narrow to a custom or future variant: the `type` tag matches no known variant, with a valid payload.
940
+ *
941
+ * TypeScript keeps the known variants in the narrowed union (they are
942
+ * structural subtypes of the catch-all), so read vendor payload keys
943
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
944
+ */
945
+ isCustom(value) {
946
+ const tag = tagOf(value, "type");
947
+ return (typeof tag === "string" &&
948
+ !["boolean", "id"].includes(tag) &&
949
+ zGuardSetSessionConfigOptionRequestCustom.safeParse(value).success);
950
+ },
951
+ };
952
+ /**
953
+ * Validated type guards for `RequestPermissionOutcome`'s known variants.
954
+ *
955
+ * Each guard validates the variant's payload, not just its discriminant
956
+ * tag: a malformed known variant (right tag, wrong payload) matches no
957
+ * guard — mirroring wire validation, which rejects such values instead
958
+ * of classifying them as custom.
959
+ *
960
+ * Guards check the value as given: fields that wire deserialization
961
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
962
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
963
+ * another variant's payload) guards are conservative where wire parsing
964
+ * may still accept the value — narrow wire-parsed values when exact
965
+ * parity matters.
966
+ */
967
+ export const RequestPermissionOutcome = {
968
+ /** Narrow to the `cancelled` variant, validating its payload. */
969
+ isCancelled(value) {
970
+ return (tagOf(value, "outcome") === "cancelled" &&
971
+ zGuardRequestPermissionOutcomeCancelled.safeParse(value).success);
972
+ },
973
+ /** Narrow to the `selected` variant, validating its payload. */
974
+ isSelected(value) {
975
+ return (tagOf(value, "outcome") === "selected" &&
976
+ zGuardRequestPermissionOutcomeSelected.safeParse(value).success);
977
+ },
978
+ /**
979
+ * Narrow to a custom or future variant: the `outcome` tag matches no known variant.
980
+ *
981
+ * TypeScript keeps the known variants in the narrowed union (they are
982
+ * structural subtypes of the catch-all), so read vendor payload keys
983
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
984
+ */
985
+ isCustom(value) {
986
+ const tag = tagOf(value, "outcome");
987
+ return typeof tag === "string" && !["cancelled", "selected"].includes(tag);
988
+ },
989
+ };
990
+ /**
991
+ * Validated type guards for `CreateElicitationResponse`'s known variants.
992
+ *
993
+ * Each guard validates the variant's payload, not just its discriminant
994
+ * tag: a malformed known variant (right tag, wrong payload) matches no
995
+ * guard — mirroring wire validation, which rejects such values instead
996
+ * of classifying them as custom.
997
+ *
998
+ * Guards check the value as given: fields that wire deserialization
999
+ * salvages to a default (e.g. a malformed `_meta`) are only normalized
1000
+ * by parsing, and for ambiguous raw shapes (a known tag combined with
1001
+ * another variant's payload) guards are conservative where wire parsing
1002
+ * may still accept the value — narrow wire-parsed values when exact
1003
+ * parity matters.
1004
+ *
1005
+ * @experimental
1006
+ */
1007
+ export const CreateElicitationResponse = {
1008
+ /** Narrow to the `accept` variant, validating its payload. */
1009
+ isAccept(value) {
1010
+ return (tagOf(value, "action") === "accept" &&
1011
+ zGuardCreateElicitationResponseAccept.safeParse(value).success);
1012
+ },
1013
+ /** Narrow to the `decline` variant, validating its payload. */
1014
+ isDecline(value) {
1015
+ return (tagOf(value, "action") === "decline" &&
1016
+ zGuardCreateElicitationResponseDecline.safeParse(value).success);
1017
+ },
1018
+ /** Narrow to the `cancel` variant, validating its payload. */
1019
+ isCancel(value) {
1020
+ return (tagOf(value, "action") === "cancel" &&
1021
+ zGuardCreateElicitationResponseCancel.safeParse(value).success);
1022
+ },
1023
+ /**
1024
+ * Narrow to a custom or future variant: the `action` tag matches no known variant.
1025
+ *
1026
+ * TypeScript keeps the known variants in the narrowed union (they are
1027
+ * structural subtypes of the catch-all), so read vendor payload keys
1028
+ * via a widening cast: `(value as Record<string, unknown>).someKey`.
1029
+ */
1030
+ isCustom(value) {
1031
+ const tag = tagOf(value, "action");
1032
+ return (typeof tag === "string" && !["accept", "cancel", "decline"].includes(tag));
1033
+ },
1034
+ };
1035
+ //# sourceMappingURL=guards.gen.js.map