@pellux/goodvibes-sdk 0.30.1 → 0.30.3
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/dist/contracts/artifacts/operator-contract.json +11 -2
- package/dist/platform/acp/index.d.ts +2 -1
- package/dist/platform/acp/index.d.ts.map +1 -1
- package/dist/platform/acp/index.js +2 -1
- package/dist/platform/adapters/index.d.ts +1 -0
- package/dist/platform/adapters/index.d.ts.map +1 -1
- package/dist/platform/adapters/index.js +1 -0
- package/dist/platform/automation/index.d.ts +3 -1
- package/dist/platform/automation/index.d.ts.map +1 -1
- package/dist/platform/automation/index.js +1 -0
- package/dist/platform/automation/legacy-scheduler.d.ts +40 -0
- package/dist/platform/automation/legacy-scheduler.d.ts.map +1 -0
- package/dist/platform/automation/legacy-scheduler.js +140 -0
- package/dist/platform/automation/manager-runtime.d.ts +5 -0
- package/dist/platform/automation/manager-runtime.d.ts.map +1 -1
- package/dist/platform/automation/manager-runtime.js +18 -1
- package/dist/platform/automation/manager.d.ts +1 -1
- package/dist/platform/automation/manager.d.ts.map +1 -1
- package/dist/platform/automation/service.d.ts +2 -0
- package/dist/platform/automation/service.d.ts.map +1 -1
- package/dist/platform/automation/service.js +26 -0
- package/dist/platform/config/helper-model.d.ts +5 -1
- package/dist/platform/config/helper-model.d.ts.map +1 -1
- package/dist/platform/config/helper-model.js +12 -3
- package/dist/platform/config/index.d.ts +4 -1
- package/dist/platform/config/index.d.ts.map +1 -1
- package/dist/platform/config/index.js +2 -1
- package/dist/platform/control-plane/index.d.ts +7 -0
- package/dist/platform/control-plane/index.d.ts.map +1 -1
- package/dist/platform/control-plane/index.js +7 -0
- package/dist/platform/control-plane/operator-contract.d.ts.map +1 -1
- package/dist/platform/control-plane/operator-contract.js +8 -0
- package/dist/platform/daemon/index.d.ts +10 -0
- package/dist/platform/daemon/index.d.ts.map +1 -1
- package/dist/platform/daemon/index.js +9 -0
- package/dist/platform/discovery/index.d.ts +1 -1
- package/dist/platform/discovery/index.d.ts.map +1 -1
- package/dist/platform/discovery/index.js +1 -1
- package/dist/platform/hooks/index.d.ts +3 -0
- package/dist/platform/hooks/index.d.ts.map +1 -1
- package/dist/platform/hooks/index.js +3 -0
- package/dist/platform/hooks/runner.d.ts +6 -0
- package/dist/platform/hooks/runner.d.ts.map +1 -0
- package/dist/platform/hooks/runner.js +40 -0
- package/dist/platform/integrations/index.d.ts +2 -0
- package/dist/platform/integrations/index.d.ts.map +1 -1
- package/dist/platform/integrations/index.js +1 -0
- package/dist/platform/intelligence/index.d.ts +3 -0
- package/dist/platform/intelligence/index.d.ts.map +1 -1
- package/dist/platform/intelligence/index.js +2 -0
- package/dist/platform/knowledge/index.d.ts +3 -0
- package/dist/platform/knowledge/index.d.ts.map +1 -1
- package/dist/platform/knowledge/index.js +2 -0
- package/dist/platform/mcp/index.d.ts +1 -0
- package/dist/platform/mcp/index.d.ts.map +1 -1
- package/dist/platform/mcp/index.js +1 -0
- package/dist/platform/media/index.d.ts +1 -0
- package/dist/platform/media/index.d.ts.map +1 -1
- package/dist/platform/media/index.js +1 -0
- package/dist/platform/pairing/companion-token.d.ts +18 -7
- package/dist/platform/pairing/companion-token.d.ts.map +1 -1
- package/dist/platform/pairing/companion-token.js +49 -7
- package/dist/platform/pairing/index.d.ts +2 -1
- package/dist/platform/pairing/index.d.ts.map +1 -1
- package/dist/platform/pairing/index.js +1 -1
- package/dist/platform/providers/index.d.ts +41 -0
- package/dist/platform/providers/index.d.ts.map +1 -1
- package/dist/platform/providers/index.js +30 -0
- package/dist/platform/providers/provider-api.d.ts +1 -0
- package/dist/platform/providers/provider-api.d.ts.map +1 -1
- package/dist/platform/providers/registry.d.ts +1 -0
- package/dist/platform/providers/registry.d.ts.map +1 -1
- package/dist/platform/providers/registry.js +3 -0
- package/dist/platform/runtime/bootstrap-background.d.ts +2 -1
- package/dist/platform/runtime/bootstrap-background.d.ts.map +1 -1
- package/dist/platform/runtime/bootstrap-background.js +6 -2
- package/dist/platform/runtime/diagnostics/index.d.ts +9 -1
- package/dist/platform/runtime/diagnostics/index.d.ts.map +1 -1
- package/dist/platform/runtime/diagnostics/index.js +6 -0
- package/dist/platform/runtime/diagnostics/panels/transport.d.ts +3 -0
- package/dist/platform/runtime/diagnostics/panels/transport.d.ts.map +1 -1
- package/dist/platform/runtime/diagnostics/panels/transport.js +11 -0
- package/dist/platform/runtime/diagnostics/types.d.ts +2 -0
- package/dist/platform/runtime/diagnostics/types.d.ts.map +1 -1
- package/dist/platform/runtime/ecosystem/catalog.d.ts +18 -0
- package/dist/platform/runtime/ecosystem/catalog.d.ts.map +1 -1
- package/dist/platform/runtime/ecosystem/catalog.js +11 -4
- package/dist/platform/runtime/events/index.d.ts +2 -0
- package/dist/platform/runtime/events/index.d.ts.map +1 -1
- package/dist/platform/runtime/events/index.js +1 -0
- package/dist/platform/runtime/forensics/index.d.ts +1 -0
- package/dist/platform/runtime/forensics/index.d.ts.map +1 -1
- package/dist/platform/runtime/index.d.ts +101 -5
- package/dist/platform/runtime/index.d.ts.map +1 -1
- package/dist/platform/runtime/index.js +79 -3
- package/dist/platform/runtime/lifecycle-facade.d.ts +66 -0
- package/dist/platform/runtime/lifecycle-facade.d.ts.map +1 -0
- package/dist/platform/runtime/lifecycle-facade.js +131 -0
- package/dist/platform/runtime/mcp/types.d.ts +1 -1
- package/dist/platform/runtime/mcp/types.d.ts.map +1 -1
- package/dist/platform/runtime/perf/component-contracts.d.ts +9 -0
- package/dist/platform/runtime/perf/component-contracts.d.ts.map +1 -1
- package/dist/platform/runtime/perf/component-contracts.js +8 -0
- package/dist/platform/runtime/perf/index.d.ts +2 -2
- package/dist/platform/runtime/perf/index.d.ts.map +1 -1
- package/dist/platform/runtime/perf/index.js +1 -1
- package/dist/platform/runtime/plugins/index.d.ts +1 -1
- package/dist/platform/runtime/plugins/index.d.ts.map +1 -1
- package/dist/platform/runtime/plugins/index.js +1 -1
- package/dist/platform/runtime/remote/index.d.ts +1 -1
- package/dist/platform/runtime/remote/index.d.ts.map +1 -1
- package/dist/platform/runtime/remote/transport-contract.d.ts.map +1 -1
- package/dist/platform/runtime/remote/transport-contract.js +11 -0
- package/dist/platform/runtime/remote/types.d.ts +2 -0
- package/dist/platform/runtime/remote/types.d.ts.map +1 -1
- package/dist/platform/security/index.d.ts +2 -1
- package/dist/platform/security/index.d.ts.map +1 -1
- package/dist/platform/security/index.js +1 -0
- package/dist/platform/state/index.d.ts +4 -1
- package/dist/platform/state/index.d.ts.map +1 -1
- package/dist/platform/state/index.js +3 -0
- package/dist/platform/tools/agent/index.d.ts +1 -1
- package/dist/platform/tools/agent/index.d.ts.map +1 -1
- package/dist/platform/tools/index.d.ts +41 -1
- package/dist/platform/tools/index.d.ts.map +1 -1
- package/dist/platform/tools/index.js +33 -0
- package/dist/platform/version.js +1 -1
- package/dist/platform/web-search/index.d.ts +1 -0
- package/dist/platform/web-search/index.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -13,6 +13,31 @@ export * from './store/domains/index.js';
|
|
|
13
13
|
export * from './store/helpers/index.js';
|
|
14
14
|
export * from './feature-flags/index.js';
|
|
15
15
|
export { RuntimeEventBus } from './events/index.js';
|
|
16
|
+
export * from './diagnostics/index.js';
|
|
17
|
+
export * from './eval/index.js';
|
|
18
|
+
export * from './forensics/index.js';
|
|
19
|
+
export * from './idempotency/index.js';
|
|
20
|
+
export * from './perf/index.js';
|
|
21
|
+
export * from './remote/index.js';
|
|
22
|
+
export type { RemoteSessionBundle } from './remote/types.js';
|
|
23
|
+
export * from './tasks/index.js';
|
|
24
|
+
export * from './ui/index.js';
|
|
25
|
+
export * from './tools/index.js';
|
|
26
|
+
export { AcpTaskAdapter } from './tasks/adapters/index.js';
|
|
27
|
+
export { OpsControlPlane, OpsIllegalActionError, OpsTargetNotFoundError } from './ops/control-plane.js';
|
|
28
|
+
export { ComponentHealthMonitor as PanelHealthMonitor } from './perf/index.js';
|
|
29
|
+
export { ToolContractVerifier } from './tools/contract-verifier.js';
|
|
30
|
+
export type { ContractVerifierOptions } from './tools/contract-verifier.js';
|
|
31
|
+
export { buildAuthInspectionSnapshot, inspectProviderAuth, } from './auth/inspection.js';
|
|
32
|
+
export type { AuthInspectionSnapshot, ProviderAuthInspection } from './auth/inspection.js';
|
|
33
|
+
export { emitSessionReady, emitSessionResumed, emitSessionStarted, } from './emitters/session.js';
|
|
34
|
+
export { fireSessionStart } from './lifecycle.js';
|
|
35
|
+
export { enrichModelEntries, groupEntriesByProvider, } from './ui/model-picker/health-enrichment.js';
|
|
36
|
+
export { McpLifecycleManager, McpPermissionManager, McpSchemaFreshnessTracker, buildMcpAttackPathReview, createMcpLifecycleManager, DEFAULT_RECONNECT_CONFIG, } from './mcp/index.js';
|
|
37
|
+
export type { McpAttackPathFinding, McpAttackPathFindingKind, McpAttackPathReview, McpCapabilityClass, McpCoherenceAssessment, McpCoherenceVerdict, McpDecisionRecord, McpEventHandler, McpLifecycleManagerOptions, McpPermission, McpReconnectConfig, McpRiskLevel, McpSchemaRecord, McpSecuritySnapshot, McpServerEntry, McpServerPermissions, McpServerRole, McpServerState, McpToolPermission, McpTrustLevel, McpTrustMode, McpTrustProfile, QuarantineReason, QuarantineRecord, SchemaFreshness, } from './mcp/index.js';
|
|
38
|
+
export { DivergenceDashboard, DivergenceGateError, LayeredPolicyEvaluator, PermissionSimulator, PolicyRegistry, PolicyRuntimeState, buildDefaultPolicySimulationScenarios, buildPermissionRuleSuggestions, buildPolicyPreflightReview, createPermissionEvaluator, createPermissionSimulator, createUnsignedBundle, lintPolicyConfig, loadPolicyBundle, runPolicySimulationScenarios, } from './permissions/index.js';
|
|
39
|
+
export type { DivergenceDashboardSnapshot, DivergenceStats, PermissionsConfig, PolicyBundlePayload, PolicyBundleVersion, PolicyDiffResult, PolicyLintFinding, PolicyPreflightReview, PolicyRule, PolicySimulationSummary, } from './permissions/index.js';
|
|
40
|
+
export type { PermissionAuditEntry } from './permissions/policy-runtime.js';
|
|
16
41
|
export { createEventEnvelope } from './event-envelope.js';
|
|
17
42
|
export type { EventEnvelope, EventEnvelopeContext } from './event-envelope.js';
|
|
18
43
|
export type { RuntimeEventEnvelope, EnvelopeContext } from './events/envelope.js';
|
|
@@ -22,14 +47,18 @@ export { createRuntimeEventFeed, createRuntimeEventFeeds } from './event-feeds.j
|
|
|
22
47
|
export type { RuntimeEventFeed, RuntimeEventFeeds } from './event-feeds.js';
|
|
23
48
|
export { getSecuritySettingsReport } from './security-settings.js';
|
|
24
49
|
export type { SecuritySettingReport, SecuritySettingsReporter } from './security-settings.js';
|
|
50
|
+
export type { ComponentConfig as PanelConfig } from './diagnostics/types.js';
|
|
51
|
+
export { DEFAULT_COMPONENT_CONFIG as DEFAULT_PANEL_CONFIG } from './diagnostics/types.js';
|
|
25
52
|
export type { EmitterContext } from './emitters/index.js';
|
|
53
|
+
export { emitAutomationJobCreated, emitControlPlaneClientConnected, emitDeliveryQueued, emitRouteBindingCreated, emitSurfaceEnabled, emitTokenBlocked, emitUiRenderRequest, emitWatcherStarted, } from './emitters/index.js';
|
|
26
54
|
export { RuntimeHealthAggregator } from './health/aggregator.js';
|
|
27
55
|
export { CascadeEngine } from './health/cascade-engine.js';
|
|
28
56
|
export { CASCADE_RULES } from './health/cascade-rules.js';
|
|
29
|
-
export { createHealthSystem } from './health/index.js';
|
|
57
|
+
export { ALL_CASCADE_RULE_IDS, CASCADE_PLAYBOOK_MAP, CascadeTimer, createCascadeAppliedEvent, createHealthSystem, deriveCascadeSeverity, } from './health/index.js';
|
|
30
58
|
export type { HealthStatus, HealthDomain as RuntimeHealthDomain, DomainHealth, CompositeHealth, CascadeRule, CascadeEffect, CascadeResult, EvaluateResult, CascadeAppliedEvent, } from './health/types.js';
|
|
31
59
|
export { NotificationRouter, createNotificationRouter } from './notifications/index.js';
|
|
32
|
-
export type { Notification, NotificationLevel, NotificationTarget, DomainVerbosity, RoutingDecision } from './notifications/types.js';
|
|
60
|
+
export type { Notification, NotificationLevel, NotificationTag, NotificationTarget, DomainVerbosity, RoutingDecision } from './notifications/types.js';
|
|
61
|
+
export { applyModeContextPolicy, BurstPolicy, } from './notifications/policies/index.js';
|
|
33
62
|
export { ModelPickerDataProvider, createModelPickerData } from './ui/model-picker/index.js';
|
|
34
63
|
export type { ModelPickerDataProviderOptions } from './ui/model-picker/index.js';
|
|
35
64
|
export { ProviderHealthDataProvider, buildFallbackChainData, createProviderHealthData } from './ui/provider-health/index.js';
|
|
@@ -52,14 +81,58 @@ export { createRuntimeHookApi } from './runtime-hook-api.js';
|
|
|
52
81
|
export { createRuntimeMcpApi } from './runtime-mcp-api.js';
|
|
53
82
|
export { createRuntimeOpsApi } from './runtime-ops-api.js';
|
|
54
83
|
export type { OpsApi } from './ops-api.js';
|
|
55
|
-
export
|
|
84
|
+
export * from './ui-service-queries.js';
|
|
85
|
+
export { scheduleBackgroundMcpDiscovery, startBackgroundProviderDiscovery, startBackgroundProviderDiscovery as startBackgroundProviderRegistration, } from './bootstrap-background.js';
|
|
56
86
|
export type { BackgroundMcpDiscoveryOptions, BackgroundProviderDiscoveryOptions, HostSystemMessageSink, RuntimeSelectionState, } from './bootstrap-background.js';
|
|
57
|
-
export { loadRuntimeSystemPrompt, restoreRuntimeModel, synchronizeConfiguredServices, } from './bootstrap-helpers.js';
|
|
87
|
+
export { loadRuntimeSystemPrompt, loadRuntimeSystemPrompt as loadBootstrapSystemPrompt, restoreRuntimeModel, restoreRuntimeModel as restoreSavedModel, synchronizeConfiguredServices, synchronizeConfiguredServices as syncConfiguredServices, } from './bootstrap-helpers.js';
|
|
58
88
|
export type { RuntimeModelSelectionState } from './bootstrap-helpers.js';
|
|
59
89
|
export { registerBootstrapRuntimeEvents, registerHostRuntimeEvents } from './bootstrap-runtime-events.js';
|
|
60
90
|
export type { BootstrapRuntimeEventBridgeOptions, HostRuntimeEventBridgeOptions, HostRuntimeMessageRouter } from './bootstrap-runtime-events.js';
|
|
61
91
|
export { startHostServices } from './bootstrap-services.js';
|
|
62
|
-
export
|
|
92
|
+
export { startHostServices as startExternalServices } from './bootstrap-services.js';
|
|
93
|
+
export type { HostServiceMode, HostServicesConfig, HostServicesHandle, HostServicesHandle as ExternalServicesHandle, HostServiceStatus, } from './bootstrap-services.js';
|
|
94
|
+
export { registerBootstrapHookBridge } from './bootstrap-hook-bridge.js';
|
|
95
|
+
export type { HookBridgeRegistrationOptions } from './bootstrap-hook-bridge.js';
|
|
96
|
+
export { createDeferredStartupCoordinator } from './deferred-startup.js';
|
|
97
|
+
export type { DeferredStartupCoordinator, DeferredStartupTask } from './deferred-startup.js';
|
|
98
|
+
export { dismissGuidance, evaluateContextualGuidance, formatGuidanceItems, resetGuidance, } from './guidance.js';
|
|
99
|
+
export type { ContextualGuidanceSnapshot, GuidanceCategory, GuidanceItem, GuidancePersistenceOptions, } from './guidance.js';
|
|
100
|
+
export * from './host-ui.js';
|
|
101
|
+
export { IntegrationHelperService } from './integration/helpers.js';
|
|
102
|
+
export type { ContinuitySnapshot, IntegrationHelpersContext, PanelSnapshot, SettingsSnapshot, WorktreeSnapshot } from './integration/helpers.js';
|
|
103
|
+
export * from './mutable-runtime-state.js';
|
|
104
|
+
export * from './provider-accounts/registry.js';
|
|
105
|
+
export * from './sandbox/backend.js';
|
|
106
|
+
export * from './sandbox/manager.js';
|
|
107
|
+
export * from './sandbox/provisioning.js';
|
|
108
|
+
export * from './sandbox/qemu-wrapper-template.js';
|
|
109
|
+
export * from './sandbox/session-registry.js';
|
|
110
|
+
export * from './sandbox/types.js';
|
|
111
|
+
export * from './session-maintenance.js';
|
|
112
|
+
export * from './session-persistence.js';
|
|
113
|
+
export * from './session-return-context.js';
|
|
114
|
+
export * from './settings/control-plane.js';
|
|
115
|
+
export * from './settings/control-plane-store.js';
|
|
116
|
+
export * from './shell-command-extensions.js';
|
|
117
|
+
export * from './shell-command-ops.js';
|
|
118
|
+
export * from './shell-command-platform.js';
|
|
119
|
+
export * from './shell-command-services.js';
|
|
120
|
+
export * from './shell-command-workspace.js';
|
|
121
|
+
export * from './shell-paths.js';
|
|
122
|
+
export * from './surface-root.js';
|
|
123
|
+
export * from './system-message-policy.js';
|
|
124
|
+
export * from './ui-events.js';
|
|
125
|
+
export * from './ui-read-models-base.js';
|
|
126
|
+
export * from './ui-read-models-core.js';
|
|
127
|
+
export * from './ui-read-models-observability.js';
|
|
128
|
+
export * from './ui-read-models-observability-maintenance.js';
|
|
129
|
+
export * from './ui-read-models-observability-options.js';
|
|
130
|
+
export * from './ui-read-models-observability-remote.js';
|
|
131
|
+
export * from './ui-read-models-observability-security.js';
|
|
132
|
+
export * from './ui-read-models-observability-system.js';
|
|
133
|
+
export * from './ui-read-models-operations.js';
|
|
134
|
+
export * from './worktree/registry.js';
|
|
135
|
+
export * from './ecosystem/catalog.js';
|
|
63
136
|
export { createDiagnosticsProvider, DiagnosticsProvider } from './diagnostics/index.js';
|
|
64
137
|
export type { DiagnosticsProviderConfig, DiagnosticPanelName } from './diagnostics/provider.js';
|
|
65
138
|
export { BoundedTransitionLog, TimelineBuffer, SelectorHotspotSampler, StateInspectorProvider, createStateInspector, } from './inspection/state-inspector/index.js';
|
|
@@ -69,11 +142,15 @@ export { createRuntimeDirectTransport } from './transports/direct.js';
|
|
|
69
142
|
export type { DirectTransport } from './transports/direct.js';
|
|
70
143
|
export { createDirectClientTransport } from './transports/direct-client.js';
|
|
71
144
|
export type { DirectClientTransport } from './transports/direct-client.js';
|
|
145
|
+
export { createHttpTransport } from './transports/daemon-http-client.js';
|
|
146
|
+
export type { HttpTransport, HttpTransportOptions, HttpTransportSnapshot } from './transports/http-types.js';
|
|
72
147
|
export { createClientTransport } from './transports/client-transport.js';
|
|
73
148
|
export type { ClientTransport } from './transports/client-transport.js';
|
|
74
149
|
export { buildUrl, createTransportPaths, normalizeBaseUrl } from './transports/transport-paths.js';
|
|
75
150
|
export type { TransportPaths } from './transports/transport-paths.js';
|
|
76
151
|
export { createFetch, createHttpJsonTransport, createJsonInit, createJsonRequestInit, readJsonBody, requestJson, } from './transports/http-json-transport.js';
|
|
152
|
+
export { createRealtimeTransport } from './transports/realtime.js';
|
|
153
|
+
export type { RealtimeTransport, RealtimeTransportOptions, RealtimeTransportSnapshot } from './transports/realtime.js';
|
|
77
154
|
export type { HttpJsonRequestOptions, HttpJsonTransport, HttpJsonTransportOptions, JsonObject, JsonValue, ResolvedContractRequest, TransportJsonError, } from './transports/http-json-transport.js';
|
|
78
155
|
export { buildContractInput, invokeContractRoute, openContractRouteStream, requireContractRoute, } from './transports/contract-http-client.js';
|
|
79
156
|
export type { ContractInvokeOptions, ContractRouteDefinition, ContractRouteLike, ContractStreamOptions, } from './transports/contract-http-client.js';
|
|
@@ -86,4 +163,23 @@ export type { PeerRemoteClient, PeerRemoteClientInvokeOptions, } from './transpo
|
|
|
86
163
|
export { buildEventSourceUrl, buildWebSocketUrl, createEventSourceConnector, createRemoteDomainEvents, createRemoteRuntimeEvents, createRemoteUiRuntimeEvents, createWebSocketConnector, } from './transports/remote-events.js';
|
|
87
164
|
export type { DomainEventConnector, RemoteDomainEventsOptions, RemoteDomainEvents, RemoteRuntimeEvents, RemoteRuntimeEventsOptions, SerializedRuntimeEnvelope, } from './transports/remote-events.js';
|
|
88
165
|
export * from './network/index.js';
|
|
166
|
+
export { ALL_CAPABILITIES, ALL_CAPABILITIES as PLUGIN_CAPABILITIES, HIGH_RISK_CAPABILITIES, PluginLifecycleManager, PluginQuarantineEngine, PluginTrustStore, SAFE_CAPABILITIES, filterCapabilitiesByTrust, hasCapability, isHighRiskCapability, isOperational as isPluginOperational, isReloadable as isPluginReloadable, isTerminal as isPluginTerminal, resolveCapabilityManifest, validateManifestV2, validatePluginSignature, } from './plugins/index.js';
|
|
167
|
+
export type { PluginCapability, PluginCapabilityManifest, PluginManifestV2, PluginTrustTier, } from './plugins/index.js';
|
|
168
|
+
export { LOW_QUALITY_THRESHOLD, computeQualityScore, createCompactionManager, describeScore, escalateStrategy, isTerminal as isTerminalCompactionState, reachableFrom as reachableFromCompactionState, } from './compaction/index.js';
|
|
169
|
+
export type { CompactionQualityScore, CompactionStrategy, StrategyInput, StrategyOutput, } from './compaction/index.js';
|
|
170
|
+
export { compactionFailurePlaybook, exportRecoveryPlaybook, permissionDeadlockPlaybook, pluginDegradationPlaybook, reconnectFailurePlaybook, sessionUnrecoverablePlaybook, stuckTurnPlaybook, } from './ops/playbooks/index.js';
|
|
171
|
+
export { createSessionUnrecoverablePlaybook, } from './ops/playbooks/session-unrecoverable.js';
|
|
172
|
+
export { createStuckTurnPlaybook, } from './ops/playbooks/stuck-turn.js';
|
|
173
|
+
export { buildDenialExplanation, canonicalize, classifyCommand, classifySegment, collectCommandNodes, evaluateCommandAST, evaluateSegmentNode, higherPriority, parseAST, parseCommandAST, tokenize, } from './permissions/normalization/index.js';
|
|
174
|
+
export type { CommandClassification, CommandNode, CommandSegment, CommandToken, PipeNode, SequenceNode, SubshellNode, } from './permissions/normalization/index.js';
|
|
175
|
+
export { PolicySignatureError, canonicalise, runSafetyChecks, signBundle, verifyBundle, } from './permissions/index.js';
|
|
176
|
+
export { MAX_INPUT_LENGTH, MAX_TOKEN_COUNT, } from './permissions/normalization/tokenizer.js';
|
|
177
|
+
export type { BundleProvenance, DecisionReason, DivergenceReport, EnforceGateResult, SignedPolicyBundle, } from './permissions/index.js';
|
|
178
|
+
export { evaluateOrchestrationSpawn, } from './orchestration/spawn-policy.js';
|
|
179
|
+
export type { DistributedRuntimeSnapshotStore, } from './remote/index.js';
|
|
180
|
+
export { TelemetryApiService, } from './telemetry/index.js';
|
|
181
|
+
export type { LedgerEntry, } from './telemetry/exporters/local-ledger.js';
|
|
182
|
+
export { TRANSPORT_PROTOCOL_SUPPORT_MATRIX as TRANSPORT_COMPATIBILITY_MATRIX, } from './remote/index.js';
|
|
183
|
+
export { applyTransition, canTransition, isOperational, isReloadable, isTerminal, reachableFrom, } from './lifecycle-facade.js';
|
|
184
|
+
export type { RuntimeTransitionResult } from './lifecycle-facade.js';
|
|
89
185
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|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B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,+BAA+B,GAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,WAAW,GACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,iCAAiC,IAAI,8BAA8B,GACpE,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -11,15 +11,37 @@ export * from './store/domains/index.js';
|
|
|
11
11
|
export * from './store/helpers/index.js';
|
|
12
12
|
export * from './feature-flags/index.js';
|
|
13
13
|
export { RuntimeEventBus } from './events/index.js';
|
|
14
|
+
export * from './diagnostics/index.js';
|
|
15
|
+
export * from './eval/index.js';
|
|
16
|
+
export * from './forensics/index.js';
|
|
17
|
+
export * from './idempotency/index.js';
|
|
18
|
+
export * from './perf/index.js';
|
|
19
|
+
export * from './remote/index.js';
|
|
20
|
+
export * from './tasks/index.js';
|
|
21
|
+
export * from './ui/index.js';
|
|
22
|
+
export * from './tools/index.js';
|
|
23
|
+
export { AcpTaskAdapter } from './tasks/adapters/index.js';
|
|
24
|
+
export { OpsControlPlane, OpsIllegalActionError, OpsTargetNotFoundError } from './ops/control-plane.js';
|
|
25
|
+
export { ComponentHealthMonitor as PanelHealthMonitor } from './perf/index.js';
|
|
26
|
+
export { ToolContractVerifier } from './tools/contract-verifier.js';
|
|
27
|
+
export { buildAuthInspectionSnapshot, inspectProviderAuth, } from './auth/inspection.js';
|
|
28
|
+
export { emitSessionReady, emitSessionResumed, emitSessionStarted, } from './emitters/session.js';
|
|
29
|
+
export { fireSessionStart } from './lifecycle.js';
|
|
30
|
+
export { enrichModelEntries, groupEntriesByProvider, } from './ui/model-picker/health-enrichment.js';
|
|
31
|
+
export { McpLifecycleManager, McpPermissionManager, McpSchemaFreshnessTracker, buildMcpAttackPathReview, createMcpLifecycleManager, DEFAULT_RECONNECT_CONFIG, } from './mcp/index.js';
|
|
32
|
+
export { DivergenceDashboard, DivergenceGateError, LayeredPolicyEvaluator, PermissionSimulator, PolicyRegistry, PolicyRuntimeState, buildDefaultPolicySimulationScenarios, buildPermissionRuleSuggestions, buildPolicyPreflightReview, createPermissionEvaluator, createPermissionSimulator, createUnsignedBundle, lintPolicyConfig, loadPolicyBundle, runPolicySimulationScenarios, } from './permissions/index.js';
|
|
14
33
|
export { createEventEnvelope } from './event-envelope.js';
|
|
15
34
|
export { RUNTIME_EVENT_DOMAINS, isRuntimeEventDomain } from '../../events/domain-map.js';
|
|
16
35
|
export { createRuntimeEventFeed, createRuntimeEventFeeds } from './event-feeds.js';
|
|
17
36
|
export { getSecuritySettingsReport } from './security-settings.js';
|
|
37
|
+
export { DEFAULT_COMPONENT_CONFIG as DEFAULT_PANEL_CONFIG } from './diagnostics/types.js';
|
|
38
|
+
export { emitAutomationJobCreated, emitControlPlaneClientConnected, emitDeliveryQueued, emitRouteBindingCreated, emitSurfaceEnabled, emitTokenBlocked, emitUiRenderRequest, emitWatcherStarted, } from './emitters/index.js';
|
|
18
39
|
export { RuntimeHealthAggregator } from './health/aggregator.js';
|
|
19
40
|
export { CascadeEngine } from './health/cascade-engine.js';
|
|
20
41
|
export { CASCADE_RULES } from './health/cascade-rules.js';
|
|
21
|
-
export { createHealthSystem } from './health/index.js';
|
|
42
|
+
export { ALL_CASCADE_RULE_IDS, CASCADE_PLAYBOOK_MAP, CascadeTimer, createCascadeAppliedEvent, createHealthSystem, deriveCascadeSeverity, } from './health/index.js';
|
|
22
43
|
export { NotificationRouter, createNotificationRouter } from './notifications/index.js';
|
|
44
|
+
export { applyModeContextPolicy, BurstPolicy, } from './notifications/policies/index.js';
|
|
23
45
|
export { ModelPickerDataProvider, createModelPickerData } from './ui/model-picker/index.js';
|
|
24
46
|
export { ProviderHealthDataProvider, buildFallbackChainData, createProviderHealthData } from './ui/provider-health/index.js';
|
|
25
47
|
export { RetentionPolicy, SnapshotPruner, DEFAULT_RETENTION_CONFIG, } from './retention/index.js';
|
|
@@ -34,21 +56,75 @@ export { createRuntimeKnowledgeApi } from './runtime-knowledge-api.js';
|
|
|
34
56
|
export { createRuntimeHookApi } from './runtime-hook-api.js';
|
|
35
57
|
export { createRuntimeMcpApi } from './runtime-mcp-api.js';
|
|
36
58
|
export { createRuntimeOpsApi } from './runtime-ops-api.js';
|
|
37
|
-
export
|
|
38
|
-
export {
|
|
59
|
+
export * from './ui-service-queries.js';
|
|
60
|
+
export { scheduleBackgroundMcpDiscovery, startBackgroundProviderDiscovery, startBackgroundProviderDiscovery as startBackgroundProviderRegistration, } from './bootstrap-background.js';
|
|
61
|
+
export { loadRuntimeSystemPrompt, loadRuntimeSystemPrompt as loadBootstrapSystemPrompt, restoreRuntimeModel, restoreRuntimeModel as restoreSavedModel, synchronizeConfiguredServices, synchronizeConfiguredServices as syncConfiguredServices, } from './bootstrap-helpers.js';
|
|
39
62
|
export { registerBootstrapRuntimeEvents, registerHostRuntimeEvents } from './bootstrap-runtime-events.js';
|
|
40
63
|
export { startHostServices } from './bootstrap-services.js';
|
|
64
|
+
export { startHostServices as startExternalServices } from './bootstrap-services.js';
|
|
65
|
+
export { registerBootstrapHookBridge } from './bootstrap-hook-bridge.js';
|
|
66
|
+
export { createDeferredStartupCoordinator } from './deferred-startup.js';
|
|
67
|
+
export { dismissGuidance, evaluateContextualGuidance, formatGuidanceItems, resetGuidance, } from './guidance.js';
|
|
68
|
+
export * from './host-ui.js';
|
|
69
|
+
export { IntegrationHelperService } from './integration/helpers.js';
|
|
70
|
+
export * from './mutable-runtime-state.js';
|
|
71
|
+
export * from './provider-accounts/registry.js';
|
|
72
|
+
export * from './sandbox/backend.js';
|
|
73
|
+
export * from './sandbox/manager.js';
|
|
74
|
+
export * from './sandbox/provisioning.js';
|
|
75
|
+
export * from './sandbox/qemu-wrapper-template.js';
|
|
76
|
+
export * from './sandbox/session-registry.js';
|
|
77
|
+
export * from './sandbox/types.js';
|
|
78
|
+
export * from './session-maintenance.js';
|
|
79
|
+
export * from './session-persistence.js';
|
|
80
|
+
export * from './session-return-context.js';
|
|
81
|
+
export * from './settings/control-plane.js';
|
|
82
|
+
export * from './settings/control-plane-store.js';
|
|
83
|
+
export * from './shell-command-extensions.js';
|
|
84
|
+
export * from './shell-command-ops.js';
|
|
85
|
+
export * from './shell-command-platform.js';
|
|
86
|
+
export * from './shell-command-services.js';
|
|
87
|
+
export * from './shell-command-workspace.js';
|
|
88
|
+
export * from './shell-paths.js';
|
|
89
|
+
export * from './surface-root.js';
|
|
90
|
+
export * from './system-message-policy.js';
|
|
91
|
+
export * from './ui-events.js';
|
|
92
|
+
export * from './ui-read-models-base.js';
|
|
93
|
+
export * from './ui-read-models-core.js';
|
|
94
|
+
export * from './ui-read-models-observability.js';
|
|
95
|
+
export * from './ui-read-models-observability-maintenance.js';
|
|
96
|
+
export * from './ui-read-models-observability-options.js';
|
|
97
|
+
export * from './ui-read-models-observability-remote.js';
|
|
98
|
+
export * from './ui-read-models-observability-security.js';
|
|
99
|
+
export * from './ui-read-models-observability-system.js';
|
|
100
|
+
export * from './ui-read-models-operations.js';
|
|
101
|
+
export * from './worktree/registry.js';
|
|
102
|
+
export * from './ecosystem/catalog.js';
|
|
41
103
|
export { createDiagnosticsProvider, DiagnosticsProvider } from './diagnostics/index.js';
|
|
42
104
|
export { BoundedTransitionLog, TimelineBuffer, SelectorHotspotSampler, StateInspectorProvider, createStateInspector, } from './inspection/state-inspector/index.js';
|
|
43
105
|
export { createDirectTransport, createDirectTransportFromServices } from './transports/direct.js';
|
|
44
106
|
export { createRuntimeDirectTransport } from './transports/direct.js';
|
|
45
107
|
export { createDirectClientTransport } from './transports/direct-client.js';
|
|
108
|
+
export { createHttpTransport } from './transports/daemon-http-client.js';
|
|
46
109
|
export { createClientTransport } from './transports/client-transport.js';
|
|
47
110
|
export { buildUrl, createTransportPaths, normalizeBaseUrl } from './transports/transport-paths.js';
|
|
48
111
|
export { createFetch, createHttpJsonTransport, createJsonInit, createJsonRequestInit, readJsonBody, requestJson, } from './transports/http-json-transport.js';
|
|
112
|
+
export { createRealtimeTransport } from './transports/realtime.js';
|
|
49
113
|
export { buildContractInput, invokeContractRoute, openContractRouteStream, requireContractRoute, } from './transports/contract-http-client.js';
|
|
50
114
|
export { isAbortError, openServerSentEventStream } from './transports/sse-stream.js';
|
|
51
115
|
export { createOperatorRemoteClient } from './transports/operator-remote-client.js';
|
|
52
116
|
export { createPeerRemoteClient } from './transports/peer-remote-client.js';
|
|
53
117
|
export { buildEventSourceUrl, buildWebSocketUrl, createEventSourceConnector, createRemoteDomainEvents, createRemoteRuntimeEvents, createRemoteUiRuntimeEvents, createWebSocketConnector, } from './transports/remote-events.js';
|
|
54
118
|
export * from './network/index.js';
|
|
119
|
+
export { ALL_CAPABILITIES, ALL_CAPABILITIES as PLUGIN_CAPABILITIES, HIGH_RISK_CAPABILITIES, PluginLifecycleManager, PluginQuarantineEngine, PluginTrustStore, SAFE_CAPABILITIES, filterCapabilitiesByTrust, hasCapability, isHighRiskCapability, isOperational as isPluginOperational, isReloadable as isPluginReloadable, isTerminal as isPluginTerminal, resolveCapabilityManifest, validateManifestV2, validatePluginSignature, } from './plugins/index.js';
|
|
120
|
+
export { LOW_QUALITY_THRESHOLD, computeQualityScore, createCompactionManager, describeScore, escalateStrategy, isTerminal as isTerminalCompactionState, reachableFrom as reachableFromCompactionState, } from './compaction/index.js';
|
|
121
|
+
export { compactionFailurePlaybook, exportRecoveryPlaybook, permissionDeadlockPlaybook, pluginDegradationPlaybook, reconnectFailurePlaybook, sessionUnrecoverablePlaybook, stuckTurnPlaybook, } from './ops/playbooks/index.js';
|
|
122
|
+
export { createSessionUnrecoverablePlaybook, } from './ops/playbooks/session-unrecoverable.js';
|
|
123
|
+
export { createStuckTurnPlaybook, } from './ops/playbooks/stuck-turn.js';
|
|
124
|
+
export { buildDenialExplanation, canonicalize, classifyCommand, classifySegment, collectCommandNodes, evaluateCommandAST, evaluateSegmentNode, higherPriority, parseAST, parseCommandAST, tokenize, } from './permissions/normalization/index.js';
|
|
125
|
+
export { PolicySignatureError, canonicalise, runSafetyChecks, signBundle, verifyBundle, } from './permissions/index.js';
|
|
126
|
+
export { MAX_INPUT_LENGTH, MAX_TOKEN_COUNT, } from './permissions/normalization/tokenizer.js';
|
|
127
|
+
export { evaluateOrchestrationSpawn, } from './orchestration/spawn-policy.js';
|
|
128
|
+
export { TelemetryApiService, } from './telemetry/index.js';
|
|
129
|
+
export { TRANSPORT_PROTOCOL_SUPPORT_MATRIX as TRANSPORT_COMPATIBILITY_MATRIX, } from './remote/index.js';
|
|
130
|
+
export { applyTransition, canTransition, isOperational, isReloadable, isTerminal, reachableFrom, } from './lifecycle-facade.js';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { CompactionLifecycleState } from './compaction/index.js';
|
|
2
|
+
import { type TransitionResult as CompactionTransitionResult } from './compaction/index.js';
|
|
3
|
+
import type { McpServerState } from './mcp/index.js';
|
|
4
|
+
import type { PluginLifecycleState } from './plugins/index.js';
|
|
5
|
+
import { type TransitionResult as PluginTransitionResult } from './plugins/index.js';
|
|
6
|
+
import type { TaskLifecycleState } from './store/domains/tasks.js';
|
|
7
|
+
type RuntimeLifecycleState = TaskLifecycleState | PluginLifecycleState | McpServerState | CompactionLifecycleState;
|
|
8
|
+
export type RuntimeTransitionResult = (PluginTransitionResult & {
|
|
9
|
+
readonly success?: never;
|
|
10
|
+
readonly previous?: never;
|
|
11
|
+
readonly next?: never;
|
|
12
|
+
readonly state?: never;
|
|
13
|
+
}) | ({
|
|
14
|
+
ok: true;
|
|
15
|
+
success: true;
|
|
16
|
+
previous: McpServerState;
|
|
17
|
+
next: McpServerState;
|
|
18
|
+
from: McpServerState;
|
|
19
|
+
to: McpServerState;
|
|
20
|
+
readonly state?: never;
|
|
21
|
+
} | {
|
|
22
|
+
ok: false;
|
|
23
|
+
success: false;
|
|
24
|
+
reason: string;
|
|
25
|
+
readonly previous?: never;
|
|
26
|
+
readonly next?: never;
|
|
27
|
+
readonly from?: never;
|
|
28
|
+
readonly to?: never;
|
|
29
|
+
readonly state?: never;
|
|
30
|
+
}) | (CompactionTransitionResult & {
|
|
31
|
+
readonly success?: never;
|
|
32
|
+
readonly previous?: never;
|
|
33
|
+
readonly next?: never;
|
|
34
|
+
readonly from?: never;
|
|
35
|
+
readonly to?: never;
|
|
36
|
+
}) | {
|
|
37
|
+
ok: true;
|
|
38
|
+
from: TaskLifecycleState;
|
|
39
|
+
to: TaskLifecycleState;
|
|
40
|
+
readonly success?: never;
|
|
41
|
+
readonly previous?: never;
|
|
42
|
+
readonly next?: never;
|
|
43
|
+
readonly state?: never;
|
|
44
|
+
} | {
|
|
45
|
+
ok: false;
|
|
46
|
+
reason: string;
|
|
47
|
+
readonly success?: never;
|
|
48
|
+
readonly previous?: never;
|
|
49
|
+
readonly next?: never;
|
|
50
|
+
readonly from?: never;
|
|
51
|
+
readonly to?: never;
|
|
52
|
+
readonly state?: never;
|
|
53
|
+
};
|
|
54
|
+
export declare function canTransition(from: McpServerState, to: McpServerState): boolean;
|
|
55
|
+
export declare function canTransition(from: PluginLifecycleState, to: PluginLifecycleState): boolean;
|
|
56
|
+
export declare function canTransition(from: TaskLifecycleState, to: TaskLifecycleState): boolean;
|
|
57
|
+
export declare function canTransition(from: CompactionLifecycleState, to: CompactionLifecycleState): boolean;
|
|
58
|
+
export declare function applyTransition(from: RuntimeLifecycleState, to: RuntimeLifecycleState): RuntimeTransitionResult;
|
|
59
|
+
export declare function reachableFrom(from: McpServerState): ReadonlySet<McpServerState>;
|
|
60
|
+
export declare function reachableFrom(from: CompactionLifecycleState): ReadonlySet<CompactionLifecycleState>;
|
|
61
|
+
export declare function reachableFrom(from: TaskLifecycleState): ReadonlySet<TaskLifecycleState>;
|
|
62
|
+
export declare function isOperational(state: PluginLifecycleState | McpServerState): boolean;
|
|
63
|
+
export declare function isReloadable(state: PluginLifecycleState): boolean;
|
|
64
|
+
export declare function isTerminal(state: TaskLifecycleState | PluginLifecycleState | McpServerState | CompactionLifecycleState): boolean;
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=lifecycle-facade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle-facade.d.ts","sourceRoot":"","sources":["../../../src/platform/runtime/lifecycle-facade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAKL,KAAK,gBAAgB,IAAI,0BAA0B,EACpD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AASrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAML,KAAK,gBAAgB,IAAI,sBAAsB,EAChD,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAiDnE,KAAK,qBAAqB,GACtB,kBAAkB,GAClB,oBAAoB,GACpB,cAAc,GACd,wBAAwB,CAAC;AAE7B,MAAM,MAAM,uBAAuB,GAC/B,CAAC,sBAAsB,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,GACjI,CACI;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,c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ompactionTransition, canTransition as canCompactionTransition, isTerminal as isTerminalCompactionState, reachableFrom as reachableFromCompactionState, } from './compaction/index.js';
|
|
2
|
+
import { applyTransition as applyMcpTransition, canTransition as canMcpTransition, isOperational as isOperationalMcpState, isTerminal as isTerminalMcpState, reachableFrom as reachableFromMcpState, } from './mcp/index.js';
|
|
3
|
+
import { applyTransition as applyPluginTransition, canTransition as canPluginTransition, isOperational as isOperationalPluginState, isReloadable as isReloadablePluginState, isTerminal as isTerminalPluginState, } from './plugins/index.js';
|
|
4
|
+
import { canTransition as canTaskTransition, getValidTransitions as getValidTaskTransitions, isTerminalStatus, } from './tasks/index.js';
|
|
5
|
+
const TASK_STATES = new Set([
|
|
6
|
+
'queued',
|
|
7
|
+
'running',
|
|
8
|
+
'blocked',
|
|
9
|
+
'completed',
|
|
10
|
+
'failed',
|
|
11
|
+
'cancelled',
|
|
12
|
+
]);
|
|
13
|
+
const PLUGIN_STATES = new Set([
|
|
14
|
+
'discovered',
|
|
15
|
+
'loading',
|
|
16
|
+
'loaded',
|
|
17
|
+
'active',
|
|
18
|
+
'degraded',
|
|
19
|
+
'error',
|
|
20
|
+
'unloading',
|
|
21
|
+
'disabled',
|
|
22
|
+
]);
|
|
23
|
+
const MCP_STATES = new Set([
|
|
24
|
+
'configured',
|
|
25
|
+
'connecting',
|
|
26
|
+
'connected',
|
|
27
|
+
'degraded',
|
|
28
|
+
'auth_required',
|
|
29
|
+
'reconnecting',
|
|
30
|
+
'disconnected',
|
|
31
|
+
]);
|
|
32
|
+
const COMPACTION_STATES = new Set([
|
|
33
|
+
'idle',
|
|
34
|
+
'checking_threshold',
|
|
35
|
+
'microcompact',
|
|
36
|
+
'collapse',
|
|
37
|
+
'autocompact',
|
|
38
|
+
'reactive_compact',
|
|
39
|
+
'boundary_commit',
|
|
40
|
+
'done',
|
|
41
|
+
'failed',
|
|
42
|
+
]);
|
|
43
|
+
function isTaskState(state) {
|
|
44
|
+
return TASK_STATES.has(state);
|
|
45
|
+
}
|
|
46
|
+
function isPluginState(state) {
|
|
47
|
+
return PLUGIN_STATES.has(state);
|
|
48
|
+
}
|
|
49
|
+
function isMcpState(state) {
|
|
50
|
+
return MCP_STATES.has(state);
|
|
51
|
+
}
|
|
52
|
+
function isCompactionState(state) {
|
|
53
|
+
return COMPACTION_STATES.has(state);
|
|
54
|
+
}
|
|
55
|
+
export function canTransition(from, to) {
|
|
56
|
+
if (isPluginState(from) && isPluginState(to))
|
|
57
|
+
return canPluginTransition(from, to);
|
|
58
|
+
if (isMcpState(from) && isMcpState(to))
|
|
59
|
+
return canMcpTransition(from, to);
|
|
60
|
+
if (isCompactionState(from) && isCompactionState(to))
|
|
61
|
+
return canCompactionTransition(from, to);
|
|
62
|
+
if (isTaskState(from) && isTaskState(to))
|
|
63
|
+
return canTaskTransition(from, to);
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
export function applyTransition(from, to) {
|
|
67
|
+
if (isPluginState(from) && isPluginState(to))
|
|
68
|
+
return applyPluginTransition(from, to);
|
|
69
|
+
if (isMcpState(from) && isMcpState(to)) {
|
|
70
|
+
const result = applyMcpTransition(from, to);
|
|
71
|
+
if (result.success) {
|
|
72
|
+
return {
|
|
73
|
+
...result,
|
|
74
|
+
ok: true,
|
|
75
|
+
from: result.previous,
|
|
76
|
+
to: result.next,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
...result,
|
|
81
|
+
ok: false,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
if (isCompactionState(from) && isCompactionState(to))
|
|
85
|
+
return applyCompactionTransition(from, to);
|
|
86
|
+
if (isTaskState(from) && isTaskState(to)) {
|
|
87
|
+
if (canTaskTransition(from, to))
|
|
88
|
+
return { ok: true, from, to };
|
|
89
|
+
return {
|
|
90
|
+
ok: false,
|
|
91
|
+
reason: `Invalid task transition: ${from} -> ${to}`,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
ok: false,
|
|
96
|
+
reason: `No runtime lifecycle state machine accepts transition ${String(from)} -> ${String(to)}`,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export function reachableFrom(from) {
|
|
100
|
+
if (isMcpState(from))
|
|
101
|
+
return reachableFromMcpState(from);
|
|
102
|
+
if (isCompactionState(from))
|
|
103
|
+
return reachableFromCompactionState(from);
|
|
104
|
+
if (isTaskState(from))
|
|
105
|
+
return new Set(getValidTaskTransitions(from));
|
|
106
|
+
if (isPluginState(from)) {
|
|
107
|
+
return new Set([...PLUGIN_STATES].filter((target) => canPluginTransition(from, target)));
|
|
108
|
+
}
|
|
109
|
+
return new Set();
|
|
110
|
+
}
|
|
111
|
+
export function isOperational(state) {
|
|
112
|
+
if (isPluginState(state))
|
|
113
|
+
return isOperationalPluginState(state);
|
|
114
|
+
if (isMcpState(state))
|
|
115
|
+
return isOperationalMcpState(state);
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
export function isReloadable(state) {
|
|
119
|
+
return isReloadablePluginState(state);
|
|
120
|
+
}
|
|
121
|
+
export function isTerminal(state) {
|
|
122
|
+
if (isPluginState(state))
|
|
123
|
+
return isTerminalPluginState(state);
|
|
124
|
+
if (isMcpState(state))
|
|
125
|
+
return isTerminalMcpState(state);
|
|
126
|
+
if (isCompactionState(state))
|
|
127
|
+
return isTerminalCompactionState(state);
|
|
128
|
+
if (isTaskState(state))
|
|
129
|
+
return isTerminalStatus(state);
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
@@ -38,7 +38,7 @@ export type SchemaFreshness = 'fresh' | 'stale' | 'unknown' | 'fetch_failed' | '
|
|
|
38
38
|
* - `unsupported` — schema version is unsupported with the runtime
|
|
39
39
|
* - `operator_flagged` — manually flagged by an operator for review
|
|
40
40
|
*/
|
|
41
|
-
export type QuarantineReason = 'stale_threshold' | 'unsupported' | 'operator_flagged';
|
|
41
|
+
export type QuarantineReason = 'stale_threshold' | 'unsupported' | 'operator_flagged' | 'incompatible';
|
|
42
42
|
/** Quarantine record attached to a schema when it enters the quarantined state. */
|
|
43
43
|
export interface QuarantineRecord {
|
|
44
44
|
/** Why the schema was quarantined. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/mcp/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,cAAc,GACtB,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,UAAU,GACV,eAAe,GACf,cAAc,GACd,cAAc,CAAC;AAInB;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,GAAG,aAAa,CAAC;AAE7F;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,aAAa,GAAG,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/mcp/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,cAAc,GACtB,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,UAAU,GACV,eAAe,GACf,cAAc,GACd,cAAc,CAAC;AAInB;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,GAAG,aAAa,CAAC;AAE7F;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,aAAa,GAAG,kBAAkB,GAAG,cAAc,CAAC;AAEvG,mFAAmF;AACnF,MAAM,WAAW,gBAAgB;IAC/B,sCAAsC;IACtC,MAAM,EAAE,gBAAgB,CAAC;IACzB,4CAA4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BAAiB,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,mEAAmE;IACnE,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;CACpB;AAID,qEAAqE;AACrE,MAAM,WAAW,kBAAkB;IACjC,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,uCAAuC;AACvC,eAAO,MAAM,wBAAwB,EAAE,kBAItC,CAAC"}
|
|
@@ -73,6 +73,14 @@ export interface ComponentHealthState {
|
|
|
73
73
|
/** Total renders permitted since monitor start. */
|
|
74
74
|
totalPermitted: number;
|
|
75
75
|
}
|
|
76
|
+
export type PanelThrottleStatus = ComponentThrottleStatus;
|
|
77
|
+
export type PanelHealthStatus = ComponentHealthStatus;
|
|
78
|
+
export type PanelResourceContract = Omit<ComponentResourceContract, 'componentId'> & {
|
|
79
|
+
panelId: string;
|
|
80
|
+
};
|
|
81
|
+
export type PanelHealthState = Omit<ComponentHealthState, 'componentId'> & {
|
|
82
|
+
panelId: string;
|
|
83
|
+
};
|
|
76
84
|
/**
|
|
77
85
|
* Default resource contracts by component category.
|
|
78
86
|
*
|
|
@@ -94,4 +102,5 @@ export declare function buildContract(componentId: string, category: string, ove
|
|
|
94
102
|
* Create an initial (clean) ComponentHealthState for a component.
|
|
95
103
|
*/
|
|
96
104
|
export declare function createInitialComponentHealthState(componentId: string): ComponentHealthState;
|
|
105
|
+
export declare function createInitialPanelHealthState(panelId: string): PanelHealthState;
|
|
97
106
|
//# sourceMappingURL=component-contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-contracts.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/perf/component-contracts.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF;;;;;;;;;GASG;AAEH,uCAAuC;AACvC,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;AAE1E,iEAAiE;AACjE,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oBAAoB;IACpB,WAAW,EAAE,MAAM,CAAC;IAEpB,+BAA+B;IAC/B,cAAc,EAAE,uBAAuB,CAAC;IAExC,6BAA6B;IAC7B,YAAY,EAAE,qBAAqB,CAAC;IAEpC,8DAA8D;IAC9D,eAAe,EAAE,MAAM,CAAC;IAExB,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAC;IAEpB,8EAA8E;IAC9E,qBAAqB,EAAE,MAAM,CAAC;IAE9B,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAC;IAErB,4DAA4D;IAC5D,aAAa,EAAE,MAAM,CAAC;IAEtB,mFAAmF;IACnF,eAAe,EAAE,MAAM,CAAC;IAExB,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC,CA4C7F,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC,GAClE,yBAAyB,CAO3B;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,WAAW,EAAE,MAAM,GAAG,oBAAoB,CAa3F"}
|
|
1
|
+
{"version":3,"file":"component-contracts.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/perf/component-contracts.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF;;;;;;;;;GASG;AAEH,uCAAuC;AACvC,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;AAE1E,iEAAiE;AACjE,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oBAAoB;IACpB,WAAW,EAAE,MAAM,CAAC;IAEpB,+BAA+B;IAC/B,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InitialComponentHealthState(componentId) {
|
|
|
84
84
|
totalPermitted: 0,
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
+
export function createInitialPanelHealthState(panelId) {
|
|
88
|
+
const state = createInitialComponentHealthState(panelId);
|
|
89
|
+
const { componentId: _componentId, ...rest } = state;
|
|
90
|
+
return {
|
|
91
|
+
panelId,
|
|
92
|
+
...rest,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -18,8 +18,8 @@ export { PerfMonitor } from './monitor.js';
|
|
|
18
18
|
export type { PerfSnapshot } from './monitor.js';
|
|
19
19
|
export { formatReport, exitCode } from './reporter.js';
|
|
20
20
|
export { SloCollector, SLO_METRICS } from './slo-collector.js';
|
|
21
|
-
export type { ComponentResourceContract, ComponentHealthState, ComponentThrottleStatus, ComponentHealthStatus, } from './component-contracts.js';
|
|
22
|
-
export { CATEGORY_CONTRACTS, buildContract, createInitialComponentHealthState, } from './component-contracts.js';
|
|
21
|
+
export type { ComponentResourceContract, ComponentHealthState, ComponentThrottleStatus, ComponentHealthStatus, PanelResourceContract, PanelHealthState, PanelThrottleStatus, PanelHealthStatus, } from './component-contracts.js';
|
|
22
|
+
export { CATEGORY_CONTRACTS, buildContract, createInitialComponentHealthState, createInitialPanelHealthState, } from './component-contracts.js';
|
|
23
23
|
export { ComponentHealthMonitor } from './component-health-monitor.js';
|
|
24
24
|
import { PerfMonitor } from './monitor.js';
|
|
25
25
|
import type { PerfBudget } from './types.js';
|