@ashx-j/lunr 0.2.15 → 0.2.17
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/narumiruna-pi-goal/src/goal.d.ts.map +1 -1
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.js +6 -2
- package/dist/builtin-extensions/narumiruna-pi-goal/src/goal.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 +6 -2
- package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.d.ts +10 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.d.ts.map +1 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js +38 -0
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js.map +1 -0
- 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 +3 -16
- package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +50 -4
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +10 -5
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/extensions/types.d.ts +2 -2
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +2 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +19 -4
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/compaction.md +5 -3
- 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
|
@@ -6,6 +6,7 @@ import { snapshotParentPermissionMode } from "../../../../../core/subagent-permi
|
|
|
6
6
|
import { normalizeChildSpec } from "../../shared/child-spec.js";
|
|
7
7
|
import { getArtifactsDir, getProjectChainRunsDir } from "../../shared/artifacts.js";
|
|
8
8
|
import { ChainClarifyComponent } from "./chain-clarify.js";
|
|
9
|
+
import { resolveSubagentRequestParams } from "./request-params.js";
|
|
9
10
|
import { toModelInfo } from "../../shared/model-info.js";
|
|
10
11
|
import { executeChain } from "./chain-execution.js";
|
|
11
12
|
import { buildDoctorReport } from "../../extension/doctor.js";
|
|
@@ -2864,27 +2865,13 @@ function foregroundCapacityResult(params, inFlight, limit) {
|
|
|
2864
2865
|
details: { mode: inferExecutionMode(params), results: [] },
|
|
2865
2866
|
};
|
|
2866
2867
|
}
|
|
2867
|
-
function omitExecutionModeActionAlias(params) {
|
|
2868
|
-
const action = params.action?.toLowerCase();
|
|
2869
|
-
if (action === "single" && params.task !== undefined) {
|
|
2870
|
-
const rest = { ...params };
|
|
2871
|
-
delete rest.action;
|
|
2872
|
-
return rest;
|
|
2873
|
-
}
|
|
2874
|
-
if ((action === "parallel" || action === "tasks") && (params.tasks?.length ?? 0) > 0) {
|
|
2875
|
-
const rest = { ...params };
|
|
2876
|
-
delete rest.action;
|
|
2877
|
-
return rest;
|
|
2878
|
-
}
|
|
2879
|
-
return params;
|
|
2880
|
-
}
|
|
2881
2868
|
export function createSubagentExecutor(deps) {
|
|
2882
2869
|
const execute = async (_id, params, signal, onUpdate, ctx) => {
|
|
2883
2870
|
deps.state.baseCwd = ctx.cwd;
|
|
2884
2871
|
deps.state.foregroundRuns ??= new Map();
|
|
2885
2872
|
deps.state.foregroundControls ??= new Map();
|
|
2886
2873
|
deps.state.lastForegroundControlId ??= null;
|
|
2887
|
-
const requestParams =
|
|
2874
|
+
const requestParams = resolveSubagentRequestParams(params);
|
|
2888
2875
|
const requestCwd = resolveRequestedCwd(ctx.cwd, requestParams.cwd);
|
|
2889
2876
|
const paramsWithResolvedCwd = requestParams.cwd === undefined ? requestParams : { ...requestParams, cwd: requestCwd };
|
|
2890
2877
|
const action = paramsWithResolvedCwd.action;
|
|
@@ -3442,7 +3429,7 @@ export function createSubagentExecutor(deps) {
|
|
|
3442
3429
|
}, effectiveParams.context);
|
|
3443
3430
|
};
|
|
3444
3431
|
const executeWithSingleDispatchGuard = async (id, params, signal, onUpdate, ctx) => {
|
|
3445
|
-
const requestParams =
|
|
3432
|
+
const requestParams = resolveSubagentRequestParams(params);
|
|
3446
3433
|
if (requestParams.action)
|
|
3447
3434
|
return execute(id, requestParams, signal, onUpdate, ctx);
|
|
3448
3435
|
const { depth } = checkSubagentDepth(deps.config.maxSubagentDepth);
|