@kodax-ai/kodax 0.7.82 → 0.7.84

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 (63) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +20 -0
  3. package/README_CN.md +10 -0
  4. package/dist/chunks/{agent-4UTCCMD5.js → agent-VMXNVYRK.js} +1 -1
  5. package/dist/chunks/argument-completer-QCS6GUAE.js +2 -0
  6. package/dist/chunks/{chunk-WMYCNECP.js → chunk-4ZI2CPUQ.js} +142 -67
  7. package/dist/chunks/{chunk-7ZN2MLVM.js → chunk-726WJGGY.js} +1 -1
  8. package/dist/chunks/{chunk-S6JTWDN6.js → chunk-A7L7XTUH.js} +1 -1
  9. package/dist/chunks/{chunk-XTCDCU2Q.js → chunk-BBBS644N.js} +4 -4
  10. package/dist/chunks/{chunk-JDZFNWMZ.js → chunk-ET2BMEQQ.js} +2 -2
  11. package/dist/chunks/{chunk-ZOBNDWOA.js → chunk-F44YYR6Z.js} +1 -1
  12. package/dist/chunks/{chunk-GIVYTXQW.js → chunk-GRLC3N46.js} +155 -155
  13. package/dist/chunks/{chunk-VQBJMNFD.js → chunk-OHZFGQEH.js} +2 -2
  14. package/dist/chunks/{chunk-ZZUIO5KL.js → chunk-TDJS5SFS.js} +1 -1
  15. package/dist/chunks/{chunk-NINELPXH.js → chunk-WTYAZOWO.js} +1 -1
  16. package/dist/chunks/chunk-WXHHZZRJ.js +379 -0
  17. package/dist/chunks/{chunk-KH2HED37.js → chunk-ZVPTDYDI.js} +2 -2
  18. package/dist/chunks/{compaction-config-IDL5JQVI.js → compaction-config-QTMFP7AF.js} +1 -1
  19. package/dist/chunks/{construction-bootstrap-STYUR6XA.js → construction-bootstrap-EVQ6VWSX.js} +1 -1
  20. package/dist/chunks/{dist-RKBHBUHV.js → dist-XRH6CRLL.js} +1 -1
  21. package/dist/chunks/{host-RF2IX3N6.js → host-F4TPD6WY.js} +1 -1
  22. package/dist/chunks/{run-manager-WE2KPAKZ.js → run-manager-PYD46OGY.js} +1 -1
  23. package/dist/chunks/{utils-Z2RSAENX.js → utils-TOTTXU2I.js} +1 -1
  24. package/dist/index.d.ts +13 -13
  25. package/dist/index.js +5 -5
  26. package/dist/kodax_bootstrap.js +1 -1
  27. package/dist/kodax_cli.js +1716 -1292
  28. package/dist/kodax_resume.js +140 -65
  29. package/dist/runtime-worker.js +1567 -1143
  30. package/dist/sandbox-workspace-session.js +121 -46
  31. package/dist/sdk-a2a.d.ts +8 -8
  32. package/dist/sdk-a2a.js +5 -5
  33. package/dist/sdk-agent.d.ts +16 -9
  34. package/dist/sdk-agent.js +1 -1
  35. package/dist/sdk-coding.d.ts +13 -13
  36. package/dist/sdk-coding.js +1 -1
  37. package/dist/sdk-mcp.js +1 -1
  38. package/dist/sdk-repl.d.ts +11 -11
  39. package/dist/sdk-repl.js +1 -1
  40. package/dist/sdk-runtime.d.ts +55 -10
  41. package/dist/sdk-runtime.js +1 -1
  42. package/dist/sdk-sandbox.js +1 -1
  43. package/dist/sdk-session.d.ts +4 -4
  44. package/dist/sdk-session.js +1 -1
  45. package/dist/sdk-skills.js +1 -1
  46. package/dist/semantic-worker.js +120 -45
  47. package/dist/types-chunks/{bash-prefix-extractor.d-CJM7OY-L.d.ts → bash-prefix-extractor.d-CkdGL4rM.d.ts} +1 -1
  48. package/dist/types-chunks/{capsule.d-B7yoH4dM.d.ts → capsule.d-7wQ_kM1C.d.ts} +1 -1
  49. package/dist/types-chunks/{controller.d-CYNuR2n9.d.ts → controller.d-CesRxFL5.d.ts} +2 -0
  50. package/dist/types-chunks/{guardrail.d-fM3mn4Op.d.ts → guardrail.d-KaIeVree.d.ts} +2 -2
  51. package/dist/types-chunks/{history-retrieval.d-BDI-ZMvY.d.ts → history-retrieval.d-CbCls7r0.d.ts} +1 -1
  52. package/dist/types-chunks/{public-api.d-i10kvYFs.d.ts → public-api.d-DpRj8b7d.d.ts} +2 -2
  53. package/dist/types-chunks/{repl.d-Cs3eqGVT.d.ts → repl.d-DWeC3PLW.d.ts} +5 -5
  54. package/dist/types-chunks/{run-manager.d-CodHf6rw.d.ts → run-manager.d-BXBkLT0A.d.ts} +1 -1
  55. package/dist/types-chunks/{sdk-session-CRXu5xNs.d.ts → sdk-session-DEtS6u20.d.ts} +2 -2
  56. package/dist/types-chunks/{shell-command-sets.d-DfeSUjjM.d.ts → shell-command-sets.d-P2h4_KKL.d.ts} +1 -1
  57. package/dist/types-chunks/{types.d-DKs4tfSd.d.ts → types.d-0m3PS7Ng.d.ts} +2 -2
  58. package/dist/types-chunks/{types.d-DIXZFauU.d.ts → types.d-CUtMr2IG.d.ts} +1 -1
  59. package/dist/types-chunks/{utils.d-CgITiLyc.d.ts → utils.d-C-eSIZ9n.d.ts} +4 -4
  60. package/docs/SDK_EMBEDDER_GUIDE.md +52 -8
  61. package/package.json +2 -1
  62. package/dist/chunks/argument-completer-N7ORRJBS.js +0 -2
  63. package/dist/chunks/chunk-PGTU7JQX.js +0 -30
