archctx 0.2.3 → 0.4.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/assets/catalog.yaml +2 -2
- package/bin/archctx.mjs +20215 -10062
- package/package.json +2 -2
- package/schemas/repo/architecture-flow.schema.json +97 -0
- package/schemas/repo/architecture-node.schema.json +39 -2
- package/schemas/runtime/archctx-capabilities.schema.json +45 -0
- package/schemas/runtime/architecture-event.schema.json +172 -2
- package/schemas/runtime/architecture-refresh-signal.schema.json +88 -0
- package/schemas/runtime/architecture-snapshot.schema.json +37 -4
- package/schemas/runtime/changeset.schema.json +1 -1
- package/schemas/runtime/explorer-delta-query.schema.json +24 -0
- package/schemas/runtime/explorer-projection-delta.schema.json +79 -0
- package/schemas/runtime/explorer-projection-query-v2.schema.json +42 -0
- package/schemas/runtime/explorer-projection-v2.schema.json +538 -0
- package/schemas/runtime/projection-request.schema.json +61 -0
- package/schemas/runtime/projection-result.schema.json +162 -0
- package/schemas/runtime/explorer-projection.schema.json +0 -92
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://archctx.repoharness.com/schemas/runtime/explorer-projection-delta.schema.json",
|
|
4
|
+
"title": "ExplorerProjectionDeltaV2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "base", "head", "factChanges", "evidenceChanges", "projectionChanges", "counts", "deltaDigest"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": "archcontext.explorer-projection-delta/v2" },
|
|
10
|
+
"base": { "$ref": "#/$defs/cursor" },
|
|
11
|
+
"head": { "$ref": "#/$defs/cursor" },
|
|
12
|
+
"factChanges": { "type": "array", "items": { "allOf": [{ "$ref": "#/$defs/change" }, { "properties": { "deltaClass": { "const": "architecture-fact" } } }] } },
|
|
13
|
+
"evidenceChanges": { "type": "array", "items": { "allOf": [{ "$ref": "#/$defs/change" }, { "properties": { "deltaClass": { "const": "evidence" } } }] } },
|
|
14
|
+
"projectionChanges": { "type": "array", "items": { "allOf": [{ "$ref": "#/$defs/change" }, { "properties": { "deltaClass": { "const": "projection" } } }] } },
|
|
15
|
+
"counts": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": ["architecture-fact", "evidence", "projection"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"architecture-fact": { "type": "integer", "minimum": 0 },
|
|
21
|
+
"evidence": { "type": "integer", "minimum": 0 },
|
|
22
|
+
"projection": { "type": "integer", "minimum": 0 }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"deltaDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
26
|
+
},
|
|
27
|
+
"$defs": {
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": ["repositoryId", "storageRepositoryId"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"repositoryId": { "type": "string" },
|
|
34
|
+
"storageRepositoryId": { "type": "string" }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"worktree": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["workspaceId", "storageWorkspaceId", "branch", "headSha", "worktreeDigest"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"workspaceId": { "type": "string" },
|
|
43
|
+
"storageWorkspaceId": { "type": "string" },
|
|
44
|
+
"branch": { "type": "string" },
|
|
45
|
+
"headSha": { "type": "string" },
|
|
46
|
+
"worktreeDigest": { "type": "string" }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"cursor": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["schemaVersion", "repository", "worktree", "eventSequence", "eventId", "eventHash", "graphDigest", "evidenceStateDigest", "projectionDigest", "inputManifestDigest"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"schemaVersion": { "const": "archcontext.authority-cursor/v1" },
|
|
55
|
+
"repository": { "$ref": "#/$defs/repository" },
|
|
56
|
+
"worktree": { "$ref": "#/$defs/worktree" },
|
|
57
|
+
"eventSequence": { "type": "integer", "minimum": 1 },
|
|
58
|
+
"eventId": { "type": "string", "minLength": 1 },
|
|
59
|
+
"eventHash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
60
|
+
"graphDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
61
|
+
"evidenceStateDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
62
|
+
"projectionDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
63
|
+
"inputManifestDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"change": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"required": ["deltaClass", "subjectId", "change", "fields"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"deltaClass": { "enum": ["architecture-fact", "evidence", "projection"] },
|
|
72
|
+
"subjectId": { "type": "string" },
|
|
73
|
+
"change": { "enum": ["added", "removed", "changed"] },
|
|
74
|
+
"fields": { "type": "array", "items": { "type": "string" } },
|
|
75
|
+
"verificationTransition": { "type": "object" }
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://archctx.repoharness.com/schemas/runtime/explorer-projection-query-v2.schema.json",
|
|
4
|
+
"title": "ExplorerProjectionQueryV2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "viewId", "depth", "budget"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": "archcontext.explorer-projection-query/v2" },
|
|
10
|
+
"viewId": { "enum": ["system-map", "task-impact", "drift-pressure", "data-flow", "external-integrations"] },
|
|
11
|
+
"semanticLevel": { "enum": ["overview", "context", "detail"] },
|
|
12
|
+
"taskSessionId": { "type": "string", "minLength": 1 },
|
|
13
|
+
"expectedCursor": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": ["headSha", "worktreeDigest", "graphDigest"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"headSha": { "type": "string" },
|
|
19
|
+
"worktreeDigest": { "type": "string" },
|
|
20
|
+
"graphDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
21
|
+
"observedFactsDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"focus": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"required": ["subjectId"],
|
|
28
|
+
"properties": { "subjectId": { "type": "string" } }
|
|
29
|
+
},
|
|
30
|
+
"expandedOccurrenceIds": { "type": "array", "items": { "type": "string" } },
|
|
31
|
+
"depth": { "type": "integer", "minimum": 0, "maximum": 2 },
|
|
32
|
+
"budget": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": ["maxNodes", "maxRelations"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"maxNodes": { "type": "integer", "minimum": 1, "maximum": 1000 },
|
|
38
|
+
"maxRelations": { "type": "integer", "minimum": 0, "maximum": 5000 }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|