From 99895faefda550d1bcd5f3f92d6a61c420cf12dc Mon Sep 17 00:00:00 2001 From: "Orca (ecs-claude)" Date: Wed, 19 Aug 2026 04:39:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(console):=20deploy=20actions=20=E2=80=94?= =?UTF-8?q?=20+=20New=20fleet=20/=20+=20Add=20instance=20(slice=205/6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ADR #83 §7.5: both entry points share the compose→preview→deploy engine (compose_library_get/compose_preview/deploy_provision), reached as an action from the Fleets (7.2) and Fleet detail (7.3) screens instead of sitting behind a standing tab. + New fleet runs a net-new fleet-identity step first (7.5.1); + Add instance skips straight to Compose, inheriting the fleet it was opened from (7.5.2). fleets.toml is only ever mutated after a confirmed successful provision (new src/fleetToml.ts, pure text-level append — fleet_config_write has no partial-write primitive, so both flows read-modify-write the full file client-side, per the ADR). The existing Compose tab (library authoring) is left in place — Part C also calls for dropping it once deploy is action-driven, but where template/overlay authoring moves to isn't decided in the ADR; punting that to the slice 7 self-review rather than deleting a working surface speculatively. --- console/index.html | 72 ++++++++- console/src/deploy.ts | 275 ++++++++++++++++++++++++++++++++++ console/src/fleetToml.test.ts | 93 ++++++++++++ console/src/fleetToml.ts | 77 ++++++++++ console/src/main.ts | 45 +++++- console/src/render.test.ts | 14 +- console/src/render.ts | 9 +- console/src/styles.css | 49 ++++++ 8 files changed, 625 insertions(+), 9 deletions(-) create mode 100644 console/src/deploy.ts create mode 100644 console/src/fleetToml.test.ts create mode 100644 console/src/fleetToml.ts diff --git a/console/index.html b/console/index.html index af031f0..5d29f1e 100644 --- a/console/index.html +++ b/console/index.html @@ -36,7 +36,7 @@ alongside the Fleets/Fleet-detail/Agent-console drill-down, and stays visible at every depth — it is a conversation with the designated management agent, not with whichever fleet/agent is selected. --> -
+
+ +