@adhdev/daemon-standalone 0.9.76-rc.60 → 0.9.76-rc.61

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/public/index.html CHANGED
@@ -7,9 +7,9 @@
7
7
  <meta name="description" content="ADHDev self-hosted dashboard for controlling AI agents" />
8
8
  <link rel="icon" href="/otter-logo.png" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet" />
10
- <script type="module" crossorigin src="/assets/index-CPCf-dYE.js"></script>
10
+ <script type="module" crossorigin src="/assets/index-re27xE0w.js"></script>
11
11
  <link rel="modulepreload" crossorigin href="/assets/vendor-CLec0455.js">
12
- <link rel="stylesheet" crossorigin href="/assets/index-Pbz3ARg_.css">
12
+ <link rel="stylesheet" crossorigin href="/assets/index-Cg1iVK9t.css">
13
13
  </head>
14
14
  <body>
15
15
  <!-- Apply theme immediately to prevent FOIT (Flash of Incorrect Theme) -->
@@ -25051,6 +25051,12 @@ __export(dist_exports, {
25051
25051
  AcpProviderInstance: () => AcpProviderInstance,
25052
25052
  AgentStreamPoller: () => AgentStreamPoller,
25053
25053
  BUILTIN_CHAT_MESSAGE_KINDS: () => BUILTIN_CHAT_MESSAGE_KINDS,
25054
+ CHAT_MESSAGE_ACTIVITY_SOURCES: () => CHAT_MESSAGE_ACTIVITY_SOURCES,
25055
+ CHAT_MESSAGE_AUDIENCES: () => CHAT_MESSAGE_AUDIENCES,
25056
+ CHAT_MESSAGE_INTERNAL_SOURCES: () => CHAT_MESSAGE_INTERNAL_SOURCES,
25057
+ CHAT_MESSAGE_SOURCES: () => CHAT_MESSAGE_SOURCES,
25058
+ CHAT_MESSAGE_TRANSCRIPT_VISIBILITIES: () => CHAT_MESSAGE_TRANSCRIPT_VISIBILITIES,
25059
+ CHAT_MESSAGE_VISIBILITIES: () => CHAT_MESSAGE_VISIBILITIES,
25054
25060
  CdpDomHandlers: () => CdpDomHandlers,
25055
25061
  CliProviderInstance: () => CliProviderInstance,
25056
25062
  DAEMON_WS_PATH: () => DAEMON_WS_PATH,
@@ -25113,6 +25119,7 @@ __export(dist_exports, {
25113
25119
  buildThoughtChatMessage: () => buildThoughtChatMessage,
25114
25120
  buildToolChatMessage: () => buildToolChatMessage,
25115
25121
  buildUserChatMessage: () => buildUserChatMessage,
25122
+ classifyChatMessageVisibility: () => classifyChatMessageVisibility,
25116
25123
  classifyHotChatSessionsForSubscriptionFlush: () => classifyHotChatSessionsForSubscriptionFlush,
25117
25124
  clearDebugTrace: () => clearDebugTrace,
25118
25125
  compareGitSnapshots: () => compareGitSnapshots,
@@ -25132,6 +25139,9 @@ __export(dist_exports, {
25132
25139
  detectIDEs: () => detectIDEs,
25133
25140
  ensureSessionHostReady: () => ensureSessionHostReady,
25134
25141
  execNpmCommandSync: () => execNpmCommandSync,
25142
+ filterActivityChatMessages: () => filterActivityChatMessages,
25143
+ filterChatMessagesByVisibility: () => filterChatMessagesByVisibility,
25144
+ filterInternalChatMessages: () => filterInternalChatMessages,
25135
25145
  filterUserFacingChatMessages: () => filterUserFacingChatMessages,
25136
25146
  findCdpManager: () => findCdpManager,
25137
25147
  flattenMessageParts: () => flattenMessageParts,
@@ -25163,11 +25173,13 @@ __export(dist_exports, {
25163
25173
  initDaemonComponents: () => initDaemonComponents,
25164
25174
  installExtensions: () => installExtensions,
25165
25175
  installGlobalInterceptor: () => installGlobalInterceptor,
25176
+ isActivityChatMessage: () => isActivityChatMessage,
25166
25177
  isBuiltinChatMessageKind: () => isBuiltinChatMessageKind,
25167
25178
  isCdpConnected: () => isCdpConnected,
25168
25179
  isExtensionInstalled: () => isExtensionInstalled,
25169
25180
  isGitCommandName: () => isGitCommandName,
25170
25181
  isIdeRunning: () => isIdeRunning,
25182
+ isInternalChatMessage: () => isInternalChatMessage,
25171
25183
  isManagedStatusWaiting: () => isManagedStatusWaiting,
25172
25184
  isManagedStatusWorking: () => isManagedStatusWorking,
25173
25185
  isPathInside: () => isPathInside,
@@ -28803,37 +28815,157 @@ function readMessageMeta(message) {
28803
28815
  function readStringField(value) {
28804
28816
  return typeof value === "string" ? value.trim().toLowerCase() : "";
28805
28817
  }
28806
- function readVisibilityField(message, meta3) {
28818
+ function readRecordField(message, meta3, key) {
28807
28819
  const record2 = message;
28808
- return readStringField(record2.visibility ?? record2.transcriptVisibility ?? meta3?.visibility ?? meta3?.transcriptVisibility);
28820
+ return record2[key] ?? meta3?.[key];
28821
+ }
28822
+ function readVisibilityField(message, meta3) {
28823
+ return readStringField(readRecordField(message, meta3, "visibility"));
28809
28824
  }
28810
- function isExplicitlyHiddenFromTranscript(message, meta3) {
28825
+ function readTranscriptVisibilityField(message, meta3) {
28811
28826
  const record2 = message;
28812
- const visibility = readVisibilityField(message, meta3);
28813
- const audience = readStringField(record2.audience ?? meta3?.audience);
28814
- const source = readStringField(record2.source ?? meta3?.source);
28815
- return visibility === "hidden" || visibility === "debug" || visibility === "internal" || audience === "debug" || audience === "trace" || audience === "internal" || source === "runtime_status" || source === "runtime_activity" || source === "provider_chrome" || source === "control" || record2.internal === true || record2.isInternal === true || record2.debug === true || meta3?.internal === true || meta3?.isInternal === true || meta3?.debug === true || meta3?.statusOnly === true || meta3?.controlOnly === true;
28827
+ return readStringField(record2.transcriptVisibility ?? meta3?.transcriptVisibility ?? record2.visibility ?? meta3?.visibility);
28816
28828
  }
28817
- function isExplicitlyVisibleInTranscript(message, meta3) {
28829
+ function hasBooleanMarker(message, meta3, keys) {
28818
28830
  const record2 = message;
28819
- const visibility = readVisibilityField(message, meta3);
28820
- const audience = readStringField(record2.audience ?? meta3?.audience);
28821
- return visibility === "visible" || visibility === "user" || visibility === "chat" || audience === "chat" || record2.userFacing === true || meta3?.userFacing === true;
28831
+ return keys.some((key) => record2[key] === true || meta3?.[key] === true);
28822
28832
  }
28823
- function isUserFacingChatMessage(message) {
28824
- if (!message) return false;
28825
- const meta3 = readMessageMeta(message);
28826
- if (isExplicitlyHiddenFromTranscript(message, meta3)) return false;
28827
- if (isExplicitlyVisibleInTranscript(message, meta3)) return true;
28828
- const role = typeof message.role === "string" ? message.role.trim().toLowerCase() : "";
28829
- const kind = resolveChatMessageKind(message);
28833
+ function isActivityKind(kind) {
28834
+ return kind === "thought" || kind === "tool" || kind === "terminal";
28835
+ }
28836
+ function isOrdinaryVisibleTurn(message, role, kind) {
28830
28837
  if (role === "user" || role === "human") return kind === "standard" || kind === "";
28831
28838
  if (role === "assistant") return kind === "standard" || kind === "";
28832
28839
  return false;
28833
28840
  }
28841
+ function classifyChatMessageVisibility(message) {
28842
+ if (!message) {
28843
+ return {
28844
+ surface: "internal",
28845
+ isUserFacing: false,
28846
+ isActivityFacing: false,
28847
+ isInternal: true,
28848
+ explicitUserFacing: false,
28849
+ explicitHidden: true,
28850
+ role: "",
28851
+ kind: "standard",
28852
+ visibility: "",
28853
+ transcriptVisibility: "",
28854
+ audience: "",
28855
+ source: ""
28856
+ };
28857
+ }
28858
+ const meta3 = readMessageMeta(message);
28859
+ const role = typeof message.role === "string" ? message.role.trim().toLowerCase() : "";
28860
+ const kind = resolveChatMessageKind(message);
28861
+ const visibility = readVisibilityField(message, meta3);
28862
+ const transcriptVisibility = readTranscriptVisibilityField(message, meta3);
28863
+ const audience = readStringField(readRecordField(message, meta3, "audience"));
28864
+ const source = readStringField(readRecordField(message, meta3, "source"));
28865
+ const explicitHidden = EXPLICIT_HIDDEN_VISIBILITIES.has(visibility) || EXPLICIT_HIDDEN_VISIBILITIES.has(transcriptVisibility) || HIDDEN_AUDIENCES.has(audience) || hasBooleanMarker(message, meta3, ["internal", "isInternal", "debug", "statusOnly", "controlOnly"]);
28866
+ const explicitUserFacing = EXPLICIT_VISIBLE_VISIBILITIES.has(visibility) || EXPLICIT_VISIBLE_VISIBILITIES.has(transcriptVisibility) || audience === "chat" || hasBooleanMarker(message, meta3, ["userFacing"]);
28867
+ if (explicitHidden) {
28868
+ const activityLike = isActivityKind(kind) || ACTIVITY_SOURCE_SET.has(source);
28869
+ return {
28870
+ surface: activityLike ? "activity" : "internal",
28871
+ isUserFacing: false,
28872
+ isActivityFacing: activityLike,
28873
+ isInternal: !activityLike,
28874
+ explicitUserFacing,
28875
+ explicitHidden,
28876
+ role,
28877
+ kind,
28878
+ visibility,
28879
+ transcriptVisibility,
28880
+ audience,
28881
+ source
28882
+ };
28883
+ }
28884
+ if (explicitUserFacing) {
28885
+ return {
28886
+ surface: "chat",
28887
+ isUserFacing: true,
28888
+ isActivityFacing: false,
28889
+ isInternal: false,
28890
+ explicitUserFacing,
28891
+ explicitHidden,
28892
+ role,
28893
+ kind,
28894
+ visibility,
28895
+ transcriptVisibility,
28896
+ audience,
28897
+ source
28898
+ };
28899
+ }
28900
+ if (INTERNAL_SOURCE_SET.has(source) || role === "system" || kind === "system") {
28901
+ return {
28902
+ surface: "internal",
28903
+ isUserFacing: false,
28904
+ isActivityFacing: false,
28905
+ isInternal: true,
28906
+ explicitUserFacing,
28907
+ explicitHidden,
28908
+ role,
28909
+ kind,
28910
+ visibility,
28911
+ transcriptVisibility,
28912
+ audience,
28913
+ source
28914
+ };
28915
+ }
28916
+ if (ACTIVITY_SOURCE_SET.has(source) || isActivityKind(kind)) {
28917
+ return {
28918
+ surface: "activity",
28919
+ isUserFacing: false,
28920
+ isActivityFacing: true,
28921
+ isInternal: false,
28922
+ explicitUserFacing,
28923
+ explicitHidden,
28924
+ role,
28925
+ kind,
28926
+ visibility,
28927
+ transcriptVisibility,
28928
+ audience,
28929
+ source
28930
+ };
28931
+ }
28932
+ const isUserFacing = isOrdinaryVisibleTurn(message, role, kind);
28933
+ return {
28934
+ surface: isUserFacing ? "chat" : "internal",
28935
+ isUserFacing,
28936
+ isActivityFacing: false,
28937
+ isInternal: !isUserFacing,
28938
+ explicitUserFacing,
28939
+ explicitHidden,
28940
+ role,
28941
+ kind,
28942
+ visibility,
28943
+ transcriptVisibility,
28944
+ audience,
28945
+ source
28946
+ };
28947
+ }
28948
+ function isUserFacingChatMessage(message) {
28949
+ return classifyChatMessageVisibility(message).isUserFacing;
28950
+ }
28951
+ function isActivityChatMessage(message) {
28952
+ return classifyChatMessageVisibility(message).isActivityFacing;
28953
+ }
28954
+ function isInternalChatMessage(message) {
28955
+ return classifyChatMessageVisibility(message).isInternal;
28956
+ }
28834
28957
  function filterUserFacingChatMessages(messages) {
28835
28958
  return (Array.isArray(messages) ? messages : []).filter((message) => isUserFacingChatMessage(message));
28836
28959
  }
28960
+ function filterActivityChatMessages(messages) {
28961
+ return (Array.isArray(messages) ? messages : []).filter((message) => isActivityChatMessage(message));
28962
+ }
28963
+ function filterInternalChatMessages(messages) {
28964
+ return (Array.isArray(messages) ? messages : []).filter((message) => isInternalChatMessage(message));
28965
+ }
28966
+ function filterChatMessagesByVisibility(messages, surface) {
28967
+ return (Array.isArray(messages) ? messages : []).filter((message) => classifyChatMessageVisibility(message).surface === surface);
28968
+ }
28837
28969
  function extractProviderControlValues(controls, data) {
28838
28970
  if (!data || typeof data !== "object") return void 0;
28839
28971
  const values = {};
@@ -35549,7 +35681,8 @@ function prepareSessionChatTailUpdate(input) {
35549
35681
  update: null
35550
35682
  };
35551
35683
  }
35552
- const messages = Array.isArray(result.messages) ? result.messages : [];
35684
+ const fullMessages = normalizeChatMessages(Array.isArray(result.messages) ? result.messages : []);
35685
+ const messages = filterUserFacingChatMessages(fullMessages);
35553
35686
  const title = typeof result.title === "string" ? result.title : void 0;
35554
35687
  const activeModal = normalizeChatTailActiveModal(result.activeModal);
35555
35688
  const status = typeof result.status === "string" ? result.status : "idle";
@@ -39907,7 +40040,7 @@ async function shutdownDaemonComponents(components) {
39907
40040
  }
39908
40041
  cdpManagers.clear();
39909
40042
  }
39910
- 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;
40043
+ 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, CHAT_MESSAGE_VISIBILITIES, CHAT_MESSAGE_TRANSCRIPT_VISIBILITIES, CHAT_MESSAGE_AUDIENCES, CHAT_MESSAGE_SOURCES, CHAT_MESSAGE_ACTIVITY_SOURCES, CHAT_MESSAGE_INTERNAL_SOURCES, KNOWN_CHAT_MESSAGE_KINDS, CHAT_MESSAGE_KIND_ALIASES, EXPLICIT_HIDDEN_VISIBILITIES, EXPLICIT_VISIBLE_VISIBILITIES, HIDDEN_AUDIENCES, ACTIVITY_SOURCE_SET, INTERNAL_SOURCE_SET, 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;
39911
40044
  var init_dist2 = __esm({
39912
40045
  "../daemon-core/dist/index.mjs"() {
39913
40046
  "use strict";
@@ -44247,6 +44380,20 @@ ${lastSnapshot}`;
44247
44380
  }
44248
44381
  };
44249
44382
  BUILTIN_CHAT_MESSAGE_KINDS = ["standard", "thought", "tool", "terminal", "system"];
44383
+ CHAT_MESSAGE_VISIBILITIES = ["user", "debug", "internal", "hidden"];
44384
+ CHAT_MESSAGE_TRANSCRIPT_VISIBILITIES = ["visible", "chat", "user", "debug", "internal", "hidden"];
44385
+ CHAT_MESSAGE_AUDIENCES = ["chat", "debug", "trace", "internal"];
44386
+ CHAT_MESSAGE_SOURCES = [
44387
+ "assistant_text",
44388
+ "tool_call",
44389
+ "terminal_command",
44390
+ "runtime_activity",
44391
+ "runtime_status",
44392
+ "provider_chrome",
44393
+ "control"
44394
+ ];
44395
+ CHAT_MESSAGE_ACTIVITY_SOURCES = ["tool_call", "terminal_command", "runtime_activity"];
44396
+ CHAT_MESSAGE_INTERNAL_SOURCES = ["runtime_status", "provider_chrome", "control"];
44250
44397
  KNOWN_CHAT_MESSAGE_KINDS = new Set(BUILTIN_CHAT_MESSAGE_KINDS);
44251
44398
  CHAT_MESSAGE_KIND_ALIASES = {
44252
44399
  text: "standard",
@@ -44266,6 +44413,11 @@ ${lastSnapshot}`;
44266
44413
  shell: "terminal",
44267
44414
  console: "terminal"
44268
44415
  };
44416
+ EXPLICIT_HIDDEN_VISIBILITIES = /* @__PURE__ */ new Set(["hidden", "debug", "internal"]);
44417
+ EXPLICIT_VISIBLE_VISIBILITIES = /* @__PURE__ */ new Set(["visible", "user", "chat"]);
44418
+ HIDDEN_AUDIENCES = /* @__PURE__ */ new Set(["debug", "trace", "internal"]);
44419
+ ACTIVITY_SOURCE_SET = new Set(CHAT_MESSAGE_ACTIVITY_SOURCES);
44420
+ INTERNAL_SOURCE_SET = new Set(CHAT_MESSAGE_INTERNAL_SOURCES);
44269
44421
  HISTORY_DIR = path11.join(os52.homedir(), ".adhdev", "history");
44270
44422
  RETAIN_DAYS = 30;
44271
44423
  SAVED_HISTORY_INDEX_VERSION = 1;