buckyos 0.7.170 → 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/browser.cjs +1 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +2 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.mjs +204 -194
- package/dist/browser.mjs.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-5f4d0468.mjs → executor_client-c620d25c.mjs} +233 -748
- 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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +209 -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,7 +1,11 @@
|
|
|
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";
|
|
5
9
|
import "./content_mime-e42d5f8d.mjs";
|
|
6
10
|
const sdkModule = createSDKModule("universal");
|
|
7
11
|
const buckyos = sdkModule.buckyos;
|
|
@@ -45,21 +49,21 @@ const getMsgQueueClient = sdkModule.getMsgQueueClient;
|
|
|
45
49
|
const getMsgCenterClient = sdkModule.getMsgCenterClient;
|
|
46
50
|
const getRepoClient = sdkModule.getRepoClient;
|
|
47
51
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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,
|
|
63
67
|
AIWS_BUILD_STATE_FILE,
|
|
64
68
|
AIWS_COMPONENT_FILE,
|
|
65
69
|
AIWS_COMPOSITION_FILE,
|
|
@@ -70,169 +74,175 @@ export {
|
|
|
70
74
|
AIWS_MAX_INLINE_BYTES,
|
|
71
75
|
AIWS_MAX_SOURCE_FILES,
|
|
72
76
|
AIWS_TEMPLATE_FORMAT,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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,
|
|
86
90
|
AiwsSourceError,
|
|
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,
|
|
94
98
|
f as BS_SERVICE_TASK_MANAGER,
|
|
95
99
|
B as BS_SERVICE_VERIFY_HUB,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
cg as BnsEvmTxBuilder,
|
|
101
|
+
cf as BnsEvmTxError,
|
|
102
|
+
ck as BnsTxExecutor,
|
|
103
|
+
ci as BnsTxExecutorError,
|
|
100
104
|
k as BuckyOSSDK,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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,
|
|
108
118
|
a10 as DID_OBJECT_SERVICE_ID,
|
|
109
119
|
D2 as DID_OBJECT_SERVICE_TYPE,
|
|
110
|
-
|
|
120
|
+
aB as DOWNLOAD_TASK_SCHEMA_ID,
|
|
111
121
|
E as EXTERNAL_PRINCIPAL_CLAIM,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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,
|
|
122
132
|
M as MsgQueueClient,
|
|
123
133
|
N2 as NODE_IDENTITY_SCHEMA_V2,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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,
|
|
129
139
|
N as NOTIFY_INTENT,
|
|
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,
|
|
137
147
|
l as RepoClient,
|
|
138
148
|
R as RuntimeType,
|
|
139
|
-
|
|
140
|
-
|
|
149
|
+
aC as SCHEDULER_DISPATCH_THUNK_TASK_SCHEMA_ID,
|
|
150
|
+
bl as StorageDomain,
|
|
141
151
|
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
|
-
|
|
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,
|
|
172
182
|
V as VerifyHubClient,
|
|
173
183
|
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
|
-
|
|
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,
|
|
198
208
|
Z as ZONE_USER_TYPES,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
209
|
+
ab as accessDenialOf,
|
|
210
|
+
bS as aiccMessageFirstText,
|
|
211
|
+
bR as aiccMessageTextContent,
|
|
212
|
+
bO as aiccRefusalOf,
|
|
213
|
+
bQ as aiccTextMessage,
|
|
204
214
|
aiwsContentDigest,
|
|
205
|
-
|
|
215
|
+
cv as aiwsReferenceUrl,
|
|
206
216
|
aiwsTemplateDigest,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
217
|
+
U as answerNotify,
|
|
218
|
+
c5 as appDidFromId,
|
|
219
|
+
c3 as appIdFromDid,
|
|
210
220
|
attachEvent,
|
|
211
|
-
|
|
221
|
+
bg as baselineTaskControlProfile,
|
|
212
222
|
b as bns,
|
|
213
223
|
e as bucket,
|
|
214
224
|
buckyos,
|
|
215
225
|
buildControl,
|
|
216
226
|
buildFiles,
|
|
217
|
-
|
|
227
|
+
ak as buildJumpUrl,
|
|
218
228
|
checkComponent,
|
|
219
229
|
checkComposition,
|
|
220
230
|
checkDeclarative,
|
|
221
231
|
collectSources,
|
|
222
|
-
|
|
232
|
+
T as commitNotifyAnswer,
|
|
223
233
|
compatManifest,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
234
|
+
au as completeAppAccessTokenLogin,
|
|
235
|
+
a5 as contactTagApp,
|
|
236
|
+
a6 as contactTagKind,
|
|
227
237
|
controlSkeleton,
|
|
228
|
-
|
|
238
|
+
c6 as createAppInstanceId,
|
|
229
239
|
createControlSource,
|
|
230
240
|
createEventReader,
|
|
231
241
|
createSDKModule,
|
|
232
242
|
create_event_reader,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
243
|
+
bV as decisionRequirements,
|
|
244
|
+
ch as decodeBnsPublishDocumentCalldata,
|
|
245
|
+
cr as encodeExecutorControl,
|
|
236
246
|
ensureFolder,
|
|
237
247
|
exportBundle,
|
|
238
248
|
findFolder,
|
|
@@ -253,8 +263,8 @@ export {
|
|
|
253
263
|
getCurrentIdentity,
|
|
254
264
|
getCurrentWalletUser,
|
|
255
265
|
g as getCurrentWalletUserFromHost,
|
|
256
|
-
|
|
257
|
-
|
|
266
|
+
r2 as getDidIdentifier,
|
|
267
|
+
q2 as getDidMethod,
|
|
258
268
|
getKEventClient,
|
|
259
269
|
getMsgCenterClient,
|
|
260
270
|
getMsgQueueClient,
|
|
@@ -271,67 +281,67 @@ export {
|
|
|
271
281
|
h2 as hashPassword,
|
|
272
282
|
homeControlDir,
|
|
273
283
|
homeExportDir,
|
|
274
|
-
|
|
275
|
-
|
|
284
|
+
af as identityAllows,
|
|
285
|
+
ae as identityKey,
|
|
276
286
|
initBuckyOS,
|
|
277
|
-
|
|
278
|
-
|
|
287
|
+
I as inputPrompt,
|
|
288
|
+
bP as isAiccAiMethod,
|
|
279
289
|
g2 as isBuckyOSAgentDocument,
|
|
280
|
-
|
|
290
|
+
j2 as isBuckyOSDIDObjectCard,
|
|
281
291
|
f2 as isBuckyOSDeviceDocument,
|
|
282
292
|
c as isBuckyOSDeviceMiniDocument,
|
|
283
293
|
e2 as isBuckyOSLocalNodeIdentityConfig,
|
|
284
294
|
b10 as isBuckyOSOwnerDocument,
|
|
285
295
|
d2 as isBuckyOSZoneBootDocument,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
296
|
+
k2 as isBuckyOSZoneConfig,
|
|
297
|
+
h3 as isBuckyOSZoneDocument,
|
|
298
|
+
o as isExternalPrincipal,
|
|
299
|
+
F as isNotifyClosed,
|
|
290
300
|
isSourcePath,
|
|
291
|
-
|
|
292
|
-
|
|
301
|
+
bc as isTerminalTaskPhase,
|
|
302
|
+
a7 as isUserGroupRefTag,
|
|
293
303
|
i2 as isW3CDIDDocumentBase,
|
|
294
|
-
|
|
295
|
-
|
|
304
|
+
aq as issueAppCustomerLink,
|
|
305
|
+
ap as issueAppLoginCode,
|
|
296
306
|
joinPath,
|
|
297
307
|
login,
|
|
298
|
-
|
|
308
|
+
at as loginByAppAccessToken,
|
|
299
309
|
loginByBrowserSSO,
|
|
300
310
|
loginByPassword,
|
|
301
311
|
loginByRuntimeSession,
|
|
302
312
|
logout,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
313
|
+
t as mailboxAddress,
|
|
314
|
+
u as mailboxResource,
|
|
315
|
+
P as msgMachineData,
|
|
306
316
|
n2 as namelib,
|
|
307
317
|
a as ndm,
|
|
308
318
|
d as ndm_proxy,
|
|
309
319
|
n as ndn,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
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,
|
|
317
327
|
openExternalUrl,
|
|
318
328
|
packBuildFiles,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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,
|
|
328
338
|
p as parseSessionTokenClaims,
|
|
329
|
-
|
|
339
|
+
bY as parseVideoPrompt,
|
|
330
340
|
p2 as parseW3CDIDDocumentBase,
|
|
331
341
|
m as parseZoneUserType,
|
|
332
|
-
|
|
342
|
+
J as promptOptions,
|
|
333
343
|
pullControl,
|
|
334
|
-
|
|
344
|
+
as as randomAppLoginNonce,
|
|
335
345
|
readBuildState,
|
|
336
346
|
removeEvent,
|
|
337
347
|
r as resolveDidFromHost,
|
|
@@ -343,27 +353,27 @@ export {
|
|
|
343
353
|
sourcesDigest,
|
|
344
354
|
sourcesKey,
|
|
345
355
|
subscribeKEvent,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
356
|
+
b9 as taskMgrErrorCode,
|
|
357
|
+
b7 as taskMgrTaskEventPath,
|
|
358
|
+
b8 as taskMgrTreeEventPath,
|
|
349
359
|
templateDir,
|
|
350
360
|
unbuiltChanges,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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,
|
|
358
368
|
verifyBundle,
|
|
359
|
-
|
|
360
|
-
|
|
369
|
+
c0 as videoGenerationRequirement,
|
|
370
|
+
X as waitNotify,
|
|
361
371
|
walletSignWithActiveDid,
|
|
362
|
-
|
|
372
|
+
cj as walletUserHasSnAccount,
|
|
363
373
|
watchControl,
|
|
364
374
|
writeBuildState,
|
|
365
375
|
writeHomeFile,
|
|
366
376
|
writeSourceFile,
|
|
367
|
-
|
|
377
|
+
aj as zoneActionUrl
|
|
368
378
|
};
|
|
369
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 './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 * 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
|