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.
Files changed (56) hide show
  1. package/CHANGELOG.md +159 -280
  2. package/dist/cli.js +1 -1
  3. package/dist/commands/improve/consolidate/pair-pass.js +1 -0
  4. package/dist/commands/improve/consolidate.js +7 -2
  5. package/dist/commands/improve/execution.js +2 -3
  6. package/dist/commands/improve/extract.js +1 -0
  7. package/dist/commands/improve/improve-cli.js +33 -1
  8. package/dist/commands/improve/loop-stages.js +3 -0
  9. package/dist/commands/improve/reflect-noise.js +125 -0
  10. package/dist/commands/improve/reflect.js +13 -16
  11. package/dist/commands/improve/retrieval-gate.js +7 -2
  12. package/dist/commands/improve/stage.js +31 -39
  13. package/dist/commands/proposal/drain.js +4 -7
  14. package/dist/commands/proposal/propose.js +2 -11
  15. package/dist/commands/proposal/validators/proposal-quality-validators.js +4 -2
  16. package/dist/commands/read/search-cli.js +0 -38
  17. package/dist/core/config/schema/engines.js +15 -33
  18. package/dist/core/config/schema/improve-processes.js +16 -0
  19. package/dist/core/redaction.js +4 -0
  20. package/dist/core/spawn-env.js +25 -0
  21. package/dist/core/structured.js +1 -1
  22. package/dist/execution/source.js +8 -12
  23. package/dist/integrations/agent/config.js +1 -3
  24. package/dist/integrations/agent/engine-resolution.js +0 -3
  25. package/dist/integrations/agent/execution.js +14 -13
  26. package/dist/integrations/agent/index.js +1 -1
  27. package/dist/integrations/agent/model-map.js +15 -16
  28. package/dist/integrations/agent/profiles.js +2 -2
  29. package/dist/integrations/agent/prompts.js +3 -39
  30. package/dist/integrations/agent/request-lowering.js +9 -7
  31. package/dist/integrations/agent/runner-dispatch.js +25 -31
  32. package/dist/integrations/harnesses/aider/agent-builder.js +1 -2
  33. package/dist/integrations/harnesses/amazonq/agent-builder.js +1 -2
  34. package/dist/integrations/harnesses/claude/agent-builder.js +4 -16
  35. package/dist/integrations/harnesses/codex/agent-builder.js +1 -2
  36. package/dist/integrations/harnesses/ids.js +10 -16
  37. package/dist/integrations/harnesses/opencode/agent-builder.js +14 -24
  38. package/dist/integrations/harnesses/opencode/model-config.js +15 -62
  39. package/dist/integrations/harnesses/opencode/model-work-agent.js +71 -36
  40. package/dist/integrations/harnesses/opencode-sdk/harness.js +2 -6
  41. package/dist/integrations/harnesses/opencode-sdk/sdk-runner.js +32 -90
  42. package/dist/integrations/harnesses/openhands/agent-builder.js +1 -2
  43. package/dist/integrations/harnesses/pi/agent-builder.js +1 -2
  44. package/dist/llm/feature-gate.js +2 -5
  45. package/dist/llm/index-passes.js +2 -2
  46. package/dist/llm/structured-call.js +5 -5
  47. package/dist/output/shapes/passthrough.js +1 -0
  48. package/dist/scripts/akm-migrate-node.js +170 -194
  49. package/dist/scripts/akm-migrate.js +170 -194
  50. package/dist/workflows/exec/unit-dispatch.js +4 -13
  51. package/docs/reference/cli.md +12 -7
  52. package/docs/reference/configuration.md +78 -82
  53. package/docs/reference/data-and-telemetry.md +2 -3
  54. package/docs/reference/workflow-schema.md +6 -9
  55. package/package.json +1 -1
  56. package/schemas/akm-config.json +108 -36
@@ -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: { ...indexExecutionDefaults(pass), tools: MODEL_WORK_TOOLS },
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 { MODEL_WORK_TOOLS } from "../execution/source.js";
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 DEFAULT_MODEL_WORK_TIMEOUT_MS} on every runner kind.
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 = DEFAULT_MODEL_WORK_TIMEOUT_MS;
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: { ...resolveStructuredCurrent(opts.current, request, runner), tools: MODEL_WORK_TOOLS },
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);
@@ -43,6 +43,7 @@ const PASSTHROUGH_COMMANDS = [
43
43
  "extract",
44
44
  "health",
45
45
  "improve",
46
+ "improve-judge",
46
47
  "improve-report",
47
48
  "import",
48
49
  "index",