@pellux/goodvibes-agent 1.0.22 → 1.0.24

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,18 @@
2
2
 
3
3
  Product-facing release notes for GoodVibes Agent.
4
4
 
5
+ ## 1.0.24 - 2026-06-03
6
+
7
+ - Resolve confirmed agent_harness run_command requests by the same command, commandName, target, or query lookup used for slash-command inspection.
8
+ - Refuse ambiguous slash-command run lookups with candidate commands before any handler runs.
9
+ - Refresh package-facing docs, model-facing schema text, and focused harness coverage for slash-command execution parity.
10
+
11
+ ## 1.0.23 - 2026-06-03
12
+
13
+ - Return ambiguous agent_harness slash-command detail lookups with candidate commands instead of collapsing broad descriptive matches to unknown.
14
+ - Keep exact slash command, alias, typed command, target, and unique descriptive lookup behavior unchanged.
15
+ - Refresh package-facing docs and focused harness coverage for no-guess slash-command lookup parity.
16
+
5
17
  ## 1.0.22 - 2026-06-03
6
18
 
7
19
  - Refuse ambiguous agent_harness model-tool schema lookup with candidate tools instead of selecting the first partial match.
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, inspect or run one workspace action by `actionId`, `command`, `target`, or `query`, list built-in panels and inspect one panel by `panelId`, `target`, or `query`, inspect modal/overlay/picker UI surfaces by `surfaceId`, `target`, or `query`, list top-level CLI mirrors and inspect one mirror by `cliCommand`, `command`, `commandName`, `target`, or `query`, inspect fixed shortcuts and configurable keybindings by `actionId`, `target`, `key`, or `query`, run shell-safe keybinding equivalents with confirmation, list slash commands, inspect one slash command by `command`, `commandName`, `target`, or `query` with parsed arguments and policy metadata, inspect model tool definitions or one model tool schema, inspect or change Agent settings by `key`, `target`, or `query` with confirmation, run concrete 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, command browser, conversation search, prompt-history search, slash-command mode, file picker, block actions, context, runtime activity, live process output, bookmarks, model/provider/reasoning-effort 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; each keybinding descriptor reports its model operation route, `run_keybinding` executes only supported shell-safe equivalents with confirmation, and prompt-editor-only or terminal-selection shortcuts remain explicit direct user interaction. `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`; single-action lookup and execution use the same user-facing search fields, return or preserve lookup metadata where the action result carries descriptors, and refuse ambiguous run requests with candidates; CLI mirror, panel, UI surface, keybinding, model tool, setting, and connected-host capability lookup use their catalog search fields and refuse ambiguous route, schema, capability, or mutation requests with candidates; 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. Direct local create editors for memory, notes, personas, skills, and routines can execute from submitted fields through `run_workspace_action` and `agent_local_registry` with confirmation. The `connected_host` report includes route families, allowed capabilities, blocked lifecycle/non-Agent surfaces, and availability for the first-class Agent tools; `connected_host_capability` inspects one allowed or blocked capability by id, target, or query with its route families and boundary. 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, inspect or run one workspace action by `actionId`, `command`, `target`, or `query`, list built-in panels and inspect one panel by `panelId`, `target`, or `query`, inspect modal/overlay/picker UI surfaces by `surfaceId`, `target`, or `query`, list top-level CLI mirrors and inspect one mirror by `cliCommand`, `command`, `commandName`, `target`, or `query`, inspect fixed shortcuts and configurable keybindings by `actionId`, `target`, `key`, or `query`, run shell-safe keybinding equivalents with confirmation, list slash commands, inspect or run one slash command by `command`, `commandName`, `target`, or `query` with parsed arguments and policy metadata, inspect model tool definitions or one model tool schema, inspect or change Agent settings by `key`, `target`, or `query` 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, command browser, conversation search, prompt-history search, slash-command mode, file picker, block actions, context, runtime activity, live process output, bookmarks, model/provider/reasoning-effort 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; each keybinding descriptor reports its model operation route, `run_keybinding` executes only supported shell-safe equivalents with confirmation, and prompt-editor-only or terminal-selection shortcuts remain explicit direct user interaction. `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`; single-action lookup and execution use the same user-facing search fields, return or preserve lookup metadata where the action result carries descriptors, and refuse ambiguous run requests with candidates; CLI mirror, panel, UI surface, keybinding, slash-command, model tool, setting, and connected-host capability lookup use their catalog search fields and refuse ambiguous route, schema, capability, or mutation requests with candidates; confirmed slash-command execution uses the same slash-command lookup and refuses ambiguous requests before any handler runs; 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. Direct local create editors for memory, notes, personas, skills, and routines can execute from submitted fields through `run_workspace_action` and `agent_local_registry` with confirmation. The `connected_host` report includes route families, allowed capabilities, blocked lifecycle/non-Agent surfaces, and availability for the first-class Agent tools; `connected_host_capability` inspects one allowed or blocked capability by id, target, or query with its route families and boundary. 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.22";
816511
+ var _version = "1.0.24";
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,
@@ -847775,13 +847717,13 @@ init_state3();
847775
847717
 
847776
847718
  // src/input/commands/recall-shared.ts
847777
847719
  var VALID_CLASSES = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
847778
- var VALID_SCOPES = ["session", "project", "team"];
847720
+ var VALID_SCOPES2 = ["session", "project", "team"];
847779
847721
  var VALID_REVIEW_STATES = ["fresh", "reviewed", "stale", "contradicted"];
847780
847722
  function isValidClass(s4) {
847781
847723
  return VALID_CLASSES.includes(s4);
847782
847724
  }
847783
847725
  function isValidScope(s4) {
847784
- return VALID_SCOPES.includes(s4);
847726
+ return VALID_SCOPES2.includes(s4);
847785
847727
  }
