@kodax-ai/kodax 0.7.88 → 0.7.89

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 (75) hide show
  1. package/CHANGELOG.md +55 -1
  2. package/README.md +9 -0
  3. package/README_CN.md +2 -0
  4. package/dist/chunks/{agent-ZVZPWX5T.js → agent-AKCXT573.js} +1 -1
  5. package/dist/chunks/argument-completer-BJGY57H2.js +2 -0
  6. package/dist/chunks/{chunk-6MGD2A7Z.js → chunk-5UBP47VJ.js} +183 -180
  7. package/dist/chunks/chunk-A63MGLH6.js +415 -0
  8. package/dist/chunks/{chunk-QCXFQFIO.js → chunk-BOMSVUJS.js} +2 -2
  9. package/dist/chunks/{chunk-RGAMBFT4.js → chunk-CQHLFQSU.js} +2 -2
  10. package/dist/chunks/{chunk-TXZ2XYMA.js → chunk-GL6GVYF4.js} +186 -186
  11. package/dist/chunks/{chunk-L2SYMK46.js → chunk-IFD6TUQU.js} +1 -1
  12. package/dist/chunks/{chunk-ZKJEAQHA.js → chunk-QQBFQCMF.js} +1 -1
  13. package/dist/chunks/{chunk-GSGNXLDU.js → chunk-S74F7MFN.js} +124 -124
  14. package/dist/chunks/{chunk-WSDVHFBK.js → chunk-SOIIBADK.js} +2 -2
  15. package/dist/chunks/{chunk-ZWRG2GHC.js → chunk-W2LRTZBJ.js} +37 -34
  16. package/dist/chunks/{construction-bootstrap-HUGXOAUK.js → construction-bootstrap-WF6KQ7XV.js} +1 -1
  17. package/dist/chunks/dist-BCT3UNMA.js +2 -0
  18. package/dist/chunks/{host-33L5PX3J.js → host-V6ENYZAQ.js} +1 -1
  19. package/dist/chunks/{run-manager-OOMXDNDA.js → run-manager-ZOV7EKTZ.js} +1 -1
  20. package/dist/chunks/{utils-WCVYP3JY.js → utils-BEWYGEMB.js} +1 -1
  21. package/dist/index.d.ts +26 -26
  22. package/dist/index.js +2 -2
  23. package/dist/kodax_bootstrap.js +1 -1
  24. package/dist/kodax_cli.js +1309 -1303
  25. package/dist/runtime-worker.js +1334 -1328
  26. package/dist/sandbox-workspace-session.js +229 -229
  27. package/dist/sdk-a2a.d.ts +20 -18
  28. package/dist/sdk-a2a.js +9 -9
  29. package/dist/sdk-agent.d.ts +23 -22
  30. package/dist/sdk-coding.d.ts +65 -38
  31. package/dist/sdk-coding.js +1 -1
  32. package/dist/sdk-experimental-memory.d.ts +6 -6
  33. package/dist/sdk-llm.d.ts +8 -8
  34. package/dist/sdk-mcp.d.ts +4 -4
  35. package/dist/sdk-media.d.ts +1 -1
  36. package/dist/sdk-repl.d.ts +21 -21
  37. package/dist/sdk-repl.js +1 -1
  38. package/dist/sdk-runtime.d.ts +26 -19
  39. package/dist/sdk-runtime.js +1 -1
  40. package/dist/sdk-sandbox.js +1 -1
  41. package/dist/sdk-session.d.ts +10 -10
  42. package/dist/sdk-session.js +1 -1
  43. package/dist/sdk-skills.d.ts +2 -2
  44. package/dist/types-chunks/{base.d-vopO1rml.d.ts → base.d-JjF6aKsh.d.ts} +1 -1
  45. package/dist/types-chunks/{bash-prefix-extractor.d-DcHi4vz5.d.ts → bash-prefix-extractor.d-BLlhCRI-.d.ts} +33 -9
  46. package/dist/types-chunks/{capability-learning.d-CE1tm29C.d.ts → capability-learning.d-BAxy0mfx.d.ts} +1 -1
  47. package/dist/types-chunks/{capsule.d-CjNNucoy.d.ts → capsule.d-Cw4UlPTC.d.ts} +5 -5
  48. package/dist/types-chunks/{config.d-CJy1WENT.d.ts → config.d-CTPaqsD-.d.ts} +1 -1
  49. package/dist/types-chunks/{controller.d-C-GjOuPV.d.ts → controller.d-1tydJm7c.d.ts} +4 -4
  50. package/dist/types-chunks/{controller.d-BcUJlVOt.d.ts → controller.d-BvwWz6yP.d.ts} +1 -1
  51. package/dist/types-chunks/{cost-tracker.d-BeaenODW.d.ts → cost-tracker.d-MTAt6N7b.d.ts} +1 -1
  52. package/dist/types-chunks/{guardrail.d-BuI5uypW.d.ts → guardrail.d-DqWHIgt6.d.ts} +9 -9
  53. package/dist/types-chunks/{history-retrieval.d-BjJTJtKF.d.ts → history-retrieval.d-ia-4iJpw.d.ts} +2 -2
  54. package/dist/types-chunks/{integration-config.d-BNowXE8k.d.ts → integration-config.d-BHoiz-WZ.d.ts} +3 -3
  55. package/dist/types-chunks/{manager.d-B67TmPO1.d.ts → manager.d-D_1fqveb.d.ts} +3 -3
  56. package/dist/types-chunks/{oauth-login.d-6i-vidxv.d.ts → oauth-login.d-Cz9OpSmz.d.ts} +3 -3
  57. package/dist/types-chunks/{public-api.d-hYcrNiNt.d.ts → public-api.d-CMZa4JPa.d.ts} +6 -6
  58. package/dist/types-chunks/{repl.d-DSQdq_FY.d.ts → repl.d-Byu2osV-.d.ts} +7 -7
  59. package/dist/types-chunks/{resolver.d-RyPo99tB.d.ts → resolver.d-bKttRr1V.d.ts} +4 -4
  60. package/dist/types-chunks/{review-inbox.d-D2EtBlPt.d.ts → review-inbox.d-D3T-RxRs.d.ts} +3 -3
  61. package/dist/types-chunks/{run-manager.d-i7Q30bns.d.ts → run-manager.d-D0aKe12e.d.ts} +2 -2
  62. package/dist/types-chunks/{sdk-session-CAL2IZsM.d.ts → sdk-session-BEM7yvJB.d.ts} +3 -3
  63. package/dist/types-chunks/{shell-command-sets.d-BLjNQYPi.d.ts → shell-command-sets.d-_SHjU3KP.d.ts} +2 -2
  64. package/dist/types-chunks/{side-query.d-iH0P9ASy.d.ts → side-query.d-DNes6rHA.d.ts} +3 -3
  65. package/dist/types-chunks/{types-PHjfwebT.d.ts → types-D8OiIEwA.d.ts} +1 -1
  66. package/dist/types-chunks/{types.d-BSPlmJqf.d.ts → types.d-BEMcUOng.d.ts} +1 -1
  67. package/dist/types-chunks/{types.d-CqIcGQlc.d.ts → types.d-B_IFJlti.d.ts} +3 -3
  68. package/dist/types-chunks/{types.d-DNIzbJD_.d.ts → types.d-BqK7eZ5u.d.ts} +6 -6
  69. package/dist/types-chunks/{types.d-CK9A9rpP.d.ts → types.d-Cv09EdJR.d.ts} +1 -1
  70. package/dist/types-chunks/{types.d-BSFS8--Y.d.ts → types.d-DeokRBs7.d.ts} +2 -2
  71. package/dist/types-chunks/{utils.d-CeM3tG-E.d.ts → utils.d-0h1NTEsX.d.ts} +8 -8
  72. package/package.json +1 -1
  73. package/dist/chunks/argument-completer-LF5FUYJI.js +0 -2
  74. package/dist/chunks/chunk-OG4ML65E.js +0 -415
  75. package/dist/chunks/dist-VH56OGLV.js +0 -2
