knodin 0.7.5 → 0.8.2
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/README.md +18 -3
- package/benchmarks/competitors/SYNTHESIS.md +66 -0
- package/dist/bin/cli.js +371 -66
- package/dist/bin/launcher.js +16 -1
- package/dist/src/agent-integration.js +82 -16
- package/dist/src/artifact-refresh.js +2 -1
- package/dist/src/cli-args.js +19 -1
- package/dist/src/cli-model.js +28 -2
- package/dist/src/codeflow-replay.js +2 -1
- package/dist/src/compare.js +39 -0
- package/dist/src/competitive-constraints.js +2 -1
- package/dist/src/competitive-runner.js +4 -4
- package/dist/src/context-export.js +3 -2
- package/dist/src/context.js +1 -1
- package/dist/src/deterministic-random.js +34 -0
- package/dist/src/diagnostics-write-helper.js +473 -0
- package/dist/src/diagnostics.js +1160 -133
- package/dist/src/doctor.js +3 -1
- package/dist/src/engine/ann-hnsw.js +2 -12
- package/dist/src/engine/file-walker.js +8 -2
- package/dist/src/engine/git-history.js +12 -12
- package/dist/src/engine/index.js +1174 -313
- package/dist/src/engine/sarif-import.js +341 -0
- package/dist/src/engine/scip-import.js +28 -13
- package/dist/src/engine/source-policy.js +16 -0
- package/dist/src/engine/state-paths.js +175 -0
- package/dist/src/execution-profile.js +15 -10
- package/dist/src/failure-diagnosis.js +7 -1
- package/dist/src/graph-layout.js +173 -0
- package/dist/src/index-activity.js +2 -1
- package/dist/src/init.js +86 -45
- package/dist/src/lifecycle-health.js +41 -9
- package/dist/src/mcp-graph-worker.js +69 -0
- package/dist/src/mcp-reliability.js +154 -0
- package/dist/src/mcp-worker-supervisor.js +350 -0
- package/dist/src/mirror.js +290 -0
- package/dist/src/node-runtime.js +157 -0
- package/dist/src/output-compression.js +2 -1
- package/dist/src/output-telemetry.js +16 -11
- package/dist/src/progressive-evidence.js +30 -26
- package/dist/src/pure-compression-cli.js +4 -3
- package/dist/src/relationship-adapters.js +15 -8
- package/dist/src/release-preflight.js +13 -10
- package/dist/src/repair-lease.js +85 -0
- package/dist/src/repository-init-process.js +13 -9
- package/dist/src/repository-management.js +34 -4
- package/dist/src/response-budget.js +8 -6
- package/dist/src/server.js +80 -35
- package/dist/src/structural-fast-path.js +16 -10
- package/dist/src/structural-snapshot.js +6 -2
- package/dist/src/system-config.js +25 -2
- package/dist/src/tools/knodin-tools.js +142 -31
- package/dist/src/update-ceremony.js +9 -5
- package/dist/src/update-trust.js +5 -4
- package/dist/src/visualization.js +372 -19
- package/dist/src/worktree-lifecycle.js +5 -2
- package/docs/BEHAVIORAL-CONTRACT.md +72 -0
- package/docs/CLI.md +20 -1
- package/docs/COMPARISON.md +403 -0
- package/docs/COMPETITIVE-LANDSCAPE-2026-08.md +267 -0
- package/docs/DIAGNOSTICS.md +46 -11
- package/docs/HANDOFF.md +180 -0
- package/docs/INSTALLATION.md +21 -2
- package/docs/MCP.md +59 -8
- package/docs/PT-ACCESS-RECOMMENDATION.md +5 -7
- package/docs/REPOSITORIES-AND-WORKTREES.md +18 -6
- package/docs/SCIP-IMPORT.md +5 -0
- package/docs/TOKEN-OPTIMIZER-SCORECARD.md +79 -0
- package/docs/releases/0.5.1.md +4 -4
- package/docs/releases/0.8.0.md +74 -0
- package/docs/releases/0.8.2.md +34 -0
- package/package.json +17 -4
- package/roadmap/competitive-roadmap.md +3801 -0
- package/schemas/release-attestation-v1.schema.json +1 -1
- package/schemas/support-bundle-v2.schema.json +212 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://raw.githubusercontent.com/
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/DTS-Productivity-Engineering/knodin/main/schemas/release-attestation-v1.schema.json",
|
|
4
4
|
"title": "knodin release attestation",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://knodin.dev/schemas/support-bundle-v2.schema.json",
|
|
4
|
+
"title": "knodin privacy-safe support bundle preview",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "previewId", "generatedAt", "manifest", "report", "files"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 2 },
|
|
10
|
+
"previewId": { "type": "string", "pattern": "^[a-f0-9]{32}$" },
|
|
11
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
12
|
+
"manifest": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"required": [
|
|
16
|
+
"schemaVersion",
|
|
17
|
+
"privacy",
|
|
18
|
+
"localOnly",
|
|
19
|
+
"uploaded",
|
|
20
|
+
"maxArchiveBytes",
|
|
21
|
+
"omissions",
|
|
22
|
+
"unavailableSections",
|
|
23
|
+
"files"
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"schemaVersion": { "const": 2 },
|
|
27
|
+
"privacy": { "const": "explicit-allowlist-local-only" },
|
|
28
|
+
"localOnly": { "const": true },
|
|
29
|
+
"uploaded": { "const": false },
|
|
30
|
+
"maxArchiveBytes": { "type": "integer", "maximum": 524288 },
|
|
31
|
+
"omissions": { "type": "array", "items": { "type": "string" } },
|
|
32
|
+
"unavailableSections": { "type": "array", "items": { "type": "string" } },
|
|
33
|
+
"files": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"minItems": 6,
|
|
36
|
+
"maxItems": 6,
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["path", "bytes", "fields", "retention", "redaction", "unavailable"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"path": {
|
|
43
|
+
"enum": [
|
|
44
|
+
"support-report.txt",
|
|
45
|
+
"runtime.json",
|
|
46
|
+
"health.json",
|
|
47
|
+
"repository-scale.json",
|
|
48
|
+
"mcp-traces.json",
|
|
49
|
+
"failures.json"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
53
|
+
"fields": { "type": "array", "items": { "type": "string" } },
|
|
54
|
+
"retention": { "type": "string" },
|
|
55
|
+
"redaction": { "const": ["explicit-allowlist"] },
|
|
56
|
+
"unavailable": { "type": ["string", "null"] }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"report": { "type": "string" },
|
|
63
|
+
"files": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": [
|
|
67
|
+
"runtime.json",
|
|
68
|
+
"health.json",
|
|
69
|
+
"repository-scale.json",
|
|
70
|
+
"mcp-traces.json",
|
|
71
|
+
"failures.json"
|
|
72
|
+
],
|
|
73
|
+
"properties": {
|
|
74
|
+
"runtime.json": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": ["knodin", "node", "platform", "arch"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"knodin": { "type": "string" },
|
|
80
|
+
"node": { "type": "string" },
|
|
81
|
+
"platform": { "type": "string" },
|
|
82
|
+
"arch": { "type": "string" }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"health.json": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": ["graph", "lifecycle", "installation"],
|
|
89
|
+
"properties": {
|
|
90
|
+
"graph": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"required": ["status", "freshness"],
|
|
94
|
+
"properties": {
|
|
95
|
+
"status": { "type": "string" },
|
|
96
|
+
"freshness": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["state", "commitRelation", "commitDistance"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"state": { "type": "string" },
|
|
102
|
+
"commitRelation": { "type": "string" },
|
|
103
|
+
"commitDistance": { "type": ["integer", "null"] }
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"lifecycle": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"required": ["status", "queuedEvents", "processorState"],
|
|
112
|
+
"properties": {
|
|
113
|
+
"status": { "type": "string" },
|
|
114
|
+
"queuedEvents": { "type": ["integer", "null"] },
|
|
115
|
+
"processorState": { "type": "string" }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"installation": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"required": ["status"],
|
|
122
|
+
"properties": { "status": { "type": "string" } }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"repository-scale.json": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"additionalProperties": false,
|
|
129
|
+
"required": [
|
|
130
|
+
"sourceFiles",
|
|
131
|
+
"indexedFiles",
|
|
132
|
+
"filesWithSymbols",
|
|
133
|
+
"coveragePercent",
|
|
134
|
+
"missingFileCount",
|
|
135
|
+
"missingRecordCount"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"sourceFiles": { "type": ["integer", "null"] },
|
|
139
|
+
"indexedFiles": { "type": ["integer", "null"] },
|
|
140
|
+
"filesWithSymbols": { "type": ["integer", "null"] },
|
|
141
|
+
"coveragePercent": { "type": ["number", "null"] },
|
|
142
|
+
"missingFileCount": { "type": ["integer", "null"] },
|
|
143
|
+
"missingRecordCount": { "type": ["integer", "null"] }
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"mcp-traces.json": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"required": ["records"],
|
|
150
|
+
"properties": { "records": { "type": "array", "items": { "$ref": "#/$defs/mcpTrace" } } }
|
|
151
|
+
},
|
|
152
|
+
"failures.json": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"additionalProperties": false,
|
|
155
|
+
"required": ["records"],
|
|
156
|
+
"properties": { "records": { "type": "array", "items": { "$ref": "#/$defs/failure" } } }
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"$defs": {
|
|
162
|
+
"mcpTrace": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"required": ["at", "event", "requestId", "traceId", "operation", "deadlineMs"],
|
|
166
|
+
"properties": {
|
|
167
|
+
"at": { "type": "string" },
|
|
168
|
+
"event": { "type": "string" },
|
|
169
|
+
"requestId": { "type": "string" },
|
|
170
|
+
"traceId": { "type": "string" },
|
|
171
|
+
"operation": { "type": "string" },
|
|
172
|
+
"deadlineMs": { "type": "integer" },
|
|
173
|
+
"kind": { "type": "string" },
|
|
174
|
+
"elapsedMs": { "type": "integer" },
|
|
175
|
+
"sequence": { "type": "integer" },
|
|
176
|
+
"predecessorTraceId": { "type": "string" }
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"failure": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"additionalProperties": false,
|
|
182
|
+
"required": [
|
|
183
|
+
"schemaVersion",
|
|
184
|
+
"at",
|
|
185
|
+
"correlationId",
|
|
186
|
+
"surface",
|
|
187
|
+
"operation",
|
|
188
|
+
"phase",
|
|
189
|
+
"error"
|
|
190
|
+
],
|
|
191
|
+
"properties": {
|
|
192
|
+
"schemaVersion": { "const": 1 },
|
|
193
|
+
"at": { "type": "string" },
|
|
194
|
+
"correlationId": { "type": "string" },
|
|
195
|
+
"surface": { "enum": ["cli", "mcp", "lifecycle"] },
|
|
196
|
+
"operation": { "type": "string" },
|
|
197
|
+
"phase": { "type": "string" },
|
|
198
|
+
"error": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"required": ["name", "code", "messageFingerprint", "stack"],
|
|
202
|
+
"properties": {
|
|
203
|
+
"name": { "type": "string" },
|
|
204
|
+
"code": { "type": ["string", "null"] },
|
|
205
|
+
"messageFingerprint": { "type": "string" },
|
|
206
|
+
"stack": { "type": "array", "items": { "enum": ["at <repository>", "at <runtime>"] } }
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|