@openclaw/discord 2026.7.2-beta.7 → 2026.8.1-beta.3
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-inspect-SXiCBCgP.js → account-inspect-D5xmUpnj.js} +49 -43
- package/dist/account-inspect-api.js +1 -1
- package/dist/accounts-DNl-oCEw.js +371 -0
- package/dist/action-runtime-api.js +1 -1
- package/dist/{active-turn-thread-route-MlKWp8RD.js → active-turn-thread-route-fmHl1HNd.js} +9 -11
- package/dist/{activities-api-DTKsuDxf.js → activities-api-KCBAmWxD.js} +133 -175
- package/dist/activities-api.js +1 -1
- package/dist/{allow-list-DzKrtfah.js → allow-list-BDMimASD.js} +2 -3
- package/dist/{api-DnrK9gML.js → api-DNVbJyEy.js} +7 -2
- package/dist/api.js +18 -18
- package/dist/{approval-handler.runtime-HymvFTYn.js → approval-handler.runtime-B12RCYr8.js} +6 -6
- package/dist/{approval-message-safety-DEyKVsAw.js → approval-message-safety-XGFPbDoI.js} +89 -3
- package/dist/{audit-CjsrabP8.js → audit-Yc7eZDd6.js} +5 -5
- package/dist/{channel-actions-uXFTJX3o.js → channel-actions-Dr2QI8Bf.js} +11 -7
- package/dist/{channel-actions.runtime-CIYU90sl.js → channel-actions.runtime-CODTvo7c.js} +99 -97
- package/dist/{channel-vKa-76xY.js → channel-cXYzGc4L.js} +102 -104
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.setup-CmcwZ_qd.js → channel.setup-CSiwnMgs.js} +16 -54
- package/dist/{outbound-session-route-H-HoyH5U.js → components-ezGKo_Yh.js} +69 -142
- package/dist/{config-schema-WHRQcY19.js → config-schema-DC5kDtQ5.js} +42 -11
- package/dist/conversation-binding-route-D6rCQ5S0.js +43 -0
- package/dist/{directory-config-D_LojtCe.js → directory-config-XyCfoqLg.js} +2 -2
- package/dist/directory-contract-api.js +1 -1
- package/dist/{directory-live-Bw5Ephzv.js → directory-live-Df0NbFJB.js} +7 -4
- package/dist/{doctor-Bc4S1qyd.js → doctor-DYY31GrO.js} +34 -13
- package/dist/{doctor-contract-CCFMIDk9.js → doctor-contract-DsWvKIXF.js} +2 -3
- package/dist/doctor-contract-api.js +147 -2
- package/dist/{handle-action.guild-admin-D6VRRW-C.js → handle-action.guild-admin-6Tvvinsa.js} +4 -7
- package/dist/{inbound-event-delivery-CEPlt2uz.js → inbound-event-delivery-De2qxTrP.js} +4 -25
- package/dist/index.js +5 -4
- package/dist/{message-handler-CeiSulIw.js → message-handler-B61q5MOF.js} +118 -33
- package/dist/{message-handler.preflight-DibgQFf2.js → message-handler.preflight-Bzg_Hawz.js} +75 -61
- package/dist/{message-handler.process-Dnc_oz9y.js → message-handler.process--4_712Ec.js} +236 -296
- package/dist/{message-utils-BgTwT_q7.js → message-utils-BXLLnFl6.js} +34 -35
- package/dist/{model-picker-preference-primitives-D25pnCOu.js → model-picker-preference-primitives-BHT1LkR_.js} +3 -3
- package/dist/{outbound-adapter-DtE-i2OJ.js → outbound-adapter-DxHTOqiN.js} +157 -68
- package/dist/{outbound-components-C7GVyfPh.js → outbound-components-B2PL0ooH.js} +3 -3
- package/dist/owner-access-Bg41VzAf.js +107 -0
- package/dist/{pluralkit-CD4B11JB.js → pluralkit-dUl4v1X3.js} +1 -1
- package/dist/{preflight-audio-BjnQZ5yS.js → preflight-audio-DrnqFA8U.js} +22 -28
- package/dist/{probe-BeWKhjqX.js → probe-BTdtVRwU.js} +37 -13
- package/dist/probe.runtime-Dq5-PRKT.js +2 -0
- package/dist/{provider-DfQJX3z5.js → provider-DlK_ynqt.js} +1131 -2021
- package/dist/{provider-session.runtime-Bo88k0pV.js → provider-session.runtime-CvvphHvs.js} +3 -3
- package/dist/provider.runtime-CzKGRiAF.js +2 -0
- package/dist/realtime-session.runtime-ysbMG8v7.js +1351 -0
- package/dist/{resolve-allowlist-common-DHERApxi.js → resolve-allowlist-common-DIVXbD1P.js} +3 -3
- package/dist/{resolve-channels-BjepAj8b.js → resolve-channels-CGeUoIqb.js} +4 -4
- package/dist/{resolve-users-Bc28htgt.js → resolve-users-BtKxLUZv.js} +3 -3
- package/dist/{chunk-DX4jpFQP.js → retry-DNsVTeTo.js} +308 -131
- package/dist/{runtime-BmW_j_hl.js → runtime-CQovMsH3.js} +12 -15
- package/dist/{runtime-_aRC6V2s.js → runtime-D71_VFLr.js} +49 -58
- package/dist/runtime-api.actions.js +2 -2
- package/dist/runtime-api.js +23 -23
- package/dist/runtime-api.lookup.js +5 -5
- package/dist/runtime-api.monitor-CzeTYF32.js +6 -0
- package/dist/runtime-api.monitor.js +6 -5
- package/dist/runtime-api.send.js +6 -6
- package/dist/runtime-api.threads.js +5 -6
- package/dist/sdk-runtime-37OU6_Yh.js +369 -0
- package/dist/{secret-config-contract-B1akrlyY.js → secret-config-contract-B3i6WxV5.js} +53 -25
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-audit-contract-api.js +1 -1
- package/dist/{security-audit.runtime-CPN0xFYz.js → security-audit.runtime-BVKF9VtY.js} +1 -1
- package/dist/{send-CdkZ6zeW.js → send-rQIffSYu.js} +180 -91
- package/dist/{send.components-5uqwkjgE.js → send.components-ChK1wS7w.js} +32 -46
- package/dist/{send.outbound-D-80Ej-t.js → send.outbound-HIkgji_7.js} +57 -34
- package/dist/{send.reactions-CtlmGd_o.js → send.reactions-gmJ6yFPo.js} +14 -21
- package/dist/{send.receipt-CuwRrpFz.js → send.receipt-Cnhoautb.js} +29 -1
- package/dist/{send.shared-jpvAG_u6.js → send.shared-B3fpaLWJ.js} +112 -181
- package/dist/{sender-identity-mG_zsdox.js → sender-identity-BJtfyise.js} +1 -1
- package/dist/setup-entry.js +0 -5
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{shared-CXF1tup1.js → shared-CaAaoksy.js} +27 -23
- package/dist/subagent-hooks-CNT2ZJTJ.js +49 -0
- package/dist/subagent-hooks-api.js +2 -6
- package/dist/subagent-progress-FPLqBY1s.js +110 -0
- package/dist/{system-events-DdUqf91B.js → system-events-Nuwoq_au.js} +2 -2
- package/dist/{target-resolver-C3s_2m0t.js → target-resolver-DIXShHaZ.js} +3 -3
- package/dist/targets-B2pf49zc.js +3 -0
- package/dist/{thread-bindings-C-M-ly7P.js → thread-bindings-VlymUnbz.js} +29 -28
- package/dist/{thread-bindings.manager-DYvSlrva.js → thread-bindings.manager-CngsgErq.js} +258 -29
- package/dist/{thread-bindings.session-updates-DAIlp7Px.js → thread-bindings.session-updates-CJb-BpPL.js} +1 -1
- package/dist/{thread-bindings.state-Cgi5uRn-.js → thread-bindings.state-D8OMdk4O.js} +3 -16
- package/dist/threading-DU6pgeGm.js +456 -0
- package/dist/transcripts-source-DeIMNbRh.js +265 -0
- package/dist/transcripts-source-api.js +7 -2
- package/dist/{typing--Mzo2kM7.js → typing-oLiS5Z13.js} +1 -1
- package/dist/voice-runtime-CjNFaynA.js +2549 -0
- package/openclaw.plugin.json +215 -25
- package/package.json +15 -11
- package/skills/discord/SKILL.md +22 -115
- package/dist/accounts-DJTf1LtA.js +0 -219
- package/dist/channel-api-CAJ0wMoV.js +0 -21
- package/dist/legacy-state-migrations-api.js +0 -138
- package/dist/manager.runtime-Bjav3pfC.js +0 -3655
- package/dist/preflight-audio.runtime-CoCXMM8r.js +0 -7
- package/dist/probe.runtime-DqFGFMbZ.js +0 -2
- package/dist/provider.runtime-Cy7XZmyh.js +0 -2
- package/dist/runtime-api.monitor-CCRubd3-.js +0 -5
- package/dist/session-binding-contract-api.js +0 -2
- package/dist/subagent-hooks-Dxy7Fmnq.js +0 -120
- package/dist/subagent-progress-DI3sYLLo.js +0 -664
- package/dist/targets-Dv_RN7vT.js +0 -3
- package/dist/thread-bindings.discord-api-BoDNqamb.js +0 -246
- package/dist/transcripts-source-DIKGsTGT.js +0 -123
- package/node_modules/p-map/index.d.ts +0 -155
- package/node_modules/p-map/index.js +0 -285
- package/node_modules/p-map/license +0 -9
- package/node_modules/p-map/package.json +0 -57
- package/node_modules/p-map/readme.md +0 -190
- package/dist/{audit-core-xwjIczO0.js → audit-core-BCX8UeFH.js} +1 -1
- package/dist/{security-audit-jGnJF__m.js → security-audit-BfJhAXZp.js} +1 -1
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { transcribeFirstAudio as transcribeFirstAudio$1 } from "openclaw/plugin-sdk/media-runtime";
|
|
2
|
-
//#region extensions/discord/src/monitor/preflight-audio.runtime.ts
|
|
3
|
-
async function transcribeFirstAudio(...args) {
|
|
4
|
-
return await transcribeFirstAudio$1(...args);
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
export { transcribeFirstAudio };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as resolveDiscordPrivilegedIntentsFromFlags, i as probeDiscord, n as fetchDiscordApplicationSummary, r as parseApplicationIdFromToken, t as fetchDiscordApplicationId } from "./probe-BeWKhjqX.js";
|
|
2
|
-
export { fetchDiscordApplicationId, fetchDiscordApplicationSummary, parseApplicationIdFromToken, probeDiscord, resolveDiscordPrivilegedIntentsFromFlags };
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { Yt as __exportAll } from "./chunk-DX4jpFQP.js";
|
|
2
|
-
import { s as resolveDiscordAccount } from "./accounts-DJTf1LtA.js";
|
|
3
|
-
import { n as autoBindSpawnedDiscordSubagent, o as unbindThreadBindingsBySessionKey, r as listThreadBindingsBySessionKey } from "./thread-bindings-C-M-ly7P.js";
|
|
4
|
-
import { normalizeOptionalLowercaseString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
|
-
import { formatThreadBindingDisabledError, formatThreadBindingSpawnDisabledError, resolveThreadBindingSpawnPolicy } from "openclaw/plugin-sdk/conversation-runtime";
|
|
6
|
-
//#region extensions/discord/src/subagent-hooks.ts
|
|
7
|
-
var subagent_hooks_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
-
handleDiscordSubagentDeliveryTarget: () => handleDiscordSubagentDeliveryTarget,
|
|
9
|
-
handleDiscordSubagentEnded: () => handleDiscordSubagentEnded,
|
|
10
|
-
handleDiscordSubagentSpawning: () => handleDiscordSubagentSpawning
|
|
11
|
-
});
|
|
12
|
-
function summarizeError(err) {
|
|
13
|
-
if (err instanceof Error) return err.message;
|
|
14
|
-
if (typeof err === "string") return err;
|
|
15
|
-
return "error";
|
|
16
|
-
}
|
|
17
|
-
function normalizeThreadBindingTargetKind(raw) {
|
|
18
|
-
const normalized = normalizeOptionalLowercaseString(raw);
|
|
19
|
-
if (normalized === "subagent" || normalized === "acp") return normalized;
|
|
20
|
-
}
|
|
21
|
-
async function handleDiscordSubagentSpawning(api, event) {
|
|
22
|
-
if (!event.threadRequested) return;
|
|
23
|
-
if (normalizeOptionalLowercaseString(event.requester?.channel) !== "discord") return;
|
|
24
|
-
const account = resolveDiscordAccount({
|
|
25
|
-
cfg: api.config,
|
|
26
|
-
accountId: event.requester?.accountId
|
|
27
|
-
});
|
|
28
|
-
const threadBindingPolicy = resolveThreadBindingSpawnPolicy({
|
|
29
|
-
cfg: api.config,
|
|
30
|
-
channel: "discord",
|
|
31
|
-
accountId: account.accountId,
|
|
32
|
-
kind: "subagent"
|
|
33
|
-
});
|
|
34
|
-
if (!threadBindingPolicy.enabled) return {
|
|
35
|
-
status: "error",
|
|
36
|
-
error: formatThreadBindingDisabledError({
|
|
37
|
-
channel: threadBindingPolicy.channel,
|
|
38
|
-
accountId: threadBindingPolicy.accountId,
|
|
39
|
-
kind: "subagent"
|
|
40
|
-
})
|
|
41
|
-
};
|
|
42
|
-
if (!threadBindingPolicy.spawnEnabled) return {
|
|
43
|
-
status: "error",
|
|
44
|
-
error: formatThreadBindingSpawnDisabledError({
|
|
45
|
-
channel: threadBindingPolicy.channel,
|
|
46
|
-
accountId: threadBindingPolicy.accountId,
|
|
47
|
-
kind: "subagent"
|
|
48
|
-
})
|
|
49
|
-
};
|
|
50
|
-
try {
|
|
51
|
-
const agentId = event.agentId?.trim() || "subagent";
|
|
52
|
-
const binding = await autoBindSpawnedDiscordSubagent({
|
|
53
|
-
cfg: api.config,
|
|
54
|
-
accountId: account.accountId,
|
|
55
|
-
channel: event.requester?.channel,
|
|
56
|
-
to: event.requester?.to,
|
|
57
|
-
threadId: event.requester?.threadId,
|
|
58
|
-
childSessionKey: event.childSessionKey,
|
|
59
|
-
agentId,
|
|
60
|
-
label: event.label,
|
|
61
|
-
boundBy: "system"
|
|
62
|
-
});
|
|
63
|
-
if (!binding) return {
|
|
64
|
-
status: "error",
|
|
65
|
-
error: "Unable to create or bind a Discord thread for this subagent session. Session mode is unavailable for this target."
|
|
66
|
-
};
|
|
67
|
-
return {
|
|
68
|
-
status: "ok",
|
|
69
|
-
threadBindingReady: true,
|
|
70
|
-
deliveryOrigin: {
|
|
71
|
-
channel: "discord",
|
|
72
|
-
accountId: account.accountId,
|
|
73
|
-
to: `channel:${binding.threadId}`,
|
|
74
|
-
threadId: binding.threadId
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
} catch (err) {
|
|
78
|
-
return {
|
|
79
|
-
status: "error",
|
|
80
|
-
error: `Discord thread bind failed: ${summarizeError(err)}`
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function handleDiscordSubagentEnded(event) {
|
|
85
|
-
unbindThreadBindingsBySessionKey({
|
|
86
|
-
targetSessionKey: event.targetSessionKey,
|
|
87
|
-
accountId: event.accountId,
|
|
88
|
-
targetKind: normalizeThreadBindingTargetKind(event.targetKind),
|
|
89
|
-
reason: event.reason,
|
|
90
|
-
sendFarewell: event.sendFarewell
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
function handleDiscordSubagentDeliveryTarget(event) {
|
|
94
|
-
if (!event.expectsCompletionMessage) return;
|
|
95
|
-
if (normalizeOptionalLowercaseString(event.requesterOrigin?.channel) !== "discord") return;
|
|
96
|
-
const requesterAccountId = event.requesterOrigin?.accountId?.trim();
|
|
97
|
-
const requesterThreadId = event.requesterOrigin?.threadId != null && event.requesterOrigin.threadId !== "" ? normalizeOptionalStringifiedId(event.requesterOrigin.threadId) ?? "" : "";
|
|
98
|
-
const bindings = listThreadBindingsBySessionKey({
|
|
99
|
-
targetSessionKey: event.childSessionKey,
|
|
100
|
-
...requesterAccountId ? { accountId: requesterAccountId } : {},
|
|
101
|
-
targetKind: "subagent"
|
|
102
|
-
});
|
|
103
|
-
if (bindings.length === 0) return;
|
|
104
|
-
let binding;
|
|
105
|
-
if (requesterThreadId) binding = bindings.find((entry) => {
|
|
106
|
-
if (entry.threadId !== requesterThreadId) return false;
|
|
107
|
-
if (requesterAccountId && entry.accountId !== requesterAccountId) return false;
|
|
108
|
-
return true;
|
|
109
|
-
});
|
|
110
|
-
if (!binding && bindings.length === 1) binding = bindings[0];
|
|
111
|
-
if (!binding) return;
|
|
112
|
-
return { origin: {
|
|
113
|
-
channel: "discord",
|
|
114
|
-
accountId: binding.accountId,
|
|
115
|
-
to: `channel:${binding.threadId}`,
|
|
116
|
-
threadId: binding.threadId
|
|
117
|
-
} };
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
export { subagent_hooks_exports as i, handleDiscordSubagentEnded as n, handleDiscordSubagentSpawning as r, handleDiscordSubagentDeliveryTarget as t };
|