@pellux/goodvibes-agent 0.1.35 → 0.1.36
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 +4 -0
- package/README.md +2 -0
- package/docs/README.md +1 -1
- package/docs/getting-started.md +2 -0
- package/docs/operator-capability-benchmark.md +2 -2
- package/package.json +1 -1
- package/src/agent/runtime-profile.ts +4 -0
- package/src/input/agent-workspace.ts +16 -3
- package/src/input/commands/agent-runtime-profile-runtime.ts +223 -0
- package/src/input/commands.ts +2 -0
- package/src/operator/capability-benchmark.ts +5 -5
- package/src/renderer/agent-workspace.ts +2 -1
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -46,6 +46,8 @@ Inside the Agent TUI, use `/agent`, `/home`, or `/operator` to open the operator
|
|
|
46
46
|
|
|
47
47
|
Use `goodvibes-agent capabilities` or `/capabilities` to inspect the OpenClaw/Hermes benchmark, current Agent posture, configuration commands, usage paths, and remaining gaps.
|
|
48
48
|
|
|
49
|
+
Inside the workspace, use `/agent-profile guide` to author custom profile starters without leaving the Agent TUI. The guided flow lists starters, exports starter JSON, imports edited local starters, and creates isolated runtime profiles from them.
|
|
50
|
+
|
|
49
51
|
Use isolated Agent runtime profiles when one machine needs separate operator identities or local state:
|
|
50
52
|
|
|
51
53
|
```sh
|
package/docs/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Important baseline constraints:
|
|
|
21
21
|
- Agent Knowledge/Wiki uses only `/api/goodvibes-agent/knowledge/*`; there is no default Knowledge/Wiki, HomeGraph, or Home Assistant fallback.
|
|
22
22
|
- Agent exposes `goodvibes-agent capabilities` and `/capabilities` to compare OpenClaw/Hermes capability targets against current Agent readiness and configuration paths.
|
|
23
23
|
- Agent supports isolated runtime homes with `GOODVIBES_AGENT_HOME=<path>` and named profile homes with `goodvibes-agent profiles create <name> --template <starter> --yes` plus `--agent-profile <name>`.
|
|
24
|
-
- Agent ships starter profile templates for household, research, travel, operations, and personal productivity local state; `profiles templates export/import`
|
|
24
|
+
- Agent ships starter profile templates for household, research, travel, operations, and personal productivity local state; `profiles templates export/import` and `/agent-profile guide` support local custom starters.
|
|
25
25
|
- Local personas, routines, and Agent skills are stored under the Agent surface root and are injected only into the serial Agent conversation.
|
|
26
26
|
- Normal assistant chat is not coding-session delegation.
|
|
27
27
|
- Build/fix/review delegation to GoodVibes TUI must be explicit; WRFC is not the default Agent behavior.
|
package/docs/getting-started.md
CHANGED
|
@@ -37,6 +37,8 @@ bun run dev
|
|
|
37
37
|
|
|
38
38
|
Once the TUI opens, run `/agent`, `/home`, or `/operator` to open the Agent operator workspace. That fullscreen workspace is the current front door for setup/config, knowledge status, local memory and skills, read-only work/approval/automation views, and explicit GoodVibes TUI build delegation.
|
|
39
39
|
|
|
40
|
+
Use `/agent-profile guide` inside that workspace to walk through starter-profile authoring. It lists built-in and local starters, exports a JSON starter for editing, imports the edited starter back into this Agent home, and creates isolated profiles from the result.
|
|
41
|
+
|
|
40
42
|
## Isolated Agent Profiles
|
|
41
43
|
|
|
42
44
|
Use a separate Agent home when you want isolated local state:
|
|
@@ -57,7 +57,7 @@ Primary sources used for the benchmark:
|
|
|
57
57
|
| Tools/MCP | Broad toolsets, MCP, browser, media, terminal, files | GoodVibes SDK tools with Agent policy guards and MCP/provider integrations |
|
|
58
58
|
| Voice/media/canvas/nodes | Voice, TTS, mobile nodes, live canvas, browser automation | GoodVibes media/voice/browser/node primitives with an Agent workspace for setup, image input, browser posture, MCP, and remote/node inspection |
|
|
59
59
|
| Build/code work | Direct terminal/file/code tools and subagents | Explicit delegation to GoodVibes TUI; local WRFC/spawn fanout blocked |
|
|
60
|
-
| Profiles | Independent profiles with own config/memory/skills/gateway | `GOODVIBES_AGENT_HOME` and named `--agent-profile` homes isolate Agent-local state; starter templates seed local personas/skills/routines; starter JSON can be exported/imported for local custom lanes;
|
|
60
|
+
| Profiles | Independent profiles with own config/memory/skills/gateway | `GOODVIBES_AGENT_HOME` and named `--agent-profile` homes isolate Agent-local state; starter templates seed local personas/skills/routines; starter JSON can be exported/imported for local custom lanes; `/agent-profile guide` brings starter authoring into the Agent workspace; daemon remains external |
|
|
61
61
|
| Security | DM pairing, approvals, sandboxing, allowlists | Daemon approvals, auth diagnostics, secret refs, confirmation gates, model-tool policy |
|
|
62
62
|
|
|
63
63
|
## Exceed Targets
|
|
@@ -75,7 +75,7 @@ GoodVibes Agent should exceed OpenClaw/Hermes by making these properties true fr
|
|
|
75
75
|
|
|
76
76
|
- Live daemon account health and last delivery errors in the Channels workspace once a stable read-only route is available.
|
|
77
77
|
- Artifact and multimodal Agent Knowledge ingest affordances once Agent-specific routes are stable.
|
|
78
|
-
-
|
|
78
|
+
- Visual starter-template editing inside the fullscreen Agent workspace after the command-guided authoring path.
|
|
79
79
|
- Artifact and multimodal Agent Knowledge ingestion when the isolated Agent route accepts artifact-backed media.
|
|
80
80
|
- Delegation receipts and artifact review inside the operator workspace.
|
|
81
81
|
- Approval center with route risk labels and saved policy presets.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pellux/goodvibes-agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Near-fork GoodVibes operator assistant with the GoodVibes TUI shell, renderer, input, fullscreen workspace, and daemon-connected Agent product brain.",
|
|
6
6
|
"type": "module",
|
|
@@ -615,6 +615,10 @@ export function getAgentRuntimeProfileTemplate(templateId: AgentRuntimeProfileTe
|
|
|
615
615
|
return summarizeTemplate(resolveAgentRuntimeProfileTemplate(templateId, baseHomeDirectory));
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
+
export function getAgentRuntimeProfileTemplateFile(templateId: AgentRuntimeProfileTemplateId, baseHomeDirectory?: string): AgentRuntimeProfileStarterTemplateFile {
|
|
619
|
+
return templateFilePayload(resolveAgentRuntimeProfileTemplate(templateId, baseHomeDirectory));
|
|
620
|
+
}
|
|
621
|
+
|
|
618
622
|
function templateFilePayload(template: AgentRuntimeProfileStarterTemplate): AgentRuntimeProfileStarterTemplateFile {
|
|
619
623
|
return {
|
|
620
624
|
version: 1,
|
|
@@ -4,7 +4,7 @@ import type { CommandContext } from './command-registry.ts';
|
|
|
4
4
|
import { AgentPersonaRegistry } from '../agent/persona-registry.ts';
|
|
5
5
|
import { AgentRoutineRegistry } from '../agent/routine-registry.ts';
|
|
6
6
|
import { AgentSkillRegistry } from '../agent/skill-registry.ts';
|
|
7
|
-
import { getAgentRuntimeProfilesRoot, listAgentRuntimeProfiles } from '../agent/runtime-profile.ts';
|
|
7
|
+
import { getAgentRuntimeProfilesRoot, listAgentRuntimeProfiles, listAgentRuntimeProfileTemplates } from '../agent/runtime-profile.ts';
|
|
8
8
|
|
|
9
9
|
export const AGENT_WORKSPACE_MODAL_NAME = 'agentWorkspace';
|
|
10
10
|
|
|
@@ -97,6 +97,8 @@ export interface AgentWorkspaceRuntimeSnapshot {
|
|
|
97
97
|
readonly activeRuntimeProfile: string;
|
|
98
98
|
readonly runtimeProfileCount: number;
|
|
99
99
|
readonly runtimeProfileRoot: string;
|
|
100
|
+
readonly runtimeStarterTemplateCount: number;
|
|
101
|
+
readonly localStarterTemplateCount: number;
|
|
100
102
|
readonly configProfileCount: number;
|
|
101
103
|
readonly warnings: readonly string[];
|
|
102
104
|
}
|
|
@@ -378,6 +380,13 @@ export function buildAgentWorkspaceRuntimeSnapshot(context: CommandContext): Age
|
|
|
378
380
|
return 0;
|
|
379
381
|
}
|
|
380
382
|
})();
|
|
383
|
+
const runtimeStarterTemplates = (() => {
|
|
384
|
+
try {
|
|
385
|
+
return listAgentRuntimeProfileTemplates(context.workspace?.shellPaths?.homeDirectory ?? '');
|
|
386
|
+
} catch {
|
|
387
|
+
return [];
|
|
388
|
+
}
|
|
389
|
+
})();
|
|
381
390
|
const voiceProviders = (() => {
|
|
382
391
|
try {
|
|
383
392
|
return context.platform?.voiceProviderRegistry?.list?.() ?? [];
|
|
@@ -437,6 +446,8 @@ export function buildAgentWorkspaceRuntimeSnapshot(context: CommandContext): Age
|
|
|
437
446
|
activeRuntimeProfile: inferActiveRuntimeProfile(context.workspace?.shellPaths?.homeDirectory ?? ''),
|
|
438
447
|
runtimeProfileCount: runtimeProfiles.length,
|
|
439
448
|
runtimeProfileRoot: getAgentRuntimeProfilesRoot(context.workspace?.shellPaths?.homeDirectory ?? ''),
|
|
449
|
+
runtimeStarterTemplateCount: runtimeStarterTemplates.length,
|
|
450
|
+
localStarterTemplateCount: runtimeStarterTemplates.filter((template) => template.source === 'local').length,
|
|
440
451
|
configProfileCount,
|
|
441
452
|
warnings,
|
|
442
453
|
};
|
|
@@ -522,11 +533,13 @@ export const AGENT_WORKSPACE_CATEGORIES: readonly AgentWorkspaceCategory[] = [
|
|
|
522
533
|
detail: 'Hermes profiles isolate agent state. GoodVibes Agent exposes named runtime homes, config profile pickers, profile-sync bundles, setup transfer bundles, and support bundles while keeping the daemon external.',
|
|
523
534
|
actions: [
|
|
524
535
|
{ id: 'profiles-open', label: 'Open config profiles', detail: 'Open the TUI-derived config profile picker for display/provider/behavior profile files.', command: '/profiles', kind: 'command', safety: 'safe' },
|
|
536
|
+
{ id: 'runtime-profile-guide', label: 'Starter authoring guide', detail: 'Open the Agent-local starter authoring flow inside the TUI command surface.', command: '/agent-profile guide', kind: 'command', safety: 'safe' },
|
|
537
|
+
{ id: 'runtime-profile-templates', label: 'Browse starter templates', detail: 'List built-in and local Agent starter templates with persona, skill, routine, and source details.', command: '/agent-profile templates', kind: 'command', safety: 'read-only' },
|
|
525
538
|
{ id: 'profile-sync-list', label: 'Profile sync list', detail: 'Inspect saved config profiles available for export/import.', command: '/profilesync list', kind: 'command', safety: 'read-only' },
|
|
526
539
|
{ id: 'profile-sync-export', label: 'Export profile sync', detail: 'Export config profiles to a portable bundle. Requires a real path and explicit --yes.', command: '/profilesync export <path> --yes', kind: 'command', safety: 'safe' },
|
|
527
540
|
{ id: 'setup-transfer-export', label: 'Export setup transfer', detail: 'Export Agent setup transfer data from the current home. Requires a real path and explicit --yes.', command: '/setup transfer export <path> --yes', kind: 'command', safety: 'safe' },
|
|
528
|
-
{ id: 'runtime-profile-create', label: 'Create runtime profile', detail: '
|
|
529
|
-
{ id: 'runtime-profile-template-edit', label: 'Customize starter', detail: '
|
|
541
|
+
{ id: 'runtime-profile-create', label: 'Create runtime profile', detail: 'Create an isolated Agent runtime profile from a built-in or local starter. Requires a real name and explicit --yes.', command: '/agent-profile create <name> --template <id> --yes', kind: 'command', safety: 'safe' },
|
|
542
|
+
{ id: 'runtime-profile-template-edit', label: 'Customize starter', detail: 'Export a starter JSON file, edit it, import it as a local starter, then create a profile from it.', command: '/agent-profile template export <id> <path> --yes', kind: 'command', safety: 'safe' },
|
|
530
543
|
{ id: 'runtime-profile-switch', label: 'Switch runtime profile', detail: 'Launch goodvibes-agent --agent-profile <name> to use that isolated Agent home. This workspace cannot switch the current process home after startup.', kind: 'guidance', safety: 'safe' },
|
|
531
544
|
],
|
|
532
545
|
},
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { mkdirSync } from 'node:fs';
|
|
2
|
+
import { dirname } from 'node:path';
|
|
3
|
+
import {
|
|
4
|
+
createAgentRuntimeProfile,
|
|
5
|
+
deleteAgentRuntimeProfile,
|
|
6
|
+
exportAgentRuntimeProfileTemplate,
|
|
7
|
+
getAgentRuntimeProfileTemplateFile,
|
|
8
|
+
importAgentRuntimeProfileTemplate,
|
|
9
|
+
listAgentRuntimeProfiles,
|
|
10
|
+
listAgentRuntimeProfileTemplates,
|
|
11
|
+
type AgentRuntimeProfileInfo,
|
|
12
|
+
type AgentRuntimeProfileTemplateSummary,
|
|
13
|
+
} from '../../agent/runtime-profile.ts';
|
|
14
|
+
import type { CommandContext, CommandRegistry } from '../command-registry.ts';
|
|
15
|
+
import { requireYesFlag, stripYesFlag } from './confirmation.ts';
|
|
16
|
+
import { requireShellPaths } from './runtime-services.ts';
|
|
17
|
+
|
|
18
|
+
function parseFlag(args: readonly string[], name: string): string | undefined {
|
|
19
|
+
const index = args.indexOf(name);
|
|
20
|
+
if (index < 0) return undefined;
|
|
21
|
+
const value = args[index + 1];
|
|
22
|
+
return value && !value.startsWith('--') ? value : undefined;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function profileLine(profile: AgentRuntimeProfileInfo): string {
|
|
26
|
+
const created = profile.createdAt ? ` created=${profile.createdAt}` : '';
|
|
27
|
+
const starter = profile.starterTemplateId ? ` starter=${profile.starterTemplateId}` : '';
|
|
28
|
+
return ` ${profile.id} home=${profile.homeDirectory}${created}${starter}`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function templateLine(template: AgentRuntimeProfileTemplateSummary): string {
|
|
32
|
+
const source = template.source === 'local' ? `local ${template.path ?? ''}`.trim() : 'builtin';
|
|
33
|
+
return [
|
|
34
|
+
` ${template.id} [${source}]`,
|
|
35
|
+
` ${template.name}: ${template.description}`,
|
|
36
|
+
` persona: ${template.personaName}`,
|
|
37
|
+
` skills: ${template.skillNames.join(', ')}`,
|
|
38
|
+
` routines: ${template.routineNames.join(', ')}`,
|
|
39
|
+
].join('\n');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function renderProfiles(homeDirectory: string): string {
|
|
43
|
+
const profiles = listAgentRuntimeProfiles(homeDirectory);
|
|
44
|
+
if (profiles.length === 0) {
|
|
45
|
+
return [
|
|
46
|
+
'Agent Runtime Profiles',
|
|
47
|
+
' No isolated Agent runtime profiles yet.',
|
|
48
|
+
' Create one with /agent-profile create <name> --template <id> --yes.',
|
|
49
|
+
].join('\n');
|
|
50
|
+
}
|
|
51
|
+
return ['Agent Runtime Profiles', ...profiles.map(profileLine)].join('\n');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function renderTemplates(homeDirectory: string): string {
|
|
55
|
+
const templates = listAgentRuntimeProfileTemplates(homeDirectory);
|
|
56
|
+
return [
|
|
57
|
+
`Agent Starter Templates (${templates.length})`,
|
|
58
|
+
...templates.map(templateLine),
|
|
59
|
+
'',
|
|
60
|
+
'Authoring flow:',
|
|
61
|
+
' /agent-profile template export research ./agent-starter.json --yes',
|
|
62
|
+
' edit the JSON file',
|
|
63
|
+
' /agent-profile template import ./agent-starter.json --yes',
|
|
64
|
+
' /agent-profile create <name> --template <imported-id> --yes',
|
|
65
|
+
].join('\n');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function renderGuide(homeDirectory: string): string {
|
|
69
|
+
const templates = listAgentRuntimeProfileTemplates(homeDirectory);
|
|
70
|
+
const localCount = templates.filter((template) => template.source === 'local').length;
|
|
71
|
+
return [
|
|
72
|
+
'Agent Starter Authoring Guide',
|
|
73
|
+
` built-in starters: ${templates.length - localCount}`,
|
|
74
|
+
` local starters: ${localCount}`,
|
|
75
|
+
'',
|
|
76
|
+
'1. Pick a base starter:',
|
|
77
|
+
' /agent-profile templates',
|
|
78
|
+
'2. Export a starter JSON file:',
|
|
79
|
+
' /agent-profile template export research ./agent-starter.json --yes',
|
|
80
|
+
'3. Edit id, name, description, persona, skills, and routines in that JSON file.',
|
|
81
|
+
'4. Import it into this Agent home:',
|
|
82
|
+
' /agent-profile template import ./agent-starter.json --yes',
|
|
83
|
+
'5. Create a runtime profile from the imported starter:',
|
|
84
|
+
' /agent-profile create <name> --template <imported-id> --yes',
|
|
85
|
+
'',
|
|
86
|
+
'This writes only Agent-local starter/profile state. It does not mutate the daemon, default wiki, or HomeGraph.',
|
|
87
|
+
].join('\n');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function renderTemplatePreview(homeDirectory: string, templateId: string): string {
|
|
91
|
+
const file = getAgentRuntimeProfileTemplateFile(templateId, homeDirectory);
|
|
92
|
+
return [
|
|
93
|
+
`Agent Starter Template: ${file.template.id}`,
|
|
94
|
+
` name: ${file.template.name}`,
|
|
95
|
+
` source: ${file.template.source}`,
|
|
96
|
+
` description: ${file.template.description}`,
|
|
97
|
+
` persona: ${file.template.persona.name}`,
|
|
98
|
+
` skills: ${file.template.skills.map((skill) => skill.name).join(', ')}`,
|
|
99
|
+
` routines: ${file.template.routines.map((routine) => routine.name).join(', ')}`,
|
|
100
|
+
'',
|
|
101
|
+
'Export/edit/import to customize this starter:',
|
|
102
|
+
` /agent-profile template export ${file.template.id} ./agent-starter.json --yes`,
|
|
103
|
+
].join('\n');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function registerAgentRuntimeProfileRuntimeCommands(registry: CommandRegistry): void {
|
|
107
|
+
registry.register({
|
|
108
|
+
name: 'agent-profile',
|
|
109
|
+
aliases: ['runtime-profile', 'agent-profiles'],
|
|
110
|
+
description: 'Manage isolated Agent runtime profiles and starter templates',
|
|
111
|
+
usage: '[list|templates|guide|template show|template export|template import|create|delete]',
|
|
112
|
+
handler(args, ctx) {
|
|
113
|
+
const shellPaths = requireShellPaths(ctx);
|
|
114
|
+
const homeDirectory = shellPaths.homeDirectory;
|
|
115
|
+
const parsed = stripYesFlag(args);
|
|
116
|
+
const commandArgs = [...parsed.rest];
|
|
117
|
+
const sub = (commandArgs[0] ?? 'list').toLowerCase();
|
|
118
|
+
|
|
119
|
+
try {
|
|
120
|
+
if (sub === 'list' || sub === 'profiles') {
|
|
121
|
+
ctx.print(renderProfiles(homeDirectory));
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (sub === 'templates' || sub === 'starters') {
|
|
126
|
+
ctx.print(renderTemplates(homeDirectory));
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (sub === 'guide' || sub === 'author') {
|
|
131
|
+
ctx.print(renderGuide(homeDirectory));
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (sub === 'template' || sub === 'starter') {
|
|
136
|
+
const mode = (commandArgs[1] ?? 'show').toLowerCase();
|
|
137
|
+
if (mode === 'show' || mode === 'preview') {
|
|
138
|
+
const templateId = commandArgs[2];
|
|
139
|
+
if (!templateId) {
|
|
140
|
+
ctx.print('Usage: /agent-profile template show <id>');
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
ctx.print(renderTemplatePreview(homeDirectory, templateId));
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (mode === 'export') {
|
|
147
|
+
const templateId = commandArgs[2];
|
|
148
|
+
const pathArg = commandArgs[3];
|
|
149
|
+
if (!templateId || !pathArg) {
|
|
150
|
+
ctx.print('Usage: /agent-profile template export <id> <path> --yes');
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (!parsed.yes) {
|
|
154
|
+
requireYesFlag(ctx, `export Agent starter template ${templateId}`, '/agent-profile template export <id> <path> --yes');
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const targetPath = shellPaths.resolveWorkspacePath(pathArg);
|
|
158
|
+
mkdirSync(dirname(targetPath), { recursive: true });
|
|
159
|
+
const template = exportAgentRuntimeProfileTemplate(homeDirectory, templateId, targetPath);
|
|
160
|
+
ctx.print(`Agent starter template exported: ${template.id}\n path: ${template.path ?? targetPath}\n edit it, then import it with /agent-profile template import <path> --yes`);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (mode === 'import') {
|
|
164
|
+
const pathArg = commandArgs[2];
|
|
165
|
+
if (!pathArg) {
|
|
166
|
+
ctx.print('Usage: /agent-profile template import <path> --yes');
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (!parsed.yes) {
|
|
170
|
+
requireYesFlag(ctx, 'import Agent starter template', '/agent-profile template import <path> --yes');
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
const sourcePath = shellPaths.resolveWorkspacePath(pathArg);
|
|
174
|
+
const template = importAgentRuntimeProfileTemplate(homeDirectory, sourcePath);
|
|
175
|
+
ctx.print(`Agent starter template imported: ${template.id}\n source: ${template.source}\n use: /agent-profile create <name> --template ${template.id} --yes`);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
ctx.print('Usage: /agent-profile template [show <id>|export <id> <path> --yes|import <path> --yes]');
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (sub === 'create') {
|
|
183
|
+
const name = commandArgs[1];
|
|
184
|
+
const templateId = parseFlag(commandArgs, '--template') ?? parseFlag(commandArgs, '--starter');
|
|
185
|
+
if (!name) {
|
|
186
|
+
ctx.print('Usage: /agent-profile create <name> [--template <id>] --yes');
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
if (!parsed.yes) {
|
|
190
|
+
requireYesFlag(ctx, `create Agent runtime profile ${name}`, '/agent-profile create <name> [--template <id>] --yes');
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
const profile = createAgentRuntimeProfile(homeDirectory, name, { templateId });
|
|
194
|
+
ctx.print([
|
|
195
|
+
`Agent runtime profile created: ${profile.id}`,
|
|
196
|
+
` home: ${profile.homeDirectory}`,
|
|
197
|
+
profile.starterTemplateId ? ` starter: ${profile.starterTemplateId}` : '',
|
|
198
|
+
` launch: goodvibes-agent --agent-profile ${profile.id}`,
|
|
199
|
+
].filter(Boolean).join('\n'));
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (sub === 'delete') {
|
|
204
|
+
const name = commandArgs[1];
|
|
205
|
+
if (!name) {
|
|
206
|
+
ctx.print('Usage: /agent-profile delete <name> --yes');
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
if (!parsed.yes) {
|
|
210
|
+
requireYesFlag(ctx, `delete Agent runtime profile ${name}`, '/agent-profile delete <name> --yes');
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
ctx.print(deleteAgentRuntimeProfile(homeDirectory, name) ? `Agent runtime profile deleted: ${name}` : `Agent runtime profile not found: ${name}`);
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
ctx.print('Usage: /agent-profile [list|templates|guide|template show <id>|template export <id> <path> --yes|template import <path> --yes|create <name> [--template <id>] --yes|delete <name> --yes]');
|
|
218
|
+
} catch (error) {
|
|
219
|
+
ctx.print(`Error: ${error instanceof Error ? error.message : String(error)}`);
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
});
|
|
223
|
+
}
|
package/src/input/commands.ts
CHANGED
|
@@ -53,6 +53,7 @@ import { registerTtsRuntimeCommands } from './commands/tts-runtime.ts';
|
|
|
53
53
|
import { registerCloudflareRuntimeCommands } from './commands/cloudflare-runtime.ts';
|
|
54
54
|
import { registerWorkPlanRuntimeCommands } from './commands/work-plan-runtime.ts';
|
|
55
55
|
import { registerAgentWorkspaceRuntimeCommands } from './commands/agent-workspace-runtime.ts';
|
|
56
|
+
import { registerAgentRuntimeProfileRuntimeCommands } from './commands/agent-runtime-profile-runtime.ts';
|
|
56
57
|
import { registerAgentExternalizedTuiCommands } from './commands/agent-externalized-tui.ts';
|
|
57
58
|
import { registerDelegationRuntimeCommands } from './commands/delegation-runtime.ts';
|
|
58
59
|
import { registerPersonasRuntimeCommands } from './commands/personas-runtime.ts';
|
|
@@ -67,6 +68,7 @@ import { registerCapabilitiesRuntimeCommands } from './commands/capabilities-run
|
|
|
67
68
|
export function registerBuiltinCommands(registry: CommandRegistry): void {
|
|
68
69
|
registerShellCoreCommands(registry);
|
|
69
70
|
registerAgentWorkspaceRuntimeCommands(registry);
|
|
71
|
+
registerAgentRuntimeProfileRuntimeCommands(registry);
|
|
70
72
|
registerCapabilitiesRuntimeCommands(registry);
|
|
71
73
|
registerPersonasRuntimeCommands(registry);
|
|
72
74
|
registerAgentSkillsRuntimeCommands(registry);
|
|
@@ -160,11 +160,11 @@ export const OPERATOR_CAPABILITY_BENCHMARKS: readonly OperatorCapabilityBenchmar
|
|
|
160
160
|
posture: 'ready',
|
|
161
161
|
competitors: ['hermes'],
|
|
162
162
|
competitorBaseline: 'Profiles run independent agents with isolated configs, sessions, skills, memory, cron jobs, and gateway state.',
|
|
163
|
-
goodvibesAgent: 'Supports GOODVIBES_AGENT_HOME and named --agent-profile homes for isolated Agent-local config, sessions, memory, personas, skills, routines, setup, and bundles; daemon remains shared/external by design. The Agent workspace exposes runtime profile posture, config profiles, profile sync, setup transfer shortcuts, starter profile templates, and local starter
|
|
164
|
-
configure: ['GOODVIBES_AGENT_HOME=<path> goodvibes-agent status', 'goodvibes-agent profiles create household --template household --yes', 'goodvibes-agent profiles templates export research ./starter.json --yes', '/agent → Profiles & Portability'],
|
|
165
|
-
use: ['goodvibes-agent --agent-profile household', '/profiles', '/profilesync list', '/setup transfer export <path> --yes'],
|
|
166
|
-
exceedsBy: ['Typed support bundles', 'explicit daemon boundary', 'no accidental cross-product knowledge fallback', 'profile isolation without hidden daemon lifecycle ownership', 'fullscreen profile and portability workflow discovery', 'curated local starter packs', 'editable starter templates'],
|
|
167
|
-
next: ['Add
|
|
163
|
+
goodvibesAgent: 'Supports GOODVIBES_AGENT_HOME and named --agent-profile homes for isolated Agent-local config, sessions, memory, personas, skills, routines, setup, and bundles; daemon remains shared/external by design. The Agent workspace exposes runtime profile posture, config profiles, profile sync, setup transfer shortcuts, starter profile templates, and local starter authoring.',
|
|
164
|
+
configure: ['GOODVIBES_AGENT_HOME=<path> goodvibes-agent status', 'goodvibes-agent profiles create household --template household --yes', 'goodvibes-agent profiles templates export research ./starter.json --yes', '/agent-profile guide', '/agent → Profiles & Portability'],
|
|
165
|
+
use: ['goodvibes-agent --agent-profile household', '/agent-profile templates', '/profiles', '/profilesync list', '/setup transfer export <path> --yes'],
|
|
166
|
+
exceedsBy: ['Typed support bundles', 'explicit daemon boundary', 'no accidental cross-product knowledge fallback', 'profile isolation without hidden daemon lifecycle ownership', 'fullscreen profile and portability workflow discovery', 'curated local starter packs', 'editable starter templates', 'TUI-guided starter authoring'],
|
|
167
|
+
next: ['Add visual starter-template editing inside the fullscreen Agent workspace.'],
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
id: 'security-approvals',
|
|
@@ -132,9 +132,10 @@ function snapshotLines(category: AgentWorkspaceCategory, snapshot: AgentWorkspac
|
|
|
132
132
|
{ text: `Active runtime profile: ${snapshot.activeRuntimeProfile}`, fg: PALETTE.info },
|
|
133
133
|
{ text: `Runtime profiles under this home: ${snapshot.runtimeProfileCount}`, fg: PALETTE.info },
|
|
134
134
|
{ text: `Runtime profile root: ${snapshot.runtimeProfileRoot}`, fg: PALETTE.muted },
|
|
135
|
+
{ text: `Starter templates: ${snapshot.runtimeStarterTemplateCount}; local custom: ${snapshot.localStarterTemplateCount}`, fg: PALETTE.info },
|
|
135
136
|
{ text: `Config profiles: ${snapshot.configProfileCount}`, fg: PALETTE.info },
|
|
136
137
|
{ text: 'Named runtime profiles isolate Agent-local config, sessions, memory, personas, skills, routines, setup, and bundles.', fg: PALETTE.good },
|
|
137
|
-
{ text: 'Starter
|
|
138
|
+
{ text: 'Starter authoring: browse, export, edit, import, and create Agent profiles from inside this workspace via /agent-profile.', fg: PALETTE.info },
|
|
138
139
|
{ text: 'The external daemon remains shared unless the daemon host is configured separately.', fg: PALETTE.warn },
|
|
139
140
|
{ text: 'Portable bundles require explicit export/import commands with real paths and --yes.', fg: PALETTE.muted },
|
|
140
141
|
);
|
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 = '0.1.
|
|
9
|
+
let _version = '0.1.36';
|
|
10
10
|
let _sdkVersion = '0.33.35';
|
|
11
11
|
try {
|
|
12
12
|
const pkg = JSON.parse(readFileSync(join(import.meta.dir, '..', 'package.json'), 'utf-8')) as {
|