@fses/workbench-app 0.2.0 → 0.2.1

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 (789) hide show
  1. package/WORKBENCH-CLOSURE.json +80 -0
  2. package/node_modules/@byteluck/agentic-protocol/LICENSE +9 -0
  3. package/node_modules/@byteluck/agentic-protocol/README.md +74 -0
  4. package/node_modules/@byteluck/agentic-protocol/dist/index.d.ts +1623 -0
  5. package/node_modules/@byteluck/agentic-protocol/dist/index.mjs +3380 -0
  6. package/node_modules/@byteluck/agentic-protocol/package.json +37 -0
  7. package/node_modules/@byteluck/workbench-skill-contracts/LICENSE +9 -0
  8. package/node_modules/@byteluck/workbench-skill-contracts/dist/index.d.ts +234 -0
  9. package/node_modules/@byteluck/workbench-skill-contracts/dist/index.mjs +394 -0
  10. package/node_modules/@byteluck/workbench-skill-contracts/package.json +37 -0
  11. package/node_modules/@fses/ai-chat/LICENSE +9 -0
  12. package/node_modules/@fses/ai-chat/README.md +320 -0
  13. package/node_modules/@fses/ai-chat/dist/chart-card/data.d.ts +12 -0
  14. package/node_modules/@fses/ai-chat/dist/chart-card/from-markdown.d.ts +11 -0
  15. package/node_modules/@fses/ai-chat/dist/chart-card/from-tool.d.ts +8 -0
  16. package/node_modules/@fses/ai-chat/dist/chart-card/options.d.ts +4 -0
  17. package/node_modules/@fses/ai-chat/dist/chart-card/trace.d.ts +19 -0
  18. package/node_modules/@fses/ai-chat/dist/chart-card/types.d.ts +133 -0
  19. package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDeferredDraft.vue.d.ts +13 -0
  20. package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDraft.vue.d.ts +18 -0
  21. package/node_modules/@fses/ai-chat/dist/components/ChartCardRenderer.vue.d.ts +11 -0
  22. package/node_modules/@fses/ai-chat/dist/components/ChatMessageItem.vue.d.ts +76 -0
  23. package/node_modules/@fses/ai-chat/dist/components/ChatMessageList.vue.d.ts +79 -0
  24. package/node_modules/@fses/ai-chat/dist/components/ChatSender.vue.d.ts +98 -0
  25. package/node_modules/@fses/ai-chat/dist/components/CollapsedToolActivity.vue.d.ts +9 -0
  26. package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +12 -0
  27. package/node_modules/@fses/ai-chat/dist/components/EChartsView.vue.d.ts +6 -0
  28. package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +306 -0
  29. package/node_modules/@fses/ai-chat/dist/components/PlanDraftCard.vue.d.ts +19 -0
  30. package/node_modules/@fses/ai-chat/dist/components/ShellExecPanel.vue.d.ts +6 -0
  31. package/node_modules/@fses/ai-chat/dist/components/TaskTodoPlanBar.vue.d.ts +6 -0
  32. package/node_modules/@fses/ai-chat/dist/components/ThinkingShimmer.vue.d.ts +6 -0
  33. package/node_modules/@fses/ai-chat/dist/composables/context-usage.d.ts +11 -0
  34. package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +465 -0
  35. package/node_modules/@fses/ai-chat/dist/composables/useChat.d.ts +2 -0
  36. package/node_modules/@fses/ai-chat/dist/composables/useSystemEChartsIcon.d.ts +11 -0
  37. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +11408 -0
  38. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +25 -0
  39. package/node_modules/@fses/ai-chat/dist/index.d.ts +17 -0
  40. package/node_modules/@fses/ai-chat/dist/plugin.d.ts +8 -0
  41. package/node_modules/@fses/ai-chat/dist/style.css +1 -0
  42. package/node_modules/@fses/ai-chat/dist/utils/assistant-markdown.d.ts +11 -0
  43. package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +22 -0
  44. package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-config-summary.d.ts +86 -0
  45. package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-field-label.d.ts +24 -0
  46. package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-source.d.ts +18 -0
  47. package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-title-source.d.ts +12 -0
  48. package/node_modules/@fses/ai-chat/dist/utils/chart-card-visibility.d.ts +24 -0
  49. package/node_modules/@fses/ai-chat/dist/utils/derived-process-labels.d.ts +13 -0
  50. package/node_modules/@fses/ai-chat/dist/utils/echarts-recommendation-icon.d.ts +36 -0
  51. package/node_modules/@fses/ai-chat/dist/utils/group-messages.d.ts +30 -0
  52. package/node_modules/@fses/ai-chat/dist/utils/status-activity.d.ts +48 -0
  53. package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template-icons.generated.d.ts +305 -0
  54. package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template.d.ts +20 -0
  55. package/node_modules/@fses/ai-chat/dist/utils/task-todo-plan.d.ts +40 -0
  56. package/node_modules/@fses/ai-chat/dist/utils/workbench-echarts-theme.d.ts +35 -0
  57. package/node_modules/@fses/ai-chat/package.json +81 -0
  58. package/node_modules/@fses/workbench-card/LICENSE +9 -0
  59. package/node_modules/@fses/workbench-card/README.md +81 -0
  60. package/node_modules/@fses/workbench-card/dist/chart/index.d.ts +8 -0
  61. package/node_modules/@fses/workbench-card/dist/fses-workbench-card-echarts-protocol.js +2230 -0
  62. package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +33731 -0
  63. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +21238 -0
  64. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -0
  65. package/node_modules/@fses/workbench-card/dist/index.d.ts +11 -0
  66. package/node_modules/@fses/workbench-card/dist/registry/cardRegistry.d.ts +50 -0
  67. package/node_modules/@fses/workbench-card/dist/registry/compositeCardPatterns.d.ts +39 -0
  68. package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateCategories.d.ts +20 -0
  69. package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.d.ts +1158 -0
  70. package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.generated.d.ts +1141 -0
  71. package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateTypes.d.ts +76 -0
  72. package/node_modules/@fses/workbench-card/dist/registry/index.d.ts +10 -0
  73. package/node_modules/@fses/workbench-card/dist/renderers/WorkbenchBlockRenderer.vue.d.ts +55 -0
  74. package/node_modules/@fses/workbench-card/dist/renderers/chart/ChartRegistry.vue.d.ts +22 -0
  75. package/node_modules/@fses/workbench-card/dist/renderers/chart/EChartsProtocolRenderer.vue.d.ts +34 -0
  76. package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +219 -0
  77. package/node_modules/@fses/workbench-card/dist/renderers/chart/chartResponsiveLayout.d.ts +47 -0
  78. package/node_modules/@fses/workbench-card/dist/renderers/chart/dynamicEchartOption.d.ts +30 -0
  79. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/adapter.d.ts +73 -0
  80. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/composite.converter.d.ts +11 -0
  81. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/configOnly.converter.d.ts +11 -0
  82. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/geo.converter.d.ts +10 -0
  83. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/graphic.converter.d.ts +10 -0
  84. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/layout.converter.d.ts +11 -0
  85. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/network.converter.d.ts +10 -0
  86. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/scene3D.converter.d.ts +11 -0
  87. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/series.converter.d.ts +10 -0
  88. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/table.converter.d.ts +10 -0
  89. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/timeline.converter.d.ts +11 -0
  90. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/transition.converter.d.ts +11 -0
  91. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tree.converter.d.ts +10 -0
  92. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tuple.converter.d.ts +10 -0
  93. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/index.d.ts +9 -0
  94. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/merger.d.ts +16 -0
  95. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/types.d.ts +447 -0
  96. package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsRuntimeInteractions.d.ts +30 -0
  97. package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTitle.d.ts +13 -0
  98. package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTooltipPortal.d.ts +12 -0
  99. package/node_modules/@fses/workbench-card/dist/renderers/chart/types.d.ts +47 -0
  100. package/node_modules/@fses/workbench-card/dist/renderers/chart/useEchart.d.ts +29 -0
  101. package/node_modules/@fses/workbench-card/dist/renderers/chart/workbenchChartTheme.d.ts +36 -0
  102. package/node_modules/@fses/workbench-card/dist/renderers/custom-canvas/canvasLayoutBindings.d.ts +86 -0
  103. package/node_modules/@fses/workbench-card/dist/renderers/hostBridge.d.ts +61 -0
  104. package/node_modules/@fses/workbench-card/dist/renderers/index.d.ts +17 -0
  105. package/node_modules/@fses/workbench-card/dist/renderers/native/nativeBindings.d.ts +145 -0
  106. package/node_modules/@fses/workbench-card/dist/renderers/nested/nestedBlockBindings.d.ts +107 -0
  107. package/node_modules/@fses/workbench-card/dist/renderers/quickLinkDisplay.d.ts +24 -0
  108. package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceCompositeBindings.d.ts +171 -0
  109. package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceRiskAndStrategyBindings.d.ts +91 -0
  110. package/node_modules/@fses/workbench-card/dist/renderers/resizableTable.d.ts +51 -0
  111. package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -0
  112. package/node_modules/@fses/workbench-card/dist/renderers/tableDisplay.d.ts +25 -0
  113. package/node_modules/@fses/workbench-card/dist/renderers/useWorkbenchBlockRendererBindings.d.ts +580 -0
  114. package/node_modules/@fses/workbench-card/dist/shell/workbenchVisualShell.d.ts +48 -0
  115. package/node_modules/@fses/workbench-card/dist/style.css +1 -0
  116. package/node_modules/@fses/workbench-card/dist/types/block.d.ts +2002 -0
  117. package/node_modules/@fses/workbench-card/dist/types/canvas.d.ts +25 -0
  118. package/node_modules/@fses/workbench-card/dist/types/echartsProtocol.d.ts +445 -0
  119. package/node_modules/@fses/workbench-card/dist/types/index.d.ts +10 -0
  120. package/node_modules/@fses/workbench-card/dist/types/registry.d.ts +7 -0
  121. package/node_modules/@fses/workbench-card/dist/types/runtime.d.ts +34 -0
  122. package/node_modules/@fses/workbench-card/package.json +82 -0
  123. package/node_modules/@fses/workbench-card/src/chart/index.ts +8 -0
  124. package/node_modules/@fses/workbench-card/src/index.ts +13 -0
  125. package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +476 -0
  126. package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +206 -0
  127. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +74 -0
  128. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +19951 -0
  129. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.ts +32 -0
  130. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateTypes.ts +83 -0
  131. package/node_modules/@fses/workbench-card/src/registry/index.ts +10 -0
  132. package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +2728 -0
  133. package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +221 -0
  134. package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +304 -0
  135. package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +311 -0
  136. package/node_modules/@fses/workbench-card/src/renderers/chart/chartResponsiveLayout.ts +172 -0
  137. package/node_modules/@fses/workbench-card/src/renderers/chart/dynamicEchartOption.ts +127 -0
  138. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/adapter.ts +1349 -0
  139. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/composite.converter.ts +71 -0
  140. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/configOnly.converter.ts +45 -0
  141. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/geo.converter.ts +97 -0
  142. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/graphic.converter.ts +59 -0
  143. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/layout.converter.ts +53 -0
  144. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/network.converter.ts +82 -0
  145. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/scene3D.converter.ts +73 -0
  146. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/series.converter.ts +795 -0
  147. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/table.converter.ts +195 -0
  148. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/timeline.converter.ts +62 -0
  149. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/transition.converter.ts +58 -0
  150. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tree.converter.ts +75 -0
  151. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tuple.converter.ts +112 -0
  152. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/index.ts +10 -0
  153. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/merger.ts +109 -0
  154. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/types.ts +515 -0
  155. package/node_modules/@fses/workbench-card/src/renderers/chart/echartsRuntimeInteractions.ts +450 -0
  156. package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTitle.ts +94 -0
  157. package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTooltipPortal.ts +140 -0
  158. package/node_modules/@fses/workbench-card/src/renderers/chart/types.ts +53 -0
  159. package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +1820 -0
  160. package/node_modules/@fses/workbench-card/src/renderers/chart/workbenchChartTheme.ts +240 -0
  161. package/node_modules/@fses/workbench-card/src/renderers/custom-canvas/canvasLayoutBindings.ts +660 -0
  162. package/node_modules/@fses/workbench-card/src/renderers/hostBridge.ts +74 -0
  163. package/node_modules/@fses/workbench-card/src/renderers/index.ts +25 -0
  164. package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +1081 -0
  165. package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +1349 -0
  166. package/node_modules/@fses/workbench-card/src/renderers/quickLinkDisplay.ts +53 -0
  167. package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +3205 -0
  168. package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +1004 -0
  169. package/node_modules/@fses/workbench-card/src/renderers/resizableTable.ts +136 -0
  170. package/node_modules/@fses/workbench-card/src/renderers/tableDisplay.ts +140 -0
  171. package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +3192 -0
  172. package/node_modules/@fses/workbench-card/src/shell/workbenchVisualShell.ts +228 -0
  173. package/node_modules/@fses/workbench-card/src/styles/workbench-card.css +343 -0
  174. package/node_modules/@fses/workbench-card/src/types/block.ts +2487 -0
  175. package/node_modules/@fses/workbench-card/src/types/canvas.ts +30 -0
  176. package/node_modules/@fses/workbench-card/src/types/echartsProtocol.ts +513 -0
  177. package/node_modules/@fses/workbench-card/src/types/index.ts +10 -0
  178. package/node_modules/@fses/workbench-card/src/types/registry.ts +17 -0
  179. package/node_modules/@fses/workbench-card/src/types/runtime.ts +31 -0
  180. package/node_modules/dompurify/LICENSE +568 -0
  181. package/node_modules/dompurify/README.md +523 -0
  182. package/node_modules/dompurify/dist/purify.cjs.d.ts +451 -0
  183. package/node_modules/dompurify/dist/purify.cjs.js +1472 -0
  184. package/node_modules/dompurify/dist/purify.cjs.js.map +1 -0
  185. package/node_modules/dompurify/dist/purify.es.d.mts +448 -0
  186. package/node_modules/dompurify/dist/purify.es.mjs +1470 -0
  187. package/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
  188. package/node_modules/dompurify/dist/purify.js +1478 -0
  189. package/node_modules/dompurify/dist/purify.js.map +1 -0
  190. package/node_modules/dompurify/dist/purify.min.js +3 -0
  191. package/node_modules/dompurify/dist/purify.min.js.map +1 -0
  192. package/node_modules/dompurify/package.json +168 -0
  193. package/node_modules/zod/LICENSE +21 -0
  194. package/node_modules/zod/README.md +208 -0
  195. package/node_modules/zod/index.cjs +33 -0
  196. package/node_modules/zod/index.d.cts +4 -0
  197. package/node_modules/zod/index.d.ts +4 -0
  198. package/node_modules/zod/index.js +4 -0
  199. package/node_modules/zod/package.json +118 -0
  200. package/node_modules/zod/src/index.ts +4 -0
  201. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  202. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  203. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  204. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  205. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  206. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  207. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  208. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  209. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  210. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  211. package/node_modules/zod/src/v3/errors.ts +13 -0
  212. package/node_modules/zod/src/v3/external.ts +6 -0
  213. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  214. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  215. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  216. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  217. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  218. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  219. package/node_modules/zod/src/v3/index.ts +4 -0
  220. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  221. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  222. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  223. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  224. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  225. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  226. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  227. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  228. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  229. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  230. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  231. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  232. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  233. package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  234. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  235. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  236. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  237. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  238. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  239. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  240. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  241. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  242. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  243. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  244. package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  245. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  246. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  247. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  248. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  249. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  250. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  251. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  252. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  253. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  254. package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  255. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  256. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  257. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  258. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  259. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  260. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  261. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  262. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  263. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  264. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  265. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  266. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  267. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  268. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  269. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  270. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  271. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  272. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  273. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  274. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  275. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  276. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  277. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  278. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  279. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  280. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  281. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  282. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  283. package/node_modules/zod/src/v3/types.ts +5136 -0
  284. package/node_modules/zod/src/v4/classic/checks.ts +30 -0
  285. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  286. package/node_modules/zod/src/v4/classic/compat.ts +66 -0
  287. package/node_modules/zod/src/v4/classic/errors.ts +75 -0
  288. package/node_modules/zod/src/v4/classic/external.ts +50 -0
  289. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  290. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  291. package/node_modules/zod/src/v4/classic/parse.ts +33 -0
  292. package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  293. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  294. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  295. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  296. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  297. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  298. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  299. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  300. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  301. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  302. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  303. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  304. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  305. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  306. package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  307. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  308. package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  309. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  310. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  311. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  312. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  313. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  314. package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  315. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  316. package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  317. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  318. package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  319. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  320. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  321. package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  322. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  323. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  324. package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  325. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  326. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  327. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  328. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  329. package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  330. package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  331. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  332. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  333. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  334. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  335. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  336. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  337. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  338. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  339. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  340. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  341. package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  342. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  343. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  344. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  345. package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  346. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  347. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  348. package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  349. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  350. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  351. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  352. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  353. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  354. package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  355. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  356. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  357. package/node_modules/zod/src/v4/core/api.ts +1594 -0
  358. package/node_modules/zod/src/v4/core/checks.ts +1283 -0
  359. package/node_modules/zod/src/v4/core/config.ts +15 -0
  360. package/node_modules/zod/src/v4/core/core.ts +134 -0
  361. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  362. package/node_modules/zod/src/v4/core/errors.ts +424 -0
  363. package/node_modules/zod/src/v4/core/function.ts +176 -0
  364. package/node_modules/zod/src/v4/core/index.ts +15 -0
  365. package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  366. package/node_modules/zod/src/v4/core/parse.ts +94 -0
  367. package/node_modules/zod/src/v4/core/regexes.ts +135 -0
  368. package/node_modules/zod/src/v4/core/registries.ts +96 -0
  369. package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  370. package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  371. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  372. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  373. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  374. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  375. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  376. package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  377. package/node_modules/zod/src/v4/core/util.ts +775 -0
  378. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  379. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  380. package/node_modules/zod/src/v4/index.ts +4 -0
  381. package/node_modules/zod/src/v4/locales/ar.ts +125 -0
  382. package/node_modules/zod/src/v4/locales/az.ts +121 -0
  383. package/node_modules/zod/src/v4/locales/be.ts +184 -0
  384. package/node_modules/zod/src/v4/locales/ca.ts +127 -0
  385. package/node_modules/zod/src/v4/locales/cs.ts +142 -0
  386. package/node_modules/zod/src/v4/locales/de.ts +124 -0
  387. package/node_modules/zod/src/v4/locales/en.ts +127 -0
  388. package/node_modules/zod/src/v4/locales/eo.ts +125 -0
  389. package/node_modules/zod/src/v4/locales/es.ts +125 -0
  390. package/node_modules/zod/src/v4/locales/fa.ts +134 -0
  391. package/node_modules/zod/src/v4/locales/fi.ts +131 -0
  392. package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  393. package/node_modules/zod/src/v4/locales/fr.ts +124 -0
  394. package/node_modules/zod/src/v4/locales/he.ts +125 -0
  395. package/node_modules/zod/src/v4/locales/hu.ts +126 -0
  396. package/node_modules/zod/src/v4/locales/id.ts +125 -0
  397. package/node_modules/zod/src/v4/locales/index.ts +39 -0
  398. package/node_modules/zod/src/v4/locales/it.ts +125 -0
  399. package/node_modules/zod/src/v4/locales/ja.ts +122 -0
  400. package/node_modules/zod/src/v4/locales/kh.ts +126 -0
  401. package/node_modules/zod/src/v4/locales/ko.ts +131 -0
  402. package/node_modules/zod/src/v4/locales/mk.ts +127 -0
  403. package/node_modules/zod/src/v4/locales/ms.ts +124 -0
  404. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  405. package/node_modules/zod/src/v4/locales/no.ts +124 -0
  406. package/node_modules/zod/src/v4/locales/ota.ts +125 -0
  407. package/node_modules/zod/src/v4/locales/pl.ts +126 -0
  408. package/node_modules/zod/src/v4/locales/ps.ts +133 -0
  409. package/node_modules/zod/src/v4/locales/pt.ts +123 -0
  410. package/node_modules/zod/src/v4/locales/ru.ts +184 -0
  411. package/node_modules/zod/src/v4/locales/sl.ts +126 -0
  412. package/node_modules/zod/src/v4/locales/sv.ts +127 -0
  413. package/node_modules/zod/src/v4/locales/ta.ts +125 -0
  414. package/node_modules/zod/src/v4/locales/th.ts +126 -0
  415. package/node_modules/zod/src/v4/locales/tr.ts +121 -0
  416. package/node_modules/zod/src/v4/locales/ua.ts +126 -0
  417. package/node_modules/zod/src/v4/locales/ur.ts +126 -0
  418. package/node_modules/zod/src/v4/locales/vi.ts +125 -0
  419. package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  420. package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  421. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  422. package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  423. package/node_modules/zod/src/v4/mini/external.ts +40 -0
  424. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  425. package/node_modules/zod/src/v4/mini/iso.ts +62 -0
  426. package/node_modules/zod/src/v4/mini/parse.ts +1 -0
  427. package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  428. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  429. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  430. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  431. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  432. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  433. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  434. package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  435. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  436. package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  437. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  438. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  439. package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  440. package/node_modules/zod/src/v4-mini/index.ts +1 -0
  441. package/node_modules/zod/v3/ZodError.cjs +138 -0
  442. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  443. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  444. package/node_modules/zod/v3/ZodError.js +133 -0
  445. package/node_modules/zod/v3/errors.cjs +17 -0
  446. package/node_modules/zod/v3/errors.d.cts +5 -0
  447. package/node_modules/zod/v3/errors.d.ts +5 -0
  448. package/node_modules/zod/v3/errors.js +9 -0
  449. package/node_modules/zod/v3/external.cjs +22 -0
  450. package/node_modules/zod/v3/external.d.cts +6 -0
  451. package/node_modules/zod/v3/external.d.ts +6 -0
  452. package/node_modules/zod/v3/external.js +6 -0
  453. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  454. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  455. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  456. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  457. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  458. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  459. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  460. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  461. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  462. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  463. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  464. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  465. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  466. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  467. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  468. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  469. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  470. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  471. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  472. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  473. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  474. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  475. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  476. package/node_modules/zod/v3/helpers/util.js +133 -0
  477. package/node_modules/zod/v3/index.cjs +33 -0
  478. package/node_modules/zod/v3/index.d.cts +4 -0
  479. package/node_modules/zod/v3/index.d.ts +4 -0
  480. package/node_modules/zod/v3/index.js +4 -0
  481. package/node_modules/zod/v3/locales/en.cjs +111 -0
  482. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  483. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  484. package/node_modules/zod/v3/locales/en.js +109 -0
  485. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  486. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  487. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  488. package/node_modules/zod/v3/standard-schema.js +1 -0
  489. package/node_modules/zod/v3/types.cjs +3775 -0
  490. package/node_modules/zod/v3/types.d.cts +1031 -0
  491. package/node_modules/zod/v3/types.d.ts +1031 -0
  492. package/node_modules/zod/v3/types.js +3693 -0
  493. package/node_modules/zod/v4/classic/checks.cjs +32 -0
  494. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  495. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  496. package/node_modules/zod/v4/classic/checks.js +1 -0
  497. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  498. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  499. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  500. package/node_modules/zod/v4/classic/coerce.js +17 -0
  501. package/node_modules/zod/v4/classic/compat.cjs +57 -0
  502. package/node_modules/zod/v4/classic/compat.d.cts +46 -0
  503. package/node_modules/zod/v4/classic/compat.d.ts +46 -0
  504. package/node_modules/zod/v4/classic/compat.js +27 -0
  505. package/node_modules/zod/v4/classic/errors.cjs +67 -0
  506. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  507. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  508. package/node_modules/zod/v4/classic/errors.js +41 -0
  509. package/node_modules/zod/v4/classic/external.cjs +70 -0
  510. package/node_modules/zod/v4/classic/external.d.cts +13 -0
  511. package/node_modules/zod/v4/classic/external.d.ts +13 -0
  512. package/node_modules/zod/v4/classic/external.js +18 -0
  513. package/node_modules/zod/v4/classic/index.cjs +33 -0
  514. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  515. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  516. package/node_modules/zod/v4/classic/index.js +4 -0
  517. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  518. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  519. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  520. package/node_modules/zod/v4/classic/iso.js +30 -0
  521. package/node_modules/zod/v4/classic/parse.cjs +32 -0
  522. package/node_modules/zod/v4/classic/parse.d.cts +23 -0
  523. package/node_modules/zod/v4/classic/parse.d.ts +23 -0
  524. package/node_modules/zod/v4/classic/parse.js +6 -0
  525. package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  526. package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  527. package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  528. package/node_modules/zod/v4/classic/schemas.js +1006 -0
  529. package/node_modules/zod/v4/core/api.cjs +1039 -0
  530. package/node_modules/zod/v4/core/api.d.cts +284 -0
  531. package/node_modules/zod/v4/core/api.d.ts +284 -0
  532. package/node_modules/zod/v4/core/api.js +906 -0
  533. package/node_modules/zod/v4/core/checks.cjs +591 -0
  534. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  535. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  536. package/node_modules/zod/v4/core/checks.js +565 -0
  537. package/node_modules/zod/v4/core/core.cjs +67 -0
  538. package/node_modules/zod/v4/core/core.d.cts +49 -0
  539. package/node_modules/zod/v4/core/core.d.ts +49 -0
  540. package/node_modules/zod/v4/core/core.js +61 -0
  541. package/node_modules/zod/v4/core/doc.cjs +39 -0
  542. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  543. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  544. package/node_modules/zod/v4/core/doc.js +35 -0
  545. package/node_modules/zod/v4/core/errors.cjs +226 -0
  546. package/node_modules/zod/v4/core/errors.d.cts +208 -0
  547. package/node_modules/zod/v4/core/errors.d.ts +208 -0
  548. package/node_modules/zod/v4/core/errors.js +195 -0
  549. package/node_modules/zod/v4/core/function.cjs +102 -0
  550. package/node_modules/zod/v4/core/function.d.cts +52 -0
  551. package/node_modules/zod/v4/core/function.d.ts +52 -0
  552. package/node_modules/zod/v4/core/function.js +75 -0
  553. package/node_modules/zod/v4/core/index.cjs +44 -0
  554. package/node_modules/zod/v4/core/index.d.cts +15 -0
  555. package/node_modules/zod/v4/core/index.d.ts +15 -0
  556. package/node_modules/zod/v4/core/index.js +15 -0
  557. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  558. package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  559. package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  560. package/node_modules/zod/v4/core/json-schema.js +1 -0
  561. package/node_modules/zod/v4/core/parse.cjs +87 -0
  562. package/node_modules/zod/v4/core/parse.d.cts +25 -0
  563. package/node_modules/zod/v4/core/parse.d.ts +25 -0
  564. package/node_modules/zod/v4/core/parse.js +57 -0
  565. package/node_modules/zod/v4/core/regexes.cjs +103 -0
  566. package/node_modules/zod/v4/core/regexes.d.cts +62 -0
  567. package/node_modules/zod/v4/core/regexes.d.ts +62 -0
  568. package/node_modules/zod/v4/core/regexes.js +95 -0
  569. package/node_modules/zod/v4/core/registries.cjs +56 -0
  570. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  571. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  572. package/node_modules/zod/v4/core/registries.js +51 -0
  573. package/node_modules/zod/v4/core/schemas.cjs +1748 -0
  574. package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  575. package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  576. package/node_modules/zod/v4/core/schemas.js +1717 -0
  577. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  578. package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  579. package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  580. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  581. package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  582. package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  583. package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  584. package/node_modules/zod/v4/core/to-json-schema.js +849 -0
  585. package/node_modules/zod/v4/core/util.cjs +539 -0
  586. package/node_modules/zod/v4/core/util.d.cts +183 -0
  587. package/node_modules/zod/v4/core/util.d.ts +183 -0
  588. package/node_modules/zod/v4/core/util.js +493 -0
  589. package/node_modules/zod/v4/core/versions.cjs +8 -0
  590. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  591. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  592. package/node_modules/zod/v4/core/versions.js +5 -0
  593. package/node_modules/zod/v4/index.cjs +22 -0
  594. package/node_modules/zod/v4/index.d.cts +3 -0
  595. package/node_modules/zod/v4/index.d.ts +3 -0
  596. package/node_modules/zod/v4/index.js +3 -0
  597. package/node_modules/zod/v4/locales/ar.cjs +142 -0
  598. package/node_modules/zod/v4/locales/ar.d.cts +4 -0
  599. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  600. package/node_modules/zod/v4/locales/ar.js +116 -0
  601. package/node_modules/zod/v4/locales/az.cjs +141 -0
  602. package/node_modules/zod/v4/locales/az.d.cts +4 -0
  603. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  604. package/node_modules/zod/v4/locales/az.js +115 -0
  605. package/node_modules/zod/v4/locales/be.cjs +190 -0
  606. package/node_modules/zod/v4/locales/be.d.cts +4 -0
  607. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  608. package/node_modules/zod/v4/locales/be.js +164 -0
  609. package/node_modules/zod/v4/locales/ca.cjs +144 -0
  610. package/node_modules/zod/v4/locales/ca.d.cts +4 -0
  611. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  612. package/node_modules/zod/v4/locales/ca.js +118 -0
  613. package/node_modules/zod/v4/locales/cs.cjs +161 -0
  614. package/node_modules/zod/v4/locales/cs.d.cts +4 -0
  615. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  616. package/node_modules/zod/v4/locales/cs.js +135 -0
  617. package/node_modules/zod/v4/locales/de.cjs +142 -0
  618. package/node_modules/zod/v4/locales/de.d.cts +4 -0
  619. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  620. package/node_modules/zod/v4/locales/de.js +116 -0
  621. package/node_modules/zod/v4/locales/en.cjs +145 -0
  622. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  623. package/node_modules/zod/v4/locales/en.d.ts +5 -0
  624. package/node_modules/zod/v4/locales/en.js +117 -0
  625. package/node_modules/zod/v4/locales/eo.cjs +144 -0
  626. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  627. package/node_modules/zod/v4/locales/eo.d.ts +5 -0
  628. package/node_modules/zod/v4/locales/eo.js +116 -0
  629. package/node_modules/zod/v4/locales/es.cjs +143 -0
  630. package/node_modules/zod/v4/locales/es.d.cts +4 -0
  631. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  632. package/node_modules/zod/v4/locales/es.js +117 -0
  633. package/node_modules/zod/v4/locales/fa.cjs +148 -0
  634. package/node_modules/zod/v4/locales/fa.d.cts +4 -0
  635. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  636. package/node_modules/zod/v4/locales/fa.js +122 -0
  637. package/node_modules/zod/v4/locales/fi.cjs +148 -0
  638. package/node_modules/zod/v4/locales/fi.d.cts +4 -0
  639. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  640. package/node_modules/zod/v4/locales/fi.js +122 -0
  641. package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  642. package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  643. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  644. package/node_modules/zod/v4/locales/fr-CA.js +117 -0
  645. package/node_modules/zod/v4/locales/fr.cjs +142 -0
  646. package/node_modules/zod/v4/locales/fr.d.cts +4 -0
  647. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  648. package/node_modules/zod/v4/locales/fr.js +116 -0
  649. package/node_modules/zod/v4/locales/he.cjs +143 -0
  650. package/node_modules/zod/v4/locales/he.d.cts +4 -0
  651. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  652. package/node_modules/zod/v4/locales/he.js +117 -0
  653. package/node_modules/zod/v4/locales/hu.cjs +143 -0
  654. package/node_modules/zod/v4/locales/hu.d.cts +4 -0
  655. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  656. package/node_modules/zod/v4/locales/hu.js +117 -0
  657. package/node_modules/zod/v4/locales/id.cjs +142 -0
  658. package/node_modules/zod/v4/locales/id.d.cts +4 -0
  659. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  660. package/node_modules/zod/v4/locales/id.js +116 -0
  661. package/node_modules/zod/v4/locales/index.cjs +84 -0
  662. package/node_modules/zod/v4/locales/index.d.cts +39 -0
  663. package/node_modules/zod/v4/locales/index.d.ts +39 -0
  664. package/node_modules/zod/v4/locales/index.js +39 -0
  665. package/node_modules/zod/v4/locales/it.cjs +143 -0
  666. package/node_modules/zod/v4/locales/it.d.cts +4 -0
  667. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  668. package/node_modules/zod/v4/locales/it.js +117 -0
  669. package/node_modules/zod/v4/locales/ja.cjs +141 -0
  670. package/node_modules/zod/v4/locales/ja.d.cts +4 -0
  671. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  672. package/node_modules/zod/v4/locales/ja.js +115 -0
  673. package/node_modules/zod/v4/locales/kh.cjs +143 -0
  674. package/node_modules/zod/v4/locales/kh.d.cts +4 -0
  675. package/node_modules/zod/v4/locales/kh.d.ts +4 -0
  676. package/node_modules/zod/v4/locales/kh.js +117 -0
  677. package/node_modules/zod/v4/locales/ko.cjs +147 -0
  678. package/node_modules/zod/v4/locales/ko.d.cts +4 -0
  679. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  680. package/node_modules/zod/v4/locales/ko.js +121 -0
  681. package/node_modules/zod/v4/locales/mk.cjs +144 -0
  682. package/node_modules/zod/v4/locales/mk.d.cts +4 -0
  683. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  684. package/node_modules/zod/v4/locales/mk.js +118 -0
  685. package/node_modules/zod/v4/locales/ms.cjs +142 -0
  686. package/node_modules/zod/v4/locales/ms.d.cts +4 -0
  687. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  688. package/node_modules/zod/v4/locales/ms.js +116 -0
  689. package/node_modules/zod/v4/locales/nl.cjs +143 -0
  690. package/node_modules/zod/v4/locales/nl.d.cts +4 -0
  691. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  692. package/node_modules/zod/v4/locales/nl.js +117 -0
  693. package/node_modules/zod/v4/locales/no.cjs +142 -0
  694. package/node_modules/zod/v4/locales/no.d.cts +4 -0
  695. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  696. package/node_modules/zod/v4/locales/no.js +116 -0
  697. package/node_modules/zod/v4/locales/ota.cjs +143 -0
  698. package/node_modules/zod/v4/locales/ota.d.cts +4 -0
  699. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  700. package/node_modules/zod/v4/locales/ota.js +117 -0
  701. package/node_modules/zod/v4/locales/pl.cjs +143 -0
  702. package/node_modules/zod/v4/locales/pl.d.cts +4 -0
  703. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  704. package/node_modules/zod/v4/locales/pl.js +117 -0
  705. package/node_modules/zod/v4/locales/ps.cjs +148 -0
  706. package/node_modules/zod/v4/locales/ps.d.cts +4 -0
  707. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  708. package/node_modules/zod/v4/locales/ps.js +122 -0
  709. package/node_modules/zod/v4/locales/pt.cjs +142 -0
  710. package/node_modules/zod/v4/locales/pt.d.cts +4 -0
  711. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  712. package/node_modules/zod/v4/locales/pt.js +116 -0
  713. package/node_modules/zod/v4/locales/ru.cjs +190 -0
  714. package/node_modules/zod/v4/locales/ru.d.cts +4 -0
  715. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  716. package/node_modules/zod/v4/locales/ru.js +164 -0
  717. package/node_modules/zod/v4/locales/sl.cjs +143 -0
  718. package/node_modules/zod/v4/locales/sl.d.cts +4 -0
  719. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  720. package/node_modules/zod/v4/locales/sl.js +117 -0
  721. package/node_modules/zod/v4/locales/sv.cjs +144 -0
  722. package/node_modules/zod/v4/locales/sv.d.cts +4 -0
  723. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  724. package/node_modules/zod/v4/locales/sv.js +118 -0
  725. package/node_modules/zod/v4/locales/ta.cjs +143 -0
  726. package/node_modules/zod/v4/locales/ta.d.cts +4 -0
  727. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  728. package/node_modules/zod/v4/locales/ta.js +117 -0
  729. package/node_modules/zod/v4/locales/th.cjs +143 -0
  730. package/node_modules/zod/v4/locales/th.d.cts +4 -0
  731. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  732. package/node_modules/zod/v4/locales/th.js +117 -0
  733. package/node_modules/zod/v4/locales/tr.cjs +143 -0
  734. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  735. package/node_modules/zod/v4/locales/tr.d.ts +5 -0
  736. package/node_modules/zod/v4/locales/tr.js +115 -0
  737. package/node_modules/zod/v4/locales/ua.cjs +143 -0
  738. package/node_modules/zod/v4/locales/ua.d.cts +4 -0
  739. package/node_modules/zod/v4/locales/ua.d.ts +4 -0
  740. package/node_modules/zod/v4/locales/ua.js +117 -0
  741. package/node_modules/zod/v4/locales/ur.cjs +143 -0
  742. package/node_modules/zod/v4/locales/ur.d.cts +4 -0
  743. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  744. package/node_modules/zod/v4/locales/ur.js +117 -0
  745. package/node_modules/zod/v4/locales/vi.cjs +142 -0
  746. package/node_modules/zod/v4/locales/vi.d.cts +4 -0
  747. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  748. package/node_modules/zod/v4/locales/vi.js +116 -0
  749. package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  750. package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  751. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  752. package/node_modules/zod/v4/locales/zh-CN.js +116 -0
  753. package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  754. package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  755. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  756. package/node_modules/zod/v4/locales/zh-TW.js +117 -0
  757. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  758. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  759. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  760. package/node_modules/zod/v4/mini/checks.js +1 -0
  761. package/node_modules/zod/v4/mini/coerce.cjs +47 -0
  762. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  763. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  764. package/node_modules/zod/v4/mini/coerce.js +17 -0
  765. package/node_modules/zod/v4/mini/external.cjs +62 -0
  766. package/node_modules/zod/v4/mini/external.d.cts +11 -0
  767. package/node_modules/zod/v4/mini/external.d.ts +11 -0
  768. package/node_modules/zod/v4/mini/external.js +13 -0
  769. package/node_modules/zod/v4/mini/index.cjs +32 -0
  770. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  771. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  772. package/node_modules/zod/v4/mini/index.js +3 -0
  773. package/node_modules/zod/v4/mini/iso.cjs +60 -0
  774. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  775. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  776. package/node_modules/zod/v4/mini/iso.js +30 -0
  777. package/node_modules/zod/v4/mini/parse.cjs +8 -0
  778. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  779. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  780. package/node_modules/zod/v4/mini/parse.js +1 -0
  781. package/node_modules/zod/v4/mini/schemas.cjs +839 -0
  782. package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  783. package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  784. package/node_modules/zod/v4/mini/schemas.js +732 -0
  785. package/node_modules/zod/v4-mini/index.cjs +17 -0
  786. package/node_modules/zod/v4-mini/index.d.cts +1 -0
  787. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  788. package/node_modules/zod/v4-mini/index.js +1 -0
  789. package/package.json +99 -104
