@kodax-ai/kodax 0.7.85 → 0.7.86

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 +93 -1
  2. package/README.md +1867 -1841
  3. package/README_CN.md +1136 -1130
  4. package/dist/chunks/{agent-OQ37XUWF.js → agent-IO6TXNCV.js} +1 -1
  5. package/dist/chunks/argument-completer-JMICSGL6.js +2 -0
  6. package/dist/chunks/chunk-2RAXDUC7.js +379 -0
  7. package/dist/chunks/{chunk-MJ4G5ZCW.js → chunk-A5VQGXH2.js} +1 -1
  8. package/dist/chunks/{chunk-TBBY2DKE.js → chunk-AAFFS6RU.js} +2 -2
  9. package/dist/chunks/{chunk-IA246OAN.js → chunk-B36G256E.js} +2 -2
  10. package/dist/chunks/{chunk-3E4OSFP2.js → chunk-G5FGIRDJ.js} +136 -137
  11. package/dist/chunks/{chunk-RSOAHVUR.js → chunk-GVGLYVG4.js} +1 -1
  12. package/dist/chunks/chunk-MFCPQZ7E.js +519 -0
  13. package/dist/chunks/chunk-Q6UAGROD.js +415 -0
  14. package/dist/chunks/{chunk-IWRNGH4M.js → chunk-R4EHASEN.js} +5 -5
  15. package/dist/chunks/{chunk-ZVOXWLT6.js → chunk-U6HNMLNN.js} +226 -214
  16. package/dist/chunks/{chunk-ODRLFQQH.js → chunk-UKCDCVMD.js} +1 -1
  17. package/dist/chunks/{chunk-CZCEFGQG.js → chunk-XA4ENCAH.js} +1 -1
  18. package/dist/chunks/{chunk-SR4E5FQK.js → chunk-XUKLF26Q.js} +2 -2
  19. package/dist/chunks/{compaction-config-3WLLNN57.js → compaction-config-5RMG22CY.js} +1 -1
  20. package/dist/chunks/{construction-bootstrap-CZ6NWEWQ.js → construction-bootstrap-4DGAYOWH.js} +1 -1
  21. package/dist/chunks/{dist-NFLLOZWF.js → dist-DFW7MXT7.js} +1 -1
  22. package/dist/chunks/host-6MMHYTI5.js +2 -0
  23. package/dist/chunks/run-manager-ISQSWCAM.js +2 -0
  24. package/dist/chunks/{utils-KFLK3EHJ.js → utils-LV7FHKYN.js} +1 -1
  25. package/dist/index.d.ts +8 -8
  26. package/dist/index.js +1 -1
  27. package/dist/kodax_bootstrap.js +1 -1
  28. package/dist/kodax_cli.js +1459 -1411
  29. package/dist/kodax_resume.js +78 -76
  30. package/dist/runtime-worker.js +1467 -1419
  31. package/dist/sandbox-workspace-session.js +346 -302
  32. package/dist/sdk-a2a.d.ts +5 -5
  33. package/dist/sdk-a2a.js +1 -1
  34. package/dist/sdk-agent.js +1 -1
  35. package/dist/sdk-coding.d.ts +8 -8
  36. package/dist/sdk-coding.js +1 -1
  37. package/dist/sdk-experimental-memory.js +1 -1
  38. package/dist/sdk-mcp.js +1 -1
  39. package/dist/sdk-repl.d.ts +9 -11
  40. package/dist/sdk-repl.js +1 -1
  41. package/dist/sdk-runtime.d.ts +14 -6
  42. package/dist/sdk-runtime.js +1 -1
  43. package/dist/sdk-sandbox.d.ts +1 -1
  44. package/dist/sdk-sandbox.js +1 -1
  45. package/dist/sdk-session.d.ts +3 -3
  46. package/dist/sdk-session.js +1 -1
  47. package/dist/sdk-skills.js +1 -1
  48. package/dist/semantic-worker.js +63 -64
  49. package/dist/types-chunks/{bash-prefix-extractor.d-BnZQDirs.d.ts → bash-prefix-extractor.d-QqKtuLZm.d.ts} +9 -3
  50. package/dist/types-chunks/{guardrail.d-BCkgaWT1.d.ts → guardrail.d-Y_AIh8-I.d.ts} +1 -7
  51. package/dist/types-chunks/{public-api.d-N6G6Jw8X.d.ts → public-api.d-Cg-4GTbK.d.ts} +1 -1
  52. package/dist/types-chunks/{repl.d-BkTIOkJD.d.ts → repl.d-Bhrbueab.d.ts} +4 -4
  53. package/dist/types-chunks/{sdk-session-DLkZTOc-.d.ts → sdk-session-fQ_KENev.d.ts} +1 -1
  54. package/dist/types-chunks/{shell-command-sets.d-BrLw-WN9.d.ts → shell-command-sets.d-DRGjd_7Q.d.ts} +1 -1
  55. package/dist/types-chunks/{types.d-Ch3BD97c.d.ts → types.d-BRrJU4pb.d.ts} +1 -1
  56. package/dist/types-chunks/{utils.d-BI-kjuev.d.ts → utils.d-BIhh_BqE.d.ts} +3 -3
  57. package/package.json +1 -1
  58. package/dist/chunks/argument-completer-IMRSIF2N.js +0 -2
  59. package/dist/chunks/chunk-2XJQNFVR.js +0 -379
  60. package/dist/chunks/chunk-CDWYKVZC.js +0 -482
  61. package/dist/chunks/chunk-RTFVMEF6.js +0 -415
  62. package/dist/chunks/host-LWUSSCWH.js +0 -2
  63. package/dist/chunks/run-manager-PBMOVP7A.js +0 -2
