@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.
Files changed (106) hide show
  1. package/dist/account-id-BM1T6029-DYjVxojW.mjs +46 -0
  2. package/dist/activation-context--5yu1dPF-Bwsn3moT.mjs +172 -0
  3. package/dist/anthropic-TH8ERTXK.mjs +5962 -0
  4. package/dist/assistant-visible-text-DuFWokAt-CsbII5KS.mjs +596 -0
  5. package/dist/azure-openai-responses-Bt_Ag9Er.mjs +166 -0
  6. package/dist/boundary-file-read-BSd9MXPy--KThL5e6.mjs +594 -0
  7. package/dist/browser-lifecycle-cleanup-BdNsMhMD-O3tnAM4i.mjs +60 -0
  8. package/dist/build-DgTrEpge.mjs +3333 -0
  9. package/dist/bundled-compat-BpaDaAAu-D7oazKjD.mjs +5216 -0
  10. package/dist/bundled-dir-U738ay4K-DXK0q_TV.mjs +258 -0
  11. package/dist/call-DimWbpgJ-ColD4W-y.mjs +9993 -0
  12. package/dist/channel-bootstrap.runtime-BVclcGv1-DJv_Z-Kr.mjs +2 -0
  13. package/dist/channel-bootstrap.runtime-Cwcr38m2-VRfVCR-i.mjs +33 -0
  14. package/dist/chunk-D6SyT4dJ.mjs +36 -0
  15. package/dist/cli.mjs +6 -6
  16. package/dist/command-format-LSnUCVVF-BQ2SMKka.mjs +685 -0
  17. package/dist/config-Bim2pi8a-BQUdfiEi.mjs +9 -0
  18. package/dist/delivery-context.shared-j5hC5qb1-CI83RXXZ.mjs +72 -0
  19. package/dist/diagnostic-ClMwNnUA-D6nUtLnb.mjs +140 -0
  20. package/dist/dist-CEGw8-2W.mjs +429 -0
  21. package/dist/dist-DD2aJ2UL.mjs +125135 -0
  22. package/dist/env-api-keys-BVvSg7T2.mjs +68 -0
  23. package/dist/event-stream-xaQWmyas.mjs +15226 -0
  24. package/dist/facade-loader-DFzIYYt_-CIr4HKtE.mjs +194 -0
  25. package/dist/from-DF7cl2wz.mjs +3842 -0
  26. package/dist/gateway-method-policy-C7rf0SeV-CJQMEYIE.mjs +28 -0
  27. package/dist/github-copilot-headers-DjqWtUoP.mjs +22 -0
  28. package/dist/google-C2pVrgBZ.mjs +336 -0
  29. package/dist/google-gemini-cli-BBxgS5Ho.mjs +623 -0
  30. package/dist/google-shared-BsWgwEk1.mjs +22791 -0
  31. package/dist/google-vertex-BsVLJrrC.mjs +358 -0
  32. package/dist/hash-DAFtW_W7.mjs +16 -0
  33. package/dist/headers-R3HdCbAE.mjs +8 -0
  34. package/dist/home-dir-C44RaPME-CBRS4HLP.mjs +93 -0
  35. package/dist/ids-BPsM98Uu-CwuxvUai.mjs +77 -0
  36. package/dist/image-2w3cApg7-CxpHvoB5.mjs +207 -0
  37. package/dist/io-CH2g3vsv-BOGlLlB8.mjs +26218 -0
  38. package/dist/jiti-loader-cache-Bat69wam-D6hCxboy.mjs +5049 -0
  39. package/dist/json-file-BQRNuxmK-DhJM5NsG.mjs +108 -0
  40. package/dist/json-parse-v_HIJjjI.mjs +381 -0
  41. package/dist/jws-GFcTvvVT.mjs +2291 -0
  42. package/dist/{lark-cli-provider-7LvtOIF_.mjs → lark-cli-provider-BARgbbmo.mjs} +1 -1
  43. package/dist/{live-smoke-nvTUPtrv.mjs → live-smoke-BhkBOcH9.mjs} +3 -3
  44. package/dist/load-context-mb7uvLSn-B10MAi3I.mjs +29 -0
  45. package/dist/loader-708jrx4Y-BOswuvpe.mjs +5053 -0
  46. package/dist/main.mjs +56550 -205
  47. package/dist/manifest-registry-_hxKCS2K-CZdeyN0f.mjs +3512 -0
  48. package/dist/mcp-server.mjs +1 -1
  49. package/dist/message-channel-Bk_YHfQg-AeNrPPpp.mjs +50 -0
  50. package/dist/message-channel-core-DTA--Gjh-CY4Tkb7N.mjs +29 -0
  51. package/dist/message.config.runtime-K-k4XOyq-DZTmXomP.mjs +2 -0
  52. package/dist/message.gateway.runtime-DqHOHRTQ-DH4ml0YF.mjs +2 -0
  53. package/dist/mistral-CaR4DiLu.mjs +28657 -0
  54. package/dist/model-auth-env-oyg2Hexc-DU_rOUU5.mjs +1306 -0
  55. package/dist/models-config-BmpSQJQF-Gfvh1n3A.mjs +1282 -0
  56. package/dist/models-config.runtime-BsU_22xk.mjs +2 -0
  57. package/dist/multipart-parser-DedmaB5g.mjs +294 -0
  58. package/dist/oauth-DOJeGfcE.mjs +6392 -0
  59. package/dist/openai-BDtIh3Ja.mjs +6693 -0
  60. package/dist/openai-codex-responses-C5EORu31.mjs +664 -0
  61. package/dist/openai-completions-CR_cS6gX.mjs +669 -0
  62. package/dist/openai-responses-oGxwZyuC.mjs +184 -0
  63. package/dist/openai-responses-shared-BixMSDZE.mjs +398 -0
  64. package/dist/paths-D6msg0S1-C2lYuisN.mjs +189 -0
  65. package/dist/paths-D92DjaZ--CTOESW2b.mjs +192 -0
  66. package/dist/pi-model-discovery-Bd0TWzo8-BFsJmeMb.mjs +227 -0
  67. package/dist/pi-model-discovery-runtime-CCCZxkd8.mjs +2 -0
  68. package/dist/pi-tools.before-tool-call.runtime-Bn7uqKie-C5ewk8kK.mjs +399 -0
  69. package/dist/plugin-auto-enable-DdH3n9V8-DsA1isaF.mjs +1456 -0
  70. package/dist/process-scoped-map-B2cWkYET-CXwUZ8CZ.mjs +61 -0
  71. package/dist/provider-discovery.runtime-BPzz1PFj.mjs +58 -0
  72. package/dist/provider-model-compat-CFqcq0it-BDDuBI3A.mjs +118 -0
  73. package/dist/provider-runtime-C8rljsNs-CIT93zoy.mjs +2 -0
  74. package/dist/provider-runtime-CT50mNIX-BwEV6GyO.mjs +573 -0
  75. package/dist/provider-stream-COLujAAo-CbJPDngm.mjs +35449 -0
  76. package/dist/providers.runtime-Ba7tOlq7-CXkhkzU9.mjs +219 -0
  77. package/dist/public-surface-loader-BVl0NQAE-C0piXtsT.mjs +117 -0
  78. package/dist/resolve-C33B7eeu-BNvYTl6k.mjs +1041 -0
  79. package/dist/runtime-Cym-fqI8-DaSDMH-a.mjs +120 -0
  80. package/dist/runtime-channel-state-CohMybAh-hXR6y5Gx.mjs +19 -0
  81. package/dist/runtime-snapshot-C54O1-gI-40cbyi7P.mjs +677 -0
  82. package/dist/runtime-state-IBOIXKOx-Bf9tcLvc.mjs +10 -0
  83. package/dist/runtime-web-tools-fallback.runtime-Ca-qn1mj-BCVImm7a.mjs +39 -0
  84. package/dist/runtime-web-tools-manifest.runtime-BgxQTjmq-Cb4nJkRT.mjs +2 -0
  85. package/dist/runtime-web-tools-public-artifacts.runtime-D9qcoWIX-BrQdXzOQ.mjs +2 -0
  86. package/dist/session-archive.runtime-B52_5vs4-BG-_IwNJ.mjs +2 -0
  87. package/dist/session-key-Cn2QoOyX-CuHbJMgR.mjs +82 -0
  88. package/dist/session-transcript-files.fs-DEeFXruQ-B1PF6nLy.mjs +147 -0
  89. package/dist/src-BgCX0MLG.mjs +813 -0
  90. package/dist/src-DYbqlAqf.mjs +1177 -0
  91. package/dist/subagent-announce-L5WsQatW-CQWI9GMd.mjs +344 -0
  92. package/dist/subagent-announce.registry.runtime-DiqZyeTs-BKuniyi3.mjs +28 -0
  93. package/dist/subagent-registry-steer-runtime-DFgZFC0j-BhBz0roy.mjs +211 -0
  94. package/dist/subagent-system-prompt-C1qnN--K-DpnTFP47.mjs +3061 -0
  95. package/dist/target-parsing-loaded-DKkb6jJY-BMD4CkpS.mjs +1002 -0
  96. package/dist/task-registry-delivery-runtime-Dd1CUkZF-C8U40a3O.mjs +2950 -0
  97. package/dist/task-registry-delivery-runtime-ragbeVx5-CNbFAkjD.mjs +2 -0
  98. package/dist/thinking-Bh-7MqXz-D3woGbO7.mjs +2 -0
  99. package/dist/transcript-E_-ISOkD-DWCfZP2p.mjs +2019 -0
  100. package/dist/transcript.runtime-BqhvZZdl-BPy42vBP.mjs +2 -0
  101. package/dist/transform-messages-DbhIzTxq.mjs +207 -0
  102. package/dist/web-provider-public-artifacts-BlpRwIUS-CGPSV4W2.mjs +295 -0
  103. package/dist/web-search-providers.runtime--0aUtC3b-DyuhC95V.mjs +200 -0
  104. package/package.json +3 -3
  105. package/dist/rolldown-runtime-wcPFST8Q.mjs +0 -13
  106. /package/dist/{interactive-init-B6j8j_Ap.mjs → interactive-init-BXQBalNr.mjs} +0 -0
