buckyos 0.7.169 → 0.7.175
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/argv.ts +45 -239
- package/cli/core/command.ts +3 -35
- package/cli/dist/cli.mjs +2151 -673
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/agent.ts +3 -1
- package/cli/modules/app.ts +13 -2
- package/cli/modules/pikg.ts +70 -1
- package/cli/modules/runtime.ts +497 -0
- package/cli/modules/skill.ts +583 -161
- package/cli/modules/skill_lint.ts +462 -0
- package/cli/version.ts +1 -1
- package/dist/account-7a7bde6f.mjs +105 -0
- package/dist/account-7a7bde6f.mjs.map +1 -0
- package/dist/account-b12ac6b9.js +2 -0
- package/dist/account-b12ac6b9.js.map +1 -0
- package/dist/aicc-67851c41.mjs +582 -0
- package/dist/aicc-67851c41.mjs.map +1 -0
- package/dist/aicc-ccb36ef7.js +2 -0
- package/dist/aicc-ccb36ef7.js.map +1 -0
- package/dist/app-frame.cjs +1 -1
- package/dist/app-frame.cjs.map +1 -1
- package/dist/app-frame.mjs +1 -0
- package/dist/app-frame.mjs.map +1 -1
- package/dist/browser.cjs +1 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +3 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.mjs +223 -212
- package/dist/browser.mjs.map +1 -1
- package/dist/content.cjs +1 -1
- package/dist/content.cjs.map +1 -1
- package/dist/content.d.ts +2 -1
- package/dist/content.d.ts.map +1 -1
- package/dist/content.mjs +32 -167
- package/dist/content.mjs.map +1 -1
- package/dist/content_mime-dc80d960.js +2 -0
- package/dist/content_mime-dc80d960.js.map +1 -0
- package/dist/content_mime-e42d5f8d.mjs +335 -0
- package/dist/content_mime-e42d5f8d.mjs.map +1 -0
- package/dist/content_mime.d.ts +18 -0
- package/dist/content_mime.d.ts.map +1 -1
- package/dist/did_object_client-6a1b108a.js +2 -0
- package/dist/did_object_client-6a1b108a.js.map +1 -0
- package/dist/did_object_client-7fa36f90.mjs +87 -0
- package/dist/did_object_client-7fa36f90.mjs.map +1 -0
- package/dist/did_object_client.d.ts +39 -0
- package/dist/did_object_client.d.ts.map +1 -0
- package/dist/{executor_client-a32bc377.mjs → executor_client-c620d25c.mjs} +1794 -844
- package/dist/executor_client-c620d25c.mjs.map +1 -0
- package/dist/executor_client-d4439d54.js +13 -0
- package/dist/executor_client-d4439d54.js.map +1 -0
- package/dist/executor_client.d.ts +129 -0
- package/dist/executor_client.d.ts.map +1 -1
- package/dist/file_meta.d.ts +26 -0
- package/dist/file_meta.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +228 -217
- package/dist/index.mjs.map +1 -1
- package/dist/internal/command_args.d.ts +67 -0
- package/dist/internal/command_args.d.ts.map +1 -0
- package/dist/krpc_client-26c2dc8b.js +2 -0
- package/dist/krpc_client-26c2dc8b.js.map +1 -0
- package/dist/krpc_client-673448e5.mjs +173 -0
- package/dist/krpc_client-673448e5.mjs.map +1 -0
- package/dist/krpc_client.d.ts +5 -1
- package/dist/krpc_client.d.ts.map +1 -1
- package/dist/msg_center_client.d.ts +2 -1
- package/dist/msg_center_client.d.ts.map +1 -1
- package/dist/namelib.d.ts.map +1 -1
- package/dist/ndm_client.d.ts +7 -0
- package/dist/ndm_client.d.ts.map +1 -1
- package/dist/ndn.d.ts +3 -0
- package/dist/ndn.d.ts.map +1 -0
- package/dist/{namelib-b41b10cc.mjs → ndn_types-0fac2499.mjs} +3096 -2816
- package/dist/ndn_types-0fac2499.mjs.map +1 -0
- package/dist/ndn_types-5b138882.js +2 -0
- package/dist/ndn_types-5b138882.js.map +1 -0
- package/dist/ndn_types.d.ts +268 -16
- package/dist/ndn_types.d.ts.map +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/node.mjs +220 -212
- package/dist/node.mjs.map +1 -1
- package/dist/object_url-8fb5a7bf.js +2 -0
- package/dist/object_url-8fb5a7bf.js.map +1 -0
- package/dist/object_url-f72c1704.mjs +412 -0
- package/dist/object_url-f72c1704.mjs.map +1 -0
- package/dist/openai-ae2978de.mjs +163 -0
- package/dist/openai-ae2978de.mjs.map +1 -0
- package/dist/openai-f560d518.js +2 -0
- package/dist/openai-f560d518.js.map +1 -0
- package/dist/provision.cjs +6 -6
- package/dist/provision.cjs.map +1 -1
- package/dist/provision.d.ts +1 -2
- package/dist/provision.d.ts.map +1 -1
- package/dist/provision.mjs +4 -31
- package/dist/provision.mjs.map +1 -1
- package/dist/repo_client.d.ts +2 -1
- package/dist/repo_client.d.ts.map +1 -1
- package/dist/site_manager-11a7a468.mjs +6410 -0
- package/dist/site_manager-11a7a468.mjs.map +1 -0
- package/dist/site_manager-334b1a51.js +2 -0
- package/dist/site_manager-334b1a51.js.map +1 -0
- package/dist/{tus_client-4f7254e9.js → tus_client-809c90ab.js} +2 -2
- package/dist/{tus_client-4f7254e9.js.map → tus_client-809c90ab.js.map} +1 -1
- package/dist/{tus_client-04080b1e.mjs → tus_client-893a3287.mjs} +2 -2
- package/dist/{tus_client-04080b1e.mjs.map → tus_client-893a3287.mjs.map} +1 -1
- package/dist/xllm/core/action_parser.d.ts +15 -0
- package/dist/xllm/core/action_parser.d.ts.map +1 -0
- package/dist/xllm/core/behavior_loop.d.ts +20 -0
- package/dist/xllm/core/behavior_loop.d.ts.map +1 -0
- package/dist/xllm/core/behavior_result.d.ts +11 -0
- package/dist/xllm/core/behavior_result.d.ts.map +1 -0
- package/dist/xllm/core/config.d.ts +62 -0
- package/dist/xllm/core/config.d.ts.map +1 -0
- package/dist/xllm/core/context_window.d.ts +15 -0
- package/dist/xllm/core/context_window.d.ts.map +1 -0
- package/dist/xllm/core/deps.d.ts +97 -0
- package/dist/xllm/core/deps.d.ts.map +1 -0
- package/dist/xllm/core/errors.d.ts +94 -0
- package/dist/xllm/core/errors.d.ts.map +1 -0
- package/dist/xllm/core/interrupt.d.ts +31 -0
- package/dist/xllm/core/interrupt.d.ts.map +1 -0
- package/dist/xllm/core/json.d.ts +11 -0
- package/dist/xllm/core/json.d.ts.map +1 -0
- package/dist/xllm/core/json_check.d.ts +17 -0
- package/dist/xllm/core/json_check.d.ts.map +1 -0
- package/dist/xllm/core/loop.d.ts +135 -0
- package/dist/xllm/core/loop.d.ts.map +1 -0
- package/dist/xllm/core/messages.d.ts +18 -0
- package/dist/xllm/core/messages.d.ts.map +1 -0
- package/dist/xllm/core/observer.d.ts +14 -0
- package/dist/xllm/core/observer.d.ts.map +1 -0
- package/dist/xllm/core/open_runtime.d.ts +22 -0
- package/dist/xllm/core/open_runtime.d.ts.map +1 -0
- package/dist/xllm/core/prepare.d.ts +54 -0
- package/dist/xllm/core/prepare.d.ts.map +1 -0
- package/dist/xllm/core/prompt.d.ts +40 -0
- package/dist/xllm/core/prompt.d.ts.map +1 -0
- package/dist/xllm/core/protocol.d.ts +15 -0
- package/dist/xllm/core/protocol.d.ts.map +1 -0
- package/dist/xllm/core/result.d.ts +12 -0
- package/dist/xllm/core/result.d.ts.map +1 -0
- package/dist/xllm/core/run.d.ts +198 -0
- package/dist/xllm/core/run.d.ts.map +1 -0
- package/dist/xllm/core/rust_text.d.ts +20 -0
- package/dist/xllm/core/rust_text.d.ts.map +1 -0
- package/dist/xllm/core/site_policy.d.ts +5 -0
- package/dist/xllm/core/site_policy.d.ts.map +1 -0
- package/dist/xllm/core/store.d.ts +60 -0
- package/dist/xllm/core/store.d.ts.map +1 -0
- package/dist/xllm/core/suspension.d.ts +13 -0
- package/dist/xllm/core/suspension.d.ts.map +1 -0
- package/dist/xllm/core/tokenizer.d.ts +8 -0
- package/dist/xllm/core/tokenizer.d.ts.map +1 -0
- package/dist/xllm/core/types.d.ts +826 -0
- package/dist/xllm/core/types.d.ts.map +1 -0
- package/dist/xllm/core/xml.d.ts +19 -0
- package/dist/xllm/core/xml.d.ts.map +1 -0
- package/dist/xllm/dev/openai.d.ts +17 -0
- package/dist/xllm/dev/openai.d.ts.map +1 -0
- package/dist/xllm/dev/scripted.d.ts +46 -0
- package/dist/xllm/dev/scripted.d.ts.map +1 -0
- package/dist/xllm/dev.d.ts +5 -0
- package/dist/xllm/dev.d.ts.map +1 -0
- package/dist/xllm/hosts/browser/store.d.ts +41 -0
- package/dist/xllm/hosts/browser/store.d.ts.map +1 -0
- package/dist/xllm/hosts/deno/deno_api.d.ts +103 -0
- package/dist/xllm/hosts/deno/deno_api.d.ts.map +1 -0
- package/dist/xllm/hosts/deno/identity.d.ts +29 -0
- package/dist/xllm/hosts/deno/identity.d.ts.map +1 -0
- package/dist/xllm/hosts/deno/index.d.ts +47 -0
- package/dist/xllm/hosts/deno/index.d.ts.map +1 -0
- package/dist/xllm/hosts/deno/native_runtime.d.ts +93 -0
- package/dist/xllm/hosts/deno/native_runtime.d.ts.map +1 -0
- package/dist/xllm/hosts/deno/native_tools.d.ts +105 -0
- package/dist/xllm/hosts/deno/native_tools.d.ts.map +1 -0
- package/dist/xllm/hosts/deno/provider.d.ts +13 -0
- package/dist/xllm/hosts/deno/provider.d.ts.map +1 -0
- package/dist/xllm/hosts/deno/store.d.ts +60 -0
- package/dist/xllm/hosts/deno/store.d.ts.map +1 -0
- package/dist/xllm/index.d.ts +48 -0
- package/dist/xllm/index.d.ts.map +1 -0
- package/dist/xllm/providers/aicc.d.ts +22 -0
- package/dist/xllm/providers/aicc.d.ts.map +1 -0
- package/dist/xllm/providers/timeout.d.ts +12 -0
- package/dist/xllm/providers/timeout.d.ts.map +1 -0
- package/dist/xllm/runtime/compress.d.ts +149 -0
- package/dist/xllm/runtime/compress.d.ts.map +1 -0
- package/dist/xllm/runtime/did_object_resources.d.ts +21 -0
- package/dist/xllm/runtime/did_object_resources.d.ts.map +1 -0
- package/dist/xllm/runtime/hints.d.ts +23 -0
- package/dist/xllm/runtime/hints.d.ts.map +1 -0
- package/dist/xllm/runtime/site.d.ts +22 -0
- package/dist/xllm/runtime/site.d.ts.map +1 -0
- package/dist/xllm/runtime/site_manager.d.ts +38 -0
- package/dist/xllm/runtime/site_manager.d.ts.map +1 -0
- package/dist/xllm/runtime/site_tools.d.ts +76 -0
- package/dist/xllm/runtime/site_tools.d.ts.map +1 -0
- package/dist/xllm/runtime/step_renderer.d.ts +54 -0
- package/dist/xllm/runtime/step_renderer.d.ts.map +1 -0
- package/dist/xllm/runtime/task_model.d.ts +64 -0
- package/dist/xllm/runtime/task_model.d.ts.map +1 -0
- package/dist/xllm/runtime/tool_result.d.ts +39 -0
- package/dist/xllm/runtime/tool_result.d.ts.map +1 -0
- package/dist/xllm/runtime/types.d.ts +99 -0
- package/dist/xllm/runtime/types.d.ts.map +1 -0
- package/dist/xllm.cjs +2 -0
- package/dist/xllm.cjs.map +1 -0
- package/dist/xllm.mjs +1167 -0
- package/dist/xllm.mjs.map +1 -0
- package/dist/xllm_deno.cjs +2 -0
- package/dist/xllm_deno.cjs.map +1 -0
- package/dist/xllm_deno.mjs +2487 -0
- package/dist/xllm_deno.mjs.map +1 -0
- package/dist/xllm_dev.cjs +2 -0
- package/dist/xllm_dev.cjs.map +1 -0
- package/dist/xllm_dev.mjs +70 -0
- package/dist/xllm_dev.mjs.map +1 -0
- package/package.json +22 -1
- package/src/internal/command_args.ts +268 -0
- package/dist/executor_client-a32bc377.mjs.map +0 -1
- package/dist/executor_client-e026942b.js +0 -13
- package/dist/executor_client-e026942b.js.map +0 -1
- package/dist/namelib-b41b10cc.mjs.map +0 -1
- package/dist/namelib-f8ff0045.js +0 -2
- package/dist/namelib-f8ff0045.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { c as createSDKModule } from "./executor_client-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { c as createSDKModule } from "./executor_client-c620d25c.mjs";
|
|
2
|
+
import { a9, aL, bG, aQ, bH, bM, bL, bI, bK, bN, bJ, bE, bF, bD, ct, ac, aR, am, al, an, ao, aT, aS, aV, aU, cx, bU, cu, cc, cd, c8, c9, ca, cb, ce, f, B, cg, cf, ck, ci, k, co, cn, cm, cl, a1, a0, $, _, bh, ag, a8, aB, E, cp, cs, cq, Y, aA, aM, ah, c2, c1, q, M, A, C, y, w, v, N, D, x, z, aN, aO, az, l, R, aC, bl, S, b1, b0, a$, b4, b2, a_, aW, aX, b3, aY, b5, aZ, aw, ax, av, b6, ay, aP, bi, bf, bk, bm, ba, bj, bn, be, bb, bd, a4, a3, V, W, a2, aJ, aF, aK, aD, aH, aI, bo, aE, aG, bC, bv, bp, by, bt, bx, bs, bq, bu, bw, bB, bA, bz, br, Z, ab, bS, bR, bO, bQ, cv, U, c5, c3, bg, b, e, ak, T, au, a5, a6, c6, bV, ch, cr, h, j, i, g, af, ae, I, bP, o, F, bc, a7, aq, ap, at, t, u, P, a, d, n, ai, K, H, G, Q, O, aa, cw, c4, c7, ar, ad, p, bY, m, J, as, r, s, b9, b7, b8, bT, bX, bW, L, b$, b_, bZ, c0, X, cj, aj } from "./executor_client-c620d25c.mjs";
|
|
3
|
+
import { h as h2 } from "./account-7a7bde6f.mjs";
|
|
4
|
+
import { a as a10, D as D2, N as N2, r as r2, q as q2, g as g2, j as j2, f as f2, c, e as e2, b as b10, d as d2, k as k2, h as h3, i as i2, n as n2, o as o2, m as m2, l as l2, p as p2 } from "./ndn_types-0fac2499.mjs";
|
|
4
5
|
import { AIWS_BUILD_STATE_FILE, AIWS_COMPONENT_FILE, AIWS_COMPOSITION_FILE, AIWS_DECLARATIVE_API_VERSION, AIWS_HTML_API_VERSION, AIWS_MANIFEST_FILE, AIWS_MANIFEST_VERSION, AIWS_MAX_INLINE_BYTES, AIWS_MAX_SOURCE_FILES, AIWS_TEMPLATE_FORMAT, AiwsSourceError, aiwsContentDigest, aiwsTemplateDigest, buildControl, buildFiles, checkComponent, checkComposition, checkDeclarative, collectSources, compatManifest, controlSkeleton, createControlSource, ensureFolder, exportBundle, findFolder, folderName, hasControlSource, homeControlDir, homeExportDir, isSourcePath, joinPath, packBuildFiles, pullControl, readBuildState, slotCells, sourceStateKey, sourcesDigest, sourcesKey, templateDir, unbuiltChanges, verifyBundle, watchControl, writeBuildState, writeHomeFile, writeSourceFile } from "./aiws_ext.mjs";
|
|
6
|
+
import { o as o3 } from "./object_url-f72c1704.mjs";
|
|
7
|
+
import { D as D3, a as a11 } from "./did_object_client-7fa36f90.mjs";
|
|
8
|
+
import { R as R2 } from "./krpc_client-673448e5.mjs";
|
|
9
|
+
import "./content_mime-e42d5f8d.mjs";
|
|
5
10
|
const sdkModule = createSDKModule("universal");
|
|
6
11
|
const buckyos = sdkModule.buckyos;
|
|
7
12
|
const initBuckyOS = sdkModule.initBuckyOS;
|
|
@@ -44,21 +49,21 @@ const getMsgQueueClient = sdkModule.getMsgQueueClient;
|
|
|
44
49
|
const getMsgCenterClient = sdkModule.getMsgCenterClient;
|
|
45
50
|
const getRepoClient = sdkModule.getRepoClient;
|
|
46
51
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
a9 as ACCESS_DENIED_ERROR_CODE,
|
|
53
|
+
aL as AGENT_DELEGATE_TASK_SCHEMA_ID,
|
|
54
|
+
bG as AICC_AI_METHODS,
|
|
55
|
+
aQ as AICC_COMPUTE_TASK_SCHEMA_ID,
|
|
56
|
+
bH as AICC_CORE_METHODS,
|
|
57
|
+
bM as AICC_EXECUTION_MODES,
|
|
58
|
+
bL as AICC_FEATURES,
|
|
59
|
+
bI as AICC_MANAGEMENT_METHODS,
|
|
60
|
+
bK as AICC_METHODS,
|
|
61
|
+
bN as AICC_POLICY_REFUSAL_CODES,
|
|
62
|
+
bJ as AICC_QUOTA_METHODS,
|
|
63
|
+
bE as AICC_SERVICE_SERVICE_NAME,
|
|
64
|
+
bF as AICC_SERVICE_SERVICE_PORT,
|
|
65
|
+
bD as AICC_SERVICE_UNIQUE_ID,
|
|
66
|
+
ct as AIWORKSPACE_SERVICE_NAME,
|
|
62
67
|
AIWS_BUILD_STATE_FILE,
|
|
63
68
|
AIWS_COMPONENT_FILE,
|
|
64
69
|
AIWS_COMPOSITION_FILE,
|
|
@@ -69,177 +74,183 @@ export {
|
|
|
69
74
|
AIWS_MAX_INLINE_BYTES,
|
|
70
75
|
AIWS_MAX_SOURCE_FILES,
|
|
71
76
|
AIWS_TEMPLATE_FORMAT,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
ac as ANONYMOUS_IDENTITY,
|
|
78
|
+
aR as APP_INSTALL_TASK_SCHEMA_ID,
|
|
79
|
+
am as APP_LOGIN_EXCHANGE_METHOD,
|
|
80
|
+
al as APP_LOGIN_ISSUE_METHOD,
|
|
81
|
+
an as APP_LOGIN_SETTINGS_GET_METHOD,
|
|
82
|
+
ao as APP_LOGIN_SETTINGS_SET_METHOD,
|
|
83
|
+
aT as APP_START_TASK_SCHEMA_ID,
|
|
84
|
+
aS as APP_UNINSTALL_TASK_SCHEMA_ID,
|
|
85
|
+
aV as APP_UPDATE_BATCH_TASK_SCHEMA_ID,
|
|
86
|
+
aU as APP_UPDATE_TASK_SCHEMA_ID,
|
|
87
|
+
cx as AiWorkspaceClient,
|
|
88
|
+
bU as AiccClient,
|
|
89
|
+
cu as AiwsFailure,
|
|
85
90
|
AiwsSourceError,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
cc as BNS_DNS_TXT_DEFAULT_TTL,
|
|
92
|
+
cd as BNS_DNS_TXT_DOC_TYPE,
|
|
93
|
+
c8 as BNS_EVM_DEFAULT_GAS_LIMIT,
|
|
94
|
+
c9 as BNS_EVM_DEFAULT_MAX_FEE_PER_GAS,
|
|
95
|
+
ca as BNS_EVM_DEFAULT_MAX_PRIORITY_FEE_PER_GAS,
|
|
96
|
+
cb as BNS_MAX_INLINE_DOCUMENT_BYTES,
|
|
97
|
+
ce as BNS_PUBLISH_DOCUMENT_ABI,
|
|
98
|
+
f as BS_SERVICE_TASK_MANAGER,
|
|
94
99
|
B as BS_SERVICE_VERIFY_HUB,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
cg as BnsEvmTxBuilder,
|
|
101
|
+
cf as BnsEvmTxError,
|
|
102
|
+
ck as BnsTxExecutor,
|
|
103
|
+
ci as BnsTxExecutorError,
|
|
104
|
+
k as BuckyOSSDK,
|
|
105
|
+
co as COMPUTER_ELEMENT_ACTIONS,
|
|
106
|
+
cn as COMPUTER_ELEMENT_STATES,
|
|
107
|
+
cm as COMPUTER_ROLES,
|
|
108
|
+
cl as COMPUTER_SEMANTIC_FORMAT,
|
|
109
|
+
a1 as CONTACT_CHANGED_EVENT_PATTERN,
|
|
110
|
+
a0 as CONTACT_TAG_HOMESTATION_FOLLOWING,
|
|
111
|
+
$ as CONTACT_TAG_ZONE_AGENT,
|
|
112
|
+
_ as CONTACT_TAG_ZONE_USER,
|
|
113
|
+
bh as DEFAULT_CHILD_CONTROL_POLICY,
|
|
114
|
+
ag as DEFAULT_JUMP_BASE_URL,
|
|
115
|
+
a8 as DENY_REASONS,
|
|
116
|
+
D3 as DIDObjectClient,
|
|
117
|
+
a11 as DIDObjectError,
|
|
118
|
+
a10 as DID_OBJECT_SERVICE_ID,
|
|
108
119
|
D2 as DID_OBJECT_SERVICE_TYPE,
|
|
109
|
-
|
|
120
|
+
aB as DOWNLOAD_TASK_SCHEMA_ID,
|
|
110
121
|
E as EXTERNAL_PRINCIPAL_CLAIM,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
cp as ExecutorClient,
|
|
123
|
+
cs as ExecutorCommandStream,
|
|
124
|
+
cq as ExecutorStreamError,
|
|
125
|
+
Y as FRIEND_INTENT,
|
|
126
|
+
aA as HUMAN_APPROVAL_SCHEMA_ID,
|
|
127
|
+
aM as HUMAN_INPUT_TASK_SCHEMA_ID,
|
|
128
|
+
ah as JUMP_ACTION_PATHS,
|
|
129
|
+
c2 as KEventClient,
|
|
130
|
+
c1 as KEventReader,
|
|
131
|
+
q as MsgCenterClient,
|
|
121
132
|
M as MsgQueueClient,
|
|
122
133
|
N2 as NODE_IDENTITY_SCHEMA_V2,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
134
|
+
A as NOTIFY_ACTION_ANSWER,
|
|
135
|
+
C as NOTIFY_ACTION_DISMISS,
|
|
136
|
+
y as NOTIFY_CHOICE_CONTROL_ID,
|
|
137
|
+
w as NOTIFY_DATA_VERSION,
|
|
138
|
+
v as NOTIFY_DELIVERED_INTENT,
|
|
128
139
|
N as NOTIFY_INTENT,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
140
|
+
D as NOTIFY_LINK_PATH,
|
|
141
|
+
x as NOTIFY_SESSION_PREFIX,
|
|
142
|
+
z as NOTIFY_TEXT_CONTROL_ID,
|
|
143
|
+
aN as OPENDAN_ASYNC_TOOL_TASK_SCHEMA_ID,
|
|
144
|
+
aO as OPENDAN_COMMAND_TASK_SCHEMA_ID,
|
|
145
|
+
az as RAW_TASK_SCHEMA_ID,
|
|
146
|
+
R2 as RPCError,
|
|
147
|
+
l as RepoClient,
|
|
137
148
|
R as RuntimeType,
|
|
138
|
-
|
|
139
|
-
|
|
149
|
+
aC as SCHEDULER_DISPATCH_THUNK_TASK_SCHEMA_ID,
|
|
150
|
+
bl as StorageDomain,
|
|
140
151
|
S as SystemConfigClient,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
152
|
+
b1 as TASK_ERR_ALREADY_COMPLETED,
|
|
153
|
+
b0 as TASK_ERR_CONTROL_ALREADY_PENDING,
|
|
154
|
+
a$ as TASK_ERR_CONTROL_NOT_AVAILABLE,
|
|
155
|
+
b4 as TASK_ERR_IDEMPOTENCY_CONFLICT,
|
|
156
|
+
b2 as TASK_ERR_INPUT_SCHEMA_MISMATCH,
|
|
157
|
+
a_ as TASK_ERR_INVALID_PHASE,
|
|
158
|
+
aW as TASK_ERR_NOT_FOUND,
|
|
159
|
+
aX as TASK_ERR_PERMISSION_DENIED,
|
|
160
|
+
b3 as TASK_ERR_RESULT_SCHEMA_MISMATCH,
|
|
161
|
+
aY as TASK_ERR_REVISION_CONFLICT,
|
|
162
|
+
b5 as TASK_ERR_SCHEMA_NOT_FOUND,
|
|
163
|
+
aZ as TASK_ERR_STALE_RUNNER_EPOCH,
|
|
164
|
+
aw as TASK_MANAGER_SERVICE_NAME,
|
|
165
|
+
ax as TASK_MANAGER_SERVICE_PORT,
|
|
166
|
+
av as TASK_MANAGER_SERVICE_UNIQUE_ID,
|
|
167
|
+
b6 as TASK_MGR_ERROR_CODES,
|
|
168
|
+
ay as TASK_POLICY_PRESET_COLLABORATIVE_TREE_V1,
|
|
169
|
+
aP as TOOL_EXEC_BASH_TASK_SCHEMA_ID,
|
|
170
|
+
bi as TaskAction,
|
|
171
|
+
bf as TaskControlAction,
|
|
172
|
+
bk as TaskDataScope,
|
|
173
|
+
bm as TaskEventType,
|
|
174
|
+
ba as TaskExecutorKind,
|
|
175
|
+
bj as TaskGrantScope,
|
|
176
|
+
bn as TaskManagerClient,
|
|
177
|
+
be as TaskOutcome,
|
|
178
|
+
bb as TaskPhase,
|
|
179
|
+
bd as TaskWaitReasonKind,
|
|
180
|
+
a4 as USER_GROUP_REF_PREFIX,
|
|
181
|
+
a3 as USER_TYPE_GROUP_REF_PREFIX,
|
|
171
182
|
V as VerifyHubClient,
|
|
172
183
|
W as WEB3_BRIDGE_HOST,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
184
|
+
a2 as WELL_KNOWN_CONTACT_TAGS,
|
|
185
|
+
aJ as WORKFLOW_EXECUTE_RPC_TASK_SCHEMA_ID,
|
|
186
|
+
aF as WORKFLOW_MAP_SHARD_TASK_SCHEMA_ID,
|
|
187
|
+
aK as WORKFLOW_RUN_TARGET_TASK_SCHEMA_ID,
|
|
188
|
+
aD as WORKFLOW_RUN_TREE_TASK_SCHEMA_ID,
|
|
189
|
+
aH as WORKFLOW_SCHEDULE_TASK_SCHEMA_ID,
|
|
190
|
+
aI as WORKFLOW_SEND_MESSAGE_TASK_SCHEMA_ID,
|
|
191
|
+
bo as WORKFLOW_SERVICE_NAME,
|
|
192
|
+
aE as WORKFLOW_STEP_TASK_SCHEMA_ID,
|
|
193
|
+
aG as WORKFLOW_THUNK_TASK_SCHEMA_ID,
|
|
194
|
+
bC as WorkflowClient,
|
|
195
|
+
bv as WorkflowDefinitionStatus,
|
|
196
|
+
bp as WorkflowErrorCode,
|
|
197
|
+
by as WorkflowHumanActionKind,
|
|
198
|
+
bt as WorkflowJoinMode,
|
|
199
|
+
bx as WorkflowNodeRunState,
|
|
200
|
+
bs as WorkflowOutputMode,
|
|
201
|
+
bq as WorkflowRequestError,
|
|
202
|
+
bu as WorkflowRetryFallback,
|
|
203
|
+
bw as WorkflowRunStatus,
|
|
204
|
+
bB as WorkflowScheduledTaskFireStatus,
|
|
205
|
+
bA as WorkflowScheduledTaskMisfirePolicy,
|
|
206
|
+
bz as WorkflowScheduledTaskStatus,
|
|
207
|
+
br as WorkflowStepType,
|
|
197
208
|
Z as ZONE_USER_TYPES,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
209
|
+
ab as accessDenialOf,
|
|
210
|
+
bS as aiccMessageFirstText,
|
|
211
|
+
bR as aiccMessageTextContent,
|
|
212
|
+
bO as aiccRefusalOf,
|
|
213
|
+
bQ as aiccTextMessage,
|
|
203
214
|
aiwsContentDigest,
|
|
204
|
-
|
|
215
|
+
cv as aiwsReferenceUrl,
|
|
205
216
|
aiwsTemplateDigest,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
217
|
+
U as answerNotify,
|
|
218
|
+
c5 as appDidFromId,
|
|
219
|
+
c3 as appIdFromDid,
|
|
209
220
|
attachEvent,
|
|
210
|
-
|
|
221
|
+
bg as baselineTaskControlProfile,
|
|
211
222
|
b as bns,
|
|
212
|
-
|
|
223
|
+
e as bucket,
|
|
213
224
|
buckyos,
|
|
214
225
|
buildControl,
|
|
215
226
|
buildFiles,
|
|
216
|
-
|
|
227
|
+
ak as buildJumpUrl,
|
|
217
228
|
checkComponent,
|
|
218
229
|
checkComposition,
|
|
219
230
|
checkDeclarative,
|
|
220
231
|
collectSources,
|
|
221
|
-
|
|
232
|
+
T as commitNotifyAnswer,
|
|
222
233
|
compatManifest,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
234
|
+
au as completeAppAccessTokenLogin,
|
|
235
|
+
a5 as contactTagApp,
|
|
236
|
+
a6 as contactTagKind,
|
|
226
237
|
controlSkeleton,
|
|
227
|
-
|
|
238
|
+
c6 as createAppInstanceId,
|
|
228
239
|
createControlSource,
|
|
229
240
|
createEventReader,
|
|
230
241
|
createSDKModule,
|
|
231
242
|
create_event_reader,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
243
|
+
bV as decisionRequirements,
|
|
244
|
+
ch as decodeBnsPublishDocumentCalldata,
|
|
245
|
+
cr as encodeExecutorControl,
|
|
235
246
|
ensureFolder,
|
|
236
247
|
exportBundle,
|
|
237
248
|
findFolder,
|
|
238
249
|
folderName,
|
|
239
250
|
getAccountInfo,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
251
|
+
h as getActiveRuntimeType,
|
|
252
|
+
j as getActiveSessionToken,
|
|
253
|
+
i as getActiveZoneGatewayOrigin,
|
|
243
254
|
getAiWorkspaceClient,
|
|
244
255
|
getAiccClient,
|
|
245
256
|
getAppDataDir,
|
|
@@ -252,8 +263,8 @@ export {
|
|
|
252
263
|
getCurrentIdentity,
|
|
253
264
|
getCurrentWalletUser,
|
|
254
265
|
g as getCurrentWalletUserFromHost,
|
|
255
|
-
|
|
256
|
-
|
|
266
|
+
r2 as getDidIdentifier,
|
|
267
|
+
q2 as getDidMethod,
|
|
257
268
|
getKEventClient,
|
|
258
269
|
getMsgCenterClient,
|
|
259
270
|
getMsgQueueClient,
|
|
@@ -270,67 +281,67 @@ export {
|
|
|
270
281
|
h2 as hashPassword,
|
|
271
282
|
homeControlDir,
|
|
272
283
|
homeExportDir,
|
|
273
|
-
|
|
274
|
-
|
|
284
|
+
af as identityAllows,
|
|
285
|
+
ae as identityKey,
|
|
275
286
|
initBuckyOS,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
I as inputPrompt,
|
|
288
|
+
bP as isAiccAiMethod,
|
|
289
|
+
g2 as isBuckyOSAgentDocument,
|
|
290
|
+
j2 as isBuckyOSDIDObjectCard,
|
|
291
|
+
f2 as isBuckyOSDeviceDocument,
|
|
292
|
+
c as isBuckyOSDeviceMiniDocument,
|
|
293
|
+
e2 as isBuckyOSLocalNodeIdentityConfig,
|
|
294
|
+
b10 as isBuckyOSOwnerDocument,
|
|
295
|
+
d2 as isBuckyOSZoneBootDocument,
|
|
296
|
+
k2 as isBuckyOSZoneConfig,
|
|
297
|
+
h3 as isBuckyOSZoneDocument,
|
|
298
|
+
o as isExternalPrincipal,
|
|
299
|
+
F as isNotifyClosed,
|
|
289
300
|
isSourcePath,
|
|
290
|
-
|
|
291
|
-
|
|
301
|
+
bc as isTerminalTaskPhase,
|
|
302
|
+
a7 as isUserGroupRefTag,
|
|
292
303
|
i2 as isW3CDIDDocumentBase,
|
|
293
|
-
|
|
294
|
-
|
|
304
|
+
aq as issueAppCustomerLink,
|
|
305
|
+
ap as issueAppLoginCode,
|
|
295
306
|
joinPath,
|
|
296
307
|
login,
|
|
297
|
-
|
|
308
|
+
at as loginByAppAccessToken,
|
|
298
309
|
loginByBrowserSSO,
|
|
299
310
|
loginByPassword,
|
|
300
311
|
loginByRuntimeSession,
|
|
301
312
|
logout,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
313
|
+
t as mailboxAddress,
|
|
314
|
+
u as mailboxResource,
|
|
315
|
+
P as msgMachineData,
|
|
305
316
|
n2 as namelib,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
317
|
+
a as ndm,
|
|
318
|
+
d as ndm_proxy,
|
|
319
|
+
n as ndn,
|
|
320
|
+
ai as normalizeZoneHostname,
|
|
321
|
+
K as notifyAnswerToTaskResult,
|
|
322
|
+
H as notifyCategoryFromSessionId,
|
|
323
|
+
G as notifyCategorySessionId,
|
|
324
|
+
Q as notifyMessageData,
|
|
325
|
+
O as notifyUrl,
|
|
326
|
+
o3 as objectUrl,
|
|
316
327
|
openExternalUrl,
|
|
317
328
|
packBuildFiles,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
329
|
+
aa as parseAccessDenial,
|
|
330
|
+
cw as parseAiwsReferenceUrl,
|
|
331
|
+
c4 as parseAppId,
|
|
332
|
+
c7 as parseAppInstanceId,
|
|
333
|
+
ar as parseAppLoginExchangeResult,
|
|
334
|
+
o2 as parseBuckyOSDIDDocument,
|
|
335
|
+
m2 as parseBuckyOSDeviceMiniDocument,
|
|
336
|
+
l2 as parseBuckyOSOwnerDocument,
|
|
337
|
+
ad as parseCurrentIdentity,
|
|
327
338
|
p as parseSessionTokenClaims,
|
|
328
|
-
|
|
339
|
+
bY as parseVideoPrompt,
|
|
329
340
|
p2 as parseW3CDIDDocumentBase,
|
|
330
|
-
|
|
331
|
-
|
|
341
|
+
m as parseZoneUserType,
|
|
342
|
+
J as promptOptions,
|
|
332
343
|
pullControl,
|
|
333
|
-
|
|
344
|
+
as as randomAppLoginNonce,
|
|
334
345
|
readBuildState,
|
|
335
346
|
removeEvent,
|
|
336
347
|
r as resolveDidFromHost,
|
|
@@ -342,27 +353,27 @@ export {
|
|
|
342
353
|
sourcesDigest,
|
|
343
354
|
sourcesKey,
|
|
344
355
|
subscribeKEvent,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
356
|
+
b9 as taskMgrErrorCode,
|
|
357
|
+
b7 as taskMgrTaskEventPath,
|
|
358
|
+
b8 as taskMgrTreeEventPath,
|
|
348
359
|
templateDir,
|
|
349
360
|
unbuiltChanges,
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
361
|
+
bT as validateAiccMessage,
|
|
362
|
+
bX as validateDecisionAnswers,
|
|
363
|
+
bW as validateDecisionRequest,
|
|
364
|
+
L as validateNotifyAnswer,
|
|
365
|
+
b$ as validateVideoEdit,
|
|
366
|
+
b_ as validateVideoGeneration,
|
|
367
|
+
bZ as validateVideoOutput,
|
|
357
368
|
verifyBundle,
|
|
358
|
-
|
|
359
|
-
|
|
369
|
+
c0 as videoGenerationRequirement,
|
|
370
|
+
X as waitNotify,
|
|
360
371
|
walletSignWithActiveDid,
|
|
361
|
-
|
|
372
|
+
cj as walletUserHasSnAccount,
|
|
362
373
|
watchControl,
|
|
363
374
|
writeBuildState,
|
|
364
375
|
writeHomeFile,
|
|
365
376
|
writeSourceFile,
|
|
366
|
-
|
|
377
|
+
aj as zoneActionUrl
|
|
367
378
|
};
|
|
368
379
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { createSDKModule } from './sdk_core'\nimport { hashPassword } from './account'\n\nconst sdkModule = createSDKModule('universal')\n\nexport const buckyos = sdkModule.buckyos\nexport const initBuckyOS = sdkModule.initBuckyOS\nexport const getBuckyOSConfig = sdkModule.getBuckyOSConfig\nexport const getRuntimeType = sdkModule.getRuntimeType\nexport const getAppId = sdkModule.getAppId\nexport const getAppDid = sdkModule.getAppDid\nexport const getAppInstanceId = sdkModule.getAppInstanceId\nexport const getAppDataDir = sdkModule.getAppDataDir\nexport const getKEventClient = sdkModule.getKEventClient\nexport const createEventReader = sdkModule.createEventReader\nexport const create_event_reader = sdkModule.create_event_reader\nexport const subscribeKEvent = sdkModule.subscribeKEvent\nexport const attachEvent = sdkModule.attachEvent\nexport const removeEvent = sdkModule.removeEvent\nexport const getAccountInfo = sdkModule.getAccountInfo\nexport const getCurrentIdentity = sdkModule.getCurrentIdentity\nexport const loginByPassword = sdkModule.loginByPassword\nexport const loginByBrowserSSO = sdkModule.loginByBrowserSSO\nexport const loginByRuntimeSession = sdkModule.loginByRuntimeSession\nexport const login = sdkModule.login\nexport const logout = sdkModule.logout\nexport const getAppSetting = sdkModule.getAppSetting\nexport const setAppSetting = sdkModule.setAppSetting\nexport const getCurrentWalletUser = sdkModule.getCurrentWalletUser\nexport const resolve_did = sdkModule.resolve_did\nexport const walletSignWithActiveDid = sdkModule.walletSignWithActiveDid\nexport const openExternalUrl = sdkModule.openExternalUrl\nexport const getZoneHostName = sdkModule.getZoneHostName\nexport const getZoneServiceURL = sdkModule.getZoneServiceURL\nexport const getServiceRpcClient = sdkModule.getServiceRpcClient\nexport const getVerifyHubClient = sdkModule.getVerifyHubClient\nexport const getSystemConfigClient = sdkModule.getSystemConfigClient\nexport const getTaskManagerClient = sdkModule.getTaskManagerClient\nexport const getWorkflowClient = sdkModule.getWorkflowClient\nexport const getAiccClient = sdkModule.getAiccClient\nexport const getAiWorkspaceClient = sdkModule.getAiWorkspaceClient\nexport const getBucketClient = sdkModule.getBucketClient\nexport const getMsgQueueClient = sdkModule.getMsgQueueClient\nexport const getMsgCenterClient = sdkModule.getMsgCenterClient\nexport const getRepoClient = sdkModule.getRepoClient\n\nexport { hashPassword }\nexport * from './sdk_core'\nexport * from './types'\nexport * from './app_identity'\nexport * as namelib from './namelib'\nexport * as bns from './bns_client'\nexport * from './bns_evm_tx'\nexport * from './bns_tx_executor'\nexport * as sn from './sn_client'\nexport * as ndn from './
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { createSDKModule } from './sdk_core'\nimport { hashPassword } from './account'\n\nconst sdkModule = createSDKModule('universal')\n\nexport const buckyos = sdkModule.buckyos\nexport const initBuckyOS = sdkModule.initBuckyOS\nexport const getBuckyOSConfig = sdkModule.getBuckyOSConfig\nexport const getRuntimeType = sdkModule.getRuntimeType\nexport const getAppId = sdkModule.getAppId\nexport const getAppDid = sdkModule.getAppDid\nexport const getAppInstanceId = sdkModule.getAppInstanceId\nexport const getAppDataDir = sdkModule.getAppDataDir\nexport const getKEventClient = sdkModule.getKEventClient\nexport const createEventReader = sdkModule.createEventReader\nexport const create_event_reader = sdkModule.create_event_reader\nexport const subscribeKEvent = sdkModule.subscribeKEvent\nexport const attachEvent = sdkModule.attachEvent\nexport const removeEvent = sdkModule.removeEvent\nexport const getAccountInfo = sdkModule.getAccountInfo\nexport const getCurrentIdentity = sdkModule.getCurrentIdentity\nexport const loginByPassword = sdkModule.loginByPassword\nexport const loginByBrowserSSO = sdkModule.loginByBrowserSSO\nexport const loginByRuntimeSession = sdkModule.loginByRuntimeSession\nexport const login = sdkModule.login\nexport const logout = sdkModule.logout\nexport const getAppSetting = sdkModule.getAppSetting\nexport const setAppSetting = sdkModule.setAppSetting\nexport const getCurrentWalletUser = sdkModule.getCurrentWalletUser\nexport const resolve_did = sdkModule.resolve_did\nexport const walletSignWithActiveDid = sdkModule.walletSignWithActiveDid\nexport const openExternalUrl = sdkModule.openExternalUrl\nexport const getZoneHostName = sdkModule.getZoneHostName\nexport const getZoneServiceURL = sdkModule.getZoneServiceURL\nexport const getServiceRpcClient = sdkModule.getServiceRpcClient\nexport const getVerifyHubClient = sdkModule.getVerifyHubClient\nexport const getSystemConfigClient = sdkModule.getSystemConfigClient\nexport const getTaskManagerClient = sdkModule.getTaskManagerClient\nexport const getWorkflowClient = sdkModule.getWorkflowClient\nexport const getAiccClient = sdkModule.getAiccClient\nexport const getAiWorkspaceClient = sdkModule.getAiWorkspaceClient\nexport const getBucketClient = sdkModule.getBucketClient\nexport const getMsgQueueClient = sdkModule.getMsgQueueClient\nexport const getMsgCenterClient = sdkModule.getMsgCenterClient\nexport const getRepoClient = sdkModule.getRepoClient\n\nexport { hashPassword }\nexport * from './sdk_core'\nexport * from './types'\nexport * from './app_identity'\nexport * as namelib from './namelib'\nexport * as bns from './bns_client'\nexport * from './bns_evm_tx'\nexport * from './bns_tx_executor'\nexport * as sn from './sn_client'\nexport * as ndn from './ndn'\nexport * as ndm from './ndm_client'\nexport * as ndm_proxy from './ndm_proxy'\n\nexport * from './executor_client'\nexport * from './aiworkspace_client'\nexport * from './aiws_ext'\nexport * as bucket from './bucket_client'\nexport * as objectUrl from './object_url'\nexport { DIDObjectClient, DIDObjectError } from './did_object_client'\nexport type { DIDObjectCard, DIDObjectClientOptions } from './did_object_client'\n"],"names":[],"mappings":";;;;;;;;;AAGA,MAAM,YAAY,gBAAgB,WAAW;AAEtC,MAAM,UAAU,UAAU;AAC1B,MAAM,cAAc,UAAU;AAC9B,MAAM,mBAAmB,UAAU;AACnC,MAAM,iBAAiB,UAAU;AACjC,MAAM,WAAW,UAAU;AAC3B,MAAM,YAAY,UAAU;AAC5B,MAAM,mBAAmB,UAAU;AACnC,MAAM,gBAAgB,UAAU;AAChC,MAAM,kBAAkB,UAAU;AAClC,MAAM,oBAAoB,UAAU;AACpC,MAAM,sBAAsB,UAAU;AACtC,MAAM,kBAAkB,UAAU;AAClC,MAAM,cAAc,UAAU;AAC9B,MAAM,cAAc,UAAU;AAC9B,MAAM,iBAAiB,UAAU;AACjC,MAAM,qBAAqB,UAAU;AACrC,MAAM,kBAAkB,UAAU;AAClC,MAAM,oBAAoB,UAAU;AACpC,MAAM,wBAAwB,UAAU;AACxC,MAAM,QAAQ,UAAU;AACxB,MAAM,SAAS,UAAU;AACzB,MAAM,gBAAgB,UAAU;AAChC,MAAM,gBAAgB,UAAU;AAChC,MAAM,uBAAuB,UAAU;AACvC,MAAM,cAAc,UAAU;AAC9B,MAAM,0BAA0B,UAAU;AAC1C,MAAM,kBAAkB,UAAU;AAClC,MAAM,kBAAkB,UAAU;AAClC,MAAM,oBAAoB,UAAU;AACpC,MAAM,sBAAsB,UAAU;AACtC,MAAM,qBAAqB,UAAU;AACrC,MAAM,wBAAwB,UAAU;AACxC,MAAM,uBAAuB,UAAU;AACvC,MAAM,oBAAoB,UAAU;AACpC,MAAM,gBAAgB,UAAU;AAChC,MAAM,uBAAuB,UAAU;AACvC,MAAM,kBAAkB,UAAU;AAClC,MAAM,oBAAoB,UAAU;AACpC,MAAM,qBAAqB,UAAU;AACrC,MAAM,gBAAgB,UAAU;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export type JsonSchema = {
|
|
2
|
+
type?: 'object' | 'array' | 'string' | 'boolean' | 'integer' | 'number' | 'null';
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
properties?: Record<string, JsonSchema>;
|
|
6
|
+
required?: string[];
|
|
7
|
+
additionalProperties?: boolean;
|
|
8
|
+
items?: JsonSchema;
|
|
9
|
+
enum?: unknown[];
|
|
10
|
+
minLength?: number;
|
|
11
|
+
minimum?: number;
|
|
12
|
+
default?: unknown;
|
|
13
|
+
secret?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export interface PositionalDefinition {
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface OptionDefinition {
|
|
21
|
+
name: string;
|
|
22
|
+
property?: string;
|
|
23
|
+
description: string;
|
|
24
|
+
type: 'string' | 'boolean' | 'integer' | 'number';
|
|
25
|
+
required?: boolean;
|
|
26
|
+
secret?: boolean;
|
|
27
|
+
enum?: string[];
|
|
28
|
+
}
|
|
29
|
+
export type AccessLevel = 'read' | 'write' | 'destructive' | 'privileged';
|
|
30
|
+
/** A usage error with the CLI's code (`UNKNOWN_OPTION`, `SCHEMA_VALIDATION_FAILED`, …). */
|
|
31
|
+
export declare class CommandArgsError extends Error {
|
|
32
|
+
readonly code: string;
|
|
33
|
+
constructor(code: string, message: string);
|
|
34
|
+
}
|
|
35
|
+
export declare function optionProperty(option: OptionDefinition): string;
|
|
36
|
+
export interface LongOption {
|
|
37
|
+
name: string;
|
|
38
|
+
inlineValue?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare function splitLongOption(token: string): LongOption;
|
|
41
|
+
export declare function readOptionValue(argv: string[], index: number, option: LongOption): {
|
|
42
|
+
value: string;
|
|
43
|
+
consumed: number;
|
|
44
|
+
};
|
|
45
|
+
export interface ArgvSpec {
|
|
46
|
+
positionals?: PositionalDefinition[];
|
|
47
|
+
options?: OptionDefinition[];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Looks at every long option before the command's own: the CLI handles its
|
|
51
|
+
* interactive session options here. Return how many tokens it consumed, or
|
|
52
|
+
* `undefined` to leave the option to the command.
|
|
53
|
+
*/
|
|
54
|
+
export type LongOptionHook = (option: LongOption, argv: string[], index: number) => number | undefined;
|
|
55
|
+
/** Positionals, `--opt value` / `--opt=value`, boolean options, `--`; `--help` / `-h` sets `help`. */
|
|
56
|
+
export declare function parseArgv(spec: ArgvSpec, argv: string[], beforeOption?: LongOptionHook): {
|
|
57
|
+
input: Record<string, unknown>;
|
|
58
|
+
help: boolean;
|
|
59
|
+
positionalCount: number;
|
|
60
|
+
};
|
|
61
|
+
/** Required positionals after `positionalCount` must be in `inputObject`. */
|
|
62
|
+
export declare function checkRequiredPositionals(positionals: PositionalDefinition[], positionalCount: number, inputObject: Record<string, unknown> | undefined): void;
|
|
63
|
+
export declare function mergeCommandInput(inputObject: Record<string, unknown> | undefined, cliInput: Record<string, unknown>): Record<string, unknown>;
|
|
64
|
+
/** Split a command line into words: single and double quotes, backslash escapes (not inside single quotes). */
|
|
65
|
+
export declare function parseShellLine(line: string): string[];
|
|
66
|
+
export declare function validateSchema(value: unknown, schema: JsonSchema, path: string): void;
|
|
67
|
+
//# sourceMappingURL=command_args.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_args.d.ts","sourceRoot":"","sources":["../../src/internal/command_args.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e="http_error",s="transport";class t extends Error{constructor(e,s,t){super(e),this.name="RPCError",this.code=s,this.data=t}}const r=async(e,s)=>{if("undefined"!=typeof window&&"function"==typeof window.fetch)return window.fetch(e,s);if("undefined"!=typeof globalThis&&"function"==typeof globalThis.fetch)return globalThis.fetch(e,s);throw new t("fetch is not available in this runtime")};exports.RPCError=t,exports.RPC_HTTP_ERROR_CODE=e,exports.RPC_TRANSPORT_ERROR_CODE=s,exports.kRPCClient=class{constructor(e,s=null,t=null,n={}){this.serverUrl=e,this.protocolType="HttpPostJson",this.seq=t??Date.now(),this.sessionToken=s||null,this.initToken=s||null,this.traceId=n.traceId||null,this.fetcher=n.fetcher??r,this.sessionTokenProvider=n.sessionTokenProvider??null,this.sessionTokenOverride=void 0}async call(e,s,t={}){return this._call(e,s,t)}async callWithSessionToken(e,s,t){return this._call(s,t,{sessionToken:e})}setSeq(e){this.seq=e}resetSessionToken(){this.sessionToken=this.initToken,this.sessionTokenOverride=void 0}setSessionToken(e){this.sessionToken=e||null,this.sessionTokenOverride=e||null}getSessionToken(){return this.sessionToken}setTraceId(e){this.traceId=e||null}getTraceId(){return this.traceId}buildRequest(e,s,t,r,n){let o;return o=n?[t,r,n]:r?[t,r]:[t],{method:e,params:s,sys:o}}parseResponseSys(e,s){if(null==e)return null;if(!Array.isArray(e))throw new t("sys is not array");if(e.length<1)throw new t("sys is empty");const r=e[0];if("number"!=typeof r)throw new t("sys[0] is not number");if(r!==s)throw new t(`seq not match: ${r}!=${s}`);if(e.length>=2){const s=e[1];if("string"!=typeof s)throw new t("sys[1] trace_id is not string");return s}return null}async prepareSessionToken(e){if(Object.prototype.hasOwnProperty.call(e,"sessionToken"))return e.sessionToken||null;if(void 0!==this.sessionTokenOverride)return this.sessionTokenOverride;if(this.sessionTokenProvider){const e=await this.sessionTokenProvider();void 0!==e&&(this.sessionToken=e||null)}return this.sessionToken}prepareTraceId(e){return Object.prototype.hasOwnProperty.call(e,"traceId")?e.traceId||null:this.traceId}async _call(r,n,o){const i=await this.prepareSessionToken(o),a=this.prepareTraceId(o),l=this.seq;this.seq+=1;const h=this.buildRequest(r,n,l,i,a);try{const s=await this.fetcher(this.serverUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(!s.ok)throw new t(`RPC call error: ${s.status}`,e,{status:s.status});let r;try{r=await s.json()}catch(c){throw new t(`RPC call failed: invalid response body: ${c instanceof Error?c.message:String(c)}`)}if(this.parseResponseSys(r.sys,l),"error"in r&&r.error)throw new t(`RPC call error: ${r.error}`,"string"==typeof r.code?r.code:void 0,r.data);if(!("result"in r)||void 0===r.result)throw new t("RPC response missing result");return r.result}catch(c){if(c instanceof t)throw c;const e=c instanceof Error?c.message:String(c);throw new t(`RPC call failed: ${e}`,s)}}};
|
|
2
|
+
//# sourceMappingURL=krpc_client-26c2dc8b.js.map
|