@ashx-j/lunr-dev 0.2.40-dev.58.1 → 0.2.40-dev.60.1

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.
Files changed (136) hide show
  1. package/dist/builtin-extensions/lunr-browser.d.ts +1 -1
  2. package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js +1 -1
  3. package/dist/builtin-extensions/pi-lsp-extension/bemol-extension/index.js +2 -1
  4. package/dist/builtin-extensions/pi-lsp-extension/src/index.js +2 -1
  5. package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts +1 -1
  6. package/dist/builtin-extensions/pi-subagents/src/tui/render.js +1 -1
  7. package/dist/cli/config-selector.js +1 -1
  8. package/dist/cli/startup-ui.js +1 -1
  9. package/dist/core/agent-session.js +1 -1
  10. package/dist/core/export-html/index.js +1 -1
  11. package/dist/core/export-html/tool-renderer.d.ts +1 -1
  12. package/dist/core/extensions/runner.js +1 -1
  13. package/dist/core/extensions/types.d.ts +1 -1
  14. package/dist/core/resource-loader.d.ts +1 -1
  15. package/dist/core/resource-loader.js +1 -1
  16. package/dist/{modes/interactive → core}/theme/theme.d.ts +1 -1
  17. package/dist/{modes/interactive → core}/theme/theme.js +4 -4
  18. package/dist/gateway/agent-bridge.js +1 -1
  19. package/dist/gateway/setup.js +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +2 -2
  22. package/dist/main.js +1 -1
  23. package/dist/modes/interactive/chat-history.js +1 -1
  24. package/dist/modes/interactive/components/assistant-message.js +1 -1
  25. package/dist/modes/interactive/components/bash-execution.js +1 -1
  26. package/dist/modes/interactive/components/boot-screen.js +1 -1
  27. package/dist/modes/interactive/components/bordered-loader.d.ts +1 -1
  28. package/dist/modes/interactive/components/branch-summary-message.js +1 -1
  29. package/dist/modes/interactive/components/compaction-summary-message.js +1 -1
  30. package/dist/modes/interactive/components/config-selector.js +1 -1
  31. package/dist/modes/interactive/components/context-view.js +1 -1
  32. package/dist/modes/interactive/components/copyable-text.js +1 -1
  33. package/dist/modes/interactive/components/custom-entry.js +1 -1
  34. package/dist/modes/interactive/components/custom-message.js +1 -1
  35. package/dist/modes/interactive/components/diff.js +1 -1
  36. package/dist/modes/interactive/components/dynamic-border.js +1 -1
  37. package/dist/modes/interactive/components/extension-editor.js +1 -1
  38. package/dist/modes/interactive/components/extension-input.js +1 -1
  39. package/dist/modes/interactive/components/extension-selector.js +1 -1
  40. package/dist/modes/interactive/components/footer.js +1 -1
  41. package/dist/modes/interactive/components/injected-prompt-message.js +1 -1
  42. package/dist/modes/interactive/components/keybinding-hints.js +1 -1
  43. package/dist/modes/interactive/components/login-dialog.js +1 -1
  44. package/dist/modes/interactive/components/model-selector.js +1 -1
  45. package/dist/modes/interactive/components/oauth-selector.js +1 -1
  46. package/dist/modes/interactive/components/onboarding.js +1 -1
  47. package/dist/modes/interactive/components/plan-message.js +1 -1
  48. package/dist/modes/interactive/components/processes-selector.js +1 -1
  49. package/dist/modes/interactive/components/scoped-models-selector.js +1 -1
  50. package/dist/modes/interactive/components/session-selector.js +1 -1
  51. package/dist/modes/interactive/components/settings-selector.d.ts +1 -1
  52. package/dist/modes/interactive/components/settings-selector.js +1 -1
  53. package/dist/modes/interactive/components/show-images-selector.js +1 -1
  54. package/dist/modes/interactive/components/skill-invocation-message.js +1 -1
  55. package/dist/modes/interactive/components/status-indicator.js +1 -1
  56. package/dist/modes/interactive/components/theme-selector.js +1 -1
  57. package/dist/modes/interactive/components/thinking-selector.js +1 -1
  58. package/dist/modes/interactive/components/thinking-tail.js +1 -1
  59. package/dist/modes/interactive/components/tool-execution.js +1 -1
  60. package/dist/modes/interactive/components/tree-selector.js +1 -1
  61. package/dist/modes/interactive/components/trust-selector.js +1 -1
  62. package/dist/modes/interactive/components/usage-view.js +1 -1
  63. package/dist/modes/interactive/components/user-message-selector.js +1 -1
  64. package/dist/modes/interactive/components/user-message.js +1 -1
  65. package/dist/modes/interactive/extension-dialogs.d.ts +1 -1
  66. package/dist/modes/interactive/extension-dialogs.js +1 -1
  67. package/dist/modes/interactive/extension-widgets.d.ts +1 -1
  68. package/dist/modes/interactive/extension-widgets.js +1 -1
  69. package/dist/modes/interactive/help-commands.js +1 -1
  70. package/dist/modes/interactive/interactive-mode.js +1 -1
  71. package/dist/modes/interactive/loaded-resources.js +1 -1
  72. package/dist/modes/interactive/login-flow.js +1 -1
  73. package/dist/modes/interactive/session-exit.js +1 -1
  74. package/dist/modes/interactive/session-naming.js +1 -1
  75. package/dist/modes/interactive/settings-screen.js +1 -1
  76. package/dist/modes/interactive/theme/theme-controller.d.ts +1 -1
  77. package/dist/modes/interactive/theme/theme-controller.js +1 -1
  78. package/dist/modes/interactive/tool-renderers/bash.js +1 -1
  79. package/dist/modes/interactive/tool-renderers/read.js +1 -1
  80. package/dist/modes/interactive/tool-renderers/render-utils.d.ts +1 -1
  81. package/dist/modes/interactive/tool-renderers/write.js +1 -1
  82. package/dist/modes/interactive/usage-commands.js +1 -1
  83. package/dist/modes/rpc/rpc-mode.js +1 -1
  84. package/dist/node-runtime/{agent-session-services-KH5CIGC3.js → agent-session-services-UOVUJAX2.js} +4 -4
  85. package/dist/node-runtime/{builtin-extensions-RZS4SMIS.js → builtin-extensions-JNJRND4E.js} +1 -1
  86. package/dist/node-runtime/{chunk-GPNTGRL2.js → chunk-3RR3PVJB.js} +2 -2
  87. package/dist/node-runtime/{chunk-JI7AUY2T.js → chunk-6DVUDNS7.js} +1 -1
  88. package/dist/node-runtime/{chunk-5F7VOA34.js → chunk-AW6PDL4D.js} +1 -1
  89. package/dist/node-runtime/{chunk-VP2H4TI5.js → chunk-BJIF7GMV.js} +3 -3
  90. package/dist/node-runtime/{chunk-AKQRASEH.js → chunk-BQROL43X.js} +15 -15
  91. package/dist/node-runtime/{chunk-UTZCCNFC.js → chunk-FCINT2KC.js} +4 -4
  92. package/dist/node-runtime/{chunk-KURXPCGO.js → chunk-FNS42TPZ.js} +3 -3
  93. package/dist/node-runtime/{chunk-TSZESZ6H.js → chunk-GAWWLIGY.js} +2 -2
  94. package/dist/node-runtime/{chunk-27QDDTTV.js → chunk-HYOPEHDE.js} +2 -2
  95. package/dist/node-runtime/{chunk-5JVP2JX4.js → chunk-JARNU4J4.js} +3 -3
  96. package/dist/node-runtime/{chunk-ITHKNPG4.js → chunk-JZK2WJ7U.js} +1 -1
  97. package/dist/node-runtime/{chunk-PLBYKAZC.js → chunk-KETNCBTB.js} +2 -2
  98. package/dist/node-runtime/{chunk-OXFD2OMR.js → chunk-LY6VVOF4.js} +3 -3
  99. package/dist/node-runtime/{chunk-DJB7P2V7.js → chunk-MEDBJXCC.js} +1 -1
  100. package/dist/node-runtime/{chunk-NWYFKXP5.js → chunk-QDQAKIVU.js} +1 -1
  101. package/dist/node-runtime/{chunk-GNT2AURO.js → chunk-QP4I6GEW.js} +1 -1
  102. package/dist/node-runtime/{chunk-WYJUGRVE.js → chunk-RXG6DWO2.js} +1 -1
  103. package/dist/node-runtime/{chunk-JJTHGEUS.js → chunk-S46QLY2F.js} +5 -5
  104. package/dist/node-runtime/{chunk-MNYG5WLT.js → chunk-WBLSU6YV.js} +3 -3
  105. package/dist/node-runtime/{chunk-BJXBM6KD.js → chunk-XXGJ7Z3C.js} +9 -9
  106. package/dist/node-runtime/{chunk-K24P7GMM.js → chunk-Y7DFMHY5.js} +7 -7
  107. package/dist/node-runtime/cli-runtime.js +1 -1
  108. package/dist/node-runtime/{command-6S6C62CX.js → command-6GJNLXGD.js} +3 -3
  109. package/dist/node-runtime/{commands-MM2TPV5I.js → commands-2UG5F4VT.js} +4 -4
  110. package/dist/node-runtime/{export-html-7TEMZLK2.js → export-html-SW3CIZRJ.js} +1 -1
  111. package/dist/node-runtime/{extension-input-MNEKUZDZ.js → extension-input-DFQ76UJG.js} +4 -4
  112. package/dist/node-runtime/{extension-selector-6WJHCCQI.js → extension-selector-MWHCRWHQ.js} +4 -4
  113. package/dist/node-runtime/{gateway-CWIWPUVC.js → gateway-UDWVYEGX.js} +6 -6
  114. package/dist/node-runtime/{goal-PJ2NLX6M.js → goal-CVGA3XFI.js} +1 -1
  115. package/dist/node-runtime/index.js +18 -18
  116. package/dist/node-runtime/{install-cli-4LUSDUPO.js → install-cli-YIIFVCFM.js} +1 -1
  117. package/dist/node-runtime/{interactive-mode-2L5JMVKQ.js → interactive-mode-VCPSTUAW.js} +12 -12
  118. package/dist/node-runtime/{interactive-view-TUYWWEUV.js → interactive-view-GDP6M6UP.js} +6 -6
  119. package/dist/node-runtime/{lunr-cron-LT3O64NO.js → lunr-cron-3VI5CLK3.js} +4 -4
  120. package/dist/node-runtime/main.js +13 -13
  121. package/dist/node-runtime/{mobile-commands-PFXEWP2R.js → mobile-commands-HQXEYAF6.js} +3 -3
  122. package/dist/node-runtime/{package-manager-cli-FICMQY2Q.js → package-manager-cli-B6G22R6O.js} +9 -9
  123. package/dist/node-runtime/{pi-prompt-template-model-63LFES2U.js → pi-prompt-template-model-UL2T2HLL.js} +2 -2
  124. package/dist/node-runtime/{pi-subagents-G2T5XRAX.js → pi-subagents-YVVMY4B4.js} +2 -2
  125. package/dist/node-runtime/{print-mode-S6ZUVPMU.js → print-mode-M52NLHKG.js} +5 -5
  126. package/dist/node-runtime/rpc-entry.js +13 -13
  127. package/dist/node-runtime/{rpc-mode-C33WERBG.js → rpc-mode-WAHP6U73.js} +2 -2
  128. package/dist/node-runtime/{session-selector-AF6V7DP6.js → session-selector-JABBEHK5.js} +4 -4
  129. package/dist/node-runtime/{setup-OHLYSWTW.js → setup-7IC2PQIB.js} +6 -6
  130. package/dist/node-runtime/{theme-AY3J7JHP.js → theme-MVESIOLX.js} +1 -1
  131. package/dist/node-runtime/{tool-renderers-4RDKHPPB.js → tool-renderers-KL5EPAMN.js} +3 -3
  132. package/dist/startup/interactive-view.js +1 -1
  133. package/install-lock/package-lock.json +24 -24
  134. package/install-lock/package.json +2 -2
  135. package/npm-shrinkwrap.json +12 -12
  136. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  import { Text } from "@ashx-j/lunr-tui";
