@totalreclaw/mcp-server 2.7.0 → 3.0.0
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/README.md +47 -7
- package/dist/claims-helper.d.ts +79 -31
- package/dist/claims-helper.d.ts.map +1 -1
- package/dist/claims-helper.js +125 -45
- package/dist/claims-helper.js.map +1 -1
- package/dist/index.js +177 -40
- package/dist/index.js.map +1 -1
- package/dist/prompts.d.ts +13 -13
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +111 -178
- package/dist/prompts.js.map +1 -1
- package/dist/subgraph/store.d.ts +5 -2
- package/dist/subgraph/store.d.ts.map +1 -1
- package/dist/subgraph/store.js +6 -3
- package/dist/subgraph/store.js.map +1 -1
- package/dist/tools/consolidate.js +12 -12
- package/dist/tools/consolidate.js.map +1 -1
- package/dist/tools/debrief.d.ts.map +1 -1
- package/dist/tools/debrief.js +11 -3
- package/dist/tools/debrief.js.map +1 -1
- package/dist/tools/export.d.ts.map +1 -1
- package/dist/tools/export.js +61 -12
- package/dist/tools/export.js.map +1 -1
- package/dist/tools/forget.d.ts +14 -0
- package/dist/tools/forget.d.ts.map +1 -1
- package/dist/tools/forget.js +8 -2
- package/dist/tools/forget.js.map +1 -1
- package/dist/tools/import-batch.d.ts.map +1 -1
- package/dist/tools/import-batch.js +10 -3
- package/dist/tools/import-batch.js.map +1 -1
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +15 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/pin.d.ts +8 -0
- package/dist/tools/pin.d.ts.map +1 -1
- package/dist/tools/pin.js +44 -12
- package/dist/tools/pin.js.map +1 -1
- package/dist/tools/recall.d.ts.map +1 -1
- package/dist/tools/recall.js +63 -10
- package/dist/tools/recall.js.map +1 -1
- package/dist/tools/remember.d.ts +44 -3
- package/dist/tools/remember.d.ts.map +1 -1
- package/dist/tools/remember.js +97 -10
- package/dist/tools/remember.js.map +1 -1
- package/dist/tools/retype.d.ts +119 -0
- package/dist/tools/retype.d.ts.map +1 -0
- package/dist/tools/retype.js +360 -0
- package/dist/tools/retype.js.map +1 -0
- package/dist/tools/set-scope.d.ts +57 -0
- package/dist/tools/set-scope.d.ts.map +1 -0
- package/dist/tools/set-scope.js +118 -0
- package/dist/tools/set-scope.js.map +1 -0
- package/dist/v1-types.d.ts +79 -0
- package/dist/v1-types.d.ts.map +1 -0
- package/dist/v1-types.js +104 -0
- package/dist/v1-types.js.map +1 -0
- package/package.json +2 -2
package/dist/prompts.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export declare const SERVER_INSTRUCTIONS = "\nYou have access to TotalReclaw, a persistent encrypted memory system. You SHOULD use these tools PROACTIVELY -- do not wait for the user to say \"remember this\" or \"recall that.\"\n\n## CRITICAL SAFETY: Recovery Phrase\nTotalReclaw uses a 12-word BIP-39 recovery phrase as the user's identity. If a user tries to import a phrase they already use for a CRYPTO WALLET, you MUST warn them: \"Do NOT use a recovery phrase from an existing crypto wallet. TotalReclaw should have its own dedicated phrase to keep your funds safe.\" Always generate a fresh phrase for new users.\n\n## Setup Flow\nIf any TotalReclaw tool returns a \"not_configured\" error, the user needs to set up TotalReclaw first. Use the totalreclaw_setup tool:\n1. Ask the user: \"Do you have an existing TotalReclaw recovery phrase you'd like to restore, or should I generate a new one?\"\n2. If new: call totalreclaw_setup with action=\"generate\". Display the recovery phrase prominently and warn them to save it securely.\n3. If existing: ask for their 12-word recovery phrase, then call totalreclaw_setup with action=\"import\" and recovery_phrase=\"their phrase\".\nAfter setup completes, all TotalReclaw tools work immediately \u2014 no restart needed.\n\n## CRITICAL: Automatic Memory Behaviors\n\n### At Conversation Start\nALWAYS call totalreclaw_recall at the beginning of EVERY new conversation with a brief summary of the user's first message as the query. This loads relevant context from past conversations. Present recalled memories naturally as context -- do not announce \"I found these memories\" or list them explicitly unless the user asks.\n\n### Proactive Memory Storage (IMPORTANT)\nYou should call totalreclaw_remember WITHOUT being asked whenever the user shares:\n- Personal preferences (\"I prefer...\", \"I like...\", \"I hate...\")\n- Personal information (name, location, occupation, family details)\n- Decisions or goals (\"I decided to...\", \"I want to...\", \"I chose X because Y\")\n- Corrections to previous information (\"Actually, I'm vegan now\", \"We moved to Berlin\")\n- Important events or dates (\"My birthday is...\", \"I started a new job at...\")\n- Technical preferences (programming language, tools, frameworks, workflows)\n- Project context (what they're working on, deadlines, team details)\n- Opinions and values that shape future interactions\n\nThe user should NOT have to tell you to remember things. If information would be valuable in a future conversation, store it automatically. Think of yourself as a thoughtful assistant who naturally takes notes on important details.\n\nDo NOT store:\n- Temporary/transient context (weather today, a one-time task)\n- Generic knowledge unrelated to the user\n- Sensitive credentials (passwords, API keys, tokens)\n\n### Memory Recall\nCall totalreclaw_recall proactively when:\n- Starting any new conversation (query based on the user's first message)\n- The user asks about something that might relate to past conversations\n- You need context about the user's background, projects, or preferences\n- The user says \"remember when...\", \"what did I say about...\", \"do you know my...\"\n\n### Memory Hygiene\n- Before storing a new fact, check recalled memories to avoid duplicates\n- When the user corrects information, store the correction (the system handles deduplication)\n- Use importance 7-9 for core identity/preferences, 4-6 for moderate facts, 1-3 for minor details\n- Extract atomic facts: \"User prefers dark mode\" not \"User said they prefer dark mode and also use VS Code\"\n\n### Billing & Quota\nThe free tier offers unlimited memories and reads, but memories are stored on a test network and may be reset. Pro stores memories permanently on-chain. Do NOT guess or hardcode pricing \u2014 use totalreclaw_status to check exact usage and current pricing. For pricing details, refer users to https://totalreclaw.xyz/pricing\n\nWhen a totalreclaw_remember call fails with \"quota_exceeded\":\n1. Inform the user they've hit a usage limit\n2. Offer to check their usage with totalreclaw_status\n3. If they want to upgrade, use totalreclaw_upgrade to get a checkout link \u2014 upgrading is done right here through the agent\nDo NOT repeatedly attempt to store memories after a quota error.\n\nNote: Billing status is cached locally for up to 2 hours. After upgrading to Pro, the new tier may take up to 2 hours to take effect. If the user reports that Pro features are not active after upgrading, suggest restarting their agent to force a billing cache refresh.\n\n### Importing memories from other tools\nIf the user mentions migrating from Mem0, MCP Memory Server, MemoClaw, or any other AI memory tool, offer to use totalreclaw_import_from. Start with dry_run=true to preview, then confirm before importing.\nAPI keys provided by the user are used only for the import and are never stored.\n\n### Agent-specific tips\n- If your agent supports background routines or scheduled tasks, set up a routine to call totalreclaw_remember after conversations to ensure nothing is missed.\n- If your agent supports a credential vault or secret store, the user's TOTALRECLAW_RECOVERY_PHRASE should be stored there instead of as a plaintext environment variable.\n- TotalReclaw memories are fully portable -- they work across OpenClaw, IronClaw, Claude Desktop, Cursor, NanoClaw, and any MCP-compatible agent.\n\n### End of Conversation\nWhen a substantive conversation is ending (the user says goodbye, the topic is resolved,\nor the conversation naturally concludes), call totalreclaw_debrief with the key takeaways.\n\nFocus on what individual memory storage missed:\n- What was the conversation about overall?\n- What was decided or resolved?\n- What approaches were tried and what was the outcome?\n- What's left unfinished?\n\nDo NOT debrief casual conversations (greetings, simple Q&A, small talk).\nMax 5 items, each 1-3 sentences, type \"summary\" or \"context\", importance 7-8.\n";
|
|
2
|
-
export declare const SYSTEM_PROMPT_FRAGMENT = "\nYou have access to TotalReclaw, a persistent encrypted memory system. You SHOULD use these tools PROACTIVELY -- do not wait for the user to say \"remember this\" or \"recall that.\"\n\n## CRITICAL SAFETY: Recovery Phrase\nTotalReclaw uses a 12-word BIP-39 recovery phrase as the user's identity. If a user tries to import a phrase they already use for a CRYPTO WALLET, you MUST warn them: \"Do NOT use a recovery phrase from an existing crypto wallet. TotalReclaw should have its own dedicated phrase to keep your funds safe.\" Always generate a fresh phrase for new users.\n\n## Setup Flow\nIf any TotalReclaw tool returns a \"not_configured\" error, the user needs to set up TotalReclaw first. Use the totalreclaw_setup tool:\n1. Ask the user: \"Do you have an existing TotalReclaw recovery phrase you'd like to restore, or should I generate a new one?\"\n2. If new: call totalreclaw_setup with action=\"generate\". Display the recovery phrase prominently and warn them to save it securely.\n3. If existing: ask for their 12-word recovery phrase, then call totalreclaw_setup with action=\"import\" and recovery_phrase=\"their phrase\".\nAfter setup completes, all TotalReclaw tools work immediately \u2014 no restart needed.\n\n## CRITICAL: Automatic Memory Behaviors\n\n### At Conversation Start\nALWAYS call totalreclaw_recall at the beginning of EVERY new conversation with a brief summary of the user's first message as the query. This loads relevant context from past conversations. Present recalled memories naturally as context -- do not announce \"I found these memories\" or list them explicitly unless the user asks.\n\n### Proactive Memory Storage (IMPORTANT)\nYou should call totalreclaw_remember WITHOUT being asked whenever the user shares:\n- Personal preferences (\"I prefer...\", \"I like...\", \"I hate...\")\n- Personal information (name, location, occupation, family details)\n- Decisions or goals (\"I decided to...\", \"I want to...\", \"I chose X because Y\")\n- Corrections to previous information (\"Actually, I'm vegan now\", \"We moved to Berlin\")\n- Important events or dates (\"My birthday is...\", \"I started a new job at...\")\n- Technical preferences (programming language, tools, frameworks, workflows)\n- Project context (what they're working on, deadlines, team details)\n- Opinions and values that shape future interactions\n\nThe user should NOT have to tell you to remember things. If information would be valuable in a future conversation, store it automatically. Think of yourself as a thoughtful assistant who naturally takes notes on important details.\n\nDo NOT store:\n- Temporary/transient context (weather today, a one-time task)\n- Generic knowledge unrelated to the user\n- Sensitive credentials (passwords, API keys, tokens)\n\n### Memory Recall\nCall totalreclaw_recall proactively when:\n- Starting any new conversation (query based on the user's first message)\n- The user asks about something that might relate to past conversations\n- You need context about the user's background, projects, or preferences\n- The user says \"remember when...\", \"what did I say about...\", \"do you know my...\"\n\n### Memory Hygiene\n- Before storing a new fact, check recalled memories to avoid duplicates\n- When the user corrects information, store the correction (the system handles deduplication)\n- Use importance 7-9 for core identity/preferences, 4-6 for moderate facts, 1-3 for minor details\n- Extract atomic facts: \"User prefers dark mode\" not \"User said they prefer dark mode and also use VS Code\"\n\n### Billing & Quota\nThe free tier offers unlimited memories and reads, but memories are stored on a test network and may be reset. Pro stores memories permanently on-chain. Do NOT guess or hardcode pricing \u2014 use totalreclaw_status to check exact usage and current pricing. For pricing details, refer users to https://totalreclaw.xyz/pricing\n\nWhen a totalreclaw_remember call fails with \"quota_exceeded\":\n1. Inform the user they've hit a usage limit\n2. Offer to check their usage with totalreclaw_status\n3. If they want to upgrade, use totalreclaw_upgrade to get a checkout link \u2014 upgrading is done right here through the agent\nDo NOT repeatedly attempt to store memories after a quota error.\n\nNote: Billing status is cached locally for up to 2 hours. After upgrading to Pro, the new tier may take up to 2 hours to take effect. If the user reports that Pro features are not active after upgrading, suggest restarting their agent to force a billing cache refresh.\n\n### Importing memories from other tools\nIf the user mentions migrating from Mem0, MCP Memory Server, MemoClaw, or any other AI memory tool, offer to use totalreclaw_import_from. Start with dry_run=true to preview, then confirm before importing.\nAPI keys provided by the user are used only for the import and are never stored.\n\n### Agent-specific tips\n- If your agent supports background routines or scheduled tasks, set up a routine to call totalreclaw_remember after conversations to ensure nothing is missed.\n- If your agent supports a credential vault or secret store, the user's TOTALRECLAW_RECOVERY_PHRASE should be stored there instead of as a plaintext environment variable.\n- TotalReclaw memories are fully portable -- they work across OpenClaw, IronClaw, Claude Desktop, Cursor, NanoClaw, and any MCP-compatible agent.\n\n### End of Conversation\nWhen a substantive conversation is ending (the user says goodbye, the topic is resolved,\nor the conversation naturally concludes), call totalreclaw_debrief with the key takeaways.\n\nFocus on what individual memory storage missed:\n- What was the conversation about overall?\n- What was decided or resolved?\n- What approaches were tried and what was the outcome?\n- What's left unfinished?\n\nDo NOT debrief casual conversations (greetings, simple Q&A, small talk).\nMax 5 items, each 1-3 sentences, type \"summary\" or \"context\", importance 7-8.\n";
|
|
3
|
-
export declare const REMEMBER_TOOL_DESCRIPTION = "Store
|
|
4
|
-
export declare const RECALL_TOOL_DESCRIPTION = "Search
|
|
5
|
-
export declare const FORGET_TOOL_DESCRIPTION = "
|
|
6
|
-
export declare const EXPORT_TOOL_DESCRIPTION = "Export
|
|
7
|
-
export declare const STATUS_TOOL_DESCRIPTION = "Check
|
|
8
|
-
export declare const UPGRADE_TOOL_DESCRIPTION = "
|
|
9
|
-
export declare const MIGRATE_TOOL_DESCRIPTION = "
|
|
10
|
-
export declare const IMPORT_FROM_TOOL_DESCRIPTION = "Import
|
|
11
|
-
export declare const IMPORT_TOOL_DESCRIPTION = "
|
|
12
|
-
export declare const SUPPORT_TOOL_DESCRIPTION = "
|
|
13
|
-
export declare const ACCOUNT_TOOL_DESCRIPTION = "
|
|
1
|
+
export declare const SERVER_INSTRUCTIONS = "\nYou have access to TotalReclaw, a persistent encrypted memory system. You SHOULD use these tools PROACTIVELY -- do not wait for the user to say \"remember this\" or \"recall that.\"\n\n## CRITICAL SAFETY: Recovery Phrase\nTotalReclaw uses a 12-word BIP-39 recovery phrase as the user's identity. If a user tries to import a phrase they already use for a CRYPTO WALLET, you MUST warn them: \"Do NOT use a recovery phrase from an existing crypto wallet. TotalReclaw should have its own dedicated phrase to keep your funds safe.\" Always generate a fresh phrase for new users.\n\n## Setup Flow\nIf any TotalReclaw tool returns a \"not_configured\" error, the user needs to set up TotalReclaw first. Use the totalreclaw_setup tool:\n1. Ask the user: \"Do you have an existing TotalReclaw recovery phrase you'd like to restore, or should I generate a new one?\"\n2. If new: call totalreclaw_setup with action=\"generate\". Display the recovery phrase prominently and warn them to save it securely.\n3. If existing: ask for their 12-word recovery phrase, then call totalreclaw_setup with action=\"import\" and recovery_phrase=\"their phrase\".\nAfter setup completes, all TotalReclaw tools work immediately \u2014 no restart needed.\n\n## CRITICAL: Automatic Memory Behaviors\n\n### At Conversation Start\nALWAYS call totalreclaw_recall at the beginning of EVERY new conversation with a brief summary of the user's first message as the query. This loads relevant context from past conversations. Present recalled memories naturally as context -- do not announce \"I found these memories\" or list them explicitly unless the user asks.\n\n### Proactive Memory Storage (IMPORTANT)\nYou should call totalreclaw_remember WITHOUT being asked whenever the user shares:\n- Personal preferences (\"I prefer...\", \"I like...\", \"I hate...\")\n- Personal information (name, location, occupation, family details)\n- Decisions or goals (\"I decided to...\", \"I want to...\", \"I chose X because Y\")\n- Corrections to previous information (\"Actually, I'm vegan now\", \"We moved to Berlin\")\n- Important events or dates (\"My birthday is...\", \"I started a new job at...\")\n- Technical preferences (programming language, tools, frameworks, workflows)\n- Project context (what they're working on, deadlines, team details)\n- Opinions and values that shape future interactions\n\nThe user should NOT have to tell you to remember things. If information would be valuable in a future conversation, store it automatically. Think of yourself as a thoughtful assistant who naturally takes notes on important details.\n\nDo NOT store:\n- Temporary/transient context (weather today, a one-time task)\n- Generic knowledge unrelated to the user\n- Sensitive credentials (passwords, API keys, tokens)\n\n### Memory Recall\nCall totalreclaw_recall proactively when:\n- Starting any new conversation (query based on the user's first message)\n- The user asks about something that might relate to past conversations\n- You need context about the user's background, projects, or preferences\n- The user says \"remember when...\", \"what did I say about...\", \"do you know my...\"\n\n### Memory Hygiene\n- Before storing a new fact, check recalled memories to avoid duplicates\n- When the user corrects information, store the correction (the system handles deduplication)\n- Use importance 7-9 for core identity/preferences, 4-6 for moderate facts, 1-3 for minor details\n- Extract atomic facts: \"User prefers dark mode\" not \"User said they prefer dark mode and also use VS Code\"\n\n### Billing & Quota\nThe free tier offers unlimited memories and reads, but memories are stored on a test network and may be reset. Pro stores memories permanently on-chain. Do NOT guess or hardcode pricing \u2014 use totalreclaw_status to check exact usage and current pricing. For pricing details, refer users to https://totalreclaw.xyz/pricing\n\nWhen a totalreclaw_remember call fails with \"quota_exceeded\":\n1. Inform the user they've hit a usage limit\n2. Offer to check their usage with totalreclaw_status\n3. If they want to upgrade, use totalreclaw_upgrade to get a checkout link \u2014 upgrading is done right here through the agent\nDo NOT repeatedly attempt to store memories after a quota error.\n\nNote: Billing status is cached locally for up to 2 hours. After upgrading to Pro, the new tier may take up to 2 hours to take effect. If the user reports that Pro features are not active after upgrading, suggest restarting their agent to force a billing cache refresh.\n\n### Importing memories from other tools\nIf the user mentions migrating from Mem0, MCP Memory Server, MemoClaw, or any other AI memory tool, offer to use totalreclaw_import_from. Start with dry_run=true to preview, then confirm before importing.\nAPI keys provided by the user are used only for the import and are never stored.\n\n### Agent-specific tips\n- If your agent supports background routines or scheduled tasks, set up a routine to call totalreclaw_remember after conversations to ensure nothing is missed.\n- If your agent supports a credential vault or secret store, the user's TOTALRECLAW_RECOVERY_PHRASE should be stored there instead of as a plaintext environment variable.\n- TotalReclaw memories are fully portable -- they work across OpenClaw, IronClaw, Claude Desktop, Cursor, NanoClaw, and any MCP-compatible agent.\n\n### User-controlled memory edits (v1)\nIn addition to remember + forget, three tools let the user correct stored memories without\nwiping the vault. Use these when the user says something like:\n- \"pin that\" / \"never forget this\" \u2192 totalreclaw_pin (preserves a fact across auto-resolution)\n- \"that was actually a directive, not a preference\" \u2192 totalreclaw_retype\n- \"that was work context\" / \"file that under personal\" \u2192 totalreclaw_set_scope\n\nAll three operate by supersession: they create a new claim with the override and link it\nback to the original via superseded_by. The original stays in the vault as a tombstone so\nhistory is inspectable. All three are idempotent (no-op if the target already matches).\n\n### End of Conversation\nWhen a substantive conversation is ending (the user says goodbye, the topic is resolved,\nor the conversation naturally concludes), call totalreclaw_debrief with the key takeaways.\n\nFocus on what individual memory storage missed:\n- What was the conversation about overall?\n- What was decided or resolved?\n- What approaches were tried and what was the outcome?\n- What's left unfinished?\n\nDo NOT debrief casual conversations (greetings, simple Q&A, small talk).\nMax 5 items, each 1-3 sentences, type \"summary\" or \"context\", importance 7-8.\n";
|
|
2
|
+
export declare const SYSTEM_PROMPT_FRAGMENT = "\nYou have access to TotalReclaw, a persistent encrypted memory system. You SHOULD use these tools PROACTIVELY -- do not wait for the user to say \"remember this\" or \"recall that.\"\n\n## CRITICAL SAFETY: Recovery Phrase\nTotalReclaw uses a 12-word BIP-39 recovery phrase as the user's identity. If a user tries to import a phrase they already use for a CRYPTO WALLET, you MUST warn them: \"Do NOT use a recovery phrase from an existing crypto wallet. TotalReclaw should have its own dedicated phrase to keep your funds safe.\" Always generate a fresh phrase for new users.\n\n## Setup Flow\nIf any TotalReclaw tool returns a \"not_configured\" error, the user needs to set up TotalReclaw first. Use the totalreclaw_setup tool:\n1. Ask the user: \"Do you have an existing TotalReclaw recovery phrase you'd like to restore, or should I generate a new one?\"\n2. If new: call totalreclaw_setup with action=\"generate\". Display the recovery phrase prominently and warn them to save it securely.\n3. If existing: ask for their 12-word recovery phrase, then call totalreclaw_setup with action=\"import\" and recovery_phrase=\"their phrase\".\nAfter setup completes, all TotalReclaw tools work immediately \u2014 no restart needed.\n\n## CRITICAL: Automatic Memory Behaviors\n\n### At Conversation Start\nALWAYS call totalreclaw_recall at the beginning of EVERY new conversation with a brief summary of the user's first message as the query. This loads relevant context from past conversations. Present recalled memories naturally as context -- do not announce \"I found these memories\" or list them explicitly unless the user asks.\n\n### Proactive Memory Storage (IMPORTANT)\nYou should call totalreclaw_remember WITHOUT being asked whenever the user shares:\n- Personal preferences (\"I prefer...\", \"I like...\", \"I hate...\")\n- Personal information (name, location, occupation, family details)\n- Decisions or goals (\"I decided to...\", \"I want to...\", \"I chose X because Y\")\n- Corrections to previous information (\"Actually, I'm vegan now\", \"We moved to Berlin\")\n- Important events or dates (\"My birthday is...\", \"I started a new job at...\")\n- Technical preferences (programming language, tools, frameworks, workflows)\n- Project context (what they're working on, deadlines, team details)\n- Opinions and values that shape future interactions\n\nThe user should NOT have to tell you to remember things. If information would be valuable in a future conversation, store it automatically. Think of yourself as a thoughtful assistant who naturally takes notes on important details.\n\nDo NOT store:\n- Temporary/transient context (weather today, a one-time task)\n- Generic knowledge unrelated to the user\n- Sensitive credentials (passwords, API keys, tokens)\n\n### Memory Recall\nCall totalreclaw_recall proactively when:\n- Starting any new conversation (query based on the user's first message)\n- The user asks about something that might relate to past conversations\n- You need context about the user's background, projects, or preferences\n- The user says \"remember when...\", \"what did I say about...\", \"do you know my...\"\n\n### Memory Hygiene\n- Before storing a new fact, check recalled memories to avoid duplicates\n- When the user corrects information, store the correction (the system handles deduplication)\n- Use importance 7-9 for core identity/preferences, 4-6 for moderate facts, 1-3 for minor details\n- Extract atomic facts: \"User prefers dark mode\" not \"User said they prefer dark mode and also use VS Code\"\n\n### Billing & Quota\nThe free tier offers unlimited memories and reads, but memories are stored on a test network and may be reset. Pro stores memories permanently on-chain. Do NOT guess or hardcode pricing \u2014 use totalreclaw_status to check exact usage and current pricing. For pricing details, refer users to https://totalreclaw.xyz/pricing\n\nWhen a totalreclaw_remember call fails with \"quota_exceeded\":\n1. Inform the user they've hit a usage limit\n2. Offer to check their usage with totalreclaw_status\n3. If they want to upgrade, use totalreclaw_upgrade to get a checkout link \u2014 upgrading is done right here through the agent\nDo NOT repeatedly attempt to store memories after a quota error.\n\nNote: Billing status is cached locally for up to 2 hours. After upgrading to Pro, the new tier may take up to 2 hours to take effect. If the user reports that Pro features are not active after upgrading, suggest restarting their agent to force a billing cache refresh.\n\n### Importing memories from other tools\nIf the user mentions migrating from Mem0, MCP Memory Server, MemoClaw, or any other AI memory tool, offer to use totalreclaw_import_from. Start with dry_run=true to preview, then confirm before importing.\nAPI keys provided by the user are used only for the import and are never stored.\n\n### Agent-specific tips\n- If your agent supports background routines or scheduled tasks, set up a routine to call totalreclaw_remember after conversations to ensure nothing is missed.\n- If your agent supports a credential vault or secret store, the user's TOTALRECLAW_RECOVERY_PHRASE should be stored there instead of as a plaintext environment variable.\n- TotalReclaw memories are fully portable -- they work across OpenClaw, IronClaw, Claude Desktop, Cursor, NanoClaw, and any MCP-compatible agent.\n\n### User-controlled memory edits (v1)\nIn addition to remember + forget, three tools let the user correct stored memories without\nwiping the vault. Use these when the user says something like:\n- \"pin that\" / \"never forget this\" \u2192 totalreclaw_pin (preserves a fact across auto-resolution)\n- \"that was actually a directive, not a preference\" \u2192 totalreclaw_retype\n- \"that was work context\" / \"file that under personal\" \u2192 totalreclaw_set_scope\n\nAll three operate by supersession: they create a new claim with the override and link it\nback to the original via superseded_by. The original stays in the vault as a tombstone so\nhistory is inspectable. All three are idempotent (no-op if the target already matches).\n\n### End of Conversation\nWhen a substantive conversation is ending (the user says goodbye, the topic is resolved,\nor the conversation naturally concludes), call totalreclaw_debrief with the key takeaways.\n\nFocus on what individual memory storage missed:\n- What was the conversation about overall?\n- What was decided or resolved?\n- What approaches were tried and what was the outcome?\n- What's left unfinished?\n\nDo NOT debrief casual conversations (greetings, simple Q&A, small talk).\nMax 5 items, each 1-3 sentences, type \"summary\" or \"context\", importance 7-8.\n";
|
|
3
|
+
export declare const REMEMBER_TOOL_DESCRIPTION = "Store user info PROACTIVELY \u2014 don't wait for \"remember this\".\nINVOKE WHEN USER SAYS \"I prefer X\", \"I'm X\", \"I chose X because Y\"; reveals identity/location/job/family.\nNOT FOR: chitchat, passwords, generic knowledge.\nExtract ATOMIC. Good: \"User is vegan\". Bad: \"User said they became vegan, prefer organic\".\nPARAMS facts[]: text; importance 1-10 def 5; type claim|preference|directive|commitment|episode|summary; scope work|personal|health|family|creative|finance|misc|unspecified. Dedup auto.";
|
|
4
|
+
export declare const RECALL_TOOL_DESCRIPTION = "Search encrypted vault. Top 8 reranked by provenance+semantic+recency.\nINVOKE WHEN USER SAYS:\n- \"what's my [phone/address/doctor]\"\n- \"remember when I...\" / \"what did I say about...\"\n- \"do you know my...\" / \"my preferences for...\"\n- opens convo on a topic (auto-recall first msg)\nWHEN NOT TO USE: world knowledge, small talk.\nDOES: trapdoor search, decrypt, rerank BM25+cosine+source-provenance.\nPARAMS: query (5-15 words), k (def 8, max 50).\nDon't announce \"I found these memories\" \u2014 just use them.";
|
|
5
|
+
export declare const FORGET_TOOL_DESCRIPTION = "Permanently remove memory.\nINVOKE WHEN USER SAYS:\n- \"forget what I said about X\" / \"delete that fact\"\n- \"that's wrong/outdated \u2014 remove it\"\n- \"I don't want you remembering X\"\n- \"erase that password I pasted\"\nWHEN NOT TO USE:\n- CORRECTING \u2192 totalreclaw_remember (dedup auto)\n- changing mind (\"I prefer tea now\") \u2192 remember new pref\n- no explicit request \u2014 never forget proactively\nDOES: fact_id \u2192 tombstone. query \u2192 recall \u226450, tombstone all.\nPARAMS: fact_id (pref), query (max 50), scope (hint).";
|
|
6
|
+
export declare const EXPORT_TOOL_DESCRIPTION = "Export decrypted vault \u2014 one-click backup.\nINVOKE WHEN USER SAYS:\n- \"show everything you know about me\" / \"what do you have on me?\"\n- \"export / back up / download my memories\"\n- \"take my memory elsewhere\" / \"portable copy\"\n- \"audit what's stored\" / \"what's in my vault?\"\nWHEN NOT TO USE:\n- one thing \u2192 totalreclaw_recall\n- cleanup \u2192 totalreclaw_consolidate/forget\nDOES: decrypt all \u2192 Markdown or JSON. Surfaces v1 type/source/scope/reasoning.\nPARAMS: format, include_metadata.";
|
|
7
|
+
export declare const STATUS_TOOL_DESCRIPTION = "Check tier + usage + quota.\nINVOKE WHEN USER SAYS:\n- \"what tier am I on?\" / \"am I on free or pro?\"\n- \"how many memories have I stored?\" / \"what's my usage?\"\n- \"is my subscription active?\" / \"when does it expire?\"\n- \"am I close to the limit?\"\nDOES: query relay billing endpoint. Returns tier, writes_used/limit, expiry. Refreshes local billing cache. Call before bulk ops.\nWHEN NOT TO USE:\n- billing history/invoices \u2192 dashboard/support\n- wants to upgrade \u2192 totalreclaw_upgrade";
|
|
8
|
+
export declare const UPGRADE_TOOL_DESCRIPTION = "Stripe checkout URL for Pro (unlimited permanent on-chain, Gnosis).\nINVOKE WHEN USER SAYS:\n- \"how do I upgrade?\" / \"I want to go pro\"\n- \"how much does it cost?\" (share pricing from checkout, don't hardcode)\n- after `quota_exceeded` \u2014 offer inline\n- \"unlimited memory?\" / \"make my memories permanent\"\nDOES: calls relay checkout, returns one-time Stripe URL. On success suggest totalreclaw_migrate.\nWHEN NOT TO USE:\n- user already Pro (check totalreclaw_status)\n- unrelated \u2014 don't volunteer upgrades";
|
|
9
|
+
export declare const MIGRATE_TOOL_DESCRIPTION = "Copy memories Base Sepolia \u2192 Gnosis after Pro upgrade. Chain-agnostic encrypted data.\nINVOKE WHEN user just upgraded via totalreclaw_upgrade, asks about testnet\u2192mainnet migration, wants permanent on-chain storage.\nSAFETY: dry-run default, idempotent, testnet never deleted.\nWHEN NOT TO USE: user on Free tier (nothing to migrate).\nPARAMS: confirm (true=execute, omit=preview).\nWORKFLOW: 1) w/o confirm \u2192 share preview. 2) on approval \u2192 confirm=true. 3) report progress.";
|
|
10
|
+
export declare const IMPORT_FROM_TOOL_DESCRIPTION = "Import from Mem0, MCP Memory, ChatGPT, Claude, Gemini, MemoClaw, JSON/CSV.\nINVOKE WHEN USER SAYS:\n- \"migrate memory from [Mem0/ChatGPT/Claude]\"\n- \"import my ChatGPT memories\" / \"here's my Mem0 export\"\n- \"I pasted my Claude memory \u2014 store it\"\nWHEN NOT TO USE: TotalReclaw backup \u2192 totalreclaw_import. Single fact \u2192 totalreclaw_remember.\nDOES: adapter parses+stores (unless dry_run). Fingerprint dedup. Convo sources return chunks for host LLM.\nALWAYS dry_run=true first \u2192 preview \u2192 confirm.";
|
|
11
|
+
export declare const IMPORT_TOOL_DESCRIPTION = "Restore from totalreclaw_export backup (JSON/Markdown).\nINVOKE WHEN USER SAYS:\n- \"restore memories from this backup\" / \"import this JSON\"\n- \"I exported from another TotalReclaw account\"\n- \"here's the Markdown export \u2014 put it back\"\nWHEN NOT TO USE:\n- Mem0/ChatGPT/Claude \u2192 totalreclaw_import_from\n- single fact \u2192 totalreclaw_remember\nDOES: parse JSON/Markdown (auto), store via totalreclaw_remember + fingerprint dedup.\nPARAMS: content (req), format, merge_strategy, validate_only.";
|
|
12
|
+
export declare const SUPPORT_TOOL_DESCRIPTION = "Support contact, docs, troubleshooting.\nINVOKE WHEN USER SAYS:\n- \"how do I get help?\" / \"who do I contact?\"\n- \"memories aren't loading\" / \"getting errors\"\n- \"lost my recovery phrase\" / \"where's the docs?\"\n- \"how do I report a bug?\"\n- asks: slow recall, quota errors, failed imports, missing post-upgrade memories\nDOES: static bundle (pre-filled email, docs URL, issues URL, troubleshooting table). Works unconfigured.\nWHEN NOT TO USE: billing info \u2192 totalreclaw_status. Skip unrelated questions.";
|
|
13
|
+
export declare const ACCOUNT_TOOL_DESCRIPTION = "Account overview: wallet, tier, usage, memories, features, safe recovery hint.\nINVOKE WHEN USER SAYS:\n- \"show my account\" / \"what's my profile?\"\n- \"how many memories?\" / \"my wallet?\"\n- \"right recovery phrase? hint\"\n- \"summary of my setup\"\nDOES: billing+fact count parallel. Returns wallet, tier, writes_used/limit, total_facts, features, FIRST+LAST recovery words (never full).\nWHEN NOT TO USE:\n- only billing \u2192 totalreclaw_status (lighter)\n- FULL recovery phrase \u2192 NEVER; password manager.";
|
|
14
14
|
export declare const PROMPT_DEFINITIONS: {
|
|
15
15
|
name: string;
|
|
16
16
|
title: string;
|
package/dist/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,wjNA4F/B,CAAC;AAGF,eAAO,MAAM,sBAAsB,wjNAAsB,CAAC;AAI1D,eAAO,MAAM,yBAAyB,ugBAIoJ,CAAC;AAE3L,eAAO,MAAM,uBAAuB,ihBASqB,CAAC;AAE1D,eAAO,MAAM,uBAAuB,8iBAWkB,CAAC;AAEvD,eAAO,MAAM,uBAAuB,6gBAUF,CAAC;AAEnC,eAAO,MAAM,uBAAuB,kgBASK,CAAC;AAE1C,eAAO,MAAM,wBAAwB,ohBASE,CAAC;AAExC,eAAO,MAAM,wBAAwB,mfAKwD,CAAC;AAE9F,eAAO,MAAM,4BAA4B,shBAOM,CAAC;AAEhD,eAAO,MAAM,uBAAuB,qgBAS0B,CAAC;AAE/D,eAAO,MAAM,wBAAwB,+gBAQyC,CAAC;AAE/E,eAAO,MAAM,wBAAwB,8gBASa,CAAC;AAInD,eAAO,MAAM,kBAAkB;;;;;;;;;GAqB9B,CAAC;AAEF,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5B,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,CAqClE"}
|
package/dist/prompts.js
CHANGED
|
@@ -74,6 +74,17 @@ API keys provided by the user are used only for the import and are never stored.
|
|
|
74
74
|
- If your agent supports a credential vault or secret store, the user's TOTALRECLAW_RECOVERY_PHRASE should be stored there instead of as a plaintext environment variable.
|
|
75
75
|
- TotalReclaw memories are fully portable -- they work across OpenClaw, IronClaw, Claude Desktop, Cursor, NanoClaw, and any MCP-compatible agent.
|
|
76
76
|
|
|
77
|
+
### User-controlled memory edits (v1)
|
|
78
|
+
In addition to remember + forget, three tools let the user correct stored memories without
|
|
79
|
+
wiping the vault. Use these when the user says something like:
|
|
80
|
+
- "pin that" / "never forget this" → totalreclaw_pin (preserves a fact across auto-resolution)
|
|
81
|
+
- "that was actually a directive, not a preference" → totalreclaw_retype
|
|
82
|
+
- "that was work context" / "file that under personal" → totalreclaw_set_scope
|
|
83
|
+
|
|
84
|
+
All three operate by supersession: they create a new claim with the override and link it
|
|
85
|
+
back to the original via superseded_by. The original stays in the vault as a tombstone so
|
|
86
|
+
history is inspectable. All three are idempotent (no-op if the target already matches).
|
|
87
|
+
|
|
77
88
|
### End of Conversation
|
|
78
89
|
When a substantive conversation is ending (the user says goodbye, the topic is resolved,
|
|
79
90
|
or the conversation naturally concludes), call totalreclaw_debrief with the key takeaways.
|
|
@@ -90,185 +101,107 @@ Max 5 items, each 1-3 sentences, type "summary" or "context", importance 7-8.
|
|
|
90
101
|
// Keep backward-compat export name (some callers may still reference it)
|
|
91
102
|
exports.SYSTEM_PROMPT_FRAGMENT = exports.SERVER_INSTRUCTIONS;
|
|
92
103
|
// ── Layer 2: Enhanced Tool Descriptions ──────────────────────────────────────
|
|
93
|
-
exports.REMEMBER_TOOL_DESCRIPTION = `Store
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
GraphQL results", "stop the gateway before rm -rf the state dir").
|
|
115
|
-
|
|
116
|
-
The vault handles deduplication automatically. If a similar fact exists, it will be updated rather than duplicated.`;
|
|
117
|
-
exports.RECALL_TOOL_DESCRIPTION = `Search your memory for relevant context. Returns the top 8 most relevant memories (not all — this is a targeted search, not a full dump).
|
|
118
|
-
|
|
119
|
-
Call this proactively when:
|
|
120
|
-
- The user's message suggests they've told you something before ("remember when I said...", "what's my...")
|
|
121
|
-
- The conversation topic likely relates to previously stored information
|
|
122
|
-
- The user asks about their preferences, history, or past decisions
|
|
123
|
-
- The user references something from a previous conversation
|
|
124
|
-
- You need context about the user's background, projects, or work style
|
|
125
|
-
- The user's question could be answered or enriched by stored memories
|
|
126
|
-
|
|
127
|
-
Parameters:
|
|
128
|
-
- query: Natural language search (required). Keep it concise -- 5-15 words work best.
|
|
129
|
-
- k: Number of results (default 8, max 50). Use 3-5 for quick lookups, 8-12 for broad context.
|
|
130
|
-
|
|
131
|
-
Present recalled memories naturally as context. Do not announce "I found these memories" unless the user asks.`;
|
|
132
|
-
exports.FORGET_TOOL_DESCRIPTION = `Delete a specific memory from your vault.
|
|
133
|
-
|
|
134
|
-
WHEN TO USE:
|
|
135
|
-
- User explicitly asks to forget something
|
|
136
|
-
- User says information is outdated or incorrect
|
|
137
|
-
- User requests to remove sensitive information
|
|
138
|
-
|
|
104
|
+
exports.REMEMBER_TOOL_DESCRIPTION = `Store user info PROACTIVELY — don't wait for "remember this".
|
|
105
|
+
INVOKE WHEN USER SAYS "I prefer X", "I'm X", "I chose X because Y"; reveals identity/location/job/family.
|
|
106
|
+
NOT FOR: chitchat, passwords, generic knowledge.
|
|
107
|
+
Extract ATOMIC. Good: "User is vegan". Bad: "User said they became vegan, prefer organic".
|
|
108
|
+
PARAMS facts[]: text; importance 1-10 def 5; type claim|preference|directive|commitment|episode|summary; scope work|personal|health|family|creative|finance|misc|unspecified. Dedup auto.`;
|
|
109
|
+
exports.RECALL_TOOL_DESCRIPTION = `Search encrypted vault. Top 8 reranked by provenance+semantic+recency.
|
|
110
|
+
INVOKE WHEN USER SAYS:
|
|
111
|
+
- "what's my [phone/address/doctor]"
|
|
112
|
+
- "remember when I..." / "what did I say about..."
|
|
113
|
+
- "do you know my..." / "my preferences for..."
|
|
114
|
+
- opens convo on a topic (auto-recall first msg)
|
|
115
|
+
WHEN NOT TO USE: world knowledge, small talk.
|
|
116
|
+
DOES: trapdoor search, decrypt, rerank BM25+cosine+source-provenance.
|
|
117
|
+
PARAMS: query (5-15 words), k (def 8, max 50).
|
|
118
|
+
Don't announce "I found these memories" — just use them.`;
|
|
119
|
+
exports.FORGET_TOOL_DESCRIPTION = `Permanently remove memory.
|
|
120
|
+
INVOKE WHEN USER SAYS:
|
|
121
|
+
- "forget what I said about X" / "delete that fact"
|
|
122
|
+
- "that's wrong/outdated — remove it"
|
|
123
|
+
- "I don't want you remembering X"
|
|
124
|
+
- "erase that password I pasted"
|
|
139
125
|
WHEN NOT TO USE:
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
-
|
|
149
|
-
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
-
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
-
|
|
193
|
-
-
|
|
194
|
-
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
exports.
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
-
|
|
213
|
-
-
|
|
214
|
-
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
-
|
|
218
|
-
-
|
|
219
|
-
|
|
220
|
-
Security: API keys are used in-memory only for this import and are never stored.
|
|
221
|
-
Idempotent: Running the same import twice will not create duplicates (content fingerprint dedup).
|
|
222
|
-
|
|
223
|
-
Use dry_run=true to preview what would be imported without storing anything.`;
|
|
224
|
-
exports.IMPORT_TOOL_DESCRIPTION = `Import memories from an exported backup.
|
|
225
|
-
|
|
226
|
-
WHEN TO USE:
|
|
227
|
-
- User wants to restore memories from backup
|
|
228
|
-
- User wants to transfer memories from another TotalReclaw instance
|
|
229
|
-
- User has a JSON or Markdown export they want to import
|
|
230
|
-
|
|
231
|
-
MERGE STRATEGIES:
|
|
232
|
-
- skip_existing: Skip facts that already exist (default)
|
|
233
|
-
- overwrite: Replace existing facts with imported ones
|
|
234
|
-
- merge: Use LLM-assisted conflict resolution
|
|
235
|
-
|
|
236
|
-
EXAMPLES:
|
|
237
|
-
- User: "Import memories from this backup file"
|
|
238
|
-
-> Call: totalreclaw_import({ content: "...", format: "json" })
|
|
239
|
-
|
|
240
|
-
PARAMETERS:
|
|
241
|
-
- content: The exported content (JSON or Markdown string)
|
|
242
|
-
- format: Format of content "markdown" or "json" (auto-detected if not specified)
|
|
243
|
-
- merge_strategy: How to handle conflicts (default: skip_existing)
|
|
244
|
-
- validate_only: Parse and validate without importing (dry-run)`;
|
|
245
|
-
exports.SUPPORT_TOOL_DESCRIPTION = `Get TotalReclaw support information and troubleshooting help.
|
|
246
|
-
|
|
247
|
-
Returns:
|
|
248
|
-
- Contact email (pre-filled with your wallet address)
|
|
249
|
-
- Documentation and issue tracker links
|
|
250
|
-
- Troubleshooting guide for common issues (lost phrase, slow recall, quota, import)
|
|
251
|
-
|
|
252
|
-
Use this when:
|
|
253
|
-
- User asks for help or how to contact support
|
|
254
|
-
- User encounters an issue and needs troubleshooting steps
|
|
255
|
-
- User asks about documentation or where to report bugs
|
|
256
|
-
|
|
257
|
-
Works even when TotalReclaw is not yet configured.`;
|
|
258
|
-
exports.ACCOUNT_TOOL_DESCRIPTION = `View your TotalReclaw account details at a glance.
|
|
259
|
-
|
|
260
|
-
Shows:
|
|
261
|
-
- Wallet address and subscription tier
|
|
262
|
-
- Write usage (used / limit / remaining)
|
|
263
|
-
- Total facts stored in your vault
|
|
264
|
-
- Feature flags enabled for your tier
|
|
265
|
-
- Recovery phrase hint (first and last word only)
|
|
266
|
-
|
|
267
|
-
Use this when:
|
|
268
|
-
- User asks about their account or profile
|
|
269
|
-
- User wants a comprehensive overview of their TotalReclaw setup
|
|
270
|
-
- User asks "what's my wallet" or "how many memories do I have"
|
|
271
|
-
- User wants to verify their recovery phrase (hint only, never the full phrase)`;
|
|
126
|
+
- CORRECTING → totalreclaw_remember (dedup auto)
|
|
127
|
+
- changing mind ("I prefer tea now") → remember new pref
|
|
128
|
+
- no explicit request — never forget proactively
|
|
129
|
+
DOES: fact_id → tombstone. query → recall ≤50, tombstone all.
|
|
130
|
+
PARAMS: fact_id (pref), query (max 50), scope (hint).`;
|
|
131
|
+
exports.EXPORT_TOOL_DESCRIPTION = `Export decrypted vault — one-click backup.
|
|
132
|
+
INVOKE WHEN USER SAYS:
|
|
133
|
+
- "show everything you know about me" / "what do you have on me?"
|
|
134
|
+
- "export / back up / download my memories"
|
|
135
|
+
- "take my memory elsewhere" / "portable copy"
|
|
136
|
+
- "audit what's stored" / "what's in my vault?"
|
|
137
|
+
WHEN NOT TO USE:
|
|
138
|
+
- one thing → totalreclaw_recall
|
|
139
|
+
- cleanup → totalreclaw_consolidate/forget
|
|
140
|
+
DOES: decrypt all → Markdown or JSON. Surfaces v1 type/source/scope/reasoning.
|
|
141
|
+
PARAMS: format, include_metadata.`;
|
|
142
|
+
exports.STATUS_TOOL_DESCRIPTION = `Check tier + usage + quota.
|
|
143
|
+
INVOKE WHEN USER SAYS:
|
|
144
|
+
- "what tier am I on?" / "am I on free or pro?"
|
|
145
|
+
- "how many memories have I stored?" / "what's my usage?"
|
|
146
|
+
- "is my subscription active?" / "when does it expire?"
|
|
147
|
+
- "am I close to the limit?"
|
|
148
|
+
DOES: query relay billing endpoint. Returns tier, writes_used/limit, expiry. Refreshes local billing cache. Call before bulk ops.
|
|
149
|
+
WHEN NOT TO USE:
|
|
150
|
+
- billing history/invoices → dashboard/support
|
|
151
|
+
- wants to upgrade → totalreclaw_upgrade`;
|
|
152
|
+
exports.UPGRADE_TOOL_DESCRIPTION = `Stripe checkout URL for Pro (unlimited permanent on-chain, Gnosis).
|
|
153
|
+
INVOKE WHEN USER SAYS:
|
|
154
|
+
- "how do I upgrade?" / "I want to go pro"
|
|
155
|
+
- "how much does it cost?" (share pricing from checkout, don't hardcode)
|
|
156
|
+
- after \`quota_exceeded\` — offer inline
|
|
157
|
+
- "unlimited memory?" / "make my memories permanent"
|
|
158
|
+
DOES: calls relay checkout, returns one-time Stripe URL. On success suggest totalreclaw_migrate.
|
|
159
|
+
WHEN NOT TO USE:
|
|
160
|
+
- user already Pro (check totalreclaw_status)
|
|
161
|
+
- unrelated — don't volunteer upgrades`;
|
|
162
|
+
exports.MIGRATE_TOOL_DESCRIPTION = `Copy memories Base Sepolia → Gnosis after Pro upgrade. Chain-agnostic encrypted data.
|
|
163
|
+
INVOKE WHEN user just upgraded via totalreclaw_upgrade, asks about testnet→mainnet migration, wants permanent on-chain storage.
|
|
164
|
+
SAFETY: dry-run default, idempotent, testnet never deleted.
|
|
165
|
+
WHEN NOT TO USE: user on Free tier (nothing to migrate).
|
|
166
|
+
PARAMS: confirm (true=execute, omit=preview).
|
|
167
|
+
WORKFLOW: 1) w/o confirm → share preview. 2) on approval → confirm=true. 3) report progress.`;
|
|
168
|
+
exports.IMPORT_FROM_TOOL_DESCRIPTION = `Import from Mem0, MCP Memory, ChatGPT, Claude, Gemini, MemoClaw, JSON/CSV.
|
|
169
|
+
INVOKE WHEN USER SAYS:
|
|
170
|
+
- "migrate memory from [Mem0/ChatGPT/Claude]"
|
|
171
|
+
- "import my ChatGPT memories" / "here's my Mem0 export"
|
|
172
|
+
- "I pasted my Claude memory — store it"
|
|
173
|
+
WHEN NOT TO USE: TotalReclaw backup → totalreclaw_import. Single fact → totalreclaw_remember.
|
|
174
|
+
DOES: adapter parses+stores (unless dry_run). Fingerprint dedup. Convo sources return chunks for host LLM.
|
|
175
|
+
ALWAYS dry_run=true first → preview → confirm.`;
|
|
176
|
+
exports.IMPORT_TOOL_DESCRIPTION = `Restore from totalreclaw_export backup (JSON/Markdown).
|
|
177
|
+
INVOKE WHEN USER SAYS:
|
|
178
|
+
- "restore memories from this backup" / "import this JSON"
|
|
179
|
+
- "I exported from another TotalReclaw account"
|
|
180
|
+
- "here's the Markdown export — put it back"
|
|
181
|
+
WHEN NOT TO USE:
|
|
182
|
+
- Mem0/ChatGPT/Claude → totalreclaw_import_from
|
|
183
|
+
- single fact → totalreclaw_remember
|
|
184
|
+
DOES: parse JSON/Markdown (auto), store via totalreclaw_remember + fingerprint dedup.
|
|
185
|
+
PARAMS: content (req), format, merge_strategy, validate_only.`;
|
|
186
|
+
exports.SUPPORT_TOOL_DESCRIPTION = `Support contact, docs, troubleshooting.
|
|
187
|
+
INVOKE WHEN USER SAYS:
|
|
188
|
+
- "how do I get help?" / "who do I contact?"
|
|
189
|
+
- "memories aren't loading" / "getting errors"
|
|
190
|
+
- "lost my recovery phrase" / "where's the docs?"
|
|
191
|
+
- "how do I report a bug?"
|
|
192
|
+
- asks: slow recall, quota errors, failed imports, missing post-upgrade memories
|
|
193
|
+
DOES: static bundle (pre-filled email, docs URL, issues URL, troubleshooting table). Works unconfigured.
|
|
194
|
+
WHEN NOT TO USE: billing info → totalreclaw_status. Skip unrelated questions.`;
|
|
195
|
+
exports.ACCOUNT_TOOL_DESCRIPTION = `Account overview: wallet, tier, usage, memories, features, safe recovery hint.
|
|
196
|
+
INVOKE WHEN USER SAYS:
|
|
197
|
+
- "show my account" / "what's my profile?"
|
|
198
|
+
- "how many memories?" / "my wallet?"
|
|
199
|
+
- "right recovery phrase? hint"
|
|
200
|
+
- "summary of my setup"
|
|
201
|
+
DOES: billing+fact count parallel. Returns wallet, tier, writes_used/limit, total_facts, features, FIRST+LAST recovery words (never full).
|
|
202
|
+
WHEN NOT TO USE:
|
|
203
|
+
- only billing → totalreclaw_status (lighter)
|
|
204
|
+
- FULL recovery phrase → NEVER; password manager.`;
|
|
272
205
|
// ── Layer 5: Prompt Fallback Templates ───────────────────────────────────────
|
|
273
206
|
exports.PROMPT_DEFINITIONS = [
|
|
274
207
|
{
|
package/dist/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":";AAAA,iFAAiF;AACjF,iFAAiF;AACjF,gFAAgF;;;
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":";AAAA,iFAAiF;AACjF,iFAAiF;AACjF,gFAAgF;;;AA8OhF,8CAwCC;AApRY,QAAA,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC;YAC9C,OAAO;gBACL;oBACE,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE;wBACP,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,4CAA4C,KAAK,gDAAgD;qBACxG;iBACF;aACF,CAAC;QACJ,CAAC;QAED,KAAK,kBAAkB;YACrB,OAAO;gBACL;oBACE,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE;wBACP,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,uOAAuO;qBAC9O;iBACF;aACF,CAAC;QAEJ,KAAK,0BAA0B;YAC7B,OAAO;gBACL;oBACE,IAAI,EAAE,WAAW;oBACjB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAAmB,EAAE;iBACrD;aACF,CAAC;QAEJ;YACE,MAAM,IAAI,KAAK,CAAC,mBAAmB,UAAU,EAAE,CAAC,CAAC;IACrD,CAAC;AACH,CAAC"}
|
package/dist/subgraph/store.d.ts
CHANGED
|
@@ -125,11 +125,14 @@ export declare function isSubgraphMode(override?: boolean): boolean;
|
|
|
125
125
|
* Get subgraph configuration from environment variables, with optional
|
|
126
126
|
* overrides for constructor injection from MCP server state.
|
|
127
127
|
*
|
|
128
|
-
* After the
|
|
128
|
+
* After the v1 env var cleanup, clients only need:
|
|
129
129
|
* - TOTALRECLAW_RECOVERY_PHRASE -- BIP-39 mnemonic
|
|
130
130
|
* - TOTALRECLAW_SERVER_URL -- relay server URL (default: https://api.totalreclaw.xyz)
|
|
131
131
|
* - TOTALRECLAW_SELF_HOSTED -- set "true" for self-hosted HTTP mode (default: managed service)
|
|
132
|
-
*
|
|
132
|
+
*
|
|
133
|
+
* Chain ID is no longer user-configurable — auto-detected from billing tier
|
|
134
|
+
* (free = Base Sepolia, Pro = Gnosis mainnet). Callers inject the resolved
|
|
135
|
+
* chain ID via the `overrides` argument from `initSubgraphState`.
|
|
133
136
|
*
|
|
134
137
|
* Removed from client-side config (now server-side only):
|
|
135
138
|
* - PIML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MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAsFtF;AAMD;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAqB/C;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,gBAAgB,EAAE,MAAM,EAAE,EAC1B,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAOtE;AAMD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAG1D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAe/F"}
|
package/dist/subgraph/store.js
CHANGED
|
@@ -395,11 +395,14 @@ function isSubgraphMode(override) {
|
|
|
395
395
|
* Get subgraph configuration from environment variables, with optional
|
|
396
396
|
* overrides for constructor injection from MCP server state.
|
|
397
397
|
*
|
|
398
|
-
* After the
|
|
398
|
+
* After the v1 env var cleanup, clients only need:
|
|
399
399
|
* - TOTALRECLAW_RECOVERY_PHRASE -- BIP-39 mnemonic
|
|
400
400
|
* - TOTALRECLAW_SERVER_URL -- relay server URL (default: https://api.totalreclaw.xyz)
|
|
401
401
|
* - TOTALRECLAW_SELF_HOSTED -- set "true" for self-hosted HTTP mode (default: managed service)
|
|
402
|
-
*
|
|
402
|
+
*
|
|
403
|
+
* Chain ID is no longer user-configurable — auto-detected from billing tier
|
|
404
|
+
* (free = Base Sepolia, Pro = Gnosis mainnet). Callers inject the resolved
|
|
405
|
+
* chain ID via the `overrides` argument from `initSubgraphState`.
|
|
403
406
|
*
|
|
404
407
|
* Removed from client-side config (now server-side only):
|
|
405
408
|
* - PIMLICO_API_KEY
|
|
@@ -413,7 +416,7 @@ function getSubgraphConfig(overrides) {
|
|
|
413
416
|
relayUrl: process.env.TOTALRECLAW_SERVER_URL || 'https://api.totalreclaw.xyz',
|
|
414
417
|
mnemonic: process.env.TOTALRECLAW_RECOVERY_PHRASE || '',
|
|
415
418
|
cachePath: process.env.TOTALRECLAW_CACHE_PATH || `${process.env.HOME}/.totalreclaw/cache.enc`,
|
|
416
|
-
chainId:
|
|
419
|
+
chainId: 84532,
|
|
417
420
|
dataEdgeAddress: process.env.TOTALRECLAW_DATA_EDGE_ADDRESS || DEFAULT_DATA_EDGE_ADDRESS,
|
|
418
421
|
entryPointAddress: process.env.TOTALRECLAW_ENTRYPOINT_ADDRESS || DEFAULT_ENTRYPOINT_ADDRESS,
|
|
419
422
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/subgraph/store.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AA2DH,gDA2DC;AAGD,oCASC;AAOD,wCAWC;AAGD,gDAEC;AAmBD,8CAmGC;AAWD,wDAyFC;AAWD,kCAEC;AASD,0CAwBC;AAMD,oDAUC;AAcD,wCAGC;AAmBD,8CAeC;AAleD,+BAAwG;AACxG,kDAA8C;AAC9C,kEAA+D;AAC/D,4CAAkD;AAClD,wCAA2D;AAC3D,mDAA0D;AAC1D,sDAA+D;AAC/D,4DAAqE;AAErE,8EAA8E;AAC9E,QAAQ;AACR,8EAA8E;AAE9E,kEAAkE;AAClE,MAAM,yBAAyB,GAAG,4CAA4C,CAAC;AAE/E,uEAAuE;AACvE,MAAM,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