@pellux/goodvibes-agent 1.0.25 → 1.0.26

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,12 @@
2
2
 
3
3
  Product-facing release notes for GoodVibes Agent.
4
4
 
5
+ ## 1.0.26 - 2026-06-03
6
+
7
+ - Route confirmed agent_harness panel-close and panel-close-all keybinding runs through the same Agent workspace dismiss bridge as the user shortcut before falling back to legacy panels.
8
+ - Refresh model-operation metadata for panel close keybindings so supported keybinding behavior matches visible shell behavior.
9
+ - Add focused harness coverage for model-triggered Agent workspace dismissal.
10
+
5
11
  ## 1.0.25 - 2026-06-03
6
12
 
7
13
  - Correct the model-visible fixed shortcut catalog so F2 is reported as the runtime activity monitor instead of the shortcut reference.
@@ -389257,6 +389257,23 @@ 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
+ }
389260
389277
  function rowObject(columns, values2) {
389261
389278
  return Object.fromEntries(columns.map((column, index) => [column, values2[index]]));
389262
389279
  }
@@ -702594,6 +702611,9 @@ var init_ingest = __esm(() => {
702594
702611
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/browser-history/index.js
702595
702612
  var init_browser_history = __esm(() => {
702596
702613
  init_ingest();
702614
+ init_discover();
702615
+ init_readers();
702616
+ init_paths2();
702597
702617
  });
702598
702618
 
702599
702619
  // node_modules/graphql/jsutils/devAssert.mjs
@@ -720233,6 +720253,7 @@ var init_semantic = __esm(() => {
720233
720253
  init_llm();
720234
720254
  init_gap_repair();
720235
720255
  init_service4();
720256
+ init_self_improvement();
720236
720257
  });
720237
720258
 
720238
720259
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/home-graph/helpers.js
@@ -724201,8 +724222,40 @@ var init_map_view = __esm(() => {
724201
724222
  });
724202
724223
 
724203
724224
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/home-graph/types.js
724204
- var HOME_GRAPH_CAPABILITIES;
724225
+ var HOME_GRAPH_NODE_KINDS, HOME_GRAPH_RELATIONS, HOME_GRAPH_CAPABILITIES;
724205
724226
  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
+ ];
724206
724259
  HOME_GRAPH_CAPABILITIES = [
724207
724260
  "knowledge-space-isolation",
724208
724261
  "snapshot-sync",
@@ -725609,6 +725662,7 @@ var init_service5 = __esm(() => {
725609
725662
  var init_home_graph = __esm(() => {
725610
725663
  init_service5();
725611
725664
  init_extension();
725665
+ init_types6();
725612
725666
  });
725613
725667
 
725614
725668
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/store-refinement.js
@@ -727936,10 +727990,14 @@ var init_service6 = __esm(() => {
727936
727990
  var init_project_planning = __esm(() => {
727937
727991
  init_service6();
727938
727992
  init_helpers3();
727993
+ init_readiness();
727939
727994
  });
727940
727995
 
727941
727996
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/persistence.js
727942
- var init_persistence = () => {};
727997
+ var init_persistence = __esm(() => {
727998
+ init_store_schema();
727999
+ init_store_load();
728000
+ });
727943
728001
 
727944
728002
  // node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/projections.js
727945
728003
  class KnowledgeProjectionService {
@@ -731447,21 +731505,21 @@ var init_service7 = __esm(() => {
731447
731505
  var exports_knowledge = {};
731448
731506
  __export(exports_knowledge, {
731449
731507
  withKnowledgeSpace: () => withKnowledgeSpace,
731450
- uniqKnowledgeValues: () => uniq3,
731451
- stabilizeKnowledgeText: () => stableText2,
731452
- runKnowledgeSemanticSelfImprovement: () => runKnowledgeSemanticSelfImprovement2,
731508
+ uniqKnowledgeValues: () => uniq2,
731509
+ stabilizeKnowledgeText: () => stableText,
731510
+ runKnowledgeSemanticSelfImprovement: () => runKnowledgeSemanticSelfImprovement,
731453
731511
  resolveProjectPlanningSpace: () => resolveProjectPlanningSpace,
731454
- resolveKnowledgeDbPathFromControlPlaneDir: () => resolveKnowledgeDbPathFromControlPlaneDir2,
731512
+ resolveKnowledgeDbPathFromControlPlaneDir: () => resolveKnowledgeDbPathFromControlPlaneDir,
731455
731513
  renderPacket: () => renderPacket,
731456
731514
  renderKnowledgeSchemaSql: () => renderKnowledgeSchemaSql,
731457
731515
  renderKnowledgeMap: () => renderKnowledgeMap,
731458
731516
  readKnowledgeSearchText: () => readKnowledgeSearchText,
731459
- readBrowserKnowledgeProfile: () => readBrowserKnowledgeProfile2,
731517
+ readBrowserKnowledgeProfile: () => readBrowserKnowledgeProfile,
731460
731518
  projectPlanningSourceId: () => projectPlanningSourceId,
731461
731519
  projectPlanningProjectIdFromPath: () => projectPlanningProjectIdFromPath,
731462
731520
  projectPlanningCanonicalUri: () => projectPlanningCanonicalUri,
731463
731521
  projectKnowledgeSpaceId: () => projectKnowledgeSpaceId,
731464
- parseKnowledgeJsonValue: () => parseJsonValue2,
731522
+ parseKnowledgeJsonValue: () => parseJsonValue,
731465
731523
  normalizeProjectId: () => normalizeProjectId,
731466
731524
  normalizeKnowledgeSpaceId: () => normalizeKnowledgeSpaceId,
731467
731525
  normalizeHomeAssistantInstallationId: () => normalizeHomeAssistantInstallationId,
@@ -731469,12 +731527,12 @@ __export(exports_knowledge, {
731469
731527
  materializeGeneratedKnowledgeProjection: () => materializeGeneratedKnowledgeProjection,
731470
731528
  looksLikeRawPdfPayload: () => looksLikeRawPdfPayload,
731471
731529
  looksBinaryLikeText: () => looksBinaryLikeText,
731472
- loadKnowledgeStoreSnapshot: () => loadKnowledgeStoreSnapshot2,
731530
+ loadKnowledgeStoreSnapshot: () => loadKnowledgeStoreSnapshot,
731473
731531
  listGeneratedKnowledgePages: () => listGeneratedKnowledgePages,
731474
- listBrowserKinds: () => listBrowserKinds2,
731532
+ listBrowserKinds: () => listBrowserKinds,
731475
731533
  knowledgeSpaceMetadata: () => knowledgeSpaceMetadata,
731476
731534
  knowledgePageSourceWeight: () => knowledgePageSourceWeight,
731477
- knowledgeNowMs: () => nowMs2,
731535
+ knowledgeNowMs: () => nowMs,
731478
731536
  knowledgeExtractionNeedsRefresh: () => knowledgeExtractionNeedsRefresh,
731479
731537
  isUsefulKnowledgePageSourceCandidate: () => isUsefulKnowledgePageSourceCandidate,
731480
731538
  isUsefulKnowledgePageSource: () => isUsefulKnowledgePageSource,
@@ -731494,12 +731552,12 @@ __export(exports_knowledge, {
731494
731552
  generatedKnowledgeSourceId: () => generatedKnowledgeSourceId,
731495
731553
  generatedKnowledgeCanonicalUri: () => generatedKnowledgeCanonicalUri,
731496
731554
  extractKnowledgeArtifact: () => extractKnowledgeArtifact,
731497
- evaluateProjectPlanningReadiness: () => evaluateProjectPlanningReadiness2,
731498
- discoverBrowserKnowledgeProfiles: () => discoverBrowserKnowledgeProfiles2,
731555
+ evaluateProjectPlanningReadiness: () => evaluateProjectPlanningReadiness,
731556
+ discoverBrowserKnowledgeProfiles: () => discoverBrowserKnowledgeProfiles,
731499
731557
  createWebKnowledgeGapRepairer: () => createWebKnowledgeGapRepairer,
731500
731558
  createProviderBackedKnowledgeSemanticLlm: () => createProviderBackedKnowledgeSemanticLlm,
731501
731559
  createMemoryApi: () => createMemoryApi,
731502
- createKnowledgeSchema: () => createSchema3,
731560
+ createKnowledgeSchema: () => createSchema2,
731503
731561
  createKnowledgeApi: () => createKnowledgeApi,
731504
731562
  createDefaultKnowledgeConnectorRegistry: () => createDefaultKnowledgeConnectorRegistry,
731505
731563
  compareKnowledgePageSources: () => compareKnowledgePageSources,
@@ -733937,7 +733995,7 @@ var init_delivery_manager = __esm(() => {
733937
733995
  });
733938
733996
 
733939
733997
  // node_modules/@pellux/goodvibes-sdk/dist/platform/automation/scheduler-capacity.js
733940
- function computeSchedulerCapacity(slotsTotal, runs, nowMs3 = Date.now()) {
733998
+ function computeSchedulerCapacity(slotsTotal, runs, nowMs2 = Date.now()) {
733941
733999
  let slotsInUse = 0;
733942
734000
  const queuedRuns = [];
733943
734001
  for (const run7 of runs) {
@@ -733947,7 +734005,7 @@ function computeSchedulerCapacity(slotsTotal, runs, nowMs3 = Date.now()) {
733947
734005
  queuedRuns.push(run7);
733948
734006
  }
733949
734007
  const queueDepth = queuedRuns.length;
733950
- const oldestQueuedAgeMs = queueDepth > 0 ? nowMs3 - Math.min(...queuedRuns.map((r5) => r5.queuedAt)) : null;
734008
+ const oldestQueuedAgeMs = queueDepth > 0 ? nowMs2 - Math.min(...queuedRuns.map((r5) => r5.queuedAt)) : null;
733951
734009
  return { slotsTotal, slotsInUse, queueDepth, oldestQueuedAgeMs };
733952
734010
  }
733953
734011
 
@@ -816508,7 +816566,7 @@ var createStyledCell = (char, overrides = {}) => ({
816508
816566
  // src/version.ts
816509
816567
  import { readFileSync } from "fs";
816510
816568
  import { join } from "path";
816511
- var _version = "1.0.25";
816569
+ var _version = "1.0.26";
816512
816570
  var _sdkVersion = "0.33.35";
816513
816571
  try {
816514
816572
  const pkg = JSON.parse(readFileSync(join(import.meta.dir, "..", "package.json"), "utf-8"));
@@ -839370,7 +839428,7 @@ var WORK_PLAN_STATUSES = [
839370
839428
  "failed",
839371
839429
  "cancelled"
839372
839430
  ];
839373
- function nowMs3() {
839431
+ function nowMs2() {
839374
839432
  return Date.now();
839375
839433
  }
839376
839434
  function isObject5(value) {
@@ -839476,7 +839534,7 @@ class WorkPlanStore {
839476
839534
  if (!normalizedTitle)
839477
839535
  throw new Error("Work plan item title is required.");
839478
839536
  const plan = this.readPlan();
839479
- const time4 = nowMs3();
839537
+ const time4 = nowMs2();
839480
839538
  const item = {
839481
839539
  id: createItemId(),
839482
839540
  title: normalizedTitle,
@@ -839500,7 +839558,7 @@ class WorkPlanStore {
839500
839558
  updateItem(idOrPrefix, patch2) {
839501
839559
  const plan = this.readPlan();
839502
839560
  const item = this.resolveItem(plan, idOrPrefix);
839503
- const time4 = nowMs3();
839561
+ const time4 = nowMs2();
839504
839562
  const nextStatus = patch2.status ?? item.status;
839505
839563
  const next = this.pruneItem({
839506
839564
  ...item,
@@ -839533,7 +839591,7 @@ class WorkPlanStore {
839533
839591
  removeItem(idOrPrefix) {
839534
839592
  const plan = this.readPlan();
839535
839593
  const item = this.resolveItem(plan, idOrPrefix);
839536
- const time4 = nowMs3();
839594
+ const time4 = nowMs2();
839537
839595
  const remaining = plan.items.filter((candidate) => candidate.id !== item.id);
839538
839596
  this.writePlan({
839539
839597
  ...plan,
@@ -839553,7 +839611,7 @@ class WorkPlanStore {
839553
839611
  ...plan,
839554
839612
  items: remaining,
839555
839613
  activeItemId: remaining[0]?.id,
839556
- updatedAt: nowMs3()
839614
+ updatedAt: nowMs2()
839557
839615
  });
839558
839616
  return removed;
839559
839617
  }
@@ -839592,7 +839650,7 @@ class WorkPlanStore {
839592
839650
  const parsed = JSON.parse(raw);
839593
839651
  if (!isObject5(parsed))
839594
839652
  return this.createEmptyPlan();
839595
- const time4 = nowMs3();
839653
+ const time4 = nowMs2();
839596
839654
  const createdAt = typeof parsed.createdAt === "number" ? parsed.createdAt : time4;
839597
839655
  const updatedAt = typeof parsed.updatedAt === "number" ? parsed.updatedAt : createdAt;
839598
839656
  const items = Array.isArray(parsed.items) ? parsed.items.map((item) => normalizeItem(item, createdAt)).filter((item) => item !== null) : [];
@@ -839611,7 +839669,7 @@ class WorkPlanStore {
839611
839669
  };
839612
839670
  }
839613
839671
  createEmptyPlan() {
839614
- const time4 = nowMs3();
839672
+ const time4 = nowMs2();
839615
839673
  return {
839616
839674
  id: createPlanId(this.options.projectId, this.options.projectRoot),
839617
839675
  projectId: this.options.projectId,
@@ -847717,13 +847775,13 @@ init_state3();
847717
847775
 
847718
847776
  // src/input/commands/recall-shared.ts
847719
847777
  var VALID_CLASSES = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
847720
- var VALID_SCOPES = ["session", "project", "team"];
847778
+ var VALID_SCOPES2 = ["session", "project", "team"];
847721
847779
  var VALID_REVIEW_STATES = ["fresh", "reviewed", "stale", "contradicted"];
847722
847780
  function isValidClass(s4) {
847723
847781
  return VALID_CLASSES.includes(s4);
847724
847782
  }
847725
847783
  function isValidScope(s4) {
847726
- return VALID_SCOPES.includes(s4);
847784
+ return VALID_SCOPES2.includes(s4);
847727
847785
  }
847728
847786
  function isValidReviewState(s4) {
847729
847787
  return VALID_REVIEW_STATES.includes(s4);
@@ -847766,7 +847824,7 @@ function handleRecallSearch(args2, context) {
847766
847824
  if (isValidScope(scope))
847767
847825
  filter.scope = scope;
847768
847826
  else {
847769
- context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES.join(", ")}.`);
847827
+ context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
847770
847828
  return;
847771
847829
  }
847772
847830
  }
@@ -847941,7 +847999,7 @@ function handleRecallList(args2, context) {
847941
847999
  if (scopeIdx !== -1 && args2[scopeIdx + 1]) {
847942
848000
  const scope = args2[scopeIdx + 1];
847943
848001
  if (!isValidScope(scope)) {
847944
- context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES.join(", ")}.`);
848002
+ context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
847945
848003
  return;
847946
848004
  }
847947
848005
  filter.scope = scope;
@@ -847991,7 +848049,7 @@ async function handleRecallAdd(args2, context) {
847991
848049
  const tags = tagsRaw ? tagsRaw.split(",").map((token) => token.trim()).filter(Boolean) : [];
847992
848050
  const scope = scopeRaw && isValidScope(scopeRaw) ? scopeRaw : "project";
847993
848051
  if (scopeRaw && !isValidScope(scopeRaw)) {
847994
- context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${VALID_SCOPES.join(", ")}.`);
848052
+ context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${VALID_SCOPES2.join(", ")}.`);
847995
848053
  return;
847996
848054
  }
847997
848055
  const provenance = [];
@@ -848125,7 +848183,7 @@ function handleRecallExport(args2, context) {
848125
848183
  if (scopeIdx !== -1 && commandArgs[scopeIdx + 1]) {
848126
848184
  const scope = commandArgs[scopeIdx + 1];
848127
848185
  if (!isValidScope(scope)) {
848128
- context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES.join(", ")}.`);
848186
+ context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
848129
848187
  return;
848130
848188
  }
848131
848189
  filter.scope = scope;
@@ -848204,7 +848262,7 @@ function handleRecallHandoffExport(args2, context) {
848204
848262
  const scopeIdx = commandArgs.indexOf("--scope");
848205
848263
  const scopeRaw = scopeIdx !== -1 ? commandArgs[scopeIdx + 1] : "team";
848206
848264
  if (!scopeRaw || !isValidScope(scopeRaw)) {
848207
- context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${VALID_SCOPES.join(", ")}.`);
848265
+ context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${VALID_SCOPES2.join(", ")}.`);
848208
848266
  return;
848209
848267
  }
848210
848268
  const bundle = memory.exportBundle({ scope: scopeRaw });
@@ -848320,7 +848378,7 @@ function handleRecallPromote(args2, context) {
848320
848378
  const id = parsed.rest[0];
848321
848379
  const scope = parsed.rest[1];
848322
848380
  if (!id || !scope || !isValidScope(scope)) {
848323
- context.print(`[memory] Usage: /memory promote <id> <${VALID_SCOPES.join("|")}> --yes`);
848381
+ context.print(`[memory] Usage: /memory promote <id> <${VALID_SCOPES2.join("|")}> --yes`);
848324
848382
  return;
848325
848383
  }
848326
848384
  if (!parsed.yes) {
@@ -862253,7 +862311,7 @@ import { mkdirSync as mkdirSync64, readFileSync as readFileSync86, writeFileSync
862253
862311
  import { dirname as dirname63, resolve as resolve39 } from "path";
862254
862312
  init_state3();
862255
862313
  var VALID_CLASSES2 = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
862256
- var VALID_SCOPES3 = ["session", "project", "team"];
862314
+ var VALID_SCOPES4 = ["session", "project", "team"];
862257
862315
  var VALID_REVIEW_STATES3 = ["fresh", "reviewed", "stale", "contradicted"];
862258
862316
  var VALID_PROVENANCE_KINDS = ["session", "turn", "task", "event", "file"];
862259
862317
  var VALUE_OPTIONS = new Set([
@@ -862353,7 +862411,7 @@ function isMemoryClass2(value) {
862353
862411
  return VALID_CLASSES2.includes(value);
862354
862412
  }
862355
862413
  function isMemoryScope2(value) {
862356
- return VALID_SCOPES3.includes(value);
862414
+ return VALID_SCOPES4.includes(value);
862357
862415
  }
862358
862416
  function isReviewState(value) {
862359
862417
  return VALID_REVIEW_STATES3.includes(value);
@@ -862368,7 +862426,7 @@ function requireClass(value) {
862368
862426
  }
862369
862427
  function requireScope(value) {
862370
862428
  if (!value || !isMemoryScope2(value))
862371
- throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${VALID_SCOPES3.join(", ")}`);
862429
+ throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${VALID_SCOPES4.join(", ")}`);
862372
862430
  return value;
862373
862431
  }
862374
862432
  function optionalScope(value) {
@@ -873184,6 +873242,7 @@ function createBootstrapCommandActions(options) {
873184
873242
  showPanel,
873185
873243
  openMcpWorkspace: () => unwiredShellAction("openMcpWorkspace"),
873186
873244
  openAgentWorkspace: () => unwiredShellAction("openAgentWorkspace"),
873245
+ dismissAgentWorkspace: () => unwiredShellAction("dismissAgentWorkspace"),
873187
873246
  openSecurityPanel: () => {
873188
873247
  showPanel("security");
873189
873248
  },
@@ -880312,7 +880371,7 @@ function keybindingOperationRoute(action2) {
880312
880371
  effect: "visible-ui-navigation",
880313
880372
  preferredMode: "run_keybinding",
880314
880373
  confirmation: 'agent_harness mode:"run_keybinding" requires confirm:true and explicitUserRequest.',
880315
- note: "Closes the active legacy panel if present, then focuses the prompt when the shell bridge exposes focusPrompt."
880374
+ note: "Dismisses the active Agent workspace first. If no Agent workspace is active, closes the active legacy panel if present, then focuses the prompt when the shell bridge exposes focusPrompt."
880316
880375
  };
880317
880376
  case "panel-close-all":
880318
880377
  return {
@@ -880320,7 +880379,7 @@ function keybindingOperationRoute(action2) {
880320
880379
  effect: "visible-ui-navigation",
880321
880380
  preferredMode: "run_keybinding",
880322
880381
  confirmation: 'agent_harness mode:"run_keybinding" requires confirm:true and explicitUserRequest.',
880323
- note: "Closes all legacy panels if present, hides the panel manager, then focuses the prompt when the shell bridge exposes focusPrompt."
880382
+ note: "Dismisses the active Agent workspace first. If no Agent workspace is active, closes all legacy panels if present, hides the panel manager, then focuses the prompt when the shell bridge exposes focusPrompt."
880324
880383
  };
880325
880384
  case "history-search":
880326
880385
  return {
@@ -880514,11 +880573,21 @@ function runHarnessKeybinding(context, args2) {
880514
880573
  }
880515
880574
  return runUnavailable(resolved.action, route, "No panel picker or Agent workspace opener is available.");
880516
880575
  case "panel-close": {
880576
+ const dismissedAgentWorkspace = context.dismissAgentWorkspace?.() ?? false;
880577
+ if (dismissedAgentWorkspace) {
880578
+ return {
880579
+ status: "executed",
880580
+ action: resolved.action,
880581
+ effect: "agent-workspace-dismissed",
880582
+ route: "dismissAgentWorkspace",
880583
+ keybinding: descriptor
880584
+ };
880585
+ }
880517
880586
  const active = context.workspace.panelManager?.getActivePanel() ?? null;
880518
880587
  if (active)
880519
880588
  context.workspace.panelManager?.close(active.id);
880520
880589
  if (!active && !context.focusPrompt)
880521
- return runUnavailable(resolved.action, route, "No active legacy panel or prompt focus route is available.");
880590
+ return runUnavailable(resolved.action, route, "No active Agent workspace, active legacy panel, or prompt focus route is available.");
880522
880591
  if (context.focusPrompt)
880523
880592
  context.focusPrompt();
880524
880593
  context.renderRequest();
@@ -880531,13 +880600,23 @@ function runHarnessKeybinding(context, args2) {
880531
880600
  };
880532
880601
  }
880533
880602
  case "panel-close-all": {
880603
+ const dismissedAgentWorkspace = context.dismissAgentWorkspace?.() ?? false;
880604
+ if (dismissedAgentWorkspace) {
880605
+ return {
880606
+ status: "executed",
880607
+ action: resolved.action,
880608
+ effect: "agent-workspace-dismissed",
880609
+ route: "dismissAgentWorkspace",
880610
+ keybinding: descriptor
880611
+ };
880612
+ }
880534
880613
  const managerPanel = context.workspace.panelManager;
880535
880614
  const openPanels = managerPanel?.getAllOpen() ?? [];
880536
880615
  for (const panel of openPanels)
880537
880616
  managerPanel?.close(panel.id);
880538
880617
  managerPanel?.hide();
880539
880618
  if (openPanels.length === 0 && !context.focusPrompt)
880540
- return runUnavailable(resolved.action, route, "No open legacy panels or prompt focus route is available.");
880619
+ return runUnavailable(resolved.action, route, "No active Agent workspace, open legacy panels, or prompt focus route is available.");
880541
880620
  if (context.focusPrompt)
880542
880621
  context.focusPrompt();
880543
880622
  context.renderRequest();
@@ -901183,6 +901262,7 @@ function wireShellUiOpeners(options) {
901183
901262
  input.openAgentWorkspace(commandContext, categoryId);
901184
901263
  render();
901185
901264
  };
901265
+ commandContext.dismissAgentWorkspace = () => input.dismissAgentWorkspace();
901186
901266
  commandContext.openSessionPicker = () => {
901187
901267
  input.modalOpened("sessionPicker");
901188
901268
  input.sessionPickerModal.open();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-agent",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
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",
@@ -130,6 +130,7 @@ export interface CommandShellUiOpeners {
130
130
  focusPrompt?: () => void;
131
131
  openMcpWorkspace?: () => void;
132
132
  openAgentWorkspace?: (categoryId?: string) => void;
133
+ dismissAgentWorkspace?: () => boolean;
133
134
  openSecurityPanel?: () => void;
134
135
  openKnowledgePanel?: () => void;
135
136
  openSubscriptionPanel?: () => void;
@@ -156,6 +156,7 @@ export function createBootstrapCommandActions(
156
156
  | 'showPanel'
157
157
  | 'openMcpWorkspace'
158
158
  | 'openAgentWorkspace'
159
+ | 'dismissAgentWorkspace'
159
160
  | 'openSecurityPanel'
160
161
  | 'openKnowledgePanel'
161
162
  | 'openSubscriptionPanel'
@@ -243,6 +244,7 @@ export function createBootstrapCommandActions(
243
244
  showPanel,
244
245
  openMcpWorkspace: () => unwiredShellAction('openMcpWorkspace'),
245
246
  openAgentWorkspace: () => unwiredShellAction('openAgentWorkspace'),
247
+ dismissAgentWorkspace: () => unwiredShellAction('dismissAgentWorkspace'),
246
248
  openSecurityPanel: () => {
247
249
  showPanel('security');
248
250
  },
@@ -435,6 +435,8 @@ export function wireShellUiOpeners(options: WireShellUiOpenersOptions): void {
435
435
  render();
436
436
  };
437
437
 
438
+ commandContext.dismissAgentWorkspace = () => input.dismissAgentWorkspace();
439
+
438
440
  commandContext.openSessionPicker = () => {
439
441
  input.modalOpened('sessionPicker');
440
442
  input.sessionPickerModal.open();
@@ -271,7 +271,7 @@ function keybindingOperationRoute(action: KeyAction): KeybindingOperationRoute {
271
271
  effect: 'visible-ui-navigation',
272
272
  preferredMode: 'run_keybinding',
273
273
  confirmation: 'agent_harness mode:"run_keybinding" requires confirm:true and explicitUserRequest.',
274
- note: 'Closes the active legacy panel if present, then focuses the prompt when the shell bridge exposes focusPrompt.',
274
+ note: 'Dismisses the active Agent workspace first. If no Agent workspace is active, closes the active legacy panel if present, then focuses the prompt when the shell bridge exposes focusPrompt.',
275
275
  };
276
276
  case 'panel-close-all':
277
277
  return {
@@ -279,7 +279,7 @@ function keybindingOperationRoute(action: KeyAction): KeybindingOperationRoute {
279
279
  effect: 'visible-ui-navigation',
280
280
  preferredMode: 'run_keybinding',
281
281
  confirmation: 'agent_harness mode:"run_keybinding" requires confirm:true and explicitUserRequest.',
282
- note: 'Closes all legacy panels if present, hides the panel manager, then focuses the prompt when the shell bridge exposes focusPrompt.',
282
+ note: 'Dismisses the active Agent workspace first. If no Agent workspace is active, closes all legacy panels if present, hides the panel manager, then focuses the prompt when the shell bridge exposes focusPrompt.',
283
283
  };
284
284
  case 'history-search':
285
285
  return {
@@ -479,9 +479,19 @@ export function runHarnessKeybinding(context: CommandContext, args: HarnessKeybi
479
479
  }
480
480
  return runUnavailable(resolved.action, route, 'No panel picker or Agent workspace opener is available.');
481
481
  case 'panel-close': {
482
+ const dismissedAgentWorkspace = context.dismissAgentWorkspace?.() ?? false;
483
+ if (dismissedAgentWorkspace) {
484
+ return {
485
+ status: 'executed',
486
+ action: resolved.action,
487
+ effect: 'agent-workspace-dismissed',
488
+ route: 'dismissAgentWorkspace',
489
+ keybinding: descriptor,
490
+ };
491
+ }
482
492
  const active = context.workspace.panelManager?.getActivePanel() ?? null;
483
493
  if (active) context.workspace.panelManager?.close(active.id);
484
- if (!active && !context.focusPrompt) return runUnavailable(resolved.action, route, 'No active legacy panel or prompt focus route is available.');
494
+ if (!active && !context.focusPrompt) return runUnavailable(resolved.action, route, 'No active Agent workspace, active legacy panel, or prompt focus route is available.');
485
495
  if (context.focusPrompt) context.focusPrompt();
486
496
  context.renderRequest();
487
497
  return {
@@ -493,11 +503,21 @@ export function runHarnessKeybinding(context: CommandContext, args: HarnessKeybi
493
503
  };
494
504
  }
495
505
  case 'panel-close-all': {
506
+ const dismissedAgentWorkspace = context.dismissAgentWorkspace?.() ?? false;
507
+ if (dismissedAgentWorkspace) {
508
+ return {
509
+ status: 'executed',
510
+ action: resolved.action,
511
+ effect: 'agent-workspace-dismissed',
512
+ route: 'dismissAgentWorkspace',
513
+ keybinding: descriptor,
514
+ };
515
+ }
496
516
  const managerPanel = context.workspace.panelManager;
497
517
  const openPanels = managerPanel?.getAllOpen() ?? [];
498
518
  for (const panel of openPanels) managerPanel?.close(panel.id);
499
519
  managerPanel?.hide();
500
- if (openPanels.length === 0 && !context.focusPrompt) return runUnavailable(resolved.action, route, 'No open legacy panels or prompt focus route is available.');
520
+ if (openPanels.length === 0 && !context.focusPrompt) return runUnavailable(resolved.action, route, 'No active Agent workspace, open legacy panels, or prompt focus route is available.');
501
521
  if (context.focusPrompt) context.focusPrompt();
502
522
  context.renderRequest();
503
523
  return {
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.25';
9
+ let _version = '1.0.26';
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 {