847786
847728
  function isValidReviewState(s4) {
847787
847729
  return VALID_REVIEW_STATES.includes(s4);
@@ -847824,7 +847766,7 @@ function handleRecallSearch(args2, context) {
847824
847766
  if (isValidScope(scope))
847825
847767
  filter.scope = scope;
847826
847768
  else {
847827
- context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES.join(", ")}.`);
847769
+ context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
847828
847770
  return;
847829
847771
  }
847830
847772
  }
@@ -847999,7 +847941,7 @@ function handleRecallList(args2, context) {
847999
847941
  if (scopeIdx !== -1 && args2[scopeIdx + 1]) {
848000
847942
  const scope = args2[scopeIdx + 1];
848001
847943
  if (!isValidScope(scope)) {
848002
- context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES.join(", ")}.`);
847944
+ context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
848003
847945
  return;
848004
847946
  }
848005
847947
  filter.scope = scope;
@@ -848049,7 +847991,7 @@ async function handleRecallAdd(args2, context) {
848049
847991
  const tags = tagsRaw ? tagsRaw.split(",").map((token) => token.trim()).filter(Boolean) : [];
848050
847992
  const scope = scopeRaw && isValidScope(scopeRaw) ? scopeRaw : "project";
848051
847993
  if (scopeRaw && !isValidScope(scopeRaw)) {
848052
- context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${VALID_SCOPES.join(", ")}.`);
847994
+ context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${VALID_SCOPES2.join(", ")}.`);
848053
847995
  return;
848054
847996
  }
848055
847997
  const provenance = [];