package/CHANGELOG.md CHANGED
@@ -6,7 +6,99 @@ All notable changes to this project will be documented in this file.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- No changes yet.
9
+ ---
10
+
11
+ ## [0.7.86] - 2026-08-14
12
+
13
+ > Git tag and GitHub Release are created by the release workflow. npm
14
+ > publication remains a separate manual operator step.
15
+
16
+ ### Fixed
17
+
18
+ - Windows sandbox doctor and required Shell calls now surface actionable ACL
19
+ crash-recovery guidance for legacy or corrupt owner markers instead of a
20
+ generic unavailable result. Sandbox setup is serialized with owner admission
21
+ and cannot mutate account, guard, or WFP state while any sandbox owner or
22
+ unresolved poison marker exists for the shared Windows sandbox account. New owner markers
23
+ remain readable by older runtimes, while atomic-write staging files are kept
24
+ outside the legacy marker directory.
25
+ - Windows workspace Shell sessions now derive bounded read grants from each
26
+ command's final PATH and shell executable. Existing lexical and canonical
27
+ directories are admitted exactly; junction targets receive only the minimum
28
+ traversal ancestors below their profile application root, so version managers,
29
+ shims, virtual environments, and sibling runtime files work without naming
30
+ individual tools or exposing broad Documents/AppData vendor trees. Windows
31
+ shares one effective policy scope across compatible commands and confirms ACL
32
+ reset before switching to an incompatible scope. Standalone SDK calls,
33
+ workspace sessions, and duplicate SDK module copies use the same machine-wide
34
+ policy-owner protocol across Runtime profiles and KodaX homes, so incompatible
35
+ grants cannot combine through the shared Windows sandbox identity. The
36
+ target receives a case-normalized environment and preserves the Windows
37
+ verbatim-argument contract, so
38
+ profile-managed executables and quoted path arguments survive both broker layers.
39
+ - Auto-started Runtime clients now require sandbox execution capability v3, so
40
+ an idle daemon from KodaX 0.7.85 or the earlier v2 execution policy is replaced only after its durable shutdown
41
+ outcome and Windows Job supervisor prove the old process tree is empty. A
42
+ daemon without that verification contract remains fail-closed and must be
43
+ stopped explicitly before the repaired Shell chain is exposed.
44
+ - The first upgrade from a Runtime that predates the machine-wide Windows
45
+ sandbox-owner protocol requires all unmanaged legacy KodaX/Space processes
46
+ (including standalone SDK processes using another KodaX home) to be stopped.
47
+ Those binaries cannot participate in the new global owner lock; current and
48
+ future runtimes are serialized machine-wide after the transition.
49
+ - Clean Windows workspace-session shutdown now honors the sandbox runtime's full
50
+ ACL reset budget before escalating to process-tree termination, while unclean
51
+ or unverified exits remain durably fail-closed.
52
+ - Windows Shell sessions now share one ACL policy group when their normalized
53
+ workspace, Agent Home access, additional filesystem permissions, toolchain
54
+ scopes, and network policy are identical. Compatible commands can run in
55
+ parallel across independent KodaX processes; the last policy-group member confirms
56
+ reset before releasing its owner. Different policies fall back immediately
57
+ to the already-authorized ordinary execution path instead of blocking on a
58
+ machine-wide sandbox fence. Preparation failures use the same fallback, while
59
+ a command that started or may have started is never replayed implicitly.
60
+ - Filesystem-effect coordinator handoff now waits through the lock protocol's
61
+ 30-second stale-owner safety window. Slow or rapid cross-process handoffs no
62
+ longer fail at five seconds, while real cross-category effect conflicts keep
63
+ their existing one-second fail-closed admission boundary.
64
+ - Runtime Shell containment is now sandbox-first rather than sandbox-required.
65
+ Auto[LLM] remains the single authorization decision, successful allow results
66
+ are cached only for the same Runtime-session intent revision, and unavailable
67
+ sandbox infrastructure uses normal permission enforcement without another
68
+ classifier call. Catastrophic root deletion, disk formatting/raw disk writes,
69
+ fork bombs, and Agent Home root/control-plane destruction remain deterministic
70
+ hard denials. The obsolete public `failClosed` switch has been removed.
71
+ - The packaged Electron regression smoke now runs 20 Runtime Shell commands
72
+ through a profile-added junction toolchain, resolves the packaged Node binary
73
+ through its version-manager ancestry, exercises a quoted `cmd.exe` path, and
74
+ keeps its probe I/O inside the admitted workspace.
75
+ - Packaged Electron hosts on Windows now keep Electron's Node bootstrap mode
76
+ across the internal filesystem-effect gate without leaking it to user
77
+ commands. Sandbox readiness uses KodaX's staged runner outside ASAR, failed
78
+ workspace sessions are retired, stale ACLs are recovered before startup and
79
+ after the last compatible sandbox owner exits, and an execution with missing
80
+ attestation is reported without replaying a possibly side-effecting command.
81
+ - Sandbox stop now waits for process-tree termination proof before ACL recovery;
82
+ undrained Shell effects and spawn/cleanup failure combinations are reported as
83
+ lifecycle safety errors. Windows ACL owner markers admit only an exact shared
84
+ policy group for the machine sandbox identity, and crash recovery is serialized
85
+ across Runtime profiles.
86
+ - Inline Runtime owner recovery now removes only a provably abandoned inline
87
+ owner fence before restoring daemon policy. Live, unreadable, legacy-kind,
88
+ daemon-kind, and unverifiable owners remain fail-closed, while a failed
89
+ inline-owner release remains retryable.
90
+ - Runtime owner records and learning-file locks now retain an OS process-start
91
+ identity, so a reused PID cannot keep stale ownership alive.
92
+ - Windows sandbox lifecycle failures now wait for termination proof, preserve
93
+ cleanup evidence, fence later filesystem effects, and never replay a command
94
+ whose effect process was not proven drained.
95
+ - POSIX sandbox workspace sessions now latch an unconfirmed process-tree or
96
+ cleanup failure and reject replacement sessions until the safety state is
97
+ reset, matching the fail-closed lifecycle contract across platforms. Fresh
98
+ `KODAX_HOME` policy roots are initialized before policy identity is captured,
99
+ concrete admissions wait only for their workspace-local warm-up within the
100
+ existing Shell abort/deadline, and a failed lease cleanup retires the invalid
101
+ cached session before replacement.
10
102
 
11
103
  ---
12
104