Python
chore(memhub): bump build to 31 and teach new-harness skills the three tools
alvinfei27f64f1b7a4c
diff --git a/memhub/package.json b/memhub/package.jsonindex a101bf0..d52f25a 100644--- a/memhub/package.json+++ b/memhub/package.json@@ -2,7 +2,7 @@"name": "one-memory","version": "1.0.5","release": {- "build_number": 30,+ "build_number": 31,"macos_min_version": "13.0","app_update": "manual","runtime_manifest_schema": 1,diff --git a/memhub/packages/host-bridge/src/install-contract.test.ts b/memhub/packages/host-bridge/src/install-contract.test.tsindex 6b49331..7d67eae 100644--- a/memhub/packages/host-bridge/src/install-contract.test.ts+++ b/memhub/packages/host-bridge/src/install-contract.test.ts@@ -136,6 +136,23 @@ describe("custom Harness pairing Skill", () => {"<ABSOLUTE_PRIVATE_CREDENTIAL_FILE_FOR_custom-1234>",);expect(skill).not.toContain("omhg_v1_");+ // After pairing, the model learns the three-tool surface from the Skill+ // too: not every Harness reads the MCP initialize instructions.+ expect(skill).toContain("## Using MemHub after connecting");+ for (const tool of [+ "MemHub_recall",+ "MemHub_write",+ "MemHub_diagnostic_trace",+ ])+ expect(skill).toContain(`\`${tool}\``);+ expect(skill).toContain('mode: "raw"');+ for (const removed of [+ "MemHub_ask",+ "MemHub_context",+ "MemHub_conversations",+ "MemHub_memory_write",+ ])+ expect(skill).not.toContain(removed);});it("treats a user-provided Harness name as display data", () => {diff --git a/memhub/packages/host-bridge/src/recall-installer.ts b/memhub/packages/host-bridge/src/recall-installer.tsindex 8d3039b..e4627ec 100644--- a/memhub/packages/host-bridge/src/recall-installer.ts+++ b/memhub/packages/host-bridge/src/recall-installer.ts@@ -3091,6 +3091,16 @@ ${JSON.stringify(mcp, null, 2)}5. Restart or reload this Harness's MCP services if required. Run one real MemHub recall query and report whether the tool was discovered and the authenticated query succeeded. Do not report success merely because files were written.The pairing code is single-use. If pairing fails or the code has expired, stop and ask the user to generate a new Skill in MemHub. Do not guess codes, reuse another Harness's credential, disable authorization, or broaden permissions.++## Using MemHub after connecting++The MemHub MCP server exposes exactly three tools:++- \`MemHub_recall\` (\`query\`): search the user's memories before answering anything that depends on their preferences, past decisions, constraints or earlier work. When the result has \`mode: "raw"\`, no generation model is configured or no memory exists yet, so MemHub searched the imported original conversations instead: treat those hits as conversation excerpts, not confirmed memories, and say which app they came from.+- \`MemHub_write\` (\`text\`, optional \`request_id\`): save one memory, only when the user asks you to remember something or states a lasting preference, decision or constraint. Write a short conclusion, never a transcript or a secret. It is processed asynchronously; a returned \`pending\` or \`waiting_for_model\` state means it was accepted. Retry a failed call with the same \`request_id\`.+- \`MemHub_diagnostic_trace\`: read the diagnostic steps of a MemHub call, only while the user is troubleshooting with detailed logging on.++A tool you can see is not a tool you are allowed to use. Report a denial or an unavailable MemHub as such; never treat it as an empty result, retry around it, or broaden access.`;}@@ -3138,6 +3148,10 @@ are not successful retrieval. Never invent revision, evidence, path or adoptionContext exit 4 reports unavailable/denied, exit 5 requires a runtime upgrade; do notretry with the legacy command or broaden access. The legacy command above is retainedfor explicitly memory-only queries and the installation self-check, not error fallback.+When no generation model is configured or no memory exists yet, the legacy command+searches the imported original conversations instead and labels its output as+original-conversation excerpts: they are not confirmed memories. This host has no+MemHub write path; do not claim to have saved a memory.- Replace \`查询内容\` with a concise description of the context you need,keeping the argument quoted and escaping shell metacharacters.