@adhdev/daemon-standalone 0.9.76-rc.12 → 0.9.76-rc.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-standalone",
3
- "version": "0.9.76-rc.12",
3
+ "version": "0.9.76-rc.13",
4
4
  "description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -34311,7 +34311,7 @@ function resolveMeshCoordinatorSetup(options) {
34311
34311
  if (!mcpServer) {
34312
34312
  return {
34313
34313
  kind: "unsupported",
34314
- reason: "Could not resolve the ADHDev MCP server entrypoint without relying on a PATH bin shim"
34314
+ reason: "Could not resolve the ADHDev MCP server entrypoint and a Node runtime with WebSocket support for daemon IPC mode"
34315
34315
  };
34316
34316
  }
34317
34317
  return {
@@ -34361,11 +34361,75 @@ function resolveMcpConfigPath(configPath, workspace) {
34361
34361
  function resolveAdhdevMcpServerLaunch(options) {
34362
34362
  const entryPath = resolveAdhdevMcpEntryPath(options.adhdevMcpEntryPath);
34363
34363
  if (!entryPath) return null;
34364
+ const nodeExecutable = resolveMcpNodeExecutable(options.nodeExecutable);
34365
+ if (!nodeExecutable) return null;
34364
34366
  return {
34365
- command: options.nodeExecutable?.trim() || process.execPath,
34367
+ command: nodeExecutable,
34366
34368
  args: [entryPath, "--mode", "ipc", "--repo-mesh", options.meshId]
34367
34369
  };
34368
34370
  }
34371
+ function resolveMcpNodeExecutable(explicitExecutable) {
34372
+ const explicit = explicitExecutable?.trim();
34373
+ if (explicit) return explicit;
34374
+ const candidates = [];
34375
+ const addCandidate = (candidate) => {
34376
+ const trimmed = candidate?.trim();
34377
+ if (!trimmed) return;
34378
+ const normalized = normalizeExistingPath(trimmed) || trimmed;
34379
+ if (!candidates.includes(normalized)) candidates.push(normalized);
34380
+ };
34381
+ addCandidate(process.env.ADHDEV_MCP_NODE_EXECUTABLE);
34382
+ addCandidate(process.env.ADHDEV_NODE_EXECUTABLE);
34383
+ addCandidate(process.env.npm_node_execpath);
34384
+ addNodeCandidatesFromPath(process.env.PATH, addCandidate);
34385
+ addNodeCandidatesFromNvm(os17.homedir(), addCandidate);
34386
+ addCandidate("/opt/homebrew/bin/node");
34387
+ addCandidate("/usr/local/bin/node");
34388
+ addCandidate("/usr/bin/node");
34389
+ addCandidate(process.execPath);
34390
+ for (const candidate of candidates) {
34391
+ if (nodeRuntimeSupportsWebSocket(candidate)) return candidate;
34392
+ }
34393
+ return null;
34394
+ }
34395
+ function addNodeCandidatesFromPath(pathValue, addCandidate) {
34396
+ for (const entry of (pathValue || "").split(":")) {
34397
+ const dir = entry.trim();
34398
+ if (!dir) continue;
34399
+ addCandidate((0, import_path4.join)(dir, "node"));
34400
+ }
34401
+ }
34402
+ function addNodeCandidatesFromNvm(homeDir, addCandidate) {
34403
+ const versionsDir = (0, import_path4.join)(homeDir, ".nvm", "versions", "node");
34404
+ try {
34405
+ const versionDirs = (0, import_fs9.readdirSync)(versionsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => entry.name).sort(compareNodeVersionNamesDescending);
34406
+ for (const versionDir of versionDirs) {
34407
+ addCandidate((0, import_path4.join)(versionsDir, versionDir, "bin", "node"));
34408
+ }
34409
+ } catch {
34410
+ }
34411
+ }
34412
+ function compareNodeVersionNamesDescending(a, b) {
34413
+ const parse3 = (value) => value.replace(/^v/, "").split(".").map((part) => Number.parseInt(part, 10) || 0);
34414
+ const left = parse3(a);
34415
+ const right = parse3(b);
34416
+ for (let i = 0; i < Math.max(left.length, right.length); i++) {
34417
+ const diff = (right[i] || 0) - (left[i] || 0);
34418
+ if (diff !== 0) return diff;
34419
+ }
34420
+ return b.localeCompare(a);
34421
+ }
34422
+ function nodeRuntimeSupportsWebSocket(nodeExecutable) {
34423
+ try {
34424
+ (0, import_child_process10.execFileSync)(nodeExecutable, ["-e", "process.exit(typeof WebSocket === 'function' ? 0 : 42)"], {
34425
+ stdio: "ignore",
34426
+ timeout: 3e3
34427
+ });
34428
+ return true;
34429
+ } catch {
34430
+ return false;
34431
+ }
34432
+ }
34369
34433
  function resolveAdhdevMcpEntryPath(explicitPath) {
34370
34434
  const explicit = explicitPath?.trim();
34371
34435
  if (explicit) return normalizeExistingPath(explicit) || explicit;
@@ -34826,7 +34890,7 @@ function getNpmExecOptions(platform10 = process.platform) {
34826
34890
  }
34827
34891
  function execNpmCommandSync(args, options = {}, surface) {
34828
34892
  const execOptions = surface?.execOptions || getNpmExecOptions();
34829
- return (0, import_child_process10.execFileSync)(
34893
+ return (0, import_child_process11.execFileSync)(
34830
34894
  surface?.npmExecutable || "npm",
34831
34895
  [...surface?.npmArgsPrefix || [], ...args],
34832
34896
  {
@@ -34839,7 +34903,7 @@ function execNpmCommandSync(args, options = {}, surface) {
34839
34903
  function killPid(pid) {
34840
34904
  try {
34841
34905
  if (process.platform === "win32") {
34842
- (0, import_child_process10.execFileSync)("taskkill", ["/PID", String(pid), "/T", "/F"], { stdio: "ignore", windowsHide: true });
34906
+ (0, import_child_process11.execFileSync)("taskkill", ["/PID", String(pid), "/T", "/F"], { stdio: "ignore", windowsHide: true });
34843
34907
  } else {
34844
34908
  process.kill(pid, "SIGTERM");
34845
34909
  }
@@ -34851,7 +34915,7 @@ function killPid(pid) {
34851
34915
  function getWindowsProcessCommandLine(pid) {
34852
34916
  const pidFilter = `ProcessId=${pid}`;
34853
34917
  try {
34854
- const psOut = (0, import_child_process10.execFileSync)("powershell.exe", [
34918
+ const psOut = (0, import_child_process11.execFileSync)("powershell.exe", [
34855
34919
  "-NoProfile",
34856
34920
  "-NonInteractive",
34857
34921
  "-ExecutionPolicy",
@@ -34863,7 +34927,7 @@ function getWindowsProcessCommandLine(pid) {
34863
34927
  } catch {
34864
34928
  }
34865
34929
  try {
34866
- const wmicOut = (0, import_child_process10.execFileSync)("wmic", [
34930
+ const wmicOut = (0, import_child_process11.execFileSync)("wmic", [
34867
34931
  "process",
34868
34932
  "where",
34869
34933
  pidFilter,
@@ -34879,7 +34943,7 @@ function getProcessCommandLine(pid) {
34879
34943
  if (!Number.isFinite(pid) || pid <= 0) return null;
34880
34944
  if (process.platform === "win32") return getWindowsProcessCommandLine(pid);
34881
34945
  try {
34882
- const text = (0, import_child_process10.execFileSync)("ps", ["-o", "command=", "-p", String(pid)], {
34946
+ const text = (0, import_child_process11.execFileSync)("ps", ["-o", "command=", "-p", String(pid)], {
34883
34947
  encoding: "utf8",
34884
34948
  timeout: 3e3,
34885
34949
  stdio: ["ignore", "pipe", "ignore"]
@@ -34965,7 +35029,7 @@ function cleanupStaleGlobalInstallDirs(pkgName, surface) {
34965
35029
  }
34966
35030
  function spawnDetachedDaemonUpgradeHelper(payload) {
34967
35031
  const env2 = { ...process.env, [UPGRADE_HELPER_ENV]: JSON.stringify(payload) };
34968
- const child = (0, import_child_process11.spawn)(process.execPath, process.argv.slice(1), {
35032
+ const child = (0, import_child_process12.spawn)(process.execPath, process.argv.slice(1), {
34969
35033
  detached: true,
34970
35034
  stdio: "ignore",
34971
35035
  windowsHide: true,
@@ -34995,7 +35059,7 @@ async function runDaemonUpgradeHelper(payload) {
34995
35059
  cleanupStaleGlobalInstallDirs(payload.packageName, installCommand.surface);
34996
35060
  const spec = `${payload.packageName}@${payload.targetVersion || "latest"}`;
34997
35061
  appendUpgradeLog(`Installing ${spec}`);
34998
- const installOutput = (0, import_child_process10.execFileSync)(
35062
+ const installOutput = (0, import_child_process11.execFileSync)(
34999
35063
  installCommand.command,
35000
35064
  installCommand.args,
35001
35065
  {
@@ -35017,7 +35081,7 @@ async function runDaemonUpgradeHelper(payload) {
35017
35081
  const env2 = { ...process.env };
35018
35082
  delete env2[UPGRADE_HELPER_ENV];
35019
35083
  appendUpgradeLog(`Restarting daemon with args: ${restartArgv.join(" ")}`);
35020
- const child = (0, import_child_process11.spawn)(process.execPath, restartArgv, {
35084
+ const child = (0, import_child_process12.spawn)(process.execPath, restartArgv, {
35021
35085
  detached: true,
35022
35086
  stdio: "ignore",
35023
35087
  windowsHide: true,
@@ -35333,7 +35397,7 @@ function projectHotChatSessionStatesFromProviderState(state) {
35333
35397
  }
35334
35398
  function runCommand(cmd, timeout = 1e4) {
35335
35399
  try {
35336
- return (0, import_child_process12.execSync)(cmd, {
35400
+ return (0, import_child_process13.execSync)(cmd, {
35337
35401
  encoding: "utf-8",
35338
35402
  timeout,
35339
35403
  stdio: ["pipe", "pipe", "pipe"]
@@ -39193,7 +39257,7 @@ function shouldAutoRestoreHostedSessionsOnStartup(env2 = process.env) {
39193
39257
  function isExtensionInstalled(ide, marketplaceId) {
39194
39258
  if (!ide.cliCommand) return false;
39195
39259
  try {
39196
- const result = (0, import_child_process13.execSync)(`"${ide.cliCommand}" --list-extensions`, {
39260
+ const result = (0, import_child_process14.execSync)(`"${ide.cliCommand}" --list-extensions`, {
39197
39261
  encoding: "utf-8",
39198
39262
  timeout: 15e3,
39199
39263
  stdio: ["pipe", "pipe", "pipe"]
@@ -39234,7 +39298,7 @@ async function installExtension(ide, extension) {
39234
39298
  fs16.writeFileSync(vsixPath, buffer);
39235
39299
  return new Promise((resolve162) => {
39236
39300
  const cmd = `"${ide.cliCommand}" --install-extension "${vsixPath}" --force`;
39237
- (0, import_child_process13.exec)(cmd, { timeout: 6e4 }, (error48, _stdout, stderr) => {
39301
+ (0, import_child_process14.exec)(cmd, { timeout: 6e4 }, (error48, _stdout, stderr) => {
39238
39302
  resolve162({
39239
39303
  extensionId: extension.id,
39240
39304
  marketplaceId: extension.marketplaceId,
@@ -39250,7 +39314,7 @@ async function installExtension(ide, extension) {
39250
39314
  }
39251
39315
  return new Promise((resolve162) => {
39252
39316
  const cmd = `"${ide.cliCommand}" --install-extension ${extension.marketplaceId} --force`;
39253
- (0, import_child_process13.exec)(cmd, { timeout: 6e4 }, (error48, stdout, stderr) => {
39317
+ (0, import_child_process14.exec)(cmd, { timeout: 6e4 }, (error48, stdout, stderr) => {
39254
39318
  if (error48) {
39255
39319
  resolve162({
39256
39320
  extensionId: extension.id,
@@ -39287,7 +39351,7 @@ function launchIDE(ide, workspacePath) {
39287
39351
  if (!ide.cliCommand) return false;
39288
39352
  try {
39289
39353
  const args = workspacePath ? `"${workspacePath}"` : "";
39290
- (0, import_child_process13.exec)(`"${ide.cliCommand}" ${args}`, { timeout: 1e4 });
39354
+ (0, import_child_process14.exec)(`"${ide.cliCommand}" ${args}`, { timeout: 1e4 });
39291
39355
  return true;
39292
39356
  } catch {
39293
39357
  return false;
@@ -39556,7 +39620,7 @@ async function shutdownDaemonComponents(components) {
39556
39620
  }
39557
39621
  cdpManagers.clear();
39558
39622
  }
39559
- var path4, import_promises4, import_fs, import_child_process, import_util3, import_os, import_path, import_fs2, import_crypto2, import_fs3, import_path2, import_crypto3, fs2, path10, os4, os8, os9, path14, import_child_process2, os10, path15, os11, import_child_process3, import_fs4, import_promises5, path, import_util4, import_promises6, path22, path32, fs, os5, path5, import_crypto4, path6, path7, import_fs5, import_path3, import_child_process4, import_fs6, import_os2, path8, import_child_process5, os22, path9, import_fs7, os32, import_child_process6, http, crypto2, fs3, path11, os52, fs4, os6, path12, import_crypto5, fs5, path13, os7, os13, path17, crypto4, import_fs8, import_child_process7, os12, path16, crypto3, fs6, import_module, import_stream2, import_child_process8, import_child_process9, net2, os15, path19, fs7, path18, os14, fs8, path20, os16, import_fs9, import_module2, os17, import_path4, os18, import_child_process10, import_child_process11, fs9, os19, path21, fs10, fs11, path222, os20, import_child_process12, import_os3, http2, fs15, path26, fs12, path23, fs13, path24, fs14, path25, os21, import_child_process13, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __require2, __esm2, __export2, __copyProps2, __toCommonJS2, DEFAULT_MESH_POLICY, init_repo_mesh_types, git_worktree_exports, execFileAsync2, WORKTREE_DIR_NAME, GIT_TIMEOUT_MS, GIT_MAX_BUFFER, init_git_worktree, config_exports, DEFAULT_CONFIG, MACHINE_ID_PREFIX, init_config, mesh_config_exports, init_mesh_config, coordinator_prompt_exports, TOOLS_SECTION, WORKFLOW_SECTION, init_coordinator_prompt, LEVEL_NUM, LEVEL_LABEL, currentLevel, LOG_DIR, MAX_LOG_SIZE, MAX_LOG_DAYS, currentDate, currentLogFile, writeCount, RING_BUFFER_SIZE, ringBuffer, origConsoleLog, origConsoleError, origConsoleWarn, LOG, interceptorInstalled, LOG_PATH, init_logger, NORMAL_TRACE_BUFFER_SIZE, DEV_TRACE_BUFFER_SIZE, DEFAULT_CONFIG2, currentConfig, init_debug_config, DEFAULT_BINDING_CANDIDATES, cachedBinding, cachedBindingError, GhosttyVtTerminalBackend, init_ghostty_vt_backend, TerminalCtor, XtermTerminalBackend, init_xterm_backend, DEFAULT_SCROLLBACK, loggedTerminalBackends, TerminalScreen, init_terminal_screen, init_spawn_env, cachedPty, NodePtyRuntimeTransport, NodePtyTransportFactory, init_pty_transport, buildCliSpawnEnv, init_provider_cli_shared, init_provider_cli_parse, init_provider_cli_config, init_provider_cli_runtime, provider_cli_adapter_exports, ProviderCliAdapter, init_provider_cli_adapter, execFileAsync, DEFAULT_TIMEOUT_MS, DEFAULT_MAX_BUFFER, GitCommandError, DEFAULT_MAX_FILES, DEFAULT_MAX_BYTES, summarizeGitStatus, InMemoryGitSnapshotStore, DEFAULT_GIT_WORKSPACE_POLL_INTERVAL_MS, MIN_GIT_WORKSPACE_POLL_INTERVAL_MS, GitWorkspaceMonitor, GIT_COMMAND_NAMES, SNAPSHOT_REASONS, FAILURE_REASONS, defaultSnapshotStore, defaultGitCommandServices, BUSY_STATUSES, TERMINAL_STATUSES, TurnSnapshotTracker, MAX_WORKSPACES, MAX_ACTIVITY, MAX_SAVED_SESSIONS, DEFAULT_STATE, BUILTIN_IDE_DEFINITIONS, registeredIDEs, LIVE_LIFECYCLES, DEFAULT_ACTIVE_CHAT_POLL_STATUSES, DEFAULT_CHAT_TAIL_RECENT_MESSAGE_GRACE_MS, LIVE_RUNTIME_LIFECYCLES, DaemonCdpManager, CdpDomHandlers, DEFAULT_MONITOR_CONFIG, StatusMonitor, BUILTIN_CHAT_MESSAGE_KINDS, KNOWN_CHAT_MESSAGE_KINDS, CHAT_MESSAGE_KIND_ALIASES, HISTORY_DIR, RETAIN_DAYS, SAVED_HISTORY_INDEX_VERSION, SAVED_HISTORY_INDEX_FILE, SAVED_HISTORY_INDEX_LOCK_SUFFIX, SAVED_HISTORY_INDEX_LOCK_WAIT_MS, SAVED_HISTORY_INDEX_LOCK_STALE_MS, SAVED_HISTORY_INDEX_LOCK_POLL_MS, SAVED_HISTORY_ROLLUP_THRESHOLD_BYTES, savedHistorySessionCache, savedHistoryFileSummaryCache, savedHistoryBackgroundRefresh, savedHistoryRollupInFlight, ChatHistoryWriter, IDE_PROVIDER_SESSION_CAPABILITIES_BASE, EXTENSION_PROVIDER_SESSION_CAPABILITIES_BASE, ExtensionProviderInstance, VALID_STATUSES, VALID_ROLES, VALID_BUBBLE_STATES, VALID_TURN_STATUSES, DEFAULT_APPROVAL_POSITIVE_HINTS, IdeProviderInstance, DEFAULT_CDP_SCAN_INTERVAL_MS, DEFAULT_CDP_DISCOVERY_INTERVAL_MS, DEFAULT_STATUS_INITIAL_REPORT_DELAY_MS, DEFAULT_STATUS_SERVER_REPORT_INTERVAL_MS, DEFAULT_STATUS_P2P_REPORT_INTERVAL_MS, MIN_MACHINE_RUNTIME_SUBSCRIPTION_INTERVAL_MS, DEFAULT_MACHINE_RUNTIME_SUBSCRIPTION_INTERVAL_MS, MIN_SESSION_HOST_DIAGNOSTICS_SUBSCRIPTION_INTERVAL_MS, DEFAULT_SESSION_HOST_DIAGNOSTICS_SUBSCRIPTION_INTERVAL_MS, DEFAULT_SESSION_HOST_READY_TIMEOUT_MS, STANDALONE_CDP_SCAN_INTERVAL_MS, DaemonCdpScanner, DaemonCdpInitializer, WORKING_STATUSES, FULL_STATUS_ACTIVE_CHAT_OPTIONS, LIVE_STATUS_ACTIVE_CHAT_OPTIONS, STATUS_MODAL_MESSAGE_LIMIT, STATUS_MODAL_BUTTON_LIMIT, IDE_SESSION_CAPABILITIES, EXTENSION_SESSION_CAPABILITIES, PTY_SESSION_CAPABILITIES, CLI_CHAT_SESSION_CAPABILITIES, ACP_SESSION_CAPABILITIES, VALID_INPUT_MEDIA_TYPES, globalStore, RECENT_SEND_WINDOW_MS, READ_CHAT_PROVIDER_EVAL_TIMEOUT_MS, recentSendByTarget, DEFAULT_DEBUG_SANITIZE_OPTIONS, SECRET_KEY_PATTERN, KEY_TO_VK, COMMAND_DEBUG_LEVELS, DaemonCommandHandler, CachedDatabaseSync, CliProviderInstance, AcpProviderInstance, chalkModule, chalkApi, DaemonCliManager, VALID_CAPABILITY_MEDIA_TYPES, KNOWN_PROVIDER_FIELDS, VALUE_CONTROL_TYPES, ProviderLoader, _providerLoader, LOG_DIR2, MAX_FILE_SIZE, MAX_DAYS, SENSITIVE_KEYS, currentDate2, currentFile, writeCount2, SKIP_COMMANDS, DEFAULT_SERVER_NAME, DEFAULT_ADHDEV_MCP_COMMAND, READ_DEBUG_ENABLED, recentReadDebugSignatureBySession, UPGRADE_HELPER_ENV, CHANNEL_NPM_TAG, CHANNEL_SERVER_URL, CHAT_COMMANDS, READ_DEBUG_ENABLED2, DaemonCommandRouter, DaemonStatusReporter, DEFAULT_DAEMON_PORT, DAEMON_WS_PATH, ProviderStreamAdapter, DaemonAgentStreamManager, AgentStreamPoller, ProviderInstanceManager, ARCHIVE_PATH, MAX_ENTRIES_PER_PROVIDER, VersionArchive, DEV_SERVER_PORT, DevServer, SessionHostRuntimeTransport, SessionHostPtyTransportFactory, DEFAULT_SESSION_HOST_APP_NAME, DEFAULT_STANDALONE_SESSION_HOST_APP_NAME, STARTUP_TIMEOUT_MS, STARTUP_POLL_MS, EXTENSION_CATALOG, SessionRegistry;
39623
+ var path4, import_promises4, import_fs, import_child_process, import_util3, import_os, import_path, import_fs2, import_crypto2, import_fs3, import_path2, import_crypto3, fs2, path10, os4, os8, os9, path14, import_child_process2, os10, path15, os11, import_child_process3, import_fs4, import_promises5, path, import_util4, import_promises6, path22, path32, fs, os5, path5, import_crypto4, path6, path7, import_fs5, import_path3, import_child_process4, import_fs6, import_os2, path8, import_child_process5, os22, path9, import_fs7, os32, import_child_process6, http, crypto2, fs3, path11, os52, fs4, os6, path12, import_crypto5, fs5, path13, os7, os13, path17, crypto4, import_fs8, import_child_process7, os12, path16, crypto3, fs6, import_module, import_stream2, import_child_process8, import_child_process9, net2, os15, path19, fs7, path18, os14, fs8, path20, os16, import_child_process10, import_fs9, import_module2, os17, import_path4, os18, import_child_process11, import_child_process12, fs9, os19, path21, fs10, fs11, path222, os20, import_child_process13, import_os3, http2, fs15, path26, fs12, path23, fs13, path24, fs14, path25, os21, import_child_process14, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __require2, __esm2, __export2, __copyProps2, __toCommonJS2, DEFAULT_MESH_POLICY, init_repo_mesh_types, git_worktree_exports, execFileAsync2, WORKTREE_DIR_NAME, GIT_TIMEOUT_MS, GIT_MAX_BUFFER, init_git_worktree, config_exports, DEFAULT_CONFIG, MACHINE_ID_PREFIX, init_config, mesh_config_exports, init_mesh_config, coordinator_prompt_exports, TOOLS_SECTION, WORKFLOW_SECTION, init_coordinator_prompt, LEVEL_NUM, LEVEL_LABEL, currentLevel, LOG_DIR, MAX_LOG_SIZE, MAX_LOG_DAYS, currentDate, currentLogFile, writeCount, RING_BUFFER_SIZE, ringBuffer, origConsoleLog, origConsoleError, origConsoleWarn, LOG, interceptorInstalled, LOG_PATH, init_logger, NORMAL_TRACE_BUFFER_SIZE, DEV_TRACE_BUFFER_SIZE, DEFAULT_CONFIG2, currentConfig, init_debug_config, DEFAULT_BINDING_CANDIDATES, cachedBinding, cachedBindingError, GhosttyVtTerminalBackend, init_ghostty_vt_backend, TerminalCtor, XtermTerminalBackend, init_xterm_backend, DEFAULT_SCROLLBACK, loggedTerminalBackends, TerminalScreen, init_terminal_screen, init_spawn_env, cachedPty, NodePtyRuntimeTransport, NodePtyTransportFactory, init_pty_transport, buildCliSpawnEnv, init_provider_cli_shared, init_provider_cli_parse, init_provider_cli_config, init_provider_cli_runtime, provider_cli_adapter_exports, ProviderCliAdapter, init_provider_cli_adapter, execFileAsync, DEFAULT_TIMEOUT_MS, DEFAULT_MAX_BUFFER, GitCommandError, DEFAULT_MAX_FILES, DEFAULT_MAX_BYTES, summarizeGitStatus, InMemoryGitSnapshotStore, DEFAULT_GIT_WORKSPACE_POLL_INTERVAL_MS, MIN_GIT_WORKSPACE_POLL_INTERVAL_MS, GitWorkspaceMonitor, GIT_COMMAND_NAMES, SNAPSHOT_REASONS, FAILURE_REASONS, defaultSnapshotStore, defaultGitCommandServices, BUSY_STATUSES, TERMINAL_STATUSES, TurnSnapshotTracker, MAX_WORKSPACES, MAX_ACTIVITY, MAX_SAVED_SESSIONS, DEFAULT_STATE, BUILTIN_IDE_DEFINITIONS, registeredIDEs, LIVE_LIFECYCLES, DEFAULT_ACTIVE_CHAT_POLL_STATUSES, DEFAULT_CHAT_TAIL_RECENT_MESSAGE_GRACE_MS, LIVE_RUNTIME_LIFECYCLES, DaemonCdpManager, CdpDomHandlers, DEFAULT_MONITOR_CONFIG, StatusMonitor, BUILTIN_CHAT_MESSAGE_KINDS, KNOWN_CHAT_MESSAGE_KINDS, CHAT_MESSAGE_KIND_ALIASES, HISTORY_DIR, RETAIN_DAYS, SAVED_HISTORY_INDEX_VERSION, SAVED_HISTORY_INDEX_FILE, SAVED_HISTORY_INDEX_LOCK_SUFFIX, SAVED_HISTORY_INDEX_LOCK_WAIT_MS, SAVED_HISTORY_INDEX_LOCK_STALE_MS, SAVED_HISTORY_INDEX_LOCK_POLL_MS, SAVED_HISTORY_ROLLUP_THRESHOLD_BYTES, savedHistorySessionCache, savedHistoryFileSummaryCache, savedHistoryBackgroundRefresh, savedHistoryRollupInFlight, ChatHistoryWriter, IDE_PROVIDER_SESSION_CAPABILITIES_BASE, EXTENSION_PROVIDER_SESSION_CAPABILITIES_BASE, ExtensionProviderInstance, VALID_STATUSES, VALID_ROLES, VALID_BUBBLE_STATES, VALID_TURN_STATUSES, DEFAULT_APPROVAL_POSITIVE_HINTS, IdeProviderInstance, DEFAULT_CDP_SCAN_INTERVAL_MS, DEFAULT_CDP_DISCOVERY_INTERVAL_MS, DEFAULT_STATUS_INITIAL_REPORT_DELAY_MS, DEFAULT_STATUS_SERVER_REPORT_INTERVAL_MS, DEFAULT_STATUS_P2P_REPORT_INTERVAL_MS, MIN_MACHINE_RUNTIME_SUBSCRIPTION_INTERVAL_MS, DEFAULT_MACHINE_RUNTIME_SUBSCRIPTION_INTERVAL_MS, MIN_SESSION_HOST_DIAGNOSTICS_SUBSCRIPTION_INTERVAL_MS, DEFAULT_SESSION_HOST_DIAGNOSTICS_SUBSCRIPTION_INTERVAL_MS, DEFAULT_SESSION_HOST_READY_TIMEOUT_MS, STANDALONE_CDP_SCAN_INTERVAL_MS, DaemonCdpScanner, DaemonCdpInitializer, WORKING_STATUSES, FULL_STATUS_ACTIVE_CHAT_OPTIONS, LIVE_STATUS_ACTIVE_CHAT_OPTIONS, STATUS_MODAL_MESSAGE_LIMIT, STATUS_MODAL_BUTTON_LIMIT, IDE_SESSION_CAPABILITIES, EXTENSION_SESSION_CAPABILITIES, PTY_SESSION_CAPABILITIES, CLI_CHAT_SESSION_CAPABILITIES, ACP_SESSION_CAPABILITIES, VALID_INPUT_MEDIA_TYPES, globalStore, RECENT_SEND_WINDOW_MS, READ_CHAT_PROVIDER_EVAL_TIMEOUT_MS, recentSendByTarget, DEFAULT_DEBUG_SANITIZE_OPTIONS, SECRET_KEY_PATTERN, KEY_TO_VK, COMMAND_DEBUG_LEVELS, DaemonCommandHandler, CachedDatabaseSync, CliProviderInstance, AcpProviderInstance, chalkModule, chalkApi, DaemonCliManager, VALID_CAPABILITY_MEDIA_TYPES, KNOWN_PROVIDER_FIELDS, VALUE_CONTROL_TYPES, ProviderLoader, _providerLoader, LOG_DIR2, MAX_FILE_SIZE, MAX_DAYS, SENSITIVE_KEYS, currentDate2, currentFile, writeCount2, SKIP_COMMANDS, DEFAULT_SERVER_NAME, DEFAULT_ADHDEV_MCP_COMMAND, READ_DEBUG_ENABLED, recentReadDebugSignatureBySession, UPGRADE_HELPER_ENV, CHANNEL_NPM_TAG, CHANNEL_SERVER_URL, CHAT_COMMANDS, READ_DEBUG_ENABLED2, DaemonCommandRouter, DaemonStatusReporter, DEFAULT_DAEMON_PORT, DAEMON_WS_PATH, ProviderStreamAdapter, DaemonAgentStreamManager, AgentStreamPoller, ProviderInstanceManager, ARCHIVE_PATH, MAX_ENTRIES_PER_PROVIDER, VersionArchive, DEV_SERVER_PORT, DevServer, SessionHostRuntimeTransport, SessionHostPtyTransportFactory, DEFAULT_SESSION_HOST_APP_NAME, DEFAULT_STANDALONE_SESSION_HOST_APP_NAME, STARTUP_TIMEOUT_MS, STARTUP_POLL_MS, EXTENSION_CATALOG, SessionRegistry;
39560
39624
  var init_dist2 = __esm({
39561
39625
  "../daemon-core/dist/index.mjs"() {
39562
39626
  "use strict";
@@ -39649,13 +39713,14 @@ var init_dist2 = __esm({
39649
39713
  path20 = __toESM(require("path"), 1);
39650
39714
  os16 = __toESM(require("os"), 1);
39651
39715
  init_js_yaml();
39716
+ import_child_process10 = require("child_process");
39652
39717
  import_fs9 = require("fs");
39653
39718
  import_module2 = require("module");
39654
39719
  os17 = __toESM(require("os"), 1);
39655
39720
  import_path4 = require("path");
39656
39721
  os18 = __toESM(require("os"), 1);
39657
- import_child_process10 = require("child_process");
39658
39722
  import_child_process11 = require("child_process");
39723
+ import_child_process12 = require("child_process");
39659
39724
  fs9 = __toESM(require("fs"), 1);
39660
39725
  os19 = __toESM(require("os"), 1);
39661
39726
  path21 = __toESM(require("path"), 1);
@@ -39663,7 +39728,7 @@ var init_dist2 = __esm({
39663
39728
  fs11 = __toESM(require("fs"), 1);
39664
39729
  path222 = __toESM(require("path"), 1);
39665
39730
  os20 = __toESM(require("os"), 1);
39666
- import_child_process12 = require("child_process");
39731
+ import_child_process13 = require("child_process");
39667
39732
  import_os3 = require("os");
39668
39733
  http2 = __toESM(require("http"), 1);
39669
39734
  fs15 = __toESM(require("fs"), 1);
@@ -39677,7 +39742,7 @@ var init_dist2 = __esm({
39677
39742
  os21 = __toESM(require("os"), 1);
39678
39743
  init_dist();
39679
39744
  init_dist();
39680
- import_child_process13 = require("child_process");
39745
+ import_child_process14 = require("child_process");
39681
39746
  __defProp2 = Object.defineProperty;
39682
39747
  __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
39683
39748
  __getOwnPropNames2 = Object.getOwnPropertyNames;