@openclaw/clickclack 2026.10.10-beta.5 → 2026.11.1
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-DRcZ_twH.mjs → channel-XqDJxK7_.mjs} +24 -44
- package/dist/.setup/{resolve-Br3ylpSz.mjs → resolve-BLI5HcqS.mjs} +28 -22
- package/dist/.setup/{rolldown-runtime-B4FMCO8f.mjs → rolldown-runtime-nwUcYXjP.mjs} +1 -2
- package/dist/.setup/{runtime-api-BrlvVAQJ.mjs → runtime-api-CeKFBn90.mjs} +13 -23
- package/dist/.setup/{secret-contract-CF7TKtkU.mjs → secret-contract-Dj8nibUr.mjs} +1 -2
- package/dist/.setup/{secret-contract-api--45pFCg3.mjs → secret-contract-api-DS3Vv0Gu.mjs} +1 -1
- package/dist/.setup/{setup-claim-BPuQuMKW.mjs → setup-claim-C9srZXvu.mjs} +2 -3
- package/dist/.setup/{setup-plugin-api-Ccxm2ydn.mjs → setup-plugin-api-4n3kQygx.mjs} +2 -3
- package/dist/.setup/setup-plugin-api-C05rrvnR.mjs +1 -0
- package/dist/.setup/{setup-surface-BJ3jioqA.mjs → setup-surface-91axKVt-.mjs} +9 -15
- package/dist/.setup/{setup-verify-DGsYtVh9.mjs → setup-verify-VR2ppXpI.mjs} +3 -4
- 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 +6 -11
- package/dist/index.js +2 -3
- package/dist/runtime-api.js +4 -4
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-entry.js +3 -4
- package/dist/setup-plugin-api.js +1 -1
- package/package.json +4 -4
- package/dist/.setup/setup-plugin-api-0RMVREuM.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-nwUcYXjP.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-91axKVt-.mjs";
|
|
3
|
+
import { a as createClickClackClient, i as ClickClackHttpError, n as resolveChannelId, r as resolveWorkspaceId, s as normalizeClickClackCorrelationId } from "./resolve-BLI5HcqS.mjs";
|
|
4
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-Dj8nibUr.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";
|
|
@@ -28,7 +28,7 @@ import { extensionForMime } from "openclaw/plugin-sdk/media-mime";
|
|
|
28
28
|
import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
|
|
29
29
|
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
30
30
|
import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
31
|
-
|
|
31
|
+
// src/channels/mention-gating.ts
|
|
32
32
|
function resolveBotThreadMentionPolicy(params) {
|
|
33
33
|
if (!params.isBotOwnedThread || params.requireMentionInBotThreads === void 0) return {
|
|
34
34
|
requireMention: params.requireMention,
|
|
@@ -39,13 +39,11 @@ function resolveBotThreadMentionPolicy(params) {
|
|
|
39
39
|
implicitMentionKinds: params.requireMentionInBotThreads ? params.implicitMentionKinds?.filter((kind) => kind === "native") : params.implicitMentionKinds
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/channel-mention-gating
|
|
42
|
+
// \0openclaw:bundled-sdk:openclaw/plugin-sdk/channel-mention-gating
|
|
44
43
|
var channel_mention_gating_exports = /* @__PURE__ */ __exportAll({ resolveBotThreadMentionPolicy: () => resolveBotThreadMentionPolicy });
|
|
45
44
|
import * as import_openclaw_plugin_sdk_channel_mention_gating from "openclaw/plugin-sdk/channel-mention-gating";
|
|
46
45
|
__reExport(channel_mention_gating_exports, import_openclaw_plugin_sdk_channel_mention_gating);
|
|
47
|
-
|
|
48
|
-
//#region extensions/clickclack/src/discussions/binding-generation.ts
|
|
46
|
+
// extensions/clickclack/src/discussions/binding-generation.ts
|
|
49
47
|
const GENERATION_STORE_OPTIONS = {
|
|
50
48
|
namespace: "discussion-binding-generations",
|
|
51
49
|
maxEntries: 1e4,
|
|
@@ -172,8 +170,7 @@ async function hasPendingDiscussionOpenForDestination(params) {
|
|
|
172
170
|
const serverBaseUrl = params.serverBaseUrl.replace(/\/+$/u, "");
|
|
173
171
|
return (await listPendingDiscussionOpens(params.runtime)).some((pending) => pending.serverBaseUrl === serverBaseUrl && pending.workspaceId === params.workspaceId);
|
|
174
172
|
}
|
|
175
|
-
|
|
176
|
-
//#region extensions/clickclack/src/discussions/binding-store.ts
|
|
173
|
+
// extensions/clickclack/src/discussions/binding-store.ts
|
|
177
174
|
function bindingMatchesActiveSessionIncarnation(runtime, sessionKey, binding) {
|
|
178
175
|
const entry = runtime.agent.session.getSessionEntry({
|
|
179
176
|
sessionKey,
|
|
@@ -394,8 +391,7 @@ function getClickClackDiscussionBindingStore(runtime) {
|
|
|
394
391
|
storesByRuntime$1.set(runtime, created);
|
|
395
392
|
return created;
|
|
396
393
|
}
|
|
397
|
-
|
|
398
|
-
//#region extensions/clickclack/src/discussions/naming.ts
|
|
394
|
+
// extensions/clickclack/src/discussions/naming.ts
|
|
399
395
|
function shortSessionHash(sessionKey) {
|
|
400
396
|
return createHash("sha256").update(sessionKey).digest("hex").slice(0, 32);
|
|
401
397
|
}
|
|
@@ -449,8 +445,7 @@ function discussionSessionKey(params) {
|
|
|
449
445
|
}
|
|
450
446
|
});
|
|
451
447
|
}
|
|
452
|
-
|
|
453
|
-
//#region extensions/clickclack/src/discussions/eligibility.ts
|
|
448
|
+
// extensions/clickclack/src/discussions/eligibility.ts
|
|
454
449
|
function discussionAccounts(cfg) {
|
|
455
450
|
return listEnabledClickClackAccounts(cfg).filter((account) => account.configured && account.discussions.enabled);
|
|
456
451
|
}
|
|
@@ -481,8 +476,7 @@ function discussionInfoForBinding(binding, account) {
|
|
|
481
476
|
openUrl: `${baseUrl}/app/${encodeURIComponent(binding.workspaceRouteId)}/${encodeURIComponent(binding.channelRouteId)}`
|
|
482
477
|
};
|
|
483
478
|
}
|
|
484
|
-
|
|
485
|
-
//#region extensions/clickclack/src/discussions/revoked-channel-store.ts
|
|
479
|
+
// extensions/clickclack/src/discussions/revoked-channel-store.ts
|
|
486
480
|
const STORE_OPTIONS = {
|
|
487
481
|
namespace: "discussion-revoked-channels",
|
|
488
482
|
maxEntries: 1e5,
|
|
@@ -579,8 +573,7 @@ async function isClickClackDiscussionChannelRevokedAsync(params) {
|
|
|
579
573
|
function revocationApplies(revoked, binding) {
|
|
580
574
|
return Boolean(revoked && (!binding || !revoked.binding || isDeepStrictEqual(revoked.binding, binding)));
|
|
581
575
|
}
|
|
582
|
-
|
|
583
|
-
//#region extensions/clickclack/src/discussions/routing.ts
|
|
576
|
+
// extensions/clickclack/src/discussions/routing.ts
|
|
584
577
|
async function resolveClickClackDiscussionRoute(params) {
|
|
585
578
|
const store = getClickClackDiscussionBindingStore(params.runtime);
|
|
586
579
|
await store.prepare();
|
|
@@ -650,8 +643,7 @@ async function resolveClickClackDiscussionRoute(params) {
|
|
|
650
643
|
revocation?.release();
|
|
651
644
|
}
|
|
652
645
|
}
|
|
653
|
-
|
|
654
|
-
//#region extensions/clickclack/src/group-policy.ts
|
|
646
|
+
// extensions/clickclack/src/group-policy.ts
|
|
655
647
|
function resolveClickClackGroupPolicy(params) {
|
|
656
648
|
const { account, channelId } = params;
|
|
657
649
|
const channelKey = channelId?.trim();
|
|
@@ -666,8 +658,7 @@ function resolveClickClackGroupPolicy(params) {
|
|
|
666
658
|
botLoopProtection: mergePairLoopGuardConfig(account.botLoopProtection, wildcard?.botLoopProtection, exact?.botLoopProtection)
|
|
667
659
|
};
|
|
668
660
|
}
|
|
669
|
-
|
|
670
|
-
//#region extensions/clickclack/src/mention-facts.ts
|
|
661
|
+
// extensions/clickclack/src/mention-facts.ts
|
|
671
662
|
const CLICKCLACK_MENTION_PATTERN = /(?:^|[^a-z0-9_@-])@([a-z0-9][a-z0-9_-]{1,31})(?![a-z0-9_-])/giu;
|
|
672
663
|
function buildLocalMentionRegexes(params) {
|
|
673
664
|
if (params.mentionPatterns.length === 0) return [];
|
|
@@ -721,8 +712,7 @@ function resolveClickClackMentionFacts(params) {
|
|
|
721
712
|
hasAnyMention: mentionHandles.length > 0 || hasConfiguredMention
|
|
722
713
|
};
|
|
723
714
|
}
|
|
724
|
-
|
|
725
|
-
//#region extensions/clickclack/src/runtime.ts
|
|
715
|
+
// extensions/clickclack/src/runtime.ts
|
|
726
716
|
/**
|
|
727
717
|
* Runtime store for host-provided OpenClaw services used by the ClickClack
|
|
728
718
|
* bundled plugin.
|
|
@@ -731,8 +721,7 @@ const { setRuntime: setClickClackRuntime, getRuntime: getClickClackRuntime } = c
|
|
|
731
721
|
pluginId: "clickclack",
|
|
732
722
|
errorMessage: "ClickClack runtime not initialized"
|
|
733
723
|
});
|
|
734
|
-
|
|
735
|
-
//#region extensions/clickclack/src/target.ts
|
|
724
|
+
// extensions/clickclack/src/target.ts
|
|
736
725
|
/**
|
|
737
726
|
* Parses `channel:name`, `thread:msg_id`, `dm:usr_id`, or a bare channel name.
|
|
738
727
|
*/
|
|
@@ -772,8 +761,7 @@ function normalizeClickClackTarget(raw) {
|
|
|
772
761
|
function looksLikeClickClackTarget(raw) {
|
|
773
762
|
return raw.trim().length > 0;
|
|
774
763
|
}
|
|
775
|
-
|
|
776
|
-
//#region extensions/clickclack/src/access.ts
|
|
764
|
+
// extensions/clickclack/src/access.ts
|
|
777
765
|
const CHANNEL_ID$2 = "clickclack";
|
|
778
766
|
function normalizeClickClackUserId(value) {
|
|
779
767
|
const trimmed = value.trim();
|
|
@@ -1063,8 +1051,7 @@ async function resolveClickClackInboundAccess(params) {
|
|
|
1063
1051
|
channelIngress: resolved
|
|
1064
1052
|
};
|
|
1065
1053
|
}
|
|
1066
|
-
|
|
1067
|
-
//#region extensions/clickclack/src/command-menu.ts
|
|
1054
|
+
// extensions/clickclack/src/command-menu.ts
|
|
1068
1055
|
const CLICKCLACK_COMMAND_PATTERN = /^[a-z0-9_-]{1,32}$/u;
|
|
1069
1056
|
const CLICKCLACK_MAX_COMMANDS = 100;
|
|
1070
1057
|
const CLICKCLACK_MAX_DESCRIPTION_LENGTH = 100;
|
|
@@ -1119,8 +1106,7 @@ async function syncClickClackCommandMenu(params) {
|
|
|
1119
1106
|
params.log?.warn?.(`${messagePrefix} failed: ${formatErrorMessage(error)}`);
|
|
1120
1107
|
}
|
|
1121
1108
|
}
|
|
1122
|
-
|
|
1123
|
-
//#region extensions/clickclack/src/activity.ts
|
|
1109
|
+
// extensions/clickclack/src/activity.ts
|
|
1124
1110
|
const CLICKCLACK_COMMENTARY_FLUSH_MS = 700;
|
|
1125
1111
|
/** Item kinds rendered as agent_tool rows; everything else is commentary. */
|
|
1126
1112
|
const TOOL_ITEM_KINDS = /* @__PURE__ */ new Set([
|
|
@@ -1309,8 +1295,7 @@ function createClickClackActivityPublisher(params) {
|
|
|
1309
1295
|
}
|
|
1310
1296
|
};
|
|
1311
1297
|
}
|
|
1312
|
-
|
|
1313
|
-
//#region extensions/clickclack/src/outbound.ts
|
|
1298
|
+
// extensions/clickclack/src/outbound.ts
|
|
1314
1299
|
const CLICKCLACK_MAX_UPLOAD_BYTES = 67108864;
|
|
1315
1300
|
async function createTargetMessage(params) {
|
|
1316
1301
|
const parsed = parseClickClackTarget(params.to);
|
|
@@ -1581,8 +1566,7 @@ async function reconcileClickClackUnknownSend(ctx) {
|
|
|
1581
1566
|
receipt
|
|
1582
1567
|
};
|
|
1583
1568
|
}
|
|
1584
|
-
|
|
1585
|
-
//#region extensions/clickclack/src/progress.ts
|
|
1569
|
+
// extensions/clickclack/src/progress.ts
|
|
1586
1570
|
function normalizedKind(payload) {
|
|
1587
1571
|
const kind = payload.kind?.trim().toLowerCase();
|
|
1588
1572
|
if (!kind || kind === "preamble" || kind === "analysis" || kind === "thinking" || kind === "reasoning" || kind === "missing") return "commentary";
|
|
@@ -1769,8 +1753,7 @@ function createClickClackAgentProgressPublisher(params) {
|
|
|
1769
1753
|
}
|
|
1770
1754
|
};
|
|
1771
1755
|
}
|
|
1772
|
-
|
|
1773
|
-
//#region extensions/clickclack/src/inbound.ts
|
|
1756
|
+
// extensions/clickclack/src/inbound.ts
|
|
1774
1757
|
const CHANNEL_ID$1 = "clickclack";
|
|
1775
1758
|
const CLICKCLACK_MESSAGE_ID_PATTERN = /^msg_[0-9a-hjkmnp-tv-z]{26}$/u;
|
|
1776
1759
|
function hasClickClackReplyMedia(payload) {
|
|
@@ -2040,8 +2023,7 @@ async function handleClickClackInbound(params) {
|
|
|
2040
2023
|
await activity?.finalize();
|
|
2041
2024
|
}
|
|
2042
2025
|
}
|
|
2043
|
-
|
|
2044
|
-
//#region extensions/clickclack/src/gateway.ts
|
|
2026
|
+
// extensions/clickclack/src/gateway.ts
|
|
2045
2027
|
const CLICKCLACK_EVENT_PAGE_LIMIT = 500;
|
|
2046
2028
|
function payloadString(event, key) {
|
|
2047
2029
|
return readStringField(event.payload, key) ?? "";
|
|
@@ -2262,8 +2244,7 @@ async function startClickClackGatewayAccount(ctx) {
|
|
|
2262
2244
|
ctx.setStatus(channelStoppedPatch({ accountId: account.accountId }));
|
|
2263
2245
|
}
|
|
2264
2246
|
}
|
|
2265
|
-
|
|
2266
|
-
//#region extensions/clickclack/src/channel.ts
|
|
2247
|
+
// extensions/clickclack/src/channel.ts
|
|
2267
2248
|
const CHANNEL_ID = CLICKCLACK_CHANNEL_ID;
|
|
2268
2249
|
const clickClackMessageAdapter = defineChannelMessageAdapter({
|
|
2269
2250
|
id: CHANNEL_ID,
|
|
@@ -2438,5 +2419,4 @@ const clickClackPlugin = createChatChannelPlugin({
|
|
|
2438
2419
|
}
|
|
2439
2420
|
}
|
|
2440
2421
|
});
|
|
2441
|
-
//#endregion
|
|
2442
2422
|
export { clearPendingDiscussionOpen as A, truncateDiscussionDisplayTitle as C, getClickClackDiscussionBindingStore as D, bindingMatchesActiveSessionIncarnation as E, listPendingDiscussionOpens as M, recordPendingDiscussionOpen as N, readDiscussionSessionEntry as O, reserveDiscussionBindingGeneration as P, slugifyDiscussionLabel as S, attachBindingToCurrentActiveSession as T, discussionExternalRef as _, setClickClackRuntime as a, isDiscussionSessionKey as b, isClickClackDiscussionChannelRevokedAsync as c, prepareClickClackDiscussionChannelRevocation as d, discussionAccounts as f, discussionCredentialFingerprint as g, resolveDiscussionBindingAccount as h, getClickClackRuntime as i, getPendingDiscussionOpen as j, clearDiscussionBindingGeneration as k, markClickClackDiscussionChannelIdentityRevoked as l, normalizedServerBaseUrl as m, buildClickClackTarget as n, clearClickClackDiscussionChannelRevoked as o, discussionInfoForBinding as p, parseClickClackTarget as r, isClickClackDiscussionChannelRevoked as s, clickClackPlugin as t, markClickClackDiscussionChannelRevoked as u, discussionSessionKey as v, MAX_RETAINED_DETACHED_DISCUSSION_BINDINGS as w, resolveDiscussionLabel as x, fallbackDiscussionLabel as y };
|
|
@@ -3,12 +3,12 @@ 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
|
+
import { fetchWithSsrFGuard, ssrfPolicyFromHttpBaseUrlAllowedOrigin } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
6
7
|
import path from "node:path";
|
|
7
|
-
|
|
8
|
+
// extensions/clickclack/src/ws-runtime.ts
|
|
8
9
|
const require = createRequire(import.meta.url);
|
|
9
10
|
const WebSocket = require(path.join(path.dirname(require.resolve("ws/package.json")), "index.js"));
|
|
10
|
-
|
|
11
|
-
//#region extensions/clickclack/src/http-client.ts
|
|
11
|
+
// extensions/clickclack/src/http-client.ts
|
|
12
12
|
/**
|
|
13
13
|
* Serializes optional provenance into the wire fields. Unknown JSON fields
|
|
14
14
|
* are ignored by servers without the provenance columns, so these are safe
|
|
@@ -59,7 +59,7 @@ function normalizeClickClackCorrelationId(value) {
|
|
|
59
59
|
}
|
|
60
60
|
function createClickClackClient(options) {
|
|
61
61
|
const baseUrl = options.baseUrl.replace(/\/$/, "");
|
|
62
|
-
const
|
|
62
|
+
const ssrfPolicy = ssrfPolicyFromHttpBaseUrlAllowedOrigin(baseUrl);
|
|
63
63
|
const correlationId = normalizeClickClackCorrelationId(options.correlationId);
|
|
64
64
|
const headers = {
|
|
65
65
|
Authorization: `Bearer ${options.token}`,
|
|
@@ -73,25 +73,33 @@ function createClickClackClient(options) {
|
|
|
73
73
|
const controller = requestOptions.timeoutMs !== void 0 && !init.signal ? new AbortController() : void 0;
|
|
74
74
|
const timeout = controller ? setTimeout(() => controller.abort(), requestOptions.timeoutMs) : void 0;
|
|
75
75
|
try {
|
|
76
|
-
const response = await captureEffectAuthority().initiate(() => {
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
const { response, release } = await captureEffectAuthority().initiate(() => fetchWithSsrFGuard({
|
|
77
|
+
url: `${baseUrl}${path}`,
|
|
78
|
+
fetchImpl: options.fetch,
|
|
79
|
+
beforeRequest: options.beforeRequest,
|
|
80
|
+
init: {
|
|
79
81
|
...init,
|
|
80
82
|
...controller ? { signal: controller.signal } : {},
|
|
81
83
|
headers: requestHeaders
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
},
|
|
85
|
+
policy: ssrfPolicy,
|
|
86
|
+
auditContext: "clickclack-api"
|
|
87
|
+
}));
|
|
88
|
+
try {
|
|
89
|
+
if (!response.ok) {
|
|
90
|
+
const detail = await readResponseTextLimited(response, CLICKCLACK_ERROR_BODY_LIMIT_BYTES);
|
|
91
|
+
throw new ClickClackHttpError(response.status, redactToolPayloadText(detail), new Headers(response.headers));
|
|
92
|
+
}
|
|
93
|
+
if (requestOptions.responseMode === "none") {
|
|
94
|
+
try {
|
|
95
|
+
await response.body?.cancel();
|
|
96
|
+
} catch {}
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
return await readProviderJsonResponse(response, "ClickClack response", { maxBytes: CLICKCLACK_INBOUND_JSON_LIMIT_BYTES });
|
|
100
|
+
} finally {
|
|
101
|
+
await release();
|
|
93
102
|
}
|
|
94
|
-
return await readProviderJsonResponse(response, "ClickClack response", { maxBytes: CLICKCLACK_INBOUND_JSON_LIMIT_BYTES });
|
|
95
103
|
} finally {
|
|
96
104
|
if (timeout) clearTimeout(timeout);
|
|
97
105
|
}
|
|
@@ -291,8 +299,7 @@ function createClickClackClient(options) {
|
|
|
291
299
|
}
|
|
292
300
|
};
|
|
293
301
|
}
|
|
294
|
-
|
|
295
|
-
//#region extensions/clickclack/src/resolve.ts
|
|
302
|
+
// extensions/clickclack/src/resolve.ts
|
|
296
303
|
function findClickClackWorkspace(workspaces, selector) {
|
|
297
304
|
return workspaces.find((candidate) => candidate.id === selector || candidate.slug === selector || candidate.name === selector);
|
|
298
305
|
}
|
|
@@ -308,5 +315,4 @@ async function resolveChannelId(client, workspaceId, channel) {
|
|
|
308
315
|
if (!found) throw new Error(`ClickClack channel not found: ${channel}`);
|
|
309
316
|
return found.id;
|
|
310
317
|
}
|
|
311
|
-
//#endregion
|
|
312
318
|
export { createClickClackClient as a, ClickClackHttpError as i, resolveChannelId as n, isClickClackChannelNameConflict as o, resolveWorkspaceId as r, normalizeClickClackCorrelationId as s, findClickClackWorkspace as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -24,5 +24,4 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
24
24
|
return to;
|
|
25
25
|
};
|
|
26
26
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
27
|
-
//#endregion
|
|
28
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 clearPendingDiscussionOpen, C as truncateDiscussionDisplayTitle, D as getClickClackDiscussionBindingStore, E as bindingMatchesActiveSessionIncarnation, M as listPendingDiscussionOpens, N as recordPendingDiscussionOpen, O as readDiscussionSessionEntry, P as reserveDiscussionBindingGeneration, S as slugifyDiscussionLabel, T as attachBindingToCurrentActiveSession, _ as discussionExternalRef, b as isDiscussionSessionKey, c as isClickClackDiscussionChannelRevokedAsync, d as prepareClickClackDiscussionChannelRevocation, f as discussionAccounts, g as discussionCredentialFingerprint, h as resolveDiscussionBindingAccount, j as getPendingDiscussionOpen, k as clearDiscussionBindingGeneration, l as markClickClackDiscussionChannelIdentityRevoked, m as normalizedServerBaseUrl, o as clearClickClackDiscussionChannelRevoked, p as discussionInfoForBinding, s as isClickClackDiscussionChannelRevoked, u as markClickClackDiscussionChannelRevoked, v as discussionSessionKey, x as resolveDiscussionLabel, y as fallbackDiscussionLabel } from "./channel-
|
|
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-91axKVt-.mjs";
|
|
2
|
+
import { A as clearPendingDiscussionOpen, C as truncateDiscussionDisplayTitle, D as getClickClackDiscussionBindingStore, E as bindingMatchesActiveSessionIncarnation, M as listPendingDiscussionOpens, N as recordPendingDiscussionOpen, O as readDiscussionSessionEntry, P as reserveDiscussionBindingGeneration, S as slugifyDiscussionLabel, T as attachBindingToCurrentActiveSession, _ as discussionExternalRef, b as isDiscussionSessionKey, c as isClickClackDiscussionChannelRevokedAsync, d as prepareClickClackDiscussionChannelRevocation, f as discussionAccounts, g as discussionCredentialFingerprint, h as resolveDiscussionBindingAccount, j as getPendingDiscussionOpen, k as clearDiscussionBindingGeneration, l as markClickClackDiscussionChannelIdentityRevoked, m as normalizedServerBaseUrl, o as clearClickClackDiscussionChannelRevoked, p as discussionInfoForBinding, s as isClickClackDiscussionChannelRevoked, u as markClickClackDiscussionChannelRevoked, v as discussionSessionKey, x as resolveDiscussionLabel, y as fallbackDiscussionLabel } from "./channel-XqDJxK7_.mjs";
|
|
3
|
+
import { a as createClickClackClient, i as ClickClackHttpError, o as isClickClackChannelNameConflict, t as findClickClackWorkspace } from "./resolve-BLI5HcqS.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 { createSessionVisibilityChecker } from "openclaw/plugin-sdk/session-visi
|
|
|
10
10
|
import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
|
|
11
11
|
import { resolveSessionAgentIdStrict } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
12
12
|
import { textResult } from "openclaw/plugin-sdk/tool-results";
|
|
13
|
-
|
|
13
|
+
// extensions/clickclack/src/discussions/binding-retention.ts
|
|
14
14
|
var DetachedDiscussionBindingRetention = class {
|
|
15
15
|
#runtime;
|
|
16
16
|
#store;
|
|
@@ -69,8 +69,7 @@ var DetachedDiscussionBindingRetention = class {
|
|
|
69
69
|
})) throw new Error("ClickClack discussion session returned before retention committed");
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
|
|
73
|
-
//#region extensions/clickclack/src/discussions/control-session-url.ts
|
|
72
|
+
// extensions/clickclack/src/discussions/control-session-url.ts
|
|
74
73
|
function controlSessionUrl(baseUrl, sessionKey, fallbackAgentId, mainKey, displayName) {
|
|
75
74
|
if (!baseUrl) return;
|
|
76
75
|
const url = new URL(baseUrl);
|
|
@@ -87,8 +86,7 @@ function controlSessionUrl(baseUrl, sessionKey, fallbackAgentId, mainKey, displa
|
|
|
87
86
|
url.hash = "";
|
|
88
87
|
return url.toString();
|
|
89
88
|
}
|
|
90
|
-
|
|
91
|
-
//#region extensions/clickclack/src/discussions/history-format.ts
|
|
89
|
+
// extensions/clickclack/src/discussions/history-format.ts
|
|
92
90
|
function discussionRecordJson(value) {
|
|
93
91
|
return JSON.stringify(value).replace(/[\u0085\u2028\u2029]/gu, (separator) => `\\u${separator.charCodeAt(0).toString(16).padStart(4, "0")}`);
|
|
94
92
|
}
|
|
@@ -101,8 +99,7 @@ function formatDiscussionHistory(history) {
|
|
|
101
99
|
const truncationNote = history.truncated ? "\n[History scan reached its safety bound; older active threads may be omitted.]" : "";
|
|
102
100
|
return text ? `${text}${truncationNote}` : "";
|
|
103
101
|
}
|
|
104
|
-
|
|
105
|
-
//#region extensions/clickclack/src/discussions/installation.ts
|
|
102
|
+
// extensions/clickclack/src/discussions/installation.ts
|
|
106
103
|
const INSTALLATION_NAMESPACE = "discussion-installation";
|
|
107
104
|
const INSTALLATION_KEY = "current";
|
|
108
105
|
/** Returns the durable installation namespace used in server-visible ownership refs. */
|
|
@@ -120,8 +117,7 @@ async function getClickClackDiscussionInstallationId(runtime) {
|
|
|
120
117
|
if (!persisted) throw new Error("ClickClack discussion installation identity is unavailable; retry opening the discussion");
|
|
121
118
|
return persisted;
|
|
122
119
|
}
|
|
123
|
-
|
|
124
|
-
//#region extensions/clickclack/src/discussions/reconcile-scheduler.ts
|
|
120
|
+
// extensions/clickclack/src/discussions/reconcile-scheduler.ts
|
|
125
121
|
const RECONCILE_DEBOUNCE_MS = 250;
|
|
126
122
|
const RECONCILE_RETRY_MS = 1e3;
|
|
127
123
|
const RECONCILE_RETRY_MAX_MS = 6e4;
|
|
@@ -177,8 +173,7 @@ var DiscussionReconcileScheduler = class {
|
|
|
177
173
|
});
|
|
178
174
|
}
|
|
179
175
|
};
|
|
180
|
-
|
|
181
|
-
//#region extensions/clickclack/src/discussions/service-open.ts
|
|
176
|
+
// extensions/clickclack/src/discussions/service-open.ts
|
|
182
177
|
const CHANNEL_NAME_MUTATION_ATTEMPTS = 4;
|
|
183
178
|
function isDefinitiveNoCreateHttpError(error) {
|
|
184
179
|
if (!(error instanceof ClickClackHttpError) || error.status < 400 || error.status >= 500) return false;
|
|
@@ -524,8 +519,7 @@ async function reconcilePendingDiscussionOpen(params) {
|
|
|
524
519
|
expectedGeneration: pending.generation
|
|
525
520
|
});
|
|
526
521
|
}
|
|
527
|
-
|
|
528
|
-
//#region extensions/clickclack/src/discussions/service.ts
|
|
522
|
+
// extensions/clickclack/src/discussions/service.ts
|
|
529
523
|
const RECONCILE_INTERVAL_MS = 6e4;
|
|
530
524
|
var ClickClackDiscussionService = class {
|
|
531
525
|
#runtime;
|
|
@@ -945,8 +939,7 @@ var ClickClackDiscussionService = class {
|
|
|
945
939
|
return operation;
|
|
946
940
|
}
|
|
947
941
|
};
|
|
948
|
-
|
|
949
|
-
//#region extensions/clickclack/src/discussions/tool-policy.ts
|
|
942
|
+
// extensions/clickclack/src/discussions/tool-policy.ts
|
|
950
943
|
const TARGETED_SESSION_TOOLS = /* @__PURE__ */ new Set([
|
|
951
944
|
"sessions_history",
|
|
952
945
|
"sessions_send",
|
|
@@ -1024,8 +1017,7 @@ async function enforceClickClackDiscussionToolTarget(params) {
|
|
|
1024
1017
|
})) return;
|
|
1025
1018
|
return blockedResult();
|
|
1026
1019
|
}
|
|
1027
|
-
|
|
1028
|
-
//#region extensions/clickclack/src/discussions/tool.ts
|
|
1020
|
+
// extensions/clickclack/src/discussions/tool.ts
|
|
1029
1021
|
const DEFAULT_MESSAGE_LIMIT = 30;
|
|
1030
1022
|
const MAX_MESSAGE_LIMIT = 200;
|
|
1031
1023
|
function createClickClackDiscussionTool(params) {
|
|
@@ -1056,8 +1048,7 @@ function createClickClackDiscussionTool(params) {
|
|
|
1056
1048
|
}
|
|
1057
1049
|
};
|
|
1058
1050
|
}
|
|
1059
|
-
|
|
1060
|
-
//#region extensions/clickclack/src/discussions/register.ts
|
|
1051
|
+
// extensions/clickclack/src/discussions/register.ts
|
|
1061
1052
|
function registerClickClackDiscussions(api) {
|
|
1062
1053
|
if (api.registrationMode === "tool-discovery") {
|
|
1063
1054
|
api.registerTool(() => null, { name: "discussion" });
|
|
@@ -1106,5 +1097,4 @@ function registerClickClackDiscussions(api) {
|
|
|
1106
1097
|
}
|
|
1107
1098
|
});
|
|
1108
1099
|
}
|
|
1109
|
-
//#endregion
|
|
1110
1100
|
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
|
+
// extensions/clickclack/src/secret-contract.ts
|
|
4
4
|
const channelSecrets = createChannelSecretContract({
|
|
5
5
|
channelKey: "clickclack",
|
|
6
6
|
account: ["token"],
|
|
@@ -22,5 +22,4 @@ const channelSecrets = createChannelSecretContract({
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
|
|
25
|
-
//#endregion
|
|
26
25
|
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-Dj8nibUr.mjs";
|
|
2
2
|
import "../secret-contract-api.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
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-91axKVt-.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 { fetchWithSsrFGuard, resolvePinnedHostnameWithPolicy, ssrfPolicyFromHttpBaseUrlAllowedHostname } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
5
|
-
|
|
5
|
+
// extensions/clickclack/src/setup-claim.ts
|
|
6
6
|
const CLICKCLACK_ERROR_BODY_LIMIT_BYTES = 8192;
|
|
7
7
|
const CLICKCLACK_SETUP_CODE_CLAIM_JSON_LIMIT_BYTES = 65536;
|
|
8
8
|
const CLICKCLACK_SETUP_CODE_CLAIM_TIMEOUT_MS = 3e4;
|
|
@@ -127,5 +127,4 @@ async function claimClickClackSetupCode(params) {
|
|
|
127
127
|
await release();
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
//#endregion
|
|
131
130
|
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-91axKVt-.mjs";
|
|
2
|
+
// extensions/clickclack/src/channel.setup.ts
|
|
3
3
|
const clickClackSetupPlugin = {
|
|
4
4
|
id: "clickclack",
|
|
5
5
|
meta: clickClackMeta,
|
|
@@ -14,5 +14,4 @@ const clickClackSetupPlugin = {
|
|
|
14
14
|
setupContract: clickClackSetupContract,
|
|
15
15
|
setupWizard: clickClackSetupWizard
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { clickClackSetupPlugin as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as clickClackSetupPlugin } from "./setup-plugin-api-4n3kQygx.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
|
+
// 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,8 +209,7 @@ function listEnabledClickClackAccounts(cfg) {
|
|
|
209
209
|
accountId
|
|
210
210
|
})).filter((account) => account.enabled);
|
|
211
211
|
}
|
|
212
|
-
|
|
213
|
-
//#region extensions/clickclack/src/channel-config.ts
|
|
212
|
+
// extensions/clickclack/src/channel-config.ts
|
|
214
213
|
const CLICKCLACK_CHANNEL_ID = "clickclack";
|
|
215
214
|
const clickClackMeta = { ...getChatChannelMeta(CLICKCLACK_CHANNEL_ID) };
|
|
216
215
|
const clickClackConfigAdapter = {
|
|
@@ -230,8 +229,7 @@ const clickClackConfigAdapter = {
|
|
|
230
229
|
accountId
|
|
231
230
|
}).defaultTo
|
|
232
231
|
};
|
|
233
|
-
|
|
234
|
-
//#region extensions/clickclack/src/config-schema.ts
|
|
232
|
+
// extensions/clickclack/src/config-schema.ts
|
|
235
233
|
const ClickClackAccountConfigSchema = z.object({
|
|
236
234
|
name: z.string().optional(),
|
|
237
235
|
enabled: z.boolean().optional(),
|
|
@@ -297,8 +295,7 @@ const clickClackConfigSchema = buildChannelConfigSchema(ClickClackConfigSchema,
|
|
|
297
295
|
help: "Override the account policy for threads rooted in this bot's messages in this channel."
|
|
298
296
|
}
|
|
299
297
|
} });
|
|
300
|
-
|
|
301
|
-
//#region extensions/clickclack/src/setup-contract.ts
|
|
298
|
+
// extensions/clickclack/src/setup-contract.ts
|
|
302
299
|
const CLICKCLACK_SETUP_CODE_CLAIM_PATH = "/api/bot-setup-codes/claim";
|
|
303
300
|
const LOOPBACK_ADDRESSES = new net.BlockList();
|
|
304
301
|
LOOPBACK_ADDRESSES.addSubnet("127.0.0.0", 8, "ipv4");
|
|
@@ -340,8 +337,7 @@ function requireClickClackSetupClaimUrl(value) {
|
|
|
340
337
|
function buildClickClackSetupClaimUrl(baseUrl) {
|
|
341
338
|
return baseUrl.replace(/\/+$/u, "") + CLICKCLACK_SETUP_CODE_CLAIM_PATH;
|
|
342
339
|
}
|
|
343
|
-
|
|
344
|
-
//#region extensions/clickclack/src/setup-core.ts
|
|
340
|
+
// extensions/clickclack/src/setup-core.ts
|
|
345
341
|
const channel$1 = "clickclack";
|
|
346
342
|
const SETUP_CODE_ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
347
343
|
const SETUP_CODE_LENGTH = 12;
|
|
@@ -450,7 +446,7 @@ const clickClackSetupAdapter = {
|
|
|
450
446
|
const claimUrl = setup.exactClaimUrl && !privateApiBaseUrl ? setup.exactClaimUrl : buildClickClackSetupClaimUrl(privateApiBaseUrl ?? setup.baseUrl);
|
|
451
447
|
let claim;
|
|
452
448
|
try {
|
|
453
|
-
const { claimClickClackSetupCode } = await import("./setup-claim-
|
|
449
|
+
const { claimClickClackSetupCode } = await import("./setup-claim-C9srZXvu.mjs");
|
|
454
450
|
claim = await claimClickClackSetupCode({
|
|
455
451
|
claimUrl,
|
|
456
452
|
code: setup.code,
|
|
@@ -530,7 +526,7 @@ const clickClackSetupAdapter = {
|
|
|
530
526
|
});
|
|
531
527
|
},
|
|
532
528
|
afterAccountConfigWritten: async ({ cfg, accountId, runtime }) => {
|
|
533
|
-
const { verifyClickClackAccountAfterSetup } = await import("./setup-verify-
|
|
529
|
+
const { verifyClickClackAccountAfterSetup } = await import("./setup-verify-VR2ppXpI.mjs");
|
|
534
530
|
await verifyClickClackAccountAfterSetup({
|
|
535
531
|
cfg,
|
|
536
532
|
accountId,
|
|
@@ -610,8 +606,7 @@ const clickClackSetupContract = defineChannelSetupContract({
|
|
|
610
606
|
},
|
|
611
607
|
legacyAdapter: clickClackSetupAdapter
|
|
612
608
|
});
|
|
613
|
-
|
|
614
|
-
//#region extensions/clickclack/src/setup-surface.ts
|
|
609
|
+
// extensions/clickclack/src/setup-surface.ts
|
|
615
610
|
const t = createSetupTranslator();
|
|
616
611
|
const channel = "clickclack";
|
|
617
612
|
function hasConfiguredClickClackCredential(account) {
|
|
@@ -712,7 +707,7 @@ const clickClackSetupWizard = {
|
|
|
712
707
|
})
|
|
713
708
|
}],
|
|
714
709
|
finalize: async ({ cfg, accountId, credentialValues, prompter }) => {
|
|
715
|
-
const { checkClickClackSetupConnection } = await import("./setup-verify-
|
|
710
|
+
const { checkClickClackSetupConnection } = await import("./setup-verify-VR2ppXpI.mjs");
|
|
716
711
|
const result = await checkClickClackSetupConnection({
|
|
717
712
|
cfg,
|
|
718
713
|
accountId,
|
|
@@ -731,5 +726,4 @@ const clickClackSetupWizard = {
|
|
|
731
726
|
},
|
|
732
727
|
disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
|
|
733
728
|
};
|
|
734
|
-
//#endregion
|
|
735
729
|
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, t as findClickClackWorkspace } from "./resolve-
|
|
1
|
+
import { h as resolveClickClackAccount } from "./setup-surface-91axKVt-.mjs";
|
|
2
|
+
import { a as createClickClackClient, t as findClickClackWorkspace } from "./resolve-BLI5HcqS.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
|
+
// 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";
|
|
@@ -90,5 +90,4 @@ async function verifyClickClackAccountAfterSetup(params) {
|
|
|
90
90
|
if (message) params.runtime.log(message);
|
|
91
91
|
params.runtime.log(await probeClickClackGatewayStatus());
|
|
92
92
|
}
|
|
93
|
-
//#endregion
|
|
94
93
|
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-XqDJxK7_.mjs","sha256":"dc284f44373ed28a1188528261e8ef670ce9f14721a1e8879e557c6276ba6452","facadeSource":null,"sources":["extensions/clickclack/src/access.ts","extensions/clickclack/src/activity.ts","extensions/clickclack/src/channel.ts","extensions/clickclack/src/command-menu.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/gateway.ts","extensions/clickclack/src/group-policy.ts","extensions/clickclack/src/inbound.ts","extensions/clickclack/src/mention-facts.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-BLI5HcqS.mjs","sha256":"36786de6939a18586e0cf5831a467198385895ac01d5844c9227d7c9ead2ab07","facadeSource":null,"sources":["extensions/clickclack/src/http-client.ts","extensions/clickclack/src/resolve.ts","extensions/clickclack/src/ws-runtime.ts"]},{"output":".setup/rolldown-runtime-nwUcYXjP.mjs","sha256":"c827e1b96e0d1ec7d087de7243d1db40c16377e1d4b741434e8ecf8858e13dca","facadeSource":null,"sources":[]},{"output":".setup/runtime-api-CeKFBn90.mjs","sha256":"05d02bda515dbe01b16fa3109075d704444bf3f747bb742e95ae12ed98438590","facadeSource":null,"sources":["extensions/clickclack/src/discussions/binding-retention.ts","extensions/clickclack/src/discussions/control-session-url.ts","extensions/clickclack/src/discussions/history-format.ts","extensions/clickclack/src/discussions/installation.ts","extensions/clickclack/src/discussions/reconcile-scheduler.ts","extensions/clickclack/src/discussions/register.ts","extensions/clickclack/src/discussions/service-open.ts","extensions/clickclack/src/discussions/service.ts","extensions/clickclack/src/discussions/tool-policy.ts","extensions/clickclack/src/discussions/tool.ts"]},{"output":".setup/secret-contract-api-DS3Vv0Gu.mjs","sha256":"1f4fbfb7031408f8896ccf43ddb8548914c3262c87011904190d9b28c40ebb80","facadeSource":"extensions/clickclack/secret-contract-api.ts","sources":[]},{"output":".setup/secret-contract-Dj8nibUr.mjs","sha256":"2c29e39e3a80ffa74c2141f7a8b2a0beb63b1094f030860bd26bda2319d04d9b","facadeSource":null,"sources":["extensions/clickclack/src/secret-contract.ts"]},{"output":".setup/setup-claim-C9srZXvu.mjs","sha256":"669f1caf9e82c76a25297c3de5cb8ec7c314128d399c027668d2c8a927318695","facadeSource":"extensions/clickclack/src/setup-claim.ts","sources":["extensions/clickclack/src/setup-claim.ts"]},{"output":".setup/setup-plugin-api-4n3kQygx.mjs","sha256":"172cd41913dbfdd403854d7452e6bc73823ff8a9376c9e58c9e2eccda14610d3","facadeSource":null,"sources":["extensions/clickclack/src/channel.setup.ts"]},{"output":".setup/setup-plugin-api-C05rrvnR.mjs","sha256":"d7b10733e65e41dacb493e3c78e54b8cc9a27cfaa6713b8350e635d4161b23ba","facadeSource":"extensions/clickclack/setup-plugin-api.ts","sources":[]},{"output":".setup/setup-surface-91axKVt-.mjs","sha256":"fe61b427f4c0f64156d89900564ba375c48389a23a929e7a86a29175fad76425","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-VR2ppXpI.mjs","sha256":"86b700bdb7be6639c8331300a7b30cfb11f0f146bf9463ad9e029bfcb51238d4","facadeSource":"extensions/clickclack/src/setup-verify.ts","sources":["extensions/clickclack/src/setup-verify.ts"]},{"output":"api.js","sha256":"c88447d19200fad20c601a96d7b8bc9235cf433df06e3b8ed4d2576706daeb6e","facadeSource":"extensions/clickclack/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"da05af8f2c61e0442c462eaf2c41e5826cbea46d9a88cedb5338d18ff3eedb7b","facadeSource":"extensions/clickclack/channel-plugin-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"4c9aa609ba3c4b3ed643dfcdd3be2ba7f3623c249e27f5885b9a98d0d35ee02c","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":"711de6bf0ef63c9c7ca5272aa69a3ebecc197953a6ff4cd1780450a511dc2c43","facadeSource":"extensions/clickclack/index.ts","sources":["extensions/clickclack/index.ts"]},{"output":"runtime-api.js","sha256":"5eb727f024e7e8191b16571b78a606297292df5174ff6f0376dc92df637a9d41","facadeSource":"extensions/clickclack/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"cff9cd4ef5118483a955a1375f95db91532f9f9755b43e54e4b04561b9ee7810","facadeSource":"extensions/clickclack/secret-contract-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"3f74d02f730656434999b420e1fafb114cd2b97e52d14d9d2f2a4ecb8fb8bc7e","facadeSource":"extensions/clickclack/setup-entry.ts","sources":["extensions/clickclack/setup-entry.ts"]},{"output":"setup-plugin-api.js","sha256":"cd3becb061fed74f89186a77a973273695bcb3d14c3162452c1e73e6bc2ea778","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-91axKVt-.mjs";
|
|
2
|
+
import { a as setClickClackRuntime, i as getClickClackRuntime, n as buildClickClackTarget, r as parseClickClackTarget, t as clickClackPlugin } from "./.setup/channel-XqDJxK7_.mjs";
|
|
3
|
+
import { a as createClickClackClient } from "./.setup/resolve-BLI5HcqS.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-XqDJxK7_.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-nwUcYXjP.mjs";
|
|
2
|
+
// 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,8 +8,7 @@ function isRecord(value) {
|
|
|
8
8
|
function asNullableRecord(value) {
|
|
9
9
|
return isRecord(value) ? value : null;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
//#region src/config/channel-config-normalization.ts
|
|
11
|
+
// src/config/channel-config-normalization.ts
|
|
13
12
|
/** Applies one channel-specific doctor migration to every object-shaped account. */
|
|
14
13
|
function normalizeChannelAccounts(params) {
|
|
15
14
|
const rawAccounts = asNullableRecord(params.entry.accounts);
|
|
@@ -85,8 +84,7 @@ function normalizeChannelConfigEntries(params) {
|
|
|
85
84
|
changes
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
|
-
|
|
89
|
-
//#region src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
87
|
+
// src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
90
88
|
/** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
|
|
91
89
|
function createLegacyWebhookListenerDoctorContract(params) {
|
|
92
90
|
const portKey = params.portKey ?? "webhookPort";
|
|
@@ -156,13 +154,11 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
156
154
|
}
|
|
157
155
|
};
|
|
158
156
|
}
|
|
159
|
-
|
|
160
|
-
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
157
|
+
// \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
161
158
|
var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
|
|
162
159
|
import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
163
160
|
__reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
|
|
164
|
-
|
|
165
|
-
//#region extensions/clickclack/src/doctor-contract.ts
|
|
161
|
+
// extensions/clickclack/src/doctor-contract.ts
|
|
166
162
|
function stripTimeoutSeconds(value) {
|
|
167
163
|
const record = (0, runtime_doctor_migrations_exports.asObjectRecord)(value);
|
|
168
164
|
if (!record) return {
|
|
@@ -207,5 +203,4 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
207
203
|
changes: ["Removed retired ClickClack timeout tuning knobs."]
|
|
208
204
|
};
|
|
209
205
|
}
|
|
210
|
-
//#endregion
|
|
211
206
|
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-CeKFBn90.mjs";
|
|
2
2
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
3
|
-
|
|
3
|
+
// extensions/clickclack/index.ts
|
|
4
4
|
var clickclack_default = defineBundledChannelEntry({
|
|
5
5
|
id: "clickclack",
|
|
6
6
|
name: "ClickClack",
|
|
@@ -16,5 +16,4 @@ var clickclack_default = defineBundledChannelEntry({
|
|
|
16
16
|
},
|
|
17
17
|
registerFull: registerClickClackDiscussions
|
|
18
18
|
});
|
|
19
|
-
//#endregion
|
|
20
19
|
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-91axKVt-.mjs";
|
|
2
|
+
import { a as setClickClackRuntime, r as parseClickClackTarget } from "./.setup/channel-XqDJxK7_.mjs";
|
|
3
|
+
import { a as createClickClackClient } from "./.setup/resolve-BLI5HcqS.mjs";
|
|
4
|
+
import { t as registerClickClackDiscussions } from "./.setup/runtime-api-CeKFBn90.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-Dj8nibUr.mjs";
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
3
|
+
// 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-C05rrvnR.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-DS3Vv0Gu.mjs", import.meta.url).href),
|
|
12
12
|
exportName: "channelSecrets"
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
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-4n3kQygx.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/clickclack",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.1",
|
|
4
4
|
"description": "OpenClaw ClickClack channel plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"zod": "4.6.5"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.
|
|
16
|
+
"openclaw": ">=2026.11.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -139,10 +139,10 @@
|
|
|
139
139
|
"allowInvalidConfigRecovery": true
|
|
140
140
|
},
|
|
141
141
|
"compat": {
|
|
142
|
-
"pluginApi": ">=2026.
|
|
142
|
+
"pluginApi": ">=2026.11.1"
|
|
143
143
|
},
|
|
144
144
|
"build": {
|
|
145
|
-
"openclawVersion": "2026.
|
|
145
|
+
"openclawVersion": "2026.11.1",
|
|
146
146
|
"bundledDist": false
|
|
147
147
|
},
|
|
148
148
|
"release": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as clickClackSetupPlugin } from "./setup-plugin-api-Ccxm2ydn.mjs";
|