package/CHANGELOG.md CHANGED
@@ -6,7 +6,61 @@ All notable changes to this project will be documented in this file.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- <!-- Keep this section empty between releases. -->
9
+ ---
10
+
11
+ ## [0.7.89] - 2026-08-16
12
+
13
+ ### Fixed
14
+
15
+ - Managed compaction context replacement no longer makes a topology-valid
16
+ ordinary conversation ambiguous or exposes physical branch/copy duplicates.
17
+ Conversation page-cache v3 is invalidated so affected Sessions rebuild the
18
+ corrected projection after upgrade, and the incremental append fast path
19
+ passes managed-context envelopes through without projecting them, so
20
+ managed-heavy Sessions keep warm page caches.
21
+ - Managed-context transparency now keys on the `_source` tag alone (matching
22
+ the compaction stripping side) and also covers the lineage-unavailable
23
+ fallback projection.
24
+
25
+ ### Added
26
+
27
+ - Host Tools first-class visibility (`FEATURE_294`): host tools bound to a
28
+ run by lease now materialize into the agent tool table as run-scoped
29
+ definitions (name + schema) on both the SA and managed-agent paths, so
30
+ models see them without calling `mcp_search`. The cached capability
31
+ catalog gains a `## Host Capability Provider (run-bound)` line
32
+ advertising the bound server entry, tool names, and a content-hash
33
+ revision that stays stable across runs. The `runBoundHostTools`
34
+ capability bumps to `2` (`materializedAgentTools`).
35
+ - Resilient zero-service web search (`FEATURE_293`) now tries DuckDuckGo HTML,
36
+ Bing RSS, and Bing HTML in a bounded order, preserving truthful fallback
37
+ diagnostics, normalized direct URLs, freshness metadata, and isolated custom
38
+ endpoint behavior without adding a hosted service or runtime dependency.
39
+
40
+ ### Changed
41
+
42
+ - Materialized host tool dispatch routes through the run's capability
43
+ channel (`executeCapability('mcp', 'host:<leaseId>:<name>')`), reusing the
44
+ reverse-bridge timeout/idempotency/invocation state machine; results
45
+ render through the `mcp_call` retrieval pipeline. Host tool descriptors
46
+ map conservatively: `none` → readonly + plan-mode allowed,
47
+ `idempotent`/`non_idempotent` → mutates-state + plan-mode blocked
48
+ (fail-closed). Revoking a lease removes the materialized tools and the
49
+ catalog line from subsequent turns.
50
+ - Run bindings whose host tool names collide with registered tools are
51
+ rejected up front with `invalid_params` (before any host-tool run
52
+ record), and host tool lease ids must match
53
+ `[A-Za-z0-9][A-Za-z0-9_-]{0,127}` (colon stays reserved for capability
54
+ ids).
55
+ - Remote managed agents (A2A) can now authorize host capability ids: the
56
+ `authorizeMcp` id pattern accepts `host:` leases and role tool policy
57
+ carries host tool authorization semantics.
58
+
59
+ ### Documentation
60
+
61
+ - Updated the release checklist, product/architecture/design baselines,
62
+ feature tracker, public guides, `kodax_manual`, and v0.7.89 regression
63
+ guides for FEATURE_293, FEATURE_294, and Issue 293.
10
64
 
