@pellux/goodvibes-agent 1.1.0 → 1.1.2
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 +8 -0
- package/dist/package/main.js +63 -107
- package/package.json +1 -1
- package/src/cli/tui-startup.ts +5 -5
- package/src/input/agent-workspace-categories.ts +0 -1
- package/src/input/agent-workspace.ts +5 -3
- package/src/runtime/onboarding/markers.ts +48 -9
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Product-facing release notes for GoodVibes Agent.
|
|
4
4
|
|
|
5
|
+
## 1.1.2 - 2026-06-05
|
|
6
|
+
|
|
7
|
+
- Remove the redundant Finish action so onboarding completion presents only Apply & close.
|
|
8
|
+
|
|
9
|
+
## 1.1.1 - 2026-06-05
|
|
10
|
+
|
|
11
|
+
- Fix first-run onboarding so clean launches open the fullscreen setup workspace until the user explicitly chooses Finish -> Apply & close.
|
|
12
|
+
|
|
5
13
|
## 1.1.0 - 2026-06-05
|
|
6
14
|
|
|
7
15
|
- Add a final onboarding Finish category with Apply & close completion that saves the user onboarding marker and keeps future normal launches in the main conversation.
|
package/dist/package/main.js
CHANGED
|
@@ -450372,23 +450372,6 @@ function createSchema2(db) {
|
|
|
450372
450372
|
`);
|
|
450373
450373
|
db.run(`CREATE INDEX IF NOT EXISTS idx_knowledge_schedules_job_id ON knowledge_schedules(job_id)`);
|
|
450374
450374
|
}
|
|
450375
|
-
function getKnowledgeSchemaStatements() {
|
|
450376
|
-
const statements = [];
|
|
450377
|
-
createSchema2({
|
|
450378
|
-
run(sql) {
|
|
450379
|
-
const normalized = sql.trim();
|
|
450380
|
-
if (normalized.length > 0)
|
|
450381
|
-
statements.push(normalized);
|
|
450382
|
-
}
|
|
450383
|
-
});
|
|
450384
|
-
return statements;
|
|
450385
|
-
}
|
|
450386
|
-
function renderKnowledgeSchemaSql() {
|
|
450387
|
-
return `${getKnowledgeSchemaStatements().map((statement) => statement.endsWith(";") ? statement : `${statement};`).join(`
|
|
450388
|
-
|
|
450389
|
-
`)}
|
|
450390
|
-
`;
|
|
450391
|
-
}
|
|
450392
450375
|
function rowObject(columns, values2) {
|
|
450393
450376
|
return Object.fromEntries(columns.map((column, index) => [column, values2[index]]));
|
|
450394
450377
|
}
|
|
@@ -763671,9 +763654,6 @@ var init_ingest = __esm(() => {
|
|
|
763671
763654
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/browser-history/index.js
|
|
763672
763655
|
var init_browser_history = __esm(() => {
|
|
763673
763656
|
init_ingest();
|
|
763674
|
-
init_discover();
|
|
763675
|
-
init_readers();
|
|
763676
|
-
init_paths2();
|
|
763677
763657
|
});
|
|
763678
763658
|
|
|
763679
763659
|
// node_modules/graphql/jsutils/devAssert.mjs
|
|
@@ -781313,7 +781293,6 @@ var init_semantic = __esm(() => {
|
|
|
781313
781293
|
init_llm();
|
|
781314
781294
|
init_gap_repair();
|
|
781315
781295
|
init_service4();
|
|
781316
|
-
init_self_improvement();
|
|
781317
781296
|
});
|
|
781318
781297
|
|
|
781319
781298
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/home-graph/helpers.js
|
|
@@ -785282,40 +785261,8 @@ var init_map_view = __esm(() => {
|
|
|
785282
785261
|
});
|
|
785283
785262
|
|
|
785284
785263
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/home-graph/types.js
|
|
785285
|
-
var
|
|
785264
|
+
var HOME_GRAPH_CAPABILITIES;
|
|
785286
785265
|
var init_types15 = __esm(() => {
|
|
785287
|
-
HOME_GRAPH_NODE_KINDS = [
|
|
785288
|
-
"ha_home",
|
|
785289
|
-
"ha_entity",
|
|
785290
|
-
"ha_device",
|
|
785291
|
-
"ha_area",
|
|
785292
|
-
"ha_automation",
|
|
785293
|
-
"ha_script",
|
|
785294
|
-
"ha_scene",
|
|
785295
|
-
"ha_label",
|
|
785296
|
-
"ha_integration",
|
|
785297
|
-
"ha_room",
|
|
785298
|
-
"ha_device_passport",
|
|
785299
|
-
"ha_maintenance_item",
|
|
785300
|
-
"ha_troubleshooting_case",
|
|
785301
|
-
"ha_purchase",
|
|
785302
|
-
"ha_network_node"
|
|
785303
|
-
];
|
|
785304
|
-
HOME_GRAPH_RELATIONS = [
|
|
785305
|
-
"controls",
|
|
785306
|
-
"located_in",
|
|
785307
|
-
"belongs_to_device",
|
|
785308
|
-
"has_manual",
|
|
785309
|
-
"has_receipt",
|
|
785310
|
-
"has_warranty",
|
|
785311
|
-
"has_issue",
|
|
785312
|
-
"fixed_by",
|
|
785313
|
-
"uses_battery",
|
|
785314
|
-
"connected_via",
|
|
785315
|
-
"part_of_network",
|
|
785316
|
-
"mentioned_by",
|
|
785317
|
-
"source_for"
|
|
785318
|
-
];
|
|
785319
785266
|
HOME_GRAPH_CAPABILITIES = [
|
|
785320
785267
|
"knowledge-space-isolation",
|
|
785321
785268
|
"snapshot-sync",
|
|
@@ -786722,7 +786669,6 @@ var init_service5 = __esm(() => {
|
|
|
786722
786669
|
var init_home_graph = __esm(() => {
|
|
786723
786670
|
init_service5();
|
|
786724
786671
|
init_extension();
|
|
786725
|
-
init_types15();
|
|
786726
786672
|
});
|
|
786727
786673
|
|
|
786728
786674
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/store-refinement.js
|
|
@@ -789050,14 +788996,10 @@ var init_service6 = __esm(() => {
|
|
|
789050
788996
|
var init_project_planning = __esm(() => {
|
|
789051
788997
|
init_service6();
|
|
789052
788998
|
init_helpers3();
|
|
789053
|
-
init_readiness();
|
|
789054
788999
|
});
|
|
789055
789000
|
|
|
789056
789001
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/persistence.js
|
|
789057
|
-
var init_persistence =
|
|
789058
|
-
init_store_schema();
|
|
789059
|
-
init_store_load();
|
|
789060
|
-
});
|
|
789002
|
+
var init_persistence = () => {};
|
|
789061
789003
|
|
|
789062
789004
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/knowledge/projections.js
|
|
789063
789005
|
class KnowledgeProjectionService {
|
|
@@ -792565,21 +792507,21 @@ var init_service7 = __esm(() => {
|
|
|
792565
792507
|
var exports_knowledge = {};
|
|
792566
792508
|
__export(exports_knowledge, {
|
|
792567
792509
|
withKnowledgeSpace: () => withKnowledgeSpace,
|
|
792568
|
-
uniqKnowledgeValues: () =>
|
|
792569
|
-
stabilizeKnowledgeText: () =>
|
|
792570
|
-
runKnowledgeSemanticSelfImprovement: () =>
|
|
792510
|
+
uniqKnowledgeValues: () => uniq3,
|
|
792511
|
+
stabilizeKnowledgeText: () => stableText2,
|
|
792512
|
+
runKnowledgeSemanticSelfImprovement: () => runKnowledgeSemanticSelfImprovement2,
|
|
792571
792513
|
resolveProjectPlanningSpace: () => resolveProjectPlanningSpace,
|
|
792572
|
-
resolveKnowledgeDbPathFromControlPlaneDir: () =>
|
|
792514
|
+
resolveKnowledgeDbPathFromControlPlaneDir: () => resolveKnowledgeDbPathFromControlPlaneDir2,
|
|
792573
792515
|
renderPacket: () => renderPacket,
|
|
792574
792516
|
renderKnowledgeSchemaSql: () => renderKnowledgeSchemaSql,
|
|
792575
792517
|
renderKnowledgeMap: () => renderKnowledgeMap,
|
|
792576
792518
|
readKnowledgeSearchText: () => readKnowledgeSearchText,
|
|
792577
|
-
readBrowserKnowledgeProfile: () =>
|
|
792519
|
+
readBrowserKnowledgeProfile: () => readBrowserKnowledgeProfile2,
|
|
792578
792520
|
projectPlanningSourceId: () => projectPlanningSourceId,
|
|
792579
792521
|
projectPlanningProjectIdFromPath: () => projectPlanningProjectIdFromPath,
|
|
792580
792522
|
projectPlanningCanonicalUri: () => projectPlanningCanonicalUri,
|
|
792581
792523
|
projectKnowledgeSpaceId: () => projectKnowledgeSpaceId,
|
|
792582
|
-
parseKnowledgeJsonValue: () =>
|
|
792524
|
+
parseKnowledgeJsonValue: () => parseJsonValue2,
|
|
792583
792525
|
normalizeProjectId: () => normalizeProjectId,
|
|
792584
792526
|
normalizeKnowledgeSpaceId: () => normalizeKnowledgeSpaceId,
|
|
792585
792527
|
normalizeHomeAssistantInstallationId: () => normalizeHomeAssistantInstallationId,
|
|
@@ -792587,12 +792529,12 @@ __export(exports_knowledge, {
|
|
|
792587
792529
|
materializeGeneratedKnowledgeProjection: () => materializeGeneratedKnowledgeProjection,
|
|
792588
792530
|
looksLikeRawPdfPayload: () => looksLikeRawPdfPayload,
|
|
792589
792531
|
looksBinaryLikeText: () => looksBinaryLikeText,
|
|
792590
|
-
loadKnowledgeStoreSnapshot: () =>
|
|
792532
|
+
loadKnowledgeStoreSnapshot: () => loadKnowledgeStoreSnapshot2,
|
|
792591
792533
|
listGeneratedKnowledgePages: () => listGeneratedKnowledgePages,
|
|
792592
|
-
listBrowserKinds: () =>
|
|
792534
|
+
listBrowserKinds: () => listBrowserKinds2,
|
|
792593
792535
|
knowledgeSpaceMetadata: () => knowledgeSpaceMetadata,
|
|
792594
792536
|
knowledgePageSourceWeight: () => knowledgePageSourceWeight,
|
|
792595
|
-
knowledgeNowMs: () =>
|
|
792537
|
+
knowledgeNowMs: () => nowMs2,
|
|
792596
792538
|
knowledgeExtractionNeedsRefresh: () => knowledgeExtractionNeedsRefresh,
|
|
792597
792539
|
isUsefulKnowledgePageSourceCandidate: () => isUsefulKnowledgePageSourceCandidate,
|
|
792598
792540
|
isUsefulKnowledgePageSource: () => isUsefulKnowledgePageSource,
|
|
@@ -792612,12 +792554,12 @@ __export(exports_knowledge, {
|
|
|
792612
792554
|
generatedKnowledgeSourceId: () => generatedKnowledgeSourceId,
|
|
792613
792555
|
generatedKnowledgeCanonicalUri: () => generatedKnowledgeCanonicalUri,
|
|
792614
792556
|
extractKnowledgeArtifact: () => extractKnowledgeArtifact,
|
|
792615
|
-
evaluateProjectPlanningReadiness: () =>
|
|
792616
|
-
discoverBrowserKnowledgeProfiles: () =>
|
|
792557
|
+
evaluateProjectPlanningReadiness: () => evaluateProjectPlanningReadiness2,
|
|
792558
|
+
discoverBrowserKnowledgeProfiles: () => discoverBrowserKnowledgeProfiles2,
|
|
792617
792559
|
createWebKnowledgeGapRepairer: () => createWebKnowledgeGapRepairer,
|
|
792618
792560
|
createProviderBackedKnowledgeSemanticLlm: () => createProviderBackedKnowledgeSemanticLlm,
|
|
792619
792561
|
createMemoryApi: () => createMemoryApi,
|
|
792620
|
-
createKnowledgeSchema: () =>
|
|
792562
|
+
createKnowledgeSchema: () => createSchema3,
|
|
792621
792563
|
createKnowledgeApi: () => createKnowledgeApi,
|
|
792622
792564
|
createDefaultKnowledgeConnectorRegistry: () => createDefaultKnowledgeConnectorRegistry,
|
|
792623
792565
|
compareKnowledgePageSources: () => compareKnowledgePageSources,
|
|
@@ -795056,7 +794998,7 @@ var init_delivery_manager = __esm(() => {
|
|
|
795056
794998
|
});
|
|
795057
794999
|
|
|
795058
795000
|
// node_modules/@pellux/goodvibes-sdk/dist/platform/automation/scheduler-capacity.js
|
|
795059
|
-
function computeSchedulerCapacity(slotsTotal, runs,
|
|
795001
|
+
function computeSchedulerCapacity(slotsTotal, runs, nowMs3 = Date.now()) {
|
|
795060
795002
|
let slotsInUse = 0;
|
|
795061
795003
|
const queuedRuns = [];
|
|
795062
795004
|
for (const run7 of runs) {
|
|
@@ -795066,7 +795008,7 @@ function computeSchedulerCapacity(slotsTotal, runs, nowMs2 = Date.now()) {
|
|
|
795066
795008
|
queuedRuns.push(run7);
|
|
795067
795009
|
}
|
|
795068
795010
|
const queueDepth = queuedRuns.length;
|
|
795069
|
-
const oldestQueuedAgeMs = queueDepth > 0 ?
|
|
795011
|
+
const oldestQueuedAgeMs = queueDepth > 0 ? nowMs3 - Math.min(...queuedRuns.map((r6) => r6.queuedAt)) : null;
|
|
795070
795012
|
return { slotsTotal, slotsInUse, queueDepth, oldestQueuedAgeMs };
|
|
795071
795013
|
}
|
|
795072
795014
|
|
|
@@ -817145,7 +817087,7 @@ var createStyledCell = (char, overrides = {}) => ({
|
|
|
817145
817087
|
// src/version.ts
|
|
817146
817088
|
import { readFileSync } from "fs";
|
|
817147
817089
|
import { join } from "path";
|
|
817148
|
-
var _version = "1.1.
|
|
817090
|
+
var _version = "1.1.2";
|
|
817149
817091
|
try {
|
|
817150
817092
|
const pkg = JSON.parse(readFileSync(join(import.meta.dir, "..", "package.json"), "utf-8"));
|
|
817151
817093
|
_version = typeof pkg.version === "string" ? pkg.version : _version;
|
|
@@ -839658,7 +839600,7 @@ var WORK_PLAN_STATUSES = [
|
|
|
839658
839600
|
"failed",
|
|
839659
839601
|
"cancelled"
|
|
839660
839602
|
];
|
|
839661
|
-
function
|
|
839603
|
+
function nowMs3() {
|
|
839662
839604
|
return Date.now();
|
|
839663
839605
|
}
|
|
839664
839606
|
function isObject4(value) {
|
|
@@ -839764,7 +839706,7 @@ class WorkPlanStore {
|
|
|
839764
839706
|
if (!normalizedTitle)
|
|
839765
839707
|
throw new Error("Work plan item title is required.");
|
|
839766
839708
|
const plan = this.readPlan();
|
|
839767
|
-
const time4 =
|
|
839709
|
+
const time4 = nowMs3();
|
|
839768
839710
|
const item = {
|
|
839769
839711
|
id: createItemId(),
|
|
839770
839712
|
title: normalizedTitle,
|
|
@@ -839788,7 +839730,7 @@ class WorkPlanStore {
|
|
|
839788
839730
|
updateItem(idOrPrefix, patch2) {
|
|
839789
839731
|
const plan = this.readPlan();
|
|
839790
839732
|
const item = this.resolveItem(plan, idOrPrefix);
|
|
839791
|
-
const time4 =
|
|
839733
|
+
const time4 = nowMs3();
|
|
839792
839734
|
const nextStatus = patch2.status ?? item.status;
|
|
839793
839735
|
const next = this.pruneItem({
|
|
839794
839736
|
...item,
|
|
@@ -839821,7 +839763,7 @@ class WorkPlanStore {
|
|
|
839821
839763
|
removeItem(idOrPrefix) {
|
|
839822
839764
|
const plan = this.readPlan();
|
|
839823
839765
|
const item = this.resolveItem(plan, idOrPrefix);
|
|
839824
|
-
const time4 =
|
|
839766
|
+
const time4 = nowMs3();
|
|
839825
839767
|
const remaining = plan.items.filter((candidate) => candidate.id !== item.id);
|
|
839826
839768
|
this.writePlan({
|
|
839827
839769
|
...plan,
|
|
@@ -839841,7 +839783,7 @@ class WorkPlanStore {
|
|
|
839841
839783
|
...plan,
|
|
839842
839784
|
items: remaining,
|
|
839843
839785
|
activeItemId: remaining[0]?.id,
|
|
839844
|
-
updatedAt:
|
|
839786
|
+
updatedAt: nowMs3()
|
|
839845
839787
|
});
|
|
839846
839788
|
return removed;
|
|
839847
839789
|
}
|
|
@@ -839880,7 +839822,7 @@ class WorkPlanStore {
|
|
|
839880
839822
|
const parsed = JSON.parse(raw);
|
|
839881
839823
|
if (!isObject4(parsed))
|
|
839882
839824
|
return this.createEmptyPlan();
|
|
839883
|
-
const time4 =
|
|
839825
|
+
const time4 = nowMs3();
|
|
839884
839826
|
const createdAt = typeof parsed.createdAt === "number" ? parsed.createdAt : time4;
|
|
839885
839827
|
const updatedAt = typeof parsed.updatedAt === "number" ? parsed.updatedAt : createdAt;
|
|
839886
839828
|
const items = Array.isArray(parsed.items) ? parsed.items.map((item) => normalizeItem(item, createdAt)).filter((item) => item !== null) : [];
|
|
@@ -839899,7 +839841,7 @@ class WorkPlanStore {
|
|
|
839899
839841
|
};
|
|
839900
839842
|
}
|
|
839901
839843
|
createEmptyPlan() {
|
|
839902
|
-
const time4 =
|
|
839844
|
+
const time4 = nowMs3();
|
|
839903
839845
|
return {
|
|
839904
839846
|
id: createPlanId(this.options.projectId, this.options.projectRoot),
|
|
839905
839847
|
projectId: this.options.projectId,
|
|
@@ -849851,13 +849793,13 @@ init_state3();
|
|
|
849851
849793
|
|
|
849852
849794
|
// src/input/commands/recall-shared.ts
|
|
849853
849795
|
var VALID_CLASSES = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
|
|
849854
|
-
var
|
|
849796
|
+
var VALID_SCOPES2 = ["session", "project", "team"];
|
|
849855
849797
|
var VALID_REVIEW_STATES = ["fresh", "reviewed", "stale", "contradicted"];
|
|
849856
849798
|
function isValidClass(s4) {
|
|
849857
849799
|
return VALID_CLASSES.includes(s4);
|
|
849858
849800
|
}
|
|
849859
849801
|
function isValidScope(s4) {
|
|
849860
|
-
return
|
|
849802
|
+
return VALID_SCOPES2.includes(s4);
|
|
849861
849803
|
}
|
|
849862
849804
|
function isValidReviewState(s4) {
|
|
849863
849805
|
return VALID_REVIEW_STATES.includes(s4);
|
|
@@ -849900,7 +849842,7 @@ function handleRecallSearch(args2, context) {
|
|
|
849900
849842
|
if (isValidScope(scope))
|
|
849901
849843
|
filter.scope = scope;
|
|
849902
849844
|
else {
|
|
849903
|
-
context.print(`[memory] Unknown scope "${scope}". Valid values ${
|
|
849845
|
+
context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
849904
849846
|
return;
|
|
849905
849847
|
}
|
|
849906
849848
|
}
|
|
@@ -850075,7 +850017,7 @@ function handleRecallList(args2, context) {
|
|
|
850075
850017
|
if (scopeIdx !== -1 && args2[scopeIdx + 1]) {
|
|
850076
850018
|
const scope = args2[scopeIdx + 1];
|
|
850077
850019
|
if (!isValidScope(scope)) {
|
|
850078
|
-
context.print(`[memory] Unknown scope "${scope}". Valid values ${
|
|
850020
|
+
context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
850079
850021
|
return;
|
|
850080
850022
|
}
|
|
850081
850023
|
filter.scope = scope;
|
|
@@ -850125,7 +850067,7 @@ async function handleRecallAdd(args2, context) {
|
|
|
850125
850067
|
const tags = tagsRaw ? tagsRaw.split(",").map((token) => token.trim()).filter(Boolean) : [];
|
|
850126
850068
|
const scope = scopeRaw && isValidScope(scopeRaw) ? scopeRaw : "project";
|
|
850127
850069
|
if (scopeRaw && !isValidScope(scopeRaw)) {
|
|
850128
|
-
context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${
|
|
850070
|
+
context.print(`[memory] Invalid scope "${scopeRaw}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
850129
850071
|
return;
|
|
850130
850072
|
}
|
|
850131
850073
|
const provenance = [];
|
|
@@ -850259,7 +850201,7 @@ function handleRecallExport(args2, context) {
|
|
|
850259
850201
|
if (scopeIdx !== -1 && commandArgs[scopeIdx + 1]) {
|
|
850260
850202
|
const scope = commandArgs[scopeIdx + 1];
|
|
850261
850203
|
if (!isValidScope(scope)) {
|
|
850262
|
-
context.print(`[memory] Unknown scope "${scope}". Valid values ${
|
|
850204
|
+
context.print(`[memory] Unknown scope "${scope}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
850263
850205
|
return;
|
|
850264
850206
|
}
|
|
850265
850207
|
filter.scope = scope;
|
|
@@ -850338,7 +850280,7 @@ function handleRecallHandoffExport(args2, context) {
|
|
|
850338
850280
|
const scopeIdx = commandArgs.indexOf("--scope");
|
|
850339
850281
|
const scopeRaw = scopeIdx !== -1 ? commandArgs[scopeIdx + 1] : "team";
|
|
850340
850282
|
if (!scopeRaw || !isValidScope(scopeRaw)) {
|
|
850341
|
-
context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${
|
|
850283
|
+
context.print(`[memory] Unknown scope "${scopeRaw ?? ""}". Valid values ${VALID_SCOPES2.join(", ")}.`);
|
|
850342
850284
|
return;
|
|
850343
850285
|
}
|
|
850344
850286
|
const bundle = memory.exportBundle({ scope: scopeRaw });
|
|
@@ -850454,7 +850396,7 @@ function handleRecallPromote(args2, context) {
|
|
|
850454
850396
|
const id = parsed.rest[0];
|
|
850455
850397
|
const scope = parsed.rest[1];
|
|
850456
850398
|
if (!id || !scope || !isValidScope(scope)) {
|
|
850457
|
-
context.print(`[memory] Usage: /memory promote <id> <${
|
|
850399
|
+
context.print(`[memory] Usage: /memory promote <id> <${VALID_SCOPES2.join("|")}> --yes`);
|
|
850458
850400
|
return;
|
|
850459
850401
|
}
|
|
850460
850402
|
if (!parsed.yes) {
|
|
@@ -863720,8 +863662,9 @@ function deriveStep1CapabilityFlags(snapshot) {
|
|
|
863720
863662
|
import { existsSync as existsSync77, mkdirSync as mkdirSync63, readFileSync as readFileSync85, writeFileSync as writeFileSync54 } from "fs";
|
|
863721
863663
|
import { dirname as dirname60 } from "path";
|
|
863722
863664
|
var ONBOARDING_CHECK_MARKER_FILE = "onboarding-checked.json";
|
|
863723
|
-
|
|
863724
|
-
|
|
863665
|
+
var ONBOARDING_COMPLETION_MARKER_FILE = "onboarding-complete.json";
|
|
863666
|
+
function resolveMarkerPath(shellPaths, scope, fileName = ONBOARDING_CHECK_MARKER_FILE) {
|
|
863667
|
+
return scope === "project" ? shellPaths.resolveProjectPath(GOODVIBES_AGENT_SURFACE_ROOT, fileName) : shellPaths.resolveUserPath(GOODVIBES_AGENT_SURFACE_ROOT, fileName);
|
|
863725
863668
|
}
|
|
863726
863669
|
function isObject6(value) {
|
|
863727
863670
|
return typeof value === "object" && value !== null;
|
|
@@ -863759,8 +863702,8 @@ function pickEffectiveMarker(user) {
|
|
|
863759
863702
|
function getOnboardingCheckMarkerPath(shellPaths, scope = "user") {
|
|
863760
863703
|
return resolveMarkerPath(shellPaths, scope);
|
|
863761
863704
|
}
|
|
863762
|
-
function
|
|
863763
|
-
const path7 = resolveMarkerPath(shellPaths, scope);
|
|
863705
|
+
function readOnboardingMarker(shellPaths, scope, fileName) {
|
|
863706
|
+
const path7 = resolveMarkerPath(shellPaths, scope, fileName);
|
|
863764
863707
|
if (!existsSync77(path7))
|
|
863765
863708
|
return buildMissingMarkerState(scope, path7);
|
|
863766
863709
|
try {
|
|
@@ -863779,6 +863722,12 @@ function readOnboardingCheckMarker(shellPaths, scope = "user") {
|
|
|
863779
863722
|
return buildParseErrorState(scope, path7, parseError);
|
|
863780
863723
|
}
|
|
863781
863724
|
}
|
|
863725
|
+
function readOnboardingCheckMarker(shellPaths, scope = "user") {
|
|
863726
|
+
return readOnboardingMarker(shellPaths, scope, ONBOARDING_CHECK_MARKER_FILE);
|
|
863727
|
+
}
|
|
863728
|
+
function readOnboardingCompletionMarker(shellPaths, scope = "user") {
|
|
863729
|
+
return readOnboardingMarker(shellPaths, scope, ONBOARDING_COMPLETION_MARKER_FILE);
|
|
863730
|
+
}
|
|
863782
863731
|
function readOnboardingCheckMarkers(shellPaths) {
|
|
863783
863732
|
const user = readOnboardingCheckMarker(shellPaths, "user");
|
|
863784
863733
|
const project = readOnboardingCheckMarker(shellPaths, "project");
|
|
@@ -863788,9 +863737,9 @@ function readOnboardingCheckMarkers(shellPaths) {
|
|
|
863788
863737
|
effective: pickEffectiveMarker(user)
|
|
863789
863738
|
};
|
|
863790
863739
|
}
|
|
863791
|
-
function
|
|
863740
|
+
function writeOnboardingMarker(shellPaths, options, fileName) {
|
|
863792
863741
|
const scope = options.scope ?? "user";
|
|
863793
|
-
const path7 = resolveMarkerPath(shellPaths, scope);
|
|
863742
|
+
const path7 = resolveMarkerPath(shellPaths, scope, fileName);
|
|
863794
863743
|
const checkedAt = options.checkedAt ?? Date.now();
|
|
863795
863744
|
const payload = {
|
|
863796
863745
|
version: 1,
|
|
@@ -863803,7 +863752,13 @@ function writeOnboardingCheckMarker(shellPaths, options = {}) {
|
|
|
863803
863752
|
mkdirSync63(dirname60(path7), { recursive: true });
|
|
863804
863753
|
writeFileSync54(path7, `${JSON.stringify(payload, null, 2)}
|
|
863805
863754
|
`, "utf-8");
|
|
863806
|
-
return
|
|
863755
|
+
return readOnboardingMarker(shellPaths, scope, fileName);
|
|
863756
|
+
}
|
|
863757
|
+
function writeOnboardingCheckMarker(shellPaths, options = {}) {
|
|
863758
|
+
return writeOnboardingMarker(shellPaths, options, ONBOARDING_CHECK_MARKER_FILE);
|
|
863759
|
+
}
|
|
863760
|
+
function writeOnboardingCompletionMarker(shellPaths, options = {}) {
|
|
863761
|
+
return writeOnboardingMarker(shellPaths, options, ONBOARDING_COMPLETION_MARKER_FILE);
|
|
863807
863762
|
}
|
|
863808
863763
|
// src/cli/help.ts
|
|
863809
863764
|
import { existsSync as existsSync78, readFileSync as readFileSync86 } from "fs";
|
|
@@ -866578,7 +866533,7 @@ import { mkdirSync as mkdirSync66, readFileSync as readFileSync88, writeFileSync
|
|
|
866578
866533
|
import { dirname as dirname64, resolve as resolve39 } from "path";
|
|
866579
866534
|
init_state3();
|
|
866580
866535
|
var VALID_CLASSES2 = ["decision", "constraint", "incident", "pattern", "fact", "risk", "runbook", "architecture", "ownership"];
|
|
866581
|
-
var
|
|
866536
|
+
var VALID_SCOPES4 = ["session", "project", "team"];
|
|
866582
866537
|
var VALID_REVIEW_STATES3 = ["fresh", "reviewed", "stale", "contradicted"];
|
|
866583
866538
|
var VALID_PROVENANCE_KINDS = ["session", "turn", "task", "event", "file"];
|
|
866584
866539
|
var VALUE_OPTIONS = new Set([
|
|
@@ -866678,7 +866633,7 @@ function isMemoryClass2(value) {
|
|
|
866678
866633
|
return VALID_CLASSES2.includes(value);
|
|
866679
866634
|
}
|
|
866680
866635
|
function isMemoryScope2(value) {
|
|
866681
|
-
return
|
|
866636
|
+
return VALID_SCOPES4.includes(value);
|
|
866682
866637
|
}
|
|
866683
866638
|
function isReviewState(value) {
|
|
866684
866639
|
return VALID_REVIEW_STATES3.includes(value);
|
|
@@ -866693,7 +866648,7 @@ function requireClass(value) {
|
|
|
866693
866648
|
}
|
|
866694
866649
|
function requireScope(value) {
|
|
866695
866650
|
if (!value || !isMemoryScope2(value))
|
|
866696
|
-
throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${
|
|
866651
|
+
throw new Error(`Invalid memory scope "${value ?? ""}". Valid values ${VALID_SCOPES4.join(", ")}`);
|
|
866697
866652
|
return value;
|
|
866698
866653
|
}
|
|
866699
866654
|
function optionalScope(value) {
|
|
@@ -891054,8 +891009,7 @@ var AGENT_WORKSPACE_CATEGORIES = [
|
|
|
891054
891009
|
summary: "Acknowledge setup and close onboarding.",
|
|
891055
891010
|
detail: "Use this final step after reviewing setup. Apply & close writes the user onboarding completion marker so normal future launches start in the main conversation.",
|
|
891056
891011
|
actions: [
|
|
891057
|
-
{ id: "onboarding-apply-close", label: "Apply & close", detail: "Acknowledge onboarding as finished, persist the user completion marker, and close the fullscreen Agent workspace.", kind: "onboarding-complete", safety: "safe" }
|
|
891058
|
-
{ id: "finish-review-setup", label: "Review setup first", detail: "Jump back to setup before acknowledging onboarding as finished.", targetCategoryId: "setup", kind: "workspace", safety: "safe" }
|
|
891012
|
+
{ id: "onboarding-apply-close", label: "Apply & close", detail: "Acknowledge onboarding as finished, persist the user completion marker, and close the fullscreen Agent workspace.", kind: "onboarding-complete", safety: "safe" }
|
|
891059
891013
|
]
|
|
891060
891014
|
}
|
|
891061
891015
|
];
|
|
@@ -895939,12 +895893,14 @@ class AgentWorkspace {
|
|
|
895939
895893
|
return;
|
|
895940
895894
|
}
|
|
895941
895895
|
try {
|
|
895942
|
-
|
|
895896
|
+
const marker = {
|
|
895943
895897
|
scope: "user",
|
|
895944
895898
|
source: "wizard",
|
|
895945
895899
|
mode: "new",
|
|
895946
895900
|
workspaceRoot: shellPaths3.workingDirectory
|
|
895947
|
-
}
|
|
895901
|
+
};
|
|
895902
|
+
writeOnboardingCheckMarker(shellPaths3, marker);
|
|
895903
|
+
writeOnboardingCompletionMarker(shellPaths3, marker);
|
|
895948
895904
|
this.status = "Onboarding applied and closed.";
|
|
895949
895905
|
this.lastActionResult = {
|
|
895950
895906
|
kind: "refreshed",
|
|
@@ -903889,7 +903845,7 @@ function getInteractiveTerminalLaunchError(input) {
|
|
|
903889
903845
|
}
|
|
903890
903846
|
function applyInitialTuiCliState(options) {
|
|
903891
903847
|
const { cli, input, commandRegistry, commandContext, shellPaths: shellPaths3, render } = options;
|
|
903892
|
-
const
|
|
903848
|
+
const onboardingCompletionMarker = readOnboardingCompletionMarker(shellPaths3, "user");
|
|
903893
903849
|
const seededPrompt = cli.flags.prompt ?? (cli.rawCommand === undefined && cli.positionals.length > 0 ? cli.positionals.join(" ") : undefined);
|
|
903894
903850
|
if (cli.command === "onboarding") {
|
|
903895
903851
|
input.openAgentWorkspace(commandContext);
|
|
@@ -903898,8 +903854,8 @@ function applyInitialTuiCliState(options) {
|
|
|
903898
903854
|
if (target) {
|
|
903899
903855
|
commandRegistry.execute("session", ["resume", target], commandContext).then(() => render());
|
|
903900
903856
|
}
|
|
903901
|
-
} else if (!
|
|
903902
|
-
input.openAgentWorkspace(commandContext);
|
|
903857
|
+
} else if (!onboardingCompletionMarker.payload) {
|
|
903858
|
+
input.openAgentWorkspace(commandContext, "setup");
|
|
903903
903859
|
}
|
|
903904
903860
|
if (seededPrompt) {
|
|
903905
903861
|
input.prompt = seededPrompt;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pellux/goodvibes-agent",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
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",
|
package/src/cli/tui-startup.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CommandContext, CommandRegistry } from '../input/command-registry.ts';
|
|
2
2
|
import type { InputHandler } from '../input/handler.ts';
|
|
3
|
-
import {
|
|
3
|
+
import { readOnboardingCompletionMarker } from '../runtime/onboarding/index.ts';
|
|
4
4
|
import type { GoodVibesCliParseResult } from './types.ts';
|
|
5
5
|
|
|
6
6
|
export type InteractiveTerminalCheckInput = {
|
|
@@ -95,11 +95,11 @@ export function applyInitialTuiCliState(options: {
|
|
|
95
95
|
readonly input: InputHandler;
|
|
96
96
|
readonly commandRegistry: CommandRegistry;
|
|
97
97
|
readonly commandContext: CommandContext;
|
|
98
|
-
readonly shellPaths: Parameters<typeof
|
|
98
|
+
readonly shellPaths: Parameters<typeof readOnboardingCompletionMarker>[0];
|
|
99
99
|
readonly render: () => void;
|
|
100
100
|
}): void {
|
|
101
101
|
const { cli, input, commandRegistry, commandContext, shellPaths, render } = options;
|
|
102
|
-
const
|
|
102
|
+
const onboardingCompletionMarker = readOnboardingCompletionMarker(shellPaths, 'user');
|
|
103
103
|
const seededPrompt = cli.flags.prompt ?? (cli.rawCommand === undefined && cli.positionals.length > 0 ? cli.positionals.join(' ') : undefined);
|
|
104
104
|
if (cli.command === 'onboarding') {
|
|
105
105
|
input.openAgentWorkspace(commandContext);
|
|
@@ -108,8 +108,8 @@ export function applyInitialTuiCliState(options: {
|
|
|
108
108
|
if (target) {
|
|
109
109
|
void commandRegistry.execute('session', ['resume', target], commandContext).then(() => render());
|
|
110
110
|
}
|
|
111
|
-
} else if (!
|
|
112
|
-
input.openAgentWorkspace(commandContext);
|
|
111
|
+
} else if (!onboardingCompletionMarker.payload) {
|
|
112
|
+
input.openAgentWorkspace(commandContext, 'setup');
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
if (seededPrompt) {
|
|
@@ -617,7 +617,6 @@ export const AGENT_WORKSPACE_CATEGORIES: readonly AgentWorkspaceCategory[] = [
|
|
|
617
617
|
detail: 'Use this final step after reviewing setup. Apply & close writes the user onboarding completion marker so normal future launches start in the main conversation.',
|
|
618
618
|
actions: [
|
|
619
619
|
{ id: 'onboarding-apply-close', label: 'Apply & close', detail: 'Acknowledge onboarding as finished, persist the user completion marker, and close the fullscreen Agent workspace.', kind: 'onboarding-complete', safety: 'safe' },
|
|
620
|
-
{ id: 'finish-review-setup', label: 'Review setup first', detail: 'Jump back to setup before acknowledging onboarding as finished.', targetCategoryId: 'setup', kind: 'workspace', safety: 'safe' },
|
|
621
620
|
],
|
|
622
621
|
},
|
|
623
622
|
];
|
|
@@ -20,7 +20,7 @@ import { buildAgentWorkspaceRequirements } from './agent-workspace-requirements.
|
|
|
20
20
|
import { appendAgentWorkspaceActionSearchText, backspaceAgentWorkspaceActionSearch, beginAgentWorkspaceActionSearch, clearAgentWorkspaceActionSearch, commitAgentWorkspaceActionSearchSelection, searchAgentWorkspaceActions } from './agent-workspace-search.ts';
|
|
21
21
|
import { buildAgentWorkspaceRuntimeSnapshot } from './agent-workspace-snapshot.ts';
|
|
22
22
|
import type { AgentWorkspaceAction, AgentWorkspaceActionResult, AgentWorkspaceActionSearchResult, AgentWorkspaceCategory, AgentWorkspaceCommandDispatcher, AgentWorkspaceEditorField, AgentWorkspaceFocusPane, AgentWorkspaceLocalEditor, AgentWorkspaceLocalEditorKind, AgentWorkspaceLocalLibraryItem, AgentWorkspaceLocalOperation, AgentWorkspacePromptDispatcher, AgentWorkspaceRuntimeSnapshot } from './agent-workspace-types.ts';
|
|
23
|
-
import { writeOnboardingCheckMarker } from '../runtime/onboarding/index.ts';
|
|
23
|
+
import { writeOnboardingCheckMarker, writeOnboardingCompletionMarker } from '../runtime/onboarding/index.ts';
|
|
24
24
|
|
|
25
25
|
export type { AgentWorkspaceChannelRisk, AgentWorkspaceChannelStatus } from './agent-workspace-channels.ts';
|
|
26
26
|
export type { AgentWorkspaceAction, AgentWorkspaceActionResult, AgentWorkspaceActionSearchResult, AgentWorkspaceCategory, AgentWorkspaceCategoryId, AgentWorkspaceCommandDispatcher, AgentWorkspaceEditorField, AgentWorkspaceFocusPane, AgentWorkspaceLocalEditor, AgentWorkspaceLocalEditorKind, AgentWorkspaceLocalLibraryItem, AgentWorkspaceLocalOperation, AgentWorkspacePromptDispatcher, AgentWorkspaceRuntimeSnapshot } from './agent-workspace-types.ts';
|
|
@@ -321,12 +321,14 @@ export class AgentWorkspace {
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
try {
|
|
324
|
-
|
|
324
|
+
const marker = {
|
|
325
325
|
scope: 'user',
|
|
326
326
|
source: 'wizard',
|
|
327
327
|
mode: 'new',
|
|
328
328
|
workspaceRoot: shellPaths.workingDirectory,
|
|
329
|
-
}
|
|
329
|
+
} as const;
|
|
330
|
+
writeOnboardingCheckMarker(shellPaths, marker);
|
|
331
|
+
writeOnboardingCompletionMarker(shellPaths, marker);
|
|
330
332
|
this.status = 'Onboarding applied and closed.';
|
|
331
333
|
this.lastActionResult = {
|
|
332
334
|
kind: 'refreshed',
|
|
@@ -11,6 +11,7 @@ import type {
|
|
|
11
11
|
import { GOODVIBES_AGENT_SURFACE_ROOT } from '../../config/surface.ts';
|
|
12
12
|
|
|
13
13
|
const ONBOARDING_CHECK_MARKER_FILE = 'onboarding-checked.json';
|
|
14
|
+
const ONBOARDING_COMPLETION_MARKER_FILE = 'onboarding-complete.json';
|
|
14
15
|
|
|
15
16
|
type OnboardingShellPaths = Pick<
|
|
16
17
|
ShellPathService,
|
|
@@ -20,10 +21,11 @@ type OnboardingShellPaths = Pick<
|
|
|
20
21
|
function resolveMarkerPath(
|
|
21
22
|
shellPaths: OnboardingShellPaths,
|
|
22
23
|
scope: OnboardingStateScope,
|
|
24
|
+
fileName = ONBOARDING_CHECK_MARKER_FILE,
|
|
23
25
|
): string {
|
|
24
26
|
return scope === 'project'
|
|
25
|
-
? shellPaths.resolveProjectPath(GOODVIBES_AGENT_SURFACE_ROOT,
|
|
26
|
-
: shellPaths.resolveUserPath(GOODVIBES_AGENT_SURFACE_ROOT,
|
|
27
|
+
? shellPaths.resolveProjectPath(GOODVIBES_AGENT_SURFACE_ROOT, fileName)
|
|
28
|
+
: shellPaths.resolveUserPath(GOODVIBES_AGENT_SURFACE_ROOT, fileName);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
function isObject(value: unknown): value is Record<string, unknown> {
|
|
@@ -87,11 +89,12 @@ export function getOnboardingCheckMarkerPath(
|
|
|
87
89
|
return resolveMarkerPath(shellPaths, scope);
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
|
|
92
|
+
function readOnboardingMarker(
|
|
91
93
|
shellPaths: OnboardingShellPaths,
|
|
92
|
-
scope: OnboardingStateScope
|
|
94
|
+
scope: OnboardingStateScope,
|
|
95
|
+
fileName: string,
|
|
93
96
|
): OnboardingCheckMarkerState {
|
|
94
|
-
const path = resolveMarkerPath(shellPaths, scope);
|
|
97
|
+
const path = resolveMarkerPath(shellPaths, scope, fileName);
|
|
95
98
|
if (!existsSync(path)) return buildMissingMarkerState(scope, path);
|
|
96
99
|
|
|
97
100
|
try {
|
|
@@ -112,6 +115,27 @@ export function readOnboardingCheckMarker(
|
|
|
112
115
|
}
|
|
113
116
|
}
|
|
114
117
|
|
|
118
|
+
export function readOnboardingCheckMarker(
|
|
119
|
+
shellPaths: OnboardingShellPaths,
|
|
120
|
+
scope: OnboardingStateScope = 'user',
|
|
121
|
+
): OnboardingCheckMarkerState {
|
|
122
|
+
return readOnboardingMarker(shellPaths, scope, ONBOARDING_CHECK_MARKER_FILE);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function getOnboardingCompletionMarkerPath(
|
|
126
|
+
shellPaths: OnboardingShellPaths,
|
|
127
|
+
scope: OnboardingStateScope = 'user',
|
|
128
|
+
): string {
|
|
129
|
+
return resolveMarkerPath(shellPaths, scope, ONBOARDING_COMPLETION_MARKER_FILE);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function readOnboardingCompletionMarker(
|
|
133
|
+
shellPaths: OnboardingShellPaths,
|
|
134
|
+
scope: OnboardingStateScope = 'user',
|
|
135
|
+
): OnboardingCheckMarkerState {
|
|
136
|
+
return readOnboardingMarker(shellPaths, scope, ONBOARDING_COMPLETION_MARKER_FILE);
|
|
137
|
+
}
|
|
138
|
+
|
|
115
139
|
export function readOnboardingCheckMarkers(
|
|
116
140
|
shellPaths: OnboardingShellPaths,
|
|
117
141
|
): OnboardingCheckMarkersState {
|
|
@@ -125,12 +149,13 @@ export function readOnboardingCheckMarkers(
|
|
|
125
149
|
};
|
|
126
150
|
}
|
|
127
151
|
|
|
128
|
-
|
|
152
|
+
function writeOnboardingMarker(
|
|
129
153
|
shellPaths: OnboardingShellPaths,
|
|
130
|
-
options: WriteOnboardingCheckMarkerOptions
|
|
154
|
+
options: WriteOnboardingCheckMarkerOptions,
|
|
155
|
+
fileName: string,
|
|
131
156
|
): OnboardingCheckMarkerState {
|
|
132
157
|
const scope = options.scope ?? 'user';
|
|
133
|
-
const path = resolveMarkerPath(shellPaths, scope);
|
|
158
|
+
const path = resolveMarkerPath(shellPaths, scope, fileName);
|
|
134
159
|
const checkedAt = options.checkedAt ?? Date.now();
|
|
135
160
|
const payload: OnboardingCheckMarkerPayload = {
|
|
136
161
|
version: 1,
|
|
@@ -144,5 +169,19 @@ export function writeOnboardingCheckMarker(
|
|
|
144
169
|
mkdirSync(dirname(path), { recursive: true });
|
|
145
170
|
writeFileSync(path, `${JSON.stringify(payload, null, 2)}\n`, 'utf-8');
|
|
146
171
|
|
|
147
|
-
return
|
|
172
|
+
return readOnboardingMarker(shellPaths, scope, fileName);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function writeOnboardingCheckMarker(
|
|
176
|
+
shellPaths: OnboardingShellPaths,
|
|
177
|
+
options: WriteOnboardingCheckMarkerOptions = {},
|
|
178
|
+
): OnboardingCheckMarkerState {
|
|
179
|
+
return writeOnboardingMarker(shellPaths, options, ONBOARDING_CHECK_MARKER_FILE);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export function writeOnboardingCompletionMarker(
|
|
183
|
+
shellPaths: OnboardingShellPaths,
|
|
184
|
+
options: WriteOnboardingCheckMarkerOptions = {},
|
|
185
|
+
): OnboardingCheckMarkerState {
|
|
186
|
+
return writeOnboardingMarker(shellPaths, options, ONBOARDING_COMPLETION_MARKER_FILE);
|
|
148
187
|
}
|
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.1.
|
|
9
|
+
let _version = '1.1.2';
|
|
10
10
|
try {
|
|
11
11
|
const pkg = JSON.parse(readFileSync(join(import.meta.dir, '..', 'package.json'), 'utf-8')) as {
|
|
12
12
|
readonly version?: unknown;
|