@pellux/goodvibes-agent 1.0.5 → 1.0.6

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.
@@ -56,6 +56,8 @@ Agent does not own connected-host lifecycle. It does not provide commands to ins
56
56
 
57
57
  The model can inspect this boundary with `agent_harness` mode `connected_host`. That report includes the configured base URL, token presence, token path, allowed route families, first-class Agent tool capabilities, tool availability, and blocked capabilities. Allowed capabilities are limited to read-only operator briefing, explicit allowlisted approval/automation/schedule actions, isolated Agent Knowledge read/ingest, confirmed channel or notification delivery, confirmed reminder schedules, and configured media generation. Blocked capabilities include connected-host lifecycle, listener mutation, default or non-Agent knowledge fallback, hidden background Agent jobs, implicit delegated review, route/account creation, and arbitrary connected-host mutations.
58
58
 
59
+ The model can inspect live connected-host readiness with `agent_harness` mode `connected_host_status`. That report uses the same read-only status probe as the CLI: it checks the connected-host status route, verifies the SDK version pin, checks the isolated Agent Knowledge status route when token and version posture allow it, reports endpoint bindings and token posture without printing token values, and returns actionable findings. It is diagnostic only and does not expose host start, stop, restart, install, listener, or account-management operations.
60
+
59
61
  Agent Knowledge is its own product segment. Agent uses `/api/goodvibes-agent/knowledge/*` only and must not fall back to default knowledge or other product-specific knowledge routes.
60
62
 
61
63
  Normal assistant chat uses companion chat. Build/fix/review work is delegated explicitly to GoodVibes TUI through public runtime/session contracts, and delegated review is requested only when explicitly asked for build/fix/review work.
@@ -44,7 +44,7 @@ After setup has been applied once, the TUI opens directly into the Agent operato
44
44
 
45
45
  Press `/` inside the Agent workspace to search every workspace action by name, category, command, or detail. Use that finder before reaching for shell commands; CLI subcommands are scriptable mirrors of these TUI workflows.
46
46
 
47
- The model can inspect and use the same harness surface through Agent-owned tools. `agent_harness` exposes workspace action discovery, built-in panel discovery/routing, modal/overlay/picker UI surface discovery/routing, top-level CLI mirror discovery, fixed shortcut and configurable keybinding discovery, keybinding mutation with confirmation, slash-command discovery, command policy metadata, command execution with confirmation, model tool discovery, settings inspection/mutation, and connected-host posture. CLI mirror modes are read-only catalog/parser inspection and point the model to the matching in-process tool, workspace action, setting mode, or slash-command mirror. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, context, bookmarks, model/provider pickers, session/profile pickers, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose the fixed runtime/editor shortcuts and the live keybindings table; confirmed keybinding edits write the same `keybindings.json` file the user edits and reload the runtime manager. Workspace action discovery can include editor field schemas with `includeParameters:true`, including starter-template defaults for profile creation and selected-routine defaults for routine schedule promotion when `recordId` is supplied. Selection-based local workspace actions accept a local `recordId`, so the model can use the same note promotion and local registry flows as the TUI. First-class model tools cover the main product workflows directly: Agent Knowledge, Agent Knowledge ingest, Agent-local memory/notes/personas/skills/routines, operator actions, notifications, channel sends, reminders, generated media, and work plans.
47
+ The model can inspect and use the same harness surface through Agent-owned tools. `agent_harness` exposes workspace action discovery, built-in panel discovery/routing, modal/overlay/picker UI surface discovery/routing, top-level CLI mirror discovery, fixed shortcut and configurable keybinding discovery, keybinding mutation with confirmation, slash-command discovery, command policy metadata, command execution with confirmation, model tool discovery, settings inspection/mutation, connected-host capability inventory, and live connected-host readiness posture. CLI mirror modes are read-only catalog/parser inspection and point the model to the matching in-process tool, workspace action, setting mode, or slash-command mirror. Panel modes expose catalog/open state and route visible panel/workspace changes through the current Agent shell bridge with confirmation. UI surface modes expose help, shortcuts, context, bookmarks, model/provider pickers, session/profile pickers, settings, MCP workspace, onboarding, and Agent workspace entrypoints; `open_ui_surface` is confirmation-gated and only performs visible shell navigation. Shortcut modes expose the fixed runtime/editor shortcuts and the live keybindings table; confirmed keybinding edits write the same `keybindings.json` file the user edits and reload the runtime manager. Workspace action discovery can include editor field schemas with `includeParameters:true`, including starter-template defaults for profile creation and selected-routine defaults for routine schedule promotion when `recordId` is supplied. Selection-based local workspace actions accept a local `recordId`, so the model can use the same note promotion and local registry flows as the TUI. First-class model tools cover the main product workflows directly: Agent Knowledge, Agent Knowledge ingest, Agent-local memory/notes/personas/skills/routines, operator actions, notifications, channel sends, reminders, generated media, and work plans.
48
48
 
