@kodax-ai/kodax 0.7.58 → 0.7.59

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 (64) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1228 -1225
  3. package/README_CN.md +647 -645
  4. package/dist/chunks/{agent-YJNC2755.js → agent-QQCRBU4C.js} +1 -1
  5. package/dist/chunks/argument-completer-7Q2T4YWA.js +2 -0
  6. package/dist/chunks/{chunk-6AU6EPO6.js → chunk-2UUOFT3Z.js} +1 -1
  7. package/dist/chunks/{chunk-NKHXRN7G.js → chunk-5GPJ6MB5.js} +110 -108
  8. package/dist/chunks/{chunk-P4VF3JEP.js → chunk-BEXLPFFB.js} +3 -3
  9. package/dist/chunks/{chunk-CQ6EQG7E.js → chunk-D7RENPQQ.js} +31 -31
  10. package/dist/chunks/{chunk-ZZDC75H4.js → chunk-PRIBJN5E.js} +70 -68
  11. package/dist/chunks/{chunk-HS2K74I4.js → chunk-S4GVQO3W.js} +13 -13
  12. package/dist/chunks/chunk-SDSLWDAZ.js +17 -0
  13. package/dist/chunks/{chunk-7QB55SYG.js → chunk-SVEJFERZ.js} +8 -8
  14. package/dist/chunks/{chunk-XXEIFNBE.js → chunk-TBXP7FEG.js} +1 -1
  15. package/dist/chunks/{chunk-526OILYL.js → chunk-UA744TZM.js} +1 -1
  16. package/dist/chunks/{chunk-QHWXPJEG.js → chunk-UXQILGRX.js} +145 -146
  17. package/dist/chunks/{chunk-CV6JHPEO.js → chunk-YADBB5GN.js} +1 -1
  18. package/dist/chunks/{chunk-OBPB5BQ6.js → chunk-Z23LK3IV.js} +6 -6
  19. package/dist/chunks/chunk-Z3ZXV3DZ.js +18 -0
  20. package/dist/chunks/compaction-config-GQIPCVFD.js +2 -0
  21. package/dist/chunks/{construction-bootstrap-CIXFH5SE.js → construction-bootstrap-YON4ZEMO.js} +1 -1
  22. package/dist/chunks/dist-73L4OYPD.js +2 -0
  23. package/dist/chunks/dist-EZXBR6NW.js +2 -0
  24. package/dist/chunks/host-LO6ZNTMV.js +2 -0
  25. package/dist/chunks/{paste-Y4DVUWSM.js → paste-4THGP5XW.js} +1 -1
  26. package/dist/chunks/run-manager-HTLXKU66.js +2 -0
  27. package/dist/chunks/{utils-FLVVQHM7.js → utils-5XVW33SY.js} +1 -1
  28. package/dist/index.d.ts +10 -9
  29. package/dist/index.js +2 -2
  30. package/dist/kodax_cli.js +995 -990
  31. package/dist/provider-capabilities.json +971 -986
  32. package/dist/sdk-agent.d.ts +9 -8
  33. package/dist/sdk-agent.js +1 -1
  34. package/dist/sdk-coding.d.ts +79 -14
  35. package/dist/sdk-coding.js +1 -1
  36. package/dist/sdk-llm.d.ts +1 -1
  37. package/dist/sdk-llm.js +1 -1
  38. package/dist/sdk-mcp.js +1 -1
  39. package/dist/sdk-media.js +1 -1
  40. package/dist/sdk-repl.d.ts +10 -9
  41. package/dist/sdk-repl.js +1 -1
  42. package/dist/sdk-session.d.ts +5 -4
  43. package/dist/sdk-session.js +1 -1
  44. package/dist/sdk-skills.d.ts +4 -231
  45. package/dist/sdk-skills.js +1 -1
  46. package/dist/types-chunks/{bash-prefix-extractor.d-D3cddmyV.d.ts → bash-prefix-extractor.d-BNdpV4Cf.d.ts} +29 -4
  47. package/dist/types-chunks/{guardrail.d-iK7FwMdW.d.ts → guardrail.d-CNdKuSD_.d.ts} +2 -2
  48. package/dist/types-chunks/{process.d-DHow2y2G.d.ts → process.d-BOrAxjvM.d.ts} +21 -3
  49. package/dist/types-chunks/{resolver.d-DDOfVYDr.d.ts → resolver.d-DFAKKUvt.d.ts} +56 -2
  50. package/dist/types-chunks/{run-manager.d-ByDcJc5g.d.ts → run-manager.d-CsJC9zYf.d.ts} +3 -3
  51. package/dist/types-chunks/{sdk-session-21Tt3N_x.d.ts → sdk-session-ByZlwgdM.d.ts} +14 -3
  52. package/dist/types-chunks/{storage.d-BsZrBPYu.d.ts → storage.d-DHL3XpAL.d.ts} +2 -2
  53. package/dist/types-chunks/{types.d-D4ZA8LJV.d.ts → types.d-CE_Ter29.d.ts} +1 -1
  54. package/dist/types-chunks/types.d-vJExiRje.d.ts +232 -0
  55. package/dist/types-chunks/{utils.d-BURxOxFd.d.ts → utils.d-D9FHU4wB.d.ts} +5 -4
  56. package/package.json +1 -1
  57. package/dist/chunks/argument-completer-QGBNXTYJ.js +0 -2
  58. package/dist/chunks/chunk-73Z7BK5H.js +0 -15
  59. package/dist/chunks/chunk-PIQWODWN.js +0 -18
  60. package/dist/chunks/compaction-config-OPMRZSAK.js +0 -2
  61. package/dist/chunks/dist-JSE7NICF.js +0 -2
  62. package/dist/chunks/dist-SDNQOW52.js +0 -2
  63. package/dist/chunks/host-H7FQMMRC.js +0 -2
  64. package/dist/chunks/run-manager-4H5HWMVW.js +0 -2