2
2
  import type { ExtensionAPI, ToolRenderContext } from "../core/extensions/types.ts";
3
3
  import { type BrowserInput } from "../core/browser/schema.ts";
4
- import type { Theme } from "../modes/interactive/theme/theme.ts";
4
+ import type { Theme } from "../core/theme/theme.ts";
5
5
  export type BrowserActivityState = "pending" | "success" | "error";
6
6
  export declare function describeBrowserActivity(input: BrowserInput, state: BrowserActivityState): string;
7
7
  export declare function renderBrowserActivity(args: BrowserInput, theme: Theme, context: ToolRenderContext<unknown, BrowserInput>): Text;
@@ -2,7 +2,7 @@
2
2
  // the barrel re-exports main.ts which imports this extension (cycle).
3
3
  import { defineTool } from "../../../core/extensions/types.js";
4
4
  import { isCronFire } from "../../../core/cron/fire-guard.js";
5
- import { getMarkdownTheme } from "../../../modes/interactive/theme/theme.js";
5
+ import { getMarkdownTheme } from "../../../core/theme/theme.js";
6
6
  import { Type } from "typebox";
7
7
  import { Container, Markdown, Text } from "@ashx-j/lunr-tui";
8
8
  import { currentTokenTotal } from "./accounting.js";
