@adhdev/daemon-standalone 0.9.76-rc.50 → 0.9.76-rc.52
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/dist/index.js +80 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +55 -16
- package/vendor/mcp-server/index.js.map +1 -1
- package/vendor/session-host-daemon/index.js +1 -0
- package/vendor/session-host-daemon/index.js.map +1 -1
- package/vendor/session-host-daemon/index.mjs +2 -0
- package/vendor/session-host-daemon/index.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -30801,6 +30801,16 @@ function buildSendInputSignature(input) {
|
|
|
30801
30801
|
function getSendChatInputEnvelope(args) {
|
|
30802
30802
|
return normalizeInputEnvelope(args?.input ? { input: args.input } : args);
|
|
30803
30803
|
}
|
|
30804
|
+
function sleep(ms) {
|
|
30805
|
+
return new Promise((resolve162) => setTimeout(resolve162, ms));
|
|
30806
|
+
}
|
|
30807
|
+
async function waitOnceForFreshHermesCliStart(adapter, log) {
|
|
30808
|
+
if (adapter.cliType !== "hermes-cli") return;
|
|
30809
|
+
const status = typeof adapter.getStatus === "function" ? adapter.getStatus()?.status : void 0;
|
|
30810
|
+
if (status !== "starting") return;
|
|
30811
|
+
log(`Hermes CLI is still starting; waiting ${HERMES_CLI_STARTING_SEND_SETTLE_MS}ms before first send`);
|
|
30812
|
+
await sleep(HERMES_CLI_STARTING_SEND_SETTLE_MS);
|
|
30813
|
+
}
|
|
30804
30814
|
function getHistorySessionId(h, args) {
|
|
30805
30815
|
const explicit = typeof args?.historySessionId === "string" ? args.historySessionId.trim() : "";
|
|
30806
30816
|
if (explicit) return explicit;
|
|
@@ -31653,6 +31663,7 @@ async function handleSendChat(h, args) {
|
|
|
31653
31663
|
try {
|
|
31654
31664
|
assertTextOnlyInput(provider, input);
|
|
31655
31665
|
if (!text) return { success: false, error: "text required for PTY send" };
|
|
31666
|
+
await waitOnceForFreshHermesCliStart(adapter, _log);
|
|
31656
31667
|
await adapter.sendMessage(text);
|
|
31657
31668
|
return _logSendSuccess(`${transport}-adapter`, adapter.cliType);
|
|
31658
31669
|
} catch (e) {
|
|
@@ -37286,7 +37297,7 @@ function getCliTargetBundle(ctx, type2, instanceId) {
|
|
|
37286
37297
|
if (!adapter) return null;
|
|
37287
37298
|
return { target, instance, adapter };
|
|
37288
37299
|
}
|
|
37289
|
-
function
|
|
37300
|
+
function sleep2(ms) {
|
|
37290
37301
|
return new Promise((resolve162) => setTimeout(resolve162, ms));
|
|
37291
37302
|
}
|
|
37292
37303
|
async function waitForCliReady(ctx, type2, instanceId, timeoutMs) {
|
|
@@ -37303,7 +37314,7 @@ async function waitForCliReady(ctx, type2, instanceId, timeoutMs) {
|
|
|
37303
37314
|
return bundle;
|
|
37304
37315
|
}
|
|
37305
37316
|
}
|
|
37306
|
-
await
|
|
37317
|
+
await sleep2(100);
|
|
37307
37318
|
}
|
|
37308
37319
|
return getCliTargetBundle(ctx, type2, instanceId);
|
|
37309
37320
|
}
|
|
@@ -37359,7 +37370,7 @@ async function runCliExerciseInternal(ctx, body) {
|
|
|
37359
37370
|
const message = String(lastLaunchError.message || "");
|
|
37360
37371
|
const retryable = /ECONNREFUSED|session-host|Session host/i.test(message);
|
|
37361
37372
|
if (!retryable || attempt === 2) break;
|
|
37362
|
-
await
|
|
37373
|
+
await sleep2(1e3);
|
|
37363
37374
|
}
|
|
37364
37375
|
}
|
|
37365
37376
|
if (!launched) {
|
|
@@ -37422,16 +37433,16 @@ async function runCliExerciseInternal(ctx, body) {
|
|
|
37422
37433
|
const modal = debug?.activeModal || trace?.activeModal || null;
|
|
37423
37434
|
noteStatus(status);
|
|
37424
37435
|
if (resolveActiveModalIfNeeded(status, modal)) {
|
|
37425
|
-
await
|
|
37436
|
+
await sleep2(150);
|
|
37426
37437
|
continue;
|
|
37427
37438
|
}
|
|
37428
37439
|
const startupParseGate = !!debug?.startupParseGate;
|
|
37429
37440
|
if (status === "idle" && !startupParseGate) break;
|
|
37430
|
-
await
|
|
37441
|
+
await sleep2(150);
|
|
37431
37442
|
}
|
|
37432
37443
|
ctx.instanceManager.sendEvent(bundle.target.instanceId, "send_message", { text });
|
|
37433
37444
|
while (Date.now() - startAt < Math.max(1e3, timeoutMs)) {
|
|
37434
|
-
await
|
|
37445
|
+
await sleep2(150);
|
|
37435
37446
|
bundle = getCliTargetBundle(ctx, type2, bundle.target.instanceId);
|
|
37436
37447
|
if (!bundle) {
|
|
37437
37448
|
throw new Error("CLI instance disappeared during exercise");
|
|
@@ -39427,29 +39438,52 @@ function resolveSessionHostAppNameResolution(options = {}) {
|
|
|
39427
39438
|
function resolveSessionHostAppName(options = {}) {
|
|
39428
39439
|
return resolveSessionHostAppNameResolution(options).appName;
|
|
39429
39440
|
}
|
|
39430
|
-
|
|
39441
|
+
function getMissingRequestTypes(diagnostics, requiredRequestTypes) {
|
|
39442
|
+
const supported = new Set(diagnostics?.supportedRequestTypes || []);
|
|
39443
|
+
return requiredRequestTypes.filter((requestType) => !supported.has(requestType));
|
|
39444
|
+
}
|
|
39445
|
+
async function assertRequiredRequestTypes(client, requiredRequestTypes) {
|
|
39446
|
+
if (requiredRequestTypes.length === 0) return;
|
|
39447
|
+
const response = await client.request({
|
|
39448
|
+
type: "get_host_diagnostics",
|
|
39449
|
+
payload: { includeSessions: false }
|
|
39450
|
+
});
|
|
39451
|
+
const missing = getMissingRequestTypes(response.success ? response.result : void 0, requiredRequestTypes);
|
|
39452
|
+
if (missing.length > 0) {
|
|
39453
|
+
const detail = response.success ? "" : ` (${response.error || "capability probe failed"})`;
|
|
39454
|
+
throw new SessionHostCompatibilityError(
|
|
39455
|
+
`Session host does not support required request types: ${missing.join(", ")}${detail}`
|
|
39456
|
+
);
|
|
39457
|
+
}
|
|
39458
|
+
}
|
|
39459
|
+
async function canConnect(endpoint, requiredRequestTypes = []) {
|
|
39431
39460
|
const client = new SessionHostClient({ endpoint });
|
|
39432
39461
|
try {
|
|
39433
39462
|
await client.connect();
|
|
39434
|
-
await client
|
|
39463
|
+
await assertRequiredRequestTypes(client, requiredRequestTypes);
|
|
39435
39464
|
return true;
|
|
39436
|
-
} catch {
|
|
39465
|
+
} catch (error48) {
|
|
39466
|
+
if (error48 instanceof SessionHostCompatibilityError) throw error48;
|
|
39437
39467
|
return false;
|
|
39468
|
+
} finally {
|
|
39469
|
+
await client.close().catch(() => {
|
|
39470
|
+
});
|
|
39438
39471
|
}
|
|
39439
39472
|
}
|
|
39440
|
-
async function waitForReady(endpoint, timeoutMs = STARTUP_TIMEOUT_MS) {
|
|
39473
|
+
async function waitForReady(endpoint, timeoutMs = STARTUP_TIMEOUT_MS, requiredRequestTypes = []) {
|
|
39441
39474
|
const deadline = Date.now() + timeoutMs;
|
|
39442
39475
|
while (Date.now() < deadline) {
|
|
39443
|
-
if (await canConnect(endpoint)) return;
|
|
39476
|
+
if (await canConnect(endpoint, requiredRequestTypes)) return;
|
|
39444
39477
|
await new Promise((resolve162) => setTimeout(resolve162, STARTUP_POLL_MS));
|
|
39445
39478
|
}
|
|
39446
39479
|
throw new Error(`Session host did not become ready within ${timeoutMs}ms`);
|
|
39447
39480
|
}
|
|
39448
39481
|
async function ensureSessionHostReady(options) {
|
|
39449
39482
|
const endpoint = getDefaultSessionHostEndpoint(options.appName || "adhdev");
|
|
39450
|
-
|
|
39483
|
+
const requiredRequestTypes = options.requiredRequestTypes || [];
|
|
39484
|
+
if (await canConnect(endpoint, requiredRequestTypes)) return endpoint;
|
|
39451
39485
|
options.spawnHost();
|
|
39452
|
-
await waitForReady(endpoint, options.timeoutMs);
|
|
39486
|
+
await waitForReady(endpoint, options.timeoutMs, requiredRequestTypes);
|
|
39453
39487
|
return endpoint;
|
|
39454
39488
|
}
|
|
39455
39489
|
async function listHostedCliRuntimes(endpoint) {
|
|
@@ -39816,7 +39850,7 @@ async function shutdownDaemonComponents(components) {
|
|
|
39816
39850
|
}
|
|
39817
39851
|
cdpManagers.clear();
|
|
39818
39852
|
}
|
|
39819
|
-
var path4, import_promises4, import_fs3, import_child_process, import_util3, import_os2, import_path, import_fs4, import_crypto2, import_fs5, import_path2, import_crypto3, fs2, path10, os4, os8, os9, path14, import_child_process2, os10, path15, os11, import_child_process3, import_fs6, import_promises5, path, import_util4, import_promises6, path22, path32, fs, os5, path5, import_crypto4, path6, path7, import_fs7, import_path3, import_child_process4, import_fs8, import_os3, path8, import_child_process5, os22, path9, import_fs9, os32, import_child_process6, http, crypto2, fs3, path11, os52, fs4, os6, path12, import_crypto5, fs5, path13, os7, os13, path17, crypto4, import_fs10, 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_fs11, import_module2, os17, import_path4, os18, import_child_process11, import_child_process12, fs9, os19, path21, fs10, fs11, path222, os20, import_child_process13, import_os4, 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, SESSION_CLEANUP_MODES, 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, COORDINATOR_DELEGATED_ENV_UNSETS, 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, HERMES_CLI_TYPE, HERMES_MCP_CONFIG_PATH, 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;
|
|
39853
|
+
var path4, import_promises4, import_fs3, import_child_process, import_util3, import_os2, import_path, import_fs4, import_crypto2, import_fs5, import_path2, import_crypto3, fs2, path10, os4, os8, os9, path14, import_child_process2, os10, path15, os11, import_child_process3, import_fs6, import_promises5, path, import_util4, import_promises6, path22, path32, fs, os5, path5, import_crypto4, path6, path7, import_fs7, import_path3, import_child_process4, import_fs8, import_os3, path8, import_child_process5, os22, path9, import_fs9, os32, import_child_process6, http, crypto2, fs3, path11, os52, fs4, os6, path12, import_crypto5, fs5, path13, os7, os13, path17, crypto4, import_fs10, 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_fs11, import_module2, os17, import_path4, os18, import_child_process11, import_child_process12, fs9, os19, path21, fs10, fs11, path222, os20, import_child_process13, import_os4, 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, SESSION_CLEANUP_MODES, 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, HERMES_CLI_STARTING_SEND_SETTLE_MS, recentSendByTarget, DEFAULT_DEBUG_SANITIZE_OPTIONS, SECRET_KEY_PATTERN, KEY_TO_VK, COMMAND_DEBUG_LEVELS, DaemonCommandHandler, CachedDatabaseSync, CliProviderInstance, AcpProviderInstance, chalkModule, chalkApi, COORDINATOR_DELEGATED_ENV_UNSETS, 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, HERMES_CLI_TYPE, HERMES_MCP_CONFIG_PATH, 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, SessionHostCompatibilityError, EXTENSION_CATALOG, SessionRegistry;
|
|
39820
39854
|
var init_dist2 = __esm({
|
|
39821
39855
|
"../daemon-core/dist/index.mjs"() {
|
|
39822
39856
|
"use strict";
|
|
@@ -45924,6 +45958,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
45924
45958
|
globalStore = createDebugTraceStore({ enabled: false, capacity: getDebugRuntimeConfig().traceBufferSize });
|
|
45925
45959
|
RECENT_SEND_WINDOW_MS = 1200;
|
|
45926
45960
|
READ_CHAT_PROVIDER_EVAL_TIMEOUT_MS = 25e3;
|
|
45961
|
+
HERMES_CLI_STARTING_SEND_SETTLE_MS = 2e3;
|
|
45927
45962
|
recentSendByTarget = /* @__PURE__ */ new Map();
|
|
45928
45963
|
DEFAULT_DEBUG_SANITIZE_OPTIONS = {
|
|
45929
45964
|
maxDepth: 8,
|
|
@@ -47176,8 +47211,6 @@ ${effect.notification.body || ""}`.trim();
|
|
|
47176
47211
|
const aTime = getTime(a.message);
|
|
47177
47212
|
const bTime = getTime(b.message);
|
|
47178
47213
|
if (aTime && bTime && aTime !== bTime) return aTime - bTime;
|
|
47179
|
-
if (aTime && !bTime && a.source === "runtime" && b.source === "parsed") return -1;
|
|
47180
|
-
if (!aTime && bTime && a.source === "parsed" && b.source === "runtime") return 1;
|
|
47181
47214
|
return a.index - b.index;
|
|
47182
47215
|
}).map((entry) => entry.message));
|
|
47183
47216
|
}
|
|
@@ -55312,6 +55345,12 @@ data: ${JSON.stringify(msg.data)}
|
|
|
55312
55345
|
DEFAULT_STANDALONE_SESSION_HOST_APP_NAME = "adhdev-standalone";
|
|
55313
55346
|
STARTUP_TIMEOUT_MS = DEFAULT_SESSION_HOST_READY_TIMEOUT_MS;
|
|
55314
55347
|
STARTUP_POLL_MS = 200;
|
|
55348
|
+
SessionHostCompatibilityError = class extends Error {
|
|
55349
|
+
constructor(message) {
|
|
55350
|
+
super(message);
|
|
55351
|
+
this.name = "SessionHostCompatibilityError";
|
|
55352
|
+
}
|
|
55353
|
+
};
|
|
55315
55354
|
EXTENSION_CATALOG = [
|
|
55316
55355
|
// AI Agent extensions
|
|
55317
55356
|
{
|