@@ -848183,7 +848125,7 @@ function handleRecallExport(args2, context) {
848183
848125
  if (scopeIdx !== -1 && commandArgs[scopeIdx + 1]) {
848184
848126
  const scope = commandArgs[scopeIdx + 1];
848185
848127
  if (!isValidScope(scope)) {
848186
- context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES.join(", ")}.`);
848128
+ context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
848187
848129
  return;
848188
848130
  }
848189
848131
  filter.scope = scope;
@@ -848262,7 +848204,7 @@ function handleRecallHandoffExport(args2, context) {
848262
848204
  const scopeIdx = commandArgs.indexOf("--scope");
848263
848205
  const scopeRaw = scopeIdx !== -1 ? commandArgs[scopeIdx + 1] : "team";
848264
848206
  if (!scopeRaw || !isValidScope(scopeRaw)) {
848265
- context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${VALID_SCOPES.join(", ")}.`);
848207
+ context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${VALID_SCOPES2.join(", ")}.`);
848266
848208
  return;
848267
848209
  }
848268
848210
  const bundle = memory.exportBundle({ scope: scopeRaw });
@@ -848378,7 +848320,7 @@ function handleRecallPromote(args2, context) {
848378
848320
  const id = parsed.rest[0];
848379
848321
  const scope = parsed.rest[1];
848380
848322
  if (!id || !scope || !isValidScope(scope)) {
848381
- context.print(`[memory] Usage: /memory promote <id> <${VALID_SCOPES.join("|")}> --yes`);
848323
+ context.print(`[memory] Usage: /memory promote <id> <${VALID_SCOPES2.join("|")}> --yes`);
848382
848324
  return;
848383
848325
  }
848384
848326
  if (!parsed.yes) {
@@ -862311,7 +862253,7 @@ import { mkdirSync as mkdirSync64, readFileSync as readFileSync86, writeFileSync
862311
862253
  import { dirname as dirname63, resolve as resolve39 } from "path";
862312
862254
  init_state3();
862313
862255
  var VALID_CLASSES2 = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
862314
- var VALID_SCOPES3 = ["session", "project", "team"];
862256
+ var VALID_SCOPES4 = ["session", "project", "team"];
862315
862257
  var VALID_REVIEW_STATES3 = ["fresh", "reviewed", "stale", "contradicted"];
862316
862258
  var VALID_PROVENANCE_KINDS = ["session", "turn", "task", "event", "file"];
862317
862259
  var VALUE_OPTIONS = new Set([
@@ -862411,7 +862353,7 @@ function isMemoryClass2(value) {
862411
862353
  return VALID_CLASSES2.includes(value);
862412
862354
  }
862413
862355
  function isMemoryScope2(value) {
862414
- return VALID_SCOPES3.includes(value);
862356
+ return VALID_SCOPES4.includes(value);
862415
862357
  }
862416
862358
  function isReviewState(value) {
862417
862359
  return VALID_REVIEW_STATES3.includes(value);
@@ -862426,7 +862368,7 @@ function requireClass(value) {
862426
862368
  }
862427
862369
  function requireScope(value) {
862428
862370
  if (!value || !isMemoryScope2(value))
862429
- throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${VALID_SCOPES3.join(", ")}`);
862371
+ throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${VALID_SCOPES4.join(", ")}`);
862430
862372
  return value;
862431
862373
  }
862432
862374
  function optionalScope(value) {
@@ -880040,6 +879982,15 @@ function describeCommand(command8, lookup) {
880040
879982
  policy: describeCommandPolicy(command8.name)
880041
879983
  };
880042
879984
  }
879985
+ function describeCommandCandidate(command8) {
879986
+ return {
879987
+ name: command8.name,
879988
+ slash: `/${command8.name}`,
879989
+ aliases: command8.aliases ?? [],
879990
+ description: command8.description,
879991
+ usage: command8.usage ?? ""
879992
+ };
879993
+ }
880043
879994
  function commandDetailLookupFromArgs(args2) {
880044
879995
  const rawCommand = readString51(args2.command);
880045
879996
  if (rawCommand) {
@@ -880069,13 +880020,14 @@ function commandDetailLookupFromArgs(args2) {
880069
880020
  }
880070
880021
  return null;
880071
880022
  }
880072
- function resolveCommandDetail(commandRegistry, args2) {
880023
+ function resolveHarnessCommandDetail(commandRegistry, args2) {
880073
880024
  const lookup = commandDetailLookupFromArgs(args2);
880074
880025
  if (!lookup?.parsedName)
880075
880026
  return null;
880076
880027
  const direct = commandRegistry.get(lookup.parsedName);
880077
880028
  if (direct) {
880078
880029
  return {
880030
+ status: "found",
880079
880031
  command: direct,
880080
880032
  lookup: {
880081
880033
  ...lookup,
@@ -880086,19 +880038,33 @@ function resolveCommandDetail(commandRegistry, args2) {
880086
880038
  const normalized = lookup.parsedName.toLowerCase();
880087
880039
  for (const command8 of commandRegistry.list()) {
880088
880040
  if (command8.name.toLowerCase() === normalized) {
880089
- return { command: command8, lookup: { ...lookup, resolvedBy: "case-insensitive-name" } };
880041
+ return { status: "found", command: command8, lookup: { ...lookup, resolvedBy: "case-insensitive-name" } };
880090
880042
  }
880091
880043
  if ((command8.aliases ?? []).some((alias) => alias.toLowerCase() === normalized)) {
880092
- return { command: command8, lookup: { ...lookup, resolvedBy: "case-insensitive-alias" } };
880044
+ return { status: "found", command: command8, lookup: { ...lookup, resolvedBy: "case-insensitive-alias" } };
880093
880045
  }
880094
880046
  }
880095
880047
  const descriptionMatches = commandRegistry.list().filter((command8) => commandMatches(command8, lookup.input));
880096
880048
  if (descriptionMatches.length === 1) {
880097
- return { command: descriptionMatches[0], lookup: { ...lookup, resolvedBy: "description" } };
880049
+ return { status: "found", command: descriptionMatches[0], lookup: { ...lookup, resolvedBy: "description" } };
880050
+ }
880051
+ if (descriptionMatches.length > 1) {
880052
+ return {
880053
+ status: "ambiguous",
880054
+ input: lookup.input,
880055
+ candidates: descriptionMatches.map(describeCommandCandidate).slice(0, 8)
880056
+ };
880098
880057
  }
880099
880058
  const prefixMatches = commandRegistry.fuzzyMatch(lookup.parsedName).filter((entry) => entry.score >= 80);
880100
880059
  if (prefixMatches.length === 1) {
880101
- return { command: prefixMatches[0].command, lookup: { ...lookup, resolvedBy: "prefix" } };
880060
+ return { status: "found", command: prefixMatches[0].command, lookup: { ...lookup, resolvedBy: "prefix" } };
880061
+ }
880062
+ if (prefixMatches.length > 1) {
880063
+ return {
880064
+ status: "ambiguous",
880065
+ input: lookup.input,
880066
+ candidates: prefixMatches.map((entry) => describeCommandCandidate(entry.command)).slice(0, 8)
880067
+ };
880102
880068
  }
880103
880069
  return null;
880104
880070
  }
@@ -880108,8 +880074,12 @@ function listHarnessCommands(commandRegistry, args2) {
880108
880074
  return commandRegistry.list().filter((command8) => commandMatches(command8, query2)).sort((a4, b3) => a4.name.localeCompare(b3.name)).slice(0, limit3).map((command8) => describeCommand(command8));
880109
880075
  }
880110
880076
  function describeHarnessCommand(commandRegistry, args2) {
880111
- const detail = resolveCommandDetail(commandRegistry, args2);
880112
- return detail ? describeCommand(detail.command, detail.lookup) : null;
880077
+ const detail = resolveHarnessCommandDetail(commandRegistry, args2);
880078
+ if (detail?.status === "found")
880079
+ return describeCommand(detail.command, detail.lookup);
880080
+ if (detail?.status === "ambiguous")
880081
+ return { status: "ambiguous", input: detail.input, candidates: detail.candidates };
880082
+ return null;
880113
880083
  }
880114
880084
 
880115
880085
  // src/tools/agent-harness-keybinding-metadata.ts
@@ -881483,7 +881453,7 @@ var AGENT_HARNESS_PARAMETER_PROPERTIES = {
881483
881453
  },
881484
881454
  commandName: {
881485
881455
  type: "string",
881486
- description: "Slash command root without the leading slash for mode command or run_command, or a top-level CLI command token for cli_command."
881456
+ description: "Slash command root without the leading slash for mode command or run_command, or a top-level CLI command token for cli_command. run_command can also resolve one slash command by target or query when the lookup is unique."
881487
881457
  },
881488
881458
  args: {
881489
881459
  type: "array",
@@ -882415,11 +882385,6 @@ function readLimit11(value, fallback) {
882415
882385
  return fallback;
882416
882386
  return Math.max(1, Math.min(500, Math.trunc(parsed)));
882417
882387
  }
882418
- function readStringArray13(value) {
882419
- if (!Array.isArray(value))
882420
- return [];
882421
- return value.map((entry) => typeof entry === "string" ? entry : String(entry));
882422
- }
882423
882388
  function readFieldMap3(value) {
882424
882389
  if (typeof value !== "object" || value === null || Array.isArray(value))
882425
882390
  return {};
@@ -882602,25 +882567,8 @@ function requireConfirmedAction(args2, action2) {
882602
882567
  return `${action2} requires confirm:true after an explicit user request.`;
882603
882568
  return null;
882604
882569
  }
882605
- function commandFromArgs(args2) {
882606
- const rawCommand = readString58(args2.command);
882607
- if (rawCommand) {
882608
- const parsed = parseSlashCommand(rawCommand);
882609
- if (!parsed.name)
882610
- return null;
882611
- return {
882612
- name: parsed.name,
882613
- args: parsed.args
882614
- };
882615
- }
882616
- const commandName = readString58(args2.commandName).replace(/^\//, "");
882617
- if (!commandName)
882618
- return null;
882619
- const commandArgs = readStringArray13(args2.args);
882620
- return {
882621
- name: commandName,
882622
- args: commandArgs
882623
- };
882570
+ function invocationArgsFromLookup(lookup) {
882571
+ return lookup.resolvedBy === "description" ? [] : lookup.parsedArgs;
882624
882572
  }
882625
882573
  function safeCommandDisplay(name51) {
882626
882574
  return `/${name51}`;
@@ -882629,11 +882577,12 @@ async function runCommand2(deps, args2) {
882629
882577
  const confirmationError2 = requireConfirmedAction(args2, "Slash command invocation");
882630
882578
  if (confirmationError2)
882631
882579
  return error52(confirmationError2);
882632
- const parsed = commandFromArgs(args2);
882633
- if (!parsed)
882634
- return error52("run_command requires command or commandName.");
882635
- if (!deps.commandRegistry.get(parsed.name))
882636
- return error52(`Unknown slash command /${parsed.name}. Use mode:"commands" to inspect available commands.`);
882580
+ const resolved = resolveHarnessCommandDetail(deps.commandRegistry, args2);
882581
+ if (resolved?.status === "ambiguous") {
882582
+ return error52(`Ambiguous slash command ${resolved.input}. Candidates: ${JSON.stringify(resolved.candidates)}`);
882583
+ }
882584
+ if (!resolved)
882585
+ return error52('run_command requires a valid command, commandName, target, or query. Use mode:"commands" to inspect available commands.');
882637
882586
  const printed = [];
882638
882587
  const toolContext = {
882639
882588
  ...deps.commandContext,
@@ -882641,15 +882590,17 @@ async function runCommand2(deps, args2) {
882641
882590
  printed.push(text);
882642
882591
  },
882643
882592
  renderRequest: () => {},
882644
- executeCommand: async (name51, commandArgs) => {
882645
- return deps.commandRegistry.execute(name51, commandArgs, toolContext);
882593
+ executeCommand: async (name51, commandArgs2) => {
882594
+ return deps.commandRegistry.execute(name51, commandArgs2, toolContext);
882646
882595
  }
882647
882596
  };
882648
- const handled = await deps.commandRegistry.execute(parsed.name, [...parsed.args], toolContext);
882597
+ const commandArgs = invocationArgsFromLookup(resolved.lookup);
882598
+ const handled = await deps.commandRegistry.execute(resolved.command.name, [...commandArgs], toolContext);
882649
882599
  if (!handled)
882650
- return error52(`Unknown slash command /${parsed.name}.`);
882600
+ return error52(`Unknown slash command /${resolved.command.name}.`);
882651
882601
  return output7([
882652
- `Command ${safeCommandDisplay(parsed.name)} completed.`,
882602
+ `Command ${safeCommandDisplay(resolved.command.name)} completed.`,
882603
+ `Resolved by ${resolved.lookup.source} ${resolved.lookup.resolvedBy}.`,
882653
882604
  printed.length > 0 ? printed.join(`
