{"_id":"@act-spec/plugin-eleventy","name":"@act-spec/plugin-eleventy","dist-tags":{"rc":"0.2.0-rc.1","latest":"0.2.0-rc.1"},"versions":{"0.2.0-rc.1":{"name":"@act-spec/plugin-eleventy","version":"0.2.0-rc.1","description":"PRD-408 Eleventy plugin for the ACT (Agent Content Tree) v0.1 reference implementation. Wraps the PRD-400 generator pipeline against Eleventy 2.0+ via the addPlugin API and the eleventy.after build hook.","license":"Apache-2.0","author":{"name":"Jeremy Forsythe","email":"jeremy@act-spec.org"},"homepage":"https://act-spec.org","bugs":{"url":"https://github.com/act-spec/act/issues"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/act-spec/act.git","directory":"packages/plugin-eleventy"},"peerDependencies":{"@11ty/eleventy":">=2.0.0 <4.0.0"},"peerDependenciesMeta":{"@11ty/eleventy":{"optional":true}},"dependencies":{"@act-spec/adapter-framework":"0.2.0-rc.1","@act-spec/core":"0.2.0-rc.1","@act-spec/validator":"0.2.0-rc.1","@act-spec/adapter-markdown":"0.2.0-rc.1","@act-spec/generator-core":"0.2.0-rc.1"},"devDependencies":{"@vitest/coverage-v8":"^2.1.9","tsx":"^4.19.2","typescript":"^5.6.3","vitest":"^2.1.4"},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","lint":"eslint src","typecheck":"tsc -p tsconfig.json --noEmit","conformance":"tsx conformance.ts"},"_id":"@act-spec/plugin-eleventy@0.2.0-rc.1","_integrity":"sha512-DFRsiZrvknBCZKlP0PRsNFQGL2DsxMESMhXXtQooD3GtkLfeRk6RSk0neFqbpgxl5iDdhkp7rGoFstnnLTFFKg==","_resolved":"/private/var/folders/yp/y7frhcvj70jgr6b8g633lghr0000gn/T/5f9304a1b4a95bea3392b0222902ab79/act-spec-plugin-eleventy-0.2.0-rc.1.tgz","_from":"file:act-spec-plugin-eleventy-0.2.0-rc.1.tgz","_nodeVersion":"22.19.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-DFRsiZrvknBCZKlP0PRsNFQGL2DsxMESMhXXtQooD3GtkLfeRk6RSk0neFqbpgxl5iDdhkp7rGoFstnnLTFFKg==","shasum":"05c437b9e31b6ce34c57b2552118d0b84216b99b","tarball":"https://registry.npmjs.org/@act-spec/plugin-eleventy/-/plugin-eleventy-0.2.0-rc.1.tgz","fileCount":20,"unpackedSize":194962,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG1bGVcxLSNPu6IOUeql9sHHaaFqiY/DYMLYEnEXuENIAiAML47bBXJALV5LKZhd2sCOfVV5EAWdwhdEXt7TPeQmKg=="}]},"_npmUser":{"name":"jdforsythe","email":"jdforsythe@gmail.com"},"directories":{},"maintainers":[{"name":"jdforsythe","email":"jdforsythe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-eleventy_0.2.0-rc.1_1777915321930_0.8370274028903912"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-04T17:22:01.821Z","0.2.0-rc.1":"2026-05-04T17:22:02.110Z","modified":"2026-05-04T17:22:02.288Z"},"maintainers":[{"name":"jdforsythe","email":"jdforsythe@gmail.com"}],"description":"PRD-408 Eleventy plugin for the ACT (Agent Content Tree) v0.1 reference implementation. Wraps the PRD-400 generator pipeline against Eleventy 2.0+ via the addPlugin API and the eleventy.after build hook.","homepage":"https://act-spec.org","repository":{"type":"git","url":"git+https://github.com/act-spec/act.git","directory":"packages/plugin-eleventy"},"author":{"name":"Jeremy Forsythe","email":"jeremy@act-spec.org"},"bugs":{"url":"https://github.com/act-spec/act/issues"},"license":"Apache-2.0","readme":"# @act-spec/plugin-eleventy\n\nEleventy plugin for ACT (Agent Content Tree). Wraps the ACT generator\npipeline (`@act-spec/generator-core`) against Eleventy 2.0+ via the\n`addPlugin` API and the `eleventy.after` build hook. Component bindings\nare explicitly out of scope for Eleventy — for component-driven workflows\nuse `@act-spec/plugin-astro`, the Next.js generator, or `@act-spec/plugin-nuxt`. The\nmarkdown adapter is consumed unchanged from `@act-spec/adapter-markdown`.\n\nA `parseMode` opt-in lets developers select `'eleventy-templates'` to walk\nEleventy's template registry as the source of truth, in addition to the\ndefault `'markdown-fs'` mode that delegates to the markdown adapter.\n\n## Status\n\nACT v0.1 internal hand-test candidate. Public release lands at v0.2.\n\n## Install\n\nUnpublished in v0.1. Consume via the workspace:\n\n```jsonc\n// package.json\n{ \"dependencies\": { \"@act-spec/plugin-eleventy\": \"workspace:*\" } }\n```\n\n## Usage\n\n```js\n// .eleventy.js / eleventy.config.mjs\nimport actPlugin from '@act-spec/plugin-eleventy';\n\nexport default function (eleventyConfig) {\n  eleventyConfig.addPlugin(actPlugin, {\n    baseUrl: 'https://example.com',\n    manifest: { site: { name: 'Example' } },\n    urlTemplates: {\n      indexUrl: '/act/index.json',\n      nodeUrlTemplate: '/act/n/{id}.json',\n    },\n    parseMode: 'markdown-fs',     // or 'eleventy-templates'\n    conformanceTarget: 'core',\n  });\n  return { dir: { input: '.', output: '_site' } };\n}\n```\n\nThe plugin runs after the Eleventy build completes (`eleventy.after`),\nemits the ACT file set into the configured output directory, and writes\na `BuildReport` adjacent to the index for downstream gating.\n\nProgrammatic API (test harnesses, custom orchestration):\n\n```ts\nimport { runActBuild, resolveConfig } from '@act-spec/plugin-eleventy';\n\nconst resolved = resolveConfig(opts, eleventyConfigLike);\nconst report = await runActBuild(resolved, payload);\n```\n\n## Conformance / what's tested\n\nEvery public API has a citing test in the package's test suite, including\nthe Eleventy version gate (`enforceEleventyVersion`), the watch re-entry\nguard, the permalink-filtered warnings path, the `parseMode` selector,\nand the `bindings` rejection. The conformance gate runs\n`@act-spec/validator` against the emitted file set.\n\n```bash\npnpm -F @act-spec/plugin-eleventy conformance\n```\n\n## Configuration (selected)\n\n| Option | Default | Notes |\n| --- | --- | --- |\n| `baseUrl` | (required) | Site base URL used in the manifest. |\n| `urlTemplates` | (required) | `indexUrl` + `nodeUrlTemplate`. |\n| `manifest` | (required) | Manifest seed (site name, etc.). |\n| `parseMode` | `'markdown-fs'` | `'eleventy-templates'` walks Eleventy's registry. |\n| `conformanceTarget` | `'core'` | `'core' \\| 'standard' \\| 'strict'`. |\n| `outputDir` | Eleventy's `output` dir | Override per `resolveOutputDir`. |\n| `bindings` | (rejected) | Eleventy is template-driven; no component bindings. |\n\n## Peer dependencies\n\n| Peer | Range |\n| --- | --- |\n| `@11ty/eleventy` | `>=2.0.0 <4.0.0` |\n\nOptional from npm's perspective; the plugin is a no-op without Eleventy.\n\n## Links\n\n- Generator core: [`@act-spec/generator-core`](../generator-core)\n- Markdown adapter: [`@act-spec/adapter-markdown`](../adapter-markdown)\n- Repository: <https://github.com/act-spec/act>\n","readmeFilename":"README.md","_rev":"1-118baff352404a6dfa36cd6acb2efac1"}