@ashx-j/lunr 0.2.22 → 0.2.23

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 (132) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/README.md +5 -3
  3. package/dist/builtin-extensions/lunr-browser.d.ts +7 -1
  4. package/dist/builtin-extensions/lunr-browser.d.ts.map +1 -1
  5. package/dist/builtin-extensions/lunr-browser.js +116 -3
  6. package/dist/builtin-extensions/lunr-browser.js.map +1 -1
  7. package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
  8. package/dist/builtin-extensions/pi-subagents/src/extension/index.js +1 -1
  9. package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
  10. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts +2 -0
  11. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts.map +1 -1
  12. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js +9 -0
  13. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js.map +1 -1
  14. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
  15. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +41 -3
  16. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
  17. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
  18. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +4 -0
  19. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
  20. package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts +1 -1
  21. package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts.map +1 -1
  22. package/dist/builtin-extensions/pi-subagents/src/tui/communication.js +3 -2
  23. package/dist/builtin-extensions/pi-subagents/src/tui/communication.js.map +1 -1
  24. package/dist/core/agent-session.d.ts +19 -0
  25. package/dist/core/agent-session.d.ts.map +1 -1
  26. package/dist/core/agent-session.js +230 -103
  27. package/dist/core/agent-session.js.map +1 -1
  28. package/dist/core/settings-manager.d.ts +4 -0
  29. package/dist/core/settings-manager.d.ts.map +1 -1
  30. package/dist/core/settings-manager.js +9 -0
  31. package/dist/core/settings-manager.js.map +1 -1
  32. package/dist/core/subagent-wait-interruption.d.ts +11 -0
  33. package/dist/core/subagent-wait-interruption.d.ts.map +1 -0
  34. package/dist/core/subagent-wait-interruption.js +19 -0
  35. package/dist/core/subagent-wait-interruption.js.map +1 -0
  36. package/dist/core/system-prompt.d.ts.map +1 -1
  37. package/dist/core/system-prompt.js +3 -1
  38. package/dist/core/system-prompt.js.map +1 -1
  39. package/dist/core/tools/render-utils.d.ts +3 -3
  40. package/dist/core/tools/render-utils.d.ts.map +1 -1
  41. package/dist/core/tools/render-utils.js +3 -3
  42. package/dist/core/tools/render-utils.js.map +1 -1
  43. package/dist/modes/interactive/components/assistant-message.d.ts +10 -2
  44. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  45. package/dist/modes/interactive/components/assistant-message.js +29 -5
  46. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  47. package/dist/modes/interactive/components/copyable-text.d.ts +2 -6
  48. package/dist/modes/interactive/components/copyable-text.d.ts.map +1 -1
  49. package/dist/modes/interactive/components/copyable-text.js +26 -35
  50. package/dist/modes/interactive/components/copyable-text.js.map +1 -1
  51. package/dist/modes/interactive/components/settings-selector.d.ts +3 -1
  52. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  53. package/dist/modes/interactive/components/settings-selector.js +13 -0
  54. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  55. package/dist/modes/interactive/components/thinking-tail.d.ts +9 -2
  56. package/dist/modes/interactive/components/thinking-tail.d.ts.map +1 -1
  57. package/dist/modes/interactive/components/thinking-tail.js +43 -1
  58. package/dist/modes/interactive/components/thinking-tail.js.map +1 -1
  59. package/dist/modes/interactive/components/tool-execution.d.ts +4 -3
  60. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  61. package/dist/modes/interactive/components/tool-execution.js +34 -45
  62. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  63. package/dist/modes/interactive/interactive-mode.d.ts +6 -0
  64. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  65. package/dist/modes/interactive/interactive-mode.js +118 -39
  66. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  67. package/dist/modes/interactive/theme/theme.d.ts +1 -0
  68. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  69. package/dist/modes/interactive/theme/theme.js +23 -0
  70. package/dist/modes/interactive/theme/theme.js.map +1 -1
  71. package/dist/node-runtime/{agent-session-services-NQ6GKOIK.js → agent-session-services-GZVSOGYR.js} +7 -7
  72. package/dist/node-runtime/{builtin-extensions-GVC6IFDU.js → builtin-extensions-QVCXNQT4.js} +3 -3
  73. package/dist/node-runtime/{chunk-6B2POMK7.js → chunk-6VYZ5UFP.js} +1 -1
  74. package/dist/node-runtime/{chunk-VJPTNWAP.js → chunk-DD5YWFSJ.js} +1 -1
  75. package/dist/node-runtime/{chunk-TDL7UWJ7.js → chunk-DQMGU675.js} +173 -57
  76. package/dist/node-runtime/{chunk-V2A7CEXK.js → chunk-EKVFP6YF.js} +2 -2
  77. package/dist/node-runtime/{chunk-5BNJ4JUH.js → chunk-GJ2RDBRL.js} +1 -1
  78. package/dist/node-runtime/{chunk-GNN7H3B7.js → chunk-GS42T6MX.js} +1 -1
  79. package/dist/node-runtime/{chunk-PC2Z5TKZ.js → chunk-HMBGROQK.js} +3 -3
  80. package/dist/node-runtime/{chunk-GJSAD4AB.js → chunk-HPUP7E4T.js} +10 -10
  81. package/dist/node-runtime/{chunk-IVXYUAJE.js → chunk-IF24A3FH.js} +1 -1
  82. package/dist/node-runtime/{chunk-BFNXONG3.js → chunk-LFZDVKSP.js} +2 -2
  83. package/dist/node-runtime/{chunk-EQ63ANHL.js → chunk-LLUIPGDR.js} +210 -125
  84. package/dist/node-runtime/{chunk-ORH324EP.js → chunk-PCEW76PM.js} +3 -3
  85. package/dist/node-runtime/{chunk-WADV2VDS.js → chunk-QAZOULTU.js} +7 -0
  86. package/dist/node-runtime/{chunk-6427XAWG.js → chunk-QH6YL7VK.js} +3 -3
  87. package/dist/node-runtime/{chunk-7QWNYZDI.js → chunk-RDDAZOMU.js} +16 -0
  88. package/dist/node-runtime/{chunk-QDGKKKUM.js → chunk-RIR5EDDJ.js} +1 -1
  89. package/dist/node-runtime/{chunk-H3XF4UVQ.js → chunk-RWTKOC3B.js} +1 -1
  90. package/dist/node-runtime/{chunk-IQIEU7SB.js → chunk-TVJUOJZJ.js} +2 -2
  91. package/dist/node-runtime/{chunk-UAFLNHSH.js → chunk-W64JC4E7.js} +8 -8
  92. package/dist/node-runtime/{chunk-LMBNLFXQ.js → chunk-X3URCYCU.js} +4 -4
  93. package/dist/node-runtime/{chunk-VSSXXL36.js → chunk-YDO2F2IA.js} +2 -2
  94. package/dist/node-runtime/{chunk-IWOWXRWU.js → chunk-YHQ3NBB3.js} +15 -15
  95. package/dist/node-runtime/cli-runtime.js +1 -1
  96. package/dist/node-runtime/{command-3JHHXOPX.js → command-PDVTBRWA.js} +3 -3
  97. package/dist/node-runtime/{commands-2JVNFGMQ.js → commands-XDCFGIGW.js} +5 -5
  98. package/dist/node-runtime/{export-html-KBFVV63J.js → export-html-KSOIMVPI.js} +1 -1
  99. package/dist/node-runtime/{extension-input-K24TVKVW.js → extension-input-E7BJZ35H.js} +4 -4
  100. package/dist/node-runtime/{extension-selector-SPNF7EDR.js → extension-selector-WU42XDTU.js} +4 -4
  101. package/dist/node-runtime/{gateway-VFO6SFKK.js → gateway-AYWM5DIO.js} +7 -7
  102. package/dist/node-runtime/index.js +17 -17
  103. package/dist/node-runtime/{install-cli-C3CF7O7N.js → install-cli-3BO4MMQ6.js} +1 -1
  104. package/dist/node-runtime/{interactive-mode-LOM6AIF6.js → interactive-mode-4MFRKAHG.js} +13 -13
  105. package/dist/node-runtime/{interactive-view-IDSCPPK7.js → interactive-view-TUZHCQM3.js} +5 -5
  106. package/dist/node-runtime/{lunr-browser-YNW7FTYX.js → lunr-browser-RYFIIVJN.js} +91 -4
  107. package/dist/node-runtime/{lunr-cron-BKHGNBKT.js → lunr-cron-YWXEPZMQ.js} +4 -4
  108. package/dist/node-runtime/main.js +14 -14
  109. package/dist/node-runtime/{mobile-commands-HMP25WBC.js → mobile-commands-LVHDAUDP.js} +4 -4
  110. package/dist/node-runtime/{package-manager-cli-VCK4E2RC.js → package-manager-cli-6GT3Z3CK.js} +9 -9
  111. package/dist/node-runtime/{pi-subagents-FEUDLJOE.js → pi-subagents-CDWK2AKY.js} +44 -10
  112. package/dist/node-runtime/rpc-entry.js +14 -14
  113. package/dist/node-runtime/{rpc-mode-P5ODXPEG.js → rpc-mode-O3XV4SID.js} +2 -2
  114. package/dist/node-runtime/{session-selector-LHRMJOKT.js → session-selector-GIM4DHQ2.js} +4 -4
  115. package/dist/node-runtime/{settings-manager-UUZ6NUXI.js → settings-manager-6VEMXRDL.js} +1 -1
  116. package/dist/node-runtime/{setup-NRXVZBLJ.js → setup-5SR2J35A.js} +1 -1
  117. package/dist/node-runtime/{subagent-executor-MLUMBWCP.js → subagent-executor-M5VWB3D3.js} +8 -4
  118. package/dist/node-runtime/{theme-U7IGOA7O.js → theme-UOO5RVFN.js} +1 -1
  119. package/dist/node-runtime/{update-cli-4TP25CNW.js → update-cli-UVKJWRRJ.js} +1 -1
  120. package/docs/features.md +2 -0
  121. package/docs/settings.md +1 -0
  122. package/docs/usage.md +2 -2
  123. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  124. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  125. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  126. package/examples/extensions/gondolin/package-lock.json +2 -2
  127. package/examples/extensions/gondolin/package.json +1 -1
  128. package/examples/extensions/sandbox/package-lock.json +2 -2
  129. package/examples/extensions/sandbox/package.json +1 -1
  130. package/examples/extensions/with-deps/package-lock.json +2 -2
  131. package/examples/extensions/with-deps/package.json +1 -1
  132. package/package.json +4 -4
