@dcrays/mbh-memory 0.3.1-beta.2 → 0.3.2-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcrays/mbh-memory",
3
- "version": "0.3.1-beta.2",
3
+ "version": "0.3.2-beta.1",
4
4
  "description": "DeepSeek Harness memory plugin for Mobook",
5
5
  "type": "module",
6
6
  "main": "plugin/index.js",
package/plugin/index.js CHANGED
@@ -259,7 +259,7 @@ function render(value) {
259
259
  function createMemoryTools(memory) {
260
260
  const getMemory = defineTool({
261
261
  name: "get_memory",
262
- description: "Read the user's long-term memory from Mobook's configured memory storage. Use it only when prior preferences, facts, or experience are relevant to the current request.",
262
+ description: "Read the user's long-term memory only when the current request needs prior preferences, facts, or experience. Reuse a result already read for the same context in this session; read again if the account or memory changes, or a new task needs other history. Skip greetings and self-contained requests.",
263
263
  parameters: {},
264
264
  output: {
265
265
  schema: { type: "json" },
@@ -271,7 +271,7 @@ function createMemoryTools(memory) {
271
271
  });
272
272
  const setMemory = defineTool({
273
273
  name: "set_memory",
274
- description: "Write one durable memory through the configured Mobook memory storage. Use this when the user explicitly asks you to remember something useful for future conversations. Never store passwords, access tokens, API keys, or other secrets.",
274
+ description: "Write one durable memory only after the user explicitly asks to remember it for future conversations or confirms a suggestion to do so. Store a concise, self-contained, lasting fact or preference, not a transcript, temporary detail, unconfirmed inference, password, token, API key, or other secret. Report a failed write honestly.",
275
275
  parameters: {
276
276
  memory: {
277
277
  type: "string",
package/src/tools.js CHANGED
@@ -5,7 +5,7 @@ function render(value) {
5
5
  export function createMemoryTools(memory) {
6
6
  const getMemory = defineTool({
7
7
  name: 'get_memory',
8
- description: "Read the user's long-term memory from Mobook's configured memory storage. Use it only when prior preferences, facts, or experience are relevant to the current request.",
8
+ description: "Read the user's long-term memory only when the current request needs prior preferences, facts, or experience. Reuse a result already read for the same context in this session; read again if the account or memory changes, or a new task needs other history. Skip greetings and self-contained requests.",
9
9
  parameters: {},
10
10
  output: {
11
11
  schema: { type: 'json' },
@@ -17,7 +17,7 @@ export function createMemoryTools(memory) {
17
17
  });
18
18
  const setMemory = defineTool({
19
19
  name: 'set_memory',
20
- description: 'Write one durable memory through the configured Mobook memory storage. Use this when the user explicitly asks you to remember something useful for future conversations. Never store passwords, access tokens, API keys, or other secrets.',
20
+ description: 'Write one durable memory only after the user explicitly asks to remember it for future conversations or confirms a suggestion to do so. Store a concise, self-contained, lasting fact or preference, not a transcript, temporary detail, unconfirmed inference, password, token, API key, or other secret. Report a failed write honestly.',
21
21
  parameters: {
22
22
  memory: {
23
23
  type: 'string',