@openclaw/nextcloud-talk 2026.5.14-beta.2 → 2026.5.16-beta.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/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as nextcloudTalkPlugin } from "./channel-
|
|
1
|
+
import { t as nextcloudTalkPlugin } from "./channel-CvZn7Hj1.js";
|
|
2
2
|
export { nextcloudTalkPlugin };
|
|
@@ -37,8 +37,8 @@ import { WEBHOOK_RATE_LIMIT_DEFAULTS, createAuthRateLimiter, isRequestBodyLimitE
|
|
|
37
37
|
import path from "node:path";
|
|
38
38
|
import { createClaimableDedupe } from "openclaw/plugin-sdk/persistent-dedupe";
|
|
39
39
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, buildOutboundBaseSessionKey, normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/routing";
|
|
40
|
-
import { applyAccountNameToChannelSection, createStandardChannelSetupStatus, formatDocsLink, patchScopedAccountConfig, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
|
|
41
|
-
import { createSetupInputPresenceValidator, mergeAllowFromEntries, promptParsedAllowFromForAccount, resolveSetupAccountId } from "openclaw/plugin-sdk/setup-runtime";
|
|
40
|
+
import { applyAccountNameToChannelSection, createSetupTranslator, createStandardChannelSetupStatus, formatDocsLink, patchScopedAccountConfig, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
|
|
41
|
+
import { createSetupInputPresenceValidator, createSetupTranslator as createSetupTranslator$1, mergeAllowFromEntries, promptParsedAllowFromForAccount, resolveSetupAccountId } from "openclaw/plugin-sdk/setup-runtime";
|
|
42
42
|
import { formatDocsLink as formatDocsLink$1 } from "openclaw/plugin-sdk/setup-tools";
|
|
43
43
|
//#region extensions/nextcloud-talk/src/accounts.ts
|
|
44
44
|
function isTruthyEnvValue(value) {
|
|
@@ -1555,6 +1555,7 @@ function resolveNextcloudTalkOutboundSessionRoute(params) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
//#endregion
|
|
1557
1557
|
//#region extensions/nextcloud-talk/src/setup-core.ts
|
|
1558
|
+
const t$1 = createSetupTranslator$1();
|
|
1558
1559
|
const channel$1 = "nextcloud-talk";
|
|
1559
1560
|
function addWildcardAllowFrom(allowFrom) {
|
|
1560
1561
|
return mergeAllowFromEntries(allowFrom, ["*"]);
|
|
@@ -1612,14 +1613,14 @@ async function promptNextcloudTalkAllowFrom(params) {
|
|
|
1612
1613
|
accountId: params.accountId,
|
|
1613
1614
|
defaultAccountId: params.accountId,
|
|
1614
1615
|
prompter: params.prompter,
|
|
1615
|
-
noteTitle: "
|
|
1616
|
+
noteTitle: t$1("wizard.nextcloudTalk.userIdTitle"),
|
|
1616
1617
|
noteLines: [
|
|
1617
|
-
"
|
|
1618
|
-
"
|
|
1619
|
-
"
|
|
1620
|
-
|
|
1618
|
+
t$1("wizard.nextcloudTalk.userIdHelpAdmin"),
|
|
1619
|
+
t$1("wizard.nextcloudTalk.userIdHelpLogs"),
|
|
1620
|
+
t$1("wizard.nextcloudTalk.userIdHelpLowercase"),
|
|
1621
|
+
t$1("wizard.channels.docs", { link: formatDocsLink$1("/channels/nextcloud-talk", "nextcloud-talk") })
|
|
1621
1622
|
],
|
|
1622
|
-
message: "
|
|
1623
|
+
message: t$1("wizard.nextcloudTalk.allowFromPrompt"),
|
|
1623
1624
|
placeholder: "username",
|
|
1624
1625
|
parseEntries: (raw) => ({ entries: raw.split(/[\n,;]+/g).map(normalizeLowercaseStringOrEmpty).filter(Boolean) }),
|
|
1625
1626
|
getExistingAllowFrom: ({ cfg, accountId }) => resolveNextcloudTalkAccount({
|
|
@@ -1706,6 +1707,7 @@ const nextcloudTalkSetupAdapter = {
|
|
|
1706
1707
|
};
|
|
1707
1708
|
//#endregion
|
|
1708
1709
|
//#region extensions/nextcloud-talk/src/setup-surface.ts
|
|
1710
|
+
const t = createSetupTranslator();
|
|
1709
1711
|
const channel = "nextcloud-talk";
|
|
1710
1712
|
const CONFIGURE_API_FLAG = "__nextcloudTalkConfigureApiCredentials";
|
|
1711
1713
|
const nextcloudTalkSetupWizard = {
|
|
@@ -1713,10 +1715,10 @@ const nextcloudTalkSetupWizard = {
|
|
|
1713
1715
|
stepOrder: "text-first",
|
|
1714
1716
|
status: createStandardChannelSetupStatus({
|
|
1715
1717
|
channelLabel: "Nextcloud Talk",
|
|
1716
|
-
configuredLabel: "
|
|
1717
|
-
unconfiguredLabel: "
|
|
1718
|
-
configuredHint: "
|
|
1719
|
-
unconfiguredHint: "
|
|
1718
|
+
configuredLabel: t("wizard.channels.statusConfigured"),
|
|
1719
|
+
unconfiguredLabel: t("wizard.channels.statusNeedsSetup"),
|
|
1720
|
+
configuredHint: t("wizard.channels.statusConfigured"),
|
|
1721
|
+
unconfiguredHint: t("wizard.channels.statusSelfHostedChat"),
|
|
1720
1722
|
configuredScore: 1,
|
|
1721
1723
|
unconfiguredScore: 5,
|
|
1722
1724
|
resolveConfigured: ({ cfg, accountId }) => {
|
|
@@ -1728,14 +1730,14 @@ const nextcloudTalkSetupWizard = {
|
|
|
1728
1730
|
}
|
|
1729
1731
|
}),
|
|
1730
1732
|
introNote: {
|
|
1731
|
-
title: "
|
|
1733
|
+
title: t("wizard.nextcloudTalk.setupTitle"),
|
|
1732
1734
|
lines: [
|
|
1733
|
-
"
|
|
1734
|
-
"
|
|
1735
|
-
"
|
|
1736
|
-
"
|
|
1737
|
-
"
|
|
1738
|
-
|
|
1735
|
+
t("wizard.nextcloudTalk.helpSsh"),
|
|
1736
|
+
t("wizard.nextcloudTalk.helpInstallCommand"),
|
|
1737
|
+
t("wizard.nextcloudTalk.helpCopySecret"),
|
|
1738
|
+
t("wizard.nextcloudTalk.helpEnableRoom"),
|
|
1739
|
+
t("wizard.nextcloudTalk.helpEnvTip"),
|
|
1740
|
+
t("wizard.channels.docs", { link: formatDocsLink("/channels/nextcloud-talk", "channels/nextcloud-talk") })
|
|
1739
1741
|
],
|
|
1740
1742
|
shouldShow: ({ cfg, accountId }) => {
|
|
1741
1743
|
const account = resolveNextcloudTalkAccount({
|
|
@@ -1752,7 +1754,7 @@ const nextcloudTalkSetupWizard = {
|
|
|
1752
1754
|
});
|
|
1753
1755
|
const hasApiCredentials = Boolean(resolvedAccount.config.apiUser?.trim() && (hasConfiguredSecretInput(resolvedAccount.config.apiPassword) || resolvedAccount.config.apiPasswordFile));
|
|
1754
1756
|
if (!await prompter.confirm({
|
|
1755
|
-
message: "
|
|
1757
|
+
message: t("wizard.nextcloudTalk.configureApiCredentials"),
|
|
1756
1758
|
initialValue: hasApiCredentials
|
|
1757
1759
|
})) return;
|
|
1758
1760
|
return { credentialValues: {
|
|
@@ -1763,11 +1765,11 @@ const nextcloudTalkSetupWizard = {
|
|
|
1763
1765
|
credentials: [{
|
|
1764
1766
|
inputKey: "token",
|
|
1765
1767
|
providerHint: channel,
|
|
1766
|
-
credentialLabel: "
|
|
1768
|
+
credentialLabel: t("wizard.nextcloudTalk.botSecret"),
|
|
1767
1769
|
preferredEnvVar: "NEXTCLOUD_TALK_BOT_SECRET",
|
|
1768
|
-
envPrompt: "
|
|
1769
|
-
keepPrompt: "
|
|
1770
|
-
inputPrompt: "
|
|
1770
|
+
envPrompt: t("wizard.nextcloudTalk.botSecretEnvPrompt"),
|
|
1771
|
+
keepPrompt: t("wizard.nextcloudTalk.botSecretKeep"),
|
|
1772
|
+
inputPrompt: t("wizard.nextcloudTalk.botSecretInput"),
|
|
1771
1773
|
allowEnv: ({ accountId }) => accountId === DEFAULT_ACCOUNT_ID$1,
|
|
1772
1774
|
inspect: ({ cfg, accountId }) => {
|
|
1773
1775
|
const resolvedAccount = resolveNextcloudTalkAccount({
|
|
@@ -1792,11 +1794,11 @@ const nextcloudTalkSetupWizard = {
|
|
|
1792
1794
|
}, {
|
|
1793
1795
|
inputKey: "password",
|
|
1794
1796
|
providerHint: "nextcloud-talk-api",
|
|
1795
|
-
credentialLabel: "
|
|
1797
|
+
credentialLabel: t("wizard.nextcloudTalk.apiPassword"),
|
|
1796
1798
|
preferredEnvVar: "NEXTCLOUD_TALK_API_PASSWORD",
|
|
1797
1799
|
envPrompt: "",
|
|
1798
|
-
keepPrompt: "
|
|
1799
|
-
inputPrompt: "
|
|
1800
|
+
keepPrompt: t("wizard.nextcloudTalk.apiPasswordKeep"),
|
|
1801
|
+
inputPrompt: t("wizard.nextcloudTalk.apiPasswordInput"),
|
|
1800
1802
|
inspect: ({ cfg, accountId }) => {
|
|
1801
1803
|
const resolvedAccount = resolveNextcloudTalkAccount({
|
|
1802
1804
|
cfg,
|
|
@@ -1814,7 +1816,7 @@ const nextcloudTalkSetupWizard = {
|
|
|
1814
1816
|
}],
|
|
1815
1817
|
textInputs: [{
|
|
1816
1818
|
inputKey: "httpUrl",
|
|
1817
|
-
message: "
|
|
1819
|
+
message: t("wizard.nextcloudTalk.instanceUrlPrompt"),
|
|
1818
1820
|
currentValue: ({ cfg, accountId }) => resolveNextcloudTalkAccount({
|
|
1819
1821
|
cfg,
|
|
1820
1822
|
accountId
|
|
@@ -1825,13 +1827,13 @@ const nextcloudTalkSetupWizard = {
|
|
|
1825
1827
|
applySet: async (params) => setNextcloudTalkAccountConfig(params.cfg, params.accountId, { baseUrl: params.value })
|
|
1826
1828
|
}, {
|
|
1827
1829
|
inputKey: "userId",
|
|
1828
|
-
message: "
|
|
1830
|
+
message: t("wizard.nextcloudTalk.apiUserPrompt"),
|
|
1829
1831
|
currentValue: ({ cfg, accountId }) => resolveNextcloudTalkAccount({
|
|
1830
1832
|
cfg,
|
|
1831
1833
|
accountId
|
|
1832
1834
|
}).config.apiUser?.trim() || void 0,
|
|
1833
1835
|
shouldPrompt: ({ credentialValues }) => credentialValues[CONFIGURE_API_FLAG] === "1",
|
|
1834
|
-
validate: ({ value }) => value ? void 0 : "
|
|
1836
|
+
validate: ({ value }) => value ? void 0 : t("common.required"),
|
|
1835
1837
|
applySet: async (params) => setNextcloudTalkAccountConfig(params.cfg, params.accountId, { apiUser: params.value })
|
|
1836
1838
|
}],
|
|
1837
1839
|
dmPolicy: nextcloudTalkDmPolicy,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as nextcloudTalkPlugin } from "./channel-
|
|
1
|
+
import { t as nextcloudTalkPlugin } from "./channel-CvZn7Hj1.js";
|
|
2
2
|
export { nextcloudTalkPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/nextcloud-talk",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.16-beta.1",
|
|
4
4
|
"description": "OpenClaw Nextcloud Talk channel plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"openclaw": "workspace:*"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.5.
|
|
15
|
+
"openclaw": ">=2026.5.16-beta.1"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"minHostVersion": ">=2026.4.10"
|
|
45
45
|
},
|
|
46
46
|
"compat": {
|
|
47
|
-
"pluginApi": ">=2026.5.
|
|
47
|
+
"pluginApi": ">=2026.5.16-beta.1"
|
|
48
48
|
},
|
|
49
49
|
"build": {
|
|
50
|
-
"openclawVersion": "2026.5.
|
|
50
|
+
"openclawVersion": "2026.5.16-beta.1"
|
|
51
51
|
},
|
|
52
52
|
"release": {
|
|
53
53
|
"publishToClawHub": true,
|