49
49
  Use the Artifacts area for concrete files and generated output: attach images to prompts, export conversations or saved sessions, ingest local source files and URL lists into Agent Knowledge, import bookmarks or browser history, inspect source records, and generate media artifacts from confirmed prompts.
50
50
 
@@ -138,7 +138,7 @@ If the GoodVibes API is not on `http://127.0.0.1:3421`, pass `--runtime-url http
138
138
 
139
139
  Agent Knowledge is an Agent-owned product segment. Agent commands must not fall back to default knowledge or other product-specific knowledge spaces.
140
140
 
141
- Host lifecycle commands are not part of GoodVibes Agent. Use Agent Workspace -> Home -> Host compatibility, Doctor diagnostics, and Review health for diagnostics. CLI status/doctor/compat commands are scriptable mirrors for install checks. The model-visible `connected_host` harness report lists usable Agent route families, first-class tool capabilities, and blocked lifecycle/non-Agent surfaces without exposing host start/stop/restart/install operations.
141
+ Host lifecycle commands are not part of GoodVibes Agent. Use Agent Workspace -> Home -> Host compatibility, Doctor diagnostics, and Review health for diagnostics. CLI status/doctor/compat commands are scriptable mirrors for install checks. The model-visible `connected_host` harness report lists usable Agent route families, first-class tool capabilities, and blocked lifecycle/non-Agent surfaces. The model-visible `connected_host_status` report performs the live read-only connected-host status and isolated Agent Knowledge readiness checks, reports SDK compatibility, token posture, endpoint bindings, route readiness, and actionable findings, and still does not expose host start/stop/restart/install operations.
142
142
 
143
143
  ## Current Product Notes
144
144
 
@@ -43,14 +43,14 @@ Host-management and coding-first commands that would imply connected-host lifecy
43
43
 
44
44
  The main Agent model has an Agent-owned harness bridge rather than generic SDK settings/context control. Use these model tools as the supported parity layer:
45
45
 
46
- - `agent_harness`: inspect workspace categories/actions, inspect built-in panels, inspect modal/overlay/picker UI surfaces, inspect top-level CLI mirrors, inspect fixed shortcuts and configurable keybindings, inspect slash commands and command policy metadata, run concrete workspace or slash-command mirrors with confirmation, inspect model tools, inspect or change Agent settings/keybindings, and inspect connected-host posture.
46
+ - `agent_harness`: inspect workspace categories/actions, inspect built-in panels, inspect modal/overlay/picker UI surfaces, inspect top-level CLI mirrors, inspect fixed shortcuts and configurable keybindings, inspect slash commands and command policy metadata, run concrete workspace or slash-command mirrors with confirmation, inspect model tools, inspect or change Agent settings/keybindings, inspect connected-host capability boundaries, and inspect live connected-host readiness.
47
47
  - `agent_local_registry`: inspect and maintain Agent-local memory, notes, personas, skills, skill bundles, and routines. Deleting local records requires `confirm:true` and `explicitUserRequest`.
48
48
  - `agent_knowledge` and `agent_knowledge_ingest`: ask/search and ingest into the isolated Agent Knowledge segment.
49
49
  - `agent_operator_briefing` and `agent_operator_action`: inspect connected work/approval/automation posture, or run exact confirmed approval/automation actions.
50
50
  - `agent_work_plan`: keep the visible Agent-local work plan current from the conversation.
51
51
  - `agent_channel_send`, `agent_notify`, `agent_reminder_schedule`, and `agent_media_generate`: perform confirmed external delivery, notification, reminder, or media actions when the user explicitly asks.
52
52
 
53
- `agent_harness` discovery modes are read-only. `summary` reports the model access map; `panels` and `panel` return the built-in panel catalog, current open/focused state, and each panel's matching Agent workspace route; `ui_surfaces` and `ui_surface` return modal, overlay, picker, and workspace entrypoints with shell-opener availability and preferred model routes; `cli_commands` and `cli_command` return top-level package CLI mirror metadata, parser output, blocked command tokens, and preferred in-process model routes; `shortcuts` returns fixed runtime/editor shortcuts plus configurable keybindings; `keybindings` and `keybinding` return the live resolved keybinding table, default bindings, custom state, and config path; `commands` and `command` return slash-command descriptions plus effect/confirmation/preferred-tool/boundary policy metadata; `workspace_actions` lists Agent workspace actions and can inline editor field schemas with `includeParameters:true`; `workspace_action` returns one action with its editor schema; `tools` can inline model tool JSON schemas with `includeParameters:true`; `settings` returns setting descriptors plus setting policy; and `connected_host` returns the connected-host route families, allowed capabilities, blocked capabilities, and first-class tool availability.
53
+ `agent_harness` discovery modes are read-only. `summary` reports the model access map; `panels` and `panel` return the built-in panel catalog, current open/focused state, and each panel's matching Agent workspace route; `ui_surfaces` and `ui_surface` return modal, overlay, picker, and workspace entrypoints with shell-opener availability and preferred model routes; `cli_commands` and `cli_command` return top-level package CLI mirror metadata, parser output, blocked command tokens, and preferred in-process model routes; `shortcuts` returns fixed runtime/editor shortcuts plus configurable keybindings; `keybindings` and `keybinding` return the live resolved keybinding table, default bindings, custom state, and config path; `commands` and `command` return slash-command descriptions plus effect/confirmation/preferred-tool/boundary policy metadata; `workspace_actions` lists Agent workspace actions and can inline editor field schemas with `includeParameters:true`; `workspace_action` returns one action with its editor schema; `tools` can inline model tool JSON schemas with `includeParameters:true`; `settings` returns setting descriptors plus setting policy; `connected_host` returns the connected-host route families, allowed capabilities, blocked capabilities, and first-class tool availability; and `connected_host_status` performs a live read-only check of the connected-host status and Agent Knowledge status routes and reports endpoint bindings, token posture, SDK compatibility, route readiness, and findings without printing token values.
54
54
 
55
55
  `open_ui_surface` is a confirmation-gated visible navigation mode for the same shell surfaces the user can open: Agent workspace, settings, MCP workspace, model/provider pickers, session/profile pickers, bookmarks, context inspector, help, shortcuts, and onboarding. It does not perform hidden operations; use first-class model tools, settings modes, workspace actions, or confirmed slash-command mirrors for actual state changes.
56
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-agent",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
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",
@@ -0,0 +1,146 @@
1
+ import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools';
2
+ import { resolveRuntimeEndpointBinding } from '../cli/endpoints.ts';
3
+ import { inspectCliExternalRuntime, type CliExternalRuntimeSnapshot } from '../cli/external-runtime.ts';
4
+ import type { CommandContext } from '../input/command-registry.ts';
5
+ import { connectedHostOperatorTokenFingerprint, readConnectedHostOperatorToken } from '../runtime/connected-host-auth.ts';
6
+ import {
7
+ blockedConnectedHostCapabilities,
8
+ connectedHostCapabilityMap,
9
+ connectedHostRouteFamilies,
10
+ } from './agent-harness-metadata.ts';
11
+
12
+ const CONNECTED_HOST_STATUS_TIMEOUT_MS = 1500;
13
+
14
+ function resolveHomeDirectory(context: CommandContext): string {
15
+ return context.workspace.shellPaths?.homeDirectory
16
+ ?? context.platform.configManager.getHomeDirectory()
17
+ ?? '';
18
+ }
19
+
20
+ function resolveWorkingDirectory(context: CommandContext): string {
21
+ return context.workspace.shellPaths?.workingDirectory
22
+ ?? context.platform.configManager.getWorkingDirectory()
23
+ ?? '';
24
+ }
25
+
26
+ function connectedHostFindings(
27
+ runtime: CliExternalRuntimeSnapshot,
28
+ tokenUsable: boolean,
29
+ ): readonly Record<string, unknown>[] {
30
+ const findings: Record<string, unknown>[] = [];
31
+
32
+ if (!runtime.reachable) {
33
+ findings.push({
34
+ id: 'connected-host-unreachable',
35
+ severity: 'warning',
36
+ summary: 'Connected host is not reachable.',
37
+ cause: runtime.error ?? `No response from ${runtime.baseUrl}.`,
38
+ action: 'Start or repair the owning GoodVibes host outside Agent, then recheck connected-host status.',
39
+ });
40
+ } else if (!runtime.compatible) {
41
+ findings.push({
42
+ id: 'connected-host-version-mismatch',
43
+ severity: 'warning',
44
+ summary: 'Connected host SDK version does not match Agent.',
45
+ cause: `Connected host reports SDK ${runtime.version}; Agent expects ${runtime.expectedVersion}.`,
46
+ action: 'Update the owning GoodVibes host so its /status route reports the Agent SDK pin.',
47
+ });
48
+ }
49
+
50
+ if (!tokenUsable) {
51
+ findings.push({
52
+ id: 'connected-host-token-missing',
53
+ severity: 'warning',
54
+ summary: 'Connected-host operator token is missing or unreadable.',
55
+ cause: `No usable operator token was found at ${runtime.operatorToken.path}.`,
56
+ action: 'Provision or repair connected-host access through the owning GoodVibes host.',
57
+ });
58
+ }
59
+
60
+ if (runtime.reachable && tokenUsable && !runtime.agentKnowledge.ready) {
61
+ findings.push({
62
+ id: 'agent-knowledge-route-not-ready',
63
+ severity: 'warning',
64
+ summary: 'Isolated Agent Knowledge route is not ready.',
65
+ cause: `${runtime.agentKnowledge.route} returned ${runtime.agentKnowledge.kind}${runtime.agentKnowledge.statusCode === null ? '' : ` (${runtime.agentKnowledge.statusCode})`}.`,
66
+ action: 'Update or repair the connected host, then recheck Agent Knowledge compatibility.',
67
+ });
68
+ }
69
+
70
+ return findings;
71
+ }
72
+
73
+ export async function connectedHostStatusSummary(
74
+ context: CommandContext,
75
+ toolRegistry: ToolRegistry,
76
+ ): Promise<Record<string, unknown>> {
77
+ const homeDirectory = resolveHomeDirectory(context);
78
+ const workingDirectory = resolveWorkingDirectory(context);
79
+ const token = readConnectedHostOperatorToken(homeDirectory);
80
+ const runtime = await inspectCliExternalRuntime({
81
+ configManager: context.platform.configManager,
82
+ homeDirectory,
83
+ timeoutMs: CONNECTED_HOST_STATUS_TIMEOUT_MS,
84
+ });
85
+ const tokenUsable = Boolean(token.token);
86
+
87
+ return {
88
+ ownership: 'external-connected-host',
89
+ readOnly: true,
90
+ timeoutMs: CONNECTED_HOST_STATUS_TIMEOUT_MS,
91
+ lifecycle: 'GoodVibes Agent can inspect connected-host readiness and use public operator routes, but does not start, stop, restart, install, expose, or mutate the host listener.',
92
+ paths: {
93
+ workingDirectory,
94
+ homeDirectory,
95
+ },
96
+ endpoints: {
97
+ controlPlane: {
98
+ enabled: context.platform.configManager.get('controlPlane.enabled'),
99
+ ...resolveRuntimeEndpointBinding(context.platform.configManager, 'controlPlane'),
100
+ },
101
+ httpListener: {
102
+ enabled: context.platform.configManager.get('danger.httpListener'),
103
+ ...resolveRuntimeEndpointBinding(context.platform.configManager, 'httpListener'),
104
+ },
105
+ web: {
106
+ enabled: context.platform.configManager.get('web.enabled'),
107
+ ...resolveRuntimeEndpointBinding(context.platform.configManager, 'web'),
108
+ },
109
+ },
110
+ operatorToken: {
111
+ present: token.present,
112
+ usable: tokenUsable,
113
+ path: token.path,
114
+ fingerprint: token.token ? `sha256:${connectedHostOperatorTokenFingerprint(token.token)}` : null,
115
+ error: token.error ?? null,
116
+ },
117
+ liveStatus: runtime,
118
+ routeReadiness: [
119
+ {
120
+ id: 'status',
121
+ route: '/status',
122
+ reachable: runtime.reachable,
123
+ statusCode: runtime.statusCode,
124
+ sdkVersion: runtime.version,
125
+ expectedSdkVersion: runtime.expectedVersion,
126
+ compatible: runtime.compatible,
127
+ },
128
+ {
129
+ id: 'agent-knowledge',
130
+ route: runtime.agentKnowledge.route,
131
+ ready: runtime.agentKnowledge.ready,
132
+ kind: runtime.agentKnowledge.kind,
133
+ statusCode: runtime.agentKnowledge.statusCode,
134
+ },
135
+ ],
136
+ findings: connectedHostFindings(runtime, tokenUsable),
137
+ modelAccess: {
138
+ diagnostics: 'Use mode:"connected_host_status" for live read-only host readiness. Use mode:"connected_host" for capability and boundary inventory.',
139
+ cliMirrors: ['goodvibes-agent status --json', 'goodvibes-agent doctor', 'goodvibes-agent compat'],
140
+ tuiMirrors: ['Agent Workspace -> Home -> Host compatibility', 'Agent Workspace -> Home -> Doctor diagnostics', 'Agent Workspace -> Home -> Review health'],
141
+ },
142
+ routeFamilies: connectedHostRouteFamilies(),
143
+ capabilities: connectedHostCapabilityMap(toolRegistry),
144
+ blockedCapabilities: blockedConnectedHostCapabilities(),
145
+ };
146
+ }
@@ -366,6 +366,7 @@ export function connectedHostSummary(context: CommandContext, toolRegistry: Tool
366
366
  tokenPath: connection.tokenPath,
367
367
  ownership: 'external-connected-host',
368
368
  lifecycle: 'GoodVibes Agent can use public connected-host operator routes, but does not start, stop, restart, install, expose, or mutate the host listener.',
369
+ statusMode: 'Use agent_harness mode:"connected_host_status" for live read-only reachability, SDK compatibility, token posture, and Agent Knowledge route readiness.',
369
370
  routeFamilies: connectedHostRouteFamilies(),
370
371
  capabilities: connectedHostCapabilityMap(toolRegistry),
371
372
  blockedCapabilities: blockedConnectedHostCapabilities(),
@@ -4,7 +4,7 @@ export const AGENT_HARNESS_MODES = [
4
4
  'shortcuts', 'keybindings', 'keybinding', 'set_keybinding', 'reset_keybinding',
5
5
  'commands', 'command', 'run_command', 'settings', 'get_setting', 'set_setting',
6
6
  'reset_setting', 'workspace', 'workspace_categories', 'workspace_actions',
7
- 'workspace_action', 'run_workspace_action', 'tools', 'connected_host',
7
+ 'workspace_action', 'run_workspace_action', 'tools', 'connected_host', 'connected_host_status',
8
8
  ] as const;
9
9
 
10
10
  const KEY_COMBO_PARAMETER_SCHEMA = {
@@ -20,6 +20,7 @@ import { parseSlashCommand } from '../input/slash-command-parser.ts';
20
20
  import { blockedHarnessCliCommandTokens, describeHarnessCliCommand, listHarnessCliCommands, totalHarnessCliCommands } from './agent-harness-cli-metadata.ts';
21
21
  import { describeHarnessKeybinding, listHarnessKeybindings, listHarnessShortcuts, resetHarnessKeybinding, setHarnessKeybinding, totalHarnessKeybindings, totalHarnessShortcuts } from './agent-harness-keybinding-metadata.ts';
22
22
  import { describeHarnessPanel, listHarnessPanels, openHarnessPanel, totalHarnessPanels } from './agent-harness-panel-metadata.ts';
23
+ import { connectedHostStatusSummary } from './agent-harness-connected-host-status.ts';
23
24
  import { describeLocalWorkspaceModelExecution, runLocalWorkspaceAction } from './agent-harness-local-operations.ts';
24
25
  import { listHarnessModelTools } from './agent-harness-model-tool-catalog.ts';
25
26
  import { AGENT_HARNESS_MODES, AGENT_HARNESS_PARAMETER_PROPERTIES } from './agent-harness-tool-schema.ts';
@@ -543,6 +544,7 @@ export function createAgentHarnessTool(deps: AgentHarnessToolDeps): Tool {
543
544
  settings: 'Use mode:"settings", mode:"get_setting", mode:"set_setting", and mode:"reset_setting".',
544
545
  tools: 'Use mode:"tools" with includeParameters:true to inspect first-class model tool schemas.',
545
546
  connectedHost: 'Use mode:"connected_host" for the connected-host capability map and blocked boundaries.',
547
+ connectedHostStatus: 'Use mode:"connected_host_status" for live read-only host reachability, SDK compatibility, token posture, and Agent Knowledge route readiness.',
546
548
  },
547
549
  settingsPolicy: settingsPolicySummary(),
548
550
  connectedHost: connectedHostSummary(deps.commandContext, deps.toolRegistry),
@@ -680,6 +682,7 @@ export function createAgentHarnessTool(deps: AgentHarnessToolDeps): Tool {
680
682
  return output({ tools, returned: tools.length, total: deps.toolRegistry.getToolDefinitions().length });
681
683
  }
682
684
  if (args.mode === 'connected_host') return output(connectedHostSummary(deps.commandContext, deps.toolRegistry));
685
+ if (args.mode === 'connected_host_status') return output(await connectedHostStatusSummary(deps.commandContext, deps.toolRegistry));
683
686
  return error(`Unhandled agent_harness mode: ${args.mode}`);
684
687
  } catch (err) {
685
688
  return error(formatHarnessError(err));
package/src/version.ts CHANGED
@@ -6,7 +6,7 @@ import { join } from 'node:path';
6
6
  // The prebuild script updates the fallback value before compilation.
7
7
  // Uses import.meta.dir (Bun) to locate package.json relative to this file,
8
8
  // which is correct regardless of the process working directory.
9
- let _version = '1.0.5';
9
+ let _version = '1.0.6';
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 {