buckyos 0.7.116 → 0.7.119

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 (46) hide show
  1. package/cli/README.md +14 -10
  2. package/cli/core/argv.ts +0 -4
  3. package/cli/core/auth.ts +104 -20
  4. package/cli/core/config.ts +0 -38
  5. package/cli/core/development_mode.ts +103 -0
  6. package/cli/core/identity.ts +39 -31
  7. package/cli/core/registry.ts +0 -2
  8. package/cli/dist/cli.mjs +320 -230
  9. package/cli/dist/cli.mjs.map +1 -1
  10. package/cli/runtime/host.ts +8 -10
  11. package/cli/version.ts +1 -1
  12. package/dist/browser.cjs +1 -1
  13. package/dist/browser.mjs +59 -58
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.mjs +59 -58
  16. package/dist/namelib.d.ts +4 -0
  17. package/dist/namelib.d.ts.map +1 -1
  18. package/dist/ndm_proxy-68354a89.js +13 -0
  19. package/dist/ndm_proxy-68354a89.js.map +1 -0
  20. package/dist/{ndm_proxy-a719bc58.mjs → ndm_proxy-c00bc561.mjs} +75 -58
  21. package/dist/ndm_proxy-c00bc561.mjs.map +1 -0
  22. package/dist/ndn_types-859bbd48.js +2 -0
  23. package/dist/ndn_types-859bbd48.js.map +1 -0
  24. package/dist/{ndn_types-ca94286b.mjs → ndn_types-f6c08d20.mjs} +43 -7
  25. package/dist/ndn_types-f6c08d20.mjs.map +1 -0
  26. package/dist/node.cjs +1 -1
  27. package/dist/node.mjs +59 -58
  28. package/dist/provision.cjs +1 -1
  29. package/dist/provision.mjs +1 -1
  30. package/dist/sn_client.d.ts +16 -0
  31. package/dist/sn_client.d.ts.map +1 -1
  32. package/dist/task_mgr_client.d.ts +10 -0
  33. package/dist/task_mgr_client.d.ts.map +1 -1
  34. package/dist/{tus_client-f1532e14.mjs → tus_client-573066b3.mjs} +2 -2
  35. package/dist/{tus_client-f1532e14.mjs.map → tus_client-573066b3.mjs.map} +1 -1
  36. package/dist/{tus_client-32d016c4.js → tus_client-83ad0f4f.js} +2 -2
  37. package/dist/{tus_client-32d016c4.js.map → tus_client-83ad0f4f.js.map} +1 -1
  38. package/dist/types.d.ts +1 -0
  39. package/dist/types.d.ts.map +1 -1
  40. package/package.json +1 -1
  41. package/dist/ndm_proxy-36879436.js +0 -13
  42. package/dist/ndm_proxy-36879436.js.map +0 -1
  43. package/dist/ndm_proxy-a719bc58.mjs.map +0 -1
  44. package/dist/ndn_types-c4672b04.js +0 -2
  45. package/dist/ndn_types-c4672b04.js.map +0 -1
  46. package/dist/ndn_types-ca94286b.mjs.map +0 -1
@@ -35,7 +35,7 @@ var __privateMethod = (obj, member, method) => {
35
35
  return method;
36
36
  };
