{"_id":"@darinrowe/openclaw-memory-bridge","name":"@darinrowe/openclaw-memory-bridge","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@darinrowe/openclaw-memory-bridge","version":"1.0.1","description":"Bridges file-based memory (SESSION-STATE, LESSONS) into agent context","main":"index.ts","type":"module","repository":{"type":"git","url":"git+https://github.com/DarinRowe/openclaw-memory-bridge.git"},"keywords":["openclaw","memory","context","plugin"],"license":"MIT","openclaw":{"extensions":["./index.ts"]},"_id":"@darinrowe/openclaw-memory-bridge@1.0.1","gitHead":"cd3df746156a98244889baf94b2d227d9e058efc","bugs":{"url":"https://github.com/DarinRowe/openclaw-memory-bridge/issues"},"homepage":"https://github.com/DarinRowe/openclaw-memory-bridge#readme","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-UNsDJfgHFGowh2HM90nVKKNU6fBnBxwE1s+Hw/zG6KQkQUc/j1ZjsscDWywtLYQMmxSlEuauwzZHtl2MnWCaDw==","shasum":"6e4691ffcb79ce690dd9116a566fc4793ea7fc42","tarball":"https://registry.npmjs.org/@darinrowe/openclaw-memory-bridge/-/openclaw-memory-bridge-1.0.1.tgz","fileCount":11,"unpackedSize":21959,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAwnqH6T8lCSpGPE0g1RZcSkfD1iOHc8njJNt6c7rIQRAiBLCzcgne3mqLxkkfFXT/limh6dVBCu4jbJiMjZXbYsfw=="}]},"_npmUser":{"name":"baoao","email":"baoao11@gmail.com"},"directories":{},"maintainers":[{"name":"baoao","email":"baoao11@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openclaw-memory-bridge_1.0.1_1773116111415_0.038861458979095875"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-10T04:15:11.334Z","1.0.1":"2026-03-10T04:15:11.577Z","modified":"2026-03-10T04:15:11.834Z"},"maintainers":[{"name":"baoao","email":"baoao11@gmail.com"}],"description":"Bridges file-based memory (SESSION-STATE, LESSONS) into agent context","homepage":"https://github.com/DarinRowe/openclaw-memory-bridge#readme","keywords":["openclaw","memory","context","plugin"],"repository":{"type":"git","url":"git+https://github.com/DarinRowe/openclaw-memory-bridge.git"},"bugs":{"url":"https://github.com/DarinRowe/openclaw-memory-bridge/issues"},"license":"MIT","readme":"# openclaw-memory-bridge\n\nBridges file-based memory into OpenClaw agent context.\n\n## What it does\n\n| Hook | Function |\n|------|----------|\n| `before_prompt_build` | Injects SESSION-STATE.md + high-risk lessons into context |\n| `command:new` | Ensures daily log exists on `/new` |\n| `agent_end` | Appends run summary to daily log |\n\n## Install\n\n### Option 1: npm (recommended for npmjs.com packages)\n\n```bash\nopenclaw plugins install @darinrowe/openclaw-memory-bridge\nopenclaw gateway restart\n```\n\n### Option 2: GitHub Packages\n\n```bash\n# Configure registry\nnpm config set registry https://npm.pkg.github.com\n\n# Install\nopenclaw plugins install @darinrowe/openclaw-memory-bridge\nopenclaw gateway restart\n```\n\n### Option 3: Link locally\n\n```bash\ngit clone https://github.com/DarinRowe/openclaw-memory-bridge\nopenclaw plugins install -l ./openclaw-memory-bridge\nopenclaw gateway restart\n```\n\n## Config (optional)\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"memory-bridge\": {\n        \"config\": {\n          \"injectSessionState\": true,\n          \"injectHighRiskLessons\": true,\n          \"autoDailyLog\": true\n        }\n      }\n    }\n  }\n}\n```\n\n## Bundled Scripts\n\nStandalone CLI tools for memory management:\n\n| Script | Usage |\n|--------|-------|\n| `scripts/add_lesson.py` | `python3 add_lesson.py --category <cat> --severity <level> \"text\"` |\n| `scripts/search_lessons.py` | `python3 search_lessons.py [query] [--category X] [--severity Y]` |\n| `scripts/render_lessons_md.py` | `python3 render_lessons_md.py [--limit N]` |\n| `scripts/update_session_state.py` | `python3 update_session_state.py --focus \"text\" --next \"text\"` |\n| `scripts/daily_log.sh` | `bash daily_log.sh` |\n| `scripts/memory_janitor.py` | `python3 memory_janitor.py [--dry-run]` |\n\nScripts use `$OPENCLAW_WORKSPACE` (default: `~/.openclaw/workspace`).\n\n## File Layout\n\n```\n~/.openclaw/workspace/\n├── MEMORY.md              # Curated long-term (P0/P1/P2 with TTL)\n├── SESSION-STATE.md       # Short-term RAM (focus/next/blockers)\n├── LESSONS.md             # Operational lessons\n└── memory/\n    ├── YYYY-MM-DD.md      # Daily logs\n    └── archive/           # Expired entries\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-59b9050fc8fe2daac9f2c2484034627f"}