knit-mcp 0.9.0 → 0.11.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 +368 -215
- package/dist/cache-3LPETDUT.js +19 -0
- package/dist/{chunk-XFS2XGZI.js → chunk-27TA2ZQZ.js} +24 -0
- package/dist/{chunk-KLNUEE3O.js → chunk-7UFS67HP.js} +9 -1
- package/dist/{chunk-4K4FHOKE.js → chunk-HROSQ5MS.js} +256 -344
- package/dist/{chunk-5NCSZYRJ.js → chunk-LV73YTVN.js} +5 -0
- package/dist/{chunk-B2KZ5UR7.js → chunk-ORKWLA33.js} +1 -1
- package/dist/{chunk-BU3VHX3W.js → chunk-RZOVZYTF.js} +12 -4
- package/dist/{chunk-7PPC6IG6.js → chunk-ST4X7LZT.js} +60 -2
- package/dist/chunk-TWHNYJAJ.js +328 -0
- package/dist/{chunk-FLNV2IQC.js → chunk-VB2TIR6L.js} +2 -2
- package/dist/{chunk-BAUQEFYY.js → chunk-WKQHCLLO.js} +45 -10
- package/dist/cli.js +18 -9
- package/dist/doctor-4DN2P2JR.js +179 -0
- package/dist/{export-I5Y26WUL.js → export-CGSEUYZA.js} +3 -3
- package/dist/{install-agents-D2KJQUH3.js → install-agents-OBDCWCPB.js} +8 -7
- package/dist/{instructions-4FI32YZU.js → instructions-JARSXQPO.js} +1 -1
- package/dist/{integration-scanner-PS47AHGM.js → integration-scanner-LBD2PIZ3.js} +3 -3
- package/dist/{refresh-BXN32CNA.js → refresh-SMJ2NGIW.js} +3 -3
- package/dist/{status-RQWRIM2Y.js → status-VJDB75X2.js} +2 -2
- package/dist/{tools-EISDGPS5.js → tools-MIROTK2A.js} +1146 -91
- package/package.json +2 -1
- package/dist/cache-JSN6ETUF.js +0 -18
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
detectProjectRoot,
|
|
3
|
+
getBrain,
|
|
4
|
+
refreshBrain
|
|
5
|
+
} from "./chunk-TWHNYJAJ.js";
|
|
6
|
+
import "./chunk-HROSQ5MS.js";
|
|
7
|
+
import "./chunk-RZOVZYTF.js";
|
|
8
|
+
import "./chunk-MOOVNMIN.js";
|
|
9
|
+
import "./chunk-ST4X7LZT.js";
|
|
10
|
+
import "./chunk-M3YZOJNW.js";
|
|
11
|
+
import "./chunk-VB2TIR6L.js";
|
|
12
|
+
import "./chunk-7UFS67HP.js";
|
|
13
|
+
import "./chunk-WKQHCLLO.js";
|
|
14
|
+
import "./chunk-27TA2ZQZ.js";
|
|
15
|
+
export {
|
|
16
|
+
detectProjectRoot,
|
|
17
|
+
getBrain,
|
|
18
|
+
refreshBrain
|
|
19
|
+
};
|
|
@@ -90,12 +90,30 @@ function sessionMarkerPath(rootPath) {
|
|
|
90
90
|
function searchMarkerPath(rootPath) {
|
|
91
91
|
return join2(projectDataDir(rootPath), ".searched-current");
|
|
92
92
|
}
|
|
93
|
+
function claimMarkerPath(rootPath) {
|
|
94
|
+
return join2(projectDataDir(rootPath), ".claim-verified-current");
|
|
95
|
+
}
|
|
96
|
+
function turnEditLogPath(rootPath) {
|
|
97
|
+
return join2(projectDataDir(rootPath), ".turn-edits.jsonl");
|
|
98
|
+
}
|
|
99
|
+
function calibrationPath(rootPath) {
|
|
100
|
+
return join2(projectDataDir(rootPath), "calibration.json");
|
|
101
|
+
}
|
|
102
|
+
function requirementsDir(rootPath) {
|
|
103
|
+
return join2(projectDataDir(rootPath), "requirements");
|
|
104
|
+
}
|
|
105
|
+
function requirementSourcePath(rootPath, sourceId) {
|
|
106
|
+
return join2(requirementsDir(rootPath), `${sourceId}.json`);
|
|
107
|
+
}
|
|
93
108
|
function featuresConfigPath(rootPath) {
|
|
94
109
|
return join2(projectDataDir(rootPath), "features.json");
|
|
95
110
|
}
|
|
96
111
|
function integrationsConfigPath(rootPath) {
|
|
97
112
|
return join2(projectDataDir(rootPath), "integrations.json");
|
|
98
113
|
}
|
|
114
|
+
function metricsHistoryPath(rootPath) {
|
|
115
|
+
return join2(projectDataDir(rootPath), "metrics-history.jsonl");
|
|
116
|
+
}
|
|
99
117
|
function learningsDir(rootPath) {
|
|
100
118
|
return join2(projectDataDir(rootPath), "learnings");
|
|
101
119
|
}
|
|
@@ -143,8 +161,14 @@ export {
|
|
|
143
161
|
classificationMarkerPath,
|
|
144
162
|
sessionMarkerPath,
|
|
145
163
|
searchMarkerPath,
|
|
164
|
+
claimMarkerPath,
|
|
165
|
+
turnEditLogPath,
|
|
166
|
+
calibrationPath,
|
|
167
|
+
requirementsDir,
|
|
168
|
+
requirementSourcePath,
|
|
146
169
|
featuresConfigPath,
|
|
147
170
|
integrationsConfigPath,
|
|
171
|
+
metricsHistoryPath,
|
|
148
172
|
learningsDir,
|
|
149
173
|
learningsFilePath,
|
|
150
174
|
sessionsLogPath,
|
|
@@ -53,7 +53,15 @@ function generateSessionStartup() {
|
|
|
53
53
|
|
|
54
54
|
First action: call \`knit_load_session\`. One MCP call returns last sessions, handoff, learnings, false positives. If \`handoff.md\` exists at the repo root, resume that work first.
|
|
55
55
|
|
|
56
|
-
Protocol Guard runs in \`warn\` mode by default \u2014 adjust with \`knit_set_protocol_strictness
|
|
56
|
+
Protocol Guard runs in \`warn\` mode by default \u2014 adjust with \`knit_set_protocol_strictness\`.
|
|
57
|
+
|
|
58
|
+
## v0.11 tool surface (in addition to query/search/record)
|
|
59
|
+
|
|
60
|
+
- **\`knit_verify_claim\`** \u2014 fact-check one claim against the knowledge graph before LEARN. Stop-hook enforces on standard/complex scope.
|
|
61
|
+
- **\`knit_index_requirements\` + \`knit_generate_test_cases\` + \`knit_list_requirements\` + \`knit_delete_requirements\`** \u2014 long-form spec / RFC ingestion (200KB doc \u2192 relevant 5\u20137KB chunks per feature query).
|
|
62
|
+
- **\`knit_get_fingerprint\` + \`knit_infer_domains\` + \`knit_compose_template\`** \u2014 auto-config primitives: detected stack \u2192 ranked domains \u2192 composed CLAUDE.md sections (preview only; you paste to accept).
|
|
63
|
+
- **\`knit_get_calibration\` + tag your false-positives** (e.g. \`#complex-was-trivial\`) \u2014 the per-project self-healing classifier tunes thresholds after 3 same-direction FPs.
|
|
64
|
+
- **\`knit_brain_status\`** surfaces calibration / requirements / fingerprint state so you can discover all of the above from one health check.`;
|
|
57
65
|
}
|
|
58
66
|
function generateProjectMap(knowledge) {
|
|
59
67
|
const { summary } = knowledge;
|