@galaxy-stack/blackhole-cli 2.0.0-alpha.18 → 2.0.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEhF,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9F,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAC9F,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC7G,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAC;I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AC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAC/N,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,CA6DhE;AACD,eAAO,MAAM,IAAI,06GA4ChB,CAAC"}
package/dist/options.js CHANGED
@@ -30,6 +30,37 @@ export function parseOptions(args) {
30
30
  result.research = true;
31
31
  continue;
32
32
  }
33
+ if (arg === "--flow-from" || arg === "--flow-until" || arg === "--flow-step-retries") {
34
+ const value = args[++i];
35
+ if (!value || value.startsWith("--"))
36
+ throw new Error(`${arg} requires a value.`);
37
+ if (arg === "--flow-from")
38
+ result.flowFrom = value;
39
+ else if (arg === "--flow-until")
40
+ result.flowUntil = value;
41
+ else {
42
+ const parsed = Number(value);
43
+ if (!Number.isSafeInteger(parsed) || parsed < 0 || parsed > 10)
44
+ throw new Error("--flow-step-retries must be an integer between 0 and 10.");
45
+ result.flowStepRetries = parsed;
46
+ }
47
+ continue;
48
+ }
49
+ if (arg === "--max-turns" || arg === "--run-minutes") {
50
+ const value = args[++i];
51
+ if (!value || value.startsWith("--"))
52
+ throw new Error(`${arg} requires a value.`);
53
+ const parsed = Number(value);
54
+ const maximum = arg === "--max-turns" ? 10_000 : 1_440;
55
+ if (!Number.isSafeInteger(parsed) || parsed < 1 || parsed > maximum) {
56
+ throw new Error(`${arg} must be an integer between 1 and ${maximum}.`);
57
+ }
58
+ if (arg === "--max-turns")
59
+ result.maxTurns = parsed;
60
+ else
61
+ result.runMinutes = parsed;
62
+ continue;
63
+ }
33
64
  if (arg === "--no-system-prompt-in-history") {
34
65
  result.noSystemPromptInHistory = true;
35
66
  continue;
@@ -114,6 +145,11 @@ Options: --version | -v (print the CLI version)
114
145
  --skills-index <path-or-url> --skills-dir <dir> --skills-public-key <pem> (skill marketplace; --skill-version <range>)
115
146
  --system-prompt-in-history | --no-system-prompt-in-history (force on/off; default follows the verified-model list)
116
147
  --research (enable Ollama web search/fetch; search_web stays lazy and is discovered via search_tools)
148
+ --flow-from <step-id> (resume a flow at a step: same session, workspace and state)
149
+ --flow-until <step-id> (stop after this step; pair with --flow-from to re-run a range)
150
+ --flow-step-retries <n> (extra attempts for a step that died on a transport error; default 1)
151
+ --max-turns <n> (model turns allowed in one run; the core default is 48)
152
+ --run-minutes <n> (host deadline for one run, default 15; bounds every tool call)
117
153
 
118
154
  TUI: Enter sends · Esc cancels · Ctrl+C exits · y/n answers a tool permission.
119
155
  Type / in the composer for the command menu (/help lists shortcuts and commands).
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,mBAAmB,EAAuB,MAAM,sBAAsB,CAAC;AAahF,MAAM,UAAU,YAAY,CAAC,IAAuB;IAClD,MAAM,MAAM,GAAe,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACrJ,IAAI,OAAO,GAAG,KAAK,C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,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,GAAG,EAAE,CAAC,CAAC;YAC9I,MAAM,CAAC,OAAO,GAAG,GAA4B,CAAC;YAAC,OAAO,GAAG,IAAI,CAAC;QAChE,CAAC;;YAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC;IACD,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC7C,IAAI,MAAM,CAAC,SAAS;QAAE,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC;AAChB,CAAC;AACD,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galaxy-stack/blackhole-cli",
3
- "version": "2.0.0-alpha.18",
3
+ "version": "2.0.0",
4
4
  "private": false,
5
5
  "description": "Galaxy Code CLI and terminal UI for the Galaxy agent runtime",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@assistant-ui/react-ink": "^0.0.44",
31
- "@galaxy-stack/ai-coder-core": "0.3.0-alpha.19",
31
+ "@galaxy-stack/ai-coder-core": "0.3.0",
32
32
  "@modelcontextprotocol/sdk": "^1.30.1",
33
33
  "ink": "7.1.1",
34
34
  "react": "^19.3.0",
@@ -47,6 +47,19 @@ Read `references/framework-notes.md` for per-framework gotchas before writing co
47
47
  - **React Native**: NativeWind classes, no web date libraries
48
48
  - **Flutter**: Material 3 widgets, `Galaxy` prefix
49
49
 
50
+ ## Verification
51
+
52
+ Prove a UI change with bounded tools, not with a running server:
53
+
54
+ - `validate_project` with `checks: ["build"]` (the Vite build) plus `lint`/`typecheck`
55
+ for the packages you touched, and `nebula doctor` for alias, dependency and token
56
+ wiring.
57
+ - Do **not** start `vite`/`npm run dev` as a check. A dev server never exits, produces
58
+ no completion evidence, and the log or probe file written for it is an unreviewed
59
+ write that invalidates the validation it was meant to support. Start a server only
60
+ when the task explicitly asks to exercise the running app, through the bounded
61
+ session capability, and stop it before the final validation.
62
+
50
63
  ## Styling
51
64
 
52
65
  All components use Tailwind + CSS variables (design tokens). Read `references/tailwind.md` for v3/v4 setup. Theme presets: `nebula init --theme violet|green|blue|default`.
@@ -18,13 +18,73 @@ Orbit is a NestJS-style backend framework for Bun. Concept mapping from NestJS:
18
18
  ## Project rules
19
19
 
20
20
  1. Runtime is Bun. Use `bun` instead of `node`/`npm`/`pnpm` for all commands:
21
- `bun install`, `bun run dev`, `bun test`.
21
+ `bun install`, `bun run dev` (a developer server for a human, never a check),
22
+ `bun test`.
22
23
  2. Entry point: `OrbitFactory.create(AppModule)` then `app.listen(3000)`.
23
24
  3. Every feature is a `@Module({ controllers, providers, exports })` class.
24
25
  4. Providers are `@Injectable()` classes injected via constructor.
25
26
  5. Validate all external input with Zod schemas through ValidationPipe.
26
27
  6. Tests run with `bun test`; e2e tests boot a real HTTP server: `OrbitFactory.create(AppModule, { port: 0 })` → `app.listen(0)` → `fetch(\`http://127.0.0.1:${app.port}/…\`)` — `OrbitApplication` has no public `handle()`.
27
28
 
29
+ ## Validation (Zod)
30
+
31
+ `@galaxy-stack/orbit-validation` re-exports the pipe types that `orbit-core`
32
+ already ships. Zod v4 is what the CLI installs, and both pipes accept v4 and v3
33
+ error shapes.
34
+
35
+ - Simple single-parameter handler — bind the schema to the pipe:
36
+
37
+ ```ts
38
+ import { Controller, Post, ZodValidationPipe } from '@galaxy-stack/orbit-core';
39
+ import { Body, UsePipes } from '@galaxy-stack/orbit-common';
40
+ import { z } from 'zod';
41
+
42
+ const CreateMemberSchema = z.object({ name: z.string().min(2), email: z.string().email() });
43
+
44
+ @Controller('members')
45
+ export class MembersController {
46
+ @Post()
47
+ @UsePipes(new ZodValidationPipe(CreateMemberSchema))
48
+ create(@Body() dto: z.infer<typeof CreateMemberSchema>) { return this.members.create(dto); }
49
+ }
50
+ ```
51
+
52
+ - **Do not** write `@Body(new ZodValidationPipe(...))`: `@Body` only accepts a
53
+ field name (`@Body('name')`), not a pipe.
54
+ - `@UsePipes` is **method/class level** and runs for every argument of the
55
+ method. When a handler mixes a validated body with `@Param`/`@Query` strings,
56
+ write one small scoped pipe that checks `metadata.type`:
57
+
58
+ ```ts
59
+ import { BadRequestException, type PipeTransform } from '@galaxy-stack/orbit-core';
60
+ import { type ArgumentMetadata } from '@galaxy-stack/orbit-common';
61
+
62
+ class BodyOnlyPipe implements PipeTransform {
63
+ constructor(private readonly schema: { safeParse(v: unknown): any }) {}
64
+ transform(value: unknown, metadata: ArgumentMetadata) {
65
+ if (metadata.type !== 'body') return value; // leave params alone
66
+ const result = this.schema.safeParse(value);
67
+ if (!result.success) {
68
+ const issues = result.error?.issues ?? result.error?.errors ?? [];
69
+ throw new BadRequestException('Validation failed: ' +
70
+ issues.map((i: any) => `${i.path?.join('.') || 'value'}: ${i.message}`).join('; '));
71
+ }
72
+ return result.data;
73
+ }
74
+ }
75
+ ```
76
+
77
+ - `createZodDto(schema)` + a class-level `ValidationPipe` is **not reliable on
78
+ Bun**: it reads the parameter metatype from `design:paramtypes`, which Bun's
79
+ transpiler does not emit, so validation silently does not run. Prefer
80
+ `ZodValidationPipe` (or the scoped pipe above).
81
+ - Validation errors surface as `400 Bad Request`; unknown ids use
82
+ `NotFoundException` for `404`.
83
+
84
+ ## Editing files
85
+
86
+ Use `edit_file` with a unique `oldText`/`newText` pair; add surrounding lines when the match is ambiguous. The edit precondition hash is optional — omit it and rely on the oldText match. Never reuse a content hash from an earlier turn or from compacted context; re-read the file if you need its current state.
87
+
28
88
  ## Scaffolding and dependency wiring
29
89
 
30
90
  Use the Orbit CLI; do not hand-wire modules or add framework packages manually:
@@ -60,7 +120,8 @@ export class UserModule {}
60
120
  ## Controller template
61
121
 
62
122
  ```ts
63
- import { Controller, Get, Post, Body, Param, HttpCode, UseGuards } from '@galaxy-stack/orbit-core';
123
+ import { Controller, Get, Post } from '@galaxy-stack/orbit-core';
124
+ import { Body, Param, HttpCode, UseGuards } from '@galaxy-stack/orbit-common';
64
125
 
65
126
  @Controller('users')
66
127
  export class UserController {
@@ -76,6 +137,44 @@ export class UserController {
76
137
  }
77
138
  ```
78
139
 
140
+ > **Import sources matter.** Route/method decorators (`Controller`, `Get`, `Post`,
141
+ > `Put`, `Patch`, `Delete`, `Module`, `Injectable`) and the app factory
142
+ > (`OrbitFactory`) come from `@galaxy-stack/orbit-core`. Parameter decorators
143
+ > (`Body`, `Param`, `Query`, `Headers`, `Req`, `Res`), method decorators
144
+ > (`HttpCode`, `Header`, `UsePipes`, `UseGuards`, `UseInterceptors`, `Catch`) and
145
+ > the `Transform`/`ToInt`/`Trim` helpers come from `@galaxy-stack/orbit-common`.
146
+ > Importing a `Body`/`Param` from `orbit-core` throws
147
+ > `Export named 'Body' not found` at runtime.
148
+
149
+ ## Route prefixing and versioning
150
+
151
+ - A route prefix belongs to the controller path: `@Controller('api/v1/members')`.
152
+ Orbit has **no** `app.setGlobalPrefix(...)` — that API is NestJS, not Orbit.
153
+ Do not search `node_modules` for it; a missing global-prefix helper means the
154
+ prefix goes on each controller (or on a shared base path constant).
155
+ - Versioned APIs use the built-in manager, exported from `@galaxy-stack/orbit-core`
156
+ (root entry re-exports `./versioning/versioning`):
157
+
158
+ ```ts
159
+ import { Version, VERSION_NEUTRAL, versioningManager } from '@galaxy-stack/orbit-core';
160
+
161
+ // once at bootstrap, before app.listen()
162
+ versioningManager.configure({ type: 'uri', defaultVersion: '1', prefix: 'v' });
163
+
164
+ @Controller('members')
165
+ export class MemberController {
166
+ @Get() @Version('1') list() {}
167
+ @Get('health') @Version(VERSION_NEUTRAL) health() {}
168
+ }
169
+ ```
170
+
171
+ `type` is `'uri' | 'header' | 'media' | 'custom'`; `prefix: false` turns the URI
172
+ segment off; `header`/`key`/`extractor` tune the non-URI strategies.
173
+ - Checking the installed API version: `read_file` on a specific
174
+ `package.json`, `README.md` or `*.d.ts` inside `node_modules` is allowed.
175
+ Grep/glob across the whole dependency tree is refused by the host — read the one
176
+ declaration file instead of scanning the package.
177
+
79
178
  ## GraphQL template
80
179
 
81
180
  ```ts
@@ -106,8 +205,14 @@ GraphQLModule.forRoot({
106
205
 
107
206
  ## Verification checklist (run before declaring done)
108
207
 
109
- 1. `bun test` passes.
110
- 2. App boots: `bun run dev` shows no startup errors.
208
+ 1. `validate_project` passes for the packages you touched (it runs the declared
209
+ `bun test`/build scripts).
210
+ 2. A dev server is not a verification step. `bun run dev` never exits, produces no
211
+ completion evidence, and the logs or probe files it leaves behind are
212
+ unreviewed writes that invalidate the validation they were meant to support.
213
+ Start one only when the task explicitly asks to exercise a running app —
214
+ through the bounded session capability — and stop it before the final
215
+ validation.
111
216
  3. Mutating routes have validation + auth.
112
217
  4. GraphQL module has security limits when used.
113
218
  5. No secrets in source; config comes from ConfigModule/env.
@@ -6,6 +6,9 @@ window.__ModuleLoader__.load({
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let react = require("react");
9
+ /* UI primitives come from the renderer bundle; a missing module only costs the icon. */
10
+ let primitives = null;
11
+ try { primitives = require("@deepseek-ai/dsh-client-ui-primitives"); } catch (error) { primitives = null; }
9
12
  const LOGO = __LOGO_DATA_URI__;
10
13
  const VI_LOCALES = __VI_LOCALES__;
11
14
  const EN_OVERRIDES = {
@@ -180,6 +183,136 @@ window.__ModuleLoader__.load({
180
183
  style: { height: "28px", borderRadius: "14px", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))", background: "transparent", color: "var(--dsw-alias-label-tertiary, inherit)", font: "inherit", fontSize: "12px", padding: "0 8px", cursor: "pointer" }
181
184
  }, options);
182
185
  }
186
+ /** Locale namespace owned by the Galaxy session tools. */
187
+ const GBH_SESSIONS_NS = "gbh.sessions";
188
+ /** English dictionary for the session tools; Vietnamese lives in vi.locales.json. */
189
+ const GBH_SESSIONS_EN = {
190
+ "action.delete": "Delete session",
191
+ "dialog.title": "Delete this session?",
192
+ "dialog.body": "The session log and its projection cache are removed from the DSH home. This cannot be undone.",
193
+ "dialog.trash": "Artifacts are moved to .trash/sessions first, so they can still be recovered by hand.",
194
+ "dialog.cascade": "This session has {count} descendant session(s). Deleting it also deletes them.",
195
+ "dialog.running": "This session is running. Stop it before deleting.",
196
+ "dialog.cancel": "Cancel",
197
+ "dialog.confirm": "Delete session",
198
+ "dialog.confirmCascade": "Delete {count} sessions",
199
+ "dialog.busy": "Deleting…",
200
+ "dialog.failed": "Could not delete the session.",
201
+ "dialog.done": "Session deleted. Reloading…"
202
+ };
203
+ /** Same-origin Host base with the connection carrier\u0027s null-origin fallback. */
204
+ function gbhHostBase() {
205
+ var origin = globalThis.location && globalThis.location.origin;
206
+ return origin !== undefined && origin !== null && origin !== "null" ? origin : "http://dsh.internal";
207
+ }
208
+ /** Delete one session through the Galaxy host route; resolves to the parsed JSON body. */
209
+ function gbhDeleteSession(sessionId, cascade) {
210
+ return fetch(gbhHostBase() + "/api/galaxy/session.delete", {
211
+ method: "POST",
212
+ headers: { "content-type": "application/json" },
213
+ credentials: "same-origin",
214
+ body: JSON.stringify({ sessionId: sessionId, cascade: cascade === true, trash: true })
215
+ }).then(function (response) {
216
+ return response.json().then(function (body) { return body || {}; }, function () { return {}; });
217
+ }).catch(function (error) { return { ok: false, code: "network", message: String(error) }; });
218
+ }
219
+ /** Modal confirmation built with plain DOM, matching the Galaxy key dialog style. */
220
+ function gbhConfirmDeleteSession(sessionId, t, onFinished) {
221
+ if (typeof document === "undefined") return;
222
+ if (document.getElementById("gbh-delete-session-dialog")) return;
223
+ var overlay = document.createElement("div");
224
+ overlay.id = "gbh-delete-session-dialog";
225
+ overlay.style.cssText = "position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;font-family:system-ui,-apple-system,Segoe UI,sans-serif";
226
+ var card = document.createElement("div");
227
+ card.style.cssText = "background:var(--dsw-alias-bg-module-platform,#1f1f24);color:var(--dsw-alias-label-primary,#f2f2f2);padding:22px;border-radius:14px;width:min(460px,92vw);box-shadow:0 18px 50px rgba(0,0,0,.45)";
228
+ var title = document.createElement("div");
229
+ title.textContent = t("dialog.title");
230
+ title.style.cssText = "font-size:17px;font-weight:600;margin-bottom:8px";
231
+ var body = document.createElement("div");
232
+ body.textContent = t("dialog.body");
233
+ body.style.cssText = "font-size:13px;line-height:20px;opacity:.82;margin-bottom:8px";
234
+ var note = document.createElement("div");
235
+ note.textContent = t("dialog.trash");
236
+ note.style.cssText = "font-size:12px;line-height:18px;opacity:.62;margin-bottom:14px";
237
+ var errorEl = document.createElement("div");
238
+ errorEl.style.cssText = "color:#ff6b6b;font-size:12px;line-height:18px;min-height:16px;margin-bottom:10px";
239
+ var actions = document.createElement("div");
240
+ actions.style.cssText = "display:flex;justify-content:flex-end;gap:10px";
241
+ var cancel = document.createElement("button");
242
+ cancel.type = "button";
243
+ cancel.textContent = t("dialog.cancel");
244
+ cancel.style.cssText = "height:34px;padding:0 14px;border-radius:9px;border:1px solid rgba(127,127,127,.4);background:transparent;color:inherit;cursor:pointer";
245
+ var confirm = document.createElement("button");
246
+ confirm.type = "button";
247
+ confirm.textContent = t("dialog.confirm");
248
+ confirm.style.cssText = "height:34px;padding:0 16px;border-radius:9px;border:none;background:#e5484d;color:#fff;cursor:pointer;font-weight:600";
249
+ cancel.onclick = function () { overlay.remove(); onFinished(); };
250
+ confirm.onclick = function () { run(false); };
251
+ function finish(body) {
252
+ confirm.disabled = true;
253
+ errorEl.style.color = "var(--dsw-alias-label-secondary,#9aa0a6)";
254
+ errorEl.textContent = t("dialog.done");
255
+ if (body && body.deleted && body.deleted.length > 0) {
256
+ setTimeout(function () { try { location.reload(); } catch (e) { overlay.remove(); onFinished(); } }, 600);
257
+ return;
258
+ }
259
+ overlay.remove();
260
+ onFinished();
261
+ }
262
+ function run(cascade) {
263
+ confirm.disabled = true;
264
+ cancel.disabled = true;
265
+ errorEl.style.color = "var(--dsw-alias-label-secondary,#9aa0a6)";
266
+ errorEl.textContent = t("dialog.busy");
267
+ gbhDeleteSession(sessionId, cascade).then(function (body) {
268
+ if (body && body.ok === true) { finish(body); return; }
269
+ var code = body && body.code ? body.code : "error";
270
+ confirm.disabled = false;
271
+ cancel.disabled = false;
272
+ errorEl.style.color = "#ff6b6b";
273
+ if (code === "session/has-children") {
274
+ var count = body && body.children ? body.children.length : 0;
275
+ note.textContent = t("dialog.cascade").split("{count}").join(String(count));
276
+ confirm.textContent = t("dialog.confirmCascade").split("{count}").join(String(count));
277
+ confirm.onclick = function () { run(true); };
278
+ errorEl.textContent = "";
279
+ return;
280
+ }
281
+ if (code === "session/running") { errorEl.textContent = t("dialog.running"); return; }
282
+ errorEl.textContent = (body && body.message) || t("dialog.failed");
283
+ });
284
+ }
285
+ actions.append(cancel, confirm);
286
+ card.append(title, body, note, errorEl, actions);
287
+ overlay.append(card);
288
+ document.body.append(overlay);
289
+ setTimeout(function () { try { confirm.focus(); } catch (e) { /* ignore */ } }, 30);
290
+ }
291
+ /** Trash button seated in the Session header utilities list. */
292
+ function GbhDeleteSessionAction(props) {
293
+ var sessionId = props.sessionId;
294
+ if (typeof sessionId !== "string" || sessionId.length === 0) return null;
295
+ var busyState = react.useState(false);
296
+ var busy = busyState[0];
297
+ var setBusy = busyState[1];
298
+ var t = props.t;
299
+ var label = t("action.delete");
300
+ var icon = null;
301
+ try { icon = primitives && primitives.IconTrashOutline16 ? react_jsx_runtime.jsx(primitives.IconTrashOutline16, {}) : null; } catch (e) { icon = null; }
302
+ return react_jsx_runtime.jsx("button", {
303
+ type: "button",
304
+ title: label,
305
+ "aria-label": label,
306
+ disabled: busy,
307
+ onClick: function () {
308
+ if (busy) return;
309
+ setBusy(true);
310
+ gbhConfirmDeleteSession(sessionId, t, function () { setBusy(false); });
311
+ },
312
+ style: { display: "inline-flex", alignItems: "center", justifyContent: "center", width: "28px", height: "28px", borderRadius: "8px", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))", background: "transparent", color: "var(--dsw-alias-label-tertiary, inherit)", cursor: busy ? "default" : "pointer", padding: "0" },
313
+ children: icon === null ? label : icon
314
+ });
315
+ }
183
316
  const inject = ["slots", "locale", "remote", "remote.credentials", "modelDirectories", "sessions"];
184
317
  function apply(ctx) {
185
318
  ctx.slots.inject("sidebar.brand.mark", () => ctx.slots.inject("sidebar.brand.name", function* () {
@@ -187,6 +320,16 @@ window.__ModuleLoader__.load({
187
320
  yield ctx.slots.register({ name: "sidebar.brand.name" }, GbhBrandName);
188
321
  }));
189
322
  ctx.slots.inject("conversation.hero.brand.mark", () => ctx.slots.register({ name: "conversation.hero.brand.mark" }, GbhBrandMark));
323
+ /* Session tools: delete the open session through the Galaxy Host route. */
324
+ ctx.slots.inject("conversation.session.header.utilities", function () {
325
+ return ctx.slots.register({
326
+ name: "conversation.session.header.utilities",
327
+ id: "gbh-session-delete",
328
+ order: 50,
329
+ locale: GBH_SESSIONS_NS,
330
+ inject: function () { return {}; }
331
+ }, GbhDeleteSessionAction);
332
+ });
190
333
  try {
191
334
  ctx.locale.addLanguage({ id: "vi", label: "Tiếng Việt", fallback: "en" });
192
335
  } catch (error) {
@@ -195,12 +338,19 @@ window.__ModuleLoader__.load({
195
338
  const namespaces = Object.keys(VI_LOCALES);
196
339
  for (let i = 0; i < namespaces.length; i += 1) {
197
340
  const ns = namespaces[i];
341
+ /* The session tools namespace registers both dictionaries in one call below. */
342
+ if (ns === GBH_SESSIONS_NS) continue;
198
343
  try {
199
344
  ctx.locale.register(ns, "vi", VI_LOCALES[ns]);
200
345
  } catch (error) {
201
346
  /* a namespace may already carry vi on a reload */
202
347
  }
203
348
  }
349
+ try {
350
+ ctx.locale.register(GBH_SESSIONS_NS, { en: GBH_SESSIONS_EN, vi: VI_LOCALES[GBH_SESSIONS_NS] });
351
+ } catch (error) {
352
+ /* the namespace may already be registered on a plugin reload */
353
+ }
204
354
  /* Replace the shipped internal-testing notice with the Galaxy description,
205
355
  including the English copy, by editing the registered dictionaries. */
206
356
  try {