@pellux/goodvibes-agent 1.0.8 → 1.0.9

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Product-facing release notes for GoodVibes Agent.
4
4
 
5
+ ## 1.0.9 - 2026-06-03
6
+
7
+ - Expose TTS provider and voice pickers through the model-visible harness, make /help and /commands use the live slash-command registry, and refresh package-facing docs and focused coverage for the current 1.0.x surface map.
8
+
5
9
  ## 1.0.8 - 2026-06-03
6
10
 
7
11
  - Added model-visible UI surface entries for the panel-picker compatibility route and the security, knowledge, and subscription operator surfaces.
package/README.md CHANGED
@@ -66,7 +66,7 @@ Use the workspace as the primary product surface:
66
66
 
67
67
  Inside the Agent workspace, press `/` to search every workspace action by name, category, command, or detail. This is the primary discovery path for product actions; slash commands and CLI subcommands remain power-user/scriptable mirrors.
68
68
 
69
- The model has the same harness map through `agent_harness`: it can list Agent workspace actions, list built-in panels and their workspace routes, inspect modal/overlay/picker UI surfaces, list top-level CLI mirrors, inspect fixed shortcuts and configurable keybindings, list slash commands, inspect command policy metadata, inspect model tool definitions, inspect or change Agent settings with confirmation, run concrete workspace or slash-command mirrors with confirmation, and report connected-host capability and live readiness posture. CLI mirror modes are read-only catalog and parser inspection; inside the main conversation, the model uses the returned preferred model tool, workspace action, setting mode, or confirmed slash-command mirror instead of launching hidden nested CLI processes. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, context, bookmarks, model/provider pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose fixed runtime/editor controls plus the live resolved keybinding table; `set_keybinding` and `reset_keybinding` write the same `keybindings.json` file the user edits and require confirmation. Workspace action discovery can inline editor field schemas with `includeParameters:true`; profile editors use the current starter-template inventory, and routine schedule editors can prefill a selected local routine from `recordId`. Selection-based local workspace actions accept a local `recordId` so the model can use the same note promotion and local registry flows as the TUI. The `connected_host` report includes route families, allowed capabilities, blocked lifecycle/non-Agent surfaces, and availability for the first-class Agent tools. The `connected_host_status` report performs a read-only live check of the connected-host status route and the isolated Agent Knowledge status route, reports SDK compatibility, token posture, endpoint bindings, route readiness, and actionable findings, and still refuses connected-host lifecycle control. The model uses those first-class tools for product workflows where they exist, such as Agent Knowledge, local memory/notes/personas/skills/routines, channel sends, notifications, reminders, media generation, work plans, and connected-host operator actions.
69
+ The model has the same harness map through `agent_harness`: it can list Agent workspace actions, list built-in panels and their workspace routes, inspect modal/overlay/picker UI surfaces, list top-level CLI mirrors, inspect fixed shortcuts and configurable keybindings, list slash commands, inspect command policy metadata, inspect model tool definitions, inspect or change Agent settings with confirmation, run concrete workspace or slash-command mirrors with confirmation, and report connected-host capability and live readiness posture. CLI mirror modes are read-only catalog and parser inspection; inside the main conversation, the model uses the returned preferred model tool, workspace action, setting mode, or confirmed slash-command mirror instead of launching hidden nested CLI processes. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, context, bookmarks, model/provider pickers, TTS provider/voice pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose fixed runtime/editor controls plus the live resolved keybinding table; `set_keybinding` and `reset_keybinding` write the same `keybindings.json` file the user edits and require confirmation. Workspace action discovery can inline editor field schemas with `includeParameters:true`; profile editors use the current starter-template inventory, and routine schedule editors can prefill a selected local routine from `recordId`. Selection-based local workspace actions accept a local `recordId` so the model can use the same note promotion and local registry flows as the TUI. The `connected_host` report includes route families, allowed capabilities, blocked lifecycle/non-Agent surfaces, and availability for the first-class Agent tools. The `connected_host_status` report performs a read-only live check of the connected-host status route and the isolated Agent Knowledge status route, reports SDK compatibility, token posture, endpoint bindings, route readiness, and actionable findings, and still refuses connected-host lifecycle control. The model uses those first-class tools for product workflows where they exist, such as Agent Knowledge, local memory/notes/personas/skills/routines, channel sends, notifications, reminders, media generation, work plans, and connected-host operator actions.
70
70
 
71
71
  The setup workspace surfaces discovered Agent-local persona, skill, and routine markdown files so day-one setup can import useful behavior instead of starting from blank records. It can also create one initial scratchpad note, local persona, skill, and routine directly during first-run setup; those records stay in Agent-local registries and never write to default knowledge or non-Agent segments.
72
72
 