11
65
  ---
12
66
 
package/README.md CHANGED
@@ -692,6 +692,15 @@ the `glm-latest` alias. Coding Plan model IDs are sent verbatim without a
692
692
  synthetic context suffix, and GLM-5.3 `off` / `none` intent is lowered to
693
693
  `low`. See the [v0.7.88 release checklist](docs/release.md#v0788-release-preparation).
694
694
 
695
+ **v0.7.89 release:** this release ships Issue 293's topology-transparent managed
696
+ context projection and v4 conversation page cache, FEATURE_293's bounded
697
+ zero-service web search fallback (DuckDuckGo HTML → Bing RSS → Bing HTML), and
698
+ FEATURE_294's run-scoped Host Tools. Host tools appear in the leased run's model
699
+ surface and capability catalog, dispatch registry-first, revoke fail-closed, and
700
+ never enter the global registry or unrelated CLI runs. The web-search custom
701
+ endpoint remains isolated, and no shell/sandbox system code changed in this
702
+ release. See the [v0.7.89 release checklist](docs/release.md#v0789-release-preparation).
703
+
695
704
  **v0.7.87 GLM provider release:** `zhipu-coding` defaults to `glm-5.3` and
696
705
  retains `glm-5.2` as an explicit rollback route. `zai-coding` retained both
697
706
  models but defaulted to `glm-5.2` until the overseas Coding Plan rollout
package/README_CN.md CHANGED
@@ -249,6 +249,8 @@ v0.7.93。详见 [v0.7.83 发布清单](docs/release.md#v0783-release-preparatio
249
249
 
250
250
  **v0.7.88 发布**:本版本包含 Actor settlement convergence v2 持久化边界、受界定的启动/恢复工作、guardrail classifier reason 诊断,以及首次提交查询后自动收起过期 learning-recovery 提示的 REPL 修复。这些都是明确的 Runtime、Agent、LLM 与 REPL 系统代码改动。`zhipu-coding`、`zai-coding` 与 `ark-coding` 均默认使用 `glm-5.3`,同时保留 `glm-5.2` 作为显式路由;Ark 继续保留 `glm-latest` 别名。Coding Plan model ID 原样发送,不附加虚假的 context 后缀;GLM-5.3 的 `off` / `none` 会降为 `low`。详见 [v0.7.88 发布清单](docs/release.md#v0788-release-preparation)。
251
251
 
252
+ **v0.7.89 发布**:本版本包含 Issue 293 的 managed context 拓扑透明投影与 v4 conversation page cache、FEATURE_293 的有界零服务 web search fallback(DuckDuckGo HTML → Bing RSS → Bing HTML),以及 FEATURE_294 的 run-scoped Host Tools。绑定到 Run 的 Host Tools 会出现在该 Run 的模型工具表和 capability catalog 中,按 registry-first 规则 dispatch,撤销后 fail-closed,不进入全局 registry,也不会泄漏到其他 CLI Run。自定义 web-search endpoint 仍保持隔离;本版本没有修改 shell/sandbox 系统代码。详见 [v0.7.89 发布清单](docs/release.md#v0789-release-preparation)。
253
+
252
254
  **v0.7.87 GLM Provider 发布**:`zhipu-coding` 默认使用 `glm-5.3`,并保留 `glm-5.2` 作为显式回退路由。`zai-coding` 当时保留两个模型但默认使用 `glm-5.2`,直到 v0.7.88 的海外 Coding Plan 路由切换。Coding Plan model ID 原样发送,不附加 context 后缀。GLM-5.3 的思考不可关闭,因此 `off` / `none` 会降级为 `low`,不会发送上游不支持的 disabled-thinking 请求。Issue 256 剩余的 Worker owner lease 边界在 v0.7.87 后仍保持 Open,且本版本不指定新的替代目标。详见 [v0.7.87 发布清单](docs/release.md#v0787-release-preparation)。
253
255
 
254
256
  Windows workspace Shell 还会保留大小写不敏感的 `PATH`/`Path` 与 `PATHEXT` 约定,
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{Ka as g,Ma as h,Za as i,_a as j,a as c,sa as d,ta as e,ua as f,yc as k}from"./chunk-OG4ML65E.js";import"./chunk-O2ZV775M.js";import"./chunk-6MGD2A7Z.js";import"./chunk-W5RPVR3O.js";import"./chunk-PROPMIT4.js";import"./chunk-UNEC2WXJ.js";import{Jb as a,Kb as b}from"./chunk-72H6JNPN.js";import"./chunk-5247AKGN.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{Ka as g,Ma as h,Za as i,_a as j,a as c,sa as d,ta as e,ua as f,yc as k}from"./chunk-A63MGLH6.js";import"./chunk-O2ZV775M.js";import"./chunk-5UBP47VJ.js";import"./chunk-W5RPVR3O.js";import"./chunk-PROPMIT4.js";import"./chunk-UNEC2WXJ.js";import{Jb as a,Kb as b}from"./chunk-72H6JNPN.js";import"./chunk-5247AKGN.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{Ha as a,Ia as b}from"./chunk-CQHLFQSU.js";import"./chunk-SOIIBADK.js";import"./chunk-4Y6OSDZE.js";import"./chunk-S74F7MFN.js";import"./chunk-IFD6TUQU.js";import"./chunk-A63MGLH6.js";import"./chunk-O2ZV775M.js";import"./chunk-BOMSVUJS.js";import"./chunk-5UBP47VJ.js";import"./chunk-W5RPVR3O.js";import"./chunk-PROPMIT4.js";import"./chunk-UNEC2WXJ.js";import"./chunk-72H6JNPN.js";import"./chunk-5247AKGN.js";import"./chunk-ONUPGMER.js";export{a as ArgumentCompleter,b as createArgumentCompleter};