agent-knowledge 3.0.0 → 3.1.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.1.0 (2026-11-21) — the /knowledge pane in the desktop app
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **A desktop layout for /knowledge**: in the Claude desktop app the pane is drawn natively, the way the old web dashboard read: a head with the server's state, git sync, Refresh and **Sync now** as its main action, and tiles for entries, sessions, snapshots and vectors; a side column with the tabs and the categories, each with its count; the view beside it. An entry's page draws its body as one Markdown and its links as a graph of the entry and its neighbours (arrows by direction, coloured by category) above the list of links; Health adds charts of entries per category and of entries updated per week over the last 12 weeks. Below 90 columns the side column stacks above the view.
|
|
8
|
+
- **A widget glance**: minimized to a widget in the desktop app, the pane shows the counts, the categories as one stacked bar, git and the latest activity, and a Search button.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **The terminal pane is calmer**: a rule under the tabs and the key line separates the controls from the view, and from 80 columns (a wide terminal, the desktop) a list row is one line: the title, its facts at the right. Charts are left out on the terminal, which draws no Svg.
|
|
13
|
+
|
|
3
14
|
## 3.0.0 (2026-11-13) — the session lifecycle moves into the plugin
|
|
4
15
|
|
|
5
16
|
### Breaking
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../src/embeddings/local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../src/embeddings/local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAmEpD,qBAAa,sBAAuB,YAAW,iBAAiB;IAC9D,QAAQ,CAAC,IAAI,WAAW;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;gBAEvB,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM;IAOxE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;IA0B3C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAKzC,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;YAKvB,WAAW;CAW1B"}
|
package/dist/embeddings/local.js
CHANGED
|
@@ -13,7 +13,9 @@ process.env.OMP_NUM_THREADS = String(_numThreads);
|
|
|
13
13
|
async function loadPipeline(model) {
|
|
14
14
|
try {
|
|
15
15
|
console.error(`[knowledge] Loading embedding model ${model} (quantized, ${_numThreads} thread(s))...`);
|
|
16
|
-
|
|
16
|
+
// Optional dependency: npm drops it when its install fails, so the build must not need its types.
|
|
17
|
+
const optional = '@huggingface/transformers';
|
|
18
|
+
const { pipeline } = (await import(optional));
|
|
17
19
|
const pipe = await pipeline('feature-extraction', model, {
|
|
18
20
|
dtype: 'q8',
|
|
19
21
|
session_options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.js","sourceRoot":"","sources":["../../src/embeddings/local.ts"],"names":[],"mappings":"AAEA,MAAM,aAAa,GAAG,yBAAyB,CAAC;AAChD,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAC7B,MAAM,uBAAuB,GAAG,MAAM,CAAC;AACvC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAO9B,IAAI,SAAS,GAAsB,IAAI,CAAC;AACxC,IAAI,gBAAgB,GAAsC,I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C,CAAC;gBAC1D,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YACvC,CAAC;QACH,CAAC;QAED,cAAc,EAAE,CAAC;QACjB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,IAAY;QACzB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACzC,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QACtC,OAAO,IAAI,KAAK,IAAI,CAAC;IACvB,CAAC;IAEO,KAAK,CAAC,WAAW;QACvB,IAAI,SAAS;YAAE,OAAO,SAAS,CAAC;QAChC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,gBAAgB,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;gBACxD,SAAS,GAAG,IAAI,CAAC;gBACjB,IAAI,IAAI;oBAAE,cAAc,EAAE,CAAC;gBAC3B,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;QACL,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF"}
|
package/docs/USER-MANUAL.md
CHANGED
|
@@ -298,6 +298,12 @@ Docked in the fullscreen layout the pane takes the right side of the window; on
|
|
|
298
298
|
|
|
299
299
|

|
|
300
300
|
|
|
301
|
+
From 80 columns a row is one line: the title, its facts at the right.
|
|
302
|
+
|
|
303
|
+
### In the desktop app
|
|
304
|
+
|
|
305
|
+
In the Claude desktop app the pane is drawn natively, laid out as the old web dashboard was: a head with the server's state, git sync, **Refresh** and **Sync now**, tiles for entries, sessions, snapshots and vectors; a side column with the tabs and the categories, each with its count; the view beside it. An entry's page shows its links as a graph of its neighbours above the list, and its body whole; Health adds charts of the entries per category and of those updated per week. A narrow dock (under 90 columns) stacks the side column above the view. Minimized to a widget, the pane is a glance: the counts, the categories as one bar, git and the latest activity, and a **Search** button.
|
|
306
|
+
|
|
301
307
|
### When the server is away
|
|
302
308
|
|
|
303
309
|
One agent-knowledge MCP process serves the REST API on `127.0.0.1:3423`; when its session ends another one takes the port over within a few seconds. While nothing answers, the pane says so and **Refresh** tries again (`✗ still nothing answers at http://127.0.0.1:3423 (12:04:31)`); the tabs stay, so `1`–`4` never land in the prompt, and it comes back by itself on the next poll.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-knowledge",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Cross-session memory and recall for AI agents — git-synced knowledge base, knowledge graph, confidence scoring, hybrid semantic+TF-IDF search, auto-distillation with secrets scrubbing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|