@openplanr/protocol 0.15.0 → 0.17.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/package.json +5 -1
- package/registries/commands.json +11 -11
- package/registries/skills.json +10 -10
- package/registry/v1.17.0/commands.json +2 -2
- package/schemas/v1.23.0/implementation-result.schema.json +181 -0
- package/src/contracts.mjs +4 -1
- package/src/design-review-bundle-contracts.d.mts +3 -0
- package/src/design-review-bundle-contracts.mjs +92 -0
- package/src/generated/canonical-registries.mjs +21 -21
- package/src/review-experience-contracts.mjs +1 -1
- package/src/workspace-contracts.d.mts +4 -2
- package/src/workspace-contracts.mjs +5 -83
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openplanr/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -108,6 +108,10 @@
|
|
|
108
108
|
"types": "./src/large-object-contracts.d.mts",
|
|
109
109
|
"import": "./src/large-object-contracts.mjs"
|
|
110
110
|
},
|
|
111
|
+
"./large-object-limits": {
|
|
112
|
+
"types": "./src/large-object-limits.d.mts",
|
|
113
|
+
"import": "./src/large-object-limits.mjs"
|
|
114
|
+
},
|
|
111
115
|
"./studio-presentation-contracts": {
|
|
112
116
|
"types": "./src/studio-presentation-contracts.d.mts",
|
|
113
117
|
"import": "./src/studio-presentation-contracts.mjs"
|
package/registries/commands.json
CHANGED
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"ownerPackage": "openplanr",
|
|
189
189
|
"source": {
|
|
190
190
|
"path": "packages/cli/src/cli/commands/artifact.ts",
|
|
191
|
-
"digest": "sha256:
|
|
191
|
+
"digest": "sha256:69a3d163c58a5764fa558f1f9929a123230549eb4a2b180e334a71069d573b60"
|
|
192
192
|
},
|
|
193
193
|
"authorityClass": "workflow",
|
|
194
194
|
"machineJson": false,
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
"ownerPackage": "openplanr",
|
|
357
357
|
"source": {
|
|
358
358
|
"path": "skills/planr-plan/SKILL.md",
|
|
359
|
-
"digest": "sha256:
|
|
359
|
+
"digest": "sha256:dedf2805f8387fb68da633b70a9de93fed3e9179ca2299b4a7ee68c7fe517306"
|
|
360
360
|
},
|
|
361
361
|
"authorityClass": "workflow",
|
|
362
362
|
"machineJson": false,
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
"ownerPackage": "openplanr",
|
|
378
378
|
"source": {
|
|
379
379
|
"path": "docs/generated/utility-command-catalog.json",
|
|
380
|
-
"digest": "sha256:
|
|
380
|
+
"digest": "sha256:08cfb9cc8a5c6d97e5add1ef0cf879c076ddd9bc84f7979c4de7cc2fcdd75d0b"
|
|
381
381
|
},
|
|
382
382
|
"authorityClass": "workflow",
|
|
383
383
|
"machineJson": false,
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"ownerPackage": "openplanr",
|
|
567
567
|
"source": {
|
|
568
568
|
"path": "docs/generated/utility-command-catalog.json",
|
|
569
|
-
"digest": "sha256:
|
|
569
|
+
"digest": "sha256:08cfb9cc8a5c6d97e5add1ef0cf879c076ddd9bc84f7979c4de7cc2fcdd75d0b"
|
|
570
570
|
},
|
|
571
571
|
"authorityClass": "workflow",
|
|
572
572
|
"machineJson": true,
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"ownerPackage": "openplanr",
|
|
588
588
|
"source": {
|
|
589
589
|
"path": "skills/planr-plan/SKILL.md",
|
|
590
|
-
"digest": "sha256:
|
|
590
|
+
"digest": "sha256:dedf2805f8387fb68da633b70a9de93fed3e9179ca2299b4a7ee68c7fe517306"
|
|
591
591
|
},
|
|
592
592
|
"authorityClass": "workflow",
|
|
593
593
|
"machineJson": false,
|
|
@@ -1028,7 +1028,7 @@
|
|
|
1028
1028
|
"ownerPackage": "planr-pipeline",
|
|
1029
1029
|
"source": {
|
|
1030
1030
|
"path": "skills/planr-design/SKILL.md",
|
|
1031
|
-
"digest": "sha256:
|
|
1031
|
+
"digest": "sha256:e584637a3adaaa4d64384c073b5c212124b0af53f1dd0c97336b97fee3e5374f"
|
|
1032
1032
|
},
|
|
1033
1033
|
"authorityClass": "compatibility-router",
|
|
1034
1034
|
"machineJson": false,
|
|
@@ -1049,7 +1049,7 @@
|
|
|
1049
1049
|
"ownerPackage": "planr-pipeline",
|
|
1050
1050
|
"source": {
|
|
1051
1051
|
"path": "skills/planr-design-loop/SKILL.md",
|
|
1052
|
-
"digest": "sha256:
|
|
1052
|
+
"digest": "sha256:b90b1153ee7df23b31022ebb480f153c8e2048cdc04c2708cab2cc3104efa303"
|
|
1053
1053
|
},
|
|
1054
1054
|
"authorityClass": "compatibility-router",
|
|
1055
1055
|
"machineJson": false,
|
|
@@ -1070,7 +1070,7 @@
|
|
|
1070
1070
|
"ownerPackage": "planr-pipeline",
|
|
1071
1071
|
"source": {
|
|
1072
1072
|
"path": "skills/planr-design-review/SKILL.md",
|
|
1073
|
-
"digest": "sha256:
|
|
1073
|
+
"digest": "sha256:d4074dfdb3f50eb95fde37f1029a11d379afb29cfc19e8091ee55f4e02956058"
|
|
1074
1074
|
},
|
|
1075
1075
|
"authorityClass": "compatibility-router",
|
|
1076
1076
|
"machineJson": false,
|
|
@@ -1091,7 +1091,7 @@
|
|
|
1091
1091
|
"ownerPackage": "planr-pipeline",
|
|
1092
1092
|
"source": {
|
|
1093
1093
|
"path": "skills/planr-plan/SKILL.md",
|
|
1094
|
-
"digest": "sha256:
|
|
1094
|
+
"digest": "sha256:dedf2805f8387fb68da633b70a9de93fed3e9179ca2299b4a7ee68c7fe517306"
|
|
1095
1095
|
},
|
|
1096
1096
|
"authorityClass": "compatibility-router",
|
|
1097
1097
|
"machineJson": false,
|
|
@@ -1112,7 +1112,7 @@
|
|
|
1112
1112
|
"ownerPackage": "planr-pipeline",
|
|
1113
1113
|
"source": {
|
|
1114
1114
|
"path": "skills/planr-ship/SKILL.md",
|
|
1115
|
-
"digest": "sha256:
|
|
1115
|
+
"digest": "sha256:239dc1dc9aa54ba6f2e4782083ce602b2d520680219d328a5d2e1e151f9dd13d"
|
|
1116
1116
|
},
|
|
1117
1117
|
"authorityClass": "compatibility-router",
|
|
1118
1118
|
"machineJson": false,
|
|
@@ -1948,5 +1948,5 @@
|
|
|
1948
1948
|
]
|
|
1949
1949
|
}
|
|
1950
1950
|
],
|
|
1951
|
-
"documentDigest": "sha256:
|
|
1951
|
+
"documentDigest": "sha256:58b61e5d5cc0dc988f659e137cc8246ed0893cf82d537b6972d6a59ebea35fcf"
|
|
1952
1952
|
}
|
package/registries/skills.json
CHANGED
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
"lifecycle": "active",
|
|
686
686
|
"authorityClass": "implementation",
|
|
687
687
|
"source": "skills/planr-delegate/openplanr.skill.json",
|
|
688
|
-
"sourceDigest": "sha256:
|
|
688
|
+
"sourceDigest": "sha256:f6a7e2a965dff4dab0f6414ae0bcb7289903dfbc2022a88d0528b8b9c0ea2c91",
|
|
689
689
|
"triggerPolicy": {
|
|
690
690
|
"include": [
|
|
691
691
|
"Delegate implementation to another coding agent",
|
|
@@ -755,7 +755,7 @@
|
|
|
755
755
|
"lifecycle": "active",
|
|
756
756
|
"authorityClass": "planning-write",
|
|
757
757
|
"source": "skills/planr-design/openplanr.skill.json",
|
|
758
|
-
"sourceDigest": "sha256:
|
|
758
|
+
"sourceDigest": "sha256:da6e4b51fa16e55425d9d7460dcdceab4cfc414f20050d532464a76d988d34b8",
|
|
759
759
|
"triggerPolicy": {
|
|
760
760
|
"include": [
|
|
761
761
|
"Create an initial product design direction",
|
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
"lifecycle": "active",
|
|
817
817
|
"authorityClass": "planning-write",
|
|
818
818
|
"source": "skills/planr-design-loop/openplanr.skill.json",
|
|
819
|
-
"sourceDigest": "sha256:
|
|
819
|
+
"sourceDigest": "sha256:f96a6bceaaabff1acbdaad257ee0d602705305661c102bc22c21b2d40db50f6f",
|
|
820
820
|
"triggerPolicy": {
|
|
821
821
|
"include": [
|
|
822
822
|
"Explore multiple design directions or variants",
|
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
"lifecycle": "active",
|
|
878
878
|
"authorityClass": "review-evidence",
|
|
879
879
|
"source": "skills/planr-design-review/openplanr.skill.json",
|
|
880
|
-
"sourceDigest": "sha256:
|
|
880
|
+
"sourceDigest": "sha256:3151d0c1d1e306305256271abfbbab7408ce55b178868159ec9d82f426de499b",
|
|
881
881
|
"triggerPolicy": {
|
|
882
882
|
"include": [
|
|
883
883
|
"Review or critique an existing OpenPlanr design",
|
|
@@ -1060,12 +1060,12 @@
|
|
|
1060
1060
|
},
|
|
1061
1061
|
{
|
|
1062
1062
|
"skillId": "planr-investigate",
|
|
1063
|
-
"skillVersion": "2.
|
|
1063
|
+
"skillVersion": "2.3.0",
|
|
1064
1064
|
"description": "Diagnose a bug, regression, error, or unexplained behavior and optionally implement a bounded fix. Use for root-cause investigation, including before any fix, not planned feature delivery.",
|
|
1065
1065
|
"lifecycle": "active",
|
|
1066
1066
|
"authorityClass": "diagnostic",
|
|
1067
1067
|
"source": "skills/planr-investigate/openplanr.skill.json",
|
|
1068
|
-
"sourceDigest": "sha256:
|
|
1068
|
+
"sourceDigest": "sha256:2a0fcaacd12fe22b78d4c72e0c6ef27effc2f9c5c1d04758920ec3810c1e6ce4",
|
|
1069
1069
|
"triggerPolicy": {
|
|
1070
1070
|
"include": [
|
|
1071
1071
|
"Investigate a bug, regression, error, or unexplained behavior",
|
|
@@ -1310,7 +1310,7 @@
|
|
|
1310
1310
|
"lifecycle": "active",
|
|
1311
1311
|
"authorityClass": "planning-write",
|
|
1312
1312
|
"source": "skills/planr-plan/openplanr.skill.json",
|
|
1313
|
-
"sourceDigest": "sha256:
|
|
1313
|
+
"sourceDigest": "sha256:4f2c0de87e8c91f0aa244f72042044e791342d5b4718cf2d0f86cf34c7d5a6ce",
|
|
1314
1314
|
"triggerPolicy": {
|
|
1315
1315
|
"include": [
|
|
1316
1316
|
"Decompose a specification into user stories and implementation tasks",
|
|
@@ -1548,12 +1548,12 @@
|
|
|
1548
1548
|
},
|
|
1549
1549
|
{
|
|
1550
1550
|
"skillId": "planr-ship",
|
|
1551
|
-
"skillVersion": "1.
|
|
1551
|
+
"skillVersion": "1.6.0",
|
|
1552
1552
|
"description": "Implement an OpenPlanr plan, specification, task, or clearly stated request end to end in the current repository. Use when the user asks to build, implement, fix, finish, or ship local work, or to plan and implement an accepted change. Invoke before editing files for the requested change. Not for planning only, landing, release, or work handed to another coding agent.",
|
|
1553
1553
|
"lifecycle": "active",
|
|
1554
1554
|
"authorityClass": "implementation",
|
|
1555
1555
|
"source": "skills/planr-ship/openplanr.skill.json",
|
|
1556
|
-
"sourceDigest": "sha256:
|
|
1556
|
+
"sourceDigest": "sha256:46b7912188268e8f50125cb4554869c05d274544ebd90c59721e206538731cc5",
|
|
1557
1557
|
"triggerPolicy": {
|
|
1558
1558
|
"include": [
|
|
1559
1559
|
"Implement a plan, specification, task, fix, or clearly stated local request",
|
|
@@ -1864,5 +1864,5 @@
|
|
|
1864
1864
|
}
|
|
1865
1865
|
],
|
|
1866
1866
|
"compatibilityAliases": [],
|
|
1867
|
-
"documentDigest": "sha256:
|
|
1867
|
+
"documentDigest": "sha256:b96afecdc3296b6e3898596ee3493b05fc24b4637f818d94b4898e47efda10a9"
|
|
1868
1868
|
}
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"machineJson": true,
|
|
78
78
|
"source": {
|
|
79
79
|
"path": "packages/cli/src/cli/commands/artifact.ts",
|
|
80
|
-
"digest": "sha256:
|
|
80
|
+
"digest": "sha256:69a3d163c58a5764fa558f1f9929a123230549eb4a2b180e334a71069d573b60"
|
|
81
81
|
},
|
|
82
82
|
"testRefs": [
|
|
83
83
|
"packages/cli/tests/unit/artifact-paste-custody.test.ts"
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
],
|
|
87
|
-
"documentDigest": "sha256:
|
|
87
|
+
"documentDigest": "sha256:1a834e8046a91ad3f75aee5c4f1743ff5a9802b7c6afebb365ed98ea4616c0e5"
|
|
88
88
|
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.23.0/implementation-result.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "implementation-result",
|
|
6
|
+
"version": "1.23.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"required": [
|
|
11
|
+
"outcome",
|
|
12
|
+
"task",
|
|
13
|
+
"changed",
|
|
14
|
+
"checks",
|
|
15
|
+
"issues"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"outcome": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": [
|
|
22
|
+
"status",
|
|
23
|
+
"summary"
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"status": {
|
|
27
|
+
"enum": [
|
|
28
|
+
"completed",
|
|
29
|
+
"partial",
|
|
30
|
+
"blocked",
|
|
31
|
+
"awaiting-acceptance"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"summary": {
|
|
35
|
+
"$ref": "#/$defs/nonBlankText"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"task": {
|
|
40
|
+
"oneOf": [
|
|
41
|
+
{
|
|
42
|
+
"title": "Planr task",
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"required": [
|
|
46
|
+
"kind",
|
|
47
|
+
"id",
|
|
48
|
+
"path"
|
|
49
|
+
],
|
|
50
|
+
"properties": {
|
|
51
|
+
"kind": {
|
|
52
|
+
"const": "planr-task"
|
|
53
|
+
},
|
|
54
|
+
"id": {
|
|
55
|
+
"$ref": "#/$defs/taskId"
|
|
56
|
+
},
|
|
57
|
+
"path": {
|
|
58
|
+
"$ref": "#/$defs/relativePath"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"title": "Direct request",
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": [
|
|
67
|
+
"kind"
|
|
68
|
+
],
|
|
69
|
+
"properties": {
|
|
70
|
+
"kind": {
|
|
71
|
+
"const": "direct-request"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"changed": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": [
|
|
83
|
+
"path",
|
|
84
|
+
"purpose"
|
|
85
|
+
],
|
|
86
|
+
"properties": {
|
|
87
|
+
"path": {
|
|
88
|
+
"$ref": "#/$defs/relativePath"
|
|
89
|
+
},
|
|
90
|
+
"purpose": {
|
|
91
|
+
"$ref": "#/$defs/nonBlankText"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"minItems": 0,
|
|
96
|
+
"maxItems": 4096
|
|
97
|
+
},
|
|
98
|
+
"checks": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"required": [
|
|
104
|
+
"command",
|
|
105
|
+
"status",
|
|
106
|
+
"detail"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"command": {
|
|
110
|
+
"$ref": "#/$defs/nonBlankText"
|
|
111
|
+
},
|
|
112
|
+
"status": {
|
|
113
|
+
"enum": [
|
|
114
|
+
"passed",
|
|
115
|
+
"failed",
|
|
116
|
+
"not-run"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"detail": {
|
|
120
|
+
"$ref": "#/$defs/nonBlankText"
|
|
121
|
+
},
|
|
122
|
+
"acceptanceIds": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"pattern": "^(?:[A-Z][A-Z0-9]*-[0-9]+\\.)?AC-[0-9]+$"
|
|
127
|
+
},
|
|
128
|
+
"minItems": 0,
|
|
129
|
+
"maxItems": 256,
|
|
130
|
+
"uniqueItems": true
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"minItems": 0,
|
|
135
|
+
"maxItems": 256
|
|
136
|
+
},
|
|
137
|
+
"issues": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"items": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"required": [
|
|
143
|
+
"problem",
|
|
144
|
+
"impact",
|
|
145
|
+
"nextAction"
|
|
146
|
+
],
|
|
147
|
+
"properties": {
|
|
148
|
+
"problem": {
|
|
149
|
+
"$ref": "#/$defs/nonBlankText"
|
|
150
|
+
},
|
|
151
|
+
"impact": {
|
|
152
|
+
"$ref": "#/$defs/nonBlankText"
|
|
153
|
+
},
|
|
154
|
+
"nextAction": {
|
|
155
|
+
"$ref": "#/$defs/nonBlankText"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"minItems": 0,
|
|
160
|
+
"maxItems": 256
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"$defs": {
|
|
164
|
+
"nonBlankText": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"minLength": 1,
|
|
167
|
+
"maxLength": 16384,
|
|
168
|
+
"pattern": ".*\\S.*"
|
|
169
|
+
},
|
|
170
|
+
"relativePath": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"minLength": 1,
|
|
173
|
+
"maxLength": 1024,
|
|
174
|
+
"pattern": "^(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*//).+$"
|
|
175
|
+
},
|
|
176
|
+
"taskId": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"pattern": "^T-[0-9]{3}$"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
package/src/contracts.mjs
CHANGED
|
@@ -224,7 +224,10 @@ const foundationPaths = {
|
|
|
224
224
|
'task-kind-registry': { '1.5.0': 'schemas/v1.5.0/task-kind-registry.schema.json' },
|
|
225
225
|
'task-manifest': { '1.5.0': 'schemas/v1.5.0/task-manifest.schema.json' },
|
|
226
226
|
'task-output-manifest': { '1.5.0': 'schemas/v1.5.0/task-output-manifest.schema.json' },
|
|
227
|
-
'implementation-result': {
|
|
227
|
+
'implementation-result': {
|
|
228
|
+
'1.5.0': 'schemas/v1.5.0/implementation-result.schema.json',
|
|
229
|
+
'1.23.0': 'schemas/v1.23.0/implementation-result.schema.json',
|
|
230
|
+
},
|
|
228
231
|
'rule-catalog': { '1.5.0': 'schemas/v1.5.0/rule-catalog.schema.json' },
|
|
229
232
|
'command-catalog': { '1.5.0': 'schemas/v1.5.0/command-catalog.schema.json' },
|
|
230
233
|
'skill-catalog': {
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { DESIGN_DOCUMENT_V1_SCHEMA } from './design-contracts.mjs';
|
|
3
|
+
|
|
4
|
+
/** @type {typeof import('./design-review-bundle-contracts.d.mts').DESIGN_WORKSPACE_VERSION} */
|
|
5
|
+
export const DESIGN_WORKSPACE_VERSION = '1.0.0';
|
|
6
|
+
|
|
7
|
+
// An explicit presentation-only model. Authored paths, source provenance, and
|
|
8
|
+
// design-system references are deliberately not part of a published workspace.
|
|
9
|
+
const designProperties =
|
|
10
|
+
/** @type {Record<string, { items: { properties: Record<string, unknown>; required: string[] } }>} */ (
|
|
11
|
+
structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.properties)
|
|
12
|
+
);
|
|
13
|
+
for (const key of ['kind', 'schemaVersion', 'brief', 'assets', 'designSystem'])
|
|
14
|
+
delete designProperties[key];
|
|
15
|
+
delete designProperties.screens.items.properties.source;
|
|
16
|
+
designProperties.screens.items.required = ['id', 'title'];
|
|
17
|
+
delete designProperties.variants.items.properties.sources;
|
|
18
|
+
/** @type {typeof import('./design-review-bundle-contracts.d.mts').DESIGN_REVIEW_BUNDLE_SCHEMA} */
|
|
19
|
+
export const DESIGN_REVIEW_BUNDLE_SCHEMA = {
|
|
20
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
21
|
+
$id: 'https://openplanr.dev/schemas/v1.9.0/design-review-bundle.schema.json',
|
|
22
|
+
'x-openplanr-contract': { id: 'design-review-bundle', version: '1.9.0' },
|
|
23
|
+
type: 'object',
|
|
24
|
+
additionalProperties: false,
|
|
25
|
+
properties: {
|
|
26
|
+
kind: { const: 'openplanr-design-review-bundle' },
|
|
27
|
+
schemaVersion: { const: DESIGN_WORKSPACE_VERSION },
|
|
28
|
+
design: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
additionalProperties: false,
|
|
31
|
+
properties: designProperties,
|
|
32
|
+
required: [
|
|
33
|
+
'id',
|
|
34
|
+
'title',
|
|
35
|
+
'frames',
|
|
36
|
+
'screens',
|
|
37
|
+
'screenOrder',
|
|
38
|
+
'variants',
|
|
39
|
+
'selectedVariant',
|
|
40
|
+
'defaultView',
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
envelope: {
|
|
44
|
+
type: 'object',
|
|
45
|
+
required: ['schemaVersion', 'artifacts', 'viewer'],
|
|
46
|
+
},
|
|
47
|
+
entries: {
|
|
48
|
+
type: 'array',
|
|
49
|
+
minItems: 1,
|
|
50
|
+
maxItems: 256,
|
|
51
|
+
items: {
|
|
52
|
+
type: 'object',
|
|
53
|
+
additionalProperties: false,
|
|
54
|
+
required: ['artifactId', 'screenId', 'variantId', 'frameId'],
|
|
55
|
+
properties: Object.fromEntries(
|
|
56
|
+
['artifactId', 'screenId', 'variantId', 'frameId'].map((key) => [
|
|
57
|
+
key,
|
|
58
|
+
{ type: 'string', minLength: 1, maxLength: 128 },
|
|
59
|
+
]),
|
|
60
|
+
),
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
state: {
|
|
64
|
+
type: ['object', 'null'],
|
|
65
|
+
additionalProperties: false,
|
|
66
|
+
properties: {
|
|
67
|
+
positions: {
|
|
68
|
+
type: 'object',
|
|
69
|
+
additionalProperties: {
|
|
70
|
+
type: 'object',
|
|
71
|
+
additionalProperties: false,
|
|
72
|
+
required: ['x', 'y'],
|
|
73
|
+
properties: {
|
|
74
|
+
x: { type: 'number', minimum: -1e7, maximum: 1e7 },
|
|
75
|
+
y: { type: 'number', minimum: -1e7, maximum: 1e7 },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
revision: { type: 'string', minLength: 1, maxLength: 128 },
|
|
82
|
+
verification: {
|
|
83
|
+
type: ['object', 'null'],
|
|
84
|
+
additionalProperties: false,
|
|
85
|
+
properties: {
|
|
86
|
+
status: { enum: ['verified', 'unverified', 'failed', 'pending'] },
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
required: ['kind', 'schemaVersion', 'design', 'envelope', 'entries', 'revision'],
|
|
91
|
+
$defs: structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.$defs),
|
|
92
|
+
};
|
|
@@ -1249,7 +1249,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1249
1249
|
"ownerPackage": "openplanr",
|
|
1250
1250
|
"source": {
|
|
1251
1251
|
"path": "packages/cli/src/cli/commands/artifact.ts",
|
|
1252
|
-
"digest": "sha256:
|
|
1252
|
+
"digest": "sha256:69a3d163c58a5764fa558f1f9929a123230549eb4a2b180e334a71069d573b60"
|
|
1253
1253
|
},
|
|
1254
1254
|
"authorityClass": "workflow",
|
|
1255
1255
|
"machineJson": false,
|
|
@@ -1417,7 +1417,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1417
1417
|
"ownerPackage": "openplanr",
|
|
1418
1418
|
"source": {
|
|
1419
1419
|
"path": "skills/planr-plan/SKILL.md",
|
|
1420
|
-
"digest": "sha256:
|
|
1420
|
+
"digest": "sha256:dedf2805f8387fb68da633b70a9de93fed3e9179ca2299b4a7ee68c7fe517306"
|
|
1421
1421
|
},
|
|
1422
1422
|
"authorityClass": "workflow",
|
|
1423
1423
|
"machineJson": false,
|
|
@@ -1438,7 +1438,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1438
1438
|
"ownerPackage": "openplanr",
|
|
1439
1439
|
"source": {
|
|
1440
1440
|
"path": "docs/generated/utility-command-catalog.json",
|
|
1441
|
-
"digest": "sha256:
|
|
1441
|
+
"digest": "sha256:08cfb9cc8a5c6d97e5add1ef0cf879c076ddd9bc84f7979c4de7cc2fcdd75d0b"
|
|
1442
1442
|
},
|
|
1443
1443
|
"authorityClass": "workflow",
|
|
1444
1444
|
"machineJson": false,
|
|
@@ -1627,7 +1627,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1627
1627
|
"ownerPackage": "openplanr",
|
|
1628
1628
|
"source": {
|
|
1629
1629
|
"path": "docs/generated/utility-command-catalog.json",
|
|
1630
|
-
"digest": "sha256:
|
|
1630
|
+
"digest": "sha256:08cfb9cc8a5c6d97e5add1ef0cf879c076ddd9bc84f7979c4de7cc2fcdd75d0b"
|
|
1631
1631
|
},
|
|
1632
1632
|
"authorityClass": "workflow",
|
|
1633
1633
|
"machineJson": true,
|
|
@@ -1648,7 +1648,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
1648
1648
|
"ownerPackage": "openplanr",
|
|
1649
1649
|
"source": {
|
|
1650
1650
|
"path": "skills/planr-plan/SKILL.md",
|
|
1651
|
-
"digest": "sha256:
|
|
1651
|
+
"digest": "sha256:dedf2805f8387fb68da633b70a9de93fed3e9179ca2299b4a7ee68c7fe517306"
|
|
1652
1652
|
},
|
|
1653
1653
|
"authorityClass": "workflow",
|
|
1654
1654
|
"machineJson": false,
|
|
@@ -2089,7 +2089,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2089
2089
|
"ownerPackage": "planr-pipeline",
|
|
2090
2090
|
"source": {
|
|
2091
2091
|
"path": "skills/planr-design/SKILL.md",
|
|
2092
|
-
"digest": "sha256:
|
|
2092
|
+
"digest": "sha256:e584637a3adaaa4d64384c073b5c212124b0af53f1dd0c97336b97fee3e5374f"
|
|
2093
2093
|
},
|
|
2094
2094
|
"authorityClass": "compatibility-router",
|
|
2095
2095
|
"machineJson": false,
|
|
@@ -2110,7 +2110,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2110
2110
|
"ownerPackage": "planr-pipeline",
|
|
2111
2111
|
"source": {
|
|
2112
2112
|
"path": "skills/planr-design-loop/SKILL.md",
|
|
2113
|
-
"digest": "sha256:
|
|
2113
|
+
"digest": "sha256:b90b1153ee7df23b31022ebb480f153c8e2048cdc04c2708cab2cc3104efa303"
|
|
2114
2114
|
},
|
|
2115
2115
|
"authorityClass": "compatibility-router",
|
|
2116
2116
|
"machineJson": false,
|
|
@@ -2131,7 +2131,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2131
2131
|
"ownerPackage": "planr-pipeline",
|
|
2132
2132
|
"source": {
|
|
2133
2133
|
"path": "skills/planr-design-review/SKILL.md",
|
|
2134
|
-
"digest": "sha256:
|
|
2134
|
+
"digest": "sha256:d4074dfdb3f50eb95fde37f1029a11d379afb29cfc19e8091ee55f4e02956058"
|
|
2135
2135
|
},
|
|
2136
2136
|
"authorityClass": "compatibility-router",
|
|
2137
2137
|
"machineJson": false,
|
|
@@ -2152,7 +2152,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2152
2152
|
"ownerPackage": "planr-pipeline",
|
|
2153
2153
|
"source": {
|
|
2154
2154
|
"path": "skills/planr-plan/SKILL.md",
|
|
2155
|
-
"digest": "sha256:
|
|
2155
|
+
"digest": "sha256:dedf2805f8387fb68da633b70a9de93fed3e9179ca2299b4a7ee68c7fe517306"
|
|
2156
2156
|
},
|
|
2157
2157
|
"authorityClass": "compatibility-router",
|
|
2158
2158
|
"machineJson": false,
|
|
@@ -2173,7 +2173,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
2173
2173
|
"ownerPackage": "planr-pipeline",
|
|
2174
2174
|
"source": {
|
|
2175
2175
|
"path": "skills/planr-ship/SKILL.md",
|
|
2176
|
-
"digest": "sha256:
|
|
2176
|
+
"digest": "sha256:239dc1dc9aa54ba6f2e4782083ce602b2d520680219d328a5d2e1e151f9dd13d"
|
|
2177
2177
|
},
|
|
2178
2178
|
"authorityClass": "compatibility-router",
|
|
2179
2179
|
"machineJson": false,
|
|
@@ -3009,7 +3009,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3009
3009
|
]
|
|
3010
3010
|
}
|
|
3011
3011
|
],
|
|
3012
|
-
"documentDigest": "sha256:
|
|
3012
|
+
"documentDigest": "sha256:58b61e5d5cc0dc988f659e137cc8246ed0893cf82d537b6972d6a59ebea35fcf"
|
|
3013
3013
|
},
|
|
3014
3014
|
"skills.json": {
|
|
3015
3015
|
"kind": "skill-catalog",
|
|
@@ -3698,7 +3698,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3698
3698
|
"lifecycle": "active",
|
|
3699
3699
|
"authorityClass": "implementation",
|
|
3700
3700
|
"source": "skills/planr-delegate/openplanr.skill.json",
|
|
3701
|
-
"sourceDigest": "sha256:
|
|
3701
|
+
"sourceDigest": "sha256:f6a7e2a965dff4dab0f6414ae0bcb7289903dfbc2022a88d0528b8b9c0ea2c91",
|
|
3702
3702
|
"triggerPolicy": {
|
|
3703
3703
|
"include": [
|
|
3704
3704
|
"Delegate implementation to another coding agent",
|
|
@@ -3768,7 +3768,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3768
3768
|
"lifecycle": "active",
|
|
3769
3769
|
"authorityClass": "planning-write",
|
|
3770
3770
|
"source": "skills/planr-design/openplanr.skill.json",
|
|
3771
|
-
"sourceDigest": "sha256:
|
|
3771
|
+
"sourceDigest": "sha256:da6e4b51fa16e55425d9d7460dcdceab4cfc414f20050d532464a76d988d34b8",
|
|
3772
3772
|
"triggerPolicy": {
|
|
3773
3773
|
"include": [
|
|
3774
3774
|
"Create an initial product design direction",
|
|
@@ -3829,7 +3829,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3829
3829
|
"lifecycle": "active",
|
|
3830
3830
|
"authorityClass": "planning-write",
|
|
3831
3831
|
"source": "skills/planr-design-loop/openplanr.skill.json",
|
|
3832
|
-
"sourceDigest": "sha256:
|
|
3832
|
+
"sourceDigest": "sha256:f96a6bceaaabff1acbdaad257ee0d602705305661c102bc22c21b2d40db50f6f",
|
|
3833
3833
|
"triggerPolicy": {
|
|
3834
3834
|
"include": [
|
|
3835
3835
|
"Explore multiple design directions or variants",
|
|
@@ -3890,7 +3890,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
3890
3890
|
"lifecycle": "active",
|
|
3891
3891
|
"authorityClass": "review-evidence",
|
|
3892
3892
|
"source": "skills/planr-design-review/openplanr.skill.json",
|
|
3893
|
-
"sourceDigest": "sha256:
|
|
3893
|
+
"sourceDigest": "sha256:3151d0c1d1e306305256271abfbbab7408ce55b178868159ec9d82f426de499b",
|
|
3894
3894
|
"triggerPolicy": {
|
|
3895
3895
|
"include": [
|
|
3896
3896
|
"Review or critique an existing OpenPlanr design",
|
|
@@ -4073,12 +4073,12 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4073
4073
|
},
|
|
4074
4074
|
{
|
|
4075
4075
|
"skillId": "planr-investigate",
|
|
4076
|
-
"skillVersion": "2.
|
|
4076
|
+
"skillVersion": "2.3.0",
|
|
4077
4077
|
"description": "Diagnose a bug, regression, error, or unexplained behavior and optionally implement a bounded fix. Use for root-cause investigation, including before any fix, not planned feature delivery.",
|
|
4078
4078
|
"lifecycle": "active",
|
|
4079
4079
|
"authorityClass": "diagnostic",
|
|
4080
4080
|
"source": "skills/planr-investigate/openplanr.skill.json",
|
|
4081
|
-
"sourceDigest": "sha256:
|
|
4081
|
+
"sourceDigest": "sha256:2a0fcaacd12fe22b78d4c72e0c6ef27effc2f9c5c1d04758920ec3810c1e6ce4",
|
|
4082
4082
|
"triggerPolicy": {
|
|
4083
4083
|
"include": [
|
|
4084
4084
|
"Investigate a bug, regression, error, or unexplained behavior",
|
|
@@ -4323,7 +4323,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4323
4323
|
"lifecycle": "active",
|
|
4324
4324
|
"authorityClass": "planning-write",
|
|
4325
4325
|
"source": "skills/planr-plan/openplanr.skill.json",
|
|
4326
|
-
"sourceDigest": "sha256:
|
|
4326
|
+
"sourceDigest": "sha256:4f2c0de87e8c91f0aa244f72042044e791342d5b4718cf2d0f86cf34c7d5a6ce",
|
|
4327
4327
|
"triggerPolicy": {
|
|
4328
4328
|
"include": [
|
|
4329
4329
|
"Decompose a specification into user stories and implementation tasks",
|
|
@@ -4561,12 +4561,12 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4561
4561
|
},
|
|
4562
4562
|
{
|
|
4563
4563
|
"skillId": "planr-ship",
|
|
4564
|
-
"skillVersion": "1.
|
|
4564
|
+
"skillVersion": "1.6.0",
|
|
4565
4565
|
"description": "Implement an OpenPlanr plan, specification, task, or clearly stated request end to end in the current repository. Use when the user asks to build, implement, fix, finish, or ship local work, or to plan and implement an accepted change. Invoke before editing files for the requested change. Not for planning only, landing, release, or work handed to another coding agent.",
|
|
4566
4566
|
"lifecycle": "active",
|
|
4567
4567
|
"authorityClass": "implementation",
|
|
4568
4568
|
"source": "skills/planr-ship/openplanr.skill.json",
|
|
4569
|
-
"sourceDigest": "sha256:
|
|
4569
|
+
"sourceDigest": "sha256:46b7912188268e8f50125cb4554869c05d274544ebd90c59721e206538731cc5",
|
|
4570
4570
|
"triggerPolicy": {
|
|
4571
4571
|
"include": [
|
|
4572
4572
|
"Implement a plan, specification, task, fix, or clearly stated local request",
|
|
@@ -4877,7 +4877,7 @@ export const CANONICAL_REGISTRIES = deepFreeze({
|
|
|
4877
4877
|
}
|
|
4878
4878
|
],
|
|
4879
4879
|
"compatibilityAliases": [],
|
|
4880
|
-
"documentDigest": "sha256:
|
|
4880
|
+
"documentDigest": "sha256:b96afecdc3296b6e3898596ee3493b05fc24b4637f818d94b4898e47efda10a9"
|
|
4881
4881
|
},
|
|
4882
4882
|
"outputs.json": {
|
|
4883
4883
|
"kind": "output-catalog",
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
DESIGN_DOCUMENT_V120_SCHEMA,
|
|
7
7
|
validateDesignProps,
|
|
8
8
|
} from './design-contracts.mjs';
|
|
9
|
+
import { DESIGN_REVIEW_BUNDLE_SCHEMA } from './design-review-bundle-contracts.mjs';
|
|
9
10
|
import { validateJson } from './json-schema.mjs';
|
|
10
|
-
import { DESIGN_REVIEW_BUNDLE_SCHEMA } from './workspace-contracts.mjs';
|
|
11
11
|
|
|
12
12
|
const text = { type: 'string', maxLength: 16384 };
|
|
13
13
|
const id = { type: 'string', minLength: 1, maxLength: 128 };
|
|
@@ -35,7 +35,6 @@ export interface DesignReviewWorkspace {
|
|
|
35
35
|
ownerPublicKey: WorkspacePublicKey;
|
|
36
36
|
keyring: WorkspaceCiphertext;
|
|
37
37
|
}
|
|
38
|
-
export declare const DESIGN_WORKSPACE_VERSION: '1.0.0';
|
|
39
38
|
export declare const DESIGN_WORKSPACE_API: '/api/v1/design-workspaces';
|
|
40
39
|
export declare const DESIGN_WORKSPACE_MAX_BYTES: number;
|
|
41
40
|
export declare const DESIGN_WORKSPACE_MAX_EVENT_BYTES: number;
|
|
@@ -44,7 +43,6 @@ export declare const DESIGN_WORKSPACE_SCHEMA: Readonly<Record<string, unknown>>;
|
|
|
44
43
|
export declare const DESIGN_WORKSPACE_CREATE_SCHEMA: Readonly<Record<string, unknown>>;
|
|
45
44
|
export declare const DESIGN_WORKSPACE_REVISION_SCHEMA: Readonly<Record<string, unknown>>;
|
|
46
45
|
export declare const DESIGN_WORKSPACE_EVENT_SCHEMA: Readonly<Record<string, unknown>>;
|
|
47
|
-
export declare const DESIGN_REVIEW_BUNDLE_SCHEMA: Readonly<Record<string, unknown>>;
|
|
48
46
|
export declare const DESIGN_WORKSPACE_SCHEMAS: Readonly<
|
|
49
47
|
Record<string, Readonly<Record<string, unknown>>>
|
|
50
48
|
>;
|
|
@@ -52,3 +50,7 @@ export declare function assertWorkspaceContract<T>(
|
|
|
52
50
|
value: T,
|
|
53
51
|
contract: Readonly<Record<string, unknown>>,
|
|
54
52
|
): T;
|
|
53
|
+
export {
|
|
54
|
+
DESIGN_REVIEW_BUNDLE_SCHEMA,
|
|
55
|
+
DESIGN_WORKSPACE_VERSION,
|
|
56
|
+
} from './design-review-bundle-contracts.mjs';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
DESIGN_REVIEW_BUNDLE_SCHEMA,
|
|
4
|
+
DESIGN_WORKSPACE_VERSION,
|
|
5
|
+
} from './design-review-bundle-contracts.mjs';
|
|
3
6
|
import { validateJson } from './json-schema.mjs';
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
export const DESIGN_WORKSPACE_VERSION = '1.0.0';
|
|
8
|
+
export { DESIGN_REVIEW_BUNDLE_SCHEMA, DESIGN_WORKSPACE_VERSION };
|
|
7
9
|
/** @type {typeof import('./workspace-contracts.d.mts').DESIGN_WORKSPACE_API} */
|
|
8
10
|
export const DESIGN_WORKSPACE_API = '/api/v1/design-workspaces';
|
|
9
11
|
/** @type {typeof import('./workspace-contracts.d.mts').DESIGN_WORKSPACE_MAX_BYTES} */
|
|
@@ -94,86 +96,6 @@ export const DESIGN_WORKSPACE_SCHEMA = schema('design-review-workspace', {
|
|
|
94
96
|
keyring: sealed,
|
|
95
97
|
});
|
|
96
98
|
|
|
97
|
-
// An explicit presentation-only model. Authored paths, source provenance, and
|
|
98
|
-
// design-system references are deliberately not part of a published workspace.
|
|
99
|
-
const designProperties =
|
|
100
|
-
/** @type {Record<string, { items: { properties: Record<string, unknown>; required: string[] } }>} */ (
|
|
101
|
-
structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.properties)
|
|
102
|
-
);
|
|
103
|
-
for (const key of ['kind', 'schemaVersion', 'brief', 'assets', 'designSystem'])
|
|
104
|
-
delete designProperties[key];
|
|
105
|
-
delete designProperties.screens.items.properties.source;
|
|
106
|
-
designProperties.screens.items.required = ['id', 'title'];
|
|
107
|
-
delete designProperties.variants.items.properties.sources;
|
|
108
|
-
/** @type {typeof import('./workspace-contracts.d.mts').DESIGN_REVIEW_BUNDLE_SCHEMA} */
|
|
109
|
-
export const DESIGN_REVIEW_BUNDLE_SCHEMA = {
|
|
110
|
-
...schema(
|
|
111
|
-
'design-review-bundle',
|
|
112
|
-
{
|
|
113
|
-
kind: { const: 'openplanr-design-review-bundle' },
|
|
114
|
-
schemaVersion: { const: DESIGN_WORKSPACE_VERSION },
|
|
115
|
-
design: {
|
|
116
|
-
type: 'object',
|
|
117
|
-
additionalProperties: false,
|
|
118
|
-
properties: designProperties,
|
|
119
|
-
required: [
|
|
120
|
-
'id',
|
|
121
|
-
'title',
|
|
122
|
-
'frames',
|
|
123
|
-
'screens',
|
|
124
|
-
'screenOrder',
|
|
125
|
-
'variants',
|
|
126
|
-
'selectedVariant',
|
|
127
|
-
'defaultView',
|
|
128
|
-
],
|
|
129
|
-
},
|
|
130
|
-
envelope: { type: 'object', required: ['schemaVersion', 'artifacts', 'viewer'] },
|
|
131
|
-
entries: {
|
|
132
|
-
type: 'array',
|
|
133
|
-
minItems: 1,
|
|
134
|
-
maxItems: 256,
|
|
135
|
-
items: {
|
|
136
|
-
type: 'object',
|
|
137
|
-
additionalProperties: false,
|
|
138
|
-
required: ['artifactId', 'screenId', 'variantId', 'frameId'],
|
|
139
|
-
properties: Object.fromEntries(
|
|
140
|
-
['artifactId', 'screenId', 'variantId', 'frameId'].map((key) => [
|
|
141
|
-
key,
|
|
142
|
-
{ type: 'string', minLength: 1, maxLength: 128 },
|
|
143
|
-
]),
|
|
144
|
-
),
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
state: {
|
|
148
|
-
type: ['object', 'null'],
|
|
149
|
-
additionalProperties: false,
|
|
150
|
-
properties: {
|
|
151
|
-
positions: {
|
|
152
|
-
type: 'object',
|
|
153
|
-
additionalProperties: {
|
|
154
|
-
type: 'object',
|
|
155
|
-
additionalProperties: false,
|
|
156
|
-
required: ['x', 'y'],
|
|
157
|
-
properties: {
|
|
158
|
-
x: { type: 'number', minimum: -1e7, maximum: 1e7 },
|
|
159
|
-
y: { type: 'number', minimum: -1e7, maximum: 1e7 },
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
revision: { type: 'string', minLength: 1, maxLength: 128 },
|
|
166
|
-
verification: {
|
|
167
|
-
type: ['object', 'null'],
|
|
168
|
-
additionalProperties: false,
|
|
169
|
-
properties: { status: { enum: ['verified', 'unverified', 'failed', 'pending'] } },
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
['kind', 'schemaVersion', 'design', 'envelope', 'entries', 'revision'],
|
|
173
|
-
),
|
|
174
|
-
$defs: structuredClone(DESIGN_DOCUMENT_V1_SCHEMA.$defs),
|
|
175
|
-
};
|
|
176
|
-
|
|
177
99
|
/** @returns {ReturnType<typeof import('./workspace-contracts.d.mts').assertWorkspaceContract>} */
|
|
178
100
|
export function assertWorkspaceContract(value, contract) {
|
|
179
101
|
const errors = validateJson(value, contract);
|