{"_id":"@alexbloch-ia/legal-data","_rev":"2-d434e2bd7573af9e456f67c551095c7a","name":"@alexbloch-ia/legal-data","dist-tags":{"latest":"1.2.3"},"versions":{"1.2.2":{"name":"@alexbloch-ia/legal-data","version":"1.2.2","keywords":["openclaw-plugin","mcp","legal","regulatory","compliance","gdpr","customs","hs-code","sanctions","ofac","dual-use","wassenaar","kyc","aml","eaeu","gost"],"license":"MIT-0","_id":"@alexbloch-ia/legal-data@1.2.2","maintainers":[{"name":"alexbloch-ia","email":"alex.bloch55@gmail.com"}],"homepage":"https://legaldata-public.cleolabs.co","bugs":{"url":"https://github.com/AlexBloch-IA/legal-data/issues"},"dist":{"shasum":"d6c4a1941f6c341ff04af93c75fe977f519e9262","tarball":"https://registry.npmjs.org/@alexbloch-ia/legal-data/-/legal-data-1.2.2.tgz","fileCount":18,"integrity":"sha512-PuL6I+mAhKJpzUlezZnFRwFc+P7dT8/HRWOuj3Aj2VkT/sE534PZQnEMkzWBXM4bre3lPMfwlKHRH5MkAy0dmA==","signatures":[{"sig":"MEUCIQDoWOKZVD+CA43Nee9GIcSbvq/uozhgXKUhpzdTp6UTNAIgVbbz8q8DrfPfuaCW4nTbbRhaWgV0IntFBigYZALJIdE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37518},"main":"./dist/index.js","type":"module","engines":{"node":">=22.0.0"},"gitHead":"b0b8abaede1c7e74e1f43a449e5f685319fcdf0d","_npmUser":{"name":"alexbloch-ia","email":"alex.bloch55@gmail.com"},"openclaw":{"build":{"openclawVersion":">=2026.3.24-beta.2"},"compat":{"pluginApi":">=2026.3.24-beta.2","minGatewayVersion":">=2026.3.24-beta.2"},"extensions":["./dist/index.js"]},"repository":{"url":"git+https://github.com/AlexBloch-IA/legal-data.git","type":"git"},"_npmVersion":"10.9.8","description":"Legal data plugin for OpenClaw — 66 official sources across 100+ countries.","directories":{},"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/legal-data_1.2.2_1779453812097_0.28187724948007276","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"_id":"@alexbloch-ia/legal-data@1.2.3","bugs":{"url":"https://github.com/AlexBloch-IA/legal-data/issues"},"dist":{"shasum":"bc17022ac279ffa7bd239c748c340f2a5caafb24","tarball":"https://registry.npmjs.org/@alexbloch-ia/legal-data/-/legal-data-1.2.3.tgz","fileCount":18,"integrity":"sha512-JyxcQGISxlijcMiY+jO18GoSrtgBdP8nYaLLua5m5zzjpA6kV3HUxWOZRRlMxRddDvd8rl7tQFL+EvTKS3mxtQ==","signatures":[{"sig":"MEYCIQDJUGHqUfW3m5BIgh3cBMnmLayXI3I1QWf0z16WSRbLoQIhAKkRMAqeyXhkcpXtbqs4nMs4G27pnsQgs6lCx9ex25Ib","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCwbeX8CPmLMLfN5Q+VoNnOie7M7Bgu2bZ+DkRSD+JIygIgIYrICWm577R0HaAcsHh73REAPhGZNF4FmkW+DX4VXM4="}],"unpackedSize":37380},"main":"./dist/index.js","name":"@alexbloch-ia/legal-data","type":"module","engines":{"node":">=22.0.0"},"gitHead":"3762fc41719a2af3483861539ccd08e4a940d39f","license":"MIT-0","version":"1.2.3","_npmUser":{"name":"alexbloch-ia","email":"alex.bloch55@gmail.com"},"homepage":"https://legaldata-public.cleolabs.co","keywords":["openclaw-plugin","mcp","legal","regulatory","compliance","gdpr","customs","hs-code","sanctions","ofac","dual-use","wassenaar","kyc","aml","eaeu","gost","clawhub","ccpa","lgpd","pipl","tn-ved","anti-hallucination"],"openclaw":{"build":{"openclawVersion":">=2026.3.24-beta.2"},"compat":{"pluginApi":">=2026.3.24-beta.2","minGatewayVersion":">=2026.3.24-beta.2"},"extensions":["./dist/index.js"]},"repository":{"url":"git+https://github.com/AlexBloch-IA/legal-data.git","type":"git"},"_npmVersion":"10.9.8","description":"Legal data plugin for OpenClaw — 66 official sources across 100+ countries.","directories":{},"maintainers":[{"name":"alexbloch-ia","email":"alex.bloch55@gmail.com"}],"_nodeVersion":"22.23.2","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/legal-data_1.2.3_1790761291772_0.4904704064467731"}}},"time":{"created":"2026-05-22T12:43:31.920Z","modified":"2026-09-30T09:41:31.979Z","1.2.2":"2026-05-22T12:43:32.248Z","1.2.3":"2026-09-30T09:41:31.852Z"},"bugs":{"url":"https://github.com/AlexBloch-IA/legal-data/issues"},"license":"MIT-0","homepage":"https://legaldata-public.cleolabs.co","keywords":["openclaw-plugin","mcp","legal","regulatory","compliance","gdpr","customs","hs-code","sanctions","ofac","dual-use","wassenaar","kyc","aml","eaeu","gost","clawhub","ccpa","lgpd","pipl","tn-ved","anti-hallucination"],"repository":{"url":"git+https://github.com/AlexBloch-IA/legal-data.git","type":"git"},"description":"Legal data plugin for OpenClaw — 66 official sources across 100+ countries.","maintainers":[{"name":"alexbloch-ia","email":"alex.bloch55@gmail.com"}],"readme":"# Legal Data Plugin for OpenClaw\n\n> **Stop your OpenClaw agent from hallucinating legal citations.** Real regulations from 66 official sources across 100+ countries — GDPR, customs/HS codes, sanctions, dual-use, GOST, EAEU.\n\n[![License: MIT-0](https://img.shields.io/badge/License-MIT--0-yellow.svg)](https://opensource.org/licenses/MIT-0)\n[![ClawHub](https://img.shields.io/badge/ClawHub-@alexbloch--ia%2Flegal--data-blue)](https://clawhub.ai/plugins/@alexbloch-ia/legal-data)\n[![MCP](https://img.shields.io/badge/MCP-19%20tools-green)](https://modelcontextprotocol.io)\n[![Coverage](https://img.shields.io/badge/coverage-66%20sources%20·%20100%2B%20countries-green)](https://legaldata-public.cleolabs.co)\n\n## What it does\n\n- **`/cleo-search \"GDPR Article 17\"`** — Real article text from EUR-Lex, not hallucinated\n- **`/cleo-classify \"stainless steel beam\"`** — HS code with confidence + customs rationale (multilingual)\n- **`/cleo-compliance \"drone with infrared camera\" KZ`** — Full decision pack: tariff + obligations + dual-use + EAEU + lead time\n- **`/cleo-doc <UUID>`** — Full text of any document\n- **`/cleo-changes 30d`** — Regulations that moved in the last 30 days\n- **`/cleo-setup`** — First-run onboarding (3 free lookups, then pay-as-you-go)\n\nPlus **5 SEO-targeted skills** that auto-invoke when your agent detects regulatory questions: `regulatory-research`, `gdpr-data-protection`, `customs-hs-classifier`, `dual-use-export-control`, `sanctions-screening`.\n\n## Install\n\n```bash\nopenclaw plugins install clawhub:@alexbloch-ia/legal-data\n```\n\nThen run setup:\n\n```bash\nopenclaw run /cleo-setup\n```\n\nThis opens [cleolabs.co/signup](https://legaldata-public.cleolabs.co/signup) in your browser. Create an account, copy the `ld_live_...` API key, paste it back.\n\nSet the env var:\n\n```bash\necho 'export CLEO_LEGAL_API_KEY=\"ld_live_...\"' >> ~/.zshrc\nsource ~/.zshrc\nopenclaw mcp restart cleo-legal\n```\n\n## Verify\n\n```bash\nopenclaw run /cleo-search \"GDPR Article 17\"\n```\n\nYou should get real Article 17 text from EUR-Lex.\n\n## Pricing\n\n| Tier | Quota | Price |\n|---|---|---|\n| **Free** | 3 lookups (lifetime) | $0 |\n| **Pro** | 300/min · 1M/mo | (see legaldata-public.cleolabs.co/pricing) |\n| **Enterprise** | 1500/min · 10M/mo | Contact sales |\n\nComposite endpoints (`/cleo-compliance`) consume 5 units per call.\n\n## Coverage\n\n66 official sources, including:\n\n- **EU**: EUR-Lex, EDPB, ECHA, EFSA\n- **France**: Legifrance (PISTE), CNIL\n- **Germany**: BWB, BaFin, BfArM\n- **UK**: legislation.gov.uk, ICO, FCA\n- **US**: eCFR, Federal Register, FDA, OFAC SDN\n- **Spain**: BOE, AEPD\n- **Italy**: Normattiva\n- **Russia / EAEU**: EEC TR CU, GOST R\n- **WIPO Lex** as universal fallback for 100+ countries\n\nFull list: [coverage report](https://legaldata-public.cleolabs.co/docs).\n\n## Examples\n\n- [GDPR audit on user data flows](docs/examples/gdpr-audit.md)\n- [Customs HS classification for a complex product](docs/examples/customs-classify.md)\n- [Composite compliance check for cross-border shipment](docs/examples/compliance-check.md)\n\n## Troubleshooting\n\nSee [docs/troubleshooting.md](docs/troubleshooting.md) — covers the streamable-http header bug workaround (OpenClaw issue #65590, May 2026).\n\n## Compatibility\n\n| Component | Minimum |\n|---|---|\n| OpenClaw runtime | `2026.3.24-beta.2` (verified on `2026.4.x` and `2026.5.x`) |\n| Node (only for `dist/index.js` no-op entry) | `>=22.0.0` |\n| ClawHub CLI | any version that supports `clawhub package publish` |\n\nDeclared in `package.json`:\n\n```json\n\"openclaw\": {\n  \"compat\": { \"pluginApi\": \">=2026.3.24-beta.2\", \"minGatewayVersion\": \">=2026.3.24-beta.2\" },\n  \"build\":  { \"openclawVersion\": \">=2026.3.24-beta.2\" }\n}\n```\n\nIf `openclaw plugins install` fails with a runtime-version mismatch, upgrade OpenClaw (`openclaw --version` to check) before retrying.\n\n## Architecture\n\nThis plugin is a **declarative bundle** wrapping the [Cleo Legal API's MCP server](https://api.legaldata.cleolabs.co/mcp) (Streamable HTTP, Bearer auth, 19 tools). It is **not** a heavy native runtime plugin — the `dist/index.js` entry is a no-op required only by OpenClaw's validator. All value lives in:\n\n- `.mcp.json` — MCP server config (auto-detected by OpenClaw)\n- `commands/*.md` — 6 user-invocable slash commands\n- `skills/*/SKILL.md` — 5 auto-invoked skills\n- `openclaw.plugin.json` + `.claude-plugin/plugin.json` — manifests\n\nThe Cleo Legal API's MCP server handles 66 sources, multi-language search, embeddings, content-change detection, and the WIPO Lex universal fallback for geo-blocked jurisdictions. The plugin merely surfaces it inside OpenClaw with a sensible UX.\n\nFor the backend architecture, see [the main repo](https://github.com/Cleo-Labs-IA/cleo-legal-api).\n\n## License\n\nMIT-0 (ClawHub requirement). Plugin source is fully open; API access requires an account.\n\n## Issues & feedback\n\n[github.com/AlexBloch-IA/legal-data/issues](https://github.com/AlexBloch-IA/legal-data/issues)\n\n## Maintainer setup\n\nCI requires two GitHub secrets (Settings → Secrets → Actions):\n\n- `CLAWHUB_TOKEN`: ClawHub publisher token (obtain via `clawhub login` locally, copy from `~/.clawhub/credentials`)\n- `NPM_TOKEN`: npm automation token with publish rights to `@alexbloch-ia/*`\n\nRelease: `git tag v1.0.x && git push origin v1.0.x`. CI publishes to ClawHub + npm.\n","readmeFilename":"README.md"}