{"_id":"@agent-ui-kit/code","_rev":"4-7083cbf91b5eaafc875ff420571c054c","name":"@agent-ui-kit/code","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.3":{"name":"@agent-ui-kit/code","version":"0.0.3","license":"MIT","_id":"@agent-ui-kit/code@0.0.3","maintainers":[{"name":"kimgish","email":"kim.granlund@gmail.com"}],"homepage":"https://github.com/kimgranlund/agent-ui#readme","bugs":{"url":"https://github.com/kimgranlund/agent-ui/issues"},"dist":{"shasum":"5340d32a85f974c7144902f2832515453be50216","tarball":"https://registry.npmjs.org/@agent-ui-kit/code/-/code-0.0.3.tgz","fileCount":48,"integrity":"sha512-sNVC4t835PedmTZyZaz4ZyLStMAO/OTaxdDylZ5MHmLiII0M7BDP5hCawbD0qDwQchD8NnBDFAVX2Jt057bGjQ==","signatures":[{"sig":"MEYCIQCJYy58+9kSEG3jaLElKrHRmMnbIzLLr8kywvueZnNRdQIhAMURru55Ic4/MQmAteT2nTe3aWCOJJi9IijgFl+oxj02","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":153851},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./editor":{"types":"./dist/editor/index.d.ts","default":"./dist/editor/index.js"},"./markdown":{"types":"./dist/markdown/index.d.ts","default":"./dist/markdown/index.js"},"./highlight":{"types":"./dist/highlight/index.d.ts","default":"./dist/highlight/index.js"},"./editor.css":"./dist/editor/editor.css","./markdown.css":"./dist/markdown/markdown.css","./highlight.css":"./dist/highlight/highlight.css"},"gitHead":"e0d88476fd1700cd6ae4c8c4ff2de34a435279c8","_npmUser":{"name":"kimgish","email":"kim.granlund@gmail.com"},"repository":{"url":"git+https://github.com/kimgranlund/agent-ui.git","type":"git","directory":"packages/agent-ui/code"},"_npmVersion":"11.16.0","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@codemirror/view":"^6.38.0","@lezer/highlight":"^1.2.1","@codemirror/state":"^6.5.2","@agent-ui-kit/shared":"^0.0.3","@codemirror/commands":"^6.8.1","@codemirror/language":"^6.11.0","@agent-ui-kit/components":"^0.0.3"},"_hasShrinkwrap":false,"optionalDependencies":{"@codemirror/lang-markdown":"^6.3.2"},"_npmOperationalInternal":{"tmp":"tmp/code_0.0.3_1784488734405_0.012844336428658787","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@agent-ui-kit/code","version":"0.0.4","keywords":["agent-ui","web-components","custom-elements","design-system","syntax-highlighting","markdown","code-editor","codemirror"],"license":"MIT","_id":"@agent-ui-kit/code@0.0.4","maintainers":[{"name":"kimgish","email":"kim.granlund@gmail.com"}],"homepage":"https://github.com/kimgranlund/agent-ui#readme","bugs":{"url":"https://github.com/kimgranlund/agent-ui/issues"},"dist":{"shasum":"9788e45dce2e13b1b7af83dc66f53c4916fa47b3","tarball":"https://registry.npmjs.org/@agent-ui-kit/code/-/code-0.0.4.tgz","fileCount":50,"integrity":"sha512-VIXvh5FvYjNdluzkdSZdz8vFmJlAuf0jG3XONCTTeoTTtrJeX7Y1Ng1i8Ng5+8J5npD1JYIebcbuNLrKd8hXsg==","signatures":[{"sig":"MEQCIEvD+AA7eujRtjRRXBV8x4jIRh3v2CgKoUf7GCJd0GH9AiAe5ShhyxfFS3ZP7T9VvPWtGdaU9bzdG84A36F+0bK7QQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":157825},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./editor":{"types":"./dist/editor/index.d.ts","default":"./dist/editor/index.js"},"./markdown":{"types":"./dist/markdown/index.d.ts","default":"./dist/markdown/index.js"},"./highlight":{"types":"./dist/highlight/index.d.ts","default":"./dist/highlight/index.js"},"./editor.css":"./dist/editor/editor.css","./markdown.css":"./dist/markdown/markdown.css","./highlight.css":"./dist/highlight/highlight.css"},"gitHead":"b591692d7d9708d4e82712652c15f33278ac7bbc","_npmUser":{"name":"kimgish","email":"kim.granlund@gmail.com"},"repository":{"url":"git+https://github.com/kimgranlund/agent-ui.git","type":"git","directory":"packages/agent-ui/code"},"_npmVersion":"11.16.0","description":"The code + prose family for agent-ui: a zero-dependency highlighter core, seven hand-rolled tokenizers, a sanitized markdown renderer, and an editable-first source editor (the editor pack lazy-loads CodeMirror 6 per mount — no CodeMirror in your bundle ot","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@codemirror/view":"^6.38.0","@lezer/highlight":"^1.2.1","@codemirror/state":"^6.5.2","@agent-ui-kit/shared":"^0.0.4","@codemirror/commands":"^6.8.1","@codemirror/language":"^6.11.0","@agent-ui-kit/components":"^0.0.4"},"_hasShrinkwrap":false,"optionalDependencies":{"@codemirror/lang-markdown":"^6.3.2"},"_npmOperationalInternal":{"tmp":"tmp/code_0.0.4_1784490219911_0.3722054470639693","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@agent-ui-kit/code","version":"0.0.5","keywords":["agent-ui","web-components","custom-elements","design-system","syntax-highlighting","markdown","code-editor","codemirror"],"license":"MIT","_id":"@agent-ui-kit/code@0.0.5","maintainers":[{"name":"kimgish","email":"kim.granlund@gmail.com"}],"homepage":"https://github.com/kimgranlund/agent-ui#readme","bugs":{"url":"https://github.com/kimgranlund/agent-ui/issues"},"dist":{"shasum":"0c39e01a3cda763115fb3f7f3946fc6c4c952f0e","tarball":"https://registry.npmjs.org/@agent-ui-kit/code/-/code-0.0.5.tgz","fileCount":50,"integrity":"sha512-Nqr0w1GHszMJPDJltH3AKYwplyCC9nzHfZh2veVCWgmv2j8qqmtQuftrk4hx15UZQYP63ZU6YlZez1sX7KSCZQ==","signatures":[{"sig":"MEUCIQDYOjrypiKpt0ulMFNaN7im7YBIjS8bwZbylZp8E+VCDgIgKDgmYCUUWCA3VhUtVtavPWRLD8aQwKniCgMjou5fUjw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":158387},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./editor":{"types":"./dist/editor/index.d.ts","default":"./dist/editor/index.js"},"./markdown":{"types":"./dist/markdown/index.d.ts","default":"./dist/markdown/index.js"},"./highlight":{"types":"./dist/highlight/index.d.ts","default":"./dist/highlight/index.js"},"./editor.css":"./dist/editor/editor.css","./markdown.css":"./dist/markdown/markdown.css","./highlight.css":"./dist/highlight/highlight.css"},"gitHead":"00fb1141077846c047c6c11294ce0c5f675d1912","_npmUser":{"name":"kimgish","email":"kim.granlund@gmail.com"},"repository":{"url":"git+https://github.com/kimgranlund/agent-ui.git","type":"git","directory":"packages/agent-ui/code"},"_npmVersion":"11.16.0","description":"The code + prose family for agent-ui: a zero-dependency highlighter core, seven hand-rolled tokenizers, a sanitized markdown renderer, and an editable-first source editor (the editor pack lazy-loads CodeMirror 6 per mount — no CodeMirror in your bundle ot","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@codemirror/view":"^6.38.0","@lezer/highlight":"^1.2.1","@codemirror/state":"^6.5.2","@agent-ui-kit/shared":"^0.0.5","@codemirror/commands":"^6.8.1","@codemirror/language":"^6.11.0","@agent-ui-kit/components":"^0.0.5"},"_hasShrinkwrap":false,"optionalDependencies":{"@codemirror/lang-markdown":"^6.3.2"},"_npmOperationalInternal":{"tmp":"tmp/code_0.0.5_1784490727506_0.7284647246984621","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@agent-ui-kit/code","version":"0.1.0","description":"The code + prose family for agent-ui: a zero-dependency highlighter core, seven hand-rolled tokenizers, a sanitized markdown renderer, and an editable-first source editor (the editor pack lazy-loads CodeMirror 6 per mount — no CodeMirror in your bundle ot","keywords":["agent-ui","web-components","custom-elements","design-system","syntax-highlighting","markdown","code-editor","codemirror"],"license":"MIT","homepage":"https://github.com/kimgranlund/agent-ui#readme","bugs":{"url":"https://github.com/kimgranlund/agent-ui/issues"},"type":"module","repository":{"type":"git","url":"git+https://github.com/kimgranlund/agent-ui.git","directory":"packages/agent-ui/code"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./highlight":{"types":"./dist/highlight/index.d.ts","default":"./dist/highlight/index.js"},"./highlight.css":"./dist/highlight/highlight.css","./markdown":{"types":"./dist/markdown/index.d.ts","default":"./dist/markdown/index.js"},"./markdown.css":"./dist/markdown/markdown.css","./editor":{"types":"./dist/editor/index.d.ts","default":"./dist/editor/index.js"},"./editor.css":"./dist/editor/editor.css"},"dependencies":{"@agent-ui-kit/components":"^0.1.0","@agent-ui-kit/shared":"^0.1.0","@codemirror/state":"^6.5.2","@codemirror/view":"^6.38.0","@codemirror/commands":"^6.8.1","@codemirror/language":"^6.11.0","@lezer/highlight":"^1.2.1"},"optionalDependencies":{"@codemirror/lang-markdown":"^6.3.2"},"gitHead":"9a62617f8a6ac15240d47ea58a1ef59ffccc1cf6","_id":"@agent-ui-kit/code@0.1.0","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-UTrPJeuxaiVFblgKv1PGC3KYJPrDjGHhnRKbP5sZQ6OQNtlGL9SNfIM628CoD3ylfPgxcoispj6yRFV4LtyDtQ==","shasum":"350d27b00ec2743860432aa42ef4ca4414460e89","tarball":"https://registry.npmjs.org/@agent-ui-kit/code/-/code-0.1.0.tgz","fileCount":50,"unpackedSize":167503,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDT8/iYmfG0SoPAanw+ZW7eTWA8EOy6kDLzXWgwDLrebAiBXeAtkP/IWIZMLfG4PiEVwrIDHZrX6PfQEQd80XexbOg=="}]},"_npmUser":{"name":"kimgish","email":"kim.granlund@gmail.com"},"directories":{},"maintainers":[{"name":"kimgish","email":"kim.granlund@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/code_0.1.0_1787791059264_0.4167614043143435"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-19T19:18:54.261Z","modified":"2026-08-27T00:37:39.558Z","0.0.3":"2026-07-19T19:18:54.531Z","0.0.4":"2026-07-19T19:43:40.041Z","0.0.5":"2026-07-19T19:52:07.649Z","0.1.0":"2026-08-27T00:37:39.400Z"},"bugs":{"url":"https://github.com/kimgranlund/agent-ui/issues"},"license":"MIT","homepage":"https://github.com/kimgranlund/agent-ui#readme","keywords":["agent-ui","web-components","custom-elements","design-system","syntax-highlighting","markdown","code-editor","codemirror"],"repository":{"type":"git","url":"git+https://github.com/kimgranlund/agent-ui.git","directory":"packages/agent-ui/code"},"description":"The code + prose family for agent-ui: a zero-dependency highlighter core, seven hand-rolled tokenizers, a sanitized markdown renderer, and an editable-first source editor (the editor pack lazy-loads CodeMirror 6 per mount — no CodeMirror in your bundle ot","maintainers":[{"name":"kimgish","email":"kim.granlund@gmail.com"}],"readme":"# @agent-ui-kit/code\n\nThe code + prose family for agent-ui: a zero-dependency highlighter core, seven hand-rolled tokenizers, a sanitized markdown renderer, and an editable-first source editor (the editor pack lazy-loads CodeMirror 6 per mount — no CodeMirror in your bundle otherwise).\n\n## Install\n\n```sh\nnpm install @agent-ui-kit/code\n```\n\n## Usage\n\n```js\nimport '@agent-ui-kit/code/highlight'      // seven tokenizers, self-registering\nimport '@agent-ui-kit/code/highlight.css'\n\nimport '@agent-ui-kit/code/markdown'       // <ui-markdown> — renders the agent-common markdown subset\nimport '@agent-ui-kit/code/markdown.css'   // into real components, sanitized by construction\n\nimport '@agent-ui-kit/code/editor'         // <ui-code-editor> — editable-first; CodeMirror 6 lazy-loads\nimport '@agent-ui-kit/code/editor.css'     // per mount (source + richtext live-preview modes)\n```\n\nThe default entries are dependency-free; only `./editor` pulls the CodeMirror runtime, declared here and loaded lazily.\n\n## CDN (no build step)\n\n```html\n<link rel=\"stylesheet\" href=\"https://esm.sh/@agent-ui-kit/code@0.1.0/highlight.css\">\n<link rel=\"stylesheet\" href=\"https://esm.sh/@agent-ui-kit/code@0.1.0/markdown.css\">\n<link rel=\"stylesheet\" href=\"https://esm.sh/@agent-ui-kit/code@0.1.0/editor.css\">\n<script type=\"module\">\n  import 'https://esm.sh/@agent-ui-kit/code@0.1.0/highlight'\n  import 'https://esm.sh/@agent-ui-kit/code@0.1.0/markdown'\n  import 'https://esm.sh/@agent-ui-kit/code@0.1.0/editor' // CodeMirror still lazy-loads per mount, resolved by the CDN\n</script>\n```\n\n## The @agent-ui-kit family\n\n| Package | What it is |\n|---|---|\n| [`@agent-ui-kit/components`](https://www.npmjs.com/package/@agent-ui-kit/components) | The component framework: signals kernel, 50+ light-DOM `ui-*` custom elements |\n| [`@agent-ui-kit/shared`](https://www.npmjs.com/package/@agent-ui-kit/shared) | Design tokens + foundation stylesheets (color, dimensions, themes) |\n| [`@agent-ui-kit/icons`](https://www.npmjs.com/package/@agent-ui-kit/icons) | Swappable icon-pack adapter (+ a Phosphor pack) |\n| [`@agent-ui-kit/a2ui`](https://www.npmjs.com/package/@agent-ui-kit/a2ui) | A2UI protocol renderer, validator, and component catalog |\n| [`@agent-ui-kit/a2a`](https://www.npmjs.com/package/@agent-ui-kit/a2a) | A2A (Agent2Agent) protocol wire types + validation (spec v0.3.0) |\n| [`@agent-ui-kit/router`](https://www.npmjs.com/package/@agent-ui-kit/router) | Memory-first SPA router with opt-in URL reflection |\n| [`@agent-ui-kit/code`](https://www.npmjs.com/package/@agent-ui-kit/code) | Code + prose: highlighter registry, markdown renderer, source editor |\n| [`@agent-ui-kit/app`](https://www.npmjs.com/package/@agent-ui-kit/app) | App-surface compositions: shells, conversation, agent admin |\n\nMIT © Kim Granlund · [Docs](https://ui.nonoun.io) · [Source](https://github.com/kimgranlund/agent-ui)\n","readmeFilename":"README.md"}