@pellux/goodvibes-agent 1.0.15 → 1.0.17

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.17 - 2026-06-03
6
+
7
+ - Add agent_harness setting lookup by key, target, or query for get_setting, set_setting, and reset_setting.
8
+ - Return setting lookup metadata on successful single-setting operations and refuse ambiguous matches with candidate settings instead of guessing.
9
+ - Refresh package-facing docs and focused harness coverage for model-visible setting inspection and confirmed mutation lookup.
10
+
11
+ ## 1.0.16 - 2026-06-03
12
+
13
+ - Add agent_harness workspace_action lookup by actionId, command, target, or query with resolved lookup metadata.
14
+ - Reuse the user-facing workspace action search fields for single-action inspection while reporting ambiguity with candidate actions instead of guessing.
15
+ - Refresh package-facing docs and focused harness coverage for the updated model-visible workspace action inspection path.
16
+
5
17
  ## 1.0.15 - 2026-06-03
6
18
 
7
19
  - Add forgiving agent_harness slash-command detail lookup by command, commandName, target, or query with parsed invocation metadata.
package/README.md CHANGED
@@ -7,7 +7,7 @@ GoodVibes Agent is the personal operator assistant TUI for GoodVibes. It is buil
7
7
 
8
8
  The Agent product connects to a GoodVibes host owned outside this package. It does not install, start, stop, restart, or own that host.
9
9
 
10
- Most work happens in the interactive TUI. The installed CLI exists to launch that TUI and provide scriptable mirrors for workflows that are already reachable from the workspace. The main Agent model can inspect the same harness surface through Agent-owned tools: workspace actions, built-in panels, modal/overlay/picker UI surfaces, named operator surfaces, top-level CLI mirrors, fixed shortcuts, configurable keybindings, slash commands, single-command lookup with policy metadata, settings, model tools and individual model tool schemas, local registries, connected-host capability boundaries, and live connected-host readiness are all discoverable from the conversation without exposing connected-host lifecycle control.
10
+ Most work happens in the interactive TUI. The installed CLI exists to launch that TUI and provide scriptable mirrors for workflows that are already reachable from the workspace. The main Agent model can inspect the same harness surface through Agent-owned tools: workspace actions and single-action lookup, built-in panels, modal/overlay/picker UI surfaces, named operator surfaces, top-level CLI mirrors, fixed shortcuts, configurable keybindings, slash commands, single-command lookup with policy metadata, settings and single-setting lookup, model tools and individual model tool schemas, local registries, connected-host capability boundaries, and live connected-host readiness are all discoverable from the conversation without exposing connected-host lifecycle control.
11
11
 
12
12
  ## Install
13
13
 
@@ -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 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 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, 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; `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. 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 one workspace action by `actionId`, `command`, `target`, or `query`, 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 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 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, 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; `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 uses the same user-facing search fields and returns lookup metadata plus editor schema; setting lookup uses the same catalog search fields and refuses ambiguous mutations with candidate settings; 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.15";
816511
+ var _version = "1.0.17";
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,
@@ -851069,6 +851011,36 @@ function findSetting(configManager, rawKey) {
851069
851011
  return null;
851070
851012
  return configManager.getSchema().find((setting) => setting.key === rawKey) ?? null;
851071
851013
  }
851014
+ function settingLookupText(setting) {
851015
+ return [setting.key, setting.description, setting.type, ...setting.enumValues ?? []].join(`
851016
+ `).toLowerCase();
851017
+ }
851018
+ function settingMatchesSearch(setting, query2) {
851019
+ return settingLookupText(setting).includes(query2);
851020
+ }
851021
+ function settingCandidate(setting) {
851022
+ const hostOwned = isExternalHostOwnedSettingKey(setting.key);
851023
+ return {
851024
+ key: setting.key,
851025
+ category: setting.key.split(".")[0] ?? "",
851026
+ type: setting.type,
851027
+ writable: !hostOwned,
851028
+ visibleInWorkspace: !isAgentHiddenSettingKey(setting.key),
851029
+ description: setting.description
851030
+ };
851031
+ }
851032
+ function settingLookupFromArgs(args2) {
851033
+ const key = args2.key?.trim();
851034
+ if (key)
851035
+ return { source: "key", input: key };
851036
+ const target = args2.target?.trim();
851037
+ if (target)
851038
+ return { source: "target", input: target };
851039
+ const query2 = args2.query?.trim();
851040
+ if (query2)
851041
+ return { source: "query", input: query2 };
851042
+ return null;
851043
+ }
851072
851044
  function redactHarnessSettingValue(key, value) {
851073
851045
  if (typeof value !== "string")
851074
851046
  return value;
@@ -851081,7 +851053,7 @@ function redactHarnessSettingValue(key, value) {
851081
851053
  }
851082
851054
  return value;
851083
851055
  }
