devcontour-harness 0.1.0-alpha.34 → 0.1.0-alpha.37
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/README.md +22 -2
- package/docs/contracts.md +309 -35
- package/docs/release-notes/0.1.0-alpha.35.md +27 -0
- package/docs/release-notes/0.1.0-alpha.36.md +26 -0
- package/docs/release-notes/0.1.0-alpha.37.md +40 -0
- package/docs/standalone.md +20 -0
- package/docs/toolchains.md +57 -2
- package/docs/upgrade.md +143 -0
- package/lib/agents/cli-adapter.d.ts +10 -1
- package/lib/agents/cli-adapter.js +38 -7
- package/lib/agents/schemas.d.ts +84 -2
- package/lib/agents/schemas.js +49 -1
- package/lib/agents/usage.d.ts +9 -0
- package/lib/agents/usage.js +22 -1
- package/lib/cli.js +149 -1
- package/lib/contracts/cli.d.ts +1544 -171
- package/lib/contracts/cli.js +233 -2
- package/lib/contracts/diagnosis.d.ts +10 -4
- package/lib/contracts/diagnosis.js +4 -0
- package/lib/contracts/errors.d.ts +9 -1
- package/lib/contracts/errors.js +8 -0
- package/lib/contracts/events.d.ts +468 -60
- package/lib/contracts/events.js +79 -0
- package/lib/contracts/execution.d.ts +301 -50
- package/lib/contracts/execution.js +60 -0
- package/lib/contracts/failure.d.ts +20 -3
- package/lib/contracts/failure.js +14 -2
- package/lib/contracts/handoff.d.ts +79 -20
- package/lib/contracts/handoff.js +42 -1
- package/lib/contracts/index.d.ts +1 -0
- package/lib/contracts/index.js +1 -0
- package/lib/contracts/input-state.d.ts +13 -0
- package/lib/contracts/input-state.js +32 -0
- package/lib/contracts/input.d.ts +442 -0
- package/lib/contracts/input.js +321 -0
- package/lib/contracts/planning.d.ts +4 -0
- package/lib/contracts/policy.d.ts +17 -2
- package/lib/contracts/policy.js +31 -2
- package/lib/contracts/ports.d.ts +64 -2
- package/lib/contracts/project.d.ts +127 -0
- package/lib/contracts/project.js +99 -0
- package/lib/contracts/published.d.ts +631 -92
- package/lib/contracts/published.js +4 -1
- package/lib/contracts/repair-policy.d.ts +30 -1
- package/lib/contracts/repair-policy.js +52 -0
- package/lib/contracts/report.d.ts +55 -21
- package/lib/contracts/report.js +33 -2
- package/lib/contracts/result.d.ts +28 -24
- package/lib/contracts/review.d.ts +47 -8
- package/lib/contracts/review.js +21 -1
- package/lib/control/harness.d.ts +2555 -51
- package/lib/control/harness.js +112 -6
- package/lib/control/recovery.d.ts +2 -2
- package/lib/control/report.js +1 -0
- package/lib/control/status.d.ts +30 -22
- package/lib/control/status.js +11 -1
- package/lib/control/workflow.d.ts +8 -8
- package/lib/engine/budget.d.ts +86 -3
- package/lib/engine/budget.js +45 -10
- package/lib/engine/classify.js +1 -1
- package/lib/engine/engine.d.ts +3091 -83
- package/lib/engine/engine.js +1209 -101
- package/lib/engine/failure.d.ts +1 -1
- package/lib/engine/failure.js +1 -1
- package/lib/engine/input-policy.d.ts +68 -0
- package/lib/engine/input-policy.js +285 -0
- package/lib/engine/input-requests.d.ts +64 -0
- package/lib/engine/input-requests.js +187 -0
- package/lib/engine/measured.d.ts +6 -1
- package/lib/engine/measured.js +12 -1
- package/lib/engine/prompt.d.ts +4 -2
- package/lib/engine/prompt.js +13 -1
- package/lib/engine/property-recovery.js +4 -0
- package/lib/engine/repair.d.ts +2 -0
- package/lib/engine/repair.js +13 -4
- package/lib/engine/reuse.js +2 -0
- package/lib/engine/runner.d.ts +33 -4
- package/lib/engine/runner.js +275 -23
- package/lib/environment/lifecycle.d.ts +8 -0
- package/lib/environment/lifecycle.js +15 -2
- package/lib/explain/state.d.ts +16 -2
- package/lib/explain/state.js +262 -79
- package/lib/handoff/markdown.js +10 -0
- package/lib/handoff/pack.js +42 -1
- package/lib/index.d.ts +11 -1
- package/lib/index.js +11 -1
- package/lib/init/inspect.d.ts +34 -0
- package/lib/init/inspect.js +292 -0
- package/lib/init/project.js +14 -31
- package/lib/integrations/connector/commands.d.ts +12 -12
- package/lib/integrations/connector/config.d.ts +4 -4
- package/lib/integrations/connector/delivery.d.ts +1 -1
- package/lib/integrations/relay-v2/protocol.d.ts +4 -4
- package/lib/profiles/resolve.d.ts +2 -1
- package/lib/projections/enums.d.ts +1 -1
- package/lib/projections/enums.js +4 -0
- package/lib/projections/index.d.ts +1 -0
- package/lib/projections/index.js +1 -0
- package/lib/projections/input.d.ts +17 -0
- package/lib/projections/input.js +28 -0
- package/lib/projections/stop.d.ts +42 -1
- package/lib/projections/stop.js +117 -6
- package/lib/report/compute.d.ts +4 -1
- package/lib/report/compute.js +26 -0
- package/lib/report/document.js +2 -1
- package/lib/storage/document.d.ts +68 -28
- package/lib/testing/index.d.ts +1 -1
- package/lib/testing/index.js +1 -1
- package/lib/testing/store-contract.d.ts +8 -1
- package/lib/testing/store-contract.js +194 -1
- package/lib/verification/confirm.d.ts +3 -3
- package/lib/verification/corpus.d.ts +9 -9
- package/lib/verification/gates.d.ts +119 -0
- package/lib/verification/gates.js +311 -4
- package/package.json +1 -1
- package/schemas/execution-document.schema.json +141 -0
- package/schemas/execution-policy.schema.json +26 -0
- package/schemas/handoff-pack.schema.json +155 -4
- package/schemas/input-request.schema.json +665 -0
- package/schemas/project-facts.schema.json +393 -0
- package/schemas/result-envelope.schema.json +2 -0
- package/schemas/run-event.schema.json +628 -0
- package/schemas/run-result.schema.json +2 -0
- package/schemas/stop-diagnosis.schema.json +7 -1
- package/schemas/value-report.schema.json +79 -7
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"BUDGET_EXHAUSTED",
|
|
31
31
|
"BUDGET_UNKNOWN",
|
|
32
32
|
"ATTEMPTS_EXHAUSTED",
|
|
33
|
+
"CONTEXT_EXHAUSTED",
|
|
34
|
+
"INPUT_REQUIRED",
|
|
33
35
|
"REVISION_CONFLICT",
|
|
34
36
|
"CANCELLED",
|
|
35
37
|
"NOT_FOUND",
|
|
@@ -51,6 +53,7 @@
|
|
|
51
53
|
"environment",
|
|
52
54
|
"timeout",
|
|
53
55
|
"stalled",
|
|
56
|
+
"context-exhausted",
|
|
54
57
|
"stale-base",
|
|
55
58
|
"empty-result",
|
|
56
59
|
"unfinished",
|
|
@@ -62,6 +65,7 @@
|
|
|
62
65
|
"cancelled",
|
|
63
66
|
"budget",
|
|
64
67
|
"needs-lead",
|
|
68
|
+
"needs-input",
|
|
65
69
|
"unknown",
|
|
66
70
|
"runtime-missing",
|
|
67
71
|
"controller-busy",
|
|
@@ -112,7 +116,9 @@
|
|
|
112
116
|
"user-decision",
|
|
113
117
|
"resume-queue",
|
|
114
118
|
"fix-environment",
|
|
115
|
-
"fix-access"
|
|
119
|
+
"fix-access",
|
|
120
|
+
"answer-input",
|
|
121
|
+
"apply-input"
|
|
116
122
|
]
|
|
117
123
|
},
|
|
118
124
|
"retryPlanned": {
|
|
@@ -1176,6 +1176,7 @@
|
|
|
1176
1176
|
"environment",
|
|
1177
1177
|
"timeout",
|
|
1178
1178
|
"stalled",
|
|
1179
|
+
"context-exhausted",
|
|
1179
1180
|
"stale-base",
|
|
1180
1181
|
"empty-result",
|
|
1181
1182
|
"unfinished",
|
|
@@ -1187,6 +1188,7 @@
|
|
|
1187
1188
|
"cancelled",
|
|
1188
1189
|
"budget",
|
|
1189
1190
|
"needs-lead",
|
|
1191
|
+
"needs-input",
|
|
1190
1192
|
"unknown"
|
|
1191
1193
|
]
|
|
1192
1194
|
}
|
|
@@ -1975,7 +1977,7 @@
|
|
|
1975
1977
|
"maximum": 9007199254740991
|
|
1976
1978
|
},
|
|
1977
1979
|
"byBucket": {
|
|
1978
|
-
"maxItems":
|
|
1980
|
+
"maxItems": 11,
|
|
1979
1981
|
"type": "array",
|
|
1980
1982
|
"items": {
|
|
1981
1983
|
"type": "object",
|
|
@@ -1992,7 +1994,8 @@
|
|
|
1992
1994
|
"operator",
|
|
1993
1995
|
"budget",
|
|
1994
1996
|
"unknown",
|
|
1995
|
-
"unclassified"
|
|
1997
|
+
"unclassified",
|
|
1998
|
+
"input"
|
|
1996
1999
|
]
|
|
1997
2000
|
},
|
|
1998
2001
|
"usd": {
|
|
@@ -2127,8 +2130,8 @@
|
|
|
2127
2130
|
"maximum": 9007199254740991
|
|
2128
2131
|
},
|
|
2129
2132
|
"buckets": {
|
|
2130
|
-
"minItems":
|
|
2131
|
-
"maxItems":
|
|
2133
|
+
"minItems": 11,
|
|
2134
|
+
"maxItems": 11,
|
|
2132
2135
|
"type": "array",
|
|
2133
2136
|
"items": {
|
|
2134
2137
|
"type": "object",
|
|
@@ -2145,7 +2148,8 @@
|
|
|
2145
2148
|
"operator",
|
|
2146
2149
|
"budget",
|
|
2147
2150
|
"unknown",
|
|
2148
|
-
"unclassified"
|
|
2151
|
+
"unclassified",
|
|
2152
|
+
"input"
|
|
2149
2153
|
]
|
|
2150
2154
|
},
|
|
2151
2155
|
"count": {
|
|
@@ -2584,6 +2588,73 @@
|
|
|
2584
2588
|
],
|
|
2585
2589
|
"additionalProperties": false
|
|
2586
2590
|
},
|
|
2591
|
+
"inputs": {
|
|
2592
|
+
"type": "object",
|
|
2593
|
+
"properties": {
|
|
2594
|
+
"questions": {
|
|
2595
|
+
"type": "integer",
|
|
2596
|
+
"minimum": 0,
|
|
2597
|
+
"maximum": 9007199254740991
|
|
2598
|
+
},
|
|
2599
|
+
"awaitingAnswer": {
|
|
2600
|
+
"type": "integer",
|
|
2601
|
+
"minimum": 0,
|
|
2602
|
+
"maximum": 9007199254740991
|
|
2603
|
+
},
|
|
2604
|
+
"answeredNotApplied": {
|
|
2605
|
+
"type": "integer",
|
|
2606
|
+
"minimum": 0,
|
|
2607
|
+
"maximum": 9007199254740991
|
|
2608
|
+
},
|
|
2609
|
+
"appliedAwaitingClaim": {
|
|
2610
|
+
"type": "integer",
|
|
2611
|
+
"minimum": 0,
|
|
2612
|
+
"maximum": 9007199254740991
|
|
2613
|
+
},
|
|
2614
|
+
"delivered": {
|
|
2615
|
+
"type": "integer",
|
|
2616
|
+
"minimum": 0,
|
|
2617
|
+
"maximum": 9007199254740991
|
|
2618
|
+
},
|
|
2619
|
+
"carryStale": {
|
|
2620
|
+
"type": "integer",
|
|
2621
|
+
"minimum": 0,
|
|
2622
|
+
"maximum": 9007199254740991
|
|
2623
|
+
},
|
|
2624
|
+
"closed": {
|
|
2625
|
+
"type": "integer",
|
|
2626
|
+
"minimum": 0,
|
|
2627
|
+
"maximum": 9007199254740991
|
|
2628
|
+
},
|
|
2629
|
+
"declined": {
|
|
2630
|
+
"type": "integer",
|
|
2631
|
+
"minimum": 0,
|
|
2632
|
+
"maximum": 9007199254740991
|
|
2633
|
+
},
|
|
2634
|
+
"followUps": {
|
|
2635
|
+
"type": "integer",
|
|
2636
|
+
"minimum": 0,
|
|
2637
|
+
"maximum": 9007199254740991
|
|
2638
|
+
},
|
|
2639
|
+
"assumptions": {
|
|
2640
|
+
"type": "integer",
|
|
2641
|
+
"minimum": 0,
|
|
2642
|
+
"maximum": 9007199254740991
|
|
2643
|
+
}
|
|
2644
|
+
},
|
|
2645
|
+
"required": [
|
|
2646
|
+
"questions",
|
|
2647
|
+
"awaitingAnswer",
|
|
2648
|
+
"answeredNotApplied",
|
|
2649
|
+
"appliedAwaitingClaim",
|
|
2650
|
+
"delivered",
|
|
2651
|
+
"closed",
|
|
2652
|
+
"declined",
|
|
2653
|
+
"followUps",
|
|
2654
|
+
"assumptions"
|
|
2655
|
+
],
|
|
2656
|
+
"additionalProperties": false
|
|
2657
|
+
},
|
|
2587
2658
|
"works": {
|
|
2588
2659
|
"type": "object",
|
|
2589
2660
|
"properties": {
|
|
@@ -2663,7 +2734,7 @@
|
|
|
2663
2734
|
]
|
|
2664
2735
|
},
|
|
2665
2736
|
"rejections": {
|
|
2666
|
-
"maxItems":
|
|
2737
|
+
"maxItems": 11,
|
|
2667
2738
|
"type": "array",
|
|
2668
2739
|
"items": {
|
|
2669
2740
|
"type": "object",
|
|
@@ -2680,7 +2751,8 @@
|
|
|
2680
2751
|
"operator",
|
|
2681
2752
|
"budget",
|
|
2682
2753
|
"unknown",
|
|
2683
|
-
"unclassified"
|
|
2754
|
+
"unclassified",
|
|
2755
|
+
"input"
|
|
2684
2756
|
]
|
|
2685
2757
|
},
|
|
2686
2758
|
"count": {
|