@@ -0,0 +1,1623 @@
1
+ //#region src/fde-core/identity.d.ts
2
+ interface FdeCoreServerRequestIdentityWire {
3
+ requestId: string;
4
+ requestRevision: number;
5
+ stateRevision: number;
6
+ threadId: string;
7
+ turnId: string;
8
+ }
9
+ type FdeCoreServerRequestIdentityKey = string;
10
+ interface FdeCoreResponseToRequestWire {
11
+ ownerTurnId: string;
12
+ requestId: string;
13
+ requestRevision: number;
14
+ requestStateRevision: number;
15
+ }
16
+ declare function fdeCoreServerRequestIdentityKey(identity: FdeCoreServerRequestIdentityWire): FdeCoreServerRequestIdentityKey;
17
+ declare function normalizeFdeCoreServerRequestIdentity(value: unknown): FdeCoreServerRequestIdentityWire;
18
+ declare function isFdeCoreServerRequestIdentityWire(value: unknown): value is FdeCoreServerRequestIdentityWire;
19
+ declare function normalizeFdeCoreResponseToRequestWire(value: unknown, fieldName?: string): FdeCoreResponseToRequestWire | undefined;
20
+ declare function normalizeFdeCoreResponseToRequestWireFromRecord(value: unknown, fieldName?: string): FdeCoreResponseToRequestWire | undefined;
21
+ declare function fdeCoreServerRequestIdentityFromResponseToRequest(input: {
22
+ responseToRequest: FdeCoreResponseToRequestWire;
23
+ threadId: string;
24
+ }): FdeCoreServerRequestIdentityWire;
25
+ //#endregion
26
+ //#region src/thread-item-notification-contract.d.ts
27
+ declare const FDE_TYPED_TURN_V2_PROTOCOL_VERSION: "fde_typed_turn_v2";
28
+ declare const FDE_TURN_STATUSES: readonly ["inProgress", "completed", "failed", "interrupted"];
29
+ type FdeTurnStatus = (typeof FDE_TURN_STATUSES)[number];
30
+ declare const FDE_TURN_ITEMS_VIEWS: readonly ["notLoaded", "summary", "full"];
31
+ type FdeTurnItemsView = (typeof FDE_TURN_ITEMS_VIEWS)[number];
32
+ declare const FDE_PUBLIC_ITEM_LIFECYCLES: readonly ["started", "updated", "completed"];
33
+ type FdeItemLifecycle = (typeof FDE_PUBLIC_ITEM_LIFECYCLES)[number];
34
+ declare const FDE_AGENT_MESSAGE_PHASES: readonly ["final_answer", "commentary"];
35
+ type FdeAgentMessagePhase = (typeof FDE_AGENT_MESSAGE_PHASES)[number];
36
+ declare const FDE_EXECUTION_STATUSES: readonly ["pending", "running", "succeeded", "failed", "declined"];
37
+ type FdeExecutionStatus = (typeof FDE_EXECUTION_STATUSES)[number];
38
+ declare const FDE_EVENT_APPENDED_NOTIFICATION_METHODS: readonly ["item/started", "item/updated", "item/completed", "serverRequest/resolved", "fde-core/event.watermark", "fde-core/turn.started", "fde-core/turn.completed", "fde-core/turn.failed", "fde-core/turn.cancelled", "fde/archiveResource/saved"];
39
+ declare const FDE_DELTA_NOTIFICATION_METHODS: readonly ["item/commandExecution/outputDelta", "item/fileChange/patchUpdated", "item/agentMessage/delta", "item/plan/delta", "item/reasoning/summaryTextDelta", "item/mcpToolCall/progress"];
40
+ declare const FDE_PROJECTION_BACKED_LIVE_NOTIFICATION_METHODS: readonly ["runtime.state.updated"];
41
+ declare const FDE_ADAPTER_LIVE_NOTIFICATION_METHODS: readonly ["fde-core/turn.started", "fde-core/turn.completed", "fde-core/turn.failed", "fde-core/turn.cancelled", "fde/archiveResource/saved"];
42
+ declare const FDE_SUBSCRIPTION_NOTIFICATION_METHODS: readonly ["item/started", "item/updated", "item/completed", "serverRequest/resolved", "fde-core/event.watermark", "fde-core/turn.started", "fde-core/turn.completed", "fde-core/turn.failed", "fde-core/turn.cancelled", "fde/archiveResource/saved", "item/commandExecution/outputDelta", "item/fileChange/patchUpdated", "item/agentMessage/delta", "item/plan/delta", "item/reasoning/summaryTextDelta", "item/mcpToolCall/progress", "runtime.state.updated"];
43
+ type FdeEventAppendedNotificationMethod = (typeof FDE_EVENT_APPENDED_NOTIFICATION_METHODS)[number];
44
+ type FdeDeltaNotificationMethod = (typeof FDE_DELTA_NOTIFICATION_METHODS)[number];
45
+ type FdeProjectionBackedLiveNotificationMethod = (typeof FDE_PROJECTION_BACKED_LIVE_NOTIFICATION_METHODS)[number];
46
+ type FdeSubscriptionNotificationMethod = (typeof FDE_SUBSCRIPTION_NOTIFICATION_METHODS)[number];
47
+ type FdeAdapterLiveNotificationMethod = (typeof FDE_ADAPTER_LIVE_NOTIFICATION_METHODS)[number];
48
+ type FdeThreadItemType = 'userMessage' | 'agentMessage' | 'reasoning' | 'plan' | 'commandExecution' | 'mcpToolCall' | 'dynamicToolCall' | 'collabAgentToolCall' | 'webSearch' | 'imageGeneration' | 'skillCall' | 'fileChange' | 'artifact' | 'confirmation' | 'clarification' | 'diagnostic' | 'error';
49
+ type FdeArtifactSourceCollection = 'threadItem' | 'platformResourceIndex' | 'runtimeAttachment';
50
+ interface FdeThreadItemBase {
51
+ id: string;
52
+ type: FdeThreadItemType;
53
+ createdAtMs?: number;
54
+ updatedAtMs?: number;
55
+ }
56
+ interface FdeArtifactRef {
57
+ id?: string;
58
+ resourceId?: string;
59
+ artifactId?: string;
60
+ fileKey?: string;
61
+ logicalPath?: string;
62
+ path?: string;
63
+ title?: string;
64
+ sourceCollection: FdeArtifactSourceCollection;
65
+ }
66
+ interface FdeArtifactIndexEntry {
67
+ id: string;
68
+ title: string;
69
+ path?: string;
70
+ fileKey?: string;
71
+ artifactId?: string;
72
+ resourceId?: string;
73
+ sourceCollection: FdeArtifactSourceCollection;
74
+ }
75
+ interface FdeAttachmentRef {
76
+ id: string;
77
+ resourceId: string;
78
+ displayName: string;
79
+ mimeType?: string;
80
+ sizeBytes?: number;
81
+ downloadUrl?: string;
82
+ }
83
+ interface FdeItemBoundRequestIdentity {
84
+ approvalRequestId?: string;
85
+ boundItemId?: string;
86
+ boundItemType?: 'commandExecution' | 'fileChange';
87
+ }
88
+ type FdeRequiredActionResponse = {
89
+ actionId: string;
90
+ type: 'text';
91
+ text: string;
92
+ attachments?: FdeAttachmentRef[];
93
+ } | {
94
+ actionId: string;
95
+ type: 'choice';
96
+ selectedOptionIds: string[];
97
+ text?: string;
98
+ attachments?: FdeAttachmentRef[];
99
+ } | {
100
+ actionId: string;
101
+ type: 'form';
102
+ values: Record<string, string | number | boolean | string[] | null>;
103
+ attachments?: FdeAttachmentRef[];
104
+ };
105
+ type FdeRequiredActionState = 'pending' | 'completed' | 'cancelled' | 'expired';
106
+ interface FdeRequiredActionOption {
107
+ id: string;
108
+ label: string;
109
+ description?: string;
110
+ }
111
+ interface FdeRequiredActionField {
112
+ id: string;
113
+ label: string;
114
+ type: 'text' | 'number' | 'boolean' | 'choice' | 'multichoice';
115
+ required?: boolean;
116
+ options?: FdeRequiredActionOption[];
117
+ }
118
+ type FdeRequiredAction = ({
119
+ actionId: string;
120
+ itemId: string;
121
+ sourceItemType: 'confirmation' | 'clarification';
122
+ type: 'text';
123
+ title: string;
124
+ prompt: string;
125
+ state: 'pending';
126
+ allowAttachments?: boolean;
127
+ } & FdeItemBoundRequestIdentity) | ({
128
+ actionId: string;
129
+ itemId: string;
130
+ sourceItemType: 'confirmation' | 'clarification';
131
+ type: 'choice';
132
+ title: string;
133
+ prompt: string;
134
+ state: 'pending';
135
+ options: FdeRequiredActionOption[];
136
+ allowMultiple?: boolean;
137
+ allowEmpty?: boolean;
138
+ allowTextFallback?: boolean;
139
+ allowAttachments?: boolean;
140
+ } & FdeItemBoundRequestIdentity) | ({
141
+ actionId: string;
142
+ itemId: string;
143
+ sourceItemType: 'confirmation' | 'clarification';
144
+ type: 'form';
145
+ title: string;
146
+ prompt: string;
147
+ state: 'pending';
148
+ fields: FdeRequiredActionField[];
149
+ allowAttachments?: boolean;
150
+ } & FdeItemBoundRequestIdentity);
151
+ interface FdeTurnError {
152
+ message: string;
153
+ code?: string;
154
+ detail?: string;
155
+ }
156
+ interface FdeFileChangeEntry {
157
+ diff: string;
158
+ kind: {
159
+ type: 'add' | 'delete';
160
+ } | {
161
+ movePath?: string;
162
+ type: 'update';
163
+ };
164
+ path: string;
165
+ }
166
+ interface FdeTurnDiffSnapshot {
167
+ fileCount: number;
168
+ sourceSeq?: number;
169
+ unifiedDiff: string;
170
+ updatedAt?: string;
171
+ }
172
+ interface FdePlanStep {
173
+ id?: string;
174
+ status: 'pending' | 'inProgress' | 'completed';
175
+ step: string;
176
+ }
177
+ interface FdeTurnPlanSnapshot {
178
+ explanation?: string;
179
+ itemId?: string;
180
+ sourceSeq?: number;
181
+ steps: FdePlanStep[];
182
+ text?: string;
183
+ updatedAt?: string;
184
+ }
185
+ type FdeToolKind = 'mcp' | 'dynamic' | 'skill' | 'unknown';
186
+ type FdeRequestDisplayState = 'pending' | 'answered' | 'cancelled';
187
+ interface FdeRequestDisplayIdentity {
188
+ ownerTurnId: string;
189
+ requestId: string;
190
+ requestRevision: number;
191
+ stateRevision: number;
192
+ threadId: string;
193
+ }
194
+ type FdeWireUserInput = {
195
+ attachment_id: string;
196
+ mime_type?: string;
197
+ name?: string;
198
+ parse_status?: 'failed' | 'not_parsed' | 'parsed';
199
+ parsed_content_item_id?: string;
200
+ parsed_text_ref?: string;
201
+ size_bytes: number;
202
+ type: 'attachment';
203
+ } | {
204
+ attachment_id: string;
205
+ mime_type?: string;
206
+ name?: string;
207
+ parse_status?: 'failed' | 'not_parsed' | 'parsed';
208
+ parsed_content_item_id?: string;
209
+ parsed_text_ref?: string;
210
+ size_bytes: number;
211
+ type: 'screenshot';
212
+ } | {
213
+ data?: Record<string, unknown>;
214
+ resource_id: string;
215
+ resource_type?: string;
216
+ title?: string;
217
+ type: 'resource_ref';
218
+ } | {
219
+ text: string;
220
+ type: 'text';
221
+ };
222
+ type FdeFullThreadItem = (FdeThreadItemBase & {
223
+ type: 'userMessage';
224
+ clientId?: string;
225
+ clientRequestId?: string;
226
+ content: FdeWireUserInput[];
227
+ sourceSeq: number;
228
+ text?: string;
229
+ }) | (FdeThreadItemBase & {
230
+ type: 'agentMessage';
231
+ text: string;
232
+ phase: FdeAgentMessagePhase;
233
+ sourceSeq: number;
234
+ }) | (FdeThreadItemBase & {
235
+ type: 'reasoning';
236
+ sourceSeq: number;
237
+ summary: string[];
238
+ }) | (FdeThreadItemBase & {
239
+ type: 'plan';
240
+ sourceSeq: number;
241
+ text: string;
242
+ }) | (FdeThreadItemBase & {
243
+ type: 'commandExecution';
244
+ sourceSeq: number;
245
+ command: string;
246
+ cwd?: string;
247
+ status: FdeExecutionStatus;
248
+ aggregatedOutput?: string;
249
+ approvalRequestId?: string;
250
+ exitCode?: number | null;
251
+ durationMs?: number | null;
252
+ }) | (FdeThreadItemBase & {
253
+ type: 'mcpToolCall';
254
+ sourceSeq: number;
255
+ server?: string;
256
+ tool: string;
257
+ status: FdeExecutionStatus;
258
+ arguments?: unknown;
259
+ result?: unknown;
260
+ error?: FdeTurnError | null;
261
+ durationMs?: number | null;
262
+ toolKind?: FdeToolKind;
263
+ }) | (FdeThreadItemBase & {
264
+ type: 'dynamicToolCall';
265
+ sourceSeq: number;
266
+ namespace?: string;
267
+ tool: string;
268
+ status: FdeExecutionStatus;
269
+ arguments?: unknown;
270
+ result?: unknown;
271
+ error?: FdeTurnError | null;
272
+ durationMs?: number | null;
273
+ toolKind?: FdeToolKind;
274
+ }) | (FdeThreadItemBase & {
275
+ type: 'collabAgentToolCall';
276
+ sourceSeq: number;
277
+ tool: string;
278
+ status: FdeExecutionStatus;
279
+ receiverThreadIds: string[];
280
+ prompt?: string;
281
+ toolKind?: FdeToolKind;
282
+ }) | (FdeThreadItemBase & {
283
+ type: 'webSearch';
284
+ sourceSeq: number;
285
+ query: string;
286
+ results?: unknown[];
287
+ status?: FdeExecutionStatus;
288
+ }) | (FdeThreadItemBase & {
289
+ type: 'imageGeneration';
290
+ artifactRefs?: FdeArtifactRef[];
291
+ prompt: string;
292
+ sourceSeq: number;
293
+ status?: FdeExecutionStatus;
294
+ }) | (FdeThreadItemBase & {
295
+ type: 'skillCall';
296
+ sourceSeq: number;
297
+ skillId?: string;
298
+ toolName?: string;
299
+ toolCallId?: string;
300
+ title: string;
301
+ status: FdeExecutionStatus;
302
+ result?: unknown;
303
+ artifactRefs?: FdeArtifactRef[];
304
+ toolKind?: FdeToolKind;
305
+ }) | (FdeThreadItemBase & {
306
+ type: 'fileChange';
307
+ sourceSeq: number;
308
+ approvalRequestId?: string;
309
+ changes?: FdeFileChangeEntry[];
310
+ path?: string;
311
+ status?: FdeExecutionStatus;
312
+ artifactRefs?: FdeArtifactRef[];
313
+ }) | (FdeThreadItemBase & {
314
+ type: 'artifact';
315
+ sourceSeq: number;
316
+ title: string;
317
+ artifactRefs: FdeArtifactRef[];
318
+ }) | (FdeThreadItemBase & {
319
+ type: 'confirmation';
320
+ displaySnapshot: {
321
+ prompt: string;
322
+ publicPayload?: Record<string, unknown>;
323
+ title?: string;
324
+ };
325
+ requestIdentity: FdeRequestDisplayIdentity;
326
+ requestType?: string;
327
+ response?: Record<string, unknown>;
328
+ sourceSeq: number;
329
+ state: FdeRequestDisplayState;
330
+ }) | (FdeThreadItemBase & {
331
+ type: 'clarification';
332
+ displaySnapshot: {
333
+ prompt: string;
334
+ publicPayload?: Record<string, unknown>;
335
+ title?: string;
336
+ };
337
+ requestIdentity: FdeRequestDisplayIdentity;
338
+ requestType?: string;
339
+ response?: Record<string, unknown>;
340
+ sourceSeq: number;
341
+ state: FdeRequestDisplayState;
342
+ }) | (FdeThreadItemBase & {
343
+ type: 'diagnostic';
344
+ sourceSeq: number;
345
+ title: string;
346
+ detail?: string;
347
+ debugId?: string;
348
+ publicPayload?: Record<string, unknown>;
349
+ severity?: 'debug' | 'error' | 'info' | 'warning';
350
+ }) | (FdeThreadItemBase & {
351
+ type: 'error';
352
+ sourceSeq: number;
353
+ message: string;
354
+ code?: string;
355
+ detail?: string;
356
+ });
357
+ type FdeThreadItemPreview = (FdeThreadItemBase & {
358
+ type: 'userMessage' | 'agentMessage' | 'plan';
359
+ text?: string;
360
+ }) | (FdeThreadItemBase & {
361
+ type: 'artifact' | 'collabAgentToolCall' | 'commandExecution' | 'dynamicToolCall' | 'fileChange' | 'imageGeneration' | 'mcpToolCall' | 'skillCall' | 'webSearch';
362
+ title?: string;
363
+ }) | (FdeThreadItemBase & {
364
+ type: 'clarification' | 'confirmation';
365
+ title?: string;
366
+ state?: FdeRequestDisplayState;
367
+ }) | (FdeThreadItemBase & {
368
+ type: 'diagnostic' | 'error';
369
+ message?: string;
370
+ title?: string;
371
+ });
372
+ interface FdeTurn {
373
+ clientRequestId?: string;
374
+ id: string;
375
+ status: FdeTurnStatus;
376
+ itemsView: FdeTurnItemsView;
377
+ items: FdeFullThreadItem[] | FdeThreadItemPreview[];
378
+ artifactIndex: FdeArtifactIndexEntry[];
379
+ artifactIndexRevision: number;
380
+ artifactIndexUpdatedAtMs?: number;
381
+ diff?: FdeTurnDiffSnapshot;
382
+ startedAtMs: number | null;
383
+ completedAtMs: number | null;
384
+ durationMs: number | null;
385
+ error?: FdeTurnError | null;
386
+ plan?: FdeTurnPlanSnapshot;
387
+ }
388
+ type FdeEventAppendedNotification = {
389
+ method: 'item/started';
390
+ params: {
391
+ threadId: string;
392
+ turnId: string;
393
+ item: FdeFullThreadItem;
394
+ startedAtMs: number;
395
+ };
396
+ } | {
397
+ method: 'item/updated';
398
+ params: {
399
+ threadId: string;
400
+ turnId: string;
401
+ item: FdeFullThreadItem;
402
+ updatedAtMs: number;
403
+ };
404
+ } | {
405
+ method: 'item/completed';
406
+ params: {
407
+ threadId: string;
408
+ turnId: string;
409
+ item: FdeFullThreadItem;
410
+ completedAtMs: number;
411
+ };
412
+ } | {
413
+ method: 'serverRequest/resolved';
414
+ params: {
415
+ requestId: string;
416
+ requestRevision: number;
417
+ stateRevision: number;
418
+ threadId: string;
419
+ turnId: string;
420
+ };
421
+ } | {
422
+ method: 'fde-core/event.watermark' | 'fde-core/turn.started' | 'fde-core/turn.completed' | 'fde-core/turn.failed' | 'fde-core/turn.cancelled' | 'fde/archiveResource/saved';
423
+ params?: Record<string, unknown>;
424
+ };
425
+ type FdeDeltaNotification = {
426
+ method: 'item/agentMessage/delta';
427
+ params: {
428
+ threadId: string;
429
+ turnId: string;
430
+ itemId: string;
431
+ delta: string;
432
+ };
433
+ } | {
434
+ method: 'item/commandExecution/outputDelta';
435
+ params: {
436
+ delta: string;
437
+ itemId: string;
438
+ threadId: string;
439
+ turnId: string;
440
+ };
441
+ } | {
442
+ method: 'item/fileChange/patchUpdated';
443
+ params: {
444
+ changes: FdeFileChangeEntry[];
445
+ itemId: string;
446
+ threadId: string;
447
+ turnId: string;
448
+ };
449
+ } | {
450
+ method: 'item/plan/delta';
451
+ params: {
452
+ threadId: string;
453
+ turnId: string;
454
+ itemId: string;
455
+ delta: string;
456
+ };
457
+ } | {
458
+ method: 'item/reasoning/summaryTextDelta';
459
+ params: {
460
+ threadId: string;
461
+ turnId: string;
462
+ itemId: string;
463
+ summaryIndex: number;
464
+ delta: string;
465
+ };
466
+ } | {
467
+ method: 'item/mcpToolCall/progress';
468
+ params: {
469
+ itemId: string;
470
+ message: string;
471
+ threadId: string;
472
+ turnId: string;
473
+ };
474
+ };
475
+ type FdeSubscriptionNotification = FdeEventAppendedNotification | FdeDeltaNotification;
476
+ interface FdeTypedEventEnvelope<TNotification extends FdeSubscriptionNotification = FdeSubscriptionNotification> {
477
+ envelopeId: string;
478
+ offset: number;
479
+ conversationId: string;
480
+ messageId: string;
481
+ turnId: string;
482
+ occurredAtMs: number;
483
+ notification: TNotification;
484
+ }
485
+ //#endregion
486
+ //#region src/memory/types.d.ts
487
+ type FdeMemoryScope = 'platform' | 'tenant' | 'app' | 'resource' | 'user' | 'conversation';
488
+ type FdeMemoryTrustLevel = 'admin_confirmed' | 'owner_confirmed' | 'user_confirmed' | 'imported';
489
+ type FdeMemoryRecordStatus = 'active' | 'archived' | 'deleted';
490
+ type FdeMemoryCandidateStatus = 'pending_review' | 'accepted' | 'edited_accepted' | 'ignored' | 'rejected_scope' | 'expired';
491
+ type FdeMemoryRecordVisibility = 'model_readable' | 'ui_only' | 'disabled';
492
+ type FdeMemorySensitivity = 'public' | 'internal' | 'sensitive';
493
+ type FdeMemoryRecordCategory = 'profile' | 'preference' | 'business_term' | 'design_decision' | 'constraint' | 'open_question' | 'workflow_pattern';
494
+ type FdeMemoryReviewPolicy = 'auto_low_risk' | 'manual_user' | 'manual_owner' | 'manual_admin' | 'scope_denied';
495
+ type FdeMemoryRiskLevel = 'low' | 'medium' | 'high';
496
+ type FdeMemoryContextSnapshotDetailStatus = 'available' | 'pending' | 'unavailable';
497
+ //#endregion
498
+ //#region src/memory/wire.d.ts
499
+ interface FdeMemoryPublicScopeWire {
500
+ redacted: boolean;
501
+ display_key?: string;
502
+ }
503
+ interface FdeMemoryScopeRefWire {
504
+ scope: FdeMemoryScope;
505
+ ref_type: 'signed_scope_token';
506
+ ref: string;
507
+ }
508
+ interface FdeMemoryScopeContextWire {
509
+ app_id?: string;
510
+ conversation_id?: string;
511
+ resource_type?: string;
512
+ resource_id?: string;
513
+ }
514
+ interface FdeMemoryScopesQueryWire extends FdeMemoryScopeContextWire {}
515
+ interface FdeMemoryScopeOptionWire {
516
+ scope: FdeMemoryScope;
517
+ scope_ref?: FdeMemoryScopeRefWire;
518
+ scope_context: FdeMemoryScopeContextWire;
519
+ scope_public: FdeMemoryPublicScopeWire;
520
+ readable: boolean;
521
+ writable: boolean;
522
+ save_mode: 'direct' | 'request' | 'none';
523
+ label?: string;
524
+ disabled_reason?: 'no_permission' | 'platform_write_disabled' | 'out_of_context';
525
+ }
526
+ interface FdeMemoryScopesResponseWire {
527
+ readable_scopes: FdeMemoryScopeOptionWire[];
528
+ writable_scopes: FdeMemoryScopeOptionWire[];
529
+ }
530
+ interface FdeMemorySaveIntentRequestWire {
531
+ proposed_scope: FdeMemoryScope;
532
+ scope_ref: FdeMemoryScopeRefWire;
533
+ scope_context: FdeMemoryScopeContextWire;
534
+ category: FdeMemoryRecordCategory;
535
+ title: string;
536
+ summary: string;
537
+ tags?: string[];
538
+ sensitivity?: FdeMemorySensitivity;
539
+ client_source?: {
540
+ conversation_id?: string;
541
+ turn_id?: string;
542
+ message_ids?: string[];
543
+ artifact_id?: string;
544
+ fact_id?: string;
545
+ selected_text_hash?: string;
546
+ };
547
+ }
548
+ interface FdeMemoryRecordWire {
549
+ memory_id: string;
550
+ scope: FdeMemoryScope;
551
+ scope_public: FdeMemoryPublicScopeWire;
552
+ category: FdeMemoryRecordCategory;
553
+ title: string;
554
+ summary: string;
555
+ tags: string[];
556
+ sensitivity: FdeMemorySensitivity;
557
+ visibility: FdeMemoryRecordVisibility;
558
+ trust_level: FdeMemoryTrustLevel;
559
+ status: FdeMemoryRecordStatus;
560
+ conflict_key?: string;
561
+ created_at: string;
562
+ updated_at: string;
563
+ valid_from?: string;
564
+ valid_until?: string;
565
+ invalidated_at?: string;
566
+ usage_count: number;
567
+ version: number;
568
+ }
569
+ type FdeMemoryCandidateDecisionAction = 'accept' | 'edit_and_accept' | 'ignore' | 'change_scope' | 'select_fallback_scope';
570
+ type FdeMemoryCaptureTriggerWire = 'ui_explicit_save' | 'nl_explicit_request' | 'model_inferred' | 'admin_import' | 'system_migration';
571
+ type FdeMemoryCandidateCaptureTriggerWire = FdeMemoryCaptureTriggerWire;
572
+ type FdeMemoryCaptureReasonWire = 'explicit_user_request' | 'model_inferred' | 'manual_created';
573
+ interface FdeMemoryCandidateSourceRefsWire {
574
+ conversation_id?: string;
575
+ turn_id?: string;
576
+ message_ids?: string[];
577
+ artifact_ids?: string[];
578
+ fact_ids?: string[];
579
+ primary_artifact_id?: string;
580
+ primary_fact_id?: string;
581
+ }
582
+ interface FdeMemoryCandidateWire {
583
+ candidate_id: string;
584
+ proposed_scope: FdeMemoryScope;
585
+ proposed_scope_public: FdeMemoryPublicScopeWire;
586
+ category: FdeMemoryRecordCategory;
587
+ title: string;
588
+ summary: string;
589
+ tags: string[];
590
+ sensitivity: FdeMemorySensitivity;
591
+ confidence: number;
592
+ conflict_key?: string;
593
+ review_policy: FdeMemoryReviewPolicy;
594
+ risk_level: FdeMemoryRiskLevel;
595
+ status: FdeMemoryCandidateStatus;
596
+ policy_id?: string;
597
+ fallback_scopes: FdeMemoryScopeOptionWire[];
598
+ accepted_memory_id?: string;
599
+ authorized_actions: FdeMemoryCandidateDecisionAction[];
600
+ capture_trigger?: FdeMemoryCandidateCaptureTriggerWire;
601
+ capture_reason?: FdeMemoryCaptureReasonWire;
602
+ source_refs?: FdeMemoryCandidateSourceRefsWire;
603
+ redacted: boolean;
604
+ redacted_reason?: 'scope_not_readable';
605
+ created_at: string;
606
+ updated_at: string;
607
+ }
608
+ type PublicMemoryContextRefWire = {
609
+ type: 'memory_record';
610
+ memory_id: string;
611
+ scope: FdeMemoryScope;
612
+ category?: FdeMemoryRecordCategory;
613
+ trust_level?: FdeMemoryTrustLevel;
614
+ title?: string;
615
+ summary: string;
616
+ reason: 'retrieved' | 'recent_write' | 'pinned';
617
+ rank: number;
618
+ token_estimate: number;
619
+ } | {
620
+ type: 'conversation_summary';
621
+ summary_id: string;
622
+ conversation_id: string;
623
+ summary: string;
624
+ reason: 'recent_summary';
625
+ rank: number;
626
+ token_estimate: number;
627
+ } | {
628
+ type: 'recent_message_range';
629
+ conversation_id: string;
630
+ from_message_seq?: number;
631
+ to_message_seq?: number;
632
+ reason: 'recent_messages';
633
+ rank: number;
634
+ token_estimate: number;
635
+ };
636
+ interface FdeMemoryContextSnapshotWire {
637
+ snapshot_id: string;
638
+ tenant_id: string;
639
+ conversation_id: string;
640
+ turn_id: string;
641
+ selected_count: number;
642
+ suppressed_count: number;
643
+ suppressed_reason_counts: Record<string, number>;
644
+ budget: {
645
+ max_tokens: number;
646
+ estimated_tokens: number;
647
+ dropped_count: number;
648
+ };
649
+ summary_available: boolean;
650
+ snapshot_detail_status: FdeMemoryContextSnapshotDetailStatus;
651
+ fallback_level: 'memory_summary_recent' | 'summary_recent' | 'recent_only';
652
+ selected_refs: PublicMemoryContextRefWire[];
653
+ created_at: string;
654
+ }
655
+ interface FdeSuppressedMemoryContextRefWire {
656
+ memory_id?: string;
657
+ summary_id?: string;
658
+ conversation_id?: string;
659
+ reason: 'budget_exceeded' | 'disabled' | 'sensitive' | 'scope_mismatch' | 'stale' | 'expired' | 'archived' | 'conflict_lower_priority';
660
+ selected_memory_id?: string;
661
+ conflict_key?: string;
662
+ scope?: FdeMemoryScope;
663
+ category?: FdeMemoryRecordCategory;
664
+ trust_level?: FdeMemoryTrustLevel;
665
+ }
666
+ interface FdeMemoryContextSnapshotDetailWire extends FdeMemoryContextSnapshotWire {
667
+ source_status: {
668
+ memory_provider_available: boolean;
669
+ summary_available: boolean;
670
+ recent_messages_available: boolean;
671
+ };
672
+ suppressed_refs: FdeSuppressedMemoryContextRefWire[];
673
+ budget_breakdown: Array<{
674
+ source: 'memory' | 'summary' | 'recent_messages';
675
+ estimated_tokens: number;
676
+ selected_count: number;
677
+ dropped_count: number;
678
+ }>;
679
+ }
680
+ interface FdeMemorySaveIntentResponseWire {
681
+ result: 'active_record' | 'pending_candidate' | 'rejected_scope_candidate';
682
+ record?: FdeMemoryRecordWire;
683
+ candidate?: FdeMemoryCandidateWire;
684
+ }
685
+ type FdeMemoryCandidateDecisionPatchWire = Partial<Pick<FdeMemoryCandidateWire, 'title' | 'summary' | 'tags' | 'category' | 'conflict_key'>>;
686
+ type FdeMemoryCandidateDecisionRequestWire = {
687
+ action: 'accept';
688
+ expected_status: Extract<FdeMemoryCandidateStatus, 'pending_review'>;
689
+ expected_updated_at: string;
690
+ reason?: string;
691
+ } | {
692
+ action: 'edit_and_accept';
693
+ expected_status: Extract<FdeMemoryCandidateStatus, 'pending_review'>;
694
+ expected_updated_at: string;
695
+ patch: FdeMemoryCandidateDecisionPatchWire;
696
+ reason?: string;
697
+ } | {
698
+ action: 'ignore';
699
+ expected_status: Extract<FdeMemoryCandidateStatus, 'pending_review' | 'rejected_scope'>;
700
+ expected_updated_at: string;
701
+ reason?: string;
702
+ } | {
703
+ action: 'change_scope';
704
+ expected_status: Extract<FdeMemoryCandidateStatus, 'pending_review' | 'rejected_scope'>;
705
+ expected_updated_at: string;
706
+ target_scope: FdeMemoryScope;
707
+ target_scope_ref: FdeMemoryScopeRefWire;
708
+ target_scope_context: FdeMemoryScopeContextWire;
709
+ reason?: string;
710
+ } | {
711
+ action: 'select_fallback_scope';
712
+ expected_status: Extract<FdeMemoryCandidateStatus, 'rejected_scope'>;
713
+ expected_updated_at: string;
714
+ fallback_scope: FdeMemoryScope;
715
+ fallback_scope_ref: FdeMemoryScopeRefWire;
716
+ fallback_scope_context: FdeMemoryScopeContextWire;
717
+ reason?: string;
718
+ };
719
+ interface FdeMemoryCandidateDecisionResponseWire {
720
+ result: 'candidate_updated' | 'record_created' | 'candidate_ignored';
721
+ candidate?: FdeMemoryCandidateWire;
722
+ record?: FdeMemoryRecordWire;
723
+ }
724
+ interface FdeMemoryRecordPatchRequestWire {
725
+ expected_version: number;
726
+ title?: string;
727
+ summary?: string;
728
+ tags?: string[];
729
+ sensitivity?: FdeMemorySensitivity;
730
+ valid_from?: string;
731
+ valid_until?: string;
732
+ conflict_key?: string;
733
+ reason?: string;
734
+ }
735
+ interface FdeMemoryRecordLifecycleRequestWire {
736
+ expected_version: number;
737
+ reason?: string;
738
+ }
739
+ declare const FDE_MEMORY_ADMIN_RECORD_CATEGORIES: readonly ["business_term", "design_decision", "constraint", "open_question", "workflow_pattern"];
740
+ type FdeMemoryAdminRecordCategoryWire = (typeof FDE_MEMORY_ADMIN_RECORD_CATEGORIES)[number];
741
+ interface FdeMemoryAdminRecordListQueryWire {
742
+ category?: FdeMemoryAdminRecordCategoryWire;
743
+ status?: FdeMemoryRecordStatus;
744
+ visibility?: FdeMemoryRecordVisibility;
745
+ q?: string;
746
+ cursor?: string;
747
+ limit?: number;
748
+ }
749
+ interface FdeMemoryAdminCreateRecordRequestWire {
750
+ category: FdeMemoryAdminRecordCategoryWire;
751
+ title: string;
752
+ summary: string;
753
+ tags?: string[];
754
+ sensitivity?: FdeMemorySensitivity;
755
+ valid_from?: string;
756
+ valid_until?: string;
757
+ reason?: string;
758
+ client_request_id?: string;
759
+ }
760
+ interface FdeMemoryAdminRecordLifecycleRequestWire {
761
+ expected_version: number;
762
+ reason?: string;
763
+ }
764
+ interface FdeMemoryRecordListQueryWire {
765
+ scope?: FdeMemoryScope;
766
+ category?: FdeMemoryRecordCategory;
767
+ trust_level?: FdeMemoryTrustLevel;
768
+ status?: FdeMemoryRecordStatus;
769
+ visibility?: FdeMemoryRecordVisibility;
770
+ source_conversation_id?: string;
771
+ q?: string;
772
+ cursor?: string;
773
+ limit?: number;
774
+ }
775
+ interface FdeMemoryCandidateListQueryWire {
776
+ scope?: FdeMemoryScope;
777
+ category?: FdeMemoryRecordCategory;
778
+ status?: FdeMemoryCandidateStatus;
779
+ review_policy?: FdeMemoryReviewPolicy;
780
+ risk_level?: FdeMemoryRiskLevel;
781
+ source_conversation_id?: string;
782
+ q?: string;
783
+ cursor?: string;
784
+ limit?: number;
785
+ }
786
+ interface FdeMemoryRecordListPageWire {
787
+ items: FdeMemoryRecordWire[];
788
+ next_cursor?: string;
789
+ total?: number;
790
+ }
791
+ interface FdeMemoryCandidateListPageWire {
792
+ items: FdeMemoryCandidateWire[];
793
+ next_cursor?: string;
794
+ total?: number;
795
+ }
796
+ declare function normalizeFdeMemorySaveIntentRequest(input: unknown): FdeMemorySaveIntentRequestWire;
797
+ declare function normalizeFdeMemoryCandidateDecisionRequest(input: unknown): FdeMemoryCandidateDecisionRequestWire;
798
+ declare function normalizeFdeMemoryRecordPatchRequest(input: unknown): FdeMemoryRecordPatchRequestWire;
799
+ declare function normalizeFdeMemoryRecordLifecycleRequest(input: unknown): FdeMemoryRecordLifecycleRequestWire;
800
+ declare function normalizeFdeMemoryAdminRecordListQuery(input: unknown): FdeMemoryAdminRecordListQueryWire;
801
+ declare function normalizeFdeMemoryAdminCreateRecordRequest(input: unknown): FdeMemoryAdminCreateRecordRequestWire;
802
+ declare function normalizeFdeMemoryAdminRecordLifecycleRequest(input: unknown): FdeMemoryAdminRecordLifecycleRequestWire;
803
+ declare function normalizeFdeMemoryRecordListQuery(input: unknown): FdeMemoryRecordListQueryWire;
804
+ declare function normalizeFdeMemoryCandidateListQuery(input: unknown): FdeMemoryCandidateListQueryWire;
805
+ declare function normalizeFdeMemoryScopesQuery(input: unknown): FdeMemoryScopesQueryWire;
806
+ //#endregion
807
+ //#region src/memory/index.d.ts
808
+ declare const FDE_MEMORY_RECORD_CATEGORIES: readonly ["profile", "preference", "business_term", "design_decision", "constraint", "open_question", "workflow_pattern"];
809
+ declare const FDE_MEMORY_SCOPES: readonly ["platform", "tenant", "app", "resource", "user", "conversation"];
810
+ declare const FDE_MEMORY_TRUST_LEVELS: readonly ["admin_confirmed", "owner_confirmed", "user_confirmed", "imported"];
811
+ //#endregion
812
+ //#region src/fde-core/index.d.ts
813
+ type FdeWireUserInput$1 = {
814
+ attachment_id: string;
815
+ mime_type?: string;
816
+ name?: string;
817
+ parse_status?: 'failed' | 'not_parsed' | 'parsed';
818
+ parsed_content_item_id?: string;
819
+ parsed_text_ref?: string;
820
+ size_bytes: number;
821
+ type: 'attachment';
822
+ } | {
823
+ attachment_id: string;
824
+ mime_type?: string;
825
+ name?: string;
826
+ parse_status?: 'failed' | 'not_parsed' | 'parsed';
827
+ parsed_content_item_id?: string;
828
+ parsed_text_ref?: string;
829
+ size_bytes: number;
830
+ type: 'screenshot';
831
+ } | {
832
+ data?: Record<string, unknown>;
833
+ resource_id: string;
834
+ resource_type?: string;
835
+ title?: string;
836
+ type: 'resource_ref';
837
+ } | {
838
+ text: string;
839
+ type: 'text';
840
+ };
841
+ type FdeCoreClientMethod = 'thread/read' | 'thread/resume' | 'thread/start' | 'thread/turns/list' | 'turn/continue' | 'turn/interrupt' | 'turn/read' | 'turn/start' | 'turn/steer';
842
+ type FdeCoreClientRequestEnvelope = {
843
+ id: string;
844
+ method: 'thread/read';
845
+ params: {
846
+ includeTurns?: boolean;
847
+ threadId: string;
848
+ };
849
+ } | {
850
+ id: string;
851
+ method: 'thread/resume';
852
+ params: {
853
+ afterOffset?: number;
854
+ includeRecentTurns?: number;
855
+ threadId: string;
856
+ };
857
+ } | {
858
+ id: string;
859
+ method: 'thread/start';
860
+ params: {
861
+ appId: string;
862
+ clientRequestId: string;
863
+ initialTitle?: string;
864
+ };
865
+ } | {
866
+ id: string;
867
+ method: 'thread/turns/list';
868
+ params: {
869
+ cursor?: string;
870
+ limit?: number;
871
+ threadId: string;
872
+ };
873
+ } | {
874
+ id: string;
875
+ method: 'turn/continue';
876
+ params: {
877
+ baseTurnId: string;
878
+ clientRequestId: string;
879
+ clientUserMessageId?: string;
880
+ expectedTaskSessionRevision: number;
881
+ input: FdeWireUserInput$1[];
882
+ taskSessionId: string;
883
+ threadId: string;
884
+ };
885
+ } | {
886
+ id: string;
887
+ method: 'turn/interrupt';
888
+ params: {
889
+ clientRequestId: string;
890
+ reason?: string;
891
+ threadId: string;
892
+ turnId: string;
893
+ };
894
+ } | {
895
+ id: string;
896
+ method: 'turn/read';
897
+ params: {
898
+ threadId: string;
899
+ turnId: string;
900
+ };
901
+ } | {
902
+ id: string;
903
+ method: 'turn/start';
904
+ params: {
905
+ capabilityId?: string;
906
+ clientRequestId: string;
907
+ clientUserMessageId?: string;
908
+ input: FdeWireUserInput$1[];
909
+ threadId: string;
910
+ };
911
+ } | {
912
+ id: string;
913
+ method: 'turn/steer';
914
+ params: {
915
+ clientRequestId: string;
916
+ clientUserMessageId?: string;
917
+ expectedTurnId: string;
918
+ input: FdeWireUserInput$1[];
919
+ threadId: string;
920
+ };
921
+ };
922
+ type FdeCoreClientResponseEnvelope = {
923
+ error: {
924
+ code: string;
925
+ data?: unknown;
926
+ message: string;
927
+ };
928
+ id: string;
929
+ } | {
930
+ id: string;
931
+ result: unknown;
932
+ };
933
+ type FdeCoreThreadResumeBootstrapFrame = Extract<FdeCoreSubscriptionFrame, {
934
+ kind: 'event_appended' | 'projection_snapshot';
935
+ }>;
936
+ interface FdeCoreThreadResumeResult {
937
+ bootstrapFrames: FdeCoreThreadResumeBootstrapFrame[];
938
+ latestOffset: number;
939
+ threadId: string;
940
+ }
941
+ type FdeCoreThreadStartResult = {
942
+ threadId: string;
943
+ title?: string;
944
+ };
945
+ type FdeCoreAckTurn = {
946
+ id: string;
947
+ items: [];
948
+ itemsView: Extract<FdeTurnItemsView, 'notLoaded'>;
949
+ status: Extract<FdeTurnStatus, 'inProgress'>;
950
+ };
951
+ type FdeCoreTurnStartResult = {
952
+ threadId: string;
953
+ turn: FdeCoreAckTurn;
954
+ };
955
+ type FdeCoreTurnContinueResult = {
956
+ continued: true;
957
+ responseTurnId: string;
958
+ taskSessionId: string;
959
+ threadId: string;
960
+ turn: FdeCoreAckTurn;
961
+ };
962
+ type FdeCoreServerResponseAcceptedResult = {
963
+ accepted: true;
964
+ responseTurnId: string;
965
+ turn: FdeCoreAckTurn;
966
+ };
967
+ interface FdeCoreRequestOption {
968
+ description?: string;
969
+ id: string;
970
+ label: string;
971
+ }
972
+ type FdeCoreApprovalDecision = 'approve' | 'cancel' | 'reject';
973
+ interface FdeCoreApprovalDecisionOption {
974
+ decision: FdeCoreApprovalDecision;
975
+ label: string;
976
+ style?: 'danger' | 'primary' | 'secondary';
977
+ }
978
+ type FdeCoreServerRequestBoundItemTypeWire = 'commandExecution' | 'fileChange';
979
+ declare const SYSTEM_ANALYSIS_FORMAL_SAVE_APPROVE_REQUEST_TYPE: "system_analysis.formal_save.approve";
980
+ declare const BUILD_FORMAL_SAVE_APPROVE_REQUEST_TYPE: "build.formal_save.approve";
981
+ declare const BUILD_RETIRED_SAVE_APPROVAL_REQUEST_TYPES: readonly ["build.overwrite.approve", "build.platform_sync.approve", "build.publish.approve"];
982
+ declare const BUILD_RETIRED_NON_SAVE_REQUEST_TYPES: readonly ["build.clarification", "build.semantic_target.clarification", "build.module.select", "build.requirement.clarification", "build.requirement.clarify", "build.structured_model_edit.clarification", "build.target.resolve", "build.model_blueprint.confirm", "build.model_blueprint.clarify", "build.model_blueprint.generation_failed", "build.model_edit_safety.resolve", "build.review.decide", "build.dependency_request", "build.source_dependency.select", "build_source_dependency_required", "build_module_required"];
983
+ declare const BUILD_RETIRED_NON_SAVE_PUBLIC_PAYLOAD_TYPES: readonly ["build_model_blueprint_confirmation", "build_goal_plan_required", "build_output_target_required", "build_skill_dependency_required", "build_source_dependency_required", "build_module_required", "build.semantic_clarification"];
984
+ type FdeCoreBuildRetiredNonSavePublicPayloadType = (typeof BUILD_RETIRED_NON_SAVE_PUBLIC_PAYLOAD_TYPES)[number];
985
+ declare const BUILD_RETIRED_NON_SAVE_SURFACE_KINDS: readonly ["build_source_dependency", "build_module_selection", "model_blueprint_confirmation"];
986
+ declare const BUILD_RETIRED_NON_SAVE_SURFACE_KIND_TO_PUBLIC_PAYLOAD_TYPE: {
987
+ readonly build_module_selection: "build_module_required";
988
+ readonly build_source_dependency: "build_source_dependency_required";
989
+ readonly model_blueprint_confirmation: "build_model_blueprint_confirmation";
990
+ };
991
+ type FdeCoreRequestField = {
992
+ id: string;
993
+ label: string;
994
+ options: FdeCoreRequestOption[];
995
+ required?: boolean;
996
+ type: 'multi_select' | 'single_select';
997
+ } | {
998
+ id: string;
999
+ label: string;
1000
+ required?: boolean;
1001
+ type: 'text' | 'textarea';
1002
+ };
1003
+ type FdeCoreUserInputRequestKind = 'choice' | 'form' | 'text';
1004
+ type FdeCoreServerResponseAnswerValue = {
1005
+ answers: string[];
1006
+ type: 'attachment_ids' | 'option_ids' | 'text';
1007
+ };
1008
+ type FdeCoreServerResponseAnswers = Record<string, FdeCoreServerResponseAnswerValue>;
1009
+ type FdeCoreBuildRequestPublicPayloadType = 'build_model_blueprint_confirmation' | 'build_module_required' | 'build_output_target_required' | 'build_source_dependency_required';
1010
+ interface FdeCoreBuildRequestCandidateSummaryGroupWire {
1011
+ primary_outputs?: Array<{
1012
+ operation?: string;
1013
+ page_kind?: string;
1014
+ resource_type: string;
1015
+ }>;
1016
+ source_dependencies?: Array<{
1017
+ resource_name?: string;
1018
+ resource_type: string;
1019
+ }>;
1020
+ }
1021
+ interface FdeCoreBuildSourceDependencyCandidateSummaryWire {
1022
+ dependency_id?: string;
1023
+ description?: string;
1024
+ label?: string;
1025
+ option_id?: string;
1026
+ resource_type: string;
1027
+ status?: string;
1028
+ }
1029
+ type FdeCoreBuildRequestCandidateSummaryWire = FdeCoreBuildRequestCandidateSummaryGroupWire | FdeCoreBuildSourceDependencyCandidateSummaryWire[];
1030
+ interface FdeCoreBuildRequestPublicPayloadSummaryWire {
1031
+ blueprint_summary?: Record<string, unknown>;
1032
+ candidate_summary?: FdeCoreBuildRequestCandidateSummaryWire;
1033
+ decision_mode?: 'clarify' | 'confirm';
1034
+ diagnostics?: Array<{
1035
+ code: string;
1036
+ message?: string;
1037
+ severity?: 'blocking' | 'info' | 'warning';
1038
+ }>;
1039
+ expected_patch_slots?: Array<Record<string, unknown>>;
1040
+ goal_id?: string;
1041
+ missing_slots?: Array<Record<string, unknown>>;
1042
+ next_action?: string;
1043
+ type: FdeCoreBuildRequestPublicPayloadType;
1044
+ }
1045
+ interface FdeCorePublicDiagnosticWire {
1046
+ code: string;
1047
+ message: string;
1048
+ severity: 'blocking' | 'info' | 'warning';
1049
+ targetPath?: string;
1050
+ }
1051
+ interface FdeCoreModelBlueprintFieldWire {
1052
+ code: string;
1053
+ dictionaryCode?: string;
1054
+ name: string;
1055
+ relationHint?: string;
1056
+ relationTargetCode?: string;
1057
+ required?: boolean;
1058
+ typeHint?: string;
1059
+ valueSource?: string;
1060
+ }
1061
+ interface FdeCoreModelBlueprintEntityWire {
1062
+ code: string;
1063
+ fieldCount: number;
1064
+ fields: FdeCoreModelBlueprintFieldWire[];
1065
+ title: string;
1066
+ }
1067
+ interface FdeCoreModelBlueprintDictionaryWire {
1068
+ code: string;
1069
+ title: string;
1070
+ valueCount?: number;
1071
+ valuesPreview: Array<{
1072
+ label: string;
1073
+ value: string;
1074
+ }>;
1075
+ }
1076
+ interface FdeCoreModelBlueprintSummaryWire {
1077
+ blueprintId: string;
1078
+ confidence?: number;
1079
+ dictionaries: FdeCoreModelBlueprintDictionaryWire[];
1080
+ entities: FdeCoreModelBlueprintEntityWire[];
1081
+ }
1082
+ interface FdeCoreModelBlueprintMissingSlotWire {
1083
+ blocking: boolean;
1084
+ candidates: Array<{
1085
+ description?: string;
1086
+ id: string;
1087
+ label: string;
1088
+ }>;
1089
+ field: string;
1090
+ owner: string;
1091
+ ownerId: string;
1092
+ reason: string;
1093
+ slotId: string;
1094
+ }
1095
+ interface FdeCoreModelBlueprintConfirmationSurfaceWire {
1096
+ blueprint: FdeCoreModelBlueprintSummaryWire;
1097
+ decisionMode: 'clarify' | 'confirm';
1098
+ diagnostics: FdeCorePublicDiagnosticWire[];
1099
+ goalId: string;
1100
+ kind: 'model_blueprint_confirmation';
1101
+ missingSlots: FdeCoreModelBlueprintMissingSlotWire[];
1102
+ nextAction: 'clarify_model_blueprint' | 'confirm_model_blueprint';
1103
+ version: 1;
1104
+ }
1105
+ interface FdeCoreBuildSourceDependencySurfaceWire {
1106
+ dependencies: Array<{
1107
+ blocking: boolean;
1108
+ candidates: Array<{
1109
+ description?: string;
1110
+ id: string;
1111
+ label: string;
1112
+ resourceType?: string;
1113
+ }>;
1114
+ dependencyId: string;
1115
+ reason: 'ambiguous' | 'missing' | 'not_found';
1116
+ resourceName?: string;
1117
+ resourceType: 'document' | 'form_page' | 'list_page' | 'model' | 'script' | 'workflow';
1118
+ }>;
1119
+ diagnostics: FdeCorePublicDiagnosticWire[];
1120
+ goalId?: string;
1121
+ kind: 'build_source_dependency';
1122
+ mode: 'ambiguous' | 'missing';
1123
+ version: 1;
1124
+ }
1125
+ interface FdeCoreBuildModuleSelectionSurfaceWire {
1126
+ diagnostics: FdeCorePublicDiagnosticWire[];
1127
+ goalId?: string;
1128
+ kind: 'build_module_selection';
1129
+ modules: Array<{
1130
+ description?: string;
1131
+ id: string;
1132
+ label: string;
1133
+ selected?: boolean;
1134
+ }>;
1135
+ version: 1;
1136
+ }
1137
+ interface FdeCoreFormalSaveApprovalSurfaceWire {
1138
+ diagnostics: FdeCorePublicDiagnosticWire[];
1139
+ kind: 'formal_save_approval';
1140
+ targetSummary: Array<{
1141
+ changeType?: 'create' | 'delete' | 'edit';
1142
+ id: string;
1143
+ label: string;
1144
+ operationSource: FdeCoreOperationSourceWire;
1145
+ platformSyncStatus: FdeCorePlatformSyncStatusWire;
1146
+ resourceOperation: FdeCoreResourceOperationWire;
1147
+ resourceType?: string;
1148
+ }>;
1149
+ title: string;
1150
+ version: 1;
1151
+ }
1152
+ type FdeCoreResourceOperationWire = 'create' | 'edit';
1153
+ type FdeCoreOperationSourceWire = 'runtime_resolution' | 'semantic_planner' | 'typed_user_decision';
1154
+ type FdeCorePlatformSyncStatusWire = 'failed' | 'failed_retryable' | 'failed_terminal' | 'not_required' | 'partial_write' | 'pending_user_confirm' | 'succeeded' | 'waived';
1155
+ type FdeCoreRequiredActionSurfaceWire = FdeCoreBuildModuleSelectionSurfaceWire | FdeCoreBuildSourceDependencySurfaceWire | FdeCoreFormalSaveApprovalSurfaceWire | FdeCoreModelBlueprintConfirmationSurfaceWire;
1156
+ type FdeCoreServerRequestEnvelope = {
1157
+ id: FdeCoreServerRequestIdentityKey;
1158
+ method: 'fde/serverRequest/approval';
1159
+ params: {
1160
+ actionId: string;
1161
+ approvalRequestId?: string;
1162
+ boundItemId?: string;
1163
+ boundItemType?: FdeCoreServerRequestBoundItemTypeWire;
1164
+ decisions: FdeCoreApprovalDecisionOption[];
1165
+ domain?: string;
1166
+ itemId: string;
1167
+ kind: 'approval';
1168
+ prompt: string;
1169
+ publicPayload?: Record<string, unknown>;
1170
+ requestId: string;
1171
+ requestRevision: number;
1172
+ requestType?: string;
1173
+ stateRevision: number;
1174
+ surface?: FdeCoreRequiredActionSurfaceWire;
1175
+ threadId: string;
1176
+ turnId: string;
1177
+ };
1178
+ } | {
1179
+ id: FdeCoreServerRequestIdentityKey;
1180
+ method: 'fde/serverRequest/userInput';
1181
+ params: {
1182
+ actionId: string;
1183
+ approvalRequestId?: string;
1184
+ boundItemId?: string;
1185
+ boundItemType?: FdeCoreServerRequestBoundItemTypeWire;
1186
+ domain?: string;
1187
+ fields?: FdeCoreRequestField[];
1188
+ itemId: string;
1189
+ kind: FdeCoreUserInputRequestKind;
1190
+ prompt: string;
1191
+ publicPayload?: Record<string, unknown>;
1192
+ requestId: string;
1193
+ requestRevision: number;
1194
+ requestType?: string;
1195
+ stateRevision: number;
1196
+ surface?: FdeCoreRequiredActionSurfaceWire;
1197
+ threadId: string;
1198
+ turnId: string;
1199
+ };
1200
+ };
1201
+ type FdeCoreLiveNotification = FdeCoreGenericLiveNotification | FdeCoreServerRequestResolvedNotification | FdeEventAppendedNotification | FdeLiveNotification;
1202
+ interface FdeCoreServerRequestResolvedNotification {
1203
+ method: 'serverRequest/resolved';
1204
+ params: FdeCoreServerRequestIdentityWire;
1205
+ }
1206
+ interface FdeCoreGenericLiveNotification {
1207
+ method: string;
1208
+ params?: Record<string, unknown>;
1209
+ }
1210
+ type FdeLiveNotification = FdeDeltaNotification | FdeRuntimeStateUpdatedNotification;
1211
+ interface FdeRuntimeStateUpdatedNotification {
1212
+ method: 'runtime.state.updated';
1213
+ params: FdeRuntimeStateSnapshotWire;
1214
+ }
1215
+ type FdeRuntimeRunStatusWire = 'running' | 'waiting_user' | 'completed' | 'failed' | 'cancelled';
1216
+ type FdeRuntimeRunPhaseWire = 'prework' | 'planning' | 'executing' | 'answering' | 'saving' | 'done';
1217
+ type FdeRuntimeActivityStatusWire = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';
1218
+ interface FdeRuntimeActivityWire {
1219
+ detail?: string;
1220
+ ended_at?: string;
1221
+ id: string;
1222
+ label: string;
1223
+ started_at?: string;
1224
+ status: FdeRuntimeActivityStatusWire;
1225
+ updated_at?: string;
1226
+ }
1227
+ interface FdeRuntimeGateWire {
1228
+ id: string;
1229
+ kind: 'approval' | 'server_request' | 'user_input';
1230
+ message?: string;
1231
+ request_id?: string;
1232
+ request_revision?: number;
1233
+ request_state_revision?: number;
1234
+ required_action_id?: string;
1235
+ status: 'cancelled' | 'pending' | 'resolved';
1236
+ title: string;
1237
+ turn_id?: string;
1238
+ }
1239
+ interface FdeRuntimeOutputRefWire {
1240
+ document_uid?: string;
1241
+ id: string;
1242
+ kind: 'artifact' | 'file' | 'message' | 'panel';
1243
+ mime_type?: string;
1244
+ rel_path?: string;
1245
+ title: string;
1246
+ uri?: string;
1247
+ }
1248
+ interface FdeRuntimeSourceRefWire {
1249
+ document_uid?: string;
1250
+ id: string;
1251
+ kind: 'artifact' | 'file' | 'knowledge' | 'tool';
1252
+ rel_path?: string;
1253
+ title: string;
1254
+ uri?: string;
1255
+ }
1256
+ interface FdeRuntimeRightPanelWire {
1257
+ document_uid?: string;
1258
+ kind: 'approval' | 'artifact' | 'diff' | 'produce';
1259
+ ref_id?: string;
1260
+ title: string;
1261
+ }
1262
+ interface FdeRuntimeStateSnapshotWire {
1263
+ activities: FdeRuntimeActivityWire[];
1264
+ clock: {
1265
+ revision: number;
1266
+ source_offset?: number;
1267
+ updated_at: string;
1268
+ };
1269
+ content_policy: {
1270
+ contains_internal_reasoning: false;
1271
+ contains_raw_tool_payload: false;
1272
+ visible_reply_contract?: 'terminal_summary';
1273
+ };
1274
+ gates: FdeRuntimeGateWire[];
1275
+ outputs: FdeRuntimeOutputRefWire[];
1276
+ right_panel?: FdeRuntimeRightPanelWire;
1277
+ run: {
1278
+ elapsed_ms?: number;
1279
+ ended_at?: string;
1280
+ message_id?: string;
1281
+ phase: FdeRuntimeRunPhaseWire;
1282
+ run_id: string;
1283
+ started_at?: string;
1284
+ status: FdeRuntimeRunStatusWire;
1285
+ thread_id: string;
1286
+ turn_id: string;
1287
+ updated_at: string;
1288
+ };
1289
+ sources: FdeRuntimeSourceRefWire[];
1290
+ summary: {
1291
+ current?: string;
1292
+ done: string[];
1293
+ next: string[];
1294
+ outputs: FdeRuntimeOutputRefWire[];
1295
+ };
1296
+ version: 1;
1297
+ }
1298
+ interface FdeCoreStreamErrorWire {
1299
+ code?: string;
1300
+ detail?: string;
1301
+ message: string;
1302
+ }
1303
+ interface FdeCoreThreadProjectionMetadataWire {
1304
+ lastEventCursor: number;
1305
+ }
1306
+ interface FdeCoreArtifactPanelItemWire {
1307
+ artifact_kind?: string;
1308
+ artifactId: string;
1309
+ locator?: Record<string, unknown>;
1310
+ operationSource?: FdeCoreOperationSourceWire;
1311
+ path: string;
1312
+ platformSyncStatus?: FdeCorePlatformSyncStatusWire;
1313
+ resourceOperation?: FdeCoreResourceOperationWire;
1314
+ title?: string;
1315
+ turnId: string;
1316
+ }
1317
+ interface FdeCoreArtifactRefWire {
1318
+ artifact_kind?: string;
1319
+ artifactId: string;
1320
+ locator?: Record<string, unknown>;
1321
+ operationSource?: FdeCoreOperationSourceWire;
1322
+ path: string;
1323
+ platformSyncStatus?: FdeCorePlatformSyncStatusWire;
1324
+ resourceOperation?: FdeCoreResourceOperationWire;
1325
+ title?: string;
1326
+ }
1327
+ interface FdeCoreActivityWire {
1328
+ detail?: string;
1329
+ durationMs?: number;
1330
+ endedAt?: string;
1331
+ id: string;
1332
+ kind: string;
1333
+ path?: string;
1334
+ sourceEvent?: string;
1335
+ startedAt?: string;
1336
+ status: 'completed' | 'failed' | 'pending' | 'running';
1337
+ summary: string;
1338
+ }
1339
+ interface FdeCoreFactWire {
1340
+ [key: string]: unknown;
1341
+ }
1342
+ interface FdeCoreCapabilitySummaryWire {
1343
+ capabilityId: string;
1344
+ displayName?: string;
1345
+ mode: string;
1346
+ reasonCode?: string;
1347
+ }
1348
+ interface FdeCorePublicErrorWire {
1349
+ code?: string;
1350
+ detail?: string;
1351
+ message: string;
1352
+ nextAction?: string;
1353
+ targetPath?: string;
1354
+ title?: string;
1355
+ }
1356
+ interface FdeCoreSaveCompletionWire {
1357
+ completionId: string;
1358
+ operation: 'formal_save' | 'platform_sync';
1359
+ requestId: string;
1360
+ requestRevision: number;
1361
+ requestStateRevision: number;
1362
+ status: 'succeeded';
1363
+ summary: string;
1364
+ targetPaths: string[];
1365
+ }
1366
+ interface FdeCoreMemoryContextProjectionWire {
1367
+ snapshot_id: string;
1368
+ selected_count: number;
1369
+ suppressed_count: number;
1370
+ suppressed_reason_counts: Record<string, number>;
1371
+ budget: {
1372
+ max_tokens: number;
1373
+ estimated_tokens: number;
1374
+ };
1375
+ summary_available: boolean;
1376
+ snapshot_detail_status: 'available' | 'pending' | 'unavailable';
1377
+ fallback_level: 'memory_summary_recent' | 'summary_recent' | 'recent_only';
1378
+ selected_refs: PublicMemoryContextRefWire[];
1379
+ }
1380
+ type FdeCoreTurnStatusWire = 'awaiting_input' | 'cancelled' | 'completed' | 'failed' | 'running';
1381
+ type FdeCoreTurnWireBase = {
1382
+ artifacts: FdeCoreArtifactRefWire[];
1383
+ baseTurnId?: string;
1384
+ capability?: FdeCoreCapabilitySummaryWire;
1385
+ clientRequestId?: string;
1386
+ durationMs?: number;
1387
+ endedAt?: string;
1388
+ error?: FdeCorePublicErrorWire;
1389
+ facts: FdeCoreFactWire[];
1390
+ diff?: FdeTurnDiffSnapshot;
1391
+ memoryContext?: FdeCoreMemoryContextProjectionWire;
1392
+ metadata: FdeCoreThreadProjectionMetadataWire;
1393
+ plan?: FdeTurnPlanSnapshot;
1394
+ responseToRequest?: FdeCoreResponseToRequestWire;
1395
+ runtimeStates?: FdeRuntimeStateSnapshotWire[];
1396
+ saveCompletions?: FdeCoreSaveCompletionWire[];
1397
+ startedAt?: string;
1398
+ status: FdeCoreTurnStatusWire;
1399
+ threadId: string;
1400
+ turnId: string;
1401
+ };
1402
+ type FdeCoreTurnWire = (FdeCoreTurnWireBase & {
1403
+ items: FdeFullThreadItem[];
1404
+ itemsView: Extract<FdeTurnItemsView, 'full'>;
1405
+ projectionHighWater: number;
1406
+ }) | (FdeCoreTurnWireBase & {
1407
+ items: FdeThreadItemPreview[];
1408
+ itemsView: Extract<FdeTurnItemsView, 'summary'>;
1409
+ previewHighWater?: number;
1410
+ }) | {
1411
+ artifacts: FdeCoreArtifactRefWire[];
1412
+ baseTurnId?: string;
1413
+ capability?: FdeCoreCapabilitySummaryWire;
1414
+ clientRequestId?: string;
1415
+ durationMs?: number;
1416
+ endedAt?: string;
1417
+ error?: FdeCorePublicErrorWire;
1418
+ facts: FdeCoreFactWire[];
1419
+ diff?: FdeTurnDiffSnapshot;
1420
+ memoryContext?: FdeCoreMemoryContextProjectionWire;
1421
+ items: [];
1422
+ itemsView: Extract<FdeTurnItemsView, 'notLoaded'>;
1423
+ metadata: FdeCoreThreadProjectionMetadataWire;
1424
+ plan?: FdeTurnPlanSnapshot;
1425
+ responseToRequest?: FdeCoreResponseToRequestWire;
1426
+ runtimeStates?: FdeRuntimeStateSnapshotWire[];
1427
+ saveCompletions?: FdeCoreSaveCompletionWire[];
1428
+ startedAt?: string;
1429
+ status: FdeCoreTurnStatusWire;
1430
+ threadId: string;
1431
+ turnId: string;
1432
+ };
1433
+ interface FdeCoreActiveTurnControlWire {
1434
+ clientRequestId?: string;
1435
+ stateRevision: number;
1436
+ status?: 'interrupting' | 'running';
1437
+ turnId: string;
1438
+ }
1439
+ interface FdeCoreContinuableTaskSessionWire {
1440
+ baseTurnId: string;
1441
+ status: 'continuable';
1442
+ taskSessionId: string;
1443
+ taskSessionRevision: number;
1444
+ }
1445
+ type FdeCoreRequiredActionWire = FdeCoreStatusRequiredActionWire | FdeCoreSubmitRequiredActionWire;
1446
+ interface FdeCoreSubmitRequiredActionWire extends FdeCoreServerRequestIdentityWire {
1447
+ actionId: string;
1448
+ decisions?: FdeCoreApprovalDecisionOption[];
1449
+ domain?: string;
1450
+ fields?: FdeCoreRequestField[];
1451
+ kind: 'approval' | FdeCoreUserInputRequestKind;
1452
+ prompt: string;
1453
+ publicPayload?: Record<string, unknown>;
1454
+ requestType?: string;
1455
+ surface?: FdeCoreRequiredActionSurfaceWire;
1456
+ }
1457
+ interface FdeCoreStatusRequiredActionWire {
1458
+ actionId: string;
1459
+ kind: 'status';
1460
+ prompt: string;
1461
+ stateRevision: number;
1462
+ turnId: string;
1463
+ }
1464
+ interface FdeCoreProjectionWire {
1465
+ activeRequiredAction?: FdeCoreRequiredActionWire;
1466
+ activeTurnControl?: FdeCoreActiveTurnControlWire;
1467
+ artifactPanel: {
1468
+ items: FdeCoreArtifactPanelItemWire[];
1469
+ };
1470
+ continuableTaskSession?: FdeCoreContinuableTaskSessionWire;
1471
+ metadata: FdeCoreThreadProjectionMetadataWire;
1472
+ runtimeState?: FdeRuntimeStateSnapshotWire;
1473
+ threadId: string;
1474
+ turns: FdeCoreTurnWire[];
1475
+ }
1476
+ type FdeCoreSubscriptionFrame = {
1477
+ connectionId: string;
1478
+ error: FdeCoreStreamErrorWire;
1479
+ kind: 'stream_error';
1480
+ threadId: string;
1481
+ } | {
1482
+ connectionId: string;
1483
+ kind: 'stream_ready';
1484
+ threadId: string;
1485
+ } | {
1486
+ kind: 'event_appended';
1487
+ notifications: FdeEventAppendedNotification[];
1488
+ offset: number;
1489
+ serverRequests: FdeCoreServerRequestEnvelope[];
1490
+ threadId: string;
1491
+ } | {
1492
+ kind: 'live_notification';
1493
+ liveSeq?: number;
1494
+ notifications: FdeLiveNotification[];
1495
+ threadId: string;
1496
+ } | {
1497
+ kind: 'projection_snapshot';
1498
+ offset: number;
1499
+ projection: FdeCoreProjectionWire;
1500
+ resumeHighWater?: number;
1501
+ threadId: string;
1502
+ };
1503
+ type FdeCoreStreamSubscriptionFrame = Extract<FdeCoreSubscriptionFrame, {
1504
+ kind: 'event_appended' | 'live_notification' | 'projection_snapshot' | 'stream_error' | 'stream_ready';
1505
+ }>;
1506
+ type FdeCoreServerResponseEnvelope = {
1507
+ id: FdeCoreServerRequestIdentityKey;
1508
+ method: 'fde/serverRequest/approval';
1509
+ params: {
1510
+ expectedRequestRevision: number;
1511
+ expectedStateRevision: number;
1512
+ requestId: string;
1513
+ threadId: string;
1514
+ turnId: string;
1515
+ };
1516
+ response: {
1517
+ decision: FdeCoreApprovalDecision;
1518
+ reason?: string;
1519
+ };
1520
+ } | {
1521
+ id: FdeCoreServerRequestIdentityKey;
1522
+ method: 'fde/serverRequest/userInput';
1523
+ params: {
1524
+ expectedRequestRevision: number;
1525
+ expectedStateRevision: number;
1526
+ requestId: string;
1527
+ threadId: string;
1528
+ turnId: string;
1529
+ };
1530
+ response: {
1531
+ answers?: FdeCoreServerResponseAnswers;
1532
+ decision: 'answer' | 'cancel';
1533
+ };
1534
+ };
1535
+ interface CreateFdeCoreUserInputServerRequestInput {
1536
+ actionId: string;
1537
+ approvalRequestId?: string;
1538
+ boundItemId?: string;
1539
+ boundItemType?: FdeCoreServerRequestBoundItemTypeWire;
1540
+ domain?: string;
1541
+ fields?: FdeCoreRequestField[];
1542
+ itemId: string;
1543
+ kind: FdeCoreUserInputRequestKind;
1544
+ prompt: string;
1545
+ publicPayload?: Record<string, unknown>;
1546
+ requestId: string;
1547
+ requestRevision: number;
1548
+ requestType?: string;
1549
+ stateRevision: number;
1550
+ surface?: FdeCoreRequiredActionSurfaceWire;
1551
+ threadId: string;
1552
+ turnId: string;
1553
+ }
1554
+ interface CreateFdeCoreApprovalServerRequestInput {
1555
+ actionId: string;
1556
+ approvalRequestId?: string;
1557
+ boundItemId?: string;
1558
+ boundItemType?: FdeCoreServerRequestBoundItemTypeWire;
1559
+ decisions: FdeCoreApprovalDecisionOption[];
1560
+ domain?: string;
1561
+ itemId: string;
1562
+ prompt: string;
1563
+ publicPayload?: Record<string, unknown>;
1564
+ requestId: string;
1565
+ requestRevision: number;
1566
+ requestType?: string;
1567
+ stateRevision: number;
1568
+ surface?: FdeCoreRequiredActionSurfaceWire;
1569
+ threadId: string;
1570
+ turnId: string;
1571
+ }
1572
+ declare const FDE_PROTOCOL_BUILD: {
1573
+ readonly contractRevision: "fde-core-surface-v2-formal-save-required-operation";
1574
+ readonly packageName: "@byteluck/agentic-protocol";
1575
+ readonly schemaHash: "fde-core-surface-v2-formal-save-required-operation";
1576
+ readonly version: "1.0.5";
1577
+ };
1578
+ declare function normalizeFdeCoreClientRequest(value: unknown): FdeCoreClientRequestEnvelope;
1579
+ declare function toFdeCoreSuccessResponse(id: string, result: unknown): FdeCoreClientResponseEnvelope;
1580
+ declare function normalizeFdeCoreThreadResumeResult(value: unknown): FdeCoreThreadResumeResult;
1581
+ declare function toFdeCoreThreadResumeSuccessResponse(id: string, result: FdeCoreThreadResumeResult): FdeCoreClientResponseEnvelope;
1582
+ declare function toFdeCoreErrorResponse(id: string, code: string, message: string, data?: unknown): FdeCoreClientResponseEnvelope;
1583
+ declare function createFdeCoreUserInputServerRequest(input: CreateFdeCoreUserInputServerRequestInput): FdeCoreServerRequestEnvelope;
1584
+ declare function createFdeCoreApprovalServerRequest(input: CreateFdeCoreApprovalServerRequestInput): FdeCoreServerRequestEnvelope;
1585
+ declare function normalizeFdeCoreServerRequest(value: unknown): FdeCoreServerRequestEnvelope;
1586
+ declare function normalizeFdeCoreServerResponse(value: unknown): FdeCoreServerResponseEnvelope;
1587
+ type FdeCoreRequestSerialization = {
1588
+ key: string;
1589
+ mode: 'thread';
1590
+ } | {
1591
+ mode: 'none';
1592
+ };
1593
+ declare function getFdeCoreRequestSerialization(request: Pick<FdeCoreClientRequestEnvelope, 'method' | 'params'>): FdeCoreRequestSerialization;
1594
+ declare function createFdeCoreLiveNotification(method: string, params?: Record<string, unknown>): FdeCoreGenericLiveNotification;
1595
+ declare function createFdeCoreServerRequestResolvedNotification(identity: FdeCoreServerRequestIdentityWire): FdeCoreServerRequestResolvedNotification;
1596
+ declare function isFdeCoreServerRequestResolvedNotification(notification: FdeCoreLiveNotification): notification is FdeCoreServerRequestResolvedNotification;
1597
+ declare function normalizeFdeCoreLiveNotification(value: unknown): FdeCoreLiveNotification;
1598
+ declare function normalizeFdeCoreLiveDeltaNotification(value: unknown): FdeDeltaNotification;
1599
+ declare function normalizeFdeLiveNotification(value: unknown): FdeLiveNotification;
1600
+ declare function normalizeFdeCoreSubscriptionFrame(value: unknown): FdeCoreSubscriptionFrame;
1601
+ declare const FDE_PUBLIC_PAYLOAD_MAX_DEPTH = 8;
1602
+ declare const FDE_PUBLIC_PAYLOAD_MAX_OBJECT_KEYS = 64;
1603
+ declare const FDE_PUBLIC_PAYLOAD_MAX_ARRAY_ITEMS = 100;
1604
+ declare const FDE_PUBLIC_PAYLOAD_MAX_STRING_LENGTH = 20000;
1605
+ //#endregion
1606
+ //#region src/canonical-fixtures.d.ts
1607
+ interface AgenticCanonicalProtocolFixtures {
1608
+ readonly eventAppendedFrame: Extract<FdeCoreSubscriptionFrame, {
1609
+ kind: 'event_appended';
1610
+ }>;
1611
+ readonly memorySaveIntent: FdeMemorySaveIntentRequestWire;
1612
+ readonly projectionSnapshotFrame: Extract<FdeCoreSubscriptionFrame, {
1613
+ kind: 'projection_snapshot';
1614
+ }>;
1615
+ readonly serverRequest: FdeCoreServerRequestEnvelope;
1616
+ readonly serverResponse: FdeCoreServerResponseEnvelope;
1617
+ readonly turnStartRequest: Extract<FdeCoreClientRequestEnvelope, {
1618
+ method: 'turn/start';
1619
+ }>;
1620
+ }
1621
+ declare const AGENTIC_CANONICAL_PROTOCOL_FIXTURES: AgenticCanonicalProtocolFixtures;
1622
+ //#endregion
1623
+ export { AGENTIC_CANONICAL_PROTOCOL_FIXTURES, type AgenticCanonicalProtocolFixtures, BUILD_FORMAL_SAVE_APPROVE_REQUEST_TYPE, BUILD_RETIRED_NON_SAVE_PUBLIC_PAYLOAD_TYPES, BUILD_RETIRED_NON_SAVE_REQUEST_TYPES, BUILD_RETIRED_NON_SAVE_SURFACE_KINDS, BUILD_RETIRED_NON_SAVE_SURFACE_KIND_TO_PUBLIC_PAYLOAD_TYPE, BUILD_RETIRED_SAVE_APPROVAL_REQUEST_TYPES, type CreateFdeCoreApprovalServerRequestInput, type CreateFdeCoreUserInputServerRequestInput, FDE_ADAPTER_LIVE_NOTIFICATION_METHODS, FDE_AGENT_MESSAGE_PHASES, FDE_DELTA_NOTIFICATION_METHODS, FDE_EVENT_APPENDED_NOTIFICATION_METHODS, FDE_EXECUTION_STATUSES, FDE_MEMORY_ADMIN_RECORD_CATEGORIES, FDE_MEMORY_RECORD_CATEGORIES, FDE_MEMORY_SCOPES, FDE_MEMORY_TRUST_LEVELS, FDE_PROJECTION_BACKED_LIVE_NOTIFICATION_METHODS, FDE_PROTOCOL_BUILD, FDE_PUBLIC_ITEM_LIFECYCLES, FDE_PUBLIC_PAYLOAD_MAX_ARRAY_ITEMS, FDE_PUBLIC_PAYLOAD_MAX_DEPTH, FDE_PUBLIC_PAYLOAD_MAX_OBJECT_KEYS, FDE_PUBLIC_PAYLOAD_MAX_STRING_LENGTH, FDE_SUBSCRIPTION_NOTIFICATION_METHODS, FDE_TURN_ITEMS_VIEWS, FDE_TURN_STATUSES, FDE_TYPED_TURN_V2_PROTOCOL_VERSION, type FdeAdapterLiveNotificationMethod, type FdeAgentMessagePhase, type FdeArtifactIndexEntry, type FdeArtifactRef, type FdeArtifactSourceCollection, type FdeAttachmentRef, type FdeCoreAckTurn, type FdeCoreActiveTurnControlWire, type FdeCoreActivityWire, type FdeCoreApprovalDecision, type FdeCoreApprovalDecisionOption, type FdeCoreArtifactPanelItemWire, type FdeCoreArtifactRefWire, type FdeCoreBuildModuleSelectionSurfaceWire, type FdeCoreBuildRequestCandidateSummaryGroupWire, type FdeCoreBuildRequestCandidateSummaryWire, type FdeCoreBuildRequestPublicPayloadSummaryWire, type FdeCoreBuildRequestPublicPayloadType, type FdeCoreBuildRetiredNonSavePublicPayloadType, type FdeCoreBuildSourceDependencyCandidateSummaryWire, type FdeCoreBuildSourceDependencySurfaceWire, type FdeCoreClientMethod, type FdeCoreClientRequestEnvelope, type FdeCoreClientResponseEnvelope, type FdeCoreContinuableTaskSessionWire, type FdeCoreFactWire, type FdeCoreFormalSaveApprovalSurfaceWire, type FdeCoreGenericLiveNotification, type FdeCoreLiveNotification, type FdeCoreMemoryContextProjectionWire, type FdeCoreModelBlueprintConfirmationSurfaceWire, type FdeCoreModelBlueprintDictionaryWire, type FdeCoreModelBlueprintEntityWire, type FdeCoreModelBlueprintFieldWire, type FdeCoreModelBlueprintMissingSlotWire, type FdeCoreModelBlueprintSummaryWire, type FdeCoreOperationSourceWire, type FdeCorePlatformSyncStatusWire, type FdeCoreProjectionWire, type FdeCorePublicDiagnosticWire, type FdeCorePublicErrorWire, type FdeCoreRequestField, type FdeCoreRequestOption, type FdeCoreRequestSerialization, type FdeCoreRequiredActionSurfaceWire, type FdeCoreRequiredActionWire, type FdeCoreResourceOperationWire, type FdeCoreResponseToRequestWire, type FdeCoreServerRequestBoundItemTypeWire, type FdeCoreServerRequestEnvelope, type FdeCoreServerRequestIdentityKey, type FdeCoreServerRequestIdentityWire, type FdeCoreServerRequestResolvedNotification, type FdeCoreServerResponseAcceptedResult, type FdeCoreServerResponseEnvelope, type FdeCoreStreamErrorWire, type FdeCoreStreamSubscriptionFrame, type FdeCoreSubscriptionFrame, type FdeCoreThreadResumeBootstrapFrame, type FdeCoreThreadResumeResult, type FdeCoreThreadStartResult, type FdeCoreTurnContinueResult, type FdeCoreTurnStartResult, type FdeCoreTurnStatusWire, type FdeCoreTurnWire, type FdeCoreUserInputRequestKind, type FdeDeltaNotification, type FdeDeltaNotificationMethod, type FdeEventAppendedNotification, type FdeEventAppendedNotificationMethod, type FdeExecutionStatus, type FdeFileChangeEntry, type FdeFullThreadItem, type FdeItemBoundRequestIdentity, type FdeItemLifecycle, type FdeLiveNotification, type FdeMemoryAdminCreateRecordRequestWire, type FdeMemoryAdminRecordCategoryWire, type FdeMemoryAdminRecordLifecycleRequestWire, type FdeMemoryAdminRecordListQueryWire, type FdeMemoryCandidateCaptureTriggerWire, type FdeMemoryCandidateDecisionAction, type FdeMemoryCandidateDecisionPatchWire, type FdeMemoryCandidateDecisionRequestWire, type FdeMemoryCandidateDecisionResponseWire, type FdeMemoryCandidateListPageWire, type FdeMemoryCandidateListQueryWire, type FdeMemoryCandidateSourceRefsWire, type FdeMemoryCandidateStatus, type FdeMemoryCandidateWire, type FdeMemoryCaptureReasonWire, type FdeMemoryCaptureTriggerWire, type FdeMemoryContextSnapshotDetailStatus, type FdeMemoryContextSnapshotDetailWire, type FdeMemoryContextSnapshotWire, type FdeMemoryPublicScopeWire, type FdeMemoryRecordCategory, type FdeMemoryRecordLifecycleRequestWire, type FdeMemoryRecordListPageWire, type FdeMemoryRecordListQueryWire, type FdeMemoryRecordPatchRequestWire, type FdeMemoryRecordStatus, type FdeMemoryRecordVisibility, type FdeMemoryRecordWire, type FdeMemoryReviewPolicy, type FdeMemoryRiskLevel, type FdeMemorySaveIntentRequestWire, type FdeMemorySaveIntentResponseWire, type FdeMemoryScope, type FdeMemoryScopeContextWire, type FdeMemoryScopeOptionWire, type FdeMemoryScopeRefWire, type FdeMemoryScopesQueryWire, type FdeMemoryScopesResponseWire, type FdeMemorySensitivity, type FdeMemoryTrustLevel, type FdePlanStep, type FdeProjectionBackedLiveNotificationMethod, type FdeRequestDisplayIdentity, type FdeRequestDisplayState, type FdeRequiredAction, type FdeRequiredActionField, type FdeRequiredActionOption, type FdeRequiredActionResponse, type FdeRequiredActionState, type FdeRuntimeActivityStatusWire, type FdeRuntimeActivityWire, type FdeRuntimeGateWire, type FdeRuntimeOutputRefWire, type FdeRuntimeRightPanelWire, type FdeRuntimeRunPhaseWire, type FdeRuntimeRunStatusWire, type FdeRuntimeSourceRefWire, type FdeRuntimeStateSnapshotWire, type FdeRuntimeStateUpdatedNotification, type FdeSubscriptionNotification, type FdeSubscriptionNotificationMethod, type FdeSuppressedMemoryContextRefWire, type FdeThreadItemBase, type FdeThreadItemPreview, type FdeThreadItemType, type FdeWireUserInput as FdeThreadItemUserInput, type FdeToolKind, type FdeTurn, type FdeTurnDiffSnapshot, type FdeTurnError, type FdeTurnItemsView, type FdeTurnPlanSnapshot, type FdeTurnStatus, type FdeTypedEventEnvelope, type FdeTypedEventEnvelope as FdeTypedTurnEvent, type FdeWireUserInput$1 as FdeWireUserInput, type PublicMemoryContextRefWire, SYSTEM_ANALYSIS_FORMAL_SAVE_APPROVE_REQUEST_TYPE, createFdeCoreApprovalServerRequest, createFdeCoreLiveNotification, createFdeCoreServerRequestResolvedNotification, createFdeCoreUserInputServerRequest, fdeCoreServerRequestIdentityFromResponseToRequest, fdeCoreServerRequestIdentityKey, getFdeCoreRequestSerialization, isFdeCoreServerRequestIdentityWire, isFdeCoreServerRequestResolvedNotification, normalizeFdeCoreClientRequest, normalizeFdeCoreLiveDeltaNotification, normalizeFdeCoreLiveNotification, normalizeFdeCoreResponseToRequestWire, normalizeFdeCoreResponseToRequestWireFromRecord, normalizeFdeCoreServerRequest, normalizeFdeCoreServerRequestIdentity, normalizeFdeCoreServerResponse, normalizeFdeCoreSubscriptionFrame, normalizeFdeCoreThreadResumeResult, normalizeFdeLiveNotification, normalizeFdeMemoryAdminCreateRecordRequest, normalizeFdeMemoryAdminRecordLifecycleRequest, normalizeFdeMemoryAdminRecordListQuery, normalizeFdeMemoryCandidateDecisionRequest, normalizeFdeMemoryCandidateListQuery, normalizeFdeMemoryRecordLifecycleRequest, normalizeFdeMemoryRecordListQuery, normalizeFdeMemoryRecordPatchRequest, normalizeFdeMemorySaveIntentRequest, normalizeFdeMemoryScopesQuery, toFdeCoreErrorResponse, toFdeCoreSuccessResponse, toFdeCoreThreadResumeSuccessResponse };