diff --git a/README.md b/README.md index f626f04..d0f9044 100644 --- a/README.md +++ b/README.md @@ -104,13 +104,18 @@ ### 1. セットアップ -依存関係のインストールと、必要なバイナリ・モデルのダウンロードを一括で行います。 +プロジェクトの実行に必要なアセットを一括で準備します。 ```bash bun install bun setup ``` +**`bun setup` が行うこと:** + +- **サイドカーの準備**: `llama-server` バイナリと依存 DLL を `bin/` フォルダへダウンロード。 +- **モデルの準備**: ベクトル生成用の Gemma 3 300M モデル (`.gguf`) を `models/` フォルダへダウンロード。 + ### 2. 開発起動 ```bash diff --git a/test/scripts.test.js b/test/scripts.test.js index 2cea7de..bab0e0d 100644 --- a/test/scripts.test.js +++ b/test/scripts.test.js @@ -31,7 +31,7 @@ const testFile = path.join(TMP_TEST_DIR, "test_deep.rs"); fs.writeFileSync(testFile, rustCode); - const result = spawnSync("node", ["analyze_nesting.js", testFile], { encoding: "utf-8" }); + const result = spawnSync("node", ["scripts/analyze_nesting.js", testFile], { encoding: "utf-8" }); expect(result.stdout).toContain("Level 5"); expect(result.stdout).toContain("REFACTOR NEEDED"); }); @@ -50,7 +50,7 @@ const testFile = path.join(TMP_TEST_DIR, "test_count.rs"); fs.writeFileSync(testFile, rustCode); - const result = spawnSync("node", ["count_lines.js", testFile], { encoding: "utf-8" }); + const result = spawnSync("node", ["scripts/count_lines.js", testFile], { encoding: "utf-8" }); // fn main, let x, println, } = 4 logical lines (概算) // 実際の実装にあわせたアサーション expect(result.stdout).toContain("Logical : 4");