@@ -7,14 +7,14 @@ import {
7
7
  } from "./chunk-5EFIU3OM.js";
8
8
  import {
9
9
  DynamicBorder
10
- } from "./chunk-6B2POMK7.js";
10
+ } from "./chunk-6VYZ5UFP.js";
11
11
  import {
12
12
  keyHint,
13
13
  keyText
14
- } from "./chunk-GNN7H3B7.js";
14
+ } from "./chunk-GS42T6MX.js";
15
15
  import {
16
16
  theme
17
- } from "./chunk-7QWNYZDI.js";
17
+ } from "./chunk-RDDAZOMU.js";
18
18
  import {
19
19
  canonicalizePath
20
20
  } from "./chunk-FQMM2EZ2.js";
@@ -18784,6 +18784,13 @@ var FileSettingsStorage = class {
18784
18784
  getHideThinkingBlock() {
18785
18785
  return this.settings.hideThinkingBlock ?? !1;
18786
18786
  }
18787
+ getReasoningDisplay() {
18788
+ let value = this.settings.reasoningDisplay;
18789
+ return value === "one-line" || value === "four-lines" ? value : "auto";
18790
+ }
18791
+ setReasoningDisplay(display) {
18792
+ this.globalSettings.reasoningDisplay = display, this.markModified("reasoningDisplay"), this.save();
18793
+ }
18787
18794
  getThinkingCollapse() {
18788
18795
  return this.settings.thinkingCollapse ?? !0;
18789
18796
  }
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-I6R76AG7.js";
5
5
  import {
6
6
  DynamicBorder
7
- } from "./chunk-6B2POMK7.js";
7
+ } from "./chunk-6VYZ5UFP.js";
8
8
  import {
9
9
  keyHint,
10
10
  rawKeyHint
11
- } from "./chunk-GNN7H3B7.js";
11
+ } from "./chunk-GS42T6MX.js";
12
12
  import {
13
13
  theme
14
- } from "./chunk-7QWNYZDI.js";
14
+ } from "./chunk-RDDAZOMU.js";
15
15
 
