Skip to content

Commit 899b0e7

Browse files
author
IM.codes
committed
Clean up lint warnings
1 parent 23a9d29 commit 899b0e7

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

src/agent/codex-runtime-config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ async function readCodexRateLimitsViaAppServer(): Promise<RateLimitSnapshot | un
110110

111111
let settled = false;
112112
let stdoutBuffer = '';
113-
let stderrBuffer = '';
114113
let initialized = false;
115114
const requestId = 2;
116115

@@ -125,7 +124,6 @@ async function readCodexRateLimitsViaAppServer(): Promise<RateLimitSnapshot | un
125124
const timeout = setTimeout(() => finish(undefined), APP_SERVER_TIMEOUT_MS);
126125

127126
child.on('error', () => finish(undefined));
128-
child.stderr.on('data', (chunk) => { stderrBuffer += chunk.toString('utf8'); });
129127
child.stdout.on('data', (chunk) => {
130128
stdoutBuffer += chunk.toString('utf8');
131129
while (true) {

src/bind/bind-flow.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import { readFile, writeFile, mkdir } from 'fs/promises';
22
import { existsSync as existsSyncFs } from 'fs';
3-
import { dirname, join } from 'path';
4-
import { fileURLToPath } from 'url';
3+
import { join } from 'path';
54
import { homedir, hostname } from 'os';
65
import { execSync } from 'child_process';
76
import logger from '../util/logger.js';
87
import { BACKEND } from '../agent/tmux.js';
98
import { restartWindowsDaemon } from '../util/windows-daemon.js';
109

11-
const __filename = fileURLToPath(import.meta.url);
12-
const __dirname = dirname(__filename);
13-
1410
const CREDS_DIR = join(homedir(), '.imcodes');
1511
const CREDS_PATH = join(CREDS_DIR, 'server.json');
1612
const PLIST_LABEL = 'imcodes.daemon';

src/daemon/command-handler.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { exec as execCb } from 'node:child_process';
2828
import { promisify } from 'node:util';
2929
const execAsync = promisify(execCb);
3030
import { 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';
3232
import { CRON_MSG } from '../../shared/cron-types.js';
3333
import { executeCronJob } from './cron-executor.js';
3434
import { TRANSPORT_MSG } from '../../shared/transport-events.js';
@@ -40,7 +40,7 @@ import { buildWindowsCleanupScript, buildWindowsUpgradeBatch } from '../util/win
4040
import { UPGRADE_LOCK_FILE } from '../util/windows-launch-artifacts.js';
4141
import { registerTempFile, removeTrackedTempFile } from '../store/temp-file-store.js';
4242
import { 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';
4444
import { getClaudeSdkRuntimeConfig, normalizeClaudeSdkModelForProvider } from '../agent/sdk-runtime-config.js';
4545
import { getCodexRuntimeConfig } from '../agent/codex-runtime-config.js';
4646
import { 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.

src/daemon/p2p-orchestrator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ export function serializeP2pRun(run: P2pRun): P2pRunUpdatePayload {
202202
status: 'done' | 'active' | 'pending' | 'skipped';
203203
};
204204
const nodes: NodeInfo[] = [];
205-
const skippedSet = new Set(run.skippedHops);
206205
const getInfo = (s: string, mode: string, phase: 'initial' | 'hop' | 'summary') => {
207206
const r = getSession(s);
208207
const label = r?.label || shortName(s);

0 commit comments

Comments
 (0)