frontend-project-context 1.8.0 → 1.10.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/README.md +26 -7
  3. package/UPGRADING.md +24 -0
  4. package/docs/00-PRODUCT-CONSTITUTION.md +44 -12
  5. package/docs/08-INSTALLATION-AND-DISTRIBUTION.md +9 -3
  6. package/docs/14-FORMAL-RELEASE-READINESS.md +14 -0
  7. package/docs/28-REAL-PROJECT-ONBOARDING-CLOSURE-DESIGN.md +10 -0
  8. package/docs/29-REAL-PROJECT-1.8.0-INITIALIZATION-OBSERVATIONS.md +228 -0
  9. package/docs/30-TASK-CONTEXT-CONSUMPTION-CLOSURE-DESIGN.md +563 -0
  10. package/docs/31-TASK-CONTEXT-INTEGRITY-REPAIR-DESIGN.md +281 -0
  11. package/docs/32-PROJECT-TO-TASK-INTERACTION-PROPOSAL.md +173 -0
  12. package/docs/33-BOUNDED-TASK-HANDOFF-REDESIGN.md +207 -0
  13. package/docs/34-A0-CODEX-HOST-FEASIBILITY.md +61 -0
  14. package/docs/35-CONTEXT-FIRST-TASK-HANDOFF-DESIGN.md +248 -0
  15. package/docs/36-PRODUCT-VALUE-AND-USABILITY-REVIEW.md +158 -0
  16. package/docs/37-EVERYDAY-HANDOFF-FLOW-DESIGN.md +271 -0
  17. package/docs/38-EVERYDAY-HANDOFF-OPERATION.md +147 -0
  18. package/docs/39-SELF-HOST-RELEASE-ACCEPTANCE.md +39 -0
  19. package/docs/AI-PROJECT-INITIALIZATION.md +8 -3
  20. package/docs/PRODUCT-SHARING-AND-ADOPTION-GUIDE.md +111 -0
  21. package/docs/README.md +26 -2
  22. package/docs/USER-AND-AI-OPERATION-MANUAL.md +9 -3
  23. package/docs/assets/product-sharing-01-overview.svg +32 -0
  24. package/docs/assets/product-sharing-02-how-it-works.svg +17 -0
  25. package/docs/assets/product-sharing-03-example.svg +19 -0
  26. package/examples/package.json +1 -1
  27. package/migration-manifest.json +38 -12
  28. package/package.json +2 -2
  29. package/schemas/capabilities.schema.json +26 -12
  30. package/schemas/context-bundle.schema.json +32 -0
  31. package/schemas/coverage-audit.schema.json +6 -4
  32. package/schemas/evidence-bundle.schema.json +1 -1
  33. package/schemas/initialization-instruction.schema.json +17 -5
  34. package/schemas/migration-manifest.schema.json +3 -3
  35. package/schemas/migration-plan.schema.json +1 -1
  36. package/schemas/project-brief.schema.json +400 -0
  37. package/schemas/projection-lock.schema.json +1 -1
  38. package/schemas/task-context-record.schema.json +27 -0
  39. package/schemas/task-handoff-input.schema.json +23 -0
  40. package/schemas/task-handoff-result.schema.json +320 -0
  41. package/schemas/upgrade-assessment.schema.json +1 -1
  42. package/schemas/upgrade-result-bundle.schema.json +1 -1
  43. package/schemas/work-view.schema.json +541 -0
  44. package/src/project-context/adaptive-context-schema.mjs +1 -1
  45. package/src/project-context/adaptive-context.mjs +16 -29
  46. package/src/project-context/ai-entry.mjs +28 -12
  47. package/src/project-context/approver.mjs +6 -2
  48. package/src/project-context/authoring.mjs +28 -8
  49. package/src/project-context/capabilities.mjs +13 -1
  50. package/src/project-context/checker.mjs +1 -1
  51. package/src/project-context/cli.mjs +74 -17
  52. package/src/project-context/context-bundle.mjs +379 -0
  53. package/src/project-context/contract-schema.mjs +62 -9
  54. package/src/project-context/coverage-profile.mjs +127 -0
  55. package/src/project-context/exchange-schema.mjs +24 -6
  56. package/src/project-context/exchange.mjs +3 -0
  57. package/src/project-context/initialization-instruction.mjs +20 -2
  58. package/src/project-context/maintenance.mjs +5 -4
  59. package/src/project-context/migration-manifest.mjs +3 -3
  60. package/src/project-context/path-policy.mjs +13 -0
  61. package/src/project-context/renderer.mjs +11 -4
  62. package/src/project-context/source-reader.mjs +27 -2
  63. package/src/project-context/task-context.mjs +4 -14
  64. package/src/project-context/task-handoff-schema.mjs +185 -0
  65. package/src/project-context/task-handoff.mjs +259 -0
  66. package/src/project-context/upgrade-schema.mjs +1 -1
  67. package/src/project-context/upgrade.mjs +1 -0
  68. package/src/project-context/work-view-schema.mjs +125 -0
  69. package/src/project-context/work-view.mjs +135 -0
