From 4f032831267266c82ce1d9c4ec2826d71b9cd98b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 16 Jan 2026 07:07:57 +0000 Subject: [PATCH] docs: add npm 1password publish steps --- AGENTS.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 2e084ffec..64727e1e0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -116,6 +116,14 @@ - launchd PATH is minimal; ensure the app’s launch agent PATH includes standard system paths plus your pnpm bin (typically `$HOME/Library/pnpm`) so `pnpm`/`clawdbot` binaries resolve when invoked via `clawdbot-mac`. - For manual `clawdbot message send` messages that include `!`, use the heredoc pattern noted below to avoid the Bash tool’s escaping. +## NPM + 1Password (publish/verify) +- Use the 1password skill; all `op` commands must run inside a fresh tmux session. +- Sign in: `eval "$(op signin --account my.1password.com)"` (app unlocked + integration on). +- OTP: `op read 'op://Private/Npmjs/one-time password?attribute=otp'`. +- Publish: `npm publish --access public --otp=""` (run from the package dir). +- Verify without local npmrc side effects: `npm view version --userconfig "$(mktemp)"`. +- Kill the tmux session after publish. + ## Exclamation Mark Escaping Workaround The Claude Code Bash tool escapes `!` to `\\!` in command arguments. When using `clawdbot message send` with messages containing exclamation marks, use heredoc syntax: