@kodax-ai/kodax 0.7.85 → 0.7.87

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 (90) hide show
  1. package/CHANGELOG.md +125 -1
  2. package/README.md +1879 -1841
  3. package/README_CN.md +1138 -1130
  4. package/dist/chunks/{agent-OQ37XUWF.js → agent-Z64QF7KG.js} +1 -1
  5. package/dist/chunks/argument-completer-HIJBXRUT.js +2 -0
  6. package/dist/chunks/chunk-3PGNESV3.js +415 -0
  7. package/dist/chunks/{chunk-IA246OAN.js → chunk-4OLXWSCQ.js} +2 -2
  8. package/dist/chunks/chunk-7XTUXMAI.js +379 -0
  9. package/dist/chunks/{chunk-TBBY2DKE.js → chunk-ASFCAPIG.js} +3 -3
  10. package/dist/chunks/{chunk-CZCEFGQG.js → chunk-BCYJIACJ.js} +2 -2
  11. package/dist/chunks/{chunk-ZVOXWLT6.js → chunk-DB4O33RR.js} +226 -214
  12. package/dist/chunks/{chunk-RSOAHVUR.js → chunk-GRJ7NKWP.js} +1 -1
  13. package/dist/chunks/{chunk-3E4OSFP2.js → chunk-ITP7J5HX.js} +136 -137
  14. package/dist/chunks/{chunk-HTVLCHWH.js → chunk-JS4RSF4B.js} +1 -1
  15. package/dist/chunks/chunk-SKELDH3G.js +123 -0
  16. package/dist/chunks/{chunk-MJ4G5ZCW.js → chunk-U44C5STU.js} +1 -1
  17. package/dist/chunks/{chunk-IWRNGH4M.js → chunk-UWKM3HNY.js} +5 -5
  18. package/dist/chunks/chunk-XH7UM4GO.js +92 -0
  19. package/dist/chunks/{chunk-ODRLFQQH.js → chunk-XKLVC7F6.js} +1 -1
  20. package/dist/chunks/chunk-YB7YVAPL.js +519 -0
  21. package/dist/chunks/{chunk-SR4E5FQK.js → chunk-ZQNOEKOB.js} +2 -2
  22. package/dist/chunks/compaction-config-E4TFBCDJ.js +2 -0
  23. package/dist/chunks/{construction-bootstrap-CZ6NWEWQ.js → construction-bootstrap-YTFOT4M2.js} +1 -1
  24. package/dist/chunks/{dist-NFLLOZWF.js → dist-M3JV4PNA.js} +1 -1
  25. package/dist/chunks/{dist-WWL2DNIJ.js → dist-X55TWIK4.js} +1 -1
  26. package/dist/chunks/host-SJHHJBPB.js +2 -0
  27. package/dist/chunks/run-manager-T5QGWNON.js +2 -0
  28. package/dist/chunks/{utils-KFLK3EHJ.js → utils-2FHVIO6X.js} +1 -1
  29. package/dist/index.d.ts +19 -19
  30. package/dist/index.js +1 -1
  31. package/dist/kodax_bootstrap.js +1 -1
  32. package/dist/kodax_cli.js +1459 -1411
  33. package/dist/kodax_resume.js +78 -76
  34. package/dist/provider-capabilities.json +239 -133
  35. package/dist/runtime-worker.js +1467 -1419
  36. package/dist/sandbox-workspace-session.js +346 -302
  37. package/dist/sdk-a2a.d.ts +12 -12
  38. package/dist/sdk-a2a.js +1 -1
  39. package/dist/sdk-agent.d.ts +17 -17
  40. package/dist/sdk-agent.js +1 -1
  41. package/dist/sdk-coding.d.ts +22 -22
  42. package/dist/sdk-coding.js +1 -1
  43. package/dist/sdk-experimental-memory.d.ts +4 -4
  44. package/dist/sdk-experimental-memory.js +1 -1
  45. package/dist/sdk-llm.d.ts +7 -7
  46. package/dist/sdk-llm.js +1 -1
  47. package/dist/sdk-mcp.js +1 -1
  48. package/dist/sdk-media.d.ts +1 -1
  49. package/dist/sdk-media.js +1 -1
  50. package/dist/sdk-repl.d.ts +16 -18
  51. package/dist/sdk-repl.js +1 -1
  52. package/dist/sdk-runtime.d.ts +22 -14
  53. package/dist/sdk-runtime.js +1 -1
  54. package/dist/sdk-sandbox.d.ts +1 -1
  55. package/dist/sdk-sandbox.js +1 -1
  56. package/dist/sdk-session.d.ts +7 -7
  57. package/dist/sdk-session.js +1 -1
  58. package/dist/sdk-skills.js +1 -1
  59. package/dist/semantic-worker.js +63 -64
  60. package/dist/types-chunks/{base.d-DxG0m09Z.d.ts → base.d-vopO1rml.d.ts} +1 -1
  61. package/dist/types-chunks/{bash-prefix-extractor.d-BnZQDirs.d.ts → bash-prefix-extractor.d-B36OQwNA.d.ts} +13 -7
  62. package/dist/types-chunks/{capability-learning.d-iPSiAmc_.d.ts → capability-learning.d-CE1tm29C.d.ts} +1 -1
  63. package/dist/types-chunks/{capsule.d-CN_iMqAS.d.ts → capsule.d-DEncDNzD.d.ts} +3 -3
  64. package/dist/types-chunks/{controller.d-A73Kf6tH.d.ts → controller.d-C1YdP_pQ.d.ts} +1 -1
  65. package/dist/types-chunks/{controller.d-Dzxz22X-.d.ts → controller.d-Dif9pbC9.d.ts} +2 -2
  66. package/dist/types-chunks/{guardrail.d-BCkgaWT1.d.ts → guardrail.d-DhpnJv4Y.d.ts} +5 -11
  67. package/dist/types-chunks/{history-retrieval.d-Debbzn1z.d.ts → history-retrieval.d-YJQpQt7h.d.ts} +2 -2
  68. package/dist/types-chunks/{public-api.d-N6G6Jw8X.d.ts → public-api.d-D4q3WxKq.d.ts} +4 -4
  69. package/dist/types-chunks/{repl.d-BkTIOkJD.d.ts → repl.d-D4ye29Kk.d.ts} +5 -5
  70. package/dist/types-chunks/{resolver.d-C9IW4fmU.d.ts → resolver.d-RyPo99tB.d.ts} +2 -2
  71. package/dist/types-chunks/{review-inbox.d-DuZqFX-z.d.ts → review-inbox.d-C1_xZ-yg.d.ts} +1 -1
  72. package/dist/types-chunks/{run-manager.d-BS4lJfL3.d.ts → run-manager.d-D30IvnwV.d.ts} +1 -1
  73. package/dist/types-chunks/{sdk-session-DLkZTOc-.d.ts → sdk-session-DIU6sHa2.d.ts} +3 -3
  74. package/dist/types-chunks/{shell-command-sets.d-BrLw-WN9.d.ts → shell-command-sets.d-rIHkZ_VR.d.ts} +1 -1
  75. package/dist/types-chunks/{side-query.d-CP1LiRiH.d.ts → side-query.d-iH0P9ASy.d.ts} +2 -2
  76. package/dist/types-chunks/{types.d-Ch3BD97c.d.ts → types.d-Bz5Y-PD9.d.ts} +4 -4
  77. package/dist/types-chunks/{types.d-CgrXrFrq.d.ts → types.d-CK9A9rpP.d.ts} +1 -1
  78. package/dist/types-chunks/{types.d-Bo4fyMLu.d.ts → types.d-COhAF5Xo.d.ts} +2 -2
  79. package/dist/types-chunks/{types.d-DlLBRqZ9.d.ts → types.d-sW-OqiFt.d.ts} +1 -1
  80. package/dist/types-chunks/{utils.d-BI-kjuev.d.ts → utils.d-B65ozSTV.d.ts} +6 -6
  81. package/package.json +1 -1
  82. package/dist/chunks/argument-completer-IMRSIF2N.js +0 -2
  83. package/dist/chunks/chunk-2XJQNFVR.js +0 -379
  84. package/dist/chunks/chunk-CDWYKVZC.js +0 -482
  85. package/dist/chunks/chunk-RTFVMEF6.js +0 -415
  86. package/dist/chunks/chunk-TRNAWSXP.js +0 -123
  87. package/dist/chunks/chunk-UH5WNJXF.js +0 -92
  88. package/dist/chunks/compaction-config-3WLLNN57.js +0 -2
  89. package/dist/chunks/host-LWUSSCWH.js +0 -2
  90. package/dist/chunks/run-manager-PBMOVP7A.js +0 -2
