@pellux/goodvibes-agent 1.0.25 → 1.0.27
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 +12 -0
- package/README.md +1 -1
- package/dist/package/main.js +286 -54
- package/docs/getting-started.md +1 -1
- package/docs/tools-and-commands.md +1 -1
- package/package.json +1 -1
- package/src/input/command-registry.ts +1 -0
- package/src/runtime/bootstrap-command-parts.ts +2 -0
- package/src/shell/ui-openers.ts +2 -0
- package/src/tools/agent-harness-keybinding-metadata.ts +24 -4
- package/src/tools/agent-harness-metadata.ts +181 -26
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Product-facing release notes for GoodVibes Agent.
|
|
4
4
|
|
|
5
|
+
## 1.0.27 - 2026-06-03
|
|
6
|
+
|
|
7
|
+
- Classify every built-in slash command with concrete model-visible effect and boundary policy metadata instead of generic unknown policy fallback.
|
|
8
|
+
- Document that built-in slash-command inspection returns concrete effect and boundary policy metadata.
|
|
9
|
+
- Add focused harness coverage so registered built-in slash commands cannot silently regress to unknown model policy.
|
|
10
|
+
|
|
11
|
+
## 1.0.26 - 2026-06-03
|
|
12
|
+
|
|
13
|
+
- 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.
|
|
14
|
+
- Refresh model-operation metadata for panel close keybindings so supported keybinding behavior matches visible shell behavior.
|
|
15
|
+
- Add focused harness coverage for model-triggered Agent workspace dismissal.
|
|
16
|
+
|
|
5
17
|
## 1.0.25 - 2026-06-03
|
|
6
18
|
|
|
7
19
|
- Correct the model-visible fixed shortcut catalog so F2 is reported as the runtime activity monitor instead of the shortcut reference.
|
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ Use the workspace as the primary product surface:
|
|
|
66
66
|
|
|
67
67
|
Inside the Agent workspace, press `/` to search every workspace action by name, category, command, or detail. This is the primary discovery path for product actions; slash commands and CLI subcommands remain power-user/scriptable mirrors.
|
|
68
68
|
|
|
69
|
-
The model has the same harness map through `agent_harness`: it can list Agent workspace actions, inspect or run one workspace action by `actionId`, `command`, `target`, or `query`, list built-in panels and inspect one panel by `panelId`, `target`, or `query`, inspect modal/overlay/picker UI surfaces by `surfaceId`, `target`, or `query`, list top-level CLI mirrors and inspect one mirror by `cliCommand`, `command`, `commandName`, `target`, or `query`, inspect fixed shortcuts and configurable keybindings by `actionId`, `target`, `key`, or `query`, run shell-safe keybinding equivalents with confirmation, list slash commands, inspect or run one slash command by `command`, `commandName`, `target`, or `query` with parsed arguments and policy metadata, inspect model tool definitions or one model tool schema, inspect or change Agent settings by `key`, `target`, or `query` with confirmation, and report connected-host capability and live readiness posture. CLI mirror modes are read-only catalog and parser inspection; inside the main conversation, the model uses the returned preferred model tool, workspace action, setting mode, or confirmed slash-command mirror instead of launching hidden nested CLI processes. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, command browser, conversation search, prompt-history search, slash-command mode, file picker, block actions, context, runtime activity, live process output, bookmarks, model/provider/reasoning-effort pickers, TTS provider/voice pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose fixed runtime/editor controls plus the live resolved keybinding table; each keybinding descriptor reports its model operation route, `run_keybinding` executes only supported shell-safe equivalents with confirmation, and prompt-editor-only or terminal-selection shortcuts remain explicit direct user interaction. `set_keybinding` and `reset_keybinding` write the same `keybindings.json` file the user edits and require confirmation. Workspace action discovery can inline editor field schemas with `includeParameters:true`; single-action lookup and execution use the same user-facing search fields, return or preserve lookup metadata where the action result carries descriptors, and refuse ambiguous run requests with candidates; CLI mirror, panel, UI surface, keybinding, slash-command, model tool, setting, and connected-host capability lookup use their catalog search fields and refuse ambiguous route, schema, capability, or mutation requests with candidates; confirmed slash-command execution uses the same slash-command lookup and refuses ambiguous requests before any handler runs; profile editors use the current starter-template inventory, and routine schedule editors can prefill a selected local routine from `recordId`. Selection-based local workspace actions accept a local `recordId` so the model can use the same note promotion and local registry flows as the TUI. Direct local create editors for memory, notes, personas, skills, and routines can execute from submitted fields through `run_workspace_action` and `agent_local_registry` with confirmation. The `connected_host` report includes route families, allowed capabilities, blocked lifecycle/non-Agent surfaces, and availability for the first-class Agent tools; `connected_host_capability` inspects one allowed or blocked capability by id, target, or query with its route families and boundary. The `connected_host_status` report performs a read-only live check of the connected-host status route and the isolated Agent Knowledge status route, reports SDK compatibility, token posture, endpoint bindings, route readiness, and actionable findings, and still refuses connected-host lifecycle control. The model uses those first-class tools for product workflows where they exist, such as Agent Knowledge, local memory/notes/personas/skills/routines, channel sends, notifications, reminders, media generation, work plans, and connected-host operator actions.
|
|
69
|
+
The model has the same harness map through `agent_harness`: it can list Agent workspace actions, inspect or run one workspace action by `actionId`, `command`, `target`, or `query`, list built-in panels and inspect one panel by `panelId`, `target`, or `query`, inspect modal/overlay/picker UI surfaces by `surfaceId`, `target`, or `query`, list top-level CLI mirrors and inspect one mirror by `cliCommand`, `command`, `commandName`, `target`, or `query`, inspect fixed shortcuts and configurable keybindings by `actionId`, `target`, `key`, or `query`, run shell-safe keybinding equivalents with confirmation, list slash commands, inspect or run one slash command by `command`, `commandName`, `target`, or `query` with parsed arguments and concrete built-in effect/boundary policy metadata, inspect model tool definitions or one model tool schema, inspect or change Agent settings by `key`, `target`, or `query` with confirmation, and report connected-host capability and live readiness posture. CLI mirror modes are read-only catalog and parser inspection; inside the main conversation, the model uses the returned preferred model tool, workspace action, setting mode, or confirmed slash-command mirror instead of launching hidden nested CLI processes. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, command browser, conversation search, prompt-history search, slash-command mode, file picker, block actions, context, runtime activity, live process output, bookmarks, model/provider/reasoning-effort pickers, TTS provider/voice pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose fixed runtime/editor controls plus the live resolved keybinding table; each keybinding descriptor reports its model operation route, `run_keybinding` executes only supported shell-safe equivalents with confirmation, and prompt-editor-only or terminal-selection shortcuts remain explicit direct user interaction. `set_keybinding` and `reset_keybinding` write the same `keybindings.json` file the user edits and require confirmation. Workspace action discovery can inline editor field schemas with `includeParameters:true`; single-action lookup and execution use the same user-facing search fields, return or preserve lookup metadata where the action result carries descriptors, and refuse ambiguous run requests with candidates; CLI mirror, panel, UI surface, keybinding, slash-command, model tool, setting, and connected-host capability lookup use their catalog search fields and refuse ambiguous route, schema, capability, or mutation requests with candidates; confirmed slash-command execution uses the same slash-command lookup and refuses ambiguous requests before any handler runs; profile editors use the current starter-template inventory, and routine schedule editors can prefill a selected local routine from `recordId`. Selection-based local workspace actions accept a local `recordId` so the model can use the same note promotion and local registry flows as the TUI. Direct local create editors for memory, notes, personas, skills, and routines can execute from submitted fields through `run_workspace_action` and `agent_local_registry` with confirmation. The `connected_host` report includes route families, allowed capabilities, blocked lifecycle/non-Agent surfaces, and availability for the first-class Agent tools; `connected_host_capability` inspects one allowed or blocked capability by id, target, or query with its route families and boundary. The `connected_host_status` report performs a read-only live check of the connected-host status route and the isolated Agent Knowledge status route, reports SDK compatibility, token posture, endpoint bindings, route readiness, and actionable findings, and still refuses connected-host lifecycle control. The model uses those first-class tools for product workflows where they exist, such as Agent Knowledge, local memory/notes/personas/skills/routines, channel sends, notifications, reminders, media generation, work plans, and connected-host operator actions.
|
|
70
70
|
|
|
71
71
|
The setup workspace surfaces discovered Agent-local persona, skill, and routine markdown files so day-one setup can import useful behavior instead of starting from blank records. It can also create one initial scratchpad note, local persona, skill, and routine directly during first-run setup; those records stay in Agent-local registries and never write to default knowledge or non-Agent segments.
|
|
72
72
|
|
package/dist/package/main.js
CHANGED
|
@@ -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: () =>
|
|
731451
|
-
stabilizeKnowledgeText: () =>
|
|
731452
|
-
runKnowledgeSemanticSelfImprovement: () =>
|
|
731508
|
+
uniqKnowledgeValues: () => uniq2,
|
|
731509
|
+
stabilizeKnowledgeText: () => stableText,
|
|
731510
|
+
runKnowledgeSemanticSelfImprovement: () => runKnowledgeSemanticSelfImprovement,
|
|
731453
731511
|
resolveProjectPlanningSpace: () => resolveProjectPlanningSpace,
|
|
731454
|
-
resolveKnowledgeDbPathFromControlPlaneDir: () =>
|
|
731512
|
+
resolveKnowledgeDbPathFromControlPlaneDir: () => resolveKnowledgeDbPathFromControlPlaneDir,
|
|
731455
731513
|
renderPacket: () => renderPacket,
|
|
731456
731514
|
renderKnowledgeSchemaSql: () => renderKnowledgeSchemaSql,
|
|
731457
731515
|
renderKnowledgeMap: () => renderKnowledgeMap,
|
|
731458
731516
|
readKnowledgeSearchText: () => readKnowledgeSearchText,
|
|
731459
|
-
readBrowserKnowledgeProfile: () =>
|
|
731517
|
+
readBrowserKnowledgeProfile: () => readBrowserKnowledgeProfile,
|
|
731460
731518
|
projectPlanningSourceId: () => projectPlanningSourceId,
|
|
731461
731519
|
projectPlanningProjectIdFromPath: () => projectPlanningProjectIdFromPath,
|
|
731462
731520
|
projectPlanningCanonicalUri: () => projectPlanningCanonicalUri,
|
|
731463
731521
|
projectKnowledgeSpaceId: () => projectKnowledgeSpaceId,
|
|
731464
|
-
parseKnowledgeJsonValue: () =>
|
|
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: () =>
|
|
731530
|
+
loadKnowledgeStoreSnapshot: () => loadKnowledgeStoreSnapshot,
|
|
731473
731531
|
listGeneratedKnowledgePages: () => listGeneratedKnowledgePages,
|
|
731474
|
-
listBrowserKinds: () =>
|
|
731532
|
+
listBrowserKinds: () => listBrowserKinds,
|
|
731475
731533
|
knowledgeSpaceMetadata: () => knowledgeSpaceMetadata,
|
|
731476
731534
|
knowledgePageSourceWeight: () => knowledgePageSourceWeight,
|
|
731477
|
-
knowledgeNowMs: () =>
|
|
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: () =>
|
|
731498
|
-
discoverBrowserKnowledgeProfiles: () =>
|
|
731555
|
+
evaluateProjectPlanningReadiness: () => evaluateProjectPlanningReadiness,
|
|
731556
|
+
discoverBrowserKnowledgeProfiles: () => discoverBrowserKnowledgeProfiles,
|
|
731499
731557
|
createWebKnowledgeGapRepairer: () => createWebKnowledgeGapRepairer,
|
|
731500
731558
|
createProviderBackedKnowledgeSemanticLlm: () => createProviderBackedKnowledgeSemanticLlm,
|
|
731501
731559
|
createMemoryApi: () => createMemoryApi,
|
|
731502
|
-
createKnowledgeSchema: () =>
|
|
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,
|
|
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 ?
|
|
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.
|
|
816569
|
+
var _version = "1.0.27";
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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:
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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 ${
|
|
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 ${
|
|
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 ${
|
|
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 ${
|
|
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 ${
|
|
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> <${
|
|
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
|
|
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
|
|
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 ${
|
|
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
|
},
|
|
@@ -879321,7 +879380,119 @@ function actionSearchStatus(host) {
|
|
|
879321
879380
|
function describeCommandPolicy(commandName) {
|
|
879322
879381
|
const root = commandName.replace(/^\//, "").trim().toLowerCase();
|
|
879323
879382
|
const confirmation = 'agent_harness mode:"run_command" requires confirm:true and explicitUserRequest for every slash command invocation.';
|
|
879324
|
-
if (root === "
|
|
879383
|
+
if (root === "agent" || root === "agent-workspace" || root === "workspace") {
|
|
879384
|
+
return {
|
|
879385
|
+
effect: "ui-navigation",
|
|
879386
|
+
confirmation,
|
|
879387
|
+
preferredModelTool: "agent_harness workspace/workspace_categories/workspace_actions/workspace_action/run_workspace_action",
|
|
879388
|
+
boundary: "Agent workspace navigation is visible shell routing. Use workspace action modes for concrete model-readable operation."
|
|
879389
|
+
};
|
|
879390
|
+
}
|
|
879391
|
+
if (root === "setup" || root === "welcome") {
|
|
879392
|
+
return {
|
|
879393
|
+
effect: "ui-navigation",
|
|
879394
|
+
confirmation,
|
|
879395
|
+
preferredModelTool: "agent_harness workspace_actions/workspace_action/open_ui_surface",
|
|
879396
|
+
boundary: "Setup opens the visible Agent onboarding or setup workspace. Model-side changes should use setting modes or workspace actions."
|
|
879397
|
+
};
|
|
879398
|
+
}
|
|
879399
|
+
if (root === "commands" || root === "help" || root === "shortcuts") {
|
|
879400
|
+
return {
|
|
879401
|
+
effect: "ui-navigation",
|
|
879402
|
+
confirmation,
|
|
879403
|
+
preferredModelTool: root === "shortcuts" ? "agent_harness shortcuts/keybindings/keybinding" : "agent_harness commands/command",
|
|
879404
|
+
boundary: "Discovery commands open visible help surfaces. The model should inspect the matching harness catalog directly before invoking commands."
|
|
879405
|
+
};
|
|
879406
|
+
}
|
|
879407
|
+
if (root === "keybindings") {
|
|
879408
|
+
return {
|
|
879409
|
+
effect: "read-only",
|
|
879410
|
+
confirmation,
|
|
879411
|
+
preferredModelTool: "agent_harness shortcuts/keybindings/keybinding/run_keybinding/set_keybinding/reset_keybinding",
|
|
879412
|
+
boundary: "Keybinding inspection is read-only. Keybinding execution or edits require explicit confirmation through agent_harness keybinding modes."
|
|
879413
|
+
};
|
|
879414
|
+
}
|
|
879415
|
+
if (root === "settings" || root === "config") {
|
|
879416
|
+
return {
|
|
879417
|
+
effect: "mixed",
|
|
879418
|
+
confirmation,
|
|
879419
|
+
preferredModelTool: "agent_harness settings/get_setting/set_setting/reset_setting",
|
|
879420
|
+
boundary: "Model-writable settings can be changed through agent_harness. Connected-host lifecycle/listener settings remain read-only."
|
|
879421
|
+
};
|
|
879422
|
+
}
|
|
879423
|
+
if (root === "model" || root === "effort") {
|
|
879424
|
+
return {
|
|
879425
|
+
effect: "mixed",
|
|
879426
|
+
confirmation,
|
|
879427
|
+
preferredModelTool: "agent_harness settings/get_setting/set_setting/open_ui_surface",
|
|
879428
|
+
boundary: "Model and reasoning-effort changes affect the current Agent chat route. Prefer settings modes for concrete values and UI surface routing for visible pickers."
|
|
879429
|
+
};
|
|
879430
|
+
}
|
|
879431
|
+
if (root === "provider" || root === "providers") {
|
|
879432
|
+
return {
|
|
879433
|
+
effect: "mixed",
|
|
879434
|
+
confirmation,
|
|
879435
|
+
preferredModelTool: "agent_harness settings/get_setting/set_setting/open_ui_surface",
|
|
879436
|
+
boundary: "Provider selection and custom provider files belong to Agent provider configuration. Adding, removing, or switching providers requires explicit user intent."
|
|
879437
|
+
};
|
|
879438
|
+
}
|
|
879439
|
+
if (root === "refresh-models") {
|
|
879440
|
+
return {
|
|
879441
|
+
effect: "external-network",
|
|
879442
|
+
confirmation,
|
|
879443
|
+
preferredModelTool: "agent_harness settings/tools",
|
|
879444
|
+
boundary: "Model catalog refresh may call provider discovery routes and update local provider metadata. Do not run it without explicit user request."
|
|
879445
|
+
};
|
|
879446
|
+
}
|
|
879447
|
+
if (root === "pin" || root === "unpin") {
|
|
879448
|
+
return {
|
|
879449
|
+
effect: "local-state",
|
|
879450
|
+
confirmation,
|
|
879451
|
+
preferredModelTool: "agent_harness run_command",
|
|
879452
|
+
boundary: "Pinned model changes mutate local Agent provider preferences only and require an explicit model id."
|
|
879453
|
+
};
|
|
879454
|
+
}
|
|
879455
|
+
if (root === "mode") {
|
|
879456
|
+
return {
|
|
879457
|
+
effect: "local-state",
|
|
879458
|
+
confirmation,
|
|
879459
|
+
preferredModelTool: "agent_harness settings/get_setting/set_setting",
|
|
879460
|
+
boundary: "Interaction-mode changes affect the current Agent operator notification posture and should be explicit."
|
|
879461
|
+
};
|
|
879462
|
+
}
|
|
879463
|
+
if (root === "brief") {
|
|
879464
|
+
return {
|
|
879465
|
+
effect: "read-only",
|
|
879466
|
+
confirmation,
|
|
879467
|
+
preferredModelTool: "agent_operator_briefing",
|
|
879468
|
+
boundary: "Briefing reads current Agent operator posture and next actions without mutating connected-host state."
|
|
879469
|
+
};
|
|
879470
|
+
}
|
|
879471
|
+
if (root === "health" || root === "compat" || root === "context" || root === "accounts" || root === "security") {
|
|
879472
|
+
return {
|
|
879473
|
+
effect: "read-only",
|
|
879474
|
+
confirmation,
|
|
879475
|
+
preferredModelTool: root === "compat" ? "agent_harness connected_host_status" : "agent_harness connected_host_status/settings/tools/open_ui_surface",
|
|
879476
|
+
boundary: "Diagnostics and review commands inspect Agent, provider, MCP, security, and connected-host readiness without taking lifecycle ownership."
|
|
879477
|
+
};
|
|
879478
|
+
}
|
|
879479
|
+
if (root === "trust" || root === "auth" || root === "bundle") {
|
|
879480
|
+
return {
|
|
879481
|
+
effect: "mixed",
|
|
879482
|
+
confirmation,
|
|
879483
|
+
preferredModelTool: "agent_harness run_command",
|
|
879484
|
+
boundary: "Review subcommands are read-only; bundle export/import or auth/trust bundle export writes local files and requires explicit confirmation."
|
|
879485
|
+
};
|
|
879486
|
+
}
|
|
879487
|
+
if (root === "mcp" || root === "voice" || root === "subscription" || root === "secrets" || root === "secret") {
|
|
879488
|
+
return {
|
|
879489
|
+
effect: "mixed",
|
|
879490
|
+
confirmation,
|
|
879491
|
+
preferredModelTool: root === "secrets" || root === "secret" ? "agent_harness settings/get_setting/set_setting/reset_setting" : "agent_harness workspace_actions/settings/open_ui_surface",
|
|
879492
|
+
boundary: "Harness-owned configuration, secret, voice, subscription, and MCP commands can expose credentials or external account state. Mutations require explicit user intent and should prefer secret refs over raw values."
|
|
879493
|
+
};
|
|
879494
|
+
}
|
|
879495
|
+
if (root === "memory" || root === "memories" || root === "note" || root === "persona" || root === "personas" || root === "skill" || root === "skills" || root === "routine" || root === "routines") {
|
|
879325
879496
|
return {
|
|
879326
879497
|
effect: "local-state",
|
|
879327
879498
|
confirmation,
|
|
@@ -879329,20 +879500,20 @@ function describeCommandPolicy(commandName) {
|
|
|
879329
879500
|
boundary: "Agent-local library records only unless the invoked command explicitly promotes to a connected schedule or Agent Knowledge source."
|
|
879330
879501
|
};
|
|
879331
879502
|
}
|
|
879332
|
-
if (root === "
|
|
879503
|
+
if (root === "notes") {
|
|
879333
879504
|
return {
|
|
879334
|
-
effect: "
|
|
879505
|
+
effect: "ui-navigation",
|
|
879335
879506
|
confirmation,
|
|
879336
|
-
preferredModelTool: "
|
|
879337
|
-
boundary: "
|
|
879507
|
+
preferredModelTool: "agent_harness workspace_actions/workspace_action/run_workspace_action or agent_local_registry",
|
|
879508
|
+
boundary: "Notes workspace routing is visible navigation; note record mutations should use Agent-local registry or workspace action modes."
|
|
879338
879509
|
};
|
|
879339
879510
|
}
|
|
879340
|
-
if (root === "
|
|
879511
|
+
if (root === "knowledge") {
|
|
879341
879512
|
return {
|
|
879342
879513
|
effect: "mixed",
|
|
879343
879514
|
confirmation,
|
|
879344
|
-
preferredModelTool: "
|
|
879345
|
-
boundary: "
|
|
879515
|
+
preferredModelTool: "agent_knowledge or agent_knowledge_ingest",
|
|
879516
|
+
boundary: "Agent Knowledge only. Do not use default knowledge or non-Agent knowledge spaces."
|
|
879346
879517
|
};
|
|
879347
879518
|
}
|
|
879348
879519
|
if (root === "approval" || root === "approvals" || root === "automation") {
|
|
@@ -879369,7 +879540,7 @@ function describeCommandPolicy(commandName) {
|
|
|
879369
879540
|
boundary: "External delivery requires an explicit target and direct user authorization."
|
|
879370
879541
|
};
|
|
879371
879542
|
}
|
|
879372
|
-
if (root === "media"
|
|
879543
|
+
if (root === "media") {
|
|
879373
879544
|
return {
|
|
879374
879545
|
effect: "external-network",
|
|
879375
879546
|
confirmation,
|
|
@@ -879377,6 +879548,22 @@ function describeCommandPolicy(commandName) {
|
|
|
879377
879548
|
boundary: "Media generation uses configured Agent media providers and writes normal artifacts only."
|
|
879378
879549
|
};
|
|
879379
879550
|
}
|
|
879551
|
+
if (root === "image") {
|
|
879552
|
+
return {
|
|
879553
|
+
effect: "external-network",
|
|
879554
|
+
confirmation,
|
|
879555
|
+
preferredModelTool: "agent_harness open_ui_surface",
|
|
879556
|
+
boundary: "Image attachment reads a local image and submits a model turn with image content. Use only for explicit user-supplied files."
|
|
879557
|
+
};
|
|
879558
|
+
}
|
|
879559
|
+
if (root === "tts") {
|
|
879560
|
+
return {
|
|
879561
|
+
effect: "external-network",
|
|
879562
|
+
confirmation,
|
|
879563
|
+
preferredModelTool: "agent_harness settings/open_ui_surface",
|
|
879564
|
+
boundary: "Live TTS submits a normal prompt and may call model and speech providers; stopping playback is local runtime control."
|
|
879565
|
+
};
|
|
879566
|
+
}
|
|
879380
879567
|
if (root === "workplan" || root === "plan" || root === "task" || root === "tasks") {
|
|
879381
879568
|
return {
|
|
879382
879569
|
effect: "local-state",
|
|
@@ -879392,26 +879579,50 @@ function describeCommandPolicy(commandName) {
|
|
|
879392
879579
|
boundary: "Delegation is explicit user-directed work only; no hidden background review or separate Agent job should be created implicitly."
|
|
879393
879580
|
};
|
|
879394
879581
|
}
|
|
879395
|
-
if (root === "session" || root === "conversation" || root === "clear" || root === "quit" || root === "exit") {
|
|
879582
|
+
if (root === "session" || root === "conversation" || root === "clear" || root === "reset" || root === "compact" || root === "quit" || root === "exit" || root === "save" || root === "load" || root === "sessions" || root === "title" || root === "undo" || root === "redo" || root === "retry") {
|
|
879396
879583
|
return {
|
|
879397
879584
|
effect: "session-lifecycle",
|
|
879398
879585
|
confirmation,
|
|
879399
879586
|
boundary: "Session and conversation commands operate on the visible harness session lifecycle."
|
|
879400
879587
|
};
|
|
879401
879588
|
}
|
|
879402
|
-
if (root === "
|
|
879589
|
+
if (root === "export") {
|
|
879590
|
+
return {
|
|
879591
|
+
effect: "local-state",
|
|
879592
|
+
confirmation,
|
|
879593
|
+
boundary: "Conversation export writes a local workspace file and requires an explicit output intent."
|
|
879594
|
+
};
|
|
879595
|
+
}
|
|
879596
|
+
if (root === "bookmarks" || root === "expand" || root === "collapse" || root === "next-error" || root === "prev-error") {
|
|
879403
879597
|
return {
|
|
879404
879598
|
effect: "ui-navigation",
|
|
879405
879599
|
confirmation,
|
|
879406
|
-
preferredModelTool: "agent_harness
|
|
879407
|
-
boundary: "
|
|
879600
|
+
preferredModelTool: root === "bookmarks" ? "agent_harness open_ui_surface" : undefined,
|
|
879601
|
+
boundary: "Conversation display navigation mutates only the visible transcript view or scroll position."
|
|
879408
879602
|
};
|
|
879409
879603
|
}
|
|
879410
|
-
if (root === "
|
|
879604
|
+
if (root === "paste") {
|
|
879605
|
+
return {
|
|
879606
|
+
effect: "local-state",
|
|
879607
|
+
confirmation,
|
|
879608
|
+
preferredModelTool: "agent_harness run_keybinding",
|
|
879609
|
+
boundary: "Paste reads the local clipboard and mutates the visible prompt or image attachment state."
|
|
879610
|
+
};
|
|
879611
|
+
}
|
|
879612
|
+
if (root === "profile" || root === "agent-profile") {
|
|
879411
879613
|
return {
|
|
879412
879614
|
effect: "mixed",
|
|
879413
879615
|
confirmation,
|
|
879414
|
-
|
|
879616
|
+
preferredModelTool: "agent_harness workspace_actions/workspace_action/run_workspace_action",
|
|
879617
|
+
boundary: "Agent profile commands manage isolated Agent runtime profiles and starter templates. Mutations require explicit confirmation."
|
|
879618
|
+
};
|
|
879619
|
+
}
|
|
879620
|
+
if (root === "qrcode") {
|
|
879621
|
+
return {
|
|
879622
|
+
effect: "read-only",
|
|
879623
|
+
confirmation,
|
|
879624
|
+
preferredModelTool: "agent_harness run_command",
|
|
879625
|
+
boundary: "Pairing details are displayed for explicit operator use; the Agent does not manage connected-host listener lifecycle."
|
|
879415
879626
|
};
|
|
879416
879627
|
}
|
|
879417
879628
|
return {
|
|
@@ -880312,7 +880523,7 @@ function keybindingOperationRoute(action2) {
|
|
|
880312
880523
|
effect: "visible-ui-navigation",
|
|
880313
880524
|
preferredMode: "run_keybinding",
|
|
880314
880525
|
confirmation: 'agent_harness mode:"run_keybinding" requires confirm:true and explicitUserRequest.',
|
|
880315
|
-
note: "
|
|
880526
|
+
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
880527
|
};
|
|
880317
880528
|
case "panel-close-all":
|
|
880318
880529
|
return {
|
|
@@ -880320,7 +880531,7 @@ function keybindingOperationRoute(action2) {
|
|
|
880320
880531
|
effect: "visible-ui-navigation",
|
|
880321
880532
|
preferredMode: "run_keybinding",
|
|
880322
880533
|
confirmation: 'agent_harness mode:"run_keybinding" requires confirm:true and explicitUserRequest.',
|
|
880323
|
-
note: "
|
|
880534
|
+
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
880535
|
};
|
|
880325
880536
|
case "history-search":
|
|
880326
880537
|
return {
|
|
@@ -880514,11 +880725,21 @@ function runHarnessKeybinding(context, args2) {
|
|
|
880514
880725
|
}
|
|
880515
880726
|
return runUnavailable(resolved.action, route, "No panel picker or Agent workspace opener is available.");
|
|
880516
880727
|
case "panel-close": {
|
|
880728
|
+
const dismissedAgentWorkspace = context.dismissAgentWorkspace?.() ?? false;
|
|
880729
|
+
if (dismissedAgentWorkspace) {
|
|
880730
|
+
return {
|
|
880731
|
+
status: "executed",
|
|
880732
|
+
action: resolved.action,
|
|
880733
|
+
effect: "agent-workspace-dismissed",
|
|
880734
|
+
route: "dismissAgentWorkspace",
|
|
880735
|
+
keybinding: descriptor
|
|
880736
|
+
};
|
|
880737
|
+
}
|
|
880517
880738
|
const active = context.workspace.panelManager?.getActivePanel() ?? null;
|
|
880518
880739
|
if (active)
|
|
880519
880740
|
context.workspace.panelManager?.close(active.id);
|
|
880520
880741
|
if (!active && !context.focusPrompt)
|
|
880521
|
-
return runUnavailable(resolved.action, route, "No active legacy panel or prompt focus route is available.");
|
|
880742
|
+
return runUnavailable(resolved.action, route, "No active Agent workspace, active legacy panel, or prompt focus route is available.");
|
|
880522
880743
|
if (context.focusPrompt)
|
|
880523
880744
|
context.focusPrompt();
|
|
880524
880745
|
context.renderRequest();
|
|
@@ -880531,13 +880752,23 @@ function runHarnessKeybinding(context, args2) {
|
|
|
880531
880752
|
};
|
|
880532
880753
|
}
|
|
880533
880754
|
case "panel-close-all": {
|
|
880755
|
+
const dismissedAgentWorkspace = context.dismissAgentWorkspace?.() ?? false;
|
|
880756
|
+
if (dismissedAgentWorkspace) {
|
|
880757
|
+
return {
|
|
880758
|
+
status: "executed",
|
|
880759
|
+
action: resolved.action,
|
|
880760
|
+
effect: "agent-workspace-dismissed",
|
|
880761
|
+
route: "dismissAgentWorkspace",
|
|
880762
|
+
keybinding: descriptor
|
|
880763
|
+
};
|
|
880764
|
+
}
|
|
880534
880765
|
const managerPanel = context.workspace.panelManager;
|
|
880535
880766
|
const openPanels = managerPanel?.getAllOpen() ?? [];
|
|
880536
880767
|
for (const panel of openPanels)
|
|
880537
880768
|
managerPanel?.close(panel.id);
|
|
880538
880769
|
managerPanel?.hide();
|
|
880539
880770
|
if (openPanels.length === 0 && !context.focusPrompt)
|
|
880540
|
-
return runUnavailable(resolved.action, route, "No open legacy panels or prompt focus route is available.");
|
|
880771
|
+
return runUnavailable(resolved.action, route, "No active Agent workspace, open legacy panels, or prompt focus route is available.");
|
|
880541
880772
|
if (context.focusPrompt)
|
|
880542
880773
|
context.focusPrompt();
|
|
880543
880774
|
context.renderRequest();
|
|
@@ -901183,6 +901414,7 @@ function wireShellUiOpeners(options) {
|
|
|
901183
901414
|
input.openAgentWorkspace(commandContext, categoryId);
|
|
901184
901415
|
render();
|
|
901185
901416
|
};
|
|
901417
|
+
commandContext.dismissAgentWorkspace = () => input.dismissAgentWorkspace();
|
|
901186
901418
|
commandContext.openSessionPicker = () => {
|
|
901187
901419
|
input.modalOpened("sessionPicker");
|
|
901188
901420
|
input.sessionPickerModal.open();
|
package/docs/getting-started.md
CHANGED
|
@@ -44,7 +44,7 @@ After setup has been applied once, the TUI opens directly into the Agent operato
|
|
|
44
44
|
|
|
45
45
|
Press `/` inside the Agent workspace to search every workspace action by name, category, command, or detail. Use that finder before reaching for shell commands; CLI subcommands are scriptable mirrors of these TUI workflows.
|
|
46
46
|
|
|
47
|
-
The model can inspect and use the same harness surface through Agent-owned tools. `agent_harness` exposes workspace action discovery, single workspace-action inspection and execution by action id, command, or lookup text, built-in panel discovery/routing by panel id or lookup text, modal/overlay/picker UI surface discovery/routing by surface id or lookup text, top-level CLI mirror discovery and single-mirror lookup by command string, command token, or lookup text, fixed shortcut and configurable keybinding discovery, keybinding inspection/mutation by action id or lookup text, confirmation-gated shell-safe keybinding execution, slash-command discovery, single slash-command inspection by typed command or lookup text, command policy metadata, single slash-command execution by typed command or lookup text with confirmation, model tool discovery and single-tool schema inspection, settings inspection/mutation by key or lookup text, connected-host capability inventory, single connected-host capability inspection, and live connected-host readiness posture. CLI mirror modes are read-only catalog/parser inspection and point the model to the matching in-process tool, workspace action, setting mode, or slash-command mirror. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, command browser, conversation search, prompt-history search, slash-command mode, file picker, block actions, context, runtime activity, live process output, bookmarks, model/provider/reasoning-effort pickers, TTS provider/voice pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose the fixed runtime/editor shortcuts and the live keybindings table; keybinding descriptors include a model operation route, `run_keybinding` executes supported shell-safe equivalents only with confirmation, prompt-editor-only or terminal-selection shortcuts remain direct user interaction, and confirmed keybinding edits write the same `keybindings.json` file the user edits and reload the runtime manager. Workspace action discovery can include editor field schemas with `includeParameters:true`, including starter-template defaults for profile creation and selected-routine defaults for routine schedule promotion when `recordId` is supplied; single-action lookup and execution use the same user-facing search fields, return lookup metadata where the action result carries descriptors, and refuse ambiguous run requests with candidates. Single-CLI-mirror, single-panel, single-surface, single-keybinding, single-slash-command, single-tool, single-setting, and single-connected-host-capability lookup use their catalog search fields, return lookup metadata where the result carries it, and refuse ambiguous route, schema, capability, or mutation requests with candidates; confirmed slash-command execution uses the same slash-command lookup and refuses ambiguous requests before any handler runs. Selection-based local workspace actions accept a local `recordId`, so the model can use the same note promotion and local registry flows as the TUI. Direct local create editors for memory, notes, personas, skills, and routines can execute from submitted fields through `run_workspace_action` and `agent_local_registry` with confirmation. First-class model tools cover the main product workflows directly: Agent Knowledge, Agent Knowledge ingest, Agent-local memory/notes/personas/skills/routines, operator actions, notifications, channel sends, reminders, generated media, and work plans.
|
|
47
|
+
The model can inspect and use the same harness surface through Agent-owned tools. `agent_harness` exposes workspace action discovery, single workspace-action inspection and execution by action id, command, or lookup text, built-in panel discovery/routing by panel id or lookup text, modal/overlay/picker UI surface discovery/routing by surface id or lookup text, top-level CLI mirror discovery and single-mirror lookup by command string, command token, or lookup text, fixed shortcut and configurable keybinding discovery, keybinding inspection/mutation by action id or lookup text, confirmation-gated shell-safe keybinding execution, slash-command discovery, single slash-command inspection by typed command or lookup text, concrete built-in command effect/boundary policy metadata, single slash-command execution by typed command or lookup text with confirmation, model tool discovery and single-tool schema inspection, settings inspection/mutation by key or lookup text, connected-host capability inventory, single connected-host capability inspection, and live connected-host readiness posture. CLI mirror modes are read-only catalog/parser inspection and point the model to the matching in-process tool, workspace action, setting mode, or slash-command mirror. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, command browser, conversation search, prompt-history search, slash-command mode, file picker, block actions, context, runtime activity, live process output, bookmarks, model/provider/reasoning-effort pickers, TTS provider/voice pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose the fixed runtime/editor shortcuts and the live keybindings table; keybinding descriptors include a model operation route, `run_keybinding` executes supported shell-safe equivalents only with confirmation, prompt-editor-only or terminal-selection shortcuts remain direct user interaction, and confirmed keybinding edits write the same `keybindings.json` file the user edits and reload the runtime manager. Workspace action discovery can include editor field schemas with `includeParameters:true`, including starter-template defaults for profile creation and selected-routine defaults for routine schedule promotion when `recordId` is supplied; single-action lookup and execution use the same user-facing search fields, return lookup metadata where the action result carries descriptors, and refuse ambiguous run requests with candidates. Single-CLI-mirror, single-panel, single-surface, single-keybinding, single-slash-command, single-tool, single-setting, and single-connected-host-capability lookup use their catalog search fields, return lookup metadata where the result carries it, and refuse ambiguous route, schema, capability, or mutation requests with candidates; confirmed slash-command execution uses the same slash-command lookup and refuses ambiguous requests before any handler runs. Selection-based local workspace actions accept a local `recordId`, so the model can use the same note promotion and local registry flows as the TUI. Direct local create editors for memory, notes, personas, skills, and routines can execute from submitted fields through `run_workspace_action` and `agent_local_registry` with confirmation. First-class model tools cover the main product workflows directly: Agent Knowledge, Agent Knowledge ingest, Agent-local memory/notes/personas/skills/routines, operator actions, notifications, channel sends, reminders, generated media, and work plans.
|
|
48
48
|
|
|
49
49
|
Use the Artifacts area for concrete files and generated output: attach images to prompts, export conversations or saved sessions, ingest local source files and URL lists into Agent Knowledge, import bookmarks or browser history, inspect source records, and generate media artifacts from confirmed prompts.
|
|
50
50
|
|
|
@@ -50,7 +50,7 @@ The main Agent model has an Agent-owned harness bridge rather than generic SDK s
|
|
|
50
50
|
- `agent_work_plan`: keep the visible Agent-local work plan current from the conversation.
|
|
51
51
|
- `agent_channel_send`, `agent_notify`, `agent_reminder_schedule`, and `agent_media_generate`: perform confirmed external delivery, notification, reminder, or media actions when the user explicitly asks.
|
|
52
52
|
|
|
53
|
-
`agent_harness` discovery modes are read-only. `summary` reports the model access map; `panels` lists the built-in panel catalog, and `panel` resolves one panel by `panelId`, `target`, or `query` with current open/focused state plus its matching Agent workspace route; `ui_surfaces` lists modal, overlay, picker, and workspace entrypoints, and `ui_surface` resolves one by `surfaceId`, `target`, or `query` with shell-opener availability and preferred model routes; `cli_commands` lists top-level package CLI mirror metadata, and `cli_command` resolves one mirror by `cliCommand`, `command`, `commandName`, `target`, or `query`, returning parser output for concrete invocations, blocked command tokens, lookup metadata, and preferred in-process model routes; `shortcuts` returns fixed runtime/editor shortcuts plus configurable keybindings; `keybindings` lists the live resolved keybinding table, and `keybinding`, `run_keybinding`, `set_keybinding`, and `reset_keybinding` resolve one action by `actionId`, `target`, `key`, or `query` with default bindings, custom state, config path, lookup metadata, and model-operation route metadata; `commands` lists slash-command descriptions; `command` returns one slash-command detail by `command`, `commandName`, `target`, or `query`, including parsed arguments plus effect/confirmation/preferred-tool/boundary policy metadata, and refuses ambiguous command lookup with candidate commands; `run_command` executes one confirmed slash command using the same `command`, `commandName`, `target`, or `query` resolver and refuses ambiguous command lookup before any handler runs; `workspace_actions` lists Agent workspace actions and can inline editor field schemas with `includeParameters:true`; `workspace_action` and `run_workspace_action` resolve one action by `actionId`, `command`, `target`, or `query`, using the same user-facing action-search fields; inspection returns lookup metadata plus editor schema, and execution refuses ambiguous requests with candidate actions before any effect; `tools` lists model tool definitions and can inline JSON schemas with `includeParameters:true`; `tool` returns one model tool schema by `toolName`, `target`, or `query` and refuses ambiguous schema lookup with candidate tools; `settings` returns setting descriptors plus setting policy; `get_setting`, `set_setting`, and `reset_setting` resolve one setting by `key`, `target`, or `query`, return lookup metadata on success, and refuse ambiguous matches with candidate settings; `connected_host` returns the connected-host route families, allowed capabilities, blocked capabilities, and first-class tool availability; `connected_host_capability` returns one allowed or blocked connected-host capability by `capabilityId`, `target`, or `query` with related route families and boundary text and refuses ambiguous capability lookup with candidates; and `connected_host_status` performs a live read-only check of the connected-host status and Agent Knowledge status routes and reports endpoint bindings, token posture, SDK compatibility, route readiness, and findings without printing token values.
|
|
53
|
+
`agent_harness` discovery modes are read-only. `summary` reports the model access map; `panels` lists the built-in panel catalog, and `panel` resolves one panel by `panelId`, `target`, or `query` with current open/focused state plus its matching Agent workspace route; `ui_surfaces` lists modal, overlay, picker, and workspace entrypoints, and `ui_surface` resolves one by `surfaceId`, `target`, or `query` with shell-opener availability and preferred model routes; `cli_commands` lists top-level package CLI mirror metadata, and `cli_command` resolves one mirror by `cliCommand`, `command`, `commandName`, `target`, or `query`, returning parser output for concrete invocations, blocked command tokens, lookup metadata, and preferred in-process model routes; `shortcuts` returns fixed runtime/editor shortcuts plus configurable keybindings; `keybindings` lists the live resolved keybinding table, and `keybinding`, `run_keybinding`, `set_keybinding`, and `reset_keybinding` resolve one action by `actionId`, `target`, `key`, or `query` with default bindings, custom state, config path, lookup metadata, and model-operation route metadata; `commands` lists slash-command descriptions; `command` returns one slash-command detail by `command`, `commandName`, `target`, or `query`, including parsed arguments plus concrete built-in effect/confirmation/preferred-tool/boundary policy metadata, and refuses ambiguous command lookup with candidate commands; `run_command` executes one confirmed slash command using the same `command`, `commandName`, `target`, or `query` resolver and refuses ambiguous command lookup before any handler runs; `workspace_actions` lists Agent workspace actions and can inline editor field schemas with `includeParameters:true`; `workspace_action` and `run_workspace_action` resolve one action by `actionId`, `command`, `target`, or `query`, using the same user-facing action-search fields; inspection returns lookup metadata plus editor schema, and execution refuses ambiguous requests with candidate actions before any effect; `tools` lists model tool definitions and can inline JSON schemas with `includeParameters:true`; `tool` returns one model tool schema by `toolName`, `target`, or `query` and refuses ambiguous schema lookup with candidate tools; `settings` returns setting descriptors plus setting policy; `get_setting`, `set_setting`, and `reset_setting` resolve one setting by `key`, `target`, or `query`, return lookup metadata on success, and refuse ambiguous matches with candidate settings; `connected_host` returns the connected-host route families, allowed capabilities, blocked capabilities, and first-class tool availability; `connected_host_capability` returns one allowed or blocked connected-host capability by `capabilityId`, `target`, or `query` with related route families and boundary text and refuses ambiguous capability lookup with candidates; and `connected_host_status` performs a live read-only check of the connected-host status and Agent Knowledge status routes and reports endpoint bindings, token posture, SDK compatibility, route readiness, and findings without printing token values.
|
|
54
54
|
|
|
55
55
|
`open_ui_surface` is a confirmation-gated visible navigation mode for the same shell surfaces the user can open: Agent workspace, settings, MCP workspace, model/provider/reasoning-effort pickers, TTS provider/voice pickers, session/profile pickers, the panel-picker compatibility route, security/knowledge/subscription operator surfaces, conversation search, prompt-history search, slash-command mode, command browser, file picker, block actions, bookmarks, context inspector, runtime activity monitor, live process output, help, shortcuts, and onboarding. It does not perform hidden operations; use first-class model tools, settings modes, workspace actions, or confirmed slash-command mirrors for actual state changes. Ambiguous UI surface lookup text is refused with candidate surfaces instead of routed.
|
|
56
56
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pellux/goodvibes-agent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
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
|
},
|
package/src/shell/ui-openers.ts
CHANGED
|
@@ -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: '
|
|
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: '
|
|
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 {
|
|
@@ -16,11 +16,122 @@ export type ConnectedHostCapabilityResolution =
|
|
|
16
16
|
export function describeCommandPolicy(commandName: string): CommandExecutionPolicy {
|
|
17
17
|
const root = commandName.replace(/^\//, '').trim().toLowerCase();
|
|
18
18
|
const confirmation = 'agent_harness mode:"run_command" requires confirm:true and explicitUserRequest for every slash command invocation.';
|
|
19
|
+
if (root === 'agent' || root === 'agent-workspace' || root === 'workspace') {
|
|
20
|
+
return {
|
|
21
|
+
effect: 'ui-navigation',
|
|
22
|
+
confirmation,
|
|
23
|
+
preferredModelTool: 'agent_harness workspace/workspace_categories/workspace_actions/workspace_action/run_workspace_action',
|
|
24
|
+
boundary: 'Agent workspace navigation is visible shell routing. Use workspace action modes for concrete model-readable operation.',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (root === 'setup' || root === 'welcome') {
|
|
28
|
+
return {
|
|
29
|
+
effect: 'ui-navigation',
|
|
30
|
+
confirmation,
|
|
31
|
+
preferredModelTool: 'agent_harness workspace_actions/workspace_action/open_ui_surface',
|
|
32
|
+
boundary: 'Setup opens the visible Agent onboarding or setup workspace. Model-side changes should use setting modes or workspace actions.',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
if (root === 'commands' || root === 'help' || root === 'shortcuts') {
|
|
36
|
+
return {
|
|
37
|
+
effect: 'ui-navigation',
|
|
38
|
+
confirmation,
|
|
39
|
+
preferredModelTool: root === 'shortcuts' ? 'agent_harness shortcuts/keybindings/keybinding' : 'agent_harness commands/command',
|
|
40
|
+
boundary: 'Discovery commands open visible help surfaces. The model should inspect the matching harness catalog directly before invoking commands.',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (root === 'keybindings') {
|
|
44
|
+
return {
|
|
45
|
+
effect: 'read-only',
|
|
46
|
+
confirmation,
|
|
47
|
+
preferredModelTool: 'agent_harness shortcuts/keybindings/keybinding/run_keybinding/set_keybinding/reset_keybinding',
|
|
48
|
+
boundary: 'Keybinding inspection is read-only. Keybinding execution or edits require explicit confirmation through agent_harness keybinding modes.',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (root === 'settings' || root === 'config') {
|
|
52
|
+
return {
|
|
53
|
+
effect: 'mixed',
|
|
54
|
+
confirmation,
|
|
55
|
+
preferredModelTool: 'agent_harness settings/get_setting/set_setting/reset_setting',
|
|
56
|
+
boundary: 'Model-writable settings can be changed through agent_harness. Connected-host lifecycle/listener settings remain read-only.',
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
if (root === 'model' || root === 'effort') {
|
|
60
|
+
return {
|
|
61
|
+
effect: 'mixed',
|
|
62
|
+
confirmation,
|
|
63
|
+
preferredModelTool: 'agent_harness settings/get_setting/set_setting/open_ui_surface',
|
|
64
|
+
boundary: 'Model and reasoning-effort changes affect the current Agent chat route. Prefer settings modes for concrete values and UI surface routing for visible pickers.',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
if (root === 'provider' || root === 'providers') {
|
|
68
|
+
return {
|
|
69
|
+
effect: 'mixed',
|
|
70
|
+
confirmation,
|
|
71
|
+
preferredModelTool: 'agent_harness settings/get_setting/set_setting/open_ui_surface',
|
|
72
|
+
boundary: 'Provider selection and custom provider files belong to Agent provider configuration. Adding, removing, or switching providers requires explicit user intent.',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
if (root === 'refresh-models') {
|
|
76
|
+
return {
|
|
77
|
+
effect: 'external-network',
|
|
78
|
+
confirmation,
|
|
79
|
+
preferredModelTool: 'agent_harness settings/tools',
|
|
80
|
+
boundary: 'Model catalog refresh may call provider discovery routes and update local provider metadata. Do not run it without explicit user request.',
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
if (root === 'pin' || root === 'unpin') {
|
|
84
|
+
return {
|
|
85
|
+
effect: 'local-state',
|
|
86
|
+
confirmation,
|
|
87
|
+
preferredModelTool: 'agent_harness run_command',
|
|
88
|
+
boundary: 'Pinned model changes mutate local Agent provider preferences only and require an explicit model id.',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
if (root === 'mode') {
|
|
92
|
+
return {
|
|
93
|
+
effect: 'local-state',
|
|
94
|
+
confirmation,
|
|
95
|
+
preferredModelTool: 'agent_harness settings/get_setting/set_setting',
|
|
96
|
+
boundary: 'Interaction-mode changes affect the current Agent operator notification posture and should be explicit.',
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
if (root === 'brief') {
|
|
100
|
+
return {
|
|
101
|
+
effect: 'read-only',
|
|
102
|
+
confirmation,
|
|
103
|
+
preferredModelTool: 'agent_operator_briefing',
|
|
104
|
+
boundary: 'Briefing reads current Agent operator posture and next actions without mutating connected-host state.',
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
if (root === 'health' || root === 'compat' || root === 'context' || root === 'accounts' || root === 'security') {
|
|
108
|
+
return {
|
|
109
|
+
effect: 'read-only',
|
|
110
|
+
confirmation,
|
|
111
|
+
preferredModelTool: root === 'compat' ? 'agent_harness connected_host_status' : 'agent_harness connected_host_status/settings/tools/open_ui_surface',
|
|
112
|
+
boundary: 'Diagnostics and review commands inspect Agent, provider, MCP, security, and connected-host readiness without taking lifecycle ownership.',
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
if (root === 'trust' || root === 'auth' || root === 'bundle') {
|
|
116
|
+
return {
|
|
117
|
+
effect: 'mixed',
|
|
118
|
+
confirmation,
|
|
119
|
+
preferredModelTool: 'agent_harness run_command',
|
|
120
|
+
boundary: 'Review subcommands are read-only; bundle export/import or auth/trust bundle export writes local files and requires explicit confirmation.',
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
if (root === 'mcp' || root === 'voice' || root === 'subscription' || root === 'secrets' || root === 'secret') {
|
|
124
|
+
return {
|
|
125
|
+
effect: 'mixed',
|
|
126
|
+
confirmation,
|
|
127
|
+
preferredModelTool: root === 'secrets' || root === 'secret' ? 'agent_harness settings/get_setting/set_setting/reset_setting' : 'agent_harness workspace_actions/settings/open_ui_surface',
|
|
128
|
+
boundary: 'Harness-owned configuration, secret, voice, subscription, and MCP commands can expose credentials or external account state. Mutations require explicit user intent and should prefer secret refs over raw values.',
|
|
129
|
+
};
|
|
130
|
+
}
|
|
19
131
|
if (
|
|
20
132
|
root === 'memory'
|
|
21
133
|
|| root === 'memories'
|
|
22
134
|
|| root === 'note'
|
|
23
|
-
|| root === 'notes'
|
|
24
135
|
|| root === 'persona'
|
|
25
136
|
|| root === 'personas'
|
|
26
137
|
|| root === 'skill'
|
|
@@ -35,20 +146,20 @@ export function describeCommandPolicy(commandName: string): CommandExecutionPoli
|
|
|
35
146
|
boundary: 'Agent-local library records only unless the invoked command explicitly promotes to a connected schedule or Agent Knowledge source.',
|
|
36
147
|
};
|
|
37
148
|
}
|
|
38
|
-
if (root === '
|
|
149
|
+
if (root === 'notes') {
|
|
39
150
|
return {
|
|
40
|
-
effect: '
|
|
151
|
+
effect: 'ui-navigation',
|
|
41
152
|
confirmation,
|
|
42
|
-
preferredModelTool: '
|
|
43
|
-
boundary: '
|
|
153
|
+
preferredModelTool: 'agent_harness workspace_actions/workspace_action/run_workspace_action or agent_local_registry',
|
|
154
|
+
boundary: 'Notes workspace routing is visible navigation; note record mutations should use Agent-local registry or workspace action modes.',
|
|
44
155
|
};
|
|
45
156
|
}
|
|
46
|
-
if (root === '
|
|
157
|
+
if (root === 'knowledge') {
|
|
47
158
|
return {
|
|
48
159
|
effect: 'mixed',
|
|
49
160
|
confirmation,
|
|
50
|
-
preferredModelTool: '
|
|
51
|
-
boundary: '
|
|
161
|
+
preferredModelTool: 'agent_knowledge or agent_knowledge_ingest',
|
|
162
|
+
boundary: 'Agent Knowledge only. Do not use default knowledge or non-Agent knowledge spaces.',
|
|
52
163
|
};
|
|
53
164
|
}
|
|
54
165
|
if (root === 'approval' || root === 'approvals' || root === 'automation') {
|
|
@@ -75,7 +186,7 @@ export function describeCommandPolicy(commandName: string): CommandExecutionPoli
|
|
|
75
186
|
boundary: 'External delivery requires an explicit target and direct user authorization.',
|
|
76
187
|
};
|
|
77
188
|
}
|
|
78
|
-
if (root === 'media'
|
|
189
|
+
if (root === 'media') {
|
|
79
190
|
return {
|
|
80
191
|
effect: 'external-network',
|
|
81
192
|
confirmation,
|
|
@@ -83,6 +194,22 @@ export function describeCommandPolicy(commandName: string): CommandExecutionPoli
|
|
|
83
194
|
boundary: 'Media generation uses configured Agent media providers and writes normal artifacts only.',
|
|
84
195
|
};
|
|
85
196
|
}
|
|
197
|
+
if (root === 'image') {
|
|
198
|
+
return {
|
|
199
|
+
effect: 'external-network',
|
|
200
|
+
confirmation,
|
|
201
|
+
preferredModelTool: 'agent_harness open_ui_surface',
|
|
202
|
+
boundary: 'Image attachment reads a local image and submits a model turn with image content. Use only for explicit user-supplied files.',
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
if (root === 'tts') {
|
|
206
|
+
return {
|
|
207
|
+
effect: 'external-network',
|
|
208
|
+
confirmation,
|
|
209
|
+
preferredModelTool: 'agent_harness settings/open_ui_surface',
|
|
210
|
+
boundary: 'Live TTS submits a normal prompt and may call model and speech providers; stopping playback is local runtime control.',
|
|
211
|
+
};
|
|
212
|
+
}
|
|
86
213
|
if (root === 'workplan' || root === 'plan' || root === 'task' || root === 'tasks') {
|
|
87
214
|
return {
|
|
88
215
|
effect: 'local-state',
|
|
@@ -98,37 +225,65 @@ export function describeCommandPolicy(commandName: string): CommandExecutionPoli
|
|
|
98
225
|
boundary: 'Delegation is explicit user-directed work only; no hidden background review or separate Agent job should be created implicitly.',
|
|
99
226
|
};
|
|
100
227
|
}
|
|
101
|
-
if (
|
|
228
|
+
if (
|
|
229
|
+
root === 'session'
|
|
230
|
+
|| root === 'conversation'
|
|
231
|
+
|| root === 'clear'
|
|
232
|
+
|| root === 'reset'
|
|
233
|
+
|| root === 'compact'
|
|
234
|
+
|| root === 'quit'
|
|
235
|
+
|| root === 'exit'
|
|
236
|
+
|| root === 'save'
|
|
237
|
+
|| root === 'load'
|
|
238
|
+
|| root === 'sessions'
|
|
239
|
+
|| root === 'title'
|
|
240
|
+
|| root === 'undo'
|
|
241
|
+
|| root === 'redo'
|
|
242
|
+
|| root === 'retry'
|
|
243
|
+
) {
|
|
102
244
|
return {
|
|
103
245
|
effect: 'session-lifecycle',
|
|
104
246
|
confirmation,
|
|
105
247
|
boundary: 'Session and conversation commands operate on the visible harness session lifecycle.',
|
|
106
248
|
};
|
|
107
249
|
}
|
|
108
|
-
if (root === '
|
|
250
|
+
if (root === 'export') {
|
|
251
|
+
return {
|
|
252
|
+
effect: 'local-state',
|
|
253
|
+
confirmation,
|
|
254
|
+
boundary: 'Conversation export writes a local workspace file and requires an explicit output intent.',
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
if (root === 'bookmarks' || root === 'expand' || root === 'collapse' || root === 'next-error' || root === 'prev-error') {
|
|
109
258
|
return {
|
|
110
259
|
effect: 'ui-navigation',
|
|
111
260
|
confirmation,
|
|
112
|
-
preferredModelTool: 'agent_harness
|
|
113
|
-
boundary: '
|
|
261
|
+
preferredModelTool: root === 'bookmarks' ? 'agent_harness open_ui_surface' : undefined,
|
|
262
|
+
boundary: 'Conversation display navigation mutates only the visible transcript view or scroll position.',
|
|
114
263
|
};
|
|
115
264
|
}
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|| root === 'voice'
|
|
126
|
-
|| root === 'subscription'
|
|
127
|
-
) {
|
|
265
|
+
if (root === 'paste') {
|
|
266
|
+
return {
|
|
267
|
+
effect: 'local-state',
|
|
268
|
+
confirmation,
|
|
269
|
+
preferredModelTool: 'agent_harness run_keybinding',
|
|
270
|
+
boundary: 'Paste reads the local clipboard and mutates the visible prompt or image attachment state.',
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
if (root === 'profile' || root === 'agent-profile') {
|
|
128
274
|
return {
|
|
129
275
|
effect: 'mixed',
|
|
130
276
|
confirmation,
|
|
131
|
-
|
|
277
|
+
preferredModelTool: 'agent_harness workspace_actions/workspace_action/run_workspace_action',
|
|
278
|
+
boundary: 'Agent profile commands manage isolated Agent runtime profiles and starter templates. Mutations require explicit confirmation.',
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
if (root === 'qrcode') {
|
|
282
|
+
return {
|
|
283
|
+
effect: 'read-only',
|
|
284
|
+
confirmation,
|
|
285
|
+
preferredModelTool: 'agent_harness run_command',
|
|
286
|
+
boundary: 'Pairing details are displayed for explicit operator use; the Agent does not manage connected-host listener lifecycle.',
|
|
132
287
|
};
|
|
133
288
|
}
|
|
134
289
|
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.
|
|
9
|
+
let _version = '1.0.27';
|
|
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 {
|