{"_id":"@asiainfo-spec/asiainfospec","name":"@asiainfo-spec/asiainfospec","dist-tags":{"latest":"1.3.1"},"versions":{"1.3.1":{"name":"@asiainfo-spec/asiainfospec","version":"1.3.1","description":"AI-native system for spec-driven development","keywords":["aispec","specs","cli","ai","development"],"homepage":"https://github.com/AsiaInfo/AISpec","repository":{"type":"git","url":"git+https://github.com/AsiaInfo/AISpec.git"},"license":"MIT","author":{"name":"AISpec Contributors"},"type":"module","publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"bin":{"aispec":"bin/aispec.js"},"engines":{"node":">=20.19.0"},"devDependencies":{"@changesets/changelog-github":"^0.5.2","@changesets/cli":"^2.27.7","@types/node":"^24.2.0","@vitest/ui":"^3.2.4","eslint":"^9.39.2","typescript":"^5.9.3","typescript-eslint":"^8.50.1","vitest":"^3.2.4"},"dependencies":{"@inquirer/core":"^10.2.2","@inquirer/prompts":"^7.8.0","chalk":"^5.5.0","commander":"^14.0.0","fast-glob":"^3.3.3","ora":"^8.2.0","posthog-node":"^5.20.0","yaml":"^2.8.2","zod":"^4.0.17"},"scripts":{"lint":"eslint src/","build":"node build.js","dev":"tsc --watch","dev:cli":"pnpm build && node bin/aispec.js","test":"vitest run","test:watch":"vitest","test:ui":"vitest --ui","test:coverage":"vitest --coverage","test:postinstall":"node scripts/postinstall.js","postinstall":"node scripts/postinstall.js","check:pack-version":"node scripts/pack-version-check.mjs","release":"pnpm run release:ci","release:ci":"pnpm run check:pack-version && pnpm exec changeset publish","changeset":"changeset"},"_id":"@asiainfo-spec/asiainfospec@1.3.1","bugs":{"url":"https://github.com/AsiaInfo/AISpec/issues"},"_integrity":"sha512-9H70tgzkrUdzzhMn8reYY34KdlNnHz99XX5BMTCRrtYOplRUsMNRhbGb1vgZ0d6Qi6Ddd6+ErUJ0GWfG4Amj1Q==","_resolved":"C:\\Users\\AI\\AppData\\Local\\Temp\\926431fa29fb54669c4f13869e8f80a9\\asiainfo-spec-asiainfospec-1.3.1.tgz","_from":"file:asiainfo-spec-asiainfospec-1.3.1.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-9H70tgzkrUdzzhMn8reYY34KdlNnHz99XX5BMTCRrtYOplRUsMNRhbGb1vgZ0d6Qi6Ddd6+ErUJ0GWfG4Amj1Q==","shasum":"434f48792db68bf4c5eb50fd1050a9f2c7410787","tarball":"https://registry.npmjs.org/@asiainfo-spec/asiainfospec/-/asiainfospec-1.3.1.tgz","fileCount":284,"unpackedSize":933185,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF8va8WM4TnoXENFkhXO/+aQ4DVhL1UKrZyfuatJegKxAiAof2wRA0CQWNrjP//qKgPMEmfYKNesVIB9QO1IA04iTQ=="}]},"_npmUser":{"name":"dongqs","email":"dongqiushu@163.com"},"directories":{},"maintainers":[{"name":"dongqs","email":"dongqiushu@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/asiainfospec_1.3.1_1776696249365_0.9289304191876455"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-20T14:44:09.266Z","1.3.1":"2026-04-20T14:44:09.572Z","modified":"2026-04-20T14:44:09.810Z"},"maintainers":[{"name":"dongqs","email":"dongqiushu@163.com"}],"description":"AI-native system for spec-driven development","homepage":"https://github.com/AsiaInfo/AISpec","keywords":["aispec","specs","cli","ai","development"],"repository":{"type":"git","url":"git+https://github.com/AsiaInfo/AISpec.git"},"author":{"name":"AISpec Contributors"},"bugs":{"url":"https://github.com/AsiaInfo/AISpec/issues"},"license":"MIT","readme":"<p align=\"center\">\r\n  <a href=\"https://github.com/AsiaInfo/AISpec\">\r\n    <picture>\r\n      <source srcset=\"assets/aispec_bg.png\">\r\n      <img src=\"assets/aispec_bg.png\" alt=\"AISpec logo\">\r\n    </picture>\r\n  </a>\r\n</p>\r\n\r\n<p align=\"center\">\r\n  <a href=\"https://github.com/AsiaInfo/AISpec/actions/workflows/ci.yml\"><img alt=\"CI\" src=\"https://github.com/AsiaInfo/AISpec/actions/workflows/ci.yml/badge.svg\" /></a>\r\n  <a href=\"https://www.npmjs.com/package/@asiainfo/asiainfospec\"><img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@asiainfo/asiainfospec?style=flat-square\" /></a>\r\n  <a href=\"./LICENSE\"><img alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square\" /></a>\r\n</p>\r\n\r\n<details>\r\n<summary><strong>A lightweight spec-driven framework for AI development.</strong></summary>\r\n\r\n[![Stars](https://img.shields.io/github/stars/AsiaInfo/AISpec?style=flat-square&label=Stars)](https://github.com/AsiaInfo/AISpec/stargazers)\r\n[![Downloads](https://img.shields.io/npm/dm/@asiainfo/asiainfospec?style=flat-square&label=Downloads/mo)](https://www.npmjs.com/package/@asiainfo/asiainfospec)\r\n[![Contributors](https://img.shields.io/github/contributors/AsiaInfo/AISpec?style=flat-square&label=Contributors)](https://github.com/AsiaInfo/AISpec/graphs/contributors)\r\n\r\n</details>\r\n<p></p>\r\nOur philosophy:\r\n\r\n```text\r\n→ fluid not rigid\r\n→ iterative not waterfall\r\n→ easy not complex\r\n→ built for brownfield not just greenfield\r\n→ scalable from personal projects to enterprises\r\n```\r\n\r\n> [!TIP]\r\n> **New workflow now available!** We've rebuilt AISpec with a new artifact-guided workflow.\r\n>\r\n> Run `/aisx:propose \"your idea\"` to get started. → [Learn more here](docs/aisx.md)\r\n\r\n<!-- TODO: Add GIF demo of /aisx:propose → /aisx:archive workflow -->\r\n\r\n## See it in action\r\n\r\n```text\r\nYou: /aisx:propose add-dark-mode\r\nAI:  Created asiainfospec/changes/add-dark-mode/\r\n     ✓ proposal.md — why we're doing this, what's changing\r\n     ✓ specs/       — requirements and scenarios\r\n     ✓ design.md    — technical approach\r\n     ✓ tasks.md     — implementation checklist\r\n     Ready for implementation!\r\n\r\nYou: /aisx:apply\r\nAI:  Implementing tasks...\r\n     ✓ 1.1 Add theme context provider\r\n     ✓ 1.2 Create toggle component\r\n     ✓ 2.1 Add CSS variables\r\n     ✓ 2.2 Wire up localStorage\r\n     All tasks complete!\r\n\r\nYou: /aisx:archive\r\nAI:  Archived to asiainfospec/changes/archive/2025-01-23-add-dark-mode/\r\n     Specs updated. Ready for the next feature.\r\n```\r\n\r\n<details>\r\n<summary><strong>AISpec Dashboard</strong></summary>\r\n\r\n<p align=\"center\">\r\n  <img src=\"assets/aispec_dashboard.png\" alt=\"AISpec dashboard preview\" width=\"90%\">\r\n</p>\r\n\r\n</details>\r\n\r\n## Quick Start\r\n\r\n**Requires Node.js 20.19.0 or higher.**\r\n\r\nInstall AISpec globally:\r\n\r\n```bash\r\nnpm install -g @asiainfo/asiainfospec@latest\r\n```\r\n\r\nThen navigate to your project directory and initialize:\r\n\r\n```bash\r\ncd your-project\r\naispec init\r\n```\r\n\r\nNow tell your AI: `/aisx:propose <what-you-want-to-build>`\r\n\r\nIf you want the expanded workflow (`/aisx:new`, `/aisx:continue`, `/aisx:ff`, `/aisx:verify`, `/aisx:sync`, `/aisx:bulk-archive`, `/aisx:onboard`), select it with `aispec config profile` and apply with `aispec update`.\r\n\r\n> [!NOTE]\r\n> Not sure if your tool is supported? [View the full list](docs/supported-tools.md) – we support 25+ tools and growing.\r\n>\r\n> Also works with pnpm, yarn, bun, and nix. [See installation options](docs/installation.md).\r\n\r\n## Docs\r\n\r\n→ **[Getting Started](docs/getting-started.md)**: first steps<br>\r\n→ **[Workflows](docs/workflows.md)**: combos and patterns<br>\r\n→ **[Commands](docs/commands.md)**: slash commands & skills<br>\r\n→ **[CLI](docs/cli.md)**: terminal reference<br>\r\n→ **[Supported Tools](docs/supported-tools.md)**: tool integrations & install paths<br>\r\n→ **[Concepts](docs/concepts.md)**: how it all fits<br>\r\n→ **[Multi-Language](docs/multi-language.md)**: multi-language support<br>\r\n→ **[Customization](docs/customization.md)**: make it yours\r\n\r\n\r\n## Why AISpec?\r\n\r\nAI coding assistants are powerful but unpredictable when requirements live only in chat history. AISpec adds a lightweight spec layer so you agree on what to build before any code is written.\r\n\r\n- **Agree before you build** — human and AI align on specs before code gets written\r\n- **Stay organized** — each change gets its own folder with proposal, specs, design, and tasks\r\n- **Work fluidly** — update any artifact anytime, no rigid phase gates\r\n- **Use your tools** — works with 20+ AI assistants via slash commands\r\n\r\n## Updating AISpec\r\n\r\n**Upgrade the package**\r\n\r\n```bash\r\nnpm install -g @asiainfo/asiainfospec@latest\r\n```\r\n\r\n**Refresh agent instructions**\r\n\r\nRun this inside each project to regenerate AI guidance and ensure the latest slash commands are active:\r\n\r\n```bash\r\naispec update\r\n```\r\n\r\n## Usage Notes\r\n\r\n**Model selection**: AISpec works best with high-reasoning models. We recommend Opus 4.5 and GPT 5.2 for both planning and implementation.\r\n\r\n**Context hygiene**: AISpec benefits from a clean context window. Clear your context before starting implementation and maintain good context hygiene throughout your session.\r\n\r\n## Contributing\r\n\r\n**Small fixes** — Bug fixes, typo corrections, and minor improvements can be submitted directly as PRs.\r\n\r\n**Larger changes** — For new features, significant refactors, or architectural changes, please submit an AISpec change proposal first so we can align on intent and goals before implementation begins.\r\n\r\nWhen writing proposals, keep the AISpec philosophy in mind: we serve a wide variety of users across different coding agents, models, and use cases. Changes should work well for everyone.\r\n\r\n**AI-generated code is welcome** — as long as it's been tested and verified. PRs containing AI-generated code should mention the coding agent and model used (e.g., \"Generated with Claude Code using claude-opus-4-5-20251101\").\r\n\r\n### Development\r\n\r\n- Install dependencies: `pnpm install`\r\n- Build: `pnpm run build`\r\n- Test: `pnpm test`\r\n- Develop CLI locally: `pnpm run dev` or `pnpm run dev:cli`\r\n- Conventional commits (one-line): `type(scope): subject`\r\n\r\n## Other\r\n\r\n<details>\r\n<summary><strong>Telemetry</strong></summary>\r\n\r\nAISpec collects anonymous usage stats.\r\n\r\nWe collect only command names and version to understand usage patterns. No arguments, paths, content, or PII. Automatically disabled in CI.\r\n\r\n**Opt-out:** `export AISPEC_TELEMETRY=0` or `export DO_NOT_TRACK=1`\r\n\r\n</details>\r\n\r\n<details>\r\n<summary><strong>Maintainers & Advisors</strong></summary>\r\n\r\nSee [MAINTAINERS.md](MAINTAINERS.md) for the list of core maintainers and advisors who help guide the project.\r\n\r\n</details>\r\n\r\n\r\n\r\n## License\r\n\r\nMIT","readmeFilename":"README.md","_rev":"1-9cbab9f1e979cf12ad5303bbd111fdc8"}