16
16
  // packages/coding-agent/dist/modes/interactive/components/extension-selector.js
17
17
  import { Container, getKeybindings, Spacer, Text } from "@ashx-j/lunr-tui";
@@ -388,6 +388,22 @@ var DEFAULT_THEME_GLYPHS = {
388
388
  throw new Error(`Unknown theme color: ${color}`);
389
389
  return ansi;
390
390
  }
391
+ getFgGradient(from, to, steps) {
392
+ let start = this.getFgAnsi(from), end = this.getFgAnsi(to), toRgb = (ansi) => {
393
+ let rgb = ansi.match(/\x1b\[38;2;(\d+);(\d+);(\d+)m/);
394
+ if (rgb)
395
+ return { r: Number(rgb[1]), g: Number(rgb[2]), b: Number(rgb[3]) };
396
+ let indexed = ansi.match(/\x1b\[38;5;(\d+)m/);
397
+ return indexed ? hexToRgb(ansi256ToHex(Number(indexed[1]))) : void 0;
398
+ }, a = toRgb(start), b = toRgb(end);
399
+ return Array.from({ length: steps }, (_, index) => {
400
+ let amount = index / Math.max(1, steps - 1);
401
+ if (!a || !b)
402
+ return amount < 0.5 ? start : end;
403
+ let r = Math.round(a.r + (b.r - a.r) * amount), g = Math.round(a.g + (b.g - a.g) * amount), blue = Math.round(a.b + (b.b - a.b) * amount);
404
+ return this.mode === "truecolor" ? `\x1B[38;2;${r};${g};${blue}m` : fgAnsi(rgbTo256(r, g, blue), this.mode);
405
+ });
406
+ }
391
407
  getBgAnsi(color) {
392
408
  let ansi = this.bgColors.get(color);
393
409
  if (!ansi)
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-CSUZVNYE.js";
11
11
  import {
12
12
  createReadOnlyTools
13
- } from "./chunk-VSSXXL36.js";
13
+ } from "./chunk-YDO2F2IA.js";
14
14
  import {
15
15
  convertToLlm
16
16
  } from "./chunk-FVDOXRUD.js";
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
2
  import {
3
3
  theme
4
- } from "./chunk-7QWNYZDI.js";
4
+ } from "./chunk-RDDAZOMU.js";
5
5
 
6
6
  // packages/coding-agent/dist/core/permission-mode.js
7
7
  var PERMISSION_MODE_BRIDGE_SYMBOL = /* @__PURE__ */ Symbol.for("@lunr/permission-mode"), getModeFn, bridge = {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-QFWG2RVL.js";
11
11
  import {
12
12
  SettingsManager
13
- } from "./chunk-WADV2VDS.js";
13
+ } from "./chunk-QAZOULTU.js";
14
14
  import {
15
15
  minimatch
16
16
  } from "./chunk-CGBXPL3E.js";
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-PVCDKGR6.js";
25
25
  import {
26
26
  loadThemeFromPath
27
- } from "./chunk-7QWNYZDI.js";
27
+ } from "./chunk-RDDAZOMU.js";
28
28
  import {
29
29
  CONFIG_DIR_NAME,
30
30
  canonicalizePath,
@@ -4,33 +4,33 @@ import {
4
4
  } from "./chunk-YPHAIRZT.js";
5
5
  import {
6
6
  DefaultPackageManager
7
- } from "./chunk-IQIEU7SB.js";
7
+ } from "./chunk-TVJUOJZJ.js";
8
8
  import {
9
9
  SettingsManager
10
- } from "./chunk-WADV2VDS.js";
10
+ } from "./chunk-QAZOULTU.js";
11
11
  import {
12
12
  getProjectTrustOptions,
13
13
  hasTrustRequiringProjectResources
14
14
  } from "./chunk-HTFRRDSF.js";
15
15
  import {
16
16
  emitProjectTrustEvent
17
- } from "./chunk-5BNJ4JUH.js";
17
+ } from "./chunk-GJ2RDBRL.js";
18
18
  import {
19
19
  KeybindingsManager
20
20
  } from "./chunk-5EFIU3OM.js";
