@planweave-ai/runtime 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/autoRun/codexExecutor.d.ts +20 -0
- package/dist/autoRun/codexExecutor.d.ts.map +1 -0
- package/dist/autoRun/codexExecutor.js +196 -0
- package/dist/autoRun/codexExecutor.js.map +1 -0
- package/dist/autoRun/codexProtocol.d.ts +5 -0
- package/dist/autoRun/codexProtocol.d.ts.map +1 -0
- package/dist/autoRun/codexProtocol.js +72 -0
- package/dist/autoRun/codexProtocol.js.map +1 -0
- package/dist/autoRun/contract.d.ts +46 -0
- package/dist/autoRun/contract.d.ts.map +1 -0
- package/dist/autoRun/contract.js +18 -0
- package/dist/autoRun/contract.js.map +1 -0
- package/dist/autoRun/executorShared.d.ts +57 -0
- package/dist/autoRun/executorShared.d.ts.map +1 -0
- package/dist/autoRun/executorShared.js +179 -0
- package/dist/autoRun/executorShared.js.map +1 -0
- package/dist/autoRun/executors.d.ts +43 -0
- package/dist/autoRun/executors.d.ts.map +1 -0
- package/dist/autoRun/executors.js +201 -0
- package/dist/autoRun/executors.js.map +1 -0
- package/dist/autoRun/localReviewExecutor.d.ts +20 -0
- package/dist/autoRun/localReviewExecutor.d.ts.map +1 -0
- package/dist/autoRun/localReviewExecutor.js +133 -0
- package/dist/autoRun/localReviewExecutor.js.map +1 -0
- package/dist/autoRun/opencodeExecutor.d.ts +20 -0
- package/dist/autoRun/opencodeExecutor.d.ts.map +1 -0
- package/dist/autoRun/opencodeExecutor.js +211 -0
- package/dist/autoRun/opencodeExecutor.js.map +1 -0
- package/dist/autoRun/opencodeInvocation.d.ts +9 -0
- package/dist/autoRun/opencodeInvocation.d.ts.map +1 -0
- package/dist/autoRun/opencodeInvocation.js +53 -0
- package/dist/autoRun/opencodeInvocation.js.map +1 -0
- package/dist/autoRun/opencodeOutput.d.ts +11 -0
- package/dist/autoRun/opencodeOutput.d.ts.map +1 -0
- package/dist/autoRun/opencodeOutput.js +190 -0
- package/dist/autoRun/opencodeOutput.js.map +1 -0
- package/dist/autoRun/reviewResultContract.d.ts +8 -0
- package/dist/autoRun/reviewResultContract.d.ts.map +1 -0
- package/dist/autoRun/reviewResultContract.js +30 -0
- package/dist/autoRun/reviewResultContract.js.map +1 -0
- package/dist/autoRun/streamingExecutor.d.ts +21 -0
- package/dist/autoRun/streamingExecutor.d.ts.map +1 -0
- package/dist/autoRun/streamingExecutor.js +40 -0
- package/dist/autoRun/streamingExecutor.js.map +1 -0
- package/dist/autoRun/tmuxExecutor.d.ts +36 -0
- package/dist/autoRun/tmuxExecutor.d.ts.map +1 -0
- package/dist/autoRun/tmuxExecutor.js +203 -0
- package/dist/autoRun/tmuxExecutor.js.map +1 -0
- package/dist/autoRun/tmuxRunnerScript.d.ts +2 -0
- package/dist/autoRun/tmuxRunnerScript.d.ts.map +1 -0
- package/dist/autoRun/tmuxRunnerScript.js +72 -0
- package/dist/autoRun/tmuxRunnerScript.js.map +1 -0
- package/dist/desktop/canvasApi.d.ts +18 -0
- package/dist/desktop/canvasApi.d.ts.map +1 -0
- package/dist/desktop/canvasApi.js +214 -0
- package/dist/desktop/canvasApi.js.map +1 -0
- package/dist/desktop/canvasDiagnostics.d.ts +3 -0
- package/dist/desktop/canvasDiagnostics.d.ts.map +1 -0
- package/dist/desktop/canvasDiagnostics.js +21 -0
- package/dist/desktop/canvasDiagnostics.js.map +1 -0
- package/dist/desktop/canvasRegistry.d.ts +17 -0
- package/dist/desktop/canvasRegistry.d.ts.map +1 -0
- package/dist/desktop/canvasRegistry.js +51 -0
- package/dist/desktop/canvasRegistry.js.map +1 -0
- package/dist/desktop/fileSyncApi.d.ts +8 -0
- package/dist/desktop/fileSyncApi.d.ts.map +1 -0
- package/dist/desktop/fileSyncApi.js +186 -0
- package/dist/desktop/fileSyncApi.js.map +1 -0
- package/dist/desktop/graph/draftModel.d.ts +8 -0
- package/dist/desktop/graph/draftModel.d.ts.map +1 -0
- package/dist/desktop/graph/draftModel.js +75 -0
- package/dist/desktop/graph/draftModel.js.map +1 -0
- package/dist/desktop/graph/editModel.d.ts +16 -0
- package/dist/desktop/graph/editModel.d.ts.map +1 -0
- package/dist/desktop/graph/editModel.js +273 -0
- package/dist/desktop/graph/editModel.js.map +1 -0
- package/dist/desktop/graph/graphHelpers.d.ts +17 -0
- package/dist/desktop/graph/graphHelpers.d.ts.map +1 -0
- package/dist/desktop/graph/graphHelpers.js +95 -0
- package/dist/desktop/graph/graphHelpers.js.map +1 -0
- package/dist/desktop/graph/projectCanvasAggregation.d.ts +10 -0
- package/dist/desktop/graph/projectCanvasAggregation.d.ts.map +1 -0
- package/dist/desktop/graph/projectCanvasAggregation.js +19 -0
- package/dist/desktop/graph/projectCanvasAggregation.js.map +1 -0
- package/dist/desktop/graph/readModel.d.ts +7 -0
- package/dist/desktop/graph/readModel.d.ts.map +1 -0
- package/dist/desktop/graph/readModel.js +154 -0
- package/dist/desktop/graph/readModel.js.map +1 -0
- package/dist/desktop/graph/searchModel.d.ts +3 -0
- package/dist/desktop/graph/searchModel.d.ts.map +1 -0
- package/dist/desktop/graph/searchModel.js +128 -0
- package/dist/desktop/graph/searchModel.js.map +1 -0
- package/dist/desktop/graph/statisticsModel.d.ts +3 -0
- package/dist/desktop/graph/statisticsModel.d.ts.map +1 -0
- package/dist/desktop/graph/statisticsModel.js +121 -0
- package/dist/desktop/graph/statisticsModel.js.map +1 -0
- package/dist/desktop/graph/todoModel.d.ts +4 -0
- package/dist/desktop/graph/todoModel.d.ts.map +1 -0
- package/dist/desktop/graph/todoModel.js +88 -0
- package/dist/desktop/graph/todoModel.js.map +1 -0
- package/dist/desktop/graphApi.d.ts +7 -0
- package/dist/desktop/graphApi.d.ts.map +1 -0
- package/dist/desktop/graphApi.js +7 -0
- package/dist/desktop/graphApi.js.map +1 -0
- package/dist/desktop/index.d.ts +12 -0
- package/dist/desktop/index.d.ts.map +1 -0
- package/dist/desktop/index.js +10 -0
- package/dist/desktop/index.js.map +1 -0
- package/dist/desktop/layoutApi.d.ts +10 -0
- package/dist/desktop/layoutApi.d.ts.map +1 -0
- package/dist/desktop/layoutApi.js +191 -0
- package/dist/desktop/layoutApi.js.map +1 -0
- package/dist/desktop/projectApi.d.ts +10 -0
- package/dist/desktop/projectApi.d.ts.map +1 -0
- package/dist/desktop/projectApi.js +99 -0
- package/dist/desktop/projectApi.js.map +1 -0
- package/dist/desktop/recordsApi.d.ts +7 -0
- package/dist/desktop/recordsApi.d.ts.map +1 -0
- package/dist/desktop/recordsApi.js +188 -0
- package/dist/desktop/recordsApi.js.map +1 -0
- package/dist/desktop/reviewPipelineApi.d.ts +5 -0
- package/dist/desktop/reviewPipelineApi.d.ts.map +1 -0
- package/dist/desktop/reviewPipelineApi.js +189 -0
- package/dist/desktop/reviewPipelineApi.js.map +1 -0
- package/dist/desktop/runApi.d.ts +8 -0
- package/dist/desktop/runApi.d.ts.map +1 -0
- package/dist/desktop/runApi.js +180 -0
- package/dist/desktop/runApi.js.map +1 -0
- package/dist/desktop/runRecordOutput.d.ts +14 -0
- package/dist/desktop/runRecordOutput.d.ts.map +1 -0
- package/dist/desktop/runRecordOutput.js +31 -0
- package/dist/desktop/runRecordOutput.js.map +1 -0
- package/dist/desktop/runStateStore.d.ts +9 -0
- package/dist/desktop/runStateStore.d.ts.map +1 -0
- package/dist/desktop/runStateStore.js +38 -0
- package/dist/desktop/runStateStore.js.map +1 -0
- package/dist/desktop/runStepState.d.ts +16 -0
- package/dist/desktop/runStepState.d.ts.map +1 -0
- package/dist/desktop/runStepState.js +94 -0
- package/dist/desktop/runStepState.js.map +1 -0
- package/dist/desktop/types/bridgeTypes.d.ts +115 -0
- package/dist/desktop/types/bridgeTypes.d.ts.map +1 -0
- package/dist/desktop/types/bridgeTypes.js +2 -0
- package/dist/desktop/types/bridgeTypes.js.map +1 -0
- package/dist/desktop/types/graphTypes.d.ts +201 -0
- package/dist/desktop/types/graphTypes.d.ts.map +1 -0
- package/dist/desktop/types/graphTypes.js +2 -0
- package/dist/desktop/types/graphTypes.js.map +1 -0
- package/dist/desktop/types/projectTypes.d.ts +19 -0
- package/dist/desktop/types/projectTypes.d.ts.map +1 -0
- package/dist/desktop/types/projectTypes.js +2 -0
- package/dist/desktop/types/projectTypes.js.map +1 -0
- package/dist/desktop/types/recordsTypes.d.ts +50 -0
- package/dist/desktop/types/recordsTypes.d.ts.map +1 -0
- package/dist/desktop/types/recordsTypes.js +2 -0
- package/dist/desktop/types/recordsTypes.js.map +1 -0
- package/dist/desktop/types/reviewPipelineTypes.d.ts +35 -0
- package/dist/desktop/types/reviewPipelineTypes.d.ts.map +1 -0
- package/dist/desktop/types/reviewPipelineTypes.js +2 -0
- package/dist/desktop/types/reviewPipelineTypes.js.map +1 -0
- package/dist/desktop/types/runTypes.d.ts +35 -0
- package/dist/desktop/types/runTypes.d.ts.map +1 -0
- package/dist/desktop/types/runTypes.js +2 -0
- package/dist/desktop/types/runTypes.js.map +1 -0
- package/dist/desktop/types/syncTypes.d.ts +22 -0
- package/dist/desktop/types/syncTypes.d.ts.map +1 -0
- package/dist/desktop/types/syncTypes.js +2 -0
- package/dist/desktop/types/syncTypes.js.map +1 -0
- package/dist/desktop/types.d.ts +8 -0
- package/dist/desktop/types.d.ts.map +1 -0
- package/dist/desktop/types.js +2 -0
- package/dist/desktop/types.js.map +1 -0
- package/dist/graph/compileTaskGraph.d.ts +8 -0
- package/dist/graph/compileTaskGraph.d.ts.map +1 -0
- package/dist/graph/compileTaskGraph.js +311 -0
- package/dist/graph/compileTaskGraph.js.map +1 -0
- package/dist/graph/editGraph.d.ts +49 -0
- package/dist/graph/editGraph.d.ts.map +1 -0
- package/dist/graph/editGraph.js +224 -0
- package/dist/graph/editGraph.js.map +1 -0
- package/dist/graph/mutation.d.ts +62 -0
- package/dist/graph/mutation.d.ts.map +1 -0
- package/dist/graph/mutation.js +158 -0
- package/dist/graph/mutation.js.map +1 -0
- package/dist/graph/session/applyOperation.d.ts +3 -0
- package/dist/graph/session/applyOperation.d.ts.map +1 -0
- package/dist/graph/session/applyOperation.js +101 -0
- package/dist/graph/session/applyOperation.js.map +1 -0
- package/dist/graph/session/fileQueue.d.ts +5 -0
- package/dist/graph/session/fileQueue.d.ts.map +1 -0
- package/dist/graph/session/fileQueue.js +26 -0
- package/dist/graph/session/fileQueue.js.map +1 -0
- package/dist/graph/session/graphIndexes.d.ts +15 -0
- package/dist/graph/session/graphIndexes.d.ts.map +1 -0
- package/dist/graph/session/graphIndexes.js +174 -0
- package/dist/graph/session/graphIndexes.js.map +1 -0
- package/dist/graph/session/manifestDiff.d.ts +3 -0
- package/dist/graph/session/manifestDiff.d.ts.map +1 -0
- package/dist/graph/session/manifestDiff.js +39 -0
- package/dist/graph/session/manifestDiff.js.map +1 -0
- package/dist/graph/session/rebuild.d.ts +4 -0
- package/dist/graph/session/rebuild.d.ts.map +1 -0
- package/dist/graph/session/rebuild.js +20 -0
- package/dist/graph/session/rebuild.js.map +1 -0
- package/dist/graph/session.d.ts +6 -0
- package/dist/graph/session.d.ts.map +1 -0
- package/dist/graph/session.js +97 -0
- package/dist/graph/session.js.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/initWorkspace.d.ts +9 -0
- package/dist/initWorkspace.d.ts.map +1 -0
- package/dist/initWorkspace.js +108 -0
- package/dist/initWorkspace.js.map +1 -0
- package/dist/json.d.ts +3 -0
- package/dist/json.d.ts.map +1 -0
- package/dist/json.js +20 -0
- package/dist/json.js.map +1 -0
- package/dist/package/fileChanges.d.ts +14 -0
- package/dist/package/fileChanges.d.ts.map +1 -0
- package/dist/package/fileChanges.js +134 -0
- package/dist/package/fileChanges.js.map +1 -0
- package/dist/package/loadPackage.d.ts +8 -0
- package/dist/package/loadPackage.d.ts.map +1 -0
- package/dist/package/loadPackage.js +14 -0
- package/dist/package/loadPackage.js.map +1 -0
- package/dist/package/manifestEdit.d.ts +4 -0
- package/dist/package/manifestEdit.d.ts.map +1 -0
- package/dist/package/manifestEdit.js +198 -0
- package/dist/package/manifestEdit.js.map +1 -0
- package/dist/package/orphans.d.ts +6 -0
- package/dist/package/orphans.d.ts.map +1 -0
- package/dist/package/orphans.js +38 -0
- package/dist/package/orphans.js.map +1 -0
- package/dist/package/readMarkdown.d.ts +2 -0
- package/dist/package/readMarkdown.d.ts.map +1 -0
- package/dist/package/readMarkdown.js +5 -0
- package/dist/package/readMarkdown.js.map +1 -0
- package/dist/package/resolvePackagePath.d.ts +8 -0
- package/dist/package/resolvePackagePath.d.ts.map +1 -0
- package/dist/package/resolvePackagePath.js +56 -0
- package/dist/package/resolvePackagePath.js.map +1 -0
- package/dist/paths.d.ts +4 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +28 -0
- package/dist/paths.js.map +1 -0
- package/dist/project.d.ts +4 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +35 -0
- package/dist/project.js.map +1 -0
- package/dist/projectId.d.ts +2 -0
- package/dist/projectId.d.ts.map +1 -0
- package/dist/projectId.js +16 -0
- package/dist/projectId.js.map +1 -0
- package/dist/projectPromptPolicy.d.ts +9 -0
- package/dist/projectPromptPolicy.d.ts.map +1 -0
- package/dist/projectPromptPolicy.js +73 -0
- package/dist/projectPromptPolicy.js.map +1 -0
- package/dist/prompt/getPrompt.d.ts +6 -0
- package/dist/prompt/getPrompt.d.ts.map +1 -0
- package/dist/prompt/getPrompt.js +5 -0
- package/dist/prompt/getPrompt.js.map +1 -0
- package/dist/prompt/refreshPrompt.d.ts +6 -0
- package/dist/prompt/refreshPrompt.d.ts.map +1 -0
- package/dist/prompt/refreshPrompt.js +9 -0
- package/dist/prompt/refreshPrompt.js.map +1 -0
- package/dist/prompt/refreshPrompts.d.ts +5 -0
- package/dist/prompt/refreshPrompts.d.ts.map +1 -0
- package/dist/prompt/refreshPrompts.js +17 -0
- package/dist/prompt/refreshPrompts.js.map +1 -0
- package/dist/prompt/renderManagedSections.d.ts +3 -0
- package/dist/prompt/renderManagedSections.d.ts.map +1 -0
- package/dist/prompt/renderManagedSections.js +4 -0
- package/dist/prompt/renderManagedSections.js.map +1 -0
- package/dist/prompt/sections.d.ts +15 -0
- package/dist/prompt/sections.d.ts.map +1 -0
- package/dist/prompt/sections.js +62 -0
- package/dist/prompt/sections.js.map +1 -0
- package/dist/schema/manifest.d.ts +192 -0
- package/dist/schema/manifest.d.ts.map +1 -0
- package/dist/schema/manifest.js +178 -0
- package/dist/schema/manifest.js.map +1 -0
- package/dist/state.d.ts +7 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/state.js +139 -0
- package/dist/state.js.map +1 -0
- package/dist/taskManager/autoRun.d.ts +16 -0
- package/dist/taskManager/autoRun.d.ts.map +1 -0
- package/dist/taskManager/autoRun.js +228 -0
- package/dist/taskManager/autoRun.js.map +1 -0
- package/dist/taskManager/blockStatusMutations.d.ts +42 -0
- package/dist/taskManager/blockStatusMutations.d.ts.map +1 -0
- package/dist/taskManager/blockStatusMutations.js +88 -0
- package/dist/taskManager/blockStatusMutations.js.map +1 -0
- package/dist/taskManager/blockSubmission.d.ts +9 -0
- package/dist/taskManager/blockSubmission.d.ts.map +1 -0
- package/dist/taskManager/blockSubmission.js +124 -0
- package/dist/taskManager/blockSubmission.js.map +1 -0
- package/dist/taskManager/claimScheduler.d.ts +26 -0
- package/dist/taskManager/claimScheduler.d.ts.map +1 -0
- package/dist/taskManager/claimScheduler.js +286 -0
- package/dist/taskManager/claimScheduler.js.map +1 -0
- package/dist/taskManager/doctor.d.ts +6 -0
- package/dist/taskManager/doctor.d.ts.map +1 -0
- package/dist/taskManager/doctor.js +141 -0
- package/dist/taskManager/doctor.js.map +1 -0
- package/dist/taskManager/executionStatus.d.ts +74 -0
- package/dist/taskManager/executionStatus.d.ts.map +1 -0
- package/dist/taskManager/executionStatus.js +180 -0
- package/dist/taskManager/executionStatus.js.map +1 -0
- package/dist/taskManager/executorApi.d.ts +9 -0
- package/dist/taskManager/executorApi.d.ts.map +1 -0
- package/dist/taskManager/executorApi.js +87 -0
- package/dist/taskManager/executorApi.js.map +1 -0
- package/dist/taskManager/feedbackArtifacts.d.ts +14 -0
- package/dist/taskManager/feedbackArtifacts.d.ts.map +1 -0
- package/dist/taskManager/feedbackArtifacts.js +17 -0
- package/dist/taskManager/feedbackArtifacts.js.map +1 -0
- package/dist/taskManager/feedbackSubmission.d.ts +7 -0
- package/dist/taskManager/feedbackSubmission.d.ts.map +1 -0
- package/dist/taskManager/feedbackSubmission.js +136 -0
- package/dist/taskManager/feedbackSubmission.js.map +1 -0
- package/dist/taskManager/index.d.ts +12 -0
- package/dist/taskManager/index.d.ts.map +1 -0
- package/dist/taskManager/index.js +11 -0
- package/dist/taskManager/index.js.map +1 -0
- package/dist/taskManager/promptRenderer.d.ts +29 -0
- package/dist/taskManager/promptRenderer.d.ts.map +1 -0
- package/dist/taskManager/promptRenderer.js +191 -0
- package/dist/taskManager/promptRenderer.js.map +1 -0
- package/dist/taskManager/resultIndex.d.ts +15 -0
- package/dist/taskManager/resultIndex.d.ts.map +1 -0
- package/dist/taskManager/resultIndex.js +61 -0
- package/dist/taskManager/resultIndex.js.map +1 -0
- package/dist/taskManager/reviewHook.d.ts +10 -0
- package/dist/taskManager/reviewHook.d.ts.map +1 -0
- package/dist/taskManager/reviewHook.js +49 -0
- package/dist/taskManager/reviewHook.js.map +1 -0
- package/dist/taskManager/reviewRetry.d.ts +13 -0
- package/dist/taskManager/reviewRetry.d.ts.map +1 -0
- package/dist/taskManager/reviewRetry.js +112 -0
- package/dist/taskManager/reviewRetry.js.map +1 -0
- package/dist/taskManager/reviewSubmission.d.ts +8 -0
- package/dist/taskManager/reviewSubmission.d.ts.map +1 -0
- package/dist/taskManager/reviewSubmission.js +444 -0
- package/dist/taskManager/reviewSubmission.js.map +1 -0
- package/dist/taskManager/runtimeContext.d.ts +16 -0
- package/dist/taskManager/runtimeContext.d.ts.map +1 -0
- package/dist/taskManager/runtimeContext.js +31 -0
- package/dist/taskManager/runtimeContext.js.map +1 -0
- package/dist/taskManager/selectors.d.ts +20 -0
- package/dist/taskManager/selectors.d.ts.map +1 -0
- package/dist/taskManager/selectors.js +148 -0
- package/dist/taskManager/selectors.js.map +1 -0
- package/dist/tasks/dependencies.d.ts +5 -0
- package/dist/tasks/dependencies.d.ts.map +1 -0
- package/dist/tasks/dependencies.js +11 -0
- package/dist/tasks/dependencies.js.map +1 -0
- package/dist/tasks/parallelSafety.d.ts +3 -0
- package/dist/tasks/parallelSafety.d.ts.map +1 -0
- package/dist/tasks/parallelSafety.js +18 -0
- package/dist/tasks/parallelSafety.js.map +1 -0
- package/dist/types.d.ts +675 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +11 -0
- package/dist/types.js.map +1 -0
- package/dist/validatePackage.d.ts +5 -0
- package/dist/validatePackage.d.ts.map +1 -0
- package/dist/validatePackage.js +130 -0
- package/dist/validatePackage.js.map +1 -0
- package/package.json +47 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,675 @@
|
|
|
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
|
+
backup?: {
|
|
257
|
+
backupDir: string;
|
|
258
|
+
packageDir?: string;
|
|
259
|
+
stateFile?: string;
|
|
260
|
+
resultsDir?: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
export type ProjectPathsResult = {
|
|
264
|
+
workspaceDir: string;
|
|
265
|
+
projectId: string;
|
|
266
|
+
projectDir: string;
|
|
267
|
+
packageDir: string;
|
|
268
|
+
statePath: string;
|
|
269
|
+
resultsDir: string;
|
|
270
|
+
};
|
|
271
|
+
export type PromptSurface = {
|
|
272
|
+
ref: string;
|
|
273
|
+
path: string;
|
|
274
|
+
markdown: string;
|
|
275
|
+
};
|
|
276
|
+
export type RefreshPromptsResult = {
|
|
277
|
+
prompts: PromptSurface[];
|
|
278
|
+
};
|
|
279
|
+
export type ClaimResult = {
|
|
280
|
+
kind: "block";
|
|
281
|
+
ref: string;
|
|
282
|
+
taskId: string;
|
|
283
|
+
blockId: string;
|
|
284
|
+
blockType: BlockType;
|
|
285
|
+
reason?: "claimed" | "current" | "feedback_resolved" | "dispatched";
|
|
286
|
+
requestedMode?: "parallel";
|
|
287
|
+
parallelFallbackReason?: "review_requires_sequential_claim";
|
|
288
|
+
nextParallelClaimable?: string[];
|
|
289
|
+
} | {
|
|
290
|
+
kind: "feedback";
|
|
291
|
+
content: string;
|
|
292
|
+
} | {
|
|
293
|
+
kind: "batch";
|
|
294
|
+
refs: string[];
|
|
295
|
+
} | {
|
|
296
|
+
kind: "none";
|
|
297
|
+
reason?: string;
|
|
298
|
+
nextSequentialClaimable?: string[];
|
|
299
|
+
} | {
|
|
300
|
+
kind: "blocked";
|
|
301
|
+
ref?: string;
|
|
302
|
+
reason: string;
|
|
303
|
+
};
|
|
304
|
+
export type ClaimScope = {
|
|
305
|
+
kind: "project";
|
|
306
|
+
} | {
|
|
307
|
+
kind: "task";
|
|
308
|
+
taskId: string;
|
|
309
|
+
} | {
|
|
310
|
+
kind: "block";
|
|
311
|
+
blockRef: string;
|
|
312
|
+
};
|
|
313
|
+
export type ParallelClaimResult = ClaimResult;
|
|
314
|
+
export type ExecutorAdapterResult = {
|
|
315
|
+
kind: "block";
|
|
316
|
+
reportPath: string;
|
|
317
|
+
runId?: string;
|
|
318
|
+
executor?: string;
|
|
319
|
+
adapter?: ExecutorProfile["adapter"];
|
|
320
|
+
stdout?: string;
|
|
321
|
+
stderr?: string;
|
|
322
|
+
exitCode?: number;
|
|
323
|
+
startedAt?: string;
|
|
324
|
+
finishedAt?: string;
|
|
325
|
+
agentSessionId?: string | null;
|
|
326
|
+
codexSessionId?: string | null;
|
|
327
|
+
opencodeSessionId?: string | null;
|
|
328
|
+
} | {
|
|
329
|
+
kind: "review";
|
|
330
|
+
resultPath: string;
|
|
331
|
+
runId?: string;
|
|
332
|
+
executor?: string;
|
|
333
|
+
adapter?: ExecutorProfile["adapter"];
|
|
334
|
+
stdout?: string;
|
|
335
|
+
stderr?: string;
|
|
336
|
+
exitCode?: number;
|
|
337
|
+
startedAt?: string;
|
|
338
|
+
finishedAt?: string;
|
|
339
|
+
agentSessionId?: string | null;
|
|
340
|
+
codexSessionId?: string | null;
|
|
341
|
+
opencodeSessionId?: string | null;
|
|
342
|
+
} | {
|
|
343
|
+
kind: "feedback";
|
|
344
|
+
reportPath: string;
|
|
345
|
+
runId?: string;
|
|
346
|
+
executor?: string;
|
|
347
|
+
adapter?: ExecutorProfile["adapter"];
|
|
348
|
+
stdout?: string;
|
|
349
|
+
stderr?: string;
|
|
350
|
+
exitCode?: number;
|
|
351
|
+
startedAt?: string;
|
|
352
|
+
finishedAt?: string;
|
|
353
|
+
agentSessionId?: string | null;
|
|
354
|
+
codexSessionId?: string | null;
|
|
355
|
+
opencodeSessionId?: string | null;
|
|
356
|
+
} | {
|
|
357
|
+
kind: "manual";
|
|
358
|
+
promptPath: string;
|
|
359
|
+
runDir: string;
|
|
360
|
+
runId: string;
|
|
361
|
+
executor: string;
|
|
362
|
+
adapter: "manual";
|
|
363
|
+
nextCommand: string;
|
|
364
|
+
};
|
|
365
|
+
export type ExecutorAdapter = {
|
|
366
|
+
runBlock(input: {
|
|
367
|
+
claim: Extract<ClaimResult, {
|
|
368
|
+
kind: "block";
|
|
369
|
+
}>;
|
|
370
|
+
prompt: string;
|
|
371
|
+
}): Promise<ExecutorAdapterResult>;
|
|
372
|
+
runFeedback(input: {
|
|
373
|
+
claim: Extract<ClaimResult, {
|
|
374
|
+
kind: "feedback";
|
|
375
|
+
}>;
|
|
376
|
+
}): Promise<ExecutorAdapterResult>;
|
|
377
|
+
};
|
|
378
|
+
export type AutoRunStepResult = {
|
|
379
|
+
kind: "submitted";
|
|
380
|
+
claim: ClaimResult;
|
|
381
|
+
adapterResult: Extract<ExecutorAdapterResult, {
|
|
382
|
+
kind: "block" | "review" | "feedback";
|
|
383
|
+
}>;
|
|
384
|
+
submitResult: SubmitResult | SubmitReviewResult | SubmitFeedbackResult;
|
|
385
|
+
} | {
|
|
386
|
+
kind: "manual";
|
|
387
|
+
claim: Extract<ClaimResult, {
|
|
388
|
+
kind: "block" | "feedback";
|
|
389
|
+
}>;
|
|
390
|
+
adapterResult: Extract<ExecutorAdapterResult, {
|
|
391
|
+
kind: "manual";
|
|
392
|
+
}>;
|
|
393
|
+
} | {
|
|
394
|
+
kind: "idle" | "blocked" | "batch";
|
|
395
|
+
claim: ClaimResult;
|
|
396
|
+
} | {
|
|
397
|
+
kind: "batch_submitted";
|
|
398
|
+
claim: Extract<ClaimResult, {
|
|
399
|
+
kind: "batch";
|
|
400
|
+
}>;
|
|
401
|
+
steps: Array<Extract<AutoRunStepResult, {
|
|
402
|
+
kind: "submitted" | "manual";
|
|
403
|
+
}>>;
|
|
404
|
+
};
|
|
405
|
+
export type AutoRunLatestRunSummary = {
|
|
406
|
+
ref: string;
|
|
407
|
+
taskId: string;
|
|
408
|
+
blockId: string;
|
|
409
|
+
runId: string;
|
|
410
|
+
executor: string | null;
|
|
411
|
+
adapter: ExecutorProfile["adapter"] | null;
|
|
412
|
+
status: BlockStatus;
|
|
413
|
+
stdoutSummary: string;
|
|
414
|
+
stderrSummary: string;
|
|
415
|
+
failureReason: string | null;
|
|
416
|
+
promptPath: string;
|
|
417
|
+
reportPath: string | null;
|
|
418
|
+
metadataPath: string;
|
|
419
|
+
};
|
|
420
|
+
export type AutoRunStatus = {
|
|
421
|
+
current: {
|
|
422
|
+
refs: string[];
|
|
423
|
+
feedbackId: string | null;
|
|
424
|
+
reviewBlockRef: string | null;
|
|
425
|
+
};
|
|
426
|
+
latestRuns: AutoRunLatestRunSummary[];
|
|
427
|
+
warnings: ValidationIssue[];
|
|
428
|
+
};
|
|
429
|
+
export type ReviewResult = {
|
|
430
|
+
reviewBlockRef: string;
|
|
431
|
+
taskId: string;
|
|
432
|
+
verdict: ReviewVerdict;
|
|
433
|
+
content: string;
|
|
434
|
+
};
|
|
435
|
+
export type ReviewHookInput = {
|
|
436
|
+
reviewResult: ReviewResult;
|
|
437
|
+
task: {
|
|
438
|
+
taskId: string;
|
|
439
|
+
title: string;
|
|
440
|
+
};
|
|
441
|
+
reviewBlockRef: string;
|
|
442
|
+
feedbackCycleCount: number;
|
|
443
|
+
};
|
|
444
|
+
export type ReviewHookOutput = {
|
|
445
|
+
action: "use_feedback";
|
|
446
|
+
feedbackPrompt: string;
|
|
447
|
+
};
|
|
448
|
+
export type SubmitResult = {
|
|
449
|
+
ref: string;
|
|
450
|
+
runId: string;
|
|
451
|
+
status: "completed";
|
|
452
|
+
};
|
|
453
|
+
export type SubmitReviewResult = {
|
|
454
|
+
ref: string;
|
|
455
|
+
reviewAttemptId: string;
|
|
456
|
+
verdict: ReviewVerdict;
|
|
457
|
+
feedbackId?: string;
|
|
458
|
+
status: BlockStatus;
|
|
459
|
+
completionReason?: "passed" | "max_cycles_reached" | null;
|
|
460
|
+
feedbackCreated?: boolean;
|
|
461
|
+
message?: string;
|
|
462
|
+
};
|
|
463
|
+
export type SubmitFeedbackResult = {
|
|
464
|
+
status: "accepted";
|
|
465
|
+
nextCommand: "planweave claim-next";
|
|
466
|
+
message: string;
|
|
467
|
+
feedbackId: string;
|
|
468
|
+
submissionId: string;
|
|
469
|
+
};
|
|
470
|
+
export type BlockRecoveryResult = {
|
|
471
|
+
ref: string;
|
|
472
|
+
status: BlockStatus;
|
|
473
|
+
reason?: string;
|
|
474
|
+
};
|
|
475
|
+
export type TaskStatusSummary = {
|
|
476
|
+
taskId: string;
|
|
477
|
+
status: TaskStatus;
|
|
478
|
+
openFeedbackCount: number;
|
|
479
|
+
};
|
|
480
|
+
export type BlockStatusSummary = {
|
|
481
|
+
ref: string;
|
|
482
|
+
taskId: string;
|
|
483
|
+
blockId: string;
|
|
484
|
+
type: BlockType;
|
|
485
|
+
status: BlockStatus;
|
|
486
|
+
reason?: string | null;
|
|
487
|
+
completionReason?: "passed" | "max_cycles_reached" | null;
|
|
488
|
+
lastRunId?: string | null;
|
|
489
|
+
latestReviewAttemptId?: string | null;
|
|
490
|
+
activeFeedbackId?: string | null;
|
|
491
|
+
};
|
|
492
|
+
export type ClaimHint = {
|
|
493
|
+
ref: string;
|
|
494
|
+
taskId: string;
|
|
495
|
+
blockId: string;
|
|
496
|
+
blockType: BlockType;
|
|
497
|
+
status: BlockStatus;
|
|
498
|
+
statusReason: string | null;
|
|
499
|
+
ready: boolean;
|
|
500
|
+
readyReason: string | null;
|
|
501
|
+
blockedByBlocks: string[];
|
|
502
|
+
blockedByTasks: string[];
|
|
503
|
+
parallelSafe: boolean;
|
|
504
|
+
sequentialOnly: boolean;
|
|
505
|
+
recommendedCommand: string | null;
|
|
506
|
+
dispatchable: boolean;
|
|
507
|
+
dispatchCommand: string | null;
|
|
508
|
+
reviewGate: ReviewGateHint | null;
|
|
509
|
+
};
|
|
510
|
+
export type ReviewGateHint = {
|
|
511
|
+
isGate: true;
|
|
512
|
+
required: boolean;
|
|
513
|
+
requiredReason: string;
|
|
514
|
+
executorRole: "reviewer";
|
|
515
|
+
downstreamTasks: string[];
|
|
516
|
+
unlocksTasks: string[];
|
|
517
|
+
needsChangesReturnsTo: string[];
|
|
518
|
+
};
|
|
519
|
+
export type BlockExplanation = ClaimHint & {
|
|
520
|
+
promptPath: string;
|
|
521
|
+
submitCommand: string;
|
|
522
|
+
};
|
|
523
|
+
export type CurrentWorkOwner = {
|
|
524
|
+
projectRoot: string;
|
|
525
|
+
canvasId: string | null;
|
|
526
|
+
taskIds: string[];
|
|
527
|
+
};
|
|
528
|
+
export type CurrentBlockWorkItem = {
|
|
529
|
+
kind: "block";
|
|
530
|
+
ref: string;
|
|
531
|
+
taskId: string;
|
|
532
|
+
blockId: string;
|
|
533
|
+
blockType: BlockType;
|
|
534
|
+
promptPath: string;
|
|
535
|
+
reportPath: string;
|
|
536
|
+
submitCommand: string;
|
|
537
|
+
};
|
|
538
|
+
export type CurrentFeedbackWorkItem = {
|
|
539
|
+
kind: "feedback";
|
|
540
|
+
ref: string;
|
|
541
|
+
feedbackId: string;
|
|
542
|
+
sourceReviewBlockRef: string;
|
|
543
|
+
taskId: string;
|
|
544
|
+
promptPath: string;
|
|
545
|
+
reportPath: string;
|
|
546
|
+
submitCommand: string;
|
|
547
|
+
};
|
|
548
|
+
export type CurrentWorkItem = CurrentBlockWorkItem | CurrentFeedbackWorkItem;
|
|
549
|
+
export type CurrentWork = {
|
|
550
|
+
currentRefs: string[];
|
|
551
|
+
currentFeedbackId: string | null;
|
|
552
|
+
currentReviewBlockRef: string | null;
|
|
553
|
+
owner: CurrentWorkOwner;
|
|
554
|
+
items: CurrentWorkItem[];
|
|
555
|
+
blockingReason: string | null;
|
|
556
|
+
};
|
|
557
|
+
export type DoctorIssue = {
|
|
558
|
+
code: "stale_current_ref" | "orphan_result" | "index_state_mismatch";
|
|
559
|
+
message: string;
|
|
560
|
+
repaired?: boolean;
|
|
561
|
+
ref?: string;
|
|
562
|
+
taskId?: string;
|
|
563
|
+
path?: string;
|
|
564
|
+
stateRunId?: string | null;
|
|
565
|
+
indexRunId?: string | null;
|
|
566
|
+
};
|
|
567
|
+
export type DoctorReport = {
|
|
568
|
+
ok: boolean;
|
|
569
|
+
issues: DoctorIssue[];
|
|
570
|
+
};
|
|
571
|
+
export type PlanStatus = {
|
|
572
|
+
projectId: string;
|
|
573
|
+
projectRoot: string;
|
|
574
|
+
taskTotal: number;
|
|
575
|
+
blockTotal: number;
|
|
576
|
+
tasks: TaskStatusSummary[];
|
|
577
|
+
blocks: BlockStatusSummary[];
|
|
578
|
+
currentRefs: string[];
|
|
579
|
+
currentFeedbackId: string | null;
|
|
580
|
+
currentReviewBlockRef: string | null;
|
|
581
|
+
openFeedback: Array<{
|
|
582
|
+
feedbackId: string;
|
|
583
|
+
sourceReviewBlockRef: string;
|
|
584
|
+
status: FeedbackStatus;
|
|
585
|
+
}>;
|
|
586
|
+
nextClaimable: string[];
|
|
587
|
+
nextParallelClaimable: string[];
|
|
588
|
+
nextSequentialClaimable: string[];
|
|
589
|
+
nextParallelDispatchable: string[];
|
|
590
|
+
claimHints: ClaimHint[];
|
|
591
|
+
warnings: ValidationIssue[];
|
|
592
|
+
counts: {
|
|
593
|
+
tasks: Record<TaskStatus, number>;
|
|
594
|
+
blocks: Record<BlockStatus, number>;
|
|
595
|
+
feedback: Record<FeedbackStatus, number>;
|
|
596
|
+
};
|
|
597
|
+
orphanState: OrphanStateSummary[];
|
|
598
|
+
orphanResults: OrphanResultSummary[];
|
|
599
|
+
};
|
|
600
|
+
export type OrphanStateSummary = {
|
|
601
|
+
taskId?: string;
|
|
602
|
+
ref?: string;
|
|
603
|
+
status: string;
|
|
604
|
+
lastRunId?: string | null;
|
|
605
|
+
};
|
|
606
|
+
export type OrphanResultSummary = {
|
|
607
|
+
taskId: string;
|
|
608
|
+
path: string;
|
|
609
|
+
};
|
|
610
|
+
export type GraphEditResult = {
|
|
611
|
+
ok: boolean;
|
|
612
|
+
affectedTasks: string[];
|
|
613
|
+
diagnostics: ValidationIssue[];
|
|
614
|
+
graph?: CompiledExecutionGraph;
|
|
615
|
+
};
|
|
616
|
+
export type TaskResultIndex = {
|
|
617
|
+
latestRunByBlock?: Record<string, string>;
|
|
618
|
+
latestReviewAttemptByBlock?: Record<string, string>;
|
|
619
|
+
latestReviewVerdictByBlock?: Record<string, ReviewVerdict>;
|
|
620
|
+
latestReviewedWorkRevisionByBlock?: Record<string, string>;
|
|
621
|
+
latestFeedbackByReviewBlock?: Record<string, string>;
|
|
622
|
+
latestFeedbackSubmissionByFeedback?: Record<string, string>;
|
|
623
|
+
feedbackStatusById?: Record<string, FeedbackStatus>;
|
|
624
|
+
reviewCompletionReasonByBlock?: Record<string, "passed" | "max_cycles_reached">;
|
|
625
|
+
counts?: {
|
|
626
|
+
runs?: number;
|
|
627
|
+
reviewAttempts?: number;
|
|
628
|
+
feedbackEnvelopes?: number;
|
|
629
|
+
feedbackSubmissions?: number;
|
|
630
|
+
};
|
|
631
|
+
warnings?: ValidationIssue[];
|
|
632
|
+
};
|
|
633
|
+
export declare const runSubmitStatuses: readonly ["completed"];
|
|
634
|
+
export declare const reviewStatuses: readonly ["passed", "needs_changes"];
|
|
635
|
+
export type RunSubmitStatus = "completed";
|
|
636
|
+
export type ReviewStatus = ReviewVerdict;
|
|
637
|
+
export type MarkBlockedResult = BlockRecoveryResult;
|
|
638
|
+
export type MarkDivergedResult = BlockRecoveryResult;
|
|
639
|
+
export type ResolveDivergenceResult = BlockRecoveryResult;
|
|
640
|
+
export type UnblockResult = BlockRecoveryResult;
|
|
641
|
+
export type RetryReviewResult = BlockRecoveryResult & {
|
|
642
|
+
maxFeedbackCycles: number;
|
|
643
|
+
reset: boolean;
|
|
644
|
+
};
|
|
645
|
+
export type EditTaskInput = {
|
|
646
|
+
projectRoot: PackageWorkspaceRef;
|
|
647
|
+
taskId: string;
|
|
648
|
+
title?: string;
|
|
649
|
+
promptMarkdown?: string;
|
|
650
|
+
executor?: string | null;
|
|
651
|
+
};
|
|
652
|
+
export type EditTaskResult = GraphEditResult & {
|
|
653
|
+
taskId: string;
|
|
654
|
+
updatedFields: string[];
|
|
655
|
+
};
|
|
656
|
+
export type EditBlockInput = {
|
|
657
|
+
projectRoot: PackageWorkspaceRef;
|
|
658
|
+
ref: string;
|
|
659
|
+
title?: string;
|
|
660
|
+
promptMarkdown?: string;
|
|
661
|
+
executor?: string | null;
|
|
662
|
+
parallelSafe?: boolean;
|
|
663
|
+
parallelLocks?: string[];
|
|
664
|
+
reviewRequired?: boolean;
|
|
665
|
+
maxFeedbackCycles?: number;
|
|
666
|
+
reviewHook?: ReviewHookDefinition | null;
|
|
667
|
+
};
|
|
668
|
+
export type EditBlockResult = GraphEditResult & {
|
|
669
|
+
ref: string;
|
|
670
|
+
taskId: string;
|
|
671
|
+
blockId: string;
|
|
672
|
+
blockType: BlockType;
|
|
673
|
+
updatedFields: string[];
|
|
674
|
+
};
|
|
675
|
+
//# sourceMappingURL=types.d.ts.map
|