package/CHANGELOG.md CHANGED
@@ -10,6 +10,65 @@ No changes yet.
10
10
 
11
11
  ---
12
12
 
13
+ ## [0.7.84] - 2026-08-07
14
+
15
+ > Git tag and GitHub Release are created by the release workflow. npm
16
+ > publication remains a separate manual operator step.
17
+
18
+ ### Fixed
19
+
20
+ - Issue 282: Agent progress persistence is now backpressured and coalesced to
21
+ one in-flight write plus one latest replacement. Terminal settlement no
22
+ longer waits behind an unbounded progress backlog and exposes an explicit
23
+ durability-unknown state when the remaining write cannot settle in time.
24
+ - A same-owner Stop can reconcile a late Actor snapshot after settlement
25
+ timeout, durably quiesce remaining children, and retry the repair on a later
26
+ Stop. Foreign owners, missing snapshots, and persistent storage failures
27
+ remain fail-closed.
28
+ - Promise success/failure facts are retained while Actor durability is unknown
29
+ and outrank fallback terminal callbacks after repair. A stale durable unknown
30
+ status cannot rewind an already terminal local Run, duplicate cancellation
31
+ effects, or emit conflicting terminal events.
32
+ - A quiesce with no eligible turn is now a true no-op and avoids an unnecessary
33
+ Session snapshot rewrite.
34
+
35
+ ### Documentation
36
+
37
+ - Updated the release baseline, SDK embedder guidance, `kodax_manual`, feature
38
+ design index, regression guides, and known-issue disposition for Issue 282.
39
+
40
+ ---
41
+
42
+ ## [0.7.83] - 2026-08-06
43
+
44
+ > Git tag and GitHub Release are created by the release workflow. npm
45
+ > publication remains a separate manual operator step.
46
+
47
+ ### Added
48
+
49
+ - Windows daemon startup now assigns the Runtime process to a kill-on-close Job
50
+ Object before user code can run. The public
51
+ `waitForRuntimeDaemonShutdown()` verifier combines the exact durable cleanup
52
+ outcome with daemon and containment-supervisor exit, advertised by
53
+ `daemonShutdownVerification:1`.
54
+
55
+ ### Fixed
56
+
57
+ - Daemon final cleanup can safely retire incomplete current-owner child
58
+ registry records when kernel Job containment is active. Per-child synchronous
59
+ process-exit hooks are omitted in that mode, avoiding listener growth and
60
+ repeated PowerShell tree scans during shutdown. CLI stop now waits for the
61
+ containment boundary as well as the daemon PID before reporting success.
62
+ - Existing Windows daemons are no longer forced through a lock-only capability
63
+ upgrade merely to restore Sessions. Shutdown verification remains explicitly
64
+ negotiable; a legacy daemon must be stopped and relaunched before callers can
65
+ require the new containment contract.
66
+ - Review hardening closes the Windows Job-assignment failure path by terminating
67
+ and waiting for a still-suspended daemon before its process handles are closed.
68
+ This prevents an uncontained orphan when kernel Job assignment fails.
69
+
70
+ ---
71
+
13
72
  ## [0.7.82] - 2026-08-05
