@pellux/goodvibes-agent 1.0.11 → 1.0.13
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 +310 -44
- package/docs/README.md +1 -1
- package/docs/connected-host.md +1 -1
- package/docs/getting-started.md +2 -2
- package/docs/tools-and-commands.md +4 -4
- package/package.json +1 -1
- package/src/input/command-registry.ts +12 -0
- package/src/shell/ui-openers.ts +66 -0
- package/src/tools/agent-harness-local-operations.ts +36 -1
- package/src/tools/agent-harness-metadata.ts +62 -0
- package/src/tools/agent-harness-tool-schema.ts +5 -0
- package/src/tools/agent-harness-tool.ts +26 -8
- package/src/tools/agent-harness-ui-surface-metadata.ts +82 -0
- package/src/version.ts +1 -1
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.13";
|
|
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) {
|
|
@@ -862165,7 +862223,7 @@ import { mkdirSync as mkdirSync64, readFileSync as readFileSync86, writeFileSync
|
|
|
862165
862223
|
import { dirname as dirname63, resolve as resolve39 } from "path";
|
|
862166
862224
|
init_state3();
|
|
862167
862225
|
var VALID_CLASSES2 = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
|
|
862168
|
-
var
|
|
862226
|
+
var VALID_SCOPES4 = ["session", "project", "team"];
|
|
862169
862227
|
var VALID_REVIEW_STATES3 = ["fresh", "reviewed", "stale", "contradicted"];
|
|
862170
862228
|
var VALID_PROVENANCE_KINDS = ["session", "turn", "task", "event", "file"];
|
|
862171
862229
|
var VALUE_OPTIONS = new Set([
|
|
@@ -862265,7 +862323,7 @@ function isMemoryClass2(value) {
|
|
|
862265
862323
|
return VALID_CLASSES2.includes(value);
|
|
862266
862324
|
}
|
|
862267
862325
|
function isMemoryScope2(value) {
|
|
862268
|
-
return
|
|
862326
|
+
return VALID_SCOPES4.includes(value);
|
|
862269
862327
|
}
|
|
862270
862328
|
function isReviewState(value) {
|
|
862271
862329
|
return VALID_REVIEW_STATES3.includes(value);
|
|
@@ -862280,7 +862338,7 @@ function requireClass(value) {
|
|
|
862280
862338
|
}
|
|
862281
862339
|
function requireScope(value) {
|
|
862282
862340
|
if (!value || !isMemoryScope2(value))
|
|
862283
|
-
throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${
|
|
862341
|
+
throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${VALID_SCOPES4.join(", ")}`);
|
|
862284
862342
|
return value;
|
|
862285
862343
|
}
|
|
862286
862344
|
function optionalScope(value) {
|
|
@@ -879550,6 +879608,52 @@ function connectedHostRouteFamilies() {
|
|
|
879550
879608
|
}
|
|
879551
879609
|
];
|
|
879552
879610
|
}
|
|
879611
|
+
function normalizeCapabilityQuery(value) {
|
|
879612
|
+
return value.trim().toLowerCase();
|
|
879613
|
+
}
|
|
879614
|
+
function recordTextMatches(record2, query2) {
|
|
879615
|
+
if (!query2)
|
|
879616
|
+
return false;
|
|
879617
|
+
const values2 = Object.values(record2).flatMap((value) => Array.isArray(value) ? value : [value]);
|
|
879618
|
+
return values2.filter((value) => typeof value === "string" || typeof value === "number" || typeof value === "boolean").map((value) => String(value).toLowerCase()).some((value) => value === query2 || value.includes(query2));
|
|
879619
|
+
}
|
|
879620
|
+
function relatedConnectedHostRouteFamilies(capability) {
|
|
879621
|
+
const modelTools = Array.isArray(capability.modelTools) ? capability.modelTools.filter((tool2) => typeof tool2 === "string") : [];
|
|
879622
|
+
const capabilityId = typeof capability.id === "string" ? capability.id : "";
|
|
879623
|
+
return connectedHostRouteFamilies().filter((family) => {
|
|
879624
|
+
const familyTools = Array.isArray(family.modelTools) ? family.modelTools.filter((tool2) => typeof tool2 === "string") : [];
|
|
879625
|
+
if (familyTools.some((tool2) => modelTools.includes(tool2)))
|
|
879626
|
+
return true;
|
|
879627
|
+
return capabilityId.length > 0 && recordTextMatches(family, capabilityId);
|
|
879628
|
+
});
|
|
879629
|
+
}
|
|
879630
|
+
function describeConnectedHostCapability(toolRegistry, rawQuery) {
|
|
879631
|
+
const query2 = normalizeCapabilityQuery(rawQuery);
|
|
879632
|
+
if (!query2)
|
|
879633
|
+
return null;
|
|
879634
|
+
const allowedCapability = connectedHostCapabilityMap(toolRegistry).find((capability) => recordTextMatches(capability, query2));
|
|
879635
|
+
if (allowedCapability) {
|
|
879636
|
+
return {
|
|
879637
|
+
status: "allowed",
|
|
879638
|
+
capability: allowedCapability,
|
|
879639
|
+
relatedRouteFamilies: relatedConnectedHostRouteFamilies(allowedCapability),
|
|
879640
|
+
statusMode: 'Use agent_harness mode:"connected_host_status" for live read-only reachability, SDK compatibility, token posture, and Agent Knowledge route readiness.',
|
|
879641
|
+
boundary: "Use only the listed first-class model tools, slash-command families, and workspace categories. Mutations still require explicit confirmation through those tools or command bridges."
|
|
879642
|
+
};
|
|
879643
|
+
}
|
|
879644
|
+
const blockedCapability = blockedConnectedHostCapabilities().find((capability) => recordTextMatches(capability, query2));
|
|
879645
|
+
if (blockedCapability) {
|
|
879646
|
+
return {
|
|
879647
|
+
status: "blocked",
|
|
879648
|
+
capability: blockedCapability,
|
|
879649
|
+
allowed: false,
|
|
879650
|
+
available: false,
|
|
879651
|
+
boundary: "This connected-host surface is intentionally not exposed to the model as an Agent operation.",
|
|
879652
|
+
statusMode: 'Use agent_harness mode:"connected_host_status" only for read-only readiness diagnostics.'
|
|
879653
|
+
};
|
|
879654
|
+
}
|
|
879655
|
+
return null;
|
|
879656
|
+
}
|
|
879553
879657
|
function connectedHostSummary(context, toolRegistry) {
|
|
879554
879658
|
const shellPaths3 = context.workspace.shellPaths;
|
|
879555
879659
|
const homeDirectory = shellPaths3?.homeDirectory ?? context.platform.configManager.getHomeDirectory() ?? "";
|
|
@@ -880492,7 +880596,7 @@ function localRegistryArgsFromEditor(editor, fields, id) {
|
|
|
880492
880596
|
if (editor.kind === "memory")
|
|
880493
880597
|
return { domain: "memory", action: editor.mode === "update" ? "update" : "create", id, cls: read("cls"), scope: read("scope"), summary: read("summary"), detail: read("detail"), tags: splitList5(read("tags")), confidence: read("confidence"), provenance: editor.recordId ? "agent-harness-local-operation" : "agent-harness-note-promotion" };
|
|
880494
880598
|
if (editor.kind === "note")
|
|
880495
|
-
return { domain: "note", action: "update", id, title: read("title"), body: read("body"), sourceUrl: read("sourceUrl"), tags: splitList5(read("tags")), provenance: "agent-harness-local-operation" };
|
|
880599
|
+
return { domain: "note", action: editor.mode === "update" ? "update" : "create", id, title: read("title"), body: read("body"), sourceUrl: read("sourceUrl"), tags: splitList5(read("tags")), provenance: editor.recordId ? "agent-harness-local-operation" : "agent-harness-note-promotion" };
|
|
880496
880600
|
if (editor.kind === "persona")
|
|
880497
880601
|
return { domain: "persona", action: editor.mode === "update" ? "update" : "create", id, name: read("name"), description: read("description"), body: read("body"), tags: splitList5(read("tags")), triggers: splitList5(read("triggers")), activate: read("activate"), provenance: editor.recordId ? "agent-harness-local-operation" : "agent-harness-note-promotion" };
|
|
880498
880602
|
if (editor.kind === "skill")
|
|
@@ -880530,6 +880634,27 @@ function describeLocalWorkspaceModelExecution(action2) {
|
|
|
880530
880634
|
return { tool: "agent_knowledge_ingest", sourceKind: "url", requiresRecordId: true, selectedRecordDomain: "note" };
|
|
880531
880635
|
return { tool: "agent_local_registry", selectedRecordDomain: "note", action: "create", requiresRecordId: true };
|
|
880532
880636
|
}
|
|
880637
|
+
async function runLocalWorkspaceEditorAction(deps, editor, args2) {
|
|
880638
|
+
const fields = readFieldMap2(args2.fields);
|
|
880639
|
+
const missing = missingRequiredFields(editor, fields);
|
|
880640
|
+
if (missing.length > 0) {
|
|
880641
|
+
return output6({
|
|
880642
|
+
status: "missing_required_fields",
|
|
880643
|
+
missing,
|
|
880644
|
+
editor: describeEditor(editor)
|
|
880645
|
+
});
|
|
880646
|
+
}
|
|
880647
|
+
const confirmationError2 = requireConfirmed(args2, "Workspace local registry editor action");
|
|
880648
|
+
if (confirmationError2)
|
|
880649
|
+
return error51(confirmationError2);
|
|
880650
|
+
if (editor.kind !== "memory" && editor.kind !== "note" && editor.kind !== "persona" && editor.kind !== "skill" && editor.kind !== "routine") {
|
|
880651
|
+
return output6({
|
|
880652
|
+
status: "model_tool_required",
|
|
880653
|
+
editor: describeEditor(editor)
|
|
880654
|
+
});
|
|
880655
|
+
}
|
|
880656
|
+
return executeTool(deps.toolRegistry, "agent_local_registry", localRegistryArgsFromEditor(editor, fields, editor.recordId));
|
|
880657
|
+
}
|
|
880533
880658
|
async function runLocalWorkspaceAction(deps, action2, args2) {
|
|
880534
880659
|
if (action2.kind === "local-selection")
|
|
880535
880660
|
return output6({ status: "local_selection", action: action2.id, modelExecution: describeLocalWorkspaceModelExecution(action2) });
|
|
@@ -880616,7 +880741,8 @@ var AGENT_HARNESS_MODES = [
|
|
|
880616
880741
|
"run_workspace_action",
|
|
880617
880742
|
"tools",
|
|
880618
880743
|
"connected_host",
|
|
880619
|
-
"connected_host_status"
|
|
880744
|
+
"connected_host_status",
|
|
880745
|
+
"connected_host_capability"
|
|
880620
880746
|
];
|
|
880621
880747
|
var KEY_COMBO_PARAMETER_SCHEMA = {
|
|
880622
880748
|
type: "object",
|
|
@@ -880701,6 +880827,10 @@ var AGENT_HARNESS_PARAMETER_PROPERTIES = {
|
|
|
880701
880827
|
type: "string",
|
|
880702
880828
|
description: "Optional UI target, such as a model-picker target or settings target key."
|
|
880703
880829
|
},
|
|
880830
|
+
capabilityId: {
|
|
880831
|
+
type: "string",
|
|
880832
|
+
description: "Connected-host allowed or blocked capability id for mode connected_host_capability, such as agent-knowledge-read or connected-host-lifecycle."
|
|
880833
|
+
},
|
|
880704
880834
|
category: {
|
|
880705
880835
|
type: "string",
|
|
880706
880836
|
description: "Setting category filter such as provider, behavior, tools, ui, tts, permissions, automation, or surfaces."
|
|
@@ -881084,6 +881214,33 @@ var UI_SURFACES = [
|
|
|
881084
881214
|
return opened(surface, { target: "main" });
|
|
881085
881215
|
}
|
|
881086
881216
|
},
|
|
881217
|
+
{
|
|
881218
|
+
id: "reasoning-effort-picker",
|
|
881219
|
+
label: "Reasoning Effort Picker",
|
|
881220
|
+
kind: "picker",
|
|
881221
|
+
summary: "Interactive reasoning-effort selector for the current main chat model when that model exposes effort levels.",
|
|
881222
|
+
command: "/effort",
|
|
881223
|
+
preferredModelRoute: "Use settings/get_setting/set_setting for provider.reasoningEffort when a concrete level is known, or run_workspace_action setup-effort with confirmation.",
|
|
881224
|
+
available: (context) => typeof context.openReasoningEffortPicker === "function",
|
|
881225
|
+
open: (context) => {
|
|
881226
|
+
const surface = findSurfaceById("reasoning-effort-picker");
|
|
881227
|
+
if (!context.openReasoningEffortPicker)
|
|
881228
|
+
return routeUnavailable(surface);
|
|
881229
|
+
const result2 = context.openReasoningEffortPicker();
|
|
881230
|
+
return result2.opened ? opened(surface, {
|
|
881231
|
+
model: result2.model,
|
|
881232
|
+
levels: result2.levels ?? []
|
|
881233
|
+
}) : {
|
|
881234
|
+
status: "not_opened",
|
|
881235
|
+
surface: surface.id,
|
|
881236
|
+
kind: surface.kind,
|
|
881237
|
+
model: result2.model,
|
|
881238
|
+
levels: result2.levels ?? [],
|
|
881239
|
+
reason: result2.reason ?? "unsupported",
|
|
881240
|
+
note: "The current model does not expose configurable reasoning effort levels."
|
|
881241
|
+
};
|
|
881242
|
+
}
|
|
881243
|
+
},
|
|
881087
881244
|
{
|
|
881088
881245
|
id: "tts-provider-picker",
|
|
881089
881246
|
label: "TTS Provider Picker",
|
|
@@ -881198,6 +881355,35 @@ var UI_SURFACES = [
|
|
|
881198
881355
|
return opened(surface);
|
|
881199
881356
|
}
|
|
881200
881357
|
},
|
|
881358
|
+
{
|
|
881359
|
+
id: "live-tail",
|
|
881360
|
+
label: "Live Process Output",
|
|
881361
|
+
kind: "modal",
|
|
881362
|
+
summary: "Visible live-output tail for a running process, opened by the same shell route as Enter from the runtime activity monitor.",
|
|
881363
|
+
command: "F2, Enter",
|
|
881364
|
+
preferredModelRoute: "Use this only for visible supervision of a running process output stream; use first-class model tools or confirmed commands for actual operations.",
|
|
881365
|
+
parameters: ["target", "query", "prefix", "key"],
|
|
881366
|
+
available: (context) => typeof context.openLiveTail === "function",
|
|
881367
|
+
open: (context, args2) => {
|
|
881368
|
+
const surface = findSurfaceById("live-tail");
|
|
881369
|
+
if (!context.openLiveTail)
|
|
881370
|
+
return routeUnavailable(surface);
|
|
881371
|
+
const target = surfaceInputText(args2);
|
|
881372
|
+
const result2 = context.openLiveTail(target);
|
|
881373
|
+
return result2.opened ? opened(surface, {
|
|
881374
|
+
target: target ?? "selected",
|
|
881375
|
+
processId: result2.processId,
|
|
881376
|
+
label: result2.label
|
|
881377
|
+
}) : {
|
|
881378
|
+
status: "not_opened",
|
|
881379
|
+
surface: surface.id,
|
|
881380
|
+
kind: surface.kind,
|
|
881381
|
+
target: target ?? "selected",
|
|
881382
|
+
reason: result2.reason ?? "not_found",
|
|
881383
|
+
note: result2.reason === "no_processes" ? "There are no running shell processes to tail." : "No running shell process matched the requested target."
|
|
881384
|
+
};
|
|
881385
|
+
}
|
|
881386
|
+
},
|
|
881201
881387
|
{
|
|
881202
881388
|
id: "conversation-search",
|
|
881203
881389
|
label: "Conversation Search",
|
|
@@ -881258,6 +881444,27 @@ var UI_SURFACES = [
|
|
|
881258
881444
|
};
|
|
881259
881445
|
}
|
|
881260
881446
|
},
|
|
881447
|
+
{
|
|
881448
|
+
id: "command-browser",
|
|
881449
|
+
label: "Command Browser",
|
|
881450
|
+
kind: "picker",
|
|
881451
|
+
summary: "Registry-driven searchable slash-command browser opened by /commands and /help.",
|
|
881452
|
+
command: "/commands",
|
|
881453
|
+
preferredModelRoute: "Use commands/command for model-readable slash-command discovery and run_command for confirmed command execution.",
|
|
881454
|
+
available: (context) => typeof context.executeCommand === "function",
|
|
881455
|
+
open: async (context) => {
|
|
881456
|
+
const surface = findSurfaceById("command-browser");
|
|
881457
|
+
if (!context.executeCommand)
|
|
881458
|
+
return routeUnavailable(surface);
|
|
881459
|
+
const handled = await context.executeCommand("commands", []);
|
|
881460
|
+
return handled ? opened(surface, { command: "/commands" }) : {
|
|
881461
|
+
status: "not_opened",
|
|
881462
|
+
surface: surface.id,
|
|
881463
|
+
kind: surface.kind,
|
|
881464
|
+
note: "The slash-command registry did not handle /commands in the current runtime."
|
|
881465
|
+
};
|
|
881466
|
+
}
|
|
881467
|
+
},
|
|
881261
881468
|
{
|
|
881262
881469
|
id: "file-picker",
|
|
881263
881470
|
label: "File Picker",
|
|
@@ -881553,15 +881760,15 @@ function describeWorkspaceAction(category, action2, options = {}) {
|
|
|
881553
881760
|
}
|
|
881554
881761
|
function localEditorModelExecution(editorKind) {
|
|
881555
881762
|
if (editorKind === "memory")
|
|
881556
|
-
return '
|
|
881763
|
+
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.';
|
|
881557
881764
|
if (editorKind === "note")
|
|
881558
|
-
return '
|
|
881765
|
+
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.';
|
|
881559
881766
|
if (editorKind === "persona")
|
|
881560
|
-
return '
|
|
881767
|
+
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.';
|
|
881561
881768
|
if (editorKind === "skill")
|
|
881562
|
-
return '
|
|
881769
|
+
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.';
|
|
881563
881770
|
if (editorKind === "routine")
|
|
881564
|
-
return '
|
|
881771
|
+
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.';
|
|
881565
881772
|
if (editorKind === "learned-behavior")
|
|
881566
881773
|
return "run_workspace_action can create the learned behavior from fields.";
|
|
881567
881774
|
if (editorKind === "profile")
|
|
@@ -881715,6 +881922,9 @@ async function runWorkspaceEditorAction(deps, action2, editor, args2) {
|
|
|
881715
881922
|
});
|
|
881716
881923
|
}
|
|
881717
881924
|
if (!isAgentWorkspaceCommandEditorKind(editor.kind)) {
|
|
881925
|
+
if (editor.kind === "memory" || editor.kind === "note" || editor.kind === "persona" || editor.kind === "skill" || editor.kind === "routine") {
|
|
881926
|
+
return runLocalWorkspaceEditorAction(deps, editor, args2);
|
|
881927
|
+
}
|
|
881718
881928
|
return output7({
|
|
881719
881929
|
status: "model_tool_required",
|
|
881720
881930
|
action: action2.id,
|
|
@@ -881800,7 +882010,7 @@ function createAgentHarnessTool(deps) {
|
|
|
881800
882010
|
name: "agent_harness",
|
|
881801
882011
|
description: [
|
|
881802
882012
|
"Discover and operate the GoodVibes Agent harness from the main conversation.",
|
|
881803
|
-
"Use this tool to inspect Agent workspace actions, built-in panels, top-level CLI mirrors, UI surfaces, keybindings, slash commands with policy metadata, model tools, connected-host capabilities, and Agent settings, or to invoke a workspace action/command through the same in-process command registry the user uses in the TUI.",
|
|
882013
|
+
"Use this tool to inspect Agent workspace actions, built-in panels, top-level CLI mirrors, UI surfaces, keybindings, slash commands with policy metadata, model tools, connected-host capabilities or one connected-host capability detail, and Agent settings, or to invoke a workspace action/command through the same in-process command registry the user uses in the TUI.",
|
|
881804
882014
|
"Discovery modes are read-only. Setting/keybinding writes, resets, UI routing, slash command invocation, and workspace action invocation require confirm:true plus explicitUserRequest.",
|
|
881805
882015
|
"This tool preserves Agent product boundaries: connected-host lifecycle and listener posture stay externally owned, connected-host mode reports allowed and blocked route families, and secret-backed settings store raw values through the secret manager while config receives only a secret reference."
|
|
881806
882016
|
].join(" "),
|
|
@@ -881840,7 +882050,7 @@ function createAgentHarnessTool(deps) {
|
|
|
881840
882050
|
workspace: 'Use mode:"workspace_actions" to list and mode:"workspace_action" for editor schemas; set includeParameters:true on workspace_actions to inline editor schemas.',
|
|
881841
882051
|
settings: 'Use mode:"settings", mode:"get_setting", mode:"set_setting", and mode:"reset_setting".',
|
|
881842
882052
|
tools: 'Use mode:"tools" with includeParameters:true to inspect first-class model tool schemas.',
|
|
881843
|
-
connectedHost: 'Use mode:"connected_host" for the connected-host capability map and blocked boundaries.',
|
|
882053
|
+
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.',
|
|
881844
882054
|
connectedHostStatus: 'Use mode:"connected_host_status" for live read-only host reachability, SDK compatibility, token posture, and Agent Knowledge route readiness.'
|
|
881845
882055
|
},
|
|
881846
882056
|
settingsPolicy: settingsPolicySummary(),
|
|
@@ -881980,6 +882190,11 @@ function createAgentHarnessTool(deps) {
|
|
|
881980
882190
|
}
|
|
881981
882191
|
if (args2.mode === "connected_host")
|
|
881982
882192
|
return output7(connectedHostSummary(deps.commandContext, deps.toolRegistry));
|
|
882193
|
+
if (args2.mode === "connected_host_capability") {
|
|
882194
|
+
const query2 = readString57(args2.capabilityId || args2.target || args2.query);
|
|
882195
|
+
const capability = describeConnectedHostCapability(deps.toolRegistry, query2);
|
|
882196
|
+
return capability ? output7(capability) : error52(`Unknown connected-host capability ${query2 || "<missing>"}. Use mode:"connected_host" to inspect allowed and blocked capability ids.`);
|
|
882197
|
+
}
|
|
881983
882198
|
if (args2.mode === "connected_host_status")
|
|
881984
882199
|
return output7(await connectedHostStatusSummary(deps.commandContext, deps.toolRegistry));
|
|
881985
882200
|
return error52(`Unhandled agent_harness mode: ${args2.mode}`);
|
|
@@ -900010,6 +900225,40 @@ function wireShellUiOpeners(options) {
|
|
|
900010
900225
|
render();
|
|
900011
900226
|
});
|
|
900012
900227
|
};
|
|
900228
|
+
commandContext.openReasoningEffortPicker = () => {
|
|
900229
|
+
const currentModel = providerRegistry.getCurrentModel();
|
|
900230
|
+
const validLevels = currentModel.reasoningEffort ?? [];
|
|
900231
|
+
if (validLevels.length === 0) {
|
|
900232
|
+
return { opened: false, model: currentModel.displayName, levels: [], reason: "unsupported" };
|
|
900233
|
+
}
|
|
900234
|
+
const current = String(runtime3.reasoningEffort || configManager.get("provider.reasoningEffort") || "medium");
|
|
900235
|
+
const descriptions = {
|
|
900236
|
+
...EFFORT_DESCRIPTIONS,
|
|
900237
|
+
medium: "Balanced speed and quality (default)"
|
|
900238
|
+
};
|
|
900239
|
+
input.openSelection("Reasoning Effort", validLevels.map((level) => ({
|
|
900240
|
+
id: level,
|
|
900241
|
+
label: level,
|
|
900242
|
+
detail: level === current ? `current - ${descriptions[level] ?? level}` : descriptions[level] ?? level
|
|
900243
|
+
})), { preSelectId: current, allowSearch: false }, (result2) => {
|
|
900244
|
+
if (!result2)
|
|
900245
|
+
return;
|
|
900246
|
+
const level = result2.item.id;
|
|
900247
|
+
runtime3.reasoningEffort = level;
|
|
900248
|
+
configManager.set("provider.reasoningEffort", level);
|
|
900249
|
+
commandContext.print([
|
|
900250
|
+
"Reasoning effort set",
|
|
900251
|
+
` level ${level}`
|
|
900252
|
+
].join(`
|
|
900253
|
+
`));
|
|
900254
|
+
render();
|
|
900255
|
+
});
|
|
900256
|
+
return {
|
|
900257
|
+
opened: true,
|
|
900258
|
+
model: currentModel.displayName,
|
|
900259
|
+
levels: validLevels
|
|
900260
|
+
};
|
|
900261
|
+
};
|
|
900013
900262
|
commandContext.openSelection = (title, items, opts, callback) => {
|
|
900014
900263
|
input.openSelection(title, items, opts, callback);
|
|
900015
900264
|
};
|
|
@@ -900031,6 +900280,23 @@ function wireShellUiOpeners(options) {
|
|
|
900031
900280
|
input.processModal.open();
|
|
900032
900281
|
render();
|
|
900033
900282
|
};
|
|
900283
|
+
commandContext.openLiveTail = (target) => {
|
|
900284
|
+
input.processModal.refresh();
|
|
900285
|
+
const entries = input.processModal.entries;
|
|
900286
|
+
if (entries.length === 0) {
|
|
900287
|
+
return { opened: false, reason: "no_processes" };
|
|
900288
|
+
}
|
|
900289
|
+
const normalizedTarget = target?.trim().toLowerCase() ?? "";
|
|
900290
|
+
const entry = normalizedTarget.length > 0 ? entries.find((candidate) => candidate.id.toLowerCase() === normalizedTarget || candidate.label.toLowerCase().includes(normalizedTarget)) : input.processModal.getSelected() ?? entries[0];
|
|
900291
|
+
if (!entry) {
|
|
900292
|
+
return { opened: false, reason: "not_found" };
|
|
900293
|
+
}
|
|
900294
|
+
input.modalOpened("liveTail");
|
|
900295
|
+
input.processModal.close();
|
|
900296
|
+
input.liveTailModal.open(entry);
|
|
900297
|
+
render();
|
|
900298
|
+
return { opened: true, processId: entry.id, label: entry.label };
|
|
900299
|
+
};
|
|
900034
900300
|
commandContext.openConversationSearch = (query2) => {
|
|
900035
900301
|
input.searchManager.open();
|
|
900036
900302
|
const searchQuery = query2?.trim() ?? "";
|