cohorte 2.10.1 → 3.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/assets/manifest.json +193 -0
- package/assets/migrations/config/README.md +12 -0
- package/assets/migrations/state/0001_init.sql +154 -0
- package/assets/prompts/README.md +11 -0
- package/assets/prompts/agents/fixer.md +7 -0
- package/assets/prompts/agents/implementer.md +12 -0
- package/assets/prompts/agents/reviewer.md +8 -0
- package/assets/prompts/agents/security-reviewer.md +7 -0
- package/assets/prompts/phases/build.md +5 -0
- package/assets/prompts/phases/review.md +5 -0
- package/assets/prompts/phases/test.md +5 -0
- package/assets/prompts/system.md +11 -0
- package/assets/schemas/agent-output.schema.json +225 -0
- package/assets/schemas/auth-status.schema.json +87 -0
- package/assets/schemas/command-result.schema.json +192 -0
- package/assets/schemas/commands.schema.json +952 -0
- package/assets/schemas/config.schema.json +2259 -0
- package/assets/schemas/doctor-report.schema.json +104 -0
- package/assets/schemas/events.schema.json +8514 -0
- package/assets/schemas/fake-script.schema.json +549 -0
- package/assets/schemas/inspect.schema.json +3133 -0
- package/assets/schemas/manifest.schema.json +79 -0
- package/assets/schemas/ownership.schema.json +52 -0
- package/assets/schemas/policy-verdict.schema.json +282 -0
- package/assets/schemas/project-model.schema.json +783 -0
- package/assets/schemas/project-status.schema.json +217 -0
- package/assets/schemas/reconcile-plan.schema.json +155 -0
- package/assets/schemas/run-diff.schema.json +177 -0
- package/assets/schemas/run-snapshot-manifest.schema.json +2104 -0
- package/assets/schemas/run-state.schema.json +1755 -0
- package/assets/schemas/runtime-capabilities.schema.json +1545 -0
- package/assets/schemas/sandbox-capabilities.schema.json +116 -0
- package/assets/schemas/skill.schema.json +87 -0
- package/assets/schemas/spec.schema.json +202 -0
- package/assets/schemas/tool-catalogue.schema.json +655 -0
- package/assets/schemas/trust-record.schema.json +38 -0
- package/assets/skills/README.md +9 -0
- package/assets/skills/inspect-surface.md +4 -0
- package/dist/agent-host.mjs +50 -0
- package/dist/agent-host.mjs.map +1 -0
- package/dist/bundle-manifest.json +102 -0
- package/dist/chunks/__host-DgGPyco9.mjs +18 -0
- package/dist/chunks/__host-DgGPyco9.mjs.map +1 -0
- package/dist/chunks/approve-Cv135UqI.mjs +19 -0
- package/dist/chunks/approve-Cv135UqI.mjs.map +1 -0
- package/dist/chunks/auth-BT5oVp76.mjs +132 -0
- package/dist/chunks/auth-BT5oVp76.mjs.map +1 -0
- package/dist/chunks/auth-D8rCVY33.mjs +84 -0
- package/dist/chunks/auth-D8rCVY33.mjs.map +1 -0
- package/dist/chunks/brainstorm-CU10T1tm.mjs +7 -0
- package/dist/chunks/brainstorm-CU10T1tm.mjs.map +1 -0
- package/dist/chunks/cancel-KV_cpsqS.mjs +15 -0
- package/dist/chunks/cancel-KV_cpsqS.mjs.map +1 -0
- package/dist/chunks/canonical-C8UxeEmB.mjs +57 -0
- package/dist/chunks/canonical-C8UxeEmB.mjs.map +1 -0
- package/dist/chunks/catalogue-BvwSrM_j.mjs +1549 -0
- package/dist/chunks/catalogue-BvwSrM_j.mjs.map +1 -0
- package/dist/chunks/compose-Cr0hP0qm.mjs +7303 -0
- package/dist/chunks/compose-Cr0hP0qm.mjs.map +1 -0
- package/dist/chunks/config-DefHA2Lw.mjs +96 -0
- package/dist/chunks/config-DefHA2Lw.mjs.map +1 -0
- package/dist/chunks/contract-B0ra2-bm.mjs +295 -0
- package/dist/chunks/contract-B0ra2-bm.mjs.map +1 -0
- package/dist/chunks/contract-vYbwYr0Y.mjs +123 -0
- package/dist/chunks/contract-vYbwYr0Y.mjs.map +1 -0
- package/dist/chunks/deny-ClTxSvHJ.mjs +15 -0
- package/dist/chunks/deny-ClTxSvHJ.mjs.map +1 -0
- package/dist/chunks/diff-Qw0II0sj.mjs +101 -0
- package/dist/chunks/diff-Qw0II0sj.mjs.map +1 -0
- package/dist/chunks/discover-30Ciya_0.mjs +20 -0
- package/dist/chunks/discover-30Ciya_0.mjs.map +1 -0
- package/dist/chunks/doctor-DfCrKpfT.mjs +222 -0
- package/dist/chunks/doctor-DfCrKpfT.mjs.map +1 -0
- package/dist/chunks/fix-D4Tj8RVA.mjs +18 -0
- package/dist/chunks/fix-D4Tj8RVA.mjs.map +1 -0
- package/dist/chunks/gc-BBXlBF5w.mjs +161 -0
- package/dist/chunks/gc-BBXlBF5w.mjs.map +1 -0
- package/dist/chunks/init-Okz4mlhW.mjs +30 -0
- package/dist/chunks/init-Okz4mlhW.mjs.map +1 -0
- package/dist/chunks/inspect-Buby4cQD.mjs +22 -0
- package/dist/chunks/inspect-Buby4cQD.mjs.map +1 -0
- package/dist/chunks/logs-Giq5sUau.mjs +25 -0
- package/dist/chunks/logs-Giq5sUau.mjs.map +1 -0
- package/dist/chunks/migrate-DRoFUg53.mjs +19 -0
- package/dist/chunks/migrate-DRoFUg53.mjs.map +1 -0
- package/dist/chunks/models-Btp6X2YZ.mjs +24 -0
- package/dist/chunks/models-Btp6X2YZ.mjs.map +1 -0
- package/dist/chunks/pause-BASBfKLO.mjs +16 -0
- package/dist/chunks/pause-BASBfKLO.mjs.map +1 -0
- package/dist/chunks/policy-DUIgzF3W.mjs +139 -0
- package/dist/chunks/policy-DUIgzF3W.mjs.map +1 -0
- package/dist/chunks/providers-Dx78imKj.mjs +19 -0
- package/dist/chunks/providers-Dx78imKj.mjs.map +1 -0
- package/dist/chunks/reconcile-BfD785gd.mjs +26 -0
- package/dist/chunks/reconcile-BfD785gd.mjs.map +1 -0
- package/dist/chunks/render-DyZr5Lgi.mjs +53 -0
- package/dist/chunks/render-DyZr5Lgi.mjs.map +1 -0
- package/dist/chunks/resume-GJQRb2Eb.mjs +15 -0
- package/dist/chunks/resume-GJQRb2Eb.mjs.map +1 -0
- package/dist/chunks/retry-CLrUem1H.mjs +15 -0
- package/dist/chunks/retry-CLrUem1H.mjs.map +1 -0
- package/dist/chunks/review-BDdjb6kB.mjs +17 -0
- package/dist/chunks/review-BDdjb6kB.mjs.map +1 -0
- package/dist/chunks/run-CgTWYlcd.mjs +82 -0
- package/dist/chunks/run-CgTWYlcd.mjs.map +1 -0
- package/dist/chunks/run-tool-C3rAv4XF.mjs +26 -0
- package/dist/chunks/run-tool-C3rAv4XF.mjs.map +1 -0
- package/dist/chunks/schema-C9QbUW4H.mjs +578 -0
- package/dist/chunks/schema-C9QbUW4H.mjs.map +1 -0
- package/dist/chunks/send-BdnJ85Nz.mjs +19 -0
- package/dist/chunks/send-BdnJ85Nz.mjs.map +1 -0
- package/dist/chunks/ship-DTuLGoaJ.mjs +19 -0
- package/dist/chunks/ship-DTuLGoaJ.mjs.map +1 -0
- package/dist/chunks/shutdown-BM92Iyv2.mjs +15 -0
- package/dist/chunks/shutdown-BM92Iyv2.mjs.map +1 -0
- package/dist/chunks/skip-DZG5kpcH.mjs +18 -0
- package/dist/chunks/skip-DZG5kpcH.mjs.map +1 -0
- package/dist/chunks/spec-Bq0P3jVh.mjs +20 -0
- package/dist/chunks/spec-Bq0P3jVh.mjs.map +1 -0
- package/dist/chunks/src-CId6kMsY.mjs +1689 -0
- package/dist/chunks/src-CId6kMsY.mjs.map +1 -0
- package/dist/chunks/src-CfAOde7C.mjs +5403 -0
- package/dist/chunks/src-CfAOde7C.mjs.map +1 -0
- package/dist/chunks/src-Cu3TxNob.mjs +783 -0
- package/dist/chunks/src-Cu3TxNob.mjs.map +1 -0
- package/dist/chunks/src-DcU4IXMe.mjs +117 -0
- package/dist/chunks/src-DcU4IXMe.mjs.map +1 -0
- package/dist/chunks/src-JxawBQBn.mjs +446 -0
- package/dist/chunks/src-JxawBQBn.mjs.map +1 -0
- package/dist/chunks/src-s7YRvk0t.mjs +2116 -0
- package/dist/chunks/src-s7YRvk0t.mjs.map +1 -0
- package/dist/chunks/status-SMjiOMYy.mjs +29 -0
- package/dist/chunks/status-SMjiOMYy.mjs.map +1 -0
- package/dist/chunks/tail-BuhT-2PH.mjs +25 -0
- package/dist/chunks/tail-BuhT-2PH.mjs.map +1 -0
- package/dist/chunks/update-BXIppsbi.mjs +16 -0
- package/dist/chunks/update-BXIppsbi.mjs.map +1 -0
- package/dist/cli.mjs +175 -0
- package/dist/cli.mjs.map +1 -0
- package/package.json +17 -32
- package/CHANGELOG.md +0 -1461
- package/bin/cli.js +0 -817
- package/bin/report.js +0 -141
- package/core/adapter/render.js +0 -415
- package/core/agents/implementer.template.md +0 -142
- package/core/agents/profile-reader.md +0 -50
- package/core/agents/release.md +0 -58
- package/core/agents/review.md +0 -179
- package/core/commands/cohorte-align-ds.md +0 -33
- package/core/commands/cohorte-audit.md +0 -58
- package/core/commands/cohorte-brainstorm.md +0 -70
- package/core/commands/cohorte-build.md +0 -219
- package/core/commands/cohorte-doctor.md +0 -194
- package/core/commands/cohorte-fix.md +0 -80
- package/core/commands/cohorte-fleet.md +0 -103
- package/core/commands/cohorte-init-pipeline.md +0 -31
- package/core/commands/cohorte-intake.md +0 -92
- package/core/commands/cohorte-patch.md +0 -118
- package/core/commands/cohorte-refactor.md +0 -59
- package/core/commands/cohorte-retro.md +0 -85
- package/core/commands/cohorte-review.md +0 -270
- package/core/commands/cohorte-ship.md +0 -122
- package/core/commands/cohorte-spec.md +0 -101
- package/core/commands/cohorte-update-pipeline.md +0 -165
- package/core/hooks/gate.py +0 -588
- package/core/runtimes/claude.json +0 -74
- package/core/runtimes/codex.json +0 -85
- package/core/runtimes/cursor.json +0 -76
- package/core/runtimes/gemini.json +0 -76
- package/core/runtimes/opencode.json +0 -73
- package/core/templates/agent-handoff.md +0 -34
- package/core/templates/brainstorm-return.md +0 -36
- package/core/templates/decisions.template.md +0 -42
- package/core/templates/design-brief.md +0 -44
- package/core/templates/patch.template.md +0 -86
- package/core/templates/pr-body.md +0 -25
- package/core/templates/review-feedback.md +0 -38
- package/core/templates/spec.template.md +0 -87
- package/core/templates/steps/init-pipeline/01-detect-stack.md +0 -44
- package/core/templates/steps/init-pipeline/02-interview-gaps.md +0 -55
- package/core/templates/steps/init-pipeline/03-draft-profile.md +0 -10
- package/core/templates/steps/init-pipeline/04-write-render.md +0 -145
- package/core/templates/steps/init-pipeline/05-report.md +0 -12
- package/core/workflows/audit.js +0 -240
- package/core/workflows/loop.js +0 -641
- package/core/workflows/refactor.js +0 -276
- package/core/workflows/review.js +0 -456
- package/install.ps1 +0 -103
- package/install.sh +0 -114
- package/lib/doctor.js +0 -534
- package/lib/runtime.js +0 -139
- package/lib/versions.js +0 -149
- package/lib/yaml.js +0 -129
- package/profile/PIPELINE.template.md +0 -259
- package/profile/SCHEMA.md +0 -735
- package/profile/cohorte.config.template.yaml +0 -43
- package/scripts/assert-gate-hook.mjs +0 -75
- package/scripts/kanban-move.sh +0 -313
- package/scripts/metrics/collect.mjs +0 -531
- package/scripts/metrics/prices.json +0 -42
- package/scripts/new-feature.sh.template +0 -98
- package/scripts/preflight.sh +0 -124
- package/scripts/remove-feature.sh.template +0 -56
- package/scripts/test-adapter.mjs +0 -437
- package/scripts/test-gate.mjs +0 -443
- package/scripts/test-kanban.mjs +0 -304
- package/scripts/test-lib.mjs +0 -356
- package/scripts/test-metrics.mjs +0 -156
- package/scripts/test-workflows.mjs +0 -758
- package/scripts/validate-core.mjs +0 -325
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cohorte.dev/schemas/3/fake-script.schema.json",
|
|
4
|
+
"title": "Cohorte fake-runtime script (--runtime fake --script)",
|
|
5
|
+
"$ref": "#/$defs/FakeScript",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"JsonValue": {
|
|
8
|
+
"anyOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "null"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "boolean"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "number"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"$ref": "#/$defs/JsonValue"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "object",
|
|
29
|
+
"patternProperties": {
|
|
30
|
+
"^.*$": {
|
|
31
|
+
"$ref": "#/$defs/JsonValue"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"FakeStep": {
|
|
38
|
+
"anyOf": [
|
|
39
|
+
{
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": [
|
|
42
|
+
"do",
|
|
43
|
+
"text"
|
|
44
|
+
],
|
|
45
|
+
"properties": {
|
|
46
|
+
"do": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"const": "say"
|
|
49
|
+
},
|
|
50
|
+
"text": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"chunks": {
|
|
54
|
+
"type": "integer",
|
|
55
|
+
"minimum": 1
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": [
|
|
62
|
+
"do",
|
|
63
|
+
"text"
|
|
64
|
+
],
|
|
65
|
+
"properties": {
|
|
66
|
+
"do": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"const": "think"
|
|
69
|
+
},
|
|
70
|
+
"text": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "object",
|
|
77
|
+
"required": [
|
|
78
|
+
"do",
|
|
79
|
+
"tool",
|
|
80
|
+
"input"
|
|
81
|
+
],
|
|
82
|
+
"properties": {
|
|
83
|
+
"do": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "tool"
|
|
86
|
+
},
|
|
87
|
+
"tool": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"input": {
|
|
91
|
+
"$ref": "#/$defs/JsonValue"
|
|
92
|
+
},
|
|
93
|
+
"expect": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"isError": {
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
},
|
|
99
|
+
"textIncludes": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"onDenied": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"$ref": "#/$defs/FakeStep"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "object",
|
|
114
|
+
"required": [
|
|
115
|
+
"do",
|
|
116
|
+
"output"
|
|
117
|
+
],
|
|
118
|
+
"properties": {
|
|
119
|
+
"do": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"const": "submit"
|
|
122
|
+
},
|
|
123
|
+
"output": {
|
|
124
|
+
"$ref": "#/$defs/JsonValue"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "object",
|
|
130
|
+
"required": [
|
|
131
|
+
"do",
|
|
132
|
+
"tokens"
|
|
133
|
+
],
|
|
134
|
+
"properties": {
|
|
135
|
+
"do": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"const": "usage"
|
|
138
|
+
},
|
|
139
|
+
"tokens": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"input": {
|
|
143
|
+
"type": "integer",
|
|
144
|
+
"minimum": 0
|
|
145
|
+
},
|
|
146
|
+
"output": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 0
|
|
149
|
+
},
|
|
150
|
+
"cacheRead": {
|
|
151
|
+
"type": "integer",
|
|
152
|
+
"minimum": 0
|
|
153
|
+
},
|
|
154
|
+
"cacheWrite": {
|
|
155
|
+
"type": "integer",
|
|
156
|
+
"minimum": 0
|
|
157
|
+
},
|
|
158
|
+
"total": {
|
|
159
|
+
"type": "integer",
|
|
160
|
+
"minimum": 0
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "object",
|
|
168
|
+
"required": [
|
|
169
|
+
"do"
|
|
170
|
+
],
|
|
171
|
+
"properties": {
|
|
172
|
+
"do": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"const": "await-message"
|
|
175
|
+
},
|
|
176
|
+
"timeoutMs": {
|
|
177
|
+
"type": "number",
|
|
178
|
+
"minimum": 0
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "object",
|
|
184
|
+
"required": [
|
|
185
|
+
"do",
|
|
186
|
+
"error"
|
|
187
|
+
],
|
|
188
|
+
"properties": {
|
|
189
|
+
"do": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"const": "fail"
|
|
192
|
+
},
|
|
193
|
+
"error": {
|
|
194
|
+
"type": "object",
|
|
195
|
+
"required": [
|
|
196
|
+
"class",
|
|
197
|
+
"code",
|
|
198
|
+
"retryable"
|
|
199
|
+
],
|
|
200
|
+
"properties": {
|
|
201
|
+
"class": {
|
|
202
|
+
"anyOf": [
|
|
203
|
+
{
|
|
204
|
+
"type": "string",
|
|
205
|
+
"const": "configuration"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "string",
|
|
209
|
+
"const": "validation"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"type": "string",
|
|
213
|
+
"const": "permission"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "string",
|
|
217
|
+
"const": "security"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "string",
|
|
221
|
+
"const": "provider-transient"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"type": "string",
|
|
225
|
+
"const": "provider-terminal"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"type": "string",
|
|
229
|
+
"const": "tool-transient"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"type": "string",
|
|
233
|
+
"const": "tool-terminal"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"type": "string",
|
|
237
|
+
"const": "conflict"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"type": "string",
|
|
241
|
+
"const": "budget"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "string",
|
|
245
|
+
"const": "timeout"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"type": "string",
|
|
249
|
+
"const": "corruption"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"type": "string",
|
|
253
|
+
"const": "human-required"
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"code": {
|
|
258
|
+
"type": "string",
|
|
259
|
+
"pattern": "^[a-z]+(?:-[a-z]+)*/[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
260
|
+
},
|
|
261
|
+
"retryable": {
|
|
262
|
+
"type": "boolean"
|
|
263
|
+
},
|
|
264
|
+
"retryAfterMs": {
|
|
265
|
+
"type": "number",
|
|
266
|
+
"minimum": 0
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"type": "object",
|
|
274
|
+
"required": [
|
|
275
|
+
"do",
|
|
276
|
+
"ms"
|
|
277
|
+
],
|
|
278
|
+
"properties": {
|
|
279
|
+
"do": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"const": "hang"
|
|
282
|
+
},
|
|
283
|
+
"ms": {
|
|
284
|
+
"anyOf": [
|
|
285
|
+
{
|
|
286
|
+
"type": "number",
|
|
287
|
+
"minimum": 0
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "string",
|
|
291
|
+
"const": "forever"
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "object",
|
|
299
|
+
"required": [
|
|
300
|
+
"do",
|
|
301
|
+
"at"
|
|
302
|
+
],
|
|
303
|
+
"properties": {
|
|
304
|
+
"do": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"const": "crash"
|
|
307
|
+
},
|
|
308
|
+
"at": {
|
|
309
|
+
"anyOf": [
|
|
310
|
+
{
|
|
311
|
+
"type": "string",
|
|
312
|
+
"const": "before-next-step"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"type": "string",
|
|
316
|
+
"const": "during-tool"
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"type": "object",
|
|
324
|
+
"required": [
|
|
325
|
+
"do"
|
|
326
|
+
],
|
|
327
|
+
"properties": {
|
|
328
|
+
"do": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"const": "stop-without-result"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"type": "object",
|
|
336
|
+
"required": [
|
|
337
|
+
"do"
|
|
338
|
+
],
|
|
339
|
+
"properties": {
|
|
340
|
+
"do": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"const": "model-request"
|
|
343
|
+
},
|
|
344
|
+
"status": {
|
|
345
|
+
"type": "integer",
|
|
346
|
+
"minimum": 100,
|
|
347
|
+
"maximum": 599
|
|
348
|
+
},
|
|
349
|
+
"quota": {
|
|
350
|
+
"anyOf": [
|
|
351
|
+
{
|
|
352
|
+
"type": "object",
|
|
353
|
+
"required": [
|
|
354
|
+
"known"
|
|
355
|
+
],
|
|
356
|
+
"properties": {
|
|
357
|
+
"known": {
|
|
358
|
+
"type": "boolean",
|
|
359
|
+
"const": false
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"type": "object",
|
|
365
|
+
"required": [
|
|
366
|
+
"known",
|
|
367
|
+
"source",
|
|
368
|
+
"provider",
|
|
369
|
+
"windows",
|
|
370
|
+
"observedAt"
|
|
371
|
+
],
|
|
372
|
+
"properties": {
|
|
373
|
+
"known": {
|
|
374
|
+
"type": "boolean",
|
|
375
|
+
"const": true
|
|
376
|
+
},
|
|
377
|
+
"source": {
|
|
378
|
+
"anyOf": [
|
|
379
|
+
{
|
|
380
|
+
"type": "string",
|
|
381
|
+
"const": "response-headers"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"type": "string",
|
|
385
|
+
"const": "error"
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
"provider": {
|
|
390
|
+
"type": "string"
|
|
391
|
+
},
|
|
392
|
+
"windows": {
|
|
393
|
+
"type": "array",
|
|
394
|
+
"items": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"required": [
|
|
397
|
+
"name"
|
|
398
|
+
],
|
|
399
|
+
"properties": {
|
|
400
|
+
"name": {
|
|
401
|
+
"type": "string"
|
|
402
|
+
},
|
|
403
|
+
"usedPercent": {
|
|
404
|
+
"type": "number",
|
|
405
|
+
"minimum": 0
|
|
406
|
+
},
|
|
407
|
+
"resetsAt": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"format": "date-time",
|
|
410
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
411
|
+
},
|
|
412
|
+
"limitLabel": {
|
|
413
|
+
"type": "string"
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"observedAt": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"format": "date-time",
|
|
421
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
"authSource": {
|
|
428
|
+
"anyOf": [
|
|
429
|
+
{
|
|
430
|
+
"type": "string",
|
|
431
|
+
"const": "oauth"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"type": "string",
|
|
435
|
+
"const": "api-key"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"type": "string",
|
|
439
|
+
"const": "none"
|
|
440
|
+
}
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
"baseUrl": {
|
|
444
|
+
"type": "string"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
},
|
|
450
|
+
"FakeScript": {
|
|
451
|
+
"type": "object",
|
|
452
|
+
"required": [
|
|
453
|
+
"version",
|
|
454
|
+
"agents"
|
|
455
|
+
],
|
|
456
|
+
"properties": {
|
|
457
|
+
"version": {
|
|
458
|
+
"type": "number",
|
|
459
|
+
"const": 1
|
|
460
|
+
},
|
|
461
|
+
"agents": {
|
|
462
|
+
"type": "array",
|
|
463
|
+
"items": {
|
|
464
|
+
"type": "object",
|
|
465
|
+
"required": [
|
|
466
|
+
"match",
|
|
467
|
+
"steps"
|
|
468
|
+
],
|
|
469
|
+
"properties": {
|
|
470
|
+
"match": {
|
|
471
|
+
"type": "object",
|
|
472
|
+
"properties": {
|
|
473
|
+
"role": {
|
|
474
|
+
"type": "string"
|
|
475
|
+
},
|
|
476
|
+
"agentId": {
|
|
477
|
+
"type": "string"
|
|
478
|
+
},
|
|
479
|
+
"incarnation": {
|
|
480
|
+
"anyOf": [
|
|
481
|
+
{
|
|
482
|
+
"type": "integer",
|
|
483
|
+
"minimum": 1
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"type": "string",
|
|
487
|
+
"const": "any"
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
"attempt": {
|
|
492
|
+
"type": "integer",
|
|
493
|
+
"minimum": 1
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"steps": {
|
|
498
|
+
"type": "array",
|
|
499
|
+
"items": {
|
|
500
|
+
"$ref": "#/$defs/FakeStep"
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"defaults": {
|
|
507
|
+
"type": "object",
|
|
508
|
+
"properties": {
|
|
509
|
+
"usagePerTurn": {
|
|
510
|
+
"type": "object",
|
|
511
|
+
"required": [
|
|
512
|
+
"input",
|
|
513
|
+
"output",
|
|
514
|
+
"cacheRead",
|
|
515
|
+
"cacheWrite",
|
|
516
|
+
"total"
|
|
517
|
+
],
|
|
518
|
+
"properties": {
|
|
519
|
+
"input": {
|
|
520
|
+
"type": "integer",
|
|
521
|
+
"minimum": 0
|
|
522
|
+
},
|
|
523
|
+
"output": {
|
|
524
|
+
"type": "integer",
|
|
525
|
+
"minimum": 0
|
|
526
|
+
},
|
|
527
|
+
"cacheRead": {
|
|
528
|
+
"type": "integer",
|
|
529
|
+
"minimum": 0
|
|
530
|
+
},
|
|
531
|
+
"cacheWrite": {
|
|
532
|
+
"type": "integer",
|
|
533
|
+
"minimum": 0
|
|
534
|
+
},
|
|
535
|
+
"total": {
|
|
536
|
+
"type": "integer",
|
|
537
|
+
"minimum": 0
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"model": {
|
|
542
|
+
"type": "string"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|