@ultrst-armada/kloks 1.26.3 → 1.26.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/index.d.ts +16 -10
- package/index.js +3 -0
- package/package.json +60 -7
- package/packages/audio-midi/dist/{audioClipEngine-BOT33JKI.js → audioClipEngine-LKZRWTJ3.js} +2 -2
- package/packages/audio-midi/dist/{audioInputManager-BLDGGLAR.js → audioInputManager-5BNHLOJM.js} +1 -1
- package/packages/audio-midi/dist/{chunk-N55BWOC6.js → chunk-M4JFGTHE.js} +1 -1
- package/packages/audio-midi/dist/{chunk-3GRGELA4.js → chunk-OUOFTYHY.js} +50 -11
- package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Compressor/manifest.json +7 -0
- package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Delay/manifest.json +7 -0
- package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Equalizer/manifest.json +7 -0
- package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Limiter/manifest.json +7 -0
- package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/MultibandCompressor/manifest.json +7 -0
- package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Reverb/manifest.json +7 -0
- package/packages/audio-midi/dist/engine/audio/entities/AudioEffects/functionalities/Saturation/manifest.json +7 -0
- package/packages/audio-midi/dist/index.d.ts +10 -1
- package/packages/audio-midi/dist/index.js +36 -20
- package/packages/audio-midi/package.json +8 -0
- package/packages/backend/dist/ai-models/index.js +2 -2
- package/packages/backend/dist/ai-routing/index.js +3 -3
- package/packages/backend/dist/api/BaseApiRoute.d.ts +1 -1
- package/packages/backend/dist/api/index.js +1 -1
- package/packages/backend/dist/auth/CanonicalAuthClient.d.ts +6 -6
- package/packages/backend/dist/auth/index.js +2 -1
- package/packages/backend/dist/chunk-2Y2EXYDK.js +0 -0
- package/packages/backend/dist/{chunk-3S2NSIFA.js → chunk-3FZSYSJC.js} +16 -10
- package/packages/backend/dist/chunk-5F5V7NAG.js +54 -0
- package/packages/backend/dist/{chunk-WAQDOIGQ.js → chunk-BVXGUHLZ.js} +1 -1
- package/packages/backend/dist/chunk-DAG2L4RN.js +0 -0
- package/packages/backend/dist/{chunk-KPZQUA7R.js → chunk-G7PPVOFP.js} +16 -53
- package/packages/backend/dist/{chunk-GKQ42CYW.js → chunk-H6ET362U.js} +3 -3
- package/packages/backend/dist/chunk-HUY4272L.js +69 -0
- package/packages/backend/dist/chunk-JQKKMUCT.js +0 -0
- package/packages/backend/dist/{chunk-PT6J6UEU.js → chunk-LMAU62ZG.js} +4 -4
- package/packages/backend/dist/{chunk-EDKCP5CQ.js → chunk-MZK362U4.js} +16 -16
- package/packages/backend/dist/{chunk-U4UI6KK4.js → chunk-NGEB3CF5.js} +3 -35
- package/packages/backend/dist/{chunk-3VWBZEMG.js → chunk-NTKUQVCQ.js} +4 -5
- package/packages/backend/dist/chunk-NY2SQOXI.js +34 -0
- package/packages/backend/dist/{chunk-JOTDEFRG.js → chunk-OXEP3AP6.js} +5 -4
- package/packages/backend/dist/chunk-RABSY2JU.js +0 -0
- package/packages/backend/dist/{chunk-GWCLYVJT.js → chunk-RFPGUJAZ.js} +9 -9
- package/packages/backend/dist/{chunk-TWCEVES2.js → chunk-WC6EPW3A.js} +1 -1
- package/packages/backend/dist/{chunk-FU6TYLI2.js → chunk-Y5ENDXU2.js} +72 -129
- package/packages/backend/dist/{chunk-EO5VUYYU.js → chunk-Y7ZE6D5H.js} +4 -4
- package/packages/backend/dist/{chunk-RCCQ7IRM.js → chunk-ZBNSK26X.js} +2 -2
- package/packages/backend/dist/control-plane/AuditLogger.d.ts +1 -1
- package/packages/backend/dist/control-plane/ControlPlaneManager.d.ts +1 -1
- package/packages/backend/dist/control-plane/index.js +1 -1
- package/packages/backend/dist/core/dynamicRouteResolver.d.ts +1 -1
- package/packages/backend/dist/core/routesCore.d.ts +1 -1
- package/packages/backend/dist/core/vercelTransformer.d.ts +1 -1
- package/packages/backend/dist/core/workspaceCore.d.ts +2 -2
- package/packages/backend/dist/data/BaseDataProvider.d.ts +1 -1
- package/packages/backend/dist/development/index.js +30 -17
- package/packages/backend/dist/development/playwrightInspectionService.js +1 -2
- package/packages/backend/dist/development/webContainerService.js +1 -2
- package/packages/backend/dist/index.d.ts +4 -24
- package/packages/backend/dist/index.js +12 -4655
- package/packages/backend/dist/krnl-ai-services.d.ts +9 -9
- package/packages/backend/dist/krnl-ai-services.js +5 -6
- package/packages/backend/dist/krnl-services.js +8 -7
- package/packages/backend/dist/node.d.ts +28 -0
- package/packages/backend/dist/node.js +4761 -0
- package/packages/backend/dist/resourceEngine/BaseResourceFetcher.d.ts +3 -3
- package/packages/backend/dist/resourceEngine/CloudflareResourceFetcher.d.ts +3 -3
- package/packages/backend/dist/resourceEngine/ResourceFetcherRegistry.d.ts +5 -5
- package/packages/backend/dist/resourceEngine/VercelResourceFetcher.d.ts +3 -3
- package/packages/backend/dist/resourceEngine/adapters/CloudflareResourceAdapter.d.ts +2 -2
- package/packages/backend/dist/resourceEngine/adapters/VercelResourceAdapter.d.ts +2 -2
- package/packages/backend/dist/resourceEngine/calculator/UniversalResourceCalculator.d.ts +1 -1
- package/packages/backend/dist/resourceEngine/calculator/types.d.ts +1 -1
- package/packages/backend/dist/resourceEngine/index.d.ts +6 -6
- package/packages/backend/dist/resourceEngine/types/depm/entities.d.ts +2 -2
- package/packages/backend/dist/resourceEngine/types.d.ts +1 -1
- package/packages/backend/dist/resourceEngine/weightEngine/helpers.d.ts +1 -1
- package/packages/backend/dist/resourceEngine/weightEngine/index.d.ts +2 -2
- package/packages/backend/dist/resourceEngine/weightEngine/weightEngine.d.ts +1 -1
- package/packages/backend/dist/resourceEngine/weightEngine.d.ts +1 -1
- package/packages/backend/dist/server/services/assetPoolService/assetPoolService.d.ts +3 -3
- package/packages/backend/dist/server/services/projectService/projectService.d.ts +3 -3
- package/packages/backend/dist/services/index.d.ts +2 -10
- package/packages/backend/dist/services/index.js +1 -37
- package/packages/backend/dist/services/node.d.ts +10 -0
- package/packages/backend/dist/services/node.js +38 -0
- package/packages/backend/dist/srkl/index.js +1 -1
- package/packages/backend/dist/storage/BaseStorageAdapter.d.ts +1 -1
- package/packages/backend/dist/storage/S3Adapter.d.ts +5 -0
- package/packages/backend/dist/storage/googleDriveSdk.d.ts +1 -7
- package/packages/backend/dist/storage/index.d.ts +1 -10
- package/packages/backend/dist/storage/index.js +5 -40
- package/packages/backend/dist/storage/node.d.ts +14 -0
- package/packages/backend/dist/storage/node.js +66 -0
- package/packages/backend/dist/workspace/WorkspaceCloneSyncEngine.d.ts +1 -1
- package/packages/backend/dist/workspace/index.d.ts +1 -5
- package/packages/backend/dist/workspace/index.js +4 -24
- package/packages/backend/dist/workspace/node.d.ts +8 -0
- package/packages/backend/dist/workspace/node.js +30 -0
- package/packages/backend/package.json +35 -3
- package/packages/functions/dist/base-DDYO-DzM.d.ts +64 -0
- package/packages/functions/dist/base.d.ts +1 -0
- package/packages/functions/dist/base.js +6 -0
- package/packages/functions/dist/chunk-6EHIZHO4.js +555 -0
- package/packages/functions/dist/chunk-Z4LM5TOJ.js +114 -0
- package/packages/functions/dist/index.d.ts +4 -373
- package/packages/functions/dist/index.js +53 -1693
- package/packages/functions/dist/node.d.ts +110 -0
- package/packages/functions/dist/node.js +442 -0
- package/packages/functions/dist/portable.d.ts +207 -0
- package/packages/functions/dist/portable.js +94 -0
- package/packages/functions/package.json +23 -1
- package/packages/{functions/dist/chunk-K6H7T3EP.js → services/dist/chunk-P54QSKOQ.js} +1 -3
- package/packages/{state-graph/dist/dist-es-TLPJYZTE.js → services/dist/dist-es-2P6LFFZL.js} +1 -1
- package/packages/{state-graph/dist/dist-es-5IACWOIO.js → services/dist/dist-es-OZCE67MW.js} +1 -1
- package/packages/services/dist/{dist-es-3DGJJFOU.js → dist-es-RUJB3ALN.js} +3 -3
- package/packages/{state-graph/dist/dist-es-QZ6GKMM7.js → services/dist/dist-es-SSJGP5AI.js} +4 -4
- package/packages/services/dist/{loadSso-M3ZIZDGO.js → loadSso-3PZYFUB7.js} +1 -1
- package/packages/{functions/dist/signin-YXALFRYB.js → services/dist/signin-WYPGSXHF.js} +1 -1
- package/packages/{state-graph/dist/sso-oidc-NXFKRL6O.js → services/dist/sso-oidc-PQMIMLJU.js} +1 -1
- package/packages/{state-graph/dist/sts-MICPT37B.js → services/dist/sts-Z7LR3AZH.js} +1 -1
- package/packages/state-graph/dist/browser.d.ts +8 -18
- package/packages/state-graph/dist/browser.js +334 -23
- package/packages/state-graph/dist/browser.test.d.ts +1 -0
- package/packages/state-graph/dist/{chunk-KG6QYS26.js → chunk-5KP74NMF.js} +80 -80
- package/packages/state-graph/dist/{chunk-4UVGXFEM.js → chunk-LVULR5M4.js} +1 -1
- package/packages/state-graph/dist/{chunk-S22PMERU.js → chunk-OXUDG6HE.js} +1 -1
- package/packages/state-graph/dist/{chunk-2CQQGFMF.js → chunk-UKTICGGV.js} +2616 -432
- package/packages/state-graph/dist/domain/index.js +2 -3
- package/packages/state-graph/dist/engine/AudioConcepts.d.ts +1 -1
- package/packages/state-graph/dist/engine/GraphConcepts.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/archetypes/audioArchetypes.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/archetypes/effectArchetypes.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/archetypes/primitiveArchetypes.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/archetypes/routingArchetypes.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/archetypes/triggerModuleArchetypes.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/assets/containerSprites.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/assets/effectSprites.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/assets/primitiveSprites.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/assets/routingSprites.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/canonicalIo/CanonicalAudioInputEndpoint.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/canonicalIo/CanonicalMidiInputEndpoint.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/canonicalIo/topLevelIoRegistry.d.ts +6 -6
- package/packages/state-graph/dist/engine/core/canonicalIo/types.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/graphDataService.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/hierarchy/index.d.ts +11 -11
- package/packages/state-graph/dist/engine/core/hierarchy/nodes/GraphNodeParent.d.ts +3 -3
- package/packages/state-graph/dist/engine/core/hierarchy/nodes/GraphNodeTypes.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/hierarchy/sockets/GraphSocketParent.d.ts +2 -2
- package/packages/state-graph/dist/engine/core/hierarchy/sockets/GraphSocketTypes.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/hierarchy/ui/UIElementBase.d.ts +3 -3
- package/packages/state-graph/dist/engine/core/hierarchy/wires/GraphWireParent.d.ts +2 -2
- package/packages/state-graph/dist/engine/core/hierarchy/wires/GraphWireTypes.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/nodeArchetypeRegistry.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/socketRegistry/containersSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/socketRegistry/customRegistry.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/socketRegistry/landmarksSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/socketRegistry/primitivesSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/socketRegistry/processorsSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/sockets/arrangementControlSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/sockets/audioSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/sockets/folderButtonSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/sockets/moduleSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/sockets/playbackSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/sockets/primitiveSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/sockets/routingSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/sockets/samplerSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/core/sockets/stripSockets.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/arrangementFactory.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/codeNodeParser/codeNodeParser.d.ts +2 -2
- package/packages/state-graph/dist/engine/functions/codeNodeParser/helpers.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/connection/portMatching.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/connection/signalCompatibility/helpers.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/connection/signalCompatibility/signalCompatibility.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/connection/signalCompatibility.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/connection/wireValidation.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/containerClipSync.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/containerFactory/containerFactory.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/effectLogic.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/graphManager/graphManager.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/graphManager.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/nodeFactory/nodeFactory.d.ts +8 -8
- package/packages/state-graph/dist/engine/functions/nodeFactory.d.ts +2 -2
- package/packages/state-graph/dist/engine/functions/signalTable/audioMidiSignals.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/signalTable/canonicalEffectsTable.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/signalTable/dataSignals.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner/helpers.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner/socketCompatibilitySpawner.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/socketCompatibilitySpawner.d.ts +1 -1
- package/packages/state-graph/dist/engine/functions/spawnNodeFactory.d.ts +1 -1
- package/packages/state-graph/dist/engine/predictive/predictiveGraphEngine/helpers.d.ts +1 -1
- package/packages/state-graph/dist/engine/predictive/predictiveGraphEngine.d.ts +2 -2
- package/packages/state-graph/dist/engine/types/auth.d.ts +1 -1
- package/packages/state-graph/dist/engine/types/hardwareBus.d.ts +1 -1
- package/packages/state-graph/dist/engine/types/legacyTypes.d.ts +1 -1
- package/packages/state-graph/dist/engine/types/nodesArrangement.d.ts +2 -2
- package/packages/state-graph/dist/engine/types/nodesAudio.d.ts +5 -5
- package/packages/state-graph/dist/engine/types/nodesControl.d.ts +2 -2
- package/packages/state-graph/dist/engine/types/nodesPlayback.d.ts +2 -2
- package/packages/state-graph/dist/engine/types/nodesPrimitives.d.ts +6 -6
- package/packages/state-graph/dist/engine/types/nodesRouting.d.ts +2 -2
- package/packages/state-graph/dist/engine/types/sceneData.d.ts +2 -2
- package/packages/state-graph/dist/engine/types/sceneState.d.ts +4 -4
- package/packages/state-graph/dist/engine/types/signals.d.ts +2 -2
- package/packages/state-graph/dist/engine/types/stripsTypes.d.ts +2 -2
- package/packages/state-graph/dist/index.js +110 -2850
- package/packages/state-graph/dist/rules/index.js +0 -1
- package/packages/state-graph/dist/spatial/index.js +0 -1
- package/packages/state-graph/dist/state/index.js +0 -1
- package/packages/state-graph/dist/store/CommandApi.d.ts +2 -2
- package/packages/state-graph/dist/store/index.js +2 -3
- package/packages/state-graph/package.json +7 -2
- package/scripts/normalize-package-declarations.mjs +63 -0
- package/packages/backend/dist/chunk-SXDYW3QA.js +0 -579
- package/packages/functions/dist/bowser-F6LIZBYW.js +0 -2821
- package/packages/functions/dist/chunk-34KJBG4F.js +0 -357
- package/packages/functions/dist/chunk-EAQYK3U2.js +0 -41
- package/packages/functions/dist/chunk-IOAPEUC7.js +0 -3424
- package/packages/functions/dist/chunk-J64ZDIIX.js +0 -2753
- package/packages/functions/dist/chunk-N3MSTUJN.js +0 -4785
- package/packages/functions/dist/chunk-VP26OHBN.js +0 -480
- package/packages/functions/dist/chunk-VRLVLNLG.js +0 -1727
- package/packages/functions/dist/dist-TKZ5TDRN.js +0 -1124
- package/packages/functions/dist/dist-W7ZJS3LZ.js +0 -899
- package/packages/functions/dist/dist-es-3DGJJFOU.js +0 -338
- package/packages/functions/dist/dist-es-5IACWOIO.js +0 -69
- package/packages/functions/dist/dist-es-BWLDIBIA.js +0 -47
- package/packages/functions/dist/dist-es-DO3F4OBN.js +0 -377
- package/packages/functions/dist/dist-es-NN7AKU7P.js +0 -175
- package/packages/functions/dist/dist-es-QZ6GKMM7.js +0 -220
- package/packages/functions/dist/dist-es-R3VEGXOP.js +0 -87
- package/packages/functions/dist/dist-es-TLPJYZTE.js +0 -294
- package/packages/functions/dist/event-streams-DRE6QVD6.js +0 -940
- package/packages/functions/dist/loadSso-M3ZIZDGO.js +0 -586
- package/packages/functions/dist/multipart-parser-YYFFJ4QD.js +0 -371
- package/packages/functions/dist/src-2QCYQXYH.js +0 -1396
- package/packages/functions/dist/sso-oidc-NXFKRL6O.js +0 -847
- package/packages/functions/dist/sts-MICPT37B.js +0 -1253
- package/packages/functions/dist/transformers.node-R6VHTGC2.js +0 -43879
- package/packages/services/dist/chunk-K6H7T3EP.js +0 -1991
- package/packages/services/dist/dist-es-5IACWOIO.js +0 -69
- package/packages/services/dist/dist-es-QZ6GKMM7.js +0 -220
- package/packages/services/dist/dist-es-TLPJYZTE.js +0 -294
- package/packages/services/dist/signin-YXALFRYB.js +0 -831
- package/packages/services/dist/sso-oidc-NXFKRL6O.js +0 -847
- package/packages/services/dist/sts-MICPT37B.js +0 -1253
- package/packages/state-graph/dist/bowser-F6LIZBYW.js +0 -2821
- package/packages/state-graph/dist/chunk-34KJBG4F.js +0 -357
- package/packages/state-graph/dist/chunk-EAQYK3U2.js +0 -41
- package/packages/state-graph/dist/chunk-IOAPEUC7.js +0 -3424
- package/packages/state-graph/dist/chunk-J64ZDIIX.js +0 -2753
- package/packages/state-graph/dist/chunk-K6H7T3EP.js +0 -1991
- package/packages/state-graph/dist/chunk-N3MSTUJN.js +0 -4785
- package/packages/state-graph/dist/chunk-VP26OHBN.js +0 -480
- package/packages/state-graph/dist/chunk-VRLVLNLG.js +0 -1727
- package/packages/state-graph/dist/dist-TKZ5TDRN.js +0 -1124
- package/packages/state-graph/dist/dist-W7ZJS3LZ.js +0 -899
- package/packages/state-graph/dist/dist-es-3DGJJFOU.js +0 -338
- package/packages/state-graph/dist/dist-es-BWLDIBIA.js +0 -47
- package/packages/state-graph/dist/dist-es-DO3F4OBN.js +0 -377
- package/packages/state-graph/dist/dist-es-NN7AKU7P.js +0 -175
- package/packages/state-graph/dist/dist-es-R3VEGXOP.js +0 -87
- package/packages/state-graph/dist/event-streams-DRE6QVD6.js +0 -940
- package/packages/state-graph/dist/loadSso-M3ZIZDGO.js +0 -586
- package/packages/state-graph/dist/multipart-parser-YYFFJ4QD.js +0 -371
- package/packages/state-graph/dist/signin-YXALFRYB.js +0 -831
- package/packages/state-graph/dist/src-2QCYQXYH.js +0 -1396
- package/packages/state-graph/dist/transformers.node-R6VHTGC2.js +0 -43879
- package/packages/backend/dist/{chunk-LMWXONZG.js → chunk-EREYT3WJ.js} +3 -3
|
@@ -1,6 +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';
|
|
1
|
+
export { LuthAuthClient, createLuthAuthClient, resolveClientOrigin, resolveClientEnvironment, } from '@dinilmusick/gutts/auth';
|
|
2
|
+
export type { DeploymentEnvironment, EmailSignInCredentials, EmailSignUpData, GoogleSignInOptions, LuthAuthClientConfig, LuthAuthTokenStore, LuthSessionResult, RegisterApplicationResult, LuthUser, LuthSession, } from '@dinilmusick/gutts/auth';
|
|
3
|
+
export { LuthAuthError } from '@dinilmusick/gutts/auth';
|
|
4
|
+
export { LuthAuthClient as CanonicalAuthClient } from '@dinilmusick/gutts/auth';
|
|
5
|
+
export { createLuthAuthClient as createCanonicalAuthClient } from '@dinilmusick/gutts/auth';
|
|
6
|
+
export type { LuthUser as CanonicalAuthUser, LuthSession as CanonicalAuthSession } from '@dinilmusick/gutts/auth';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "../chunk-JQKKMUCT.js";
|
|
1
2
|
import {
|
|
2
3
|
LuthAuthClient,
|
|
3
4
|
LuthAuthClient2,
|
|
@@ -6,7 +7,7 @@ import {
|
|
|
6
7
|
createLuthAuthClient2,
|
|
7
8
|
resolveClientEnvironment,
|
|
8
9
|
resolveClientOrigin
|
|
9
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-Y7ZE6D5H.js";
|
|
10
11
|
import {
|
|
11
12
|
loginSystemUser,
|
|
12
13
|
resolveUserFromToken
|
|
File without changes
|
|
@@ -1,34 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
getGoogleSdk
|
|
3
|
+
} from "./chunk-G7PPVOFP.js";
|
|
4
4
|
|
|
5
5
|
// src/storage/GoogleDriveOAuth.ts
|
|
6
6
|
var GOOGLE_DRIVE_STORAGE_SCOPE = "https://www.googleapis.com/auth/drive";
|
|
7
7
|
var GOOGLE_DRIVE_FILE_SCOPE = "https://www.googleapis.com/auth/drive.file";
|
|
8
|
-
function createOAuthClient(config) {
|
|
8
|
+
async function createOAuthClient(config) {
|
|
9
9
|
if (!config.clientId?.trim()) throw new Error("Google OAuth client ID is required.");
|
|
10
10
|
if (!config.redirectUri?.trim()) throw new Error("Google OAuth redirect URI is required.");
|
|
11
|
+
const google = await getGoogleSdk();
|
|
11
12
|
return new google.auth.OAuth2(config.clientId, config.clientSecret, config.redirectUri);
|
|
12
13
|
}
|
|
13
14
|
function createGoogleDriveAuthorizationUrl(config, state, codeChallenge) {
|
|
15
|
+
if (!config.clientId?.trim()) throw new Error("Google OAuth client ID is required.");
|
|
16
|
+
if (!config.redirectUri?.trim()) throw new Error("Google OAuth redirect URI is required.");
|
|
14
17
|
if (!state?.trim()) throw new Error("A non-empty OAuth state value is required.");
|
|
15
18
|
if (codeChallenge !== void 0 && !codeChallenge.trim()) {
|
|
16
19
|
throw new Error("PKCE code challenge cannot be empty.");
|
|
17
20
|
}
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
prompt: "consent",
|
|
22
|
-
include_granted_scopes: true,
|
|
21
|
+
const params = new URLSearchParams({
|
|
22
|
+
client_id: config.clientId,
|
|
23
|
+
redirect_uri: config.redirectUri,
|
|
23
24
|
response_type: "code",
|
|
24
|
-
scope: config.scopes?.length ? config.scopes : [GOOGLE_DRIVE_STORAGE_SCOPE],
|
|
25
|
+
scope: (config.scopes?.length ? config.scopes : [GOOGLE_DRIVE_STORAGE_SCOPE]).join(" "),
|
|
25
26
|
state,
|
|
27
|
+
access_type: "offline",
|
|
28
|
+
prompt: "consent",
|
|
29
|
+
include_granted_scopes: "true",
|
|
26
30
|
...codeChallenge ? { code_challenge: codeChallenge, code_challenge_method: "S256" } : {}
|
|
27
31
|
});
|
|
32
|
+
return `https://accounts.google.com/o/oauth2/v2/auth?${params.toString()}`;
|
|
28
33
|
}
|
|
29
34
|
async function exchangeGoogleDriveCode(config, code, codeVerifier, existingRefreshToken) {
|
|
30
35
|
if (!code?.trim()) throw new Error("Google OAuth authorization code is required.");
|
|
31
|
-
const client = createOAuthClient(config);
|
|
36
|
+
const client = await createOAuthClient(config);
|
|
32
37
|
try {
|
|
33
38
|
const { tokens } = await client.getToken({
|
|
34
39
|
code,
|
|
@@ -54,6 +59,7 @@ async function refreshGoogleDriveAccessToken(clientId, refreshToken, clientSecre
|
|
|
54
59
|
if (!clientId?.trim() || !refreshToken?.trim()) {
|
|
55
60
|
throw new Error("Google Drive refresh credentials are incomplete.");
|
|
56
61
|
}
|
|
62
|
+
const google = await getGoogleSdk();
|
|
57
63
|
const client = new google.auth.OAuth2(clientId, clientSecret, redirectUri);
|
|
58
64
|
client.setCredentials({ refresh_token: refreshToken });
|
|
59
65
|
try {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// src/storage/BaseStorageAdapter.ts
|
|
2
|
+
import { SkipoBase } from "@ultrst-armada/kloks/functions/base";
|
|
3
|
+
var BaseStorageAdapter = class extends SkipoBase {
|
|
4
|
+
config;
|
|
5
|
+
constructor(config) {
|
|
6
|
+
super({ name: "BaseStorageAdapter" });
|
|
7
|
+
this.config = config;
|
|
8
|
+
}
|
|
9
|
+
async deleteFolder(pathStr) {
|
|
10
|
+
const items = await this.list(pathStr);
|
|
11
|
+
let count = 0;
|
|
12
|
+
for (const item of items) {
|
|
13
|
+
await this.delete(item.path);
|
|
14
|
+
count++;
|
|
15
|
+
}
|
|
16
|
+
return { success: true, deletedCount: count };
|
|
17
|
+
}
|
|
18
|
+
async renameFolder(oldPath, newPath) {
|
|
19
|
+
const items = await this.list(oldPath);
|
|
20
|
+
let count = 0;
|
|
21
|
+
for (const item of items) {
|
|
22
|
+
const rel = item.path.startsWith(oldPath) ? item.path.slice(oldPath.length).replace(/^\/+/, "") : item.path;
|
|
23
|
+
const target = `${newPath.replace(/\/+$/, "")}/${rel}`;
|
|
24
|
+
const data = await this.read(item.path);
|
|
25
|
+
await this.write(target, data);
|
|
26
|
+
await this.delete(item.path);
|
|
27
|
+
count++;
|
|
28
|
+
}
|
|
29
|
+
return { success: true, movedCount: count };
|
|
30
|
+
}
|
|
31
|
+
async ensureDirectory(pathStr) {
|
|
32
|
+
await this.mkdir(pathStr);
|
|
33
|
+
}
|
|
34
|
+
async testConnection() {
|
|
35
|
+
const start = performance.now();
|
|
36
|
+
try {
|
|
37
|
+
await this.list("");
|
|
38
|
+
return { ok: true, latencyMs: Math.round(performance.now() - start) };
|
|
39
|
+
} catch (e) {
|
|
40
|
+
return { ok: false, latencyMs: Math.round(performance.now() - start), error: e.message };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
normalizePath(p) {
|
|
44
|
+
return p.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
45
|
+
}
|
|
46
|
+
getExtension(p) {
|
|
47
|
+
const parts = p.split(".");
|
|
48
|
+
return parts.length > 1 ? parts[parts.length - 1] : "";
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
BaseStorageAdapter
|
|
54
|
+
};
|
|
File without changes
|
|
@@ -1,56 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
config;
|
|
5
|
-
constructor(config) {
|
|
6
|
-
super({ name: "BaseStorageAdapter" });
|
|
7
|
-
this.config = config;
|
|
8
|
-
}
|
|
9
|
-
async deleteFolder(pathStr) {
|
|
10
|
-
const items = await this.list(pathStr);
|
|
11
|
-
let count = 0;
|
|
12
|
-
for (const item of items) {
|
|
13
|
-
await this.delete(item.path);
|
|
14
|
-
count++;
|
|
15
|
-
}
|
|
16
|
-
return { success: true, deletedCount: count };
|
|
17
|
-
}
|
|
18
|
-
async renameFolder(oldPath, newPath) {
|
|
19
|
-
const items = await this.list(oldPath);
|
|
20
|
-
let count = 0;
|
|
21
|
-
for (const item of items) {
|
|
22
|
-
const rel = item.path.startsWith(oldPath) ? item.path.slice(oldPath.length).replace(/^\/+/, "") : item.path;
|
|
23
|
-
const target = `${newPath.replace(/\/+$/, "")}/${rel}`;
|
|
24
|
-
const data = await this.read(item.path);
|
|
25
|
-
await this.write(target, data);
|
|
26
|
-
await this.delete(item.path);
|
|
27
|
-
count++;
|
|
28
|
-
}
|
|
29
|
-
return { success: true, movedCount: count };
|
|
30
|
-
}
|
|
31
|
-
async ensureDirectory(pathStr) {
|
|
32
|
-
await this.mkdir(pathStr);
|
|
33
|
-
}
|
|
34
|
-
async testConnection() {
|
|
35
|
-
const start = performance.now();
|
|
36
|
-
try {
|
|
37
|
-
await this.list("");
|
|
38
|
-
return { ok: true, latencyMs: Math.round(performance.now() - start) };
|
|
39
|
-
} catch (e) {
|
|
40
|
-
return { ok: false, latencyMs: Math.round(performance.now() - start), error: e.message };
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
normalizePath(p) {
|
|
44
|
-
return p.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
45
|
-
}
|
|
46
|
-
getExtension(p) {
|
|
47
|
-
const parts = p.split(".");
|
|
48
|
-
return parts.length > 1 ? parts[parts.length - 1] : "";
|
|
49
|
-
}
|
|
50
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
BaseStorageAdapter
|
|
3
|
+
} from "./chunk-5F5V7NAG.js";
|
|
51
4
|
|
|
52
5
|
// src/storage/googleDriveSdk.ts
|
|
53
|
-
|
|
6
|
+
var googleSdkPromise;
|
|
7
|
+
async function getGoogleSdk() {
|
|
8
|
+
if (!googleSdkPromise) {
|
|
9
|
+
googleSdkPromise = import("googleapis").then((storage) => storage.google).catch((error) => {
|
|
10
|
+
googleSdkPromise = void 0;
|
|
11
|
+
throw error;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return googleSdkPromise;
|
|
15
|
+
}
|
|
54
16
|
|
|
55
17
|
// src/storage/GoogleDriveAdapter.ts
|
|
56
18
|
import { Readable } from "stream";
|
|
@@ -80,6 +42,7 @@ var GoogleDriveAdapter = class extends BaseStorageAdapter {
|
|
|
80
42
|
if (this.auth) return this.auth;
|
|
81
43
|
if (this.authPromise) return this.authPromise;
|
|
82
44
|
this.authPromise = (async () => {
|
|
45
|
+
const google = await getGoogleSdk();
|
|
83
46
|
const client = new google.auth.OAuth2(
|
|
84
47
|
this.config.googleClientId,
|
|
85
48
|
this.runtimeAuth.clientSecret,
|
|
@@ -130,6 +93,7 @@ var GoogleDriveAdapter = class extends BaseStorageAdapter {
|
|
|
130
93
|
if (this.credentialPersistenceError) throw this.credentialPersistenceError;
|
|
131
94
|
return this.client;
|
|
132
95
|
}
|
|
96
|
+
const google = await getGoogleSdk();
|
|
133
97
|
const auth = await this.getAuth();
|
|
134
98
|
const token = await auth.getAccessToken();
|
|
135
99
|
if (this.pendingCredentialPersistence) await this.pendingCredentialPersistence;
|
|
@@ -400,7 +364,6 @@ var GoogleDriveAdapter = class extends BaseStorageAdapter {
|
|
|
400
364
|
};
|
|
401
365
|
|
|
402
366
|
export {
|
|
403
|
-
|
|
404
|
-
google,
|
|
367
|
+
getGoogleSdk,
|
|
405
368
|
GoogleDriveAdapter
|
|
406
369
|
};
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
WebContainerRuntime,
|
|
3
3
|
resolveWebContainerCommand
|
|
4
4
|
} from "./chunk-CA5HVC4X.js";
|
|
5
|
+
|
|
6
|
+
// src/development/webContainerService.ts
|
|
5
7
|
import {
|
|
6
8
|
createService,
|
|
7
9
|
createServiceDefinition
|
|
8
|
-
} from "
|
|
9
|
-
|
|
10
|
-
// src/development/webContainerService.ts
|
|
10
|
+
} from "@ultrst-armada/krnl";
|
|
11
11
|
var runtime = new WebContainerRuntime();
|
|
12
12
|
var WebContainerServiceDefinition = createServiceDefinition({
|
|
13
13
|
id: "kloks.backend.webContainer",
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// src/storage/b2Endpoint.ts
|
|
2
|
+
function isSecretMasked(str) {
|
|
3
|
+
return Boolean(str && (str.includes("\u2022") || str.includes("***")));
|
|
4
|
+
}
|
|
5
|
+
function resolveBackblazeEndpoint(inputEndpointOrRegion, keyId) {
|
|
6
|
+
let raw = (inputEndpointOrRegion || "").trim().toLowerCase();
|
|
7
|
+
raw = raw.replace(/^https?:\/\//, "").replace(/[\/?#].*$/, "").trim();
|
|
8
|
+
const endpointMatch = raw.match(/(?:s3\.)?([a-z0-9-]+)\.backblazeb2\.com/i);
|
|
9
|
+
if (endpointMatch) {
|
|
10
|
+
const region = endpointMatch[1];
|
|
11
|
+
return {
|
|
12
|
+
region,
|
|
13
|
+
endpoint: `https://s3.${region}.backblazeb2.com`
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
if (raw && /^[a-z0-9-]+$/.test(raw) && !raw.includes(".")) {
|
|
17
|
+
return {
|
|
18
|
+
region: raw,
|
|
19
|
+
endpoint: `https://s3.${raw}.backblazeb2.com`
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (raw && raw.includes(".")) {
|
|
23
|
+
return {
|
|
24
|
+
region: "us-west-004",
|
|
25
|
+
endpoint: `https://${raw}`
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
let derivedRegion = "us-west-004";
|
|
29
|
+
if (keyId) {
|
|
30
|
+
const cleanKey = keyId.trim();
|
|
31
|
+
if (cleanKey.startsWith("005")) derivedRegion = "us-east-005";
|
|
32
|
+
else if (cleanKey.startsWith("004")) derivedRegion = "us-west-004";
|
|
33
|
+
else if (cleanKey.startsWith("003")) derivedRegion = "eu-central-003";
|
|
34
|
+
else if (cleanKey.startsWith("002")) derivedRegion = "us-west-002";
|
|
35
|
+
else if (cleanKey.startsWith("001")) derivedRegion = "us-west-001";
|
|
36
|
+
else if (cleanKey.startsWith("000")) derivedRegion = "us-west-000";
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
region: derivedRegion,
|
|
40
|
+
endpoint: `https://s3.${derivedRegion}.backblazeb2.com`
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function normalizeBackblazeCredentials(inputKeyId, inputAppKey) {
|
|
44
|
+
let keyId = (inputKeyId || "").trim();
|
|
45
|
+
let appKey = (inputAppKey || "").trim();
|
|
46
|
+
const rawCombined = `${keyId}
|
|
47
|
+
${appKey}`;
|
|
48
|
+
const idMatch = rawCombined.match(/keyID[:\s]+([0-9a-zA-Z]{12,36})/i);
|
|
49
|
+
const secretMatch = rawCombined.match(/applicationKey[:\s]+([0-9a-zA-Z/+=_-]{20,64})/i);
|
|
50
|
+
if (idMatch && secretMatch) {
|
|
51
|
+
keyId = idMatch[1].trim();
|
|
52
|
+
appKey = secretMatch[1].trim();
|
|
53
|
+
}
|
|
54
|
+
if (keyId.startsWith("K00") && (!appKey || appKey.startsWith("00") || appKey.length === 25)) {
|
|
55
|
+
const temp = keyId;
|
|
56
|
+
keyId = appKey || temp;
|
|
57
|
+
appKey = temp;
|
|
58
|
+
}
|
|
59
|
+
if (isSecretMasked(appKey)) {
|
|
60
|
+
throw new Error("BACKBLAZE_APP_KEY_MASKED: Application Key secret is masked.");
|
|
61
|
+
}
|
|
62
|
+
return { keyId, appKey };
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export {
|
|
66
|
+
isSecretMasked,
|
|
67
|
+
resolveBackblazeEndpoint,
|
|
68
|
+
normalizeBackblazeCredentials
|
|
69
|
+
};
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
aiProviderService
|
|
3
|
+
} from "./chunk-SLR6SIEU.js";
|
|
1
4
|
import {
|
|
2
5
|
modelCatalog,
|
|
3
6
|
modelHealthService
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EREYT3WJ.js";
|
|
5
8
|
import {
|
|
6
9
|
keyStore
|
|
7
10
|
} from "./chunk-P7H6TIEA.js";
|
|
8
|
-
import {
|
|
9
|
-
aiProviderService
|
|
10
|
-
} from "./chunk-SLR6SIEU.js";
|
|
11
11
|
|
|
12
12
|
// src/ai-routing/metricsLogger.ts
|
|
13
13
|
var MetricsLogger = class {
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
workspaceGraphService
|
|
3
|
-
} from "./chunk-WAQDOIGQ.js";
|
|
4
|
-
import {
|
|
5
|
-
getSrklAccounts,
|
|
6
|
-
srklListBackblazeBuckets
|
|
7
|
-
} from "./chunk-RIOYKF3X.js";
|
|
8
|
-
import {
|
|
9
|
-
StorageAdapterFactory
|
|
10
|
-
} from "./chunk-FU6TYLI2.js";
|
|
11
|
-
import {
|
|
12
|
-
b2ListBuckets
|
|
13
|
-
} from "./chunk-4QEMALXF.js";
|
|
14
1
|
import {
|
|
15
2
|
formatCanonicalWorkspaceFolderName,
|
|
16
3
|
sanitizeWorkspaceName
|
|
17
4
|
} from "./chunk-FZKBTF34.js";
|
|
5
|
+
import {
|
|
6
|
+
workspaceGraphService
|
|
7
|
+
} from "./chunk-BVXGUHLZ.js";
|
|
8
|
+
import {
|
|
9
|
+
StorageAdapterFactory
|
|
10
|
+
} from "./chunk-Y5ENDXU2.js";
|
|
18
11
|
import {
|
|
19
12
|
createWorkspace,
|
|
20
13
|
deleteWorkspace,
|
|
@@ -22,6 +15,10 @@ import {
|
|
|
22
15
|
getWorkspaces,
|
|
23
16
|
updateWorkspace
|
|
24
17
|
} from "./chunk-JGUWYVOL.js";
|
|
18
|
+
import {
|
|
19
|
+
getSrklAccounts,
|
|
20
|
+
srklListBackblazeBuckets
|
|
21
|
+
} from "./chunk-RIOYKF3X.js";
|
|
25
22
|
import {
|
|
26
23
|
queryUnifiedDb
|
|
27
24
|
} from "./chunk-JCMB7BIM.js";
|
|
@@ -30,11 +27,14 @@ import {
|
|
|
30
27
|
resolveUserFromToken
|
|
31
28
|
} from "./chunk-2COYZMUJ.js";
|
|
32
29
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./chunk-SXDYW3QA.js";
|
|
30
|
+
b2ListBuckets
|
|
31
|
+
} from "./chunk-4QEMALXF.js";
|
|
36
32
|
|
|
37
33
|
// src/krnl-services.ts
|
|
34
|
+
import {
|
|
35
|
+
createService,
|
|
36
|
+
createServiceDefinition
|
|
37
|
+
} from "@ultrst-armada/krnl";
|
|
38
38
|
var AuthServiceDefinition = createServiceDefinition({
|
|
39
39
|
id: "kloks.backend.auth",
|
|
40
40
|
name: "AuthService",
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
getWorkspaces,
|
|
6
6
|
updateWorkspace
|
|
7
7
|
} from "./chunk-JGUWYVOL.js";
|
|
8
|
+
import {
|
|
9
|
+
GoogleDriveAdapter
|
|
10
|
+
} from "./chunk-G7PPVOFP.js";
|
|
8
11
|
import {
|
|
9
12
|
b2DownloadFile,
|
|
10
13
|
b2ListFileNames,
|
|
11
14
|
b2UploadFile,
|
|
12
15
|
queryUnifiedDb
|
|
13
16
|
} from "./chunk-JCMB7BIM.js";
|
|
14
|
-
import {
|
|
15
|
-
GoogleDriveAdapter
|
|
16
|
-
} from "./chunk-KPZQUA7R.js";
|
|
17
17
|
|
|
18
18
|
// src/workspace/WorkspaceFS.ts
|
|
19
19
|
import { SkipoBase } from "@ultrst-armada/kloks/functions";
|
|
@@ -103,37 +103,6 @@ var SyncEngine = class extends SkipoBase2 {
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
// src/workspace/WorkspaceCloneSyncEngine.ts
|
|
107
|
-
import { SkipoBase as SkipoBase3 } from "@ultrst-armada/kloks/functions";
|
|
108
|
-
var WorkspaceCloneSyncEngine = class extends SkipoBase3 {
|
|
109
|
-
constructor() {
|
|
110
|
-
super({ name: "WorkspaceCloneSyncEngine" });
|
|
111
|
-
}
|
|
112
|
-
async replicateToClones(files, clones, uploadFn) {
|
|
113
|
-
const results = [];
|
|
114
|
-
let totalSynced = 0;
|
|
115
|
-
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
116
|
-
for (const clone of clones) {
|
|
117
|
-
try {
|
|
118
|
-
let count = 0;
|
|
119
|
-
for (const file of files) {
|
|
120
|
-
await uploadFn(clone, file.relPath, file.content, file.contentType);
|
|
121
|
-
count++;
|
|
122
|
-
}
|
|
123
|
-
clone.lastSyncedAt = nowIso;
|
|
124
|
-
clone.filesSynced = count;
|
|
125
|
-
clone.status = "SYNCED";
|
|
126
|
-
results.push({ cloneId: clone.id, label: clone.label, provider: clone.provider, filesSynced: count, status: "SYNCED" });
|
|
127
|
-
totalSynced += count;
|
|
128
|
-
} catch (err) {
|
|
129
|
-
clone.status = "ERROR";
|
|
130
|
-
results.push({ cloneId: clone.id, label: clone.label, provider: clone.provider, filesSynced: 0, status: "ERROR", error: err.message });
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
return { results, totalSynced };
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
|
|
137
106
|
// src/workspace/WorkingWorkspaceService.ts
|
|
138
107
|
import fs2 from "fs";
|
|
139
108
|
import path2 from "path";
|
|
@@ -649,7 +618,6 @@ var remoteWorkspaceService = workingWorkspaceService;
|
|
|
649
618
|
export {
|
|
650
619
|
WorkspaceFS,
|
|
651
620
|
SyncEngine,
|
|
652
|
-
WorkspaceCloneSyncEngine,
|
|
653
621
|
getDefaultWorkingWorkspaceDir,
|
|
654
622
|
getWorkingWorkspaceConfig,
|
|
655
623
|
setWorkingWorkspaceConfig,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createService,
|
|
3
|
-
createServiceDefinition
|
|
4
|
-
} from "./chunk-SXDYW3QA.js";
|
|
5
|
-
|
|
6
1
|
// src/development/playwrightInspectionService.ts
|
|
7
2
|
import { randomUUID } from "crypto";
|
|
8
3
|
import { mkdir, writeFile } from "fs/promises";
|
|
9
4
|
import { dirname, join } from "path";
|
|
5
|
+
import {
|
|
6
|
+
createService,
|
|
7
|
+
createServiceDefinition
|
|
8
|
+
} from "@ultrst-armada/krnl";
|
|
10
9
|
|
|
11
10
|
// src/development/playwrightInspectionSupport.ts
|
|
12
11
|
import { createRequire } from "module";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// src/workspace/WorkspaceCloneSyncEngine.ts
|
|
2
|
+
import { SkipoBase } from "@ultrst-armada/kloks/functions/base";
|
|
3
|
+
var WorkspaceCloneSyncEngine = class extends SkipoBase {
|
|
4
|
+
constructor() {
|
|
5
|
+
super({ name: "WorkspaceCloneSyncEngine" });
|
|
6
|
+
}
|
|
7
|
+
async replicateToClones(files, clones, uploadFn) {
|
|
8
|
+
const results = [];
|
|
9
|
+
let totalSynced = 0;
|
|
10
|
+
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
11
|
+
for (const clone of clones) {
|
|
12
|
+
try {
|
|
13
|
+
let count = 0;
|
|
14
|
+
for (const file of files) {
|
|
15
|
+
await uploadFn(clone, file.relPath, file.content, file.contentType);
|
|
16
|
+
count++;
|
|
17
|
+
}
|
|
18
|
+
clone.lastSyncedAt = nowIso;
|
|
19
|
+
clone.filesSynced = count;
|
|
20
|
+
clone.status = "SYNCED";
|
|
21
|
+
results.push({ cloneId: clone.id, label: clone.label, provider: clone.provider, filesSynced: count, status: "SYNCED" });
|
|
22
|
+
totalSynced += count;
|
|
23
|
+
} catch (err) {
|
|
24
|
+
clone.status = "ERROR";
|
|
25
|
+
results.push({ cloneId: clone.id, label: clone.label, provider: clone.provider, filesSynced: 0, status: "ERROR", error: err.message });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return { results, totalSynced };
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
WorkspaceCloneSyncEngine
|
|
34
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
// src/services/ServiceBoundary.ts
|
|
1
2
|
import {
|
|
2
|
-
TelemetryController,
|
|
3
3
|
createService,
|
|
4
4
|
createServiceDefinition,
|
|
5
5
|
createServiceProxy
|
|
6
|
-
} from "
|
|
7
|
-
|
|
8
|
-
// src/services/ServiceBoundary.ts
|
|
6
|
+
} from "@ultrst-armada/krnl";
|
|
9
7
|
function createLocalService(definition) {
|
|
10
8
|
return createService(createServiceDefinition(definition));
|
|
11
9
|
}
|
|
@@ -14,6 +12,9 @@ function createRemoteService(definition, adapter, endpoint) {
|
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
// src/services/CompositeBackend.ts
|
|
15
|
+
import {
|
|
16
|
+
TelemetryController
|
|
17
|
+
} from "@ultrst-armada/krnl";
|
|
17
18
|
var CompositeBackend = class {
|
|
18
19
|
id;
|
|
19
20
|
name;
|
|
File without changes
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
failoverExecutionEngine
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LMAU62ZG.js";
|
|
4
|
+
import {
|
|
5
|
+
aiProviderService
|
|
6
|
+
} from "./chunk-SLR6SIEU.js";
|
|
4
7
|
import {
|
|
5
8
|
toolManagerService
|
|
6
9
|
} from "./chunk-U4HUGPRH.js";
|
|
7
|
-
import {
|
|
8
|
-
createService,
|
|
9
|
-
createServiceDefinition
|
|
10
|
-
} from "./chunk-SXDYW3QA.js";
|
|
11
10
|
import {
|
|
12
11
|
inferenceExecutor
|
|
13
12
|
} from "./chunk-GCTQY24J.js";
|
|
14
13
|
import {
|
|
15
14
|
modelCatalog
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EREYT3WJ.js";
|
|
17
16
|
import {
|
|
18
17
|
keyStore
|
|
19
18
|
} from "./chunk-P7H6TIEA.js";
|
|
20
|
-
import {
|
|
21
|
-
aiProviderService
|
|
22
|
-
} from "./chunk-SLR6SIEU.js";
|
|
23
19
|
|
|
24
20
|
// src/krnl-ai-services.ts
|
|
21
|
+
import {
|
|
22
|
+
createService,
|
|
23
|
+
createServiceDefinition
|
|
24
|
+
} from "@ultrst-armada/krnl";
|
|
25
25
|
var AIProviderServiceDefinition = createServiceDefinition({
|
|
26
26
|
id: "kloks.backend.aiProvider",
|
|
27
27
|
name: "AIProviderService",
|