851084
- function describeHarnessSetting(configManager, setting) {
851056
+ function describeHarnessSetting(configManager, setting, options = {}) {
851085
851057
  const value = configManager.get(setting.key);
851086
851058
  const hostOwned = isExternalHostOwnedSettingKey(setting.key);
851087
851059
  return {
@@ -851095,7 +851067,8 @@ function describeHarnessSetting(configManager, setting) {
851095
851067
  visibleInWorkspace: !isAgentHiddenSettingKey(setting.key),
851096
851068
  ...hostOwned ? { lockReason: AGENT_EXTERNAL_HOST_SETTING_LOCK_REASON } : {},
851097
851069
  description: setting.description,
851098
- ...setting.enumValues ? { enumValues: setting.enumValues } : {}
851070
+ ...setting.enumValues ? { enumValues: setting.enumValues } : {},
851071
+ ...options.lookup ? { lookup: options.lookup } : {}
851099
851072
  };
851100
851073
  }
851101
851074
  function listHarnessSettings(configManager, filters = {}) {
@@ -851114,17 +851087,74 @@ function listHarnessSettings(configManager, filters = {}) {
851114
851087
  if (!filters.includeHidden && isAgentHiddenSettingKey(setting.key))
851115
851088
  return false;
851116
851089
  if (query2) {
851117
- const text = [setting.key, setting.description, setting.type, ...setting.enumValues ?? []].join(`
851118
- `).toLowerCase();
851119
- if (!text.includes(query2))
851090
+ if (!settingMatchesSearch(setting, query2))
851120
851091
  return false;
851121
851092
  }
851122
851093
  return true;
851123
851094
  }).map((setting) => describeHarnessSetting(configManager, setting)).slice(0, limit3);
851124
851095
  }
851125
- function getHarnessSetting(configManager, key) {
851096
+ function getHarnessSetting(configManager, key, lookup) {
851126
851097
  const setting = findSetting(configManager, key);
851127
- return setting ? describeHarnessSetting(configManager, setting) : null;
851098
+ return setting ? describeHarnessSetting(configManager, setting, { lookup }) : null;
851099
+ }
851100
+ function resolveHarnessSetting(configManager, args2) {
851101
+ const lookup = settingLookupFromArgs(args2);
851102
+ if (!lookup)
851103
+ return null;
851104
+ const exact = findSetting(configManager, lookup.input);
851105
+ if (exact) {
851106
+ const resolvedLookup = { ...lookup, resolvedBy: "key" };
851107
+ return {
851108
+ status: "found",
851109
+ setting: describeHarnessSetting(configManager, exact, { lookup: resolvedLookup }),
851110
+ lookup: resolvedLookup
851111
+ };
851112
+ }
851113
+ const inputLower = lookup.input.toLowerCase();
851114
+ const schema3 = configManager.getSchema();
851115
+ const caseInsensitiveMatches = schema3.filter((setting) => setting.key.toLowerCase() === inputLower);
851116
+ if (caseInsensitiveMatches.length === 1) {
851117
+ const resolvedLookup = { ...lookup, resolvedBy: "case-insensitive-key" };
851118
+ return {
851119
+ status: "found",
851120
+ setting: describeHarnessSetting(configManager, caseInsensitiveMatches[0], { lookup: resolvedLookup }),
851121
+ lookup: resolvedLookup
851122
+ };
851123
+ }
851124
+ if (caseInsensitiveMatches.length > 1) {
851125
+ return {
851126
+ status: "ambiguous",
851127
+ input: lookup.input,
851128
+ candidates: caseInsensitiveMatches.map(settingCandidate).slice(0, 8)
851129
+ };
851130
+ }
851131
+ const category = args2.category?.trim();
851132
+ const prefix = args2.prefix?.trim();
851133
+ const searchMatches = schema3.filter((setting) => {
851134
+ if (category && setting.key.split(".")[0] !== category)
851135
+ return false;
851136
+ if (prefix && !setting.key.startsWith(prefix))
851137
+ return false;
851138
+ if (!args2.includeHidden && isAgentHiddenSettingKey(setting.key))
851139
+ return false;
851140
+ return settingMatchesSearch(setting, inputLower);
851141
+ });
851142
+ if (searchMatches.length === 1) {
851143
+ const resolvedLookup = { ...lookup, resolvedBy: "search" };
851144
+ return {
851145
+ status: "found",
851146
+ setting: describeHarnessSetting(configManager, searchMatches[0], { lookup: resolvedLookup }),
851147
+ lookup: resolvedLookup
851148
+ };
851149
+ }
851150
+ if (searchMatches.length > 1) {
851151
+ return {
851152
+ status: "ambiguous",
851153
+ input: lookup.input,
851154
+ candidates: searchMatches.map(settingCandidate).slice(0, 8)
851155
+ };
851156
+ }
851157
+ return null;
851128
851158
  }
851129
851159
  function coerceBoolean(value) {
851130
851160
  if (typeof value === "boolean")
@@ -879696,8 +879726,8 @@ function blockedConnectedHostCapabilities() {
879696
879726
  }
879697
879727
  function settingsPolicySummary() {
879698
879728
  return {
879699
- discovery: 'Use mode:"settings" for the setting catalog and mode:"get_setting" for one key. Hidden/scriptable settings require includeHidden:true.',
879700
- mutation: 'Use mode:"set_setting" or mode:"reset_setting" with confirm:true and explicitUserRequest.',
879729
+ discovery: 'Use mode:"settings" for the setting catalog and mode:"get_setting" with key, target, or query for one setting. Hidden/scriptable settings require includeHidden:true unless the exact key is supplied.',
879730
+ mutation: 'Use mode:"set_setting" or mode:"reset_setting" with key, target, or query plus confirm:true and explicitUserRequest; ambiguous setting lookups are refused.',
879701
879731
  secretHandling: "Raw secret values are persisted through the secret manager; config receives only a secret reference and tool output is redacted.",
879702
879732
  writablePolicy: "Each setting descriptor includes writable, visibleInWorkspace, and lockReason when applicable.",
879703
879733
  readOnlyHostOwnedPrefixes: ["service.*", "controlPlane.*", "httpListener.*", "web.*", "danger.daemon.*", "danger.httpListener.*"]
@@ -880897,11 +880927,11 @@ var AGENT_HARNESS_PARAMETER_PROPERTIES = {
880897
880927
  },
880898
880928
  query: {
880899
880929
  type: "string",
880900
- description: "Search text for command, setting, tool, or UI surface catalogs, or a slash-command lookup for mode command."
880930
+ description: "Search text for command, workspace action, setting, tool, or UI surface catalogs; also a slash-command lookup for mode command or setting lookup for get_setting/set_setting/reset_setting."
880901
880931
  },
880902
880932
  command: {
880903
880933
  type: "string",
880904
- description: 'Full slash command string for mode command or run_command, for example "/settings get provider.model". In cli_command mode this may also hold a top-level CLI string such as "goodvibes-agent status --json".'
880934
+ description: 'Full slash command string for mode command, workspace_action lookup, or run_command, for example "/settings get provider.model". In cli_command mode this may also hold a top-level CLI string such as "goodvibes-agent status --json".'
880905
880935
  },
880906
880936
  cliCommand: {
880907
880937
  type: "string",
@@ -880952,7 +880982,7 @@ var AGENT_HARNESS_PARAMETER_PROPERTIES = {
880952
880982
  },
880953
880983
  key: {
880954
880984
  type: "string",
880955
- description: "Agent setting key for get_setting, set_setting, or reset_setting."
880985
+ description: "Agent setting key for get_setting, set_setting, or reset_setting. target or query can also look up one setting when the exact key is not known."
880956
880986
  },
880957
880987
  value: {
880958
880988
  anyOf: [
@@ -880964,7 +880994,7 @@ var AGENT_HARNESS_PARAMETER_PROPERTIES = {
880964
880994
  },
880965
880995
  target: {
880966
880996
  type: "string",
880967
- description: "Optional lookup target, such as a model-picker target, slash command root or invocation, settings key, model tool name, or connected-host capability id."
880997
+ description: "Optional lookup target, such as a model-picker target, workspace action id/search text, slash command root or invocation, setting key/search text, model tool name, or connected-host capability id."
880968
880998
  },
880969
880999
  capabilityId: {
880970
881000
  type: "string",
@@ -881770,6 +881800,16 @@ function isMode(value) {
881770
881800
  function readString58(value) {
881771
881801
  return typeof value === "string" ? value.trim() : "";
881772
881802
  }
881803
+ function settingLookupArgs(args2) {
881804
+ return {
881805
+ key: readString58(args2.key) || undefined,
881806
+ target: readString58(args2.target) || undefined,
881807
+ query: readString58(args2.query) || undefined,
881808
+ category: readString58(args2.category) || undefined,
881809
+ prefix: readString58(args2.prefix) || undefined,
881810
+ includeHidden: args2.includeHidden === true
881811
+ };
881812
+ }
881773
881813
  function readLimit11(value, fallback) {
881774
881814
  const parsed = typeof value === "string" && value.trim() ? Number(value) : value;
881775
881815
  if (typeof parsed !== "number" || !Number.isFinite(parsed))
@@ -881868,6 +881908,7 @@ function describeWorkspaceAction(category, action2, options = {}) {
881868
881908
  ...action2.editorKind ? { editorKind: action2.editorKind } : {},
881869
881909
  ...action2.localKind ? { localKind: action2.localKind } : {},
881870
881910
  ...action2.localOperation ? { localOperation: action2.localOperation } : {},
881911
+ ...options.lookup ? { lookup: options.lookup } : {},
881871
881912
  ...editor ? { editor: describeWorkspaceEditor(editor) } : {},
881872
881913
  ...action2.kind === "local-selection" || action2.kind === "local-operation" ? {
881873
881914
  modelExecution: describeLocalWorkspaceModelExecution(action2)
@@ -881914,6 +881955,57 @@ function findWorkspaceAction(args2) {
881914
881955
  return entry.action.id === actionId || entry.action.label.toLowerCase() === actionId.toLowerCase();
881915
881956
  }) ?? null;
881916
881957
  }
881958
+ function workspaceActionLookupFromArgs(args2) {
881959
+ const actionId = readString58(args2.actionId);
881960
+ if (actionId)
881961
+ return { source: "actionId", input: actionId };
881962
+ const command8 = readString58(args2.command);
881963
+ if (command8)
881964
+ return { source: "command", input: command8 };
881965
+ const target = readString58(args2.target);
881966
+ if (target)
881967
+ return { source: "target", input: target };
881968
+ const query2 = readString58(args2.query);
881969
+ return query2 ? { source: "query", input: query2 } : null;
881970
+ }
881971
+ function describeWorkspaceActionCandidates(entries) {
881972
+ return entries.slice(0, 8).map((entry) => ({
881973
+ actionId: entry.action.id,
881974
+ categoryId: entry.category.id,
881975
+ label: entry.action.label,
881976
+ ...entry.action.command ? { command: entry.action.command } : {}
881977
+ }));
881978
+ }
881979
+ function resolveWorkspaceActionDetail(args2) {
881980
+ const lookup = workspaceActionLookupFromArgs(args2);
881981
+ const categoryId = readString58(args2.categoryId || args2.category);
881982
+ if (!lookup)
881983
+ return null;
881984
+ const entries = allWorkspaceActions().filter((entry) => !categoryId || entry.category.id === categoryId);
881985
+ const normalized = lookup.input.toLowerCase();
881986
+ const commandInput = lookup.source === "command" ? lookup.input.trim() : "";
881987
+ const exactId = entries.find((entry) => entry.action.id === lookup.input);
881988
+ if (exactId)
881989
+ return { status: "found", ...exactId, lookup: { ...lookup, resolvedBy: "id" } };
881990
+ const exactLabel = entries.find((entry) => entry.action.label === lookup.input);
881991
+ if (exactLabel)
881992
+ return { status: "found", ...exactLabel, lookup: { ...lookup, resolvedBy: "label" } };
881993
+ const exactCommand = commandInput ? entries.find((entry) => entry.action.command === commandInput) : null;
881994
+ if (exactCommand)
881995
+ return { status: "found", ...exactCommand, lookup: { ...lookup, resolvedBy: "command" } };
881996
+ const insensitiveId = entries.find((entry) => entry.action.id.toLowerCase() === normalized);
881997
+ if (insensitiveId)
881998
+ return { status: "found", ...insensitiveId, lookup: { ...lookup, resolvedBy: "case-insensitive-id" } };
881999
+ const insensitiveLabel = entries.find((entry) => entry.action.label.toLowerCase() === normalized);
882000
+ if (insensitiveLabel)
882001
+ return { status: "found", ...insensitiveLabel, lookup: { ...lookup, resolvedBy: "case-insensitive-label" } };
882002
+ const searched = searchAgentWorkspaceActions(AGENT_WORKSPACE_CATEGORIES, lookup.input).map((result2) => ({ category: result2.category, action: result2.action })).filter((entry) => !categoryId || entry.category.id === categoryId);
882003
+ if (searched.length === 1)
882004
+ return { status: "found", ...searched[0], lookup: { ...lookup, resolvedBy: "search" } };
882005
+ if (searched.length > 1)
882006
+ return { status: "ambiguous", input: lookup.input, candidates: describeWorkspaceActionCandidates(searched) };
882007
+ return null;
882008
+ }
881917
882009
  function requireConfirmedAction(args2, action2) {
881918
882010
  const explicitUserRequest = readString58(args2.explicitUserRequest);
881919
882011
  if (!explicitUserRequest)
@@ -882161,8 +882253,8 @@ function createAgentHarnessTool(deps) {
882161
882253
  uiSurfaces: 'Use mode:"ui_surfaces" and mode:"ui_surface" to inspect modal/overlay/picker/workspace surfaces; use mode:"open_ui_surface" with confirm:true plus explicitUserRequest to route visible UI navigation.',
882162
882254
  shortcuts: 'Use mode:"shortcuts" to inspect fixed shortcuts plus configurable keybindings. Use mode:"set_keybinding" and mode:"reset_keybinding" with confirm:true plus explicitUserRequest to edit the same config file the user edits.',
882163
882255
  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.',
882164
- workspace: 'Use mode:"workspace_actions" to list and mode:"workspace_action" for editor schemas; set includeParameters:true on workspace_actions to inline editor schemas.',
882165
- settings: 'Use mode:"settings", mode:"get_setting", mode:"set_setting", and mode:"reset_setting".',
882256
+ workspace: 'Use mode:"workspace_actions" to list and mode:"workspace_action" with actionId, command, target, or query for one action and editor schema; set includeParameters:true on workspace_actions to inline editor schemas.',
882257
+ 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.',
882166
882258
  tools: 'Use mode:"tools" to list first-class model tools, or mode:"tool" with toolName, target, or query to inspect one schema.',
882167
882259
  connectedHost: 'Use mode:"connected_host" for the connected-host capability map and blocked boundaries. Use mode:"connected_host_capability" with capabilityId, target, or query for one allowed or blocked capability.',
882168
882260
  connectedHostStatus: 'Use mode:"connected_host_status" for live read-only host reachability, SDK compatibility, token posture, and Agent Knowledge route readiness.'
@@ -882259,9 +882351,13 @@ function createAgentHarnessTool(deps) {
882259
882351
  return output7({ settings, returned: settings.length, policy: settingsPolicySummary() });
882260
882352
  }
882261
882353
  if (args2.mode === "get_setting") {
882262
- const key = readString58(args2.key);
882263
- const setting = getHarnessSetting(deps.commandContext.platform.configManager, key);
882264
- return setting ? output7(setting) : error52(`Unknown setting ${key || "<missing>"}.`);
882354
+ const setting = resolveHarnessSetting(deps.commandContext.platform.configManager, settingLookupArgs(args2));
882355
+ if (setting?.status === "found")
882356
+ return output7(setting.setting);
882357
+ if (setting?.status === "ambiguous") {
882358
+ return error52(`Ambiguous setting ${setting.input}. Candidates: ${JSON.stringify(setting.candidates)}`);
882359
+ }
882360
+ return error52(`Unknown setting ${readString58(args2.key || args2.target || args2.query) || "<missing>"}. Use mode:"settings" to inspect available settings.`);
882265
882361
  }
882266
882362
  if (args2.mode === "set_setting") {
882267
882363
  const confirmationError2 = requireConfirmedAction(args2, "Setting mutation");
@@ -882269,17 +882365,29 @@ function createAgentHarnessTool(deps) {
882269
882365
  return error52(confirmationError2);
882270
882366
  if (args2.value === undefined)
882271
882367
  return error52("set_setting requires value.");
882272
- const key = readString58(args2.key);
882273
- const result2 = await setHarnessSetting(deps.commandContext.platform.configManager, deps.commandContext.platform.secretsManager, key, args2.value);
882274
- return output7(result2);
882368
+ const setting = resolveHarnessSetting(deps.commandContext.platform.configManager, settingLookupArgs(args2));
882369
+ if (setting?.status === "ambiguous") {
882370
+ return error52(`Ambiguous setting ${setting.input}. Candidates: ${JSON.stringify(setting.candidates)}`);
882371
+ }
882372
+ if (setting?.status !== "found") {
882373
+ return error52(`Unknown setting ${readString58(args2.key || args2.target || args2.query) || "<missing>"}. Use mode:"settings" to inspect available settings.`);
882374
+ }
882375
+ const result2 = await setHarnessSetting(deps.commandContext.platform.configManager, deps.commandContext.platform.secretsManager, setting.setting.key, args2.value);
882376
+ return output7({ ...result2, lookup: setting.lookup });
882275
882377
  }
882276
882378
  if (args2.mode === "reset_setting") {
882277
882379
  const confirmationError2 = requireConfirmedAction(args2, "Setting reset");
882278
882380
  if (confirmationError2)
882279
882381
  return error52(confirmationError2);
882280
- const key = readString58(args2.key);
882281
- const result2 = await resetHarnessSetting(deps.commandContext.platform.configManager, deps.commandContext.platform.secretsManager, key);
882282
- return output7(result2);
882382
+ const setting = resolveHarnessSetting(deps.commandContext.platform.configManager, settingLookupArgs(args2));
882383
+ if (setting?.status === "ambiguous") {
882384
+ return error52(`Ambiguous setting ${setting.input}. Candidates: ${JSON.stringify(setting.candidates)}`);
882385
+ }
882386
+ if (setting?.status !== "found") {
882387
+ return error52(`Unknown setting ${readString58(args2.key || args2.target || args2.query) || "<missing>"}. Use mode:"settings" to inspect available settings.`);
882388
+ }
882389
+ const result2 = await resetHarnessSetting(deps.commandContext.platform.configManager, deps.commandContext.platform.secretsManager, setting.setting.key);
882390
+ return output7({ ...result2, lookup: setting.lookup });
882283
882391
  }
882284
882392
  if (args2.mode === "workspace" || args2.mode === "workspace_categories") {
882285
882393
  return output7({
@@ -882292,9 +882400,15 @@ function createAgentHarnessTool(deps) {
882292
882400
  return output7({ actions, returned: actions.length, total: allWorkspaceActions().length });
882293
882401
  }
882294
882402
  if (args2.mode === "workspace_action") {
882295
- const found = findWorkspaceAction(args2);
882403
+ const resolved = resolveWorkspaceActionDetail(args2);
882296
882404
  const editorContext = buildWorkspaceEditorContext(deps.commandContext, args2);
882297
- return found ? output7(describeWorkspaceAction(found.category, found.action, { includeEditor: true, editorContext })) : error52(`Unknown Agent workspace action ${readString58(args2.actionId || args2.query) || "<missing>"}.`);
882405
+ if (resolved?.status === "found") {
882406
+ return output7(describeWorkspaceAction(resolved.category, resolved.action, { includeEditor: true, editorContext, lookup: resolved.lookup }));
882407
+ }
882408
+ if (resolved?.status === "ambiguous") {
882409
+ return error52(`Ambiguous Agent workspace action ${resolved.input}. Candidates: ${JSON.stringify(resolved.candidates)}`);
882410
+ }
882411
+ return error52(`Unknown Agent workspace action ${readString58(args2.actionId || args2.command || args2.target || args2.query) || "<missing>"}. Use mode:"workspace_actions" to inspect available actions.`);
882298
882412
  }
882299
882413
  if (args2.mode === "run_workspace_action")
882300
882414
  return runWorkspaceAction(deps, args2);
package/docs/README.md CHANGED
@@ -22,7 +22,7 @@ Important baseline constraints:
22
22
  - Agent depends on `@pellux/goodvibes-sdk@0.33.35`.
23
23
  - Agent connects to a GoodVibes host owned outside this product.
24
24
  - Agent does not start, stop, restart, install, uninstall, or own the connected GoodVibes host.
25
- - User-facing Agent workspace actions, built-in panels, modal/overlay/picker UI surfaces, named operator surfaces, top-level CLI mirrors, fixed shortcuts, configurable keybindings, slash commands, single-command lookup with policy metadata, model tools and individual model tool schemas, settings, local registries, connected-host capability boundaries, single connected-host capability inspection, and live connected-host readiness are model-visible through Agent-owned tools. Visible UI routing includes the command browser, reasoning-effort picker, live process output, runtime activity, settings, workspaces, and pickers the user can open. Local memory, note, persona, skill, and routine create editors can also run through confirmed workspace actions. Mutations and visible UI routing remain explicit and confirmation-gated.
25
+ - User-facing Agent workspace actions, single workspace-action lookup, built-in panels, modal/overlay/picker UI surfaces, named operator surfaces, top-level CLI mirrors, fixed shortcuts, configurable keybindings, slash commands, single-command lookup with policy metadata, model tools and individual model tool schemas, settings and single-setting lookup, local registries, connected-host capability boundaries, single connected-host capability inspection, and live connected-host readiness are model-visible through Agent-owned tools. Visible UI routing includes the command browser, reasoning-effort picker, live process output, runtime activity, settings, workspaces, and pickers the user can open. Local memory, note, persona, skill, and routine create editors can also run through confirmed workspace actions. Mutations and visible UI routing remain explicit and confirmation-gated, and ambiguous setting lookups are refused with candidates instead of guessed.
26
26
  - Agent Knowledge uses only `/api/goodvibes-agent/knowledge/*`; there is no default knowledge or non-Agent product fallback.
27
27
  - Agent supports isolated Agent homes with `GOODVIBES_AGENT_HOME=<path>` and named profile homes with `goodvibes-agent profiles create <name> --template <starter> --yes` plus `--agent-profile <name>`.
28
28
  - Agent supports connected-host URL overrides with `--runtime-url http://host:port` or `GOODVIBES_AGENT_RUNTIME_URL=http://host:port`; these only change the Agent connection target.
@@ -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, 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, 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; 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. 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 by action id, command, or lookup text, 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, 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; 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 uses the same user-facing search fields and returns lookup metadata plus the editor schema; single-setting lookup uses `key`, `target`, or `query`, returns lookup metadata, and refuses ambiguous mutations with candidate settings. 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
 
@@ -122,7 +122,7 @@ Use `/channels` inside the TUI for channel readiness and exact confirmed sends.
122
122
 
123
123
  The main assistant conversation can perform narrow confirmed operator actions when the user explicitly asks for a specific target: approve/deny/cancel one approval, run/pause/resume one automation job, cancel/retry one automation run, or run one schedule. Those calls use only public connected-host routes, require confirmation, and do not create, edit, or delete automation definitions.
124
124
 
125
- When the main assistant conversation needs to change Agent settings, change Agent keybindings, open a visible UI surface, or run a user-facing harness action, it should use `agent_harness` rather than generic SDK context/settings tools. Setting descriptors report writability, workspace visibility, and lock reasons; keybinding descriptors report fixed shortcuts, resolved bindings, defaults, custom state, and config path; UI surface descriptors report the visible shell opener, preferred model route, and confirmation policy; secret-backed settings store raw values through the secret manager; connected-host lifecycle settings stay read-only in Agent; and destructive local record deletion requires explicit confirmation.
125
+ When the main assistant conversation needs to change Agent settings, change Agent keybindings, open a visible UI surface, or run a user-facing harness action, it should use `agent_harness` rather than generic SDK context/settings tools. Setting descriptors report writability, workspace visibility, lock reasons, and lookup metadata when a single setting is resolved from `key`, `target`, or `query`; ambiguous setting mutation requests return candidates instead of guessing. Keybinding descriptors report fixed shortcuts, resolved bindings, defaults, custom state, and config path; UI surface descriptors report the visible shell opener, preferred model route, and confirmation policy; secret-backed settings store raw values through the secret manager; connected-host lifecycle settings stay read-only in Agent; and destructive local record deletion requires explicit confirmation.
126
126
 
127
127
  ## Connected GoodVibes Host
128
128
 
@@ -43,14 +43,14 @@ Host-management and coding-first commands that would imply connected-host lifecy
43
43
 
44
44
  The main Agent model has an Agent-owned harness bridge rather than generic SDK settings/context control. Use these model tools as the supported parity layer:
45
45
 
46
- - `agent_harness`: inspect workspace categories/actions, inspect built-in panels, inspect modal/overlay/picker UI surfaces and named operator surfaces, inspect top-level CLI mirrors, inspect fixed shortcuts and configurable keybindings, inspect slash commands and one slash command by typed command or lookup text with policy metadata, run concrete workspace or slash-command mirrors with confirmation, inspect model tools or one model tool schema, inspect or change Agent settings/keybindings, inspect connected-host capability boundaries or one connected-host capability, and inspect live connected-host readiness.
46
+ - `agent_harness`: inspect workspace categories/actions and one workspace action by action id, command, or lookup text, inspect built-in panels, inspect modal/overlay/picker UI surfaces and named operator surfaces, inspect top-level CLI mirrors, inspect fixed shortcuts and configurable keybindings, inspect slash commands and one slash command by typed command or lookup text with policy metadata, run concrete workspace or slash-command mirrors with confirmation, inspect model tools or one model tool schema, inspect or change Agent settings/keybindings by exact id or lookup text, inspect connected-host capability boundaries or one connected-host capability, and inspect live connected-host readiness.
47
47
  - `agent_local_registry`: inspect and maintain Agent-local memory, notes, personas, skills, skill bundles, and routines. Deleting local records requires `confirm:true` and `explicitUserRequest`.
48
48
  - `agent_knowledge` and `agent_knowledge_ingest`: ask/search and ingest into the isolated Agent Knowledge segment.
49
49
  - `agent_operator_briefing` and `agent_operator_action`: inspect connected work/approval/automation posture, or run exact confirmed approval/automation actions.
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` 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` 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` returns one action with its editor schema; `tools` lists model tool definitions and can inline JSON schemas with `includeParameters:true`; `tool` returns one model tool schema by `toolName`, `target`, or `query`; `settings` returns setting descriptors plus setting policy; `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 `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` 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` 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` returns one action by `actionId`, `command`, `target`, or `query`, using the same user-facing action-search fields and returning lookup metadata plus its editor schema; `tools` lists model tool definitions and can inline JSON schemas with `includeParameters:true`; `tool` returns one model tool schema by `toolName`, `target`, or `query`; `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 `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.
56
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-agent",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
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",
@@ -23,6 +23,45 @@ export interface HarnessSettingFilters {
23
23
  readonly limit?: number;
24
24
  }
25
25
 
26
+ export type HarnessSettingLookupSource = 'key' | 'target' | 'query';
27
+ export type HarnessSettingResolvedBy = 'key' | 'case-insensitive-key' | 'search';
28
+
29
+ export interface HarnessSettingLookup {
30
+ readonly source: HarnessSettingLookupSource;
31
+ readonly input: string;
32
+ readonly resolvedBy: HarnessSettingResolvedBy;
33
+ }
34
+
35
+ export interface HarnessSettingLookupArgs {
36
+ readonly key?: string;
37
+ readonly target?: string;
38
+ readonly query?: string;
39
+ readonly category?: string;
40
+ readonly prefix?: string;
41
+ readonly includeHidden?: boolean;
42
+ }
43
+
44
+ export interface HarnessSettingCandidate {
45
+ readonly key: string;
46
+ readonly category: string;
47
+ readonly type: ConfigSetting['type'];
48
+ readonly writable: boolean;
49
+ readonly visibleInWorkspace: boolean;
50
+ readonly description: string;
51
+ }
52
+
53
+ export type HarnessSettingResolution =
54
+ | {
55
+ readonly status: 'found';
56
+ readonly setting: HarnessSettingDescriptor;
57
+ readonly lookup: HarnessSettingLookup;
58
+ }
59
+ | {
60
+ readonly status: 'ambiguous';
61
+ readonly input: string;
62
+ readonly candidates: readonly HarnessSettingCandidate[];
63
+ };
64
+
26
65
  export interface HarnessSettingDescriptor {
27
66
  readonly key: string;
28
67
  readonly category: string;
@@ -35,6 +74,7 @@ export interface HarnessSettingDescriptor {
35
74
  readonly lockReason?: string;
36
75
  readonly description: string;
37
76
  readonly enumValues?: readonly string[];
77
+ readonly lookup?: HarnessSettingLookup;
38
78
  }
39
79
 
40
80
  export interface HarnessSettingMutationResult {
@@ -61,6 +101,36 @@ function findSetting(configManager: Pick<ConfigManager, 'getSchema'>, rawKey: st
61
101
  return configManager.getSchema().find((setting) => setting.key === rawKey) ?? null;
62
102
  }
63
103
 
104
+ function settingLookupText(setting: ConfigSetting): string {
105
+ return [setting.key, setting.description, setting.type, ...(setting.enumValues ?? [])].join('\n').toLowerCase();
106
+ }
107
+
108
+ function settingMatchesSearch(setting: ConfigSetting, query: string): boolean {
109
+ return settingLookupText(setting).includes(query);
110
+ }
111
+
112
+ function settingCandidate(setting: ConfigSetting): HarnessSettingCandidate {
113
+ const hostOwned = isExternalHostOwnedSettingKey(setting.key);
114
+ return {
115
+ key: setting.key,
116
+ category: setting.key.split('.')[0] ?? '',
117
+ type: setting.type,
118
+ writable: !hostOwned,
119
+ visibleInWorkspace: !isAgentHiddenSettingKey(setting.key),
120
+ description: setting.description,
121
+ };
122
+ }
123
+
124
+ function settingLookupFromArgs(args: HarnessSettingLookupArgs): { source: HarnessSettingLookupSource; input: string } | null {
125
+ const key = args.key?.trim();
126
+ if (key) return { source: 'key', input: key };
127
+ const target = args.target?.trim();
128
+ if (target) return { source: 'target', input: target };
129
+ const query = args.query?.trim();
130
+ if (query) return { source: 'query', input: query };
131
+ return null;
132
+ }
133
+
64
134
  export function redactHarnessSettingValue(key: string, value: unknown): unknown {
65
135
  if (typeof value !== 'string') return value;
66
136
  if (!value) return value;
@@ -74,6 +144,7 @@ export function redactHarnessSettingValue(key: string, value: unknown): unknown
74
144
  export function describeHarnessSetting(
75
145
  configManager: Pick<ConfigManager, 'get'>,
76
146
  setting: ConfigSetting,
147
+ options: { readonly lookup?: HarnessSettingLookup } = {},
77
148
  ): HarnessSettingDescriptor {
78
149
  const value = configManager.get(setting.key as ConfigKey);
79
150
  const hostOwned = isExternalHostOwnedSettingKey(setting.key);
@@ -89,6 +160,7 @@ export function describeHarnessSetting(
89
160
  ...(hostOwned ? { lockReason: AGENT_EXTERNAL_HOST_SETTING_LOCK_REASON } : {}),
90
161
  description: setting.description,
91
162
  ...(setting.enumValues ? { enumValues: setting.enumValues } : {}),
163
+ ...(options.lookup ? { lookup: options.lookup } : {}),
92
164
  };
93
165
  }
94
166
 
@@ -109,8 +181,7 @@ export function listHarnessSettings(
109
181
  if (prefix && !setting.key.startsWith(prefix)) return false;
110
182
  if (!filters.includeHidden && isAgentHiddenSettingKey(setting.key)) return false;
111
183
  if (query) {
112
- const text = [setting.key, setting.description, setting.type, ...(setting.enumValues ?? [])].join('\n').toLowerCase();
113
- if (!text.includes(query)) return false;
184
+ if (!settingMatchesSearch(setting, query)) return false;
114
185
  }
115
186
  return true;
116
187
  })
@@ -121,9 +192,73 @@ export function listHarnessSettings(
121
192
  export function getHarnessSetting(
122
193
  configManager: Pick<ConfigManager, 'get' | 'getSchema'>,
123
194
  key: string,
195
+ lookup?: HarnessSettingLookup,
124
196
  ): HarnessSettingDescriptor | null {
125
197
  const setting = findSetting(configManager, key);
126
- return setting ? describeHarnessSetting(configManager, setting) : null;
198
+ return setting ? describeHarnessSetting(configManager, setting, { lookup }) : null;
199
+ }
200
+
201
+ export function resolveHarnessSetting(
202
+ configManager: Pick<ConfigManager, 'get' | 'getSchema'>,
203
+ args: HarnessSettingLookupArgs,
204
+ ): HarnessSettingResolution | null {
205
+ const lookup = settingLookupFromArgs(args);
206
+ if (!lookup) return null;
207
+
208
+ const exact = findSetting(configManager, lookup.input);
209
+ if (exact) {
210
+ const resolvedLookup = { ...lookup, resolvedBy: 'key' as const };
211
+ return {
212
+ status: 'found',
213
+ setting: describeHarnessSetting(configManager, exact, { lookup: resolvedLookup }),
214
+ lookup: resolvedLookup,
215
+ };
216
+ }
217
+
218
+ const inputLower = lookup.input.toLowerCase();
219
+ const schema = configManager.getSchema();
220
+ const caseInsensitiveMatches = schema.filter((setting) => setting.key.toLowerCase() === inputLower);
221
+ if (caseInsensitiveMatches.length === 1) {
222
+ const resolvedLookup = { ...lookup, resolvedBy: 'case-insensitive-key' as const };
223
+ return {
224
+ status: 'found',
225
+ setting: describeHarnessSetting(configManager, caseInsensitiveMatches[0]!, { lookup: resolvedLookup }),
226
+ lookup: resolvedLookup,
227
+ };
228
+ }
229
+ if (caseInsensitiveMatches.length > 1) {
230
+ return {
231
+ status: 'ambiguous',
232
+ input: lookup.input,
233
+ candidates: caseInsensitiveMatches.map(settingCandidate).slice(0, 8),
234
+ };
235
+ }
236
+
237
+ const category = args.category?.trim();
238
+ const prefix = args.prefix?.trim();
239
+ const searchMatches = schema.filter((setting) => {
240
+ if (category && setting.key.split('.')[0] !== category) return false;
241
+ if (prefix && !setting.key.startsWith(prefix)) return false;
242
+ if (!args.includeHidden && isAgentHiddenSettingKey(setting.key)) return false;
243
+ return settingMatchesSearch(setting, inputLower);
244
+ });
245
+ if (searchMatches.length === 1) {
246
+ const resolvedLookup = { ...lookup, resolvedBy: 'search' as const };
247
+ return {
248
+ status: 'found',
249
+ setting: describeHarnessSetting(configManager, searchMatches[0]!, { lookup: resolvedLookup }),
250
+ lookup: resolvedLookup,
251
+ };
252
+ }
253
+ if (searchMatches.length > 1) {
254
+ return {
255
+ status: 'ambiguous',
256
+ input: lookup.input,
257
+ candidates: searchMatches.map(settingCandidate).slice(0, 8),
258
+ };
259
+ }
260
+
261
+ return null;
127
262
  }
128
263
 
129
264
  function coerceBoolean(value: unknown): boolean {
@@ -462,8 +462,8 @@ export function blockedConnectedHostCapabilities(): readonly Record<string, unkn
462
462
 
463
463
  export function settingsPolicySummary(): Record<string, unknown> {
464
464
  return {
465
- discovery: 'Use mode:"settings" for the setting catalog and mode:"get_setting" for one key. Hidden/scriptable settings require includeHidden:true.',
466
- mutation: 'Use mode:"set_setting" or mode:"reset_setting" with confirm:true and explicitUserRequest.',
465
+ discovery: 'Use mode:"settings" for the setting catalog and mode:"get_setting" with key, target, or query for one setting. Hidden/scriptable settings require includeHidden:true unless the exact key is supplied.',
466
+ mutation: 'Use mode:"set_setting" or mode:"reset_setting" with key, target, or query plus confirm:true and explicitUserRequest; ambiguous setting lookups are refused.',
467
467
  secretHandling: 'Raw secret values are persisted through the secret manager; config receives only a secret reference and tool output is redacted.',
468
468
  writablePolicy: 'Each setting descriptor includes writable, visibleInWorkspace, and lockReason when applicable.',
469
469
  readOnlyHostOwnedPrefixes: ['service.*', 'controlPlane.*', 'httpListener.*', 'web.*', 'danger.daemon.*', 'danger.httpListener.*'],
@@ -23,11 +23,11 @@ export const AGENT_HARNESS_PARAMETER_PROPERTIES = {
23
23
  },
24
24
  query: {
25
25
  type: 'string',
26
- description: 'Search text for command, setting, tool, or UI surface catalogs, or a slash-command lookup for mode command.',
26
+ description: 'Search text for command, workspace action, setting, tool, or UI surface catalogs; also a slash-command lookup for mode command or setting lookup for get_setting/set_setting/reset_setting.',
27
27
  },
28
28
  command: {
29
29
  type: 'string',
30
- description: 'Full slash command string for mode command or run_command, for example "/settings get provider.model". In cli_command mode this may also hold a top-level CLI string such as "goodvibes-agent status --json".',
30
+ description: 'Full slash command string for mode command, workspace_action lookup, or run_command, for example "/settings get provider.model". In cli_command mode this may also hold a top-level CLI string such as "goodvibes-agent status --json".',
31
31
  },
32
32
  cliCommand: {
33
33
  type: 'string',
@@ -78,7 +78,7 @@ export const AGENT_HARNESS_PARAMETER_PROPERTIES = {
78
78
  },
79
79
  key: {
80
80
  type: 'string',
81
- description: 'Agent setting key for get_setting, set_setting, or reset_setting.',
81
+ description: 'Agent setting key for get_setting, set_setting, or reset_setting. target or query can also look up one setting when the exact key is not known.',
82
82
  },
83
83
  value: {
84
84
  anyOf: [
@@ -90,7 +90,7 @@ export const AGENT_HARNESS_PARAMETER_PROPERTIES = {
90
90
  },
91
91
  target: {
92
92
  type: 'string',
93
- description: 'Optional lookup target, such as a model-picker target, slash command root or invocation, settings key, model tool name, or connected-host capability id.',
93
+ description: 'Optional lookup target, such as a model-picker target, workspace action id/search text, slash command root or invocation, setting key/search text, model tool name, or connected-host capability id.',
94
94
  },
95
95
  capabilityId: {
96
96
  type: 'string',
@@ -33,9 +33,9 @@ import {
33
33
  } from './agent-harness-metadata.ts';
34
34
  import {
35
35
  formatHarnessError,
36
- getHarnessSetting,
37
36
  listHarnessSettings,
38
37
  resetHarnessSetting,
38
+ resolveHarnessSetting,
39
39
  setHarnessSetting,
40
40
  } from '../agent/harness-control.ts';
41
41
 
@@ -82,6 +82,25 @@ interface WorkspaceEditorContext {
82
82
  readonly selectedRoutine: AgentWorkspaceLocalLibraryItem | null;
83
83
  }
84
84
 
85
+ interface WorkspaceActionLookup {
86
+ readonly source: 'actionId' | 'command' | 'target' | 'query';
87
+ readonly input: string;
88
+ readonly resolvedBy: 'id' | 'case-insensitive-id' | 'label' | 'case-insensitive-label' | 'command' | 'search';
89
+ }
90
+
91
+ type WorkspaceActionResolution =
92
+ | {
93
+ readonly status: 'found';
94
+ readonly category: AgentWorkspaceCategory;
95
+ readonly action: AgentWorkspaceAction;
96
+ readonly lookup: WorkspaceActionLookup;
97
+ }
98
+ | {
99
+ readonly status: 'ambiguous';
100
+ readonly input: string;
101
+ readonly candidates: readonly { readonly actionId: string; readonly categoryId: string; readonly label: string; readonly command?: string }[];
102
+ };
103
+
85
104
  function isMode(value: unknown): value is AgentHarnessMode {
86
105
  return typeof value === 'string' && AGENT_HARNESS_MODES.includes(value as AgentHarnessMode);
87
106
  }
@@ -90,6 +109,17 @@ function readString(value: unknown): string {
90
109
  return typeof value === 'string' ? value.trim() : '';
91
110
  }
92
111
 
112
+ function settingLookupArgs(args: AgentHarnessToolArgs) {
113
+ return {
114
+ key: readString(args.key) || undefined,
115
+ target: readString(args.target) || undefined,
116
+ query: readString(args.query) || undefined,
117
+ category: readString(args.category) || undefined,
118
+ prefix: readString(args.prefix) || undefined,
119
+ includeHidden: args.includeHidden === true,
120
+ };
121
+ }
122
+
93
123
  function readLimit(value: unknown, fallback: number): number {
94
124
  const parsed = typeof value === 'string' && value.trim() ? Number(value) : value;
95
125
  if (typeof parsed !== 'number' || !Number.isFinite(parsed)) return fallback;
@@ -189,7 +219,7 @@ function createWorkspaceEditor(
189
219
  function describeWorkspaceAction(
190
220
  category: AgentWorkspaceCategory,
191
221
  action: AgentWorkspaceAction,
192
- options: { readonly includeEditor?: boolean; readonly editorContext?: WorkspaceEditorContext | null } = {},
222
+ options: { readonly includeEditor?: boolean; readonly editorContext?: WorkspaceEditorContext | null; readonly lookup?: WorkspaceActionLookup } = {},
193
223
  ): Record<string, unknown> {
194
224
  const editor = options.includeEditor && action.editorKind ? createWorkspaceEditor(action.editorKind, options.editorContext ?? null) : null;
195
225
  return {
@@ -206,6 +236,7 @@ function describeWorkspaceAction(
206
236
  ...(action.editorKind ? { editorKind: action.editorKind } : {}),
207
237
  ...(action.localKind ? { localKind: action.localKind } : {}),
208
238
  ...(action.localOperation ? { localOperation: action.localOperation } : {}),
239
+ ...(options.lookup ? { lookup: options.lookup } : {}),
209
240
  ...(editor ? { editor: describeWorkspaceEditor(editor) } : {}),
210
241
  ...(action.kind === 'local-selection' || action.kind === 'local-operation' ? {
211
242
  modelExecution: describeLocalWorkspaceModelExecution(action),
@@ -252,6 +283,56 @@ function findWorkspaceAction(args: AgentHarnessToolArgs): { readonly category: A
252
283
  }) ?? null;
253
284
  }
254
285
 
286
+ function workspaceActionLookupFromArgs(args: AgentHarnessToolArgs): { readonly source: WorkspaceActionLookup['source']; readonly input: string } | null {
287
+ const actionId = readString(args.actionId);
288
+ if (actionId) return { source: 'actionId', input: actionId };
289
+ const command = readString(args.command);
290
+ if (command) return { source: 'command', input: command };
291
+ const target = readString(args.target);
292
+ if (target) return { source: 'target', input: target };
293
+ const query = readString(args.query);
294
+ return query ? { source: 'query', input: query } : null;
295
+ }
296
+
297
+ function describeWorkspaceActionCandidates(
298
+ entries: readonly { readonly category: AgentWorkspaceCategory; readonly action: AgentWorkspaceAction }[],
299
+ ): readonly { readonly actionId: string; readonly categoryId: string; readonly label: string; readonly command?: string }[] {
300
+ return entries.slice(0, 8).map((entry) => ({
301
+ actionId: entry.action.id,
302
+ categoryId: entry.category.id,
303
+ label: entry.action.label,
304
+ ...(entry.action.command ? { command: entry.action.command } : {}),
305
+ }));
306
+ }
307
+
308
+ function resolveWorkspaceActionDetail(args: AgentHarnessToolArgs): WorkspaceActionResolution | null {
309
+ const lookup = workspaceActionLookupFromArgs(args);
310
+ const categoryId = readString(args.categoryId || args.category);
311
+ if (!lookup) return null;
312
+ const entries = allWorkspaceActions().filter((entry) => !categoryId || entry.category.id === categoryId);
313
+ const normalized = lookup.input.toLowerCase();
314
+ const commandInput = lookup.source === 'command' ? lookup.input.trim() : '';
315
+
316
+ const exactId = entries.find((entry) => entry.action.id === lookup.input);
317
+ if (exactId) return { status: 'found', ...exactId, lookup: { ...lookup, resolvedBy: 'id' } };
318
+ const exactLabel = entries.find((entry) => entry.action.label === lookup.input);
319
+ if (exactLabel) return { status: 'found', ...exactLabel, lookup: { ...lookup, resolvedBy: 'label' } };
320
+ const exactCommand = commandInput ? entries.find((entry) => entry.action.command === commandInput) : null;
321
+ if (exactCommand) return { status: 'found', ...exactCommand, lookup: { ...lookup, resolvedBy: 'command' } };
322
+
323
+ const insensitiveId = entries.find((entry) => entry.action.id.toLowerCase() === normalized);
324
+ if (insensitiveId) return { status: 'found', ...insensitiveId, lookup: { ...lookup, resolvedBy: 'case-insensitive-id' } };
325
+ const insensitiveLabel = entries.find((entry) => entry.action.label.toLowerCase() === normalized);
326
+ if (insensitiveLabel) return { status: 'found', ...insensitiveLabel, lookup: { ...lookup, resolvedBy: 'case-insensitive-label' } };
327
+
328
+ const searched = searchAgentWorkspaceActions(AGENT_WORKSPACE_CATEGORIES, lookup.input)
329
+ .map((result) => ({ category: result.category, action: result.action }))
330
+ .filter((entry) => !categoryId || entry.category.id === categoryId);
331
+ if (searched.length === 1) return { status: 'found', ...searched[0]!, lookup: { ...lookup, resolvedBy: 'search' } };
332
+ if (searched.length > 1) return { status: 'ambiguous', input: lookup.input, candidates: describeWorkspaceActionCandidates(searched) };
333
+ return null;
334
+ }
335
+
255
336
  function requireConfirmedAction(args: AgentHarnessToolArgs, action: string): string | null {
256
337
  const explicitUserRequest = readString(args.explicitUserRequest);
257
338
  if (!explicitUserRequest) return `${action} requires explicitUserRequest with the user's exact request or a short faithful summary.`;
@@ -518,8 +599,8 @@ export function createAgentHarnessTool(deps: AgentHarnessToolDeps): Tool {
518
599
  uiSurfaces: 'Use mode:"ui_surfaces" and mode:"ui_surface" to inspect modal/overlay/picker/workspace surfaces; use mode:"open_ui_surface" with confirm:true plus explicitUserRequest to route visible UI navigation.',
519
600
  shortcuts: 'Use mode:"shortcuts" to inspect fixed shortcuts plus configurable keybindings. Use mode:"set_keybinding" and mode:"reset_keybinding" with confirm:true plus explicitUserRequest to edit the same config file the user edits.',
520
601
  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.',
521
- workspace: 'Use mode:"workspace_actions" to list and mode:"workspace_action" for editor schemas; set includeParameters:true on workspace_actions to inline editor schemas.',
522
- settings: 'Use mode:"settings", mode:"get_setting", mode:"set_setting", and mode:"reset_setting".',
602
+ workspace: 'Use mode:"workspace_actions" to list and mode:"workspace_action" with actionId, command, target, or query for one action and editor schema; set includeParameters:true on workspace_actions to inline editor schemas.',
603
+ 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.',
523
604
  tools: 'Use mode:"tools" to list first-class model tools, or mode:"tool" with toolName, target, or query to inspect one schema.',
524
605
  connectedHost: 'Use mode:"connected_host" for the connected-host capability map and blocked boundaries. Use mode:"connected_host_capability" with capabilityId, target, or query for one allowed or blocked capability.',
525
606
  connectedHostStatus: 'Use mode:"connected_host_status" for live read-only host reachability, SDK compatibility, token posture, and Agent Knowledge route readiness.',
@@ -611,33 +692,48 @@ export function createAgentHarnessTool(deps: AgentHarnessToolDeps): Tool {
611
692
  return output({ settings, returned: settings.length, policy: settingsPolicySummary() });
612
693
  }
613
694
  if (args.mode === 'get_setting') {
614
- const key = readString(args.key);
615
- const setting = getHarnessSetting(deps.commandContext.platform.configManager, key);
616
- return setting ? output(setting) : error(`Unknown setting ${key || '<missing>'}.`);
695
+ const setting = resolveHarnessSetting(deps.commandContext.platform.configManager, settingLookupArgs(args));
696
+ if (setting?.status === 'found') return output(setting.setting);
697
+ if (setting?.status === 'ambiguous') {
698
+ return error(`Ambiguous setting ${setting.input}. Candidates: ${JSON.stringify(setting.candidates)}`);
699
+ }
700
+ return error(`Unknown setting ${readString(args.key || args.target || args.query) || '<missing>'}. Use mode:"settings" to inspect available settings.`);
617
701
  }
618
702
  if (args.mode === 'set_setting') {
619
703
  const confirmationError = requireConfirmedAction(args, 'Setting mutation');
620
704
  if (confirmationError) return error(confirmationError);
621
705
  if (args.value === undefined) return error('set_setting requires value.');
622
- const key = readString(args.key);
706
+ const setting = resolveHarnessSetting(deps.commandContext.platform.configManager, settingLookupArgs(args));
707
+ if (setting?.status === 'ambiguous') {
708
+ return error(`Ambiguous setting ${setting.input}. Candidates: ${JSON.stringify(setting.candidates)}`);
709
+ }
710
+ if (setting?.status !== 'found') {
711
+ return error(`Unknown setting ${readString(args.key || args.target || args.query) || '<missing>'}. Use mode:"settings" to inspect available settings.`);
712
+ }
623
713
  const result = await setHarnessSetting(
624
714
  deps.commandContext.platform.configManager,
625
715
  deps.commandContext.platform.secretsManager,
626
- key,
716
+ setting.setting.key,
627
717
  args.value,
628
718
  );
629
- return output(result);
719
+ return output({ ...result, lookup: setting.lookup });
630
720
  }
631
721
  if (args.mode === 'reset_setting') {
632
722
  const confirmationError = requireConfirmedAction(args, 'Setting reset');
633
723
  if (confirmationError) return error(confirmationError);
634
- const key = readString(args.key);
724
+ const setting = resolveHarnessSetting(deps.commandContext.platform.configManager, settingLookupArgs(args));
725
+ if (setting?.status === 'ambiguous') {
726
+ return error(`Ambiguous setting ${setting.input}. Candidates: ${JSON.stringify(setting.candidates)}`);
727
+ }
728
+ if (setting?.status !== 'found') {
729
+ return error(`Unknown setting ${readString(args.key || args.target || args.query) || '<missing>'}. Use mode:"settings" to inspect available settings.`);
730
+ }
635
731
  const result = await resetHarnessSetting(
636
732
  deps.commandContext.platform.configManager,
637
733
  deps.commandContext.platform.secretsManager,
638
- key,
734
+ setting.setting.key,
639
735
  );
640
- return output(result);
736
+ return output({ ...result, lookup: setting.lookup });
641
737
  }
642
738
  if (args.mode === 'workspace' || args.mode === 'workspace_categories') {
643
739
  return output({
@@ -650,11 +746,15 @@ export function createAgentHarnessTool(deps: AgentHarnessToolDeps): Tool {
650
746
  return output({ actions, returned: actions.length, total: allWorkspaceActions().length });
651
747
  }
652
748
  if (args.mode === 'workspace_action') {
653
- const found = findWorkspaceAction(args);
749
+ const resolved = resolveWorkspaceActionDetail(args);
654
750
  const editorContext = buildWorkspaceEditorContext(deps.commandContext, args);
655
- return found
656
- ? output(describeWorkspaceAction(found.category, found.action, { includeEditor: true, editorContext }))
657
- : error(`Unknown Agent workspace action ${readString(args.actionId || args.query) || '<missing>'}.`);
751
+ if (resolved?.status === 'found') {
752
+ return output(describeWorkspaceAction(resolved.category, resolved.action, { includeEditor: true, editorContext, lookup: resolved.lookup }));
753
+ }
754
+ if (resolved?.status === 'ambiguous') {
755
+ return error(`Ambiguous Agent workspace action ${resolved.input}. Candidates: ${JSON.stringify(resolved.candidates)}`);
756
+ }
757
+ return error(`Unknown Agent workspace action ${readString(args.actionId || args.command || args.target || args.query) || '<missing>'}. Use mode:"workspace_actions" to inspect available actions.`);
658
758
  }
659
759
  if (args.mode === 'run_workspace_action') return runWorkspaceAction(deps, args);
660
760
  if (args.mode === 'tools') {
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.15';
9
+ let _version = '1.0.17';
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 {