@ultrst-armada/kloks 1.4.4 → 1.4.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/package.json +1 -1
- package/packages/backend/dist/{chunk-5336MTXD.js → chunk-DULUHQ5S.js} +1 -1
- package/packages/backend/dist/{chunk-KI3LHMUN.js → chunk-TQMLJ7NY.js} +10 -10
- package/packages/backend/dist/{chunk-JXUSBKJ2.js → chunk-ZO3PZGNQ.js} +5 -1
- package/packages/backend/dist/index.js +41 -41
- package/packages/backend/dist/krnl-services.js +5 -5
- package/packages/backend/dist/workspace/index.js +2 -2
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
2
|
+
createService,
|
|
3
|
+
createServiceDefinition
|
|
4
|
+
} from "./chunk-TY32TUNI.js";
|
|
5
5
|
import {
|
|
6
6
|
StorageAdapterFactory
|
|
7
7
|
} from "./chunk-J2J24JVC.js";
|
|
8
|
-
import {
|
|
9
|
-
b2ListBuckets
|
|
10
|
-
} from "./chunk-4QEMALXF.js";
|
|
11
8
|
import {
|
|
12
9
|
createWorkspace,
|
|
13
10
|
deleteWorkspace,
|
|
@@ -17,7 +14,7 @@ import {
|
|
|
17
14
|
queryUnifiedDb,
|
|
18
15
|
sanitizeWorkspaceName,
|
|
19
16
|
updateWorkspace
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZO3PZGNQ.js";
|
|
21
18
|
import {
|
|
22
19
|
RateLimiter,
|
|
23
20
|
SessionManager,
|
|
@@ -25,9 +22,12 @@ import {
|
|
|
25
22
|
resolveUserFromToken
|
|
26
23
|
} from "./chunk-ZDH4XI7W.js";
|
|
27
24
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./chunk-
|
|
25
|
+
getSrklAccounts,
|
|
26
|
+
srklListBackblazeBuckets
|
|
27
|
+
} from "./chunk-VDROUXFT.js";
|
|
28
|
+
import {
|
|
29
|
+
b2ListBuckets
|
|
30
|
+
} from "./chunk-4QEMALXF.js";
|
|
31
31
|
|
|
32
32
|
// src/krnl-services.ts
|
|
33
33
|
var AuthServiceDefinition = createServiceDefinition({
|
|
@@ -10,7 +10,7 @@ function sanitizeWorkspaceName(name) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
// src/core/unifiedDb.ts
|
|
13
|
-
|
|
13
|
+
var neon;
|
|
14
14
|
function cleanDbUrl(url) {
|
|
15
15
|
if (!url || typeof url !== "string") return "";
|
|
16
16
|
return url.trim().replace(/^["']|["']$/g, "");
|
|
@@ -28,6 +28,10 @@ async function queryUnifiedDb(sqlText, params = [], env) {
|
|
|
28
28
|
if (!dbUrl) {
|
|
29
29
|
throw new Error("[UnifiedDB] No database URL configured in environment.");
|
|
30
30
|
}
|
|
31
|
+
if (!neon) {
|
|
32
|
+
const mod = await import("@neondatabase/serverless");
|
|
33
|
+
neon = mod.neon;
|
|
34
|
+
}
|
|
31
35
|
const sql = neon(dbUrl);
|
|
32
36
|
try {
|
|
33
37
|
const rows = await (sql.query ? sql.query(sqlText, params) : sql(sqlText, params));
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
CompositeBackend,
|
|
3
|
+
EndpointGenerator,
|
|
4
|
+
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
5
|
+
NodeGraphPersistenceService,
|
|
6
|
+
createBackend,
|
|
7
|
+
createCompositeService,
|
|
8
|
+
createLocalService,
|
|
9
|
+
createRemoteService,
|
|
10
|
+
exportGraphAsJsonFile,
|
|
11
|
+
nodeGraphPersistence,
|
|
12
|
+
parseGraphJsonFile,
|
|
13
|
+
validateGraphDocument
|
|
14
|
+
} from "./chunk-7B24ZWB3.js";
|
|
14
15
|
import "./chunk-LS3HWJBX.js";
|
|
15
16
|
import {
|
|
16
17
|
RemoteWorkspaceService,
|
|
@@ -27,7 +28,7 @@ import {
|
|
|
27
28
|
setWorkingWorkspaceConfig,
|
|
28
29
|
syncWorkspace,
|
|
29
30
|
workingWorkspaceService
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DULUHQ5S.js";
|
|
31
32
|
import {
|
|
32
33
|
AuthServiceDefinition,
|
|
33
34
|
AuthServiceFacade,
|
|
@@ -57,12 +58,8 @@ import {
|
|
|
57
58
|
krnlStorageServiceFacade,
|
|
58
59
|
krnlWorkspaceServiceDefinition,
|
|
59
60
|
krnlWorkspaceServiceFacade
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import
|
|
62
|
-
getPrimarySrklDeploymentUrl,
|
|
63
|
-
getSrklAccounts,
|
|
64
|
-
srklListBackblazeBuckets
|
|
65
|
-
} from "./chunk-VDROUXFT.js";
|
|
61
|
+
} from "./chunk-TQMLJ7NY.js";
|
|
62
|
+
import "./chunk-TY32TUNI.js";
|
|
66
63
|
import {
|
|
67
64
|
BackblazeB2Adapter,
|
|
68
65
|
BaseStorageAdapter,
|
|
@@ -78,13 +75,6 @@ import {
|
|
|
78
75
|
renameS3Folder,
|
|
79
76
|
resolveBackblazeEndpoint
|
|
80
77
|
} from "./chunk-J2J24JVC.js";
|
|
81
|
-
import {
|
|
82
|
-
authorizeB2,
|
|
83
|
-
b2DownloadFile,
|
|
84
|
-
b2ListBuckets,
|
|
85
|
-
b2ListFileNames,
|
|
86
|
-
b2UploadFile
|
|
87
|
-
} from "./chunk-4QEMALXF.js";
|
|
88
78
|
import {
|
|
89
79
|
b2DeleteFileVersion,
|
|
90
80
|
b2DeleteFolder,
|
|
@@ -115,7 +105,7 @@ import {
|
|
|
115
105
|
syncWorkspaceDeleteToBucket,
|
|
116
106
|
updateWorkspace,
|
|
117
107
|
writeWorkspaceFile
|
|
118
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-ZO3PZGNQ.js";
|
|
119
109
|
import {
|
|
120
110
|
BaseApiRoute,
|
|
121
111
|
createSSEResponse,
|
|
@@ -172,20 +162,30 @@ import {
|
|
|
172
162
|
resolveSystemDatabaseClusterNodes
|
|
173
163
|
} from "./chunk-RCCQ7IRM.js";
|
|
174
164
|
import {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
165
|
+
CANONICAL_SRKL_URL,
|
|
166
|
+
SrklClient,
|
|
167
|
+
SrklCredentialRegistry,
|
|
168
|
+
SrklVaultAccessClient,
|
|
169
|
+
createSrklClient,
|
|
170
|
+
decryptVaultBufferInBrowser,
|
|
171
|
+
globalCredentialRegistry,
|
|
172
|
+
hexToBytes,
|
|
173
|
+
srklService,
|
|
174
|
+
syncSrklAccounts,
|
|
175
|
+
useSrklServices
|
|
176
|
+
} from "./chunk-OZDYAEH4.js";
|
|
177
|
+
import {
|
|
178
|
+
getPrimarySrklDeploymentUrl,
|
|
179
|
+
getSrklAccounts,
|
|
180
|
+
srklListBackblazeBuckets
|
|
181
|
+
} from "./chunk-VDROUXFT.js";
|
|
182
|
+
import {
|
|
183
|
+
authorizeB2,
|
|
184
|
+
b2DownloadFile,
|
|
185
|
+
b2ListBuckets,
|
|
186
|
+
b2ListFileNames,
|
|
187
|
+
b2UploadFile
|
|
188
|
+
} from "./chunk-4QEMALXF.js";
|
|
189
189
|
|
|
190
190
|
// src/data/BaseDataProvider.ts
|
|
191
191
|
import { SkipoBase } from "@ultrst-armada/kloks/functions";
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
krnlStorageServiceFacade,
|
|
28
28
|
krnlWorkspaceServiceDefinition,
|
|
29
29
|
krnlWorkspaceServiceFacade
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-TQMLJ7NY.js";
|
|
31
|
+
import "./chunk-TY32TUNI.js";
|
|
32
32
|
import "./chunk-J2J24JVC.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-JXUSBKJ2.js";
|
|
33
|
+
import "./chunk-ZO3PZGNQ.js";
|
|
35
34
|
import "./chunk-ZDH4XI7W.js";
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-VDROUXFT.js";
|
|
36
|
+
import "./chunk-4QEMALXF.js";
|
|
37
37
|
export {
|
|
38
38
|
AuthServiceDefinition,
|
|
39
39
|
AuthServiceFacade,
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
WorkspaceFS,
|
|
7
7
|
remoteWorkspaceService,
|
|
8
8
|
workingWorkspaceService
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-DULUHQ5S.js";
|
|
10
10
|
import {
|
|
11
11
|
formatCanonicalWorkspaceFolderName,
|
|
12
12
|
sanitizeWorkspaceName
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-ZO3PZGNQ.js";
|
|
14
14
|
export {
|
|
15
15
|
RemoteWorkspaceService,
|
|
16
16
|
SyncEngine,
|