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.
Files changed (40) hide show
  1. package/cli/core/app.ts +2 -0
  2. package/cli/dist/cli.mjs +543 -83
  3. package/cli/dist/cli.mjs.map +1 -1
  4. package/cli/modules/bucket.ts +396 -0
  5. package/cli/modules/pikg_protocol.ts +67 -0
  6. package/cli/version.ts +1 -1
  7. package/dist/browser.cjs +1 -1
  8. package/dist/browser.cjs.map +1 -1
  9. package/dist/browser.d.ts +2 -0
  10. package/dist/browser.d.ts.map +1 -1
  11. package/dist/browser.mjs +190 -189
  12. package/dist/browser.mjs.map +1 -1
  13. package/dist/bucket_client.d.ts +344 -0
  14. package/dist/bucket_client.d.ts.map +1 -0
  15. package/dist/{executor_client-4fbf0c3c.mjs → executor_client-06dad8a8.mjs} +434 -192
  16. package/dist/executor_client-06dad8a8.mjs.map +1 -0
  17. package/dist/executor_client-d7fc4a8b.js +13 -0
  18. package/dist/executor_client-d7fc4a8b.js.map +1 -0
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.ts +3 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.mjs +195 -192
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/ndm_client.d.ts +30 -0
  26. package/dist/ndm_client.d.ts.map +1 -1
  27. package/dist/node.cjs +1 -1
  28. package/dist/node.cjs.map +1 -1
  29. package/dist/node.d.ts +2 -0
  30. package/dist/node.d.ts.map +1 -1
  31. package/dist/node.mjs +190 -189
  32. package/dist/node.mjs.map +1 -1
  33. package/dist/runtime.d.ts +2 -0
  34. package/dist/runtime.d.ts.map +1 -1
  35. package/dist/sdk_core.d.ts +4 -0
  36. package/dist/sdk_core.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/dist/executor_client-4fbf0c3c.mjs.map +0 -1
  39. package/dist/executor_client-5fa2d501.js +0 -13
  40. 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({ objects: [...session.manifest.values()], roots: session.items.map((item) => item.objectId), qcid_links: session.qcidLinks })
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
- CONTACT_TAG_HOMESTATION_FOLLOWING as $,
29717
- NOTIFY_ACTION_DISMISS as A,
29957
+ CONTACT_TAG_ZONE_AGENT as $,
29958
+ NOTIFY_ACTION_ANSWER as A,
29718
29959
  BS_SERVICE_VERIFY_HUB as B,
29719
- NOTIFY_LINK_PATH as C,
29720
- isNotifyClosed as D,
29960
+ NOTIFY_ACTION_DISMISS as C,
29961
+ NOTIFY_LINK_PATH as D,
29721
29962
  EXTERNAL_PRINCIPAL_CLAIM as E,
29722
- notifyCategorySessionId as F,
29723
- notifyCategoryFromSessionId as G,
29724
- inputPrompt as H,
29725
- promptOptions as I,
29726
- notifyAnswerToTaskResult as J,
29727
- validateNotifyAnswer as K,
29728
- notifyUrl as L,
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
- msgMachineData as O,
29732
- notifyMessageData as P,
29733
- commitNotifyAnswer as Q,
29972
+ notifyUrl as O,
29973
+ msgMachineData as P,
29974
+ notifyMessageData as Q,
29734
29975
  RuntimeType as R,
29735
29976
  SystemConfigClient as S,
29736
- answerNotify as T,
29737
- waitNotify as U,
29977
+ commitNotifyAnswer as T,
29978
+ answerNotify as U,
29738
29979
  VerifyHubClient as V,
29739
29980
  WEB3_BRIDGE_HOST as W,
29740
- FRIEND_INTENT as X,
29741
- CONTACT_TAG_ZONE_USER as Y,
29981
+ waitNotify as X,
29982
+ FRIEND_INTENT as Y,
29742
29983
  ZONE_USER_TYPES as Z,
29743
- CONTACT_TAG_ZONE_AGENT as _,
29984
+ CONTACT_TAG_ZONE_USER as _,
29744
29985
  ndm_proxy as a,
