@planweave-ai/runtime 0.1.2 → 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 (159) hide show
  1. package/dist/desktop/fileSyncApi.d.ts.map +1 -1
  2. package/dist/desktop/fileSyncApi.js +32 -10
  3. package/dist/desktop/fileSyncApi.js.map +1 -1
  4. package/dist/desktop/graph/editModel.d.ts +10 -1
  5. package/dist/desktop/graph/editModel.d.ts.map +1 -1
  6. package/dist/desktop/graph/editModel.js +9 -0
  7. package/dist/desktop/graph/editModel.js.map +1 -1
  8. package/dist/desktop/graph/resultsFileIndex.d.ts.map +1 -1
  9. package/dist/desktop/graph/resultsFileIndex.js +74 -50
  10. package/dist/desktop/graph/resultsFileIndex.js.map +1 -1
  11. package/dist/desktop/graph/searchIndexModel.d.ts.map +1 -1
  12. package/dist/desktop/graph/searchIndexModel.js +48 -4
  13. package/dist/desktop/graph/searchIndexModel.js.map +1 -1
  14. package/dist/desktop/graphApi.d.ts +1 -1
  15. package/dist/desktop/graphApi.d.ts.map +1 -1
  16. package/dist/desktop/graphApi.js +1 -1
  17. package/dist/desktop/graphApi.js.map +1 -1
  18. package/dist/desktop/index.d.ts +3 -1
  19. package/dist/desktop/index.d.ts.map +1 -1
  20. package/dist/desktop/index.js +2 -1
  21. package/dist/desktop/index.js.map +1 -1
  22. package/dist/desktop/layoutApi.d.ts +3 -5
  23. package/dist/desktop/layoutApi.d.ts.map +1 -1
  24. package/dist/desktop/layoutApi.js +2 -63
  25. package/dist/desktop/layoutApi.js.map +1 -1
  26. package/dist/desktop/projectGraphEditApi.d.ts +12 -0
  27. package/dist/desktop/projectGraphEditApi.d.ts.map +1 -0
  28. package/dist/desktop/projectGraphEditApi.js +65 -0
  29. package/dist/desktop/projectGraphEditApi.js.map +1 -0
  30. package/dist/desktop/types/graphTypes.d.ts +1 -0
  31. package/dist/desktop/types/graphTypes.d.ts.map +1 -1
  32. package/dist/errors.d.ts +13 -0
  33. package/dist/errors.d.ts.map +1 -0
  34. package/dist/errors.js +24 -0
  35. package/dist/errors.js.map +1 -0
  36. package/dist/graph/fieldEditMutation.d.ts +2 -0
  37. package/dist/graph/fieldEditMutation.d.ts.map +1 -1
  38. package/dist/graph/fieldEditMutation.js +18 -0
  39. package/dist/graph/fieldEditMutation.js.map +1 -1
  40. package/dist/index.d.ts +9 -6
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +8 -6
  43. package/dist/index.js.map +1 -1
  44. package/dist/package/loadPackage.d.ts.map +1 -1
  45. package/dist/package/loadPackage.js +4 -0
  46. package/dist/package/loadPackage.js.map +1 -1
  47. package/dist/package/manifestEdit.d.ts.map +1 -1
  48. package/dist/package/manifestEdit.js +3 -1
  49. package/dist/package/manifestEdit.js.map +1 -1
  50. package/dist/paths.d.ts.map +1 -1
  51. package/dist/paths.js +2 -10
  52. package/dist/paths.js.map +1 -1
  53. package/dist/project.d.ts +1 -0
  54. package/dist/project.d.ts.map +1 -1
  55. package/dist/project.js +11 -0
  56. package/dist/project.js.map +1 -1
  57. package/dist/projectGraph/compileProjectGraph.d.ts.map +1 -1
  58. package/dist/projectGraph/compileProjectGraph.js +110 -50
  59. package/dist/projectGraph/compileProjectGraph.js.map +1 -1
  60. package/dist/projectGraph/index.d.ts +1 -1
  61. package/dist/projectGraph/index.d.ts.map +1 -1
  62. package/dist/projectGraph/index.js +1 -1
  63. package/dist/projectGraph/index.js.map +1 -1
  64. package/dist/projectGraph/schema.d.ts +1 -0
  65. package/dist/projectGraph/schema.d.ts.map +1 -1
  66. package/dist/projectGraph/schema.js +4 -4
  67. package/dist/projectGraph/schema.js.map +1 -1
  68. package/dist/projectGraph/types.d.ts +5 -0
  69. package/dist/projectGraph/types.d.ts.map +1 -1
  70. package/dist/schema/manifest.d.ts +4 -3
  71. package/dist/schema/manifest.d.ts.map +1 -1
  72. package/dist/schema/manifest.js +14 -12
  73. package/dist/schema/manifest.js.map +1 -1
  74. package/dist/schemaDocs/index.d.ts +7 -0
  75. package/dist/schemaDocs/index.d.ts.map +1 -0
  76. package/dist/schemaDocs/index.js +10 -0
  77. package/dist/schemaDocs/index.js.map +1 -0
  78. package/dist/schemaDocs/manifest.d.ts +3 -0
  79. package/dist/schemaDocs/manifest.d.ts.map +1 -0
  80. package/dist/schemaDocs/manifest.js +111 -0
  81. package/dist/schemaDocs/manifest.js.map +1 -0
  82. package/dist/schemaDocs/project.d.ts +3 -0
  83. package/dist/schemaDocs/project.d.ts.map +1 -0
  84. package/dist/schemaDocs/project.js +39 -0
  85. package/dist/schemaDocs/project.js.map +1 -0
  86. package/dist/schemaDocs/types.d.ts +11 -0
  87. package/dist/schemaDocs/types.d.ts.map +1 -0
  88. package/dist/schemaDocs/types.js +2 -0
  89. package/dist/schemaDocs/types.js.map +1 -0
  90. package/dist/taskManager/doctor.d.ts.map +1 -1
  91. package/dist/taskManager/doctor.js.map +1 -1
  92. package/dist/taskManager/index.d.ts +1 -0
  93. package/dist/taskManager/index.d.ts.map +1 -1
  94. package/dist/taskManager/index.js +1 -0
  95. package/dist/taskManager/index.js.map +1 -1
  96. package/dist/taskManager/projectDoctor.d.ts +6 -0
  97. package/dist/taskManager/projectDoctor.d.ts.map +1 -0
  98. package/dist/taskManager/projectDoctor.js +108 -0
  99. package/dist/taskManager/projectDoctor.js.map +1 -0
  100. package/dist/taskManager/projectDoctorCanvas.d.ts +14 -0
  101. package/dist/taskManager/projectDoctorCanvas.d.ts.map +1 -0
  102. package/dist/taskManager/projectDoctorCanvas.js +181 -0
  103. package/dist/taskManager/projectDoctorCanvas.js.map +1 -0
  104. package/dist/taskManager/reviewHook.d.ts +17 -0
  105. package/dist/taskManager/reviewHook.d.ts.map +1 -1
  106. package/dist/taskManager/reviewHook.js +113 -25
  107. package/dist/taskManager/reviewHook.js.map +1 -1
  108. package/dist/types/autoRun.d.ts +125 -0
  109. package/dist/types/autoRun.d.ts.map +1 -0
  110. package/dist/types/autoRun.js +2 -0
  111. package/dist/types/autoRun.js.map +1 -0
  112. package/dist/types/executor.d.ts +118 -0
  113. package/dist/types/executor.d.ts.map +1 -0
  114. package/dist/types/executor.js +17 -0
  115. package/dist/types/executor.js.map +1 -0
  116. package/dist/types/graph.d.ts +100 -0
  117. package/dist/types/graph.d.ts.map +1 -0
  118. package/dist/types/graph.js +2 -0
  119. package/dist/types/graph.js.map +1 -0
  120. package/dist/types/manifest.d.ts +86 -0
  121. package/dist/types/manifest.d.ts.map +1 -0
  122. package/dist/types/manifest.js +6 -0
  123. package/dist/types/manifest.js.map +1 -0
  124. package/dist/types/packageFiles.d.ts +26 -0
  125. package/dist/types/packageFiles.d.ts.map +1 -0
  126. package/dist/types/packageFiles.js +2 -0
  127. package/dist/types/packageFiles.js.map +1 -0
  128. package/dist/types/results.d.ts +24 -0
  129. package/dist/types/results.d.ts.map +1 -0
  130. package/dist/types/results.js +4 -0
  131. package/dist/types/results.js.map +1 -0
  132. package/dist/types/state.d.ts +38 -0
  133. package/dist/types/state.d.ts.map +1 -0
  134. package/dist/types/state.js +5 -0
  135. package/dist/types/state.js.map +1 -0
  136. package/dist/types/taskManager.d.ts +259 -0
  137. package/dist/types/taskManager.d.ts.map +1 -0
  138. package/dist/types/taskManager.js +2 -0
  139. package/dist/types/taskManager.js.map +1 -0
  140. package/dist/types/validation.d.ts +11 -0
  141. package/dist/types/validation.d.ts.map +1 -0
  142. package/dist/types/validation.js +2 -0
  143. package/dist/types/validation.js.map +1 -0
  144. package/dist/types/workspace.d.ts +55 -0
  145. package/dist/types/workspace.d.ts.map +1 -0
  146. package/dist/types/workspace.js +2 -0
  147. package/dist/types/workspace.js.map +1 -0
  148. package/dist/types.d.ts +10 -775
  149. package/dist/types.d.ts.map +1 -1
  150. package/dist/types.js +10 -10
  151. package/dist/types.js.map +1 -1
  152. package/dist/validatePackage.d.ts.map +1 -1
  153. package/dist/validatePackage.js +1 -1
  154. package/dist/validatePackage.js.map +1 -1
  155. package/dist/validation/desktopLayoutValidation.d.ts +6 -0
  156. package/dist/validation/desktopLayoutValidation.d.ts.map +1 -0
  157. package/dist/validation/desktopLayoutValidation.js +154 -0
  158. package/dist/validation/desktopLayoutValidation.js.map +1 -0
  159. package/package.json +1 -1
