buckyos 0.7.154 → 0.7.155
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/core/task.ts +2 -1
- package/cli/dist/cli.mjs +235 -94
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/obj.ts +163 -0
- package/cli/version.ts +1 -1
- package/dist/aiworkspace_client.d.ts +9 -0
- package/dist/aiworkspace_client.d.ts.map +1 -1
- package/dist/browser.cjs +1 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +1 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.mjs +183 -182
- package/dist/browser.mjs.map +1 -1
- package/dist/executor_client-022a19b9.js +13 -0
- package/dist/executor_client-022a19b9.js.map +1 -0
- package/dist/{executor_client-dde508e1.mjs → executor_client-78ad0749.mjs} +597 -188
- package/dist/executor_client-78ad0749.mjs.map +1 -0
- package/dist/hybrid_sso.d.ts +2 -1
- package/dist/hybrid_sso.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +188 -185
- package/dist/index.mjs.map +1 -1
- package/dist/msg_center_client.d.ts +4 -3
- package/dist/msg_center_client.d.ts.map +1 -1
- package/dist/{ndn_types-bbb1f6a6.mjs → namelib-b41b10cc.mjs} +2683 -2683
- package/dist/namelib-b41b10cc.mjs.map +1 -0
- package/dist/namelib-f8ff0045.js +2 -0
- package/dist/namelib-f8ff0045.js.map +1 -0
- package/dist/node.cjs +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +1 -0
- package/dist/node.d.ts.map +1 -1
- package/dist/node.mjs +183 -182
- package/dist/node.mjs.map +1 -1
- package/dist/object_url.d.ts +65 -0
- package/dist/object_url.d.ts.map +1 -0
- package/dist/provision.cjs +1 -1
- package/dist/provision.cjs.map +1 -1
- package/dist/provision.mjs +1 -1
- package/dist/sdk_core.d.ts +1 -1
- package/dist/sdk_core.d.ts.map +1 -1
- package/dist/task_mgr_client.d.ts +2 -0
- package/dist/task_mgr_client.d.ts.map +1 -1
- package/dist/{tus_client-d313689e.mjs → tus_client-04080b1e.mjs} +2 -2
- package/dist/{tus_client-d313689e.mjs.map → tus_client-04080b1e.mjs.map} +1 -1
- package/dist/{tus_client-65c5fc5e.js → tus_client-4f7254e9.js} +2 -2
- package/dist/{tus_client-65c5fc5e.js.map → tus_client-4f7254e9.js.map} +1 -1
- package/package.json +1 -1
- package/dist/executor_client-cafb8a35.js +0 -13
- package/dist/executor_client-cafb8a35.js.map +0 -1
- package/dist/executor_client-dde508e1.mjs.map +0 -1
- package/dist/ndn_types-08dc9ef1.js +0 -2
- package/dist/ndn_types-08dc9ef1.js.map +0 -1
- package/dist/ndn_types-bbb1f6a6.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 DID, v as getBrowserIdentityRaw, w as clearBrowserUserInfo, x as saveBrowserIdentity, y as saveBrowserUserInfo, z as getBrowserUserInfo, A as clearBrowserIdentity, N as NODE_IDENTITY_SCHEMA_V2, f as isBuckyOSLocalNodeIdentityConfig, o as parseBuckyOSOwnerDocument, h as hashPassword, B as saveLocalAccountInfo, C as cleanLocalAccountInfo, E as canonicalize, F as signJwtEdDSA, G as ChunkId, H as sha256Bytes, I as FileObject,
|
|
38
|
+
import { O as ObjId, u as DID, v as getBrowserIdentityRaw, w as clearBrowserUserInfo, x as saveBrowserIdentity, y as saveBrowserUserInfo, z as getBrowserUserInfo, A as clearBrowserIdentity, N as NODE_IDENTITY_SCHEMA_V2, f as isBuckyOSLocalNodeIdentityConfig, o as parseBuckyOSOwnerDocument, h as hashPassword, B as saveLocalAccountInfo, C as cleanLocalAccountInfo, E as canonicalize, F as signJwtEdDSA, G as ChunkId, H as sha256Bytes, I as FileObject, J as DirObject, S as SimpleChunkList } from "./namelib-b41b10cc.mjs";
|
|
39
39
|
class RPCError extends Error {
|
|
40
40
|
constructor(message, code, data) {
|
|
41
41
|
super(message);
|
|
@@ -323,6 +323,381 @@ function buildJumpUrl(action, params, jumpBase = DEFAULT_JUMP_BASE_URL) {
|
|
|
323
323
|
const fragment = new URLSearchParams(params).toString();
|
|
324
324
|
return `${base.origin}${path}${fragment ? `#${fragment}` : ""}`;
|
|
325
325
|
}
|
|
326
|
+
const OBJ_SERVICE_NAMES = [
|
|
327
|
+
"config",
|
|
328
|
+
"dfs",
|
|
329
|
+
"taskmgr",
|
|
330
|
+
"kmsg",
|
|
331
|
+
"bucket",
|
|
332
|
+
"ndm",
|
|
333
|
+
"msg-center",
|
|
334
|
+
"aiworkspace",
|
|
335
|
+
"homestation",
|
|
336
|
+
"opendan",
|
|
337
|
+
"aicc"
|
|
338
|
+
];
|
|
339
|
+
const OBJECT_EVENT_PREFIX = "/obj";
|
|
340
|
+
class ObjectUrlError extends Error {
|
|
341
|
+
}
|
|
342
|
+
function isObjServiceName(name) {
|
|
343
|
+
return OBJ_SERVICE_NAMES.includes(name);
|
|
344
|
+
}
|
|
345
|
+
function parseObjectUrl(input) {
|
|
346
|
+
input = input.trim();
|
|
347
|
+
const sep = input.indexOf("://");
|
|
348
|
+
if (sep < 0)
|
|
349
|
+
throw new ObjectUrlError(`'${input}' has no scheme`);
|
|
350
|
+
const scheme = input.slice(0, sep).toLowerCase();
|
|
351
|
+
const rest = input.slice(sep + 3);
|
|
352
|
+
switch (scheme) {
|
|
353
|
+
case "https":
|
|
354
|
+
case "http": {
|
|
355
|
+
try {
|
|
356
|
+
return { kind: "web", url: new URL(input).toString() };
|
|
357
|
+
} catch (e) {
|
|
358
|
+
throw new ObjectUrlError(`invalid web url '${input}': ${e}`);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
case "buckyos":
|
|
362
|
+
return { kind: "buckyos", url: input };
|
|
363
|
+
case "file": {
|
|
364
|
+
const { authority, path, query } = splitAuthority(rest);
|
|
365
|
+
if (query !== null)
|
|
366
|
+
throw new ObjectUrlError("file url does not take query or fragment");
|
|
367
|
+
const host = authority.toLowerCase();
|
|
368
|
+
let deviceId;
|
|
369
|
+
if (host === "" || host === "localhost")
|
|
370
|
+
deviceId = null;
|
|
371
|
+
else if (isHostname(host))
|
|
372
|
+
deviceId = host;
|
|
373
|
+
else
|
|
374
|
+
throw new ObjectUrlError(`invalid device id '${host}' in file url`);
|
|
375
|
+
if (path === "")
|
|
376
|
+
throw new ObjectUrlError("file url requires an absolute path");
|
|
377
|
+
return { kind: "file", deviceId, path: normalizePath(path, false) };
|
|
378
|
+
}
|
|
379
|
+
case "cyfs": {
|
|
380
|
+
const { authority: rawAuthority, path, query } = splitAuthority(rest);
|
|
381
|
+
if (query !== null)
|
|
382
|
+
throw new ObjectUrlError("cyfs url does not take query or fragment");
|
|
383
|
+
const authority = rawAuthority.toLowerCase();
|
|
384
|
+
if (authority === "" || authority === "_") {
|
|
385
|
+
if (path === "")
|
|
386
|
+
throw new ObjectUrlError("cyfs path url requires a path");
|
|
387
|
+
return { kind: "cyfs_path", zone: null, path: normalizePath(path, false) };
|
|
388
|
+
}
|
|
389
|
+
const dot = authority.indexOf(".");
|
|
390
|
+
const firstLabel = dot < 0 ? authority : authority.slice(0, dot);
|
|
391
|
+
const restLabels = dot < 0 ? null : authority.slice(dot + 1);
|
|
392
|
+
const objId = strictObjIdLabel(firstLabel);
|
|
393
|
+
if (objId) {
|
|
394
|
+
if (restLabels !== null && !isHostname(restLabels)) {
|
|
395
|
+
throw new ObjectUrlError(`invalid source zone '${restLabels}'`);
|
|
396
|
+
}
|
|
397
|
+
return {
|
|
398
|
+
kind: "cyfs_object",
|
|
399
|
+
objId,
|
|
400
|
+
sourceZone: restLabels,
|
|
401
|
+
innerPath: path === "" || path === "/" ? "" : normalizePath(path, false)
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
if (!isHostname(authority) || !authority.includes(".")) {
|
|
405
|
+
throw new ObjectUrlError(`'${authority}' is neither a zone host nor an ObjId`);
|
|
406
|
+
}
|
|
407
|
+
if (path === "")
|
|
408
|
+
throw new ObjectUrlError("cyfs path url requires a path");
|
|
409
|
+
return { kind: "cyfs_path", zone: authority, path: normalizePath(path, false) };
|
|
410
|
+
}
|
|
411
|
+
case "obj": {
|
|
412
|
+
const { authority, path, query } = splitAuthority(rest);
|
|
413
|
+
const host = parseObjHost(authority.toLowerCase());
|
|
414
|
+
return {
|
|
415
|
+
kind: "obj",
|
|
416
|
+
host,
|
|
417
|
+
path: path === "" || path === "/" ? "" : normalizePath(path, true),
|
|
418
|
+
query: query === null ? {} : parseQuery(query)
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
default:
|
|
422
|
+
throw new ObjectUrlError(`unsupported scheme '${scheme}'`);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
function expandInputShorthand(input) {
|
|
426
|
+
input = input.trim();
|
|
427
|
+
if (input.startsWith("//")) {
|
|
428
|
+
const rest = input.slice(2);
|
|
429
|
+
const service = rest.split(/[/?]/)[0] ?? "";
|
|
430
|
+
return isObjServiceName(service) ? `obj://${rest}` : input;
|
|
431
|
+
}
|
|
432
|
+
if (input.startsWith("/"))
|
|
433
|
+
return `file://${input}`;
|
|
434
|
+
return input;
|
|
435
|
+
}
|
|
436
|
+
function parseObjHost(host) {
|
|
437
|
+
if (host === "")
|
|
438
|
+
throw new ObjectUrlError("obj url requires a host");
|
|
439
|
+
if (isObjServiceName(host))
|
|
440
|
+
return { kind: "service", name: host };
|
|
441
|
+
if (!host.includes(".")) {
|
|
442
|
+
throw new ObjectUrlError(
|
|
443
|
+
`'${host}' is not a registered obj:// service name; type shorthands are not supported`
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
if (!isHostname(host))
|
|
447
|
+
throw new ObjectUrlError(`'${host}' is not a valid entity hostname`);
|
|
448
|
+
const firstLabel = host.split(".")[0];
|
|
449
|
+
if (isObjServiceName(firstLabel)) {
|
|
450
|
+
throw new ObjectUrlError(
|
|
451
|
+
`'${host}' expands a service name; write obj://${firstLabel}/ for the current zone or use https across zones`
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
if (strictObjIdLabel(firstLabel)) {
|
|
455
|
+
throw new ObjectUrlError("NamedObject ids do not go into obj:// host; use cyfs://<objid>/");
|
|
456
|
+
}
|
|
457
|
+
return { kind: "entity", name: host };
|
|
458
|
+
}
|
|
459
|
+
function formatObjectUrl(url) {
|
|
460
|
+
switch (url.kind) {
|
|
461
|
+
case "file":
|
|
462
|
+
return `file://${url.deviceId ?? ""}${url.path}`;
|
|
463
|
+
case "cyfs_path":
|
|
464
|
+
return `cyfs://${url.zone ?? ""}${url.path}`;
|
|
465
|
+
case "cyfs_object":
|
|
466
|
+
return `cyfs://${url.objId.toBase32()}${url.sourceZone ? `.${url.sourceZone}` : ""}${url.innerPath || "/"}`;
|
|
467
|
+
case "obj": {
|
|
468
|
+
const keys = Object.keys(url.query).sort();
|
|
469
|
+
const query = keys.map((k) => `${encodeObjQueryComponent(k)}=${encodeObjQueryComponent(url.query[k])}`).join("&");
|
|
470
|
+
return `obj://${url.host.name}${url.path}${query ? `?${query}` : ""}`;
|
|
471
|
+
}
|
|
472
|
+
case "web":
|
|
473
|
+
case "buckyos":
|
|
474
|
+
return url.url;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
function normalizeObjectUrl(input) {
|
|
478
|
+
return formatObjectUrl(parseObjectUrl(input));
|
|
479
|
+
}
|
|
480
|
+
function rbacResourceKey(url, currentZone) {
|
|
481
|
+
if (url.kind === "obj")
|
|
482
|
+
return `obj://${url.host.name}${url.path}`;
|
|
483
|
+
if (url.kind === "cyfs_path") {
|
|
484
|
+
const local = url.zone === null || currentZone !== void 0 && url.zone === currentZone.toLowerCase();
|
|
485
|
+
return local ? `obj://dfs${url.path}` : null;
|
|
486
|
+
}
|
|
487
|
+
return null;
|
|
488
|
+
}
|
|
489
|
+
function objectSegments(url) {
|
|
490
|
+
return url.kind === "obj" ? decodedSegments(url.path) : [];
|
|
491
|
+
}
|
|
492
|
+
function objectEventKey(url, event) {
|
|
493
|
+
if (url.kind !== "obj")
|
|
494
|
+
throw new ObjectUrlError("object events are only defined for obj:// urls");
|
|
495
|
+
if (!/^[A-Za-z0-9_-]+$/.test(event) || event.startsWith("x")) {
|
|
496
|
+
throw new ObjectUrlError(`invalid object event name '${event}'`);
|
|
497
|
+
}
|
|
498
|
+
const key = `${objectEventBase(url.host, url.path)}/${event}`;
|
|
499
|
+
if (key.length > 256 || key.split("/").length - 1 > 8) {
|
|
500
|
+
throw new ObjectUrlError(`object event key too long: ${key}`);
|
|
501
|
+
}
|
|
502
|
+
return key;
|
|
503
|
+
}
|
|
504
|
+
function objectEventPattern(url) {
|
|
505
|
+
if (url.kind !== "obj")
|
|
506
|
+
throw new ObjectUrlError("object events are only defined for obj:// urls");
|
|
507
|
+
return `${objectEventBase(url.host, url.path)}/**`;
|
|
508
|
+
}
|
|
509
|
+
function keventSegment(segment) {
|
|
510
|
+
if (segment !== "" && /^[A-Za-z0-9_-]+$/.test(segment) && !segment.startsWith("x"))
|
|
511
|
+
return segment;
|
|
512
|
+
let out = "x";
|
|
513
|
+
for (const byte of new TextEncoder().encode(segment))
|
|
514
|
+
out += byte.toString(16).padStart(2, "0");
|
|
515
|
+
return out;
|
|
516
|
+
}
|
|
517
|
+
function objEventKey(host, segments, event) {
|
|
518
|
+
return `${objEventBase(host, segments)}/${event}`;
|
|
519
|
+
}
|
|
520
|
+
function objEventPattern(host, segments) {
|
|
521
|
+
return `${objEventBase(host, segments)}/**`;
|
|
522
|
+
}
|
|
523
|
+
function objEventBase(host, segments) {
|
|
524
|
+
return [OBJECT_EVENT_PREFIX, keventSegment(host), ...segments.map(keventSegment)].join("/");
|
|
525
|
+
}
|
|
526
|
+
function objectDid(url, zoneDid, entityDid) {
|
|
527
|
+
if (url.kind !== "obj")
|
|
528
|
+
return null;
|
|
529
|
+
const segments = url.path.split("/").filter((s) => s !== "").map((s) => s.replace(/:/g, "%3A"));
|
|
530
|
+
const base = url.host.kind === "service" ? zoneDid : entityDid ?? `did:web:${url.host.name}`;
|
|
531
|
+
const all = url.host.kind === "service" ? [url.host.name, ...segments] : segments;
|
|
532
|
+
return all.length ? `${base}:${all.join(":")}` : base;
|
|
533
|
+
}
|
|
534
|
+
function objServiceUrl(service, segments) {
|
|
535
|
+
return `obj://${service}${segments.map((s) => `/${encodeObjSegment(s)}`).join("")}`;
|
|
536
|
+
}
|
|
537
|
+
function objEntityUrl(entityHost, segments) {
|
|
538
|
+
return `obj://${entityHost}${segments.map((s) => `/${encodeObjSegment(s)}`).join("")}`;
|
|
539
|
+
}
|
|
540
|
+
function configKeyFromUrl(input) {
|
|
541
|
+
let key = input.startsWith("obj://config/") ? input.slice("obj://config/".length) : input;
|
|
542
|
+
if (key.startsWith("/config/"))
|
|
543
|
+
key = key.slice("/config/".length);
|
|
544
|
+
return key.replace(/^[/\\]+/, "");
|
|
545
|
+
}
|
|
546
|
+
function canonicalJson(value) {
|
|
547
|
+
if (Array.isArray(value))
|
|
548
|
+
return `[${value.map(canonicalJson).join(",")}]`;
|
|
549
|
+
if (value !== null && typeof value === "object") {
|
|
550
|
+
const entries = Object.keys(value).sort().map((k) => `${JSON.stringify(k)}:${canonicalJson(value[k])}`);
|
|
551
|
+
return `{${entries.join(",")}}`;
|
|
552
|
+
}
|
|
553
|
+
return JSON.stringify(value);
|
|
554
|
+
}
|
|
555
|
+
function encodeObjSegment(segment) {
|
|
556
|
+
return encodeWith(segment, (b2) => isUnreserved(b2) || "!$&'()*+,;=:@".includes(String.fromCharCode(b2)));
|
|
557
|
+
}
|
|
558
|
+
function encodeObjQueryComponent(component) {
|
|
559
|
+
return encodeWith(component, (b2) => isUnreserved(b2) || "!$'()*,;:@/".includes(String.fromCharCode(b2)));
|
|
560
|
+
}
|
|
561
|
+
function encodeWith(input, keep) {
|
|
562
|
+
let out = "";
|
|
563
|
+
for (const byte of new TextEncoder().encode(input)) {
|
|
564
|
+
out += keep(byte) ? String.fromCharCode(byte) : `%${byte.toString(16).toUpperCase().padStart(2, "0")}`;
|
|
565
|
+
}
|
|
566
|
+
return out;
|
|
567
|
+
}
|
|
568
|
+
function isUnreserved(byte) {
|
|
569
|
+
const ch = String.fromCharCode(byte);
|
|
570
|
+
return /[A-Za-z0-9]/.test(ch) || "-._~".includes(ch);
|
|
571
|
+
}
|
|
572
|
+
function objectEventBase(host, path) {
|
|
573
|
+
return objEventBase(host.name, decodedSegments(path));
|
|
574
|
+
}
|
|
575
|
+
function splitAuthority(rest) {
|
|
576
|
+
const qpos = rest.search(/[?#]/);
|
|
577
|
+
const beforeQuery = qpos < 0 ? rest : rest.slice(0, qpos);
|
|
578
|
+
let query = null;
|
|
579
|
+
if (qpos >= 0) {
|
|
580
|
+
const q = rest.slice(qpos).split("#")[0];
|
|
581
|
+
query = q.startsWith("?") ? q.slice(1) : q;
|
|
582
|
+
if (query === "")
|
|
583
|
+
query = null;
|
|
584
|
+
}
|
|
585
|
+
const slash = beforeQuery.indexOf("/");
|
|
586
|
+
return slash < 0 ? { authority: beforeQuery, path: "", query } : { authority: beforeQuery.slice(0, slash), path: beforeQuery.slice(slash), query };
|
|
587
|
+
}
|
|
588
|
+
function normalizePath(path, trimTrailingSlash) {
|
|
589
|
+
if (!path.startsWith("/"))
|
|
590
|
+
throw new ObjectUrlError(`path '${path}' must be absolute`);
|
|
591
|
+
let body = path.slice(1);
|
|
592
|
+
if (trimTrailingSlash && body.endsWith("/"))
|
|
593
|
+
body = body.slice(0, -1);
|
|
594
|
+
const raw = body.split("/");
|
|
595
|
+
let out = "";
|
|
596
|
+
raw.forEach((segment, index) => {
|
|
597
|
+
if (segment === "" && index === raw.length - 1 && !trimTrailingSlash) {
|
|
598
|
+
out += "/";
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
const decoded = percentDecode(segment);
|
|
602
|
+
if (decoded === "" || decoded === "." || decoded === "..") {
|
|
603
|
+
throw new ObjectUrlError(`ambiguous path segment in '${path}'`);
|
|
604
|
+
}
|
|
605
|
+
out += `/${encodeObjSegment(decoded)}`;
|
|
606
|
+
});
|
|
607
|
+
return out;
|
|
608
|
+
}
|
|
609
|
+
function decodedSegments(path) {
|
|
610
|
+
return path.split("/").filter((s) => s !== "").map((s) => {
|
|
611
|
+
try {
|
|
612
|
+
return percentDecode(s);
|
|
613
|
+
} catch {
|
|
614
|
+
return s;
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
function parseQuery(query) {
|
|
619
|
+
const out = {};
|
|
620
|
+
for (const pair of query.split("&")) {
|
|
621
|
+
if (pair === "")
|
|
622
|
+
continue;
|
|
623
|
+
const eq = pair.indexOf("=");
|
|
624
|
+
const key = percentDecode((eq < 0 ? pair : pair.slice(0, eq)).replace(/\+/g, " "));
|
|
625
|
+
let value = percentDecode((eq < 0 ? "" : pair.slice(eq + 1)).replace(/\+/g, " "));
|
|
626
|
+
if (key === "selector") {
|
|
627
|
+
try {
|
|
628
|
+
value = canonicalJson(JSON.parse(value));
|
|
629
|
+
} catch (e) {
|
|
630
|
+
throw new ObjectUrlError(`selector must be JSON: ${e}`);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
if (Object.prototype.hasOwnProperty.call(out, key)) {
|
|
634
|
+
throw new ObjectUrlError(`query key '${key}' repeats`);
|
|
635
|
+
}
|
|
636
|
+
out[key] = value;
|
|
637
|
+
}
|
|
638
|
+
return out;
|
|
639
|
+
}
|
|
640
|
+
function percentDecode(input) {
|
|
641
|
+
const raw = new TextEncoder().encode(input);
|
|
642
|
+
const bytes2 = [];
|
|
643
|
+
for (let i = 0; i < raw.length; ) {
|
|
644
|
+
if (raw[i] === 37) {
|
|
645
|
+
const hex = String.fromCharCode(raw[i + 1] ?? 0, raw[i + 2] ?? 0);
|
|
646
|
+
if (!/^[0-9A-Fa-f]{2}$/.test(hex))
|
|
647
|
+
throw new ObjectUrlError(`invalid escape in '${input}'`);
|
|
648
|
+
bytes2.push(parseInt(hex, 16));
|
|
649
|
+
i += 3;
|
|
650
|
+
} else {
|
|
651
|
+
bytes2.push(raw[i]);
|
|
652
|
+
i += 1;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
try {
|
|
656
|
+
return new TextDecoder("utf-8", { fatal: true }).decode(new Uint8Array(bytes2));
|
|
657
|
+
} catch {
|
|
658
|
+
throw new ObjectUrlError(`'${input}' is not UTF-8`);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
function isHostname(host) {
|
|
662
|
+
return host !== "" && host.length <= 253 && host.split(".").every((label) => label !== "" && label.length <= 63 && /^[a-z0-9-]+$/.test(label) && !label.startsWith("-") && !label.endsWith("-"));
|
|
663
|
+
}
|
|
664
|
+
function strictObjIdLabel(label) {
|
|
665
|
+
if (label.length < 26)
|
|
666
|
+
return null;
|
|
667
|
+
try {
|
|
668
|
+
const objId = ObjId.fromString(label);
|
|
669
|
+
const typeOk = /^[a-z0-9_-]+$/.test(objId.objType);
|
|
670
|
+
return typeOk && objId.objHash.length >= 16 && objId.toBase32() === label ? objId : null;
|
|
671
|
+
} catch {
|
|
672
|
+
return null;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
const object_url = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
676
|
+
__proto__: null,
|
|
677
|
+
OBJECT_EVENT_PREFIX,
|
|
678
|
+
OBJ_SERVICE_NAMES,
|
|
679
|
+
ObjectUrlError,
|
|
680
|
+
canonicalJson,
|
|
681
|
+
configKeyFromUrl,
|
|
682
|
+
encodeObjQueryComponent,
|
|
683
|
+
encodeObjSegment,
|
|
684
|
+
expandInputShorthand,
|
|
685
|
+
formatObjectUrl,
|
|
686
|
+
isObjServiceName,
|
|
687
|
+
keventSegment,
|
|
688
|
+
normalizeObjectUrl,
|
|
689
|
+
objEntityUrl,
|
|
690
|
+
objEventKey,
|
|
691
|
+
objEventPattern,
|
|
692
|
+
objServiceUrl,
|
|
693
|
+
objectDid,
|
|
694
|
+
objectEventKey,
|
|
695
|
+
objectEventPattern,
|
|
696
|
+
objectSegments,
|
|
697
|
+
parseObjHost,
|
|
698
|
+
parseObjectUrl,
|
|
699
|
+
rbacResourceKey
|
|
700
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
326
701
|
const AIWORKSPACE_SERVICE_NAME = "aiworkspace";
|
|
327
702
|
class AiwsFailure extends Error {
|
|
328
703
|
constructor(error) {
|
|
@@ -333,6 +708,37 @@ class AiwsFailure extends Error {
|
|
|
333
708
|
this.data = error.data;
|
|
334
709
|
}
|
|
335
710
|
}
|
|
711
|
+
function aiwsReferenceUrl(reference, workspaceId) {
|
|
712
|
+
const ws = reference.workspace_id ?? workspaceId;
|
|
713
|
+
if (!ws)
|
|
714
|
+
throw new Error("reference names no workspace");
|
|
715
|
+
const query = [];
|
|
716
|
+
if (reference.mode === "fixed")
|
|
717
|
+
query.push("mode=fixed");
|
|
718
|
+
if (reference.selector != null)
|
|
719
|
+
query.push(`selector=${encodeObjQueryComponent(canonicalJson(reference.selector))}`);
|
|
720
|
+
if (reference.version != null)
|
|
721
|
+
query.push(`version=${encodeObjQueryComponent(canonicalJson(reference.version))}`);
|
|
722
|
+
const base = objServiceUrl("aiworkspace", [ws, "entities", reference.entity_id]);
|
|
723
|
+
return normalizeObjectUrl(query.length ? `${base}?${query.join("&")}` : base);
|
|
724
|
+
}
|
|
725
|
+
function parseAiwsReferenceUrl(url) {
|
|
726
|
+
const parsed = parseObjectUrl(url);
|
|
727
|
+
const segments = objectSegments(parsed);
|
|
728
|
+
if (parsed.kind !== "obj" || parsed.host.name !== "aiworkspace" || segments.length !== 3 || segments[1] !== "entities") {
|
|
729
|
+
throw new Error(`${url} is not an AI Workspace entity url`);
|
|
730
|
+
}
|
|
731
|
+
const reference = {
|
|
732
|
+
workspace_id: segments[0],
|
|
733
|
+
entity_id: segments[2],
|
|
734
|
+
mode: parsed.query.mode === "fixed" ? "fixed" : "live"
|
|
735
|
+
};
|
|
736
|
+
if (parsed.query.selector !== void 0)
|
|
737
|
+
reference.selector = JSON.parse(parsed.query.selector);
|
|
738
|
+
if (parsed.query.version !== void 0)
|
|
739
|
+
reference.version = JSON.parse(parsed.query.version);
|
|
740
|
+
return reference;
|
|
741
|
+
}
|
|
336
742
|
class AiWorkspaceClient {
|
|
337
743
|
constructor(rpcClient) {
|
|
338
744
|
this.rpcClient = rpcClient;
|
|
@@ -805,10 +1211,10 @@ const TASK_MGR_ERROR_CODES = [
|
|
|
805
1211
|
TASK_ERR_SCHEMA_NOT_FOUND
|
|
806
1212
|
];
|
|
807
1213
|
function taskMgrTaskEventPath(taskId) {
|
|
808
|
-
return
|
|
1214
|
+
return objEventKey("taskmgr", [String(taskId)], "changed");
|
|
809
1215
|
}
|
|
810
1216
|
function taskMgrTreeEventPath(rootId) {
|
|
811
|
-
return
|
|
1217
|
+
return objEventKey("taskmgr", [String(rootId)], "tree");
|
|
812
1218
|
}
|
|
813
1219
|
function taskMgrErrorCode(error) {
|
|
814
1220
|
const message = error instanceof Error ? error.message : String(error);
|
|
@@ -2458,7 +2864,7 @@ const FRIEND_INTENT = "buckyos.friend";
|
|
|
2458
2864
|
const CONTACT_TAG_ZONE_USER = "zone_user";
|
|
2459
2865
|
const CONTACT_TAG_ZONE_AGENT = "zone_agent";
|
|
2460
2866
|
const CONTACT_TAG_HOMESTATION_FOLLOWING = "homestation.following";
|
|
2461
|
-
const
|
|
2867
|
+
const CONTACT_CHANGED_EVENT_PATTERN = "/obj/msg-center/owners/*/contacts/changed";
|
|
2462
2868
|
const WELL_KNOWN_CONTACT_TAGS = [
|
|
2463
2869
|
{ key: CONTACT_TAG_ZONE_USER, kind: "system", user_editable: false },
|
|
2464
2870
|
{ key: CONTACT_TAG_ZONE_AGENT, kind: "system", user_editable: false },
|
|
@@ -28874,7 +29280,7 @@ async function uploadChunkViaTus(endpoint, file, chunkInfo, chunkIndex, fileHash
|
|
|
28874
29280
|
const logicalPath = chunkInfo.chunkId;
|
|
28875
29281
|
let tusModule;
|
|
28876
29282
|
try {
|
|
28877
|
-
tusModule = await import("./tus_client-
|
|
29283
|
+
tusModule = await import("./tus_client-04080b1e.mjs");
|
|
28878
29284
|
} catch (error) {
|
|
28879
29285
|
const message = error instanceof Error ? error.message : String(error);
|
|
28880
29286
|
throw new NdmError("UPLOAD_FAILED", `Failed to load tus-js-client: ${message}`);
|
|
@@ -30009,191 +30415,194 @@ class ExecutorCommandStream {
|
|
|
30009
30415
|
}
|
|
30010
30416
|
}
|
|
30011
30417
|
export {
|
|
30012
|
-
|
|
30013
|
-
|
|
30418
|
+
CONTACT_TAG_ZONE_USER as $,
|
|
30419
|
+
NOTIFY_TEXT_CONTROL_ID as A,
|
|
30014
30420
|
BS_SERVICE_VERIFY_HUB as B,
|
|
30015
|
-
|
|
30016
|
-
|
|
30421
|
+
NOTIFY_ACTION_ANSWER as C,
|
|
30422
|
+
NOTIFY_ACTION_DISMISS as D,
|
|
30017
30423
|
EXTERNAL_PRINCIPAL_CLAIM as E,
|
|
30018
|
-
|
|
30019
|
-
|
|
30020
|
-
|
|
30021
|
-
|
|
30022
|
-
|
|
30023
|
-
|
|
30024
|
-
|
|
30424
|
+
NOTIFY_LINK_PATH as F,
|
|
30425
|
+
isNotifyClosed as G,
|
|
30426
|
+
notifyCategorySessionId as H,
|
|
30427
|
+
notifyCategoryFromSessionId as I,
|
|
30428
|
+
inputPrompt as J,
|
|
30429
|
+
promptOptions as K,
|
|
30430
|
+
notifyAnswerToTaskResult as L,
|
|
30025
30431
|
MsgQueueClient as M,
|
|
30026
30432
|
NOTIFY_INTENT as N,
|
|
30027
|
-
|
|
30028
|
-
|
|
30029
|
-
|
|
30433
|
+
validateNotifyAnswer as O,
|
|
30434
|
+
notifyUrl as P,
|
|
30435
|
+
msgMachineData as Q,
|
|
30030
30436
|
RuntimeType as R,
|
|
30031
30437
|
SystemConfigClient as S,
|
|
30032
|
-
|
|
30033
|
-
|
|
30438
|
+
notifyMessageData as T,
|
|
30439
|
+
commitNotifyAnswer as U,
|
|
30034
30440
|
VerifyHubClient as V,
|
|
30035
30441
|
WEB3_BRIDGE_HOST as W,
|
|
30036
|
-
|
|
30037
|
-
|
|
30442
|
+
answerNotify as X,
|
|
30443
|
+
waitNotify as Y,
|
|
30038
30444
|
ZONE_USER_TYPES as Z,
|
|
30039
|
-
|
|
30445
|
+
FRIEND_INTENT as _,
|
|
30040
30446
|
ndm_proxy as a,
|
|
30041
|
-
|
|
30042
|
-
|
|
30043
|
-
|
|
30044
|
-
|
|
30045
|
-
|
|
30046
|
-
|
|
30047
|
-
|
|
30048
|
-
|
|
30049
|
-
|
|
30050
|
-
|
|
30051
|
-
|
|
30052
|
-
|
|
30053
|
-
|
|
30054
|
-
|
|
30055
|
-
|
|
30056
|
-
|
|
30057
|
-
|
|
30058
|
-
|
|
30059
|
-
|
|
30060
|
-
|
|
30061
|
-
|
|
30062
|
-
|
|
30063
|
-
|
|
30064
|
-
|
|
30065
|
-
|
|
30066
|
-
|
|
30067
|
-
|
|
30068
|
-
|
|
30069
|
-
|
|
30070
|
-
|
|
30071
|
-
|
|
30072
|
-
|
|
30073
|
-
|
|
30074
|
-
|
|
30075
|
-
|
|
30076
|
-
|
|
30077
|
-
|
|
30078
|
-
|
|
30079
|
-
|
|
30080
|
-
|
|
30081
|
-
|
|
30082
|
-
|
|
30083
|
-
|
|
30084
|
-
|
|
30085
|
-
|
|
30086
|
-
|
|
30087
|
-
|
|
30088
|
-
|
|
30089
|
-
|
|
30090
|
-
|
|
30091
|
-
|
|
30092
|
-
|
|
30093
|
-
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30098
|
-
|
|
30099
|
-
|
|
30100
|
-
|
|
30101
|
-
|
|
30102
|
-
|
|
30103
|
-
|
|
30104
|
-
|
|
30447
|
+
TASK_ERR_INVALID_PHASE as a$,
|
|
30448
|
+
CONTACT_TAG_ZONE_AGENT as a0,
|
|
30449
|
+
CONTACT_TAG_HOMESTATION_FOLLOWING as a1,
|
|
30450
|
+
CONTACT_CHANGED_EVENT_PATTERN as a2,
|
|
30451
|
+
WELL_KNOWN_CONTACT_TAGS as a3,
|
|
30452
|
+
USER_TYPE_GROUP_REF_PREFIX as a4,
|
|
30453
|
+
USER_GROUP_REF_PREFIX as a5,
|
|
30454
|
+
contactTagApp as a6,
|
|
30455
|
+
contactTagKind as a7,
|
|
30456
|
+
isUserGroupRefTag as a8,
|
|
30457
|
+
DENY_REASONS as a9,
|
|
30458
|
+
RAW_TASK_SCHEMA_ID as aA,
|
|
30459
|
+
HUMAN_APPROVAL_SCHEMA_ID as aB,
|
|
30460
|
+
DOWNLOAD_TASK_SCHEMA_ID as aC,
|
|
30461
|
+
SCHEDULER_DISPATCH_THUNK_TASK_SCHEMA_ID as aD,
|
|
30462
|
+
WORKFLOW_RUN_TREE_TASK_SCHEMA_ID as aE,
|
|
30463
|
+
WORKFLOW_STEP_TASK_SCHEMA_ID as aF,
|
|
30464
|
+
WORKFLOW_MAP_SHARD_TASK_SCHEMA_ID as aG,
|
|
30465
|
+
WORKFLOW_THUNK_TASK_SCHEMA_ID as aH,
|
|
30466
|
+
WORKFLOW_SCHEDULE_TASK_SCHEMA_ID as aI,
|
|
30467
|
+
WORKFLOW_SEND_MESSAGE_TASK_SCHEMA_ID as aJ,
|
|
30468
|
+
WORKFLOW_EXECUTE_RPC_TASK_SCHEMA_ID as aK,
|
|
30469
|
+
WORKFLOW_RUN_TARGET_TASK_SCHEMA_ID as aL,
|
|
30470
|
+
AGENT_DELEGATE_TASK_SCHEMA_ID as aM,
|
|
30471
|
+
HUMAN_INPUT_TASK_SCHEMA_ID as aN,
|
|
30472
|
+
OPENDAN_ASYNC_TOOL_TASK_SCHEMA_ID as aO,
|
|
30473
|
+
OPENDAN_COMMAND_TASK_SCHEMA_ID as aP,
|
|
30474
|
+
TOOL_EXEC_BASH_TASK_SCHEMA_ID as aQ,
|
|
30475
|
+
AICC_COMPUTE_TASK_SCHEMA_ID as aR,
|
|
30476
|
+
APP_INSTALL_TASK_SCHEMA_ID as aS,
|
|
30477
|
+
APP_UNINSTALL_TASK_SCHEMA_ID as aT,
|
|
30478
|
+
APP_START_TASK_SCHEMA_ID as aU,
|
|
30479
|
+
APP_UPDATE_TASK_SCHEMA_ID as aV,
|
|
30480
|
+
APP_UPDATE_BATCH_TASK_SCHEMA_ID as aW,
|
|
30481
|
+
TASK_ERR_NOT_FOUND as aX,
|
|
30482
|
+
TASK_ERR_PERMISSION_DENIED as aY,
|
|
30483
|
+
TASK_ERR_REVISION_CONFLICT as aZ,
|
|
30484
|
+
TASK_ERR_STALE_RUNNER_EPOCH as a_,
|
|
30485
|
+
ACCESS_DENIED_ERROR_CODE as aa,
|
|
30486
|
+
parseAccessDenial as ab,
|
|
30487
|
+
accessDenialOf as ac,
|
|
30488
|
+
ANONYMOUS_IDENTITY as ad,
|
|
30489
|
+
parseCurrentIdentity as ae,
|
|
30490
|
+
identityKey as af,
|
|
30491
|
+
identityAllows as ag,
|
|
30492
|
+
DEFAULT_JUMP_BASE_URL as ah,
|
|
30493
|
+
JUMP_ACTION_PATHS as ai,
|
|
30494
|
+
normalizeZoneHostname as aj,
|
|
30495
|
+
zoneActionUrl as ak,
|
|
30496
|
+
buildJumpUrl as al,
|
|
30497
|
+
APP_LOGIN_ISSUE_METHOD as am,
|
|
30498
|
+
APP_LOGIN_EXCHANGE_METHOD as an,
|
|
30499
|
+
APP_LOGIN_SETTINGS_GET_METHOD as ao,
|
|
30500
|
+
APP_LOGIN_SETTINGS_SET_METHOD as ap,
|
|
30501
|
+
issueAppLoginCode as aq,
|
|
30502
|
+
issueAppCustomerLink as ar,
|
|
30503
|
+
parseAppLoginExchangeResult as as,
|
|
30504
|
+
randomAppLoginNonce as at,
|
|
30505
|
+
loginByAppAccessToken as au,
|
|
30506
|
+
completeAppAccessTokenLogin as av,
|
|
30507
|
+
TASK_MANAGER_SERVICE_UNIQUE_ID as aw,
|
|
30508
|
+
TASK_MANAGER_SERVICE_NAME as ax,
|
|
30509
|
+
TASK_MANAGER_SERVICE_PORT as ay,
|
|
30510
|
+
TASK_POLICY_PRESET_COLLABORATIVE_TREE_V1 as az,
|
|
30105
30511
|
bns_client as b,
|
|
30106
|
-
|
|
30107
|
-
|
|
30108
|
-
|
|
30109
|
-
|
|
30110
|
-
|
|
30111
|
-
|
|
30112
|
-
|
|
30113
|
-
|
|
30114
|
-
|
|
30115
|
-
|
|
30116
|
-
|
|
30117
|
-
|
|
30118
|
-
|
|
30119
|
-
|
|
30120
|
-
|
|
30121
|
-
|
|
30122
|
-
|
|
30123
|
-
|
|
30124
|
-
|
|
30125
|
-
|
|
30126
|
-
|
|
30127
|
-
|
|
30128
|
-
|
|
30129
|
-
|
|
30130
|
-
|
|
30131
|
-
|
|
30132
|
-
|
|
30133
|
-
|
|
30134
|
-
|
|
30135
|
-
|
|
30136
|
-
|
|
30137
|
-
|
|
30138
|
-
|
|
30139
|
-
|
|
30140
|
-
|
|
30141
|
-
|
|
30142
|
-
|
|
30143
|
-
|
|
30144
|
-
|
|
30145
|
-
|
|
30146
|
-
|
|
30147
|
-
|
|
30148
|
-
|
|
30149
|
-
|
|
30150
|
-
|
|
30151
|
-
|
|
30152
|
-
|
|
30153
|
-
|
|
30154
|
-
|
|
30155
|
-
|
|
30156
|
-
|
|
30157
|
-
|
|
30158
|
-
|
|
30159
|
-
|
|
30160
|
-
|
|
30161
|
-
|
|
30162
|
-
|
|
30163
|
-
|
|
30164
|
-
|
|
30165
|
-
|
|
30166
|
-
|
|
30167
|
-
|
|
30168
|
-
|
|
30169
|
-
|
|
30512
|
+
videoGenerationRequirement as b$,
|
|
30513
|
+
TASK_ERR_CONTROL_NOT_AVAILABLE as b0,
|
|
30514
|
+
TASK_ERR_CONTROL_ALREADY_PENDING as b1,
|
|
30515
|
+
TASK_ERR_ALREADY_COMPLETED as b2,
|
|
30516
|
+
TASK_ERR_INPUT_SCHEMA_MISMATCH as b3,
|
|
30517
|
+
TASK_ERR_RESULT_SCHEMA_MISMATCH as b4,
|
|
30518
|
+
TASK_ERR_IDEMPOTENCY_CONFLICT as b5,
|
|
30519
|
+
TASK_ERR_SCHEMA_NOT_FOUND as b6,
|
|
30520
|
+
TASK_MGR_ERROR_CODES as b7,
|
|
30521
|
+
taskMgrTaskEventPath as b8,
|
|
30522
|
+
taskMgrTreeEventPath as b9,
|
|
30523
|
+
WorkflowScheduledTaskFireStatus as bA,
|
|
30524
|
+
WorkflowClient as bB,
|
|
30525
|
+
AICC_SERVICE_UNIQUE_ID as bC,
|
|
30526
|
+
AICC_SERVICE_SERVICE_NAME as bD,
|
|
30527
|
+
AICC_SERVICE_SERVICE_PORT as bE,
|
|
30528
|
+
AICC_AI_METHODS as bF,
|
|
30529
|
+
AICC_CORE_METHODS as bG,
|
|
30530
|
+
AICC_MANAGEMENT_METHODS as bH,
|
|
30531
|
+
AICC_QUOTA_METHODS as bI,
|
|
30532
|
+
AICC_METHODS as bJ,
|
|
30533
|
+
AICC_FEATURES as bK,
|
|
30534
|
+
AICC_EXECUTION_MODES as bL,
|
|
30535
|
+
AICC_POLICY_REFUSAL_CODES as bM,
|
|
30536
|
+
aiccRefusalOf as bN,
|
|
30537
|
+
isAiccAiMethod as bO,
|
|
30538
|
+
aiccTextMessage as bP,
|
|
30539
|
+
aiccMessageTextContent as bQ,
|
|
30540
|
+
aiccMessageFirstText as bR,
|
|
30541
|
+
validateAiccMessage as bS,
|
|
30542
|
+
AiccClient as bT,
|
|
30543
|
+
decisionRequirements as bU,
|
|
30544
|
+
validateDecisionRequest as bV,
|
|
30545
|
+
validateDecisionAnswers as bW,
|
|
30546
|
+
parseVideoPrompt as bX,
|
|
30547
|
+
validateVideoOutput as bY,
|
|
30548
|
+
validateVideoGeneration as bZ,
|
|
30549
|
+
validateVideoEdit as b_,
|
|
30550
|
+
taskMgrErrorCode as ba,
|
|
30551
|
+
TaskExecutorKind as bb,
|
|
30552
|
+
TaskPhase as bc,
|
|
30553
|
+
isTerminalTaskPhase as bd,
|
|
30554
|
+
TaskWaitReasonKind as be,
|
|
30555
|
+
TaskOutcome as bf,
|
|
30556
|
+
TaskControlAction as bg,
|
|
30557
|
+
baselineTaskControlProfile as bh,
|
|
30558
|
+
DEFAULT_CHILD_CONTROL_POLICY as bi,
|
|
30559
|
+
TaskAction as bj,
|
|
30560
|
+
TaskGrantScope as bk,
|
|
30561
|
+
TaskDataScope as bl,
|
|
30562
|
+
StorageDomain as bm,
|
|
30563
|
+
TaskEventType as bn,
|
|
30564
|
+
TaskManagerClient as bo,
|
|
30565
|
+
WORKFLOW_SERVICE_NAME as bp,
|
|
30566
|
+
WorkflowStepType as bq,
|
|
30567
|
+
WorkflowOutputMode as br,
|
|
30568
|
+
WorkflowJoinMode as bs,
|
|
30569
|
+
WorkflowRetryFallback as bt,
|
|
30570
|
+
WorkflowDefinitionStatus as bu,
|
|
30571
|
+
WorkflowRunStatus as bv,
|
|
30572
|
+
WorkflowNodeRunState as bw,
|
|
30573
|
+
WorkflowHumanActionKind as bx,
|
|
30574
|
+
WorkflowScheduledTaskStatus as by,
|
|
30575
|
+
WorkflowScheduledTaskMisfirePolicy as bz,
|
|
30170
30576
|
createSDKModule as c,
|
|
30171
|
-
|
|
30172
|
-
|
|
30173
|
-
|
|
30174
|
-
|
|
30175
|
-
|
|
30176
|
-
|
|
30177
|
-
|
|
30178
|
-
|
|
30179
|
-
|
|
30180
|
-
|
|
30181
|
-
|
|
30182
|
-
|
|
30183
|
-
|
|
30184
|
-
|
|
30185
|
-
|
|
30186
|
-
|
|
30187
|
-
|
|
30188
|
-
|
|
30189
|
-
|
|
30190
|
-
|
|
30191
|
-
|
|
30192
|
-
|
|
30193
|
-
|
|
30194
|
-
|
|
30195
|
-
|
|
30196
|
-
|
|
30577
|
+
KEventReader as c0,
|
|
30578
|
+
KEventClient as c1,
|
|
30579
|
+
appIdFromDid as c2,
|
|
30580
|
+
parseAppId as c3,
|
|
30581
|
+
appDidFromId as c4,
|
|
30582
|
+
createAppInstanceId as c5,
|
|
30583
|
+
parseAppInstanceId as c6,
|
|
30584
|
+
BNS_EVM_DEFAULT_GAS_LIMIT as c7,
|
|
30585
|
+
BNS_EVM_DEFAULT_MAX_FEE_PER_GAS as c8,
|
|
30586
|
+
BNS_EVM_DEFAULT_MAX_PRIORITY_FEE_PER_GAS as c9,
|
|
30587
|
+
BNS_MAX_INLINE_DOCUMENT_BYTES as ca,
|
|
30588
|
+
BNS_DNS_TXT_DEFAULT_TTL as cb,
|
|
30589
|
+
BNS_DNS_TXT_DOC_TYPE as cc,
|
|
30590
|
+
BNS_PUBLISH_DOCUMENT_ABI as cd,
|
|
30591
|
+
BnsEvmTxError as ce,
|
|
30592
|
+
BnsEvmTxBuilder as cf,
|
|
30593
|
+
decodeBnsPublishDocumentCalldata as cg,
|
|
30594
|
+
BnsTxExecutorError as ch,
|
|
30595
|
+
walletUserHasSnAccount as ci,
|
|
30596
|
+
BnsTxExecutor as cj,
|
|
30597
|
+
ExecutorClient as ck,
|
|
30598
|
+
ExecutorStreamError as cl,
|
|
30599
|
+
encodeExecutorControl as cm,
|
|
30600
|
+
ExecutorCommandStream as cn,
|
|
30601
|
+
AIWORKSPACE_SERVICE_NAME as co,
|
|
30602
|
+
AiwsFailure as cp,
|
|
30603
|
+
aiwsReferenceUrl as cq,
|
|
30604
|
+
parseAiwsReferenceUrl as cr,
|
|
30605
|
+
AiWorkspaceClient as cs,
|
|
30197
30606
|
bucket_client as d,
|
|
30198
30607
|
BS_SERVICE_TASK_MANAGER as e,
|
|
30199
30608
|
getActiveRuntimeType as f,
|
|
@@ -30205,17 +30614,17 @@ export {
|
|
|
30205
30614
|
parseZoneUserType as l,
|
|
30206
30615
|
isExternalPrincipal as m,
|
|
30207
30616
|
ndm_client as n,
|
|
30208
|
-
|
|
30617
|
+
object_url as o,
|
|
30209
30618
|
parseSessionTokenClaims as p,
|
|
30210
|
-
|
|
30619
|
+
RPCError as q,
|
|
30211
30620
|
resolveDidFromHost as r,
|
|
30212
30621
|
sn_client as s,
|
|
30213
|
-
|
|
30214
|
-
|
|
30215
|
-
|
|
30216
|
-
|
|
30217
|
-
|
|
30218
|
-
|
|
30219
|
-
|
|
30622
|
+
MsgCenterClient as t,
|
|
30623
|
+
mailboxAddress as u,
|
|
30624
|
+
mailboxResource as v,
|
|
30625
|
+
NOTIFY_DELIVERED_INTENT as w,
|
|
30626
|
+
NOTIFY_DATA_VERSION as x,
|
|
30627
|
+
NOTIFY_SESSION_PREFIX as y,
|
|
30628
|
+
NOTIFY_CHOICE_CONTROL_ID as z
|
|
30220
30629
|
};
|
|
30221
|
-
//# sourceMappingURL=executor_client-
|
|
30630
|
+
//# sourceMappingURL=executor_client-78ad0749.mjs.map
|