opencode-mempalace 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -23
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12349,31 +12349,14 @@ var PALACE_PROTOCOL = `IMPORTANT \u2014 MemPalace Memory Protocol:
12349
12349
 
12350
12350
  This protocol ensures the AI KNOWS before it speaks. Storage is not memory \u2014 but storage + this protocol = memory.`;
12351
12351
  var SESSION_START_INSTRUCTION = `[SYSTEM \u2014 MemPalace Context Load]
12352
- Spawn a background explore agent to load mempalace context for this session:
12352
+ On session start, load mempalace context by calling these tools directly (do NOT delegate to a subagent):
12353
12353
 
12354
- task(
12355
- subagent_type="explore",
12356
- run_in_background=true,
12357
- load_skills=["mempalace"],
12358
- description="Load mempalace context",
12359
- prompt="Query mempalace MCP tools to retrieve relevant context for this session.
12354
+ 1. mcp_mempalace_mempalace_diary_read(agent_name="sisyphus", last_n=3) \u2014 recent diary entries
12355
+ 2. mcp_mempalace_mempalace_status() \u2014 palace overview (wings, rooms, drawer count)
12360
12356
 
12361
- Execute these queries IN ORDER, stop early if ChromaDB is not running:
12362
-
12363
- 1. Call mcp_mempalace_mempalace_diary_read(agent_name='sisyphus', last_n=5)
12364
- 2. Call mcp_mempalace_mempalace_status()
12365
- 3. Call mcp_mempalace_mempalace_kg_query(entity='*')
12366
-
12367
- Return a concise summary of:
12368
- - Recent diary entries (last 3 days)
12369
- - Palace structure (wings, room count, total memories)
12370
- - Key entities and their latest facts
12371
-
12372
- If ChromaDB is not running or mempalace tools fail, just return 'Mempalace unavailable - ChromaDB not running.'
12373
- Do NOT retry failed calls. Do NOT try to fix the connection."
12374
- )
12375
-
12376
- Continue with the user's request immediately after spawning. Collect results via background_output when the notification arrives.`;
12357
+ Call both in parallel. If either fails (ChromaDB not running), skip silently and continue.
12358
+ Use the results to inform your responses \u2014 do not announce or summarize them unless the user asks.
12359
+ Proceed with the user's request immediately.`;
12377
12360
  var mempalacePlugin = async (_input, options) => {
12378
12361
  const opts = options ?? {};
12379
12362
  const mcpCommand = opts.mcpCommand ?? DEFAULT_MCP_COMMAND;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-mempalace",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "OpenCode plugin for MemPalace memory system — auto-registers MCP server, injects memory protocol into system prompt, and loads context on session start",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",