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.
- package/cli/README.md +14 -10
- package/cli/core/argv.ts +0 -4
- package/cli/core/auth.ts +104 -20
- package/cli/core/config.ts +0 -38
- package/cli/core/development_mode.ts +103 -0
- package/cli/core/identity.ts +39 -31
- package/cli/core/registry.ts +0 -2
- package/cli/dist/cli.mjs +320 -230
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/runtime/host.ts +8 -10
- package/cli/version.ts +1 -1
- package/dist/browser.cjs +1 -1
- package/dist/browser.mjs +59 -58
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +59 -58
- package/dist/namelib.d.ts +4 -0
- package/dist/namelib.d.ts.map +1 -1
- package/dist/ndm_proxy-68354a89.js +13 -0
- package/dist/ndm_proxy-68354a89.js.map +1 -0
- package/dist/{ndm_proxy-a719bc58.mjs → ndm_proxy-c00bc561.mjs} +75 -58
- package/dist/ndm_proxy-c00bc561.mjs.map +1 -0
- package/dist/ndn_types-859bbd48.js +2 -0
- package/dist/ndn_types-859bbd48.js.map +1 -0
- package/dist/{ndn_types-ca94286b.mjs → ndn_types-f6c08d20.mjs} +43 -7
- package/dist/ndn_types-f6c08d20.mjs.map +1 -0
- package/dist/node.cjs +1 -1
- package/dist/node.mjs +59 -58
- package/dist/provision.cjs +1 -1
- package/dist/provision.mjs +1 -1
- package/dist/sn_client.d.ts +16 -0
- package/dist/sn_client.d.ts.map +1 -1
- package/dist/task_mgr_client.d.ts +10 -0
- package/dist/task_mgr_client.d.ts.map +1 -1
- package/dist/{tus_client-f1532e14.mjs → tus_client-573066b3.mjs} +2 -2
- package/dist/{tus_client-f1532e14.mjs.map → tus_client-573066b3.mjs.map} +1 -1
- package/dist/{tus_client-32d016c4.js → tus_client-83ad0f4f.js} +2 -2
- package/dist/{tus_client-32d016c4.js.map → tus_client-83ad0f4f.js.map} +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ndm_proxy-36879436.js +0 -13
- package/dist/ndm_proxy-36879436.js.map +0 -1
- package/dist/ndm_proxy-a719bc58.mjs.map +0 -1
- package/dist/ndn_types-c4672b04.js +0 -2
- package/dist/ndn_types-c4672b04.js.map +0 -1
- 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-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
28518
|
-
|
|
28519
|
-
|
|
28520
|
-
|
|
28521
|
-
|
|
28522
|
-
|
|
28523
|
-
|
|
28524
|
-
|
|
28525
|
-
|
|
28526
|
-
|
|
28527
|
-
|
|
28528
|
-
|
|
28529
|
-
|
|
28530
|
-
|
|
28531
|
-
|
|
28532
|
-
|
|
28533
|
-
|
|
28534
|
-
|
|
28535
|
-
|
|
28536
|
-
|
|
28537
|
-
|
|
28538
|
-
|
|
28539
|
-
|
|
28540
|
-
|
|
28541
|
-
|
|
28542
|
-
|
|
28543
|
-
|
|
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
|
-
|
|
28557
|
-
|
|
28558
|
-
|
|
28559
|
-
|
|
28560
|
-
|
|
28561
|
-
|
|
28562
|
-
|
|
28563
|
-
|
|
28564
|
-
|
|
28565
|
-
|
|
28566
|
-
|
|
28567
|
-
|
|
28568
|
-
|
|
28569
|
-
|
|
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
|
-
|
|
28572
|
-
|
|
28573
|
-
|
|
28574
|
-
|
|
28575
|
-
|
|
28576
|
-
|
|
28577
|
-
|
|
28578
|
-
|
|
28579
|
-
|
|
28580
|
-
|
|
28581
|
-
|
|
28582
|
-
|
|
28583
|
-
|
|
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-
|
|
28626
|
+
//# sourceMappingURL=ndm_proxy-c00bc561.mjs.map
|