@principles/core 1.73.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 (1633) hide show
  1. package/dist/adapters/code-review/code-review-pain-adapter.d.ts +13 -0
  2. package/dist/adapters/code-review/code-review-pain-adapter.d.ts.map +1 -0
  3. package/dist/adapters/code-review/code-review-pain-adapter.js +139 -0
  4. package/dist/adapters/code-review/code-review-pain-adapter.js.map +1 -0
  5. package/dist/adapters/code-review/index.d.ts +6 -0
  6. package/dist/adapters/code-review/index.d.ts.map +1 -0
  7. package/dist/adapters/code-review/index.js +2 -0
  8. package/dist/adapters/code-review/index.js.map +1 -0
  9. package/dist/adapters/code-review/review-event-types.d.ts +54 -0
  10. package/dist/adapters/code-review/review-event-types.d.ts.map +1 -0
  11. package/dist/adapters/code-review/review-event-types.js +8 -0
  12. package/dist/adapters/code-review/review-event-types.js.map +1 -0
  13. package/dist/adapters/coding/index.d.ts +6 -0
  14. package/dist/adapters/coding/index.d.ts.map +1 -0
  15. package/dist/adapters/coding/index.js +5 -0
  16. package/dist/adapters/coding/index.js.map +1 -0
  17. package/dist/adapters/coding/openclaw-event-types.d.ts +26 -0
  18. package/dist/adapters/coding/openclaw-event-types.d.ts.map +1 -0
  19. package/dist/adapters/coding/openclaw-event-types.js +9 -0
  20. package/dist/adapters/coding/openclaw-event-types.js.map +1 -0
  21. package/dist/adapters/coding/openclaw-pain-adapter.d.ts +27 -0
  22. package/dist/adapters/coding/openclaw-pain-adapter.d.ts.map +1 -0
  23. package/dist/adapters/coding/openclaw-pain-adapter.js +102 -0
  24. package/dist/adapters/coding/openclaw-pain-adapter.js.map +1 -0
  25. package/dist/adapters/writing/index.d.ts +6 -0
  26. package/dist/adapters/writing/index.d.ts.map +1 -0
  27. package/dist/adapters/writing/index.js +5 -0
  28. package/dist/adapters/writing/index.js.map +1 -0
  29. package/dist/adapters/writing/writing-pain-adapter.d.ts +22 -0
  30. package/dist/adapters/writing/writing-pain-adapter.d.ts.map +1 -0
  31. package/dist/adapters/writing/writing-pain-adapter.js +62 -0
  32. package/dist/adapters/writing/writing-pain-adapter.js.map +1 -0
  33. package/dist/adapters/writing/writing-types.d.ts +34 -0
  34. package/dist/adapters/writing/writing-types.d.ts.map +1 -0
  35. package/dist/adapters/writing/writing-types.js +9 -0
  36. package/dist/adapters/writing/writing-types.js.map +1 -0
  37. package/dist/evolution-hook.d.ts +70 -0
  38. package/dist/evolution-hook.d.ts.map +1 -0
  39. package/dist/evolution-hook.js +10 -0
  40. package/dist/evolution-hook.js.map +1 -0
  41. package/dist/evolution-store.d.ts +56 -0
  42. package/dist/evolution-store.d.ts.map +1 -0
  43. package/dist/evolution-store.js +150 -0
  44. package/dist/evolution-store.js.map +1 -0
  45. package/dist/index.d.ts +62 -0
  46. package/dist/index.d.ts.map +1 -0
  47. package/dist/index.js +64 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/io.d.ts +36 -0
  50. package/dist/io.d.ts.map +1 -0
  51. package/dist/io.js +99 -0
  52. package/dist/io.js.map +1 -0
  53. package/dist/pain-flag-resolver.d.ts +18 -0
  54. package/dist/pain-flag-resolver.d.ts.map +1 -0
  55. package/dist/pain-flag-resolver.js +21 -0
  56. package/dist/pain-flag-resolver.js.map +1 -0
  57. package/dist/pain-recorder.d.ts +38 -0
  58. package/dist/pain-recorder.d.ts.map +1 -0
  59. package/dist/pain-recorder.js +62 -0
  60. package/dist/pain-recorder.js.map +1 -0
  61. package/dist/pain-signal-adapter.d.ts +37 -0
  62. package/dist/pain-signal-adapter.d.ts.map +1 -0
  63. package/dist/pain-signal-adapter.js +2 -0
  64. package/dist/pain-signal-adapter.js.map +1 -0
  65. package/dist/pain-signal.d.ts +76 -0
  66. package/dist/pain-signal.d.ts.map +1 -0
  67. package/dist/pain-signal.js +125 -0
  68. package/dist/pain-signal.js.map +1 -0
  69. package/dist/principle-injector.d.ts +67 -0
  70. package/dist/principle-injector.d.ts.map +1 -0
  71. package/dist/principle-injector.js +89 -0
  72. package/dist/principle-injector.js.map +1 -0
  73. package/dist/principle-tree-ledger.d.ts +106 -0
  74. package/dist/principle-tree-ledger.d.ts.map +1 -0
  75. package/dist/principle-tree-ledger.js +254 -0
  76. package/dist/principle-tree-ledger.js.map +1 -0
  77. package/dist/prompt-builder/__tests__/empathy-keyword-matching.test.d.ts +2 -0
  78. package/dist/prompt-builder/__tests__/empathy-keyword-matching.test.d.ts.map +1 -0
  79. package/dist/prompt-builder/__tests__/empathy-keyword-matching.test.js +380 -0
  80. package/dist/prompt-builder/__tests__/empathy-keyword-matching.test.js.map +1 -0
  81. package/dist/prompt-builder/__tests__/focus-compression.test.d.ts +2 -0
  82. package/dist/prompt-builder/__tests__/focus-compression.test.d.ts.map +1 -0
  83. package/dist/prompt-builder/__tests__/focus-compression.test.js +265 -0
  84. package/dist/prompt-builder/__tests__/focus-compression.test.js.map +1 -0
  85. package/dist/prompt-builder/__tests__/principle-selection.test.d.ts +7 -0
  86. package/dist/prompt-builder/__tests__/principle-selection.test.d.ts.map +1 -0
  87. package/dist/prompt-builder/__tests__/principle-selection.test.js +214 -0
  88. package/dist/prompt-builder/__tests__/principle-selection.test.js.map +1 -0
  89. package/dist/prompt-builder/__tests__/prompt-builder-core.test.d.ts +7 -0
  90. package/dist/prompt-builder/__tests__/prompt-builder-core.test.d.ts.map +1 -0
  91. package/dist/prompt-builder/__tests__/prompt-builder-core.test.js +283 -0
  92. package/dist/prompt-builder/__tests__/prompt-builder-core.test.js.map +1 -0
  93. package/dist/prompt-builder/__tests__/routing-guidance.test.d.ts +11 -0
  94. package/dist/prompt-builder/__tests__/routing-guidance.test.d.ts.map +1 -0
  95. package/dist/prompt-builder/__tests__/routing-guidance.test.js +305 -0
  96. package/dist/prompt-builder/__tests__/routing-guidance.test.js.map +1 -0
  97. package/dist/prompt-builder/attitude-directive.d.ts +7 -0
  98. package/dist/prompt-builder/attitude-directive.d.ts.map +1 -0
  99. package/dist/prompt-builder/attitude-directive.js +39 -0
  100. package/dist/prompt-builder/attitude-directive.js.map +1 -0
  101. package/dist/prompt-builder/correction-cue.d.ts +15 -0
  102. package/dist/prompt-builder/correction-cue.d.ts.map +1 -0
  103. package/dist/prompt-builder/correction-cue.js +39 -0
  104. package/dist/prompt-builder/correction-cue.js.map +1 -0
  105. package/dist/prompt-builder/empathy-keyword-matching.d.ts +30 -0
  106. package/dist/prompt-builder/empathy-keyword-matching.d.ts.map +1 -0
  107. package/dist/prompt-builder/empathy-keyword-matching.js +142 -0
  108. package/dist/prompt-builder/empathy-keyword-matching.js.map +1 -0
  109. package/dist/prompt-builder/empathy-types.d.ts +62 -0
  110. package/dist/prompt-builder/empathy-types.d.ts.map +1 -0
  111. package/dist/prompt-builder/empathy-types.js +88 -0
  112. package/dist/prompt-builder/empathy-types.js.map +1 -0
  113. package/dist/prompt-builder/focus-compression.d.ts +63 -0
  114. package/dist/prompt-builder/focus-compression.d.ts.map +1 -0
  115. package/dist/prompt-builder/focus-compression.js +448 -0
  116. package/dist/prompt-builder/focus-compression.js.map +1 -0
  117. package/dist/prompt-builder/index.d.ts +29 -0
  118. package/dist/prompt-builder/index.d.ts.map +1 -0
  119. package/dist/prompt-builder/index.js +27 -0
  120. package/dist/prompt-builder/index.js.map +1 -0
  121. package/dist/prompt-builder/message-extraction.d.ts +7 -0
  122. package/dist/prompt-builder/message-extraction.d.ts.map +1 -0
  123. package/dist/prompt-builder/message-extraction.js +23 -0
  124. package/dist/prompt-builder/message-extraction.js.map +1 -0
  125. package/dist/prompt-builder/minimal-trigger.d.ts +7 -0
  126. package/dist/prompt-builder/minimal-trigger.d.ts.map +1 -0
  127. package/dist/prompt-builder/minimal-trigger.js +11 -0
  128. package/dist/prompt-builder/minimal-trigger.js.map +1 -0
  129. package/dist/prompt-builder/principle-selection.d.ts +68 -0
  130. package/dist/prompt-builder/principle-selection.d.ts.map +1 -0
  131. package/dist/prompt-builder/principle-selection.js +140 -0
  132. package/dist/prompt-builder/principle-selection.js.map +1 -0
  133. package/dist/prompt-builder/routing-guidance.d.ts +64 -0
  134. package/dist/prompt-builder/routing-guidance.d.ts.map +1 -0
  135. package/dist/prompt-builder/routing-guidance.js +227 -0
  136. package/dist/prompt-builder/routing-guidance.js.map +1 -0
  137. package/dist/prompt-builder/size-guard.d.ts +35 -0
  138. package/dist/prompt-builder/size-guard.d.ts.map +1 -0
  139. package/dist/prompt-builder/size-guard.js +144 -0
  140. package/dist/prompt-builder/size-guard.js.map +1 -0
  141. package/dist/prompt-builder/types.d.ts +28 -0
  142. package/dist/prompt-builder/types.d.ts.map +1 -0
  143. package/dist/prompt-builder/types.js +7 -0
  144. package/dist/prompt-builder/types.js.map +1 -0
  145. package/dist/runtime-v2/__tests__/admission-gate.test.d.ts +2 -0
  146. package/dist/runtime-v2/__tests__/admission-gate.test.d.ts.map +1 -0
  147. package/dist/runtime-v2/__tests__/admission-gate.test.js +126 -0
  148. package/dist/runtime-v2/__tests__/admission-gate.test.js.map +1 -0
  149. package/dist/runtime-v2/__tests__/architecture-regression.test.d.ts +2 -0
  150. package/dist/runtime-v2/__tests__/architecture-regression.test.d.ts.map +1 -0
  151. package/dist/runtime-v2/__tests__/architecture-regression.test.js +2990 -0
  152. package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -0
  153. package/dist/runtime-v2/__tests__/artificer-runner-vslice.test.d.ts +2 -0
  154. package/dist/runtime-v2/__tests__/artificer-runner-vslice.test.d.ts.map +1 -0
  155. package/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js +608 -0
  156. package/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js.map +1 -0
  157. package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.d.ts +20 -0
  158. package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.d.ts.map +1 -0
  159. package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js +473 -0
  160. package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js.map +1 -0
  161. package/dist/runtime-v2/__tests__/candidate-audit.test.d.ts +2 -0
  162. package/dist/runtime-v2/__tests__/candidate-audit.test.d.ts.map +1 -0
  163. package/dist/runtime-v2/__tests__/candidate-audit.test.js +100 -0
  164. package/dist/runtime-v2/__tests__/candidate-audit.test.js.map +1 -0
  165. package/dist/runtime-v2/__tests__/chain-integrity-attack.test.d.ts +2 -0
  166. package/dist/runtime-v2/__tests__/chain-integrity-attack.test.d.ts.map +1 -0
  167. package/dist/runtime-v2/__tests__/chain-integrity-attack.test.js +276 -0
  168. package/dist/runtime-v2/__tests__/chain-integrity-attack.test.js.map +1 -0
  169. package/dist/runtime-v2/__tests__/chain-integrity-real-path.test.d.ts +2 -0
  170. package/dist/runtime-v2/__tests__/chain-integrity-real-path.test.d.ts.map +1 -0
  171. package/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js +561 -0
  172. package/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js.map +1 -0
  173. package/dist/runtime-v2/__tests__/control-plane-triage.test.d.ts +2 -0
  174. package/dist/runtime-v2/__tests__/control-plane-triage.test.d.ts.map +1 -0
  175. package/dist/runtime-v2/__tests__/control-plane-triage.test.js +107 -0
  176. package/dist/runtime-v2/__tests__/control-plane-triage.test.js.map +1 -0
  177. package/dist/runtime-v2/__tests__/correction-proposal.test.d.ts +2 -0
  178. package/dist/runtime-v2/__tests__/correction-proposal.test.d.ts.map +1 -0
  179. package/dist/runtime-v2/__tests__/correction-proposal.test.js +486 -0
  180. package/dist/runtime-v2/__tests__/correction-proposal.test.js.map +1 -0
  181. package/dist/runtime-v2/__tests__/dreamer-output-validator.test.d.ts +2 -0
  182. package/dist/runtime-v2/__tests__/dreamer-output-validator.test.d.ts.map +1 -0
  183. package/dist/runtime-v2/__tests__/dreamer-output-validator.test.js +171 -0
  184. package/dist/runtime-v2/__tests__/dreamer-output-validator.test.js.map +1 -0
  185. package/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.d.ts +2 -0
  186. package/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.d.ts.map +1 -0
  187. package/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.js +155 -0
  188. package/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.js.map +1 -0
  189. package/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.d.ts +2 -0
  190. package/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.d.ts.map +1 -0
  191. package/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js +515 -0
  192. package/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js.map +1 -0
  193. package/dist/runtime-v2/__tests__/dreamer-runner.test.d.ts +2 -0
  194. package/dist/runtime-v2/__tests__/dreamer-runner.test.d.ts.map +1 -0
  195. package/dist/runtime-v2/__tests__/dreamer-runner.test.js +348 -0
  196. package/dist/runtime-v2/__tests__/dreamer-runner.test.js.map +1 -0
  197. package/dist/runtime-v2/__tests__/error-categories.test.d.ts +2 -0
  198. package/dist/runtime-v2/__tests__/error-categories.test.d.ts.map +1 -0
  199. package/dist/runtime-v2/__tests__/error-categories.test.js +149 -0
  200. package/dist/runtime-v2/__tests__/error-categories.test.js.map +1 -0
  201. package/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.d.ts +2 -0
  202. package/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.d.ts.map +1 -0
  203. package/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js +1047 -0
  204. package/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js.map +1 -0
  205. package/dist/runtime-v2/__tests__/fixtures/index.d.ts +4 -0
  206. package/dist/runtime-v2/__tests__/fixtures/index.d.ts.map +1 -0
  207. package/dist/runtime-v2/__tests__/fixtures/index.js +3 -0
  208. package/dist/runtime-v2/__tests__/fixtures/index.js.map +1 -0
  209. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.d.ts +20 -0
  210. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.d.ts.map +1 -0
  211. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js +39 -0
  212. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js.map +1 -0
  213. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.d.ts +2 -0
  214. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.d.ts.map +1 -0
  215. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js +111 -0
  216. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js.map +1 -0
  217. package/dist/runtime-v2/__tests__/fixtures/test-helpers.d.ts +20 -0
  218. package/dist/runtime-v2/__tests__/fixtures/test-helpers.d.ts.map +1 -0
  219. package/dist/runtime-v2/__tests__/fixtures/test-helpers.js +37 -0
  220. package/dist/runtime-v2/__tests__/fixtures/test-helpers.js.map +1 -0
  221. package/dist/runtime-v2/__tests__/full-chain-real-llm.test.d.ts +2 -0
  222. package/dist/runtime-v2/__tests__/full-chain-real-llm.test.d.ts.map +1 -0
  223. package/dist/runtime-v2/__tests__/full-chain-real-llm.test.js +152 -0
  224. package/dist/runtime-v2/__tests__/full-chain-real-llm.test.js.map +1 -0
  225. package/dist/runtime-v2/__tests__/full-trace-contract.test.d.ts +2 -0
  226. package/dist/runtime-v2/__tests__/full-trace-contract.test.d.ts.map +1 -0
  227. package/dist/runtime-v2/__tests__/full-trace-contract.test.js +552 -0
  228. package/dist/runtime-v2/__tests__/full-trace-contract.test.js.map +1 -0
  229. package/dist/runtime-v2/__tests__/gfi-workspace-health.test.d.ts +2 -0
  230. package/dist/runtime-v2/__tests__/gfi-workspace-health.test.d.ts.map +1 -0
  231. package/dist/runtime-v2/__tests__/gfi-workspace-health.test.js +128 -0
  232. package/dist/runtime-v2/__tests__/gfi-workspace-health.test.js.map +1 -0
  233. package/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.d.ts +2 -0
  234. package/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.d.ts.map +1 -0
  235. package/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.js +759 -0
  236. package/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.js.map +1 -0
  237. package/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.d.ts +2 -0
  238. package/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.d.ts.map +1 -0
  239. package/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.js +231 -0
  240. package/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.js.map +1 -0
  241. package/dist/runtime-v2/__tests__/golden-trace.test.d.ts +2 -0
  242. package/dist/runtime-v2/__tests__/golden-trace.test.d.ts.map +1 -0
  243. package/dist/runtime-v2/__tests__/golden-trace.test.js +335 -0
  244. package/dist/runtime-v2/__tests__/golden-trace.test.js.map +1 -0
  245. package/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.d.ts +2 -0
  246. package/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.d.ts.map +1 -0
  247. package/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js +307 -0
  248. package/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js.map +1 -0
  249. package/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.d.ts +2 -0
  250. package/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.d.ts.map +1 -0
  251. package/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js +268 -0
  252. package/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js.map +1 -0
  253. package/dist/runtime-v2/__tests__/internalization-contracts.test.d.ts +2 -0
  254. package/dist/runtime-v2/__tests__/internalization-contracts.test.d.ts.map +1 -0
  255. package/dist/runtime-v2/__tests__/internalization-contracts.test.js +78 -0
  256. package/dist/runtime-v2/__tests__/internalization-contracts.test.js.map +1 -0
  257. package/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.d.ts +2 -0
  258. package/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.d.ts.map +1 -0
  259. package/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js +218 -0
  260. package/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js.map +1 -0
  261. package/dist/runtime-v2/__tests__/internalization-orchestrator.test.d.ts +2 -0
  262. package/dist/runtime-v2/__tests__/internalization-orchestrator.test.d.ts.map +1 -0
  263. package/dist/runtime-v2/__tests__/internalization-orchestrator.test.js +569 -0
  264. package/dist/runtime-v2/__tests__/internalization-orchestrator.test.js.map +1 -0
  265. package/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.d.ts +2 -0
  266. package/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.d.ts.map +1 -0
  267. package/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js +448 -0
  268. package/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js.map +1 -0
  269. package/dist/runtime-v2/__tests__/internalization-queue-read-model.test.d.ts +2 -0
  270. package/dist/runtime-v2/__tests__/internalization-queue-read-model.test.d.ts.map +1 -0
  271. package/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js +415 -0
  272. package/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js.map +1 -0
  273. package/dist/runtime-v2/__tests__/internalization-route.test.d.ts +2 -0
  274. package/dist/runtime-v2/__tests__/internalization-route.test.d.ts.map +1 -0
  275. package/dist/runtime-v2/__tests__/internalization-route.test.js +136 -0
  276. package/dist/runtime-v2/__tests__/internalization-route.test.js.map +1 -0
  277. package/dist/runtime-v2/__tests__/internalization-state-machine.test.d.ts +2 -0
  278. package/dist/runtime-v2/__tests__/internalization-state-machine.test.d.ts.map +1 -0
  279. package/dist/runtime-v2/__tests__/internalization-state-machine.test.js +679 -0
  280. package/dist/runtime-v2/__tests__/internalization-state-machine.test.js.map +1 -0
  281. package/dist/runtime-v2/__tests__/l1-hard-cap.test.d.ts +2 -0
  282. package/dist/runtime-v2/__tests__/l1-hard-cap.test.d.ts.map +1 -0
  283. package/dist/runtime-v2/__tests__/l1-hard-cap.test.js +157 -0
  284. package/dist/runtime-v2/__tests__/l1-hard-cap.test.js.map +1 -0
  285. package/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts +2 -0
  286. package/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts.map +1 -0
  287. package/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js +215 -0
  288. package/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js.map +1 -0
  289. package/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.d.ts +2 -0
  290. package/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.d.ts.map +1 -0
  291. package/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.js +102 -0
  292. package/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.js.map +1 -0
  293. package/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.d.ts +2 -0
  294. package/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.d.ts.map +1 -0
  295. package/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.js +148 -0
  296. package/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.js.map +1 -0
  297. package/dist/runtime-v2/__tests__/operator-health-gfi.test.d.ts +2 -0
  298. package/dist/runtime-v2/__tests__/operator-health-gfi.test.d.ts.map +1 -0
  299. package/dist/runtime-v2/__tests__/operator-health-gfi.test.js +113 -0
  300. package/dist/runtime-v2/__tests__/operator-health-gfi.test.js.map +1 -0
  301. package/dist/runtime-v2/__tests__/operator-health-read-model.test.d.ts +2 -0
  302. package/dist/runtime-v2/__tests__/operator-health-read-model.test.d.ts.map +1 -0
  303. package/dist/runtime-v2/__tests__/operator-health-read-model.test.js +136 -0
  304. package/dist/runtime-v2/__tests__/operator-health-read-model.test.js.map +1 -0
  305. package/dist/runtime-v2/__tests__/pain-chain-read-model.test.d.ts +2 -0
  306. package/dist/runtime-v2/__tests__/pain-chain-read-model.test.d.ts.map +1 -0
  307. package/dist/runtime-v2/__tests__/pain-chain-read-model.test.js +248 -0
  308. package/dist/runtime-v2/__tests__/pain-chain-read-model.test.js.map +1 -0
  309. package/dist/runtime-v2/__tests__/pain-evidence-contract.test.d.ts +2 -0
  310. package/dist/runtime-v2/__tests__/pain-evidence-contract.test.d.ts.map +1 -0
  311. package/dist/runtime-v2/__tests__/pain-evidence-contract.test.js +328 -0
  312. package/dist/runtime-v2/__tests__/pain-evidence-contract.test.js.map +1 -0
  313. package/dist/runtime-v2/__tests__/pain-flood-simulation.test.d.ts +2 -0
  314. package/dist/runtime-v2/__tests__/pain-flood-simulation.test.d.ts.map +1 -0
  315. package/dist/runtime-v2/__tests__/pain-flood-simulation.test.js +267 -0
  316. package/dist/runtime-v2/__tests__/pain-flood-simulation.test.js.map +1 -0
  317. package/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.d.ts +2 -0
  318. package/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.d.ts.map +1 -0
  319. package/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js +147 -0
  320. package/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js.map +1 -0
  321. package/dist/runtime-v2/__tests__/pain-signal-observability.test.d.ts +2 -0
  322. package/dist/runtime-v2/__tests__/pain-signal-observability.test.d.ts.map +1 -0
  323. package/dist/runtime-v2/__tests__/pain-signal-observability.test.js +151 -0
  324. package/dist/runtime-v2/__tests__/pain-signal-observability.test.js.map +1 -0
  325. package/dist/runtime-v2/__tests__/pain-to-principle-service.test.d.ts +2 -0
  326. package/dist/runtime-v2/__tests__/pain-to-principle-service.test.d.ts.map +1 -0
  327. package/dist/runtime-v2/__tests__/pain-to-principle-service.test.js +209 -0
  328. package/dist/runtime-v2/__tests__/pain-to-principle-service.test.js.map +1 -0
  329. package/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.d.ts +2 -0
  330. package/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.d.ts.map +1 -0
  331. package/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.js +167 -0
  332. package/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.js.map +1 -0
  333. package/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.d.ts +2 -0
  334. package/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.d.ts.map +1 -0
  335. package/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js +338 -0
  336. package/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js.map +1 -0
  337. package/dist/runtime-v2/__tests__/pi-artifact-store.test.d.ts +2 -0
  338. package/dist/runtime-v2/__tests__/pi-artifact-store.test.d.ts.map +1 -0
  339. package/dist/runtime-v2/__tests__/pi-artifact-store.test.js +247 -0
  340. package/dist/runtime-v2/__tests__/pi-artifact-store.test.js.map +1 -0
  341. package/dist/runtime-v2/__tests__/pitask-metadata.test.d.ts +8 -0
  342. package/dist/runtime-v2/__tests__/pitask-metadata.test.d.ts.map +1 -0
  343. package/dist/runtime-v2/__tests__/pitask-metadata.test.js +333 -0
  344. package/dist/runtime-v2/__tests__/pitask-metadata.test.js.map +1 -0
  345. package/dist/runtime-v2/__tests__/principle-compiler-core.test.d.ts +2 -0
  346. package/dist/runtime-v2/__tests__/principle-compiler-core.test.d.ts.map +1 -0
  347. package/dist/runtime-v2/__tests__/principle-compiler-core.test.js +141 -0
  348. package/dist/runtime-v2/__tests__/principle-compiler-core.test.js.map +1 -0
  349. package/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.d.ts +2 -0
  350. package/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.d.ts.map +1 -0
  351. package/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.js +524 -0
  352. package/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.js.map +1 -0
  353. package/dist/runtime-v2/__tests__/proven-channel-baseline.test.d.ts +2 -0
  354. package/dist/runtime-v2/__tests__/proven-channel-baseline.test.d.ts.map +1 -0
  355. package/dist/runtime-v2/__tests__/proven-channel-baseline.test.js +428 -0
  356. package/dist/runtime-v2/__tests__/proven-channel-baseline.test.js.map +1 -0
  357. package/dist/runtime-v2/__tests__/pruning-read-model.test.d.ts +2 -0
  358. package/dist/runtime-v2/__tests__/pruning-read-model.test.d.ts.map +1 -0
  359. package/dist/runtime-v2/__tests__/pruning-read-model.test.js +783 -0
  360. package/dist/runtime-v2/__tests__/pruning-read-model.test.js.map +1 -0
  361. package/dist/runtime-v2/__tests__/pruning-review-log.test.d.ts +2 -0
  362. package/dist/runtime-v2/__tests__/pruning-review-log.test.d.ts.map +1 -0
  363. package/dist/runtime-v2/__tests__/pruning-review-log.test.js +159 -0
  364. package/dist/runtime-v2/__tests__/pruning-review-log.test.js.map +1 -0
  365. package/dist/runtime-v2/__tests__/recovery-sweep-service.test.d.ts +2 -0
  366. package/dist/runtime-v2/__tests__/recovery-sweep-service.test.d.ts.map +1 -0
  367. package/dist/runtime-v2/__tests__/recovery-sweep-service.test.js +83 -0
  368. package/dist/runtime-v2/__tests__/recovery-sweep-service.test.js.map +1 -0
  369. package/dist/runtime-v2/__tests__/remediation-contract.test.d.ts +2 -0
  370. package/dist/runtime-v2/__tests__/remediation-contract.test.d.ts.map +1 -0
  371. package/dist/runtime-v2/__tests__/remediation-contract.test.js +39 -0
  372. package/dist/runtime-v2/__tests__/remediation-contract.test.js.map +1 -0
  373. package/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.d.ts +2 -0
  374. package/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.d.ts.map +1 -0
  375. package/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js +658 -0
  376. package/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js.map +1 -0
  377. package/dist/runtime-v2/__tests__/rule-host-evaluator.test.d.ts +2 -0
  378. package/dist/runtime-v2/__tests__/rule-host-evaluator.test.d.ts.map +1 -0
  379. package/dist/runtime-v2/__tests__/rule-host-evaluator.test.js +509 -0
  380. package/dist/runtime-v2/__tests__/rule-host-evaluator.test.js.map +1 -0
  381. package/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.d.ts +2 -0
  382. package/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.d.ts.map +1 -0
  383. package/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.js +535 -0
  384. package/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.js.map +1 -0
  385. package/dist/runtime-v2/__tests__/runtime-config-boundary.test.d.ts +2 -0
  386. package/dist/runtime-v2/__tests__/runtime-config-boundary.test.d.ts.map +1 -0
  387. package/dist/runtime-v2/__tests__/runtime-config-boundary.test.js +256 -0
  388. package/dist/runtime-v2/__tests__/runtime-config-boundary.test.js.map +1 -0
  389. package/dist/runtime-v2/__tests__/runtime-state-handle.test.d.ts +2 -0
  390. package/dist/runtime-v2/__tests__/runtime-state-handle.test.d.ts.map +1 -0
  391. package/dist/runtime-v2/__tests__/runtime-state-handle.test.js +76 -0
  392. package/dist/runtime-v2/__tests__/runtime-state-handle.test.js.map +1 -0
  393. package/dist/runtime-v2/__tests__/schema-conformance-read-model.test.d.ts +2 -0
  394. package/dist/runtime-v2/__tests__/schema-conformance-read-model.test.d.ts.map +1 -0
  395. package/dist/runtime-v2/__tests__/schema-conformance-read-model.test.js +208 -0
  396. package/dist/runtime-v2/__tests__/schema-conformance-read-model.test.js.map +1 -0
  397. package/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.d.ts +2 -0
  398. package/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.d.ts.map +1 -0
  399. package/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.js +156 -0
  400. package/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.js.map +1 -0
  401. package/dist/runtime-v2/__tests__/scribe-runner-vslice.test.d.ts +2 -0
  402. package/dist/runtime-v2/__tests__/scribe-runner-vslice.test.d.ts.map +1 -0
  403. package/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js +430 -0
  404. package/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js.map +1 -0
  405. package/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.d.ts +2 -0
  406. package/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.d.ts.map +1 -0
  407. package/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.js +148 -0
  408. package/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.js.map +1 -0
  409. package/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.d.ts +2 -0
  410. package/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.d.ts.map +1 -0
  411. package/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.js +95 -0
  412. package/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.js.map +1 -0
  413. package/dist/runtime-v2/__tests__/story-a-demo.test.d.ts +2 -0
  414. package/dist/runtime-v2/__tests__/story-a-demo.test.d.ts.map +1 -0
  415. package/dist/runtime-v2/__tests__/story-a-demo.test.js +257 -0
  416. package/dist/runtime-v2/__tests__/story-a-demo.test.js.map +1 -0
  417. package/dist/runtime-v2/__tests__/synthetic-baseline.test.d.ts +2 -0
  418. package/dist/runtime-v2/__tests__/synthetic-baseline.test.d.ts.map +1 -0
  419. package/dist/runtime-v2/__tests__/synthetic-baseline.test.js +155 -0
  420. package/dist/runtime-v2/__tests__/synthetic-baseline.test.js.map +1 -0
  421. package/dist/runtime-v2/__tests__/task-state-semantics.test.d.ts +2 -0
  422. package/dist/runtime-v2/__tests__/task-state-semantics.test.d.ts.map +1 -0
  423. package/dist/runtime-v2/__tests__/task-state-semantics.test.js +145 -0
  424. package/dist/runtime-v2/__tests__/task-state-semantics.test.js.map +1 -0
  425. package/dist/runtime-v2/__tests__/task-three-strikes.test.d.ts +2 -0
  426. package/dist/runtime-v2/__tests__/task-three-strikes.test.d.ts.map +1 -0
  427. package/dist/runtime-v2/__tests__/task-three-strikes.test.js +268 -0
  428. package/dist/runtime-v2/__tests__/task-three-strikes.test.js.map +1 -0
  429. package/dist/runtime-v2/__tests__/trace-refiner-agent.test.d.ts +2 -0
  430. package/dist/runtime-v2/__tests__/trace-refiner-agent.test.d.ts.map +1 -0
  431. package/dist/runtime-v2/__tests__/trace-refiner-agent.test.js +726 -0
  432. package/dist/runtime-v2/__tests__/trace-refiner-agent.test.js.map +1 -0
  433. package/dist/runtime-v2/__tests__/trace-refiner.test.d.ts +2 -0
  434. package/dist/runtime-v2/__tests__/trace-refiner.test.d.ts.map +1 -0
  435. package/dist/runtime-v2/__tests__/trace-refiner.test.js +527 -0
  436. package/dist/runtime-v2/__tests__/trace-refiner.test.js.map +1 -0
  437. package/dist/runtime-v2/__tests__/trainer-output-validator.test.d.ts +2 -0
  438. package/dist/runtime-v2/__tests__/trainer-output-validator.test.d.ts.map +1 -0
  439. package/dist/runtime-v2/__tests__/trainer-output-validator.test.js +257 -0
  440. package/dist/runtime-v2/__tests__/trainer-output-validator.test.js.map +1 -0
  441. package/dist/runtime-v2/__tests__/trainer-runner-vslice.test.d.ts +2 -0
  442. package/dist/runtime-v2/__tests__/trainer-runner-vslice.test.d.ts.map +1 -0
  443. package/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js +506 -0
  444. package/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js.map +1 -0
  445. package/dist/runtime-v2/__tests__/trajectory-store.test.d.ts +2 -0
  446. package/dist/runtime-v2/__tests__/trajectory-store.test.d.ts.map +1 -0
  447. package/dist/runtime-v2/__tests__/trajectory-store.test.js +127 -0
  448. package/dist/runtime-v2/__tests__/trajectory-store.test.js.map +1 -0
  449. package/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.d.ts +2 -0
  450. package/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.d.ts.map +1 -0
  451. package/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js +510 -0
  452. package/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js.map +1 -0
  453. package/dist/runtime-v2/activation/__tests__/approval-context-types.test.d.ts +2 -0
  454. package/dist/runtime-v2/activation/__tests__/approval-context-types.test.d.ts.map +1 -0
  455. package/dist/runtime-v2/activation/__tests__/approval-context-types.test.js +117 -0
  456. package/dist/runtime-v2/activation/__tests__/approval-context-types.test.js.map +1 -0
  457. package/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts +2 -0
  458. package/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts.map +1 -0
  459. package/dist/runtime-v2/activation/__tests__/approval-queue.test.js +179 -0
  460. package/dist/runtime-v2/activation/__tests__/approval-queue.test.js.map +1 -0
  461. package/dist/runtime-v2/activation/__tests__/approval-store-extended.test.d.ts +2 -0
  462. package/dist/runtime-v2/activation/__tests__/approval-store-extended.test.d.ts.map +1 -0
  463. package/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js +174 -0
  464. package/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js.map +1 -0
  465. package/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.d.ts +2 -0
  466. package/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.d.ts.map +1 -0
  467. package/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.js +244 -0
  468. package/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.js.map +1 -0
  469. package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.d.ts +2 -0
  470. package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.d.ts.map +1 -0
  471. package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js +109 -0
  472. package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js.map +1 -0
  473. package/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.d.ts +2 -0
  474. package/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.d.ts.map +1 -0
  475. package/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js +124 -0
  476. package/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js.map +1 -0
  477. package/dist/runtime-v2/activation/activation-dispatcher.d.ts +18 -0
  478. package/dist/runtime-v2/activation/activation-dispatcher.d.ts.map +1 -0
  479. package/dist/runtime-v2/activation/activation-dispatcher.js +231 -0
  480. package/dist/runtime-v2/activation/activation-dispatcher.js.map +1 -0
  481. package/dist/runtime-v2/activation/activation-types.d.ts +195 -0
  482. package/dist/runtime-v2/activation/activation-types.d.ts.map +1 -0
  483. package/dist/runtime-v2/activation/activation-types.js +29 -0
  484. package/dist/runtime-v2/activation/activation-types.js.map +1 -0
  485. package/dist/runtime-v2/activation/approval-queue.d.ts +15 -0
  486. package/dist/runtime-v2/activation/approval-queue.d.ts.map +1 -0
  487. package/dist/runtime-v2/activation/approval-queue.js +50 -0
  488. package/dist/runtime-v2/activation/approval-queue.js.map +1 -0
  489. package/dist/runtime-v2/activation/index.d.ts +15 -0
  490. package/dist/runtime-v2/activation/index.d.ts.map +1 -0
  491. package/dist/runtime-v2/activation/index.js +11 -0
  492. package/dist/runtime-v2/activation/index.js.map +1 -0
  493. package/dist/runtime-v2/activation/low-risk-writers.d.ts +14 -0
  494. package/dist/runtime-v2/activation/low-risk-writers.d.ts.map +1 -0
  495. package/dist/runtime-v2/activation/low-risk-writers.js +83 -0
  496. package/dist/runtime-v2/activation/low-risk-writers.js.map +1 -0
  497. package/dist/runtime-v2/activation/memory-activation-state-store.d.ts +13 -0
  498. package/dist/runtime-v2/activation/memory-activation-state-store.d.ts.map +1 -0
  499. package/dist/runtime-v2/activation/memory-activation-state-store.js +28 -0
  500. package/dist/runtime-v2/activation/memory-activation-state-store.js.map +1 -0
  501. package/dist/runtime-v2/activation/memory-approval-store.d.ts +12 -0
  502. package/dist/runtime-v2/activation/memory-approval-store.d.ts.map +1 -0
  503. package/dist/runtime-v2/activation/memory-approval-store.js +102 -0
  504. package/dist/runtime-v2/activation/memory-approval-store.js.map +1 -0
  505. package/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts +10 -0
  506. package/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +1 -0
  507. package/dist/runtime-v2/activation/sqlite-activation-state-store.js +87 -0
  508. package/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +1 -0
  509. package/dist/runtime-v2/activation/sqlite-approval-store.d.ts +14 -0
  510. package/dist/runtime-v2/activation/sqlite-approval-store.d.ts.map +1 -0
  511. package/dist/runtime-v2/activation/sqlite-approval-store.js +138 -0
  512. package/dist/runtime-v2/activation/sqlite-approval-store.js.map +1 -0
  513. package/dist/runtime-v2/activation/sqlite-confirm-first-state-store.d.ts +22 -0
  514. package/dist/runtime-v2/activation/sqlite-confirm-first-state-store.d.ts.map +1 -0
  515. package/dist/runtime-v2/activation/sqlite-confirm-first-state-store.js +136 -0
  516. package/dist/runtime-v2/activation/sqlite-confirm-first-state-store.js.map +1 -0
  517. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.d.ts +2 -0
  518. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.d.ts.map +1 -0
  519. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +615 -0
  520. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -0
  521. package/dist/runtime-v2/activation/writers/index.d.ts +3 -0
  522. package/dist/runtime-v2/activation/writers/index.d.ts.map +1 -0
  523. package/dist/runtime-v2/activation/writers/index.js +2 -0
  524. package/dist/runtime-v2/activation/writers/index.js.map +1 -0
  525. package/dist/runtime-v2/activation/writers/rule-host-writer.d.ts +14 -0
  526. package/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +1 -0
  527. package/dist/runtime-v2/activation/writers/rule-host-writer.js +135 -0
  528. package/dist/runtime-v2/activation/writers/rule-host-writer.js.map +1 -0
  529. package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.d.ts +2 -0
  530. package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.d.ts.map +1 -0
  531. package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js +553 -0
  532. package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js.map +1 -0
  533. package/dist/runtime-v2/adapter/__tests__/json-extractor.test.d.ts +2 -0
  534. package/dist/runtime-v2/adapter/__tests__/json-extractor.test.d.ts.map +1 -0
  535. package/dist/runtime-v2/adapter/__tests__/json-extractor.test.js +148 -0
  536. package/dist/runtime-v2/adapter/__tests__/json-extractor.test.js.map +1 -0
  537. package/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.d.ts +2 -0
  538. package/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.d.ts.map +1 -0
  539. package/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.js +565 -0
  540. package/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.js.map +1 -0
  541. package/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.d.ts +2 -0
  542. package/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.d.ts.map +1 -0
  543. package/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.js +305 -0
  544. package/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.js.map +1 -0
  545. package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.d.ts +2 -0
  546. package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.d.ts.map +1 -0
  547. package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js +1362 -0
  548. package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js.map +1 -0
  549. package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.d.ts +2 -0
  550. package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.d.ts.map +1 -0
  551. package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js +245 -0
  552. package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js.map +1 -0
  553. package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.d.ts +2 -0
  554. package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.d.ts.map +1 -0
  555. package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js +494 -0
  556. package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js.map +1 -0
  557. package/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.d.ts +2 -0
  558. package/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.d.ts.map +1 -0
  559. package/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js +123 -0
  560. package/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js.map +1 -0
  561. package/dist/runtime-v2/adapter/index.d.ts +10 -0
  562. package/dist/runtime-v2/adapter/index.d.ts.map +1 -0
  563. package/dist/runtime-v2/adapter/index.js +6 -0
  564. package/dist/runtime-v2/adapter/index.js.map +1 -0
  565. package/dist/runtime-v2/adapter/json-extractor.d.ts +14 -0
  566. package/dist/runtime-v2/adapter/json-extractor.d.ts.map +1 -0
  567. package/dist/runtime-v2/adapter/json-extractor.js +97 -0
  568. package/dist/runtime-v2/adapter/json-extractor.js.map +1 -0
  569. package/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.d.ts +66 -0
  570. package/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.d.ts.map +1 -0
  571. package/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.js +705 -0
  572. package/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.js.map +1 -0
  573. package/dist/runtime-v2/adapter/output-repair-contract.d.ts +50 -0
  574. package/dist/runtime-v2/adapter/output-repair-contract.d.ts.map +1 -0
  575. package/dist/runtime-v2/adapter/output-repair-contract.js +96 -0
  576. package/dist/runtime-v2/adapter/output-repair-contract.js.map +1 -0
  577. package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts +114 -0
  578. package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +1 -0
  579. package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +1109 -0
  580. package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +1 -0
  581. package/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts +22 -0
  582. package/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts.map +1 -0
  583. package/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js +84 -0
  584. package/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js.map +1 -0
  585. package/dist/runtime-v2/adapter/structured-output-repair.d.ts +95 -0
  586. package/dist/runtime-v2/adapter/structured-output-repair.d.ts.map +1 -0
  587. package/dist/runtime-v2/adapter/structured-output-repair.js +259 -0
  588. package/dist/runtime-v2/adapter/structured-output-repair.js.map +1 -0
  589. package/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts +35 -0
  590. package/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts.map +1 -0
  591. package/dist/runtime-v2/adapter/test-double-runtime-adapter.js +94 -0
  592. package/dist/runtime-v2/adapter/test-double-runtime-adapter.js.map +1 -0
  593. package/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts +21 -0
  594. package/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts.map +1 -0
  595. package/dist/runtime-v2/adapter/tools/diagnostician-tool.js +20 -0
  596. package/dist/runtime-v2/adapter/tools/diagnostician-tool.js.map +1 -0
  597. package/dist/runtime-v2/admission-gate.d.ts +27 -0
  598. package/dist/runtime-v2/admission-gate.d.ts.map +1 -0
  599. package/dist/runtime-v2/admission-gate.js +57 -0
  600. package/dist/runtime-v2/admission-gate.js.map +1 -0
  601. package/dist/runtime-v2/agent-spec.d.ts +86 -0
  602. package/dist/runtime-v2/agent-spec.d.ts.map +1 -0
  603. package/dist/runtime-v2/agent-spec.js +74 -0
  604. package/dist/runtime-v2/agent-spec.js.map +1 -0
  605. package/dist/runtime-v2/candidate-audit.d.ts +8 -0
  606. package/dist/runtime-v2/candidate-audit.d.ts.map +1 -0
  607. package/dist/runtime-v2/candidate-audit.js +47 -0
  608. package/dist/runtime-v2/candidate-audit.js.map +1 -0
  609. package/dist/runtime-v2/candidate-intake-service.d.ts +43 -0
  610. package/dist/runtime-v2/candidate-intake-service.d.ts.map +1 -0
  611. package/dist/runtime-v2/candidate-intake-service.js +117 -0
  612. package/dist/runtime-v2/candidate-intake-service.js.map +1 -0
  613. package/dist/runtime-v2/candidate-intake.d.ts +219 -0
  614. package/dist/runtime-v2/candidate-intake.d.ts.map +1 -0
  615. package/dist/runtime-v2/candidate-intake.js +178 -0
  616. package/dist/runtime-v2/candidate-intake.js.map +1 -0
  617. package/dist/runtime-v2/cli/diagnose.d.ts +127 -0
  618. package/dist/runtime-v2/cli/diagnose.d.ts.map +1 -0
  619. package/dist/runtime-v2/cli/diagnose.js +113 -0
  620. package/dist/runtime-v2/cli/diagnose.js.map +1 -0
  621. package/dist/runtime-v2/cli/index.d.ts +5 -0
  622. package/dist/runtime-v2/cli/index.d.ts.map +1 -0
  623. package/dist/runtime-v2/cli/index.js +3 -0
  624. package/dist/runtime-v2/cli/index.js.map +1 -0
  625. package/dist/runtime-v2/cli/probe.d.ts +31 -0
  626. package/dist/runtime-v2/cli/probe.d.ts.map +1 -0
  627. package/dist/runtime-v2/cli/probe.js +58 -0
  628. package/dist/runtime-v2/cli/probe.js.map +1 -0
  629. package/dist/runtime-v2/context-payload.d.ts +298 -0
  630. package/dist/runtime-v2/context-payload.d.ts.map +1 -0
  631. package/dist/runtime-v2/context-payload.js +140 -0
  632. package/dist/runtime-v2/context-payload.js.map +1 -0
  633. package/dist/runtime-v2/control-plane-triage.d.ts +32 -0
  634. package/dist/runtime-v2/control-plane-triage.d.ts.map +1 -0
  635. package/dist/runtime-v2/control-plane-triage.js +220 -0
  636. package/dist/runtime-v2/control-plane-triage.js.map +1 -0
  637. package/dist/runtime-v2/correction/correction-types.d.ts +87 -0
  638. package/dist/runtime-v2/correction/correction-types.d.ts.map +1 -0
  639. package/dist/runtime-v2/correction/correction-types.js +66 -0
  640. package/dist/runtime-v2/correction/correction-types.js.map +1 -0
  641. package/dist/runtime-v2/correction/index.d.ts +2 -0
  642. package/dist/runtime-v2/correction/index.d.ts.map +1 -0
  643. package/dist/runtime-v2/correction/index.js +2 -0
  644. package/dist/runtime-v2/correction/index.js.map +1 -0
  645. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts +2 -0
  646. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts.map +1 -0
  647. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js +170 -0
  648. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js.map +1 -0
  649. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts +2 -0
  650. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts.map +1 -0
  651. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js +314 -0
  652. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js.map +1 -0
  653. package/dist/runtime-v2/diagnostician-output.d.ts +94 -0
  654. package/dist/runtime-v2/diagnostician-output.d.ts.map +1 -0
  655. package/dist/runtime-v2/diagnostician-output.js +65 -0
  656. package/dist/runtime-v2/diagnostician-output.js.map +1 -0
  657. package/dist/runtime-v2/diagnostician-prompt-builder.d.ts +125 -0
  658. package/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +1 -0
  659. package/dist/runtime-v2/diagnostician-prompt-builder.js +154 -0
  660. package/dist/runtime-v2/diagnostician-prompt-builder.js.map +1 -0
  661. package/dist/runtime-v2/error-categories.d.ts +42 -0
  662. package/dist/runtime-v2/error-categories.d.ts.map +1 -0
  663. package/dist/runtime-v2/error-categories.js +119 -0
  664. package/dist/runtime-v2/error-categories.js.map +1 -0
  665. package/dist/runtime-v2/evolution/evolution-types.d.ts +709 -0
  666. package/dist/runtime-v2/evolution/evolution-types.d.ts.map +1 -0
  667. package/dist/runtime-v2/evolution/evolution-types.js +410 -0
  668. package/dist/runtime-v2/evolution/evolution-types.js.map +1 -0
  669. package/dist/runtime-v2/evolution/index.d.ts +2 -0
  670. package/dist/runtime-v2/evolution/index.d.ts.map +1 -0
  671. package/dist/runtime-v2/evolution/index.js +2 -0
  672. package/dist/runtime-v2/evolution/index.js.map +1 -0
  673. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.d.ts +2 -0
  674. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.d.ts.map +1 -0
  675. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +298 -0
  676. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -0
  677. package/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts +35 -0
  678. package/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -0
  679. package/dist/runtime-v2/feature-flags/feature-flag-contract.js +124 -0
  680. package/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -0
  681. package/dist/runtime-v2/feature-flags/index.d.ts +3 -0
  682. package/dist/runtime-v2/feature-flags/index.d.ts.map +1 -0
  683. package/dist/runtime-v2/feature-flags/index.js +2 -0
  684. package/dist/runtime-v2/feature-flags/index.js.map +1 -0
  685. package/dist/runtime-v2/full-trace-contract.d.ts +79 -0
  686. package/dist/runtime-v2/full-trace-contract.d.ts.map +1 -0
  687. package/dist/runtime-v2/full-trace-contract.js +464 -0
  688. package/dist/runtime-v2/full-trace-contract.js.map +1 -0
  689. package/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.d.ts +2 -0
  690. package/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.d.ts.map +1 -0
  691. package/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.js +626 -0
  692. package/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.js.map +1 -0
  693. package/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.d.ts +2 -0
  694. package/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.d.ts.map +1 -0
  695. package/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.js +212 -0
  696. package/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.js.map +1 -0
  697. package/dist/runtime-v2/gfi/gfi-kernel.d.ts +12 -0
  698. package/dist/runtime-v2/gfi/gfi-kernel.d.ts.map +1 -0
  699. package/dist/runtime-v2/gfi/gfi-kernel.js +148 -0
  700. package/dist/runtime-v2/gfi/gfi-kernel.js.map +1 -0
  701. package/dist/runtime-v2/gfi/gfi-policy.d.ts +3 -0
  702. package/dist/runtime-v2/gfi/gfi-policy.d.ts.map +1 -0
  703. package/dist/runtime-v2/gfi/gfi-policy.js +23 -0
  704. package/dist/runtime-v2/gfi/gfi-policy.js.map +1 -0
  705. package/dist/runtime-v2/gfi/gfi-read-model.d.ts +78 -0
  706. package/dist/runtime-v2/gfi/gfi-read-model.d.ts.map +1 -0
  707. package/dist/runtime-v2/gfi/gfi-read-model.js +129 -0
  708. package/dist/runtime-v2/gfi/gfi-read-model.js.map +1 -0
  709. package/dist/runtime-v2/gfi/gfi-types.d.ts +70 -0
  710. package/dist/runtime-v2/gfi/gfi-types.d.ts.map +1 -0
  711. package/dist/runtime-v2/gfi/gfi-types.js +2 -0
  712. package/dist/runtime-v2/gfi/gfi-types.js.map +1 -0
  713. package/dist/runtime-v2/gfi/index.d.ts +6 -0
  714. package/dist/runtime-v2/gfi/index.d.ts.map +1 -0
  715. package/dist/runtime-v2/gfi/index.js +4 -0
  716. package/dist/runtime-v2/gfi/index.js.map +1 -0
  717. package/dist/runtime-v2/golden-trace-candidate-builder.d.ts +23 -0
  718. package/dist/runtime-v2/golden-trace-candidate-builder.d.ts.map +1 -0
  719. package/dist/runtime-v2/golden-trace-candidate-builder.js +193 -0
  720. package/dist/runtime-v2/golden-trace-candidate-builder.js.map +1 -0
  721. package/dist/runtime-v2/golden-trace-replay-adapter.d.ts +18 -0
  722. package/dist/runtime-v2/golden-trace-replay-adapter.d.ts.map +1 -0
  723. package/dist/runtime-v2/golden-trace-replay-adapter.js +18 -0
  724. package/dist/runtime-v2/golden-trace-replay-adapter.js.map +1 -0
  725. package/dist/runtime-v2/golden-trace-replay-validator.d.ts +42 -0
  726. package/dist/runtime-v2/golden-trace-replay-validator.d.ts.map +1 -0
  727. package/dist/runtime-v2/golden-trace-replay-validator.js +220 -0
  728. package/dist/runtime-v2/golden-trace-replay-validator.js.map +1 -0
  729. package/dist/runtime-v2/golden-trace.d.ts +80 -0
  730. package/dist/runtime-v2/golden-trace.d.ts.map +1 -0
  731. package/dist/runtime-v2/golden-trace.js +158 -0
  732. package/dist/runtime-v2/golden-trace.js.map +1 -0
  733. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts +2 -0
  734. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts.map +1 -0
  735. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js +92 -0
  736. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js.map +1 -0
  737. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts +2 -0
  738. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts.map +1 -0
  739. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js +134 -0
  740. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js.map +1 -0
  741. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts +2 -0
  742. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts.map +1 -0
  743. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js +226 -0
  744. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js.map +1 -0
  745. package/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts +3 -0
  746. package/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts.map +1 -0
  747. package/dist/runtime-v2/idle-trigger/idle-trigger-decision.js +5 -0
  748. package/dist/runtime-v2/idle-trigger/idle-trigger-decision.js.map +1 -0
  749. package/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts +4 -0
  750. package/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts.map +1 -0
  751. package/dist/runtime-v2/idle-trigger/idle-trigger-policy.js +81 -0
  752. package/dist/runtime-v2/idle-trigger/idle-trigger-policy.js.map +1 -0
  753. package/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts +29 -0
  754. package/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts.map +1 -0
  755. package/dist/runtime-v2/idle-trigger/idle-trigger-types.js +15 -0
  756. package/dist/runtime-v2/idle-trigger/idle-trigger-types.js.map +1 -0
  757. package/dist/runtime-v2/idle-trigger/index.d.ts +5 -0
  758. package/dist/runtime-v2/idle-trigger/index.d.ts.map +1 -0
  759. package/dist/runtime-v2/idle-trigger/index.js +4 -0
  760. package/dist/runtime-v2/idle-trigger/index.js.map +1 -0
  761. package/dist/runtime-v2/index.d.ts +281 -0
  762. package/dist/runtime-v2/index.d.ts.map +1 -0
  763. package/dist/runtime-v2/index.js +224 -0
  764. package/dist/runtime-v2/index.js.map +1 -0
  765. package/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.d.ts +2 -0
  766. package/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.d.ts.map +1 -0
  767. package/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js +57 -0
  768. package/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js.map +1 -0
  769. package/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.d.ts +2 -0
  770. package/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.d.ts.map +1 -0
  771. package/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.js +182 -0
  772. package/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.js.map +1 -0
  773. package/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.d.ts +2 -0
  774. package/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.d.ts.map +1 -0
  775. package/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.js +112 -0
  776. package/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.js.map +1 -0
  777. package/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.d.ts +2 -0
  778. package/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.d.ts.map +1 -0
  779. package/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.js +176 -0
  780. package/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.js.map +1 -0
  781. package/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.d.ts +2 -0
  782. package/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.d.ts.map +1 -0
  783. package/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js +297 -0
  784. package/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js.map +1 -0
  785. package/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.d.ts +2 -0
  786. package/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.d.ts.map +1 -0
  787. package/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.js +149 -0
  788. package/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.js.map +1 -0
  789. package/dist/runtime-v2/internalization/__tests__/queue-actionability.test.d.ts +2 -0
  790. package/dist/runtime-v2/internalization/__tests__/queue-actionability.test.d.ts.map +1 -0
  791. package/dist/runtime-v2/internalization/__tests__/queue-actionability.test.js +92 -0
  792. package/dist/runtime-v2/internalization/__tests__/queue-actionability.test.js.map +1 -0
  793. package/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.d.ts +2 -0
  794. package/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.d.ts.map +1 -0
  795. package/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.js +431 -0
  796. package/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.js.map +1 -0
  797. package/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.d.ts +2 -0
  798. package/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.d.ts.map +1 -0
  799. package/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.js +763 -0
  800. package/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.js.map +1 -0
  801. package/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.d.ts +2 -0
  802. package/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.d.ts.map +1 -0
  803. package/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.js +75 -0
  804. package/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.js.map +1 -0
  805. package/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.d.ts +2 -0
  806. package/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.d.ts.map +1 -0
  807. package/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js +56 -0
  808. package/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js.map +1 -0
  809. package/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.d.ts +2 -0
  810. package/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.d.ts.map +1 -0
  811. package/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.js +141 -0
  812. package/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.js.map +1 -0
  813. package/dist/runtime-v2/internalization/artificer-output.d.ts +67 -0
  814. package/dist/runtime-v2/internalization/artificer-output.d.ts.map +1 -0
  815. package/dist/runtime-v2/internalization/artificer-output.js +103 -0
  816. package/dist/runtime-v2/internalization/artificer-output.js.map +1 -0
  817. package/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts +24 -0
  818. package/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts.map +1 -0
  819. package/dist/runtime-v2/internalization/artificer-prompt-builder.js +62 -0
  820. package/dist/runtime-v2/internalization/artificer-prompt-builder.js.map +1 -0
  821. package/dist/runtime-v2/internalization/artificer-runner.d.ts +77 -0
  822. package/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -0
  823. package/dist/runtime-v2/internalization/artificer-runner.js +521 -0
  824. package/dist/runtime-v2/internalization/artificer-runner.js.map +1 -0
  825. package/dist/runtime-v2/internalization/compile-result.d.ts +20 -0
  826. package/dist/runtime-v2/internalization/compile-result.d.ts.map +1 -0
  827. package/dist/runtime-v2/internalization/compile-result.js +8 -0
  828. package/dist/runtime-v2/internalization/compile-result.js.map +1 -0
  829. package/dist/runtime-v2/internalization/correction-proposal.d.ts +38 -0
  830. package/dist/runtime-v2/internalization/correction-proposal.d.ts.map +1 -0
  831. package/dist/runtime-v2/internalization/correction-proposal.js +322 -0
  832. package/dist/runtime-v2/internalization/correction-proposal.js.map +1 -0
  833. package/dist/runtime-v2/internalization/deprecated-readiness.d.ts +20 -0
  834. package/dist/runtime-v2/internalization/deprecated-readiness.d.ts.map +1 -0
  835. package/dist/runtime-v2/internalization/deprecated-readiness.js +75 -0
  836. package/dist/runtime-v2/internalization/deprecated-readiness.js.map +1 -0
  837. package/dist/runtime-v2/internalization/deprecated-readiness.test.d.ts +2 -0
  838. package/dist/runtime-v2/internalization/deprecated-readiness.test.d.ts.map +1 -0
  839. package/dist/runtime-v2/internalization/deprecated-readiness.test.js +127 -0
  840. package/dist/runtime-v2/internalization/deprecated-readiness.test.js.map +1 -0
  841. package/dist/runtime-v2/internalization/dreamer-output.d.ts +120 -0
  842. package/dist/runtime-v2/internalization/dreamer-output.d.ts.map +1 -0
  843. package/dist/runtime-v2/internalization/dreamer-output.js +92 -0
  844. package/dist/runtime-v2/internalization/dreamer-output.js.map +1 -0
  845. package/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts +41 -0
  846. package/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts.map +1 -0
  847. package/dist/runtime-v2/internalization/dreamer-prompt-builder.js +43 -0
  848. package/dist/runtime-v2/internalization/dreamer-prompt-builder.js.map +1 -0
  849. package/dist/runtime-v2/internalization/dreamer-runner.d.ts +134 -0
  850. package/dist/runtime-v2/internalization/dreamer-runner.d.ts.map +1 -0
  851. package/dist/runtime-v2/internalization/dreamer-runner.js +636 -0
  852. package/dist/runtime-v2/internalization/dreamer-runner.js.map +1 -0
  853. package/dist/runtime-v2/internalization/evaluator-output.d.ts +71 -0
  854. package/dist/runtime-v2/internalization/evaluator-output.d.ts.map +1 -0
  855. package/dist/runtime-v2/internalization/evaluator-output.js +113 -0
  856. package/dist/runtime-v2/internalization/evaluator-output.js.map +1 -0
  857. package/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts +24 -0
  858. package/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts.map +1 -0
  859. package/dist/runtime-v2/internalization/evaluator-prompt-builder.js +49 -0
  860. package/dist/runtime-v2/internalization/evaluator-prompt-builder.js.map +1 -0
  861. package/dist/runtime-v2/internalization/evaluator-runner.d.ts +80 -0
  862. package/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -0
  863. package/dist/runtime-v2/internalization/evaluator-runner.js +661 -0
  864. package/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -0
  865. package/dist/runtime-v2/internalization/index.d.ts +81 -0
  866. package/dist/runtime-v2/internalization/index.d.ts.map +1 -0
  867. package/dist/runtime-v2/internalization/index.js +47 -0
  868. package/dist/runtime-v2/internalization/index.js.map +1 -0
  869. package/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts +57 -0
  870. package/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts.map +1 -0
  871. package/dist/runtime-v2/internalization/intake-to-internalization-bridge.js +99 -0
  872. package/dist/runtime-v2/internalization/intake-to-internalization-bridge.js.map +1 -0
  873. package/dist/runtime-v2/internalization/internalization-job-graph.d.ts +78 -0
  874. package/dist/runtime-v2/internalization/internalization-job-graph.d.ts.map +1 -0
  875. package/dist/runtime-v2/internalization/internalization-job-graph.js +153 -0
  876. package/dist/runtime-v2/internalization/internalization-job-graph.js.map +1 -0
  877. package/dist/runtime-v2/internalization/internalization-orchestrator.d.ts +182 -0
  878. package/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +1 -0
  879. package/dist/runtime-v2/internalization/internalization-orchestrator.js +355 -0
  880. package/dist/runtime-v2/internalization/internalization-orchestrator.js.map +1 -0
  881. package/dist/runtime-v2/internalization/internalization-route.d.ts +28 -0
  882. package/dist/runtime-v2/internalization/internalization-route.d.ts.map +1 -0
  883. package/dist/runtime-v2/internalization/internalization-route.js +112 -0
  884. package/dist/runtime-v2/internalization/internalization-route.js.map +1 -0
  885. package/dist/runtime-v2/internalization/internalization-state-machine.d.ts +157 -0
  886. package/dist/runtime-v2/internalization/internalization-state-machine.d.ts.map +1 -0
  887. package/dist/runtime-v2/internalization/internalization-state-machine.js +274 -0
  888. package/dist/runtime-v2/internalization/internalization-state-machine.js.map +1 -0
  889. package/dist/runtime-v2/internalization/internalization-task-guards.d.ts +92 -0
  890. package/dist/runtime-v2/internalization/internalization-task-guards.d.ts.map +1 -0
  891. package/dist/runtime-v2/internalization/internalization-task-guards.js +152 -0
  892. package/dist/runtime-v2/internalization/internalization-task-guards.js.map +1 -0
  893. package/dist/runtime-v2/internalization/lifecycle-datasource.d.ts +18 -0
  894. package/dist/runtime-v2/internalization/lifecycle-datasource.d.ts.map +1 -0
  895. package/dist/runtime-v2/internalization/lifecycle-datasource.js +2 -0
  896. package/dist/runtime-v2/internalization/lifecycle-datasource.js.map +1 -0
  897. package/dist/runtime-v2/internalization/lifecycle-metrics.d.ts +24 -0
  898. package/dist/runtime-v2/internalization/lifecycle-metrics.d.ts.map +1 -0
  899. package/dist/runtime-v2/internalization/lifecycle-metrics.js +124 -0
  900. package/dist/runtime-v2/internalization/lifecycle-metrics.js.map +1 -0
  901. package/dist/runtime-v2/internalization/lifecycle-metrics.test.d.ts +2 -0
  902. package/dist/runtime-v2/internalization/lifecycle-metrics.test.d.ts.map +1 -0
  903. package/dist/runtime-v2/internalization/lifecycle-metrics.test.js +201 -0
  904. package/dist/runtime-v2/internalization/lifecycle-metrics.test.js.map +1 -0
  905. package/dist/runtime-v2/internalization/lifecycle-read-model.d.ts +11 -0
  906. package/dist/runtime-v2/internalization/lifecycle-read-model.d.ts.map +1 -0
  907. package/dist/runtime-v2/internalization/lifecycle-read-model.js +155 -0
  908. package/dist/runtime-v2/internalization/lifecycle-read-model.js.map +1 -0
  909. package/dist/runtime-v2/internalization/lifecycle-read-model.test.d.ts +2 -0
  910. package/dist/runtime-v2/internalization/lifecycle-read-model.test.d.ts.map +1 -0
  911. package/dist/runtime-v2/internalization/lifecycle-read-model.test.js +408 -0
  912. package/dist/runtime-v2/internalization/lifecycle-read-model.test.js.map +1 -0
  913. package/dist/runtime-v2/internalization/lifecycle-types.d.ts +75 -0
  914. package/dist/runtime-v2/internalization/lifecycle-types.d.ts.map +1 -0
  915. package/dist/runtime-v2/internalization/lifecycle-types.js +2 -0
  916. package/dist/runtime-v2/internalization/lifecycle-types.js.map +1 -0
  917. package/dist/runtime-v2/internalization/peer-runner-contracts.d.ts +140 -0
  918. package/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +1 -0
  919. package/dist/runtime-v2/internalization/peer-runner-contracts.js +124 -0
  920. package/dist/runtime-v2/internalization/peer-runner-contracts.js.map +1 -0
  921. package/dist/runtime-v2/internalization/philosopher-output.d.ts +56 -0
  922. package/dist/runtime-v2/internalization/philosopher-output.d.ts.map +1 -0
  923. package/dist/runtime-v2/internalization/philosopher-output.js +69 -0
  924. package/dist/runtime-v2/internalization/philosopher-output.js.map +1 -0
  925. package/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts +41 -0
  926. package/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts.map +1 -0
  927. package/dist/runtime-v2/internalization/philosopher-prompt-builder.js +50 -0
  928. package/dist/runtime-v2/internalization/philosopher-prompt-builder.js.map +1 -0
  929. package/dist/runtime-v2/internalization/philosopher-runner.d.ts +103 -0
  930. package/dist/runtime-v2/internalization/philosopher-runner.d.ts.map +1 -0
  931. package/dist/runtime-v2/internalization/philosopher-runner.js +519 -0
  932. package/dist/runtime-v2/internalization/philosopher-runner.js.map +1 -0
  933. package/dist/runtime-v2/internalization/pi-artifact-store.d.ts +13 -0
  934. package/dist/runtime-v2/internalization/pi-artifact-store.d.ts.map +1 -0
  935. package/dist/runtime-v2/internalization/pi-artifact-store.js +65 -0
  936. package/dist/runtime-v2/internalization/pi-artifact-store.js.map +1 -0
  937. package/dist/runtime-v2/internalization/pi-artifact.d.ts +23 -0
  938. package/dist/runtime-v2/internalization/pi-artifact.d.ts.map +1 -0
  939. package/dist/runtime-v2/internalization/pi-artifact.js +2 -0
  940. package/dist/runtime-v2/internalization/pi-artifact.js.map +1 -0
  941. package/dist/runtime-v2/internalization/pitask-metadata.d.ts +80 -0
  942. package/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +1 -0
  943. package/dist/runtime-v2/internalization/pitask-metadata.js +194 -0
  944. package/dist/runtime-v2/internalization/pitask-metadata.js.map +1 -0
  945. package/dist/runtime-v2/internalization/queue-actionability.d.ts +37 -0
  946. package/dist/runtime-v2/internalization/queue-actionability.d.ts.map +1 -0
  947. package/dist/runtime-v2/internalization/queue-actionability.js +50 -0
  948. package/dist/runtime-v2/internalization/queue-actionability.js.map +1 -0
  949. package/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts +20 -0
  950. package/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts.map +1 -0
  951. package/dist/runtime-v2/internalization/refiner-rulehost-gate.js +151 -0
  952. package/dist/runtime-v2/internalization/refiner-rulehost-gate.js.map +1 -0
  953. package/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts +36 -0
  954. package/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts.map +1 -0
  955. package/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js +227 -0
  956. package/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js.map +1 -0
  957. package/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts +74 -0
  958. package/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts.map +1 -0
  959. package/dist/runtime-v2/internalization/rollout-reviewer-output.js +117 -0
  960. package/dist/runtime-v2/internalization/rollout-reviewer-output.js.map +1 -0
  961. package/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts +24 -0
  962. package/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts.map +1 -0
  963. package/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js +52 -0
  964. package/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js.map +1 -0
  965. package/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts +76 -0
  966. package/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts.map +1 -0
  967. package/dist/runtime-v2/internalization/rollout-reviewer-runner.js +538 -0
  968. package/dist/runtime-v2/internalization/rollout-reviewer-runner.js.map +1 -0
  969. package/dist/runtime-v2/internalization/routing-policy.d.ts +24 -0
  970. package/dist/runtime-v2/internalization/routing-policy.d.ts.map +1 -0
  971. package/dist/runtime-v2/internalization/routing-policy.js +169 -0
  972. package/dist/runtime-v2/internalization/routing-policy.js.map +1 -0
  973. package/dist/runtime-v2/internalization/routing-policy.test.d.ts +2 -0
  974. package/dist/runtime-v2/internalization/routing-policy.test.d.ts.map +1 -0
  975. package/dist/runtime-v2/internalization/routing-policy.test.js +286 -0
  976. package/dist/runtime-v2/internalization/routing-policy.test.js.map +1 -0
  977. package/dist/runtime-v2/internalization/rule-code-validator.d.ts +21 -0
  978. package/dist/runtime-v2/internalization/rule-code-validator.d.ts.map +1 -0
  979. package/dist/runtime-v2/internalization/rule-code-validator.js +42 -0
  980. package/dist/runtime-v2/internalization/rule-code-validator.js.map +1 -0
  981. package/dist/runtime-v2/internalization/rule-host-adapter.d.ts +16 -0
  982. package/dist/runtime-v2/internalization/rule-host-adapter.d.ts.map +1 -0
  983. package/dist/runtime-v2/internalization/rule-host-adapter.js +13 -0
  984. package/dist/runtime-v2/internalization/rule-host-adapter.js.map +1 -0
  985. package/dist/runtime-v2/internalization/rule-host-contracts.d.ts +61 -0
  986. package/dist/runtime-v2/internalization/rule-host-contracts.d.ts.map +1 -0
  987. package/dist/runtime-v2/internalization/rule-host-contracts.js +14 -0
  988. package/dist/runtime-v2/internalization/rule-host-contracts.js.map +1 -0
  989. package/dist/runtime-v2/internalization/rule-host-evaluator.d.ts +36 -0
  990. package/dist/runtime-v2/internalization/rule-host-evaluator.d.ts.map +1 -0
  991. package/dist/runtime-v2/internalization/rule-host-evaluator.js +103 -0
  992. package/dist/runtime-v2/internalization/rule-host-evaluator.js.map +1 -0
  993. package/dist/runtime-v2/internalization/rule-host-helpers.d.ts +27 -0
  994. package/dist/runtime-v2/internalization/rule-host-helpers.d.ts.map +1 -0
  995. package/dist/runtime-v2/internalization/rule-host-helpers.js +27 -0
  996. package/dist/runtime-v2/internalization/rule-host-helpers.js.map +1 -0
  997. package/dist/runtime-v2/internalization/scribe-output.d.ts +74 -0
  998. package/dist/runtime-v2/internalization/scribe-output.d.ts.map +1 -0
  999. package/dist/runtime-v2/internalization/scribe-output.js +98 -0
  1000. package/dist/runtime-v2/internalization/scribe-output.js.map +1 -0
  1001. package/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts +24 -0
  1002. package/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts.map +1 -0
  1003. package/dist/runtime-v2/internalization/scribe-prompt-builder.js +60 -0
  1004. package/dist/runtime-v2/internalization/scribe-prompt-builder.js.map +1 -0
  1005. package/dist/runtime-v2/internalization/scribe-runner.d.ts +77 -0
  1006. package/dist/runtime-v2/internalization/scribe-runner.d.ts.map +1 -0
  1007. package/dist/runtime-v2/internalization/scribe-runner.js +518 -0
  1008. package/dist/runtime-v2/internalization/scribe-runner.js.map +1 -0
  1009. package/dist/runtime-v2/internalization/template-generator.d.ts +21 -0
  1010. package/dist/runtime-v2/internalization/template-generator.d.ts.map +1 -0
  1011. package/dist/runtime-v2/internalization/template-generator.js +61 -0
  1012. package/dist/runtime-v2/internalization/template-generator.js.map +1 -0
  1013. package/dist/runtime-v2/internalization/trainer-output.d.ts +122 -0
  1014. package/dist/runtime-v2/internalization/trainer-output.d.ts.map +1 -0
  1015. package/dist/runtime-v2/internalization/trainer-output.js +223 -0
  1016. package/dist/runtime-v2/internalization/trainer-output.js.map +1 -0
  1017. package/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts +24 -0
  1018. package/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts.map +1 -0
  1019. package/dist/runtime-v2/internalization/trainer-prompt-builder.js +57 -0
  1020. package/dist/runtime-v2/internalization/trainer-prompt-builder.js.map +1 -0
  1021. package/dist/runtime-v2/internalization/trainer-runner.d.ts +76 -0
  1022. package/dist/runtime-v2/internalization/trainer-runner.d.ts.map +1 -0
  1023. package/dist/runtime-v2/internalization/trainer-runner.js +538 -0
  1024. package/dist/runtime-v2/internalization/trainer-runner.js.map +1 -0
  1025. package/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts +42 -0
  1026. package/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts.map +1 -0
  1027. package/dist/runtime-v2/internalization-chain-integrity-read-model.js +413 -0
  1028. package/dist/runtime-v2/internalization-chain-integrity-read-model.js.map +1 -0
  1029. package/dist/runtime-v2/internalization-integrity-remediation.d.ts +17 -0
  1030. package/dist/runtime-v2/internalization-integrity-remediation.d.ts.map +1 -0
  1031. package/dist/runtime-v2/internalization-integrity-remediation.js +269 -0
  1032. package/dist/runtime-v2/internalization-integrity-remediation.js.map +1 -0
  1033. package/dist/runtime-v2/internalization-queue-read-model.d.ts +93 -0
  1034. package/dist/runtime-v2/internalization-queue-read-model.d.ts.map +1 -0
  1035. package/dist/runtime-v2/internalization-queue-read-model.js +217 -0
  1036. package/dist/runtime-v2/internalization-queue-read-model.js.map +1 -0
  1037. package/dist/runtime-v2/l1-hard-cap.d.ts +21 -0
  1038. package/dist/runtime-v2/l1-hard-cap.d.ts.map +1 -0
  1039. package/dist/runtime-v2/l1-hard-cap.js +51 -0
  1040. package/dist/runtime-v2/l1-hard-cap.js.map +1 -0
  1041. package/dist/runtime-v2/nocturnal/candidate-scoring.d.ts +486 -0
  1042. package/dist/runtime-v2/nocturnal/candidate-scoring.d.ts.map +1 -0
  1043. package/dist/runtime-v2/nocturnal/candidate-scoring.js +493 -0
  1044. package/dist/runtime-v2/nocturnal/candidate-scoring.js.map +1 -0
  1045. package/dist/runtime-v2/nocturnal/index.d.ts +9 -0
  1046. package/dist/runtime-v2/nocturnal/index.d.ts.map +1 -0
  1047. package/dist/runtime-v2/nocturnal/index.js +5 -0
  1048. package/dist/runtime-v2/nocturnal/index.js.map +1 -0
  1049. package/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts +185 -0
  1050. package/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts.map +1 -0
  1051. package/dist/runtime-v2/nocturnal/nocturnal-compliance.js +912 -0
  1052. package/dist/runtime-v2/nocturnal/nocturnal-compliance.js.map +1 -0
  1053. package/dist/runtime-v2/nocturnal/snapshot-contract.d.ts +192 -0
  1054. package/dist/runtime-v2/nocturnal/snapshot-contract.d.ts.map +1 -0
  1055. package/dist/runtime-v2/nocturnal/snapshot-contract.js +185 -0
  1056. package/dist/runtime-v2/nocturnal/snapshot-contract.js.map +1 -0
  1057. package/dist/runtime-v2/nocturnal/trinity-types.d.ts +421 -0
  1058. package/dist/runtime-v2/nocturnal/trinity-types.d.ts.map +1 -0
  1059. package/dist/runtime-v2/nocturnal/trinity-types.js +182 -0
  1060. package/dist/runtime-v2/nocturnal/trinity-types.js.map +1 -0
  1061. package/dist/runtime-v2/observer/__tests__/agent-scheduler.test.d.ts +2 -0
  1062. package/dist/runtime-v2/observer/__tests__/agent-scheduler.test.d.ts.map +1 -0
  1063. package/dist/runtime-v2/observer/__tests__/agent-scheduler.test.js +49 -0
  1064. package/dist/runtime-v2/observer/__tests__/agent-scheduler.test.js.map +1 -0
  1065. package/dist/runtime-v2/observer/__tests__/correction-observer.test.d.ts +2 -0
  1066. package/dist/runtime-v2/observer/__tests__/correction-observer.test.d.ts.map +1 -0
  1067. package/dist/runtime-v2/observer/__tests__/correction-observer.test.js +144 -0
  1068. package/dist/runtime-v2/observer/__tests__/correction-observer.test.js.map +1 -0
  1069. package/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.d.ts +2 -0
  1070. package/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.d.ts.map +1 -0
  1071. package/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js +67 -0
  1072. package/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js.map +1 -0
  1073. package/dist/runtime-v2/observer/__tests__/empathy-observer.test.d.ts +2 -0
  1074. package/dist/runtime-v2/observer/__tests__/empathy-observer.test.d.ts.map +1 -0
  1075. package/dist/runtime-v2/observer/__tests__/empathy-observer.test.js +84 -0
  1076. package/dist/runtime-v2/observer/__tests__/empathy-observer.test.js.map +1 -0
  1077. package/dist/runtime-v2/observer/agent-scheduler.d.ts +40 -0
  1078. package/dist/runtime-v2/observer/agent-scheduler.d.ts.map +1 -0
  1079. package/dist/runtime-v2/observer/agent-scheduler.js +30 -0
  1080. package/dist/runtime-v2/observer/agent-scheduler.js.map +1 -0
  1081. package/dist/runtime-v2/observer/correction-observer.d.ts +59 -0
  1082. package/dist/runtime-v2/observer/correction-observer.d.ts.map +1 -0
  1083. package/dist/runtime-v2/observer/correction-observer.js +178 -0
  1084. package/dist/runtime-v2/observer/correction-observer.js.map +1 -0
  1085. package/dist/runtime-v2/observer/empathy-observer.d.ts +35 -0
  1086. package/dist/runtime-v2/observer/empathy-observer.d.ts.map +1 -0
  1087. package/dist/runtime-v2/observer/empathy-observer.js +98 -0
  1088. package/dist/runtime-v2/observer/empathy-observer.js.map +1 -0
  1089. package/dist/runtime-v2/operator-health-read-model.d.ts +45 -0
  1090. package/dist/runtime-v2/operator-health-read-model.d.ts.map +1 -0
  1091. package/dist/runtime-v2/operator-health-read-model.js +189 -0
  1092. package/dist/runtime-v2/operator-health-read-model.js.map +1 -0
  1093. package/dist/runtime-v2/pain-chain-read-model.d.ts +40 -0
  1094. package/dist/runtime-v2/pain-chain-read-model.d.ts.map +1 -0
  1095. package/dist/runtime-v2/pain-chain-read-model.js +293 -0
  1096. package/dist/runtime-v2/pain-chain-read-model.js.map +1 -0
  1097. package/dist/runtime-v2/pain-flood-simulation.d.ts +62 -0
  1098. package/dist/runtime-v2/pain-flood-simulation.d.ts.map +1 -0
  1099. package/dist/runtime-v2/pain-flood-simulation.js +152 -0
  1100. package/dist/runtime-v2/pain-flood-simulation.js.map +1 -0
  1101. package/dist/runtime-v2/pain-signal-bridge.d.ts +72 -0
  1102. package/dist/runtime-v2/pain-signal-bridge.d.ts.map +1 -0
  1103. package/dist/runtime-v2/pain-signal-bridge.js +340 -0
  1104. package/dist/runtime-v2/pain-signal-bridge.js.map +1 -0
  1105. package/dist/runtime-v2/pain-signal-observability.d.ts +19 -0
  1106. package/dist/runtime-v2/pain-signal-observability.d.ts.map +1 -0
  1107. package/dist/runtime-v2/pain-signal-observability.js +161 -0
  1108. package/dist/runtime-v2/pain-signal-observability.js.map +1 -0
  1109. package/dist/runtime-v2/pain-signal-runtime-factory.d.ts +82 -0
  1110. package/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +1 -0
  1111. package/dist/runtime-v2/pain-signal-runtime-factory.js +279 -0
  1112. package/dist/runtime-v2/pain-signal-runtime-factory.js.map +1 -0
  1113. package/dist/runtime-v2/pain-to-principle-service.d.ts +53 -0
  1114. package/dist/runtime-v2/pain-to-principle-service.d.ts.map +1 -0
  1115. package/dist/runtime-v2/pain-to-principle-service.js +114 -0
  1116. package/dist/runtime-v2/pain-to-principle-service.js.map +1 -0
  1117. package/dist/runtime-v2/proven-channel-baseline.d.ts +56 -0
  1118. package/dist/runtime-v2/proven-channel-baseline.d.ts.map +1 -0
  1119. package/dist/runtime-v2/proven-channel-baseline.js +480 -0
  1120. package/dist/runtime-v2/proven-channel-baseline.js.map +1 -0
  1121. package/dist/runtime-v2/pruning-mask.d.ts +27 -0
  1122. package/dist/runtime-v2/pruning-mask.d.ts.map +1 -0
  1123. package/dist/runtime-v2/pruning-mask.js +59 -0
  1124. package/dist/runtime-v2/pruning-mask.js.map +1 -0
  1125. package/dist/runtime-v2/pruning-read-model.d.ts +76 -0
  1126. package/dist/runtime-v2/pruning-read-model.d.ts.map +1 -0
  1127. package/dist/runtime-v2/pruning-read-model.js +266 -0
  1128. package/dist/runtime-v2/pruning-read-model.js.map +1 -0
  1129. package/dist/runtime-v2/pruning-review-log.d.ts +41 -0
  1130. package/dist/runtime-v2/pruning-review-log.d.ts.map +1 -0
  1131. package/dist/runtime-v2/pruning-review-log.js +106 -0
  1132. package/dist/runtime-v2/pruning-review-log.js.map +1 -0
  1133. package/dist/runtime-v2/recovery-sweep-service.d.ts +14 -0
  1134. package/dist/runtime-v2/recovery-sweep-service.d.ts.map +1 -0
  1135. package/dist/runtime-v2/recovery-sweep-service.js +26 -0
  1136. package/dist/runtime-v2/recovery-sweep-service.js.map +1 -0
  1137. package/dist/runtime-v2/remediation-contract.d.ts +46 -0
  1138. package/dist/runtime-v2/remediation-contract.d.ts.map +1 -0
  1139. package/dist/runtime-v2/remediation-contract.js +29 -0
  1140. package/dist/runtime-v2/remediation-contract.js.map +1 -0
  1141. package/dist/runtime-v2/runner/__tests__/default-validator.test.d.ts +2 -0
  1142. package/dist/runtime-v2/runner/__tests__/default-validator.test.d.ts.map +1 -0
  1143. package/dist/runtime-v2/runner/__tests__/default-validator.test.js +526 -0
  1144. package/dist/runtime-v2/runner/__tests__/default-validator.test.js.map +1 -0
  1145. package/dist/runtime-v2/runner/__tests__/diagnose.test.d.ts +2 -0
  1146. package/dist/runtime-v2/runner/__tests__/diagnose.test.d.ts.map +1 -0
  1147. package/dist/runtime-v2/runner/__tests__/diagnose.test.js +81 -0
  1148. package/dist/runtime-v2/runner/__tests__/diagnose.test.js.map +1 -0
  1149. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts +2 -0
  1150. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts.map +1 -0
  1151. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js +378 -0
  1152. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js.map +1 -0
  1153. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts +2 -0
  1154. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts.map +1 -0
  1155. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js +642 -0
  1156. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js.map +1 -0
  1157. package/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts +2 -0
  1158. package/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts.map +1 -0
  1159. package/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js +286 -0
  1160. package/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js.map +1 -0
  1161. package/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts +2 -0
  1162. package/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts.map +1 -0
  1163. package/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js +320 -0
  1164. package/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js.map +1 -0
  1165. package/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts +2 -0
  1166. package/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts.map +1 -0
  1167. package/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js +261 -0
  1168. package/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js.map +1 -0
  1169. package/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts +2 -0
  1170. package/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts.map +1 -0
  1171. package/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js +405 -0
  1172. package/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js.map +1 -0
  1173. package/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts +2 -0
  1174. package/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts.map +1 -0
  1175. package/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js +347 -0
  1176. package/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js.map +1 -0
  1177. package/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts +2 -0
  1178. package/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts.map +1 -0
  1179. package/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js +186 -0
  1180. package/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js.map +1 -0
  1181. package/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts +2 -0
  1182. package/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts.map +1 -0
  1183. package/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js +355 -0
  1184. package/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js.map +1 -0
  1185. package/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts +2 -0
  1186. package/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts.map +1 -0
  1187. package/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js +488 -0
  1188. package/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js.map +1 -0
  1189. package/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts +2 -0
  1190. package/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts.map +1 -0
  1191. package/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js +171 -0
  1192. package/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js.map +1 -0
  1193. package/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts +2 -0
  1194. package/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts.map +1 -0
  1195. package/dist/runtime-v2/runner/__tests__/m9-e2e.test.js +182 -0
  1196. package/dist/runtime-v2/runner/__tests__/m9-e2e.test.js.map +1 -0
  1197. package/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts +2 -0
  1198. package/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts.map +1 -0
  1199. package/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js +276 -0
  1200. package/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js.map +1 -0
  1201. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.d.ts +2 -0
  1202. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.d.ts.map +1 -0
  1203. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js +462 -0
  1204. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js.map +1 -0
  1205. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.d.ts +2 -0
  1206. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.d.ts.map +1 -0
  1207. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.js +160 -0
  1208. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.js.map +1 -0
  1209. package/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts +2 -0
  1210. package/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts.map +1 -0
  1211. package/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js +272 -0
  1212. package/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js.map +1 -0
  1213. package/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts +2 -0
  1214. package/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts.map +1 -0
  1215. package/dist/runtime-v2/runner/__tests__/start-run-input.test.js +67 -0
  1216. package/dist/runtime-v2/runner/__tests__/start-run-input.test.js.map +1 -0
  1217. package/dist/runtime-v2/runner/default-validator.d.ts +10 -0
  1218. package/dist/runtime-v2/runner/default-validator.d.ts.map +1 -0
  1219. package/dist/runtime-v2/runner/default-validator.js +168 -0
  1220. package/dist/runtime-v2/runner/default-validator.js.map +1 -0
  1221. package/dist/runtime-v2/runner/diagnostician-runner-options.d.ts +37 -0
  1222. package/dist/runtime-v2/runner/diagnostician-runner-options.d.ts.map +1 -0
  1223. package/dist/runtime-v2/runner/diagnostician-runner-options.js +19 -0
  1224. package/dist/runtime-v2/runner/diagnostician-runner-options.js.map +1 -0
  1225. package/dist/runtime-v2/runner/diagnostician-runner.d.ts +87 -0
  1226. package/dist/runtime-v2/runner/diagnostician-runner.d.ts.map +1 -0
  1227. package/dist/runtime-v2/runner/diagnostician-runner.js +417 -0
  1228. package/dist/runtime-v2/runner/diagnostician-runner.js.map +1 -0
  1229. package/dist/runtime-v2/runner/diagnostician-validator.d.ts +56 -0
  1230. package/dist/runtime-v2/runner/diagnostician-validator.d.ts.map +1 -0
  1231. package/dist/runtime-v2/runner/diagnostician-validator.js +11 -0
  1232. package/dist/runtime-v2/runner/diagnostician-validator.js.map +1 -0
  1233. package/dist/runtime-v2/runner/runner-phase.d.ts +21 -0
  1234. package/dist/runtime-v2/runner/runner-phase.d.ts.map +1 -0
  1235. package/dist/runtime-v2/runner/runner-phase.js +22 -0
  1236. package/dist/runtime-v2/runner/runner-phase.js.map +1 -0
  1237. package/dist/runtime-v2/runner/runner-result.d.ts +20 -0
  1238. package/dist/runtime-v2/runner/runner-result.d.ts.map +1 -0
  1239. package/dist/runtime-v2/runner/runner-result.js +2 -0
  1240. package/dist/runtime-v2/runner/runner-result.js.map +1 -0
  1241. package/dist/runtime-v2/runtime-protocol.d.ts +165 -0
  1242. package/dist/runtime-v2/runtime-protocol.d.ts.map +1 -0
  1243. package/dist/runtime-v2/runtime-protocol.js +130 -0
  1244. package/dist/runtime-v2/runtime-protocol.js.map +1 -0
  1245. package/dist/runtime-v2/runtime-selector.d.ts +77 -0
  1246. package/dist/runtime-v2/runtime-selector.d.ts.map +1 -0
  1247. package/dist/runtime-v2/runtime-selector.js +23 -0
  1248. package/dist/runtime-v2/runtime-selector.js.map +1 -0
  1249. package/dist/runtime-v2/runtime-state-handle.d.ts +10 -0
  1250. package/dist/runtime-v2/runtime-state-handle.d.ts.map +1 -0
  1251. package/dist/runtime-v2/runtime-state-handle.js +30 -0
  1252. package/dist/runtime-v2/runtime-state-handle.js.map +1 -0
  1253. package/dist/runtime-v2/schema-conformance-read-model.d.ts +24 -0
  1254. package/dist/runtime-v2/schema-conformance-read-model.d.ts.map +1 -0
  1255. package/dist/runtime-v2/schema-conformance-read-model.js +178 -0
  1256. package/dist/runtime-v2/schema-conformance-read-model.js.map +1 -0
  1257. package/dist/runtime-v2/schema-version.d.ts +20 -0
  1258. package/dist/runtime-v2/schema-version.d.ts.map +1 -0
  1259. package/dist/runtime-v2/schema-version.js +20 -0
  1260. package/dist/runtime-v2/schema-version.js.map +1 -0
  1261. package/dist/runtime-v2/store/artifact/artifact-store.d.ts +28 -0
  1262. package/dist/runtime-v2/store/artifact/artifact-store.d.ts.map +1 -0
  1263. package/dist/runtime-v2/store/artifact/artifact-store.js +2 -0
  1264. package/dist/runtime-v2/store/artifact/artifact-store.js.map +1 -0
  1265. package/dist/runtime-v2/store/artifact/index.d.ts +4 -0
  1266. package/dist/runtime-v2/store/artifact/index.d.ts.map +1 -0
  1267. package/dist/runtime-v2/store/artifact/index.js +3 -0
  1268. package/dist/runtime-v2/store/artifact/index.js.map +1 -0
  1269. package/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts +14 -0
  1270. package/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts.map +1 -0
  1271. package/dist/runtime-v2/store/artifact/memory-artifact-store.js +25 -0
  1272. package/dist/runtime-v2/store/artifact/memory-artifact-store.js.map +1 -0
  1273. package/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts +12 -0
  1274. package/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts.map +1 -0
  1275. package/dist/runtime-v2/store/artifact/sqlite-artifact-store.js +51 -0
  1276. package/dist/runtime-v2/store/artifact/sqlite-artifact-store.js.map +1 -0
  1277. package/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts +13 -0
  1278. package/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts.map +1 -0
  1279. package/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js +98 -0
  1280. package/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js.map +1 -0
  1281. package/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.d.ts +2 -0
  1282. package/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.d.ts.map +1 -0
  1283. package/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.js +34 -0
  1284. package/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.js.map +1 -0
  1285. package/dist/runtime-v2/store/candidate/candidate-store.d.ts +42 -0
  1286. package/dist/runtime-v2/store/candidate/candidate-store.d.ts.map +1 -0
  1287. package/dist/runtime-v2/store/candidate/candidate-store.js +2 -0
  1288. package/dist/runtime-v2/store/candidate/candidate-store.js.map +1 -0
  1289. package/dist/runtime-v2/store/candidate/index.d.ts +4 -0
  1290. package/dist/runtime-v2/store/candidate/index.d.ts.map +1 -0
  1291. package/dist/runtime-v2/store/candidate/index.js +3 -0
  1292. package/dist/runtime-v2/store/candidate/index.js.map +1 -0
  1293. package/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts +22 -0
  1294. package/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts.map +1 -0
  1295. package/dist/runtime-v2/store/candidate/memory-candidate-store.js +36 -0
  1296. package/dist/runtime-v2/store/candidate/memory-candidate-store.js.map +1 -0
  1297. package/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts +4 -0
  1298. package/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts.map +1 -0
  1299. package/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js +14 -0
  1300. package/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js.map +1 -0
  1301. package/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts +13 -0
  1302. package/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts.map +1 -0
  1303. package/dist/runtime-v2/store/candidate/sqlite-candidate-store.js +61 -0
  1304. package/dist/runtime-v2/store/candidate/sqlite-candidate-store.js.map +1 -0
  1305. package/dist/runtime-v2/store/commit/commit-store.d.ts +19 -0
  1306. package/dist/runtime-v2/store/commit/commit-store.d.ts.map +1 -0
  1307. package/dist/runtime-v2/store/commit/commit-store.js +2 -0
  1308. package/dist/runtime-v2/store/commit/commit-store.js.map +1 -0
  1309. package/dist/runtime-v2/store/commit/diagnostician-committer.d.ts +47 -0
  1310. package/dist/runtime-v2/store/commit/diagnostician-committer.d.ts.map +1 -0
  1311. package/dist/runtime-v2/store/commit/diagnostician-committer.js +140 -0
  1312. package/dist/runtime-v2/store/commit/diagnostician-committer.js.map +1 -0
  1313. package/dist/runtime-v2/store/commit/index.d.ts +7 -0
  1314. package/dist/runtime-v2/store/commit/index.d.ts.map +1 -0
  1315. package/dist/runtime-v2/store/commit/index.js +4 -0
  1316. package/dist/runtime-v2/store/commit/index.js.map +1 -0
  1317. package/dist/runtime-v2/store/commit/memory-commit-store.d.ts +16 -0
  1318. package/dist/runtime-v2/store/commit/memory-commit-store.d.ts.map +1 -0
  1319. package/dist/runtime-v2/store/commit/memory-commit-store.js +18 -0
  1320. package/dist/runtime-v2/store/commit/memory-commit-store.js.map +1 -0
  1321. package/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts +11 -0
  1322. package/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts.map +1 -0
  1323. package/dist/runtime-v2/store/commit/sqlite-commit-store.js +25 -0
  1324. package/dist/runtime-v2/store/commit/sqlite-commit-store.js.map +1 -0
  1325. package/dist/runtime-v2/store/concurrent-lease.test.d.ts +2 -0
  1326. package/dist/runtime-v2/store/concurrent-lease.test.d.ts.map +1 -0
  1327. package/dist/runtime-v2/store/concurrent-lease.test.js +129 -0
  1328. package/dist/runtime-v2/store/concurrent-lease.test.js.map +1 -0
  1329. package/dist/runtime-v2/store/context/context-assembler.d.ts +19 -0
  1330. package/dist/runtime-v2/store/context/context-assembler.d.ts.map +1 -0
  1331. package/dist/runtime-v2/store/context/context-assembler.js +2 -0
  1332. package/dist/runtime-v2/store/context/context-assembler.js.map +1 -0
  1333. package/dist/runtime-v2/store/context/index.d.ts +4 -0
  1334. package/dist/runtime-v2/store/context/index.d.ts.map +1 -0
  1335. package/dist/runtime-v2/store/context/index.js +3 -0
  1336. package/dist/runtime-v2/store/context/index.js.map +1 -0
  1337. package/dist/runtime-v2/store/context/resilient-context-assembler.d.ts +13 -0
  1338. package/dist/runtime-v2/store/context/resilient-context-assembler.d.ts.map +1 -0
  1339. package/dist/runtime-v2/store/context/resilient-context-assembler.js +72 -0
  1340. package/dist/runtime-v2/store/context/resilient-context-assembler.js.map +1 -0
  1341. package/dist/runtime-v2/store/context/resilient-context-assembler.test.d.ts +2 -0
  1342. package/dist/runtime-v2/store/context/resilient-context-assembler.test.d.ts.map +1 -0
  1343. package/dist/runtime-v2/store/context/resilient-context-assembler.test.js +113 -0
  1344. package/dist/runtime-v2/store/context/resilient-context-assembler.test.js.map +1 -0
  1345. package/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts +28 -0
  1346. package/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts.map +1 -0
  1347. package/dist/runtime-v2/store/context/sqlite-context-assembler.js +277 -0
  1348. package/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +1 -0
  1349. package/dist/runtime-v2/store/context/sqlite-context-assembler.test.d.ts +2 -0
  1350. package/dist/runtime-v2/store/context/sqlite-context-assembler.test.d.ts.map +1 -0
  1351. package/dist/runtime-v2/store/context/sqlite-context-assembler.test.js +1181 -0
  1352. package/dist/runtime-v2/store/context/sqlite-context-assembler.test.js.map +1 -0
  1353. package/dist/runtime-v2/store/diagnostician-committer.test.d.ts +2 -0
  1354. package/dist/runtime-v2/store/diagnostician-committer.test.d.ts.map +1 -0
  1355. package/dist/runtime-v2/store/diagnostician-committer.test.js +326 -0
  1356. package/dist/runtime-v2/store/diagnostician-committer.test.js.map +1 -0
  1357. package/dist/runtime-v2/store/event-emitter.d.ts +18 -0
  1358. package/dist/runtime-v2/store/event-emitter.d.ts.map +1 -0
  1359. package/dist/runtime-v2/store/event-emitter.js +78 -0
  1360. package/dist/runtime-v2/store/event-emitter.js.map +1 -0
  1361. package/dist/runtime-v2/store/history/history-query.d.ts +57 -0
  1362. package/dist/runtime-v2/store/history/history-query.d.ts.map +1 -0
  1363. package/dist/runtime-v2/store/history/history-query.js +7 -0
  1364. package/dist/runtime-v2/store/history/history-query.js.map +1 -0
  1365. package/dist/runtime-v2/store/history/index.d.ts +5 -0
  1366. package/dist/runtime-v2/store/history/index.d.ts.map +1 -0
  1367. package/dist/runtime-v2/store/history/index.js +4 -0
  1368. package/dist/runtime-v2/store/history/index.js.map +1 -0
  1369. package/dist/runtime-v2/store/history/resilient-history-query.d.ts +20 -0
  1370. package/dist/runtime-v2/store/history/resilient-history-query.d.ts.map +1 -0
  1371. package/dist/runtime-v2/store/history/resilient-history-query.js +40 -0
  1372. package/dist/runtime-v2/store/history/resilient-history-query.js.map +1 -0
  1373. package/dist/runtime-v2/store/history/resilient-history-query.test.d.ts +2 -0
  1374. package/dist/runtime-v2/store/history/resilient-history-query.test.d.ts.map +1 -0
  1375. package/dist/runtime-v2/store/history/resilient-history-query.test.js +128 -0
  1376. package/dist/runtime-v2/store/history/resilient-history-query.test.js.map +1 -0
  1377. package/dist/runtime-v2/store/history/sqlite-history-query.d.ts +24 -0
  1378. package/dist/runtime-v2/store/history/sqlite-history-query.d.ts.map +1 -0
  1379. package/dist/runtime-v2/store/history/sqlite-history-query.js +166 -0
  1380. package/dist/runtime-v2/store/history/sqlite-history-query.js.map +1 -0
  1381. package/dist/runtime-v2/store/history/sqlite-history-query.test.d.ts +2 -0
  1382. package/dist/runtime-v2/store/history/sqlite-history-query.test.d.ts.map +1 -0
  1383. package/dist/runtime-v2/store/history/sqlite-history-query.test.js +536 -0
  1384. package/dist/runtime-v2/store/history/sqlite-history-query.test.js.map +1 -0
  1385. package/dist/runtime-v2/store/idempotent-transitions.test.d.ts +2 -0
  1386. package/dist/runtime-v2/store/idempotent-transitions.test.d.ts.map +1 -0
  1387. package/dist/runtime-v2/store/idempotent-transitions.test.js +168 -0
  1388. package/dist/runtime-v2/store/idempotent-transitions.test.js.map +1 -0
  1389. package/dist/runtime-v2/store/lifecycle/index.d.ts +7 -0
  1390. package/dist/runtime-v2/store/lifecycle/index.d.ts.map +1 -0
  1391. package/dist/runtime-v2/store/lifecycle/index.js +4 -0
  1392. package/dist/runtime-v2/store/lifecycle/index.js.map +1 -0
  1393. package/dist/runtime-v2/store/lifecycle/lease-manager.d.ts +91 -0
  1394. package/dist/runtime-v2/store/lifecycle/lease-manager.d.ts.map +1 -0
  1395. package/dist/runtime-v2/store/lifecycle/lease-manager.js +154 -0
  1396. package/dist/runtime-v2/store/lifecycle/lease-manager.js.map +1 -0
  1397. package/dist/runtime-v2/store/lifecycle/lease-manager.test.d.ts +2 -0
  1398. package/dist/runtime-v2/store/lifecycle/lease-manager.test.d.ts.map +1 -0
  1399. package/dist/runtime-v2/store/lifecycle/lease-manager.test.js +243 -0
  1400. package/dist/runtime-v2/store/lifecycle/lease-manager.test.js.map +1 -0
  1401. package/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts +82 -0
  1402. package/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts.map +1 -0
  1403. package/dist/runtime-v2/store/lifecycle/recovery-sweep.js +145 -0
  1404. package/dist/runtime-v2/store/lifecycle/recovery-sweep.js.map +1 -0
  1405. package/dist/runtime-v2/store/lifecycle/recovery-sweep.test.d.ts +2 -0
  1406. package/dist/runtime-v2/store/lifecycle/recovery-sweep.test.d.ts.map +1 -0
  1407. package/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js +318 -0
  1408. package/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js.map +1 -0
  1409. package/dist/runtime-v2/store/lifecycle/retry-policy.d.ts +105 -0
  1410. package/dist/runtime-v2/store/lifecycle/retry-policy.d.ts.map +1 -0
  1411. package/dist/runtime-v2/store/lifecycle/retry-policy.js +48 -0
  1412. package/dist/runtime-v2/store/lifecycle/retry-policy.js.map +1 -0
  1413. package/dist/runtime-v2/store/lifecycle/retry-policy.test.d.ts +2 -0
  1414. package/dist/runtime-v2/store/lifecycle/retry-policy.test.d.ts.map +1 -0
  1415. package/dist/runtime-v2/store/lifecycle/retry-policy.test.js +86 -0
  1416. package/dist/runtime-v2/store/lifecycle/retry-policy.test.js.map +1 -0
  1417. package/dist/runtime-v2/store/run/index.d.ts +4 -0
  1418. package/dist/runtime-v2/store/run/index.d.ts.map +1 -0
  1419. package/dist/runtime-v2/store/run/index.js +3 -0
  1420. package/dist/runtime-v2/store/run/index.js.map +1 -0
  1421. package/dist/runtime-v2/store/run/memory-run-store.d.ts +15 -0
  1422. package/dist/runtime-v2/store/run/memory-run-store.d.ts.map +1 -0
  1423. package/dist/runtime-v2/store/run/memory-run-store.js +33 -0
  1424. package/dist/runtime-v2/store/run/memory-run-store.js.map +1 -0
  1425. package/dist/runtime-v2/store/run/run-store.d.ts +43 -0
  1426. package/dist/runtime-v2/store/run/run-store.d.ts.map +1 -0
  1427. package/dist/runtime-v2/store/run/run-store.js +2 -0
  1428. package/dist/runtime-v2/store/run/run-store.js.map +1 -0
  1429. package/dist/runtime-v2/store/run/sqlite-run-store.d.ts +14 -0
  1430. package/dist/runtime-v2/store/run/sqlite-run-store.d.ts.map +1 -0
  1431. package/dist/runtime-v2/store/run/sqlite-run-store.js +108 -0
  1432. package/dist/runtime-v2/store/run/sqlite-run-store.js.map +1 -0
  1433. package/dist/runtime-v2/store/runtime-state-manager.d.ts +116 -0
  1434. package/dist/runtime-v2/store/runtime-state-manager.d.ts.map +1 -0
  1435. package/dist/runtime-v2/store/runtime-state-manager.integration.test.d.ts +2 -0
  1436. package/dist/runtime-v2/store/runtime-state-manager.integration.test.d.ts.map +1 -0
  1437. package/dist/runtime-v2/store/runtime-state-manager.integration.test.js +187 -0
  1438. package/dist/runtime-v2/store/runtime-state-manager.integration.test.js.map +1 -0
  1439. package/dist/runtime-v2/store/runtime-state-manager.js +321 -0
  1440. package/dist/runtime-v2/store/runtime-state-manager.js.map +1 -0
  1441. package/dist/runtime-v2/store/schema-conformance.test.d.ts +2 -0
  1442. package/dist/runtime-v2/store/schema-conformance.test.d.ts.map +1 -0
  1443. package/dist/runtime-v2/store/schema-conformance.test.js +607 -0
  1444. package/dist/runtime-v2/store/schema-conformance.test.js.map +1 -0
  1445. package/dist/runtime-v2/store/sqlite-connection-close.test.d.ts +2 -0
  1446. package/dist/runtime-v2/store/sqlite-connection-close.test.d.ts.map +1 -0
  1447. package/dist/runtime-v2/store/sqlite-connection-close.test.js +57 -0
  1448. package/dist/runtime-v2/store/sqlite-connection-close.test.js.map +1 -0
  1449. package/dist/runtime-v2/store/sqlite-connection-pragma.test.d.ts +2 -0
  1450. package/dist/runtime-v2/store/sqlite-connection-pragma.test.d.ts.map +1 -0
  1451. package/dist/runtime-v2/store/sqlite-connection-pragma.test.js +261 -0
  1452. package/dist/runtime-v2/store/sqlite-connection-pragma.test.js.map +1 -0
  1453. package/dist/runtime-v2/store/sqlite-connection.d.ts +39 -0
  1454. package/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -0
  1455. package/dist/runtime-v2/store/sqlite-connection.js +364 -0
  1456. package/dist/runtime-v2/store/sqlite-connection.js.map +1 -0
  1457. package/dist/runtime-v2/store/sqlite-run-store.test.d.ts +2 -0
  1458. package/dist/runtime-v2/store/sqlite-run-store.test.d.ts.map +1 -0
  1459. package/dist/runtime-v2/store/sqlite-run-store.test.js +152 -0
  1460. package/dist/runtime-v2/store/sqlite-run-store.test.js.map +1 -0
  1461. package/dist/runtime-v2/store/sqlite-task-store.test.d.ts +2 -0
  1462. package/dist/runtime-v2/store/sqlite-task-store.test.d.ts.map +1 -0
  1463. package/dist/runtime-v2/store/sqlite-task-store.test.js +166 -0
  1464. package/dist/runtime-v2/store/sqlite-task-store.test.js.map +1 -0
  1465. package/dist/runtime-v2/store/task/index.d.ts +4 -0
  1466. package/dist/runtime-v2/store/task/index.d.ts.map +1 -0
  1467. package/dist/runtime-v2/store/task/index.js +3 -0
  1468. package/dist/runtime-v2/store/task/index.js.map +1 -0
  1469. package/dist/runtime-v2/store/task/memory-task-store.d.ts +15 -0
  1470. package/dist/runtime-v2/store/task/memory-task-store.d.ts.map +1 -0
  1471. package/dist/runtime-v2/store/task/memory-task-store.js +43 -0
  1472. package/dist/runtime-v2/store/task/memory-task-store.js.map +1 -0
  1473. package/dist/runtime-v2/store/task/sqlite-task-store.d.ts +14 -0
  1474. package/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +1 -0
  1475. package/dist/runtime-v2/store/task/sqlite-task-store.js +144 -0
  1476. package/dist/runtime-v2/store/task/sqlite-task-store.js.map +1 -0
  1477. package/dist/runtime-v2/store/task/task-store.d.ts +48 -0
  1478. package/dist/runtime-v2/store/task/task-store.d.ts.map +1 -0
  1479. package/dist/runtime-v2/store/task/task-store.js +2 -0
  1480. package/dist/runtime-v2/store/task/task-store.js.map +1 -0
  1481. package/dist/runtime-v2/store/task-migration.d.ts +89 -0
  1482. package/dist/runtime-v2/store/task-migration.d.ts.map +1 -0
  1483. package/dist/runtime-v2/store/task-migration.js +79 -0
  1484. package/dist/runtime-v2/store/task-migration.js.map +1 -0
  1485. package/dist/runtime-v2/store/trajectory/index.d.ts +5 -0
  1486. package/dist/runtime-v2/store/trajectory/index.d.ts.map +1 -0
  1487. package/dist/runtime-v2/store/trajectory/index.js +3 -0
  1488. package/dist/runtime-v2/store/trajectory/index.js.map +1 -0
  1489. package/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts +40 -0
  1490. package/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts.map +1 -0
  1491. package/dist/runtime-v2/store/trajectory/source-trace-locator.js +18 -0
  1492. package/dist/runtime-v2/store/trajectory/source-trace-locator.js.map +1 -0
  1493. package/dist/runtime-v2/store/trajectory/source-trace-locator.test.d.ts +2 -0
  1494. package/dist/runtime-v2/store/trajectory/source-trace-locator.test.d.ts.map +1 -0
  1495. package/dist/runtime-v2/store/trajectory/source-trace-locator.test.js +320 -0
  1496. package/dist/runtime-v2/store/trajectory/source-trace-locator.test.js.map +1 -0
  1497. package/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts +23 -0
  1498. package/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts.map +1 -0
  1499. package/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js +140 -0
  1500. package/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js.map +1 -0
  1501. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts +27 -0
  1502. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts.map +1 -0
  1503. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js +183 -0
  1504. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js.map +1 -0
  1505. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.d.ts +2 -0
  1506. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.d.ts.map +1 -0
  1507. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js +328 -0
  1508. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js.map +1 -0
  1509. package/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts +30 -0
  1510. package/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts.map +1 -0
  1511. package/dist/runtime-v2/store/trajectory/trajectory-locator.js +2 -0
  1512. package/dist/runtime-v2/store/trajectory/trajectory-locator.js.map +1 -0
  1513. package/dist/runtime-v2/store/workspace-isolation.test.d.ts +2 -0
  1514. package/dist/runtime-v2/store/workspace-isolation.test.d.ts.map +1 -0
  1515. package/dist/runtime-v2/store/workspace-isolation.test.js +139 -0
  1516. package/dist/runtime-v2/store/workspace-isolation.test.js.map +1 -0
  1517. package/dist/runtime-v2/story-a-demo.d.ts +67 -0
  1518. package/dist/runtime-v2/story-a-demo.d.ts.map +1 -0
  1519. package/dist/runtime-v2/story-a-demo.js +188 -0
  1520. package/dist/runtime-v2/story-a-demo.js.map +1 -0
  1521. package/dist/runtime-v2/synthetic-baseline.d.ts +28 -0
  1522. package/dist/runtime-v2/synthetic-baseline.d.ts.map +1 -0
  1523. package/dist/runtime-v2/synthetic-baseline.js +116 -0
  1524. package/dist/runtime-v2/synthetic-baseline.js.map +1 -0
  1525. package/dist/runtime-v2/task-status.d.ts +99 -0
  1526. package/dist/runtime-v2/task-status.d.ts.map +1 -0
  1527. package/dist/runtime-v2/task-status.js +88 -0
  1528. package/dist/runtime-v2/task-status.js.map +1 -0
  1529. package/dist/runtime-v2/trace-refiner-agent.d.ts +71 -0
  1530. package/dist/runtime-v2/trace-refiner-agent.d.ts.map +1 -0
  1531. package/dist/runtime-v2/trace-refiner-agent.js +239 -0
  1532. package/dist/runtime-v2/trace-refiner-agent.js.map +1 -0
  1533. package/dist/runtime-v2/trace-refiner.d.ts +47 -0
  1534. package/dist/runtime-v2/trace-refiner.d.ts.map +1 -0
  1535. package/dist/runtime-v2/trace-refiner.js +261 -0
  1536. package/dist/runtime-v2/trace-refiner.js.map +1 -0
  1537. package/dist/runtime-v2/types/artifact-lineage.d.ts +19 -0
  1538. package/dist/runtime-v2/types/artifact-lineage.d.ts.map +1 -0
  1539. package/dist/runtime-v2/types/artifact-lineage.js +6 -0
  1540. package/dist/runtime-v2/types/artifact-lineage.js.map +1 -0
  1541. package/dist/runtime-v2/types/event-payload.d.ts +232 -0
  1542. package/dist/runtime-v2/types/event-payload.d.ts.map +1 -0
  1543. package/dist/runtime-v2/types/event-payload.js +149 -0
  1544. package/dist/runtime-v2/types/event-payload.js.map +1 -0
  1545. package/dist/runtime-v2/types/event-types.d.ts +843 -0
  1546. package/dist/runtime-v2/types/event-types.d.ts.map +1 -0
  1547. package/dist/runtime-v2/types/event-types.js +486 -0
  1548. package/dist/runtime-v2/types/event-types.js.map +1 -0
  1549. package/dist/runtime-v2/types/hygiene-types.d.ts +40 -0
  1550. package/dist/runtime-v2/types/hygiene-types.d.ts.map +1 -0
  1551. package/dist/runtime-v2/types/hygiene-types.js +30 -0
  1552. package/dist/runtime-v2/types/hygiene-types.js.map +1 -0
  1553. package/dist/runtime-v2/types/index.d.ts +32 -0
  1554. package/dist/runtime-v2/types/index.d.ts.map +1 -0
  1555. package/dist/runtime-v2/types/index.js +17 -0
  1556. package/dist/runtime-v2/types/index.js.map +1 -0
  1557. package/dist/runtime-v2/types/pain-signal.d.ts +63 -0
  1558. package/dist/runtime-v2/types/pain-signal.d.ts.map +1 -0
  1559. package/dist/runtime-v2/types/pain-signal.js +118 -0
  1560. package/dist/runtime-v2/types/pain-signal.js.map +1 -0
  1561. package/dist/runtime-v2/types/pd-task-types.d.ts +139 -0
  1562. package/dist/runtime-v2/types/pd-task-types.d.ts.map +1 -0
  1563. package/dist/runtime-v2/types/pd-task-types.js +99 -0
  1564. package/dist/runtime-v2/types/pd-task-types.js.map +1 -0
  1565. package/dist/runtime-v2/types/principle-dependency.d.ts +15 -0
  1566. package/dist/runtime-v2/types/principle-dependency.d.ts.map +1 -0
  1567. package/dist/runtime-v2/types/principle-dependency.js +8 -0
  1568. package/dist/runtime-v2/types/principle-dependency.js.map +1 -0
  1569. package/dist/runtime-v2/types/principle-enums.d.ts +19 -0
  1570. package/dist/runtime-v2/types/principle-enums.d.ts.map +1 -0
  1571. package/dist/runtime-v2/types/principle-enums.js +59 -0
  1572. package/dist/runtime-v2/types/principle-enums.js.map +1 -0
  1573. package/dist/runtime-v2/types/principle-lifecycle-event.d.ts +28 -0
  1574. package/dist/runtime-v2/types/principle-lifecycle-event.d.ts.map +1 -0
  1575. package/dist/runtime-v2/types/principle-lifecycle-event.js +24 -0
  1576. package/dist/runtime-v2/types/principle-lifecycle-event.js.map +1 -0
  1577. package/dist/runtime-v2/types/principle-schema.d.ts +136 -0
  1578. package/dist/runtime-v2/types/principle-schema.d.ts.map +1 -0
  1579. package/dist/runtime-v2/types/principle-schema.js +71 -0
  1580. package/dist/runtime-v2/types/principle-schema.js.map +1 -0
  1581. package/dist/runtime-v2/types/principle-tree-store.d.ts +89 -0
  1582. package/dist/runtime-v2/types/principle-tree-store.d.ts.map +1 -0
  1583. package/dist/runtime-v2/types/principle-tree-store.js +11 -0
  1584. package/dist/runtime-v2/types/principle-tree-store.js.map +1 -0
  1585. package/dist/runtime-v2/types/principle-value-metrics.d.ts +27 -0
  1586. package/dist/runtime-v2/types/principle-value-metrics.d.ts.map +1 -0
  1587. package/dist/runtime-v2/types/principle-value-metrics.js +14 -0
  1588. package/dist/runtime-v2/types/principle-value-metrics.js.map +1 -0
  1589. package/dist/runtime-v2/types/queue-types.d.ts +51 -0
  1590. package/dist/runtime-v2/types/queue-types.d.ts.map +1 -0
  1591. package/dist/runtime-v2/types/queue-types.js +44 -0
  1592. package/dist/runtime-v2/types/queue-types.js.map +1 -0
  1593. package/dist/runtime-v2/types/replay-types.d.ts +40 -0
  1594. package/dist/runtime-v2/types/replay-types.d.ts.map +1 -0
  1595. package/dist/runtime-v2/types/replay-types.js +2 -0
  1596. package/dist/runtime-v2/types/replay-types.js.map +1 -0
  1597. package/dist/runtime-v2/types/runtime-summary-types.d.ts +93 -0
  1598. package/dist/runtime-v2/types/runtime-summary-types.d.ts.map +1 -0
  1599. package/dist/runtime-v2/types/runtime-summary-types.js +35 -0
  1600. package/dist/runtime-v2/types/runtime-summary-types.js.map +1 -0
  1601. package/dist/runtime-v2/utils/cli-process-runner.d.ts +35 -0
  1602. package/dist/runtime-v2/utils/cli-process-runner.d.ts.map +1 -0
  1603. package/dist/runtime-v2/utils/cli-process-runner.js +259 -0
  1604. package/dist/runtime-v2/utils/cli-process-runner.js.map +1 -0
  1605. package/dist/runtime-v2/utils/cli-process-runner.test.d.ts +2 -0
  1606. package/dist/runtime-v2/utils/cli-process-runner.test.d.ts.map +1 -0
  1607. package/dist/runtime-v2/utils/cli-process-runner.test.js +111 -0
  1608. package/dist/runtime-v2/utils/cli-process-runner.test.js.map +1 -0
  1609. package/dist/storage-adapter.d.ts +59 -0
  1610. package/dist/storage-adapter.d.ts.map +1 -0
  1611. package/dist/storage-adapter.js +2 -0
  1612. package/dist/storage-adapter.js.map +1 -0
  1613. package/dist/telemetry-event.d.ts +102 -0
  1614. package/dist/telemetry-event.d.ts.map +1 -0
  1615. package/dist/telemetry-event.js +186 -0
  1616. package/dist/telemetry-event.js.map +1 -0
  1617. package/dist/trajectory-store.d.ts +45 -0
  1618. package/dist/trajectory-store.d.ts.map +1 -0
  1619. package/dist/trajectory-store.js +139 -0
  1620. package/dist/trajectory-store.js.map +1 -0
  1621. package/dist/types/workspace-resolver.d.ts +25 -0
  1622. package/dist/types/workspace-resolver.d.ts.map +1 -0
  1623. package/dist/types/workspace-resolver.js +10 -0
  1624. package/dist/types/workspace-resolver.js.map +1 -0
  1625. package/dist/types.d.ts +56 -0
  1626. package/dist/types.d.ts.map +1 -0
  1627. package/dist/types.js +16 -0
  1628. package/dist/types.js.map +1 -0
  1629. package/dist/workflow-funnel-loader.d.ts +143 -0
  1630. package/dist/workflow-funnel-loader.d.ts.map +1 -0
  1631. package/dist/workflow-funnel-loader.js +174 -0
  1632. package/dist/workflow-funnel-loader.js.map +1 -0
  1633. package/package.json +100 -0
