From 7099a4ae3a9e7a77f7ef043d49fa0fd23e97d85e Mon Sep 17 00:00:00 2001 From: him0 Date: Sun, 29 Jun 2025 23:46:18 +0900 Subject: [PATCH 1/2] fix: update package.json scripts to match current CLI commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename 'compile' script to 'sync' - Rename 'preview' script to 'plan' These script names now align with the actual CLI command names documented in CLAUDE.md. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4ae23d2..817fd56 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,8 @@ "build": "bun build src/cli.ts --target=node --outfile=dist/cli.js && bun run build:types && cp -r src/templates dist/ && chmod +x ./dist/cli.js", "build:types": "tsc --emitDeclarationOnly", "init": "bun run src/cli.ts init", - "compile": "bun run src/cli.ts compile", - "preview": "bun run src/cli.ts preview", + "sync": "bun run src/cli.ts sync", + "plan": "bun run src/cli.ts plan", "prepublishOnly": "bun run build", "test": "bun test", "typecheck": "tsc --noEmit" From 2c4c21f33af4ac170f1726b685d920ac44687de1 Mon Sep 17 00:00:00 2001 From: him0 Date: Sun, 29 Jun 2025 23:49:27 +0900 Subject: [PATCH 2/2] fix: update outdated command references in help and init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix typo: ai-doc-sync → ai-docs-sync in help command - Update init command output from old ai-docs-cli to ai-docs-sync - Change "compile" references to "sync" (default behavior) - Change "preview" references to "plan" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/commands/help.ts | 10 +++++----- src/commands/init.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/commands/help.ts b/src/commands/help.ts index 09ff121..e546c86 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -2,10 +2,10 @@ import { DEFAULT_AI_DOCS_DIR, DEFAULT_RULES_DIR } from '../constants'; export const showHelp = (): void => { console.log(` -ai-doc-sync +ai-docs-sync Usage: - npx ai-doc-sync [command] + npx ai-docs-sync [command] Commands: (default) - Sync rules from ${DEFAULT_AI_DOCS_DIR}/${DEFAULT_RULES_DIR} to output files @@ -14,8 +14,8 @@ Commands: help - Show this help message Examples: - npx ai-doc-sync # Sync rules (default behavior) - npx ai-doc-sync plan # Preview changes without writing - npx ai-doc-sync init # Initialize a new project + npx ai-docs-sync # Sync rules (default behavior) + npx ai-docs-sync plan # Preview changes without writing + npx ai-docs-sync init # Initialize a new project `); }; \ No newline at end of file diff --git a/src/commands/init.ts b/src/commands/init.ts index 4d66c1a..70d2277 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -35,6 +35,6 @@ export const initProject = (): void => { console.log('Next steps:'); console.log(`1. Edit rules: modify files in the ${DEFAULT_AI_DOCS_DIR}/${DEFAULT_RULES_DIR}/ directory`); console.log(`2. Edit ignore patterns: modify the ${DEFAULT_AI_DOCS_DIR}/ignore file`); - console.log('3. Compile: npx ai-docs-cli compile'); - console.log('4. Preview: npx ai-docs-cli preview'); + console.log('3. Sync: ai-docs-sync'); + console.log('4. Preview: ai-docs-sync plan'); }; \ No newline at end of file