@titan-design/code-read 0.0.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 +185 -0
- package/dist/chunk-VXQFCVGB.js +1326 -0
- package/dist/chunk-VXQFCVGB.js.map +1 -0
- package/dist/index.d.ts +71 -0
- package/dist/index.js +416 -0
- package/dist/index.js.map +1 -0
- package/dist/query/index.d.ts +953 -0
- package/dist/query/index.js +89 -0
- package/dist/query/index.js.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AGENT_COMMANDS,
|
|
3
|
+
CODE_READ_API_VERSION,
|
|
4
|
+
COMMAND_NAMES,
|
|
5
|
+
CONTRACT,
|
|
6
|
+
Capabilities,
|
|
7
|
+
EXCERPT_LINE_CAP,
|
|
8
|
+
FINDINGS_PAGE_MAX,
|
|
9
|
+
Finding,
|
|
10
|
+
FindingStatus,
|
|
11
|
+
HIERARCHY_ROW_CAP,
|
|
12
|
+
MetricDescriptor,
|
|
13
|
+
MissingReason,
|
|
14
|
+
NodeKind,
|
|
15
|
+
NodeRef,
|
|
16
|
+
Provenance,
|
|
17
|
+
ProvenanceKind,
|
|
18
|
+
QUERIES,
|
|
19
|
+
RELATED_CAP,
|
|
20
|
+
ReadError,
|
|
21
|
+
RuleSummary,
|
|
22
|
+
Severity,
|
|
23
|
+
SnapshotInfo,
|
|
24
|
+
SnapshotRef,
|
|
25
|
+
SourceExcerpt,
|
|
26
|
+
Span,
|
|
27
|
+
buildReadModel,
|
|
28
|
+
createQueryResolver,
|
|
29
|
+
describeApi,
|
|
30
|
+
excessOf,
|
|
31
|
+
findingNotFound,
|
|
32
|
+
getFinding,
|
|
33
|
+
getHierarchy,
|
|
34
|
+
getNeighbors,
|
|
35
|
+
getNode,
|
|
36
|
+
invalidArgs,
|
|
37
|
+
listFindings,
|
|
38
|
+
listSnapshots,
|
|
39
|
+
nodeNotFound,
|
|
40
|
+
resolveNode,
|
|
41
|
+
resolveSnapshot,
|
|
42
|
+
serializeContract,
|
|
43
|
+
snapshotNotFound
|
|
44
|
+
} from "../chunk-VXQFCVGB.js";
|
|
45
|
+
export {
|
|
46
|
+
AGENT_COMMANDS,
|
|
47
|
+
CODE_READ_API_VERSION,
|
|
48
|
+
COMMAND_NAMES,
|
|
49
|
+
CONTRACT,
|
|
50
|
+
Capabilities,
|
|
51
|
+
EXCERPT_LINE_CAP,
|
|
52
|
+
FINDINGS_PAGE_MAX,
|
|
53
|
+
Finding,
|
|
54
|
+
FindingStatus,
|
|
55
|
+
HIERARCHY_ROW_CAP,
|
|
56
|
+
MetricDescriptor,
|
|
57
|
+
MissingReason,
|
|
58
|
+
NodeKind,
|
|
59
|
+
NodeRef,
|
|
60
|
+
Provenance,
|
|
61
|
+
ProvenanceKind,
|
|
62
|
+
QUERIES,
|
|
63
|
+
RELATED_CAP,
|
|
64
|
+
ReadError,
|
|
65
|
+
RuleSummary,
|
|
66
|
+
Severity,
|
|
67
|
+
SnapshotInfo,
|
|
68
|
+
SnapshotRef,
|
|
69
|
+
SourceExcerpt,
|
|
70
|
+
Span,
|
|
71
|
+
buildReadModel,
|
|
72
|
+
createQueryResolver,
|
|
73
|
+
describeApi,
|
|
74
|
+
excessOf,
|
|
75
|
+
findingNotFound,
|
|
76
|
+
getFinding,
|
|
77
|
+
getHierarchy,
|
|
78
|
+
getNeighbors,
|
|
79
|
+
getNode,
|
|
80
|
+
invalidArgs,
|
|
81
|
+
listFindings,
|
|
82
|
+
listSnapshots,
|
|
83
|
+
nodeNotFound,
|
|
84
|
+
resolveNode,
|
|
85
|
+
resolveSnapshot,
|
|
86
|
+
serializeContract,
|
|
87
|
+
snapshotNotFound
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@titan-design/code-read",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Versioned read API over code-graph snapshots: a contract, a per-snapshot ReadModel, browser-safe query functions, and registry commands",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./query": {
|
|
14
|
+
"types": "./dist/query/index.d.ts",
|
|
15
|
+
"import": "./dist/query/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"author": "Henry Jewkes",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"homepage": "https://github.com/HJewkes/titan-platform#readme",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/HJewkes/titan-platform.git",
|
|
28
|
+
"directory": "packages/code-read"
|
|
29
|
+
},
|
|
30
|
+
"bugs": "https://github.com/HJewkes/titan-platform/issues",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=20"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@titan-design/rpc-protocol": "^0.0.0",
|
|
39
|
+
"@titan-design/registry": "^0.2.0",
|
|
40
|
+
"@titan-design/code-graph": "^0.2.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"zod": "^4.0.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
47
|
+
"esbuild": "^0.27.0",
|
|
48
|
+
"zod": "^4.4.3",
|
|
49
|
+
"@titan-design/daemon": "^0.1.4"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsup",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"lint": "eslint src"
|
|
55
|
+
}
|
|
56
|
+
}
|