@smartmemory/compose 0.1.5-beta → 0.1.7-beta
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/bin/compose.js +410 -0
- package/bin/git-hooks/post-commit.template +61 -0
- package/bin/git-hooks/pre-push.template +26 -0
- package/contracts/feature-json.schema.json +115 -0
- package/contracts/roadmap-row.schema.json +23 -0
- package/contracts/vision-state.schema.json +64 -0
- package/lib/changelog-writer.js +647 -0
- package/lib/completion-writer.js +464 -0
- package/lib/feature-code.js +29 -0
- package/lib/feature-validator.js +629 -0
- package/lib/feature-writer.js +325 -5
- package/lib/journal-writer.js +928 -0
- package/package.json +5 -1
- package/server/compose-mcp-tools.js +80 -0
- package/server/compose-mcp.js +244 -1
- package/server/schema-validator.js +50 -9
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://compose.smartmemory.dev/contracts/vision-state.schema.json",
|
|
4
|
+
"title": "vision-state.json",
|
|
5
|
+
"description": "Per-project vision-state document at .compose/data/vision-state.json. Codifies the shape produced by VisionStore (server/vision-store.js).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["items", "connections", "gates"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"items": { "type": "array", "items": { "$ref": "#/definitions/Item" } },
|
|
11
|
+
"connections": { "type": "array" },
|
|
12
|
+
"gates": { "type": "array" },
|
|
13
|
+
"version": { "type": ["string", "number"] }
|
|
14
|
+
},
|
|
15
|
+
"definitions": {
|
|
16
|
+
"Item": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": true,
|
|
19
|
+
"required": ["id", "type"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"id": { "type": "string", "format": "uuid" },
|
|
22
|
+
"type": { "type": "string" },
|
|
23
|
+
"title": { "type": "string" },
|
|
24
|
+
"description": { "type": "string" },
|
|
25
|
+
"confidence": { "type": ["number", "null"], "minimum": 0, "maximum": 4 },
|
|
26
|
+
"status": { "type": "string", "enum": ["planned", "in_progress", "complete", "blocked", "parked", "killed", "superseded"] },
|
|
27
|
+
"phase": { "type": ["string", "null"], "enum": ["vision", "requirements", "specification", "design", "planning", "implementation", "verification", "release", null] },
|
|
28
|
+
"parentId": { "type": ["string", "null"] },
|
|
29
|
+
"files": { "type": "array", "items": { "type": "string" } },
|
|
30
|
+
"priority": { "type": ["string", "number", "null"] },
|
|
31
|
+
"assignedTo": { "type": ["string", "null"] },
|
|
32
|
+
"governance": { "type": ["object", "null"] },
|
|
33
|
+
"featureCode": {
|
|
34
|
+
"type": ["string", "null"],
|
|
35
|
+
"description": "Top-level feature code. Current baseline for 41/42 items. lifecycle.featureCode is preferred where present; both are legal. Migration tracked as COMP-VISION-STATE-LIFECYCLE-MIGRATE."
|
|
36
|
+
},
|
|
37
|
+
"group": { "type": ["string", "null"] },
|
|
38
|
+
"slug": { "type": ["string", "null"] },
|
|
39
|
+
"position": {
|
|
40
|
+
"type": ["object", "null"],
|
|
41
|
+
"additionalProperties": true,
|
|
42
|
+
"properties": {
|
|
43
|
+
"x": { "type": "number" },
|
|
44
|
+
"y": { "type": "number" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"createdAt": { "type": "string" },
|
|
48
|
+
"updatedAt": { "type": "string" },
|
|
49
|
+
"summary": { "type": ["string", "null"] },
|
|
50
|
+
"stratumFlowId": { "type": ["string", "null"] },
|
|
51
|
+
"evidence": { "type": ["object", "array", "null"] },
|
|
52
|
+
"lifecycle": {
|
|
53
|
+
"type": ["object", "null"],
|
|
54
|
+
"additionalProperties": true,
|
|
55
|
+
"properties": {
|
|
56
|
+
"featureCode": { "type": ["string", "null"] },
|
|
57
|
+
"currentPhase": { "type": ["string", "null"] },
|
|
58
|
+
"lifecycle_ext": { "type": "object", "additionalProperties": true }
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|