create-principles-disciple 1.0.0 → 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 (2793) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +85 -7
  3. package/console/dist/lib/utils.d.ts +2 -0
  4. package/console/dist/lib/utils.js +5 -0
  5. package/console/dist/server/config/AuthConfig.d.ts +14 -0
  6. package/console/dist/server/config/AuthConfig.js +36 -0
  7. package/console/dist/server/config/WorkspaceConfigStore.d.ts +15 -0
  8. package/console/dist/server/config/WorkspaceConfigStore.js +100 -0
  9. package/console/dist/server/index.d.ts +1 -0
  10. package/console/dist/server/index.js +722 -0
  11. package/console/dist/server/models/ApprovalsConsoleModel.d.ts +48 -0
  12. package/console/dist/server/models/ApprovalsConsoleModel.js +208 -0
  13. package/console/dist/server/models/EventLogReadModel.d.ts +33 -0
  14. package/console/dist/server/models/EventLogReadModel.js +218 -0
  15. package/console/dist/server/models/EvolutionConsoleModel.d.ts +79 -0
  16. package/console/dist/server/models/EvolutionConsoleModel.js +179 -0
  17. package/console/dist/server/models/FeedbackConsoleModel.d.ts +38 -0
  18. package/console/dist/server/models/FeedbackConsoleModel.js +129 -0
  19. package/console/dist/server/models/GateConsoleModel.d.ts +50 -0
  20. package/console/dist/server/models/GateConsoleModel.js +151 -0
  21. package/console/dist/server/models/HealthCheckModel.d.ts +43 -0
  22. package/console/dist/server/models/HealthCheckModel.js +341 -0
  23. package/console/dist/server/models/OverviewConsoleModel.d.ts +22 -0
  24. package/console/dist/server/models/OverviewConsoleModel.js +202 -0
  25. package/console/dist/server/models/PipelineStatsModel.d.ts +35 -0
  26. package/console/dist/server/models/PipelineStatsModel.js +129 -0
  27. package/console/dist/server/models/PrinciplesConsoleModel.d.ts +69 -0
  28. package/console/dist/server/models/PrinciplesConsoleModel.js +200 -0
  29. package/console/dist/server/models/SampleConsoleModel.d.ts +21 -0
  30. package/console/dist/server/models/SampleConsoleModel.js +188 -0
  31. package/console/dist/server/models/ThinkingModelsConsoleModel.d.ts +22 -0
  32. package/console/dist/server/models/ThinkingModelsConsoleModel.js +75 -0
  33. package/console/dist/server/models/WorkspaceService.d.ts +34 -0
  34. package/console/dist/server/models/WorkspaceService.js +105 -0
  35. package/console/dist/server/routes/agents.d.ts +3 -0
  36. package/console/dist/server/routes/agents.js +557 -0
  37. package/console/dist/server/routes/approvals.d.ts +3 -0
  38. package/console/dist/server/routes/approvals.js +184 -0
  39. package/console/dist/server/routes/central.d.ts +5 -0
  40. package/console/dist/server/routes/central.js +31 -0
  41. package/console/dist/server/routes/events.d.ts +10 -0
  42. package/console/dist/server/routes/events.js +99 -0
  43. package/console/dist/server/routes/evolution.d.ts +3 -0
  44. package/console/dist/server/routes/evolution.js +73 -0
  45. package/console/dist/server/routes/feedback.d.ts +3 -0
  46. package/console/dist/server/routes/feedback.js +65 -0
  47. package/console/dist/server/routes/gates.d.ts +3 -0
  48. package/console/dist/server/routes/gates.js +52 -0
  49. package/console/dist/server/routes/health.d.ts +3 -0
  50. package/console/dist/server/routes/health.js +33 -0
  51. package/console/dist/server/routes/overview.d.ts +3 -0
  52. package/console/dist/server/routes/overview.js +49 -0
  53. package/console/dist/server/routes/pipeline.d.ts +3 -0
  54. package/console/dist/server/routes/pipeline.js +33 -0
  55. package/console/dist/server/routes/principles.d.ts +10 -0
  56. package/console/dist/server/routes/principles.js +48 -0
  57. package/console/dist/server/routes/samples.d.ts +3 -0
  58. package/console/dist/server/routes/samples.js +101 -0
  59. package/console/dist/server/routes/state.d.ts +11 -0
  60. package/console/dist/server/routes/state.js +97 -0
  61. package/console/dist/server/routes/thinking-models.d.ts +3 -0
  62. package/console/dist/server/routes/thinking-models.js +54 -0
  63. package/console/dist/server/routes/workspaces.d.ts +6 -0
  64. package/console/dist/server/routes/workspaces.js +105 -0
  65. package/console/dist/server/types/index.d.ts +248 -0
  66. package/console/dist/server/types/index.js +1 -0
  67. package/console/dist/server/utils/diagnostic-parser.d.ts +6 -0
  68. package/console/dist/server/utils/diagnostic-parser.js +81 -0
  69. package/console/dist/server/utils/request.d.ts +4 -0
  70. package/console/dist/server/utils/request.js +43 -0
  71. package/console/dist/server/utils/response.d.ts +8 -0
  72. package/console/dist/server/utils/response.js +31 -0
  73. package/console/dist/server.d.ts +1 -0
  74. package/console/dist/server.js +1 -0
  75. package/console/dist/types.d.ts +85 -0
  76. package/console/dist/types.js +1 -0
  77. package/console/dist/ui/App.d.ts +1 -0
  78. package/console/dist/ui/App.js +52 -0
  79. package/console/dist/ui/api.d.ts +498 -0
  80. package/console/dist/ui/api.js +243 -0
  81. package/console/dist/ui/components/app-sidebar.d.ts +7 -0
  82. package/console/dist/ui/components/app-sidebar.js +74 -0
  83. package/console/dist/ui/components/approval-card.d.ts +8 -0
  84. package/console/dist/ui/components/approval-card.js +39 -0
  85. package/console/dist/ui/components/approval-detail-dialog.d.ts +9 -0
  86. package/console/dist/ui/components/approval-detail-dialog.js +20 -0
  87. package/console/dist/ui/components/compare-view.d.ts +7 -0
  88. package/console/dist/ui/components/compare-view.js +32 -0
  89. package/console/dist/ui/components/data-freshness-indicator.d.ts +10 -0
  90. package/console/dist/ui/components/data-freshness-indicator.js +63 -0
  91. package/console/dist/ui/components/error-boundary.d.ts +15 -0
  92. package/console/dist/ui/components/error-boundary.js +23 -0
  93. package/console/dist/ui/components/health-diagnostic-card.d.ts +15 -0
  94. package/console/dist/ui/components/health-diagnostic-card.js +42 -0
  95. package/console/dist/ui/components/language-switcher.d.ts +1 -0
  96. package/console/dist/ui/components/language-switcher.js +17 -0
  97. package/console/dist/ui/components/page-header.d.ts +10 -0
  98. package/console/dist/ui/components/page-header.js +37 -0
  99. package/console/dist/ui/components/rejection-reason-dialog.d.ts +6 -0
  100. package/console/dist/ui/components/rejection-reason-dialog.js +23 -0
  101. package/console/dist/ui/components/theme-provider.d.ts +14 -0
  102. package/console/dist/ui/components/theme-provider.js +35 -0
  103. package/console/dist/ui/components/theme-toggle.d.ts +1 -0
  104. package/console/dist/ui/components/theme-toggle.js +30 -0
  105. package/console/dist/ui/components/ui/alert-dialog.d.ts +20 -0
  106. package/console/dist/ui/components/ui/alert-dialog.js +26 -0
  107. package/console/dist/ui/components/ui/badge.d.ts +9 -0
  108. package/console/dist/ui/components/ui/badge.js +20 -0
  109. package/console/dist/ui/components/ui/button.d.ts +11 -0
  110. package/console/dist/ui/components/ui/button.js +33 -0
  111. package/console/dist/ui/components/ui/card.d.ts +8 -0
  112. package/console/dist/ui/components/ui/card.js +16 -0
  113. package/console/dist/ui/components/ui/charts.d.ts +51 -0
  114. package/console/dist/ui/components/ui/charts.js +69 -0
  115. package/console/dist/ui/components/ui/dialog.d.ts +19 -0
  116. package/console/dist/ui/components/ui/dialog.js +22 -0
  117. package/console/dist/ui/components/ui/input.d.ts +3 -0
  118. package/console/dist/ui/components/ui/input.js +8 -0
  119. package/console/dist/ui/components/ui/markdown.d.ts +24 -0
  120. package/console/dist/ui/components/ui/markdown.js +115 -0
  121. package/console/dist/ui/components/ui/progress-bar.d.ts +20 -0
  122. package/console/dist/ui/components/ui/progress-bar.js +38 -0
  123. package/console/dist/ui/components/ui/select.d.ts +13 -0
  124. package/console/dist/ui/components/ui/select.js +26 -0
  125. package/console/dist/ui/components/ui/separator.d.ts +3 -0
  126. package/console/dist/ui/components/ui/separator.js +6 -0
  127. package/console/dist/ui/components/ui/sheet.d.ts +25 -0
  128. package/console/dist/ui/components/ui/sheet.js +36 -0
  129. package/console/dist/ui/components/ui/skeleton.d.ts +3 -0
  130. package/console/dist/ui/components/ui/skeleton.js +6 -0
  131. package/console/dist/ui/components/ui/sonner.d.ts +3 -0
  132. package/console/dist/ui/components/ui/sonner.js +13 -0
  133. package/console/dist/ui/components/ui/tooltip.d.ts +7 -0
  134. package/console/dist/ui/components/ui/tooltip.js +10 -0
  135. package/console/dist/ui/hooks/useAutoRefresh.d.ts +13 -0
  136. package/console/dist/ui/hooks/useAutoRefresh.js +64 -0
  137. package/console/dist/ui/hooks/useBookmarks.d.ts +6 -0
  138. package/console/dist/ui/hooks/useBookmarks.js +43 -0
  139. package/console/dist/ui/hooks/useDebounce.d.ts +2 -0
  140. package/console/dist/ui/hooks/useDebounce.js +32 -0
  141. package/console/dist/ui/hooks/useKeyboardNavigation.d.ts +14 -0
  142. package/console/dist/ui/hooks/useKeyboardNavigation.js +75 -0
  143. package/console/dist/ui/i18n/en.json +531 -0
  144. package/console/dist/ui/i18n/index.d.ts +2 -0
  145. package/console/dist/ui/i18n/index.js +21 -0
  146. package/console/dist/ui/i18n/zh-CN.json +531 -0
  147. package/console/dist/ui/main.d.ts +1 -0
  148. package/console/dist/ui/main.js +8 -0
  149. package/console/dist/ui/pages/AgentsPage.d.ts +1 -0
  150. package/console/dist/ui/pages/AgentsPage.js +181 -0
  151. package/console/dist/ui/pages/ApprovalsPage.d.ts +1 -0
  152. package/console/dist/ui/pages/ApprovalsPage.js +123 -0
  153. package/console/dist/ui/pages/CentralPage.d.ts +1 -0
  154. package/console/dist/ui/pages/CentralPage.js +57 -0
  155. package/console/dist/ui/pages/DataFlowPage.d.ts +1 -0
  156. package/console/dist/ui/pages/DataFlowPage.js +158 -0
  157. package/console/dist/ui/pages/EventLogPage.d.ts +1 -0
  158. package/console/dist/ui/pages/EventLogPage.js +176 -0
  159. package/console/dist/ui/pages/EvolutionPage.d.ts +1 -0
  160. package/console/dist/ui/pages/EvolutionPage.js +118 -0
  161. package/console/dist/ui/pages/FeedbackPage.d.ts +1 -0
  162. package/console/dist/ui/pages/FeedbackPage.js +46 -0
  163. package/console/dist/ui/pages/GatesPage.d.ts +1 -0
  164. package/console/dist/ui/pages/GatesPage.js +31 -0
  165. package/console/dist/ui/pages/LoginPage.d.ts +5 -0
  166. package/console/dist/ui/pages/LoginPage.js +39 -0
  167. package/console/dist/ui/pages/OverviewPage.d.ts +1 -0
  168. package/console/dist/ui/pages/OverviewPage.js +50 -0
  169. package/console/dist/ui/pages/PainPage.d.ts +1 -0
  170. package/console/dist/ui/pages/PainPage.js +50 -0
  171. package/console/dist/ui/pages/PrincipleDetailPage.d.ts +1 -0
  172. package/console/dist/ui/pages/PrincipleDetailPage.js +145 -0
  173. package/console/dist/ui/pages/PrinciplesPage.d.ts +1 -0
  174. package/console/dist/ui/pages/PrinciplesPage.js +322 -0
  175. package/console/dist/ui/pages/SamplesPage.d.ts +1 -0
  176. package/console/dist/ui/pages/SamplesPage.js +105 -0
  177. package/console/dist/ui/pages/SettingsPage.d.ts +1 -0
  178. package/console/dist/ui/pages/SettingsPage.js +86 -0
  179. package/console/dist/ui/pages/TasksPage.d.ts +1 -0
  180. package/console/dist/ui/pages/TasksPage.js +374 -0
  181. package/console/dist/ui/pages/ThinkingModelsPage.d.ts +1 -0
  182. package/console/dist/ui/pages/ThinkingModelsPage.js +32 -0
  183. package/console/dist/ui/utils/format.d.ts +3 -0
  184. package/console/dist/ui/utils/format.js +20 -0
  185. package/console/dist/ui/utils/navigation.d.ts +9 -0
  186. package/console/dist/ui/utils/navigation.js +7 -0
  187. package/console/dist/web/assets/app.css +2821 -0
  188. package/console/dist/web/assets/app.js +46070 -0
  189. package/console/dist/web/index.html +13 -0
  190. package/console/package.json +51 -0
  191. package/core/dist/adapters/code-review/code-review-pain-adapter.d.ts +13 -0
  192. package/core/dist/adapters/code-review/code-review-pain-adapter.d.ts.map +1 -0
  193. package/core/dist/adapters/code-review/code-review-pain-adapter.js +139 -0
  194. package/core/dist/adapters/code-review/code-review-pain-adapter.js.map +1 -0
  195. package/core/dist/adapters/code-review/index.d.ts +6 -0
  196. package/core/dist/adapters/code-review/index.d.ts.map +1 -0
  197. package/core/dist/adapters/code-review/index.js +2 -0
  198. package/core/dist/adapters/code-review/index.js.map +1 -0
  199. package/core/dist/adapters/code-review/review-event-types.d.ts +54 -0
  200. package/core/dist/adapters/code-review/review-event-types.d.ts.map +1 -0
  201. package/core/dist/adapters/code-review/review-event-types.js +8 -0
  202. package/core/dist/adapters/code-review/review-event-types.js.map +1 -0
  203. package/core/dist/adapters/coding/index.d.ts +6 -0
  204. package/core/dist/adapters/coding/index.d.ts.map +1 -0
  205. package/core/dist/adapters/coding/index.js +5 -0
  206. package/core/dist/adapters/coding/index.js.map +1 -0
  207. package/core/dist/adapters/coding/openclaw-event-types.d.ts +26 -0
  208. package/core/dist/adapters/coding/openclaw-event-types.d.ts.map +1 -0
  209. package/core/dist/adapters/coding/openclaw-event-types.js +9 -0
  210. package/core/dist/adapters/coding/openclaw-event-types.js.map +1 -0
  211. package/core/dist/adapters/coding/openclaw-pain-adapter.d.ts +27 -0
  212. package/core/dist/adapters/coding/openclaw-pain-adapter.d.ts.map +1 -0
  213. package/core/dist/adapters/coding/openclaw-pain-adapter.js +102 -0
  214. package/core/dist/adapters/coding/openclaw-pain-adapter.js.map +1 -0
  215. package/core/dist/adapters/writing/index.d.ts +6 -0
  216. package/core/dist/adapters/writing/index.d.ts.map +1 -0
  217. package/core/dist/adapters/writing/index.js +5 -0
  218. package/core/dist/adapters/writing/index.js.map +1 -0
  219. package/core/dist/adapters/writing/writing-pain-adapter.d.ts +22 -0
  220. package/core/dist/adapters/writing/writing-pain-adapter.d.ts.map +1 -0
  221. package/core/dist/adapters/writing/writing-pain-adapter.js +62 -0
  222. package/core/dist/adapters/writing/writing-pain-adapter.js.map +1 -0
  223. package/core/dist/adapters/writing/writing-types.d.ts +34 -0
  224. package/core/dist/adapters/writing/writing-types.d.ts.map +1 -0
  225. package/core/dist/adapters/writing/writing-types.js +9 -0
  226. package/core/dist/adapters/writing/writing-types.js.map +1 -0
  227. package/core/dist/evolution-hook.d.ts +70 -0
  228. package/core/dist/evolution-hook.d.ts.map +1 -0
  229. package/core/dist/evolution-hook.js +10 -0
  230. package/core/dist/evolution-hook.js.map +1 -0
  231. package/core/dist/evolution-store.d.ts +56 -0
  232. package/core/dist/evolution-store.d.ts.map +1 -0
  233. package/core/dist/evolution-store.js +150 -0
  234. package/core/dist/evolution-store.js.map +1 -0
  235. package/core/dist/index.d.ts +62 -0
  236. package/core/dist/index.d.ts.map +1 -0
  237. package/core/dist/index.js +64 -0
  238. package/core/dist/index.js.map +1 -0
  239. package/core/dist/io.d.ts +36 -0
  240. package/core/dist/io.d.ts.map +1 -0
  241. package/core/dist/io.js +99 -0
  242. package/core/dist/io.js.map +1 -0
  243. package/core/dist/pain-flag-resolver.d.ts +18 -0
  244. package/core/dist/pain-flag-resolver.d.ts.map +1 -0
  245. package/core/dist/pain-flag-resolver.js +21 -0
  246. package/core/dist/pain-flag-resolver.js.map +1 -0
  247. package/core/dist/pain-recorder.d.ts +38 -0
  248. package/core/dist/pain-recorder.d.ts.map +1 -0
  249. package/core/dist/pain-recorder.js +62 -0
  250. package/core/dist/pain-recorder.js.map +1 -0
  251. package/core/dist/pain-signal-adapter.d.ts +37 -0
  252. package/core/dist/pain-signal-adapter.d.ts.map +1 -0
  253. package/core/dist/pain-signal-adapter.js +2 -0
  254. package/core/dist/pain-signal-adapter.js.map +1 -0
  255. package/core/dist/pain-signal.d.ts +76 -0
  256. package/core/dist/pain-signal.d.ts.map +1 -0
  257. package/core/dist/pain-signal.js +125 -0
  258. package/core/dist/pain-signal.js.map +1 -0
  259. package/core/dist/principle-injector.d.ts +67 -0
  260. package/core/dist/principle-injector.d.ts.map +1 -0
  261. package/core/dist/principle-injector.js +89 -0
  262. package/core/dist/principle-injector.js.map +1 -0
  263. package/core/dist/principle-tree-ledger.d.ts +106 -0
  264. package/core/dist/principle-tree-ledger.d.ts.map +1 -0
  265. package/core/dist/principle-tree-ledger.js +254 -0
  266. package/core/dist/principle-tree-ledger.js.map +1 -0
  267. package/core/dist/prompt-builder/__tests__/empathy-keyword-matching.test.d.ts +2 -0
  268. package/core/dist/prompt-builder/__tests__/empathy-keyword-matching.test.d.ts.map +1 -0
  269. package/core/dist/prompt-builder/__tests__/empathy-keyword-matching.test.js +380 -0
  270. package/core/dist/prompt-builder/__tests__/empathy-keyword-matching.test.js.map +1 -0
  271. package/core/dist/prompt-builder/__tests__/focus-compression.test.d.ts +2 -0
  272. package/core/dist/prompt-builder/__tests__/focus-compression.test.d.ts.map +1 -0
  273. package/core/dist/prompt-builder/__tests__/focus-compression.test.js +265 -0
  274. package/core/dist/prompt-builder/__tests__/focus-compression.test.js.map +1 -0
  275. package/core/dist/prompt-builder/__tests__/principle-selection.test.d.ts +7 -0
  276. package/core/dist/prompt-builder/__tests__/principle-selection.test.d.ts.map +1 -0
  277. package/core/dist/prompt-builder/__tests__/principle-selection.test.js +214 -0
  278. package/core/dist/prompt-builder/__tests__/principle-selection.test.js.map +1 -0
  279. package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.d.ts +7 -0
  280. package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.d.ts.map +1 -0
  281. package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.js +283 -0
  282. package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.js.map +1 -0
  283. package/core/dist/prompt-builder/__tests__/routing-guidance.test.d.ts +11 -0
  284. package/core/dist/prompt-builder/__tests__/routing-guidance.test.d.ts.map +1 -0
  285. package/core/dist/prompt-builder/__tests__/routing-guidance.test.js +305 -0
  286. package/core/dist/prompt-builder/__tests__/routing-guidance.test.js.map +1 -0
  287. package/core/dist/prompt-builder/attitude-directive.d.ts +7 -0
  288. package/core/dist/prompt-builder/attitude-directive.d.ts.map +1 -0
  289. package/core/dist/prompt-builder/attitude-directive.js +39 -0
  290. package/core/dist/prompt-builder/attitude-directive.js.map +1 -0
  291. package/core/dist/prompt-builder/correction-cue.d.ts +15 -0
  292. package/core/dist/prompt-builder/correction-cue.d.ts.map +1 -0
  293. package/core/dist/prompt-builder/correction-cue.js +39 -0
  294. package/core/dist/prompt-builder/correction-cue.js.map +1 -0
  295. package/core/dist/prompt-builder/empathy-keyword-matching.d.ts +30 -0
  296. package/core/dist/prompt-builder/empathy-keyword-matching.d.ts.map +1 -0
  297. package/core/dist/prompt-builder/empathy-keyword-matching.js +142 -0
  298. package/core/dist/prompt-builder/empathy-keyword-matching.js.map +1 -0
  299. package/core/dist/prompt-builder/empathy-types.d.ts +62 -0
  300. package/core/dist/prompt-builder/empathy-types.d.ts.map +1 -0
  301. package/core/dist/prompt-builder/empathy-types.js +88 -0
  302. package/core/dist/prompt-builder/empathy-types.js.map +1 -0
  303. package/core/dist/prompt-builder/focus-compression.d.ts +63 -0
  304. package/core/dist/prompt-builder/focus-compression.d.ts.map +1 -0
  305. package/core/dist/prompt-builder/focus-compression.js +448 -0
  306. package/core/dist/prompt-builder/focus-compression.js.map +1 -0
  307. package/core/dist/prompt-builder/index.d.ts +29 -0
  308. package/core/dist/prompt-builder/index.d.ts.map +1 -0
  309. package/core/dist/prompt-builder/index.js +27 -0
  310. package/core/dist/prompt-builder/index.js.map +1 -0
  311. package/core/dist/prompt-builder/message-extraction.d.ts +7 -0
  312. package/core/dist/prompt-builder/message-extraction.d.ts.map +1 -0
  313. package/core/dist/prompt-builder/message-extraction.js +23 -0
  314. package/core/dist/prompt-builder/message-extraction.js.map +1 -0
  315. package/core/dist/prompt-builder/minimal-trigger.d.ts +7 -0
  316. package/core/dist/prompt-builder/minimal-trigger.d.ts.map +1 -0
  317. package/core/dist/prompt-builder/minimal-trigger.js +11 -0
  318. package/core/dist/prompt-builder/minimal-trigger.js.map +1 -0
  319. package/core/dist/prompt-builder/principle-selection.d.ts +68 -0
  320. package/core/dist/prompt-builder/principle-selection.d.ts.map +1 -0
  321. package/core/dist/prompt-builder/principle-selection.js +140 -0
  322. package/core/dist/prompt-builder/principle-selection.js.map +1 -0
  323. package/core/dist/prompt-builder/routing-guidance.d.ts +64 -0
  324. package/core/dist/prompt-builder/routing-guidance.d.ts.map +1 -0
  325. package/core/dist/prompt-builder/routing-guidance.js +227 -0
  326. package/core/dist/prompt-builder/routing-guidance.js.map +1 -0
  327. package/core/dist/prompt-builder/size-guard.d.ts +35 -0
  328. package/core/dist/prompt-builder/size-guard.d.ts.map +1 -0
  329. package/core/dist/prompt-builder/size-guard.js +144 -0
  330. package/core/dist/prompt-builder/size-guard.js.map +1 -0
  331. package/core/dist/prompt-builder/types.d.ts +28 -0
  332. package/core/dist/prompt-builder/types.d.ts.map +1 -0
  333. package/core/dist/prompt-builder/types.js +7 -0
  334. package/core/dist/prompt-builder/types.js.map +1 -0
  335. package/core/dist/runtime-v2/__tests__/admission-gate.test.d.ts +2 -0
  336. package/core/dist/runtime-v2/__tests__/admission-gate.test.d.ts.map +1 -0
  337. package/core/dist/runtime-v2/__tests__/admission-gate.test.js +126 -0
  338. package/core/dist/runtime-v2/__tests__/admission-gate.test.js.map +1 -0
  339. package/core/dist/runtime-v2/__tests__/architecture-regression.test.d.ts +2 -0
  340. package/core/dist/runtime-v2/__tests__/architecture-regression.test.d.ts.map +1 -0
  341. package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +2990 -0
  342. package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -0
  343. package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.d.ts +2 -0
  344. package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.d.ts.map +1 -0
  345. package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js +608 -0
  346. package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js.map +1 -0
  347. package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.d.ts +20 -0
  348. package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.d.ts.map +1 -0
  349. package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js +473 -0
  350. package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js.map +1 -0
  351. package/core/dist/runtime-v2/__tests__/candidate-audit.test.d.ts +2 -0
  352. package/core/dist/runtime-v2/__tests__/candidate-audit.test.d.ts.map +1 -0
  353. package/core/dist/runtime-v2/__tests__/candidate-audit.test.js +100 -0
  354. package/core/dist/runtime-v2/__tests__/candidate-audit.test.js.map +1 -0
  355. package/core/dist/runtime-v2/__tests__/chain-integrity-attack.test.d.ts +2 -0
  356. package/core/dist/runtime-v2/__tests__/chain-integrity-attack.test.d.ts.map +1 -0
  357. package/core/dist/runtime-v2/__tests__/chain-integrity-attack.test.js +276 -0
  358. package/core/dist/runtime-v2/__tests__/chain-integrity-attack.test.js.map +1 -0
  359. package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.d.ts +2 -0
  360. package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.d.ts.map +1 -0
  361. package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js +561 -0
  362. package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js.map +1 -0
  363. package/core/dist/runtime-v2/__tests__/control-plane-triage.test.d.ts +2 -0
  364. package/core/dist/runtime-v2/__tests__/control-plane-triage.test.d.ts.map +1 -0
  365. package/core/dist/runtime-v2/__tests__/control-plane-triage.test.js +107 -0
  366. package/core/dist/runtime-v2/__tests__/control-plane-triage.test.js.map +1 -0
  367. package/core/dist/runtime-v2/__tests__/correction-proposal.test.d.ts +2 -0
  368. package/core/dist/runtime-v2/__tests__/correction-proposal.test.d.ts.map +1 -0
  369. package/core/dist/runtime-v2/__tests__/correction-proposal.test.js +486 -0
  370. package/core/dist/runtime-v2/__tests__/correction-proposal.test.js.map +1 -0
  371. package/core/dist/runtime-v2/__tests__/dreamer-output-validator.test.d.ts +2 -0
  372. package/core/dist/runtime-v2/__tests__/dreamer-output-validator.test.d.ts.map +1 -0
  373. package/core/dist/runtime-v2/__tests__/dreamer-output-validator.test.js +171 -0
  374. package/core/dist/runtime-v2/__tests__/dreamer-output-validator.test.js.map +1 -0
  375. package/core/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.d.ts +2 -0
  376. package/core/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.d.ts.map +1 -0
  377. package/core/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.js +155 -0
  378. package/core/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.js.map +1 -0
  379. package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.d.ts +2 -0
  380. package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.d.ts.map +1 -0
  381. package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js +515 -0
  382. package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js.map +1 -0
  383. package/core/dist/runtime-v2/__tests__/dreamer-runner.test.d.ts +2 -0
  384. package/core/dist/runtime-v2/__tests__/dreamer-runner.test.d.ts.map +1 -0
  385. package/core/dist/runtime-v2/__tests__/dreamer-runner.test.js +348 -0
  386. package/core/dist/runtime-v2/__tests__/dreamer-runner.test.js.map +1 -0
  387. package/core/dist/runtime-v2/__tests__/error-categories.test.d.ts +2 -0
  388. package/core/dist/runtime-v2/__tests__/error-categories.test.d.ts.map +1 -0
  389. package/core/dist/runtime-v2/__tests__/error-categories.test.js +149 -0
  390. package/core/dist/runtime-v2/__tests__/error-categories.test.js.map +1 -0
  391. package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.d.ts +2 -0
  392. package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.d.ts.map +1 -0
  393. package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js +1047 -0
  394. package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js.map +1 -0
  395. package/core/dist/runtime-v2/__tests__/fixtures/index.d.ts +4 -0
  396. package/core/dist/runtime-v2/__tests__/fixtures/index.d.ts.map +1 -0
  397. package/core/dist/runtime-v2/__tests__/fixtures/index.js +3 -0
  398. package/core/dist/runtime-v2/__tests__/fixtures/index.js.map +1 -0
  399. package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.d.ts +20 -0
  400. package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.d.ts.map +1 -0
  401. package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js +39 -0
  402. package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js.map +1 -0
  403. package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.d.ts +2 -0
  404. package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.d.ts.map +1 -0
  405. package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js +111 -0
  406. package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js.map +1 -0
  407. package/core/dist/runtime-v2/__tests__/fixtures/test-helpers.d.ts +20 -0
  408. package/core/dist/runtime-v2/__tests__/fixtures/test-helpers.d.ts.map +1 -0
  409. package/core/dist/runtime-v2/__tests__/fixtures/test-helpers.js +37 -0
  410. package/core/dist/runtime-v2/__tests__/fixtures/test-helpers.js.map +1 -0
  411. package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.d.ts +2 -0
  412. package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.d.ts.map +1 -0
  413. package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.js +152 -0
  414. package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.js.map +1 -0
  415. package/core/dist/runtime-v2/__tests__/full-trace-contract.test.d.ts +2 -0
  416. package/core/dist/runtime-v2/__tests__/full-trace-contract.test.d.ts.map +1 -0
  417. package/core/dist/runtime-v2/__tests__/full-trace-contract.test.js +552 -0
  418. package/core/dist/runtime-v2/__tests__/full-trace-contract.test.js.map +1 -0
  419. package/core/dist/runtime-v2/__tests__/gfi-workspace-health.test.d.ts +2 -0
  420. package/core/dist/runtime-v2/__tests__/gfi-workspace-health.test.d.ts.map +1 -0
  421. package/core/dist/runtime-v2/__tests__/gfi-workspace-health.test.js +128 -0
  422. package/core/dist/runtime-v2/__tests__/gfi-workspace-health.test.js.map +1 -0
  423. package/core/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.d.ts +2 -0
  424. package/core/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.d.ts.map +1 -0
  425. package/core/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.js +759 -0
  426. package/core/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.js.map +1 -0
  427. package/core/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.d.ts +2 -0
  428. package/core/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.d.ts.map +1 -0
  429. package/core/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.js +231 -0
  430. package/core/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.js.map +1 -0
  431. package/core/dist/runtime-v2/__tests__/golden-trace.test.d.ts +2 -0
  432. package/core/dist/runtime-v2/__tests__/golden-trace.test.d.ts.map +1 -0
  433. package/core/dist/runtime-v2/__tests__/golden-trace.test.js +335 -0
  434. package/core/dist/runtime-v2/__tests__/golden-trace.test.js.map +1 -0
  435. package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.d.ts +2 -0
  436. package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.d.ts.map +1 -0
  437. package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js +307 -0
  438. package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js.map +1 -0
  439. package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.d.ts +2 -0
  440. package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.d.ts.map +1 -0
  441. package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js +268 -0
  442. package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js.map +1 -0
  443. package/core/dist/runtime-v2/__tests__/internalization-contracts.test.d.ts +2 -0
  444. package/core/dist/runtime-v2/__tests__/internalization-contracts.test.d.ts.map +1 -0
  445. package/core/dist/runtime-v2/__tests__/internalization-contracts.test.js +78 -0
  446. package/core/dist/runtime-v2/__tests__/internalization-contracts.test.js.map +1 -0
  447. package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.d.ts +2 -0
  448. package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.d.ts.map +1 -0
  449. package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js +218 -0
  450. package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js.map +1 -0
  451. package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.d.ts +2 -0
  452. package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.d.ts.map +1 -0
  453. package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js +569 -0
  454. package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js.map +1 -0
  455. package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.d.ts +2 -0
  456. package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.d.ts.map +1 -0
  457. package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js +448 -0
  458. package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js.map +1 -0
  459. package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.d.ts +2 -0
  460. package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.d.ts.map +1 -0
  461. package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js +415 -0
  462. package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js.map +1 -0
  463. package/core/dist/runtime-v2/__tests__/internalization-route.test.d.ts +2 -0
  464. package/core/dist/runtime-v2/__tests__/internalization-route.test.d.ts.map +1 -0
  465. package/core/dist/runtime-v2/__tests__/internalization-route.test.js +136 -0
  466. package/core/dist/runtime-v2/__tests__/internalization-route.test.js.map +1 -0
  467. package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.d.ts +2 -0
  468. package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.d.ts.map +1 -0
  469. package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js +679 -0
  470. package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js.map +1 -0
  471. package/core/dist/runtime-v2/__tests__/l1-hard-cap.test.d.ts +2 -0
  472. package/core/dist/runtime-v2/__tests__/l1-hard-cap.test.d.ts.map +1 -0
  473. package/core/dist/runtime-v2/__tests__/l1-hard-cap.test.js +157 -0
  474. package/core/dist/runtime-v2/__tests__/l1-hard-cap.test.js.map +1 -0
  475. package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts +2 -0
  476. package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts.map +1 -0
  477. package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js +215 -0
  478. package/core/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js.map +1 -0
  479. package/core/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.d.ts +2 -0
  480. package/core/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.d.ts.map +1 -0
  481. package/core/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.js +102 -0
  482. package/core/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.js.map +1 -0
  483. package/core/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.d.ts +2 -0
  484. package/core/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.d.ts.map +1 -0
  485. package/core/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.js +148 -0
  486. package/core/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.js.map +1 -0
  487. package/core/dist/runtime-v2/__tests__/operator-health-gfi.test.d.ts +2 -0
  488. package/core/dist/runtime-v2/__tests__/operator-health-gfi.test.d.ts.map +1 -0
  489. package/core/dist/runtime-v2/__tests__/operator-health-gfi.test.js +113 -0
  490. package/core/dist/runtime-v2/__tests__/operator-health-gfi.test.js.map +1 -0
  491. package/core/dist/runtime-v2/__tests__/operator-health-read-model.test.d.ts +2 -0
  492. package/core/dist/runtime-v2/__tests__/operator-health-read-model.test.d.ts.map +1 -0
  493. package/core/dist/runtime-v2/__tests__/operator-health-read-model.test.js +136 -0
  494. package/core/dist/runtime-v2/__tests__/operator-health-read-model.test.js.map +1 -0
  495. package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.d.ts +2 -0
  496. package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.d.ts.map +1 -0
  497. package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.js +248 -0
  498. package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.js.map +1 -0
  499. package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.d.ts +2 -0
  500. package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.d.ts.map +1 -0
  501. package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.js +328 -0
  502. package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.js.map +1 -0
  503. package/core/dist/runtime-v2/__tests__/pain-flood-simulation.test.d.ts +2 -0
  504. package/core/dist/runtime-v2/__tests__/pain-flood-simulation.test.d.ts.map +1 -0
  505. package/core/dist/runtime-v2/__tests__/pain-flood-simulation.test.js +267 -0
  506. package/core/dist/runtime-v2/__tests__/pain-flood-simulation.test.js.map +1 -0
  507. package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.d.ts +2 -0
  508. package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.d.ts.map +1 -0
  509. package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js +147 -0
  510. package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js.map +1 -0
  511. package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.d.ts +2 -0
  512. package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.d.ts.map +1 -0
  513. package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js +151 -0
  514. package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js.map +1 -0
  515. package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.d.ts +2 -0
  516. package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.d.ts.map +1 -0
  517. package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js +209 -0
  518. package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js.map +1 -0
  519. package/core/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.d.ts +2 -0
  520. package/core/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.d.ts.map +1 -0
  521. package/core/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.js +167 -0
  522. package/core/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.js.map +1 -0
  523. package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.d.ts +2 -0
  524. package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.d.ts.map +1 -0
  525. package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js +338 -0
  526. package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js.map +1 -0
  527. package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.d.ts +2 -0
  528. package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.d.ts.map +1 -0
  529. package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.js +247 -0
  530. package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.js.map +1 -0
  531. package/core/dist/runtime-v2/__tests__/pitask-metadata.test.d.ts +8 -0
  532. package/core/dist/runtime-v2/__tests__/pitask-metadata.test.d.ts.map +1 -0
  533. package/core/dist/runtime-v2/__tests__/pitask-metadata.test.js +333 -0
  534. package/core/dist/runtime-v2/__tests__/pitask-metadata.test.js.map +1 -0
  535. package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.d.ts +2 -0
  536. package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.d.ts.map +1 -0
  537. package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.js +141 -0
  538. package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.js.map +1 -0
  539. package/core/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.d.ts +2 -0
  540. package/core/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.d.ts.map +1 -0
  541. package/core/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.js +524 -0
  542. package/core/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.js.map +1 -0
  543. package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.d.ts +2 -0
  544. package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.d.ts.map +1 -0
  545. package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.js +428 -0
  546. package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.js.map +1 -0
  547. package/core/dist/runtime-v2/__tests__/pruning-read-model.test.d.ts +2 -0
  548. package/core/dist/runtime-v2/__tests__/pruning-read-model.test.d.ts.map +1 -0
  549. package/core/dist/runtime-v2/__tests__/pruning-read-model.test.js +783 -0
  550. package/core/dist/runtime-v2/__tests__/pruning-read-model.test.js.map +1 -0
  551. package/core/dist/runtime-v2/__tests__/pruning-review-log.test.d.ts +2 -0
  552. package/core/dist/runtime-v2/__tests__/pruning-review-log.test.d.ts.map +1 -0
  553. package/core/dist/runtime-v2/__tests__/pruning-review-log.test.js +159 -0
  554. package/core/dist/runtime-v2/__tests__/pruning-review-log.test.js.map +1 -0
  555. package/core/dist/runtime-v2/__tests__/recovery-sweep-service.test.d.ts +2 -0
  556. package/core/dist/runtime-v2/__tests__/recovery-sweep-service.test.d.ts.map +1 -0
  557. package/core/dist/runtime-v2/__tests__/recovery-sweep-service.test.js +83 -0
  558. package/core/dist/runtime-v2/__tests__/recovery-sweep-service.test.js.map +1 -0
  559. package/core/dist/runtime-v2/__tests__/remediation-contract.test.d.ts +2 -0
  560. package/core/dist/runtime-v2/__tests__/remediation-contract.test.d.ts.map +1 -0
  561. package/core/dist/runtime-v2/__tests__/remediation-contract.test.js +39 -0
  562. package/core/dist/runtime-v2/__tests__/remediation-contract.test.js.map +1 -0
  563. package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.d.ts +2 -0
  564. package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.d.ts.map +1 -0
  565. package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js +658 -0
  566. package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js.map +1 -0
  567. package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.d.ts +2 -0
  568. package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.d.ts.map +1 -0
  569. package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.js +509 -0
  570. package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.js.map +1 -0
  571. package/core/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.d.ts +2 -0
  572. package/core/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.d.ts.map +1 -0
  573. package/core/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.js +535 -0
  574. package/core/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.js.map +1 -0
  575. package/core/dist/runtime-v2/__tests__/runtime-config-boundary.test.d.ts +2 -0
  576. package/core/dist/runtime-v2/__tests__/runtime-config-boundary.test.d.ts.map +1 -0
  577. package/core/dist/runtime-v2/__tests__/runtime-config-boundary.test.js +256 -0
  578. package/core/dist/runtime-v2/__tests__/runtime-config-boundary.test.js.map +1 -0
  579. package/core/dist/runtime-v2/__tests__/runtime-state-handle.test.d.ts +2 -0
  580. package/core/dist/runtime-v2/__tests__/runtime-state-handle.test.d.ts.map +1 -0
  581. package/core/dist/runtime-v2/__tests__/runtime-state-handle.test.js +76 -0
  582. package/core/dist/runtime-v2/__tests__/runtime-state-handle.test.js.map +1 -0
  583. package/core/dist/runtime-v2/__tests__/schema-conformance-read-model.test.d.ts +2 -0
  584. package/core/dist/runtime-v2/__tests__/schema-conformance-read-model.test.d.ts.map +1 -0
  585. package/core/dist/runtime-v2/__tests__/schema-conformance-read-model.test.js +208 -0
  586. package/core/dist/runtime-v2/__tests__/schema-conformance-read-model.test.js.map +1 -0
  587. package/core/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.d.ts +2 -0
  588. package/core/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.d.ts.map +1 -0
  589. package/core/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.js +156 -0
  590. package/core/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.js.map +1 -0
  591. package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.d.ts +2 -0
  592. package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.d.ts.map +1 -0
  593. package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js +430 -0
  594. package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js.map +1 -0
  595. package/core/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.d.ts +2 -0
  596. package/core/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.d.ts.map +1 -0
  597. package/core/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.js +148 -0
  598. package/core/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.js.map +1 -0
  599. package/core/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.d.ts +2 -0
  600. package/core/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.d.ts.map +1 -0
  601. package/core/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.js +95 -0
  602. package/core/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.js.map +1 -0
  603. package/core/dist/runtime-v2/__tests__/story-a-demo.test.d.ts +2 -0
  604. package/core/dist/runtime-v2/__tests__/story-a-demo.test.d.ts.map +1 -0
  605. package/core/dist/runtime-v2/__tests__/story-a-demo.test.js +257 -0
  606. package/core/dist/runtime-v2/__tests__/story-a-demo.test.js.map +1 -0
  607. package/core/dist/runtime-v2/__tests__/synthetic-baseline.test.d.ts +2 -0
  608. package/core/dist/runtime-v2/__tests__/synthetic-baseline.test.d.ts.map +1 -0
  609. package/core/dist/runtime-v2/__tests__/synthetic-baseline.test.js +155 -0
  610. package/core/dist/runtime-v2/__tests__/synthetic-baseline.test.js.map +1 -0
  611. package/core/dist/runtime-v2/__tests__/task-state-semantics.test.d.ts +2 -0
  612. package/core/dist/runtime-v2/__tests__/task-state-semantics.test.d.ts.map +1 -0
  613. package/core/dist/runtime-v2/__tests__/task-state-semantics.test.js +145 -0
  614. package/core/dist/runtime-v2/__tests__/task-state-semantics.test.js.map +1 -0
  615. package/core/dist/runtime-v2/__tests__/task-three-strikes.test.d.ts +2 -0
  616. package/core/dist/runtime-v2/__tests__/task-three-strikes.test.d.ts.map +1 -0
  617. package/core/dist/runtime-v2/__tests__/task-three-strikes.test.js +268 -0
  618. package/core/dist/runtime-v2/__tests__/task-three-strikes.test.js.map +1 -0
  619. package/core/dist/runtime-v2/__tests__/trace-refiner-agent.test.d.ts +2 -0
  620. package/core/dist/runtime-v2/__tests__/trace-refiner-agent.test.d.ts.map +1 -0
  621. package/core/dist/runtime-v2/__tests__/trace-refiner-agent.test.js +726 -0
  622. package/core/dist/runtime-v2/__tests__/trace-refiner-agent.test.js.map +1 -0
  623. package/core/dist/runtime-v2/__tests__/trace-refiner.test.d.ts +2 -0
  624. package/core/dist/runtime-v2/__tests__/trace-refiner.test.d.ts.map +1 -0
  625. package/core/dist/runtime-v2/__tests__/trace-refiner.test.js +527 -0
  626. package/core/dist/runtime-v2/__tests__/trace-refiner.test.js.map +1 -0
  627. package/core/dist/runtime-v2/__tests__/trainer-output-validator.test.d.ts +2 -0
  628. package/core/dist/runtime-v2/__tests__/trainer-output-validator.test.d.ts.map +1 -0
  629. package/core/dist/runtime-v2/__tests__/trainer-output-validator.test.js +257 -0
  630. package/core/dist/runtime-v2/__tests__/trainer-output-validator.test.js.map +1 -0
  631. package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.d.ts +2 -0
  632. package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.d.ts.map +1 -0
  633. package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js +506 -0
  634. package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js.map +1 -0
  635. package/core/dist/runtime-v2/__tests__/trajectory-store.test.d.ts +2 -0
  636. package/core/dist/runtime-v2/__tests__/trajectory-store.test.d.ts.map +1 -0
  637. package/core/dist/runtime-v2/__tests__/trajectory-store.test.js +127 -0
  638. package/core/dist/runtime-v2/__tests__/trajectory-store.test.js.map +1 -0
  639. package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.d.ts +2 -0
  640. package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.d.ts.map +1 -0
  641. package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js +510 -0
  642. package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js.map +1 -0
  643. package/core/dist/runtime-v2/activation/__tests__/approval-context-types.test.d.ts +2 -0
  644. package/core/dist/runtime-v2/activation/__tests__/approval-context-types.test.d.ts.map +1 -0
  645. package/core/dist/runtime-v2/activation/__tests__/approval-context-types.test.js +117 -0
  646. package/core/dist/runtime-v2/activation/__tests__/approval-context-types.test.js.map +1 -0
  647. package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts +2 -0
  648. package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts.map +1 -0
  649. package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.js +179 -0
  650. package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.js.map +1 -0
  651. package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.d.ts +2 -0
  652. package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.d.ts.map +1 -0
  653. package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js +174 -0
  654. package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js.map +1 -0
  655. package/core/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.d.ts +2 -0
  656. package/core/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.d.ts.map +1 -0
  657. package/core/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.js +244 -0
  658. package/core/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.js.map +1 -0
  659. package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.d.ts +2 -0
  660. package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.d.ts.map +1 -0
  661. package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js +109 -0
  662. package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js.map +1 -0
  663. package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.d.ts +2 -0
  664. package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.d.ts.map +1 -0
  665. package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js +124 -0
  666. package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js.map +1 -0
  667. package/core/dist/runtime-v2/activation/activation-dispatcher.d.ts +18 -0
  668. package/core/dist/runtime-v2/activation/activation-dispatcher.d.ts.map +1 -0
  669. package/core/dist/runtime-v2/activation/activation-dispatcher.js +231 -0
  670. package/core/dist/runtime-v2/activation/activation-dispatcher.js.map +1 -0
  671. package/core/dist/runtime-v2/activation/activation-types.d.ts +195 -0
  672. package/core/dist/runtime-v2/activation/activation-types.d.ts.map +1 -0
  673. package/core/dist/runtime-v2/activation/activation-types.js +29 -0
  674. package/core/dist/runtime-v2/activation/activation-types.js.map +1 -0
  675. package/core/dist/runtime-v2/activation/approval-queue.d.ts +15 -0
  676. package/core/dist/runtime-v2/activation/approval-queue.d.ts.map +1 -0
  677. package/core/dist/runtime-v2/activation/approval-queue.js +50 -0
  678. package/core/dist/runtime-v2/activation/approval-queue.js.map +1 -0
  679. package/core/dist/runtime-v2/activation/index.d.ts +15 -0
  680. package/core/dist/runtime-v2/activation/index.d.ts.map +1 -0
  681. package/core/dist/runtime-v2/activation/index.js +11 -0
  682. package/core/dist/runtime-v2/activation/index.js.map +1 -0
  683. package/core/dist/runtime-v2/activation/low-risk-writers.d.ts +14 -0
  684. package/core/dist/runtime-v2/activation/low-risk-writers.d.ts.map +1 -0
  685. package/core/dist/runtime-v2/activation/low-risk-writers.js +83 -0
  686. package/core/dist/runtime-v2/activation/low-risk-writers.js.map +1 -0
  687. package/core/dist/runtime-v2/activation/memory-activation-state-store.d.ts +13 -0
  688. package/core/dist/runtime-v2/activation/memory-activation-state-store.d.ts.map +1 -0
  689. package/core/dist/runtime-v2/activation/memory-activation-state-store.js +28 -0
  690. package/core/dist/runtime-v2/activation/memory-activation-state-store.js.map +1 -0
  691. package/core/dist/runtime-v2/activation/memory-approval-store.d.ts +12 -0
  692. package/core/dist/runtime-v2/activation/memory-approval-store.d.ts.map +1 -0
  693. package/core/dist/runtime-v2/activation/memory-approval-store.js +102 -0
  694. package/core/dist/runtime-v2/activation/memory-approval-store.js.map +1 -0
  695. package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts +10 -0
  696. package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +1 -0
  697. package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js +87 -0
  698. package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +1 -0
  699. package/core/dist/runtime-v2/activation/sqlite-approval-store.d.ts +14 -0
  700. package/core/dist/runtime-v2/activation/sqlite-approval-store.d.ts.map +1 -0
  701. package/core/dist/runtime-v2/activation/sqlite-approval-store.js +138 -0
  702. package/core/dist/runtime-v2/activation/sqlite-approval-store.js.map +1 -0
  703. package/core/dist/runtime-v2/activation/sqlite-confirm-first-state-store.d.ts +22 -0
  704. package/core/dist/runtime-v2/activation/sqlite-confirm-first-state-store.d.ts.map +1 -0
  705. package/core/dist/runtime-v2/activation/sqlite-confirm-first-state-store.js +136 -0
  706. package/core/dist/runtime-v2/activation/sqlite-confirm-first-state-store.js.map +1 -0
  707. package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.d.ts +2 -0
  708. package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.d.ts.map +1 -0
  709. package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +615 -0
  710. package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -0
  711. package/core/dist/runtime-v2/activation/writers/index.d.ts +3 -0
  712. package/core/dist/runtime-v2/activation/writers/index.d.ts.map +1 -0
  713. package/core/dist/runtime-v2/activation/writers/index.js +2 -0
  714. package/core/dist/runtime-v2/activation/writers/index.js.map +1 -0
  715. package/core/dist/runtime-v2/activation/writers/rule-host-writer.d.ts +14 -0
  716. package/core/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +1 -0
  717. package/core/dist/runtime-v2/activation/writers/rule-host-writer.js +135 -0
  718. package/core/dist/runtime-v2/activation/writers/rule-host-writer.js.map +1 -0
  719. package/core/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.d.ts +2 -0
  720. package/core/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.d.ts.map +1 -0
  721. package/core/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js +553 -0
  722. package/core/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js.map +1 -0
  723. package/core/dist/runtime-v2/adapter/__tests__/json-extractor.test.d.ts +2 -0
  724. package/core/dist/runtime-v2/adapter/__tests__/json-extractor.test.d.ts.map +1 -0
  725. package/core/dist/runtime-v2/adapter/__tests__/json-extractor.test.js +148 -0
  726. package/core/dist/runtime-v2/adapter/__tests__/json-extractor.test.js.map +1 -0
  727. package/core/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.d.ts +2 -0
  728. package/core/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.d.ts.map +1 -0
  729. package/core/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.js +565 -0
  730. package/core/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.js.map +1 -0
  731. package/core/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.d.ts +2 -0
  732. package/core/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.d.ts.map +1 -0
  733. package/core/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.js +305 -0
  734. package/core/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.js.map +1 -0
  735. package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.d.ts +2 -0
  736. package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.d.ts.map +1 -0
  737. package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js +1362 -0
  738. package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js.map +1 -0
  739. package/core/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.d.ts +2 -0
  740. package/core/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.d.ts.map +1 -0
  741. package/core/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js +245 -0
  742. package/core/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js.map +1 -0
  743. package/core/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.d.ts +2 -0
  744. package/core/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.d.ts.map +1 -0
  745. package/core/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js +494 -0
  746. package/core/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js.map +1 -0
  747. package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.d.ts +2 -0
  748. package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.d.ts.map +1 -0
  749. package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js +123 -0
  750. package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js.map +1 -0
  751. package/core/dist/runtime-v2/adapter/index.d.ts +10 -0
  752. package/core/dist/runtime-v2/adapter/index.d.ts.map +1 -0
  753. package/core/dist/runtime-v2/adapter/index.js +6 -0
  754. package/core/dist/runtime-v2/adapter/index.js.map +1 -0
  755. package/core/dist/runtime-v2/adapter/json-extractor.d.ts +14 -0
  756. package/core/dist/runtime-v2/adapter/json-extractor.d.ts.map +1 -0
  757. package/core/dist/runtime-v2/adapter/json-extractor.js +97 -0
  758. package/core/dist/runtime-v2/adapter/json-extractor.js.map +1 -0
  759. package/core/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.d.ts +66 -0
  760. package/core/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.d.ts.map +1 -0
  761. package/core/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.js +705 -0
  762. package/core/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.js.map +1 -0
  763. package/core/dist/runtime-v2/adapter/output-repair-contract.d.ts +50 -0
  764. package/core/dist/runtime-v2/adapter/output-repair-contract.d.ts.map +1 -0
  765. package/core/dist/runtime-v2/adapter/output-repair-contract.js +96 -0
  766. package/core/dist/runtime-v2/adapter/output-repair-contract.js.map +1 -0
  767. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts +114 -0
  768. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +1 -0
  769. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +1109 -0
  770. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +1 -0
  771. package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts +22 -0
  772. package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts.map +1 -0
  773. package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js +84 -0
  774. package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js.map +1 -0
  775. package/core/dist/runtime-v2/adapter/structured-output-repair.d.ts +95 -0
  776. package/core/dist/runtime-v2/adapter/structured-output-repair.d.ts.map +1 -0
  777. package/core/dist/runtime-v2/adapter/structured-output-repair.js +259 -0
  778. package/core/dist/runtime-v2/adapter/structured-output-repair.js.map +1 -0
  779. package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts +35 -0
  780. package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts.map +1 -0
  781. package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.js +94 -0
  782. package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.js.map +1 -0
  783. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts +21 -0
  784. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts.map +1 -0
  785. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js +20 -0
  786. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js.map +1 -0
  787. package/core/dist/runtime-v2/admission-gate.d.ts +27 -0
  788. package/core/dist/runtime-v2/admission-gate.d.ts.map +1 -0
  789. package/core/dist/runtime-v2/admission-gate.js +57 -0
  790. package/core/dist/runtime-v2/admission-gate.js.map +1 -0
  791. package/core/dist/runtime-v2/agent-spec.d.ts +86 -0
  792. package/core/dist/runtime-v2/agent-spec.d.ts.map +1 -0
  793. package/core/dist/runtime-v2/agent-spec.js +74 -0
  794. package/core/dist/runtime-v2/agent-spec.js.map +1 -0
  795. package/core/dist/runtime-v2/candidate-audit.d.ts +8 -0
  796. package/core/dist/runtime-v2/candidate-audit.d.ts.map +1 -0
  797. package/core/dist/runtime-v2/candidate-audit.js +47 -0
  798. package/core/dist/runtime-v2/candidate-audit.js.map +1 -0
  799. package/core/dist/runtime-v2/candidate-intake-service.d.ts +43 -0
  800. package/core/dist/runtime-v2/candidate-intake-service.d.ts.map +1 -0
  801. package/core/dist/runtime-v2/candidate-intake-service.js +117 -0
  802. package/core/dist/runtime-v2/candidate-intake-service.js.map +1 -0
  803. package/core/dist/runtime-v2/candidate-intake.d.ts +219 -0
  804. package/core/dist/runtime-v2/candidate-intake.d.ts.map +1 -0
  805. package/core/dist/runtime-v2/candidate-intake.js +178 -0
  806. package/core/dist/runtime-v2/candidate-intake.js.map +1 -0
  807. package/core/dist/runtime-v2/cli/diagnose.d.ts +127 -0
  808. package/core/dist/runtime-v2/cli/diagnose.d.ts.map +1 -0
  809. package/core/dist/runtime-v2/cli/diagnose.js +113 -0
  810. package/core/dist/runtime-v2/cli/diagnose.js.map +1 -0
  811. package/core/dist/runtime-v2/cli/index.d.ts +5 -0
  812. package/core/dist/runtime-v2/cli/index.d.ts.map +1 -0
  813. package/core/dist/runtime-v2/cli/index.js +3 -0
  814. package/core/dist/runtime-v2/cli/index.js.map +1 -0
  815. package/core/dist/runtime-v2/cli/probe.d.ts +31 -0
  816. package/core/dist/runtime-v2/cli/probe.d.ts.map +1 -0
  817. package/core/dist/runtime-v2/cli/probe.js +58 -0
  818. package/core/dist/runtime-v2/cli/probe.js.map +1 -0
  819. package/core/dist/runtime-v2/context-payload.d.ts +298 -0
  820. package/core/dist/runtime-v2/context-payload.d.ts.map +1 -0
  821. package/core/dist/runtime-v2/context-payload.js +140 -0
  822. package/core/dist/runtime-v2/context-payload.js.map +1 -0
  823. package/core/dist/runtime-v2/control-plane-triage.d.ts +32 -0
  824. package/core/dist/runtime-v2/control-plane-triage.d.ts.map +1 -0
  825. package/core/dist/runtime-v2/control-plane-triage.js +220 -0
  826. package/core/dist/runtime-v2/control-plane-triage.js.map +1 -0
  827. package/core/dist/runtime-v2/correction/correction-types.d.ts +87 -0
  828. package/core/dist/runtime-v2/correction/correction-types.d.ts.map +1 -0
  829. package/core/dist/runtime-v2/correction/correction-types.js +66 -0
  830. package/core/dist/runtime-v2/correction/correction-types.js.map +1 -0
  831. package/core/dist/runtime-v2/correction/index.d.ts +2 -0
  832. package/core/dist/runtime-v2/correction/index.d.ts.map +1 -0
  833. package/core/dist/runtime-v2/correction/index.js +2 -0
  834. package/core/dist/runtime-v2/correction/index.js.map +1 -0
  835. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts +2 -0
  836. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts.map +1 -0
  837. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js +170 -0
  838. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js.map +1 -0
  839. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts +2 -0
  840. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts.map +1 -0
  841. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js +314 -0
  842. package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js.map +1 -0
  843. package/core/dist/runtime-v2/diagnostician-output.d.ts +94 -0
  844. package/core/dist/runtime-v2/diagnostician-output.d.ts.map +1 -0
  845. package/core/dist/runtime-v2/diagnostician-output.js +65 -0
  846. package/core/dist/runtime-v2/diagnostician-output.js.map +1 -0
  847. package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts +125 -0
  848. package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +1 -0
  849. package/core/dist/runtime-v2/diagnostician-prompt-builder.js +154 -0
  850. package/core/dist/runtime-v2/diagnostician-prompt-builder.js.map +1 -0
  851. package/core/dist/runtime-v2/error-categories.d.ts +42 -0
  852. package/core/dist/runtime-v2/error-categories.d.ts.map +1 -0
  853. package/core/dist/runtime-v2/error-categories.js +119 -0
  854. package/core/dist/runtime-v2/error-categories.js.map +1 -0
  855. package/core/dist/runtime-v2/evolution/evolution-types.d.ts +709 -0
  856. package/core/dist/runtime-v2/evolution/evolution-types.d.ts.map +1 -0
  857. package/core/dist/runtime-v2/evolution/evolution-types.js +410 -0
  858. package/core/dist/runtime-v2/evolution/evolution-types.js.map +1 -0
  859. package/core/dist/runtime-v2/evolution/index.d.ts +2 -0
  860. package/core/dist/runtime-v2/evolution/index.d.ts.map +1 -0
  861. package/core/dist/runtime-v2/evolution/index.js +2 -0
  862. package/core/dist/runtime-v2/evolution/index.js.map +1 -0
  863. package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.d.ts +2 -0
  864. package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.d.ts.map +1 -0
  865. package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +298 -0
  866. package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -0
  867. package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts +35 -0
  868. package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -0
  869. package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +124 -0
  870. package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -0
  871. package/core/dist/runtime-v2/feature-flags/index.d.ts +3 -0
  872. package/core/dist/runtime-v2/feature-flags/index.d.ts.map +1 -0
  873. package/core/dist/runtime-v2/feature-flags/index.js +2 -0
  874. package/core/dist/runtime-v2/feature-flags/index.js.map +1 -0
  875. package/core/dist/runtime-v2/full-trace-contract.d.ts +79 -0
  876. package/core/dist/runtime-v2/full-trace-contract.d.ts.map +1 -0
  877. package/core/dist/runtime-v2/full-trace-contract.js +464 -0
  878. package/core/dist/runtime-v2/full-trace-contract.js.map +1 -0
  879. package/core/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.d.ts +2 -0
  880. package/core/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.d.ts.map +1 -0
  881. package/core/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.js +626 -0
  882. package/core/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.js.map +1 -0
  883. package/core/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.d.ts +2 -0
  884. package/core/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.d.ts.map +1 -0
  885. package/core/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.js +212 -0
  886. package/core/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.js.map +1 -0
  887. package/core/dist/runtime-v2/gfi/gfi-kernel.d.ts +12 -0
  888. package/core/dist/runtime-v2/gfi/gfi-kernel.d.ts.map +1 -0
  889. package/core/dist/runtime-v2/gfi/gfi-kernel.js +148 -0
  890. package/core/dist/runtime-v2/gfi/gfi-kernel.js.map +1 -0
  891. package/core/dist/runtime-v2/gfi/gfi-policy.d.ts +3 -0
  892. package/core/dist/runtime-v2/gfi/gfi-policy.d.ts.map +1 -0
  893. package/core/dist/runtime-v2/gfi/gfi-policy.js +23 -0
  894. package/core/dist/runtime-v2/gfi/gfi-policy.js.map +1 -0
  895. package/core/dist/runtime-v2/gfi/gfi-read-model.d.ts +78 -0
  896. package/core/dist/runtime-v2/gfi/gfi-read-model.d.ts.map +1 -0
  897. package/core/dist/runtime-v2/gfi/gfi-read-model.js +129 -0
  898. package/core/dist/runtime-v2/gfi/gfi-read-model.js.map +1 -0
  899. package/core/dist/runtime-v2/gfi/gfi-types.d.ts +70 -0
  900. package/core/dist/runtime-v2/gfi/gfi-types.d.ts.map +1 -0
  901. package/core/dist/runtime-v2/gfi/gfi-types.js +2 -0
  902. package/core/dist/runtime-v2/gfi/gfi-types.js.map +1 -0
  903. package/core/dist/runtime-v2/gfi/index.d.ts +6 -0
  904. package/core/dist/runtime-v2/gfi/index.d.ts.map +1 -0
  905. package/core/dist/runtime-v2/gfi/index.js +4 -0
  906. package/core/dist/runtime-v2/gfi/index.js.map +1 -0
  907. package/core/dist/runtime-v2/golden-trace-candidate-builder.d.ts +23 -0
  908. package/core/dist/runtime-v2/golden-trace-candidate-builder.d.ts.map +1 -0
  909. package/core/dist/runtime-v2/golden-trace-candidate-builder.js +193 -0
  910. package/core/dist/runtime-v2/golden-trace-candidate-builder.js.map +1 -0
  911. package/core/dist/runtime-v2/golden-trace-replay-adapter.d.ts +18 -0
  912. package/core/dist/runtime-v2/golden-trace-replay-adapter.d.ts.map +1 -0
  913. package/core/dist/runtime-v2/golden-trace-replay-adapter.js +18 -0
  914. package/core/dist/runtime-v2/golden-trace-replay-adapter.js.map +1 -0
  915. package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts +42 -0
  916. package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts.map +1 -0
  917. package/core/dist/runtime-v2/golden-trace-replay-validator.js +220 -0
  918. package/core/dist/runtime-v2/golden-trace-replay-validator.js.map +1 -0
  919. package/core/dist/runtime-v2/golden-trace.d.ts +80 -0
  920. package/core/dist/runtime-v2/golden-trace.d.ts.map +1 -0
  921. package/core/dist/runtime-v2/golden-trace.js +158 -0
  922. package/core/dist/runtime-v2/golden-trace.js.map +1 -0
  923. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts +2 -0
  924. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts.map +1 -0
  925. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js +92 -0
  926. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js.map +1 -0
  927. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts +2 -0
  928. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts.map +1 -0
  929. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js +134 -0
  930. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js.map +1 -0
  931. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts +2 -0
  932. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts.map +1 -0
  933. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js +226 -0
  934. package/core/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js.map +1 -0
  935. package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts +3 -0
  936. package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts.map +1 -0
  937. package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.js +5 -0
  938. package/core/dist/runtime-v2/idle-trigger/idle-trigger-decision.js.map +1 -0
  939. package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts +4 -0
  940. package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts.map +1 -0
  941. package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.js +81 -0
  942. package/core/dist/runtime-v2/idle-trigger/idle-trigger-policy.js.map +1 -0
  943. package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts +29 -0
  944. package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts.map +1 -0
  945. package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.js +15 -0
  946. package/core/dist/runtime-v2/idle-trigger/idle-trigger-types.js.map +1 -0
  947. package/core/dist/runtime-v2/idle-trigger/index.d.ts +5 -0
  948. package/core/dist/runtime-v2/idle-trigger/index.d.ts.map +1 -0
  949. package/core/dist/runtime-v2/idle-trigger/index.js +4 -0
  950. package/core/dist/runtime-v2/idle-trigger/index.js.map +1 -0
  951. package/core/dist/runtime-v2/index.d.ts +281 -0
  952. package/core/dist/runtime-v2/index.d.ts.map +1 -0
  953. package/core/dist/runtime-v2/index.js +224 -0
  954. package/core/dist/runtime-v2/index.js.map +1 -0
  955. package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.d.ts +2 -0
  956. package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.d.ts.map +1 -0
  957. package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js +57 -0
  958. package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js.map +1 -0
  959. package/core/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.d.ts +2 -0
  960. package/core/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.d.ts.map +1 -0
  961. package/core/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.js +182 -0
  962. package/core/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.js.map +1 -0
  963. package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.d.ts +2 -0
  964. package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.d.ts.map +1 -0
  965. package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.js +112 -0
  966. package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.js.map +1 -0
  967. package/core/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.d.ts +2 -0
  968. package/core/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.d.ts.map +1 -0
  969. package/core/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.js +176 -0
  970. package/core/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.js.map +1 -0
  971. package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.d.ts +2 -0
  972. package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.d.ts.map +1 -0
  973. package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js +297 -0
  974. package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js.map +1 -0
  975. package/core/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.d.ts +2 -0
  976. package/core/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.d.ts.map +1 -0
  977. package/core/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.js +149 -0
  978. package/core/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.js.map +1 -0
  979. package/core/dist/runtime-v2/internalization/__tests__/queue-actionability.test.d.ts +2 -0
  980. package/core/dist/runtime-v2/internalization/__tests__/queue-actionability.test.d.ts.map +1 -0
  981. package/core/dist/runtime-v2/internalization/__tests__/queue-actionability.test.js +92 -0
  982. package/core/dist/runtime-v2/internalization/__tests__/queue-actionability.test.js.map +1 -0
  983. package/core/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.d.ts +2 -0
  984. package/core/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.d.ts.map +1 -0
  985. package/core/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.js +431 -0
  986. package/core/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.js.map +1 -0
  987. package/core/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.d.ts +2 -0
  988. package/core/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.d.ts.map +1 -0
  989. package/core/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.js +763 -0
  990. package/core/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.js.map +1 -0
  991. package/core/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.d.ts +2 -0
  992. package/core/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.d.ts.map +1 -0
  993. package/core/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.js +75 -0
  994. package/core/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.js.map +1 -0
  995. package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.d.ts +2 -0
  996. package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.d.ts.map +1 -0
  997. package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js +56 -0
  998. package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js.map +1 -0
  999. package/core/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.d.ts +2 -0
  1000. package/core/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.d.ts.map +1 -0
  1001. package/core/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.js +141 -0
  1002. package/core/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.js.map +1 -0
  1003. package/core/dist/runtime-v2/internalization/artificer-output.d.ts +67 -0
  1004. package/core/dist/runtime-v2/internalization/artificer-output.d.ts.map +1 -0
  1005. package/core/dist/runtime-v2/internalization/artificer-output.js +103 -0
  1006. package/core/dist/runtime-v2/internalization/artificer-output.js.map +1 -0
  1007. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts +24 -0
  1008. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts.map +1 -0
  1009. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js +62 -0
  1010. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js.map +1 -0
  1011. package/core/dist/runtime-v2/internalization/artificer-runner.d.ts +77 -0
  1012. package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -0
  1013. package/core/dist/runtime-v2/internalization/artificer-runner.js +521 -0
  1014. package/core/dist/runtime-v2/internalization/artificer-runner.js.map +1 -0
  1015. package/core/dist/runtime-v2/internalization/compile-result.d.ts +20 -0
  1016. package/core/dist/runtime-v2/internalization/compile-result.d.ts.map +1 -0
  1017. package/core/dist/runtime-v2/internalization/compile-result.js +8 -0
  1018. package/core/dist/runtime-v2/internalization/compile-result.js.map +1 -0
  1019. package/core/dist/runtime-v2/internalization/correction-proposal.d.ts +38 -0
  1020. package/core/dist/runtime-v2/internalization/correction-proposal.d.ts.map +1 -0
  1021. package/core/dist/runtime-v2/internalization/correction-proposal.js +322 -0
  1022. package/core/dist/runtime-v2/internalization/correction-proposal.js.map +1 -0
  1023. package/core/dist/runtime-v2/internalization/deprecated-readiness.d.ts +20 -0
  1024. package/core/dist/runtime-v2/internalization/deprecated-readiness.d.ts.map +1 -0
  1025. package/core/dist/runtime-v2/internalization/deprecated-readiness.js +75 -0
  1026. package/core/dist/runtime-v2/internalization/deprecated-readiness.js.map +1 -0
  1027. package/core/dist/runtime-v2/internalization/deprecated-readiness.test.d.ts +2 -0
  1028. package/core/dist/runtime-v2/internalization/deprecated-readiness.test.d.ts.map +1 -0
  1029. package/core/dist/runtime-v2/internalization/deprecated-readiness.test.js +127 -0
  1030. package/core/dist/runtime-v2/internalization/deprecated-readiness.test.js.map +1 -0
  1031. package/core/dist/runtime-v2/internalization/dreamer-output.d.ts +120 -0
  1032. package/core/dist/runtime-v2/internalization/dreamer-output.d.ts.map +1 -0
  1033. package/core/dist/runtime-v2/internalization/dreamer-output.js +92 -0
  1034. package/core/dist/runtime-v2/internalization/dreamer-output.js.map +1 -0
  1035. package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts +41 -0
  1036. package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts.map +1 -0
  1037. package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.js +43 -0
  1038. package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.js.map +1 -0
  1039. package/core/dist/runtime-v2/internalization/dreamer-runner.d.ts +134 -0
  1040. package/core/dist/runtime-v2/internalization/dreamer-runner.d.ts.map +1 -0
  1041. package/core/dist/runtime-v2/internalization/dreamer-runner.js +636 -0
  1042. package/core/dist/runtime-v2/internalization/dreamer-runner.js.map +1 -0
  1043. package/core/dist/runtime-v2/internalization/evaluator-output.d.ts +71 -0
  1044. package/core/dist/runtime-v2/internalization/evaluator-output.d.ts.map +1 -0
  1045. package/core/dist/runtime-v2/internalization/evaluator-output.js +113 -0
  1046. package/core/dist/runtime-v2/internalization/evaluator-output.js.map +1 -0
  1047. package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts +24 -0
  1048. package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts.map +1 -0
  1049. package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js +49 -0
  1050. package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js.map +1 -0
  1051. package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts +80 -0
  1052. package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -0
  1053. package/core/dist/runtime-v2/internalization/evaluator-runner.js +661 -0
  1054. package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -0
  1055. package/core/dist/runtime-v2/internalization/index.d.ts +81 -0
  1056. package/core/dist/runtime-v2/internalization/index.d.ts.map +1 -0
  1057. package/core/dist/runtime-v2/internalization/index.js +47 -0
  1058. package/core/dist/runtime-v2/internalization/index.js.map +1 -0
  1059. package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts +57 -0
  1060. package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts.map +1 -0
  1061. package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.js +99 -0
  1062. package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.js.map +1 -0
  1063. package/core/dist/runtime-v2/internalization/internalization-job-graph.d.ts +78 -0
  1064. package/core/dist/runtime-v2/internalization/internalization-job-graph.d.ts.map +1 -0
  1065. package/core/dist/runtime-v2/internalization/internalization-job-graph.js +153 -0
  1066. package/core/dist/runtime-v2/internalization/internalization-job-graph.js.map +1 -0
  1067. package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts +182 -0
  1068. package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +1 -0
  1069. package/core/dist/runtime-v2/internalization/internalization-orchestrator.js +355 -0
  1070. package/core/dist/runtime-v2/internalization/internalization-orchestrator.js.map +1 -0
  1071. package/core/dist/runtime-v2/internalization/internalization-route.d.ts +28 -0
  1072. package/core/dist/runtime-v2/internalization/internalization-route.d.ts.map +1 -0
  1073. package/core/dist/runtime-v2/internalization/internalization-route.js +112 -0
  1074. package/core/dist/runtime-v2/internalization/internalization-route.js.map +1 -0
  1075. package/core/dist/runtime-v2/internalization/internalization-state-machine.d.ts +157 -0
  1076. package/core/dist/runtime-v2/internalization/internalization-state-machine.d.ts.map +1 -0
  1077. package/core/dist/runtime-v2/internalization/internalization-state-machine.js +274 -0
  1078. package/core/dist/runtime-v2/internalization/internalization-state-machine.js.map +1 -0
  1079. package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts +92 -0
  1080. package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts.map +1 -0
  1081. package/core/dist/runtime-v2/internalization/internalization-task-guards.js +152 -0
  1082. package/core/dist/runtime-v2/internalization/internalization-task-guards.js.map +1 -0
  1083. package/core/dist/runtime-v2/internalization/lifecycle-datasource.d.ts +18 -0
  1084. package/core/dist/runtime-v2/internalization/lifecycle-datasource.d.ts.map +1 -0
  1085. package/core/dist/runtime-v2/internalization/lifecycle-datasource.js +2 -0
  1086. package/core/dist/runtime-v2/internalization/lifecycle-datasource.js.map +1 -0
  1087. package/core/dist/runtime-v2/internalization/lifecycle-metrics.d.ts +24 -0
  1088. package/core/dist/runtime-v2/internalization/lifecycle-metrics.d.ts.map +1 -0
  1089. package/core/dist/runtime-v2/internalization/lifecycle-metrics.js +124 -0
  1090. package/core/dist/runtime-v2/internalization/lifecycle-metrics.js.map +1 -0
  1091. package/core/dist/runtime-v2/internalization/lifecycle-metrics.test.d.ts +2 -0
  1092. package/core/dist/runtime-v2/internalization/lifecycle-metrics.test.d.ts.map +1 -0
  1093. package/core/dist/runtime-v2/internalization/lifecycle-metrics.test.js +201 -0
  1094. package/core/dist/runtime-v2/internalization/lifecycle-metrics.test.js.map +1 -0
  1095. package/core/dist/runtime-v2/internalization/lifecycle-read-model.d.ts +11 -0
  1096. package/core/dist/runtime-v2/internalization/lifecycle-read-model.d.ts.map +1 -0
  1097. package/core/dist/runtime-v2/internalization/lifecycle-read-model.js +155 -0
  1098. package/core/dist/runtime-v2/internalization/lifecycle-read-model.js.map +1 -0
  1099. package/core/dist/runtime-v2/internalization/lifecycle-read-model.test.d.ts +2 -0
  1100. package/core/dist/runtime-v2/internalization/lifecycle-read-model.test.d.ts.map +1 -0
  1101. package/core/dist/runtime-v2/internalization/lifecycle-read-model.test.js +408 -0
  1102. package/core/dist/runtime-v2/internalization/lifecycle-read-model.test.js.map +1 -0
  1103. package/core/dist/runtime-v2/internalization/lifecycle-types.d.ts +75 -0
  1104. package/core/dist/runtime-v2/internalization/lifecycle-types.d.ts.map +1 -0
  1105. package/core/dist/runtime-v2/internalization/lifecycle-types.js +2 -0
  1106. package/core/dist/runtime-v2/internalization/lifecycle-types.js.map +1 -0
  1107. package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts +140 -0
  1108. package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +1 -0
  1109. package/core/dist/runtime-v2/internalization/peer-runner-contracts.js +124 -0
  1110. package/core/dist/runtime-v2/internalization/peer-runner-contracts.js.map +1 -0
  1111. package/core/dist/runtime-v2/internalization/philosopher-output.d.ts +56 -0
  1112. package/core/dist/runtime-v2/internalization/philosopher-output.d.ts.map +1 -0
  1113. package/core/dist/runtime-v2/internalization/philosopher-output.js +69 -0
  1114. package/core/dist/runtime-v2/internalization/philosopher-output.js.map +1 -0
  1115. package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts +41 -0
  1116. package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts.map +1 -0
  1117. package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.js +50 -0
  1118. package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.js.map +1 -0
  1119. package/core/dist/runtime-v2/internalization/philosopher-runner.d.ts +103 -0
  1120. package/core/dist/runtime-v2/internalization/philosopher-runner.d.ts.map +1 -0
  1121. package/core/dist/runtime-v2/internalization/philosopher-runner.js +519 -0
  1122. package/core/dist/runtime-v2/internalization/philosopher-runner.js.map +1 -0
  1123. package/core/dist/runtime-v2/internalization/pi-artifact-store.d.ts +13 -0
  1124. package/core/dist/runtime-v2/internalization/pi-artifact-store.d.ts.map +1 -0
  1125. package/core/dist/runtime-v2/internalization/pi-artifact-store.js +65 -0
  1126. package/core/dist/runtime-v2/internalization/pi-artifact-store.js.map +1 -0
  1127. package/core/dist/runtime-v2/internalization/pi-artifact.d.ts +23 -0
  1128. package/core/dist/runtime-v2/internalization/pi-artifact.d.ts.map +1 -0
  1129. package/core/dist/runtime-v2/internalization/pi-artifact.js +2 -0
  1130. package/core/dist/runtime-v2/internalization/pi-artifact.js.map +1 -0
  1131. package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts +80 -0
  1132. package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +1 -0
  1133. package/core/dist/runtime-v2/internalization/pitask-metadata.js +194 -0
  1134. package/core/dist/runtime-v2/internalization/pitask-metadata.js.map +1 -0
  1135. package/core/dist/runtime-v2/internalization/queue-actionability.d.ts +37 -0
  1136. package/core/dist/runtime-v2/internalization/queue-actionability.d.ts.map +1 -0
  1137. package/core/dist/runtime-v2/internalization/queue-actionability.js +50 -0
  1138. package/core/dist/runtime-v2/internalization/queue-actionability.js.map +1 -0
  1139. package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts +20 -0
  1140. package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts.map +1 -0
  1141. package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.js +151 -0
  1142. package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.js.map +1 -0
  1143. package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts +36 -0
  1144. package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts.map +1 -0
  1145. package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js +227 -0
  1146. package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js.map +1 -0
  1147. package/core/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts +74 -0
  1148. package/core/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts.map +1 -0
  1149. package/core/dist/runtime-v2/internalization/rollout-reviewer-output.js +117 -0
  1150. package/core/dist/runtime-v2/internalization/rollout-reviewer-output.js.map +1 -0
  1151. package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts +24 -0
  1152. package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts.map +1 -0
  1153. package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js +52 -0
  1154. package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js.map +1 -0
  1155. package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts +76 -0
  1156. package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts.map +1 -0
  1157. package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js +538 -0
  1158. package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js.map +1 -0
  1159. package/core/dist/runtime-v2/internalization/routing-policy.d.ts +24 -0
  1160. package/core/dist/runtime-v2/internalization/routing-policy.d.ts.map +1 -0
  1161. package/core/dist/runtime-v2/internalization/routing-policy.js +169 -0
  1162. package/core/dist/runtime-v2/internalization/routing-policy.js.map +1 -0
  1163. package/core/dist/runtime-v2/internalization/routing-policy.test.d.ts +2 -0
  1164. package/core/dist/runtime-v2/internalization/routing-policy.test.d.ts.map +1 -0
  1165. package/core/dist/runtime-v2/internalization/routing-policy.test.js +286 -0
  1166. package/core/dist/runtime-v2/internalization/routing-policy.test.js.map +1 -0
  1167. package/core/dist/runtime-v2/internalization/rule-code-validator.d.ts +21 -0
  1168. package/core/dist/runtime-v2/internalization/rule-code-validator.d.ts.map +1 -0
  1169. package/core/dist/runtime-v2/internalization/rule-code-validator.js +42 -0
  1170. package/core/dist/runtime-v2/internalization/rule-code-validator.js.map +1 -0
  1171. package/core/dist/runtime-v2/internalization/rule-host-adapter.d.ts +16 -0
  1172. package/core/dist/runtime-v2/internalization/rule-host-adapter.d.ts.map +1 -0
  1173. package/core/dist/runtime-v2/internalization/rule-host-adapter.js +13 -0
  1174. package/core/dist/runtime-v2/internalization/rule-host-adapter.js.map +1 -0
  1175. package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts +61 -0
  1176. package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts.map +1 -0
  1177. package/core/dist/runtime-v2/internalization/rule-host-contracts.js +14 -0
  1178. package/core/dist/runtime-v2/internalization/rule-host-contracts.js.map +1 -0
  1179. package/core/dist/runtime-v2/internalization/rule-host-evaluator.d.ts +36 -0
  1180. package/core/dist/runtime-v2/internalization/rule-host-evaluator.d.ts.map +1 -0
  1181. package/core/dist/runtime-v2/internalization/rule-host-evaluator.js +103 -0
  1182. package/core/dist/runtime-v2/internalization/rule-host-evaluator.js.map +1 -0
  1183. package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts +27 -0
  1184. package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts.map +1 -0
  1185. package/core/dist/runtime-v2/internalization/rule-host-helpers.js +27 -0
  1186. package/core/dist/runtime-v2/internalization/rule-host-helpers.js.map +1 -0
  1187. package/core/dist/runtime-v2/internalization/scribe-output.d.ts +74 -0
  1188. package/core/dist/runtime-v2/internalization/scribe-output.d.ts.map +1 -0
  1189. package/core/dist/runtime-v2/internalization/scribe-output.js +98 -0
  1190. package/core/dist/runtime-v2/internalization/scribe-output.js.map +1 -0
  1191. package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts +24 -0
  1192. package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts.map +1 -0
  1193. package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js +60 -0
  1194. package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js.map +1 -0
  1195. package/core/dist/runtime-v2/internalization/scribe-runner.d.ts +77 -0
  1196. package/core/dist/runtime-v2/internalization/scribe-runner.d.ts.map +1 -0
  1197. package/core/dist/runtime-v2/internalization/scribe-runner.js +518 -0
  1198. package/core/dist/runtime-v2/internalization/scribe-runner.js.map +1 -0
  1199. package/core/dist/runtime-v2/internalization/template-generator.d.ts +21 -0
  1200. package/core/dist/runtime-v2/internalization/template-generator.d.ts.map +1 -0
  1201. package/core/dist/runtime-v2/internalization/template-generator.js +61 -0
  1202. package/core/dist/runtime-v2/internalization/template-generator.js.map +1 -0
  1203. package/core/dist/runtime-v2/internalization/trainer-output.d.ts +122 -0
  1204. package/core/dist/runtime-v2/internalization/trainer-output.d.ts.map +1 -0
  1205. package/core/dist/runtime-v2/internalization/trainer-output.js +223 -0
  1206. package/core/dist/runtime-v2/internalization/trainer-output.js.map +1 -0
  1207. package/core/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts +24 -0
  1208. package/core/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts.map +1 -0
  1209. package/core/dist/runtime-v2/internalization/trainer-prompt-builder.js +57 -0
  1210. package/core/dist/runtime-v2/internalization/trainer-prompt-builder.js.map +1 -0
  1211. package/core/dist/runtime-v2/internalization/trainer-runner.d.ts +76 -0
  1212. package/core/dist/runtime-v2/internalization/trainer-runner.d.ts.map +1 -0
  1213. package/core/dist/runtime-v2/internalization/trainer-runner.js +538 -0
  1214. package/core/dist/runtime-v2/internalization/trainer-runner.js.map +1 -0
  1215. package/core/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts +42 -0
  1216. package/core/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts.map +1 -0
  1217. package/core/dist/runtime-v2/internalization-chain-integrity-read-model.js +413 -0
  1218. package/core/dist/runtime-v2/internalization-chain-integrity-read-model.js.map +1 -0
  1219. package/core/dist/runtime-v2/internalization-integrity-remediation.d.ts +17 -0
  1220. package/core/dist/runtime-v2/internalization-integrity-remediation.d.ts.map +1 -0
  1221. package/core/dist/runtime-v2/internalization-integrity-remediation.js +269 -0
  1222. package/core/dist/runtime-v2/internalization-integrity-remediation.js.map +1 -0
  1223. package/core/dist/runtime-v2/internalization-queue-read-model.d.ts +93 -0
  1224. package/core/dist/runtime-v2/internalization-queue-read-model.d.ts.map +1 -0
  1225. package/core/dist/runtime-v2/internalization-queue-read-model.js +217 -0
  1226. package/core/dist/runtime-v2/internalization-queue-read-model.js.map +1 -0
  1227. package/core/dist/runtime-v2/l1-hard-cap.d.ts +21 -0
  1228. package/core/dist/runtime-v2/l1-hard-cap.d.ts.map +1 -0
  1229. package/core/dist/runtime-v2/l1-hard-cap.js +51 -0
  1230. package/core/dist/runtime-v2/l1-hard-cap.js.map +1 -0
  1231. package/core/dist/runtime-v2/nocturnal/candidate-scoring.d.ts +486 -0
  1232. package/core/dist/runtime-v2/nocturnal/candidate-scoring.d.ts.map +1 -0
  1233. package/core/dist/runtime-v2/nocturnal/candidate-scoring.js +493 -0
  1234. package/core/dist/runtime-v2/nocturnal/candidate-scoring.js.map +1 -0
  1235. package/core/dist/runtime-v2/nocturnal/index.d.ts +9 -0
  1236. package/core/dist/runtime-v2/nocturnal/index.d.ts.map +1 -0
  1237. package/core/dist/runtime-v2/nocturnal/index.js +5 -0
  1238. package/core/dist/runtime-v2/nocturnal/index.js.map +1 -0
  1239. package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts +185 -0
  1240. package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts.map +1 -0
  1241. package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.js +912 -0
  1242. package/core/dist/runtime-v2/nocturnal/nocturnal-compliance.js.map +1 -0
  1243. package/core/dist/runtime-v2/nocturnal/snapshot-contract.d.ts +192 -0
  1244. package/core/dist/runtime-v2/nocturnal/snapshot-contract.d.ts.map +1 -0
  1245. package/core/dist/runtime-v2/nocturnal/snapshot-contract.js +185 -0
  1246. package/core/dist/runtime-v2/nocturnal/snapshot-contract.js.map +1 -0
  1247. package/core/dist/runtime-v2/nocturnal/trinity-types.d.ts +421 -0
  1248. package/core/dist/runtime-v2/nocturnal/trinity-types.d.ts.map +1 -0
  1249. package/core/dist/runtime-v2/nocturnal/trinity-types.js +182 -0
  1250. package/core/dist/runtime-v2/nocturnal/trinity-types.js.map +1 -0
  1251. package/core/dist/runtime-v2/observer/__tests__/agent-scheduler.test.d.ts +2 -0
  1252. package/core/dist/runtime-v2/observer/__tests__/agent-scheduler.test.d.ts.map +1 -0
  1253. package/core/dist/runtime-v2/observer/__tests__/agent-scheduler.test.js +49 -0
  1254. package/core/dist/runtime-v2/observer/__tests__/agent-scheduler.test.js.map +1 -0
  1255. package/core/dist/runtime-v2/observer/__tests__/correction-observer.test.d.ts +2 -0
  1256. package/core/dist/runtime-v2/observer/__tests__/correction-observer.test.d.ts.map +1 -0
  1257. package/core/dist/runtime-v2/observer/__tests__/correction-observer.test.js +144 -0
  1258. package/core/dist/runtime-v2/observer/__tests__/correction-observer.test.js.map +1 -0
  1259. package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.d.ts +2 -0
  1260. package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.d.ts.map +1 -0
  1261. package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js +67 -0
  1262. package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js.map +1 -0
  1263. package/core/dist/runtime-v2/observer/__tests__/empathy-observer.test.d.ts +2 -0
  1264. package/core/dist/runtime-v2/observer/__tests__/empathy-observer.test.d.ts.map +1 -0
  1265. package/core/dist/runtime-v2/observer/__tests__/empathy-observer.test.js +84 -0
  1266. package/core/dist/runtime-v2/observer/__tests__/empathy-observer.test.js.map +1 -0
  1267. package/core/dist/runtime-v2/observer/agent-scheduler.d.ts +40 -0
  1268. package/core/dist/runtime-v2/observer/agent-scheduler.d.ts.map +1 -0
  1269. package/core/dist/runtime-v2/observer/agent-scheduler.js +30 -0
  1270. package/core/dist/runtime-v2/observer/agent-scheduler.js.map +1 -0
  1271. package/core/dist/runtime-v2/observer/correction-observer.d.ts +59 -0
  1272. package/core/dist/runtime-v2/observer/correction-observer.d.ts.map +1 -0
  1273. package/core/dist/runtime-v2/observer/correction-observer.js +178 -0
  1274. package/core/dist/runtime-v2/observer/correction-observer.js.map +1 -0
  1275. package/core/dist/runtime-v2/observer/empathy-observer.d.ts +35 -0
  1276. package/core/dist/runtime-v2/observer/empathy-observer.d.ts.map +1 -0
  1277. package/core/dist/runtime-v2/observer/empathy-observer.js +98 -0
  1278. package/core/dist/runtime-v2/observer/empathy-observer.js.map +1 -0
  1279. package/core/dist/runtime-v2/operator-health-read-model.d.ts +45 -0
  1280. package/core/dist/runtime-v2/operator-health-read-model.d.ts.map +1 -0
  1281. package/core/dist/runtime-v2/operator-health-read-model.js +189 -0
  1282. package/core/dist/runtime-v2/operator-health-read-model.js.map +1 -0
  1283. package/core/dist/runtime-v2/pain-chain-read-model.d.ts +40 -0
  1284. package/core/dist/runtime-v2/pain-chain-read-model.d.ts.map +1 -0
  1285. package/core/dist/runtime-v2/pain-chain-read-model.js +293 -0
  1286. package/core/dist/runtime-v2/pain-chain-read-model.js.map +1 -0
  1287. package/core/dist/runtime-v2/pain-flood-simulation.d.ts +62 -0
  1288. package/core/dist/runtime-v2/pain-flood-simulation.d.ts.map +1 -0
  1289. package/core/dist/runtime-v2/pain-flood-simulation.js +152 -0
  1290. package/core/dist/runtime-v2/pain-flood-simulation.js.map +1 -0
  1291. package/core/dist/runtime-v2/pain-signal-bridge.d.ts +72 -0
  1292. package/core/dist/runtime-v2/pain-signal-bridge.d.ts.map +1 -0
  1293. package/core/dist/runtime-v2/pain-signal-bridge.js +340 -0
  1294. package/core/dist/runtime-v2/pain-signal-bridge.js.map +1 -0
  1295. package/core/dist/runtime-v2/pain-signal-observability.d.ts +19 -0
  1296. package/core/dist/runtime-v2/pain-signal-observability.d.ts.map +1 -0
  1297. package/core/dist/runtime-v2/pain-signal-observability.js +161 -0
  1298. package/core/dist/runtime-v2/pain-signal-observability.js.map +1 -0
  1299. package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts +82 -0
  1300. package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +1 -0
  1301. package/core/dist/runtime-v2/pain-signal-runtime-factory.js +279 -0
  1302. package/core/dist/runtime-v2/pain-signal-runtime-factory.js.map +1 -0
  1303. package/core/dist/runtime-v2/pain-to-principle-service.d.ts +53 -0
  1304. package/core/dist/runtime-v2/pain-to-principle-service.d.ts.map +1 -0
  1305. package/core/dist/runtime-v2/pain-to-principle-service.js +114 -0
  1306. package/core/dist/runtime-v2/pain-to-principle-service.js.map +1 -0
  1307. package/core/dist/runtime-v2/proven-channel-baseline.d.ts +56 -0
  1308. package/core/dist/runtime-v2/proven-channel-baseline.d.ts.map +1 -0
  1309. package/core/dist/runtime-v2/proven-channel-baseline.js +480 -0
  1310. package/core/dist/runtime-v2/proven-channel-baseline.js.map +1 -0
  1311. package/core/dist/runtime-v2/pruning-mask.d.ts +27 -0
  1312. package/core/dist/runtime-v2/pruning-mask.d.ts.map +1 -0
  1313. package/core/dist/runtime-v2/pruning-mask.js +59 -0
  1314. package/core/dist/runtime-v2/pruning-mask.js.map +1 -0
  1315. package/core/dist/runtime-v2/pruning-read-model.d.ts +76 -0
  1316. package/core/dist/runtime-v2/pruning-read-model.d.ts.map +1 -0
  1317. package/core/dist/runtime-v2/pruning-read-model.js +266 -0
  1318. package/core/dist/runtime-v2/pruning-read-model.js.map +1 -0
  1319. package/core/dist/runtime-v2/pruning-review-log.d.ts +41 -0
  1320. package/core/dist/runtime-v2/pruning-review-log.d.ts.map +1 -0
  1321. package/core/dist/runtime-v2/pruning-review-log.js +106 -0
  1322. package/core/dist/runtime-v2/pruning-review-log.js.map +1 -0
  1323. package/core/dist/runtime-v2/recovery-sweep-service.d.ts +14 -0
  1324. package/core/dist/runtime-v2/recovery-sweep-service.d.ts.map +1 -0
  1325. package/core/dist/runtime-v2/recovery-sweep-service.js +26 -0
  1326. package/core/dist/runtime-v2/recovery-sweep-service.js.map +1 -0
  1327. package/core/dist/runtime-v2/remediation-contract.d.ts +46 -0
  1328. package/core/dist/runtime-v2/remediation-contract.d.ts.map +1 -0
  1329. package/core/dist/runtime-v2/remediation-contract.js +29 -0
  1330. package/core/dist/runtime-v2/remediation-contract.js.map +1 -0
  1331. package/core/dist/runtime-v2/runner/__tests__/default-validator.test.d.ts +2 -0
  1332. package/core/dist/runtime-v2/runner/__tests__/default-validator.test.d.ts.map +1 -0
  1333. package/core/dist/runtime-v2/runner/__tests__/default-validator.test.js +526 -0
  1334. package/core/dist/runtime-v2/runner/__tests__/default-validator.test.js.map +1 -0
  1335. package/core/dist/runtime-v2/runner/__tests__/diagnose.test.d.ts +2 -0
  1336. package/core/dist/runtime-v2/runner/__tests__/diagnose.test.d.ts.map +1 -0
  1337. package/core/dist/runtime-v2/runner/__tests__/diagnose.test.js +81 -0
  1338. package/core/dist/runtime-v2/runner/__tests__/diagnose.test.js.map +1 -0
  1339. package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts +2 -0
  1340. package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts.map +1 -0
  1341. package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js +378 -0
  1342. package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js.map +1 -0
  1343. package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts +2 -0
  1344. package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts.map +1 -0
  1345. package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js +642 -0
  1346. package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js.map +1 -0
  1347. package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts +2 -0
  1348. package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts.map +1 -0
  1349. package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js +286 -0
  1350. package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js.map +1 -0
  1351. package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts +2 -0
  1352. package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts.map +1 -0
  1353. package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js +320 -0
  1354. package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js.map +1 -0
  1355. package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts +2 -0
  1356. package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts.map +1 -0
  1357. package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js +261 -0
  1358. package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js.map +1 -0
  1359. package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts +2 -0
  1360. package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts.map +1 -0
  1361. package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js +405 -0
  1362. package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js.map +1 -0
  1363. package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts +2 -0
  1364. package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts.map +1 -0
  1365. package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js +347 -0
  1366. package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js.map +1 -0
  1367. package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts +2 -0
  1368. package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts.map +1 -0
  1369. package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js +186 -0
  1370. package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js.map +1 -0
  1371. package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts +2 -0
  1372. package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts.map +1 -0
  1373. package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js +355 -0
  1374. package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js.map +1 -0
  1375. package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts +2 -0
  1376. package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts.map +1 -0
  1377. package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js +488 -0
  1378. package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js.map +1 -0
  1379. package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts +2 -0
  1380. package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts.map +1 -0
  1381. package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js +171 -0
  1382. package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js.map +1 -0
  1383. package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts +2 -0
  1384. package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts.map +1 -0
  1385. package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.js +182 -0
  1386. package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.js.map +1 -0
  1387. package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts +2 -0
  1388. package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts.map +1 -0
  1389. package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js +276 -0
  1390. package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js.map +1 -0
  1391. package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.d.ts +2 -0
  1392. package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.d.ts.map +1 -0
  1393. package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js +462 -0
  1394. package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js.map +1 -0
  1395. package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.d.ts +2 -0
  1396. package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.d.ts.map +1 -0
  1397. package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.js +160 -0
  1398. package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.js.map +1 -0
  1399. package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts +2 -0
  1400. package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts.map +1 -0
  1401. package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js +272 -0
  1402. package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js.map +1 -0
  1403. package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts +2 -0
  1404. package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts.map +1 -0
  1405. package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.js +67 -0
  1406. package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.js.map +1 -0
  1407. package/core/dist/runtime-v2/runner/default-validator.d.ts +10 -0
  1408. package/core/dist/runtime-v2/runner/default-validator.d.ts.map +1 -0
  1409. package/core/dist/runtime-v2/runner/default-validator.js +168 -0
  1410. package/core/dist/runtime-v2/runner/default-validator.js.map +1 -0
  1411. package/core/dist/runtime-v2/runner/diagnostician-runner-options.d.ts +37 -0
  1412. package/core/dist/runtime-v2/runner/diagnostician-runner-options.d.ts.map +1 -0
  1413. package/core/dist/runtime-v2/runner/diagnostician-runner-options.js +19 -0
  1414. package/core/dist/runtime-v2/runner/diagnostician-runner-options.js.map +1 -0
  1415. package/core/dist/runtime-v2/runner/diagnostician-runner.d.ts +87 -0
  1416. package/core/dist/runtime-v2/runner/diagnostician-runner.d.ts.map +1 -0
  1417. package/core/dist/runtime-v2/runner/diagnostician-runner.js +417 -0
  1418. package/core/dist/runtime-v2/runner/diagnostician-runner.js.map +1 -0
  1419. package/core/dist/runtime-v2/runner/diagnostician-validator.d.ts +56 -0
  1420. package/core/dist/runtime-v2/runner/diagnostician-validator.d.ts.map +1 -0
  1421. package/core/dist/runtime-v2/runner/diagnostician-validator.js +11 -0
  1422. package/core/dist/runtime-v2/runner/diagnostician-validator.js.map +1 -0
  1423. package/core/dist/runtime-v2/runner/runner-phase.d.ts +21 -0
  1424. package/core/dist/runtime-v2/runner/runner-phase.d.ts.map +1 -0
  1425. package/core/dist/runtime-v2/runner/runner-phase.js +22 -0
  1426. package/core/dist/runtime-v2/runner/runner-phase.js.map +1 -0
  1427. package/core/dist/runtime-v2/runner/runner-result.d.ts +20 -0
  1428. package/core/dist/runtime-v2/runner/runner-result.d.ts.map +1 -0
  1429. package/core/dist/runtime-v2/runner/runner-result.js +2 -0
  1430. package/core/dist/runtime-v2/runner/runner-result.js.map +1 -0
  1431. package/core/dist/runtime-v2/runtime-protocol.d.ts +165 -0
  1432. package/core/dist/runtime-v2/runtime-protocol.d.ts.map +1 -0
  1433. package/core/dist/runtime-v2/runtime-protocol.js +130 -0
  1434. package/core/dist/runtime-v2/runtime-protocol.js.map +1 -0
  1435. package/core/dist/runtime-v2/runtime-selector.d.ts +77 -0
  1436. package/core/dist/runtime-v2/runtime-selector.d.ts.map +1 -0
  1437. package/core/dist/runtime-v2/runtime-selector.js +23 -0
  1438. package/core/dist/runtime-v2/runtime-selector.js.map +1 -0
  1439. package/core/dist/runtime-v2/runtime-state-handle.d.ts +10 -0
  1440. package/core/dist/runtime-v2/runtime-state-handle.d.ts.map +1 -0
  1441. package/core/dist/runtime-v2/runtime-state-handle.js +30 -0
  1442. package/core/dist/runtime-v2/runtime-state-handle.js.map +1 -0
  1443. package/core/dist/runtime-v2/schema-conformance-read-model.d.ts +24 -0
  1444. package/core/dist/runtime-v2/schema-conformance-read-model.d.ts.map +1 -0
  1445. package/core/dist/runtime-v2/schema-conformance-read-model.js +178 -0
  1446. package/core/dist/runtime-v2/schema-conformance-read-model.js.map +1 -0
  1447. package/core/dist/runtime-v2/schema-version.d.ts +20 -0
  1448. package/core/dist/runtime-v2/schema-version.d.ts.map +1 -0
  1449. package/core/dist/runtime-v2/schema-version.js +20 -0
  1450. package/core/dist/runtime-v2/schema-version.js.map +1 -0
  1451. package/core/dist/runtime-v2/store/artifact/artifact-store.d.ts +28 -0
  1452. package/core/dist/runtime-v2/store/artifact/artifact-store.d.ts.map +1 -0
  1453. package/core/dist/runtime-v2/store/artifact/artifact-store.js +2 -0
  1454. package/core/dist/runtime-v2/store/artifact/artifact-store.js.map +1 -0
  1455. package/core/dist/runtime-v2/store/artifact/index.d.ts +4 -0
  1456. package/core/dist/runtime-v2/store/artifact/index.d.ts.map +1 -0
  1457. package/core/dist/runtime-v2/store/artifact/index.js +3 -0
  1458. package/core/dist/runtime-v2/store/artifact/index.js.map +1 -0
  1459. package/core/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts +14 -0
  1460. package/core/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts.map +1 -0
  1461. package/core/dist/runtime-v2/store/artifact/memory-artifact-store.js +25 -0
  1462. package/core/dist/runtime-v2/store/artifact/memory-artifact-store.js.map +1 -0
  1463. package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts +12 -0
  1464. package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts.map +1 -0
  1465. package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.js +51 -0
  1466. package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.js.map +1 -0
  1467. package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts +13 -0
  1468. package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts.map +1 -0
  1469. package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js +98 -0
  1470. package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js.map +1 -0
  1471. package/core/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.d.ts +2 -0
  1472. package/core/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.d.ts.map +1 -0
  1473. package/core/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.js +34 -0
  1474. package/core/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.js.map +1 -0
  1475. package/core/dist/runtime-v2/store/candidate/candidate-store.d.ts +42 -0
  1476. package/core/dist/runtime-v2/store/candidate/candidate-store.d.ts.map +1 -0
  1477. package/core/dist/runtime-v2/store/candidate/candidate-store.js +2 -0
  1478. package/core/dist/runtime-v2/store/candidate/candidate-store.js.map +1 -0
  1479. package/core/dist/runtime-v2/store/candidate/index.d.ts +4 -0
  1480. package/core/dist/runtime-v2/store/candidate/index.d.ts.map +1 -0
  1481. package/core/dist/runtime-v2/store/candidate/index.js +3 -0
  1482. package/core/dist/runtime-v2/store/candidate/index.js.map +1 -0
  1483. package/core/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts +22 -0
  1484. package/core/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts.map +1 -0
  1485. package/core/dist/runtime-v2/store/candidate/memory-candidate-store.js +36 -0
  1486. package/core/dist/runtime-v2/store/candidate/memory-candidate-store.js.map +1 -0
  1487. package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts +4 -0
  1488. package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts.map +1 -0
  1489. package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js +14 -0
  1490. package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js.map +1 -0
  1491. package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts +13 -0
  1492. package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts.map +1 -0
  1493. package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js +61 -0
  1494. package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js.map +1 -0
  1495. package/core/dist/runtime-v2/store/commit/commit-store.d.ts +19 -0
  1496. package/core/dist/runtime-v2/store/commit/commit-store.d.ts.map +1 -0
  1497. package/core/dist/runtime-v2/store/commit/commit-store.js +2 -0
  1498. package/core/dist/runtime-v2/store/commit/commit-store.js.map +1 -0
  1499. package/core/dist/runtime-v2/store/commit/diagnostician-committer.d.ts +47 -0
  1500. package/core/dist/runtime-v2/store/commit/diagnostician-committer.d.ts.map +1 -0
  1501. package/core/dist/runtime-v2/store/commit/diagnostician-committer.js +140 -0
  1502. package/core/dist/runtime-v2/store/commit/diagnostician-committer.js.map +1 -0
  1503. package/core/dist/runtime-v2/store/commit/index.d.ts +7 -0
  1504. package/core/dist/runtime-v2/store/commit/index.d.ts.map +1 -0
  1505. package/core/dist/runtime-v2/store/commit/index.js +4 -0
  1506. package/core/dist/runtime-v2/store/commit/index.js.map +1 -0
  1507. package/core/dist/runtime-v2/store/commit/memory-commit-store.d.ts +16 -0
  1508. package/core/dist/runtime-v2/store/commit/memory-commit-store.d.ts.map +1 -0
  1509. package/core/dist/runtime-v2/store/commit/memory-commit-store.js +18 -0
  1510. package/core/dist/runtime-v2/store/commit/memory-commit-store.js.map +1 -0
  1511. package/core/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts +11 -0
  1512. package/core/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts.map +1 -0
  1513. package/core/dist/runtime-v2/store/commit/sqlite-commit-store.js +25 -0
  1514. package/core/dist/runtime-v2/store/commit/sqlite-commit-store.js.map +1 -0
  1515. package/core/dist/runtime-v2/store/concurrent-lease.test.d.ts +2 -0
  1516. package/core/dist/runtime-v2/store/concurrent-lease.test.d.ts.map +1 -0
  1517. package/core/dist/runtime-v2/store/concurrent-lease.test.js +129 -0
  1518. package/core/dist/runtime-v2/store/concurrent-lease.test.js.map +1 -0
  1519. package/core/dist/runtime-v2/store/context/context-assembler.d.ts +19 -0
  1520. package/core/dist/runtime-v2/store/context/context-assembler.d.ts.map +1 -0
  1521. package/core/dist/runtime-v2/store/context/context-assembler.js +2 -0
  1522. package/core/dist/runtime-v2/store/context/context-assembler.js.map +1 -0
  1523. package/core/dist/runtime-v2/store/context/index.d.ts +4 -0
  1524. package/core/dist/runtime-v2/store/context/index.d.ts.map +1 -0
  1525. package/core/dist/runtime-v2/store/context/index.js +3 -0
  1526. package/core/dist/runtime-v2/store/context/index.js.map +1 -0
  1527. package/core/dist/runtime-v2/store/context/resilient-context-assembler.d.ts +13 -0
  1528. package/core/dist/runtime-v2/store/context/resilient-context-assembler.d.ts.map +1 -0
  1529. package/core/dist/runtime-v2/store/context/resilient-context-assembler.js +72 -0
  1530. package/core/dist/runtime-v2/store/context/resilient-context-assembler.js.map +1 -0
  1531. package/core/dist/runtime-v2/store/context/resilient-context-assembler.test.d.ts +2 -0
  1532. package/core/dist/runtime-v2/store/context/resilient-context-assembler.test.d.ts.map +1 -0
  1533. package/core/dist/runtime-v2/store/context/resilient-context-assembler.test.js +113 -0
  1534. package/core/dist/runtime-v2/store/context/resilient-context-assembler.test.js.map +1 -0
  1535. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts +28 -0
  1536. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts.map +1 -0
  1537. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js +277 -0
  1538. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +1 -0
  1539. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.d.ts +2 -0
  1540. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.d.ts.map +1 -0
  1541. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js +1181 -0
  1542. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js.map +1 -0
  1543. package/core/dist/runtime-v2/store/diagnostician-committer.test.d.ts +2 -0
  1544. package/core/dist/runtime-v2/store/diagnostician-committer.test.d.ts.map +1 -0
  1545. package/core/dist/runtime-v2/store/diagnostician-committer.test.js +326 -0
  1546. package/core/dist/runtime-v2/store/diagnostician-committer.test.js.map +1 -0
  1547. package/core/dist/runtime-v2/store/event-emitter.d.ts +18 -0
  1548. package/core/dist/runtime-v2/store/event-emitter.d.ts.map +1 -0
  1549. package/core/dist/runtime-v2/store/event-emitter.js +78 -0
  1550. package/core/dist/runtime-v2/store/event-emitter.js.map +1 -0
  1551. package/core/dist/runtime-v2/store/history/history-query.d.ts +57 -0
  1552. package/core/dist/runtime-v2/store/history/history-query.d.ts.map +1 -0
  1553. package/core/dist/runtime-v2/store/history/history-query.js +7 -0
  1554. package/core/dist/runtime-v2/store/history/history-query.js.map +1 -0
  1555. package/core/dist/runtime-v2/store/history/index.d.ts +5 -0
  1556. package/core/dist/runtime-v2/store/history/index.d.ts.map +1 -0
  1557. package/core/dist/runtime-v2/store/history/index.js +4 -0
  1558. package/core/dist/runtime-v2/store/history/index.js.map +1 -0
  1559. package/core/dist/runtime-v2/store/history/resilient-history-query.d.ts +20 -0
  1560. package/core/dist/runtime-v2/store/history/resilient-history-query.d.ts.map +1 -0
  1561. package/core/dist/runtime-v2/store/history/resilient-history-query.js +40 -0
  1562. package/core/dist/runtime-v2/store/history/resilient-history-query.js.map +1 -0
  1563. package/core/dist/runtime-v2/store/history/resilient-history-query.test.d.ts +2 -0
  1564. package/core/dist/runtime-v2/store/history/resilient-history-query.test.d.ts.map +1 -0
  1565. package/core/dist/runtime-v2/store/history/resilient-history-query.test.js +128 -0
  1566. package/core/dist/runtime-v2/store/history/resilient-history-query.test.js.map +1 -0
  1567. package/core/dist/runtime-v2/store/history/sqlite-history-query.d.ts +24 -0
  1568. package/core/dist/runtime-v2/store/history/sqlite-history-query.d.ts.map +1 -0
  1569. package/core/dist/runtime-v2/store/history/sqlite-history-query.js +166 -0
  1570. package/core/dist/runtime-v2/store/history/sqlite-history-query.js.map +1 -0
  1571. package/core/dist/runtime-v2/store/history/sqlite-history-query.test.d.ts +2 -0
  1572. package/core/dist/runtime-v2/store/history/sqlite-history-query.test.d.ts.map +1 -0
  1573. package/core/dist/runtime-v2/store/history/sqlite-history-query.test.js +536 -0
  1574. package/core/dist/runtime-v2/store/history/sqlite-history-query.test.js.map +1 -0
  1575. package/core/dist/runtime-v2/store/idempotent-transitions.test.d.ts +2 -0
  1576. package/core/dist/runtime-v2/store/idempotent-transitions.test.d.ts.map +1 -0
  1577. package/core/dist/runtime-v2/store/idempotent-transitions.test.js +168 -0
  1578. package/core/dist/runtime-v2/store/idempotent-transitions.test.js.map +1 -0
  1579. package/core/dist/runtime-v2/store/lifecycle/index.d.ts +7 -0
  1580. package/core/dist/runtime-v2/store/lifecycle/index.d.ts.map +1 -0
  1581. package/core/dist/runtime-v2/store/lifecycle/index.js +4 -0
  1582. package/core/dist/runtime-v2/store/lifecycle/index.js.map +1 -0
  1583. package/core/dist/runtime-v2/store/lifecycle/lease-manager.d.ts +91 -0
  1584. package/core/dist/runtime-v2/store/lifecycle/lease-manager.d.ts.map +1 -0
  1585. package/core/dist/runtime-v2/store/lifecycle/lease-manager.js +154 -0
  1586. package/core/dist/runtime-v2/store/lifecycle/lease-manager.js.map +1 -0
  1587. package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.d.ts +2 -0
  1588. package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.d.ts.map +1 -0
  1589. package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.js +243 -0
  1590. package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.js.map +1 -0
  1591. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts +82 -0
  1592. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts.map +1 -0
  1593. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.js +145 -0
  1594. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.js.map +1 -0
  1595. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.d.ts +2 -0
  1596. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.d.ts.map +1 -0
  1597. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js +318 -0
  1598. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js.map +1 -0
  1599. package/core/dist/runtime-v2/store/lifecycle/retry-policy.d.ts +105 -0
  1600. package/core/dist/runtime-v2/store/lifecycle/retry-policy.d.ts.map +1 -0
  1601. package/core/dist/runtime-v2/store/lifecycle/retry-policy.js +48 -0
  1602. package/core/dist/runtime-v2/store/lifecycle/retry-policy.js.map +1 -0
  1603. package/core/dist/runtime-v2/store/lifecycle/retry-policy.test.d.ts +2 -0
  1604. package/core/dist/runtime-v2/store/lifecycle/retry-policy.test.d.ts.map +1 -0
  1605. package/core/dist/runtime-v2/store/lifecycle/retry-policy.test.js +86 -0
  1606. package/core/dist/runtime-v2/store/lifecycle/retry-policy.test.js.map +1 -0
  1607. package/core/dist/runtime-v2/store/run/index.d.ts +4 -0
  1608. package/core/dist/runtime-v2/store/run/index.d.ts.map +1 -0
  1609. package/core/dist/runtime-v2/store/run/index.js +3 -0
  1610. package/core/dist/runtime-v2/store/run/index.js.map +1 -0
  1611. package/core/dist/runtime-v2/store/run/memory-run-store.d.ts +15 -0
  1612. package/core/dist/runtime-v2/store/run/memory-run-store.d.ts.map +1 -0
  1613. package/core/dist/runtime-v2/store/run/memory-run-store.js +33 -0
  1614. package/core/dist/runtime-v2/store/run/memory-run-store.js.map +1 -0
  1615. package/core/dist/runtime-v2/store/run/run-store.d.ts +43 -0
  1616. package/core/dist/runtime-v2/store/run/run-store.d.ts.map +1 -0
  1617. package/core/dist/runtime-v2/store/run/run-store.js +2 -0
  1618. package/core/dist/runtime-v2/store/run/run-store.js.map +1 -0
  1619. package/core/dist/runtime-v2/store/run/sqlite-run-store.d.ts +14 -0
  1620. package/core/dist/runtime-v2/store/run/sqlite-run-store.d.ts.map +1 -0
  1621. package/core/dist/runtime-v2/store/run/sqlite-run-store.js +108 -0
  1622. package/core/dist/runtime-v2/store/run/sqlite-run-store.js.map +1 -0
  1623. package/core/dist/runtime-v2/store/runtime-state-manager.d.ts +116 -0
  1624. package/core/dist/runtime-v2/store/runtime-state-manager.d.ts.map +1 -0
  1625. package/core/dist/runtime-v2/store/runtime-state-manager.integration.test.d.ts +2 -0
  1626. package/core/dist/runtime-v2/store/runtime-state-manager.integration.test.d.ts.map +1 -0
  1627. package/core/dist/runtime-v2/store/runtime-state-manager.integration.test.js +187 -0
  1628. package/core/dist/runtime-v2/store/runtime-state-manager.integration.test.js.map +1 -0
  1629. package/core/dist/runtime-v2/store/runtime-state-manager.js +321 -0
  1630. package/core/dist/runtime-v2/store/runtime-state-manager.js.map +1 -0
  1631. package/core/dist/runtime-v2/store/schema-conformance.test.d.ts +2 -0
  1632. package/core/dist/runtime-v2/store/schema-conformance.test.d.ts.map +1 -0
  1633. package/core/dist/runtime-v2/store/schema-conformance.test.js +607 -0
  1634. package/core/dist/runtime-v2/store/schema-conformance.test.js.map +1 -0
  1635. package/core/dist/runtime-v2/store/sqlite-connection-close.test.d.ts +2 -0
  1636. package/core/dist/runtime-v2/store/sqlite-connection-close.test.d.ts.map +1 -0
  1637. package/core/dist/runtime-v2/store/sqlite-connection-close.test.js +57 -0
  1638. package/core/dist/runtime-v2/store/sqlite-connection-close.test.js.map +1 -0
  1639. package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.d.ts +2 -0
  1640. package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.d.ts.map +1 -0
  1641. package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.js +261 -0
  1642. package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.js.map +1 -0
  1643. package/core/dist/runtime-v2/store/sqlite-connection.d.ts +39 -0
  1644. package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -0
  1645. package/core/dist/runtime-v2/store/sqlite-connection.js +364 -0
  1646. package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -0
  1647. package/core/dist/runtime-v2/store/sqlite-run-store.test.d.ts +2 -0
  1648. package/core/dist/runtime-v2/store/sqlite-run-store.test.d.ts.map +1 -0
  1649. package/core/dist/runtime-v2/store/sqlite-run-store.test.js +152 -0
  1650. package/core/dist/runtime-v2/store/sqlite-run-store.test.js.map +1 -0
  1651. package/core/dist/runtime-v2/store/sqlite-task-store.test.d.ts +2 -0
  1652. package/core/dist/runtime-v2/store/sqlite-task-store.test.d.ts.map +1 -0
  1653. package/core/dist/runtime-v2/store/sqlite-task-store.test.js +166 -0
  1654. package/core/dist/runtime-v2/store/sqlite-task-store.test.js.map +1 -0
  1655. package/core/dist/runtime-v2/store/task/index.d.ts +4 -0
  1656. package/core/dist/runtime-v2/store/task/index.d.ts.map +1 -0
  1657. package/core/dist/runtime-v2/store/task/index.js +3 -0
  1658. package/core/dist/runtime-v2/store/task/index.js.map +1 -0
  1659. package/core/dist/runtime-v2/store/task/memory-task-store.d.ts +15 -0
  1660. package/core/dist/runtime-v2/store/task/memory-task-store.d.ts.map +1 -0
  1661. package/core/dist/runtime-v2/store/task/memory-task-store.js +43 -0
  1662. package/core/dist/runtime-v2/store/task/memory-task-store.js.map +1 -0
  1663. package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts +14 -0
  1664. package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +1 -0
  1665. package/core/dist/runtime-v2/store/task/sqlite-task-store.js +144 -0
  1666. package/core/dist/runtime-v2/store/task/sqlite-task-store.js.map +1 -0
  1667. package/core/dist/runtime-v2/store/task/task-store.d.ts +48 -0
  1668. package/core/dist/runtime-v2/store/task/task-store.d.ts.map +1 -0
  1669. package/core/dist/runtime-v2/store/task/task-store.js +2 -0
  1670. package/core/dist/runtime-v2/store/task/task-store.js.map +1 -0
  1671. package/core/dist/runtime-v2/store/task-migration.d.ts +89 -0
  1672. package/core/dist/runtime-v2/store/task-migration.d.ts.map +1 -0
  1673. package/core/dist/runtime-v2/store/task-migration.js +79 -0
  1674. package/core/dist/runtime-v2/store/task-migration.js.map +1 -0
  1675. package/core/dist/runtime-v2/store/trajectory/index.d.ts +5 -0
  1676. package/core/dist/runtime-v2/store/trajectory/index.d.ts.map +1 -0
  1677. package/core/dist/runtime-v2/store/trajectory/index.js +3 -0
  1678. package/core/dist/runtime-v2/store/trajectory/index.js.map +1 -0
  1679. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts +40 -0
  1680. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts.map +1 -0
  1681. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.js +18 -0
  1682. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.js.map +1 -0
  1683. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.d.ts +2 -0
  1684. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.d.ts.map +1 -0
  1685. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.js +320 -0
  1686. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.js.map +1 -0
  1687. package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts +23 -0
  1688. package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts.map +1 -0
  1689. package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js +140 -0
  1690. package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js.map +1 -0
  1691. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts +27 -0
  1692. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts.map +1 -0
  1693. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js +183 -0
  1694. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js.map +1 -0
  1695. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.d.ts +2 -0
  1696. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.d.ts.map +1 -0
  1697. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js +328 -0
  1698. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js.map +1 -0
  1699. package/core/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts +30 -0
  1700. package/core/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts.map +1 -0
  1701. package/core/dist/runtime-v2/store/trajectory/trajectory-locator.js +2 -0
  1702. package/core/dist/runtime-v2/store/trajectory/trajectory-locator.js.map +1 -0
  1703. package/core/dist/runtime-v2/store/workspace-isolation.test.d.ts +2 -0
  1704. package/core/dist/runtime-v2/store/workspace-isolation.test.d.ts.map +1 -0
  1705. package/core/dist/runtime-v2/store/workspace-isolation.test.js +139 -0
  1706. package/core/dist/runtime-v2/store/workspace-isolation.test.js.map +1 -0
  1707. package/core/dist/runtime-v2/story-a-demo.d.ts +67 -0
  1708. package/core/dist/runtime-v2/story-a-demo.d.ts.map +1 -0
  1709. package/core/dist/runtime-v2/story-a-demo.js +188 -0
  1710. package/core/dist/runtime-v2/story-a-demo.js.map +1 -0
  1711. package/core/dist/runtime-v2/synthetic-baseline.d.ts +28 -0
  1712. package/core/dist/runtime-v2/synthetic-baseline.d.ts.map +1 -0
  1713. package/core/dist/runtime-v2/synthetic-baseline.js +116 -0
  1714. package/core/dist/runtime-v2/synthetic-baseline.js.map +1 -0
  1715. package/core/dist/runtime-v2/task-status.d.ts +99 -0
  1716. package/core/dist/runtime-v2/task-status.d.ts.map +1 -0
  1717. package/core/dist/runtime-v2/task-status.js +88 -0
  1718. package/core/dist/runtime-v2/task-status.js.map +1 -0
  1719. package/core/dist/runtime-v2/trace-refiner-agent.d.ts +71 -0
  1720. package/core/dist/runtime-v2/trace-refiner-agent.d.ts.map +1 -0
  1721. package/core/dist/runtime-v2/trace-refiner-agent.js +239 -0
  1722. package/core/dist/runtime-v2/trace-refiner-agent.js.map +1 -0
  1723. package/core/dist/runtime-v2/trace-refiner.d.ts +47 -0
  1724. package/core/dist/runtime-v2/trace-refiner.d.ts.map +1 -0
  1725. package/core/dist/runtime-v2/trace-refiner.js +261 -0
  1726. package/core/dist/runtime-v2/trace-refiner.js.map +1 -0
  1727. package/core/dist/runtime-v2/types/artifact-lineage.d.ts +19 -0
  1728. package/core/dist/runtime-v2/types/artifact-lineage.d.ts.map +1 -0
  1729. package/core/dist/runtime-v2/types/artifact-lineage.js +6 -0
  1730. package/core/dist/runtime-v2/types/artifact-lineage.js.map +1 -0
  1731. package/core/dist/runtime-v2/types/event-payload.d.ts +232 -0
  1732. package/core/dist/runtime-v2/types/event-payload.d.ts.map +1 -0
  1733. package/core/dist/runtime-v2/types/event-payload.js +149 -0
  1734. package/core/dist/runtime-v2/types/event-payload.js.map +1 -0
  1735. package/core/dist/runtime-v2/types/event-types.d.ts +843 -0
  1736. package/core/dist/runtime-v2/types/event-types.d.ts.map +1 -0
  1737. package/core/dist/runtime-v2/types/event-types.js +486 -0
  1738. package/core/dist/runtime-v2/types/event-types.js.map +1 -0
  1739. package/core/dist/runtime-v2/types/hygiene-types.d.ts +40 -0
  1740. package/core/dist/runtime-v2/types/hygiene-types.d.ts.map +1 -0
  1741. package/core/dist/runtime-v2/types/hygiene-types.js +30 -0
  1742. package/core/dist/runtime-v2/types/hygiene-types.js.map +1 -0
  1743. package/core/dist/runtime-v2/types/index.d.ts +32 -0
  1744. package/core/dist/runtime-v2/types/index.d.ts.map +1 -0
  1745. package/core/dist/runtime-v2/types/index.js +17 -0
  1746. package/core/dist/runtime-v2/types/index.js.map +1 -0
  1747. package/core/dist/runtime-v2/types/pain-signal.d.ts +63 -0
  1748. package/core/dist/runtime-v2/types/pain-signal.d.ts.map +1 -0
  1749. package/core/dist/runtime-v2/types/pain-signal.js +118 -0
  1750. package/core/dist/runtime-v2/types/pain-signal.js.map +1 -0
  1751. package/core/dist/runtime-v2/types/pd-task-types.d.ts +139 -0
  1752. package/core/dist/runtime-v2/types/pd-task-types.d.ts.map +1 -0
  1753. package/core/dist/runtime-v2/types/pd-task-types.js +99 -0
  1754. package/core/dist/runtime-v2/types/pd-task-types.js.map +1 -0
  1755. package/core/dist/runtime-v2/types/principle-dependency.d.ts +15 -0
  1756. package/core/dist/runtime-v2/types/principle-dependency.d.ts.map +1 -0
  1757. package/core/dist/runtime-v2/types/principle-dependency.js +8 -0
  1758. package/core/dist/runtime-v2/types/principle-dependency.js.map +1 -0
  1759. package/core/dist/runtime-v2/types/principle-enums.d.ts +19 -0
  1760. package/core/dist/runtime-v2/types/principle-enums.d.ts.map +1 -0
  1761. package/core/dist/runtime-v2/types/principle-enums.js +59 -0
  1762. package/core/dist/runtime-v2/types/principle-enums.js.map +1 -0
  1763. package/core/dist/runtime-v2/types/principle-lifecycle-event.d.ts +28 -0
  1764. package/core/dist/runtime-v2/types/principle-lifecycle-event.d.ts.map +1 -0
  1765. package/core/dist/runtime-v2/types/principle-lifecycle-event.js +24 -0
  1766. package/core/dist/runtime-v2/types/principle-lifecycle-event.js.map +1 -0
  1767. package/core/dist/runtime-v2/types/principle-schema.d.ts +136 -0
  1768. package/core/dist/runtime-v2/types/principle-schema.d.ts.map +1 -0
  1769. package/core/dist/runtime-v2/types/principle-schema.js +71 -0
  1770. package/core/dist/runtime-v2/types/principle-schema.js.map +1 -0
  1771. package/core/dist/runtime-v2/types/principle-tree-store.d.ts +89 -0
  1772. package/core/dist/runtime-v2/types/principle-tree-store.d.ts.map +1 -0
  1773. package/core/dist/runtime-v2/types/principle-tree-store.js +11 -0
  1774. package/core/dist/runtime-v2/types/principle-tree-store.js.map +1 -0
  1775. package/core/dist/runtime-v2/types/principle-value-metrics.d.ts +27 -0
  1776. package/core/dist/runtime-v2/types/principle-value-metrics.d.ts.map +1 -0
  1777. package/core/dist/runtime-v2/types/principle-value-metrics.js +14 -0
  1778. package/core/dist/runtime-v2/types/principle-value-metrics.js.map +1 -0
  1779. package/core/dist/runtime-v2/types/queue-types.d.ts +51 -0
  1780. package/core/dist/runtime-v2/types/queue-types.d.ts.map +1 -0
  1781. package/core/dist/runtime-v2/types/queue-types.js +44 -0
  1782. package/core/dist/runtime-v2/types/queue-types.js.map +1 -0
  1783. package/core/dist/runtime-v2/types/replay-types.d.ts +40 -0
  1784. package/core/dist/runtime-v2/types/replay-types.d.ts.map +1 -0
  1785. package/core/dist/runtime-v2/types/replay-types.js +2 -0
  1786. package/core/dist/runtime-v2/types/replay-types.js.map +1 -0
  1787. package/core/dist/runtime-v2/types/runtime-summary-types.d.ts +93 -0
  1788. package/core/dist/runtime-v2/types/runtime-summary-types.d.ts.map +1 -0
  1789. package/core/dist/runtime-v2/types/runtime-summary-types.js +35 -0
  1790. package/core/dist/runtime-v2/types/runtime-summary-types.js.map +1 -0
  1791. package/core/dist/runtime-v2/utils/cli-process-runner.d.ts +35 -0
  1792. package/core/dist/runtime-v2/utils/cli-process-runner.d.ts.map +1 -0
  1793. package/core/dist/runtime-v2/utils/cli-process-runner.js +259 -0
  1794. package/core/dist/runtime-v2/utils/cli-process-runner.js.map +1 -0
  1795. package/core/dist/runtime-v2/utils/cli-process-runner.test.d.ts +2 -0
  1796. package/core/dist/runtime-v2/utils/cli-process-runner.test.d.ts.map +1 -0
  1797. package/core/dist/runtime-v2/utils/cli-process-runner.test.js +111 -0
  1798. package/core/dist/runtime-v2/utils/cli-process-runner.test.js.map +1 -0
  1799. package/core/dist/storage-adapter.d.ts +59 -0
  1800. package/core/dist/storage-adapter.d.ts.map +1 -0
  1801. package/core/dist/storage-adapter.js +2 -0
  1802. package/core/dist/storage-adapter.js.map +1 -0
  1803. package/core/dist/telemetry-event.d.ts +102 -0
  1804. package/core/dist/telemetry-event.d.ts.map +1 -0
  1805. package/core/dist/telemetry-event.js +186 -0
  1806. package/core/dist/telemetry-event.js.map +1 -0
  1807. package/core/dist/trajectory-store.d.ts +45 -0
  1808. package/core/dist/trajectory-store.d.ts.map +1 -0
  1809. package/core/dist/trajectory-store.js +139 -0
  1810. package/core/dist/trajectory-store.js.map +1 -0
  1811. package/core/dist/types/workspace-resolver.d.ts +25 -0
  1812. package/core/dist/types/workspace-resolver.d.ts.map +1 -0
  1813. package/core/dist/types/workspace-resolver.js +10 -0
  1814. package/core/dist/types/workspace-resolver.js.map +1 -0
  1815. package/core/dist/types.d.ts +56 -0
  1816. package/core/dist/types.d.ts.map +1 -0
  1817. package/core/dist/types.js +16 -0
  1818. package/core/dist/types.js.map +1 -0
  1819. package/core/dist/workflow-funnel-loader.d.ts +143 -0
  1820. package/core/dist/workflow-funnel-loader.d.ts.map +1 -0
  1821. package/core/dist/workflow-funnel-loader.js +174 -0
  1822. package/core/dist/workflow-funnel-loader.js.map +1 -0
  1823. package/core/package.json +100 -0
  1824. package/dist/i18n.d.ts +6 -0
  1825. package/dist/i18n.d.ts.map +1 -0
  1826. package/dist/i18n.js +176 -0
  1827. package/dist/i18n.js.map +1 -0
  1828. package/dist/index.d.ts +1 -1
  1829. package/dist/index.d.ts.map +1 -1
  1830. package/dist/index.js +203 -122
  1831. package/dist/index.js.map +1 -1
  1832. package/dist/installer.d.ts +21 -6
  1833. package/dist/installer.d.ts.map +1 -1
  1834. package/dist/installer.js +779 -178
  1835. package/dist/installer.js.map +1 -1
  1836. package/dist/mvp-config.d.ts +81 -0
  1837. package/dist/mvp-config.d.ts.map +1 -0
  1838. package/dist/mvp-config.js +265 -0
  1839. package/dist/mvp-config.js.map +1 -0
  1840. package/dist/prompts.d.ts +8 -11
  1841. package/dist/prompts.d.ts.map +1 -1
  1842. package/dist/prompts.js +52 -80
  1843. package/dist/prompts.js.map +1 -1
  1844. package/dist/uninstaller.d.ts +10 -3
  1845. package/dist/uninstaller.d.ts.map +1 -1
  1846. package/dist/uninstaller.js +190 -48
  1847. package/dist/uninstaller.js.map +1 -1
  1848. package/dist/utils/env.d.ts +2 -0
  1849. package/dist/utils/env.d.ts.map +1 -1
  1850. package/dist/utils/env.js +25 -3
  1851. package/dist/utils/env.js.map +1 -1
  1852. package/dist/utils/logger.d.ts +1 -0
  1853. package/dist/utils/logger.d.ts.map +1 -1
  1854. package/dist/utils/logger.js +16 -8
  1855. package/dist/utils/logger.js.map +1 -1
  1856. package/package.json +19 -8
  1857. package/pd-cli/dist/commands/artifact.d.ts +14 -0
  1858. package/pd-cli/dist/commands/artifact.d.ts.map +1 -0
  1859. package/pd-cli/dist/commands/artifact.js +67 -0
  1860. package/pd-cli/dist/commands/artifact.js.map +1 -0
  1861. package/pd-cli/dist/commands/candidate.d.ts +83 -0
  1862. package/pd-cli/dist/commands/candidate.d.ts.map +1 -0
  1863. package/pd-cli/dist/commands/candidate.js +891 -0
  1864. package/pd-cli/dist/commands/candidate.js.map +1 -0
  1865. package/pd-cli/dist/commands/central-sync.d.ts +10 -0
  1866. package/pd-cli/dist/commands/central-sync.d.ts.map +1 -0
  1867. package/pd-cli/dist/commands/central-sync.js +32 -0
  1868. package/pd-cli/dist/commands/central-sync.js.map +1 -0
  1869. package/pd-cli/dist/commands/console.d.ts +9 -0
  1870. package/pd-cli/dist/commands/console.d.ts.map +1 -0
  1871. package/pd-cli/dist/commands/console.js +114 -0
  1872. package/pd-cli/dist/commands/console.js.map +1 -0
  1873. package/pd-cli/dist/commands/context.d.ts +7 -0
  1874. package/pd-cli/dist/commands/context.d.ts.map +1 -0
  1875. package/pd-cli/dist/commands/context.js +55 -0
  1876. package/pd-cli/dist/commands/context.js.map +1 -0
  1877. package/pd-cli/dist/commands/demo-story-a.d.ts +12 -0
  1878. package/pd-cli/dist/commands/demo-story-a.d.ts.map +1 -0
  1879. package/pd-cli/dist/commands/demo-story-a.js +175 -0
  1880. package/pd-cli/dist/commands/demo-story-a.js.map +1 -0
  1881. package/pd-cli/dist/commands/diagnose.d.ts +35 -0
  1882. package/pd-cli/dist/commands/diagnose.d.ts.map +1 -0
  1883. package/pd-cli/dist/commands/diagnose.js +390 -0
  1884. package/pd-cli/dist/commands/diagnose.js.map +1 -0
  1885. package/pd-cli/dist/commands/evolution-tasks-list.d.ts +15 -0
  1886. package/pd-cli/dist/commands/evolution-tasks-list.d.ts.map +1 -0
  1887. package/pd-cli/dist/commands/evolution-tasks-list.js +34 -0
  1888. package/pd-cli/dist/commands/evolution-tasks-list.js.map +1 -0
  1889. package/pd-cli/dist/commands/evolution-tasks-show.d.ts +14 -0
  1890. package/pd-cli/dist/commands/evolution-tasks-show.d.ts.map +1 -0
  1891. package/pd-cli/dist/commands/evolution-tasks-show.js +52 -0
  1892. package/pd-cli/dist/commands/evolution-tasks-show.js.map +1 -0
  1893. package/pd-cli/dist/commands/flow.d.ts +7 -0
  1894. package/pd-cli/dist/commands/flow.d.ts.map +1 -0
  1895. package/pd-cli/dist/commands/flow.js +57 -0
  1896. package/pd-cli/dist/commands/flow.js.map +1 -0
  1897. package/pd-cli/dist/commands/health.d.ts +16 -0
  1898. package/pd-cli/dist/commands/health.d.ts.map +1 -0
  1899. package/pd-cli/dist/commands/health.js +150 -0
  1900. package/pd-cli/dist/commands/health.js.map +1 -0
  1901. package/pd-cli/dist/commands/history.d.ts +11 -0
  1902. package/pd-cli/dist/commands/history.d.ts.map +1 -0
  1903. package/pd-cli/dist/commands/history.js +50 -0
  1904. package/pd-cli/dist/commands/history.js.map +1 -0
  1905. package/pd-cli/dist/commands/legacy-cleanup.d.ts +27 -0
  1906. package/pd-cli/dist/commands/legacy-cleanup.d.ts.map +1 -0
  1907. package/pd-cli/dist/commands/legacy-cleanup.js +171 -0
  1908. package/pd-cli/dist/commands/legacy-cleanup.js.map +1 -0
  1909. package/pd-cli/dist/commands/legacy-import.d.ts +7 -0
  1910. package/pd-cli/dist/commands/legacy-import.d.ts.map +1 -0
  1911. package/pd-cli/dist/commands/legacy-import.js +86 -0
  1912. package/pd-cli/dist/commands/legacy-import.js.map +1 -0
  1913. package/pd-cli/dist/commands/pain-record.d.ts +10 -0
  1914. package/pd-cli/dist/commands/pain-record.d.ts.map +1 -0
  1915. package/pd-cli/dist/commands/pain-record.js +162 -0
  1916. package/pd-cli/dist/commands/pain-record.js.map +1 -0
  1917. package/pd-cli/dist/commands/proven-channel-baseline.d.ts +12 -0
  1918. package/pd-cli/dist/commands/proven-channel-baseline.d.ts.map +1 -0
  1919. package/pd-cli/dist/commands/proven-channel-baseline.js +97 -0
  1920. package/pd-cli/dist/commands/proven-channel-baseline.js.map +1 -0
  1921. package/pd-cli/dist/commands/remediation-output.d.ts +40 -0
  1922. package/pd-cli/dist/commands/remediation-output.d.ts.map +1 -0
  1923. package/pd-cli/dist/commands/remediation-output.js +23 -0
  1924. package/pd-cli/dist/commands/remediation-output.js.map +1 -0
  1925. package/pd-cli/dist/commands/run.d.ts +10 -0
  1926. package/pd-cli/dist/commands/run.d.ts.map +1 -0
  1927. package/pd-cli/dist/commands/run.js +68 -0
  1928. package/pd-cli/dist/commands/run.js.map +1 -0
  1929. package/pd-cli/dist/commands/runtime-activation.d.ts +11 -0
  1930. package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -0
  1931. package/pd-cli/dist/commands/runtime-activation.js +150 -0
  1932. package/pd-cli/dist/commands/runtime-activation.js.map +1 -0
  1933. package/pd-cli/dist/commands/runtime-canary.d.ts +30 -0
  1934. package/pd-cli/dist/commands/runtime-canary.d.ts.map +1 -0
  1935. package/pd-cli/dist/commands/runtime-canary.js +343 -0
  1936. package/pd-cli/dist/commands/runtime-canary.js.map +1 -0
  1937. package/pd-cli/dist/commands/runtime-diagnostics-export.d.ts +20 -0
  1938. package/pd-cli/dist/commands/runtime-diagnostics-export.d.ts.map +1 -0
  1939. package/pd-cli/dist/commands/runtime-diagnostics-export.js +177 -0
  1940. package/pd-cli/dist/commands/runtime-diagnostics-export.js.map +1 -0
  1941. package/pd-cli/dist/commands/runtime-features.d.ts +26 -0
  1942. package/pd-cli/dist/commands/runtime-features.d.ts.map +1 -0
  1943. package/pd-cli/dist/commands/runtime-features.js +70 -0
  1944. package/pd-cli/dist/commands/runtime-features.js.map +1 -0
  1945. package/pd-cli/dist/commands/runtime-gfi-snapshot.d.ts +7 -0
  1946. package/pd-cli/dist/commands/runtime-gfi-snapshot.d.ts.map +1 -0
  1947. package/pd-cli/dist/commands/runtime-gfi-snapshot.js +101 -0
  1948. package/pd-cli/dist/commands/runtime-gfi-snapshot.js.map +1 -0
  1949. package/pd-cli/dist/commands/runtime-health-snapshot.d.ts +7 -0
  1950. package/pd-cli/dist/commands/runtime-health-snapshot.d.ts.map +1 -0
  1951. package/pd-cli/dist/commands/runtime-health-snapshot.js +93 -0
  1952. package/pd-cli/dist/commands/runtime-health-snapshot.js.map +1 -0
  1953. package/pd-cli/dist/commands/runtime-idle-trigger.d.ts +12 -0
  1954. package/pd-cli/dist/commands/runtime-idle-trigger.d.ts.map +1 -0
  1955. package/pd-cli/dist/commands/runtime-idle-trigger.js +102 -0
  1956. package/pd-cli/dist/commands/runtime-idle-trigger.js.map +1 -0
  1957. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts +9 -0
  1958. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -0
  1959. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +393 -0
  1960. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -0
  1961. package/pd-cli/dist/commands/runtime-internalization-integrity-repair.d.ts +9 -0
  1962. package/pd-cli/dist/commands/runtime-internalization-integrity-repair.d.ts.map +1 -0
  1963. package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js +54 -0
  1964. package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js.map +1 -0
  1965. package/pd-cli/dist/commands/runtime-internalization-integrity.d.ts +7 -0
  1966. package/pd-cli/dist/commands/runtime-internalization-integrity.d.ts.map +1 -0
  1967. package/pd-cli/dist/commands/runtime-internalization-integrity.js +53 -0
  1968. package/pd-cli/dist/commands/runtime-internalization-integrity.js.map +1 -0
  1969. package/pd-cli/dist/commands/runtime-internalization-queue.d.ts +7 -0
  1970. package/pd-cli/dist/commands/runtime-internalization-queue.d.ts.map +1 -0
  1971. package/pd-cli/dist/commands/runtime-internalization-queue.js +85 -0
  1972. package/pd-cli/dist/commands/runtime-internalization-queue.js.map +1 -0
  1973. package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts +12 -0
  1974. package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -0
  1975. package/pd-cli/dist/commands/runtime-internalization-run-once.js +546 -0
  1976. package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -0
  1977. package/pd-cli/dist/commands/runtime-internalization-wake-once.d.ts +8 -0
  1978. package/pd-cli/dist/commands/runtime-internalization-wake-once.d.ts.map +1 -0
  1979. package/pd-cli/dist/commands/runtime-internalization-wake-once.js +72 -0
  1980. package/pd-cli/dist/commands/runtime-internalization-wake-once.js.map +1 -0
  1981. package/pd-cli/dist/commands/runtime-pain-flood-simulation.d.ts +10 -0
  1982. package/pd-cli/dist/commands/runtime-pain-flood-simulation.d.ts.map +1 -0
  1983. package/pd-cli/dist/commands/runtime-pain-flood-simulation.js +104 -0
  1984. package/pd-cli/dist/commands/runtime-pain-flood-simulation.js.map +1 -0
  1985. package/pd-cli/dist/commands/runtime-pruning.d.ts +45 -0
  1986. package/pd-cli/dist/commands/runtime-pruning.d.ts.map +1 -0
  1987. package/pd-cli/dist/commands/runtime-pruning.js +355 -0
  1988. package/pd-cli/dist/commands/runtime-pruning.js.map +1 -0
  1989. package/pd-cli/dist/commands/runtime-recovery.d.ts +9 -0
  1990. package/pd-cli/dist/commands/runtime-recovery.d.ts.map +1 -0
  1991. package/pd-cli/dist/commands/runtime-recovery.js +94 -0
  1992. package/pd-cli/dist/commands/runtime-recovery.js.map +1 -0
  1993. package/pd-cli/dist/commands/runtime-synthetic-baseline.d.ts +7 -0
  1994. package/pd-cli/dist/commands/runtime-synthetic-baseline.d.ts.map +1 -0
  1995. package/pd-cli/dist/commands/runtime-synthetic-baseline.js +59 -0
  1996. package/pd-cli/dist/commands/runtime-synthetic-baseline.js.map +1 -0
  1997. package/pd-cli/dist/commands/runtime-uat.d.ts +52 -0
  1998. package/pd-cli/dist/commands/runtime-uat.d.ts.map +1 -0
  1999. package/pd-cli/dist/commands/runtime-uat.js +274 -0
  2000. package/pd-cli/dist/commands/runtime-uat.js.map +1 -0
  2001. package/pd-cli/dist/commands/runtime.d.ts +20 -0
  2002. package/pd-cli/dist/commands/runtime.d.ts.map +1 -0
  2003. package/pd-cli/dist/commands/runtime.js +256 -0
  2004. package/pd-cli/dist/commands/runtime.js.map +1 -0
  2005. package/pd-cli/dist/commands/samples-list.d.ts +11 -0
  2006. package/pd-cli/dist/commands/samples-list.d.ts.map +1 -0
  2007. package/pd-cli/dist/commands/samples-list.js +37 -0
  2008. package/pd-cli/dist/commands/samples-list.js.map +1 -0
  2009. package/pd-cli/dist/commands/samples-review.d.ts +14 -0
  2010. package/pd-cli/dist/commands/samples-review.d.ts.map +1 -0
  2011. package/pd-cli/dist/commands/samples-review.js +22 -0
  2012. package/pd-cli/dist/commands/samples-review.js.map +1 -0
  2013. package/pd-cli/dist/commands/task.d.ts +14 -0
  2014. package/pd-cli/dist/commands/task.d.ts.map +1 -0
  2015. package/pd-cli/dist/commands/task.js +92 -0
  2016. package/pd-cli/dist/commands/task.js.map +1 -0
  2017. package/pd-cli/dist/commands/trace.d.ts +19 -0
  2018. package/pd-cli/dist/commands/trace.d.ts.map +1 -0
  2019. package/pd-cli/dist/commands/trace.js +154 -0
  2020. package/pd-cli/dist/commands/trace.js.map +1 -0
  2021. package/pd-cli/dist/commands/trajectory.d.ts +11 -0
  2022. package/pd-cli/dist/commands/trajectory.d.ts.map +1 -0
  2023. package/pd-cli/dist/commands/trajectory.js +47 -0
  2024. package/pd-cli/dist/commands/trajectory.js.map +1 -0
  2025. package/pd-cli/dist/index.d.ts +9 -0
  2026. package/pd-cli/dist/index.d.ts.map +1 -0
  2027. package/pd-cli/dist/index.js +736 -0
  2028. package/pd-cli/dist/index.js.map +1 -0
  2029. package/pd-cli/dist/legacy/legacy-import.d.ts +15 -0
  2030. package/pd-cli/dist/legacy/legacy-import.d.ts.map +1 -0
  2031. package/pd-cli/dist/legacy/legacy-import.js +141 -0
  2032. package/pd-cli/dist/legacy/legacy-import.js.map +1 -0
  2033. package/pd-cli/dist/legacy/session-history-import.d.ts +26 -0
  2034. package/pd-cli/dist/legacy/session-history-import.d.ts.map +1 -0
  2035. package/pd-cli/dist/legacy/session-history-import.js +151 -0
  2036. package/pd-cli/dist/legacy/session-history-import.js.map +1 -0
  2037. package/pd-cli/dist/principle-tree-ledger-adapter.d.ts +12 -0
  2038. package/pd-cli/dist/principle-tree-ledger-adapter.d.ts.map +1 -0
  2039. package/pd-cli/dist/principle-tree-ledger-adapter.js +12 -0
  2040. package/pd-cli/dist/principle-tree-ledger-adapter.js.map +1 -0
  2041. package/pd-cli/dist/resolve-workspace.d.ts +12 -0
  2042. package/pd-cli/dist/resolve-workspace.d.ts.map +1 -0
  2043. package/pd-cli/dist/resolve-workspace.js +20 -0
  2044. package/pd-cli/dist/resolve-workspace.js.map +1 -0
  2045. package/pd-cli/dist/services/demo-story-a-runner.d.ts +8 -0
  2046. package/pd-cli/dist/services/demo-story-a-runner.d.ts.map +1 -0
  2047. package/pd-cli/dist/services/demo-story-a-runner.js +369 -0
  2048. package/pd-cli/dist/services/demo-story-a-runner.js.map +1 -0
  2049. package/pd-cli/dist/services/feature-flag-loader.d.ts +6 -0
  2050. package/pd-cli/dist/services/feature-flag-loader.d.ts.map +1 -0
  2051. package/pd-cli/dist/services/feature-flag-loader.js +54 -0
  2052. package/pd-cli/dist/services/feature-flag-loader.js.map +1 -0
  2053. package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts +10 -0
  2054. package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts.map +1 -0
  2055. package/pd-cli/dist/services/pain-flood-simulation-runner.js +289 -0
  2056. package/pd-cli/dist/services/pain-flood-simulation-runner.js.map +1 -0
  2057. package/pd-cli/dist/services/proven-channel-baseline-runner.d.ts +12 -0
  2058. package/pd-cli/dist/services/proven-channel-baseline-runner.d.ts.map +1 -0
  2059. package/pd-cli/dist/services/proven-channel-baseline-runner.js +114 -0
  2060. package/pd-cli/dist/services/proven-channel-baseline-runner.js.map +1 -0
  2061. package/pd-cli/dist/services/synthetic-baseline-runner.d.ts +8 -0
  2062. package/pd-cli/dist/services/synthetic-baseline-runner.d.ts.map +1 -0
  2063. package/pd-cli/dist/services/synthetic-baseline-runner.js +251 -0
  2064. package/pd-cli/dist/services/synthetic-baseline-runner.js.map +1 -0
  2065. package/pd-cli/package.json +35 -0
  2066. package/plugin/dist/bundle.js +2424 -0
  2067. package/plugin/dist/commands/archive-impl.d.ts +18 -0
  2068. package/plugin/dist/commands/archive-impl.js +105 -0
  2069. package/plugin/dist/commands/capabilities.d.ts +3 -0
  2070. package/plugin/dist/commands/capabilities.js +76 -0
  2071. package/plugin/dist/commands/context.d.ts +5 -0
  2072. package/plugin/dist/commands/context.js +293 -0
  2073. package/plugin/dist/commands/disable-impl.d.ts +22 -0
  2074. package/plugin/dist/commands/disable-impl.js +118 -0
  2075. package/plugin/dist/commands/evolution-status.d.ts +4 -0
  2076. package/plugin/dist/commands/evolution-status.js +187 -0
  2077. package/plugin/dist/commands/export.d.ts +2 -0
  2078. package/plugin/dist/commands/export.js +53 -0
  2079. package/plugin/dist/commands/focus.d.ts +14 -0
  2080. package/plugin/dist/commands/focus.js +443 -0
  2081. package/plugin/dist/commands/pain.d.ts +6 -0
  2082. package/plugin/dist/commands/pain.js +309 -0
  2083. package/plugin/dist/commands/principle-rollback.d.ts +4 -0
  2084. package/plugin/dist/commands/principle-rollback.js +26 -0
  2085. package/plugin/dist/commands/promote-impl.d.ts +22 -0
  2086. package/plugin/dist/commands/promote-impl.js +194 -0
  2087. package/plugin/dist/commands/rollback-impl.d.ts +32 -0
  2088. package/plugin/dist/commands/rollback-impl.js +180 -0
  2089. package/plugin/dist/commands/rollback.d.ts +19 -0
  2090. package/plugin/dist/commands/rollback.js +126 -0
  2091. package/plugin/dist/commands/samples.d.ts +2 -0
  2092. package/plugin/dist/commands/samples.js +58 -0
  2093. package/plugin/dist/commands/strategy.d.ts +3 -0
  2094. package/plugin/dist/commands/strategy.js +30 -0
  2095. package/plugin/dist/commands/thinking-os.d.ts +2 -0
  2096. package/plugin/dist/commands/thinking-os.js +164 -0
  2097. package/plugin/dist/commands/workflow-debug.d.ts +6 -0
  2098. package/plugin/dist/commands/workflow-debug.js +111 -0
  2099. package/plugin/dist/config/defaults/runtime.d.ts +64 -0
  2100. package/plugin/dist/config/defaults/runtime.js +81 -0
  2101. package/plugin/dist/config/errors.d.ts +86 -0
  2102. package/plugin/dist/config/errors.js +107 -0
  2103. package/plugin/dist/config/index.d.ts +7 -0
  2104. package/plugin/dist/config/index.js +7 -0
  2105. package/plugin/dist/constants/diagnostician.d.ts +12 -0
  2106. package/plugin/dist/constants/diagnostician.js +65 -0
  2107. package/plugin/dist/constants/tools.d.ts +17 -0
  2108. package/plugin/dist/constants/tools.js +53 -0
  2109. package/plugin/dist/core/__tests__/focus-history.test.d.ts +1 -0
  2110. package/plugin/dist/core/__tests__/focus-history.test.js +160 -0
  2111. package/plugin/dist/core/bootstrap-rules.d.ts +50 -0
  2112. package/plugin/dist/core/bootstrap-rules.js +187 -0
  2113. package/plugin/dist/core/code-implementation-storage.d.ts +80 -0
  2114. package/plugin/dist/core/code-implementation-storage.js +173 -0
  2115. package/plugin/dist/core/config-service.d.ts +15 -0
  2116. package/plugin/dist/core/config-service.js +26 -0
  2117. package/plugin/dist/core/config.d.ts +111 -0
  2118. package/plugin/dist/core/config.js +191 -0
  2119. package/plugin/dist/core/confirm-first-gate.d.ts +59 -0
  2120. package/plugin/dist/core/confirm-first-gate.js +215 -0
  2121. package/plugin/dist/core/control-ui-db.d.ts +106 -0
  2122. package/plugin/dist/core/control-ui-db.js +309 -0
  2123. package/plugin/dist/core/correction-cue-learner.d.ts +33 -0
  2124. package/plugin/dist/core/correction-cue-learner.js +184 -0
  2125. package/plugin/dist/core/correction-types.d.ts +3 -0
  2126. package/plugin/dist/core/correction-types.js +1 -0
  2127. package/plugin/dist/core/detection-funnel.d.ts +33 -0
  2128. package/plugin/dist/core/detection-funnel.js +104 -0
  2129. package/plugin/dist/core/detection-service.d.ts +15 -0
  2130. package/plugin/dist/core/detection-service.js +28 -0
  2131. package/plugin/dist/core/dictionary-service.d.ts +15 -0
  2132. package/plugin/dist/core/dictionary-service.js +26 -0
  2133. package/plugin/dist/core/dictionary.d.ts +38 -0
  2134. package/plugin/dist/core/dictionary.js +148 -0
  2135. package/plugin/dist/core/empathy-keyword-matcher.d.ts +5 -0
  2136. package/plugin/dist/core/empathy-keyword-matcher.js +40 -0
  2137. package/plugin/dist/core/empathy-types.d.ts +2 -0
  2138. package/plugin/dist/core/empathy-types.js +1 -0
  2139. package/plugin/dist/core/event-log.d.ts +73 -0
  2140. package/plugin/dist/core/event-log.js +613 -0
  2141. package/plugin/dist/core/evolution-engine.d.ts +119 -0
  2142. package/plugin/dist/core/evolution-engine.js +460 -0
  2143. package/plugin/dist/core/evolution-hook.d.ts +54 -0
  2144. package/plugin/dist/core/evolution-hook.js +9 -0
  2145. package/plugin/dist/core/evolution-logger.d.ts +137 -0
  2146. package/plugin/dist/core/evolution-logger.js +261 -0
  2147. package/plugin/dist/core/evolution-migration.d.ts +5 -0
  2148. package/plugin/dist/core/evolution-migration.js +65 -0
  2149. package/plugin/dist/core/evolution-reducer.d.ts +124 -0
  2150. package/plugin/dist/core/evolution-reducer.js +730 -0
  2151. package/plugin/dist/core/evolution-types.d.ts +50 -0
  2152. package/plugin/dist/core/evolution-types.js +11 -0
  2153. package/plugin/dist/core/external-training-contract.d.ts +276 -0
  2154. package/plugin/dist/core/external-training-contract.js +269 -0
  2155. package/plugin/dist/core/file-storage-adapter.d.ts +43 -0
  2156. package/plugin/dist/core/file-storage-adapter.js +158 -0
  2157. package/plugin/dist/core/file-store.d.ts +41 -0
  2158. package/plugin/dist/core/file-store.js +46 -0
  2159. package/plugin/dist/core/focus-history.d.ts +50 -0
  2160. package/plugin/dist/core/focus-history.js +574 -0
  2161. package/plugin/dist/core/hygiene/tracker.d.ts +22 -0
  2162. package/plugin/dist/core/hygiene/tracker.js +110 -0
  2163. package/plugin/dist/core/init.d.ts +30 -0
  2164. package/plugin/dist/core/init.js +259 -0
  2165. package/plugin/dist/core/local-worker-routing.d.ts +124 -0
  2166. package/plugin/dist/core/local-worker-routing.js +216 -0
  2167. package/plugin/dist/core/merge-gate-audit.d.ts +21 -0
  2168. package/plugin/dist/core/merge-gate-audit.js +241 -0
  2169. package/plugin/dist/core/migration.d.ts +6 -0
  2170. package/plugin/dist/core/migration.js +87 -0
  2171. package/plugin/dist/core/model-deployment-registry.d.ts +218 -0
  2172. package/plugin/dist/core/model-deployment-registry.js +502 -0
  2173. package/plugin/dist/core/model-training-registry.d.ts +295 -0
  2174. package/plugin/dist/core/model-training-registry.js +474 -0
  2175. package/plugin/dist/core/observability.d.ts +40 -0
  2176. package/plugin/dist/core/observability.js +164 -0
  2177. package/plugin/dist/core/pain-context-extractor.d.ts +31 -0
  2178. package/plugin/dist/core/pain-context-extractor.js +278 -0
  2179. package/plugin/dist/core/pain-diagnostic-gate.d.ts +30 -0
  2180. package/plugin/dist/core/pain-diagnostic-gate.js +96 -0
  2181. package/plugin/dist/core/pain-lifecycle.d.ts +15 -0
  2182. package/plugin/dist/core/pain-lifecycle.js +37 -0
  2183. package/plugin/dist/core/pain-signal-adapter.d.ts +37 -0
  2184. package/plugin/dist/core/pain-signal-adapter.js +1 -0
  2185. package/plugin/dist/core/pain-signal.d.ts +6 -0
  2186. package/plugin/dist/core/pain-signal.js +3 -0
  2187. package/plugin/dist/core/pain.d.ts +87 -0
  2188. package/plugin/dist/core/pain.js +223 -0
  2189. package/plugin/dist/core/path-resolver.d.ts +60 -0
  2190. package/plugin/dist/core/path-resolver.js +359 -0
  2191. package/plugin/dist/core/paths.d.ts +67 -0
  2192. package/plugin/dist/core/paths.js +83 -0
  2193. package/plugin/dist/core/pd-task-reconciler.d.ts +89 -0
  2194. package/plugin/dist/core/pd-task-reconciler.js +262 -0
  2195. package/plugin/dist/core/pd-task-service.d.ts +2 -0
  2196. package/plugin/dist/core/pd-task-service.js +32 -0
  2197. package/plugin/dist/core/pd-task-store.d.ts +5 -0
  2198. package/plugin/dist/core/pd-task-store.js +62 -0
  2199. package/plugin/dist/core/pd-task-types.d.ts +8 -0
  2200. package/plugin/dist/core/pd-task-types.js +2 -0
  2201. package/plugin/dist/core/principle-compiler/__tests__/compiler-replay-gate.test.d.ts +1 -0
  2202. package/plugin/dist/core/principle-compiler/__tests__/compiler-replay-gate.test.js +132 -0
  2203. package/plugin/dist/core/principle-compiler/code-validator.d.ts +14 -0
  2204. package/plugin/dist/core/principle-compiler/code-validator.js +83 -0
  2205. package/plugin/dist/core/principle-compiler/compiler.d.ts +45 -0
  2206. package/plugin/dist/core/principle-compiler/compiler.js +287 -0
  2207. package/plugin/dist/core/principle-compiler/index.d.ts +12 -0
  2208. package/plugin/dist/core/principle-compiler/index.js +10 -0
  2209. package/plugin/dist/core/principle-compiler/ledger-registrar.d.ts +28 -0
  2210. package/plugin/dist/core/principle-compiler/ledger-registrar.js +95 -0
  2211. package/plugin/dist/core/principle-compiler/template-generator.d.ts +7 -0
  2212. package/plugin/dist/core/principle-compiler/template-generator.js +7 -0
  2213. package/plugin/dist/core/principle-injection.d.ts +10 -0
  2214. package/plugin/dist/core/principle-injection.js +10 -0
  2215. package/plugin/dist/core/principle-injector.d.ts +55 -0
  2216. package/plugin/dist/core/principle-injector.js +17 -0
  2217. package/plugin/dist/core/principle-internalization/filesystem-lifecycle-datasource.d.ts +15 -0
  2218. package/plugin/dist/core/principle-internalization/filesystem-lifecycle-datasource.js +34 -0
  2219. package/plugin/dist/core/principle-internalization/lifecycle-read-model.d.ts +17 -0
  2220. package/plugin/dist/core/principle-internalization/lifecycle-read-model.js +21 -0
  2221. package/plugin/dist/core/principle-internalization/lifecycle-refresh.d.ts +2 -0
  2222. package/plugin/dist/core/principle-internalization/lifecycle-refresh.js +4 -0
  2223. package/plugin/dist/core/principle-internalization/principle-lifecycle-service.d.ts +28 -0
  2224. package/plugin/dist/core/principle-internalization/principle-lifecycle-service.js +89 -0
  2225. package/plugin/dist/core/principle-training-state.d.ts +47 -0
  2226. package/plugin/dist/core/principle-training-state.js +113 -0
  2227. package/plugin/dist/core/principle-tree-ledger-adapter.d.ts +32 -0
  2228. package/plugin/dist/core/principle-tree-ledger-adapter.js +125 -0
  2229. package/plugin/dist/core/principle-tree-ledger.d.ts +86 -0
  2230. package/plugin/dist/core/principle-tree-ledger.js +534 -0
  2231. package/plugin/dist/core/principle-tree-migration.d.ts +35 -0
  2232. package/plugin/dist/core/principle-tree-migration.js +137 -0
  2233. package/plugin/dist/core/profile.d.ts +62 -0
  2234. package/plugin/dist/core/profile.js +211 -0
  2235. package/plugin/dist/core/promotion-gate.d.ts +243 -0
  2236. package/plugin/dist/core/promotion-gate.js +554 -0
  2237. package/plugin/dist/core/reflection/reflection-context.d.ts +31 -0
  2238. package/plugin/dist/core/reflection/reflection-context.js +91 -0
  2239. package/plugin/dist/core/replay-engine.d.ts +12 -0
  2240. package/plugin/dist/core/replay-engine.js +82 -0
  2241. package/plugin/dist/core/risk-calculator.d.ts +22 -0
  2242. package/plugin/dist/core/risk-calculator.js +88 -0
  2243. package/plugin/dist/core/rule-host-helpers.d.ts +8 -0
  2244. package/plugin/dist/core/rule-host-helpers.js +7 -0
  2245. package/plugin/dist/core/rule-host-types.d.ts +7 -0
  2246. package/plugin/dist/core/rule-host-types.js +7 -0
  2247. package/plugin/dist/core/rule-host.d.ts +56 -0
  2248. package/plugin/dist/core/rule-host.js +152 -0
  2249. package/plugin/dist/core/rule-implementation-runtime.d.ts +5 -0
  2250. package/plugin/dist/core/rule-implementation-runtime.js +24 -0
  2251. package/plugin/dist/core/runtime-v2-prompt-activation-reader.d.ts +27 -0
  2252. package/plugin/dist/core/runtime-v2-prompt-activation-reader.js +181 -0
  2253. package/plugin/dist/core/schema/db-types.d.ts +11 -0
  2254. package/plugin/dist/core/schema/db-types.js +5 -0
  2255. package/plugin/dist/core/schema/index.d.ts +17 -0
  2256. package/plugin/dist/core/schema/index.js +15 -0
  2257. package/plugin/dist/core/schema/migration-runner.d.ts +53 -0
  2258. package/plugin/dist/core/schema/migration-runner.js +170 -0
  2259. package/plugin/dist/core/schema/migrations/001-init-trajectory.d.ts +6 -0
  2260. package/plugin/dist/core/schema/migrations/001-init-trajectory.js +193 -0
  2261. package/plugin/dist/core/schema/migrations/002-init-central.d.ts +5 -0
  2262. package/plugin/dist/core/schema/migrations/002-init-central.js +108 -0
  2263. package/plugin/dist/core/schema/migrations/003-init-workflow.d.ts +5 -0
  2264. package/plugin/dist/core/schema/migrations/003-init-workflow.js +50 -0
  2265. package/plugin/dist/core/schema/migrations/004-add-thinking-and-gfi.d.ts +8 -0
  2266. package/plugin/dist/core/schema/migrations/004-add-thinking-and-gfi.js +66 -0
  2267. package/plugin/dist/core/schema/migrations/index.d.ts +16 -0
  2268. package/plugin/dist/core/schema/migrations/index.js +27 -0
  2269. package/plugin/dist/core/schema/schema-definitions.d.ts +46 -0
  2270. package/plugin/dist/core/schema/schema-definitions.js +601 -0
  2271. package/plugin/dist/core/session-tracker.d.ts +119 -0
  2272. package/plugin/dist/core/session-tracker.js +462 -0
  2273. package/plugin/dist/core/shadow-observation-registry.d.ts +217 -0
  2274. package/plugin/dist/core/shadow-observation-registry.js +280 -0
  2275. package/plugin/dist/core/storage-adapter.d.ts +58 -0
  2276. package/plugin/dist/core/storage-adapter.js +1 -0
  2277. package/plugin/dist/core/system-logger.d.ts +8 -0
  2278. package/plugin/dist/core/system-logger.js +113 -0
  2279. package/plugin/dist/core/telemetry-event.d.ts +66 -0
  2280. package/plugin/dist/core/telemetry-event.js +86 -0
  2281. package/plugin/dist/core/thinking-models.d.ts +69 -0
  2282. package/plugin/dist/core/thinking-models.js +320 -0
  2283. package/plugin/dist/core/thinking-os-parser.d.ts +35 -0
  2284. package/plugin/dist/core/thinking-os-parser.js +123 -0
  2285. package/plugin/dist/core/training-program.d.ts +233 -0
  2286. package/plugin/dist/core/training-program.js +435 -0
  2287. package/plugin/dist/core/trajectory/index.js +1804 -0
  2288. package/plugin/dist/core/trajectory-types.d.ts +216 -0
  2289. package/plugin/dist/core/trajectory-types.js +8 -0
  2290. package/plugin/dist/core/trajectory.d.ts +242 -0
  2291. package/plugin/dist/core/trajectory.js +1450 -0
  2292. package/plugin/dist/core/workflow-funnel-loader.d.ts +72 -0
  2293. package/plugin/dist/core/workflow-funnel-loader.js +135 -0
  2294. package/plugin/dist/core/workspace-context.d.ts +111 -0
  2295. package/plugin/dist/core/workspace-context.js +247 -0
  2296. package/plugin/dist/core/workspace-dir-service.d.ts +33 -0
  2297. package/plugin/dist/core/workspace-dir-service.js +71 -0
  2298. package/plugin/dist/core/workspace-dir-validation.d.ts +11 -0
  2299. package/plugin/dist/core/workspace-dir-validation.js +37 -0
  2300. package/plugin/dist/hooks/gate-block-helper.d.ts +44 -0
  2301. package/plugin/dist/hooks/gate-block-helper.js +168 -0
  2302. package/plugin/dist/hooks/gate.d.ts +16 -0
  2303. package/plugin/dist/hooks/gate.js +424 -0
  2304. package/plugin/dist/hooks/lifecycle-routing.d.ts +24 -0
  2305. package/plugin/dist/hooks/lifecycle-routing.js +110 -0
  2306. package/plugin/dist/hooks/lifecycle.d.ts +5 -0
  2307. package/plugin/dist/hooks/lifecycle.js +287 -0
  2308. package/plugin/dist/hooks/llm.d.ts +13 -0
  2309. package/plugin/dist/hooks/llm.js +353 -0
  2310. package/plugin/dist/hooks/message-sanitize.d.ts +3 -0
  2311. package/plugin/dist/hooks/message-sanitize.js +47 -0
  2312. package/plugin/dist/hooks/pain.d.ts +11 -0
  2313. package/plugin/dist/hooks/pain.js +553 -0
  2314. package/plugin/dist/hooks/prompt.d.ts +46 -0
  2315. package/plugin/dist/hooks/prompt.js +1108 -0
  2316. package/plugin/dist/hooks/subagent.d.ts +9 -0
  2317. package/plugin/dist/hooks/subagent.js +122 -0
  2318. package/plugin/dist/hooks/trajectory-collector.d.ts +36 -0
  2319. package/plugin/dist/hooks/trajectory-collector.js +258 -0
  2320. package/plugin/dist/i18n/commands.d.ts +26 -0
  2321. package/plugin/dist/i18n/commands.js +108 -0
  2322. package/plugin/dist/index.d.ts +8 -0
  2323. package/plugin/dist/index.js +692 -0
  2324. package/plugin/dist/openclaw-sdk.d.ts +292 -0
  2325. package/plugin/dist/openclaw-sdk.js +4 -0
  2326. package/plugin/dist/openclaw.plugin.json +65 -0
  2327. package/plugin/dist/service/central-database.d.ts +138 -0
  2328. package/plugin/dist/service/central-database.js +731 -0
  2329. package/plugin/dist/service/central-sync-service.d.ts +8 -0
  2330. package/plugin/dist/service/central-sync-service.js +71 -0
  2331. package/plugin/dist/service/event-log-auditor.d.ts +46 -0
  2332. package/plugin/dist/service/event-log-auditor.js +236 -0
  2333. package/plugin/dist/service/evolution-dedup.d.ts +27 -0
  2334. package/plugin/dist/service/evolution-dedup.js +54 -0
  2335. package/plugin/dist/service/evolution-queue-lock.d.ts +18 -0
  2336. package/plugin/dist/service/evolution-queue-lock.js +36 -0
  2337. package/plugin/dist/service/evolution-queue-migration.d.ts +128 -0
  2338. package/plugin/dist/service/evolution-queue-migration.js +53 -0
  2339. package/plugin/dist/service/evolution-worker.d.ts +103 -0
  2340. package/plugin/dist/service/evolution-worker.js +760 -0
  2341. package/plugin/dist/service/failure-classifier.d.ts +46 -0
  2342. package/plugin/dist/service/failure-classifier.js +57 -0
  2343. package/plugin/dist/service/internalization-trigger-adapter.d.ts +51 -0
  2344. package/plugin/dist/service/internalization-trigger-adapter.js +184 -0
  2345. package/plugin/dist/service/keyword-optimization-service.d.ts +44 -0
  2346. package/plugin/dist/service/keyword-optimization-service.js +137 -0
  2347. package/plugin/dist/service/monitoring-query-service.d.ts +21 -0
  2348. package/plugin/dist/service/monitoring-query-service.js +45 -0
  2349. package/plugin/dist/service/phase3-input-filter.d.ts +73 -0
  2350. package/plugin/dist/service/phase3-input-filter.js +172 -0
  2351. package/plugin/dist/service/queue-io.d.ts +30 -0
  2352. package/plugin/dist/service/queue-io.js +79 -0
  2353. package/plugin/dist/service/queue-migration.d.ts +83 -0
  2354. package/plugin/dist/service/queue-migration.js +56 -0
  2355. package/plugin/dist/service/runtime-summary-service.d.ts +158 -0
  2356. package/plugin/dist/service/runtime-summary-service.js +636 -0
  2357. package/plugin/dist/service/subagent-workflow/index.d.ts +3 -0
  2358. package/plugin/dist/service/subagent-workflow/index.js +2 -0
  2359. package/plugin/dist/service/subagent-workflow/subagent-error-utils.d.ts +8 -0
  2360. package/plugin/dist/service/subagent-workflow/subagent-error-utils.js +23 -0
  2361. package/plugin/dist/service/subagent-workflow/types.d.ts +264 -0
  2362. package/plugin/dist/service/subagent-workflow/types.js +11 -0
  2363. package/plugin/dist/service/subagent-workflow/workflow-store.d.ts +30 -0
  2364. package/plugin/dist/service/subagent-workflow/workflow-store.js +209 -0
  2365. package/plugin/dist/service/trajectory-service.d.ts +2 -0
  2366. package/plugin/dist/service/trajectory-service.js +16 -0
  2367. package/plugin/dist/service/workflow-watchdog.d.ts +23 -0
  2368. package/plugin/dist/service/workflow-watchdog.js +103 -0
  2369. package/plugin/dist/templates/langs/en/core/AGENTS.md +205 -0
  2370. package/plugin/dist/templates/langs/en/core/BOOT.md +60 -0
  2371. package/plugin/dist/templates/langs/en/core/BOOTSTRAP.md +273 -0
  2372. package/plugin/dist/templates/langs/en/core/HEARTBEAT.md +74 -0
  2373. package/plugin/dist/templates/langs/en/core/IDENTITY.md +8 -0
  2374. package/plugin/dist/templates/langs/en/core/PRINCIPLES.md +10 -0
  2375. package/plugin/dist/templates/langs/en/core/SOUL.md +46 -0
  2376. package/plugin/dist/templates/langs/en/core/TOOLS.md +15 -0
  2377. package/plugin/dist/templates/langs/en/core/USER.md +10 -0
  2378. package/plugin/dist/templates/langs/en/pain/00_seed_samples.md +23 -0
  2379. package/plugin/dist/templates/langs/en/pain_dictionary.json +22 -0
  2380. package/plugin/dist/templates/langs/en/principles/THINKING_OS.md +64 -0
  2381. package/plugin/dist/templates/langs/en/skills/admin/SKILL.md +39 -0
  2382. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/EXAMPLES.md +63 -0
  2383. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/REFERENCE.md +136 -0
  2384. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/SKILL.md +67 -0
  2385. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/agent-registry.json +143 -0
  2386. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +107 -0
  2387. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +107 -0
  2388. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +95 -0
  2389. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +98 -0
  2390. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +58 -0
  2391. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +190 -0
  2392. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/runtime/.gitignore +2 -0
  2393. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +310 -0
  2394. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +683 -0
  2395. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +604 -0
  2396. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +32 -0
  2397. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +707 -0
  2398. package/plugin/dist/templates/langs/en/skills/ai-sprint-orchestration/scripts/run.mjs +3455 -0
  2399. package/plugin/dist/templates/langs/en/skills/bootstrap-tools/SKILL.md +53 -0
  2400. package/plugin/dist/templates/langs/en/skills/deductive-audit/SKILL.md +36 -0
  2401. package/plugin/dist/templates/langs/en/skills/evolution-framework-update/SKILL.md +31 -0
  2402. package/plugin/dist/templates/langs/en/skills/evolve-system/SKILL.md +46 -0
  2403. package/plugin/dist/templates/langs/en/skills/evolve-task/SKILL.md +83 -0
  2404. package/plugin/dist/templates/langs/en/skills/feedback/SKILL.md +51 -0
  2405. package/plugin/dist/templates/langs/en/skills/init-strategy/SKILL.md +54 -0
  2406. package/plugin/dist/templates/langs/en/skills/inject-rule/SKILL.md +19 -0
  2407. package/plugin/dist/templates/langs/en/skills/manage-okr/SKILL.md +96 -0
  2408. package/plugin/dist/templates/langs/en/skills/pd-auditor/SKILL.md +61 -0
  2409. package/plugin/dist/templates/langs/en/skills/pd-cli-operator/SKILL.md +67 -0
  2410. package/plugin/dist/templates/langs/en/skills/pd-daily/SKILL.md +199 -0
  2411. package/plugin/dist/templates/langs/en/skills/pd-diagnostician/SKILL.md +466 -0
  2412. package/plugin/dist/templates/langs/en/skills/pd-explorer/SKILL.md +65 -0
  2413. package/plugin/dist/templates/langs/en/skills/pd-grooming/SKILL.md +46 -0
  2414. package/plugin/dist/templates/langs/en/skills/pd-implementer/SKILL.md +68 -0
  2415. package/plugin/dist/templates/langs/en/skills/pd-mentor/SKILL.md +230 -0
  2416. package/plugin/dist/templates/langs/en/skills/pd-pain-signal/SKILL.md +30 -0
  2417. package/plugin/dist/templates/langs/en/skills/pd-planner/SKILL.md +65 -0
  2418. package/plugin/dist/templates/langs/en/skills/pd-runtime-v2/SKILL.md +61 -0
  2419. package/plugin/dist/templates/langs/en/skills/plan-script/SKILL.md +32 -0
  2420. package/plugin/dist/templates/langs/en/skills/profile/SKILL.md +24 -0
  2421. package/plugin/dist/templates/langs/en/skills/reflection/SKILL.md +40 -0
  2422. package/plugin/dist/templates/langs/en/skills/reflection-log/SKILL.md +37 -0
  2423. package/plugin/dist/templates/langs/en/skills/report/SKILL.md +13 -0
  2424. package/plugin/dist/templates/langs/en/skills/root-cause/SKILL.md +33 -0
  2425. package/plugin/dist/templates/langs/en/skills/triage/SKILL.md +29 -0
  2426. package/plugin/dist/templates/langs/en/skills/watch-evolution/SKILL.md +33 -0
  2427. package/plugin/dist/templates/langs/zh/core/AGENTS.md +197 -0
  2428. package/plugin/dist/templates/langs/zh/core/BOOT.md +60 -0
  2429. package/plugin/dist/templates/langs/zh/core/BOOTSTRAP.md +273 -0
  2430. package/plugin/dist/templates/langs/zh/core/HEARTBEAT.md +98 -0
  2431. package/plugin/dist/templates/langs/zh/core/IDENTITY.md +8 -0
  2432. package/plugin/dist/templates/langs/zh/core/PRINCIPLES.md +7 -0
  2433. package/plugin/dist/templates/langs/zh/core/SOUL.md +46 -0
  2434. package/plugin/dist/templates/langs/zh/core/TOOLS.md +15 -0
  2435. package/plugin/dist/templates/langs/zh/core/USER.md +10 -0
  2436. package/plugin/dist/templates/langs/zh/pain/00_seed_samples.md +24 -0
  2437. package/plugin/dist/templates/langs/zh/pain_dictionary.json +18 -0
  2438. package/plugin/dist/templates/langs/zh/principles/THINKING_OS.md +64 -0
  2439. package/plugin/dist/templates/langs/zh/skills/admin/SKILL.md +41 -0
  2440. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/EXAMPLES.md +63 -0
  2441. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/REFERENCE.md +136 -0
  2442. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/SKILL.md +67 -0
  2443. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/agent-registry.json +143 -0
  2444. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +107 -0
  2445. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +107 -0
  2446. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/nocturnal-trinity-quality-enhancement.json +111 -0
  2447. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +95 -0
  2448. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +98 -0
  2449. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +58 -0
  2450. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +190 -0
  2451. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +2 -0
  2452. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +310 -0
  2453. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +683 -0
  2454. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +604 -0
  2455. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +32 -0
  2456. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +707 -0
  2457. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/scripts/run.mjs +3455 -0
  2458. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/archive.test.mjs +230 -0
  2459. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/contract-enforcement.test.mjs +672 -0
  2460. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/decision.test.mjs +1321 -0
  2461. package/plugin/dist/templates/langs/zh/skills/ai-sprint-orchestration/test/run.test.mjs +1435 -0
  2462. package/plugin/dist/templates/langs/zh/skills/bootstrap-tools/SKILL.md +52 -0
  2463. package/plugin/dist/templates/langs/zh/skills/deductive-audit/SKILL.md +36 -0
  2464. package/plugin/dist/templates/langs/zh/skills/evolution-framework-update/SKILL.md +31 -0
  2465. package/plugin/dist/templates/langs/zh/skills/evolve-system/SKILL.md +46 -0
  2466. package/plugin/dist/templates/langs/zh/skills/evolve-task/SKILL.md +83 -0
  2467. package/plugin/dist/templates/langs/zh/skills/feedback/SKILL.md +53 -0
  2468. package/plugin/dist/templates/langs/zh/skills/init-strategy/SKILL.md +54 -0
  2469. package/plugin/dist/templates/langs/zh/skills/inject-rule/SKILL.md +19 -0
  2470. package/plugin/dist/templates/langs/zh/skills/manage-okr/SKILL.md +109 -0
  2471. package/plugin/dist/templates/langs/zh/skills/pd-auditor/SKILL.md +61 -0
  2472. package/plugin/dist/templates/langs/zh/skills/pd-cli-operator/SKILL.md +67 -0
  2473. package/plugin/dist/templates/langs/zh/skills/pd-daily/SKILL.md +283 -0
  2474. package/plugin/dist/templates/langs/zh/skills/pd-diagnostician/SKILL.md +391 -0
  2475. package/plugin/dist/templates/langs/zh/skills/pd-explorer/SKILL.md +65 -0
  2476. package/plugin/dist/templates/langs/zh/skills/pd-grooming/SKILL.md +46 -0
  2477. package/plugin/dist/templates/langs/zh/skills/pd-implementer/SKILL.md +68 -0
  2478. package/plugin/dist/templates/langs/zh/skills/pd-mentor/SKILL.md +230 -0
  2479. package/plugin/dist/templates/langs/zh/skills/pd-pain-signal/SKILL.md +30 -0
  2480. package/plugin/dist/templates/langs/zh/skills/pd-planner/SKILL.md +65 -0
  2481. package/plugin/dist/templates/langs/zh/skills/pd-runtime-v2/SKILL.md +61 -0
  2482. package/plugin/dist/templates/langs/zh/skills/plan-script/SKILL.md +32 -0
  2483. package/plugin/dist/templates/langs/zh/skills/profile/SKILL.md +24 -0
  2484. package/plugin/dist/templates/langs/zh/skills/reflection/SKILL.md +40 -0
  2485. package/plugin/dist/templates/langs/zh/skills/reflection-log/SKILL.md +37 -0
  2486. package/plugin/dist/templates/langs/zh/skills/report/SKILL.md +13 -0
  2487. package/plugin/dist/templates/langs/zh/skills/root-cause/SKILL.md +33 -0
  2488. package/plugin/dist/templates/langs/zh/skills/triage/SKILL.md +29 -0
  2489. package/plugin/dist/templates/langs/zh/skills/watch-evolution/SKILL.md +33 -0
  2490. package/plugin/dist/templates/pain_dictionary.json +36 -0
  2491. package/plugin/dist/templates/pain_settings.json +103 -0
  2492. package/plugin/dist/templates/workspace/.principles/DECISION_POLICY.json +44 -0
  2493. package/plugin/dist/templates/workspace/.principles/PRINCIPLES.md +20 -0
  2494. package/plugin/dist/templates/workspace/.principles/PROFILE.json +54 -0
  2495. package/plugin/dist/templates/workspace/.principles/PROFILE.schema.json +56 -0
  2496. package/plugin/dist/templates/workspace/.principles/THINKING_OS.md +64 -0
  2497. package/plugin/dist/templates/workspace/.principles/THINKING_OS_ARCHIVE.md +7 -0
  2498. package/plugin/dist/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +9 -0
  2499. package/plugin/dist/templates/workspace/.principles/models/_INDEX.md +27 -0
  2500. package/plugin/dist/templates/workspace/.principles/models/first_principles.md +62 -0
  2501. package/plugin/dist/templates/workspace/.principles/models/marketing_4p.md +52 -0
  2502. package/plugin/dist/templates/workspace/.principles/models/porter_five.md +63 -0
  2503. package/plugin/dist/templates/workspace/.principles/models/swot.md +60 -0
  2504. package/plugin/dist/templates/workspace/.principles/models/user_story_map.md +63 -0
  2505. package/plugin/dist/templates/workspace/.state/WORKBOARD.json +4 -0
  2506. package/plugin/dist/templates/workspace/AUDIT.md +15 -0
  2507. package/plugin/dist/templates/workspace/PLAN.md +2 -0
  2508. package/plugin/dist/templates/workspace/okr/CURRENT_FOCUS.md +57 -0
  2509. package/plugin/dist/templates/workspace/okr/RECOVERY_PROTOCOL.md +56 -0
  2510. package/plugin/dist/templates/workspace/okr/TASK_CHANGES.jsonl +6 -0
  2511. package/plugin/dist/templates/workspace/okr/WEEK_TASKS.json +6 -0
  2512. package/plugin/dist/tools/critique-prompt.d.ts +1 -0
  2513. package/plugin/dist/tools/critique-prompt.js +1 -0
  2514. package/plugin/dist/tools/deep-reflect.d.ts +1 -0
  2515. package/plugin/dist/tools/deep-reflect.js +1 -0
  2516. package/plugin/dist/tools/model-index.d.ts +1 -0
  2517. package/plugin/dist/tools/model-index.js +1 -0
  2518. package/plugin/dist/types/event-payload.d.ts +2 -0
  2519. package/plugin/dist/types/event-payload.js +1 -0
  2520. package/plugin/dist/types/event-types.d.ts +2 -0
  2521. package/plugin/dist/types/event-types.js +1 -0
  2522. package/plugin/dist/types/hygiene-types.d.ts +2 -0
  2523. package/plugin/dist/types/hygiene-types.js +1 -0
  2524. package/plugin/dist/types/principle-tree-schema.d.ts +29 -0
  2525. package/plugin/dist/types/principle-tree-schema.js +24 -0
  2526. package/plugin/dist/types/queue.d.ts +2 -0
  2527. package/plugin/dist/types/queue.js +1 -0
  2528. package/plugin/dist/types/runtime-summary.d.ts +1 -0
  2529. package/plugin/dist/types/runtime-summary.js +1 -0
  2530. package/plugin/dist/types.d.ts +33 -0
  2531. package/plugin/dist/types.js +16 -0
  2532. package/plugin/dist/utils/file-lock.d.ts +68 -0
  2533. package/plugin/dist/utils/file-lock.js +310 -0
  2534. package/plugin/dist/utils/glob-match.d.ts +28 -0
  2535. package/plugin/dist/utils/glob-match.js +49 -0
  2536. package/plugin/dist/utils/hashing.d.ts +9 -0
  2537. package/plugin/dist/utils/hashing.js +25 -0
  2538. package/plugin/dist/utils/io.d.ts +12 -0
  2539. package/plugin/dist/utils/io.js +176 -0
  2540. package/plugin/dist/utils/nlp.d.ts +4 -0
  2541. package/plugin/dist/utils/nlp.js +21 -0
  2542. package/plugin/dist/utils/node-vm-polyfill.d.ts +9 -0
  2543. package/plugin/dist/utils/node-vm-polyfill.js +9 -0
  2544. package/plugin/dist/utils/plugin-logger.d.ts +39 -0
  2545. package/plugin/dist/utils/plugin-logger.js +70 -0
  2546. package/plugin/dist/utils/retry.d.ts +210 -0
  2547. package/plugin/dist/utils/retry.js +375 -0
  2548. package/plugin/dist/utils/session-key.d.ts +10 -0
  2549. package/plugin/dist/utils/session-key.js +18 -0
  2550. package/plugin/dist/utils/shadow-fingerprint.d.ts +16 -0
  2551. package/plugin/dist/utils/shadow-fingerprint.js +34 -0
  2552. package/plugin/dist/utils/subagent-probe.d.ts +35 -0
  2553. package/plugin/dist/utils/subagent-probe.js +67 -0
  2554. package/plugin/dist/utils/workspace-resolver.d.ts +50 -0
  2555. package/plugin/dist/utils/workspace-resolver.js +109 -0
  2556. package/plugin/docs/COMMAND_REFERENCE.md +76 -0
  2557. package/plugin/docs/COMMAND_REFERENCE_EN.md +79 -0
  2558. package/plugin/openclaw.plugin.json +65 -0
  2559. package/plugin/package.json +79 -0
  2560. package/plugin/scripts/acceptance-test.mjs +257 -0
  2561. package/plugin/scripts/bootstrap-rules.mjs +66 -0
  2562. package/plugin/scripts/compile-principles.mjs +104 -0
  2563. package/plugin/scripts/db-migrate.mjs +170 -0
  2564. package/plugin/scripts/install-dependencies.cjs +47 -0
  2565. package/plugin/scripts/sync-plugin.mjs +1355 -0
  2566. package/plugin/scripts/validate-live-path.ts +480 -0
  2567. package/plugin/scripts/verify-build.mjs +109 -0
  2568. package/plugin/templates/langs/en/core/AGENTS.md +205 -0
  2569. package/plugin/templates/langs/en/core/BOOT.md +60 -0
  2570. package/plugin/templates/langs/en/core/BOOTSTRAP.md +273 -0
  2571. package/plugin/templates/langs/en/core/HEARTBEAT.md +74 -0
  2572. package/plugin/templates/langs/en/core/IDENTITY.md +8 -0
  2573. package/plugin/templates/langs/en/core/PRINCIPLES.md +10 -0
  2574. package/plugin/templates/langs/en/core/SOUL.md +46 -0
  2575. package/plugin/templates/langs/en/core/TOOLS.md +15 -0
  2576. package/plugin/templates/langs/en/core/USER.md +10 -0
  2577. package/plugin/templates/langs/en/pain/00_seed_samples.md +23 -0
  2578. package/plugin/templates/langs/en/pain_dictionary.json +22 -0
  2579. package/plugin/templates/langs/en/principles/THINKING_OS.md +64 -0
  2580. package/plugin/templates/langs/en/skills/admin/SKILL.md +39 -0
  2581. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/EXAMPLES.md +63 -0
  2582. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/REFERENCE.md +136 -0
  2583. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/SKILL.md +67 -0
  2584. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/agent-registry.json +143 -0
  2585. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +107 -0
  2586. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +107 -0
  2587. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +95 -0
  2588. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +98 -0
  2589. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +58 -0
  2590. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +190 -0
  2591. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/runtime/.gitignore +2 -0
  2592. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +310 -0
  2593. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +683 -0
  2594. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +604 -0
  2595. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +32 -0
  2596. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +707 -0
  2597. package/plugin/templates/langs/en/skills/ai-sprint-orchestration/scripts/run.mjs +3455 -0
  2598. package/plugin/templates/langs/en/skills/bootstrap-tools/SKILL.md +53 -0
  2599. package/plugin/templates/langs/en/skills/deductive-audit/SKILL.md +36 -0
  2600. package/plugin/templates/langs/en/skills/evolution-framework-update/SKILL.md +31 -0
  2601. package/plugin/templates/langs/en/skills/evolve-system/SKILL.md +46 -0
  2602. package/plugin/templates/langs/en/skills/evolve-task/SKILL.md +83 -0
  2603. package/plugin/templates/langs/en/skills/feedback/SKILL.md +51 -0
  2604. package/plugin/templates/langs/en/skills/init-strategy/SKILL.md +54 -0
  2605. package/plugin/templates/langs/en/skills/inject-rule/SKILL.md +19 -0
  2606. package/plugin/templates/langs/en/skills/manage-okr/SKILL.md +96 -0
  2607. package/plugin/templates/langs/en/skills/pd-auditor/SKILL.md +61 -0
  2608. package/plugin/templates/langs/en/skills/pd-cli-operator/SKILL.md +67 -0
  2609. package/plugin/templates/langs/en/skills/pd-daily/SKILL.md +199 -0
  2610. package/plugin/templates/langs/en/skills/pd-diagnostician/SKILL.md +466 -0
  2611. package/plugin/templates/langs/en/skills/pd-explorer/SKILL.md +65 -0
  2612. package/plugin/templates/langs/en/skills/pd-grooming/SKILL.md +46 -0
  2613. package/plugin/templates/langs/en/skills/pd-implementer/SKILL.md +68 -0
  2614. package/plugin/templates/langs/en/skills/pd-mentor/SKILL.md +230 -0
  2615. package/plugin/templates/langs/en/skills/pd-pain-signal/SKILL.md +30 -0
  2616. package/plugin/templates/langs/en/skills/pd-planner/SKILL.md +65 -0
  2617. package/plugin/templates/langs/en/skills/pd-runtime-v2/SKILL.md +61 -0
  2618. package/plugin/templates/langs/en/skills/plan-script/SKILL.md +32 -0
  2619. package/plugin/templates/langs/en/skills/profile/SKILL.md +24 -0
  2620. package/plugin/templates/langs/en/skills/reflection/SKILL.md +40 -0
  2621. package/plugin/templates/langs/en/skills/reflection-log/SKILL.md +37 -0
  2622. package/plugin/templates/langs/en/skills/report/SKILL.md +13 -0
  2623. package/plugin/templates/langs/en/skills/root-cause/SKILL.md +33 -0
  2624. package/plugin/templates/langs/en/skills/triage/SKILL.md +29 -0
  2625. package/plugin/templates/langs/en/skills/watch-evolution/SKILL.md +33 -0
  2626. package/plugin/templates/langs/zh/core/AGENTS.md +197 -0
  2627. package/plugin/templates/langs/zh/core/BOOT.md +60 -0
  2628. package/plugin/templates/langs/zh/core/BOOTSTRAP.md +273 -0
  2629. package/plugin/templates/langs/zh/core/HEARTBEAT.md +98 -0
  2630. package/plugin/templates/langs/zh/core/IDENTITY.md +8 -0
  2631. package/plugin/templates/langs/zh/core/PRINCIPLES.md +7 -0
  2632. package/plugin/templates/langs/zh/core/SOUL.md +46 -0
  2633. package/plugin/templates/langs/zh/core/TOOLS.md +15 -0
  2634. package/plugin/templates/langs/zh/core/USER.md +10 -0
  2635. package/plugin/templates/langs/zh/pain/00_seed_samples.md +24 -0
  2636. package/plugin/templates/langs/zh/pain_dictionary.json +18 -0
  2637. package/plugin/templates/langs/zh/principles/THINKING_OS.md +64 -0
  2638. package/plugin/templates/langs/zh/skills/admin/SKILL.md +41 -0
  2639. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/EXAMPLES.md +63 -0
  2640. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/REFERENCE.md +136 -0
  2641. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/SKILL.md +67 -0
  2642. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/agent-registry.json +143 -0
  2643. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/bugfix-complex-template.json +107 -0
  2644. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/feature-complex-template.json +107 -0
  2645. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/nocturnal-trinity-quality-enhancement.json +111 -0
  2646. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal-verify.json +95 -0
  2647. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/specs/workflow-validation-minimal.json +98 -0
  2648. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1-acceptance-checklist.md +58 -0
  2649. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/references/workflow-v1.4-work-unit-handoff.md +190 -0
  2650. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/runtime/.gitignore +2 -0
  2651. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/archive.mjs +310 -0
  2652. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/contract-enforcement.mjs +683 -0
  2653. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/decision.mjs +604 -0
  2654. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/state-store.mjs +32 -0
  2655. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/lib/task-specs.mjs +707 -0
  2656. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/scripts/run.mjs +3455 -0
  2657. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/archive.test.mjs +230 -0
  2658. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/contract-enforcement.test.mjs +672 -0
  2659. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/decision.test.mjs +1321 -0
  2660. package/plugin/templates/langs/zh/skills/ai-sprint-orchestration/test/run.test.mjs +1435 -0
  2661. package/plugin/templates/langs/zh/skills/bootstrap-tools/SKILL.md +52 -0
  2662. package/plugin/templates/langs/zh/skills/deductive-audit/SKILL.md +36 -0
  2663. package/plugin/templates/langs/zh/skills/evolution-framework-update/SKILL.md +31 -0
  2664. package/plugin/templates/langs/zh/skills/evolve-system/SKILL.md +46 -0
  2665. package/plugin/templates/langs/zh/skills/evolve-task/SKILL.md +83 -0
  2666. package/plugin/templates/langs/zh/skills/feedback/SKILL.md +53 -0
  2667. package/plugin/templates/langs/zh/skills/init-strategy/SKILL.md +54 -0
  2668. package/plugin/templates/langs/zh/skills/inject-rule/SKILL.md +19 -0
  2669. package/plugin/templates/langs/zh/skills/manage-okr/SKILL.md +109 -0
  2670. package/plugin/templates/langs/zh/skills/pd-auditor/SKILL.md +61 -0
  2671. package/plugin/templates/langs/zh/skills/pd-cli-operator/SKILL.md +67 -0
  2672. package/plugin/templates/langs/zh/skills/pd-daily/SKILL.md +283 -0
  2673. package/plugin/templates/langs/zh/skills/pd-diagnostician/SKILL.md +391 -0
  2674. package/plugin/templates/langs/zh/skills/pd-explorer/SKILL.md +65 -0
  2675. package/plugin/templates/langs/zh/skills/pd-grooming/SKILL.md +46 -0
  2676. package/plugin/templates/langs/zh/skills/pd-implementer/SKILL.md +68 -0
  2677. package/plugin/templates/langs/zh/skills/pd-mentor/SKILL.md +230 -0
  2678. package/plugin/templates/langs/zh/skills/pd-pain-signal/SKILL.md +30 -0
  2679. package/plugin/templates/langs/zh/skills/pd-planner/SKILL.md +65 -0
  2680. package/plugin/templates/langs/zh/skills/pd-runtime-v2/SKILL.md +61 -0
  2681. package/plugin/templates/langs/zh/skills/plan-script/SKILL.md +32 -0
  2682. package/plugin/templates/langs/zh/skills/profile/SKILL.md +24 -0
  2683. package/plugin/templates/langs/zh/skills/reflection/SKILL.md +40 -0
  2684. package/plugin/templates/langs/zh/skills/reflection-log/SKILL.md +37 -0
  2685. package/plugin/templates/langs/zh/skills/report/SKILL.md +13 -0
  2686. package/plugin/templates/langs/zh/skills/root-cause/SKILL.md +33 -0
  2687. package/plugin/templates/langs/zh/skills/triage/SKILL.md +29 -0
  2688. package/plugin/templates/langs/zh/skills/watch-evolution/SKILL.md +33 -0
  2689. package/plugin/templates/pain_dictionary.json +36 -0
  2690. package/plugin/templates/pain_settings.json +103 -0
  2691. package/plugin/templates/workspace/.principles/DECISION_POLICY.json +44 -0
  2692. package/plugin/templates/workspace/.principles/PRINCIPLES.md +20 -0
  2693. package/plugin/templates/workspace/.principles/PROFILE.json +54 -0
  2694. package/plugin/templates/workspace/.principles/PROFILE.schema.json +56 -0
  2695. package/plugin/templates/workspace/.principles/THINKING_OS.md +64 -0
  2696. package/plugin/templates/workspace/.principles/THINKING_OS_ARCHIVE.md +7 -0
  2697. package/plugin/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +9 -0
  2698. package/plugin/templates/workspace/.principles/models/_INDEX.md +27 -0
  2699. package/plugin/templates/workspace/.principles/models/first_principles.md +62 -0
  2700. package/plugin/templates/workspace/.principles/models/marketing_4p.md +52 -0
  2701. package/plugin/templates/workspace/.principles/models/porter_five.md +63 -0
  2702. package/plugin/templates/workspace/.principles/models/swot.md +60 -0
  2703. package/plugin/templates/workspace/.principles/models/user_story_map.md +63 -0
  2704. package/plugin/templates/workspace/.state/WORKBOARD.json +4 -0
  2705. package/plugin/templates/workspace/AUDIT.md +15 -0
  2706. package/plugin/templates/workspace/PLAN.md +2 -0
  2707. package/plugin/templates/workspace/okr/CURRENT_FOCUS.md +57 -0
  2708. package/plugin/templates/workspace/okr/RECOVERY_PROTOCOL.md +56 -0
  2709. package/plugin/templates/workspace/okr/TASK_CHANGES.jsonl +6 -0
  2710. package/plugin/templates/workspace/okr/WEEK_TASKS.json +6 -0
  2711. package/templates/langs/en/core/AGENTS.md +205 -0
  2712. package/templates/langs/en/core/BOOT.md +60 -0
  2713. package/templates/langs/en/core/BOOTSTRAP.md +273 -0
  2714. package/templates/langs/en/core/HEARTBEAT.md +74 -0
  2715. package/templates/langs/en/core/IDENTITY.md +8 -0
  2716. package/templates/langs/en/core/PRINCIPLES.md +10 -0
  2717. package/templates/langs/en/core/SOUL.md +46 -0
  2718. package/templates/langs/en/core/TOOLS.md +58 -0
  2719. package/templates/langs/en/core/USER.md +10 -0
  2720. package/templates/langs/en/pain/00_seed_samples.md +23 -0
  2721. package/templates/langs/en/pain_dictionary.json +22 -0
  2722. package/templates/langs/en/principles/THINKING_OS.md +64 -0
  2723. package/templates/langs/en/skills/admin/SKILL.md +39 -0
  2724. package/templates/langs/en/skills/bootstrap-tools/SKILL.md +53 -0
  2725. package/templates/langs/en/skills/deductive-audit/SKILL.md +36 -0
  2726. package/templates/langs/en/skills/evolution-framework-update/SKILL.md +31 -0
  2727. package/templates/langs/en/skills/evolve-system/SKILL.md +46 -0
  2728. package/templates/langs/en/skills/evolve-task/SKILL.md +83 -0
  2729. package/templates/langs/en/skills/feedback/SKILL.md +51 -0
  2730. package/templates/langs/en/skills/init-strategy/SKILL.md +54 -0
  2731. package/templates/langs/en/skills/inject-rule/SKILL.md +19 -0
  2732. package/templates/langs/en/skills/manage-okr/SKILL.md +96 -0
  2733. package/templates/langs/en/skills/pain/SKILL.md +19 -0
  2734. package/templates/langs/en/skills/pd-daily/SKILL.md +199 -0
  2735. package/templates/langs/en/skills/pd-grooming/SKILL.md +46 -0
  2736. package/templates/langs/en/skills/pd-mentor/SKILL.md +230 -0
  2737. package/templates/langs/en/skills/plan-script/SKILL.md +32 -0
  2738. package/templates/langs/en/skills/profile/SKILL.md +24 -0
  2739. package/templates/langs/en/skills/reflection/SKILL.md +40 -0
  2740. package/templates/langs/en/skills/reflection-log/SKILL.md +37 -0
  2741. package/templates/langs/en/skills/report/SKILL.md +13 -0
  2742. package/templates/langs/en/skills/root-cause/SKILL.md +33 -0
  2743. package/templates/langs/en/skills/triage/SKILL.md +29 -0
  2744. package/templates/langs/en/skills/watch-evolution/SKILL.md +33 -0
  2745. package/templates/langs/zh/core/AGENTS.md +197 -0
  2746. package/templates/langs/zh/core/BOOT.md +60 -0
  2747. package/templates/langs/zh/core/BOOTSTRAP.md +273 -0
  2748. package/templates/langs/zh/core/HEARTBEAT.md +98 -0
  2749. package/templates/langs/zh/core/IDENTITY.md +8 -0
  2750. package/templates/langs/zh/core/SOUL.md +46 -0
  2751. package/templates/langs/zh/core/TOOLS.md +58 -0
  2752. package/templates/langs/zh/core/USER.md +10 -0
  2753. package/templates/langs/zh/pain/00_seed_samples.md +24 -0
  2754. package/templates/langs/zh/pain_dictionary.json +18 -0
  2755. package/templates/langs/zh/principles/THINKING_OS.md +64 -0
  2756. package/templates/langs/zh/skills/admin/SKILL.md +41 -0
  2757. package/templates/langs/zh/skills/bootstrap-tools/SKILL.md +52 -0
  2758. package/templates/langs/zh/skills/deductive-audit/SKILL.md +36 -0
  2759. package/templates/langs/zh/skills/evolution-framework-update/SKILL.md +31 -0
  2760. package/templates/langs/zh/skills/evolve-system/SKILL.md +46 -0
  2761. package/templates/langs/zh/skills/evolve-task/SKILL.md +83 -0
  2762. package/templates/langs/zh/skills/feedback/SKILL.md +53 -0
  2763. package/templates/langs/zh/skills/init-strategy/SKILL.md +54 -0
  2764. package/templates/langs/zh/skills/inject-rule/SKILL.md +19 -0
  2765. package/templates/langs/zh/skills/manage-okr/SKILL.md +109 -0
  2766. package/templates/langs/zh/skills/pain/SKILL.md +30 -0
  2767. package/templates/langs/zh/skills/pd-auditor/SKILL.md +61 -0
  2768. package/templates/langs/zh/skills/pd-daily/SKILL.md +283 -0
  2769. package/templates/langs/zh/skills/pd-diagnostician/SKILL.md +287 -0
  2770. package/templates/langs/zh/skills/pd-explorer/SKILL.md +65 -0
  2771. package/templates/langs/zh/skills/pd-grooming/SKILL.md +46 -0
  2772. package/templates/langs/zh/skills/pd-implementer/SKILL.md +68 -0
  2773. package/templates/langs/zh/skills/pd-mentor/SKILL.md +230 -0
  2774. package/templates/langs/zh/skills/pd-planner/SKILL.md +65 -0
  2775. package/templates/langs/zh/skills/pd-reporter/SKILL.md +78 -0
  2776. package/templates/langs/zh/skills/pd-reviewer/SKILL.md +66 -0
  2777. package/templates/langs/zh/skills/plan-script/SKILL.md +32 -0
  2778. package/templates/langs/zh/skills/profile/SKILL.md +24 -0
  2779. package/templates/langs/zh/skills/reflection/SKILL.md +40 -0
  2780. package/templates/langs/zh/skills/reflection-log/SKILL.md +37 -0
  2781. package/templates/langs/zh/skills/report/SKILL.md +13 -0
  2782. package/templates/langs/zh/skills/root-cause/SKILL.md +33 -0
  2783. package/templates/langs/zh/skills/triage/SKILL.md +29 -0
  2784. package/templates/langs/zh/skills/watch-evolution/SKILL.md +33 -0
  2785. package/templates/pain_dictionary.json +36 -0
  2786. package/templates/pain_settings.json +129 -0
  2787. package/templates/workspace/.principles/THINKING_OS.md +64 -0
  2788. package/templates/workspace/AUDIT.md +15 -0
  2789. package/templates/workspace/PLAN.md +2 -0
  2790. package/templates/workspace/okr/CURRENT_FOCUS.md +57 -0
  2791. package/templates/workspace/okr/RECOVERY_PROTOCOL.md +56 -0
  2792. package/templates/workspace/okr/TASK_CHANGES.jsonl +6 -0
  2793. package/templates/workspace/okr/WEEK_TASKS.json +6 -0
