{"_id":"@alintever/nac","_rev":"4-45466ffcc2ffabe8a61e33f7d8f88541","name":"@alintever/nac","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@alintever/nac","version":"0.1.0","keywords":["novel","writing","opencode","chinese-webnovel","ai-writing","narrative","nac"],"author":{"name":"NaC Contributors"},"license":"MIT","_id":"@alintever/nac@0.1.0","maintainers":[{"name":"alint","email":"1987873736@qq.com"}],"homepage":"https://github.com/alin-ever/nac#readme","bugs":{"url":"https://github.com/alin-ever/nac/issues"},"bin":{"nac":"bin/nac.js"},"dist":{"shasum":"d6652b702c1ae9b3ad745d88c19e17d412edc925","tarball":"https://registry.npmjs.org/@alintever/nac/-/nac-0.1.0.tgz","fileCount":66,"integrity":"sha512-1SiSfneaT9gfxLoKoMNdyyZz+JGyLO+tMMitxPmBMPm5SrJEcoIva9B3lODOK4fIlFdAz721Vov58PzT2rbmLQ==","signatures":[{"sig":"MEYCIQDp+x10cFZrXax1z3kjGkGimWfZQoBux7P8DfaIlVfBCAIhAPso2NJomxhLouKlDEzzsK46iGOfmw12DgPsrGrhc8cL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":372865},"type":"module","gitHead":"f1ec159dc8d7f1b7da623537e009f09bf2836a38","scripts":{"build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"alint","email":"1987873736@qq.com"},"repository":{"url":"git+https://github.com/alin-ever/nac.git","type":"git"},"_npmVersion":"11.13.0","description":"Narrative-as-Code — AI novel writing framework for OpenCode","directories":{},"_nodeVersion":"24.17.0","dependencies":{"commander":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nac_0.1.0_1782317731204_0.6307654830126967","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated."},"0.1.1":{"name":"@alintever/nac","version":"0.1.1","keywords":["novel","writing","opencode","chinese-webnovel","ai-writing","narrative","nac"],"author":{"name":"NaC Contributors"},"license":"MIT","_id":"@alintever/nac@0.1.1","maintainers":[{"name":"alint","email":"1987873736@qq.com"}],"homepage":"https://github.com/alin-ever/nac#readme","bugs":{"url":"https://github.com/alin-ever/nac/issues"},"bin":{"nac":"bin/nac.js"},"dist":{"shasum":"546deb38ecd85d1dec8348fe63749148c76422d5","tarball":"https://registry.npmjs.org/@alintever/nac/-/nac-0.1.1.tgz","fileCount":66,"integrity":"sha512-edVG2uBOwdpuQtaLJKf7dpSKxknJJCt+9FCZlR+Ze4Bq6GFZL28GAF+QEYmTPz9G1EEgf+QIqdsytv3JhM/f6A==","signatures":[{"sig":"MEUCICJWEHIdWKNCpNsWGqGyrstFCLx3dLyyYY+rbqI0RzesAiEAvPAtHrG6vN1jTWbGQIIQmkKIqNMuhDylvW9WUi6+CAI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":372904},"type":"module","gitHead":"2e52bba30df42b9d176115ddeab25865691daa1d","scripts":{"build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"alint","email":"1987873736@qq.com"},"repository":{"url":"git+https://github.com/alin-ever/nac.git","type":"git"},"_npmVersion":"11.13.0","description":"Narrative-as-Code — AI novel writing framework for OpenCode","directories":{},"_nodeVersion":"24.17.0","dependencies":{"commander":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nac_0.1.1_1782317805438_0.49585036413537487","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated."},"0.1.2":{"name":"@alintever/nac","version":"0.1.2","keywords":["novel","writing","opencode","chinese-webnovel","ai-writing","narrative","nac"],"author":{"name":"NaC Contributors"},"license":"MIT","_id":"@alintever/nac@0.1.2","maintainers":[{"name":"alint","email":"1987873736@qq.com"}],"homepage":"https://github.com/alin-ever/nac#readme","bugs":{"url":"https://github.com/alin-ever/nac/issues"},"bin":{"nac":"bin/nac.js"},"dist":{"shasum":"c4f2ea146326b8badcfc8b607d357ec48316ecfd","tarball":"https://registry.npmjs.org/@alintever/nac/-/nac-0.1.2.tgz","fileCount":66,"integrity":"sha512-bLbQaPUEh5X0IDiVIMABGn2Ia+/tvFCQCVtWnkthaq+E0abzDkYTVekH7kvXv9+JlwEEtxrlKn68UkCO8dQ5mg==","signatures":[{"sig":"MEUCIAVR4OfbZINnOcLQ5yrgEWa/0H6/Mh0NI4mkLAG7zlzWAiEAysJua7PLt1elBGJTcE9mHHQ4JCjOE6Cn0Ysu/mO2PMs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":372854},"type":"module","gitHead":"8e3cff0b5584e26e56f49b1b7bf962c8e1611d22","scripts":{"build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"alint","email":"1987873736@qq.com"},"repository":{"url":"git+https://github.com/alin-ever/nac.git","type":"git"},"_npmVersion":"11.13.0","description":"Narrative-as-Code — AI novel writing framework for OpenCode","directories":{},"_nodeVersion":"24.17.0","dependencies":{"commander":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nac_0.1.2_1782319008195_0.16964657327887744","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated."}},"time":{"created":"2026-06-24T16:15:31.054Z","modified":"2026-06-25T12:29:02.721Z","0.1.0":"2026-06-24T16:15:31.340Z","0.1.1":"2026-06-24T16:16:45.657Z","0.1.2":"2026-06-24T16:36:48.363Z"},"bugs":{"url":"https://github.com/alin-ever/nac/issues"},"author":{"name":"NaC Contributors"},"license":"MIT","homepage":"https://github.com/alin-ever/nac#readme","keywords":["novel","writing","opencode","chinese-webnovel","ai-writing","narrative","nac"],"repository":{"url":"git+https://github.com/alin-ever/nac.git","type":"git"},"description":"Narrative-as-Code — AI novel writing framework for OpenCode","maintainers":[{"name":"alint","email":"1987873736@qq.com"}],"readme":"# NaC — Narrative-as-Code\n\nAI novel writing framework for OpenCode. Author writes. AI mirrors.\n\n## Installation\n\n### For Humans\n\n**Let an AI install and configure NaC for you.** The setup involves npm, Python dependencies, OpenCode provider config, and project injection — an AI agent handles all of it correctly.\n\nPaste this into OpenCode, Claude Code, Cursor, or any agent:\n\n```\nInstall and configure NaC (Narrative-as-Code) by following:\nhttps://raw.githubusercontent.com/alint/nac/main/docs/installation.md\n```\n\n### For LLM Agents\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/alint/nac/main/docs/installation.md\n```\n\nThe guide covers: prerequisites, npm install, project initialization, Python MCP dependencies, OpenCode provider setup, parallel subagent configuration, and the full writing workflow.\n\n### Quick start (DIY)\n\n```bash\nnpm install -g @alintever/nac\nnac init ./my-novel\ncd my-novel && opencode web\n# then run /nac:init in the session\n```\n\n## How it works\n\nNaC injects a complete novel-writing framework into your project:\n\n| Layer | What | Count |\n|-------|------|-------|\n| Skills | Writing, outlining, reviewing, init | 4 |\n| Agents | Writer (creative), Reviewer (reasoning), Planner | 3 |\n| MCP | L1 rules check, foreshadow tracker, style learner | 3 |\n| Commands | `/nac:write`, `/nac:init`, `/nac:outline`, `/nac:review` | 4 |\n\n### Writing pipeline\n\n```\nContext Assembler → Draft Generation → L1 ∥ L2×8 ∥ L3 (parallel checks)\n    → Self-Revision (≤3 rounds) → Submit to Author\n```\n\nEvery chapter passes through zero-LLM rule checks, 8 parallel fact-checking agents, and self-revision before the author sees it.\n\n### CLI\n\n```\nnac init [path]     Inject NaC into a directory\nnac status [path]   Show novel stats (title, chapters, foreshadows)\nnac update [path]   Upgrade injected skills to latest nac version\nnac mcp <server>    Start a MCP server (l1 | foreshadows | style)\n```\n\n## License\n\nMIT","readmeFilename":"README.md"}