openclaw-multi-auto 1.2.8 → 1.2.9
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/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/plugin-sdk/{accounts-C3m65--E.js → accounts-BJAXxY46.js} +2 -2
- package/dist/plugin-sdk/{accounts-CNCCkdEF.js → accounts-C1j7HSL0.js} +3 -3
- package/dist/plugin-sdk/{accounts-BslAlVYS.js → accounts-DyFCXtHv.js} +2 -2
- package/dist/plugin-sdk/{active-listener-CkPnMUkB.js → active-listener-CftX5jLD.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-BXnNsojA.js → api-key-rotation-8nyyt1kx.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-CtO4fFvp.js → audio-preflight-C_aSAPR1.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-DnxvOS1-.js → audio-transcription-runner-CB53F7_7.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-BpfoSk8M.js → audit-membership-runtime-BXndI4LG.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-WJYxcJ3S.js → channel-activity-C5y8AgAV.js} +3 -3
- package/dist/plugin-sdk/{channel-web-dO5k3ubM.js → channel-web-DBTRO03V.js} +18 -18
- package/dist/plugin-sdk/{chrome-CjNTuJML.js → chrome-f00sZkDX.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-CdYjoI0i.js → commands-registry-BJ_NxG2F.js} +4 -4
- package/dist/plugin-sdk/{common-oYc5vPFl.js → common-Cf27Jwxu.js} +2 -2
- package/dist/plugin-sdk/{config-B1z-UxQ3.js → config-CHQrpx-Q.js} +7 -7
- package/dist/plugin-sdk/{deliver-D5_6T567.js → deliver-DNEuetST.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-BFdqklJM.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-DuqpYwU0.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-CZ2rS8Lb.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BdqiWhIh.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-04s36qiC.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-LE5tkPvr.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-Bz57lobC.js +57 -0
- package/dist/plugin-sdk/{diagnostic-Bxxu0ig-.js → diagnostic-LYUUmjJ5.js} +2 -2
- package/dist/plugin-sdk/{errors-B3cHyZZA.js → errors-CtMWwS2Z.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-Dcgod0tg.js → fetch-guard-CxYB5Kg6.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-BaKqI3G4.js → fs-safe-DtfhxbrI.js} +3 -3
- package/dist/plugin-sdk/{image-B2mQW9Rb.js → image-BwjYjRHx.js} +6 -6
- package/dist/plugin-sdk/{image-ops-Cbzr4U9l.js → image-ops-BnZKcbd6.js} +2 -2
- package/dist/plugin-sdk/image-runtime-B8twoubs.js +25 -0
- package/dist/plugin-sdk/{ir-ZEmrTr4J.js → ir-Z4hX67TJ.js} +7 -7
- package/dist/plugin-sdk/{local-roots-CIPRxA-4.js → local-roots-KhjQw04O.js} +4 -4
- package/dist/plugin-sdk/{logger-CvPFVOgT.js → logger-DHIIvMxj.js} +2 -2
- package/dist/plugin-sdk/{login-CCTew9bt.js → login-C31642Ld.js} +4 -4
- package/dist/plugin-sdk/{login-qr-BI3Vi_wJ.js → login-qr--y2SG_Ue.js} +5 -5
- package/dist/plugin-sdk/{manager-BEoYPn7R.js → manager-2UZBMCc7.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-CMeLwose.js +15 -0
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/{outbound-ByOw1K6W.js → outbound-Ba0QUI5h.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-BzVhxRRw.js → outbound-attachment-B1Laso-8.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-sWayacde.js → path-alias-guards-C7Vm5DZ1.js} +1 -1
- package/dist/plugin-sdk/{paths-Dpg3qxcl.js → paths-DopV9PQG.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-DIxXkGJf.js → pi-embedded-helpers-DnA_OCzP.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-DM_2uFtj.js → pi-model-discovery-DdPqXk8f.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-D8CJhtJY.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-w1dqL_ty.js → pi-tools.before-tool-call.runtime-DxFHiLUE.js} +4 -4
- package/dist/plugin-sdk/{plugins-C4USiH29.js → plugins-CbCt4osF.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-ET-rp8eg.js → proxy-env-C63mMdas.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-uDXGKG3Z.js → proxy-fetch-Ch95c_Y2.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-CyOt3RDA.js → pw-ai-DpJk62D4.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-BySdoVR7.js → qmd-manager-Ca-iSfEE.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-C6uS-7lj.js → query-expansion-B_Xe41Ab.js} +4 -4
- package/dist/plugin-sdk/{redact-Bvxt1T_Q.js → redact-hp9TOulW.js} +1 -1
- package/dist/plugin-sdk/{reply-CTCSeQqW.js → reply-CovBlFea.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-Bw8YNANu.js → resolve-outbound-target-BbrHgyUk.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-C_KCHwvf.js → run-with-concurrency-BR1DXa8T.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-SkO91TZH.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-B0VWK5hm.js +19 -0
- package/dist/plugin-sdk/{send-C0w6xP2x.js → send-BTztm3D2.js} +6 -6
- package/dist/plugin-sdk/{send-qPyNGSe4.js → send-BXpXBwM_.js} +13 -13
- package/dist/plugin-sdk/{send-BZ6nYFZr.js → send-BvAtLLPl.js} +5 -5
- package/dist/plugin-sdk/{send-CFf-1V89.js → send-CWJUuG0i.js} +8 -8
- package/dist/plugin-sdk/{send-CY-Qfwia.js → send-EcglC4cG.js} +7 -7
- package/dist/plugin-sdk/{session-COrvpvUQ.js → session-k256LJZT.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-DZqhtmiv.js → skill-commands-DoRqLzxm.js} +4 -4
- package/dist/plugin-sdk/{skills-Cw_vXEJb.js → skills-QudILG6e.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-DS6vCNSL.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-BXrxb2wd.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-Bd6qQ2oT.js +16 -0
- package/dist/plugin-sdk/{store-CMHj6IIw.js → store-BbDQw3g6.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-1uwQbuXj.js +52 -0
- package/dist/plugin-sdk/{tables-CSqrHsKL.js → tables-BhvloMKN.js} +1 -1
- package/dist/plugin-sdk/{thinking-DOnsR_A8.js → thinking-URzkT-3p.js} +7 -7
- package/dist/plugin-sdk/{tokens-BDr0Z9o3.js → tokens-B1PW5Ayy.js} +1 -1
- package/dist/plugin-sdk/{tool-images-eEfOVkzf.js → tool-images-xpqbP6RR.js} +2 -2
- package/dist/plugin-sdk/web-B74yhL2N.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-xcleMoMv.js → whatsapp-actions-RcZ6vp61.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/package.json +1 -1
- package/scripts/npm_publish.sh +13 -17
- package/dist/plugin-sdk/deliver-runtime-C5dgvvga.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-Dg4N7PHJ.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-0OEwzMQm.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BM1jRt3G.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-1E3BYRdF.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-DNCxIflA.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-OLwr-9c8.js +0 -57
- package/dist/plugin-sdk/image-runtime-BFm45j49.js +0 -25
- package/dist/plugin-sdk/manager-runtime-DxclHQ4U.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-BuzvkvNR.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-BxgRDkhc.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-elOqrkfg.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-D67JLweo.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-DvcpvCJ0.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-BM1x3azR.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-1lbDyRzz.js +0 -52
- package/dist/plugin-sdk/web-BLyT64pW.js +0 -56
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir, r as listAgentIds, s as resolveAgentSkillsFilter } from "./run-with-concurrency-
|
|
2
|
-
import { L as logVerbose, O as createSubsystemLogger, a as CONFIG_DIR, y as resolveUserPath } from "./logger-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir, r as listAgentIds, s as resolveAgentSkillsFilter } from "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import { L as logVerbose, O as createSubsystemLogger, a as CONFIG_DIR, y as resolveUserPath } from "./logger-DHIIvMxj.js";
|
|
3
3
|
import { c as resolveStateDir } from "./paths-0d8fBoC4.js";
|
|
4
4
|
import { t as createAsyncLock } from "./json-files-DtF9ARSD.js";
|
|
5
|
-
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-
|
|
6
|
-
import { i as listChatCommands } from "./commands-registry-
|
|
5
|
+
import { o as resolvePluginSkillDirs, t as buildWorkspaceSkillCommandSpecs } from "./skills-QudILG6e.js";
|
|
6
|
+
import { i as listChatCommands } from "./commands-registry-BJ_NxG2F.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import os from "node:os";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { E as resolveOpenClawPackageRootSync, H as normalizeSkillFilter, z as isPathInside } from "./run-with-concurrency-
|
|
2
|
-
import { $n as parseBooleanValue, J as resolveMemorySlotDecision, K as normalizePluginsConfig, U as LEGACY_MANIFEST_KEYS, W as MANIFEST_KEY, Xn as isDangerousHostEnvVarName, kn as isPathInsideWithRealpath, nr as normalizeResolvedSecretInputString, q as resolveEffectiveEnableState, z as loadPluginManifestRegistry } from "./config-
|
|
3
|
-
import { O as createSubsystemLogger, Y as resolvePreferredOpenClawTmpDir, a as CONFIG_DIR, y as resolveUserPath } from "./logger-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
1
|
+
import { E as resolveOpenClawPackageRootSync, H as normalizeSkillFilter, z as isPathInside } from "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import { $n as parseBooleanValue, J as resolveMemorySlotDecision, K as normalizePluginsConfig, U as LEGACY_MANIFEST_KEYS, W as MANIFEST_KEY, Xn as isDangerousHostEnvVarName, kn as isPathInsideWithRealpath, nr as normalizeResolvedSecretInputString, q as resolveEffectiveEnableState, z as loadPluginManifestRegistry } from "./config-CHQrpx-Q.js";
|
|
3
|
+
import { O as createSubsystemLogger, Y as resolvePreferredOpenClawTmpDir, a as CONFIG_DIR, y as resolveUserPath } from "./logger-DHIIvMxj.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-C7Vm5DZ1.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import os from "node:os";
|
|
8
|
-
import
|
|
8
|
+
import JSON5 from "json5";
|
|
9
9
|
import { URL as URL$1, fileURLToPath } from "node:url";
|
|
10
10
|
import { formatSkillsForPrompt, loadSkillsFromDir } from "@mariozechner/pi-coding-agent";
|
|
11
11
|
import YAML from "yaml";
|
|
@@ -285,7 +285,7 @@ function resolveOpenClawManifestBlock(params) {
|
|
|
285
285
|
const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
|
|
286
286
|
if (!raw) return;
|
|
287
287
|
try {
|
|
288
|
-
const parsed =
|
|
288
|
+
const parsed = JSON5.parse(raw);
|
|
289
289
|
if (!parsed || typeof parsed !== "object") return;
|
|
290
290
|
const manifestKeys = [MANIFEST_KEY, ...LEGACY_MANIFEST_KEYS];
|
|
291
291
|
for (const key of manifestKeys) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import "./config-CHQrpx-Q.js";
|
|
3
|
+
import "./logger-DHIIvMxj.js";
|
|
4
|
+
import "./paths-0d8fBoC4.js";
|
|
5
|
+
import "./accounts-C1j7HSL0.js";
|
|
6
|
+
import "./plugins-CbCt4osF.js";
|
|
7
|
+
import "./thinking-URzkT-3p.js";
|
|
8
|
+
import "./accounts-DyFCXtHv.js";
|
|
9
|
+
import "./accounts-BJAXxY46.js";
|
|
10
|
+
import "./github-copilot-token-CKKBybuX.js";
|
|
11
|
+
import { f as resolveCommandArgMenu, n as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs } from "./commands-registry-BJ_NxG2F.js";
|
|
12
|
+
|
|
13
|
+
export { buildCommandTextFromArgs, findCommandByNativeName, listNativeCommandSpecsForConfig, parseCommandArgs, resolveCommandArgMenu };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import "./config-CHQrpx-Q.js";
|
|
3
|
+
import "./logger-DHIIvMxj.js";
|
|
4
|
+
import "./paths-0d8fBoC4.js";
|
|
5
|
+
import "./accounts-C1j7HSL0.js";
|
|
6
|
+
import "./plugins-CbCt4osF.js";
|
|
7
|
+
import "./thinking-URzkT-3p.js";
|
|
8
|
+
import "./accounts-DyFCXtHv.js";
|
|
9
|
+
import "./send-BTztm3D2.js";
|
|
10
|
+
import "./common-Cf27Jwxu.js";
|
|
11
|
+
import { H as finalizeInboundContext, O as resolveAgentRoute, S as dispatchReplyWithDispatcher, o as deliverSlackSlashReplies, r as recordInboundSessionMetaSafe, u as createReplyPrefixOptions } from "./reply-CovBlFea.js";
|
|
12
|
+
import "./image-ops-BnZKcbd6.js";
|
|
13
|
+
import { rn as resolveConversationLabel } from "./pi-embedded-helpers-DnA_OCzP.js";
|
|
14
|
+
import "./accounts-BJAXxY46.js";
|
|
15
|
+
import "./send-CWJUuG0i.js";
|
|
16
|
+
import "./github-copilot-token-CKKBybuX.js";
|
|
17
|
+
import "./paths-DopV9PQG.js";
|
|
18
|
+
import "./send-BXpXBwM_.js";
|
|
19
|
+
import "./tokens-B1PW5Ayy.js";
|
|
20
|
+
import "./audio-transcription-runner-CB53F7_7.js";
|
|
21
|
+
import "./image-BwjYjRHx.js";
|
|
22
|
+
import "./chrome-f00sZkDX.js";
|
|
23
|
+
import "./skills-QudILG6e.js";
|
|
24
|
+
import "./path-alias-guards-C7Vm5DZ1.js";
|
|
25
|
+
import "./redact-hp9TOulW.js";
|
|
26
|
+
import "./errors-CtMWwS2Z.js";
|
|
27
|
+
import "./fs-safe-DtfhxbrI.js";
|
|
28
|
+
import "./proxy-env-C63mMdas.js";
|
|
29
|
+
import "./store-BbDQw3g6.js";
|
|
30
|
+
import "./tool-images-xpqbP6RR.js";
|
|
31
|
+
import "./fetch-guard-CxYB5Kg6.js";
|
|
32
|
+
import "./api-key-rotation-8nyyt1kx.js";
|
|
33
|
+
import "./local-roots-KhjQw04O.js";
|
|
34
|
+
import "./proxy-fetch-Ch95c_Y2.js";
|
|
35
|
+
import "./deliver-DNEuetST.js";
|
|
36
|
+
import "./commands-registry-BJ_NxG2F.js";
|
|
37
|
+
import "./skill-commands-DoRqLzxm.js";
|
|
38
|
+
import "./fetch-O45GieZo.js";
|
|
39
|
+
import "./diagnostic-LYUUmjJ5.js";
|
|
40
|
+
import "./pi-model-discovery-DdPqXk8f.js";
|
|
41
|
+
import { m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-Z4hX67TJ.js";
|
|
42
|
+
import "./render-95l30zcf.js";
|
|
43
|
+
import "./send-BvAtLLPl.js";
|
|
44
|
+
import "./outbound-attachment-B1Laso-8.js";
|
|
45
|
+
import "./send-EcglC4cG.js";
|
|
46
|
+
import "./channel-activity-C5y8AgAV.js";
|
|
47
|
+
import "./tables-BhvloMKN.js";
|
|
48
|
+
import "./proxy-BOZmkV9K.js";
|
|
49
|
+
import "./manager-2UZBMCc7.js";
|
|
50
|
+
import "./query-expansion-B_Xe41Ab.js";
|
|
51
|
+
|
|
52
|
+
export { createReplyPrefixOptions, deliverSlackSlashReplies, dispatchReplyWithDispatcher, finalizeInboundContext, recordInboundSessionMetaSafe, resolveAgentRoute, resolveChunkMode, resolveConversationLabel, resolveMarkdownTableMode };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import "./config-CHQrpx-Q.js";
|
|
3
|
+
import "./logger-DHIIvMxj.js";
|
|
4
|
+
import "./paths-0d8fBoC4.js";
|
|
5
|
+
import "./accounts-C1j7HSL0.js";
|
|
6
|
+
import "./plugins-CbCt4osF.js";
|
|
7
|
+
import "./thinking-URzkT-3p.js";
|
|
8
|
+
import "./accounts-DyFCXtHv.js";
|
|
9
|
+
import "./accounts-BJAXxY46.js";
|
|
10
|
+
import "./github-copilot-token-CKKBybuX.js";
|
|
11
|
+
import "./skills-QudILG6e.js";
|
|
12
|
+
import "./path-alias-guards-C7Vm5DZ1.js";
|
|
13
|
+
import "./commands-registry-BJ_NxG2F.js";
|
|
14
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-DoRqLzxm.js";
|
|
15
|
+
|
|
16
|
+
export { listSkillCommandsForAgents };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as resolveConfigDir } from "./logger-
|
|
2
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
1
|
+
import { _ as resolveConfigDir } from "./logger-DHIIvMxj.js";
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-BnZKcbd6.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs$1 from "node:fs/promises";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import "./config-CHQrpx-Q.js";
|
|
3
|
+
import "./logger-DHIIvMxj.js";
|
|
4
|
+
import "./paths-0d8fBoC4.js";
|
|
5
|
+
import "./accounts-C1j7HSL0.js";
|
|
6
|
+
import "./plugins-CbCt4osF.js";
|
|
7
|
+
import "./thinking-URzkT-3p.js";
|
|
8
|
+
import "./accounts-DyFCXtHv.js";
|
|
9
|
+
import "./send-BTztm3D2.js";
|
|
10
|
+
import "./common-Cf27Jwxu.js";
|
|
11
|
+
import { F as resolveRequesterForChildSession, M as countPendingDescendantRuns, N as countPendingDescendantRunsExcludingRun, P as isSubagentSessionRunActive, j as countActiveDescendantRuns } from "./reply-CovBlFea.js";
|
|
12
|
+
import "./image-ops-BnZKcbd6.js";
|
|
13
|
+
import "./pi-embedded-helpers-DnA_OCzP.js";
|
|
14
|
+
import "./accounts-BJAXxY46.js";
|
|
15
|
+
import "./send-CWJUuG0i.js";
|
|
16
|
+
import "./github-copilot-token-CKKBybuX.js";
|
|
17
|
+
import "./paths-DopV9PQG.js";
|
|
18
|
+
import "./send-BXpXBwM_.js";
|
|
19
|
+
import "./tokens-B1PW5Ayy.js";
|
|
20
|
+
import "./audio-transcription-runner-CB53F7_7.js";
|
|
21
|
+
import "./image-BwjYjRHx.js";
|
|
22
|
+
import "./chrome-f00sZkDX.js";
|
|
23
|
+
import "./skills-QudILG6e.js";
|
|
24
|
+
import "./path-alias-guards-C7Vm5DZ1.js";
|
|
25
|
+
import "./redact-hp9TOulW.js";
|
|
26
|
+
import "./errors-CtMWwS2Z.js";
|
|
27
|
+
import "./fs-safe-DtfhxbrI.js";
|
|
28
|
+
import "./proxy-env-C63mMdas.js";
|
|
29
|
+
import "./store-BbDQw3g6.js";
|
|
30
|
+
import "./tool-images-xpqbP6RR.js";
|
|
31
|
+
import "./fetch-guard-CxYB5Kg6.js";
|
|
32
|
+
import "./api-key-rotation-8nyyt1kx.js";
|
|
33
|
+
import "./local-roots-KhjQw04O.js";
|
|
34
|
+
import "./proxy-fetch-Ch95c_Y2.js";
|
|
35
|
+
import "./deliver-DNEuetST.js";
|
|
36
|
+
import "./commands-registry-BJ_NxG2F.js";
|
|
37
|
+
import "./skill-commands-DoRqLzxm.js";
|
|
38
|
+
import "./fetch-O45GieZo.js";
|
|
39
|
+
import "./diagnostic-LYUUmjJ5.js";
|
|
40
|
+
import "./pi-model-discovery-DdPqXk8f.js";
|
|
41
|
+
import "./ir-Z4hX67TJ.js";
|
|
42
|
+
import "./render-95l30zcf.js";
|
|
43
|
+
import "./send-BvAtLLPl.js";
|
|
44
|
+
import "./outbound-attachment-B1Laso-8.js";
|
|
45
|
+
import "./send-EcglC4cG.js";
|
|
46
|
+
import "./channel-activity-C5y8AgAV.js";
|
|
47
|
+
import "./tables-BhvloMKN.js";
|
|
48
|
+
import "./proxy-BOZmkV9K.js";
|
|
49
|
+
import "./manager-2UZBMCc7.js";
|
|
50
|
+
import "./query-expansion-B_Xe41Ab.js";
|
|
51
|
+
|
|
52
|
+
export { countActiveDescendantRuns, countPendingDescendantRuns, countPendingDescendantRunsExcludingRun, isSubagentSessionRunActive, resolveRequesterForChildSession };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { ar as CHAT_CHANNEL_ORDER, mr as requireActivePluginRegistry, or as getChatChannelMeta } from "./config-
|
|
3
|
-
import { h as normalizeE164, u as escapeRegExp } from "./logger-
|
|
4
|
-
import { i as resolveWhatsAppAccount, v as resolveAccountEntry } from "./accounts-
|
|
5
|
-
import { C as normalizeWhatsAppTarget, b as resolveDiscordAccount, l as resolveTelegramAccount, m as resolveSlackReplyToMode, p as resolveSlackAccount } from "./plugins-
|
|
6
|
-
import { t as resolveIMessageAccount } from "./accounts-
|
|
7
|
-
import { n as resolveSignalAccount } from "./accounts-
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import { ar as CHAT_CHANNEL_ORDER, mr as requireActivePluginRegistry, or as getChatChannelMeta } from "./config-CHQrpx-Q.js";
|
|
3
|
+
import { h as normalizeE164, u as escapeRegExp } from "./logger-DHIIvMxj.js";
|
|
4
|
+
import { i as resolveWhatsAppAccount, v as resolveAccountEntry } from "./accounts-C1j7HSL0.js";
|
|
5
|
+
import { C as normalizeWhatsAppTarget, b as resolveDiscordAccount, l as resolveTelegramAccount, m as resolveSlackReplyToMode, p as resolveSlackAccount } from "./plugins-CbCt4osF.js";
|
|
6
|
+
import { t as resolveIMessageAccount } from "./accounts-DyFCXtHv.js";
|
|
7
|
+
import { n as resolveSignalAccount } from "./accounts-BJAXxY46.js";
|
|
8
8
|
|
|
9
9
|
//#region src/channels/plugins/normalize/shared.ts
|
|
10
10
|
function trimMessagingTarget(raw) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as createSubsystemLogger } from "./logger-
|
|
2
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
1
|
+
import { O as createSubsystemLogger } from "./logger-DHIIvMxj.js";
|
|
2
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-BnZKcbd6.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/base64.ts
|
|
5
5
|
function estimateBase64DecodedBytes(base64) {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import "./config-CHQrpx-Q.js";
|
|
3
|
+
import "./logger-DHIIvMxj.js";
|
|
4
|
+
import "./paths-0d8fBoC4.js";
|
|
5
|
+
import { _ as webAuthExists, c as logWebSelfId, d as pickWebChannel, o as WA_WEB_AUTH_DIR } from "./accounts-C1j7HSL0.js";
|
|
6
|
+
import "./plugins-CbCt4osF.js";
|
|
7
|
+
import "./thinking-URzkT-3p.js";
|
|
8
|
+
import "./accounts-DyFCXtHv.js";
|
|
9
|
+
import "./send-BTztm3D2.js";
|
|
10
|
+
import "./common-Cf27Jwxu.js";
|
|
11
|
+
import "./reply-CovBlFea.js";
|
|
12
|
+
import "./image-ops-BnZKcbd6.js";
|
|
13
|
+
import "./pi-embedded-helpers-DnA_OCzP.js";
|
|
14
|
+
import "./accounts-BJAXxY46.js";
|
|
15
|
+
import "./send-CWJUuG0i.js";
|
|
16
|
+
import "./github-copilot-token-CKKBybuX.js";
|
|
17
|
+
import "./paths-DopV9PQG.js";
|
|
18
|
+
import "./send-BXpXBwM_.js";
|
|
19
|
+
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-DBTRO03V.js";
|
|
20
|
+
import "./tokens-B1PW5Ayy.js";
|
|
21
|
+
import "./audio-transcription-runner-CB53F7_7.js";
|
|
22
|
+
import "./image-BwjYjRHx.js";
|
|
23
|
+
import "./chrome-f00sZkDX.js";
|
|
24
|
+
import "./skills-QudILG6e.js";
|
|
25
|
+
import "./path-alias-guards-C7Vm5DZ1.js";
|
|
26
|
+
import "./redact-hp9TOulW.js";
|
|
27
|
+
import "./errors-CtMWwS2Z.js";
|
|
28
|
+
import "./fs-safe-DtfhxbrI.js";
|
|
29
|
+
import "./proxy-env-C63mMdas.js";
|
|
30
|
+
import "./store-BbDQw3g6.js";
|
|
31
|
+
import "./tool-images-xpqbP6RR.js";
|
|
32
|
+
import "./fetch-guard-CxYB5Kg6.js";
|
|
33
|
+
import "./api-key-rotation-8nyyt1kx.js";
|
|
34
|
+
import "./local-roots-KhjQw04O.js";
|
|
35
|
+
import "./proxy-fetch-Ch95c_Y2.js";
|
|
36
|
+
import "./deliver-DNEuetST.js";
|
|
37
|
+
import "./commands-registry-BJ_NxG2F.js";
|
|
38
|
+
import "./skill-commands-DoRqLzxm.js";
|
|
39
|
+
import "./fetch-O45GieZo.js";
|
|
40
|
+
import "./diagnostic-LYUUmjJ5.js";
|
|
41
|
+
import "./pi-model-discovery-DdPqXk8f.js";
|
|
42
|
+
import "./ir-Z4hX67TJ.js";
|
|
43
|
+
import "./render-95l30zcf.js";
|
|
44
|
+
import "./send-BvAtLLPl.js";
|
|
45
|
+
import "./outbound-attachment-B1Laso-8.js";
|
|
46
|
+
import "./send-EcglC4cG.js";
|
|
47
|
+
import "./channel-activity-C5y8AgAV.js";
|
|
48
|
+
import "./tables-BhvloMKN.js";
|
|
49
|
+
import "./proxy-BOZmkV9K.js";
|
|
50
|
+
import "./manager-2UZBMCc7.js";
|
|
51
|
+
import "./query-expansion-B_Xe41Ab.js";
|
|
52
|
+
import { t as sendMessageWhatsApp } from "./outbound-Ba0QUI5h.js";
|
|
53
|
+
import { i as waitForWaConnection, t as createWaSocket } from "./session-k256LJZT.js";
|
|
54
|
+
import { t as loginWeb } from "./login-C31642Ld.js";
|
|
55
|
+
|
|
56
|
+
export { WA_WEB_AUTH_DIR, createWaSocket, logWebSelfId, loginWeb, monitorWebChannel, monitorWebInbox, pickWebChannel, sendMessageWhatsApp, waitForWaConnection, webAuthExists };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./logger-
|
|
1
|
+
import "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import "./config-CHQrpx-Q.js";
|
|
3
|
+
import "./logger-DHIIvMxj.js";
|
|
4
4
|
import "./paths-0d8fBoC4.js";
|
|
5
|
-
import { i as resolveWhatsAppAccount } from "./accounts-
|
|
6
|
-
import "./plugins-
|
|
7
|
-
import { f as readStringParam, l as readReactionParams, o as jsonResult, r as createActionGate, t as ToolAuthorizationError } from "./common-
|
|
8
|
-
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-
|
|
9
|
-
import "./image-ops-
|
|
5
|
+
import { i as resolveWhatsAppAccount } from "./accounts-C1j7HSL0.js";
|
|
6
|
+
import "./plugins-CbCt4osF.js";
|
|
7
|
+
import { f as readStringParam, l as readReactionParams, o as jsonResult, r as createActionGate, t as ToolAuthorizationError } from "./common-Cf27Jwxu.js";
|
|
8
|
+
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-BbrHgyUk.js";
|
|
9
|
+
import "./image-ops-BnZKcbd6.js";
|
|
10
10
|
import "./github-copilot-token-CKKBybuX.js";
|
|
11
|
-
import "./path-alias-guards-
|
|
12
|
-
import "./fs-safe-
|
|
13
|
-
import "./proxy-env-
|
|
14
|
-
import "./tool-images-
|
|
15
|
-
import "./fetch-guard-
|
|
16
|
-
import "./local-roots-
|
|
17
|
-
import "./ir-
|
|
11
|
+
import "./path-alias-guards-C7Vm5DZ1.js";
|
|
12
|
+
import "./fs-safe-DtfhxbrI.js";
|
|
13
|
+
import "./proxy-env-C63mMdas.js";
|
|
14
|
+
import "./tool-images-xpqbP6RR.js";
|
|
15
|
+
import "./fetch-guard-CxYB5Kg6.js";
|
|
16
|
+
import "./local-roots-KhjQw04O.js";
|
|
17
|
+
import "./ir-Z4hX67TJ.js";
|
|
18
18
|
import "./render-95l30zcf.js";
|
|
19
|
-
import "./tables-
|
|
20
|
-
import { r as sendReactionWhatsApp } from "./outbound-
|
|
19
|
+
import "./tables-BhvloMKN.js";
|
|
20
|
+
import { r as sendReactionWhatsApp } from "./outbound-Ba0QUI5h.js";
|
|
21
21
|
|
|
22
22
|
//#region src/agents/tools/whatsapp-target-auth.ts
|
|
23
23
|
function resolveAuthorizedWhatsAppOutboundTarget(params) {
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { Tr as formatCliCommand, c as WhatsAppConfigSchema, or as getChatChannelMeta } from "./config-
|
|
3
|
-
import { f as isRecord, g as pathExists, h as normalizeE164 } from "./logger-
|
|
1
|
+
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId } from "./run-with-concurrency-BR1DXa8T.js";
|
|
2
|
+
import { Tr as formatCliCommand, c as WhatsAppConfigSchema, or as getChatChannelMeta } from "./config-CHQrpx-Q.js";
|
|
3
|
+
import { f as isRecord, g as pathExists, h as normalizeE164 } from "./logger-DHIIvMxj.js";
|
|
4
4
|
import "./paths-0d8fBoC4.js";
|
|
5
|
-
import { a as resolveWhatsAppAuthDir, i as resolveWhatsAppAccount, n as listWhatsAppAccountIds, r as resolveDefaultWhatsAppAccountId } from "./accounts-
|
|
6
|
-
import { a as listWhatsAppDirectoryPeersFromConfig, i as listWhatsAppDirectoryGroupsFromConfig } from "./plugins-
|
|
7
|
-
import { D as resolveWhatsAppConfigDefaultTo, E as resolveWhatsAppConfigAllowFrom, O as looksLikeWhatsAppTargetId, T as formatWhatsAppConfigAllowFromEntries, _ as resolveWhatsAppGroupToolPolicy, g as resolveWhatsAppGroupRequireMention, h as resolveWhatsAppMentionStripPatterns, k as normalizeWhatsAppMessagingTarget, m as resolveWhatsAppGroupIntroHint } from "./thinking-
|
|
8
|
-
import "./accounts-
|
|
9
|
-
import "./send-
|
|
10
|
-
import { f as readStringParam, r as createActionGate } from "./common-
|
|
11
|
-
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-
|
|
12
|
-
import { U as resolveAllowlistProviderRuntimeGroupPolicy, W as resolveDefaultGroupPolicy, n as formatDocsLink } from "./reply-
|
|
13
|
-
import "./image-ops-
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import "./accounts-
|
|
16
|
-
import "./send-
|
|
5
|
+
import { a as resolveWhatsAppAuthDir, i as resolveWhatsAppAccount, n as listWhatsAppAccountIds, r as resolveDefaultWhatsAppAccountId } from "./accounts-C1j7HSL0.js";
|
|
6
|
+
import { a as listWhatsAppDirectoryPeersFromConfig, i as listWhatsAppDirectoryGroupsFromConfig } from "./plugins-CbCt4osF.js";
|
|
7
|
+
import { D as resolveWhatsAppConfigDefaultTo, E as resolveWhatsAppConfigAllowFrom, O as looksLikeWhatsAppTargetId, T as formatWhatsAppConfigAllowFromEntries, _ as resolveWhatsAppGroupToolPolicy, g as resolveWhatsAppGroupRequireMention, h as resolveWhatsAppMentionStripPatterns, k as normalizeWhatsAppMessagingTarget, m as resolveWhatsAppGroupIntroHint } from "./thinking-URzkT-3p.js";
|
|
8
|
+
import "./accounts-DyFCXtHv.js";
|
|
9
|
+
import "./send-BTztm3D2.js";
|
|
10
|
+
import { f as readStringParam, r as createActionGate } from "./common-Cf27Jwxu.js";
|
|
11
|
+
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-BbrHgyUk.js";
|
|
12
|
+
import { U as resolveAllowlistProviderRuntimeGroupPolicy, W as resolveDefaultGroupPolicy, n as formatDocsLink } from "./reply-CovBlFea.js";
|
|
13
|
+
import "./image-ops-BnZKcbd6.js";
|
|
14
|
+
import "./pi-embedded-helpers-DnA_OCzP.js";
|
|
15
|
+
import "./accounts-BJAXxY46.js";
|
|
16
|
+
import "./send-CWJUuG0i.js";
|
|
17
17
|
import "./github-copilot-token-CKKBybuX.js";
|
|
18
|
-
import "./paths-
|
|
19
|
-
import "./send-
|
|
20
|
-
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-
|
|
21
|
-
import "./tokens-
|
|
22
|
-
import "./audio-transcription-runner-
|
|
23
|
-
import "./image-
|
|
24
|
-
import "./chrome-
|
|
25
|
-
import "./skills-
|
|
26
|
-
import "./path-alias-guards-
|
|
27
|
-
import "./redact-
|
|
28
|
-
import "./errors-
|
|
29
|
-
import "./fs-safe-
|
|
30
|
-
import "./proxy-env-
|
|
31
|
-
import "./store-
|
|
32
|
-
import "./tool-images-
|
|
33
|
-
import "./fetch-guard-
|
|
34
|
-
import "./api-key-rotation-
|
|
35
|
-
import "./local-roots-
|
|
36
|
-
import "./proxy-fetch-
|
|
37
|
-
import "./deliver-
|
|
38
|
-
import "./commands-registry-
|
|
39
|
-
import "./skill-commands-
|
|
18
|
+
import "./paths-DopV9PQG.js";
|
|
19
|
+
import "./send-BXpXBwM_.js";
|
|
20
|
+
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-DBTRO03V.js";
|
|
21
|
+
import "./tokens-B1PW5Ayy.js";
|
|
22
|
+
import "./audio-transcription-runner-CB53F7_7.js";
|
|
23
|
+
import "./image-BwjYjRHx.js";
|
|
24
|
+
import "./chrome-f00sZkDX.js";
|
|
25
|
+
import "./skills-QudILG6e.js";
|
|
26
|
+
import "./path-alias-guards-C7Vm5DZ1.js";
|
|
27
|
+
import "./redact-hp9TOulW.js";
|
|
28
|
+
import "./errors-CtMWwS2Z.js";
|
|
29
|
+
import "./fs-safe-DtfhxbrI.js";
|
|
30
|
+
import "./proxy-env-C63mMdas.js";
|
|
31
|
+
import "./store-BbDQw3g6.js";
|
|
32
|
+
import "./tool-images-xpqbP6RR.js";
|
|
33
|
+
import "./fetch-guard-CxYB5Kg6.js";
|
|
34
|
+
import "./api-key-rotation-8nyyt1kx.js";
|
|
35
|
+
import "./local-roots-KhjQw04O.js";
|
|
36
|
+
import "./proxy-fetch-Ch95c_Y2.js";
|
|
37
|
+
import "./deliver-DNEuetST.js";
|
|
38
|
+
import "./commands-registry-BJ_NxG2F.js";
|
|
39
|
+
import "./skill-commands-DoRqLzxm.js";
|
|
40
40
|
import "./fetch-O45GieZo.js";
|
|
41
|
-
import "./diagnostic-
|
|
42
|
-
import "./pi-model-discovery-
|
|
43
|
-
import "./ir-
|
|
41
|
+
import "./diagnostic-LYUUmjJ5.js";
|
|
42
|
+
import "./pi-model-discovery-DdPqXk8f.js";
|
|
43
|
+
import "./ir-Z4hX67TJ.js";
|
|
44
44
|
import "./render-95l30zcf.js";
|
|
45
|
-
import "./send-
|
|
46
|
-
import "./outbound-attachment-
|
|
47
|
-
import "./send-
|
|
48
|
-
import "./channel-activity-
|
|
49
|
-
import "./tables-
|
|
45
|
+
import "./send-BvAtLLPl.js";
|
|
46
|
+
import "./outbound-attachment-B1Laso-8.js";
|
|
47
|
+
import "./send-EcglC4cG.js";
|
|
48
|
+
import "./channel-activity-C5y8AgAV.js";
|
|
49
|
+
import "./tables-BhvloMKN.js";
|
|
50
50
|
import "./proxy-BOZmkV9K.js";
|
|
51
|
-
import "./manager-
|
|
52
|
-
import "./query-expansion-
|
|
53
|
-
import "./outbound-
|
|
54
|
-
import "./session-
|
|
55
|
-
import { t as loginWeb } from "./login-
|
|
51
|
+
import "./manager-2UZBMCc7.js";
|
|
52
|
+
import "./query-expansion-B_Xe41Ab.js";
|
|
53
|
+
import "./outbound-Ba0QUI5h.js";
|
|
54
|
+
import "./session-k256LJZT.js";
|
|
55
|
+
import { t as loginWeb } from "./login-C31642Ld.js";
|
|
56
56
|
import path from "node:path";
|
|
57
57
|
|
|
58
58
|
//#region src/plugins/config-schema.ts
|
package/package.json
CHANGED
package/scripts/npm_publish.sh
CHANGED
|
@@ -55,27 +55,27 @@ rm -rf node_modules 2>/dev/null || true
|
|
|
55
55
|
cd - > /dev/null
|
|
56
56
|
echo -e "${GREEN}[OK]${NC}"
|
|
57
57
|
|
|
58
|
-
# 2. 准备主项目环境 (增强型权限穿透逻辑)
|
|
59
|
-
echo -ne "${YELLOW}🌐 建立强制 HTTPS
|
|
58
|
+
# 2. 准备主项目环境 (增强型权限穿透逻辑 + 强制重刷锁文件)
|
|
59
|
+
echo -ne "${YELLOW}🌐 建立强制 HTTPS 隧道并重置依赖树... ${NC}"
|
|
60
60
|
|
|
61
61
|
# 2.1 全局 Git 配置覆盖
|
|
62
62
|
git config --global url."https://github.com/".insteadOf "git@github.com:"
|
|
63
63
|
|
|
64
|
-
# 2.2 环境变量注入
|
|
64
|
+
# 2.2 环境变量注入
|
|
65
65
|
export GIT_CONFIG_COUNT=1
|
|
66
66
|
export GIT_CONFIG_KEY_0="url.https://github.com/.insteadOf"
|
|
67
67
|
export GIT_CONFIG_VALUE_0="git@github.com:"
|
|
68
68
|
|
|
69
|
-
# 2.3 pnpm
|
|
69
|
+
# 2.3 pnpm 特有配置
|
|
70
70
|
pnpm config set git-shorthand-stderr false > /dev/null 2>&1
|
|
71
71
|
|
|
72
|
-
#
|
|
72
|
+
# 退出清理陷阱
|
|
73
73
|
trap 'git config --global --unset url."https://github.com/".insteadOf "git@github.com:"; unset GIT_CONFIG_COUNT GIT_CONFIG_KEY_0 GIT_CONFIG_VALUE_0; rm -rf "$TEST_DIR" "$PACK_NAME" .npmignore .pnpm_error.log .load_error.log 2>/dev/null' EXIT
|
|
74
74
|
|
|
75
|
-
#
|
|
75
|
+
# 【关键修改】彻底删除旧的锁文件,防止其中残留的 Git/SSH 地址导致安装失败
|
|
76
76
|
rm -rf dist node_modules pnpm-lock.yaml .cache 2>/dev/null || true
|
|
77
77
|
|
|
78
|
-
# 执行安装 (使用 --no-frozen-lockfile 强制重新解析
|
|
78
|
+
# 执行安装 (使用 --no-frozen-lockfile 强制重新解析 package.json 里的 file: 协议)
|
|
79
79
|
if ! pnpm install --no-frozen-lockfile --prefer-offline --registry=https://registry.npmmirror.com > .pnpm_error.log 2>&1; then
|
|
80
80
|
echo -e "${RED}[失败]${NC}"
|
|
81
81
|
echo -e "${YELLOW}--- 错误诊断 (Git 权限拦截或网络问题) ---${NC}"
|
|
@@ -92,22 +92,21 @@ echo -e "${GREEN}[OK]${NC}"
|
|
|
92
92
|
|
|
93
93
|
# 4. 物理打包与完整性校验
|
|
94
94
|
echo -ne "${YELLOW}🔍 正在生成生产压缩包... ${NC}"
|
|
95
|
-
# 强制创建 .npmignore 确保 vendor 物理打入 (防止被主项目的 .gitignore 排除)
|
|
96
95
|
printf "node_modules/\n.git/\n" > .npmignore
|
|
97
96
|
|
|
98
97
|
PACK_NAME=$(npm pack 2>/dev/null)
|
|
99
98
|
rm .npmignore
|
|
100
99
|
|
|
101
|
-
#
|
|
100
|
+
# 校验压缩包内部路径
|
|
102
101
|
if tar -tf "$PACK_NAME" | grep -q "package/vendor/libsignal-node/"; then
|
|
103
102
|
PACK_SIZE=$(du -h "$PACK_NAME" | cut -f1)
|
|
104
103
|
echo -e "${GREEN}[OK]${NC} (体积: $PACK_SIZE)"
|
|
105
104
|
else
|
|
106
|
-
echo -e "${RED}[失败]${NC}\n❌ 压缩包内缺失 vendor
|
|
105
|
+
echo -e "${RED}[失败]${NC}\n❌ 压缩包内缺失 vendor 目录内容"
|
|
107
106
|
exit 1
|
|
108
107
|
fi
|
|
109
108
|
|
|
110
|
-
# 5. 模拟安装测试
|
|
109
|
+
# 5. 模拟安装测试
|
|
111
110
|
echo -ne "${YELLOW}🧪 执行隔离环境加载测试... ${NC}"
|
|
112
111
|
TEST_DIR=$(mktemp -d)
|
|
113
112
|
cp "$PACK_NAME" "$TEST_DIR/"
|
|
@@ -117,7 +116,7 @@ cd package
|
|
|
117
116
|
# 模拟生产安装 (仅安装生产依赖)
|
|
118
117
|
npm install --production --no-package-lock --registry=https://registry.npmmirror.com > /dev/null 2>&1
|
|
119
118
|
|
|
120
|
-
#
|
|
119
|
+
# 尝试运行入口文件
|
|
121
120
|
if ! node -e "require('./dist/index.js')" > .load_error.log 2>&1; then
|
|
122
121
|
echo -e "${RED}[失败]${NC}"
|
|
123
122
|
echo -e "${YELLOW}--- 运行时报错详细信息 ---${NC}"
|
|
@@ -125,24 +124,21 @@ if ! node -e "require('./dist/index.js')" > .load_error.log 2>&1; then
|
|
|
125
124
|
exit 1
|
|
126
125
|
fi
|
|
127
126
|
|
|
128
|
-
#
|
|
127
|
+
# 【修正】显式回到根目录
|
|
129
128
|
cd "$ROOT_DIR"
|
|
130
129
|
echo -e "${GREEN}[通过]${NC}"
|
|
131
130
|
|
|
132
131
|
# 6. 正式发布
|
|
133
|
-
# 【修正】使用绝对路径读取 package.json 防止目录偏移
|
|
134
132
|
CUR_VERSION=$(node -e "console.log(require('$ROOT_DIR/package.json').version)")
|
|
135
133
|
echo -e "${BLUE}🚀 正在发布 v${CUR_VERSION} 到 npmjs.org...${NC}"
|
|
136
134
|
|
|
137
|
-
# 发布经过校验的压缩包
|
|
138
135
|
npm publish "$PACK_NAME" --registry=https://registry.npmjs.org --access public
|
|
139
136
|
|
|
140
137
|
# 7. 镜像同步
|
|
141
138
|
echo -ne "${YELLOW}🔄 通知淘宝镜像同步... ${NC}"
|
|
142
|
-
# 【修正】使用绝对路径读取 package.json
|
|
143
139
|
PKG_NAME=$(node -e "console.log(require('$ROOT_DIR/package.json').name)")
|
|
144
140
|
curl -s -X PUT "https://registry-direct.npmmirror.com/${PKG_NAME}/sync?publish=true" > /dev/null && echo -e "${GREEN}[完成]${NC}"
|
|
145
141
|
|
|
146
142
|
echo -e "${GREEN}================================================${NC}"
|
|
147
|
-
echo -e "${GREEN}🎉 OpenClaw
|
|
143
|
+
echo -e "${GREEN}🎉 OpenClaw 发布成功!Git 依赖已彻底转为本地 Vendor。${NC}"
|
|
148
144
|
echo -e "${GREEN}================================================${NC}"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-C_KCHwvf.js";
|
|
2
|
-
import "./config-B1z-UxQ3.js";
|
|
3
|
-
import "./logger-CvPFVOgT.js";
|
|
4
|
-
import "./paths-0d8fBoC4.js";
|
|
5
|
-
import "./accounts-CNCCkdEF.js";
|
|
6
|
-
import "./plugins-C4USiH29.js";
|
|
7
|
-
import "./thinking-DOnsR_A8.js";
|
|
8
|
-
import "./accounts-BslAlVYS.js";
|
|
9
|
-
import "./image-ops-Cbzr4U9l.js";
|
|
10
|
-
import "./pi-embedded-helpers-DIxXkGJf.js";
|
|
11
|
-
import "./accounts-C3m65--E.js";
|
|
12
|
-
import "./github-copilot-token-CKKBybuX.js";
|
|
13
|
-
import "./paths-Dpg3qxcl.js";
|
|
14
|
-
import "./tokens-BDr0Z9o3.js";
|
|
15
|
-
import "./chrome-CjNTuJML.js";
|
|
16
|
-
import "./skills-Cw_vXEJb.js";
|
|
17
|
-
import "./path-alias-guards-sWayacde.js";
|
|
18
|
-
import "./redact-Bvxt1T_Q.js";
|
|
19
|
-
import "./errors-B3cHyZZA.js";
|
|
20
|
-
import "./fs-safe-BaKqI3G4.js";
|
|
21
|
-
import "./proxy-env-ET-rp8eg.js";
|
|
22
|
-
import "./store-CMHj6IIw.js";
|
|
23
|
-
import "./tool-images-eEfOVkzf.js";
|
|
24
|
-
import "./fetch-guard-Dcgod0tg.js";
|
|
25
|
-
import "./local-roots-CIPRxA-4.js";
|
|
26
|
-
import { t as deliverOutboundPayloads } from "./deliver-D5_6T567.js";
|
|
27
|
-
import "./fetch-O45GieZo.js";
|
|
28
|
-
import "./ir-ZEmrTr4J.js";
|
|
29
|
-
import "./send-BZ6nYFZr.js";
|
|
30
|
-
import "./outbound-attachment-BzVhxRRw.js";
|
|
31
|
-
|
|
32
|
-
export { deliverOutboundPayloads };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-C_KCHwvf.js";
|
|
2
|
-
import "./config-B1z-UxQ3.js";
|
|
3
|
-
import "./logger-CvPFVOgT.js";
|
|
4
|
-
import "./paths-0d8fBoC4.js";
|
|
5
|
-
import "./accounts-CNCCkdEF.js";
|
|
6
|
-
import "./plugins-C4USiH29.js";
|
|
7
|
-
import "./image-ops-Cbzr4U9l.js";
|
|
8
|
-
import { h as sendMessageDiscord } from "./send-CFf-1V89.js";
|
|
9
|
-
import "./github-copilot-token-CKKBybuX.js";
|
|
10
|
-
import "./path-alias-guards-sWayacde.js";
|
|
11
|
-
import "./redact-Bvxt1T_Q.js";
|
|
12
|
-
import "./errors-B3cHyZZA.js";
|
|
13
|
-
import "./fs-safe-BaKqI3G4.js";
|
|
14
|
-
import "./proxy-env-ET-rp8eg.js";
|
|
15
|
-
import "./fetch-guard-Dcgod0tg.js";
|
|
16
|
-
import "./local-roots-CIPRxA-4.js";
|
|
17
|
-
import "./fetch-O45GieZo.js";
|
|
18
|
-
import "./ir-ZEmrTr4J.js";
|
|
19
|
-
import "./render-95l30zcf.js";
|
|
20
|
-
import "./channel-activity-WJYxcJ3S.js";
|
|
21
|
-
import "./tables-CSqrHsKL.js";
|
|
22
|
-
|
|
23
|
-
export { sendMessageDiscord };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import "./run-with-concurrency-C_KCHwvf.js";
|
|
2
|
-
import "./config-B1z-UxQ3.js";
|
|
3
|
-
import "./logger-CvPFVOgT.js";
|
|
4
|
-
import "./paths-0d8fBoC4.js";
|
|
5
|
-
import "./accounts-CNCCkdEF.js";
|
|
6
|
-
import "./plugins-C4USiH29.js";
|
|
7
|
-
import "./accounts-BslAlVYS.js";
|
|
8
|
-
import "./image-ops-Cbzr4U9l.js";
|
|
9
|
-
import "./github-copilot-token-CKKBybuX.js";
|
|
10
|
-
import "./path-alias-guards-sWayacde.js";
|
|
11
|
-
import "./fs-safe-BaKqI3G4.js";
|
|
12
|
-
import "./proxy-env-ET-rp8eg.js";
|
|
13
|
-
import "./store-CMHj6IIw.js";
|
|
14
|
-
import "./fetch-guard-Dcgod0tg.js";
|
|
15
|
-
import "./local-roots-CIPRxA-4.js";
|
|
16
|
-
import "./ir-ZEmrTr4J.js";
|
|
17
|
-
import "./render-95l30zcf.js";
|
|
18
|
-
import "./outbound-attachment-BzVhxRRw.js";
|
|
19
|
-
import { t as sendMessageIMessage } from "./send-CY-Qfwia.js";
|
|
20
|
-
import "./tables-CSqrHsKL.js";
|
|
21
|
-
|
|
22
|
-
export { sendMessageIMessage };
|