@ultrst-armada/kloks 1.6.0 → 1.7.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/.krusbl-release-attestation.json +3 -3
- package/package.json +1 -1
- package/packages/backend/dist/{chunk-E72GXBXF.js → chunk-6K75XXFD.js} +9 -200
- package/packages/backend/dist/{chunk-GPXV4GBD.js → chunk-6QTNNZSE.js} +7 -5
- package/packages/backend/dist/{chunk-OZDYAEH4.js → chunk-BI5RDDB4.js} +210 -1
- package/packages/backend/dist/{chunk-DBZVGMJ7.js → chunk-KSZ67VZJ.js} +1 -1
- package/packages/backend/dist/{chunk-VDROUXFT.js → chunk-N4Z57FVR.js} +10 -10
- package/packages/backend/dist/{chunk-3HZYAZF4.js → chunk-SQGBAWZN.js} +97 -7
- package/packages/backend/dist/chunk-VAFCR2MS.js +203 -0
- package/packages/backend/dist/{chunk-GQUNN7SA.js → chunk-Y3X3H2XX.js} +6 -4
- package/packages/backend/dist/development/index.d.ts +54 -1
- package/packages/backend/dist/development/index.js +7 -1
- package/packages/backend/dist/index.d.ts +2 -2
- package/packages/backend/dist/index.js +31 -213
- package/packages/backend/dist/krnl-services.js +5 -4
- package/packages/backend/dist/services/index.js +3 -2
- package/packages/backend/dist/srkl/index.d.ts +48 -1
- package/packages/backend/dist/srkl/index.js +3 -2
- package/packages/backend/dist/workspace/index.js +3 -2
- package/packages/backend/kloks.manifest.json +25 -0
|
@@ -245,6 +245,7 @@ var DevelopmentServiceDefinition = createServiceDefinition({
|
|
|
245
245
|
providers: [
|
|
246
246
|
{ id: "webcontainer", capabilities: ["install", "lint", "test", "build", "validate", "check", "process-host"] },
|
|
247
247
|
{ id: "typescript-language-server", capabilities: ["lsp", "diagnostics", "completion", "hover", "definition", "references", "rename", "symbols"] },
|
|
248
|
+
{ id: "agent-harness", capabilities: ["deepseek", "openai", "google", "headless", "sdk", "acp"] },
|
|
248
249
|
{ id: "github-actions", capabilities: ["dispatch", "observe", "rerun", "cancel"] }
|
|
249
250
|
]
|
|
250
251
|
})
|
|
@@ -301,8 +302,8 @@ var COMMANDS2 = {
|
|
|
301
302
|
var DEFAULT_LAYERS = ["syntax", "lint", "krnl", "frnl"];
|
|
302
303
|
var commandText = (command, args) => [command, ...args].join(" ");
|
|
303
304
|
var CodeValidationRuntime = class {
|
|
304
|
-
constructor(
|
|
305
|
-
this.runtime =
|
|
305
|
+
constructor(runtime5 = new WebContainerRuntime()) {
|
|
306
|
+
this.runtime = runtime5;
|
|
306
307
|
}
|
|
307
308
|
runtime;
|
|
308
309
|
async validate(input = {}) {
|
|
@@ -356,8 +357,8 @@ var CodeValidationServiceFacade = {
|
|
|
356
357
|
|
|
357
358
|
// src/development/codeDiagnosticsService.ts
|
|
358
359
|
var CodeDiagnosticsService = class {
|
|
359
|
-
constructor(
|
|
360
|
-
this.runtime =
|
|
360
|
+
constructor(runtime5 = new WebContainerRuntime()) {
|
|
361
|
+
this.runtime = runtime5;
|
|
361
362
|
}
|
|
362
363
|
runtime;
|
|
363
364
|
async diagnostics(input = {}) {
|
|
@@ -375,8 +376,8 @@ var TYPESCRIPT_LANGUAGE_SERVER_VERSION = "6.0.2";
|
|
|
375
376
|
var PACKAGE = TYPESCRIPT_LANGUAGE_SERVER_PACKAGE;
|
|
376
377
|
var DEFAULT_VERSION = TYPESCRIPT_LANGUAGE_SERVER_VERSION;
|
|
377
378
|
var TypeScriptLanguageServerRuntime = class {
|
|
378
|
-
constructor(
|
|
379
|
-
this.runtime =
|
|
379
|
+
constructor(runtime5 = new WebContainerRuntime()) {
|
|
380
|
+
this.runtime = runtime5;
|
|
380
381
|
}
|
|
381
382
|
runtime;
|
|
382
383
|
process = null;
|
|
@@ -502,6 +503,92 @@ var TypeScriptLanguageServerServiceFacade = {
|
|
|
502
503
|
}
|
|
503
504
|
};
|
|
504
505
|
|
|
506
|
+
// src/development/agentHarnessService.ts
|
|
507
|
+
var PROVIDERS = [
|
|
508
|
+
{
|
|
509
|
+
id: "deepseek",
|
|
510
|
+
name: "DeepSeek Harness",
|
|
511
|
+
package: "@deepseek-ai/dsh",
|
|
512
|
+
capabilities: ["headless", "sdk", "acp", "web"],
|
|
513
|
+
implemented: true
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
id: "openai",
|
|
517
|
+
name: "OpenAI Agents SDK",
|
|
518
|
+
package: "@openai/agents",
|
|
519
|
+
capabilities: ["agents", "tools", "handoffs", "guardrails", "sessions", "tracing"],
|
|
520
|
+
implemented: false
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
id: "google",
|
|
524
|
+
name: "Google ADK",
|
|
525
|
+
package: "@google/adk",
|
|
526
|
+
capabilities: ["agents", "tools", "multi-agent", "evaluation", "deployment"],
|
|
527
|
+
implemented: false
|
|
528
|
+
}
|
|
529
|
+
];
|
|
530
|
+
var AgentHarnessRuntime = class {
|
|
531
|
+
constructor(runtime5 = new WebContainerRuntime()) {
|
|
532
|
+
this.runtime = runtime5;
|
|
533
|
+
}
|
|
534
|
+
runtime;
|
|
535
|
+
providers() {
|
|
536
|
+
return PROVIDERS.map((provider) => ({ ...provider, capabilities: [...provider.capabilities] }));
|
|
537
|
+
}
|
|
538
|
+
async run(input) {
|
|
539
|
+
if (input.provider !== "deepseek") {
|
|
540
|
+
throw new Error(
|
|
541
|
+
`Agent harness provider "${input.provider}" is registered but not yet executable; install and register its adapter before running it.`
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
const started = Date.now();
|
|
545
|
+
const profile = input.profile ?? "headless";
|
|
546
|
+
const command = "pnpm";
|
|
547
|
+
const args = ["exec", "dsh", "--profile", profile, input.prompt];
|
|
548
|
+
const result = await this.runtime.runCommand(command, args, input.cwd ?? ".", input.env);
|
|
549
|
+
return {
|
|
550
|
+
provider: input.provider,
|
|
551
|
+
ok: result.exitCode === 0,
|
|
552
|
+
exitCode: result.exitCode,
|
|
553
|
+
output: result.output,
|
|
554
|
+
durationMs: Date.now() - started,
|
|
555
|
+
command: [command, ...args].join(" ")
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
var runtime4 = new AgentHarnessRuntime();
|
|
560
|
+
var AgentHarnessServiceDefinition = createServiceDefinition({
|
|
561
|
+
id: "kloks.backend.agentHarness",
|
|
562
|
+
name: "AgentHarnessService",
|
|
563
|
+
version: "1.0.0",
|
|
564
|
+
operations: {
|
|
565
|
+
providers: {
|
|
566
|
+
id: "AgentHarnessService.providers",
|
|
567
|
+
name: "providers",
|
|
568
|
+
handler: async () => runtime4.providers()
|
|
569
|
+
},
|
|
570
|
+
run: {
|
|
571
|
+
id: "AgentHarnessService.run",
|
|
572
|
+
name: "run",
|
|
573
|
+
handler: async (input) => runtime4.run(input)
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
var AgentHarnessServiceFacade = {
|
|
578
|
+
id: AgentHarnessServiceDefinition.id,
|
|
579
|
+
name: AgentHarnessServiceDefinition.name,
|
|
580
|
+
version: AgentHarnessServiceDefinition.version,
|
|
581
|
+
runtime: "client",
|
|
582
|
+
deployment: "local",
|
|
583
|
+
definition: AgentHarnessServiceDefinition,
|
|
584
|
+
createInstance: () => createService(AgentHarnessServiceDefinition),
|
|
585
|
+
execute: async (op, input) => {
|
|
586
|
+
const instance = createService(AgentHarnessServiceDefinition);
|
|
587
|
+
await instance.start();
|
|
588
|
+
return instance.call(op, input);
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
|
|
505
592
|
export {
|
|
506
593
|
GitHubActionsClient,
|
|
507
594
|
GitHubActionsServiceDefinition,
|
|
@@ -521,5 +608,8 @@ export {
|
|
|
521
608
|
TYPESCRIPT_LANGUAGE_SERVER_PACKAGE,
|
|
522
609
|
TYPESCRIPT_LANGUAGE_SERVER_VERSION,
|
|
523
610
|
TypeScriptLanguageServerServiceDefinition,
|
|
524
|
-
TypeScriptLanguageServerServiceFacade
|
|
611
|
+
TypeScriptLanguageServerServiceFacade,
|
|
612
|
+
AgentHarnessRuntime,
|
|
613
|
+
AgentHarnessServiceDefinition,
|
|
614
|
+
AgentHarnessServiceFacade
|
|
525
615
|
};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
// src/core/unifiedDb.ts
|
|
2
|
+
var neon;
|
|
3
|
+
function cleanDbUrl(url) {
|
|
4
|
+
if (!url || typeof url !== "string") return "";
|
|
5
|
+
return url.trim().replace(/^["']|["']$/g, "");
|
|
6
|
+
}
|
|
7
|
+
function getUnifiedDbUrl(env) {
|
|
8
|
+
const fromEnv = cleanDbUrl(env?.SYSTEM_DATABASE_URL_1) || cleanDbUrl(env?.DATABASE_URL) || cleanDbUrl(env?.SYSTEM_DATABASE_URL_2);
|
|
9
|
+
if (fromEnv) return fromEnv;
|
|
10
|
+
if (typeof process !== "undefined" && process.env) {
|
|
11
|
+
return cleanDbUrl(process.env.SYSTEM_DATABASE_URL_1) || cleanDbUrl(process.env.DATABASE_URL) || cleanDbUrl(process.env.SYSTEM_DATABASE_URL_2) || cleanDbUrl(process.env.SYSTEM_DATABASE_URL_3) || "";
|
|
12
|
+
}
|
|
13
|
+
return "";
|
|
14
|
+
}
|
|
15
|
+
async function queryUnifiedDb(sqlText, params = [], env) {
|
|
16
|
+
const dbUrl = getUnifiedDbUrl(env);
|
|
17
|
+
if (!dbUrl) {
|
|
18
|
+
throw new Error("[UnifiedDB] No database URL configured in environment.");
|
|
19
|
+
}
|
|
20
|
+
if (!neon) {
|
|
21
|
+
const mod = await import("@neondatabase/serverless");
|
|
22
|
+
neon = mod.neon;
|
|
23
|
+
}
|
|
24
|
+
const sql = neon(dbUrl);
|
|
25
|
+
try {
|
|
26
|
+
const rows = await (sql.query ? sql.query(sqlText, params) : sql(sqlText, params));
|
|
27
|
+
return {
|
|
28
|
+
rows: Array.isArray(rows) ? rows : [],
|
|
29
|
+
rowCount: Array.isArray(rows) ? rows.length : 0
|
|
30
|
+
};
|
|
31
|
+
} catch (err) {
|
|
32
|
+
console.error("[UnifiedDB] Query execution error:", err.message);
|
|
33
|
+
throw err;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// src/core/b2DirectCore.ts
|
|
38
|
+
var authCache = /* @__PURE__ */ new Map();
|
|
39
|
+
var bucketIdCache = /* @__PURE__ */ new Map();
|
|
40
|
+
async function authorizeB2(keyId, applicationKey) {
|
|
41
|
+
const cacheKey = `${keyId.trim()}:${applicationKey.trim()}`;
|
|
42
|
+
const cached = authCache.get(cacheKey);
|
|
43
|
+
if (cached && Date.now() < cached.expiresAt) return cached.auth;
|
|
44
|
+
const authHeader = typeof Buffer !== "undefined" ? Buffer.from(`${keyId.trim()}:${applicationKey.trim()}`).toString("base64") : btoa(`${keyId.trim()}:${applicationKey.trim()}`);
|
|
45
|
+
let res = await fetch("https://api.backblazeb2.com/b2api/v2/b2_authorize_account", {
|
|
46
|
+
headers: { Authorization: `Basic ${authHeader}` },
|
|
47
|
+
signal: AbortSignal.timeout(1e4)
|
|
48
|
+
});
|
|
49
|
+
if (!res.ok) {
|
|
50
|
+
res = await fetch("https://api.backblazeb2.com/b2api/v4/b2_authorize_account", {
|
|
51
|
+
headers: { Authorization: `Basic ${authHeader}` },
|
|
52
|
+
signal: AbortSignal.timeout(1e4)
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
if (!res.ok) {
|
|
56
|
+
const errText = await res.text();
|
|
57
|
+
throw new Error(`Backblaze B2 authorization failed (${res.status}): ${errText}`);
|
|
58
|
+
}
|
|
59
|
+
const data = await res.json();
|
|
60
|
+
const auth = {
|
|
61
|
+
accountId: data.accountId,
|
|
62
|
+
authorizationToken: data.authorizationToken,
|
|
63
|
+
apiUrl: (data.apiInfo?.storageApi?.apiUrl || data.apiUrl || "https://api.backblazeb2.com").replace(/\/+$/, ""),
|
|
64
|
+
downloadUrl: (data.apiInfo?.storageApi?.downloadUrl || data.downloadUrl || data.apiUrl || "https://f003.backblazeb2.com").replace(/\/+$/, ""),
|
|
65
|
+
s3ApiUrl: data.apiInfo?.storageApi?.s3ApiUrl || data.s3ApiUrl,
|
|
66
|
+
allowed: data.apiInfo?.storageApi?.allowed || data.allowed
|
|
67
|
+
};
|
|
68
|
+
authCache.set(cacheKey, { auth, expiresAt: Date.now() + 20 * 60 * 1e3 });
|
|
69
|
+
return auth;
|
|
70
|
+
}
|
|
71
|
+
async function b2ListBuckets(keyId, applicationKey, bucketId, bucketName) {
|
|
72
|
+
const auth = await authorizeB2(keyId, applicationKey);
|
|
73
|
+
const rBucketId = bucketId || auth.allowed?.bucketId || auth.allowed?.buckets?.[0]?.bucketId;
|
|
74
|
+
const rBucketName = bucketName || auth.allowed?.bucketName || auth.allowed?.buckets?.[0]?.bucketName;
|
|
75
|
+
if (!auth.allowed?.bucketId && !auth.allowed?.bucketName) {
|
|
76
|
+
try {
|
|
77
|
+
const res = await fetch(`${auth.apiUrl}/b2api/v2/b2_list_buckets`, {
|
|
78
|
+
method: "POST",
|
|
79
|
+
headers: { Authorization: auth.authorizationToken, "Content-Type": "application/json" },
|
|
80
|
+
body: JSON.stringify({ accountId: auth.accountId }),
|
|
81
|
+
signal: AbortSignal.timeout(8e3)
|
|
82
|
+
});
|
|
83
|
+
if (res.ok) {
|
|
84
|
+
const data = await res.json();
|
|
85
|
+
if (Array.isArray(data.buckets) && data.buckets.length > 0) return data.buckets;
|
|
86
|
+
}
|
|
87
|
+
} catch (err) {
|
|
88
|
+
console.warn("[B2DirectCore] list_buckets query failed:", err.message);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (rBucketId || rBucketName) {
|
|
92
|
+
const body = { accountId: auth.accountId };
|
|
93
|
+
if (rBucketId) body.bucketId = rBucketId;
|
|
94
|
+
else if (rBucketName) body.bucketName = rBucketName;
|
|
95
|
+
try {
|
|
96
|
+
const res = await fetch(`${auth.apiUrl}/b2api/v2/b2_list_buckets`, {
|
|
97
|
+
method: "POST",
|
|
98
|
+
headers: { Authorization: auth.authorizationToken, "Content-Type": "application/json" },
|
|
99
|
+
body: JSON.stringify(body),
|
|
100
|
+
signal: AbortSignal.timeout(8e3)
|
|
101
|
+
});
|
|
102
|
+
if (res.ok) {
|
|
103
|
+
const data = await res.json();
|
|
104
|
+
if (Array.isArray(data.buckets) && data.buckets.length > 0) return data.buckets;
|
|
105
|
+
}
|
|
106
|
+
} catch {
|
|
107
|
+
}
|
|
108
|
+
return [{
|
|
109
|
+
accountId: auth.accountId,
|
|
110
|
+
bucketId: rBucketId || "restricted",
|
|
111
|
+
bucketName: rBucketName || (bucketName || "default-bucket"),
|
|
112
|
+
bucketType: "allPrivate"
|
|
113
|
+
}];
|
|
114
|
+
}
|
|
115
|
+
return [];
|
|
116
|
+
}
|
|
117
|
+
async function getB2BucketId(keyId, applicationKey, bucketName) {
|
|
118
|
+
const cacheKey = `${keyId.trim()}:${bucketName.trim()}`;
|
|
119
|
+
if (bucketIdCache.has(cacheKey)) return bucketIdCache.get(cacheKey);
|
|
120
|
+
const buckets = await b2ListBuckets(keyId, applicationKey, void 0, bucketName);
|
|
121
|
+
const match = buckets.find((b) => b.bucketName === bucketName);
|
|
122
|
+
if (!match) throw new Error(`B2 bucket "${bucketName}" not found in account`);
|
|
123
|
+
bucketIdCache.set(cacheKey, match.bucketId);
|
|
124
|
+
return match.bucketId;
|
|
125
|
+
}
|
|
126
|
+
async function b2UploadFile(keyId, applicationKey, bucketName, fileName, buffer, contentType = "b2/x-auto") {
|
|
127
|
+
const auth = await authorizeB2(keyId, applicationKey);
|
|
128
|
+
const bucketId = await getB2BucketId(keyId, applicationKey, bucketName);
|
|
129
|
+
const urlRes = await fetch(`${auth.apiUrl}/b2api/v2/b2_get_upload_url`, {
|
|
130
|
+
method: "POST",
|
|
131
|
+
headers: { Authorization: auth.authorizationToken, "Content-Type": "application/json" },
|
|
132
|
+
body: JSON.stringify({ bucketId })
|
|
133
|
+
});
|
|
134
|
+
if (!urlRes.ok) throw new Error(`B2 get upload url failed (${urlRes.status})`);
|
|
135
|
+
const { uploadUrl, authorizationToken } = await urlRes.json();
|
|
136
|
+
const encodedFileName = encodeURIComponent(fileName).replace(/%2F/g, "/");
|
|
137
|
+
const uploadRes = await fetch(uploadUrl, {
|
|
138
|
+
method: "POST",
|
|
139
|
+
headers: {
|
|
140
|
+
Authorization: authorizationToken,
|
|
141
|
+
"X-Bz-File-Name": encodedFileName,
|
|
142
|
+
"Content-Type": contentType,
|
|
143
|
+
"Content-Length": String(buffer.byteLength),
|
|
144
|
+
"X-Bz-Content-Sha1": "do_not_verify"
|
|
145
|
+
},
|
|
146
|
+
body: buffer
|
|
147
|
+
});
|
|
148
|
+
if (!uploadRes.ok) throw new Error(`B2 upload failed for ${fileName} (${uploadRes.status}): ${await uploadRes.text()}`);
|
|
149
|
+
return uploadRes.json();
|
|
150
|
+
}
|
|
151
|
+
async function b2DownloadFile(keyId, applicationKey, bucketName, fileName) {
|
|
152
|
+
const auth = await authorizeB2(keyId, applicationKey);
|
|
153
|
+
const encodedName = encodeURIComponent(fileName).replace(/%2F/g, "/");
|
|
154
|
+
const res = await fetch(`${auth.downloadUrl}/file/${bucketName}/${encodedName}`, { headers: { Authorization: auth.authorizationToken } });
|
|
155
|
+
if (res.status === 404) return null;
|
|
156
|
+
if (!res.ok) throw new Error(`B2 download failed for ${fileName} (${res.status})`);
|
|
157
|
+
return new Uint8Array(await res.arrayBuffer());
|
|
158
|
+
}
|
|
159
|
+
async function b2ListFileNames(keyId, applicationKey, bucketName, prefix = "") {
|
|
160
|
+
const auth = await authorizeB2(keyId, applicationKey);
|
|
161
|
+
const bucketId = await getB2BucketId(keyId, applicationKey, bucketName);
|
|
162
|
+
const res = await fetch(`${auth.apiUrl}/b2api/v2/b2_list_file_names`, {
|
|
163
|
+
method: "POST",
|
|
164
|
+
headers: { Authorization: auth.authorizationToken, "Content-Type": "application/json" },
|
|
165
|
+
body: JSON.stringify({ bucketId, prefix, maxFileCount: 1e3 })
|
|
166
|
+
});
|
|
167
|
+
if (!res.ok) throw new Error(`B2 list files failed (${res.status})`);
|
|
168
|
+
const data = await res.json();
|
|
169
|
+
return data.files || [];
|
|
170
|
+
}
|
|
171
|
+
async function b2DeleteFileVersion(keyId, applicationKey, fileName, fileId) {
|
|
172
|
+
const auth = await authorizeB2(keyId, applicationKey);
|
|
173
|
+
const res = await fetch(`${auth.apiUrl}/b2api/v2/b2_delete_file_version`, {
|
|
174
|
+
method: "POST",
|
|
175
|
+
headers: { Authorization: auth.authorizationToken, "Content-Type": "application/json" },
|
|
176
|
+
body: JSON.stringify({ fileName, fileId })
|
|
177
|
+
});
|
|
178
|
+
if (!res.ok) throw new Error(`B2 delete file version failed (${res.status})`);
|
|
179
|
+
return res.json();
|
|
180
|
+
}
|
|
181
|
+
async function b2DeleteFolder(keyId, applicationKey, bucketName, folderPrefix) {
|
|
182
|
+
const cleanPrefix = folderPrefix.replace(/\/+$/, "") + "/";
|
|
183
|
+
const files = await b2ListFileNames(keyId, applicationKey, bucketName, cleanPrefix);
|
|
184
|
+
let deletedCount = 0;
|
|
185
|
+
for (const file of files) {
|
|
186
|
+
await b2DeleteFileVersion(keyId, applicationKey, file.fileName, file.fileId);
|
|
187
|
+
deletedCount++;
|
|
188
|
+
}
|
|
189
|
+
return { success: true, deletedCount };
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export {
|
|
193
|
+
cleanDbUrl,
|
|
194
|
+
getUnifiedDbUrl,
|
|
195
|
+
queryUnifiedDb,
|
|
196
|
+
b2ListBuckets,
|
|
197
|
+
getB2BucketId,
|
|
198
|
+
b2UploadFile,
|
|
199
|
+
b2DownloadFile,
|
|
200
|
+
b2ListFileNames,
|
|
201
|
+
b2DeleteFileVersion,
|
|
202
|
+
b2DeleteFolder
|
|
203
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
workspaceGraphService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KSZ67VZJ.js";
|
|
4
4
|
import {
|
|
5
5
|
getSrklAccounts,
|
|
6
6
|
srklListBackblazeBuckets
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-N4Z57FVR.js";
|
|
8
8
|
import {
|
|
9
9
|
StorageAdapterFactory
|
|
10
10
|
} from "./chunk-J2J24JVC.js";
|
|
@@ -20,9 +20,11 @@ import {
|
|
|
20
20
|
deleteWorkspace,
|
|
21
21
|
findUserWorkspace,
|
|
22
22
|
getWorkspaces,
|
|
23
|
-
queryUnifiedDb,
|
|
24
23
|
updateWorkspace
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6K75XXFD.js";
|
|
25
|
+
import {
|
|
26
|
+
queryUnifiedDb
|
|
27
|
+
} from "./chunk-VAFCR2MS.js";
|
|
26
28
|
import {
|
|
27
29
|
RateLimiter,
|
|
28
30
|
SessionManager,
|
|
@@ -245,4 +245,57 @@ declare const TypeScriptLanguageServerServiceFacade: {
|
|
|
245
245
|
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
-
|
|
248
|
+
type AgentHarnessProvider = 'deepseek' | 'openai' | 'google';
|
|
249
|
+
interface AgentHarnessRunInput {
|
|
250
|
+
provider: AgentHarnessProvider;
|
|
251
|
+
prompt: string;
|
|
252
|
+
cwd?: string;
|
|
253
|
+
profile?: string;
|
|
254
|
+
timeoutMs?: number;
|
|
255
|
+
env?: Record<string, string>;
|
|
256
|
+
}
|
|
257
|
+
interface AgentHarnessResult {
|
|
258
|
+
provider: AgentHarnessProvider;
|
|
259
|
+
ok: boolean;
|
|
260
|
+
exitCode: number;
|
|
261
|
+
output: string;
|
|
262
|
+
durationMs: number;
|
|
263
|
+
command?: string;
|
|
264
|
+
}
|
|
265
|
+
interface AgentHarnessProviderInfo {
|
|
266
|
+
id: AgentHarnessProvider;
|
|
267
|
+
name: string;
|
|
268
|
+
package: string;
|
|
269
|
+
capabilities: string[];
|
|
270
|
+
implemented: boolean;
|
|
271
|
+
}
|
|
272
|
+
interface AgentHarnessServiceContract {
|
|
273
|
+
providers(): AgentHarnessProviderInfo[];
|
|
274
|
+
run(input: AgentHarnessRunInput): Promise<AgentHarnessResult>;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare class AgentHarnessRuntime {
|
|
278
|
+
private readonly runtime;
|
|
279
|
+
constructor(runtime?: WebContainerRuntime);
|
|
280
|
+
providers(): {
|
|
281
|
+
capabilities: string[];
|
|
282
|
+
id: AgentHarnessProvider;
|
|
283
|
+
name: string;
|
|
284
|
+
package: string;
|
|
285
|
+
implemented: boolean;
|
|
286
|
+
}[];
|
|
287
|
+
run(input: AgentHarnessRunInput): Promise<AgentHarnessResult>;
|
|
288
|
+
}
|
|
289
|
+
declare const AgentHarnessServiceDefinition: ServiceDefinition;
|
|
290
|
+
declare const AgentHarnessServiceFacade: {
|
|
291
|
+
id: string;
|
|
292
|
+
name: string;
|
|
293
|
+
version: string;
|
|
294
|
+
runtime: "client";
|
|
295
|
+
deployment: "local";
|
|
296
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
297
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
298
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export { type AgentHarnessProvider, type AgentHarnessProviderInfo, type AgentHarnessResult, type AgentHarnessRunInput, AgentHarnessRuntime, type AgentHarnessServiceContract, AgentHarnessServiceDefinition, AgentHarnessServiceFacade, type CodeDiagnosticsInput, type CodeDiagnosticsResult, CodeDiagnosticsService, type CodeValidationInput, type CodeValidationResult, CodeValidationRuntime, CodeValidationServiceDefinition, CodeValidationServiceFacade, type DevelopmentProvider, type DevelopmentRequest, type DevelopmentResult, DevelopmentRuntime, type DevelopmentServiceContract, DevelopmentServiceDefinition, DevelopmentServiceFacade, type DevelopmentTask, GitHubActionsClient, type GitHubActionsConfig, GitHubActionsServiceDefinition, GitHubActionsServiceFacade, TYPESCRIPT_LANGUAGE_SERVER_PACKAGE, TYPESCRIPT_LANGUAGE_SERVER_VERSION, type TypeScriptLanguageServerNotificationInput, type TypeScriptLanguageServerRequestInput, type TypeScriptLanguageServerResponse, TypeScriptLanguageServerServiceDefinition, TypeScriptLanguageServerServiceFacade, type TypeScriptLanguageServerStartInput, type TypeScriptLanguageServerStatus, type ValidationDiagnostic, type ValidationLayer, type WebContainerCommand, type WebContainerRunCommandInput, WebContainerRuntime, WebContainerServiceDefinition, WebContainerServiceFacade, type WorkflowRun, codeDiagnosticsService, resolveDevelopmentCommand };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AgentHarnessRuntime,
|
|
3
|
+
AgentHarnessServiceDefinition,
|
|
4
|
+
AgentHarnessServiceFacade,
|
|
2
5
|
CodeDiagnosticsService,
|
|
3
6
|
CodeValidationRuntime,
|
|
4
7
|
CodeValidationServiceDefinition,
|
|
@@ -18,9 +21,12 @@ import {
|
|
|
18
21
|
WebContainerServiceFacade,
|
|
19
22
|
codeDiagnosticsService,
|
|
20
23
|
resolveDevelopmentCommand
|
|
21
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-SQGBAWZN.js";
|
|
22
25
|
import "../chunk-TY32TUNI.js";
|
|
23
26
|
export {
|
|
27
|
+
AgentHarnessRuntime,
|
|
28
|
+
AgentHarnessServiceDefinition,
|
|
29
|
+
AgentHarnessServiceFacade,
|
|
24
30
|
CodeDiagnosticsService,
|
|
25
31
|
CodeValidationRuntime,
|
|
26
32
|
CodeValidationServiceDefinition,
|
|
@@ -13,7 +13,7 @@ export { AdaptedStorageConnection, AppAccountManifest, AppServiceDeclaration, CA
|
|
|
13
13
|
export { CompositeBackend, EndpointGenerator, GeneratedEndpointSummary, LOCAL_STORAGE_GRAPHS_PREFIX, LocalService, NodeGraphPersistenceService, NodeGraphValidationResult, RemoteServiceProxy, SaveGraphOptions, UniversalAppEntity, UniversalGraphEdge, UniversalGraphNode, UniversalNodeGraphDocument, UniversalStorageConnection, WorkspaceGraphDocument, WorkspaceGraphSummary, createBackend, createCompositeService, createLocalService, createRemoteService, exportGraphAsJsonFile, nodeGraphPersistence, parseGraphJsonFile, validateGraphDocument, workspaceGraphService } from './services/index.js';
|
|
14
14
|
import { AssetDataType as AssetDataType$1, AssetChannelType as AssetChannelType$1, GraphFolderInfo as GraphFolderInfo$1, GraphAssetItem as GraphAssetItem$1, SpaceNode, NodeConnection, DawProject } from '@ultrst-armada/kloks/state-graph';
|
|
15
15
|
export { AuthServiceDefinition, AuthServiceFacade, ControlPlaneServiceDefinition, ControlPlaneServiceFacade, DatabaseServiceDefinition, DatabaseServiceFacade, GeminiServiceDefinition, GeminiServiceFacade, SrklServiceDefinition, SrklServiceFacade, StorageServiceDefinition, StorageServiceFacade, WorkspaceGraphServiceDefinition, WorkspaceGraphServiceFacade, WorkspaceServiceDefinition, WorkspaceServiceFacade, krnlAuthServiceDefinition, krnlAuthServiceFacade, krnlControlPlaneServiceDefinition, krnlControlPlaneServiceFacade, krnlDatabaseServiceDefinition, krnlDatabaseServiceFacade, krnlGeminiServiceDefinition, krnlGeminiServiceFacade, krnlSrklServiceDefinition, krnlSrklServiceFacade, krnlStorageServiceDefinition, krnlStorageServiceFacade, krnlWorkspaceGraphServiceDefinition, krnlWorkspaceGraphServiceFacade, krnlWorkspaceServiceDefinition, krnlWorkspaceServiceFacade } from './krnl-services.js';
|
|
16
|
-
export { CodeDiagnosticsInput, CodeDiagnosticsResult, CodeDiagnosticsService, CodeValidationInput, CodeValidationResult, CodeValidationRuntime, CodeValidationServiceDefinition, CodeValidationServiceFacade, DevelopmentProvider, DevelopmentRequest, DevelopmentResult, DevelopmentRuntime, DevelopmentServiceContract, DevelopmentServiceDefinition, DevelopmentServiceFacade, DevelopmentTask, GitHubActionsClient, GitHubActionsConfig, GitHubActionsServiceDefinition, GitHubActionsServiceFacade, TYPESCRIPT_LANGUAGE_SERVER_PACKAGE, TYPESCRIPT_LANGUAGE_SERVER_VERSION, TypeScriptLanguageServerNotificationInput, TypeScriptLanguageServerRequestInput, TypeScriptLanguageServerResponse, TypeScriptLanguageServerServiceDefinition, TypeScriptLanguageServerServiceFacade, TypeScriptLanguageServerStartInput, TypeScriptLanguageServerStatus, ValidationDiagnostic, ValidationLayer, WebContainerCommand, WebContainerRunCommandInput, WebContainerRuntime, WebContainerServiceDefinition, WebContainerServiceFacade, WorkflowRun, codeDiagnosticsService, resolveDevelopmentCommand } from './development/index.js';
|
|
16
|
+
export { AgentHarnessProvider, AgentHarnessProviderInfo, AgentHarnessResult, AgentHarnessRunInput, AgentHarnessRuntime, AgentHarnessServiceContract, AgentHarnessServiceDefinition, AgentHarnessServiceFacade, CodeDiagnosticsInput, CodeDiagnosticsResult, CodeDiagnosticsService, CodeValidationInput, CodeValidationResult, CodeValidationRuntime, CodeValidationServiceDefinition, CodeValidationServiceFacade, DevelopmentProvider, DevelopmentRequest, DevelopmentResult, DevelopmentRuntime, DevelopmentServiceContract, DevelopmentServiceDefinition, DevelopmentServiceFacade, DevelopmentTask, GitHubActionsClient, GitHubActionsConfig, GitHubActionsServiceDefinition, GitHubActionsServiceFacade, TYPESCRIPT_LANGUAGE_SERVER_PACKAGE, TYPESCRIPT_LANGUAGE_SERVER_VERSION, TypeScriptLanguageServerNotificationInput, TypeScriptLanguageServerRequestInput, TypeScriptLanguageServerResponse, TypeScriptLanguageServerServiceDefinition, TypeScriptLanguageServerServiceFacade, TypeScriptLanguageServerStartInput, TypeScriptLanguageServerStatus, ValidationDiagnostic, ValidationLayer, WebContainerCommand, WebContainerRunCommandInput, WebContainerRuntime, WebContainerServiceDefinition, WebContainerServiceFacade, WorkflowRun, codeDiagnosticsService, resolveDevelopmentCommand } from './development/index.js';
|
|
17
17
|
export { EndpointDescriptor, IService, ProtocolAdapter, ServiceDefinition } from '@ultrst-armada/krnl';
|
|
18
18
|
import 'react';
|
|
19
19
|
|
|
@@ -291,7 +291,7 @@ declare function listBackblazeBuckets(payload: any, rawUserId?: string, env?: Re
|
|
|
291
291
|
buckets?: any[];
|
|
292
292
|
error?: string;
|
|
293
293
|
}>;
|
|
294
|
-
declare const srklListBackblazeBuckets: (keyId?: string, applicationKey?: string, bucketId?: string, bucketName?: string, userId?: string) => Promise<{
|
|
294
|
+
declare const srklListBackblazeBuckets: (keyId?: string, applicationKey?: string, bucketId?: string, bucketName?: string, userId?: string, accountId?: string) => Promise<{
|
|
295
295
|
success: boolean;
|
|
296
296
|
buckets?: any[];
|
|
297
297
|
error?: string;
|