@pellux/goodvibes-agent 1.0.26 → 1.0.28
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 +279 -130
- package/docs/README.md +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/tools-and-commands.md +2 -2
- package/package.json +1 -1
- package/src/tools/agent-harness-metadata.ts +181 -26
- package/src/tools/agent-harness-tool.ts +8 -15
- package/src/tools/agent-harness-workspace-editor-execution.ts +75 -0
- package/src/version.ts +1 -1
package/dist/package/main.js
CHANGED
|
@@ -389257,23 +389257,6 @@ function createSchema2(db) {
|
|
|
389257
389257
|
`);
|
|
389258
389258
|
db.run(`CREATE INDEX IF NOT EXISTS idx_knowledge_schedules_job_id ON knowledge_schedules(job_id)`);
|
|
389259
389259
|
}
|
|
389260
|
-
function getKnowledgeSchemaStatements() {
|
|
389261
|
-
const statements = [];
|
|
389262
|
-
createSchema2({
|
|
389263
|
-
run(sql) {
|
|
389264
|
-
const normalized = sql.trim();
|
|
389265
|
-
if (normalized.length > 0)
|
|
389266
|
-
statements.push(normalized);
|
|
389267
|
-
}
|
|
389268
|
-
});
|
|
389269
|
-
return statements;
|
|
389270
|
-
}
|
|
389271
|
-
function renderKnowledgeSchemaSql() {
|
|
389272
|
-
return `${getKnowledgeSchemaStatements().map((statement) => statement.endsWith(";") ? statement : `${statement};`).join(`
|
|
389273
|
-
|
|
389274
|
-
`)}
|
|
389275
|
-
`;
|
|
389276
|
-
}
|
|
389277
389260
|
function rowObject(columns, values2) {
|
|
389278
389261
|
return Object.fromEntries(columns.map((column, index) => [column, values2[index]]));
|
|
389279
389262
|
}
|
|
@@ -702611,9 +702594,6 @@ var init_ingest = __esm(() => {
|
|
|
702611
702594
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/browser-history/index.js
|
|
702612
702595
|
var init_browser_history = __esm(() => {
|
|
702613
702596
|
init_ingest();
|
|
702614
|
-
init_discover();
|
|
702615
|
-
init_readers();
|
|
702616
|
-
init_paths2();
|
|
702617
702597
|
});
|
|
702618
702598
|
|
|
702619
702599
|
// node_modules/graphql/jsutils/devAssert.mjs
|
|
@@ -720253,7 +720233,6 @@ var init_semantic = __esm(() => {
|
|
|
720253
720233
|
init_llm();
|
|
720254
720234
|
init_gap_repair();
|
|
720255
720235
|
init_service4();
|
|
720256
|
-
init_self_improvement();
|
|
720257
720236
|
});
|
|
720258
720237
|
|
|
720259
720238
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/home-graph/helpers.js
|
|
@@ -724222,40 +724201,8 @@ var init_map_view = __esm(() => {
|
|
|
724222
724201
|
});
|
|
724223
724202
|
|
|
724224
724203
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/home-graph/types.js
|
|
724225
|
-
var
|
|
724204
|
+
var HOME_GRAPH_CAPABILITIES;
|
|
724226
724205
|
var init_types6 = __esm(() => {
|
|
724227
|
-
HOME_GRAPH_NODE_KINDS = [
|
|
724228
|
-
"ha_home",
|
|
724229
|
-
"ha_entity",
|
|
724230
|
-
"ha_device",
|
|
724231
|
-
"ha_area",
|
|
724232
|
-
"ha_automation",
|
|
724233
|
-
"ha_script",
|
|
724234
|
-
"ha_scene",
|
|
724235
|
-
"ha_label",
|
|
724236
|
-
"ha_integration",
|
|
724237
|
-
"ha_room",
|
|
724238
|
-
"ha_device_passport",
|
|
724239
|
-
"ha_maintenance_item",
|
|
724240
|
-
"ha_troubleshooting_case",
|
|
724241
|
-
"ha_purchase",
|
|
724242
|
-
"ha_network_node"
|
|
724243
|
-
];
|
|
724244
|
-
HOME_GRAPH_RELATIONS = [
|
|
724245
|
-
"controls",
|
|
724246
|
-
"located_in",
|
|
724247
|
-
"belongs_to_device",
|
|
724248
|
-
"has_manual",
|
|
724249
|
-
"has_receipt",
|
|
724250
|
-
"has_warranty",
|
|
724251
|
-
"has_issue",
|
|
724252
|
-
"fixed_by",
|
|
724253
|
-
"uses_battery",
|
|
724254
|
-
"connected_via",
|
|
724255
|
-
"part_of_network",
|
|
724256
|
-
"mentioned_by",
|
|
724257
|
-
"source_for"
|
|
724258
|
-
];
|
|
724259
724206
|
HOME_GRAPH_CAPABILITIES = [
|
|
724260
724207
|
"knowledge-space-isolation",
|
|
724261
724208
|
"snapshot-sync",
|
|
@@ -725662,7 +725609,6 @@ var init_service5 = __esm(() => {
|
|
|
725662
725609
|
var init_home_graph = __esm(() => {
|
|
725663
725610
|
init_service5();
|
|
725664
725611
|
init_extension();
|
|
725665
|
-
init_types6();
|
|
725666
725612
|
});
|
|
725667
725613
|
|
|
725668
725614
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/store-refinement.js
|
|
@@ -727990,14 +727936,10 @@ var init_service6 = __esm(() => {
|
|
|
727990
727936
|
var init_project_planning = __esm(() => {
|
|
727991
727937
|
init_service6();
|
|
727992
727938
|
init_helpers3();
|
|
727993
|
-
init_readiness();
|
|
727994
727939
|
});
|
|
727995
727940
|
|
|
727996
727941
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/persistence.js
|
|
727997
|
-
var init_persistence =
|
|
727998
|
-
init_store_schema();
|
|
727999
|
-
init_store_load();
|
|
728000
|
-
});
|
|
727942
|
+
var init_persistence = () => {};
|
|
728001
727943
|
|
|
728002
727944
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/projections.js
|
|
728003
727945
|
class KnowledgeProjectionService {
|
|
@@ -731505,21 +731447,21 @@ var init_service7 = __esm(() => {
|
|
|
731505
731447
|
var exports_knowledge = {};
|
|
731506
731448
|
__export(exports_knowledge, {
|
|
731507
731449
|
withKnowledgeSpace: () => withKnowledgeSpace,
|
|
731508
|
-
uniqKnowledgeValues: () =>
|
|
731509
|
-
stabilizeKnowledgeText: () =>
|
|
731510
|
-
runKnowledgeSemanticSelfImprovement: () =>
|
|
731450
|
+
uniqKnowledgeValues: () => uniq3,
|
|
731451
|
+
stabilizeKnowledgeText: () => stableText2,
|
|
731452
|
+
runKnowledgeSemanticSelfImprovement: () => runKnowledgeSemanticSelfImprovement2,
|
|
731511
731453
|
resolveProjectPlanningSpace: () => resolveProjectPlanningSpace,
|
|
731512
|
-
resolveKnowledgeDbPathFromControlPlaneDir: () =>
|
|
731454
|
+
resolveKnowledgeDbPathFromControlPlaneDir: () => resolveKnowledgeDbPathFromControlPlaneDir2,
|
|
731513
731455
|
renderPacket: () => renderPacket,
|
|
731514
731456
|
renderKnowledgeSchemaSql: () => renderKnowledgeSchemaSql,
|
|
731515
731457
|
renderKnowledgeMap: () => renderKnowledgeMap,
|
|
731516
731458
|
readKnowledgeSearchText: () => readKnowledgeSearchText,
|
|
731517
|
-
readBrowserKnowledgeProfile: () =>
|
|
731459
|
+
readBrowserKnowledgeProfile: () => readBrowserKnowledgeProfile2,
|
|
731518
731460
|
projectPlanningSourceId: () => projectPlanningSourceId,
|
|
731519
731461
|
projectPlanningProjectIdFromPath: () => projectPlanningProjectIdFromPath,
|
|
731520
731462
|
projectPlanningCanonicalUri: () => projectPlanningCanonicalUri,
|
|
731521
731463
|
projectKnowledgeSpaceId: () => projectKnowledgeSpaceId,
|
|
731522
|
-
parseKnowledgeJsonValue: () =>
|
|
731464
|
+
parseKnowledgeJsonValue: () => parseJsonValue2,
|
|
731523
731465
|
normalizeProjectId: () => normalizeProjectId,
|
|
731524
731466
|
normalizeKnowledgeSpaceId: () => normalizeKnowledgeSpaceId,
|
|
731525
731467
|
normalizeHomeAssistantInstallationId: () => normalizeHomeAssistantInstallationId,
|
|
@@ -731527,12 +731469,12 @@ __export(exports_knowledge, {
|
|
|
731527
731469
|
materializeGeneratedKnowledgeProjection: () => materializeGeneratedKnowledgeProjection,
|
|
731528
731470
|
looksLikeRawPdfPayload: () => looksLikeRawPdfPayload,
|
|
731529
731471
|
looksBinaryLikeText: () => looksBinaryLikeText,
|
|
731530
|
-
loadKnowledgeStoreSnapshot: () =>
|
|
731472
|
+
loadKnowledgeStoreSnapshot: () => loadKnowledgeStoreSnapshot2,
|
|
731531
731473
|
listGeneratedKnowledgePages: () => listGeneratedKnowledgePages,
|
|
731532
|
-
listBrowserKinds: () =>
|
|
731474
|
+
listBrowserKinds: () => listBrowserKinds2,
|
|
731533
731475
|
knowledgeSpaceMetadata: () => knowledgeSpaceMetadata,
|
|
731534
731476
|
knowledgePageSourceWeight: () => knowledgePageSourceWeight,
|
|
731535
|
-
knowledgeNowMs: () =>
|
|
731477
|
+
knowledgeNowMs: () => nowMs2,
|
|
731536
731478
|
knowledgeExtractionNeedsRefresh: () => knowledgeExtractionNeedsRefresh,
|
|
731537
731479
|
isUsefulKnowledgePageSourceCandidate: () => isUsefulKnowledgePageSourceCandidate,
|
|
731538
731480
|
isUsefulKnowledgePageSource: () => isUsefulKnowledgePageSource,
|
|
@@ -731552,12 +731494,12 @@ __export(exports_knowledge, {
|
|
|
731552
731494
|
generatedKnowledgeSourceId: () => generatedKnowledgeSourceId,
|
|
731553
731495
|
generatedKnowledgeCanonicalUri: () => generatedKnowledgeCanonicalUri,
|
|
731554
731496
|
extractKnowledgeArtifact: () => extractKnowledgeArtifact,
|
|
731555
|
-
evaluateProjectPlanningReadiness: () =>
|
|
731556
|
-
discoverBrowserKnowledgeProfiles: () =>
|
|
731497
|
+
evaluateProjectPlanningReadiness: () => evaluateProjectPlanningReadiness2,
|
|
731498
|
+
discoverBrowserKnowledgeProfiles: () => discoverBrowserKnowledgeProfiles2,
|
|
731557
731499
|
createWebKnowledgeGapRepairer: () => createWebKnowledgeGapRepairer,
|
|
731558
731500
|
createProviderBackedKnowledgeSemanticLlm: () => createProviderBackedKnowledgeSemanticLlm,
|
|
731559
731501
|
createMemoryApi: () => createMemoryApi,
|
|
731560
|
-
createKnowledgeSchema: () =>
|
|
731502
|
+
createKnowledgeSchema: () => createSchema3,
|
|
731561
731503
|
createKnowledgeApi: () => createKnowledgeApi,
|
|
731562
731504
|
createDefaultKnowledgeConnectorRegistry: () => createDefaultKnowledgeConnectorRegistry,
|
|
731563
731505
|
compareKnowledgePageSources: () => compareKnowledgePageSources,
|
|
@@ -733995,7 +733937,7 @@ var init_delivery_manager = __esm(() => {
|
|
|
733995
733937
|
});
|
|
733996
733938
|
|
|
733997
733939
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/automation/scheduler-capacity.js
|
|
733998
|
-
function computeSchedulerCapacity(slotsTotal, runs,
|
|
733940
|
+
function computeSchedulerCapacity(slotsTotal, runs, nowMs3 = Date.now()) {
|
|
733999
733941
|
let slotsInUse = 0;
|
|
734000
733942
|
const queuedRuns = [];
|
|
734001
733943
|
for (const run7 of runs) {
|
|
@@ -734005,7 +733947,7 @@ function computeSchedulerCapacity(slotsTotal, runs, nowMs2 = Date.now()) {
|
|
|
734005
733947
|
queuedRuns.push(run7);
|
|
734006
733948
|
}
|
|
734007
733949
|
const queueDepth = queuedRuns.length;
|
|
734008
|
-
const oldestQueuedAgeMs = queueDepth > 0 ?
|
|
733950
|
+
const oldestQueuedAgeMs = queueDepth > 0 ? nowMs3 - Math.min(...queuedRuns.map((r5) => r5.queuedAt)) : null;
|
|
734009
733951
|
return { slotsTotal, slotsInUse, queueDepth, oldestQueuedAgeMs };
|
|
734010
733952
|
}
|
|
734011
733953
|
|
|
@@ -816566,7 +816508,7 @@ var createStyledCell = (char, overrides = {}) => ({
|
|
|
816566
816508
|
// src/version.ts
|
|
816567
816509
|
import { readFileSync } from "fs";
|
|
816568
816510
|
import { join } from "path";
|
|
816569
|
-
var _version = "1.0.
|
|
816511
|
+
var _version = "1.0.28";
|
|
816570
816512
|
var _sdkVersion = "0.33.35";
|
|
816571
816513
|
try {
|
|
816572
816514
|
const pkg = JSON.parse(readFileSync(join(import.meta.dir, "..", "package.json"), "utf-8"));
|
|
@@ -839428,7 +839370,7 @@ var WORK_PLAN_STATUSES = [
|
|
|
839428
839370
|
"failed",
|
|
839429
839371
|
"cancelled"
|
|
839430
839372
|
];
|
|
839431
|
-
function
|
|
839373
|
+
function nowMs3() {
|
|
839432
839374
|
return Date.now();
|
|
839433
839375
|
}
|
|
839434
839376
|
function isObject5(value) {
|
|
@@ -839534,7 +839476,7 @@ class WorkPlanStore {
|
|
|
839534
839476
|
if (!normalizedTitle)
|
|
839535
839477
|
throw new Error("Work plan item title is required.");
|
|
839536
839478
|
const plan = this.readPlan();
|
|
839537
|
-
const time4 =
|
|
839479
|
+
const time4 = nowMs3();
|
|
839538
839480
|
const item = {
|
|
839539
839481
|
id: createItemId(),
|
|
839540
839482
|
title: normalizedTitle,
|
|
@@ -839558,7 +839500,7 @@ class WorkPlanStore {
|
|
|
839558
839500
|
updateItem(idOrPrefix, patch2) {
|
|
839559
839501
|
const plan = this.readPlan();
|
|
839560
839502
|
const item = this.resolveItem(plan, idOrPrefix);
|
|
839561
|
-
const time4 =
|
|
839503
|
+
const time4 = nowMs3();
|
|
839562
839504
|
const nextStatus = patch2.status ?? item.status;
|
|
839563
839505
|
const next = this.pruneItem({
|
|
839564
839506
|
...item,
|
|
@@ -839591,7 +839533,7 @@ class WorkPlanStore {
|
|
|
839591
839533
|
removeItem(idOrPrefix) {
|
|
839592
839534
|
const plan = this.readPlan();
|
|
839593
839535
|
const item = this.resolveItem(plan, idOrPrefix);
|
|
839594
|
-
const time4 =
|
|
839536
|
+
const time4 = nowMs3();
|
|
839595
839537
|
const remaining = plan.items.filter((candidate) => candidate.id !== item.id);
|
|
839596
839538
|
this.writePlan({
|
|
839597
839539
|
...plan,
|
|
@@ -839611,7 +839553,7 @@ class WorkPlanStore {
|
|
|
839611
839553
|
...plan,
|
|
839612
839554
|
items: remaining,
|
|
839613
839555
|
activeItemId: remaining[0]?.id,
|
|
839614
|
-
updatedAt:
|
|
839556
|
+
updatedAt: nowMs3()
|
|
839615
839557
|
});
|
|
839616
839558
|
return removed;
|
|
839617
839559
|
}
|
|
@@ -839650,7 +839592,7 @@ class WorkPlanStore {
|
|
|
839650
839592
|
const parsed = JSON.parse(raw);
|
|
839651
839593
|
if (!isObject5(parsed))
|
|
839652
839594
|
return this.createEmptyPlan();
|
|
839653
|
-
const time4 =
|
|
839595
|
+
const time4 = nowMs3();
|
|
839654
839596
|
const createdAt = typeof parsed.createdAt === "number" ? parsed.createdAt : time4;
|
|
839655
839597
|
const updatedAt = typeof parsed.updatedAt === "number" ? parsed.updatedAt : createdAt;
|
|
839656
839598
|
const items = Array.isArray(parsed.items) ? parsed.items.map((item) => normalizeItem(item, createdAt)).filter((item) => item !== null) : [];
|
|
@@ -839669,7 +839611,7 @@ class WorkPlanStore {
|
|
|
839669
839611
|
};
|
|
839670
839612
|
}
|
|
839671
839613
|
createEmptyPlan() {
|
|
839672
|
-
const time4 =
|
|
839614
|
+
const time4 = nowMs3();
|
|
839673
839615
|
return {
|
|
839674
839616
|
id: createPlanId(this.options.projectId, this.options.projectRoot),
|
|
839675
839617
|
projectId: this.options.projectId,
|
|
@@ -847775,13 +847717,13 @@ init_state3();
|
|
|
847775
847717
|
|
|
847776
847718
|
// src/input/commands/recall-shared.ts
|
|
847777
847719
|
var VALID_CLASSES = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
|
|
847778
|
-
var
|
|
847720
|
+
var VALID_SCOPES = ["session", "project", "team"];
|
|
847779
847721
|
var VALID_REVIEW_STATES = ["fresh", "reviewed", "stale", "contradicted"];
|
|
847780
847722
|
function isValidClass(s4) {
|
|
847781
847723
|
return VALID_CLASSES.includes(s4);
|
|
847782
847724
|
}
|
|
847783
847725
|
function isValidScope(s4) {
|
|
847784
|
-
return
|
|
847726
|
+
return VALID_SCOPES.includes(s4);
|
|
847785
847727
|
}
|
|
847786
847728
|
function isValidReviewState(s4) {
|
|
847787
847729
|
return VALID_REVIEW_STATES.includes(s4);
|
|
@@ -847824,7 +847766,7 @@ function handleRecallSearch(args2, context) {
|
|
|
847824
847766
|
if (isValidScope(scope))
|
|
847825
847767
|
filter.scope = scope;
|
|
847826
847768
|
else {
|
|
847827
|
-
context.print(`[memory] Unknown scope "${scope}". Valid values ${
|
|
847769
|
+
context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES.join(", ")}.`);
|
|
847828
847770
|
return;
|
|
847829
847771
|
}
|
|
847830
847772
|
}
|
|
@@ -847999,7 +847941,7 @@ function handleRecallList(args2, context) {
|
|
|
847999
847941
|
if (scopeIdx !== -1 && args2[scopeIdx + 1]) {
|
|
848000
847942
|
const scope = args2[scopeIdx + 1];
|
|
848001
847943
|
if (!isValidScope(scope)) {
|
|
848002
|
-
context.print(`[memory] Unknown scope "${scope}". Valid values ${
|
|
847944
|
+
context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES.join(", ")}.`);
|
|
848003
847945
|
return;
|
|
848004
847946
|
}
|
|
848005
847947
|
filter.scope = scope;
|
|
@@ -848049,7 +847991,7 @@ async function handleRecallAdd(args2, context) {
|
|
|
848049
847991
|
const tags = tagsRaw ? tagsRaw.split(",").map((token) => token.trim()).filter(Boolean) : [];
|
|
848050
847992
|
const scope = scopeRaw && isValidScope(scopeRaw) ? scopeRaw : "project";
|
|
848051
847993
|
if (scopeRaw && !isValidScope(scopeRaw)) {
|
|
848052
|
-
context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${
|
|
847994
|
+
context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${VALID_SCOPES.join(", ")}.`);
|
|
848053
847995
|
return;
|
|
848054
847996
|
}
|
|
848055
847997
|
const provenance = [];
|
|
@@ -848183,7 +848125,7 @@ function handleRecallExport(args2, context) {
|
|
|
848183
848125
|
if (scopeIdx !== -1 && commandArgs[scopeIdx + 1]) {
|
|
848184
848126
|
const scope = commandArgs[scopeIdx + 1];
|
|
848185
848127
|
if (!isValidScope(scope)) {
|
|
848186
|
-
context.print(`[memory] Unknown scope "${scope}". Valid values ${
|
|
848128
|
+
context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES.join(", ")}.`);
|
|
848187
848129
|
return;
|
|
848188
848130
|
}
|
|
848189
848131
|
filter.scope = scope;
|
|
@@ -848262,7 +848204,7 @@ function handleRecallHandoffExport(args2, context) {
|
|
|
848262
848204
|
const scopeIdx = commandArgs.indexOf("--scope");
|
|
848263
848205
|
const scopeRaw = scopeIdx !== -1 ? commandArgs[scopeIdx + 1] : "team";
|
|
848264
848206
|
if (!scopeRaw || !isValidScope(scopeRaw)) {
|
|
848265
|
-
context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${
|
|
848207
|
+
context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${VALID_SCOPES.join(", ")}.`);
|
|
848266
848208
|
return;
|
|
848267
848209
|
}
|
|
848268
848210
|
const bundle = memory.exportBundle({ scope: scopeRaw });
|
|
@@ -848378,7 +848320,7 @@ function handleRecallPromote(args2, context) {
|
|
|
848378
848320
|
const id = parsed.rest[0];
|
|
848379
848321
|
const scope = parsed.rest[1];
|
|
848380
848322
|
if (!id || !scope || !isValidScope(scope)) {
|
|
848381
|
-
context.print(`[memory] Usage: /memory promote <id> <${
|
|
848323
|
+
context.print(`[memory] Usage: /memory promote <id> <${VALID_SCOPES.join("|")}> --yes`);
|
|
848382
848324
|
return;
|
|
848383
848325
|
}
|
|
848384
848326
|
if (!parsed.yes) {
|
|
@@ -862311,7 +862253,7 @@ import { mkdirSync as mkdirSync64, readFileSync as readFileSync86, writeFileSync
|
|
|
862311
862253
|
import { dirname as dirname63, resolve as resolve39 } from "path";
|
|
862312
862254
|
init_state3();
|
|
862313
862255
|
var VALID_CLASSES2 = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
|
|
862314
|
-
var
|
|
862256
|
+
var VALID_SCOPES3 = ["session", "project", "team"];
|
|
862315
862257
|
var VALID_REVIEW_STATES3 = ["fresh", "reviewed", "stale", "contradicted"];
|
|
862316
862258
|
var VALID_PROVENANCE_KINDS = ["session", "turn", "task", "event", "file"];
|
|
862317
862259
|
var VALUE_OPTIONS = new Set([
|
|
@@ -862411,7 +862353,7 @@ function isMemoryClass2(value) {
|
|
|
862411
862353
|
return VALID_CLASSES2.includes(value);
|
|
862412
862354
|
}
|
|
862413
862355
|
function isMemoryScope2(value) {
|
|
862414
|
-
return
|
|
862356
|
+
return VALID_SCOPES3.includes(value);
|
|
862415
862357
|
}
|
|
862416
862358
|
function isReviewState(value) {
|
|
862417
862359
|
return VALID_REVIEW_STATES3.includes(value);
|
|
@@ -862426,7 +862368,7 @@ function requireClass(value) {
|
|
|
862426
862368
|
}
|
|
862427
862369
|
function requireScope(value) {
|
|
862428
862370
|
if (!value || !isMemoryScope2(value))
|
|
862429
|
-
throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${
|
|
862371
|
+
throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${VALID_SCOPES3.join(", ")}`);
|
|
862430
862372
|
return value;
|
|
862431
862373
|
}
|
|
862432
862374
|
function optionalScope(value) {
|
|
@@ -879380,7 +879322,119 @@ function actionSearchStatus(host) {
|
|
|
879380
879322
|
function describeCommandPolicy(commandName) {
|
|
879381
879323
|
const root = commandName.replace(/^\//, "").trim().toLowerCase();
|
|
879382
879324
|
const confirmation = 'agent_harness mode:"run_command" requires confirm:true and explicitUserRequest for every slash command invocation.';
|
|
879383
|
-
if (root === "
|
|
879325
|
+
if (root === "agent" || root === "agent-workspace" || root === "workspace") {
|
|
879326
|
+
return {
|
|
879327
|
+
effect: "ui-navigation",
|
|
879328
|
+
confirmation,
|
|
879329
|
+
preferredModelTool: "agent_harness workspace/workspace_categories/workspace_actions/workspace_action/run_workspace_action",
|
|
879330
|
+
boundary: "Agent workspace navigation is visible shell routing. Use workspace action modes for concrete model-readable operation."
|
|
879331
|
+
};
|
|
879332
|
+
}
|
|
879333
|
+
if (root === "setup" || root === "welcome") {
|
|
879334
|
+
return {
|
|
879335
|
+
effect: "ui-navigation",
|
|
879336
|
+
confirmation,
|
|
879337
|
+
preferredModelTool: "agent_harness workspace_actions/workspace_action/open_ui_surface",
|
|
879338
|
+
boundary: "Setup opens the visible Agent onboarding or setup workspace. Model-side changes should use setting modes or workspace actions."
|
|
879339
|
+
};
|
|
879340
|
+
}
|
|
879341
|
+
if (root === "commands" || root === "help" || root === "shortcuts") {
|
|
879342
|
+
return {
|
|
879343
|
+
effect: "ui-navigation",
|
|
879344
|
+
confirmation,
|
|
879345
|
+
preferredModelTool: root === "shortcuts" ? "agent_harness shortcuts/keybindings/keybinding" : "agent_harness commands/command",
|
|
879346
|
+
boundary: "Discovery commands open visible help surfaces. The model should inspect the matching harness catalog directly before invoking commands."
|
|
879347
|
+
};
|
|
879348
|
+
}
|
|
879349
|
+
if (root === "keybindings") {
|
|
879350
|
+
return {
|
|
879351
|
+
effect: "read-only",
|
|
879352
|
+
confirmation,
|
|
879353
|
+
preferredModelTool: "agent_harness shortcuts/keybindings/keybinding/run_keybinding/set_keybinding/reset_keybinding",
|
|
879354
|
+
boundary: "Keybinding inspection is read-only. Keybinding execution or edits require explicit confirmation through agent_harness keybinding modes."
|
|
879355
|
+
};
|
|
879356
|
+
}
|
|
879357
|
+
if (root === "settings" || root === "config") {
|
|
879358
|
+
return {
|
|
879359
|
+
effect: "mixed",
|
|
879360
|
+
confirmation,
|
|
879361
|
+
preferredModelTool: "agent_harness settings/get_setting/set_setting/reset_setting",
|
|
879362
|
+
boundary: "Model-writable settings can be changed through agent_harness. Connected-host lifecycle/listener settings remain read-only."
|
|
879363
|
+
};
|
|
879364
|
+
}
|
|
879365
|
+
if (root === "model" || root === "effort") {
|
|
879366
|
+
return {
|
|
879367
|
+
effect: "mixed",
|
|
879368
|
+
confirmation,
|
|
879369
|
+
preferredModelTool: "agent_harness settings/get_setting/set_setting/open_ui_surface",
|
|
879370
|
+
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."
|
|
879371
|
+
};
|
|
879372
|
+
}
|
|
879373
|
+
if (root === "provider" || root === "providers") {
|
|
879374
|
+
return {
|
|
879375
|
+
effect: "mixed",
|
|
879376
|
+
confirmation,
|
|
879377
|
+
preferredModelTool: "agent_harness settings/get_setting/set_setting/open_ui_surface",
|
|
879378
|
+
boundary: "Provider selection and custom provider files belong to Agent provider configuration. Adding, removing, or switching providers requires explicit user intent."
|
|
879379
|
+
};
|
|
879380
|
+
}
|
|
879381
|
+
if (root === "refresh-models") {
|
|
879382
|
+
return {
|
|
879383
|
+
effect: "external-network",
|
|
879384
|
+
confirmation,
|
|
879385
|
+
preferredModelTool: "agent_harness settings/tools",
|
|
879386
|
+
boundary: "Model catalog refresh may call provider discovery routes and update local provider metadata. Do not run it without explicit user request."
|
|
879387
|
+
};
|
|
879388
|
+
}
|
|
879389
|
+
if (root === "pin" || root === "unpin") {
|
|
879390
|
+
return {
|
|
879391
|
+
effect: "local-state",
|
|
879392
|
+
confirmation,
|
|
879393
|
+
preferredModelTool: "agent_harness run_command",
|
|
879394
|
+
boundary: "Pinned model changes mutate local Agent provider preferences only and require an explicit model id."
|
|
879395
|
+
};
|
|
879396
|
+
}
|
|
879397
|
+
if (root === "mode") {
|
|
879398
|
+
return {
|
|
879399
|
+
effect: "local-state",
|
|
879400
|
+
confirmation,
|
|
879401
|
+
preferredModelTool: "agent_harness settings/get_setting/set_setting",
|
|
879402
|
+
boundary: "Interaction-mode changes affect the current Agent operator notification posture and should be explicit."
|
|
879403
|
+
};
|
|
879404
|
+
}
|
|
879405
|
+
if (root === "brief") {
|
|
879406
|
+
return {
|
|
879407
|
+
effect: "read-only",
|
|
879408
|
+
confirmation,
|
|
879409
|
+
preferredModelTool: "agent_operator_briefing",
|
|
879410
|
+
boundary: "Briefing reads current Agent operator posture and next actions without mutating connected-host state."
|
|
879411
|
+
};
|
|
879412
|
+
}
|
|
879413
|
+
if (root === "health" || root === "compat" || root === "context" || root === "accounts" || root === "security") {
|
|
879414
|
+
return {
|
|
879415
|
+
effect: "read-only",
|
|
879416
|
+
confirmation,
|
|
879417
|
+
preferredModelTool: root === "compat" ? "agent_harness connected_host_status" : "agent_harness connected_host_status/settings/tools/open_ui_surface",
|
|
879418
|
+
boundary: "Diagnostics and review commands inspect Agent, provider, MCP, security, and connected-host readiness without taking lifecycle ownership."
|
|
879419
|
+
};
|
|
879420
|
+
}
|
|
879421
|
+
if (root === "trust" || root === "auth" || root === "bundle") {
|
|
879422
|
+
return {
|
|
879423
|
+
effect: "mixed",
|
|
879424
|
+
confirmation,
|
|
879425
|
+
preferredModelTool: "agent_harness run_command",
|
|
879426
|
+
boundary: "Review subcommands are read-only; bundle export/import or auth/trust bundle export writes local files and requires explicit confirmation."
|
|
879427
|
+
};
|
|
879428
|
+
}
|
|
879429
|
+
if (root === "mcp" || root === "voice" || root === "subscription" || root === "secrets" || root === "secret") {
|
|
879430
|
+
return {
|
|
879431
|
+
effect: "mixed",
|
|
879432
|
+
confirmation,
|
|
879433
|
+
preferredModelTool: root === "secrets" || root === "secret" ? "agent_harness settings/get_setting/set_setting/reset_setting" : "agent_harness workspace_actions/settings/open_ui_surface",
|
|
879434
|
+
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."
|
|
879435
|
+
};
|
|
879436
|
+
}
|
|
879437
|
+
if (root === "memory" || root === "memories" || root === "note" || root === "persona" || root === "personas" || root === "skill" || root === "skills" || root === "routine" || root === "routines") {
|
|
879384
879438
|
return {
|
|
879385
879439
|
effect: "local-state",
|
|
879386
879440
|
confirmation,
|
|
@@ -879388,20 +879442,20 @@ function describeCommandPolicy(commandName) {
|
|
|
879388
879442
|
boundary: "Agent-local library records only unless the invoked command explicitly promotes to a connected schedule or Agent Knowledge source."
|
|
879389
879443
|
};
|
|
879390
879444
|
}
|
|
879391
|
-
if (root === "
|
|
879445
|
+
if (root === "notes") {
|
|
879392
879446
|
return {
|
|
879393
|
-
effect: "
|
|
879447
|
+
effect: "ui-navigation",
|
|
879394
879448
|
confirmation,
|
|
879395
|
-
preferredModelTool: "
|
|
879396
|
-
boundary: "
|
|
879449
|
+
preferredModelTool: "agent_harness workspace_actions/workspace_action/run_workspace_action or agent_local_registry",
|
|
879450
|
+
boundary: "Notes workspace routing is visible navigation; note record mutations should use Agent-local registry or workspace action modes."
|
|
879397
879451
|
};
|
|
879398
879452
|
}
|
|
879399
|
-
if (root === "
|
|
879453
|
+
if (root === "knowledge") {
|
|
879400
879454
|
return {
|
|
879401
879455
|
effect: "mixed",
|
|
879402
879456
|
confirmation,
|
|
879403
|
-
preferredModelTool: "
|
|
879404
|
-
boundary: "
|
|
879457
|
+
preferredModelTool: "agent_knowledge or agent_knowledge_ingest",
|
|
879458
|
+
boundary: "Agent Knowledge only. Do not use default knowledge or non-Agent knowledge spaces."
|
|
879405
879459
|
};
|
|
879406
879460
|
}
|
|
879407
879461
|
if (root === "approval" || root === "approvals" || root === "automation") {
|
|
@@ -879428,7 +879482,7 @@ function describeCommandPolicy(commandName) {
|
|
|
879428
879482
|
boundary: "External delivery requires an explicit target and direct user authorization."
|
|
879429
879483
|
};
|
|
879430
879484
|
}
|
|
879431
|
-
if (root === "media"
|
|
879485
|
+
if (root === "media") {
|
|
879432
879486
|
return {
|
|
879433
879487
|
effect: "external-network",
|
|
879434
879488
|
confirmation,
|
|
@@ -879436,6 +879490,22 @@ function describeCommandPolicy(commandName) {
|
|
|
879436
879490
|
boundary: "Media generation uses configured Agent media providers and writes normal artifacts only."
|
|
879437
879491
|
};
|
|
879438
879492
|
}
|
|
879493
|
+
if (root === "image") {
|
|
879494
|
+
return {
|
|
879495
|
+
effect: "external-network",
|
|
879496
|
+
confirmation,
|
|
879497
|
+
preferredModelTool: "agent_harness open_ui_surface",
|
|
879498
|
+
boundary: "Image attachment reads a local image and submits a model turn with image content. Use only for explicit user-supplied files."
|
|
879499
|
+
};
|
|
879500
|
+
}
|
|
879501
|
+
if (root === "tts") {
|
|
879502
|
+
return {
|
|
879503
|
+
effect: "external-network",
|
|
879504
|
+
confirmation,
|
|
879505
|
+
preferredModelTool: "agent_harness settings/open_ui_surface",
|
|
879506
|
+
boundary: "Live TTS submits a normal prompt and may call model and speech providers; stopping playback is local runtime control."
|
|
879507
|
+
};
|
|
879508
|
+
}
|
|
879439
879509
|
if (root === "workplan" || root === "plan" || root === "task" || root === "tasks") {
|
|
879440
879510
|
return {
|
|
879441
879511
|
effect: "local-state",
|
|
@@ -879451,26 +879521,50 @@ function describeCommandPolicy(commandName) {
|
|
|
879451
879521
|
boundary: "Delegation is explicit user-directed work only; no hidden background review or separate Agent job should be created implicitly."
|
|
879452
879522
|
};
|
|
879453
879523
|
}
|
|
879454
|
-
if (root === "session" || root === "conversation" || root === "clear" || root === "quit" || root === "exit") {
|
|
879524
|
+
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") {
|
|
879455
879525
|
return {
|
|
879456
879526
|
effect: "session-lifecycle",
|
|
879457
879527
|
confirmation,
|
|
879458
879528
|
boundary: "Session and conversation commands operate on the visible harness session lifecycle."
|
|
879459
879529
|
};
|
|
879460
879530
|
}
|
|
879461
|
-
if (root === "
|
|
879531
|
+
if (root === "export") {
|
|
879532
|
+
return {
|
|
879533
|
+
effect: "local-state",
|
|
879534
|
+
confirmation,
|
|
879535
|
+
boundary: "Conversation export writes a local workspace file and requires an explicit output intent."
|
|
879536
|
+
};
|
|
879537
|
+
}
|
|
879538
|
+
if (root === "bookmarks" || root === "expand" || root === "collapse" || root === "next-error" || root === "prev-error") {
|
|
879462
879539
|
return {
|
|
879463
879540
|
effect: "ui-navigation",
|
|
879464
879541
|
confirmation,
|
|
879465
|
-
preferredModelTool: "agent_harness
|
|
879466
|
-
boundary: "
|
|
879542
|
+
preferredModelTool: root === "bookmarks" ? "agent_harness open_ui_surface" : undefined,
|
|
879543
|
+
boundary: "Conversation display navigation mutates only the visible transcript view or scroll position."
|
|
879467
879544
|
};
|
|
879468
879545
|
}
|
|
879469
|
-
if (root === "
|
|
879546
|
+
if (root === "paste") {
|
|
879547
|
+
return {
|
|
879548
|
+
effect: "local-state",
|
|
879549
|
+
confirmation,
|
|
879550
|
+
preferredModelTool: "agent_harness run_keybinding",
|
|
879551
|
+
boundary: "Paste reads the local clipboard and mutates the visible prompt or image attachment state."
|
|
879552
|
+
};
|
|
879553
|
+
}
|
|
879554
|
+
if (root === "profile" || root === "agent-profile") {
|
|
879470
879555
|
return {
|
|
879471
879556
|
effect: "mixed",
|
|
879472
879557
|
confirmation,
|
|
879473
|
-
|
|
879558
|
+
preferredModelTool: "agent_harness workspace_actions/workspace_action/run_workspace_action",
|
|
879559
|
+
boundary: "Agent profile commands manage isolated Agent runtime profiles and starter templates. Mutations require explicit confirmation."
|
|
879560
|
+
};
|
|
879561
|
+
}
|
|
879562
|
+
if (root === "qrcode") {
|
|
879563
|
+
return {
|
|
879564
|
+
effect: "read-only",
|
|
879565
|
+
confirmation,
|
|
879566
|
+
preferredModelTool: "agent_harness run_command",
|
|
879567
|
+
boundary: "Pairing details are displayed for explicit operator use; the Agent does not manage connected-host listener lifecycle."
|
|
879474
879568
|
};
|
|
879475
879569
|
}
|
|
879476
879570
|
return {
|
|
@@ -882442,6 +882536,75 @@ async function openHarnessUiSurface(context, args2) {
|
|
|
882442
882536
|
};
|
|
882443
882537
|
}
|
|
882444
882538
|
|
|
882539
|
+
// src/tools/agent-harness-workspace-editor-execution.ts
|
|
882540
|
+
function localEditorDomain(editorKind) {
|
|
882541
|
+
if (editorKind === "memory" || editorKind === "note" || editorKind === "persona" || editorKind === "skill" || editorKind === "routine")
|
|
882542
|
+
return editorKind;
|
|
882543
|
+
return null;
|
|
882544
|
+
}
|
|
882545
|
+
function localEditorSupportedActions(editorKind) {
|
|
882546
|
+
if (editorKind === "memory")
|
|
882547
|
+
return ["list", "search", "get", "review", "stale", "delete"];
|
|
882548
|
+
if (editorKind === "note")
|
|
882549
|
+
return ["list", "search", "get", "review", "stale", "delete"];
|
|
882550
|
+
if (editorKind === "persona")
|
|
882551
|
+
return ["list", "search", "get", "use", "clear_active", "review", "stale", "delete"];
|
|
882552
|
+
if (editorKind === "skill")
|
|
882553
|
+
return ["list", "search", "get", "enable", "disable", "review", "stale", "delete"];
|
|
882554
|
+
return ["list", "search", "get", "enable", "disable", "start", "review", "stale", "delete"];
|
|
882555
|
+
}
|
|
882556
|
+
function describeWorkspaceEditorModelExecution(editorKind) {
|
|
882557
|
+
const localDomain = localEditorDomain(editorKind);
|
|
882558
|
+
if (localDomain) {
|
|
882559
|
+
return {
|
|
882560
|
+
route: "agent_local_registry",
|
|
882561
|
+
tool: "agent_local_registry",
|
|
882562
|
+
domain: localDomain,
|
|
882563
|
+
action: "create_or_update_from_fields",
|
|
882564
|
+
confirmation: "required",
|
|
882565
|
+
supportedActions: localEditorSupportedActions(localDomain),
|
|
882566
|
+
note: "run_workspace_action validates the editor fields and dispatches through the Agent-local registry without writing default knowledge or non-Agent segments."
|
|
882567
|
+
};
|
|
882568
|
+
}
|
|
882569
|
+
if (editorKind === "learned-behavior") {
|
|
882570
|
+
return {
|
|
882571
|
+
route: "direct-agent-local-create",
|
|
882572
|
+
action: "create_learned_behavior",
|
|
882573
|
+
confirmation: "required",
|
|
882574
|
+
note: "run_workspace_action creates a local skill, routine, or persona from the submitted learned-behavior fields."
|
|
882575
|
+
};
|
|
882576
|
+
}
|
|
882577
|
+
if (editorKind === "profile") {
|
|
882578
|
+
return {
|
|
882579
|
+
route: "slash-command-dispatch",
|
|
882580
|
+
command: "/agent-profile create <name> [--template <template>] --yes",
|
|
882581
|
+
dispatcher: "run_command",
|
|
882582
|
+
confirmation: "required",
|
|
882583
|
+
note: "run_workspace_action builds the matching profile creation slash command from the submitted fields."
|
|
882584
|
+
};
|
|
882585
|
+
}
|
|
882586
|
+
if (editorKind === "web-research" || editorKind === "web-fetch") {
|
|
882587
|
+
return {
|
|
882588
|
+
route: "main-conversation-prompt",
|
|
882589
|
+
result: "prompt",
|
|
882590
|
+
confirmation: "not-required",
|
|
882591
|
+
note: "run_workspace_action returns the main-conversation prompt produced by this editor; use that prompt as the conversation task instead of creating a hidden nested turn."
|
|
882592
|
+
};
|
|
882593
|
+
}
|
|
882594
|
+
if (isAgentWorkspaceCommandEditorKind(editorKind)) {
|
|
882595
|
+
return {
|
|
882596
|
+
route: "slash-command-dispatch",
|
|
882597
|
+
dispatcher: "run_command",
|
|
882598
|
+
confirmation: "required",
|
|
882599
|
+
note: "run_workspace_action builds the same slash-command submission as the TUI form from submitted fields, then executes it through the shared command registry."
|
|
882600
|
+
};
|
|
882601
|
+
}
|
|
882602
|
+
return {
|
|
882603
|
+
route: "model-tool-or-editor-schema",
|
|
882604
|
+
note: "Use the returned editor schema, command field, or first-class Agent model tool when available."
|
|
882605
|
+
};
|
|
882606
|
+
}
|
|
882607
|
+
|
|
882445
882608
|
// src/tools/agent-harness-tool.ts
|
|
882446
882609
|
function isMode(value) {
|
|
882447
882610
|
return typeof value === "string" && AGENT_HARNESS_MODES.includes(value);
|
|
@@ -882557,28 +882720,11 @@ function describeWorkspaceAction(category, action2, options = {}) {
|
|
|
882557
882720
|
...action2.kind === "local-selection" || action2.kind === "local-operation" ? {
|
|
882558
882721
|
modelExecution: describeLocalWorkspaceModelExecution(action2)
|
|
882559
882722
|
} : {},
|
|
882560
|
-
...action2.kind === "editor" && action2.editorKind
|
|
882561
|
-
modelExecution:
|
|
882723
|
+
...action2.kind === "editor" && action2.editorKind ? {
|
|
882724
|
+
modelExecution: describeWorkspaceEditorModelExecution(action2.editorKind)
|
|
882562
882725
|
} : {}
|
|
882563
882726
|
};
|
|
882564
882727
|
}
|
|
882565
|
-
function localEditorModelExecution(editorKind) {
|
|
882566
|
-
if (editorKind === "memory")
|
|
882567
|
-
return 'run_workspace_action can execute this editor from fields through agent_local_registry domain:"memory"; agent_local_registry also supports list/search/get/review/stale/delete.';
|
|
882568
|
-
if (editorKind === "note")
|
|
882569
|
-
return 'run_workspace_action can execute this editor from fields through agent_local_registry domain:"note"; agent_local_registry also supports list/search/get/review/stale/delete.';
|
|
882570
|
-
if (editorKind === "persona")
|
|
882571
|
-
return 'run_workspace_action can execute this editor from fields through agent_local_registry domain:"persona"; agent_local_registry also supports list/search/get/use/clear_active/review/stale/delete.';
|
|
882572
|
-
if (editorKind === "skill")
|
|
882573
|
-
return 'run_workspace_action can execute this editor from fields through agent_local_registry domain:"skill"; agent_local_registry also supports list/search/get/enable/disable/review/stale/delete.';
|
|
882574
|
-
if (editorKind === "routine")
|
|
882575
|
-
return 'run_workspace_action can execute this editor from fields through agent_local_registry domain:"routine"; agent_local_registry also supports list/search/get/enable/disable/start/review/stale/delete.';
|
|
882576
|
-
if (editorKind === "learned-behavior")
|
|
882577
|
-
return "run_workspace_action can create the learned behavior from fields.";
|
|
882578
|
-
if (editorKind === "profile")
|
|
882579
|
-
return "run_workspace_action dispatches the matching /agent-profile create command.";
|
|
882580
|
-
return "Use the command field, editor schema, or a first-class Agent model tool when available.";
|
|
882581
|
-
}
|
|
882582
882728
|
function listWorkspaceActions(deps, args2) {
|
|
882583
882729
|
const query2 = readString58(args2.query);
|
|
882584
882730
|
const categoryId = readString58(args2.categoryId || args2.category);
|
|
@@ -882701,7 +882847,8 @@ async function runWorkspaceEditorAction(deps, action2, editor, args2) {
|
|
|
882701
882847
|
status: "missing_required_fields",
|
|
882702
882848
|
missing,
|
|
882703
882849
|
action: action2.id,
|
|
882704
|
-
editor: describeWorkspaceEditor(editor)
|
|
882850
|
+
editor: describeWorkspaceEditor(editor),
|
|
882851
|
+
modelExecution: describeWorkspaceEditorModelExecution(editor.kind)
|
|
882705
882852
|
});
|
|
882706
882853
|
}
|
|
882707
882854
|
if (editor.kind === "learned-behavior") {
|
|
@@ -882754,7 +882901,7 @@ async function runWorkspaceEditorAction(deps, action2, editor, args2) {
|
|
|
882754
882901
|
status: "model_tool_required",
|
|
882755
882902
|
action: action2.id,
|
|
882756
882903
|
editor: describeWorkspaceEditor(editor),
|
|
882757
|
-
modelExecution:
|
|
882904
|
+
modelExecution: describeWorkspaceEditorModelExecution(editor.kind)
|
|
882758
882905
|
});
|
|
882759
882906
|
}
|
|
882760
882907
|
const submission = buildAgentWorkspaceCommandEditorSubmission(editor, fieldReader2(editor, fields), true, true);
|
|
@@ -882763,6 +882910,7 @@ async function runWorkspaceEditorAction(deps, action2, editor, args2) {
|
|
|
882763
882910
|
status: submission.status,
|
|
882764
882911
|
action: action2.id,
|
|
882765
882912
|
editor: describeWorkspaceEditor(submission.editor),
|
|
882913
|
+
modelExecution: describeWorkspaceEditorModelExecution(editor.kind),
|
|
882766
882914
|
actionResult: submission.actionResult ?? null
|
|
882767
882915
|
});
|
|
882768
882916
|
}
|
|
@@ -882772,6 +882920,7 @@ async function runWorkspaceEditorAction(deps, action2, editor, args2) {
|
|
|
882772
882920
|
action: action2.id,
|
|
882773
882921
|
prompt: submission.prompt,
|
|
882774
882922
|
actionResult: submission.actionResult,
|
|
882923
|
+
modelExecution: describeWorkspaceEditorModelExecution(editor.kind),
|
|
882775
882924
|
note: "This workspace action submits a normal main-conversation prompt in the TUI. In model-tool context, use the returned prompt as the conversation task instead of creating a hidden nested turn."
|
|
882776
882925
|
});
|
|
882777
882926
|
}
|
|
@@ -882874,7 +883023,7 @@ function createAgentHarnessTool(deps) {
|
|
|
882874
883023
|
uiSurfaces: 'Use mode:"ui_surfaces" to list and mode:"ui_surface" with surfaceId, target, or query to inspect modal/overlay/picker/workspace surfaces; use mode:"open_ui_surface" with confirm:true plus explicitUserRequest to route visible UI navigation.',
|
|
882875
883024
|
shortcuts: 'Use mode:"shortcuts" to inspect fixed shortcuts plus configurable keybindings. Use mode:"keybinding" with actionId, target, key, or query; use mode:"run_keybinding" for confirmation-gated shell-safe shortcut equivalents; use mode:"set_keybinding" and mode:"reset_keybinding" with confirm:true plus explicitUserRequest to edit the same config file the user edits.',
|
|
882876
883025
|
slashCommands: 'Use mode:"commands" to list slash commands and mode:"command" with command, commandName, target, or query to inspect one command; use mode:"run_command" with the same lookup fields plus confirm:true and explicitUserRequest to execute one uniquely resolved command.',
|
|
882877
|
-
workspace: 'Use mode:"workspace_actions" to list, mode:"workspace_action" with actionId, command, target, or query for one action
|
|
883026
|
+
workspace: 'Use mode:"workspace_actions" to list, mode:"workspace_action" with actionId, command, target, or query for one action, editor schema, and modelExecution route metadata, and mode:"run_workspace_action" with the same lookup fields plus confirmation for executable actions; set includeParameters:true on workspace_actions to inline editor schemas.',
|
|
882878
883027
|
settings: 'Use mode:"settings" to list and mode:"get_setting" with key, target, or query for one setting. Use mode:"set_setting" or mode:"reset_setting" with key, target, or query plus confirm:true and explicitUserRequest.',
|
|
882879
883028
|
tools: 'Use mode:"tools" to list first-class model tools, or mode:"tool" with toolName, target, or query to inspect one schema.',
|
|
882880
883029
|
connectedHost: 'Use mode:"connected_host" for the connected-host capability map and blocked boundaries. Use mode:"connected_host_capability" with capabilityId, target, or query for one allowed or blocked capability.',
|