21
21
  import {
22
22
  ExtensionSelectorComponent
23
- } from "./chunk-6427XAWG.js";
23
+ } from "./chunk-QH6YL7VK.js";
24
24
  import {
25
25
  ExtensionInputComponent
26
- } from "./chunk-PC2Z5TKZ.js";
26
+ } from "./chunk-HMBGROQK.js";
27
27
  import {
28
28
  DynamicBorder
29
- } from "./chunk-6B2POMK7.js";
29
+ } from "./chunk-6VYZ5UFP.js";
30
30
  import {
31
31
  keyHint,
32
32
  rawKeyHint
33
- } from "./chunk-GNN7H3B7.js";
33
+ } from "./chunk-GS42T6MX.js";
34
34
  import {
35
35
  detectTerminalBackgroundFromEnv,
36
36
  detectTerminalThemeForAuto,
@@ -41,7 +41,7 @@ import {
41
41
  setRegisteredThemes,
42
42
  setTheme,
43
43
  theme
44
- } from "./chunk-7QWNYZDI.js";
44
+ } from "./chunk-RDDAZOMU.js";
45
45
  import {
46
46
  APP_NAME,
47
47
  CONFIG_DIR_NAME,
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-PVCDKGR6.js";
21
21
  import {
22
22
  keyText
23
- } from "./chunk-GNN7H3B7.js";
23
+ } from "./chunk-GS42T6MX.js";
24
24
  import {
25
25
  getAgentDir
26
26
  } from "./chunk-FQMM2EZ2.js";
@@ -925,12 +925,12 @@ var lightBuiltinExtensions = [
925
925
  ], DEFERRED_BUILTIN_LOADERS = [
926
926
  { name: "pi-ollama-cloud", load: () => import("./pi-ollama-cloud-2F3Y2QNM.js") },
927
927
  { name: "narumiruna-pi-goal", load: () => import("./goal-NJEE5CTU.js") },
928
- { name: "lunr-cron", load: () => import("./lunr-cron-BKHGNBKT.js") },
928
+ { name: "lunr-cron", load: () => import("./lunr-cron-YWXEPZMQ.js") },
929
929
  { name: "pi-intercom", load: () => import("./pi-intercom-HBPK5HSJ.js") },
930
930
  { name: "pi-prompt-template-model", load: () => import("./pi-prompt-template-model-QWTCGLJU.js") },
931
- { name: "pi-subagents", load: () => import("./pi-subagents-FEUDLJOE.js") },
931
+ { name: "pi-subagents", load: () => import("./pi-subagents-CDWK2AKY.js") },
932
932
  { name: "pi-web-access", load: () => import("./pi-web-access-WTGMNZ32.js") },
933
- { name: "lunr-browser", load: () => import("./lunr-browser-YNW7FTYX.js") },
933
+ { name: "lunr-browser", load: () => import("./lunr-browser-RYFIIVJN.js") },
934
934
  { name: "pi-lsp-extension", load: () => import("./src-IVPNZ2BX.js") },
935
935
  { name: "pi-mcp-adapter", load: () => import("./pi-mcp-adapter-E6WULBKF.js") }
936
936
  ], DEFERRED_BUILTIN_EXTENSION_NAMES = DEFERRED_BUILTIN_LOADERS.map((entry) => entry.name), DEFERRED_BUILTIN_FLAGS = ["mcp-config"];
@@ -38,12 +38,12 @@ import {
38
38
  } from "./chunk-CSFI6YXL.js";
39
39
  import {
40
40
  keyHint
41
- } from "./chunk-GNN7H3B7.js";
41
+ } from "./chunk-GS42T6MX.js";
42
42
  import {
43
43
  getLanguageFromPath,
44
44
  highlightCode,
45
45
  theme
46
- } from "./chunk-7QWNYZDI.js";
46
+ } from "./chunk-RDDAZOMU.js";
47
47
  import {
48
48
  APP_NAME,
49
49
  formatPathRelativeToCwdOrAbsolute,
@@ -2,7 +2,7 @@ import { createRequire as __lunrRequire } from "node:module"; const require = __
2
2
  import {
3
3
  lightBuiltinExtensions,
4
4
  loadAllBuiltinExtensions
5
- } from "./chunk-LMBNLFXQ.js";
5
+ } from "./chunk-X3URCYCU.js";
6
6
  import {
7
7
  createProjectTrustContext,
8
8
  createStartupTui,
@@ -11,7 +11,7 @@ import {
11
11
  showFirstTimeSetup,
12
12
  showStartupSelector,
13
13
  startStartupTui
14
- } from "./chunk-UAFLNHSH.js";
14
+ } from "./chunk-W64JC4E7.js";
15
15
  import {
16
16
  applyInheritedSubagentPermissions
17
17
  } from "./chunk-CSUZVNYE.js";
@@ -23,7 +23,7 @@ import {
23
23
  formatMissingSessionCwdPrompt,
24
24
  formatNoModelsAvailableMessage,
25
25
  getMissingSessionCwdIssue
26
- } from "./chunk-TDL7UWJ7.js";
26
+ } from "./chunk-DQMGU675.js";
27
27
  import {
28
28
  restoreStdout,
29
29
  takeOverStdout
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  detectSupportedImageMimeTypeFromFile,
33
33
  resolveReadPath
34
- } from "./chunk-VSSXXL36.js";
34
+ } from "./chunk-YDO2F2IA.js";
35
35
  import {
36
36
  processImage
37
37
  } from "./chunk-AD6VXAO7.js";
