@ultrst-armada/kloks 1.26.2 → 1.26.4
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 +70 -8
- 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-3SWMKYCI.js → chunk-3FZSYSJC.js} +18 -9
- package/packages/backend/dist/chunk-5F5V7NAG.js +54 -0
- package/packages/backend/dist/{chunk-KVWBIDZG.js → chunk-BVXGUHLZ.js} +1 -1
- package/packages/backend/dist/chunk-DAG2L4RN.js +0 -0
- package/packages/backend/dist/{chunk-GKXI5V23.js → chunk-G7PPVOFP.js} +17 -51
- 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-4TPSXGG5.js → chunk-MZK362U4.js} +12 -12
- package/packages/backend/dist/{chunk-BQLQTUDD.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-M45KQRPR.js → chunk-RFPGUJAZ.js} +11 -11
- package/packages/backend/dist/{chunk-TWCEVES2.js → chunk-WC6EPW3A.js} +1 -1
- package/packages/backend/dist/{chunk-UCCFQCAE.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 +34 -21
- 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 +14 -4657
- 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 +4754 -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/GoogleDriveWorkspaceService.d.ts +69 -0
- package/packages/backend/dist/storage/GoogleDriveWorkspaceService.test.d.ts +1 -0
- package/packages/backend/dist/storage/S3Adapter.d.ts +5 -0
- package/packages/backend/dist/storage/googleDriveSdk.d.ts +1 -0
- package/packages/backend/dist/storage/index.d.ts +1 -10
- package/packages/backend/dist/storage/index.js +8 -43
- package/packages/backend/dist/storage/node.d.ts +14 -0
- package/packages/backend/dist/storage/node.js +66 -0
- package/packages/backend/dist/storage-workspace.d.ts +2 -0
- package/packages/backend/dist/storage-workspace.js +339 -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 +40 -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/services/dist/{dist-es-5IACWOIO.js → 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-OECEAUXH.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 +18 -0
- package/packages/state-graph/dist/browser.js +613 -0
- 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-UKTICGGV.js +9523 -0
- 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 +262 -9979
- package/packages/state-graph/dist/rules/index.js +0 -1
- package/packages/state-graph/dist/runtime-entrypoint.test.d.ts +1 -0
- 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 +8 -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-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-5IACWOIO.js +0 -69
- 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,377 +1,8 @@
|
|
|
1
1
|
import * as _ultrst_armada_krnl from '@ultrst-armada/krnl';
|
|
2
2
|
import { ServiceDefinition } from '@ultrst-armada/krnl';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
/** Standard result type for operations that can fail */
|
|
8
|
-
type Result<T, E = Error> = {
|
|
9
|
-
ok: true;
|
|
10
|
-
value: T;
|
|
11
|
-
} | {
|
|
12
|
-
ok: false;
|
|
13
|
-
error: E;
|
|
14
|
-
};
|
|
15
|
-
/** Standard logger interface */
|
|
16
|
-
interface Logger {
|
|
17
|
-
log(message: string, ...args: unknown[]): void;
|
|
18
|
-
warn(message: string, ...args: unknown[]): void;
|
|
19
|
-
error(message: string, ...args: unknown[]): void;
|
|
20
|
-
debug?(message: string, ...args: unknown[]): void;
|
|
21
|
-
}
|
|
22
|
-
/** Disposable resource interface */
|
|
23
|
-
interface Disposable {
|
|
24
|
-
dispose(): Promise<void>;
|
|
25
|
-
}
|
|
26
|
-
/** Generic provider interface */
|
|
27
|
-
interface Provider<_T = unknown> {
|
|
28
|
-
initialize(): Promise<void>;
|
|
29
|
-
dispose(): Promise<void>;
|
|
30
|
-
isInitialized(): boolean;
|
|
31
|
-
}
|
|
32
|
-
/** Configuration for any Skipo component */
|
|
33
|
-
interface SkipoConfig {
|
|
34
|
-
name: string;
|
|
35
|
-
logger?: Logger;
|
|
36
|
-
[key: string]: unknown;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* SkipoBase — Abstract foundation class for all Skipo components.
|
|
41
|
-
* Provides lifecycle management, logging, and unique identification.
|
|
42
|
-
* All @skipo/* classes should extend this.
|
|
43
|
-
*/
|
|
44
|
-
declare abstract class SkipoBase implements Disposable {
|
|
45
|
-
/** Unique instance identifier */
|
|
46
|
-
readonly instanceId: string;
|
|
47
|
-
/** Human-readable component name */
|
|
48
|
-
readonly name: string;
|
|
49
|
-
/** Logger instance */
|
|
50
|
-
protected readonly logger: Logger;
|
|
51
|
-
/** Whether this component has been initialized */
|
|
52
|
-
protected initialized: boolean;
|
|
53
|
-
/** Whether this component has been disposed */
|
|
54
|
-
protected disposed: boolean;
|
|
55
|
-
constructor(config?: SkipoConfig);
|
|
56
|
-
/** Initialize the component. Call before use. */
|
|
57
|
-
initialize(): Promise<void>;
|
|
58
|
-
/** Override to add custom initialization logic */
|
|
59
|
-
protected onInitialize(): Promise<void>;
|
|
60
|
-
/** Dispose the component and release resources */
|
|
61
|
-
dispose(): Promise<void>;
|
|
62
|
-
/** Override to add custom cleanup logic */
|
|
63
|
-
protected onDispose(): Promise<void>;
|
|
64
|
-
/** Guard: throws if not initialized */
|
|
65
|
-
protected ensureInitialized(): void;
|
|
66
|
-
/** Guard: throws if already disposed */
|
|
67
|
-
protected ensureNotDisposed(): void;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @file string.ts
|
|
72
|
-
* @description String case conversions, UUID & ShortID generators, and minimal template interpolation.
|
|
73
|
-
*/
|
|
74
|
-
declare function toCamelCase(str: string): string;
|
|
75
|
-
declare function toPascalCase(str: string): string;
|
|
76
|
-
declare function toSnakeCase(str: string): string;
|
|
77
|
-
declare function toKebabCase(str: string): string;
|
|
78
|
-
declare function toScreamingSnake(str: string): string;
|
|
79
|
-
declare function toSlug(str: string): string;
|
|
80
|
-
declare function uuid(): string;
|
|
81
|
-
declare function shortId(length?: number): string;
|
|
82
|
-
declare function prefixedId(prefix: string, length?: number): string;
|
|
83
|
-
declare function interpolate(tmpl: string, data: Record<string, any>): string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @file async.ts
|
|
87
|
-
* @description sleep, withTimeout, retry, pLimit, debounce, throttle, once, and memoize primitives.
|
|
88
|
-
*/
|
|
89
|
-
/**
|
|
90
|
-
* Classic sleep/delay.
|
|
91
|
-
*/
|
|
92
|
-
declare function sleep(ms: number): Promise<void>;
|
|
93
|
-
/**
|
|
94
|
-
* Rejects if the task does not finish within ms.
|
|
95
|
-
*/
|
|
96
|
-
declare function withTimeout<T>(promise: Promise<T>, ms: number, label?: string): Promise<T>;
|
|
97
|
-
/**
|
|
98
|
-
* Retries an async execution up to maxAttempts times.
|
|
99
|
-
*/
|
|
100
|
-
declare function retry<T>(fn: () => Promise<T>, maxAttempts: number, delayMs?: number): Promise<T>;
|
|
101
|
-
/**
|
|
102
|
-
* Limits concurrent async task execution.
|
|
103
|
-
*/
|
|
104
|
-
declare function pLimit<T>(tasks: (() => Promise<T>)[], concurrency: number): Promise<T[]>;
|
|
105
|
-
/**
|
|
106
|
-
* Debounces a function.
|
|
107
|
-
*/
|
|
108
|
-
declare function debounce<T extends (...args: any[]) => any>(fn: T, ms: number): (...args: Parameters<T>) => void;
|
|
109
|
-
/**
|
|
110
|
-
* Throttles a function.
|
|
111
|
-
*/
|
|
112
|
-
declare function throttle<T extends (...args: any[]) => any>(fn: T, ms: number): (...args: Parameters<T>) => void;
|
|
113
|
-
/**
|
|
114
|
-
* Wraps a function to run only once and cache its outcome.
|
|
115
|
-
*/
|
|
116
|
-
declare function once<T extends (...args: any[]) => any>(fn: T): (...args: Parameters<T>) => ReturnType<T>;
|
|
117
|
-
/**
|
|
118
|
-
* Computational memoization cache helper.
|
|
119
|
-
*/
|
|
120
|
-
declare function memoize<T extends (...args: any[]) => any>(fn: T, keyFn?: (...args: Parameters<T>) => string): (...args: Parameters<T>) => ReturnType<T>;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @file object.ts
|
|
124
|
-
* @description Deep clone, deep merge, deep equal, object diffing, and dot-notation in-memory path accessor tools.
|
|
125
|
-
*/
|
|
126
|
-
/**
|
|
127
|
-
* Structurally deep clones an object with circular dependency check.
|
|
128
|
-
*/
|
|
129
|
-
declare function deepClone<T>(obj: T, seen?: Map<any, any>): T;
|
|
130
|
-
/**
|
|
131
|
-
* Recursively deep merges override objects into a base.
|
|
132
|
-
*/
|
|
133
|
-
declare function deepMerge(base: any, ...overrides: any[]): any;
|
|
134
|
-
/**
|
|
135
|
-
* Performs a strict structural equality check.
|
|
136
|
-
*/
|
|
137
|
-
declare function deepEqual(a: any, b: any): boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Performs an object diff between before and after states.
|
|
140
|
-
*/
|
|
141
|
-
declare function objectDiff(before: any, after: any): {
|
|
142
|
-
added: any;
|
|
143
|
-
removed: any;
|
|
144
|
-
changed: any;
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* Accesses an in-memory object by dot-notation.
|
|
148
|
-
*/
|
|
149
|
-
declare function getPath(obj: any, path: string, defaultValue?: any): any;
|
|
150
|
-
/**
|
|
151
|
-
* Mutates or sets an in-memory object by dot-notation.
|
|
152
|
-
*/
|
|
153
|
-
declare function setPath(obj: any, path: string, value: any): any;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* @file cache.ts
|
|
157
|
-
* @description LRU cache, TTL cache, Stale-While-Revalidate, and File-system persistent caching.
|
|
158
|
-
*/
|
|
159
|
-
declare class LRUCache<K, V> {
|
|
160
|
-
private maxSize;
|
|
161
|
-
private cache;
|
|
162
|
-
constructor(maxSize: number);
|
|
163
|
-
get(key: K): V | undefined;
|
|
164
|
-
set(key: K, value: V): void;
|
|
165
|
-
delete(key: K): boolean;
|
|
166
|
-
clear(): void;
|
|
167
|
-
size(): number;
|
|
168
|
-
}
|
|
169
|
-
declare class TTLCache<K, V> {
|
|
170
|
-
private ttlMs;
|
|
171
|
-
private cache;
|
|
172
|
-
constructor(ttlMs: number);
|
|
173
|
-
get(key: K): V | null;
|
|
174
|
-
set(key: K, value: V): void;
|
|
175
|
-
delete(key: K): boolean;
|
|
176
|
-
clear(): void;
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Stale-While-Revalidate utility.
|
|
180
|
-
*/
|
|
181
|
-
declare function swr<K, V>(cache: TTLCache<K, V>, key: K, fetchFn: () => Promise<V>): Promise<V>;
|
|
182
|
-
declare class FileCache<T> {
|
|
183
|
-
private cacheDir;
|
|
184
|
-
constructor(cacheDir: string);
|
|
185
|
-
private getFilePath;
|
|
186
|
-
get(key: string): T | null;
|
|
187
|
-
set(key: string, value: T): void;
|
|
188
|
-
delete(key: string): void;
|
|
189
|
-
clear(): void;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* @file env.ts
|
|
194
|
-
* @description Type-safe environment loading and config validation tool.
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Reads a process environment variable with type coercion and defaults.
|
|
199
|
-
*/
|
|
200
|
-
declare function getEnv<T>(key: string, defaultValue?: T): T;
|
|
201
|
-
/**
|
|
202
|
-
* Asserts environment variable is set and returns its string value.
|
|
203
|
-
*/
|
|
204
|
-
declare function requireEnv(key: string): string;
|
|
205
|
-
/**
|
|
206
|
-
* Loads a .env file and injects variables into process.env.
|
|
207
|
-
*/
|
|
208
|
-
declare function loadEnv(filePath?: string): void;
|
|
209
|
-
/**
|
|
210
|
-
* Validates the entire config using a Zod schema.
|
|
211
|
-
*/
|
|
212
|
-
declare function validateEnvSchema<T extends ZodTypeAny>(zodSchema: T): T['_output'];
|
|
213
|
-
/**
|
|
214
|
-
* Checks if a connection string is a placeholder or template value.
|
|
215
|
-
*/
|
|
216
|
-
declare function isPlaceholderConnection(url?: string): boolean;
|
|
217
|
-
/**
|
|
218
|
-
* Sanitizes a database URL, returning undefined if it is empty or a placeholder.
|
|
219
|
-
*/
|
|
220
|
-
declare function sanitizeDatabaseUrl(url?: string): string | undefined;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* @file http.ts
|
|
224
|
-
* @description Safe, type-safe HTTP client wrapper.
|
|
225
|
-
*/
|
|
226
|
-
interface SkipoHTTPOptions extends RequestInit {
|
|
227
|
-
timeout?: number;
|
|
228
|
-
retries?: number;
|
|
229
|
-
}
|
|
230
|
-
interface SkipoHTTPResult<T> {
|
|
231
|
-
status: "success" | "error";
|
|
232
|
-
data?: T;
|
|
233
|
-
message?: string;
|
|
234
|
-
code?: number;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Helper to perform fetch with timeout and retries.
|
|
238
|
-
*/
|
|
239
|
-
declare function requestRaw(url: string, opts?: SkipoHTTPOptions): Promise<Response>;
|
|
240
|
-
declare function request<T>(url: string, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
|
|
241
|
-
declare function get<T>(url: string, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
|
|
242
|
-
declare function post<T>(url: string, body: any, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
|
|
243
|
-
declare function put<T>(url: string, body: any, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
|
|
244
|
-
declare function del<T>(url: string, opts?: SkipoHTTPOptions): Promise<SkipoHTTPResult<T>>;
|
|
245
|
-
/**
|
|
246
|
-
* Creates a client instance.
|
|
247
|
-
*/
|
|
248
|
-
declare function createClient(baseUrl: string, defaultHeaders?: Record<string, string>): {
|
|
249
|
-
get: <T>(path: string, opts?: SkipoHTTPOptions) => Promise<SkipoHTTPResult<T>>;
|
|
250
|
-
post: <T>(path: string, body: any, opts?: SkipoHTTPOptions) => Promise<SkipoHTTPResult<T>>;
|
|
251
|
-
put: <T>(path: string, body: any, opts?: SkipoHTTPOptions) => Promise<SkipoHTTPResult<T>>;
|
|
252
|
-
del: <T>(path: string, opts?: SkipoHTTPOptions) => Promise<SkipoHTTPResult<T>>;
|
|
253
|
-
};
|
|
254
|
-
/**
|
|
255
|
-
* Streaming SSE / Chunk response.
|
|
256
|
-
*/
|
|
257
|
-
declare function streamResponse(url: string, opts?: SkipoHTTPOptions): AsyncIterable<string>;
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* @file shell.ts
|
|
261
|
-
* @description Safe promise-based exec and spawn wrappers with cross-platform command routing.
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
|
-
interface SpawnHandle {
|
|
265
|
-
pid?: number;
|
|
266
|
-
kill: (signal?: NodeJS.Signals | number) => boolean;
|
|
267
|
-
promise: Promise<{
|
|
268
|
-
code: number | null;
|
|
269
|
-
signal: NodeJS.Signals | null;
|
|
270
|
-
}>;
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Promisified command execution.
|
|
274
|
-
*/
|
|
275
|
-
declare function execCmd(cmd: string, opts?: ExecOptions & {
|
|
276
|
-
timeout?: number;
|
|
277
|
-
}): Promise<{
|
|
278
|
-
stdout: string;
|
|
279
|
-
stderr: string;
|
|
280
|
-
}>;
|
|
281
|
-
/**
|
|
282
|
-
* Streaming command execution.
|
|
283
|
-
*/
|
|
284
|
-
declare function spawnCmd(cmd: string, args: string[], opts?: SpawnOptions): SpawnHandle;
|
|
285
|
-
/**
|
|
286
|
-
* Defines posix vs win32 specific commands.
|
|
287
|
-
*/
|
|
288
|
-
declare function platform<T>(routing: {
|
|
289
|
-
posix: T;
|
|
290
|
-
win32: T;
|
|
291
|
-
}): T;
|
|
292
|
-
/**
|
|
293
|
-
* Resolves the full path of a binary.
|
|
294
|
-
*/
|
|
295
|
-
declare function which(cmd: string): string | null;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* @file fs-lock.ts
|
|
299
|
-
* @description File locking primitive for atomic file operations.
|
|
300
|
-
*/
|
|
301
|
-
type ReleaseFn = () => void;
|
|
302
|
-
declare class FileLock {
|
|
303
|
-
private static locks;
|
|
304
|
-
static acquire(filePath: string): Promise<ReleaseFn>;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* @file fs.ts
|
|
309
|
-
* @description Robust cross-platform filesystem abstraction layer.
|
|
310
|
-
*/
|
|
311
|
-
|
|
312
|
-
declare function readFile(filePath: string, encoding?: BufferEncoding): Promise<string>;
|
|
313
|
-
declare function writeFile(filePath: string, content: string | Buffer): Promise<void>;
|
|
314
|
-
/**
|
|
315
|
-
* Atomic file writing via temp files.
|
|
316
|
-
*/
|
|
317
|
-
declare function writeFileAtomic(filePath: string, content: string | Buffer): Promise<void>;
|
|
318
|
-
declare function appendFile(filePath: string, content: string | Buffer): Promise<void>;
|
|
319
|
-
declare function deleteFile(filePath: string): Promise<void>;
|
|
320
|
-
declare function fileExists(filePath: string): Promise<boolean>;
|
|
321
|
-
declare function getFileStat(filePath: string): Promise<{
|
|
322
|
-
size: number;
|
|
323
|
-
createdAt: Date;
|
|
324
|
-
modifiedAt: Date;
|
|
325
|
-
isDir: boolean;
|
|
326
|
-
}>;
|
|
327
|
-
declare function readJSON<T>(filePath: string): Promise<T | null>;
|
|
328
|
-
declare function writeJSON(filePath: string, data: unknown, indent?: number): Promise<void>;
|
|
329
|
-
declare function updateJSON<T>(filePath: string, patch: Partial<T>): Promise<T>;
|
|
330
|
-
declare function ensureDir(dirPath: string): Promise<void>;
|
|
331
|
-
declare function deleteDir(dirPath: string, recursive?: boolean): Promise<void>;
|
|
332
|
-
declare function listDir(dirPath: string): Promise<string[]>;
|
|
333
|
-
declare function walkDir(dirPath: string, filter?: (file: string) => boolean): AsyncIterable<string>;
|
|
334
|
-
declare function dirExists(dirPath: string): Promise<boolean>;
|
|
335
|
-
declare function copyDir(src: string, dest: string): Promise<void>;
|
|
336
|
-
declare function firstExisting(candidates: string[]): Promise<string | null>;
|
|
337
|
-
declare function watchFile(filePath: string, handler: (event: string) => void, debounceMs?: number): fs.FSWatcher;
|
|
338
|
-
declare function watchDir(dirPath: string, handler: (event: string, filename: string | null) => void, debounceMs?: number): fs.FSWatcher;
|
|
339
|
-
declare function createTempFile(prefix?: string): string;
|
|
340
|
-
declare function createTempDir(prefix?: string): string;
|
|
341
|
-
declare function withTempDir<T>(fn: (tempDir: string) => Promise<T>, prefix?: string): Promise<T>;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @file events.ts
|
|
345
|
-
* @description Skipo Universal Real-Time Event Bus. Facilitates real-time event broadcasting and streaming.
|
|
346
|
-
*/
|
|
347
|
-
interface RealtimeWorkspaceEvent {
|
|
348
|
-
id: string;
|
|
349
|
-
timestamp: number;
|
|
350
|
-
userId?: string;
|
|
351
|
-
workspaceId?: string;
|
|
352
|
-
source: 'api' | 'ui';
|
|
353
|
-
method?: string;
|
|
354
|
-
endpoint?: string;
|
|
355
|
-
action: 'DOCUMENT_CREATED' | 'DOCUMENT_UPDATED' | 'DOCUMENT_DELETED' | 'CATEGORY_CREATED' | 'CATEGORY_UPDATED' | 'CATEGORY_DELETED' | 'GRAPH_UPDATED' | 'BIOME_CHANGED' | 'WORKSPACE_UPDATED' | 'WORKSPACE_SWITCHED' | 'GENERIC_ACTION' | string;
|
|
356
|
-
details?: string;
|
|
357
|
-
payload?: any;
|
|
358
|
-
}
|
|
359
|
-
type EventListener = (event: RealtimeWorkspaceEvent) => void;
|
|
360
|
-
/**
|
|
361
|
-
* Publish a new event to all active real-time subscribers and store in buffer.
|
|
362
|
-
*/
|
|
363
|
-
declare function publishRealtimeEvent(eventInput: Omit<RealtimeWorkspaceEvent, 'id' | 'timestamp'> & {
|
|
364
|
-
id?: string;
|
|
365
|
-
timestamp?: number;
|
|
366
|
-
}): RealtimeWorkspaceEvent;
|
|
367
|
-
/**
|
|
368
|
-
* Subscribe to real-time events. Returns an unsubscribe function.
|
|
369
|
-
*/
|
|
370
|
-
declare function subscribeRealtimeEvents(listener: EventListener): () => void;
|
|
371
|
-
/**
|
|
372
|
-
* Retrieve recent events since a specified timestamp, optionally filtered by workspaceId or userId.
|
|
373
|
-
*/
|
|
374
|
-
declare function getRecentEvents(sinceTimestamp?: number, workspaceId?: string, userId?: string): RealtimeWorkspaceEvent[];
|
|
3
|
+
export { D as Disposable, L as Logger, P as Provider, R as Result, S as SkipoBase, a as SkipoConfig } from './base-DDYO-DzM.js';
|
|
4
|
+
export { EnvironmentValues, EventListener, LRUCache, RealtimeWorkspaceEvent, SkipoHTTPOptions, SkipoHTTPResult, TTLCache, createClient, debounce, deepClone, deepEqual, deepMerge, del, get, getEnv, getPath, getRecentEvents, interpolate, isPlaceholderConnection, memoize, objectDiff, once, pLimit, post, prefixedId, publishRealtimeEvent, put, request, requestRaw, requireEnv, retry, sanitizeDatabaseUrl, setPath, shortId, sleep, streamResponse, subscribeRealtimeEvents, swr, throttle, toCamelCase, toKebabCase, toPascalCase, toScreamingSnake, toSlug, toSnakeCase, uuid, validateEnvSchema, withTimeout } from './portable.js';
|
|
5
|
+
import 'zod';
|
|
375
6
|
|
|
376
7
|
declare const FunctionsServiceDefinition: ServiceDefinition;
|
|
377
8
|
declare const FunctionsServiceFacade: {
|
|
@@ -398,4 +29,4 @@ declare const krnlFunctionsServiceFacade: {
|
|
|
398
29
|
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
399
30
|
};
|
|
400
31
|
|
|
401
|
-
export {
|
|
32
|
+
export { FunctionsServiceDefinition, FunctionsServiceFacade, krnlFunctionsServiceDefinition, krnlFunctionsServiceFacade };
|