buckyos 0.7.128 → 0.7.131
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/dist/cli.mjs +1 -1
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/version.ts +1 -1
- package/dist/browser.cjs +1 -1
- package/dist/browser.mjs +131 -109
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +131 -109
- package/dist/msg_center_client.d.ts +228 -1
- package/dist/msg_center_client.d.ts.map +1 -1
- package/dist/ndm_proxy-28e72ddf.js +13 -0
- package/dist/ndm_proxy-28e72ddf.js.map +1 -0
- package/dist/{ndm_proxy-3caceb0a.mjs → ndm_proxy-a167f2a4.mjs} +372 -108
- package/dist/ndm_proxy-a167f2a4.mjs.map +1 -0
- package/dist/nfsp.cjs +1 -1
- package/dist/nfsp.cjs.map +1 -1
- package/dist/nfsp.d.ts +71 -2
- package/dist/nfsp.d.ts.map +1 -1
- package/dist/nfsp.mjs +20 -1
- package/dist/nfsp.mjs.map +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.mjs +131 -109
- package/dist/provision.cjs +1 -1
- package/dist/provision.cjs.map +1 -1
- package/dist/provision.mjs +1 -1
- package/dist/provision.mjs.map +1 -1
- package/dist/sdk_core.d.ts +2 -2
- package/dist/sdk_core.d.ts.map +1 -1
- package/dist/task_mgr_client.d.ts +40 -0
- package/dist/task_mgr_client.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ndm_proxy-3caceb0a.mjs.map +0 -1
- package/dist/ndm_proxy-d37a0204.js +0 -13
- package/dist/ndm_proxy-d37a0204.js.map +0 -1
|
@@ -1781,6 +1781,27 @@ function mailboxResource(mailbox, kind) {
|
|
|
1781
1781
|
const encoded = encodeURIComponent(mailbox).replace(/[!'()*.]/g, (char) => `%${char.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%3A/g, ":").replace(/%40/g, "@").replace(/%2F/g, "/");
|
|
1782
1782
|
return `obj://msg-center/${kind.toLowerCase()}/${encoded}`;
|
|
1783
1783
|
}
|
|
1784
|
+
const NOTIFY_INTENT = "buckyos.notify";
|
|
1785
|
+
const NOTIFY_DELIVERED_INTENT = "buckyos.notify.delivered";
|
|
1786
|
+
const NOTIFY_DATA_VERSION = 1;
|
|
1787
|
+
const NOTIFY_SESSION_PREFIX = "sysnotify:";
|
|
1788
|
+
const NOTIFY_CHOICE_CONTROL_ID = "option";
|
|
1789
|
+
const NOTIFY_TEXT_CONTROL_ID = "text";
|
|
1790
|
+
const NOTIFY_ACTION_ANSWER = "answer";
|
|
1791
|
+
const NOTIFY_ACTION_DISMISS = "dismiss";
|
|
1792
|
+
const NOTIFY_LINK_PATH = "/messagehub";
|
|
1793
|
+
function isNotifyClosed(status) {
|
|
1794
|
+
return status !== "open" && status !== "read";
|
|
1795
|
+
}
|
|
1796
|
+
function notifyCategorySessionId(category) {
|
|
1797
|
+
return `${NOTIFY_SESSION_PREFIX}${category}`;
|
|
1798
|
+
}
|
|
1799
|
+
function notifyCategoryFromSessionId(sessionId) {
|
|
1800
|
+
if (!sessionId.startsWith(NOTIFY_SESSION_PREFIX))
|
|
1801
|
+
return null;
|
|
1802
|
+
const category = sessionId.slice(NOTIFY_SESSION_PREFIX.length);
|
|
1803
|
+
return category === "todo" || category === "agent" || category === "app" ? category : null;
|
|
1804
|
+
}
|
|
1784
1805
|
function compact$1(input) {
|
|
1785
1806
|
const out = {};
|
|
1786
1807
|
for (const [key, value] of Object.entries(input)) {
|
|
@@ -1814,6 +1835,13 @@ function asDid(value, method) {
|
|
|
1814
1835
|
function asOptionalDid(value, method) {
|
|
1815
1836
|
return value == null ? null : asDid(value, method);
|
|
1816
1837
|
}
|
|
1838
|
+
function asNotifyView(value) {
|
|
1839
|
+
const view = asRecord$2(value, "NotifyView");
|
|
1840
|
+
if (typeof view.notify_id !== "string" || typeof view.status !== "string") {
|
|
1841
|
+
throw new RPCError("Invalid NotifyView");
|
|
1842
|
+
}
|
|
1843
|
+
return view;
|
|
1844
|
+
}
|
|
1817
1845
|
class MsgCenterClient {
|
|
1818
1846
|
constructor(rpcClient) {
|
|
1819
1847
|
this.rpcClient = rpcClient;
|
|
@@ -2081,6 +2109,220 @@ class MsgCenterClient {
|
|
|
2081
2109
|
subscriber_count: record.subscriber_count
|
|
2082
2110
|
};
|
|
2083
2111
|
}
|
|
2112
|
+
/** Notify a zone user (System Notify). */
|
|
2113
|
+
async notifySend(req) {
|
|
2114
|
+
return asNotifyView(await this.call("notify.send", compact$1({ ...req })));
|
|
2115
|
+
}
|
|
2116
|
+
async notifyGet(notifyId) {
|
|
2117
|
+
return asNotifyView(await this.call("notify.get", { notify_id: notifyId }));
|
|
2118
|
+
}
|
|
2119
|
+
async notifyList(req = {}) {
|
|
2120
|
+
const result = asRecord$2(await this.call("notify.list", compact$1({ ...req })), "NotifyListResult");
|
|
2121
|
+
return {
|
|
2122
|
+
...result,
|
|
2123
|
+
items: asArrayOf(result.items, "Vec<NotifyView>").map(asNotifyView)
|
|
2124
|
+
};
|
|
2125
|
+
}
|
|
2126
|
+
/** Mark a `notice` read; `onBehalf` names who acknowledges for the user. */
|
|
2127
|
+
async notifyAck(notifyId, onBehalf) {
|
|
2128
|
+
return asNotifyView(await this.call("notify.ack", compact$1({ notify_id: notifyId, on_behalf: onBehalf })));
|
|
2129
|
+
}
|
|
2130
|
+
async notifyDismiss(notifyId) {
|
|
2131
|
+
return asNotifyView(await this.call("notify.dismiss", { notify_id: notifyId }));
|
|
2132
|
+
}
|
|
2133
|
+
async notifyCancel(notifyId, reason) {
|
|
2134
|
+
return asNotifyView(await this.call("notify.cancel", compact$1({ notify_id: notifyId, reason })));
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
function inputPrompt(title, message, options, allowText = false) {
|
|
2138
|
+
const controls = [];
|
|
2139
|
+
const hasOptions = options.length > 0;
|
|
2140
|
+
if (hasOptions) {
|
|
2141
|
+
controls.push({
|
|
2142
|
+
kind: "choice",
|
|
2143
|
+
id: NOTIFY_CHOICE_CONTROL_ID,
|
|
2144
|
+
options,
|
|
2145
|
+
multiple: false,
|
|
2146
|
+
required: !allowText
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
if (!hasOptions || allowText) {
|
|
2150
|
+
controls.push({
|
|
2151
|
+
kind: "text_input",
|
|
2152
|
+
id: NOTIFY_TEXT_CONTROL_ID,
|
|
2153
|
+
multiline: true,
|
|
2154
|
+
required: !hasOptions
|
|
2155
|
+
});
|
|
2156
|
+
}
|
|
2157
|
+
return message ? { title, message, controls } : { title, controls };
|
|
2158
|
+
}
|
|
2159
|
+
function promptOptions(prompt) {
|
|
2160
|
+
for (const control of prompt.controls ?? []) {
|
|
2161
|
+
if (control.kind === "choice" && control.id === NOTIFY_CHOICE_CONTROL_ID) {
|
|
2162
|
+
return control.options ?? [];
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
return [];
|
|
2166
|
+
}
|
|
2167
|
+
function notifyAnswerToTaskResult(answer, submittedBy, submittedAtMs) {
|
|
2168
|
+
const values = {};
|
|
2169
|
+
if (answer.option) {
|
|
2170
|
+
values[NOTIFY_CHOICE_CONTROL_ID] = answer.option;
|
|
2171
|
+
}
|
|
2172
|
+
if (answer.text && answer.text.trim()) {
|
|
2173
|
+
values[NOTIFY_TEXT_CONTROL_ID] = answer.text;
|
|
2174
|
+
}
|
|
2175
|
+
return {
|
|
2176
|
+
kind: "human",
|
|
2177
|
+
action: answer.dismiss ? NOTIFY_ACTION_DISMISS : NOTIFY_ACTION_ANSWER,
|
|
2178
|
+
...Object.keys(values).length > 0 ? { values } : {},
|
|
2179
|
+
submitted_by: submittedBy,
|
|
2180
|
+
submitted_at: submittedAtMs
|
|
2181
|
+
};
|
|
2182
|
+
}
|
|
2183
|
+
function validateNotifyAnswer(answer, prompt) {
|
|
2184
|
+
if (answer.dismiss) {
|
|
2185
|
+
return null;
|
|
2186
|
+
}
|
|
2187
|
+
const options = promptOptions(prompt);
|
|
2188
|
+
const acceptsText = (prompt.controls ?? []).some(
|
|
2189
|
+
(control) => control.kind === "text_input" && control.id === NOTIFY_TEXT_CONTROL_ID
|
|
2190
|
+
);
|
|
2191
|
+
if (answer.option != null && !options.some((option) => option.value === answer.option)) {
|
|
2192
|
+
return `no option '${answer.option}'; options: ${options.map((option) => option.value).join(", ")}`;
|
|
2193
|
+
}
|
|
2194
|
+
const hasText = !!answer.text && answer.text.trim() !== "";
|
|
2195
|
+
if (hasText && !acceptsText) {
|
|
2196
|
+
return "this question takes one of its options, not free text";
|
|
2197
|
+
}
|
|
2198
|
+
if (answer.option == null && !hasText) {
|
|
2199
|
+
return "an answer needs an option or a text";
|
|
2200
|
+
}
|
|
2201
|
+
return null;
|
|
2202
|
+
}
|
|
2203
|
+
function notifyUrl(zoneHost, notifyId) {
|
|
2204
|
+
const path = `${NOTIFY_LINK_PATH}?notify=${notifyId}`;
|
|
2205
|
+
const host = zoneHost == null ? void 0 : zoneHost.trim();
|
|
2206
|
+
return host ? `https://${host}${path}` : path;
|
|
2207
|
+
}
|
|
2208
|
+
function msgMachineData(msg, intent) {
|
|
2209
|
+
const content = msg == null ? void 0 : msg.content;
|
|
2210
|
+
if (!content || typeof content !== "object")
|
|
2211
|
+
return null;
|
|
2212
|
+
const machine = content.machine;
|
|
2213
|
+
if (!machine || typeof machine !== "object" || machine.intent !== intent)
|
|
2214
|
+
return null;
|
|
2215
|
+
const data = machine.data;
|
|
2216
|
+
return data && typeof data === "object" && !Array.isArray(data) ? data : null;
|
|
2217
|
+
}
|
|
2218
|
+
function notifyMessageData(msg) {
|
|
2219
|
+
const data = msgMachineData(msg, NOTIFY_INTENT);
|
|
2220
|
+
return data && typeof data.notify_id === "string" ? data : null;
|
|
2221
|
+
}
|
|
2222
|
+
async function commitNotifyAnswer(tasks, taskId, answer, submittedBy, nowMs = Date.now()) {
|
|
2223
|
+
for (let attempt = 0; attempt < 3; attempt += 1) {
|
|
2224
|
+
const task2 = await tasks.getTask(taskId);
|
|
2225
|
+
if (isTerminalTaskPhase(task2.phase) || task2.result != null) {
|
|
2226
|
+
return { kind: "already_closed", task: task2 };
|
|
2227
|
+
}
|
|
2228
|
+
try {
|
|
2229
|
+
const committed = await tasks.commitResult({
|
|
2230
|
+
task_id: taskId,
|
|
2231
|
+
result: notifyAnswerToTaskResult(answer, submittedBy, nowMs),
|
|
2232
|
+
expected_revision: task2.revision
|
|
2233
|
+
});
|
|
2234
|
+
return { kind: "committed", task: committed };
|
|
2235
|
+
} catch (error) {
|
|
2236
|
+
const code = taskMgrErrorCode(error);
|
|
2237
|
+
if (code === TASK_ERR_ALREADY_COMPLETED) {
|
|
2238
|
+
return { kind: "already_closed", task: await tasks.getTask(taskId) };
|
|
2239
|
+
}
|
|
2240
|
+
if (code !== TASK_ERR_REVISION_CONFLICT) {
|
|
2241
|
+
throw error;
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
const task = await tasks.getTask(taskId);
|
|
2246
|
+
if (isTerminalTaskPhase(task.phase)) {
|
|
2247
|
+
return { kind: "already_closed", task };
|
|
2248
|
+
}
|
|
2249
|
+
throw new RPCError(`task ${taskId} keeps changing; answer not committed`);
|
|
2250
|
+
}
|
|
2251
|
+
async function answerNotify(msgCenter, taskMgr, notifyId, answer, submittedBy) {
|
|
2252
|
+
const view = await msgCenter.notifyGet(notifyId);
|
|
2253
|
+
if (view.kind === "notice") {
|
|
2254
|
+
return answer.dismiss ? msgCenter.notifyDismiss(notifyId) : msgCenter.notifyAck(notifyId);
|
|
2255
|
+
}
|
|
2256
|
+
if (!view.task_id) {
|
|
2257
|
+
throw new RPCError(`notification ${notifyId} has no task`);
|
|
2258
|
+
}
|
|
2259
|
+
if (isNotifyClosed(view.status)) {
|
|
2260
|
+
return view;
|
|
2261
|
+
}
|
|
2262
|
+
const invalid = validateNotifyAnswer(answer, view.prompt);
|
|
2263
|
+
if (invalid) {
|
|
2264
|
+
throw new RPCError(invalid);
|
|
2265
|
+
}
|
|
2266
|
+
await commitNotifyAnswer(taskMgr, view.task_id, answer, submittedBy ?? view.to_user);
|
|
2267
|
+
return msgCenter.notifyGet(notifyId);
|
|
2268
|
+
}
|
|
2269
|
+
const NOTIFY_WAIT_FIRST_INTERVAL_MS = 500;
|
|
2270
|
+
const NOTIFY_WAIT_MAX_INTERVAL_MS = 3e4;
|
|
2271
|
+
function sleepMs(ms) {
|
|
2272
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
2273
|
+
}
|
|
2274
|
+
async function pauseNotifyWait(ms, reader) {
|
|
2275
|
+
const startedAt = Date.now();
|
|
2276
|
+
if (reader) {
|
|
2277
|
+
try {
|
|
2278
|
+
if (await reader.pullEvent(ms)) {
|
|
2279
|
+
return;
|
|
2280
|
+
}
|
|
2281
|
+
} catch {
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
const left = ms - (Date.now() - startedAt);
|
|
2285
|
+
if (left > 0) {
|
|
2286
|
+
await sleepMs(left);
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
async function waitNotify(msgCenter, notifyId, deadlineMs, opts = {}) {
|
|
2290
|
+
let view = await msgCenter.notifyGet(notifyId);
|
|
2291
|
+
let reader = null;
|
|
2292
|
+
let finished = false;
|
|
2293
|
+
if (opts.kevent && view.task_id && !isNotifyClosed(view.status)) {
|
|
2294
|
+
opts.kevent.createEventReader([taskMgrTaskEventPath(view.task_id)]).then(
|
|
2295
|
+
(opened) => {
|
|
2296
|
+
if (finished) {
|
|
2297
|
+
opened.close().catch(() => void 0);
|
|
2298
|
+
} else {
|
|
2299
|
+
reader = opened;
|
|
2300
|
+
}
|
|
2301
|
+
},
|
|
2302
|
+
() => void 0
|
|
2303
|
+
);
|
|
2304
|
+
}
|
|
2305
|
+
try {
|
|
2306
|
+
let interval = NOTIFY_WAIT_FIRST_INTERVAL_MS;
|
|
2307
|
+
for (; ; ) {
|
|
2308
|
+
if (isNotifyClosed(view.status)) {
|
|
2309
|
+
return view;
|
|
2310
|
+
}
|
|
2311
|
+
const now = Date.now();
|
|
2312
|
+
if (now >= deadlineMs) {
|
|
2313
|
+
return view;
|
|
2314
|
+
}
|
|
2315
|
+
await pauseNotifyWait(Math.min(interval, deadlineMs - now), reader);
|
|
2316
|
+
interval = Math.min(interval * 2, NOTIFY_WAIT_MAX_INTERVAL_MS);
|
|
2317
|
+
view = await msgCenter.notifyGet(notifyId);
|
|
2318
|
+
}
|
|
2319
|
+
} finally {
|
|
2320
|
+
finished = true;
|
|
2321
|
+
const opened = reader;
|
|
2322
|
+
if (opened) {
|
|
2323
|
+
await opened.close().catch(() => void 0);
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2084
2326
|
}
|
|
2085
2327
|
function compact(input) {
|
|
2086
2328
|
const out = {};
|
|
@@ -28384,113 +28626,135 @@ const ndm_proxy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
|
|
|
28384
28626
|
unpinOwner
|
|
28385
28627
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
28386
28628
|
export {
|
|
28387
|
-
|
|
28388
|
-
|
|
28629
|
+
WORKFLOW_RUN_TREE_TASK_SCHEMA_ID as $,
|
|
28630
|
+
notifyCategorySessionId as A,
|
|
28389
28631
|
BS_SERVICE_VERIFY_HUB as B,
|
|
28390
|
-
|
|
28391
|
-
|
|
28392
|
-
|
|
28393
|
-
|
|
28394
|
-
|
|
28395
|
-
|
|
28396
|
-
|
|
28397
|
-
|
|
28398
|
-
|
|
28399
|
-
|
|
28632
|
+
notifyCategoryFromSessionId as C,
|
|
28633
|
+
inputPrompt as D,
|
|
28634
|
+
promptOptions as E,
|
|
28635
|
+
notifyAnswerToTaskResult as F,
|
|
28636
|
+
validateNotifyAnswer as G,
|
|
28637
|
+
notifyUrl as H,
|
|
28638
|
+
msgMachineData as I,
|
|
28639
|
+
notifyMessageData as J,
|
|
28640
|
+
commitNotifyAnswer as K,
|
|
28641
|
+
answerNotify as L,
|
|
28400
28642
|
MsgQueueClient as M,
|
|
28401
|
-
|
|
28402
|
-
|
|
28403
|
-
|
|
28404
|
-
|
|
28643
|
+
NOTIFY_INTENT as N,
|
|
28644
|
+
waitNotify as O,
|
|
28645
|
+
TASK_MANAGER_SERVICE_NAME as P,
|
|
28646
|
+
TASK_MANAGER_SERVICE_PORT as Q,
|
|
28405
28647
|
RuntimeType as R,
|
|
28406
28648
|
SystemConfigClient as S,
|
|
28407
28649
|
TASK_MANAGER_SERVICE_UNIQUE_ID as T,
|
|
28408
|
-
|
|
28650
|
+
TASK_POLICY_PRESET_COLLABORATIVE_TREE_V1 as U,
|
|
28409
28651
|
VerifyHubClient as V,
|
|
28410
28652
|
WEB3_BRIDGE_HOST as W,
|
|
28411
|
-
|
|
28412
|
-
|
|
28413
|
-
|
|
28414
|
-
|
|
28653
|
+
RAW_TASK_SCHEMA_ID as X,
|
|
28654
|
+
HUMAN_APPROVAL_SCHEMA_ID as Y,
|
|
28655
|
+
DOWNLOAD_TASK_SCHEMA_ID as Z,
|
|
28656
|
+
SCHEDULER_DISPATCH_THUNK_TASK_SCHEMA_ID as _,
|
|
28415
28657
|
ndm_proxy as a,
|
|
28416
|
-
|
|
28417
|
-
|
|
28418
|
-
|
|
28419
|
-
|
|
28420
|
-
|
|
28421
|
-
|
|
28422
|
-
|
|
28423
|
-
|
|
28424
|
-
|
|
28425
|
-
|
|
28426
|
-
|
|
28427
|
-
|
|
28428
|
-
|
|
28429
|
-
|
|
28430
|
-
|
|
28431
|
-
|
|
28432
|
-
|
|
28433
|
-
|
|
28434
|
-
|
|
28435
|
-
|
|
28436
|
-
|
|
28437
|
-
|
|
28438
|
-
|
|
28439
|
-
|
|
28440
|
-
|
|
28441
|
-
|
|
28442
|
-
|
|
28443
|
-
|
|
28444
|
-
|
|
28445
|
-
|
|
28446
|
-
|
|
28447
|
-
|
|
28448
|
-
|
|
28449
|
-
|
|
28450
|
-
|
|
28451
|
-
|
|
28452
|
-
|
|
28453
|
-
|
|
28454
|
-
|
|
28455
|
-
|
|
28456
|
-
|
|
28457
|
-
|
|
28458
|
-
|
|
28459
|
-
|
|
28460
|
-
|
|
28461
|
-
|
|
28462
|
-
|
|
28463
|
-
|
|
28464
|
-
|
|
28465
|
-
|
|
28466
|
-
|
|
28467
|
-
|
|
28468
|
-
|
|
28469
|
-
|
|
28470
|
-
|
|
28471
|
-
|
|
28472
|
-
|
|
28473
|
-
|
|
28474
|
-
|
|
28475
|
-
|
|
28476
|
-
|
|
28477
|
-
|
|
28478
|
-
|
|
28479
|
-
|
|
28658
|
+
AICC_SERVICE_SERVICE_PORT as a$,
|
|
28659
|
+
WORKFLOW_STEP_TASK_SCHEMA_ID as a0,
|
|
28660
|
+
WORKFLOW_MAP_SHARD_TASK_SCHEMA_ID as a1,
|
|
28661
|
+
WORKFLOW_THUNK_TASK_SCHEMA_ID as a2,
|
|
28662
|
+
WORKFLOW_SCHEDULE_TASK_SCHEMA_ID as a3,
|
|
28663
|
+
WORKFLOW_SEND_MESSAGE_TASK_SCHEMA_ID as a4,
|
|
28664
|
+
WORKFLOW_EXECUTE_RPC_TASK_SCHEMA_ID as a5,
|
|
28665
|
+
WORKFLOW_RUN_TARGET_TASK_SCHEMA_ID as a6,
|
|
28666
|
+
AGENT_DELEGATE_TASK_SCHEMA_ID as a7,
|
|
28667
|
+
HUMAN_INPUT_TASK_SCHEMA_ID as a8,
|
|
28668
|
+
OPENDAN_ASYNC_TOOL_TASK_SCHEMA_ID as a9,
|
|
28669
|
+
isTerminalTaskPhase as aA,
|
|
28670
|
+
TaskWaitReasonKind as aB,
|
|
28671
|
+
TaskOutcome as aC,
|
|
28672
|
+
TaskControlAction as aD,
|
|
28673
|
+
baselineTaskControlProfile as aE,
|
|
28674
|
+
DEFAULT_CHILD_CONTROL_POLICY as aF,
|
|
28675
|
+
TaskAction as aG,
|
|
28676
|
+
TaskGrantScope as aH,
|
|
28677
|
+
TaskDataScope as aI,
|
|
28678
|
+
StorageDomain as aJ,
|
|
28679
|
+
TaskEventType as aK,
|
|
28680
|
+
TaskManagerClient as aL,
|
|
28681
|
+
WORKFLOW_SERVICE_NAME as aM,
|
|
28682
|
+
WorkflowStepType as aN,
|
|
28683
|
+
WorkflowOutputMode as aO,
|
|
28684
|
+
WorkflowJoinMode as aP,
|
|
28685
|
+
WorkflowRetryFallback as aQ,
|
|
28686
|
+
WorkflowDefinitionStatus as aR,
|
|
28687
|
+
WorkflowRunStatus as aS,
|
|
28688
|
+
WorkflowNodeRunState as aT,
|
|
28689
|
+
WorkflowHumanActionKind as aU,
|
|
28690
|
+
WorkflowScheduledTaskStatus as aV,
|
|
28691
|
+
WorkflowScheduledTaskMisfirePolicy as aW,
|
|
28692
|
+
WorkflowScheduledTaskFireStatus as aX,
|
|
28693
|
+
WorkflowClient as aY,
|
|
28694
|
+
AICC_SERVICE_UNIQUE_ID as aZ,
|
|
28695
|
+
AICC_SERVICE_SERVICE_NAME as a_,
|
|
28696
|
+
OPENDAN_COMMAND_TASK_SCHEMA_ID as aa,
|
|
28697
|
+
TOOL_EXEC_BASH_TASK_SCHEMA_ID as ab,
|
|
28698
|
+
AICC_COMPUTE_TASK_SCHEMA_ID as ac,
|
|
28699
|
+
APP_INSTALL_TASK_SCHEMA_ID as ad,
|
|
28700
|
+
APP_UNINSTALL_TASK_SCHEMA_ID as ae,
|
|
28701
|
+
APP_START_TASK_SCHEMA_ID as af,
|
|
28702
|
+
APP_UPDATE_TASK_SCHEMA_ID as ag,
|
|
28703
|
+
APP_UPDATE_BATCH_TASK_SCHEMA_ID as ah,
|
|
28704
|
+
TASK_ERR_NOT_FOUND as ai,
|
|
28705
|
+
TASK_ERR_PERMISSION_DENIED as aj,
|
|
28706
|
+
TASK_ERR_REVISION_CONFLICT as ak,
|
|
28707
|
+
TASK_ERR_STALE_RUNNER_EPOCH as al,
|
|
28708
|
+
TASK_ERR_INVALID_PHASE as am,
|
|
28709
|
+
TASK_ERR_CONTROL_NOT_AVAILABLE as an,
|
|
28710
|
+
TASK_ERR_CONTROL_ALREADY_PENDING as ao,
|
|
28711
|
+
TASK_ERR_ALREADY_COMPLETED as ap,
|
|
28712
|
+
TASK_ERR_INPUT_SCHEMA_MISMATCH as aq,
|
|
28713
|
+
TASK_ERR_RESULT_SCHEMA_MISMATCH as ar,
|
|
28714
|
+
TASK_ERR_IDEMPOTENCY_CONFLICT as as,
|
|
28715
|
+
TASK_ERR_SCHEMA_NOT_FOUND as at,
|
|
28716
|
+
TASK_MGR_ERROR_CODES as au,
|
|
28717
|
+
taskMgrTaskEventPath as av,
|
|
28718
|
+
taskMgrTreeEventPath as aw,
|
|
28719
|
+
taskMgrErrorCode as ax,
|
|
28720
|
+
TaskExecutorKind as ay,
|
|
28721
|
+
TaskPhase as az,
|
|
28480
28722
|
bns_client as b,
|
|
28481
|
-
|
|
28482
|
-
|
|
28483
|
-
|
|
28484
|
-
|
|
28485
|
-
|
|
28486
|
-
|
|
28487
|
-
|
|
28488
|
-
|
|
28489
|
-
|
|
28490
|
-
|
|
28491
|
-
|
|
28492
|
-
|
|
28493
|
-
|
|
28723
|
+
AICC_AI_METHODS as b0,
|
|
28724
|
+
AICC_CORE_METHODS as b1,
|
|
28725
|
+
AICC_MANAGEMENT_METHODS as b2,
|
|
28726
|
+
AICC_METHODS as b3,
|
|
28727
|
+
AICC_FEATURES as b4,
|
|
28728
|
+
AICC_EXECUTION_MODES as b5,
|
|
28729
|
+
isAiccAiMethod as b6,
|
|
28730
|
+
aiccTextMessage as b7,
|
|
28731
|
+
aiccMessageTextContent as b8,
|
|
28732
|
+
aiccMessageFirstText as b9,
|
|
28733
|
+
validateAiccMessage as ba,
|
|
28734
|
+
AiccClient as bb,
|
|
28735
|
+
decisionRequirements as bc,
|
|
28736
|
+
validateDecisionRequest as bd,
|
|
28737
|
+
validateDecisionAnswers as be,
|
|
28738
|
+
KEventReader as bf,
|
|
28739
|
+
KEventClient as bg,
|
|
28740
|
+
appIdFromDid as bh,
|
|
28741
|
+
parseAppId as bi,
|
|
28742
|
+
appDidFromId as bj,
|
|
28743
|
+
createAppInstanceId as bk,
|
|
28744
|
+
parseAppInstanceId as bl,
|
|
28745
|
+
BNS_EVM_DEFAULT_GAS_LIMIT as bm,
|
|
28746
|
+
BNS_EVM_DEFAULT_MAX_FEE_PER_GAS as bn,
|
|
28747
|
+
BNS_EVM_DEFAULT_MAX_PRIORITY_FEE_PER_GAS as bo,
|
|
28748
|
+
BNS_MAX_INLINE_DOCUMENT_BYTES as bp,
|
|
28749
|
+
BNS_DNS_TXT_DEFAULT_TTL as bq,
|
|
28750
|
+
BNS_DNS_TXT_DOC_TYPE as br,
|
|
28751
|
+
BNS_PUBLISH_DOCUMENT_ABI as bs,
|
|
28752
|
+
BnsEvmTxError as bt,
|
|
28753
|
+
BnsEvmTxBuilder as bu,
|
|
28754
|
+
decodeBnsPublishDocumentCalldata as bv,
|
|
28755
|
+
BnsTxExecutorError as bw,
|
|
28756
|
+
walletUserHasSnAccount as bx,
|
|
28757
|
+
BnsTxExecutor as by,
|
|
28494
28758
|
createSDKModule as c,
|
|
28495
28759
|
BS_SERVICE_TASK_MANAGER as d,
|
|
28496
28760
|
getActiveRuntimeType as e,
|
|
@@ -28503,17 +28767,17 @@ export {
|
|
|
28503
28767
|
mailboxResource as l,
|
|
28504
28768
|
mailboxAddress as m,
|
|
28505
28769
|
ndm_client as n,
|
|
28506
|
-
|
|
28770
|
+
NOTIFY_DELIVERED_INTENT as o,
|
|
28507
28771
|
parseSessionTokenClaims as p,
|
|
28508
|
-
|
|
28772
|
+
NOTIFY_DATA_VERSION as q,
|
|
28509
28773
|
resolveDidFromHost as r,
|
|
28510
28774
|
sn_client as s,
|
|
28511
|
-
|
|
28512
|
-
|
|
28513
|
-
|
|
28514
|
-
|
|
28515
|
-
|
|
28516
|
-
|
|
28517
|
-
|
|
28775
|
+
NOTIFY_SESSION_PREFIX as t,
|
|
28776
|
+
NOTIFY_CHOICE_CONTROL_ID as u,
|
|
28777
|
+
NOTIFY_TEXT_CONTROL_ID as v,
|
|
28778
|
+
NOTIFY_ACTION_ANSWER as w,
|
|
28779
|
+
NOTIFY_ACTION_DISMISS as x,
|
|
28780
|
+
NOTIFY_LINK_PATH as y,
|
|
28781
|
+
isNotifyClosed as z
|
|
28518
28782
|
};
|
|
28519
|
-
//# sourceMappingURL=ndm_proxy-
|
|
28783
|
+
//# sourceMappingURL=ndm_proxy-a167f2a4.mjs.map
|