@openclaw/whatsapp 2026.7.2-beta.2 → 2026.7.2-beta.4
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/{access-control-DazDX3RB.js → access-control-CRz_v6bR.js} +4 -5
- package/dist/{accounts-CKOFMPf-.js → accounts-CxPuEFi-.js} +44 -4
- package/dist/{action-runtime-Bf-12TIH.js → action-runtime-CHU7xb6o.js} +2 -2
- package/dist/action-runtime-api.js +1 -1
- package/dist/action-runtime.runtime.js +1 -1
- package/dist/{active-listener-5kHap439.js → active-listener-BEjWsCNM.js} +1 -1
- package/dist/api.js +12 -15
- package/dist/{approval-handler.runtime-CBiGQuZ5.js → approval-handler.runtime-C4ddB7Kc.js} +4 -4
- package/dist/{approval-reactions-BGQoz25s.js → approval-reactions-P2HXjmln.js} +3 -3
- package/dist/{auth-store-BQi9pZqQ.js → auth-store-DirYMTbo.js} +4 -3
- package/dist/call-tool-api.js +4 -4
- package/dist/{channel-DbadDUDD.js → channel-B9xjrOGG.js} +37 -19
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel-react-action-PoRWfP9x.js → channel-react-action-CBW-PA8q.js} +10 -13
- package/dist/{channel.runtime-BDDy4Lhz.js → channel.runtime-DdKuhlNu.js} +5 -5
- package/dist/{channel.setup-BZ-po8fg.js → channel.setup-DXUCPHel.js} +3 -6
- package/dist/{config-schema-BZ8h1hWA.js → config-schema-C6IeKIC0.js} +6 -0
- package/dist/{connection-controller-C1rwfWb4.js → connection-controller-BVRExqrB.js} +186 -27
- package/dist/connection-controller-runtime-context-DG0tuYuw.js +23 -0
- package/dist/contract-api.js +1 -1
- package/dist/directory-config-BTbJkV1W.js +196 -0
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-CwzVXKoE.js +10 -0
- package/dist/doctor-contract-api.js +35 -79
- package/dist/{group-session-key-CLTZeH_F.js → group-session-key-DJSdYfnb.js} +9 -4
- package/dist/{identity-D7L8LCuH.js → identity-BM4_wZeM.js} +2 -2
- package/dist/light-runtime-api.js +2 -2
- package/dist/{login-DGIoToX8.js → login-BKUm7KSk.js} +6 -7
- package/dist/{login-qr-X-CZHOk9.js → login-qr-DagJvMbg.js} +7 -8
- package/dist/login-qr-runtime.js +1 -1
- package/dist/{monitor-BZ8QvCeV.js → monitor-CBVNJ2lb.js} +623 -400
- package/dist/question-reactions-CaOrSYzU.js +142 -0
- package/dist/runtime-BLlToOi6.js +21 -0
- package/dist/runtime-api.js +10 -10
- package/dist/runtime-setter-api.js +1 -1
- package/dist/{send-D9Ydnn4o.js → send-DhJVN30g.js} +38 -85
- package/dist/{send-api-W33lI2nR.js → send-api-CpHwbor_.js} +38 -32
- package/dist/{setup-finalize-DBf1jjBj.js → setup-finalize-9XzKdFq6.js} +3 -3
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-CiKGdNJv.js → setup-surface-Kv3mPki2.js} +3 -3
- package/dist/{setup-core-3aSOoK2T.js → shared-CuqHFnKd.js} +78 -56
- package/dist/{session-mxWFn0eS.js → socket-close-BoSHhQNJ.js} +226 -7
- package/dist/{targets-runtime-Bsh0HR9y.js → targets-runtime-CKFrhoX4.js} +142 -29
- package/dist/text-runtime-CU_IlbK5.js +4 -0
- package/node_modules/@protobufjs/utf8/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/utf8/index.js +29 -18
- package/node_modules/@protobufjs/utf8/package.json +2 -2
- package/node_modules/@protobufjs/utf8/tests/index.js +5 -0
- package/node_modules/@thi.ng/bitstream/package.json +4 -4
- package/node_modules/@thi.ng/errors/package.json +4 -4
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/fs/promises.d.ts +16 -6
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/audio-type/package.json +3 -2
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +11 -4
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.js +11 -4
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.js +11 -4
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.js +11 -4
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.js +11 -4
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.js +11 -4
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +3 -3
- package/node_modules/lru-cache/package.json +1 -1
- package/node_modules/music-metadata/lib/common/Util.d.ts +1 -1
- package/node_modules/music-metadata/lib/common/Util.js +7 -1
- package/node_modules/music-metadata/lib/id3v2/FrameHeader.js +23 -3
- package/node_modules/music-metadata/lib/id3v2/FrameParser.js +2 -2
- package/node_modules/music-metadata/lib/id3v2/ID3v2Token.js +1 -1
- package/node_modules/music-metadata/lib/mp4/AtomToken.js +38 -13
- package/node_modules/music-metadata/lib/mpeg/MpegParser.js +1 -1
- package/node_modules/music-metadata/package.json +6 -6
- package/node_modules/p-queue/dist/index.js +17 -6
- package/node_modules/p-queue/package.json +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.js +145 -188
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +33 -76
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +168 -208
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/index.d.ts +0 -8
- package/node_modules/protobufjs/package.json +2 -3
- package/node_modules/protobufjs/src/parse.js +3 -0
- package/node_modules/protobufjs/src/util/minimal.js +0 -3
- package/node_modules/typebox/build/compile/validator.d.mts +1 -4
- package/node_modules/typebox/build/guard/guard.d.mts +1 -1
- package/node_modules/typebox/build/guard/guard.mjs +5 -2
- package/node_modules/typebox/build/guard/string.mjs +16 -4
- package/node_modules/typebox/build/schema/engine/_functions.mjs +34 -15
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +5 -0
- package/node_modules/typebox/build/type/action/readonly_object.mjs +8 -0
- package/node_modules/typebox/build/typebox.d.mts +1 -1
- package/node_modules/typebox/build/typebox.mjs +1 -1
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +29 -32
- package/node_modules/ws/lib/receiver.js +15 -32
- package/node_modules/ws/lib/websocket-server.js +4 -4
- package/node_modules/ws/lib/websocket.js +4 -4
- package/node_modules/ws/package.json +5 -1
- package/npm-shrinkwrap.json +41 -45
- package/openclaw.plugin.json +139 -179
- package/package.json +21 -11
- package/dist/account-config-LiT9wWH9.js +0 -43
- package/dist/connection-controller-runtime-context-CbTsqmPT.js +0 -14
- package/dist/directory-config-CLBQrjtC.js +0 -37
- package/dist/doctor-By3SB4lm.js +0 -48
- package/dist/runtime-BfAdAEYT.js +0 -8
- package/dist/text-runtime-BTGkMN0o.js +0 -4
- package/node_modules/@protobufjs/inquire/CHANGELOG.md +0 -8
- package/node_modules/@protobufjs/inquire/LICENSE +0 -26
- package/node_modules/@protobufjs/inquire/README.md +0 -13
- package/node_modules/@protobufjs/inquire/index.d.ts +0 -10
- package/node_modules/@protobufjs/inquire/index.js +0 -38
- package/node_modules/@protobufjs/inquire/package.json +0 -21
- package/node_modules/@protobufjs/inquire/tests/data/array.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/data/object.js +0 -1
- package/node_modules/@protobufjs/inquire/tests/index.js +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/whatsapp",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.4",
|
|
4
4
|
"description": "OpenClaw WhatsApp channel plugin for WhatsApp Web chats.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"audio-decode": "2.2.3",
|
|
12
12
|
"baileys": "7.0.0-rc13",
|
|
13
|
-
"typebox": "1.3.
|
|
13
|
+
"typebox": "1.3.6"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.7.2-beta.
|
|
16
|
+
"openclaw": ">=2026.7.2-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -26,11 +26,15 @@
|
|
|
26
26
|
],
|
|
27
27
|
"setupEntry": "./dist/setup-entry.js",
|
|
28
28
|
"setupFeatures": {
|
|
29
|
+
"configPromotion": true,
|
|
29
30
|
"legacyStateMigrations": true,
|
|
30
31
|
"legacySessionSurfaces": true
|
|
31
32
|
},
|
|
32
33
|
"channel": {
|
|
33
34
|
"id": "whatsapp",
|
|
35
|
+
"approvalFlags": [
|
|
36
|
+
"native"
|
|
37
|
+
],
|
|
34
38
|
"label": "WhatsApp",
|
|
35
39
|
"selectionLabel": "WhatsApp (QR link)",
|
|
36
40
|
"detailLabel": "WhatsApp Web",
|
|
@@ -42,12 +46,18 @@
|
|
|
42
46
|
"specifier": "./auth-presence",
|
|
43
47
|
"exportName": "hasAnyWhatsAppAuth"
|
|
44
48
|
},
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
"setup": {
|
|
50
|
+
"fields": [
|
|
51
|
+
{
|
|
52
|
+
"key": "authDir",
|
|
53
|
+
"kind": "string",
|
|
54
|
+
"cli": {
|
|
55
|
+
"flags": "--auth-dir <path>",
|
|
56
|
+
"description": "WhatsApp auth directory override"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
51
61
|
},
|
|
52
62
|
"install": {
|
|
53
63
|
"clawhubSpec": "clawhub:@openclaw/whatsapp",
|
|
@@ -56,10 +66,10 @@
|
|
|
56
66
|
"minHostVersion": ">=2026.4.25"
|
|
57
67
|
},
|
|
58
68
|
"compat": {
|
|
59
|
-
"pluginApi": ">=2026.7.2-beta.
|
|
69
|
+
"pluginApi": ">=2026.7.2-beta.4"
|
|
60
70
|
},
|
|
61
71
|
"build": {
|
|
62
|
-
"openclawVersion": "2026.7.2-beta.
|
|
72
|
+
"openclawVersion": "2026.7.2-beta.4"
|
|
63
73
|
},
|
|
64
74
|
"release": {
|
|
65
75
|
"publishToClawHub": true,
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_ACCOUNT_ID, mergeAccountConfig, resolveAccountEntry, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-core";
|
|
2
|
-
//#region extensions/whatsapp/src/account-config.ts
|
|
3
|
-
function resolveWhatsAppDefaultAccountSharedConfig(cfg) {
|
|
4
|
-
const defaultAccount = resolveAccountEntry(cfg.channels?.whatsapp?.accounts, DEFAULT_ACCOUNT_ID);
|
|
5
|
-
if (!defaultAccount) return;
|
|
6
|
-
const { enabled: _ignoredEnabled, name: _ignoredName, authDir: _ignoredAuthDir, selfChatMode: _ignoredSelfChatMode, ...sharedDefaults } = defaultAccount;
|
|
7
|
-
return sharedDefaults;
|
|
8
|
-
}
|
|
9
|
-
function resolveWhatsAppAccountConfigForTest(cfg, accountId) {
|
|
10
|
-
return resolveAccountEntry(cfg.channels?.whatsapp?.accounts, accountId);
|
|
11
|
-
}
|
|
12
|
-
function resolveMergedNamedWhatsAppAccountConfig(params) {
|
|
13
|
-
const rootCfg = params.cfg.channels?.whatsapp;
|
|
14
|
-
const accountConfig = resolveWhatsAppAccountConfigForTest(params.cfg, params.accountId);
|
|
15
|
-
return {
|
|
16
|
-
...mergeAccountConfig({
|
|
17
|
-
channelConfig: rootCfg,
|
|
18
|
-
accountConfig: void 0,
|
|
19
|
-
omitKeys: ["defaultAccount"]
|
|
20
|
-
}),
|
|
21
|
-
...resolveWhatsAppDefaultAccountSharedConfig(params.cfg),
|
|
22
|
-
...accountConfig
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function resolveMergedWhatsAppAccountConfig(params) {
|
|
26
|
-
const rootCfg = params.cfg.channels?.whatsapp;
|
|
27
|
-
const accountId = params.accountId?.trim() || rootCfg?.defaultAccount || DEFAULT_ACCOUNT_ID;
|
|
28
|
-
const base = resolveMergedAccountConfig({
|
|
29
|
-
channelConfig: rootCfg,
|
|
30
|
-
accounts: rootCfg?.accounts,
|
|
31
|
-
accountId,
|
|
32
|
-
omitKeys: ["defaultAccount"]
|
|
33
|
-
});
|
|
34
|
-
return {
|
|
35
|
-
accountId,
|
|
36
|
-
...accountId === DEFAULT_ACCOUNT_ID ? base : resolveMergedNamedWhatsAppAccountConfig({
|
|
37
|
-
cfg: params.cfg,
|
|
38
|
-
accountId
|
|
39
|
-
})
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
export { resolveMergedWhatsAppAccountConfig as t };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { t as getOptionalWhatsAppRuntime } from "./runtime-BfAdAEYT.js";
|
|
2
|
-
import { getChannelRuntimeContext } from "openclaw/plugin-sdk/channel-runtime-context";
|
|
3
|
-
//#region extensions/whatsapp/src/connection-controller-runtime-context.ts
|
|
4
|
-
const WHATSAPP_CONNECTION_CONTROLLER_CAPABILITY = "connection-controller";
|
|
5
|
-
function getWhatsAppConnectionController(accountId) {
|
|
6
|
-
return getChannelRuntimeContext({
|
|
7
|
-
channelRuntime: getOptionalWhatsAppRuntime()?.channel,
|
|
8
|
-
channelId: "whatsapp",
|
|
9
|
-
accountId,
|
|
10
|
-
capability: "connection-controller"
|
|
11
|
-
}) ?? null;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { getWhatsAppConnectionController as n, WHATSAPP_CONNECTION_CONTROLLER_CAPABILITY as t };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { t as resolveMergedWhatsAppAccountConfig } from "./account-config-LiT9wWH9.js";
|
|
3
|
-
import { c as normalizeWhatsAppTarget, t as isWhatsAppGroupJid } from "./normalize-target-DSZnHkKF.js";
|
|
4
|
-
import "./normalize-C-Z16y7Q.js";
|
|
5
|
-
import { listResolvedDirectoryGroupEntriesFromMapKeys, listResolvedDirectoryUserEntriesFromAllowFrom } from "openclaw/plugin-sdk/directory-config-runtime";
|
|
6
|
-
//#region extensions/whatsapp/src/directory-config.ts
|
|
7
|
-
var directory_config_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
-
listWhatsAppDirectoryGroupsFromConfig: () => listWhatsAppDirectoryGroupsFromConfig,
|
|
9
|
-
listWhatsAppDirectoryPeersFromConfig: () => listWhatsAppDirectoryPeersFromConfig
|
|
10
|
-
});
|
|
11
|
-
function resolveWhatsAppDirectoryAccount(cfg, accountId) {
|
|
12
|
-
return resolveMergedWhatsAppAccountConfig({
|
|
13
|
-
cfg,
|
|
14
|
-
accountId
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
async function listWhatsAppDirectoryPeersFromConfig(params) {
|
|
18
|
-
return listResolvedDirectoryUserEntriesFromAllowFrom({
|
|
19
|
-
...params,
|
|
20
|
-
resolveAccount: resolveWhatsAppDirectoryAccount,
|
|
21
|
-
resolveAllowFrom: (account) => account.allowFrom,
|
|
22
|
-
normalizeId: (entry) => {
|
|
23
|
-
const normalized = normalizeWhatsAppTarget(entry);
|
|
24
|
-
if (!normalized || isWhatsAppGroupJid(normalized)) return null;
|
|
25
|
-
return normalized;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
async function listWhatsAppDirectoryGroupsFromConfig(params) {
|
|
30
|
-
return listResolvedDirectoryGroupEntriesFromMapKeys({
|
|
31
|
-
...params,
|
|
32
|
-
resolveAccount: resolveWhatsAppDirectoryAccount,
|
|
33
|
-
resolveGroups: (account) => account.groups
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { listWhatsAppDirectoryGroupsFromConfig as n, listWhatsAppDirectoryPeersFromConfig as r, directory_config_exports as t };
|
package/dist/doctor-By3SB4lm.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
//#region extensions/whatsapp/src/doctor.ts
|
|
2
|
-
function normalizeCompatibilityConfig({ cfg }) {
|
|
3
|
-
const legacyAckReaction = cfg.messages?.ackReaction?.trim();
|
|
4
|
-
if (!legacyAckReaction || cfg.channels?.whatsapp === void 0) return {
|
|
5
|
-
config: cfg,
|
|
6
|
-
changes: []
|
|
7
|
-
};
|
|
8
|
-
if (cfg.channels.whatsapp?.ackReaction !== void 0) return {
|
|
9
|
-
config: cfg,
|
|
10
|
-
changes: []
|
|
11
|
-
};
|
|
12
|
-
const legacyScope = cfg.messages?.ackReactionScope ?? "group-mentions";
|
|
13
|
-
let direct = true;
|
|
14
|
-
let group = "mentions";
|
|
15
|
-
if (legacyScope === "all") {
|
|
16
|
-
direct = true;
|
|
17
|
-
group = "always";
|
|
18
|
-
} else if (legacyScope === "direct") {
|
|
19
|
-
direct = true;
|
|
20
|
-
group = "never";
|
|
21
|
-
} else if (legacyScope === "group-all") {
|
|
22
|
-
direct = false;
|
|
23
|
-
group = "always";
|
|
24
|
-
} else if (legacyScope === "group-mentions") {
|
|
25
|
-
direct = false;
|
|
26
|
-
group = "mentions";
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
config: {
|
|
30
|
-
...cfg,
|
|
31
|
-
channels: {
|
|
32
|
-
...cfg.channels,
|
|
33
|
-
whatsapp: {
|
|
34
|
-
...cfg.channels?.whatsapp,
|
|
35
|
-
ackReaction: {
|
|
36
|
-
emoji: legacyAckReaction,
|
|
37
|
-
direct,
|
|
38
|
-
group
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
changes: [`Copied messages.ackReaction → channels.whatsapp.ackReaction (scope: ${legacyScope}).`]
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
const whatsappDoctor = { normalizeCompatibilityConfig };
|
|
47
|
-
//#endregion
|
|
48
|
-
export { whatsappDoctor as n, normalizeCompatibilityConfig as t };
|
package/dist/runtime-BfAdAEYT.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
2
|
-
//#region extensions/whatsapp/src/runtime.ts
|
|
3
|
-
const { setRuntime: setWhatsAppRuntime, getRuntime: getWhatsAppRuntime, tryGetRuntime: getOptionalWhatsAppRuntime } = createPluginRuntimeStore({
|
|
4
|
-
pluginId: "whatsapp",
|
|
5
|
-
errorMessage: "WhatsApp runtime not initialized"
|
|
6
|
-
});
|
|
7
|
-
//#endregion
|
|
8
|
-
export { getWhatsAppRuntime as n, setWhatsAppRuntime as r, getOptionalWhatsAppRuntime as t };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "./targets-runtime-Bsh0HR9y.js";
|
|
2
|
-
import { convertMarkdownTables, sanitizeAssistantVisibleText, sanitizeAssistantVisibleTextWithProfile, stripToolCallXmlTags } from "openclaw/plugin-sdk/text-chunking";
|
|
3
|
-
import { normalizeE164, resolveUserPath as resolveUserPath$1 } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
4
|
-
export { sanitizeAssistantVisibleTextWithProfile as a, sanitizeAssistantVisibleText as i, normalizeE164 as n, stripToolCallXmlTags as o, resolveUserPath$1 as r, convertMarkdownTables as t };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [1.1.2](https://github.com/protobufjs/protobuf.js/compare/inquire-v1.1.1...inquire-v1.1.2) (2026-05-17)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
### Bug Fixes
|
|
7
|
-
|
|
8
|
-
* Backport bundler-safe optional module lookups ([#2254](https://github.com/protobufjs/protobuf.js/issues/2254)) ([0853a62](https://github.com/protobufjs/protobuf.js/commit/0853a625680f9247596b84ef48082b8f4e554797))
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2016, Daniel Wirtz All rights reserved.
|
|
2
|
-
|
|
3
|
-
Redistribution and use in source and binary forms, with or without
|
|
4
|
-
modification, are permitted provided that the following conditions are
|
|
5
|
-
met:
|
|
6
|
-
|
|
7
|
-
* Redistributions of source code must retain the above copyright
|
|
8
|
-
notice, this list of conditions and the following disclaimer.
|
|
9
|
-
* Redistributions in binary form must reproduce the above copyright
|
|
10
|
-
notice, this list of conditions and the following disclaimer in the
|
|
11
|
-
documentation and/or other materials provided with the distribution.
|
|
12
|
-
* Neither the name of its author, nor the names of its contributors
|
|
13
|
-
may be used to endorse or promote products derived from this software
|
|
14
|
-
without specific prior written permission.
|
|
15
|
-
|
|
16
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
17
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
18
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
19
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
20
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
21
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
22
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
23
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
24
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
25
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@protobufjs/inquire
|
|
2
|
-
===================
|
|
3
|
-
[](https://www.npmjs.com/package/@protobufjs/inquire)
|
|
4
|
-
|
|
5
|
-
Requires a module only if available and hides the require call from bundlers.
|
|
6
|
-
|
|
7
|
-
API
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
* **inquire(moduleName: `string`): `?Object`**<br />
|
|
11
|
-
Requires a module only if available.
|
|
12
|
-
|
|
13
|
-
**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export = inquire;
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Requires a module only if available.
|
|
5
|
-
* @memberof util
|
|
6
|
-
* @param {string} moduleName Module to require
|
|
7
|
-
* @returns {?Object} Required module if available and not empty, otherwise `null`
|
|
8
|
-
* @deprecated Legacy optional require helper. Will be removed in a future release.
|
|
9
|
-
*/
|
|
10
|
-
declare function inquire(moduleName: string): object;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = inquire;
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Requires a module only if available.
|
|
6
|
-
* @memberof util
|
|
7
|
-
* @param {string} moduleName Module to require
|
|
8
|
-
* @returns {?Object} Required module if available and not empty, otherwise `null`
|
|
9
|
-
* @deprecated Legacy optional require helper. Will be removed in a future release.
|
|
10
|
-
*/
|
|
11
|
-
function inquire(moduleName) {
|
|
12
|
-
try {
|
|
13
|
-
if (typeof require !== "function") {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
var mod = require(moduleName);
|
|
17
|
-
if (mod && (mod.length || Object.keys(mod).length)) return mod;
|
|
18
|
-
return null;
|
|
19
|
-
} catch (err) {
|
|
20
|
-
// ignore
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/*
|
|
26
|
-
// maybe worth a shot to prevent renaming issues:
|
|
27
|
-
// see: https://github.com/webpack/webpack/blob/master/lib/dependencies/CommonJsRequireDependencyParserPlugin.js
|
|
28
|
-
// triggers on:
|
|
29
|
-
// - expression require.cache
|
|
30
|
-
// - expression require (???)
|
|
31
|
-
// - call require
|
|
32
|
-
// - call require:commonjs:item
|
|
33
|
-
// - call require:commonjs:context
|
|
34
|
-
|
|
35
|
-
Object.defineProperty(Function.prototype, "__self", { get: function() { return this; } });
|
|
36
|
-
var r = require.__self;
|
|
37
|
-
delete Function.prototype.__self;
|
|
38
|
-
*/
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@protobufjs/inquire",
|
|
3
|
-
"description": "Requires a module only if available and hides the require call from bundlers.",
|
|
4
|
-
"version": "1.1.2",
|
|
5
|
-
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/dcodeIO/protobuf.js.git"
|
|
9
|
-
},
|
|
10
|
-
"license": "BSD-3-Clause",
|
|
11
|
-
"main": "index.js",
|
|
12
|
-
"types": "index.d.ts",
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"istanbul": "^0.4.5",
|
|
15
|
-
"tape": "^5.0.0"
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "tape tests/*.js",
|
|
19
|
-
"coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = [1];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = [];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = { a: 1 };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var tape = require("tape");
|
|
2
|
-
|
|
3
|
-
var inquire = require("..");
|
|
4
|
-
|
|
5
|
-
tape.test("inquire", function(test) {
|
|
6
|
-
|
|
7
|
-
test.equal(inquire("buffer").Buffer, Buffer, "should be able to require \"buffer\"");
|
|
8
|
-
|
|
9
|
-
test.equal(inquire("%invalid"), null, "should not be able to require \"%invalid\"");
|
|
10
|
-
|
|
11
|
-
test.equal(inquire("./tests/data/emptyObject"), null, "should return null when requiring a module exporting an empty object");
|
|
12
|
-
|
|
13
|
-
test.equal(inquire("./tests/data/emptyArray"), null, "should return null when requiring a module exporting an empty array");
|
|
14
|
-
|
|
15
|
-
test.same(inquire("./tests/data/object"), { a: 1 }, "should return the object if a non-empty object");
|
|
16
|
-
|
|
17
|
-
test.same(inquire("./tests/data/array"), [ 1 ], "should return the module if a non-empty array");
|
|
18
|
-
|
|
19
|
-
test.end();
|
|
20
|
-
});
|