kimi-code/packages/protocol/src
tpoisonooo c3bf6f9d2d
feat(agent-core-v2): rework tower mode entry and surface worker deaths (#3399)
Tower mode is now entered only manually — /tower on, or /tower
<base-branch> to also pin the local branch missions merge back into. The
agent can no longer enter it on its own: TowerInit refuses while the mode
is off and points at the slash command.

/tower <base-branch> is deterministic end to end: a missing base branch is
created from the current checkout (uncommitted changes committed onto it
as a labeled WIP snapshot), the checkout switches to it, and the tower
workspace is initialized immediately instead of relying on the model to
apply the base. With an existing workspace the tower rebases onto the
requested base when no missions are open and refuses naming the blocking
missions otherwise. The base rides the tower_mode.enter event into the new
tower.base state key and TowerInit falls back to it.

Tower agent deaths (failed/timed_out/killed/lost) are recorded in the
tower protocol: TowerStatus marks dead roster entries and warns about
missions whose owner died, with a resume hint. The tower console prompt
now requires a per-worker deliverables summary before TowerTeardown.

The session profile REST surface accepts tower_base so web clients can
turn tower mode on with /tower <base-branch> instead of sending the
argument as a prompt.

Co-authored-by: konghuanjun <konghuanjun@moonshot.ai>
2026-09-01 18:03:13 +08:00
..
__tests__ feat(auth): split model readiness from sign-in state in /api/v1/auth (#3293) 2026-08-28 15:53:56 +08:00
rest feat(auth): split model readiness from sign-in state in /api/v1/auth (#3293) 2026-08-28 15:53:56 +08:00
approval.ts feat(protocol): extract shared protocol package from agent-core (#612) 2026-06-10 14:03:38 +08:00
asyncapi.ts feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
display.ts feat(v2): land agent-core-v2 engine and kap-server behind experimental flag (#1441) 2026-07-12 21:44:04 +08:00
envelope.ts feat(v2): land agent-core-v2 engine and kap-server behind experimental flag (#1441) 2026-07-12 21:44:04 +08:00
error-codes.ts feat: engine-native image references via kimi-file:// media resolver (#2593) 2026-08-17 13:11:28 +08:00
events.ts feat(auth): split model readiness from sign-in state in /api/v1/auth (#3293) 2026-08-28 15:53:56 +08:00
file.ts feat(protocol): extract shared protocol package from agent-core (#612) 2026-06-10 14:03:38 +08:00
fs.ts feat(kap-server): add workspace fs:suggest file completion endpoint (#3019) 2026-08-18 11:53:48 +08:00
index.ts feat(server): add GUI store API mirroring localStorage (#1231) 2026-06-30 21:04:59 +08:00
message.ts feat(kap-server): support server-local path attachments (#3247) 2026-08-28 12:03:47 +08:00
modelCatalog.ts refactor!: overhaul thinking config and effort resolution (#1132) 2026-06-30 22:34:13 +08:00
pagination.ts feat(protocol): extract shared protocol package from agent-core (#612) 2026-06-10 14:03:38 +08:00
question.ts fix(web): stop auto-dismissing pending questions and approvals on a timeout (#1070) 2026-06-24 19:15:06 +08:00
request-id.ts feat(protocol): extract shared protocol package from agent-core (#612) 2026-06-10 14:03:38 +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
skill.ts feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
task.ts feat(kap-server): add task detach action to move foreground tasks to background (#3273) 2026-08-27 15:38:21 +08:00
time.ts feat(protocol): extract shared protocol package from agent-core (#612) 2026-06-10 14:03:38 +08:00
tool.ts feat(kap-server): expose per-tool active state in GET /api/v1/tools (#2005) 2026-07-21 19:23:15 +08:00
workspace.ts refactor: remove git detection from workspace wire and folder browse (#1787) 2026-07-16 21:05:19 +08:00
ws-control.ts feat(kap-server): global session work status, transcript subscribe_v2, and plan endpoint (#2094) 2026-07-23 18:48:25 +08:00