akm-cli 0.9.25-alpha.1 → 0.9.25-alpha.2
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 +159 -280
- package/dist/cli.js +1 -1
- package/dist/commands/improve/consolidate/pair-pass.js +1 -0
- package/dist/commands/improve/consolidate.js +7 -2
- package/dist/commands/improve/execution.js +2 -3
- package/dist/commands/improve/extract.js +1 -0
- package/dist/commands/improve/improve-cli.js +33 -1
- package/dist/commands/improve/loop-stages.js +3 -0
- package/dist/commands/improve/reflect-noise.js +125 -0
- package/dist/commands/improve/reflect.js +13 -16
- package/dist/commands/improve/retrieval-gate.js +7 -2
- package/dist/commands/improve/stage.js +31 -39
- package/dist/commands/proposal/drain.js +4 -7
- package/dist/commands/proposal/propose.js +2 -11
- package/dist/commands/proposal/validators/proposal-quality-validators.js +4 -2
- package/dist/commands/read/search-cli.js +0 -38
- package/dist/core/config/schema/engines.js +15 -33
- package/dist/core/config/schema/improve-processes.js +16 -0
- package/dist/core/redaction.js +4 -0
- package/dist/core/spawn-env.js +25 -0
- package/dist/core/structured.js +1 -1
- package/dist/execution/source.js +8 -12
- package/dist/integrations/agent/config.js +1 -3
- package/dist/integrations/agent/engine-resolution.js +0 -3
- package/dist/integrations/agent/execution.js +14 -13
- package/dist/integrations/agent/index.js +1 -1
- package/dist/integrations/agent/model-map.js +15 -16
- package/dist/integrations/agent/profiles.js +2 -2
- package/dist/integrations/agent/prompts.js +3 -39
- package/dist/integrations/agent/request-lowering.js +9 -7
- package/dist/integrations/agent/runner-dispatch.js +25 -31
- package/dist/integrations/harnesses/aider/agent-builder.js +1 -2
- package/dist/integrations/harnesses/amazonq/agent-builder.js +1 -2
- package/dist/integrations/harnesses/claude/agent-builder.js +4 -16
- package/dist/integrations/harnesses/codex/agent-builder.js +1 -2
- package/dist/integrations/harnesses/ids.js +10 -16
- package/dist/integrations/harnesses/opencode/agent-builder.js +14 -24
- package/dist/integrations/harnesses/opencode/model-config.js +15 -62
- package/dist/integrations/harnesses/opencode/model-work-agent.js +71 -36
- package/dist/integrations/harnesses/opencode-sdk/harness.js +2 -6
- package/dist/integrations/harnesses/opencode-sdk/sdk-runner.js +32 -90
- package/dist/integrations/harnesses/openhands/agent-builder.js +1 -2
- package/dist/integrations/harnesses/pi/agent-builder.js +1 -2
- package/dist/llm/feature-gate.js +2 -5
- package/dist/llm/index-passes.js +2 -2
- package/dist/llm/structured-call.js +5 -5
- package/dist/output/shapes/passthrough.js +1 -0
- package/dist/scripts/akm-migrate-node.js +170 -194
- package/dist/scripts/akm-migrate.js +170 -194
- package/dist/workflows/exec/unit-dispatch.js +4 -13
- package/docs/reference/cli.md +12 -7
- package/docs/reference/configuration.md +78 -82
- package/docs/reference/data-and-telemetry.md +2 -3
- package/docs/reference/workflow-schema.md +6 -9
- package/package.json +1 -1
- package/schemas/akm-config.json +108 -36
package/dist/llm/index-passes.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
4
4
|
import { cloneExecutionJsonObject } from "../execution/json.js";
|
|
5
|
-
import { MODEL_WORK_TOOLS } from "../execution/source.js";
|
|
6
5
|
import { buildExecution, resolveExecution } from "../integrations/agent/execution.js";
|
|
7
6
|
const NO_LOWERING_NOTICES = Object.freeze([]);
|
|
8
7
|
function own(value, key) {
|
|
@@ -43,7 +42,8 @@ export function resolveIndexPassExecution(passName, config) {
|
|
|
43
42
|
content: "",
|
|
44
43
|
config,
|
|
45
44
|
invocationDefaults,
|
|
46
|
-
current:
|
|
45
|
+
current: indexExecutionDefaults(pass),
|
|
46
|
+
modelWork: true,
|
|
47
47
|
});
|
|
48
48
|
const lowered = buildExecution(prepared.request, prepared.runner);
|
|
49
49
|
return Object.freeze({ runner: lowered.runner, notices: lowered.notices });
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
4
4
|
import { ConfigError } from "../core/errors.js";
|
|
5
|
-
import {
|
|
6
|
-
import { DEFAULT_MODEL_WORK_TIMEOUT_MS } from "../integrations/agent/config.js";
|
|
5
|
+
import { DEFAULT_LLM_TIMEOUT_MS } from "../integrations/agent/config.js";
|
|
7
6
|
import { buildExecution, resolveExecution } from "../integrations/agent/execution.js";
|
|
8
7
|
import { runExecution } from "../integrations/agent/runner-dispatch.js";
|
|
9
8
|
import { isContextSizeError, LlmCallError } from "./client.js";
|
|
@@ -27,7 +26,7 @@ function own(value, key) {
|
|
|
27
26
|
/**
|
|
28
27
|
* @internal Exact request-to-cascade projection, exported for presence-semantics contracts.
|
|
29
28
|
* Model work is bounded: with no timeout from the request or the runner, it
|
|
30
|
-
* gets {@link
|
|
29
|
+
* gets {@link DEFAULT_LLM_TIMEOUT_MS} on every runner kind.
|
|
31
30
|
*/
|
|
32
31
|
export function resolveStructuredCurrent(current, request, runner) {
|
|
33
32
|
const out = current ? { ...current } : {};
|
|
@@ -53,7 +52,7 @@ export function resolveStructuredCurrent(current, request, runner) {
|
|
|
53
52
|
if (own(request, "timeoutMs"))
|
|
54
53
|
out.timeout = request?.timeoutMs ?? null;
|
|
55
54
|
else if (runner && !Object.hasOwn(runner, "timeoutMs") && !own(current, "timeout")) {
|
|
56
|
-
out.timeout =
|
|
55
|
+
out.timeout = DEFAULT_LLM_TIMEOUT_MS;
|
|
57
56
|
}
|
|
58
57
|
return Object.keys(out).length > 0 ? out : undefined;
|
|
59
58
|
}
|
|
@@ -104,7 +103,8 @@ export async function callStructured(opts) {
|
|
|
104
103
|
content: terminal.content,
|
|
105
104
|
conversation: terminal.conversation,
|
|
106
105
|
runner,
|
|
107
|
-
current:
|
|
106
|
+
current: resolveStructuredCurrent(opts.current, request, runner),
|
|
107
|
+
modelWork: true,
|
|
108
108
|
});
|
|
109
109
|
const lowered = buildExecution(prepared.request, prepared.runner);
|
|
110
110
|
opts.onNotices?.(lowered.notices);
|