@ultrst-armada/kloks 1.25.1 → 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 +2 -5
- 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-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 -237
- 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 -2
- package/packages/backend/dist/development/webContainerService.d.ts +6 -9
- 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 +2 -10
- package/packages/functions/dist/bowser-F6LIZBYW.js +2821 -0
- package/packages/functions/dist/chunk-34KJBG4F.js +357 -0
- package/packages/{services/dist/chunk-QGM4M3NI.js → functions/dist/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.js +17 -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/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/{functions/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/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/backend/dist/webContainerRuntime-BnHB2bNz.d.ts +0 -103
- 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,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file providers.ts
|
|
3
|
+
* @description Master metadata, color mappings, and lookup for supported AI Providers.
|
|
4
|
+
*/
|
|
5
|
+
import type { ProviderId, ProviderMeta } from './types.js';
|
|
6
|
+
export declare const PROVIDERS_META: Record<string, ProviderMeta>;
|
|
7
|
+
export declare const PROVIDER_COLORS: Record<string, string>;
|
|
8
|
+
export declare function getProviderMeta(providerId: ProviderId): ProviderMeta | undefined;
|
|
9
|
+
export declare function listProviders(): ProviderMeta[];
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @file types.ts
|
|
3
3
|
* @description Canonical AI Provider domain types for @ultrst-armada/kloks/backend
|
|
4
4
|
*/
|
|
5
|
-
type ProviderId = 'google' | 'groq' | 'cerebras' | 'openrouter' | 'together' | 'nvidia' | 'huggingface' | 'anthropic' | 'openai' | string;
|
|
6
|
-
interface ProviderCapabilities {
|
|
5
|
+
export type ProviderId = 'google' | 'groq' | 'cerebras' | 'openrouter' | 'together' | 'nvidia' | 'huggingface' | 'anthropic' | 'openai' | string;
|
|
6
|
+
export interface ProviderCapabilities {
|
|
7
7
|
supportsTools: boolean;
|
|
8
8
|
supportsVision: boolean;
|
|
9
9
|
supportsStreaming: boolean;
|
|
@@ -11,7 +11,7 @@ interface ProviderCapabilities {
|
|
|
11
11
|
supportsCreditsCheck: boolean;
|
|
12
12
|
maxContextWindow?: number;
|
|
13
13
|
}
|
|
14
|
-
interface ProviderMeta {
|
|
14
|
+
export interface ProviderMeta {
|
|
15
15
|
id: ProviderId;
|
|
16
16
|
name: string;
|
|
17
17
|
baseUrl: string;
|
|
@@ -22,12 +22,10 @@ interface ProviderMeta {
|
|
|
22
22
|
description: string;
|
|
23
23
|
capabilities?: Partial<ProviderCapabilities>;
|
|
24
24
|
}
|
|
25
|
-
interface AIProviderStatus {
|
|
25
|
+
export interface AIProviderStatus {
|
|
26
26
|
id: ProviderId;
|
|
27
27
|
isOnline: boolean;
|
|
28
28
|
latencyMs: number;
|
|
29
29
|
lastCheckedAt: string;
|
|
30
30
|
error?: string;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
export type { AIProviderStatus as A, ProviderId as P, ProviderCapabilities as a, ProviderMeta as b };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file failoverEngine.ts
|
|
3
|
+
* @description Resilient AI execution router with multi-candidate auto-failover
|
|
4
|
+
*/
|
|
5
|
+
import type { RouteCandidate, RouteExecutionResult, RetryPolicy } from './types.js';
|
|
6
|
+
export declare class FailoverExecutionEngine {
|
|
7
|
+
private defaultRetryPolicy;
|
|
8
|
+
executeWithFailover<T>(candidates: RouteCandidate[], executeCandidate: (candidate: RouteCandidate) => Promise<T>, policy?: Partial<RetryPolicy>): Promise<RouteExecutionResult<T>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const failoverExecutionEngine: FailoverExecutionEngine;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file healthCheckService.ts
|
|
3
|
+
* @description Periodic and on-demand route and provider health verification
|
|
4
|
+
*/
|
|
5
|
+
import type { ProviderId } from '../ai-provider/types.js';
|
|
6
|
+
export declare class HealthCheckService {
|
|
7
|
+
runRoutineCheck(): Promise<{
|
|
8
|
+
timestamp: string;
|
|
9
|
+
keysTotal: number;
|
|
10
|
+
keysValid: number;
|
|
11
|
+
modelsCatalogTotal: number;
|
|
12
|
+
status: 'healthy';
|
|
13
|
+
}>;
|
|
14
|
+
checkProvider(providerId: ProviderId, apiKey?: string): Promise<boolean>;
|
|
15
|
+
isRouteAvailable(providerId: ProviderId, modelId: string): boolean;
|
|
16
|
+
recordRouteFailure(providerId: ProviderId, modelId: string, error: string): void;
|
|
17
|
+
recordRouteSuccess(providerId: ProviderId, modelId: string, latencyMs: number): void;
|
|
18
|
+
}
|
|
19
|
+
export declare const healthCheckService: HealthCheckService;
|
|
@@ -1,117 +1,8 @@
|
|
|
1
|
-
import { P as ProviderId } from '../types-Di4ZAQYA.js';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* @file
|
|
5
|
-
* @description
|
|
2
|
+
* @file index.ts
|
|
3
|
+
* @description Public exports for @ultrst-armada/kloks/backend/ai-routing
|
|
6
4
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
weight?: number;
|
|
12
|
-
priority?: number;
|
|
13
|
-
}
|
|
14
|
-
type AIRoutingStrategy = 'priority-order' | 'lowest-latency' | 'weighted-random' | 'round-robin';
|
|
15
|
-
interface RetryPolicy {
|
|
16
|
-
maxRetries: number;
|
|
17
|
-
backoffMs: number;
|
|
18
|
-
retryableStatuses?: number[];
|
|
19
|
-
}
|
|
20
|
-
interface RouteExecutionResult<T = unknown> {
|
|
21
|
-
success: boolean;
|
|
22
|
-
selectedCandidate?: RouteCandidate;
|
|
23
|
-
attempts: number;
|
|
24
|
-
result?: T;
|
|
25
|
-
error?: string;
|
|
26
|
-
totalDurationMs: number;
|
|
27
|
-
failoverHistory: Array<{
|
|
28
|
-
candidate: RouteCandidate;
|
|
29
|
-
error: string;
|
|
30
|
-
durationMs: number;
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @file metricsLogger.ts
|
|
36
|
-
* @description Latency, throughput, and token usage metrics logger for AI operations
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
interface AIMetricRecord {
|
|
40
|
-
id: string;
|
|
41
|
-
timestamp: string;
|
|
42
|
-
providerId: ProviderId;
|
|
43
|
-
modelId: string;
|
|
44
|
-
durationMs: number;
|
|
45
|
-
success: boolean;
|
|
46
|
-
promptTokens?: number;
|
|
47
|
-
completionTokens?: number;
|
|
48
|
-
error?: string;
|
|
49
|
-
}
|
|
50
|
-
declare class MetricsLogger {
|
|
51
|
-
private records;
|
|
52
|
-
private readonly maxRecords;
|
|
53
|
-
logRequest(record: {
|
|
54
|
-
providerId: ProviderId;
|
|
55
|
-
modelId: string;
|
|
56
|
-
latencyMs: number;
|
|
57
|
-
status?: string;
|
|
58
|
-
clientIp?: string;
|
|
59
|
-
profileRequested?: unknown;
|
|
60
|
-
selectedModel?: string;
|
|
61
|
-
selectedProvider?: ProviderId;
|
|
62
|
-
selectedKeyId?: string;
|
|
63
|
-
tokensUsed?: number;
|
|
64
|
-
statusCode?: number;
|
|
65
|
-
failoverOccurred?: boolean;
|
|
66
|
-
failoverChain?: string[];
|
|
67
|
-
promptSnippet?: string;
|
|
68
|
-
responseSnippet?: string;
|
|
69
|
-
toolCalls?: unknown;
|
|
70
|
-
toolsProvided?: unknown;
|
|
71
|
-
}): void;
|
|
72
|
-
getLogs(limit?: number): AIMetricRecord[];
|
|
73
|
-
getMetricsSummary(): {
|
|
74
|
-
totalRequests: number;
|
|
75
|
-
successRatePercent: number;
|
|
76
|
-
averageLatencyMs: number;
|
|
77
|
-
totalFailovers: number;
|
|
78
|
-
};
|
|
79
|
-
log(record: Omit<AIMetricRecord, 'id' | 'timestamp'>): void;
|
|
80
|
-
getRecent(limit?: number): AIMetricRecord[];
|
|
81
|
-
getAverageLatency(providerId: ProviderId, modelId?: string): number;
|
|
82
|
-
getSuccessRate(providerId: ProviderId): number;
|
|
83
|
-
}
|
|
84
|
-
declare const metricsLogger: MetricsLogger;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @file healthCheckService.ts
|
|
88
|
-
* @description Periodic and on-demand route and provider health verification
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
declare class HealthCheckService {
|
|
92
|
-
runRoutineCheck(): Promise<{
|
|
93
|
-
timestamp: string;
|
|
94
|
-
keysTotal: number;
|
|
95
|
-
keysValid: number;
|
|
96
|
-
modelsCatalogTotal: number;
|
|
97
|
-
status: 'healthy';
|
|
98
|
-
}>;
|
|
99
|
-
checkProvider(providerId: ProviderId, apiKey?: string): Promise<boolean>;
|
|
100
|
-
isRouteAvailable(providerId: ProviderId, modelId: string): boolean;
|
|
101
|
-
recordRouteFailure(providerId: ProviderId, modelId: string, error: string): void;
|
|
102
|
-
recordRouteSuccess(providerId: ProviderId, modelId: string, latencyMs: number): void;
|
|
103
|
-
}
|
|
104
|
-
declare const healthCheckService: HealthCheckService;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @file failoverEngine.ts
|
|
108
|
-
* @description Resilient AI execution router with multi-candidate auto-failover
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
declare class FailoverExecutionEngine {
|
|
112
|
-
private defaultRetryPolicy;
|
|
113
|
-
executeWithFailover<T>(candidates: RouteCandidate[], executeCandidate: (candidate: RouteCandidate) => Promise<T>, policy?: Partial<RetryPolicy>): Promise<RouteExecutionResult<T>>;
|
|
114
|
-
}
|
|
115
|
-
declare const failoverExecutionEngine: FailoverExecutionEngine;
|
|
116
|
-
|
|
117
|
-
export { type AIMetricRecord, type AIRoutingStrategy, FailoverExecutionEngine, HealthCheckService, MetricsLogger, type RetryPolicy, type RouteCandidate, type RouteExecutionResult, failoverExecutionEngine, healthCheckService, metricsLogger };
|
|
5
|
+
export * from './types.js';
|
|
6
|
+
export * from './metricsLogger.js';
|
|
7
|
+
export * from './healthCheckService.js';
|
|
8
|
+
export * from './failoverEngine.js';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file metricsLogger.ts
|
|
3
|
+
* @description Latency, throughput, and token usage metrics logger for AI operations
|
|
4
|
+
*/
|
|
5
|
+
import type { ProviderId } from '../ai-provider/types.js';
|
|
6
|
+
export interface AIMetricRecord {
|
|
7
|
+
id: string;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
providerId: ProviderId;
|
|
10
|
+
modelId: string;
|
|
11
|
+
durationMs: number;
|
|
12
|
+
success: boolean;
|
|
13
|
+
promptTokens?: number;
|
|
14
|
+
completionTokens?: number;
|
|
15
|
+
error?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class MetricsLogger {
|
|
18
|
+
private records;
|
|
19
|
+
private readonly maxRecords;
|
|
20
|
+
logRequest(record: {
|
|
21
|
+
providerId: ProviderId;
|
|
22
|
+
modelId: string;
|
|
23
|
+
latencyMs: number;
|
|
24
|
+
status?: string;
|
|
25
|
+
clientIp?: string;
|
|
26
|
+
profileRequested?: unknown;
|
|
27
|
+
selectedModel?: string;
|
|
28
|
+
selectedProvider?: ProviderId;
|
|
29
|
+
selectedKeyId?: string;
|
|
30
|
+
tokensUsed?: number;
|
|
31
|
+
statusCode?: number;
|
|
32
|
+
failoverOccurred?: boolean;
|
|
33
|
+
failoverChain?: string[];
|
|
34
|
+
promptSnippet?: string;
|
|
35
|
+
responseSnippet?: string;
|
|
36
|
+
toolCalls?: unknown;
|
|
37
|
+
toolsProvided?: unknown;
|
|
38
|
+
}): void;
|
|
39
|
+
getLogs(limit?: number): AIMetricRecord[];
|
|
40
|
+
getMetricsSummary(): {
|
|
41
|
+
totalRequests: number;
|
|
42
|
+
successRatePercent: number;
|
|
43
|
+
averageLatencyMs: number;
|
|
44
|
+
totalFailovers: number;
|
|
45
|
+
};
|
|
46
|
+
log(record: Omit<AIMetricRecord, 'id' | 'timestamp'>): void;
|
|
47
|
+
getRecent(limit?: number): AIMetricRecord[];
|
|
48
|
+
getAverageLatency(providerId: ProviderId, modelId?: string): number;
|
|
49
|
+
getSuccessRate(providerId: ProviderId): number;
|
|
50
|
+
}
|
|
51
|
+
export declare const metricsLogger: MetricsLogger;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file types.ts
|
|
3
|
+
* @description Canonical AI Routing and Failover types for @ultrst-armada/kloks/backend
|
|
4
|
+
*/
|
|
5
|
+
import type { ProviderId } from '../ai-provider/types.js';
|
|
6
|
+
export interface RouteCandidate {
|
|
7
|
+
providerId: ProviderId;
|
|
8
|
+
modelId: string;
|
|
9
|
+
weight?: number;
|
|
10
|
+
priority?: number;
|
|
11
|
+
}
|
|
12
|
+
export type AIRoutingStrategy = 'priority-order' | 'lowest-latency' | 'weighted-random' | 'round-robin';
|
|
13
|
+
export interface RetryPolicy {
|
|
14
|
+
maxRetries: number;
|
|
15
|
+
backoffMs: number;
|
|
16
|
+
retryableStatuses?: number[];
|
|
17
|
+
}
|
|
18
|
+
export interface RouteExecutionResult<T = unknown> {
|
|
19
|
+
success: boolean;
|
|
20
|
+
selectedCandidate?: RouteCandidate;
|
|
21
|
+
attempts: number;
|
|
22
|
+
result?: T;
|
|
23
|
+
error?: string;
|
|
24
|
+
totalDurationMs: number;
|
|
25
|
+
failoverHistory: Array<{
|
|
26
|
+
candidate: RouteCandidate;
|
|
27
|
+
error: string;
|
|
28
|
+
durationMs: number;
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file ToolManagerService.ts
|
|
3
|
+
* @description General-purpose Tool Registry and Lifecycle Orchestrator
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPTool, ToolExecutionResult } from './types.js';
|
|
6
|
+
export declare class ToolManagerService {
|
|
7
|
+
registerTool(tool: MCPTool, handler?: (args: any) => Promise<any>): void;
|
|
8
|
+
listTools(): MCPTool[];
|
|
9
|
+
execute(toolName: string, args: Record<string, unknown>): Promise<ToolExecutionResult>;
|
|
10
|
+
}
|
|
11
|
+
export declare const toolManagerService: ToolManagerService;
|
|
@@ -1,82 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file
|
|
3
|
-
* @description
|
|
2
|
+
* @file index.ts
|
|
3
|
+
* @description Public exports for @ultrst-armada/kloks/backend/ai-tools
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
required?: string[];
|
|
10
|
-
items?: Record<string, unknown>;
|
|
11
|
-
}
|
|
12
|
-
interface MCPTool {
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
inputSchema: {
|
|
16
|
-
type: string;
|
|
17
|
-
properties?: Record<string, unknown>;
|
|
18
|
-
required?: string[];
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
interface MCPServerConfig {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
transport: 'stdio' | 'sse' | 'websocket';
|
|
25
|
-
url?: string;
|
|
26
|
-
command?: string;
|
|
27
|
-
args?: string[];
|
|
28
|
-
env?: Record<string, string>;
|
|
29
|
-
status?: 'connected' | 'disconnected' | 'error';
|
|
30
|
-
}
|
|
31
|
-
interface ToolExecutionResult {
|
|
32
|
-
toolName: string;
|
|
33
|
-
success: boolean;
|
|
34
|
-
output?: unknown;
|
|
35
|
-
error?: string;
|
|
36
|
-
durationMs: number;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @file mcpEngine.ts
|
|
41
|
-
* @description Master Model Context Protocol (MCP) server manager and dispatcher
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
declare class MCPEngine {
|
|
45
|
-
private servers;
|
|
46
|
-
private registeredTools;
|
|
47
|
-
private toolHandlers;
|
|
48
|
-
getSystemTools(): MCPTool[];
|
|
49
|
-
handleJsonRpc(payload: any): Promise<any>;
|
|
50
|
-
registerServer(config: MCPServerConfig): void;
|
|
51
|
-
getServer(id: string): MCPServerConfig | undefined;
|
|
52
|
-
listServers(): MCPServerConfig[];
|
|
53
|
-
registerTool(tool: MCPTool, handler?: (args: any) => Promise<any>): void;
|
|
54
|
-
listTools(): MCPTool[];
|
|
55
|
-
executeTool(toolName: string, args: Record<string, unknown>): Promise<ToolExecutionResult>;
|
|
56
|
-
}
|
|
57
|
-
declare const mcpEngine: MCPEngine;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @file ToolManagerService.ts
|
|
61
|
-
* @description General-purpose Tool Registry and Lifecycle Orchestrator
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
declare class ToolManagerService {
|
|
65
|
-
registerTool(tool: MCPTool, handler?: (args: any) => Promise<any>): void;
|
|
66
|
-
listTools(): MCPTool[];
|
|
67
|
-
execute(toolName: string, args: Record<string, unknown>): Promise<ToolExecutionResult>;
|
|
68
|
-
}
|
|
69
|
-
declare const toolManagerService: ToolManagerService;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @file toolValidationLoop.ts
|
|
73
|
-
* @description Validates tool inputs and payload schemas before tool invocation
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
interface ToolInputValidationResult {
|
|
77
|
-
valid: boolean;
|
|
78
|
-
errors: string[];
|
|
79
|
-
}
|
|
80
|
-
declare function validateToolInput(tool: MCPTool, input: Record<string, unknown>): ToolInputValidationResult;
|
|
81
|
-
|
|
82
|
-
export { MCPEngine, type MCPServerConfig, type MCPTool, type MCPToolParameter, type ToolExecutionResult, type ToolInputValidationResult, ToolManagerService, mcpEngine, toolManagerService, validateToolInput };
|
|
5
|
+
export * from './types.js';
|
|
6
|
+
export * from './mcpEngine.js';
|
|
7
|
+
export * from './ToolManagerService.js';
|
|
8
|
+
export * from './toolValidationLoop.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file mcpEngine.ts
|
|
3
|
+
* @description Master Model Context Protocol (MCP) server manager and dispatcher
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPServerConfig, MCPTool, ToolExecutionResult } from './types.js';
|
|
6
|
+
export declare class MCPEngine {
|
|
7
|
+
private servers;
|
|
8
|
+
private registeredTools;
|
|
9
|
+
private toolHandlers;
|
|
10
|
+
getSystemTools(): MCPTool[];
|
|
11
|
+
handleJsonRpc(payload: any): Promise<any>;
|
|
12
|
+
registerServer(config: MCPServerConfig): void;
|
|
13
|
+
getServer(id: string): MCPServerConfig | undefined;
|
|
14
|
+
listServers(): MCPServerConfig[];
|
|
15
|
+
registerTool(tool: MCPTool, handler?: (args: any) => Promise<any>): void;
|
|
16
|
+
listTools(): MCPTool[];
|
|
17
|
+
executeTool(toolName: string, args: Record<string, unknown>): Promise<ToolExecutionResult>;
|
|
18
|
+
}
|
|
19
|
+
export declare const mcpEngine: MCPEngine;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file toolValidationLoop.ts
|
|
3
|
+
* @description Validates tool inputs and payload schemas before tool invocation
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPTool } from './types.js';
|
|
6
|
+
export interface ToolInputValidationResult {
|
|
7
|
+
valid: boolean;
|
|
8
|
+
errors: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare function validateToolInput(tool: MCPTool, input: Record<string, unknown>): ToolInputValidationResult;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file types.ts
|
|
3
|
+
* @description Canonical AI Tools and MCP runtime contracts for @ultrst-armada/kloks/backend
|
|
4
|
+
*/
|
|
5
|
+
export interface MCPToolParameter {
|
|
6
|
+
type: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
properties?: Record<string, unknown>;
|
|
9
|
+
required?: string[];
|
|
10
|
+
items?: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
export interface MCPTool {
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: string;
|
|
17
|
+
properties?: Record<string, unknown>;
|
|
18
|
+
required?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface MCPServerConfig {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
transport: 'stdio' | 'sse' | 'websocket';
|
|
25
|
+
url?: string;
|
|
26
|
+
command?: string;
|
|
27
|
+
args?: string[];
|
|
28
|
+
env?: Record<string, string>;
|
|
29
|
+
status?: 'connected' | 'disconnected' | 'error';
|
|
30
|
+
}
|
|
31
|
+
export interface ToolExecutionResult {
|
|
32
|
+
toolName: string;
|
|
33
|
+
success: boolean;
|
|
34
|
+
output?: unknown;
|
|
35
|
+
error?: string;
|
|
36
|
+
durationMs: number;
|
|
37
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SkipoBase } from '@ultrst-armada/kloks/functions';
|
|
2
|
+
import { RouteConfig } from './types.js';
|
|
3
|
+
export declare abstract class BaseApiRoute extends SkipoBase {
|
|
4
|
+
protected config: RouteConfig;
|
|
5
|
+
constructor(config?: RouteConfig);
|
|
6
|
+
abstract handle(req: Request): Promise<Response>;
|
|
7
|
+
protected success<T>(data: T, status?: number): Response;
|
|
8
|
+
protected error(message: string, status?: number): Response;
|
|
9
|
+
}
|
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
error?: string;
|
|
6
|
-
status: number;
|
|
7
|
-
}
|
|
8
|
-
interface ApiError {
|
|
9
|
-
message: string;
|
|
10
|
-
code?: string;
|
|
11
|
-
}
|
|
12
|
-
interface RouteConfig {
|
|
13
|
-
auth?: boolean;
|
|
14
|
-
admin?: boolean;
|
|
15
|
-
rateLimit?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare abstract class BaseApiRoute extends SkipoBase {
|
|
19
|
-
protected config: RouteConfig;
|
|
20
|
-
constructor(config?: RouteConfig);
|
|
21
|
-
abstract handle(req: Request): Promise<Response>;
|
|
22
|
-
protected success<T>(data: T, status?: number): Response;
|
|
23
|
-
protected error(message: string, status?: number): Response;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
type Middleware = (req: Request) => Promise<Response | null>;
|
|
27
|
-
declare function withAuth(verifyToken: (token: string) => Promise<boolean>): Middleware;
|
|
28
|
-
declare function withCors(allowedOrigin?: string): Middleware;
|
|
29
|
-
|
|
30
|
-
declare function createSSEResponse(setupStream: (send: (event: string, data: any) => void) => () => void, heartbeatMs?: number): Response;
|
|
31
|
-
|
|
32
|
-
export { type ApiError, type ApiResponse, BaseApiRoute, type Middleware, type RouteConfig, createSSEResponse, withAuth, withCors };
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './BaseApiRoute.js';
|
|
3
|
+
export * from './middleware.js';
|
|
4
|
+
export * from './sse.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createSSEResponse(setupStream: (send: (event: string, data: any) => void) => () => void, heartbeatMs?: number): Response;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ApiResponse<T> {
|
|
2
|
+
data?: T;
|
|
3
|
+
error?: string;
|
|
4
|
+
status: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ApiError {
|
|
7
|
+
message: string;
|
|
8
|
+
code?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface RouteConfig {
|
|
11
|
+
auth?: boolean;
|
|
12
|
+
admin?: boolean;
|
|
13
|
+
rateLimit?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file types.ts
|
|
3
|
+
* @description Formal TypeScript types and contracts for APP_ARCHITECTURE_SPEC.
|
|
4
|
+
* Conforms strictly to Inviolable Law L7 and < 200 lines limit.
|
|
5
|
+
*/
|
|
6
|
+
export type Runtime = 'client' | 'server';
|
|
7
|
+
export type Deployment = 'local' | 'remote';
|
|
8
|
+
export type FunctionSet = Record<string, (...args: any[]) => any>;
|
|
9
|
+
export interface ServiceDefinition<T extends FunctionSet = FunctionSet> {
|
|
10
|
+
name: string;
|
|
11
|
+
version?: string;
|
|
12
|
+
runtime: Runtime;
|
|
13
|
+
deployment: Deployment;
|
|
14
|
+
facade: T;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
export interface ServiceFacade<T extends FunctionSet = FunctionSet> {
|
|
18
|
+
runtime: Runtime;
|
|
19
|
+
deployment: Deployment;
|
|
20
|
+
service: T;
|
|
21
|
+
}
|
|
22
|
+
export type OrchestrationFn = (...args: any[]) => Promise<any> | any;
|
|
23
|
+
export interface BackendFacade<TServices extends Record<string, any> = Record<string, any>, TOrchestrations extends Record<string, OrchestrationFn> = Record<string, OrchestrationFn>> {
|
|
24
|
+
services: TServices;
|
|
25
|
+
orchestrations: TOrchestrations;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Validates that a ServiceDefinition satisfies the mathematical invariants:
|
|
29
|
+
* 1. deployment == "remote" => runtime == "server"
|
|
30
|
+
* 2. runtime == "client" => deployment == "local"
|
|
31
|
+
*/
|
|
32
|
+
export declare function validateServiceDefinition(def: {
|
|
33
|
+
name?: string;
|
|
34
|
+
runtime: Runtime;
|
|
35
|
+
deployment: Deployment;
|
|
36
|
+
}): {
|
|
37
|
+
valid: boolean;
|
|
38
|
+
error?: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Registry interface for service records in Gateway
|
|
42
|
+
*/
|
|
43
|
+
export interface ServiceRegistryRecord {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
version: string;
|
|
47
|
+
runtime: Runtime;
|
|
48
|
+
deployment: Deployment;
|
|
49
|
+
endpoint?: string;
|
|
50
|
+
protocol?: 'http' | 'ws' | 'in-process';
|
|
51
|
+
health?: 'healthy' | 'degraded' | 'unhealthy';
|
|
52
|
+
metadata?: Record<string, unknown>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical account-provider compatibility type.
|
|
3
|
+
*
|
|
4
|
+
* Auth is owned by Luth; this alias exists only for control-plane APIs that
|
|
5
|
+
* historically accepted a BaseAccountProvider.
|
|
6
|
+
*/
|
|
7
|
+
export { LuthAuthClient as BaseAccountProvider, createLuthAuthClient as createBaseAccountProvider, } from '@dinilmusick/gutts';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { LuthAuthClient, createLuthAuthClient, resolveClientOrigin, resolveClientEnvironment, } from '@dinilmusick/gutts';
|
|
2
|
+
export type { DeploymentEnvironment, EmailSignInCredentials, EmailSignUpData, GoogleSignInOptions, LuthAuthClientConfig, LuthAuthTokenStore, LuthSessionResult, RegisterApplicationResult, LuthUser, LuthSession, } from '@dinilmusick/gutts';
|
|
3
|
+
export { LuthAuthError } from '@dinilmusick/gutts';
|
|
4
|
+
export { LuthAuthClient as CanonicalAuthClient } from '@dinilmusick/gutts';
|
|
5
|
+
export { createLuthAuthClient as createCanonicalAuthClient } from '@dinilmusick/gutts';
|
|
6
|
+
export type { LuthUser as CanonicalAuthUser, LuthSession as CanonicalAuthSession } from '@dinilmusick/gutts';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface SystemUser {
|
|
2
|
+
id: string;
|
|
3
|
+
email: string;
|
|
4
|
+
name: string;
|
|
5
|
+
username: string;
|
|
6
|
+
role: string;
|
|
7
|
+
status: string;
|
|
8
|
+
appProfiles?: Record<string, unknown>;
|
|
9
|
+
emailVerified?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type AuthEnvironment = Record<string, unknown>;
|
|
12
|
+
export declare function loginSystemUser(email: string, rawPass: string, isAdmin: boolean, _queryDb: (sql: string, params?: unknown[]) => Promise<{
|
|
13
|
+
rows: any[];
|
|
14
|
+
}>, env?: AuthEnvironment): Promise<{
|
|
15
|
+
success: boolean;
|
|
16
|
+
status: number;
|
|
17
|
+
token?: string;
|
|
18
|
+
user?: SystemUser;
|
|
19
|
+
error?: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare function resolveUserFromToken(tokenOrUserId: string, _queryDb: (sql: string, params?: unknown[]) => Promise<{
|
|
22
|
+
rows: any[];
|
|
23
|
+
}>, env?: AuthEnvironment): Promise<SystemUser | null>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
interface SystemUser {
|
|
4
|
-
id: string;
|
|
5
|
-
email: string;
|
|
6
|
-
name: string;
|
|
7
|
-
username: string;
|
|
8
|
-
role: string;
|
|
9
|
-
status: string;
|
|
10
|
-
appProfiles?: Record<string, unknown>;
|
|
11
|
-
emailVerified?: boolean;
|
|
12
|
-
}
|
|
13
|
-
type AuthEnvironment = Record<string, unknown>;
|
|
14
|
-
declare function loginSystemUser(email: string, rawPass: string, isAdmin: boolean, _queryDb: (sql: string, params?: unknown[]) => Promise<{
|
|
15
|
-
rows: any[];
|
|
16
|
-
}>, env?: AuthEnvironment): Promise<{
|
|
17
|
-
success: boolean;
|
|
18
|
-
status: number;
|
|
19
|
-
token?: string;
|
|
20
|
-
user?: SystemUser;
|
|
21
|
-
error?: string;
|
|
22
|
-
}>;
|
|
23
|
-
declare function resolveUserFromToken(tokenOrUserId: string, _queryDb: (sql: string, params?: unknown[]) => Promise<{
|
|
24
|
-
rows: any[];
|
|
25
|
-
}>, env?: AuthEnvironment): Promise<SystemUser | null>;
|
|
26
|
-
|
|
27
|
-
export { type AuthEnvironment, type SystemUser, loginSystemUser, resolveUserFromToken };
|
|
1
|
+
export * from './CanonicalAuthClient.js';
|
|
2
|
+
export * from './UnifiedAuthCore.js';
|