The Nowledge Mem page's dialog now sets every option the hook reads, on Magpie's released bridge (options.get/set only), by SadWood. - One Settings dialog: connection, key (an empty field keeps the saved key; Remove saved key / Undo), API key variable, recall and remote recall, Context Bundle, apps without memory, capture and remote capture, the human-dialogue filter (a switch, Cindy only with it on, tool results only with it off) and the advanced numbers. Remote HTTP needs the Advanced exception. - A × beside a field that holds an explicit value returns it to the default. Saving re-reads the options, writes only edited fields, and refuses (keeping the draft) when one of them, or a gate's remote grant or the endpoint behind a newly allowed HTTP exception, changed elsewhere. - page/validate.js is shared by the page and resolveOptions, so both refuse the same values. - The footer wraps at narrow widths (German Save was cut off at 380px). - No native select. Every language has every key; the English fallback loop is gone. Reviewed at 75a09d19e, run merged onto main04f3608(main's later24cd0b9touches packages/cursor only). Mac mini, Bun 1.4.2, temp HOME: - packages/nowledge-mem: 130 pass, 2 skip (live Mem, Linux-only Chrome layout), 0 fail. - whole repo bun test: 4699 pass, 12 skip, 0 fail. bun scripts/check.mjs: exit 0. - PR CI at this head ran the Linux Chrome layout test (pass, 30 layouts) and 4587 pass. - Browser harness: page/ framed with sandbox="allow-scripts", magpie's CSP and magpie's real pagebridge.js; Chromium and WebKit, en/zh/zh-TW/ja/de, 320/380/900px, light/dark (60 runs). No request beyond the page's own files, no console or page errors, the key never in the DOM, no select, no overflow, key field password again after show/close/reopen, recallRemote shown but disabled while recall is off. Flows (en 380, both engines): editing Space gives one options.set keeping custom, apiKey, requestTimeoutMs:900, skipAgents and recallRemote; http://100.64.0.5 refused until the HTTP exception is on, then saved; a Space changed elsewhere conflicts and writes nothing; Bearer key replaces and empties the field; Remove saved key deletes apiKey; turning recall on keeps recallRemote. Broken by hand: - Main's footer CSS back: the harness flags 12 runs (en 320, de 320/380, both engines). - settings.js dependency check off: "enabling a global gate conflicts…" and "enabling HTTP exception conflicts…" go red. - validateExplicitOptions removed from resolveOptions: two hook option tests go red. Not tried: a real Mem server.
66 lines
1.5 KiB
JSON
66 lines
1.5 KiB
JSON
{
|
|
"name": "@magpie-community/gateway-nowledge-mem",
|
|
"version": "0.1.5",
|
|
"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"
|
|
}
|