@@ -389257,23 +389257,6 @@ function createSchema2(db) {
389257
389257
  `);
389258
389258
  db.run(`CREATE INDEX IF NOT EXISTS idx_knowledge_schedules_job_id ON knowledge_schedules(job_id)`);
389259
389259
  }
389260
- function getKnowledgeSchemaStatements() {
389261
- const statements = [];
389262
- createSchema2({
389263
- run(sql) {
389264
- const normalized = sql.trim();
389265
- if (normalized.length > 0)
389266
- statements.push(normalized);
389267
- }
389268
- });
389269
- return statements;
389270
- }
389271
- function renderKnowledgeSchemaSql() {
389272
- return `${getKnowledgeSchemaStatements().map((statement) => statement.endsWith(";") ? statement : `${statement};`).join(`
389273
-
389274
- `)}
389275
- `;
389276
- }
389277
389260
  function rowObject(columns, values2) {
389278
389261
  return Object.fromEntries(columns.map((column, index) => [column, values2[index]]));
389279
389262
  }
@@ -702611,9 +702594,6 @@ var init_ingest = __esm(() => {
702611
702594
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/browser-history/index.js
702612
702595
  var init_browser_history = __esm(() => {
702613
702596
  init_ingest();
702614
- init_discover();
702615
- init_readers();
702616
- init_paths2();
702617
702597
  });
702618
702598
 
702619
702599
  // node_modules/graphql/jsutils/devAssert.mjs
@@ -720253,7 +720233,6 @@ var init_semantic = __esm(() => {
720253
720233
  init_llm();
720254
720234
  init_gap_repair();
720255
720235
  init_service4();
720256
- init_self_improvement();
720257
720236
  });
720258
720237
 
720259
720238
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/home-graph/helpers.js
@@ -724222,40 +724201,8 @@ var init_map_view = __esm(() => {
724222
724201
  });
724223
724202
 
724224
724203
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/home-graph/types.js
724225
- var HOME_GRAPH_NODE_KINDS, HOME_GRAPH_RELATIONS, HOME_GRAPH_CAPABILITIES;
724204
+ var HOME_GRAPH_CAPABILITIES;
724226
724205
  var init_types6 = __esm(() => {
724227
- HOME_GRAPH_NODE_KINDS = [
724228
- "ha_home",
724229
- "ha_entity",
724230
- "ha_device",
724231
- "ha_area",
724232
- "ha_automation",
724233
- "ha_script",
724234
- "ha_scene",
724235
- "ha_label",
724236
- "ha_integration",
724237
- "ha_room",
724238
- "ha_device_passport",
724239
- "ha_maintenance_item",
724240
- "ha_troubleshooting_case",
724241
- "ha_purchase",
724242
- "ha_network_node"
724243
- ];
724244
- HOME_GRAPH_RELATIONS = [
724245
- "controls",
724246
- "located_in",
724247
- "belongs_to_device",
724248
- "has_manual",
724249
- "has_receipt",
724250
- "has_warranty",
724251
- "has_issue",
724252
- "fixed_by",
724253
- "uses_battery",
724254
- "connected_via",
724255
- "part_of_network",
724256
- "mentioned_by",
724257
- "source_for"
724258
- ];
724259
724206
  HOME_GRAPH_CAPABILITIES = [
724260
724207
  "knowledge-space-isolation",
724261
724208
  "snapshot-sync",
@@ -725662,7 +725609,6 @@ var init_service5 = __esm(() => {
725662
725609
  var init_home_graph = __esm(() => {
725663
725610
  init_service5();
725664
725611
  init_extension();
725665
- init_types6();
725666
725612
  });
725667
725613
 
725668
725614
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/store-refinement.js
@@ -727990,14 +727936,10 @@ var init_service6 = __esm(() => {
727990
727936
  var init_project_planning = __esm(() => {
727991
727937
  init_service6();
727992
727938
  init_helpers3();
727993
- init_readiness();
727994
727939
  });
727995
727940
 
727996
727941
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/persistence.js
727997
- var init_persistence = __esm(() => {
727998
- init_store_schema();
727999
- init_store_load();
728000
- });
727942
+ var init_persistence = () => {};
728001
727943
 
728002
727944
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/projections.js
728003
727945
  class KnowledgeProjectionService {
@@ -731505,21 +731447,21 @@ var init_service7 = __esm(() => {
731505
731447
  var exports_knowledge = {};
731506
731448
  __export(exports_knowledge, {
731507
731449
  withKnowledgeSpace: () => withKnowledgeSpace,
731508
- uniqKnowledgeValues: () => uniq2,
731509
- stabilizeKnowledgeText: () => stableText,
731510
- runKnowledgeSemanticSelfImprovement: () => runKnowledgeSemanticSelfImprovement,
731450
+ uniqKnowledgeValues: () => uniq3,
731451
+ stabilizeKnowledgeText: () => stableText2,
731452
+ runKnowledgeSemanticSelfImprovement: () => runKnowledgeSemanticSelfImprovement2,
731511
731453
  resolveProjectPlanningSpace: () => resolveProjectPlanningSpace,
731512
- resolveKnowledgeDbPathFromControlPlaneDir: () => resolveKnowledgeDbPathFromControlPlaneDir,
731454
+ resolveKnowledgeDbPathFromControlPlaneDir: () => resolveKnowledgeDbPathFromControlPlaneDir2,
731513
731455
  renderPacket: () => renderPacket,
731514
731456
  renderKnowledgeSchemaSql: () => renderKnowledgeSchemaSql,
731515
731457
  renderKnowledgeMap: () => renderKnowledgeMap,
731516
731458
  readKnowledgeSearchText: () => readKnowledgeSearchText,
731517
- readBrowserKnowledgeProfile: () => readBrowserKnowledgeProfile,
731459
+ readBrowserKnowledgeProfile: () => readBrowserKnowledgeProfile2,
731518
731460
  projectPlanningSourceId: () => projectPlanningSourceId,
731519
731461
  projectPlanningProjectIdFromPath: () => projectPlanningProjectIdFromPath,
731520
731462
  projectPlanningCanonicalUri: () => projectPlanningCanonicalUri,
731521
731463
  projectKnowledgeSpaceId: () => projectKnowledgeSpaceId,
731522
- parseKnowledgeJsonValue: () => parseJsonValue,
731464
+ parseKnowledgeJsonValue: () => parseJsonValue2,
731523
731465
  normalizeProjectId: () => normalizeProjectId,
731524
731466
  normalizeKnowledgeSpaceId: () => normalizeKnowledgeSpaceId,
731525
731467
  normalizeHomeAssistantInstallationId: () => normalizeHomeAssistantInstallationId,
@@ -731527,12 +731469,12 @@ __export(exports_knowledge, {
731527
731469
  materializeGeneratedKnowledgeProjection: () => materializeGeneratedKnowledgeProjection,
731528
731470
  looksLikeRawPdfPayload: () => looksLikeRawPdfPayload,
731529
731471
  looksBinaryLikeText: () => looksBinaryLikeText,
731530
- loadKnowledgeStoreSnapshot: () => loadKnowledgeStoreSnapshot,
731472
+ loadKnowledgeStoreSnapshot: () => loadKnowledgeStoreSnapshot2,
731531
731473
  listGeneratedKnowledgePages: () => listGeneratedKnowledgePages,
731532
- listBrowserKinds: () => listBrowserKinds,
731474
+ listBrowserKinds: () => listBrowserKinds2,
731533
731475
  knowledgeSpaceMetadata: () => knowledgeSpaceMetadata,
731534
731476
  knowledgePageSourceWeight: () => knowledgePageSourceWeight,
731535
- knowledgeNowMs: () => nowMs,
731477
+ knowledgeNowMs: () => nowMs2,
731536
731478
  knowledgeExtractionNeedsRefresh: () => knowledgeExtractionNeedsRefresh,
731537
731479
  isUsefulKnowledgePageSourceCandidate: () => isUsefulKnowledgePageSourceCandidate,
731538
731480
  isUsefulKnowledgePageSource: () => isUsefulKnowledgePageSource,
@@ -731552,12 +731494,12 @@ __export(exports_knowledge, {
731552
731494
  generatedKnowledgeSourceId: () => generatedKnowledgeSourceId,
731553
731495
  generatedKnowledgeCanonicalUri: () => generatedKnowledgeCanonicalUri,
731554
731496
  extractKnowledgeArtifact: () => extractKnowledgeArtifact,
731555
- evaluateProjectPlanningReadiness: () => evaluateProjectPlanningReadiness,
731556
- discoverBrowserKnowledgeProfiles: () => discoverBrowserKnowledgeProfiles,
731497
+ evaluateProjectPlanningReadiness: () => evaluateProjectPlanningReadiness2,
731498
+ discoverBrowserKnowledgeProfiles: () => discoverBrowserKnowledgeProfiles2,
731557
731499
  createWebKnowledgeGapRepairer: () => createWebKnowledgeGapRepairer,
731558
731500
  createProviderBackedKnowledgeSemanticLlm: () => createProviderBackedKnowledgeSemanticLlm,
731559
731501
  createMemoryApi: () => createMemoryApi,
731560
- createKnowledgeSchema: () => createSchema2,
731502
+ createKnowledgeSchema: () => createSchema3,
731561
731503
  createKnowledgeApi: () => createKnowledgeApi,
731562
731504
  createDefaultKnowledgeConnectorRegistry: () => createDefaultKnowledgeConnectorRegistry,
731563
731505
  compareKnowledgePageSources: () => compareKnowledgePageSources,
@@ -733995,7 +733937,7 @@ var init_delivery_manager = __esm(() => {
733995
733937
  });
733996
733938
 
733997
733939
  // node_modules/@pellux/goodvibes-sdk/dist/platform/automation/scheduler-capacity.js
733998
- function computeSchedulerCapacity(slotsTotal, runs, nowMs2 = Date.now()) {
733940
+ function computeSchedulerCapacity(slotsTotal, runs, nowMs3 = Date.now()) {
733999
733941
  let slotsInUse = 0;
734000
733942
  const queuedRuns = [];
734001
733943
  for (const run7 of runs) {
@@ -734005,7 +733947,7 @@ function computeSchedulerCapacity(slotsTotal, runs, nowMs2 = Date.now()) {
734005
733947
  queuedRuns.push(run7);
734006
733948
  }
734007
733949
  const queueDepth = queuedRuns.length;
734008
- const oldestQueuedAgeMs = queueDepth > 0 ? nowMs2 - Math.min(...queuedRuns.map((r5) => r5.queuedAt)) : null;
733950
+ const oldestQueuedAgeMs = queueDepth > 0 ? nowMs3 - Math.min(...queuedRuns.map((r5) => r5.queuedAt)) : null;
734009
733951
  return { slotsTotal, slotsInUse, queueDepth, oldestQueuedAgeMs };
734010
733952
  }
734011
733953
 
@@ -816566,7 +816508,7 @@ var createStyledCell = (char, overrides = {}) => ({
816566
816508
  // src/version.ts
816567
816509
  import { readFileSync } from "fs";
816568
816510
  import { join } from "path";
816569
- var _version = "1.0.8";
816511
+ var _version = "1.0.9";
816570
816512
  var _sdkVersion = "0.33.35";
816571
816513
  try {
816572
816514
  const pkg = JSON.parse(readFileSync(join(import.meta.dir, "..", "package.json"), "utf-8"));
@@ -839428,7 +839370,7 @@ var WORK_PLAN_STATUSES = [
839428
839370
  "failed",
839429
839371
  "cancelled"
839430
839372
  ];
839431
- function nowMs2() {
839373
+ function nowMs3() {
839432
839374
  return Date.now();
839433
839375
  }
839434
839376
  function isObject5(value) {
@@ -839534,7 +839476,7 @@ class WorkPlanStore {
839534
839476
  if (!normalizedTitle)
839535
839477
  throw new Error("Work plan item title is required.");
839536
839478
  const plan = this.readPlan();
839537
- const time4 = nowMs2();
839479
+ const time4 = nowMs3();
839538
839480
  const item = {
839539
839481
  id: createItemId(),
839540
839482
  title: normalizedTitle,
@@ -839558,7 +839500,7 @@ class WorkPlanStore {
839558
839500
  updateItem(idOrPrefix, patch2) {
839559
839501
  const plan = this.readPlan();
839560
839502
  const item = this.resolveItem(plan, idOrPrefix);
839561
- const time4 = nowMs2();
839503
+ const time4 = nowMs3();
839562
839504
  const nextStatus = patch2.status ?? item.status;
839563
839505
  const next = this.pruneItem({
839564
839506
  ...item,
@@ -839591,7 +839533,7 @@ class WorkPlanStore {
839591
839533
  removeItem(idOrPrefix) {
839592
839534
  const plan = this.readPlan();
839593
839535
  const item = this.resolveItem(plan, idOrPrefix);
839594
- const time4 = nowMs2();
839536
+ const time4 = nowMs3();
839595
839537
  const remaining = plan.items.filter((candidate) => candidate.id !== item.id);
839596
839538
  this.writePlan({
839597
839539
  ...plan,
@@ -839611,7 +839553,7 @@ class WorkPlanStore {
839611
839553
  ...plan,
839612
839554
  items: remaining,
839613
839555
  activeItemId: remaining[0]?.id,
839614
- updatedAt: nowMs2()
839556
+ updatedAt: nowMs3()
839615
839557
  });
839616
839558
  return removed;
839617
839559
  }
@@ -839650,7 +839592,7 @@ class WorkPlanStore {
839650
839592
  const parsed = JSON.parse(raw);
839651
839593
  if (!isObject5(parsed))
839652
839594
  return this.createEmptyPlan();
839653
- const time4 = nowMs2();
839595
+ const time4 = nowMs3();
839654
839596
  const createdAt = typeof parsed.createdAt === "number" ? parsed.createdAt : time4;
839655
839597
  const updatedAt = typeof parsed.updatedAt === "number" ? parsed.updatedAt : createdAt;
839656
839598
  const items = Array.isArray(parsed.items) ? parsed.items.map((item) => normalizeItem(item, createdAt)).filter((item) => item !== null) : [];
@@ -839669,7 +839611,7 @@ class WorkPlanStore {
839669
839611
  };
839670
839612
  }
839671
839613
  createEmptyPlan() {
839672
- const time4 = nowMs2();
839614
+ const time4 = nowMs3();
839673
839615
  return {
839674
839616
  id: createPlanId(this.options.projectId, this.options.projectRoot),
839675
839617
  projectId: this.options.projectId,
@@ -849256,6 +849198,136 @@ var knowledgeCommand = {
849256
849198
  };
849257
849199
 
849258
849200
  // src/input/commands/shell-core.ts
849201
+ function commandCategory(commandName) {
849202
+ if ([
849203
+ "agent",
849204
+ "agent-profile",
849205
+ "brief",
849206
+ "health",
849207
+ "welcome",
849208
+ "setup",
849209
+ "tasks",
849210
+ "approval",
849211
+ "automation",
849212
+ "delegate",
849213
+ "schedule",
849214
+ "workplan",
849215
+ "plan"
849216
+ ].includes(commandName))
849217
+ return "Agent Operator";
849218
+ if ([
849219
+ "knowledge",
849220
+ "memory",
849221
+ "notes",
849222
+ "personas",
849223
+ "skills",
849224
+ "routines"
849225
+ ].includes(commandName))
849226
+ return "Knowledge & Local Context";
849227
+ if ([
849228
+ "channels",
849229
+ "notify",
849230
+ "qrcode",
849231
+ "pair"
849232
+ ].includes(commandName))
849233
+ return "Channels";
849234
+ if ([
849235
+ "model",
849236
+ "provider",
849237
+ "providers",
849238
+ "effort",
849239
+ "pin",
849240
+ "unpin",
849241
+ "refresh-models",
849242
+ "mode",
849243
+ "tts",
849244
+ "voice",
849245
+ "media",
849246
+ "image"
849247
+ ].includes(commandName))
849248
+ return "Model, Voice & Media";
849249
+ if ([
849250
+ "settings",
849251
+ "config",
849252
+ "keybindings",
849253
+ "shortcuts",
849254
+ "mcp",
849255
+ "secrets",
849256
+ "auth",
849257
+ "accounts",
849258
+ "subscription",
849259
+ "compat",
849260
+ "security",
849261
+ "trust",
849262
+ "bundle"
849263
+ ].includes(commandName))
849264
+ return "Setup & Security";
849265
+ if ([
849266
+ "save",
849267
+ "load",
849268
+ "sessions",
849269
+ "session",
849270
+ "conversation",
849271
+ "export",
849272
+ "title",
849273
+ "clear",
849274
+ "reset",
849275
+ "compact",
849276
+ "undo",
849277
+ "redo",
849278
+ "retry",
849279
+ "expand",
849280
+ "collapse",
849281
+ "context",
849282
+ "bookmarks",
849283
+ "paste",
849284
+ "next-error",
849285
+ "prev-error"
849286
+ ].includes(commandName))
849287
+ return "Conversation";
849288
+ return "Tools & System";
849289
+ }
849290
+ function commandDetail(command8) {
849291
+ const parts2 = [command8.description];
849292
+ if (command8.usage)
849293
+ parts2.push(`usage: /${command8.name} ${command8.usage}`);
849294
+ if (command8.aliases?.length)
849295
+ parts2.push(`aliases: ${command8.aliases.map((alias) => `/${alias}`).join(", ")}`);
849296
+ return parts2.join(" | ");
849297
+ }
849298
+ function listRegisteredCommandItems(registry5) {
849299
+ return registry5.list().slice().sort((a4, b3) => a4.name.localeCompare(b3.name)).map((command8) => ({
849300
+ id: `/${command8.name}`,
849301
+ label: `/${command8.name}`,
849302
+ detail: commandDetail(command8),
849303
+ category: commandCategory(command8.name),
849304
+ primaryAction: "select",
849305
+ actions: "[Enter] run command"
849306
+ }));
849307
+ }
849308
+ function registeredCommandListText(registry5) {
849309
+ const commands3 = listRegisteredCommandItems(registry5);
849310
+ return [
849311
+ "Open the Agent workspace first, then press / inside it to search every product action.",
849312
+ "",
849313
+ "Registered slash commands:",
849314
+ ...commands3.map((item) => ` ${item.label} - ${item.detail}`)
849315
+ ].join(`
849316
+ `);
849317
+ }
849318
+ function openRegisteredCommandSelection(registry5, ctx) {
849319
+ ctx.openSelection?.("Help - Commands", listRegisteredCommandItems(registry5), { allowSearch: true }, (result2) => {
849320
+ if (!result2)
849321
+ return;
849322
+ const command8 = result2.item.id;
849323
+ if (command8.startsWith("/")) {
849324
+ const parts2 = command8.slice(1).trim().split(/\s+/);
849325
+ const name51 = parts2[0];
849326
+ const cmdArgs = parts2.slice(1);
849327
+ ctx.executeCommand?.(name51, cmdArgs) ?? registry5.execute(name51, cmdArgs, ctx);
849328
+ }
849329
+ });
849330
+ }
849259
849331
  function registerShellCoreCommands(registry5) {
849260
849332
  registry5.register({
849261
849333
  name: "model",
@@ -849305,6 +849377,10 @@ function registerShellCoreCommands(registry5) {
849305
849377
  aliases: ["cmds"],
849306
849378
  description: "Browse all commands in a scrollable list",
849307
849379
  handler(_args, ctx) {
849380
+ if (ctx.openSelection) {
849381
+ openRegisteredCommandSelection(registry5, ctx);
849382
+ return;
849383
+ }
849308
849384
  if (ctx.openHelpOverlay) {
849309
849385
  ctx.openHelpOverlay();
849310
849386
  return;
@@ -849369,75 +849445,10 @@ function registerShellCoreCommands(registry5) {
849369
849445
  argsHint: "[command]",
849370
849446
  handler(_args, ctx) {
849371
849447
  if (ctx.openSelection) {
849372
- const items = [
849373
- { id: "/agent", label: "/agent", detail: "Open the Agent operator workspace; press / inside it to search every action", category: "Agent Operator" },
849374
- { id: "/agent setup", label: "/agent setup", detail: "Open the Agent setup workspace; workspace search can find every setup action", category: "Agent Operator" },
849375
- { id: "/agent channels", label: "/agent channels", detail: "Open channel readiness and delivery safety", category: "Agent Operator" },
849376
- { id: "/agent knowledge", label: "/agent knowledge", detail: "Open isolated Agent Knowledge workflows", category: "Agent Operator" },
849377
- { id: "/agent voice-media", label: "/agent voice-media", detail: "Open voice, TTS, image, browser, and media setup", category: "Agent Operator" },
849378
- { id: "/home", label: "/home", detail: "Alias for the Agent operator workspace", category: "Agent Operator" },
849379
- { id: "/brief", label: "/brief", detail: "Show a concise Agent operator briefing and next actions", category: "Agent Operator" },
849380
- { id: "/knowledge", label: "/knowledge", detail: "Inspect isolated Agent Knowledge status, ask/search, and ingest flows", category: "Agent Operator" },
849381
- { id: "/memory", label: "/memory", detail: "Review Agent-local memory records", category: "Agent Operator" },
849382
- { id: "/notes", label: "/notes", detail: "Open Agent-local scratchpad notes for source triage and temporary context", category: "Agent Operator" },
849383
- { id: "/personas", label: "/personas", detail: "Create, review, and activate Agent-local personas", category: "Agent Operator" },
849384
- { id: "/skills", label: "/skills", detail: "Create, review, and enable reusable Agent skills", category: "Agent Operator" },
849385
- { id: "/routines", label: "/routines", detail: "Create, review, start, and promote Agent routines explicitly", category: "Agent Operator" },
849386
- { id: "/automation", label: "/automation", detail: "Run confirmed connected-host automation actions", category: "Agent Operator" },
849387
- { id: "/delegate", label: "/delegate [task]", detail: "Explicit build/fix/review handoff to GoodVibes TUI", category: "Agent Operator" },
849388
- { id: "/channels", label: "/channels", detail: "Inspect messaging-channel readiness without sending messages", category: "Agent Operator" },
849389
- { id: "/pair", label: "/pair", detail: "Pair companion clients through connected GoodVibes host", category: "Agent Operator" },
849390
- { id: "/model", label: "/model [id]", detail: "Select LLM model", category: "Model & Provider" },
849391
- { id: "/provider", label: "/provider [name]", detail: "Switch provider", category: "Model & Provider" },
849392
- { id: "/effort", label: "/effort [level]", detail: "Reasoning effort (instant/low/medium/high)", category: "Model & Provider" },
849393
- { id: "/config", label: "/config [category|key]", detail: "Open fullscreen configuration workspace", category: "Config & Display" },
849394
- { id: "/expand", label: "/expand [type]", detail: "Expand blocks (all|thinking|tool|code)", category: "Config & Display" },
849395
- { id: "/collapse", label: "/collapse [type]", detail: "Collapse blocks", category: "Config & Display" },
849396
- { id: "/bookmarks", label: "/bookmarks", detail: "List bookmarked blocks", category: "Config & Display" },
849397
- { id: "/clear", label: "/clear", detail: "Clear display (keep context)", category: "Conversation" },
849398
- { id: "/reset", label: "/reset", detail: "Clear display + context", category: "Conversation" },
849399
- { id: "/compact", label: "/compact", detail: "Summarize to free context", category: "Conversation" },
849400
- { id: "/export", label: "/export [file] --yes", detail: "Export as markdown", category: "Conversation" },
849401
- { id: "/title", label: "/title [text]", detail: "Show or set title", category: "Conversation" },
849402
- { id: "/save", label: "/save [name]", detail: "Save session", category: "Conversation" },
849403
- { id: "/load", label: "/load <name>", detail: "Load session", category: "Conversation" },
849404
- { id: "/sessions", label: "/sessions", detail: "List saved sessions", category: "Conversation" },
849405
- { id: "/session", label: "/session", detail: "Current session info", category: "Conversation" },
849406
- { id: "/session list", label: "/session list", detail: "List all sessions", category: "Conversation" },
849407
- { id: "/session rename", label: "/session rename <name>", detail: "Rename current session", category: "Conversation" },
849408
- { id: "/session resume", label: "/session resume <id>", detail: "Load and resume a session", category: "Conversation" },
849409
- { id: "/session fork", label: "/session fork [name]", detail: "Fork current session to new ID", category: "Conversation" },
849410
- { id: "/session save", label: "/session save [name]", detail: "Force-save current session", category: "Conversation" },
849411
- { id: "/session info", label: "/session info [id]", detail: "Show session details", category: "Conversation" },
849412
- { id: "/session export", label: "/session export <id> [format]", detail: "Export session as markdown/text", category: "Conversation" },
849413
- { id: "/session search", label: "/session search <query>", detail: "Search across all sessions", category: "Conversation" },
849414
- { id: "/session delete", label: "/session delete <id> --yes", detail: "Delete a session", category: "Conversation" },
849415
- { id: "/undo", label: "/undo", detail: "Remove last turn", category: "Conversation" },
849416
- { id: "/redo", label: "/redo", detail: "Restore undone turn", category: "Conversation" },
849417
- { id: "/retry", label: "/retry [text]", detail: "Re-send last message", category: "Conversation" },
849418
- { id: "/paste", label: "/paste", detail: "Insert clipboard text or image into the prompt", category: "Tools & System" },
849419
- { id: "/shortcuts", label: "/shortcuts", detail: "View keyboard shortcuts reference", category: "Tools & System" },
849420
- { id: "/commands", label: "/commands", detail: "Browse all commands in a scrollable list", category: "Tools & System" },
849421
- { id: "/compat", label: "/compat", detail: "Inspect connected-host and Agent Knowledge compatibility", category: "Tools & System" },
849422
- { id: "/secrets", label: "/secrets set|link|get|test|list|delete", detail: "Manage encrypted and provider-backed secrets", category: "Tools & System" },
849423
- { id: "/bundle", label: "/bundle export|inspect|import", detail: "Manage redacted Agent support bundles", category: "Tools & System" },
849424
- { id: "/help", label: "/help", detail: "This help", category: "Tools & System" },
849425
- { id: "/quit", label: "/quit", detail: "Exit", category: "Tools & System" }
849426
- ];
849427
- ctx.openSelection("Help \u2014 Commands", items, { allowSearch: true }, (result2) => {
849428
- if (!result2)
849429
- return;
849430
- const command8 = result2.item.id;
849431
- if (command8.startsWith("/")) {
849432
- const parts2 = command8.slice(1).trim().split(/\s+/);
849433
- const name51 = parts2[0];
849434
- const cmdArgs = parts2.slice(1);
849435
- ctx.executeCommand?.(name51, cmdArgs) ?? registry5.execute(name51, cmdArgs, ctx);
849436
- }
849437
- });
849448
+ openRegisteredCommandSelection(registry5, ctx);
849438
849449
  return;
849439
849450
  }
849440
- ctx.print("Open the Agent workspace first, then press / inside it to search every product action. Slash commands remain available: /agent, /brief, /knowledge, /memory, /notes, /personas, /skills, /routines, /channels, /approval, /automation, /schedule, /delegate, /model, /provider, /config, /compat, /bundle, /paste, /sessions, /bookmarks, /save, /load, /undo, /redo, /retry, /clear, /reset, /compact, /export, /title, /effort, /expand, /collapse, /quit");
849451
+ ctx.print(registeredCommandListText(registry5));
849441
849452
  }
849442
849453
  });
849443
849454
  registry5.register({
@@ -880725,6 +880736,101 @@ var AGENT_HARNESS_PARAMETER_PROPERTIES = {
880725
880736
  }
880726
880737
  };
880727
880738
 
880739
+ // src/input/tts-settings-actions.ts
880740
+ function getStreamingTtsProviders(ctx) {
880741
+ const registry5 = ctx.platform.voiceProviderRegistry;
880742
+ if (!registry5)
880743
+ return [];
880744
+ return registry5.list().filter((provider5) => provider5.capabilities.includes("tts-stream"));
880745
+ }
880746
+ function setTtsConfigValue(ctx, key, value) {
880747
+ ctx.platform.configManager.setDynamic(key, value);
880748
+ }
880749
+ function openTtsProviderPicker(ctx) {
880750
+ if (!ctx.openSelection)
880751
+ return false;
880752
+ const registry5 = ctx.platform.voiceProviderRegistry;
880753
+ if (!registry5) {
880754
+ ctx.print("Voice provider registry is not available in this runtime.");
880755
+ return true;
880756
+ }
880757
+ const providers2 = getStreamingTtsProviders(ctx);
880758
+ if (providers2.length === 0) {
880759
+ ctx.print("No streaming TTS providers are registered.");
880760
+ return true;
880761
+ }
880762
+ const current = String(ctx.platform.configManager.get("tts.provider") ?? "").trim();
880763
+ const items = providers2.map((provider5) => ({
880764
+ id: provider5.id,
880765
+ label: provider5.label,
880766
+ detail: provider5.id === current ? `${provider5.id} (current)` : provider5.id,
880767
+ category: "streaming TTS providers",
880768
+ primaryAction: "select",
880769
+ actions: "[Enter] set provider"
880770
+ }));
880771
+ ctx.openSelection("Choose TTS Provider", items, { preSelectId: current, allowSearch: true }, (result2) => {
880772
+ if (!result2)
880773
+ return;
880774
+ const previous = String(ctx.platform.configManager.get("tts.provider") ?? "").trim();
880775
+ setTtsConfigValue(ctx, "tts.provider", result2.item.id);
880776
+ if (previous && previous !== result2.item.id) {
880777
+ setTtsConfigValue(ctx, "tts.voice", "");
880778
+ ctx.print(`TTS provider set to ${result2.item.id}. TTS voice was cleared because voices are provider-specific.`);
880779
+ } else {
880780
+ ctx.print(`TTS provider set to ${result2.item.id}.`);
880781
+ }
880782
+ ctx.renderRequest();
880783
+ });
880784
+ return true;
880785
+ }
880786
+ async function openTtsVoicePicker(ctx, providerArg) {
880787
+ if (!ctx.openSelection)
880788
+ return false;
880789
+ const service = ctx.platform.voiceService;
880790
+ if (!service) {
880791
+ ctx.print("Voice service is not available in this runtime.");
880792
+ return true;
880793
+ }
880794
+ const providerId = (providerArg ?? String(ctx.platform.configManager.get("tts.provider") ?? "")).trim() || undefined;
880795
+ try {
880796
+ const voices = await service.listVoices(providerId);
880797
+ if (voices.length === 0) {
880798
+ ctx.print(providerId ? `No voices returned for ${providerId}.` : "No TTS voices returned.");
880799
+ return true;
880800
+ }
880801
+ const current = String(ctx.platform.configManager.get("tts.voice") ?? "").trim();
880802
+ const items = [
880803
+ {
880804
+ id: "__default__",
880805
+ label: "Use provider default voice",
880806
+ detail: current ? "clears tts.voice" : "(current)",
880807
+ category: "voice",
880808
+ primaryAction: "select"
880809
+ },
880810
+ ...voices.map((voice) => ({
880811
+ id: voice.id,
880812
+ label: voice.label || voice.id,
880813
+ detail: voice.id === current ? `${voice.id} (current)` : voice.id,
880814
+ category: providerId ?? "voices",
880815
+ primaryAction: "select",
880816
+ actions: "[Enter] set voice"
880817
+ }))
880818
+ ];
880819
+ ctx.openSelection(`Choose TTS Voice${providerId ? ` (${providerId})` : ""}`, items, { preSelectId: current || "__default__", allowSearch: true }, (result2) => {
880820
+ if (!result2)
880821
+ return;
880822
+ const nextVoice = result2.item.id === "__default__" ? "" : result2.item.id;
880823
+ setTtsConfigValue(ctx, "tts.voice", nextVoice);
880824
+ ctx.print(nextVoice ? `TTS voice set to ${nextVoice}.` : "TTS voice cleared. The provider default voice will be used.");
880825
+ ctx.renderRequest();
880826
+ });
880827
+ return true;
880828
+ } catch (error52) {
880829
+ ctx.print(`Unable to list TTS voices: ${error52 instanceof Error ? error52.message : String(error52)}`);
880830
+ return true;
880831
+ }
880832
+ }
880833
+
880728
880834
  // src/tools/agent-harness-ui-surface-metadata.ts
880729
880835
  function readString56(value) {
880730
880836
  return typeof value === "string" ? value.trim() : "";
@@ -880765,6 +880871,9 @@ function workspaceCategory(args2) {
880765
880871
  function settingsTarget(args2) {
880766
880872
  return readString56(args2.target || args2.key || args2.prefix) || undefined;
880767
880873
  }
880874
+ function providerTarget(args2) {
880875
+ return readString56(args2.target || args2.key || args2.prefix) || undefined;
880876
+ }
880768
880877
  function optionalPane(args2) {
880769
880878
  const pane = readString56(args2.pane);
880770
880879
  return pane === "top" || pane === "bottom" ? pane : undefined;
@@ -880964,6 +881073,40 @@ var UI_SURFACES = [
880964
881073
  return opened(surface, { target: "main" });
880965
881074
  }
880966
881075
  },
881076
+ {
881077
+ id: "tts-provider-picker",
881078
+ label: "TTS Provider Picker",
881079
+ kind: "picker",
881080
+ summary: "Interactive streaming TTS provider picker opened from the Agent settings flow.",
881081
+ command: "/config tts.provider",
881082
+ preferredModelRoute: "Use settings/get_setting/set_setting for tts.provider when a concrete provider id is known; use open_ui_surface only to visibly navigate.",
881083
+ available: (context) => typeof context.openSelection === "function" && Boolean(context.platform.voiceProviderRegistry),
881084
+ open: (context) => {
881085
+ const surface = findSurfaceById("tts-provider-picker");
881086
+ if (!context.openSelection || !context.platform.voiceProviderRegistry)
881087
+ return routeUnavailable(surface);
881088
+ const handled = openTtsProviderPicker(context);
881089
+ return handled ? opened(surface, { target: "tts.provider" }) : routeUnavailable(surface);
881090
+ }
881091
+ },
881092
+ {
881093
+ id: "tts-voice-picker",
881094
+ label: "TTS Voice Picker",
881095
+ kind: "picker",
881096
+ summary: "Interactive TTS voice picker opened from the Agent settings flow for the selected or supplied provider.",
881097
+ command: "/config tts.voice",
881098
+ preferredModelRoute: "Use settings/get_setting/set_setting/reset_setting for tts.voice when a concrete voice id is known; use open_ui_surface only to visibly navigate.",
881099
+ parameters: ["target"],
881100
+ available: (context) => typeof context.openSelection === "function" && Boolean(context.platform.voiceService),
881101
+ open: async (context, args2) => {
881102
+ const surface = findSurfaceById("tts-voice-picker");
881103
+ if (!context.openSelection || !context.platform.voiceService)
881104
+ return routeUnavailable(surface);
881105
+ const providerId = providerTarget(args2);
881106
+ const handled = await openTtsVoicePicker(context, providerId);
881107
+ return handled ? opened(surface, { target: "tts.voice", providerId: providerId ?? "configured-default" }) : routeUnavailable(surface);
881108
+ }
881109
+ },
880967
881110
  {
880968
881111
  id: "session-picker",
880969
881112
  label: "Session Picker",
@@ -881127,7 +881270,7 @@ function describeHarnessUiSurface(context, args2) {
881127
881270
  const surface = UI_SURFACES.find((entry) => entry.id === surfaceId || entry.label.toLowerCase() === surfaceId.toLowerCase());
881128
881271
  return surface ? describeSurface(context, surface) : null;
881129
881272
  }
881130
- function openHarnessUiSurface(context, args2) {
881273
+ async function openHarnessUiSurface(context, args2) {
881131
881274
  const surfaceId = readString56(args2.surfaceId || args2.query);
881132
881275
  const surface = UI_SURFACES.find((entry) => entry.id === surfaceId || entry.label.toLowerCase() === surfaceId.toLowerCase());
881133
881276
  if (!surface) {
@@ -881137,8 +881280,9 @@ function openHarnessUiSurface(context, args2) {
881137
881280
  availableSurfaces: UI_SURFACES.map((entry) => entry.id)
881138
881281
  };
881139
881282
  }
881283
+ const routed = await surface.open(context, args2);
881140
881284
  return {
881141
- ...surface.open(context, args2),
881285
+ ...routed,
881142
881286
  descriptor: describeSurface(context, surface)
881143
881287
  };
881144
881288
  }
@@ -881621,7 +881765,7 @@ function createAgentHarnessTool(deps) {
881621
881765
  const confirmationError2 = requireConfirmedAction(args2, "UI surface routing");
881622
881766
  if (confirmationError2)
881623
881767
  return error52(confirmationError2);
881624
- return output7(openHarnessUiSurface(deps.commandContext, args2));
881768
+ return output7(await openHarnessUiSurface(deps.commandContext, args2));
881625
881769
  }
881626
881770
  if (args2.mode === "shortcuts")
881627
881771
  return output7(listHarnessShortcuts(deps.commandContext, args2));
@@ -883322,7 +883466,7 @@ var invokeContractRoute2 = exports_transport.invokeContractRoute;
883322
883466
  var openContractRouteStream2 = exports_transport.openContractRouteStream;
883323
883467
  var requireContractRoute2 = exports_transport.requireContractRoute;
883324
883468
  var isAbortError6 = exports_transport.isAbortError;
883325
- var openServerSentEventStream3 = exports_transport.openServerSentEventStream;
883469
+ var openServerSentEventStream2 = exports_transport.openServerSentEventStream;
883326
883470
  var createOperatorRemoteClient2 = exports_transport.createOperatorRemoteClient;
883327
883471
  var createPeerRemoteClient2 = exports_transport.createPeerRemoteClient;
883328
883472
  var buildEventSourceUrl2 = exports_transport.buildEventSourceUrl;
@@ -893496,101 +893640,6 @@ function handleOnboardingWizardToken(state4, token) {
893496
893640
  return true;
893497
893641
  }
893498
893642
 
893499
- // src/input/tts-settings-actions.ts
893500
- function getStreamingTtsProviders(ctx) {
893501
- const registry5 = ctx.platform.voiceProviderRegistry;
893502
- if (!registry5)
893503
- return [];
893504
- return registry5.list().filter((provider5) => provider5.capabilities.includes("tts-stream"));
893505
- }
893506
- function setTtsConfigValue(ctx, key, value) {
893507
- ctx.platform.configManager.setDynamic(key, value);
893508
- }
893509
- function openTtsProviderPicker(ctx) {
893510
- if (!ctx.openSelection)
893511
- return false;
893512
- const registry5 = ctx.platform.voiceProviderRegistry;
893513
- if (!registry5) {
893514
- ctx.print("Voice provider registry is not available in this runtime.");
893515
- return true;
893516
- }
893517
- const providers2 = getStreamingTtsProviders(ctx);
893518
- if (providers2.length === 0) {
893519
- ctx.print("No streaming TTS providers are registered.");
893520
- return true;
893521
- }
893522
- const current = String(ctx.platform.configManager.get("tts.provider") ?? "").trim();
893523
- const items = providers2.map((provider5) => ({
893524
- id: provider5.id,
893525
- label: provider5.label,
893526
- detail: provider5.id === current ? `${provider5.id} (current)` : provider5.id,
893527
- category: "streaming TTS providers",
893528
- primaryAction: "select",
893529
- actions: "[Enter] set provider"
893530
- }));
893531
- ctx.openSelection("Choose TTS Provider", items, { preSelectId: current, allowSearch: true }, (result2) => {
893532
- if (!result2)
893533
- return;
893534
- const previous = String(ctx.platform.configManager.get("tts.provider") ?? "").trim();
893535
- setTtsConfigValue(ctx, "tts.provider", result2.item.id);
893536
- if (previous && previous !== result2.item.id) {
893537
- setTtsConfigValue(ctx, "tts.voice", "");
893538
- ctx.print(`TTS provider set to ${result2.item.id}. TTS voice was cleared because voices are provider-specific.`);
893539
- } else {
893540
- ctx.print(`TTS provider set to ${result2.item.id}.`);
893541
- }
893542
- ctx.renderRequest();
893543
- });
893544
- return true;
893545
- }
893546
- async function openTtsVoicePicker(ctx, providerArg) {
893547
- if (!ctx.openSelection)
893548
- return false;
893549
- const service = ctx.platform.voiceService;
893550
- if (!service) {
893551
- ctx.print("Voice service is not available in this runtime.");
893552
- return true;
893553
- }
893554
- const providerId = (providerArg ?? String(ctx.platform.configManager.get("tts.provider") ?? "")).trim() || undefined;
893555
- try {
893556
- const voices = await service.listVoices(providerId);
893557
- if (voices.length === 0) {
893558
- ctx.print(providerId ? `No voices returned for ${providerId}.` : "No TTS voices returned.");
893559
- return true;
893560
- }
893561
- const current = String(ctx.platform.configManager.get("tts.voice") ?? "").trim();
893562
- const items = [
893563
- {
893564
- id: "__default__",
893565
- label: "Use provider default voice",
893566
- detail: current ? "clears tts.voice" : "(current)",
893567
- category: "voice",
893568
- primaryAction: "select"
893569
- },
893570
- ...voices.map((voice) => ({
893571
- id: voice.id,
893572
- label: voice.label || voice.id,
893573
- detail: voice.id === current ? `${voice.id} (current)` : voice.id,
893574
- category: providerId ?? "voices",
893575
- primaryAction: "select",
893576
- actions: "[Enter] set voice"
893577
- }))
893578
- ];
893579
- ctx.openSelection(`Choose TTS Voice${providerId ? ` (${providerId})` : ""}`, items, { preSelectId: current || "__default__", allowSearch: true }, (result2) => {
893580
- if (!result2)
893581
- return;
893582
- const nextVoice = result2.item.id === "__default__" ? "" : result2.item.id;
893583
- setTtsConfigValue(ctx, "tts.voice", nextVoice);
893584
- ctx.print(nextVoice ? `TTS voice set to ${nextVoice}.` : "TTS voice cleared. The provider default voice will be used.");
893585
- ctx.renderRequest();
893586
- });
893587
- return true;
893588
- } catch (error53) {
893589
- ctx.print(`Unable to list TTS voices: ${error53 instanceof Error ? error53.message : String(error53)}`);
893590
- return true;
893591
- }
893592
- }
893593
-
893594
893643
  // src/input/handler-modal-routes.ts
893595
893644
  function handleSelectionModalToken(state4, token) {
893596
893645
  if (!state4.selectionModal.active)
@@ -44,7 +44,7 @@ After setup has been applied once, the TUI opens directly into the Agent operato
44
44
 
45
45
  Press `/` inside the Agent workspace to search every workspace action by name, category, command, or detail. Use that finder before reaching for shell commands; CLI subcommands are scriptable mirrors of these TUI workflows.
46
46
 
47
- The model can inspect and use the same harness surface through Agent-owned tools. `agent_harness` exposes workspace action discovery, built-in panel discovery/routing, modal/overlay/picker UI surface discovery/routing, top-level CLI mirror discovery, fixed shortcut and configurable keybinding discovery, keybinding mutation with confirmation, slash-command discovery, command policy metadata, command execution with confirmation, model tool discovery, settings inspection/mutation, connected-host capability inventory, and live connected-host readiness posture. CLI mirror modes are read-only catalog/parser inspection and point the model to the matching in-process tool, workspace action, setting mode, or slash-command mirror. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, context, bookmarks, model/provider pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose the fixed runtime/editor shortcuts and the live keybindings table; confirmed keybinding edits write the same `keybindings.json` file the user edits and reload the runtime manager. Workspace action discovery can include editor field schemas with `includeParameters:true`, including starter-template defaults for profile creation and selected-routine defaults for routine schedule promotion when `recordId` is supplied. Selection-based local workspace actions accept a local `recordId`, so the model can use the same note promotion and local registry flows as the TUI. First-class model tools cover the main product workflows directly: Agent Knowledge, Agent Knowledge ingest, Agent-local memory/notes/personas/skills/routines, operator actions, notifications, channel sends, reminders, generated media, and work plans.
47
+ The model can inspect and use the same harness surface through Agent-owned tools. `agent_harness` exposes workspace action discovery, built-in panel discovery/routing, modal/overlay/picker UI surface discovery/routing, top-level CLI mirror discovery, fixed shortcut and configurable keybinding discovery, keybinding mutation with confirmation, slash-command discovery, command policy metadata, command execution with confirmation, model tool discovery, settings inspection/mutation, connected-host capability inventory, and live connected-host readiness posture. CLI mirror modes are read-only catalog/parser inspection and point the model to the matching in-process tool, workspace action, setting mode, or slash-command mirror. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, context, bookmarks, model/provider pickers, TTS provider/voice pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose the fixed runtime/editor shortcuts and the live keybindings table; confirmed keybinding edits write the same `keybindings.json` file the user edits and reload the runtime manager. Workspace action discovery can include editor field schemas with `includeParameters:true`, including starter-template defaults for profile creation and selected-routine defaults for routine schedule promotion when `recordId` is supplied. Selection-based local workspace actions accept a local `recordId`, so the model can use the same note promotion and local registry flows as the TUI. First-class model tools cover the main product workflows directly: Agent Knowledge, Agent Knowledge ingest, Agent-local memory/notes/personas/skills/routines, operator actions, notifications, channel sends, reminders, generated media, and work plans.
48
48
 
49
49
  Use the Artifacts area for concrete files and generated output: attach images to prompts, export conversations or saved sessions, ingest local source files and URL lists into Agent Knowledge, import bookmarks or browser history, inspect source records, and generate media artifacts from confirmed prompts.
50
50
 
@@ -52,7 +52,7 @@ The main Agent model has an Agent-owned harness bridge rather than generic SDK s
52
52
 
53
53
  `agent_harness` discovery modes are read-only. `summary` reports the model access map; `panels` and `panel` return the built-in panel catalog, current open/focused state, and each panel's matching Agent workspace route; `ui_surfaces` and `ui_surface` return modal, overlay, picker, and workspace entrypoints with shell-opener availability and preferred model routes; `cli_commands` and `cli_command` return top-level package CLI mirror metadata, parser output, blocked command tokens, and preferred in-process model routes; `shortcuts` returns fixed runtime/editor shortcuts plus configurable keybindings; `keybindings` and `keybinding` return the live resolved keybinding table, default bindings, custom state, and config path; `commands` and `command` return slash-command descriptions plus effect/confirmation/preferred-tool/boundary policy metadata; `workspace_actions` lists Agent workspace actions and can inline editor field schemas with `includeParameters:true`; `workspace_action` returns one action with its editor schema; `tools` can inline model tool JSON schemas with `includeParameters:true`; `settings` returns setting descriptors plus setting policy; `connected_host` returns the connected-host route families, allowed capabilities, blocked capabilities, and first-class tool availability; and `connected_host_status` performs a live read-only check of the connected-host status and Agent Knowledge status routes and reports endpoint bindings, token posture, SDK compatibility, route readiness, and findings without printing token values.
54
54
 
55
- `open_ui_surface` is a confirmation-gated visible navigation mode for the same shell surfaces the user can open: Agent workspace, settings, MCP workspace, model/provider pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, bookmarks, context inspector, help, shortcuts, and onboarding. It does not perform hidden operations; use first-class model tools, settings modes, workspace actions, or confirmed slash-command mirrors for actual state changes.
55
+ `open_ui_surface` is a confirmation-gated visible navigation mode for the same shell surfaces the user can open: Agent workspace, settings, MCP workspace, model/provider pickers, TTS provider/voice pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, bookmarks, context inspector, help, shortcuts, and onboarding. It does not perform hidden operations; use first-class model tools, settings modes, workspace actions, or confirmed slash-command mirrors for actual state changes.
56
56
 
57
57
  `set_keybinding` and `reset_keybinding` are confirmation-gated control modes. They write the same Agent `keybindings.json` file exposed by `/keybindings`, reload the runtime keybinding manager, and leave fixed runtime/editor shortcuts read-only.
58
58
 
@@ -20,7 +20,7 @@ GoodVibes Agent supports spoken turns as an Agent TUI feature. Text output remai
20
20
 
21
21
  `/config tts` opens the fullscreen configuration workspace for streaming provider, voice, and spoken-turn model routing.
22
22
 
23
- The model can inspect the same settings through `agent_harness` settings modes and can change Agent-owned TTS settings with explicit confirmation. Connected-host listener or lifecycle settings remain outside Agent ownership.
23
+ The model can inspect the same settings through `agent_harness` settings modes, open the visible TTS provider or voice picker through `open_ui_surface`, and change Agent-owned TTS settings with explicit confirmation. Connected-host listener or lifecycle settings remain outside Agent ownership.
24
24
 
25
25
  ## Playback Requirements
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-agent",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "private": false,
5
5
  "description": "GoodVibes personal operator assistant TUI with a proactive Agent product brain, isolated Agent Knowledge, local profiles, routines, skills, personas, and explicit build delegation.",
6
6
  "type": "module",
@@ -1,4 +1,4 @@
1
- import type { CommandRegistry } from '../command-registry.ts';
1
+ import type { CommandContext, CommandRegistry, SlashCommand } from '../command-registry.ts';
2
2
  import type { SelectionItem } from '../selection-modal.ts';
3
3
  import { EFFORT_DESCRIPTIONS } from '@pellux/goodvibes-sdk/platform/providers';
4
4
  import { REASONING_BUDGET_MAP } from '@pellux/goodvibes-sdk/platform/providers';
@@ -6,6 +6,134 @@ import { compactConversation, requireKeybindingsManager, requireProviderApi } fr
6
6
  import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils';
7
7
  import { logger } from '@pellux/goodvibes-sdk/platform/utils';
8
8
 
9
+ function commandCategory(commandName: string): string {
10
+ if ([
11
+ 'agent',
12
+ 'agent-profile',
13
+ 'brief',
14
+ 'health',
15
+ 'welcome',
16
+ 'setup',
17
+ 'tasks',
18
+ 'approval',
19
+ 'automation',
20
+ 'delegate',
21
+ 'schedule',
22
+ 'workplan',
23
+ 'plan',
24
+ ].includes(commandName)) return 'Agent Operator';
25
+ if ([
26
+ 'knowledge',
27
+ 'memory',
28
+ 'notes',
29
+ 'personas',
30
+ 'skills',
31
+ 'routines',
32
+ ].includes(commandName)) return 'Knowledge & Local Context';
33
+ if ([
34
+ 'channels',
35
+ 'notify',
36
+ 'qrcode',
37
+ 'pair',
38
+ ].includes(commandName)) return 'Channels';
39
+ if ([
40
+ 'model',
41
+ 'provider',
42
+ 'providers',
43
+ 'effort',
44
+ 'pin',
45
+ 'unpin',
46
+ 'refresh-models',
47
+ 'mode',
48
+ 'tts',
49
+ 'voice',
50
+ 'media',
51
+ 'image',
52
+ ].includes(commandName)) return 'Model, Voice & Media';
53
+ if ([
54
+ 'settings',
55
+ 'config',
56
+ 'keybindings',
57
+ 'shortcuts',
58
+ 'mcp',
59
+ 'secrets',
60
+ 'auth',
61
+ 'accounts',
62
+ 'subscription',
63
+ 'compat',
64
+ 'security',
65
+ 'trust',
66
+ 'bundle',
67
+ ].includes(commandName)) return 'Setup & Security';
68
+ if ([
69
+ 'save',
70
+ 'load',
71
+ 'sessions',
72
+ 'session',
73
+ 'conversation',
74
+ 'export',
75
+ 'title',
76
+ 'clear',
77
+ 'reset',
78
+ 'compact',
79
+ 'undo',
80
+ 'redo',
81
+ 'retry',
82
+ 'expand',
83
+ 'collapse',
84
+ 'context',
85
+ 'bookmarks',
86
+ 'paste',
87
+ 'next-error',
88
+ 'prev-error',
89
+ ].includes(commandName)) return 'Conversation';
90
+ return 'Tools & System';
91
+ }
92
+
93
+ function commandDetail(command: SlashCommand): string {
94
+ const parts = [command.description];
95
+ if (command.usage) parts.push(`usage: /${command.name} ${command.usage}`);
96
+ if (command.aliases?.length) parts.push(`aliases: ${command.aliases.map((alias) => `/${alias}`).join(', ')}`);
97
+ return parts.join(' | ');
98
+ }
99
+
100
+ function listRegisteredCommandItems(registry: CommandRegistry): SelectionItem[] {
101
+ return registry.list()
102
+ .slice()
103
+ .sort((a, b) => a.name.localeCompare(b.name))
104
+ .map((command) => ({
105
+ id: `/${command.name}`,
106
+ label: `/${command.name}`,
107
+ detail: commandDetail(command),
108
+ category: commandCategory(command.name),
109
+ primaryAction: 'select',
110
+ actions: '[Enter] run command',
111
+ }));
112
+ }
113
+
114
+ function registeredCommandListText(registry: CommandRegistry): string {
115
+ const commands = listRegisteredCommandItems(registry);
116
+ return [
117
+ 'Open the Agent workspace first, then press / inside it to search every product action.',
118
+ '',
119
+ 'Registered slash commands:',
120
+ ...commands.map((item) => ` ${item.label} - ${item.detail}`),
121
+ ].join('\n');
122
+ }
123
+
124
+ function openRegisteredCommandSelection(registry: CommandRegistry, ctx: CommandContext): void {
125
+ ctx.openSelection?.('Help - Commands', listRegisteredCommandItems(registry), { allowSearch: true }, (result) => {
126
+ if (!result) return;
127
+ const command = result.item.id;
128
+ if (command.startsWith('/')) {
129
+ const parts = command.slice(1).trim().split(/\s+/);
130
+ const name = parts[0];
131
+ const cmdArgs = parts.slice(1);
132
+ void (ctx.executeCommand?.(name, cmdArgs) ?? registry.execute(name, cmdArgs, ctx));
133
+ }
134
+ });
135
+ }
136
+
9
137
  export function registerShellCoreCommands(registry: CommandRegistry): void {
10
138
  registry.register({
11
139
  name: 'model',
@@ -53,6 +181,10 @@ export function registerShellCoreCommands(registry: CommandRegistry): void {
53
181
  aliases: ['cmds'],
54
182
  description: 'Browse all commands in a scrollable list',
55
183
  handler(_args, ctx) {
184
+ if (ctx.openSelection) {
185
+ openRegisteredCommandSelection(registry, ctx);
186
+ return;
187
+ }
56
188
  if (ctx.openHelpOverlay) {
57
189
  ctx.openHelpOverlay();
58
190
  return;
@@ -120,74 +252,10 @@ export function registerShellCoreCommands(registry: CommandRegistry): void {
120
252
  argsHint: '[command]',
121
253
  handler(_args, ctx) {
122
254
  if (ctx.openSelection) {
123
- const items: SelectionItem[] = [
124
- { id: '/agent', label: '/agent', detail: 'Open the Agent operator workspace; press / inside it to search every action', category: 'Agent Operator' },
125
- { id: '/agent setup', label: '/agent setup', detail: 'Open the Agent setup workspace; workspace search can find every setup action', category: 'Agent Operator' },
126
- { id: '/agent channels', label: '/agent channels', detail: 'Open channel readiness and delivery safety', category: 'Agent Operator' },
127
- { id: '/agent knowledge', label: '/agent knowledge', detail: 'Open isolated Agent Knowledge workflows', category: 'Agent Operator' },
128
- { id: '/agent voice-media', label: '/agent voice-media', detail: 'Open voice, TTS, image, browser, and media setup', category: 'Agent Operator' },
129
- { id: '/home', label: '/home', detail: 'Alias for the Agent operator workspace', category: 'Agent Operator' },
130
- { id: '/brief', label: '/brief', detail: 'Show a concise Agent operator briefing and next actions', category: 'Agent Operator' },
131
- { id: '/knowledge', label: '/knowledge', detail: 'Inspect isolated Agent Knowledge status, ask/search, and ingest flows', category: 'Agent Operator' },
132
- { id: '/memory', label: '/memory', detail: 'Review Agent-local memory records', category: 'Agent Operator' },
133
- { id: '/notes', label: '/notes', detail: 'Open Agent-local scratchpad notes for source triage and temporary context', category: 'Agent Operator' },
134
- { id: '/personas', label: '/personas', detail: 'Create, review, and activate Agent-local personas', category: 'Agent Operator' },
135
- { id: '/skills', label: '/skills', detail: 'Create, review, and enable reusable Agent skills', category: 'Agent Operator' },
136
- { id: '/routines', label: '/routines', detail: 'Create, review, start, and promote Agent routines explicitly', category: 'Agent Operator' },
137
- { id: '/automation', label: '/automation', detail: 'Run confirmed connected-host automation actions', category: 'Agent Operator' },
138
- { id: '/delegate', label: '/delegate [task]', detail: 'Explicit build/fix/review handoff to GoodVibes TUI', category: 'Agent Operator' },
139
- { id: '/channels', label: '/channels', detail: 'Inspect messaging-channel readiness without sending messages', category: 'Agent Operator' },
140
- { id: '/pair', label: '/pair', detail: 'Pair companion clients through connected GoodVibes host', category: 'Agent Operator' },
141
- { id: '/model', label: '/model [id]', detail: 'Select LLM model', category: 'Model & Provider' },
142
- { id: '/provider', label: '/provider [name]', detail: 'Switch provider', category: 'Model & Provider' },
143
- { id: '/effort', label: '/effort [level]', detail: 'Reasoning effort (instant/low/medium/high)', category: 'Model & Provider' },
144
- { id: '/config', label: '/config [category|key]', detail: 'Open fullscreen configuration workspace', category: 'Config & Display' },
145
- { id: '/expand', label: '/expand [type]', detail: 'Expand blocks (all|thinking|tool|code)', category: 'Config & Display' },
146
- { id: '/collapse', label: '/collapse [type]', detail: 'Collapse blocks', category: 'Config & Display' },
147
- { id: '/bookmarks', label: '/bookmarks', detail: 'List bookmarked blocks', category: 'Config & Display' },
148
- { id: '/clear', label: '/clear', detail: 'Clear display (keep context)', category: 'Conversation' },
149
- { id: '/reset', label: '/reset', detail: 'Clear display + context', category: 'Conversation' },
150
- { id: '/compact', label: '/compact', detail: 'Summarize to free context', category: 'Conversation' },
151
- { id: '/export', label: '/export [file] --yes', detail: 'Export as markdown', category: 'Conversation' },
152
- { id: '/title', label: '/title [text]', detail: 'Show or set title', category: 'Conversation' },
153
- { id: '/save', label: '/save [name]', detail: 'Save session', category: 'Conversation' },
154
- { id: '/load', label: '/load <name>', detail: 'Load session', category: 'Conversation' },
155
- { id: '/sessions', label: '/sessions', detail: 'List saved sessions', category: 'Conversation' },
156
- { id: '/session', label: '/session', detail: 'Current session info', category: 'Conversation' },
157
- { id: '/session list', label: '/session list', detail: 'List all sessions', category: 'Conversation' },
158
- { id: '/session rename', label: '/session rename <name>', detail: 'Rename current session', category: 'Conversation' },
159
- { id: '/session resume', label: '/session resume <id>', detail: 'Load and resume a session', category: 'Conversation' },
160
- { id: '/session fork', label: '/session fork [name]', detail: 'Fork current session to new ID', category: 'Conversation' },
161
- { id: '/session save', label: '/session save [name]', detail: 'Force-save current session', category: 'Conversation' },
162
- { id: '/session info', label: '/session info [id]', detail: 'Show session details', category: 'Conversation' },
163
- { id: '/session export', label: '/session export <id> [format]', detail: 'Export session as markdown/text', category: 'Conversation' },
164
- { id: '/session search', label: '/session search <query>', detail: 'Search across all sessions', category: 'Conversation' },
165
- { id: '/session delete', label: '/session delete <id> --yes', detail: 'Delete a session', category: 'Conversation' },
166
- { id: '/undo', label: '/undo', detail: 'Remove last turn', category: 'Conversation' },
167
- { id: '/redo', label: '/redo', detail: 'Restore undone turn', category: 'Conversation' },
168
- { id: '/retry', label: '/retry [text]', detail: 'Re-send last message', category: 'Conversation' },
169
- { id: '/paste', label: '/paste', detail: 'Insert clipboard text or image into the prompt', category: 'Tools & System' },
170
- { id: '/shortcuts', label: '/shortcuts', detail: 'View keyboard shortcuts reference', category: 'Tools & System' },
171
- { id: '/commands', label: '/commands', detail: 'Browse all commands in a scrollable list', category: 'Tools & System' },
172
- { id: '/compat', label: '/compat', detail: 'Inspect connected-host and Agent Knowledge compatibility', category: 'Tools & System' },
173
- { id: '/secrets', label: '/secrets set|link|get|test|list|delete', detail: 'Manage encrypted and provider-backed secrets', category: 'Tools & System' },
174
- { id: '/bundle', label: '/bundle export|inspect|import', detail: 'Manage redacted Agent support bundles', category: 'Tools & System' },
175
- { id: '/help', label: '/help', detail: 'This help', category: 'Tools & System' },
176
- { id: '/quit', label: '/quit', detail: 'Exit', category: 'Tools & System' },
177
- ];
178
- ctx.openSelection('Help — Commands', items, { allowSearch: true }, (result) => {
179
- if (!result) return;
180
- const command = result.item.id;
181
- if (command.startsWith('/')) {
182
- const parts = command.slice(1).trim().split(/\s+/);
183
- const name = parts[0];
184
- const cmdArgs = parts.slice(1);
185
- void (ctx.executeCommand?.(name, cmdArgs) ?? registry.execute(name, cmdArgs, ctx));
186
- }
187
- });
255
+ openRegisteredCommandSelection(registry, ctx);
188
256
  return;
189
257
  }
190
- ctx.print('Open the Agent workspace first, then press / inside it to search every product action. Slash commands remain available: /agent, /brief, /knowledge, /memory, /notes, /personas, /skills, /routines, /channels, /approval, /automation, /schedule, /delegate, /model, /provider, /config, /compat, /bundle, /paste, /sessions, /bookmarks, /save, /load, /undo, /redo, /retry, /clear, /reset, /compact, /export, /title, /effort, /expand, /collapse, /quit');
258
+ ctx.print(registeredCommandListText(registry));
191
259
  },
192
260
  });
193
261
 
@@ -592,7 +592,7 @@ export function createAgentHarnessTool(deps: AgentHarnessToolDeps): Tool {
592
592
  if (args.mode === 'open_ui_surface') {
593
593
  const confirmationError = requireConfirmedAction(args, 'UI surface routing');
594
594
  if (confirmationError) return error(confirmationError);
595
- return output(openHarnessUiSurface(deps.commandContext, args));
595
+ return output(await openHarnessUiSurface(deps.commandContext, args));
596
596
  }
597
597
  if (args.mode === 'shortcuts') return output(listHarnessShortcuts(deps.commandContext, args));
598
598
  if (args.mode === 'keybindings') return output(listHarnessKeybindings(deps.commandContext, args));
@@ -1,4 +1,5 @@
1
1
  import type { CommandContext } from '../input/command-registry.ts';
2
+ import { openTtsProviderPicker, openTtsVoicePicker } from '../input/tts-settings-actions.ts';
2
3
 
3
4
  type UiSurfaceKind = 'overlay' | 'modal' | 'workspace' | 'picker';
4
5
 
@@ -23,7 +24,7 @@ interface UiSurfaceDefinition {
23
24
  readonly preferredModelRoute: string;
24
25
  readonly parameters?: readonly string[];
25
26
  readonly available: (context: CommandContext) => boolean;
26
- readonly open: (context: CommandContext, args: AgentHarnessUiSurfaceArgs) => Record<string, unknown>;
27
+ readonly open: (context: CommandContext, args: AgentHarnessUiSurfaceArgs) => Record<string, unknown> | Promise<Record<string, unknown>>;
27
28
  }
28
29
 
29
30
  function readString(value: unknown): string {
@@ -72,6 +73,10 @@ function settingsTarget(args: AgentHarnessUiSurfaceArgs): string | undefined {
72
73
  return readString(args.target || args.key || args.prefix) || undefined;
73
74
  }
74
75
 
76
+ function providerTarget(args: AgentHarnessUiSurfaceArgs): string | undefined {
77
+ return readString(args.target || args.key || args.prefix) || undefined;
78
+ }
79
+
75
80
  function optionalPane(args: AgentHarnessUiSurfaceArgs): 'top' | 'bottom' | undefined {
76
81
  const pane = readString(args.pane);
77
82
  return pane === 'top' || pane === 'bottom' ? pane : undefined;
@@ -294,6 +299,40 @@ const UI_SURFACES: readonly UiSurfaceDefinition[] = [
294
299
  return opened(surface, { target: 'main' });
295
300
  },
296
301
  },
302
+ {
303
+ id: 'tts-provider-picker',
304
+ label: 'TTS Provider Picker',
305
+ kind: 'picker',
306
+ summary: 'Interactive streaming TTS provider picker opened from the Agent settings flow.',
307
+ command: '/config tts.provider',
308
+ preferredModelRoute: 'Use settings/get_setting/set_setting for tts.provider when a concrete provider id is known; use open_ui_surface only to visibly navigate.',
309
+ available: (context) => typeof context.openSelection === 'function' && Boolean(context.platform.voiceProviderRegistry),
310
+ open: (context) => {
311
+ const surface = findSurfaceById('tts-provider-picker')!;
312
+ if (!context.openSelection || !context.platform.voiceProviderRegistry) return routeUnavailable(surface);
313
+ const handled = openTtsProviderPicker(context);
314
+ return handled ? opened(surface, { target: 'tts.provider' }) : routeUnavailable(surface);
315
+ },
316
+ },
317
+ {
318
+ id: 'tts-voice-picker',
319
+ label: 'TTS Voice Picker',
320
+ kind: 'picker',
321
+ summary: 'Interactive TTS voice picker opened from the Agent settings flow for the selected or supplied provider.',
322
+ command: '/config tts.voice',
323
+ preferredModelRoute: 'Use settings/get_setting/set_setting/reset_setting for tts.voice when a concrete voice id is known; use open_ui_surface only to visibly navigate.',
324
+ parameters: ['target'],
325
+ available: (context) => typeof context.openSelection === 'function' && Boolean(context.platform.voiceService),
326
+ open: async (context, args) => {
327
+ const surface = findSurfaceById('tts-voice-picker')!;
328
+ if (!context.openSelection || !context.platform.voiceService) return routeUnavailable(surface);
329
+ const providerId = providerTarget(args);
330
+ const handled = await openTtsVoicePicker(context, providerId);
331
+ return handled
332
+ ? opened(surface, { target: 'tts.voice', providerId: providerId ?? 'configured-default' })
333
+ : routeUnavailable(surface);
334
+ },
335
+ },
297
336
  {
298
337
  id: 'session-picker',
299
338
  label: 'Session Picker',
@@ -457,7 +496,7 @@ export function describeHarnessUiSurface(context: CommandContext, args: AgentHar
457
496
  return surface ? describeSurface(context, surface) : null;
458
497
  }
459
498
 
460
- export function openHarnessUiSurface(context: CommandContext, args: AgentHarnessUiSurfaceArgs): Record<string, unknown> {
499
+ export async function openHarnessUiSurface(context: CommandContext, args: AgentHarnessUiSurfaceArgs): Promise<Record<string, unknown>> {
461
500
  const surfaceId = readString(args.surfaceId || args.query);
462
501
  const surface = UI_SURFACES.find((entry) => entry.id === surfaceId || entry.label.toLowerCase() === surfaceId.toLowerCase());
463
502
  if (!surface) {
@@ -467,8 +506,9 @@ export function openHarnessUiSurface(context: CommandContext, args: AgentHarness
467
506
  availableSurfaces: UI_SURFACES.map((entry) => entry.id),
468
507
  };
469
508
  }
509
+ const routed = await surface.open(context, args);
470
510
  return {
471
- ...surface.open(context, args),
511
+ ...routed,
472
512
  descriptor: describeSurface(context, surface),
473
513
  };
474
514
  }
package/src/version.ts CHANGED
@@ -6,7 +6,7 @@ import { join } from 'node:path';
6
6
  // The prebuild script updates the fallback value before compilation.
7
7
  // Uses import.meta.dir (Bun) to locate package.json relative to this file,
8
8
  // which is correct regardless of the process working directory.
9
- let _version = '1.0.8';
9
+ let _version = '1.0.9';
10
10
  let _sdkVersion = '0.33.35';
11
11
  try {
12
12
  const pkg = JSON.parse(readFileSync(join(import.meta.dir, '..', 'package.json'), 'utf-8')) as {