threadnote 1.1.5 → 1.1.6
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 +8 -0
- package/dist/mcp_server.cjs +6 -2
- package/dist/threadnote.cjs +3733 -3651
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,6 +12,14 @@ It is intentionally scoped to curated docs, memories, skills, and handoffs.
|
|
|
12
12
|
**Walkthrough:** https://kashkovsky.github.io/threadnote/
|
|
13
13
|
**Wiki:** https://github.com/Kashkovsky/threadnote/wiki
|
|
14
14
|
|
|
15
|
+
## Quickstart
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
curl -fsSL https://raw.githubusercontent.com/Kashkovsky/threadnote/main/scripts/install.sh | sh
|
|
19
|
+
threadnote mcp-install claude --apply # or codex / cursor / copilot
|
|
20
|
+
threadnote doctor --dry-run
|
|
21
|
+
```
|
|
22
|
+
|
|
15
23
|
## Real-World Uses
|
|
16
24
|
|
|
17
25
|
**Want to continue work in a fresh agent session?**
|
package/dist/mcp_server.cjs
CHANGED
|
@@ -36192,6 +36192,7 @@ function grepUrisFromJson(output) {
|
|
|
36192
36192
|
return [];
|
|
36193
36193
|
}
|
|
36194
36194
|
}
|
|
36195
|
+
var RECALL_CATEGORY_ORDER = ["memories", "resources", "skills"];
|
|
36195
36196
|
function recallSnippet(value) {
|
|
36196
36197
|
if (typeof value !== "string") {
|
|
36197
36198
|
return "";
|
|
@@ -36217,7 +36218,7 @@ function parseRecallHits(output, options = {}) {
|
|
|
36217
36218
|
return [];
|
|
36218
36219
|
}
|
|
36219
36220
|
const hits = [];
|
|
36220
|
-
for (const key of
|
|
36221
|
+
for (const key of RECALL_CATEGORY_ORDER) {
|
|
36221
36222
|
const items = result[key];
|
|
36222
36223
|
if (!Array.isArray(items)) {
|
|
36223
36224
|
continue;
|
|
@@ -36230,6 +36231,7 @@ function parseRecallHits(output, options = {}) {
|
|
|
36230
36231
|
continue;
|
|
36231
36232
|
}
|
|
36232
36233
|
hits.push({
|
|
36234
|
+
category: key,
|
|
36233
36235
|
contextType: typeof item.context_type === "string" ? item.context_type : "result",
|
|
36234
36236
|
score: typeof item.score === "number" ? item.score : 0,
|
|
36235
36237
|
snippet: recallSnippet(item.abstract ?? item.overview),
|
|
@@ -36253,7 +36255,9 @@ function mergeRecallHits(passes) {
|
|
|
36253
36255
|
}
|
|
36254
36256
|
}
|
|
36255
36257
|
}
|
|
36256
|
-
return [...byDocument.values()].sort(
|
|
36258
|
+
return [...byDocument.values()].sort(
|
|
36259
|
+
(left, right) => RECALL_CATEGORY_ORDER.indexOf(left.category) - RECALL_CATEGORY_ORDER.indexOf(right.category) || right.score - left.score
|
|
36260
|
+
);
|
|
36257
36261
|
}
|
|
36258
36262
|
function formatRecallHits(hits, maxHits) {
|
|
36259
36263
|
if (hits.length === 0) {
|