buckyos 0.7.170 → 0.7.177
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/aiworkspace_client.d.ts +36 -2
- package/dist/aiworkspace_client.d.ts.map +1 -1
- package/dist/app-frame.cjs +1 -1
- package/dist/app-frame.cjs.map +1 -1
- package/dist/app-frame.d.ts +56 -1
- package/dist/app-frame.d.ts.map +1 -1
- package/dist/app-frame.mjs +285 -4
- 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 +4 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.mjs +218 -194
- 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 +77 -0
- package/dist/content.d.ts.map +1 -1
- package/dist/content.mjs +65 -0
- package/dist/content.mjs.map +1 -1
- package/dist/content_objid-1aff74b6.js +2 -0
- package/dist/content_objid-1aff74b6.js.map +1 -0
- package/dist/content_objid-9232bcaf.mjs +29 -0
- package/dist/content_objid-9232bcaf.mjs.map +1 -0
- package/dist/content_objid.d.ts +15 -0
- package/dist/content_objid.d.ts.map +1 -0
- 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-7ce0ddc7.js +13 -0
- package/dist/executor_client-7ce0ddc7.js.map +1 -0
- package/dist/{executor_client-5f4d0468.mjs → executor_client-bfc8a1e1.mjs} +308 -752
- package/dist/executor_client-bfc8a1e1.mjs.map +1 -0
- package/dist/executor_client.d.ts +129 -0
- package/dist/executor_client.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +218 -199
- 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/{ndn_types-ab30fac0.mjs → ndn_types-0fac2499.mjs} +115 -215
- 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/node.cjs +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.mjs +201 -194
- 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.mjs +4 -3
- package/dist/provision.mjs.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-b231b248.js → tus_client-809c90ab.js} +2 -2
- package/dist/{tus_client-b231b248.js.map → tus_client-809c90ab.js.map} +1 -1
- package/dist/{tus_client-d1ffe2d6.mjs → tus_client-893a3287.mjs} +2 -2
- package/dist/{tus_client-d1ffe2d6.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-1ee523cf.js +0 -13
- package/dist/executor_client-1ee523cf.js.map +0 -1
- package/dist/executor_client-5f4d0468.mjs.map +0 -1
- package/dist/ndn_types-8c2696d5.js +0 -2
- package/dist/ndn_types-8c2696d5.js.map +0 -1
- package/dist/ndn_types-ab30fac0.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { c as createSDKModule } from "./executor_client-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { c as createSDKModule } from "./executor_client-bfc8a1e1.mjs";
|
|
2
|
+
import { a9, aL, bG, aQ, bH, bM, bL, bI, bK, bN, bJ, bE, bF, bD, ct, cy, cz, cx, ac, aR, am, al, an, ao, aT, aS, aV, aU, cD, 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, cB, cC, 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, cA, b9, b7, b8, bT, bX, bW, L, b$, b_, bZ, c0, X, cj, aj } from "./executor_client-bfc8a1e1.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";
|
|
5
|
+
import { e as e3 } from "./content_objid-9232bcaf.mjs";
|
|
4
6
|
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";
|
|
7
|
+
import { o as o3 } from "./object_url-f72c1704.mjs";
|
|
8
|
+
import { D as D3, a as a11 } from "./did_object_client-7fa36f90.mjs";
|
|
9
|
+
import { R as R2 } from "./krpc_client-673448e5.mjs";
|
|
5
10
|
import "./content_mime-e42d5f8d.mjs";
|
|
11
|
+
import "./content.mjs";
|
|
6
12
|
const sdkModule = createSDKModule("universal");
|
|
7
13
|
const buckyos = sdkModule.buckyos;
|
|
8
14
|
const initBuckyOS = sdkModule.initBuckyOS;
|
|
@@ -45,22 +51,25 @@ const getMsgQueueClient = sdkModule.getMsgQueueClient;
|
|
|
45
51
|
const getMsgCenterClient = sdkModule.getMsgCenterClient;
|
|
46
52
|
const getRepoClient = sdkModule.getRepoClient;
|
|
47
53
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
a9 as ACCESS_DENIED_ERROR_CODE,
|
|
55
|
+
aL as AGENT_DELEGATE_TASK_SCHEMA_ID,
|
|
56
|
+
bG as AICC_AI_METHODS,
|
|
57
|
+
aQ as AICC_COMPUTE_TASK_SCHEMA_ID,
|
|
58
|
+
bH as AICC_CORE_METHODS,
|
|
59
|
+
bM as AICC_EXECUTION_MODES,
|
|
60
|
+
bL as AICC_FEATURES,
|
|
61
|
+
bI as AICC_MANAGEMENT_METHODS,
|
|
62
|
+
bK as AICC_METHODS,
|
|
63
|
+
bN as AICC_POLICY_REFUSAL_CODES,
|
|
64
|
+
bJ as AICC_QUOTA_METHODS,
|
|
65
|
+
bE as AICC_SERVICE_SERVICE_NAME,
|
|
66
|
+
bF as AICC_SERVICE_SERVICE_PORT,
|
|
67
|
+
bD as AICC_SERVICE_UNIQUE_ID,
|
|
68
|
+
ct as AIWORKSPACE_SERVICE_NAME,
|
|
63
69
|
AIWS_BUILD_STATE_FILE,
|
|
70
|
+
cy as AIWS_COMMIT_MAX_BYTES,
|
|
71
|
+
cz as AIWS_COMMIT_MAX_OPERATIONS,
|
|
72
|
+
cx as AIWS_COMMIT_PART_BYTES,
|
|
64
73
|
AIWS_COMPONENT_FILE,
|
|
65
74
|
AIWS_COMPOSITION_FILE,
|
|
66
75
|
AIWS_DECLARATIVE_API_VERSION,
|
|
@@ -70,170 +79,179 @@ export {
|
|
|
70
79
|
AIWS_MAX_INLINE_BYTES,
|
|
71
80
|
AIWS_MAX_SOURCE_FILES,
|
|
72
81
|
AIWS_TEMPLATE_FORMAT,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
ac as ANONYMOUS_IDENTITY,
|
|
83
|
+
aR as APP_INSTALL_TASK_SCHEMA_ID,
|
|
84
|
+
am as APP_LOGIN_EXCHANGE_METHOD,
|
|
85
|
+
al as APP_LOGIN_ISSUE_METHOD,
|
|
86
|
+
an as APP_LOGIN_SETTINGS_GET_METHOD,
|
|
87
|
+
ao as APP_LOGIN_SETTINGS_SET_METHOD,
|
|
88
|
+
aT as APP_START_TASK_SCHEMA_ID,
|
|
89
|
+
aS as APP_UNINSTALL_TASK_SCHEMA_ID,
|
|
90
|
+
aV as APP_UPDATE_BATCH_TASK_SCHEMA_ID,
|
|
91
|
+
aU as APP_UPDATE_TASK_SCHEMA_ID,
|
|
92
|
+
cD as AiWorkspaceClient,
|
|
93
|
+
bU as AiccClient,
|
|
94
|
+
cu as AiwsFailure,
|
|
86
95
|
AiwsSourceError,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
cc as BNS_DNS_TXT_DEFAULT_TTL,
|
|
97
|
+
cd as BNS_DNS_TXT_DOC_TYPE,
|
|
98
|
+
c8 as BNS_EVM_DEFAULT_GAS_LIMIT,
|
|
99
|
+
c9 as BNS_EVM_DEFAULT_MAX_FEE_PER_GAS,
|
|
100
|
+
ca as BNS_EVM_DEFAULT_MAX_PRIORITY_FEE_PER_GAS,
|
|
101
|
+
cb as BNS_MAX_INLINE_DOCUMENT_BYTES,
|
|
102
|
+
ce as BNS_PUBLISH_DOCUMENT_ABI,
|
|
94
103
|
f as BS_SERVICE_TASK_MANAGER,
|
|
95
104
|
B as BS_SERVICE_VERIFY_HUB,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
105
|
+
cg as BnsEvmTxBuilder,
|
|
106
|
+
cf as BnsEvmTxError,
|
|
107
|
+
ck as BnsTxExecutor,
|
|
108
|
+
ci as BnsTxExecutorError,
|
|
100
109
|
k as BuckyOSSDK,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
110
|
+
co as COMPUTER_ELEMENT_ACTIONS,
|
|
111
|
+
cn as COMPUTER_ELEMENT_STATES,
|
|
112
|
+
cm as COMPUTER_ROLES,
|
|
113
|
+
cl as COMPUTER_SEMANTIC_FORMAT,
|
|
114
|
+
a1 as CONTACT_CHANGED_EVENT_PATTERN,
|
|
115
|
+
a0 as CONTACT_TAG_HOMESTATION_FOLLOWING,
|
|
116
|
+
$ as CONTACT_TAG_ZONE_AGENT,
|
|
117
|
+
_ as CONTACT_TAG_ZONE_USER,
|
|
118
|
+
bh as DEFAULT_CHILD_CONTROL_POLICY,
|
|
119
|
+
ag as DEFAULT_JUMP_BASE_URL,
|
|
120
|
+
a8 as DENY_REASONS,
|
|
121
|
+
D3 as DIDObjectClient,
|
|
122
|
+
a11 as DIDObjectError,
|
|
108
123
|
a10 as DID_OBJECT_SERVICE_ID,
|
|
109
124
|
D2 as DID_OBJECT_SERVICE_TYPE,
|
|
110
|
-
|
|
125
|
+
aB as DOWNLOAD_TASK_SCHEMA_ID,
|
|
111
126
|
E as EXTERNAL_PRINCIPAL_CLAIM,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
127
|
+
cp as ExecutorClient,
|
|
128
|
+
cs as ExecutorCommandStream,
|
|
129
|
+
cq as ExecutorStreamError,
|
|
130
|
+
Y as FRIEND_INTENT,
|
|
131
|
+
aA as HUMAN_APPROVAL_SCHEMA_ID,
|
|
132
|
+
aM as HUMAN_INPUT_TASK_SCHEMA_ID,
|
|
133
|
+
ah as JUMP_ACTION_PATHS,
|
|
134
|
+
c2 as KEventClient,
|
|
135
|
+
c1 as KEventReader,
|
|
136
|
+
q as MsgCenterClient,
|
|
122
137
|
M as MsgQueueClient,
|
|
123
138
|
N2 as NODE_IDENTITY_SCHEMA_V2,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
139
|
+
A as NOTIFY_ACTION_ANSWER,
|
|
140
|
+
C as NOTIFY_ACTION_DISMISS,
|
|
141
|
+
y as NOTIFY_CHOICE_CONTROL_ID,
|
|
142
|
+
w as NOTIFY_DATA_VERSION,
|
|
143
|
+
v as NOTIFY_DELIVERED_INTENT,
|
|
129
144
|
N as NOTIFY_INTENT,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
145
|
+
D as NOTIFY_LINK_PATH,
|
|
146
|
+
x as NOTIFY_SESSION_PREFIX,
|
|
147
|
+
z as NOTIFY_TEXT_CONTROL_ID,
|
|
148
|
+
aN as OPENDAN_ASYNC_TOOL_TASK_SCHEMA_ID,
|
|
149
|
+
aO as OPENDAN_COMMAND_TASK_SCHEMA_ID,
|
|
150
|
+
az as RAW_TASK_SCHEMA_ID,
|
|
151
|
+
R2 as RPCError,
|
|
137
152
|
l as RepoClient,
|
|
138
153
|
R as RuntimeType,
|
|
139
|
-
|
|
140
|
-
|
|
154
|
+
aC as SCHEDULER_DISPATCH_THUNK_TASK_SCHEMA_ID,
|
|
155
|
+
bl as StorageDomain,
|
|
141
156
|
S as SystemConfigClient,
|
|
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
|
-
|
|
171
|
-
|
|
157
|
+
b1 as TASK_ERR_ALREADY_COMPLETED,
|
|
158
|
+
b0 as TASK_ERR_CONTROL_ALREADY_PENDING,
|
|
159
|
+
a$ as TASK_ERR_CONTROL_NOT_AVAILABLE,
|
|
160
|
+
b4 as TASK_ERR_IDEMPOTENCY_CONFLICT,
|
|
161
|
+
b2 as TASK_ERR_INPUT_SCHEMA_MISMATCH,
|
|
162
|
+
a_ as TASK_ERR_INVALID_PHASE,
|
|
163
|
+
aW as TASK_ERR_NOT_FOUND,
|
|
164
|
+
aX as TASK_ERR_PERMISSION_DENIED,
|
|
165
|
+
b3 as TASK_ERR_RESULT_SCHEMA_MISMATCH,
|
|
166
|
+
aY as TASK_ERR_REVISION_CONFLICT,
|
|
167
|
+
b5 as TASK_ERR_SCHEMA_NOT_FOUND,
|
|
168
|
+
aZ as TASK_ERR_STALE_RUNNER_EPOCH,
|
|
169
|
+
aw as TASK_MANAGER_SERVICE_NAME,
|
|
170
|
+
ax as TASK_MANAGER_SERVICE_PORT,
|
|
171
|
+
av as TASK_MANAGER_SERVICE_UNIQUE_ID,
|
|
172
|
+
b6 as TASK_MGR_ERROR_CODES,
|
|
173
|
+
ay as TASK_POLICY_PRESET_COLLABORATIVE_TREE_V1,
|
|
174
|
+
aP as TOOL_EXEC_BASH_TASK_SCHEMA_ID,
|
|
175
|
+
bi as TaskAction,
|
|
176
|
+
bf as TaskControlAction,
|
|
177
|
+
bk as TaskDataScope,
|
|
178
|
+
bm as TaskEventType,
|
|
179
|
+
ba as TaskExecutorKind,
|
|
180
|
+
bj as TaskGrantScope,
|
|
181
|
+
bn as TaskManagerClient,
|
|
182
|
+
be as TaskOutcome,
|
|
183
|
+
bb as TaskPhase,
|
|
184
|
+
bd as TaskWaitReasonKind,
|
|
185
|
+
a4 as USER_GROUP_REF_PREFIX,
|
|
186
|
+
a3 as USER_TYPE_GROUP_REF_PREFIX,
|
|
172
187
|
V as VerifyHubClient,
|
|
173
188
|
W as WEB3_BRIDGE_HOST,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
189
|
+
a2 as WELL_KNOWN_CONTACT_TAGS,
|
|
190
|
+
aJ as WORKFLOW_EXECUTE_RPC_TASK_SCHEMA_ID,
|
|
191
|
+
aF as WORKFLOW_MAP_SHARD_TASK_SCHEMA_ID,
|
|
192
|
+
aK as WORKFLOW_RUN_TARGET_TASK_SCHEMA_ID,
|
|
193
|
+
aD as WORKFLOW_RUN_TREE_TASK_SCHEMA_ID,
|
|
194
|
+
aH as WORKFLOW_SCHEDULE_TASK_SCHEMA_ID,
|
|
195
|
+
aI as WORKFLOW_SEND_MESSAGE_TASK_SCHEMA_ID,
|
|
196
|
+
bo as WORKFLOW_SERVICE_NAME,
|
|
197
|
+
aE as WORKFLOW_STEP_TASK_SCHEMA_ID,
|
|
198
|
+
aG as WORKFLOW_THUNK_TASK_SCHEMA_ID,
|
|
199
|
+
bC as WorkflowClient,
|
|
200
|
+
bv as WorkflowDefinitionStatus,
|
|
201
|
+
bp as WorkflowErrorCode,
|
|
202
|
+
by as WorkflowHumanActionKind,
|
|
203
|
+
bt as WorkflowJoinMode,
|
|
204
|
+
bx as WorkflowNodeRunState,
|
|
205
|
+
bs as WorkflowOutputMode,
|
|
206
|
+
bq as WorkflowRequestError,
|
|
207
|
+
bu as WorkflowRetryFallback,
|
|
208
|
+
bw as WorkflowRunStatus,
|
|
209
|
+
bB as WorkflowScheduledTaskFireStatus,
|
|
210
|
+
bA as WorkflowScheduledTaskMisfirePolicy,
|
|
211
|
+
bz as WorkflowScheduledTaskStatus,
|
|
212
|
+
br as WorkflowStepType,
|
|
198
213
|
Z as ZONE_USER_TYPES,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
214
|
+
ab as accessDenialOf,
|
|
215
|
+
bS as aiccMessageFirstText,
|
|
216
|
+
bR as aiccMessageTextContent,
|
|
217
|
+
bO as aiccRefusalOf,
|
|
218
|
+
bQ as aiccTextMessage,
|
|
204
219
|
aiwsContentDigest,
|
|
205
|
-
|
|
220
|
+
cv as aiwsReferenceUrl,
|
|
206
221
|
aiwsTemplateDigest,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
222
|
+
U as answerNotify,
|
|
223
|
+
c5 as appDidFromId,
|
|
224
|
+
c3 as appIdFromDid,
|
|
210
225
|
attachEvent,
|
|
211
|
-
|
|
226
|
+
bg as baselineTaskControlProfile,
|
|
212
227
|
b as bns,
|
|
213
228
|
e as bucket,
|
|
214
229
|
buckyos,
|
|
215
230
|
buildControl,
|
|
216
231
|
buildFiles,
|
|
217
|
-
|
|
232
|
+
ak as buildJumpUrl,
|
|
218
233
|
checkComponent,
|
|
219
234
|
checkComposition,
|
|
220
235
|
checkDeclarative,
|
|
221
236
|
collectSources,
|
|
222
|
-
|
|
237
|
+
T as commitNotifyAnswer,
|
|
238
|
+
cB as commitOverLimit,
|
|
239
|
+
cC as commitWithParts,
|
|
223
240
|
compatManifest,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
241
|
+
au as completeAppAccessTokenLogin,
|
|
242
|
+
a5 as contactTagApp,
|
|
243
|
+
a6 as contactTagKind,
|
|
227
244
|
controlSkeleton,
|
|
228
|
-
|
|
245
|
+
c6 as createAppInstanceId,
|
|
229
246
|
createControlSource,
|
|
230
247
|
createEventReader,
|
|
231
248
|
createSDKModule,
|
|
232
249
|
create_event_reader,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
250
|
+
bV as decisionRequirements,
|
|
251
|
+
ch as decodeBnsPublishDocumentCalldata,
|
|
252
|
+
cr as encodeExecutorControl,
|
|
236
253
|
ensureFolder,
|
|
254
|
+
e3 as ensureObjId,
|
|
237
255
|
exportBundle,
|
|
238
256
|
findFolder,
|
|
239
257
|
folderName,
|
|
@@ -253,8 +271,8 @@ export {
|
|
|
253
271
|
getCurrentIdentity,
|
|
254
272
|
getCurrentWalletUser,
|
|
255
273
|
g as getCurrentWalletUserFromHost,
|
|
256
|
-
|
|
257
|
-
|
|
274
|
+
r2 as getDidIdentifier,
|
|
275
|
+
q2 as getDidMethod,
|
|
258
276
|
getKEventClient,
|
|
259
277
|
getMsgCenterClient,
|
|
260
278
|
getMsgQueueClient,
|
|
@@ -271,67 +289,67 @@ export {
|
|
|
271
289
|
h2 as hashPassword,
|
|
272
290
|
homeControlDir,
|
|
273
291
|
homeExportDir,
|
|
274
|
-
|
|
275
|
-
|
|
292
|
+
af as identityAllows,
|
|
293
|
+
ae as identityKey,
|
|
276
294
|
initBuckyOS,
|
|
277
|
-
|
|
278
|
-
|
|
295
|
+
I as inputPrompt,
|
|
296
|
+
bP as isAiccAiMethod,
|
|
279
297
|
g2 as isBuckyOSAgentDocument,
|
|
280
|
-
|
|
298
|
+
j2 as isBuckyOSDIDObjectCard,
|
|
281
299
|
f2 as isBuckyOSDeviceDocument,
|
|
282
300
|
c as isBuckyOSDeviceMiniDocument,
|
|
283
301
|
e2 as isBuckyOSLocalNodeIdentityConfig,
|
|
284
302
|
b10 as isBuckyOSOwnerDocument,
|
|
285
303
|
d2 as isBuckyOSZoneBootDocument,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
304
|
+
k2 as isBuckyOSZoneConfig,
|
|
305
|
+
h3 as isBuckyOSZoneDocument,
|
|
306
|
+
o as isExternalPrincipal,
|
|
307
|
+
F as isNotifyClosed,
|
|
290
308
|
isSourcePath,
|
|
291
|
-
|
|
292
|
-
|
|
309
|
+
bc as isTerminalTaskPhase,
|
|
310
|
+
a7 as isUserGroupRefTag,
|
|
293
311
|
i2 as isW3CDIDDocumentBase,
|
|
294
|
-
|
|
295
|
-
|
|
312
|
+
aq as issueAppCustomerLink,
|
|
313
|
+
ap as issueAppLoginCode,
|
|
296
314
|
joinPath,
|
|
297
315
|
login,
|
|
298
|
-
|
|
316
|
+
at as loginByAppAccessToken,
|
|
299
317
|
loginByBrowserSSO,
|
|
300
318
|
loginByPassword,
|
|
301
319
|
loginByRuntimeSession,
|
|
302
320
|
logout,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
321
|
+
t as mailboxAddress,
|
|
322
|
+
u as mailboxResource,
|
|
323
|
+
P as msgMachineData,
|
|
306
324
|
n2 as namelib,
|
|
307
325
|
a as ndm,
|
|
308
326
|
d as ndm_proxy,
|
|
309
327
|
n as ndn,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
328
|
+
ai as normalizeZoneHostname,
|
|
329
|
+
K as notifyAnswerToTaskResult,
|
|
330
|
+
H as notifyCategoryFromSessionId,
|
|
331
|
+
G as notifyCategorySessionId,
|
|
332
|
+
Q as notifyMessageData,
|
|
333
|
+
O as notifyUrl,
|
|
334
|
+
o3 as objectUrl,
|
|
317
335
|
openExternalUrl,
|
|
318
336
|
packBuildFiles,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
337
|
+
aa as parseAccessDenial,
|
|
338
|
+
cw as parseAiwsReferenceUrl,
|
|
339
|
+
c4 as parseAppId,
|
|
340
|
+
c7 as parseAppInstanceId,
|
|
341
|
+
ar as parseAppLoginExchangeResult,
|
|
342
|
+
o2 as parseBuckyOSDIDDocument,
|
|
343
|
+
m2 as parseBuckyOSDeviceMiniDocument,
|
|
344
|
+
l2 as parseBuckyOSOwnerDocument,
|
|
345
|
+
ad as parseCurrentIdentity,
|
|
328
346
|
p as parseSessionTokenClaims,
|
|
329
|
-
|
|
347
|
+
bY as parseVideoPrompt,
|
|
330
348
|
p2 as parseW3CDIDDocumentBase,
|
|
331
349
|
m as parseZoneUserType,
|
|
332
|
-
|
|
350
|
+
J as promptOptions,
|
|
333
351
|
pullControl,
|
|
334
|
-
|
|
352
|
+
as as randomAppLoginNonce,
|
|
335
353
|
readBuildState,
|
|
336
354
|
removeEvent,
|
|
337
355
|
r as resolveDidFromHost,
|
|
@@ -342,28 +360,29 @@ export {
|
|
|
342
360
|
sourceStateKey,
|
|
343
361
|
sourcesDigest,
|
|
344
362
|
sourcesKey,
|
|
363
|
+
cA as splitCommitOperations,
|
|
345
364
|
subscribeKEvent,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
365
|
+
b9 as taskMgrErrorCode,
|
|
366
|
+
b7 as taskMgrTaskEventPath,
|
|
367
|
+
b8 as taskMgrTreeEventPath,
|
|
349
368
|
templateDir,
|
|
350
369
|
unbuiltChanges,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
370
|
+
bT as validateAiccMessage,
|
|
371
|
+
bX as validateDecisionAnswers,
|
|
372
|
+
bW as validateDecisionRequest,
|
|
373
|
+
L as validateNotifyAnswer,
|
|
374
|
+
b$ as validateVideoEdit,
|
|
375
|
+
b_ as validateVideoGeneration,
|
|
376
|
+
bZ as validateVideoOutput,
|
|
358
377
|
verifyBundle,
|
|
359
|
-
|
|
360
|
-
|
|
378
|
+
c0 as videoGenerationRequirement,
|
|
379
|
+
X as waitNotify,
|
|
361
380
|
walletSignWithActiveDid,
|
|
362
|
-
|
|
381
|
+
cj as walletUserHasSnAccount,
|
|
363
382
|
watchControl,
|
|
364
383
|
writeBuildState,
|
|
365
384
|
writeHomeFile,
|
|
366
385
|
writeSourceFile,
|
|
367
|
-
|
|
386
|
+
aj as zoneActionUrl
|
|
368
387
|
};
|
|
369
388
|
//# 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 './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'\n"],"names":[],"mappings":"
|
|
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 { ensureObjId, type EnsureObjIdOptions } from './content_objid'\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
|