37
37
  var _listener, _listeners, _cancelled, _allowInsecure, _gzip, _headers, _method, _timeout, _url, _body, _bodyType, _creds, _preflight, _process, _retry, _signal, _throttle, _getUrlFunc, _send, send_fn, _statusCode, _statusMessage, _headers2, _body2, _request, _error, _names, _data, _dataLength, _writeData, writeData_fn, _data2, _offset, _bytesRead, _parent, _maxInflation, _incrementBytesRead, incrementBytesRead_fn, _peekBytes, peekBytes_fn, _r, _s, _v, _networkV, _privateKey, _options, _type, _to, _data3, _nonce, _gasLimit, _gasPrice, _maxPriorityFeePerGas, _maxFeePerGas, _value, _chainId, _sig, _accessList, _maxFeePerBlobGas, _blobVersionedHashes, _kzg, _blobs, _auths, _blobWrapperVersion, _getSerialized, getSerialized_fn, _types, _fullTypes, _encoderCache, _getEncoder, getEncoder_fn, _offset2, _tokens, _subTokenString, subTokenString_fn, _walkAsync, walkAsync_fn, _getCoder, getCoder_fn, _errors, _events, _functions, _abiCoder, _getFunction, getFunction_fn, _getEvent, getEvent_fn, _transactions, _logs, _startBlock, _iface, _iface2, _filter, _a, _supports2544, _resolver, _fetch, fetch_fn, _getResolver, getResolver_fn, _url2, _processFunc, _name, _chainId2, _plugins, _provider, _poller, _interval, _blockNumber, _poll, poll_fn, _provider2, _poll2, _running, _tag, _lastBlock, _filter2, _hash, _provider3, _filter3, _poller2, _running2, _blockNumber2, _poll3, poll_fn2, _subs, _plugins2, _pausedState, _destroyed, _networkPromise, _anyNetwork, _performCache, _lastBlockNumber, _nextTimer, _timers, _disableCcipRead, _requestRate, _requestTimes, _options2, _getDelay, getDelay_fn, _perform, perform_fn, _call, call_fn, _checkNetwork, checkNetwork_fn, _getAccountValue, getAccountValue_fn, _getBlock, getBlock_fn, _hasSub, hasSub_fn, _getSub, getSub_fn, _throwUnsupported, throwUnsupported_fn, _provider4, _filterIdPromise, _poller3, _running3, _network, _hault, _poll4, poll_fn3, _teardown, teardown_fn, _event, _options3, _nextId, _payloads, _drainTimer, _notReady, _network2, _pendingDetectNetwork, _scheduleDrain, scheduleDrain_fn, _pollingInterval, _connect, _signingKey, _data4, _checksum, _words, _loadWords, loadWords_fn, _account, account_fn, _fromSeed, fromSeed_fn, _fromAccount, fromAccount_fn;
