@moreih29/nexus-core 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/README.md +48 -63
  2. package/assets/agents/architect/body.ko.md +177 -0
  3. package/{agents → assets/agents}/architect/body.md +16 -0
  4. package/assets/agents/designer/body.ko.md +125 -0
  5. package/{agents → assets/agents}/designer/body.md +16 -0
  6. package/assets/agents/engineer/body.ko.md +106 -0
  7. package/{agents → assets/agents}/engineer/body.md +14 -0
  8. package/assets/agents/lead/body.ko.md +70 -0
  9. package/assets/agents/lead/body.md +70 -0
  10. package/assets/agents/postdoc/body.ko.md +122 -0
  11. package/{agents → assets/agents}/postdoc/body.md +16 -0
  12. package/assets/agents/researcher/body.ko.md +137 -0
  13. package/{agents → assets/agents}/researcher/body.md +15 -0
  14. package/assets/agents/reviewer/body.ko.md +138 -0
  15. package/{agents → assets/agents}/reviewer/body.md +15 -0
  16. package/assets/agents/strategist/body.ko.md +116 -0
  17. package/{agents → assets/agents}/strategist/body.md +16 -0
  18. package/assets/agents/tester/body.ko.md +195 -0
  19. package/{agents → assets/agents}/tester/body.md +15 -0
  20. package/assets/agents/writer/body.ko.md +122 -0
  21. package/{agents → assets/agents}/writer/body.md +14 -0
  22. package/assets/capability-matrix.yml +198 -0
  23. package/assets/hooks/agent-bootstrap/handler.test.ts +368 -0
  24. package/assets/hooks/agent-bootstrap/handler.ts +119 -0
  25. package/assets/hooks/agent-bootstrap/meta.yml +10 -0
  26. package/assets/hooks/agent-finalize/handler.test.ts +368 -0
  27. package/assets/hooks/agent-finalize/handler.ts +76 -0
  28. package/assets/hooks/agent-finalize/meta.yml +10 -0
  29. package/assets/hooks/capability-matrix.yml +313 -0
  30. package/assets/hooks/post-tool-telemetry/handler.test.ts +302 -0
  31. package/assets/hooks/post-tool-telemetry/handler.ts +49 -0
  32. package/assets/hooks/post-tool-telemetry/meta.yml +11 -0
  33. package/assets/hooks/prompt-router/handler.test.ts +801 -0
  34. package/assets/hooks/prompt-router/handler.ts +261 -0
  35. package/assets/hooks/prompt-router/meta.yml +11 -0
  36. package/assets/hooks/session-init/handler.test.ts +274 -0
  37. package/assets/hooks/session-init/handler.ts +30 -0
  38. package/assets/hooks/session-init/meta.yml +9 -0
  39. package/assets/lsp-servers.json +55 -0
  40. package/assets/schema/lsp-servers.schema.json +67 -0
  41. package/assets/skills/nx-init/body.ko.md +197 -0
  42. package/{skills → assets/skills}/nx-init/body.md +11 -0
  43. package/assets/skills/nx-plan/body.ko.md +361 -0
  44. package/{skills → assets/skills}/nx-plan/body.md +13 -0
  45. package/assets/skills/nx-run/body.ko.md +161 -0
  46. package/{skills → assets/skills}/nx-run/body.md +11 -0
  47. package/assets/skills/nx-sync/body.ko.md +92 -0
  48. package/{skills → assets/skills}/nx-sync/body.md +10 -0
  49. package/assets/tools/tool-name-map.yml +353 -0
  50. package/dist/hooks/opencode-mount.d.ts +35 -0
  51. package/dist/hooks/opencode-mount.d.ts.map +1 -0
  52. package/dist/hooks/opencode-mount.js +332 -0
  53. package/dist/hooks/opencode-mount.js.map +1 -0
  54. package/dist/hooks/runtime.d.ts +37 -0
  55. package/dist/hooks/runtime.d.ts.map +1 -0
  56. package/dist/hooks/runtime.js +274 -0
  57. package/dist/hooks/runtime.js.map +1 -0
  58. package/dist/hooks/types.d.ts +196 -0
  59. package/dist/hooks/types.d.ts.map +1 -0
  60. package/dist/hooks/types.js +85 -0
  61. package/dist/hooks/types.js.map +1 -0
  62. package/dist/lsp/cache.d.ts +9 -0
  63. package/dist/lsp/cache.d.ts.map +1 -0
  64. package/dist/lsp/cache.js +216 -0
  65. package/dist/lsp/cache.js.map +1 -0
  66. package/dist/lsp/client.d.ts +24 -0
  67. package/dist/lsp/client.d.ts.map +1 -0
  68. package/dist/lsp/client.js +166 -0
  69. package/dist/lsp/client.js.map +1 -0
  70. package/dist/lsp/detect.d.ts +77 -0
  71. package/dist/lsp/detect.d.ts.map +1 -0
  72. package/dist/lsp/detect.js +116 -0
  73. package/dist/lsp/detect.js.map +1 -0
  74. package/dist/mcp/server.d.ts +5 -0
  75. package/dist/mcp/server.d.ts.map +1 -0
  76. package/dist/mcp/server.js +34 -0
  77. package/dist/mcp/server.js.map +1 -0
  78. package/dist/mcp/tools/artifact.d.ts +4 -0
  79. package/dist/mcp/tools/artifact.d.ts.map +1 -0
  80. package/dist/mcp/tools/artifact.js +36 -0
  81. package/dist/mcp/tools/artifact.js.map +1 -0
  82. package/dist/mcp/tools/history.d.ts +3 -0
  83. package/dist/mcp/tools/history.d.ts.map +1 -0
  84. package/dist/mcp/tools/history.js +29 -0
  85. package/dist/mcp/tools/history.js.map +1 -0
  86. package/dist/mcp/tools/lsp.d.ts +13 -0
  87. package/dist/mcp/tools/lsp.d.ts.map +1 -0
  88. package/dist/mcp/tools/lsp.js +225 -0
  89. package/dist/mcp/tools/lsp.js.map +1 -0
  90. package/dist/mcp/tools/plan.d.ts +3 -0
  91. package/dist/mcp/tools/plan.d.ts.map +1 -0
  92. package/dist/mcp/tools/plan.js +317 -0
  93. package/dist/mcp/tools/plan.js.map +1 -0
  94. package/dist/mcp/tools/task.d.ts +3 -0
  95. package/dist/mcp/tools/task.d.ts.map +1 -0
  96. package/dist/mcp/tools/task.js +252 -0
  97. package/dist/mcp/tools/task.js.map +1 -0
  98. package/dist/shared/invocations.d.ts +74 -0
  99. package/dist/shared/invocations.d.ts.map +1 -0
  100. package/dist/shared/invocations.js +247 -0
  101. package/dist/shared/invocations.js.map +1 -0
  102. package/dist/shared/json-store.d.ts +37 -0
  103. package/dist/shared/json-store.d.ts.map +1 -0
  104. package/dist/shared/json-store.js +163 -0
  105. package/dist/shared/json-store.js.map +1 -0
  106. package/dist/shared/mcp-utils.d.ts +3 -0
  107. package/dist/shared/mcp-utils.d.ts.map +1 -0
  108. package/dist/shared/mcp-utils.js +6 -0
  109. package/dist/shared/mcp-utils.js.map +1 -0
  110. package/dist/shared/paths.d.ts +21 -0
  111. package/dist/shared/paths.d.ts.map +1 -0
  112. package/dist/shared/paths.js +81 -0
  113. package/dist/shared/paths.js.map +1 -0
  114. package/dist/shared/tool-log.d.ts +8 -0
  115. package/dist/shared/tool-log.d.ts.map +1 -0
  116. package/dist/shared/tool-log.js +22 -0
  117. package/dist/shared/tool-log.js.map +1 -0
  118. package/dist/types/state.d.ts +862 -0
  119. package/dist/types/state.d.ts.map +1 -0
  120. package/dist/types/state.js +66 -0
  121. package/dist/types/state.js.map +1 -0
  122. package/docs/consuming/codex-lead-merge.md +106 -0
  123. package/docs/plugin-guide.md +360 -0
  124. package/docs/plugin-template/claude/.github/workflows/build.yml +60 -0
  125. package/docs/plugin-template/claude/README.md +110 -0
  126. package/docs/plugin-template/claude/package.json +16 -0
  127. package/docs/plugin-template/codex/.github/workflows/build.yml +51 -0
  128. package/docs/plugin-template/codex/README.md +147 -0
  129. package/docs/plugin-template/codex/package.json +17 -0
  130. package/docs/plugin-template/opencode/.github/workflows/build.yml +61 -0
  131. package/docs/plugin-template/opencode/README.md +121 -0
  132. package/docs/plugin-template/opencode/package.json +25 -0
  133. package/package.json +21 -21
  134. package/scripts/build-agents.test.ts +1279 -0
  135. package/scripts/build-agents.ts +978 -0
  136. package/scripts/build-hooks.test.ts +1385 -0
  137. package/scripts/build-hooks.ts +584 -0
  138. package/scripts/cli.test.ts +367 -0
  139. package/scripts/cli.ts +547 -0
  140. package/agents/architect/meta.yml +0 -13
  141. package/agents/designer/meta.yml +0 -13
  142. package/agents/engineer/meta.yml +0 -11
  143. package/agents/postdoc/meta.yml +0 -13
  144. package/agents/researcher/meta.yml +0 -12
  145. package/agents/reviewer/meta.yml +0 -12
  146. package/agents/strategist/meta.yml +0 -13
  147. package/agents/tester/meta.yml +0 -12
  148. package/agents/writer/meta.yml +0 -11
  149. package/conformance/README.md +0 -311
  150. package/conformance/examples/plan.extension.schema.example.json +0 -25
  151. package/conformance/lifecycle/README.md +0 -48
  152. package/conformance/lifecycle/agent-complete.json +0 -44
  153. package/conformance/lifecycle/agent-resume.json +0 -43
  154. package/conformance/lifecycle/agent-spawn.json +0 -36
  155. package/conformance/lifecycle/memory-access-record.json +0 -27
  156. package/conformance/lifecycle/session-end.json +0 -48
  157. package/conformance/scenarios/full-plan-cycle.json +0 -147
  158. package/conformance/scenarios/task-deps-ordering.json +0 -95
  159. package/conformance/schema/fixture.schema.json +0 -354
  160. package/conformance/state-schemas/agent-tracker.schema.json +0 -63
  161. package/conformance/state-schemas/history.schema.json +0 -134
  162. package/conformance/state-schemas/memory-access.schema.json +0 -36
  163. package/conformance/state-schemas/plan.schema.json +0 -77
  164. package/conformance/state-schemas/tasks.schema.json +0 -98
  165. package/conformance/tools/artifact-write.json +0 -97
  166. package/conformance/tools/context.json +0 -172
  167. package/conformance/tools/history-search.json +0 -219
  168. package/conformance/tools/plan-decide.json +0 -139
  169. package/conformance/tools/plan-start.json +0 -81
  170. package/conformance/tools/plan-status.json +0 -127
  171. package/conformance/tools/plan-update.json +0 -341
  172. package/conformance/tools/task-add.json +0 -156
  173. package/conformance/tools/task-close.json +0 -161
  174. package/conformance/tools/task-list.json +0 -177
  175. package/conformance/tools/task-update.json +0 -167
  176. package/docs/behavioral-contracts.md +0 -145
  177. package/docs/consumer-implementation-guide.md +0 -840
  178. package/docs/memory-lifecycle-contract.md +0 -119
  179. package/docs/nexus-layout.md +0 -224
  180. package/docs/nexus-outputs-contract.md +0 -344
  181. package/docs/nexus-state-overview.md +0 -170
  182. package/docs/nexus-tools-contract.md +0 -438
  183. package/manifest.json +0 -448
  184. package/schema/README.md +0 -69
  185. package/schema/agent.schema.json +0 -23
  186. package/schema/common.schema.json +0 -17
  187. package/schema/manifest.schema.json +0 -78
  188. package/schema/memory-policy.schema.json +0 -98
  189. package/schema/skill.schema.json +0 -54
  190. package/schema/task-exceptions.schema.json +0 -40
  191. package/schema/vocabulary.schema.json +0 -167
  192. package/scripts/.gitkeep +0 -0
  193. package/scripts/conformance-coverage.ts +0 -466
  194. package/scripts/import-from-claude-nexus.ts +0 -403
  195. package/scripts/lib/frontmatter.ts +0 -71
  196. package/scripts/lib/lint.ts +0 -348
  197. package/scripts/lib/structure.ts +0 -159
  198. package/scripts/lib/validate.ts +0 -796
  199. package/scripts/validate.ts +0 -90
  200. package/skills/nx-init/meta.yml +0 -8
  201. package/skills/nx-plan/meta.yml +0 -10
  202. package/skills/nx-run/meta.yml +0 -8
  203. package/skills/nx-sync/meta.yml +0 -7
  204. package/vocabulary/capabilities.yml +0 -65
  205. package/vocabulary/categories.yml +0 -11
  206. package/vocabulary/invocations.yml +0 -147
  207. package/vocabulary/memory_policy.yml +0 -88
  208. package/vocabulary/resume-tiers.yml +0 -11
  209. package/vocabulary/tags.yml +0 -60
  210. package/vocabulary/task-exceptions.yml +0 -29
