A deep Mem search can take longer than 5s, and the page refused any requestTimeoutMs over 5000 or gatewayTimeoutMs over 10000. Both now go up to 30000; the defaults (1500 and magpie's 1000) are unchanged. magpie v0.1.3538 (yetone/magpie#5890) runs a hook up to its own 30s budget; the README says an older magpie cuts anything over 10s. - validate.js, settings page and labels (en, zh, zh-TW, ja, de): 50-30000 and 100-30000. - nowledge-mem-agent checked: its 10000 ms values are fixed internal timeouts, not user options with a cap; unchanged. - slow-recall.test.mjs: a fixture server answers /memories/search after 6100 ms; requestTimeoutMs 15000 recalls it, 30001 is invalid, and a caller abort stops the fetch at once (the server sees the abort) and keeps the request as it came. Run (wsl-run, magpie-desktop): bun test packages/nowledge-mem packages/nowledge-mem-agent: 161 pass, 2 skip (live Mem and the Playwright layout check, skipped as on main), 0 fail; bun scripts/check.mjs: rc 0. The README's magpie version was filled in after that run. Not tried: a real Nowledge Mem server with a slow deep search. Reported-by: aboat0625-cpu
66 lines
1.5 KiB
JSON
66 lines
1.5 KiB
JSON
{
|
|
"name": "@magpie-community/gateway-nowledge-mem",
|
|
"version": "0.1.6",
|
|
"description": "Nowledge Mem recall, Context Bundle and optional conversation capture at the Magpie gateway, for every connected harness",
|
|
"type": "module",
|
|
"files": [
|
|
"service.mjs",
|
|
"probe.mjs",
|
|
"mem.mjs",
|
|
"nowledge-mem.hooks.mjs",
|
|
"conversation.mjs",
|
|
"capture-filter.mjs",
|
|
"CAPTURE_FILTER.md",
|
|
"README.md",
|
|
"page"
|
|
],
|
|
"keywords": [
|
|
"magpie",
|
|
"magpie-gateway",
|
|
"nowledge-mem",
|
|
"memory",
|
|
"llm-gateway"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/nowledge-mem"
|
|
},
|
|
"magpie": {
|
|
"hooks": "./nowledge-mem.hooks.mjs",
|
|
"options": {
|
|
"apiKeyEnv": "NMEM_API_KEY",
|
|
"recall": true,
|
|
"contextBundle": true,
|
|
"maxMemories": 5,
|
|
"maxBytes": 6000,
|
|
"requestTimeoutMs": 900,
|
|
"recallBackoffMs": 30000,
|
|
"capture": false,
|
|
"captureTools": true,
|
|
"captureFilter": "off",
|
|
"captureCindy": false,
|
|
"recallRemote": false,
|
|
"captureRemote": false,
|
|
"port": 3479
|
|
},
|
|
"page": {
|
|
"title": "Nowledge Mem",
|
|
"file": "page/settings.html",
|
|
"icon": "page/icon.svg",
|
|
"service": {
|
|
"port": 3479,
|
|
"option": "port"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"check": "bun test ./*.test.mjs"
|
|
},
|
|
"engines": {
|
|
"bun": ">=1.4.2"
|
|
},
|
|
"main": "./service.mjs"
|
|
}
|