@ashx-j/lunr 0.2.23 → 0.2.25
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/CHANGELOG.md +22 -1
- package/README.md +10 -10
- package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
- package/dist/builtin-extensions/ashxj-tui.js +2 -2
- package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
- package/dist/builtin-extensions/lunr-plan-tools.d.ts +7 -7
- package/dist/builtin-extensions/lunr-plan-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-plan-tools.js +12 -12
- package/dist/builtin-extensions/lunr-plan-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.js +2 -0
- package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js +1 -0
- package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.js +1 -1
- package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +4 -4
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +6 -4
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js +6 -3
- package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js +7 -2
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js +4 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +5 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +3 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +19 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js +17 -15
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js +3 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js +2 -2
- package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
- package/dist/core/agent-session.d.ts +1 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +5 -4
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/browser/schema.d.ts +1 -1
- package/dist/core/browser/schema.d.ts.map +1 -1
- package/dist/core/browser/schema.js +1 -1
- package/dist/core/browser/schema.js.map +1 -1
- package/dist/core/catalog-cache-scope.d.ts.map +1 -1
- package/dist/core/catalog-cache-scope.js +3 -1
- package/dist/core/catalog-cache-scope.js.map +1 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +3 -2
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/permissions.d.ts +16 -23
- package/dist/core/permissions.d.ts.map +1 -1
- package/dist/core/permissions.js +66 -141
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/plan-mode.d.ts +10 -12
- package/dist/core/plan-mode.d.ts.map +1 -1
- package/dist/core/plan-mode.js +16 -18
- package/dist/core/plan-mode.js.map +1 -1
- package/dist/core/runtime-bridges.d.ts.map +1 -1
- package/dist/core/runtime-bridges.js +2 -0
- package/dist/core/runtime-bridges.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +13 -6
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +9 -2
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-manager.d.ts +9 -1
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +40 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +4 -4
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/subagent-permission-inherit.d.ts +6 -10
- package/dist/core/subagent-permission-inherit.d.ts.map +1 -1
- package/dist/core/subagent-permission-inherit.js +14 -14
- package/dist/core/subagent-permission-inherit.js.map +1 -1
- package/dist/core/system-prompt.d.ts +2 -0
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +9 -4
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/gateway/adapters/discord.d.ts.map +1 -1
- package/dist/gateway/adapters/discord.js +3 -8
- package/dist/gateway/adapters/discord.js.map +1 -1
- package/dist/gateway/adapters/telegram.d.ts.map +1 -1
- package/dist/gateway/adapters/telegram.js +7 -0
- package/dist/gateway/adapters/telegram.js.map +1 -1
- package/dist/gateway/agent-bridge.d.ts +4 -1
- package/dist/gateway/agent-bridge.d.ts.map +1 -1
- package/dist/gateway/agent-bridge.js +57 -17
- package/dist/gateway/agent-bridge.js.map +1 -1
- package/dist/gateway/approval.d.ts +2 -6
- package/dist/gateway/approval.d.ts.map +1 -1
- package/dist/gateway/approval.js +3 -7
- package/dist/gateway/approval.js.map +1 -1
- package/dist/gateway/buttons.d.ts.map +1 -1
- package/dist/gateway/buttons.js +29 -19
- package/dist/gateway/buttons.js.map +1 -1
- package/dist/gateway/commands.d.ts +2 -0
- package/dist/gateway/commands.d.ts.map +1 -1
- package/dist/gateway/commands.js +39 -18
- package/dist/gateway/commands.js.map +1 -1
- package/dist/gateway/config.d.ts +1 -0
- package/dist/gateway/config.d.ts.map +1 -1
- package/dist/gateway/config.js +2 -0
- package/dist/gateway/config.js.map +1 -1
- package/dist/gateway/cron.d.ts +1 -1
- package/dist/gateway/cron.d.ts.map +1 -1
- package/dist/gateway/cron.js +2 -2
- package/dist/gateway/cron.js.map +1 -1
- package/dist/gateway/index.d.ts.map +1 -1
- package/dist/gateway/index.js +26 -26
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/mobile-commands.d.ts.map +1 -1
- package/dist/gateway/mobile-commands.js +15 -14
- package/dist/gateway/mobile-commands.js.map +1 -1
- package/dist/gateway/presenter.d.ts +12 -1
- package/dist/gateway/presenter.d.ts.map +1 -1
- package/dist/gateway/presenter.js +146 -48
- package/dist/gateway/presenter.js.map +1 -1
- package/dist/gateway/router.d.ts +5 -5
- package/dist/gateway/router.d.ts.map +1 -1
- package/dist/gateway/router.js +96 -42
- package/dist/gateway/router.js.map +1 -1
- package/dist/gateway/service.d.ts.map +1 -1
- package/dist/gateway/service.js +13 -4
- package/dist/gateway/service.js.map +1 -1
- package/dist/gateway/setup.d.ts +5 -0
- package/dist/gateway/setup.d.ts.map +1 -1
- package/dist/gateway/setup.js +98 -42
- package/dist/gateway/setup.js.map +1 -1
- package/dist/gateway/stream.d.ts +6 -5
- package/dist/gateway/stream.d.ts.map +1 -1
- package/dist/gateway/stream.js +24 -11
- package/dist/gateway/stream.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -2
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +4 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +23 -3
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/thinking-tail.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-tail.js +2 -2
- package/dist/modes/interactive/components/thinking-tail.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +12 -2
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -2
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +76 -90
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/node-runtime/{agent-session-services-GZVSOGYR.js → agent-session-services-YXXFCP5J.js} +12 -12
- package/dist/node-runtime/{builtin-extensions-QVCXNQT4.js → builtin-extensions-ZLAX7TUH.js} +3 -3
- package/dist/node-runtime/{chunk-W64JC4E7.js → chunk-2HHLJWGD.js} +3 -87
- package/dist/node-runtime/{chunk-VWCE2HSZ.js → chunk-2HMIRK7W.js} +4 -4
- package/dist/node-runtime/{chunk-XLTL257W.js → chunk-2KIPT4HJ.js} +5 -1
- package/dist/node-runtime/{chunk-RIR5EDDJ.js → chunk-3XPLBUEM.js} +17 -12
- package/dist/node-runtime/{chunk-QAZOULTU.js → chunk-6XL67VVY.js} +40 -6
- package/dist/node-runtime/chunk-7S3T6YEA.js +97 -0
- package/dist/node-runtime/{chunk-R3K2F5GI.js → chunk-B4HP6ZWM.js} +2 -0
- package/dist/node-runtime/{chunk-TQGPP4SC.js → chunk-CDVHZOOK.js} +1 -1
- package/dist/node-runtime/{chunk-YJMMG7C6.js → chunk-DSIKTUPW.js} +1 -1
- package/dist/node-runtime/{chunk-LFZDVKSP.js → chunk-E4D3IGP2.js} +41 -25
- package/dist/node-runtime/{chunk-OFKSVRV7.js → chunk-GYIXXQAO.js} +1 -1
- package/dist/node-runtime/{chunk-BX2RB477.js → chunk-HFVZUPFJ.js} +1 -1
- package/dist/node-runtime/{chunk-AZJHNQKQ.js → chunk-I54LGHWM.js} +1 -1
- package/dist/node-runtime/{chunk-YHQ3NBB3.js → chunk-IJIFHRTB.js} +20 -18
- package/dist/node-runtime/{chunk-GS66LV4M.js → chunk-KJ6DWS3K.js} +4 -4
- package/dist/node-runtime/{chunk-HPUP7E4T.js → chunk-KWIYUUZK.js} +68 -42
- package/dist/node-runtime/{chunk-TVJUOJZJ.js → chunk-LQP3RB67.js} +184 -1527
- package/dist/node-runtime/{chunk-VSELYKWU.js → chunk-LWYIVUGV.js} +2 -1
- package/dist/node-runtime/{chunk-JHYKXIMM.js → chunk-MPKSOJBT.js} +1 -1
- package/dist/node-runtime/{chunk-GMHJCCEN.js → chunk-NRKGMJYU.js} +4 -1
- package/dist/node-runtime/{chunk-CSUZVNYE.js → chunk-OVX6X377.js} +10 -6
- package/dist/node-runtime/{chunk-DD5YWFSJ.js → chunk-QTU6AKNJ.js} +130 -65
- package/dist/node-runtime/{chunk-LLUIPGDR.js → chunk-RC7DMV45.js} +110 -77
- package/dist/node-runtime/{chunk-UWPJL22I.js → chunk-SLVOAQOY.js} +15 -4
- package/dist/node-runtime/{chunk-EKVFP6YF.js → chunk-TORR5XBV.js} +17 -16
- package/dist/node-runtime/{chunk-UP2XBVH5.js → chunk-UOEDI7RP.js} +1 -1
- package/dist/node-runtime/{chunk-DQMGU675.js → chunk-VQFSUJJG.js} +20 -17
- package/dist/node-runtime/{chunk-X3URCYCU.js → chunk-WF7PGWRZ.js} +14 -14
- package/dist/node-runtime/chunk-YCUZEGJG.js +1361 -0
- package/dist/node-runtime/{chunk-5D7LC2ZQ.js → chunk-ZXSGTGJ6.js} +54 -85
- package/dist/node-runtime/cli-runtime.js +1 -1
- package/dist/node-runtime/{command-PDVTBRWA.js → command-6WDOYKS6.js} +5 -5
- package/dist/node-runtime/{commands-KAMO2T6P.js → commands-NZLSOHPE.js} +2 -2
- package/dist/node-runtime/{commands-XDCFGIGW.js → commands-QC6VUZJQ.js} +9 -9
- package/dist/node-runtime/{config-RORQUQFG.js → config-D4QUPAHX.js} +1 -1
- package/dist/node-runtime/{direct-tool-executor-YAVOLDFY.js → direct-tool-executor-77GW4F5P.js} +3 -3
- package/dist/node-runtime/{export-html-KSOIMVPI.js → export-html-VM4J2MNR.js} +1 -1
- package/dist/node-runtime/{gateway-AYWM5DIO.js → gateway-INAYBF4Q.js} +141 -85
- package/dist/node-runtime/index.js +23 -21
- package/dist/node-runtime/{init-X2LIUB2H.js → init-HS6NQXSK.js} +2 -2
- package/dist/node-runtime/{install-cli-3BO4MMQ6.js → install-cli-KL4UDDAD.js} +3 -3
- package/dist/node-runtime/{interactive-mode-4MFRKAHG.js → interactive-mode-Z5M7WYYZ.js} +14 -14
- package/dist/node-runtime/{interactive-view-TUZHCQM3.js → interactive-view-NGFAMHPW.js} +2 -2
- package/dist/node-runtime/{lunr-browser-RYFIIVJN.js → lunr-browser-IR7TL3J7.js} +4 -4
- package/dist/node-runtime/{lunr-cron-YWXEPZMQ.js → lunr-cron-LWIZJM2N.js} +8 -8
- package/dist/node-runtime/main.js +19 -18
- package/dist/node-runtime/{mobile-commands-LVHDAUDP.js → mobile-commands-J7OJEKFO.js} +6 -6
- package/dist/node-runtime/{model-runtime-PLQKAG4B.js → model-runtime-OO5HFLWE.js} +1 -1
- package/dist/node-runtime/{package-manager-cli-6GT3Z3CK.js → package-manager-cli-VYZM5WHN.js} +10 -8
- package/dist/node-runtime/{pi-intercom-HBPK5HSJ.js → pi-intercom-QM53RLTS.js} +2 -0
- package/dist/node-runtime/{pi-mcp-adapter-E6WULBKF.js → pi-mcp-adapter-5UKBZP44.js} +7 -6
- package/dist/node-runtime/{pi-subagents-CDWK2AKY.js → pi-subagents-DNY7EAIG.js} +23 -13
- package/dist/node-runtime/{proxy-modes-OSQCWRBI.js → proxy-modes-LGEUYD7R.js} +3 -3
- package/dist/node-runtime/rpc-entry.js +19 -18
- package/dist/node-runtime/{runtime-bridges-3XUQ46XW.js → runtime-bridges-VRDDR73P.js} +8 -1
- package/dist/node-runtime/{service-ISSP6VHE.js → service-MDQIPQ26.js} +1 -1
- package/dist/node-runtime/{session-handoff-HC7R5E24.js → session-handoff-GWARVEWT.js} +2 -2
- package/dist/node-runtime/{session-manager-CFN4UFM2.js → session-manager-JB5J6XBN.js} +1 -1
- package/dist/node-runtime/{settings-manager-6VEMXRDL.js → settings-manager-J4SPQPDJ.js} +10 -7
- package/dist/node-runtime/setup-CQ2NLVK5.js +214 -0
- package/dist/node-runtime/{subagent-executor-M5VWB3D3.js → subagent-executor-KZZQGAKV.js} +40 -7
- package/dist/node-runtime/{update-cli-UVKJWRRJ.js → update-cli-GTFJC7XK.js} +4 -5
- package/dist/startup/interactive-view.d.ts.map +1 -1
- package/dist/startup/interactive-view.js +5 -1
- package/dist/startup/interactive-view.js.map +1 -1
- package/docs/browser.md +1 -1
- package/docs/features.md +19 -18
- package/docs/index.md +1 -1
- package/docs/keybindings.md +1 -1
- package/docs/providers.md +6 -2
- package/docs/quickstart.md +2 -2
- package/docs/settings.md +1 -1
- package/docs/usage.md +4 -4
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/plan-mode/README.md +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
- package/dist/node-runtime/chunk-LISUTZS3.js +0 -19
- package/dist/node-runtime/setup-5SR2J35A.js +0 -155
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createSyntheticSourceInfo,
|
|
8
8
|
expandPromptTemplate,
|
|
9
9
|
formatSkillsForPrompt
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YCUZEGJG.js";
|
|
11
11
|
import {
|
|
12
12
|
stripFrontmatter
|
|
13
13
|
} from "./chunk-QFWG2RVL.js";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
ModelRuntime,
|
|
29
29
|
isAuthInvalidError,
|
|
30
30
|
isUsageLimitError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KJ6DWS3K.js";
|
|
32
32
|
import {
|
|
33
33
|
SettingsManager
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6XL67VVY.js";
|
|
35
35
|
import {
|
|
36
36
|
DEFAULT_THINKING_LEVEL,
|
|
37
37
|
calculateContextTokens,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
generateBranchSummary,
|
|
44
44
|
prepareCompaction,
|
|
45
45
|
shouldCompact
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GYIXXQAO.js";
|
|
47
47
|
import {
|
|
48
48
|
ExtensionRunner,
|
|
49
49
|
emitSessionShutdownEvent
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
} from "./chunk-BBUVIEZB.js";
|
|
54
54
|
import {
|
|
55
55
|
gateToolCall
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-ZXSGTGJ6.js";
|
|
57
57
|
import {
|
|
58
58
|
isUserInstructionsPath,
|
|
59
59
|
loadSelectedUserInstructions
|
|
@@ -66,13 +66,13 @@ import {
|
|
|
66
66
|
} from "./chunk-CSFI6YXL.js";
|
|
67
67
|
import {
|
|
68
68
|
SessionTransferError
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-I54LGHWM.js";
|
|
70
70
|
import {
|
|
71
71
|
CURRENT_SESSION_VERSION,
|
|
72
72
|
SessionManager,
|
|
73
73
|
getDefaultSessionDir,
|
|
74
74
|
getLatestCompactionEntry
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-2KIPT4HJ.js";
|
|
76
76
|
import {
|
|
77
77
|
convertToLlm
|
|
78
78
|
} from "./chunk-FVDOXRUD.js";
|
|
@@ -667,7 +667,7 @@ function registerSubagentWaitInterruptionOwner(sessionId, owner) {
|
|
|
667
667
|
|
|
668
668
|
// packages/coding-agent/dist/core/system-prompt.js
|
|
669
669
|
function buildSystemPrompt(options) {
|
|
670
|
-
let { customPrompt, modelSlug, selectedTools, appendSystemPrompt, cwd, contextFiles: providedContextFiles, skills: providedSkills } = options, promptCwd = cwd.replace(/\\/g, "/"), appendSection = appendSystemPrompt ? `
|
|
670
|
+
let { customPrompt, modelSlug, automaticSubagentDelegation = !0, selectedTools, appendSystemPrompt, cwd, contextFiles: providedContextFiles, skills: providedSkills } = options, promptCwd = cwd.replace(/\\/g, "/"), appendSection = appendSystemPrompt ? `
|
|
671
671
|
|
|
672
672
|
${appendSystemPrompt}` : "", contextFiles = providedContextFiles ?? [], skills = providedSkills ?? [];
|
|
673
673
|
if (customPrompt) {
|
|
@@ -700,7 +700,7 @@ Behavior guidelines:
|
|
|
700
700
|
- Default to writing no comments. Only add one if the why is non-obvious: a hidden constraint, a subtle invariant, a workaround for a specific bug, something that would surprise the reader. If removing the comment wouldn't confuse a future reader, don't write it.
|
|
701
701
|
- Keep comments up to date! When making changes, it's important to keep things in sync. An outdated comment is worse than no comment at all.
|
|
702
702
|
- Carefully consider the reversibility and blast radius of actions. Generally you can freely take local, reversible actions like editing files or running tests. But for actions that are hard to reverse, affect shared systems beyond your local environment, or could otherwise be risky or destructive, check with the user before proceeding.
|
|
703
|
-
- Orchestrate subagents with intent! Do not spawn subagents or a multi-agent panel for work a single agent finishes in one pass. Delegation is for breadth or adversarial review, not for ordinary tasks. Use subagents as a tool when there is genuine benefit to it or the user explicitly asks for it.
|
|
703
|
+
${automaticSubagentDelegation ? "- Orchestrate subagents with intent! Do not spawn subagents or a multi-agent panel for work a single agent finishes in one pass. Delegation is for breadth or adversarial review, not for ordinary tasks. Use subagents as a tool when there is genuine benefit to it or the user explicitly asks for it." : "- Work on tasks directly. Launch subagents only when the user specifically instructs you to delegate work."}
|
|
704
704
|
- When several agents work in parallel, state file ownership up front so they do not collide.
|
|
705
705
|
- Tests are good! Endless smoke tests, regressions tests for feature deletions, etc, much less good. Tests should be focused, not slop.
|
|
706
706
|
- Prefer editing existing files to creating new ones.
|
|
@@ -717,8 +717,8 @@ Guidelines:
|
|
|
717
717
|
- Each edits[].oldText is matched against the original file, not after earlier edits are applied. Do not emit overlapping or nested edits. Merge nearby changes into one edit.
|
|
718
718
|
- Keep edits[].oldText as small as possible while still being unique in the file. Do not pad with large unchanged regions.
|
|
719
719
|
- Use write only for new files or complete rewrites.
|
|
720
|
-
${todoGuideline}
|
|
721
|
-
- Resume a subagent only when its work is unfinished or the next task genuinely needs the context it built up. Otherwise launch a new subagent.
|
|
720
|
+
${todoGuideline}${automaticSubagentDelegation ? `- Use subagents for independent parallel work, specialist analysis, or substantial research. Subagents start with fresh sessions. Use intercom instead to coordinate with an existing lunR session.
|
|
721
|
+
` : ""}- Resume a subagent only when its work is unfinished or the next task genuinely needs the context it built up. Otherwise launch a new subagent.
|
|
722
722
|
- Use ast_search for structural code matches.
|
|
723
723
|
- Use cron only when the user asks to schedule or manage unattended prompts.
|
|
724
724
|
- For gateway work, inspect with \`lunr gateway status\` or \`lunr gateway doctor\`, configure with \`lunr gateway setup\`, and run \`lunr gateway start\` or \`lunr gateway stop\` only with user approval. Test by asking the user to send \`/whoami\` or a normal message to the bot; there is no arbitrary outbound send command. Keep bot tokens out of commands and output. See ${docsPath}/features.md for pairing, logs, and service details.
|
|
@@ -838,9 +838,9 @@ var THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"
|
|
|
838
838
|
_baseSystemPrompt = "";
|
|
839
839
|
_baseSystemPromptOptions;
|
|
840
840
|
_systemPromptOverride;
|
|
841
|
-
// lunr: core-owned system-prompt append (
|
|
841
|
+
// lunr: core-owned system-prompt append (read-only mode addendum) applied on top of base/override
|
|
842
842
|
_systemPromptAppend;
|
|
843
|
-
// lunr: core-owned tool-call gates (
|
|
843
|
+
// lunr: core-owned tool-call gates (read-only mode) checked before extension tool_call handlers
|
|
844
844
|
_toolCallGates = [];
|
|
845
845
|
constructor(config) {
|
|
846
846
|
this.agent = config.agent, this.sessionManager = config.sessionManager, this.settingsManager = config.settingsManager, this._scopedModels = config.scopedModels ?? [], this._resourceLoader = config.resourceLoader, this._customTools = config.customTools ?? [], this._cwd = config.cwd, this._agentDir = config.agentDir ?? getAgentDir(), this._modelRuntime = config.modelRuntime, this._syncOpenAIServiceTier(), this._extensionRunnerRef = config.extensionRunnerRef, this._initialActiveToolNames = config.initialActiveToolNames, this._allowedToolNames = config.allowedToolNames ? new Set(config.allowedToolNames) : void 0, this._excludedToolNames = config.excludedToolNames ? new Set(config.excludedToolNames) : void 0, this._baseToolsOverride = config.baseToolsOverride, this._sessionStartEvent = config.sessionStartEvent ?? { type: "session_start", reason: "startup" };
|
|
@@ -1227,7 +1227,7 @@ var THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"
|
|
|
1227
1227
|
return this.agent.state.systemPrompt;
|
|
1228
1228
|
}
|
|
1229
1229
|
/**
|
|
1230
|
-
* lunr: register a core-owned tool-call gate (
|
|
1230
|
+
* lunr: register a core-owned tool-call gate (read-only mode). Gates run before extension
|
|
1231
1231
|
* tool_call handlers and even when no extension handles tool_call. Returns an
|
|
1232
1232
|
* unsubscribe function.
|
|
1233
1233
|
*/
|
|
@@ -1371,6 +1371,7 @@ ${this._systemPromptAppend}` : prompt;
|
|
|
1371
1371
|
return this._baseSystemPromptOptions = {
|
|
1372
1372
|
cwd: this._cwd,
|
|
1373
1373
|
modelSlug: this.model ? `${this.model.provider}/${this.model.id}` : void 0,
|
|
1374
|
+
automaticSubagentDelegation: this.settingsManager.getAutomaticSubagentDelegation(),
|
|
1374
1375
|
skills: loadedSkills,
|
|
1375
1376
|
contextFiles,
|
|
1376
1377
|
customPrompt: loaderSystemPrompt,
|
|
@@ -2779,7 +2780,7 @@ ${command}` : command;
|
|
|
2779
2780
|
*/
|
|
2780
2781
|
async exportToHtml(outputPath) {
|
|
2781
2782
|
let [{ exportSessionToHtml }, { createToolHtmlRenderer }] = await Promise.all([
|
|
2782
|
-
import("./export-html-
|
|
2783
|
+
import("./export-html-VM4J2MNR.js"),
|
|
2783
2784
|
import("./tool-renderer-MV5O452K.js")
|
|
2784
2785
|
]), configuredThemeName = this.settingsManager.getTheme(), themeName = configuredThemeName && getThemeByName(configuredThemeName) ? configuredThemeName : void 0, toolRenderer = createToolHtmlRenderer({
|
|
2785
2786
|
getToolDefinition: (name) => this.getToolDefinition(name),
|
|
@@ -3231,15 +3232,17 @@ async function createOwnedAgentSession(options) {
|
|
|
3231
3232
|
},
|
|
3232
3233
|
convertToLlm: convertToLlmWithBlockImages,
|
|
3233
3234
|
streamFn: async (model2, context, options2) => {
|
|
3234
|
-
let providerRetrySettings = settingsManager.getProviderRetrySettings(), httpIdleTimeoutMs = settingsManager.getHttpIdleTimeoutMs(), effectiveTimeoutMs = httpIdleTimeoutMs === 0 ? 2147483647 : httpIdleTimeoutMs, timeoutMs = options2?.timeoutMs ?? providerRetrySettings.timeoutMs ?? effectiveTimeoutMs, websocketConnectTimeoutMs = options2?.websocketConnectTimeoutMs ?? settingsManager.getWebSocketConnectTimeoutMs(), headerRunner = extensionRunnerRef.current;
|
|
3235
|
+
let providerRetrySettings = settingsManager.getProviderRetrySettings(), httpIdleTimeoutMs = settingsManager.getHttpIdleTimeoutMs(), effectiveTimeoutMs = httpIdleTimeoutMs === 0 ? 2147483647 : httpIdleTimeoutMs, timeoutMs = options2?.timeoutMs ?? providerRetrySettings.timeoutMs ?? effectiveTimeoutMs, websocketConnectTimeoutMs = options2?.websocketConnectTimeoutMs ?? settingsManager.getWebSocketConnectTimeoutMs(), headerRunner = extensionRunnerRef.current, subscription = model2.provider === "anthropic" && (await modelRuntime.getAuth(model2, { apiKey: options2?.apiKey, env: options2?.env }))?.auth.externalClaudeCode;
|
|
3235
3236
|
return modelRuntime.streamSimple(model2, context, {
|
|
3236
3237
|
...options2,
|
|
3238
|
+
...subscription && !headerRunner?.hasHandlers("before_provider_request") ? { onPayload: void 0 } : {},
|
|
3239
|
+
...subscription && !headerRunner?.hasHandlers("after_provider_response") ? { onResponse: void 0 } : {},
|
|
3237
3240
|
timeoutMs,
|
|
3238
3241
|
websocketConnectTimeoutMs,
|
|
3239
3242
|
cacheRetention: settingsManager.getCacheRetention(),
|
|
3240
3243
|
maxRetries: options2?.maxRetries ?? providerRetrySettings.maxRetries,
|
|
3241
3244
|
maxRetryDelayMs: options2?.maxRetryDelayMs ?? providerRetrySettings.maxRetryDelayMs,
|
|
3242
|
-
transformHeaders: async (requestHeaders) => {
|
|
3245
|
+
transformHeaders: subscription && !headerRunner?.hasHandlers("before_provider_headers") ? void 0 : async (requestHeaders) => {
|
|
3243
3246
|
let headers = mergeProviderAttributionHeaders(model2, settingsManager, options2?.sessionId, requestHeaders);
|
|
3244
3247
|
return headerRunner?.hasHandlers("before_provider_headers") ? headerRunner.emitBeforeProviderHeaders(headers ?? {}) : headers ?? {};
|
|
3245
3248
|
}
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
TODOS_ENABLED_CHANGED_SYMBOL
|
|
10
10
|
} from "./chunk-CCCN2UCX.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
isReadOnlyModeActive,
|
|
13
13
|
requestPlanApproval
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZXSGTGJ6.js";
|
|
15
15
|
import {
|
|
16
16
|
ashxj_tui_default
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MPKSOJBT.js";
|
|
18
18
|
import {
|
|
19
19
|
measureStartup
|
|
20
20
|
} from "./chunk-PVCDKGR6.js";
|
|
@@ -867,16 +867,16 @@ function lunr_todos_default(pi) {
|
|
|
867
867
|
|
|
868
868
|
// packages/coding-agent/dist/builtin-extensions/lunr-plan-tools.js
|
|
869
869
|
import { Text as Text2 } from "@ashx-j/lunr-tui";
|
|
870
|
-
var PRESENT_PLAN_WRONG_MODE_TEXT = "present_plan is only available in
|
|
871
|
-
async function runPresentPlan(summary) {
|
|
872
|
-
return
|
|
870
|
+
var PRESENT_PLAN_WRONG_MODE_TEXT = "present_plan is only available in read-only mode.";
|
|
871
|
+
async function runPresentPlan(summary, sessionId) {
|
|
872
|
+
return isReadOnlyModeActive(sessionId) ? requestPlanApproval(summary) : PRESENT_PLAN_WRONG_MODE_TEXT;
|
|
873
873
|
}
|
|
874
874
|
function lunr_plan_tools_default(pi) {
|
|
875
875
|
pi.registerTool({
|
|
876
876
|
name: "present_plan",
|
|
877
877
|
label: "Plan",
|
|
878
878
|
description: [
|
|
879
|
-
"Present
|
|
879
|
+
"Present a finished plan for user approval. Only available in read-only mode.",
|
|
880
880
|
"Call once with a concise, concrete summary of the plan; the user approves",
|
|
881
881
|
"or declines it in a dialog. The result text says whether to implement or revise."
|
|
882
882
|
].join(`
|
|
@@ -884,9 +884,9 @@ function lunr_plan_tools_default(pi) {
|
|
|
884
884
|
parameters: typebox_exports.Object({
|
|
885
885
|
summary: typebox_exports.String({ description: "Concise summary of the plan to approve." })
|
|
886
886
|
}),
|
|
887
|
-
async execute(_toolCallId, params) {
|
|
887
|
+
async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
|
|
888
888
|
let summary = typeof params?.summary == "string" ? params.summary.trim() : "";
|
|
889
|
-
return { content: [{ type: "text", text: await runPresentPlan(summary) }] };
|
|
889
|
+
return { content: [{ type: "text", text: await runPresentPlan(summary, ctx.sessionManager.getSessionId()) }] };
|
|
890
890
|
},
|
|
891
891
|
renderCall(_args, theme) {
|
|
892
892
|
return new Text2(theme.fg("toolTitle", theme.bold("present_plan")), 0, 0);
|
|
@@ -925,14 +925,14 @@ 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-
|
|
929
|
-
{ name: "pi-intercom", load: () => import("./pi-intercom-
|
|
928
|
+
{ name: "lunr-cron", load: () => import("./lunr-cron-LWIZJM2N.js") },
|
|
929
|
+
{ name: "pi-intercom", load: () => import("./pi-intercom-QM53RLTS.js") },
|
|
930
930
|
{ name: "pi-prompt-template-model", load: () => import("./pi-prompt-template-model-QWTCGLJU.js") },
|
|
931
|
-
{ name: "pi-subagents", load: () => import("./pi-subagents-
|
|
931
|
+
{ name: "pi-subagents", load: () => import("./pi-subagents-DNY7EAIG.js") },
|
|
932
932
|
{ name: "pi-web-access", load: () => import("./pi-web-access-WTGMNZ32.js") },
|
|
933
|
-
{ name: "lunr-browser", load: () => import("./lunr-browser-
|
|
933
|
+
{ name: "lunr-browser", load: () => import("./lunr-browser-IR7TL3J7.js") },
|
|
934
934
|
{ name: "pi-lsp-extension", load: () => import("./src-IVPNZ2BX.js") },
|
|
935
|
-
{ name: "pi-mcp-adapter", load: () => import("./pi-mcp-adapter-
|
|
935
|
+
{ name: "pi-mcp-adapter", load: () => import("./pi-mcp-adapter-5UKBZP44.js") }
|
|
936
936
|
], DEFERRED_BUILTIN_EXTENSION_NAMES = DEFERRED_BUILTIN_LOADERS.map((entry) => entry.name), DEFERRED_BUILTIN_FLAGS = ["mcp-config"];
|
|
937
937
|
async function loadDeferredBuiltinExtensions() {
|
|
938
938
|
return await Promise.all(DEFERRED_BUILTIN_LOADERS.map(async ({ name, load }) => {
|