package/CHANGELOG.md CHANGED
@@ -6,6 +6,34 @@ All notable changes to this project will be documented in this file.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.7.59] - 2026-07-03
10
+
11
+ > Scope note: a rollup release on top of v0.7.58. **FEATURE_248** and **FEATURE_249** extend
12
+ > workflow *activation*: the AMAW Worker now carries a mode-level standing directive that
13
+ > defaults substantive work to orchestrating cross-checking agents, and AMA can activate
14
+ > `run_workflow` from an explicit natural-language request. The release also lands the Space SDK
15
+ > R1-R6 capability hardening, an ark-coding lineup refresh, and several workflow-runtime + SDK
16
+ > parity fixes. All prompt-only / additive; no public runtime type is removed.
17
+
18
+ ### Added
19
+
20
+ - **AMA natural-language workflow activation (FEATURE_249).** `buildWorkflowToolHost` is widened so AMA — not only AMAW — hosts the `run_workflow` tool. AMA activates it on an explicit natural-language request (the tool is available and LLM-native, with no standing directive); AMAW additionally self-activates on complexity via the FEATURE_248 directive. SA is unchanged (fails the gate + `SA_SOLO_EXCLUDE_TOOLS`). The F248 directive stays strictly AMAW-only through an independent `amawOrchestrationAvailable` gate that is structurally separate from the tool host.
21
+ - **Host-facing Worker workflow-authoring entrypoint + resume replay telemetry (Space SDK R1/R2).** A non-coding SDK host can drive the scout-then-author Worker authoring path directly, and same-session resume now emits replay telemetry (an `agent_replayed` event) so a host can observe cache hits when a run resumes.
22
+
23
+ ### Changed
24
+
25
+ - **AMAW mode-level `ORCHESTRATION DEFAULT` standing directive (FEATURE_248, prompt-only).** The Worker system prompt gains an AMAW-gated standing directive (mirroring the reference "ultracode" mechanism): substantive work — a multi-file investigation, a design/architecture decision, anything costly to get wrong — defaults to orchestrating multiple cross-checking agents rather than working it alone end to end, while trivial and conversational turns stay solo. A **PLAN-TIME COMMITMENT** flow-fix front-loads the orchestrate-vs-solo call to turn 0 and makes plan items the agents/stages to dispatch. Leak-closed via a new optional `ManagedRolePromptContext.amawOrchestrationAvailable` field, so AMA and SA prompts stay byte-identical. Narrowed-SHIP: acceptance is task-inception activation; mid-task re-architecture is a documented non-goal, and absolute activation is model-ceiling-limited on current coding-plan aliases.
26
+ - **Space SDK capability hardening (R1-R6).** Per an adversarial review of the six Space SDK capabilities: model-level overrides are honored on the default model and a `resolveWireEffort` helper is added; LLM-triggered skill dynamic-context is routed through the host policy (R4); a rejected `reasoning_effort` self-heals across turns (R5); plus the host-facing authoring entrypoint and resume-replay telemetry (R1/R2) noted above.
27
+ - **ark-coding lineup refreshed to Ark's official model catalog.**
28
+
29
+ ### Fixed
30
+
31
+ - **Workflow `tokenBudget` of `0` / `null` / negative now means unbounded** instead of being clamped to a 1-token budget — expressing "no limit" as `0` from one of a host's launch paths previously wedged the whole run. `maxAgents` / `maxConcurrency` keep their count floor of 1.
32
+ - **The built-in parallel-investigation workflow reads structured child findings instead of the timing-fragile `finalText`.** A child's smart digest is delivered asynchronously (after its terminal event), so a synthesis step could receive empty findings ("总评:(无) / 发现:无"); it now reads the structured result.
33
+ - **Authored + generated workflows read `result.structured`, not the top-level result or `finalText` (KodaX-Space).** Both authoring surfaces — the `run_workflow` tool description and the blind generator prompt — are taught to read a child's validated object off `result.structured` (a review workflow that declared an `outputSchema` but read fields off the top-level result produced an empty report). The sandbox source policy also now preserves `${...}` interpolation inside template literals so a `${process.cwd()}` no longer evades the forbidden-pattern scan and crashes at runtime, bans computed `globalThis[...]` access, and `wf.log` tolerates a bare string.
34
+ - **The Sidecar Verifier's feedback renders under its own identity, not `[Evaluator]`.** Three UI seams surfaced the legacy `evaluator` role name as a phantom `[Evaluator]` agent (status-line label-lag on a revise, the persisted transcript, and the restored synthetic sidecar message on `kodax -c`); all three now attribute to the `⚡ Sidecar Verifier` identity.
35
+ - **`getCustomProviderModelDescriptors` honors a `models[]` override on the default model.** The custom-provider descriptor-listing SDK surface returned a bare `{id}` descriptor for a custom provider's default model even when it had a `models[]` entry (context window / max output / reasoning profile), disagreeing with `getCustomModelCapabilities`; both SDK surfaces now agree (R3 regression test added).
36
+
9
37
  ## [0.7.58] - 2026-07-02
10
38
 
11
39
  > Scope note: a feature + hardening release. **FEATURE_246** delivers Claude-Code-harness