@@ -0,0 +1,705 @@
1
+ /**
2
+ * OpenClawCliRuntimeAdapter — PDRuntimeAdapter implementation for openclaw-cli.
3
+ *
4
+ * One-shot run: startRun() spawns 'openclaw agent', blocks until CLI exits,
5
+ * stores CliOutput in memory. pollRun()/fetchOutput() operate on stored state.
6
+ *
7
+ * Error mapping (D-04):
8
+ * ENOENT (binary not found) → runtime_unavailable
9
+ * timedOut → timeout
10
+ * non-zero exit code → execution_failed
11
+ * JSON parse failure → output_invalid
12
+ * DiagnosticianOutputV1Schema validation failure → output_invalid
13
+ */
14
+ import { Value } from '@sinclair/typebox/value';
15
+ import { mkdir, rm, writeFile } from 'node:fs/promises';
16
+ import { tmpdir } from 'node:os';
17
+ import { join } from 'node:path';
18
+ import { runCliProcess } from '../utils/cli-process-runner.js';
19
+ import { PDRuntimeError } from '../error-categories.js';
20
+ import { DiagnosticianOutputV1Schema } from '../diagnostician-output.js';
21
+ import { storeEmitter } from '../store/event-emitter.js';
22
+ async function writeMessageFile(message, workspaceDir) {
23
+ // Write to workspace/.pd/tmp/ so the agent (which runs with workspace cwd) can find it.
24
+ // The agent interprets @path as relative to its working directory, not an absolute path.
25
+ const baseDir = workspaceDir
26
+ ? join(workspaceDir, '.pd', 'tmp')
27
+ : tmpdir();
28
+ await mkdir(baseDir, { recursive: true });
29
+ const filePath = join(baseDir, `msg-${Date.now()}-${Math.random().toString(36).slice(2, 7)}.json`);
30
+ await writeFile(filePath, message, 'utf8');
31
+ // OpenClaw supports --message @file. Forward slashes avoid cmd.exe treating
32
+ // backslashes inside the @file token as escaping/quoting boundaries.
33
+ return { arg: `@${filePath.replace(/\\/g, '/')}`, dir: baseDir };
34
+ }
35
+ async function cleanupMessageFile(ref) {
36
+ if (!ref)
37
+ return;
38
+ // Extract the file path from the @arg (e.g. "@D:/workspace/.pd/tmp/msg-123.json" → file path)
39
+ const filePath = ref.arg.replace(/^@/, '');
40
+ try {
41
+ await rm(filePath, { force: true });
42
+ }
43
+ catch {
44
+ // File may already be gone; ignore cleanup errors
45
+ }
46
+ }
47
+ /**
48
+ * Parse CliOutput stdout into the runtime's native result structure.
49
+ *
50
+ * OCRA-03 (revised): OpenClaw `--json` produces a CliOutput object (from openclaw's own
51
+ * output.ts), NOT DiagnosticianOutputV1 directly. The LLM's diagnosis JSON lives inside
52
+ * CliOutput.text as a string that may be:
53
+ *
54
+ * 1. Bare DiagnosticianOutputV1 JSON — { "valid": true, ... }
55
+ * 2. Local envelope — { payloads: [{ text: "<json>" }], meta: ... }
56
+ * 3. Gateway envelope — { result: { payloads: [{ text: "<json>" }] }, ... }
57
+ *
58
+ * This function normalises all three into a raw JSON value (string or object) that
59
+ * DiagnosticianOutputV1Schema can validate.
60
+ *
61
+ * @returns The parsed JSON value, or null if stdout could not be parsed at all.
62
+ */
63
+ function extractPayloadFromCliOutput(stdout, stderr) {
64
+ for (const source of [stdout, stderr ?? '']) {
65
+ if (!source)
66
+ continue;
67
+ // Attempt 1: direct parse — covers case 1 (bare JSON)
68
+ try {
69
+ return JSON.parse(source);
70
+ }
71
+ catch { /* fall through */ }
72
+ // Attempt 2: balanced-bracket extraction — handles text that surrounds JSON.
73
+ // When multiple JSON objects are present (e.g. probe message + agent response in
74
+ // stderr), return the LAST complete object — the agent's response comes after the
75
+ // probe message that was injected into the session.
76
+ const objects = [];
77
+ let depth = 0;
78
+ let start = -1;
79
+ for (let i = 0; i < source.length; i++) {
80
+ const ch = source[i];
81
+ if (!ch)
82
+ continue;
83
+ if (ch === '{') {
84
+ if (start === -1)
85
+ start = i;
86
+ depth++;
87
+ }
88
+ else if (ch === '}') {
89
+ depth--;
90
+ if (depth === 0 && start !== -1) {
91
+ try {
92
+ objects.push(JSON.parse(source.slice(start, i + 1)));
93
+ }
94
+ catch { /* keep scanning */ }
95
+ start = -1;
96
+ }
97
+ }
98
+ }
99
+ if (objects.length > 0)
100
+ return objects[objects.length - 1];
101
+ }
102
+ return null;
103
+ }
104
+ /**
105
+ * Search for a single JSON object literal inside `text` using a balanced-bracket
106
+ * scan. Returns the parsed object, or null if no valid object is found.
107
+ */
108
+ function extractJsonObject(text) {
109
+ let depth = 0;
110
+ let start = -1;
111
+ for (let i = 0; i < text.length; i++) {
112
+ const ch = text[i];
113
+ if (ch === '{') {
114
+ if (start === -1)
115
+ start = i;
116
+ depth++;
117
+ }
118
+ else if (ch === '}') {
119
+ depth--;
120
+ if (depth === 0 && start !== -1) {
121
+ try {
122
+ return JSON.parse(text.slice(start, i + 1));
123
+ }
124
+ catch { /* keep scanning */ }
125
+ start = -1;
126
+ }
127
+ }
128
+ }
129
+ return null;
130
+ }
131
+ /**
132
+ * Navigate the three possible envelope shapes to find the payload text that
133
+ * contains the DiagnosticianOutputV1 JSON string.
134
+ *
135
+ * Returns the parsed JSON object (not a string) if extraction succeeds,
136
+ * or null if the envelope structure doesn't match any known shape.
137
+ */
138
+ function extractDiagnosisFromEnvelope(parsed) {
139
+ if (typeof parsed !== 'object' || parsed === null) {
140
+ return null;
141
+ }
142
+ // Case 2: local envelope — { payloads: [{ text: "<json>" }] }
143
+ const asLocal = parsed;
144
+ if (Array.isArray(asLocal.payloads) && asLocal.payloads.length > 0) {
145
+ const [first] = asLocal.payloads;
146
+ if (first && typeof first.text === 'string') {
147
+ const inner = first.text.trim();
148
+ try {
149
+ return JSON.parse(inner);
150
+ }
151
+ catch { /* fall through — try prose extraction */ }
152
+ const extracted = extractJsonObject(inner);
153
+ if (extracted !== null)
154
+ return extracted;
155
+ }
156
+ }
157
+ // Case 3: gateway envelope — { result: { payloads: [{ text: "<json>" }] } }
158
+ const asGateway = parsed;
159
+ if (asGateway.result &&
160
+ typeof asGateway.result === 'object' &&
161
+ Array.isArray(asGateway.result.payloads) &&
162
+ asGateway.result.payloads.length > 0) {
163
+ const [first] = asGateway.result.payloads;
164
+ if (first && typeof first.text === 'string') {
165
+ const inner = first.text.trim();
166
+ try {
167
+ return JSON.parse(inner);
168
+ }
169
+ catch { /* fall through */ }
170
+ const extracted = extractJsonObject(inner);
171
+ if (extracted !== null)
172
+ return extracted;
173
+ }
174
+ }
175
+ // No matching envelope shape
176
+ return null;
177
+ }
178
+ /**
179
+ * Extract the inner result object from an OpenClaw agent response envelope.
180
+ *
181
+ * OpenClaw `--json --local` wraps the agent's response text inside an envelope:
182
+ * Case A — local envelope: { payloads: [{ text: "<json or prose>" }] }
183
+ * Case B — gateway envelope: { result: { payloads: [{ text: "<json or prose>" }] } }
184
+ * Case C — bare object: { ok: true } (no envelope, direct response)
185
+ *
186
+ * The inner text may be bare JSON (`{"ok":true}`) or wrapped in a small amount
187
+ * of prose that surrounds the JSON. We balance-bracket extract to find the JSON
188
+ * object within the text, then return the parsed result.
189
+ *
190
+ * Returns the parsed inner object on success, or null if extraction fails.
191
+ */
192
+ function extractProbeResult(parsed) {
193
+ // Case A: local envelope — { payloads: [{ text: "..." }] }
194
+ const asLocal = parsed;
195
+ if (Array.isArray(asLocal.payloads) && asLocal.payloads.length > 0) {
196
+ const [first] = asLocal.payloads;
197
+ if (first && typeof first.text === 'string') {
198
+ const inner = first.text.trim();
199
+ try {
200
+ return JSON.parse(inner);
201
+ }
202
+ catch { /* fall through — try prose extraction */ }
203
+ const extracted = extractJsonObject(inner);
204
+ if (extracted !== null)
205
+ return extracted;
206
+ }
207
+ }
208
+ // Case B: gateway envelope — { result: { payloads: [{ text: "..." }] } }
209
+ const asGateway = parsed;
210
+ if (asGateway.result &&
211
+ typeof asGateway.result === 'object' &&
212
+ Array.isArray(asGateway.result.payloads) &&
213
+ asGateway.result.payloads.length > 0) {
214
+ const [first] = asGateway.result.payloads;
215
+ if (first && typeof first.text === 'string') {
216
+ const inner = first.text.trim();
217
+ try {
218
+ return JSON.parse(inner);
219
+ }
220
+ catch { /* fall through */ }
221
+ const extracted = extractJsonObject(inner);
222
+ if (extracted !== null)
223
+ return extracted;
224
+ }
225
+ }
226
+ // Case C: bare object — already the result
227
+ if (typeof parsed === 'object' && parsed !== null) {
228
+ return parsed;
229
+ }
230
+ return null;
231
+ }
232
+ export class OpenClawCliRuntimeAdapter {
233
+ runStateMap = new Map();
234
+ runtimeMode;
235
+ workspaceDir;
236
+ agentId;
237
+ eventEmitter;
238
+ constructor(options) {
239
+ this.runtimeMode = options.runtimeMode;
240
+ this.workspaceDir = options.workspaceDir;
241
+ this.agentId = options.agentId ?? 'main';
242
+ this.eventEmitter = options.eventEmitter ?? storeEmitter;
243
+ }
244
+ // OCRA-01: kind() returns RuntimeKind literal 'openclaw-cli'
245
+ // eslint-disable-next-line @typescript-eslint/class-methods-use-this
246
+ kind() {
247
+ return 'openclaw-cli';
248
+ }
249
+ // eslint-disable-next-line @typescript-eslint/class-methods-use-this
250
+ async getCapabilities() {
251
+ return {
252
+ supportsStructuredJsonOutput: true,
253
+ supportsToolUse: false,
254
+ supportsWorkingDirectory: false,
255
+ supportsModelSelection: false,
256
+ supportsLongRunningSessions: false,
257
+ supportsCancellation: true,
258
+ supportsArtifactWriteBack: false,
259
+ supportsConcurrentRuns: false,
260
+ supportsStreaming: false,
261
+ };
262
+ }
263
+ /**
264
+ * Probe runtime health by running a minimal openclaw command.
265
+ *
266
+ * Verifies:
267
+ * 1. openclaw binary is executable (run `openclaw --version`)
268
+ * 2. The configured agent is available (run `openclaw agents list --json`)
269
+ * 3. The agent can actually respond (one-shot minimal probe with --agent)
270
+ *
271
+ * Returns healthy=false with appropriate error category when checks fail.
272
+ * Per DPB-09: No silent fallback — failures are reported accurately.
273
+ * Per P1 hard gate: Binary-only check is insufficient; must verify real invocation.
274
+ */
275
+ async healthCheck() {
276
+ const warnings = [];
277
+ let healthy = true;
278
+ let degraded = false;
279
+ // Probe 1: verify openclaw binary is executable
280
+ try {
281
+ const versionResult = await runCliProcess({
282
+ command: 'openclaw',
283
+ args: ['--version'],
284
+ cwd: this.workspaceDir,
285
+ timeoutMs: 10_000,
286
+ });
287
+ if (versionResult.spawnError === 'ENOENT') {
288
+ return {
289
+ healthy: false,
290
+ degraded: false,
291
+ warnings: ['openclaw binary not found'],
292
+ lastCheckedAt: new Date().toISOString(),
293
+ };
294
+ }
295
+ if (versionResult.spawnError === 'EACCES' || versionResult.spawnError === 'EMFILE') {
296
+ return {
297
+ healthy: false,
298
+ degraded: false,
299
+ warnings: [`openclaw binary not executable: ${versionResult.spawnError}`],
300
+ lastCheckedAt: new Date().toISOString(),
301
+ };
302
+ }
303
+ if (versionResult.timedOut) {
304
+ return {
305
+ healthy: false,
306
+ degraded: false,
307
+ warnings: ['openclaw --version timed out'],
308
+ lastCheckedAt: new Date().toISOString(),
309
+ };
310
+ }
311
+ if (versionResult.exitCode !== null && versionResult.exitCode !== 0) {
312
+ degraded = true;
313
+ warnings.push(`openclaw --version exited with code ${versionResult.exitCode}`);
314
+ }
315
+ }
316
+ catch (err) {
317
+ return {
318
+ healthy: false,
319
+ degraded: false,
320
+ warnings: [err instanceof Error ? err.message : String(err)],
321
+ lastCheckedAt: new Date().toISOString(),
322
+ };
323
+ }
324
+ // Probe 2: verify the configured agent is available via agents list
325
+ // P1 fix: Must verify agent exists, not just the binary
326
+ // Using `openclaw agents list --json` to check if agentId is registered
327
+ try {
328
+ const listArgs = ['agents', 'list', '--json'];
329
+ if (this.runtimeMode === 'local') {
330
+ listArgs.push('--local');
331
+ }
332
+ const listResult = await runCliProcess({
333
+ command: 'openclaw',
334
+ args: listArgs,
335
+ cwd: this.workspaceDir,
336
+ timeoutMs: 15_000,
337
+ });
338
+ if (listResult.spawnError === 'ENOENT') {
339
+ return {
340
+ healthy: false,
341
+ degraded: false,
342
+ warnings: ['openclaw binary not found'],
343
+ lastCheckedAt: new Date().toISOString(),
344
+ };
345
+ }
346
+ if (listResult.spawnError === 'EACCES' || listResult.spawnError === 'EMFILE') {
347
+ return {
348
+ healthy: false,
349
+ degraded: false,
350
+ warnings: [`openclaw binary not executable: ${listResult.spawnError}`],
351
+ lastCheckedAt: new Date().toISOString(),
352
+ };
353
+ }
354
+ if (listResult.timedOut) {
355
+ degraded = true;
356
+ warnings.push(`openclaw agents list timed out`);
357
+ }
358
+ else if (listResult.exitCode !== null && listResult.exitCode !== 0) {
359
+ // agents list failed — degraded state
360
+ degraded = true;
361
+ warnings.push(`openclaw agents list exited with code ${listResult.exitCode}`);
362
+ }
363
+ else {
364
+ // Parse agent list and check if target agent exists
365
+ // The output may contain config warnings/ANSI codes before the JSON array
366
+ try {
367
+ const jsonStart = listResult.stdout.indexOf('[');
368
+ if (jsonStart === -1)
369
+ throw new Error('No JSON array found');
370
+ const jsonStr = listResult.stdout.slice(jsonStart);
371
+ const parsed = JSON.parse(jsonStr);
372
+ // agents list returns an array of agent objects (each with an `id` field)
373
+ const agentIds = parsed.map((a) => typeof a === 'string' ? a : a.id);
374
+ if (!agentIds.includes(this.agentId)) {
375
+ healthy = false;
376
+ warnings.push(`agent '${this.agentId}' not found in agents list`);
377
+ }
378
+ }
379
+ catch {
380
+ // JSON parse failed — cannot verify agent, treat as degraded
381
+ degraded = true;
382
+ warnings.push(`failed to parse agents list output`);
383
+ }
384
+ }
385
+ }
386
+ catch (err) {
387
+ // Any error in the agent probe is a hard failure
388
+ return {
389
+ healthy: false,
390
+ degraded: false,
391
+ warnings: [err instanceof Error ? err.message : String(err)],
392
+ lastCheckedAt: new Date().toISOString(),
393
+ };
394
+ }
395
+ // Probe 3: One-shot minimal agent invocation (P1 hard gate)
396
+ // Verifies the agent can actually respond, not just that it exists in the list.
397
+ // This catches plugin loading failures, permission issues, etc.
398
+ let probeMessageRef = undefined;
399
+ try {
400
+ // Unique session ID for probe to avoid lock conflicts with concurrent runs
401
+ const probeSessionId = `pd-runtime-probe-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
402
+ probeMessageRef = await writeMessageFile(JSON.stringify({ probe: 'pd-runtime-v2', instruction: 'reply with {"ok":true} only' }), this.workspaceDir);
403
+ const probeArgs = [
404
+ 'agent',
405
+ '--agent', this.agentId,
406
+ '--message', probeMessageRef.arg,
407
+ '--session-id', probeSessionId,
408
+ '--timeout', '240',
409
+ '--json',
410
+ ];
411
+ if (this.runtimeMode === 'local') {
412
+ probeArgs.push('--local');
413
+ }
414
+ const probeResult = await runCliProcess({
415
+ command: 'openclaw',
416
+ args: probeArgs,
417
+ cwd: this.workspaceDir,
418
+ timeoutMs: 240_000, // 240s — agent init + bootstrap + skill loading can take >60s on cold start
419
+ });
420
+ if (probeResult.spawnError === 'ENOENT') {
421
+ return {
422
+ healthy: false,
423
+ degraded: false,
424
+ warnings: ['openclaw binary not found'],
425
+ lastCheckedAt: new Date().toISOString(),
426
+ };
427
+ }
428
+ if (probeResult.spawnError === 'EACCES' || probeResult.spawnError === 'EMFILE') {
429
+ return {
430
+ healthy: false,
431
+ degraded: false,
432
+ warnings: [`openclaw binary not executable: ${probeResult.spawnError}`],
433
+ lastCheckedAt: new Date().toISOString(),
434
+ };
435
+ }
436
+ if (probeResult.timedOut) {
437
+ return {
438
+ healthy: false,
439
+ degraded: false,
440
+ warnings: ['openclaw agent probe timed out'],
441
+ lastCheckedAt: new Date().toISOString(),
442
+ };
443
+ }
444
+ if (probeResult.exitCode !== null && probeResult.exitCode !== 0) {
445
+ return {
446
+ healthy: false,
447
+ degraded: false,
448
+ warnings: [
449
+ `openclaw agent '${this.agentId}' probe failed with exit code ${probeResult.exitCode}`,
450
+ ...(probeResult.stderr ? [`stderr: ${probeResult.stderr.substring(0, 2000)}`] : []),
451
+ ],
452
+ lastCheckedAt: new Date().toISOString(),
453
+ };
454
+ }
455
+ // exit code 0 — verify the output is parseable JSON
456
+ const rawParsed = extractPayloadFromCliOutput(probeResult.stdout, probeResult.stderr);
457
+ if (rawParsed === null) {
458
+ return {
459
+ healthy: false,
460
+ degraded: false,
461
+ warnings: ['openclaw agent probe produced unparseable output'],
462
+ lastCheckedAt: new Date().toISOString(),
463
+ };
464
+ }
465
+ // Extract the inner result from the OpenClaw envelope and verify {ok: true}
466
+ const result = extractProbeResult(rawParsed);
467
+ if (typeof result !== 'object' ||
468
+ result === null ||
469
+ !('ok' in result) ||
470
+ result.ok !== true) {
471
+ const excerpt = rawParsed && typeof rawParsed === 'object'
472
+ ? JSON.stringify(rawParsed).substring(0, 2000)
473
+ : String(rawParsed).substring(0, 2000);
474
+ return {
475
+ healthy: false,
476
+ degraded: false,
477
+ warnings: [
478
+ `openclaw agent '${this.agentId}' probe returned unexpected result: ${excerpt}`,
479
+ ],
480
+ lastCheckedAt: new Date().toISOString(),
481
+ };
482
+ }
483
+ }
484
+ catch (err) {
485
+ return {
486
+ healthy: false,
487
+ degraded: false,
488
+ warnings: [err instanceof Error ? err.message : String(err)],
489
+ lastCheckedAt: new Date().toISOString(),
490
+ };
491
+ }
492
+ finally {
493
+ await cleanupMessageFile(probeMessageRef);
494
+ }
495
+ return {
496
+ healthy,
497
+ degraded,
498
+ warnings,
499
+ lastCheckedAt: new Date().toISOString(),
500
+ };
501
+ }
502
+ /**
503
+ * Map CLI output to telemetry event type and error category.
504
+ */
505
+ static mapCliResultToTelemetry(cliOutput) {
506
+ // spawnError is set by runCliProcess on ENOENT/EACCES/EMFILE — use it
507
+ if (cliOutput.spawnError === 'ENOENT') {
508
+ return { telemetryEventType: 'runtime_invocation_failed', errorCategory: 'runtime_unavailable', stderrExcerpt: cliOutput.stderr };
509
+ }
510
+ if (cliOutput.spawnError === 'EACCES' || cliOutput.spawnError === 'EMFILE') {
511
+ return { telemetryEventType: 'runtime_invocation_failed', errorCategory: 'execution_failed', stderrExcerpt: cliOutput.stderr };
512
+ }
513
+ if (cliOutput.timedOut) {
514
+ return { telemetryEventType: 'runtime_invocation_failed', errorCategory: 'timeout', stderrExcerpt: cliOutput.stderr };
515
+ }
516
+ if (cliOutput.exitCode !== null && cliOutput.exitCode !== 0) {
517
+ return { telemetryEventType: 'runtime_invocation_failed', errorCategory: 'execution_failed', stderrExcerpt: cliOutput.stderr };
518
+ }
519
+ return { telemetryEventType: 'runtime_invocation_succeeded', errorCategory: undefined, stderrExcerpt: undefined };
520
+ }
521
+ // OCRA-02: startRun synchronously invokes openclaw agent with correct CLI args
522
+ async startRun(input) {
523
+ const runId = crypto.randomUUID();
524
+ const startedAt = new Date().toISOString();
525
+ // Initialize state — cliOutput null until CLI completes
526
+ const state = { runId, startedAt, cliOutput: null, completed: false };
527
+ this.runStateMap.set(runId, state);
528
+ // Build CLI args per D-02
529
+ const jsonPayload = typeof input.inputPayload === 'string'
530
+ ? input.inputPayload
531
+ : JSON.stringify(input.inputPayload);
532
+ const timeoutSeconds = Math.ceil((input.timeoutMs ?? 600000) / 1000);
533
+ const agentId = input.agentSpec?.agentId ?? 'main';
534
+ const messageRef = await writeMessageFile(jsonPayload, this.workspaceDir);
535
+ // DPB-09 (LOCKED): --local only passed when runtimeMode === 'local'
536
+ // HG-03 (HARD GATE): No silent fallback — must be explicit
537
+ // Unique session ID per run — avoids session lock conflicts and context pollution
538
+ // between concurrent or sequential PD diagnostician runs on the same agent.
539
+ const sessionId = `pd-runtime-${runId}`;
540
+ const args = [
541
+ 'agent',
542
+ '--agent', agentId,
543
+ '--message', messageRef.arg,
544
+ '--session-id', sessionId,
545
+ '--json',
546
+ ];
547
+ if (this.runtimeMode === 'local') {
548
+ args.push('--local');
549
+ }
550
+ args.push('--timeout', String(timeoutSeconds));
551
+ // DPB-08 (LOCKED): Pass workspaceDir as cwd for workspace boundary control
552
+ // HG-02 (HARD GATE): Two distinct boundaries — cwd controls PD workspace
553
+ // TELE-02: runtime_invocation_started — CLI process about to spawn
554
+ this.eventEmitter.emitTelemetry({
555
+ eventType: 'runtime_invocation_started',
556
+ traceId: input.taskRef?.taskId ?? runId,
557
+ timestamp: new Date().toISOString(),
558
+ sessionId: 'openclaw-cli-adapter',
559
+ agentId: 'openclaw-cli-adapter',
560
+ payload: {
561
+ runId,
562
+ runtimeKind: 'openclaw-cli',
563
+ runtimeMode: this.runtimeMode,
564
+ timeoutMs: input.timeoutMs,
565
+ },
566
+ });
567
+ const cliOutput = await (async () => {
568
+ try {
569
+ return await runCliProcess({
570
+ command: 'openclaw',
571
+ args,
572
+ cwd: this.workspaceDir,
573
+ timeoutMs: input.timeoutMs,
574
+ });
575
+ }
576
+ finally {
577
+ await cleanupMessageFile(messageRef);
578
+ }
579
+ })();
580
+ // Store result in memory
581
+ state.cliOutput = cliOutput;
582
+ state.completed = true;
583
+ // TELE-03: runtime_invocation_succeeded/failed — CLI process completed
584
+ const endedAt = new Date().toISOString();
585
+ const { telemetryEventType, errorCategory, stderrExcerpt } = OpenClawCliRuntimeAdapter.mapCliResultToTelemetry(cliOutput);
586
+ this.eventEmitter.emitTelemetry({
587
+ eventType: telemetryEventType,
588
+ traceId: input.taskRef?.taskId ?? runId,
589
+ timestamp: endedAt,
590
+ sessionId: 'openclaw-cli-adapter',
591
+ agentId: 'openclaw-cli-adapter',
592
+ payload: {
593
+ runId,
594
+ runtimeKind: 'openclaw-cli',
595
+ runtimeMode: this.runtimeMode,
596
+ exitCode: cliOutput.exitCode,
597
+ timedOut: cliOutput.timedOut,
598
+ ...(errorCategory ? { errorCategory } : {}),
599
+ ...(stderrExcerpt ? { stderrExcerpt } : {}),
600
+ },
601
+ });
602
+ return { runId, runtimeKind: 'openclaw-cli', startedAt };
603
+ }
604
+ async pollRun(runId) {
605
+ const state = this.runStateMap.get(runId);
606
+ if (!state) {
607
+ throw new PDRuntimeError('output_invalid', `Run ${runId} not found`);
608
+ }
609
+ if (!state.completed || !state.cliOutput) {
610
+ return { runId, status: 'running', startedAt: state.startedAt };
611
+ }
612
+ const { cliOutput } = state;
613
+ if (cliOutput.timedOut) {
614
+ return {
615
+ runId,
616
+ status: 'timed_out',
617
+ startedAt: state.startedAt,
618
+ endedAt: new Date().toISOString(),
619
+ reason: 'CLI timeout exceeded',
620
+ };
621
+ }
622
+ if (cliOutput.exitCode !== null && cliOutput.exitCode !== 0) {
623
+ const stderrExcerpt = cliOutput.stderr
624
+ ? cliOutput.stderr.substring(0, 2000)
625
+ : undefined;
626
+ return {
627
+ runId,
628
+ status: 'failed',
629
+ startedAt: state.startedAt,
630
+ endedAt: new Date().toISOString(),
631
+ reason: stderrExcerpt
632
+ ? `CLI exited with code ${cliOutput.exitCode}. stderr: ${stderrExcerpt}`
633
+ : `CLI exited with code ${cliOutput.exitCode}`,
634
+ };
635
+ }
636
+ return {
637
+ runId,
638
+ status: 'succeeded',
639
+ startedAt: state.startedAt,
640
+ endedAt: new Date().toISOString(),
641
+ };
642
+ }
643
+ // OCRA-03: fetchOutput parses CliOutput.stdout and returns DiagnosticianOutputV1
644
+ async fetchOutput(runId) {
645
+ const state = this.runStateMap.get(runId);
646
+ if (!state || !state.completed || !state.cliOutput) {
647
+ throw new PDRuntimeError('output_invalid', `Run ${runId} not completed`);
648
+ }
649
+ const { cliOutput } = state;
650
+ // OCRA-04: Map ENOENT (binary not found) to runtime_unavailable
651
+ // spawnError is set explicitly by runCliProcess when spawn fails
652
+ if (cliOutput.spawnError === 'ENOENT') {
653
+ throw new PDRuntimeError('runtime_unavailable', 'openclaw binary not found');
654
+ }
655
+ // OCRA-04: Map timeout to timeout
656
+ if (cliOutput.timedOut) {
657
+ throw new PDRuntimeError('timeout', 'CLI timeout exceeded');
658
+ }
659
+ // OCRA-04: Map non-zero exit to execution_failed
660
+ if (cliOutput.exitCode !== null && cliOutput.exitCode !== 0) {
661
+ const stderrExcerpt = cliOutput.stderr
662
+ ? cliOutput.stderr.substring(0, 2000)
663
+ : undefined;
664
+ throw new PDRuntimeError('execution_failed', stderrExcerpt
665
+ ? `CLI exited with code ${cliOutput.exitCode}. stderr: ${stderrExcerpt}`
666
+ : `CLI exited with code ${cliOutput.exitCode}`);
667
+ }
668
+ // OCRA-03: Parse CliOutput — the stdout may be raw JSON, or wrapped in an OpenClaw envelope
669
+ // (local or gateway). First extract the JSON value, then navigate to the diagnosis JSON.
670
+ // eslint-disable-next-line @typescript-eslint/init-declarations
671
+ let parsed;
672
+ const rawParsed = extractPayloadFromCliOutput(cliOutput.stdout, cliOutput.stderr);
673
+ if (rawParsed !== null) {
674
+ // Try envelope extraction first (cases 2 and 3)
675
+ const fromEnvelope = extractDiagnosisFromEnvelope(rawParsed);
676
+ parsed = fromEnvelope ?? rawParsed;
677
+ }
678
+ else {
679
+ parsed = null;
680
+ }
681
+ if (parsed === null) {
682
+ // OCRA-04: JSON parse failure → output_invalid
683
+ throw new PDRuntimeError('output_invalid', 'Failed to parse CLI output as JSON');
684
+ }
685
+ // OCRA-03: Validate DiagnosticianOutputV1Schema
686
+ // OCRA-04: Schema mismatch → output_invalid
687
+ if (!Value.Check(DiagnosticianOutputV1Schema, parsed)) {
688
+ throw new PDRuntimeError('output_invalid', 'CLI output does not match DiagnosticianOutputV1 schema');
689
+ }
690
+ return { runId, payload: parsed };
691
+ }
692
+ async cancelRun(runId) {
693
+ // For one-shot run: if still in-flight, mark as cancelled
694
+ const state = this.runStateMap.get(runId);
695
+ if (state && !state.completed) {
696
+ state.completed = true;
697
+ }
698
+ }
699
+ // eslint-disable-next-line @typescript-eslint/class-methods-use-this
700
+ async fetchArtifacts(_runId) {
701
+ // No artifact refs produced by openclaw-cli adapter directly
702
+ return [];
703
+ }
704
+ }
705
+ //# sourceMappingURL=openclaw-cli-runtime-adapter.js.map