@planweave-ai/runtime 0.1.1 → 0.1.4

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 (331) hide show
  1. package/dist/autoRun/claudeCodeIntegration.d.ts +3 -0
  2. package/dist/autoRun/claudeCodeIntegration.d.ts.map +1 -0
  3. package/dist/autoRun/claudeCodeIntegration.js +36 -0
  4. package/dist/autoRun/claudeCodeIntegration.js.map +1 -0
  5. package/dist/autoRun/codexExecutor.d.ts.map +1 -1
  6. package/dist/autoRun/codexExecutor.js +7 -4
  7. package/dist/autoRun/codexExecutor.js.map +1 -1
  8. package/dist/autoRun/codexIntegration.d.ts +3 -0
  9. package/dist/autoRun/codexIntegration.d.ts.map +1 -0
  10. package/dist/autoRun/codexIntegration.js +37 -0
  11. package/dist/autoRun/codexIntegration.js.map +1 -0
  12. package/dist/autoRun/executorIntegration.d.ts +29 -0
  13. package/dist/autoRun/executorIntegration.d.ts.map +1 -0
  14. package/dist/autoRun/executorIntegration.js +4 -0
  15. package/dist/autoRun/executorIntegration.js.map +1 -0
  16. package/dist/autoRun/executorPreflightTypes.d.ts +21 -0
  17. package/dist/autoRun/executorPreflightTypes.d.ts.map +1 -0
  18. package/dist/autoRun/executorPreflightTypes.js +2 -0
  19. package/dist/autoRun/executorPreflightTypes.js.map +1 -0
  20. package/dist/autoRun/executorShared.d.ts +1 -1
  21. package/dist/autoRun/executorShared.js +1 -1
  22. package/dist/autoRun/executors.d.ts +17 -11
  23. package/dist/autoRun/executors.d.ts.map +1 -1
  24. package/dist/autoRun/executors.js +234 -100
  25. package/dist/autoRun/executors.js.map +1 -1
  26. package/dist/autoRun/localReviewExecutor.d.ts.map +1 -1
  27. package/dist/autoRun/localReviewExecutor.js +6 -3
  28. package/dist/autoRun/localReviewExecutor.js.map +1 -1
  29. package/dist/autoRun/localReviewIntegration.d.ts +3 -0
  30. package/dist/autoRun/localReviewIntegration.d.ts.map +1 -0
  31. package/dist/autoRun/localReviewIntegration.js +34 -0
  32. package/dist/autoRun/localReviewIntegration.js.map +1 -0
  33. package/dist/autoRun/manualExecutor.d.ts +3 -0
  34. package/dist/autoRun/manualExecutor.d.ts.map +1 -0
  35. package/dist/autoRun/manualExecutor.js +80 -0
  36. package/dist/autoRun/manualExecutor.js.map +1 -0
  37. package/dist/autoRun/opencodeExecutor.d.ts.map +1 -1
  38. package/dist/autoRun/opencodeExecutor.js +6 -3
  39. package/dist/autoRun/opencodeExecutor.js.map +1 -1
  40. package/dist/autoRun/opencodeIntegration.d.ts +3 -0
  41. package/dist/autoRun/opencodeIntegration.d.ts.map +1 -0
  42. package/dist/autoRun/opencodeIntegration.js +34 -0
  43. package/dist/autoRun/opencodeIntegration.js.map +1 -0
  44. package/dist/autoRun/piIntegration.d.ts +3 -0
  45. package/dist/autoRun/piIntegration.d.ts.map +1 -0
  46. package/dist/autoRun/piIntegration.js +36 -0
  47. package/dist/autoRun/piIntegration.js.map +1 -0
  48. package/dist/autoRun/terminalAgentExecutor.d.ts +22 -0
  49. package/dist/autoRun/terminalAgentExecutor.d.ts.map +1 -0
  50. package/dist/autoRun/terminalAgentExecutor.js +132 -0
  51. package/dist/autoRun/terminalAgentExecutor.js.map +1 -0
  52. package/dist/desktop/canvasApi.d.ts.map +1 -1
  53. package/dist/desktop/canvasApi.js +45 -15
  54. package/dist/desktop/canvasApi.js.map +1 -1
  55. package/dist/desktop/canvasGraphApi.d.ts.map +1 -1
  56. package/dist/desktop/canvasGraphApi.js +8 -4
  57. package/dist/desktop/canvasGraphApi.js.map +1 -1
  58. package/dist/desktop/fileSyncApi.d.ts.map +1 -1
  59. package/dist/desktop/fileSyncApi.js +37 -10
  60. package/dist/desktop/fileSyncApi.js.map +1 -1
  61. package/dist/desktop/graph/canvasHealthModel.d.ts +4 -0
  62. package/dist/desktop/graph/canvasHealthModel.d.ts.map +1 -0
  63. package/dist/desktop/graph/canvasHealthModel.js +181 -0
  64. package/dist/desktop/graph/canvasHealthModel.js.map +1 -0
  65. package/dist/desktop/graph/desktopDiagnostics.d.ts +15 -0
  66. package/dist/desktop/graph/desktopDiagnostics.d.ts.map +1 -0
  67. package/dist/desktop/graph/desktopDiagnostics.js +77 -0
  68. package/dist/desktop/graph/desktopDiagnostics.js.map +1 -0
  69. package/dist/desktop/graph/editModel.d.ts +10 -1
  70. package/dist/desktop/graph/editModel.d.ts.map +1 -1
  71. package/dist/desktop/graph/editModel.js +36 -10
  72. package/dist/desktop/graph/editModel.js.map +1 -1
  73. package/dist/desktop/graph/projectCanvasAggregation.d.ts +6 -3
  74. package/dist/desktop/graph/projectCanvasAggregation.d.ts.map +1 -1
  75. package/dist/desktop/graph/projectCanvasAggregation.js +16 -8
  76. package/dist/desktop/graph/projectCanvasAggregation.js.map +1 -1
  77. package/dist/desktop/graph/projectProjectionModel.d.ts +16 -0
  78. package/dist/desktop/graph/projectProjectionModel.d.ts.map +1 -0
  79. package/dist/desktop/graph/projectProjectionModel.js +185 -0
  80. package/dist/desktop/graph/projectProjectionModel.js.map +1 -0
  81. package/dist/desktop/graph/projectSnapshotModel.d.ts +3 -0
  82. package/dist/desktop/graph/projectSnapshotModel.d.ts.map +1 -0
  83. package/dist/desktop/graph/projectSnapshotModel.js +108 -0
  84. package/dist/desktop/graph/projectSnapshotModel.js.map +1 -0
  85. package/dist/desktop/graph/readModel.d.ts +9 -0
  86. package/dist/desktop/graph/readModel.d.ts.map +1 -1
  87. package/dist/desktop/graph/readModel.js +20 -9
  88. package/dist/desktop/graph/readModel.js.map +1 -1
  89. package/dist/desktop/graph/resultsFileIndex.d.ts +28 -0
  90. package/dist/desktop/graph/resultsFileIndex.d.ts.map +1 -0
  91. package/dist/desktop/graph/resultsFileIndex.js +174 -0
  92. package/dist/desktop/graph/resultsFileIndex.js.map +1 -0
  93. package/dist/desktop/graph/searchIndexModel.d.ts +22 -0
  94. package/dist/desktop/graph/searchIndexModel.d.ts.map +1 -0
  95. package/dist/desktop/graph/searchIndexModel.js +186 -0
  96. package/dist/desktop/graph/searchIndexModel.js.map +1 -0
  97. package/dist/desktop/graph/searchModel.d.ts +6 -0
  98. package/dist/desktop/graph/searchModel.d.ts.map +1 -1
  99. package/dist/desktop/graph/searchModel.js +15 -123
  100. package/dist/desktop/graph/searchModel.js.map +1 -1
  101. package/dist/desktop/graph/statisticsIndexModel.d.ts +10 -0
  102. package/dist/desktop/graph/statisticsIndexModel.d.ts.map +1 -0
  103. package/dist/desktop/graph/statisticsIndexModel.js +109 -0
  104. package/dist/desktop/graph/statisticsIndexModel.js.map +1 -0
  105. package/dist/desktop/graph/statisticsModel.d.ts +7 -0
  106. package/dist/desktop/graph/statisticsModel.d.ts.map +1 -1
  107. package/dist/desktop/graph/statisticsModel.js +10 -116
  108. package/dist/desktop/graph/statisticsModel.js.map +1 -1
  109. package/dist/desktop/graph/todoModel.d.ts +21 -0
  110. package/dist/desktop/graph/todoModel.d.ts.map +1 -1
  111. package/dist/desktop/graph/todoModel.js +70 -54
  112. package/dist/desktop/graph/todoModel.js.map +1 -1
  113. package/dist/desktop/graphApi.d.ts +4 -3
  114. package/dist/desktop/graphApi.d.ts.map +1 -1
  115. package/dist/desktop/graphApi.js +4 -3
  116. package/dist/desktop/graphApi.js.map +1 -1
  117. package/dist/desktop/graphEditResult.d.ts +4 -0
  118. package/dist/desktop/graphEditResult.d.ts.map +1 -0
  119. package/dist/desktop/graphEditResult.js +5 -0
  120. package/dist/desktop/graphEditResult.js.map +1 -0
  121. package/dist/desktop/index.d.ts +5 -2
  122. package/dist/desktop/index.d.ts.map +1 -1
  123. package/dist/desktop/index.js +4 -2
  124. package/dist/desktop/index.js.map +1 -1
  125. package/dist/desktop/layoutApi.d.ts +4 -5
  126. package/dist/desktop/layoutApi.d.ts.map +1 -1
  127. package/dist/desktop/layoutApi.js +5 -63
  128. package/dist/desktop/layoutApi.js.map +1 -1
  129. package/dist/desktop/projectGraphEditApi.d.ts +12 -0
  130. package/dist/desktop/projectGraphEditApi.d.ts.map +1 -0
  131. package/dist/desktop/projectGraphEditApi.js +65 -0
  132. package/dist/desktop/projectGraphEditApi.js.map +1 -0
  133. package/dist/desktop/recordsApi.js +1 -1
  134. package/dist/desktop/recordsApi.js.map +1 -1
  135. package/dist/desktop/reviewPipelineApi.d.ts.map +1 -1
  136. package/dist/desktop/reviewPipelineApi.js +15 -44
  137. package/dist/desktop/reviewPipelineApi.js.map +1 -1
  138. package/dist/desktop/runApi.d.ts +2 -1
  139. package/dist/desktop/runApi.d.ts.map +1 -1
  140. package/dist/desktop/runApi.js +95 -11
  141. package/dist/desktop/runApi.js.map +1 -1
  142. package/dist/desktop/runRecovery.d.ts +7 -0
  143. package/dist/desktop/runRecovery.d.ts.map +1 -0
  144. package/dist/desktop/runRecovery.js +184 -0
  145. package/dist/desktop/runRecovery.js.map +1 -0
  146. package/dist/desktop/runStateRepository.d.ts +13 -0
  147. package/dist/desktop/runStateRepository.d.ts.map +1 -0
  148. package/dist/desktop/runStateRepository.js +169 -0
  149. package/dist/desktop/runStateRepository.js.map +1 -0
  150. package/dist/desktop/runStateStore.d.ts +2 -2
  151. package/dist/desktop/runStateStore.d.ts.map +1 -1
  152. package/dist/desktop/runStateStore.js +21 -5
  153. package/dist/desktop/runStateStore.js.map +1 -1
  154. package/dist/desktop/runStepState.d.ts.map +1 -1
  155. package/dist/desktop/runStepState.js +3 -4
  156. package/dist/desktop/runStepState.js.map +1 -1
  157. package/dist/desktop/types/bridgeTypes.d.ts +5 -3
  158. package/dist/desktop/types/bridgeTypes.d.ts.map +1 -1
  159. package/dist/desktop/types/graphTypes.d.ts +66 -0
  160. package/dist/desktop/types/graphTypes.d.ts.map +1 -1
  161. package/dist/desktop/types/runTypes.d.ts +15 -0
  162. package/dist/desktop/types/runTypes.d.ts.map +1 -1
  163. package/dist/errors.d.ts +13 -0
  164. package/dist/errors.d.ts.map +1 -0
  165. package/dist/errors.js +24 -0
  166. package/dist/errors.js.map +1 -0
  167. package/dist/graph/affectedTasks.d.ts +3 -0
  168. package/dist/graph/affectedTasks.d.ts.map +1 -0
  169. package/dist/graph/affectedTasks.js +70 -0
  170. package/dist/graph/affectedTasks.js.map +1 -0
  171. package/dist/graph/editGraph.d.ts.map +1 -1
  172. package/dist/graph/editGraph.js +1 -78
  173. package/dist/graph/editGraph.js.map +1 -1
  174. package/dist/graph/fieldEditMutation.d.ts +3 -1
  175. package/dist/graph/fieldEditMutation.d.ts.map +1 -1
  176. package/dist/graph/fieldEditMutation.js +29 -11
  177. package/dist/graph/fieldEditMutation.js.map +1 -1
  178. package/dist/graph/mutation.d.ts +6 -0
  179. package/dist/graph/mutation.d.ts.map +1 -1
  180. package/dist/graph/mutation.js +44 -63
  181. package/dist/graph/mutation.js.map +1 -1
  182. package/dist/index.d.ts +11 -7
  183. package/dist/index.d.ts.map +1 -1
  184. package/dist/index.js +9 -7
  185. package/dist/index.js.map +1 -1
  186. package/dist/package/loadPackage.d.ts.map +1 -1
  187. package/dist/package/loadPackage.js +4 -0
  188. package/dist/package/loadPackage.js.map +1 -1
  189. package/dist/package/manifestEdit.d.ts.map +1 -1
  190. package/dist/package/manifestEdit.js +3 -1
  191. package/dist/package/manifestEdit.js.map +1 -1
  192. package/dist/paths.d.ts.map +1 -1
  193. package/dist/paths.js +2 -10
  194. package/dist/paths.js.map +1 -1
  195. package/dist/project.d.ts +1 -0
  196. package/dist/project.d.ts.map +1 -1
  197. package/dist/project.js +11 -0
  198. package/dist/project.js.map +1 -1
  199. package/dist/projectGraph/compileProjectGraph.d.ts.map +1 -1
  200. package/dist/projectGraph/compileProjectGraph.js +110 -50
  201. package/dist/projectGraph/compileProjectGraph.js.map +1 -1
  202. package/dist/projectGraph/index.d.ts +1 -1
  203. package/dist/projectGraph/index.d.ts.map +1 -1
  204. package/dist/projectGraph/index.js +1 -1
  205. package/dist/projectGraph/index.js.map +1 -1
  206. package/dist/projectGraph/runtimeAggregation.d.ts +7 -2
  207. package/dist/projectGraph/runtimeAggregation.d.ts.map +1 -1
  208. package/dist/projectGraph/runtimeAggregation.js +11 -8
  209. package/dist/projectGraph/runtimeAggregation.js.map +1 -1
  210. package/dist/projectGraph/schema.d.ts +1 -0
  211. package/dist/projectGraph/schema.d.ts.map +1 -1
  212. package/dist/projectGraph/schema.js +4 -4
  213. package/dist/projectGraph/schema.js.map +1 -1
  214. package/dist/projectGraph/types.d.ts +5 -0
  215. package/dist/projectGraph/types.d.ts.map +1 -1
  216. package/dist/schema/manifest.d.ts +14 -3
  217. package/dist/schema/manifest.d.ts.map +1 -1
  218. package/dist/schema/manifest.js +29 -11
  219. package/dist/schema/manifest.js.map +1 -1
  220. package/dist/schemaDocs/index.d.ts +7 -0
  221. package/dist/schemaDocs/index.d.ts.map +1 -0
  222. package/dist/schemaDocs/index.js +10 -0
  223. package/dist/schemaDocs/index.js.map +1 -0
  224. package/dist/schemaDocs/manifest.d.ts +3 -0
  225. package/dist/schemaDocs/manifest.d.ts.map +1 -0
  226. package/dist/schemaDocs/manifest.js +111 -0
  227. package/dist/schemaDocs/manifest.js.map +1 -0
  228. package/dist/schemaDocs/project.d.ts +3 -0
  229. package/dist/schemaDocs/project.d.ts.map +1 -0
  230. package/dist/schemaDocs/project.js +39 -0
  231. package/dist/schemaDocs/project.js.map +1 -0
  232. package/dist/schemaDocs/types.d.ts +11 -0
  233. package/dist/schemaDocs/types.d.ts.map +1 -0
  234. package/dist/schemaDocs/types.js +2 -0
  235. package/dist/schemaDocs/types.js.map +1 -0
  236. package/dist/taskManager/autoRun.d.ts +6 -1
  237. package/dist/taskManager/autoRun.d.ts.map +1 -1
  238. package/dist/taskManager/autoRun.js +240 -1
  239. package/dist/taskManager/autoRun.js.map +1 -1
  240. package/dist/taskManager/claimHints.d.ts.map +1 -1
  241. package/dist/taskManager/claimHints.js +3 -1
  242. package/dist/taskManager/claimHints.js.map +1 -1
  243. package/dist/taskManager/claimReadiness.d.ts +34 -1
  244. package/dist/taskManager/claimReadiness.d.ts.map +1 -1
  245. package/dist/taskManager/claimReadiness.js +85 -1
  246. package/dist/taskManager/claimReadiness.js.map +1 -1
  247. package/dist/taskManager/claimReadinessRules.d.ts +1 -0
  248. package/dist/taskManager/claimReadinessRules.d.ts.map +1 -1
  249. package/dist/taskManager/claimReadinessRules.js +4 -0
  250. package/dist/taskManager/claimReadinessRules.js.map +1 -1
  251. package/dist/taskManager/claimScheduler.d.ts.map +1 -1
  252. package/dist/taskManager/claimScheduler.js +17 -69
  253. package/dist/taskManager/claimScheduler.js.map +1 -1
  254. package/dist/taskManager/doctor.d.ts.map +1 -1
  255. package/dist/taskManager/doctor.js.map +1 -1
  256. package/dist/taskManager/executionStatus.d.ts +9 -3
  257. package/dist/taskManager/executionStatus.d.ts.map +1 -1
  258. package/dist/taskManager/executionStatus.js +5 -3
  259. package/dist/taskManager/executionStatus.js.map +1 -1
  260. package/dist/taskManager/index.d.ts +1 -0
  261. package/dist/taskManager/index.d.ts.map +1 -1
  262. package/dist/taskManager/index.js +1 -0
  263. package/dist/taskManager/index.js.map +1 -1
  264. package/dist/taskManager/projectDoctor.d.ts +6 -0
  265. package/dist/taskManager/projectDoctor.d.ts.map +1 -0
  266. package/dist/taskManager/projectDoctor.js +108 -0
  267. package/dist/taskManager/projectDoctor.js.map +1 -0
  268. package/dist/taskManager/projectDoctorCanvas.d.ts +14 -0
  269. package/dist/taskManager/projectDoctorCanvas.d.ts.map +1 -0
  270. package/dist/taskManager/projectDoctorCanvas.js +181 -0
  271. package/dist/taskManager/projectDoctorCanvas.js.map +1 -0
  272. package/dist/taskManager/projectGraphClaimGuard.d.ts +3 -0
  273. package/dist/taskManager/projectGraphClaimGuard.d.ts.map +1 -1
  274. package/dist/taskManager/projectGraphClaimGuard.js +9 -4
  275. package/dist/taskManager/projectGraphClaimGuard.js.map +1 -1
  276. package/dist/taskManager/reviewHook.d.ts +17 -0
  277. package/dist/taskManager/reviewHook.d.ts.map +1 -1
  278. package/dist/taskManager/reviewHook.js +113 -25
  279. package/dist/taskManager/reviewHook.js.map +1 -1
  280. package/dist/types/autoRun.d.ts +125 -0
  281. package/dist/types/autoRun.d.ts.map +1 -0
  282. package/dist/types/autoRun.js +2 -0
  283. package/dist/types/autoRun.js.map +1 -0
  284. package/dist/types/executor.d.ts +118 -0
  285. package/dist/types/executor.d.ts.map +1 -0
  286. package/dist/types/executor.js +17 -0
  287. package/dist/types/executor.js.map +1 -0
  288. package/dist/types/graph.d.ts +100 -0
  289. package/dist/types/graph.d.ts.map +1 -0
  290. package/dist/types/graph.js +2 -0
  291. package/dist/types/graph.js.map +1 -0
  292. package/dist/types/manifest.d.ts +86 -0
  293. package/dist/types/manifest.d.ts.map +1 -0
  294. package/dist/types/manifest.js +6 -0
  295. package/dist/types/manifest.js.map +1 -0
  296. package/dist/types/packageFiles.d.ts +26 -0
  297. package/dist/types/packageFiles.d.ts.map +1 -0
  298. package/dist/types/packageFiles.js +2 -0
  299. package/dist/types/packageFiles.js.map +1 -0
  300. package/dist/types/results.d.ts +24 -0
  301. package/dist/types/results.d.ts.map +1 -0
  302. package/dist/types/results.js +4 -0
  303. package/dist/types/results.js.map +1 -0
  304. package/dist/types/state.d.ts +38 -0
  305. package/dist/types/state.d.ts.map +1 -0
  306. package/dist/types/state.js +5 -0
  307. package/dist/types/state.js.map +1 -0
  308. package/dist/types/taskManager.d.ts +259 -0
  309. package/dist/types/taskManager.d.ts.map +1 -0
  310. package/dist/types/taskManager.js +2 -0
  311. package/dist/types/taskManager.js.map +1 -0
  312. package/dist/types/validation.d.ts +11 -0
  313. package/dist/types/validation.d.ts.map +1 -0
  314. package/dist/types/validation.js +2 -0
  315. package/dist/types/validation.js.map +1 -0
  316. package/dist/types/workspace.d.ts +55 -0
  317. package/dist/types/workspace.d.ts.map +1 -0
  318. package/dist/types/workspace.js +2 -0
  319. package/dist/types/workspace.js.map +1 -0
  320. package/dist/types.d.ts +10 -690
  321. package/dist/types.d.ts.map +1 -1
  322. package/dist/types.js +10 -10
  323. package/dist/types.js.map +1 -1
  324. package/dist/validatePackage.d.ts.map +1 -1
  325. package/dist/validatePackage.js +1 -1
  326. package/dist/validatePackage.js.map +1 -1
  327. package/dist/validation/desktopLayoutValidation.d.ts +6 -0
  328. package/dist/validation/desktopLayoutValidation.d.ts.map +1 -0
  329. package/dist/validation/desktopLayoutValidation.js +154 -0
  330. package/dist/validation/desktopLayoutValidation.js.map +1 -0
  331. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -1,691 +1,11 @@
