{"_id":"@ai11y/core","name":"@ai11y/core","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@ai11y/core","version":"0.0.1","type":"module","main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"}},"devDependencies":{"tsdown":"0.18.1","typescript":"5.9.3"},"publishConfig":{"access":"public"},"scripts":{"build":"tsdown","watch":"tsdown --watch"},"_id":"@ai11y/core@0.0.1","description":"Framework-agnostic core. Your app exposes UI via markers (elements with `data-ai-id`, `data-ai-label`, optional `data-ai-intent`). The API is **describe → plan → act**.","_integrity":"sha512-Am1BNB8tXEXM01nCQynGvTNdW3SZeWxVL8kQVkcTc5c8XuHM3oUIqvR1KNqEq4gl0x7ni3pPzvdZ6JDSJw1rlA==","_resolved":"/tmp/dfc2491b87eafad39a5cb3eb158474a6/ai11y-core-0.0.1.tgz","_from":"file:ai11y-core-0.0.1.tgz","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Am1BNB8tXEXM01nCQynGvTNdW3SZeWxVL8kQVkcTc5c8XuHM3oUIqvR1KNqEq4gl0x7ni3pPzvdZ6JDSJw1rlA==","shasum":"2b55fc0e7d62ec6a9c2b327c2c0c584eb8a8b893","tarball":"https://registry.npmjs.org/@ai11y/core/-/core-0.0.1.tgz","fileCount":107,"unpackedSize":172541,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDrfwiuwIKx+j6Y/v27tab6wKmq+FWKze7uObFnsgh8iQIgPkvhGWgrZPUN2jj3vImibS58Mul1WUz7fRoleUtnKeY="}]},"_npmUser":{"name":"m3000","email":"markus@lili16.de"},"directories":{},"maintainers":[{"name":"m3000","email":"markus@lili16.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.0.1_1770846523615_0.04089655183747043"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-11T21:48:43.540Z","0.0.1":"2026-02-11T21:48:43.768Z","modified":"2026-02-11T21:48:44.024Z"},"maintainers":[{"name":"m3000","email":"markus@lili16.de"}],"description":"Framework-agnostic core. Your app exposes UI via markers (elements with `data-ai-id`, `data-ai-label`, optional `data-ai-intent`). The API is **describe → plan → act**.","readme":"# @ai11y/core\n\nFramework-agnostic core. Your app exposes UI via markers (elements with\n`data-ai-id`, `data-ai-label`, optional `data-ai-intent`). The API is **describe\n→ plan → act**.\n\n## API\n\n- **`createClient(options?)`** — Returns\n  `{ describe, act, track, reportError }`. Options:\n  `onNavigate?: (route: string) => void`.\n- **`describe()`** — Returns `Ai11yContext`: markers, route, state, optional\n  error. Scans the DOM for marked elements and which are in view.\n- **`act(instruction)`** — Executes one instruction: click, navigate, highlight,\n  scroll, or fillInput.\n- **`plan(ui, input, config?, messages?)`** — Runs the agent (LLM or rule-based)\n  and returns `Promise<{ reply, instructions }>`.\n\n**JavaScript example:**\n\n```ts\nimport { createClient, plan } from \"@ai11y/core\";\n\nconst client = createClient({\n  onNavigate: (route) => window.history.pushState({}, \"\", route),\n});\n\nconst ui = client.describe();\nconst { reply, instructions } = await plan(ui, \"click the save button\");\nfor (const instruction of instructions ?? []) {\n  client.act(instruction);\n}\n```\n\nTypes (`Ai11yContext`, `Instruction`, `AgentResponse`, etc.) and DOM helpers\n(`clickMarker`, `highlightMarker`, `navigateToRoute`, etc.) are exported from\nthe main entry. See generated docs for full reference.\n","readmeFilename":"README.md","_rev":"1-a51a30abcfae1d0004db217e6d0df77b"}