14
73
 
15
74
  > Git tag and GitHub Release are created by the release workflow. npm
package/README.md CHANGED
@@ -624,6 +624,26 @@ active interrupt and after-turn admission do not produce a transient
624
624
  `data_changed` rejection. FEATURE_287 remains planned for v0.7.88; this is a
625
625
  non-Feature patch. See the [v0.7.82 release checklist](docs/release.md#v0782-release-preparation).
626
626
 
627
+ **v0.7.83 Windows daemon containment release:** Windows daemon startup creates
628
+ the daemon suspended, assigns it to a kill-on-close Job Object before resuming
629
+ user code, and keeps an out-of-Job supervisor until the Job is empty. The SDK
630
+ exports `waitForRuntimeDaemonShutdown()` and capability
631
+ `daemonShutdownVerification:1`; CLI stop waits for both daemon and supervisor
632
+ exit. Legacy uncontained daemons are not reported as verified and are not
633
+ silently upgraded in place. The Worker owner-lease portion of Issue 256 remains
634
+ scheduled for v0.7.85, and FEATURE_287 remains planned for v0.7.88. See the
635
+ [v0.7.83 release checklist](docs/release.md#v0783-release-preparation).
636
+
637
+ **v0.7.84 Actor settlement recovery release:** Agent progress persistence is
638
+ now bounded to one in-flight write plus one latest replacement, so terminal
639
+ settlement cannot wait behind an unbounded progress backlog. A same-owner Stop
640
+ can reconcile a late Actor snapshot after a durability timeout, durably quiesce
641
+ remaining children, and retry the repair. Promise success/failure facts remain
642
+ authoritative over fallback callbacks after repair; stale durable unknown state
643
+ cannot rewind a local terminal Run or duplicate cancellation effects. No-op
644
+ quiescence avoids an unnecessary Session rewrite. See the
645
+ [v0.7.84 release checklist](docs/release.md#v0784-release-preparation).
646
+
627
647
  The v0.7.77 release also adds an opt-in, host-configurable Shell Execution Contract.
628
648
  Runtime Session settings or an individual Run can select `pwsh`, Windows
629
649
  PowerShell, `cmd`, `bash`, `zsh`, or an explicit Git Bash executable; KodaX
package/README_CN.md CHANGED
@@ -232,6 +232,16 @@ Run,再读取可变 Session history,因此活动中断和 after-turn 接纳
232
232
  `data_changed` 拒绝。FEATURE_287 仍计划于 v0.7.88;本版本是非 Feature 补丁。详见
233
233
  [v0.7.82 发布清单](docs/release.md#v0782-release-preparation)。
234
234
 
235
+ **v0.7.83 Windows daemon containment 发布**:Windows daemon 会先以 suspended
236
+ 状态创建,在用户代码运行前分配到 kill-on-close Job Object,并由 Job 外部的
237
+ supervisor 等待整个 Job 清空。SDK 导出 `waitForRuntimeDaemonShutdown()`,并通过
238
+ `daemonShutdownVerification:1` 宣布该能力;CLI stop 会等待 daemon 与 supervisor
239
+ 都退出。旧的未 containment daemon 不会被报告为已验证,也不会被静默地原地升级。
240
+ Issue 256 的 Worker owner lease 部分仍计划于 v0.7.85,FEATURE_287 仍计划于
241
+ v0.7.88。详见 [v0.7.83 发布清单](docs/release.md#v0783-release-preparation)。
242
+
243
+ **v0.7.84 Actor settlement recovery 发布**:Agent progress 持久化现在限制为一个进行中的写入加一个最新替换,terminal settlement 不会再被无限 progress backlog 阻塞。同 owner 的 Stop 可以在 durability timeout 后协调迟到的 Actor snapshot,持久化 quiesce 剩余子任务,并在后续 Stop 中重试修复。修复后 Promise 的 success/failure fact 优先于 fallback callback;过时的 durable unknown 状态不能回退本地已终态 Run,也不会重复取消效果。没有可处理 turn 的 quiesce 现在是真正 no-op,不再无意义地重写 Session。详见 [v0.7.84 发布清单](docs/release.md#v0784-release-preparation)。
244
+
235
245
  v0.7.77 还增加了由宿主显式配置的 Shell Execution Contract。Runtime Session
236
246
  设置或单次 Run 可以选择 `pwsh`、Windows PowerShell、`cmd`、`bash`、`zsh`
237
247
  或 Git Bash 的绝对路径;KodaX 会在实际项目 cwd 中解析 shell 环境,再通过同一
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{Ja as g,La as h,Ya as i,Za as j,a as c,db as k,ra as d,sa as e,ta as f}from"./chunk-ZZUIO5KL.js";import"./chunk-HTVLCHWH.js";import"./chunk-GIVYTXQW.js";import"./chunk-KHEFUT6O.js";import"./chunk-TRNAWSXP.js";import{wb as a,xb as b}from"./chunk-WMYCNECP.js";import"./chunk-EVXIJPZ6.js";import"./chunk-E7C4DRD2.js";import"./chunk-6UENDY33.js";import"./chunk-ONUPGMER.js";export{e as bucketProviderPayloadSize,g as buildAutoRepoIntelligenceContext,f as checkPromiseSignal,b as cleanupIncompleteToolCalls,h as describeTransientProviderRetry,c as emitResilienceDebug,d as estimateProviderPayloadBytes,k as runKodaX,j as saveRequiredSessionSnapshot,i as saveSessionSnapshot,a as validateAndFixToolHistory};
2
+ import{Ja as g,La as h,Ya as i,Za as j,a as c,db as k,ra as d,sa as e,ta as f}from"./chunk-TDJS5SFS.js";import"./chunk-HTVLCHWH.js";import"./chunk-GRLC3N46.js";import"./chunk-KHEFUT6O.js";import"./chunk-TRNAWSXP.js";import{xb as a,yb as b}from"./chunk-4ZI2CPUQ.js";import"./chunk-EVXIJPZ6.js";import"./chunk-E7C4DRD2.js";import"./chunk-6UENDY33.js";import"./chunk-ONUPGMER.js";export{e as bucketProviderPayloadSize,g as buildAutoRepoIntelligenceContext,f as checkPromiseSignal,b as cleanupIncompleteToolCalls,h as describeTransientProviderRetry,c as emitResilienceDebug,d as estimateProviderPayloadBytes,k as runKodaX,j as saveRequiredSessionSnapshot,i as saveSessionSnapshot,a as validateAndFixToolHistory};
@@ -0,0 +1,2 @@
1
+ // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
+ import{Ea as a,Fa as b}from"./chunk-ET2BMEQQ.js";import"./chunk-OHZFGQEH.js";import"./chunk-726WJGGY.js";import"./chunk-F44YYR6Z.js";import"./chunk-TDJS5SFS.js";import"./chunk-WTYAZOWO.js";import"./chunk-HTVLCHWH.js";import"./chunk-ZVPTDYDI.js";import"./chunk-GRLC3N46.js";import"./chunk-KHEFUT6O.js";import"./chunk-TRNAWSXP.js";import"./chunk-4ZI2CPUQ.js";import"./chunk-EVXIJPZ6.js";import"./chunk-E7C4DRD2.js";import"./chunk-6UENDY33.js";import"./chunk-ONUPGMER.js";export{a as ArgumentCompleter,b as createArgumentCompleter};