@@ -39,7 +39,7 @@ import {
39
39
  SettingsManager,
40
40
  applyHttpProxySettings,
41
41
  configureHttpDispatcher
42
- } from "./chunk-WADV2VDS.js";
42
+ } from "./chunk-QAZOULTU.js";
43
43
  import {
44
44
  bindRuntimeBridges
45
45
  } from "./chunk-GMHJCCEN.js";
@@ -69,7 +69,7 @@ import {
69
69
  } from "./chunk-2TKODGBZ.js";
70
70
  import {
71
71
  SessionSelectorComponent
72
- } from "./chunk-ORH324EP.js";
72
+ } from "./chunk-PCEW76PM.js";
73
73
  import {
74
74
  SessionOwnership
75
75
  } from "./chunk-UAEOTO52.js";
@@ -92,7 +92,7 @@ import {
92
92
  import {
93
93
  initTheme,
94
94
  stopThemeWatcher
95
- } from "./chunk-7QWNYZDI.js";
95
+ } from "./chunk-RDDAZOMU.js";
96
96
  import {
97
97
  APP_NAME,
98
98
  CONFIG_DIR_NAME,
@@ -730,17 +730,17 @@ async function main(args, options) {
730
730
  resetTimings(), (args.includes("--offline") || isTruthyEnvFlag(process.env.PI_OFFLINE)) && (process.env.PI_OFFLINE = "1");
731
731
  let cwd = process.cwd(), agentDir = getAgentDir(), bootstrapSettingsManager = SettingsManager.create(cwd, agentDir, { projectTrusted: !1 });
732
732
  if (applyHttpProxySettings(bootstrapSettingsManager.getGlobalSettings().httpProxy), configureHttpDispatcher(), ["setup", "features", "uninstall", "browser"].includes(args[0])) {
733
- let { handleInstallCli } = await import("./install-cli-C3CF7O7N.js");
733
+ let { handleInstallCli } = await import("./install-cli-3BO4MMQ6.js");
734
734
  if (await handleInstallCli(args))
735
735
  return;
736
736
  }
737
737
  if (args[0] === "update") {
738
- let { handleUpdateCli } = await import("./update-cli-4TP25CNW.js");
738
+ let { handleUpdateCli } = await import("./update-cli-UVKJWRRJ.js");
739
739
  if (await handleUpdateCli(args))
740
740
  return;
741
741
  }
742
742
  if (["install", "remove", "uninstall", "list", "config"].includes(args[0])) {
743
- let { handleConfigCommand, handlePackageCommand } = await import("./package-manager-cli-VCK4E2RC.js");
743
+ let { handleConfigCommand, handlePackageCommand } = await import("./package-manager-cli-6GT3Z3CK.js");
744
744
  if (await handlePackageCommand(args, { extensionFactories: options?.extensionFactories })) {
745
745
  process.exit(process.exitCode ?? 0);
746
746
  return;
@@ -749,7 +749,7 @@ async function main(args, options) {
749
749
  return;
750
750
  }
751
751
  if (args[0] === "gateway") {
752
- let { handleGatewayCommand } = await import("./command-3JHHXOPX.js");
752
+ let { handleGatewayCommand } = await import("./command-PDVTBRWA.js");
753
753
  if (await handleGatewayCommand(args))
754
754
  return;
755
755
  }
@@ -764,7 +764,7 @@ async function main(args, options) {
764
764
  if (time("parseArgs"), parsed.version && (console.log(VERSION), process.exit(0)), parsed.export) {
765
765
  let result;
766
766
  try {
767
- let { exportFromFile } = await import("./export-html-KBFVV63J.js"), outputPath = parsed.messages.length > 0 ? parsed.messages[0] : void 0;
767
+ let { exportFromFile } = await import("./export-html-KSOIMVPI.js"), outputPath = parsed.messages.length > 0 ? parsed.messages[0] : void 0;
768
768
  result = await exportFromFile(parsed.export, outputPath);
769
769
  } catch (error) {
770
770
  let message = error instanceof Error ? error.message : "Failed to export session";
@@ -772,7 +772,7 @@ async function main(args, options) {
772
772
  }
773
773
  console.log(`Exported to: ${result}`), process.exit(0);
774
774
  }
775
- let appMode = resolveAppMode(parsed, process.stdin.isTTY, process.stdout.isTTY), interactiveModeImport = appMode === "interactive" ? import("./interactive-mode-LOM6AIF6.js") : void 0, startupView = appMode === "interactive" ? options?.startupView : void 0;
775
+ let appMode = resolveAppMode(parsed, process.stdin.isTTY, process.stdout.isTTY), interactiveModeImport = appMode === "interactive" ? import("./interactive-mode-4MFRKAHG.js") : void 0, startupView = appMode === "interactive" ? options?.startupView : void 0;
776
776
  options?.startupView && !startupView && options.startupView.stop(), applyInheritedSubagentPermissions(), appMode !== "interactive" && !isPlainRuntimeMetadataCommand(parsed) && takeOverStdout(), parsed.mode === "rpc" && parsed.fileArgs.length > 0 && (console.error(chalk4.red("Error: @file arguments are not supported in RPC mode")), process.exit(1)), validateForkFlags(parsed), validateSessionIdFlags(parsed);
777
777
  let { migratedAuthProviders: migratedProviders, deprecationWarnings } = runMigrations(cwd);
778
778
  time("runMigrations");
@@ -929,12 +929,12 @@ ${EXTENSION_LOAD_FAILURE_HINT}` : "";
929
929
  extensionHint && console.error(chalk4.yellow(EXTENSION_LOAD_FAILURE_HINT)), process.exit(1);
930
930
  }
931
931
  if (time("createAgentSession"), appMode !== "interactive" && !session.model && (console.error(chalk4.red(formatNoModelsAvailableMessage())), process.exit(1)), startupBenchmark && appMode !== "interactive" && (console.error(chalk4.red("Error: PI_STARTUP_BENCHMARK only supports interactive mode")), process.exit(1)), appMode === "rpc") {
932
- let { runRpcMode } = await import("./rpc-mode-P5ODXPEG.js");
932
+ let { runRpcMode } = await import("./rpc-mode-O3XV4SID.js");
933
933
  printTimings(), await runRpcMode(runtime);
934
934
  } else if (appMode === "interactive") {
935
935
  let [{ InteractiveMode }, { loadDeferredBuiltinExtensions }] = await Promise.all([
936
936
  interactiveModeImport,
937
- import("./builtin-extensions-GVC6IFDU.js")
937
+ import("./builtin-extensions-QVCXNQT4.js")
938
938
  ]), interactiveMode = new InteractiveMode(runtime, {
939
939
  migratedProviders,
940
940
  modelFallbackMessage,
@@ -57,7 +57,7 @@ var args = process.argv.slice(2), startupBenchmark = process.env.PI_STARTUP_BENC
57
57
  markStartupMilestone("mode_routed");
58
58
  var startupView;
59
59
  if (preloadMode === "interactive") {
60
- let { InteractiveView } = await import("./interactive-view-IDSCPPK7.js");
60
+ let { InteractiveView } = await import("./interactive-view-TUZHCQM3.js");
61
61
  startupView = new InteractiveView(), startupView.start(), await startupView.waitForFirstFrame(), startupView.isExitRequested && process.exit(0);
62
62
  }
63
63
  var startRuntime = async () => {
@@ -8,9 +8,9 @@ async function handleGatewayCommand(args) {
8
8
  try {
9
9
  let sub = args[1];
10
10
  if (sub === "setup")
11
- await (await import("./setup-NRXVZBLJ.js")).setupGateway();
11
+ await (await import("./setup-5SR2J35A.js")).setupGateway();
12
12
  else if (sub === "pair" && args[2] === "approve" && args.includes("--owner"))
13
- console.log((await import("./setup-NRXVZBLJ.js")).approveGatewayOwner(args[3], args[4]));
13
+ console.log((await import("./setup-5SR2J35A.js")).approveGatewayOwner(args[3], args[4]));
14
14
  else if (["start", "stop", "restart", "status", "logs", "doctor", "autostart"].includes(sub)) {
15
15
  let service = await import("./service-ISSP6VHE.js");
16
16
  if (sub === "start" && console.log(await service.startGatewayService()), sub === "stop" && console.log(await service.stopGatewayService()), sub === "restart" && (await service.stopGatewayService(), console.log(await service.startGatewayService())), (sub === "status" || sub === "doctor") && console.log(service.serviceStatusText()), sub === "logs" && console.log(service.readGatewayLog()), sub === "autostart") {
@@ -32,7 +32,7 @@ lunr gateway autostart off|login|boot
32
32
  lunr gateway pair approve <platform> <code> [--owner]
33
33
  lunr gateway pair list`);
34
34
  else {
35
- let { runGateway } = await import("./gateway-VFO6SFKK.js");
35
+ let { runGateway } = await import("./gateway-AYWM5DIO.js");
36
36
  process.exitCode = await runGateway(sub === "run" ? args.slice(2) : args.slice(1));
37
37
  }
38
38
  } catch (error) {
@@ -5,14 +5,14 @@ import {
5
5
  formatHelpText,
6
6
  runChatCommand,
7
7
  sendCommandReply
8
- } from "./chunk-BFNXONG3.js";
9
- import "./chunk-V2A7CEXK.js";
10
- import "./chunk-VJPTNWAP.js";
8
+ } from "./chunk-LFZDVKSP.js";
9
+ import "./chunk-EKVFP6YF.js";
10
+ import "./chunk-DD5YWFSJ.js";
11
11
  import "./chunk-RMQZU2YU.js";
12
12
  import "./chunk-UWPJL22I.js";
13
13
  import "./chunk-TQGPP4SC.js";
14
14
  import "./chunk-OFKSVRV7.js";
15
- import "./chunk-5BNJ4JUH.js";
15
+ import "./chunk-GJ2RDBRL.js";
16
16
  import "./chunk-CGBXPL3E.js";
17
17
  import "./chunk-BBUVIEZB.js";
18
18
  import "./chunk-5D7LC2ZQ.js";
@@ -23,7 +23,7 @@ import "./chunk-IMLCWLPI.js";
23
23
  import "./chunk-UAEOTO52.js";
24
24
  import "./chunk-R3K2F5GI.js";
25
25
  import "./chunk-E24EO34J.js";
26
- import "./chunk-7QWNYZDI.js";
26
+ import "./chunk-RDDAZOMU.js";
27
27
  import "./chunk-FQMM2EZ2.js";
28
28
  import "./chunk-Q4Q6D4IY.js";
29
29
  import "./chunk-BRJX2PRC.js";
@@ -7,7 +7,7 @@ import "./chunk-UAEOTO52.js";
7
7
  import {
8
8
  getResolvedThemeColors,
9
9
  getThemeExportColors
10
- } from "./chunk-7QWNYZDI.js";
10
+ } from "./chunk-RDDAZOMU.js";
11
11
  import {
12
12
  APP_NAME,
13
13
  getExportTemplateDir,
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
2
  import {
3
3
  ExtensionInputComponent
4
- } from "./chunk-PC2Z5TKZ.js";
4
+ } from "./chunk-HMBGROQK.js";
5
5
  import "./chunk-I6R76AG7.js";
6
- import "./chunk-6B2POMK7.js";
7
- import "./chunk-GNN7H3B7.js";
8
- import "./chunk-7QWNYZDI.js";
6
+ import "./chunk-6VYZ5UFP.js";
7
+ import "./chunk-GS42T6MX.js";
8
+ import "./chunk-RDDAZOMU.js";
9
9
  import "./chunk-FQMM2EZ2.js";
10
10
  import "./chunk-Q4Q6D4IY.js";
11
11
  import "./chunk-BRJX2PRC.js";
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
2
  import {
3
3
  ExtensionSelectorComponent
4
- } from "./chunk-6427XAWG.js";
4
+ } from "./chunk-QH6YL7VK.js";
5
5
  import "./chunk-I6R76AG7.js";
6
- import "./chunk-6B2POMK7.js";
7
- import "./chunk-GNN7H3B7.js";
8
- import "./chunk-7QWNYZDI.js";
6
+ import "./chunk-6VYZ5UFP.js";
7
+ import "./chunk-GS42T6MX.js";
8
+ import "./chunk-RDDAZOMU.js";
9
9
  import "./chunk-FQMM2EZ2.js";
10
10
  import "./chunk-Q4Q6D4IY.js";
11
11
  import "./chunk-BRJX2PRC.js";
@@ -3,14 +3,14 @@ import {
3
3
  AgentBridge,
4
4
  QUEUED,
5
5
  startGatewayCron
6
- } from "./chunk-GJSAD4AB.js";
6
+ } from "./chunk-HPUP7E4T.js";
7
7
  import {
8
8
  CHAT_COMMANDS,
9
9
  botCommandSpecs,
10
10
  runChatCommand,
11
11
  sendCommandReply
12
- } from "./chunk-BFNXONG3.js";
13
- import "./chunk-V2A7CEXK.js";
12
+ } from "./chunk-LFZDVKSP.js";
13
+ import "./chunk-EKVFP6YF.js";
14
14
  import {
15
15
  acceptGatewayInput,
16
16
  addAllowedUser,
@@ -30,7 +30,7 @@ import {
30
30
  startGatewayPresenter,
31
31
  stopButtonSweeper,
32
32
  stopGatewayPresenter
33
- } from "./chunk-VJPTNWAP.js";
33
+ } from "./chunk-DD5YWFSJ.js";
34
34
  import {
35
35
  createPairingStore
36
36
  } from "./chunk-RMQZU2YU.js";