@@ -0,0 +1,862 @@
1
+ import { z } from "zod";
2
+ export declare const ResumeTierSchema: z.ZodEnum<["persistent", "bounded", "ephemeral"]>;
3
+ export type ResumeTier = z.infer<typeof ResumeTierSchema>;
4
+ export declare const PlanAnalysisEntrySchema: z.ZodObject<{
5
+ role: z.ZodString;
6
+ agent_id: z.ZodOptional<z.ZodString>;
7
+ summary: z.ZodString;
8
+ recorded_at: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ role: string;
11
+ summary: string;
12
+ recorded_at: string;
13
+ agent_id?: string | undefined;
14
+ }, {
15
+ role: string;
16
+ summary: string;
17
+ recorded_at: string;
18
+ agent_id?: string | undefined;
19
+ }>;
20
+ export type PlanAnalysisEntry = z.infer<typeof PlanAnalysisEntrySchema>;
21
+ export declare const PlanIssueSchema: z.ZodObject<{
22
+ id: z.ZodNumber;
23
+ title: z.ZodString;
24
+ status: z.ZodEnum<["pending", "decided"]>;
25
+ decision: z.ZodOptional<z.ZodString>;
26
+ analysis: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
+ role: z.ZodString;
28
+ agent_id: z.ZodOptional<z.ZodString>;
29
+ summary: z.ZodString;
30
+ recorded_at: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ role: string;
33
+ summary: string;
34
+ recorded_at: string;
35
+ agent_id?: string | undefined;
36
+ }, {
37
+ role: string;
38
+ summary: string;
39
+ recorded_at: string;
40
+ agent_id?: string | undefined;
41
+ }>, "many">>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ status: "pending" | "decided";
44
+ title: string;
45
+ id: number;
46
+ decision?: string | undefined;
47
+ analysis?: {
48
+ role: string;
49
+ summary: string;
50
+ recorded_at: string;
51
+ agent_id?: string | undefined;
52
+ }[] | undefined;
53
+ }, {
54
+ status: "pending" | "decided";
55
+ title: string;
56
+ id: number;
57
+ decision?: string | undefined;
58
+ analysis?: {
59
+ role: string;
60
+ summary: string;
61
+ recorded_at: string;
62
+ agent_id?: string | undefined;
63
+ }[] | undefined;
64
+ }>;
65
+ export type PlanIssue = z.infer<typeof PlanIssueSchema>;
66
+ export declare const PlanFileSchema: z.ZodObject<{
67
+ id: z.ZodNumber;
68
+ topic: z.ZodString;
69
+ issues: z.ZodArray<z.ZodObject<{
70
+ id: z.ZodNumber;
71
+ title: z.ZodString;
72
+ status: z.ZodEnum<["pending", "decided"]>;
73
+ decision: z.ZodOptional<z.ZodString>;
74
+ analysis: z.ZodOptional<z.ZodArray<z.ZodObject<{
75
+ role: z.ZodString;
76
+ agent_id: z.ZodOptional<z.ZodString>;
77
+ summary: z.ZodString;
78
+ recorded_at: z.ZodString;
79
+ }, "strip", z.ZodTypeAny, {
80
+ role: string;
81
+ summary: string;
82
+ recorded_at: string;
83
+ agent_id?: string | undefined;
84
+ }, {
85
+ role: string;
86
+ summary: string;
87
+ recorded_at: string;
88
+ agent_id?: string | undefined;
89
+ }>, "many">>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ status: "pending" | "decided";
92
+ title: string;
93
+ id: number;
94
+ decision?: string | undefined;
95
+ analysis?: {
96
+ role: string;
97
+ summary: string;
98
+ recorded_at: string;
99
+ agent_id?: string | undefined;
100
+ }[] | undefined;
101
+ }, {
102
+ status: "pending" | "decided";
103
+ title: string;
104
+ id: number;
105
+ decision?: string | undefined;
106
+ analysis?: {
107
+ role: string;
108
+ summary: string;
109
+ recorded_at: string;
110
+ agent_id?: string | undefined;
111
+ }[] | undefined;
112
+ }>, "many">;
113
+ research_summary: z.ZodOptional<z.ZodString>;
114
+ created_at: z.ZodString;
115
+ }, "strip", z.ZodTypeAny, {
116
+ issues: {
117
+ status: "pending" | "decided";
118
+ title: string;
119
+ id: number;
120
+ decision?: string | undefined;
121
+ analysis?: {
122
+ role: string;
123
+ summary: string;
124
+ recorded_at: string;
125
+ agent_id?: string | undefined;
126
+ }[] | undefined;
127
+ }[];
128
+ id: number;
129
+ topic: string;
130
+ created_at: string;
131
+ research_summary?: string | undefined;
132
+ }, {
133
+ issues: {
134
+ status: "pending" | "decided";
135
+ title: string;
136
+ id: number;
137
+ decision?: string | undefined;
138
+ analysis?: {
139
+ role: string;
140
+ summary: string;
141
+ recorded_at: string;
142
+ agent_id?: string | undefined;
143
+ }[] | undefined;
144
+ }[];
145
+ id: number;
146
+ topic: string;
147
+ created_at: string;
148
+ research_summary?: string | undefined;
149
+ }>;
150
+ export type PlanFile = z.infer<typeof PlanFileSchema>;
151
+ export declare const TaskOwnerSchema: z.ZodObject<{
152
+ role: z.ZodString;
153
+ agent_id: z.ZodOptional<z.ZodString>;
154
+ resume_tier: z.ZodOptional<z.ZodEnum<["persistent", "bounded", "ephemeral"]>>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ role: string;
157
+ agent_id?: string | undefined;
158
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
159
+ }, {
160
+ role: string;
161
+ agent_id?: string | undefined;
162
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
163
+ }>;
164
+ export type TaskOwner = z.infer<typeof TaskOwnerSchema>;
165
+ export declare const TaskItemSchema: z.ZodObject<{
166
+ id: z.ZodNumber;
167
+ title: z.ZodString;
168
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
169
+ context: z.ZodString;
170
+ acceptance: z.ZodString;
171
+ approach: z.ZodOptional<z.ZodString>;
172
+ risk: z.ZodOptional<z.ZodString>;
173
+ plan_issue: z.ZodOptional<z.ZodNumber>;
174
+ deps: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
175
+ owner: z.ZodObject<{
176
+ role: z.ZodString;
177
+ agent_id: z.ZodOptional<z.ZodString>;
178
+ resume_tier: z.ZodOptional<z.ZodEnum<["persistent", "bounded", "ephemeral"]>>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ role: string;
181
+ agent_id?: string | undefined;
182
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
183
+ }, {
184
+ role: string;
185
+ agent_id?: string | undefined;
186
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
187
+ }>;
188
+ created_at: z.ZodString;
189
+ }, "strip", z.ZodTypeAny, {
190
+ status: "completed" | "pending" | "in_progress";
191
+ title: string;
192
+ id: number;
193
+ created_at: string;
194
+ context: string;
195
+ acceptance: string;
196
+ owner: {
197
+ role: string;
198
+ agent_id?: string | undefined;
199
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
200
+ };
201
+ approach?: string | undefined;
202
+ risk?: string | undefined;
203
+ plan_issue?: number | undefined;
204
+ deps?: number[] | undefined;
205
+ }, {
206
+ status: "completed" | "pending" | "in_progress";
207
+ title: string;
208
+ id: number;
209
+ created_at: string;
210
+ context: string;
211
+ acceptance: string;
212
+ owner: {
213
+ role: string;
214
+ agent_id?: string | undefined;
215
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
216
+ };
217
+ approach?: string | undefined;
218
+ risk?: string | undefined;
219
+ plan_issue?: number | undefined;
220
+ deps?: number[] | undefined;
221
+ }>;
222
+ export type TaskItem = z.infer<typeof TaskItemSchema>;
223
+ export declare const TasksFileSchema: z.ZodObject<{
224
+ goal: z.ZodOptional<z.ZodString>;
225
+ decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
226
+ tasks: z.ZodArray<z.ZodObject<{
227
+ id: z.ZodNumber;
228
+ title: z.ZodString;
229
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
230
+ context: z.ZodString;
231
+ acceptance: z.ZodString;
232
+ approach: z.ZodOptional<z.ZodString>;
233
+ risk: z.ZodOptional<z.ZodString>;
234
+ plan_issue: z.ZodOptional<z.ZodNumber>;
235
+ deps: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
236
+ owner: z.ZodObject<{
237
+ role: z.ZodString;
238
+ agent_id: z.ZodOptional<z.ZodString>;
239
+ resume_tier: z.ZodOptional<z.ZodEnum<["persistent", "bounded", "ephemeral"]>>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ role: string;
242
+ agent_id?: string | undefined;
243
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
244
+ }, {
245
+ role: string;
246
+ agent_id?: string | undefined;
247
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
248
+ }>;
249
+ created_at: z.ZodString;
250
+ }, "strip", z.ZodTypeAny, {
251
+ status: "completed" | "pending" | "in_progress";
252
+ title: string;
253
+ id: number;
254
+ created_at: string;
255
+ context: string;
256
+ acceptance: string;
257
+ owner: {
258
+ role: string;
259
+ agent_id?: string | undefined;
260
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
261
+ };
262
+ approach?: string | undefined;
263
+ risk?: string | undefined;
264
+ plan_issue?: number | undefined;
265
+ deps?: number[] | undefined;
266
+ }, {
267
+ status: "completed" | "pending" | "in_progress";
268
+ title: string;
269
+ id: number;
270
+ created_at: string;
271
+ context: string;
272
+ acceptance: string;
273
+ owner: {
274
+ role: string;
275
+ agent_id?: string | undefined;
276
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
277
+ };
278
+ approach?: string | undefined;
279
+ risk?: string | undefined;
280
+ plan_issue?: number | undefined;
281
+ deps?: number[] | undefined;
282
+ }>, "many">;
283
+ }, "strip", z.ZodTypeAny, {
284
+ tasks: {
285
+ status: "completed" | "pending" | "in_progress";
286
+ title: string;
287
+ id: number;
288
+ created_at: string;
289
+ context: string;
290
+ acceptance: string;
291
+ owner: {
292
+ role: string;
293
+ agent_id?: string | undefined;
294
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
295
+ };
296
+ approach?: string | undefined;
297
+ risk?: string | undefined;
298
+ plan_issue?: number | undefined;
299
+ deps?: number[] | undefined;
300
+ }[];
301
+ goal?: string | undefined;
302
+ decisions?: string[] | undefined;
303
+ }, {
304
+ tasks: {
305
+ status: "completed" | "pending" | "in_progress";
306
+ title: string;
307
+ id: number;
308
+ created_at: string;
309
+ context: string;
310
+ acceptance: string;
311
+ owner: {
312
+ role: string;
313
+ agent_id?: string | undefined;
314
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
315
+ };
316
+ approach?: string | undefined;
317
+ risk?: string | undefined;
318
+ plan_issue?: number | undefined;
319
+ deps?: number[] | undefined;
320
+ }[];
321
+ goal?: string | undefined;
322
+ decisions?: string[] | undefined;
323
+ }>;
324
+ export type TasksFile = z.infer<typeof TasksFileSchema>;
325
+ export declare const HistoryCycleSchema: z.ZodObject<{
326
+ schema_version: z.ZodOptional<z.ZodString>;
327
+ completed_at: z.ZodString;
328
+ branch: z.ZodString;
329
+ plan: z.ZodOptional<z.ZodObject<{
330
+ id: z.ZodNumber;
331
+ topic: z.ZodString;
332
+ issues: z.ZodArray<z.ZodObject<{
333
+ id: z.ZodNumber;
334
+ title: z.ZodString;
335
+ status: z.ZodEnum<["pending", "decided"]>;
336
+ decision: z.ZodOptional<z.ZodString>;
337
+ analysis: z.ZodOptional<z.ZodArray<z.ZodObject<{
338
+ role: z.ZodString;
339
+ agent_id: z.ZodOptional<z.ZodString>;
340
+ summary: z.ZodString;
341
+ recorded_at: z.ZodString;
342
+ }, "strip", z.ZodTypeAny, {
343
+ role: string;
344
+ summary: string;
345
+ recorded_at: string;
346
+ agent_id?: string | undefined;
347
+ }, {
348
+ role: string;
349
+ summary: string;
350
+ recorded_at: string;
351
+ agent_id?: string | undefined;
352
+ }>, "many">>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ status: "pending" | "decided";
355
+ title: string;
356
+ id: number;
357
+ decision?: string | undefined;
358
+ analysis?: {
359
+ role: string;
360
+ summary: string;
361
+ recorded_at: string;
362
+ agent_id?: string | undefined;
363
+ }[] | undefined;
364
+ }, {
365
+ status: "pending" | "decided";
366
+ title: string;
367
+ id: number;
368
+ decision?: string | undefined;
369
+ analysis?: {
370
+ role: string;
371
+ summary: string;
372
+ recorded_at: string;
373
+ agent_id?: string | undefined;
374
+ }[] | undefined;
375
+ }>, "many">;
376
+ research_summary: z.ZodOptional<z.ZodString>;
377
+ created_at: z.ZodString;
378
+ }, "strip", z.ZodTypeAny, {
379
+ issues: {
380
+ status: "pending" | "decided";
381
+ title: string;
382
+ id: number;
383
+ decision?: string | undefined;
384
+ analysis?: {
385
+ role: string;
386
+ summary: string;
387
+ recorded_at: string;
388
+ agent_id?: string | undefined;
389
+ }[] | undefined;
390
+ }[];
391
+ id: number;
392
+ topic: string;
393
+ created_at: string;
394
+ research_summary?: string | undefined;
395
+ }, {
396
+ issues: {
397
+ status: "pending" | "decided";
398
+ title: string;
399
+ id: number;
400
+ decision?: string | undefined;
401
+ analysis?: {
402
+ role: string;
403
+ summary: string;
404
+ recorded_at: string;
405
+ agent_id?: string | undefined;
406
+ }[] | undefined;
407
+ }[];
408
+ id: number;
409
+ topic: string;
410
+ created_at: string;
411
+ research_summary?: string | undefined;
412
+ }>>;
413
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
414
+ id: z.ZodNumber;
415
+ title: z.ZodString;
416
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
417
+ context: z.ZodString;
418
+ acceptance: z.ZodString;
419
+ approach: z.ZodOptional<z.ZodString>;
420
+ risk: z.ZodOptional<z.ZodString>;
421
+ plan_issue: z.ZodOptional<z.ZodNumber>;
422
+ deps: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
423
+ owner: z.ZodObject<{
424
+ role: z.ZodString;
425
+ agent_id: z.ZodOptional<z.ZodString>;
426
+ resume_tier: z.ZodOptional<z.ZodEnum<["persistent", "bounded", "ephemeral"]>>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ role: string;
429
+ agent_id?: string | undefined;
430
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
431
+ }, {
432
+ role: string;
433
+ agent_id?: string | undefined;
434
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
435
+ }>;
436
+ created_at: z.ZodString;
437
+ }, "strip", z.ZodTypeAny, {
438
+ status: "completed" | "pending" | "in_progress";
439
+ title: string;
440
+ id: number;
441
+ created_at: string;
442
+ context: string;
443
+ acceptance: string;
444
+ owner: {
445
+ role: string;
446
+ agent_id?: string | undefined;
447
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
448
+ };
449
+ approach?: string | undefined;
450
+ risk?: string | undefined;
451
+ plan_issue?: number | undefined;
452
+ deps?: number[] | undefined;
453
+ }, {
454
+ status: "completed" | "pending" | "in_progress";
455
+ title: string;
456
+ id: number;
457
+ created_at: string;
458
+ context: string;
459
+ acceptance: string;
460
+ owner: {
461
+ role: string;
462
+ agent_id?: string | undefined;
463
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
464
+ };
465
+ approach?: string | undefined;
466
+ risk?: string | undefined;
467
+ plan_issue?: number | undefined;
468
+ deps?: number[] | undefined;
469
+ }>, "many">>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ completed_at: string;
472
+ branch: string;
473
+ tasks?: {
474
+ status: "completed" | "pending" | "in_progress";
475
+ title: string;
476
+ id: number;
477
+ created_at: string;
478
+ context: string;
479
+ acceptance: string;
480
+ owner: {
481
+ role: string;
482
+ agent_id?: string | undefined;
483
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
484
+ };
485
+ approach?: string | undefined;
486
+ risk?: string | undefined;
487
+ plan_issue?: number | undefined;
488
+ deps?: number[] | undefined;
489
+ }[] | undefined;
490
+ schema_version?: string | undefined;
491
+ plan?: {
492
+ issues: {
493
+ status: "pending" | "decided";
494
+ title: string;
495
+ id: number;
496
+ decision?: string | undefined;
497
+ analysis?: {
498
+ role: string;
499
+ summary: string;
500
+ recorded_at: string;
501
+ agent_id?: string | undefined;
502
+ }[] | undefined;
503
+ }[];
504
+ id: number;
505
+ topic: string;
506
+ created_at: string;
507
+ research_summary?: string | undefined;
508
+ } | undefined;
509
+ }, {
510
+ completed_at: string;
511
+ branch: string;
512
+ tasks?: {
513
+ status: "completed" | "pending" | "in_progress";
514
+ title: string;
515
+ id: number;
516
+ created_at: string;
517
+ context: string;
518
+ acceptance: string;
519
+ owner: {
520
+ role: string;
521
+ agent_id?: string | undefined;
522
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
523
+ };
524
+ approach?: string | undefined;
525
+ risk?: string | undefined;
526
+ plan_issue?: number | undefined;
527
+ deps?: number[] | undefined;
528
+ }[] | undefined;
529
+ schema_version?: string | undefined;
530
+ plan?: {
531
+ issues: {
532
+ status: "pending" | "decided";
533
+ title: string;
534
+ id: number;
535
+ decision?: string | undefined;
536
+ analysis?: {
537
+ role: string;
538
+ summary: string;
539
+ recorded_at: string;
540
+ agent_id?: string | undefined;
541
+ }[] | undefined;
542
+ }[];
543
+ id: number;
544
+ topic: string;
545
+ created_at: string;
546
+ research_summary?: string | undefined;
547
+ } | undefined;
548
+ }>;
549
+ export type HistoryCycle = z.infer<typeof HistoryCycleSchema>;
550
+ export declare const HistoryFileSchema: z.ZodObject<{
551
+ schema_version: z.ZodOptional<z.ZodString>;
552
+ cycles: z.ZodArray<z.ZodObject<{
553
+ schema_version: z.ZodOptional<z.ZodString>;
554
+ completed_at: z.ZodString;
555
+ branch: z.ZodString;
556
+ plan: z.ZodOptional<z.ZodObject<{
557
+ id: z.ZodNumber;
558
+ topic: z.ZodString;
559
+ issues: z.ZodArray<z.ZodObject<{
560
+ id: z.ZodNumber;
561
+ title: z.ZodString;
562
+ status: z.ZodEnum<["pending", "decided"]>;
563
+ decision: z.ZodOptional<z.ZodString>;
564
+ analysis: z.ZodOptional<z.ZodArray<z.ZodObject<{
565
+ role: z.ZodString;
566
+ agent_id: z.ZodOptional<z.ZodString>;
567
+ summary: z.ZodString;
568
+ recorded_at: z.ZodString;
569
+ }, "strip", z.ZodTypeAny, {
570
+ role: string;
571
+ summary: string;
572
+ recorded_at: string;
573
+ agent_id?: string | undefined;
574
+ }, {
575
+ role: string;
576
+ summary: string;
577
+ recorded_at: string;
578
+ agent_id?: string | undefined;
579
+ }>, "many">>;
580
+ }, "strip", z.ZodTypeAny, {
581
+ status: "pending" | "decided";
582
+ title: string;
583
+ id: number;
584
+ decision?: string | undefined;
585
+ analysis?: {
586
+ role: string;
587
+ summary: string;
588
+ recorded_at: string;
589
+ agent_id?: string | undefined;
590
+ }[] | undefined;
591
+ }, {
592
+ status: "pending" | "decided";
593
+ title: string;
594
+ id: number;
595
+ decision?: string | undefined;
596
+ analysis?: {
597
+ role: string;
598
+ summary: string;
599
+ recorded_at: string;
600
+ agent_id?: string | undefined;
601
+ }[] | undefined;
602
+ }>, "many">;
603
+ research_summary: z.ZodOptional<z.ZodString>;
604
+ created_at: z.ZodString;
605
+ }, "strip", z.ZodTypeAny, {
606
+ issues: {
607
+ status: "pending" | "decided";
608
+ title: string;
609
+ id: number;
610
+ decision?: string | undefined;
611
+ analysis?: {
612
+ role: string;
613
+ summary: string;
614
+ recorded_at: string;
615
+ agent_id?: string | undefined;
616
+ }[] | undefined;
617
+ }[];
618
+ id: number;
619
+ topic: string;
620
+ created_at: string;
621
+ research_summary?: string | undefined;
622
+ }, {
623
+ issues: {
624
+ status: "pending" | "decided";
625
+ title: string;
626
+ id: number;
627
+ decision?: string | undefined;
628
+ analysis?: {
629
+ role: string;
630
+ summary: string;
631
+ recorded_at: string;
632
+ agent_id?: string | undefined;
633
+ }[] | undefined;
634
+ }[];
635
+ id: number;
636
+ topic: string;
637
+ created_at: string;
638
+ research_summary?: string | undefined;
639
+ }>>;
640
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
641
+ id: z.ZodNumber;
642
+ title: z.ZodString;
643
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
644
+ context: z.ZodString;
645
+ acceptance: z.ZodString;
646
+ approach: z.ZodOptional<z.ZodString>;
647
+ risk: z.ZodOptional<z.ZodString>;
648
+ plan_issue: z.ZodOptional<z.ZodNumber>;
649
+ deps: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
650
+ owner: z.ZodObject<{
651
+ role: z.ZodString;
652
+ agent_id: z.ZodOptional<z.ZodString>;
653
+ resume_tier: z.ZodOptional<z.ZodEnum<["persistent", "bounded", "ephemeral"]>>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ role: string;
656
+ agent_id?: string | undefined;
657
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
658
+ }, {
659
+ role: string;
660
+ agent_id?: string | undefined;
661
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
662
+ }>;
663
+ created_at: z.ZodString;
664
+ }, "strip", z.ZodTypeAny, {
665
+ status: "completed" | "pending" | "in_progress";
666
+ title: string;
667
+ id: number;
668
+ created_at: string;
669
+ context: string;
670
+ acceptance: string;
671
+ owner: {
672
+ role: string;
673
+ agent_id?: string | undefined;
674
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
675
+ };
676
+ approach?: string | undefined;
677
+ risk?: string | undefined;
678
+ plan_issue?: number | undefined;
679
+ deps?: number[] | undefined;
680
+ }, {
681
+ status: "completed" | "pending" | "in_progress";
682
+ title: string;
683
+ id: number;
684
+ created_at: string;
685
+ context: string;
686
+ acceptance: string;
687
+ owner: {
688
+ role: string;
689
+ agent_id?: string | undefined;
690
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
691
+ };
692
+ approach?: string | undefined;
693
+ risk?: string | undefined;
694
+ plan_issue?: number | undefined;
695
+ deps?: number[] | undefined;
696
+ }>, "many">>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ completed_at: string;
699
+ branch: string;
700
+ tasks?: {
701
+ status: "completed" | "pending" | "in_progress";
702
+ title: string;
703
+ id: number;
704
+ created_at: string;
705
+ context: string;
706
+ acceptance: string;
707
+ owner: {
708
+ role: string;
709
+ agent_id?: string | undefined;
710
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
711
+ };
712
+ approach?: string | undefined;
713
+ risk?: string | undefined;
714
+ plan_issue?: number | undefined;
715
+ deps?: number[] | undefined;
716
+ }[] | undefined;
717
+ schema_version?: string | undefined;
718
+ plan?: {
719
+ issues: {
720
+ status: "pending" | "decided";
721
+ title: string;
722
+ id: number;
723
+ decision?: string | undefined;
724
+ analysis?: {
725
+ role: string;
726
+ summary: string;
727
+ recorded_at: string;
728
+ agent_id?: string | undefined;
729
+ }[] | undefined;
730
+ }[];
731
+ id: number;
732
+ topic: string;
733
+ created_at: string;
734
+ research_summary?: string | undefined;
735
+ } | undefined;
736
+ }, {
737
+ completed_at: string;
738
+ branch: string;
739
+ tasks?: {
740
+ status: "completed" | "pending" | "in_progress";
741
+ title: string;
742
+ id: number;
743
+ created_at: string;
744
+ context: string;
745
+ acceptance: string;
746
+ owner: {
747
+ role: string;
748
+ agent_id?: string | undefined;
749
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
750
+ };
751
+ approach?: string | undefined;
752
+ risk?: string | undefined;
753
+ plan_issue?: number | undefined;
754
+ deps?: number[] | undefined;
755
+ }[] | undefined;
756
+ schema_version?: string | undefined;
757
+ plan?: {
758
+ issues: {
759
+ status: "pending" | "decided";
760
+ title: string;
761
+ id: number;
762
+ decision?: string | undefined;
763
+ analysis?: {
764
+ role: string;
765
+ summary: string;
766
+ recorded_at: string;
767
+ agent_id?: string | undefined;
768
+ }[] | undefined;
769
+ }[];
770
+ id: number;
771
+ topic: string;
772
+ created_at: string;
773
+ research_summary?: string | undefined;
774
+ } | undefined;
775
+ }>, "many">;
776
+ }, "strip", z.ZodTypeAny, {
777
+ cycles: {
778
+ completed_at: string;
779
+ branch: string;
780
+ tasks?: {
781
+ status: "completed" | "pending" | "in_progress";
782
+ title: string;
783
+ id: number;
784
+ created_at: string;
785
+ context: string;
786
+ acceptance: string;
787
+ owner: {
788
+ role: string;
789
+ agent_id?: string | undefined;
790
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
791
+ };
792
+ approach?: string | undefined;
793
+ risk?: string | undefined;
794
+ plan_issue?: number | undefined;
795
+ deps?: number[] | undefined;
796
+ }[] | undefined;
797
+ schema_version?: string | undefined;
798
+ plan?: {
799
+ issues: {
800
+ status: "pending" | "decided";
801
+ title: string;
802
+ id: number;
803
+ decision?: string | undefined;
804
+ analysis?: {
805
+ role: string;
806
+ summary: string;
807
+ recorded_at: string;
808
+ agent_id?: string | undefined;
809
+ }[] | undefined;
810
+ }[];
811
+ id: number;
812
+ topic: string;
813
+ created_at: string;
814
+ research_summary?: string | undefined;
815
+ } | undefined;
816
+ }[];
817
+ schema_version?: string | undefined;
818
+ }, {
819
+ cycles: {
820
+ completed_at: string;
821
+ branch: string;
822
+ tasks?: {
823
+ status: "completed" | "pending" | "in_progress";
824
+ title: string;
825
+ id: number;
826
+ created_at: string;
827
+ context: string;
828
+ acceptance: string;
829
+ owner: {
830
+ role: string;
831
+ agent_id?: string | undefined;
832
+ resume_tier?: "persistent" | "bounded" | "ephemeral" | undefined;
833
+ };
834
+ approach?: string | undefined;
835
+ risk?: string | undefined;
836
+ plan_issue?: number | undefined;
837
+ deps?: number[] | undefined;
838
+ }[] | undefined;
839
+ schema_version?: string | undefined;
840
+ plan?: {
841
+ issues: {
842
+ status: "pending" | "decided";
843
+ title: string;
844
+ id: number;
845
+ decision?: string | undefined;
846
+ analysis?: {
847
+ role: string;
848
+ summary: string;
849
+ recorded_at: string;
850
+ agent_id?: string | undefined;
851
+ }[] | undefined;
852
+ }[];
853
+ id: number;
854
+ topic: string;
855
+ created_at: string;
856
+ research_summary?: string | undefined;
857
+ } | undefined;
858
+ }[];
859
+ schema_version?: string | undefined;
860
+ }>;
861
+ export type HistoryFile = z.infer<typeof HistoryFileSchema>;
862
+ //# sourceMappingURL=state.d.ts.map