cc-viewer 1.7.5 → 1.7.6
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/cli.js +19 -4
- package/dist/assets/{App-CcLQlV-O.js → App-3VM471BO.js} +2 -2
- package/dist/assets/{MdxEditorPanel-CAqHHy1X.js → MdxEditorPanel-BQ5MgI4D.js} +1 -1
- package/dist/assets/{Mobile-BxRd4DkS.js → Mobile-wwcXmnrU.js} +1 -1
- package/dist/assets/{UnifiedProxyRetryPage-DjL3NQXO.js → UnifiedProxyRetryPage-BpcKIn9N.js} +1 -1
- package/dist/assets/{index-DJ0AQwus.js → index-BjNLFJ0z.js} +2 -2
- package/dist/assets/{seqResourceLoaders-D1y8V4z5.js → seqResourceLoaders-CDRtUSxI.js} +2 -2
- package/dist/index.html +1 -1
- package/findcc.js +58 -0
- package/package.json +1 -1
- package/server/lib/interceptor-core.js +26 -15
- package/server/pty-manager.js +8 -0
package/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
11
11
|
import { homedir } from 'node:os';
|
|
12
12
|
import { spawn } from 'node:child_process';
|
|
13
13
|
import { t } from './server/i18n.js';
|
|
14
|
-
import { INJECT_IMPORT, LEGACY_INJECT_IMPORTS, resolveCliPath, resolveNativePath, resolveNpmClaudePath, buildShellCandidates, setLogDir, LOG_DIR, hasClaude2xWrapper, getGlobalNodeModulesDir, PACKAGES, getClaudeConfigDir, isBrowserOpenSuppressed, applyAgentTeamsDefault } from './findcc.js';
|
|
14
|
+
import { INJECT_IMPORT, LEGACY_INJECT_IMPORTS, resolveCliPath, resolveClaudeFromPath, resolveCodeFuseClaudePath, resolveNativePath, resolveNpmClaudePath, buildShellCandidates, setLogDir, LOG_DIR, hasClaude2xWrapper, getGlobalNodeModulesDir, PACKAGES, getClaudeConfigDir, isBrowserOpenSuppressed, applyAgentTeamsDefault } from './findcc.js';
|
|
15
15
|
import { ensureHooks, removeAllManagedHooks } from './server/lib/ensure-hooks.js';
|
|
16
16
|
import { injectCliJsAt, removeCliJsInjectionAt, INJECT_START as _INJECT_START, INJECT_END as _INJECT_END, buildInjectBlock as _buildInjectBlock } from './server/lib/cli-inject.js';
|
|
17
17
|
import { normalizeBasePath } from './server/lib/base-path.js';
|
|
@@ -391,9 +391,24 @@ async function printMigrationBanner() {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
async function runCliMode(extraClaudeArgs = [], cwd, noOpen = false) {
|
|
394
|
-
//
|
|
395
|
-
|
|
396
|
-
|
|
394
|
+
// Standalone ccv does not inherit the PATH prefix installed transiently by
|
|
395
|
+
// `cfuse --ccv`. Discover the same pinned CodeFuse-managed build directly so
|
|
396
|
+
// both launch forms use the enterprise-approved executable.
|
|
397
|
+
let claudePath = resolveCodeFuseClaudePath();
|
|
398
|
+
let isNpmVersion = false;
|
|
399
|
+
|
|
400
|
+
// On machines without the managed CodeFuse build, honor the executable
|
|
401
|
+
// explicitly selected by the caller's PATH before global npm fallbacks.
|
|
402
|
+
if (!claudePath) {
|
|
403
|
+
const pathSelection = resolveClaudeFromPath();
|
|
404
|
+
claudePath = pathSelection?.path || null;
|
|
405
|
+
isNpmVersion = pathSelection?.isNpmVersion || false;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (!claudePath) {
|
|
409
|
+
claudePath = resolveNpmClaudePath();
|
|
410
|
+
isNpmVersion = !!claudePath;
|
|
411
|
+
}
|
|
397
412
|
|
|
398
413
|
if (!claudePath) {
|
|
399
414
|
claudePath = resolveNativePath();
|