@@ -44,7 +44,7 @@ import {
44
44
  isFeatureEnabled
45
45
  } from "./chunk-VWCE2HSZ.js";
46
46
  import "./chunk-OFKSVRV7.js";
47
- import "./chunk-5BNJ4JUH.js";
47
+ import "./chunk-GJ2RDBRL.js";
48
48
  import "./chunk-CGBXPL3E.js";
49
49
  import "./chunk-BBUVIEZB.js";
50
50
  import "./chunk-5D7LC2ZQ.js";
@@ -64,7 +64,7 @@ import {
64
64
  resolvePlatformToken
65
65
  } from "./chunk-R3K2F5GI.js";
66
66
  import "./chunk-E24EO34J.js";
67
- import "./chunk-7QWNYZDI.js";
67
+ import "./chunk-RDDAZOMU.js";
68
68
  import "./chunk-FQMM2EZ2.js";
69
69
  import "./chunk-Q4Q6D4IY.js";
70
70
  import "./chunk-BRJX2PRC.js";
@@ -1149,7 +1149,7 @@ function createRouter(deps) {
1149
1149
  return !1;
1150
1150
  let firstToken = text.split(/\s+/, 1)[0].toLowerCase(), commandWord = firstToken.split("@")[0].slice(1), args = text.slice(firstToken.length).trim();
1151
1151
  if (deps.remoteControls) {
1152
- let { handleMobileCommand, cancelMobileTransfer } = await import("./mobile-commands-HMP25WBC.js");
1152
+ let { handleMobileCommand, cancelMobileTransfer } = await import("./mobile-commands-LVHDAUDP.js");
1153
1153
  if (["stop", "stopall", "new", "cancel"].includes(commandWord) && cancelMobileTransfer(key), commandWord === "cancel")
1154
1154
  return invalidateGatewayDialogs(key), await adapter.send(event.source.chatId, "Cancelled the pending selection or transfer.", {
1155
1155
  threadId: event.source.threadId
@@ -19,12 +19,12 @@ import {
19
19
  TreeSelectorComponent,
20
20
  UserMessageComponent,
21
21
  UserMessageSelectorComponent
22
- } from "./chunk-EQ63ANHL.js";
22
+ } from "./chunk-LLUIPGDR.js";
23
23
  import {
24
24
  attachJsonlLineReader,
25
25
  runRpcMode,
26
26
  serializeJsonLine
27
- } from "./chunk-IVXYUAJE.js";
27
+ } from "./chunk-IF24A3FH.js";
28
28
  import {
29
29
  runPrintMode
30
30
  } from "./chunk-OCVIXVTZ.js";
@@ -35,13 +35,13 @@ import {
35
35
  copyToClipboard
36
36
  } from "./chunk-Q5ZU2VRT.js";
37
37
  import "./chunk-NUIFPZWX.js";
38
- import "./chunk-H3XF4UVQ.js";
38
+ import "./chunk-RWTKOC3B.js";
39
39
  import "./chunk-7N3YHTYF.js";
40
40
  import {
41
41
  main
42
- } from "./chunk-IWOWXRWU.js";
43
- import "./chunk-LMBNLFXQ.js";
44
- import "./chunk-UAFLNHSH.js";
42
+ } from "./chunk-YHQ3NBB3.js";
43
+ import "./chunk-X3URCYCU.js";
44
+ import "./chunk-W64JC4E7.js";
45
45
  import "./chunk-YPHAIRZT.js";
46
46
  import "./chunk-PL6JKXWI.js";
47
47
  import "./chunk-5ZH3ZFIZ.js";
@@ -57,7 +57,7 @@ import {
57
57
  parseSkillBlock,
58
58
  wrapRegisteredTool,
59
59
  wrapRegisteredTools
60
- } from "./chunk-TDL7UWJ7.js";
60
+ } from "./chunk-DQMGU675.js";
61
61
  import "./chunk-CCCN2UCX.js";