package/CHANGELOG.md CHANGED
@@ -6,7 +6,131 @@ 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.87] - 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
+ ### Changed
17
+
18
+ - `zhipu-coding` now defaults to GLM-5.3 with its 1M context and 128K output,
19
+ while retaining GLM-5.2 as an explicit rollback route. `zai-coding` retains
20
+ both models but defaults to GLM-5.2 until the overseas account/plan rollout
21
+ grants GLM-5.3 access. The ordinary `zhipu` provider pre-registers the same
22
+ GLM-5.3 metadata without promoting it while the public pay-per-token API is
23
+ still marked as upcoming.
24
+ - GLM-5.3 exposes the upstream low/high/max effort contract: none, minimal,
25
+ light, and low lower to `low`; medium/high lower to `high`; xhigh/max/ultra
26
+ lower to `max`. Anthropic-compatible calls use adaptive thinking plus
27
+ `output_config.effort`; OpenAI-compatible calls use enabled thinking plus
28
+ `reasoning_effort`.
29
+
30
+ ### Fixed
31
+
32
+ - Zhipu Coding Plan model IDs are sent verbatim (`glm-5.3` / `glm-5.2`). The
33
+ invalid `[1m]` suffix previously caused upstream `1214 modelCode does not
34
+ exist` failures even though the logical model was available.
35
+ - GLM-5.3 `off` / `none` no longer sends the unsupported disabled-thinking
36
+ shape. It lowers to enabled low-effort thinking, matching the always-thinking
37
+ upstream contract and preventing `1210` request failures.
38
+ - REPL effort controls no longer offer an impossible `off` rung for GLM-5.3;
39
+ legacy saved `off` intent is classified and displayed as `off->low`.
40
+
41
+ ---
42
+
43
+ ## [0.7.86] - 2026-08-14
44
+
45
+ > Git tag and GitHub Release are created by the release workflow. npm
46
+ > publication remains a separate manual operator step.
47
+
48
+ ### Fixed
49
+
50
+ - Windows sandbox doctor and required Shell calls now surface actionable ACL
51
+ crash-recovery guidance for legacy or corrupt owner markers instead of a
52
+ generic unavailable result. Sandbox setup is serialized with owner admission
53
+ and cannot mutate account, guard, or WFP state while any sandbox owner or
54
+ unresolved poison marker exists for the shared Windows sandbox account. New owner markers
55
+ remain readable by older runtimes, while atomic-write staging files are kept
56
+ outside the legacy marker directory.
57
+ - Windows workspace Shell sessions now derive bounded read grants from each
58
+ command's final PATH and shell executable. Existing lexical and canonical
59
+ directories are admitted exactly; junction targets receive only the minimum
60
+ traversal ancestors below their profile application root, so version managers,
61
+ shims, virtual environments, and sibling runtime files work without naming
62
+ individual tools or exposing broad Documents/AppData vendor trees. Windows
63
+ shares one effective policy scope across compatible commands and confirms ACL
64
+ reset before switching to an incompatible scope. Standalone SDK calls,
65
+ workspace sessions, and duplicate SDK module copies use the same machine-wide
66
+ policy-owner protocol across Runtime profiles and KodaX homes, so incompatible
67
+ grants cannot combine through the shared Windows sandbox identity. The
68
+ target receives a case-normalized environment and preserves the Windows
69
+ verbatim-argument contract, so
70
+ profile-managed executables and quoted path arguments survive both broker layers.
71
+ - Auto-started Runtime clients now require sandbox execution capability v3, so
72
+ an idle daemon from KodaX 0.7.85 or the earlier v2 execution policy is replaced only after its durable shutdown
73
+ outcome and Windows Job supervisor prove the old process tree is empty. A
74
+ daemon without that verification contract remains fail-closed and must be
75
+ stopped explicitly before the repaired Shell chain is exposed.
76
+ - The first upgrade from a Runtime that predates the machine-wide Windows
77
+ sandbox-owner protocol requires all unmanaged legacy KodaX/Space processes
78
+ (including standalone SDK processes using another KodaX home) to be stopped.
79
+ Those binaries cannot participate in the new global owner lock; current and
80
+ future runtimes are serialized machine-wide after the transition.
81
+ - Clean Windows workspace-session shutdown now honors the sandbox runtime's full
82
+ ACL reset budget before escalating to process-tree termination, while unclean
83
+ or unverified exits remain durably fail-closed.
84
+ - Windows Shell sessions now share one ACL policy group when their normalized
85
+ workspace, Agent Home access, additional filesystem permissions, toolchain
86
+ scopes, and network policy are identical. Compatible commands can run in
87
+ parallel across independent KodaX processes; the last policy-group member confirms
88
+ reset before releasing its owner. Different policies fall back immediately
89
+ to the already-authorized ordinary execution path instead of blocking on a
90
+ machine-wide sandbox fence. Preparation failures use the same fallback, while
91
+ a command that started or may have started is never replayed implicitly.
92
+ - Filesystem-effect coordinator handoff now waits through the lock protocol's
93
+ 30-second stale-owner safety window. Slow or rapid cross-process handoffs no
94
+ longer fail at five seconds, while real cross-category effect conflicts keep
95
+ their existing one-second fail-closed admission boundary.
96
+ - Runtime Shell containment is now sandbox-first rather than sandbox-required.
97
+ Auto[LLM] remains the single authorization decision, successful allow results
98
+ are cached only for the same Runtime-session intent revision, and unavailable
99
+ sandbox infrastructure uses normal permission enforcement without another
100
+ classifier call. Catastrophic root deletion, disk formatting/raw disk writes,
101
+ fork bombs, and Agent Home root/control-plane destruction remain deterministic
102
+ hard denials. The obsolete public `failClosed` switch has been removed.
103
+ - The packaged Electron regression smoke now runs 20 Runtime Shell commands
104
+ through a profile-added junction toolchain, resolves the packaged Node binary
105
+ through its version-manager ancestry, exercises a quoted `cmd.exe` path, and
106
+ keeps its probe I/O inside the admitted workspace.
107
+ - Packaged Electron hosts on Windows now keep Electron's Node bootstrap mode
108
+ across the internal filesystem-effect gate without leaking it to user
109
+ commands. Sandbox readiness uses KodaX's staged runner outside ASAR, failed
110
+ workspace sessions are retired, stale ACLs are recovered before startup and
111
+ after the last compatible sandbox owner exits, and an execution with missing
112
+ attestation is reported without replaying a possibly side-effecting command.
113
+ - Sandbox stop now waits for process-tree termination proof before ACL recovery;
114
+ undrained Shell effects and spawn/cleanup failure combinations are reported as
115
+ lifecycle safety errors. Windows ACL owner markers admit only an exact shared
116
+ policy group for the machine sandbox identity, and crash recovery is serialized
117
+ across Runtime profiles.
118
+ - Inline Runtime owner recovery now removes only a provably abandoned inline
119
+ owner fence before restoring daemon policy. Live, unreadable, legacy-kind,
120
+ daemon-kind, and unverifiable owners remain fail-closed, while a failed
121
+ inline-owner release remains retryable.
122
+ - Runtime owner records and learning-file locks now retain an OS process-start
123
+ identity, so a reused PID cannot keep stale ownership alive.
124
+ - Windows sandbox lifecycle failures now wait for termination proof, preserve
125
+ cleanup evidence, fence later filesystem effects, and never replay a command
126
+ whose effect process was not proven drained.
127
+ - POSIX sandbox workspace sessions now latch an unconfirmed process-tree or
128
+ cleanup failure and reject replacement sessions until the safety state is
129
+ reset, matching the fail-closed lifecycle contract across platforms. Fresh
130
+ `KODAX_HOME` policy roots are initialized before policy identity is captured,
131
+ concrete admissions wait only for their workspace-local warm-up within the
132
+ existing Shell abort/deadline, and a failed lease cleanup retires the invalid
133
+ cached session before replacement.
10
134
 
11
135
  ---
12
136