From 2abb34bc78cae80cb4f6dc5947ce8bf50fa24251 Mon Sep 17 00:00:00 2001 From: glifocat Date: Fri, 15 May 2026 18:25:46 +0200 Subject: [PATCH] docs(skills): apply v1-name fix to gmail/gcal tools The gmail/gcal Phase 4 restart blocks and uninstall one-liners still hardcoded `com.nanoclaw` / `restart nanoclaw`, so on a v2 install they would fail with "no such service" or kick the wrong unit. Phase 4 restart now uses the canonical `source setup/lib/install-slug.sh` + `$(launchd_label)` / `$(systemd_unit)` pattern with the standalone `Run from your NanoClaw project root:` lead-in. Uninstall one-liners switch to the inline-subshell form `"$(. setup/lib/install-slug.sh && systemd_unit)"`. (Folds in #2489's v2-alignment changes to the same two files; the deferral noted in the original PR body is no longer needed now that #2489 has merged.) --- .claude/skills/add-gcal-tool/SKILL.md | 12 +++++++++--- .claude/skills/add-gmail-tool/SKILL.md | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.claude/skills/add-gcal-tool/SKILL.md b/.claude/skills/add-gcal-tool/SKILL.md index 04cebff2b..077f39f7d 100644 --- a/.claude/skills/add-gcal-tool/SKILL.md +++ b/.claude/skills/add-gcal-tool/SKILL.md @@ -175,8 +175,14 @@ Run from your NanoClaw project root (where `data/v2.db` lives). The `$[#]` place ```bash pnpm run build -systemctl --user restart nanoclaw # Linux -# launchctl kickstart -k gui/$(id -u)/com.nanoclaw # macOS +``` + +Run from your NanoClaw project root: + +```bash +source setup/lib/install-slug.sh +launchctl kickstart -k gui/$(id -u)/$(launchd_label) # macOS +systemctl --user restart $(systemd_unit) # Linux ``` Kill any existing agent containers so they respawn with the new mcpServers config: @@ -220,7 +226,7 @@ Common signals: WHERE agent_group_id = '';" ``` 3. Remove `CALENDAR_MCP_VERSION` ARG and the calendar package from the Dockerfile install block. -4. `pnpm run build && ./container/build.sh && systemctl --user restart nanoclaw`. +4. `pnpm run build && ./container/build.sh && systemctl --user restart "$(. setup/lib/install-slug.sh && systemd_unit)"`. 5. Optional: `rm -rf ~/.calendar-mcp/` and `onecli apps disconnect --provider google-calendar`. No `TOOL_ALLOWLIST` removal step — Phase 2 no longer edits it. diff --git a/.claude/skills/add-gmail-tool/SKILL.md b/.claude/skills/add-gmail-tool/SKILL.md index 3111cfcf9..e1d4899dc 100644 --- a/.claude/skills/add-gmail-tool/SKILL.md +++ b/.claude/skills/add-gmail-tool/SKILL.md @@ -192,8 +192,14 @@ Run from your NanoClaw project root (where `data/v2.db` lives). The `$[#]` place ```bash pnpm run build -systemctl --user restart nanoclaw # Linux -# launchctl kickstart -k gui/$(id -u)/com.nanoclaw # macOS +``` + +Run from your NanoClaw project root: + +```bash +source setup/lib/install-slug.sh +launchctl kickstart -k gui/$(id -u)/$(launchd_label) # macOS +systemctl --user restart $(systemd_unit) # Linux ``` ## Phase 5: Verify @@ -235,7 +241,7 @@ Common signals: WHERE agent_group_id = '';" ``` 3. Remove the `GMAIL_MCP_VERSION` ARG and the `pnpm install -g @gongrzhe/server-gmail-autoauth-mcp` block from `container/Dockerfile`. -4. `pnpm run build && ./container/build.sh && systemctl --user restart nanoclaw`. +4. `pnpm run build && ./container/build.sh && systemctl --user restart "$(. setup/lib/install-slug.sh && systemd_unit)"`. 5. (Optional) `rm -rf ~/.gmail-mcp/` if no other host-side tool needs the stubs. 6. (Optional) Disconnect Gmail in OneCLI: `onecli apps disconnect --provider gmail`.