@@ -28,7 +28,7 @@ import { exec as execCb } from 'node:child_process';
2828import { promisify } from 'node:util' ;
2929const execAsync = promisify ( execCb ) ;
3030import { startP2pRun , cancelP2pRun , getP2pRun , listP2pRuns , serializeP2pRun , type P2pTarget } from './p2p-orchestrator.js' ;
31- import { getP2pMode , getComboRoundCount , parseModePipeline , P2P_CONFIG_MODE , type P2pSessionConfig } from '../../shared/p2p-modes.js' ;
31+ import { getComboRoundCount , parseModePipeline , P2P_CONFIG_MODE , type P2pSessionConfig } from '../../shared/p2p-modes.js' ;
3232import { CRON_MSG } from '../../shared/cron-types.js' ;
3333import { executeCronJob } from './cron-executor.js' ;
3434import { TRANSPORT_MSG } from '../../shared/transport-events.js' ;
@@ -40,7 +40,7 @@ import { buildWindowsCleanupScript, buildWindowsUpgradeBatch } from '../util/win
4040import { UPGRADE_LOCK_FILE } from '../util/windows-launch-artifacts.js' ;
4141import { registerTempFile , removeTrackedTempFile } from '../store/temp-file-store.js' ;
4242import { sanitizeProjectName } from '../../shared/sanitize-project-name.js' ;
43- import { CLAUDE_CODE_MODEL_IDS , CODEX_MODEL_IDS , normalizeClaudeCodeModelId } from '../shared/models/options.js' ;
43+ import { CODEX_MODEL_IDS , normalizeClaudeCodeModelId } from '../shared/models/options.js' ;
4444import { getClaudeSdkRuntimeConfig , normalizeClaudeSdkModelForProvider } from '../agent/sdk-runtime-config.js' ;
4545import { getCodexRuntimeConfig } from '../agent/codex-runtime-config.js' ;
4646import { P2P_TERMINAL_RUN_STATUSES } from '../../shared/p2p-status.js' ;
@@ -2102,8 +2102,6 @@ async function handleDaemonUpgrade(targetVersion?: string): Promise<void> {
21022102 const scriptDir = mkdtempSync ( join ( tmpdir ( ) , 'imcodes-upgrade-' ) ) ;
21032103 const logFile = join ( scriptDir , 'upgrade.log' ) ;
21042104 const scriptPath = join ( scriptDir , 'upgrade.sh' ) ;
2105- const cliEntry = process . argv [ 1 ] || join ( process . cwd ( ) , 'dist' , 'src' , 'index.js' ) ;
2106-
21072105 // Build the platform-specific restart command.
21082106 // We always restart regardless of whether npm install succeeded, so the daemon
21092107 // is never left permanently dead.
@@ -2230,7 +2228,6 @@ sleep 60 && rm -rf "${scriptDir}" &
22302228
22312229// ── File system browser ────────────────────────────────────────────────────
22322230
2233- const UPLOAD_DIR = nodePath . join ( homedir ( ) , '.imcodes' , 'uploads' ) ;
22342231// On Windows, don't restrict paths — projects commonly live on any drive (D:\code, etc.)
22352232// The daemon runs as the user, so OS-level permissions are the real security boundary.
22362233// Deny-list: block access to sensitive directories regardless of platform.
0 commit comments