@6reduk/workspace-pipeline 0.1.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/LICENSE +21 -0
- package/README.md +78 -0
- package/docs/collaboration.md +59 -0
- package/docs/config-fields.md +65 -0
- package/docs/contracts.md +149 -0
- package/docs/doctor.md +165 -0
- package/docs/launch.md +50 -0
- package/docs/lifecycle-cli.md +141 -0
- package/docs/lifecycle.md +42 -0
- package/docs/migrations/unity.md +288 -0
- package/docs/native-provider-format.md +149 -0
- package/docs/provider-bundles.md +81 -0
- package/docs/provider-resources.md +37 -0
- package/docs/release.md +25 -0
- package/docs/remove.md +70 -0
- package/docs/repair.md +80 -0
- package/docs/repositories.md +209 -0
- package/docs/repository-manual-recovery.md +102 -0
- package/docs/repository-observations.md +29 -0
- package/docs/repository-recovery.md +204 -0
- package/docs/repository-retention.md +46 -0
- package/docs/repository-transport-budgets.md +26 -0
- package/docs/retention.md +237 -0
- package/docs/source.md +50 -0
- package/docs/switch.md +412 -0
- package/package.json +39 -0
- package/schemas/common.schema.json +251 -0
- package/schemas/inventory.schema.json +15 -0
- package/schemas/operation.schema.json +286 -0
- package/schemas/pipeline.schema.json +317 -0
- package/schemas/state.schema.json +302 -0
- package/schemas/workspace.schema.json +67 -0
- package/src/cli.js +7 -0
- package/src/commands/adopt.js +2 -0
- package/src/commands/bootstrap-recovery.js +90 -0
- package/src/commands/dispatch.js +394 -0
- package/src/commands/init.js +84 -0
- package/src/commands/launch.js +69 -0
- package/src/commands/migration-apply.js +53 -0
- package/src/commands/migration.js +50 -0
- package/src/commands/repositories.js +61 -0
- package/src/commands/repository-abandon.js +16 -0
- package/src/commands/repository-ancestors.js +21 -0
- package/src/commands/repository-locks.js +77 -0
- package/src/contracts/parse.js +57 -0
- package/src/contracts/semantic.js +240 -0
- package/src/contracts/validate.js +21 -0
- package/src/launch/grok.js +20 -0
- package/src/migrations/legacy-unity-begin.js +35 -0
- package/src/migrations/legacy-unity-compensate.js +82 -0
- package/src/migrations/legacy-unity-deactivate.js +60 -0
- package/src/migrations/legacy-unity-deactivation-resume-apply.js +62 -0
- package/src/migrations/legacy-unity-deactivation-resume.js +81 -0
- package/src/migrations/legacy-unity-finalize.js +88 -0
- package/src/migrations/legacy-unity-install-recovery.js +76 -0
- package/src/migrations/legacy-unity-install-resume.js +60 -0
- package/src/migrations/legacy-unity-install.js +88 -0
- package/src/migrations/legacy-unity-lease.js +136 -0
- package/src/migrations/legacy-unity-preflight.js +67 -0
- package/src/migrations/legacy-unity-preview.js +91 -0
- package/src/migrations/legacy-unity-resume-apply.js +39 -0
- package/src/migrations/legacy-unity-resume.js +41 -0
- package/src/migrations/legacy-unity-resumed-evidence.js +88 -0
- package/src/migrations/legacy-unity.js +99 -0
- package/src/operations/apply.js +576 -0
- package/src/operations/backup.js +94 -0
- package/src/operations/bootstrap-lock.js +87 -0
- package/src/operations/bootstrap-owner-retirement.js +121 -0
- package/src/operations/bundle-update.js +54 -0
- package/src/operations/config-fields.js +24 -0
- package/src/operations/continuation-lifecycle.js +77 -0
- package/src/operations/doctor.js +214 -0
- package/src/operations/history.js +170 -0
- package/src/operations/installer-identity.js +49 -0
- package/src/operations/journal.js +142 -0
- package/src/operations/lifecycle.js +133 -0
- package/src/operations/lineage-guard.js +20 -0
- package/src/operations/lock.js +109 -0
- package/src/operations/maintenance.js +62 -0
- package/src/operations/migration-pending.js +22 -0
- package/src/operations/ownership.js +122 -0
- package/src/operations/plan.js +278 -0
- package/src/operations/reconciliation.js +112 -0
- package/src/operations/recovery-lease.js +66 -0
- package/src/operations/remove.js +140 -0
- package/src/operations/repair.js +188 -0
- package/src/operations/repository-abandon.js +192 -0
- package/src/operations/repository-ancestors.js +158 -0
- package/src/operations/repository-apply.js +122 -0
- package/src/operations/repository-authorization.js +48 -0
- package/src/operations/repository-bootstrap-continuation.js +190 -0
- package/src/operations/repository-bootstrap-reconcile.js +106 -0
- package/src/operations/repository-bootstrap-recover.js +114 -0
- package/src/operations/repository-bootstrap.js +82 -0
- package/src/operations/repository-clone.js +63 -0
- package/src/operations/repository-history.js +108 -0
- package/src/operations/repository-inputs.js +41 -0
- package/src/operations/repository-journal.js +127 -0
- package/src/operations/repository-lock-reconcile.js +401 -0
- package/src/operations/repository-pending.js +29 -0
- package/src/operations/repository-reconcile.js +182 -0
- package/src/operations/repository-resumption-approvals.js +77 -0
- package/src/operations/repository-retention-apply.js +75 -0
- package/src/operations/repository-retention.js +137 -0
- package/src/operations/repository-workspace.js +78 -0
- package/src/operations/retention-apply.js +133 -0
- package/src/operations/retention-combined-scan.js +30 -0
- package/src/operations/retention-combined.js +41 -0
- package/src/operations/retention-policy.js +65 -0
- package/src/operations/retention-receipts.js +126 -0
- package/src/operations/retention-scan.js +86 -0
- package/src/operations/retention.js +56 -0
- package/src/operations/state.js +210 -0
- package/src/operations/switch-activate.js +64 -0
- package/src/operations/switch-backups.js +29 -0
- package/src/operations/switch-continuation-journal.js +94 -0
- package/src/operations/switch-continuation-pending.js +60 -0
- package/src/operations/switch-continuation-records.js +109 -0
- package/src/operations/switch-continuation-recovery.js +91 -0
- package/src/operations/switch-continuation-runtime.js +135 -0
- package/src/operations/switch-continuation-store.js +120 -0
- package/src/operations/switch-continuation.js +76 -0
- package/src/operations/switch-execute.js +68 -0
- package/src/operations/switch-inspect.js +45 -0
- package/src/operations/switch-journal-store.js +109 -0
- package/src/operations/switch-journal.js +71 -0
- package/src/operations/switch-lifecycle.js +72 -0
- package/src/operations/switch-pending.js +43 -0
- package/src/operations/switch-preflight.js +73 -0
- package/src/operations/switch-prepare.js +75 -0
- package/src/operations/switch-records.js +60 -0
- package/src/operations/switch-recovery-store.js +74 -0
- package/src/operations/switch.js +52 -0
- package/src/operations/toml-fields.js +133 -0
- package/src/providers/bundles.js +42 -0
- package/src/providers/common-entry.js +16 -0
- package/src/providers/grok.js +26 -0
- package/src/providers/interface.js +25 -0
- package/src/providers/kimi.js +26 -0
- package/src/providers/native.js +155 -0
- package/src/providers/registry.js +10 -0
- package/src/providers/shared.js +51 -0
- package/src/providers/source.js +30 -0
- package/src/source/git.js +303 -0
- package/src/source/inventory.js +87 -0
- package/src/source/repository-budget.js +18 -0
- package/src/source/snapshot.js +37 -0
- package/src/workspace/paths.js +54 -0
- package/src/workspace/profiles.js +8 -0
- package/src/workspace/repositories.js +57 -0
- package/src/workspace/repository-inventory.js +77 -0
- package/src/workspace/repository-observation.js +38 -0
- package/src/workspace/repository-preflight.js +129 -0
- package/src/workspace/repository-preview.js +196 -0
- package/src/workspace/repository-tree.js +57 -0
- package/src/workspace/reserved.js +11 -0
- package/src/workspace/resolve.js +53 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$defs": {
|
|
4
|
+
"bundle": {
|
|
5
|
+
"type": "object", "additionalProperties": false,
|
|
6
|
+
"required": ["providers", "entry"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"providers": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"enum": ["claude", "grok"]}},
|
|
9
|
+
"entry": {"type": "object", "additionalProperties": false, "required": ["source", "target"], "properties": {
|
|
10
|
+
"source": {"$ref": "#/$defs/relativePath"}, "target": {"const": "CLAUDE.md"}
|
|
11
|
+
}}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"bundles": {
|
|
15
|
+
"type": "object", "minProperties": 1, "maxProperties": 1,
|
|
16
|
+
"propertyNames": {"pattern": "^[a-z][a-z0-9-]{0,62}(?![\\s\\S])"},
|
|
17
|
+
"additionalProperties": {"$ref": "#/$defs/bundle"}
|
|
18
|
+
},
|
|
19
|
+
"bundleIds": {"type": "array", "minItems": 1, "uniqueItems": true,
|
|
20
|
+
"items": {"type": "string", "pattern": "^[a-z][a-z0-9-]{0,62}(?![\\s\\S])"}},
|
|
21
|
+
"relativePath": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^(?![./])(?:[A-Za-z0-9_-][A-Za-z0-9_. -]*)(?:/[A-Za-z0-9_-][A-Za-z0-9_. -]*)*(?![\\s\\S])",
|
|
24
|
+
"maxLength": 240
|
|
25
|
+
},
|
|
26
|
+
"subdirectory": {
|
|
27
|
+
"anyOf": [
|
|
28
|
+
{
|
|
29
|
+
"const": "."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"$ref": "#/$defs/relativePath"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"gitSource": {
|
|
37
|
+
"oneOf": [
|
|
38
|
+
{
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"type": {
|
|
42
|
+
"const": "git"
|
|
43
|
+
},
|
|
44
|
+
"transport": {
|
|
45
|
+
"const": "local"
|
|
46
|
+
},
|
|
47
|
+
"path": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"minLength": 1,
|
|
50
|
+
"maxLength": 1024,
|
|
51
|
+
"pattern": "^(?!/|[A-Za-z]:|-)[^\\\\\\u0000-\\u001f\\u007f\\u0085\\u2028\\u2029\\ufeff]+(?![\\s\\S])"
|
|
52
|
+
},
|
|
53
|
+
"ref": {
|
|
54
|
+
"$ref": "#/$defs/gitRef"
|
|
55
|
+
},
|
|
56
|
+
"subdirectory": {
|
|
57
|
+
"$ref": "#/$defs/subdirectory"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"type",
|
|
62
|
+
"transport",
|
|
63
|
+
"path",
|
|
64
|
+
"ref",
|
|
65
|
+
"subdirectory"
|
|
66
|
+
],
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"type": {
|
|
73
|
+
"const": "git"
|
|
74
|
+
},
|
|
75
|
+
"transport": {
|
|
76
|
+
"const": "remote"
|
|
77
|
+
},
|
|
78
|
+
"url": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"maxLength": 2048,
|
|
81
|
+
"pattern": "^(?:https://[A-Za-z0-9][A-Za-z0-9.-]*(?::[0-9]+)?/[^?#\\\\\\u0000-\\u0020\\u007f\\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]+|ssh://(?:[A-Za-z0-9_][A-Za-z0-9_.-]*@)?[A-Za-z0-9][A-Za-z0-9.-]*(?::[0-9]+)?/[^?#\\\\\\u0000-\\u0020\\u007f\\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]+)(?![\\s\\S])"
|
|
82
|
+
},
|
|
83
|
+
"ref": {
|
|
84
|
+
"$ref": "#/$defs/gitRef"
|
|
85
|
+
},
|
|
86
|
+
"subdirectory": {
|
|
87
|
+
"$ref": "#/$defs/subdirectory"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"type",
|
|
92
|
+
"transport",
|
|
93
|
+
"url",
|
|
94
|
+
"ref",
|
|
95
|
+
"subdirectory"
|
|
96
|
+
],
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"layout": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"properties": {
|
|
104
|
+
"kind": {
|
|
105
|
+
"enum": [
|
|
106
|
+
"single-repo",
|
|
107
|
+
"multi-repo"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"repositories": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"minProperties": 1,
|
|
113
|
+
"propertyNames": {
|
|
114
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}(?![\\s\\S])"
|
|
115
|
+
},
|
|
116
|
+
"additionalProperties": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"path": {
|
|
120
|
+
"$ref": "#/$defs/relativePath"
|
|
121
|
+
},
|
|
122
|
+
"role": {
|
|
123
|
+
"enum": [
|
|
124
|
+
"code",
|
|
125
|
+
"documentation",
|
|
126
|
+
"library"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"source": {
|
|
130
|
+
"$ref": "#/$defs/gitSource"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": [
|
|
134
|
+
"path",
|
|
135
|
+
"role"
|
|
136
|
+
],
|
|
137
|
+
"additionalProperties": false
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"documentation": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"repository": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}(?![\\s\\S])"
|
|
146
|
+
},
|
|
147
|
+
"path": {
|
|
148
|
+
"$ref": "#/$defs/subdirectory"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"repository",
|
|
153
|
+
"path"
|
|
154
|
+
],
|
|
155
|
+
"additionalProperties": false
|
|
156
|
+
},
|
|
157
|
+
"projectRoots": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"propertyNames": {
|
|
160
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}(?![\\s\\S])"
|
|
161
|
+
},
|
|
162
|
+
"additionalProperties": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"repository": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}(?![\\s\\S])"
|
|
168
|
+
},
|
|
169
|
+
"path": {
|
|
170
|
+
"$ref": "#/$defs/subdirectory"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"required": [
|
|
174
|
+
"repository",
|
|
175
|
+
"path"
|
|
176
|
+
],
|
|
177
|
+
"additionalProperties": false
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"required": [
|
|
182
|
+
"kind",
|
|
183
|
+
"repositories",
|
|
184
|
+
"documentation"
|
|
185
|
+
],
|
|
186
|
+
"additionalProperties": false,
|
|
187
|
+
"allOf": [
|
|
188
|
+
{
|
|
189
|
+
"if": {
|
|
190
|
+
"properties": {
|
|
191
|
+
"kind": {
|
|
192
|
+
"const": "single-repo"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"then": {
|
|
197
|
+
"properties": {
|
|
198
|
+
"repositories": {
|
|
199
|
+
"maxProperties": 1
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"else": {
|
|
204
|
+
"properties": {
|
|
205
|
+
"repositories": {
|
|
206
|
+
"minProperties": 2
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"agentsDocument": {
|
|
214
|
+
"oneOf": [
|
|
215
|
+
{
|
|
216
|
+
"type": "object",
|
|
217
|
+
"properties": {
|
|
218
|
+
"mode": {
|
|
219
|
+
"const": "default"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"required": [
|
|
223
|
+
"mode"
|
|
224
|
+
],
|
|
225
|
+
"additionalProperties": false
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"type": "object",
|
|
229
|
+
"properties": {
|
|
230
|
+
"mode": {
|
|
231
|
+
"const": "source"
|
|
232
|
+
},
|
|
233
|
+
"path": {
|
|
234
|
+
"$ref": "#/$defs/relativePath"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"required": [
|
|
238
|
+
"mode",
|
|
239
|
+
"path"
|
|
240
|
+
],
|
|
241
|
+
"additionalProperties": false
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
"gitRef": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"maxLength": 240,
|
|
248
|
+
"pattern": "^(?!.*\\.\\.)(?!.*//)[A-Za-z0-9][A-Za-z0-9_./-]*(?![\\s\\S])"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"minProperties": 1,
|
|
5
|
+
"maxProperties": 9999,
|
|
6
|
+
"propertyNames": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"maxLength": 240,
|
|
9
|
+
"pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9_.-][A-Za-z0-9_. -]*(?:/[A-Za-z0-9_.-][A-Za-z0-9_. -]*)*(?![\\s\\S])"
|
|
10
|
+
},
|
|
11
|
+
"additionalProperties": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"oneOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"schemaVersion": {
|
|
8
|
+
"const": 1
|
|
9
|
+
},
|
|
10
|
+
"kind": {
|
|
11
|
+
"const": "plan"
|
|
12
|
+
},
|
|
13
|
+
"workspace": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 1024
|
|
17
|
+
},
|
|
18
|
+
"command": {
|
|
19
|
+
"enum": [
|
|
20
|
+
"init",
|
|
21
|
+
"setup",
|
|
22
|
+
"adopt",
|
|
23
|
+
"update",
|
|
24
|
+
"repair",
|
|
25
|
+
"remove",
|
|
26
|
+
"switch"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"beforeStateHash": {
|
|
30
|
+
"anyOf": [
|
|
31
|
+
{
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "null"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"source": {
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{
|
|
43
|
+
"$ref": "state.schema.json#/$defs/snapshot"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "null"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"desired": {
|
|
51
|
+
"anyOf": [
|
|
52
|
+
{
|
|
53
|
+
"$ref": "state.schema.json#/$defs/deployment"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "null"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"targets": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"maxItems": 10000,
|
|
63
|
+
"items": {
|
|
64
|
+
"$ref": "#/$defs/target"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": [
|
|
69
|
+
"schemaVersion",
|
|
70
|
+
"kind",
|
|
71
|
+
"workspace",
|
|
72
|
+
"command",
|
|
73
|
+
"beforeStateHash",
|
|
74
|
+
"source",
|
|
75
|
+
"desired",
|
|
76
|
+
"targets"
|
|
77
|
+
],
|
|
78
|
+
"additionalProperties": false
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"schemaVersion": {
|
|
84
|
+
"const": 1
|
|
85
|
+
},
|
|
86
|
+
"kind": {
|
|
87
|
+
"const": "receipt"
|
|
88
|
+
},
|
|
89
|
+
"planDigest": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
92
|
+
},
|
|
93
|
+
"status": {
|
|
94
|
+
"enum": [
|
|
95
|
+
"completed",
|
|
96
|
+
"failed",
|
|
97
|
+
"uncertain"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"operations": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"maxItems": 10000,
|
|
103
|
+
"items": {
|
|
104
|
+
"$ref": "#/$defs/receipt"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"schemaVersion",
|
|
110
|
+
"kind",
|
|
111
|
+
"planDigest",
|
|
112
|
+
"status",
|
|
113
|
+
"operations"
|
|
114
|
+
],
|
|
115
|
+
"additionalProperties": false
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"$defs": {
|
|
119
|
+
"target": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"id": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"minLength": 1,
|
|
125
|
+
"maxLength": 1024
|
|
126
|
+
},
|
|
127
|
+
"path": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"maxLength": 240,
|
|
130
|
+
"pattern": "^(?!/)[A-Za-z0-9_.-][A-Za-z0-9_. /-]*(?![\\s\\S])"
|
|
131
|
+
},
|
|
132
|
+
"action": {
|
|
133
|
+
"enum": [
|
|
134
|
+
"create",
|
|
135
|
+
"replace",
|
|
136
|
+
"delete",
|
|
137
|
+
"verify-absent",
|
|
138
|
+
"edit-fields"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"owner": {
|
|
142
|
+
"enum": [
|
|
143
|
+
"shared",
|
|
144
|
+
"codex",
|
|
145
|
+
"claude",
|
|
146
|
+
"kimi",
|
|
147
|
+
"grok"
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"beforeHash": {
|
|
151
|
+
"anyOf": [
|
|
152
|
+
{
|
|
153
|
+
"type": "string",
|
|
154
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "null"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"desiredHash": {
|
|
162
|
+
"anyOf": [
|
|
163
|
+
{
|
|
164
|
+
"type": "string",
|
|
165
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "null"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"fields": {
|
|
173
|
+
"type": "array",
|
|
174
|
+
"maxItems": 1000,
|
|
175
|
+
"items": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"pointer": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"minLength": 1,
|
|
181
|
+
"maxLength": 1024
|
|
182
|
+
},
|
|
183
|
+
"beforeHash": {
|
|
184
|
+
"anyOf": [
|
|
185
|
+
{
|
|
186
|
+
"type": "string",
|
|
187
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"type": "null"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"desiredHash": {
|
|
195
|
+
"anyOf": [
|
|
196
|
+
{
|
|
197
|
+
"type": "string",
|
|
198
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "null"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"required": [
|
|
207
|
+
"pointer",
|
|
208
|
+
"beforeHash",
|
|
209
|
+
"desiredHash"
|
|
210
|
+
],
|
|
211
|
+
"additionalProperties": false
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"required": [
|
|
216
|
+
"id",
|
|
217
|
+
"path",
|
|
218
|
+
"action",
|
|
219
|
+
"owner",
|
|
220
|
+
"beforeHash",
|
|
221
|
+
"desiredHash",
|
|
222
|
+
"fields"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false
|
|
225
|
+
},
|
|
226
|
+
"receipt": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"properties": {
|
|
229
|
+
"operationId": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"minLength": 1,
|
|
232
|
+
"maxLength": 1024
|
|
233
|
+
},
|
|
234
|
+
"status": {
|
|
235
|
+
"enum": [
|
|
236
|
+
"completed",
|
|
237
|
+
"failed",
|
|
238
|
+
"uncertain",
|
|
239
|
+
"skipped"
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
"beforeHash": {
|
|
243
|
+
"anyOf": [
|
|
244
|
+
{
|
|
245
|
+
"type": "string",
|
|
246
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"type": "null"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
"desiredHash": {
|
|
254
|
+
"anyOf": [
|
|
255
|
+
{
|
|
256
|
+
"type": "string",
|
|
257
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "null"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"observedHash": {
|
|
265
|
+
"anyOf": [
|
|
266
|
+
{
|
|
267
|
+
"type": "string",
|
|
268
|
+
"pattern": "^sha256:[a-f0-9]{64}(?![\\s\\S])"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "null"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"required": [
|
|
277
|
+
"operationId",
|
|
278
|
+
"status",
|
|
279
|
+
"beforeHash",
|
|
280
|
+
"desiredHash",
|
|
281
|
+
"observedHash"
|
|
282
|
+
],
|
|
283
|
+
"additionalProperties": false
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|