From 90e8a10608bb50c5cbcb9de42473f64474ae47bd Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sat, 18 Jul 2026 02:25:39 -0700 Subject: [PATCH] fix: resolve claude-runtime probe source for CLI full-suite (#2292) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Full Suite after #2291: shards 1–3 green; shard 4 failed CLI suites with: `Failed to resolve entry for package "@fusion-plugin-examples/claude-runtime"` from `dashboard/src/runtime-provider-probes.ts` under the CLI vitest package lane. - Add `plugins/fusion-plugin-claude-runtime/src/probes-entry.ts` (probe + model discovery only) - Alias `@fusion-plugin-examples/claude-runtime` to that entry in CLI vitest config (same class as Cursor/Grok/OMP source aliases, but avoids ACP index load) ## Test plan - [x] Local: vitest-workspace-resolution, task-steer, extension-task-tools - [ ] PR gate - [ ] Post-merge Full Suite green ## Summary by CodeRabbit * **Bug Fixes** * Improved CLI resolution for Claude runtime diagnostics and provider model discovery. * Prevented unnecessary runtime dependencies from affecting CLI test execution. * **Refactor** * Added a lightweight entry point for accessing Claude binary checks and provider model discovery. --- packages/cli/vitest.config.ts | 15 +++++++++++++++ .../src/probes-entry.ts | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 plugins/fusion-plugin-claude-runtime/src/probes-entry.ts diff --git a/packages/cli/vitest.config.ts b/packages/cli/vitest.config.ts index 91cd396045..6680622cd7 100644 --- a/packages/cli/vitest.config.ts +++ b/packages/cli/vitest.config.ts @@ -212,6 +212,21 @@ export default defineConfig({ replacement: resolve(__dirname, "../../plugins/fusion-plugin-omp-runtime/src/index.ts"), }, /* + FNXC:CliTests 2026-07-18-09:15: + runtime-provider-probes imports @fusion-plugin-examples/claude-runtime for probe/model + discovery only. Alias the package root to probes-entry (not full index) so CLI tests do + not load ACP/runtime-adapter or require @agentclientprotocol/sdk on the CLI resolver path. + Full-suite shard 4 failed with dist/ entry resolution + missing ACP deps under package lane. + */ + { + find: /^@fusion-plugin-examples\/claude-runtime\/probe$/, + replacement: resolve(__dirname, "../../plugins/fusion-plugin-claude-runtime/src/probe.ts"), + }, + { + find: /^@fusion-plugin-examples\/claude-runtime$/, + replacement: resolve(__dirname, "../../plugins/fusion-plugin-claude-runtime/src/probes-entry.ts"), + }, + /* FNXC:PluginTests 2026-07-04-09:30: The roadmap plugin (@fusion-plugin-examples/roadmap) is imported by the CLI extension. Without source aliases, Vite resolves to the dist/ exports which don't exist in a source checkout. */ diff --git a/plugins/fusion-plugin-claude-runtime/src/probes-entry.ts b/plugins/fusion-plugin-claude-runtime/src/probes-entry.ts new file mode 100644 index 0000000000..2658d7534c --- /dev/null +++ b/plugins/fusion-plugin-claude-runtime/src/probes-entry.ts @@ -0,0 +1,10 @@ +/* +FNXC:CliTests 2026-07-18-09:15: +Thin entry for dashboard runtime-provider-probes and CLI vitest source aliases. +Importing the full plugin index pulls ACP/runtime-adapter (and @agentclientprotocol/sdk) +which is not required for binary probe / model discovery and fails full-suite CLI +resolution when dist/ is absent or ACP deps are not on the CLI resolver path. +*/ +export { probeClaudeBinary } from "./probe.js"; +export type { ClaudeBinaryStatus } from "./types.js"; +export { discoverClaudeProviderModels } from "./provider.js";