@@ -0,0 +1,200 @@
1
+ import { c as normalizeOptionalString } from "./home-dir-C44RaPME-CBRS4HLP.mjs";
2
+ import { a as getActivePluginRegistryWorkspaceDir } from "./runtime-Cym-fqI8-DaSDMH-a.mjs";
3
+ import { n as loadOpenClawPlugins, r as resolveCompatibleRuntimePluginRegistry, t as isPluginRegistryLoadInFlight } from "./loader-708jrx4Y-BOswuvpe.mjs";
4
+ import { _ as hasExplicitPluginIdScope, v as normalizePluginIdScope } from "./plugin-auto-enable-DdH3n9V8-DsA1isaF.mjs";
5
+ import { r as withActivatedPluginIds } from "./activation-context--5yu1dPF-Bwsn3moT.mjs";
6
+ import { n as createPluginRuntimeLoaderLogger, t as buildPluginRuntimeLoadOptionsFromValues } from "./load-context-mb7uvLSn-B10MAi3I.mjs";
7
+ import { i as mapRegistryProviders, l as sortWebSearchProviders, n as resolveBundledWebSearchProvidersFromPublicArtifacts, o as resolveBundledWebSearchResolutionConfig, r as buildWebProviderSnapshotCacheKey, s as resolveManifestDeclaredWebProviderCandidatePluginIds } from "./web-provider-public-artifacts-BlpRwIUS-CGPSV4W2.mjs";
8
+ //#region node_modules/.pnpm/openclaw@2026.4.22_@napi-rs+canvas@0.1.99/node_modules/openclaw/dist/web-provider-runtime-shared-D93GixbB.js
9
+ const DEFAULT_PLUGIN_DISCOVERY_CACHE_MS = 1e3;
10
+ const DEFAULT_PLUGIN_MANIFEST_CACHE_MS = 1e3;
11
+ function shouldUsePluginSnapshotCache(env) {
12
+ if (normalizeOptionalString(env.OPENCLAW_DISABLE_PLUGIN_DISCOVERY_CACHE)) return false;
13
+ if (normalizeOptionalString(env.OPENCLAW_DISABLE_PLUGIN_MANIFEST_CACHE)) return false;
14
+ if (normalizeOptionalString(env.OPENCLAW_PLUGIN_DISCOVERY_CACHE_MS) === "0") return false;
15
+ if (normalizeOptionalString(env.OPENCLAW_PLUGIN_MANIFEST_CACHE_MS) === "0") return false;
16
+ return true;
17
+ }
18
+ function resolvePluginCacheMs(rawValue, defaultMs) {
19
+ const raw = normalizeOptionalString(rawValue);
20
+ if (raw === "" || raw === "0") return 0;
21
+ if (!raw) return defaultMs;
22
+ const parsed = Number.parseInt(raw, 10);
23
+ if (!Number.isFinite(parsed)) return defaultMs;
24
+ return Math.max(0, parsed);
25
+ }
26
+ function resolvePluginSnapshotCacheTtlMs(env) {
27
+ const discoveryCacheMs = resolvePluginCacheMs(env.OPENCLAW_PLUGIN_DISCOVERY_CACHE_MS, DEFAULT_PLUGIN_DISCOVERY_CACHE_MS);
28
+ const manifestCacheMs = resolvePluginCacheMs(env.OPENCLAW_PLUGIN_MANIFEST_CACHE_MS, DEFAULT_PLUGIN_MANIFEST_CACHE_MS);
29
+ return Math.min(discoveryCacheMs, manifestCacheMs);
30
+ }
31
+ function buildPluginSnapshotCacheEnvKey(env) {
32
+ return JSON.stringify({
33
+ OPENCLAW_BUNDLED_PLUGINS_DIR: env.OPENCLAW_BUNDLED_PLUGINS_DIR ?? "",
34
+ OPENCLAW_DISABLE_PLUGIN_DISCOVERY_CACHE: env.OPENCLAW_DISABLE_PLUGIN_DISCOVERY_CACHE ?? "",
35
+ OPENCLAW_DISABLE_PLUGIN_MANIFEST_CACHE: env.OPENCLAW_DISABLE_PLUGIN_MANIFEST_CACHE ?? "",
36
+ OPENCLAW_PLUGIN_DISCOVERY_CACHE_MS: env.OPENCLAW_PLUGIN_DISCOVERY_CACHE_MS ?? "",
37
+ OPENCLAW_PLUGIN_MANIFEST_CACHE_MS: env.OPENCLAW_PLUGIN_MANIFEST_CACHE_MS ?? "",
38
+ OPENCLAW_HOME: env.OPENCLAW_HOME ?? "",
39
+ OPENCLAW_STATE_DIR: env.OPENCLAW_STATE_DIR ?? "",
40
+ OPENCLAW_CONFIG_PATH: env.OPENCLAW_CONFIG_PATH ?? "",
41
+ HOME: env.HOME ?? "",
42
+ USERPROFILE: env.USERPROFILE ?? "",
43
+ VITEST: env.VITEST ?? ""
44
+ });
45
+ }
46
+ function createWebProviderSnapshotCache() {
47
+ return /* @__PURE__ */ new WeakMap();
48
+ }
49
+ function resolveWebProviderLoadOptions(params, deps) {
50
+ const env = params.env ?? process.env;
51
+ const workspaceDir = params.workspaceDir ?? getActivePluginRegistryWorkspaceDir();
52
+ const { config, activationSourceConfig, autoEnabledReasons } = deps.resolveBundledResolutionConfig({
53
+ ...params,
54
+ workspaceDir,
55
+ env
56
+ });
57
+ const onlyPluginIds = normalizePluginIdScope(deps.resolveCandidatePluginIds({
58
+ config,
59
+ workspaceDir,
60
+ env,
61
+ onlyPluginIds: params.onlyPluginIds,
62
+ origin: params.origin
63
+ }));
64
+ return buildPluginRuntimeLoadOptionsFromValues({
65
+ env,
66
+ config,
67
+ activationSourceConfig,
68
+ autoEnabledReasons,
69
+ workspaceDir,
70
+ logger: createPluginRuntimeLoaderLogger()
71
+ }, {
72
+ cache: params.cache ?? false,
73
+ activate: params.activate ?? false,
74
+ ...hasExplicitPluginIdScope(onlyPluginIds) ? { onlyPluginIds } : {}
75
+ });
76
+ }
77
+ function resolvePluginWebProviders(params, deps) {
78
+ const env = params.env ?? process.env;
79
+ const workspaceDir = params.workspaceDir ?? getActivePluginRegistryWorkspaceDir();
80
+ if (params.mode === "setup") {
81
+ const pluginIds = deps.resolveCandidatePluginIds({
82
+ config: params.config,
83
+ workspaceDir,
84
+ env,
85
+ onlyPluginIds: params.onlyPluginIds,
86
+ origin: params.origin
87
+ }) ?? [];
88
+ if (pluginIds.length === 0) return [];
89
+ if (params.activate !== true) {
90
+ const bundledArtifactProviders = deps.resolveBundledPublicArtifactProviders?.({
91
+ config: params.config,
92
+ workspaceDir,
93
+ env,
94
+ bundledAllowlistCompat: params.bundledAllowlistCompat,
95
+ onlyPluginIds: pluginIds
96
+ });
97
+ if (bundledArtifactProviders) return bundledArtifactProviders;
98
+ }
99
+ const registry = loadOpenClawPlugins(buildPluginRuntimeLoadOptionsFromValues({
100
+ config: withActivatedPluginIds({
101
+ config: params.config,
102
+ pluginIds
103
+ }),
104
+ activationSourceConfig: params.config,
105
+ autoEnabledReasons: {},
106
+ workspaceDir,
107
+ env,
108
+ logger: createPluginRuntimeLoaderLogger()
109
+ }, {
110
+ onlyPluginIds: pluginIds,
111
+ cache: params.cache ?? false,
112
+ activate: params.activate ?? false
113
+ }));
114
+ return deps.mapRegistryProviders({
115
+ registry,
116
+ onlyPluginIds: pluginIds
117
+ });
118
+ }
119
+ const cacheOwnerConfig = params.config;
120
+ const shouldMemoizeSnapshot = params.activate !== true && params.cache !== true && shouldUsePluginSnapshotCache(env);
121
+ const cacheKey = buildWebProviderSnapshotCacheKey({
122
+ config: cacheOwnerConfig,
123
+ workspaceDir,
124
+ bundledAllowlistCompat: params.bundledAllowlistCompat,
125
+ onlyPluginIds: params.onlyPluginIds,
126
+ origin: params.origin,
127
+ envKey: buildPluginSnapshotCacheEnvKey(env)
128
+ });
129
+ if (cacheOwnerConfig && shouldMemoizeSnapshot) {
130
+ const cached = (deps.snapshotCache.get(cacheOwnerConfig)?.get(env))?.get(cacheKey);
131
+ if (cached && cached.expiresAt > Date.now()) return cached.providers;
132
+ }
133
+ const memoizeSnapshot = (providers) => {
134
+ if (!cacheOwnerConfig || !shouldMemoizeSnapshot) return;
135
+ const ttlMs = resolvePluginSnapshotCacheTtlMs(env);
136
+ let configCache = deps.snapshotCache.get(cacheOwnerConfig);
137
+ if (!configCache) {
138
+ configCache = /* @__PURE__ */ new WeakMap();
139
+ deps.snapshotCache.set(cacheOwnerConfig, configCache);
140
+ }
141
+ let envCache = configCache.get(env);
142
+ if (!envCache) {
143
+ envCache = /* @__PURE__ */ new Map();
144
+ configCache.set(env, envCache);
145
+ }
146
+ envCache.set(cacheKey, {
147
+ expiresAt: Date.now() + ttlMs,
148
+ providers
149
+ });
150
+ };
151
+ const loadOptions = resolveWebProviderLoadOptions(params, deps);
152
+ const compatible = resolveCompatibleRuntimePluginRegistry(loadOptions);
153
+ if (compatible) {
154
+ const resolved = deps.mapRegistryProviders({
155
+ registry: compatible,
156
+ onlyPluginIds: params.onlyPluginIds
157
+ });
158
+ memoizeSnapshot(resolved);
159
+ return resolved;
160
+ }
161
+ if (isPluginRegistryLoadInFlight(loadOptions)) return [];
162
+ const resolved = deps.mapRegistryProviders({
163
+ registry: loadOpenClawPlugins(loadOptions),
164
+ onlyPluginIds: params.onlyPluginIds
165
+ });
166
+ memoizeSnapshot(resolved);
167
+ return resolved;
168
+ }
169
+ //#endregion
170
+ //#region node_modules/.pnpm/openclaw@2026.4.22_@napi-rs+canvas@0.1.99/node_modules/openclaw/dist/web-search-providers.runtime--0aUtC3b.js
171
+ let webSearchProviderSnapshotCache = createWebProviderSnapshotCache();
172
+ function resolveWebSearchCandidatePluginIds(params) {
173
+ return resolveManifestDeclaredWebProviderCandidatePluginIds({
174
+ contract: "webSearchProviders",
175
+ configKey: "webSearch",
176
+ config: params.config,
177
+ workspaceDir: params.workspaceDir,
178
+ env: params.env,
179
+ onlyPluginIds: params.onlyPluginIds,
180
+ origin: params.origin
181
+ });
182
+ }
183
+ function mapRegistryWebSearchProviders(params) {
184
+ return mapRegistryProviders({
185
+ entries: params.registry.webSearchProviders,
186
+ onlyPluginIds: params.onlyPluginIds,
187
+ sortProviders: sortWebSearchProviders
188
+ });
189
+ }
190
+ function resolvePluginWebSearchProviders(params) {
191
+ return resolvePluginWebProviders(params, {
192
+ snapshotCache: webSearchProviderSnapshotCache,
193
+ resolveBundledResolutionConfig: resolveBundledWebSearchResolutionConfig,
194
+ resolveCandidatePluginIds: resolveWebSearchCandidatePluginIds,
195
+ mapRegistryProviders: mapRegistryWebSearchProviders,
196
+ resolveBundledPublicArtifactProviders: resolveBundledWebSearchProvidersFromPublicArtifacts
197
+ });
198
+ }
199
+ //#endregion
200
+ export { createWebProviderSnapshotCache as n, resolvePluginWebProviders as r, resolvePluginWebSearchProviders as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-lark/larkpal",
3
- "version": "0.1.85",
3
+ "version": "0.1.86",
4
4
  "description": "LarkPal - Lark/Feishu bot service",
5
5
  "type": "module",
6
6
  "main": "./dist/main.mjs",
@@ -46,7 +46,6 @@
46
46
  "express": "^5.1.0",
47
47
  "image-size": "^2.0.2",
48
48
  "node-cron": "^4.0.8",
49
- "openclaw": "^2026.4.9",
50
49
  "qrcode-terminal": "^0.12.0",
51
50
  "uuid": "^11.1.0",
52
51
  "ws": "^8.21.0",
@@ -72,6 +71,7 @@
72
71
  "tsdown": "^0.21.4",
73
72
  "typescript": "^5.9.3",
74
73
  "typescript-eslint": "^8.32.1",
75
- "vitest": "^4.1.1"
74
+ "vitest": "^4.1.1",
75
+ "openclaw": "^2026.4.9"
76
76
  }
77
77
  }
@@ -1,13 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __exportAll = (all, no_symbols) => {
4
- let target = {};
5
- for (var name in all) __defProp(target, name, {
6
- get: all[name],
7
- enumerable: true
8
- });
9
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
- return target;
11
- };
12
- //#endregion
13
- export { __exportAll as t };