@@ -0,0 +1,1109 @@
1
+ /**
2
+ * PiAiRuntimeAdapter — PDRuntimeAdapter implementation for direct LLM completion.
3
+ *
4
+ * Uses @mariozechner/pi-ai to call LLM providers directly, bypassing the OpenClaw CLI.
5
+ * Solves the m8-03 UAT blocker where the main agent takes >300s.
6
+ *
7
+ * One-shot run: startRun() calls pi-ai complete(), blocks until LLM responds,
8
+ * stores output in memory. pollRun()/fetchOutput() operate on stored state.
9
+ *
10
+ * Error mapping:
11
+ * AbortError (signal.timeout) → timeout
12
+ * JSON extraction failure → output_invalid
13
+ * DiagnosticianOutputV1Schema validation failure → output_invalid
14
+ * Missing apiKeyEnv → runtime_unavailable
15
+ * Retries exhausted → execution_failed
16
+ */
17
+ import { getModel, getProviders, completeSimple } from '@mariozechner/pi-ai';
18
+ import { Value } from '@sinclair/typebox/value';
19
+ import { PDRuntimeError } from '../error-categories.js';
20
+ import { extractJsonObject } from './json-extractor.js';
21
+ import { DiagnosticianOutputV1Schema } from '../diagnostician-output.js';
22
+ import { DreamerOutputV1Schema } from '../internalization/dreamer-output.js';
23
+ import { PhilosopherOutputV1Schema } from '../internalization/philosopher-output.js';
24
+ import { ScribeOutputV1Schema } from '../internalization/scribe-output.js';
25
+ import { ArtificerOutputV1Schema } from '../internalization/artificer-output.js';
26
+ import { EvaluatorOutputV1Schema } from '../internalization/evaluator-output.js';
27
+ import { RolloutReviewerOutputV1Schema } from '../internalization/rollout-reviewer-output.js';
28
+ import { TrainerOutputV1Schema } from '../internalization/trainer-output.js';
29
+ import { EmpathyObserverOutputV1Schema } from '../observer/empathy-observer.js';
30
+ import { CorrectionObserverOutputV1Schema } from '../observer/correction-observer.js';
31
+ import { storeEmitter } from '../store/event-emitter.js';
32
+ import { attemptStructuredOutputRepair, deriveSchemaSummary } from './structured-output-repair.js';
33
+ import { formatValidationErrorEntry, safeStringifyPreview, stripLineageFields } from './output-repair-contract.js';
34
+ import { RECORD_DIAGNOSIS_V1_TOOL } from './tools/diagnostician-tool.js';
35
+ /**
36
+ * Resolve a pi-ai Model from dynamic config values.
37
+ *
38
+ * For built-in providers (openrouter, anthropic, etc.), uses getModel().
39
+ * For custom providers (e.g., xiaomi-coding with custom baseUrl), creates
40
+ * a Model<Api> object directly. This enables pi-ai to call OpenAI-compatible
41
+ * endpoints that aren't in pi-ai's built-in provider registry.
42
+ */
43
+ function resolveModel(provider, modelId, baseUrl) {
44
+ const knownProviders = getProviders();
45
+ if (knownProviders.includes(provider) && !baseUrl) {
46
+ // Built-in provider — use getModel()
47
+ // @ts-expect-error — getModel requires literal model ID types; runtime strings from config are acceptable
48
+ return getModel(provider, modelId);
49
+ }
50
+ // Custom provider — baseUrl is required
51
+ if (!baseUrl) {
52
+ throw new PDRuntimeError('runtime_unavailable', `Provider '${provider}' is not a built-in pi-ai provider and requires a custom baseUrl. ` +
53
+ `Pass --baseUrl <url> or add 'baseUrl' to your workflows.yaml policy.`);
54
+ }
55
+ // Custom provider with baseUrl — construct Model object directly
56
+ // Default to openai-completions API for custom OpenAI-compatible endpoints
57
+ const model = {
58
+ id: modelId,
59
+ name: modelId,
60
+ api: 'openai-completions',
61
+ provider,
62
+ baseUrl,
63
+ reasoning: false,
64
+ input: ['text'],
65
+ cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
66
+ contextWindow: 128000,
67
+ maxTokens: 32000,
68
+ compat: {
69
+ supportsStore: false,
70
+ supportsDeveloperRole: false,
71
+ supportsReasoningEffort: false,
72
+ supportsUsageInStreaming: true,
73
+ maxTokensField: 'max_tokens',
74
+ requiresToolResultName: false,
75
+ requiresAssistantAfterToolResult: false,
76
+ requiresThinkingAsText: false,
77
+ requiresReasoningContentOnAssistantMessages: false,
78
+ thinkingFormat: 'deepseek',
79
+ supportsStrictMode: false,
80
+ },
81
+ };
82
+ return model;
83
+ }
84
+ /**
85
+ * Detection for abort/timeout errors from provider SDKs.
86
+ *
87
+ * Checks:
88
+ * 1. AbortSignal already aborted
89
+ * 2. DOMException AbortError (native fetch/Node abort)
90
+ * 3. Error objects with name === 'AbortError' (some SDKs)
91
+ * 4. Non-PDRuntimeError Error with "timeout" or "abort" in message
92
+ * (provider SDKs that throw plain Error on timeout)
93
+ *
94
+ * Excludes PDRuntimeError to avoid false positives from our own wrapped
95
+ * error messages that may contain "timed out".
96
+ */
97
+ function isObjectWithKey(obj, key) {
98
+ return typeof obj === 'object' && obj !== null && Object.hasOwn(obj, key);
99
+ }
100
+ function isAbortError(err, signal) {
101
+ if (signal?.aborted)
102
+ return true;
103
+ if (err instanceof DOMException && err.name === 'AbortError')
104
+ return true;
105
+ if (isObjectWithKey(err, 'name')) {
106
+ const rawName = err.name;
107
+ if (typeof rawName === 'string' && rawName === 'AbortError') {
108
+ return true;
109
+ }
110
+ }
111
+ if (err instanceof Error && !(err instanceof PDRuntimeError) && (/abort/i.test(err.message) || /timeout/i.test(err.message)))
112
+ return true;
113
+ return false;
114
+ }
115
+ function classifyFailure(err, signal) {
116
+ if (signal?.aborted) {
117
+ return {
118
+ category: 'timeout',
119
+ classification: 'client_timeout_budget_exhausted',
120
+ };
121
+ }
122
+ let errorMsg = '';
123
+ let name = '';
124
+ if (err instanceof Error) {
125
+ const { message, name: errName } = err;
126
+ errorMsg = message;
127
+ name = errName;
128
+ }
129
+ else if (typeof err === 'object' && err !== null) {
130
+ if (isObjectWithKey(err, 'message')) {
131
+ const rawMessage = err.message;
132
+ if (typeof rawMessage === 'string') {
133
+ errorMsg = rawMessage;
134
+ }
135
+ }
136
+ if (isObjectWithKey(err, 'name')) {
137
+ const rawName = err.name;
138
+ if (typeof rawName === 'string') {
139
+ name = rawName;
140
+ }
141
+ }
142
+ }
143
+ else {
144
+ errorMsg = String(err);
145
+ }
146
+ const isAbort = name === 'AbortError' || (err instanceof DOMException && err.name === 'AbortError');
147
+ const hasTimeoutKeywords = /timeout|timed\s*out/i.test(errorMsg) || /abort/i.test(errorMsg);
148
+ if (isAbort || hasTimeoutKeywords) {
149
+ return {
150
+ category: 'timeout',
151
+ classification: 'provider_transient_timeout',
152
+ };
153
+ }
154
+ return {
155
+ category: 'execution_failed',
156
+ classification: 'not_applicable',
157
+ };
158
+ }
159
+ /**
160
+ * Extract text content from an AssistantMessage, or throw PDRuntimeError.
161
+ *
162
+ * pi-ai complete() may RESOLVE (not reject) with stopReason:'error' when
163
+ * the provider returns an error response (e.g., 401, rate limit).
164
+ * This helper normalizes those resolved-error responses into PDRuntimeError
165
+ * so downstream code never sees a "successful" response that is actually broken.
166
+ *
167
+ * Error classification:
168
+ * stopReason:'aborted' → timeout
169
+ * stopReason:'error' + timeout/abort in errorMessage → timeout
170
+ * stopReason:'error' + other → execution_failed
171
+ * no text content block → output_invalid
172
+ */
173
+ function extractAssistantTextOrThrow(response, signal) {
174
+ // Handle resolved-error responses from pi-ai
175
+ if (response.stopReason === 'error' || response.stopReason === 'aborted') {
176
+ const rawMessage = response.errorMessage ?? 'unknown provider error';
177
+ // Truncate to 300 chars to avoid leaking huge payloads into logs/telemetry
178
+ const boundedMessage = rawMessage.length > 300 ? rawMessage.substring(0, 300) + '...' : rawMessage;
179
+ const isTimeout = response.stopReason === 'aborted'
180
+ || signal?.aborted
181
+ || /timeout|timed\s*out/i.test(rawMessage)
182
+ || /abort/i.test(rawMessage);
183
+ throw new PDRuntimeError(isTimeout ? 'timeout' : 'execution_failed', isTimeout
184
+ ? `LLM request timed out: ${boundedMessage}`
185
+ : `LLM execution failed: ${boundedMessage}`);
186
+ }
187
+ // Find text content (may be mixed with thinking content from reasoning-enabled models)
188
+ const textContent = response.content.find(c => c.type === 'text' && c.text && c.text.trim().length > 0);
189
+ if (!textContent || textContent.type !== 'text' || !textContent.text) {
190
+ throw new PDRuntimeError('output_invalid', `No text content in LLM response. Content types: ${response.content.map(c => c.type).join(', ')}`);
191
+ }
192
+ return textContent.text;
193
+ }
194
+ const OUTPUT_SCHEMA_REGISTRY = new Map([
195
+ ['diagnostician-output-v1', DiagnosticianOutputV1Schema],
196
+ ['dreamer-output-v1', DreamerOutputV1Schema],
197
+ ['philosopher-output-v1', PhilosopherOutputV1Schema],
198
+ ['scribe-output-v1', ScribeOutputV1Schema],
199
+ ['artificer-output-v1', ArtificerOutputV1Schema],
200
+ ['evaluator-output-v1', EvaluatorOutputV1Schema],
201
+ ['rollout-reviewer-output-v1', RolloutReviewerOutputV1Schema],
202
+ ['trainer-output-v1', TrainerOutputV1Schema],
203
+ ['empathy-observer-output-v1', EmpathyObserverOutputV1Schema],
204
+ ['correction-observer-output-v1', CorrectionObserverOutputV1Schema],
205
+ ]);
206
+ export class PiAiRuntimeAdapter {
207
+ config;
208
+ runs = new Map();
209
+ eventEmitter;
210
+ runtimeKind = 'pi-ai';
211
+ defaultCapabilities = {
212
+ supportsStructuredJsonOutput: true,
213
+ supportsToolUse: false,
214
+ supportsWorkingDirectory: false,
215
+ supportsModelSelection: true,
216
+ supportsLongRunningSessions: false,
217
+ supportsCancellation: true,
218
+ supportsArtifactWriteBack: false,
219
+ supportsConcurrentRuns: false,
220
+ supportsStreaming: false,
221
+ };
222
+ constructor(config) {
223
+ this.config = config;
224
+ this.eventEmitter = config.eventEmitter ?? storeEmitter;
225
+ }
226
+ kind() {
227
+ return this.runtimeKind;
228
+ }
229
+ async getCapabilities() {
230
+ return this.defaultCapabilities;
231
+ }
232
+ /**
233
+ * Three-stage health probe (per M6 lesson: binary/list-only checks are fake probes).
234
+ *
235
+ * 1. apiKey exists in environment
236
+ * 2. getModel validates without throwing
237
+ * 3. Minimal complete probe with {"ok":true} verification
238
+ */
239
+ async healthCheck() {
240
+ const lastCheckedAt = new Date().toISOString();
241
+ // Stage 1: apiKey exists
242
+ const apiKey = process.env[this.config.apiKeyEnv];
243
+ if (!apiKey) {
244
+ return {
245
+ healthy: false,
246
+ degraded: false,
247
+ warnings: [`API key not found in env: ${this.config.apiKeyEnv}`],
248
+ lastCheckedAt,
249
+ };
250
+ }
251
+ // Stage 2+3: getModel valid + minimal complete probe
252
+ try {
253
+ const model = resolveModel(this.config.provider, this.config.model, this.config.baseUrl);
254
+ const timeoutMs = this.config.timeoutMs ?? 120_000;
255
+ const signal = AbortSignal.timeout(timeoutMs);
256
+ const probeContext = {
257
+ messages: [{
258
+ role: 'user',
259
+ content: 'Reply with {"ok":true} only.',
260
+ timestamp: Date.now(),
261
+ }],
262
+ };
263
+ const response = await completeSimple(model, probeContext, {
264
+ signal,
265
+ apiKey,
266
+ timeoutMs,
267
+ maxRetries: 0,
268
+ });
269
+ // extractAssistantTextOrThrow normalizes resolved-error responses
270
+ const text = extractAssistantTextOrThrow(response, signal);
271
+ const parsed = extractJsonObject(text);
272
+ if (typeof parsed !== 'object' ||
273
+ parsed === null ||
274
+ !('ok' in parsed) ||
275
+ parsed.ok !== true) {
276
+ return {
277
+ healthy: false,
278
+ degraded: true,
279
+ warnings: [`probe returned unexpected result: ${text.substring(0, 200)}`],
280
+ lastCheckedAt,
281
+ };
282
+ }
283
+ }
284
+ catch (err) {
285
+ // PDRuntimeError from extractAssistantTextOrThrow (timeout/execution_failed)
286
+ // or thrown errors from complete() (AbortError, network, etc.)
287
+ if (err instanceof PDRuntimeError && err.category === 'timeout') {
288
+ return {
289
+ healthy: false,
290
+ degraded: true,
291
+ warnings: [`probe timed out: ${err.message}`],
292
+ lastCheckedAt,
293
+ };
294
+ }
295
+ if (err instanceof PDRuntimeError) {
296
+ return {
297
+ healthy: false,
298
+ degraded: err.category === 'output_invalid',
299
+ warnings: [`probe failed: ${err.message}`],
300
+ lastCheckedAt,
301
+ };
302
+ }
303
+ if (isAbortError(err)) {
304
+ return {
305
+ healthy: false,
306
+ degraded: true,
307
+ warnings: ['probe timed out'],
308
+ lastCheckedAt,
309
+ };
310
+ }
311
+ return {
312
+ healthy: false,
313
+ degraded: false,
314
+ warnings: [`probe failed: ${err instanceof Error ? err.message : String(err)}`],
315
+ lastCheckedAt,
316
+ };
317
+ }
318
+ return { healthy: true, degraded: false, warnings: [], lastCheckedAt };
319
+ }
320
+ /**
321
+ * One-shot run: call LLM via pi-ai complete(), parse and validate output.
322
+ * Blocks until LLM responds (or times out). Run is terminal on return.
323
+ *
324
+ * Timeout priority: input.timeoutMs (from runner) > this.config.timeoutMs (from workflows.yaml) > 300_000 (default)
325
+ * The resolved effectiveTimeoutMs is passed through to completeWithRetry and pi-ai complete()
326
+ * so that the provider request timeout always matches the runner's intent.
327
+ */
328
+ async startRun(input) {
329
+ const runId = crypto.randomUUID();
330
+ const startedAt = new Date().toISOString();
331
+ // Read API key
332
+ const apiKey = process.env[this.config.apiKeyEnv];
333
+ if (!apiKey) {
334
+ throw new PDRuntimeError('runtime_unavailable', `API key not found in env: ${this.config.apiKeyEnv}`);
335
+ }
336
+ // Create run state immediately — failed runs are always trackable
337
+ const runState = {
338
+ runId,
339
+ startedAt,
340
+ endedAt: startedAt, // will be updated on completion
341
+ status: 'failed', // default until succeeded
342
+ };
343
+ this.runs.set(runId, runState);
344
+ // AbortSignal.timeout for clean timeout control
345
+ // Priority: input.timeoutMs (runner) > config.timeoutMs (workflows.yaml) > 300_000 (default)
346
+ const effectiveTimeoutMs = input.timeoutMs ?? this.config.timeoutMs ?? 300_000;
347
+ const timeoutSource = input.timeoutMs !== undefined ? 'runner_input'
348
+ : this.config.timeoutMs !== undefined ? 'adapter_config'
349
+ : 'default';
350
+ const signal = AbortSignal.timeout(effectiveTimeoutMs);
351
+ // Build pi-ai Context from inputPayload
352
+ const messageContent = typeof input.inputPayload === 'string'
353
+ ? input.inputPayload
354
+ : JSON.stringify(input.inputPayload);
355
+ const userMessage = {
356
+ role: 'user',
357
+ content: messageContent,
358
+ timestamp: Date.now(),
359
+ };
360
+ const context = { messages: [userMessage] };
361
+ // Get model
362
+ const model = resolveModel(this.config.provider, this.config.model, this.config.baseUrl);
363
+ // Emit runtime_invocation_started telemetry
364
+ this.eventEmitter.emitTelemetry({
365
+ eventType: 'runtime_invocation_started',
366
+ traceId: input.taskRef?.taskId ?? runId,
367
+ timestamp: startedAt,
368
+ sessionId: 'pi-ai-adapter',
369
+ agentId: 'pi-ai-adapter',
370
+ payload: {
371
+ runId,
372
+ runtimeKind: 'pi-ai',
373
+ runnerKind: input.agentSpec.agentId,
374
+ provider: this.config.provider,
375
+ model: this.config.model,
376
+ timeoutMs: effectiveTimeoutMs,
377
+ timeoutSource,
378
+ outputSchemaRef: input.outputSchemaRef ?? 'unknown',
379
+ },
380
+ });
381
+ try {
382
+ // PRI-271 B3: Three-path fallback chain for structured output
383
+ const schemaRef = input.outputSchemaRef;
384
+ const schema = schemaRef ? OUTPUT_SCHEMA_REGISTRY.get(schemaRef) : undefined;
385
+ const strategy = this.config.outputPathStrategy ?? 'tool_call_first';
386
+ let validatedOutput = undefined;
387
+ const schemaSummary = (schema && schemaRef) ? deriveSchemaSummary(schema) : undefined;
388
+ // ── Path 1: Tool calling (PRI-271 B2) ──
389
+ if (strategy === 'tool_call_first' && schema && schemaRef) {
390
+ const toolResult = await this.tryToolCallPath({ model, baseContext: context, schemaRef, schema, signal, apiKey, effectiveTimeoutMs, input, runId });
391
+ if (toolResult.success && toolResult.output !== undefined) {
392
+ validatedOutput = toolResult.output;
393
+ this.emitOutputPathTelemetry({ runId, input, path: 'tool_call', fallbackReason: null });
394
+ }
395
+ else {
396
+ this.emitOutputPathTelemetry({ runId, input, path: null, fallbackReason: toolResult.fallbackReason ?? 'provider_no_tool_use' });
397
+ }
398
+ }
399
+ // ── Path 2: JSON mode (PRI-271 B1) ──
400
+ if (!validatedOutput && (strategy === 'tool_call_first' || strategy === 'json_mode_first') && schema && schemaRef) {
401
+ const jsonResult = await this.tryJsonModePath({ model, baseContext: context, schemaRef, schema, signal, apiKey, effectiveTimeoutMs, input, runId });
402
+ if (jsonResult.success && jsonResult.output !== undefined) {
403
+ validatedOutput = jsonResult.output;
404
+ this.emitOutputPathTelemetry({ runId, input, path: 'json_object_mode', fallbackReason: null });
405
+ }
406
+ else {
407
+ this.emitOutputPathTelemetry({ runId, input, path: null, fallbackReason: jsonResult.fallbackReason ?? 'json_parse_failed' });
408
+ }
409
+ }
410
+ // ── Path 3: Free-form + repair (current behavior, enhanced) ──
411
+ if (!validatedOutput) {
412
+ const response = await this.completeWithRetry(model, context, { signal, apiKey, effectiveTimeoutMs, timeoutSource, input, runId });
413
+ const text = extractAssistantTextOrThrow(response, signal);
414
+ let parsedOutput = extractJsonObject(text);
415
+ if (!parsedOutput) {
416
+ this.eventEmitter.emitTelemetry({
417
+ eventType: 'output_extraction_failed',
418
+ traceId: input.taskRef?.taskId ?? runId,
419
+ timestamp: new Date().toISOString(),
420
+ sessionId: 'pi-ai-adapter',
421
+ agentId: 'pi-ai-adapter',
422
+ payload: {
423
+ runId,
424
+ runtimeKind: 'pi-ai',
425
+ provider: this.config.provider,
426
+ model: this.config.model,
427
+ outputSchemaRef: input.outputSchemaRef ?? 'unknown',
428
+ rawOutputPreview: text.slice(0, 500),
429
+ },
430
+ });
431
+ throw new PDRuntimeError('output_invalid', 'No valid JSON found in LLM response');
432
+ }
433
+ if (schema && !Value.Check(schema, parsedOutput)) {
434
+ // Schema validation failed — attempt repair with enhanced config (PRI-271 A1/A2/A3)
435
+ const schemaErrors = [...Value.Errors(schema, parsedOutput)]
436
+ .map(e => ({ path: e.path, message: e.message, value: e.value }));
437
+ const validationErrorEntries = schemaErrors
438
+ .slice(0, 10)
439
+ .map(e => formatValidationErrorEntry(e.path, e.message, e.value));
440
+ const rawOutputPreview = safeStringifyPreview(parsedOutput);
441
+ this.eventEmitter.emitTelemetry({
442
+ eventType: 'output_schema_invalid',
443
+ traceId: input.taskRef?.taskId ?? runId,
444
+ timestamp: new Date().toISOString(),
445
+ sessionId: 'pi-ai-adapter',
446
+ agentId: 'pi-ai-adapter',
447
+ payload: {
448
+ runId,
449
+ runtimeKind: 'pi-ai',
450
+ outputSchemaRef: schemaRef ?? 'unknown',
451
+ provider: this.config.provider,
452
+ model: this.config.model,
453
+ rawOutputPreview,
454
+ validationErrors: validationErrorEntries,
455
+ },
456
+ });
457
+ const originalOutput = typeof parsedOutput === 'object' && parsedOutput !== null
458
+ ? parsedOutput
459
+ : undefined;
460
+ const repairResult = await attemptStructuredOutputRepair(parsedOutput, schemaErrors, {
461
+ llmCaller: (prompt) => this.repairLLMCall(model, prompt, { signal, apiKey }),
462
+ schemaCheck: (value) => Value.Check(schema, value),
463
+ schemaErrors: (value) => [...Value.Errors(schema, value)].map(e => ({ path: e.path, message: e.message, value: e.value })),
464
+ }, {
465
+ schemaRef: schemaRef ?? 'unknown',
466
+ originalOutput,
467
+ schemaSummary,
468
+ maxRepairAttempts: this.config.maxRepairAttempts,
469
+ });
470
+ this.eventEmitter.emitTelemetry({
471
+ eventType: 'output_repair_attempted',
472
+ traceId: input.taskRef?.taskId ?? runId,
473
+ timestamp: new Date().toISOString(),
474
+ sessionId: 'pi-ai-adapter',
475
+ agentId: 'pi-ai-adapter',
476
+ payload: {
477
+ runId,
478
+ runtimeKind: 'pi-ai',
479
+ outputSchemaRef: schemaRef ?? 'unknown',
480
+ repaired: repairResult.repaired,
481
+ attemptsUsed: repairResult.attemptsUsed,
482
+ repairSummary: repairResult.repairSummary,
483
+ repairAttempts: repairResult.repairAttempts,
484
+ outputPath: 'free_form_with_repair',
485
+ },
486
+ });
487
+ if (repairResult.repaired && repairResult.output) {
488
+ parsedOutput = repairResult.output;
489
+ }
490
+ else {
491
+ const evidencePack = {
492
+ schemaRef: schemaRef ?? 'unknown',
493
+ provider: this.config.provider,
494
+ model: this.config.model,
495
+ rawOutputPreview,
496
+ validationErrors: validationErrorEntries,
497
+ repairAttempts: repairResult.repairAttempts,
498
+ finalFailureReason: 'repair_exhausted',
499
+ };
500
+ this.eventEmitter.emitTelemetry({
501
+ eventType: 'output_repair_exhausted',
502
+ traceId: input.taskRef?.taskId ?? runId,
503
+ timestamp: new Date().toISOString(),
504
+ sessionId: 'pi-ai-adapter',
505
+ agentId: 'pi-ai-adapter',
506
+ payload: {
507
+ runId,
508
+ runtimeKind: 'pi-ai',
509
+ outputSchemaRef: schemaRef ?? 'unknown',
510
+ provider: this.config.provider,
511
+ model: this.config.model,
512
+ rawOutputPreview,
513
+ validationErrors: validationErrorEntries,
514
+ repairAttempts: evidencePack.repairAttempts,
515
+ finalFailureReason: evidencePack.finalFailureReason,
516
+ },
517
+ });
518
+ throw new PDRuntimeError('output_invalid', `LLM output does not match ${schemaRef ?? 'unknown'} schema`, { evidencePack });
519
+ }
520
+ }
521
+ // Lineage fields (taskId/sourcePainId/sourceTaskId/etc.) are
522
+ // intentionally stripped from LLM output. Downstream consumers
523
+ // (DiagnosticianRunner, committer) MUST get these values from
524
+ // RunnerContext / TaskRecord, never from validated output.
525
+ // This prevents LLM-supplied lineage from poisoning downstream
526
+ // commits (ERR-008 family). See PRI-272.
527
+ const protectedFreeForm = typeof parsedOutput === 'object' && parsedOutput !== null
528
+ ? stripLineageFields(parsedOutput)
529
+ : parsedOutput;
530
+ validatedOutput = protectedFreeForm;
531
+ this.emitOutputPathTelemetry({ runId, input, path: 'free_form_with_repair', fallbackReason: null });
532
+ }
533
+ // Update run state to succeeded
534
+ const endedAt = new Date().toISOString();
535
+ runState.status = 'succeeded';
536
+ runState.endedAt = endedAt;
537
+ runState.output = { runId, payload: validatedOutput };
538
+ // Emit runtime_invocation_succeeded telemetry
539
+ this.eventEmitter.emitTelemetry({
540
+ eventType: 'runtime_invocation_succeeded',
541
+ traceId: input.taskRef?.taskId ?? runId,
542
+ timestamp: endedAt,
543
+ sessionId: 'pi-ai-adapter',
544
+ agentId: 'pi-ai-adapter',
545
+ payload: {
546
+ runId,
547
+ runtimeKind: 'pi-ai',
548
+ },
549
+ });
550
+ }
551
+ catch (err) {
552
+ // Update run state to failed
553
+ const endedAt = new Date().toISOString();
554
+ runState.endedAt = endedAt;
555
+ const elapsedMs = Date.now() - Date.parse(startedAt);
556
+ const maxRetries = this.config.maxRetries ?? 2;
557
+ let timeoutClassification = 'not_applicable';
558
+ let providerEvidence = '';
559
+ let retryAttempt = 0;
560
+ if (err instanceof PDRuntimeError && err.details) {
561
+ const { details } = err;
562
+ if (isObjectWithKey(details, 'timeoutClassification')) {
563
+ const { timeoutClassification: tc } = details;
564
+ if (typeof tc === 'string')
565
+ timeoutClassification = tc;
566
+ }
567
+ if (isObjectWithKey(details, 'providerEvidence')) {
568
+ const { providerEvidence: pe } = details;
569
+ if (typeof pe === 'string')
570
+ providerEvidence = pe;
571
+ }
572
+ if (isObjectWithKey(details, 'retryAttempt')) {
573
+ const { retryAttempt: ra } = details;
574
+ if (typeof ra === 'number')
575
+ retryAttempt = ra;
576
+ }
577
+ }
578
+ if (isAbortError(err, signal)) {
579
+ runState.status = 'timed_out';
580
+ runState.reason = `[timeout] LLM request timed out after ${effectiveTimeoutMs}ms (timeoutSource=${timeoutSource})`;
581
+ if (timeoutClassification === 'not_applicable') {
582
+ timeoutClassification = signal?.aborted ? 'client_timeout_budget_exhausted' : 'provider_transient_timeout';
583
+ }
584
+ if (!providerEvidence) {
585
+ providerEvidence = safeStringifyPreview(err, 300);
586
+ }
587
+ }
588
+ else if (err instanceof PDRuntimeError) {
589
+ runState.status = 'failed';
590
+ runState.reason = err.message;
591
+ if (err.category === 'timeout') {
592
+ runState.status = 'timed_out';
593
+ if (timeoutClassification === 'not_applicable') {
594
+ timeoutClassification = 'provider_transient_timeout';
595
+ }
596
+ }
597
+ if (!providerEvidence) {
598
+ providerEvidence = safeStringifyPreview(err, 300);
599
+ }
600
+ }
601
+ else {
602
+ runState.status = 'failed';
603
+ runState.reason = err instanceof Error ? err.message : String(err);
604
+ providerEvidence = safeStringifyPreview(err, 300);
605
+ }
606
+ // Emit runtime_invocation_failed telemetry
607
+ const errorCategory = err instanceof PDRuntimeError ? err.category : 'execution_failed';
608
+ this.eventEmitter.emitTelemetry({
609
+ eventType: 'runtime_invocation_failed',
610
+ traceId: input.taskRef?.taskId ?? runId,
611
+ timestamp: endedAt,
612
+ sessionId: 'pi-ai-adapter',
613
+ agentId: 'pi-ai-adapter',
614
+ payload: {
615
+ runId,
616
+ runtimeKind: 'pi-ai',
617
+ runnerKind: input.agentSpec.agentId,
618
+ provider: this.config.provider,
619
+ model: this.config.model,
620
+ effectiveTimeoutMs,
621
+ timeoutSource,
622
+ elapsedMs,
623
+ timeoutClassification,
624
+ retryAttempt,
625
+ maxRetries,
626
+ providerEvidence,
627
+ errorMessage: runState.reason,
628
+ errorCategory,
629
+ finalFailure: true,
630
+ },
631
+ });
632
+ // Re-throw PDRuntimeError as-is, wrap others
633
+ if (err instanceof PDRuntimeError) {
634
+ throw err;
635
+ }
636
+ throw new PDRuntimeError('execution_failed', `LLM completion failed: ${err instanceof Error ? err.message : String(err)}`, {
637
+ elapsedMs,
638
+ providerEvidence,
639
+ });
640
+ }
641
+ return { runId, runtimeKind: 'pi-ai', startedAt };
642
+ }
643
+ async pollRun(runId) {
644
+ const state = this.runs.get(runId);
645
+ if (!state) {
646
+ throw new PDRuntimeError('input_invalid', `Run ${runId} not found`);
647
+ }
648
+ return {
649
+ runId,
650
+ status: state.status,
651
+ startedAt: state.startedAt,
652
+ endedAt: state.endedAt,
653
+ reason: state.reason,
654
+ };
655
+ }
656
+ async cancelRun(runId) {
657
+ // One-shot mode: startRun() blocks until LLM responds, so cancel is always a no-op.
658
+ // The run is already terminal by the time cancelRun could be called.
659
+ const state = this.runs.get(runId);
660
+ if (state && state.status === 'succeeded') {
661
+ return;
662
+ }
663
+ }
664
+ async fetchOutput(runId) {
665
+ const state = this.runs.get(runId);
666
+ if (!state || !state.output) {
667
+ return null;
668
+ }
669
+ return state.output;
670
+ }
671
+ async fetchArtifacts(runId) {
672
+ // Artifact refs are not yet exposed by the pi-ai adapter.
673
+ // The DiagnosticianRunner stores artifacts via committer.writeArtifact() directly.
674
+ // Validate runId exists for API consistency with other methods.
675
+ if (!this.runs.has(runId)) {
676
+ throw new PDRuntimeError('input_invalid', `Run '${runId}' not found`);
677
+ }
678
+ return [];
679
+ }
680
+ // ── Private helpers ──
681
+ // ── PRI-271: Three-path output extraction ──
682
+ /**
683
+ * Path 1: Tool calling (PRI-271 B2).
684
+ *
685
+ * Passes `RECORD_DIAGNOSIS_V1_TOOL` via context.tools and injects
686
+ * `tool_choice: 'required'` via onPayload. If the provider supports tool
687
+ * calling, the response contains ToolCall content blocks with pre-parsed
688
+ * arguments that we validate against the schema.
689
+ */
690
+ // eslint-disable-next-line @typescript-eslint/class-methods-use-this -- stateless helper; kept as private method for cohesion
691
+ async tryToolCallPath(params) {
692
+ try {
693
+ const toolContext = {
694
+ ...params.baseContext,
695
+ tools: [RECORD_DIAGNOSIS_V1_TOOL],
696
+ };
697
+ const completeOptions = {
698
+ signal: params.signal,
699
+ apiKey: params.apiKey,
700
+ timeoutMs: params.effectiveTimeoutMs,
701
+ maxRetries: 0,
702
+ onPayload: (payload) => {
703
+ if (typeof payload === 'object' && payload !== null) {
704
+ const p = payload;
705
+ p.tool_choice = 'required';
706
+ }
707
+ return payload;
708
+ },
709
+ };
710
+ const response = await completeSimple(params.model, toolContext, completeOptions);
711
+ if (response.stopReason !== 'toolUse') {
712
+ return { success: false, fallbackReason: 'provider_no_tool_use' };
713
+ }
714
+ const toolCallBlock = response.content.find((block) => typeof block === 'object' && block !== null && 'type' in block && block.type === 'toolCall');
715
+ if (!toolCallBlock) {
716
+ return { success: false, fallbackReason: 'tool_call_extraction_failed' };
717
+ }
718
+ const toolArgs = toolCallBlock.arguments;
719
+ if (!Value.Check(params.schema, toolArgs)) {
720
+ return { success: false, fallbackReason: 'tool_call_schema_invalid' };
721
+ }
722
+ // Lineage fields (taskId/sourcePainId/sourceTaskId/etc.) are
723
+ // intentionally stripped from LLM output. Downstream consumers
724
+ // (DiagnosticianRunner, committer) MUST get these values from
725
+ // RunnerContext / TaskRecord, never from validated output.
726
+ // This prevents LLM-supplied lineage from poisoning downstream
727
+ // commits (ERR-008 family). See PRI-271 D4 in PR description.
728
+ const protectedArgs = typeof toolArgs === 'object' && toolArgs !== null
729
+ ? stripLineageFields(toolArgs)
730
+ : toolArgs;
731
+ return { success: true, output: protectedArgs };
732
+ }
733
+ catch (err) {
734
+ if (err instanceof PDRuntimeError && (err.category === 'timeout' || err.category === 'runtime_unavailable')) {
735
+ throw err;
736
+ }
737
+ const reason = err instanceof PDRuntimeError && err.category === 'output_invalid'
738
+ ? 'tool_call_extraction_failed'
739
+ : 'provider_no_tool_use';
740
+ return { success: false, fallbackReason: reason };
741
+ }
742
+ }
743
+ /**
744
+ * Path 2: JSON mode (PRI-271 B1).
745
+ *
746
+ * Injects `response_format: { type: 'json_object' }` via onPayload
747
+ * to force the provider to output valid JSON. Then parses and validates.
748
+ */
749
+ // eslint-disable-next-line @typescript-eslint/class-methods-use-this -- stateless helper; kept as private method for cohesion
750
+ async tryJsonModePath(params) {
751
+ try {
752
+ const completeOptions = {
753
+ signal: params.signal,
754
+ apiKey: params.apiKey,
755
+ timeoutMs: params.effectiveTimeoutMs,
756
+ maxRetries: 0,
757
+ onPayload: (payload) => {
758
+ if (typeof payload === 'object' && payload !== null) {
759
+ const p = payload;
760
+ p.response_format = { type: 'json_object' };
761
+ }
762
+ return payload;
763
+ },
764
+ };
765
+ const response = await completeSimple(params.model, params.baseContext, completeOptions);
766
+ const text = extractAssistantTextOrThrow(response, params.signal);
767
+ const parsed = extractJsonObject(text);
768
+ if (!parsed) {
769
+ return { success: false, fallbackReason: 'json_parse_failed' };
770
+ }
771
+ if (!Value.Check(params.schema, parsed)) {
772
+ return { success: false, fallbackReason: 'json_schema_invalid' };
773
+ }
774
+ // Lineage fields (taskId/sourcePainId/sourceTaskId/etc.) are
775
+ // intentionally stripped from LLM output. Downstream consumers
776
+ // (DiagnosticianRunner, committer) MUST get these values from
777
+ // RunnerContext / TaskRecord, never from validated output.
778
+ // This prevents LLM-supplied lineage from poisoning downstream
779
+ // commits (ERR-008 family). See PRI-271 D4 in PR description.
780
+ const protectedParsed = typeof parsed === 'object' && parsed !== null
781
+ ? stripLineageFields(parsed)
782
+ : parsed;
783
+ return { success: true, output: protectedParsed };
784
+ }
785
+ catch (err) {
786
+ if (err instanceof PDRuntimeError && (err.category === 'timeout' || err.category === 'runtime_unavailable')) {
787
+ throw err;
788
+ }
789
+ if (err instanceof PDRuntimeError && err.category === 'output_invalid') {
790
+ return { success: false, fallbackReason: 'json_parse_failed' };
791
+ }
792
+ return { success: false, fallbackReason: 'provider_no_json_mode' };
793
+ }
794
+ }
795
+ /**
796
+ * Emit output_path_chosen telemetry (PRI-271 B3).
797
+ *
798
+ * Every path selection and fallback emits structured telemetry.
799
+ * `path` is set when a path succeeds; null when recording a fallback reason.
800
+ */
801
+ emitOutputPathTelemetry(params) {
802
+ this.eventEmitter.emitTelemetry({
803
+ eventType: params.path ? 'output_path_chosen' : 'output_path_fallback',
804
+ traceId: params.input.taskRef?.taskId ?? params.runId,
805
+ timestamp: new Date().toISOString(),
806
+ sessionId: 'pi-ai-adapter',
807
+ agentId: 'pi-ai-adapter',
808
+ payload: {
809
+ runId: params.runId,
810
+ runtimeKind: 'pi-ai',
811
+ provider: this.config.provider,
812
+ model: this.config.model,
813
+ outputSchemaRef: params.input.outputSchemaRef ?? 'unknown',
814
+ outputPath: params.path,
815
+ fallbackReason: params.fallbackReason,
816
+ },
817
+ });
818
+ }
819
+ /**
820
+ * Make a single LLM call for output repair (PRI-71).
821
+ * Returns extracted text response or null if no content.
822
+ * Reuses same provider/model/apiKey as the original call.
823
+ *
824
+ * Uses an independent AbortSignal (fixed 60s timeout) to avoid the repair
825
+ * call immediately timing out when the original call consumed most of the
826
+ * original timeout budget (e.g., 5min original → 4m50s elapsed → 10s left).
827
+ */
828
+ // eslint-disable-next-line @typescript-eslint/class-methods-use-this -- REPAIR_TIMEOUT_MS is a constant; this method is intentionally stateless
829
+ async repairLLMCall(model, prompt, options) {
830
+ const REPAIR_TIMEOUT_MS = 60_000;
831
+ const repairSignal = AbortSignal.timeout(REPAIR_TIMEOUT_MS);
832
+ const repairMessage = {
833
+ role: 'user',
834
+ content: prompt,
835
+ timestamp: Date.now(),
836
+ };
837
+ const repairContext = { messages: [repairMessage] };
838
+ const response = await completeSimple(model, repairContext, {
839
+ signal: repairSignal,
840
+ apiKey: options.apiKey,
841
+ timeoutMs: REPAIR_TIMEOUT_MS,
842
+ maxRetries: 0,
843
+ });
844
+ // extractAssistantTextOrThrow throws:
845
+ // - output_invalid: no text content in response
846
+ // - timeout: aborted/timed out (caller's signal or pi-ai internal)
847
+ // - execution_failed: provider error (non-timeout)
848
+ // We only swallow output_invalid, letting timeout/execution_failed propagate.
849
+ try {
850
+ return extractAssistantTextOrThrow(response, options.signal);
851
+ }
852
+ catch (err) {
853
+ if (err instanceof PDRuntimeError && err.category === 'output_invalid') {
854
+ return null;
855
+ }
856
+ throw err;
857
+ }
858
+ }
859
+ /**
860
+ * Call pi-ai complete() with retry and exponential backoff.
861
+ * Disables pi-ai built-in retry (maxRetries: 0) to avoid double-retry.
862
+ */
863
+ async completeWithRetry(model, context, options) {
864
+ const maxRetries = this.config.maxRetries ?? 2;
865
+ const { effectiveTimeoutMs = this.config.timeoutMs ?? 300_000, timeoutSource = 'default', input, runId = crypto.randomUUID(), } = options;
866
+ let lastError = undefined;
867
+ const overallStartTime = Date.now();
868
+ const getDelay = (attemptIndex) => {
869
+ return this.config._testBackoffDelayMs !== undefined
870
+ ? this.config._testBackoffDelayMs
871
+ : Math.min(1000 * Math.pow(2, attemptIndex), 30_000);
872
+ };
873
+ for (let attempt = 0; attempt <= maxRetries; attempt++) {
874
+ const elapsedMs = Date.now() - overallStartTime;
875
+ const remainingMs = effectiveTimeoutMs - elapsedMs;
876
+ // Fail fast if overall budget signal is aborted, or if we have already run out of budget time
877
+ if (options.signal?.aborted || remainingMs <= 0) {
878
+ const errorDetails = {
879
+ timeoutClassification: 'client_timeout_budget_exhausted',
880
+ effectiveTimeoutMs,
881
+ timeoutSource,
882
+ elapsedMs,
883
+ retryAttempt: attempt,
884
+ maxRetries,
885
+ providerEvidence: options.signal?.aborted
886
+ ? 'Client budget signal aborted'
887
+ : `Overall timeout budget exhausted (elapsed ${elapsedMs}ms of ${effectiveTimeoutMs}ms)`,
888
+ };
889
+ throw new PDRuntimeError('timeout', `LLM request timed out after ${effectiveTimeoutMs}ms (timeoutSource=client_budget_exhausted)`, errorDetails);
890
+ }
891
+ // Cap the individual attempt timeout to the remaining budget to honor the timeout budget contract
892
+ const currentTimeoutMs = Math.min(effectiveTimeoutMs, remainingMs);
893
+ try {
894
+ const completeOptions = {
895
+ signal: options.signal,
896
+ apiKey: options.apiKey,
897
+ timeoutMs: currentTimeoutMs,
898
+ maxRetries: 0, // disable pi-ai built-in retry to avoid double-retry
899
+ };
900
+ if (this.config.reasoning !== undefined && this.config.reasoning !== false) {
901
+ completeOptions.reasoning = this.config.reasoning;
902
+ }
903
+ const response = await completeSimple(model, context, completeOptions);
904
+ // If provider resolved with an error response, classify and potentially retry.
905
+ if (response.stopReason === 'error' || response.stopReason === 'aborted') {
906
+ const rawMessage = response.errorMessage ?? 'unknown provider error';
907
+ const elapsedMsAfter = Date.now() - overallStartTime;
908
+ const isTimeout = response.stopReason === 'aborted'
909
+ || options.signal?.aborted
910
+ || /timeout|timed\s*out/i.test(rawMessage)
911
+ || /abort/i.test(rawMessage);
912
+ const classification = (options.signal?.aborted || elapsedMsAfter >= effectiveTimeoutMs)
913
+ ? 'client_timeout_budget_exhausted'
914
+ : isTimeout
915
+ ? 'provider_transient_timeout'
916
+ : 'not_applicable';
917
+ if (isTimeout) {
918
+ const errorDetails = {
919
+ timeoutClassification: classification,
920
+ effectiveTimeoutMs,
921
+ timeoutSource,
922
+ elapsedMs: elapsedMsAfter,
923
+ retryAttempt: attempt,
924
+ maxRetries,
925
+ providerEvidence: safeStringifyPreview(rawMessage, 300),
926
+ };
927
+ const pdErr = new PDRuntimeError('timeout', `[timeout] LLM request timed out after ${effectiveTimeoutMs}ms (timeoutSource=provider_request)`, errorDetails);
928
+ lastError = pdErr;
929
+ if (classification === 'provider_transient_timeout' && attempt < maxRetries) {
930
+ if (input) {
931
+ this.emitAttemptTelemetry({
932
+ input,
933
+ runId,
934
+ attempt,
935
+ maxRetries,
936
+ err: pdErr,
937
+ elapsedMs: elapsedMsAfter,
938
+ timeoutSource,
939
+ effectiveTimeoutMs,
940
+ });
941
+ }
942
+ const delay = getDelay(attempt);
943
+ await new Promise(r => setTimeout(r, delay));
944
+ continue;
945
+ }
946
+ throw pdErr;
947
+ }
948
+ // execution_failed — retryable if attempts remain
949
+ const pdErr = new PDRuntimeError('execution_failed', `LLM execution failed: ${rawMessage.substring(0, 300)}`, {
950
+ retryAttempt: attempt,
951
+ maxRetries,
952
+ elapsedMs: elapsedMsAfter,
953
+ providerEvidence: safeStringifyPreview(rawMessage, 300),
954
+ });
955
+ lastError = pdErr;
956
+ if (attempt < maxRetries) {
957
+ if (input) {
958
+ this.emitAttemptTelemetry({
959
+ input,
960
+ runId,
961
+ attempt,
962
+ maxRetries,
963
+ err: pdErr,
964
+ elapsedMs: elapsedMsAfter,
965
+ timeoutSource,
966
+ effectiveTimeoutMs,
967
+ });
968
+ }
969
+ const delay = getDelay(attempt);
970
+ await new Promise(r => setTimeout(r, delay));
971
+ continue;
972
+ }
973
+ throw pdErr;
974
+ }
975
+ return response;
976
+ }
977
+ catch (err) {
978
+ const elapsedMsAfter = Date.now() - overallStartTime;
979
+ let classificationResult = classifyFailure(err, options.signal);
980
+ if (options.signal?.aborted || elapsedMsAfter >= effectiveTimeoutMs) {
981
+ classificationResult = {
982
+ category: 'timeout',
983
+ classification: 'client_timeout_budget_exhausted',
984
+ };
985
+ }
986
+ // If it's a client budget exhaustion, throw immediately (no retry)
987
+ if (classificationResult.classification === 'client_timeout_budget_exhausted') {
988
+ const errorDetails = {
989
+ timeoutClassification: 'client_timeout_budget_exhausted',
990
+ effectiveTimeoutMs,
991
+ timeoutSource,
992
+ elapsedMs: elapsedMsAfter,
993
+ retryAttempt: attempt,
994
+ maxRetries,
995
+ providerEvidence: safeStringifyPreview(err, 300),
996
+ };
997
+ throw new PDRuntimeError('timeout', `LLM request timed out after ${effectiveTimeoutMs}ms`, errorDetails);
998
+ }
999
+ if (classificationResult.category === 'timeout') {
1000
+ const errorDetails = {
1001
+ timeoutClassification: 'provider_transient_timeout',
1002
+ effectiveTimeoutMs,
1003
+ timeoutSource,
1004
+ elapsedMs: elapsedMsAfter,
1005
+ retryAttempt: attempt,
1006
+ maxRetries,
1007
+ providerEvidence: safeStringifyPreview(err, 300),
1008
+ };
1009
+ const pdErr = new PDRuntimeError('timeout', `LLM request timed out after ${effectiveTimeoutMs}ms`, errorDetails);
1010
+ lastError = pdErr;
1011
+ if (attempt < maxRetries) {
1012
+ if (input) {
1013
+ this.emitAttemptTelemetry({
1014
+ input,
1015
+ runId,
1016
+ attempt,
1017
+ maxRetries,
1018
+ err: pdErr,
1019
+ elapsedMs: elapsedMsAfter,
1020
+ timeoutSource,
1021
+ effectiveTimeoutMs,
1022
+ });
1023
+ }
1024
+ const delay = getDelay(attempt);
1025
+ await new Promise(r => setTimeout(r, delay));
1026
+ continue;
1027
+ }
1028
+ throw pdErr;
1029
+ }
1030
+ if (err instanceof PDRuntimeError) {
1031
+ throw err; // don't retry standard PDRuntimeError if it is permanent or already handled
1032
+ }
1033
+ // It is an execution_failed (network, etc.)
1034
+ const errorDetails = {
1035
+ retryAttempt: attempt,
1036
+ maxRetries,
1037
+ elapsedMs: elapsedMsAfter,
1038
+ providerEvidence: safeStringifyPreview(err, 300),
1039
+ };
1040
+ const pdErr = new PDRuntimeError('execution_failed', `LLM completion failed: ${err instanceof Error ? err.message : String(err)}`, errorDetails);
1041
+ lastError = pdErr;
1042
+ if (attempt < maxRetries) {
1043
+ if (input) {
1044
+ this.emitAttemptTelemetry({
1045
+ input,
1046
+ runId,
1047
+ attempt,
1048
+ maxRetries,
1049
+ err: pdErr,
1050
+ elapsedMs: elapsedMsAfter,
1051
+ timeoutSource,
1052
+ effectiveTimeoutMs,
1053
+ });
1054
+ }
1055
+ const delay = getDelay(attempt);
1056
+ await new Promise(r => setTimeout(r, delay));
1057
+ }
1058
+ }
1059
+ }
1060
+ // If lastError is already a PDRuntimeError, re-throw it; otherwise wrap it
1061
+ if (lastError instanceof PDRuntimeError) {
1062
+ throw lastError;
1063
+ }
1064
+ throw new PDRuntimeError('execution_failed', `LLM completion failed after ${maxRetries + 1} attempts: ${lastError instanceof Error ? lastError.message : String(lastError)}`);
1065
+ }
1066
+ emitAttemptTelemetry(params) {
1067
+ const { input, runId, attempt, maxRetries, err, elapsedMs, timeoutSource, effectiveTimeoutMs, } = params;
1068
+ const endedAt = new Date().toISOString();
1069
+ const { details } = err;
1070
+ let timeoutClassification = 'not_applicable';
1071
+ let providerEvidence = '';
1072
+ if (details && typeof details === 'object') {
1073
+ if (isObjectWithKey(details, 'timeoutClassification')) {
1074
+ const { timeoutClassification: tc } = details;
1075
+ if (typeof tc === 'string')
1076
+ timeoutClassification = tc;
1077
+ }
1078
+ if (isObjectWithKey(details, 'providerEvidence')) {
1079
+ const { providerEvidence: pe } = details;
1080
+ if (typeof pe === 'string')
1081
+ providerEvidence = pe;
1082
+ }
1083
+ }
1084
+ this.eventEmitter.emitTelemetry({
1085
+ eventType: 'runtime_invocation_failed',
1086
+ traceId: input.taskRef?.taskId ?? runId,
1087
+ timestamp: endedAt,
1088
+ sessionId: 'pi-ai-adapter',
1089
+ agentId: 'pi-ai-adapter',
1090
+ payload: {
1091
+ runId,
1092
+ runtimeKind: 'pi-ai',
1093
+ runnerKind: input.agentSpec.agentId,
1094
+ provider: this.config.provider,
1095
+ model: this.config.model,
1096
+ effectiveTimeoutMs,
1097
+ timeoutSource,
1098
+ elapsedMs,
1099
+ timeoutClassification,
1100
+ retryAttempt: attempt,
1101
+ maxRetries,
1102
+ providerEvidence,
1103
+ errorMessage: err.message,
1104
+ isRetryAttempt: true,
1105
+ },
1106
+ });
1107
+ }
1108
+ }
1109
+ //# sourceMappingURL=pi-ai-runtime-adapter.js.map