882654
882605
  `) : "(no text output)"
882655
882606
  ].join(`
@@ -882842,7 +882793,7 @@ function createAgentHarnessTool(deps) {
882842
882793
  panels: 'Use mode:"panels" to list and mode:"panel" with panelId, target, or query to inspect built-in panel catalog/open state; use mode:"open_panel" with confirm:true plus explicitUserRequest to route a visible panel/workspace change.',
882843
882794
  uiSurfaces: 'Use mode:"ui_surfaces" to list and mode:"ui_surface" with surfaceId, target, or query to inspect modal/overlay/picker/workspace surfaces; use mode:"open_ui_surface" with confirm:true plus explicitUserRequest to route visible UI navigation.',
882844
882795
  shortcuts: 'Use mode:"shortcuts" to inspect fixed shortcuts plus configurable keybindings. Use mode:"keybinding" with actionId, target, key, or query; use mode:"run_keybinding" for confirmation-gated shell-safe shortcut equivalents; use mode:"set_keybinding" and mode:"reset_keybinding" with confirm:true plus explicitUserRequest to edit the same config file the user edits.',
882845
- slashCommands: 'Use mode:"commands" to list slash commands and mode:"command" with command, commandName, target, or query to inspect one command; use mode:"run_command" with confirm:true plus explicitUserRequest to execute.',
882796
+ slashCommands: 'Use mode:"commands" to list slash commands and mode:"command" with command, commandName, target, or query to inspect one command; use mode:"run_command" with the same lookup fields plus confirm:true and explicitUserRequest to execute one uniquely resolved command.',
882846
882797
  workspace: 'Use mode:"workspace_actions" to list, mode:"workspace_action" with actionId, command, target, or query for one action and editor schema, and mode:"run_workspace_action" with the same lookup fields plus confirmation for executable actions; set includeParameters:true on workspace_actions to inline editor schemas.',
882847
882798
  settings: 'Use mode:"settings" to list and mode:"get_setting" with key, target, or query for one setting. Use mode:"set_setting" or mode:"reset_setting" with key, target, or query plus confirm:true and explicitUserRequest.',
882848
882799
  tools: 'Use mode:"tools" to list first-class model tools, or mode:"tool" with toolName, target, or query to inspect one schema.',
@@ -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, single workspace-action inspection and execution by action id, command, or lookup text, built-in panel discovery/routing by panel id or lookup text, modal/overlay/picker UI surface discovery/routing by surface id or lookup text, top-level CLI mirror discovery and single-mirror lookup by command string, command token, or lookup text, fixed shortcut and configurable keybinding discovery, keybinding inspection/mutation by action id or lookup text, confirmation-gated shell-safe keybinding execution, slash-command discovery, single slash-command inspection by typed command or lookup text, command policy metadata, command execution with confirmation, model tool discovery and single-tool schema inspection, settings inspection/mutation by key or lookup text, connected-host capability inventory, single connected-host capability inspection, 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, command browser, conversation search, prompt-history search, slash-command mode, file picker, block actions, context, runtime activity, live process output, bookmarks, model/provider/reasoning-effort 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; keybinding descriptors include a model operation route, `run_keybinding` executes supported shell-safe equivalents only with confirmation, prompt-editor-only or terminal-selection shortcuts remain direct user interaction, and 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; single-action lookup and execution use the same user-facing search fields, return lookup metadata where the action result carries descriptors, and refuse ambiguous run requests with candidates. Single-CLI-mirror, single-panel, single-surface, single-keybinding, single-tool, single-setting, and single-connected-host-capability lookup use their catalog search fields, return lookup metadata where the result carries it, and refuse ambiguous route, schema, capability, or mutation requests with candidates. 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. Direct local create editors for memory, notes, personas, skills, and routines can execute from submitted fields through `run_workspace_action` and `agent_local_registry` with confirmation. 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, single workspace-action inspection and execution by action id, command, or lookup text, built-in panel discovery/routing by panel id or lookup text, modal/overlay/picker UI surface discovery/routing by surface id or lookup text, top-level CLI mirror discovery and single-mirror lookup by command string, command token, or lookup text, fixed shortcut and configurable keybinding discovery, keybinding inspection/mutation by action id or lookup text, confirmation-gated shell-safe keybinding execution, slash-command discovery, single slash-command inspection by typed command or lookup text, command policy metadata, single slash-command execution by typed command or lookup text with confirmation, model tool discovery and single-tool schema inspection, settings inspection/mutation by key or lookup text, connected-host capability inventory, single connected-host capability inspection, 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, command browser, conversation search, prompt-history search, slash-command mode, file picker, block actions, context, runtime activity, live process output, bookmarks, model/provider/reasoning-effort 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; keybinding descriptors include a model operation route, `run_keybinding` executes supported shell-safe equivalents only with confirmation, prompt-editor-only or terminal-selection shortcuts remain direct user interaction, and 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; single-action lookup and execution use the same user-facing search fields, return lookup metadata where the action result carries descriptors, and refuse ambiguous run requests with candidates. Single-CLI-mirror, single-panel, single-surface, single-keybinding, single-slash-command, single-tool, single-setting, and single-connected-host-capability lookup use their catalog search fields, return lookup metadata where the result carries it, and refuse ambiguous route, schema, capability, or mutation requests with candidates; confirmed slash-command execution uses the same slash-command lookup and refuses ambiguous requests before any handler runs. 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. Direct local create editors for memory, notes, personas, skills, and routines can execute from submitted fields through `run_workspace_action` and `agent_local_registry` with confirmation. 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
 
@@ -50,7 +50,7 @@ The main Agent model has an Agent-owned harness bridge rather than generic SDK s
50
50
  - `agent_work_plan`: keep the visible Agent-local work plan current from the conversation.
51
51
  - `agent_channel_send`, `agent_notify`, `agent_reminder_schedule`, and `agent_media_generate`: perform confirmed external delivery, notification, reminder, or media actions when the user explicitly asks.
52
52
 
53
- `agent_harness` discovery modes are read-only. `summary` reports the model access map; `panels` lists the built-in panel catalog, and `panel` resolves one panel by `panelId`, `target`, or `query` with current open/focused state plus its matching Agent workspace route; `ui_surfaces` lists modal, overlay, picker, and workspace entrypoints, and `ui_surface` resolves one by `surfaceId`, `target`, or `query` with shell-opener availability and preferred model routes; `cli_commands` lists top-level package CLI mirror metadata, and `cli_command` resolves one mirror by `cliCommand`, `command`, `commandName`, `target`, or `query`, returning parser output for concrete invocations, blocked command tokens, lookup metadata, and preferred in-process model routes; `shortcuts` returns fixed runtime/editor shortcuts plus configurable keybindings; `keybindings` lists the live resolved keybinding table, and `keybinding`, `run_keybinding`, `set_keybinding`, and `reset_keybinding` resolve one action by `actionId`, `target`, `key`, or `query` with default bindings, custom state, config path, lookup metadata, and model-operation route metadata; `commands` lists slash-command descriptions; `command` returns one slash-command detail by `command`, `commandName`, `target`, or `query`, including parsed arguments 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` and `run_workspace_action` resolve one action by `actionId`, `command`, `target`, or `query`, using the same user-facing action-search fields; inspection returns lookup metadata plus editor schema, and execution refuses ambiguous requests with candidate actions before any effect; `tools` lists model tool definitions and can inline JSON schemas with `includeParameters:true`; `tool` returns one model tool schema by `toolName`, `target`, or `query` and refuses ambiguous schema lookup with candidate tools; `settings` returns setting descriptors plus setting policy; `get_setting`, `set_setting`, and `reset_setting` resolve one setting by `key`, `target`, or `query`, return lookup metadata on success, and refuse ambiguous matches with candidate settings; `connected_host` returns the connected-host route families, allowed capabilities, blocked capabilities, and first-class tool availability; `connected_host_capability` returns one allowed or blocked connected-host capability by `capabilityId`, `target`, or `query` with related route families and boundary text and refuses ambiguous capability lookup with candidates; 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.
53
+ `agent_harness` discovery modes are read-only. `summary` reports the model access map; `panels` lists the built-in panel catalog, and `panel` resolves one panel by `panelId`, `target`, or `query` with current open/focused state plus its matching Agent workspace route; `ui_surfaces` lists modal, overlay, picker, and workspace entrypoints, and `ui_surface` resolves one by `surfaceId`, `target`, or `query` with shell-opener availability and preferred model routes; `cli_commands` lists top-level package CLI mirror metadata, and `cli_command` resolves one mirror by `cliCommand`, `command`, `commandName`, `target`, or `query`, returning parser output for concrete invocations, blocked command tokens, lookup metadata, and preferred in-process model routes; `shortcuts` returns fixed runtime/editor shortcuts plus configurable keybindings; `keybindings` lists the live resolved keybinding table, and `keybinding`, `run_keybinding`, `set_keybinding`, and `reset_keybinding` resolve one action by `actionId`, `target`, `key`, or `query` with default bindings, custom state, config path, lookup metadata, and model-operation route metadata; `commands` lists slash-command descriptions; `command` returns one slash-command detail by `command`, `commandName`, `target`, or `query`, including parsed arguments plus effect/confirmation/preferred-tool/boundary policy metadata, and refuses ambiguous command lookup with candidate commands; `run_command` executes one confirmed slash command using the same `command`, `commandName`, `target`, or `query` resolver and refuses ambiguous command lookup before any handler runs; `workspace_actions` lists Agent workspace actions and can inline editor field schemas with `includeParameters:true`; `workspace_action` and `run_workspace_action` resolve one action by `actionId`, `command`, `target`, or `query`, using the same user-facing action-search fields; inspection returns lookup metadata plus editor schema, and execution refuses ambiguous requests with candidate actions before any effect; `tools` lists model tool definitions and can inline JSON schemas with `includeParameters:true`; `tool` returns one model tool schema by `toolName`, `target`, or `query` and refuses ambiguous schema lookup with candidate tools; `settings` returns setting descriptors plus setting policy; `get_setting`, `set_setting`, and `reset_setting` resolve one setting by `key`, `target`, or `query`, return lookup metadata on success, and refuse ambiguous matches with candidate settings; `connected_host` returns the connected-host route families, allowed capabilities, blocked capabilities, and first-class tool availability; `connected_host_capability` returns one allowed or blocked connected-host capability by `capabilityId`, `target`, or `query` with related route families and boundary text and refuses ambiguous capability lookup with candidates; 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
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/reasoning-effort pickers, TTS provider/voice pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, conversation search, prompt-history search, slash-command mode, command browser, file picker, block actions, bookmarks, context inspector, runtime activity monitor, live process output, 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. Ambiguous UI surface lookup text is refused with candidate surfaces instead of routed.
56
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-agent",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
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",
@@ -11,7 +11,7 @@ export interface AgentHarnessCommandCatalogArgs {
11
11
  readonly limit?: unknown;
12
12
  }
13
13
 
14
- interface CommandDetailLookup {
14
+ export interface CommandDetailLookup {
15
15
  readonly source: 'command' | 'commandName' | 'target' | 'query';
16
16
  readonly input: string;
17
17
  readonly parsedName: string;
@@ -19,6 +19,10 @@ interface CommandDetailLookup {
19
19
  readonly resolvedBy: 'name' | 'alias' | 'case-insensitive-name' | 'case-insensitive-alias' | 'description' | 'prefix';
20
20
  }
21
21
 
22
+ export type CommandDetailResolution =
23
+ | { readonly status: 'found'; readonly command: SlashCommand; readonly lookup: CommandDetailLookup }
24
+ | { readonly status: 'ambiguous'; readonly input: string; readonly candidates: readonly Record<string, unknown>[] };
25
+
22
26
  function readString(value: unknown): string {
23
27
  return typeof value === 'string' ? value.trim() : '';
24
28
  }
@@ -67,6 +71,16 @@ function describeCommand(command: SlashCommand, lookup?: CommandDetailLookup): R
67
71
  };
68
72
  }
69
73
 
74
+ function describeCommandCandidate(command: SlashCommand): Record<string, unknown> {
75
+ return {
76
+ name: command.name,
77
+ slash: `/${command.name}`,
78
+ aliases: command.aliases ?? [],
79
+ description: command.description,
80
+ usage: command.usage ?? '',
81
+ };
82
+ }
83
+
70
84
  function commandDetailLookupFromArgs(args: AgentHarnessCommandCatalogArgs): Omit<CommandDetailLookup, 'resolvedBy'> | null {
71
85
  const rawCommand = readString(args.command);
72
86
  if (rawCommand) {
@@ -97,12 +111,13 @@ function commandDetailLookupFromArgs(args: AgentHarnessCommandCatalogArgs): Omit
97
111
  return null;
98
112
  }
99
113
 
100
- function resolveCommandDetail(commandRegistry: CommandRegistry, args: AgentHarnessCommandCatalogArgs): { readonly command: SlashCommand; readonly lookup: CommandDetailLookup } | null {
114
+ export function resolveHarnessCommandDetail(commandRegistry: CommandRegistry, args: AgentHarnessCommandCatalogArgs): CommandDetailResolution | null {
101
115
  const lookup = commandDetailLookupFromArgs(args);
102
116
  if (!lookup?.parsedName) return null;
103
117
  const direct = commandRegistry.get(lookup.parsedName);
104
118
  if (direct) {
105
119
  return {
120
+ status: 'found',
106
121
  command: direct,
107
122
  lookup: {
108
123
  ...lookup,
@@ -114,21 +129,35 @@ function resolveCommandDetail(commandRegistry: CommandRegistry, args: AgentHarne
114
129
  const normalized = lookup.parsedName.toLowerCase();
115
130
  for (const command of commandRegistry.list()) {
116
131
  if (command.name.toLowerCase() === normalized) {
117
- return { command, lookup: { ...lookup, resolvedBy: 'case-insensitive-name' } };
132
+ return { status: 'found', command, lookup: { ...lookup, resolvedBy: 'case-insensitive-name' } };
118
133
  }
119
134
  if ((command.aliases ?? []).some((alias) => alias.toLowerCase() === normalized)) {
120
- return { command, lookup: { ...lookup, resolvedBy: 'case-insensitive-alias' } };
135
+ return { status: 'found', command, lookup: { ...lookup, resolvedBy: 'case-insensitive-alias' } };
121
136
  }
122
137
  }
123
138
 
124
139
  const descriptionMatches = commandRegistry.list().filter((command) => commandMatches(command, lookup.input));
125
140
  if (descriptionMatches.length === 1) {
126
- return { command: descriptionMatches[0]!, lookup: { ...lookup, resolvedBy: 'description' } };
141
+ return { status: 'found', command: descriptionMatches[0]!, lookup: { ...lookup, resolvedBy: 'description' } };
142
+ }
143
+ if (descriptionMatches.length > 1) {
144
+ return {
145
+ status: 'ambiguous',
146
+ input: lookup.input,
147
+ candidates: descriptionMatches.map(describeCommandCandidate).slice(0, 8),
148
+ };
127
149
  }
128
150
 
129
151
  const prefixMatches = commandRegistry.fuzzyMatch(lookup.parsedName).filter((entry) => entry.score >= 80);
130
152
  if (prefixMatches.length === 1) {
131
- return { command: prefixMatches[0]!.command, lookup: { ...lookup, resolvedBy: 'prefix' } };
153
+ return { status: 'found', command: prefixMatches[0]!.command, lookup: { ...lookup, resolvedBy: 'prefix' } };
154
+ }
155
+ if (prefixMatches.length > 1) {
156
+ return {
157
+ status: 'ambiguous',
158
+ input: lookup.input,
159
+ candidates: prefixMatches.map((entry) => describeCommandCandidate(entry.command)).slice(0, 8),
160
+ };
132
161
  }
133
162
  return null;
134
163
  }
@@ -144,6 +173,8 @@ export function listHarnessCommands(commandRegistry: CommandRegistry, args: Agen
144
173
  }
145
174
 
146
175
  export function describeHarnessCommand(commandRegistry: CommandRegistry, args: AgentHarnessCommandCatalogArgs): Record<string, unknown> | null {
147
- const detail = resolveCommandDetail(commandRegistry, args);
148
- return detail ? describeCommand(detail.command, detail.lookup) : null;
176
+ const detail = resolveHarnessCommandDetail(commandRegistry, args);
177
+ if (detail?.status === 'found') return describeCommand(detail.command, detail.lookup);
178
+ if (detail?.status === 'ambiguous') return { status: 'ambiguous', input: detail.input, candidates: detail.candidates };
179
+ return null;
149
180
  }
@@ -35,7 +35,7 @@ export const AGENT_HARNESS_PARAMETER_PROPERTIES = {
35
35
  },
36
36
  commandName: {
37
37
  type: 'string',
38
- description: 'Slash command root without the leading slash for mode command or run_command, or a top-level CLI command token for cli_command.',
38
+ description: 'Slash command root without the leading slash for mode command or run_command, or a top-level CLI command token for cli_command. run_command can also resolve one slash command by target or query when the lookup is unique.',
39
39
  },
40
40
  args: {
41
41
  type: 'array',
@@ -16,9 +16,8 @@ import type {
16
16
  AgentWorkspaceLocalLibraryItem,
17
17
  AgentWorkspaceRuntimeSnapshot,
18
18
  } from '../input/agent-workspace-types.ts';
19
- import { parseSlashCommand } from '../input/slash-command-parser.ts';
20
19
  import { blockedHarnessCliCommandTokens, describeHarnessCliCommand, listHarnessCliCommands, totalHarnessCliCommands } from './agent-harness-cli-metadata.ts';
21
- import { describeHarnessCommand, listHarnessCommands } from './agent-harness-command-catalog.ts';
20
+ import { describeHarnessCommand, listHarnessCommands, resolveHarnessCommandDetail, type CommandDetailLookup } from './agent-harness-command-catalog.ts';
22
21
  import { describeHarnessKeybinding, listHarnessKeybindings, listHarnessShortcuts, resetHarnessKeybinding, runHarnessKeybinding, setHarnessKeybinding, totalHarnessKeybindings, totalHarnessShortcuts } from './agent-harness-keybinding-metadata.ts';
23
22
  import { describeHarnessPanel, listHarnessPanels, openHarnessPanel, totalHarnessPanels } from './agent-harness-panel-metadata.ts';
24
23
  import { connectedHostStatusSummary } from './agent-harness-connected-host-status.ts';
@@ -126,11 +125,6 @@ function readLimit(value: unknown, fallback: number): number {
126
125
  return Math.max(1, Math.min(500, Math.trunc(parsed)));
127
126
  }
128
127
 
129
- function readStringArray(value: unknown): readonly string[] {
130
- if (!Array.isArray(value)) return [];
131
- return value.map((entry) => typeof entry === 'string' ? entry : String(entry));
132
- }
133
-
134
128
  function readFieldMap(value: unknown): Readonly<Record<string, string>> {
135
129
  if (typeof value !== 'object' || value === null || Array.isArray(value)) return {};
136
130
  return Object.fromEntries(Object.entries(value).map(([key, entry]) => [key, typeof entry === 'string' ? entry : String(entry)]));
@@ -330,23 +324,8 @@ function requireConfirmedAction(args: AgentHarnessToolArgs, action: string): str
330
324
  return null;
331
325
  }
332
326
 
333
- function commandFromArgs(args: AgentHarnessToolArgs): { readonly name: string; readonly args: readonly string[] } | null {
334
- const rawCommand = readString(args.command);
335
- if (rawCommand) {
336
- const parsed = parseSlashCommand(rawCommand);
337
- if (!parsed.name) return null;
338
- return {
339
- name: parsed.name,
340
- args: parsed.args,
341
- };
342
- }
343
- const commandName = readString(args.commandName).replace(/^\//, '');
344
- if (!commandName) return null;
345
- const commandArgs = readStringArray(args.args);
346
- return {
347
- name: commandName,
348
- args: commandArgs,
349
- };
327
+ function invocationArgsFromLookup(lookup: CommandDetailLookup): readonly string[] {
328
+ return lookup.resolvedBy === 'description' ? [] : lookup.parsedArgs;
350
329
  }
351
330
 
352
331
  function safeCommandDisplay(name: string): string {
@@ -356,9 +335,11 @@ function safeCommandDisplay(name: string): string {
356
335
  async function runCommand(deps: AgentHarnessToolDeps, args: AgentHarnessToolArgs): Promise<{ readonly success: boolean; readonly output?: string; readonly error?: string }> {
357
336
  const confirmationError = requireConfirmedAction(args, 'Slash command invocation');
358
337
  if (confirmationError) return error(confirmationError);
359
- const parsed = commandFromArgs(args);
360
- if (!parsed) return error('run_command requires command or commandName.');
361
- if (!deps.commandRegistry.get(parsed.name)) return error(`Unknown slash command /${parsed.name}. Use mode:"commands" to inspect available commands.`);
338
+ const resolved = resolveHarnessCommandDetail(deps.commandRegistry, args);
339
+ if (resolved?.status === 'ambiguous') {
340
+ return error(`Ambiguous slash command ${resolved.input}. Candidates: ${JSON.stringify(resolved.candidates)}`);
341
+ }
342
+ if (!resolved) return error('run_command requires a valid command, commandName, target, or query. Use mode:"commands" to inspect available commands.');
362
343
 
363
344
  const printed: string[] = [];
364
345
  const toolContext: CommandContext = {
@@ -371,10 +352,12 @@ async function runCommand(deps: AgentHarnessToolDeps, args: AgentHarnessToolArgs
371
352
  return deps.commandRegistry.execute(name, commandArgs, toolContext);
372
353
  },
373
354
  };
374
- const handled = await deps.commandRegistry.execute(parsed.name, [...parsed.args], toolContext);
375
- if (!handled) return error(`Unknown slash command /${parsed.name}.`);
355
+ const commandArgs = invocationArgsFromLookup(resolved.lookup);
356
+ const handled = await deps.commandRegistry.execute(resolved.command.name, [...commandArgs], toolContext);
357
+ if (!handled) return error(`Unknown slash command /${resolved.command.name}.`);
376
358
  return output([
377
- `Command ${safeCommandDisplay(parsed.name)} completed.`,
359
+ `Command ${safeCommandDisplay(resolved.command.name)} completed.`,
360
+ `Resolved by ${resolved.lookup.source} ${resolved.lookup.resolvedBy}.`,
378
361
  printed.length > 0 ? printed.join('\n') : '(no text output)',
379
362
  ].join('\n'));
380
363
  }
@@ -589,7 +572,7 @@ export function createAgentHarnessTool(deps: AgentHarnessToolDeps): Tool {
589
572
  panels: 'Use mode:"panels" to list and mode:"panel" with panelId, target, or query to inspect built-in panel catalog/open state; use mode:"open_panel" with confirm:true plus explicitUserRequest to route a visible panel/workspace change.',
590
573
  uiSurfaces: 'Use mode:"ui_surfaces" to list and mode:"ui_surface" with surfaceId, target, or query to inspect modal/overlay/picker/workspace surfaces; use mode:"open_ui_surface" with confirm:true plus explicitUserRequest to route visible UI navigation.',
591
574
  shortcuts: 'Use mode:"shortcuts" to inspect fixed shortcuts plus configurable keybindings. Use mode:"keybinding" with actionId, target, key, or query; use mode:"run_keybinding" for confirmation-gated shell-safe shortcut equivalents; use mode:"set_keybinding" and mode:"reset_keybinding" with confirm:true plus explicitUserRequest to edit the same config file the user edits.',
592
- slashCommands: 'Use mode:"commands" to list slash commands and mode:"command" with command, commandName, target, or query to inspect one command; use mode:"run_command" with confirm:true plus explicitUserRequest to execute.',
575
+ slashCommands: 'Use mode:"commands" to list slash commands and mode:"command" with command, commandName, target, or query to inspect one command; use mode:"run_command" with the same lookup fields plus confirm:true and explicitUserRequest to execute one uniquely resolved command.',
593
576
  workspace: 'Use mode:"workspace_actions" to list, mode:"workspace_action" with actionId, command, target, or query for one action and editor schema, and mode:"run_workspace_action" with the same lookup fields plus confirmation for executable actions; set includeParameters:true on workspace_actions to inline editor schemas.',
594
577
  settings: 'Use mode:"settings" to list and mode:"get_setting" with key, target, or query for one setting. Use mode:"set_setting" or mode:"reset_setting" with key, target, or query plus confirm:true and explicitUserRequest.',
595
578
  tools: 'Use mode:"tools" to list first-class model tools, or mode:"tool" with toolName, target, or query to inspect one schema.',
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.22';
9
+ let _version = '1.0.24';
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 {