@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Line } from '../types/grid.ts';
|
|
2
2
|
import { fitDisplay, getDisplayWidth, truncateDisplay } from '../utils/terminal-width.ts';
|
|
3
3
|
import type { ModelPickerModal } from '../input/model-picker.ts';
|
|
4
|
-
import { EFFORT_DESCRIPTIONS } from '@pellux/goodvibes-sdk/platform/providers
|
|
5
|
-
import { getQualityTier, getQualityTierFromScore } from '@pellux/goodvibes-sdk/platform/providers
|
|
4
|
+
import { EFFORT_DESCRIPTIONS } from '@pellux/goodvibes-sdk/platform/providers';
|
|
5
|
+
import { getQualityTier, getQualityTierFromScore } from '@pellux/goodvibes-sdk/platform/providers';
|
|
6
6
|
import {
|
|
7
7
|
createOverlayBoxLayout,
|
|
8
8
|
createOverlayContentLine,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* stable workspace with explicit target slots instead of a compact overlay.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { ModelDefinition } from '@pellux/goodvibes-sdk/platform/providers
|
|
8
|
+
import type { ModelDefinition } from '@pellux/goodvibes-sdk/platform/providers';
|
|
9
9
|
import type { ModelPickerModal } from '../input/model-picker.ts';
|
|
10
10
|
import type { ModelPickerTargetInfo } from '../input/model-picker.ts';
|
|
11
11
|
import type { Line } from '../types/grid.ts';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type Line } from '../types/grid.ts';
|
|
2
2
|
import { ModalFactory } from './modal-factory.ts';
|
|
3
3
|
import { formatDuration } from './modal-utils.ts';
|
|
4
|
-
import type { ProcessManager } from '@pellux/goodvibes-sdk/platform/tools
|
|
5
|
-
import type { AgentManager, AgentRecord } from '@pellux/goodvibes-sdk/platform/tools
|
|
6
|
-
import type { WrfcController } from '@pellux/goodvibes-sdk/platform/agents
|
|
4
|
+
import type { ProcessManager } from '@pellux/goodvibes-sdk/platform/tools';
|
|
5
|
+
import type { AgentManager, AgentRecord } from '@pellux/goodvibes-sdk/platform/tools';
|
|
6
|
+
import type { WrfcController } from '@pellux/goodvibes-sdk/platform/agents';
|
|
7
7
|
import { getOverlaySurfaceMetrics, getStableOverlayContentRows } from './overlay-viewport.ts';
|
|
8
8
|
import { getVisibleWindow } from './surface-layout.ts';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Line } from '../types/grid.ts';
|
|
2
2
|
import { createEmptyLine, createStyledCell } from '../types/grid.ts';
|
|
3
3
|
import { getDisplayWidth } from '../utils/terminal-width.ts';
|
|
4
|
-
import { generateQrMatrix } from '@pellux/goodvibes-sdk/platform/pairing
|
|
4
|
+
import { generateQrMatrix } from '@pellux/goodvibes-sdk/platform/pairing';
|
|
5
5
|
|
|
6
6
|
export { generateQrMatrix };
|
|
7
7
|
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
* unsupported — callers should treat null as "no semantic info available".
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import { TreeSitterService } from '@pellux/goodvibes-sdk/platform/intelligence
|
|
15
|
-
import { extractSymbols } from '@pellux/goodvibes-sdk/platform/intelligence
|
|
16
|
-
import type { SymbolInfo } from '@pellux/goodvibes-sdk/platform/intelligence
|
|
17
|
-
import { detectLanguage } from '@pellux/goodvibes-sdk/platform/intelligence
|
|
18
|
-
import { logger } from '@pellux/goodvibes-sdk/platform/utils
|
|
19
|
-
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils
|
|
14
|
+
import { TreeSitterService } from '@pellux/goodvibes-sdk/platform/intelligence';
|
|
15
|
+
import { extractSymbols } from '@pellux/goodvibes-sdk/platform/intelligence';
|
|
16
|
+
import type { SymbolInfo } from '@pellux/goodvibes-sdk/platform/intelligence';
|
|
17
|
+
import { detectLanguage } from '@pellux/goodvibes-sdk/platform/intelligence';
|
|
18
|
+
import { logger } from '@pellux/goodvibes-sdk/platform/utils';
|
|
19
|
+
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils';
|
|
20
20
|
|
|
21
21
|
// ---------------------------------------------------------------------------
|
|
22
22
|
// Public types
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
* Default: 252 (light grey)
|
|
21
21
|
*/
|
|
22
22
|
import type { Node } from 'web-tree-sitter';
|
|
23
|
-
import { TreeSitterService } from '@pellux/goodvibes-sdk/platform/intelligence
|
|
24
|
-
import { logger } from '@pellux/goodvibes-sdk/platform/utils
|
|
25
|
-
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils
|
|
23
|
+
import { TreeSitterService } from '@pellux/goodvibes-sdk/platform/intelligence';
|
|
24
|
+
import { logger } from '@pellux/goodvibes-sdk/platform/utils';
|
|
25
|
+
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils';
|
|
26
26
|
|
|
27
27
|
// ─── Types ───────────────────────────────────────────────────────────────────
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Line, createStyledCell, createEmptyLine } from '../types/grid.ts';
|
|
2
2
|
import { LAYOUT, TOOL_STATUS } from './layout.ts';
|
|
3
3
|
import { getDisplayWidth, truncateDisplay } from '../utils/terminal-width.ts';
|
|
4
|
-
import type { ToolCall } from '@pellux/goodvibes-sdk/platform/types
|
|
4
|
+
import type { ToolCall } from '@pellux/goodvibes-sdk/platform/types';
|
|
5
5
|
import { stripDangerousAnsi } from './ansi-sanitize.ts';
|
|
6
6
|
|
|
7
7
|
const TOOL_NAME_MIN_WIDTH = 8;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config
|
|
2
|
-
import type { AdaptivePlanner } from '@pellux/goodvibes-sdk/platform/core
|
|
1
|
+
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config';
|
|
2
|
+
import type { AdaptivePlanner } from '@pellux/goodvibes-sdk/platform/core';
|
|
3
3
|
import type { ConversationManager } from '../core/conversation';
|
|
4
|
-
import type { KnowledgeApi } from '@pellux/goodvibes-sdk/platform/knowledge
|
|
5
|
-
import type { HookApi } from '@pellux/goodvibes-sdk/platform/hooks
|
|
6
|
-
import type { McpApi } from '@pellux/goodvibes-sdk/platform/mcp
|
|
4
|
+
import type { KnowledgeApi } from '@pellux/goodvibes-sdk/platform/knowledge';
|
|
5
|
+
import type { HookApi } from '@pellux/goodvibes-sdk/platform/hooks';
|
|
6
|
+
import type { McpApi } from '@pellux/goodvibes-sdk/platform/mcp';
|
|
7
7
|
import type { PanelManager } from '../panels/panel-manager.ts';
|
|
8
|
-
import type { ProviderApi } from '@pellux/goodvibes-sdk/platform/providers
|
|
9
|
-
import type { OpsApi } from '
|
|
10
|
-
import type { MutableRuntimeState } from '
|
|
11
|
-
import type { ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers
|
|
8
|
+
import type { ProviderApi } from '@pellux/goodvibes-sdk/platform/providers';
|
|
9
|
+
import type { OpsApi } from '@/runtime/index.ts';
|
|
10
|
+
import type { MutableRuntimeState } from '@/runtime/index.ts';
|
|
11
|
+
import type { ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers';
|
|
12
12
|
import type { CommandContext } from '../input/command-registry.ts';
|
|
13
13
|
import type { KeybindingsManager } from '../input/keybindings.ts';
|
|
14
|
-
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions
|
|
15
|
-
import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools
|
|
16
|
-
import type { ForensicsRegistry } from '
|
|
17
|
-
import type { PolicyRuntimeState } from '
|
|
18
|
-
import type { FileUndoManager } from '@pellux/goodvibes-sdk/platform/state
|
|
19
|
-
import type { McpRegistry } from '@pellux/goodvibes-sdk/platform/mcp
|
|
20
|
-
import type { MemoryRegistry } from '@pellux/goodvibes-sdk/platform/state
|
|
21
|
-
import type { IntegrationHelperService } from '
|
|
22
|
-
import type { KnowledgeService } from '@pellux/goodvibes-sdk/platform/knowledge
|
|
23
|
-
import type { PluginManager } from '@pellux/goodvibes-sdk/platform/plugins
|
|
24
|
-
import type { HookWorkbench } from '@pellux/goodvibes-sdk/platform/hooks
|
|
25
|
-
import type { WorktreeRegistry } from '
|
|
26
|
-
import type { SandboxSessionRegistry } from '
|
|
14
|
+
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions';
|
|
15
|
+
import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools';
|
|
16
|
+
import type { ForensicsRegistry } from '@/runtime/index.ts';
|
|
17
|
+
import type { PolicyRuntimeState } from '@/runtime/index.ts';
|
|
18
|
+
import type { FileUndoManager } from '@pellux/goodvibes-sdk/platform/state';
|
|
19
|
+
import type { McpRegistry } from '@pellux/goodvibes-sdk/platform/mcp';
|
|
20
|
+
import type { MemoryRegistry } from '@pellux/goodvibes-sdk/platform/state';
|
|
21
|
+
import type { IntegrationHelperService } from '@/runtime/index.ts';
|
|
22
|
+
import type { KnowledgeService } from '@pellux/goodvibes-sdk/platform/knowledge';
|
|
23
|
+
import type { PluginManager } from '@pellux/goodvibes-sdk/platform/plugins';
|
|
24
|
+
import type { HookWorkbench } from '@pellux/goodvibes-sdk/platform/hooks';
|
|
25
|
+
import type { WorktreeRegistry } from '@/runtime/index.ts';
|
|
26
|
+
import type { SandboxSessionRegistry } from '@/runtime/index.ts';
|
|
27
27
|
import type { UiReadModels } from './ui-read-models.ts';
|
|
28
|
-
import type { ShellPathService } from '
|
|
28
|
+
import type { ShellPathService } from '@/runtime/index.ts';
|
|
29
29
|
import type {
|
|
30
30
|
ShellAgentManagerService,
|
|
31
31
|
ShellAutomationManagerRuntimeService,
|
|
32
32
|
ShellModeManagerService,
|
|
33
33
|
ShellPlanManagerService,
|
|
34
34
|
ShellSessionOrchestrationService,
|
|
35
|
-
} from '
|
|
36
|
-
import { createBootstrapCommandShellServices, type PlanRuntimeService, type RemoteCommandService } from '
|
|
37
|
-
import type { OperatorClient } from '
|
|
38
|
-
import type { PeerClient } from '
|
|
39
|
-
import type { DirectTransport } from '
|
|
40
|
-
import type { VoiceProviderRegistry, VoiceService } from '@pellux/goodvibes-sdk/platform/voice
|
|
35
|
+
} from '@/runtime/index.ts';
|
|
36
|
+
import { createBootstrapCommandShellServices, type PlanRuntimeService, type RemoteCommandService } from '@/runtime/index.ts';
|
|
37
|
+
import type { OperatorClient } from '@/runtime/index.ts';
|
|
38
|
+
import type { PeerClient } from '@/runtime/index.ts';
|
|
39
|
+
import type { DirectTransport } from '@/runtime/index.ts';
|
|
40
|
+
import type { VoiceProviderRegistry, VoiceService } from '@pellux/goodvibes-sdk/platform/voice';
|
|
41
41
|
import {
|
|
42
42
|
createBootstrapCommandActions,
|
|
43
43
|
createBootstrapCommandClientsSection,
|
|
@@ -72,28 +72,28 @@ export type CreateBootstrapCommandContextOptions = {
|
|
|
72
72
|
integrationHelpers?: IntegrationHelperService;
|
|
73
73
|
automationManager?: ShellAutomationManagerRuntimeService;
|
|
74
74
|
knowledgeService?: KnowledgeService;
|
|
75
|
-
projectPlanningService?: import('@pellux/goodvibes-sdk/platform/knowledge
|
|
75
|
+
projectPlanningService?: import('@pellux/goodvibes-sdk/platform/knowledge').ProjectPlanningService;
|
|
76
76
|
projectPlanningProjectId?: string;
|
|
77
|
-
providerOptimizer?: import('@pellux/goodvibes-sdk/platform/providers
|
|
77
|
+
providerOptimizer?: import('@pellux/goodvibes-sdk/platform/providers').ProviderOptimizer;
|
|
78
78
|
pluginManager?: PluginManager;
|
|
79
79
|
hookWorkbench?: HookWorkbench;
|
|
80
80
|
agentManager?: ShellAgentManagerService;
|
|
81
81
|
modeManager?: ShellModeManagerService;
|
|
82
|
-
sessionManager?: import('@pellux/goodvibes-sdk/platform/sessions
|
|
83
|
-
profileManager?: import('@pellux/goodvibes-sdk/platform/profiles
|
|
84
|
-
bookmarkManager?: import('@pellux/goodvibes-sdk/platform/bookmarks
|
|
85
|
-
favoritesStore?: import('@pellux/goodvibes-sdk/platform/providers
|
|
86
|
-
benchmarkStore?: import('@pellux/goodvibes-sdk/platform/providers
|
|
82
|
+
sessionManager?: import('@pellux/goodvibes-sdk/platform/sessions').SessionManager;
|
|
83
|
+
profileManager?: import('@pellux/goodvibes-sdk/platform/profiles').ProfileManager;
|
|
84
|
+
bookmarkManager?: import('@pellux/goodvibes-sdk/platform/bookmarks').BookmarkManager;
|
|
85
|
+
favoritesStore?: import('@pellux/goodvibes-sdk/platform/providers').FavoritesStore;
|
|
86
|
+
benchmarkStore?: import('@pellux/goodvibes-sdk/platform/providers').BenchmarkStore;
|
|
87
87
|
providerApi?: ProviderApi;
|
|
88
|
-
subscriptionManager?: import('@pellux/goodvibes-sdk/platform/config
|
|
88
|
+
subscriptionManager?: import('@pellux/goodvibes-sdk/platform/config').SubscriptionManager;
|
|
89
89
|
secretsManager?: import('../config/secrets.ts').SecretsManager;
|
|
90
|
-
serviceRegistry?: import('@pellux/goodvibes-sdk/platform/config
|
|
91
|
-
localUserAuthManager?: import('@pellux/goodvibes-sdk/platform/security
|
|
92
|
-
tokenAuditor?: import('@pellux/goodvibes-sdk/platform/security
|
|
93
|
-
replayEngine?: import('@pellux/goodvibes-sdk/platform/core
|
|
94
|
-
webhookNotifier?: import('@pellux/goodvibes-sdk/platform/integrations
|
|
95
|
-
sessionMemoryStore?: import('@pellux/goodvibes-sdk/platform/core
|
|
96
|
-
changeTracker?: import('@pellux/goodvibes-sdk/platform/sessions
|
|
90
|
+
serviceRegistry?: import('@pellux/goodvibes-sdk/platform/config').ServiceRegistry;
|
|
91
|
+
localUserAuthManager?: import('@pellux/goodvibes-sdk/platform/security').UserAuthManager;
|
|
92
|
+
tokenAuditor?: import('@pellux/goodvibes-sdk/platform/security').ApiTokenAuditor;
|
|
93
|
+
replayEngine?: import('@pellux/goodvibes-sdk/platform/core').DeterministicReplayEngine;
|
|
94
|
+
webhookNotifier?: import('@pellux/goodvibes-sdk/platform/integrations').WebhookNotifier;
|
|
95
|
+
sessionMemoryStore?: import('@pellux/goodvibes-sdk/platform/core').SessionMemoryStore;
|
|
96
|
+
changeTracker?: import('@pellux/goodvibes-sdk/platform/sessions').SessionChangeTracker;
|
|
97
97
|
planManager?: ShellPlanManagerService;
|
|
98
98
|
adaptivePlanner?: AdaptivePlanner;
|
|
99
99
|
sessionOrchestration?: ShellSessionOrchestrationService;
|
|
@@ -110,8 +110,8 @@ export type CreateBootstrapCommandContextOptions = {
|
|
|
110
110
|
loadSystemPrompt: () => string;
|
|
111
111
|
activatePlan: (planId: string, task: string) => void;
|
|
112
112
|
completeModelSelectionSideEffect?: () => void;
|
|
113
|
-
sessionLineageTracker?: import('@pellux/goodvibes-sdk/platform/core
|
|
114
|
-
componentHealthMonitor: import('
|
|
113
|
+
sessionLineageTracker?: import('@pellux/goodvibes-sdk/platform/core').SessionLineageTracker;
|
|
114
|
+
componentHealthMonitor: import('@/runtime/index.ts').ComponentHealthMonitor;
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
export function createBootstrapCommandContext(
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { getConfigSnapshot } from '../config/index.ts';
|
|
2
|
-
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config
|
|
3
|
-
import type { AdaptivePlanner } from '@pellux/goodvibes-sdk/platform/core
|
|
2
|
+
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config';
|
|
3
|
+
import type { AdaptivePlanner } from '@pellux/goodvibes-sdk/platform/core';
|
|
4
4
|
import type { ConversationManager } from '../core/conversation';
|
|
5
|
-
import type { KnowledgeApi } from '@pellux/goodvibes-sdk/platform/knowledge
|
|
6
|
-
import type { HookApi } from '@pellux/goodvibes-sdk/platform/hooks
|
|
7
|
-
import type { McpApi } from '@pellux/goodvibes-sdk/platform/mcp
|
|
5
|
+
import type { KnowledgeApi } from '@pellux/goodvibes-sdk/platform/knowledge';
|
|
6
|
+
import type { HookApi } from '@pellux/goodvibes-sdk/platform/hooks';
|
|
7
|
+
import type { McpApi } from '@pellux/goodvibes-sdk/platform/mcp';
|
|
8
8
|
import type { PanelManager } from '../panels/panel-manager.ts';
|
|
9
|
-
import type { ProviderApi } from '@pellux/goodvibes-sdk/platform/providers
|
|
10
|
-
import type { OpsApi } from '
|
|
11
|
-
import type { MutableRuntimeState } from '
|
|
12
|
-
import type { ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers
|
|
9
|
+
import type { ProviderApi } from '@pellux/goodvibes-sdk/platform/providers';
|
|
10
|
+
import type { OpsApi } from '@/runtime/index.ts';
|
|
11
|
+
import type { MutableRuntimeState } from '@/runtime/index.ts';
|
|
12
|
+
import type { ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers';
|
|
13
13
|
import type { CommandContext } from '../input/command-registry.ts';
|
|
14
14
|
import type { KeybindingsManager } from '../input/keybindings.ts';
|
|
15
|
-
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions
|
|
16
|
-
import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools
|
|
17
|
-
import type { ForensicsRegistry } from '
|
|
18
|
-
import type { PolicyRuntimeState } from '
|
|
19
|
-
import type { FileUndoManager } from '@pellux/goodvibes-sdk/platform/state
|
|
20
|
-
import type { McpRegistry } from '@pellux/goodvibes-sdk/platform/mcp
|
|
21
|
-
import type { MemoryRegistry } from '@pellux/goodvibes-sdk/platform/state
|
|
22
|
-
import type { IntegrationHelperService } from '
|
|
23
|
-
import type { KnowledgeService } from '@pellux/goodvibes-sdk/platform/knowledge
|
|
24
|
-
import type { PluginManager } from '@pellux/goodvibes-sdk/platform/plugins
|
|
25
|
-
import type { HookWorkbench } from '@pellux/goodvibes-sdk/platform/hooks
|
|
26
|
-
import type { WorktreeRegistry } from '
|
|
27
|
-
import type { SandboxSessionRegistry } from '
|
|
15
|
+
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions';
|
|
16
|
+
import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools';
|
|
17
|
+
import type { ForensicsRegistry } from '@/runtime/index.ts';
|
|
18
|
+
import type { PolicyRuntimeState } from '@/runtime/index.ts';
|
|
19
|
+
import type { FileUndoManager } from '@pellux/goodvibes-sdk/platform/state';
|
|
20
|
+
import type { McpRegistry } from '@pellux/goodvibes-sdk/platform/mcp';
|
|
21
|
+
import type { MemoryRegistry } from '@pellux/goodvibes-sdk/platform/state';
|
|
22
|
+
import type { IntegrationHelperService } from '@/runtime/index.ts';
|
|
23
|
+
import type { KnowledgeService } from '@pellux/goodvibes-sdk/platform/knowledge';
|
|
24
|
+
import type { PluginManager } from '@pellux/goodvibes-sdk/platform/plugins';
|
|
25
|
+
import type { HookWorkbench } from '@pellux/goodvibes-sdk/platform/hooks';
|
|
26
|
+
import type { WorktreeRegistry } from '@/runtime/index.ts';
|
|
27
|
+
import type { SandboxSessionRegistry } from '@/runtime/index.ts';
|
|
28
28
|
import type { UiReadModels } from './ui-read-models.ts';
|
|
29
|
-
import type { ShellPathService } from '
|
|
29
|
+
import type { ShellPathService } from '@/runtime/index.ts';
|
|
30
30
|
import type {
|
|
31
31
|
ShellAgentManagerService,
|
|
32
32
|
ShellAutomationManagerRuntimeService,
|
|
@@ -35,13 +35,13 @@ import type {
|
|
|
35
35
|
ShellSessionOrchestrationService,
|
|
36
36
|
RemoteCommandService,
|
|
37
37
|
PlanRuntimeService,
|
|
38
|
-
} from '
|
|
39
|
-
import type { BootstrapCommandShellServices } from '
|
|
40
|
-
import type { OperatorClient } from '
|
|
41
|
-
import type { PeerClient } from '
|
|
42
|
-
import type { DirectTransport } from '
|
|
43
|
-
import type { VoiceProviderRegistry, VoiceService } from '@pellux/goodvibes-sdk/platform/voice
|
|
44
|
-
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils
|
|
38
|
+
} from '@/runtime/index.ts';
|
|
39
|
+
import type { BootstrapCommandShellServices } from '@/runtime/index.ts';
|
|
40
|
+
import type { OperatorClient } from '@/runtime/index.ts';
|
|
41
|
+
import type { PeerClient } from '@/runtime/index.ts';
|
|
42
|
+
import type { DirectTransport } from '@/runtime/index.ts';
|
|
43
|
+
import type { VoiceProviderRegistry, VoiceService } from '@pellux/goodvibes-sdk/platform/voice';
|
|
44
|
+
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils';
|
|
45
45
|
|
|
46
46
|
export type BootstrapCommandSessionSection = CommandContext['session'];
|
|
47
47
|
export type BootstrapCommandProviderSection = CommandContext['provider'];
|
|
@@ -85,26 +85,26 @@ export interface BootstrapCommandSectionOptions {
|
|
|
85
85
|
readonly memoryRegistry?: MemoryRegistry;
|
|
86
86
|
readonly integrationHelpers?: IntegrationHelperService;
|
|
87
87
|
readonly knowledgeService?: KnowledgeService;
|
|
88
|
-
readonly projectPlanningService?: import('@pellux/goodvibes-sdk/platform/knowledge
|
|
88
|
+
readonly projectPlanningService?: import('@pellux/goodvibes-sdk/platform/knowledge').ProjectPlanningService;
|
|
89
89
|
readonly projectPlanningProjectId?: string;
|
|
90
90
|
readonly pluginManager?: PluginManager;
|
|
91
91
|
readonly hookWorkbench?: HookWorkbench;
|
|
92
|
-
readonly providerOptimizer?: import('@pellux/goodvibes-sdk/platform/providers
|
|
93
|
-
readonly sessionManager?: import('@pellux/goodvibes-sdk/platform/sessions
|
|
94
|
-
readonly profileManager?: import('@pellux/goodvibes-sdk/platform/profiles
|
|
95
|
-
readonly bookmarkManager?: import('@pellux/goodvibes-sdk/platform/bookmarks
|
|
96
|
-
readonly favoritesStore?: import('@pellux/goodvibes-sdk/platform/providers
|
|
97
|
-
readonly benchmarkStore?: import('@pellux/goodvibes-sdk/platform/providers
|
|
98
|
-
readonly subscriptionManager?: import('@pellux/goodvibes-sdk/platform/config
|
|
92
|
+
readonly providerOptimizer?: import('@pellux/goodvibes-sdk/platform/providers').ProviderOptimizer;
|
|
93
|
+
readonly sessionManager?: import('@pellux/goodvibes-sdk/platform/sessions').SessionManager;
|
|
94
|
+
readonly profileManager?: import('@pellux/goodvibes-sdk/platform/profiles').ProfileManager;
|
|
95
|
+
readonly bookmarkManager?: import('@pellux/goodvibes-sdk/platform/bookmarks').BookmarkManager;
|
|
96
|
+
readonly favoritesStore?: import('@pellux/goodvibes-sdk/platform/providers').FavoritesStore;
|
|
97
|
+
readonly benchmarkStore?: import('@pellux/goodvibes-sdk/platform/providers').BenchmarkStore;
|
|
98
|
+
readonly subscriptionManager?: import('@pellux/goodvibes-sdk/platform/config').SubscriptionManager;
|
|
99
99
|
readonly secretsManager?: import('../config/secrets.ts').SecretsManager;
|
|
100
|
-
readonly serviceRegistry?: import('@pellux/goodvibes-sdk/platform/config
|
|
101
|
-
readonly localUserAuthManager?: import('@pellux/goodvibes-sdk/platform/security
|
|
102
|
-
readonly tokenAuditor?: import('@pellux/goodvibes-sdk/platform/security
|
|
103
|
-
readonly replayEngine?: import('@pellux/goodvibes-sdk/platform/core
|
|
104
|
-
readonly webhookNotifier?: import('@pellux/goodvibes-sdk/platform/integrations
|
|
105
|
-
readonly sessionMemoryStore?: import('@pellux/goodvibes-sdk/platform/core
|
|
106
|
-
readonly sessionLineageTracker?: import('@pellux/goodvibes-sdk/platform/core
|
|
107
|
-
readonly changeTracker?: import('@pellux/goodvibes-sdk/platform/sessions
|
|
100
|
+
readonly serviceRegistry?: import('@pellux/goodvibes-sdk/platform/config').ServiceRegistry;
|
|
101
|
+
readonly localUserAuthManager?: import('@pellux/goodvibes-sdk/platform/security').UserAuthManager;
|
|
102
|
+
readonly tokenAuditor?: import('@pellux/goodvibes-sdk/platform/security').ApiTokenAuditor;
|
|
103
|
+
readonly replayEngine?: import('@pellux/goodvibes-sdk/platform/core').DeterministicReplayEngine;
|
|
104
|
+
readonly webhookNotifier?: import('@pellux/goodvibes-sdk/platform/integrations').WebhookNotifier;
|
|
105
|
+
readonly sessionMemoryStore?: import('@pellux/goodvibes-sdk/platform/core').SessionMemoryStore;
|
|
106
|
+
readonly sessionLineageTracker?: import('@pellux/goodvibes-sdk/platform/core').SessionLineageTracker;
|
|
107
|
+
readonly changeTracker?: import('@pellux/goodvibes-sdk/platform/sessions').SessionChangeTracker;
|
|
108
108
|
readonly agentManager?: ShellAgentManagerService;
|
|
109
109
|
readonly modeManager?: ShellModeManagerService;
|
|
110
110
|
readonly automationManager?: ShellAutomationManagerRuntimeService;
|
|
@@ -219,7 +219,6 @@ export function createBootstrapCommandActions(
|
|
|
219
219
|
runtime.provider = def.provider;
|
|
220
220
|
runtime.reasoningEffort = effort as 'instant' | 'low' | 'medium' | 'high';
|
|
221
221
|
configManager.set('provider.model', key);
|
|
222
|
-
configManager.set('provider.provider', def.provider);
|
|
223
222
|
configManager.set('provider.reasoningEffort', effort as 'instant' | 'low' | 'medium' | 'high');
|
|
224
223
|
const ctxNote = contextCap != null && contextCap > 0
|
|
225
224
|
? `, context cap: ${contextCap.toLocaleString()}`
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { ConversationManager } from '../core/conversation';
|
|
2
2
|
import { SelectionManager } from '../input/selection.ts';
|
|
3
|
-
import { logger } from '@pellux/goodvibes-sdk/platform/utils
|
|
3
|
+
import { logger } from '@pellux/goodvibes-sdk/platform/utils';
|
|
4
4
|
import { ConfigManager, getConfiguredSystemPrompt } from '../config/index.ts';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { getProviderIdFromModel } from '../config/provider-model.ts';
|
|
6
|
+
import { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools';
|
|
7
|
+
import { registerAllTools } from '@pellux/goodvibes-sdk/platform/tools';
|
|
8
|
+
import { PermissionManager, createPermissionConfigReader } from '@pellux/goodvibes-sdk/platform/permissions';
|
|
9
|
+
import { Notifier } from '@pellux/goodvibes-sdk/platform/integrations';
|
|
10
|
+
import { WebhookNotifier } from '@pellux/goodvibes-sdk/platform/integrations';
|
|
10
11
|
import { Compositor } from '../renderer/compositor.ts';
|
|
11
|
-
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions
|
|
12
|
+
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions';
|
|
12
13
|
import type { SystemMessageRouter } from '../core/system-message-router.ts';
|
|
13
|
-
import type { ConversationFollowUpItem } from '@pellux/goodvibes-sdk/platform/core
|
|
14
|
+
import type { ConversationFollowUpItem } from '@pellux/goodvibes-sdk/platform/core';
|
|
14
15
|
import type { OrchestratorUserInputOptions } from '../core/orchestrator.ts';
|
|
15
|
-
import type { ControlPlaneRecentEvent } from '@pellux/goodvibes-sdk/platform/control-plane
|
|
16
|
-
import type { MutableRuntimeState } from '
|
|
16
|
+
import type { ControlPlaneRecentEvent } from '@pellux/goodvibes-sdk/platform/control-plane';
|
|
17
|
+
import type { MutableRuntimeState } from '@/runtime/index.ts';
|
|
17
18
|
import type { BootstrapOptions } from './context.ts';
|
|
18
|
-
import { createFeatureFlagManager } from '
|
|
19
|
-
import { RuntimeEventBus } from '
|
|
20
|
-
import type { SessionEvent } from '
|
|
19
|
+
import { createFeatureFlagManager } from '@/runtime/index.ts';
|
|
20
|
+
import { RuntimeEventBus } from '@/runtime/index.ts';
|
|
21
|
+
import type { SessionEvent } from '@/runtime/index.ts';
|
|
21
22
|
import { createRuntimeStore, createDomainDispatch, type RuntimeStore } from './store/index.ts';
|
|
22
|
-
import { ForensicsCollector, ForensicsRegistry } from '
|
|
23
|
+
import { ForensicsCollector, ForensicsRegistry } from '@/runtime/index.ts';
|
|
23
24
|
import {
|
|
24
25
|
generateUserSessionId,
|
|
25
|
-
} from '
|
|
26
|
-
import { loadBootstrapSystemPrompt, syncConfiguredServices } from '
|
|
27
|
-
import { registerBootstrapHookBridge } from '
|
|
28
|
-
import { registerBootstrapRuntimeEvents } from '
|
|
26
|
+
} from '@/runtime/index.ts';
|
|
27
|
+
import { loadBootstrapSystemPrompt, syncConfiguredServices } from '@/runtime/index.ts';
|
|
28
|
+
import { registerBootstrapHookBridge } from '@/runtime/index.ts';
|
|
29
|
+
import { registerBootstrapRuntimeEvents } from '@/runtime/index.ts';
|
|
29
30
|
import { createRuntimeServices, type RuntimeServices } from './services.ts';
|
|
30
31
|
import { createUiRuntimeServices, type UiRuntimeServices } from './ui-services.ts';
|
|
31
32
|
|
|
@@ -93,7 +94,7 @@ export async function initializeBootstrapCore(
|
|
|
93
94
|
|
|
94
95
|
const featureFlags = createFeatureFlagManager();
|
|
95
96
|
featureFlags.loadFromConfig({
|
|
96
|
-
flags: (configManager.getCategory('featureFlags') as Record<string, import('
|
|
97
|
+
flags: (configManager.getCategory('featureFlags') as Record<string, import('@/runtime/index.ts').FlagState>) ?? {},
|
|
97
98
|
});
|
|
98
99
|
|
|
99
100
|
const userSessionId = `user-${generateUserSessionId()}`;
|
|
@@ -320,7 +321,7 @@ export async function initializeBootstrapCore(
|
|
|
320
321
|
// adds them here so operators can observe constraint enumeration and violations
|
|
321
322
|
// in the SystemMessagesPanel and main conversation.
|
|
322
323
|
runtimeUnsubs.push(
|
|
323
|
-
runtimeBus.on<Extract<import('
|
|
324
|
+
runtimeBus.on<Extract<import('@/runtime/index.ts').WorkflowEvent, { type: 'WORKFLOW_CONSTRAINTS_ENUMERATED' }>>(
|
|
324
325
|
'WORKFLOW_CONSTRAINTS_ENUMERATED',
|
|
325
326
|
({ payload }) => {
|
|
326
327
|
const router = systemMessageRouterRef.value;
|
|
@@ -337,7 +338,7 @@ export async function initializeBootstrapCore(
|
|
|
337
338
|
),
|
|
338
339
|
);
|
|
339
340
|
runtimeUnsubs.push(
|
|
340
|
-
runtimeBus.on<Extract<import('
|
|
341
|
+
runtimeBus.on<Extract<import('@/runtime/index.ts').WorkflowEvent, { type: 'WORKFLOW_FIX_ATTEMPTED' }>>(
|
|
341
342
|
'WORKFLOW_FIX_ATTEMPTED',
|
|
342
343
|
({ payload }) => {
|
|
343
344
|
const router = systemMessageRouterRef.value;
|
|
@@ -354,7 +355,7 @@ export async function initializeBootstrapCore(
|
|
|
354
355
|
),
|
|
355
356
|
);
|
|
356
357
|
runtimeUnsubs.push(
|
|
357
|
-
runtimeBus.on<Extract<import('
|
|
358
|
+
runtimeBus.on<Extract<import('@/runtime/index.ts').WorkflowEvent, { type: 'WORKFLOW_REVIEW_COMPLETED' }>>(
|
|
358
359
|
'WORKFLOW_REVIEW_COMPLETED',
|
|
359
360
|
({ payload }) => {
|
|
360
361
|
const router = systemMessageRouterRef.value;
|
|
@@ -463,7 +464,7 @@ export async function initializeBootstrapCore(
|
|
|
463
464
|
|
|
464
465
|
const runtime: MutableRuntimeState = {
|
|
465
466
|
model: configManager.get('provider.model') as string,
|
|
466
|
-
provider: configManager.get('provider.
|
|
467
|
+
provider: getProviderIdFromModel(configManager.get('provider.model')),
|
|
467
468
|
debugMode: false,
|
|
468
469
|
systemPrompt: loadBootstrapSystemPrompt(configManager) || getConfiguredSystemPrompt(configManager) || '',
|
|
469
470
|
reasoningEffort: (configManager.get('provider.reasoningEffort') as string | undefined) ?? '',
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { ConversationManager } from '../core/conversation';
|
|
2
|
-
import type { HookDispatcher } from '@pellux/goodvibes-sdk/platform/hooks
|
|
3
|
-
import type { MutableRuntimeState } from '
|
|
4
|
-
import { registerBootstrapHookBridge } from '
|
|
5
|
-
import type { RuntimeEventBus } from '
|
|
6
|
-
import { logger } from '@pellux/goodvibes-sdk/platform/utils
|
|
7
|
-
import { emitSessionResumed } from '
|
|
8
|
-
import { HelperModel } from '@pellux/goodvibes-sdk/platform/config
|
|
9
|
-
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config
|
|
10
|
-
import { formatReturnContextForDisplay, getReturnContextMode, maybeAssistReturnContextSummary } from '
|
|
11
|
-
import type { SharedSessionBroker } from '@pellux/goodvibes-sdk/platform/control-plane
|
|
12
|
-
import type { SessionManager } from '@pellux/goodvibes-sdk/platform/sessions
|
|
2
|
+
import type { HookDispatcher } from '@pellux/goodvibes-sdk/platform/hooks';
|
|
3
|
+
import type { MutableRuntimeState } from '@/runtime/index.ts';
|
|
4
|
+
import { registerBootstrapHookBridge } from '@/runtime/index.ts';
|
|
5
|
+
import type { RuntimeEventBus } from '@/runtime/index.ts';
|
|
6
|
+
import { logger } from '@pellux/goodvibes-sdk/platform/utils';
|
|
7
|
+
import { emitSessionResumed } from '@/runtime/index.ts';
|
|
8
|
+
import { HelperModel } from '@pellux/goodvibes-sdk/platform/config';
|
|
9
|
+
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config';
|
|
10
|
+
import { formatReturnContextForDisplay, getReturnContextMode, maybeAssistReturnContextSummary } from '@/runtime/index.ts';
|
|
11
|
+
import type { SharedSessionBroker } from '@pellux/goodvibes-sdk/platform/control-plane';
|
|
12
|
+
import type { SessionManager } from '@pellux/goodvibes-sdk/platform/sessions';
|
|
13
13
|
import type { PanelManager } from '../panels/panel-manager.ts';
|
|
14
|
-
import type { ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers
|
|
15
|
-
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils
|
|
14
|
+
import type { ProviderRegistry } from '@pellux/goodvibes-sdk/platform/providers';
|
|
15
|
+
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils';
|
|
16
16
|
|
|
17
17
|
export interface ResumeSessionOptions {
|
|
18
18
|
readonly runtimeBus: RuntimeEventBus;
|
|
@@ -26,7 +26,7 @@ export interface ResumeSessionOptions {
|
|
|
26
26
|
readonly sessionManager: SessionManager;
|
|
27
27
|
readonly panelManager: PanelManager;
|
|
28
28
|
readonly configManager: Pick<ConfigManager, 'get' | 'getCategory'>;
|
|
29
|
-
readonly providerRegistry: Pick<ProviderRegistry, 'get' | 'getCurrentModel' | 'getForModel'>;
|
|
29
|
+
readonly providerRegistry: Pick<ProviderRegistry, 'get' | 'getCurrentModel' | 'getForModel' | 'require'>;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export function createResumeSessionHandler(options: ResumeSessionOptions): (sessionId: string) => void {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
2
|
import type { ConversationManager } from '../core/conversation';
|
|
3
3
|
import type { Orchestrator } from '../core/orchestrator';
|
|
4
|
-
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config
|
|
5
|
-
import type { RuntimeEventBus } from '
|
|
6
|
-
import type { MutableRuntimeState } from '
|
|
4
|
+
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config';
|
|
5
|
+
import type { RuntimeEventBus } from '@/runtime/index.ts';
|
|
6
|
+
import type { MutableRuntimeState } from '@/runtime/index.ts';
|
|
7
7
|
import type { RuntimeStore } from './store/index.ts';
|
|
8
8
|
import type { RuntimeServices } from './services.ts';
|
|
9
9
|
import type { CommandContext } from '../input/command-registry.ts';
|
|
10
|
-
import type { OpsControlPlane } from '
|
|
10
|
+
import type { OpsControlPlane } from '@/runtime/index.ts';
|
|
11
11
|
import { CommandRegistry } from '../input/command-registry.ts';
|
|
12
12
|
import { registerBuiltinCommands } from '../input/commands.ts';
|
|
13
13
|
import { InputHistory } from '../input/input-history.ts';
|
|
14
14
|
import { GitStatusProvider } from '../renderer/git-status.ts';
|
|
15
15
|
import type { GitHeaderInfo } from '../renderer/git-status.ts';
|
|
16
|
-
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions
|
|
16
|
+
import type { PermissionRequestHandler } from '@pellux/goodvibes-sdk/platform/permissions';
|
|
17
17
|
import { registerBuiltinPanels } from '../panels/builtin-panels.ts';
|
|
18
18
|
import { SystemMessagesPanel } from '../panels/system-messages-panel.ts';
|
|
19
19
|
import { createSystemMessageRouter, type SystemMessageRouter } from '../core/system-message-router.ts';
|
|
20
20
|
import { getConfigSnapshot } from '../config/index.ts';
|
|
21
21
|
import { createBootstrapCommandContext } from './bootstrap-command-context.ts';
|
|
22
22
|
import { createResumeSessionHandler } from './bootstrap-hook-bridge.ts';
|
|
23
|
-
import { logger } from '@pellux/goodvibes-sdk/platform/utils
|
|
24
|
-
import { loadBootstrapSystemPrompt } from '
|
|
25
|
-
import { createShellPlanRuntime, createShellRemoteCommandService } from '
|
|
26
|
-
import { createRuntimeFoundationClients } from '
|
|
27
|
-
import type { ControlPlaneRecentEvent } from '@pellux/goodvibes-sdk/platform/control-plane
|
|
23
|
+
import { logger } from '@pellux/goodvibes-sdk/platform/utils';
|
|
24
|
+
import { loadBootstrapSystemPrompt } from '@/runtime/index.ts';
|
|
25
|
+
import { createShellPlanRuntime, createShellRemoteCommandService } from '@/runtime/index.ts';
|
|
26
|
+
import { createRuntimeFoundationClients } from '@/runtime/index.ts';
|
|
27
|
+
import type { ControlPlaneRecentEvent } from '@pellux/goodvibes-sdk/platform/control-plane';
|
|
28
28
|
import type { BuiltinPanelDeps } from '../panels/builtin/shared.ts';
|
|
29
|
-
import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools
|
|
30
|
-
import type { ForensicsRegistry } from '
|
|
31
|
-
import type { PolicyRuntimeState } from '
|
|
32
|
-
import type { TaskManager } from '
|
|
29
|
+
import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools';
|
|
30
|
+
import type { ForensicsRegistry } from '@/runtime/index.ts';
|
|
31
|
+
import type { PolicyRuntimeState } from '@/runtime/index.ts';
|
|
32
|
+
import type { TaskManager } from '@/runtime/index.ts';
|
|
33
33
|
import type { UiRuntimeServices } from './ui-services.ts';
|
|
34
|
-
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils
|
|
34
|
+
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils';
|
|
35
35
|
|
|
36
36
|
export interface BootstrapShellState {
|
|
37
37
|
readonly commandRegistry: CommandRegistry;
|