38
- import { u as ht, v as DID, o as parseBuckyOSOwnerDocument, w as canonicalize, x as signJwtEdDSA, O as ObjId, C as ChunkId, F as FileObject, y as sha256Bytes, z as DirObject, S as SimpleChunkList } from "./ndn_types-ca94286b.mjs";
38
+ import { u as ht, v as DID, o as parseBuckyOSOwnerDocument, w as canonicalize, x as signJwtEdDSA, O as ObjId, C as ChunkId, F as FileObject, y as sha256Bytes, z as DirObject, S as SimpleChunkList } from "./ndn_types-f6c08d20.mjs";
39
39
  class RPCError extends Error {
40
40
  constructor(message) {
41
41
  super(message);
@@ -573,6 +573,11 @@ var TaskDataScope = /* @__PURE__ */ ((TaskDataScope2) => {
573
573
  TaskDataScope2["Full"] = "Full";
574
574
  return TaskDataScope2;
575
575
  })(TaskDataScope || {});
576
+ var StorageDomain = /* @__PURE__ */ ((StorageDomain2) => {
577
+ StorageDomain2["User"] = "User";
578
+ StorageDomain2["System"] = "System";
579
+ return StorageDomain2;
580
+ })(StorageDomain || {});
576
581
  var TaskEventType = /* @__PURE__ */ ((TaskEventType2) => {
577
582
  TaskEventType2["TaskCreated"] = "TaskCreated";
578
583
  TaskEventType2["RunnerBound"] = "RunnerBound";
@@ -25977,6 +25982,7 @@ const METHOD_DEVICEINFO_RESOLVE_OOD_BY_DID = "deviceinfo.resolve_ood_by_did";
25977
25982
  const METHOD_DEVICEINFO_RESOLVE_OOD_BY_HOSTNAME = "deviceinfo.resolve_ood_by_hostname";
25978
25983
  const METHOD_BNS_PUBLISH_DNS_TXT = "bns.publish_dns_txt";
25979
25984
  const METHOD_BNS_PUBLISH_DOCUMENT = "bns.publish_document";
25985
+ const METHOD_OWNER_REMOVE_BOUND_ZONE = "owner.remove_bound_zone";
25980
25986
  const SN_ERROR_CODES = {
25981
25987
  invalid_params: 1e3,
25982
25988
  invalid_username: 1001,
@@ -26764,6 +26770,15 @@ class SnClient {
26764
26770
  }
26765
26771
  return this.call(this.bnsProxyRpc, METHOD_BNS_PUBLISH_DOCUMENT, params);
26766
26772
  }
26773
+ async removeBoundZone(req) {
26774
+ return this.call(this.bnsProxyRpc, METHOD_OWNER_REMOVE_BOUND_ZONE, {
26775
+ name: req.name,
26776
+ zone_did: req.zone_did,
26777
+ expected_owner_hash: req.expected_owner_hash,
26778
+ request_id: req.request_id,
26779
+ owner_authorization: req.owner_authorization
26780
+ });
26781
+ }
26767
26782
  }
26768
26783
  function sanitizeInitialDocuments(docs) {
26769
26784
  const out = {};
@@ -26850,6 +26865,7 @@ const sn_client = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
26850
26865
  METHOD_DEVICE_UPDATE,
26851
26866
  METHOD_DOMAIN_BIND,
26852
26867
  METHOD_DOMAIN_UNBIND,
26868
+ METHOD_OWNER_REMOVE_BOUND_ZONE,
26853
26869
  METHOD_USER_ADD_DNS_RECORD,
26854
26870
  METHOD_USER_GET_PROFILE,
26855
26871
  METHOD_USER_LIST_DNS_RECORDS,
@@ -27753,7 +27769,7 @@ async function uploadChunkViaTus(endpoint, file, chunkInfo, chunkIndex, appId, f
27753
27769
  const logicalPath = `${appId}/${chunkInfo.chunkId}`;
27754
27770
  let tusModule;
27755
27771
  try {
27756
- tusModule = await import("./tus_client-f1532e14.mjs");
27772
+ tusModule = await import("./tus_client-573066b3.mjs");
27757
27773
  } catch (error) {
27758
27774
  const message = error instanceof Error ? error.message : String(error);
27759
27775
  throw new NdmError("UPLOAD_FAILED", `Failed to load tus-js-client: ${message}`);
@@ -28503,7 +28519,7 @@ export {
28503
28519
  TASK_ERR_REVISION_CONFLICT as Z,
28504
28520
  TASK_ERR_STALE_RUNNER_EPOCH as _,
28505
28521
  ndm_proxy as a,
28506
- parseAppInstanceId as a$,
28522
+ createAppInstanceId as a$,
28507
28523
  TASK_ERR_CONTROL_NOT_AVAILABLE as a0,
28508
28524
  TASK_ERR_CONTROL_ALREADY_PENDING as a1,
28509
28525
  TASK_ERR_ALREADY_COMPLETED as a2,
@@ -28514,33 +28530,33 @@ export {
28514
28530
  TASK_MGR_ERROR_CODES as a7,
28515
28531
  taskMgrTaskEventPath as a8,
28516
28532
  taskMgrTreeEventPath as a9,
28517
- WorkflowClient as aA,
28518
- AICC_SERVICE_NAME as aB,
28519
- AICC_SERVICE_UNIQUE_ID as aC,
28520
- AICC_SERVICE_SERVICE_NAME as aD,
28521
- AICC_SERVICE_SERVICE_PORT as aE,
28522
- AICC_AI_METHODS as aF,
28523
- AICC_CONTROL_METHODS as aG,
28524
- AICC_FEATURES as aH,
28525
- isAiccAiMethod as aI,
28526
- aiccTextMessage as aJ,
28527
- aiccMessageTextContent as aK,
28528
- aiccMessageFirstText as aL,
28529
- aiccResponseTextContent as aM,
28530
- aiccResponseToolCalls as aN,
28531
- aiccResponseArtifacts as aO,
28532
- aiccRenderMessageForDebug as aP,
28533
- aiccEstimateMessageTextLen as aQ,
28534
- validateAiccMessage as aR,
28535
- validateAiccMessages as aS,
28536
- validateAiccResponse as aT,
28537
- AiccClient as aU,
28538
- KEventReader as aV,
28539
- KEventClient as aW,
28540
- appIdFromDid as aX,
28541
- parseAppId as aY,
28542
- appDidFromId as aZ,
28543
- createAppInstanceId as a_,
28533
+ WorkflowScheduledTaskFireStatus as aA,
28534
+ WorkflowClient as aB,
28535
+ AICC_SERVICE_NAME as aC,
28536
+ AICC_SERVICE_UNIQUE_ID as aD,
28537
+ AICC_SERVICE_SERVICE_NAME as aE,
28538
+ AICC_SERVICE_SERVICE_PORT as aF,
28539
+ AICC_AI_METHODS as aG,
28540
+ AICC_CONTROL_METHODS as aH,
28541
+ AICC_FEATURES as aI,
28542
+ isAiccAiMethod as aJ,
28543
+ aiccTextMessage as aK,
28544
+ aiccMessageTextContent as aL,
28545
+ aiccMessageFirstText as aM,
28546
+ aiccResponseTextContent as aN,
28547
+ aiccResponseToolCalls as aO,
28548
+ aiccResponseArtifacts as aP,
28549
+ aiccRenderMessageForDebug as aQ,
28550
+ aiccEstimateMessageTextLen as aR,
28551
+ validateAiccMessage as aS,
28552
+ validateAiccMessages as aT,
28553
+ validateAiccResponse as aU,
28554
+ AiccClient as aV,
28555
+ KEventReader as aW,
28556
+ KEventClient as aX,
28557
+ appIdFromDid as aY,
28558
+ parseAppId as aZ,
28559
+ appDidFromId as a_,
28544
28560
  taskMgrErrorCode as aa,
28545
28561
  TaskExecutorKind as ab,
28546
28562
  TaskPhase as ac,
@@ -28553,34 +28569,35 @@ export {
28553
28569
  TaskAction as aj,
28554
28570
  TaskGrantScope as ak,
28555
28571
  TaskDataScope as al,
28556
- TaskEventType as am,
28557
- TaskManagerClient as an,
28558
- WORKFLOW_SERVICE_NAME as ao,
28559
- WorkflowStepType as ap,
28560
- WorkflowOutputMode as aq,
28561
- WorkflowJoinMode as ar,
28562
- WorkflowRetryFallback as as,
28563
- WorkflowDefinitionStatus as at,
28564
- WorkflowRunStatus as au,
28565
- WorkflowNodeRunState as av,
28566
- WorkflowHumanActionKind as aw,
28567
- WorkflowScheduledTaskStatus as ax,
28568
- WorkflowScheduledTaskMisfirePolicy as ay,
28569
- WorkflowScheduledTaskFireStatus as az,
28572
+ StorageDomain as am,
28573
+ TaskEventType as an,
28574
+ TaskManagerClient as ao,
28575
+ WORKFLOW_SERVICE_NAME as ap,
28576
+ WorkflowStepType as aq,
28577
+ WorkflowOutputMode as ar,
28578
+ WorkflowJoinMode as as,
28579
+ WorkflowRetryFallback as at,
28580
+ WorkflowDefinitionStatus as au,
28581
+ WorkflowRunStatus as av,
28582
+ WorkflowNodeRunState as aw,
28583
+ WorkflowHumanActionKind as ax,
28584
+ WorkflowScheduledTaskStatus as ay,
28585
+ WorkflowScheduledTaskMisfirePolicy as az,
28570
28586
  bns_client as b,
28571
- BNS_EVM_DEFAULT_GAS_LIMIT as b0,
28572
- BNS_EVM_DEFAULT_MAX_FEE_PER_GAS as b1,
28573
- BNS_EVM_DEFAULT_MAX_PRIORITY_FEE_PER_GAS as b2,
28574
- BNS_MAX_INLINE_DOCUMENT_BYTES as b3,
28575
- BNS_DNS_TXT_DEFAULT_TTL as b4,
28576
- BNS_DNS_TXT_DOC_TYPE as b5,
28577
- BNS_PUBLISH_DOCUMENT_ABI as b6,
28578
- BnsEvmTxError as b7,
28579
- BnsEvmTxBuilder as b8,
28580
- decodeBnsPublishDocumentCalldata as b9,
28581
- BnsTxExecutorError as ba,
28582
- walletUserHasSnAccount as bb,
28583
- BnsTxExecutor as bc,
28587
+ parseAppInstanceId as b0,
28588
+ BNS_EVM_DEFAULT_GAS_LIMIT as b1,
28589
+ BNS_EVM_DEFAULT_MAX_FEE_PER_GAS as b2,
28590
+ BNS_EVM_DEFAULT_MAX_PRIORITY_FEE_PER_GAS as b3,
28591
+ BNS_MAX_INLINE_DOCUMENT_BYTES as b4,
28592
+ BNS_DNS_TXT_DEFAULT_TTL as b5,
28593
+ BNS_DNS_TXT_DOC_TYPE as b6,
28594
+ BNS_PUBLISH_DOCUMENT_ABI as b7,
28595
+ BnsEvmTxError as b8,
28596
+ BnsEvmTxBuilder as b9,
28597
+ decodeBnsPublishDocumentCalldata as ba,
28598
+ BnsTxExecutorError as bb,
28599
+ walletUserHasSnAccount as bc,
28600
+ BnsTxExecutor as bd,
28584
28601
  createSDKModule as c,
28585
28602
  BS_SERVICE_TASK_MANAGER as d,
28586
28603
  getActiveRuntimeType as e,
@@ -28606,4 +28623,4 @@ export {
28606
28623
  WORKFLOW_THUNK_TASK_SCHEMA_ID as y,
28607
28624
  WORKFLOW_SCHEDULE_TASK_SCHEMA_ID as z
28608
28625
  };
28609
- //# sourceMappingURL=ndm_proxy-a719bc58.mjs.map
28626
+ //# sourceMappingURL=ndm_proxy-c00bc561.mjs.map