buckyos 0.7.148 → 0.7.149
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/cli/core/app.ts +2 -0
- package/cli/dist/cli.mjs +543 -83
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/bucket.ts +396 -0
- package/cli/modules/pikg_protocol.ts +67 -0
- package/cli/version.ts +1 -1
- package/dist/browser.cjs +1 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +2 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.mjs +190 -189
- package/dist/browser.mjs.map +1 -1
- package/dist/bucket_client.d.ts +344 -0
- package/dist/bucket_client.d.ts.map +1 -0
- package/dist/{executor_client-4fbf0c3c.mjs → executor_client-06dad8a8.mjs} +434 -192
- package/dist/executor_client-06dad8a8.mjs.map +1 -0
- package/dist/executor_client-d7fc4a8b.js +13 -0
- package/dist/executor_client-d7fc4a8b.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +195 -192
- package/dist/index.mjs.map +1 -1
- package/dist/ndm_client.d.ts +30 -0
- package/dist/ndm_client.d.ts.map +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +2 -0
- package/dist/node.d.ts.map +1 -1
- package/dist/node.mjs +190 -189
- package/dist/node.mjs.map +1 -1
- package/dist/runtime.d.ts +2 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/sdk_core.d.ts +4 -0
- package/dist/sdk_core.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/executor_client-4fbf0c3c.mjs.map +0 -1
- package/dist/executor_client-5fa2d501.js +0 -13
- package/dist/executor_client-5fa2d501.js.map +0 -1
|
@@ -408,6 +408,203 @@ class AiWorkspaceClient {
|
|
|
408
408
|
return this.call("proc.cancel", { workspace_id, run_id });
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
+
const BUCKET_SERVICE_NAME = "nfs-server";
|
|
412
|
+
const BUCKET_DATA_PATH = "/bucket/v1/";
|
|
413
|
+
const BUCKET_MAX_PUT_BYTES = 32 * 1024 * 1024;
|
|
414
|
+
class BucketError extends Error {
|
|
415
|
+
constructor(code, message, status, data) {
|
|
416
|
+
super(message);
|
|
417
|
+
this.code = code;
|
|
418
|
+
this.status = status;
|
|
419
|
+
this.data = data;
|
|
420
|
+
this.name = "BucketError";
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function bucketDataPlaneBase(serviceUrl) {
|
|
424
|
+
const at = serviceUrl.indexOf("/kapi/");
|
|
425
|
+
return at >= 0 ? serviceUrl.slice(0, at) : "";
|
|
426
|
+
}
|
|
427
|
+
function bucketObjectPath(bucketId, key) {
|
|
428
|
+
return `${BUCKET_DATA_PATH}${bucketId}/${key.split("/").map(encodeURIComponent).join("/")}`;
|
|
429
|
+
}
|
|
430
|
+
class BucketClient {
|
|
431
|
+
constructor(rpcClient, options = { dataPlaneBase: "" }) {
|
|
432
|
+
this.rpcClient = rpcClient;
|
|
433
|
+
this.options = options;
|
|
434
|
+
}
|
|
435
|
+
call(method, params) {
|
|
436
|
+
return this.rpcClient.call(method, params);
|
|
437
|
+
}
|
|
438
|
+
list(filter = {}) {
|
|
439
|
+
return this.call("bucket.list", { ...filter });
|
|
440
|
+
}
|
|
441
|
+
stat(bucketId) {
|
|
442
|
+
return this.call("bucket.stat", { bucket_id: bucketId });
|
|
443
|
+
}
|
|
444
|
+
put(bucketId, req) {
|
|
445
|
+
return this.call("bucket.put", { bucket_id: bucketId, ...req });
|
|
446
|
+
}
|
|
447
|
+
get(bucketId, key, version2) {
|
|
448
|
+
return this.call("bucket.get", { bucket_id: bucketId, key, version: version2 });
|
|
449
|
+
}
|
|
450
|
+
head(bucketId, key, version2) {
|
|
451
|
+
return this.call("bucket.head", { bucket_id: bucketId, key, version: version2 });
|
|
452
|
+
}
|
|
453
|
+
delete(bucketId, key, options = {}) {
|
|
454
|
+
return this.call("bucket.delete", { bucket_id: bucketId, key, version: options.version, if_match: options.ifMatch });
|
|
455
|
+
}
|
|
456
|
+
listObjects(bucketId, req = {}) {
|
|
457
|
+
return this.call("bucket.list_objects", { bucket_id: bucketId, ...req });
|
|
458
|
+
}
|
|
459
|
+
listVersions(bucketId, key) {
|
|
460
|
+
return this.call("bucket.list_versions", { bucket_id: bucketId, key });
|
|
461
|
+
}
|
|
462
|
+
copy(req) {
|
|
463
|
+
return this.call("bucket.copy", { ...req });
|
|
464
|
+
}
|
|
465
|
+
batch(bucketId, ops) {
|
|
466
|
+
return this.call("bucket.batch", { bucket_id: bucketId, ops });
|
|
467
|
+
}
|
|
468
|
+
setMetadata(bucketId, key, update) {
|
|
469
|
+
return this.call("bucket.set_metadata", { bucket_id: bucketId, key, ...update });
|
|
470
|
+
}
|
|
471
|
+
grant(bucketId, req) {
|
|
472
|
+
return this.call("bucket.grant", { bucket_id: bucketId, ...req });
|
|
473
|
+
}
|
|
474
|
+
revoke(grantId) {
|
|
475
|
+
return this.call("bucket.revoke", { grant_id: grantId });
|
|
476
|
+
}
|
|
477
|
+
listGrants(bucketId) {
|
|
478
|
+
return this.call("bucket.list_grants", { bucket_id: bucketId });
|
|
479
|
+
}
|
|
480
|
+
createAccessToken(bucketId, req) {
|
|
481
|
+
return this.call("bucket.create_access_token", { bucket_id: bucketId, ...req });
|
|
482
|
+
}
|
|
483
|
+
revokeAccessToken(tokenId) {
|
|
484
|
+
return this.call("bucket.revoke_access_token", { token_id: tokenId });
|
|
485
|
+
}
|
|
486
|
+
listAccessTokens(bucketId) {
|
|
487
|
+
return this.call("bucket.list_access_tokens", { bucket_id: bucketId });
|
|
488
|
+
}
|
|
489
|
+
checkAccess(bucketId, action, target = {}) {
|
|
490
|
+
return this.call("bucket.check_access", { bucket_id: bucketId, action, ...target });
|
|
491
|
+
}
|
|
492
|
+
getQuota(bucketId) {
|
|
493
|
+
return this.call("bucket.get_quota", { bucket_id: bucketId });
|
|
494
|
+
}
|
|
495
|
+
setQuota(bucketId, update) {
|
|
496
|
+
return this.call("bucket.set_quota", { bucket_id: bucketId, ...update });
|
|
497
|
+
}
|
|
498
|
+
getPoolQuota(kind, id2) {
|
|
499
|
+
return this.call("bucket.get_pool_quota", { kind, id: id2 });
|
|
500
|
+
}
|
|
501
|
+
usageReport(kind, id2, days) {
|
|
502
|
+
return this.call("bucket.usage_report", { kind, id: id2, days });
|
|
503
|
+
}
|
|
504
|
+
getLifecycle(bucketId) {
|
|
505
|
+
return this.call("bucket.get_lifecycle", { bucket_id: bucketId });
|
|
506
|
+
}
|
|
507
|
+
setLifecycle(bucketId, rules) {
|
|
508
|
+
return this.call("bucket.set_lifecycle", { bucket_id: bucketId, rules });
|
|
509
|
+
}
|
|
510
|
+
snapshot(bucketId, options = {}) {
|
|
511
|
+
return this.call("bucket.snapshot", { bucket_id: bucketId, label: options.label, include_noncurrent: options.includeNoncurrent });
|
|
512
|
+
}
|
|
513
|
+
listSnapshots(bucketId) {
|
|
514
|
+
return this.call("bucket.list_snapshots", { bucket_id: bucketId });
|
|
515
|
+
}
|
|
516
|
+
deleteSnapshot(bucketId, snapshotId) {
|
|
517
|
+
return this.call("bucket.delete_snapshot", { bucket_id: bucketId, snapshot_id: snapshotId });
|
|
518
|
+
}
|
|
519
|
+
restoreFromSnapshot(bucketId, rootObjId) {
|
|
520
|
+
return this.call("bucket.restore_from_snapshot", { bucket_id: bucketId, root_obj_id: rootObjId });
|
|
521
|
+
}
|
|
522
|
+
exportSnapshot(bucketId, snapshotId, target) {
|
|
523
|
+
return this.call("bucket.export", { bucket_id: bucketId, snapshot_id: snapshotId, target });
|
|
524
|
+
}
|
|
525
|
+
verifyReferences(bucketId, refs) {
|
|
526
|
+
return this.call("bucket.verify_references", { bucket_id: bucketId, refs });
|
|
527
|
+
}
|
|
528
|
+
/** Issues an S3 access key for the signed-in user and `appid` (the user's own session only). */
|
|
529
|
+
createS3Key(appid, options = {}) {
|
|
530
|
+
return this.call("bucket.create_s3_key", { appid, scope: options.scope, expires_at: options.expiresAt });
|
|
531
|
+
}
|
|
532
|
+
listS3Keys() {
|
|
533
|
+
return this.call("bucket.list_s3_keys", {});
|
|
534
|
+
}
|
|
535
|
+
revokeS3Key(accessKeyId) {
|
|
536
|
+
return this.call("bucket.revoke_s3_key", { access_key_id: accessKeyId });
|
|
537
|
+
}
|
|
538
|
+
/** URL of a key on the data plane; same-origin browser pages read it with the SSO cookie. */
|
|
539
|
+
objectUrl(bucketId, key, options = {}) {
|
|
540
|
+
const query = new URLSearchParams();
|
|
541
|
+
if (options.version !== void 0)
|
|
542
|
+
query.set("version", String(options.version));
|
|
543
|
+
if (options.token)
|
|
544
|
+
query.set("token", options.token);
|
|
545
|
+
const qs = query.toString();
|
|
546
|
+
return `${this.options.dataPlaneBase}${bucketObjectPath(bucketId, key)}${qs ? `?${qs}` : ""}`;
|
|
547
|
+
}
|
|
548
|
+
async authHeaders() {
|
|
549
|
+
const token = this.options.sessionTokenProvider ? await this.options.sessionTokenProvider() : null;
|
|
550
|
+
return token ? { Authorization: `Bearer ${token}` } : {};
|
|
551
|
+
}
|
|
552
|
+
/** `PUT /bucket/v1/...`: stores up to 32 MiB and binds it; success means it is retained. */
|
|
553
|
+
async putBytes(bucketId, key, body, options = {}) {
|
|
554
|
+
const headers = { ...await this.authHeaders() };
|
|
555
|
+
if (options.contentType)
|
|
556
|
+
headers["Content-Type"] = options.contentType;
|
|
557
|
+
for (const [k, v] of Object.entries(options.metadata ?? {}))
|
|
558
|
+
headers[`x-bucky-meta-${k}`] = v;
|
|
559
|
+
if (options.tags)
|
|
560
|
+
headers["x-bucky-tags"] = JSON.stringify(options.tags);
|
|
561
|
+
if (options.expiresAt !== void 0)
|
|
562
|
+
headers["x-bucky-expires-at"] = String(options.expiresAt);
|
|
563
|
+
if (options.origin)
|
|
564
|
+
headers["x-bucky-origin"] = JSON.stringify(options.origin);
|
|
565
|
+
if (options.if_none_match)
|
|
566
|
+
headers["If-None-Match"] = options.if_none_match;
|
|
567
|
+
if (options.if_match)
|
|
568
|
+
headers["If-Match"] = options.if_match;
|
|
569
|
+
if (options.if_version !== void 0)
|
|
570
|
+
headers["x-bucky-if-version"] = String(options.if_version);
|
|
571
|
+
const response = await (this.options.fetcher ?? fetch)(this.objectUrl(bucketId, key), {
|
|
572
|
+
method: "PUT",
|
|
573
|
+
credentials: "include",
|
|
574
|
+
headers,
|
|
575
|
+
body
|
|
576
|
+
});
|
|
577
|
+
return this.json(response);
|
|
578
|
+
}
|
|
579
|
+
/** Reads a key's content (a `Response` to stream or `.blob()`). */
|
|
580
|
+
async fetchObject(bucketId, key, options = {}) {
|
|
581
|
+
const headers = options.token ? {} : await this.authHeaders();
|
|
582
|
+
if (options.range)
|
|
583
|
+
headers.Range = options.range;
|
|
584
|
+
const response = await (this.options.fetcher ?? fetch)(this.objectUrl(bucketId, key, options), { credentials: "include", headers });
|
|
585
|
+
if (!response.ok)
|
|
586
|
+
await this.json(response);
|
|
587
|
+
return response;
|
|
588
|
+
}
|
|
589
|
+
async json(response) {
|
|
590
|
+
const text = await response.text();
|
|
591
|
+
const body = text ? JSON.parse(text) : {};
|
|
592
|
+
if (!response.ok) {
|
|
593
|
+
throw new BucketError(String(body.error ?? response.status), String(body.message ?? response.statusText), response.status, body.data);
|
|
594
|
+
}
|
|
595
|
+
return body;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
const bucket_client = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
599
|
+
__proto__: null,
|
|
600
|
+
BUCKET_DATA_PATH,
|
|
601
|
+
BUCKET_MAX_PUT_BYTES,
|
|
602
|
+
BUCKET_SERVICE_NAME,
|
|
603
|
+
BucketClient,
|
|
604
|
+
BucketError,
|
|
605
|
+
bucketDataPlaneBase,
|
|
606
|
+
bucketObjectPath
|
|
607
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
411
608
|
function serializeAuthTarget(target) {
|
|
412
609
|
if (!target || typeof target !== "object") {
|
|
413
610
|
throw new RPCError("verify-hub auth target is required");
|
|
@@ -3526,6 +3723,12 @@ class BuckyOSRuntime {
|
|
|
3526
3723
|
getAiWorkspaceClient() {
|
|
3527
3724
|
return new AiWorkspaceClient(this.getServiceRpcClient(AIWORKSPACE_SERVICE_NAME));
|
|
3528
3725
|
}
|
|
3726
|
+
getBucketClient() {
|
|
3727
|
+
return new BucketClient(this.getServiceRpcClient(BUCKET_SERVICE_NAME), {
|
|
3728
|
+
dataPlaneBase: bucketDataPlaneBase(this.getZoneServiceURL(BUCKET_SERVICE_NAME)),
|
|
3729
|
+
sessionTokenProvider: this.ensureSessionTokenReady.bind(this)
|
|
3730
|
+
});
|
|
3731
|
+
}
|
|
3529
3732
|
getMsgQueueClient() {
|
|
3530
3733
|
return new MsgQueueClient(this.getServiceRpcClient("kmsg"));
|
|
3531
3734
|
}
|
|
@@ -5479,6 +5682,12 @@ class BuckyOSSDK {
|
|
|
5479
5682
|
}
|
|
5480
5683
|
return this.currentRuntime.getAiWorkspaceClient();
|
|
5481
5684
|
}
|
|
5685
|
+
getBucketClient() {
|
|
5686
|
+
if (this.currentRuntime == null) {
|
|
5687
|
+
throw new Error("BuckyOS WebSDK is not initialized,call initBuckyOS first");
|
|
5688
|
+
}
|
|
5689
|
+
return this.currentRuntime.getBucketClient();
|
|
5690
|
+
}
|
|
5482
5691
|
getMsgQueueClient() {
|
|
5483
5692
|
if (this.currentRuntime == null) {
|
|
5484
5693
|
throw new Error("BuckyOS WebSDK is not initialized,call initBuckyOS first");
|
|
@@ -5663,6 +5872,7 @@ function createSDKModule(target) {
|
|
|
5663
5872
|
getWorkflowClient: sdk.getWorkflowClient.bind(sdk),
|
|
5664
5873
|
getAiccClient: sdk.getAiccClient.bind(sdk),
|
|
5665
5874
|
getAiWorkspaceClient: sdk.getAiWorkspaceClient.bind(sdk),
|
|
5875
|
+
getBucketClient: sdk.getBucketClient.bind(sdk),
|
|
5666
5876
|
getMsgQueueClient: sdk.getMsgQueueClient.bind(sdk),
|
|
5667
5877
|
getMsgCenterClient: sdk.getMsgCenterClient.bind(sdk),
|
|
5668
5878
|
getRepoClient: sdk.getRepoClient.bind(sdk)
|
|
@@ -28564,6 +28774,7 @@ async function getImportSessionStatus(sessionId) {
|
|
|
28564
28774
|
collect(session.items);
|
|
28565
28775
|
return {
|
|
28566
28776
|
sessionId,
|
|
28777
|
+
...session.binding ? { binding: session.binding } : {},
|
|
28567
28778
|
materializationStatus: session.materializationStatus,
|
|
28568
28779
|
uploadStatus: session.uploadStatus,
|
|
28569
28780
|
objectStatus: session.objectStatus,
|
|
@@ -28697,6 +28908,11 @@ async function startUpload(sessionId, options = {}) {
|
|
|
28697
28908
|
session.objectStatus = "pending";
|
|
28698
28909
|
session.error = void 0;
|
|
28699
28910
|
session.onProgress = options.onProgress;
|
|
28911
|
+
if (options.bind) {
|
|
28912
|
+
if (session.items.length !== 1)
|
|
28913
|
+
throw new NdmError("UPLOAD_FAILED", "bind needs exactly one imported root");
|
|
28914
|
+
session.bind = options.bind;
|
|
28915
|
+
}
|
|
28700
28916
|
session.uploadStartTime = Date.now();
|
|
28701
28917
|
session.uploadPromise = doUpload(session, concurrency).catch((error) => {
|
|
28702
28918
|
var _a3;
|
|
@@ -28803,7 +29019,12 @@ async function doUpload(session, concurrency) {
|
|
|
28803
29019
|
credentials: "include",
|
|
28804
29020
|
signal: options.signal,
|
|
28805
29021
|
headers: { ...options.headers, "Content-Type": "application/json", ...token ? { Authorization: `Bearer ${token}` } : {} },
|
|
28806
|
-
body: JSON.stringify({
|
|
29022
|
+
body: JSON.stringify({
|
|
29023
|
+
objects: [...session.manifest.values()],
|
|
29024
|
+
roots: session.items.map((item) => item.objectId),
|
|
29025
|
+
qcid_links: session.qcidLinks,
|
|
29026
|
+
...session.bind ? { auto_bind: autoBindBody(session.bind) } : {}
|
|
29027
|
+
})
|
|
28807
29028
|
});
|
|
28808
29029
|
const body = await response.json();
|
|
28809
29030
|
if (!response.ok)
|
|
@@ -28814,11 +29035,31 @@ async function doUpload(session, concurrency) {
|
|
|
28814
29035
|
if (body.ready !== true || !Array.isArray(body.roots) || session.items.some((item) => !body.roots.some((root) => root.obj_id === item.objectId && root.ready === true))) {
|
|
28815
29036
|
throw new NdmError("OBJECT_NOT_READY", "NDM did not confirm all root objects and their dependencies are ready");
|
|
28816
29037
|
}
|
|
29038
|
+
if (session.bind)
|
|
29039
|
+
session.binding = body.binding;
|
|
28817
29040
|
session.objectStatus = "ready";
|
|
28818
29041
|
session.uploadStatus = session.transmittedBytes === 0 ? "not_required" : "completed";
|
|
28819
29042
|
session.materializationStatus = "all_in_store";
|
|
28820
29043
|
emitProgress(session);
|
|
28821
29044
|
}
|
|
29045
|
+
function autoBindBody(bind) {
|
|
29046
|
+
const body = { bucket_id: bind.bucketId, key: bind.key };
|
|
29047
|
+
if (bind.contentType !== void 0)
|
|
29048
|
+
body.content_type = bind.contentType;
|
|
29049
|
+
if (bind.metadata !== void 0)
|
|
29050
|
+
body.metadata = bind.metadata;
|
|
29051
|
+
if (bind.tags !== void 0)
|
|
29052
|
+
body.tags = bind.tags;
|
|
29053
|
+
if (bind.expiresAt !== void 0)
|
|
29054
|
+
body.expires_at = bind.expiresAt;
|
|
29055
|
+
if (bind.origin !== void 0)
|
|
29056
|
+
body.origin = bind.origin;
|
|
29057
|
+
if (bind.ifNoneMatch !== void 0)
|
|
29058
|
+
body.if_none_match = bind.ifNoneMatch;
|
|
29059
|
+
if (bind.ifMatch !== void 0)
|
|
29060
|
+
body.if_match = bind.ifMatch;
|
|
29061
|
+
return body;
|
|
29062
|
+
}
|
|
28822
29063
|
async function uploadMissingChunk(session, state, chunk, chunkIndex) {
|
|
28823
29064
|
var _a2, _b;
|
|
28824
29065
|
try {
|
|
@@ -29713,212 +29954,213 @@ class ExecutorCommandStream {
|
|
|
29713
29954
|
}
|
|
29714
29955
|
}
|
|
29715
29956
|
export {
|
|
29716
|
-
|
|
29717
|
-
|
|
29957
|
+
CONTACT_TAG_ZONE_AGENT as $,
|
|
29958
|
+
NOTIFY_ACTION_ANSWER as A,
|
|
29718
29959
|
BS_SERVICE_VERIFY_HUB as B,
|
|
29719
|
-
|
|
29720
|
-
|
|
29960
|
+
NOTIFY_ACTION_DISMISS as C,
|
|
29961
|
+
NOTIFY_LINK_PATH as D,
|
|
29721
29962
|
EXTERNAL_PRINCIPAL_CLAIM as E,
|
|
29722
|
-
|
|
29723
|
-
|
|
29724
|
-
|
|
29725
|
-
|
|
29726
|
-
|
|
29727
|
-
|
|
29728
|
-
|
|
29963
|
+
isNotifyClosed as F,
|
|
29964
|
+
notifyCategorySessionId as G,
|
|
29965
|
+
notifyCategoryFromSessionId as H,
|
|
29966
|
+
inputPrompt as I,
|
|
29967
|
+
promptOptions as J,
|
|
29968
|
+
notifyAnswerToTaskResult as K,
|
|
29969
|
+
validateNotifyAnswer as L,
|
|
29729
29970
|
MsgQueueClient as M,
|
|
29730
29971
|
NOTIFY_INTENT as N,
|
|
29731
|
-
|
|
29732
|
-
|
|
29733
|
-
|
|
29972
|
+
notifyUrl as O,
|
|
29973
|
+
msgMachineData as P,
|
|
29974
|
+
notifyMessageData as Q,
|
|
29734
29975
|
RuntimeType as R,
|
|
29735
29976
|
SystemConfigClient as S,
|
|
29736
|
-
|
|
29737
|
-
|
|
29977
|
+
commitNotifyAnswer as T,
|
|
29978
|
+
answerNotify as U,
|
|
29738
29979
|
VerifyHubClient as V,
|
|
29739
29980
|
WEB3_BRIDGE_HOST as W,
|
|
29740
|
-
|
|
29741
|
-
|
|
29981
|
+
waitNotify as X,
|
|
29982
|
+
FRIEND_INTENT as Y,
|
|
29742
29983
|
ZONE_USER_TYPES as Z,
|
|
29743
|
-
|
|
29984
|
+
CONTACT_TAG_ZONE_USER as _,
|
|
29744
29985
|
ndm_proxy as a,
|
|
29745
|
-
|
|
29746
|
-
|
|
29747
|
-
|
|
29748
|
-
|
|
29749
|
-
|
|
29750
|
-
|
|
29751
|
-
|
|
29752
|
-
|
|
29753
|
-
|
|
29754
|
-
|
|
29755
|
-
|
|
29756
|
-
|
|
29757
|
-
|
|
29758
|
-
|
|
29759
|
-
|
|
29760
|
-
|
|
29761
|
-
|
|
29762
|
-
|
|
29763
|
-
|
|
29764
|
-
|
|
29765
|
-
|
|
29766
|
-
|
|
29767
|
-
|
|
29768
|
-
|
|
29769
|
-
|
|
29770
|
-
|
|
29771
|
-
|
|
29772
|
-
|
|
29773
|
-
|
|
29774
|
-
|
|
29775
|
-
|
|
29776
|
-
|
|
29777
|
-
|
|
29778
|
-
|
|
29779
|
-
|
|
29780
|
-
|
|
29781
|
-
|
|
29782
|
-
|
|
29783
|
-
|
|
29784
|
-
|
|
29785
|
-
|
|
29786
|
-
|
|
29787
|
-
|
|
29788
|
-
|
|
29789
|
-
|
|
29790
|
-
|
|
29791
|
-
|
|
29792
|
-
|
|
29793
|
-
|
|
29794
|
-
|
|
29795
|
-
|
|
29796
|
-
|
|
29797
|
-
|
|
29798
|
-
|
|
29799
|
-
|
|
29800
|
-
|
|
29801
|
-
|
|
29802
|
-
|
|
29803
|
-
|
|
29804
|
-
|
|
29805
|
-
|
|
29806
|
-
|
|
29807
|
-
|
|
29808
|
-
|
|
29986
|
+
TASK_ERR_CONTROL_NOT_AVAILABLE as a$,
|
|
29987
|
+
CONTACT_TAG_HOMESTATION_FOLLOWING as a0,
|
|
29988
|
+
CONTACT_CHANGED_EVENT_BOX as a1,
|
|
29989
|
+
WELL_KNOWN_CONTACT_TAGS as a2,
|
|
29990
|
+
USER_TYPE_GROUP_REF_PREFIX as a3,
|
|
29991
|
+
USER_GROUP_REF_PREFIX as a4,
|
|
29992
|
+
contactTagApp as a5,
|
|
29993
|
+
contactTagKind as a6,
|
|
29994
|
+
isUserGroupRefTag as a7,
|
|
29995
|
+
DENY_REASONS as a8,
|
|
29996
|
+
ACCESS_DENIED_ERROR_CODE as a9,
|
|
29997
|
+
HUMAN_APPROVAL_SCHEMA_ID as aA,
|
|
29998
|
+
DOWNLOAD_TASK_SCHEMA_ID as aB,
|
|
29999
|
+
SCHEDULER_DISPATCH_THUNK_TASK_SCHEMA_ID as aC,
|
|
30000
|
+
WORKFLOW_RUN_TREE_TASK_SCHEMA_ID as aD,
|
|
30001
|
+
WORKFLOW_STEP_TASK_SCHEMA_ID as aE,
|
|
30002
|
+
WORKFLOW_MAP_SHARD_TASK_SCHEMA_ID as aF,
|
|
30003
|
+
WORKFLOW_THUNK_TASK_SCHEMA_ID as aG,
|
|
30004
|
+
WORKFLOW_SCHEDULE_TASK_SCHEMA_ID as aH,
|
|
30005
|
+
WORKFLOW_SEND_MESSAGE_TASK_SCHEMA_ID as aI,
|
|
30006
|
+
WORKFLOW_EXECUTE_RPC_TASK_SCHEMA_ID as aJ,
|
|
30007
|
+
WORKFLOW_RUN_TARGET_TASK_SCHEMA_ID as aK,
|
|
30008
|
+
AGENT_DELEGATE_TASK_SCHEMA_ID as aL,
|
|
30009
|
+
HUMAN_INPUT_TASK_SCHEMA_ID as aM,
|
|
30010
|
+
OPENDAN_ASYNC_TOOL_TASK_SCHEMA_ID as aN,
|
|
30011
|
+
OPENDAN_COMMAND_TASK_SCHEMA_ID as aO,
|
|
30012
|
+
TOOL_EXEC_BASH_TASK_SCHEMA_ID as aP,
|
|
30013
|
+
AICC_COMPUTE_TASK_SCHEMA_ID as aQ,
|
|
30014
|
+
APP_INSTALL_TASK_SCHEMA_ID as aR,
|
|
30015
|
+
APP_UNINSTALL_TASK_SCHEMA_ID as aS,
|
|
30016
|
+
APP_START_TASK_SCHEMA_ID as aT,
|
|
30017
|
+
APP_UPDATE_TASK_SCHEMA_ID as aU,
|
|
30018
|
+
APP_UPDATE_BATCH_TASK_SCHEMA_ID as aV,
|
|
30019
|
+
TASK_ERR_NOT_FOUND as aW,
|
|
30020
|
+
TASK_ERR_PERMISSION_DENIED as aX,
|
|
30021
|
+
TASK_ERR_REVISION_CONFLICT as aY,
|
|
30022
|
+
TASK_ERR_STALE_RUNNER_EPOCH as aZ,
|
|
30023
|
+
TASK_ERR_INVALID_PHASE as a_,
|
|
30024
|
+
parseAccessDenial as aa,
|
|
30025
|
+
accessDenialOf as ab,
|
|
30026
|
+
ANONYMOUS_IDENTITY as ac,
|
|
30027
|
+
parseCurrentIdentity as ad,
|
|
30028
|
+
identityKey as ae,
|
|
30029
|
+
identityAllows as af,
|
|
30030
|
+
DEFAULT_JUMP_BASE_URL as ag,
|
|
30031
|
+
JUMP_ACTION_PATHS as ah,
|
|
30032
|
+
normalizeZoneHostname as ai,
|
|
30033
|
+
zoneActionUrl as aj,
|
|
30034
|
+
buildJumpUrl as ak,
|
|
30035
|
+
APP_LOGIN_ISSUE_METHOD as al,
|
|
30036
|
+
APP_LOGIN_EXCHANGE_METHOD as am,
|
|
30037
|
+
APP_LOGIN_SETTINGS_GET_METHOD as an,
|
|
30038
|
+
APP_LOGIN_SETTINGS_SET_METHOD as ao,
|
|
30039
|
+
issueAppLoginCode as ap,
|
|
30040
|
+
issueAppCustomerLink as aq,
|
|
30041
|
+
parseAppLoginExchangeResult as ar,
|
|
30042
|
+
randomAppLoginNonce as as,
|
|
30043
|
+
loginByAppAccessToken as at,
|
|
30044
|
+
completeAppAccessTokenLogin as au,
|
|
30045
|
+
TASK_MANAGER_SERVICE_UNIQUE_ID as av,
|
|
30046
|
+
TASK_MANAGER_SERVICE_NAME as aw,
|
|
30047
|
+
TASK_MANAGER_SERVICE_PORT as ax,
|
|
30048
|
+
TASK_POLICY_PRESET_COLLABORATIVE_TREE_V1 as ay,
|
|
30049
|
+
RAW_TASK_SCHEMA_ID as az,
|
|
29809
30050
|
bns_client as b,
|
|
29810
|
-
|
|
29811
|
-
|
|
29812
|
-
|
|
29813
|
-
|
|
29814
|
-
|
|
29815
|
-
|
|
29816
|
-
|
|
29817
|
-
|
|
29818
|
-
|
|
29819
|
-
|
|
29820
|
-
|
|
29821
|
-
|
|
29822
|
-
|
|
29823
|
-
|
|
29824
|
-
|
|
29825
|
-
|
|
29826
|
-
|
|
29827
|
-
|
|
29828
|
-
|
|
29829
|
-
|
|
29830
|
-
|
|
29831
|
-
|
|
29832
|
-
|
|
29833
|
-
|
|
29834
|
-
|
|
29835
|
-
|
|
29836
|
-
|
|
29837
|
-
|
|
29838
|
-
|
|
29839
|
-
|
|
29840
|
-
|
|
29841
|
-
|
|
29842
|
-
|
|
29843
|
-
|
|
29844
|
-
|
|
29845
|
-
|
|
29846
|
-
|
|
29847
|
-
|
|
29848
|
-
|
|
29849
|
-
|
|
29850
|
-
|
|
29851
|
-
|
|
29852
|
-
|
|
29853
|
-
|
|
29854
|
-
|
|
29855
|
-
|
|
29856
|
-
|
|
29857
|
-
|
|
29858
|
-
|
|
29859
|
-
|
|
29860
|
-
|
|
29861
|
-
|
|
29862
|
-
|
|
29863
|
-
|
|
29864
|
-
|
|
29865
|
-
|
|
29866
|
-
|
|
29867
|
-
|
|
29868
|
-
|
|
29869
|
-
|
|
29870
|
-
|
|
29871
|
-
|
|
29872
|
-
|
|
29873
|
-
|
|
30051
|
+
KEventReader as b$,
|
|
30052
|
+
TASK_ERR_CONTROL_ALREADY_PENDING as b0,
|
|
30053
|
+
TASK_ERR_ALREADY_COMPLETED as b1,
|
|
30054
|
+
TASK_ERR_INPUT_SCHEMA_MISMATCH as b2,
|
|
30055
|
+
TASK_ERR_RESULT_SCHEMA_MISMATCH as b3,
|
|
30056
|
+
TASK_ERR_IDEMPOTENCY_CONFLICT as b4,
|
|
30057
|
+
TASK_ERR_SCHEMA_NOT_FOUND as b5,
|
|
30058
|
+
TASK_MGR_ERROR_CODES as b6,
|
|
30059
|
+
taskMgrTaskEventPath as b7,
|
|
30060
|
+
taskMgrTreeEventPath as b8,
|
|
30061
|
+
taskMgrErrorCode as b9,
|
|
30062
|
+
WorkflowClient as bA,
|
|
30063
|
+
AICC_SERVICE_UNIQUE_ID as bB,
|
|
30064
|
+
AICC_SERVICE_SERVICE_NAME as bC,
|
|
30065
|
+
AICC_SERVICE_SERVICE_PORT as bD,
|
|
30066
|
+
AICC_AI_METHODS as bE,
|
|
30067
|
+
AICC_CORE_METHODS as bF,
|
|
30068
|
+
AICC_MANAGEMENT_METHODS as bG,
|
|
30069
|
+
AICC_QUOTA_METHODS as bH,
|
|
30070
|
+
AICC_METHODS as bI,
|
|
30071
|
+
AICC_FEATURES as bJ,
|
|
30072
|
+
AICC_EXECUTION_MODES as bK,
|
|
30073
|
+
AICC_POLICY_REFUSAL_CODES as bL,
|
|
30074
|
+
aiccRefusalOf as bM,
|
|
30075
|
+
isAiccAiMethod as bN,
|
|
30076
|
+
aiccTextMessage as bO,
|
|
30077
|
+
aiccMessageTextContent as bP,
|
|
30078
|
+
aiccMessageFirstText as bQ,
|
|
30079
|
+
validateAiccMessage as bR,
|
|
30080
|
+
AiccClient as bS,
|
|
30081
|
+
decisionRequirements as bT,
|
|
30082
|
+
validateDecisionRequest as bU,
|
|
30083
|
+
validateDecisionAnswers as bV,
|
|
30084
|
+
parseVideoPrompt as bW,
|
|
30085
|
+
validateVideoOutput as bX,
|
|
30086
|
+
validateVideoGeneration as bY,
|
|
30087
|
+
validateVideoEdit as bZ,
|
|
30088
|
+
videoGenerationRequirement as b_,
|
|
30089
|
+
TaskExecutorKind as ba,
|
|
30090
|
+
TaskPhase as bb,
|
|
30091
|
+
isTerminalTaskPhase as bc,
|
|
30092
|
+
TaskWaitReasonKind as bd,
|
|
30093
|
+
TaskOutcome as be,
|
|
30094
|
+
TaskControlAction as bf,
|
|
30095
|
+
baselineTaskControlProfile as bg,
|
|
30096
|
+
DEFAULT_CHILD_CONTROL_POLICY as bh,
|
|
30097
|
+
TaskAction as bi,
|
|
30098
|
+
TaskGrantScope as bj,
|
|
30099
|
+
TaskDataScope as bk,
|
|
30100
|
+
StorageDomain as bl,
|
|
30101
|
+
TaskEventType as bm,
|
|
30102
|
+
TaskManagerClient as bn,
|
|
30103
|
+
WORKFLOW_SERVICE_NAME as bo,
|
|
30104
|
+
WorkflowStepType as bp,
|
|
30105
|
+
WorkflowOutputMode as bq,
|
|
30106
|
+
WorkflowJoinMode as br,
|
|
30107
|
+
WorkflowRetryFallback as bs,
|
|
30108
|
+
WorkflowDefinitionStatus as bt,
|
|
30109
|
+
WorkflowRunStatus as bu,
|
|
30110
|
+
WorkflowNodeRunState as bv,
|
|
30111
|
+
WorkflowHumanActionKind as bw,
|
|
30112
|
+
WorkflowScheduledTaskStatus as bx,
|
|
30113
|
+
WorkflowScheduledTaskMisfirePolicy as by,
|
|
30114
|
+
WorkflowScheduledTaskFireStatus as bz,
|
|
29874
30115
|
createSDKModule as c,
|
|
29875
|
-
|
|
29876
|
-
|
|
29877
|
-
|
|
29878
|
-
|
|
29879
|
-
|
|
29880
|
-
|
|
29881
|
-
|
|
29882
|
-
|
|
29883
|
-
|
|
29884
|
-
|
|
29885
|
-
|
|
29886
|
-
|
|
29887
|
-
|
|
29888
|
-
|
|
29889
|
-
|
|
29890
|
-
|
|
29891
|
-
|
|
29892
|
-
|
|
29893
|
-
|
|
29894
|
-
|
|
29895
|
-
|
|
29896
|
-
|
|
29897
|
-
|
|
29898
|
-
|
|
29899
|
-
|
|
29900
|
-
|
|
29901
|
-
|
|
29902
|
-
|
|
30116
|
+
KEventClient as c0,
|
|
30117
|
+
appIdFromDid as c1,
|
|
30118
|
+
parseAppId as c2,
|
|
30119
|
+
appDidFromId as c3,
|
|
30120
|
+
createAppInstanceId as c4,
|
|
30121
|
+
parseAppInstanceId as c5,
|
|
30122
|
+
BNS_EVM_DEFAULT_GAS_LIMIT as c6,
|
|
30123
|
+
BNS_EVM_DEFAULT_MAX_FEE_PER_GAS as c7,
|
|
30124
|
+
BNS_EVM_DEFAULT_MAX_PRIORITY_FEE_PER_GAS as c8,
|
|
30125
|
+
BNS_MAX_INLINE_DOCUMENT_BYTES as c9,
|
|
30126
|
+
BNS_DNS_TXT_DEFAULT_TTL as ca,
|
|
30127
|
+
BNS_DNS_TXT_DOC_TYPE as cb,
|
|
30128
|
+
BNS_PUBLISH_DOCUMENT_ABI as cc,
|
|
30129
|
+
BnsEvmTxError as cd,
|
|
30130
|
+
BnsEvmTxBuilder as ce,
|
|
30131
|
+
decodeBnsPublishDocumentCalldata as cf,
|
|
30132
|
+
BnsTxExecutorError as cg,
|
|
30133
|
+
walletUserHasSnAccount as ch,
|
|
30134
|
+
BnsTxExecutor as ci,
|
|
30135
|
+
ExecutorClient as cj,
|
|
30136
|
+
ExecutorStreamError as ck,
|
|
30137
|
+
encodeExecutorControl as cl,
|
|
30138
|
+
ExecutorCommandStream as cm,
|
|
30139
|
+
AIWORKSPACE_SERVICE_NAME as cn,
|
|
30140
|
+
AiwsFailure as co,
|
|
30141
|
+
AiWorkspaceClient as cp,
|
|
30142
|
+
bucket_client as d,
|
|
30143
|
+
BS_SERVICE_TASK_MANAGER as e,
|
|
30144
|
+
getActiveRuntimeType as f,
|
|
29903
30145
|
getCurrentWalletUserFromHost as g,
|
|
29904
|
-
|
|
29905
|
-
|
|
29906
|
-
|
|
29907
|
-
|
|
29908
|
-
|
|
29909
|
-
|
|
30146
|
+
getActiveZoneGatewayOrigin as h,
|
|
30147
|
+
getActiveSessionToken as i,
|
|
30148
|
+
BuckyOSSDK as j,
|
|
30149
|
+
RepoClient as k,
|
|
30150
|
+
parseZoneUserType as l,
|
|
30151
|
+
isExternalPrincipal as m,
|
|
29910
30152
|
ndm_client as n,
|
|
29911
|
-
|
|
30153
|
+
RPCError as o,
|
|
29912
30154
|
parseSessionTokenClaims as p,
|
|
29913
|
-
|
|
30155
|
+
MsgCenterClient as q,
|
|
29914
30156
|
resolveDidFromHost as r,
|
|
29915
30157
|
sn_client as s,
|
|
29916
|
-
|
|
29917
|
-
|
|
29918
|
-
|
|
29919
|
-
|
|
29920
|
-
|
|
29921
|
-
|
|
29922
|
-
|
|
30158
|
+
mailboxAddress as t,
|
|
30159
|
+
mailboxResource as u,
|
|
30160
|
+
NOTIFY_DELIVERED_INTENT as v,
|
|
30161
|
+
NOTIFY_DATA_VERSION as w,
|
|
30162
|
+
NOTIFY_SESSION_PREFIX as x,
|
|
30163
|
+
NOTIFY_CHOICE_CONTROL_ID as y,
|
|
30164
|
+
NOTIFY_TEXT_CONTROL_ID as z
|
|
29923
30165
|
};
|
|
29924
|
-
//# sourceMappingURL=executor_client-
|
|
30166
|
+
//# sourceMappingURL=executor_client-06dad8a8.mjs.map
|