@wowok/agent-mcp 2.5.2 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +46 -6
- package/dist/knowledge/guard-design-patterns.js +104 -1
- package/dist/knowledge/guard-ledger.js +3 -3
- package/dist/knowledge/guard-lint.js +3 -3
- package/dist/knowledge/guard-risk.js +23 -15
- package/dist/knowledge/guard-templates.js +174 -2
- package/dist/knowledge/guard-translation.js +3 -3
- package/dist/knowledge/index.d.ts +3 -0
- package/dist/knowledge/index.js +9 -0
- package/dist/knowledge/machine-context.d.ts +1 -1
- package/dist/knowledge/machine-context.js +21 -0
- package/dist/knowledge/machine-ledger.d.ts +1 -0
- package/dist/knowledge/machine-ledger.js +31 -11
- package/dist/knowledge/machine-templates.js +32 -78
- package/dist/knowledge/overrides-loader.d.ts +13 -0
- package/dist/knowledge/overrides-loader.js +67 -0
- package/dist/knowledge/payment-risk.d.ts +4 -0
- package/dist/knowledge/payment-risk.js +67 -0
- package/dist/knowledge/repository-confirm.d.ts +4 -0
- package/dist/knowledge/repository-confirm.js +44 -0
- package/dist/knowledge/repository-risk.d.ts +8 -2
- package/dist/knowledge/repository-risk.js +61 -0
- package/dist/knowledge/repository-translation.js +23 -0
- package/dist/knowledge/scenario-modes.js +22 -5
- package/dist/knowledge/service-templates.js +38 -0
- package/dist/knowledge/treasury-templates.js +42 -0
- package/dist/loop-engineering/context-collect.d.ts +7 -0
- package/dist/loop-engineering/context-collect.js +83 -0
- package/dist/loop-engineering/improve.d.ts +29 -0
- package/dist/loop-engineering/improve.js +178 -0
- package/dist/project/context-assembly.d.ts +16 -0
- package/dist/project/context-assembly.js +130 -0
- package/dist/project/deployment-doc.d.ts +115 -0
- package/dist/project/deployment-doc.js +595 -0
- package/dist/project/index.js +37 -1
- package/dist/project/migration.d.ts +22 -0
- package/dist/project/migration.js +125 -0
- package/dist/project/project-store.d.ts +110 -0
- package/dist/project/project-store.js +425 -0
- package/dist/project/rollback-policy.d.ts +45 -0
- package/dist/project/rollback-policy.js +290 -0
- package/dist/project/stage-gate.d.ts +49 -0
- package/dist/project/stage-gate.js +310 -0
- package/dist/schema/call/allocation.d.ts +5 -0
- package/dist/schema/call/arbitration.d.ts +5 -0
- package/dist/schema/call/base.d.ts +3 -0
- package/dist/schema/call/base.js +1 -0
- package/dist/schema/call/bridge.d.ts +24 -0
- package/dist/schema/call/contact.d.ts +5 -0
- package/dist/schema/call/demand.d.ts +5 -0
- package/dist/schema/call/guard.d.ts +15 -0
- package/dist/schema/call/machine.d.ts +10 -0
- package/dist/schema/call/order.d.ts +5 -0
- package/dist/schema/call/payment.d.ts +5 -0
- package/dist/schema/call/permission.d.ts +5 -0
- package/dist/schema/call/personal.d.ts +5 -0
- package/dist/schema/call/progress.d.ts +5 -0
- package/dist/schema/call/proof.d.ts +10 -0
- package/dist/schema/call/repository.d.ts +5 -0
- package/dist/schema/call/reward.d.ts +5 -0
- package/dist/schema/call/service.d.ts +5 -0
- package/dist/schema/call/treasury.d.ts +5 -0
- package/dist/schema/operations.d.ts +210 -0
- package/dist/schema/operations.js +24 -0
- package/dist/schema/project/index.d.ts +2619 -106
- package/dist/schema/project/index.js +622 -2
- package/dist/schema/query/index.d.ts +601 -0
- package/dist/schema/query/index.js +61 -0
- package/dist/schemas/bridge_operation.schema.json +4 -0
- package/dist/schemas/guard2file.schema.json +4 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +4 -0
- package/dist/schemas/onchain_operations.schema.json +20 -0
- package/dist/schemas/onchain_operations_allocation.schema.json +4 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +4 -0
- package/dist/schemas/onchain_operations_contact.schema.json +4 -0
- package/dist/schemas/onchain_operations_demand.schema.json +4 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
- package/dist/schemas/onchain_operations_guard.schema.json +4 -0
- package/dist/schemas/onchain_operations_machine.schema.json +4 -0
- package/dist/schemas/onchain_operations_order.schema.json +4 -0
- package/dist/schemas/onchain_operations_payment.schema.json +4 -0
- package/dist/schemas/onchain_operations_permission.schema.json +4 -0
- package/dist/schemas/onchain_operations_personal.schema.json +4 -0
- package/dist/schemas/onchain_operations_progress.schema.json +4 -0
- package/dist/schemas/onchain_operations_proof.schema.json +4 -0
- package/dist/schemas/onchain_operations_repository.schema.json +4 -0
- package/dist/schemas/onchain_operations_reward.schema.json +4 -0
- package/dist/schemas/onchain_operations_service.schema.json +4 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +4 -0
- package/dist/schemas/project_operation.output.json +1798 -0
- package/dist/schemas/project_operation.schema.json +132 -2
- package/dist/schemas/query_toolkit.output.json +407 -1
- package/dist/schemas/query_toolkit.schema.json +132 -0
- package/dist/tools/handlers/project.js +742 -1
- package/dist/tools/handlers/query.js +38 -2
- package/package.json +2 -2
|
@@ -2,10 +2,12 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const ProjectObjectTypeEnum: z.ZodEnum<["service", "machine", "guard", "permission", "reward", "arb", "progress", "treasury", "demand", "repository", "contact", "order", "allocation", "personal", "payment", "proof"]>;
|
|
3
3
|
export declare const EdgeKindEnum: z.ZodEnum<["machine", "order_allocators", "arbitrations", "compensation_fund", "rewards", "buy_guard", "permission", "guard", "prev", "next", "forward", "parent", "service", "progress", "arbitration", "sub_order", "references"]>;
|
|
4
4
|
export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
5
|
-
action: z.ZodEnum<["list_projects", "list_objects", "shareable", "dependencies", "referenced_by", "pre_publish_check", "cross_project_refs", "graph_stats", "save_graph", "load_graph", "analyze_intent", "aggregate_risks", "generate_deployment_doc", "trace_substeps", "get_project_status"]>;
|
|
5
|
+
action: z.ZodEnum<["list_projects", "list_objects", "shareable", "dependencies", "referenced_by", "pre_publish_check", "cross_project_refs", "graph_stats", "save_graph", "load_graph", "analyze_intent", "aggregate_risks", "generate_deployment_doc", "trace_substeps", "get_project_status", "load_project", "fork_project", "export_project", "get_project_files", "validate_stage_unit", "get_stage_assessment", "get_stage_risk_policy", "get_doc_relations", "update_deployment_doc", "validate_validation_chain", "apply_improvement", "get_improvement_queue", "get_flywheel_config", "rollback_stage", "get_reversibility", "assemble_context"]>;
|
|
6
6
|
project: z.ZodOptional<z.ZodString>;
|
|
7
7
|
version: z.ZodOptional<z.ZodString>;
|
|
8
8
|
object: z.ZodOptional<z.ZodString>;
|
|
9
|
+
fork_to_version: z.ZodOptional<z.ZodString>;
|
|
10
|
+
fork_to_prefix: z.ZodOptional<z.ZodString>;
|
|
9
11
|
user_intent: z.ZodOptional<z.ZodString>;
|
|
10
12
|
industry: z.ZodOptional<z.ZodEnum<["general", "retail", "service", "rental", "freelance", "education", "travel", "subscription", "custom"]>>;
|
|
11
13
|
target_objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -115,6 +117,22 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
115
117
|
risk_critical_count: z.ZodOptional<z.ZodNumber>;
|
|
116
118
|
risk_high_count: z.ZodOptional<z.ZodNumber>;
|
|
117
119
|
run_scanner: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
gas_budget: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
network: z.ZodEnum<["testnet", "mainnet"]>;
|
|
122
|
+
already_spent_gas: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
estimated_rerun_gas: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
network: "testnet" | "mainnet";
|
|
127
|
+
warning?: string | undefined;
|
|
128
|
+
already_spent_gas?: number | undefined;
|
|
129
|
+
estimated_rerun_gas?: number | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
network: "testnet" | "mainnet";
|
|
132
|
+
warning?: string | undefined;
|
|
133
|
+
already_spent_gas?: number | undefined;
|
|
134
|
+
estimated_rerun_gas?: number | undefined;
|
|
135
|
+
}>>;
|
|
118
136
|
network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
|
|
119
137
|
substeps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
120
138
|
step_id: z.ZodString;
|
|
@@ -245,12 +263,25 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
245
263
|
retry_reason: string;
|
|
246
264
|
} | undefined;
|
|
247
265
|
}>, "many">>;
|
|
266
|
+
target_stage: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
proposal_id: z.ZodOptional<z.ZodString>;
|
|
268
|
+
review_status: z.ZodOptional<z.ZodEnum<["approved", "rejected", "applied"]>>;
|
|
269
|
+
queue_filter_status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected", "applied"]>>;
|
|
270
|
+
queue_filter_type: z.ZodOptional<z.ZodString>;
|
|
271
|
+
queue_filter_priority: z.ZodOptional<z.ZodString>;
|
|
272
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
query_object_type: z.ZodOptional<z.ZodString>;
|
|
274
|
+
query_lifecycle_state: z.ZodOptional<z.ZodEnum<["created", "referenced", "published", "bound"]>>;
|
|
275
|
+
context_objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
276
|
+
include_events: z.ZodOptional<z.ZodBoolean>;
|
|
277
|
+
context_network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
|
|
248
278
|
}, "strict", z.ZodTypeAny, {
|
|
249
|
-
action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps" | "get_project_status";
|
|
279
|
+
action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps" | "get_project_status" | "load_project" | "fork_project" | "export_project" | "get_project_files" | "validate_stage_unit" | "get_stage_assessment" | "get_stage_risk_policy" | "get_doc_relations" | "update_deployment_doc" | "validate_validation_chain" | "apply_improvement" | "get_improvement_queue" | "get_flywheel_config" | "rollback_stage" | "get_reversibility" | "assemble_context";
|
|
250
280
|
object?: string | undefined;
|
|
251
281
|
version?: string | undefined;
|
|
252
282
|
network?: "testnet" | "mainnet" | undefined;
|
|
253
283
|
project?: string | undefined;
|
|
284
|
+
dry_run?: boolean | undefined;
|
|
254
285
|
objects?: {
|
|
255
286
|
name: string;
|
|
256
287
|
object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
|
|
@@ -260,6 +291,23 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
260
291
|
reused_from?: string | undefined;
|
|
261
292
|
}[] | undefined;
|
|
262
293
|
industry?: "custom" | "service" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general" | undefined;
|
|
294
|
+
steps?: {
|
|
295
|
+
object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
|
|
296
|
+
operation: string;
|
|
297
|
+
step: number;
|
|
298
|
+
entry_id: string;
|
|
299
|
+
substep_count: number;
|
|
300
|
+
depends_on: number[];
|
|
301
|
+
network_phase: "testnet" | "mainnet" | "both";
|
|
302
|
+
}[] | undefined;
|
|
303
|
+
gas_budget?: {
|
|
304
|
+
network: "testnet" | "mainnet";
|
|
305
|
+
warning?: string | undefined;
|
|
306
|
+
already_spent_gas?: number | undefined;
|
|
307
|
+
estimated_rerun_gas?: number | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
fork_to_version?: string | undefined;
|
|
310
|
+
fork_to_prefix?: string | undefined;
|
|
263
311
|
user_intent?: string | undefined;
|
|
264
312
|
target_objects?: string[] | undefined;
|
|
265
313
|
puzzles?: Record<string, {
|
|
@@ -278,15 +326,6 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
278
326
|
field_path: string;
|
|
279
327
|
required_at_publish: boolean;
|
|
280
328
|
}[] | undefined;
|
|
281
|
-
steps?: {
|
|
282
|
-
object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
|
|
283
|
-
operation: string;
|
|
284
|
-
step: number;
|
|
285
|
-
entry_id: string;
|
|
286
|
-
substep_count: number;
|
|
287
|
-
depends_on: number[];
|
|
288
|
-
network_phase: "testnet" | "mainnet" | "both";
|
|
289
|
-
}[] | undefined;
|
|
290
329
|
scenarios?: {
|
|
291
330
|
description: string;
|
|
292
331
|
scenario_id: string;
|
|
@@ -329,12 +368,24 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
329
368
|
retry_reason: string;
|
|
330
369
|
} | undefined;
|
|
331
370
|
}[] | undefined;
|
|
371
|
+
target_stage?: number | undefined;
|
|
372
|
+
proposal_id?: string | undefined;
|
|
373
|
+
review_status?: "approved" | "rejected" | "applied" | undefined;
|
|
374
|
+
queue_filter_status?: "pending" | "approved" | "rejected" | "applied" | undefined;
|
|
375
|
+
queue_filter_type?: string | undefined;
|
|
376
|
+
queue_filter_priority?: string | undefined;
|
|
377
|
+
query_object_type?: string | undefined;
|
|
378
|
+
query_lifecycle_state?: "created" | "published" | "referenced" | "bound" | undefined;
|
|
379
|
+
context_objects?: string[] | undefined;
|
|
380
|
+
include_events?: boolean | undefined;
|
|
381
|
+
context_network?: "testnet" | "mainnet" | undefined;
|
|
332
382
|
}, {
|
|
333
|
-
action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps" | "get_project_status";
|
|
383
|
+
action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps" | "get_project_status" | "load_project" | "fork_project" | "export_project" | "get_project_files" | "validate_stage_unit" | "get_stage_assessment" | "get_stage_risk_policy" | "get_doc_relations" | "update_deployment_doc" | "validate_validation_chain" | "apply_improvement" | "get_improvement_queue" | "get_flywheel_config" | "rollback_stage" | "get_reversibility" | "assemble_context";
|
|
334
384
|
object?: string | undefined;
|
|
335
385
|
version?: string | undefined;
|
|
336
386
|
network?: "testnet" | "mainnet" | undefined;
|
|
337
387
|
project?: string | undefined;
|
|
388
|
+
dry_run?: boolean | undefined;
|
|
338
389
|
objects?: {
|
|
339
390
|
name: string;
|
|
340
391
|
object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
|
|
@@ -344,6 +395,23 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
344
395
|
reused_from?: string | undefined;
|
|
345
396
|
}[] | undefined;
|
|
346
397
|
industry?: "custom" | "service" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general" | undefined;
|
|
398
|
+
steps?: {
|
|
399
|
+
object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
|
|
400
|
+
operation: string;
|
|
401
|
+
step: number;
|
|
402
|
+
entry_id: string;
|
|
403
|
+
substep_count: number;
|
|
404
|
+
depends_on: number[];
|
|
405
|
+
network_phase: "testnet" | "mainnet" | "both";
|
|
406
|
+
}[] | undefined;
|
|
407
|
+
gas_budget?: {
|
|
408
|
+
network: "testnet" | "mainnet";
|
|
409
|
+
warning?: string | undefined;
|
|
410
|
+
already_spent_gas?: number | undefined;
|
|
411
|
+
estimated_rerun_gas?: number | undefined;
|
|
412
|
+
} | undefined;
|
|
413
|
+
fork_to_version?: string | undefined;
|
|
414
|
+
fork_to_prefix?: string | undefined;
|
|
347
415
|
user_intent?: string | undefined;
|
|
348
416
|
target_objects?: string[] | undefined;
|
|
349
417
|
puzzles?: Record<string, {
|
|
@@ -362,15 +430,6 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
362
430
|
field_path: string;
|
|
363
431
|
required_at_publish: boolean;
|
|
364
432
|
}[] | undefined;
|
|
365
|
-
steps?: {
|
|
366
|
-
object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
|
|
367
|
-
operation: string;
|
|
368
|
-
step: number;
|
|
369
|
-
entry_id: string;
|
|
370
|
-
substep_count: number;
|
|
371
|
-
depends_on: number[];
|
|
372
|
-
network_phase: "testnet" | "mainnet" | "both";
|
|
373
|
-
}[] | undefined;
|
|
374
433
|
scenarios?: {
|
|
375
434
|
description: string;
|
|
376
435
|
scenario_id: string;
|
|
@@ -413,6 +472,17 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
413
472
|
retry_reason: string;
|
|
414
473
|
} | undefined;
|
|
415
474
|
}[] | undefined;
|
|
475
|
+
target_stage?: number | undefined;
|
|
476
|
+
proposal_id?: string | undefined;
|
|
477
|
+
review_status?: "approved" | "rejected" | "applied" | undefined;
|
|
478
|
+
queue_filter_status?: "pending" | "approved" | "rejected" | "applied" | undefined;
|
|
479
|
+
queue_filter_type?: string | undefined;
|
|
480
|
+
queue_filter_priority?: string | undefined;
|
|
481
|
+
query_object_type?: string | undefined;
|
|
482
|
+
query_lifecycle_state?: "created" | "published" | "referenced" | "bound" | undefined;
|
|
483
|
+
context_objects?: string[] | undefined;
|
|
484
|
+
include_events?: boolean | undefined;
|
|
485
|
+
context_network?: "testnet" | "mainnet" | undefined;
|
|
416
486
|
}>;
|
|
417
487
|
export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
418
488
|
result: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
@@ -592,6 +662,48 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
592
662
|
recommended_creation_order: z.ZodArray<z.ZodString, "many">;
|
|
593
663
|
next_action: z.ZodEnum<["aggregate_risks", "none"]>;
|
|
594
664
|
warnings: z.ZodArray<z.ZodString, "many">;
|
|
665
|
+
gate_validation: z.ZodOptional<z.ZodObject<{
|
|
666
|
+
stage: z.ZodNumber;
|
|
667
|
+
passed: z.ZodBoolean;
|
|
668
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
669
|
+
dimension: z.ZodEnum<["semantic", "tools", "reversibility", "risk", "isolation", "gas_budget"]>;
|
|
670
|
+
status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
|
|
671
|
+
message: z.ZodString;
|
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
|
673
|
+
message: string;
|
|
674
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
675
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
676
|
+
}, {
|
|
677
|
+
message: string;
|
|
678
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
679
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
680
|
+
}>, "many">;
|
|
681
|
+
blocking_issues: z.ZodArray<z.ZodString, "many">;
|
|
682
|
+
warnings: z.ZodArray<z.ZodString, "many">;
|
|
683
|
+
can_proceed: z.ZodBoolean;
|
|
684
|
+
}, "strip", z.ZodTypeAny, {
|
|
685
|
+
warnings: string[];
|
|
686
|
+
stage: number;
|
|
687
|
+
passed: boolean;
|
|
688
|
+
checks: {
|
|
689
|
+
message: string;
|
|
690
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
691
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
692
|
+
}[];
|
|
693
|
+
blocking_issues: string[];
|
|
694
|
+
can_proceed: boolean;
|
|
695
|
+
}, {
|
|
696
|
+
warnings: string[];
|
|
697
|
+
stage: number;
|
|
698
|
+
passed: boolean;
|
|
699
|
+
checks: {
|
|
700
|
+
message: string;
|
|
701
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
702
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
703
|
+
}[];
|
|
704
|
+
blocking_issues: string[];
|
|
705
|
+
can_proceed: boolean;
|
|
706
|
+
}>>;
|
|
595
707
|
}, "strict", z.ZodTypeAny, {
|
|
596
708
|
action: "analyze_intent";
|
|
597
709
|
warnings: string[];
|
|
@@ -620,6 +732,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
620
732
|
next_step: string;
|
|
621
733
|
recommended_creation_order: string[];
|
|
622
734
|
next_action: "none" | "aggregate_risks";
|
|
735
|
+
gate_validation?: {
|
|
736
|
+
warnings: string[];
|
|
737
|
+
stage: number;
|
|
738
|
+
passed: boolean;
|
|
739
|
+
checks: {
|
|
740
|
+
message: string;
|
|
741
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
742
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
743
|
+
}[];
|
|
744
|
+
blocking_issues: string[];
|
|
745
|
+
can_proceed: boolean;
|
|
746
|
+
} | undefined;
|
|
623
747
|
}, {
|
|
624
748
|
action: "analyze_intent";
|
|
625
749
|
warnings: string[];
|
|
@@ -648,6 +772,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
648
772
|
next_step: string;
|
|
649
773
|
recommended_creation_order: string[];
|
|
650
774
|
next_action: "none" | "aggregate_risks";
|
|
775
|
+
gate_validation?: {
|
|
776
|
+
warnings: string[];
|
|
777
|
+
stage: number;
|
|
778
|
+
passed: boolean;
|
|
779
|
+
checks: {
|
|
780
|
+
message: string;
|
|
781
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
782
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
783
|
+
}[];
|
|
784
|
+
blocking_issues: string[];
|
|
785
|
+
can_proceed: boolean;
|
|
786
|
+
} | undefined;
|
|
651
787
|
}>, z.ZodObject<{
|
|
652
788
|
action: z.ZodLiteral<"aggregate_risks">;
|
|
653
789
|
namespace: z.ZodObject<{
|
|
@@ -766,11 +902,54 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
766
902
|
can_proceed: z.ZodBoolean;
|
|
767
903
|
next_action: z.ZodEnum<["generate_deployment_doc", "fix_risks", "none"]>;
|
|
768
904
|
user_action_required: z.ZodString;
|
|
905
|
+
gate_validation: z.ZodOptional<z.ZodObject<{
|
|
906
|
+
stage: z.ZodNumber;
|
|
907
|
+
passed: z.ZodBoolean;
|
|
908
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
909
|
+
dimension: z.ZodEnum<["semantic", "tools", "reversibility", "risk", "isolation", "gas_budget"]>;
|
|
910
|
+
status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
|
|
911
|
+
message: z.ZodString;
|
|
912
|
+
}, "strip", z.ZodTypeAny, {
|
|
913
|
+
message: string;
|
|
914
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
915
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
916
|
+
}, {
|
|
917
|
+
message: string;
|
|
918
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
919
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
920
|
+
}>, "many">;
|
|
921
|
+
blocking_issues: z.ZodArray<z.ZodString, "many">;
|
|
922
|
+
warnings: z.ZodArray<z.ZodString, "many">;
|
|
923
|
+
can_proceed: z.ZodBoolean;
|
|
924
|
+
}, "strip", z.ZodTypeAny, {
|
|
925
|
+
warnings: string[];
|
|
926
|
+
stage: number;
|
|
927
|
+
passed: boolean;
|
|
928
|
+
checks: {
|
|
929
|
+
message: string;
|
|
930
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
931
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
932
|
+
}[];
|
|
933
|
+
blocking_issues: string[];
|
|
934
|
+
can_proceed: boolean;
|
|
935
|
+
}, {
|
|
936
|
+
warnings: string[];
|
|
937
|
+
stage: number;
|
|
938
|
+
passed: boolean;
|
|
939
|
+
checks: {
|
|
940
|
+
message: string;
|
|
941
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
942
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
943
|
+
}[];
|
|
944
|
+
blocking_issues: string[];
|
|
945
|
+
can_proceed: boolean;
|
|
946
|
+
}>>;
|
|
769
947
|
}, "strict", z.ZodTypeAny, {
|
|
770
948
|
status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
|
|
771
949
|
action: "aggregate_risks";
|
|
772
950
|
warnings: string[];
|
|
773
951
|
user_action_required: string;
|
|
952
|
+
can_proceed: boolean;
|
|
774
953
|
next_action: "none" | "generate_deployment_doc" | "fix_risks";
|
|
775
954
|
namespace: {
|
|
776
955
|
version: string;
|
|
@@ -797,7 +976,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
797
976
|
INFO: number;
|
|
798
977
|
};
|
|
799
978
|
calibrated_at: number;
|
|
800
|
-
|
|
979
|
+
gate_validation?: {
|
|
980
|
+
warnings: string[];
|
|
981
|
+
stage: number;
|
|
982
|
+
passed: boolean;
|
|
983
|
+
checks: {
|
|
984
|
+
message: string;
|
|
985
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
986
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
987
|
+
}[];
|
|
988
|
+
blocking_issues: string[];
|
|
989
|
+
can_proceed: boolean;
|
|
990
|
+
} | undefined;
|
|
801
991
|
pending_confirmations?: {
|
|
802
992
|
object_type: string;
|
|
803
993
|
description: string;
|
|
@@ -817,6 +1007,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
817
1007
|
action: "aggregate_risks";
|
|
818
1008
|
warnings: string[];
|
|
819
1009
|
user_action_required: string;
|
|
1010
|
+
can_proceed: boolean;
|
|
820
1011
|
next_action: "none" | "generate_deployment_doc" | "fix_risks";
|
|
821
1012
|
namespace: {
|
|
822
1013
|
version: string;
|
|
@@ -843,7 +1034,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
843
1034
|
INFO: number;
|
|
844
1035
|
};
|
|
845
1036
|
calibrated_at: number;
|
|
846
|
-
|
|
1037
|
+
gate_validation?: {
|
|
1038
|
+
warnings: string[];
|
|
1039
|
+
stage: number;
|
|
1040
|
+
passed: boolean;
|
|
1041
|
+
checks: {
|
|
1042
|
+
message: string;
|
|
1043
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1044
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1045
|
+
}[];
|
|
1046
|
+
blocking_issues: string[];
|
|
1047
|
+
can_proceed: boolean;
|
|
1048
|
+
} | undefined;
|
|
847
1049
|
pending_confirmations?: {
|
|
848
1050
|
object_type: string;
|
|
849
1051
|
description: string;
|
|
@@ -956,9 +1158,61 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
956
1158
|
}[];
|
|
957
1159
|
publish_gas_mist: number;
|
|
958
1160
|
}>>;
|
|
1161
|
+
persisted: z.ZodOptional<z.ZodObject<{
|
|
1162
|
+
all_files: z.ZodArray<z.ZodString, "many">;
|
|
1163
|
+
all_stages_passed: z.ZodBoolean;
|
|
1164
|
+
}, "strip", z.ZodTypeAny, {
|
|
1165
|
+
all_files: string[];
|
|
1166
|
+
all_stages_passed: boolean;
|
|
1167
|
+
}, {
|
|
1168
|
+
all_files: string[];
|
|
1169
|
+
all_stages_passed: boolean;
|
|
1170
|
+
}>>;
|
|
959
1171
|
can_proceed: z.ZodBoolean;
|
|
960
1172
|
next_action: z.ZodEnum<["trace_substeps", "fix_doc_errors", "none"]>;
|
|
961
1173
|
user_action_required: z.ZodString;
|
|
1174
|
+
gate_validation: z.ZodOptional<z.ZodObject<{
|
|
1175
|
+
stage: z.ZodNumber;
|
|
1176
|
+
passed: z.ZodBoolean;
|
|
1177
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1178
|
+
dimension: z.ZodEnum<["semantic", "tools", "reversibility", "risk", "isolation", "gas_budget"]>;
|
|
1179
|
+
status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
|
|
1180
|
+
message: z.ZodString;
|
|
1181
|
+
}, "strip", z.ZodTypeAny, {
|
|
1182
|
+
message: string;
|
|
1183
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1184
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1185
|
+
}, {
|
|
1186
|
+
message: string;
|
|
1187
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1188
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1189
|
+
}>, "many">;
|
|
1190
|
+
blocking_issues: z.ZodArray<z.ZodString, "many">;
|
|
1191
|
+
warnings: z.ZodArray<z.ZodString, "many">;
|
|
1192
|
+
can_proceed: z.ZodBoolean;
|
|
1193
|
+
}, "strip", z.ZodTypeAny, {
|
|
1194
|
+
warnings: string[];
|
|
1195
|
+
stage: number;
|
|
1196
|
+
passed: boolean;
|
|
1197
|
+
checks: {
|
|
1198
|
+
message: string;
|
|
1199
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1200
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1201
|
+
}[];
|
|
1202
|
+
blocking_issues: string[];
|
|
1203
|
+
can_proceed: boolean;
|
|
1204
|
+
}, {
|
|
1205
|
+
warnings: string[];
|
|
1206
|
+
stage: number;
|
|
1207
|
+
passed: boolean;
|
|
1208
|
+
checks: {
|
|
1209
|
+
message: string;
|
|
1210
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1211
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1212
|
+
}[];
|
|
1213
|
+
blocking_issues: string[];
|
|
1214
|
+
can_proceed: boolean;
|
|
1215
|
+
}>>;
|
|
962
1216
|
}, "strict", z.ZodTypeAny, {
|
|
963
1217
|
markdown: string;
|
|
964
1218
|
meta: {
|
|
@@ -970,8 +1224,8 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
970
1224
|
};
|
|
971
1225
|
action: "generate_deployment_doc";
|
|
972
1226
|
user_action_required: string;
|
|
973
|
-
next_action: "none" | "trace_substeps" | "fix_doc_errors";
|
|
974
1227
|
can_proceed: boolean;
|
|
1228
|
+
next_action: "none" | "trace_substeps" | "fix_doc_errors";
|
|
975
1229
|
validation?: {
|
|
976
1230
|
valid: boolean;
|
|
977
1231
|
errors: string[];
|
|
@@ -982,6 +1236,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
982
1236
|
notes?: string | undefined;
|
|
983
1237
|
}[];
|
|
984
1238
|
} | undefined;
|
|
1239
|
+
gate_validation?: {
|
|
1240
|
+
warnings: string[];
|
|
1241
|
+
stage: number;
|
|
1242
|
+
passed: boolean;
|
|
1243
|
+
checks: {
|
|
1244
|
+
message: string;
|
|
1245
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1246
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1247
|
+
}[];
|
|
1248
|
+
blocking_issues: string[];
|
|
1249
|
+
can_proceed: boolean;
|
|
1250
|
+
} | undefined;
|
|
985
1251
|
estimated_gas?: {
|
|
986
1252
|
total_gas_mist: number;
|
|
987
1253
|
per_object: {
|
|
@@ -992,6 +1258,10 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
992
1258
|
}[];
|
|
993
1259
|
publish_gas_mist: number;
|
|
994
1260
|
} | undefined;
|
|
1261
|
+
persisted?: {
|
|
1262
|
+
all_files: string[];
|
|
1263
|
+
all_stages_passed: boolean;
|
|
1264
|
+
} | undefined;
|
|
995
1265
|
}, {
|
|
996
1266
|
markdown: string;
|
|
997
1267
|
meta: {
|
|
@@ -1003,8 +1273,8 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1003
1273
|
};
|
|
1004
1274
|
action: "generate_deployment_doc";
|
|
1005
1275
|
user_action_required: string;
|
|
1006
|
-
next_action: "none" | "trace_substeps" | "fix_doc_errors";
|
|
1007
1276
|
can_proceed: boolean;
|
|
1277
|
+
next_action: "none" | "trace_substeps" | "fix_doc_errors";
|
|
1008
1278
|
validation?: {
|
|
1009
1279
|
valid: boolean;
|
|
1010
1280
|
errors: string[];
|
|
@@ -1015,6 +1285,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1015
1285
|
notes?: string | undefined;
|
|
1016
1286
|
}[];
|
|
1017
1287
|
} | undefined;
|
|
1288
|
+
gate_validation?: {
|
|
1289
|
+
warnings: string[];
|
|
1290
|
+
stage: number;
|
|
1291
|
+
passed: boolean;
|
|
1292
|
+
checks: {
|
|
1293
|
+
message: string;
|
|
1294
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1295
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1296
|
+
}[];
|
|
1297
|
+
blocking_issues: string[];
|
|
1298
|
+
can_proceed: boolean;
|
|
1299
|
+
} | undefined;
|
|
1018
1300
|
estimated_gas?: {
|
|
1019
1301
|
total_gas_mist: number;
|
|
1020
1302
|
per_object: {
|
|
@@ -1025,6 +1307,10 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1025
1307
|
}[];
|
|
1026
1308
|
publish_gas_mist: number;
|
|
1027
1309
|
} | undefined;
|
|
1310
|
+
persisted?: {
|
|
1311
|
+
all_files: string[];
|
|
1312
|
+
all_stages_passed: boolean;
|
|
1313
|
+
} | undefined;
|
|
1028
1314
|
}>, z.ZodObject<{
|
|
1029
1315
|
action: z.ZodLiteral<"trace_substeps">;
|
|
1030
1316
|
namespace: z.ZodObject<{
|
|
@@ -1127,17 +1413,59 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1127
1413
|
can_proceed: z.ZodBoolean;
|
|
1128
1414
|
next_action: z.ZodEnum<["deploy", "fix_substeps", "none"]>;
|
|
1129
1415
|
user_action_required: z.ZodString;
|
|
1416
|
+
gate_validation: z.ZodOptional<z.ZodObject<{
|
|
1417
|
+
stage: z.ZodNumber;
|
|
1418
|
+
passed: z.ZodBoolean;
|
|
1419
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1420
|
+
dimension: z.ZodEnum<["semantic", "tools", "reversibility", "risk", "isolation", "gas_budget"]>;
|
|
1421
|
+
status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
|
|
1422
|
+
message: z.ZodString;
|
|
1423
|
+
}, "strip", z.ZodTypeAny, {
|
|
1424
|
+
message: string;
|
|
1425
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1426
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1427
|
+
}, {
|
|
1428
|
+
message: string;
|
|
1429
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1430
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1431
|
+
}>, "many">;
|
|
1432
|
+
blocking_issues: z.ZodArray<z.ZodString, "many">;
|
|
1433
|
+
warnings: z.ZodArray<z.ZodString, "many">;
|
|
1434
|
+
can_proceed: z.ZodBoolean;
|
|
1435
|
+
}, "strip", z.ZodTypeAny, {
|
|
1436
|
+
warnings: string[];
|
|
1437
|
+
stage: number;
|
|
1438
|
+
passed: boolean;
|
|
1439
|
+
checks: {
|
|
1440
|
+
message: string;
|
|
1441
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1442
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1443
|
+
}[];
|
|
1444
|
+
blocking_issues: string[];
|
|
1445
|
+
can_proceed: boolean;
|
|
1446
|
+
}, {
|
|
1447
|
+
warnings: string[];
|
|
1448
|
+
stage: number;
|
|
1449
|
+
passed: boolean;
|
|
1450
|
+
checks: {
|
|
1451
|
+
message: string;
|
|
1452
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1453
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1454
|
+
}[];
|
|
1455
|
+
blocking_issues: string[];
|
|
1456
|
+
can_proceed: boolean;
|
|
1457
|
+
}>>;
|
|
1130
1458
|
}, "strict", z.ZodTypeAny, {
|
|
1131
1459
|
network: "testnet" | "mainnet";
|
|
1132
1460
|
action: "trace_substeps";
|
|
1133
1461
|
user_action_required: string;
|
|
1134
1462
|
topological_order: string[];
|
|
1463
|
+
can_proceed: boolean;
|
|
1135
1464
|
next_action: "none" | "deploy" | "fix_substeps";
|
|
1136
1465
|
namespace: {
|
|
1137
1466
|
version: string;
|
|
1138
1467
|
prefix: string;
|
|
1139
1468
|
};
|
|
1140
|
-
can_proceed: boolean;
|
|
1141
1469
|
coherent: boolean;
|
|
1142
1470
|
dangling_inputs: {
|
|
1143
1471
|
field_path: string;
|
|
@@ -1171,17 +1499,29 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1171
1499
|
description: string;
|
|
1172
1500
|
check_id: "D-10";
|
|
1173
1501
|
};
|
|
1502
|
+
gate_validation?: {
|
|
1503
|
+
warnings: string[];
|
|
1504
|
+
stage: number;
|
|
1505
|
+
passed: boolean;
|
|
1506
|
+
checks: {
|
|
1507
|
+
message: string;
|
|
1508
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1509
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1510
|
+
}[];
|
|
1511
|
+
blocking_issues: string[];
|
|
1512
|
+
can_proceed: boolean;
|
|
1513
|
+
} | undefined;
|
|
1174
1514
|
}, {
|
|
1175
1515
|
network: "testnet" | "mainnet";
|
|
1176
1516
|
action: "trace_substeps";
|
|
1177
1517
|
user_action_required: string;
|
|
1178
1518
|
topological_order: string[];
|
|
1519
|
+
can_proceed: boolean;
|
|
1179
1520
|
next_action: "none" | "deploy" | "fix_substeps";
|
|
1180
1521
|
namespace: {
|
|
1181
1522
|
version: string;
|
|
1182
1523
|
prefix: string;
|
|
1183
1524
|
};
|
|
1184
|
-
can_proceed: boolean;
|
|
1185
1525
|
coherent: boolean;
|
|
1186
1526
|
dangling_inputs: {
|
|
1187
1527
|
field_path: string;
|
|
@@ -1215,6 +1555,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1215
1555
|
description: string;
|
|
1216
1556
|
check_id: "D-10";
|
|
1217
1557
|
};
|
|
1558
|
+
gate_validation?: {
|
|
1559
|
+
warnings: string[];
|
|
1560
|
+
stage: number;
|
|
1561
|
+
passed: boolean;
|
|
1562
|
+
checks: {
|
|
1563
|
+
message: string;
|
|
1564
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1565
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
1566
|
+
}[];
|
|
1567
|
+
blocking_issues: string[];
|
|
1568
|
+
can_proceed: boolean;
|
|
1569
|
+
} | undefined;
|
|
1218
1570
|
}>, z.ZodObject<{
|
|
1219
1571
|
action: z.ZodLiteral<"get_project_status">;
|
|
1220
1572
|
project: z.ZodString;
|
|
@@ -1234,8 +1586,8 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1234
1586
|
action: "get_project_status";
|
|
1235
1587
|
stage: number;
|
|
1236
1588
|
project: string;
|
|
1237
|
-
next_action: string;
|
|
1238
1589
|
can_proceed: boolean;
|
|
1590
|
+
next_action: string;
|
|
1239
1591
|
stage_name: string;
|
|
1240
1592
|
stage_description: string;
|
|
1241
1593
|
risk_status?: string | undefined;
|
|
@@ -1248,8 +1600,8 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1248
1600
|
action: "get_project_status";
|
|
1249
1601
|
stage: number;
|
|
1250
1602
|
project: string;
|
|
1251
|
-
next_action: string;
|
|
1252
1603
|
can_proceed: boolean;
|
|
1604
|
+
next_action: string;
|
|
1253
1605
|
stage_name: string;
|
|
1254
1606
|
stage_description: string;
|
|
1255
1607
|
risk_status?: string | undefined;
|
|
@@ -1257,80 +1609,1523 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1257
1609
|
risk_can_proceed?: boolean | undefined;
|
|
1258
1610
|
doc_generated?: boolean | undefined;
|
|
1259
1611
|
trace_coherent?: boolean | undefined;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
secondary_objects: string[];
|
|
1274
|
-
detected_scenes: {
|
|
1275
|
-
object: string;
|
|
1276
|
-
scene_id: string;
|
|
1277
|
-
}[];
|
|
1278
|
-
keyword_matches: {
|
|
1279
|
-
category: string;
|
|
1280
|
-
keyword: string;
|
|
1281
|
-
matched_objects: string[];
|
|
1282
|
-
required_level: "C" | "R" | "OPTIONAL";
|
|
1283
|
-
match_count: number;
|
|
1284
|
-
}[];
|
|
1285
|
-
};
|
|
1286
|
-
overall_completeness: "partial" | "complete" | "empty";
|
|
1287
|
-
next_step: string;
|
|
1288
|
-
recommended_creation_order: string[];
|
|
1289
|
-
next_action: "none" | "aggregate_risks";
|
|
1290
|
-
} | {
|
|
1291
|
-
status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
|
|
1292
|
-
action: "aggregate_risks";
|
|
1293
|
-
warnings: string[];
|
|
1294
|
-
user_action_required: string;
|
|
1295
|
-
next_action: "none" | "generate_deployment_doc" | "fix_risks";
|
|
1296
|
-
namespace: {
|
|
1612
|
+
}>, z.ZodObject<{
|
|
1613
|
+
action: z.ZodLiteral<"load_project">;
|
|
1614
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1615
|
+
prefix: z.ZodString;
|
|
1616
|
+
version: z.ZodString;
|
|
1617
|
+
dir_name: z.ZodString;
|
|
1618
|
+
initialized: z.ZodBoolean;
|
|
1619
|
+
archived: z.ZodBoolean;
|
|
1620
|
+
needs_migration: z.ZodBoolean;
|
|
1621
|
+
forked_from: z.ZodOptional<z.ZodString>;
|
|
1622
|
+
chain_exists: z.ZodBoolean;
|
|
1623
|
+
sync_status: z.ZodEnum<["synced", "local_only", "archived", "uninitialized"]>;
|
|
1624
|
+
}, "strip", z.ZodTypeAny, {
|
|
1297
1625
|
version: string;
|
|
1298
1626
|
prefix: string;
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1627
|
+
dir_name: string;
|
|
1628
|
+
initialized: boolean;
|
|
1629
|
+
archived: boolean;
|
|
1630
|
+
needs_migration: boolean;
|
|
1631
|
+
chain_exists: boolean;
|
|
1632
|
+
sync_status: "archived" | "synced" | "local_only" | "uninitialized";
|
|
1633
|
+
forked_from?: string | undefined;
|
|
1634
|
+
}, {
|
|
1635
|
+
version: string;
|
|
1636
|
+
prefix: string;
|
|
1637
|
+
dir_name: string;
|
|
1638
|
+
initialized: boolean;
|
|
1639
|
+
archived: boolean;
|
|
1640
|
+
needs_migration: boolean;
|
|
1641
|
+
chain_exists: boolean;
|
|
1642
|
+
sync_status: "archived" | "synced" | "local_only" | "uninitialized";
|
|
1643
|
+
forked_from?: string | undefined;
|
|
1644
|
+
}>, "many">>;
|
|
1645
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
1646
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1647
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
local_exists: z.ZodOptional<z.ZodBoolean>;
|
|
1649
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
1650
|
+
schema_version: z.ZodString;
|
|
1651
|
+
mcp_version: z.ZodString;
|
|
1652
|
+
prefix: z.ZodString;
|
|
1653
|
+
version: z.ZodString;
|
|
1654
|
+
created_at: z.ZodString;
|
|
1655
|
+
updated_at: z.ZodString;
|
|
1656
|
+
forked_from: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
needs_recalibration: z.ZodOptional<z.ZodBoolean>;
|
|
1658
|
+
}, "strip", z.ZodTypeAny, {
|
|
1659
|
+
version: string;
|
|
1660
|
+
prefix: string;
|
|
1661
|
+
schema_version: string;
|
|
1662
|
+
mcp_version: string;
|
|
1663
|
+
created_at: string;
|
|
1664
|
+
updated_at: string;
|
|
1665
|
+
forked_from?: string | undefined;
|
|
1666
|
+
needs_recalibration?: boolean | undefined;
|
|
1667
|
+
}, {
|
|
1668
|
+
version: string;
|
|
1669
|
+
prefix: string;
|
|
1670
|
+
schema_version: string;
|
|
1671
|
+
mcp_version: string;
|
|
1672
|
+
created_at: string;
|
|
1673
|
+
updated_at: string;
|
|
1674
|
+
forked_from?: string | undefined;
|
|
1675
|
+
needs_recalibration?: boolean | undefined;
|
|
1676
|
+
}>>;
|
|
1677
|
+
stage_state: z.ZodOptional<z.ZodObject<{
|
|
1678
|
+
stage: z.ZodOptional<z.ZodNumber>;
|
|
1679
|
+
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
1680
|
+
has_published_object: z.ZodOptional<z.ZodBoolean>;
|
|
1681
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1682
|
+
}, "strip", z.ZodTypeAny, {
|
|
1683
|
+
stage?: number | undefined;
|
|
1684
|
+
archived?: boolean | undefined;
|
|
1685
|
+
updated_at?: number | undefined;
|
|
1686
|
+
has_published_object?: boolean | undefined;
|
|
1687
|
+
}, {
|
|
1688
|
+
stage?: number | undefined;
|
|
1689
|
+
archived?: boolean | undefined;
|
|
1690
|
+
updated_at?: number | undefined;
|
|
1691
|
+
has_published_object?: boolean | undefined;
|
|
1692
|
+
}>>;
|
|
1693
|
+
sync_status: z.ZodOptional<z.ZodObject<{
|
|
1694
|
+
local_exists: z.ZodBoolean;
|
|
1695
|
+
initialized: z.ZodBoolean;
|
|
1696
|
+
needs_migration: z.ZodBoolean;
|
|
1697
|
+
archived: z.ZodBoolean;
|
|
1698
|
+
}, "strip", z.ZodTypeAny, {
|
|
1699
|
+
initialized: boolean;
|
|
1700
|
+
archived: boolean;
|
|
1701
|
+
needs_migration: boolean;
|
|
1702
|
+
local_exists: boolean;
|
|
1703
|
+
}, {
|
|
1704
|
+
initialized: boolean;
|
|
1705
|
+
archived: boolean;
|
|
1706
|
+
needs_migration: boolean;
|
|
1707
|
+
local_exists: boolean;
|
|
1708
|
+
}>>;
|
|
1709
|
+
migration: z.ZodOptional<z.ZodObject<{
|
|
1710
|
+
migrated: z.ZodBoolean;
|
|
1711
|
+
from_version: z.ZodString;
|
|
1712
|
+
to_version: z.ZodString;
|
|
1713
|
+
steps_executed: z.ZodArray<z.ZodString, "many">;
|
|
1714
|
+
backup_path: z.ZodOptional<z.ZodString>;
|
|
1715
|
+
needs_recalibration: z.ZodBoolean;
|
|
1716
|
+
message: z.ZodString;
|
|
1717
|
+
}, "strip", z.ZodTypeAny, {
|
|
1302
1718
|
message: string;
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
rule_source?: string | undefined;
|
|
1311
|
-
} | undefined;
|
|
1312
|
-
}[];
|
|
1313
|
-
severity_summary: {
|
|
1314
|
-
CRITICAL: number;
|
|
1315
|
-
HIGH: number;
|
|
1316
|
-
MEDIUM: number;
|
|
1317
|
-
LOW: number;
|
|
1318
|
-
INFO: number;
|
|
1319
|
-
};
|
|
1320
|
-
calibrated_at: number;
|
|
1321
|
-
can_proceed: boolean;
|
|
1322
|
-
pending_confirmations?: {
|
|
1323
|
-
object_type: string;
|
|
1324
|
-
description: string;
|
|
1325
|
-
entry_id: string;
|
|
1326
|
-
risk_rule_id: string;
|
|
1327
|
-
fix_suggestion: string;
|
|
1328
|
-
}[] | undefined;
|
|
1329
|
-
fix_suggestions_grouped?: Record<string, {
|
|
1719
|
+
needs_recalibration: boolean;
|
|
1720
|
+
migrated: boolean;
|
|
1721
|
+
from_version: string;
|
|
1722
|
+
to_version: string;
|
|
1723
|
+
steps_executed: string[];
|
|
1724
|
+
backup_path?: string | undefined;
|
|
1725
|
+
}, {
|
|
1330
1726
|
message: string;
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1727
|
+
needs_recalibration: boolean;
|
|
1728
|
+
migrated: boolean;
|
|
1729
|
+
from_version: string;
|
|
1730
|
+
to_version: string;
|
|
1731
|
+
steps_executed: string[];
|
|
1732
|
+
backup_path?: string | undefined;
|
|
1733
|
+
}>>;
|
|
1734
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1735
|
+
}, "strict", z.ZodTypeAny, {
|
|
1736
|
+
action: "load_project";
|
|
1737
|
+
message?: string | undefined;
|
|
1738
|
+
version?: string | undefined;
|
|
1739
|
+
project?: string | undefined;
|
|
1740
|
+
items?: {
|
|
1741
|
+
version: string;
|
|
1742
|
+
prefix: string;
|
|
1743
|
+
dir_name: string;
|
|
1744
|
+
initialized: boolean;
|
|
1745
|
+
archived: boolean;
|
|
1746
|
+
needs_migration: boolean;
|
|
1747
|
+
chain_exists: boolean;
|
|
1748
|
+
sync_status: "archived" | "synced" | "local_only" | "uninitialized";
|
|
1749
|
+
forked_from?: string | undefined;
|
|
1750
|
+
}[] | undefined;
|
|
1751
|
+
total?: number | undefined;
|
|
1752
|
+
sync_status?: {
|
|
1753
|
+
initialized: boolean;
|
|
1754
|
+
archived: boolean;
|
|
1755
|
+
needs_migration: boolean;
|
|
1756
|
+
local_exists: boolean;
|
|
1757
|
+
} | undefined;
|
|
1758
|
+
local_exists?: boolean | undefined;
|
|
1759
|
+
manifest?: {
|
|
1760
|
+
version: string;
|
|
1761
|
+
prefix: string;
|
|
1762
|
+
schema_version: string;
|
|
1763
|
+
mcp_version: string;
|
|
1764
|
+
created_at: string;
|
|
1765
|
+
updated_at: string;
|
|
1766
|
+
forked_from?: string | undefined;
|
|
1767
|
+
needs_recalibration?: boolean | undefined;
|
|
1768
|
+
} | undefined;
|
|
1769
|
+
stage_state?: {
|
|
1770
|
+
stage?: number | undefined;
|
|
1771
|
+
archived?: boolean | undefined;
|
|
1772
|
+
updated_at?: number | undefined;
|
|
1773
|
+
has_published_object?: boolean | undefined;
|
|
1774
|
+
} | undefined;
|
|
1775
|
+
migration?: {
|
|
1776
|
+
message: string;
|
|
1777
|
+
needs_recalibration: boolean;
|
|
1778
|
+
migrated: boolean;
|
|
1779
|
+
from_version: string;
|
|
1780
|
+
to_version: string;
|
|
1781
|
+
steps_executed: string[];
|
|
1782
|
+
backup_path?: string | undefined;
|
|
1783
|
+
} | undefined;
|
|
1784
|
+
}, {
|
|
1785
|
+
action: "load_project";
|
|
1786
|
+
message?: string | undefined;
|
|
1787
|
+
version?: string | undefined;
|
|
1788
|
+
project?: string | undefined;
|
|
1789
|
+
items?: {
|
|
1790
|
+
version: string;
|
|
1791
|
+
prefix: string;
|
|
1792
|
+
dir_name: string;
|
|
1793
|
+
initialized: boolean;
|
|
1794
|
+
archived: boolean;
|
|
1795
|
+
needs_migration: boolean;
|
|
1796
|
+
chain_exists: boolean;
|
|
1797
|
+
sync_status: "archived" | "synced" | "local_only" | "uninitialized";
|
|
1798
|
+
forked_from?: string | undefined;
|
|
1799
|
+
}[] | undefined;
|
|
1800
|
+
total?: number | undefined;
|
|
1801
|
+
sync_status?: {
|
|
1802
|
+
initialized: boolean;
|
|
1803
|
+
archived: boolean;
|
|
1804
|
+
needs_migration: boolean;
|
|
1805
|
+
local_exists: boolean;
|
|
1806
|
+
} | undefined;
|
|
1807
|
+
local_exists?: boolean | undefined;
|
|
1808
|
+
manifest?: {
|
|
1809
|
+
version: string;
|
|
1810
|
+
prefix: string;
|
|
1811
|
+
schema_version: string;
|
|
1812
|
+
mcp_version: string;
|
|
1813
|
+
created_at: string;
|
|
1814
|
+
updated_at: string;
|
|
1815
|
+
forked_from?: string | undefined;
|
|
1816
|
+
needs_recalibration?: boolean | undefined;
|
|
1817
|
+
} | undefined;
|
|
1818
|
+
stage_state?: {
|
|
1819
|
+
stage?: number | undefined;
|
|
1820
|
+
archived?: boolean | undefined;
|
|
1821
|
+
updated_at?: number | undefined;
|
|
1822
|
+
has_published_object?: boolean | undefined;
|
|
1823
|
+
} | undefined;
|
|
1824
|
+
migration?: {
|
|
1825
|
+
message: string;
|
|
1826
|
+
needs_recalibration: boolean;
|
|
1827
|
+
migrated: boolean;
|
|
1828
|
+
from_version: string;
|
|
1829
|
+
to_version: string;
|
|
1830
|
+
steps_executed: string[];
|
|
1831
|
+
backup_path?: string | undefined;
|
|
1832
|
+
} | undefined;
|
|
1833
|
+
}>, z.ZodObject<{
|
|
1834
|
+
action: z.ZodLiteral<"fork_project">;
|
|
1835
|
+
new_prefix: z.ZodString;
|
|
1836
|
+
new_version: z.ZodString;
|
|
1837
|
+
new_path: z.ZodString;
|
|
1838
|
+
forked_from: z.ZodString;
|
|
1839
|
+
copied_files: z.ZodArray<z.ZodString, "many">;
|
|
1840
|
+
copied_file_count: z.ZodNumber;
|
|
1841
|
+
warning: z.ZodString;
|
|
1842
|
+
next_action: z.ZodLiteral<"analyze_intent">;
|
|
1843
|
+
}, "strict", z.ZodTypeAny, {
|
|
1844
|
+
action: "fork_project";
|
|
1845
|
+
warning: string;
|
|
1846
|
+
next_action: "analyze_intent";
|
|
1847
|
+
forked_from: string;
|
|
1848
|
+
new_prefix: string;
|
|
1849
|
+
new_version: string;
|
|
1850
|
+
new_path: string;
|
|
1851
|
+
copied_files: string[];
|
|
1852
|
+
copied_file_count: number;
|
|
1853
|
+
}, {
|
|
1854
|
+
action: "fork_project";
|
|
1855
|
+
warning: string;
|
|
1856
|
+
next_action: "analyze_intent";
|
|
1857
|
+
forked_from: string;
|
|
1858
|
+
new_prefix: string;
|
|
1859
|
+
new_version: string;
|
|
1860
|
+
new_path: string;
|
|
1861
|
+
copied_files: string[];
|
|
1862
|
+
copied_file_count: number;
|
|
1863
|
+
}>, z.ZodObject<{
|
|
1864
|
+
action: z.ZodLiteral<"export_project">;
|
|
1865
|
+
project: z.ZodString;
|
|
1866
|
+
version: z.ZodString;
|
|
1867
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1868
|
+
path: z.ZodString;
|
|
1869
|
+
size: z.ZodNumber;
|
|
1870
|
+
kind: z.ZodEnum<["json", "markdown", "jsonl", "other"]>;
|
|
1871
|
+
content: z.ZodString;
|
|
1872
|
+
}, "strip", z.ZodTypeAny, {
|
|
1873
|
+
path: string;
|
|
1874
|
+
content: string;
|
|
1875
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
1876
|
+
size: number;
|
|
1877
|
+
}, {
|
|
1878
|
+
path: string;
|
|
1879
|
+
content: string;
|
|
1880
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
1881
|
+
size: number;
|
|
1882
|
+
}>, "many">;
|
|
1883
|
+
total_files: z.ZodNumber;
|
|
1884
|
+
}, "strict", z.ZodTypeAny, {
|
|
1885
|
+
version: string;
|
|
1886
|
+
files: {
|
|
1887
|
+
path: string;
|
|
1888
|
+
content: string;
|
|
1889
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
1890
|
+
size: number;
|
|
1891
|
+
}[];
|
|
1892
|
+
action: "export_project";
|
|
1893
|
+
project: string;
|
|
1894
|
+
total_files: number;
|
|
1895
|
+
}, {
|
|
1896
|
+
version: string;
|
|
1897
|
+
files: {
|
|
1898
|
+
path: string;
|
|
1899
|
+
content: string;
|
|
1900
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
1901
|
+
size: number;
|
|
1902
|
+
}[];
|
|
1903
|
+
action: "export_project";
|
|
1904
|
+
project: string;
|
|
1905
|
+
total_files: number;
|
|
1906
|
+
}>, z.ZodObject<{
|
|
1907
|
+
action: z.ZodLiteral<"get_project_files">;
|
|
1908
|
+
project: z.ZodString;
|
|
1909
|
+
version: z.ZodString;
|
|
1910
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1911
|
+
path: z.ZodString;
|
|
1912
|
+
size: z.ZodNumber;
|
|
1913
|
+
kind: z.ZodEnum<["json", "markdown", "jsonl", "other"]>;
|
|
1914
|
+
mtime: z.ZodNumber;
|
|
1915
|
+
}, "strip", z.ZodTypeAny, {
|
|
1916
|
+
path: string;
|
|
1917
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
1918
|
+
size: number;
|
|
1919
|
+
mtime: number;
|
|
1920
|
+
}, {
|
|
1921
|
+
path: string;
|
|
1922
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
1923
|
+
size: number;
|
|
1924
|
+
mtime: number;
|
|
1925
|
+
}>, "many">;
|
|
1926
|
+
total_files: z.ZodNumber;
|
|
1927
|
+
}, "strict", z.ZodTypeAny, {
|
|
1928
|
+
version: string;
|
|
1929
|
+
files: {
|
|
1930
|
+
path: string;
|
|
1931
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
1932
|
+
size: number;
|
|
1933
|
+
mtime: number;
|
|
1934
|
+
}[];
|
|
1935
|
+
action: "get_project_files";
|
|
1936
|
+
project: string;
|
|
1937
|
+
total_files: number;
|
|
1938
|
+
}, {
|
|
1939
|
+
version: string;
|
|
1940
|
+
files: {
|
|
1941
|
+
path: string;
|
|
1942
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
1943
|
+
size: number;
|
|
1944
|
+
mtime: number;
|
|
1945
|
+
}[];
|
|
1946
|
+
action: "get_project_files";
|
|
1947
|
+
project: string;
|
|
1948
|
+
total_files: number;
|
|
1949
|
+
}>, z.ZodObject<{
|
|
1950
|
+
action: z.ZodLiteral<"validate_stage_unit">;
|
|
1951
|
+
project: z.ZodString;
|
|
1952
|
+
version: z.ZodString;
|
|
1953
|
+
stage: z.ZodNumber;
|
|
1954
|
+
valid: z.ZodBoolean;
|
|
1955
|
+
missing_files: z.ZodArray<z.ZodString, "many">;
|
|
1956
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1957
|
+
check_id: z.ZodString;
|
|
1958
|
+
status: z.ZodEnum<["pass", "fail", "warn"]>;
|
|
1959
|
+
message: z.ZodString;
|
|
1960
|
+
}, "strip", z.ZodTypeAny, {
|
|
1961
|
+
message: string;
|
|
1962
|
+
status: "pass" | "fail" | "warn";
|
|
1963
|
+
check_id: string;
|
|
1964
|
+
}, {
|
|
1965
|
+
message: string;
|
|
1966
|
+
status: "pass" | "fail" | "warn";
|
|
1967
|
+
check_id: string;
|
|
1968
|
+
}>, "many">;
|
|
1969
|
+
blocking_issues: z.ZodArray<z.ZodString, "many">;
|
|
1970
|
+
stage_passed: z.ZodOptional<z.ZodBoolean>;
|
|
1971
|
+
}, "strict", z.ZodTypeAny, {
|
|
1972
|
+
valid: boolean;
|
|
1973
|
+
version: string;
|
|
1974
|
+
action: "validate_stage_unit";
|
|
1975
|
+
stage: number;
|
|
1976
|
+
project: string;
|
|
1977
|
+
checks: {
|
|
1978
|
+
message: string;
|
|
1979
|
+
status: "pass" | "fail" | "warn";
|
|
1980
|
+
check_id: string;
|
|
1981
|
+
}[];
|
|
1982
|
+
blocking_issues: string[];
|
|
1983
|
+
missing_files: string[];
|
|
1984
|
+
stage_passed?: boolean | undefined;
|
|
1985
|
+
}, {
|
|
1986
|
+
valid: boolean;
|
|
1987
|
+
version: string;
|
|
1988
|
+
action: "validate_stage_unit";
|
|
1989
|
+
stage: number;
|
|
1990
|
+
project: string;
|
|
1991
|
+
checks: {
|
|
1992
|
+
message: string;
|
|
1993
|
+
status: "pass" | "fail" | "warn";
|
|
1994
|
+
check_id: string;
|
|
1995
|
+
}[];
|
|
1996
|
+
blocking_issues: string[];
|
|
1997
|
+
missing_files: string[];
|
|
1998
|
+
stage_passed?: boolean | undefined;
|
|
1999
|
+
}>, z.ZodObject<{
|
|
2000
|
+
action: z.ZodLiteral<"get_stage_assessment">;
|
|
2001
|
+
project: z.ZodString;
|
|
2002
|
+
version: z.ZodString;
|
|
2003
|
+
stage: z.ZodNumber;
|
|
2004
|
+
found: z.ZodBoolean;
|
|
2005
|
+
assessment: z.ZodOptional<z.ZodObject<{
|
|
2006
|
+
stage: z.ZodNumber;
|
|
2007
|
+
assessed_at: z.ZodNumber;
|
|
2008
|
+
goal_completion: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2009
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
2010
|
+
finding_id: z.ZodString;
|
|
2011
|
+
severity: z.ZodEnum<["info", "warn", "critical"]>;
|
|
2012
|
+
criterion_id: z.ZodString;
|
|
2013
|
+
description: z.ZodString;
|
|
2014
|
+
evidence: z.ZodUnknown;
|
|
2015
|
+
}, "strip", z.ZodTypeAny, {
|
|
2016
|
+
description: string;
|
|
2017
|
+
severity: "info" | "critical" | "warn";
|
|
2018
|
+
finding_id: string;
|
|
2019
|
+
criterion_id: string;
|
|
2020
|
+
evidence?: unknown;
|
|
2021
|
+
}, {
|
|
2022
|
+
description: string;
|
|
2023
|
+
severity: "info" | "critical" | "warn";
|
|
2024
|
+
finding_id: string;
|
|
2025
|
+
criterion_id: string;
|
|
2026
|
+
evidence?: unknown;
|
|
2027
|
+
}>, "many">;
|
|
2028
|
+
recommendations: z.ZodArray<z.ZodString, "many">;
|
|
2029
|
+
}, "strip", z.ZodTypeAny, {
|
|
2030
|
+
recommendations: string[];
|
|
2031
|
+
stage: number;
|
|
2032
|
+
findings: {
|
|
2033
|
+
description: string;
|
|
2034
|
+
severity: "info" | "critical" | "warn";
|
|
2035
|
+
finding_id: string;
|
|
2036
|
+
criterion_id: string;
|
|
2037
|
+
evidence?: unknown;
|
|
2038
|
+
}[];
|
|
2039
|
+
assessed_at: number;
|
|
2040
|
+
goal_completion: Record<string, number>;
|
|
2041
|
+
}, {
|
|
2042
|
+
recommendations: string[];
|
|
2043
|
+
stage: number;
|
|
2044
|
+
findings: {
|
|
2045
|
+
description: string;
|
|
2046
|
+
severity: "info" | "critical" | "warn";
|
|
2047
|
+
finding_id: string;
|
|
2048
|
+
criterion_id: string;
|
|
2049
|
+
evidence?: unknown;
|
|
2050
|
+
}[];
|
|
2051
|
+
assessed_at: number;
|
|
2052
|
+
goal_completion: Record<string, number>;
|
|
2053
|
+
}>>;
|
|
2054
|
+
}, "strict", z.ZodTypeAny, {
|
|
2055
|
+
version: string;
|
|
2056
|
+
action: "get_stage_assessment";
|
|
2057
|
+
stage: number;
|
|
2058
|
+
project: string;
|
|
2059
|
+
found: boolean;
|
|
2060
|
+
assessment?: {
|
|
2061
|
+
recommendations: string[];
|
|
2062
|
+
stage: number;
|
|
2063
|
+
findings: {
|
|
2064
|
+
description: string;
|
|
2065
|
+
severity: "info" | "critical" | "warn";
|
|
2066
|
+
finding_id: string;
|
|
2067
|
+
criterion_id: string;
|
|
2068
|
+
evidence?: unknown;
|
|
2069
|
+
}[];
|
|
2070
|
+
assessed_at: number;
|
|
2071
|
+
goal_completion: Record<string, number>;
|
|
2072
|
+
} | undefined;
|
|
2073
|
+
}, {
|
|
2074
|
+
version: string;
|
|
2075
|
+
action: "get_stage_assessment";
|
|
2076
|
+
stage: number;
|
|
2077
|
+
project: string;
|
|
2078
|
+
found: boolean;
|
|
2079
|
+
assessment?: {
|
|
2080
|
+
recommendations: string[];
|
|
2081
|
+
stage: number;
|
|
2082
|
+
findings: {
|
|
2083
|
+
description: string;
|
|
2084
|
+
severity: "info" | "critical" | "warn";
|
|
2085
|
+
finding_id: string;
|
|
2086
|
+
criterion_id: string;
|
|
2087
|
+
evidence?: unknown;
|
|
2088
|
+
}[];
|
|
2089
|
+
assessed_at: number;
|
|
2090
|
+
goal_completion: Record<string, number>;
|
|
2091
|
+
} | undefined;
|
|
2092
|
+
}>, z.ZodObject<{
|
|
2093
|
+
action: z.ZodLiteral<"get_stage_risk_policy">;
|
|
2094
|
+
project: z.ZodString;
|
|
2095
|
+
version: z.ZodString;
|
|
2096
|
+
stage: z.ZodNumber;
|
|
2097
|
+
found: z.ZodBoolean;
|
|
2098
|
+
risk_policy: z.ZodOptional<z.ZodObject<{
|
|
2099
|
+
stage: z.ZodNumber;
|
|
2100
|
+
risks: z.ZodArray<z.ZodObject<{
|
|
2101
|
+
risk_id: z.ZodString;
|
|
2102
|
+
category: z.ZodEnum<["naming", "dependency", "operational", "financial", "security"]>;
|
|
2103
|
+
description: z.ZodString;
|
|
2104
|
+
likelihood: z.ZodEnum<["low", "medium", "high"]>;
|
|
2105
|
+
impact: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
2106
|
+
mitigation: z.ZodString;
|
|
2107
|
+
owner: z.ZodEnum<["ai", "user", "system"]>;
|
|
2108
|
+
}, "strip", z.ZodTypeAny, {
|
|
2109
|
+
owner: "user" | "ai" | "system";
|
|
2110
|
+
description: string;
|
|
2111
|
+
category: "financial" | "dependency" | "operational" | "security" | "naming";
|
|
2112
|
+
mitigation: string;
|
|
2113
|
+
risk_id: string;
|
|
2114
|
+
likelihood: "low" | "high" | "medium";
|
|
2115
|
+
impact: "low" | "high" | "critical" | "medium";
|
|
2116
|
+
}, {
|
|
2117
|
+
owner: "user" | "ai" | "system";
|
|
2118
|
+
description: string;
|
|
2119
|
+
category: "financial" | "dependency" | "operational" | "security" | "naming";
|
|
2120
|
+
mitigation: string;
|
|
2121
|
+
risk_id: string;
|
|
2122
|
+
likelihood: "low" | "high" | "medium";
|
|
2123
|
+
impact: "low" | "high" | "critical" | "medium";
|
|
2124
|
+
}>, "many">;
|
|
2125
|
+
active_controls: z.ZodArray<z.ZodObject<{
|
|
2126
|
+
control_id: z.ZodString;
|
|
2127
|
+
control_type: z.ZodEnum<["preventive", "detective", "corrective"]>;
|
|
2128
|
+
target_risk: z.ZodString;
|
|
2129
|
+
implementation: z.ZodString;
|
|
2130
|
+
verified: z.ZodBoolean;
|
|
2131
|
+
}, "strip", z.ZodTypeAny, {
|
|
2132
|
+
control_id: string;
|
|
2133
|
+
control_type: "preventive" | "detective" | "corrective";
|
|
2134
|
+
target_risk: string;
|
|
2135
|
+
implementation: string;
|
|
2136
|
+
verified: boolean;
|
|
2137
|
+
}, {
|
|
2138
|
+
control_id: string;
|
|
2139
|
+
control_type: "preventive" | "detective" | "corrective";
|
|
2140
|
+
target_risk: string;
|
|
2141
|
+
implementation: string;
|
|
2142
|
+
verified: boolean;
|
|
2143
|
+
}>, "many">;
|
|
2144
|
+
residual_risks: z.ZodArray<z.ZodString, "many">;
|
|
2145
|
+
}, "strip", z.ZodTypeAny, {
|
|
2146
|
+
stage: number;
|
|
2147
|
+
risks: {
|
|
2148
|
+
owner: "user" | "ai" | "system";
|
|
2149
|
+
description: string;
|
|
2150
|
+
category: "financial" | "dependency" | "operational" | "security" | "naming";
|
|
2151
|
+
mitigation: string;
|
|
2152
|
+
risk_id: string;
|
|
2153
|
+
likelihood: "low" | "high" | "medium";
|
|
2154
|
+
impact: "low" | "high" | "critical" | "medium";
|
|
2155
|
+
}[];
|
|
2156
|
+
active_controls: {
|
|
2157
|
+
control_id: string;
|
|
2158
|
+
control_type: "preventive" | "detective" | "corrective";
|
|
2159
|
+
target_risk: string;
|
|
2160
|
+
implementation: string;
|
|
2161
|
+
verified: boolean;
|
|
2162
|
+
}[];
|
|
2163
|
+
residual_risks: string[];
|
|
2164
|
+
}, {
|
|
2165
|
+
stage: number;
|
|
2166
|
+
risks: {
|
|
2167
|
+
owner: "user" | "ai" | "system";
|
|
2168
|
+
description: string;
|
|
2169
|
+
category: "financial" | "dependency" | "operational" | "security" | "naming";
|
|
2170
|
+
mitigation: string;
|
|
2171
|
+
risk_id: string;
|
|
2172
|
+
likelihood: "low" | "high" | "medium";
|
|
2173
|
+
impact: "low" | "high" | "critical" | "medium";
|
|
2174
|
+
}[];
|
|
2175
|
+
active_controls: {
|
|
2176
|
+
control_id: string;
|
|
2177
|
+
control_type: "preventive" | "detective" | "corrective";
|
|
2178
|
+
target_risk: string;
|
|
2179
|
+
implementation: string;
|
|
2180
|
+
verified: boolean;
|
|
2181
|
+
}[];
|
|
2182
|
+
residual_risks: string[];
|
|
2183
|
+
}>>;
|
|
2184
|
+
}, "strict", z.ZodTypeAny, {
|
|
2185
|
+
version: string;
|
|
2186
|
+
action: "get_stage_risk_policy";
|
|
2187
|
+
stage: number;
|
|
2188
|
+
project: string;
|
|
2189
|
+
found: boolean;
|
|
2190
|
+
risk_policy?: {
|
|
2191
|
+
stage: number;
|
|
2192
|
+
risks: {
|
|
2193
|
+
owner: "user" | "ai" | "system";
|
|
2194
|
+
description: string;
|
|
2195
|
+
category: "financial" | "dependency" | "operational" | "security" | "naming";
|
|
2196
|
+
mitigation: string;
|
|
2197
|
+
risk_id: string;
|
|
2198
|
+
likelihood: "low" | "high" | "medium";
|
|
2199
|
+
impact: "low" | "high" | "critical" | "medium";
|
|
2200
|
+
}[];
|
|
2201
|
+
active_controls: {
|
|
2202
|
+
control_id: string;
|
|
2203
|
+
control_type: "preventive" | "detective" | "corrective";
|
|
2204
|
+
target_risk: string;
|
|
2205
|
+
implementation: string;
|
|
2206
|
+
verified: boolean;
|
|
2207
|
+
}[];
|
|
2208
|
+
residual_risks: string[];
|
|
2209
|
+
} | undefined;
|
|
2210
|
+
}, {
|
|
2211
|
+
version: string;
|
|
2212
|
+
action: "get_stage_risk_policy";
|
|
2213
|
+
stage: number;
|
|
2214
|
+
project: string;
|
|
2215
|
+
found: boolean;
|
|
2216
|
+
risk_policy?: {
|
|
2217
|
+
stage: number;
|
|
2218
|
+
risks: {
|
|
2219
|
+
owner: "user" | "ai" | "system";
|
|
2220
|
+
description: string;
|
|
2221
|
+
category: "financial" | "dependency" | "operational" | "security" | "naming";
|
|
2222
|
+
mitigation: string;
|
|
2223
|
+
risk_id: string;
|
|
2224
|
+
likelihood: "low" | "high" | "medium";
|
|
2225
|
+
impact: "low" | "high" | "critical" | "medium";
|
|
2226
|
+
}[];
|
|
2227
|
+
active_controls: {
|
|
2228
|
+
control_id: string;
|
|
2229
|
+
control_type: "preventive" | "detective" | "corrective";
|
|
2230
|
+
target_risk: string;
|
|
2231
|
+
implementation: string;
|
|
2232
|
+
verified: boolean;
|
|
2233
|
+
}[];
|
|
2234
|
+
residual_risks: string[];
|
|
2235
|
+
} | undefined;
|
|
2236
|
+
}>, z.ZodObject<{
|
|
2237
|
+
action: z.ZodLiteral<"get_doc_relations">;
|
|
2238
|
+
project: z.ZodString;
|
|
2239
|
+
version: z.ZodString;
|
|
2240
|
+
found: z.ZodBoolean;
|
|
2241
|
+
relations: z.ZodOptional<z.ZodObject<{
|
|
2242
|
+
version: z.ZodString;
|
|
2243
|
+
generated_at: z.ZodNumber;
|
|
2244
|
+
project_invariants: z.ZodArray<z.ZodObject<{
|
|
2245
|
+
invariant_id: z.ZodString;
|
|
2246
|
+
description: z.ZodString;
|
|
2247
|
+
verified_by_stages: z.ZodArray<z.ZodNumber, "many">;
|
|
2248
|
+
}, "strip", z.ZodTypeAny, {
|
|
2249
|
+
description: string;
|
|
2250
|
+
invariant_id: string;
|
|
2251
|
+
verified_by_stages: number[];
|
|
2252
|
+
}, {
|
|
2253
|
+
description: string;
|
|
2254
|
+
invariant_id: string;
|
|
2255
|
+
verified_by_stages: number[];
|
|
2256
|
+
}>, "many">;
|
|
2257
|
+
stage_units: z.ZodArray<z.ZodObject<{
|
|
2258
|
+
stage: z.ZodNumber;
|
|
2259
|
+
goal_id: z.ZodString;
|
|
2260
|
+
assessment_id: z.ZodString;
|
|
2261
|
+
risk_policy_id: z.ZodString;
|
|
2262
|
+
verification_id: z.ZodString;
|
|
2263
|
+
artifacts: z.ZodArray<z.ZodString, "many">;
|
|
2264
|
+
}, "strip", z.ZodTypeAny, {
|
|
2265
|
+
stage: number;
|
|
2266
|
+
goal_id: string;
|
|
2267
|
+
assessment_id: string;
|
|
2268
|
+
risk_policy_id: string;
|
|
2269
|
+
verification_id: string;
|
|
2270
|
+
artifacts: string[];
|
|
2271
|
+
}, {
|
|
2272
|
+
stage: number;
|
|
2273
|
+
goal_id: string;
|
|
2274
|
+
assessment_id: string;
|
|
2275
|
+
risk_policy_id: string;
|
|
2276
|
+
verification_id: string;
|
|
2277
|
+
artifacts: string[];
|
|
2278
|
+
}>, "many">;
|
|
2279
|
+
derivations: z.ZodArray<z.ZodObject<{
|
|
2280
|
+
source_type: z.ZodEnum<["project_invariant", "project_goal"]>;
|
|
2281
|
+
source_id: z.ZodString;
|
|
2282
|
+
target_type: z.ZodEnum<["stage_goal", "stage_risk", "stage_verification"]>;
|
|
2283
|
+
target_stage: z.ZodNumber;
|
|
2284
|
+
target_id: z.ZodString;
|
|
2285
|
+
derivation_logic: z.ZodString;
|
|
2286
|
+
}, "strip", z.ZodTypeAny, {
|
|
2287
|
+
source_type: "project_invariant" | "project_goal";
|
|
2288
|
+
target_type: "stage_goal" | "stage_risk" | "stage_verification";
|
|
2289
|
+
target_stage: number;
|
|
2290
|
+
source_id: string;
|
|
2291
|
+
target_id: string;
|
|
2292
|
+
derivation_logic: string;
|
|
2293
|
+
}, {
|
|
2294
|
+
source_type: "project_invariant" | "project_goal";
|
|
2295
|
+
target_type: "stage_goal" | "stage_risk" | "stage_verification";
|
|
2296
|
+
target_stage: number;
|
|
2297
|
+
source_id: string;
|
|
2298
|
+
target_id: string;
|
|
2299
|
+
derivation_logic: string;
|
|
2300
|
+
}>, "many">;
|
|
2301
|
+
propagation_rules: z.ZodArray<z.ZodObject<{
|
|
2302
|
+
rule_id: z.ZodString;
|
|
2303
|
+
trigger: z.ZodObject<{
|
|
2304
|
+
stage: z.ZodNumber;
|
|
2305
|
+
event: z.ZodEnum<["verification_passed", "verification_failed"]>;
|
|
2306
|
+
}, "strip", z.ZodTypeAny, {
|
|
2307
|
+
stage: number;
|
|
2308
|
+
event: "verification_passed" | "verification_failed";
|
|
2309
|
+
}, {
|
|
2310
|
+
stage: number;
|
|
2311
|
+
event: "verification_passed" | "verification_failed";
|
|
2312
|
+
}>;
|
|
2313
|
+
effect: z.ZodObject<{
|
|
2314
|
+
target: z.ZodEnum<["project_invariant", "next_stage"]>;
|
|
2315
|
+
action: z.ZodEnum<["verify", "block"]>;
|
|
2316
|
+
}, "strip", z.ZodTypeAny, {
|
|
2317
|
+
action: "verify" | "block";
|
|
2318
|
+
target: "project_invariant" | "next_stage";
|
|
2319
|
+
}, {
|
|
2320
|
+
action: "verify" | "block";
|
|
2321
|
+
target: "project_invariant" | "next_stage";
|
|
2322
|
+
}>;
|
|
2323
|
+
}, "strip", z.ZodTypeAny, {
|
|
2324
|
+
rule_id: string;
|
|
2325
|
+
trigger: {
|
|
2326
|
+
stage: number;
|
|
2327
|
+
event: "verification_passed" | "verification_failed";
|
|
2328
|
+
};
|
|
2329
|
+
effect: {
|
|
2330
|
+
action: "verify" | "block";
|
|
2331
|
+
target: "project_invariant" | "next_stage";
|
|
2332
|
+
};
|
|
2333
|
+
}, {
|
|
2334
|
+
rule_id: string;
|
|
2335
|
+
trigger: {
|
|
2336
|
+
stage: number;
|
|
2337
|
+
event: "verification_passed" | "verification_failed";
|
|
2338
|
+
};
|
|
2339
|
+
effect: {
|
|
2340
|
+
action: "verify" | "block";
|
|
2341
|
+
target: "project_invariant" | "next_stage";
|
|
2342
|
+
};
|
|
2343
|
+
}>, "many">;
|
|
2344
|
+
impact_map: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
2345
|
+
}, "strip", z.ZodTypeAny, {
|
|
2346
|
+
version: string;
|
|
2347
|
+
generated_at: number;
|
|
2348
|
+
project_invariants: {
|
|
2349
|
+
description: string;
|
|
2350
|
+
invariant_id: string;
|
|
2351
|
+
verified_by_stages: number[];
|
|
2352
|
+
}[];
|
|
2353
|
+
stage_units: {
|
|
2354
|
+
stage: number;
|
|
2355
|
+
goal_id: string;
|
|
2356
|
+
assessment_id: string;
|
|
2357
|
+
risk_policy_id: string;
|
|
2358
|
+
verification_id: string;
|
|
2359
|
+
artifacts: string[];
|
|
2360
|
+
}[];
|
|
2361
|
+
derivations: {
|
|
2362
|
+
source_type: "project_invariant" | "project_goal";
|
|
2363
|
+
target_type: "stage_goal" | "stage_risk" | "stage_verification";
|
|
2364
|
+
target_stage: number;
|
|
2365
|
+
source_id: string;
|
|
2366
|
+
target_id: string;
|
|
2367
|
+
derivation_logic: string;
|
|
2368
|
+
}[];
|
|
2369
|
+
propagation_rules: {
|
|
2370
|
+
rule_id: string;
|
|
2371
|
+
trigger: {
|
|
2372
|
+
stage: number;
|
|
2373
|
+
event: "verification_passed" | "verification_failed";
|
|
2374
|
+
};
|
|
2375
|
+
effect: {
|
|
2376
|
+
action: "verify" | "block";
|
|
2377
|
+
target: "project_invariant" | "next_stage";
|
|
2378
|
+
};
|
|
2379
|
+
}[];
|
|
2380
|
+
impact_map: Record<string, string[]>;
|
|
2381
|
+
}, {
|
|
2382
|
+
version: string;
|
|
2383
|
+
generated_at: number;
|
|
2384
|
+
project_invariants: {
|
|
2385
|
+
description: string;
|
|
2386
|
+
invariant_id: string;
|
|
2387
|
+
verified_by_stages: number[];
|
|
2388
|
+
}[];
|
|
2389
|
+
stage_units: {
|
|
2390
|
+
stage: number;
|
|
2391
|
+
goal_id: string;
|
|
2392
|
+
assessment_id: string;
|
|
2393
|
+
risk_policy_id: string;
|
|
2394
|
+
verification_id: string;
|
|
2395
|
+
artifacts: string[];
|
|
2396
|
+
}[];
|
|
2397
|
+
derivations: {
|
|
2398
|
+
source_type: "project_invariant" | "project_goal";
|
|
2399
|
+
target_type: "stage_goal" | "stage_risk" | "stage_verification";
|
|
2400
|
+
target_stage: number;
|
|
2401
|
+
source_id: string;
|
|
2402
|
+
target_id: string;
|
|
2403
|
+
derivation_logic: string;
|
|
2404
|
+
}[];
|
|
2405
|
+
propagation_rules: {
|
|
2406
|
+
rule_id: string;
|
|
2407
|
+
trigger: {
|
|
2408
|
+
stage: number;
|
|
2409
|
+
event: "verification_passed" | "verification_failed";
|
|
2410
|
+
};
|
|
2411
|
+
effect: {
|
|
2412
|
+
action: "verify" | "block";
|
|
2413
|
+
target: "project_invariant" | "next_stage";
|
|
2414
|
+
};
|
|
2415
|
+
}[];
|
|
2416
|
+
impact_map: Record<string, string[]>;
|
|
2417
|
+
}>>;
|
|
2418
|
+
}, "strict", z.ZodTypeAny, {
|
|
2419
|
+
version: string;
|
|
2420
|
+
action: "get_doc_relations";
|
|
2421
|
+
project: string;
|
|
2422
|
+
found: boolean;
|
|
2423
|
+
relations?: {
|
|
2424
|
+
version: string;
|
|
2425
|
+
generated_at: number;
|
|
2426
|
+
project_invariants: {
|
|
2427
|
+
description: string;
|
|
2428
|
+
invariant_id: string;
|
|
2429
|
+
verified_by_stages: number[];
|
|
2430
|
+
}[];
|
|
2431
|
+
stage_units: {
|
|
2432
|
+
stage: number;
|
|
2433
|
+
goal_id: string;
|
|
2434
|
+
assessment_id: string;
|
|
2435
|
+
risk_policy_id: string;
|
|
2436
|
+
verification_id: string;
|
|
2437
|
+
artifacts: string[];
|
|
2438
|
+
}[];
|
|
2439
|
+
derivations: {
|
|
2440
|
+
source_type: "project_invariant" | "project_goal";
|
|
2441
|
+
target_type: "stage_goal" | "stage_risk" | "stage_verification";
|
|
2442
|
+
target_stage: number;
|
|
2443
|
+
source_id: string;
|
|
2444
|
+
target_id: string;
|
|
2445
|
+
derivation_logic: string;
|
|
2446
|
+
}[];
|
|
2447
|
+
propagation_rules: {
|
|
2448
|
+
rule_id: string;
|
|
2449
|
+
trigger: {
|
|
2450
|
+
stage: number;
|
|
2451
|
+
event: "verification_passed" | "verification_failed";
|
|
2452
|
+
};
|
|
2453
|
+
effect: {
|
|
2454
|
+
action: "verify" | "block";
|
|
2455
|
+
target: "project_invariant" | "next_stage";
|
|
2456
|
+
};
|
|
2457
|
+
}[];
|
|
2458
|
+
impact_map: Record<string, string[]>;
|
|
2459
|
+
} | undefined;
|
|
2460
|
+
}, {
|
|
2461
|
+
version: string;
|
|
2462
|
+
action: "get_doc_relations";
|
|
2463
|
+
project: string;
|
|
2464
|
+
found: boolean;
|
|
2465
|
+
relations?: {
|
|
2466
|
+
version: string;
|
|
2467
|
+
generated_at: number;
|
|
2468
|
+
project_invariants: {
|
|
2469
|
+
description: string;
|
|
2470
|
+
invariant_id: string;
|
|
2471
|
+
verified_by_stages: number[];
|
|
2472
|
+
}[];
|
|
2473
|
+
stage_units: {
|
|
2474
|
+
stage: number;
|
|
2475
|
+
goal_id: string;
|
|
2476
|
+
assessment_id: string;
|
|
2477
|
+
risk_policy_id: string;
|
|
2478
|
+
verification_id: string;
|
|
2479
|
+
artifacts: string[];
|
|
2480
|
+
}[];
|
|
2481
|
+
derivations: {
|
|
2482
|
+
source_type: "project_invariant" | "project_goal";
|
|
2483
|
+
target_type: "stage_goal" | "stage_risk" | "stage_verification";
|
|
2484
|
+
target_stage: number;
|
|
2485
|
+
source_id: string;
|
|
2486
|
+
target_id: string;
|
|
2487
|
+
derivation_logic: string;
|
|
2488
|
+
}[];
|
|
2489
|
+
propagation_rules: {
|
|
2490
|
+
rule_id: string;
|
|
2491
|
+
trigger: {
|
|
2492
|
+
stage: number;
|
|
2493
|
+
event: "verification_passed" | "verification_failed";
|
|
2494
|
+
};
|
|
2495
|
+
effect: {
|
|
2496
|
+
action: "verify" | "block";
|
|
2497
|
+
target: "project_invariant" | "next_stage";
|
|
2498
|
+
};
|
|
2499
|
+
}[];
|
|
2500
|
+
impact_map: Record<string, string[]>;
|
|
2501
|
+
} | undefined;
|
|
2502
|
+
}>, z.ZodObject<{
|
|
2503
|
+
action: z.ZodLiteral<"update_deployment_doc">;
|
|
2504
|
+
project: z.ZodString;
|
|
2505
|
+
version: z.ZodString;
|
|
2506
|
+
updated: z.ZodBoolean;
|
|
2507
|
+
updated_files: z.ZodArray<z.ZodString, "many">;
|
|
2508
|
+
updated_file_count: z.ZodNumber;
|
|
2509
|
+
all_stages_passed: z.ZodBoolean;
|
|
2510
|
+
impact_summary: z.ZodObject<{
|
|
2511
|
+
stages_affected: z.ZodArray<z.ZodNumber, "many">;
|
|
2512
|
+
relations_rebuilt: z.ZodBoolean;
|
|
2513
|
+
}, "strip", z.ZodTypeAny, {
|
|
2514
|
+
stages_affected: number[];
|
|
2515
|
+
relations_rebuilt: boolean;
|
|
2516
|
+
}, {
|
|
2517
|
+
stages_affected: number[];
|
|
2518
|
+
relations_rebuilt: boolean;
|
|
2519
|
+
}>;
|
|
2520
|
+
next_action: z.ZodEnum<["validate_validation_chain", "trace_substeps", "none"]>;
|
|
2521
|
+
}, "strict", z.ZodTypeAny, {
|
|
2522
|
+
version: string;
|
|
2523
|
+
action: "update_deployment_doc";
|
|
2524
|
+
project: string;
|
|
2525
|
+
next_action: "none" | "trace_substeps" | "validate_validation_chain";
|
|
2526
|
+
all_stages_passed: boolean;
|
|
2527
|
+
updated: boolean;
|
|
2528
|
+
updated_files: string[];
|
|
2529
|
+
updated_file_count: number;
|
|
2530
|
+
impact_summary: {
|
|
2531
|
+
stages_affected: number[];
|
|
2532
|
+
relations_rebuilt: boolean;
|
|
2533
|
+
};
|
|
2534
|
+
}, {
|
|
2535
|
+
version: string;
|
|
2536
|
+
action: "update_deployment_doc";
|
|
2537
|
+
project: string;
|
|
2538
|
+
next_action: "none" | "trace_substeps" | "validate_validation_chain";
|
|
2539
|
+
all_stages_passed: boolean;
|
|
2540
|
+
updated: boolean;
|
|
2541
|
+
updated_files: string[];
|
|
2542
|
+
updated_file_count: number;
|
|
2543
|
+
impact_summary: {
|
|
2544
|
+
stages_affected: number[];
|
|
2545
|
+
relations_rebuilt: boolean;
|
|
2546
|
+
};
|
|
2547
|
+
}>, z.ZodObject<{
|
|
2548
|
+
action: z.ZodLiteral<"validate_validation_chain">;
|
|
2549
|
+
project: z.ZodString;
|
|
2550
|
+
version: z.ZodString;
|
|
2551
|
+
valid: z.ZodBoolean;
|
|
2552
|
+
derivation_checks: z.ZodArray<z.ZodObject<{
|
|
2553
|
+
check_id: z.ZodString;
|
|
2554
|
+
status: z.ZodEnum<["pass", "fail", "warn"]>;
|
|
2555
|
+
message: z.ZodString;
|
|
2556
|
+
}, "strip", z.ZodTypeAny, {
|
|
2557
|
+
message: string;
|
|
2558
|
+
status: "pass" | "fail" | "warn";
|
|
2559
|
+
check_id: string;
|
|
2560
|
+
}, {
|
|
2561
|
+
message: string;
|
|
2562
|
+
status: "pass" | "fail" | "warn";
|
|
2563
|
+
check_id: string;
|
|
2564
|
+
}>, "many">;
|
|
2565
|
+
propagation_checks: z.ZodArray<z.ZodObject<{
|
|
2566
|
+
check_id: z.ZodString;
|
|
2567
|
+
status: z.ZodEnum<["pass", "fail", "warn"]>;
|
|
2568
|
+
message: z.ZodString;
|
|
2569
|
+
}, "strip", z.ZodTypeAny, {
|
|
2570
|
+
message: string;
|
|
2571
|
+
status: "pass" | "fail" | "warn";
|
|
2572
|
+
check_id: string;
|
|
2573
|
+
}, {
|
|
2574
|
+
message: string;
|
|
2575
|
+
status: "pass" | "fail" | "warn";
|
|
2576
|
+
check_id: string;
|
|
2577
|
+
}>, "many">;
|
|
2578
|
+
cross_stage_checks: z.ZodArray<z.ZodObject<{
|
|
2579
|
+
check_id: z.ZodString;
|
|
2580
|
+
status: z.ZodEnum<["pass", "fail", "warn"]>;
|
|
2581
|
+
message: z.ZodString;
|
|
2582
|
+
}, "strip", z.ZodTypeAny, {
|
|
2583
|
+
message: string;
|
|
2584
|
+
status: "pass" | "fail" | "warn";
|
|
2585
|
+
check_id: string;
|
|
2586
|
+
}, {
|
|
2587
|
+
message: string;
|
|
2588
|
+
status: "pass" | "fail" | "warn";
|
|
2589
|
+
check_id: string;
|
|
2590
|
+
}>, "many">;
|
|
2591
|
+
impact_map_checks: z.ZodArray<z.ZodObject<{
|
|
2592
|
+
check_id: z.ZodString;
|
|
2593
|
+
status: z.ZodEnum<["pass", "fail", "warn"]>;
|
|
2594
|
+
message: z.ZodString;
|
|
2595
|
+
}, "strip", z.ZodTypeAny, {
|
|
2596
|
+
message: string;
|
|
2597
|
+
status: "pass" | "fail" | "warn";
|
|
2598
|
+
check_id: string;
|
|
2599
|
+
}, {
|
|
2600
|
+
message: string;
|
|
2601
|
+
status: "pass" | "fail" | "warn";
|
|
2602
|
+
check_id: string;
|
|
2603
|
+
}>, "many">;
|
|
2604
|
+
blocking_issues: z.ZodArray<z.ZodString, "many">;
|
|
2605
|
+
warnings: z.ZodArray<z.ZodString, "many">;
|
|
2606
|
+
}, "strict", z.ZodTypeAny, {
|
|
2607
|
+
valid: boolean;
|
|
2608
|
+
version: string;
|
|
2609
|
+
action: "validate_validation_chain";
|
|
2610
|
+
warnings: string[];
|
|
2611
|
+
project: string;
|
|
2612
|
+
blocking_issues: string[];
|
|
2613
|
+
derivation_checks: {
|
|
2614
|
+
message: string;
|
|
2615
|
+
status: "pass" | "fail" | "warn";
|
|
2616
|
+
check_id: string;
|
|
2617
|
+
}[];
|
|
2618
|
+
propagation_checks: {
|
|
2619
|
+
message: string;
|
|
2620
|
+
status: "pass" | "fail" | "warn";
|
|
2621
|
+
check_id: string;
|
|
2622
|
+
}[];
|
|
2623
|
+
cross_stage_checks: {
|
|
2624
|
+
message: string;
|
|
2625
|
+
status: "pass" | "fail" | "warn";
|
|
2626
|
+
check_id: string;
|
|
2627
|
+
}[];
|
|
2628
|
+
impact_map_checks: {
|
|
2629
|
+
message: string;
|
|
2630
|
+
status: "pass" | "fail" | "warn";
|
|
2631
|
+
check_id: string;
|
|
2632
|
+
}[];
|
|
2633
|
+
}, {
|
|
2634
|
+
valid: boolean;
|
|
2635
|
+
version: string;
|
|
2636
|
+
action: "validate_validation_chain";
|
|
2637
|
+
warnings: string[];
|
|
2638
|
+
project: string;
|
|
2639
|
+
blocking_issues: string[];
|
|
2640
|
+
derivation_checks: {
|
|
2641
|
+
message: string;
|
|
2642
|
+
status: "pass" | "fail" | "warn";
|
|
2643
|
+
check_id: string;
|
|
2644
|
+
}[];
|
|
2645
|
+
propagation_checks: {
|
|
2646
|
+
message: string;
|
|
2647
|
+
status: "pass" | "fail" | "warn";
|
|
2648
|
+
check_id: string;
|
|
2649
|
+
}[];
|
|
2650
|
+
cross_stage_checks: {
|
|
2651
|
+
message: string;
|
|
2652
|
+
status: "pass" | "fail" | "warn";
|
|
2653
|
+
check_id: string;
|
|
2654
|
+
}[];
|
|
2655
|
+
impact_map_checks: {
|
|
2656
|
+
message: string;
|
|
2657
|
+
status: "pass" | "fail" | "warn";
|
|
2658
|
+
check_id: string;
|
|
2659
|
+
}[];
|
|
2660
|
+
}>, z.ZodObject<{
|
|
2661
|
+
action: z.ZodLiteral<"apply_improvement">;
|
|
2662
|
+
proposal_id: z.ZodString;
|
|
2663
|
+
previous_status: z.ZodString;
|
|
2664
|
+
new_status: z.ZodString;
|
|
2665
|
+
applied: z.ZodBoolean;
|
|
2666
|
+
apply_mode: z.ZodEnum<["config_override", "source_patch"]>;
|
|
2667
|
+
override_file: z.ZodOptional<z.ZodString>;
|
|
2668
|
+
patch_file: z.ZodOptional<z.ZodString>;
|
|
2669
|
+
message: z.ZodString;
|
|
2670
|
+
next_action: z.ZodEnum<["get_improvement_queue", "get_flywheel_config", "none"]>;
|
|
2671
|
+
}, "strict", z.ZodTypeAny, {
|
|
2672
|
+
message: string;
|
|
2673
|
+
action: "apply_improvement";
|
|
2674
|
+
applied: boolean;
|
|
2675
|
+
proposal_id: string;
|
|
2676
|
+
next_action: "none" | "get_improvement_queue" | "get_flywheel_config";
|
|
2677
|
+
previous_status: string;
|
|
2678
|
+
new_status: string;
|
|
2679
|
+
apply_mode: "config_override" | "source_patch";
|
|
2680
|
+
override_file?: string | undefined;
|
|
2681
|
+
patch_file?: string | undefined;
|
|
2682
|
+
}, {
|
|
2683
|
+
message: string;
|
|
2684
|
+
action: "apply_improvement";
|
|
2685
|
+
applied: boolean;
|
|
2686
|
+
proposal_id: string;
|
|
2687
|
+
next_action: "none" | "get_improvement_queue" | "get_flywheel_config";
|
|
2688
|
+
previous_status: string;
|
|
2689
|
+
new_status: string;
|
|
2690
|
+
apply_mode: "config_override" | "source_patch";
|
|
2691
|
+
override_file?: string | undefined;
|
|
2692
|
+
patch_file?: string | undefined;
|
|
2693
|
+
}>, z.ZodObject<{
|
|
2694
|
+
action: z.ZodLiteral<"get_improvement_queue">;
|
|
2695
|
+
total: z.ZodNumber;
|
|
2696
|
+
filtered_count: z.ZodNumber;
|
|
2697
|
+
proposals: z.ZodArray<z.ZodObject<{
|
|
2698
|
+
proposal_id: z.ZodString;
|
|
2699
|
+
source_diagnosis_id: z.ZodString;
|
|
2700
|
+
type: z.ZodString;
|
|
2701
|
+
priority: z.ZodString;
|
|
2702
|
+
automation: z.ZodEnum<["full", "semi", "manual"]>;
|
|
2703
|
+
apply_mode: z.ZodEnum<["config_override", "source_patch"]>;
|
|
2704
|
+
override_category: z.ZodOptional<z.ZodString>;
|
|
2705
|
+
title: z.ZodString;
|
|
2706
|
+
description: z.ZodString;
|
|
2707
|
+
target: z.ZodString;
|
|
2708
|
+
review_status: z.ZodEnum<["pending", "approved", "rejected", "applied"]>;
|
|
2709
|
+
ab_test_recommended: z.ZodBoolean;
|
|
2710
|
+
persisted_at: z.ZodOptional<z.ZodString>;
|
|
2711
|
+
reviewed_at: z.ZodOptional<z.ZodString>;
|
|
2712
|
+
}, "strip", z.ZodTypeAny, {
|
|
2713
|
+
type: string;
|
|
2714
|
+
description: string;
|
|
2715
|
+
title: string;
|
|
2716
|
+
priority: string;
|
|
2717
|
+
target: string;
|
|
2718
|
+
automation: "full" | "manual" | "semi";
|
|
2719
|
+
proposal_id: string;
|
|
2720
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
2721
|
+
apply_mode: "config_override" | "source_patch";
|
|
2722
|
+
source_diagnosis_id: string;
|
|
2723
|
+
ab_test_recommended: boolean;
|
|
2724
|
+
override_category?: string | undefined;
|
|
2725
|
+
persisted_at?: string | undefined;
|
|
2726
|
+
reviewed_at?: string | undefined;
|
|
2727
|
+
}, {
|
|
2728
|
+
type: string;
|
|
2729
|
+
description: string;
|
|
2730
|
+
title: string;
|
|
2731
|
+
priority: string;
|
|
2732
|
+
target: string;
|
|
2733
|
+
automation: "full" | "manual" | "semi";
|
|
2734
|
+
proposal_id: string;
|
|
2735
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
2736
|
+
apply_mode: "config_override" | "source_patch";
|
|
2737
|
+
source_diagnosis_id: string;
|
|
2738
|
+
ab_test_recommended: boolean;
|
|
2739
|
+
override_category?: string | undefined;
|
|
2740
|
+
persisted_at?: string | undefined;
|
|
2741
|
+
reviewed_at?: string | undefined;
|
|
2742
|
+
}>, "many">;
|
|
2743
|
+
summary: z.ZodString;
|
|
2744
|
+
}, "strict", z.ZodTypeAny, {
|
|
2745
|
+
summary: string;
|
|
2746
|
+
action: "get_improvement_queue";
|
|
2747
|
+
total: number;
|
|
2748
|
+
filtered_count: number;
|
|
2749
|
+
proposals: {
|
|
2750
|
+
type: string;
|
|
2751
|
+
description: string;
|
|
2752
|
+
title: string;
|
|
2753
|
+
priority: string;
|
|
2754
|
+
target: string;
|
|
2755
|
+
automation: "full" | "manual" | "semi";
|
|
2756
|
+
proposal_id: string;
|
|
2757
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
2758
|
+
apply_mode: "config_override" | "source_patch";
|
|
2759
|
+
source_diagnosis_id: string;
|
|
2760
|
+
ab_test_recommended: boolean;
|
|
2761
|
+
override_category?: string | undefined;
|
|
2762
|
+
persisted_at?: string | undefined;
|
|
2763
|
+
reviewed_at?: string | undefined;
|
|
2764
|
+
}[];
|
|
2765
|
+
}, {
|
|
2766
|
+
summary: string;
|
|
2767
|
+
action: "get_improvement_queue";
|
|
2768
|
+
total: number;
|
|
2769
|
+
filtered_count: number;
|
|
2770
|
+
proposals: {
|
|
2771
|
+
type: string;
|
|
2772
|
+
description: string;
|
|
2773
|
+
title: string;
|
|
2774
|
+
priority: string;
|
|
2775
|
+
target: string;
|
|
2776
|
+
automation: "full" | "manual" | "semi";
|
|
2777
|
+
proposal_id: string;
|
|
2778
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
2779
|
+
apply_mode: "config_override" | "source_patch";
|
|
2780
|
+
source_diagnosis_id: string;
|
|
2781
|
+
ab_test_recommended: boolean;
|
|
2782
|
+
override_category?: string | undefined;
|
|
2783
|
+
persisted_at?: string | undefined;
|
|
2784
|
+
reviewed_at?: string | undefined;
|
|
2785
|
+
}[];
|
|
2786
|
+
}>, z.ZodObject<{
|
|
2787
|
+
action: z.ZodLiteral<"get_flywheel_config">;
|
|
2788
|
+
queue_path: z.ZodString;
|
|
2789
|
+
overrides_dir: z.ZodString;
|
|
2790
|
+
patches_dir: z.ZodString;
|
|
2791
|
+
total_proposals: z.ZodNumber;
|
|
2792
|
+
pending_count: z.ZodNumber;
|
|
2793
|
+
approved_count: z.ZodNumber;
|
|
2794
|
+
applied_count: z.ZodNumber;
|
|
2795
|
+
rejected_count: z.ZodNumber;
|
|
2796
|
+
override_files: z.ZodArray<z.ZodString, "many">;
|
|
2797
|
+
recent_proposals: z.ZodArray<z.ZodObject<{
|
|
2798
|
+
proposal_id: z.ZodString;
|
|
2799
|
+
type: z.ZodString;
|
|
2800
|
+
priority: z.ZodString;
|
|
2801
|
+
review_status: z.ZodEnum<["pending", "approved", "rejected", "applied"]>;
|
|
2802
|
+
title: z.ZodString;
|
|
2803
|
+
}, "strip", z.ZodTypeAny, {
|
|
2804
|
+
type: string;
|
|
2805
|
+
title: string;
|
|
2806
|
+
priority: string;
|
|
2807
|
+
proposal_id: string;
|
|
2808
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
2809
|
+
}, {
|
|
2810
|
+
type: string;
|
|
2811
|
+
title: string;
|
|
2812
|
+
priority: string;
|
|
2813
|
+
proposal_id: string;
|
|
2814
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
2815
|
+
}>, "many">;
|
|
2816
|
+
reflow_status: z.ZodEnum<["active", "idle", "blocked"]>;
|
|
2817
|
+
}, "strict", z.ZodTypeAny, {
|
|
2818
|
+
action: "get_flywheel_config";
|
|
2819
|
+
pending_count: number;
|
|
2820
|
+
queue_path: string;
|
|
2821
|
+
overrides_dir: string;
|
|
2822
|
+
patches_dir: string;
|
|
2823
|
+
total_proposals: number;
|
|
2824
|
+
approved_count: number;
|
|
2825
|
+
applied_count: number;
|
|
2826
|
+
rejected_count: number;
|
|
2827
|
+
override_files: string[];
|
|
2828
|
+
recent_proposals: {
|
|
2829
|
+
type: string;
|
|
2830
|
+
title: string;
|
|
2831
|
+
priority: string;
|
|
2832
|
+
proposal_id: string;
|
|
2833
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
2834
|
+
}[];
|
|
2835
|
+
reflow_status: "active" | "blocked" | "idle";
|
|
2836
|
+
}, {
|
|
2837
|
+
action: "get_flywheel_config";
|
|
2838
|
+
pending_count: number;
|
|
2839
|
+
queue_path: string;
|
|
2840
|
+
overrides_dir: string;
|
|
2841
|
+
patches_dir: string;
|
|
2842
|
+
total_proposals: number;
|
|
2843
|
+
approved_count: number;
|
|
2844
|
+
applied_count: number;
|
|
2845
|
+
rejected_count: number;
|
|
2846
|
+
override_files: string[];
|
|
2847
|
+
recent_proposals: {
|
|
2848
|
+
type: string;
|
|
2849
|
+
title: string;
|
|
2850
|
+
priority: string;
|
|
2851
|
+
proposal_id: string;
|
|
2852
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
2853
|
+
}[];
|
|
2854
|
+
reflow_status: "active" | "blocked" | "idle";
|
|
2855
|
+
}>, z.ZodObject<{
|
|
2856
|
+
action: z.ZodLiteral<"rollback_stage">;
|
|
2857
|
+
success: z.ZodBoolean;
|
|
2858
|
+
dry_run: z.ZodBoolean;
|
|
2859
|
+
target_stage: z.ZodNumber;
|
|
2860
|
+
previous_stage: z.ZodNumber;
|
|
2861
|
+
allowed: z.ZodBoolean;
|
|
2862
|
+
block_reason: z.ZodOptional<z.ZodString>;
|
|
2863
|
+
files_to_clean: z.ZodArray<z.ZodString, "many">;
|
|
2864
|
+
files_cleaned: z.ZodArray<z.ZodString, "many">;
|
|
2865
|
+
warnings: z.ZodArray<z.ZodString, "many">;
|
|
2866
|
+
iteration_strategy: z.ZodObject<{
|
|
2867
|
+
strategy: z.ZodEnum<["in_place", "fork"]>;
|
|
2868
|
+
reason: z.ZodString;
|
|
2869
|
+
fork_to_version: z.ZodOptional<z.ZodString>;
|
|
2870
|
+
published_objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2871
|
+
}, "strip", z.ZodTypeAny, {
|
|
2872
|
+
reason: string;
|
|
2873
|
+
strategy: "fork" | "in_place";
|
|
2874
|
+
fork_to_version?: string | undefined;
|
|
2875
|
+
published_objects?: string[] | undefined;
|
|
2876
|
+
}, {
|
|
2877
|
+
reason: string;
|
|
2878
|
+
strategy: "fork" | "in_place";
|
|
2879
|
+
fork_to_version?: string | undefined;
|
|
2880
|
+
published_objects?: string[] | undefined;
|
|
2881
|
+
}>;
|
|
2882
|
+
message: z.ZodString;
|
|
2883
|
+
}, "strict", z.ZodTypeAny, {
|
|
2884
|
+
message: string;
|
|
2885
|
+
success: boolean;
|
|
2886
|
+
action: "rollback_stage";
|
|
2887
|
+
warnings: string[];
|
|
2888
|
+
dry_run: boolean;
|
|
2889
|
+
target_stage: number;
|
|
2890
|
+
previous_stage: number;
|
|
2891
|
+
allowed: boolean;
|
|
2892
|
+
files_to_clean: string[];
|
|
2893
|
+
files_cleaned: string[];
|
|
2894
|
+
iteration_strategy: {
|
|
2895
|
+
reason: string;
|
|
2896
|
+
strategy: "fork" | "in_place";
|
|
2897
|
+
fork_to_version?: string | undefined;
|
|
2898
|
+
published_objects?: string[] | undefined;
|
|
2899
|
+
};
|
|
2900
|
+
block_reason?: string | undefined;
|
|
2901
|
+
}, {
|
|
2902
|
+
message: string;
|
|
2903
|
+
success: boolean;
|
|
2904
|
+
action: "rollback_stage";
|
|
2905
|
+
warnings: string[];
|
|
2906
|
+
dry_run: boolean;
|
|
2907
|
+
target_stage: number;
|
|
2908
|
+
previous_stage: number;
|
|
2909
|
+
allowed: boolean;
|
|
2910
|
+
files_to_clean: string[];
|
|
2911
|
+
files_cleaned: string[];
|
|
2912
|
+
iteration_strategy: {
|
|
2913
|
+
reason: string;
|
|
2914
|
+
strategy: "fork" | "in_place";
|
|
2915
|
+
fork_to_version?: string | undefined;
|
|
2916
|
+
published_objects?: string[] | undefined;
|
|
2917
|
+
};
|
|
2918
|
+
block_reason?: string | undefined;
|
|
2919
|
+
}>, z.ZodObject<{
|
|
2920
|
+
action: z.ZodLiteral<"get_reversibility">;
|
|
2921
|
+
query: z.ZodObject<{
|
|
2922
|
+
object_type: z.ZodOptional<z.ZodString>;
|
|
2923
|
+
lifecycle_state: z.ZodOptional<z.ZodString>;
|
|
2924
|
+
}, "strip", z.ZodTypeAny, {
|
|
2925
|
+
object_type?: string | undefined;
|
|
2926
|
+
lifecycle_state?: string | undefined;
|
|
2927
|
+
}, {
|
|
2928
|
+
object_type?: string | undefined;
|
|
2929
|
+
lifecycle_state?: string | undefined;
|
|
2930
|
+
}>;
|
|
2931
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
2932
|
+
object_type: z.ZodString;
|
|
2933
|
+
lifecycle_state: z.ZodEnum<["created", "referenced", "published", "bound"]>;
|
|
2934
|
+
struct_reversible: z.ZodEnum<["reversible", "limited", "immutable"]>;
|
|
2935
|
+
behavior_reversible: z.ZodBoolean;
|
|
2936
|
+
gas_impact: z.ZodEnum<["low", "medium", "high", "none"]>;
|
|
2937
|
+
explanation: z.ZodString;
|
|
2938
|
+
}, "strip", z.ZodTypeAny, {
|
|
2939
|
+
object_type: string;
|
|
2940
|
+
lifecycle_state: "created" | "published" | "referenced" | "bound";
|
|
2941
|
+
struct_reversible: "immutable" | "reversible" | "limited";
|
|
2942
|
+
behavior_reversible: boolean;
|
|
2943
|
+
gas_impact: "low" | "high" | "medium" | "none";
|
|
2944
|
+
explanation: string;
|
|
2945
|
+
}, {
|
|
2946
|
+
object_type: string;
|
|
2947
|
+
lifecycle_state: "created" | "published" | "referenced" | "bound";
|
|
2948
|
+
struct_reversible: "immutable" | "reversible" | "limited";
|
|
2949
|
+
behavior_reversible: boolean;
|
|
2950
|
+
gas_impact: "low" | "high" | "medium" | "none";
|
|
2951
|
+
explanation: string;
|
|
2952
|
+
}>, "many">;
|
|
2953
|
+
total: z.ZodNumber;
|
|
2954
|
+
}, "strict", z.ZodTypeAny, {
|
|
2955
|
+
entries: {
|
|
2956
|
+
object_type: string;
|
|
2957
|
+
lifecycle_state: "created" | "published" | "referenced" | "bound";
|
|
2958
|
+
struct_reversible: "immutable" | "reversible" | "limited";
|
|
2959
|
+
behavior_reversible: boolean;
|
|
2960
|
+
gas_impact: "low" | "high" | "medium" | "none";
|
|
2961
|
+
explanation: string;
|
|
2962
|
+
}[];
|
|
2963
|
+
action: "get_reversibility";
|
|
2964
|
+
query: {
|
|
2965
|
+
object_type?: string | undefined;
|
|
2966
|
+
lifecycle_state?: string | undefined;
|
|
2967
|
+
};
|
|
2968
|
+
total: number;
|
|
2969
|
+
}, {
|
|
2970
|
+
entries: {
|
|
2971
|
+
object_type: string;
|
|
2972
|
+
lifecycle_state: "created" | "published" | "referenced" | "bound";
|
|
2973
|
+
struct_reversible: "immutable" | "reversible" | "limited";
|
|
2974
|
+
behavior_reversible: boolean;
|
|
2975
|
+
gas_impact: "low" | "high" | "medium" | "none";
|
|
2976
|
+
explanation: string;
|
|
2977
|
+
}[];
|
|
2978
|
+
action: "get_reversibility";
|
|
2979
|
+
query: {
|
|
2980
|
+
object_type?: string | undefined;
|
|
2981
|
+
lifecycle_state?: string | undefined;
|
|
2982
|
+
};
|
|
2983
|
+
total: number;
|
|
2984
|
+
}>, z.ZodObject<{
|
|
2985
|
+
action: z.ZodLiteral<"assemble_context">;
|
|
2986
|
+
objects: z.ZodArray<z.ZodUnknown, "many">;
|
|
2987
|
+
events: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
2988
|
+
embedded_history: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2989
|
+
semantic_summary: z.ZodOptional<z.ZodUnknown>;
|
|
2990
|
+
context_digest: z.ZodString;
|
|
2991
|
+
next_action: z.ZodString;
|
|
2992
|
+
flywheel_collected: z.ZodOptional<z.ZodObject<{
|
|
2993
|
+
signature_recorded: z.ZodBoolean;
|
|
2994
|
+
proposal_created: z.ZodBoolean;
|
|
2995
|
+
proposal_id: z.ZodOptional<z.ZodString>;
|
|
2996
|
+
}, "strip", z.ZodTypeAny, {
|
|
2997
|
+
signature_recorded: boolean;
|
|
2998
|
+
proposal_created: boolean;
|
|
2999
|
+
proposal_id?: string | undefined;
|
|
3000
|
+
}, {
|
|
3001
|
+
signature_recorded: boolean;
|
|
3002
|
+
proposal_created: boolean;
|
|
3003
|
+
proposal_id?: string | undefined;
|
|
3004
|
+
}>>;
|
|
3005
|
+
}, "strict", z.ZodTypeAny, {
|
|
3006
|
+
action: "assemble_context";
|
|
3007
|
+
objects: unknown[];
|
|
3008
|
+
next_action: string;
|
|
3009
|
+
context_digest: string;
|
|
3010
|
+
events?: unknown[] | undefined;
|
|
3011
|
+
semantic_summary?: unknown;
|
|
3012
|
+
embedded_history?: Record<string, unknown> | undefined;
|
|
3013
|
+
flywheel_collected?: {
|
|
3014
|
+
signature_recorded: boolean;
|
|
3015
|
+
proposal_created: boolean;
|
|
3016
|
+
proposal_id?: string | undefined;
|
|
3017
|
+
} | undefined;
|
|
3018
|
+
}, {
|
|
3019
|
+
action: "assemble_context";
|
|
3020
|
+
objects: unknown[];
|
|
3021
|
+
next_action: string;
|
|
3022
|
+
context_digest: string;
|
|
3023
|
+
events?: unknown[] | undefined;
|
|
3024
|
+
semantic_summary?: unknown;
|
|
3025
|
+
embedded_history?: Record<string, unknown> | undefined;
|
|
3026
|
+
flywheel_collected?: {
|
|
3027
|
+
signature_recorded: boolean;
|
|
3028
|
+
proposal_created: boolean;
|
|
3029
|
+
proposal_id?: string | undefined;
|
|
3030
|
+
} | undefined;
|
|
3031
|
+
}>]>;
|
|
3032
|
+
}, "strict", z.ZodTypeAny, {
|
|
3033
|
+
result: {
|
|
3034
|
+
action: "analyze_intent";
|
|
3035
|
+
warnings: string[];
|
|
3036
|
+
puzzles: Record<string, {
|
|
3037
|
+
puzzle: Record<string, unknown>;
|
|
3038
|
+
completeness: Record<string, unknown>;
|
|
3039
|
+
missing_dimensions: string[];
|
|
3040
|
+
}>;
|
|
3041
|
+
intent_parsed: {
|
|
3042
|
+
industry: string;
|
|
3043
|
+
primary_object: string;
|
|
3044
|
+
secondary_objects: string[];
|
|
3045
|
+
detected_scenes: {
|
|
3046
|
+
object: string;
|
|
3047
|
+
scene_id: string;
|
|
3048
|
+
}[];
|
|
3049
|
+
keyword_matches: {
|
|
3050
|
+
category: string;
|
|
3051
|
+
keyword: string;
|
|
3052
|
+
matched_objects: string[];
|
|
3053
|
+
required_level: "C" | "R" | "OPTIONAL";
|
|
3054
|
+
match_count: number;
|
|
3055
|
+
}[];
|
|
3056
|
+
};
|
|
3057
|
+
overall_completeness: "partial" | "complete" | "empty";
|
|
3058
|
+
next_step: string;
|
|
3059
|
+
recommended_creation_order: string[];
|
|
3060
|
+
next_action: "none" | "aggregate_risks";
|
|
3061
|
+
gate_validation?: {
|
|
3062
|
+
warnings: string[];
|
|
3063
|
+
stage: number;
|
|
3064
|
+
passed: boolean;
|
|
3065
|
+
checks: {
|
|
3066
|
+
message: string;
|
|
3067
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
3068
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
3069
|
+
}[];
|
|
3070
|
+
blocking_issues: string[];
|
|
3071
|
+
can_proceed: boolean;
|
|
3072
|
+
} | undefined;
|
|
3073
|
+
} | {
|
|
3074
|
+
status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
|
|
3075
|
+
action: "aggregate_risks";
|
|
3076
|
+
warnings: string[];
|
|
3077
|
+
user_action_required: string;
|
|
3078
|
+
can_proceed: boolean;
|
|
3079
|
+
next_action: "none" | "generate_deployment_doc" | "fix_risks";
|
|
3080
|
+
namespace: {
|
|
3081
|
+
version: string;
|
|
3082
|
+
prefix: string;
|
|
3083
|
+
industry?: string | undefined;
|
|
3084
|
+
};
|
|
3085
|
+
findings: {
|
|
3086
|
+
message: string;
|
|
3087
|
+
object_type: string;
|
|
3088
|
+
severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
|
|
3089
|
+
entry_id: string;
|
|
3090
|
+
risk_rule_id: string;
|
|
3091
|
+
fix_suggestion: string;
|
|
3092
|
+
details?: {
|
|
3093
|
+
field_path?: string | undefined;
|
|
3094
|
+
rule_source?: string | undefined;
|
|
3095
|
+
} | undefined;
|
|
3096
|
+
}[];
|
|
3097
|
+
severity_summary: {
|
|
3098
|
+
CRITICAL: number;
|
|
3099
|
+
HIGH: number;
|
|
3100
|
+
MEDIUM: number;
|
|
3101
|
+
LOW: number;
|
|
3102
|
+
INFO: number;
|
|
3103
|
+
};
|
|
3104
|
+
calibrated_at: number;
|
|
3105
|
+
gate_validation?: {
|
|
3106
|
+
warnings: string[];
|
|
3107
|
+
stage: number;
|
|
3108
|
+
passed: boolean;
|
|
3109
|
+
checks: {
|
|
3110
|
+
message: string;
|
|
3111
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
3112
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
3113
|
+
}[];
|
|
3114
|
+
blocking_issues: string[];
|
|
3115
|
+
can_proceed: boolean;
|
|
3116
|
+
} | undefined;
|
|
3117
|
+
pending_confirmations?: {
|
|
3118
|
+
object_type: string;
|
|
3119
|
+
description: string;
|
|
3120
|
+
entry_id: string;
|
|
3121
|
+
risk_rule_id: string;
|
|
3122
|
+
fix_suggestion: string;
|
|
3123
|
+
}[] | undefined;
|
|
3124
|
+
fix_suggestions_grouped?: Record<string, {
|
|
3125
|
+
message: string;
|
|
3126
|
+
severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
|
|
3127
|
+
entry_id: string;
|
|
3128
|
+
risk_rule_id: string;
|
|
1334
3129
|
fix_suggestion: string;
|
|
1335
3130
|
}[]> | undefined;
|
|
1336
3131
|
} | {
|
|
@@ -1344,8 +3139,8 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1344
3139
|
};
|
|
1345
3140
|
action: "generate_deployment_doc";
|
|
1346
3141
|
user_action_required: string;
|
|
1347
|
-
next_action: "none" | "trace_substeps" | "fix_doc_errors";
|
|
1348
3142
|
can_proceed: boolean;
|
|
3143
|
+
next_action: "none" | "trace_substeps" | "fix_doc_errors";
|
|
1349
3144
|
validation?: {
|
|
1350
3145
|
valid: boolean;
|
|
1351
3146
|
errors: string[];
|
|
@@ -1356,6 +3151,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1356
3151
|
notes?: string | undefined;
|
|
1357
3152
|
}[];
|
|
1358
3153
|
} | undefined;
|
|
3154
|
+
gate_validation?: {
|
|
3155
|
+
warnings: string[];
|
|
3156
|
+
stage: number;
|
|
3157
|
+
passed: boolean;
|
|
3158
|
+
checks: {
|
|
3159
|
+
message: string;
|
|
3160
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
3161
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
3162
|
+
}[];
|
|
3163
|
+
blocking_issues: string[];
|
|
3164
|
+
can_proceed: boolean;
|
|
3165
|
+
} | undefined;
|
|
1359
3166
|
estimated_gas?: {
|
|
1360
3167
|
total_gas_mist: number;
|
|
1361
3168
|
per_object: {
|
|
@@ -1366,17 +3173,21 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1366
3173
|
}[];
|
|
1367
3174
|
publish_gas_mist: number;
|
|
1368
3175
|
} | undefined;
|
|
3176
|
+
persisted?: {
|
|
3177
|
+
all_files: string[];
|
|
3178
|
+
all_stages_passed: boolean;
|
|
3179
|
+
} | undefined;
|
|
1369
3180
|
} | {
|
|
1370
3181
|
network: "testnet" | "mainnet";
|
|
1371
3182
|
action: "trace_substeps";
|
|
1372
3183
|
user_action_required: string;
|
|
1373
3184
|
topological_order: string[];
|
|
3185
|
+
can_proceed: boolean;
|
|
1374
3186
|
next_action: "none" | "deploy" | "fix_substeps";
|
|
1375
3187
|
namespace: {
|
|
1376
3188
|
version: string;
|
|
1377
3189
|
prefix: string;
|
|
1378
3190
|
};
|
|
1379
|
-
can_proceed: boolean;
|
|
1380
3191
|
coherent: boolean;
|
|
1381
3192
|
dangling_inputs: {
|
|
1382
3193
|
field_path: string;
|
|
@@ -1410,13 +3221,25 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1410
3221
|
description: string;
|
|
1411
3222
|
check_id: "D-10";
|
|
1412
3223
|
};
|
|
3224
|
+
gate_validation?: {
|
|
3225
|
+
warnings: string[];
|
|
3226
|
+
stage: number;
|
|
3227
|
+
passed: boolean;
|
|
3228
|
+
checks: {
|
|
3229
|
+
message: string;
|
|
3230
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
3231
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
3232
|
+
}[];
|
|
3233
|
+
blocking_issues: string[];
|
|
3234
|
+
can_proceed: boolean;
|
|
3235
|
+
} | undefined;
|
|
1413
3236
|
} | {
|
|
1414
3237
|
version: string;
|
|
1415
3238
|
action: "get_project_status";
|
|
1416
3239
|
stage: number;
|
|
1417
3240
|
project: string;
|
|
1418
|
-
next_action: string;
|
|
1419
3241
|
can_proceed: boolean;
|
|
3242
|
+
next_action: string;
|
|
1420
3243
|
stage_name: string;
|
|
1421
3244
|
stage_description: string;
|
|
1422
3245
|
risk_status?: string | undefined;
|
|
@@ -1424,6 +3247,325 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1424
3247
|
risk_can_proceed?: boolean | undefined;
|
|
1425
3248
|
doc_generated?: boolean | undefined;
|
|
1426
3249
|
trace_coherent?: boolean | undefined;
|
|
3250
|
+
} | {
|
|
3251
|
+
action: "load_project";
|
|
3252
|
+
message?: string | undefined;
|
|
3253
|
+
version?: string | undefined;
|
|
3254
|
+
project?: string | undefined;
|
|
3255
|
+
items?: {
|
|
3256
|
+
version: string;
|
|
3257
|
+
prefix: string;
|
|
3258
|
+
dir_name: string;
|
|
3259
|
+
initialized: boolean;
|
|
3260
|
+
archived: boolean;
|
|
3261
|
+
needs_migration: boolean;
|
|
3262
|
+
chain_exists: boolean;
|
|
3263
|
+
sync_status: "archived" | "synced" | "local_only" | "uninitialized";
|
|
3264
|
+
forked_from?: string | undefined;
|
|
3265
|
+
}[] | undefined;
|
|
3266
|
+
total?: number | undefined;
|
|
3267
|
+
sync_status?: {
|
|
3268
|
+
initialized: boolean;
|
|
3269
|
+
archived: boolean;
|
|
3270
|
+
needs_migration: boolean;
|
|
3271
|
+
local_exists: boolean;
|
|
3272
|
+
} | undefined;
|
|
3273
|
+
local_exists?: boolean | undefined;
|
|
3274
|
+
manifest?: {
|
|
3275
|
+
version: string;
|
|
3276
|
+
prefix: string;
|
|
3277
|
+
schema_version: string;
|
|
3278
|
+
mcp_version: string;
|
|
3279
|
+
created_at: string;
|
|
3280
|
+
updated_at: string;
|
|
3281
|
+
forked_from?: string | undefined;
|
|
3282
|
+
needs_recalibration?: boolean | undefined;
|
|
3283
|
+
} | undefined;
|
|
3284
|
+
stage_state?: {
|
|
3285
|
+
stage?: number | undefined;
|
|
3286
|
+
archived?: boolean | undefined;
|
|
3287
|
+
updated_at?: number | undefined;
|
|
3288
|
+
has_published_object?: boolean | undefined;
|
|
3289
|
+
} | undefined;
|
|
3290
|
+
migration?: {
|
|
3291
|
+
message: string;
|
|
3292
|
+
needs_recalibration: boolean;
|
|
3293
|
+
migrated: boolean;
|
|
3294
|
+
from_version: string;
|
|
3295
|
+
to_version: string;
|
|
3296
|
+
steps_executed: string[];
|
|
3297
|
+
backup_path?: string | undefined;
|
|
3298
|
+
} | undefined;
|
|
3299
|
+
} | {
|
|
3300
|
+
action: "fork_project";
|
|
3301
|
+
warning: string;
|
|
3302
|
+
next_action: "analyze_intent";
|
|
3303
|
+
forked_from: string;
|
|
3304
|
+
new_prefix: string;
|
|
3305
|
+
new_version: string;
|
|
3306
|
+
new_path: string;
|
|
3307
|
+
copied_files: string[];
|
|
3308
|
+
copied_file_count: number;
|
|
3309
|
+
} | {
|
|
3310
|
+
version: string;
|
|
3311
|
+
files: {
|
|
3312
|
+
path: string;
|
|
3313
|
+
content: string;
|
|
3314
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
3315
|
+
size: number;
|
|
3316
|
+
}[];
|
|
3317
|
+
action: "export_project";
|
|
3318
|
+
project: string;
|
|
3319
|
+
total_files: number;
|
|
3320
|
+
} | {
|
|
3321
|
+
version: string;
|
|
3322
|
+
files: {
|
|
3323
|
+
path: string;
|
|
3324
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
3325
|
+
size: number;
|
|
3326
|
+
mtime: number;
|
|
3327
|
+
}[];
|
|
3328
|
+
action: "get_project_files";
|
|
3329
|
+
project: string;
|
|
3330
|
+
total_files: number;
|
|
3331
|
+
} | {
|
|
3332
|
+
valid: boolean;
|
|
3333
|
+
version: string;
|
|
3334
|
+
action: "validate_stage_unit";
|
|
3335
|
+
stage: number;
|
|
3336
|
+
project: string;
|
|
3337
|
+
checks: {
|
|
3338
|
+
message: string;
|
|
3339
|
+
status: "pass" | "fail" | "warn";
|
|
3340
|
+
check_id: string;
|
|
3341
|
+
}[];
|
|
3342
|
+
blocking_issues: string[];
|
|
3343
|
+
missing_files: string[];
|
|
3344
|
+
stage_passed?: boolean | undefined;
|
|
3345
|
+
} | {
|
|
3346
|
+
version: string;
|
|
3347
|
+
action: "get_stage_assessment";
|
|
3348
|
+
stage: number;
|
|
3349
|
+
project: string;
|
|
3350
|
+
found: boolean;
|
|
3351
|
+
assessment?: {
|
|
3352
|
+
recommendations: string[];
|
|
3353
|
+
stage: number;
|
|
3354
|
+
findings: {
|
|
3355
|
+
description: string;
|
|
3356
|
+
severity: "info" | "critical" | "warn";
|
|
3357
|
+
finding_id: string;
|
|
3358
|
+
criterion_id: string;
|
|
3359
|
+
evidence?: unknown;
|
|
3360
|
+
}[];
|
|
3361
|
+
assessed_at: number;
|
|
3362
|
+
goal_completion: Record<string, number>;
|
|
3363
|
+
} | undefined;
|
|
3364
|
+
} | {
|
|
3365
|
+
version: string;
|
|
3366
|
+
action: "get_stage_risk_policy";
|
|
3367
|
+
stage: number;
|
|
3368
|
+
project: string;
|
|
3369
|
+
found: boolean;
|
|
3370
|
+
risk_policy?: {
|
|
3371
|
+
stage: number;
|
|
3372
|
+
risks: {
|
|
3373
|
+
owner: "user" | "ai" | "system";
|
|
3374
|
+
description: string;
|
|
3375
|
+
category: "financial" | "dependency" | "operational" | "security" | "naming";
|
|
3376
|
+
mitigation: string;
|
|
3377
|
+
risk_id: string;
|
|
3378
|
+
likelihood: "low" | "high" | "medium";
|
|
3379
|
+
impact: "low" | "high" | "critical" | "medium";
|
|
3380
|
+
}[];
|
|
3381
|
+
active_controls: {
|
|
3382
|
+
control_id: string;
|
|
3383
|
+
control_type: "preventive" | "detective" | "corrective";
|
|
3384
|
+
target_risk: string;
|
|
3385
|
+
implementation: string;
|
|
3386
|
+
verified: boolean;
|
|
3387
|
+
}[];
|
|
3388
|
+
residual_risks: string[];
|
|
3389
|
+
} | undefined;
|
|
3390
|
+
} | {
|
|
3391
|
+
version: string;
|
|
3392
|
+
action: "get_doc_relations";
|
|
3393
|
+
project: string;
|
|
3394
|
+
found: boolean;
|
|
3395
|
+
relations?: {
|
|
3396
|
+
version: string;
|
|
3397
|
+
generated_at: number;
|
|
3398
|
+
project_invariants: {
|
|
3399
|
+
description: string;
|
|
3400
|
+
invariant_id: string;
|
|
3401
|
+
verified_by_stages: number[];
|
|
3402
|
+
}[];
|
|
3403
|
+
stage_units: {
|
|
3404
|
+
stage: number;
|
|
3405
|
+
goal_id: string;
|
|
3406
|
+
assessment_id: string;
|
|
3407
|
+
risk_policy_id: string;
|
|
3408
|
+
verification_id: string;
|
|
3409
|
+
artifacts: string[];
|
|
3410
|
+
}[];
|
|
3411
|
+
derivations: {
|
|
3412
|
+
source_type: "project_invariant" | "project_goal";
|
|
3413
|
+
target_type: "stage_goal" | "stage_risk" | "stage_verification";
|
|
3414
|
+
target_stage: number;
|
|
3415
|
+
source_id: string;
|
|
3416
|
+
target_id: string;
|
|
3417
|
+
derivation_logic: string;
|
|
3418
|
+
}[];
|
|
3419
|
+
propagation_rules: {
|
|
3420
|
+
rule_id: string;
|
|
3421
|
+
trigger: {
|
|
3422
|
+
stage: number;
|
|
3423
|
+
event: "verification_passed" | "verification_failed";
|
|
3424
|
+
};
|
|
3425
|
+
effect: {
|
|
3426
|
+
action: "verify" | "block";
|
|
3427
|
+
target: "project_invariant" | "next_stage";
|
|
3428
|
+
};
|
|
3429
|
+
}[];
|
|
3430
|
+
impact_map: Record<string, string[]>;
|
|
3431
|
+
} | undefined;
|
|
3432
|
+
} | {
|
|
3433
|
+
version: string;
|
|
3434
|
+
action: "update_deployment_doc";
|
|
3435
|
+
project: string;
|
|
3436
|
+
next_action: "none" | "trace_substeps" | "validate_validation_chain";
|
|
3437
|
+
all_stages_passed: boolean;
|
|
3438
|
+
updated: boolean;
|
|
3439
|
+
updated_files: string[];
|
|
3440
|
+
updated_file_count: number;
|
|
3441
|
+
impact_summary: {
|
|
3442
|
+
stages_affected: number[];
|
|
3443
|
+
relations_rebuilt: boolean;
|
|
3444
|
+
};
|
|
3445
|
+
} | {
|
|
3446
|
+
valid: boolean;
|
|
3447
|
+
version: string;
|
|
3448
|
+
action: "validate_validation_chain";
|
|
3449
|
+
warnings: string[];
|
|
3450
|
+
project: string;
|
|
3451
|
+
blocking_issues: string[];
|
|
3452
|
+
derivation_checks: {
|
|
3453
|
+
message: string;
|
|
3454
|
+
status: "pass" | "fail" | "warn";
|
|
3455
|
+
check_id: string;
|
|
3456
|
+
}[];
|
|
3457
|
+
propagation_checks: {
|
|
3458
|
+
message: string;
|
|
3459
|
+
status: "pass" | "fail" | "warn";
|
|
3460
|
+
check_id: string;
|
|
3461
|
+
}[];
|
|
3462
|
+
cross_stage_checks: {
|
|
3463
|
+
message: string;
|
|
3464
|
+
status: "pass" | "fail" | "warn";
|
|
3465
|
+
check_id: string;
|
|
3466
|
+
}[];
|
|
3467
|
+
impact_map_checks: {
|
|
3468
|
+
message: string;
|
|
3469
|
+
status: "pass" | "fail" | "warn";
|
|
3470
|
+
check_id: string;
|
|
3471
|
+
}[];
|
|
3472
|
+
} | {
|
|
3473
|
+
message: string;
|
|
3474
|
+
action: "apply_improvement";
|
|
3475
|
+
applied: boolean;
|
|
3476
|
+
proposal_id: string;
|
|
3477
|
+
next_action: "none" | "get_improvement_queue" | "get_flywheel_config";
|
|
3478
|
+
previous_status: string;
|
|
3479
|
+
new_status: string;
|
|
3480
|
+
apply_mode: "config_override" | "source_patch";
|
|
3481
|
+
override_file?: string | undefined;
|
|
3482
|
+
patch_file?: string | undefined;
|
|
3483
|
+
} | {
|
|
3484
|
+
summary: string;
|
|
3485
|
+
action: "get_improvement_queue";
|
|
3486
|
+
total: number;
|
|
3487
|
+
filtered_count: number;
|
|
3488
|
+
proposals: {
|
|
3489
|
+
type: string;
|
|
3490
|
+
description: string;
|
|
3491
|
+
title: string;
|
|
3492
|
+
priority: string;
|
|
3493
|
+
target: string;
|
|
3494
|
+
automation: "full" | "manual" | "semi";
|
|
3495
|
+
proposal_id: string;
|
|
3496
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
3497
|
+
apply_mode: "config_override" | "source_patch";
|
|
3498
|
+
source_diagnosis_id: string;
|
|
3499
|
+
ab_test_recommended: boolean;
|
|
3500
|
+
override_category?: string | undefined;
|
|
3501
|
+
persisted_at?: string | undefined;
|
|
3502
|
+
reviewed_at?: string | undefined;
|
|
3503
|
+
}[];
|
|
3504
|
+
} | {
|
|
3505
|
+
action: "get_flywheel_config";
|
|
3506
|
+
pending_count: number;
|
|
3507
|
+
queue_path: string;
|
|
3508
|
+
overrides_dir: string;
|
|
3509
|
+
patches_dir: string;
|
|
3510
|
+
total_proposals: number;
|
|
3511
|
+
approved_count: number;
|
|
3512
|
+
applied_count: number;
|
|
3513
|
+
rejected_count: number;
|
|
3514
|
+
override_files: string[];
|
|
3515
|
+
recent_proposals: {
|
|
3516
|
+
type: string;
|
|
3517
|
+
title: string;
|
|
3518
|
+
priority: string;
|
|
3519
|
+
proposal_id: string;
|
|
3520
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
3521
|
+
}[];
|
|
3522
|
+
reflow_status: "active" | "blocked" | "idle";
|
|
3523
|
+
} | {
|
|
3524
|
+
message: string;
|
|
3525
|
+
success: boolean;
|
|
3526
|
+
action: "rollback_stage";
|
|
3527
|
+
warnings: string[];
|
|
3528
|
+
dry_run: boolean;
|
|
3529
|
+
target_stage: number;
|
|
3530
|
+
previous_stage: number;
|
|
3531
|
+
allowed: boolean;
|
|
3532
|
+
files_to_clean: string[];
|
|
3533
|
+
files_cleaned: string[];
|
|
3534
|
+
iteration_strategy: {
|
|
3535
|
+
reason: string;
|
|
3536
|
+
strategy: "fork" | "in_place";
|
|
3537
|
+
fork_to_version?: string | undefined;
|
|
3538
|
+
published_objects?: string[] | undefined;
|
|
3539
|
+
};
|
|
3540
|
+
block_reason?: string | undefined;
|
|
3541
|
+
} | {
|
|
3542
|
+
entries: {
|
|
3543
|
+
object_type: string;
|
|
3544
|
+
lifecycle_state: "created" | "published" | "referenced" | "bound";
|
|
3545
|
+
struct_reversible: "immutable" | "reversible" | "limited";
|
|
3546
|
+
behavior_reversible: boolean;
|
|
3547
|
+
gas_impact: "low" | "high" | "medium" | "none";
|
|
3548
|
+
explanation: string;
|
|
3549
|
+
}[];
|
|
3550
|
+
action: "get_reversibility";
|
|
3551
|
+
query: {
|
|
3552
|
+
object_type?: string | undefined;
|
|
3553
|
+
lifecycle_state?: string | undefined;
|
|
3554
|
+
};
|
|
3555
|
+
total: number;
|
|
3556
|
+
} | {
|
|
3557
|
+
action: "assemble_context";
|
|
3558
|
+
objects: unknown[];
|
|
3559
|
+
next_action: string;
|
|
3560
|
+
context_digest: string;
|
|
3561
|
+
events?: unknown[] | undefined;
|
|
3562
|
+
semantic_summary?: unknown;
|
|
3563
|
+
embedded_history?: Record<string, unknown> | undefined;
|
|
3564
|
+
flywheel_collected?: {
|
|
3565
|
+
signature_recorded: boolean;
|
|
3566
|
+
proposal_created: boolean;
|
|
3567
|
+
proposal_id?: string | undefined;
|
|
3568
|
+
} | undefined;
|
|
1427
3569
|
} | {
|
|
1428
3570
|
action: string;
|
|
1429
3571
|
items: Record<string, unknown>[];
|
|
@@ -1470,11 +3612,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1470
3612
|
next_step: string;
|
|
1471
3613
|
recommended_creation_order: string[];
|
|
1472
3614
|
next_action: "none" | "aggregate_risks";
|
|
3615
|
+
gate_validation?: {
|
|
3616
|
+
warnings: string[];
|
|
3617
|
+
stage: number;
|
|
3618
|
+
passed: boolean;
|
|
3619
|
+
checks: {
|
|
3620
|
+
message: string;
|
|
3621
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
3622
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
3623
|
+
}[];
|
|
3624
|
+
blocking_issues: string[];
|
|
3625
|
+
can_proceed: boolean;
|
|
3626
|
+
} | undefined;
|
|
1473
3627
|
} | {
|
|
1474
3628
|
status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
|
|
1475
3629
|
action: "aggregate_risks";
|
|
1476
3630
|
warnings: string[];
|
|
1477
3631
|
user_action_required: string;
|
|
3632
|
+
can_proceed: boolean;
|
|
1478
3633
|
next_action: "none" | "generate_deployment_doc" | "fix_risks";
|
|
1479
3634
|
namespace: {
|
|
1480
3635
|
version: string;
|
|
@@ -1501,7 +3656,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1501
3656
|
INFO: number;
|
|
1502
3657
|
};
|
|
1503
3658
|
calibrated_at: number;
|
|
1504
|
-
|
|
3659
|
+
gate_validation?: {
|
|
3660
|
+
warnings: string[];
|
|
3661
|
+
stage: number;
|
|
3662
|
+
passed: boolean;
|
|
3663
|
+
checks: {
|
|
3664
|
+
message: string;
|
|
3665
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
3666
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
3667
|
+
}[];
|
|
3668
|
+
blocking_issues: string[];
|
|
3669
|
+
can_proceed: boolean;
|
|
3670
|
+
} | undefined;
|
|
1505
3671
|
pending_confirmations?: {
|
|
1506
3672
|
object_type: string;
|
|
1507
3673
|
description: string;
|
|
@@ -1527,8 +3693,8 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1527
3693
|
};
|
|
1528
3694
|
action: "generate_deployment_doc";
|
|
1529
3695
|
user_action_required: string;
|
|
1530
|
-
next_action: "none" | "trace_substeps" | "fix_doc_errors";
|
|
1531
3696
|
can_proceed: boolean;
|
|
3697
|
+
next_action: "none" | "trace_substeps" | "fix_doc_errors";
|
|
1532
3698
|
validation?: {
|
|
1533
3699
|
valid: boolean;
|
|
1534
3700
|
errors: string[];
|
|
@@ -1539,6 +3705,18 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1539
3705
|
notes?: string | undefined;
|
|
1540
3706
|
}[];
|
|
1541
3707
|
} | undefined;
|
|
3708
|
+
gate_validation?: {
|
|
3709
|
+
warnings: string[];
|
|
3710
|
+
stage: number;
|
|
3711
|
+
passed: boolean;
|
|
3712
|
+
checks: {
|
|
3713
|
+
message: string;
|
|
3714
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
3715
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
3716
|
+
}[];
|
|
3717
|
+
blocking_issues: string[];
|
|
3718
|
+
can_proceed: boolean;
|
|
3719
|
+
} | undefined;
|
|
1542
3720
|
estimated_gas?: {
|
|
1543
3721
|
total_gas_mist: number;
|
|
1544
3722
|
per_object: {
|
|
@@ -1549,17 +3727,21 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1549
3727
|
}[];
|
|
1550
3728
|
publish_gas_mist: number;
|
|
1551
3729
|
} | undefined;
|
|
3730
|
+
persisted?: {
|
|
3731
|
+
all_files: string[];
|
|
3732
|
+
all_stages_passed: boolean;
|
|
3733
|
+
} | undefined;
|
|
1552
3734
|
} | {
|
|
1553
3735
|
network: "testnet" | "mainnet";
|
|
1554
3736
|
action: "trace_substeps";
|
|
1555
3737
|
user_action_required: string;
|
|
1556
3738
|
topological_order: string[];
|
|
3739
|
+
can_proceed: boolean;
|
|
1557
3740
|
next_action: "none" | "deploy" | "fix_substeps";
|
|
1558
3741
|
namespace: {
|
|
1559
3742
|
version: string;
|
|
1560
3743
|
prefix: string;
|
|
1561
3744
|
};
|
|
1562
|
-
can_proceed: boolean;
|
|
1563
3745
|
coherent: boolean;
|
|
1564
3746
|
dangling_inputs: {
|
|
1565
3747
|
field_path: string;
|
|
@@ -1593,13 +3775,25 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1593
3775
|
description: string;
|
|
1594
3776
|
check_id: "D-10";
|
|
1595
3777
|
};
|
|
3778
|
+
gate_validation?: {
|
|
3779
|
+
warnings: string[];
|
|
3780
|
+
stage: number;
|
|
3781
|
+
passed: boolean;
|
|
3782
|
+
checks: {
|
|
3783
|
+
message: string;
|
|
3784
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
3785
|
+
dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
|
|
3786
|
+
}[];
|
|
3787
|
+
blocking_issues: string[];
|
|
3788
|
+
can_proceed: boolean;
|
|
3789
|
+
} | undefined;
|
|
1596
3790
|
} | {
|
|
1597
3791
|
version: string;
|
|
1598
3792
|
action: "get_project_status";
|
|
1599
3793
|
stage: number;
|
|
1600
3794
|
project: string;
|
|
1601
|
-
next_action: string;
|
|
1602
3795
|
can_proceed: boolean;
|
|
3796
|
+
next_action: string;
|
|
1603
3797
|
stage_name: string;
|
|
1604
3798
|
stage_description: string;
|
|
1605
3799
|
risk_status?: string | undefined;
|
|
@@ -1607,6 +3801,325 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1607
3801
|
risk_can_proceed?: boolean | undefined;
|
|
1608
3802
|
doc_generated?: boolean | undefined;
|
|
1609
3803
|
trace_coherent?: boolean | undefined;
|
|
3804
|
+
} | {
|
|
3805
|
+
action: "load_project";
|
|
3806
|
+
message?: string | undefined;
|
|
3807
|
+
version?: string | undefined;
|
|
3808
|
+
project?: string | undefined;
|
|
3809
|
+
items?: {
|
|
3810
|
+
version: string;
|
|
3811
|
+
prefix: string;
|
|
3812
|
+
dir_name: string;
|
|
3813
|
+
initialized: boolean;
|
|
3814
|
+
archived: boolean;
|
|
3815
|
+
needs_migration: boolean;
|
|
3816
|
+
chain_exists: boolean;
|
|
3817
|
+
sync_status: "archived" | "synced" | "local_only" | "uninitialized";
|
|
3818
|
+
forked_from?: string | undefined;
|
|
3819
|
+
}[] | undefined;
|
|
3820
|
+
total?: number | undefined;
|
|
3821
|
+
sync_status?: {
|
|
3822
|
+
initialized: boolean;
|
|
3823
|
+
archived: boolean;
|
|
3824
|
+
needs_migration: boolean;
|
|
3825
|
+
local_exists: boolean;
|
|
3826
|
+
} | undefined;
|
|
3827
|
+
local_exists?: boolean | undefined;
|
|
3828
|
+
manifest?: {
|
|
3829
|
+
version: string;
|
|
3830
|
+
prefix: string;
|
|
3831
|
+
schema_version: string;
|
|
3832
|
+
mcp_version: string;
|
|
3833
|
+
created_at: string;
|
|
3834
|
+
updated_at: string;
|
|
3835
|
+
forked_from?: string | undefined;
|
|
3836
|
+
needs_recalibration?: boolean | undefined;
|
|
3837
|
+
} | undefined;
|
|
3838
|
+
stage_state?: {
|
|
3839
|
+
stage?: number | undefined;
|
|
3840
|
+
archived?: boolean | undefined;
|
|
3841
|
+
updated_at?: number | undefined;
|
|
3842
|
+
has_published_object?: boolean | undefined;
|
|
3843
|
+
} | undefined;
|
|
3844
|
+
migration?: {
|
|
3845
|
+
message: string;
|
|
3846
|
+
needs_recalibration: boolean;
|
|
3847
|
+
migrated: boolean;
|
|
3848
|
+
from_version: string;
|
|
3849
|
+
to_version: string;
|
|
3850
|
+
steps_executed: string[];
|
|
3851
|
+
backup_path?: string | undefined;
|
|
3852
|
+
} | undefined;
|
|
3853
|
+
} | {
|
|
3854
|
+
action: "fork_project";
|
|
3855
|
+
warning: string;
|
|
3856
|
+
next_action: "analyze_intent";
|
|
3857
|
+
forked_from: string;
|
|
3858
|
+
new_prefix: string;
|
|
3859
|
+
new_version: string;
|
|
3860
|
+
new_path: string;
|
|
3861
|
+
copied_files: string[];
|
|
3862
|
+
copied_file_count: number;
|
|
3863
|
+
} | {
|
|
3864
|
+
version: string;
|
|
3865
|
+
files: {
|
|
3866
|
+
path: string;
|
|
3867
|
+
content: string;
|
|
3868
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
3869
|
+
size: number;
|
|
3870
|
+
}[];
|
|
3871
|
+
action: "export_project";
|
|
3872
|
+
project: string;
|
|
3873
|
+
total_files: number;
|
|
3874
|
+
} | {
|
|
3875
|
+
version: string;
|
|
3876
|
+
files: {
|
|
3877
|
+
path: string;
|
|
3878
|
+
kind: "markdown" | "other" | "json" | "jsonl";
|
|
3879
|
+
size: number;
|
|
3880
|
+
mtime: number;
|
|
3881
|
+
}[];
|
|
3882
|
+
action: "get_project_files";
|
|
3883
|
+
project: string;
|
|
3884
|
+
total_files: number;
|
|
3885
|
+
} | {
|
|
3886
|
+
valid: boolean;
|
|
3887
|
+
version: string;
|
|
3888
|
+
action: "validate_stage_unit";
|
|
3889
|
+
stage: number;
|
|
3890
|
+
project: string;
|
|
3891
|
+
checks: {
|
|
3892
|
+
message: string;
|
|
3893
|
+
status: "pass" | "fail" | "warn";
|
|
3894
|
+
check_id: string;
|
|
3895
|
+
}[];
|
|
3896
|
+
blocking_issues: string[];
|
|
3897
|
+
missing_files: string[];
|
|
3898
|
+
stage_passed?: boolean | undefined;
|
|
3899
|
+
} | {
|
|
3900
|
+
version: string;
|
|
3901
|
+
action: "get_stage_assessment";
|
|
3902
|
+
stage: number;
|
|
3903
|
+
project: string;
|
|
3904
|
+
found: boolean;
|
|
3905
|
+
assessment?: {
|
|
3906
|
+
recommendations: string[];
|
|
3907
|
+
stage: number;
|
|
3908
|
+
findings: {
|
|
3909
|
+
description: string;
|
|
3910
|
+
severity: "info" | "critical" | "warn";
|
|
3911
|
+
finding_id: string;
|
|
3912
|
+
criterion_id: string;
|
|
3913
|
+
evidence?: unknown;
|
|
3914
|
+
}[];
|
|
3915
|
+
assessed_at: number;
|
|
3916
|
+
goal_completion: Record<string, number>;
|
|
3917
|
+
} | undefined;
|
|
3918
|
+
} | {
|
|
3919
|
+
version: string;
|
|
3920
|
+
action: "get_stage_risk_policy";
|
|
3921
|
+
stage: number;
|
|
3922
|
+
project: string;
|
|
3923
|
+
found: boolean;
|
|
3924
|
+
risk_policy?: {
|
|
3925
|
+
stage: number;
|
|
3926
|
+
risks: {
|
|
3927
|
+
owner: "user" | "ai" | "system";
|
|
3928
|
+
description: string;
|
|
3929
|
+
category: "financial" | "dependency" | "operational" | "security" | "naming";
|
|
3930
|
+
mitigation: string;
|
|
3931
|
+
risk_id: string;
|
|
3932
|
+
likelihood: "low" | "high" | "medium";
|
|
3933
|
+
impact: "low" | "high" | "critical" | "medium";
|
|
3934
|
+
}[];
|
|
3935
|
+
active_controls: {
|
|
3936
|
+
control_id: string;
|
|
3937
|
+
control_type: "preventive" | "detective" | "corrective";
|
|
3938
|
+
target_risk: string;
|
|
3939
|
+
implementation: string;
|
|
3940
|
+
verified: boolean;
|
|
3941
|
+
}[];
|
|
3942
|
+
residual_risks: string[];
|
|
3943
|
+
} | undefined;
|
|
3944
|
+
} | {
|
|
3945
|
+
version: string;
|
|
3946
|
+
action: "get_doc_relations";
|
|
3947
|
+
project: string;
|
|
3948
|
+
found: boolean;
|
|
3949
|
+
relations?: {
|
|
3950
|
+
version: string;
|
|
3951
|
+
generated_at: number;
|
|
3952
|
+
project_invariants: {
|
|
3953
|
+
description: string;
|
|
3954
|
+
invariant_id: string;
|
|
3955
|
+
verified_by_stages: number[];
|
|
3956
|
+
}[];
|
|
3957
|
+
stage_units: {
|
|
3958
|
+
stage: number;
|
|
3959
|
+
goal_id: string;
|
|
3960
|
+
assessment_id: string;
|
|
3961
|
+
risk_policy_id: string;
|
|
3962
|
+
verification_id: string;
|
|
3963
|
+
artifacts: string[];
|
|
3964
|
+
}[];
|
|
3965
|
+
derivations: {
|
|
3966
|
+
source_type: "project_invariant" | "project_goal";
|
|
3967
|
+
target_type: "stage_goal" | "stage_risk" | "stage_verification";
|
|
3968
|
+
target_stage: number;
|
|
3969
|
+
source_id: string;
|
|
3970
|
+
target_id: string;
|
|
3971
|
+
derivation_logic: string;
|
|
3972
|
+
}[];
|
|
3973
|
+
propagation_rules: {
|
|
3974
|
+
rule_id: string;
|
|
3975
|
+
trigger: {
|
|
3976
|
+
stage: number;
|
|
3977
|
+
event: "verification_passed" | "verification_failed";
|
|
3978
|
+
};
|
|
3979
|
+
effect: {
|
|
3980
|
+
action: "verify" | "block";
|
|
3981
|
+
target: "project_invariant" | "next_stage";
|
|
3982
|
+
};
|
|
3983
|
+
}[];
|
|
3984
|
+
impact_map: Record<string, string[]>;
|
|
3985
|
+
} | undefined;
|
|
3986
|
+
} | {
|
|
3987
|
+
version: string;
|
|
3988
|
+
action: "update_deployment_doc";
|
|
3989
|
+
project: string;
|
|
3990
|
+
next_action: "none" | "trace_substeps" | "validate_validation_chain";
|
|
3991
|
+
all_stages_passed: boolean;
|
|
3992
|
+
updated: boolean;
|
|
3993
|
+
updated_files: string[];
|
|
3994
|
+
updated_file_count: number;
|
|
3995
|
+
impact_summary: {
|
|
3996
|
+
stages_affected: number[];
|
|
3997
|
+
relations_rebuilt: boolean;
|
|
3998
|
+
};
|
|
3999
|
+
} | {
|
|
4000
|
+
valid: boolean;
|
|
4001
|
+
version: string;
|
|
4002
|
+
action: "validate_validation_chain";
|
|
4003
|
+
warnings: string[];
|
|
4004
|
+
project: string;
|
|
4005
|
+
blocking_issues: string[];
|
|
4006
|
+
derivation_checks: {
|
|
4007
|
+
message: string;
|
|
4008
|
+
status: "pass" | "fail" | "warn";
|
|
4009
|
+
check_id: string;
|
|
4010
|
+
}[];
|
|
4011
|
+
propagation_checks: {
|
|
4012
|
+
message: string;
|
|
4013
|
+
status: "pass" | "fail" | "warn";
|
|
4014
|
+
check_id: string;
|
|
4015
|
+
}[];
|
|
4016
|
+
cross_stage_checks: {
|
|
4017
|
+
message: string;
|
|
4018
|
+
status: "pass" | "fail" | "warn";
|
|
4019
|
+
check_id: string;
|
|
4020
|
+
}[];
|
|
4021
|
+
impact_map_checks: {
|
|
4022
|
+
message: string;
|
|
4023
|
+
status: "pass" | "fail" | "warn";
|
|
4024
|
+
check_id: string;
|
|
4025
|
+
}[];
|
|
4026
|
+
} | {
|
|
4027
|
+
message: string;
|
|
4028
|
+
action: "apply_improvement";
|
|
4029
|
+
applied: boolean;
|
|
4030
|
+
proposal_id: string;
|
|
4031
|
+
next_action: "none" | "get_improvement_queue" | "get_flywheel_config";
|
|
4032
|
+
previous_status: string;
|
|
4033
|
+
new_status: string;
|
|
4034
|
+
apply_mode: "config_override" | "source_patch";
|
|
4035
|
+
override_file?: string | undefined;
|
|
4036
|
+
patch_file?: string | undefined;
|
|
4037
|
+
} | {
|
|
4038
|
+
summary: string;
|
|
4039
|
+
action: "get_improvement_queue";
|
|
4040
|
+
total: number;
|
|
4041
|
+
filtered_count: number;
|
|
4042
|
+
proposals: {
|
|
4043
|
+
type: string;
|
|
4044
|
+
description: string;
|
|
4045
|
+
title: string;
|
|
4046
|
+
priority: string;
|
|
4047
|
+
target: string;
|
|
4048
|
+
automation: "full" | "manual" | "semi";
|
|
4049
|
+
proposal_id: string;
|
|
4050
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
4051
|
+
apply_mode: "config_override" | "source_patch";
|
|
4052
|
+
source_diagnosis_id: string;
|
|
4053
|
+
ab_test_recommended: boolean;
|
|
4054
|
+
override_category?: string | undefined;
|
|
4055
|
+
persisted_at?: string | undefined;
|
|
4056
|
+
reviewed_at?: string | undefined;
|
|
4057
|
+
}[];
|
|
4058
|
+
} | {
|
|
4059
|
+
action: "get_flywheel_config";
|
|
4060
|
+
pending_count: number;
|
|
4061
|
+
queue_path: string;
|
|
4062
|
+
overrides_dir: string;
|
|
4063
|
+
patches_dir: string;
|
|
4064
|
+
total_proposals: number;
|
|
4065
|
+
approved_count: number;
|
|
4066
|
+
applied_count: number;
|
|
4067
|
+
rejected_count: number;
|
|
4068
|
+
override_files: string[];
|
|
4069
|
+
recent_proposals: {
|
|
4070
|
+
type: string;
|
|
4071
|
+
title: string;
|
|
4072
|
+
priority: string;
|
|
4073
|
+
proposal_id: string;
|
|
4074
|
+
review_status: "pending" | "approved" | "rejected" | "applied";
|
|
4075
|
+
}[];
|
|
4076
|
+
reflow_status: "active" | "blocked" | "idle";
|
|
4077
|
+
} | {
|
|
4078
|
+
message: string;
|
|
4079
|
+
success: boolean;
|
|
4080
|
+
action: "rollback_stage";
|
|
4081
|
+
warnings: string[];
|
|
4082
|
+
dry_run: boolean;
|
|
4083
|
+
target_stage: number;
|
|
4084
|
+
previous_stage: number;
|
|
4085
|
+
allowed: boolean;
|
|
4086
|
+
files_to_clean: string[];
|
|
4087
|
+
files_cleaned: string[];
|
|
4088
|
+
iteration_strategy: {
|
|
4089
|
+
reason: string;
|
|
4090
|
+
strategy: "fork" | "in_place";
|
|
4091
|
+
fork_to_version?: string | undefined;
|
|
4092
|
+
published_objects?: string[] | undefined;
|
|
4093
|
+
};
|
|
4094
|
+
block_reason?: string | undefined;
|
|
4095
|
+
} | {
|
|
4096
|
+
entries: {
|
|
4097
|
+
object_type: string;
|
|
4098
|
+
lifecycle_state: "created" | "published" | "referenced" | "bound";
|
|
4099
|
+
struct_reversible: "immutable" | "reversible" | "limited";
|
|
4100
|
+
behavior_reversible: boolean;
|
|
4101
|
+
gas_impact: "low" | "high" | "medium" | "none";
|
|
4102
|
+
explanation: string;
|
|
4103
|
+
}[];
|
|
4104
|
+
action: "get_reversibility";
|
|
4105
|
+
query: {
|
|
4106
|
+
object_type?: string | undefined;
|
|
4107
|
+
lifecycle_state?: string | undefined;
|
|
4108
|
+
};
|
|
4109
|
+
total: number;
|
|
4110
|
+
} | {
|
|
4111
|
+
action: "assemble_context";
|
|
4112
|
+
objects: unknown[];
|
|
4113
|
+
next_action: string;
|
|
4114
|
+
context_digest: string;
|
|
4115
|
+
events?: unknown[] | undefined;
|
|
4116
|
+
semantic_summary?: unknown;
|
|
4117
|
+
embedded_history?: Record<string, unknown> | undefined;
|
|
4118
|
+
flywheel_collected?: {
|
|
4119
|
+
signature_recorded: boolean;
|
|
4120
|
+
proposal_created: boolean;
|
|
4121
|
+
proposal_id?: string | undefined;
|
|
4122
|
+
} | undefined;
|
|
1610
4123
|
} | {
|
|
1611
4124
|
action: string;
|
|
1612
4125
|
items: Record<string, unknown>[];
|