62
62
  import {
63
63
  DefaultPackageManager,
@@ -70,7 +70,7 @@ import {
70
70
  loadProjectContextFiles,
71
71
  loadSkills,
72
72
  loadSkillsFromDir
73
- } from "./chunk-IQIEU7SB.js";
73
+ } from "./chunk-TVJUOJZJ.js";
74
74
  import "./chunk-OBMWP3I5.js";
75
75
  import "./chunk-DVGWF6A2.js";
76
76
  import {
@@ -100,7 +100,7 @@ import {
100
100
  renderDiff,
101
101
  truncateToVisualLines,
102
102
  withFileMutationQueue
103
- } from "./chunk-VSSXXL36.js";
103
+ } from "./chunk-YDO2F2IA.js";
104
104
  import {
105
105
  DEFAULT_MAX_BYTES,
106
106
  DEFAULT_MAX_LINES,
@@ -122,7 +122,7 @@ import {
122
122
  } from "./chunk-GS66LV4M.js";
123
123
  import {
124
124
  SettingsManager
125
- } from "./chunk-WADV2VDS.js";
125
+ } from "./chunk-QAZOULTU.js";
126
126
  import "./chunk-UP2XBVH5.js";
127
127
  import "./chunk-VWCE2HSZ.js";
128
128
  import "./chunk-LISUTZS3.js";