@@ -50,7 +50,8 @@ export default function bemolExtension(pi) {
50
50
  if (bemol.isBrazilWorkspace) {
51
51
  provider = new BemolWorkspaceProvider(bemol);
52
52
  // Store on event bus so the LSP extension can find it regardless of load order
53
- pi.events["lsp:workspace-provider"] = provider;
53
+ const bus = pi.events;
54
+ bus["lsp:workspace-provider"] = provider;
54
55
  pi.events.emit("lsp:register-workspace-provider", provider);
55
56
  }
56
57
  // Register /bemol command and update status once we have UI context
@@ -155,7 +155,8 @@ export default function lspExtension(pi) {
155
155
  };
156
156
  pi.events.on("lsp:register-workspace-provider", applyProvider);
157
157
  // Check for provider registered before our listener existed
158
- const existing = pi.events["lsp:workspace-provider"];
158
+ const bus = pi.events;
159
+ const existing = bus["lsp:workspace-provider"];
159
160
  if (existing)
160
161
  applyProvider(existing);
161
162
  const setLspStatus = (color, text) => {
@@ -1,6 +1,6 @@
1
1
  import { Box, Container, Text } from "@ashx-j/lunr-tui";
2
2
  import type { ToolRenderContext } from "../../../../core/extensions/types.ts";
3
- import type { Theme } from "../../../../modes/interactive/theme/theme.ts";
3
+ import type { Theme } from "../../../../core/theme/theme.ts";
4
4
  import { type SubagentCommunication } from "../intercom/communication.ts";
5
5
  export declare function renderCommunicationBody(communication: SubagentCommunication, theme: Theme): Text;
6
6
  export declare function renderCommunicationCard(communication: SubagentCommunication, expanded: boolean, theme: Theme): Box;
@@ -2,7 +2,7 @@
2
2
  * Rendering functions for subagent results
3
3
  */
4
4
  import { getSubagentSpinnerDefinition } from "../../../../core/subagent-spinner.js";
5
- import { getMarkdownTheme } from "../../../../modes/interactive/theme/theme.js";
5
+ import { getMarkdownTheme } from "../../../../core/theme/theme.js";
6
6
  import { keyText } from "../../../../modes/interactive/components/keybinding-hints.js";
7
7
  import { Container, Markdown, Spacer, Text, visibleWidth } from "@ashx-j/lunr-tui";
8
8
  import { WIDGET_KEY, } from "../shared/types.js";
@@ -2,8 +2,8 @@
2
2
  * TUI config selector for `pi config` command
3
3
  */
4
4
  import { ProcessTerminal, TUI } from "@ashx-j/lunr-tui";
5
+ import { initTheme, stopThemeWatcher } from "../core/theme/theme.js";
5
6
  import { ConfigSelectorComponent } from "../modes/interactive/components/config-selector.js";
6
- import { initTheme, stopThemeWatcher } from "../modes/interactive/theme/theme.js";
7
7
  /** Show TUI config selector and return when closed */
8
8
  export async function selectConfig(options) {
9
9
  // Initialize theme before showing TUI
@@ -3,9 +3,9 @@ import { getAgentDir } from "../config.js";
3
3
  import { KeybindingsManager } from "../core/keybindings.js";
4
4
  import { DefaultPackageManager } from "../core/package-manager.js";
5
5
  import { SettingsManager } from "../core/settings-manager.js";
6
+ import { detectTerminalBackgroundFromEnv, detectTerminalThemeForAuto, initTheme, loadThemeFromPath, parseAutoThemeSetting, resolveThemeSetting, setRegisteredThemes, setTheme, } from "../core/theme/theme.js";
6
7
  import { ExtensionInputComponent } from "../modes/interactive/components/extension-input.js";
7
8
  import { ExtensionSelectorComponent } from "../modes/interactive/components/extension-selector.js";
8
- import { detectTerminalBackgroundFromEnv, detectTerminalThemeForAuto, initTheme, loadThemeFromPath, parseAutoThemeSetting, resolveThemeSetting, setRegisteredThemes, setTheme, } from "../modes/interactive/theme/theme.js";
9
9
  function loadThemes(resources) {
10
10
  const themes = [];
11
11
  const seen = new Set();
@@ -17,7 +17,6 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
17
17
  import { basename, dirname } from "node:path";
18
18
  import { cleanupConversationResources, cleanupSessionResources, estimateContextTokens as estimateRequestContextTokens, modelsAreEqual, resetApiProviders, streamSimple, } from "@ashx-j/lunr-ai/compat";
19
19
  import { getAgentDir } from "../config.js";
20
- import { getThemeByName, theme } from "../modes/interactive/theme/theme.js";
21
20
  import { stripFrontmatter } from "../utils/frontmatter.js";
22
21
  import { resolvePath } from "../utils/paths.js";
23
22
  import { formatNoApiKeyFoundMessage, formatNoModelSelectedMessage } from "./auth-guidance.js";
@@ -41,6 +40,7 @@ import { isRetryableError, isRotationError, prepareRetry, tryRotateSubscriptionK
41
40
  import { isSubagentChildProcess, resolveChildRuntimePermissionMode, SUBAGENT_CHILD_PERMISSION_ENV, } from "./subagent-permission-inherit.js";
42
41
  import { registerSubagentWaitInterruptionOwner, } from "./subagent-wait-interruption.js";
43
42
  import { buildSystemPrompt } from "./system-prompt.js";
43
+ import { getThemeByName, theme } from "./theme/theme.js";
44
44
  import { measureStartup } from "./timings.js";
45
45
  import { installToolCallHooks } from "./tool-call-hooks.js";
46
46
  import { rebuildToolRegistry } from "./tool-registry.js";
@@ -1,9 +1,9 @@
1
1
  import { existsSync, readFileSync, writeFileSync } from "fs";
2
2
  import { basename, join } from "path";
3
3
  import { APP_NAME, getExportTemplateDir } from "../../config.js";
4
- import { getResolvedThemeColors, getThemeExportColors } from "../../modes/interactive/theme/theme.js";
5
4
  import { normalizePath, resolvePath } from "../../utils/paths.js";
6
5
  import { SessionManager } from "../session-manager.js";
6
+ import { getResolvedThemeColors, getThemeExportColors } from "../theme/theme.js";
7
7
  /** Parse a color string to RGB values. Supports hex (#RRGGBB) and rgb(r,g,b) formats. */
8
8
  function parseColor(color) {
9
9
  const hexMatch = color.match(/^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/);
@@ -4,8 +4,8 @@
4
4
  * Renders custom tool calls and results to HTML by invoking their TUI renderers
5
5
  * and converting the ANSI output to HTML.
6
6
  */
7
- import type { Theme } from "../../modes/interactive/theme/theme.ts";
8
7
  import type { ToolDefinition } from "../extensions/types.ts";
8
+ import type { Theme } from "../theme/theme.ts";
9
9
  export interface ToolHtmlRendererDeps {
10
10
  /** Function to look up tool definition by name */
11
11
  getToolDefinition: (name: string) => ToolDefinition | undefined;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Extension runner - executes extensions and manages their lifecycle.
3
3
  */
4
- import { theme } from "../../modes/interactive/theme/theme.js";
4
+ import { theme } from "../theme/theme.js";
5
5
  // Extension shortcuts compete with canonical keybinding ids from keybindings.json.
6
6
  // Only editor-global shortcuts are reserved here. Picker-specific bindings are not.
7
7
  const RESERVED_KEYBINDINGS_FOR_EXTENSION_CONFLICTS = [
@@ -11,7 +11,6 @@ import type { AgentMessage, AgentToolResult, AgentToolUpdateCallback, ThinkingLe
11
11
  import type { Api, AssistantMessageEvent, AssistantMessageEventStream, Context, ImageContent, Model, OAuthCredentials, OAuthLoginCallbacks, ProviderHeaders, RefreshModelsContext, SimpleStreamOptions, TextContent, ToolResultMessage } from "@ashx-j/lunr-ai";
12
12
  import type { AutocompleteItem, AutocompleteProvider, Component, EditorComponent, EditorTheme, KeyId, OverlayHandle, OverlayOptions, TUI } from "@ashx-j/lunr-tui";
13
13
  import type { Static, TSchema } from "typebox";
14
- import type { Theme } from "../../modes/interactive/theme/theme.ts";
15
14
  import type { BashResult } from "../bash-executor.ts";
16
15
  import type { CompactionPreparation, CompactionResult } from "../compaction/index.ts";
17
16
  import type { EventBus } from "../event-bus.ts";
@@ -24,6 +23,7 @@ import type { BranchSummaryEntry, CompactionEntry, CustomEntry, ReadonlySessionM
24
23
  import type { SlashCommandInfo } from "../slash-commands.ts";
25
24
  import type { SourceInfo } from "../source-info.ts";
26
25
  import type { BuildSystemPromptOptions } from "../system-prompt.ts";
26
+ import type { Theme } from "../theme/theme.ts";
27
27
  import type { BashOperations } from "../tools/bash.ts";
28
28
  import type { EditToolDetails } from "../tools/edit.ts";
29
29
  import type { BashToolDetails, BashToolInput, EditToolInput, FindToolDetails, FindToolInput, GrepToolDetails, GrepToolInput, LsToolDetails, LsToolInput, ReadToolDetails, ReadToolInput, WriteToolInput } from "../tools/index.ts";
@@ -1,5 +1,5 @@
1
- import { type Theme } from "../modes/interactive/theme/theme.ts";
2
1
  import type { ResourceDiagnostic } from "./diagnostics.ts";
2
+ import { type Theme } from "./theme/theme.ts";
3
3
  export type { ResourceCollision, ResourceDiagnostic } from "./diagnostics.ts";
4
4
  import { type EventBus } from "./event-bus.ts";
5
5
  import type { InlineExtension, LoadExtensionsResult } from "./extensions/types.ts";
@@ -2,7 +2,7 @@ import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
2
2
  import { dirname, join, resolve, sep } from "node:path";
3
3
  import chalk from "chalk";
4
4
  import { CONFIG_DIR_NAME } from "../config.js";
5
- import { loadThemeFromPath } from "../modes/interactive/theme/theme.js";
5
+ import { loadThemeFromPath } from "./theme/theme.js";
6
6
  import { canonicalizePath, isLocalPath, resolvePath } from "../utils/paths.js";
7
7
  import { createEventBus } from "./event-bus.js";
8
8
  import { clearExtensionCache, createExtensionRuntime, loadExtensionFromFactory, loadExtensionsCached, } from "./extensions/loader.js";
@@ -1,6 +1,6 @@
1
1
  import type { ThinkingLevel } from "@ashx-j/lunr-agent";
2
2
  import { type EditorTheme, type MarkdownTheme, type RgbColor, type SelectListTheme, type SettingsListTheme } from "@ashx-j/lunr-tui";
3
- import type { SourceInfo } from "../../../core/source-info.ts";
3
+ import type { SourceInfo } from "../source-info.ts";
4
4
  export type ThemeColor = "accent" | "accent2" | "border" | "borderAccent" | "borderMuted" | "success" | "error" | "warning" | "muted" | "dim" | "text" | "white" | "thinkingText" | "userMessageText" | "customMessageText" | "customMessageLabel" | "toolTitle" | "toolOutput" | "mdHeading" | "mdLink" | "mdLinkUrl" | "mdCode" | "mdCodeBlock" | "mdCodeBlockBorder" | "mdQuote" | "mdQuoteBorder" | "mdHr" | "mdListBullet" | "toolDiffAdded" | "toolDiffRemoved" | "toolDiffContext" | "syntaxComment" | "syntaxKeyword" | "syntaxFunction" | "syntaxVariable" | "syntaxString" | "syntaxNumber" | "syntaxType" | "syntaxOperator" | "syntaxPunctuation" | "thinkingOff" | "thinkingMinimal" | "thinkingLow" | "thinkingMedium" | "thinkingHigh" | "thinkingXhigh" | "thinkingMax" | "bashMode";
5
5
  export type ThemeBg = "selectedBg" | "userMessageBg" | "customMessageBg" | "toolPendingBg" | "toolSuccessBg" | "toolErrorBg";
6
6
  type ColorMode = "truecolor" | "256color";
@@ -3,10 +3,10 @@ import { createRequire } from "node:module";
3
3
  import * as path from "node:path";
4
4
  import { getCapabilities, } from "@ashx-j/lunr-tui";
5
5
  import chalk from "chalk";
6
- import { getCustomThemesDir, getThemesDir } from "../../../config.js";
7
- import { globalBridge } from "../../../core/global-bridge.js";
8
- import { closeWatcher, watchWithErrorHandler } from "../../../utils/fs-watch.js";
9
- import { highlight, supportsLanguage } from "../../../utils/syntax-highlight.js";
6
+ import { getCustomThemesDir, getThemesDir } from "../../config.js";
7
+ import { closeWatcher, watchWithErrorHandler } from "../../utils/fs-watch.js";
8
+ import { highlight, supportsLanguage } from "../../utils/syntax-highlight.js";
9
+ import { globalBridge } from "../global-bridge.js";
10
10
  // ============================================================================
11
11
  // Types & Schema
12
12
  // ============================================================================
@@ -115,7 +115,7 @@ async function defaultSessionFactory(key, reopen) {
115
115
  let created;
116
116
  try {
117
117
  const cwd = sessionManager.getCwd();
118
- const { initTheme } = await import("../modes/interactive/theme/theme.js");
118
+ const { initTheme } = await import("../core/theme/theme.js");
119
119
  initTheme("moon", false);
120
120
  const { ProjectTrustStore, hasTrustRequiringProjectResources } = await import("../core/trust-manager.js");
121
121
  const projectTrusted = !hasTrustRequiringProjectResources(cwd) || new ProjectTrustStore(agentDir).get(cwd) === true;
@@ -5,7 +5,7 @@ import { readSecret } from "../cli/read-secret.js";
5
5
  import { createStartupTui, showStartupInput, startStartupTui } from "../cli/startup-ui.js";
6
6
  import { loadInstallFeatures, saveInstallFeatures } from "../core/install-features.js";
7
7
  import { SettingsManager } from "../core/settings-manager.js";
8
- import { getSelectListTheme, theme } from "../modes/interactive/theme/theme.js";
8
+ import { getSelectListTheme, theme } from "../core/theme/theme.js";
9
9
  import { loadGatewayConfig, saveGatewayConfig } from "./config.js";
10
10
  import { createPairingStore } from "./pairing.js";
11
11
  import { configureStartup, loadServiceSettings, startGatewayService } from "./service.js";
package/dist/index.d.ts CHANGED
@@ -22,13 +22,13 @@ export { SessionOwnershipError } from "./core/session-ownership.ts";
22
22
  export { type CompactionSettings, type DefaultProjectTrust, type ImageSettings, type PackageSource, type RetrySettings, SettingsManager, type SettingsManagerCreateOptions, type SkillTagCharacter, } from "./core/settings-manager.ts";
23
23
  export { formatSkillsForPrompt, type LoadSkillsFromDirOptions, type LoadSkillsResult, loadSkills, loadSkillsFromDir, type Skill, type SkillFrontmatter, } from "./core/skills.ts";
24
24
  export { createSyntheticSourceInfo } from "./core/source-info.ts";
25
+ export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, type ThemeColor, } from "./core/theme/theme.ts";
25
26
  export { type EditDiffResult, generateDiffString, generateUnifiedPatch } from "./core/tools/edit-diff.ts";
26
27
  export { type BashOperations, type BashSpawnContext, type BashSpawnHook, type BashToolDetails, type BashToolInput, type BashToolOptions, createBashToolDefinition, createEditToolDefinition, createFindToolDefinition, createGrepToolDefinition, createLocalBashOperations, createLsToolDefinition, createReadToolDefinition, createWriteToolDefinition, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, type EditOperations, type EditToolDetails, type EditToolInput, type EditToolOptions, type FindOperations, type FindToolDetails, type FindToolInput, type FindToolOptions, formatSize, type GrepOperations, type GrepToolDetails, type GrepToolInput, type GrepToolOptions, type LsOperations, type LsToolDetails, type LsToolInput, type LsToolOptions, type ReadOperations, type ReadToolDetails, type ReadToolInput, type ReadToolOptions, type ToolsOptions, type TruncationOptions, type TruncationResult, truncateHead, truncateLine, truncateTail, type WriteOperations, type WriteToolInput, type WriteToolOptions, withFileMutationQueue, } from "./core/tools/index.ts";
27
28
  export { hasTrustRequiringProjectResources, type ProjectTrustDecision, ProjectTrustStore, type ProjectTrustStoreEntry, type ProjectTrustUpdate, } from "./core/trust-manager.ts";
28
29
  export { type MainOptions, main } from "./main.ts";
29
30
  export { InteractiveMode, type InteractiveModeOptions, type ModelInfo, type PrintModeOptions, RpcClient, type RpcClientOptions, type RpcCommand, type RpcEventListener, type RpcExtensionUIRequest, type RpcExtensionUIResponse, type RpcResponse, type RpcSessionState, runPrintMode, runRpcMode, } from "./modes/index.ts";
30
31
  export { AssistantMessageComponent, BashExecutionComponent, BorderedLoader, BranchSummaryMessageComponent, CompactionSummaryMessageComponent, CustomEditor, CustomMessageComponent, DynamicBorder, ExtensionEditorComponent, ExtensionInputComponent, ExtensionSelectorComponent, FooterComponent, keyHint, keyText, LoginDialogComponent, ModelSelectorComponent, OAuthSelectorComponent, type RenderDiffOptions, rawKeyHint, renderDiff, SessionSelectorComponent, type SettingsCallbacks, type SettingsConfig, SettingsSelectorComponent, ShowImagesSelectorComponent, SkillInvocationMessageComponent, ThemeSelectorComponent, ThinkingSelectorComponent, ToolExecutionComponent, type ToolExecutionOptions, TreeSelectorComponent, truncateToVisualLines, UserMessageComponent, UserMessageSelectorComponent, type VisualTruncateResult, } from "./modes/interactive/components/index.ts";
31
- export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, type ThemeColor, } from "./modes/interactive/theme/theme.ts";
32
32
  export { copyToClipboard } from "./utils/clipboard.ts";
33
33
  export { parseFrontmatter, stripFrontmatter } from "./utils/frontmatter.ts";
34
34
  export { convertToPng } from "./utils/image-convert.ts";
package/dist/index.js CHANGED
@@ -27,6 +27,8 @@ export { SettingsManager, } from "./core/settings-manager.js";
27
27
  // Skills
28
28
  export { formatSkillsForPrompt, loadSkills, loadSkillsFromDir, } from "./core/skills.js";
29
29
  export { createSyntheticSourceInfo } from "./core/source-info.js";
30
+ // Theme utilities for custom tools and extensions
31
+ export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, } from "./core/theme/theme.js";
30
32
  export { generateDiffString, generateUnifiedPatch } from "./core/tools/edit-diff.js";
31
33
  // Tools
32
34
  export { createBashToolDefinition, createEditToolDefinition, createFindToolDefinition, createGrepToolDefinition, createLocalBashOperations, createLsToolDefinition, createReadToolDefinition, createWriteToolDefinition, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, formatSize, truncateHead, truncateLine, truncateTail, withFileMutationQueue, } from "./core/tools/index.js";
@@ -37,8 +39,6 @@ export { main } from "./main.js";
37
39
  export { InteractiveMode, RpcClient, runPrintMode, runRpcMode, } from "./modes/index.js";
38
40
  // UI components for extensions
39
41
  export { AssistantMessageComponent, BashExecutionComponent, BorderedLoader, BranchSummaryMessageComponent, CompactionSummaryMessageComponent, CustomEditor, CustomMessageComponent, DynamicBorder, ExtensionEditorComponent, ExtensionInputComponent, ExtensionSelectorComponent, FooterComponent, keyHint, keyText, LoginDialogComponent, ModelSelectorComponent, OAuthSelectorComponent, rawKeyHint, renderDiff, SessionSelectorComponent, SettingsSelectorComponent, ShowImagesSelectorComponent, SkillInvocationMessageComponent, ThemeSelectorComponent, ThinkingSelectorComponent, ToolExecutionComponent, TreeSelectorComponent, truncateToVisualLines, UserMessageComponent, UserMessageSelectorComponent, } from "./modes/interactive/components/index.js";
40
- // Theme utilities for custom tools and extensions
41
- export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, } from "./modes/interactive/theme/theme.js";
42
42
  // Clipboard utilities
43
43
  export { copyToClipboard } from "./utils/clipboard.js";
44
44
  export { parseFrontmatter, stripFrontmatter } from "./utils/frontmatter.js";
package/dist/main.js CHANGED
@@ -36,11 +36,11 @@ import { pruneOldSessions } from "./core/session-retention.js";
36
36
  import { getSessionRetentionTargets, selectApprovedStartupSession } from "./core/session-startup-settings.js";
37
37
  import { SettingsManager } from "./core/settings-manager.js";
38
38
  import { applyInheritedSubagentPermissions } from "./core/subagent-permission-inherit.js";
39
+ import { initTheme, stopThemeWatcher } from "./core/theme/theme.js";
39
40
  import { printTimings, resetTimings, time } from "./core/timings.js";
40
41
  import { hasTrustRequiringProjectResources, ProjectTrustStore } from "./core/trust-manager.js";
41
42
  import { runMigrations, showDeprecationWarnings } from "./migrations.js";
42
43
  import { ACP_DISABLED_BUILTINS, ACP_SETTINGS_OVERRIDES } from "./modes/acp/policy.js";
43
- import { initTheme, stopThemeWatcher } from "./modes/interactive/theme/theme.js";
44
44
  import { markStartupMilestone } from "./startup/startup-milestones.js";
45
45
  import { isLocalPath, normalizePath, resolvePath } from "./utils/paths.js";
46
46
  const EXTENSION_LOAD_FAILURE_HINT = `Hint: Start without extensions using "${APP_NAME} -ne".`;
@@ -10,6 +10,7 @@ import { parseSkillBlock } from "../../core/agent-session.js";
10
10
  import { CACHE_TTL_MS, collectCacheMisses, detectCacheMiss } from "../../core/cache-stats.js";
11
11
  import { detectInjectedPrompt } from "../../core/injected-prompt.js";
12
12
  import { sessionEntryToContextMessages } from "../../core/session-manager.js";
13
+ import { theme } from "../../core/theme/theme.js";
13
14
  import { AssistantMessageComponent } from "./components/assistant-message.js";
14
15
  import { BashExecutionComponent } from "./components/bash-execution.js";
15
16
  import { BranchSummaryMessageComponent } from "./components/branch-summary-message.js";
@@ -21,7 +22,6 @@ import { InjectedPromptMessageComponent } from "./components/injected-prompt-mes
21
22
  import { SkillInvocationMessageComponent } from "./components/skill-invocation-message.js";
22
23
  import { ToolExecutionComponent } from "./components/tool-execution.js";
23
24
  import { UserMessageComponent } from "./components/user-message.js";
24
- import { theme } from "./theme/theme.js";
25
25
  function isCustomSessionEntry(item) {
26
26
  return "type" in item && item.type === "custom";
27
27
  }
@@ -1,8 +1,8 @@
1
1
  import { Container, Markdown, Spacer, Text } from "@ashx-j/lunr-tui";
2
2
  import { describeProviderError } from "../../../core/provider-error-display.js";
3
+ import { getMarkdownTheme, theme } from "../../../core/theme/theme.js";
3
4
  import { copyToClipboard } from "../../../utils/clipboard.js";
4
5
  import { sanitizeTerminalText } from "../../../utils/sanitize-terminal-text.js";
5
- import { getMarkdownTheme, theme } from "../theme/theme.js";
6
6
  import { CopyableTextBlockComponent, parseCopyableTextSegments } from "./copyable-text.js";
7
7
  import { expandKeyText } from "./keybinding-hints.js";
8
8
  import { formatThoughtDuration, isThinkingRunComplete, thinkingSnippet, } from "./thinking-summary.js";
@@ -2,9 +2,9 @@
2
2
  * Component for displaying bash command execution with streaming output.
3
3
  */
4
4
  import { Container, Loader, Spacer, Text } from "@ashx-j/lunr-tui";
5
+ import { theme } from "../../../core/theme/theme.js";
5
6
  import { DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, truncateTail, } from "../../../core/tools/truncate.js";
6
7
  import { stripAnsi } from "../../../utils/ansi.js";
7
- import { theme } from "../theme/theme.js";
8
8
  import { DynamicBorder } from "./dynamic-border.js";
9
9
  import { keyHint, keyText } from "./keybinding-hints.js";
10
10
  import { truncateToVisualLines } from "./visual-truncate.js";
@@ -1,5 +1,5 @@
1
1
  import { truncateToWidth, visibleWidth } from "@ashx-j/lunr-tui";
2
- import { theme } from "../theme/theme.js";
2
+ import { theme } from "../../../core/theme/theme.js";
3
3
  /**
4
4
  * Startup boot screen: app/version header and CLI details rows,
5
5
  * wrapped in an accent2-bordered box that hugs the content width.
@@ -1,5 +1,5 @@
1
1
  import { Container, type TUI } from "@ashx-j/lunr-tui";
2
- import type { Theme } from "../theme/theme.ts";
2
+ import type { Theme } from "../../../core/theme/theme.ts";
3
3
  /** Loader wrapped with borders for extension UI */
4
4
  export declare class BorderedLoader extends Container {
5
5
  private loader;
@@ -1,5 +1,5 @@
1
1
  import { Box, Markdown, Spacer, Text } from "@ashx-j/lunr-tui";
2
- import { getMarkdownTheme, theme } from "../theme/theme.js";
2
+ import { getMarkdownTheme, theme } from "../../../core/theme/theme.js";
3
3
  import { expandKeyText } from "./keybinding-hints.js";
4
4
  /**
5
5
  * Component that renders a branch summary message with collapsed/expanded state.
@@ -1,5 +1,5 @@
1
1
  import { Box, Markdown, Spacer, Text } from "@ashx-j/lunr-tui";
2
- import { getMarkdownTheme, theme } from "../theme/theme.js";
2
+ import { getMarkdownTheme, theme } from "../../../core/theme/theme.js";
3
3
  import { expandKeyText } from "./keybinding-hints.js";
4
4
  /**
5
5
  * Component that renders a compaction message with collapsed/expanded state.
@@ -5,8 +5,8 @@ import { homedir } from "node:os";
5
5
  import { basename, dirname, join, relative, sep } from "node:path";
6
6
  import { Container, getKeybindings, Input, matchesKey, Spacer, truncateToWidth, visibleWidth, } from "@ashx-j/lunr-tui";
7
7
  import { CONFIG_DIR_NAME } from "../../../config.js";
8
+ import { theme } from "../../../core/theme/theme.js";
8
9
  import { canonicalizePath, isLocalPath, resolvePath } from "../../../utils/paths.js";
9
- import { theme } from "../theme/theme.js";
10
10
  import { DynamicBorder } from "./dynamic-border.js";
11
11
  import { keyHint, rawKeyHint } from "./keybinding-hints.js";
12
12
  /**
@@ -1,5 +1,5 @@
1
1
  import { visibleWidth, wrapTextWithAnsi } from "@ashx-j/lunr-tui";
2
- import { theme } from "../theme/theme.js";
2
+ import { theme } from "../../../core/theme/theme.js";
3
3
  import { formatTokens } from "./footer.js";
4
4
  import { renderThemedBox, usageBar } from "./usage-view.js";
5
5
  function renderRowLabel(row) {
@@ -1,6 +1,6 @@
1
1
  import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@ashx-j/lunr-tui";
2
+ import { theme } from "../../../core/theme/theme.js";
2
3
  import { sanitizeTerminalText } from "../../../utils/sanitize-terminal-text.js";
3
- import { theme } from "../theme/theme.js";
4
4
  function sourceLines(source) {
5
5
  const lines = [];
6
6
  const pattern = /([^\r\n]*)(\r\n|\r|\n|$)/g;
@@ -1,5 +1,5 @@
1
1
  import { Box, Container, Spacer, Text } from "@ashx-j/lunr-tui";
2
- import { theme } from "../theme/theme.js";
2
+ import { theme } from "../../../core/theme/theme.js";
3
3
  /**
4
4
  * Component that renders a custom session entry from extensions.
5
5
  * The host owns transcript spacing; renderer output should provide only its content.
@@ -1,5 +1,5 @@
1
1
  import { Box, Container, Markdown, Spacer, Text } from "@ashx-j/lunr-tui";
2
- import { getMarkdownTheme, theme } from "../theme/theme.js";
2
+ import { getMarkdownTheme, theme } from "../../../core/theme/theme.js";
3
3
  /**
4
4
  * Component that renders a custom message entry from extensions.
5
5
  * Uses distinct styling to differentiate from user messages.
@@ -1,5 +1,5 @@
1
1
  import * as Diff from "diff";
2
- import { theme } from "../theme/theme.js";
2
+ import { theme } from "../../../core/theme/theme.js";
3
3
  /**
4
4
  * Parse diff line to extract prefix, line number, and content.
5
5
  * Format: "+123 content" or "-123 content" or " 123 content" or " ..."
@@ -1,4 +1,4 @@
1
- import { theme } from "../theme/theme.js";
1
+ import { theme } from "../../../core/theme/theme.js";
2
2
  /**
3
3
  * Dynamic border component that adjusts to viewport width.
4
4
  *
@@ -7,7 +7,7 @@ import * as fs from "node:fs";
7
7
  import * as os from "node:os";
8
8
  import * as path from "node:path";
9
9
  import { Container, Editor, getKeybindings, Spacer, Text, } from "@ashx-j/lunr-tui";
10
- import { getEditorTheme, theme } from "../theme/theme.js";
10
+ import { getEditorTheme, theme } from "../../../core/theme/theme.js";
11
11
  import { DynamicBorder } from "./dynamic-border.js";
12
12
  import { keyHint } from "./keybinding-hints.js";
13
13
  export class ExtensionEditorComponent extends Container {
@@ -2,7 +2,7 @@
2
2
  * Simple text input component for extensions.
3
3
  */
4
4
  import { Container, getKeybindings, Input, Spacer, Text } from "@ashx-j/lunr-tui";
5
- import { theme } from "../theme/theme.js";
5
+ import { theme } from "../../../core/theme/theme.js";
6
6
  import { CountdownTimer } from "./countdown-timer.js";
7
7
  import { DynamicBorder } from "./dynamic-border.js";
8
8
  import { keyHint } from "./keybinding-hints.js";
@@ -3,7 +3,7 @@
3
3
  * Displays a list of string options with keyboard navigation.
4
4
  */
5
5
  import { Container, getKeybindings, Spacer, Text } from "@ashx-j/lunr-tui";
6
- import { theme } from "../theme/theme.js";
6
+ import { theme } from "../../../core/theme/theme.js";
7
7
  import { CountdownTimer } from "./countdown-timer.js";
8
8
  import { DynamicBorder } from "./dynamic-border.js";
9
9
  import { keyHint, rawKeyHint } from "./keybinding-hints.js";
@@ -1,8 +1,8 @@
1
1
  import { isAbsolute, relative, resolve, sep } from "node:path";
2
2
  import { truncateToWidth, visibleWidth } from "@ashx-j/lunr-tui";
3
3
  import { areExperimentalFeaturesEnabled } from "../../../core/experimental.js";
4
+ import { theme } from "../../../core/theme/theme.js";
4
5
  import { collectUsageRequests, totalRequestUsage } from "../../../core/usage-accounting.js";
5
- import { theme } from "../theme/theme.js";
6
6
  /**
7
7
  * Sanitize text for display in a single-line status.
8
8
  * Removes newlines, tabs, carriage returns, and other control characters.
@@ -1,6 +1,6 @@
1
1
  import { Box, Markdown, Text } from "@ashx-j/lunr-tui";
2
2
  import { INJECTED_PROMPT_LABELS } from "../../../core/injected-prompt.js";
3
- import { getMarkdownTheme, theme } from "../theme/theme.js";
3
+ import { getMarkdownTheme, theme } from "../../../core/theme/theme.js";
4
4
  import { expandKeyText } from "./keybinding-hints.js";
5
5
  /**
6
6
  * lunr: renders an injected prompt (/research, /goal) as a collapsed
@@ -2,7 +2,7 @@
2
2
  * Utilities for formatting keybinding hints in the UI.
3
3
  */
4
4
  import { getKeybindings } from "@ashx-j/lunr-tui";
5
- import { theme } from "../theme/theme.js";
5
+ import { theme } from "../../../core/theme/theme.js";
6
6
  function formatKeyPart(part, options) {
7
7
  const displayPart = process.platform === "darwin" && part.toLowerCase() === "alt" ? "option" : part;
8
8
  return options.capitalize ? displayPart.charAt(0).toUpperCase() + displayPart.slice(1) : displayPart;
@@ -1,6 +1,6 @@
1
1
  import { Container, getKeybindings, Input, Spacer, Text } from "@ashx-j/lunr-tui";
2
+ import { theme } from "../../../core/theme/theme.js";
2
3
  import { openBrowser } from "../../../utils/open-browser.js";
3
- import { theme } from "../theme/theme.js";
4
4
  import { DynamicBorder } from "./dynamic-border.js";
5
5
  import { keyHint } from "./keybinding-hints.js";
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { modelsAreEqual } from "@ashx-j/lunr-ai";
2
2
  import { Container, fuzzyFilter, getKeybindings, Input, Spacer, Text, } from "@ashx-j/lunr-tui";
3
+ import { theme } from "../../../core/theme/theme.js";
3
4
  import { getModelSelectorSearchText } from "../model-search.js";
4
- import { theme } from "../theme/theme.js";
5
5
  import { DynamicBorder } from "./dynamic-border.js";
6
6
  import { keyHint } from "./keybinding-hints.js";
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import { Container, fuzzyFilter, getKeybindings, Input, Spacer, TruncatedText, } from "@ashx-j/lunr-tui";
2
- import { theme } from "../theme/theme.js";
2
+ import { theme } from "../../../core/theme/theme.js";
3
3
  import { DynamicBorder } from "./dynamic-border.js";
4
4
  export function formatAuthSelectorProviderType(authType) {
5
5
  return authType === "oauth" ? "subscription" : "API key";
@@ -6,7 +6,7 @@
6
6
  import { getKeybindings, visibleWidth, wrapTextWithAnsi } from "@ashx-j/lunr-tui";
7
7
  import { LOCAL_SERVERS } from "../../../builtin-extensions/lunr-local-providers/local-servers.js";
8
8
  import { PERMISSION_MODES } from "../../../core/permissions.js";
9
- import { theme } from "../theme/theme.js";
9
+ import { theme } from "../../../core/theme/theme.js";
10
10
  import { keyHint, rawKeyHint } from "./keybinding-hints.js";
11
11
  export const WELCOME_TEXT = {
12
12
  heading: "Welcome to lunR",
@@ -1,5 +1,5 @@
1
1
  import { Container, Markdown, Text } from "@ashx-j/lunr-tui";
2
- import { getMarkdownTheme, theme } from "../theme/theme.js";
2
+ import { getMarkdownTheme, theme } from "../../../core/theme/theme.js";
3
3
  /** Markdown source for the live plan chat card. Full summary, no 500-char slice. */
4
4
  export function planMessageMarkdown(summary) {
5
5
  return summary;
@@ -1,6 +1,6 @@
1
1
  import { Container, getKeybindings, Spacer, Text, truncateToWidth } from "@ashx-j/lunr-tui";
2
2
  import * as processRegistry from "../../../core/process-registry.js";
3
- import { theme } from "../theme/theme.js";
3
+ import { theme } from "../../../core/theme/theme.js";
4
4
  import { DynamicBorder } from "./dynamic-border.js";
5
5
  import { rawKeyHint } from "./keybinding-hints.js";
6
6
  function formatElapsed(startedAt) {
@@ -1,6 +1,6 @@
1
1
  import { Container, fuzzyFilter, getKeybindings, Input, Key, matchesKey, Spacer, Text, } from "@ashx-j/lunr-tui";
2
+ import { theme } from "../../../core/theme/theme.js";
2
3
  import { getModelSearchText } from "../model-search.js";
3
- import { theme } from "../theme/theme.js";
4
4
  import { DynamicBorder } from "./dynamic-border.js";
5
5
  import { keyText } from "./keybinding-hints.js";
6
6
  function isEnabled(enabledIds, id) {
@@ -4,8 +4,8 @@ import { unlink } from "node:fs/promises";
4
4
  import { Container, getKeybindings, Input, Spacer, Text, truncateToWidth, visibleWidth, } from "@ashx-j/lunr-tui";
5
5
  import { KeybindingsManager } from "../../../core/keybindings.js";
6
6
  import { SessionOwnership } from "../../../core/session-ownership.js";
7
+ import { theme } from "../../../core/theme/theme.js";
7
8
  import { canonicalizePath as _canonicalizePath } from "../../../utils/paths.js";
8
- import { theme } from "../theme/theme.js";
9
9
  import { shortenPath } from "../tool-renderers/render-utils.js";
10
10
  import { DynamicBorder } from "./dynamic-border.js";
11
11
  import { keyHint, keyText } from "./keybinding-hints.js";
@@ -4,7 +4,7 @@ import { type Component, Container, SettingsList } from "@ashx-j/lunr-tui";
4
4
  import type { SearchCuratorSetting } from "../../../core/search-curator.ts";
5
5
  import { type AttentionNotification, type DefaultPermissionMode, type DefaultProjectTrust, type ModelInstructionsSettings, type ModelTierName, type ModelTiersSettings, type ReasoningDisplay, type RollbackCapture, type RollbackScope, type SkillTagCharacter } from "../../../core/settings-manager.ts";
6
6
  import { type SubagentSpinnerName } from "../../../core/subagent-spinner.ts";
7
- import { type TerminalTheme } from "../theme/theme.ts";
7
+ import { type TerminalTheme } from "../../../core/theme/theme.ts";
8
8
  export interface SettingsConfig {
9
9
  autoCompact: boolean;
10
10
  /** Unset means no ceiling. */
@@ -6,7 +6,7 @@ import { PERMISSION_MODES, permissionModeLabel } from "../../../core/permissions
6
6
  import { PR_WATCH_DEFAULT_DURATION_MS, validPrWatchDuration } from "../../../core/pr-watch/types.js";
7
7
  import { SKILL_TAG_CHARACTERS, } from "../../../core/settings-manager.js";
8
8
  import { getSubagentSpinnerDefinition, SUBAGENT_SPINNER_LABELS, SUBAGENT_SPINNER_NAMES, } from "../../../core/subagent-spinner.js";
9
- import { getSelectListTheme, getSettingsListTheme, parseAutoThemeSetting, theme, } from "../theme/theme.js";
9
+ import { getSelectListTheme, getSettingsListTheme, parseAutoThemeSetting, theme, } from "../../../core/theme/theme.js";
10
10
  import { DynamicBorder } from "./dynamic-border.js";
11
11
  import { keyDisplayText } from "./keybinding-hints.js";
12
12
  const SETTINGS_SUBMENU_SELECT_LIST_LAYOUT = {
@@ -1,5 +1,5 @@
1
1
  import { Container, SelectList } from "@ashx-j/lunr-tui";
2
- import { getSelectListTheme } from "../theme/theme.js";
2
+ import { getSelectListTheme } from "../../../core/theme/theme.js";
3
3
  import { DynamicBorder } from "./dynamic-border.js";
4
4
  const SHOW_IMAGES_SELECT_LIST_LAYOUT = {
5
5
  minPrimaryColumnWidth: 12,
@@ -1,5 +1,5 @@
1
1
  import { Box, Markdown, Text } from "@ashx-j/lunr-tui";
2
- import { getMarkdownTheme, theme } from "../theme/theme.js";
2
+ import { getMarkdownTheme, theme } from "../../../core/theme/theme.js";
3
3
  import { expandKeyText } from "./keybinding-hints.js";
4
4
  /**
5
5
  * Component that renders a skill invocation message with collapsed/expanded state.