@nahisaho/katashiro 2.0.6 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@nahisaho/katashiro",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "KATASHIRO - VS Code Agent Mode向け情報収集・分析・生成システム(オールインワンパッケージ)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "bin": {
9
- "katashiro": "dist/cli.js"
9
+ "katashiro": "dist/cli.js",
10
+ "katashiro-setup": "scripts/postinstall.js"
10
11
  },
11
12
  "files": [
12
13
  "dist",
@@ -108,20 +109,20 @@
108
109
  "url": "https://github.com/nahisaho/katashiro/issues"
109
110
  },
110
111
  "dependencies": {
111
- "@nahisaho/katashiro-analyzer": "^2.0.5",
112
- "@nahisaho/katashiro-collector": "^2.0.5",
113
- "@nahisaho/katashiro-core": "^2.0.5",
114
- "@nahisaho/katashiro-evaluation": "^2.0.5",
115
- "@nahisaho/katashiro-feedback": "^2.0.5",
116
- "@nahisaho/katashiro-generator": "^2.0.5",
117
- "@nahisaho/katashiro-knowledge": "^2.0.5",
118
- "@nahisaho/katashiro-llm": "^2.0.5",
119
- "@nahisaho/katashiro-observability": "^2.0.5",
120
- "@nahisaho/katashiro-orchestrator": "^2.0.5",
121
- "@nahisaho/katashiro-rag": "^2.0.5",
122
- "@nahisaho/katashiro-sandbox": "^2.0.5",
123
- "@nahisaho/katashiro-security": "^2.0.5",
124
- "@nahisaho/katashiro-workspace": "^2.0.5",
112
+ "@nahisaho/katashiro-analyzer": "^2.0.7",
113
+ "@nahisaho/katashiro-collector": "^2.0.7",
114
+ "@nahisaho/katashiro-core": "^2.0.7",
115
+ "@nahisaho/katashiro-evaluation": "^2.0.7",
116
+ "@nahisaho/katashiro-feedback": "^2.0.7",
117
+ "@nahisaho/katashiro-generator": "^2.0.7",
118
+ "@nahisaho/katashiro-knowledge": "^2.0.7",
119
+ "@nahisaho/katashiro-llm": "^2.0.7",
120
+ "@nahisaho/katashiro-observability": "^2.0.7",
121
+ "@nahisaho/katashiro-orchestrator": "^2.0.7",
122
+ "@nahisaho/katashiro-rag": "^2.0.7",
123
+ "@nahisaho/katashiro-sandbox": "^2.0.7",
124
+ "@nahisaho/katashiro-security": "^2.0.7",
125
+ "@nahisaho/katashiro-workspace": "^2.0.7",
125
126
  "commander": "^12.1.0"
126
127
  },
127
128
  "engines": {
@@ -14,8 +14,9 @@ const __dirname = dirname(__filename);
14
14
  // パッケージのルートディレクトリ
15
15
  const packageRoot = resolve(__dirname, '..');
16
16
 
17
- // npm install を実行したカレントディレクトリ
18
- const projectRoot = process.cwd();
17
+ // npm install を実行した元のディレクトリ(INIT_CWD環境変数を使用)
18
+ // INIT_CWD: npm/pnpm/yarnがinstallコマンドを実行したディレクトリ
19
+ const projectRoot = process.env.INIT_CWD || process.cwd();
19
20
 
20
21
  // コピーするファイル/ディレクトリ
21
22
  const filesToCopy = [
@@ -58,8 +59,10 @@ async function main() {
58
59
  return;
59
60
  }
60
61
 
61
- // 自分自身のパッケージ開発中はスキップ(カレントディレクトリがpackageRoot内)
62
- if (projectRoot.startsWith(packageRoot) || packageRoot.startsWith(projectRoot + '/packages')) {
62
+ // node_modules内から実行されている場合のみ動作
63
+ // 開発モード判定: packageRootがnode_modules内にないかチェック
64
+ const isInNodeModules = packageRoot.includes('node_modules');
65
+ if (!isInNodeModules) {
63
66
  console.log('📦 KATASHIRO: Skipping postinstall (development mode)');
64
67
  return;
65
68
  }