@openclaw/clickclack 2026.11.5-beta.1 → 2026.11.5-beta.2
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/.setup/{channel-ByAANbh8.mjs → channel-D3WIuNxS.mjs} +79 -26
- package/dist/.setup/{resolve-CRj6QjdF.mjs → resolve-BgFJI_p4.mjs} +4 -2
- package/dist/.setup/{rolldown-runtime-782esTHO.mjs → rolldown-runtime-BBjsoOtd.mjs} +2 -1
- package/dist/.setup/{runtime-api-BsRK-sfA.mjs → runtime-api-CMReYU7v.mjs} +18 -10
- package/dist/.setup/{secret-contract-Dj8nibUr.mjs → secret-contract-CF7TKtkU.mjs} +2 -1
- package/dist/.setup/{secret-contract-api-DS3Vv0Gu.mjs → secret-contract-api--45pFCg3.mjs} +1 -1
- package/dist/.setup/{setup-claim-BAKxfObl.mjs → setup-claim-Ca2nzQHc.mjs} +3 -2
- package/dist/.setup/{setup-plugin-api-BTqE973B.mjs → setup-plugin-api-CFG0EYat.mjs} +3 -2
- package/dist/.setup/setup-plugin-api-Cg_ECaNj.mjs +1 -0
- package/dist/.setup/{setup-surface-5wSYr6p2.mjs → setup-surface-CSITttSD.mjs} +15 -9
- package/dist/.setup/{setup-verify-IayKkFWq.mjs → setup-verify-DLfG0Fyt.mjs} +4 -3
- package/dist/.source-module-urls/aa673c321fe9be084b8926cbe5388ff5e2a41371389e19ca60a1983f2b634030.json +1 -1
- package/dist/api.js +3 -3
- package/dist/channel-plugin-api.js +1 -1
- package/dist/doctor-contract-api.js +11 -6
- package/dist/index.js +3 -2
- package/dist/runtime-api.js +4 -4
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-entry.js +4 -3
- package/dist/setup-plugin-api.js +1 -1
- package/package.json +4 -4
- package/dist/.setup/setup-plugin-api-CfuhJJvK.mjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { c as CLICKCLACK_CHANNEL_ID, d as DEFAULT_ACCOUNT_ID, f as isClickClackAccountCurrent, g as resolveClickClackAccountConfig, h as resolveClickClackAccount, l as clickClackConfigAdapter, m as listEnabledClickClackAccounts, n as clickClackSetupContract, s as clickClackConfigSchema, t as clickClackSetupWizard, u as clickClackMeta } from "./setup-surface-
|
|
3
|
-
import { a as createClickClackClient, i as ClickClackHttpError, n as resolveChannelId, r as resolveWorkspaceId, s as normalizeClickClackCorrelationId } from "./resolve-
|
|
4
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.mjs";
|
|
2
|
+
import { c as CLICKCLACK_CHANNEL_ID, d as DEFAULT_ACCOUNT_ID, f as isClickClackAccountCurrent, g as resolveClickClackAccountConfig, h as resolveClickClackAccount, l as clickClackConfigAdapter, m as listEnabledClickClackAccounts, n as clickClackSetupContract, s as clickClackConfigSchema, t as clickClackSetupWizard, u as clickClackMeta } from "./setup-surface-CSITttSD.mjs";
|
|
3
|
+
import { a as createClickClackClient, i as ClickClackHttpError, n as resolveChannelId, r as resolveWorkspaceId, s as normalizeClickClackCorrelationId } from "./resolve-BgFJI_p4.mjs";
|
|
4
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-CF7TKtkU.mjs";
|
|
5
5
|
import { resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/account-helpers";
|
|
6
6
|
import { parseDateStringTimestampMs } from "openclaw/plugin-sdk/number-runtime";
|
|
7
7
|
import { mergePairLoopGuardConfig } from "openclaw/plugin-sdk/pair-loop-guard-runtime";
|
|
@@ -20,7 +20,7 @@ import { isDeepStrictEqual } from "node:util";
|
|
|
20
20
|
import { parseAccessGroupAllowFromEntry } from "openclaw/plugin-sdk/access-groups";
|
|
21
21
|
import { formatNormalizedAllowFromEntries, resolveAllowlistMatchByCandidates } from "openclaw/plugin-sdk/allow-from";
|
|
22
22
|
import { normalizeAgentId } from "openclaw/plugin-sdk/routing";
|
|
23
|
-
import { randomUUID } from "node:crypto";
|
|
23
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
24
24
|
import { createAsyncLock } from "openclaw/plugin-sdk/async-lock-runtime";
|
|
25
25
|
import { assertPluginStateReadAvailable, preparePluginStateRead } from "openclaw/plugin-sdk/plugin-state-runtime";
|
|
26
26
|
import { sha256Hex } from "openclaw/plugin-sdk/node-crypto-runtime";
|
|
@@ -32,7 +32,7 @@ import { extensionForMime } from "openclaw/plugin-sdk/media-mime";
|
|
|
32
32
|
import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
|
|
33
33
|
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
34
34
|
import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
35
|
-
|
|
35
|
+
//#region src/channels/mention-gating.ts
|
|
36
36
|
function resolveBotThreadMentionPolicy(params) {
|
|
37
37
|
if (!params.isBotOwnedThread || params.requireMentionInBotThreads === void 0) return {
|
|
38
38
|
requireMention: params.requireMention,
|
|
@@ -43,11 +43,13 @@ function resolveBotThreadMentionPolicy(params) {
|
|
|
43
43
|
implicitMentionKinds: params.requireMentionInBotThreads ? params.implicitMentionKinds?.filter((kind) => kind === "native") : params.implicitMentionKinds
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/channel-mention-gating
|
|
47
48
|
var channel_mention_gating_exports = /* @__PURE__ */ __exportAll({ resolveBotThreadMentionPolicy: () => resolveBotThreadMentionPolicy });
|
|
48
49
|
import * as import_openclaw_plugin_sdk_channel_mention_gating from "openclaw/plugin-sdk/channel-mention-gating";
|
|
49
50
|
__reExport(channel_mention_gating_exports, import_openclaw_plugin_sdk_channel_mention_gating);
|
|
50
|
-
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region extensions/clickclack/src/discussions/binding-generation.ts
|
|
51
53
|
const GENERATION_STORE_OPTIONS = {
|
|
52
54
|
namespace: "discussion-binding-generations",
|
|
53
55
|
maxEntries: 1e4,
|
|
@@ -174,7 +176,8 @@ async function hasPendingDiscussionOpenForDestination(params) {
|
|
|
174
176
|
const serverBaseUrl = params.serverBaseUrl.replace(/\/+$/u, "");
|
|
175
177
|
return (await listPendingDiscussionOpens(params.runtime)).some((pending) => pending.serverBaseUrl === serverBaseUrl && pending.workspaceId === params.workspaceId);
|
|
176
178
|
}
|
|
177
|
-
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region extensions/clickclack/src/discussions/binding-store.ts
|
|
178
181
|
/** Retained for the shipped synchronous ScopedSessionAccessProvider contract. */
|
|
179
182
|
function bindingMatchesActiveSessionIncarnation(runtime, sessionKey, binding) {
|
|
180
183
|
const entry = runtime.agent.session.getSessionEntry({
|
|
@@ -374,7 +377,8 @@ function getClickClackDiscussionBindingStore(runtime) {
|
|
|
374
377
|
storesByRuntime$1.set(runtime, created);
|
|
375
378
|
return created;
|
|
376
379
|
}
|
|
377
|
-
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region extensions/clickclack/src/discussions/naming.ts
|
|
378
382
|
function shortSessionHash(sessionKey) {
|
|
379
383
|
return sha256Hex(sessionKey).slice(0, 32);
|
|
380
384
|
}
|
|
@@ -428,7 +432,8 @@ function discussionSessionKey(params) {
|
|
|
428
432
|
}
|
|
429
433
|
});
|
|
430
434
|
}
|
|
431
|
-
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region extensions/clickclack/src/discussions/eligibility.ts
|
|
432
437
|
function discussionAccounts(cfg) {
|
|
433
438
|
return listEnabledClickClackAccounts(cfg).filter((account) => account.configured && account.discussions.enabled);
|
|
434
439
|
}
|
|
@@ -458,7 +463,8 @@ function discussionInfoForBinding(binding, account) {
|
|
|
458
463
|
openUrl: `${baseUrl}/app/${encodeURIComponent(binding.workspaceRouteId)}/${encodeURIComponent(binding.channelRouteId)}`
|
|
459
464
|
};
|
|
460
465
|
}
|
|
461
|
-
|
|
466
|
+
//#endregion
|
|
467
|
+
//#region extensions/clickclack/src/discussions/revoked-channel-store.ts
|
|
462
468
|
const STORE_OPTIONS = {
|
|
463
469
|
namespace: "discussion-revoked-channels",
|
|
464
470
|
maxEntries: 1e5,
|
|
@@ -466,8 +472,36 @@ const STORE_OPTIONS = {
|
|
|
466
472
|
};
|
|
467
473
|
const storesByRuntime = /* @__PURE__ */ new WeakMap();
|
|
468
474
|
const nativeStoresByRuntime = /* @__PURE__ */ new WeakMap();
|
|
475
|
+
const legacyAdoptionsByRuntime = /* @__PURE__ */ new WeakMap();
|
|
476
|
+
const legacyAdoptedRuntimes = /* @__PURE__ */ new WeakSet();
|
|
469
477
|
function revokedChannelKey(params) {
|
|
470
|
-
return [params.serverBaseUrl.replace(/\/+$/u, ""), params.channelId].
|
|
478
|
+
return createHash("sha256").update(JSON.stringify([params.serverBaseUrl.replace(/\/+$/u, ""), params.channelId]), "utf8").digest("hex").slice(0, 32);
|
|
479
|
+
}
|
|
480
|
+
function adoptLegacyMarkers(runtime) {
|
|
481
|
+
let adoption = legacyAdoptionsByRuntime.get(runtime);
|
|
482
|
+
if (!adoption) {
|
|
483
|
+
adoption = (async () => {
|
|
484
|
+
const store = getStore(runtime);
|
|
485
|
+
for (const entry of await store.entries()) if (entry.key.includes("\0")) {
|
|
486
|
+
const key = revokedChannelKey(entry.value);
|
|
487
|
+
for (;;) {
|
|
488
|
+
const current = await store.observe(key);
|
|
489
|
+
if (current.value && (!current.value.binding || isDeepStrictEqual(current.value.binding, entry.value.binding))) break;
|
|
490
|
+
if (current.value && entry.value.binding) throw new Error("Conflicting ClickClack revocation evidence; legacy marker retained");
|
|
491
|
+
if ((await store.compareAndApply(key, current.comparison, {
|
|
492
|
+
operation: "update",
|
|
493
|
+
action: "set",
|
|
494
|
+
value: entry.value
|
|
495
|
+
})).status !== "conflict") break;
|
|
496
|
+
}
|
|
497
|
+
await store.delete(entry.key);
|
|
498
|
+
}
|
|
499
|
+
legacyAdoptedRuntimes.add(runtime);
|
|
500
|
+
})();
|
|
501
|
+
adoption.catch(() => legacyAdoptionsByRuntime.delete(runtime));
|
|
502
|
+
legacyAdoptionsByRuntime.set(runtime, adoption);
|
|
503
|
+
}
|
|
504
|
+
return adoption;
|
|
471
505
|
}
|
|
472
506
|
function getStore(runtime) {
|
|
473
507
|
const existing = storesByRuntime.get(runtime);
|
|
@@ -485,6 +519,7 @@ async function markClickClackDiscussionChannelRevoked(runtime, sessionKey, bindi
|
|
|
485
519
|
revokedAt: Date.now(),
|
|
486
520
|
binding
|
|
487
521
|
};
|
|
522
|
+
await adoptLegacyMarkers(runtime);
|
|
488
523
|
const bindings = getClickClackDiscussionBindingStore(runtime);
|
|
489
524
|
for (;;) {
|
|
490
525
|
const owner = await bindings.observeCurrent(sessionKey);
|
|
@@ -522,13 +557,16 @@ async function markClickClackDiscussionChannelIdentityRevoked(params) {
|
|
|
522
557
|
channelId: params.channelId,
|
|
523
558
|
revokedAt: Date.now()
|
|
524
559
|
};
|
|
560
|
+
await adoptLegacyMarkers(params.runtime);
|
|
525
561
|
await getStore(params.runtime).register(revokedChannelKey(value), value);
|
|
526
562
|
}
|
|
527
563
|
async function clearClickClackDiscussionChannelRevoked(params) {
|
|
564
|
+
await adoptLegacyMarkers(params.runtime);
|
|
528
565
|
await getStore(params.runtime).delete(revokedChannelKey(params));
|
|
529
566
|
}
|
|
530
567
|
/** Distinguishes a released managed channel from a genuinely ordinary channel. */
|
|
531
568
|
function isClickClackDiscussionChannelRevoked(params) {
|
|
569
|
+
if (!legacyAdoptedRuntimes.has(params.runtime)) return true;
|
|
532
570
|
let store = nativeStoresByRuntime.get(params.runtime);
|
|
533
571
|
if (!store) {
|
|
534
572
|
store = params.runtime.state.openSyncKeyedStore(STORE_OPTIONS);
|
|
@@ -537,6 +575,7 @@ function isClickClackDiscussionChannelRevoked(params) {
|
|
|
537
575
|
return revocationApplies(store.lookup(revokedChannelKey(params)), params.binding);
|
|
538
576
|
}
|
|
539
577
|
async function prepareClickClackDiscussionChannelRevocation(params) {
|
|
578
|
+
await adoptLegacyMarkers(params.runtime);
|
|
540
579
|
const facts = await preparePluginStateRead(getStore(params.runtime), revokedChannelKey(params));
|
|
541
580
|
return {
|
|
542
581
|
isRevoked: (binding) => {
|
|
@@ -550,12 +589,14 @@ async function prepareClickClackDiscussionChannelRevocation(params) {
|
|
|
550
589
|
};
|
|
551
590
|
}
|
|
552
591
|
async function isClickClackDiscussionChannelRevokedAsync(params) {
|
|
592
|
+
await adoptLegacyMarkers(params.runtime);
|
|
553
593
|
return revocationApplies(await getStore(params.runtime).lookup(revokedChannelKey(params)), params.binding);
|
|
554
594
|
}
|
|
555
595
|
function revocationApplies(revoked, binding) {
|
|
556
596
|
return Boolean(revoked && (!binding || !revoked.binding || isDeepStrictEqual(revoked.binding, binding)));
|
|
557
597
|
}
|
|
558
|
-
|
|
598
|
+
//#endregion
|
|
599
|
+
//#region extensions/clickclack/src/discussions/session-authority.ts
|
|
559
600
|
/** Retain the session owner's receipt-backed facts until the external effect completes. */
|
|
560
601
|
async function prepareDiscussionSessionEntry(runtime, sessionKey) {
|
|
561
602
|
const config = runtime.config.current();
|
|
@@ -571,7 +612,8 @@ async function prepareDiscussionSessionEntry(runtime, sessionKey) {
|
|
|
571
612
|
fields: ["sessionId", "archivedAt"]
|
|
572
613
|
});
|
|
573
614
|
}
|
|
574
|
-
|
|
615
|
+
//#endregion
|
|
616
|
+
//#region extensions/clickclack/src/discussions/routing.ts
|
|
575
617
|
async function resolveClickClackDiscussionRoute(params) {
|
|
576
618
|
const store = getClickClackDiscussionBindingStore(params.runtime);
|
|
577
619
|
await store.prepare();
|
|
@@ -645,7 +687,8 @@ async function resolveClickClackDiscussionRoute(params) {
|
|
|
645
687
|
revocation?.release();
|
|
646
688
|
}
|
|
647
689
|
}
|
|
648
|
-
|
|
690
|
+
//#endregion
|
|
691
|
+
//#region extensions/clickclack/src/group-policy.ts
|
|
649
692
|
function resolveClickClackGroupPolicy(params) {
|
|
650
693
|
const { account, channelId } = params;
|
|
651
694
|
const channelKey = channelId?.trim();
|
|
@@ -660,12 +703,14 @@ function resolveClickClackGroupPolicy(params) {
|
|
|
660
703
|
botLoopProtection: mergePairLoopGuardConfig(account.botLoopProtection, wildcard?.botLoopProtection, exact?.botLoopProtection)
|
|
661
704
|
};
|
|
662
705
|
}
|
|
663
|
-
|
|
706
|
+
//#endregion
|
|
707
|
+
//#region extensions/clickclack/src/runtime.ts
|
|
664
708
|
const { setRuntime: setClickClackRuntime, getRuntime: getClickClackRuntime } = createPluginRuntimeStore({
|
|
665
709
|
pluginId: "clickclack",
|
|
666
710
|
errorMessage: "ClickClack runtime not initialized"
|
|
667
711
|
});
|
|
668
|
-
|
|
712
|
+
//#endregion
|
|
713
|
+
//#region extensions/clickclack/src/target.ts
|
|
669
714
|
/**
|
|
670
715
|
* Parses `channel:name`, `thread:msg_id`, `dm:usr_id`, or a bare channel name.
|
|
671
716
|
*/
|
|
@@ -699,7 +744,8 @@ function parseClickClackTarget(raw) {
|
|
|
699
744
|
function buildClickClackTarget(target) {
|
|
700
745
|
return `${target.kind}:${target.id}`;
|
|
701
746
|
}
|
|
702
|
-
|
|
747
|
+
//#endregion
|
|
748
|
+
//#region extensions/clickclack/src/access.ts
|
|
703
749
|
const CHANNEL_ID$2 = "clickclack";
|
|
704
750
|
const CLICKCLACK_MENTION_PATTERN = /(?:^|[^a-z0-9_@-])@([a-z0-9][a-z0-9_-]{1,31})(?![a-z0-9_-])/giu;
|
|
705
751
|
function normalizeClickClackUserId(value) {
|
|
@@ -987,7 +1033,8 @@ async function resolveClickClackInboundAccess(params) {
|
|
|
987
1033
|
channelIngress: resolved
|
|
988
1034
|
};
|
|
989
1035
|
}
|
|
990
|
-
|
|
1036
|
+
//#endregion
|
|
1037
|
+
//#region extensions/clickclack/src/activity.ts
|
|
991
1038
|
const CLICKCLACK_COMMENTARY_FLUSH_MS = 700;
|
|
992
1039
|
/** Item kinds rendered as agent_tool rows; everything else is commentary. */
|
|
993
1040
|
const TOOL_ITEM_KINDS = /* @__PURE__ */ new Set([
|
|
@@ -1166,7 +1213,8 @@ function createClickClackActivityPublisher(params) {
|
|
|
1166
1213
|
}
|
|
1167
1214
|
};
|
|
1168
1215
|
}
|
|
1169
|
-
|
|
1216
|
+
//#endregion
|
|
1217
|
+
//#region extensions/clickclack/src/outbound.ts
|
|
1170
1218
|
const CLICKCLACK_MAX_UPLOAD_BYTES = 67108864;
|
|
1171
1219
|
async function createTargetMessage(params) {
|
|
1172
1220
|
const parsed = parseClickClackTarget(params.to);
|
|
@@ -1437,7 +1485,8 @@ async function reconcileClickClackUnknownSend(ctx) {
|
|
|
1437
1485
|
receipt
|
|
1438
1486
|
};
|
|
1439
1487
|
}
|
|
1440
|
-
|
|
1488
|
+
//#endregion
|
|
1489
|
+
//#region extensions/clickclack/src/progress.ts
|
|
1441
1490
|
function normalizedKind(payload) {
|
|
1442
1491
|
const kind = payload.kind?.trim().toLowerCase();
|
|
1443
1492
|
if (!kind || kind === "preamble" || kind === "analysis" || kind === "thinking" || kind === "reasoning" || kind === "missing") return "commentary";
|
|
@@ -1618,7 +1667,8 @@ function createClickClackAgentProgressPublisher(params) {
|
|
|
1618
1667
|
}
|
|
1619
1668
|
};
|
|
1620
1669
|
}
|
|
1621
|
-
|
|
1670
|
+
//#endregion
|
|
1671
|
+
//#region extensions/clickclack/src/inbound.ts
|
|
1622
1672
|
const CHANNEL_ID$1 = "clickclack";
|
|
1623
1673
|
const CLICKCLACK_MESSAGE_ID_PATTERN = /^msg_[0-9a-hjkmnp-tv-z]{26}$/u;
|
|
1624
1674
|
function hasClickClackReplyMedia(payload) {
|
|
@@ -1881,7 +1931,8 @@ async function handleClickClackInbound(params) {
|
|
|
1881
1931
|
await activity?.finalize();
|
|
1882
1932
|
}
|
|
1883
1933
|
}
|
|
1884
|
-
|
|
1934
|
+
//#endregion
|
|
1935
|
+
//#region extensions/clickclack/src/gateway.ts
|
|
1885
1936
|
const CLICKCLACK_EVENT_PAGE_LIMIT = 500;
|
|
1886
1937
|
const CLICKCLACK_COMMAND_PATTERN = /^[a-z0-9_-]{1,32}$/u;
|
|
1887
1938
|
const CLICKCLACK_MAX_COMMANDS = 100;
|
|
@@ -2118,7 +2169,8 @@ async function startClickClackGatewayAccount(ctx) {
|
|
|
2118
2169
|
ctx.setStatus(channelStoppedPatch({ accountId: account.accountId }));
|
|
2119
2170
|
}
|
|
2120
2171
|
}
|
|
2121
|
-
|
|
2172
|
+
//#endregion
|
|
2173
|
+
//#region extensions/clickclack/src/channel.ts
|
|
2122
2174
|
const CHANNEL_ID = CLICKCLACK_CHANNEL_ID;
|
|
2123
2175
|
const clickClackTextMessageAdapter = createChannelMessageAdapterFromOutbound({ outbound: { sendText: async (ctx) => ({
|
|
2124
2176
|
channel: CHANNEL_ID,
|
|
@@ -2278,4 +2330,5 @@ const clickClackPlugin = createChatChannelPlugin({
|
|
|
2278
2330
|
}
|
|
2279
2331
|
}
|
|
2280
2332
|
});
|
|
2281
|
-
|
|
2333
|
+
//#endregion
|
|
2334
|
+
export { clearDiscussionBindingGeneration as A, resolveDiscussionLabel as C, bindingMatchesActiveSessionIncarnation as D, attachBindingToCurrentActiveSession as E, reserveDiscussionBindingGeneration as F, getPendingDiscussionOpen as M, listPendingDiscussionOpens as N, getClickClackDiscussionBindingStore as O, recordPendingDiscussionOpen as P, isDiscussionSessionKey as S, truncateDiscussionDisplayTitle as T, resolveDiscussionBindingAccount as _, setClickClackRuntime as a, discussionSessionKey as b, clearClickClackDiscussionChannelRevoked as c, markClickClackDiscussionChannelIdentityRevoked as d, markClickClackDiscussionChannelRevoked as f, normalizedServerBaseUrl as g, discussionInfoForBinding as h, getClickClackRuntime as i, clearPendingDiscussionOpen as j, readDiscussionSessionEntry as k, isClickClackDiscussionChannelRevoked as l, discussionAccounts as m, buildClickClackTarget as n, prepareDiscussionSessionEntry as o, prepareClickClackDiscussionChannelRevocation as p, parseClickClackTarget as r, adoptLegacyMarkers as s, clickClackPlugin as t, isClickClackDiscussionChannelRevokedAsync as u, discussionCredentialFingerprint as v, slugifyDiscussionLabel as w, fallbackDiscussionLabel as x, discussionExternalRef as y };
|
|
@@ -3,7 +3,7 @@ import { bufferToBlobPart } from "openclaw/plugin-sdk/blob-runtime";
|
|
|
3
3
|
import { captureEffectAuthority } from "openclaw/plugin-sdk/fetch-runtime";
|
|
4
4
|
import { redactToolPayloadText } from "openclaw/plugin-sdk/logging-core";
|
|
5
5
|
import { readProviderJsonResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
6
|
-
|
|
6
|
+
//#region extensions/clickclack/src/http-client.ts
|
|
7
7
|
/**
|
|
8
8
|
* Serializes optional provenance into the wire fields. Unknown JSON fields
|
|
9
9
|
* are ignored by servers without the provenance columns, so these are safe
|
|
@@ -276,7 +276,8 @@ function createClickClackClient(options) {
|
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region extensions/clickclack/src/resolve.ts
|
|
280
281
|
function findClickClackWorkspace(workspaces, selector) {
|
|
281
282
|
return workspaces.find((candidate) => candidate.id === selector || candidate.slug === selector || candidate.name === selector);
|
|
282
283
|
}
|
|
@@ -292,4 +293,5 @@ async function resolveChannelId(client, workspaceId, channel) {
|
|
|
292
293
|
if (!found) throw new Error(`ClickClack channel not found: ${channel}`);
|
|
293
294
|
return found.id;
|
|
294
295
|
}
|
|
296
|
+
//#endregion
|
|
295
297
|
export { createClickClackClient as a, ClickClackHttpError as i, resolveChannelId as n, isClickClackChannelNameConflict as o, resolveWorkspaceId as r, normalizeClickClackCorrelationId as s, findClickClackWorkspace as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -23,4 +23,5 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
23
23
|
return to;
|
|
24
24
|
};
|
|
25
25
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
26
|
+
//#endregion
|
|
26
27
|
export { __reExport as n, __exportAll as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as resolveClickClackAccount, p as listClickClackAccountIds } from "./setup-surface-
|
|
2
|
-
import { A as
|
|
3
|
-
import { a as createClickClackClient, i as ClickClackHttpError, o as isClickClackChannelNameConflict, t as findClickClackWorkspace } from "./resolve-
|
|
1
|
+
import { h as resolveClickClackAccount, p as listClickClackAccountIds } from "./setup-surface-CSITttSD.mjs";
|
|
2
|
+
import { A as clearDiscussionBindingGeneration, C as resolveDiscussionLabel, D as bindingMatchesActiveSessionIncarnation, E as attachBindingToCurrentActiveSession, F as reserveDiscussionBindingGeneration, M as getPendingDiscussionOpen, N as listPendingDiscussionOpens, O as getClickClackDiscussionBindingStore, P as recordPendingDiscussionOpen, S as isDiscussionSessionKey, T as truncateDiscussionDisplayTitle, _ as resolveDiscussionBindingAccount, b as discussionSessionKey, c as clearClickClackDiscussionChannelRevoked, d as markClickClackDiscussionChannelIdentityRevoked, f as markClickClackDiscussionChannelRevoked, g as normalizedServerBaseUrl, h as discussionInfoForBinding, j as clearPendingDiscussionOpen, k as readDiscussionSessionEntry, l as isClickClackDiscussionChannelRevoked, m as discussionAccounts, o as prepareDiscussionSessionEntry, p as prepareClickClackDiscussionChannelRevocation, s as adoptLegacyMarkers, u as isClickClackDiscussionChannelRevokedAsync, v as discussionCredentialFingerprint, w as slugifyDiscussionLabel, x as fallbackDiscussionLabel, y as discussionExternalRef } from "./channel-D3WIuNxS.mjs";
|
|
3
|
+
import { a as createClickClackClient, i as ClickClackHttpError, o as isClickClackChannelNameConflict, t as findClickClackWorkspace } from "./resolve-BgFJI_p4.mjs";
|
|
4
4
|
import "../api.js";
|
|
5
5
|
import { isDeepStrictEqual } from "node:util";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -10,7 +10,7 @@ import { buildControlUiSessionPath, registerSessionDiscussionProvider } from "op
|
|
|
10
10
|
import { createSessionVisibilityChecker } from "openclaw/plugin-sdk/session-visibility";
|
|
11
11
|
import { textResult } from "openclaw/plugin-sdk/tool-results";
|
|
12
12
|
import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
|
|
13
|
-
|
|
13
|
+
//#region extensions/clickclack/src/discussions/binding-retention.ts
|
|
14
14
|
const MAX_RETAINED_DETACHED_DISCUSSION_BINDINGS = 1e3;
|
|
15
15
|
var DetachedDiscussionBindingRetention = class {
|
|
16
16
|
#runtime;
|
|
@@ -59,7 +59,8 @@ var DetachedDiscussionBindingRetention = class {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region extensions/clickclack/src/discussions/control-session-url.ts
|
|
63
64
|
function controlSessionUrl(baseUrl, sessionKey, fallbackAgentId, mainKey, displayName) {
|
|
64
65
|
if (!baseUrl) return;
|
|
65
66
|
const url = new URL(baseUrl);
|
|
@@ -76,7 +77,8 @@ function controlSessionUrl(baseUrl, sessionKey, fallbackAgentId, mainKey, displa
|
|
|
76
77
|
url.hash = "";
|
|
77
78
|
return url.toString();
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region extensions/clickclack/src/discussions/installation.ts
|
|
80
82
|
const INSTALLATION_NAMESPACE = "discussion-installation";
|
|
81
83
|
const INSTALLATION_KEY = "current";
|
|
82
84
|
/** Returns the durable installation namespace used in server-visible ownership refs. */
|
|
@@ -94,7 +96,8 @@ async function getClickClackDiscussionInstallationId(runtime) {
|
|
|
94
96
|
if (!persisted) throw new Error("ClickClack discussion installation identity is unavailable; retry opening the discussion");
|
|
95
97
|
return persisted;
|
|
96
98
|
}
|
|
97
|
-
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region extensions/clickclack/src/discussions/service-history.ts
|
|
98
101
|
function discussionRecordJson(value) {
|
|
99
102
|
return JSON.stringify(value).replace(/[\u0085\u2028\u2029]/gu, (separator) => `\\u${separator.charCodeAt(0).toString(16).padStart(4, "0")}`);
|
|
100
103
|
}
|
|
@@ -143,7 +146,8 @@ async function readDiscussionHistory(params) {
|
|
|
143
146
|
bindingFacts.release();
|
|
144
147
|
}
|
|
145
148
|
}
|
|
146
|
-
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region extensions/clickclack/src/discussions/service-open.ts
|
|
147
151
|
const CHANNEL_NAME_MUTATION_ATTEMPTS = 4;
|
|
148
152
|
function isDefinitiveNoCreateHttpError(error) {
|
|
149
153
|
if (!(error instanceof ClickClackHttpError) || error.status < 400 || error.status >= 500) return false;
|
|
@@ -469,7 +473,8 @@ async function reconcilePendingDiscussionOpen(params) {
|
|
|
469
473
|
});
|
|
470
474
|
return false;
|
|
471
475
|
}
|
|
472
|
-
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region extensions/clickclack/src/discussions/service.ts
|
|
473
478
|
const RECONCILE_INTERVAL_MS = 6e4;
|
|
474
479
|
const RECONCILE_DEBOUNCE_MS = 250;
|
|
475
480
|
const RECONCILE_RETRY_MS = 1e3;
|
|
@@ -906,7 +911,8 @@ var ClickClackDiscussionService = class {
|
|
|
906
911
|
return operation;
|
|
907
912
|
}
|
|
908
913
|
};
|
|
909
|
-
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region extensions/clickclack/src/discussions/register.ts
|
|
910
916
|
const DEFAULT_MESSAGE_LIMIT = 30;
|
|
911
917
|
const MAX_MESSAGE_LIMIT = 200;
|
|
912
918
|
const TARGETED_SESSION_TOOLS = /* @__PURE__ */ new Set([
|
|
@@ -926,6 +932,7 @@ function registerClickClackDiscussions(api) {
|
|
|
926
932
|
return;
|
|
927
933
|
}
|
|
928
934
|
const runtime = api.runtime;
|
|
935
|
+
adoptLegacyMarkers(runtime);
|
|
929
936
|
const service = new ClickClackDiscussionService(runtime);
|
|
930
937
|
function isClickClackDiscussionSessionTarget(params) {
|
|
931
938
|
if (!isDiscussionSessionKey(params.requesterSessionKey)) return;
|
|
@@ -1053,4 +1060,5 @@ function registerClickClackDiscussions(api) {
|
|
|
1053
1060
|
}
|
|
1054
1061
|
});
|
|
1055
1062
|
}
|
|
1063
|
+
//#endregion
|
|
1056
1064
|
export { registerClickClackDiscussions as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
2
|
import { collectConditionalChannelFieldAssignments, createChannelSecretContract, hasConfiguredSecretInputValue } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
|
|
3
|
-
|
|
3
|
+
//#region extensions/clickclack/src/secret-contract.ts
|
|
4
4
|
const channelSecrets = createChannelSecretContract({
|
|
5
5
|
channelKey: "clickclack",
|
|
6
6
|
account: ["token"],
|
|
@@ -22,4 +22,5 @@ const channelSecrets = createChannelSecretContract({
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
|
|
25
|
+
//#endregion
|
|
25
26
|
export { collectRuntimeConfigAssignments as n, secretTargetRegistryEntries as r, channelSecrets as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-
|
|
1
|
+
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-CF7TKtkU.mjs";
|
|
2
2
|
import "../secret-contract-api.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as isClickClackSetupLoopbackHost, i as buildClickClackSetupClaimUrl, o as requireClickClackSetupApiBaseUrl } from "./setup-surface-
|
|
1
|
+
import { a as isClickClackSetupLoopbackHost, i as buildClickClackSetupClaimUrl, o as requireClickClackSetupApiBaseUrl } from "./setup-surface-CSITttSD.mjs";
|
|
2
2
|
import { withTimeout } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
3
3
|
import { createProviderOperationDeadline, readProviderJsonResponse, readResponseTextLimited, resolveProviderOperationTimeoutMs } from "openclaw/plugin-sdk/provider-http";
|
|
4
4
|
import { isStringArray } from "openclaw/plugin-sdk/collection-input-runtime";
|
|
5
5
|
import { fetchWithSsrFGuard, resolvePinnedHostnameWithPolicy, ssrfPolicyFromHttpBaseUrlAllowedHostname } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
6
|
-
|
|
6
|
+
//#region extensions/clickclack/src/setup-claim.ts
|
|
7
7
|
const CLICKCLACK_ERROR_BODY_LIMIT_BYTES = 8192;
|
|
8
8
|
const CLICKCLACK_SETUP_CODE_CLAIM_JSON_LIMIT_BYTES = 65536;
|
|
9
9
|
const CLICKCLACK_SETUP_CODE_CLAIM_TIMEOUT_MS = 3e4;
|
|
@@ -122,4 +122,5 @@ async function claimClickClackSetupCode(params) {
|
|
|
122
122
|
await release();
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
+
//#endregion
|
|
125
126
|
export { claimClickClackSetupCode };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as clickClackConfigAdapter, n as clickClackSetupContract, s as clickClackConfigSchema, t as clickClackSetupWizard, u as clickClackMeta } from "./setup-surface-
|
|
2
|
-
|
|
1
|
+
import { l as clickClackConfigAdapter, n as clickClackSetupContract, s as clickClackConfigSchema, t as clickClackSetupWizard, u as clickClackMeta } from "./setup-surface-CSITttSD.mjs";
|
|
2
|
+
//#region extensions/clickclack/src/channel.setup.ts
|
|
3
3
|
const clickClackSetupPlugin = {
|
|
4
4
|
id: "clickclack",
|
|
5
5
|
meta: clickClackMeta,
|
|
@@ -14,4 +14,5 @@ const clickClackSetupPlugin = {
|
|
|
14
14
|
setupContract: clickClackSetupContract,
|
|
15
15
|
setupWizard: clickClackSetupWizard
|
|
16
16
|
};
|
|
17
|
+
//#endregion
|
|
17
18
|
export { clickClackSetupPlugin as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as clickClackSetupPlugin } from "./setup-plugin-api-CFG0EYat.mjs";
|
|
@@ -15,7 +15,7 @@ import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
|
15
15
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, applyAccountNameToChannelSection, baseUrlTextInput, createSetupTranslator, createStandardChannelSetupStatus, defineTokenCredential, formatDocsLink, hasConfiguredSecretInput, moveSingleAccountChannelSectionToDefaultAccount, patchScopedAccountConfig, prepareScopedSetupConfig, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
|
|
16
16
|
import { createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime";
|
|
17
17
|
import net from "node:net";
|
|
18
|
-
|
|
18
|
+
//#region extensions/clickclack/src/accounts.ts
|
|
19
19
|
const DEFAULT_RECONNECT_MS = 1500;
|
|
20
20
|
const MIN_RECONNECT_MS = 100;
|
|
21
21
|
const MAX_RECONNECT_MS = 6e4;
|
|
@@ -209,7 +209,8 @@ function listEnabledClickClackAccounts(cfg) {
|
|
|
209
209
|
accountId
|
|
210
210
|
})).filter((account) => account.enabled);
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region extensions/clickclack/src/channel-config.ts
|
|
213
214
|
const CLICKCLACK_CHANNEL_ID = "clickclack";
|
|
214
215
|
const clickClackMeta = { ...getChatChannelMeta(CLICKCLACK_CHANNEL_ID) };
|
|
215
216
|
const clickClackConfigAdapter = {
|
|
@@ -229,7 +230,8 @@ const clickClackConfigAdapter = {
|
|
|
229
230
|
accountId
|
|
230
231
|
}).defaultTo
|
|
231
232
|
};
|
|
232
|
-
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region extensions/clickclack/src/config-schema.ts
|
|
233
235
|
const ClickClackAccountConfigSchema = z.object({
|
|
234
236
|
name: z.string().optional(),
|
|
235
237
|
enabled: z.boolean().optional(),
|
|
@@ -295,7 +297,8 @@ const clickClackConfigSchema = buildChannelConfigSchema(ClickClackConfigSchema,
|
|
|
295
297
|
help: "Override the account policy for threads rooted in this bot's messages in this channel."
|
|
296
298
|
}
|
|
297
299
|
} });
|
|
298
|
-
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region extensions/clickclack/src/setup-contract.ts
|
|
299
302
|
const CLICKCLACK_SETUP_CODE_CLAIM_PATH = "/api/bot-setup-codes/claim";
|
|
300
303
|
const LOOPBACK_ADDRESSES = new net.BlockList();
|
|
301
304
|
LOOPBACK_ADDRESSES.addSubnet("127.0.0.0", 8, "ipv4");
|
|
@@ -337,7 +340,8 @@ function requireClickClackSetupClaimUrl(value) {
|
|
|
337
340
|
function buildClickClackSetupClaimUrl(baseUrl) {
|
|
338
341
|
return baseUrl.replace(/\/+$/u, "") + CLICKCLACK_SETUP_CODE_CLAIM_PATH;
|
|
339
342
|
}
|
|
340
|
-
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region extensions/clickclack/src/setup-core.ts
|
|
341
345
|
const channel$1 = "clickclack";
|
|
342
346
|
const SETUP_CODE_ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
343
347
|
const SETUP_CODE_LENGTH = 12;
|
|
@@ -446,7 +450,7 @@ const clickClackSetupAdapter = {
|
|
|
446
450
|
const claimUrl = setup.exactClaimUrl && !privateApiBaseUrl ? setup.exactClaimUrl : buildClickClackSetupClaimUrl(privateApiBaseUrl ?? setup.baseUrl);
|
|
447
451
|
let claim;
|
|
448
452
|
try {
|
|
449
|
-
const { claimClickClackSetupCode } = await import("./setup-claim-
|
|
453
|
+
const { claimClickClackSetupCode } = await import("./setup-claim-Ca2nzQHc.mjs");
|
|
450
454
|
claim = await claimClickClackSetupCode({
|
|
451
455
|
claimUrl,
|
|
452
456
|
code: setup.code,
|
|
@@ -526,7 +530,7 @@ const clickClackSetupAdapter = {
|
|
|
526
530
|
});
|
|
527
531
|
},
|
|
528
532
|
afterAccountConfigWritten: async ({ cfg, accountId, runtime }) => {
|
|
529
|
-
const { verifyClickClackAccountAfterSetup } = await import("./setup-verify-
|
|
533
|
+
const { verifyClickClackAccountAfterSetup } = await import("./setup-verify-DLfG0Fyt.mjs");
|
|
530
534
|
await verifyClickClackAccountAfterSetup({
|
|
531
535
|
cfg,
|
|
532
536
|
accountId,
|
|
@@ -606,7 +610,8 @@ const clickClackSetupContract = defineChannelSetupContract({
|
|
|
606
610
|
},
|
|
607
611
|
legacyAdapter: clickClackSetupAdapter
|
|
608
612
|
});
|
|
609
|
-
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region extensions/clickclack/src/setup-surface.ts
|
|
610
615
|
const t = createSetupTranslator();
|
|
611
616
|
const channel = "clickclack";
|
|
612
617
|
function hasConfiguredClickClackCredential(account) {
|
|
@@ -707,7 +712,7 @@ const clickClackSetupWizard = {
|
|
|
707
712
|
})
|
|
708
713
|
}],
|
|
709
714
|
finalize: async ({ cfg, accountId, credentialValues, prompter }) => {
|
|
710
|
-
const { checkClickClackSetupConnection } = await import("./setup-verify-
|
|
715
|
+
const { checkClickClackSetupConnection } = await import("./setup-verify-DLfG0Fyt.mjs");
|
|
711
716
|
const result = await checkClickClackSetupConnection({
|
|
712
717
|
cfg,
|
|
713
718
|
accountId,
|
|
@@ -726,4 +731,5 @@ const clickClackSetupWizard = {
|
|
|
726
731
|
},
|
|
727
732
|
disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
|
|
728
733
|
};
|
|
734
|
+
//#endregion
|
|
729
735
|
export { resolveDefaultClickClackAccountId as _, isClickClackSetupLoopbackHost as a, CLICKCLACK_CHANNEL_ID as c, DEFAULT_ACCOUNT_ID$2 as d, isClickClackAccountCurrent as f, resolveClickClackAccountConfig as g, resolveClickClackAccount as h, buildClickClackSetupClaimUrl as i, clickClackConfigAdapter as l, listEnabledClickClackAccounts as m, clickClackSetupContract as n, requireClickClackSetupApiBaseUrl as o, listClickClackAccountIds as p, CLICKCLACK_SETUP_CODE_CLAIM_PATH as r, clickClackConfigSchema as s, clickClackSetupWizard as t, clickClackMeta as u };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h as resolveClickClackAccount } from "./setup-surface-
|
|
2
|
-
import { a as createClickClackClient, i as ClickClackHttpError, t as findClickClackWorkspace } from "./resolve-
|
|
1
|
+
import { h as resolveClickClackAccount } from "./setup-surface-CSITttSD.mjs";
|
|
2
|
+
import { a as createClickClackClient, i as ClickClackHttpError, t as findClickClackWorkspace } from "./resolve-BgFJI_p4.mjs";
|
|
3
3
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
4
4
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
5
5
|
import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/setup";
|
|
6
|
-
|
|
6
|
+
//#region extensions/clickclack/src/setup-verify.ts
|
|
7
7
|
const GATEWAY_RUNNING_MESSAGE = "OpenClaw is running — ClickClack will connect automatically.";
|
|
8
8
|
const GATEWAY_NOT_RUNNING_MESSAGE = "Start OpenClaw to connect: openclaw gateway";
|
|
9
9
|
const GATEWAY_UNKNOWN_MESSAGE = "If OpenClaw is running it connects automatically; otherwise start it with: openclaw gateway";
|
|
@@ -78,4 +78,5 @@ async function verifyClickClackAccountAfterSetup(params) {
|
|
|
78
78
|
if (message) params.runtime.log(message);
|
|
79
79
|
params.runtime.log(await probeClickClackGatewayStatus());
|
|
80
80
|
}
|
|
81
|
+
//#endregion
|
|
81
82
|
export { checkClickClackSetupConnection, verifyClickClackAccountAfterSetup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"api.js","source":"extensions/clickclack/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/clickclack/channel-plugin-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/clickclack/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/clickclack/index.ts"},{"output":"runtime-api.js","source":"extensions/clickclack/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/clickclack/secret-contract-api.ts"},{"output":"setup-entry.js","source":"extensions/clickclack/setup-entry.ts"},{"output":"setup-plugin-api.js","source":"extensions/clickclack/setup-plugin-api.ts"}],"chunks":[{"output":".setup/channel-
|
|
1
|
+
{"version":3,"entries":[{"output":"api.js","source":"extensions/clickclack/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/clickclack/channel-plugin-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/clickclack/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/clickclack/index.ts"},{"output":"runtime-api.js","source":"extensions/clickclack/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/clickclack/secret-contract-api.ts"},{"output":"setup-entry.js","source":"extensions/clickclack/setup-entry.ts"},{"output":"setup-plugin-api.js","source":"extensions/clickclack/setup-plugin-api.ts"}],"chunks":[{"output":".setup/channel-D3WIuNxS.mjs","sha256":"d9b30bc94829224c265abcd3ebe8609ff9f1faa190e1b9c8b02780bd28968adb","facadeSource":null,"sources":["extensions/clickclack/src/access.ts","extensions/clickclack/src/activity.ts","extensions/clickclack/src/channel.ts","extensions/clickclack/src/discussions/binding-generation.ts","extensions/clickclack/src/discussions/binding-store.ts","extensions/clickclack/src/discussions/eligibility.ts","extensions/clickclack/src/discussions/naming.ts","extensions/clickclack/src/discussions/revoked-channel-store.ts","extensions/clickclack/src/discussions/routing.ts","extensions/clickclack/src/discussions/session-authority.ts","extensions/clickclack/src/gateway.ts","extensions/clickclack/src/group-policy.ts","extensions/clickclack/src/inbound.ts","extensions/clickclack/src/outbound.ts","extensions/clickclack/src/progress.ts","extensions/clickclack/src/runtime.ts","extensions/clickclack/src/target.ts","src/channels/mention-gating.ts"]},{"output":".setup/resolve-BgFJI_p4.mjs","sha256":"6507f98dbad7303f7f3743c65070ed0e1e1c851f62a63a2421336e9e41b1e159","facadeSource":null,"sources":["extensions/clickclack/src/http-client.ts","extensions/clickclack/src/resolve.ts"]},{"output":".setup/rolldown-runtime-BBjsoOtd.mjs","sha256":"bc1c4c6b4073846c33e02846e4b262d6747c77fc72ca9f9cc2f23b8ff135c35d","facadeSource":null,"sources":[]},{"output":".setup/runtime-api-CMReYU7v.mjs","sha256":"b2272b248fc0be22a2ed875993dba06ec2dd2221fe44d67f740f52d9d328e798","facadeSource":null,"sources":["extensions/clickclack/src/discussions/binding-retention.ts","extensions/clickclack/src/discussions/control-session-url.ts","extensions/clickclack/src/discussions/installation.ts","extensions/clickclack/src/discussions/register.ts","extensions/clickclack/src/discussions/service-history.ts","extensions/clickclack/src/discussions/service-open.ts","extensions/clickclack/src/discussions/service.ts"]},{"output":".setup/secret-contract-api--45pFCg3.mjs","sha256":"a4acd42e5941f0a44ce15a2a29a09c68374187ef4920f59d3517ec4091923ab4","facadeSource":"extensions/clickclack/secret-contract-api.ts","sources":[]},{"output":".setup/secret-contract-CF7TKtkU.mjs","sha256":"46dbbac17baeee6dde3a2ca18263b1c9066a411124b5ee76968f583dee11afaa","facadeSource":null,"sources":["extensions/clickclack/src/secret-contract.ts"]},{"output":".setup/setup-claim-Ca2nzQHc.mjs","sha256":"f05ac1819df10353ec9197684c39d551d8010abec62d507aaa181278ede2e6b4","facadeSource":"extensions/clickclack/src/setup-claim.ts","sources":["extensions/clickclack/src/setup-claim.ts"]},{"output":".setup/setup-plugin-api-CFG0EYat.mjs","sha256":"ef78e1a5c92a9a301aa8f8e2cc37e97e9c97cda277786d62a2c44716b106cad7","facadeSource":null,"sources":["extensions/clickclack/src/channel.setup.ts"]},{"output":".setup/setup-plugin-api-Cg_ECaNj.mjs","sha256":"bd355662feb28dc0ced75ffd8da6fcdbf6c7113e2348f286b6732aeffed2e13f","facadeSource":"extensions/clickclack/setup-plugin-api.ts","sources":[]},{"output":".setup/setup-surface-CSITttSD.mjs","sha256":"16911e7f74a501ae240cdb0c52390144e1a49c30357b7b52e08607d31c3f09e1","facadeSource":null,"sources":["extensions/clickclack/src/accounts.ts","extensions/clickclack/src/channel-config.ts","extensions/clickclack/src/config-schema.ts","extensions/clickclack/src/setup-contract.ts","extensions/clickclack/src/setup-core.ts","extensions/clickclack/src/setup-surface.ts"]},{"output":".setup/setup-verify-DLfG0Fyt.mjs","sha256":"4674a2a6f604587567b901b8d92d537a2c75ec679d0fd714cd51890f5f752f0c","facadeSource":"extensions/clickclack/src/setup-verify.ts","sources":["extensions/clickclack/src/setup-verify.ts"]},{"output":"api.js","sha256":"31c1c162eef13d29242145fab69cc4ec172f19741ec27194705614e63a1d9a80","facadeSource":"extensions/clickclack/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"1990dd93118f5426e006304d6c27dbf8784b4deb17cd9be2407700c611ab5ea5","facadeSource":"extensions/clickclack/channel-plugin-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"17f03dfff11fe284af1a23eb162306d5a7dd3d88b87fff05fceba9d325da4deb","facadeSource":"extensions/clickclack/doctor-contract-api.ts","sources":["extensions/clickclack/src/doctor-contract.ts","packages/normalization-core/src/record-coerce.ts","src/config/channel-config-normalization.ts","src/plugin-sdk/legacy-webhook-listener-migration.ts"]},{"output":"index.js","sha256":"3aa3b127485f1bc277f41bcf52ae5f41e0f099efffecfa921be61a1d7dc87339","facadeSource":"extensions/clickclack/index.ts","sources":["extensions/clickclack/index.ts"]},{"output":"runtime-api.js","sha256":"2b94e9e5fad4f48fae0401f2c3126cc4403da69509851e5c2261dd12be744c02","facadeSource":"extensions/clickclack/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"3d894a7187c17a0107ab53affedd2a59b47e87dbf6cece79a1c53080704c5dc6","facadeSource":"extensions/clickclack/secret-contract-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"b7e5314eab7ca325df2c66081c852f8f04797a0a43f8234e4f654a6b8bf0b451","facadeSource":"extensions/clickclack/setup-entry.ts","sources":["extensions/clickclack/setup-entry.ts"]},{"output":"setup-plugin-api.js","sha256":"1642597eabac7bb1c5ce17adb2f27009e46a63a7ee74962b5f0a019db607921d","facadeSource":"extensions/clickclack/setup-plugin-api.ts","sources":[]}],"unrenderedSources":["extensions/clickclack/api.ts","extensions/clickclack/channel-plugin-api.ts","extensions/clickclack/config-doctor-api.ts","extensions/clickclack/doctor-contract-api.ts","extensions/clickclack/runtime-api.ts","extensions/clickclack/secret-contract-api.ts","extensions/clickclack/setup-plugin-api.ts"]}
|
package/dist/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as resolveDefaultClickClackAccountId, d as DEFAULT_ACCOUNT_ID, h as resolveClickClackAccount, m as listEnabledClickClackAccounts, p as listClickClackAccountIds, s as clickClackConfigSchema } from "./.setup/setup-surface-
|
|
2
|
-
import { a as setClickClackRuntime, i as getClickClackRuntime, n as buildClickClackTarget, r as parseClickClackTarget, t as clickClackPlugin } from "./.setup/channel-
|
|
3
|
-
import { a as createClickClackClient } from "./.setup/resolve-
|
|
1
|
+
import { _ as resolveDefaultClickClackAccountId, d as DEFAULT_ACCOUNT_ID, h as resolveClickClackAccount, m as listEnabledClickClackAccounts, p as listClickClackAccountIds, s as clickClackConfigSchema } from "./.setup/setup-surface-CSITttSD.mjs";
|
|
2
|
+
import { a as setClickClackRuntime, i as getClickClackRuntime, n as buildClickClackTarget, r as parseClickClackTarget, t as clickClackPlugin } from "./.setup/channel-D3WIuNxS.mjs";
|
|
3
|
+
import { a as createClickClackClient } from "./.setup/resolve-BgFJI_p4.mjs";
|
|
4
4
|
export { DEFAULT_ACCOUNT_ID, buildClickClackTarget, clickClackConfigSchema, clickClackPlugin, createClickClackClient, getClickClackRuntime, listClickClackAccountIds, listEnabledClickClackAccounts, parseClickClackTarget, resolveClickClackAccount, resolveDefaultClickClackAccountId, setClickClackRuntime };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as clickClackPlugin } from "./.setup/channel-
|
|
1
|
+
export { t as clickClackPlugin } from "./.setup/channel-D3WIuNxS.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./.setup/rolldown-runtime-
|
|
2
|
-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./.setup/rolldown-runtime-BBjsoOtd.mjs";
|
|
2
|
+
//#region packages/normalization-core/src/record-coerce.ts
|
|
3
3
|
/** Type guard for non-array object records at browser-safe boundaries. */
|
|
4
4
|
function isRecord(value) {
|
|
5
5
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -8,7 +8,8 @@ function isRecord(value) {
|
|
|
8
8
|
function asNullableRecord(value) {
|
|
9
9
|
return isRecord(value) ? value : null;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/config/channel-config-normalization.ts
|
|
12
13
|
/** Applies one channel-specific doctor migration to every object-shaped account. */
|
|
13
14
|
function normalizeChannelAccounts(params) {
|
|
14
15
|
const rawAccounts = asNullableRecord(params.entry.accounts);
|
|
@@ -84,7 +85,8 @@ function normalizeChannelConfigEntries(params) {
|
|
|
84
85
|
changes
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
88
90
|
/** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
|
|
89
91
|
function createLegacyWebhookListenerDoctorContract(params) {
|
|
90
92
|
const portKey = params.portKey ?? "webhookPort";
|
|
@@ -154,11 +156,13 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
154
156
|
}
|
|
155
157
|
};
|
|
156
158
|
}
|
|
157
|
-
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
158
161
|
var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
|
|
159
162
|
import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
160
163
|
__reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
|
|
161
|
-
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region extensions/clickclack/src/doctor-contract.ts
|
|
162
166
|
function stripTimeoutSeconds(value) {
|
|
163
167
|
const record = (0, runtime_doctor_migrations_exports.asObjectRecord)(value);
|
|
164
168
|
if (!record) return {
|
|
@@ -203,4 +207,5 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
203
207
|
changes: ["Removed retired ClickClack timeout tuning knobs."]
|
|
204
208
|
};
|
|
205
209
|
}
|
|
210
|
+
//#endregion
|
|
206
211
|
export { normalizeCompatibilityConfig };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as registerClickClackDiscussions } from "./.setup/runtime-api-
|
|
1
|
+
import { t as registerClickClackDiscussions } from "./.setup/runtime-api-CMReYU7v.mjs";
|
|
2
2
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
3
|
-
|
|
3
|
+
//#region extensions/clickclack/index.ts
|
|
4
4
|
var clickclack_default = defineBundledChannelEntry({
|
|
5
5
|
id: "clickclack",
|
|
6
6
|
name: "ClickClack",
|
|
@@ -16,4 +16,5 @@ var clickclack_default = defineBundledChannelEntry({
|
|
|
16
16
|
},
|
|
17
17
|
registerFull: registerClickClackDiscussions
|
|
18
18
|
});
|
|
19
|
+
//#endregion
|
|
19
20
|
export { clickclack_default as default };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as resolveClickClackAccount } from "./.setup/setup-surface-
|
|
2
|
-
import { a as setClickClackRuntime, r as parseClickClackTarget } from "./.setup/channel-
|
|
3
|
-
import { a as createClickClackClient } from "./.setup/resolve-
|
|
4
|
-
import { t as registerClickClackDiscussions } from "./.setup/runtime-api-
|
|
1
|
+
import { h as resolveClickClackAccount } from "./.setup/setup-surface-CSITttSD.mjs";
|
|
2
|
+
import { a as setClickClackRuntime, r as parseClickClackTarget } from "./.setup/channel-D3WIuNxS.mjs";
|
|
3
|
+
import { a as createClickClackClient } from "./.setup/resolve-BgFJI_p4.mjs";
|
|
4
|
+
import { t as registerClickClackDiscussions } from "./.setup/runtime-api-CMReYU7v.mjs";
|
|
5
5
|
export { createClickClackClient, parseClickClackTarget, registerClickClackDiscussions, resolveClickClackAccount, setClickClackRuntime };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-
|
|
1
|
+
export { t as channelSecrets, n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-CF7TKtkU.mjs";
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
3
|
+
//#region extensions/clickclack/setup-entry.ts
|
|
4
4
|
var setup_entry_default = defineBundledChannelSetupEntry({
|
|
5
5
|
importMetaUrl: import.meta.url,
|
|
6
6
|
plugin: {
|
|
7
|
-
specifier: fileURLToPath(new URL(".setup/setup-plugin-api-
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/setup-plugin-api-Cg_ECaNj.mjs", import.meta.url).href),
|
|
8
8
|
exportName: "clickClackSetupPlugin"
|
|
9
9
|
},
|
|
10
10
|
secrets: {
|
|
11
|
-
specifier: fileURLToPath(new URL(".setup/secret-contract-api
|
|
11
|
+
specifier: fileURLToPath(new URL(".setup/secret-contract-api--45pFCg3.mjs", import.meta.url).href),
|
|
12
12
|
exportName: "channelSecrets"
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
+
//#endregion
|
|
15
16
|
export { setup_entry_default as default };
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as clickClackSetupPlugin } from "./.setup/setup-plugin-api-
|
|
1
|
+
export { t as clickClackSetupPlugin } from "./.setup/setup-plugin-api-CFG0EYat.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/clickclack",
|
|
3
|
-
"version": "2026.11.5-beta.
|
|
3
|
+
"version": "2026.11.5-beta.2",
|
|
4
4
|
"description": "OpenClaw ClickClack channel plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"zod": "4.6.7"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.11.5-beta.
|
|
15
|
+
"openclaw": ">=2026.11.5-beta.2"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -138,10 +138,10 @@
|
|
|
138
138
|
"allowInvalidConfigRecovery": true
|
|
139
139
|
},
|
|
140
140
|
"compat": {
|
|
141
|
-
"pluginApi": ">=2026.11.5-beta.
|
|
141
|
+
"pluginApi": ">=2026.11.5-beta.2"
|
|
142
142
|
},
|
|
143
143
|
"build": {
|
|
144
|
-
"openclawVersion": "2026.11.5-beta.
|
|
144
|
+
"openclawVersion": "2026.11.5-beta.2",
|
|
145
145
|
"bundledDist": false
|
|
146
146
|
},
|
|
147
147
|
"release": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as clickClackSetupPlugin } from "./setup-plugin-api-BTqE973B.mjs";
|