@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
|
@@ -1,346 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
workflowInputs?: Record<string, string>;
|
|
15
|
-
cwd?: string;
|
|
16
|
-
env?: Record<string, string>;
|
|
17
|
-
sourceSha?: string;
|
|
18
|
-
}
|
|
19
|
-
interface DevelopmentDiagnostic {
|
|
20
|
-
severity: 'error' | 'warning' | 'info';
|
|
21
|
-
source: 'typescript' | 'eslint' | 'bundler' | 'package-manager' | 'runtime' | 'unknown';
|
|
22
|
-
code?: string;
|
|
23
|
-
file?: string;
|
|
24
|
-
line?: number;
|
|
25
|
-
column?: number;
|
|
26
|
-
message: string;
|
|
27
|
-
}
|
|
28
|
-
interface DevelopmentResult {
|
|
29
|
-
provider: DevelopmentProvider;
|
|
30
|
-
task: DevelopmentTask;
|
|
31
|
-
ok: boolean;
|
|
32
|
-
exitCode?: number;
|
|
33
|
-
output?: string;
|
|
34
|
-
command?: string;
|
|
35
|
-
durationMs?: number;
|
|
36
|
-
diagnostics?: DevelopmentDiagnostic[];
|
|
37
|
-
sourceSha?: string;
|
|
38
|
-
runId?: number;
|
|
39
|
-
url?: string;
|
|
40
|
-
}
|
|
41
|
-
interface WebContainerCommand {
|
|
42
|
-
command: string;
|
|
43
|
-
args: string[];
|
|
44
|
-
}
|
|
45
|
-
interface DevelopmentServiceContract {
|
|
46
|
-
definition: ServiceDefinition;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface GitHubActionsConfig {
|
|
50
|
-
token: string;
|
|
51
|
-
apiBaseUrl?: string;
|
|
52
|
-
fetchImpl?: typeof fetch;
|
|
53
|
-
}
|
|
54
|
-
interface WorkflowRun {
|
|
55
|
-
id: number;
|
|
56
|
-
name?: string;
|
|
57
|
-
status?: string;
|
|
58
|
-
conclusion?: string | null;
|
|
59
|
-
html_url?: string;
|
|
60
|
-
}
|
|
61
|
-
declare class GitHubActionsClient {
|
|
62
|
-
private readonly config;
|
|
63
|
-
private readonly baseUrl;
|
|
64
|
-
private readonly fetchImpl;
|
|
65
|
-
constructor(config: GitHubActionsConfig);
|
|
66
|
-
private request;
|
|
67
|
-
listWorkflowRuns(repository: string, workflowId?: string | number, branch?: string): Promise<{
|
|
68
|
-
workflow_runs: WorkflowRun[];
|
|
69
|
-
}>;
|
|
70
|
-
getWorkflowRun(repository: string, runId: number): Promise<WorkflowRun>;
|
|
71
|
-
getWorkflowJobs(repository: string, runId: number): Promise<{
|
|
72
|
-
jobs: Array<{
|
|
73
|
-
id: number;
|
|
74
|
-
name: string;
|
|
75
|
-
status: string;
|
|
76
|
-
conclusion?: string | null;
|
|
77
|
-
}>;
|
|
78
|
-
}>;
|
|
79
|
-
getJobLogs(repository: string, jobId: number): Promise<string>;
|
|
80
|
-
listArtifacts(repository: string, runId?: number): Promise<{
|
|
81
|
-
artifacts: Array<{
|
|
82
|
-
id: number;
|
|
83
|
-
name: string;
|
|
84
|
-
expired: boolean;
|
|
85
|
-
}>;
|
|
86
|
-
}>;
|
|
87
|
-
dispatchWorkflow(repository: string, workflowId: string | number, ref: string, inputs?: Record<string, string>): Promise<void>;
|
|
88
|
-
rerunWorkflow(repository: string, runId: number): Promise<void>;
|
|
89
|
-
rerunFailedJobs(repository: string, runId: number): Promise<void>;
|
|
90
|
-
cancelWorkflow(repository: string, runId: number): Promise<void>;
|
|
91
|
-
}
|
|
92
|
-
declare const GitHubActionsServiceDefinition: ServiceDefinition;
|
|
93
|
-
declare const GitHubActionsServiceFacade: {
|
|
94
|
-
id: string;
|
|
95
|
-
name: string;
|
|
96
|
-
version: string;
|
|
97
|
-
runtime: "server";
|
|
98
|
-
deployment: "remote";
|
|
99
|
-
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
100
|
-
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
101
|
-
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
declare function resolveWebContainerCommand(task: DevelopmentTask): WebContainerCommand;
|
|
105
|
-
declare function parseDevelopmentDiagnostics(output: string, exitCode?: number): DevelopmentDiagnostic[];
|
|
106
|
-
declare function captureDevelopmentProcess<T extends {
|
|
107
|
-
output: ReadableStream<string>;
|
|
108
|
-
exit: Promise<number>;
|
|
109
|
-
}>(process: T): T & {
|
|
110
|
-
output: ReadableStream<string>;
|
|
111
|
-
logs: Promise<{
|
|
112
|
-
output: string;
|
|
113
|
-
exitCode: number;
|
|
114
|
-
diagnostics: DevelopmentDiagnostic[];
|
|
115
|
-
}>;
|
|
116
|
-
};
|
|
117
|
-
interface WebContainerRunCommandInput {
|
|
118
|
-
command: string;
|
|
119
|
-
args?: string[];
|
|
120
|
-
cwd?: string;
|
|
121
|
-
env?: Record<string, string | number | boolean>;
|
|
122
|
-
sourceSha?: string;
|
|
123
|
-
}
|
|
124
|
-
declare class WebContainerRuntime {
|
|
125
|
-
boot(): Promise<any>;
|
|
126
|
-
mount(files: Record<string, unknown>, mountPoint?: string, sourceSha?: string): Promise<{
|
|
127
|
-
mounted: boolean;
|
|
128
|
-
mountPoint: string;
|
|
129
|
-
sourceSha: string;
|
|
130
|
-
}>;
|
|
131
|
-
private runProcess;
|
|
132
|
-
run(task: DevelopmentTask, cwd?: string, env?: Record<string, string>, sourceSha?: string): Promise<{
|
|
133
|
-
exitCode: any;
|
|
134
|
-
output: string;
|
|
135
|
-
command: string;
|
|
136
|
-
durationMs: number;
|
|
137
|
-
diagnostics: DevelopmentDiagnostic[];
|
|
138
|
-
sourceSha: string;
|
|
139
|
-
}>;
|
|
140
|
-
runCommand(command: string, args?: string[], cwd?: string, env?: Record<string, string | number | boolean>, sourceSha?: string): Promise<{
|
|
141
|
-
exitCode: any;
|
|
142
|
-
output: string;
|
|
143
|
-
command: string;
|
|
144
|
-
durationMs: number;
|
|
145
|
-
diagnostics: DevelopmentDiagnostic[];
|
|
146
|
-
sourceSha: string;
|
|
147
|
-
}>;
|
|
148
|
-
spawnCommand(command: string, args?: string[], cwd?: string, env?: Record<string, string | number | boolean>, sourceSha?: string): Promise<{
|
|
149
|
-
processId: `${string}-${string}-${string}-${string}-${string}`;
|
|
150
|
-
sourceSha: string;
|
|
151
|
-
command: string;
|
|
152
|
-
startedAt: string;
|
|
153
|
-
process: any;
|
|
154
|
-
}>;
|
|
155
|
-
teardown(mountPoint?: string): Promise<{
|
|
156
|
-
tornDown: boolean;
|
|
157
|
-
mountPoint: string;
|
|
158
|
-
}>;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
declare const WebContainerServiceDefinition: ServiceDefinition;
|
|
162
|
-
declare const WebContainerServiceFacade: {
|
|
163
|
-
id: string;
|
|
164
|
-
name: string;
|
|
165
|
-
version: string;
|
|
166
|
-
runtime: "client";
|
|
167
|
-
deployment: "local";
|
|
168
|
-
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
169
|
-
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
170
|
-
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
declare function resolveDevelopmentCommand(task: DevelopmentRequest['task']): [string, string[]];
|
|
174
|
-
declare const DevelopmentServiceDefinition: ServiceDefinition;
|
|
175
|
-
declare class DevelopmentRuntime {
|
|
176
|
-
private readonly webContainer;
|
|
177
|
-
private readonly githubActions?;
|
|
178
|
-
constructor(webContainer?: WebContainerRuntime, githubActions?: GitHubActionsClient);
|
|
179
|
-
run(request: DevelopmentRequest): Promise<DevelopmentResult>;
|
|
180
|
-
}
|
|
181
|
-
declare const DevelopmentServiceFacade: {
|
|
182
|
-
id: string;
|
|
183
|
-
name: string;
|
|
184
|
-
version: string;
|
|
185
|
-
runtime: "server";
|
|
186
|
-
deployment: "local";
|
|
187
|
-
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
188
|
-
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
189
|
-
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
type ValidationLayer = 'syntax' | 'lint' | 'test' | 'build' | 'krnl' | 'frnl' | 'lockfile-check' | 'law-l9';
|
|
193
|
-
interface CodeValidationInput {
|
|
194
|
-
layers?: ValidationLayer[];
|
|
195
|
-
cwd?: string;
|
|
196
|
-
env?: Record<string, string>;
|
|
197
|
-
maxLines?: number;
|
|
198
|
-
files?: Record<string, unknown>;
|
|
199
|
-
install?: boolean;
|
|
200
|
-
}
|
|
201
|
-
interface ValidationDiagnostic {
|
|
202
|
-
layer: ValidationLayer;
|
|
203
|
-
ok: boolean;
|
|
204
|
-
exitCode: number;
|
|
205
|
-
output: string;
|
|
206
|
-
command: string;
|
|
207
|
-
}
|
|
208
|
-
interface CodeValidationResult {
|
|
209
|
-
ok: boolean;
|
|
210
|
-
diagnostics: ValidationDiagnostic[];
|
|
211
|
-
failedLayers: ValidationLayer[];
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
declare class CodeValidationRuntime {
|
|
215
|
-
private readonly runtime;
|
|
216
|
-
constructor(runtime?: WebContainerRuntime);
|
|
217
|
-
validate(input?: CodeValidationInput): Promise<CodeValidationResult>;
|
|
218
|
-
private validateLawL9;
|
|
219
|
-
}
|
|
220
|
-
declare const CodeValidationServiceDefinition: ServiceDefinition;
|
|
221
|
-
declare const CodeValidationServiceFacade: {
|
|
222
|
-
id: string;
|
|
223
|
-
name: string;
|
|
224
|
-
version: string;
|
|
225
|
-
runtime: "client";
|
|
226
|
-
deployment: "local";
|
|
227
|
-
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
228
|
-
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
229
|
-
execute: <TIn = CodeValidationInput, TOut = CodeValidationResult>(op: string, input?: TIn) => Promise<TOut>;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
interface CodeDiagnosticsInput {
|
|
233
|
-
cwd?: string;
|
|
234
|
-
file?: string;
|
|
235
|
-
}
|
|
236
|
-
interface CodeDiagnosticsResult {
|
|
237
|
-
ok: boolean;
|
|
238
|
-
output: string;
|
|
239
|
-
command: string;
|
|
240
|
-
}
|
|
241
|
-
declare class CodeDiagnosticsService {
|
|
242
|
-
private readonly runtime;
|
|
243
|
-
constructor(runtime?: WebContainerRuntime);
|
|
244
|
-
diagnostics(input?: CodeDiagnosticsInput): Promise<CodeDiagnosticsResult>;
|
|
245
|
-
}
|
|
246
|
-
declare const codeDiagnosticsService: CodeDiagnosticsService;
|
|
247
|
-
|
|
248
|
-
interface TypeScriptLanguageServerStartInput {
|
|
249
|
-
cwd?: string;
|
|
250
|
-
install?: boolean;
|
|
251
|
-
version?: string;
|
|
252
|
-
}
|
|
253
|
-
interface TypeScriptLanguageServerRequestInput {
|
|
254
|
-
id: number | string;
|
|
255
|
-
method: string;
|
|
256
|
-
params?: unknown;
|
|
257
|
-
}
|
|
258
|
-
interface TypeScriptLanguageServerNotificationInput {
|
|
259
|
-
method: string;
|
|
260
|
-
params?: unknown;
|
|
261
|
-
}
|
|
262
|
-
interface TypeScriptLanguageServerResponse {
|
|
263
|
-
jsonrpc: '2.0';
|
|
264
|
-
id?: number | string | null;
|
|
265
|
-
result?: unknown;
|
|
266
|
-
error?: {
|
|
267
|
-
code: number;
|
|
268
|
-
message: string;
|
|
269
|
-
data?: unknown;
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
interface TypeScriptLanguageServerStatus {
|
|
273
|
-
running: boolean;
|
|
274
|
-
cwd?: string;
|
|
275
|
-
package: string;
|
|
276
|
-
version: string;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
declare const TYPESCRIPT_LANGUAGE_SERVER_PACKAGE = "typescript-language-server";
|
|
280
|
-
declare const TYPESCRIPT_LANGUAGE_SERVER_VERSION = "6.0.2";
|
|
281
|
-
declare const TypeScriptLanguageServerServiceDefinition: ServiceDefinition;
|
|
282
|
-
declare const TypeScriptLanguageServerServiceFacade: {
|
|
283
|
-
id: string;
|
|
284
|
-
name: string;
|
|
285
|
-
version: string;
|
|
286
|
-
runtime: "client";
|
|
287
|
-
deployment: "local";
|
|
288
|
-
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
289
|
-
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
290
|
-
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
type AgentHarnessProvider = 'deepseek' | 'openai' | 'google';
|
|
294
|
-
interface AgentHarnessRunInput {
|
|
295
|
-
provider: AgentHarnessProvider;
|
|
296
|
-
prompt: string;
|
|
297
|
-
cwd?: string;
|
|
298
|
-
profile?: string;
|
|
299
|
-
timeoutMs?: number;
|
|
300
|
-
env?: Record<string, string>;
|
|
301
|
-
}
|
|
302
|
-
interface AgentHarnessResult {
|
|
303
|
-
provider: AgentHarnessProvider;
|
|
304
|
-
ok: boolean;
|
|
305
|
-
exitCode: number;
|
|
306
|
-
output: string;
|
|
307
|
-
durationMs: number;
|
|
308
|
-
command?: string;
|
|
309
|
-
}
|
|
310
|
-
interface AgentHarnessProviderInfo {
|
|
311
|
-
id: AgentHarnessProvider;
|
|
312
|
-
name: string;
|
|
313
|
-
package: string;
|
|
314
|
-
capabilities: string[];
|
|
315
|
-
implemented: boolean;
|
|
316
|
-
}
|
|
317
|
-
interface AgentHarnessServiceContract {
|
|
318
|
-
providers(): AgentHarnessProviderInfo[];
|
|
319
|
-
run(input: AgentHarnessRunInput): Promise<AgentHarnessResult>;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
declare class AgentHarnessRuntime {
|
|
323
|
-
private readonly runtime;
|
|
324
|
-
constructor(runtime?: WebContainerRuntime);
|
|
325
|
-
providers(): {
|
|
326
|
-
capabilities: string[];
|
|
327
|
-
id: AgentHarnessProvider;
|
|
328
|
-
name: string;
|
|
329
|
-
package: string;
|
|
330
|
-
implemented: boolean;
|
|
331
|
-
}[];
|
|
332
|
-
run(input: AgentHarnessRunInput): Promise<AgentHarnessResult>;
|
|
333
|
-
}
|
|
334
|
-
declare const AgentHarnessServiceDefinition: ServiceDefinition;
|
|
335
|
-
declare const AgentHarnessServiceFacade: {
|
|
336
|
-
id: string;
|
|
337
|
-
name: string;
|
|
338
|
-
version: string;
|
|
339
|
-
runtime: "client";
|
|
340
|
-
deployment: "local";
|
|
341
|
-
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
342
|
-
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
343
|
-
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
export { type AgentHarnessProvider, type AgentHarnessProviderInfo, type AgentHarnessResult, type AgentHarnessRunInput, AgentHarnessRuntime, type AgentHarnessServiceContract, AgentHarnessServiceDefinition, AgentHarnessServiceFacade, type CodeDiagnosticsInput, type CodeDiagnosticsResult, CodeDiagnosticsService, type CodeValidationInput, type CodeValidationResult, CodeValidationRuntime, CodeValidationServiceDefinition, CodeValidationServiceFacade, type DevelopmentDiagnostic, type DevelopmentProvider, type DevelopmentRequest, type DevelopmentResult, DevelopmentRuntime, type DevelopmentServiceContract, DevelopmentServiceDefinition, DevelopmentServiceFacade, type DevelopmentTask, GitHubActionsClient, type GitHubActionsConfig, GitHubActionsServiceDefinition, GitHubActionsServiceFacade, TYPESCRIPT_LANGUAGE_SERVER_PACKAGE, TYPESCRIPT_LANGUAGE_SERVER_VERSION, type TypeScriptLanguageServerNotificationInput, type TypeScriptLanguageServerRequestInput, type TypeScriptLanguageServerResponse, TypeScriptLanguageServerServiceDefinition, TypeScriptLanguageServerServiceFacade, type TypeScriptLanguageServerStartInput, type TypeScriptLanguageServerStatus, type ValidationDiagnostic, type ValidationLayer, type WebContainerCommand, type WebContainerRunCommandInput, WebContainerRuntime, WebContainerServiceDefinition, WebContainerServiceFacade, type WorkflowRun, captureDevelopmentProcess, codeDiagnosticsService, parseDevelopmentDiagnostics, resolveDevelopmentCommand, resolveWebContainerCommand };
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './githubActionsService.js';
|
|
3
|
+
export * from './webContainerService.js';
|
|
4
|
+
export * from './developmentService.js';
|
|
5
|
+
export * from './codeValidationTypes.js';
|
|
6
|
+
export * from './codeValidationService.js';
|
|
7
|
+
export * from './codeDiagnosticsService.js';
|
|
8
|
+
export * from './typescriptLanguageServerTypes.js';
|
|
9
|
+
export * from './typescriptLanguageServerService.js';
|
|
10
|
+
export * from './agentHarnessTypes.js';
|
|
11
|
+
export * from './agentHarnessService.js';
|
|
12
|
+
export * from './playwrightInspectionTypes.js';
|
|
13
|
+
export * from './playwrightInspectionService.js';
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import "../chunk-YEGS4HTA.js";
|
|
2
|
+
import {
|
|
3
|
+
WebContainerServiceDefinition,
|
|
4
|
+
WebContainerServiceFacade
|
|
5
|
+
} from "../chunk-GKQ42CYW.js";
|
|
6
|
+
import {
|
|
7
|
+
WebContainerRuntime,
|
|
8
|
+
captureDevelopmentProcess,
|
|
9
|
+
parseDevelopmentDiagnostics,
|
|
10
|
+
resolveWebContainerCommand
|
|
11
|
+
} from "../chunk-CA5HVC4X.js";
|
|
2
12
|
import {
|
|
3
13
|
PlaywrightInspectionRuntime,
|
|
4
14
|
PlaywrightInspectionServiceDefinition,
|
|
@@ -104,189 +114,6 @@ var GitHubActionsServiceFacade = {
|
|
|
104
114
|
}
|
|
105
115
|
};
|
|
106
116
|
|
|
107
|
-
// src/development/webContainerRuntime.ts
|
|
108
|
-
var COMMANDS = {
|
|
109
|
-
install: { command: "pnpm", args: ["install", "--frozen-lockfile"] },
|
|
110
|
-
lint: { command: "pnpm", args: ["lint"] },
|
|
111
|
-
test: { command: "pnpm", args: ["test"] },
|
|
112
|
-
build: { command: "pnpm", args: ["build"] },
|
|
113
|
-
validate: { command: "pnpm", args: ["validate"] },
|
|
114
|
-
check: { command: "pnpm", args: ["lint"] }
|
|
115
|
-
};
|
|
116
|
-
function resolveWebContainerCommand(task) {
|
|
117
|
-
const command = COMMANDS[task];
|
|
118
|
-
return { command: command.command, args: [...command.args] };
|
|
119
|
-
}
|
|
120
|
-
function parseDevelopmentDiagnostics(output, exitCode = 0) {
|
|
121
|
-
const diagnostics = [];
|
|
122
|
-
const seen = /* @__PURE__ */ new Set();
|
|
123
|
-
const add = (diagnostic) => {
|
|
124
|
-
const key = [diagnostic.source, diagnostic.code, diagnostic.file, diagnostic.line, diagnostic.message].join("|");
|
|
125
|
-
if (!seen.has(key)) {
|
|
126
|
-
seen.add(key);
|
|
127
|
-
diagnostics.push(diagnostic);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
for (const line of output.split(/\r?\n/)) {
|
|
131
|
-
const typescript = line.match(/^(.+?)\((\d+),(\d+)\):\s*(error|warning)\s+(TS\d+):\s*(.+)$/);
|
|
132
|
-
if (typescript) {
|
|
133
|
-
add({ source: "typescript", severity: typescript[4], file: typescript[1], line: Number(typescript[2]), column: Number(typescript[3]), code: typescript[5], message: typescript[6] });
|
|
134
|
-
continue;
|
|
135
|
-
}
|
|
136
|
-
const eslint = line.match(/^(.+?):(\d+):(\d+)\s+(error|warning)\s+(.+?)\s+([^\s]+)$/);
|
|
137
|
-
if (eslint) {
|
|
138
|
-
add({ source: "eslint", severity: eslint[4], file: eslint[1], line: Number(eslint[2]), column: Number(eslint[3]), code: eslint[6], message: eslint[5] });
|
|
139
|
-
continue;
|
|
140
|
-
}
|
|
141
|
-
const bundler = line.match(/(?:✘|×|ERROR|error:|Error:)\s*(.+)$/);
|
|
142
|
-
if (bundler) add({ source: "bundler", severity: "error", message: bundler[1].trim() });
|
|
143
|
-
if (/\bWARN(?:ING)?\b/i.test(line)) add({ source: "package-manager", severity: "warning", message: line.trim() });
|
|
144
|
-
}
|
|
145
|
-
if (exitCode !== 0 && diagnostics.every((item) => item.severity !== "error")) {
|
|
146
|
-
add({ source: "unknown", severity: "error", message: "Command failed with exit code " + exitCode + "; inspect captured output for details." });
|
|
147
|
-
}
|
|
148
|
-
return diagnostics;
|
|
149
|
-
}
|
|
150
|
-
function captureDevelopmentProcess(process) {
|
|
151
|
-
const [consumerOutput, diagnosticOutput] = process.output.tee();
|
|
152
|
-
const logs = (async () => {
|
|
153
|
-
const reader = diagnosticOutput.getReader();
|
|
154
|
-
let output = "";
|
|
155
|
-
try {
|
|
156
|
-
while (true) {
|
|
157
|
-
const next = await reader.read();
|
|
158
|
-
if (next.done) break;
|
|
159
|
-
output += next.value;
|
|
160
|
-
}
|
|
161
|
-
} finally {
|
|
162
|
-
reader.releaseLock();
|
|
163
|
-
}
|
|
164
|
-
const exitCode = await process.exit;
|
|
165
|
-
return { output, exitCode, diagnostics: parseDevelopmentDiagnostics(output, exitCode) };
|
|
166
|
-
})();
|
|
167
|
-
return { ...process, output: consumerOutput, logs };
|
|
168
|
-
}
|
|
169
|
-
var runQueue = Promise.resolve();
|
|
170
|
-
var sharedContainer = null;
|
|
171
|
-
var sharedContainerPromise = null;
|
|
172
|
-
var WebContainerRuntime = class {
|
|
173
|
-
async boot() {
|
|
174
|
-
if (typeof window !== "undefined" && !window.crossOriginIsolated) {
|
|
175
|
-
throw new Error("WebContainer requires a cross-origin-isolated page. Ensure COOP=same-origin and COEP=require-corp are served.");
|
|
176
|
-
}
|
|
177
|
-
if (sharedContainer) return sharedContainer;
|
|
178
|
-
if (!sharedContainerPromise) {
|
|
179
|
-
sharedContainerPromise = import("@webcontainer/api").then(async (module) => {
|
|
180
|
-
const container = await module.WebContainer.boot({ coep: "require-corp", workdirName: "kloks-development" });
|
|
181
|
-
sharedContainer = container;
|
|
182
|
-
return container;
|
|
183
|
-
}).catch((error) => {
|
|
184
|
-
sharedContainerPromise = null;
|
|
185
|
-
throw error;
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
return sharedContainerPromise;
|
|
189
|
-
}
|
|
190
|
-
async mount(files, mountPoint = "/", sourceSha) {
|
|
191
|
-
const container = await this.boot();
|
|
192
|
-
await container.mount(files, mountPoint === "/" ? void 0 : { mountPoint });
|
|
193
|
-
return { mounted: true, mountPoint, sourceSha };
|
|
194
|
-
}
|
|
195
|
-
async runProcess(command, args, cwd, env, sourceSha) {
|
|
196
|
-
const container = await this.boot();
|
|
197
|
-
const process = await container.spawn(command, args, { cwd, env });
|
|
198
|
-
const started = Date.now();
|
|
199
|
-
let output = "";
|
|
200
|
-
const reader = process.output.getReader();
|
|
201
|
-
try {
|
|
202
|
-
while (true) {
|
|
203
|
-
const next = await reader.read();
|
|
204
|
-
if (next.done) break;
|
|
205
|
-
output += next.value;
|
|
206
|
-
}
|
|
207
|
-
} finally {
|
|
208
|
-
reader.releaseLock();
|
|
209
|
-
}
|
|
210
|
-
const exitCode = await process.exit;
|
|
211
|
-
return {
|
|
212
|
-
exitCode,
|
|
213
|
-
output,
|
|
214
|
-
command: [command, ...args].join(" "),
|
|
215
|
-
durationMs: Date.now() - started,
|
|
216
|
-
diagnostics: parseDevelopmentDiagnostics(output, exitCode),
|
|
217
|
-
sourceSha
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
async run(task, cwd, env, sourceSha) {
|
|
221
|
-
const spec = resolveWebContainerCommand(task);
|
|
222
|
-
return this.runCommand(spec.command, spec.args, cwd, env, sourceSha);
|
|
223
|
-
}
|
|
224
|
-
async runCommand(command, args = [], cwd, env, sourceSha) {
|
|
225
|
-
const previous = runQueue;
|
|
226
|
-
let release;
|
|
227
|
-
runQueue = new Promise((resolve) => {
|
|
228
|
-
release = resolve;
|
|
229
|
-
});
|
|
230
|
-
await previous;
|
|
231
|
-
try {
|
|
232
|
-
return await this.runProcess(command, args, cwd, env, sourceSha);
|
|
233
|
-
} finally {
|
|
234
|
-
release();
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
async spawnCommand(command, args = [], cwd, env, sourceSha) {
|
|
238
|
-
const container = await this.boot();
|
|
239
|
-
const process = await container.spawn(command, args, { cwd, env });
|
|
240
|
-
return { processId: globalThis.crypto.randomUUID(), sourceSha, command: [command, ...args].join(" "), startedAt: (/* @__PURE__ */ new Date()).toISOString(), process: captureDevelopmentProcess(process) };
|
|
241
|
-
}
|
|
242
|
-
async teardown(mountPoint) {
|
|
243
|
-
const container = sharedContainer;
|
|
244
|
-
if (!container) return { tornDown: true, mountPoint };
|
|
245
|
-
if (mountPoint && mountPoint !== "/") {
|
|
246
|
-
await container.fs.rm(mountPoint, { recursive: true, force: true });
|
|
247
|
-
return { tornDown: true, mountPoint };
|
|
248
|
-
}
|
|
249
|
-
sharedContainer = null;
|
|
250
|
-
sharedContainerPromise = null;
|
|
251
|
-
await container.teardown();
|
|
252
|
-
return { tornDown: true, mountPoint: "/" };
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
// src/development/webContainerService.ts
|
|
257
|
-
var runtime = new WebContainerRuntime();
|
|
258
|
-
var WebContainerServiceDefinition = createServiceDefinition({
|
|
259
|
-
id: "kloks.backend.webContainer",
|
|
260
|
-
name: "WebContainerService",
|
|
261
|
-
version: "1.3.0",
|
|
262
|
-
operations: {
|
|
263
|
-
boot: { id: "WebContainerService.boot", name: "boot", handler: async () => {
|
|
264
|
-
await runtime.boot();
|
|
265
|
-
return { ready: true };
|
|
266
|
-
} },
|
|
267
|
-
mount: { id: "WebContainerService.mount", name: "mount", handler: async (input) => runtime.mount(input.files, input.mountPoint, input.sourceSha) },
|
|
268
|
-
run: { id: "WebContainerService.run", name: "run", handler: async (input) => runtime.run(input.task, input.cwd, input.env, input.sourceSha) },
|
|
269
|
-
runCommand: { id: "WebContainerService.runCommand", name: "runCommand", handler: async (input) => runtime.runCommand(input.command, input.args, input.cwd, input.env, input.sourceSha) },
|
|
270
|
-
spawnCommand: { id: "WebContainerService.spawnCommand", name: "spawnCommand", handler: async (input) => runtime.spawnCommand(input.command, input.args, input.cwd, input.env, input.sourceSha) },
|
|
271
|
-
teardown: { id: "WebContainerService.teardown", name: "teardown", handler: async (input) => runtime.teardown(input?.mountPoint) },
|
|
272
|
-
command: { id: "WebContainerService.command", name: "command", handler: async (input) => ({ task: input.task, command: resolveWebContainerCommand(input.task) }) }
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
var WebContainerServiceFacade = {
|
|
276
|
-
id: WebContainerServiceDefinition.id,
|
|
277
|
-
name: WebContainerServiceDefinition.name,
|
|
278
|
-
version: WebContainerServiceDefinition.version,
|
|
279
|
-
runtime: "client",
|
|
280
|
-
deployment: "local",
|
|
281
|
-
definition: WebContainerServiceDefinition,
|
|
282
|
-
createInstance: () => createService(WebContainerServiceDefinition),
|
|
283
|
-
execute: async (op, input) => {
|
|
284
|
-
const instance = createService(WebContainerServiceDefinition);
|
|
285
|
-
await instance.start();
|
|
286
|
-
return instance.call(op, input);
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
|
|
290
117
|
// src/development/developmentService.ts
|
|
291
118
|
function resolveDevelopmentCommand(task) {
|
|
292
119
|
const { command, args } = resolveWebContainerCommand(task);
|
|
@@ -357,7 +184,7 @@ var DevelopmentServiceFacade = {
|
|
|
357
184
|
};
|
|
358
185
|
|
|
359
186
|
// src/development/codeValidationService.ts
|
|
360
|
-
var
|
|
187
|
+
var COMMANDS = {
|
|
361
188
|
syntax: { command: "pnpm", args: ["exec", "tsc", "--noEmit"] },
|
|
362
189
|
lint: { command: "pnpm", args: ["run", "lint", "--if-present"] },
|
|
363
190
|
test: { command: "pnpm", args: ["run", "test", "--if-present"] },
|
|
@@ -369,8 +196,8 @@ var COMMANDS2 = {
|
|
|
369
196
|
var DEFAULT_LAYERS = ["lockfile-check", "syntax", "lint", "krnl", "frnl"];
|
|
370
197
|
var commandText = (command, args) => [command, ...args].join(" ");
|
|
371
198
|
var CodeValidationRuntime = class {
|
|
372
|
-
constructor(
|
|
373
|
-
this.runtime =
|
|
199
|
+
constructor(runtime4 = new WebContainerRuntime()) {
|
|
200
|
+
this.runtime = runtime4;
|
|
374
201
|
}
|
|
375
202
|
runtime;
|
|
376
203
|
async validate(input = {}) {
|
|
@@ -387,7 +214,7 @@ var CodeValidationRuntime = class {
|
|
|
387
214
|
diagnostics.push(await this.validateLawL9(input.cwd, input.maxLines ?? 200));
|
|
388
215
|
continue;
|
|
389
216
|
}
|
|
390
|
-
const spec =
|
|
217
|
+
const spec = COMMANDS[layer];
|
|
391
218
|
const result = await this.runtime.runCommand(spec.command, spec.args, input.cwd, input.env);
|
|
392
219
|
diagnostics.push({ layer, ok: result.exitCode === 0, exitCode: result.exitCode, output: result.output, command: commandText(spec.command, spec.args) });
|
|
393
220
|
if (result.exitCode !== 0) break;
|
|
@@ -400,12 +227,12 @@ var CodeValidationRuntime = class {
|
|
|
400
227
|
return { layer: "law-l9", ok: result.exitCode === 0, exitCode: result.exitCode, output: result.output, command: script };
|
|
401
228
|
}
|
|
402
229
|
};
|
|
403
|
-
var
|
|
230
|
+
var runtime = new CodeValidationRuntime();
|
|
404
231
|
var CodeValidationServiceDefinition = createServiceDefinition({
|
|
405
232
|
id: "kloks.backend.codeValidation",
|
|
406
233
|
name: "CodeValidationService",
|
|
407
234
|
version: "1.1.0",
|
|
408
|
-
operations: { validate: { id: "CodeValidationService.validate", name: "validate", handler: async (input) =>
|
|
235
|
+
operations: { validate: { id: "CodeValidationService.validate", name: "validate", handler: async (input) => runtime.validate(input) } }
|
|
409
236
|
});
|
|
410
237
|
var CodeValidationServiceFacade = {
|
|
411
238
|
id: CodeValidationServiceDefinition.id,
|
|
@@ -424,8 +251,8 @@ var CodeValidationServiceFacade = {
|
|
|
424
251
|
|
|
425
252
|
// src/development/codeDiagnosticsService.ts
|
|
426
253
|
var CodeDiagnosticsService = class {
|
|
427
|
-
constructor(
|
|
428
|
-
this.runtime =
|
|
254
|
+
constructor(runtime4 = new WebContainerRuntime()) {
|
|
255
|
+
this.runtime = runtime4;
|
|
429
256
|
}
|
|
430
257
|
runtime;
|
|
431
258
|
async diagnostics(input = {}) {
|
|
@@ -443,8 +270,8 @@ var TYPESCRIPT_LANGUAGE_SERVER_VERSION = "6.0.2";
|
|
|
443
270
|
var PACKAGE = TYPESCRIPT_LANGUAGE_SERVER_PACKAGE;
|
|
444
271
|
var DEFAULT_VERSION = TYPESCRIPT_LANGUAGE_SERVER_VERSION;
|
|
445
272
|
var TypeScriptLanguageServerRuntime = class {
|
|
446
|
-
constructor(
|
|
447
|
-
this.runtime =
|
|
273
|
+
constructor(runtime4 = new WebContainerRuntime()) {
|
|
274
|
+
this.runtime = runtime4;
|
|
448
275
|
}
|
|
449
276
|
runtime;
|
|
450
277
|
process = null;
|
|
@@ -542,17 +369,17 @@ var TypeScriptLanguageServerRuntime = class {
|
|
|
542
369
|
}
|
|
543
370
|
}
|
|
544
371
|
};
|
|
545
|
-
var
|
|
372
|
+
var runtime2 = new TypeScriptLanguageServerRuntime();
|
|
546
373
|
var TypeScriptLanguageServerServiceDefinition = createServiceDefinition({
|
|
547
374
|
id: "kloks.backend.typescriptLanguageServer",
|
|
548
375
|
name: "TypeScriptLanguageServerService",
|
|
549
376
|
version: "1.0.0",
|
|
550
377
|
operations: {
|
|
551
|
-
start: { id: "TypeScriptLanguageServerService.start", name: "start", handler: async (input) =>
|
|
552
|
-
request: { id: "TypeScriptLanguageServerService.request", name: "request", handler: async (input) =>
|
|
553
|
-
notify: { id: "TypeScriptLanguageServerService.notify", name: "notify", handler: async (input) =>
|
|
554
|
-
stop: { id: "TypeScriptLanguageServerService.stop", name: "stop", handler: async () =>
|
|
555
|
-
status: { id: "TypeScriptLanguageServerService.status", name: "status", handler: async () =>
|
|
378
|
+
start: { id: "TypeScriptLanguageServerService.start", name: "start", handler: async (input) => runtime2.start(input) },
|
|
379
|
+
request: { id: "TypeScriptLanguageServerService.request", name: "request", handler: async (input) => runtime2.request(input) },
|
|
380
|
+
notify: { id: "TypeScriptLanguageServerService.notify", name: "notify", handler: async (input) => runtime2.notify(input) },
|
|
381
|
+
stop: { id: "TypeScriptLanguageServerService.stop", name: "stop", handler: async () => runtime2.stop() },
|
|
382
|
+
status: { id: "TypeScriptLanguageServerService.status", name: "status", handler: async () => runtime2.status() }
|
|
556
383
|
}
|
|
557
384
|
});
|
|
558
385
|
var TypeScriptLanguageServerServiceFacade = {
|
|
@@ -595,8 +422,8 @@ var PROVIDERS = [
|
|
|
595
422
|
}
|
|
596
423
|
];
|
|
597
424
|
var AgentHarnessRuntime = class {
|
|
598
|
-
constructor(
|
|
599
|
-
this.runtime =
|
|
425
|
+
constructor(runtime4 = new WebContainerRuntime()) {
|
|
426
|
+
this.runtime = runtime4;
|
|
600
427
|
}
|
|
601
428
|
runtime;
|
|
602
429
|
providers() {
|
|
@@ -623,7 +450,7 @@ var AgentHarnessRuntime = class {
|
|
|
623
450
|
};
|
|
624
451
|
}
|
|
625
452
|
};
|
|
626
|
-
var
|
|
453
|
+
var runtime3 = new AgentHarnessRuntime();
|
|
627
454
|
var AgentHarnessServiceDefinition = createServiceDefinition({
|
|
628
455
|
id: "kloks.backend.agentHarness",
|
|
629
456
|
name: "AgentHarnessService",
|
|
@@ -632,12 +459,12 @@ var AgentHarnessServiceDefinition = createServiceDefinition({
|
|
|
632
459
|
providers: {
|
|
633
460
|
id: "AgentHarnessService.providers",
|
|
634
461
|
name: "providers",
|
|
635
|
-
handler: async () =>
|
|
462
|
+
handler: async () => runtime3.providers()
|
|
636
463
|
},
|
|
637
464
|
run: {
|
|
638
465
|
id: "AgentHarnessService.run",
|
|
639
466
|
name: "run",
|
|
640
|
-
handler: async (input) =>
|
|
467
|
+
handler: async (input) => runtime3.run(input)
|
|
641
468
|
}
|
|
642
469
|
}
|
|
643
470
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|