@@ -151,7 +151,7 @@ import {
151
151
  } from "./chunk-OFKSVRV7.js";
152
152
  import {
153
153
  ExtensionRunner
154
- } from "./chunk-5BNJ4JUH.js";
154
+ } from "./chunk-GJ2RDBRL.js";
155
155
  import "./chunk-CGBXPL3E.js";
156
156
  import "./chunk-BBUVIEZB.js";
157
157
  import "./chunk-5D7LC2ZQ.js";
@@ -192,7 +192,7 @@ import "./chunk-2MI5OPMN.js";
192
192
  import "./chunk-IMLCWLPI.js";
193
193
  import {
194
194
  SessionSelectorComponent
195
- } from "./chunk-ORH324EP.js";
195
+ } from "./chunk-PCEW76PM.js";
196
196
  import {
197
197
  SessionOwnershipError
198
198
  } from "./chunk-UAEOTO52.js";
@@ -221,19 +221,19 @@ import {
221
221
  import "./chunk-CCZJ3PYY.js";
222
222
  import {
223
223
  ExtensionSelectorComponent
224
- } from "./chunk-6427XAWG.js";
224
+ } from "./chunk-QH6YL7VK.js";
225
225
  import {
226
226
  ExtensionInputComponent
227
- } from "./chunk-PC2Z5TKZ.js";
227
+ } from "./chunk-HMBGROQK.js";
228
228
  import "./chunk-I6R76AG7.js";
229
229
  import {
230
230
  DynamicBorder
231
- } from "./chunk-6B2POMK7.js";
231
+ } from "./chunk-6VYZ5UFP.js";
232
232
  import {
233
233
  keyHint,
234
234
  keyText,
235
235
  rawKeyHint
236
- } from "./chunk-GNN7H3B7.js";
236
+ } from "./chunk-GS42T6MX.js";
237
237
  import {
238
238
  Theme,
239
239
  getAvailableThemes,
@@ -243,7 +243,7 @@ import {
243
243
  getSettingsListTheme,
244
244
  highlightCode,
245
245
  initTheme
246
- } from "./chunk-7QWNYZDI.js";
246
+ } from "./chunk-RDDAZOMU.js";
247
247
  import {
248
248
  CONFIG_DIR_NAME,
249
249
  VERSION,
@@ -132,7 +132,7 @@ async function runSetup(argv) {
132
132
  for (let id of applied.disabledIds)
133
133
  await FEATURE_HANDLERS[id].disable({ purgeSecrets: !1 });
134
134
  } else
135
- return await (await import("./setup-NRXVZBLJ.js")).setupGateway(), 0;
135
+ return await (await import("./setup-5SR2J35A.js")).setupGateway(), 0;
136
136
  let { installBrowser } = await import("./setup-JBKOLJ6F.js");
137
137
  return await installBrowser(!1), saveInstallFeatures(next), appendInstallLog(`setup installerVersion=${VERSION}`), console.log(`Writing ${getAgentDir()}/install-features.json`), console.log(`
138
138
  Next:`), console.log(` 1. Restart this shell (or add ${resolveInstallPrefix()}/bin to PATH)`), console.log(` 2. Run: ${APP_NAME}`), console.log(" 3. In the TUI: /login"), 0;