@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,19 @@
|
|
|
1
|
+
import { BaseStorageAdapter } from './BaseStorageAdapter.js';
|
|
2
|
+
import { FileInfo, StorageConfig, DeleteFolderResult, RenameFolderResult, ConnectionTestResult } from './types.js';
|
|
3
|
+
export declare class BackblazeB2Adapter extends BaseStorageAdapter {
|
|
4
|
+
private client;
|
|
5
|
+
private bucket;
|
|
6
|
+
constructor(config: StorageConfig);
|
|
7
|
+
private ensureClient;
|
|
8
|
+
read(pathStr: string): Promise<Uint8Array>;
|
|
9
|
+
write(pathStr: string, data: Uint8Array | string, contentType?: string): Promise<void>;
|
|
10
|
+
delete(pathStr: string): Promise<void>;
|
|
11
|
+
deleteFolder(pathStr: string): Promise<DeleteFolderResult>;
|
|
12
|
+
renameFolder(oldPath: string, newPath: string): Promise<RenameFolderResult>;
|
|
13
|
+
ensureDirectory(pathStr: string): Promise<void>;
|
|
14
|
+
exists(pathStr: string): Promise<boolean>;
|
|
15
|
+
list(pathStr?: string): Promise<FileInfo[]>;
|
|
16
|
+
stat(pathStr: string): Promise<FileInfo>;
|
|
17
|
+
mkdir(pathStr: string): Promise<void>;
|
|
18
|
+
testConnection(): Promise<ConnectionTestResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SkipoBase } from '@ultrst-armada/kloks/functions';
|
|
2
|
+
import { FileInfo, StorageConfig, DeleteFolderResult, RenameFolderResult, ConnectionTestResult } from './types.js';
|
|
3
|
+
export declare abstract class BaseStorageAdapter extends SkipoBase {
|
|
4
|
+
protected config: StorageConfig;
|
|
5
|
+
constructor(config: StorageConfig);
|
|
6
|
+
abstract read(pathStr: string): Promise<Uint8Array>;
|
|
7
|
+
abstract write(pathStr: string, data: Uint8Array | string, contentType?: string): Promise<void>;
|
|
8
|
+
abstract delete(pathStr: string): Promise<void>;
|
|
9
|
+
abstract exists(pathStr: string): Promise<boolean>;
|
|
10
|
+
abstract list(pathStr?: string): Promise<FileInfo[]>;
|
|
11
|
+
abstract stat(pathStr: string): Promise<FileInfo>;
|
|
12
|
+
abstract mkdir(pathStr: string): Promise<void>;
|
|
13
|
+
deleteFolder(pathStr: string): Promise<DeleteFolderResult>;
|
|
14
|
+
renameFolder(oldPath: string, newPath: string): Promise<RenameFolderResult>;
|
|
15
|
+
ensureDirectory(pathStr: string): Promise<void>;
|
|
16
|
+
testConnection(): Promise<ConnectionTestResult>;
|
|
17
|
+
protected normalizePath(p: string): string;
|
|
18
|
+
protected getExtension(p: string): string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseStorageAdapter } from './BaseStorageAdapter.js';
|
|
2
|
+
import { FileInfo, ConnectionTestResult } from './types.js';
|
|
3
|
+
export declare class GoogleDriveAdapter extends BaseStorageAdapter {
|
|
4
|
+
private client?;
|
|
5
|
+
private auth?;
|
|
6
|
+
private getAuth;
|
|
7
|
+
private getClient;
|
|
8
|
+
private findChild;
|
|
9
|
+
private resolveParent;
|
|
10
|
+
private split;
|
|
11
|
+
read(pathStr: string): Promise<Uint8Array>;
|
|
12
|
+
write(pathStr: string, data: Uint8Array | string, contentType?: string): Promise<void>;
|
|
13
|
+
delete(pathStr: string): Promise<void>;
|
|
14
|
+
exists(pathStr: string): Promise<boolean>;
|
|
15
|
+
list(pathStr?: string): Promise<FileInfo[]>;
|
|
16
|
+
stat(pathStr: string): Promise<FileInfo>;
|
|
17
|
+
mkdir(pathStr: string): Promise<void>;
|
|
18
|
+
testConnection(): Promise<ConnectionTestResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface GoogleDriveOAuthConfig {
|
|
2
|
+
clientId: string;
|
|
3
|
+
clientSecret?: string;
|
|
4
|
+
redirectUri: string;
|
|
5
|
+
scopes?: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface GoogleDriveTokenSet {
|
|
8
|
+
accessToken: string;
|
|
9
|
+
refreshToken?: string;
|
|
10
|
+
expiresAt?: number;
|
|
11
|
+
tokenType?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const GOOGLE_DRIVE_FILE_SCOPE = "https://www.googleapis.com/auth/drive.file";
|
|
14
|
+
export declare function createGoogleDriveAuthorizationUrl(config: GoogleDriveOAuthConfig, state: string, codeChallenge?: string): string;
|
|
15
|
+
export declare function exchangeGoogleDriveCode(config: GoogleDriveOAuthConfig, code: string, codeVerifier?: string): Promise<GoogleDriveTokenSet>;
|
|
16
|
+
export declare function refreshGoogleDriveAccessToken(clientId: string, refreshToken: string, clientSecret?: string, _redirectUri?: string): Promise<GoogleDriveTokenSet>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseStorageAdapter } from './BaseStorageAdapter.js';
|
|
2
|
+
import { FileInfo, StorageConfig } from './types.js';
|
|
3
|
+
export declare class LocalFSAdapter extends BaseStorageAdapter {
|
|
4
|
+
private basePath;
|
|
5
|
+
constructor(config: StorageConfig);
|
|
6
|
+
private resolvePath;
|
|
7
|
+
read(pathStr: string): Promise<Uint8Array>;
|
|
8
|
+
write(pathStr: string, data: Uint8Array | string): Promise<void>;
|
|
9
|
+
delete(pathStr: string): Promise<void>;
|
|
10
|
+
exists(pathStr: string): Promise<boolean>;
|
|
11
|
+
list(pathStr?: string): Promise<FileInfo[]>;
|
|
12
|
+
stat(pathStr: string): Promise<FileInfo>;
|
|
13
|
+
mkdir(pathStr: string): Promise<void>;
|
|
14
|
+
deleteFolder(pathStr: string): Promise<{
|
|
15
|
+
success: boolean;
|
|
16
|
+
deletedCount: number;
|
|
17
|
+
}>;
|
|
18
|
+
renameFolder(oldPath: string, newPath: string): Promise<{
|
|
19
|
+
success: boolean;
|
|
20
|
+
movedCount: number;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseStorageAdapter } from './BaseStorageAdapter.js';
|
|
2
|
+
import { FileInfo, StorageConfig, DeleteFolderResult, RenameFolderResult, ConnectionTestResult } from './types.js';
|
|
3
|
+
export declare class S3Adapter extends BaseStorageAdapter {
|
|
4
|
+
private client;
|
|
5
|
+
private bucket;
|
|
6
|
+
constructor(config: StorageConfig);
|
|
7
|
+
private ensureClient;
|
|
8
|
+
read(pathStr: string): Promise<Uint8Array>;
|
|
9
|
+
write(pathStr: string, data: Uint8Array | string, contentType?: string): Promise<void>;
|
|
10
|
+
delete(pathStr: string): Promise<void>;
|
|
11
|
+
deleteFolder(pathStr: string): Promise<DeleteFolderResult>;
|
|
12
|
+
renameFolder(oldPath: string, newPath: string): Promise<RenameFolderResult>;
|
|
13
|
+
ensureDirectory(pathStr: string): Promise<void>;
|
|
14
|
+
exists(pathStr: string): Promise<boolean>;
|
|
15
|
+
list(pathStr?: string): Promise<FileInfo[]>;
|
|
16
|
+
stat(pathStr: string): Promise<FileInfo>;
|
|
17
|
+
mkdir(pathStr: string): Promise<void>;
|
|
18
|
+
testConnection(): Promise<ConnectionTestResult>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseStorageAdapter } from './BaseStorageAdapter.js';
|
|
2
|
+
import { FileInfo, StorageConfig } from './types.js';
|
|
3
|
+
export declare class SupabaseStorageAdapter extends BaseStorageAdapter {
|
|
4
|
+
private client;
|
|
5
|
+
private bucket;
|
|
6
|
+
constructor(config: StorageConfig);
|
|
7
|
+
private ensureClient;
|
|
8
|
+
read(pathStr: string): Promise<Uint8Array>;
|
|
9
|
+
write(pathStr: string, data: Uint8Array | string): Promise<void>;
|
|
10
|
+
delete(pathStr: string): Promise<void>;
|
|
11
|
+
exists(pathStr: string): Promise<boolean>;
|
|
12
|
+
list(pathStr?: string): Promise<FileInfo[]>;
|
|
13
|
+
stat(pathStr: string): Promise<FileInfo>;
|
|
14
|
+
mkdir(_pathStr: string): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backblaze B2 Endpoint & Credential Normalizer
|
|
3
|
+
*/
|
|
4
|
+
export declare function isSecretMasked(str?: string): boolean;
|
|
5
|
+
export declare function resolveBackblazeEndpoint(inputEndpointOrRegion?: string, keyId?: string): {
|
|
6
|
+
endpoint: string;
|
|
7
|
+
region: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function normalizeBackblazeCredentials(inputKeyId?: string, inputAppKey?: string): {
|
|
10
|
+
keyId: string;
|
|
11
|
+
appKey: string;
|
|
12
|
+
};
|
|
@@ -1,156 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
mkdir(pathStr: string): Promise<void>;
|
|
16
|
-
deleteFolder(pathStr: string): Promise<{
|
|
17
|
-
success: boolean;
|
|
18
|
-
deletedCount: number;
|
|
19
|
-
}>;
|
|
20
|
-
renameFolder(oldPath: string, newPath: string): Promise<{
|
|
21
|
-
success: boolean;
|
|
22
|
-
movedCount: number;
|
|
23
|
-
}>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare class S3Adapter extends BaseStorageAdapter {
|
|
27
|
-
private client;
|
|
28
|
-
private bucket;
|
|
29
|
-
constructor(config: StorageConfig);
|
|
30
|
-
private ensureClient;
|
|
31
|
-
read(pathStr: string): Promise<Uint8Array>;
|
|
32
|
-
write(pathStr: string, data: Uint8Array | string, contentType?: string): Promise<void>;
|
|
33
|
-
delete(pathStr: string): Promise<void>;
|
|
34
|
-
deleteFolder(pathStr: string): Promise<DeleteFolderResult>;
|
|
35
|
-
renameFolder(oldPath: string, newPath: string): Promise<RenameFolderResult>;
|
|
36
|
-
ensureDirectory(pathStr: string): Promise<void>;
|
|
37
|
-
exists(pathStr: string): Promise<boolean>;
|
|
38
|
-
list(pathStr?: string): Promise<FileInfo[]>;
|
|
39
|
-
stat(pathStr: string): Promise<FileInfo>;
|
|
40
|
-
mkdir(pathStr: string): Promise<void>;
|
|
41
|
-
testConnection(): Promise<ConnectionTestResult>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare class BackblazeB2Adapter extends BaseStorageAdapter {
|
|
45
|
-
private client;
|
|
46
|
-
private bucket;
|
|
47
|
-
constructor(config: StorageConfig);
|
|
48
|
-
private ensureClient;
|
|
49
|
-
read(pathStr: string): Promise<Uint8Array>;
|
|
50
|
-
write(pathStr: string, data: Uint8Array | string, contentType?: string): Promise<void>;
|
|
51
|
-
delete(pathStr: string): Promise<void>;
|
|
52
|
-
deleteFolder(pathStr: string): Promise<DeleteFolderResult>;
|
|
53
|
-
renameFolder(oldPath: string, newPath: string): Promise<RenameFolderResult>;
|
|
54
|
-
ensureDirectory(pathStr: string): Promise<void>;
|
|
55
|
-
exists(pathStr: string): Promise<boolean>;
|
|
56
|
-
list(pathStr?: string): Promise<FileInfo[]>;
|
|
57
|
-
stat(pathStr: string): Promise<FileInfo>;
|
|
58
|
-
mkdir(pathStr: string): Promise<void>;
|
|
59
|
-
testConnection(): Promise<ConnectionTestResult>;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
declare class GoogleDriveAdapter extends BaseStorageAdapter {
|
|
63
|
-
private token;
|
|
64
|
-
private request;
|
|
65
|
-
private findChild;
|
|
66
|
-
private resolveParent;
|
|
67
|
-
private split;
|
|
68
|
-
read(pathStr: string): Promise<Uint8Array>;
|
|
69
|
-
write(pathStr: string, data: Uint8Array | string, contentType?: string): Promise<void>;
|
|
70
|
-
delete(pathStr: string): Promise<void>;
|
|
71
|
-
exists(pathStr: string): Promise<boolean>;
|
|
72
|
-
list(pathStr?: string): Promise<FileInfo[]>;
|
|
73
|
-
stat(pathStr: string): Promise<FileInfo>;
|
|
74
|
-
mkdir(pathStr: string): Promise<void>;
|
|
75
|
-
testConnection(): Promise<ConnectionTestResult>;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Backblaze B2 Endpoint & Credential Normalizer
|
|
80
|
-
*/
|
|
81
|
-
declare function isSecretMasked(str?: string): boolean;
|
|
82
|
-
declare function resolveBackblazeEndpoint(inputEndpointOrRegion?: string, keyId?: string): {
|
|
83
|
-
endpoint: string;
|
|
84
|
-
region: string;
|
|
85
|
-
};
|
|
86
|
-
declare function normalizeBackblazeCredentials(inputKeyId?: string, inputAppKey?: string): {
|
|
87
|
-
keyId: string;
|
|
88
|
-
appKey: string;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* S3 & Backblaze B2 Zero-Asterisk Permanent Purge & Folder Engine
|
|
93
|
-
*/
|
|
94
|
-
declare function ensureS3DirectoryMarker(s3: any, bucketName: string, folderPrefix: string): Promise<void>;
|
|
95
|
-
declare function permanentDeleteS3Object(s3: any, bucketName: string, fullKey: string): Promise<boolean>;
|
|
96
|
-
declare function permanentDeleteS3Folder(s3: any, bucketName: string, targetPrefix: string): Promise<{
|
|
97
|
-
success: boolean;
|
|
98
|
-
deletedCount: number;
|
|
99
|
-
}>;
|
|
100
|
-
declare function renameS3Folder(s3: any, bucketName: string, oldPrefix: string, newPrefix: string): Promise<{
|
|
101
|
-
success: boolean;
|
|
102
|
-
movedCount: number;
|
|
103
|
-
}>;
|
|
104
|
-
|
|
105
|
-
declare class SupabaseStorageAdapter extends BaseStorageAdapter {
|
|
106
|
-
private client;
|
|
107
|
-
private bucket;
|
|
108
|
-
constructor(config: StorageConfig);
|
|
109
|
-
private ensureClient;
|
|
110
|
-
read(pathStr: string): Promise<Uint8Array>;
|
|
111
|
-
write(pathStr: string, data: Uint8Array | string): Promise<void>;
|
|
112
|
-
delete(pathStr: string): Promise<void>;
|
|
113
|
-
exists(pathStr: string): Promise<boolean>;
|
|
114
|
-
list(pathStr?: string): Promise<FileInfo[]>;
|
|
115
|
-
stat(pathStr: string): Promise<FileInfo>;
|
|
116
|
-
mkdir(_pathStr: string): Promise<void>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
declare class StorageAdapterFactory {
|
|
120
|
-
static create(config: StorageConfig): BaseStorageAdapter;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* @file B2DirectClient.ts
|
|
125
|
-
* @description Zero-dependency Web Standard Fetch client for Backblaze B2 Direct REST API.
|
|
126
|
-
* Identical across Node.js, Vercel Serverless, and Cloudflare Workers (< 200 lines).
|
|
127
|
-
*/
|
|
128
|
-
interface B2AuthToken {
|
|
129
|
-
authorizationToken: string;
|
|
130
|
-
apiUrl: string;
|
|
131
|
-
downloadUrl: string;
|
|
132
|
-
accountId: string;
|
|
133
|
-
}
|
|
134
|
-
declare function authorizeB2(keyId: string, applicationKey: string): Promise<B2AuthToken>;
|
|
135
|
-
declare function b2ListBuckets(keyId: string, applicationKey: string): Promise<any[]>;
|
|
136
|
-
declare function b2ListFileNames(keyId: string, applicationKey: string, bucketName: string, prefix?: string): Promise<any[]>;
|
|
137
|
-
declare function b2UploadFile(keyId: string, applicationKey: string, bucketName: string, fileName: string, content: Uint8Array | string, contentType?: string): Promise<any>;
|
|
138
|
-
declare function b2DownloadFile(keyId: string, applicationKey: string, bucketName: string, fileName: string): Promise<Uint8Array | null>;
|
|
139
|
-
|
|
140
|
-
interface GoogleDriveOAuthConfig {
|
|
141
|
-
clientId: string;
|
|
142
|
-
clientSecret?: string;
|
|
143
|
-
redirectUri: string;
|
|
144
|
-
scopes?: string[];
|
|
145
|
-
}
|
|
146
|
-
interface GoogleDriveTokenSet {
|
|
147
|
-
accessToken: string;
|
|
148
|
-
refreshToken?: string;
|
|
149
|
-
expiresAt?: number;
|
|
150
|
-
tokenType?: string;
|
|
151
|
-
}
|
|
152
|
-
declare function createGoogleDriveAuthorizationUrl(config: GoogleDriveOAuthConfig, state: string, codeChallenge?: string): string;
|
|
153
|
-
declare function exchangeGoogleDriveCode(config: GoogleDriveOAuthConfig, code: string, codeVerifier?: string): Promise<GoogleDriveTokenSet>;
|
|
154
|
-
declare function refreshGoogleDriveAccessToken(clientId: string, refreshToken: string): Promise<GoogleDriveTokenSet>;
|
|
155
|
-
|
|
156
|
-
export { type B2AuthToken, BackblazeB2Adapter, BaseStorageAdapter, ConnectionTestResult, DeleteFolderResult, FileInfo, GoogleDriveAdapter, type GoogleDriveOAuthConfig, type GoogleDriveTokenSet, LocalFSAdapter, RenameFolderResult, S3Adapter, StorageAdapterFactory, StorageConfig, SupabaseStorageAdapter, authorizeB2, b2DownloadFile, b2ListBuckets, b2ListFileNames, b2UploadFile, createGoogleDriveAuthorizationUrl, ensureS3DirectoryMarker, exchangeGoogleDriveCode, isSecretMasked, normalizeBackblazeCredentials, permanentDeleteS3Folder, permanentDeleteS3Object, refreshGoogleDriveAccessToken, renameS3Folder, resolveBackblazeEndpoint };
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './BaseStorageAdapter.js';
|
|
3
|
+
export * from './LocalFSAdapter.js';
|
|
4
|
+
export * from './S3Adapter.js';
|
|
5
|
+
export * from './BucketStorageService.js';
|
|
6
|
+
export * from './BackblazeB2Adapter.js';
|
|
7
|
+
export * from './GoogleDriveAdapter.js';
|
|
8
|
+
export * from './GoogleDriveStorageService.js';
|
|
9
|
+
export * from './b2Endpoint.js';
|
|
10
|
+
export * from './s3Purge.js';
|
|
11
|
+
export * from './SupabaseStorageAdapter.js';
|
|
12
|
+
export * from './StorageAdapterFactory.js';
|
|
13
|
+
export * from './B2DirectClient.js';
|
|
14
|
+
export * from './GoogleDriveOAuth.js';
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
GOOGLE_DRIVE_FILE_SCOPE,
|
|
3
|
+
createGoogleDriveAuthorizationUrl,
|
|
4
|
+
exchangeGoogleDriveCode,
|
|
5
|
+
refreshGoogleDriveAccessToken
|
|
6
|
+
} from "../chunk-GZD5A54P.js";
|
|
4
7
|
import {
|
|
5
8
|
BackblazeB2Adapter,
|
|
9
|
+
BucketStorageService,
|
|
10
|
+
GoogleDriveStorageService,
|
|
6
11
|
LocalFSAdapter,
|
|
12
|
+
S3Adapter,
|
|
7
13
|
StorageAdapterFactory,
|
|
8
14
|
SupabaseStorageAdapter,
|
|
9
15
|
ensureS3DirectoryMarker,
|
|
@@ -13,7 +19,7 @@ import {
|
|
|
13
19
|
permanentDeleteS3Object,
|
|
14
20
|
renameS3Folder,
|
|
15
21
|
resolveBackblazeEndpoint
|
|
16
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-3W4TN6XB.js";
|
|
17
23
|
import {
|
|
18
24
|
authorizeB2,
|
|
19
25
|
b2DownloadFile,
|
|
@@ -23,15 +29,15 @@ import {
|
|
|
23
29
|
} from "../chunk-4QEMALXF.js";
|
|
24
30
|
import {
|
|
25
31
|
BaseStorageAdapter,
|
|
26
|
-
GoogleDriveAdapter
|
|
27
|
-
|
|
28
|
-
exchangeGoogleDriveCode,
|
|
29
|
-
refreshGoogleDriveAccessToken
|
|
30
|
-
} from "../chunk-KKRWZDMN.js";
|
|
32
|
+
GoogleDriveAdapter
|
|
33
|
+
} from "../chunk-52M4L74T.js";
|
|
31
34
|
export {
|
|
32
35
|
BackblazeB2Adapter,
|
|
33
36
|
BaseStorageAdapter,
|
|
37
|
+
BucketStorageService,
|
|
38
|
+
GOOGLE_DRIVE_FILE_SCOPE,
|
|
34
39
|
GoogleDriveAdapter,
|
|
40
|
+
GoogleDriveStorageService,
|
|
35
41
|
LocalFSAdapter,
|
|
36
42
|
S3Adapter,
|
|
37
43
|
StorageAdapterFactory,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* S3 & Backblaze B2 Zero-Asterisk Permanent Purge & Folder Engine
|
|
3
|
+
*/
|
|
4
|
+
export declare function ensureS3DirectoryMarker(s3: any, bucketName: string, folderPrefix: string): Promise<void>;
|
|
5
|
+
export declare function permanentDeleteS3Object(s3: any, bucketName: string, fullKey: string): Promise<boolean>;
|
|
6
|
+
export declare function permanentDeleteS3Folder(s3: any, bucketName: string, targetPrefix: string): Promise<{
|
|
7
|
+
success: boolean;
|
|
8
|
+
deletedCount: number;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function renameS3Folder(s3: any, bucketName: string, oldPrefix: string, newPrefix: string): Promise<{
|
|
11
|
+
success: boolean;
|
|
12
|
+
movedCount: number;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type StorageMode = 'local' | 'local_hosted' | 'remote';
|
|
2
|
+
export type StorageProviderType = 'local_fs' | 'backblaze_b2' | 'b2' | 'supabase' | 'firebase' | 'google_drive' | 's3' | 's3_compatible';
|
|
3
|
+
export interface StorageConfig {
|
|
4
|
+
provider: StorageProviderType;
|
|
5
|
+
mode?: StorageMode;
|
|
6
|
+
basePath?: string;
|
|
7
|
+
bucket?: string;
|
|
8
|
+
region?: string;
|
|
9
|
+
endpoint?: string;
|
|
10
|
+
accessKey?: string;
|
|
11
|
+
secretKey?: string;
|
|
12
|
+
b2KeyId?: string;
|
|
13
|
+
b2ApplicationKey?: string;
|
|
14
|
+
b2BucketName?: string;
|
|
15
|
+
b2Endpoint?: string;
|
|
16
|
+
b2Region?: string;
|
|
17
|
+
keyId?: string;
|
|
18
|
+
applicationKey?: string;
|
|
19
|
+
accountId?: string;
|
|
20
|
+
googleClientId?: string;
|
|
21
|
+
googleRedirectUri?: string;
|
|
22
|
+
googleAccessToken?: string;
|
|
23
|
+
googleAccessTokenExpiresAt?: number;
|
|
24
|
+
googleRefreshToken?: string;
|
|
25
|
+
googleRootFolderId?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface FileInfo {
|
|
28
|
+
path: string;
|
|
29
|
+
size: number;
|
|
30
|
+
modifiedAt: number;
|
|
31
|
+
contentHash?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface UploadResult {
|
|
34
|
+
path: string;
|
|
35
|
+
size: number;
|
|
36
|
+
url?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface DeleteFolderResult {
|
|
39
|
+
success: boolean;
|
|
40
|
+
deletedCount: number;
|
|
41
|
+
}
|
|
42
|
+
export interface RenameFolderResult {
|
|
43
|
+
success: boolean;
|
|
44
|
+
movedCount: number;
|
|
45
|
+
}
|
|
46
|
+
export interface ConnectionTestResult {
|
|
47
|
+
ok: boolean;
|
|
48
|
+
latencyMs: number;
|
|
49
|
+
error?: string;
|
|
50
|
+
details?: Record<string, any>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file RemoteWorkspaceService.ts
|
|
3
|
+
* @description Backward-compatible alias for the canonical active-working WorkspaceService.
|
|
4
|
+
* New Skipo apps must use WorkingWorkspaceService; direct remote file I/O is not an app architecture.
|
|
5
|
+
*/
|
|
6
|
+
import { WorkspaceService, WorkspaceFileEntry, WorkspaceLookupResult, WorkspaceListResult, WorkspaceMutationResult } from './WorkspaceService.js';
|
|
7
|
+
import { WorkspaceSyncSummary } from './types.js';
|
|
8
|
+
export declare class RemoteWorkspaceService implements WorkspaceService {
|
|
9
|
+
readonly type: "working";
|
|
10
|
+
findWorkspace(id: string, env?: Record<string, unknown>): Promise<WorkspaceLookupResult>;
|
|
11
|
+
listWorkspaces(userId?: string, env?: Record<string, unknown>): Promise<WorkspaceListResult>;
|
|
12
|
+
createWorkspace(userId: string, data: any, env?: Record<string, unknown>): Promise<WorkspaceMutationResult>;
|
|
13
|
+
updateWorkspace(userId: string, params: any, env?: Record<string, unknown>): Promise<WorkspaceMutationResult>;
|
|
14
|
+
deleteWorkspace(userId: string, id: string, env?: Record<string, unknown>): Promise<{
|
|
15
|
+
success: boolean;
|
|
16
|
+
workspaces?: any[];
|
|
17
|
+
}>;
|
|
18
|
+
readFile(id: string, path: string, env?: Record<string, unknown>): Promise<Uint8Array | string>;
|
|
19
|
+
writeFile(id: string, path: string, content: Uint8Array | string, env?: Record<string, unknown>): Promise<{
|
|
20
|
+
success: boolean;
|
|
21
|
+
path: string;
|
|
22
|
+
sizeBytes?: number;
|
|
23
|
+
}>;
|
|
24
|
+
deleteFile(id: string, path: string, env?: Record<string, unknown>): Promise<{
|
|
25
|
+
success: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
listFiles(id: string, subfolder?: string, env?: Record<string, unknown>): Promise<WorkspaceFileEntry[]>;
|
|
28
|
+
sync(id: string, options?: any, env?: Record<string, unknown>): Promise<WorkspaceSyncSummary>;
|
|
29
|
+
}
|
|
30
|
+
export declare const remoteWorkspaceService: import("./WorkingWorkspaceService.js").WorkingWorkspaceService;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SkipoBase } from '@ultrst-armada/kloks/functions';
|
|
2
|
+
import { BaseStorageAdapter } from '../storage/BaseStorageAdapter.js';
|
|
3
|
+
import { WorkspaceConfig } from './types.js';
|
|
4
|
+
export declare class SyncEngine extends SkipoBase {
|
|
5
|
+
private primary;
|
|
6
|
+
private backups;
|
|
7
|
+
readonly config: WorkspaceConfig;
|
|
8
|
+
constructor(primary: BaseStorageAdapter, backups: BaseStorageAdapter[], config: WorkspaceConfig);
|
|
9
|
+
syncFile(pathStr: string): Promise<void>;
|
|
10
|
+
deleteFile(pathStr: string): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file WorkingWorkspaceService.ts
|
|
3
|
+
* @description Local Working-Workspace implementation for Kloks.
|
|
4
|
+
* Operates on a local working directory for fast low-latency I/O and explicitly
|
|
5
|
+
* synchronizes with authoritative remote storage (Backblaze B2/S3/DB).
|
|
6
|
+
* Canonical choice for QWNSR. Conforms to Skipo Governance (< 200 lines).
|
|
7
|
+
*/
|
|
8
|
+
import { WorkspaceService, WorkspaceFileEntry, WorkspaceLookupResult, WorkspaceListResult, WorkspaceMutationResult } from './WorkspaceService.js';
|
|
9
|
+
import { WorkspaceSyncSummary } from './types.js';
|
|
10
|
+
export declare class WorkingWorkspaceService implements WorkspaceService {
|
|
11
|
+
private workingDirResolver?;
|
|
12
|
+
readonly type: "working";
|
|
13
|
+
constructor(workingDirResolver?: (workspaceId?: string) => string);
|
|
14
|
+
getWorkingDir(workspaceId?: string): string;
|
|
15
|
+
findWorkspace(workspaceId: string, env?: Record<string, unknown>): Promise<WorkspaceLookupResult>;
|
|
16
|
+
listWorkspaces(userId?: string, env?: Record<string, unknown>): Promise<WorkspaceListResult>;
|
|
17
|
+
createWorkspace(userId: string, data: any, env?: Record<string, unknown>): Promise<WorkspaceMutationResult>;
|
|
18
|
+
updateWorkspace(userId: string, params: any, env?: Record<string, unknown>): Promise<WorkspaceMutationResult>;
|
|
19
|
+
deleteWorkspace(userId: string, workspaceId: string, env?: Record<string, unknown>): Promise<{
|
|
20
|
+
success: boolean;
|
|
21
|
+
workspaces?: any[];
|
|
22
|
+
}>;
|
|
23
|
+
readFile(_workspaceId: string, filePath: string): Promise<Uint8Array | string>;
|
|
24
|
+
writeFile(_workspaceId: string, filePath: string, content: Uint8Array | string): Promise<{
|
|
25
|
+
success: boolean;
|
|
26
|
+
path: string;
|
|
27
|
+
sizeBytes?: number;
|
|
28
|
+
}>;
|
|
29
|
+
deleteFile(_workspaceId: string, filePath: string): Promise<{
|
|
30
|
+
success: boolean;
|
|
31
|
+
}>;
|
|
32
|
+
listFiles(_workspaceId: string, subfolder?: string): Promise<WorkspaceFileEntry[]>;
|
|
33
|
+
sync(workspaceId: string, _options?: any, _env?: Record<string, unknown>): Promise<WorkspaceSyncSummary>;
|
|
34
|
+
}
|
|
35
|
+
export declare const workingWorkspaceService: WorkingWorkspaceService;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file WorkspaceCloneSyncEngine.ts
|
|
3
|
+
* @description Primary Vault -> Secondary Clones Replication Engine for Skipo.
|
|
4
|
+
* Conforms to Skipo Governance (< 200 lines).
|
|
5
|
+
*/
|
|
6
|
+
import { SkipoBase } from '@ultrst-armada/kloks/functions';
|
|
7
|
+
import { WorkspaceSecondaryClone } from './types.js';
|
|
8
|
+
export interface CloneReplicationResult {
|
|
9
|
+
cloneId: string;
|
|
10
|
+
label: string;
|
|
11
|
+
provider: string;
|
|
12
|
+
filesSynced: number;
|
|
13
|
+
status: 'SYNCED' | 'ERROR';
|
|
14
|
+
error?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class WorkspaceCloneSyncEngine extends SkipoBase {
|
|
17
|
+
constructor();
|
|
18
|
+
replicateToClones(files: Array<{
|
|
19
|
+
relPath: string;
|
|
20
|
+
content: Uint8Array;
|
|
21
|
+
contentType?: string;
|
|
22
|
+
}>, clones: WorkspaceSecondaryClone[], uploadFn: (clone: WorkspaceSecondaryClone, relPath: string, content: Uint8Array, contentType?: string) => Promise<void>): Promise<{
|
|
23
|
+
results: CloneReplicationResult[];
|
|
24
|
+
totalSynced: number;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseStorageAdapter } from '../storage/BaseStorageAdapter.js';
|
|
2
|
+
import { SyncEngine } from './SyncEngine.js';
|
|
3
|
+
import { FileInfo } from '../storage/types.js';
|
|
4
|
+
import { WorkspaceConfig } from './types.js';
|
|
5
|
+
import { SkipoBase } from '@ultrst-armada/kloks/functions';
|
|
6
|
+
export declare class WorkspaceFS extends SkipoBase {
|
|
7
|
+
private primary;
|
|
8
|
+
private syncEngine?;
|
|
9
|
+
private config;
|
|
10
|
+
constructor(primary: BaseStorageAdapter, config: WorkspaceConfig, syncEngine?: SyncEngine);
|
|
11
|
+
setPrimary(newPrimary: BaseStorageAdapter): void;
|
|
12
|
+
setSyncEngine(engine: SyncEngine): void;
|
|
13
|
+
exists(pathStr: string): Promise<boolean>;
|
|
14
|
+
stat(pathStr: string): Promise<FileInfo>;
|
|
15
|
+
list(pathStr?: string): Promise<FileInfo[]>;
|
|
16
|
+
read(pathStr: string): Promise<Uint8Array>;
|
|
17
|
+
readText(pathStr: string): Promise<string>;
|
|
18
|
+
write(pathStr: string, data: Uint8Array | Buffer | string): Promise<void>;
|
|
19
|
+
mkdir(pathStr: string): Promise<void>;
|
|
20
|
+
delete(pathStr: string): Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file WorkspaceService.ts
|
|
3
|
+
* @description Canonical WorkspaceService interface contract for Kloks backend.
|
|
4
|
+
* Governs remote-first (DEPM) and local working-workspace (QWNSR) architectures.
|
|
5
|
+
* Conforms to Skipo Governance (< 200 lines).
|
|
6
|
+
*/
|
|
7
|
+
import { WorkspaceSyncSummary } from './types.js';
|
|
8
|
+
export interface WorkspaceFileEntry {
|
|
9
|
+
path: string;
|
|
10
|
+
name: string;
|
|
11
|
+
sizeBytes?: number;
|
|
12
|
+
updatedAt?: string | number;
|
|
13
|
+
isFolder?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface WorkspaceLookupResult {
|
|
16
|
+
user?: any;
|
|
17
|
+
workspace: any;
|
|
18
|
+
connection?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface WorkspaceListResult {
|
|
21
|
+
success: boolean;
|
|
22
|
+
workspaces: any[];
|
|
23
|
+
activeWorkspaceId?: string | null;
|
|
24
|
+
storage_connections?: any[];
|
|
25
|
+
}
|
|
26
|
+
export interface WorkspaceMutationResult {
|
|
27
|
+
success: boolean;
|
|
28
|
+
workspace?: any;
|
|
29
|
+
workspaces?: any[];
|
|
30
|
+
}
|
|
31
|
+
export interface WorkspaceService {
|
|
32
|
+
readonly type: 'working';
|
|
33
|
+
findWorkspace(workspaceId: string, env?: Record<string, unknown>): Promise<WorkspaceLookupResult>;
|
|
34
|
+
listWorkspaces(userId?: string, env?: Record<string, unknown>): Promise<WorkspaceListResult>;
|
|
35
|
+
createWorkspace(userId: string, data: any, env?: Record<string, unknown>): Promise<WorkspaceMutationResult>;
|
|
36
|
+
updateWorkspace(userId: string, params: any, env?: Record<string, unknown>): Promise<WorkspaceMutationResult>;
|
|
37
|
+
deleteWorkspace(userId: string, workspaceId: string, env?: Record<string, unknown>): Promise<{
|
|
38
|
+
success: boolean;
|
|
39
|
+
workspaces?: any[];
|
|
40
|
+
}>;
|
|
41
|
+
readFile(workspaceId: string, filePath: string, env?: Record<string, unknown>): Promise<Uint8Array | string>;
|
|
42
|
+
writeFile(workspaceId: string, filePath: string, content: Uint8Array | string, env?: Record<string, unknown>): Promise<{
|
|
43
|
+
success: boolean;
|
|
44
|
+
path: string;
|
|
45
|
+
sizeBytes?: number;
|
|
46
|
+
}>;
|
|
47
|
+
deleteFile(workspaceId: string, filePath: string, env?: Record<string, unknown>): Promise<{
|
|
48
|
+
success: boolean;
|
|
49
|
+
}>;
|
|
50
|
+
listFiles(workspaceId: string, subfolder?: string, env?: Record<string, unknown>): Promise<WorkspaceFileEntry[]>;
|
|
51
|
+
sync?(workspaceId: string, options?: any, env?: Record<string, unknown>): Promise<WorkspaceSyncSummary>;
|
|
52
|
+
}
|