@pellux/goodvibes-tui 0.19.59 → 0.19.61
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 +52 -0
- package/README.md +1 -1
- package/docs/foundation-artifacts/operator-contract.json +2398 -2086
- package/package.json +2 -2
- package/src/audio/player.ts +1 -1
- package/src/audio/spoken-turn-controller.ts +5 -5
- package/src/audio/spoken-turn-model-routing.ts +3 -3
- package/src/audio/spoken-turn-wiring.ts +3 -3
- package/src/cli/bundle-command.ts +3 -3
- package/src/cli/entrypoint.ts +9 -8
- package/src/cli/management-commands.ts +6 -6
- package/src/cli/management.ts +17 -16
- package/src/cli/provider-auth-routes.ts +1 -1
- package/src/cli/service-posture.ts +2 -2
- package/src/cli/status.ts +4 -3
- package/src/cli/surface-command.ts +1 -1
- package/src/config/index.ts +12 -11
- package/src/config/provider-model.ts +23 -0
- package/src/config/secret-config.ts +1 -1
- package/src/config/secrets.ts +3 -3
- package/src/core/composer-state.ts +1 -1
- package/src/core/conversation-rendering.ts +3 -3
- package/src/core/conversation.ts +10 -10
- package/src/core/orchestrator.ts +1 -1
- package/src/core/system-message-router.ts +3 -3
- package/src/daemon/cli.ts +19 -19
- package/src/daemon/safe-serve.ts +2 -2
- package/src/input/bookmark-modal.ts +1 -1
- package/src/input/command-registry.ts +31 -31
- package/src/input/commands/control-room-runtime.ts +3 -3
- package/src/input/commands/conversation-runtime.ts +1 -1
- package/src/input/commands/diff-runtime.ts +1 -1
- package/src/input/commands/discovery-runtime.ts +2 -2
- package/src/input/commands/eval.ts +6 -6
- package/src/input/commands/git-runtime.ts +2 -2
- package/src/input/commands/guidance-runtime.ts +3 -3
- package/src/input/commands/health-runtime.ts +10 -10
- package/src/input/commands/incident-runtime.ts +1 -1
- package/src/input/commands/integration-runtime.ts +2 -2
- package/src/input/commands/intelligence-runtime.ts +3 -3
- package/src/input/commands/knowledge.ts +1 -1
- package/src/input/commands/local-auth-runtime.ts +1 -1
- package/src/input/commands/local-provider-runtime.ts +3 -4
- package/src/input/commands/local-runtime.ts +6 -6
- package/src/input/commands/local-setup-review.ts +3 -3
- package/src/input/commands/local-setup.ts +3 -3
- package/src/input/commands/managed-runtime.ts +9 -8
- package/src/input/commands/marketplace-runtime.ts +1 -1
- package/src/input/commands/mcp-runtime.ts +1 -1
- package/src/input/commands/operator-panel-runtime.ts +1 -1
- package/src/input/commands/operator-runtime.ts +5 -5
- package/src/input/commands/platform-access-runtime.ts +2 -2
- package/src/input/commands/platform-sandbox-qemu.ts +2 -2
- package/src/input/commands/platform-sandbox-runtime.ts +6 -6
- package/src/input/commands/platform-sandbox-session.ts +2 -2
- package/src/input/commands/policy-dispatch.ts +6 -6
- package/src/input/commands/product-runtime.ts +2 -2
- package/src/input/commands/profile-sync-runtime.ts +2 -2
- package/src/input/commands/provider-accounts-runtime.ts +1 -1
- package/src/input/commands/provider.ts +3 -3
- package/src/input/commands/quit-shared.ts +2 -2
- package/src/input/commands/recall-bundle.ts +2 -2
- package/src/input/commands/recall-capture.ts +2 -2
- package/src/input/commands/recall-query.ts +2 -2
- package/src/input/commands/recall-shared.ts +2 -2
- package/src/input/commands/remote-runtime-setup.ts +2 -2
- package/src/input/commands/remote-runtime.ts +1 -1
- package/src/input/commands/replay-runtime.ts +1 -1
- package/src/input/commands/runtime-services.ts +11 -11
- package/src/input/commands/schedule-runtime.ts +6 -6
- package/src/input/commands/services-runtime.ts +1 -1
- package/src/input/commands/session-content.ts +5 -5
- package/src/input/commands/session-workflow.ts +5 -5
- package/src/input/commands/session.ts +2 -2
- package/src/input/commands/settings-sync-runtime.ts +5 -4
- package/src/input/commands/share-runtime.ts +3 -3
- package/src/input/commands/shell-core.ts +4 -5
- package/src/input/commands/skills-runtime.ts +1 -1
- package/src/input/commands/subscription-runtime.ts +7 -7
- package/src/input/commands/tasks-runtime.ts +5 -5
- package/src/input/commands/teamwork-runtime.ts +3 -3
- package/src/input/commands/teleport-runtime.ts +1 -1
- package/src/input/commands/worktree-runtime.ts +3 -3
- package/src/input/feed-context-factory.ts +1 -1
- package/src/input/file-picker.ts +1 -1
- package/src/input/handler-command-route.ts +2 -2
- package/src/input/handler-content-actions.ts +7 -7
- package/src/input/handler-feed-routes.ts +3 -3
- package/src/input/handler-feed.ts +2 -2
- package/src/input/handler-interactions.ts +1 -1
- package/src/input/handler-modal-routes.ts +1 -2
- package/src/input/handler-modal-token-routes.ts +1 -1
- package/src/input/handler-onboarding.ts +9 -6
- package/src/input/handler-picker-routes.ts +3 -3
- package/src/input/handler-shortcuts.ts +1 -1
- package/src/input/handler-ui-state.ts +1 -1
- package/src/input/handler.ts +5 -5
- package/src/input/input-history.ts +2 -2
- package/src/input/keybindings.ts +3 -3
- package/src/input/model-picker-types.ts +1 -1
- package/src/input/model-picker.ts +6 -6
- package/src/input/onboarding/handler-onboarding-routes.ts +1 -1
- package/src/input/onboarding/onboarding-runtime-status.ts +1 -1
- package/src/input/onboarding/onboarding-wizard-apply.ts +2 -2
- package/src/input/onboarding/onboarding-wizard-external-surfaces.ts +1 -1
- package/src/input/panel-integration-actions.ts +1 -1
- package/src/input/profile-picker-modal.ts +5 -5
- package/src/input/session-picker-modal.ts +2 -2
- package/src/input/settings-modal-behavior.ts +3 -5
- package/src/input/settings-modal-secrets.ts +4 -4
- package/src/input/settings-modal-subscriptions.ts +3 -3
- package/src/input/settings-modal-types.ts +4 -4
- package/src/input/settings-modal.ts +9 -9
- package/src/input/tts-settings-actions.ts +1 -1
- package/src/main.ts +16 -17
- package/src/panels/agent-inspector-panel.ts +4 -4
- package/src/panels/agent-logs-panel.ts +2 -2
- package/src/panels/approval-panel.ts +2 -2
- package/src/panels/builtin/operations.ts +1 -1
- package/src/panels/builtin/session.ts +2 -2
- package/src/panels/builtin/shared.ts +26 -26
- package/src/panels/context-visualizer-panel.ts +3 -3
- package/src/panels/cost-tracker-panel.ts +1 -1
- package/src/panels/debug-panel.ts +1 -1
- package/src/panels/eval-panel.ts +1 -1
- package/src/panels/forensics-panel.ts +3 -3
- package/src/panels/git-panel.ts +3 -3
- package/src/panels/hooks-panel.ts +7 -7
- package/src/panels/incident-review-panel.ts +2 -2
- package/src/panels/knowledge-panel.ts +1 -1
- package/src/panels/local-auth-panel.ts +1 -1
- package/src/panels/marketplace-panel.ts +2 -2
- package/src/panels/mcp-panel.ts +2 -2
- package/src/panels/memory-panel.ts +2 -2
- package/src/panels/ops-control-panel.ts +1 -1
- package/src/panels/ops-strategy-panel.ts +2 -2
- package/src/panels/orchestration-panel.ts +1 -1
- package/src/panels/panel-list-panel.ts +1 -1
- package/src/panels/plan-dashboard-panel.ts +1 -1
- package/src/panels/plugins-panel.ts +1 -1
- package/src/panels/policy-panel.ts +1 -1
- package/src/panels/project-planning-panel.ts +1 -1
- package/src/panels/provider-account-snapshot.ts +1 -1
- package/src/panels/provider-health-domains.ts +4 -4
- package/src/panels/provider-health-panel.ts +4 -4
- package/src/panels/provider-stats-panel.ts +1 -1
- package/src/panels/qr-panel.ts +1 -1
- package/src/panels/sandbox-panel.ts +3 -3
- package/src/panels/schedule-panel.ts +4 -4
- package/src/panels/security-panel.ts +1 -1
- package/src/panels/services-panel.ts +1 -1
- package/src/panels/session-browser-panel.ts +3 -3
- package/src/panels/settings-sync-panel.ts +1 -1
- package/src/panels/skills-panel.ts +1 -1
- package/src/panels/subscription-panel.ts +2 -2
- package/src/panels/system-messages-panel.ts +1 -1
- package/src/panels/tasks-panel.ts +5 -5
- package/src/panels/thinking-panel.ts +1 -1
- package/src/panels/token-budget-panel.ts +2 -2
- package/src/panels/tool-inspector-panel.ts +1 -1
- package/src/panels/worktree-panel.ts +6 -6
- package/src/panels/wrfc-panel.ts +4 -4
- package/src/permissions/prompt.ts +3 -3
- package/src/planning/project-planning-coordinator.ts +1 -1
- package/src/plugins/loader.ts +2 -2
- package/src/renderer/agent-detail-modal.ts +5 -5
- package/src/renderer/bookmark-modal.ts +1 -1
- package/src/renderer/git-status.ts +3 -3
- package/src/renderer/help-overlay.ts +1 -1
- package/src/renderer/live-tail-modal.ts +2 -2
- package/src/renderer/model-picker-overlay.ts +2 -2
- package/src/renderer/model-workspace.ts +1 -1
- package/src/renderer/process-modal.ts +3 -3
- package/src/renderer/qr-renderer.ts +1 -1
- package/src/renderer/semantic-diff.ts +6 -6
- package/src/renderer/syntax-highlighter.ts +3 -3
- package/src/renderer/tool-call.ts +1 -1
- package/src/runtime/bootstrap-command-context.ts +46 -46
- package/src/runtime/bootstrap-command-parts.ts +46 -47
- package/src/runtime/bootstrap-core.ts +24 -23
- package/src/runtime/bootstrap-hook-bridge.ts +14 -14
- package/src/runtime/bootstrap-shell.ts +15 -15
- package/src/runtime/bootstrap.ts +27 -27
- package/src/runtime/cloudflare-control-plane.ts +1 -1
- package/src/runtime/context.ts +13 -13
- package/src/runtime/diagnostics/panels/index.ts +14 -14
- package/src/runtime/diagnostics/panels/ops.ts +7 -7
- package/src/runtime/diagnostics/panels/panel-resources.ts +1 -1
- package/src/runtime/diagnostics/panels/policy.ts +11 -11
- package/src/runtime/index.ts +625 -163
- package/src/runtime/onboarding/apply.ts +1 -1
- package/src/runtime/onboarding/derivation.ts +3 -2
- package/src/runtime/onboarding/markers.ts +1 -1
- package/src/runtime/onboarding/snapshot.ts +3 -2
- package/src/runtime/onboarding/types.ts +2 -2
- package/src/runtime/onboarding/verify.ts +1 -1
- package/src/runtime/perf/panel-contracts.ts +2 -2
- package/src/runtime/perf/panel-health-monitor.ts +2 -2
- package/src/runtime/sandbox-public-gaps.ts +486 -0
- package/src/runtime/services.ts +114 -67
- package/src/runtime/store/domains/index.ts +50 -50
- package/src/runtime/store/index.ts +21 -20
- package/src/runtime/store/selectors/index.ts +17 -17
- package/src/runtime/store/state.ts +50 -50
- package/src/runtime/surface-feature-flags.ts +1 -3
- package/src/runtime/terminal-output-guard.ts +1 -1
- package/src/runtime/ui/index.ts +7 -7
- package/src/runtime/ui/model-picker/data-provider.ts +7 -7
- package/src/runtime/ui/model-picker/health-enrichment.ts +7 -7
- package/src/runtime/ui/model-picker/index.ts +11 -11
- package/src/runtime/ui/model-picker/types.ts +1 -1
- package/src/runtime/ui/provider-health/data-provider.ts +4 -4
- package/src/runtime/ui/provider-health/fallback-visualizer.ts +5 -3
- package/src/runtime/ui/provider-health/index.ts +7 -7
- package/src/runtime/ui/provider-health/types.ts +1 -1
- package/src/runtime/ui-events.ts +1 -1
- package/src/runtime/ui-read-model-helpers.ts +1 -1
- package/src/runtime/ui-read-models-observability-maintenance.ts +1 -1
- package/src/runtime/ui-read-models-observability-options.ts +1 -1
- package/src/runtime/ui-read-models-observability-remote.ts +1 -1
- package/src/runtime/ui-read-models-observability-security.ts +1 -1
- package/src/runtime/ui-read-models-observability-system.ts +1 -1
- package/src/runtime/ui-read-models-observability.ts +1 -1
- package/src/runtime/ui-read-models.ts +8 -8
- package/src/runtime/ui-service-queries.ts +1 -1
- package/src/runtime/ui-services.ts +8 -8
- package/src/scripts/process-messages.ts +1 -1
- package/src/shell/blocking-input.ts +2 -2
- package/src/shell/ui-openers.ts +8 -7
- package/src/tools/index.ts +1 -1
- package/src/utils/clipboard.ts +3 -3
- package/src/version.ts +1 -1
package/src/runtime/bootstrap.ts
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { join } from 'node:path';
|
|
13
13
|
import { Orchestrator, type OrchestratorUserInputOptions } from '../core/orchestrator.ts';
|
|
14
|
-
import { AcpManager } from '@pellux/goodvibes-sdk/platform/acp
|
|
15
|
-
import { getTierPromptSupplement, getTierForContextWindow } from '@pellux/goodvibes-sdk/platform/providers
|
|
16
|
-
import { logger } from '@pellux/goodvibes-sdk/platform/utils
|
|
17
|
-
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions
|
|
14
|
+
import { AcpManager } from '@pellux/goodvibes-sdk/platform/acp';
|
|
15
|
+
import { getTierPromptSupplement, getTierForContextWindow } from '@pellux/goodvibes-sdk/platform/providers';
|
|
16
|
+
import { logger } from '@pellux/goodvibes-sdk/platform/utils';
|
|
17
|
+
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions';
|
|
18
18
|
import type { CommandContext } from '../input/command-registry.ts';
|
|
19
19
|
import type { InputHistory } from '../input/input-history.ts';
|
|
20
20
|
import type { GitStatusProvider } from '../renderer/git-status.ts';
|
|
@@ -23,31 +23,31 @@ import type { SelectionManager } from '../input/selection.ts';
|
|
|
23
23
|
import type { Compositor } from '../renderer/compositor.ts';
|
|
24
24
|
|
|
25
25
|
import type { RuntimeContext, BootstrapOptions } from './context.ts';
|
|
26
|
-
import { shutdownRuntime, fireSessionStart, saveSession } from '
|
|
27
|
-
import { createTaskManager } from '
|
|
28
|
-
import { OpsControlPlane } from '
|
|
29
|
-
import { AcpTaskAdapter } from '
|
|
26
|
+
import { shutdownRuntime, fireSessionStart, saveSession } from '@/runtime/index.ts';
|
|
27
|
+
import { createTaskManager } from '@/runtime/index.ts';
|
|
28
|
+
import { OpsControlPlane } from '@/runtime/index.ts';
|
|
29
|
+
import { AcpTaskAdapter } from '@/runtime/index.ts';
|
|
30
30
|
import type { SystemMessageRouter } from '../core/system-message-router.ts';
|
|
31
|
-
import { emitSessionReady, emitSessionStarted } from '
|
|
31
|
+
import { emitSessionReady, emitSessionStarted } from '@/runtime/index.ts';
|
|
32
32
|
import {
|
|
33
33
|
loadLastConversation,
|
|
34
34
|
writeLastSessionPointer,
|
|
35
|
-
} from '
|
|
36
|
-
import { startBackgroundProviderRegistration } from '
|
|
37
|
-
import { restoreSavedModel } from '
|
|
38
|
-
import { startExternalServices, type ExternalServicesHandle, type HostServiceStatus } from '
|
|
39
|
-
import { getOrCreateCompanionToken, pruneStaleOperatorTokens } from '@pellux/goodvibes-sdk/platform/pairing
|
|
35
|
+
} from '@/runtime/index.ts';
|
|
36
|
+
import { startBackgroundProviderRegistration } from '@/runtime/index.ts';
|
|
37
|
+
import { restoreSavedModel } from '@/runtime/index.ts';
|
|
38
|
+
import { startExternalServices, type ExternalServicesHandle, type HostServiceStatus } from '@/runtime/index.ts';
|
|
39
|
+
import { getOrCreateCompanionToken, pruneStaleOperatorTokens } from '@pellux/goodvibes-sdk/platform/pairing';
|
|
40
40
|
import { workspaceOperatorTokenCandidates } from './operator-token-cleanup.ts';
|
|
41
41
|
import type { UiRuntimeServices } from './ui-services.ts';
|
|
42
|
-
import { createDeferredStartupCoordinator } from '
|
|
42
|
+
import { createDeferredStartupCoordinator } from '@/runtime/index.ts';
|
|
43
43
|
import { initializeBootstrapCore } from './bootstrap-core.ts';
|
|
44
44
|
import { createBootstrapShell } from './bootstrap-shell.ts';
|
|
45
|
-
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils
|
|
46
|
-
import { DaemonServer } from '@pellux/goodvibes-sdk/platform/daemon
|
|
47
|
-
import { HttpListener } from '@pellux/goodvibes-sdk/platform/daemon
|
|
45
|
+
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils';
|
|
46
|
+
import { DaemonServer } from '@pellux/goodvibes-sdk/platform/daemon';
|
|
47
|
+
import { HttpListener } from '@pellux/goodvibes-sdk/platform/daemon';
|
|
48
48
|
import { createSafeHostServeFactory } from '../daemon/safe-serve.ts';
|
|
49
49
|
|
|
50
|
-
type ExternalServiceFactories = NonNullable<Parameters<typeof startExternalServices>[
|
|
50
|
+
type ExternalServiceFactories = NonNullable<Parameters<typeof startExternalServices>[4]>;
|
|
51
51
|
|
|
52
52
|
// ── Bootstrap context type ──────────────────────────────────────────────────
|
|
53
53
|
|
|
@@ -136,7 +136,7 @@ export async function bootstrapRuntime(
|
|
|
136
136
|
const workingDir = options.workingDir;
|
|
137
137
|
const configManager = options.configManager;
|
|
138
138
|
const controlPlaneRecentEventsRef: {
|
|
139
|
-
value: (limit: number) => readonly import('@pellux/goodvibes-sdk/platform/control-plane
|
|
139
|
+
value: (limit: number) => readonly import('@pellux/goodvibes-sdk/platform/control-plane').ControlPlaneRecentEvent[];
|
|
140
140
|
} = {
|
|
141
141
|
value: (_limit) => [],
|
|
142
142
|
};
|
|
@@ -227,11 +227,11 @@ export async function bootstrapRuntime(
|
|
|
227
227
|
});
|
|
228
228
|
conversation.setSessionLineageTracker(services.sessionLineageTracker);
|
|
229
229
|
|
|
230
|
-
const acpManager = new AcpManager(
|
|
231
|
-
(request) => permissionPromptRef.requestPermission(request),
|
|
230
|
+
const acpManager = new AcpManager({
|
|
231
|
+
requestPermission: (request) => permissionPromptRef.requestPermission(request),
|
|
232
232
|
runtimeBus,
|
|
233
|
-
services.hookDispatcher,
|
|
234
|
-
);
|
|
233
|
+
hookDispatcher: services.hookDispatcher,
|
|
234
|
+
});
|
|
235
235
|
const acpTaskAdapter = new AcpTaskAdapter(store);
|
|
236
236
|
const ACP_TASK_SYNC_INTERVAL_MS = 1_000;
|
|
237
237
|
const acpTaskSyncInterval = setInterval(() => {
|
|
@@ -401,8 +401,8 @@ export async function bootstrapRuntime(
|
|
|
401
401
|
configManager,
|
|
402
402
|
runtimeBus,
|
|
403
403
|
hookDispatcher,
|
|
404
|
-
createExternalServiceFactories(companionTokenRecord.token),
|
|
405
404
|
services,
|
|
405
|
+
createExternalServiceFactories(companionTokenRecord.token),
|
|
406
406
|
);
|
|
407
407
|
externalServices = await externalServicesPromise;
|
|
408
408
|
controlPlaneRecentEventsRef.value = (limit) => externalServices.listRecentControlPlaneEvents(limit);
|
|
@@ -464,8 +464,8 @@ export async function bootstrapRuntime(
|
|
|
464
464
|
configManager,
|
|
465
465
|
runtimeBus,
|
|
466
466
|
hookDispatcher,
|
|
467
|
-
createExternalServiceFactories(companionTokenRecord.token),
|
|
468
467
|
services,
|
|
468
|
+
createExternalServiceFactories(companionTokenRecord.token),
|
|
469
469
|
);
|
|
470
470
|
externalServices = await externalServicesPromise;
|
|
471
471
|
controlPlaneRecentEventsRef.value = (limit) => externalServices.listRecentControlPlaneEvents(limit);
|
|
@@ -495,7 +495,7 @@ export async function bootstrapRuntime(
|
|
|
495
495
|
providerRegistry,
|
|
496
496
|
runtime,
|
|
497
497
|
requestRender,
|
|
498
|
-
restoreSavedModel,
|
|
498
|
+
restoreRuntimeModel: restoreSavedModel,
|
|
499
499
|
systemMessageRouter,
|
|
500
500
|
shellPaths: services.shellPaths,
|
|
501
501
|
surfaceRoot: 'tui',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
|
-
import { getOrCreateCompanionToken } from '@pellux/goodvibes-sdk/platform/pairing
|
|
2
|
+
import { getOrCreateCompanionToken } from '@pellux/goodvibes-sdk/platform/pairing';
|
|
3
3
|
import type { ConfigManager } from '../config/index.ts';
|
|
4
4
|
|
|
5
5
|
export const CLOUDFLARE_COMPONENT_IDS = [
|
package/src/runtime/context.ts
CHANGED
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { ConversationManager } from '../core/conversation';
|
|
9
9
|
import type { Orchestrator } from '../core/orchestrator';
|
|
10
|
-
import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools
|
|
11
|
-
import type { PermissionManager } from '@pellux/goodvibes-sdk/platform/permissions
|
|
12
|
-
import type { HookDispatcher } from '@pellux/goodvibes-sdk/platform/hooks
|
|
13
|
-
import type { FileStateCache } from '@pellux/goodvibes-sdk/platform/state
|
|
14
|
-
import type { ProjectIndex } from '@pellux/goodvibes-sdk/platform/state
|
|
15
|
-
import type { ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers
|
|
10
|
+
import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools';
|
|
11
|
+
import type { PermissionManager } from '@pellux/goodvibes-sdk/platform/permissions';
|
|
12
|
+
import type { HookDispatcher } from '@pellux/goodvibes-sdk/platform/hooks';
|
|
13
|
+
import type { FileStateCache } from '@pellux/goodvibes-sdk/platform/state';
|
|
14
|
+
import type { ProjectIndex } from '@pellux/goodvibes-sdk/platform/state';
|
|
15
|
+
import type { ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers';
|
|
16
16
|
import type { RuntimeStore } from './store/index.ts';
|
|
17
|
-
import type { RuntimeEventBus } from '
|
|
18
|
-
import type { FeatureFlagManager } from '
|
|
19
|
-
import type { MutableRuntimeState } from '
|
|
20
|
-
import type { SessionSnapshot } from '
|
|
17
|
+
import type { RuntimeEventBus } from '@/runtime/index.ts';
|
|
18
|
+
import type { FeatureFlagManager } from '@/runtime/index.ts';
|
|
19
|
+
import type { MutableRuntimeState } from '@/runtime/index.ts';
|
|
20
|
+
import type { SessionSnapshot } from '@/runtime/index.ts';
|
|
21
21
|
import type { RuntimeServices } from './services.ts';
|
|
22
22
|
import type { ComponentHealthMonitor } from './perf/panel-health-monitor.ts';
|
|
23
|
-
import type { WorktreeRegistry } from '
|
|
24
|
-
import type { SandboxSessionRegistry } from '
|
|
23
|
+
import type { WorktreeRegistry } from '@/runtime/index.ts';
|
|
24
|
+
import type { SandboxSessionRegistry } from '@/runtime/index.ts';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Options accepted by bootstrapRuntime().
|
|
@@ -32,7 +32,7 @@ export interface BootstrapOptions {
|
|
|
32
32
|
/** App-owned home directory for this runtime instance. */
|
|
33
33
|
homeDirectory: string;
|
|
34
34
|
/** Explicit app-owned config manager for this runtime instance. */
|
|
35
|
-
configManager: import('@pellux/goodvibes-sdk/platform/config
|
|
35
|
+
configManager: import('@pellux/goodvibes-sdk/platform/config').ConfigManager;
|
|
36
36
|
/**
|
|
37
37
|
* Callback invoked when the app should exit.
|
|
38
38
|
* If provided, commandContext.exit is wired during bootstrap.
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Import from this module to access the individual diagnostic panel providers.
|
|
5
5
|
*/
|
|
6
|
-
export { ToolCallsPanel } from '
|
|
7
|
-
export { AgentsPanel } from '
|
|
8
|
-
export { TasksPanel } from '
|
|
9
|
-
export { EventsPanel } from '
|
|
10
|
-
export { StateInspectorPanel } from '
|
|
11
|
-
export type { InspectableDomain } from '
|
|
12
|
-
export { HealthPanel } from '
|
|
13
|
-
export { DivergencePanel } from '
|
|
14
|
-
export { ReplayPanel } from '
|
|
6
|
+
export { ToolCallsPanel } from '@/runtime/index.ts';
|
|
7
|
+
export { AgentsPanel } from '@/runtime/index.ts';
|
|
8
|
+
export { TasksPanel } from '@/runtime/index.ts';
|
|
9
|
+
export { EventsPanel } from '@/runtime/index.ts';
|
|
10
|
+
export { StateInspectorPanel } from '@/runtime/index.ts';
|
|
11
|
+
export type { InspectableDomain } from '@/runtime/index.ts';
|
|
12
|
+
export { HealthPanel } from '@/runtime/index.ts';
|
|
13
|
+
export { DivergencePanel } from '@/runtime/index.ts';
|
|
14
|
+
export { ReplayPanel } from '@/runtime/index.ts';
|
|
15
15
|
export { PolicyPanel } from './policy.ts';
|
|
16
16
|
export type { PolicyPanelSnapshot } from './policy.ts';
|
|
17
|
-
export { ToolContractsPanel } from '
|
|
18
|
-
export { TransportPanel } from '
|
|
19
|
-
export type { TransportPanelSnapshot } from '
|
|
17
|
+
export { ToolContractsPanel } from '@/runtime/index.ts';
|
|
18
|
+
export { TransportPanel } from '@/runtime/index.ts';
|
|
19
|
+
export type { TransportPanelSnapshot } from '@/runtime/index.ts';
|
|
20
20
|
export { OpsPanel } from './ops.ts';
|
|
21
21
|
export type { OpsAuditEntry } from './ops.ts';
|
|
22
22
|
export { PanelResourcesPanel } from './panel-resources.ts';
|
|
23
|
-
export { SecurityPanel } from '
|
|
24
|
-
export type { SecurityPanelSnapshot } from '
|
|
23
|
+
export { SecurityPanel } from '@/runtime/index.ts';
|
|
24
|
+
export type { SecurityPanelSnapshot } from '@/runtime/index.ts';
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* Controls are only shown when the OpsControlPlane reports the action is legal
|
|
9
9
|
* (state machine allows it), satisfying requirement: "No illegal action appears in UI".
|
|
10
10
|
*/
|
|
11
|
-
import type { RuntimeEventEnvelope } from '
|
|
12
|
-
import type { PanelConfig } from '
|
|
13
|
-
import { DEFAULT_PANEL_CONFIG, appendBounded, applyFilter } from '
|
|
14
|
-
import type { DiagnosticFilter } from '
|
|
15
|
-
import type { OpsInterventionReason, OpsEvent } from '
|
|
11
|
+
import type { RuntimeEventEnvelope } from '@/runtime/index.ts';
|
|
12
|
+
import type { PanelConfig } from '@/runtime/index.ts';
|
|
13
|
+
import { DEFAULT_PANEL_CONFIG, appendBounded, applyFilter } from '@/runtime/index.ts';
|
|
14
|
+
import type { DiagnosticFilter } from '@/runtime/index.ts';
|
|
15
|
+
import type { OpsInterventionReason, OpsEvent } from '@/runtime/index.ts';
|
|
16
16
|
import type { UiEventFeed } from '../../ui-events.ts';
|
|
17
17
|
|
|
18
18
|
// ---------------------------------------------------------------------------
|
|
@@ -109,8 +109,8 @@ export class OpsPanel {
|
|
|
109
109
|
note: payload.note,
|
|
110
110
|
outcome: payload.outcome,
|
|
111
111
|
errorMessage: payload.errorMessage,
|
|
112
|
-
traceId: envelope.traceId,
|
|
113
|
-
sessionId: envelope.sessionId,
|
|
112
|
+
traceId: envelope.traceId ?? '',
|
|
113
|
+
sessionId: envelope.sessionId ?? '',
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
appendBounded(this._audit, record, this._config.bufferLimit);
|
|
@@ -8,7 +8,7 @@ import type { ComponentHealthMonitor } from '../../perf/panel-health-monitor.ts'
|
|
|
8
8
|
import type {
|
|
9
9
|
ComponentResourceEntry,
|
|
10
10
|
ComponentResourceSnapshot,
|
|
11
|
-
} from '
|
|
11
|
+
} from '@/runtime/index.ts';
|
|
12
12
|
|
|
13
13
|
const DEFAULT_POLL_INTERVAL_MS = 500;
|
|
14
14
|
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
* call `recordTrendEntry()` periodically if a divergence panel is attached.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type { PolicyBundleVersion, PolicyDiffResult } from '
|
|
13
|
-
import { PolicyRegistry } from '
|
|
14
|
-
import type { DivergenceDashboardSnapshot } from '
|
|
15
|
-
import type { DivergencePanel } from '
|
|
16
|
-
import type { PanelConfig } from '
|
|
17
|
-
import { DEFAULT_PANEL_CONFIG } from '
|
|
18
|
-
import type { PermissionAuditEntry } from '
|
|
19
|
-
import type { PolicyLintFinding } from '
|
|
20
|
-
import type { PolicySimulationSummary } from '
|
|
21
|
-
import type { PolicyPreflightReview } from '
|
|
22
|
-
import { logger } from '@pellux/goodvibes-sdk/platform/utils
|
|
12
|
+
import type { PolicyBundleVersion, PolicyDiffResult } from '@/runtime/index.ts';
|
|
13
|
+
import { PolicyRegistry } from '@/runtime/index.ts';
|
|
14
|
+
import type { DivergenceDashboardSnapshot } from '@/runtime/index.ts';
|
|
15
|
+
import type { DivergencePanel } from '@/runtime/index.ts';
|
|
16
|
+
import type { PanelConfig } from '@/runtime/index.ts';
|
|
17
|
+
import { DEFAULT_PANEL_CONFIG } from '@/runtime/index.ts';
|
|
18
|
+
import type { PermissionAuditEntry } from '@/runtime/index.ts';
|
|
19
|
+
import type { PolicyLintFinding } from '@/runtime/index.ts';
|
|
20
|
+
import type { PolicySimulationSummary } from '@/runtime/index.ts';
|
|
21
|
+
import type { PolicyPreflightReview } from '@/runtime/index.ts';
|
|
22
|
+
import { logger } from '@pellux/goodvibes-sdk/platform/utils';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* A point-in-time snapshot of policy state for diagnostics rendering.
|