@vibe-lark/larkpal 0.1.85 → 0.1.86
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/dist/account-id-BM1T6029-DYjVxojW.mjs +46 -0
- package/dist/activation-context--5yu1dPF-Bwsn3moT.mjs +172 -0
- package/dist/anthropic-TH8ERTXK.mjs +5962 -0
- package/dist/assistant-visible-text-DuFWokAt-CsbII5KS.mjs +596 -0
- package/dist/azure-openai-responses-Bt_Ag9Er.mjs +166 -0
- package/dist/boundary-file-read-BSd9MXPy--KThL5e6.mjs +594 -0
- package/dist/browser-lifecycle-cleanup-BdNsMhMD-O3tnAM4i.mjs +60 -0
- package/dist/build-DgTrEpge.mjs +3333 -0
- package/dist/bundled-compat-BpaDaAAu-D7oazKjD.mjs +5216 -0
- package/dist/bundled-dir-U738ay4K-DXK0q_TV.mjs +258 -0
- package/dist/call-DimWbpgJ-ColD4W-y.mjs +9993 -0
- package/dist/channel-bootstrap.runtime-BVclcGv1-DJv_Z-Kr.mjs +2 -0
- package/dist/channel-bootstrap.runtime-Cwcr38m2-VRfVCR-i.mjs +33 -0
- package/dist/chunk-D6SyT4dJ.mjs +36 -0
- package/dist/cli.mjs +6 -6
- package/dist/command-format-LSnUCVVF-BQ2SMKka.mjs +685 -0
- package/dist/config-Bim2pi8a-BQUdfiEi.mjs +9 -0
- package/dist/delivery-context.shared-j5hC5qb1-CI83RXXZ.mjs +72 -0
- package/dist/diagnostic-ClMwNnUA-D6nUtLnb.mjs +140 -0
- package/dist/dist-CEGw8-2W.mjs +429 -0
- package/dist/dist-DD2aJ2UL.mjs +125135 -0
- package/dist/env-api-keys-BVvSg7T2.mjs +68 -0
- package/dist/event-stream-xaQWmyas.mjs +15226 -0
- package/dist/facade-loader-DFzIYYt_-CIr4HKtE.mjs +194 -0
- package/dist/from-DF7cl2wz.mjs +3842 -0
- package/dist/gateway-method-policy-C7rf0SeV-CJQMEYIE.mjs +28 -0
- package/dist/github-copilot-headers-DjqWtUoP.mjs +22 -0
- package/dist/google-C2pVrgBZ.mjs +336 -0
- package/dist/google-gemini-cli-BBxgS5Ho.mjs +623 -0
- package/dist/google-shared-BsWgwEk1.mjs +22791 -0
- package/dist/google-vertex-BsVLJrrC.mjs +358 -0
- package/dist/hash-DAFtW_W7.mjs +16 -0
- package/dist/headers-R3HdCbAE.mjs +8 -0
- package/dist/home-dir-C44RaPME-CBRS4HLP.mjs +93 -0
- package/dist/ids-BPsM98Uu-CwuxvUai.mjs +77 -0
- package/dist/image-2w3cApg7-CxpHvoB5.mjs +207 -0
- package/dist/io-CH2g3vsv-BOGlLlB8.mjs +26218 -0
- package/dist/jiti-loader-cache-Bat69wam-D6hCxboy.mjs +5049 -0
- package/dist/json-file-BQRNuxmK-DhJM5NsG.mjs +108 -0
- package/dist/json-parse-v_HIJjjI.mjs +381 -0
- package/dist/jws-GFcTvvVT.mjs +2291 -0
- package/dist/{lark-cli-provider-7LvtOIF_.mjs → lark-cli-provider-BARgbbmo.mjs} +1 -1
- package/dist/{live-smoke-nvTUPtrv.mjs → live-smoke-BhkBOcH9.mjs} +3 -3
- package/dist/load-context-mb7uvLSn-B10MAi3I.mjs +29 -0
- package/dist/loader-708jrx4Y-BOswuvpe.mjs +5053 -0
- package/dist/main.mjs +56550 -205
- package/dist/manifest-registry-_hxKCS2K-CZdeyN0f.mjs +3512 -0
- package/dist/mcp-server.mjs +1 -1
- package/dist/message-channel-Bk_YHfQg-AeNrPPpp.mjs +50 -0
- package/dist/message-channel-core-DTA--Gjh-CY4Tkb7N.mjs +29 -0
- package/dist/message.config.runtime-K-k4XOyq-DZTmXomP.mjs +2 -0
- package/dist/message.gateway.runtime-DqHOHRTQ-DH4ml0YF.mjs +2 -0
- package/dist/mistral-CaR4DiLu.mjs +28657 -0
- package/dist/model-auth-env-oyg2Hexc-DU_rOUU5.mjs +1306 -0
- package/dist/models-config-BmpSQJQF-Gfvh1n3A.mjs +1282 -0
- package/dist/models-config.runtime-BsU_22xk.mjs +2 -0
- package/dist/multipart-parser-DedmaB5g.mjs +294 -0
- package/dist/oauth-DOJeGfcE.mjs +6392 -0
- package/dist/openai-BDtIh3Ja.mjs +6693 -0
- package/dist/openai-codex-responses-C5EORu31.mjs +664 -0
- package/dist/openai-completions-CR_cS6gX.mjs +669 -0
- package/dist/openai-responses-oGxwZyuC.mjs +184 -0
- package/dist/openai-responses-shared-BixMSDZE.mjs +398 -0
- package/dist/paths-D6msg0S1-C2lYuisN.mjs +189 -0
- package/dist/paths-D92DjaZ--CTOESW2b.mjs +192 -0
- package/dist/pi-model-discovery-Bd0TWzo8-BFsJmeMb.mjs +227 -0
- package/dist/pi-model-discovery-runtime-CCCZxkd8.mjs +2 -0
- package/dist/pi-tools.before-tool-call.runtime-Bn7uqKie-C5ewk8kK.mjs +399 -0
- package/dist/plugin-auto-enable-DdH3n9V8-DsA1isaF.mjs +1456 -0
- package/dist/process-scoped-map-B2cWkYET-CXwUZ8CZ.mjs +61 -0
- package/dist/provider-discovery.runtime-BPzz1PFj.mjs +58 -0
- package/dist/provider-model-compat-CFqcq0it-BDDuBI3A.mjs +118 -0
- package/dist/provider-runtime-C8rljsNs-CIT93zoy.mjs +2 -0
- package/dist/provider-runtime-CT50mNIX-BwEV6GyO.mjs +573 -0
- package/dist/provider-stream-COLujAAo-CbJPDngm.mjs +35449 -0
- package/dist/providers.runtime-Ba7tOlq7-CXkhkzU9.mjs +219 -0
- package/dist/public-surface-loader-BVl0NQAE-C0piXtsT.mjs +117 -0
- package/dist/resolve-C33B7eeu-BNvYTl6k.mjs +1041 -0
- package/dist/runtime-Cym-fqI8-DaSDMH-a.mjs +120 -0
- package/dist/runtime-channel-state-CohMybAh-hXR6y5Gx.mjs +19 -0
- package/dist/runtime-snapshot-C54O1-gI-40cbyi7P.mjs +677 -0
- package/dist/runtime-state-IBOIXKOx-Bf9tcLvc.mjs +10 -0
- package/dist/runtime-web-tools-fallback.runtime-Ca-qn1mj-BCVImm7a.mjs +39 -0
- package/dist/runtime-web-tools-manifest.runtime-BgxQTjmq-Cb4nJkRT.mjs +2 -0
- package/dist/runtime-web-tools-public-artifacts.runtime-D9qcoWIX-BrQdXzOQ.mjs +2 -0
- package/dist/session-archive.runtime-B52_5vs4-BG-_IwNJ.mjs +2 -0
- package/dist/session-key-Cn2QoOyX-CuHbJMgR.mjs +82 -0
- package/dist/session-transcript-files.fs-DEeFXruQ-B1PF6nLy.mjs +147 -0
- package/dist/src-BgCX0MLG.mjs +813 -0
- package/dist/src-DYbqlAqf.mjs +1177 -0
- package/dist/subagent-announce-L5WsQatW-CQWI9GMd.mjs +344 -0
- package/dist/subagent-announce.registry.runtime-DiqZyeTs-BKuniyi3.mjs +28 -0
- package/dist/subagent-registry-steer-runtime-DFgZFC0j-BhBz0roy.mjs +211 -0
- package/dist/subagent-system-prompt-C1qnN--K-DpnTFP47.mjs +3061 -0
- package/dist/target-parsing-loaded-DKkb6jJY-BMD4CkpS.mjs +1002 -0
- package/dist/task-registry-delivery-runtime-Dd1CUkZF-C8U40a3O.mjs +2950 -0
- package/dist/task-registry-delivery-runtime-ragbeVx5-CNbFAkjD.mjs +2 -0
- package/dist/thinking-Bh-7MqXz-D3woGbO7.mjs +2 -0
- package/dist/transcript-E_-ISOkD-DWCfZP2p.mjs +2019 -0
- package/dist/transcript.runtime-BqhvZZdl-BPy42vBP.mjs +2 -0
- package/dist/transform-messages-DbhIzTxq.mjs +207 -0
- package/dist/web-provider-public-artifacts-BlpRwIUS-CGPSV4W2.mjs +295 -0
- package/dist/web-search-providers.runtime--0aUtC3b-DyuhC95V.mjs +200 -0
- package/package.json +3 -3
- package/dist/rolldown-runtime-wcPFST8Q.mjs +0 -13
- /package/dist/{interactive-init-B6j8j_Ap.mjs → interactive-init-BXQBalNr.mjs} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { o as normalizeLowercaseStringOrEmpty } from "./home-dir-C44RaPME-CBRS4HLP.mjs";
|
|
2
|
+
import { s as isBlockedObjectKey } from "./paths-D92DjaZ--CTOESW2b.mjs";
|
|
3
|
+
//#region node_modules/.pnpm/openclaw@2026.4.22_@napi-rs+canvas@0.1.99/node_modules/openclaw/dist/account-id-BM1T6029.js
|
|
4
|
+
const DEFAULT_ACCOUNT_ID = "default";
|
|
5
|
+
const VALID_ID_RE = /^[a-z0-9][a-z0-9_-]{0,63}$/i;
|
|
6
|
+
const INVALID_CHARS_RE = /[^a-z0-9_-]+/g;
|
|
7
|
+
const LEADING_DASH_RE = /^-+/;
|
|
8
|
+
const TRAILING_DASH_RE = /-+$/;
|
|
9
|
+
const ACCOUNT_ID_CACHE_MAX = 512;
|
|
10
|
+
const normalizeAccountIdCache = /* @__PURE__ */ new Map();
|
|
11
|
+
const normalizeOptionalAccountIdCache = /* @__PURE__ */ new Map();
|
|
12
|
+
function canonicalizeAccountId(value) {
|
|
13
|
+
const normalized = normalizeLowercaseStringOrEmpty(value);
|
|
14
|
+
if (VALID_ID_RE.test(value)) return normalized;
|
|
15
|
+
return normalized.replace(INVALID_CHARS_RE, "-").replace(LEADING_DASH_RE, "").replace(TRAILING_DASH_RE, "").slice(0, 64);
|
|
16
|
+
}
|
|
17
|
+
function normalizeCanonicalAccountId(value) {
|
|
18
|
+
const canonical = canonicalizeAccountId(value);
|
|
19
|
+
if (!canonical || isBlockedObjectKey(canonical)) return;
|
|
20
|
+
return canonical;
|
|
21
|
+
}
|
|
22
|
+
function normalizeAccountId(value) {
|
|
23
|
+
const trimmed = (value ?? "").trim();
|
|
24
|
+
if (!trimmed) return DEFAULT_ACCOUNT_ID;
|
|
25
|
+
const cached = normalizeAccountIdCache.get(trimmed);
|
|
26
|
+
if (cached) return cached;
|
|
27
|
+
const normalized = normalizeCanonicalAccountId(trimmed) || "default";
|
|
28
|
+
setNormalizeCache(normalizeAccountIdCache, trimmed, normalized);
|
|
29
|
+
return normalized;
|
|
30
|
+
}
|
|
31
|
+
function normalizeOptionalAccountId(value) {
|
|
32
|
+
const trimmed = (value ?? "").trim();
|
|
33
|
+
if (!trimmed) return;
|
|
34
|
+
if (normalizeOptionalAccountIdCache.has(trimmed)) return normalizeOptionalAccountIdCache.get(trimmed);
|
|
35
|
+
const normalized = normalizeCanonicalAccountId(trimmed) || void 0;
|
|
36
|
+
setNormalizeCache(normalizeOptionalAccountIdCache, trimmed, normalized);
|
|
37
|
+
return normalized;
|
|
38
|
+
}
|
|
39
|
+
function setNormalizeCache(cache, key, value) {
|
|
40
|
+
cache.set(key, value);
|
|
41
|
+
if (cache.size <= ACCOUNT_ID_CACHE_MAX) return;
|
|
42
|
+
const oldest = cache.keys().next();
|
|
43
|
+
if (!oldest.done) cache.delete(oldest.value);
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { normalizeAccountId as n, normalizeOptionalAccountId as r, DEFAULT_ACCOUNT_ID as t };
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { S as normalizePluginsConfig, n as withBundledPluginEnablementCompat, r as withBundledPluginVitestCompat, t as withBundledPluginAllowlistCompat, x as createPluginActivationSource } from "./bundled-compat-BpaDaAAu-D7oazKjD.mjs";
|
|
2
|
+
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-DdH3n9V8-DsA1isaF.mjs";
|
|
3
|
+
//#region node_modules/.pnpm/openclaw@2026.4.22_@napi-rs+canvas@0.1.99/node_modules/openclaw/dist/activation-context--5yu1dPF.js
|
|
4
|
+
function withActivatedPluginIds(params) {
|
|
5
|
+
if (params.pluginIds.length === 0) return params.config;
|
|
6
|
+
const allow = new Set(params.config?.plugins?.allow ?? []);
|
|
7
|
+
const entries = { ...params.config?.plugins?.entries };
|
|
8
|
+
for (const pluginId of params.pluginIds) {
|
|
9
|
+
const normalized = pluginId.trim();
|
|
10
|
+
if (!normalized) continue;
|
|
11
|
+
allow.add(normalized);
|
|
12
|
+
const existingEntry = entries[normalized];
|
|
13
|
+
entries[normalized] = {
|
|
14
|
+
...existingEntry,
|
|
15
|
+
enabled: existingEntry?.enabled !== false || params.overrideExplicitDisable === true
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const forcePluginsEnabled = params.overrideGlobalDisable === true && params.config?.plugins?.enabled === false;
|
|
19
|
+
return {
|
|
20
|
+
...params.config,
|
|
21
|
+
plugins: {
|
|
22
|
+
...params.config?.plugins,
|
|
23
|
+
...forcePluginsEnabled ? { enabled: true } : {},
|
|
24
|
+
...allow.size > 0 ? { allow: [...allow] } : {},
|
|
25
|
+
entries
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function applyPluginCompatibilityOverrides(params) {
|
|
30
|
+
const allowlistCompat = params.compat?.allowlistPluginIds?.length ? withBundledPluginAllowlistCompat({
|
|
31
|
+
config: params.config,
|
|
32
|
+
pluginIds: params.compat.allowlistPluginIds
|
|
33
|
+
}) : params.config;
|
|
34
|
+
const enablementCompat = params.compat?.enablementPluginIds?.length ? withBundledPluginEnablementCompat({
|
|
35
|
+
config: allowlistCompat,
|
|
36
|
+
pluginIds: params.compat.enablementPluginIds
|
|
37
|
+
}) : allowlistCompat;
|
|
38
|
+
return params.compat?.vitestPluginIds?.length ? withBundledPluginVitestCompat({
|
|
39
|
+
config: enablementCompat,
|
|
40
|
+
pluginIds: params.compat.vitestPluginIds,
|
|
41
|
+
env: params.env
|
|
42
|
+
}) : enablementCompat;
|
|
43
|
+
}
|
|
44
|
+
function shouldResolveBundledCompatPluginIds(params) {
|
|
45
|
+
return params.allowlistCompatEnabled || params.compatMode.enablement === "always" || params.compatMode.enablement === "allowlist" && params.allowlistCompatEnabled || params.compatMode.vitest === true;
|
|
46
|
+
}
|
|
47
|
+
function createBundledPluginCompatConfig(params) {
|
|
48
|
+
return {
|
|
49
|
+
allowlistPluginIds: params.allowlistCompatEnabled ? params.compatPluginIds : void 0,
|
|
50
|
+
enablementPluginIds: params.compatMode.enablement === "always" || params.compatMode.enablement === "allowlist" && params.allowlistCompatEnabled ? params.compatPluginIds : void 0,
|
|
51
|
+
vitestPluginIds: params.compatMode.vitest ? params.compatPluginIds : void 0
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function resolvePluginActivationSnapshot(params) {
|
|
55
|
+
const env = params.env ?? process.env;
|
|
56
|
+
const rawConfig = params.rawConfig ?? params.resolvedConfig;
|
|
57
|
+
let resolvedConfig = params.resolvedConfig ?? params.rawConfig;
|
|
58
|
+
let autoEnabledReasons = params.autoEnabledReasons;
|
|
59
|
+
if (params.applyAutoEnable && rawConfig !== void 0) {
|
|
60
|
+
const autoEnabled = applyPluginAutoEnable({
|
|
61
|
+
config: rawConfig,
|
|
62
|
+
env
|
|
63
|
+
});
|
|
64
|
+
resolvedConfig = autoEnabled.config;
|
|
65
|
+
autoEnabledReasons = autoEnabled.autoEnabledReasons;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
rawConfig,
|
|
69
|
+
config: resolvedConfig,
|
|
70
|
+
normalized: normalizePluginsConfig(resolvedConfig?.plugins),
|
|
71
|
+
activationSourceConfig: rawConfig,
|
|
72
|
+
activationSource: createPluginActivationSource({ config: rawConfig }),
|
|
73
|
+
autoEnabledReasons: autoEnabledReasons ?? {}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function resolvePluginActivationInputs(params) {
|
|
77
|
+
const env = params.env ?? process.env;
|
|
78
|
+
const snapshot = resolvePluginActivationSnapshot({
|
|
79
|
+
rawConfig: params.rawConfig,
|
|
80
|
+
resolvedConfig: params.resolvedConfig,
|
|
81
|
+
autoEnabledReasons: params.autoEnabledReasons,
|
|
82
|
+
env,
|
|
83
|
+
applyAutoEnable: params.applyAutoEnable
|
|
84
|
+
});
|
|
85
|
+
const config = applyPluginCompatibilityOverrides({
|
|
86
|
+
config: snapshot.config,
|
|
87
|
+
compat: params.compat,
|
|
88
|
+
env
|
|
89
|
+
});
|
|
90
|
+
return {
|
|
91
|
+
rawConfig: snapshot.rawConfig,
|
|
92
|
+
config,
|
|
93
|
+
normalized: normalizePluginsConfig(config?.plugins),
|
|
94
|
+
activationSourceConfig: snapshot.activationSourceConfig,
|
|
95
|
+
activationSource: snapshot.activationSource,
|
|
96
|
+
autoEnabledReasons: snapshot.autoEnabledReasons
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function resolveBundledPluginCompatibleActivationInputs(params) {
|
|
100
|
+
const snapshot = resolvePluginActivationSnapshot({
|
|
101
|
+
rawConfig: params.rawConfig,
|
|
102
|
+
resolvedConfig: params.resolvedConfig,
|
|
103
|
+
autoEnabledReasons: params.autoEnabledReasons,
|
|
104
|
+
env: params.env,
|
|
105
|
+
applyAutoEnable: params.applyAutoEnable
|
|
106
|
+
});
|
|
107
|
+
const allowlistCompatEnabled = params.compatMode.allowlist === true;
|
|
108
|
+
const compatPluginIds = shouldResolveBundledCompatPluginIds({
|
|
109
|
+
compatMode: params.compatMode,
|
|
110
|
+
allowlistCompatEnabled
|
|
111
|
+
}) ? params.resolveCompatPluginIds({
|
|
112
|
+
config: snapshot.config,
|
|
113
|
+
workspaceDir: params.workspaceDir,
|
|
114
|
+
env: params.env,
|
|
115
|
+
onlyPluginIds: params.onlyPluginIds
|
|
116
|
+
}) : [];
|
|
117
|
+
return {
|
|
118
|
+
...resolvePluginActivationInputs({
|
|
119
|
+
rawConfig: snapshot.rawConfig,
|
|
120
|
+
resolvedConfig: snapshot.config,
|
|
121
|
+
autoEnabledReasons: snapshot.autoEnabledReasons,
|
|
122
|
+
env: params.env,
|
|
123
|
+
compat: createBundledPluginCompatConfig({
|
|
124
|
+
compatMode: params.compatMode,
|
|
125
|
+
allowlistCompatEnabled,
|
|
126
|
+
compatPluginIds
|
|
127
|
+
})
|
|
128
|
+
}),
|
|
129
|
+
compatPluginIds
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function resolveBundledPluginCompatibleLoadValues(params) {
|
|
133
|
+
const env = params.env ?? process.env;
|
|
134
|
+
const rawConfig = params.rawConfig ?? params.resolvedConfig;
|
|
135
|
+
let resolvedConfig = params.resolvedConfig ?? params.rawConfig;
|
|
136
|
+
let autoEnabledReasons = params.autoEnabledReasons ?? {};
|
|
137
|
+
if (params.applyAutoEnable && rawConfig !== void 0) {
|
|
138
|
+
const autoEnabled = applyPluginAutoEnable({
|
|
139
|
+
config: rawConfig,
|
|
140
|
+
env
|
|
141
|
+
});
|
|
142
|
+
resolvedConfig = autoEnabled.config;
|
|
143
|
+
autoEnabledReasons = autoEnabled.autoEnabledReasons;
|
|
144
|
+
}
|
|
145
|
+
const allowlistCompatEnabled = params.compatMode.allowlist === true;
|
|
146
|
+
const compatPluginIds = shouldResolveBundledCompatPluginIds({
|
|
147
|
+
compatMode: params.compatMode,
|
|
148
|
+
allowlistCompatEnabled
|
|
149
|
+
}) ? params.resolveCompatPluginIds({
|
|
150
|
+
config: resolvedConfig,
|
|
151
|
+
workspaceDir: params.workspaceDir,
|
|
152
|
+
env,
|
|
153
|
+
onlyPluginIds: params.onlyPluginIds
|
|
154
|
+
}) : [];
|
|
155
|
+
return {
|
|
156
|
+
rawConfig,
|
|
157
|
+
config: applyPluginCompatibilityOverrides({
|
|
158
|
+
config: resolvedConfig,
|
|
159
|
+
compat: createBundledPluginCompatConfig({
|
|
160
|
+
compatMode: params.compatMode,
|
|
161
|
+
allowlistCompatEnabled,
|
|
162
|
+
compatPluginIds
|
|
163
|
+
}),
|
|
164
|
+
env
|
|
165
|
+
}),
|
|
166
|
+
activationSourceConfig: rawConfig,
|
|
167
|
+
autoEnabledReasons,
|
|
168
|
+
compatPluginIds
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
//#endregion
|
|
172
|
+
export { resolveBundledPluginCompatibleLoadValues as n, withActivatedPluginIds as r, resolveBundledPluginCompatibleActivationInputs as t };
|