@@ -0,0 +1,320 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:frontend-project-context:schema:task-handoff-result:2",
4
+ "oneOf": [
5
+ {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "schemaVersion",
10
+ "kind",
11
+ "taskIdentity",
12
+ "projectHealth",
13
+ "intent",
14
+ "recordDigest",
15
+ "authorityGranted",
16
+ "semanticCompleteness",
17
+ "taskStatus",
18
+ "gate",
19
+ "contextBundleDigest",
20
+ "requirementsDigest",
21
+ "progressKey",
22
+ "itemIds",
23
+ "scopeCoverage",
24
+ "requiredTargets",
25
+ "conditionalTargets",
26
+ "evidenceResults",
27
+ "gaps",
28
+ "questions",
29
+ "nextAction"
30
+ ],
31
+ "properties": {
32
+ "schemaVersion": {
33
+ "const": 1
34
+ },
35
+ "kind": {
36
+ "const": "task-handoff-result"
37
+ },
38
+ "taskIdentity": {
39
+ "type": "object"
40
+ },
41
+ "projectHealth": {
42
+ "type": "string"
43
+ },
44
+ "intent": {
45
+ "enum": [
46
+ "investigate",
47
+ "design",
48
+ "implement"
49
+ ]
50
+ },
51
+ "recordDigest": {
52
+ "type": "string"
53
+ },
54
+ "authorityGranted": {
55
+ "const": false
56
+ },
57
+ "semanticCompleteness": {
58
+ "const": "not-claimed"
59
+ },
60
+ "taskStatus": {
61
+ "enum": [
62
+ "blocked",
63
+ "discovering",
64
+ "needs-evidence",
65
+ "needs-decision",
66
+ "ready-for-read-only",
67
+ "ready-to-implement",
68
+ "inactive"
69
+ ]
70
+ },
71
+ "gate": {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "mode",
76
+ "currentAction",
77
+ "status",
78
+ "reasonIds",
79
+ "instruction"
80
+ ],
81
+ "properties": {
82
+ "mode": {
83
+ "const": "instructional"
84
+ },
85
+ "currentAction": {
86
+ "enum": [
87
+ "read-only",
88
+ "implementation"
89
+ ]
90
+ },
91
+ "status": {
92
+ "enum": [
93
+ "hold",
94
+ "proceed",
95
+ "not-applicable"
96
+ ]
97
+ },
98
+ "reasonIds": {
99
+ "type": "array"
100
+ },
101
+ "instruction": {
102
+ "type": "string"
103
+ }
104
+ }
105
+ },
106
+ "contextBundleDigest": {
107
+ "type": [
108
+ "string",
109
+ "null"
110
+ ]
111
+ },
112
+ "requirementsDigest": {
113
+ "type": [
114
+ "string",
115
+ "null"
116
+ ]
117
+ },
118
+ "progressKey": {
119
+ "type": "string"
120
+ },
121
+ "itemIds": {
122
+ "type": "array"
123
+ },
124
+ "scopeCoverage": {
125
+ "type": "array"
126
+ },
127
+ "requiredTargets": {
128
+ "type": "array"
129
+ },
130
+ "conditionalTargets": {
131
+ "type": "array"
132
+ },
133
+ "evidenceResults": {
134
+ "type": "array"
135
+ },
136
+ "gaps": {
137
+ "type": "array"
138
+ },
139
+ "questions": {
140
+ "type": "array"
141
+ },
142
+ "nextAction": {
143
+ "type": "string"
144
+ }
145
+ }
146
+ },
147
+ {
148
+ "type": "object",
149
+ "additionalProperties": false,
150
+ "required": [
151
+ "schemaVersion",
152
+ "kind",
153
+ "taskIdentity",
154
+ "projectHealth",
155
+ "intent",
156
+ "recordDigest",
157
+ "authorityGranted",
158
+ "semanticCompleteness",
159
+ "taskStatus",
160
+ "gate",
161
+ "contextBundleDigest",
162
+ "requirementsDigest",
163
+ "progressKey",
164
+ "itemIds",
165
+ "scopeCoverage",
166
+ "requiredTargets",
167
+ "conditionalTargets",
168
+ "evidenceResults",
169
+ "gaps",
170
+ "questions",
171
+ "nextAction",
172
+ "context",
173
+ "taskSnapshot",
174
+ "presentation",
175
+ "delivery"
176
+ ],
177
+ "properties": {
178
+ "schemaVersion": {
179
+ "const": 2
180
+ },
181
+ "kind": {
182
+ "const": "task-handoff-result"
183
+ },
184
+ "taskIdentity": {
185
+ "type": "object"
186
+ },
187
+ "projectHealth": {
188
+ "type": "string"
189
+ },
190
+ "intent": {
191
+ "enum": [
192
+ "investigate",
193
+ "design",
194
+ "implement"
195
+ ]
196
+ },
197
+ "recordDigest": {
198
+ "type": "string"
199
+ },
200
+ "authorityGranted": {
201
+ "const": false
202
+ },
203
+ "semanticCompleteness": {
204
+ "const": "not-claimed"
205
+ },
206
+ "taskStatus": {
207
+ "enum": [
208
+ "blocked",
209
+ "discovering",
210
+ "needs-evidence",
211
+ "needs-decision",
212
+ "ready-for-read-only",
213
+ "ready-to-implement",
214
+ "inactive"
215
+ ]
216
+ },
217
+ "gate": {
218
+ "type": "object",
219
+ "additionalProperties": false,
220
+ "required": [
221
+ "mode",
222
+ "currentAction",
223
+ "status",
224
+ "reasonIds",
225
+ "instruction"
226
+ ],
227
+ "properties": {
228
+ "mode": {
229
+ "const": "instructional"
230
+ },
231
+ "currentAction": {
232
+ "enum": [
233
+ "read-only",
234
+ "implementation"
235
+ ]
236
+ },
237
+ "status": {
238
+ "enum": [
239
+ "hold",
240
+ "proceed",
241
+ "not-applicable"
242
+ ]
243
+ },
244
+ "reasonIds": {
245
+ "type": "array"
246
+ },
247
+ "instruction": {
248
+ "type": "string"
249
+ }
250
+ }
251
+ },
252
+ "contextBundleDigest": {
253
+ "type": [
254
+ "string",
255
+ "null"
256
+ ]
257
+ },
258
+ "requirementsDigest": {
259
+ "type": [
260
+ "string",
261
+ "null"
262
+ ]
263
+ },
264
+ "progressKey": {
265
+ "type": "string"
266
+ },
267
+ "itemIds": {
268
+ "type": "array"
269
+ },
270
+ "scopeCoverage": {
271
+ "type": "array"
272
+ },
273
+ "requiredTargets": {
274
+ "type": "array"
275
+ },
276
+ "conditionalTargets": {
277
+ "type": "array"
278
+ },
279
+ "evidenceResults": {
280
+ "type": "array"
281
+ },
282
+ "gaps": {
283
+ "type": "array"
284
+ },
285
+ "questions": {
286
+ "type": "array"
287
+ },
288
+ "nextAction": {
289
+ "type": "string"
290
+ },
291
+ "context": {
292
+ "anyOf": [
293
+ {
294
+ "$ref": "context-bundle.schema.json"
295
+ },
296
+ {
297
+ "type": "null"
298
+ }
299
+ ]
300
+ },
301
+ "taskSnapshot": {
302
+ "anyOf": [
303
+ {
304
+ "$ref": "work-view.schema.json#/$defs/taskSnapshot"
305
+ },
306
+ {
307
+ "type": "null"
308
+ }
309
+ ]
310
+ },
311
+ "presentation": {
312
+ "$ref": "work-view.schema.json#/$defs/presentation"
313
+ },
314
+ "delivery": {
315
+ "$ref": "work-view.schema.json#/$defs/delivery"
316
+ }
317
+ }
318
+ }
319
+ ]
320
+ }
@@ -10,7 +10,7 @@
10
10
  "kind": {"const": "upgrade-assessment"},
11
11
  "product": {"type": "object", "additionalProperties": false, "required": ["name"], "properties": {"name": {"const": "frontend-project-context"}}},
12
12
  "fromVersion": {"enum": ["1.3.1", "1.4.0", "1.5.0", "1.6.0", "1.7.0"]},
13
- "targetVersion": {"const": "1.8.0"},
13
+ "targetVersion": {"const": "1.10.0"},
14
14
  "fromVersionEvidence": {"const": "host-asserted"},
15
15
  "manifestSchemaVersion": {"const": 2},
16
16
  "manifestDigest": {"$ref": "#/$defs/digest"},
@@ -10,7 +10,7 @@
10
10
  "kind": {"const": "upgrade-result-bundle"},
11
11
  "product": {"type": "object", "additionalProperties": false, "required": ["name"], "properties": {"name": {"const": "frontend-project-context"}}},
12
12
  "fromVersion": {"type": "string"},
13
- "targetVersion": {"const": "1.8.0"},
13
+ "targetVersion": {"const": "1.10.0"},
14
14
  "manifestDigest": {"$ref": "#/$defs/digest"},
15
15
  "planDigest": {"$ref": "#/$defs/digest"},
16
16
  "mode": {"enum": ["preview", "write"]},