@xemahq/kernel-contracts 0.1.0

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 (802) hide show
  1. package/dist/agent-composition/index.d.ts +7 -0
  2. package/dist/agent-composition/index.d.ts.map +1 -0
  3. package/dist/agent-composition/index.js +23 -0
  4. package/dist/agent-composition/index.js.map +1 -0
  5. package/dist/agent-composition/lib/capability-layer.d.ts +11 -0
  6. package/dist/agent-composition/lib/capability-layer.d.ts.map +1 -0
  7. package/dist/agent-composition/lib/capability-layer.js +10 -0
  8. package/dist/agent-composition/lib/capability-layer.js.map +1 -0
  9. package/dist/agent-composition/lib/composition-limits-schema.d.ts +4 -0
  10. package/dist/agent-composition/lib/composition-limits-schema.d.ts.map +1 -0
  11. package/dist/agent-composition/lib/composition-limits-schema.js +13 -0
  12. package/dist/agent-composition/lib/composition-limits-schema.js.map +1 -0
  13. package/dist/agent-composition/lib/composition-workspace.d.ts +35 -0
  14. package/dist/agent-composition/lib/composition-workspace.d.ts.map +1 -0
  15. package/dist/agent-composition/lib/composition-workspace.js +9 -0
  16. package/dist/agent-composition/lib/composition-workspace.js.map +1 -0
  17. package/dist/agent-composition/lib/composition.d.ts +66 -0
  18. package/dist/agent-composition/lib/composition.d.ts.map +1 -0
  19. package/dist/agent-composition/lib/composition.js +18 -0
  20. package/dist/agent-composition/lib/composition.js.map +1 -0
  21. package/dist/agent-composition/lib/intrinsic-floor.d.ts +15 -0
  22. package/dist/agent-composition/lib/intrinsic-floor.d.ts.map +1 -0
  23. package/dist/agent-composition/lib/intrinsic-floor.js +22 -0
  24. package/dist/agent-composition/lib/intrinsic-floor.js.map +1 -0
  25. package/dist/agent-composition/lib/model-resolution-matrix.d.ts +38 -0
  26. package/dist/agent-composition/lib/model-resolution-matrix.d.ts.map +1 -0
  27. package/dist/agent-composition/lib/model-resolution-matrix.js +12 -0
  28. package/dist/agent-composition/lib/model-resolution-matrix.js.map +1 -0
  29. package/dist/agent-workspace/awp-spec.json +225 -0
  30. package/dist/agent-workspace/index.d.ts +12 -0
  31. package/dist/agent-workspace/index.d.ts.map +1 -0
  32. package/dist/agent-workspace/index.js +28 -0
  33. package/dist/agent-workspace/index.js.map +1 -0
  34. package/dist/agent-workspace/lib/agent-run-context.d.ts +12 -0
  35. package/dist/agent-workspace/lib/agent-run-context.d.ts.map +1 -0
  36. package/dist/agent-workspace/lib/agent-run-context.js +3 -0
  37. package/dist/agent-workspace/lib/agent-run-context.js.map +1 -0
  38. package/dist/agent-workspace/lib/agent-tool-defaults.d.ts +21 -0
  39. package/dist/agent-workspace/lib/agent-tool-defaults.d.ts.map +1 -0
  40. package/dist/agent-workspace/lib/agent-tool-defaults.js +111 -0
  41. package/dist/agent-workspace/lib/agent-tool-defaults.js.map +1 -0
  42. package/dist/agent-workspace/lib/awp-v1.d.ts +15 -0
  43. package/dist/agent-workspace/lib/awp-v1.d.ts.map +1 -0
  44. package/dist/agent-workspace/lib/awp-v1.js +197 -0
  45. package/dist/agent-workspace/lib/awp-v1.js.map +1 -0
  46. package/dist/agent-workspace/lib/context-json.d.ts +35 -0
  47. package/dist/agent-workspace/lib/context-json.d.ts.map +1 -0
  48. package/dist/agent-workspace/lib/context-json.js +3 -0
  49. package/dist/agent-workspace/lib/context-json.js.map +1 -0
  50. package/dist/agent-workspace/lib/deliverable-spec-ref.d.ts +10 -0
  51. package/dist/agent-workspace/lib/deliverable-spec-ref.d.ts.map +1 -0
  52. package/dist/agent-workspace/lib/deliverable-spec-ref.js +33 -0
  53. package/dist/agent-workspace/lib/deliverable-spec-ref.js.map +1 -0
  54. package/dist/agent-workspace/lib/endpoint-fetch-spec.d.ts +31 -0
  55. package/dist/agent-workspace/lib/endpoint-fetch-spec.d.ts.map +1 -0
  56. package/dist/agent-workspace/lib/endpoint-fetch-spec.js +20 -0
  57. package/dist/agent-workspace/lib/endpoint-fetch-spec.js.map +1 -0
  58. package/dist/agent-workspace/lib/manifest.d.ts +28 -0
  59. package/dist/agent-workspace/lib/manifest.d.ts.map +1 -0
  60. package/dist/agent-workspace/lib/manifest.js +16 -0
  61. package/dist/agent-workspace/lib/manifest.js.map +1 -0
  62. package/dist/agent-workspace/lib/mount-apply.d.ts +42 -0
  63. package/dist/agent-workspace/lib/mount-apply.d.ts.map +1 -0
  64. package/dist/agent-workspace/lib/mount-apply.js +15 -0
  65. package/dist/agent-workspace/lib/mount-apply.js.map +1 -0
  66. package/dist/agent-workspace/lib/working-file.d.ts +20 -0
  67. package/dist/agent-workspace/lib/working-file.d.ts.map +1 -0
  68. package/dist/agent-workspace/lib/working-file.js +42 -0
  69. package/dist/agent-workspace/lib/working-file.js.map +1 -0
  70. package/dist/agent-workspace/lib/workspace-layout.d.ts +34 -0
  71. package/dist/agent-workspace/lib/workspace-layout.d.ts.map +1 -0
  72. package/dist/agent-workspace/lib/workspace-layout.js +31 -0
  73. package/dist/agent-workspace/lib/workspace-layout.js.map +1 -0
  74. package/dist/agent-workspace/lib/workspace-spec.d.ts +61 -0
  75. package/dist/agent-workspace/lib/workspace-spec.d.ts.map +1 -0
  76. package/dist/agent-workspace/lib/workspace-spec.js +19 -0
  77. package/dist/agent-workspace/lib/workspace-spec.js.map +1 -0
  78. package/dist/biome/index.d.ts +11 -0
  79. package/dist/biome/index.d.ts.map +1 -0
  80. package/dist/biome/index.js +27 -0
  81. package/dist/biome/index.js.map +1 -0
  82. package/dist/biome/lib/biome-api.d.ts +12 -0
  83. package/dist/biome/lib/biome-api.d.ts.map +1 -0
  84. package/dist/biome/lib/biome-api.js +14 -0
  85. package/dist/biome/lib/biome-api.js.map +1 -0
  86. package/dist/biome/lib/biome-capability-refs.d.ts +11 -0
  87. package/dist/biome/lib/biome-capability-refs.d.ts.map +1 -0
  88. package/dist/biome/lib/biome-capability-refs.js +12 -0
  89. package/dist/biome/lib/biome-capability-refs.js.map +1 -0
  90. package/dist/biome/lib/biome-engines.d.ts +6 -0
  91. package/dist/biome/lib/biome-engines.d.ts.map +1 -0
  92. package/dist/biome/lib/biome-engines.js +8 -0
  93. package/dist/biome/lib/biome-engines.js.map +1 -0
  94. package/dist/biome/lib/biome-lifecycle-hooks.d.ts +10 -0
  95. package/dist/biome/lib/biome-lifecycle-hooks.d.ts.map +1 -0
  96. package/dist/biome/lib/biome-lifecycle-hooks.js +12 -0
  97. package/dist/biome/lib/biome-lifecycle-hooks.js.map +1 -0
  98. package/dist/biome/lib/biome-lifecycle.d.ts +12 -0
  99. package/dist/biome/lib/biome-lifecycle.d.ts.map +1 -0
  100. package/dist/biome/lib/biome-lifecycle.js +16 -0
  101. package/dist/biome/lib/biome-lifecycle.js.map +1 -0
  102. package/dist/biome/lib/biome-manifest.d.ts +36 -0
  103. package/dist/biome/lib/biome-manifest.d.ts.map +1 -0
  104. package/dist/biome/lib/biome-manifest.js +38 -0
  105. package/dist/biome/lib/biome-manifest.js.map +1 -0
  106. package/dist/biome/lib/biome-permissions.d.ts +9 -0
  107. package/dist/biome/lib/biome-permissions.d.ts.map +1 -0
  108. package/dist/biome/lib/biome-permissions.js +11 -0
  109. package/dist/biome/lib/biome-permissions.js.map +1 -0
  110. package/dist/biome/lib/biome-scope.d.ts +9 -0
  111. package/dist/biome/lib/biome-scope.d.ts.map +1 -0
  112. package/dist/biome/lib/biome-scope.js +13 -0
  113. package/dist/biome/lib/biome-scope.js.map +1 -0
  114. package/dist/biome/lib/biome-trust-tier.d.ts +11 -0
  115. package/dist/biome/lib/biome-trust-tier.d.ts.map +1 -0
  116. package/dist/biome/lib/biome-trust-tier.js +15 -0
  117. package/dist/biome/lib/biome-trust-tier.js.map +1 -0
  118. package/dist/biome/lib/trust-tier-policies.d.ts +8 -0
  119. package/dist/biome/lib/trust-tier-policies.d.ts.map +1 -0
  120. package/dist/biome/lib/trust-tier-policies.js +66 -0
  121. package/dist/biome/lib/trust-tier-policies.js.map +1 -0
  122. package/dist/capability/index.d.ts +9 -0
  123. package/dist/capability/index.d.ts.map +1 -0
  124. package/dist/capability/index.js +25 -0
  125. package/dist/capability/index.js.map +1 -0
  126. package/dist/capability/lib/capability-contribution.d.ts +18 -0
  127. package/dist/capability/lib/capability-contribution.d.ts.map +1 -0
  128. package/dist/capability/lib/capability-contribution.js +23 -0
  129. package/dist/capability/lib/capability-contribution.js.map +1 -0
  130. package/dist/capability/lib/capability-grant.d.ts +22 -0
  131. package/dist/capability/lib/capability-grant.d.ts.map +1 -0
  132. package/dist/capability/lib/capability-grant.js +27 -0
  133. package/dist/capability/lib/capability-grant.js.map +1 -0
  134. package/dist/capability/lib/capability-policy.d.ts +12 -0
  135. package/dist/capability/lib/capability-policy.d.ts.map +1 -0
  136. package/dist/capability/lib/capability-policy.js +14 -0
  137. package/dist/capability/lib/capability-policy.js.map +1 -0
  138. package/dist/capability/lib/capability-ref.d.ts +19 -0
  139. package/dist/capability/lib/capability-ref.d.ts.map +1 -0
  140. package/dist/capability/lib/capability-ref.js +63 -0
  141. package/dist/capability/lib/capability-ref.js.map +1 -0
  142. package/dist/capability/lib/errors.d.ts +60 -0
  143. package/dist/capability/lib/errors.d.ts.map +1 -0
  144. package/dist/capability/lib/errors.js +73 -0
  145. package/dist/capability/lib/errors.js.map +1 -0
  146. package/dist/capability/lib/meta-tool.d.ts +77 -0
  147. package/dist/capability/lib/meta-tool.d.ts.map +1 -0
  148. package/dist/capability/lib/meta-tool.js +76 -0
  149. package/dist/capability/lib/meta-tool.js.map +1 -0
  150. package/dist/capability/lib/permission-profile.d.ts +35 -0
  151. package/dist/capability/lib/permission-profile.d.ts.map +1 -0
  152. package/dist/capability/lib/permission-profile.js +38 -0
  153. package/dist/capability/lib/permission-profile.js.map +1 -0
  154. package/dist/capability/lib/shell-command-descriptor.d.ts +19 -0
  155. package/dist/capability/lib/shell-command-descriptor.d.ts.map +1 -0
  156. package/dist/capability/lib/shell-command-descriptor.js +20 -0
  157. package/dist/capability/lib/shell-command-descriptor.js.map +1 -0
  158. package/dist/contribution/index.d.ts +5 -0
  159. package/dist/contribution/index.d.ts.map +1 -0
  160. package/dist/contribution/index.js +21 -0
  161. package/dist/contribution/index.js.map +1 -0
  162. package/dist/contribution/lib/contribution-kind.d.ts +44 -0
  163. package/dist/contribution/lib/contribution-kind.d.ts.map +1 -0
  164. package/dist/contribution/lib/contribution-kind.js +47 -0
  165. package/dist/contribution/lib/contribution-kind.js.map +1 -0
  166. package/dist/contribution/lib/contribution-source.d.ts +11 -0
  167. package/dist/contribution/lib/contribution-source.d.ts.map +1 -0
  168. package/dist/contribution/lib/contribution-source.js +14 -0
  169. package/dist/contribution/lib/contribution-source.js.map +1 -0
  170. package/dist/contribution/lib/contribution.d.ts +36 -0
  171. package/dist/contribution/lib/contribution.d.ts.map +1 -0
  172. package/dist/contribution/lib/contribution.js +56 -0
  173. package/dist/contribution/lib/contribution.js.map +1 -0
  174. package/dist/contribution/lib/registry.d.ts +25 -0
  175. package/dist/contribution/lib/registry.d.ts.map +1 -0
  176. package/dist/contribution/lib/registry.js +54 -0
  177. package/dist/contribution/lib/registry.js.map +1 -0
  178. package/dist/document-templates/index.d.ts +3 -0
  179. package/dist/document-templates/index.d.ts.map +1 -0
  180. package/dist/document-templates/index.js +19 -0
  181. package/dist/document-templates/index.js.map +1 -0
  182. package/dist/document-templates/lib/document-template.d.ts +24 -0
  183. package/dist/document-templates/lib/document-template.d.ts.map +1 -0
  184. package/dist/document-templates/lib/document-template.js +10 -0
  185. package/dist/document-templates/lib/document-template.js.map +1 -0
  186. package/dist/document-templates/lib/index.d.ts +3 -0
  187. package/dist/document-templates/lib/index.d.ts.map +1 -0
  188. package/dist/document-templates/lib/index.js +19 -0
  189. package/dist/document-templates/lib/index.js.map +1 -0
  190. package/dist/document-templates/lib/rendering-shape.d.ts +7 -0
  191. package/dist/document-templates/lib/rendering-shape.d.ts.map +1 -0
  192. package/dist/document-templates/lib/rendering-shape.js +20 -0
  193. package/dist/document-templates/lib/rendering-shape.js.map +1 -0
  194. package/dist/document-themes/index.d.ts +3 -0
  195. package/dist/document-themes/index.d.ts.map +1 -0
  196. package/dist/document-themes/index.js +19 -0
  197. package/dist/document-themes/index.js.map +1 -0
  198. package/dist/document-themes/lib/component-vocabulary.d.ts +16 -0
  199. package/dist/document-themes/lib/component-vocabulary.d.ts.map +1 -0
  200. package/dist/document-themes/lib/component-vocabulary.js +55 -0
  201. package/dist/document-themes/lib/component-vocabulary.js.map +1 -0
  202. package/dist/document-themes/lib/document-theme.d.ts +57 -0
  203. package/dist/document-themes/lib/document-theme.d.ts.map +1 -0
  204. package/dist/document-themes/lib/document-theme.js +10 -0
  205. package/dist/document-themes/lib/document-theme.js.map +1 -0
  206. package/dist/document-themes/lib/index.d.ts +3 -0
  207. package/dist/document-themes/lib/index.d.ts.map +1 -0
  208. package/dist/document-themes/lib/index.js +19 -0
  209. package/dist/document-themes/lib/index.js.map +1 -0
  210. package/dist/entitlement/index.d.ts +2 -0
  211. package/dist/entitlement/index.d.ts.map +1 -0
  212. package/dist/entitlement/index.js +18 -0
  213. package/dist/entitlement/index.js.map +1 -0
  214. package/dist/entitlement/lib/entitlement.d.ts +25 -0
  215. package/dist/entitlement/lib/entitlement.d.ts.map +1 -0
  216. package/dist/entitlement/lib/entitlement.js +54 -0
  217. package/dist/entitlement/lib/entitlement.js.map +1 -0
  218. package/dist/execution-context/index.d.ts +4 -0
  219. package/dist/execution-context/index.d.ts.map +1 -0
  220. package/dist/execution-context/index.js +20 -0
  221. package/dist/execution-context/index.js.map +1 -0
  222. package/dist/execution-context/lib/caller.d.ts +19 -0
  223. package/dist/execution-context/lib/caller.d.ts.map +1 -0
  224. package/dist/execution-context/lib/caller.js +22 -0
  225. package/dist/execution-context/lib/caller.js.map +1 -0
  226. package/dist/execution-context/lib/execution-context.d.ts +60 -0
  227. package/dist/execution-context/lib/execution-context.d.ts.map +1 -0
  228. package/dist/execution-context/lib/execution-context.js +58 -0
  229. package/dist/execution-context/lib/execution-context.js.map +1 -0
  230. package/dist/execution-context/lib/subject.d.ts +3 -0
  231. package/dist/execution-context/lib/subject.d.ts.map +1 -0
  232. package/dist/execution-context/lib/subject.js +11 -0
  233. package/dist/execution-context/lib/subject.js.map +1 -0
  234. package/dist/execution-environment/index.d.ts +4 -0
  235. package/dist/execution-environment/index.d.ts.map +1 -0
  236. package/dist/execution-environment/index.js +20 -0
  237. package/dist/execution-environment/index.js.map +1 -0
  238. package/dist/execution-environment/lib/approval-rule.d.ts +10 -0
  239. package/dist/execution-environment/lib/approval-rule.d.ts.map +1 -0
  240. package/dist/execution-environment/lib/approval-rule.js +12 -0
  241. package/dist/execution-environment/lib/approval-rule.js.map +1 -0
  242. package/dist/execution-environment/lib/built-in-environments.d.ts +16 -0
  243. package/dist/execution-environment/lib/built-in-environments.d.ts.map +1 -0
  244. package/dist/execution-environment/lib/built-in-environments.js +33 -0
  245. package/dist/execution-environment/lib/built-in-environments.js.map +1 -0
  246. package/dist/execution-environment/lib/execution-environment.d.ts +58 -0
  247. package/dist/execution-environment/lib/execution-environment.d.ts.map +1 -0
  248. package/dist/execution-environment/lib/execution-environment.js +89 -0
  249. package/dist/execution-environment/lib/execution-environment.js.map +1 -0
  250. package/dist/kernel-state/index.d.ts +4 -0
  251. package/dist/kernel-state/index.d.ts.map +1 -0
  252. package/dist/kernel-state/index.js +20 -0
  253. package/dist/kernel-state/index.js.map +1 -0
  254. package/dist/kernel-state/lib/adapter-kind.d.ts +5 -0
  255. package/dist/kernel-state/lib/adapter-kind.d.ts.map +1 -0
  256. package/dist/kernel-state/lib/adapter-kind.js +9 -0
  257. package/dist/kernel-state/lib/adapter-kind.js.map +1 -0
  258. package/dist/kernel-state/lib/kernel-state.d.ts +37 -0
  259. package/dist/kernel-state/lib/kernel-state.d.ts.map +1 -0
  260. package/dist/kernel-state/lib/kernel-state.js +9 -0
  261. package/dist/kernel-state/lib/kernel-state.js.map +1 -0
  262. package/dist/kernel-state/lib/key-grammar.d.ts +16 -0
  263. package/dist/kernel-state/lib/key-grammar.d.ts.map +1 -0
  264. package/dist/kernel-state/lib/key-grammar.js +56 -0
  265. package/dist/kernel-state/lib/key-grammar.js.map +1 -0
  266. package/dist/llm-gateway/index.d.ts +3 -0
  267. package/dist/llm-gateway/index.d.ts.map +1 -0
  268. package/dist/llm-gateway/index.js +19 -0
  269. package/dist/llm-gateway/index.js.map +1 -0
  270. package/dist/llm-gateway/lib/caller.d.ts +14 -0
  271. package/dist/llm-gateway/lib/caller.d.ts.map +1 -0
  272. package/dist/llm-gateway/lib/caller.js +11 -0
  273. package/dist/llm-gateway/lib/caller.js.map +1 -0
  274. package/dist/llm-gateway/lib/errors.d.ts +27 -0
  275. package/dist/llm-gateway/lib/errors.d.ts.map +1 -0
  276. package/dist/llm-gateway/lib/errors.js +36 -0
  277. package/dist/llm-gateway/lib/errors.js.map +1 -0
  278. package/dist/mcp-tool/index.d.ts +7 -0
  279. package/dist/mcp-tool/index.d.ts.map +1 -0
  280. package/dist/mcp-tool/index.js +23 -0
  281. package/dist/mcp-tool/index.js.map +1 -0
  282. package/dist/mcp-tool/lib/mcp-protocol.d.ts +75 -0
  283. package/dist/mcp-tool/lib/mcp-protocol.d.ts.map +1 -0
  284. package/dist/mcp-tool/lib/mcp-protocol.js +19 -0
  285. package/dist/mcp-tool/lib/mcp-protocol.js.map +1 -0
  286. package/dist/mcp-tool/lib/mcp-server-config.d.ts +8 -0
  287. package/dist/mcp-tool/lib/mcp-server-config.d.ts.map +1 -0
  288. package/dist/mcp-tool/lib/mcp-server-config.js +3 -0
  289. package/dist/mcp-tool/lib/mcp-server-config.js.map +1 -0
  290. package/dist/mcp-tool/lib/provider-kind.d.ts +10 -0
  291. package/dist/mcp-tool/lib/provider-kind.d.ts.map +1 -0
  292. package/dist/mcp-tool/lib/provider-kind.js +14 -0
  293. package/dist/mcp-tool/lib/provider-kind.js.map +1 -0
  294. package/dist/mcp-tool/lib/resolver-scope.d.ts +16 -0
  295. package/dist/mcp-tool/lib/resolver-scope.d.ts.map +1 -0
  296. package/dist/mcp-tool/lib/resolver-scope.js +12 -0
  297. package/dist/mcp-tool/lib/resolver-scope.js.map +1 -0
  298. package/dist/mcp-tool/lib/tool-provider.d.ts +21 -0
  299. package/dist/mcp-tool/lib/tool-provider.d.ts.map +1 -0
  300. package/dist/mcp-tool/lib/tool-provider.js +3 -0
  301. package/dist/mcp-tool/lib/tool-provider.js.map +1 -0
  302. package/dist/mcp-tool/lib/tool-selection.d.ts +34 -0
  303. package/dist/mcp-tool/lib/tool-selection.d.ts.map +1 -0
  304. package/dist/mcp-tool/lib/tool-selection.js +18 -0
  305. package/dist/mcp-tool/lib/tool-selection.js.map +1 -0
  306. package/dist/object/index.d.ts +5 -0
  307. package/dist/object/index.d.ts.map +1 -0
  308. package/dist/object/index.js +21 -0
  309. package/dist/object/index.js.map +1 -0
  310. package/dist/object/lib/object-lifecycle.d.ts +8 -0
  311. package/dist/object/lib/object-lifecycle.d.ts.map +1 -0
  312. package/dist/object/lib/object-lifecycle.js +12 -0
  313. package/dist/object/lib/object-lifecycle.js.map +1 -0
  314. package/dist/object/lib/xema-object-kind.d.ts +43 -0
  315. package/dist/object/lib/xema-object-kind.d.ts.map +1 -0
  316. package/dist/object/lib/xema-object-kind.js +47 -0
  317. package/dist/object/lib/xema-object-kind.js.map +1 -0
  318. package/dist/object/lib/xema-object-ref.d.ts +20 -0
  319. package/dist/object/lib/xema-object-ref.d.ts.map +1 -0
  320. package/dist/object/lib/xema-object-ref.js +133 -0
  321. package/dist/object/lib/xema-object-ref.js.map +1 -0
  322. package/dist/object/lib/xema-object.d.ts +24 -0
  323. package/dist/object/lib/xema-object.d.ts.map +1 -0
  324. package/dist/object/lib/xema-object.js +24 -0
  325. package/dist/object/lib/xema-object.js.map +1 -0
  326. package/dist/policy/index.d.ts +4 -0
  327. package/dist/policy/index.d.ts.map +1 -0
  328. package/dist/policy/index.js +20 -0
  329. package/dist/policy/index.js.map +1 -0
  330. package/dist/policy/lib/obligations.d.ts +91 -0
  331. package/dist/policy/lib/obligations.d.ts.map +1 -0
  332. package/dist/policy/lib/obligations.js +76 -0
  333. package/dist/policy/lib/obligations.js.map +1 -0
  334. package/dist/policy/lib/policy.d.ts +29 -0
  335. package/dist/policy/lib/policy.d.ts.map +1 -0
  336. package/dist/policy/lib/policy.js +32 -0
  337. package/dist/policy/lib/policy.js.map +1 -0
  338. package/dist/policy/lib/route-hints.d.ts +11 -0
  339. package/dist/policy/lib/route-hints.d.ts.map +1 -0
  340. package/dist/policy/lib/route-hints.js +15 -0
  341. package/dist/policy/lib/route-hints.js.map +1 -0
  342. package/dist/runner/index.d.ts +12 -0
  343. package/dist/runner/index.d.ts.map +1 -0
  344. package/dist/runner/index.js +28 -0
  345. package/dist/runner/index.js.map +1 -0
  346. package/dist/runner/lib/dispatch.d.ts +13 -0
  347. package/dist/runner/lib/dispatch.d.ts.map +1 -0
  348. package/dist/runner/lib/dispatch.js +15 -0
  349. package/dist/runner/lib/dispatch.js.map +1 -0
  350. package/dist/runner/lib/input-hash.d.ts +2 -0
  351. package/dist/runner/lib/input-hash.d.ts.map +1 -0
  352. package/dist/runner/lib/input-hash.js +37 -0
  353. package/dist/runner/lib/input-hash.js.map +1 -0
  354. package/dist/runner/lib/job-token.d.ts +22 -0
  355. package/dist/runner/lib/job-token.d.ts.map +1 -0
  356. package/dist/runner/lib/job-token.js +3 -0
  357. package/dist/runner/lib/job-token.js.map +1 -0
  358. package/dist/runner/lib/runner-attestation.d.ts +10 -0
  359. package/dist/runner/lib/runner-attestation.d.ts.map +1 -0
  360. package/dist/runner/lib/runner-attestation.js +5 -0
  361. package/dist/runner/lib/runner-attestation.js.map +1 -0
  362. package/dist/runner/lib/runner-job.d.ts +26 -0
  363. package/dist/runner/lib/runner-job.d.ts.map +1 -0
  364. package/dist/runner/lib/runner-job.js +36 -0
  365. package/dist/runner/lib/runner-job.js.map +1 -0
  366. package/dist/runner/lib/runner-kind.d.ts +2 -0
  367. package/dist/runner/lib/runner-kind.d.ts.map +1 -0
  368. package/dist/runner/lib/runner-kind.js +7 -0
  369. package/dist/runner/lib/runner-kind.js.map +1 -0
  370. package/dist/runner/lib/runner-mode.d.ts +5 -0
  371. package/dist/runner/lib/runner-mode.d.ts.map +1 -0
  372. package/dist/runner/lib/runner-mode.js +9 -0
  373. package/dist/runner/lib/runner-mode.js.map +1 -0
  374. package/dist/runner/lib/runner-plane.d.ts +19 -0
  375. package/dist/runner/lib/runner-plane.d.ts.map +1 -0
  376. package/dist/runner/lib/runner-plane.js +31 -0
  377. package/dist/runner/lib/runner-plane.js.map +1 -0
  378. package/dist/runner/lib/runner-registration.d.ts +60 -0
  379. package/dist/runner/lib/runner-registration.d.ts.map +1 -0
  380. package/dist/runner/lib/runner-registration.js +62 -0
  381. package/dist/runner/lib/runner-registration.js.map +1 -0
  382. package/dist/runner/lib/runner.d.ts +24 -0
  383. package/dist/runner/lib/runner.d.ts.map +1 -0
  384. package/dist/runner/lib/runner.js +26 -0
  385. package/dist/runner/lib/runner.js.map +1 -0
  386. package/dist/runner/lib/runtime-isolation.d.ts +10 -0
  387. package/dist/runner/lib/runtime-isolation.d.ts.map +1 -0
  388. package/dist/runner/lib/runtime-isolation.js +23 -0
  389. package/dist/runner/lib/runtime-isolation.js.map +1 -0
  390. package/dist/search-source/index.d.ts +5 -0
  391. package/dist/search-source/index.d.ts.map +1 -0
  392. package/dist/search-source/index.js +21 -0
  393. package/dist/search-source/index.js.map +1 -0
  394. package/dist/search-source/lib/indexable-document.d.ts +40 -0
  395. package/dist/search-source/lib/indexable-document.d.ts.map +1 -0
  396. package/dist/search-source/lib/indexable-document.js +26 -0
  397. package/dist/search-source/lib/indexable-document.js.map +1 -0
  398. package/dist/search-source/lib/search-index-event.d.ts +52 -0
  399. package/dist/search-source/lib/search-index-event.d.ts.map +1 -0
  400. package/dist/search-source/lib/search-index-event.js +29 -0
  401. package/dist/search-source/lib/search-index-event.js.map +1 -0
  402. package/dist/search-source/lib/search-replay.d.ts +46 -0
  403. package/dist/search-source/lib/search-replay.d.ts.map +1 -0
  404. package/dist/search-source/lib/search-replay.js +36 -0
  405. package/dist/search-source/lib/search-replay.js.map +1 -0
  406. package/dist/search-source/lib/search-source-descriptor.d.ts +15 -0
  407. package/dist/search-source/lib/search-source-descriptor.d.ts.map +1 -0
  408. package/dist/search-source/lib/search-source-descriptor.js +3 -0
  409. package/dist/search-source/lib/search-source-descriptor.js.map +1 -0
  410. package/dist/service-registry/index.d.ts +4 -0
  411. package/dist/service-registry/index.d.ts.map +1 -0
  412. package/dist/service-registry/index.js +20 -0
  413. package/dist/service-registry/index.js.map +1 -0
  414. package/dist/service-registry/lib/inject-service.d.ts +6 -0
  415. package/dist/service-registry/lib/inject-service.d.ts.map +1 -0
  416. package/dist/service-registry/lib/inject-service.js +5 -0
  417. package/dist/service-registry/lib/inject-service.js.map +1 -0
  418. package/dist/service-registry/lib/service-descriptor.d.ts +28 -0
  419. package/dist/service-registry/lib/service-descriptor.d.ts.map +1 -0
  420. package/dist/service-registry/lib/service-descriptor.js +17 -0
  421. package/dist/service-registry/lib/service-descriptor.js.map +1 -0
  422. package/dist/service-registry/lib/service-registry-client.d.ts +30 -0
  423. package/dist/service-registry/lib/service-registry-client.d.ts.map +1 -0
  424. package/dist/service-registry/lib/service-registry-client.js +3 -0
  425. package/dist/service-registry/lib/service-registry-client.js.map +1 -0
  426. package/dist/skill/index.d.ts +5 -0
  427. package/dist/skill/index.d.ts.map +1 -0
  428. package/dist/skill/index.js +21 -0
  429. package/dist/skill/index.js.map +1 -0
  430. package/dist/skill/lib/skill-enums.d.ts +41 -0
  431. package/dist/skill/lib/skill-enums.d.ts.map +1 -0
  432. package/dist/skill/lib/skill-enums.js +54 -0
  433. package/dist/skill/lib/skill-enums.js.map +1 -0
  434. package/dist/skill/lib/skill-governance.d.ts +106 -0
  435. package/dist/skill/lib/skill-governance.d.ts.map +1 -0
  436. package/dist/skill/lib/skill-governance.js +61 -0
  437. package/dist/skill/lib/skill-governance.js.map +1 -0
  438. package/dist/skill/lib/skill-source.d.ts +14 -0
  439. package/dist/skill/lib/skill-source.d.ts.map +1 -0
  440. package/dist/skill/lib/skill-source.js +3 -0
  441. package/dist/skill/lib/skill-source.js.map +1 -0
  442. package/dist/skill/lib/skill.d.ts +52 -0
  443. package/dist/skill/lib/skill.d.ts.map +1 -0
  444. package/dist/skill/lib/skill.js +3 -0
  445. package/dist/skill/lib/skill.js.map +1 -0
  446. package/dist/space/index.d.ts +4 -0
  447. package/dist/space/index.d.ts.map +1 -0
  448. package/dist/space/index.js +20 -0
  449. package/dist/space/index.js.map +1 -0
  450. package/dist/space/lib/space-ref-parser.d.ts +8 -0
  451. package/dist/space/lib/space-ref-parser.d.ts.map +1 -0
  452. package/dist/space/lib/space-ref-parser.js +149 -0
  453. package/dist/space/lib/space-ref-parser.js.map +1 -0
  454. package/dist/space/lib/space-traversal.d.ts +3 -0
  455. package/dist/space/lib/space-traversal.d.ts.map +1 -0
  456. package/dist/space/lib/space-traversal.js +56 -0
  457. package/dist/space/lib/space-traversal.js.map +1 -0
  458. package/dist/space/lib/space.d.ts +53 -0
  459. package/dist/space/lib/space.d.ts.map +1 -0
  460. package/dist/space/lib/space.js +98 -0
  461. package/dist/space/lib/space.js.map +1 -0
  462. package/dist/subject/index.d.ts +3 -0
  463. package/dist/subject/index.d.ts.map +1 -0
  464. package/dist/subject/index.js +19 -0
  465. package/dist/subject/index.js.map +1 -0
  466. package/dist/subject/lib/subject.d.ts +29 -0
  467. package/dist/subject/lib/subject.d.ts.map +1 -0
  468. package/dist/subject/lib/subject.js +47 -0
  469. package/dist/subject/lib/subject.js.map +1 -0
  470. package/dist/subject/lib/token-class.d.ts +11 -0
  471. package/dist/subject/lib/token-class.d.ts.map +1 -0
  472. package/dist/subject/lib/token-class.js +15 -0
  473. package/dist/subject/lib/token-class.js.map +1 -0
  474. package/dist/workflow/index.d.ts +31 -0
  475. package/dist/workflow/index.d.ts.map +1 -0
  476. package/dist/workflow/index.js +47 -0
  477. package/dist/workflow/index.js.map +1 -0
  478. package/dist/workflow/lib/action-ref.d.ts +12 -0
  479. package/dist/workflow/lib/action-ref.d.ts.map +1 -0
  480. package/dist/workflow/lib/action-ref.js +3 -0
  481. package/dist/workflow/lib/action-ref.js.map +1 -0
  482. package/dist/workflow/lib/activity-outputs.d.ts +14 -0
  483. package/dist/workflow/lib/activity-outputs.d.ts.map +1 -0
  484. package/dist/workflow/lib/activity-outputs.js +3 -0
  485. package/dist/workflow/lib/activity-outputs.js.map +1 -0
  486. package/dist/workflow/lib/agent-role.d.ts +6 -0
  487. package/dist/workflow/lib/agent-role.d.ts.map +1 -0
  488. package/dist/workflow/lib/agent-role.js +41 -0
  489. package/dist/workflow/lib/agent-role.js.map +1 -0
  490. package/dist/workflow/lib/artifact-ref.d.ts +21 -0
  491. package/dist/workflow/lib/artifact-ref.d.ts.map +1 -0
  492. package/dist/workflow/lib/artifact-ref.js +38 -0
  493. package/dist/workflow/lib/artifact-ref.js.map +1 -0
  494. package/dist/workflow/lib/briefcase.d.ts +107 -0
  495. package/dist/workflow/lib/briefcase.d.ts.map +1 -0
  496. package/dist/workflow/lib/briefcase.js +62 -0
  497. package/dist/workflow/lib/briefcase.js.map +1 -0
  498. package/dist/workflow/lib/canonical-concepts/canonical-concept-registry.d.ts +18 -0
  499. package/dist/workflow/lib/canonical-concepts/canonical-concept-registry.d.ts.map +1 -0
  500. package/dist/workflow/lib/canonical-concepts/canonical-concept-registry.js +45 -0
  501. package/dist/workflow/lib/canonical-concepts/canonical-concept-registry.js.map +1 -0
  502. package/dist/workflow/lib/canonical-concepts/concepts/change-intent.concepts.d.ts +3 -0
  503. package/dist/workflow/lib/canonical-concepts/concepts/change-intent.concepts.d.ts.map +1 -0
  504. package/dist/workflow/lib/canonical-concepts/concepts/change-intent.concepts.js +79 -0
  505. package/dist/workflow/lib/canonical-concepts/concepts/change-intent.concepts.js.map +1 -0
  506. package/dist/workflow/lib/canonical-concepts/concepts/concern.concepts.d.ts +3 -0
  507. package/dist/workflow/lib/canonical-concepts/concepts/concern.concepts.d.ts.map +1 -0
  508. package/dist/workflow/lib/canonical-concepts/concepts/concern.concepts.js +133 -0
  509. package/dist/workflow/lib/canonical-concepts/concepts/concern.concepts.js.map +1 -0
  510. package/dist/workflow/lib/canonical-concepts/concepts/domain.concepts.d.ts +3 -0
  511. package/dist/workflow/lib/canonical-concepts/concepts/domain.concepts.d.ts.map +1 -0
  512. package/dist/workflow/lib/canonical-concepts/concepts/domain.concepts.js +116 -0
  513. package/dist/workflow/lib/canonical-concepts/concepts/domain.concepts.js.map +1 -0
  514. package/dist/workflow/lib/canonical-concepts/concepts/index.d.ts +8 -0
  515. package/dist/workflow/lib/canonical-concepts/concepts/index.d.ts.map +1 -0
  516. package/dist/workflow/lib/canonical-concepts/concepts/index.js +18 -0
  517. package/dist/workflow/lib/canonical-concepts/concepts/index.js.map +1 -0
  518. package/dist/workflow/lib/canonical-concepts/concepts/technology.concepts.d.ts +3 -0
  519. package/dist/workflow/lib/canonical-concepts/concepts/technology.concepts.d.ts.map +1 -0
  520. package/dist/workflow/lib/canonical-concepts/concepts/technology.concepts.js +462 -0
  521. package/dist/workflow/lib/canonical-concepts/concepts/technology.concepts.js.map +1 -0
  522. package/dist/workflow/lib/canonical-concepts/index.d.ts +3 -0
  523. package/dist/workflow/lib/canonical-concepts/index.d.ts.map +1 -0
  524. package/dist/workflow/lib/canonical-concepts/index.js +16 -0
  525. package/dist/workflow/lib/canonical-concepts/index.js.map +1 -0
  526. package/dist/workflow/lib/catalog-taxonomies.d.ts +41 -0
  527. package/dist/workflow/lib/catalog-taxonomies.d.ts.map +1 -0
  528. package/dist/workflow/lib/catalog-taxonomies.js +3475 -0
  529. package/dist/workflow/lib/catalog-taxonomies.js.map +1 -0
  530. package/dist/workflow/lib/compiled-run.d.ts +118 -0
  531. package/dist/workflow/lib/compiled-run.d.ts.map +1 -0
  532. package/dist/workflow/lib/compiled-run.js +3 -0
  533. package/dist/workflow/lib/compiled-run.js.map +1 -0
  534. package/dist/workflow/lib/compiled-working-file.d.ts +11 -0
  535. package/dist/workflow/lib/compiled-working-file.d.ts.map +1 -0
  536. package/dist/workflow/lib/compiled-working-file.js +3 -0
  537. package/dist/workflow/lib/compiled-working-file.js.map +1 -0
  538. package/dist/workflow/lib/compiled-workspace-manifest.d.ts +101 -0
  539. package/dist/workflow/lib/compiled-workspace-manifest.d.ts.map +1 -0
  540. package/dist/workflow/lib/compiled-workspace-manifest.js +3 -0
  541. package/dist/workflow/lib/compiled-workspace-manifest.js.map +1 -0
  542. package/dist/workflow/lib/concurrency-group.d.ts +6 -0
  543. package/dist/workflow/lib/concurrency-group.d.ts.map +1 -0
  544. package/dist/workflow/lib/concurrency-group.js +3 -0
  545. package/dist/workflow/lib/concurrency-group.js.map +1 -0
  546. package/dist/workflow/lib/deliverable-result.d.ts +124 -0
  547. package/dist/workflow/lib/deliverable-result.d.ts.map +1 -0
  548. package/dist/workflow/lib/deliverable-result.js +27 -0
  549. package/dist/workflow/lib/deliverable-result.js.map +1 -0
  550. package/dist/workflow/lib/domain-tag.d.ts +2 -0
  551. package/dist/workflow/lib/domain-tag.d.ts.map +1 -0
  552. package/dist/workflow/lib/domain-tag.js +3 -0
  553. package/dist/workflow/lib/domain-tag.js.map +1 -0
  554. package/dist/workflow/lib/enums.d.ts +138 -0
  555. package/dist/workflow/lib/enums.d.ts.map +1 -0
  556. package/dist/workflow/lib/enums.js +166 -0
  557. package/dist/workflow/lib/enums.js.map +1 -0
  558. package/dist/workflow/lib/errors.d.ts +35 -0
  559. package/dist/workflow/lib/errors.d.ts.map +1 -0
  560. package/dist/workflow/lib/errors.js +62 -0
  561. package/dist/workflow/lib/errors.js.map +1 -0
  562. package/dist/workflow/lib/job-run.d.ts +32 -0
  563. package/dist/workflow/lib/job-run.d.ts.map +1 -0
  564. package/dist/workflow/lib/job-run.js +3 -0
  565. package/dist/workflow/lib/job-run.js.map +1 -0
  566. package/dist/workflow/lib/model-ref.d.ts +40 -0
  567. package/dist/workflow/lib/model-ref.d.ts.map +1 -0
  568. package/dist/workflow/lib/model-ref.js +34 -0
  569. package/dist/workflow/lib/model-ref.js.map +1 -0
  570. package/dist/workflow/lib/mount-plan.d.ts +105 -0
  571. package/dist/workflow/lib/mount-plan.d.ts.map +1 -0
  572. package/dist/workflow/lib/mount-plan.js +3 -0
  573. package/dist/workflow/lib/mount-plan.js.map +1 -0
  574. package/dist/workflow/lib/phase-report.d.ts +9 -0
  575. package/dist/workflow/lib/phase-report.d.ts.map +1 -0
  576. package/dist/workflow/lib/phase-report.js +30 -0
  577. package/dist/workflow/lib/phase-report.js.map +1 -0
  578. package/dist/workflow/lib/platform-task-queue.d.ts +17 -0
  579. package/dist/workflow/lib/platform-task-queue.d.ts.map +1 -0
  580. package/dist/workflow/lib/platform-task-queue.js +33 -0
  581. package/dist/workflow/lib/platform-task-queue.js.map +1 -0
  582. package/dist/workflow/lib/review-subject/index.d.ts +5 -0
  583. package/dist/workflow/lib/review-subject/index.d.ts.map +1 -0
  584. package/dist/workflow/lib/review-subject/index.js +8 -0
  585. package/dist/workflow/lib/review-subject/index.js.map +1 -0
  586. package/dist/workflow/lib/review-subject/kinds.d.ts +5 -0
  587. package/dist/workflow/lib/review-subject/kinds.d.ts.map +1 -0
  588. package/dist/workflow/lib/review-subject/kinds.js +9 -0
  589. package/dist/workflow/lib/review-subject/kinds.js.map +1 -0
  590. package/dist/workflow/lib/review-subject/narrow.d.ts +5 -0
  591. package/dist/workflow/lib/review-subject/narrow.d.ts.map +1 -0
  592. package/dist/workflow/lib/review-subject/narrow.js +79 -0
  593. package/dist/workflow/lib/review-subject/narrow.js.map +1 -0
  594. package/dist/workflow/lib/review-subject/producers/artifact-ref.d.ts +9 -0
  595. package/dist/workflow/lib/review-subject/producers/artifact-ref.d.ts.map +1 -0
  596. package/dist/workflow/lib/review-subject/producers/artifact-ref.js +16 -0
  597. package/dist/workflow/lib/review-subject/producers/artifact-ref.js.map +1 -0
  598. package/dist/workflow/lib/review-subject/producers/string.d.ts +7 -0
  599. package/dist/workflow/lib/review-subject/producers/string.d.ts.map +1 -0
  600. package/dist/workflow/lib/review-subject/producers/string.js +11 -0
  601. package/dist/workflow/lib/review-subject/producers/string.js.map +1 -0
  602. package/dist/workflow/lib/role-capability.d.ts +16 -0
  603. package/dist/workflow/lib/role-capability.d.ts.map +1 -0
  604. package/dist/workflow/lib/role-capability.js +19 -0
  605. package/dist/workflow/lib/role-capability.js.map +1 -0
  606. package/dist/workflow/lib/run-progress.d.ts +100 -0
  607. package/dist/workflow/lib/run-progress.d.ts.map +1 -0
  608. package/dist/workflow/lib/run-progress.js +96 -0
  609. package/dist/workflow/lib/run-progress.js.map +1 -0
  610. package/dist/workflow/lib/sampling-profiles.d.ts +18 -0
  611. package/dist/workflow/lib/sampling-profiles.d.ts.map +1 -0
  612. package/dist/workflow/lib/sampling-profiles.js +56 -0
  613. package/dist/workflow/lib/sampling-profiles.js.map +1 -0
  614. package/dist/workflow/lib/snapshot-ref.d.ts +10 -0
  615. package/dist/workflow/lib/snapshot-ref.d.ts.map +1 -0
  616. package/dist/workflow/lib/snapshot-ref.js +3 -0
  617. package/dist/workflow/lib/snapshot-ref.js.map +1 -0
  618. package/dist/workflow/lib/temporal-namespace.d.ts +5 -0
  619. package/dist/workflow/lib/temporal-namespace.d.ts.map +1 -0
  620. package/dist/workflow/lib/temporal-namespace.js +34 -0
  621. package/dist/workflow/lib/temporal-namespace.js.map +1 -0
  622. package/dist/workflow/lib/trigger-payload.d.ts +35 -0
  623. package/dist/workflow/lib/trigger-payload.d.ts.map +1 -0
  624. package/dist/workflow/lib/trigger-payload.js +3 -0
  625. package/dist/workflow/lib/trigger-payload.js.map +1 -0
  626. package/dist/workflow/lib/variable-requirement.d.ts +18 -0
  627. package/dist/workflow/lib/variable-requirement.d.ts.map +1 -0
  628. package/dist/workflow/lib/variable-requirement.js +3 -0
  629. package/dist/workflow/lib/variable-requirement.js.map +1 -0
  630. package/dist/workflow/lib/work-item-payloads.d.ts +114 -0
  631. package/dist/workflow/lib/work-item-payloads.d.ts.map +1 -0
  632. package/dist/workflow/lib/work-item-payloads.js +60 -0
  633. package/dist/workflow/lib/work-item-payloads.js.map +1 -0
  634. package/dist/workflow/lib/workflow-stage.d.ts +11 -0
  635. package/dist/workflow/lib/workflow-stage.d.ts.map +1 -0
  636. package/dist/workflow/lib/workflow-stage.js +28 -0
  637. package/dist/workflow/lib/workflow-stage.js.map +1 -0
  638. package/dist/workflow/lib/workspace-manifest-enums.d.ts +42 -0
  639. package/dist/workflow/lib/workspace-manifest-enums.d.ts.map +1 -0
  640. package/dist/workflow/lib/workspace-manifest-enums.js +80 -0
  641. package/dist/workflow/lib/workspace-manifest-enums.js.map +1 -0
  642. package/package.json +173 -0
  643. package/src/agent-composition/index.ts +17 -0
  644. package/src/agent-composition/lib/capability-layer.ts +46 -0
  645. package/src/agent-composition/lib/composition-limits-schema.ts +38 -0
  646. package/src/agent-composition/lib/composition-workspace.ts +210 -0
  647. package/src/agent-composition/lib/composition.ts +205 -0
  648. package/src/agent-composition/lib/intrinsic-floor.ts +50 -0
  649. package/src/agent-composition/lib/model-resolution-matrix.ts +112 -0
  650. package/src/agent-workspace/index.ts +27 -0
  651. package/src/agent-workspace/lib/agent-run-context.ts +44 -0
  652. package/src/agent-workspace/lib/agent-tool-defaults.ts +252 -0
  653. package/src/agent-workspace/lib/awp-v1.ts +289 -0
  654. package/src/agent-workspace/lib/context-json.ts +92 -0
  655. package/src/agent-workspace/lib/deliverable-spec-ref.ts +60 -0
  656. package/src/agent-workspace/lib/endpoint-fetch-spec.ts +66 -0
  657. package/src/agent-workspace/lib/manifest.ts +53 -0
  658. package/src/agent-workspace/lib/mount-apply.ts +79 -0
  659. package/src/agent-workspace/lib/working-file.ts +173 -0
  660. package/src/agent-workspace/lib/workspace-layout.ts +106 -0
  661. package/src/agent-workspace/lib/workspace-spec.ts +212 -0
  662. package/src/biome/index.ts +10 -0
  663. package/src/biome/lib/biome-api.ts +33 -0
  664. package/src/biome/lib/biome-capability-refs.ts +29 -0
  665. package/src/biome/lib/biome-engines.ts +18 -0
  666. package/src/biome/lib/biome-lifecycle-hooks.ts +28 -0
  667. package/src/biome/lib/biome-lifecycle.ts +29 -0
  668. package/src/biome/lib/biome-manifest.ts +102 -0
  669. package/src/biome/lib/biome-permissions.ts +35 -0
  670. package/src/biome/lib/biome-scope.ts +19 -0
  671. package/src/biome/lib/biome-trust-tier.ts +21 -0
  672. package/src/biome/lib/trust-tier-policies.ts +99 -0
  673. package/src/capability/index.ts +8 -0
  674. package/src/capability/lib/capability-contribution.ts +99 -0
  675. package/src/capability/lib/capability-grant.ts +90 -0
  676. package/src/capability/lib/capability-policy.ts +37 -0
  677. package/src/capability/lib/capability-ref.ts +138 -0
  678. package/src/capability/lib/errors.ts +180 -0
  679. package/src/capability/lib/meta-tool.ts +213 -0
  680. package/src/capability/lib/permission-profile.ts +91 -0
  681. package/src/capability/lib/shell-command-descriptor.ts +66 -0
  682. package/src/contribution/index.ts +4 -0
  683. package/src/contribution/lib/contribution-kind.ts +132 -0
  684. package/src/contribution/lib/contribution-source.ts +29 -0
  685. package/src/contribution/lib/contribution.ts +209 -0
  686. package/src/contribution/lib/registry.ts +100 -0
  687. package/src/document-templates/index.ts +24 -0
  688. package/src/document-templates/lib/document-template.ts +88 -0
  689. package/src/document-templates/lib/index.ts +2 -0
  690. package/src/document-templates/lib/rendering-shape.ts +48 -0
  691. package/src/document-themes/index.ts +21 -0
  692. package/src/document-themes/lib/component-vocabulary.ts +100 -0
  693. package/src/document-themes/lib/document-theme.ts +110 -0
  694. package/src/document-themes/lib/index.ts +2 -0
  695. package/src/entitlement/index.ts +1 -0
  696. package/src/entitlement/lib/entitlement.ts +142 -0
  697. package/src/execution-context/index.ts +3 -0
  698. package/src/execution-context/lib/caller.ts +46 -0
  699. package/src/execution-context/lib/execution-context.ts +205 -0
  700. package/src/execution-context/lib/subject.ts +17 -0
  701. package/src/execution-environment/index.ts +3 -0
  702. package/src/execution-environment/lib/approval-rule.ts +32 -0
  703. package/src/execution-environment/lib/built-in-environments.ts +89 -0
  704. package/src/execution-environment/lib/execution-environment.ts +266 -0
  705. package/src/kernel-state/index.ts +3 -0
  706. package/src/kernel-state/lib/adapter-kind.ts +18 -0
  707. package/src/kernel-state/lib/kernel-state.ts +139 -0
  708. package/src/kernel-state/lib/key-grammar.ts +105 -0
  709. package/src/llm-gateway/index.ts +2 -0
  710. package/src/llm-gateway/lib/caller.ts +48 -0
  711. package/src/llm-gateway/lib/errors.ts +111 -0
  712. package/src/mcp-tool/index.ts +6 -0
  713. package/src/mcp-tool/lib/mcp-protocol.ts +94 -0
  714. package/src/mcp-tool/lib/mcp-server-config.ts +17 -0
  715. package/src/mcp-tool/lib/provider-kind.ts +35 -0
  716. package/src/mcp-tool/lib/resolver-scope.ts +32 -0
  717. package/src/mcp-tool/lib/tool-provider.ts +62 -0
  718. package/src/mcp-tool/lib/tool-selection.ts +48 -0
  719. package/src/object/index.ts +4 -0
  720. package/src/object/lib/object-lifecycle.ts +22 -0
  721. package/src/object/lib/xema-object-kind.ts +73 -0
  722. package/src/object/lib/xema-object-ref.ts +233 -0
  723. package/src/object/lib/xema-object.ts +81 -0
  724. package/src/policy/index.ts +3 -0
  725. package/src/policy/lib/obligations.ts +155 -0
  726. package/src/policy/lib/policy.ts +104 -0
  727. package/src/policy/lib/route-hints.ts +51 -0
  728. package/src/runner/index.ts +11 -0
  729. package/src/runner/lib/dispatch.ts +61 -0
  730. package/src/runner/lib/input-hash.ts +66 -0
  731. package/src/runner/lib/job-token.ts +80 -0
  732. package/src/runner/lib/runner-attestation.ts +53 -0
  733. package/src/runner/lib/runner-job.ts +90 -0
  734. package/src/runner/lib/runner-kind.ts +10 -0
  735. package/src/runner/lib/runner-mode.ts +16 -0
  736. package/src/runner/lib/runner-plane.ts +101 -0
  737. package/src/runner/lib/runner-registration.ts +204 -0
  738. package/src/runner/lib/runner.ts +103 -0
  739. package/src/runner/lib/runtime-isolation.ts +53 -0
  740. package/src/search-source/index.ts +4 -0
  741. package/src/search-source/lib/indexable-document.ts +70 -0
  742. package/src/search-source/lib/search-index-event.ts +56 -0
  743. package/src/search-source/lib/search-replay.ts +96 -0
  744. package/src/search-source/lib/search-source-descriptor.ts +50 -0
  745. package/src/service-registry/index.ts +3 -0
  746. package/src/service-registry/lib/inject-service.ts +25 -0
  747. package/src/service-registry/lib/service-descriptor.ts +75 -0
  748. package/src/service-registry/lib/service-registry-client.ts +107 -0
  749. package/src/skill/index.ts +15 -0
  750. package/src/skill/lib/skill-enums.ts +124 -0
  751. package/src/skill/lib/skill-governance.ts +281 -0
  752. package/src/skill/lib/skill-source.ts +41 -0
  753. package/src/skill/lib/skill.ts +150 -0
  754. package/src/space/index.ts +3 -0
  755. package/src/space/lib/space-ref-parser.ts +198 -0
  756. package/src/space/lib/space-traversal.ts +55 -0
  757. package/src/space/lib/space.ts +173 -0
  758. package/src/subject/index.ts +2 -0
  759. package/src/subject/lib/subject.ts +111 -0
  760. package/src/subject/lib/token-class.ts +27 -0
  761. package/src/workflow/index.ts +45 -0
  762. package/src/workflow/lib/action-ref.ts +48 -0
  763. package/src/workflow/lib/activity-outputs.ts +105 -0
  764. package/src/workflow/lib/agent-role.ts +136 -0
  765. package/src/workflow/lib/artifact-ref.ts +93 -0
  766. package/src/workflow/lib/briefcase.ts +194 -0
  767. package/src/workflow/lib/canonical-concepts/canonical-concept-registry.ts +99 -0
  768. package/src/workflow/lib/canonical-concepts/concepts/change-intent.concepts.ts +124 -0
  769. package/src/workflow/lib/canonical-concepts/concepts/concern.concepts.ts +194 -0
  770. package/src/workflow/lib/canonical-concepts/concepts/domain.concepts.ts +205 -0
  771. package/src/workflow/lib/canonical-concepts/concepts/index.ts +15 -0
  772. package/src/workflow/lib/canonical-concepts/concepts/technology.concepts.ts +667 -0
  773. package/src/workflow/lib/canonical-concepts/index.ts +2 -0
  774. package/src/workflow/lib/catalog-taxonomies.ts +3695 -0
  775. package/src/workflow/lib/compiled-run.ts +376 -0
  776. package/src/workflow/lib/compiled-working-file.ts +35 -0
  777. package/src/workflow/lib/compiled-workspace-manifest.ts +185 -0
  778. package/src/workflow/lib/concurrency-group.ts +17 -0
  779. package/src/workflow/lib/deliverable-result.ts +238 -0
  780. package/src/workflow/lib/domain-tag.ts +48 -0
  781. package/src/workflow/lib/enums.ts +288 -0
  782. package/src/workflow/lib/errors.ts +171 -0
  783. package/src/workflow/lib/job-run.ts +65 -0
  784. package/src/workflow/lib/model-ref.ts +118 -0
  785. package/src/workflow/lib/mount-plan.ts +230 -0
  786. package/src/workflow/lib/phase-report.ts +67 -0
  787. package/src/workflow/lib/platform-task-queue.ts +83 -0
  788. package/src/workflow/lib/review-subject/index.ts +15 -0
  789. package/src/workflow/lib/review-subject/kinds.ts +31 -0
  790. package/src/workflow/lib/review-subject/narrow.ts +123 -0
  791. package/src/workflow/lib/review-subject/producers/artifact-ref.ts +33 -0
  792. package/src/workflow/lib/review-subject/producers/string.ts +24 -0
  793. package/src/workflow/lib/role-capability.ts +80 -0
  794. package/src/workflow/lib/run-progress.ts +254 -0
  795. package/src/workflow/lib/sampling-profiles.ts +153 -0
  796. package/src/workflow/lib/snapshot-ref.ts +27 -0
  797. package/src/workflow/lib/temporal-namespace.ts +78 -0
  798. package/src/workflow/lib/trigger-payload.ts +69 -0
  799. package/src/workflow/lib/variable-requirement.ts +66 -0
  800. package/src/workflow/lib/work-item-payloads.ts +139 -0
  801. package/src/workflow/lib/workflow-stage.ts +89 -0
  802. package/src/workflow/lib/workspace-manifest-enums.ts +143 -0
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RUN_STEP_TARGET_MAX = exports.RUN_STEP_SUMMARY_MAX = exports.RunMilestonePhase = exports.RunActivityKind = exports.RunStepKind = void 0;
4
+ exports.mapSessionFrameKindToStepKind = mapSessionFrameKindToStepKind;
5
+ exports.mapToolNameToStepKind = mapToolNameToStepKind;
6
+ var RunStepKind;
7
+ (function (RunStepKind) {
8
+ RunStepKind["THINKING"] = "thinking";
9
+ RunStepKind["EDITING_FILE"] = "editing_file";
10
+ RunStepKind["RUNNING_COMMAND"] = "running_command";
11
+ RunStepKind["READING_FILE"] = "reading_file";
12
+ RunStepKind["SEARCHING"] = "searching";
13
+ RunStepKind["FETCHING"] = "fetching";
14
+ RunStepKind["VALIDATING"] = "validating";
15
+ RunStepKind["WAITING_INPUT"] = "waiting_input";
16
+ RunStepKind["SUMMARIZING"] = "summarizing";
17
+ RunStepKind["POSTING_REVIEW"] = "posting_review";
18
+ RunStepKind["PUBLISHING"] = "publishing";
19
+ RunStepKind["OTHER"] = "other";
20
+ })(RunStepKind || (exports.RunStepKind = RunStepKind = {}));
21
+ var RunActivityKind;
22
+ (function (RunActivityKind) {
23
+ RunActivityKind["AGENT_WORK"] = "agent_work";
24
+ RunActivityKind["DELIVERABLE_VALIDATION"] = "deliverable_validation";
25
+ RunActivityKind["REVIEW_POSTING"] = "review_posting";
26
+ RunActivityKind["SCM_MERGE"] = "scm_merge";
27
+ RunActivityKind["SCM_CHECKOUT"] = "scm_checkout";
28
+ RunActivityKind["KB_PUBLISH"] = "kb_publish";
29
+ RunActivityKind["WEBHOOK"] = "webhook";
30
+ RunActivityKind["HTTP"] = "http";
31
+ RunActivityKind["DISPATCH"] = "dispatch";
32
+ RunActivityKind["ARTIFACT_EMIT"] = "artifact_emit";
33
+ RunActivityKind["RECONCILE"] = "reconcile";
34
+ RunActivityKind["ENDPOINT_FETCH"] = "endpoint_fetch";
35
+ RunActivityKind["SCHEDULED_DISPATCH"] = "scheduled_dispatch";
36
+ RunActivityKind["REVIEW"] = "review";
37
+ RunActivityKind["BACKLOG_SYNC"] = "backlog_sync";
38
+ RunActivityKind["RUN_MIGRATIONS"] = "run_migrations";
39
+ RunActivityKind["CHILD_WORKFLOW"] = "child_workflow";
40
+ })(RunActivityKind || (exports.RunActivityKind = RunActivityKind = {}));
41
+ var RunMilestonePhase;
42
+ (function (RunMilestonePhase) {
43
+ RunMilestonePhase["STARTED"] = "started";
44
+ RunMilestonePhase["PROGRESSING"] = "progressing";
45
+ RunMilestonePhase["COMPLETED"] = "completed";
46
+ RunMilestonePhase["AWAITING_INPUT"] = "awaiting_input";
47
+ RunMilestonePhase["FAILED"] = "failed";
48
+ })(RunMilestonePhase || (exports.RunMilestonePhase = RunMilestonePhase = {}));
49
+ function mapSessionFrameKindToStepKind(kind) {
50
+ switch (kind) {
51
+ case 'token':
52
+ return RunStepKind.SUMMARIZING;
53
+ case 'tool-call':
54
+ return RunStepKind.OTHER;
55
+ case 'tool-result':
56
+ return RunStepKind.OTHER;
57
+ case 'progress':
58
+ return RunStepKind.THINKING;
59
+ case 'question':
60
+ return RunStepKind.WAITING_INPUT;
61
+ case 'error':
62
+ return RunStepKind.OTHER;
63
+ case 'done':
64
+ return RunStepKind.SUMMARIZING;
65
+ default:
66
+ return assertNever(kind);
67
+ }
68
+ }
69
+ function mapToolNameToStepKind(toolName) {
70
+ const normalized = toolName.toLowerCase();
71
+ if (normalized === 'edit' || normalized === 'write' || normalized === 'multiedit') {
72
+ return RunStepKind.EDITING_FILE;
73
+ }
74
+ if (normalized === 'bash' || normalized === 'shell') {
75
+ return RunStepKind.RUNNING_COMMAND;
76
+ }
77
+ if (normalized === 'read' || normalized === 'view' || normalized === 'cat') {
78
+ return RunStepKind.READING_FILE;
79
+ }
80
+ if (normalized === 'grep' || normalized === 'glob' || normalized === 'search' || normalized === 'find') {
81
+ return RunStepKind.SEARCHING;
82
+ }
83
+ if (normalized === 'webfetch' || normalized === 'fetch' || normalized === 'http') {
84
+ return RunStepKind.FETCHING;
85
+ }
86
+ if (normalized === 'structuredoutput' || normalized === 'summarize') {
87
+ return RunStepKind.SUMMARIZING;
88
+ }
89
+ return RunStepKind.OTHER;
90
+ }
91
+ function assertNever(value) {
92
+ throw new Error(`Unhandled AgentSessionFrameKind: ${String(value)}`);
93
+ }
94
+ exports.RUN_STEP_SUMMARY_MAX = 140;
95
+ exports.RUN_STEP_TARGET_MAX = 240;
96
+ //# sourceMappingURL=run-progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-progress.js","sourceRoot":"","sources":["../../../src/workflow/lib/run-progress.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ export declare enum SamplingProfile {
2
+ Deterministic = "deterministic",
3
+ Precise = "precise",
4
+ Analytical = "analytical",
5
+ Creative = "creative"
6
+ }
7
+ export interface SamplingParams {
8
+ temperature: number;
9
+ topP?: number;
10
+ topK?: number;
11
+ presencePenalty?: number;
12
+ frequencyPenalty?: number;
13
+ repetitionPenalty?: number;
14
+ }
15
+ export declare const SAMPLING_PROFILE_DEFAULTS: Record<SamplingProfile, SamplingParams>;
16
+ export declare function resolveSamplingParams(profile: SamplingProfile, registryOverride?: Partial<SamplingParams>): SamplingParams;
17
+ export declare function profileTemperature(profile: SamplingProfile): number | undefined;
18
+ //# sourceMappingURL=sampling-profiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampling-profiles.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/sampling-profiles.ts"],"names":[],"mappings":"AAgCA,oBAAY,eAAe;IAMzB,aAAa,kBAAkB;IAO/B,OAAO,YAAY;IAOnB,UAAU,eAAe;IAOzB,QAAQ,aAAa;CACtB;AAMD,MAAM,WAAW,cAAc;IAE7B,WAAW,EAAE,MAAM,CAAC;IAGpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAUD,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,eAAe,EAAE,cAAc,CAiB7E,CAAC;AAWF,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,eAAe,EACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GACzC,cAAc,CAchB;AAUD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,CAG/E"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SAMPLING_PROFILE_DEFAULTS = exports.SamplingProfile = void 0;
4
+ exports.resolveSamplingParams = resolveSamplingParams;
5
+ exports.profileTemperature = profileTemperature;
6
+ var SamplingProfile;
7
+ (function (SamplingProfile) {
8
+ SamplingProfile["Deterministic"] = "deterministic";
9
+ SamplingProfile["Precise"] = "precise";
10
+ SamplingProfile["Analytical"] = "analytical";
11
+ SamplingProfile["Creative"] = "creative";
12
+ })(SamplingProfile || (exports.SamplingProfile = SamplingProfile = {}));
13
+ exports.SAMPLING_PROFILE_DEFAULTS = {
14
+ [SamplingProfile.Deterministic]: {
15
+ temperature: 0.0,
16
+ topP: 0.95,
17
+ },
18
+ [SamplingProfile.Precise]: {
19
+ temperature: 0.15,
20
+ topP: 0.95,
21
+ },
22
+ [SamplingProfile.Analytical]: {
23
+ temperature: 0.6,
24
+ topP: 0.95,
25
+ },
26
+ [SamplingProfile.Creative]: {
27
+ temperature: 0.85,
28
+ topP: 0.95,
29
+ },
30
+ };
31
+ function resolveSamplingParams(profile, registryOverride) {
32
+ const defaults = exports.SAMPLING_PROFILE_DEFAULTS[profile];
33
+ if (!registryOverride)
34
+ return { ...defaults };
35
+ const merged = {
36
+ temperature: registryOverride.temperature ?? defaults.temperature,
37
+ };
38
+ const topP = registryOverride.topP ?? defaults.topP;
39
+ if (topP !== undefined)
40
+ merged.topP = topP;
41
+ if (registryOverride.topK !== undefined)
42
+ merged.topK = registryOverride.topK;
43
+ if (registryOverride.presencePenalty !== undefined)
44
+ merged.presencePenalty = registryOverride.presencePenalty;
45
+ if (registryOverride.frequencyPenalty !== undefined)
46
+ merged.frequencyPenalty = registryOverride.frequencyPenalty;
47
+ if (registryOverride.repetitionPenalty !== undefined)
48
+ merged.repetitionPenalty = registryOverride.repetitionPenalty;
49
+ return merged;
50
+ }
51
+ function profileTemperature(profile) {
52
+ if (profile === SamplingProfile.Deterministic)
53
+ return 0.0;
54
+ return undefined;
55
+ }
56
+ //# sourceMappingURL=sampling-profiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampling-profiles.js","sourceRoot":"","sources":["../../../src/workflow/lib/sampling-profiles.ts"],"names":[],"mappings":";;;AA0HA,sDAiBC;AAUD,gDAGC;AAxHD,IAAY,eA4BX;AA5BD,WAAY,eAAe;IAMzB,kDAA+B,CAAA;IAO/B,sCAAmB,CAAA;IAOnB,4CAAyB,CAAA;IAOzB,wCAAqB,CAAA;AACvB,CAAC,EA5BW,eAAe,+BAAf,eAAe,QA4B1B;AAkCY,QAAA,yBAAyB,GAA4C;IAChF,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE;QAC/B,WAAW,EAAE,GAAG;QAChB,IAAI,EAAE,IAAI;KACX;IACD,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE;QACzB,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,IAAI;KACX;IACD,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE;QAC5B,WAAW,EAAE,GAAG;QAChB,IAAI,EAAE,IAAI;KACX;IACD,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE;QAC1B,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,IAAI;KACX;CACF,CAAC;AAWF,SAAgB,qBAAqB,CACnC,OAAwB,EACxB,gBAA0C;IAE1C,MAAM,QAAQ,GAAG,iCAAyB,CAAC,OAAO,CAAC,CAAC;IACpD,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,CAAC;IAE9C,MAAM,MAAM,GAAmB;QAC7B,WAAW,EAAE,gBAAgB,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW;KAClE,CAAC;IACF,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,CAAC;IACpD,IAAI,IAAI,KAAK,SAAS;QAAE,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;IAC3C,IAAI,gBAAgB,CAAC,IAAI,KAAK,SAAS;QAAE,MAAM,CAAC,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC;IAC7E,IAAI,gBAAgB,CAAC,eAAe,KAAK,SAAS;QAAE,MAAM,CAAC,eAAe,GAAG,gBAAgB,CAAC,eAAe,CAAC;IAC9G,IAAI,gBAAgB,CAAC,gBAAgB,KAAK,SAAS;QAAE,MAAM,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC;IACjH,IAAI,gBAAgB,CAAC,iBAAiB,KAAK,SAAS;QAAE,MAAM,CAAC,iBAAiB,GAAG,gBAAgB,CAAC,iBAAiB,CAAC;IACpH,OAAO,MAAM,CAAC;AAChB,CAAC;AAUD,SAAgB,kBAAkB,CAAC,OAAwB;IACzD,IAAI,OAAO,KAAK,eAAe,CAAC,aAAa;QAAE,OAAO,GAAG,CAAC;IAC1D,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { SnapshotStoreKind } from './enums';
2
+ export interface SnapshotRef {
3
+ readonly store: SnapshotStoreKind;
4
+ readonly uri: string;
5
+ readonly sha256: string;
6
+ readonly sizeBytes: number;
7
+ readonly contentType: string;
8
+ readonly createdAt: string;
9
+ }
10
+ //# sourceMappingURL=snapshot-ref.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot-ref.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/snapshot-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAa5C,MAAM,WAAW,WAAW;IAE1B,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAElC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=snapshot-ref.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot-ref.js","sourceRoot":"","sources":["../../../src/workflow/lib/snapshot-ref.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare const PLATFORM_TEMPORAL_NAMESPACE = "xema";
2
+ export declare function temporalNamespaceForOrg(orgId: string | null): string;
3
+ export declare function orgIdFromTemporalNamespace(namespace: string): string | null;
4
+ export declare function isPlatformTemporalNamespace(namespace: string): boolean;
5
+ //# sourceMappingURL=temporal-namespace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal-namespace.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/temporal-namespace.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAgBlD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAWpE;AASD,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAa3E;AAOD,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAEtE"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PLATFORM_TEMPORAL_NAMESPACE = void 0;
4
+ exports.temporalNamespaceForOrg = temporalNamespaceForOrg;
5
+ exports.orgIdFromTemporalNamespace = orgIdFromTemporalNamespace;
6
+ exports.isPlatformTemporalNamespace = isPlatformTemporalNamespace;
7
+ exports.PLATFORM_TEMPORAL_NAMESPACE = 'xema';
8
+ const ORG_NAMESPACE_PREFIX = 'xema-org-';
9
+ function temporalNamespaceForOrg(orgId) {
10
+ if (orgId === null) {
11
+ return exports.PLATFORM_TEMPORAL_NAMESPACE;
12
+ }
13
+ if (orgId.length === 0) {
14
+ throw new Error('temporalNamespaceForOrg called with empty orgId — pass null for ' +
15
+ 'system runs, a non-empty orgId for tenant runs.');
16
+ }
17
+ return `${ORG_NAMESPACE_PREFIX}${orgId}`;
18
+ }
19
+ function orgIdFromTemporalNamespace(namespace) {
20
+ if (namespace === exports.PLATFORM_TEMPORAL_NAMESPACE) {
21
+ return null;
22
+ }
23
+ if (!namespace.startsWith(ORG_NAMESPACE_PREFIX)) {
24
+ throw new Error(`Namespace '${namespace}' does not match the platform namespace ` +
25
+ `'${exports.PLATFORM_TEMPORAL_NAMESPACE}' or the org-namespace prefix ` +
26
+ `'${ORG_NAMESPACE_PREFIX}<orgId>'. The Temporal cluster contains a ` +
27
+ `namespace that this code does not own.`);
28
+ }
29
+ return namespace.slice(ORG_NAMESPACE_PREFIX.length);
30
+ }
31
+ function isPlatformTemporalNamespace(namespace) {
32
+ return namespace === exports.PLATFORM_TEMPORAL_NAMESPACE;
33
+ }
34
+ //# sourceMappingURL=temporal-namespace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temporal-namespace.js","sourceRoot":"","sources":["../../../src/workflow/lib/temporal-namespace.ts"],"names":[],"mappings":";;;AAmCA,0DAWC;AASD,gEAaC;AAOD,kEAEC;AA1DY,QAAA,2BAA2B,GAAG,MAAM,CAAC;AAElD,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAczC,SAAgB,uBAAuB,CAAC,KAAoB;IAC1D,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACnB,OAAO,mCAA2B,CAAC;IACrC,CAAC;IACD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,kEAAkE;YAClE,iDAAiD,CAClD,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,oBAAoB,GAAG,KAAK,EAAE,CAAC;AAC3C,CAAC;AASD,SAAgB,0BAA0B,CAAC,SAAiB;IAC1D,IAAI,SAAS,KAAK,mCAA2B,EAAE,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CACb,cAAc,SAAS,0CAA0C;YACjE,IAAI,mCAA2B,gCAAgC;YAC/D,IAAI,oBAAoB,4CAA4C;YACpE,wCAAwC,CACzC,CAAC;IACJ,CAAC;IACD,OAAO,SAAS,CAAC,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAOD,SAAgB,2BAA2B,CAAC,SAAiB;IAC3D,OAAO,SAAS,KAAK,mCAA2B,CAAC;AACnD,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { WorkflowTriggerKind } from './enums';
2
+ export type TriggerPayload = WorkflowDispatchTriggerPayload | ScheduleTriggerPayload | WebhookTriggerPayload | WorkflowCallTriggerPayload;
3
+ export interface BaseTriggerPayload {
4
+ readonly kind: WorkflowTriggerKind;
5
+ readonly correlationId: string;
6
+ readonly orgId: string;
7
+ readonly projectId: string;
8
+ readonly actorSubject: string | null;
9
+ readonly triggeredAt: string;
10
+ }
11
+ export interface WorkflowDispatchTriggerPayload extends BaseTriggerPayload {
12
+ readonly kind: WorkflowTriggerKind.WORKFLOW_DISPATCH;
13
+ readonly inputs: Readonly<Record<string, unknown>>;
14
+ }
15
+ export interface ScheduleTriggerPayload extends BaseTriggerPayload {
16
+ readonly kind: WorkflowTriggerKind.SCHEDULE;
17
+ readonly scheduleId: string;
18
+ readonly cronSpec: string;
19
+ readonly inputs: Readonly<Record<string, unknown>>;
20
+ }
21
+ export interface WebhookTriggerPayload extends BaseTriggerPayload {
22
+ readonly kind: WorkflowTriggerKind.WEBHOOK;
23
+ readonly event: string;
24
+ readonly provider: string;
25
+ readonly adapterKey: string;
26
+ readonly deliveryId: string;
27
+ readonly payload: Readonly<Record<string, unknown>>;
28
+ }
29
+ export interface WorkflowCallTriggerPayload extends BaseTriggerPayload {
30
+ readonly kind: WorkflowTriggerKind.WORKFLOW_CALL;
31
+ readonly parentRunId: string;
32
+ readonly parentWorkflowRef: string;
33
+ readonly inputs: Readonly<Record<string, unknown>>;
34
+ }
35
+ //# sourceMappingURL=trigger-payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger-payload.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/trigger-payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAW9C,MAAM,MAAM,cAAc,GACtB,8BAA8B,GAC9B,sBAAsB,GACtB,qBAAqB,GACrB,0BAA0B,CAAC;AAE/B,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IAEnC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,8BAA+B,SAAQ,kBAAkB;IACxE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC,iBAAiB,CAAC;IAErD,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC,QAAQ,CAAC;IAE5C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC,OAAO,CAAC;IAE3C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACrD;AAED,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC,aAAa,CAAC;IAEjD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IAEnC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACpD"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=trigger-payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trigger-payload.js","sourceRoot":"","sources":["../../../src/workflow/lib/trigger-payload.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ export interface WorkflowVariableRequirement {
2
+ readonly name: string;
3
+ readonly secret: boolean;
4
+ readonly optional: boolean;
5
+ }
6
+ export interface ResolvedWorkflowVariables {
7
+ readonly vars: Readonly<Record<string, string>>;
8
+ readonly secrets: Readonly<Record<string, string>>;
9
+ }
10
+ export interface WalletContents {
11
+ readonly walletName: string;
12
+ readonly entries: readonly WalletEntry[];
13
+ }
14
+ export interface WalletEntry {
15
+ readonly key: string;
16
+ readonly isSecret: boolean;
17
+ }
18
+ //# sourceMappingURL=variable-requirement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable-requirement.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/variable-requirement.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,2BAA2B;IAE1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAOtB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAMzB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAYD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACpD;AAaD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=variable-requirement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable-requirement.js","sourceRoot":"","sources":["../../../src/workflow/lib/variable-requirement.ts"],"names":[],"mappings":""}
@@ -0,0 +1,114 @@
1
+ import { z } from 'zod';
2
+ export declare const VoteFeedbackEntrySchema: z.ZodObject<{
3
+ reviewerGuild: z.ZodString;
4
+ vote: z.ZodString;
5
+ reasoning: z.ZodOptional<z.ZodString>;
6
+ findings: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
7
+ }, z.core.$strip>;
8
+ export type VoteFeedbackEntry = z.infer<typeof VoteFeedbackEntrySchema>;
9
+ export declare const RejectionHistoryEntrySchema: z.ZodObject<{
10
+ attemptNumber: z.ZodNumber;
11
+ feedback: z.ZodArray<z.ZodObject<{
12
+ reviewerGuild: z.ZodString;
13
+ vote: z.ZodString;
14
+ reasoning: z.ZodOptional<z.ZodString>;
15
+ findings: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
16
+ }, z.core.$strip>>;
17
+ timestamp: z.ZodString;
18
+ }, z.core.$strip>;
19
+ export type RejectionHistoryEntry = z.infer<typeof RejectionHistoryEntrySchema>;
20
+ export declare const WorkerRetryPayloadSchema: z.ZodObject<{
21
+ rejectionFeedback: z.ZodArray<z.ZodObject<{
22
+ reviewerGuild: z.ZodString;
23
+ vote: z.ZodString;
24
+ reasoning: z.ZodOptional<z.ZodString>;
25
+ findings: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
26
+ }, z.core.$strip>>;
27
+ conciseRejectionFeedback: z.ZodString;
28
+ rejectionHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
29
+ attemptNumber: z.ZodNumber;
30
+ feedback: z.ZodArray<z.ZodObject<{
31
+ reviewerGuild: z.ZodString;
32
+ vote: z.ZodString;
33
+ reasoning: z.ZodOptional<z.ZodString>;
34
+ findings: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
35
+ }, z.core.$strip>>;
36
+ timestamp: z.ZodString;
37
+ }, z.core.$strip>>>;
38
+ priorResults: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
39
+ }, z.core.$loose>;
40
+ export type WorkerRetryPayload = z.infer<typeof WorkerRetryPayloadSchema>;
41
+ export declare const CoordinatorRetryPayloadSchema: z.ZodObject<{
42
+ coordinatorRejectionFeedback: z.ZodUnknown;
43
+ priorResults: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
44
+ publishedPageRefs: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
45
+ }, z.core.$loose>;
46
+ export type CoordinatorRetryPayload = z.infer<typeof CoordinatorRetryPayloadSchema>;
47
+ export declare const GateReviewAttemptEntrySchema: z.ZodObject<{
48
+ attempt: z.ZodNumber;
49
+ step: z.ZodString;
50
+ outcome: z.ZodString;
51
+ detail: z.ZodOptional<z.ZodString>;
52
+ at: z.ZodString;
53
+ }, z.core.$strip>;
54
+ export type GateReviewAttemptEntry = z.infer<typeof GateReviewAttemptEntrySchema>;
55
+ export declare const GateReviewAttemptTraceSchema: z.ZodObject<{
56
+ sessionId: z.ZodNullable<z.ZodString>;
57
+ reviewPath: z.ZodString;
58
+ durationMs: z.ZodNumber;
59
+ entries: z.ZodArray<z.ZodObject<{
60
+ attempt: z.ZodNumber;
61
+ step: z.ZodString;
62
+ outcome: z.ZodString;
63
+ detail: z.ZodOptional<z.ZodString>;
64
+ at: z.ZodString;
65
+ }, z.core.$strip>>;
66
+ exhausted: z.ZodBoolean;
67
+ }, z.core.$strip>;
68
+ export type GateReviewAttemptTrace = z.infer<typeof GateReviewAttemptTraceSchema>;
69
+ export declare const MalformedEscalationKindSchema: z.ZodEnum<{
70
+ infrastructure: "infrastructure";
71
+ malformed: "malformed";
72
+ structurally_incomplete: "structurally_incomplete";
73
+ }>;
74
+ export type MalformedEscalationKind = z.infer<typeof MalformedEscalationKindSchema>;
75
+ export declare const MalformedEscalationEntrySchema: z.ZodObject<{
76
+ reviewerGuild: z.ZodString;
77
+ reviewerAgent: z.ZodString;
78
+ kind: z.ZodEnum<{
79
+ infrastructure: "infrastructure";
80
+ malformed: "malformed";
81
+ structurally_incomplete: "structurally_incomplete";
82
+ }>;
83
+ message: z.ZodString;
84
+ rawContent: z.ZodNullable<z.ZodString>;
85
+ attempts: z.ZodArray<z.ZodObject<{
86
+ attempt: z.ZodNumber;
87
+ step: z.ZodString;
88
+ outcome: z.ZodString;
89
+ detail: z.ZodOptional<z.ZodString>;
90
+ at: z.ZodString;
91
+ }, z.core.$strip>>;
92
+ occurredAt: z.ZodString;
93
+ }, z.core.$strip>;
94
+ export type MalformedEscalationEntry = z.infer<typeof MalformedEscalationEntrySchema>;
95
+ export declare const MalformedEscalationLedgerSchema: z.ZodArray<z.ZodObject<{
96
+ reviewerGuild: z.ZodString;
97
+ reviewerAgent: z.ZodString;
98
+ kind: z.ZodEnum<{
99
+ infrastructure: "infrastructure";
100
+ malformed: "malformed";
101
+ structurally_incomplete: "structurally_incomplete";
102
+ }>;
103
+ message: z.ZodString;
104
+ rawContent: z.ZodNullable<z.ZodString>;
105
+ attempts: z.ZodArray<z.ZodObject<{
106
+ attempt: z.ZodNumber;
107
+ step: z.ZodString;
108
+ outcome: z.ZodString;
109
+ detail: z.ZodOptional<z.ZodString>;
110
+ at: z.ZodString;
111
+ }, z.core.$strip>>;
112
+ occurredAt: z.ZodString;
113
+ }, z.core.$strip>>;
114
+ //# sourceMappingURL=work-item-payloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"work-item-payloads.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/work-item-payloads.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAOxE,eAAO,MAAM,2BAA2B;;;;;;;;;iBAItC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAWhF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;iBAOrB,CAAC;AACjB,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAW1E,eAAO,MAAM,6BAA6B;;;;iBAM1B,CAAC;AACjB,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AASpF,eAAO,MAAM,4BAA4B;;;;;;iBASvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAQlF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAMvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAQlF,eAAO,MAAM,6BAA6B;;;;EAIxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;iBAQzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;kBAA0C,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MalformedEscalationLedgerSchema = exports.MalformedEscalationEntrySchema = exports.MalformedEscalationKindSchema = exports.GateReviewAttemptTraceSchema = exports.GateReviewAttemptEntrySchema = exports.CoordinatorRetryPayloadSchema = exports.WorkerRetryPayloadSchema = exports.RejectionHistoryEntrySchema = exports.VoteFeedbackEntrySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.VoteFeedbackEntrySchema = zod_1.z.object({
6
+ reviewerGuild: zod_1.z.string(),
7
+ vote: zod_1.z.string(),
8
+ reasoning: zod_1.z.string().optional(),
9
+ findings: zod_1.z.array(zod_1.z.unknown()).default([]),
10
+ });
11
+ exports.RejectionHistoryEntrySchema = zod_1.z.object({
12
+ attemptNumber: zod_1.z.number().int().min(1),
13
+ feedback: zod_1.z.array(exports.VoteFeedbackEntrySchema),
14
+ timestamp: zod_1.z.string(),
15
+ });
16
+ exports.WorkerRetryPayloadSchema = zod_1.z
17
+ .object({
18
+ rejectionFeedback: zod_1.z.array(exports.VoteFeedbackEntrySchema),
19
+ conciseRejectionFeedback: zod_1.z.string(),
20
+ rejectionHistory: zod_1.z.array(exports.RejectionHistoryEntrySchema).default([]),
21
+ priorResults: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())).default([]),
22
+ })
23
+ .passthrough();
24
+ exports.CoordinatorRetryPayloadSchema = zod_1.z
25
+ .object({
26
+ coordinatorRejectionFeedback: zod_1.z.unknown(),
27
+ priorResults: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())).default([]),
28
+ publishedPageRefs: zod_1.z.array(zod_1.z.unknown()).optional(),
29
+ })
30
+ .passthrough();
31
+ exports.GateReviewAttemptEntrySchema = zod_1.z.object({
32
+ attempt: zod_1.z.number().int().min(0),
33
+ step: zod_1.z.string(),
34
+ outcome: zod_1.z.string(),
35
+ detail: zod_1.z.string().optional(),
36
+ at: zod_1.z.string(),
37
+ });
38
+ exports.GateReviewAttemptTraceSchema = zod_1.z.object({
39
+ sessionId: zod_1.z.string().nullable(),
40
+ reviewPath: zod_1.z.string(),
41
+ durationMs: zod_1.z.number().int().min(0),
42
+ entries: zod_1.z.array(exports.GateReviewAttemptEntrySchema),
43
+ exhausted: zod_1.z.boolean(),
44
+ });
45
+ exports.MalformedEscalationKindSchema = zod_1.z.enum([
46
+ 'malformed',
47
+ 'infrastructure',
48
+ 'structurally_incomplete',
49
+ ]);
50
+ exports.MalformedEscalationEntrySchema = zod_1.z.object({
51
+ reviewerGuild: zod_1.z.string().min(1),
52
+ reviewerAgent: zod_1.z.string().min(1),
53
+ kind: exports.MalformedEscalationKindSchema,
54
+ message: zod_1.z.string(),
55
+ rawContent: zod_1.z.string().nullable(),
56
+ attempts: zod_1.z.array(exports.GateReviewAttemptEntrySchema),
57
+ occurredAt: zod_1.z.string().min(1),
58
+ });
59
+ exports.MalformedEscalationLedgerSchema = zod_1.z.array(exports.MalformedEscalationEntrySchema);
60
+ //# sourceMappingURL=work-item-payloads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"work-item-payloads.js","sourceRoot":"","sources":["../../../src/workflow/lib/work-item-payloads.ts"],"names":[],"mappings":";;;AAaA,6BAAwB;AAUX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3C,CAAC,CAAC;AAQU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;IAC1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAYU,QAAA,wBAAwB,GAAG,OAAC;KACtC,MAAM,CAAC;IACN,iBAAiB,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;IACnD,wBAAwB,EAAE,OAAC,CAAC,MAAM,EAAE;IACpC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,mCAA2B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClE,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACrE,CAAC;KACD,WAAW,EAAE,CAAC;AAYJ,QAAA,6BAA6B,GAAG,OAAC;KAC3C,MAAM,CAAC;IACN,4BAA4B,EAAE,OAAC,CAAC,OAAO,EAAE;IACzC,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACpE,iBAAiB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC;KACD,WAAW,EAAE,CAAC;AAUJ,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IAInB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AASU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,oCAA4B,CAAC;IAC9C,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC;AASU,QAAA,6BAA6B,GAAG,OAAC,CAAC,IAAI,CAAC;IAClD,WAAW;IACX,gBAAgB;IAChB,yBAAyB;CAC1B,CAAC,CAAC;AAGU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,IAAI,EAAE,qCAA6B;IACnC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,oCAA4B,CAAC;IAC/C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC;AAGU,QAAA,+BAA+B,GAAG,OAAC,CAAC,KAAK,CAAC,sCAA8B,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare enum WorkflowStageCategory {
2
+ Lifecycle = "lifecycle",
3
+ Delivery = "delivery"
4
+ }
5
+ export interface WorkflowStage {
6
+ readonly stageKey: string;
7
+ readonly category: WorkflowStageCategory;
8
+ }
9
+ export type WorkflowStageSequence = readonly WorkflowStage[];
10
+ export declare function nextStageInSequence(sequence: WorkflowStageSequence, currentStageKey: string, deliveryScope?: readonly string[]): string | undefined;
11
+ //# sourceMappingURL=workflow-stage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-stage.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/workflow-stage.ts"],"names":[],"mappings":"AA4BA,oBAAY,qBAAqB;IAC/B,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAOD,MAAM,WAAW,aAAa;IAE5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;CAC1C;AAOD,MAAM,MAAM,qBAAqB,GAAG,SAAS,aAAa,EAAE,CAAC;AAa7D,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,qBAAqB,EAC/B,eAAe,EAAE,MAAM,EACvB,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,GAChC,MAAM,GAAG,SAAS,CAqBpB"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowStageCategory = void 0;
4
+ exports.nextStageInSequence = nextStageInSequence;
5
+ var WorkflowStageCategory;
6
+ (function (WorkflowStageCategory) {
7
+ WorkflowStageCategory["Lifecycle"] = "lifecycle";
8
+ WorkflowStageCategory["Delivery"] = "delivery";
9
+ })(WorkflowStageCategory || (exports.WorkflowStageCategory = WorkflowStageCategory = {}));
10
+ function nextStageInSequence(sequence, currentStageKey, deliveryScope) {
11
+ const currentIdx = sequence.findIndex((s) => s.stageKey === currentStageKey);
12
+ if (currentIdx < 0) {
13
+ throw new Error(`Stage "${currentStageKey}" is not present in the supplied workflow stage sequence`);
14
+ }
15
+ for (let i = currentIdx + 1; i < sequence.length; i++) {
16
+ const candidate = sequence[i];
17
+ if (candidate === undefined) {
18
+ continue;
19
+ }
20
+ if (!deliveryScope ||
21
+ candidate.category === WorkflowStageCategory.Lifecycle ||
22
+ deliveryScope.includes(candidate.stageKey)) {
23
+ return candidate.stageKey;
24
+ }
25
+ }
26
+ return undefined;
27
+ }
28
+ //# sourceMappingURL=workflow-stage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-stage.js","sourceRoot":"","sources":["../../../src/workflow/lib/workflow-stage.ts"],"names":[],"mappings":";;;AA+DA,kDAyBC;AA5DD,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;AACvB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAgCD,SAAgB,mBAAmB,CACjC,QAA+B,EAC/B,eAAuB,EACvB,aAAiC;IAEjC,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,eAAe,CAAC,CAAC;IAC7E,IAAI,UAAU,GAAG,CAAC,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CACb,UAAU,eAAe,0DAA0D,CACpF,CAAC;IACJ,CAAC;IACD,KAAK,IAAI,CAAC,GAAG,UAAU,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtD,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,SAAS;QACX,CAAC;QACD,IACE,CAAC,aAAa;YACd,SAAS,CAAC,QAAQ,KAAK,qBAAqB,CAAC,SAAS;YACtD,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,EAC1C,CAAC;YACD,OAAO,SAAS,CAAC,QAAQ,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,42 @@
1
+ export declare enum ToolsetKey {
2
+ READ = "read",
3
+ WRITE = "write",
4
+ EXEC = "exec",
5
+ WEB = "web",
6
+ MCP = "mcp",
7
+ DELEGATE = "delegate"
8
+ }
9
+ export declare const TOOLSET_KEYS: readonly ToolsetKey[];
10
+ export declare enum CredentialKind {
11
+ LLM_PROVIDER = "llm-provider",
12
+ SCM_TOKEN = "scm-token",
13
+ OAUTH_BEARER = "oauth-bearer",
14
+ MCP_AUTH = "mcp-auth",
15
+ WALLET_ENTRY = "wallet-entry",
16
+ GENERIC_SECRET = "generic-secret"
17
+ }
18
+ export declare const CREDENTIAL_KINDS: readonly CredentialKind[];
19
+ export declare enum OutputSurfaceKind {
20
+ NONE = "none",
21
+ WEB = "web",
22
+ STATIC = "static",
23
+ APP = "app",
24
+ TUNNEL = "tunnel"
25
+ }
26
+ export declare const OUTPUT_SURFACE_KINDS: readonly OutputSurfaceKind[];
27
+ export declare enum ManifestSurface {
28
+ WORKFLOW = "workflow",
29
+ AGENT_SESSION = "agent-session"
30
+ }
31
+ export declare const MANIFEST_SURFACES: readonly ManifestSurface[];
32
+ export declare enum ManifestGitPushBranchSuffix {
33
+ SESSION_ID = "sessionId",
34
+ PROJECT_ID = "projectId"
35
+ }
36
+ export declare const MANIFEST_GIT_PUSH_BRANCH_SUFFIXES: readonly ManifestGitPushBranchSuffix[];
37
+ export declare enum ManifestGitPushConcurrencyMode {
38
+ FORCE = "force",
39
+ LEASE = "lease"
40
+ }
41
+ export declare const MANIFEST_GIT_PUSH_CONCURRENCY_MODES: readonly ManifestGitPushConcurrencyMode[];
42
+ //# sourceMappingURL=workspace-manifest-enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-manifest-enums.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/workspace-manifest-enums.ts"],"names":[],"mappings":"AAqBA,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAOpC,CAAC;AAcX,oBAAY,cAAc;IACxB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;CAClC;AAED,eAAO,MAAM,gBAAgB,EAAE,SAAS,cAAc,EAO5C,CAAC;AAYX,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,oBAAoB,EAAE,SAAS,iBAAiB,EAMnD,CAAC;AAQX,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;CAChC;AAED,eAAO,MAAM,iBAAiB,EAAE,SAAS,eAAe,EAG9C,CAAC;AAUX,oBAAY,2BAA2B;IACrC,UAAU,cAAc;IACxB,UAAU,cAAc;CACzB;AAED,eAAO,MAAM,iCAAiC,EAAE,SAAS,2BAA2B,EAG1E,CAAC;AAMX,oBAAY,8BAA8B;IACxC,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,mCAAmC,EAAE,SAAS,8BAA8B,EAG/E,CAAC"}