@kodax-ai/kodax 0.7.82 → 0.7.83

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 (46) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +10 -0
  3. package/README_CN.md +8 -0
  4. package/dist/chunks/{agent-4UTCCMD5.js → agent-S7LMMTG7.js} +1 -1
  5. package/dist/chunks/argument-completer-SQHG2LYE.js +2 -0
  6. package/dist/chunks/chunk-37RT45HT.js +379 -0
  7. package/dist/chunks/{chunk-ZOBNDWOA.js → chunk-3DKQC7A2.js} +1 -1
  8. package/dist/chunks/{chunk-WMYCNECP.js → chunk-45E23YJI.js} +142 -67
  9. package/dist/chunks/{chunk-GIVYTXQW.js → chunk-6QILIBOU.js} +155 -155
  10. package/dist/chunks/{chunk-JDZFNWMZ.js → chunk-DSFHIUHZ.js} +2 -2
  11. package/dist/chunks/{chunk-7ZN2MLVM.js → chunk-DZUMH6GJ.js} +1 -1
  12. package/dist/chunks/{chunk-VQBJMNFD.js → chunk-HI6RCW5Y.js} +2 -2
  13. package/dist/chunks/{chunk-XTCDCU2Q.js → chunk-LF2JBTBG.js} +4 -4
  14. package/dist/chunks/{chunk-NINELPXH.js → chunk-RAQGGVIF.js} +1 -1
  15. package/dist/chunks/{chunk-ZZUIO5KL.js → chunk-TC2VHPG5.js} +1 -1
  16. package/dist/chunks/{chunk-S6JTWDN6.js → chunk-URCS6CVP.js} +1 -1
  17. package/dist/chunks/{chunk-KH2HED37.js → chunk-XB2JNLXH.js} +2 -2
  18. package/dist/chunks/{compaction-config-IDL5JQVI.js → compaction-config-SSQ5NXUP.js} +1 -1
  19. package/dist/chunks/{construction-bootstrap-STYUR6XA.js → construction-bootstrap-E4M3CY3N.js} +1 -1
  20. package/dist/chunks/{dist-RKBHBUHV.js → dist-MIXP4ULB.js} +1 -1
  21. package/dist/chunks/{host-RF2IX3N6.js → host-ZCPI7SMC.js} +1 -1
  22. package/dist/chunks/{run-manager-WE2KPAKZ.js → run-manager-4RYG7HSP.js} +1 -1
  23. package/dist/chunks/{utils-Z2RSAENX.js → utils-7DKE2EKT.js} +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +5 -5
  26. package/dist/kodax_bootstrap.js +1 -1
  27. package/dist/kodax_cli.js +1522 -1098
  28. package/dist/kodax_resume.js +140 -65
  29. package/dist/runtime-worker.js +1415 -991
  30. package/dist/sandbox-workspace-session.js +121 -46
  31. package/dist/sdk-a2a.js +1 -1
  32. package/dist/sdk-agent.d.ts +8 -1
  33. package/dist/sdk-agent.js +1 -1
  34. package/dist/sdk-coding.js +1 -1
  35. package/dist/sdk-mcp.js +1 -1
  36. package/dist/sdk-repl.js +1 -1
  37. package/dist/sdk-runtime.d.ts +47 -2
  38. package/dist/sdk-runtime.js +1 -1
  39. package/dist/sdk-sandbox.js +1 -1
  40. package/dist/sdk-session.js +1 -1
  41. package/dist/sdk-skills.js +1 -1
  42. package/dist/semantic-worker.js +120 -45
  43. package/docs/SDK_EMBEDDER_GUIDE.md +35 -8
  44. package/package.json +2 -1
  45. package/dist/chunks/argument-completer-N7ORRJBS.js +0 -2
  46. package/dist/chunks/chunk-PGTU7JQX.js +0 -30
package/CHANGELOG.md CHANGED
@@ -10,6 +10,36 @@ No changes yet.
10
10
 
11
11
  ---
12
12
 
13
+ ## [0.7.83] - 2026-08-06
14
+
15
+ > Git tag and GitHub Release are created by the release workflow. npm
16
+ > publication remains a separate manual operator step.
17
+
18
+ ### Added
19
+
20
+ - Windows daemon startup now assigns the Runtime process to a kill-on-close Job
21
+ Object before user code can run. The public
22
+ `waitForRuntimeDaemonShutdown()` verifier combines the exact durable cleanup
23
+ outcome with daemon and containment-supervisor exit, advertised by
24
+ `daemonShutdownVerification:1`.
25
+
26
+ ### Fixed
27
+
28
+ - Daemon final cleanup can safely retire incomplete current-owner child
29
+ registry records when kernel Job containment is active. Per-child synchronous
30
+ process-exit hooks are omitted in that mode, avoiding listener growth and
31
+ repeated PowerShell tree scans during shutdown. CLI stop now waits for the
32
+ containment boundary as well as the daemon PID before reporting success.
33
+ - Existing Windows daemons are no longer forced through a lock-only capability
34
+ upgrade merely to restore Sessions. Shutdown verification remains explicitly
35
+ negotiable; a legacy daemon must be stopped and relaunched before callers can
36
+ require the new containment contract.
37
+ - Review hardening closes the Windows Job-assignment failure path by terminating
38
+ and waiting for a still-suspended daemon before its process handles are closed.
39
+ This prevents an uncontained orphan when kernel Job assignment fails.
40
+
41
+ ---
42
+
13
43
  ## [0.7.82] - 2026-08-05
14
44
 
15
45
  > Git tag and GitHub Release are created by the release workflow. npm
package/README.md CHANGED
@@ -624,6 +624,16 @@ 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.84, and FEATURE_287 remains planned for v0.7.88. See the
635
+ [v0.7.83 release checklist](docs/release.md#v0783-release-preparation).
636
+
627
637
  The v0.7.77 release also adds an opt-in, host-configurable Shell Execution Contract.
628
638
  Runtime Session settings or an individual Run can select `pwsh`, Windows
629
639
  PowerShell, `cmd`, `bash`, `zsh`, or an explicit Git Bash executable; KodaX
package/README_CN.md CHANGED
@@ -232,6 +232,14 @@ 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.84,FEATURE_287 仍计划于
241
+ v0.7.88。详见 [v0.7.83 发布清单](docs/release.md#v0783-release-preparation)。
242
+
235
243
  v0.7.77 还增加了由宿主显式配置的 Shell Execution Contract。Runtime Session
236
244
  设置或单次 Run 可以选择 `pwsh`、Windows PowerShell、`cmd`、`bash`、`zsh`
237
245
  或 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-TC2VHPG5.js";import"./chunk-HTVLCHWH.js";import"./chunk-6QILIBOU.js";import"./chunk-KHEFUT6O.js";import"./chunk-TRNAWSXP.js";import{xb as a,yb as b}from"./chunk-45E23YJI.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-DSFHIUHZ.js";import"./chunk-HI6RCW5Y.js";import"./chunk-DZUMH6GJ.js";import"./chunk-3DKQC7A2.js";import"./chunk-TC2VHPG5.js";import"./chunk-RAQGGVIF.js";import"./chunk-HTVLCHWH.js";import"./chunk-XB2JNLXH.js";import"./chunk-6QILIBOU.js";import"./chunk-KHEFUT6O.js";import"./chunk-TRNAWSXP.js";import"./chunk-45E23YJI.js";import"./chunk-EVXIJPZ6.js";import"./chunk-E7C4DRD2.js";import"./chunk-6UENDY33.js";import"./chunk-ONUPGMER.js";export{a as ArgumentCompleter,b as createArgumentCompleter};