@ultrst-armada/kloks 1.25.0 → 1.26.0
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 +5 -7
- package/packages/audio-midi/dist/{audioClipEngine-E5ODQNYR.js → audioClipEngine-P2XTGBMZ.js} +3 -3
- package/packages/audio-midi/dist/{audioInputManager-OOH3TOJ6.js → audioInputManager-YL5KYUWC.js} +2 -2
- package/packages/audio-midi/dist/bowser-F6LIZBYW.js +2821 -0
- package/packages/audio-midi/dist/chunk-34KJBG4F.js +357 -0
- package/packages/audio-midi/dist/{chunk-3FXNT6PF.js → chunk-6RGU6QHK.js} +2 -2
- package/packages/audio-midi/dist/{chunk-QGM4M3NI.js → chunk-EAQYK3U2.js} +4 -0
- package/packages/audio-midi/dist/chunk-IOAPEUC7.js +3424 -0
- package/packages/audio-midi/dist/chunk-J64ZDIIX.js +2753 -0
- package/packages/audio-midi/dist/chunk-K6H7T3EP.js +1991 -0
- package/packages/audio-midi/dist/chunk-N3MSTUJN.js +4785 -0
- package/packages/audio-midi/dist/{chunk-2U7VIADS.js → chunk-QNGB2HIN.js} +1 -1
- package/packages/audio-midi/dist/chunk-VP26OHBN.js +480 -0
- package/packages/audio-midi/dist/chunk-VRLVLNLG.js +1727 -0
- package/packages/audio-midi/dist/dist-TKZ5TDRN.js +1124 -0
- package/packages/audio-midi/dist/{dist-XMSSRYDR.js → dist-W7ZJS3LZ.js} +1 -1
- package/packages/audio-midi/dist/dist-es-3DGJJFOU.js +338 -0
- package/packages/audio-midi/dist/dist-es-5IACWOIO.js +69 -0
- package/packages/audio-midi/dist/dist-es-BWLDIBIA.js +47 -0
- package/packages/audio-midi/dist/dist-es-DO3F4OBN.js +377 -0
- package/packages/audio-midi/dist/dist-es-NN7AKU7P.js +175 -0
- package/packages/audio-midi/dist/dist-es-QZ6GKMM7.js +220 -0
- package/packages/audio-midi/dist/dist-es-R3VEGXOP.js +87 -0
- package/packages/audio-midi/dist/dist-es-TLPJYZTE.js +294 -0
- package/packages/audio-midi/dist/event-streams-DRE6QVD6.js +940 -0
- package/packages/audio-midi/dist/index.js +19 -19
- package/packages/audio-midi/dist/loadSso-M3ZIZDGO.js +586 -0
- package/packages/audio-midi/dist/multipart-parser-YYFFJ4QD.js +371 -0
- package/packages/audio-midi/dist/signin-YXALFRYB.js +831 -0
- package/packages/audio-midi/dist/src-2QCYQXYH.js +1396 -0
- package/packages/audio-midi/dist/sso-oidc-NXFKRL6O.js +847 -0
- package/packages/audio-midi/dist/sts-MICPT37B.js +1253 -0
- package/packages/audio-midi/dist/{transformers.node-HWHOAE4H.js → transformers.node-R6VHTGC2.js} +1 -1
- package/packages/backend/dist/ai-inference/DeterministicEndpointExecutor.d.ts +26 -0
- package/packages/backend/dist/ai-inference/errorParser.d.ts +11 -0
- package/packages/backend/dist/ai-inference/index.d.ts +6 -97
- package/packages/backend/dist/ai-inference/inferenceExecutor.d.ts +11 -0
- package/packages/backend/dist/ai-inference/types.d.ts +45 -0
- package/packages/backend/dist/ai-keys/index.d.ts +6 -68
- package/packages/backend/dist/ai-keys/keyStore.d.ts +44 -0
- package/packages/backend/dist/ai-keys/keyValidator.d.ts +7 -0
- package/packages/backend/dist/ai-keys/keysStorage.d.ts +14 -0
- package/packages/backend/dist/{types-NITEaxAh.d.ts → ai-keys/types.d.ts} +5 -9
- package/packages/backend/dist/ai-models/catalogData.d.ts +6 -0
- package/packages/backend/dist/ai-models/endpointRefresher.d.ts +13 -0
- package/packages/backend/dist/ai-models/index.d.ts +7 -70
- package/packages/backend/dist/ai-models/modelCatalog.d.ts +33 -0
- package/packages/backend/dist/ai-models/modelHealthService.d.ts +15 -0
- package/packages/backend/dist/{types-fYUdf9oB.d.ts → ai-models/types.d.ts} +3 -7
- package/packages/backend/dist/ai-provider/AIProviderService.d.ts +16 -0
- package/packages/backend/dist/{AITransportClient-dToGr8nj.d.ts → ai-provider/AITransportClient.d.ts} +3 -5
- package/packages/backend/dist/ai-provider/index.d.ts +6 -30
- package/packages/backend/dist/ai-provider/providers.d.ts +9 -0
- package/packages/backend/dist/{types-Di4ZAQYA.d.ts → ai-provider/types.d.ts} +4 -6
- package/packages/backend/dist/ai-routing/failoverEngine.d.ts +10 -0
- package/packages/backend/dist/ai-routing/healthCheckService.d.ts +19 -0
- package/packages/backend/dist/ai-routing/index.d.ts +6 -115
- package/packages/backend/dist/ai-routing/metricsLogger.d.ts +51 -0
- package/packages/backend/dist/ai-routing/types.d.ts +30 -0
- package/packages/backend/dist/ai-tools/ToolManagerService.d.ts +11 -0
- package/packages/backend/dist/ai-tools/index.d.ts +6 -80
- package/packages/backend/dist/ai-tools/mcpEngine.d.ts +19 -0
- package/packages/backend/dist/ai-tools/toolValidationLoop.d.ts +10 -0
- package/packages/backend/dist/ai-tools/types.d.ts +37 -0
- package/packages/backend/dist/api/BaseApiRoute.d.ts +9 -0
- package/packages/backend/dist/api/index.d.ts +4 -32
- package/packages/backend/dist/api/middleware.d.ts +3 -0
- package/packages/backend/dist/api/sse.d.ts +1 -0
- package/packages/backend/dist/api/types.d.ts +14 -0
- package/packages/backend/dist/architecture/types.d.ts +53 -0
- package/packages/backend/dist/auth/BaseAccountProvider.d.ts +7 -0
- package/packages/backend/dist/auth/CanonicalAuthClient.d.ts +6 -0
- package/packages/backend/dist/auth/UnifiedAuthCore.d.ts +23 -0
- package/packages/backend/dist/auth/UnifiedAuthCore.test.d.ts +1 -0
- package/packages/backend/dist/auth/index.d.ts +2 -27
- package/packages/backend/dist/auth/index.js +1 -1
- package/packages/backend/dist/{chunk-SNKPYPDW.js → chunk-2COYZMUJ.js} +1 -0
- package/packages/backend/dist/{chunk-SHZAQTIT.js → chunk-3W4TN6XB.js} +184 -95
- package/packages/backend/dist/chunk-52M4L74T.js +247 -0
- package/packages/backend/dist/chunk-CA5HVC4X.js +155 -0
- package/packages/backend/dist/chunk-GKQ42CYW.js +47 -0
- package/packages/backend/dist/chunk-GZD5A54P.js +67 -0
- package/packages/backend/dist/{chunk-SVNL5IVN.js → chunk-IB5SLBHT.js} +1 -1
- package/packages/backend/dist/{chunk-COA3ABWL.js → chunk-JRNH5KPV.js} +3 -3
- package/packages/backend/dist/{chunk-IGZB4RYT.js → chunk-QXIMZLGS.js} +1 -1
- package/packages/backend/dist/client/index.d.ts +21 -19
- package/packages/backend/dist/client/useBackend.d.ts +18 -0
- package/packages/backend/dist/connectivity/BackendClient.d.ts +40 -0
- package/packages/backend/dist/connectivity/BackendContract.d.ts +42 -0
- package/packages/backend/dist/connectivity/BackendRegistry.d.ts +20 -0
- package/packages/backend/dist/connectivity/BackendResolver.d.ts +33 -0
- package/packages/backend/dist/connectivity/CallbackRegistry.d.ts +17 -0
- package/packages/backend/dist/connectivity/ConcurrencyManager.d.ts +28 -0
- package/packages/backend/dist/connectivity/EventBus.d.ts +18 -0
- package/packages/backend/dist/connectivity/FrontendSession.d.ts +30 -0
- package/packages/backend/dist/connectivity/HTTPTransport.d.ts +34 -0
- package/packages/backend/dist/connectivity/HealthMonitor.d.ts +18 -0
- package/packages/backend/dist/connectivity/IdempotencyManager.d.ts +14 -0
- package/packages/backend/dist/connectivity/InProcessExecutor.d.ts +27 -0
- package/packages/backend/dist/connectivity/JobScheduler.d.ts +30 -0
- package/packages/backend/dist/connectivity/LoadBalancer.d.ts +15 -0
- package/packages/backend/dist/connectivity/LockManager.d.ts +16 -0
- package/packages/backend/dist/connectivity/RemoteExecutor.d.ts +33 -0
- package/packages/backend/dist/connectivity/SequenceTracker.d.ts +26 -0
- package/packages/backend/dist/connectivity/Transport.d.ts +18 -0
- package/packages/backend/dist/connectivity/WebSocketTransport.d.ts +37 -0
- package/packages/backend/dist/connectivity/index.d.ts +23 -248
- package/packages/backend/dist/connectivity/types.d.ts +108 -0
- package/packages/backend/dist/control-plane/AuditLogger.d.ts +9 -0
- package/packages/backend/dist/control-plane/ControlPlaneManager.d.ts +10 -0
- package/packages/backend/dist/control-plane/DatabaseClusterManager.d.ts +20 -0
- package/packages/backend/dist/control-plane/index.d.ts +4 -56
- package/packages/backend/dist/control-plane/types.d.ts +17 -0
- package/packages/backend/dist/core/SrklStorageService.d.ts +33 -0
- package/packages/backend/dist/core/b2DirectCore.d.ts +37 -0
- package/packages/backend/dist/core/cloudflareIntegrationCore.d.ts +21 -0
- package/packages/backend/dist/core/credentialVaultCore.d.ts +43 -0
- package/packages/backend/dist/core/deploymentControlCore.d.ts +37 -0
- package/packages/backend/dist/core/dynamicRouteResolver.d.ts +8 -0
- package/packages/backend/dist/core/index.d.ts +18 -0
- package/packages/backend/dist/core/publicRoutesStore.d.ts +39 -0
- package/packages/backend/dist/core/routesCore.d.ts +79 -0
- package/packages/backend/dist/core/srklCore.d.ts +49 -0
- package/packages/backend/dist/core/unifiedDb.d.ts +12 -0
- package/packages/backend/dist/core/unifiedDb.test.d.ts +1 -0
- package/packages/backend/dist/core/vercelIntegrationCore.d.ts +17 -0
- package/packages/backend/dist/core/vercelTransformer.d.ts +41 -0
- package/packages/backend/dist/core/workspaceBucketSyncCore.d.ts +10 -0
- package/packages/backend/dist/core/workspaceCanonical.d.ts +7 -0
- package/packages/backend/dist/core/workspaceCloneSyncCore.d.ts +40 -0
- package/packages/backend/dist/core/workspaceCore.d.ts +33 -0
- package/packages/backend/dist/core/workspaceCore.test.d.ts +1 -0
- package/packages/backend/dist/core/workspaceDataCore.d.ts +53 -0
- package/packages/backend/dist/core/workspaceFileCore.d.ts +16 -0
- package/packages/backend/dist/core/workspaceStorageDetailsCore.d.ts +91 -0
- package/packages/backend/dist/core/workspaceSyncEngine.d.ts +40 -0
- package/packages/backend/dist/data/BaseDataProvider.d.ts +11 -0
- package/packages/backend/dist/data/FunctionalityTable.d.ts +14 -0
- package/packages/backend/dist/data/index.d.ts +3 -0
- package/packages/backend/dist/data/types.d.ts +18 -0
- package/packages/backend/dist/development/agentHarnessService.d.ts +26 -0
- package/packages/backend/dist/development/agentHarnessService.test.d.ts +1 -0
- package/packages/backend/dist/development/agentHarnessTypes.d.ts +28 -0
- package/packages/backend/dist/development/clientEntry.test.d.ts +1 -0
- package/packages/backend/dist/development/codeDiagnosticsService.d.ts +16 -0
- package/packages/backend/dist/development/codeValidationService.d.ts +20 -0
- package/packages/backend/dist/development/codeValidationService.test.d.ts +1 -0
- package/packages/backend/dist/development/codeValidationTypes.d.ts +21 -0
- package/packages/backend/dist/development/developmentService.d.ts +22 -0
- package/packages/backend/dist/development/developmentService.test.d.ts +1 -0
- package/packages/backend/dist/development/githubActionsService.d.ts +55 -0
- package/packages/backend/dist/development/githubActionsService.test.d.ts +1 -0
- package/packages/backend/dist/development/index.d.ts +13 -346
- package/packages/backend/dist/development/index.js +31 -204
- package/packages/backend/dist/development/playwrightInspectionEntry.test.d.ts +1 -0
- package/packages/backend/dist/development/playwrightInspectionService.d.ts +6 -10
- package/packages/backend/dist/development/playwrightInspectionService.test.d.ts +1 -0
- package/packages/backend/dist/development/playwrightInspectionSupport.d.ts +45 -0
- package/packages/backend/dist/development/playwrightInspectionTypes.d.ts +8 -10
- package/packages/backend/dist/development/types.d.ts +43 -0
- package/packages/backend/dist/development/typescriptLanguageServerService.d.ts +14 -0
- package/packages/backend/dist/development/typescriptLanguageServerService.test.d.ts +1 -0
- package/packages/backend/dist/development/typescriptLanguageServerTypes.d.ts +30 -0
- package/packages/backend/dist/development/webContainerDiagnostics.test.d.ts +1 -0
- package/packages/backend/dist/development/webContainerEntry.test.d.ts +1 -0
- package/packages/backend/dist/development/webContainerRuntime.d.ts +57 -0
- package/packages/backend/dist/development/webContainerRuntime.js +12 -0
- package/packages/backend/dist/development/webContainerService.d.ts +14 -0
- package/packages/backend/dist/development/webContainerService.js +19 -0
- package/packages/backend/dist/development/webContainerService.test.d.ts +1 -0
- package/packages/backend/dist/index.d.ts +27 -1655
- package/packages/backend/dist/index.js +23 -19
- package/packages/backend/dist/krnl-ai-services.d.ts +32 -35
- package/packages/backend/dist/krnl-ai-services.test.d.ts +1 -0
- package/packages/backend/dist/krnl-services.d.ts +65 -61
- package/packages/backend/dist/krnl-services.js +5 -5
- package/packages/backend/dist/luth/LuthDiscoveryService.d.ts +15 -0
- package/packages/backend/dist/luth/index.d.ts +1 -0
- package/packages/backend/dist/resolver/systemDatabaseUrl.d.ts +18 -0
- package/packages/backend/dist/resourceEngine/BaseResourceFetcher.d.ts +34 -0
- package/packages/backend/dist/resourceEngine/CloudflareResourceFetcher.d.ts +10 -0
- package/packages/backend/dist/resourceEngine/ResourceFetcherRegistry.d.ts +27 -0
- package/packages/backend/dist/resourceEngine/VercelResourceFetcher.d.ts +10 -0
- package/packages/backend/dist/resourceEngine/adapters/CloudflareResourceAdapter.d.ts +9 -0
- package/packages/backend/dist/resourceEngine/adapters/VercelResourceAdapter.d.ts +9 -0
- package/packages/backend/dist/resourceEngine/calculator/UniversalResourceCalculator.d.ts +14 -0
- package/packages/backend/dist/resourceEngine/calculator/types.d.ts +37 -0
- package/packages/backend/dist/resourceEngine/index.d.ts +6 -0
- package/packages/backend/dist/resourceEngine/metricHelpers.d.ts +63 -0
- package/packages/backend/dist/resourceEngine/types/depm/base.d.ts +43 -0
- package/packages/backend/dist/resourceEngine/types/depm/entities.d.ts +136 -0
- package/packages/backend/dist/resourceEngine/types/depm/index.d.ts +4 -0
- package/packages/backend/dist/resourceEngine/types/depm/settings.d.ts +53 -0
- package/packages/backend/dist/resourceEngine/types/depm/vercel.d.ts +110 -0
- package/packages/backend/dist/resourceEngine/types.d.ts +99 -0
- package/packages/backend/dist/resourceEngine/weightEngine/helpers.d.ts +17 -0
- package/packages/backend/dist/resourceEngine/weightEngine/index.d.ts +2 -0
- package/packages/backend/dist/resourceEngine/weightEngine/weightEngine.d.ts +16 -0
- package/packages/backend/dist/resourceEngine/weightEngine/weightEngine.test.d.ts +1 -0
- package/packages/backend/dist/resourceEngine/weightEngine.d.ts +1 -0
- package/packages/backend/dist/server/index.d.ts +8 -0
- package/packages/backend/dist/server/sampleGenerator.d.ts +1 -0
- package/packages/backend/dist/server/services/assetPoolService/assetPoolService.d.ts +70 -0
- package/packages/backend/dist/server/services/assetPoolService/helpers.d.ts +5 -0
- package/packages/backend/dist/server/services/assetPoolService/types.d.ts +25 -0
- package/packages/backend/dist/server/services/assetPoolService.d.ts +100 -0
- package/packages/backend/dist/server/services/graphAssetService.d.ts +82 -0
- package/packages/backend/dist/server/services/graphPackageService.d.ts +75 -0
- package/packages/backend/dist/server/services/projectService/helpers.d.ts +1 -0
- package/packages/backend/dist/server/services/projectService/projectService.d.ts +9 -0
- package/packages/backend/dist/server/services/projectService/types.d.ts +11 -0
- package/packages/backend/dist/server/services/projectService.d.ts +18 -0
- package/packages/backend/dist/server/services/sampleService.d.ts +21 -0
- package/packages/backend/dist/server/services/workspaceGraphService.d.ts +26 -0
- package/packages/backend/dist/server/wavHelper.d.ts +1 -0
- package/packages/backend/dist/services/CompositeBackend.d.ts +28 -0
- package/packages/backend/dist/services/EndpointGenerator.d.ts +16 -0
- package/packages/backend/dist/services/ServiceBoundary.d.ts +10 -0
- package/packages/backend/dist/services/ServiceGenerators.d.ts +12 -0
- package/packages/backend/dist/services/index.d.ts +8 -291
- package/packages/backend/dist/services/index.js +3 -3
- package/packages/backend/dist/services/nodeGraphPersistence/helpers.d.ts +17 -0
- package/packages/backend/dist/services/nodeGraphPersistence/index.d.ts +7 -0
- package/packages/backend/dist/services/nodeGraphPersistence/nodeGraphPersistence.d.ts +40 -0
- package/packages/backend/dist/services/nodeGraphPersistence/types.d.ts +107 -0
- package/packages/backend/dist/services/workspaceGraphService.d.ts +62 -0
- package/packages/backend/dist/srkl/SrklClient.d.ts +38 -0
- package/packages/backend/dist/srkl/SrklCredentialRegistry.d.ts +21 -0
- package/packages/backend/dist/srkl/SrklCryptoClient.d.ts +5 -0
- package/packages/backend/dist/srkl/SrklDiscoveryService.d.ts +33 -0
- package/packages/backend/dist/srkl/SrklVaultAccessClient.d.ts +26 -0
- package/packages/backend/dist/srkl/index.d.ts +15 -343
- package/packages/backend/dist/srkl/srkl.d.ts +139 -0
- package/packages/backend/dist/srkl/srklSyncBridge.d.ts +6 -0
- package/packages/backend/dist/srkl/types.d.ts +136 -0
- package/packages/backend/dist/srkl/useSrklServices.d.ts +27 -0
- package/packages/backend/dist/storage/B2DirectClient.d.ts +16 -0
- package/packages/backend/dist/storage/BackblazeB2Adapter.d.ts +19 -0
- package/packages/backend/dist/storage/BaseStorageAdapter.d.ts +19 -0
- package/packages/backend/dist/storage/BucketStorageService.d.ts +5 -0
- package/packages/backend/dist/storage/GoogleDriveAdapter.d.ts +19 -0
- package/packages/backend/dist/storage/GoogleDriveOAuth.d.ts +16 -0
- package/packages/backend/dist/storage/GoogleDriveStorageService.d.ts +5 -0
- package/packages/backend/dist/storage/LocalFSAdapter.d.ts +22 -0
- package/packages/backend/dist/storage/S3Adapter.d.ts +19 -0
- package/packages/backend/dist/storage/StorageAdapterFactory.d.ts +5 -0
- package/packages/backend/dist/storage/SupabaseStorageAdapter.d.ts +15 -0
- package/packages/backend/dist/storage/b2Endpoint.d.ts +12 -0
- package/packages/backend/dist/storage/index.d.ts +14 -156
- package/packages/backend/dist/storage/index.js +14 -8
- package/packages/backend/dist/storage/s3Purge.d.ts +13 -0
- package/packages/backend/dist/storage/storageProviders.test.d.ts +1 -0
- package/packages/backend/dist/storage/types.d.ts +51 -0
- package/packages/backend/dist/workspace/RemoteWorkspaceService.d.ts +30 -0
- package/packages/backend/dist/workspace/SyncEngine.d.ts +11 -0
- package/packages/backend/dist/workspace/WorkingWorkspaceService.d.ts +35 -0
- package/packages/backend/dist/workspace/WorkspaceCanonical.d.ts +2 -0
- package/packages/backend/dist/workspace/WorkspaceCloneSyncEngine.d.ts +26 -0
- package/packages/backend/dist/workspace/WorkspaceFS.d.ts +21 -0
- package/packages/backend/dist/workspace/WorkspaceService.d.ts +52 -0
- package/packages/backend/dist/workspace/index.d.ts +8 -223
- package/packages/backend/dist/workspace/index.js +2 -2
- package/packages/backend/dist/workspace/types.d.ts +51 -0
- package/packages/backend/kloks.manifest.json +1 -1
- package/packages/backend/package.json +7 -10
- package/packages/functions/dist/bowser-F6LIZBYW.js +2821 -0
- package/packages/functions/dist/chunk-34KJBG4F.js +357 -0
- package/packages/functions/dist/{chunk-QGM4M3NI.js → chunk-EAQYK3U2.js} +4 -0
- package/packages/functions/dist/chunk-IOAPEUC7.js +3424 -0
- package/packages/functions/dist/chunk-J64ZDIIX.js +2753 -0
- package/packages/functions/dist/chunk-K6H7T3EP.js +1991 -0
- package/packages/functions/dist/chunk-N3MSTUJN.js +4785 -0
- package/packages/functions/dist/chunk-VP26OHBN.js +480 -0
- package/packages/functions/dist/chunk-VRLVLNLG.js +1727 -0
- package/packages/functions/dist/dist-TKZ5TDRN.js +1124 -0
- package/packages/{services/dist/dist-XMSSRYDR.js → functions/dist/dist-W7ZJS3LZ.js} +1 -1
- package/packages/functions/dist/dist-es-3DGJJFOU.js +338 -0
- package/packages/functions/dist/dist-es-5IACWOIO.js +69 -0
- package/packages/functions/dist/dist-es-BWLDIBIA.js +47 -0
- package/packages/functions/dist/dist-es-DO3F4OBN.js +377 -0
- package/packages/functions/dist/dist-es-NN7AKU7P.js +175 -0
- package/packages/functions/dist/dist-es-QZ6GKMM7.js +220 -0
- package/packages/functions/dist/dist-es-R3VEGXOP.js +87 -0
- package/packages/functions/dist/dist-es-TLPJYZTE.js +294 -0
- package/packages/functions/dist/event-streams-DRE6QVD6.js +940 -0
- package/packages/functions/dist/index.js +17 -17
- package/packages/functions/dist/loadSso-M3ZIZDGO.js +586 -0
- package/packages/functions/dist/multipart-parser-YYFFJ4QD.js +371 -0
- package/packages/functions/dist/signin-YXALFRYB.js +831 -0
- package/packages/functions/dist/src-2QCYQXYH.js +1396 -0
- package/packages/functions/dist/sso-oidc-NXFKRL6O.js +847 -0
- package/packages/functions/dist/sts-MICPT37B.js +1253 -0
- package/packages/functions/dist/{transformers.node-HWHOAE4H.js → transformers.node-R6VHTGC2.js} +1 -1
- package/packages/services/dist/bowser-F6LIZBYW.js +2821 -0
- package/packages/services/dist/chunk-34KJBG4F.js +357 -0
- package/packages/{state-graph/dist/chunk-QGM4M3NI.js → services/dist/chunk-EAQYK3U2.js} +4 -0
- package/packages/services/dist/chunk-IOAPEUC7.js +3424 -0
- package/packages/services/dist/chunk-J64ZDIIX.js +2753 -0
- package/packages/services/dist/chunk-K6H7T3EP.js +1991 -0
- package/packages/services/dist/chunk-N3MSTUJN.js +4785 -0
- package/packages/services/dist/chunk-VP26OHBN.js +480 -0
- package/packages/services/dist/chunk-VRLVLNLG.js +1727 -0
- package/packages/services/dist/dist-TKZ5TDRN.js +1124 -0
- package/packages/{state-graph/dist/dist-XMSSRYDR.js → services/dist/dist-W7ZJS3LZ.js} +1 -1
- package/packages/services/dist/dist-es-3DGJJFOU.js +338 -0
- package/packages/services/dist/dist-es-5IACWOIO.js +69 -0
- package/packages/services/dist/dist-es-BWLDIBIA.js +47 -0
- package/packages/services/dist/dist-es-DO3F4OBN.js +377 -0
- package/packages/services/dist/dist-es-NN7AKU7P.js +175 -0
- package/packages/services/dist/dist-es-QZ6GKMM7.js +220 -0
- package/packages/services/dist/dist-es-R3VEGXOP.js +87 -0
- package/packages/services/dist/dist-es-TLPJYZTE.js +294 -0
- package/packages/services/dist/event-streams-DRE6QVD6.js +940 -0
- package/packages/services/dist/index.d.ts +70 -1
- package/packages/services/dist/index.js +131 -17
- package/packages/services/dist/loadSso-M3ZIZDGO.js +586 -0
- package/packages/services/dist/multipart-parser-YYFFJ4QD.js +371 -0
- package/packages/services/dist/signin-YXALFRYB.js +831 -0
- package/packages/services/dist/src-2QCYQXYH.js +1396 -0
- package/packages/services/dist/sso-oidc-NXFKRL6O.js +847 -0
- package/packages/services/dist/sts-MICPT37B.js +1253 -0
- package/packages/services/dist/{transformers.node-HWHOAE4H.js → transformers.node-R6VHTGC2.js} +1 -1
- package/packages/services/kloks.manifest.json +28 -0
- package/packages/state-graph/dist/BoxSelection.d.ts +2 -0
- package/packages/state-graph/dist/Viewport.d.ts +39 -0
- package/packages/state-graph/dist/bowser-F6LIZBYW.js +2821 -0
- package/packages/state-graph/dist/chunk-34KJBG4F.js +357 -0
- package/packages/{services/dist/chunk-QGM4M3NI.js → state-graph/dist/chunk-EAQYK3U2.js} +4 -0
- package/packages/state-graph/dist/chunk-IOAPEUC7.js +3424 -0
- package/packages/state-graph/dist/chunk-J64ZDIIX.js +2753 -0
- package/packages/state-graph/dist/chunk-K6H7T3EP.js +1991 -0
- package/packages/state-graph/dist/chunk-N3MSTUJN.js +4785 -0
- package/packages/state-graph/dist/chunk-VP26OHBN.js +480 -0
- package/packages/state-graph/dist/chunk-VRLVLNLG.js +1727 -0
- package/packages/state-graph/dist/dist-TKZ5TDRN.js +1124 -0
- package/packages/{functions/dist/dist-XMSSRYDR.js → state-graph/dist/dist-W7ZJS3LZ.js} +1 -1
- package/packages/state-graph/dist/dist-es-3DGJJFOU.js +338 -0
- package/packages/state-graph/dist/dist-es-5IACWOIO.js +69 -0
- package/packages/state-graph/dist/dist-es-BWLDIBIA.js +47 -0
- package/packages/state-graph/dist/dist-es-DO3F4OBN.js +377 -0
- package/packages/state-graph/dist/dist-es-NN7AKU7P.js +175 -0
- package/packages/state-graph/dist/dist-es-OECEAUXH.js +220 -0
- package/packages/state-graph/dist/dist-es-R3VEGXOP.js +87 -0
- package/packages/state-graph/dist/dist-es-TLPJYZTE.js +294 -0
- package/packages/state-graph/dist/{BaseConnection-CMRrL6Fe.d.ts → domain/BaseConnection.d.ts} +6 -8
- package/packages/state-graph/dist/domain/BaseGraph.d.ts +66 -0
- package/packages/state-graph/dist/domain/BaseHandle.d.ts +63 -0
- package/packages/state-graph/dist/domain/BaseNode.d.ts +64 -0
- package/packages/state-graph/dist/domain/BaseViewWindow.d.ts +30 -0
- package/packages/state-graph/dist/domain/GroupNode.d.ts +29 -0
- package/packages/state-graph/dist/domain/SubgraphNode.d.ts +84 -0
- package/packages/state-graph/dist/domain/index.d.ts +7 -117
- package/packages/state-graph/dist/domain/index.js +1 -1
- package/packages/state-graph/dist/domain/primitives/PrimitiveNodeDefs.d.ts +2 -0
- package/packages/state-graph/dist/domain/primitives/index.d.ts +1 -0
- package/packages/state-graph/dist/domain/types.d.ts +1 -0
- package/packages/state-graph/dist/engine/AudioConcepts.d.ts +23 -0
- package/packages/state-graph/dist/engine/BufferConcepts.d.ts +29 -0
- package/packages/state-graph/dist/engine/GraphConcepts.d.ts +24 -0
- package/packages/state-graph/dist/engine/UIConcepts.d.ts +24 -0
- package/packages/state-graph/dist/engine/core/archetypes/audioArchetypes.d.ts +2 -0
- package/packages/state-graph/dist/engine/core/archetypes/effectArchetypes.d.ts +2 -0
- package/packages/state-graph/dist/engine/core/archetypes/primitiveArchetypes.d.ts +2 -0
- package/packages/state-graph/dist/engine/core/archetypes/routingArchetypes.d.ts +2 -0
- package/packages/state-graph/dist/engine/core/archetypes/triggerModuleArchetypes.d.ts +2 -0
- package/packages/state-graph/dist/engine/core/archetypes/types.d.ts +65 -0
- package/packages/state-graph/dist/engine/core/assets/containerSprites.d.ts +2 -0
- package/packages/state-graph/dist/engine/core/assets/effectSprites.d.ts +2 -0
- package/packages/state-graph/dist/engine/core/assets/primitiveSprites.d.ts +2 -0
- package/packages/state-graph/dist/engine/core/assets/routingSprites.d.ts +2 -0
- package/packages/state-graph/dist/engine/core/assets/types.d.ts +33 -0
- package/packages/state-graph/dist/engine/core/async.d.ts +36 -0
- package/packages/state-graph/dist/engine/core/base.d.ts +31 -0
- package/packages/state-graph/dist/engine/core/cache.d.ts +36 -0
- package/packages/state-graph/dist/engine/core/canonicalIo/CanonicalAudioInputEndpoint.d.ts +28 -0
- package/packages/state-graph/dist/engine/core/canonicalIo/CanonicalMidiInputEndpoint.d.ts +24 -0
- package/packages/state-graph/dist/engine/core/canonicalIo/topLevelIoRegistry.d.ts +29 -0
- package/packages/state-graph/dist/engine/core/canonicalIo/types.d.ts +50 -0
- package/packages/state-graph/dist/engine/core/controlDispatcher.d.ts +31 -0
- package/packages/state-graph/dist/engine/core/env.d.ts +29 -0
- package/packages/state-graph/dist/engine/core/events.d.ts +32 -0
- package/packages/state-graph/dist/engine/core/exposedSocketsManager.d.ts +14 -0
- package/packages/state-graph/dist/engine/core/fs-lock.d.ts +9 -0
- package/packages/state-graph/dist/engine/core/fs.d.ts +35 -0
- package/packages/state-graph/dist/engine/core/graphDataService.d.ts +60 -0
- package/packages/state-graph/dist/engine/core/graphDependencyValidator.d.ts +34 -0
- package/packages/state-graph/dist/engine/core/graphTypeSystem.d.ts +21 -0
- package/packages/state-graph/dist/engine/core/hierarchy/core/GraphEntityParent.d.ts +49 -0
- package/packages/state-graph/dist/engine/core/hierarchy/index.d.ts +11 -0
- package/packages/state-graph/dist/engine/core/hierarchy/magnetic/magneticGraphBridge.d.ts +13 -0
- package/packages/state-graph/dist/engine/core/hierarchy/magnetic/magneticGraphManager.d.ts +32 -0
- package/packages/state-graph/dist/engine/core/hierarchy/nodes/GraphNodeParent.d.ts +68 -0
- package/packages/state-graph/dist/engine/core/hierarchy/nodes/GraphNodeTypes.d.ts +90 -0
- package/packages/state-graph/dist/engine/core/hierarchy/nodes/nodeGeometry.d.ts +27 -0
- package/packages/state-graph/dist/engine/core/hierarchy/sockets/GraphSocketParent.d.ts +40 -0
- package/packages/state-graph/dist/engine/core/hierarchy/sockets/GraphSocketTypes.d.ts +65 -0
- package/packages/state-graph/dist/engine/core/hierarchy/ui/UIElementBase.d.ts +41 -0
- package/packages/state-graph/dist/engine/core/hierarchy/wires/GraphWireParent.d.ts +74 -0
- package/packages/state-graph/dist/engine/core/hierarchy/wires/GraphWireTypes.d.ts +65 -0
- package/packages/state-graph/dist/engine/core/http.d.ts +36 -0
- package/packages/state-graph/dist/engine/core/index.d.ts +16 -0
- package/packages/state-graph/dist/engine/core/l2_drivers/audioBusDriver.d.ts +16 -0
- package/packages/state-graph/dist/engine/core/l2_drivers/audioDeviceDriver.d.ts +15 -0
- package/packages/state-graph/dist/engine/core/l2_drivers/audioStreamDriver.d.ts +6 -0
- package/packages/state-graph/dist/engine/core/nodeArchetypeRegistry.d.ts +6 -0
- package/packages/state-graph/dist/engine/core/nodeAssetRegistry.d.ts +54 -0
- package/packages/state-graph/dist/engine/core/nodeSocketRegistry.d.ts +36 -0
- package/packages/state-graph/dist/engine/core/object.d.ts +32 -0
- package/packages/state-graph/dist/engine/core/shell.d.ts +37 -0
- package/packages/state-graph/dist/engine/core/socketRegistry/containersSockets.d.ts +3 -0
- package/packages/state-graph/dist/engine/core/socketRegistry/createPackagedSocket.d.ts +19 -0
- package/packages/state-graph/dist/engine/core/socketRegistry/customRegistry.d.ts +6 -0
- package/packages/state-graph/dist/engine/core/socketRegistry/landmarksSockets.d.ts +3 -0
- package/packages/state-graph/dist/engine/core/socketRegistry/primitivesSockets.d.ts +3 -0
- package/packages/state-graph/dist/engine/core/socketRegistry/processorsSockets.d.ts +3 -0
- package/packages/state-graph/dist/engine/core/socketRegistry/types.d.ts +7 -0
- package/packages/state-graph/dist/engine/core/sockets/arrangementControlSockets.d.ts +4 -0
- package/packages/state-graph/dist/engine/core/sockets/audioSockets.d.ts +5 -0
- package/packages/state-graph/dist/engine/core/sockets/folderButtonSockets.d.ts +4 -0
- package/packages/state-graph/dist/engine/core/sockets/moduleSockets.d.ts +3 -0
- package/packages/state-graph/dist/engine/core/sockets/playbackSockets.d.ts +4 -0
- package/packages/state-graph/dist/engine/core/sockets/primitiveSockets.d.ts +7 -0
- package/packages/state-graph/dist/engine/core/sockets/routingSockets.d.ts +5 -0
- package/packages/state-graph/dist/engine/core/sockets/samplerSockets.d.ts +4 -0
- package/packages/state-graph/dist/engine/core/sockets/socketUtils.d.ts +25 -0
- package/packages/state-graph/dist/engine/core/sockets/stripSockets.d.ts +4 -0
- package/packages/state-graph/dist/engine/core/string.d.ts +14 -0
- package/packages/state-graph/dist/engine/core/subgraphIoTransform.d.ts +43 -0
- package/packages/state-graph/dist/engine/core/types.d.ts +31 -0
- package/packages/state-graph/dist/engine/core/workspaceGraphRegistry.d.ts +32 -0
- package/packages/state-graph/dist/engine/functions/arrangementFactory.d.ts +5 -0
- package/packages/state-graph/dist/engine/functions/canonicalSignalTable.d.ts +35 -0
- package/packages/state-graph/dist/engine/functions/clientWavEncoder.d.ts +8 -0
- package/packages/state-graph/dist/engine/functions/codeLinter.d.ts +23 -0
- package/packages/state-graph/dist/engine/functions/codeNodeParser/codeNodeParser.d.ts +38 -0
- package/packages/state-graph/dist/engine/functions/codeNodeParser/helpers.d.ts +18 -0
- package/packages/state-graph/dist/engine/functions/codeNodeParser/types.d.ts +26 -0
- package/packages/state-graph/dist/engine/functions/codeNodeParser.d.ts +75 -0
- package/packages/state-graph/dist/engine/functions/componentSocketRegistry.d.ts +13 -0
- package/packages/state-graph/dist/engine/functions/connection/portMatching.d.ts +7 -0
- package/packages/state-graph/dist/engine/functions/connection/signalCompatibility/helpers.d.ts +4 -0
- package/packages/state-graph/dist/engine/functions/connection/signalCompatibility/signalCompatibility.d.ts +3 -0
- package/packages/state-graph/dist/engine/functions/connection/signalCompatibility/types.d.ts +6 -0
- package/packages/state-graph/dist/engine/functions/connection/signalCompatibility.d.ts +7 -0
- package/packages/state-graph/dist/engine/functions/connection/wireValidation.d.ts +11 -0
- package/packages/state-graph/dist/engine/functions/containerClipSync.d.ts +7 -0
- package/packages/state-graph/dist/engine/functions/containerFactory/containerFactory.d.ts +10 -0
- package/packages/state-graph/dist/engine/functions/containerFactory/helpers.d.ts +6 -0
- package/packages/state-graph/dist/engine/functions/containerFactory/types.d.ts +1 -0
- package/packages/state-graph/dist/engine/functions/containerFactory.d.ts +24 -0
- package/packages/state-graph/dist/engine/functions/effectLogic.d.ts +19 -0
- package/packages/state-graph/dist/engine/functions/graphManager/graphManager.d.ts +31 -0
- package/packages/state-graph/dist/engine/functions/graphManager/helpers.d.ts +12 -0
- package/packages/state-graph/dist/engine/functions/graphManager/types.d.ts +25 -0
- package/packages/state-graph/dist/engine/functions/graphManager.d.ts +74 -0
- package/packages/state-graph/dist/engine/functions/midiDeviceRegistry.d.ts +23 -0
- package/packages/state-graph/dist/engine/functions/musicTheory.d.ts +5 -0
- package/packages/state-graph/dist/engine/functions/nodeFactory/controlNodes.d.ts +2 -0
- package/packages/state-graph/dist/engine/functions/nodeFactory/effectNodes.d.ts +2 -0
- package/packages/state-graph/dist/engine/functions/nodeFactory/moduleNodes.d.ts +17 -0
- package/packages/state-graph/dist/engine/functions/nodeFactory/nodeFactory.d.ts +8 -0
- package/packages/state-graph/dist/engine/functions/nodeFactory/primitiveNodes.d.ts +7 -0
- package/packages/state-graph/dist/engine/functions/nodeFactory/routingNodes.d.ts +4 -0
- package/packages/state-graph/dist/engine/functions/nodeFactory/triggerNodes.d.ts +3 -0
- package/packages/state-graph/dist/engine/functions/nodeFactory.d.ts +90 -0
- package/packages/state-graph/dist/engine/functions/nodePerformanceTracker.d.ts +21 -0
- package/packages/state-graph/dist/engine/functions/quantizeLogic.d.ts +5 -0
- package/packages/state-graph/dist/engine/functions/rotaryGeometry.d.ts +6 -0
- package/packages/state-graph/dist/engine/functions/sampleContainerExtractor.d.ts +19 -0
- package/packages/state-graph/dist/engine/functions/signalTable/audioMidiSignals.d.ts +3 -0
- package/packages/state-graph/dist/engine/functions/signalTable/canonicalEffectsTable.d.ts +2 -0
- package/packages/state-graph/dist/engine/functions/signalTable/dataSignals.d.ts +3 -0
- package/packages/state-graph/dist/engine/functions/signalTable/types.d.ts +20 -0
- package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner/helpers.d.ts +3 -0
- package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner/socketCompatibilitySpawner.d.ts +13 -0
- package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner/types.d.ts +23 -0
- package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner.d.ts +40 -0
- package/packages/state-graph/dist/engine/functions/spawnNodeFactory.d.ts +2 -0
- package/packages/state-graph/dist/engine/functions/spawningMechanism.d.ts +42 -0
- package/packages/state-graph/dist/engine/functions/triggerLogic.d.ts +15 -0
- package/packages/state-graph/dist/engine/functions/universalConnectionEngine.d.ts +3 -0
- package/packages/state-graph/dist/engine/index.d.ts +49 -0
- package/packages/state-graph/dist/engine/predictive/index.d.ts +3 -0
- package/packages/state-graph/dist/engine/predictive/predictiveGraphEngine/helpers.d.ts +1 -0
- package/packages/state-graph/dist/engine/predictive/predictiveGraphEngine/predictiveGraphEngine.d.ts +6 -0
- package/packages/state-graph/dist/engine/predictive/predictiveGraphEngine.d.ts +2 -0
- package/packages/state-graph/dist/engine/predictive/solidifyExecution.d.ts +13 -0
- package/packages/state-graph/dist/engine/predictive/types.d.ts +41 -0
- package/packages/state-graph/dist/engine/types/audio.d.ts +114 -0
- package/packages/state-graph/dist/engine/types/auth.d.ts +75 -0
- package/packages/state-graph/dist/engine/types/effects.d.ts +100 -0
- package/packages/state-graph/dist/engine/types/hardwareBus.d.ts +72 -0
- package/packages/state-graph/dist/engine/types/index.d.ts +4 -0
- package/packages/state-graph/dist/engine/types/legacyTypes.d.ts +1216 -0
- package/packages/state-graph/dist/engine/types/nodesArrangement.d.ts +62 -0
- package/packages/state-graph/dist/engine/types/nodesAudio.d.ts +85 -0
- package/packages/state-graph/dist/engine/types/nodesControl.d.ts +119 -0
- package/packages/state-graph/dist/engine/types/nodesPlayback.d.ts +110 -0
- package/packages/state-graph/dist/engine/types/nodesPrimitives.d.ts +121 -0
- package/packages/state-graph/dist/engine/types/nodesRouting.d.ts +71 -0
- package/packages/state-graph/dist/engine/types/sceneData.d.ts +58 -0
- package/packages/state-graph/dist/engine/types/sceneState.d.ts +84 -0
- package/packages/state-graph/dist/engine/types/signals.d.ts +112 -0
- package/packages/state-graph/dist/engine/types/storage.d.ts +93 -0
- package/packages/state-graph/dist/engine/types/stripsTypes.d.ts +12 -0
- package/packages/state-graph/dist/event-streams-DRE6QVD6.js +940 -0
- package/packages/state-graph/dist/index.d.ts +34 -3308
- package/packages/state-graph/dist/index.js +26 -26
- package/packages/state-graph/dist/loadSso-M3ZIZDGO.js +586 -0
- package/packages/state-graph/dist/management/GroupSettingsResolver.d.ts +5 -0
- package/packages/state-graph/dist/management/LandmarkManager.d.ts +15 -0
- package/packages/state-graph/dist/management/ViewEngine.d.ts +24 -0
- package/packages/state-graph/dist/management/ViewWindowManager.d.ts +27 -0
- package/packages/state-graph/dist/management/index.d.ts +4 -0
- package/packages/state-graph/dist/multipart-parser-YYFFJ4QD.js +371 -0
- package/packages/state-graph/dist/{CompatibilityMatrix-TiEJ3j3_.d.ts → rules/CompatibilityMatrix.d.ts} +5 -8
- package/packages/state-graph/dist/rules/ConnectionRuleStore.d.ts +52 -0
- package/packages/state-graph/dist/rules/DefaultRules.d.ts +1 -0
- package/packages/state-graph/dist/rules/HandleTypeRegistry.d.ts +14 -0
- package/packages/state-graph/dist/rules/WireTypeRegistry.d.ts +15 -0
- package/packages/state-graph/dist/rules/index.d.ts +5 -86
- package/packages/state-graph/dist/rules/index.js +1 -1
- package/packages/state-graph/dist/signin-YXALFRYB.js +831 -0
- package/packages/state-graph/dist/spatial/AttractionEngine.d.ts +5 -0
- package/packages/state-graph/dist/spatial/AutoSolidify.d.ts +6 -0
- package/packages/state-graph/dist/spatial/SpatialEngine.d.ts +7 -0
- package/packages/state-graph/dist/spatial/TraceEngine.d.ts +15 -0
- package/packages/state-graph/dist/spatial/index.d.ts +8 -103
- package/packages/state-graph/dist/spatial/index.js +1 -1
- package/packages/state-graph/dist/spatial/magneticTypes.d.ts +15 -0
- package/packages/state-graph/dist/spatial/prediction/GhostInferenceEngine.d.ts +8 -0
- package/packages/state-graph/dist/spatial/prediction/GhostLayoutResolver.d.ts +8 -0
- package/packages/state-graph/dist/spatial/prediction/GhostTracePathBuilder.d.ts +8 -0
- package/packages/state-graph/dist/spatial/prediction/index.d.ts +4 -0
- package/packages/state-graph/dist/spatial/prediction/types.d.ts +52 -0
- package/packages/state-graph/dist/spatial/socketCoordinates.d.ts +32 -0
- package/packages/state-graph/dist/spatial/useMagneticTraces.d.ts +14 -0
- package/packages/state-graph/dist/src-2QCYQXYH.js +1396 -0
- package/packages/state-graph/dist/sso-oidc-NXFKRL6O.js +847 -0
- package/packages/state-graph/dist/state/LifecycleGraph.d.ts +19 -0
- package/packages/state-graph/dist/state/SkipoState.d.ts +32 -0
- package/packages/state-graph/dist/state/hooks.d.ts +9 -0
- package/packages/state-graph/dist/state/index.d.ts +6 -107
- package/packages/state-graph/dist/state/index.js +1 -1
- package/packages/state-graph/dist/state/types.d.ts +44 -0
- package/packages/state-graph/dist/store/CommandApi.d.ts +54 -0
- package/packages/state-graph/dist/store/GhostStore.d.ts +21 -0
- package/packages/state-graph/dist/store/GraphStore.d.ts +25 -0
- package/packages/state-graph/dist/store/index.d.ts +3 -159
- package/packages/state-graph/dist/store/index.js +1 -1
- package/packages/state-graph/dist/sts-MICPT37B.js +1253 -0
- package/packages/state-graph/dist/{transformers.node-HWHOAE4H.js → transformers.node-R6VHTGC2.js} +1 -1
- package/packages/state-graph/dist/types.d.ts +80 -0
- package/packages/state-graph/package.json +1 -1
- package/.krusbl-release-attestation.json +0 -8
- package/packages/backend/dist/BaseStorageAdapter-EUCSvJse.d.ts +0 -73
- package/packages/backend/dist/WebSocketTransport-CHmkJ0tj.d.ts +0 -362
- package/packages/backend/dist/chunk-KKRWZDMN.js +0 -237
- package/packages/backend/dist/chunk-RBQ4CW3T.js +0 -136
- package/packages/state-graph/dist/BaseGraph-Bd5F1NMP.d.ts +0 -98
- package/packages/state-graph/dist/BaseNode-DKpGXMy8.d.ts +0 -129
- package/packages/state-graph/dist/types-D5kQSa65.d.ts +0 -150
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SpaceNode, ContainerType, TriggerType, SignalKind, EffectType } from "../../types/index.js";
|
|
2
|
+
export type CompatibleNodeCategory = 'Containers' | 'Recorders & Players' | 'Instruments' | 'Audio Effects' | 'Inputs / Outputs' | 'Routing' | 'Controls' | 'Modules' | 'Triggers' | 'Data & Parameters';
|
|
3
|
+
export type NodeSpawnPayload = {
|
|
4
|
+
kind: 'container';
|
|
5
|
+
containerType: ContainerType;
|
|
6
|
+
audioFormat?: 'mono' | 'stereo';
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'recorder';
|
|
9
|
+
recorderType: 'audio_stereo' | 'audio_mono' | 'midi' | 'curve';
|
|
10
|
+
recordingMode?: 'standard' | 'retrospective';
|
|
11
|
+
} | {
|
|
12
|
+
kind: 'player';
|
|
13
|
+
playerType: 'audio_stereo' | 'audio_mono' | 'midi' | 'curve';
|
|
14
|
+
} | {
|
|
15
|
+
kind: 'sampler';
|
|
16
|
+
} | {
|
|
17
|
+
kind: 'audio_pads';
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'trigger';
|
|
20
|
+
triggerType: TriggerType;
|
|
21
|
+
} | {
|
|
22
|
+
kind: 'combiner';
|
|
23
|
+
signalType?: SignalKind;
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'multiplexer';
|
|
26
|
+
signalType?: SignalKind;
|
|
27
|
+
} | {
|
|
28
|
+
kind: 'converter';
|
|
29
|
+
converterType: 'stereo_to_mono' | 'mono_to_stereo';
|
|
30
|
+
} | {
|
|
31
|
+
kind: 'effect';
|
|
32
|
+
effectType: EffectType;
|
|
33
|
+
} | {
|
|
34
|
+
kind: 'module';
|
|
35
|
+
} | {
|
|
36
|
+
kind: 'control';
|
|
37
|
+
} | {
|
|
38
|
+
kind: 'primitive_string';
|
|
39
|
+
initialValue?: string;
|
|
40
|
+
} | {
|
|
41
|
+
kind: 'primitive_number';
|
|
42
|
+
initialValue?: number;
|
|
43
|
+
} | {
|
|
44
|
+
kind: 'primitive_boolean';
|
|
45
|
+
initialValue?: boolean;
|
|
46
|
+
} | {
|
|
47
|
+
kind: 'primitive_object';
|
|
48
|
+
initialValue?: Record<string, any>;
|
|
49
|
+
} | {
|
|
50
|
+
kind: 'folder_path';
|
|
51
|
+
scope?: any;
|
|
52
|
+
};
|
|
53
|
+
export interface NodeArchetypeDefinition {
|
|
54
|
+
id: string;
|
|
55
|
+
category: CompatibleNodeCategory;
|
|
56
|
+
label: string;
|
|
57
|
+
defaultDescription: string;
|
|
58
|
+
iconName: string;
|
|
59
|
+
spawnType: NodeSpawnPayload;
|
|
60
|
+
createPrototype: () => SpaceNode;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Master Registry of all Node Archetypes.
|
|
64
|
+
* Completely algorithmic and extensible for plugins, sub-graphs, and custom nodes.
|
|
65
|
+
*/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NodeMeshSetting } from "../../types/index.js";
|
|
2
|
+
export type RenderEngineMode = '3d' | '2d';
|
|
3
|
+
/**
|
|
4
|
+
* 2D Sprite Visual Specification for a Node Archetype
|
|
5
|
+
*/
|
|
6
|
+
export interface Node2DSpriteSetting {
|
|
7
|
+
spriteId: string;
|
|
8
|
+
spriteName: string;
|
|
9
|
+
category: 'container' | 'trigger' | 'effect' | 'io' | 'router' | 'module' | 'converter' | 'data';
|
|
10
|
+
subType: string;
|
|
11
|
+
iconName: string;
|
|
12
|
+
accentColor: string;
|
|
13
|
+
secondaryColor: string;
|
|
14
|
+
badgeText: string;
|
|
15
|
+
dimensions: {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
19
|
+
glowColor: string;
|
|
20
|
+
themeStyle: 'fantasy_rts' | 'sci_fi_matrix' | 'neo_brutalist';
|
|
21
|
+
description: string;
|
|
22
|
+
role: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Combined Pluggable Asset Definition for any Node
|
|
26
|
+
*/
|
|
27
|
+
export interface PluggableNodeAsset {
|
|
28
|
+
nodeType: string;
|
|
29
|
+
subType?: string;
|
|
30
|
+
name: string;
|
|
31
|
+
asset3D: NodeMeshSetting;
|
|
32
|
+
asset2D: Node2DSpriteSetting;
|
|
33
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file async.ts
|
|
3
|
+
* @description sleep, withTimeout, retry, pLimit, debounce, throttle, once, and memoize primitives.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Classic sleep/delay.
|
|
7
|
+
*/
|
|
8
|
+
export declare function sleep(ms: number): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Rejects if the task does not finish within ms.
|
|
11
|
+
*/
|
|
12
|
+
export declare function withTimeout<T>(promise: Promise<T>, ms: number, label?: string): Promise<T>;
|
|
13
|
+
/**
|
|
14
|
+
* Retries an async execution up to maxAttempts times.
|
|
15
|
+
*/
|
|
16
|
+
export declare function retry<T>(fn: () => Promise<T>, maxAttempts: number, delayMs?: number): Promise<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Limits concurrent async task execution.
|
|
19
|
+
*/
|
|
20
|
+
export declare function pLimit<T>(tasks: (() => Promise<T>)[], concurrency: number): Promise<T[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Debounces a function.
|
|
23
|
+
*/
|
|
24
|
+
export declare function debounce<T extends (...args: any[]) => any>(fn: T, ms: number): (...args: Parameters<T>) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Throttles a function.
|
|
27
|
+
*/
|
|
28
|
+
export declare function throttle<T extends (...args: any[]) => any>(fn: T, ms: number): (...args: Parameters<T>) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Wraps a function to run only once and cache its outcome.
|
|
31
|
+
*/
|
|
32
|
+
export declare function once<T extends (...args: any[]) => any>(fn: T): (...args: Parameters<T>) => ReturnType<T>;
|
|
33
|
+
/**
|
|
34
|
+
* Computational memoization cache helper.
|
|
35
|
+
*/
|
|
36
|
+
export declare function memoize<T extends (...args: any[]) => any>(fn: T, keyFn?: (...args: Parameters<T>) => string): (...args: Parameters<T>) => ReturnType<T>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Disposable, Logger, SkipoConfig } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* SkipoBase — Abstract foundation class for all Skipo components.
|
|
4
|
+
* Provides lifecycle management, logging, and unique identification.
|
|
5
|
+
* All @skipo/* classes should extend this.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class SkipoBase implements Disposable {
|
|
8
|
+
/** Unique instance identifier */
|
|
9
|
+
readonly instanceId: string;
|
|
10
|
+
/** Human-readable component name */
|
|
11
|
+
readonly name: string;
|
|
12
|
+
/** Logger instance */
|
|
13
|
+
protected readonly logger: Logger;
|
|
14
|
+
/** Whether this component has been initialized */
|
|
15
|
+
protected initialized: boolean;
|
|
16
|
+
/** Whether this component has been disposed */
|
|
17
|
+
protected disposed: boolean;
|
|
18
|
+
constructor(config?: SkipoConfig);
|
|
19
|
+
/** Initialize the component. Call before use. */
|
|
20
|
+
initialize(): Promise<void>;
|
|
21
|
+
/** Override to add custom initialization logic */
|
|
22
|
+
protected onInitialize(): Promise<void>;
|
|
23
|
+
/** Dispose the component and release resources */
|
|
24
|
+
dispose(): Promise<void>;
|
|
25
|
+
/** Override to add custom cleanup logic */
|
|
26
|
+
protected onDispose(): Promise<void>;
|
|
27
|
+
/** Guard: throws if not initialized */
|
|
28
|
+
protected ensureInitialized(): void;
|
|
29
|
+
/** Guard: throws if already disposed */
|
|
30
|
+
protected ensureNotDisposed(): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file cache.ts
|
|
3
|
+
* @description LRU cache, TTL cache, Stale-While-Revalidate, and File-system persistent caching.
|
|
4
|
+
*/
|
|
5
|
+
export declare class LRUCache<K, V> {
|
|
6
|
+
private maxSize;
|
|
7
|
+
private cache;
|
|
8
|
+
constructor(maxSize: number);
|
|
9
|
+
get(key: K): V | undefined;
|
|
10
|
+
set(key: K, value: V): void;
|
|
11
|
+
delete(key: K): boolean;
|
|
12
|
+
clear(): void;
|
|
13
|
+
size(): number;
|
|
14
|
+
}
|
|
15
|
+
export declare class TTLCache<K, V> {
|
|
16
|
+
private ttlMs;
|
|
17
|
+
private cache;
|
|
18
|
+
constructor(ttlMs: number);
|
|
19
|
+
get(key: K): V | null;
|
|
20
|
+
set(key: K, value: V): void;
|
|
21
|
+
delete(key: K): boolean;
|
|
22
|
+
clear(): void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Stale-While-Revalidate utility.
|
|
26
|
+
*/
|
|
27
|
+
export declare function swr<K, V>(cache: TTLCache<K, V>, key: K, fetchFn: () => Promise<V>): Promise<V>;
|
|
28
|
+
export declare class FileCache<T> {
|
|
29
|
+
private cacheDir;
|
|
30
|
+
constructor(cacheDir: string);
|
|
31
|
+
private getFilePath;
|
|
32
|
+
get(key: string): T | null;
|
|
33
|
+
set(key: string, value: T): void;
|
|
34
|
+
delete(key: string): void;
|
|
35
|
+
clear(): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CanonicalAudioEndpointState } from "./types";
|
|
2
|
+
export declare class CanonicalAudioInputEndpoint {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
channel: number;
|
|
6
|
+
gain: number;
|
|
7
|
+
isMuted: boolean;
|
|
8
|
+
connected: boolean;
|
|
9
|
+
level: number;
|
|
10
|
+
peak: number;
|
|
11
|
+
rms: number;
|
|
12
|
+
sampleCount: number;
|
|
13
|
+
readonly noiseFloor: number;
|
|
14
|
+
audioNode: AudioNode | null;
|
|
15
|
+
analyser: AnalyserNode | null;
|
|
16
|
+
private cachedTimeData;
|
|
17
|
+
private cachedFreqData;
|
|
18
|
+
private listeners;
|
|
19
|
+
constructor(id: string, name: string, channel?: number);
|
|
20
|
+
subscribe(fn: (state: CanonicalAudioEndpointState) => void): () => void;
|
|
21
|
+
getState(): CanonicalAudioEndpointState;
|
|
22
|
+
processAudioBuffer(buffer: Float32Array): void;
|
|
23
|
+
sampleFromAnalyser(): void;
|
|
24
|
+
setConnected(connected: boolean): void;
|
|
25
|
+
setGain(gain: number): void;
|
|
26
|
+
setMuted(muted: boolean): void;
|
|
27
|
+
private notify;
|
|
28
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CanonicalMidiEndpointState, MidiEventPayload } from "./types";
|
|
2
|
+
export declare class CanonicalMidiInputEndpoint {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
connected: boolean;
|
|
6
|
+
active: boolean;
|
|
7
|
+
currentNote: number | null;
|
|
8
|
+
currentNoteName: string | null;
|
|
9
|
+
velocity: number;
|
|
10
|
+
activeNotes: Set<number>;
|
|
11
|
+
lastEventTimestamp: number;
|
|
12
|
+
private noteHistory;
|
|
13
|
+
private listeners;
|
|
14
|
+
private eventListeners;
|
|
15
|
+
constructor(id: string, name: string);
|
|
16
|
+
subscribe(fn: (state: CanonicalMidiEndpointState) => void): () => void;
|
|
17
|
+
addEventListener(fn: (evt: MidiEventPayload) => void): () => void;
|
|
18
|
+
getState(): CanonicalMidiEndpointState;
|
|
19
|
+
handleMidiEvent(evt: MidiEventPayload): void;
|
|
20
|
+
setConnected(connected: boolean): void;
|
|
21
|
+
private notify;
|
|
22
|
+
}
|
|
23
|
+
export declare function configureCanonicalMidiBridge(midiManagerInstance: any): void;
|
|
24
|
+
export declare function getCanonicalMidiBridge(): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DebugTraceEntry, MidiEventPayload } from "./types";
|
|
2
|
+
import { CanonicalAudioInputEndpoint } from "./CanonicalAudioInputEndpoint";
|
|
3
|
+
import { CanonicalMidiInputEndpoint } from "./CanonicalMidiInputEndpoint";
|
|
4
|
+
export * from "./types";
|
|
5
|
+
export { CanonicalAudioInputEndpoint } from "./CanonicalAudioInputEndpoint";
|
|
6
|
+
export { CanonicalMidiInputEndpoint } from "./CanonicalMidiInputEndpoint";
|
|
7
|
+
export declare class TopLevelIoRegistry {
|
|
8
|
+
private audioEndpoints;
|
|
9
|
+
private midiEndpoints;
|
|
10
|
+
private registryListeners;
|
|
11
|
+
debugTraceLog: DebugTraceEntry[];
|
|
12
|
+
constructor();
|
|
13
|
+
private initDefaultEndpoints;
|
|
14
|
+
subscribeRegistry(fn: () => void): () => void;
|
|
15
|
+
notifyRegistry(): void;
|
|
16
|
+
getOrCreateAudioEndpoint(id: string, name: string, channel?: number): CanonicalAudioInputEndpoint;
|
|
17
|
+
getAudioEndpoint(id: string): CanonicalAudioInputEndpoint | undefined;
|
|
18
|
+
getAllAudioEndpoints(): CanonicalAudioInputEndpoint[];
|
|
19
|
+
getOrCreateMidiEndpoint(id: string, name: string): CanonicalMidiInputEndpoint;
|
|
20
|
+
getMidiEndpoint(id: string): CanonicalMidiInputEndpoint | undefined;
|
|
21
|
+
getAllMidiEndpoints(): CanonicalMidiInputEndpoint[];
|
|
22
|
+
/**
|
|
23
|
+
* Dispatches a canonical MIDI event from device adapter into matching endpoints.
|
|
24
|
+
*/
|
|
25
|
+
dispatchMidiEvent(evt: MidiEventPayload): void;
|
|
26
|
+
logTrace(category: 'AUDIO' | 'MIDI', stage: string, data: Record<string, any>, assertionsPassed?: boolean): void;
|
|
27
|
+
clearTraceLog(): void;
|
|
28
|
+
}
|
|
29
|
+
export declare const topLevelIoRegistry: TopLevelIoRegistry;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { midiToNoteName } from '../../functions/musicTheory';
|
|
2
|
+
export { midiToNoteName };
|
|
3
|
+
export interface MidiEventPayload {
|
|
4
|
+
type?: string;
|
|
5
|
+
command?: string;
|
|
6
|
+
note: number;
|
|
7
|
+
noteName?: string;
|
|
8
|
+
velocity?: number;
|
|
9
|
+
channel?: number;
|
|
10
|
+
timestamp?: number;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export interface DebugTraceEntry {
|
|
14
|
+
category: 'AUDIO' | 'MIDI';
|
|
15
|
+
stage: string;
|
|
16
|
+
timestamp: number;
|
|
17
|
+
data: Record<string, any>;
|
|
18
|
+
assertionsPassed: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface CanonicalAudioEndpointState {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
channel: number;
|
|
24
|
+
gain: number;
|
|
25
|
+
isMuted: boolean;
|
|
26
|
+
connected: boolean;
|
|
27
|
+
level: number;
|
|
28
|
+
peak: number;
|
|
29
|
+
rms: number;
|
|
30
|
+
sampleCount: number;
|
|
31
|
+
noiseFloor: number;
|
|
32
|
+
}
|
|
33
|
+
export interface CanonicalMidiEndpointState {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
connected: boolean;
|
|
37
|
+
active: boolean;
|
|
38
|
+
currentNote: number | null;
|
|
39
|
+
currentNoteName: string | null;
|
|
40
|
+
velocity: number;
|
|
41
|
+
activeNotes: Set<number>;
|
|
42
|
+
lastEventTimestamp: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Calculates audio meter level according to canonical formula:
|
|
46
|
+
* peak := max(|sample|)
|
|
47
|
+
* rms := sqrt(mean(sample²))
|
|
48
|
+
* meterLevel := weightedBlend(peak, rms)
|
|
49
|
+
*/
|
|
50
|
+
export declare function calculateAudioMeterLevel(peak: number, rms: number, gain?: number): number;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ControlElement, SpaceNode, NodeConnection } from "../types/index.js";
|
|
2
|
+
export declare function configureControlDispatcher(engines: {
|
|
3
|
+
synthEngine?: any;
|
|
4
|
+
sequencerEngine?: any;
|
|
5
|
+
audioClipEngine?: any;
|
|
6
|
+
}): void;
|
|
7
|
+
export interface DispatchFeedback {
|
|
8
|
+
timestamp: number;
|
|
9
|
+
elementId: string;
|
|
10
|
+
payloadType: string;
|
|
11
|
+
summary: string;
|
|
12
|
+
}
|
|
13
|
+
type FeedbackListener = (feedback: DispatchFeedback) => void;
|
|
14
|
+
declare class ControlDispatcher {
|
|
15
|
+
private feedbackListeners;
|
|
16
|
+
addFeedbackListener(fn: FeedbackListener): () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Main dispatch entry point called whenever a user interacts with a ControlElement.
|
|
19
|
+
* Modulations affect graph node parameters and exposed socket targets.
|
|
20
|
+
* External hardware transmissions are strictly restricted to the Output Strip.
|
|
21
|
+
*/
|
|
22
|
+
dispatchElementPayload(element: ControlElement, value: number | string | boolean | [number, number], context: {
|
|
23
|
+
nodes: SpaceNode[];
|
|
24
|
+
connections: NodeConnection[];
|
|
25
|
+
onUpdateNodes?: (nodes: SpaceNode[]) => void;
|
|
26
|
+
onTriggerNode?: (nodeId: string) => void;
|
|
27
|
+
}): DispatchFeedback;
|
|
28
|
+
private notifyFeedback;
|
|
29
|
+
}
|
|
30
|
+
export declare const controlDispatcher: ControlDispatcher;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file env.ts
|
|
3
|
+
* @description Type-safe environment loading and config validation tool.
|
|
4
|
+
*/
|
|
5
|
+
import type { ZodTypeAny } from "zod";
|
|
6
|
+
/**
|
|
7
|
+
* Reads a process environment variable with type coercion and defaults.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getEnv<T>(key: string, defaultValue?: T): T;
|
|
10
|
+
/**
|
|
11
|
+
* Asserts environment variable is set and returns its string value.
|
|
12
|
+
*/
|
|
13
|
+
export declare function requireEnv(key: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Loads a .env file and injects variables into process.env.
|
|
16
|
+
*/
|
|
17
|
+
export declare function loadEnv(filePath?: string): void;
|
|
18
|
+
/**
|
|
19
|
+
* Validates the entire config using a Zod schema.
|
|
20
|
+
*/
|
|
21
|
+
export declare function validateEnvSchema<T extends ZodTypeAny>(zodSchema: T): T['_output'];
|
|
22
|
+
/**
|
|
23
|
+
* Checks if a connection string is a placeholder or template value.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isPlaceholderConnection(url?: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Sanitizes a database URL, returning undefined if it is empty or a placeholder.
|
|
28
|
+
*/
|
|
29
|
+
export declare function sanitizeDatabaseUrl(url?: string): string | undefined;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file events.ts
|
|
3
|
+
* @description Skipo Universal Real-Time Event Bus. Facilitates real-time event broadcasting and streaming.
|
|
4
|
+
*/
|
|
5
|
+
export interface RealtimeWorkspaceEvent {
|
|
6
|
+
id: string;
|
|
7
|
+
timestamp: number;
|
|
8
|
+
userId?: string;
|
|
9
|
+
workspaceId?: string;
|
|
10
|
+
source: 'api' | 'ui';
|
|
11
|
+
method?: string;
|
|
12
|
+
endpoint?: string;
|
|
13
|
+
action: 'DOCUMENT_CREATED' | 'DOCUMENT_UPDATED' | 'DOCUMENT_DELETED' | 'CATEGORY_CREATED' | 'CATEGORY_UPDATED' | 'CATEGORY_DELETED' | 'GRAPH_UPDATED' | 'BIOME_CHANGED' | 'WORKSPACE_UPDATED' | 'WORKSPACE_SWITCHED' | 'GENERIC_ACTION' | string;
|
|
14
|
+
details?: string;
|
|
15
|
+
payload?: any;
|
|
16
|
+
}
|
|
17
|
+
export type EventListener = (event: RealtimeWorkspaceEvent) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Publish a new event to all active real-time subscribers and store in buffer.
|
|
20
|
+
*/
|
|
21
|
+
export declare function publishRealtimeEvent(eventInput: Omit<RealtimeWorkspaceEvent, 'id' | 'timestamp'> & {
|
|
22
|
+
id?: string;
|
|
23
|
+
timestamp?: number;
|
|
24
|
+
}): RealtimeWorkspaceEvent;
|
|
25
|
+
/**
|
|
26
|
+
* Subscribe to real-time events. Returns an unsubscribe function.
|
|
27
|
+
*/
|
|
28
|
+
export declare function subscribeRealtimeEvents(listener: EventListener): () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve recent events since a specified timestamp, optionally filtered by workspaceId or userId.
|
|
31
|
+
*/
|
|
32
|
+
export declare function getRecentEvents(sinceTimestamp?: number, workspaceId?: string, userId?: string): RealtimeWorkspaceEvent[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SpaceNode, ExposedSocketReference } from "../types/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves all sockets from every node in the project graph,
|
|
4
|
+
* identifying which sockets are marked as 'Exposed' for Control Panels.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getAllProjectSockets(nodes: SpaceNode[]): {
|
|
7
|
+
inputs: ExposedSocketReference[];
|
|
8
|
+
outputs: ExposedSocketReference[];
|
|
9
|
+
exposedList: ExposedSocketReference[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Toggles socket exposure state on a target node.
|
|
13
|
+
*/
|
|
14
|
+
export declare function toggleNodeSocketExposure(nodes: SpaceNode[], nodeId: string, socketId: string, direction: 'input' | 'output'): SpaceNode[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file fs.ts
|
|
3
|
+
* @description Robust cross-platform filesystem abstraction layer.
|
|
4
|
+
*/
|
|
5
|
+
import fs from "fs";
|
|
6
|
+
export declare function readFile(filePath: string, encoding?: BufferEncoding): Promise<string>;
|
|
7
|
+
export declare function writeFile(filePath: string, content: string | Buffer): Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Atomic file writing via temp files.
|
|
10
|
+
*/
|
|
11
|
+
export declare function writeFileAtomic(filePath: string, content: string | Buffer): Promise<void>;
|
|
12
|
+
export declare function appendFile(filePath: string, content: string | Buffer): Promise<void>;
|
|
13
|
+
export declare function deleteFile(filePath: string): Promise<void>;
|
|
14
|
+
export declare function fileExists(filePath: string): Promise<boolean>;
|
|
15
|
+
export declare function getFileStat(filePath: string): Promise<{
|
|
16
|
+
size: number;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
modifiedAt: Date;
|
|
19
|
+
isDir: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
export declare function readJSON<T>(filePath: string): Promise<T | null>;
|
|
22
|
+
export declare function writeJSON(filePath: string, data: unknown, indent?: number): Promise<void>;
|
|
23
|
+
export declare function updateJSON<T>(filePath: string, patch: Partial<T>): Promise<T>;
|
|
24
|
+
export declare function ensureDir(dirPath: string): Promise<void>;
|
|
25
|
+
export declare function deleteDir(dirPath: string, recursive?: boolean): Promise<void>;
|
|
26
|
+
export declare function listDir(dirPath: string): Promise<string[]>;
|
|
27
|
+
export declare function walkDir(dirPath: string, filter?: (file: string) => boolean): AsyncIterable<string>;
|
|
28
|
+
export declare function dirExists(dirPath: string): Promise<boolean>;
|
|
29
|
+
export declare function copyDir(src: string, dest: string): Promise<void>;
|
|
30
|
+
export declare function firstExisting(candidates: string[]): Promise<string | null>;
|
|
31
|
+
export declare function watchFile(filePath: string, handler: (event: string) => void, debounceMs?: number): fs.FSWatcher;
|
|
32
|
+
export declare function watchDir(dirPath: string, handler: (event: string, filename: string | null) => void, debounceMs?: number): fs.FSWatcher;
|
|
33
|
+
export declare function createTempFile(prefix?: string): string;
|
|
34
|
+
export declare function createTempDir(prefix?: string): string;
|
|
35
|
+
export declare function withTempDir<T>(fn: (tempDir: string) => Promise<T>, prefix?: string): Promise<T>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { SpaceNode, NodeConnection } from "../types/index.js";
|
|
2
|
+
import { Node2DSpriteSetting } from './nodeAssetRegistry';
|
|
3
|
+
export interface GraphNodePayload {
|
|
4
|
+
node: SpaceNode;
|
|
5
|
+
sprite2D: Node2DSpriteSetting;
|
|
6
|
+
connectedInputCount: number;
|
|
7
|
+
connectedOutputCount: number;
|
|
8
|
+
}
|
|
9
|
+
export interface GraphSnapshot {
|
|
10
|
+
nodes: SpaceNode[];
|
|
11
|
+
connections: NodeConnection[];
|
|
12
|
+
meta: {
|
|
13
|
+
nodeCount: number;
|
|
14
|
+
wireCount: number;
|
|
15
|
+
isValid: boolean;
|
|
16
|
+
timestamp: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Universal Graph Service:
|
|
21
|
+
* Decouples graph business logic, signal routing validation, and spatial coordinates
|
|
22
|
+
* from rendering layers (3D Qwnsr vs 2D Sprite Canvas).
|
|
23
|
+
*/
|
|
24
|
+
export declare class GraphDataService {
|
|
25
|
+
/**
|
|
26
|
+
* Fetches enriched node payloads with pluggable 2D sprite descriptors.
|
|
27
|
+
*/
|
|
28
|
+
static getEnrichedNodes(nodes: SpaceNode[], connections: NodeConnection[]): GraphNodePayload[];
|
|
29
|
+
/**
|
|
30
|
+
* Resolves 2D canvas coordinates from 3D world coordinates.
|
|
31
|
+
* In 3D space: [X, Y (elevation), Z (depth)] -> In 2D plane: [X, Z] mapped to screen (x, y).
|
|
32
|
+
*/
|
|
33
|
+
static worldToCanvasCoords(worldPos: [number, number, number], pan: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
}, zoom: number, center: {
|
|
37
|
+
cx: number;
|
|
38
|
+
cy: number;
|
|
39
|
+
}, worldScale?: number): {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Resolves 3D world coordinates from 2D screen click coordinates.
|
|
45
|
+
*/
|
|
46
|
+
static canvasToWorldCoords(screenPos: {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
}, pan: {
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
}, zoom: number, center: {
|
|
53
|
+
cx: number;
|
|
54
|
+
cy: number;
|
|
55
|
+
}, worldScale?: number): [number, number, number];
|
|
56
|
+
/**
|
|
57
|
+
* Creates a standardized snapshot of the active graph.
|
|
58
|
+
*/
|
|
59
|
+
static createGraphSnapshot(nodes: SpaceNode[], connections: NodeConnection[]): GraphSnapshot;
|
|
60
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file graphDependencyValidator.ts
|
|
3
|
+
* @description Directed Acyclic Graph (DAG) validator for Graph Package imports.
|
|
4
|
+
* Detects self-imports and transitive circular import chains before committing dependencies.
|
|
5
|
+
*/
|
|
6
|
+
export interface GraphImportNode {
|
|
7
|
+
id: string;
|
|
8
|
+
importedGraphIds: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface ValidationResult {
|
|
11
|
+
valid: boolean;
|
|
12
|
+
error?: string;
|
|
13
|
+
cycleChain?: string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Validates whether adding an import from targetGraphId -> candidateImportId
|
|
17
|
+
* violates the acyclic invariant.
|
|
18
|
+
*
|
|
19
|
+
* @param existingGraphs Map of all graph packages and their existing import lists
|
|
20
|
+
* @param targetGraphId The graph that wishes to import candidateImportId
|
|
21
|
+
* @param candidateImportId The graph being imported
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateGraphImport(existingGraphs: Record<string, {
|
|
24
|
+
id: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
importedGraphIds?: string[];
|
|
27
|
+
}>, targetGraphId: string, candidateImportId: string): ValidationResult;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the full topological sort order of dependencies for a given graph.
|
|
30
|
+
*/
|
|
31
|
+
export declare function getTopologicalDependencyOrder(existingGraphs: Record<string, {
|
|
32
|
+
id: string;
|
|
33
|
+
importedGraphIds?: string[];
|
|
34
|
+
}>, rootGraphId: string): string[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file graphTypeSystem.ts
|
|
3
|
+
* @description Extensible Graph Type Classification System for Qwnsr Graph Packages.
|
|
4
|
+
* Provides over-defined, granular classifications with metadata and capabilities.
|
|
5
|
+
*/
|
|
6
|
+
export type GraphType = 'intro_motif' | 'arrangement' | 'song' | 'performance' | 'synth_patch' | 'fx_chain' | 'rhythm_beat' | 'generative' | 'live_set' | 'utility_macro' | 'custom';
|
|
7
|
+
export interface GraphTypeDefinition {
|
|
8
|
+
id: GraphType;
|
|
9
|
+
label: string;
|
|
10
|
+
category: 'Composition' | 'Performance' | 'Sound Design' | 'Utility' | 'Experimental';
|
|
11
|
+
description: string;
|
|
12
|
+
badgeColor: string;
|
|
13
|
+
badgeBg: string;
|
|
14
|
+
borderColor: string;
|
|
15
|
+
iconName: string;
|
|
16
|
+
defaultBpm: number;
|
|
17
|
+
recommendedNodes: string[];
|
|
18
|
+
}
|
|
19
|
+
export declare const GRAPH_TYPE_DEFINITIONS: Record<GraphType, GraphTypeDefinition>;
|
|
20
|
+
export declare const ALL_GRAPH_TYPES: GraphType[];
|
|
21
|
+
export declare function getGraphTypeDefinition(type: string | undefined): GraphTypeDefinition;
|