{"_id":"@anchor-app/openclaw-context","name":"@anchor-app/openclaw-context","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anchor-app/openclaw-context","version":"0.1.0","description":"OpenClaw plugin — injects your Anchor tasks, habits, and projects into every AI conversation","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc","dev":"tsc --watch","prepublishOnly":"npm run build"},"keywords":["openclaw","openclaw-plugin","anchor","tasks","productivity","neurodivergent"],"author":{"name":"Kirby Walls"},"license":"MIT","homepage":"https://github.com/kjswalls/v0-anchor","repository":{"type":"git","url":"git+https://github.com/kjswalls/v0-anchor.git","directory":"openclaw-plugin"},"bugs":{"url":"https://github.com/kjswalls/v0-anchor/issues"},"openclaw":{"extensions":["./dist/index.js"]},"dependencies":{"@anchor-app/types":"workspace:*"},"peerDependencies":{"openclaw":">=2026.0.0"},"devDependencies":{"typescript":"^5.4.0","openclaw":"*"},"_id":"@anchor-app/openclaw-context@0.1.0","gitHead":"b1d1dabf470a6d6ed0a9ec560bfd222611e70d10","_nodeVersion":"22.22.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-IjNj+xNTrD6gUCiqEaIQbED53QoptYOkImJ+kWxTtWuzTtQWuaBf0zzK51AQeTgbqTbQ7MFRsCiDqCNDJB9eoA==","shasum":"23c5b829972745986bd618bc1311a68e8e9c03d8","tarball":"https://registry.npmjs.org/@anchor-app/openclaw-context/-/openclaw-context-0.1.0.tgz","fileCount":27,"unpackedSize":39041,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCPD+lAOM+KsSTa/QkspCwlYKppUgpf6TFILpEnhRLslAIgO5Pbve48JlCXZZIewCwepMy31CIKa+M3dd4eWZ5z2po="}]},"_npmUser":{"name":"kjswalls","email":"kjswalls@gmail.com"},"directories":{},"maintainers":[{"name":"kjswalls","email":"kjswalls@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openclaw-context_0.1.0_1774482039199_0.9940325935537453"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-25T23:40:39.147Z","0.1.0":"2026-03-25T23:40:39.346Z","modified":"2026-03-25T23:40:39.549Z"},"maintainers":[{"name":"kjswalls","email":"kjswalls@gmail.com"}],"description":"OpenClaw plugin — injects your Anchor tasks, habits, and projects into every AI conversation","homepage":"https://github.com/kjswalls/v0-anchor","keywords":["openclaw","openclaw-plugin","anchor","tasks","productivity","neurodivergent"],"repository":{"type":"git","url":"git+https://github.com/kjswalls/v0-anchor.git","directory":"openclaw-plugin"},"author":{"name":"Kirby Walls"},"bugs":{"url":"https://github.com/kjswalls/v0-anchor/issues"},"license":"MIT","readme":"# @anchor-app/openclaw-context\n\n> OpenClaw plugin — brings your [Anchor](https://github.com/kjswalls/v0-anchor) tasks, habits, and projects into every AI conversation.\n\nOnce installed, your OpenClaw agent automatically knows what's on your plate — from any channel (Discord, WhatsApp, webchat, wherever). No more copy-pasting your to-do list into chat.\n\n## How it works\n\n- **On startup:** fetches your full Anchor context and caches it locally\n- **On every message:** injects a compact summary if your message is planning-related, or a tiny header otherwise (~20 tokens)\n- **On data change:** Anchor pushes a webhook → cache invalidates instantly (zero polling, always fresh)\n\n## Install\n\n```bash\nopenclaw plugins install @anchor-app/openclaw-context\n```\n\n## Setup\n\n```bash\nopenclaw anchor-context setup\n```\n\nThe wizard will ask for:\n1. Your Anchor URL (e.g. `https://anchor.yourdomain.com`)\n2. Your personal Anchor API key — generate it in **Anchor → Settings → AI Assistant → OpenClaw**\n\nThen restart the gateway:\n\n```bash\nopenclaw gateway restart\n```\n\nThat's it. Your agent now sees your tasks from Discord, webchat, Signal — everywhere.\n\n## What gets injected\n\n**Planning messages** (contains \"task\", \"today\", \"habit\", \"plan\", etc.) get the full summary:\n\n```\n## Today's Tasks\n- Fix login bug [high] (Anchor project) @ 10:00\n- Review PR\n- Write release notes [medium]\n\n## Habits\n- ✅ Morning walk (12 day streak)\n- ⬜ Read 30 min (5 day streak)\n\n## Projects\n- 🪝 Anchor\n- 🎮 Side project\n```\n\n**Everything else** gets a lightweight header (~20 tokens):\n\n```\n[Anchor: 3 tasks today, 1 overdue, 2 habits pending — say \"show my tasks\" for details]\n```\n\n## Configuration\n\nConfig lives in `openclaw.json` under `plugins.entries.anchor-context.config.anchor-context`:\n\n| Key | Required | Description |\n|-----|----------|-------------|\n| `anchorUrl` | ✅ | Base URL of your Anchor deployment |\n| `apiKey` | ✅ | Your personal Anchor API key |\n| `webhookSecret` | Optional | HMAC secret for verifying change event payloads |\n| `cacheTtlMs` | Optional | Max cache age before re-fetch (default: `300000` = 5 min) |\n\nFor push invalidation (real-time cache updates), also set `gateway.publicUrl` in `openclaw.json` to your OpenClaw instance's public URL.\n\n## Requirements\n\n- OpenClaw ≥ 2026.0.0\n- An Anchor account with the OpenClaw API enabled\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-5c5ec6096c0e4a2e547aa44e525811c2"}