@aionis/manifest 0.1.1

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 (102) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE +178 -0
  3. package/README.md +170 -0
  4. package/dist/ast/types.d.ts +34 -0
  5. package/dist/ast/types.js +1 -0
  6. package/dist/cli.d.ts +2 -0
  7. package/dist/cli.js +122 -0
  8. package/dist/compile.d.ts +14 -0
  9. package/dist/compile.js +219 -0
  10. package/dist/contracts.d.ts +12610 -0
  11. package/dist/contracts.js +401 -0
  12. package/dist/diagnostics/types.d.ts +17 -0
  13. package/dist/diagnostics/types.js +1 -0
  14. package/dist/execute/localRuntime.d.ts +5 -0
  15. package/dist/execute/localRuntime.js +165 -0
  16. package/dist/execute/moduleRuntime.d.ts +25 -0
  17. package/dist/execute/moduleRuntime.js +352 -0
  18. package/dist/execute/types.d.ts +113 -0
  19. package/dist/execute/types.js +1 -0
  20. package/dist/execute-cli.d.ts +2 -0
  21. package/dist/execute-cli.js +112 -0
  22. package/dist/execute.d.ts +6 -0
  23. package/dist/execute.js +46 -0
  24. package/dist/graph/buildExecutionGraph.d.ts +8 -0
  25. package/dist/graph/buildExecutionGraph.js +69 -0
  26. package/dist/graph/types.d.ts +24 -0
  27. package/dist/graph/types.js +1 -0
  28. package/dist/handoff-store-cli.d.ts +2 -0
  29. package/dist/handoff-store-cli.js +139 -0
  30. package/dist/handoff-store.d.ts +103 -0
  31. package/dist/handoff-store.js +78 -0
  32. package/dist/index.d.ts +22 -0
  33. package/dist/index.js +21 -0
  34. package/dist/ir/types.d.ts +92 -0
  35. package/dist/ir/types.js +1 -0
  36. package/dist/parser/parseAst.d.ts +3 -0
  37. package/dist/parser/parseAst.js +207 -0
  38. package/dist/parser/payload.d.ts +6 -0
  39. package/dist/parser/payload.js +211 -0
  40. package/dist/plan/buildExecutionPlan.d.ts +9 -0
  41. package/dist/plan/buildExecutionPlan.js +98 -0
  42. package/dist/plan/types.d.ts +44 -0
  43. package/dist/plan/types.js +1 -0
  44. package/dist/publish-cli.d.ts +2 -0
  45. package/dist/publish-cli.js +249 -0
  46. package/dist/publish.d.ts +148 -0
  47. package/dist/publish.js +190 -0
  48. package/dist/recover-cli.d.ts +2 -0
  49. package/dist/recover-cli.js +258 -0
  50. package/dist/recover.d.ts +489 -0
  51. package/dist/recover.js +290 -0
  52. package/dist/refs/resolveRefs.d.ts +13 -0
  53. package/dist/refs/resolveRefs.js +104 -0
  54. package/dist/registry/loadModuleRegistry.d.ts +28 -0
  55. package/dist/registry/loadModuleRegistry.js +97 -0
  56. package/dist/registry/types.d.ts +20 -0
  57. package/dist/registry/types.js +2 -0
  58. package/dist/resume-cli.d.ts +2 -0
  59. package/dist/resume-cli.js +379 -0
  60. package/dist/resume.d.ts +2076 -0
  61. package/dist/resume.js +452 -0
  62. package/dist/run-cli.d.ts +2 -0
  63. package/dist/run-cli.js +119 -0
  64. package/dist/run.d.ts +9 -0
  65. package/dist/run.js +43 -0
  66. package/dist/runtime-handoff-cli.d.ts +2 -0
  67. package/dist/runtime-handoff-cli.js +179 -0
  68. package/dist/runtime-handoff.d.ts +914 -0
  69. package/dist/runtime-handoff.js +383 -0
  70. package/dist/scanner/scanSource.d.ts +9 -0
  71. package/dist/scanner/scanSource.js +43 -0
  72. package/dist/schema/validateIrSchemas.d.ts +3 -0
  73. package/dist/schema/validateIrSchemas.js +64 -0
  74. package/dist/validate-module-cli.d.ts +2 -0
  75. package/dist/validate-module-cli.js +93 -0
  76. package/dist/validate-registry-cli.d.ts +2 -0
  77. package/dist/validate-registry-cli.js +82 -0
  78. package/dist/validate.d.ts +52 -0
  79. package/dist/validate.js +91 -0
  80. package/fixtures/duplicate-doc.aionis.md +19 -0
  81. package/fixtures/fenced-example.aionis.md +27 -0
  82. package/fixtures/malformed-payload.aionis.md +9 -0
  83. package/fixtures/npm-installed-module-registry.json +17 -0
  84. package/fixtures/standalone-module-registry.json +13 -0
  85. package/fixtures/standalone-runner-plan.json +51 -0
  86. package/fixtures/standalone-runner.aionis.md +29 -0
  87. package/fixtures/unresolved-ref.aionis.md +14 -0
  88. package/fixtures/valid-minimal.aionis.md +24 -0
  89. package/fixtures/valid-workflow.aionis.md +29 -0
  90. package/official-modules/copy-summary/CHANGELOG.md +6 -0
  91. package/official-modules/copy-summary/README.md +43 -0
  92. package/official-modules/copy-summary/index.mjs +41 -0
  93. package/official-modules/copy-summary/package.json +31 -0
  94. package/official-modules/json-transform/CHANGELOG.md +6 -0
  95. package/official-modules/json-transform/README.md +51 -0
  96. package/official-modules/json-transform/index.mjs +53 -0
  97. package/official-modules/json-transform/package.json +31 -0
  98. package/official-modules/research-claims/CHANGELOG.md +6 -0
  99. package/official-modules/research-claims/README.md +47 -0
  100. package/official-modules/research-claims/index.mjs +44 -0
  101. package/official-modules/research-claims/package.json +31 -0
  102. package/package.json +74 -0
@@ -0,0 +1,489 @@
1
+ import { z } from "zod";
2
+ export declare const AIONIS_MANIFEST_RECOVER_RESULT_VERSION: "aionis_manifest_recover_result_v1";
3
+ export declare const RecoverInputKindSchema: z.ZodEnum<["source", "runtime-handoff", "handoff-store-request", "publish-result"]>;
4
+ export type RecoverInputKind = z.infer<typeof RecoverInputKindSchema>;
5
+ export declare const HandoffRecoverRequestSchema: z.ZodObject<{
6
+ tenant_id: z.ZodOptional<z.ZodString>;
7
+ scope: z.ZodOptional<z.ZodString>;
8
+ anchor: z.ZodString;
9
+ repo_root: z.ZodOptional<z.ZodString>;
10
+ file_path: z.ZodOptional<z.ZodString>;
11
+ symbol: z.ZodOptional<z.ZodString>;
12
+ handoff_kind: z.ZodOptional<z.ZodEnum<["patch_handoff", "review_handoff", "task_handoff"]>>;
13
+ memory_lane: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
14
+ limit: z.ZodOptional<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ anchor: string;
17
+ symbol?: string | undefined;
18
+ file_path?: string | undefined;
19
+ repo_root?: string | undefined;
20
+ scope?: string | undefined;
21
+ handoff_kind?: "task_handoff" | "patch_handoff" | "review_handoff" | undefined;
22
+ tenant_id?: string | undefined;
23
+ memory_lane?: "private" | "shared" | undefined;
24
+ limit?: number | undefined;
25
+ }, {
26
+ anchor: string;
27
+ symbol?: string | undefined;
28
+ file_path?: string | undefined;
29
+ repo_root?: string | undefined;
30
+ scope?: string | undefined;
31
+ handoff_kind?: "task_handoff" | "patch_handoff" | "review_handoff" | undefined;
32
+ tenant_id?: string | undefined;
33
+ memory_lane?: "private" | "shared" | undefined;
34
+ limit?: number | undefined;
35
+ }>;
36
+ export type AionisManifestRecoverRequest = z.infer<typeof HandoffRecoverRequestSchema>;
37
+ export declare const HandoffRecoverPayloadSchema: z.ZodObject<{
38
+ tenant_id: z.ZodString;
39
+ scope: z.ZodString;
40
+ handoff_kind: z.ZodString;
41
+ anchor: z.ZodString;
42
+ matched_nodes: z.ZodNumber;
43
+ handoff: z.ZodRecord<z.ZodString, z.ZodUnknown>;
44
+ prompt_safe_handoff: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
45
+ execution_ready_handoff: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
46
+ execution_result_summary: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
47
+ execution_artifacts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
48
+ execution_evidence: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
49
+ execution_state_v1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
50
+ execution_packet_v1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
51
+ control_profile_v1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
+ execution_transitions_v1: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ anchor: string;
55
+ scope: string;
56
+ handoff_kind: string;
57
+ tenant_id: string;
58
+ handoff: Record<string, unknown>;
59
+ matched_nodes: number;
60
+ execution_result_summary?: Record<string, unknown> | null | undefined;
61
+ execution_artifacts?: Record<string, unknown>[] | undefined;
62
+ execution_evidence?: Record<string, unknown>[] | undefined;
63
+ execution_state_v1?: Record<string, unknown> | undefined;
64
+ execution_packet_v1?: Record<string, unknown> | undefined;
65
+ execution_ready_handoff?: Record<string, unknown> | undefined;
66
+ control_profile_v1?: Record<string, unknown> | undefined;
67
+ execution_transitions_v1?: Record<string, unknown>[] | undefined;
68
+ prompt_safe_handoff?: Record<string, unknown> | undefined;
69
+ }, {
70
+ anchor: string;
71
+ scope: string;
72
+ handoff_kind: string;
73
+ tenant_id: string;
74
+ handoff: Record<string, unknown>;
75
+ matched_nodes: number;
76
+ execution_result_summary?: Record<string, unknown> | null | undefined;
77
+ execution_artifacts?: Record<string, unknown>[] | undefined;
78
+ execution_evidence?: Record<string, unknown>[] | undefined;
79
+ execution_state_v1?: Record<string, unknown> | undefined;
80
+ execution_packet_v1?: Record<string, unknown> | undefined;
81
+ execution_ready_handoff?: Record<string, unknown> | undefined;
82
+ control_profile_v1?: Record<string, unknown> | undefined;
83
+ execution_transitions_v1?: Record<string, unknown>[] | undefined;
84
+ prompt_safe_handoff?: Record<string, unknown> | undefined;
85
+ }>;
86
+ export type AionisManifestRecoveredHandoffPayload = z.infer<typeof HandoffRecoverPayloadSchema>;
87
+ export declare const RecoverResultSchema: z.ZodObject<{
88
+ recover_result_version: z.ZodLiteral<"aionis_manifest_recover_result_v1">;
89
+ recovered_at: z.ZodString;
90
+ base_url: z.ZodString;
91
+ input_kind: z.ZodEnum<["source", "runtime-handoff", "handoff-store-request", "publish-result"]>;
92
+ source_doc_id: z.ZodNullable<z.ZodString>;
93
+ source_doc_version: z.ZodNullable<z.ZodString>;
94
+ publish_result: z.ZodNullable<z.ZodObject<{
95
+ publish_result_version: z.ZodLiteral<"aionis_manifest_publish_result_v1">;
96
+ published_at: z.ZodString;
97
+ base_url: z.ZodString;
98
+ input_kind: z.ZodEnum<["source", "runtime-handoff", "handoff-store-request"]>;
99
+ source_doc_id: z.ZodNullable<z.ZodString>;
100
+ source_doc_version: z.ZodNullable<z.ZodString>;
101
+ request: z.ZodObject<{
102
+ anchor: z.ZodString;
103
+ handoff_kind: z.ZodString;
104
+ scope: z.ZodOptional<z.ZodString>;
105
+ memory_lane: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ anchor: string;
108
+ handoff_kind: string;
109
+ scope?: string | undefined;
110
+ memory_lane?: "private" | "shared" | undefined;
111
+ }, {
112
+ anchor: string;
113
+ handoff_kind: string;
114
+ scope?: string | undefined;
115
+ memory_lane?: "private" | "shared" | undefined;
116
+ }>;
117
+ response: z.ZodObject<{
118
+ status: z.ZodNumber;
119
+ request_id: z.ZodNullable<z.ZodString>;
120
+ tenant_id: z.ZodOptional<z.ZodString>;
121
+ scope: z.ZodOptional<z.ZodString>;
122
+ commit_id: z.ZodString;
123
+ commit_uri: z.ZodOptional<z.ZodString>;
124
+ handoff_anchor: z.ZodNullable<z.ZodString>;
125
+ handoff_kind: z.ZodNullable<z.ZodString>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ status: number;
128
+ handoff_kind: string | null;
129
+ request_id: string | null;
130
+ commit_id: string;
131
+ handoff_anchor: string | null;
132
+ scope?: string | undefined;
133
+ tenant_id?: string | undefined;
134
+ commit_uri?: string | undefined;
135
+ }, {
136
+ status: number;
137
+ handoff_kind: string | null;
138
+ request_id: string | null;
139
+ commit_id: string;
140
+ handoff_anchor: string | null;
141
+ scope?: string | undefined;
142
+ tenant_id?: string | undefined;
143
+ commit_uri?: string | undefined;
144
+ }>;
145
+ handoff_store_request: z.ZodRecord<z.ZodString, z.ZodUnknown>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ source_doc_id: string | null;
148
+ source_doc_version: string | null;
149
+ publish_result_version: "aionis_manifest_publish_result_v1";
150
+ published_at: string;
151
+ base_url: string;
152
+ input_kind: "source" | "runtime-handoff" | "handoff-store-request";
153
+ request: {
154
+ anchor: string;
155
+ handoff_kind: string;
156
+ scope?: string | undefined;
157
+ memory_lane?: "private" | "shared" | undefined;
158
+ };
159
+ response: {
160
+ status: number;
161
+ handoff_kind: string | null;
162
+ request_id: string | null;
163
+ commit_id: string;
164
+ handoff_anchor: string | null;
165
+ scope?: string | undefined;
166
+ tenant_id?: string | undefined;
167
+ commit_uri?: string | undefined;
168
+ };
169
+ handoff_store_request: Record<string, unknown>;
170
+ }, {
171
+ source_doc_id: string | null;
172
+ source_doc_version: string | null;
173
+ publish_result_version: "aionis_manifest_publish_result_v1";
174
+ published_at: string;
175
+ base_url: string;
176
+ input_kind: "source" | "runtime-handoff" | "handoff-store-request";
177
+ request: {
178
+ anchor: string;
179
+ handoff_kind: string;
180
+ scope?: string | undefined;
181
+ memory_lane?: "private" | "shared" | undefined;
182
+ };
183
+ response: {
184
+ status: number;
185
+ handoff_kind: string | null;
186
+ request_id: string | null;
187
+ commit_id: string;
188
+ handoff_anchor: string | null;
189
+ scope?: string | undefined;
190
+ tenant_id?: string | undefined;
191
+ commit_uri?: string | undefined;
192
+ };
193
+ handoff_store_request: Record<string, unknown>;
194
+ }>>;
195
+ recover_request: z.ZodObject<{
196
+ tenant_id: z.ZodOptional<z.ZodString>;
197
+ scope: z.ZodOptional<z.ZodString>;
198
+ anchor: z.ZodString;
199
+ repo_root: z.ZodOptional<z.ZodString>;
200
+ file_path: z.ZodOptional<z.ZodString>;
201
+ symbol: z.ZodOptional<z.ZodString>;
202
+ handoff_kind: z.ZodOptional<z.ZodEnum<["patch_handoff", "review_handoff", "task_handoff"]>>;
203
+ memory_lane: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
204
+ limit: z.ZodOptional<z.ZodNumber>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ anchor: string;
207
+ symbol?: string | undefined;
208
+ file_path?: string | undefined;
209
+ repo_root?: string | undefined;
210
+ scope?: string | undefined;
211
+ handoff_kind?: "task_handoff" | "patch_handoff" | "review_handoff" | undefined;
212
+ tenant_id?: string | undefined;
213
+ memory_lane?: "private" | "shared" | undefined;
214
+ limit?: number | undefined;
215
+ }, {
216
+ anchor: string;
217
+ symbol?: string | undefined;
218
+ file_path?: string | undefined;
219
+ repo_root?: string | undefined;
220
+ scope?: string | undefined;
221
+ handoff_kind?: "task_handoff" | "patch_handoff" | "review_handoff" | undefined;
222
+ tenant_id?: string | undefined;
223
+ memory_lane?: "private" | "shared" | undefined;
224
+ limit?: number | undefined;
225
+ }>;
226
+ recover_response: z.ZodObject<{
227
+ status: z.ZodNumber;
228
+ request_id: z.ZodNullable<z.ZodString>;
229
+ data: z.ZodObject<{
230
+ tenant_id: z.ZodString;
231
+ scope: z.ZodString;
232
+ handoff_kind: z.ZodString;
233
+ anchor: z.ZodString;
234
+ matched_nodes: z.ZodNumber;
235
+ handoff: z.ZodRecord<z.ZodString, z.ZodUnknown>;
236
+ prompt_safe_handoff: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
237
+ execution_ready_handoff: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
238
+ execution_result_summary: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
239
+ execution_artifacts: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
240
+ execution_evidence: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
241
+ execution_state_v1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
242
+ execution_packet_v1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
243
+ control_profile_v1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
244
+ execution_transitions_v1: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ anchor: string;
247
+ scope: string;
248
+ handoff_kind: string;
249
+ tenant_id: string;
250
+ handoff: Record<string, unknown>;
251
+ matched_nodes: number;
252
+ execution_result_summary?: Record<string, unknown> | null | undefined;
253
+ execution_artifacts?: Record<string, unknown>[] | undefined;
254
+ execution_evidence?: Record<string, unknown>[] | undefined;
255
+ execution_state_v1?: Record<string, unknown> | undefined;
256
+ execution_packet_v1?: Record<string, unknown> | undefined;
257
+ execution_ready_handoff?: Record<string, unknown> | undefined;
258
+ control_profile_v1?: Record<string, unknown> | undefined;
259
+ execution_transitions_v1?: Record<string, unknown>[] | undefined;
260
+ prompt_safe_handoff?: Record<string, unknown> | undefined;
261
+ }, {
262
+ anchor: string;
263
+ scope: string;
264
+ handoff_kind: string;
265
+ tenant_id: string;
266
+ handoff: Record<string, unknown>;
267
+ matched_nodes: number;
268
+ execution_result_summary?: Record<string, unknown> | null | undefined;
269
+ execution_artifacts?: Record<string, unknown>[] | undefined;
270
+ execution_evidence?: Record<string, unknown>[] | undefined;
271
+ execution_state_v1?: Record<string, unknown> | undefined;
272
+ execution_packet_v1?: Record<string, unknown> | undefined;
273
+ execution_ready_handoff?: Record<string, unknown> | undefined;
274
+ control_profile_v1?: Record<string, unknown> | undefined;
275
+ execution_transitions_v1?: Record<string, unknown>[] | undefined;
276
+ prompt_safe_handoff?: Record<string, unknown> | undefined;
277
+ }>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ data: {
280
+ anchor: string;
281
+ scope: string;
282
+ handoff_kind: string;
283
+ tenant_id: string;
284
+ handoff: Record<string, unknown>;
285
+ matched_nodes: number;
286
+ execution_result_summary?: Record<string, unknown> | null | undefined;
287
+ execution_artifacts?: Record<string, unknown>[] | undefined;
288
+ execution_evidence?: Record<string, unknown>[] | undefined;
289
+ execution_state_v1?: Record<string, unknown> | undefined;
290
+ execution_packet_v1?: Record<string, unknown> | undefined;
291
+ execution_ready_handoff?: Record<string, unknown> | undefined;
292
+ control_profile_v1?: Record<string, unknown> | undefined;
293
+ execution_transitions_v1?: Record<string, unknown>[] | undefined;
294
+ prompt_safe_handoff?: Record<string, unknown> | undefined;
295
+ };
296
+ status: number;
297
+ request_id: string | null;
298
+ }, {
299
+ data: {
300
+ anchor: string;
301
+ scope: string;
302
+ handoff_kind: string;
303
+ tenant_id: string;
304
+ handoff: Record<string, unknown>;
305
+ matched_nodes: number;
306
+ execution_result_summary?: Record<string, unknown> | null | undefined;
307
+ execution_artifacts?: Record<string, unknown>[] | undefined;
308
+ execution_evidence?: Record<string, unknown>[] | undefined;
309
+ execution_state_v1?: Record<string, unknown> | undefined;
310
+ execution_packet_v1?: Record<string, unknown> | undefined;
311
+ execution_ready_handoff?: Record<string, unknown> | undefined;
312
+ control_profile_v1?: Record<string, unknown> | undefined;
313
+ execution_transitions_v1?: Record<string, unknown>[] | undefined;
314
+ prompt_safe_handoff?: Record<string, unknown> | undefined;
315
+ };
316
+ status: number;
317
+ request_id: string | null;
318
+ }>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ source_doc_id: string | null;
321
+ source_doc_version: string | null;
322
+ base_url: string;
323
+ input_kind: "source" | "runtime-handoff" | "handoff-store-request" | "publish-result";
324
+ recover_result_version: "aionis_manifest_recover_result_v1";
325
+ recovered_at: string;
326
+ publish_result: {
327
+ source_doc_id: string | null;
328
+ source_doc_version: string | null;
329
+ publish_result_version: "aionis_manifest_publish_result_v1";
330
+ published_at: string;
331
+ base_url: string;
332
+ input_kind: "source" | "runtime-handoff" | "handoff-store-request";
333
+ request: {
334
+ anchor: string;
335
+ handoff_kind: string;
336
+ scope?: string | undefined;
337
+ memory_lane?: "private" | "shared" | undefined;
338
+ };
339
+ response: {
340
+ status: number;
341
+ handoff_kind: string | null;
342
+ request_id: string | null;
343
+ commit_id: string;
344
+ handoff_anchor: string | null;
345
+ scope?: string | undefined;
346
+ tenant_id?: string | undefined;
347
+ commit_uri?: string | undefined;
348
+ };
349
+ handoff_store_request: Record<string, unknown>;
350
+ } | null;
351
+ recover_request: {
352
+ anchor: string;
353
+ symbol?: string | undefined;
354
+ file_path?: string | undefined;
355
+ repo_root?: string | undefined;
356
+ scope?: string | undefined;
357
+ handoff_kind?: "task_handoff" | "patch_handoff" | "review_handoff" | undefined;
358
+ tenant_id?: string | undefined;
359
+ memory_lane?: "private" | "shared" | undefined;
360
+ limit?: number | undefined;
361
+ };
362
+ recover_response: {
363
+ data: {
364
+ anchor: string;
365
+ scope: string;
366
+ handoff_kind: string;
367
+ tenant_id: string;
368
+ handoff: Record<string, unknown>;
369
+ matched_nodes: number;
370
+ execution_result_summary?: Record<string, unknown> | null | undefined;
371
+ execution_artifacts?: Record<string, unknown>[] | undefined;
372
+ execution_evidence?: Record<string, unknown>[] | undefined;
373
+ execution_state_v1?: Record<string, unknown> | undefined;
374
+ execution_packet_v1?: Record<string, unknown> | undefined;
375
+ execution_ready_handoff?: Record<string, unknown> | undefined;
376
+ control_profile_v1?: Record<string, unknown> | undefined;
377
+ execution_transitions_v1?: Record<string, unknown>[] | undefined;
378
+ prompt_safe_handoff?: Record<string, unknown> | undefined;
379
+ };
380
+ status: number;
381
+ request_id: string | null;
382
+ };
383
+ }, {
384
+ source_doc_id: string | null;
385
+ source_doc_version: string | null;
386
+ base_url: string;
387
+ input_kind: "source" | "runtime-handoff" | "handoff-store-request" | "publish-result";
388
+ recover_result_version: "aionis_manifest_recover_result_v1";
389
+ recovered_at: string;
390
+ publish_result: {
391
+ source_doc_id: string | null;
392
+ source_doc_version: string | null;
393
+ publish_result_version: "aionis_manifest_publish_result_v1";
394
+ published_at: string;
395
+ base_url: string;
396
+ input_kind: "source" | "runtime-handoff" | "handoff-store-request";
397
+ request: {
398
+ anchor: string;
399
+ handoff_kind: string;
400
+ scope?: string | undefined;
401
+ memory_lane?: "private" | "shared" | undefined;
402
+ };
403
+ response: {
404
+ status: number;
405
+ handoff_kind: string | null;
406
+ request_id: string | null;
407
+ commit_id: string;
408
+ handoff_anchor: string | null;
409
+ scope?: string | undefined;
410
+ tenant_id?: string | undefined;
411
+ commit_uri?: string | undefined;
412
+ };
413
+ handoff_store_request: Record<string, unknown>;
414
+ } | null;
415
+ recover_request: {
416
+ anchor: string;
417
+ symbol?: string | undefined;
418
+ file_path?: string | undefined;
419
+ repo_root?: string | undefined;
420
+ scope?: string | undefined;
421
+ handoff_kind?: "task_handoff" | "patch_handoff" | "review_handoff" | undefined;
422
+ tenant_id?: string | undefined;
423
+ memory_lane?: "private" | "shared" | undefined;
424
+ limit?: number | undefined;
425
+ };
426
+ recover_response: {
427
+ data: {
428
+ anchor: string;
429
+ scope: string;
430
+ handoff_kind: string;
431
+ tenant_id: string;
432
+ handoff: Record<string, unknown>;
433
+ matched_nodes: number;
434
+ execution_result_summary?: Record<string, unknown> | null | undefined;
435
+ execution_artifacts?: Record<string, unknown>[] | undefined;
436
+ execution_evidence?: Record<string, unknown>[] | undefined;
437
+ execution_state_v1?: Record<string, unknown> | undefined;
438
+ execution_packet_v1?: Record<string, unknown> | undefined;
439
+ execution_ready_handoff?: Record<string, unknown> | undefined;
440
+ control_profile_v1?: Record<string, unknown> | undefined;
441
+ execution_transitions_v1?: Record<string, unknown>[] | undefined;
442
+ prompt_safe_handoff?: Record<string, unknown> | undefined;
443
+ };
444
+ status: number;
445
+ request_id: string | null;
446
+ };
447
+ }>;
448
+ export type AionisManifestRecoverResult = z.infer<typeof RecoverResultSchema>;
449
+ type SharedNetworkOptions = {
450
+ baseUrl: string;
451
+ timeoutMs?: number;
452
+ apiKey?: string;
453
+ authBearer?: string;
454
+ adminToken?: string;
455
+ requestId?: string;
456
+ recoveredAt?: string;
457
+ };
458
+ type RecoverOverrides = {
459
+ tenantId?: string;
460
+ scope?: string;
461
+ memoryLane?: "private" | "shared";
462
+ repoRoot?: string | null;
463
+ filePath?: string | null;
464
+ symbol?: string | null;
465
+ handoffKind?: "patch_handoff" | "review_handoff" | "task_handoff";
466
+ limit?: number;
467
+ };
468
+ type RecoverFromSourceOptions = SharedNetworkOptions & RecoverOverrides & {
469
+ source: string;
470
+ inputPath: string;
471
+ actor?: string;
472
+ title?: string;
473
+ tags?: string[];
474
+ currentStage?: "triage" | "patch" | "review" | "resume";
475
+ activeRole?: "orchestrator" | "triage" | "patch" | "review" | "resume";
476
+ allowCompileErrors?: boolean;
477
+ };
478
+ export declare function recoverPublishedAionisManifest(args: {
479
+ publishResult: unknown;
480
+ inputKind?: RecoverInputKind;
481
+ } & SharedNetworkOptions & RecoverOverrides): Promise<AionisManifestRecoverResult>;
482
+ export declare function recoverAionisManifestSource(args: RecoverFromSourceOptions): Promise<AionisManifestRecoverResult>;
483
+ export declare function recoverRuntimeHandoff(args: {
484
+ runtimeHandoff: unknown;
485
+ } & Omit<RecoverFromSourceOptions, "source" | "inputPath">): Promise<AionisManifestRecoverResult>;
486
+ export declare function recoverHandoffStoreRequest(args: {
487
+ handoffStoreRequest: unknown;
488
+ } & SharedNetworkOptions & RecoverOverrides): Promise<AionisManifestRecoverResult>;
489
+ export {};