1
- export declare const supportedManifestVersion: "plan-package/v1";
2
- export declare const nodeTypes: readonly ["task"];
3
- export declare const edgeTypes: readonly ["depends_on"];
4
- export declare const blockTypes: readonly ["implementation", "review"];
5
- export declare const taskStatuses: readonly ["planned", "ready", "in_progress", "implemented"];
6
- export declare const blockStatuses: readonly ["planned", "ready", "in_progress", "completed", "needs_changes", "blocked", "diverged"];
7
- export declare const feedbackStatuses: readonly ["open", "in_progress", "resolved", "dismissed"];
8
- export declare const reviewVerdicts: readonly ["passed", "needs_changes"];
9
- export type NodeType = (typeof nodeTypes)[number];
10
- export type EdgeType = (typeof edgeTypes)[number];
11
- export type BlockType = (typeof blockTypes)[number];
12
- export type TaskStatus = (typeof taskStatuses)[number];
13
- export type BlockStatus = (typeof blockStatuses)[number];
14
- export type FeedbackStatus = (typeof feedbackStatuses)[number];
15
- export type ReviewVerdict = (typeof reviewVerdicts)[number];
16
- export type ReviewHookDefinition = {
17
- id: string;
18
- type: "executable";
19
- command: string;
20
- args: string[];
21
- executionPolicy: "trusted-local";
22
- };
23
- export type ReviewTriggerCondition = "after_required_work_completed" | "manual";
24
- export type ManualExecutorProfile = {
25
- adapter: "manual";
26
- };
27
- export type CodexExecExecutorProfile = {
28
- adapter: "codex-exec";
29
- command: string;
30
- args: string[];
31
- sandbox?: "read-only" | "workspace-write" | "danger-full-access";
32
- role?: string;
33
- timeoutMs?: number;
34
- };
35
- export type OpencodeExecExecutorProfile = {
36
- adapter: "opencode-exec";
37
- command: string;
38
- args: string[];
39
- sandbox?: "read-only" | "workspace-write" | "danger-full-access";
40
- timeoutMs?: number;
41
- };
42
- export type LocalReviewExecutorProfile = {
43
- adapter: "local-review";
44
- command: string;
45
- args: string[];
46
- sandbox?: "read-only" | "workspace-write" | "danger-full-access";
47
- timeoutMs?: number;
48
- };
49
- export type ExecutorProfile = ManualExecutorProfile | CodexExecExecutorProfile | OpencodeExecExecutorProfile | LocalReviewExecutorProfile;
50
- export type ExecutorProfileSummary = ExecutorProfile & {
51
- name: string;
52
- source: "builtin" | "package";
53
- };
54
- export type BlockParallelPolicy = {
55
- safe: boolean;
56
- locks: string[];
57
- };
58
- export type ManifestImplementationBlock = {
59
- id: string;
60
- type: "implementation";
61
- title: string;
62
- prompt: string;
63
- depends_on: string[];
64
- executor?: string;
65
- parallel: BlockParallelPolicy;
66
- };
67
- export type ManifestReviewBlock = {
68
- id: string;
69
- type: "review";
70
- title: string;
71
- prompt: string;
72
- depends_on: string[];
73
- executor?: string;
74
- review: {
75
- required: boolean;
76
- maxFeedbackCycles: number;
77
- preset?: string;
78
- triggerCondition?: ReviewTriggerCondition;
79
- inputContext?: string;
80
- passCriteria?: string;
81
- feedbackFormat?: string;
82
- hook: ReviewHookDefinition | null;
83
- };
84
- };
85
- export type ManifestBlock = ManifestImplementationBlock | ManifestReviewBlock;
86
- export type ManifestTaskNode = {
87
- id: string;
88
- type: "task";
89
- title: string;
90
- prompt: string;
91
- executor?: string;
92
- acceptance: string[];
93
- blocks: ManifestBlock[];
94
- };
95
- export type ManifestNode = ManifestTaskNode;
96
- export type ManifestEdge = {
97
- from: string;
98
- to: string;
99
- type: EdgeType;
100
- };
101
- export type PlanPackageManifest = {
102
- version: typeof supportedManifestVersion;
103
- project: {
104
- title: string;
105
- description: string;
106
- };
107
- execution: {
108
- defaultExecutor?: string;
109
- parallel: {
110
- enabled: boolean;
111
- maxConcurrent: number;
112
- };
113
- };
114
- review: {
115
- maxFeedbackCycles: number;
116
- completionPolicy: "strict";
117
- };
118
- executors?: Record<string, ExecutorProfile>;
119
- nodes: ManifestNode[];
120
- edges: ManifestEdge[];
121
- };
122
- export type ProjectMetadata = {
123
- id: string;
124
- name: string;
125
- rootPath: string;
126
- createdAt: string;
127
- };
128
- export type ProjectWorkspace = {
129
- id: string;
130
- rootPath: string;
131
- planweaveHome: string;
132
- workspaceRoot: string;
133
- projectFile: string;
134
- packageDir: string;
135
- manifestFile: string;
136
- stateFile: string;
137
- resultsDir: string;
138
- projectPromptFile: string;
139
- };
140
- export type PackageWorkspaceRef = string | ProjectWorkspace;
141
- export type TaskState = {
142
- status: TaskStatus;
143
- openFeedbackCount: number;
144
- };
145
- export type BlockState = {
146
- status: BlockStatus;
147
- lastRunId?: string | null;
148
- latestReviewAttemptId?: string | null;
149
- activeFeedbackId?: string | null;
150
- pendingFeedbackId?: string | null;
151
- blockedReason?: string | null;
152
- divergenceReason?: string | null;
153
- completionReason?: "passed" | "max_cycles_reached" | null;
154
- passedWorkRevision?: string | null;
155
- };
156
- export type FeedbackEnvelopeState = {
157
- status: FeedbackStatus;
158
- sourceReviewBlockRef: string;
159
- latestSubmissionId: string | null;
160
- content: string;
161
- };
162
- export type RuntimeState = {
163
- currentRefs: string[];
164
- currentFeedbackId: string | null;
165
- currentReviewBlockRef: string | null;
166
- tasks: Record<string, TaskState>;
167
- blocks: Record<string, BlockState>;
168
- feedback: Record<string, FeedbackEnvelopeState>;
169
- };
170
- export type ValidationIssue = {
171
- code: string;
172
- message: string;
173
- path?: string;
174
- };
175
- export type CompiledExecutionGraph = {
176
- nodesById: Map<string, ManifestNode>;
177
- taskNodesInManifestOrder: string[];
178
- tasksById: Map<string, ManifestTaskNode>;
179
- taskDependenciesByTask: Map<string, string[]>;
180
- taskDependentsByTask: Map<string, string[]>;
181
- blockRefsInManifestOrder: string[];
182
- blocksByRef: Map<string, ManifestBlock>;
183
- blockTaskByRef: Map<string, string>;
184
- blocksByTask: Map<string, string[]>;
185
- blockDependenciesByRef: Map<string, string[]>;
186
- blockDependentsByRef: Map<string, string[]>;
187
- reviewBlocksByTask: Map<string, string[]>;
188
- locksByBlockRef: Map<string, string[]>;
189
- parallelSafeByBlockRef: Map<string, boolean>;
190
- diagnostics: {
191
- errors: ValidationIssue[];
192
- warnings: ValidationIssue[];
193
- };
194
- taskReachable(from: string, to: string): boolean;
195
- blockReachable(fromRef: string, toRef: string): boolean;
196
- };
197
- export type CompiledTaskGraph = CompiledExecutionGraph;
198
- export type ExecutionGraphSession = {
199
- projectRoot: PackageWorkspaceRef;
200
- projectId: string;
201
- packageRoot: string;
202
- graph: CompiledExecutionGraph;
203
- fileSnapshot: PackageFileSnapshot;
204
- readQueue: GraphReadQueue;
205
- dirtyPromptRefs: Set<string>;
206
- diagnostics: ValidationIssue[];
207
- };
208
- export type PackageFileChange = {
209
- path: string;
210
- type: "added" | "changed" | "removed";
211
- };
212
- export type GraphEditOperation = {
213
- type: "add_node" | "update_node";
214
- node: ManifestNode;
215
- } | {
216
- type: "remove_node";
217
- nodeId: string;
218
- } | {
219
- type: "add_edge" | "remove_edge";
220
- edge: ManifestEdge;
221
- } | {
222
- type: "update_prompt";
223
- ref: string;
224
- };
225
- export type GraphReadQueue = {
226
- fileChanges: PackageFileChange[];
227
- graphOps: GraphEditOperation[];
228
- enqueuedAt: string;
229
- };
230
- export type FileFingerprint = {
231
- path: string;
232
- hash: string;
233
- mtimeMs: number;
234
- };
235
- export type PackageFileSnapshot = {
236
- manifest: PlanPackageManifest;
237
- graph: CompiledExecutionGraph;
238
- manifestFile: FileFingerprint;
239
- promptFiles: Record<string, FileFingerprint>;
240
- };
241
- export type DrainGraphReadQueueResult = {
242
- session: ExecutionGraphSession;
243
- refreshed: boolean;
244
- dirtyPromptRefs: string[];
245
- diagnostics: ValidationIssue[];
246
- };
247
- export type ValidationReport = {
248
- ok: boolean;
249
- errors: ValidationIssue[];
250
- warnings: ValidationIssue[];
251
- };
252
- export type InitWorkspaceResult = {
253
- workspace: ProjectWorkspace;
254
- project: ProjectMetadata;
255
- created: boolean;
256
- projectGraph?: {
257
- path: string;
258
- created: boolean;
259
- source: "project_graph" | "legacy_registry" | "legacy_default_canvas";
260
- canvasCount: number;
261
- };
262
- backup?: {
263
- backupDir: string;
264
- packageDir?: string;
265
- stateFile?: string;
266
- resultsDir?: string;
267
- };
268
- };
269
- export type ProjectPathsResult = {
270
- workspaceDir: string;
271
- projectId: string;
272
- projectDir: string;
273
- projectGraphPath: string;
274
- packageDir: string;
275
- statePath: string;
276
- resultsDir: string;
277
- activeCanvasId: string | null;
278
- canvases: ProjectCanvasPath[];
279
- };
280
- export type ProjectCanvasPath = {
281
- canvasId: string;
282
- name: string;
283
- packageDir: string;
284
- statePath: string;
285
- resultsDir: string;
286
- };
287
- export type PromptSurface = {
288
- ref: string;
289
- path: string;
290
- markdown: string;
291
- };
292
- export type RefreshPromptsResult = {
293
- prompts: PromptSurface[];
294
- };
295
- export type ClaimResult = {
296
- kind: "block";
297
- ref: string;
298
- taskId: string;
299
- blockId: string;
300
- blockType: BlockType;
301
- reason?: "claimed" | "current" | "feedback_resolved" | "dispatched";
302
- requestedMode?: "parallel";
303
- parallelFallbackReason?: "review_requires_sequential_claim";
304
- nextParallelClaimable?: string[];
305
- } | {
306
- kind: "feedback";
307
- content: string;
308
- } | {
309
- kind: "batch";
310
- refs: string[];
311
- } | {
312
- kind: "none";
313
- reason?: string;
314
- nextSequentialClaimable?: string[];
315
- } | {
316
- kind: "blocked";
317
- ref?: string;
318
- reason: string;
319
- };
320
- export type ClaimScope = {
321
- kind: "project";
322
- } | {
323
- kind: "task";
324
- taskId: string;
325
- } | {
326
- kind: "block";
327
- blockRef: string;
328
- };
329
- export type ParallelClaimResult = ClaimResult;
330
- export type ExecutorAdapterResult = {
331
- kind: "block";
332
- reportPath: string;
333
- runId?: string;
334
- executor?: string;
335
- adapter?: ExecutorProfile["adapter"];
336
- stdout?: string;
337
- stderr?: string;
338
- exitCode?: number;
339
- startedAt?: string;
340
- finishedAt?: string;
341
- agentSessionId?: string | null;
342
- codexSessionId?: string | null;
343
- opencodeSessionId?: string | null;
344
- } | {
345
- kind: "review";
346
- resultPath: string;
347
- runId?: string;
348
- executor?: string;
349
- adapter?: ExecutorProfile["adapter"];
350
- stdout?: string;
351
- stderr?: string;
352
- exitCode?: number;
353
- startedAt?: string;
354
- finishedAt?: string;
355
- agentSessionId?: string | null;
356
- codexSessionId?: string | null;
357
- opencodeSessionId?: string | null;
358
- } | {
359
- kind: "feedback";
360
- reportPath: string;
361
- runId?: string;
362
- executor?: string;
363
- adapter?: ExecutorProfile["adapter"];
364
- stdout?: string;
365
- stderr?: string;
366
- exitCode?: number;
367
- startedAt?: string;
368
- finishedAt?: string;
369
- agentSessionId?: string | null;
370
- codexSessionId?: string | null;
371
- opencodeSessionId?: string | null;
372
- } | {
373
- kind: "manual";
374
- promptPath: string;
375
- runDir: string;
376
- runId: string;
377
- executor: string;
378
- adapter: "manual";
379
- nextCommand: string;
380
- };
381
- export type ExecutorAdapter = {
382
- runBlock(input: {
383
- claim: Extract<ClaimResult, {
384
- kind: "block";
385
- }>;
386
- prompt: string;
387
- }): Promise<ExecutorAdapterResult>;
388
- runFeedback(input: {
389
- claim: Extract<ClaimResult, {
390
- kind: "feedback";
391
- }>;
392
- }): Promise<ExecutorAdapterResult>;
393
- };
394
- export type AutoRunStepResult = {
395
- kind: "submitted";
396
- claim: ClaimResult;
397
- adapterResult: Extract<ExecutorAdapterResult, {
398
- kind: "block" | "review" | "feedback";
399
- }>;
400
- submitResult: SubmitResult | SubmitReviewResult | SubmitFeedbackResult;
401
- } | {
402
- kind: "manual";
403
- claim: Extract<ClaimResult, {
404
- kind: "block" | "feedback";
405
- }>;
406
- adapterResult: Extract<ExecutorAdapterResult, {
407
- kind: "manual";
408
- }>;
409
- } | {
410
- kind: "idle" | "blocked" | "batch";
411
- claim: ClaimResult;
412
- } | {
413
- kind: "batch_submitted";
414
- claim: Extract<ClaimResult, {
415
- kind: "batch";
416
- }>;
417
- steps: Array<Extract<AutoRunStepResult, {
418
- kind: "submitted" | "manual";
419
- }>>;
420
- };
421
- export type AutoRunLatestRunSummary = {
422
- ref: string;
423
- taskId: string;
424
- blockId: string;
425
- runId: string;
426
- executor: string | null;
427
- adapter: ExecutorProfile["adapter"] | null;
428
- status: BlockStatus;
429
- stdoutSummary: string;
430
- stderrSummary: string;
431
- failureReason: string | null;
432
- promptPath: string;
433
- reportPath: string | null;
434
- metadataPath: string;
435
- };
436
- export type AutoRunStatus = {
437
- current: {
438
- refs: string[];
439
- feedbackId: string | null;
440
- reviewBlockRef: string | null;
441
- };
442
- latestRuns: AutoRunLatestRunSummary[];
443
- warnings: ValidationIssue[];
444
- };
445
- export type ReviewResult = {
446
- reviewBlockRef: string;
447
- taskId: string;
448
- verdict: ReviewVerdict;
449
- content: string;
450
- };
451
- export type ReviewHookInput = {
452
- reviewResult: ReviewResult;
453
- task: {
454
- taskId: string;
455
- title: string;
456
- };
457
- reviewBlockRef: string;
458
- feedbackCycleCount: number;
459
- };
460
- export type ReviewHookOutput = {
461
- action: "use_feedback";
462
- feedbackPrompt: string;
463
- };
464
- export type SubmitResult = {
465
- ref: string;
466
- runId: string;
467
- status: "completed";
468
- };
469
- export type SubmitReviewResult = {
470
- ref: string;
471
- reviewAttemptId: string;
472
- verdict: ReviewVerdict;
473
- feedbackId?: string;
474
- status: BlockStatus;
475
- completionReason?: "passed" | "max_cycles_reached" | null;
476
- feedbackCreated?: boolean;
477
- message?: string;
478
- };
479
- export type SubmitFeedbackResult = {
480
- status: "accepted";
481
- nextCommand: "planweave claim-next";
482
- message: string;
483
- feedbackId: string;
484
- submissionId: string;
485
- };
486
- export type BlockRecoveryResult = {
487
- ref: string;
488
- status: BlockStatus;
489
- reason?: string;
490
- };
491
- export type TaskStatusSummary = {
492
- taskId: string;
493
- status: TaskStatus;
494
- openFeedbackCount: number;
495
- };
496
- export type BlockStatusSummary = {
497
- ref: string;
498
- taskId: string;
499
- blockId: string;
500
- type: BlockType;
501
- status: BlockStatus;
502
- reason?: string | null;
503
- completionReason?: "passed" | "max_cycles_reached" | null;
504
- lastRunId?: string | null;
505
- latestReviewAttemptId?: string | null;
506
- activeFeedbackId?: string | null;
507
- };
508
- export type ClaimHint = {
509
- ref: string;
510
- taskId: string;
511
- blockId: string;
512
- blockType: BlockType;
513
- status: BlockStatus;
514
- statusReason: string | null;
515
- ready: boolean;
516
- readyReason: string | null;
517
- blockedByBlocks: string[];
518
- blockedByTasks: string[];
519
- parallelSafe: boolean;
520
- sequentialOnly: boolean;
521
- recommendedCommand: string | null;
522
- dispatchable: boolean;
523
- dispatchCommand: string | null;
524
- reviewGate: ReviewGateHint | null;
525
- };
526
- export type ReviewGateHint = {
527
- isGate: true;
528
- required: boolean;
529
- requiredReason: string;
530
- executorRole: "reviewer";
531
- downstreamTasks: string[];
532
- unlocksTasks: string[];
533
- needsChangesReturnsTo: string[];
534
- };
535
- export type BlockExplanation = ClaimHint & {
536
- promptPath: string;
537
- submitCommand: string;
538
- };
539
- export type CurrentWorkOwner = {
540
- projectRoot: string;
541
- canvasId: string | null;
542
- taskIds: string[];
543
- };
544
- export type CurrentBlockWorkItem = {
545
- kind: "block";
546
- ref: string;
547
- taskId: string;
548
- blockId: string;
549
- blockType: BlockType;
550
- promptPath: string;
551
- reportPath: string;
552
- submitCommand: string;
553
- };
554
- export type CurrentFeedbackWorkItem = {
555
- kind: "feedback";
556
- ref: string;
557
- feedbackId: string;
558
- sourceReviewBlockRef: string;
559
- taskId: string;
560
- promptPath: string;
561
- reportPath: string;
562
- submitCommand: string;
563
- };
564
- export type CurrentWorkItem = CurrentBlockWorkItem | CurrentFeedbackWorkItem;
565
- export type CurrentWork = {
566
- currentRefs: string[];
567
- currentFeedbackId: string | null;
568
- currentReviewBlockRef: string | null;
569
- owner: CurrentWorkOwner;
570
- items: CurrentWorkItem[];
571
- blockingReason: string | null;
572
- };
573
- export type DoctorIssue = {
574
- code: "stale_current_ref" | "orphan_result" | "index_state_mismatch";
575
- message: string;
576
- repaired?: boolean;
577
- ref?: string;
578
- taskId?: string;
579
- path?: string;
580
- stateRunId?: string | null;
581
- indexRunId?: string | null;
582
- };
583
- export type DoctorReport = {
584
- ok: boolean;
585
- issues: DoctorIssue[];
586
- };
587
- export type PlanStatus = {
588
- projectId: string;
589
- projectRoot: string;
590
- taskTotal: number;
591
- blockTotal: number;
592
- tasks: TaskStatusSummary[];
593
- blocks: BlockStatusSummary[];
594
- currentRefs: string[];
595
- currentFeedbackId: string | null;
596
- currentReviewBlockRef: string | null;
597
- openFeedback: Array<{
598
- feedbackId: string;
599
- sourceReviewBlockRef: string;
600
- status: FeedbackStatus;
601
- }>;
602
- nextClaimable: string[];
603
- nextParallelClaimable: string[];
604
- nextSequentialClaimable: string[];
605
- nextParallelDispatchable: string[];
606
- claimHints: ClaimHint[];
607
- warnings: ValidationIssue[];
608
- counts: {
609
- tasks: Record<TaskStatus, number>;
610
- blocks: Record<BlockStatus, number>;
611
- feedback: Record<FeedbackStatus, number>;
612
- };
613
- orphanState: OrphanStateSummary[];
614
- orphanResults: OrphanResultSummary[];
615
- };
616
- export type OrphanStateSummary = {
617
- taskId?: string;
618
- ref?: string;
619
- status: string;
620
- lastRunId?: string | null;
621
- };
622
- export type OrphanResultSummary = {
623
- taskId: string;
624
- path: string;
625
- };
626
- export type GraphEditResult = {
627
- ok: boolean;
628
- affectedTasks: string[];
629
- diagnostics: ValidationIssue[];
630
- graph?: CompiledExecutionGraph;
631
- };
632
- export type TaskResultIndex = {
633
- latestRunByBlock?: Record<string, string>;
634
- latestReviewAttemptByBlock?: Record<string, string>;
635
- latestReviewVerdictByBlock?: Record<string, ReviewVerdict>;
636
- latestReviewedWorkRevisionByBlock?: Record<string, string>;
637
- latestFeedbackByReviewBlock?: Record<string, string>;
638
- latestFeedbackSubmissionByFeedback?: Record<string, string>;
639
- feedbackStatusById?: Record<string, FeedbackStatus>;
640
- reviewCompletionReasonByBlock?: Record<string, "passed" | "max_cycles_reached">;
641
- counts?: {
642
- runs?: number;
643
- reviewAttempts?: number;
644
- feedbackEnvelopes?: number;
645
- feedbackSubmissions?: number;
646
- };
647
- warnings?: ValidationIssue[];
648
- };
649
- export declare const runSubmitStatuses: readonly ["completed"];
650
- export declare const reviewStatuses: readonly ["passed", "needs_changes"];
651
- export type RunSubmitStatus = "completed";
652
- export type ReviewStatus = ReviewVerdict;
653
- export type MarkBlockedResult = BlockRecoveryResult;
654
- export type MarkDivergedResult = BlockRecoveryResult;
655
- export type ResolveDivergenceResult = BlockRecoveryResult;
656
- export type UnblockResult = BlockRecoveryResult;
657
- export type RetryReviewResult = BlockRecoveryResult & {
658
- maxFeedbackCycles: number;
659
- reset: boolean;
660
- };
661
- export type EditTaskInput = {
662
- projectRoot: PackageWorkspaceRef;
663
- taskId: string;
664
- title?: string;
665
- promptMarkdown?: string;
666
- executor?: string | null;
667
- };
668
- export type EditTaskResult = GraphEditResult & {
669
- taskId: string;
670
- updatedFields: string[];
671
- };
672
- export type EditBlockInput = {
673
- projectRoot: PackageWorkspaceRef;
674
- ref: string;
675
- title?: string;
676
- promptMarkdown?: string;
677
- executor?: string | null;
678
- parallelSafe?: boolean;
679
- parallelLocks?: string[];
680
- reviewRequired?: boolean;
681
- maxFeedbackCycles?: number;
682
- reviewHook?: ReviewHookDefinition | null;
683
- };
684
- export type EditBlockResult = GraphEditResult & {
685
- ref: string;
686
- taskId: string;
687
- blockId: string;
688
- blockType: BlockType;
689
- updatedFields: string[];
690
- };
1
+ export * from "./types/manifest.js";
2
+ export * from "./types/executor.js";
3
+ export * from "./types/workspace.js";
4
+ export * from "./types/state.js";
5
+ export * from "./types/validation.js";
6
+ export * from "./types/graph.js";
7
+ export * from "./types/packageFiles.js";
8
+ export * from "./types/taskManager.js";
9
+ export * from "./types/autoRun.js";
10
+ export * from "./types/results.js";
691
11
  //# sourceMappingURL=types.d.ts.map