@@ -0,0 +1,118 @@
1
+ import type { ClaimResult } from "./taskManager.js";
2
+ export declare const executorAdapter: {
3
+ readonly manual: "manual";
4
+ readonly codexExec: "codex-exec";
5
+ readonly opencodeExec: "opencode-exec";
6
+ readonly claudeCodeExec: "claude-code-exec";
7
+ readonly piExec: "pi-exec";
8
+ readonly localReview: "local-review";
9
+ };
10
+ export declare const executorAdapters: readonly ["manual", "codex-exec", "opencode-exec", "claude-code-exec", "pi-exec", "local-review"];
11
+ export type ExecutorAdapterName = (typeof executorAdapters)[number];
12
+ export type ManualExecutorProfile = {
13
+ adapter: "manual";
14
+ };
15
+ export type CodexExecExecutorProfile = {
16
+ adapter: "codex-exec";
17
+ command: string;
18
+ args: string[];
19
+ sandbox?: "read-only" | "workspace-write" | "danger-full-access";
20
+ role?: string;
21
+ timeoutMs?: number;
22
+ };
23
+ export type OpencodeExecExecutorProfile = {
24
+ adapter: "opencode-exec";
25
+ command: string;
26
+ args: string[];
27
+ sandbox?: "read-only" | "workspace-write" | "danger-full-access";
28
+ timeoutMs?: number;
29
+ };
30
+ export type ClaudeCodeExecExecutorProfile = {
31
+ adapter: "claude-code-exec";
32
+ command: string;
33
+ args: string[];
34
+ timeoutMs?: number;
35
+ };
36
+ export type PiExecExecutorProfile = {
37
+ adapter: "pi-exec";
38
+ command: string;
39
+ args: string[];
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 | ClaudeCodeExecExecutorProfile | PiExecExecutorProfile | LocalReviewExecutorProfile;
50
+ export type ExecutorProfileSummary = ExecutorProfile & {
51
+ name: string;
52
+ source: "builtin" | "package";
53
+ };
54
+ export type ExecutorAdapterResult = {
55
+ kind: "block";
56
+ reportPath: string;
57
+ runId?: string;
58
+ executor?: string;
59
+ adapter?: ExecutorProfile["adapter"];
60
+ stdout?: string;
61
+ stderr?: string;
62
+ exitCode?: number;
63
+ startedAt?: string;
64
+ finishedAt?: string;
65
+ agentSessionId?: string | null;
66
+ codexSessionId?: string | null;
67
+ opencodeSessionId?: string | null;
68
+ } | {
69
+ kind: "review";
70
+ resultPath: string;
71
+ runId?: string;
72
+ executor?: string;
73
+ adapter?: ExecutorProfile["adapter"];
74
+ stdout?: string;
75
+ stderr?: string;
76
+ exitCode?: number;
77
+ startedAt?: string;
78
+ finishedAt?: string;
79
+ agentSessionId?: string | null;
80
+ codexSessionId?: string | null;
81
+ opencodeSessionId?: string | null;
82
+ } | {
83
+ kind: "feedback";
84
+ reportPath: string;
85
+ runId?: string;
86
+ executor?: string;
87
+ adapter?: ExecutorProfile["adapter"];
88
+ stdout?: string;
89
+ stderr?: string;
90
+ exitCode?: number;
91
+ startedAt?: string;
92
+ finishedAt?: string;
93
+ agentSessionId?: string | null;
94
+ codexSessionId?: string | null;
95
+ opencodeSessionId?: string | null;
96
+ } | {
97
+ kind: "manual";
98
+ promptPath: string;
99
+ runDir: string;
100
+ runId: string;
101
+ executor: string;
102
+ adapter: "manual";
103
+ nextCommand: string;
104
+ };
105
+ export type ExecutorAdapter = {
106
+ runBlock(input: {
107
+ claim: Extract<ClaimResult, {
108
+ kind: "block";
109
+ }>;
110
+ prompt: string;
111
+ }): Promise<ExecutorAdapterResult>;
112
+ runFeedback(input: {
113
+ claim: Extract<ClaimResult, {
114
+ kind: "feedback";
115
+ }>;
116
+ }): Promise<ExecutorAdapterResult>;
117
+ };
118
+ //# sourceMappingURL=executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../src/types/executor.ts"],"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AAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACpH,WAAW,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC,WAAW,EAAE;YAAE,IAAI,EAAE,UAAU,CAAA;SAAE,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC3G,CAAC"}
@@ -0,0 +1,17 @@
1
+ export const executorAdapter = {
2
+ manual: "manual",
3
+ codexExec: "codex-exec",
4
+ opencodeExec: "opencode-exec",
5
+ claudeCodeExec: "claude-code-exec",
6
+ piExec: "pi-exec",
7
+ localReview: "local-review"
8
+ };
9
+ export const executorAdapters = [
10
+ executorAdapter.manual,
11
+ executorAdapter.codexExec,
12
+ executorAdapter.opencodeExec,
13
+ executorAdapter.claudeCodeExec,
14
+ executorAdapter.piExec,
15
+ executorAdapter.localReview
16
+ ];
17
+ //# sourceMappingURL=executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../src/types/executor.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,kBAAkB;IAClC,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,cAAc;CACnB,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,eAAe,CAAC,MAAM;IACtB,eAAe,CAAC,SAAS;IACzB,eAAe,CAAC,YAAY;IAC5B,eAAe,CAAC,cAAc;IAC9B,eAAe,CAAC,MAAM;IACtB,eAAe,CAAC,WAAW;CACnB,CAAC"}
@@ -0,0 +1,100 @@
1
+ import type { BlockType, ManifestBlock, ManifestEdge, ManifestNode, ManifestTaskNode, ReviewHookDefinition } from "./manifest.js";
2
+ import type { PackageFileChange, PackageFileSnapshot } from "./packageFiles.js";
3
+ import type { PackageWorkspaceRef } from "./workspace.js";
4
+ import type { ValidationIssue } from "./validation.js";
5
+ export type CompiledExecutionGraph = {
6
+ nodesById: Map<string, ManifestNode>;
7
+ taskNodesInManifestOrder: string[];
8
+ tasksById: Map<string, ManifestTaskNode>;
9
+ taskDependenciesByTask: Map<string, string[]>;
10
+ taskDependentsByTask: Map<string, string[]>;
11
+ blockRefsInManifestOrder: string[];
12
+ blocksByRef: Map<string, ManifestBlock>;
13
+ blockTaskByRef: Map<string, string>;
14
+ blocksByTask: Map<string, string[]>;
15
+ blockDependenciesByRef: Map<string, string[]>;
16
+ blockDependentsByRef: Map<string, string[]>;
17
+ reviewBlocksByTask: Map<string, string[]>;
18
+ locksByBlockRef: Map<string, string[]>;
19
+ parallelSafeByBlockRef: Map<string, boolean>;
20
+ diagnostics: {
21
+ errors: ValidationIssue[];
22
+ warnings: ValidationIssue[];
23
+ };
24
+ taskReachable(from: string, to: string): boolean;
25
+ blockReachable(fromRef: string, toRef: string): boolean;
26
+ };
27
+ export type CompiledTaskGraph = CompiledExecutionGraph;
28
+ export type ExecutionGraphSession = {
29
+ projectRoot: PackageWorkspaceRef;
30
+ projectId: string;
31
+ packageRoot: string;
32
+ graph: CompiledExecutionGraph;
33
+ fileSnapshot: PackageFileSnapshot;
34
+ readQueue: GraphReadQueue;
35
+ dirtyPromptRefs: Set<string>;
36
+ diagnostics: ValidationIssue[];
37
+ };
38
+ export type GraphEditOperation = {
39
+ type: "add_node" | "update_node";
40
+ node: ManifestNode;
41
+ } | {
42
+ type: "remove_node";
43
+ nodeId: string;
44
+ } | {
45
+ type: "add_edge" | "remove_edge";
46
+ edge: ManifestEdge;
47
+ } | {
48
+ type: "update_prompt";
49
+ ref: string;
50
+ };
51
+ export type GraphReadQueue = {
52
+ fileChanges: PackageFileChange[];
53
+ graphOps: GraphEditOperation[];
54
+ enqueuedAt: string;
55
+ };
56
+ export type DrainGraphReadQueueResult = {
57
+ session: ExecutionGraphSession;
58
+ refreshed: boolean;
59
+ dirtyPromptRefs: string[];
60
+ diagnostics: ValidationIssue[];
61
+ };
62
+ export type GraphEditResult = {
63
+ ok: boolean;
64
+ affectedTasks: string[];
65
+ diagnostics: ValidationIssue[];
66
+ graph?: CompiledExecutionGraph;
67
+ };
68
+ export type EditTaskInput = {
69
+ projectRoot: PackageWorkspaceRef;
70
+ taskId: string;
71
+ title?: string;
72
+ promptMarkdown?: string;
73
+ executor?: string | null;
74
+ acceptance?: string[];
75
+ };
76
+ export type EditTaskResult = GraphEditResult & {
77
+ taskId: string;
78
+ updatedFields: string[];
79
+ };
80
+ export type EditBlockInput = {
81
+ projectRoot: PackageWorkspaceRef;
82
+ ref: string;
83
+ title?: string;
84
+ promptMarkdown?: string;
85
+ executor?: string | null;
86
+ dependsOn?: string[];
87
+ parallelSafe?: boolean;
88
+ parallelLocks?: string[];
89
+ reviewRequired?: boolean;
90
+ maxFeedbackCycles?: number;
91
+ reviewHook?: ReviewHookDefinition | null;
92
+ };
93
+ export type EditBlockResult = GraphEditResult & {
94
+ ref: string;
95
+ taskId: string;
96
+ blockId: string;
97
+ blockType: BlockType;
98
+ updatedFields: string[];
99
+ };
100
+ //# sourceMappingURL=graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/types/graph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAClI,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACrC,wBAAwB,EAAE,MAAM,EAA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M,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,mBAAmB,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=graph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph.js","sourceRoot":"","sources":["../../src/types/graph.ts"],"names":[],"mappings":""}
@@ -0,0 +1,86 @@
1
+ import type { ExecutorProfile } from "./executor.js";
2
+ export declare const supportedManifestVersion: "plan-package/v1";
3
+ export declare const nodeTypes: readonly ["task"];
4
+ export declare const edgeTypes: readonly ["depends_on"];
5
+ export declare const blockTypes: readonly ["implementation", "review"];
6
+ export declare const reviewTriggerConditions: readonly ["after_required_work_completed", "manual"];
7
+ export type NodeType = (typeof nodeTypes)[number];
8
+ export type EdgeType = (typeof edgeTypes)[number];
9
+ export type BlockType = (typeof blockTypes)[number];
10
+ export type ReviewHookDefinition = {
11
+ id: string;
12
+ type: "executable";
13
+ command: string;
14
+ args: string[];
15
+ executionPolicy: "trusted-local";
16
+ };
17
+ export type ReviewTriggerCondition = (typeof reviewTriggerConditions)[number];
18
+ export type BlockParallelPolicy = {
19
+ safe: boolean;
20
+ locks: string[];
21
+ };
22
+ export type ManifestImplementationBlock = {
23
+ id: string;
24
+ type: "implementation";
25
+ title: string;
26
+ prompt: string;
27
+ depends_on: string[];
28
+ executor?: string;
29
+ parallel: BlockParallelPolicy;
30
+ };
31
+ export type ManifestReviewBlock = {
32
+ id: string;
33
+ type: "review";
34
+ title: string;
35
+ prompt: string;
36
+ depends_on: string[];
37
+ executor?: string;
38
+ review: {
39
+ required: boolean;
40
+ maxFeedbackCycles: number;
41
+ preset?: string;
42
+ triggerCondition?: ReviewTriggerCondition;
43
+ inputContext?: string;
44
+ passCriteria?: string;
45
+ feedbackFormat?: string;
46
+ hook: ReviewHookDefinition | null;
47
+ };
48
+ };
49
+ export type ManifestBlock = ManifestImplementationBlock | ManifestReviewBlock;
50
+ export type ManifestTaskNode = {
51
+ id: string;
52
+ type: "task";
53
+ title: string;
54
+ prompt: string;
55
+ executor?: string;
56
+ acceptance: string[];
57
+ blocks: ManifestBlock[];
58
+ };
59
+ export type ManifestNode = ManifestTaskNode;
60
+ export type ManifestEdge = {
61
+ from: string;
62
+ to: string;
63
+ type: EdgeType;
64
+ };
65
+ export type PlanPackageManifest = {
66
+ version: typeof supportedManifestVersion;
67
+ project: {
68
+ title: string;
69
+ description: string;
70
+ };
71
+ execution: {
72
+ defaultExecutor?: string;
73
+ parallel: {
74
+ enabled: boolean;
75
+ maxConcurrent: number;
76
+ };
77
+ };
78
+ review: {
79
+ maxFeedbackCycles: number;
80
+ completionPolicy: "strict";
81
+ };
82
+ executors?: Record<string, ExecutorProfile>;
83
+ nodes: ManifestNode[];
84
+ edges: ManifestEdge[];
85
+ };
86
+ //# sourceMappingURL=manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/types/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,wBAAwB,EAAG,iBAA0B,CAAC;AAEnE,eAAO,MAAM,SAAS,mBAAoB,CAAC;AAE3C,eAAO,MAAM,SAAS,yBAA0B,CAAC;AAEjD,eAAO,MAAM,UAAU,uCAAwC,CAAC;AAEhE,eAAO,MAAM,uBAAuB,sDAAuD,CAAC;AAE5F,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAClD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAClD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAA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EAAE,OAAO,wBAAwB,CAAC;IACzC,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,SAAS,EAAE;QACT,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,EAAE;YACR,OAAO,EAAE,OAAO,CAAC;YACjB,aAAa,EAAE,MAAM,CAAC;SACvB,CAAC;KACH,CAAC;IACF,MAAM,EAAE;QACN,iBAAiB,EAAE,MAAM,CAAC;QAC1B,gBAAgB,EAAE,QAAQ,CAAC;KAC5B,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC5C,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export const supportedManifestVersion = "plan-package/v1";
2
+ export const nodeTypes = ["task"];
3
+ export const edgeTypes = ["depends_on"];
4
+ export const blockTypes = ["implementation", "review"];
5
+ export const reviewTriggerConditions = ["after_required_work_completed", "manual"];
6
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/types/manifest.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAA0B,CAAC;AAEnE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAM,CAAU,CAAC;AAE3C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,YAAY,CAAU,CAAC;AAEjD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,gBAAgB,EAAE,QAAQ,CAAU,CAAC;AAEhE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,+BAA+B,EAAE,QAAQ,CAAU,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { CompiledExecutionGraph } from "./graph.js";
2
+ import type { PlanPackageManifest } from "./manifest.js";
3
+ export type PackageFileChange = {
4
+ path: string;
5
+ type: "added" | "changed" | "removed";
6
+ };
7
+ export type FileFingerprint = {
8
+ path: string;
9
+ hash: string;
10
+ mtimeMs: number;
11
+ };
12
+ export type PackageFileSnapshot = {
13
+ manifest: PlanPackageManifest;
14
+ graph: CompiledExecutionGraph;
15
+ manifestFile: FileFingerprint;
16
+ promptFiles: Record<string, FileFingerprint>;
17
+ };
18
+ export type PromptSurface = {
19
+ ref: string;
20
+ path: string;
21
+ markdown: string;
22
+ };
23
+ export type RefreshPromptsResult = {
24
+ prompts: PromptSurface[];
25
+ };
26
+ //# sourceMappingURL=packageFiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packageFiles.d.ts","sourceRoot":"","sources":["../../src/types/packageFiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,KAAK,EAAE,sBAAsB,CAAC;IAC9B,YAAY,EAAE,eAAe,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=packageFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packageFiles.js","sourceRoot":"","sources":["../../src/types/packageFiles.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import type { FeedbackStatus, ReviewVerdict } from "./state.js";
2
+ import type { ValidationIssue } from "./validation.js";
3
+ export type TaskResultIndex = {
4
+ latestRunByBlock?: Record<string, string>;
5
+ latestReviewAttemptByBlock?: Record<string, string>;
6
+ latestReviewVerdictByBlock?: Record<string, ReviewVerdict>;
7
+ latestReviewedWorkRevisionByBlock?: Record<string, string>;
8
+ latestFeedbackByReviewBlock?: Record<string, string>;
9
+ latestFeedbackSubmissionByFeedback?: Record<string, string>;
10
+ feedbackStatusById?: Record<string, FeedbackStatus>;
11
+ reviewCompletionReasonByBlock?: Record<string, "passed" | "max_cycles_reached">;
12
+ counts?: {
13
+ runs?: number;
14
+ reviewAttempts?: number;
15
+ feedbackEnvelopes?: number;
16
+ feedbackSubmissions?: number;
17
+ };
18
+ warnings?: ValidationIssue[];
19
+ };
20
+ export declare const runSubmitStatuses: readonly ["completed"];
21
+ export declare const reviewStatuses: readonly ["passed", "needs_changes"];
22
+ export type RunSubmitStatus = "completed";
23
+ export type ReviewStatus = ReviewVerdict;
24
+ //# sourceMappingURL=results.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../src/types/results.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAG;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,0BAA0B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,0BAA0B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC3D,iCAAiC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3D,2BAA2B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrD,kCAAkC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5D,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACpD,6BAA6B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,oBAAoB,CAAC,CAAC;IAChF,MAAM,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;IACF,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,wBAAyB,CAAC;AACxD,eAAO,MAAM,cAAc,sCAAiB,CAAC;AAC7C,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC;AAC1C,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { reviewVerdicts } from "./state.js";
2
+ export const runSubmitStatuses = ["completed"];
3
+ export const reviewStatuses = reviewVerdicts;
4
+ //# sourceMappingURL=results.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"results.js","sourceRoot":"","sources":["../../src/types/results.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAsB5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,WAAW,CAAU,CAAC;AACxD,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC"}
@@ -0,0 +1,38 @@
1
+ export declare const taskStatuses: readonly ["planned", "ready", "in_progress", "implemented"];
2
+ export declare const blockStatuses: readonly ["planned", "ready", "in_progress", "completed", "needs_changes", "blocked", "diverged"];
3
+ export declare const feedbackStatuses: readonly ["open", "in_progress", "resolved", "dismissed"];
4
+ export declare const reviewVerdicts: readonly ["passed", "needs_changes"];
5
+ export type TaskStatus = (typeof taskStatuses)[number];
6
+ export type BlockStatus = (typeof blockStatuses)[number];
7
+ export type FeedbackStatus = (typeof feedbackStatuses)[number];
8
+ export type ReviewVerdict = (typeof reviewVerdicts)[number];
9
+ export type TaskState = {
10
+ status: TaskStatus;
11
+ openFeedbackCount: number;
12
+ };
13
+ export type BlockState = {
14
+ status: BlockStatus;
15
+ lastRunId?: string | null;
16
+ latestReviewAttemptId?: string | null;
17
+ activeFeedbackId?: string | null;
18
+ pendingFeedbackId?: string | null;
19
+ blockedReason?: string | null;
20
+ divergenceReason?: string | null;
21
+ completionReason?: "passed" | "max_cycles_reached" | null;
22
+ passedWorkRevision?: string | null;
23
+ };
24
+ export type FeedbackEnvelopeState = {
25
+ status: FeedbackStatus;
26
+ sourceReviewBlockRef: string;
27
+ latestSubmissionId: string | null;
28
+ content: string;
29
+ };
30
+ export type RuntimeState = {
31
+ currentRefs: string[];
32
+ currentFeedbackId: string | null;
33
+ currentReviewBlockRef: string | null;
34
+ tasks: Record<string, TaskState>;
35
+ blocks: Record<string, BlockState>;
36
+ feedback: Record<string, FeedbackEnvelopeState>;
37
+ };
38
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/types/state.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,6DAA8D,CAAC;AACxF,eAAO,MAAM,aAAa,mGAAoG,CAAC;AAC/H,eAAO,MAAM,gBAAgB,2DAA4D,CAAC;AAC1F,eAAO,MAAM,cAAc,sCAAuC,CAAC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AAM,GAAG,IAAI,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;CACjD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export const taskStatuses = ["planned", "ready", "in_progress", "implemented"];
2
+ export const blockStatuses = ["planned", "ready", "in_progress", "completed", "needs_changes", "blocked", "diverged"];
3
+ export const feedbackStatuses = ["open", "in_progress", "resolved", "dismissed"];
4
+ export const reviewVerdicts = ["passed", "needs_changes"];
5
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/types/state.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,CAAU,CAAC;AACxF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AAC/H,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,CAAU,CAAC;AAC1F,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,eAAe,CAAU,CAAC"}