@openclaw/clickclack 2026.11.7 → 2026.11.10-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-3wsXl9ET.mjs → channel-BH4RFKFX.mjs} +62 -74
- package/dist/.setup/{resolve-CQPynbSo.mjs → resolve-qeIY2bou.mjs} +2 -4
- package/dist/.setup/{rolldown-runtime-BBjsoOtd.mjs → rolldown-runtime-782esTHO.mjs} +1 -2
- package/dist/.setup/{runtime-api-CBg2jSuv.mjs → runtime-api-QLQR94SM.mjs} +79 -85
- 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-DIxK2B4k.mjs → setup-claim-DDJ9VKhn.mjs} +2 -3
- package/dist/.setup/{setup-plugin-api-DpZ0Nefw.mjs → setup-plugin-api-Bv07Jgqa.mjs} +2 -3
- package/dist/.setup/setup-plugin-api-rftn825R.mjs +1 -0
- package/dist/.setup/{setup-surface-Pr3hq4WA.mjs → setup-surface-DSbHN_QA.mjs} +94 -36
- package/dist/.setup/{setup-verify-Da87HOCY.mjs → setup-verify-BRmRzZD7.mjs} +4 -5
- 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/openclaw.plugin.json +5 -1
- package/package.json +4 -4
- package/dist/.setup/setup-plugin-api-kQj1X9_C.mjs +0 -1
|
@@ -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;
|
|
@@ -46,7 +46,8 @@ function mergeClickClackGroups(...sources) {
|
|
|
46
46
|
}
|
|
47
47
|
return Object.fromEntries(merged);
|
|
48
48
|
}
|
|
49
|
-
function resolveClickClackAccountConfig(cfg,
|
|
49
|
+
function resolveClickClackAccountConfig(cfg, rawAccountId) {
|
|
50
|
+
const accountId = normalizeAccountId(rawAccountId);
|
|
50
51
|
const channel = cfg.channels?.clickclack;
|
|
51
52
|
const merged = resolveMergedClickClackAccountConfig(cfg, accountId);
|
|
52
53
|
const account = resolveNormalizedAccountEntry(channel?.accounts, accountId, normalizeAccountId);
|
|
@@ -82,11 +83,13 @@ function isClickClackAccountCurrent(params) {
|
|
|
82
83
|
const endpoints = resolveClickClackAccountEndpoints(current);
|
|
83
84
|
return current.enabled !== false && Boolean(endpoints.baseUrl && current.workspace?.trim()) && endpoints.baseUrl === account.baseUrl && endpoints.apiEndpoint === account.apiEndpoint && current.workspace?.trim() === account.config.workspace?.trim() && normalizeOptionalString(current.botUserId) === normalizeOptionalString(account.config.botUserId);
|
|
84
85
|
}
|
|
86
|
+
function tokenFileConfigPath(cfg, accountId) {
|
|
87
|
+
return resolveNormalizedAccountEntry(cfg.channels?.clickclack?.accounts, accountId, normalizeAccountId)?.tokenFile?.trim() ? `channels.clickclack.accounts.${accountId}.tokenFile` : "channels.clickclack.tokenFile";
|
|
88
|
+
}
|
|
85
89
|
function resolveClickClackToken(params) {
|
|
86
90
|
const tokenFile = params.tokenFile?.trim();
|
|
87
91
|
if (tokenFile) {
|
|
88
|
-
const
|
|
89
|
-
const result = tryReadSecretFileSync(tokenFile, "ClickClack bot token", { rejectSymlink: true }, { configPath: accountTokenFile ? `channels.clickclack.accounts.${params.accountId}.tokenFile` : "channels.clickclack.tokenFile" });
|
|
92
|
+
const result = tryReadSecretFileSync(tokenFile, "ClickClack bot token", { rejectSymlink: true }, { configPath: tokenFileConfigPath(params.cfg, params.accountId) });
|
|
90
93
|
return result.status === "available" ? {
|
|
91
94
|
token: result.value,
|
|
92
95
|
tokenSource: "tokenFile",
|
|
@@ -146,15 +149,18 @@ function resolveClickClackToken(params) {
|
|
|
146
149
|
tokenStatus: "available"
|
|
147
150
|
};
|
|
148
151
|
}
|
|
149
|
-
function
|
|
152
|
+
function resolveClickClackAccountMetadata(params) {
|
|
150
153
|
const accountId = normalizeAccountId(params.accountId);
|
|
151
154
|
const merged = resolveClickClackAccountConfig(params.cfg, accountId);
|
|
152
155
|
const enabled = params.cfg.channels?.clickclack?.enabled !== false && merged.enabled !== false;
|
|
153
156
|
const { baseUrl, apiEndpoint } = resolveClickClackAccountEndpoints(merged);
|
|
154
|
-
const token =
|
|
157
|
+
const token = merged.tokenFile?.trim() ? {
|
|
158
|
+
token: "",
|
|
159
|
+
tokenSource: "tokenFile",
|
|
160
|
+
tokenStatus: void 0
|
|
161
|
+
} : resolveClickClackToken({
|
|
155
162
|
cfg: params.cfg,
|
|
156
163
|
value: merged.token,
|
|
157
|
-
tokenFile: merged.tokenFile,
|
|
158
164
|
accountId,
|
|
159
165
|
env: params.env
|
|
160
166
|
});
|
|
@@ -203,14 +209,72 @@ function resolveClickClackAccount(params) {
|
|
|
203
209
|
apiEndpoint
|
|
204
210
|
};
|
|
205
211
|
}
|
|
212
|
+
/** Compatibility for explicit synchronous SDK account and scoped-access callers. */
|
|
213
|
+
function resolveClickClackAccount(params) {
|
|
214
|
+
const account = resolveClickClackAccountMetadata(params);
|
|
215
|
+
return account.config.tokenFile?.trim() ? {
|
|
216
|
+
...account,
|
|
217
|
+
...resolveClickClackToken({
|
|
218
|
+
cfg: params.cfg,
|
|
219
|
+
value: account.config.token,
|
|
220
|
+
tokenFile: account.config.tokenFile,
|
|
221
|
+
accountId: account.accountId,
|
|
222
|
+
env: params.env
|
|
223
|
+
})
|
|
224
|
+
} : account;
|
|
225
|
+
}
|
|
226
|
+
/** Operational callers prepare the current external credential without blocking the Gateway. */
|
|
227
|
+
async function resolveClickClackAccountAsync(params) {
|
|
228
|
+
const account = resolveClickClackAccountMetadata(params);
|
|
229
|
+
const tokenFile = account.config.tokenFile?.trim();
|
|
230
|
+
if (!tokenFile) return account;
|
|
231
|
+
const [{ readSecretFile }, { FsSafeError }] = await Promise.all([import("openclaw/plugin-sdk/secret-file"), import("openclaw/plugin-sdk/security-runtime")]);
|
|
232
|
+
try {
|
|
233
|
+
return {
|
|
234
|
+
...account,
|
|
235
|
+
token: await readSecretFile(tokenFile, "ClickClack bot token", { rejectSymlink: true }),
|
|
236
|
+
tokenStatus: "available"
|
|
237
|
+
};
|
|
238
|
+
} catch (error) {
|
|
239
|
+
if (!(error instanceof FsSafeError)) throw error;
|
|
240
|
+
return {
|
|
241
|
+
...account,
|
|
242
|
+
tokenStatus: "configured_unavailable",
|
|
243
|
+
credentialDiagnostics: [{
|
|
244
|
+
code: "CREDENTIAL_FILE_UNAVAILABLE",
|
|
245
|
+
path: tokenFileConfigPath(params.cfg, account.accountId),
|
|
246
|
+
reason: error.code
|
|
247
|
+
}]
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/** Read-only snapshots use configured facts; the channel lifetime owns credential health. */
|
|
252
|
+
function inspectClickClackAccount(cfg, rawAccountId) {
|
|
253
|
+
const accountId = normalizeAccountId(rawAccountId);
|
|
254
|
+
const config = resolveClickClackAccountConfig(cfg, accountId);
|
|
255
|
+
const { baseUrl } = resolveClickClackAccountEndpoints(config);
|
|
256
|
+
const credential = config.tokenFile?.trim() ? { tokenSource: "tokenFile" } : resolveClickClackToken({
|
|
257
|
+
cfg,
|
|
258
|
+
value: config.token,
|
|
259
|
+
accountId
|
|
260
|
+
});
|
|
261
|
+
return {
|
|
262
|
+
accountId,
|
|
263
|
+
name: normalizeOptionalString(config.name),
|
|
264
|
+
enabled: cfg.channels?.clickclack?.enabled !== false && config.enabled !== false,
|
|
265
|
+
configured: Boolean(baseUrl && config.workspace?.trim() && credential.tokenSource !== "none"),
|
|
266
|
+
baseUrl,
|
|
267
|
+
tokenSource: credential.tokenSource,
|
|
268
|
+
..."tokenStatus" in credential ? { tokenStatus: credential.tokenStatus } : {}
|
|
269
|
+
};
|
|
270
|
+
}
|
|
206
271
|
function listEnabledClickClackAccounts(cfg) {
|
|
207
272
|
return listClickClackAccountIds(cfg).map((accountId) => resolveClickClackAccount({
|
|
208
273
|
cfg,
|
|
209
274
|
accountId
|
|
210
275
|
})).filter((account) => account.enabled);
|
|
211
276
|
}
|
|
212
|
-
|
|
213
|
-
//#region extensions/clickclack/src/channel-config.ts
|
|
277
|
+
// extensions/clickclack/src/channel-config.ts
|
|
214
278
|
const CLICKCLACK_CHANNEL_ID = "clickclack";
|
|
215
279
|
const clickClackMeta = { ...getChatChannelMeta(CLICKCLACK_CHANNEL_ID) };
|
|
216
280
|
const clickClackConfigAdapter = {
|
|
@@ -219,19 +283,17 @@ const clickClackConfigAdapter = {
|
|
|
219
283
|
cfg,
|
|
220
284
|
accountId
|
|
221
285
|
}),
|
|
222
|
-
|
|
223
|
-
isConfigured: (account) => account.configured,
|
|
224
|
-
resolveAllowFrom: ({ cfg, accountId }) => resolveClickClackAccount({
|
|
225
|
-
cfg,
|
|
226
|
-
accountId
|
|
227
|
-
}).allowFrom,
|
|
228
|
-
resolveDefaultTo: ({ cfg, accountId }) => resolveClickClackAccount({
|
|
286
|
+
resolveAccountAsync: (cfg, accountId) => resolveClickClackAccountAsync({
|
|
229
287
|
cfg,
|
|
230
288
|
accountId
|
|
231
|
-
})
|
|
289
|
+
}),
|
|
290
|
+
inspectAccount: (cfg, accountId) => inspectClickClackAccount(cfg, accountId),
|
|
291
|
+
defaultAccountId: (cfg) => resolveDefaultClickClackAccountId(cfg),
|
|
292
|
+
isConfigured: (account) => account.configured,
|
|
293
|
+
resolveAllowFrom: ({ cfg, accountId }) => resolveClickClackAccountConfig(cfg, accountId).allowFrom ?? ["*"],
|
|
294
|
+
resolveDefaultTo: ({ cfg, accountId }) => resolveClickClackAccountConfig(cfg, accountId).defaultTo?.trim() || "channel:general"
|
|
232
295
|
};
|
|
233
|
-
|
|
234
|
-
//#region extensions/clickclack/src/config-schema.ts
|
|
296
|
+
// extensions/clickclack/src/config-schema.ts
|
|
235
297
|
const ClickClackAccountConfigSchema = z.object({
|
|
236
298
|
name: z.string().optional(),
|
|
237
299
|
enabled: z.boolean().optional(),
|
|
@@ -297,8 +359,7 @@ const clickClackConfigSchema = buildChannelConfigSchema(ClickClackConfigSchema,
|
|
|
297
359
|
help: "Override the account policy for threads rooted in this bot's messages in this channel."
|
|
298
360
|
}
|
|
299
361
|
} });
|
|
300
|
-
|
|
301
|
-
//#region extensions/clickclack/src/setup-contract.ts
|
|
362
|
+
// extensions/clickclack/src/setup-contract.ts
|
|
302
363
|
const CLICKCLACK_SETUP_CODE_CLAIM_PATH = "/api/bot-setup-codes/claim";
|
|
303
364
|
const LOOPBACK_ADDRESSES = new net.BlockList();
|
|
304
365
|
LOOPBACK_ADDRESSES.addSubnet("127.0.0.0", 8, "ipv4");
|
|
@@ -340,8 +401,7 @@ function requireClickClackSetupClaimUrl(value) {
|
|
|
340
401
|
function buildClickClackSetupClaimUrl(baseUrl) {
|
|
341
402
|
return baseUrl.replace(/\/+$/u, "") + CLICKCLACK_SETUP_CODE_CLAIM_PATH;
|
|
342
403
|
}
|
|
343
|
-
|
|
344
|
-
//#region extensions/clickclack/src/setup-core.ts
|
|
404
|
+
// extensions/clickclack/src/setup-core.ts
|
|
345
405
|
const channel$1 = "clickclack";
|
|
346
406
|
const SETUP_CODE_ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
347
407
|
const SETUP_CODE_LENGTH = 12;
|
|
@@ -450,7 +510,7 @@ const clickClackSetupAdapter = {
|
|
|
450
510
|
const claimUrl = setup.exactClaimUrl && !privateApiBaseUrl ? setup.exactClaimUrl : buildClickClackSetupClaimUrl(privateApiBaseUrl ?? setup.baseUrl);
|
|
451
511
|
let claim;
|
|
452
512
|
try {
|
|
453
|
-
const { claimClickClackSetupCode } = await import("./setup-claim-
|
|
513
|
+
const { claimClickClackSetupCode } = await import("./setup-claim-DDJ9VKhn.mjs");
|
|
454
514
|
claim = await claimClickClackSetupCode({
|
|
455
515
|
claimUrl,
|
|
456
516
|
code: setup.code,
|
|
@@ -530,7 +590,7 @@ const clickClackSetupAdapter = {
|
|
|
530
590
|
});
|
|
531
591
|
},
|
|
532
592
|
afterAccountConfigWritten: async ({ cfg, accountId, runtime }) => {
|
|
533
|
-
const { verifyClickClackAccountAfterSetup } = await import("./setup-verify-
|
|
593
|
+
const { verifyClickClackAccountAfterSetup } = await import("./setup-verify-BRmRzZD7.mjs");
|
|
534
594
|
await verifyClickClackAccountAfterSetup({
|
|
535
595
|
cfg,
|
|
536
596
|
accountId,
|
|
@@ -610,8 +670,7 @@ const clickClackSetupContract = defineChannelSetupContract({
|
|
|
610
670
|
},
|
|
611
671
|
legacyAdapter: clickClackSetupAdapter
|
|
612
672
|
});
|
|
613
|
-
|
|
614
|
-
//#region extensions/clickclack/src/setup-surface.ts
|
|
673
|
+
// extensions/clickclack/src/setup-surface.ts
|
|
615
674
|
const t = createSetupTranslator();
|
|
616
675
|
const channel = "clickclack";
|
|
617
676
|
function hasConfiguredClickClackCredential(account) {
|
|
@@ -630,7 +689,7 @@ const clickClackSetupWizard = {
|
|
|
630
689
|
unconfiguredHint: t("wizard.channels.statusNeedsSetup"),
|
|
631
690
|
configuredScore: 2,
|
|
632
691
|
unconfiguredScore: 1,
|
|
633
|
-
resolveConfigured: ({ cfg, accountId }) => (accountId ? [accountId] : listClickClackAccountIds(cfg)).some((resolvedAccountId) => isClickClackSetupConfigured(
|
|
692
|
+
resolveConfigured: ({ cfg, accountId }) => (accountId ? [accountId] : listClickClackAccountIds(cfg)).some((resolvedAccountId) => isClickClackSetupConfigured(resolveClickClackAccountMetadata({
|
|
634
693
|
cfg,
|
|
635
694
|
accountId: resolvedAccountId
|
|
636
695
|
})))
|
|
@@ -638,7 +697,7 @@ const clickClackSetupWizard = {
|
|
|
638
697
|
introNote: {
|
|
639
698
|
title: t("wizard.clickclack.botTokenTitle"),
|
|
640
699
|
lines: [t("wizard.clickclack.helpCreateToken"), t("wizard.channels.docs", { link: formatDocsLink("/channels/clickclack", "clickclack") })],
|
|
641
|
-
shouldShow: ({ cfg, accountId }) => !isClickClackSetupConfigured(
|
|
700
|
+
shouldShow: ({ cfg, accountId }) => !isClickClackSetupConfigured(resolveClickClackAccountMetadata({
|
|
642
701
|
cfg,
|
|
643
702
|
accountId
|
|
644
703
|
}))
|
|
@@ -654,7 +713,7 @@ const clickClackSetupWizard = {
|
|
|
654
713
|
keepPrompt: t("wizard.clickclack.botTokenKeep"),
|
|
655
714
|
inputPrompt: t("wizard.clickclack.botTokenInput"),
|
|
656
715
|
allowEnv: ({ accountId }) => accountId === DEFAULT_ACCOUNT_ID$1,
|
|
657
|
-
resolveAccount: ({ cfg, accountId }) =>
|
|
716
|
+
resolveAccount: ({ cfg, accountId }) => resolveClickClackAccountMetadata({
|
|
658
717
|
cfg,
|
|
659
718
|
accountId
|
|
660
719
|
}),
|
|
@@ -677,7 +736,7 @@ const clickClackSetupWizard = {
|
|
|
677
736
|
inputKey: "baseUrl",
|
|
678
737
|
configKey: "baseUrl",
|
|
679
738
|
message: t("wizard.clickclack.baseUrlPrompt"),
|
|
680
|
-
resolveAccount: ({ cfg, accountId }) =>
|
|
739
|
+
resolveAccount: ({ cfg, accountId }) => resolveClickClackAccountMetadata({
|
|
681
740
|
cfg,
|
|
682
741
|
accountId
|
|
683
742
|
}),
|
|
@@ -695,11 +754,11 @@ const clickClackSetupWizard = {
|
|
|
695
754
|
message: t("wizard.clickclack.workspacePrompt"),
|
|
696
755
|
helpTitle: t("wizard.clickclack.workspacePrompt"),
|
|
697
756
|
helpLines: [t("wizard.clickclack.workspaceHelp")],
|
|
698
|
-
currentValue: ({ cfg, accountId }) =>
|
|
757
|
+
currentValue: ({ cfg, accountId }) => resolveClickClackAccountMetadata({
|
|
699
758
|
cfg,
|
|
700
759
|
accountId
|
|
701
760
|
}).workspace || void 0,
|
|
702
|
-
initialValue: ({ cfg, accountId }) =>
|
|
761
|
+
initialValue: ({ cfg, accountId }) => resolveClickClackAccountMetadata({
|
|
703
762
|
cfg,
|
|
704
763
|
accountId
|
|
705
764
|
}).workspace || void 0,
|
|
@@ -712,7 +771,7 @@ const clickClackSetupWizard = {
|
|
|
712
771
|
})
|
|
713
772
|
}],
|
|
714
773
|
finalize: async ({ cfg, accountId, credentialValues, prompter }) => {
|
|
715
|
-
const { checkClickClackSetupConnection } = await import("./setup-verify-
|
|
774
|
+
const { checkClickClackSetupConnection } = await import("./setup-verify-BRmRzZD7.mjs");
|
|
716
775
|
const result = await checkClickClackSetupConnection({
|
|
717
776
|
cfg,
|
|
718
777
|
accountId,
|
|
@@ -731,5 +790,4 @@ const clickClackSetupWizard = {
|
|
|
731
790
|
},
|
|
732
791
|
disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
|
|
733
792
|
};
|
|
734
|
-
|
|
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 };
|
|
793
|
+
export { resolveClickClackAccountConfig as _, isClickClackSetupLoopbackHost as a, CLICKCLACK_CHANNEL_ID as c, DEFAULT_ACCOUNT_ID$2 as d, isClickClackAccountCurrent as f, resolveClickClackAccountAsync 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, resolveClickClackAccountMetadata as v, resolveDefaultClickClackAccountId as y };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as createClickClackClient, i as ClickClackHttpError, t as findClickClackWorkspace } from "./resolve-
|
|
1
|
+
import { g as resolveClickClackAccountAsync } from "./setup-surface-DSbHN_QA.mjs";
|
|
2
|
+
import { a as createClickClackClient, i as ClickClackHttpError, t as findClickClackWorkspace } from "./resolve-qeIY2bou.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";
|
|
@@ -12,7 +12,7 @@ function usesUnavailableImplicitEnvToken(account, tokenOverride) {
|
|
|
12
12
|
}
|
|
13
13
|
async function checkClickClackSetupConnection(params) {
|
|
14
14
|
try {
|
|
15
|
-
const account =
|
|
15
|
+
const account = await resolveClickClackAccountAsync({
|
|
16
16
|
cfg: params.cfg,
|
|
17
17
|
accountId: params.accountId
|
|
18
18
|
});
|
|
@@ -78,5 +78,4 @@ async function verifyClickClackAccountAfterSetup(params) {
|
|
|
78
78
|
if (message) params.runtime.log(message);
|
|
79
79
|
params.runtime.log(await probeClickClackGatewayStatus());
|
|
80
80
|
}
|
|
81
|
-
//#endregion
|
|
82
81
|
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-BH4RFKFX.mjs","sha256":"9aee7214a21ca0c4b37112119d09dca182d296ec9470ec1e31968322fd253982","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-qeIY2bou.mjs","sha256":"8a0877f41b27990a79fcc36c617c4d5d4c11720614c1d71f2f8575221605b6db","facadeSource":null,"sources":["extensions/clickclack/src/http-client.ts","extensions/clickclack/src/resolve.ts"]},{"output":".setup/rolldown-runtime-782esTHO.mjs","sha256":"5ee95aea427a7c3b63d18f4d901f7c824b836077e85aee06ae7d598c1974e2a6","facadeSource":null,"sources":[]},{"output":".setup/runtime-api-QLQR94SM.mjs","sha256":"70ee6ead1810f7a6c3bc823fe22511b39157973e6748b9431ef06f3834624f56","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-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-DDJ9VKhn.mjs","sha256":"d7d1b054b4cbc7dee4858ab2c97c3b6f1411db2377c48f9257c3b8fc5f71ad88","facadeSource":"extensions/clickclack/src/setup-claim.ts","sources":["extensions/clickclack/src/setup-claim.ts"]},{"output":".setup/setup-plugin-api-Bv07Jgqa.mjs","sha256":"b453b3e91cdc8630aea83f19dbda306e01766cd4f21b2afa0669c9f8052203bb","facadeSource":null,"sources":["extensions/clickclack/src/channel.setup.ts"]},{"output":".setup/setup-plugin-api-rftn825R.mjs","sha256":"0dcee8b9cb9efa2468784722f6d26f5287b4a61556f8a99a51c14d7e70038c6f","facadeSource":"extensions/clickclack/setup-plugin-api.ts","sources":[]},{"output":".setup/setup-surface-DSbHN_QA.mjs","sha256":"80bd3192ee22f0fdbe27b36d6f6e4928251b227747b8309e3f60f42273defc0b","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-BRmRzZD7.mjs","sha256":"f9a5b209e94341efae28f43688215ce17a33569df9292869fe7e0628f1dc3176","facadeSource":"extensions/clickclack/src/setup-verify.ts","sources":["extensions/clickclack/src/setup-verify.ts"]},{"output":"api.js","sha256":"1e4b1434ff41e45cbf52753216844e5e2290aa34aa20d05f1f836c75e0147141","facadeSource":"extensions/clickclack/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"e1196ee0a6c2fdbff306ffe76b6a5b45480f118c01c80ce9606f0a3f6e41f674","facadeSource":"extensions/clickclack/channel-plugin-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"90e35955fee235ef5fde4467214d6fc892a5eca1ec736c65a0f6295c3372daa0","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":"212dc24663fbb3469296efadda32acc42f6afbe6a8eb2302b32e317dcad2ce40","facadeSource":"extensions/clickclack/index.ts","sources":["extensions/clickclack/index.ts"]},{"output":"runtime-api.js","sha256":"948d7560515276a4e3104e0ecac8f0054fe21b82e96e476dadf3d560af2b3165","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":"c114d14839157549ea2aa89674eb8ca3760b7d6b022264d12b731b1d1d0b611f","facadeSource":"extensions/clickclack/setup-entry.ts","sources":["extensions/clickclack/setup-entry.ts"]},{"output":"setup-plugin-api.js","sha256":"18f50a9ed2d24ac59cb85627b13c7bc48e84100f2de4cc97f517fbeec6b57ff2","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 {
|
|
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 { d as DEFAULT_ACCOUNT_ID, h as resolveClickClackAccount, m as listEnabledClickClackAccounts, p as listClickClackAccountIds, s as clickClackConfigSchema, y as resolveDefaultClickClackAccountId } from "./.setup/setup-surface-DSbHN_QA.mjs";
|
|
2
|
+
import { a as setClickClackRuntime, i as getClickClackRuntime, n as buildClickClackTarget, r as parseClickClackTarget, t as clickClackPlugin } from "./.setup/channel-BH4RFKFX.mjs";
|
|
3
|
+
import { a as createClickClackClient } from "./.setup/resolve-qeIY2bou.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-BH4RFKFX.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-782esTHO.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-QLQR94SM.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-DSbHN_QA.mjs";
|
|
2
|
+
import { a as setClickClackRuntime, r as parseClickClackTarget } from "./.setup/channel-BH4RFKFX.mjs";
|
|
3
|
+
import { a as createClickClackClient } from "./.setup/resolve-qeIY2bou.mjs";
|
|
4
|
+
import { t as registerClickClackDiscussions } from "./.setup/runtime-api-QLQR94SM.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-rftn825R.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-Bv07Jgqa.mjs";
|
package/openclaw.plugin.json
CHANGED
|
@@ -682,5 +682,9 @@
|
|
|
682
682
|
"type": "object",
|
|
683
683
|
"additionalProperties": false,
|
|
684
684
|
"properties": {}
|
|
685
|
-
}
|
|
685
|
+
},
|
|
686
|
+
"recommendedPrompts": [
|
|
687
|
+
"Help me plan a ClickClack workspace connection for this agent.",
|
|
688
|
+
"Help me plan a ClickClack discussion and choose who can access it."
|
|
689
|
+
]
|
|
686
690
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/clickclack",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.10-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.
|
|
15
|
+
"openclaw": ">=2026.11.10-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.
|
|
141
|
+
"pluginApi": ">=2026.11.10-beta.2"
|
|
142
142
|
},
|
|
143
143
|
"build": {
|
|
144
|
-
"openclawVersion": "2026.11.
|
|
144
|
+
"openclawVersion": "2026.11.10-beta.2",
|
|
145
145
|
"bundledDist": false
|
|
146
146
|
},
|
|
147
147
|
"release": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as clickClackSetupPlugin } from "./setup-plugin-api-DpZ0Nefw.mjs";
|