cohorte 3.0.0-dev.7 → 3.0.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/CHANGELOG.md +1532 -0
- package/README.md +106 -185
- package/bin/cli.js +212 -0
- package/bin/report.js +141 -0
- package/core/agents/cohorte-profile-reader.md +50 -0
- package/core/agents/cohorte-release.md +58 -0
- package/core/agents/cohorte-review.md +174 -0
- package/core/agents/implementer.template.md +146 -0
- package/core/commands/cohorte-align-ds.md +33 -0
- package/core/commands/cohorte-audit.md +67 -0
- package/core/commands/cohorte-brainstorm.md +73 -0
- package/core/commands/cohorte-build.md +241 -0
- package/core/commands/cohorte-doctor.md +133 -0
- package/core/commands/cohorte-fix.md +80 -0
- package/core/commands/cohorte-fleet.md +111 -0
- package/core/commands/cohorte-init-pipeline.md +30 -0
- package/core/commands/cohorte-intake.md +92 -0
- package/core/commands/cohorte-patch.md +118 -0
- package/core/commands/cohorte-refactor.md +57 -0
- package/core/commands/cohorte-retro.md +85 -0
- package/core/commands/cohorte-review.md +224 -0
- package/core/commands/cohorte-ship.md +155 -0
- package/core/commands/cohorte-spec.md +105 -0
- package/core/commands/cohorte-update-pipeline.md +115 -0
- package/core/hooks/gate.py +2931 -0
- package/core/templates/agent-handoff.md +34 -0
- package/core/templates/brainstorm-return.md +42 -0
- package/core/templates/decisions.template.md +42 -0
- package/core/templates/design-brief.md +37 -0
- package/core/templates/patch.template.md +86 -0
- package/core/templates/pr-body.md +25 -0
- package/core/templates/review-feedback.md +46 -0
- package/core/templates/spec.template.md +88 -0
- package/core/templates/steps/init-pipeline/01-detect-stack.md +44 -0
- package/core/templates/steps/init-pipeline/02-interview-gaps.md +55 -0
- package/core/templates/steps/init-pipeline/03-draft-profile.md +9 -0
- package/core/templates/steps/init-pipeline/04-write-render.md +91 -0
- package/core/templates/steps/init-pipeline/05-report.md +11 -0
- package/core/templates/steps/review-pr/01-pr-mode.md +54 -0
- package/core/workflows/audit.js +306 -0
- package/core/workflows/loop.js +687 -0
- package/core/workflows/refactor.js +291 -0
- package/core/workflows/review.js +491 -0
- package/install.ps1 +72 -0
- package/install.sh +69 -0
- package/lib/doctor.js +472 -0
- package/lib/install.js +377 -0
- package/lib/project.js +322 -0
- package/lib/render.js +121 -0
- package/lib/versions.js +145 -0
- package/lib/yaml.js +174 -0
- package/package.json +36 -17
- package/profile/PIPELINE.template.md +250 -0
- package/profile/SCHEMA.md +749 -0
- package/profile/cohorte.config.template.yaml +43 -0
- package/scripts/feature-diff.sh +118 -0
- package/scripts/kanban-move.sh +307 -0
- package/scripts/metrics/collect.mjs +542 -0
- package/scripts/metrics/prices.json +42 -0
- package/scripts/new-feature.sh.template +122 -0
- package/scripts/preflight.sh +114 -0
- package/scripts/remove-feature.sh.template +56 -0
- package/assets/manifest.json +0 -203
- package/assets/migrations/config/README.md +0 -12
- package/assets/migrations/state/0001_init.sql +0 -154
- package/assets/prompts/README.md +0 -11
- package/assets/prompts/agents/brainstormer.md +0 -3
- package/assets/prompts/agents/fixer.md +0 -7
- package/assets/prompts/agents/implementer.md +0 -12
- package/assets/prompts/agents/reviewer.md +0 -8
- package/assets/prompts/agents/security-reviewer.md +0 -7
- package/assets/prompts/agents/spec-author.md +0 -3
- package/assets/prompts/phases/build.md +0 -5
- package/assets/prompts/phases/review.md +0 -5
- package/assets/prompts/phases/test.md +0 -5
- package/assets/prompts/system.md +0 -11
- package/assets/schemas/agent-output.schema.json +0 -225
- package/assets/schemas/auth-status.schema.json +0 -87
- package/assets/schemas/command-result.schema.json +0 -192
- package/assets/schemas/commands.schema.json +0 -959
- package/assets/schemas/config.schema.json +0 -2281
- package/assets/schemas/doctor-report.schema.json +0 -104
- package/assets/schemas/events.schema.json +0 -8514
- package/assets/schemas/fake-script.schema.json +0 -549
- package/assets/schemas/inspect.schema.json +0 -3133
- package/assets/schemas/manifest.schema.json +0 -79
- package/assets/schemas/ownership.schema.json +0 -52
- package/assets/schemas/policy-verdict.schema.json +0 -282
- package/assets/schemas/project-model.schema.json +0 -783
- package/assets/schemas/project-status.schema.json +0 -217
- package/assets/schemas/reconcile-plan.schema.json +0 -154
- package/assets/schemas/run-diff.schema.json +0 -177
- package/assets/schemas/run-snapshot-manifest.schema.json +0 -2104
- package/assets/schemas/run-state.schema.json +0 -1755
- package/assets/schemas/runtime-capabilities.schema.json +0 -1545
- package/assets/schemas/sandbox-capabilities.schema.json +0 -116
- package/assets/schemas/skill.schema.json +0 -87
- package/assets/schemas/spec.schema.json +0 -202
- package/assets/schemas/tool-catalogue.schema.json +0 -655
- package/assets/schemas/trust-record.schema.json +0 -38
- package/assets/skills/README.md +0 -9
- package/assets/skills/inspect-surface.md +0 -4
- package/dist/agent-host.mjs +0 -2187
- package/dist/agent-host.mjs.map +0 -1
- package/dist/bundle-manifest.json +0 -128
- package/dist/chunks/__host-DgGPyco9.mjs +0 -18
- package/dist/chunks/__host-DgGPyco9.mjs.map +0 -1
- package/dist/chunks/align-ds-r_X_1aQ_.mjs +0 -93
- package/dist/chunks/align-ds-r_X_1aQ_.mjs.map +0 -1
- package/dist/chunks/approve-Cv135UqI.mjs +0 -19
- package/dist/chunks/approve-Cv135UqI.mjs.map +0 -1
- package/dist/chunks/audit-B4ZWQ_DI.mjs +0 -179
- package/dist/chunks/audit-B4ZWQ_DI.mjs.map +0 -1
- package/dist/chunks/auth-BT5oVp76.mjs +0 -132
- package/dist/chunks/auth-BT5oVp76.mjs.map +0 -1
- package/dist/chunks/auth-Dnlksuo5.mjs +0 -141
- package/dist/chunks/auth-Dnlksuo5.mjs.map +0 -1
- package/dist/chunks/brainstorm-DasVwI1D.mjs +0 -123
- package/dist/chunks/brainstorm-DasVwI1D.mjs.map +0 -1
- package/dist/chunks/build-crOld8gE.mjs +0 -19
- package/dist/chunks/build-crOld8gE.mjs.map +0 -1
- package/dist/chunks/cancel-KV_cpsqS.mjs +0 -15
- package/dist/chunks/cancel-KV_cpsqS.mjs.map +0 -1
- package/dist/chunks/canonical-C8UxeEmB.mjs +0 -57
- package/dist/chunks/canonical-C8UxeEmB.mjs.map +0 -1
- package/dist/chunks/catalogue-IaCJdfB8.mjs +0 -1549
- package/dist/chunks/catalogue-IaCJdfB8.mjs.map +0 -1
- package/dist/chunks/compose-DRKjQcn0.mjs +0 -7333
- package/dist/chunks/compose-DRKjQcn0.mjs.map +0 -1
- package/dist/chunks/config-Cqu5XQoP.mjs +0 -96
- package/dist/chunks/config-Cqu5XQoP.mjs.map +0 -1
- package/dist/chunks/contract-DjssDPpS.mjs +0 -335
- package/dist/chunks/contract-DjssDPpS.mjs.map +0 -1
- package/dist/chunks/contract-bQ9FJl4N.mjs +0 -123
- package/dist/chunks/contract-bQ9FJl4N.mjs.map +0 -1
- package/dist/chunks/deny-ClTxSvHJ.mjs +0 -15
- package/dist/chunks/deny-ClTxSvHJ.mjs.map +0 -1
- package/dist/chunks/diff-Qw0II0sj.mjs +0 -101
- package/dist/chunks/diff-Qw0II0sj.mjs.map +0 -1
- package/dist/chunks/discover-BZPolSZG.mjs +0 -21
- package/dist/chunks/discover-BZPolSZG.mjs.map +0 -1
- package/dist/chunks/doctor-DcDFPvQM.mjs +0 -222
- package/dist/chunks/doctor-DcDFPvQM.mjs.map +0 -1
- package/dist/chunks/fix-B_oGzGVn.mjs +0 -82
- package/dist/chunks/fix-B_oGzGVn.mjs.map +0 -1
- package/dist/chunks/fleet-yWHQY2ya.mjs +0 -297
- package/dist/chunks/fleet-yWHQY2ya.mjs.map +0 -1
- package/dist/chunks/gc-BBXlBF5w.mjs +0 -161
- package/dist/chunks/gc-BBXlBF5w.mjs.map +0 -1
- package/dist/chunks/init--FxxkrcT.mjs +0 -63
- package/dist/chunks/init--FxxkrcT.mjs.map +0 -1
- package/dist/chunks/inspect-Buby4cQD.mjs +0 -22
- package/dist/chunks/inspect-Buby4cQD.mjs.map +0 -1
- package/dist/chunks/intake-Dd1KVXnO.mjs +0 -12
- package/dist/chunks/intake-Dd1KVXnO.mjs.map +0 -1
- package/dist/chunks/logs-Giq5sUau.mjs +0 -25
- package/dist/chunks/logs-Giq5sUau.mjs.map +0 -1
- package/dist/chunks/loop-BWsUpyus.mjs +0 -212
- package/dist/chunks/loop-BWsUpyus.mjs.map +0 -1
- package/dist/chunks/migrate-DuYCAbE3.mjs +0 -33
- package/dist/chunks/migrate-DuYCAbE3.mjs.map +0 -1
- package/dist/chunks/models-Btp6X2YZ.mjs +0 -24
- package/dist/chunks/models-Btp6X2YZ.mjs.map +0 -1
- package/dist/chunks/obsidian-BHLkXx_H.mjs +0 -235
- package/dist/chunks/obsidian-BHLkXx_H.mjs.map +0 -1
- package/dist/chunks/patch-sAgVqjpx.mjs +0 -50
- package/dist/chunks/patch-sAgVqjpx.mjs.map +0 -1
- package/dist/chunks/pause-BASBfKLO.mjs +0 -16
- package/dist/chunks/pause-BASBfKLO.mjs.map +0 -1
- package/dist/chunks/policy-Du7WVBFX.mjs +0 -139
- package/dist/chunks/policy-Du7WVBFX.mjs.map +0 -1
- package/dist/chunks/providers-Dx78imKj.mjs +0 -19
- package/dist/chunks/providers-Dx78imKj.mjs.map +0 -1
- package/dist/chunks/reconcile-BHn66X3C.mjs +0 -50
- package/dist/chunks/reconcile-BHn66X3C.mjs.map +0 -1
- package/dist/chunks/refactor-CoNoqLZr.mjs +0 -153
- package/dist/chunks/refactor-CoNoqLZr.mjs.map +0 -1
- package/dist/chunks/render-DyZr5Lgi.mjs +0 -53
- package/dist/chunks/render-DyZr5Lgi.mjs.map +0 -1
- package/dist/chunks/resume-GJQRb2Eb.mjs +0 -15
- package/dist/chunks/resume-GJQRb2Eb.mjs.map +0 -1
- package/dist/chunks/retro-Dr-2RTNN.mjs +0 -78
- package/dist/chunks/retro-Dr-2RTNN.mjs.map +0 -1
- package/dist/chunks/retry-CLrUem1H.mjs +0 -15
- package/dist/chunks/retry-CLrUem1H.mjs.map +0 -1
- package/dist/chunks/review-ZsBqp3vZ.mjs +0 -35
- package/dist/chunks/review-ZsBqp3vZ.mjs.map +0 -1
- package/dist/chunks/run-NGAxdsIX.mjs +0 -105
- package/dist/chunks/run-NGAxdsIX.mjs.map +0 -1
- package/dist/chunks/run-tool-C3rAv4XF.mjs +0 -26
- package/dist/chunks/run-tool-C3rAv4XF.mjs.map +0 -1
- package/dist/chunks/scan-C5uDr7Yq.mjs +0 -167
- package/dist/chunks/scan-C5uDr7Yq.mjs.map +0 -1
- package/dist/chunks/schema-Bq9qtgsd.mjs +0 -583
- package/dist/chunks/schema-Bq9qtgsd.mjs.map +0 -1
- package/dist/chunks/send-BdnJ85Nz.mjs +0 -19
- package/dist/chunks/send-BdnJ85Nz.mjs.map +0 -1
- package/dist/chunks/ship-BizfUe62.mjs +0 -140
- package/dist/chunks/ship-BizfUe62.mjs.map +0 -1
- package/dist/chunks/shutdown-BM92Iyv2.mjs +0 -15
- package/dist/chunks/shutdown-BM92Iyv2.mjs.map +0 -1
- package/dist/chunks/skip-DZG5kpcH.mjs +0 -18
- package/dist/chunks/skip-DZG5kpcH.mjs.map +0 -1
- package/dist/chunks/spec-C2h3U64g.mjs +0 -65
- package/dist/chunks/spec-C2h3U64g.mjs.map +0 -1
- package/dist/chunks/spec-path-tptqR7W8.mjs +0 -10
- package/dist/chunks/spec-path-tptqR7W8.mjs.map +0 -1
- package/dist/chunks/src-Bfr1yzsn.mjs +0 -1689
- package/dist/chunks/src-Bfr1yzsn.mjs.map +0 -1
- package/dist/chunks/src-CPW2_Ons.mjs +0 -5487
- package/dist/chunks/src-CPW2_Ons.mjs.map +0 -1
- package/dist/chunks/src-Cu3TxNob.mjs +0 -783
- package/dist/chunks/src-Cu3TxNob.mjs.map +0 -1
- package/dist/chunks/src-DNsLSxgm.mjs +0 -928
- package/dist/chunks/src-DNsLSxgm.mjs.map +0 -1
- package/dist/chunks/src-DbS9gkJy.mjs +0 -117
- package/dist/chunks/src-DbS9gkJy.mjs.map +0 -1
- package/dist/chunks/src-yi5whv3n.mjs +0 -2118
- package/dist/chunks/src-yi5whv3n.mjs.map +0 -1
- package/dist/chunks/status-SMjiOMYy.mjs +0 -29
- package/dist/chunks/status-SMjiOMYy.mjs.map +0 -1
- package/dist/chunks/tail-BuhT-2PH.mjs +0 -25
- package/dist/chunks/tail-BuhT-2PH.mjs.map +0 -1
- package/dist/chunks/update-BXIppsbi.mjs +0 -16
- package/dist/chunks/update-BXIppsbi.mjs.map +0 -1
- package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs +0 -56
- package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs.map +0 -1
- package/dist/cli.mjs +0 -186
- package/dist/cli.mjs.map +0 -1
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cohorte.dev/schemas/3/project-status.schema.json",
|
|
4
|
-
"title": "Cohorte project status (status --json)",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"documentVersion",
|
|
8
|
-
"protocolVersion",
|
|
9
|
-
"project",
|
|
10
|
-
"runs",
|
|
11
|
-
"pendingApprovals"
|
|
12
|
-
],
|
|
13
|
-
"properties": {
|
|
14
|
-
"documentVersion": {
|
|
15
|
-
"type": "number",
|
|
16
|
-
"const": 1
|
|
17
|
-
},
|
|
18
|
-
"protocolVersion": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"const": "1.0"
|
|
21
|
-
},
|
|
22
|
-
"project": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"required": [
|
|
25
|
-
"id",
|
|
26
|
-
"root"
|
|
27
|
-
],
|
|
28
|
-
"properties": {
|
|
29
|
-
"id": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"root": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"runs": {
|
|
38
|
-
"type": "array",
|
|
39
|
-
"items": {
|
|
40
|
-
"type": "object",
|
|
41
|
-
"required": [
|
|
42
|
-
"runId",
|
|
43
|
-
"profile",
|
|
44
|
-
"title",
|
|
45
|
-
"state",
|
|
46
|
-
"status",
|
|
47
|
-
"since",
|
|
48
|
-
"startedAt"
|
|
49
|
-
],
|
|
50
|
-
"properties": {
|
|
51
|
-
"runId": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"pattern": "^run_[0-9a-f]{32}$"
|
|
54
|
-
},
|
|
55
|
-
"profile": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"x-cohorte-known": [
|
|
58
|
-
"feature",
|
|
59
|
-
"bugfix",
|
|
60
|
-
"review"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"title": {
|
|
64
|
-
"type": "string"
|
|
65
|
-
},
|
|
66
|
-
"state": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"enum": [
|
|
69
|
-
"IDLE",
|
|
70
|
-
"BRAINSTORM",
|
|
71
|
-
"SPEC",
|
|
72
|
-
"PREFLIGHT",
|
|
73
|
-
"BUILD",
|
|
74
|
-
"TEST",
|
|
75
|
-
"REVIEW",
|
|
76
|
-
"FIX",
|
|
77
|
-
"SHIP",
|
|
78
|
-
"PAUSED",
|
|
79
|
-
"WAITING_APPROVAL",
|
|
80
|
-
"AUTH_REQUIRED",
|
|
81
|
-
"QUOTA_EXCEEDED",
|
|
82
|
-
"FAILED",
|
|
83
|
-
"BLOCKED",
|
|
84
|
-
"COMPLETED",
|
|
85
|
-
"CANCELLED"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"status": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"enum": [
|
|
91
|
-
"pending",
|
|
92
|
-
"running",
|
|
93
|
-
"completed",
|
|
94
|
-
"failed",
|
|
95
|
-
"paused",
|
|
96
|
-
"waiting-approval",
|
|
97
|
-
"cancelled",
|
|
98
|
-
"skipped",
|
|
99
|
-
"blocked"
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
"since": {
|
|
103
|
-
"type": "string",
|
|
104
|
-
"format": "date-time",
|
|
105
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
106
|
-
},
|
|
107
|
-
"stop": {
|
|
108
|
-
"type": "object",
|
|
109
|
-
"required": [
|
|
110
|
-
"reason",
|
|
111
|
-
"detail",
|
|
112
|
-
"resumable"
|
|
113
|
-
],
|
|
114
|
-
"properties": {
|
|
115
|
-
"reason": {
|
|
116
|
-
"type": "string",
|
|
117
|
-
"enum": [
|
|
118
|
-
"review-clean",
|
|
119
|
-
"iteration-limit",
|
|
120
|
-
"budget-exhausted",
|
|
121
|
-
"timeout",
|
|
122
|
-
"identical-failure",
|
|
123
|
-
"no-progress",
|
|
124
|
-
"policy-violation",
|
|
125
|
-
"approval-required",
|
|
126
|
-
"unexpected-repo-change",
|
|
127
|
-
"runtime-incompatible",
|
|
128
|
-
"auth-required",
|
|
129
|
-
"quota-exceeded",
|
|
130
|
-
"paused",
|
|
131
|
-
"cancelled",
|
|
132
|
-
"agent-dead",
|
|
133
|
-
"unreviewed",
|
|
134
|
-
"internal-error",
|
|
135
|
-
"check-environment"
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
"detail": {
|
|
139
|
-
"type": "string"
|
|
140
|
-
},
|
|
141
|
-
"resumable": {
|
|
142
|
-
"type": "boolean"
|
|
143
|
-
},
|
|
144
|
-
"resumeRequires": {
|
|
145
|
-
"type": "string",
|
|
146
|
-
"x-cohorte-known": [
|
|
147
|
-
"approval",
|
|
148
|
-
"auth-login",
|
|
149
|
-
"quota-reset",
|
|
150
|
-
"budget-raise",
|
|
151
|
-
"human-ack",
|
|
152
|
-
"repo-repair",
|
|
153
|
-
"reinstall-pinned-version",
|
|
154
|
-
"environment-repair"
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"startedAt": {
|
|
160
|
-
"type": "string",
|
|
161
|
-
"format": "date-time",
|
|
162
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
163
|
-
},
|
|
164
|
-
"endedAt": {
|
|
165
|
-
"type": "string",
|
|
166
|
-
"format": "date-time",
|
|
167
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"pendingApprovals": {
|
|
173
|
-
"type": "array",
|
|
174
|
-
"items": {
|
|
175
|
-
"type": "object",
|
|
176
|
-
"required": [
|
|
177
|
-
"approvalId",
|
|
178
|
-
"kind",
|
|
179
|
-
"what",
|
|
180
|
-
"since",
|
|
181
|
-
"cli"
|
|
182
|
-
],
|
|
183
|
-
"properties": {
|
|
184
|
-
"approvalId": {
|
|
185
|
-
"type": "string",
|
|
186
|
-
"pattern": "^apr_[0-9a-f]{32}$"
|
|
187
|
-
},
|
|
188
|
-
"kind": {
|
|
189
|
-
"type": "string"
|
|
190
|
-
},
|
|
191
|
-
"agentId": {
|
|
192
|
-
"type": "string",
|
|
193
|
-
"maxLength": 128,
|
|
194
|
-
"pattern": "^agt_[A-Za-z0-9.-]+_[A-Za-z0-9_.-]+$"
|
|
195
|
-
},
|
|
196
|
-
"what": {
|
|
197
|
-
"type": "string",
|
|
198
|
-
"maxLength": 512
|
|
199
|
-
},
|
|
200
|
-
"since": {
|
|
201
|
-
"type": "string",
|
|
202
|
-
"format": "date-time",
|
|
203
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
204
|
-
},
|
|
205
|
-
"expiresAt": {
|
|
206
|
-
"type": "string",
|
|
207
|
-
"format": "date-time",
|
|
208
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
209
|
-
},
|
|
210
|
-
"cli": {
|
|
211
|
-
"type": "string"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cohorte.dev/schemas/3/reconcile-plan.schema.json",
|
|
4
|
-
"title": "Cohorte reconcile plan (reconcile --plan --json)",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"schemaVersion",
|
|
8
|
-
"cohorteVersion",
|
|
9
|
-
"generatedAt",
|
|
10
|
-
"drift",
|
|
11
|
-
"operations",
|
|
12
|
-
"conflicts",
|
|
13
|
-
"applyAvailable"
|
|
14
|
-
],
|
|
15
|
-
"properties": {
|
|
16
|
-
"schemaVersion": {
|
|
17
|
-
"type": "number",
|
|
18
|
-
"const": 1
|
|
19
|
-
},
|
|
20
|
-
"cohorteVersion": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"minLength": 1
|
|
23
|
-
},
|
|
24
|
-
"generatedAt": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"format": "date-time",
|
|
27
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
28
|
-
},
|
|
29
|
-
"drift": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"required": [
|
|
32
|
-
"schemaVersion",
|
|
33
|
-
"generatedAt",
|
|
34
|
-
"entries"
|
|
35
|
-
],
|
|
36
|
-
"properties": {
|
|
37
|
-
"schemaVersion": {
|
|
38
|
-
"type": "number",
|
|
39
|
-
"const": 1
|
|
40
|
-
},
|
|
41
|
-
"generatedAt": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"format": "date-time",
|
|
44
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
45
|
-
},
|
|
46
|
-
"entries": {
|
|
47
|
-
"type": "array",
|
|
48
|
-
"items": {
|
|
49
|
-
"type": "object",
|
|
50
|
-
"required": [
|
|
51
|
-
"target",
|
|
52
|
-
"class",
|
|
53
|
-
"diff",
|
|
54
|
-
"detail"
|
|
55
|
-
],
|
|
56
|
-
"properties": {
|
|
57
|
-
"target": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"minLength": 1
|
|
60
|
-
},
|
|
61
|
-
"class": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"enum": [
|
|
64
|
-
"human",
|
|
65
|
-
"generated",
|
|
66
|
-
"derived",
|
|
67
|
-
"observed",
|
|
68
|
-
"mixed"
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
"diff": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"enum": [
|
|
74
|
-
"absent",
|
|
75
|
-
"expected-change",
|
|
76
|
-
"human-change",
|
|
77
|
-
"conflict",
|
|
78
|
-
"potential-deletion",
|
|
79
|
-
"unknown"
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
"desiredSha256": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"pattern": "^[0-9a-f]{64}$"
|
|
85
|
-
},
|
|
86
|
-
"actualSha256": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"pattern": "^[0-9a-f]{64}$"
|
|
89
|
-
},
|
|
90
|
-
"recordedSha256": {
|
|
91
|
-
"type": "string",
|
|
92
|
-
"pattern": "^[0-9a-f]{64}$"
|
|
93
|
-
},
|
|
94
|
-
"detail": {
|
|
95
|
-
"type": "string"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"operations": {
|
|
103
|
-
"type": "array",
|
|
104
|
-
"items": {
|
|
105
|
-
"type": "object",
|
|
106
|
-
"required": [
|
|
107
|
-
"op",
|
|
108
|
-
"target",
|
|
109
|
-
"diff",
|
|
110
|
-
"reason"
|
|
111
|
-
],
|
|
112
|
-
"properties": {
|
|
113
|
-
"op": {
|
|
114
|
-
"type": "string",
|
|
115
|
-
"enum": [
|
|
116
|
-
"create",
|
|
117
|
-
"replace",
|
|
118
|
-
"delete",
|
|
119
|
-
"keep",
|
|
120
|
-
"ask"
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
"target": {
|
|
124
|
-
"type": "string",
|
|
125
|
-
"minLength": 1
|
|
126
|
-
},
|
|
127
|
-
"diff": {
|
|
128
|
-
"type": "string",
|
|
129
|
-
"enum": [
|
|
130
|
-
"absent",
|
|
131
|
-
"expected-change",
|
|
132
|
-
"human-change",
|
|
133
|
-
"conflict",
|
|
134
|
-
"potential-deletion",
|
|
135
|
-
"unknown"
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
"reason": {
|
|
139
|
-
"type": "string"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"conflicts": {
|
|
145
|
-
"type": "array",
|
|
146
|
-
"items": {
|
|
147
|
-
"type": "string"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"applyAvailable": {
|
|
151
|
-
"type": "boolean"
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cohorte.dev/schemas/3/run-diff.schema.json",
|
|
4
|
-
"title": "Cohorte run diff (diff --json)",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": [
|
|
7
|
-
"documentVersion",
|
|
8
|
-
"runId",
|
|
9
|
-
"base",
|
|
10
|
-
"head",
|
|
11
|
-
"surfaces"
|
|
12
|
-
],
|
|
13
|
-
"properties": {
|
|
14
|
-
"documentVersion": {
|
|
15
|
-
"type": "number",
|
|
16
|
-
"const": 1
|
|
17
|
-
},
|
|
18
|
-
"runId": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"pattern": "^run_[0-9a-f]{32}$"
|
|
21
|
-
},
|
|
22
|
-
"base": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"required": [
|
|
25
|
-
"branch",
|
|
26
|
-
"sha"
|
|
27
|
-
],
|
|
28
|
-
"properties": {
|
|
29
|
-
"branch": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"sha": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"head": {
|
|
38
|
-
"type": "object",
|
|
39
|
-
"required": [
|
|
40
|
-
"branch",
|
|
41
|
-
"sha",
|
|
42
|
-
"treeDigest"
|
|
43
|
-
],
|
|
44
|
-
"properties": {
|
|
45
|
-
"branch": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
"sha": {
|
|
49
|
-
"type": "string"
|
|
50
|
-
},
|
|
51
|
-
"treeDigest": {
|
|
52
|
-
"type": "string"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"surfaces": {
|
|
57
|
-
"type": "array",
|
|
58
|
-
"items": {
|
|
59
|
-
"type": "object",
|
|
60
|
-
"required": [
|
|
61
|
-
"surface",
|
|
62
|
-
"files",
|
|
63
|
-
"stat",
|
|
64
|
-
"patch"
|
|
65
|
-
],
|
|
66
|
-
"properties": {
|
|
67
|
-
"surface": {
|
|
68
|
-
"anyOf": [
|
|
69
|
-
{
|
|
70
|
-
"type": "string",
|
|
71
|
-
"const": "shared"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"type": "string",
|
|
75
|
-
"pattern": "^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$"
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
|
-
"files": {
|
|
80
|
-
"type": "array",
|
|
81
|
-
"items": {
|
|
82
|
-
"type": "object",
|
|
83
|
-
"required": [
|
|
84
|
-
"path",
|
|
85
|
-
"op"
|
|
86
|
-
],
|
|
87
|
-
"properties": {
|
|
88
|
-
"path": {
|
|
89
|
-
"type": "string"
|
|
90
|
-
},
|
|
91
|
-
"op": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"enum": [
|
|
94
|
-
"read",
|
|
95
|
-
"create",
|
|
96
|
-
"modify",
|
|
97
|
-
"delete"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"beforeSha256": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"pattern": "^[0-9a-f]{64}$"
|
|
103
|
-
},
|
|
104
|
-
"afterSha256": {
|
|
105
|
-
"type": "string",
|
|
106
|
-
"pattern": "^[0-9a-f]{64}$"
|
|
107
|
-
},
|
|
108
|
-
"bytes": {
|
|
109
|
-
"type": "integer",
|
|
110
|
-
"minimum": 0
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"stat": {
|
|
116
|
-
"type": "object",
|
|
117
|
-
"required": [
|
|
118
|
-
"added",
|
|
119
|
-
"removed"
|
|
120
|
-
],
|
|
121
|
-
"properties": {
|
|
122
|
-
"added": {
|
|
123
|
-
"type": "integer",
|
|
124
|
-
"minimum": 0
|
|
125
|
-
},
|
|
126
|
-
"removed": {
|
|
127
|
-
"type": "integer",
|
|
128
|
-
"minimum": 0
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
"patch": {
|
|
133
|
-
"type": "object",
|
|
134
|
-
"required": [
|
|
135
|
-
"artifactId",
|
|
136
|
-
"kind",
|
|
137
|
-
"path",
|
|
138
|
-
"sha256",
|
|
139
|
-
"bytes"
|
|
140
|
-
],
|
|
141
|
-
"properties": {
|
|
142
|
-
"artifactId": {
|
|
143
|
-
"type": "string",
|
|
144
|
-
"pattern": "^art_[0-9a-f]{32}$"
|
|
145
|
-
},
|
|
146
|
-
"kind": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"x-cohorte-known": [
|
|
149
|
-
"diff",
|
|
150
|
-
"file",
|
|
151
|
-
"log",
|
|
152
|
-
"report",
|
|
153
|
-
"agent-output",
|
|
154
|
-
"transcript",
|
|
155
|
-
"context",
|
|
156
|
-
"prompt",
|
|
157
|
-
"patch"
|
|
158
|
-
]
|
|
159
|
-
},
|
|
160
|
-
"path": {
|
|
161
|
-
"type": "string"
|
|
162
|
-
},
|
|
163
|
-
"sha256": {
|
|
164
|
-
"type": "string",
|
|
165
|
-
"pattern": "^[0-9a-f]{64}$"
|
|
166
|
-
},
|
|
167
|
-
"bytes": {
|
|
168
|
-
"type": "integer",
|
|
169
|
-
"minimum": 0
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|