29745
- TASK_ERR_CONTROL_ALREADY_PENDING as a$,
29746
- CONTACT_CHANGED_EVENT_BOX as a0,
29747
- WELL_KNOWN_CONTACT_TAGS as a1,
29748
- USER_TYPE_GROUP_REF_PREFIX as a2,
29749
- USER_GROUP_REF_PREFIX as a3,
29750
- contactTagApp as a4,
29751
- contactTagKind as a5,
29752
- isUserGroupRefTag as a6,
29753
- DENY_REASONS as a7,
29754
- ACCESS_DENIED_ERROR_CODE as a8,
29755
- parseAccessDenial as a9,
29756
- DOWNLOAD_TASK_SCHEMA_ID as aA,
29757
- SCHEDULER_DISPATCH_THUNK_TASK_SCHEMA_ID as aB,
29758
- WORKFLOW_RUN_TREE_TASK_SCHEMA_ID as aC,
29759
- WORKFLOW_STEP_TASK_SCHEMA_ID as aD,
29760
- WORKFLOW_MAP_SHARD_TASK_SCHEMA_ID as aE,
29761
- WORKFLOW_THUNK_TASK_SCHEMA_ID as aF,
29762
- WORKFLOW_SCHEDULE_TASK_SCHEMA_ID as aG,
29763
- WORKFLOW_SEND_MESSAGE_TASK_SCHEMA_ID as aH,
29764
- WORKFLOW_EXECUTE_RPC_TASK_SCHEMA_ID as aI,
29765
- WORKFLOW_RUN_TARGET_TASK_SCHEMA_ID as aJ,
29766
- AGENT_DELEGATE_TASK_SCHEMA_ID as aK,
29767
- HUMAN_INPUT_TASK_SCHEMA_ID as aL,
29768
- OPENDAN_ASYNC_TOOL_TASK_SCHEMA_ID as aM,
29769
- OPENDAN_COMMAND_TASK_SCHEMA_ID as aN,
29770
- TOOL_EXEC_BASH_TASK_SCHEMA_ID as aO,
29771
- AICC_COMPUTE_TASK_SCHEMA_ID as aP,
29772
- APP_INSTALL_TASK_SCHEMA_ID as aQ,
29773
- APP_UNINSTALL_TASK_SCHEMA_ID as aR,
29774
- APP_START_TASK_SCHEMA_ID as aS,
29775
- APP_UPDATE_TASK_SCHEMA_ID as aT,
29776
- APP_UPDATE_BATCH_TASK_SCHEMA_ID as aU,
29777
- TASK_ERR_NOT_FOUND as aV,
29778
- TASK_ERR_PERMISSION_DENIED as aW,
29779
- TASK_ERR_REVISION_CONFLICT as aX,
29780
- TASK_ERR_STALE_RUNNER_EPOCH as aY,
29781
- TASK_ERR_INVALID_PHASE as aZ,
29782
- TASK_ERR_CONTROL_NOT_AVAILABLE as a_,
29783
- accessDenialOf as aa,
29784
- ANONYMOUS_IDENTITY as ab,
29785
- parseCurrentIdentity as ac,
29786
- identityKey as ad,
29787
- identityAllows as ae,
29788
- DEFAULT_JUMP_BASE_URL as af,
29789
- JUMP_ACTION_PATHS as ag,
29790
- normalizeZoneHostname as ah,
29791
- zoneActionUrl as ai,
29792
- buildJumpUrl as aj,
29793
- APP_LOGIN_ISSUE_METHOD as ak,
29794
- APP_LOGIN_EXCHANGE_METHOD as al,
29795
- APP_LOGIN_SETTINGS_GET_METHOD as am,
29796
- APP_LOGIN_SETTINGS_SET_METHOD as an,
29797
- issueAppLoginCode as ao,
29798
- issueAppCustomerLink as ap,
29799
- parseAppLoginExchangeResult as aq,
29800
- randomAppLoginNonce as ar,
29801
- loginByAppAccessToken as as,
29802
- completeAppAccessTokenLogin as at,
29803
- TASK_MANAGER_SERVICE_UNIQUE_ID as au,
29804
- TASK_MANAGER_SERVICE_NAME as av,
29805
- TASK_MANAGER_SERVICE_PORT as aw,
29806
- TASK_POLICY_PRESET_COLLABORATIVE_TREE_V1 as ax,
29807
- RAW_TASK_SCHEMA_ID as ay,
29808
- HUMAN_APPROVAL_SCHEMA_ID as az,
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
- KEventClient as b$,
29811
- TASK_ERR_ALREADY_COMPLETED as b0,
29812
- TASK_ERR_INPUT_SCHEMA_MISMATCH as b1,
29813
- TASK_ERR_RESULT_SCHEMA_MISMATCH as b2,
29814
- TASK_ERR_IDEMPOTENCY_CONFLICT as b3,
29815
- TASK_ERR_SCHEMA_NOT_FOUND as b4,
29816
- TASK_MGR_ERROR_CODES as b5,
29817
- taskMgrTaskEventPath as b6,
29818
- taskMgrTreeEventPath as b7,
29819
- taskMgrErrorCode as b8,
29820
- TaskExecutorKind as b9,
29821
- AICC_SERVICE_UNIQUE_ID as bA,
29822
- AICC_SERVICE_SERVICE_NAME as bB,
29823
- AICC_SERVICE_SERVICE_PORT as bC,
29824
- AICC_AI_METHODS as bD,
29825
- AICC_CORE_METHODS as bE,
29826
- AICC_MANAGEMENT_METHODS as bF,
29827
- AICC_QUOTA_METHODS as bG,
29828
- AICC_METHODS as bH,
29829
- AICC_FEATURES as bI,
29830
- AICC_EXECUTION_MODES as bJ,
29831
- AICC_POLICY_REFUSAL_CODES as bK,
29832
- aiccRefusalOf as bL,
29833
- isAiccAiMethod as bM,
29834
- aiccTextMessage as bN,
29835
- aiccMessageTextContent as bO,
29836
- aiccMessageFirstText as bP,
29837
- validateAiccMessage as bQ,
29838
- AiccClient as bR,
29839
- decisionRequirements as bS,
29840
- validateDecisionRequest as bT,
29841
- validateDecisionAnswers as bU,
29842
- parseVideoPrompt as bV,
29843
- validateVideoOutput as bW,
29844
- validateVideoGeneration as bX,
29845
- validateVideoEdit as bY,
29846
- videoGenerationRequirement as bZ,
29847
- KEventReader as b_,
29848
- TaskPhase as ba,
29849
- isTerminalTaskPhase as bb,
29850
- TaskWaitReasonKind as bc,
29851
- TaskOutcome as bd,
29852
- TaskControlAction as be,
29853
- baselineTaskControlProfile as bf,
29854
- DEFAULT_CHILD_CONTROL_POLICY as bg,
29855
- TaskAction as bh,
29856
- TaskGrantScope as bi,
29857
- TaskDataScope as bj,
29858
- StorageDomain as bk,
29859
- TaskEventType as bl,
29860
- TaskManagerClient as bm,
29861
- WORKFLOW_SERVICE_NAME as bn,
29862
- WorkflowStepType as bo,
29863
- WorkflowOutputMode as bp,
29864
- WorkflowJoinMode as bq,
29865
- WorkflowRetryFallback as br,
29866
- WorkflowDefinitionStatus as bs,
29867
- WorkflowRunStatus as bt,
29868
- WorkflowNodeRunState as bu,
29869
- WorkflowHumanActionKind as bv,
29870
- WorkflowScheduledTaskStatus as bw,
29871
- WorkflowScheduledTaskMisfirePolicy as bx,
29872
- WorkflowScheduledTaskFireStatus as by,
29873
- WorkflowClient as bz,
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
- appIdFromDid as c0,
29876
- parseAppId as c1,
29877
- appDidFromId as c2,
29878
- createAppInstanceId as c3,
29879
- parseAppInstanceId as c4,
29880
- BNS_EVM_DEFAULT_GAS_LIMIT as c5,
29881
- BNS_EVM_DEFAULT_MAX_FEE_PER_GAS as c6,
29882
- BNS_EVM_DEFAULT_MAX_PRIORITY_FEE_PER_GAS as c7,
29883
- BNS_MAX_INLINE_DOCUMENT_BYTES as c8,
29884
- BNS_DNS_TXT_DEFAULT_TTL as c9,
29885
- BNS_DNS_TXT_DOC_TYPE as ca,
29886
- BNS_PUBLISH_DOCUMENT_ABI as cb,
29887
- BnsEvmTxError as cc,
29888
- BnsEvmTxBuilder as cd,
29889
- decodeBnsPublishDocumentCalldata as ce,
29890
- BnsTxExecutorError as cf,
29891
- walletUserHasSnAccount as cg,
29892
- BnsTxExecutor as ch,
29893
- ExecutorClient as ci,
29894
- ExecutorStreamError as cj,
29895
- encodeExecutorControl as ck,
29896
- ExecutorCommandStream as cl,
29897
- AIWORKSPACE_SERVICE_NAME as cm,
29898
- AiwsFailure as cn,
29899
- AiWorkspaceClient as co,
29900
- BS_SERVICE_TASK_MANAGER as d,
29901
- getActiveRuntimeType as e,
29902
- getActiveZoneGatewayOrigin as f,
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
- getActiveSessionToken as h,
29905
- BuckyOSSDK as i,
29906
- RepoClient as j,
29907
- parseZoneUserType as k,
29908
- isExternalPrincipal as l,
29909
- RPCError as m,
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
- MsgCenterClient as o,
30153
+ RPCError as o,
29912
30154
  parseSessionTokenClaims as p,
29913
- mailboxAddress as q,
30155
+ MsgCenterClient as q,
29914
30156
  resolveDidFromHost as r,
29915
30157
  sn_client as s,
29916
- mailboxResource as t,
29917
- NOTIFY_DELIVERED_INTENT as u,
29918
- NOTIFY_DATA_VERSION as v,
29919
- NOTIFY_SESSION_PREFIX as w,
29920
- NOTIFY_CHOICE_CONTROL_ID as x,
29921
- NOTIFY_TEXT_CONTROL_ID as y,
29922
- NOTIFY_ACTION_ANSWER as z
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-4fbf0c3c.mjs.map
30166
+ //# sourceMappingURL=executor_client-06dad8a8.mjs.map