kimi-code/packages/node-sdk/src
tpoisonooo 8057d30afb
fix(tower): support config.toml configuration (#3461)
* fix(agent-core-v2): rework tower mode enter failures and config-flag assembly

- IAgentTowerService.enter() returns a typed TowerEnterResult: the 4
  former silent failure points now carry their reason (not-main-agent /
  experiment-off / feature-not-assembled / owned-by-live-session with
  the owner session id + title); kap-server and node-sdk map each reason
  to a distinct SESSION_TOWER_MODE_INVALID message via
  towerEnterFailureMessage() instead of one misleading catch-all.
- Fix config-sourced [experimental] tower flag never assembling the
  tower feature: ConfigService seeds its state synchronously at
  construction with a best-effort readFileSync of the config document it
  owns, so the flag is already visible when TowerFeature's constructor
  runs during App-scope creation. No event machinery: a runtime config
  flip updates flag reads but does not re-run feature constructors — a
  restart is required, pinned by test. docs/flag.md + docs/features.md
  document the contract.
- Consolidated changeset for @moonshot-ai/kimi-code.

* fix(tower): release handler when teardown

---------

Co-authored-by: konghuanjun <konghuanjun@moonshot.ai>
2026-09-02 21:16:14 +08:00
..
v2 fix(secondary-model): stop rewriting the section when providers refresh or are removed (#3284) 2026-08-27 16:50:42 +08:00
auth.ts feat(kimi-code): support two OAuth login endpoints (#2862) 2026-08-20 11:24:02 +08:00
catalog.ts fix: consume the model metadata declared by the models.dev catalog (#2015) 2026-07-22 01:23:31 +08:00
config-rpc.ts
events.ts feat: support plugin slash commands (#1204) 2026-06-30 19:38:01 +08:00
index.ts fix(secondary-model): stop rewriting the section when providers refresh or are removed (#3284) 2026-08-27 16:50:42 +08:00
kimi-code-model-provider.ts feat: unify the host identity across OAuth, telemetry, and kap-server (#2382) 2026-07-30 13:45:41 +08:00
kimi-harness.ts feat(vscode): engine-backed @ file suggestions (#3453) 2026-09-02 14:16:20 +08:00
oauth-error.ts
rpc.ts feat(vscode): engine-backed @ file suggestions (#3453) 2026-09-02 14:16:20 +08:00
sdk-rpc-client-v2.ts fix(tower): support config.toml configuration (#3461) 2026-09-02 21:16:14 +08:00
sdk-rpc-client.ts feat(agent-core): unify the v1 MCP management plane (#2858) 2026-08-17 13:19:51 +08:00
session.ts feat(agent-core-v2): rework tower mode entry and surface worker deaths (#3399) 2026-09-01 18:03:13 +08:00
types.ts feat(vscode): engine-backed @ file suggestions (#3453) 2026-09-02 14:16:20 +08:00