@ultrst-armada/kloks 1.4.3 → 1.4.5
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/package.json +8 -20
- package/packages/audio-midi/dist/index.d.ts +23 -14
- package/packages/audio-midi/dist/index.js +170 -45
- package/packages/audio-midi/kloks.manifest.json +8 -8
- package/packages/audio-midi/package.json +1 -1
- package/packages/backend/dist/{WebSocketTransport-CxUzUfwl.d.ts → WebSocketTransport-CHmkJ0tj.d.ts} +109 -2
- package/packages/backend/dist/auth/index.js +6 -6
- package/packages/backend/dist/{chunk-T3NYNBDC.js → chunk-5E6JRFUH.js} +201 -3
- package/packages/backend/dist/{chunk-XTWHEZWS.js → chunk-7B24ZWB3.js} +16 -1
- package/packages/backend/dist/chunk-DULUHQ5S.js +597 -0
- package/packages/backend/dist/{chunk-4ZFXEFOE.js → chunk-MPYASJ5A.js} +2 -87
- package/packages/backend/dist/{chunk-KX3OTBQ3.js → chunk-OZDYAEH4.js} +0 -114
- package/packages/backend/dist/{chunk-FO6WYLW4.js → chunk-TQMLJ7NY.js} +131 -44
- package/packages/backend/dist/chunk-TY32TUNI.js +376 -0
- package/packages/backend/dist/chunk-VDROUXFT.js +116 -0
- package/packages/backend/dist/chunk-ZDH4XI7W.js +140 -0
- package/packages/backend/dist/{chunk-DZ4ZGIZM.js → chunk-ZO3PZGNQ.js} +96 -655
- package/packages/backend/dist/client/index.d.ts +2 -3
- package/packages/backend/dist/connectivity/index.d.ts +18 -6
- package/packages/backend/dist/connectivity/index.js +3 -7
- package/packages/backend/dist/index.d.ts +3 -6
- package/packages/backend/dist/index.js +98 -88
- package/packages/backend/dist/krnl-services.d.ts +84 -7
- package/packages/backend/dist/krnl-services.js +40 -12
- package/packages/backend/dist/services/index.d.ts +4 -6
- package/packages/backend/dist/services/index.js +2 -2
- package/packages/backend/dist/srkl/index.js +6 -4
- package/packages/backend/dist/storage/index.js +7 -7
- package/packages/backend/dist/workspace/index.js +2 -2
- package/packages/backend/kloks.manifest.json +47 -45
- package/packages/backend/package.json +3 -8
- package/packages/client/package.json +1 -1
- package/packages/contracts/dist/index.js +5 -10
- package/packages/contracts/package.json +1 -1
- package/packages/functions/dist/index.d.ts +12 -1
- package/packages/functions/dist/index.js +132 -24
- package/packages/functions/package.json +1 -1
- package/packages/orchestrations/dist/index.d.ts +33 -31
- package/packages/orchestrations/dist/index.js +81 -203
- package/packages/orchestrations/kloks.manifest.json +10 -2
- package/packages/orchestrations/package.json +2 -2
- package/packages/services/dist/index.d.ts +51 -1
- package/packages/services/dist/index.js +234 -36
- package/packages/services/kloks.manifest.json +69 -33
- package/packages/services/package.json +1 -1
- package/packages/state-graph/dist/{BaseGraph-BvkSYOTw.d.ts → BaseGraph-Bd5F1NMP.d.ts} +1 -1
- package/packages/state-graph/dist/{BaseNode-DTcd3K1B.d.ts → BaseNode-DKpGXMy8.d.ts} +6 -0
- package/packages/state-graph/dist/{CompatibilityMatrix-Dj-tCWUA.d.ts → CompatibilityMatrix-TiEJ3j3_.d.ts} +1 -1
- package/packages/state-graph/dist/domain/index.d.ts +3 -3
- package/packages/state-graph/dist/domain/index.js +0 -1
- package/packages/state-graph/dist/index.d.ts +40 -8
- package/packages/state-graph/dist/index.js +214 -65
- package/packages/state-graph/dist/rules/index.d.ts +3 -3
- package/packages/state-graph/dist/rules/index.js +0 -1
- package/packages/state-graph/dist/spatial/index.d.ts +4 -4
- package/packages/state-graph/dist/spatial/index.js +0 -1
- package/packages/state-graph/dist/state/index.js +1 -3
- package/packages/state-graph/dist/store/index.d.ts +4 -4
- package/packages/state-graph/dist/store/index.js +0 -1
- package/packages/state-graph/dist/{types-VDoc4FIc.d.ts → types-D5kQSa65.d.ts} +2 -2
- package/packages/state-graph/kloks.manifest.json +26 -10
- package/packages/state-graph/package.json +2 -8
- package/packages/backend/dist/IdempotencyManager-B5MjK871.d.ts +0 -16
- package/packages/backend/dist/chunk-25Y7AVTP.js +0 -55
- package/packages/backend/dist/chunk-3EPY34R6.js +0 -67
- package/packages/backend/dist/chunk-7KNGX522.js +0 -220
- package/packages/backend/dist/chunk-FZKBTF34.js +0 -15
- package/packages/backend/dist/chunk-QGHDJGYS.js +0 -92
- package/packages/backend/dist/chunk-UPFKBBQI.js +0 -138
- package/packages/backend/dist/chunk-VQEFULWT.js +0 -88
- package/packages/backend/dist/execution/index.d.ts +0 -124
- package/packages/backend/dist/execution/index.js +0 -20
- package/packages/backend/dist/types-BERZJ93O.d.ts +0 -110
- package/packages/state-graph/dist/chunk-3RG5ZIWI.js +0 -10
- package/packages/state-graph/dist/chunk-Q5I42UX7.js +0 -0
- package/packages/state-graph/dist/chunk-ZTHBPV24.js +0 -267
- package/packages/state-graph/dist/execution/index.d.ts +0 -152
- package/packages/state-graph/dist/execution/index.js +0 -16
- /package/packages/state-graph/dist/{chunk-SHIBCPGQ.js → chunk-EW4ACSZB.js} +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import * as _ultrst_armada_krnl from '@ultrst-armada/krnl';
|
|
2
2
|
import { ServiceDefinition } from '@ultrst-armada/krnl';
|
|
3
3
|
export { LifecycleCycleError, LifecycleDescriptor, LifecycleGraph, LifecycleGraphNode, LifecycleScopeType, SKIPO_STATE, SkipoStateApi, SkipoStateEngine, StateDeclaration, StateEntry, StateUpdater, useLifecycleScope, useSkipoBind, useSkipoState } from './state/index.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { B as BaseHandle, d as BaseHandleProps, e as BaseNodeProps, C as ConnectionMode, f as CustomNode, H as HandleCategory, g as HandleDefinition, c as HandleDirection, h as HandleOffset, i as HandlePosition, j as NodeDefinition, N as NodePosition, a as NodeSize, V as ViewHandle } from './BaseNode-DTcd3K1B.js';
|
|
4
|
+
import { b as BaseNode, D as DataHandle } from './BaseNode-DKpGXMy8.js';
|
|
5
|
+
export { B as BaseHandle, d as BaseHandleProps, e as BaseNodeProps, C as ConnectionMode, f as CustomNode, H as HandleCategory, g as HandleDefinition, c as HandleDirection, h as HandleOffset, i as HandlePosition, j as NodeDefinition, N as NodePosition, a as NodeSize, V as ViewHandle } from './BaseNode-DKpGXMy8.js';
|
|
7
6
|
import { S as SolidConnection } from './BaseConnection-CMRrL6Fe.js';
|
|
8
7
|
export { B as BaseConnection, a as BaseConnectionProps, b as SolidConnectionProps, V as ViewLink, c as ViewLinkProps } from './BaseConnection-CMRrL6Fe.js';
|
|
9
|
-
export { B as BaseGraph, a as BaseViewWindow, b as BaseViewWindowProps, C as CustomGraph, c as CustomViewWindow, D as DEFAULT_GRAPH_SETTINGS, d as DynamicState, G as GraphSettings, e as GraphView, f as Group } from './BaseGraph-
|
|
8
|
+
export { B as BaseGraph, a as BaseViewWindow, b as BaseViewWindowProps, C as CustomGraph, c as CustomViewWindow, D as DEFAULT_GRAPH_SETTINGS, d as DynamicState, G as GraphSettings, e as GraphView, f as Group } from './BaseGraph-Bd5F1NMP.js';
|
|
10
9
|
export { GroupNode as DomainGroupNode, SubgraphNode as DomainSubgraphNode, GroupNodeProps, SignalVariant, SubgraphNodeProps, instantiateSubgraph } from './domain/index.js';
|
|
11
10
|
export { ConnectionRuleStore, HandleDescriptor, HandleTypeDefinition, HandleTypeRegistry, WireTypeDefinition, WireTypeRegistry, initializeDefaultGraphRules } from './rules/index.js';
|
|
12
|
-
export { a as CompatibilityMatrix, C as CompatibilityResolution, b as CompatibilityResolverDelegate, c as CompatibilityRule } from './CompatibilityMatrix-
|
|
11
|
+
export { a as CompatibilityMatrix, C as CompatibilityResolution, b as CompatibilityResolverDelegate, c as CompatibilityRule } from './CompatibilityMatrix-TiEJ3j3_.js';
|
|
13
12
|
export { AttractionEngine, AutoSolidify, GhostInferenceEngine, GhostLayoutResolver, GhostTracePathBuilder, MagneticTraceRecord, SocketCoordOptions, SocketCoordResult, SpatialEngine, UseMagneticTracesParams, calculateSocketCoordinates, getBeamPoints, useMagneticTraces } from './spatial/index.js';
|
|
14
|
-
import { V as ViewportState, N as NodeGraphConfig, G as GraphNode, T as Trace } from './types-
|
|
15
|
-
export { a as GhostCandidate, b as GhostInferenceOptions, c as GhostNodeRecord, d as GhostSocketMapping, e as GhostTraceRecord, f as GraphEdge, g as NodeGraphPlugin, S as Socket, h as SocketType, i as TraceEngine } from './types-
|
|
13
|
+
import { V as ViewportState, N as NodeGraphConfig, G as GraphNode, T as Trace } from './types-D5kQSa65.js';
|
|
14
|
+
export { a as GhostCandidate, b as GhostInferenceOptions, c as GhostNodeRecord, d as GhostSocketMapping, e as GhostTraceRecord, f as GraphEdge, g as NodeGraphPlugin, S as Socket, h as SocketType, i as TraceEngine } from './types-D5kQSa65.js';
|
|
16
15
|
export { CommandApi, GhostStore, GhostStoreListener, GraphListener, GraphStore } from './store/index.js';
|
|
17
16
|
import React from 'react';
|
|
18
17
|
import 'zustand/vanilla';
|
|
@@ -3321,5 +3320,38 @@ declare const PredictiveGraphServiceFacade: {
|
|
|
3321
3320
|
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
3322
3321
|
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
3323
3322
|
};
|
|
3323
|
+
declare const krnlStateLifecycleServiceDefinition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
3324
|
+
declare const krnlStateLifecycleServiceFacade: {
|
|
3325
|
+
id: string;
|
|
3326
|
+
name: string;
|
|
3327
|
+
version: string;
|
|
3328
|
+
runtime: "client";
|
|
3329
|
+
deployment: "local";
|
|
3330
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
3331
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
3332
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
3333
|
+
};
|
|
3334
|
+
declare const krnlNodeGraphEngineServiceDefinition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
3335
|
+
declare const krnlNodeGraphEngineServiceFacade: {
|
|
3336
|
+
id: string;
|
|
3337
|
+
name: string;
|
|
3338
|
+
version: string;
|
|
3339
|
+
runtime: "client";
|
|
3340
|
+
deployment: "local";
|
|
3341
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
3342
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
3343
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
3344
|
+
};
|
|
3345
|
+
declare const krnlPredictiveGraphServiceDefinition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
3346
|
+
declare const krnlPredictiveGraphServiceFacade: {
|
|
3347
|
+
id: string;
|
|
3348
|
+
name: string;
|
|
3349
|
+
version: string;
|
|
3350
|
+
runtime: "client";
|
|
3351
|
+
deployment: "local";
|
|
3352
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
3353
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
3354
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
3355
|
+
};
|
|
3324
3356
|
|
|
3325
|
-
export { ALL_GRAPH_TYPES, type AccountStatus, type AdminBackendEngine, type AdminDatabaseClusterConfig, type AffectableNodeType, type AppSceneState, type AppearanceSettings, type ArrangementClip, type ArrangementNode, ArrangementNodeModel, type ArrangementSignalType, type ArrangementTrack, type AssetChannelType, type AssetDataType, type AssetFolderInfo, type AssetPoolItem, type AssetPoolScope, AudioBusDriver, type AudioBusType, AudioConcepts, type AudioDeviceInfo, AudioMonoSocket, AudioMonoWire, AudioPacketSocket, AudioPacketWire, type AudioPadItem, type AudioPadsNode, type AudioSampleItem, AudioStereoSocket, AudioStereoWire, type AudioTrackData, type AuthState, BaseNode, type BiomeType, type BooleanNode, BufferConcepts, type BufferCycleCalculation, type BufferLengthType, type ButtonNode, CANONICAL_EFFECTS_TABLE, CANONICAL_SIGNAL_TYPES, COLOR_PALETTES, COORD_SCALE, type CanonicalAudioEndpointState, CanonicalAudioInputEndpoint, type CanonicalEffectDefinition, type CanonicalMidiEndpointState, CanonicalMidiInputEndpoint, type CanvasInteractionManager, type CodeNode, CodeNodeModel, type CodeNodeParsedIO, type ColorPalette, type CombinerNode, type CompatibleNodeCategory, type CompatibleSpawnOption, ComponentSocket, type ComponentSocketConstraint, ComponentWire, type CompressorEffectConfig, type ConnectionsConfig, type ConnectivityType, type ContainerNode, ContainerNodeModel, type ContainerType, type ControlBinding, type ControlElement, type ControlElementType, type ControlNode, ControlNodeModel, ControlNodeParent, type ControlPayloadType, type ConverterNode, type CurveModTarget, CurvePacketSocket, CurvePacketWire, type CurvePoint, CurveStreamSocket, CurveStreamWire, type CurveTrackData, DEFAULT_2D_SPRITES, DEFAULT_CODE_NODE_SCRIPT, DEFAULT_WORKSPACE_GRAPHS, DataHandle, DataProcessingNodeParent, type DatabaseConnectionEntry, type DatabaseEngine, type DatabaseRole, type DatabaseTargetScope, type DawProject, type DebugTraceEntry, type DelayEffectConfig, type DispatchFeedback, type EffectNode, EffectNodeModel, type EffectType, type EqBandConfig, type EqEffectConfig, type ExposedFunctionDef, type ExposedSocketReference, type ExposedVariableDef, type ExtractedSampleItem, type FolderPathNode, GM_DRUM_NOTES, GRAPH_TYPE_DEFINITIONS, type GainEffectConfig, type GraphAssetItem, type GraphAssetType, GraphBridgeNode, GraphConcepts, GraphDataService, type GraphDefinition, type GraphEntityMetadata, GraphEntityParent, type GraphEventListener, type GraphFolderInfo, type GraphImportNode, type GraphIssue, type GraphMetadata, GraphNode, GraphNodeParent, type GraphNodePayload, type GraphPackage, type GraphPackageMetadata, type GraphSnapshot, type GraphSocketDescriptor, GraphSocketParent, type GraphTransform, type GraphType$1 as GraphType, type GraphTypeDefinition, type GraphValidationResult, type GraphWireDescriptor, GraphWireParent, type GroupNode, GroupNodeModel, type HardwareChannelInfo, type INodeVisuals, type InputStripNode, type Landmark, type LimiterEffectConfig, type LintError, type LintResult, MagneticGraphManager, type MapChannelConfig, type MapChannelDirection, type MapChannelType, type MapIoConfig, type MaterializeResult, type MeshAssetItem, type MidiDeviceConfig, type MidiEventPayload, type MidiInputDevice, type MidiNote, MidiPacketSocket, MidiPacketWire, type MidiPattern, MidiStreamSocket, MidiStreamWire, type ModuleNode, ModuleNodeModel, type ModulePreset, type ModuleSocketMapping, type MonitoredSignalState, type MultibandBandConfig, type MultibandCompressorEffectConfig, type MultiplexerNode, type NamedAudioBus, type NamedAudioInput, type NamedMidiProfile, type Node2DSpriteSetting, type NodeArchetypeDefinition, NodeAssetRegistry, type NodeCategoryKey, type NodeConnection, type NodeDimensions, type NodeDimensions2D, NodeGraphConfig, NodeGraphEngineServiceDefinition, NodeGraphEngineServiceFacade, type NodeHeaderStyle, type NodeMeshSetting, type NodePerformanceData, type NodeScreenRect2D, type NodeSocketDescriptor$1 as NodeSocketDescriptor, type NodeSocketsResult, type NodeSpawnPayload, type NumberNode, type ObjectNode, type OutputStripNode, PRESET_SCALES, type PanEffectConfig, type PhysicalInputDefinition, type PhysicalOutputDefinition, type PlayerNode, type PlayerType, type PluggableNodeAsset, type PolarCoordinate, type PredictiveGhostNode, PredictiveGraphServiceDefinition, PredictiveGraphServiceFacade, type PredictiveSelectionResult, type PredictiveTrace, PrimitiveNodeModel, PrimitiveSocket, PrimitiveWire, type QuantizeDivision, type QuantizeStatus, type QwnsrAssetType, QwnsrAudioSocket, QwnsrAudioWire, QwnsrBridgeNode, QwnsrCombinerNodeModel, QwnsrComponentSocket, QwnsrComponentWire, QwnsrContainerNodeModel, QwnsrCurveSocket, QwnsrCurveWire, QwnsrEffectNodeModel, QwnsrEffectSocket, QwnsrEffectWire, type QwnsrEventListener, QwnsrGenericNodeModel, type QwnsrMetadata, QwnsrMidiSocket, QwnsrMidiWire, type QwnsrModuleBundle, QwnsrModuleNodeModel, QwnsrMultiplexerNodeModel, type QwnsrProjectBundle, type QwnsrSocketDescriptor, type QwnsrTooltipDirection, type QwnsrTransform, QwnsrTriggerNodeModel, QwnsrTriggerSocket, QwnsrTriggerWire, type QwnsrUIBaseProps, type QwnsrUIRole, type QwnsrUISize, type QwnsrUIVariant, type QwnsrWireDescriptor, type RecorderNode, type RecorderType, type RecordingMode, type RenderEngineMode, type RepeaterEffectConfig, type ResolvedSocketDetails, type ReverbEffectConfig, RouterNodeModel, RoutingNodeParent, SIGNAL_TYPES, SPAWN_ELEVATIONS, STORAGE_KEY, type SamplePresetType, type SampleZoneConfig, type SamplerNode, type SaturationEffectConfig, type SaturationType, type SignalCompatibilityResult, type SignalDataType, type SignalFormat, SignalGeneratorNodeParent, type SignalKind, type SignalMedium, type SignalPolarity, type SignalType, type SignalTypeDefinition, type SocketDirection, type SocketGeometryConfig, type SocketPairMatch, type SocketPosition2D, type SocketStyleConfig, SolidConnection, type SpaceNode, StateLifecycleServiceDefinition, StateLifecycleServiceFacade, type StorageRole, type StoredPacket, type StreamAcquisitionResult, type StringNode, StripNodeModel, type SubgraphHandle, type SubgraphHandleDefinition, type SubgraphNode, type SynthPreset, type SynthType, type TooltipPlacementOptions, TopLevelIoRegistry, Trace, type TriggerDivisionMode, type TriggerNode, TriggerNodeModel, type TriggerPacketData, type TriggerPulse, TriggerSocket, type TriggerStepInfo, type TriggerType, TriggerWire, type TrustLevel, UIConcepts, UIElementBase, type UniversalConnectionValidationResult, type UniversalSocketDefinition, type UniversalWire, type UserAccount, type UserRole, type UserSession, type UserStorageConnection, type UserStorageProvider, type UserWorkspaceRecord, type ValidationResult, type VelocityEffectConfig, ViewportState, type WireAnimationConfig, type WireCurveStyle, type WireEndpoint2D, type WireSignalPayload, type WireSpatialIntersection, type WireVisualConfig, WorkspaceGraphRegistry, type WorkspaceSecondaryClone, acquireAudioInputStream, addNamedMidiProfile, areSignalTypesCompatibleForEffect, areSignalsCompatible, calculateAudioMeterLevel, calculateConstrainedSocketOffset, calculateNextQuantizeBeat, calculateNodePerformance, canvasToScreen, clampZoom, computePredictiveGraph, configureActivePaletteResolver, configureCanonicalMidiBridge, configureControlDispatcher, configureNodePerformanceTracker, configureSolidifyExecution, consolidateNodesIntoGroup, consolidateNodesIntoModule, constrainSocketNudge, constrainSocketOffset, controlDispatcher, convertPhysicalInputToStreamHandle, convertPhysicalOutputToStreamHandle, convertProjectToGraphDefinition, createArrangementNode, createAudioPadsNode, createBooleanNode, createButtonNode, createClipFromContainer, createCodeNode, createCombinerNode, createContainerNode, createControlNode, createConverterNode, createDefaultArrangementTracks, createDefaultMapIoConfig, createEffectNode, createFolderPathNode, createGroupNode, createModuleNode, createModuleNodeFromPreset, createMultiplexerNode, createNodeFromSpawnType, createNodeInstance, createNumberNode, createObjectNode, createPackagedSocket, createPlayerNode, createQwnsrNodeInstance, createQwnsrSocketInstance, createQwnsrWireInstance, createRecorderNode, createSamplerNode, createSocketInstance, createStringNode, createSubgraphNode, createTrackForSignalType, createTriggerNode, createUniversalWire, createVirtualMidiDevice, createWireInstance, dbToLinear, deleteNamedMidiProfile, deleteVirtualMidiDevice, deriveSubgraphHandlesFromGraph, describeSvgArc, encodeFloat32ToWavBase64, enumerateSystemAudioDevices, evaluateWireSignalCompatibility, executeCodeNodeScript, executeSceneGraphSpawningSequence, extractSamplesFromConnectedContainers, findCompatibleSocketPair, findSocketByPortOrIndex, findSourceNode, findTargetContainer, findTargetNode, fitToView, formatBeatToBarBeat, formatQuantizeDivisionLabel, generateCodeNodeSockets, generateWavBase64FromWaveform, getActiveEffectsForNode, getActiveEffectsForNodeWires, getActiveEffectsForWire, getActivePalette, getAllNodeArchetypes, getAllProjectSockets, getCanonicalMidiBridge, getCenterPanForNode, getCompatibleNodesForSocket, getComponentSocketConstraint, getCustomMidiName, getCustomMidiNames, getDefaultActiveFractions, getDefaultActiveSteps, getDefaultPadMidiNote, getDistanceToWireSegment, getDivisionBeatLength, getEffectsAffectingWire, getGraphTypeDefinition, getNamedMidiProfiles, getNodeAcceptedInputSignals, getNodeDimensions, getNodeInputSignalType, getNodeOutputSignalType, getNodeSockets, getNodeSpawnElevation, getNodesInSelection, getResolvedMidiDevices, getSolidifySynthEngine, getTooltipPlacementClasses, getTopologicalDependencyOrder, getTriggerStepDuration, getVirtualMidiDevices, getWiresAffectedByEffect, ingestContainerIntoArrangement, initializeCoreArchetypes, initializeMagneticRules, initializeQwnsrMagneticRules, instantiateSubgraphNode, instantiateSubgraphSpaceNode, isGraphImportable, isNodeInCenterDeadZone, isSignalCompatibleWithTrack, isWireAffectedByEffect, linearToDb, lintJavaScriptCode, loadStoredConfig, mapSpaceNodeToBridgeNode, materializePredictiveGhostBatch, midiToFreq, midiToFrequency, midiToNoteName, noteNameToMidi, parseBufferedNumber, parseCodeNodeIO, polarToCartesian, projectNodeToGroundSurface, projectWireEndpointsToSurface, registerCustomNodeSockets, registerNodeArchetype, registerQwnsrPaletteResolver, repairAndNormalizeGraph, resolveSocketDetails, resolveTooltipDirection, saveCustomMidiNames, saveNamedMidiProfiles, saveStoredConfig, saveVirtualMidiDevices, screenToCanvas, setCustomMidiName, shouldTriggerFireAtClock, stopAudioMediaStream, syncConnectedContainersToArrangement, toggleNodeSocketExposure, topLevelIoRegistry, transpileCodeNodeScript, unregisterCustomNodeSockets, unregisterNodeArchetype, updateNamedMidiProfile, validateComponentSocketConnection, validateGraphImport, validateProjectGraph, validateUniversalConnection, zoomAtPoint };
|
|
3357
|
+
export { ALL_GRAPH_TYPES, type AccountStatus, type AdminBackendEngine, type AdminDatabaseClusterConfig, type AffectableNodeType, type AppSceneState, type AppearanceSettings, type ArrangementClip, type ArrangementNode, ArrangementNodeModel, type ArrangementSignalType, type ArrangementTrack, type AssetChannelType, type AssetDataType, type AssetFolderInfo, type AssetPoolItem, type AssetPoolScope, AudioBusDriver, type AudioBusType, AudioConcepts, type AudioDeviceInfo, AudioMonoSocket, AudioMonoWire, AudioPacketSocket, AudioPacketWire, type AudioPadItem, type AudioPadsNode, type AudioSampleItem, AudioStereoSocket, AudioStereoWire, type AudioTrackData, type AuthState, BaseNode, type BiomeType, type BooleanNode, BufferConcepts, type BufferCycleCalculation, type BufferLengthType, type ButtonNode, CANONICAL_EFFECTS_TABLE, CANONICAL_SIGNAL_TYPES, COLOR_PALETTES, COORD_SCALE, type CanonicalAudioEndpointState, CanonicalAudioInputEndpoint, type CanonicalEffectDefinition, type CanonicalMidiEndpointState, CanonicalMidiInputEndpoint, type CanvasInteractionManager, type CodeNode, CodeNodeModel, type CodeNodeParsedIO, type ColorPalette, type CombinerNode, type CompatibleNodeCategory, type CompatibleSpawnOption, ComponentSocket, type ComponentSocketConstraint, ComponentWire, type CompressorEffectConfig, type ConnectionsConfig, type ConnectivityType, type ContainerNode, ContainerNodeModel, type ContainerType, type ControlBinding, type ControlElement, type ControlElementType, type ControlNode, ControlNodeModel, ControlNodeParent, type ControlPayloadType, type ConverterNode, type CurveModTarget, CurvePacketSocket, CurvePacketWire, type CurvePoint, CurveStreamSocket, CurveStreamWire, type CurveTrackData, DEFAULT_2D_SPRITES, DEFAULT_CODE_NODE_SCRIPT, DEFAULT_WORKSPACE_GRAPHS, DataHandle, DataProcessingNodeParent, type DatabaseConnectionEntry, type DatabaseEngine, type DatabaseRole, type DatabaseTargetScope, type DawProject, type DebugTraceEntry, type DelayEffectConfig, type DispatchFeedback, type EffectNode, EffectNodeModel, type EffectType, type EqBandConfig, type EqEffectConfig, type ExposedFunctionDef, type ExposedSocketReference, type ExposedVariableDef, type ExtractedSampleItem, type FolderPathNode, GM_DRUM_NOTES, GRAPH_TYPE_DEFINITIONS, type GainEffectConfig, type GraphAssetItem, type GraphAssetType, GraphBridgeNode, GraphConcepts, GraphDataService, type GraphDefinition, type GraphEntityMetadata, GraphEntityParent, type GraphEventListener, type GraphFolderInfo, type GraphImportNode, type GraphIssue, type GraphMetadata, GraphNode, GraphNodeParent, type GraphNodePayload, type GraphPackage, type GraphPackageMetadata, type GraphSnapshot, type GraphSocketDescriptor, GraphSocketParent, type GraphTransform, type GraphType$1 as GraphType, type GraphTypeDefinition, type GraphValidationResult, type GraphWireDescriptor, GraphWireParent, type GroupNode, GroupNodeModel, type HardwareChannelInfo, type INodeVisuals, type InputStripNode, type Landmark, type LimiterEffectConfig, type LintError, type LintResult, MagneticGraphManager, type MapChannelConfig, type MapChannelDirection, type MapChannelType, type MapIoConfig, type MaterializeResult, type MeshAssetItem, type MidiDeviceConfig, type MidiEventPayload, type MidiInputDevice, type MidiNote, MidiPacketSocket, MidiPacketWire, type MidiPattern, MidiStreamSocket, MidiStreamWire, type ModuleNode, ModuleNodeModel, type ModulePreset, type ModuleSocketMapping, type MonitoredSignalState, type MultibandBandConfig, type MultibandCompressorEffectConfig, type MultiplexerNode, type NamedAudioBus, type NamedAudioInput, type NamedMidiProfile, type Node2DSpriteSetting, type NodeArchetypeDefinition, NodeAssetRegistry, type NodeCategoryKey, type NodeConnection, type NodeDimensions, type NodeDimensions2D, NodeGraphConfig, NodeGraphEngineServiceDefinition, NodeGraphEngineServiceFacade, type NodeHeaderStyle, type NodeMeshSetting, type NodePerformanceData, type NodeScreenRect2D, type NodeSocketDescriptor$1 as NodeSocketDescriptor, type NodeSocketsResult, type NodeSpawnPayload, type NumberNode, type ObjectNode, type OutputStripNode, PRESET_SCALES, type PanEffectConfig, type PhysicalInputDefinition, type PhysicalOutputDefinition, type PlayerNode, type PlayerType, type PluggableNodeAsset, type PolarCoordinate, type PredictiveGhostNode, PredictiveGraphServiceDefinition, PredictiveGraphServiceFacade, type PredictiveSelectionResult, type PredictiveTrace, PrimitiveNodeModel, PrimitiveSocket, PrimitiveWire, type QuantizeDivision, type QuantizeStatus, type QwnsrAssetType, QwnsrAudioSocket, QwnsrAudioWire, QwnsrBridgeNode, QwnsrCombinerNodeModel, QwnsrComponentSocket, QwnsrComponentWire, QwnsrContainerNodeModel, QwnsrCurveSocket, QwnsrCurveWire, QwnsrEffectNodeModel, QwnsrEffectSocket, QwnsrEffectWire, type QwnsrEventListener, QwnsrGenericNodeModel, type QwnsrMetadata, QwnsrMidiSocket, QwnsrMidiWire, type QwnsrModuleBundle, QwnsrModuleNodeModel, QwnsrMultiplexerNodeModel, type QwnsrProjectBundle, type QwnsrSocketDescriptor, type QwnsrTooltipDirection, type QwnsrTransform, QwnsrTriggerNodeModel, QwnsrTriggerSocket, QwnsrTriggerWire, type QwnsrUIBaseProps, type QwnsrUIRole, type QwnsrUISize, type QwnsrUIVariant, type QwnsrWireDescriptor, type RecorderNode, type RecorderType, type RecordingMode, type RenderEngineMode, type RepeaterEffectConfig, type ResolvedSocketDetails, type ReverbEffectConfig, RouterNodeModel, RoutingNodeParent, SIGNAL_TYPES, SPAWN_ELEVATIONS, STORAGE_KEY, type SamplePresetType, type SampleZoneConfig, type SamplerNode, type SaturationEffectConfig, type SaturationType, type SignalCompatibilityResult, type SignalDataType, type SignalFormat, SignalGeneratorNodeParent, type SignalKind, type SignalMedium, type SignalPolarity, type SignalType, type SignalTypeDefinition, type SocketDirection, type SocketGeometryConfig, type SocketPairMatch, type SocketPosition2D, type SocketStyleConfig, SolidConnection, type SpaceNode, StateLifecycleServiceDefinition, StateLifecycleServiceFacade, type StorageRole, type StoredPacket, type StreamAcquisitionResult, type StringNode, StripNodeModel, type SubgraphHandle, type SubgraphHandleDefinition, type SubgraphNode, type SynthPreset, type SynthType, type TooltipPlacementOptions, TopLevelIoRegistry, Trace, type TriggerDivisionMode, type TriggerNode, TriggerNodeModel, type TriggerPacketData, type TriggerPulse, TriggerSocket, type TriggerStepInfo, type TriggerType, TriggerWire, type TrustLevel, UIConcepts, UIElementBase, type UniversalConnectionValidationResult, type UniversalSocketDefinition, type UniversalWire, type UserAccount, type UserRole, type UserSession, type UserStorageConnection, type UserStorageProvider, type UserWorkspaceRecord, type ValidationResult, type VelocityEffectConfig, ViewportState, type WireAnimationConfig, type WireCurveStyle, type WireEndpoint2D, type WireSignalPayload, type WireSpatialIntersection, type WireVisualConfig, WorkspaceGraphRegistry, type WorkspaceSecondaryClone, acquireAudioInputStream, addNamedMidiProfile, areSignalTypesCompatibleForEffect, areSignalsCompatible, calculateAudioMeterLevel, calculateConstrainedSocketOffset, calculateNextQuantizeBeat, calculateNodePerformance, canvasToScreen, clampZoom, computePredictiveGraph, configureActivePaletteResolver, configureCanonicalMidiBridge, configureControlDispatcher, configureNodePerformanceTracker, configureSolidifyExecution, consolidateNodesIntoGroup, consolidateNodesIntoModule, constrainSocketNudge, constrainSocketOffset, controlDispatcher, convertPhysicalInputToStreamHandle, convertPhysicalOutputToStreamHandle, convertProjectToGraphDefinition, createArrangementNode, createAudioPadsNode, createBooleanNode, createButtonNode, createClipFromContainer, createCodeNode, createCombinerNode, createContainerNode, createControlNode, createConverterNode, createDefaultArrangementTracks, createDefaultMapIoConfig, createEffectNode, createFolderPathNode, createGroupNode, createModuleNode, createModuleNodeFromPreset, createMultiplexerNode, createNodeFromSpawnType, createNodeInstance, createNumberNode, createObjectNode, createPackagedSocket, createPlayerNode, createQwnsrNodeInstance, createQwnsrSocketInstance, createQwnsrWireInstance, createRecorderNode, createSamplerNode, createSocketInstance, createStringNode, createSubgraphNode, createTrackForSignalType, createTriggerNode, createUniversalWire, createVirtualMidiDevice, createWireInstance, dbToLinear, deleteNamedMidiProfile, deleteVirtualMidiDevice, deriveSubgraphHandlesFromGraph, describeSvgArc, encodeFloat32ToWavBase64, enumerateSystemAudioDevices, evaluateWireSignalCompatibility, executeCodeNodeScript, executeSceneGraphSpawningSequence, extractSamplesFromConnectedContainers, findCompatibleSocketPair, findSocketByPortOrIndex, findSourceNode, findTargetContainer, findTargetNode, fitToView, formatBeatToBarBeat, formatQuantizeDivisionLabel, generateCodeNodeSockets, generateWavBase64FromWaveform, getActiveEffectsForNode, getActiveEffectsForNodeWires, getActiveEffectsForWire, getActivePalette, getAllNodeArchetypes, getAllProjectSockets, getCanonicalMidiBridge, getCenterPanForNode, getCompatibleNodesForSocket, getComponentSocketConstraint, getCustomMidiName, getCustomMidiNames, getDefaultActiveFractions, getDefaultActiveSteps, getDefaultPadMidiNote, getDistanceToWireSegment, getDivisionBeatLength, getEffectsAffectingWire, getGraphTypeDefinition, getNamedMidiProfiles, getNodeAcceptedInputSignals, getNodeDimensions, getNodeInputSignalType, getNodeOutputSignalType, getNodeSockets, getNodeSpawnElevation, getNodesInSelection, getResolvedMidiDevices, getSolidifySynthEngine, getTooltipPlacementClasses, getTopologicalDependencyOrder, getTriggerStepDuration, getVirtualMidiDevices, getWiresAffectedByEffect, ingestContainerIntoArrangement, initializeCoreArchetypes, initializeMagneticRules, initializeQwnsrMagneticRules, instantiateSubgraphNode, instantiateSubgraphSpaceNode, isGraphImportable, isNodeInCenterDeadZone, isSignalCompatibleWithTrack, isWireAffectedByEffect, krnlNodeGraphEngineServiceDefinition, krnlNodeGraphEngineServiceFacade, krnlPredictiveGraphServiceDefinition, krnlPredictiveGraphServiceFacade, krnlStateLifecycleServiceDefinition, krnlStateLifecycleServiceFacade, linearToDb, lintJavaScriptCode, loadStoredConfig, mapSpaceNodeToBridgeNode, materializePredictiveGhostBatch, midiToFreq, midiToFrequency, midiToNoteName, noteNameToMidi, parseBufferedNumber, parseCodeNodeIO, polarToCartesian, projectNodeToGroundSurface, projectWireEndpointsToSurface, registerCustomNodeSockets, registerNodeArchetype, registerQwnsrPaletteResolver, repairAndNormalizeGraph, resolveSocketDetails, resolveTooltipDirection, saveCustomMidiNames, saveNamedMidiProfiles, saveStoredConfig, saveVirtualMidiDevices, screenToCanvas, setCustomMidiName, shouldTriggerFireAtClock, stopAudioMediaStream, syncConnectedContainersToArrangement, toggleNodeSocketExposure, topLevelIoRegistry, transpileCodeNodeScript, unregisterCustomNodeSockets, unregisterNodeArchetype, updateNamedMidiProfile, validateComponentSocketConnection, validateGraphImport, validateProjectGraph, validateUniversalConnection, zoomAtPoint };
|
|
@@ -6,38 +6,7 @@ import {
|
|
|
6
6
|
ViewHandle,
|
|
7
7
|
instantiateSubgraph
|
|
8
8
|
} from "./chunk-S22PMERU.js";
|
|
9
|
-
import {
|
|
10
|
-
BullMQAdapter,
|
|
11
|
-
CommandBus,
|
|
12
|
-
SKIPO_EXECUTION,
|
|
13
|
-
SkipoExecutionEngine,
|
|
14
|
-
useCommand
|
|
15
|
-
} from "./chunk-ZTHBPV24.js";
|
|
16
9
|
import "./chunk-RHRXPY2U.js";
|
|
17
|
-
import {
|
|
18
|
-
CommandApi,
|
|
19
|
-
GhostStore,
|
|
20
|
-
GraphStore
|
|
21
|
-
} from "./chunk-4UVGXFEM.js";
|
|
22
|
-
import {
|
|
23
|
-
BaseGraph,
|
|
24
|
-
BaseNode,
|
|
25
|
-
BaseViewWindow,
|
|
26
|
-
CustomGraph,
|
|
27
|
-
CustomNode,
|
|
28
|
-
CustomViewWindow,
|
|
29
|
-
DEFAULT_GRAPH_SETTINGS
|
|
30
|
-
} from "./chunk-KG6QYS26.js";
|
|
31
|
-
import "./chunk-Q5I42UX7.js";
|
|
32
|
-
import {
|
|
33
|
-
LifecycleCycleError,
|
|
34
|
-
LifecycleGraph,
|
|
35
|
-
SKIPO_STATE,
|
|
36
|
-
SkipoStateEngine,
|
|
37
|
-
useLifecycleScope,
|
|
38
|
-
useSkipoBind,
|
|
39
|
-
useSkipoState
|
|
40
|
-
} from "./chunk-SHIBCPGQ.js";
|
|
41
10
|
import {
|
|
42
11
|
AttractionEngine,
|
|
43
12
|
GhostInferenceEngine,
|
|
@@ -53,6 +22,29 @@ import {
|
|
|
53
22
|
WireTypeRegistry,
|
|
54
23
|
initializeDefaultGraphRules
|
|
55
24
|
} from "./chunk-TZOL3RN7.js";
|
|
25
|
+
import {
|
|
26
|
+
LifecycleCycleError,
|
|
27
|
+
LifecycleGraph,
|
|
28
|
+
SKIPO_STATE,
|
|
29
|
+
SkipoStateEngine,
|
|
30
|
+
useLifecycleScope,
|
|
31
|
+
useSkipoBind,
|
|
32
|
+
useSkipoState
|
|
33
|
+
} from "./chunk-EW4ACSZB.js";
|
|
34
|
+
import {
|
|
35
|
+
CommandApi,
|
|
36
|
+
GhostStore,
|
|
37
|
+
GraphStore
|
|
38
|
+
} from "./chunk-4UVGXFEM.js";
|
|
39
|
+
import {
|
|
40
|
+
BaseGraph,
|
|
41
|
+
BaseNode,
|
|
42
|
+
BaseViewWindow,
|
|
43
|
+
CustomGraph,
|
|
44
|
+
CustomNode,
|
|
45
|
+
CustomViewWindow,
|
|
46
|
+
DEFAULT_GRAPH_SETTINGS
|
|
47
|
+
} from "./chunk-KG6QYS26.js";
|
|
56
48
|
import {
|
|
57
49
|
AutoSolidify,
|
|
58
50
|
SpatialEngine,
|
|
@@ -66,9 +58,8 @@ import {
|
|
|
66
58
|
import {
|
|
67
59
|
CompatibilityMatrix
|
|
68
60
|
} from "./chunk-ISFNY7EZ.js";
|
|
69
|
-
import "./chunk-3RG5ZIWI.js";
|
|
70
61
|
|
|
71
|
-
// ../../node_modules/.pnpm/@ultrst-armada+krnl@1.0.
|
|
62
|
+
// ../../node_modules/.pnpm/@ultrst-armada+krnl@1.0.3/node_modules/@ultrst-armada/krnl/packages/core/dist/index.js
|
|
72
63
|
var ServiceStateStore = class {
|
|
73
64
|
state;
|
|
74
65
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -122,17 +113,37 @@ var ServiceEventBus = class {
|
|
|
122
113
|
this.handlers.clear();
|
|
123
114
|
}
|
|
124
115
|
};
|
|
116
|
+
var TRANSITIONS = {
|
|
117
|
+
uninitialized: ["initializing"],
|
|
118
|
+
initializing: ["ready", "uninitialized"],
|
|
119
|
+
ready: ["starting"],
|
|
120
|
+
starting: ["running", "ready"],
|
|
121
|
+
running: ["stopping"],
|
|
122
|
+
stopping: ["stopped", "running"],
|
|
123
|
+
stopped: ["starting"]
|
|
124
|
+
};
|
|
125
125
|
var LifecycleManager = class {
|
|
126
126
|
status = "uninitialized";
|
|
127
127
|
getStatus() {
|
|
128
128
|
return this.status;
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
canTransitionTo(next) {
|
|
131
|
+
return TRANSITIONS[this.status].includes(next);
|
|
132
|
+
}
|
|
133
|
+
transitionTo(next) {
|
|
134
|
+
if (!this.canTransitionTo(next)) {
|
|
135
|
+
throw new Error("[Lifecycle] Invalid transition '" + this.status + "' -> '" + next + "'.");
|
|
136
|
+
}
|
|
131
137
|
this.status = next;
|
|
132
138
|
}
|
|
139
|
+
setStatus(next) {
|
|
140
|
+
this.transitionTo(next);
|
|
141
|
+
}
|
|
133
142
|
assertRunning(serviceName) {
|
|
134
143
|
if (this.status !== "running") {
|
|
135
|
-
throw new Error(
|
|
144
|
+
throw new Error(
|
|
145
|
+
"[Service:" + serviceName + "] Cannot invoke operation while status is '" + this.status + "' (expected 'running')."
|
|
146
|
+
);
|
|
136
147
|
}
|
|
137
148
|
}
|
|
138
149
|
};
|
|
@@ -144,7 +155,7 @@ var ServiceInstance = class {
|
|
|
144
155
|
this.version = definition.version;
|
|
145
156
|
this.lifecycle = new LifecycleManager();
|
|
146
157
|
this.eventBus = new ServiceEventBus();
|
|
147
|
-
if (definition.state
|
|
158
|
+
if (definition.state) {
|
|
148
159
|
this.stateStore = new ServiceStateStore(definition.state.initial);
|
|
149
160
|
}
|
|
150
161
|
}
|
|
@@ -155,46 +166,76 @@ var ServiceInstance = class {
|
|
|
155
166
|
stateStore;
|
|
156
167
|
eventBus;
|
|
157
168
|
lifecycle;
|
|
169
|
+
initialized = false;
|
|
170
|
+
disposed = false;
|
|
158
171
|
getDefinition() {
|
|
159
172
|
return this.definition;
|
|
160
173
|
}
|
|
174
|
+
getStatus() {
|
|
175
|
+
return this.lifecycle.getStatus();
|
|
176
|
+
}
|
|
161
177
|
async start() {
|
|
162
|
-
this.
|
|
163
|
-
|
|
164
|
-
|
|
178
|
+
if (this.disposed) throw new Error("[Service:" + this.name + "] Cannot start a disposed service.");
|
|
179
|
+
const current = this.lifecycle.getStatus();
|
|
180
|
+
if (current === "running") return;
|
|
181
|
+
if (current === "initializing" || current === "starting" || current === "stopping") {
|
|
182
|
+
throw new Error("[Service:" + this.name + "] Cannot start while status is '" + current + "'.");
|
|
183
|
+
}
|
|
184
|
+
if (!this.initialized) {
|
|
185
|
+
this.lifecycle.transitionTo("initializing");
|
|
186
|
+
try {
|
|
187
|
+
await this.definition.lifecycle?.onInit?.();
|
|
188
|
+
this.initialized = true;
|
|
189
|
+
this.lifecycle.transitionTo("ready");
|
|
190
|
+
} catch (error) {
|
|
191
|
+
this.lifecycle.transitionTo("uninitialized");
|
|
192
|
+
throw error;
|
|
193
|
+
}
|
|
165
194
|
}
|
|
166
|
-
|
|
167
|
-
|
|
195
|
+
this.lifecycle.transitionTo("starting");
|
|
196
|
+
try {
|
|
197
|
+
await this.definition.lifecycle?.onStart?.();
|
|
198
|
+
this.lifecycle.transitionTo("running");
|
|
199
|
+
} catch (error) {
|
|
200
|
+
this.lifecycle.transitionTo("ready");
|
|
201
|
+
throw error;
|
|
168
202
|
}
|
|
169
|
-
this.lifecycle.setStatus("running");
|
|
170
203
|
}
|
|
171
204
|
async stop() {
|
|
172
|
-
this.lifecycle.
|
|
173
|
-
if (
|
|
174
|
-
|
|
205
|
+
const current = this.lifecycle.getStatus();
|
|
206
|
+
if (current === "stopped") return;
|
|
207
|
+
if (current !== "running") {
|
|
208
|
+
throw new Error("[Service:" + this.name + "] Cannot stop while status is '" + current + "'.");
|
|
175
209
|
}
|
|
176
|
-
|
|
177
|
-
|
|
210
|
+
this.lifecycle.transitionTo("stopping");
|
|
211
|
+
try {
|
|
212
|
+
await this.definition.lifecycle?.onStop?.();
|
|
213
|
+
this.lifecycle.transitionTo("stopped");
|
|
214
|
+
} catch (error) {
|
|
215
|
+
this.lifecycle.transitionTo("running");
|
|
216
|
+
throw error;
|
|
178
217
|
}
|
|
179
|
-
|
|
218
|
+
}
|
|
219
|
+
async dispose() {
|
|
220
|
+
if (this.disposed) return;
|
|
221
|
+
if (this.lifecycle.getStatus() === "running") await this.stop();
|
|
222
|
+
await this.definition.lifecycle?.onDispose?.();
|
|
223
|
+
this.disposed = true;
|
|
180
224
|
}
|
|
181
225
|
async call(op, input, ctx = {}) {
|
|
182
226
|
this.lifecycle.assertRunning(this.name);
|
|
183
227
|
const operation = this.definition.operations[op];
|
|
184
228
|
if (!operation) {
|
|
185
|
-
throw new Error(
|
|
229
|
+
throw new Error("[Service:" + this.name + "] Operation '" + op + "' not found.");
|
|
186
230
|
}
|
|
187
231
|
return await operation.handler(input, ctx);
|
|
188
232
|
}
|
|
189
233
|
getState() {
|
|
190
|
-
|
|
191
|
-
return Object.freeze({});
|
|
192
|
-
}
|
|
193
|
-
return this.stateStore.getState();
|
|
234
|
+
return this.stateStore?.getState() ?? Object.freeze({});
|
|
194
235
|
}
|
|
195
236
|
setState(mutation) {
|
|
196
237
|
if (!this.stateStore) {
|
|
197
|
-
this.stateStore = new ServiceStateStore(mutation);
|
|
238
|
+
this.stateStore = new ServiceStateStore({ ...mutation });
|
|
198
239
|
return;
|
|
199
240
|
}
|
|
200
241
|
this.stateStore.setState(mutation);
|
|
@@ -206,12 +247,66 @@ var ServiceInstance = class {
|
|
|
206
247
|
this.eventBus.emit(event, payload);
|
|
207
248
|
}
|
|
208
249
|
};
|
|
209
|
-
function
|
|
250
|
+
function assertRecord(value, field) {
|
|
251
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
252
|
+
throw new Error("[KrnlTS] Invalid service definition: '" + field + "' must be an object.");
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
function assertNonEmptyString(value, field) {
|
|
256
|
+
if (typeof value !== "string" || value.trim().length === 0) {
|
|
257
|
+
throw new Error("[KrnlTS] Invalid service definition: '" + field + "' must be a non-empty string.");
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
function validateServiceDefinition(definition) {
|
|
261
|
+
if (!definition || typeof definition !== "object") {
|
|
262
|
+
throw new Error("[KrnlTS] Invalid service definition: expected an object.");
|
|
263
|
+
}
|
|
264
|
+
assertNonEmptyString(definition.id, "id");
|
|
265
|
+
assertNonEmptyString(definition.name, "name");
|
|
266
|
+
assertNonEmptyString(definition.version, "version");
|
|
267
|
+
if (!definition.operations || typeof definition.operations !== "object") {
|
|
268
|
+
throw new Error("[Service:" + definition.name + "] Invalid operations: expected an object.");
|
|
269
|
+
}
|
|
270
|
+
for (const [key, operation] of Object.entries(definition.operations)) {
|
|
271
|
+
if (!operation || typeof operation !== "object") {
|
|
272
|
+
throw new Error("[Service:" + definition.name + "] Invalid operation '" + key + "'.");
|
|
273
|
+
}
|
|
274
|
+
assertNonEmptyString(operation.id, "operations." + key + ".id");
|
|
275
|
+
assertNonEmptyString(operation.name, "operations." + key + ".name");
|
|
276
|
+
if (operation.inputSchema !== void 0) assertRecord(operation.inputSchema, "operations." + key + ".inputSchema");
|
|
277
|
+
if (operation.outputSchema !== void 0) assertRecord(operation.outputSchema, "operations." + key + ".outputSchema");
|
|
278
|
+
if (typeof operation.handler !== "function") {
|
|
279
|
+
throw new Error("[Service:" + definition.name + "] Operation '" + key + "' must define a handler.");
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
for (const [key, event] of Object.entries(definition.events ?? {})) {
|
|
283
|
+
if (!event || typeof event !== "object") {
|
|
284
|
+
throw new Error("[Service:" + definition.name + "] Invalid event '" + key + "'.");
|
|
285
|
+
}
|
|
286
|
+
assertNonEmptyString(event.name, "events." + key + ".name");
|
|
287
|
+
}
|
|
288
|
+
for (const [key, schema] of Object.entries(definition.inputs ?? {})) assertRecord(schema, "inputs." + key);
|
|
289
|
+
for (const [key, schema] of Object.entries(definition.outputs ?? {})) assertRecord(schema, "outputs." + key);
|
|
290
|
+
if (definition.state?.schema !== void 0) assertRecord(definition.state.schema, "state.schema");
|
|
291
|
+
for (const capability of definition.capabilities ?? []) {
|
|
292
|
+
assertNonEmptyString(capability.id, "capability.id");
|
|
293
|
+
assertNonEmptyString(capability.name, "capability.name");
|
|
294
|
+
if (!Array.isArray(capability.protocols)) {
|
|
295
|
+
throw new Error("[Service:" + definition.name + "] Capability '" + capability.name + "' protocols must be an array.");
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
for (const dependency of definition.dependencies ?? []) {
|
|
299
|
+
assertNonEmptyString(dependency.serviceId, "dependency.serviceId");
|
|
300
|
+
}
|
|
210
301
|
return definition;
|
|
211
302
|
}
|
|
303
|
+
function createServiceDefinition(definition) {
|
|
304
|
+
return validateServiceDefinition(definition);
|
|
305
|
+
}
|
|
212
306
|
function createService(definition) {
|
|
213
|
-
return new ServiceInstance(definition);
|
|
307
|
+
return new ServiceInstance(validateServiceDefinition(definition));
|
|
214
308
|
}
|
|
309
|
+
var asyncHooks = globalThis.process?.getBuiltinModule?.("node:async_hooks");
|
|
215
310
|
|
|
216
311
|
// src/Viewport.ts
|
|
217
312
|
function screenToCanvas(clientX, clientY, viewport) {
|
|
@@ -1215,6 +1310,29 @@ function getNodeSockets(node) {
|
|
|
1215
1310
|
const outputs = customSockets.filter((s) => s.polarity === "output");
|
|
1216
1311
|
return { inputs, outputs };
|
|
1217
1312
|
}
|
|
1313
|
+
const rawInputs = node.inputs;
|
|
1314
|
+
const rawOutputs = node.outputs;
|
|
1315
|
+
if (Array.isArray(rawInputs) || Array.isArray(rawOutputs)) {
|
|
1316
|
+
const inputs = Array.isArray(rawInputs) ? rawInputs.map((inp, idx) => createPackagedSocket({
|
|
1317
|
+
socketId: inp.id || `in_${idx}`,
|
|
1318
|
+
label: inp.label || inp.id || "IN",
|
|
1319
|
+
polarity: "input",
|
|
1320
|
+
medium: inp.dataType?.toLowerCase().includes("audio") ? "audio_stereo" : "trigger",
|
|
1321
|
+
dataType: "stream",
|
|
1322
|
+
signalType: inp.dataType?.toLowerCase() || "audio_stereo",
|
|
1323
|
+
description: inp.label || "Input Socket"
|
|
1324
|
+
})) : [];
|
|
1325
|
+
const outputs = Array.isArray(rawOutputs) ? rawOutputs.map((out, idx) => createPackagedSocket({
|
|
1326
|
+
socketId: out.id || `out_${idx}`,
|
|
1327
|
+
label: out.label || out.id || "OUT",
|
|
1328
|
+
polarity: "output",
|
|
1329
|
+
medium: out.dataType?.toLowerCase().includes("audio") ? "audio_stereo" : "trigger",
|
|
1330
|
+
dataType: "stream",
|
|
1331
|
+
signalType: out.dataType?.toLowerCase() || "audio_stereo",
|
|
1332
|
+
description: out.label || "Output Socket"
|
|
1333
|
+
})) : [];
|
|
1334
|
+
return { inputs, outputs };
|
|
1335
|
+
}
|
|
1218
1336
|
if (node.type === "input_strip") {
|
|
1219
1337
|
const ioCfg = node.mapIoConfig || createDefaultMapIoConfig();
|
|
1220
1338
|
const inputsList = ioCfg?.inputs && Array.isArray(ioCfg.inputs) ? ioCfg.inputs : [];
|
|
@@ -4821,12 +4939,12 @@ var GraphBridgeNode = class extends BaseNode {
|
|
|
4821
4939
|
originalSpaceNode;
|
|
4822
4940
|
constructor(spaceNode, handles) {
|
|
4823
4941
|
const dims = GraphNodeParent.getNodeDimensions(spaceNode);
|
|
4942
|
+
const pos = Array.isArray(spaceNode.position) ? { x: spaceNode.position[0] * COORD_SCALE, y: (spaceNode.position[2] ?? spaceNode.position[1] ?? 0) * COORD_SCALE } : spaceNode.position && typeof spaceNode.position === "object" ? { x: Number(spaceNode.position.x ?? 0), y: Number(spaceNode.position.y ?? 0) } : { x: 0, y: 0 };
|
|
4824
4943
|
super({
|
|
4825
4944
|
id: spaceNode.id,
|
|
4826
4945
|
type: spaceNode.type,
|
|
4827
|
-
label: spaceNode.name || spaceNode.id,
|
|
4828
|
-
position:
|
|
4829
|
-
// 2D projection on XZ plane
|
|
4946
|
+
label: spaceNode.name || spaceNode.label || spaceNode.id,
|
|
4947
|
+
position: pos,
|
|
4830
4948
|
size: { width: dims.width, height: dims.height },
|
|
4831
4949
|
handles
|
|
4832
4950
|
});
|
|
@@ -4893,7 +5011,31 @@ function initializeMagneticRules() {
|
|
|
4893
5011
|
}
|
|
4894
5012
|
function mapSpaceNodeToBridgeNode(spaceNode) {
|
|
4895
5013
|
initializeMagneticRules();
|
|
4896
|
-
|
|
5014
|
+
let { inputs, outputs } = getNodeSockets(spaceNode);
|
|
5015
|
+
const rawInputs = spaceNode.inputs;
|
|
5016
|
+
const rawOutputs = spaceNode.outputs;
|
|
5017
|
+
if (Array.isArray(rawInputs)) {
|
|
5018
|
+
inputs = rawInputs.map((inp, idx) => createPackagedSocket({
|
|
5019
|
+
socketId: inp.id || `in_${idx}`,
|
|
5020
|
+
label: inp.label || inp.id || "IN",
|
|
5021
|
+
polarity: "input",
|
|
5022
|
+
medium: inp.dataType?.toLowerCase().includes("audio") ? "audio_stereo" : "trigger",
|
|
5023
|
+
dataType: "stream",
|
|
5024
|
+
signalType: inp.dataType?.toLowerCase() || "audio_stereo",
|
|
5025
|
+
description: inp.label || "Input Socket"
|
|
5026
|
+
}));
|
|
5027
|
+
}
|
|
5028
|
+
if (Array.isArray(rawOutputs)) {
|
|
5029
|
+
outputs = rawOutputs.map((out, idx) => createPackagedSocket({
|
|
5030
|
+
socketId: out.id || `out_${idx}`,
|
|
5031
|
+
label: out.label || out.id || "OUT",
|
|
5032
|
+
polarity: "output",
|
|
5033
|
+
medium: out.dataType?.toLowerCase().includes("audio") ? "audio_stereo" : "trigger",
|
|
5034
|
+
dataType: "stream",
|
|
5035
|
+
signalType: out.dataType?.toLowerCase() || "audio_stereo",
|
|
5036
|
+
description: out.label || "Output Socket"
|
|
5037
|
+
}));
|
|
5038
|
+
}
|
|
4897
5039
|
const handles = [];
|
|
4898
5040
|
const customOffsets = spaceNode.socketOffsets;
|
|
4899
5041
|
const dims = GraphNodeParent.getNodeDimensions(spaceNode);
|
|
@@ -9511,6 +9653,12 @@ var PredictiveGraphServiceFacade = {
|
|
|
9511
9653
|
return predictiveGraphServiceInstance.call(op, input);
|
|
9512
9654
|
}
|
|
9513
9655
|
};
|
|
9656
|
+
var krnlStateLifecycleServiceDefinition = StateLifecycleServiceDefinition;
|
|
9657
|
+
var krnlStateLifecycleServiceFacade = StateLifecycleServiceFacade;
|
|
9658
|
+
var krnlNodeGraphEngineServiceDefinition = NodeGraphEngineServiceDefinition;
|
|
9659
|
+
var krnlNodeGraphEngineServiceFacade = NodeGraphEngineServiceFacade;
|
|
9660
|
+
var krnlPredictiveGraphServiceDefinition = PredictiveGraphServiceDefinition;
|
|
9661
|
+
var krnlPredictiveGraphServiceFacade = PredictiveGraphServiceFacade;
|
|
9514
9662
|
export {
|
|
9515
9663
|
ALL_GRAPH_TYPES,
|
|
9516
9664
|
ArrangementNodeModel,
|
|
@@ -9530,7 +9678,6 @@ export {
|
|
|
9530
9678
|
BaseNode,
|
|
9531
9679
|
BaseViewWindow,
|
|
9532
9680
|
BufferConcepts,
|
|
9533
|
-
BullMQAdapter,
|
|
9534
9681
|
CANONICAL_EFFECTS_TABLE,
|
|
9535
9682
|
CANONICAL_SIGNAL_TYPES,
|
|
9536
9683
|
COLOR_PALETTES,
|
|
@@ -9539,7 +9686,6 @@ export {
|
|
|
9539
9686
|
CanonicalMidiInputEndpoint,
|
|
9540
9687
|
CodeNodeModel,
|
|
9541
9688
|
CommandApi,
|
|
9542
|
-
CommandBus,
|
|
9543
9689
|
CompatibilityMatrix,
|
|
9544
9690
|
ComponentSocket,
|
|
9545
9691
|
ComponentWire,
|
|
@@ -9620,12 +9766,10 @@ export {
|
|
|
9620
9766
|
RouterNodeModel,
|
|
9621
9767
|
RoutingNodeParent,
|
|
9622
9768
|
SIGNAL_TYPES,
|
|
9623
|
-
SKIPO_EXECUTION,
|
|
9624
9769
|
SKIPO_STATE,
|
|
9625
9770
|
SPAWN_ELEVATIONS,
|
|
9626
9771
|
STORAGE_KEY,
|
|
9627
9772
|
SignalGeneratorNodeParent,
|
|
9628
|
-
SkipoExecutionEngine,
|
|
9629
9773
|
SkipoStateEngine,
|
|
9630
9774
|
SolidConnection,
|
|
9631
9775
|
SpatialEngine,
|
|
@@ -9774,6 +9918,12 @@ export {
|
|
|
9774
9918
|
isNodeInCenterDeadZone,
|
|
9775
9919
|
isSignalCompatibleWithTrack,
|
|
9776
9920
|
isWireAffectedByEffect,
|
|
9921
|
+
krnlNodeGraphEngineServiceDefinition,
|
|
9922
|
+
krnlNodeGraphEngineServiceFacade,
|
|
9923
|
+
krnlPredictiveGraphServiceDefinition,
|
|
9924
|
+
krnlPredictiveGraphServiceFacade,
|
|
9925
|
+
krnlStateLifecycleServiceDefinition,
|
|
9926
|
+
krnlStateLifecycleServiceFacade,
|
|
9777
9927
|
linearToDb,
|
|
9778
9928
|
lintJavaScriptCode,
|
|
9779
9929
|
loadStoredConfig,
|
|
@@ -9809,7 +9959,6 @@ export {
|
|
|
9809
9959
|
unregisterCustomNodeSockets,
|
|
9810
9960
|
unregisterNodeArchetype,
|
|
9811
9961
|
updateNamedMidiProfile,
|
|
9812
|
-
useCommand,
|
|
9813
9962
|
useLifecycleScope,
|
|
9814
9963
|
useMagneticTraces,
|
|
9815
9964
|
useSkipoBind,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as CompatibilityRule, C as CompatibilityResolution } from '../CompatibilityMatrix-
|
|
2
|
-
export { a as CompatibilityMatrix, b as CompatibilityResolverDelegate } from '../CompatibilityMatrix-
|
|
3
|
-
import { j as NodeDefinition, B as BaseHandle, c as HandleDirection, H as HandleCategory, g as HandleDefinition } from '../BaseNode-
|
|
1
|
+
import { c as CompatibilityRule, C as CompatibilityResolution } from '../CompatibilityMatrix-TiEJ3j3_.js';
|
|
2
|
+
export { a as CompatibilityMatrix, b as CompatibilityResolverDelegate } from '../CompatibilityMatrix-TiEJ3j3_.js';
|
|
3
|
+
import { j as NodeDefinition, B as BaseHandle, c as HandleDirection, H as HandleCategory, g as HandleDefinition } from '../BaseNode-DKpGXMy8.js';
|
|
4
4
|
|
|
5
5
|
interface HandleTypeDefinition {
|
|
6
6
|
dataType: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as BaseNode, B as BaseHandle, i as HandlePosition, N as NodePosition, j as NodeDefinition } from '../BaseNode-
|
|
2
|
-
import { T as Trace, G as GraphNode, f as GraphEdge, N as NodeGraphConfig, b as GhostInferenceOptions, a as GhostCandidate, c as GhostNodeRecord, e as GhostTraceRecord } from '../types-
|
|
3
|
-
export { d as GhostSocketMapping, i as TraceEngine } from '../types-
|
|
1
|
+
import { b as BaseNode, B as BaseHandle, i as HandlePosition, N as NodePosition, j as NodeDefinition } from '../BaseNode-DKpGXMy8.js';
|
|
2
|
+
import { T as Trace, G as GraphNode, f as GraphEdge, N as NodeGraphConfig, b as GhostInferenceOptions, a as GhostCandidate, c as GhostNodeRecord, e as GhostTraceRecord } from '../types-D5kQSa65.js';
|
|
3
|
+
export { d as GhostSocketMapping, i as TraceEngine } from '../types-D5kQSa65.js';
|
|
4
4
|
import { S as SolidConnection } from '../BaseConnection-CMRrL6Fe.js';
|
|
5
|
-
import '../CompatibilityMatrix-
|
|
5
|
+
import '../CompatibilityMatrix-TiEJ3j3_.js';
|
|
6
6
|
|
|
7
7
|
declare class SpatialEngine {
|
|
8
8
|
static calculateEffectiveHandlePosition(node: BaseNode, handle: BaseHandle): HandlePosition;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../chunk-Q5I42UX7.js";
|
|
2
1
|
import {
|
|
3
2
|
LifecycleCycleError,
|
|
4
3
|
LifecycleGraph,
|
|
@@ -7,8 +6,7 @@ import {
|
|
|
7
6
|
useLifecycleScope,
|
|
8
7
|
useSkipoBind,
|
|
9
8
|
useSkipoState
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-3RG5ZIWI.js";
|
|
9
|
+
} from "../chunk-EW4ACSZB.js";
|
|
12
10
|
export {
|
|
13
11
|
LifecycleCycleError,
|
|
14
12
|
LifecycleGraph,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { N as NodePosition, a as NodeSize, b as BaseNode, e as BaseNodeProps, h as HandleOffset } from '../BaseNode-
|
|
1
|
+
import { N as NodePosition, a as NodeSize, b as BaseNode, e as BaseNodeProps, h as HandleOffset } from '../BaseNode-DKpGXMy8.js';
|
|
2
2
|
import { V as ViewLink, S as SolidConnection } from '../BaseConnection-CMRrL6Fe.js';
|
|
3
|
-
import { a as BaseViewWindow, L as Landmark, e as GraphView, G as GraphSettings, f as Group } from '../BaseGraph-
|
|
4
|
-
import { T as Trace, c as GhostNodeRecord, e as GhostTraceRecord } from '../types-
|
|
5
|
-
import '../CompatibilityMatrix-
|
|
3
|
+
import { a as BaseViewWindow, L as Landmark, e as GraphView, G as GraphSettings, f as Group } from '../BaseGraph-Bd5F1NMP.js';
|
|
4
|
+
import { T as Trace, c as GhostNodeRecord, e as GhostTraceRecord } from '../types-D5kQSa65.js';
|
|
5
|
+
import '../CompatibilityMatrix-TiEJ3j3_.js';
|
|
6
6
|
|
|
7
7
|
interface CreateViewWindowParams {
|
|
8
8
|
id?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as BaseNode, c as HandleDirection, B as BaseHandle } from './BaseNode-
|
|
2
|
-
import { C as CompatibilityResolution } from './CompatibilityMatrix-
|
|
1
|
+
import { b as BaseNode, c as HandleDirection, B as BaseHandle } from './BaseNode-DKpGXMy8.js';
|
|
2
|
+
import { C as CompatibilityResolution } from './CompatibilityMatrix-TiEJ3j3_.js';
|
|
3
3
|
|
|
4
4
|
interface Trace {
|
|
5
5
|
id: string;
|