@botmem/cli 0.31.7 → 0.31.9
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.
|
@@ -33,6 +33,22 @@ Array paths can be written with or without \`[]\`: \`items.id\` and \`items[].id
|
|
|
33
33
|
|
|
34
34
|
## Setup
|
|
35
35
|
|
|
36
|
+
When this skill is invoked and the \`botmem\` command is unavailable, install it automatically before using Botmem:
|
|
37
|
+
|
|
38
|
+
\`\`\`bash
|
|
39
|
+
command -v botmem >/dev/null 2>&1 || npm install -g @botmem/cli
|
|
40
|
+
\`\`\`
|
|
41
|
+
|
|
42
|
+
After install, help the user onboard instead of assuming configuration exists:
|
|
43
|
+
|
|
44
|
+
1. Run \`botmem config show\` and \`botmem version --toon-fields buildTime,gitHash,uptime\` to check local config and API reachability.
|
|
45
|
+
2. If no API host is configured, ask whether they use Botmem Cloud (\`api.botmem.xyz\`) or a self-hosted URL, then run \`botmem config set-host <host>\`.
|
|
46
|
+
3. If \`botmem status --toon-fields memory.total,connectors,queues\` fails with auth errors, ask the user for an API key or have them run \`botmem login\`; for agent use, prefer \`botmem config set-key bm_sk_...\`.
|
|
47
|
+
4. If encrypted memories are locked or unreadable, ask the user for their recovery key and run \`botmem config set-recovery-key <base64-key>\`.
|
|
48
|
+
5. Verify with \`botmem status --toon-fields memory.total,connectors,queues\` before answering memory questions.
|
|
49
|
+
|
|
50
|
+
Do not invent credentials, recovery keys, hosts, contacts, or memory contents. Ask for missing secrets directly, and avoid printing them back after configuration.
|
|
51
|
+
|
|
36
52
|
\`\`\`bash
|
|
37
53
|
# Install globally
|
|
38
54
|
npm install -g @botmem/cli
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-skill.js","sourceRoot":"","sources":["../../src/commands/install-skill.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"install-skill.js","sourceRoot":"","sources":["../../src/commands/install-skill.ts"],"names":[],"mappings":";;AA0SA,0CAqCC;A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