@pellux/goodvibes-tui 1.25.0 → 1.27.0
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 +15 -0
- package/README.md +1 -1
- package/docs/foundation-artifacts/operator-contract.json +9605 -3119
- package/package.json +9 -7
- package/scripts/postinstall.js +57 -1
- package/src/audio/activation-sound.ts +117 -0
- package/src/audio/capture.ts +112 -0
- package/src/audio/onnxruntime-assets.d.ts +24 -0
- package/src/audio/voice-capture-wiring.ts +119 -0
- package/src/audio/voice-input-session.ts +181 -0
- package/src/audio/wake-inference.ts +182 -0
- package/src/audio/wake-runtime.ts +341 -0
- package/src/cli/bundle-command.ts +4 -1
- package/src/cli/help.ts +10 -0
- package/src/cli/management-utils.ts +4 -1
- package/src/cli/redaction.ts +68 -3
- package/src/config/goodvibes-home.ts +10 -0
- package/src/config/secret-config.ts +64 -8
- package/src/core/turn-event-wiring.ts +7 -16
- package/src/core/voice-capture-status.ts +53 -0
- package/src/core/voice-stt-gateway.ts +75 -0
- package/src/core/wake-provision-runner.ts +86 -0
- package/src/core/wake-provision-status.ts +170 -0
- package/src/core/workstream-notification.ts +69 -0
- package/src/daemon/cli.ts +86 -5
- package/src/daemon/handlers/credentials.ts +15 -5
- package/src/daemon/provision-wake-model.ts +81 -0
- package/src/daemon/send/channels.ts +200 -0
- package/src/daemon/send/command.ts +332 -0
- package/src/daemon/send/composition.ts +99 -0
- package/src/daemon/send/failure-text.ts +93 -0
- package/src/daemon/send/inert-text.ts +225 -0
- package/src/daemon/send/stdin.ts +24 -0
- package/src/input/command-registry.ts +6 -0
- package/src/input/commands/config.ts +68 -2
- package/src/input/commands/experience-runtime.ts +37 -3
- package/src/input/commands/local-provider-runtime.ts +9 -1
- package/src/input/commands/operator-runtime.ts +6 -1
- package/src/input/commands/payment-card-intake.ts +200 -0
- package/src/input/commands/profile-render.ts +250 -0
- package/src/input/commands/profile-runtime.ts +362 -0
- package/src/input/commands/profile-types.ts +381 -0
- package/src/input/commands.ts +7 -0
- package/src/input/composer-editor.ts +4 -0
- package/src/input/handler-shortcuts.ts +8 -0
- package/src/input/keybindings.ts +10 -1
- package/src/input/onboarding/onboarding-feature-units.ts +5 -5
- package/src/input/onboarding/onboarding-wizard-apply.ts +13 -1
- package/src/input/payments-config.ts +167 -0
- package/src/input/provider-key-intake.ts +10 -2
- package/src/input/settings-modal-commit.ts +146 -0
- package/src/input/settings-modal-data.ts +30 -0
- package/src/input/settings-modal-reset.ts +6 -2
- package/src/input/settings-modal-secrets.ts +9 -2
- package/src/input/settings-modal-types.ts +30 -2
- package/src/input/settings-modal.ts +27 -107
- package/src/main.ts +12 -14
- package/src/panels/modals/marketplace-modal.ts +5 -0
- package/src/panels/modals/skills-modal.ts +5 -0
- package/src/renderer/process-indicator.ts +66 -0
- package/src/renderer/settings-modal-helpers.ts +8 -2
- package/src/renderer/settings-modal.ts +16 -1
- package/src/renderer/shell-surface.ts +22 -3
- package/src/runtime/bootstrap-core.ts +7 -7
- package/src/runtime/bootstrap.ts +3 -3
- package/src/runtime/device-posture-composition.ts +110 -0
- package/src/runtime/disposal-wiring.ts +16 -0
- package/src/runtime/install-self-check-startup.ts +23 -0
- package/src/runtime/onboarding/types.ts +6 -1
- package/src/runtime/path-shadow-startup.ts +243 -0
- package/src/runtime/path-shadow.ts +418 -0
- package/src/runtime/reachability-notice.ts +100 -0
- package/src/runtime/runtime-services-types.ts +260 -0
- package/src/runtime/services.ts +95 -209
- package/src/runtime/voice-setup-services.ts +50 -4
- package/src/shell/voice-capture-shell.ts +69 -0
- package/src/verification/verification-ledger.ts +163 -24
- package/src/version.ts +1 -1
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* runtime-services-types.ts — the public contract createRuntimeServices() takes
|
|
3
|
+
* and returns.
|
|
4
|
+
*
|
|
5
|
+
* Split out of services.ts (the composition root that builds every one of
|
|
6
|
+
* these fields) so the construction logic can stay under the repo's
|
|
7
|
+
* architecture line-count gate without trimming 35 arbitrary lines to clear
|
|
8
|
+
* the number. This module owns ONLY the shape of the input options and the
|
|
9
|
+
* output surface — no runtime code, no wiring order, nothing that constructs
|
|
10
|
+
* anything. services.ts re-exports both types from here, so no import site
|
|
11
|
+
* anywhere else in the app had to change.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import type { FocusTracker } from '../core/focus-tracker.ts';
|
|
15
|
+
import type { ConfigManager, ServiceRegistry, SubscriptionManager, ToolLLM } from '@pellux/goodvibes-sdk/platform/config';
|
|
16
|
+
import type { SecretsManager } from '../config/secrets.ts';
|
|
17
|
+
import type { AutomationDeliveryManager, AutomationManager } from '@pellux/goodvibes-sdk/platform/automation';
|
|
18
|
+
import type { ChannelDeliveryRouter, ChannelPolicyManager, ChannelPluginRegistry, RouteBindingManager, SurfaceRegistry } from '@pellux/goodvibes-sdk/platform/channels';
|
|
19
|
+
import type { ApprovalBroker, GatewayMethodCatalog, SessionLiveTurnControlsHolder, SharedSessionBroker } from '@pellux/goodvibes-sdk/platform/control-plane';
|
|
20
|
+
import type { PowerManager } from '@pellux/goodvibes-sdk/platform/power';
|
|
21
|
+
import type { wireIdlePowerAndLiveTurn } from './idle-power-services.ts';
|
|
22
|
+
import type { StepUpService } from '@pellux/goodvibes-sdk/daemon';
|
|
23
|
+
import type { PairingTokenManager } from '@pellux/goodvibes-sdk/platform/pairing';
|
|
24
|
+
import type { WatcherRegistry } from '@pellux/goodvibes-sdk/platform/watchers';
|
|
25
|
+
import type { ArtifactStore } from '@pellux/goodvibes-sdk/platform/artifacts';
|
|
26
|
+
import type { HomeGraphService, KnowledgeService, ProjectPlanningService } from '@pellux/goodvibes-sdk/platform/knowledge';
|
|
27
|
+
import type { MediaProviderRegistry } from '@pellux/goodvibes-sdk/platform/media';
|
|
28
|
+
import type { MultimodalService } from '@pellux/goodvibes-sdk/platform/multimodal';
|
|
29
|
+
import type { AgentMessageBus, AgentOrchestrator, ArchetypeLoader, WrfcController } from '@pellux/goodvibes-sdk/platform/agents';
|
|
30
|
+
import type { AgentManager, ContextAccountingHolder, OverflowHandler, ProcessManager, WorkflowServices } from '@pellux/goodvibes-sdk/platform/tools';
|
|
31
|
+
import type { FileUndoManager, MemoryConsolidationScheduler, MemoryEmbeddingProviderRegistry, MemoryRegistry, MemoryStore, ModeManager, ProjectIndex, CodeIndexStore, CodeIndexReindexScheduler } from '@pellux/goodvibes-sdk/platform/state';
|
|
32
|
+
import type { StoreSnapshotScheduler } from '@pellux/goodvibes-sdk/platform/state/store-snapshots';
|
|
33
|
+
import type { UserPermissionRuleStore } from '@pellux/goodvibes-sdk/platform/permissions';
|
|
34
|
+
import type { buildExecPromptAnswerHandler } from '@pellux/goodvibes-sdk/platform/runtime/permissions/exec-prompt-wiring';
|
|
35
|
+
import type { buildLocalhostFetchApproval } from '@pellux/goodvibes-sdk/platform/runtime/permissions/localhost-fetch-approval';
|
|
36
|
+
import type { NotificationDispatcher } from './notification-dispatch.ts';
|
|
37
|
+
import type { createDurabilityServices } from './durability-services.ts';
|
|
38
|
+
import type { MemorySpineClient } from '@pellux/goodvibes-sdk/platform/runtime/memory-spine';
|
|
39
|
+
import type { WorkspaceCheckpointManager } from '@pellux/goodvibes-sdk/platform/workspace';
|
|
40
|
+
import type { DomainDispatch, RuntimeStore } from './store/index.ts';
|
|
41
|
+
import type { DevicePostureRuntime } from '@pellux/goodvibes-sdk/platform/devices';
|
|
42
|
+
import type { RuntimeEventBus, DistributedRuntimeManager, RemoteRunnerRegistry, RemoteSupervisor, IntegrationHelperService, IdempotencyStore, ComponentHealthMonitor, WorktreeRegistry, SandboxSessionRegistry, ShellPathService, FeatureFlagManager, PolicyRuntimeState, SessionSurface } from '@/runtime/index.ts';
|
|
43
|
+
import type { VoiceProviderRegistry, VoiceService } from '@pellux/goodvibes-sdk/platform/voice';
|
|
44
|
+
import type { CacheRegistry, PauseController, MemoryGovernor } from '@pellux/goodvibes-sdk/platform/runtime/memory';
|
|
45
|
+
import type { WebSearchProviderRegistry, WebSearchService } from '@pellux/goodvibes-sdk/platform/web-search';
|
|
46
|
+
import type { PanelManager } from '../panels/panel-manager.ts';
|
|
47
|
+
import type { HookActivityTracker } from '@pellux/goodvibes-sdk/platform/hooks';
|
|
48
|
+
import type { HookDispatcher, HookWorkbench } from '@pellux/goodvibes-sdk/platform/hooks';
|
|
49
|
+
import type { PluginManager } from '@pellux/goodvibes-sdk/platform/plugins';
|
|
50
|
+
import type { BookmarkManager } from '@pellux/goodvibes-sdk/platform/bookmarks';
|
|
51
|
+
import type { ProfileManager } from '@pellux/goodvibes-sdk/platform/profiles';
|
|
52
|
+
import type { SessionManager, CrossSessionTaskRegistry, SessionChangeTracker } from '@pellux/goodvibes-sdk/platform/sessions';
|
|
53
|
+
import type { ApiTokenAuditor, UserAuthManager } from '@pellux/goodvibes-sdk/platform/security';
|
|
54
|
+
import type { WebhookNotifier } from '@pellux/goodvibes-sdk/platform/integrations';
|
|
55
|
+
import type { McpRegistry } from '@pellux/goodvibes-sdk/platform/mcp';
|
|
56
|
+
import type { BenchmarkStore, CacheHitTracker, FavoritesStore, ModelLimitsService, ProviderCapabilityRegistry, ProviderOptimizer, ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers';
|
|
57
|
+
import type { KeybindingsManager } from '../input/keybindings.ts';
|
|
58
|
+
import type { AdaptivePlanner, DeterministicReplayEngine, ExecutionPlanManager, SessionLineageTracker, SessionMemoryStore } from '@pellux/goodvibes-sdk/platform/core';
|
|
59
|
+
import type { ArchivableProcessRegistry } from '@pellux/goodvibes-sdk/platform/runtime/fleet';
|
|
60
|
+
import type { OrchestrationEngine, WorkstreamCommandService } from './workstream-services.ts';
|
|
61
|
+
import type { WorkPlanStore } from '../work-plans/work-plan-store.ts';
|
|
62
|
+
import type { DaemonHandlerSurfaces } from '../daemon/handlers/index.ts';
|
|
63
|
+
import type { ClusterGroupComposition } from './cluster-group-composition.ts';
|
|
64
|
+
import type { ClusterCoordinator } from '@pellux/goodvibes-sdk/platform/cluster';
|
|
65
|
+
import type { WorkspaceTrustManager } from './trust/workspace-trust.ts';
|
|
66
|
+
|
|
67
|
+
export interface RuntimeServicesOptions {
|
|
68
|
+
readonly runtimeBus: RuntimeEventBus;
|
|
69
|
+
readonly runtimeStore: RuntimeStore;
|
|
70
|
+
readonly configManager: ConfigManager;
|
|
71
|
+
readonly localUserAuthManager?: UserAuthManager;
|
|
72
|
+
readonly featureFlags?: FeatureFlagManager;
|
|
73
|
+
readonly getConversationTitle?: () => string | undefined;
|
|
74
|
+
readonly workingDir: string;
|
|
75
|
+
readonly homeDirectory: string;
|
|
76
|
+
/**
|
|
77
|
+
* The daemon's state root when the host was told one (`--daemon-home`,
|
|
78
|
+
* `GOODVIBES_DAEMON_HOME`); absent ⇒ `<homeDirectory>/.goodvibes/daemon`.
|
|
79
|
+
* Threaded into `SecretsManager` so the override MOVES the daemon-scoped
|
|
80
|
+
* credential store; without it a daemon told to run out of a temp tree still
|
|
81
|
+
* read the real home's daemon secrets, so an "isolated" test daemon held the
|
|
82
|
+
* owner's live credentials. One name for one thing — `resolveGoodVibesHomeOwnership`
|
|
83
|
+
* is the single reader that produces it.
|
|
84
|
+
*/
|
|
85
|
+
readonly daemonHomeDirectory?: string | undefined;
|
|
86
|
+
/** Opt-in (daemon-side only): fold host-observed external coding-agent sessions
|
|
87
|
+
* into the fleet as 'observed-external' rows. Interactive leaves it off and reads
|
|
88
|
+
* the daemon snapshot. Mirrors the SDK's own createRuntimeServices option. */
|
|
89
|
+
readonly observeExternalAgents?: boolean | undefined;
|
|
90
|
+
/** Host power seam opt-in. Fork mirrors the SDK: non-spawning unavailable-seam
|
|
91
|
+
* default (idle-power-services.ts); daemon + embedded runtime pass createHostPowerSeam(). */
|
|
92
|
+
readonly powerSeam?: Parameters<typeof wireIdlePowerAndLiveTurn>[0]['powerSeam'];
|
|
93
|
+
/** Live session id, read per crash-residue sweep so the running session is exempt — see durability-services.ts. */
|
|
94
|
+
readonly currentSessionId?: (() => string | null) | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Wake-word boot provisioning opt-in. Same shape as `powerSeam`: the real
|
|
97
|
+
* entrypoints (daemon/cli.ts, bootstrap-core.ts) ask for it, the one-shot CLI
|
|
98
|
+
* commands do not, and a test composing this graph gets neither a network fetch
|
|
99
|
+
* nor an hourly sweep it did not ask for. See voice-setup-services.ts.
|
|
100
|
+
*/
|
|
101
|
+
readonly provisionWakeModelsAtBoot?: boolean | undefined;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface RuntimeServices {
|
|
105
|
+
readonly workingDirectory: string;
|
|
106
|
+
readonly homeDirectory: string;
|
|
107
|
+
/** The declare-once session-storage handle every session reader and writer threads through — see session-storage-services.ts. */
|
|
108
|
+
readonly surface: SessionSurface;
|
|
109
|
+
readonly shellPaths: ShellPathService;
|
|
110
|
+
readonly configManager: ConfigManager;
|
|
111
|
+
readonly featureFlags: FeatureFlagManager;
|
|
112
|
+
readonly runtimeBus: RuntimeEventBus;
|
|
113
|
+
readonly runtimeStore: RuntimeStore;
|
|
114
|
+
readonly runtimeDispatch: DomainDispatch;
|
|
115
|
+
readonly panelManager: PanelManager;
|
|
116
|
+
readonly keybindingsManager: KeybindingsManager;
|
|
117
|
+
readonly routeBindings: RouteBindingManager;
|
|
118
|
+
readonly surfaceRegistry: SurfaceRegistry;
|
|
119
|
+
readonly channelPlugins: ChannelPluginRegistry;
|
|
120
|
+
readonly channelDeliveryRouter: ChannelDeliveryRouter;
|
|
121
|
+
readonly watcherRegistry: WatcherRegistry;
|
|
122
|
+
readonly approvalBroker: ApprovalBroker;
|
|
123
|
+
/** Loopback-fetch approval that rides the approval broker; shared by the tool registry and orchestrator so every surface asks the same way. */
|
|
124
|
+
readonly localhostFetchApproval: ReturnType<typeof buildLocalhostFetchApproval>;
|
|
125
|
+
/** Terminal prompt-answer handler that rides the approval broker; shared by the tool registry and orchestrator so an interactive command's prompt gets an ask/card on every surface. */
|
|
126
|
+
readonly execPromptAnswerHandler: ReturnType<typeof buildExecPromptAnswerHandler>;
|
|
127
|
+
/** Routes curated runtime-domain events into the panel_only notification feed (the panel's live producer). */
|
|
128
|
+
readonly notificationDispatcher: NotificationDispatcher;
|
|
129
|
+
/** Durable user-origin permission rules (remembered approvals); permissions.rules.* surface. Mirrors the SDK composition. */
|
|
130
|
+
readonly userPermissionRuleStore: UserPermissionRuleStore;
|
|
131
|
+
readonly sessionBroker: SharedSessionBroker;
|
|
132
|
+
readonly deliveryManager: AutomationDeliveryManager;
|
|
133
|
+
readonly automationManager: AutomationManager;
|
|
134
|
+
readonly gatewayMethods: GatewayMethodCatalog;
|
|
135
|
+
readonly artifactStore: ArtifactStore;
|
|
136
|
+
readonly knowledgeService: KnowledgeService;
|
|
137
|
+
readonly agentKnowledgeService: KnowledgeService;
|
|
138
|
+
readonly homeGraphService: HomeGraphService;
|
|
139
|
+
readonly projectPlanningService: ProjectPlanningService;
|
|
140
|
+
readonly projectPlanningProjectId: string;
|
|
141
|
+
readonly workPlanStore: WorkPlanStore;
|
|
142
|
+
readonly memoryStore: MemoryStore;
|
|
143
|
+
readonly memoryRegistry: MemoryRegistry;
|
|
144
|
+
/** Host-vs-client memory access: local until bootstrap.ts activates it for an adopted 'external' daemon (mirrors sessionSpine). */
|
|
145
|
+
readonly memorySpine: MemorySpineClient;
|
|
146
|
+
readonly serviceRegistry: ServiceRegistry;
|
|
147
|
+
readonly secretsManager: SecretsManager;
|
|
148
|
+
readonly stepUpService: StepUpService;
|
|
149
|
+
readonly pairingTokens: PairingTokenManager; // backs pairing.tokens.* verbs + the settings device surface (mirrors the SDK composition)
|
|
150
|
+
readonly subscriptionManager: SubscriptionManager;
|
|
151
|
+
readonly localUserAuthManager: UserAuthManager;
|
|
152
|
+
readonly profileManager: ProfileManager;
|
|
153
|
+
readonly bookmarkManager: BookmarkManager;
|
|
154
|
+
readonly sessionManager: SessionManager;
|
|
155
|
+
readonly sessionOrchestration: CrossSessionTaskRegistry;
|
|
156
|
+
readonly hookDispatcher: HookDispatcher;
|
|
157
|
+
readonly hookActivityTracker: HookActivityTracker;
|
|
158
|
+
readonly hookWorkbench: HookWorkbench;
|
|
159
|
+
readonly pluginManager: PluginManager;
|
|
160
|
+
readonly workflow: WorkflowServices;
|
|
161
|
+
readonly voiceProviders: VoiceProviderRegistry;
|
|
162
|
+
readonly voiceService: VoiceService;
|
|
163
|
+
readonly webSearchProviders: WebSearchProviderRegistry;
|
|
164
|
+
readonly webSearchService: WebSearchService;
|
|
165
|
+
readonly mediaProviders: MediaProviderRegistry;
|
|
166
|
+
readonly multimodalService: MultimodalService;
|
|
167
|
+
readonly memoryEmbeddingRegistry: MemoryEmbeddingProviderRegistry;
|
|
168
|
+
readonly channelPolicy: ChannelPolicyManager;
|
|
169
|
+
readonly mcpRegistry: McpRegistry;
|
|
170
|
+
readonly tokenAuditor: ApiTokenAuditor;
|
|
171
|
+
readonly componentHealthMonitor: ComponentHealthMonitor;
|
|
172
|
+
readonly worktreeRegistry: WorktreeRegistry;
|
|
173
|
+
readonly sandboxSessionRegistry: SandboxSessionRegistry;
|
|
174
|
+
readonly webhookNotifier: WebhookNotifier;
|
|
175
|
+
/** Terminal focus tracker — fed by input/handler-feed.ts, read by the alert notifiers in core/. */
|
|
176
|
+
readonly focusTracker: FocusTracker;
|
|
177
|
+
readonly replayEngine: DeterministicReplayEngine;
|
|
178
|
+
readonly providerOptimizer: ProviderOptimizer;
|
|
179
|
+
readonly providerCapabilityRegistry: ProviderCapabilityRegistry;
|
|
180
|
+
readonly cacheHitTracker: CacheHitTracker;
|
|
181
|
+
readonly favoritesStore: FavoritesStore;
|
|
182
|
+
readonly benchmarkStore: BenchmarkStore;
|
|
183
|
+
readonly modelLimitsService: ModelLimitsService;
|
|
184
|
+
readonly providerRegistry: ProviderRegistry;
|
|
185
|
+
readonly toolLLM: ToolLLM;
|
|
186
|
+
readonly distributedRuntime: DistributedRuntimeManager;
|
|
187
|
+
/**
|
|
188
|
+
* The paired-phone feature for this host: the grants ledger, the capture
|
|
189
|
+
* store, the housekeeping sweeps, and the capability service every `device.*`
|
|
190
|
+
* setting governs. Bound to the `devices.*` verbs at composition; the `phone`
|
|
191
|
+
* tool is registered on it in the bootstrap tail.
|
|
192
|
+
*/
|
|
193
|
+
readonly devicePosture: DevicePostureRuntime;
|
|
194
|
+
readonly daemonHandlers: DaemonHandlerSurfaces;
|
|
195
|
+
/** Elects the one node on this network that consumes inbound messages; hand it to the DaemonServer so its consumers share this leadership instead of holding a second election. */
|
|
196
|
+
readonly clusterCoordinator: ClusterCoordinator;
|
|
197
|
+
/** LAN group membership: identity, keys, roster, and the `cluster` verbs. */
|
|
198
|
+
readonly clusterGroup: ClusterGroupComposition;
|
|
199
|
+
/** Start the group layer and then the election, in that order. Idempotent. */
|
|
200
|
+
readonly startCluster: () => Promise<void>;
|
|
201
|
+
readonly remoteRunnerRegistry: RemoteRunnerRegistry;
|
|
202
|
+
readonly remoteSupervisor: RemoteSupervisor;
|
|
203
|
+
readonly sessionMemoryStore: SessionMemoryStore;
|
|
204
|
+
readonly sessionLineageTracker: SessionLineageTracker;
|
|
205
|
+
readonly sessionChangeTracker: SessionChangeTracker;
|
|
206
|
+
readonly planManager: ExecutionPlanManager;
|
|
207
|
+
readonly adaptivePlanner: AdaptivePlanner;
|
|
208
|
+
readonly idempotencyStore: IdempotencyStore;
|
|
209
|
+
readonly overflowHandler: OverflowHandler;
|
|
210
|
+
readonly policyRuntimeState: PolicyRuntimeState;
|
|
211
|
+
readonly archetypeLoader: ArchetypeLoader;
|
|
212
|
+
readonly agentManager: AgentManager;
|
|
213
|
+
readonly agentMessageBus: AgentMessageBus;
|
|
214
|
+
readonly agentOrchestrator: AgentOrchestrator;
|
|
215
|
+
readonly contextAccountingHolder: ContextAccountingHolder; // bound at bootstrap.ts; see context-accounting-source.ts
|
|
216
|
+
readonly wrfcController: WrfcController;
|
|
217
|
+
readonly processManager: ProcessManager;
|
|
218
|
+
/** The phase/work-item orchestration engine — see runtime/workstream-services.ts. */
|
|
219
|
+
readonly orchestrationEngine: OrchestrationEngine;
|
|
220
|
+
readonly workstreamCommands: WorkstreamCommandService;
|
|
221
|
+
/** The repo source-tree code index — see runtime/code-index-services.ts. */
|
|
222
|
+
readonly codeIndexStore: CodeIndexStore;
|
|
223
|
+
readonly codeIndexReindexScheduler: CodeIndexReindexScheduler; // tool-site reindex
|
|
224
|
+
/** Daily snapshots of every SQLite store this runtime writes, with bounded retention; unref'd timers (mirrors the SDK composition — hosts that tear down a runtime stop() it themselves). */
|
|
225
|
+
readonly storeSnapshotScheduler: StoreSnapshotScheduler;
|
|
226
|
+
readonly appendOnlyRetentionScheduler: ReturnType<typeof createDurabilityServices>['appendOnlyRetentionScheduler']; // periodic append-only sweep; unref'd timers, stop() on teardown
|
|
227
|
+
/** Stops the recurring crash-residue sweep; idempotent, unref'd timer (hosts that tear a runtime down call it). */
|
|
228
|
+
readonly stopDurabilityHousekeeping: () => void;
|
|
229
|
+
/** Stops the wake-word recovery sweep and a pending boot provision; a no-op unless `provisionWakeModelsAtBoot` was set. */
|
|
230
|
+
readonly stopWakeHousekeeping: () => void;
|
|
231
|
+
readonly memoryConsolidationScheduler: MemoryConsolidationScheduler;
|
|
232
|
+
readonly powerManager: PowerManager;
|
|
233
|
+
/** The daemon's memory governor (default ON). Backs ops.memory.get and defends the daemon's footprint by tier. */
|
|
234
|
+
readonly memoryGovernor: MemoryGovernor;
|
|
235
|
+
/** Registry of every retained cache the governor can shrink (knowledge stores + shared session broker). */
|
|
236
|
+
readonly cacheRegistry: CacheRegistry;
|
|
237
|
+
/** Controller the governor uses to pause/resume the deferrable background jobs under pressure. */
|
|
238
|
+
readonly pauseController: PauseController;
|
|
239
|
+
readonly sessionLiveTurnControls: SessionLiveTurnControlsHolder;
|
|
240
|
+
/** Unified live process registry (agents, WRFC chains, workflows, watchers, background processes) backing the Fleet panel; archive-aware — finished subtrees can be moved to the session archive view. */
|
|
241
|
+
readonly processRegistry: ArchivableProcessRegistry;
|
|
242
|
+
readonly modeManager: ModeManager;
|
|
243
|
+
readonly fileUndoManager: FileUndoManager;
|
|
244
|
+
readonly workspaceCheckpointManager: WorkspaceCheckpointManager;
|
|
245
|
+
/** Per-workspace trust gate — restricts write/execute/delegate tools until the workspace is trusted. */
|
|
246
|
+
readonly workspaceTrustManager: WorkspaceTrustManager;
|
|
247
|
+
readonly integrationHelpers: IntegrationHelperService;
|
|
248
|
+
/** Re-root path-bound stores (MemoryStore, ProjectIndex) to a new working directory, called by WorkspaceSwapManager after verification; stores needing a process restart just warn-log and keep serving the old path until the daemon restarts with the new --working-dir. */
|
|
249
|
+
rerootStores(newWorkingDir: string): Promise<void>;
|
|
250
|
+
/**
|
|
251
|
+
* Cancel the agent runs this graph is hosting, returning how many.
|
|
252
|
+
*
|
|
253
|
+
* Required by the SDK's RuntimePollerOwners: by dispose() time the fleet
|
|
254
|
+
* registry, orchestration engine, process registry and bus these runs report
|
|
255
|
+
* through are already down, so a run still described as "running" is orphaned
|
|
256
|
+
* rather than preserved.
|
|
257
|
+
*/
|
|
258
|
+
cancelHostedAgentRuns(): number;
|
|
259
|
+
dispose(): void; // Stop every poller this graph started; best-effort, total, idempotent. This surface owns its graph — see disposal-wiring.ts.
|
|
260
|
+
}
|