@pellux/goodvibes-tui 1.27.1 → 2.0.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 +127 -2
- package/README.md +7 -9
- package/bin/goodvibes +2 -2
- package/bin/launcher-support.js +8 -4
- package/docs/README.md +11 -2
- package/docs/foundation-artifacts/operator-contract.json +6403 -2347
- package/package.json +14 -25
- package/scripts/postinstall.js +35 -35
- package/src/audio/spoken-turn-model-routing.ts +1 -1
- package/src/cli/bundle-command.ts +5 -5
- package/src/cli/completions/generate.ts +1 -1
- package/src/cli/doctor.ts +3 -3
- package/src/cli/entrypoint.ts +12 -7
- package/src/cli/help.ts +4 -5
- package/src/cli/hooks-command.ts +1 -1
- package/src/cli/index.ts +1 -4
- package/src/cli/launch-auto-update.ts +59 -7
- package/src/cli/management-commands.ts +6 -6
- package/src/cli/management-utils.ts +5 -5
- package/src/cli/management.ts +7 -7
- package/src/cli/network-posture.ts +1 -1
- package/src/cli/package-verification.ts +7 -6
- package/src/cli/plugin-bundles-command.ts +1 -1
- package/src/cli/plugin-command.ts +2 -2
- package/src/cli/service-command.ts +2 -2
- package/src/cli/service-posture.ts +4 -4
- package/src/cli/status.ts +9 -8
- package/src/cli/surface-command.ts +4 -4
- package/src/cli/tui-startup.ts +3 -3
- package/src/cli-flags.ts +3 -3
- package/src/config/goodvibes-home-audit.ts +0 -2
- package/src/config/secret-config.ts +37 -5
- package/src/config/tui-extension-settings.ts +1 -1
- package/src/core/approval-alert.ts +2 -2
- package/src/core/budget-breach-notifier.ts +3 -3
- package/src/core/conversation-compaction-render.ts +1 -1
- package/src/core/conversation-line-cache.ts +1 -1
- package/src/core/conversation-render-context.ts +1 -1
- package/src/core/conversation-rendering.ts +2 -2
- package/src/core/conversation.ts +10 -10
- package/src/core/long-task-notifier.ts +2 -2
- package/src/core/memory-diagnostics-gateway.ts +1 -1
- package/src/core/scriptable-statusline.ts +1 -1
- package/src/core/session-auto-titler.ts +1 -1
- package/src/core/session-resume-core.ts +2 -2
- package/src/core/stream-event-wiring.ts +24 -44
- package/src/core/terminal-notifier.ts +3 -3
- package/src/core/turn-cancellation.ts +1 -1
- package/src/core/turn-event-wiring.ts +5 -5
- package/src/input/command-registry.ts +6 -6
- package/src/input/commands/channel-pairing.ts +1 -1
- package/src/input/commands/cluster-runtime.ts +1 -1
- package/src/input/commands/codebase-runtime.ts +1 -1
- package/src/input/commands/devices-runtime.ts +1 -1
- package/src/input/commands/hosted-runtime.ts +330 -0
- package/src/input/commands/local-setup-review.ts +1 -1
- package/src/input/commands/local-setup-transfer.ts +2 -2
- package/src/input/commands/local-setup.ts +3 -3
- package/src/input/commands/managed-runtime.ts +2 -2
- package/src/input/commands/operator-rpc.ts +24 -110
- package/src/input/commands/payment-card-intake.ts +1 -1
- package/src/input/commands/permissions-provenance.ts +2 -2
- package/src/input/commands/plugin-runtime.ts +1 -1
- package/src/input/commands/provider.ts +1 -1
- package/src/input/commands/relay-runtime.ts +18 -9
- package/src/input/commands/rewind-runtime.ts +1 -1
- package/src/input/commands/runtime-services.ts +1 -1
- package/src/input/commands/services-runtime.ts +1 -1
- package/src/input/commands/session-workflow.ts +1 -1
- package/src/input/commands/settings-sync-runtime.ts +2 -2
- package/src/input/commands/share-runtime.ts +1 -1
- package/src/input/commands/tasks-runtime.ts +145 -55
- package/src/input/commands/update-runtime.ts +31 -28
- package/src/input/commands/work-plan-runtime.ts +2 -2
- package/src/input/commands/workstream-attempts.ts +1 -1
- package/src/input/commands/workstream-runtime.ts +2 -2
- package/src/input/commands.ts +2 -0
- package/src/input/feature-unit-layout.ts +1 -1
- package/src/input/feed-context-factory.ts +3 -3
- package/src/input/handler-content-actions.ts +2 -2
- package/src/input/handler-feed-routes.ts +1 -1
- package/src/input/handler-feed.ts +3 -3
- package/src/input/handler-modal-token-routes.ts +1 -1
- package/src/input/handler-onboarding-daemon-adopt.ts +3 -2
- package/src/input/handler-onboarding.ts +1 -1
- package/src/input/handler-types.ts +2 -2
- package/src/input/handler-ui-state.ts +1 -1
- package/src/input/handler.ts +4 -4
- package/src/input/input-history.ts +1 -1
- package/src/input/onboarding/onboarding-feature-units.ts +2 -2
- package/src/input/onboarding/onboarding-runtime-status.ts +15 -1
- package/src/input/onboarding/onboarding-wizard-apply.ts +17 -8
- package/src/input/onboarding/onboarding-wizard-cloudflare-step.ts +5 -3
- package/src/input/onboarding/onboarding-wizard-external-surfaces.ts +1 -1
- package/src/input/onboarding/onboarding-wizard-types.ts +1 -1
- package/src/input/payments-config.ts +6 -6
- package/src/input/search.ts +1 -1
- package/src/input/session-picker-modal.ts +46 -0
- package/src/input/settings-modal-activation.ts +1 -1
- package/src/input/settings-modal-behavior.ts +4 -4
- package/src/input/settings-modal-commit.ts +11 -0
- package/src/input/settings-modal-data.ts +9 -122
- package/src/input/settings-modal-mutations.ts +33 -0
- package/src/input/settings-modal-secrets.ts +34 -0
- package/src/input/settings-modal-subscriptions.ts +1 -1
- package/src/input/settings-modal-types.ts +15 -1
- package/src/input/settings-modal.ts +28 -3
- package/src/input/worktree-setup-config.ts +1 -1
- package/src/main.ts +11 -9
- package/src/panels/agent-inspector-shared.ts +2 -2
- package/src/panels/base-panel.ts +2 -2
- package/src/panels/builtin/operations.ts +6 -8
- package/src/panels/builtin/session.ts +17 -0
- package/src/panels/builtin/shared.ts +5 -5
- package/src/panels/builtin-modals.ts +3 -3
- package/src/panels/confirm-state.ts +1 -1
- package/src/panels/cost-tracker-panel.ts +4 -4
- package/src/panels/diff-panel.ts +2 -2
- package/src/panels/diff-review-panel.ts +2 -2
- package/src/panels/expandable-list-panel.ts +2 -2
- package/src/panels/fleet-acts.ts +1 -1
- package/src/panels/fleet-observed-render.ts +1 -1
- package/src/panels/fleet-panel-format.ts +1 -1
- package/src/panels/fleet-panel.ts +1 -1
- package/src/panels/fleet-spawn.ts +1 -1
- package/src/panels/fleet-steer.ts +1 -1
- package/src/panels/fleet-transcript.ts +1 -1
- package/src/panels/git-panel.ts +1 -1
- package/src/panels/hosted-session-feed.ts +352 -0
- package/src/panels/hosted-session-panel.ts +221 -0
- package/src/panels/local-auth-panel.ts +3 -3
- package/src/panels/modals/devices-modal.ts +1 -1
- package/src/panels/modals/local-auth-modal.ts +1 -1
- package/src/panels/modals/pairing-modal.ts +1 -1
- package/src/panels/modals/services-modal.ts +1 -1
- package/src/panels/modals/settings-sync-modal.ts +1 -1
- package/src/panels/modals/subscription-modal.ts +1 -1
- package/src/panels/modals/work-plan-modal.ts +1 -1
- package/src/panels/notifications-panel.ts +1 -1
- package/src/panels/panel-confirm-overlay.ts +1 -1
- package/src/panels/plugins-panel.ts +2 -2
- package/src/panels/polish-core.ts +2 -2
- package/src/panels/polish-tables.ts +1 -1
- package/src/panels/polish.ts +2 -2
- package/src/panels/scrollable-list-panel.ts +3 -3
- package/src/panels/skills-panel.ts +3 -3
- package/src/panels/token-budget-panel.ts +5 -5
- package/src/panels/types.ts +1 -2
- package/src/permissions/prompt.ts +1 -1
- package/src/renderer/autocomplete-overlay.ts +1 -1
- package/src/renderer/block-actions-overlay.ts +1 -1
- package/src/renderer/bookmark-modal.ts +1 -1
- package/src/renderer/buffer.ts +1 -1
- package/src/renderer/code-block.ts +1 -1
- package/src/renderer/composer-fragments.ts +1 -1
- package/src/renderer/compositor.ts +2 -2
- package/src/renderer/config-modal.ts +1 -1
- package/src/renderer/context-inspector.ts +1 -1
- package/src/renderer/conversation-layout.ts +2 -2
- package/src/renderer/conversation-overlays.ts +1 -1
- package/src/renderer/conversation-surface.ts +2 -2
- package/src/renderer/diff-view.ts +1 -1
- package/src/renderer/diff.ts +1 -1
- package/src/renderer/file-picker-overlay.ts +1 -1
- package/src/renderer/fleet-tab-strip.ts +1 -1
- package/src/renderer/fullscreen-primitives.ts +2 -2
- package/src/renderer/fullscreen-workspace.ts +1 -1
- package/src/renderer/header-line.ts +1 -1
- package/src/renderer/help-overlay.ts +1 -1
- package/src/renderer/history-search-overlay.ts +2 -2
- package/src/renderer/layout.ts +5 -8
- package/src/renderer/markdown-inline.ts +1 -1
- package/src/renderer/markdown-table.ts +1 -1
- package/src/renderer/markdown.ts +1 -1
- package/src/renderer/mcp-workspace.ts +1 -1
- package/src/renderer/modal-factory.ts +2 -2
- package/src/renderer/model-workspace.ts +2 -2
- package/src/renderer/onboarding/onboarding-wizard.ts +1 -1
- package/src/renderer/overlay-box.ts +1 -1
- package/src/renderer/panel-composite.ts +1 -1
- package/src/renderer/panel-workspace-bar.ts +1 -1
- package/src/renderer/process-indicator.ts +1 -1
- package/src/renderer/profile-picker-modal.ts +1 -1
- package/src/renderer/search-overlay.ts +2 -2
- package/src/renderer/selection-modal-overlay.ts +1 -1
- package/src/renderer/session-picker-modal.ts +124 -3
- package/src/renderer/settings-modal-helpers.ts +2 -0
- package/src/renderer/settings-modal.ts +2 -2
- package/src/renderer/shell-surface.ts +2 -2
- package/src/renderer/system-message.ts +1 -1
- package/src/renderer/tab-strip.ts +1 -1
- package/src/renderer/theme-mode-config.ts +21 -33
- package/src/renderer/theme.ts +11 -12
- package/src/renderer/thinking.ts +1 -1
- package/src/renderer/tool-call.ts +2 -2
- package/src/renderer/tool-result-expanded-lines.ts +1 -1
- package/src/renderer/turn-injection.ts +7 -8
- package/src/renderer/ui-factory.ts +3 -3
- package/src/runtime/bootstrap-command-context.ts +4 -4
- package/src/runtime/bootstrap-command-parts.ts +5 -5
- package/src/runtime/bootstrap-core.ts +30 -30
- package/src/runtime/bootstrap-shell.ts +4 -4
- package/src/runtime/bootstrap.ts +128 -157
- package/src/runtime/client/approval-updates.ts +82 -0
- package/src/runtime/client/build-floors.ts +167 -0
- package/src/runtime/client/daemon-attach-handshake.ts +115 -0
- package/src/runtime/client/fleet-union.ts +147 -0
- package/src/runtime/client/host-service-status.ts +71 -0
- package/src/runtime/client/hosted-exit.ts +86 -0
- package/src/runtime/client/hosted-roster.ts +110 -0
- package/src/runtime/client/hosted-session-stream.ts +178 -0
- package/src/runtime/client/hosted-sessions.ts +187 -0
- package/src/runtime/client/operator-endpoint.ts +213 -0
- package/src/runtime/client/spine-adoption.ts +99 -0
- package/src/runtime/cloudflare-control-plane.ts +1 -1
- package/src/runtime/context-accounting-source.ts +1 -1
- package/src/runtime/context.ts +2 -2
- package/src/runtime/conversation-rewind-port.ts +42 -14
- package/src/runtime/daemon-attach-notices.ts +55 -19
- package/src/runtime/diagnostics/panels/ops.ts +1 -1
- package/src/runtime/disposal-wiring.ts +4 -24
- package/src/runtime/index.ts +119 -105
- package/src/runtime/install-self-check-startup.ts +2 -2
- package/src/runtime/interaction-seams.ts +1 -1
- package/src/runtime/knowledge-services.ts +8 -2
- package/src/runtime/legacy-daemon-migration.ts +4 -3
- package/src/runtime/legacy-daemon-reconcile.ts +3 -2
- package/src/runtime/memory-spine-transport.ts +37 -267
- package/src/runtime/notification-dispatch.ts +2 -2
- package/src/runtime/onboarding/apply.ts +2 -2
- package/src/runtime/onboarding/derivation.ts +2 -2
- package/src/runtime/onboarding/markers.ts +2 -2
- package/src/runtime/onboarding/progress.ts +2 -2
- package/src/runtime/onboarding/snapshot.ts +1 -1
- package/src/runtime/onboarding/state.ts +2 -2
- package/src/runtime/onboarding/types.ts +2 -2
- package/src/runtime/orchestrator-core-services.ts +1 -1
- package/src/runtime/path-shadow-startup.ts +28 -221
- package/src/runtime/power-keepawake-remote.ts +3 -2
- package/src/runtime/process-lifecycle.ts +2 -2
- package/src/runtime/provider-fallback.ts +10 -66
- package/src/runtime/recovery-autosave.ts +1 -1
- package/src/runtime/recovery-offer-wiring.ts +39 -23
- package/src/runtime/recovery-prompt.ts +31 -17
- package/src/runtime/relay-reachability-bridge.ts +53 -42
- package/src/runtime/release-artifacts.ts +2 -1
- package/src/runtime/runtime-services-types.ts +82 -35
- package/src/runtime/services.ts +305 -300
- package/src/runtime/session-resume-liveness-confirm.ts +1 -1
- package/src/runtime/ui-services.ts +7 -6
- package/src/runtime/update-check.ts +23 -43
- package/src/runtime/workspace-checkpointing.ts +1 -1
- package/src/runtime/wrfc-persistence.ts +2 -2
- package/src/shell/ui-openers.ts +30 -7
- package/src/utils/clipboard.ts +1 -1
- package/src/verification/verification-ledger.ts +10 -8
- package/src/version.ts +1 -1
- package/bin/goodvibes-daemon +0 -90
- package/src/cli/config-overrides.ts +0 -267
- package/src/cli/endpoints.ts +0 -109
- package/src/cli/parser.ts +0 -395
- package/src/cli/redaction.ts +0 -170
- package/src/cli/types.ts +0 -84
- package/src/cluster/commands.ts +0 -382
- package/src/cluster/remote-daemon-target.ts +0 -225
- package/src/cluster/render.ts +0 -268
- package/src/config/atomic-write.ts +0 -70
- package/src/config/credential-availability.ts +0 -122
- package/src/config/goodvibes-home.ts +0 -149
- package/src/config/index.ts +0 -88
- package/src/config/provider-model.ts +0 -23
- package/src/config/read-versioned.ts +0 -228
- package/src/core/alert-gating.ts +0 -67
- package/src/core/consolidation-receipt.ts +0 -41
- package/src/core/focus-tracker.ts +0 -41
- package/src/core/history.ts +0 -45
- package/src/core/memory-status.ts +0 -118
- package/src/core/orchestrator.ts +0 -7
- package/src/core/pairing-devices.ts +0 -49
- package/src/core/pairing-handoff.ts +0 -101
- package/src/core/pairing-offers.ts +0 -83
- package/src/core/pairing-origin.ts +0 -78
- package/src/core/rewind-turn-anchors.ts +0 -311
- package/src/core/session-recovery.ts +0 -210
- package/src/core/stable-host.ts +0 -171
- package/src/core/transcript-journal.ts +0 -503
- package/src/daemon/cli.ts +0 -693
- package/src/daemon/fatal-boot-report.ts +0 -111
- package/src/daemon/handlers/context.ts +0 -29
- package/src/daemon/handlers/contracts.ts +0 -77
- package/src/daemon/handlers/credentials.ts +0 -139
- package/src/daemon/handlers/drafts/draft-store.ts +0 -427
- package/src/daemon/handlers/drafts/index.ts +0 -17
- package/src/daemon/handlers/drafts/register.ts +0 -331
- package/src/daemon/handlers/errors.ts +0 -18
- package/src/daemon/handlers/inbox/cursor-store.ts +0 -457
- package/src/daemon/handlers/inbox/index.ts +0 -284
- package/src/daemon/handlers/inbox/mapping.ts +0 -192
- package/src/daemon/handlers/inbox/poller.ts +0 -212
- package/src/daemon/handlers/inbox/provider-adapter.ts +0 -156
- package/src/daemon/handlers/inbox/providers/discord.ts +0 -252
- package/src/daemon/handlers/inbox/providers/email.ts +0 -152
- package/src/daemon/handlers/inbox/providers/imap-client.ts +0 -300
- package/src/daemon/handlers/inbox/providers/route-util.ts +0 -24
- package/src/daemon/handlers/inbox/providers/slack.ts +0 -263
- package/src/daemon/handlers/index.ts +0 -117
- package/src/daemon/handlers/register.ts +0 -168
- package/src/daemon/handlers/remote/backends/cloud-terminal.ts +0 -142
- package/src/daemon/handlers/remote/backends/docker.ts +0 -79
- package/src/daemon/handlers/remote/backends/index.ts +0 -40
- package/src/daemon/handlers/remote/backends/local-process.ts +0 -113
- package/src/daemon/handlers/remote/backends/process-runner.ts +0 -127
- package/src/daemon/handlers/remote/backends/ssh.ts +0 -125
- package/src/daemon/handlers/remote/backends/types.ts +0 -97
- package/src/daemon/handlers/remote/dispatcher.ts +0 -181
- package/src/daemon/handlers/remote/index.ts +0 -119
- package/src/daemon/handlers/remote/peer-registry.ts +0 -357
- package/src/daemon/handlers/remote/service.ts +0 -191
- package/src/daemon/handlers/routing/inbox-bridge.ts +0 -71
- package/src/daemon/handlers/routing/index.ts +0 -261
- package/src/daemon/handlers/routing/route-store.ts +0 -319
- package/src/daemon/handlers/routing/routing-resolver.ts +0 -75
- package/src/daemon/handlers/sqlite-store.ts +0 -278
- package/src/daemon/handlers/triage/index.ts +0 -57
- package/src/daemon/handlers/triage/integration.ts +0 -213
- package/src/daemon/handlers/triage/pipeline.ts +0 -274
- package/src/daemon/handlers/triage/scorer.ts +0 -287
- package/src/daemon/handlers/triage/tagger/discord.ts +0 -187
- package/src/daemon/handlers/triage/tagger/imap.ts +0 -384
- package/src/daemon/handlers/triage/tagger/index.ts +0 -184
- package/src/daemon/handlers/triage/tagger/shared.ts +0 -70
- package/src/daemon/handlers/triage/tagger/slack.ts +0 -69
- package/src/daemon/handlers/triage/types.ts +0 -50
- package/src/daemon/lifecycle.ts +0 -41
- package/src/daemon/provision-wake-model.ts +0 -81
- package/src/daemon/safe-serve.ts +0 -61
- package/src/daemon/send/channels.ts +0 -200
- package/src/daemon/send/command.ts +0 -332
- package/src/daemon/send/composition.ts +0 -99
- package/src/daemon/send/failure-text.ts +0 -93
- package/src/daemon/send/inert-text.ts +0 -225
- package/src/daemon/send/stdin.ts +0 -24
- package/src/daemon/service-commands.ts +0 -329
- package/src/export/cost-utils.ts +0 -319
- package/src/input/selection.ts +0 -135
- package/src/plugins/loader.ts +0 -15
- package/src/renderer/bottom-bar.ts +0 -58
- package/src/renderer/conversation-tree.ts +0 -228
- package/src/runtime/agent-graph-composition.ts +0 -78
- package/src/runtime/channel-composition.ts +0 -46
- package/src/runtime/cluster-composition.ts +0 -124
- package/src/runtime/cluster-group-composition.ts +0 -284
- package/src/runtime/code-index-services.ts +0 -167
- package/src/runtime/daemon-handler-composition.ts +0 -76
- package/src/runtime/device-posture-composition.ts +0 -110
- package/src/runtime/durability-housekeeping.ts +0 -183
- package/src/runtime/durability-services.ts +0 -155
- package/src/runtime/embedded-service-factories.ts +0 -74
- package/src/runtime/feature-settings.ts +0 -154
- package/src/runtime/fleet-needs-input-push.ts +0 -70
- package/src/runtime/fleet-services.ts +0 -41
- package/src/runtime/idle-power-services.ts +0 -85
- package/src/runtime/mail-composition.ts +0 -65
- package/src/runtime/memory-fold.ts +0 -55
- package/src/runtime/operator-token-cleanup.ts +0 -109
- package/src/runtime/path-shadow.ts +0 -418
- package/src/runtime/perf/panel-health-monitor.ts +0 -18
- package/src/runtime/provider-optimizer-wiring.ts +0 -55
- package/src/runtime/reachability-notice.ts +0 -100
- package/src/runtime/remote-execution-composition.ts +0 -62
- package/src/runtime/session-liveness-marker.ts +0 -257
- package/src/runtime/session-pointer-surface.ts +0 -22
- package/src/runtime/session-storage-services.ts +0 -41
- package/src/runtime/surface-feature-flags.ts +0 -96
- package/src/runtime/terminal-output-guard.ts +0 -235
- package/src/runtime/trust/workspace-registration.ts +0 -192
- package/src/runtime/trust/workspace-trust.ts +0 -229
- package/src/runtime/ui/index.ts +0 -39
- package/src/runtime/ui/model-picker/data-provider.ts +0 -182
- package/src/runtime/ui/model-picker/health-enrichment.ts +0 -231
- package/src/runtime/ui/model-picker/index.ts +0 -59
- package/src/runtime/ui/model-picker/types.ts +0 -153
- package/src/runtime/ui/provider-health/data-provider.ts +0 -244
- package/src/runtime/ui/provider-health/fallback-visualizer.ts +0 -71
- package/src/runtime/ui/provider-health/index.ts +0 -46
- package/src/runtime/ui/provider-health/types.ts +0 -146
- package/src/runtime/ui-events.ts +0 -1
- package/src/runtime/ui-read-model-helpers.ts +0 -1
- package/src/runtime/ui-read-models-observability-maintenance.ts +0 -1
- package/src/runtime/ui-read-models-observability-options.ts +0 -1
- package/src/runtime/ui-read-models-observability-remote.ts +0 -1
- package/src/runtime/ui-read-models-observability-security.ts +0 -1
- package/src/runtime/ui-read-models-observability-system.ts +0 -1
- package/src/runtime/ui-read-models-observability.ts +0 -1
- package/src/runtime/ui-service-queries.ts +0 -1
- package/src/runtime/voice-setup-services.ts +0 -98
- package/src/runtime/workstream-attempts-validation.ts +0 -77
- package/src/runtime/workstream-draft-edits.ts +0 -95
- package/src/runtime/workstream-draft-store.ts +0 -274
- package/src/runtime/workstream-draft-types.ts +0 -42
- package/src/runtime/workstream-services.ts +0 -373
- package/src/tools/index.ts +0 -1
- package/src/types/grid.ts +0 -48
- package/src/types/sql-js.d.ts +0 -15
- package/src/work-plans/work-plan-store.ts +0 -702
package/src/runtime/index.ts
CHANGED
|
@@ -153,6 +153,10 @@ export const openContractRouteStream = transport.openContractRouteStream;
|
|
|
153
153
|
export const requireContractRoute = transport.requireContractRoute;
|
|
154
154
|
export const isAbortError = transport.isAbortError;
|
|
155
155
|
export const openServerSentEventStream = transport.openServerSentEventStream;
|
|
156
|
+
// Re-exported here because bootstrap.ts — the one place an exit can await
|
|
157
|
+
// anything — sits on the 800-line per-file gate, so it reaches this through the
|
|
158
|
+
// import block it already has rather than a second import line.
|
|
159
|
+
export { leaveHostedSessionOnExit } from './client/hosted-exit.ts';
|
|
156
160
|
export const createOperatorRemoteClient = transport.createOperatorRemoteClient;
|
|
157
161
|
export const createPeerRemoteClient = transport.createPeerRemoteClient;
|
|
158
162
|
export const buildEventSourceUrl = transport.buildEventSourceUrl;
|
|
@@ -202,73 +206,105 @@ export type RemoteRuntimeEventsOptions = Transport.RemoteRuntimeEventsOptions;
|
|
|
202
206
|
export type RemoteRuntimeEvents = Transport.RemoteRuntimeEvents;
|
|
203
207
|
export type SerializedRuntimeEnvelope = Transport.SerializedRuntimeEnvelope;
|
|
204
208
|
|
|
205
|
-
// Operations compatibility aliases.
|
|
206
|
-
|
|
207
|
-
export const
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
export
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
export
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
209
|
+
// Operations compatibility aliases. Grouped as a single live ESM re-export
|
|
210
|
+
// from the SDK's own `platform/runtime/operations` subpath rather than eager
|
|
211
|
+
// `export const X = operations.X` module-scope reads off the `operations`
|
|
212
|
+
// namespace object: those reads evaluated the namespace getter while the
|
|
213
|
+
// compiled single-file bundle could still be mid-cycle, and the binding they
|
|
214
|
+
// reached for was not defined yet — source execution hid this, the compiled
|
|
215
|
+
// binary died on it at load. A grouped `export { ... } from '<subpath>'` is a
|
|
216
|
+
// live binding resolved by the module system, not a module-scope value read,
|
|
217
|
+
// so it is cycle-safe.
|
|
218
|
+
export {
|
|
219
|
+
AcpTaskAdapter,
|
|
220
|
+
OpsControlPlane,
|
|
221
|
+
OpsIllegalActionError,
|
|
222
|
+
OpsTargetNotFoundError,
|
|
223
|
+
ToolContractVerifier,
|
|
224
|
+
McpLifecycleManager,
|
|
225
|
+
McpPermissionManager,
|
|
226
|
+
McpSchemaFreshnessTracker,
|
|
227
|
+
buildMcpAttackPathReview,
|
|
228
|
+
createMcpLifecycleManager,
|
|
229
|
+
DEFAULT_RECONNECT_CONFIG,
|
|
230
|
+
ALL_CAPABILITIES,
|
|
231
|
+
PLUGIN_CAPABILITIES,
|
|
232
|
+
HIGH_RISK_CAPABILITIES,
|
|
233
|
+
PluginLifecycleManager,
|
|
234
|
+
PluginQuarantineEngine,
|
|
235
|
+
PluginTrustStore,
|
|
236
|
+
SAFE_CAPABILITIES,
|
|
237
|
+
filterCapabilitiesByTrust,
|
|
238
|
+
hasCapability,
|
|
239
|
+
isHighRiskCapability,
|
|
240
|
+
isPluginOperational,
|
|
241
|
+
isPluginReloadable,
|
|
242
|
+
isPluginTerminal,
|
|
243
|
+
resolveCapabilityManifest,
|
|
244
|
+
validateManifestV2,
|
|
245
|
+
validatePluginSignature,
|
|
246
|
+
LOW_QUALITY_THRESHOLD,
|
|
247
|
+
computeQualityScore,
|
|
248
|
+
createCompactionManager,
|
|
249
|
+
describeScore,
|
|
250
|
+
escalateStrategy,
|
|
251
|
+
isTerminalCompactionState,
|
|
252
|
+
reachableFromCompactionState,
|
|
253
|
+
compactionFailurePlaybook,
|
|
254
|
+
exportRecoveryPlaybook,
|
|
255
|
+
permissionDeadlockPlaybook,
|
|
256
|
+
pluginDegradationPlaybook,
|
|
257
|
+
reconnectFailurePlaybook,
|
|
258
|
+
sessionUnrecoverablePlaybook,
|
|
259
|
+
stuckTurnPlaybook,
|
|
260
|
+
createSessionUnrecoverablePlaybook,
|
|
261
|
+
createStuckTurnPlaybook,
|
|
262
|
+
evaluateOrchestrationSpawn,
|
|
263
|
+
TRANSPORT_COMPATIBILITY_MATRIX,
|
|
264
|
+
applyTransition,
|
|
265
|
+
canTransition,
|
|
266
|
+
isOperational,
|
|
267
|
+
isReloadable,
|
|
268
|
+
isTerminal,
|
|
269
|
+
reachableFrom,
|
|
270
|
+
evaluateSessionMaintenance,
|
|
271
|
+
formatSessionMaintenanceLines,
|
|
272
|
+
getGuidanceMode,
|
|
273
|
+
buildPersistedSessionContext,
|
|
274
|
+
buildLocalReturnContextSummary,
|
|
275
|
+
formatReturnContextForDisplay,
|
|
276
|
+
getReturnContextMode,
|
|
277
|
+
maybeAssistReturnContextSummary,
|
|
278
|
+
persistConversation,
|
|
279
|
+
generateUserSessionId,
|
|
280
|
+
loadLastConversation,
|
|
281
|
+
loadRecoveryConversation,
|
|
282
|
+
writeRecoveryFile,
|
|
283
|
+
deleteRecoveryFile,
|
|
284
|
+
checkRecoveryFile,
|
|
285
|
+
getRecoveryFilePath,
|
|
286
|
+
getRecoveryDir,
|
|
287
|
+
getLastSessionPointerPath,
|
|
288
|
+
writeLastSessionPointer,
|
|
289
|
+
readLastSessionPointer,
|
|
290
|
+
createSessionSurface,
|
|
291
|
+
consumeRecovery,
|
|
292
|
+
removeRecoveryPoint,
|
|
293
|
+
checkRecoveryForSession,
|
|
294
|
+
exportRemoteArtifactForAgent,
|
|
295
|
+
importRemoteArtifact,
|
|
296
|
+
RemoteRunnerRegistry,
|
|
297
|
+
RemoteSupervisor,
|
|
298
|
+
DistributedRuntimeManager,
|
|
299
|
+
getDistributedNodeHostContract,
|
|
300
|
+
CURRENT_PROTOCOL_VERSION,
|
|
301
|
+
VersionMismatchError,
|
|
302
|
+
negotiateProtocolVersion,
|
|
303
|
+
createTaskManager,
|
|
304
|
+
PhasedToolExecutor,
|
|
305
|
+
budgetPhase,
|
|
306
|
+
permissionPhase,
|
|
307
|
+
} from '@pellux/goodvibes-sdk/platform/runtime/operations';
|
|
272
308
|
// Snapshot-retention symbols (SnapshotPruner, RetentionPolicy,
|
|
273
309
|
// DEFAULT_RETENTION_CONFIG) are intentionally NOT re-exported here. No app code
|
|
274
310
|
// consumes them — only the retention unit test does, and it now imports them
|
|
@@ -280,48 +316,26 @@ export const getGuidanceMode = operations.getGuidanceMode;
|
|
|
280
316
|
// `var` declaration on the darwin-arm64 target, so the compiled binary died at
|
|
281
317
|
// startup with `ReferenceError: SnapshotPruner2 is not defined`. Dropping the
|
|
282
318
|
// re-export removes the collision (and the same latent hazard for the other two).
|
|
283
|
-
|
|
284
|
-
export
|
|
285
|
-
|
|
286
|
-
export
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
export const getRecoveryFilePath = operations.getRecoveryFilePath;
|
|
296
|
-
export const getRecoveryDir = operations.getRecoveryDir;
|
|
297
|
-
export const getLastSessionPointerPath = operations.getLastSessionPointerPath;
|
|
298
|
-
export const writeLastSessionPointer = operations.writeLastSessionPointer;
|
|
299
|
-
export const readLastSessionPointer = operations.readLastSessionPointer;
|
|
319
|
+
// Instance-type companions for the operations class aliases are no longer
|
|
320
|
+
// declared here: `export { X } from '<subpath>'` forwards a class's value AND
|
|
321
|
+
// its implicit instance type together, so a separate local
|
|
322
|
+
// `export type X = InstanceType<typeof operations.X>` for the same name is
|
|
323
|
+
// now a redundant declaration that TypeScript rejects as a conflict
|
|
324
|
+
// (TS2484). This applies to every class name in the grouped re-export above
|
|
325
|
+
// (AcpTaskAdapter, OpsControlPlane, OpsIllegalActionError,
|
|
326
|
+
// OpsTargetNotFoundError, ToolContractVerifier, McpLifecycleManager,
|
|
327
|
+
// McpPermissionManager, McpSchemaFreshnessTracker, PluginLifecycleManager,
|
|
328
|
+
// PluginQuarantineEngine, PluginTrustStore, RemoteRunnerRegistry,
|
|
329
|
+
// RemoteSupervisor, DistributedRuntimeManager) — their instance types are
|
|
330
|
+
// forwarded automatically and are not redeclared below.
|
|
300
331
|
// The declare-once storage handle (platform/runtime/session-surface.ts) plus
|
|
301
332
|
// the two prompted-recovery primitives that only accept it. Every session
|
|
302
333
|
// path in this app derives from one surface built in runtime/services.ts.
|
|
303
|
-
export const createSessionSurface = operations.createSessionSurface;
|
|
304
334
|
export type SessionSurface = Operations.SessionSurface;
|
|
305
|
-
export const consumeRecovery = operations.consumeRecovery;
|
|
306
|
-
export const removeRecoveryPoint = operations.removeRecoveryPoint;
|
|
307
335
|
// Probe for a NAMED session's live snapshot (per-session supersession — see
|
|
308
336
|
// session-recovery.ts's header) without retiring anything. Backs the
|
|
309
337
|
// --continue / --resume pre-resume check in cli/tui-startup.ts.
|
|
310
|
-
export const checkRecoveryForSession = operations.checkRecoveryForSession;
|
|
311
338
|
export type RecoveryFileInfo = Operations.RecoveryFileInfo;
|
|
312
|
-
export const exportRemoteArtifactForAgent = operations.exportRemoteArtifactForAgent;
|
|
313
|
-
export const importRemoteArtifact = operations.importRemoteArtifact;
|
|
314
|
-
export const RemoteRunnerRegistry = operations.RemoteRunnerRegistry;
|
|
315
|
-
export const RemoteSupervisor = operations.RemoteSupervisor;
|
|
316
|
-
export const DistributedRuntimeManager = operations.DistributedRuntimeManager;
|
|
317
|
-
export const getDistributedNodeHostContract = operations.getDistributedNodeHostContract;
|
|
318
|
-
export const CURRENT_PROTOCOL_VERSION = operations.CURRENT_PROTOCOL_VERSION;
|
|
319
|
-
export const VersionMismatchError = operations.VersionMismatchError;
|
|
320
|
-
export const negotiateProtocolVersion = operations.negotiateProtocolVersion;
|
|
321
|
-
export const createTaskManager = operations.createTaskManager;
|
|
322
|
-
export const PhasedToolExecutor = operations.PhasedToolExecutor;
|
|
323
|
-
export const budgetPhase = operations.budgetPhase;
|
|
324
|
-
export const permissionPhase = operations.permissionPhase;
|
|
325
339
|
|
|
326
340
|
export type RemoteSessionBundle = Operations.RemoteSessionBundle;
|
|
327
341
|
export type ContractVerifierOptions = Operations.ContractVerifierOptions;
|
|
@@ -359,10 +373,10 @@ export type CompactionStrategy = Operations.CompactionStrategy;
|
|
|
359
373
|
export type StrategyInput = Operations.StrategyInput;
|
|
360
374
|
export type StrategyOutput = Operations.StrategyOutput;
|
|
361
375
|
export type DistributedRuntimeSnapshotStore = Operations.DistributedRuntimeSnapshotStore;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
export
|
|
365
|
-
|
|
376
|
+
// RemoteRunnerRegistry, RemoteSupervisor, DistributedRuntimeManager, and
|
|
377
|
+
// OpsControlPlane are classes forwarded by the grouped value re-export above
|
|
378
|
+
// (`export { X } from '<subpath>'` carries both the value and its implicit
|
|
379
|
+
// instance type), so redeclaring their types here would conflict (TS2484).
|
|
366
380
|
export type RuntimeTransitionResult = Operations.RuntimeTransitionResult;
|
|
367
381
|
export type RetentionClass = Operations.RetentionClass;
|
|
368
382
|
export type RetentionClassConfig = Operations.RetentionClassConfig;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { existsSync } from 'node:fs';
|
|
18
18
|
import { getGoodVibesPackageRoot, resolveGoodVibesDaemonExecutable } from '../cli/service-posture.ts';
|
|
19
19
|
import { runInstallSelfCheck } from './install-self-check.ts';
|
|
20
|
-
import {
|
|
20
|
+
import { announceInstallReachability } from './path-shadow-startup.ts';
|
|
21
21
|
import type { SystemMessageRouter } from '../core/system-message-router.ts';
|
|
22
22
|
|
|
23
23
|
export function announceInstallSelfCheck(router: SystemMessageRouter): void {
|
|
@@ -53,7 +53,7 @@ export function announceInstallSelfCheck(router: SystemMessageRouter): void {
|
|
|
53
53
|
*/
|
|
54
54
|
export function announceInstallHealth(router: SystemMessageRouter): void {
|
|
55
55
|
announceInstallSelfCheck(router);
|
|
56
|
-
void
|
|
56
|
+
void announceInstallReachability(router).catch(() => {
|
|
57
57
|
// Best-effort — a reachability check must never block or crash boot.
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
import type { CommandContext } from '../input/command-registry.ts';
|
|
13
13
|
import type { PowerManager } from '@pellux/goodvibes-sdk/platform/power';
|
|
14
|
-
import type { Line } from '
|
|
14
|
+
import type { Line } from '@pellux/goodvibes-sdk/platform/types';
|
|
15
15
|
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config';
|
|
16
16
|
import { createCancelToolCall, type ToolCancelOrchestrator } from '../core/turn-cancellation.ts';
|
|
17
17
|
import { powerSurfaceFromState } from '../core/power-status.ts';
|
|
@@ -33,7 +33,7 @@ import type { ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers'
|
|
|
33
33
|
import type { ArtifactStore } from '@pellux/goodvibes-sdk/platform/artifacts';
|
|
34
34
|
import type { MemoryRegistry } from '@pellux/goodvibes-sdk/platform/state';
|
|
35
35
|
import type { RuntimeEventBus } from '@/runtime/index.ts';
|
|
36
|
-
import { WorkPlanStore } from '
|
|
36
|
+
import { WorkPlanStore } from '@pellux/goodvibes-sdk/platform/workflow';
|
|
37
37
|
|
|
38
38
|
const REGULAR_KNOWLEDGE_DB_FILE = 'knowledge-wiki.sqlite';
|
|
39
39
|
const HOME_GRAPH_KNOWLEDGE_DB_FILE = 'knowledge-home-graph.sqlite';
|
|
@@ -84,7 +84,13 @@ export function createKnowledgeServices(deps: KnowledgeServicesDeps): KnowledgeS
|
|
|
84
84
|
const homeGraphService = new HomeGraphService(homeGraphKnowledgeStore, artifactStore, { semanticService: homeGraphSemanticService, admitExpensiveWork });
|
|
85
85
|
const projectPlanningProjectId = projectPlanningProjectIdFromPath(deps.workingDirectory);
|
|
86
86
|
const projectPlanningService = new ProjectPlanningService(knowledgeStore, { defaultProjectId: projectPlanningProjectId });
|
|
87
|
-
const workPlanStore = new WorkPlanStore({
|
|
87
|
+
const workPlanStore = new WorkPlanStore({
|
|
88
|
+
homeDirectory: deps.homeDirectory,
|
|
89
|
+
projectId: projectPlanningProjectId,
|
|
90
|
+
projectRoot: deps.workingDirectory,
|
|
91
|
+
surfaceRoot: 'tui',
|
|
92
|
+
source: 'tui',
|
|
93
|
+
});
|
|
88
94
|
return {
|
|
89
95
|
knowledgeStore, agentKnowledgeStore, homeGraphKnowledgeStore,
|
|
90
96
|
knowledgeSemanticService, homeGraphSemanticService, agentKnowledgeSemanticService,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* NAMING, load-bearing: this module's identifiers say "legacy" because the
|
|
8
8
|
* engine migrates AWAY from the `goodvibes-daemon.service` unit name toward
|
|
9
|
-
* the runtime-managed unit — but that same name is what
|
|
9
|
+
* the runtime-managed unit — but that same name is what the suite installer
|
|
10
|
+
* (goodvibes-daemon scripts/install.sh)
|
|
10
11
|
* actively creates for curl-installed hosts TODAY. It is a parallel,
|
|
11
12
|
* first-class install path, not an obsolete one. User-facing copy therefore
|
|
12
13
|
* describes it as "the install-script unit" and never labels it legacy or
|
|
@@ -126,7 +127,7 @@ export function buildManagedDaemonServiceManager(params: BuildManagedDaemonServi
|
|
|
126
127
|
// already configured for hostMode=network / a non-default port) keeps its
|
|
127
128
|
// endpoint without a unit rewrite. Baking endpoint values here is what
|
|
128
129
|
// silently re-pinned custom-configured hosts back to the values current at
|
|
129
|
-
// install time.
|
|
130
|
+
// install time. The suite installer writes the same shape — the two paths
|
|
130
131
|
// must produce the identical running daemon (see the installer parity test).
|
|
131
132
|
// `params.host`/`params.port` remain inputs because the migration engine
|
|
132
133
|
// still needs them for its read-only port-liveness probe.
|
|
@@ -139,7 +140,7 @@ export function buildManagedDaemonServiceManager(params: BuildManagedDaemonServi
|
|
|
139
140
|
// operator-tokens.json, auth-users.json and daemon-settings.json — which is
|
|
140
141
|
// `<home>/.goodvibes/daemon`. This baked the USER HOME, so a serviced
|
|
141
142
|
// daemon filed its identity a level above where every reader in this
|
|
142
|
-
// repository looks: config
|
|
143
|
+
// repository looks: the SDK's platform/config goodvibes-home resolves the flag AS the state
|
|
143
144
|
// directory, cli/service-posture.ts already writes the state directory into
|
|
144
145
|
// GOODVIBES_DAEMON_HOME for the unit it installs, and runtime/bootstrap.ts
|
|
145
146
|
// reads the companion token from the state directory. On a normal machine
|
|
@@ -22,11 +22,12 @@ import {
|
|
|
22
22
|
type ManagedServiceActionResult = ReturnType<ManagedServiceActionRunner>;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* The exact marker string
|
|
25
|
+
* The exact marker string the suite installer writes into every unit it
|
|
26
26
|
* creates (as a `# managed by goodvibes install.sh` comment). The reconcile
|
|
27
27
|
* check below keys on it to tell an installer-created legacy unit — safe to
|
|
28
28
|
* auto-retire — apart from a hand-written one that must only ever be reported.
|
|
29
|
-
* Kept in lockstep with `INSTALLER_MARKER` in
|
|
29
|
+
* Kept in lockstep with `INSTALLER_MARKER` in the suite installer
|
|
30
|
+
* (goodvibes-daemon scripts/install.sh).
|
|
30
31
|
*/
|
|
31
32
|
export const INSTALLER_UNIT_MARKER = 'managed by goodvibes install.sh';
|
|
32
33
|
|