@ashx-j/lunr 0.2.20 → 0.2.21
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 +13 -1
- package/dist/builtin-extensions/lunr-todos.d.ts +6 -5
- package/dist/builtin-extensions/lunr-todos.d.ts.map +1 -1
- package/dist/builtin-extensions/lunr-todos.js +9 -7
- package/dist/builtin-extensions/lunr-todos.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/broker/spawn.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/broker/spawn.js +30 -21
- package/dist/builtin-extensions/pi-intercom/broker/spawn.js.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-intercom/index.js +12 -3
- package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js +2 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +7 -6
- package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/extension/index.js +63 -29
- package/dist/builtin-extensions/pi-subagents/src/extension/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 +2 -2
- 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 +3 -3
- 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 +3 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts +1 -0
- 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 +26 -7
- package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.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 -3
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts +6 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js +23 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts +100 -0
- 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 +46 -31
- package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.d.ts +15 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.js +14 -4
- package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.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 +1 -1
- 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 +0 -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 +9 -9
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.d.ts +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.js +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts +3 -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 +2 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts +2 -2
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js +5 -10
- package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.js +3 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.js.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +5 -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/builtin-extensions/pi-subagents/src/slash/delegation-adapters.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/delegation-adapters.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts +7 -0
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js +11 -7
- package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +4 -0
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +22 -23
- package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +2 -0
- package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js +237 -374
- package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
- package/dist/core/customize.d.ts +2 -0
- package/dist/core/customize.d.ts.map +1 -1
- package/dist/core/customize.js +3 -0
- package/dist/core/customize.js.map +1 -1
- package/dist/core/settings-manager.d.ts +4 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +11 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/subagent-spinner-setting.d.ts +6 -0
- package/dist/core/subagent-spinner-setting.d.ts.map +1 -0
- package/dist/core/subagent-spinner-setting.js +12 -0
- package/dist/core/subagent-spinner-setting.js.map +1 -0
- package/dist/core/subagent-spinner.d.ts +4 -0
- package/dist/core/subagent-spinner.d.ts.map +1 -0
- package/dist/core/subagent-spinner.js +6 -0
- package/dist/core/subagent-spinner.js.map +1 -0
- 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 +73 -1
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/extension-widget-order.d.ts +8 -0
- package/dist/modes/interactive/extension-widget-order.d.ts.map +1 -0
- package/dist/modes/interactive/extension-widget-order.js +37 -0
- package/dist/modes/interactive/extension-widget-order.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +15 -22
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/node-runtime/{agent-session-services-75JKASCW.js → agent-session-services-C743TYQE.js} +4 -3
- package/dist/node-runtime/{builtin-extensions-X4JMM4ZS.js → builtin-extensions-JCOPAAB5.js} +2 -1
- package/dist/node-runtime/{chunk-QKFMBRAL.js → chunk-2BUAYZ7K.js} +94 -25
- package/dist/node-runtime/chunk-5ZH3ZFIZ.js +308 -0
- package/dist/node-runtime/{chunk-BBUVIEZB.js → chunk-A3KMVBZV.js} +10 -1
- package/dist/node-runtime/{chunk-K3646JTM.js → chunk-AWVD5IEY.js} +7 -307
- package/dist/node-runtime/{chunk-ELWEXVO5.js → chunk-GB2MGFLI.js} +11 -11
- package/dist/node-runtime/chunk-LISUTZS3.js +19 -0
- package/dist/node-runtime/{chunk-AL2FMKKM.js → chunk-PDNXVXMD.js} +12 -12
- package/dist/node-runtime/{chunk-46ECNOLF.js → chunk-SY2TFMLO.js} +57 -17
- package/dist/node-runtime/{chunk-HQCKFM2O.js → chunk-VGYZ3APQ.js} +3 -0
- package/dist/node-runtime/{chunk-4DJ6HEGH.js → chunk-VZR3NCM7.js} +3 -3
- package/dist/node-runtime/{chunk-AOFXZQKA.js → chunk-W3SILANP.js} +1 -1
- package/dist/node-runtime/{chunk-CBGB57XT.js → chunk-WLLDXJRT.js} +10 -0
- package/dist/node-runtime/{chunk-JYNNB7DU.js → chunk-XI77KVKA.js} +2 -2
- package/dist/node-runtime/{chunk-4CSFRBCN.js → chunk-Y5KOEMBH.js} +1 -1
- package/dist/node-runtime/{chunk-AROOY4BB.js → chunk-YMEAYRBE.js} +1 -1
- package/dist/node-runtime/{command-RBTRL55A.js → command-P4NYCJ2M.js} +1 -1
- package/dist/node-runtime/{customize-XEXL2DGQ.js → customize-LF5VST47.js} +1 -1
- package/dist/node-runtime/{gateway-L4ANRTVE.js → gateway-BM6NLOH4.js} +1 -1
- package/dist/node-runtime/index.js +13 -11
- package/dist/node-runtime/{interactive-mode-HPUNH7SV.js → interactive-mode-EVVBA64D.js} +9 -7
- package/dist/node-runtime/{lunr-cron-NNYTWTGF.js → lunr-cron-4VHP4E4B.js} +1 -1
- package/dist/node-runtime/main.js +11 -9
- package/dist/node-runtime/{package-manager-cli-7RKSZGEN.js → package-manager-cli-N37546V5.js} +5 -4
- package/dist/node-runtime/{pi-intercom-DDQMRNPJ.js → pi-intercom-NV2LW6X7.js} +34 -33
- package/dist/node-runtime/{pi-subagents-T5WMMLBB.js → pi-subagents-6MUIFNDM.js} +286 -345
- package/dist/node-runtime/rpc-entry.js +11 -9
- package/dist/node-runtime/{runtime-bridges-NJQERQ72.js → runtime-bridges-2VQTLPOZ.js} +2 -2
- package/dist/node-runtime/{settings-manager-GHPTUN7R.js → settings-manager-CUGAZWAB.js} +2 -1
- package/dist/node-runtime/{subagent-executor-SRFC26SJ.js → subagent-executor-MH4A7CCF.js} +14 -46
- package/dist/node-runtime/{update-cli-L3JIBH2U.js → update-cli-XTZMZGOL.js} +2 -1
- package/docs/features.md +6 -2
- package/docs/settings.md +2 -1
- 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/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
|
@@ -63,7 +63,8 @@ function resolveTempScopeId(options) {
|
|
|
63
63
|
}
|
|
64
64
|
return "shared";
|
|
65
65
|
}
|
|
66
|
-
var MAX_PARALLEL = Number.MAX_SAFE_INTEGER, MAX_CONCURRENCY = Number.MAX_SAFE_INTEGER, TEMP_ROOT_DIR = path.join(os.tmpdir(), `pi-subagents-${resolveTempScopeId()}`), RESULTS_DIR = path.join(TEMP_ROOT_DIR, "async-subagent-results"), ASYNC_DIR = path.join(TEMP_ROOT_DIR, "async-subagent-runs"), CHAIN_RUNS_DIR = path.join(TEMP_ROOT_DIR, "chain-runs"), TEMP_ARTIFACTS_DIR = path.join(TEMP_ROOT_DIR, "artifacts"), WIDGET_KEY = "subagent-async", SLASH_RESULT_TYPE = "subagent-slash-result", SLASH_TEXT_RESULT_TYPE = "subagent-slash-text-result", SLASH_SUBAGENT_REQUEST_EVENT = "subagent:slash:request", SLASH_SUBAGENT_STARTED_EVENT = "subagent:slash:started", SLASH_SUBAGENT_RESPONSE_EVENT = "subagent:slash:response", SLASH_SUBAGENT_UPDATE_EVENT = "subagent:slash:update", SLASH_SUBAGENT_CANCEL_EVENT = "subagent:slash:cancel", POLL_INTERVAL_MS = 250
|
|
66
|
+
var MAX_PARALLEL = Number.MAX_SAFE_INTEGER, MAX_CONCURRENCY = Number.MAX_SAFE_INTEGER, TEMP_ROOT_DIR = path.join(os.tmpdir(), `pi-subagents-${resolveTempScopeId()}`), RESULTS_DIR = path.join(TEMP_ROOT_DIR, "async-subagent-results"), ASYNC_DIR = path.join(TEMP_ROOT_DIR, "async-subagent-runs"), CHAIN_RUNS_DIR = path.join(TEMP_ROOT_DIR, "chain-runs"), TEMP_ARTIFACTS_DIR = path.join(TEMP_ROOT_DIR, "artifacts"), WIDGET_KEY = "subagent-async", SLASH_RESULT_TYPE = "subagent-slash-result", SLASH_TEXT_RESULT_TYPE = "subagent-slash-text-result", SLASH_SUBAGENT_REQUEST_EVENT = "subagent:slash:request", SLASH_SUBAGENT_STARTED_EVENT = "subagent:slash:started", SLASH_SUBAGENT_RESPONSE_EVENT = "subagent:slash:response", SLASH_SUBAGENT_UPDATE_EVENT = "subagent:slash:update", SLASH_SUBAGENT_CANCEL_EVENT = "subagent:slash:cancel", POLL_INTERVAL_MS = 250;
|
|
67
|
+
var DEFAULT_SUBAGENT_MAX_DEPTH = 2, SUBAGENT_ACTIONS = ["status", "interrupt", "resume", "steer", "stop", "append-step", "doctor", "watchdog.status", "watchdog.check", "watchdog.recommend-model", "schedule", "schedule-list", "schedule-status", "schedule-cancel"];
|
|
67
68
|
var DEFAULT_FORK_PREAMBLE = "You are a delegated subagent running from a fork of the parent session. Treat the inherited conversation as reference-only context, not a live thread to continue. Do not continue or answer prior messages as if they are waiting for a reply. Your sole job is to execute the task below and return a focused result for that task using your tools.";
|
|
68
69
|
function normalizeTopLevelParallelValue(value) {
|
|
69
70
|
let parsed = typeof value == "number" ? value : typeof value == "string" ? Number(value) : NaN;
|
|
@@ -1926,7 +1927,7 @@ function resolveRuntimeScriptPath(basePathWithoutExt) {
|
|
|
1926
1927
|
let tsPath = `${basePathWithoutExt}.ts`;
|
|
1927
1928
|
return fs9.existsSync(tsPath) ? tsPath : `${basePathWithoutExt}.js`;
|
|
1928
1929
|
}
|
|
1929
|
-
var PROMPT_RUNTIME_EXTENSION_PATH = resolveRuntimeScriptPath(path10.join(path10.dirname(fileURLToPath(new URL("../builtin-extensions/pi-subagents/src/runs/shared/pi-args.js", import.meta.url).href)), "subagent-prompt-runtime")), FANOUT_CHILD_EXTENSION_PATH = resolveRuntimeScriptPath(path10.join(path10.dirname(fileURLToPath(new URL("../builtin-extensions/pi-subagents/src/runs/shared/pi-args.js", import.meta.url).href)), "..", "..", "extension", "fanout-child")), SUBAGENT_CHILD_ENV = "PI_SUBAGENT_CHILD", SUBAGENT_ORCHESTRATOR_TARGET_ENV = "PI_SUBAGENT_ORCHESTRATOR_TARGET", SUBAGENT_ORCHESTRATOR_SESSION_ID_ENV = "PI_SUBAGENT_ORCHESTRATOR_SESSION_ID", SUBAGENT_SUPERVISOR_CHANNEL_DIR_ENV = "PI_SUBAGENT_SUPERVISOR_CHANNEL_DIR", SUBAGENT_RUN_ID_ENV = "PI_SUBAGENT_RUN_ID", SUBAGENT_CHILD_AGENT_ENV = "PI_SUBAGENT_CHILD_AGENT", SUBAGENT_CHILD_INDEX_ENV = "PI_SUBAGENT_CHILD_INDEX", SUBAGENT_FANOUT_CHILD_ENV = "PI_SUBAGENT_FANOUT_CHILD", SUBAGENT_PARENT_EVENT_SINK_ENV = "PI_SUBAGENT_PARENT_EVENT_SINK", SUBAGENT_PARENT_CONTROL_INBOX_ENV = "PI_SUBAGENT_PARENT_CONTROL_INBOX", SUBAGENT_PARENT_ROOT_RUN_ID_ENV = "PI_SUBAGENT_PARENT_ROOT_RUN_ID", SUBAGENT_PARENT_RUN_ID_ENV = "PI_SUBAGENT_PARENT_RUN_ID", SUBAGENT_PARENT_CHILD_INDEX_ENV = "PI_SUBAGENT_PARENT_CHILD_INDEX", SUBAGENT_PARENT_DEPTH_ENV = "PI_SUBAGENT_PARENT_DEPTH", SUBAGENT_PARENT_PATH_ENV = "PI_SUBAGENT_PARENT_PATH", SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV = "PI_SUBAGENT_PARENT_CAPABILITY_TOKEN", SUBAGENT_PARENT_SESSION_ENV = "PI_SUBAGENT_PARENT_SESSION", SUBAGENT_PARENT_PERMISSION_MODE_ENV = "PI_SUBAGENT_PARENT_PERMISSION_MODE", SUBAGENT_CHILD_PERMISSION_ENV = "PI_SUBAGENT_CHILD_PERMISSION", SUBAGENT_STEER_INBOX_ENV = "PI_SUBAGENT_STEER_INBOX", SUBAGENT_STEER_CAPABILITY_ENV = "PI_SUBAGENT_STEER_CAPABILITY", SUBAGENT_STEER_ACK_DIR_ENV = "PI_SUBAGENT_STEER_ACK_DIR";
|
|
1930
|
+
var PROMPT_RUNTIME_EXTENSION_PATH = resolveRuntimeScriptPath(path10.join(path10.dirname(fileURLToPath(new URL("../builtin-extensions/pi-subagents/src/runs/shared/pi-args.js", import.meta.url).href)), "subagent-prompt-runtime")), FANOUT_CHILD_EXTENSION_PATH = resolveRuntimeScriptPath(path10.join(path10.dirname(fileURLToPath(new URL("../builtin-extensions/pi-subagents/src/runs/shared/pi-args.js", import.meta.url).href)), "..", "..", "extension", "fanout-child")), SUBAGENT_CHILD_ENV = "PI_SUBAGENT_CHILD", SUBAGENT_ORCHESTRATOR_TARGET_ENV = "PI_SUBAGENT_ORCHESTRATOR_TARGET", SUBAGENT_ORCHESTRATOR_SESSION_ID_ENV = "PI_SUBAGENT_ORCHESTRATOR_SESSION_ID", SUBAGENT_SUPERVISOR_SESSION_ID_ENV = "PI_SUBAGENT_SUPERVISOR_SESSION_ID", SUBAGENT_SUPERVISOR_CHANNEL_DIR_ENV = "PI_SUBAGENT_SUPERVISOR_CHANNEL_DIR", SUBAGENT_RUN_ID_ENV = "PI_SUBAGENT_RUN_ID", SUBAGENT_CHILD_AGENT_ENV = "PI_SUBAGENT_CHILD_AGENT", SUBAGENT_CHILD_INDEX_ENV = "PI_SUBAGENT_CHILD_INDEX", SUBAGENT_FANOUT_CHILD_ENV = "PI_SUBAGENT_FANOUT_CHILD", SUBAGENT_PARENT_EVENT_SINK_ENV = "PI_SUBAGENT_PARENT_EVENT_SINK", SUBAGENT_PARENT_CONTROL_INBOX_ENV = "PI_SUBAGENT_PARENT_CONTROL_INBOX", SUBAGENT_PARENT_ROOT_RUN_ID_ENV = "PI_SUBAGENT_PARENT_ROOT_RUN_ID", SUBAGENT_PARENT_RUN_ID_ENV = "PI_SUBAGENT_PARENT_RUN_ID", SUBAGENT_PARENT_CHILD_INDEX_ENV = "PI_SUBAGENT_PARENT_CHILD_INDEX", SUBAGENT_PARENT_DEPTH_ENV = "PI_SUBAGENT_PARENT_DEPTH", SUBAGENT_PARENT_PATH_ENV = "PI_SUBAGENT_PARENT_PATH", SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV = "PI_SUBAGENT_PARENT_CAPABILITY_TOKEN", SUBAGENT_PARENT_SESSION_ENV = "PI_SUBAGENT_PARENT_SESSION", SUBAGENT_PARENT_PERMISSION_MODE_ENV = "PI_SUBAGENT_PARENT_PERMISSION_MODE", SUBAGENT_CHILD_PERMISSION_ENV = "PI_SUBAGENT_CHILD_PERMISSION", SUBAGENT_STEER_INBOX_ENV = "PI_SUBAGENT_STEER_INBOX", SUBAGENT_STEER_CAPABILITY_ENV = "PI_SUBAGENT_STEER_CAPABILITY", SUBAGENT_STEER_ACK_DIR_ENV = "PI_SUBAGENT_STEER_ACK_DIR";
|
|
1930
1931
|
function sanitizeSupervisorChannelSegment(value) {
|
|
1931
1932
|
return value.trim().replace(/[^A-Za-z0-9._-]+/g, "-").replace(/^-+|-+$/g, "") || "unknown";
|
|
1932
1933
|
}
|
|
@@ -1983,7 +1984,7 @@ function buildPiArgs(input) {
|
|
|
1983
1984
|
...input.childAgentName ? { agent: input.childAgentName } : {}
|
|
1984
1985
|
}] : []
|
|
1985
1986
|
];
|
|
1986
|
-
if (env[SUBAGENT_PARENT_EVENT_SINK_ENV] = fanoutAuthorized ? input.parentEventSink ?? process.env[SUBAGENT_PARENT_EVENT_SINK_ENV] ?? "" : "", env[SUBAGENT_PARENT_CONTROL_INBOX_ENV] = fanoutAuthorized ? input.parentControlInbox ?? process.env[SUBAGENT_PARENT_CONTROL_INBOX_ENV] ?? "" : "", env[SUBAGENT_PARENT_ROOT_RUN_ID_ENV] = fanoutAuthorized ? input.parentRootRunId ?? process.env[SUBAGENT_PARENT_ROOT_RUN_ID_ENV] ?? input.runId ?? "" : "", env[SUBAGENT_PARENT_RUN_ID_ENV] = fanoutAuthorized ? parentRunId : "", env[SUBAGENT_PARENT_CHILD_INDEX_ENV] = fanoutAuthorized ? parentChildIndex : "", env[SUBAGENT_PARENT_DEPTH_ENV] = fanoutAuthorized ? String(parentDepth) : "", env[SUBAGENT_PARENT_PATH_ENV] = fanoutAuthorized ? encodeNestedPathEnv(parentPath) : "", env[SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV] = fanoutAuthorized ? input.parentCapabilityToken ?? process.env[SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV] ?? "" : "", env.PI_SUBAGENT_INHERIT_PROJECT_CONTEXT = input.inheritProjectContext ? "1" : "0", env.PI_SUBAGENT_INHERIT_SKILLS = input.inheritSkills ? "1" : "0", input.intercomSessionName && (env.PI_SUBAGENT_INTERCOM_SESSION_NAME = input.intercomSessionName), input.orchestratorIntercomTarget && (env[SUBAGENT_ORCHESTRATOR_TARGET_ENV] = input.orchestratorIntercomTarget), input.parentSessionId && (env[SUBAGENT_ORCHESTRATOR_SESSION_ID_ENV] = input.parentSessionId), input.parentSessionId && input.runId && (input.childId || input.childAgentName)) {
|
|
1987
|
+
if (env[SUBAGENT_PARENT_EVENT_SINK_ENV] = fanoutAuthorized ? input.parentEventSink ?? process.env[SUBAGENT_PARENT_EVENT_SINK_ENV] ?? "" : "", env[SUBAGENT_PARENT_CONTROL_INBOX_ENV] = fanoutAuthorized ? input.parentControlInbox ?? process.env[SUBAGENT_PARENT_CONTROL_INBOX_ENV] ?? "" : "", env[SUBAGENT_PARENT_ROOT_RUN_ID_ENV] = fanoutAuthorized ? input.parentRootRunId ?? process.env[SUBAGENT_PARENT_ROOT_RUN_ID_ENV] ?? input.runId ?? "" : "", env[SUBAGENT_PARENT_RUN_ID_ENV] = fanoutAuthorized ? parentRunId : "", env[SUBAGENT_PARENT_CHILD_INDEX_ENV] = fanoutAuthorized ? parentChildIndex : "", env[SUBAGENT_PARENT_DEPTH_ENV] = fanoutAuthorized ? String(parentDepth) : "", env[SUBAGENT_PARENT_PATH_ENV] = fanoutAuthorized ? encodeNestedPathEnv(parentPath) : "", env[SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV] = fanoutAuthorized ? input.parentCapabilityToken ?? process.env[SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV] ?? "" : "", env.PI_SUBAGENT_INHERIT_PROJECT_CONTEXT = input.inheritProjectContext ? "1" : "0", env.PI_SUBAGENT_INHERIT_SKILLS = input.inheritSkills ? "1" : "0", input.intercomSessionName && (env.PI_SUBAGENT_INTERCOM_SESSION_NAME = input.intercomSessionName), input.orchestratorIntercomTarget && (env[SUBAGENT_ORCHESTRATOR_TARGET_ENV] = input.orchestratorIntercomTarget), input.parentSessionId && (env[SUBAGENT_ORCHESTRATOR_SESSION_ID_ENV] = input.parentSessionId), env[SUBAGENT_SUPERVISOR_SESSION_ID_ENV] = input.supervisorSessionId ?? "", input.parentSessionId && input.runId && (input.childId || input.childAgentName)) {
|
|
1987
1988
|
let childIndex = input.childIndex ?? 0, channelAgent = input.childId ?? input.childAgentName, channelDir = supervisorChannelDir(input.runId, channelAgent, childIndex);
|
|
1988
1989
|
fs9.mkdirSync(path10.join(channelDir, "requests"), { recursive: !0 }), fs9.mkdirSync(path10.join(channelDir, "replies"), { recursive: !0 }), fs9.mkdirSync(path10.join(channelDir, "questions"), { recursive: !0 }), env[SUBAGENT_SUPERVISOR_CHANNEL_DIR_ENV] = channelDir, env[SUBAGENT_CHILD_INDEX_ENV] = String(childIndex);
|
|
1989
1990
|
}
|
|
@@ -2419,9 +2420,6 @@ function formatActivityLabel(lastActivityAt, activityState, now = Date.now()) {
|
|
|
2419
2420
|
function isCompletedStepStatus(status) {
|
|
2420
2421
|
return status === "complete" || status === "completed";
|
|
2421
2422
|
}
|
|
2422
|
-
function aggregateStepStatus(steps) {
|
|
2423
|
-
return steps.some((step) => step.status === "running") ? "running" : steps.some((step) => step.status === "failed") ? "failed" : steps.some((step) => step.status === "stopped") ? "stopped" : steps.some((step) => step.status === "paused") ? "paused" : steps.length > 0 && steps.every((step) => isCompletedStepStatus(step.status)) ? "complete" : "pending";
|
|
2424
|
-
}
|
|
2425
2423
|
function formatAgentRunningLabel(count) {
|
|
2426
2424
|
return count === 1 ? "1 agent running" : `${count} agents running`;
|
|
2427
2425
|
}
|
|
@@ -2505,6 +2503,34 @@ function formatNestedRunStatusLines(children, options = {}) {
|
|
|
2505
2503
|
});
|
|
2506
2504
|
}
|
|
2507
2505
|
|
|
2506
|
+
// packages/coding-agent/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js
|
|
2507
|
+
var LAUNCH_COMPATIBLE_ACTIONS = /* @__PURE__ */ new Set(["schedule", "append-step", "resume", "steer"]);
|
|
2508
|
+
function omitExecutionModeActionAlias(params) {
|
|
2509
|
+
let action = params.action?.toLowerCase();
|
|
2510
|
+
if (action === "single" && params.task !== void 0) {
|
|
2511
|
+
let rest = { ...params };
|
|
2512
|
+
return delete rest.action, rest;
|
|
2513
|
+
}
|
|
2514
|
+
if ((action === "parallel" || action === "tasks") && (params.tasks?.length ?? 0) > 0) {
|
|
2515
|
+
let rest = { ...params };
|
|
2516
|
+
return delete rest.action, rest;
|
|
2517
|
+
}
|
|
2518
|
+
return params;
|
|
2519
|
+
}
|
|
2520
|
+
function hasLaunchFields(params) {
|
|
2521
|
+
return params.task !== void 0 || Array.isArray(params.tasks) && params.tasks.length > 0 || Array.isArray(params.chain) && params.chain.length > 0;
|
|
2522
|
+
}
|
|
2523
|
+
function omitConflictingControlAction(params) {
|
|
2524
|
+
let action = params.action?.toLowerCase();
|
|
2525
|
+
if (!action || LAUNCH_COMPATIBLE_ACTIONS.has(action) || !hasLaunchFields(params))
|
|
2526
|
+
return params;
|
|
2527
|
+
let rest = { ...params };
|
|
2528
|
+
return delete rest.action, typeof rest.task == "string" && rest.task.length > 0 && (delete rest.tasks, delete rest.chain), rest;
|
|
2529
|
+
}
|
|
2530
|
+
function resolveSubagentRequestParams(params) {
|
|
2531
|
+
return omitConflictingControlAction(omitExecutionModeActionAlias(params));
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2508
2534
|
// packages/coding-agent/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.js
|
|
2509
2535
|
var CONTROL_EVENT_TYPES = ["active_long_running", "needs_attention"], CONTROL_NOTIFICATION_CHANNELS = ["event", "async", "intercom"], DEFAULT_NOTIFY_ON = ["active_long_running", "needs_attention"], DEFAULT_CONTROL_CONFIG = {
|
|
2510
2536
|
enabled: !0,
|
|
@@ -3893,7 +3919,7 @@ var REVIEW_ONLY_PATTERNS = [
|
|
|
3893
3919
|
/\balways\s+(?:edit|modify|change|fix|patch|apply)\b/i,
|
|
3894
3920
|
/\bapply\s+(?:the\s+)?fix(?:es)?\s+directly\b/i,
|
|
3895
3921
|
/\bmake\s+(?:the\s+)?code\s+changes\b/i
|
|
3896
|
-
], NO_EDIT_PROHIBITION_PATTERN = /\b(?:do not|don't|must not)\s+(?:edit|modify|write(?:\s+to)?|touch|change)\b((?:(?!\b(?:but|and|then)\b)[^.;,:!?\n–—-])*)/gi, GENERIC_PROHIBITION_OBJECT = /^\s*(?:(?:any|all|the|these|those|your|our|existing|project|source|sources|repo|repository)[\s/,-]*)*(?:files?|code|codebase|sources?|anything|repo(?:sitory)?)?\s*$/i, SCOPED_NO_EDIT_CONSTRAINT_PATTERNS = [
|
|
3922
|
+
], NO_EDIT_PROHIBITION_PATTERN = /\b(?:do not|don't|must not)\s+(?:implement|edit|modify|write(?:\s+to)?|touch|change)\b((?:(?!\b(?:but|and|then)\b)[^.;,:!?\n–—-])*)/gi, GENERIC_PROHIBITION_OBJECT = /^\s*(?:(?:any|all|the|these|those|your|our|existing|project|source|sources|repo|repository)[\s/,-]*)*(?:files?|code|codebase|sources?|anything|repo(?:sitory)?)?\s*$/i, SCOPED_NO_EDIT_CONSTRAINT_PATTERNS = [
|
|
3897
3923
|
/\bdo not edit files?\s+outside\b/i,
|
|
3898
3924
|
/\bdo not edit\s+outside\b/i,
|
|
3899
3925
|
/\bdo not edit\s+unrelated files?\b/i,
|
|
@@ -3950,17 +3976,14 @@ function taskHasReadOnlyDeliverable(taskText) {
|
|
|
3950
3976
|
function hasImplementationIntent(taskText) {
|
|
3951
3977
|
return GENERAL_IMPLEMENTATION_PATTERNS.some((pattern) => pattern.test(taskText)) || WORKER_IMPLEMENTATION_PATTERNS.some((pattern) => pattern.test(taskText)) || REVIEWER_REQUIRED_EDIT_PATTERNS.some((pattern) => pattern.test(taskText));
|
|
3952
3978
|
}
|
|
3953
|
-
function
|
|
3954
|
-
|
|
3955
|
-
}
|
|
3956
|
-
function classifyTaskMutationIntent(permissionsOrLegacyName, task) {
|
|
3957
|
-
if (isReadOnlyPermission(permissionsOrLegacyName))
|
|
3979
|
+
function classifyTaskMutationIntent(permissions, task) {
|
|
3980
|
+
if (permissions === "read-only")
|
|
3958
3981
|
return { kind: "read-only" };
|
|
3959
3982
|
let taskText = stripFrameworkInstructions(task), taskTextWithoutScopedConstraints = stripPatterns(taskText, SCOPED_NO_EDIT_CONSTRAINT_PATTERNS), prohibitions = analyzeNoEditProhibitions(taskTextWithoutScopedConstraints);
|
|
3960
3983
|
return prohibitions.present ? prohibitions.blanket ? { kind: "read-only" } : hasImplementationIntent(prohibitions.strippedText) ? { kind: "implementation" } : { kind: "read-only" } : hasImplementationIntent(taskText) ? { kind: "implementation" } : RESEARCH_TASK_PATTERNS.some((pattern) => pattern.test(taskText)) && !hasImplementationIntent(taskText) ? { kind: "read-only" } : taskHasReadOnlyDeliverable(taskTextWithoutScopedConstraints) ? { kind: "read-only" } : { kind: "unknown" };
|
|
3961
3984
|
}
|
|
3962
|
-
function expectsImplementationMutation(
|
|
3963
|
-
return
|
|
3985
|
+
function expectsImplementationMutation(permissions, task) {
|
|
3986
|
+
return classifyTaskMutationIntent(permissions, task).kind === "implementation";
|
|
3964
3987
|
}
|
|
3965
3988
|
var MAY_MUTATE_VERB_PATTERN = /\b(?:fix|implement|update|write|edit|modify|migrate|delete|remove|refactor|commit)\b/i;
|
|
3966
3989
|
function taskMayMutate(task) {
|
|
@@ -4724,6 +4747,17 @@ function acceptanceFailureMessage(ledger) {
|
|
|
4724
4747
|
return failedVerify ? `Acceptance verification '${failedVerify.id}' ${failedVerify.status}.` : ledger.reviewResult?.status === "needs-parent-decision" ? "Acceptance review required but no automatic reviewer result is available." : ledger.reviewResult?.status === "blockers" ? "Acceptance review found blockers." : "Acceptance rejected.";
|
|
4725
4748
|
}
|
|
4726
4749
|
|
|
4750
|
+
// packages/coding-agent/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.js
|
|
4751
|
+
function normalizeAsyncLaunchConfig(config) {
|
|
4752
|
+
return { ...config, asyncByDefault: !0, forceTopLevelAsync: !1 };
|
|
4753
|
+
}
|
|
4754
|
+
function subagentLaunchRunsAsync(params) {
|
|
4755
|
+
return !(params.foregroundOnly === !0 || params.clarify === !0 || params.async === !1);
|
|
4756
|
+
}
|
|
4757
|
+
function isAsyncSubagentExecution(params) {
|
|
4758
|
+
return params.action || !params.task && !params.tasks?.length && !params.chain?.length ? !1 : subagentLaunchRunsAsync(params);
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4727
4761
|
// packages/coding-agent/dist/builtin-extensions/pi-subagents/src/runs/shared/turn-budget.js
|
|
4728
4762
|
function resolveTurnBudgetConfig(raw, label = "turnBudget") {
|
|
4729
4763
|
if (raw === void 0)
|
|
@@ -8386,6 +8420,9 @@ function registerMainWatchdog(pi, options = {}) {
|
|
|
8386
8420
|
}), runtime;
|
|
8387
8421
|
}
|
|
8388
8422
|
|
|
8423
|
+
// packages/coding-agent/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.js
|
|
8424
|
+
var SUBAGENT_ASYNC_GUIDANCE = "Subagents run async by default. Set async:false when you need the result immediately and have no independent work to do, or need an interactive preview. Otherwise continue independent work or yield for normal interactive completion. Use subagent_wait for same-turn or skill completion. Headless sessions auto-drain current-session work. Use status for one-time inspection. Do not poll or sleep to wait.";
|
|
8425
|
+
|
|
8389
8426
|
export {
|
|
8390
8427
|
childRowLabel,
|
|
8391
8428
|
SUBAGENT_LIFECYCLE_ARTIFACT_VERSION,
|
|
@@ -8414,7 +8451,6 @@ export {
|
|
|
8414
8451
|
SLASH_SUBAGENT_UPDATE_EVENT,
|
|
8415
8452
|
SLASH_SUBAGENT_CANCEL_EVENT,
|
|
8416
8453
|
POLL_INTERVAL_MS,
|
|
8417
|
-
MAX_WIDGET_JOBS,
|
|
8418
8454
|
SUBAGENT_ACTIONS,
|
|
8419
8455
|
DEFAULT_FORK_PREAMBLE,
|
|
8420
8456
|
resolveTopLevelParallelMaxTasks,
|
|
@@ -8524,11 +8560,10 @@ export {
|
|
|
8524
8560
|
normalizeParallelGroups,
|
|
8525
8561
|
flatToLogicalStepIndex,
|
|
8526
8562
|
formatActivityLabel,
|
|
8527
|
-
aggregateStepStatus,
|
|
8528
8563
|
formatAgentRunningLabel,
|
|
8529
|
-
formatParallelOutcome,
|
|
8530
8564
|
formatNestedAggregate,
|
|
8531
8565
|
formatNestedRunStatusLines,
|
|
8566
|
+
resolveSubagentRequestParams,
|
|
8532
8567
|
DEFAULT_CONTROL_CONFIG,
|
|
8533
8568
|
resolveControlConfig,
|
|
8534
8569
|
deriveActivityState,
|
|
@@ -8564,6 +8599,7 @@ export {
|
|
|
8564
8599
|
resolveSubagentResultStatus,
|
|
8565
8600
|
compactNestedResultChildren,
|
|
8566
8601
|
attachNestedChildrenToResultChildren,
|
|
8602
|
+
formatNestedResultLines,
|
|
8567
8603
|
buildSubagentResultIntercomPayload,
|
|
8568
8604
|
deliverSubagentResultIntercomEvent,
|
|
8569
8605
|
deliverSubagentIntercomMessageEvent,
|
|
@@ -8580,6 +8616,9 @@ export {
|
|
|
8580
8616
|
evaluateAcceptance,
|
|
8581
8617
|
buildSkippedAcceptanceLedger,
|
|
8582
8618
|
acceptanceFailureMessage,
|
|
8619
|
+
normalizeAsyncLaunchConfig,
|
|
8620
|
+
subagentLaunchRunsAsync,
|
|
8621
|
+
isAsyncSubagentExecution,
|
|
8583
8622
|
inspectSubagentFleet,
|
|
8584
8623
|
formatAsyncRunTranscript,
|
|
8585
8624
|
formatNestedRunTranscript,
|
|
@@ -8613,6 +8652,7 @@ export {
|
|
|
8613
8652
|
resolveAsyncResumeTarget,
|
|
8614
8653
|
buildRevivedAsyncTask,
|
|
8615
8654
|
resolveSubagentRunId,
|
|
8655
|
+
SUBAGENT_ASYNC_GUIDANCE,
|
|
8616
8656
|
SUBAGENT_CONTROL_MESSAGE_TYPE,
|
|
8617
8657
|
clearPendingForegroundControlNotices,
|
|
8618
8658
|
handleSubagentControlNotice
|
|
@@ -35,6 +35,9 @@ var CUSTOMIZE_BRIDGE_SYMBOL = /* @__PURE__ */ Symbol.for("@lunr/customize"), act
|
|
|
35
35
|
getFooterPlanBar() {
|
|
36
36
|
return activeSettingsManager?.getFooterPlanBar() ?? !0;
|
|
37
37
|
},
|
|
38
|
+
getSubagentSpinner() {
|
|
39
|
+
return activeSettingsManager?.getSubagentSpinner() ?? "braille";
|
|
40
|
+
},
|
|
38
41
|
getHideThinkingBlock() {
|
|
39
42
|
return activeSettingsManager?.getHideThinkingBlock() ?? !1;
|
|
40
43
|
},
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
areExperimentalFeaturesEnabled,
|
|
4
4
|
getProjectTrustOptions,
|
|
5
5
|
hasTrustRequiringProjectResources
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YMEAYRBE.js";
|
|
7
7
|
import {
|
|
8
8
|
DefaultPackageManager,
|
|
9
9
|
emitProjectTrustEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y5KOEMBH.js";
|
|
11
11
|
import {
|
|
12
12
|
SettingsManager
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WLLDXJRT.js";
|
|
14
14
|
import {
|
|
15
15
|
ExtensionSelectorComponent
|
|
16
16
|
} from "./chunk-6KDIOJL3.js";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DEFAULT_SUBAGENT_SPINNER,
|
|
4
|
+
isSubagentSpinnerName
|
|
5
|
+
} from "./chunk-LISUTZS3.js";
|
|
2
6
|
import {
|
|
3
7
|
MEMORY_CHAR_CAP_DEFAULT,
|
|
4
8
|
MEMORY_CHAR_CAP_MAX,
|
|
@@ -19824,6 +19828,12 @@ var FileSettingsStorage = class {
|
|
|
19824
19828
|
setSmoothStreaming(enabled) {
|
|
19825
19829
|
this.globalSettings.smoothStreaming = enabled, this.markModified("smoothStreaming"), this.save();
|
|
19826
19830
|
}
|
|
19831
|
+
getSubagentSpinner() {
|
|
19832
|
+
return isSubagentSpinnerName(this.settings.subagentSpinner) ? this.settings.subagentSpinner : DEFAULT_SUBAGENT_SPINNER;
|
|
19833
|
+
}
|
|
19834
|
+
setSubagentSpinner(spinner) {
|
|
19835
|
+
this.globalSettings.subagentSpinner = spinner, this.markModified("subagentSpinner"), this.save();
|
|
19836
|
+
}
|
|
19827
19837
|
getSessionRetentionDays() {
|
|
19828
19838
|
let value = this.settings.sessionRetentionDays;
|
|
19829
19839
|
return typeof value == "number" && Number.isFinite(value) && value >= 0 ? Math.floor(value) : 30;
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
emitSessionShutdownEvent,
|
|
19
19
|
expandPromptTemplate,
|
|
20
20
|
formatSkillsForPrompt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Y5KOEMBH.js";
|
|
22
22
|
import {
|
|
23
23
|
stripFrontmatter
|
|
24
24
|
} from "./chunk-QFWG2RVL.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
SettingsManager,
|
|
44
44
|
require_proper_lockfile
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WLLDXJRT.js";
|
|
46
46
|
import {
|
|
47
47
|
CURRENT_SESSION_VERSION,
|
|
48
48
|
SessionManager,
|
|
@@ -5,7 +5,7 @@ import "./chunk-BRJX2PRC.js";
|
|
|
5
5
|
async function handleGatewayCommand(args) {
|
|
6
6
|
if (args[0] !== "gateway")
|
|
7
7
|
return !1;
|
|
8
|
-
let { runGateway } = await import("./gateway-
|
|
8
|
+
let { runGateway } = await import("./gateway-BM6NLOH4.js"), code = await runGateway(args.slice(1));
|
|
9
9
|
return process.exitCode = code, !0;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
TreeSelectorComponent,
|
|
20
20
|
UserMessageComponent,
|
|
21
21
|
UserMessageSelectorComponent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2BUAYZ7K.js";
|
|
23
23
|
import "./chunk-G6LRAP36.js";
|
|
24
24
|
import {
|
|
25
25
|
attachJsonlLineReader,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
runPrintMode
|
|
31
31
|
} from "./chunk-OCVIXVTZ.js";
|
|
32
32
|
import "./chunk-KWA4OC2J.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-A3KMVBZV.js";
|
|
34
34
|
import {
|
|
35
35
|
copyToClipboard
|
|
36
36
|
} from "./chunk-Q5ZU2VRT.js";
|
|
@@ -39,13 +39,14 @@ import "./chunk-6BEIBLQ3.js";
|
|
|
39
39
|
import "./chunk-7N3YHTYF.js";
|
|
40
40
|
import {
|
|
41
41
|
main
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-PDNXVXMD.js";
|
|
43
|
+
import "./chunk-AWVD5IEY.js";
|
|
44
|
+
import "./chunk-VZR3NCM7.js";
|
|
45
45
|
import {
|
|
46
46
|
ProjectTrustStore,
|
|
47
47
|
hasTrustRequiringProjectResources
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YMEAYRBE.js";
|
|
49
|
+
import "./chunk-5ZH3ZFIZ.js";
|
|
49
50
|
import "./chunk-25I2BHAA.js";
|
|
50
51
|
import {
|
|
51
52
|
AgentSession,
|
|
@@ -61,7 +62,7 @@ import {
|
|
|
61
62
|
readStoredCredential,
|
|
62
63
|
wrapRegisteredTool,
|
|
63
64
|
wrapRegisteredTools
|
|
64
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-XI77KVKA.js";
|
|
65
66
|
import {
|
|
66
67
|
DEFAULT_COMPACTION_SETTINGS,
|
|
67
68
|
calculateContextTokens,
|
|
@@ -91,7 +92,7 @@ import {
|
|
|
91
92
|
loadProjectContextFiles,
|
|
92
93
|
loadSkills,
|
|
93
94
|
loadSkillsFromDir
|
|
94
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-Y5KOEMBH.js";
|
|
95
96
|
import "./chunk-OBMWP3I5.js";
|
|
96
97
|
import "./chunk-DVGWF6A2.js";
|
|
97
98
|
import {
|
|
@@ -137,7 +138,8 @@ import {
|
|
|
137
138
|
} from "./chunk-CSFI6YXL.js";
|
|
138
139
|
import {
|
|
139
140
|
SettingsManager
|
|
140
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-WLLDXJRT.js";
|
|
142
|
+
import "./chunk-LISUTZS3.js";
|
|
141
143
|
import {
|
|
142
144
|
CURRENT_SESSION_VERSION,
|
|
143
145
|
SessionManager,
|
|
@@ -151,7 +153,7 @@ import {
|
|
|
151
153
|
import {
|
|
152
154
|
convertToLlm
|
|
153
155
|
} from "./chunk-FVDOXRUD.js";
|
|
154
|
-
import "./chunk-
|
|
156
|
+
import "./chunk-W3SILANP.js";
|
|
155
157
|
import "./chunk-W3CVH5RX.js";
|
|
156
158
|
import "./chunk-LTYWTR3V.js";
|
|
157
159
|
import "./chunk-PL6JKXWI.js";
|
|
@@ -179,7 +181,7 @@ import {
|
|
|
179
181
|
isToolCallEventType,
|
|
180
182
|
isWriteToolResult
|
|
181
183
|
} from "./chunk-OR4L3IB2.js";
|
|
182
|
-
import "./chunk-
|
|
184
|
+
import "./chunk-VGYZ3APQ.js";
|
|
183
185
|
import "./chunk-AY6CAJSL.js";
|
|
184
186
|
import {
|
|
185
187
|
parseArgs
|
|
@@ -3,18 +3,19 @@ import {
|
|
|
3
3
|
InteractiveMode,
|
|
4
4
|
formatResumeCommand,
|
|
5
5
|
startInteractiveToolInstalls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2BUAYZ7K.js";
|
|
7
7
|
import "./chunk-G6LRAP36.js";
|
|
8
8
|
import "./chunk-KWA4OC2J.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-A3KMVBZV.js";
|
|
10
10
|
import "./chunk-Q5ZU2VRT.js";
|
|
11
11
|
import "./chunk-NUIFPZWX.js";
|
|
12
12
|
import "./chunk-6BEIBLQ3.js";
|
|
13
13
|
import "./chunk-7N3YHTYF.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-YMEAYRBE.js";
|
|
15
|
+
import "./chunk-5ZH3ZFIZ.js";
|
|
16
|
+
import "./chunk-XI77KVKA.js";
|
|
16
17
|
import "./chunk-STERBGUB.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-Y5KOEMBH.js";
|
|
18
19
|
import "./chunk-OBMWP3I5.js";
|
|
19
20
|
import "./chunk-DVGWF6A2.js";
|
|
20
21
|
import "./chunk-QFWG2RVL.js";
|
|
@@ -23,7 +24,8 @@ import "./chunk-WKDK4C5P.js";
|
|
|
23
24
|
import "./chunk-53YJI7JU.js";
|
|
24
25
|
import "./chunk-KBKMCJDU.js";
|
|
25
26
|
import "./chunk-CSFI6YXL.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-WLLDXJRT.js";
|
|
28
|
+
import "./chunk-LISUTZS3.js";
|
|
27
29
|
import "./chunk-GKLEQ3I4.js";
|
|
28
30
|
import "./chunk-FVDOXRUD.js";
|
|
29
31
|
import "./chunk-W3CVH5RX.js";
|
|
@@ -35,7 +37,7 @@ import "./chunk-RQ2Q5IYR.js";
|
|
|
35
37
|
import "./chunk-H2EOZYMP.js";
|
|
36
38
|
import "./chunk-PVCDKGR6.js";
|
|
37
39
|
import "./chunk-OR4L3IB2.js";
|
|
38
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-VGYZ3APQ.js";
|
|
39
41
|
import "./chunk-AY6CAJSL.js";
|
|
40
42
|
import "./chunk-QZMODZQ2.js";
|
|
41
43
|
import "./chunk-CCZJ3PYY.js";
|
|
@@ -2,14 +2,15 @@ import { createRequire as __lunrRequire } from "node:module"; const require = __
|
|
|
2
2
|
import {
|
|
3
3
|
main,
|
|
4
4
|
readPipedStdin
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-PDNXVXMD.js";
|
|
6
|
+
import "./chunk-AWVD5IEY.js";
|
|
7
|
+
import "./chunk-VZR3NCM7.js";
|
|
8
|
+
import "./chunk-YMEAYRBE.js";
|
|
9
|
+
import "./chunk-5ZH3ZFIZ.js";
|
|
9
10
|
import "./chunk-25I2BHAA.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-XI77KVKA.js";
|
|
11
12
|
import "./chunk-STERBGUB.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-Y5KOEMBH.js";
|
|
13
14
|
import "./chunk-OBMWP3I5.js";
|
|
14
15
|
import "./chunk-DVGWF6A2.js";
|
|
15
16
|
import "./chunk-QFWG2RVL.js";
|
|
@@ -18,10 +19,11 @@ import "./chunk-WKDK4C5P.js";
|
|
|
18
19
|
import "./chunk-53YJI7JU.js";
|
|
19
20
|
import "./chunk-KBKMCJDU.js";
|
|
20
21
|
import "./chunk-CSFI6YXL.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-WLLDXJRT.js";
|
|
23
|
+
import "./chunk-LISUTZS3.js";
|
|
22
24
|
import "./chunk-GKLEQ3I4.js";
|
|
23
25
|
import "./chunk-FVDOXRUD.js";
|
|
24
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-W3SILANP.js";
|
|
25
27
|
import "./chunk-W3CVH5RX.js";
|
|
26
28
|
import "./chunk-LTYWTR3V.js";
|
|
27
29
|
import "./chunk-PL6JKXWI.js";
|
|
@@ -33,7 +35,7 @@ import "./chunk-JHYKXIMM.js";
|
|
|
33
35
|
import "./chunk-H2EOZYMP.js";
|
|
34
36
|
import "./chunk-PVCDKGR6.js";
|
|
35
37
|
import "./chunk-OR4L3IB2.js";
|
|
36
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-VGYZ3APQ.js";
|
|
37
39
|
import "./chunk-AY6CAJSL.js";
|
|
38
40
|
import "./chunk-QZMODZQ2.js";
|
|
39
41
|
import "./chunk-CCZJ3PYY.js";
|
package/dist/node-runtime/{package-manager-cli-7RKSZGEN.js → package-manager-cli-N37546V5.js}
RENAMED
|
@@ -2,22 +2,23 @@ import { createRequire as __lunrRequire } from "node:module"; const require = __
|
|
|
2
2
|
import {
|
|
3
3
|
createProjectTrustContext,
|
|
4
4
|
resolveProjectTrusted
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VZR3NCM7.js";
|
|
6
6
|
import {
|
|
7
7
|
ProjectTrustStore,
|
|
8
8
|
hasTrustRequiringProjectResources
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YMEAYRBE.js";
|
|
10
10
|
import {
|
|
11
11
|
DefaultPackageManager,
|
|
12
12
|
DefaultResourceLoader
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Y5KOEMBH.js";
|
|
14
14
|
import "./chunk-OBMWP3I5.js";
|
|
15
15
|
import "./chunk-DVGWF6A2.js";
|
|
16
16
|
import "./chunk-QFWG2RVL.js";
|
|
17
17
|
import "./chunk-CGBXPL3E.js";
|
|
18
18
|
import {
|
|
19
19
|
SettingsManager
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WLLDXJRT.js";
|
|
21
|
+
import "./chunk-LISUTZS3.js";
|
|
21
22
|
import "./chunk-M3LZLQW2.js";
|
|
22
23
|
import "./chunk-PVCDKGR6.js";
|
|
23
24
|
import "./chunk-AY6CAJSL.js";
|