@pellux/goodvibes-tui 0.18.8 → 0.18.10
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 +65 -0
- package/README.md +1 -1
- package/docs/foundation-artifacts/operator-contract.json +1 -1
- package/package.json +2 -2
- package/src/acp/connection.ts +5 -5
- package/src/acp/index.ts +1 -1
- package/src/acp/manager.ts +1 -133
- package/src/adapters/bluebubbles/index.ts +1 -1
- package/src/adapters/discord/index.ts +2 -2
- package/src/adapters/github/index.ts +1 -1
- package/src/adapters/google-chat/index.ts +1 -1
- package/src/adapters/imessage/index.ts +1 -1
- package/src/adapters/index.ts +15 -15
- package/src/adapters/matrix/index.ts +1 -1
- package/src/adapters/mattermost/index.ts +1 -1
- package/src/adapters/msteams/index.ts +2 -2
- package/src/adapters/ntfy/index.ts +1 -1
- package/src/adapters/signal/index.ts +1 -1
- package/src/adapters/slack/index.ts +2 -2
- package/src/adapters/telegram/index.ts +1 -1
- package/src/adapters/types.ts +4 -4
- package/src/adapters/webhook/index.ts +1 -1
- package/src/adapters/whatsapp/index.ts +1 -1
- package/src/agents/message-bus-core.ts +2 -2
- package/src/agents/message-bus.ts +2 -2
- package/src/agents/orchestrator-prompts.ts +4 -4
- package/src/agents/orchestrator-runner.ts +11 -11
- package/src/agents/orchestrator.ts +14 -13
- package/src/agents/session.ts +1 -1
- package/src/agents/worktree.ts +1 -1
- package/src/agents/wrfc-config.ts +2 -2
- package/src/agents/wrfc-controller.ts +12 -12
- package/src/agents/wrfc-gate-runtime.ts +5 -5
- package/src/agents/wrfc-reporting.ts +1 -1
- package/src/agents/wrfc-runtime-events.ts +3 -3
- package/src/agents/wrfc-types.ts +1 -1
- package/src/automation/delivery-manager.ts +4 -4
- package/src/automation/index.ts +4 -4
- package/src/automation/manager-runtime-delivery.ts +1 -1
- package/src/automation/manager-runtime-events.ts +3 -3
- package/src/automation/manager-runtime-execution.ts +5 -5
- package/src/automation/manager-runtime-helpers.ts +2 -2
- package/src/automation/manager-runtime-job-mutations.ts +3 -3
- package/src/automation/manager-runtime-reconcile.ts +4 -4
- package/src/automation/manager-runtime-scheduling.ts +2 -2
- package/src/automation/manager-runtime.ts +18 -18
- package/src/automation/manager.ts +2 -2
- package/src/automation/service.ts +2 -2
- package/src/channels/builtin/account-actions.ts +5 -5
- package/src/channels/builtin/accounts.ts +2 -2
- package/src/channels/builtin/contracts.ts +3 -3
- package/src/channels/builtin/plugins.ts +5 -5
- package/src/channels/builtin/rendering.ts +4 -4
- package/src/channels/builtin/setup-schema.ts +1 -1
- package/src/channels/builtin/shared.ts +7 -7
- package/src/channels/builtin/surfaces.ts +2 -2
- package/src/channels/builtin/targets.ts +3 -3
- package/src/channels/builtin-runtime.ts +11 -11
- package/src/channels/delivery/shared.ts +2 -2
- package/src/channels/delivery/strategies-bridge.ts +3 -3
- package/src/channels/delivery/strategies-core.ts +5 -5
- package/src/channels/delivery/strategies-enterprise.ts +3 -3
- package/src/channels/delivery/types.ts +2 -2
- package/src/channels/delivery-router.ts +9 -9
- package/src/channels/index.ts +12 -12
- package/src/channels/plugin-registry.ts +1 -1
- package/src/channels/provider-runtime.ts +3 -3
- package/src/channels/reply-pipeline.ts +3 -3
- package/src/channels/route-manager.ts +2 -2
- package/src/channels/surface-registry.ts +2 -2
- package/src/config/helper-model.ts +1 -233
- package/src/config/index.ts +3 -3
- package/src/config/manager.ts +8 -404
- package/src/config/secrets.ts +21 -542
- package/src/config/service-registry.ts +1 -329
- package/src/config/tool-llm.ts +3 -3
- package/src/control-plane/approval-broker.ts +1 -1
- package/src/control-plane/gateway.ts +1 -713
- package/src/control-plane/index.ts +7 -7
- package/src/control-plane/media-contract-schemas.ts +1 -208
- package/src/control-plane/method-catalog-admin.ts +1 -136
- package/src/control-plane/method-catalog-channels.ts +1 -591
- package/src/control-plane/method-catalog-control-automation.ts +1 -475
- package/src/control-plane/method-catalog-control-core.ts +1 -594
- package/src/control-plane/method-catalog-control.ts +1 -8
- package/src/control-plane/method-catalog-events.ts +1 -74
- package/src/control-plane/method-catalog-knowledge.ts +1 -531
- package/src/control-plane/method-catalog-media.ts +1 -279
- package/src/control-plane/method-catalog-runtime.ts +1 -304
- package/src/control-plane/method-catalog-shared.ts +1 -223
- package/src/control-plane/method-catalog.ts +1 -242
- package/src/control-plane/operator-contract-schemas-admin.ts +1 -639
- package/src/control-plane/operator-contract-schemas-channels.ts +1 -375
- package/src/control-plane/operator-contract-schemas-control.ts +1 -226
- package/src/control-plane/operator-contract-schemas-domains.ts +1 -4
- package/src/control-plane/operator-contract-schemas-knowledge.ts +1 -582
- package/src/control-plane/operator-contract-schemas-media.ts +1 -297
- package/src/control-plane/operator-contract-schemas-permissions.ts +1 -100
- package/src/control-plane/operator-contract-schemas-remote.ts +1 -38
- package/src/control-plane/operator-contract-schemas-runtime.ts +1 -563
- package/src/control-plane/operator-contract-schemas-shared.ts +1 -85
- package/src/control-plane/operator-contract-schemas-telemetry.ts +1 -349
- package/src/control-plane/operator-contract-schemas.ts +1 -6
- package/src/control-plane/operator-contract.ts +5 -3
- package/src/control-plane/session-broker.ts +1 -1
- package/src/core/compaction-sections.ts +5 -5
- package/src/core/compaction-types.ts +3 -3
- package/src/core/composer-state.ts +1 -1
- package/src/core/context-compaction.ts +7 -7
- package/src/core/conversation-compaction.ts +4 -4
- package/src/core/conversation-diff.ts +1 -1
- package/src/core/conversation-rendering.ts +5 -5
- package/src/core/conversation-utils.ts +2 -2
- package/src/core/conversation.ts +10 -10
- package/src/core/event-replay.ts +1 -1
- package/src/core/orchestrator-context-runtime.ts +8 -8
- package/src/core/orchestrator-follow-up-runtime.ts +2 -2
- package/src/core/orchestrator-runtime.ts +4 -4
- package/src/core/orchestrator-tool-runtime.ts +7 -7
- package/src/core/orchestrator-turn-helpers.ts +7 -7
- package/src/core/orchestrator-turn-loop.ts +10 -10
- package/src/core/orchestrator.ts +17 -17
- package/src/core/plan-command-handler.ts +2 -2
- package/src/core/system-message-router.ts +2 -2
- package/src/core/transcript-events/classify.ts +1 -1
- package/src/core/transcript-events/index.ts +3 -3
- package/src/daemon/cli.ts +6 -6
- package/src/daemon/control-plane.ts +7 -7
- package/src/daemon/facade-composition.ts +16 -15
- package/src/daemon/facade.ts +17 -17
- package/src/daemon/helpers.ts +2 -2
- package/src/daemon/http/router-route-contexts.ts +11 -11
- package/src/daemon/http/router.ts +25 -25
- package/src/daemon/http-listener.ts +3 -3
- package/src/daemon/index.ts +1 -3
- package/src/daemon/service-manager.ts +1 -1
- package/src/daemon/surface-actions.ts +8 -8
- package/src/daemon/surface-delivery.ts +7 -7
- package/src/daemon/surface-policy.ts +1 -1
- package/src/daemon/transport-events.ts +4 -4
- package/src/daemon/types.ts +24 -24
- package/src/export/markdown.ts +1 -1
- package/src/export/session-export.ts +1 -633
- package/src/git/index.ts +1 -1
- package/src/git/service.ts +1 -1
- package/src/hooks/chain-engine.ts +1 -1
- package/src/hooks/dispatcher.ts +4 -4
- package/src/hooks/hook-api.ts +1 -1
- package/src/hooks/index.ts +8 -8
- package/src/hooks/runners/agent.ts +1 -1
- package/src/hooks/runners/prompt.ts +1 -1
- package/src/hooks/workbench.ts +2 -2
- package/src/input/command-registry.ts +24 -17
- package/src/input/commands/config.ts +1 -1
- package/src/input/commands/control-room-runtime.ts +2 -2
- package/src/input/commands/conversation-runtime.ts +1 -1
- package/src/input/commands/eval.ts +2 -2
- package/src/input/commands/git-runtime.ts +1 -1
- package/src/input/commands/guidance-runtime.ts +3 -3
- package/src/input/commands/health-runtime.ts +7 -7
- package/src/input/commands/incident-runtime.ts +1 -1
- package/src/input/commands/integration-runtime.ts +3 -3
- package/src/input/commands/local-provider-runtime.ts +1 -1
- package/src/input/commands/local-runtime.ts +1 -1
- package/src/input/commands/local-setup-review.ts +1 -1
- package/src/input/commands/local-setup.ts +1 -1
- package/src/input/commands/managed-runtime.ts +2 -2
- package/src/input/commands/marketplace-runtime.ts +1 -1
- package/src/input/commands/platform-access-runtime.ts +1 -1
- package/src/input/commands/policy-dispatch.ts +2 -2
- package/src/input/commands/product-runtime.ts +2 -2
- package/src/input/commands/profile-sync-runtime.ts +1 -1
- 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 +1 -1
- package/src/input/commands/recall-bundle.ts +1 -1
- 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 +1 -1
- package/src/input/commands/remote-runtime-setup.ts +1 -1
- package/src/input/commands/remote-runtime.ts +1 -1
- package/src/input/commands/runtime-services.ts +13 -11
- package/src/input/commands/schedule-runtime.ts +2 -2
- package/src/input/commands/session-content.ts +1 -1
- package/src/input/commands/session-workflow.ts +4 -4
- package/src/input/commands/settings-sync-runtime.ts +1 -1
- package/src/input/commands/share-runtime.ts +9 -4
- package/src/input/commands/shell-core.ts +1 -1
- package/src/input/commands/skills-runtime.ts +1 -1
- package/src/input/commands/subscription-runtime.ts +1 -1
- package/src/input/commands/tasks-runtime.ts +1 -1
- package/src/input/commands/teamwork-runtime.ts +1 -1
- package/src/input/commands/worktree-runtime.ts +1 -1
- package/src/input/handler-command-route.ts +1 -1
- package/src/input/handler-content-actions.ts +3 -3
- package/src/input/handler-feed-routes.ts +2 -2
- package/src/input/handler-feed.ts +1 -1
- package/src/input/handler-shortcuts.ts +1 -1
- package/src/input/handler.ts +1 -1
- package/src/input/keybindings.ts +5 -0
- package/src/input/model-picker.ts +2 -2
- package/src/input/profile-picker-modal.ts +1 -1
- package/src/input/session-picker-modal.ts +1 -1
- package/src/input/settings-modal.ts +4 -4
- package/src/integrations/index.ts +1 -1
- package/src/integrations/notifier.ts +1 -1
- package/src/integrations/webhooks.ts +1 -177
- package/src/knowledge/consolidation.ts +2 -2
- package/src/knowledge/graphql.ts +1 -1
- package/src/knowledge/index.ts +5 -5
- package/src/knowledge/ingest-compile.ts +3 -3
- package/src/knowledge/ingest-context.ts +1 -1
- package/src/knowledge/ingest-inputs.ts +4 -4
- package/src/knowledge/ingest.ts +1 -20
- package/src/knowledge/internal.ts +1 -1
- package/src/knowledge/knowledge-api.ts +7 -7
- package/src/knowledge/lint.ts +3 -3
- package/src/knowledge/memory-sync.ts +2 -2
- package/src/knowledge/packet.ts +3 -3
- package/src/knowledge/scheduling.ts +2 -2
- package/src/knowledge/service.ts +10 -10
- package/src/main.ts +11 -10
- package/src/mcp/index.ts +4 -4
- package/src/mcp/mcp-api.ts +1 -1
- package/src/mcp/registry.ts +1 -506
- package/src/media/builtin-image-understanding.ts +2 -2
- package/src/media/builtin-providers.ts +2 -2
- package/src/media/index.ts +1 -1
- package/src/multimodal/index.ts +1 -1
- package/src/multimodal/service.ts +2 -2
- package/src/panels/agent-inspector-panel.ts +2 -2
- package/src/panels/agent-logs-panel.ts +3 -3
- package/src/panels/approval-panel.ts +2 -2
- package/src/panels/builtin/operations.ts +3 -1
- package/src/panels/builtin/shared.ts +13 -13
- package/src/panels/context-visualizer-panel.ts +2 -2
- package/src/panels/cost-tracker-panel.ts +2 -2
- package/src/panels/debug-panel.ts +3 -3
- package/src/panels/git-panel.ts +1 -1
- package/src/panels/hooks-panel.ts +4 -4
- package/src/panels/knowledge-panel.ts +1 -1
- package/src/panels/marketplace-panel.ts +1 -1
- package/src/panels/mcp-panel.ts +1 -1
- package/src/panels/memory-panel.ts +2 -2
- package/src/panels/ops-control-panel.ts +2 -2
- package/src/panels/ops-strategy-panel.ts +2 -2
- package/src/panels/plugins-panel.ts +1 -1
- package/src/panels/policy-panel.ts +1 -1
- package/src/panels/provider-health-panel.ts +3 -3
- package/src/panels/provider-stats-panel.ts +2 -2
- package/src/panels/sandbox-panel.ts +1 -1
- package/src/panels/schedule-panel.ts +1 -1
- package/src/panels/settings-sync-panel.ts +1 -1
- package/src/panels/system-messages-panel.ts +1 -1
- package/src/panels/tasks-panel.ts +1 -1
- package/src/panels/thinking-panel.ts +2 -2
- package/src/panels/token-budget-panel.ts +1 -1
- package/src/panels/tool-inspector-panel.ts +2 -2
- package/src/panels/worktree-panel.ts +1 -1
- package/src/panels/wrfc-panel.ts +4 -4
- package/src/permissions/briefs/build.ts +1 -1
- package/src/permissions/manager.ts +1 -356
- package/src/permissions/prompt.ts +1 -1
- package/src/plugins/api.ts +9 -9
- package/src/plugins/loader.ts +8 -8
- package/src/plugins/manager.ts +5 -5
- package/src/providers/amazon-bedrock-mantle.ts +1 -1
- package/src/providers/amazon-bedrock.ts +1 -1
- package/src/providers/anthropic-compat.ts +4 -4
- package/src/providers/anthropic-sdk-provider.ts +5 -5
- package/src/providers/anthropic-vertex.ts +1 -1
- package/src/providers/anthropic.ts +4 -4
- package/src/providers/auto-register.ts +6 -6
- package/src/providers/builtin-catalog.ts +2 -2
- package/src/providers/builtin-registry.ts +15 -15
- package/src/providers/cache-planner.ts +2 -2
- package/src/providers/capabilities.ts +1 -601
- package/src/providers/custom-loader.ts +6 -6
- package/src/providers/discovered-compat.ts +7 -18
- package/src/providers/discovered-factory.ts +7 -7
- package/src/providers/discovered-traits.ts +1 -1
- package/src/providers/gemini.ts +4 -4
- package/src/providers/github-copilot.ts +4 -4
- package/src/providers/index.ts +1 -47
- package/src/providers/interface.ts +1 -1
- package/src/providers/llama-cpp.ts +4 -4
- package/src/providers/lm-studio-helpers.ts +1 -1
- package/src/providers/lm-studio.ts +4 -4
- package/src/providers/model-catalog-cache.ts +1 -1
- package/src/providers/model-catalog-notifications.ts +1 -1
- package/src/providers/model-catalog-synthetic.ts +2 -2
- package/src/providers/model-catalog.ts +7 -7
- package/src/providers/model-limits.ts +1 -280
- package/src/providers/ollama.ts +4 -4
- package/src/providers/openai-codex.ts +2 -2
- package/src/providers/openai-compat.ts +4 -4
- package/src/providers/openai.ts +3 -3
- package/src/providers/optimizer.ts +1 -381
- package/src/providers/provider-api.ts +1 -553
- package/src/providers/registry-helpers.ts +1 -1
- package/src/providers/registry-models.ts +2 -2
- package/src/providers/registry-types.ts +5 -5
- package/src/providers/registry.ts +1 -729
- package/src/providers/runtime-metadata.ts +1 -1
- package/src/providers/runtime-snapshot.ts +3 -3
- package/src/providers/synthetic.ts +3 -3
- package/src/providers/tier-prompts.ts +1 -1
- package/src/providers/tool-formats.ts +1 -1
- package/src/renderer/agent-detail-modal.ts +2 -2
- package/src/renderer/block-actions.ts +1 -1
- package/src/renderer/context-inspector.ts +1 -1
- package/src/renderer/conversation-layout.ts +1 -1
- package/src/renderer/conversation-overlays.ts +1 -1
- package/src/renderer/git-status.ts +1 -1
- package/src/renderer/live-tail-modal.ts +1 -1
- package/src/renderer/process-modal.ts +2 -2
- package/src/runtime/bootstrap-background.ts +4 -4
- package/src/runtime/bootstrap-command-context.ts +23 -23
- package/src/runtime/bootstrap-command-parts.ts +23 -23
- package/src/runtime/bootstrap-core.ts +12 -10
- package/src/runtime/bootstrap-helpers.ts +2 -2
- package/src/runtime/bootstrap-hook-bridge.ts +9 -9
- package/src/runtime/bootstrap-runtime-events.ts +4 -4
- package/src/runtime/bootstrap-services.ts +4 -4
- package/src/runtime/bootstrap-shell.ts +11 -11
- package/src/runtime/bootstrap.ts +28 -10
- package/src/runtime/compaction/index.ts +1 -90
- package/src/runtime/compaction/lifecycle.ts +1 -167
- package/src/runtime/compaction/manager.ts +11 -11
- package/src/runtime/compaction/quality-score.ts +1 -279
- package/src/runtime/compaction/resume-repair.ts +1 -183
- package/src/runtime/compaction/strategies/autocompact.ts +1 -65
- package/src/runtime/compaction/strategies/boundary-commit.ts +1 -106
- package/src/runtime/compaction/strategies/collapse.ts +1 -90
- package/src/runtime/compaction/strategies/index.ts +1 -23
- package/src/runtime/compaction/strategies/microcompact.ts +1 -74
- package/src/runtime/compaction/strategies/reactive.ts +1 -89
- package/src/runtime/compaction/types.ts +1 -221
- package/src/runtime/context.ts +9 -9
- package/src/runtime/diagnostics/actions.ts +1 -1
- package/src/runtime/diagnostics/index.ts +5 -5
- package/src/runtime/diagnostics/panels/agents.ts +2 -2
- package/src/runtime/diagnostics/panels/events.ts +2 -2
- package/src/runtime/diagnostics/panels/health.ts +2 -2
- package/src/runtime/diagnostics/panels/ops.ts +2 -2
- package/src/runtime/diagnostics/panels/policy.ts +2 -2
- package/src/runtime/diagnostics/panels/tasks.ts +2 -2
- package/src/runtime/diagnostics/panels/tool-calls.ts +2 -2
- package/src/runtime/diagnostics/provider.ts +1 -1
- package/src/runtime/ecosystem/recommendations.ts +1 -1
- package/src/runtime/emitters/agents.ts +2 -2
- package/src/runtime/emitters/automation.ts +2 -2
- package/src/runtime/emitters/communication.ts +2 -2
- package/src/runtime/emitters/compaction.ts +2 -2
- package/src/runtime/emitters/control-plane.ts +2 -2
- package/src/runtime/emitters/deliveries.ts +2 -2
- package/src/runtime/emitters/forensics.ts +2 -2
- package/src/runtime/emitters/index.ts +27 -27
- package/src/runtime/emitters/knowledge.ts +2 -2
- package/src/runtime/emitters/mcp.ts +2 -2
- package/src/runtime/emitters/ops.ts +2 -2
- package/src/runtime/emitters/orchestration.ts +2 -2
- package/src/runtime/emitters/permissions.ts +2 -2
- package/src/runtime/emitters/planner.ts +2 -2
- package/src/runtime/emitters/plugins.ts +2 -2
- package/src/runtime/emitters/providers.ts +2 -2
- package/src/runtime/emitters/routes.ts +2 -2
- package/src/runtime/emitters/security.ts +2 -2
- package/src/runtime/emitters/session.ts +2 -2
- package/src/runtime/emitters/surfaces.ts +2 -2
- package/src/runtime/emitters/tasks.ts +2 -2
- package/src/runtime/emitters/tools.ts +2 -2
- package/src/runtime/emitters/transport.ts +2 -2
- package/src/runtime/emitters/turn.ts +3 -3
- package/src/runtime/emitters/ui.ts +2 -2
- package/src/runtime/emitters/watchers.ts +2 -2
- package/src/runtime/emitters/workflows.ts +3 -3
- package/src/runtime/eval/index.ts +3 -3
- package/src/runtime/eval/runner.ts +1 -1
- package/src/runtime/eval/suites.ts +1 -1
- package/src/runtime/events/domain-map.ts +2 -2
- package/src/runtime/events/index.ts +1 -194
- package/src/runtime/events/turn.ts +1 -60
- package/src/runtime/events/workflows.ts +1 -17
- package/src/runtime/forensics/collector.ts +4 -4
- package/src/runtime/forensics/index.ts +1 -1
- package/src/runtime/foundation-clients.ts +14 -14
- package/src/runtime/foundation-services.ts +8 -8
- package/src/runtime/guidance.ts +3 -3
- package/src/runtime/health/effect-handlers.ts +3 -3
- package/src/runtime/health/index.ts +4 -4
- package/src/runtime/health/wiring.ts +2 -2
- package/src/runtime/index.ts +29 -29
- package/src/runtime/integration/helpers.ts +12 -12
- package/src/runtime/lifecycle.ts +4 -4
- package/src/runtime/mcp/index.ts +3 -3
- package/src/runtime/mcp/manager.ts +1 -1
- package/src/runtime/network/inbound.ts +2 -2
- package/src/runtime/network/index.ts +5 -5
- package/src/runtime/network/outbound.ts +2 -2
- package/src/runtime/network/shared.ts +1 -1
- package/src/runtime/operator-client.ts +9 -9
- package/src/runtime/ops/control-plane.ts +2 -2
- package/src/runtime/ops/index.ts +3 -3
- package/src/runtime/ops/playbooks/index.ts +2 -2
- package/src/runtime/ops/playbooks/session-unrecoverable.ts +2 -2
- package/src/runtime/ops/playbooks/stuck-turn.ts +1 -1
- package/src/runtime/ops/runtime-context.ts +1 -1
- package/src/runtime/orchestration/spawn-policy.ts +1 -1
- package/src/runtime/peer-client.ts +3 -3
- package/src/runtime/perf/index.ts +1 -1
- package/src/runtime/perf/slo-collector.ts +1 -1
- package/src/runtime/permissions/index.ts +5 -5
- package/src/runtime/permissions/policy-runtime.ts +1 -175
- package/src/runtime/permissions/rule-suggestions.ts +1 -1
- package/src/runtime/plugins/hot-reload.ts +4 -4
- package/src/runtime/plugins/index.ts +13 -13
- package/src/runtime/plugins/lifecycle.ts +1 -1
- package/src/runtime/plugins/manager.ts +10 -10
- package/src/runtime/plugins/manifest.ts +2 -2
- package/src/runtime/plugins/quarantine.ts +2 -2
- package/src/runtime/plugins/trust.ts +2 -2
- package/src/runtime/plugins/types.ts +1 -1
- package/src/runtime/provider-accounts/registry.ts +2 -2
- package/src/runtime/remote/distributed-runtime-contract-schemas.ts +3 -3
- package/src/runtime/remote/index.ts +3 -3
- package/src/runtime/remote/runner-registry.ts +2 -2
- package/src/runtime/remote/supervisor.ts +1 -1
- package/src/runtime/runtime-hook-api.ts +1 -1
- package/src/runtime/runtime-knowledge-api.ts +1 -1
- package/src/runtime/runtime-mcp-api.ts +1 -1
- package/src/runtime/runtime-ops-api.ts +2 -2
- package/src/runtime/runtime-provider-api.ts +1 -1
- package/src/runtime/services.ts +35 -32
- package/src/runtime/session-maintenance.ts +1 -1
- package/src/runtime/session-persistence.ts +2 -2
- package/src/runtime/session-return-context.ts +3 -3
- package/src/runtime/settings/control-plane-store.ts +1 -1
- package/src/runtime/settings/control-plane.ts +2 -2
- package/src/runtime/shell-command-extensions.ts +7 -7
- package/src/runtime/shell-command-ops.ts +6 -6
- package/src/runtime/shell-command-platform.ts +1 -1
- package/src/runtime/shell-command-services.ts +17 -17
- package/src/runtime/shell-command-workspace.ts +1 -1
- package/src/runtime/store/domains/conversation.ts +1 -1
- package/src/runtime/store/domains/index.ts +4 -4
- package/src/runtime/store/domains/permissions.ts +1 -1
- package/src/runtime/store/helpers/reducers/conversation.ts +3 -3
- package/src/runtime/store/helpers/reducers/lifecycle.ts +3 -3
- package/src/runtime/store/helpers/reducers/shared.ts +2 -2
- package/src/runtime/store/helpers/reducers/sync.ts +1 -1
- package/src/runtime/store/helpers/reducers.ts +4 -4
- package/src/runtime/store/index.ts +4 -4
- package/src/runtime/store/selectors/index.ts +2 -2
- package/src/runtime/store/state.ts +4 -4
- package/src/runtime/tasks/adapters/acp-adapter.ts +1 -1
- package/src/runtime/tasks/adapters/index.ts +6 -6
- package/src/runtime/tasks/index.ts +3 -3
- package/src/runtime/tasks/manager.ts +3 -3
- package/src/runtime/telemetry/api-helpers.ts +2 -2
- package/src/runtime/telemetry/api.ts +2 -2
- package/src/runtime/telemetry/index.ts +5 -5
- package/src/runtime/telemetry/instrumentation/domain-bridge-agent-session.ts +1 -1
- package/src/runtime/telemetry/instrumentation/domain-bridge-plugin-mcp.ts +1 -1
- package/src/runtime/telemetry/instrumentation/domain-bridge-shared.ts +1 -1
- package/src/runtime/telemetry/instrumentation/domain-bridge-transport-task.ts +1 -1
- package/src/runtime/telemetry/instrumentation/domain-bridge.ts +5 -5
- package/src/runtime/telemetry/instrumentation/index.ts +3 -3
- package/src/runtime/tools/context.ts +3 -3
- package/src/runtime/tools/index.ts +4 -4
- package/src/runtime/tools/phased-executor.ts +3 -3
- package/src/runtime/tools/phases/budget.ts +1 -1
- package/src/runtime/tools/phases/execute.ts +1 -1
- package/src/runtime/tools/phases/index.ts +7 -7
- package/src/runtime/tools/phases/map-output.ts +1 -1
- package/src/runtime/tools/phases/permission.ts +2 -2
- package/src/runtime/tools/phases/posthook.ts +1 -1
- package/src/runtime/tools/phases/prehook.ts +1 -1
- package/src/runtime/tools/phases/validate.ts +1 -1
- package/src/runtime/transports/direct.ts +4 -4
- package/src/runtime/transports/http-helpers.ts +3 -3
- package/src/runtime/transports/http-types.ts +6 -6
- package/src/runtime/transports/http.ts +8 -8
- package/src/runtime/transports/realtime.ts +4 -4
- package/src/runtime/transports/remote-events.ts +1 -1
- package/src/runtime/transports/shared.ts +2 -2
- package/src/runtime/transports/ui-runtime-events.ts +2 -2
- package/src/runtime/ui/index.ts +7 -7
- package/src/runtime/ui/model-picker/data-provider.ts +4 -4
- package/src/runtime/ui/model-picker/health-enrichment.ts +3 -3
- package/src/runtime/ui/model-picker/index.ts +8 -8
- package/src/runtime/ui/provider-health/data-provider.ts +2 -2
- package/src/runtime/ui/provider-health/fallback-visualizer.ts +1 -1
- package/src/runtime/ui/provider-health/index.ts +5 -5
- package/src/runtime/ui-events.ts +1 -1
- package/src/runtime/ui-read-models-core.ts +2 -2
- package/src/runtime/ui-read-models-observability-maintenance.ts +4 -4
- package/src/runtime/ui-read-models-observability-options.ts +1 -1
- package/src/runtime/ui-read-models-observability-remote.ts +2 -2
- package/src/runtime/ui-read-models-observability-security.ts +3 -3
- package/src/runtime/ui-read-models-observability-system.ts +6 -6
- package/src/runtime/ui-read-models-observability.ts +10 -10
- package/src/runtime/ui-read-models-operations.ts +2 -2
- package/src/runtime/ui-read-models.ts +7 -7
- package/src/runtime/ui-service-queries.ts +2 -2
- package/src/runtime/ui-services.ts +7 -7
- package/src/runtime/worktree/registry.ts +1 -1
- package/src/scripts/process-messages.ts +1 -1
- package/src/sessions/manager.ts +9 -383
- package/src/shell/blocking-input.ts +3 -3
- package/src/shell/ui-openers.ts +3 -3
- package/src/state/file-watcher.ts +1 -1
- package/src/state/index.ts +10 -10
- package/src/state/knowledge-injection.ts +2 -2
- package/src/state/memory-embedding-http.ts +2 -2
- package/src/state/memory-embeddings.ts +1 -1
- package/src/state/memory-ingest.ts +3 -3
- package/src/state/memory-registry.ts +3 -3
- package/src/state/memory-store-helpers.ts +1 -1
- package/src/state/memory-store.ts +4 -4
- package/src/state/memory-vector-store.ts +3 -3
- package/src/tools/agent/index.ts +7 -7
- package/src/tools/agent/manager.ts +8 -8
- package/src/tools/analyze/git-modes.ts +2 -2
- package/src/tools/analyze/index.ts +2 -2
- package/src/tools/channel/agent-tools.ts +1 -1
- package/src/tools/channel/index.ts +2 -2
- package/src/tools/edit/core.ts +4 -4
- package/src/tools/edit/index.ts +2 -2
- package/src/tools/edit/phased.ts +2 -2
- package/src/tools/fetch/index.ts +2 -2
- package/src/tools/fetch/phased.ts +1 -1
- package/src/tools/index.ts +21 -21
- package/src/tools/mcp/index.ts +1 -1
- package/src/tools/remote-trigger/index.ts +1 -1
- package/src/tools/shared/auto-heal.ts +2 -2
- package/src/tools/state/index.ts +1 -1
- package/src/tools/web-search/index.ts +1 -1
- package/src/tools/write/index.ts +3 -3
- package/src/tools/write/phased.ts +1 -1
- package/src/version.ts +1 -1
- package/src/watchers/index.ts +2 -2
- package/src/watchers/registry.ts +2 -2
- package/src/web-search/index.ts +10 -10
- package/src/web-search/provider-registry.ts +8 -8
- package/src/web-search/providers/brave.ts +1 -1
- package/src/web-search/providers/duckduckgo.ts +1 -1
- package/src/web-search/providers/exa.ts +1 -1
- package/src/web-search/providers/firecrawl.ts +1 -1
- package/src/web-search/providers/perplexity.ts +1 -1
- package/src/web-search/providers/searxng.ts +1 -1
- package/src/web-search/providers/shared.ts +1 -1
- package/src/web-search/providers/tavily.ts +1 -1
- package/src/web-search/service.ts +2 -2
- package/src/runtime/ecosystem/catalog.ts +0 -606
|
@@ -17,9 +17,9 @@ import type {
|
|
|
17
17
|
ChannelTargetResolveOptions,
|
|
18
18
|
ChannelToolDescriptor,
|
|
19
19
|
} from '@pellux/goodvibes-sdk/platform/channels/types';
|
|
20
|
-
import type { ChannelPlugin } from '
|
|
21
|
-
import type { ProviderRuntimeSurface } from '
|
|
22
|
-
import { buildBuiltinAccount, resolveBuiltinAccount } from '
|
|
20
|
+
import type { ChannelPlugin } from '@pellux/goodvibes-sdk/platform/channels/plugin-registry';
|
|
21
|
+
import type { ProviderRuntimeSurface } from '@pellux/goodvibes-sdk/platform/channels/provider-runtime';
|
|
22
|
+
import { buildBuiltinAccount, resolveBuiltinAccount } from '@pellux/goodvibes-sdk/platform/channels/builtin/accounts';
|
|
23
23
|
import {
|
|
24
24
|
buildBuiltinContractHooks,
|
|
25
25
|
editBuiltinAllowlist,
|
|
@@ -28,20 +28,20 @@ import {
|
|
|
28
28
|
listBuiltinRepairActions,
|
|
29
29
|
migrateBuiltinLifecycle,
|
|
30
30
|
resolveBuiltinAllowlist,
|
|
31
|
-
} from '
|
|
31
|
+
} from '@pellux/goodvibes-sdk/platform/channels/builtin/contracts';
|
|
32
32
|
import {
|
|
33
33
|
listBuiltinCapabilities,
|
|
34
34
|
listBuiltinOperatorActions,
|
|
35
35
|
listBuiltinTools,
|
|
36
36
|
} from '@pellux/goodvibes-sdk/platform/channels/builtin/descriptors';
|
|
37
|
-
import { getBuiltinSetupSchema } from '
|
|
38
|
-
import { registerBuiltinChannelPlugins } from '
|
|
39
|
-
import type { BuiltinChannelRuntimeDeps, ManagedSurface } from '
|
|
37
|
+
import { getBuiltinSetupSchema } from '@pellux/goodvibes-sdk/platform/channels/builtin/setup-schema';
|
|
38
|
+
import { registerBuiltinChannelPlugins } from '@pellux/goodvibes-sdk/platform/channels/builtin/plugins';
|
|
39
|
+
import type { BuiltinChannelRuntimeDeps, ManagedSurface } from '@pellux/goodvibes-sdk/platform/channels/builtin/shared';
|
|
40
40
|
import {
|
|
41
41
|
authorizeBuiltinActorAction,
|
|
42
42
|
runBuiltinAccountAction,
|
|
43
43
|
runBuiltinProviderApi,
|
|
44
|
-
} from '
|
|
44
|
+
} from '@pellux/goodvibes-sdk/platform/channels/builtin/account-actions';
|
|
45
45
|
import {
|
|
46
46
|
readConversationKind,
|
|
47
47
|
readDirectoryScope,
|
|
@@ -51,8 +51,8 @@ import {
|
|
|
51
51
|
listBuiltinAgentTools,
|
|
52
52
|
notifyBuiltinApprovalViaRouter,
|
|
53
53
|
renderBuiltinChannelEvent,
|
|
54
|
-
} from '
|
|
55
|
-
import { providerRuntimeStatus as providerRuntimeStatusForSurface } from '
|
|
54
|
+
} from '@pellux/goodvibes-sdk/platform/channels/builtin/rendering';
|
|
55
|
+
import { providerRuntimeStatus as providerRuntimeStatusForSurface } from '@pellux/goodvibes-sdk/platform/channels/builtin/surfaces';
|
|
56
56
|
import {
|
|
57
57
|
inferBuiltinTargetConversationKind,
|
|
58
58
|
lookupBuiltinDirectory,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
resolveBuiltinParentConversationCandidates,
|
|
61
61
|
resolveBuiltinSessionTarget,
|
|
62
62
|
resolveBuiltinTarget,
|
|
63
|
-
} from '
|
|
63
|
+
} from '@pellux/goodvibes-sdk/platform/channels/builtin/targets';
|
|
64
64
|
|
|
65
65
|
export class BuiltinChannelRuntime {
|
|
66
66
|
constructor(private readonly deps: BuiltinChannelRuntimeDeps) {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ArtifactStore, type ArtifactAttachment, type ArtifactReference } from '@pellux/goodvibes-sdk/platform/artifacts/index';
|
|
2
|
-
import { ConfigManager } from '
|
|
2
|
+
import { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
3
3
|
import { ServiceRegistry } from '../../config/service-registry.ts';
|
|
4
4
|
import type {
|
|
5
5
|
ChannelDeliveryRequest,
|
|
6
6
|
ChannelDeliveryResult,
|
|
7
7
|
ChannelDeliverySurfaceKind,
|
|
8
8
|
ChannelDeliveryTarget,
|
|
9
|
-
} from '
|
|
9
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery/types';
|
|
10
10
|
|
|
11
11
|
export function resolveChannelDeliverySurfaceKind(
|
|
12
12
|
target: ChannelDeliveryTarget,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArtifactStore } from '@pellux/goodvibes-sdk/platform/artifacts/index';
|
|
2
|
-
import { ConfigManager } from '
|
|
2
|
+
import { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
3
3
|
import { ServiceRegistry } from '../../config/service-registry.ts';
|
|
4
|
-
import type { ChannelDeliveryStrategy } from '
|
|
4
|
+
import type { ChannelDeliveryStrategy } from '@pellux/goodvibes-sdk/platform/channels/delivery/types';
|
|
5
5
|
import {
|
|
6
6
|
appendAttachmentSummary,
|
|
7
7
|
extractResponseId,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveChannelDeliverySurfaceKind,
|
|
14
14
|
success,
|
|
15
15
|
trimForSurface,
|
|
16
|
-
} from '
|
|
16
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery/shared';
|
|
17
17
|
|
|
18
18
|
export function createSignalDeliveryStrategy(
|
|
19
19
|
configManager: ConfigManager,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ArtifactStore } from '@pellux/goodvibes-sdk/platform/artifacts/index';
|
|
2
|
-
import { ConfigManager } from '
|
|
2
|
+
import { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
3
3
|
import { ServiceRegistry } from '../../config/service-registry.ts';
|
|
4
|
-
import { ControlPlaneGateway } from '
|
|
5
|
-
import { DiscordIntegration, NtfyIntegration, SlackIntegration } from '
|
|
4
|
+
import { ControlPlaneGateway } from '@pellux/goodvibes-sdk/platform/control-plane/gateway';
|
|
5
|
+
import { DiscordIntegration, NtfyIntegration, SlackIntegration } from '@pellux/goodvibes-sdk/platform/integrations/index';
|
|
6
6
|
import { validatePublicWebhookUrl } from '@pellux/goodvibes-sdk/platform/utils/url-safety';
|
|
7
|
-
import type { ChannelDeliveryStrategy } from '
|
|
7
|
+
import type { ChannelDeliveryStrategy } from '@pellux/goodvibes-sdk/platform/channels/delivery/types';
|
|
8
8
|
import {
|
|
9
9
|
appendAttachmentSummary,
|
|
10
10
|
extractResponseId,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
success,
|
|
16
16
|
titleFromBody,
|
|
17
17
|
trimForSurface,
|
|
18
|
-
} from '
|
|
18
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery/shared';
|
|
19
19
|
|
|
20
20
|
export function createWebhookDeliveryStrategy(configManager: ConfigManager, artifactStore: ArtifactStore): ChannelDeliveryStrategy {
|
|
21
21
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArtifactStore } from '@pellux/goodvibes-sdk/platform/artifacts/index';
|
|
2
|
-
import { ConfigManager } from '
|
|
2
|
+
import { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
3
3
|
import { ServiceRegistry } from '../../config/service-registry.ts';
|
|
4
|
-
import type { ChannelDeliveryStrategy } from '
|
|
4
|
+
import type { ChannelDeliveryStrategy } from '@pellux/goodvibes-sdk/platform/channels/delivery/types';
|
|
5
5
|
import {
|
|
6
6
|
appendAttachmentSummary,
|
|
7
7
|
extractResponseId,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveMSTeamsAccessToken,
|
|
14
14
|
success,
|
|
15
15
|
trimForSurface,
|
|
16
|
-
} from '
|
|
16
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery/shared';
|
|
17
17
|
|
|
18
18
|
export function createMSTeamsDeliveryStrategy(
|
|
19
19
|
configManager: ConfigManager,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ArtifactReference } from '@pellux/goodvibes-sdk/platform/artifacts/index';
|
|
2
|
-
import type { ConfigManager } from '
|
|
2
|
+
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
3
3
|
import type { ServiceRegistry } from '../../config/service-registry.ts';
|
|
4
4
|
import type { ArtifactStore } from '@pellux/goodvibes-sdk/platform/artifacts/index';
|
|
5
|
-
import type { ControlPlaneGateway } from '
|
|
5
|
+
import type { ControlPlaneGateway } from '@pellux/goodvibes-sdk/platform/control-plane/gateway';
|
|
6
6
|
import type { RouteSurfaceKind } from '@pellux/goodvibes-sdk/platform/runtime/events/routes';
|
|
7
7
|
|
|
8
8
|
export type ChannelDeliverySurfaceKind = RouteSurfaceKind;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArtifactStore } from '@pellux/goodvibes-sdk/platform/artifacts/index';
|
|
2
|
-
import { ConfigManager } from '
|
|
2
|
+
import { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
3
3
|
import { ServiceRegistry } from '../config/service-registry.ts';
|
|
4
|
-
import type { ControlPlaneGateway } from '
|
|
4
|
+
import type { ControlPlaneGateway } from '@pellux/goodvibes-sdk/platform/control-plane/gateway';
|
|
5
5
|
import {
|
|
6
6
|
createDiscordDeliveryStrategy,
|
|
7
7
|
createGoogleChatDeliveryStrategy,
|
|
@@ -10,24 +10,24 @@ import {
|
|
|
10
10
|
createTelegramDeliveryStrategy,
|
|
11
11
|
createWebControlPlaneDeliveryStrategy,
|
|
12
12
|
createWebhookDeliveryStrategy,
|
|
13
|
-
} from '
|
|
13
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery/strategies-core';
|
|
14
14
|
import {
|
|
15
15
|
createBlueBubblesDeliveryStrategy,
|
|
16
16
|
createIMessageDeliveryStrategy,
|
|
17
17
|
createSignalDeliveryStrategy,
|
|
18
18
|
createWhatsAppDeliveryStrategy,
|
|
19
|
-
} from '
|
|
19
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery/strategies-bridge';
|
|
20
20
|
import {
|
|
21
21
|
createMSTeamsDeliveryStrategy,
|
|
22
22
|
createMattermostDeliveryStrategy,
|
|
23
23
|
createMatrixDeliveryStrategy,
|
|
24
|
-
} from '
|
|
25
|
-
import { resolveChannelDeliverySurfaceKind } from '
|
|
24
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery/strategies-enterprise';
|
|
25
|
+
import { resolveChannelDeliverySurfaceKind } from '@pellux/goodvibes-sdk/platform/channels/delivery/shared';
|
|
26
26
|
import type {
|
|
27
27
|
ChannelDeliveryRequest,
|
|
28
28
|
ChannelDeliveryRouterConfig,
|
|
29
29
|
ChannelDeliveryStrategy,
|
|
30
|
-
} from '
|
|
30
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery/types';
|
|
31
31
|
|
|
32
32
|
export type {
|
|
33
33
|
ChannelDeliveryResult,
|
|
@@ -37,9 +37,9 @@ export type {
|
|
|
37
37
|
ChannelDeliverySurfaceKind,
|
|
38
38
|
ChannelDeliveryTarget,
|
|
39
39
|
ChannelDeliveryTargetKind,
|
|
40
|
-
} from '
|
|
40
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery/types';
|
|
41
41
|
|
|
42
|
-
export { resolveChannelDeliverySurfaceKind } from '
|
|
42
|
+
export { resolveChannelDeliverySurfaceKind } from '@pellux/goodvibes-sdk/platform/channels/delivery/shared';
|
|
43
43
|
|
|
44
44
|
export function createDefaultChannelDeliveryStrategies(
|
|
45
45
|
configManager: ConfigManager,
|
package/src/channels/index.ts
CHANGED
|
@@ -54,17 +54,17 @@ export type {
|
|
|
54
54
|
ChannelRenderRequest,
|
|
55
55
|
ChannelRenderResult,
|
|
56
56
|
} from '@pellux/goodvibes-sdk/platform/channels/types';
|
|
57
|
-
export type { UpsertRouteBindingInput } from '
|
|
58
|
-
export { RouteBindingManager } from '
|
|
59
|
-
export { SurfaceRegistry } from '
|
|
60
|
-
export type { ChannelPlugin } from '
|
|
61
|
-
export { ChannelPluginRegistry } from '
|
|
57
|
+
export type { UpsertRouteBindingInput } from '@pellux/goodvibes-sdk/platform/channels/route-manager';
|
|
58
|
+
export { RouteBindingManager } from '@pellux/goodvibes-sdk/platform/channels/route-manager';
|
|
59
|
+
export { SurfaceRegistry } from '@pellux/goodvibes-sdk/platform/channels/surface-registry';
|
|
60
|
+
export type { ChannelPlugin } from '@pellux/goodvibes-sdk/platform/channels/plugin-registry';
|
|
61
|
+
export { ChannelPluginRegistry } from '@pellux/goodvibes-sdk/platform/channels/plugin-registry';
|
|
62
62
|
export { ChannelPolicyManager } from '@pellux/goodvibes-sdk/platform/channels/policy-manager';
|
|
63
|
-
export { BuiltinChannelRuntime } from '
|
|
64
|
-
export { ChannelReplyPipeline, normalizeChannelRenderEventFromRuntime } from '
|
|
65
|
-
export { ChannelProviderRuntimeManager } from '
|
|
66
|
-
export type { ProviderRuntimeActionResult, ProviderRuntimeStatus, ProviderRuntimeSurface } from '
|
|
67
|
-
export { ChannelDeliveryRouter, createDefaultChannelDeliveryStrategies, resolveChannelDeliverySurfaceKind } from '
|
|
63
|
+
export { BuiltinChannelRuntime } from '@pellux/goodvibes-sdk/platform/channels/builtin-runtime';
|
|
64
|
+
export { ChannelReplyPipeline, normalizeChannelRenderEventFromRuntime } from '@pellux/goodvibes-sdk/platform/channels/reply-pipeline';
|
|
65
|
+
export { ChannelProviderRuntimeManager } from '@pellux/goodvibes-sdk/platform/channels/provider-runtime';
|
|
66
|
+
export type { ProviderRuntimeActionResult, ProviderRuntimeStatus, ProviderRuntimeSurface } from '@pellux/goodvibes-sdk/platform/channels/provider-runtime';
|
|
67
|
+
export { ChannelDeliveryRouter, createDefaultChannelDeliveryStrategies, resolveChannelDeliverySurfaceKind } from '@pellux/goodvibes-sdk/platform/channels/delivery-router';
|
|
68
68
|
export type {
|
|
69
69
|
ChannelDeliveryResult,
|
|
70
70
|
ChannelDeliveryRouteBinding,
|
|
@@ -73,5 +73,5 @@ export type {
|
|
|
73
73
|
ChannelDeliverySurfaceKind,
|
|
74
74
|
ChannelDeliveryTarget,
|
|
75
75
|
ChannelDeliveryTargetKind,
|
|
76
|
-
} from '
|
|
77
|
-
export type { ChannelDeliveryRequest } from '
|
|
76
|
+
} from '@pellux/goodvibes-sdk/platform/channels/delivery-router';
|
|
77
|
+
export type { ChannelDeliveryRequest } from '@pellux/goodvibes-sdk/platform/channels/delivery/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AutomationRouteBinding } from '@pellux/goodvibes-sdk/platform/automation/routes';
|
|
2
|
-
import type { SharedApprovalRecord } from '
|
|
2
|
+
import type { SharedApprovalRecord } from '@pellux/goodvibes-sdk/platform/control-plane/index';
|
|
3
3
|
import type { Tool } from '@pellux/goodvibes-sdk/platform/types/tools';
|
|
4
4
|
import type {
|
|
5
5
|
ChannelAdapterDescriptor,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConfigManager } from '
|
|
1
|
+
import type { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
2
2
|
import type { ServiceRegistry } from '../config/service-registry.ts';
|
|
3
3
|
import {
|
|
4
4
|
DiscordGatewayClient,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
type DiscordGatewayDispatch,
|
|
10
10
|
type NtfyMessage,
|
|
11
11
|
type SlackSocketModeEnvelope,
|
|
12
|
-
} from '
|
|
12
|
+
} from '@pellux/goodvibes-sdk/platform/integrations/index';
|
|
13
13
|
import {
|
|
14
14
|
type SurfaceAdapterContext,
|
|
15
15
|
handleDiscordGatewayDispatchPayload,
|
|
16
16
|
handleNtfySurfacePayload,
|
|
17
17
|
handleSlackSurfacePayload,
|
|
18
|
-
} from '
|
|
18
|
+
} from '@pellux/goodvibes-sdk/platform/adapters/index';
|
|
19
19
|
import { logger } from '@pellux/goodvibes-sdk/platform/utils/logger';
|
|
20
20
|
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils/error-display';
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RuntimeEventBus, RuntimeEventEnvelope, AnyRuntimeEvent } from '
|
|
1
|
+
import type { RuntimeEventBus, RuntimeEventEnvelope, AnyRuntimeEvent } from '@pellux/goodvibes-sdk/platform/runtime/events/index';
|
|
2
2
|
import type {
|
|
3
3
|
ChannelRenderEvent,
|
|
4
4
|
ChannelRenderPhase,
|
|
@@ -8,8 +8,8 @@ import type {
|
|
|
8
8
|
ChannelReasoningVisibility,
|
|
9
9
|
ChannelSurface,
|
|
10
10
|
} from '@pellux/goodvibes-sdk/platform/channels/types';
|
|
11
|
-
import type { ChannelPluginRegistry } from '
|
|
12
|
-
import type { RouteBindingManager } from '
|
|
11
|
+
import type { ChannelPluginRegistry } from '@pellux/goodvibes-sdk/platform/channels/plugin-registry';
|
|
12
|
+
import type { RouteBindingManager } from '@pellux/goodvibes-sdk/platform/channels/route-manager';
|
|
13
13
|
|
|
14
14
|
const MAX_BUFFERED_EVENTS = 64;
|
|
15
15
|
const DEFAULT_PROGRESS_INTERVAL_MS = 7_500;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { createDomainDispatch } from '../runtime/store/index.ts';
|
|
3
3
|
import type { DomainDispatch, RuntimeStore } from '../runtime/store/index.ts';
|
|
4
|
-
import type { RuntimeEventBus } from '
|
|
4
|
+
import type { RuntimeEventBus } from '@pellux/goodvibes-sdk/platform/runtime/events/index';
|
|
5
5
|
import type { RouteSurfaceKind } from '@pellux/goodvibes-sdk/platform/runtime/events/routes';
|
|
6
6
|
import {
|
|
7
7
|
emitRouteBindingCreated,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
emitRouteBindingResolved,
|
|
10
10
|
emitRouteBindingUpdated,
|
|
11
11
|
emitRouteReplyTargetCaptured,
|
|
12
|
-
} from '
|
|
12
|
+
} from '@pellux/goodvibes-sdk/platform/runtime/emitters/index';
|
|
13
13
|
import type { AutomationRouteBinding } from '@pellux/goodvibes-sdk/platform/automation/routes';
|
|
14
14
|
import type { AutomationSurfaceKind } from '@pellux/goodvibes-sdk/platform/automation/types';
|
|
15
15
|
import { AutomationRouteStore } from '@pellux/goodvibes-sdk/platform/automation/store/routes';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createDomainDispatch } from '../runtime/store/index.ts';
|
|
2
2
|
import type { DomainDispatch, RuntimeStore } from '../runtime/store/index.ts';
|
|
3
3
|
import type { SurfaceRecord } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/surfaces';
|
|
4
|
-
import { ConfigManager } from '
|
|
5
|
-
import type { ChannelPluginRegistry } from '
|
|
4
|
+
import { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
5
|
+
import type { ChannelPluginRegistry } from '@pellux/goodvibes-sdk/platform/channels/plugin-registry';
|
|
6
6
|
|
|
7
7
|
function now(): number {
|
|
8
8
|
return Date.now();
|
|
@@ -1,233 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Helper Model — lightweight LLM routing for grunt-work tasks.
|
|
3
|
-
*
|
|
4
|
-
* Routes tasks like cache planning, compaction, commit messages, etc. to a
|
|
5
|
-
* cheaper/free model so expensive main models don't waste tokens on routine work.
|
|
6
|
-
*
|
|
7
|
-
* Resolution order:
|
|
8
|
-
* 1. Per-provider helper (helper.providers.{currentProvider}.provider + model)
|
|
9
|
-
* 2. Global helper (helper.globalProvider + helper.globalModel)
|
|
10
|
-
* 3. Tool LLM (tools.llmProvider + tools.llmModel) — if configured
|
|
11
|
-
* 4. Main model (fallback — not a true helper, but ensures the task runs)
|
|
12
|
-
*
|
|
13
|
-
* Design constraints:
|
|
14
|
-
* - Never throws from HelperModel.chat() — returns empty string on any error
|
|
15
|
-
* - Logs failures via logger.debug (non-fatal)
|
|
16
|
-
* - Singleton pattern — import `helperModel` for use
|
|
17
|
-
* - Tracks token usage separately from the main model
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import type { ConfigManager } from './manager.ts';
|
|
21
|
-
import type { LLMProvider } from '../providers/interface.ts';
|
|
22
|
-
import type { ProviderRegistry } from '../providers/registry.ts';
|
|
23
|
-
import { logger } from '@pellux/goodvibes-sdk/platform/utils/logger';
|
|
24
|
-
import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils/error-display';
|
|
25
|
-
|
|
26
|
-
/** Tasks that can be routed to a helper model. */
|
|
27
|
-
export type HelperTask =
|
|
28
|
-
| 'cache_strategy' // Plan cache breakpoints + TTL
|
|
29
|
-
| 'compaction' // Summarize old context for compaction
|
|
30
|
-
| 'intent_classify' // Classify user intent (question vs task)
|
|
31
|
-
| 'tool_summarize' // Condense large tool output
|
|
32
|
-
| 'commit_message' // Generate commit messages
|
|
33
|
-
| 'review_triage'; // Triage which files need deep review
|
|
34
|
-
|
|
35
|
-
/** Resolved helper model: provider instance + model ID. */
|
|
36
|
-
export interface ResolvedHelper {
|
|
37
|
-
provider: LLMProvider;
|
|
38
|
-
modelId: string;
|
|
39
|
-
/** true if using a dedicated helper, false if falling back to main model. */
|
|
40
|
-
isHelper: boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/** Options for helper model invocation. */
|
|
44
|
-
export interface HelperChatOptions {
|
|
45
|
-
maxTokens?: number;
|
|
46
|
-
systemPrompt?: string;
|
|
47
|
-
/** If true, return empty string instead of falling back to main model. */
|
|
48
|
-
helperOnly?: boolean;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/** Token usage tracking for helper model calls. */
|
|
52
|
-
export interface HelperUsage {
|
|
53
|
-
inputTokens: number;
|
|
54
|
-
outputTokens: number;
|
|
55
|
-
calls: number;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface HelperModelDeps {
|
|
59
|
-
readonly configManager: Pick<ConfigManager, 'get' | 'getCategory'>;
|
|
60
|
-
readonly providerRegistry: Pick<ProviderRegistry, 'get' | 'getCurrentModel' | 'getForModel'>;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* HelperRouter — resolves which model to use for a given helper task.
|
|
65
|
-
*
|
|
66
|
-
* Resolution order:
|
|
67
|
-
* 1. Per-provider helper (helper.providers.{currentProvider}.provider + model)
|
|
68
|
-
* 2. Global helper (helper.globalProvider + helper.globalModel)
|
|
69
|
-
* 3. Tool LLM (tools.llmProvider + tools.llmModel) — if configured
|
|
70
|
-
* 4. Main model (fallback — not a true helper, but ensures the task runs)
|
|
71
|
-
*/
|
|
72
|
-
export class HelperRouter {
|
|
73
|
-
constructor(private readonly deps: HelperModelDeps) {}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Resolve the best helper for the given task.
|
|
77
|
-
*
|
|
78
|
-
* Returns null only if no provider can be resolved at all.
|
|
79
|
-
*/
|
|
80
|
-
resolve(_task: HelperTask): ResolvedHelper | null {
|
|
81
|
-
try {
|
|
82
|
-
// 1. Check per-provider helper
|
|
83
|
-
const currentModel = this.deps.providerRegistry.getCurrentModel();
|
|
84
|
-
const currentProviderName = currentModel.provider ?? '';
|
|
85
|
-
|
|
86
|
-
// Per-provider helpers stored in config as helper.providers.{name}.provider and .model
|
|
87
|
-
// These are accessed via getCategory since they're nested objects
|
|
88
|
-
const helperConfig = this.deps.configManager.getCategory('helper') as Record<string, unknown> | undefined;
|
|
89
|
-
if (helperConfig) {
|
|
90
|
-
const providers = helperConfig['providers'] as Record<string, { provider?: string; model?: string }> | undefined;
|
|
91
|
-
if (providers && currentProviderName && providers[currentProviderName]) {
|
|
92
|
-
const perProvider = providers[currentProviderName];
|
|
93
|
-
if (perProvider.provider && perProvider.model) {
|
|
94
|
-
try {
|
|
95
|
-
const provider = this.deps.providerRegistry.get(perProvider.provider);
|
|
96
|
-
return { provider, modelId: perProvider.model, isHelper: true };
|
|
97
|
-
} catch {
|
|
98
|
-
logger.debug(`HelperRouter: per-provider helper ${perProvider.provider} not found, falling through`);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// 2. Global helper
|
|
105
|
-
const globalProvider = this.deps.configManager.get('helper.globalProvider') as string;
|
|
106
|
-
const globalModel = this.deps.configManager.get('helper.globalModel') as string;
|
|
107
|
-
if (globalProvider && globalModel) {
|
|
108
|
-
try {
|
|
109
|
-
const provider = this.deps.providerRegistry.get(globalProvider);
|
|
110
|
-
return { provider, modelId: globalModel, isHelper: true };
|
|
111
|
-
} catch {
|
|
112
|
-
logger.debug(`HelperRouter: global helper ${globalProvider} not found, falling through`);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// 3. Tool LLM
|
|
117
|
-
const toolProvider = this.deps.configManager.get('tools.llmProvider') as string;
|
|
118
|
-
const toolModel = this.deps.configManager.get('tools.llmModel') as string;
|
|
119
|
-
if (toolProvider && toolModel) {
|
|
120
|
-
try {
|
|
121
|
-
const provider = this.deps.providerRegistry.get(toolProvider);
|
|
122
|
-
return { provider, modelId: toolModel, isHelper: true };
|
|
123
|
-
} catch {
|
|
124
|
-
logger.debug(`HelperRouter: tool LLM ${toolProvider} not found, falling through`);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// 4. Fallback to main model
|
|
129
|
-
const mainProvider = this.deps.providerRegistry.getForModel(currentModel.id, currentModel.provider);
|
|
130
|
-
return { provider: mainProvider, modelId: currentModel.id, isHelper: false };
|
|
131
|
-
} catch (err) {
|
|
132
|
-
logger.debug('HelperRouter.resolve: failed', { task: _task, error: summarizeError(err) });
|
|
133
|
-
return null;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* HelperModel — lightweight LLM interface for helper tasks.
|
|
140
|
-
*
|
|
141
|
-
* Callers own HelperModel lifetimes explicitly. Never throws — returns empty string on failure.
|
|
142
|
-
* Tracks token usage separately from the main model.
|
|
143
|
-
*/
|
|
144
|
-
export class HelperModel {
|
|
145
|
-
private readonly router: HelperRouter;
|
|
146
|
-
private _usage: HelperUsage = { inputTokens: 0, outputTokens: 0, calls: 0 };
|
|
147
|
-
|
|
148
|
-
constructor(private readonly deps: HelperModelDeps) {
|
|
149
|
-
this.router = new HelperRouter(deps);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Send a prompt to the helper model for the given task.
|
|
154
|
-
*
|
|
155
|
-
* @param task The helper task type (for routing).
|
|
156
|
-
* @param prompt The user prompt to send.
|
|
157
|
-
* @param options Optional maxTokens, systemPrompt, helperOnly.
|
|
158
|
-
* @returns The assistant's text response, or empty string on failure.
|
|
159
|
-
*/
|
|
160
|
-
async chat(task: HelperTask, prompt: string, options: HelperChatOptions = {}): Promise<string> {
|
|
161
|
-
// When helper is disabled, skip the resolution chain entirely
|
|
162
|
-
const enabled = this.deps.configManager.get('helper.enabled') as boolean;
|
|
163
|
-
if (!enabled) {
|
|
164
|
-
if (options.helperOnly) return '';
|
|
165
|
-
// Disabled: bypass helper resolution — use main model directly
|
|
166
|
-
try {
|
|
167
|
-
const currentModel = this.deps.providerRegistry.getCurrentModel();
|
|
168
|
-
const mainProvider = this.deps.providerRegistry.getForModel(currentModel.id, currentModel.provider);
|
|
169
|
-
const response = await mainProvider.chat({
|
|
170
|
-
model: currentModel.id,
|
|
171
|
-
messages: [{ role: 'user', content: prompt }],
|
|
172
|
-
maxTokens: options.maxTokens ?? 2048,
|
|
173
|
-
systemPrompt: options.systemPrompt,
|
|
174
|
-
});
|
|
175
|
-
this._usage.inputTokens += response.usage?.inputTokens ?? 0;
|
|
176
|
-
this._usage.outputTokens += response.usage?.outputTokens ?? 0;
|
|
177
|
-
this._usage.calls += 1;
|
|
178
|
-
return response.content ?? '';
|
|
179
|
-
} catch (err) {
|
|
180
|
-
logger.debug('HelperModel.chat: main model fallback failed (non-fatal)', { task, error: summarizeError(err) });
|
|
181
|
-
return '';
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
try {
|
|
186
|
-
const resolved = this.router.resolve(task);
|
|
187
|
-
if (!resolved) {
|
|
188
|
-
logger.debug('HelperModel.chat: no provider resolved', { task });
|
|
189
|
-
return '';
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// If helperOnly is set and we fell back to the main model, return empty
|
|
193
|
-
if (options.helperOnly && !resolved.isHelper) {
|
|
194
|
-
return '';
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
const response = await resolved.provider.chat({
|
|
198
|
-
model: resolved.modelId,
|
|
199
|
-
messages: [{ role: 'user', content: prompt }],
|
|
200
|
-
maxTokens: options.maxTokens ?? 2048,
|
|
201
|
-
systemPrompt: options.systemPrompt,
|
|
202
|
-
});
|
|
203
|
-
|
|
204
|
-
// Track usage
|
|
205
|
-
this._usage.inputTokens += response.usage?.inputTokens ?? 0;
|
|
206
|
-
this._usage.outputTokens += response.usage?.outputTokens ?? 0;
|
|
207
|
-
this._usage.calls += 1;
|
|
208
|
-
|
|
209
|
-
logger.debug('HelperModel.chat: success', {
|
|
210
|
-
task,
|
|
211
|
-
isHelper: resolved.isHelper,
|
|
212
|
-
modelId: resolved.modelId,
|
|
213
|
-
inputTokens: response.usage?.inputTokens,
|
|
214
|
-
outputTokens: response.usage?.outputTokens,
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
return response.content ?? '';
|
|
218
|
-
} catch (err) {
|
|
219
|
-
logger.debug('HelperModel.chat: request failed (non-fatal)', { task, error: summarizeError(err) });
|
|
220
|
-
return '';
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/** Get cumulative helper usage since last reset. */
|
|
225
|
-
getUsage(): Readonly<HelperUsage> {
|
|
226
|
-
return { ...this._usage };
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/** Reset usage counters. */
|
|
230
|
-
resetUsage(): void {
|
|
231
|
-
this._usage = { inputTokens: 0, outputTokens: 0, calls: 0 };
|
|
232
|
-
}
|
|
233
|
-
}
|
|
1
|
+
export * from '@pellux/goodvibes-sdk/platform/config/helper-model';
|
package/src/config/index.ts
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* - Pure helpers that derive values from an explicit ConfigManager instance
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export { ConfigManager } from '
|
|
10
|
-
export type { DeepReadonly } from '
|
|
9
|
+
export { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
10
|
+
export type { DeepReadonly } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
11
11
|
export type { GoodVibesConfig, ConfigKey, ConfigValue, ConfigSetting, PermissionMode, PermissionAction, PermissionsToolConfig, NotificationsConfig } from '@pellux/goodvibes-sdk/platform/config/schema';
|
|
12
12
|
export { DEFAULT_CONFIG, CONFIG_SCHEMA } from '@pellux/goodvibes-sdk/platform/config/schema';
|
|
13
13
|
export { ConfigError } from '@pellux/goodvibes-sdk/platform/types/errors';
|
|
14
14
|
|
|
15
15
|
import { readFileSync } from 'fs';
|
|
16
|
-
import { ConfigManager } from '
|
|
16
|
+
import { ConfigManager } from '@pellux/goodvibes-sdk/platform/config/manager';
|
|
17
17
|
import type { GoodVibesConfig } from '@pellux/goodvibes-sdk/platform/config/schema';
|
|
18
18
|
import { SecretsManager } from './secrets.ts';
|
|
19
19
|
import { logger } from '@pellux/goodvibes-sdk/platform/utils/logger';
|