From 918dccfeddd77e79f22fa329f128598d4e8ee761 Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 25 May 2026 02:18:42 +0200 Subject: [PATCH] flow.js: drop dead `window.HiveTerminal` (#406 step 2 follow-up) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per @argus on PR #412: after the common.js step (#410) `appendText` uses the direct `termLinkify` import and `termCreate` is called directly in flow.js — nothing reads `window.HiveTerminal` anywhere. Drop the line + the stale comment alongside. --- frontend/packages/dashboard/src/flow.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/packages/dashboard/src/flow.js b/frontend/packages/dashboard/src/flow.js index 07cfddd..18f0a0f 100644 --- a/frontend/packages/dashboard/src/flow.js +++ b/frontend/packages/dashboard/src/flow.js @@ -11,18 +11,13 @@ // runs purely on the broker stream + an initial /api/state fetch // (compose autocomplete needs the live container list). -import { create as termCreate, linkify as termLinkify } from '@hive/shared/terminal.js'; +import { create as termCreate } from '@hive/shared/terminal.js'; import { $, el, Panel, NOTIF, appendLinkified, } from './common.js'; -// Common helpers (mdNode in common.js) probe `window.marked` at use -// time. Flow page doesn't actually call mdNode (it has no file-preview -// path); we set it anyway so any future preview-on-flow lands hot. -window.HiveTerminal = { create: termCreate, linkify: termLinkify }; - (() => { Panel.bind(); NOTIF.bind();