@openclaw/msteams 2026.7.2-beta.5 → 2026.8.1-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/adapter.runtime-DEYjslFX.cjs +309 -0
- package/dist/api.cjs +2 -2
- package/dist/{channel-DtZFlwhL.cjs → channel-DfCbi0d_.cjs} +209 -301
- package/dist/channel-config-api.cjs +1 -1
- package/dist/channel-plugin-api.cjs +1 -1
- package/dist/{channel.runtime-BtdOD_kD.cjs → channel.runtime-BJmueA4q.cjs} +99 -64
- package/dist/{config-schema-BTnLgWAe.cjs → config-schema-C4CszdDi.cjs} +12 -28
- package/dist/{delegated-state-DOSCHaAB.cjs → delegated-state-DiEz9JIa.cjs} +0 -28
- package/dist/directory-contract-api.cjs +1 -1
- package/dist/doctor-contract-api.cjs +19 -18
- package/dist/{messenger-BJ0KM2sD.cjs → messenger-BqA8G3pY.cjs} +55 -26
- package/dist/{oauth-CNcnL8of.cjs → oauth-DktsbN22.cjs} +12 -25
- package/dist/{polls-CWExq2xZ.cjs → polls-DvuJvaDG.cjs} +6 -12
- package/dist/qa-runner-api.cjs +36 -0
- package/dist/{resolve-allowlist-Dr_1sOJh.cjs → resolve-allowlist-C6YcNC9a.cjs} +292 -117
- package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
- package/dist/secret-contract-api.cjs +6 -30
- package/dist/setup-plugin-api.cjs +3 -4
- package/dist/{setup-surface-xVejKCJV.cjs → setup-surface-DAhGL2h8.cjs} +20 -44
- package/dist/{src-CsXzz0x2.cjs → src-Bz9wY0Mr.cjs} +1553 -1070
- package/dist/{sso-token-store-OSg229re.cjs → sso-token-store-ChhO1f4i.cjs} +1 -1
- package/openclaw.plugin.json +34 -8
- package/package.json +5 -6
|
@@ -1,37 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
let openclaw_plugin_sdk_channel_secret_basic_runtime = require("openclaw/plugin-sdk/channel-secret-basic-runtime");
|
|
3
2
|
//#region extensions/msteams/src/secret-contract.ts
|
|
4
|
-
const
|
|
3
|
+
const channelSecrets = (0, require("openclaw/plugin-sdk/channel-secret-basic-runtime").createSimpleChannelSecretContract)({
|
|
5
4
|
channelKey: "msteams",
|
|
6
|
-
|
|
5
|
+
label: "Microsoft Teams",
|
|
6
|
+
accountFields: [],
|
|
7
|
+
channelFields: ["appPassword"],
|
|
8
|
+
mode: "channel-only"
|
|
7
9
|
});
|
|
8
|
-
|
|
9
|
-
const msteams = (0, openclaw_plugin_sdk_channel_secret_basic_runtime.getChannelRecord)(params.config, "msteams");
|
|
10
|
-
if (!msteams) return;
|
|
11
|
-
(0, openclaw_plugin_sdk_channel_secret_basic_runtime.collectSecretInputAssignment)({
|
|
12
|
-
value: msteams.appPassword,
|
|
13
|
-
path: "channels.msteams.appPassword",
|
|
14
|
-
expected: "string",
|
|
15
|
-
defaults: params.defaults,
|
|
16
|
-
context: params.context,
|
|
17
|
-
active: msteams.enabled !== false,
|
|
18
|
-
inactiveReason: "Microsoft Teams channel is disabled.",
|
|
19
|
-
owner: {
|
|
20
|
-
ownerKind: "account",
|
|
21
|
-
ownerId: "msteams:default",
|
|
22
|
-
requiredForGateway: false,
|
|
23
|
-
disposition: "isolate",
|
|
24
|
-
contract: msteams
|
|
25
|
-
},
|
|
26
|
-
apply: (value) => {
|
|
27
|
-
msteams.appPassword = value;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
const channelSecrets = {
|
|
32
|
-
secretTargetRegistryEntries,
|
|
33
|
-
collectRuntimeConfigAssignments
|
|
34
|
-
};
|
|
10
|
+
const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
|
|
35
11
|
//#endregion
|
|
36
12
|
exports.channelSecrets = channelSecrets;
|
|
37
13
|
exports.collectRuntimeConfigAssignments = collectRuntimeConfigAssignments;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_resolve_allowlist = require("./resolve-allowlist-
|
|
3
|
-
const require_setup_surface = require("./setup-surface-
|
|
4
|
-
const require_config_schema = require("./config-schema-
|
|
2
|
+
const require_resolve_allowlist = require("./resolve-allowlist-C6YcNC9a.cjs");
|
|
3
|
+
const require_setup_surface = require("./setup-surface-DAhGL2h8.cjs");
|
|
4
|
+
const require_config_schema = require("./config-schema-C4CszdDi.cjs");
|
|
5
5
|
let openclaw_plugin_sdk_account_helpers = require("openclaw/plugin-sdk/account-helpers");
|
|
6
6
|
//#region extensions/msteams/src/channel.setup.ts
|
|
7
7
|
const msteamsSetupPlugin = {
|
|
@@ -31,7 +31,6 @@ const msteamsSetupPlugin = {
|
|
|
31
31
|
})
|
|
32
32
|
},
|
|
33
33
|
setupWizard: require_setup_surface.msteamsSetupWizard,
|
|
34
|
-
setup: require_setup_surface.msteamsSetupAdapter,
|
|
35
34
|
setupContract: require_setup_surface.msteamsSetupContract
|
|
36
35
|
};
|
|
37
36
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_resolve_allowlist = require("./resolve-allowlist-
|
|
1
|
+
const require_resolve_allowlist = require("./resolve-allowlist-C6YcNC9a.cjs");
|
|
2
2
|
let openclaw_plugin_sdk_string_coerce_runtime = require("openclaw/plugin-sdk/string-coerce-runtime");
|
|
3
3
|
let openclaw_plugin_sdk_account_id = require("openclaw/plugin-sdk/account-id");
|
|
4
4
|
let openclaw_plugin_sdk_allow_from = require("openclaw/plugin-sdk/allow-from");
|
|
@@ -38,38 +38,24 @@ const msteamsConfigAdapter = (0, openclaw_plugin_sdk_channel_config_helpers.crea
|
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region extensions/msteams/src/setup-core.ts
|
|
40
40
|
const t$1 = (0, openclaw_plugin_sdk_setup.createSetupTranslator)();
|
|
41
|
+
const channel$1 = "msteams";
|
|
41
42
|
const msteamsSetupAdapter = {
|
|
42
43
|
resolveAccountId: () => openclaw_plugin_sdk_setup.DEFAULT_ACCOUNT_ID,
|
|
43
|
-
applyAccountConfig: ({ cfg }) => (
|
|
44
|
-
...cfg,
|
|
45
|
-
channels: {
|
|
46
|
-
...cfg.channels,
|
|
47
|
-
msteams: {
|
|
48
|
-
...cfg.channels?.msteams,
|
|
49
|
-
enabled: true
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
})
|
|
44
|
+
applyAccountConfig: ({ cfg }) => (0, openclaw_plugin_sdk_setup.setSetupChannelEnabled)(cfg, channel$1, true)
|
|
53
45
|
};
|
|
54
46
|
const msteamsSetupContract = (0, openclaw_plugin_sdk_channel_setup.defineChannelSetupContract)({
|
|
55
47
|
fields: {},
|
|
56
48
|
legacyAdapter: msteamsSetupAdapter
|
|
57
49
|
});
|
|
58
|
-
const channel$1 = "msteams";
|
|
59
50
|
async function promptMSTeamsCredentials(prompter) {
|
|
51
|
+
const promptRequired = async (message) => (await prompter.text({
|
|
52
|
+
message,
|
|
53
|
+
validate: (value) => value?.trim() ? void 0 : t$1("common.required")
|
|
54
|
+
})).trim();
|
|
60
55
|
return {
|
|
61
|
-
appId:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
})).trim(),
|
|
65
|
-
appPassword: (await prompter.text({
|
|
66
|
-
message: t$1("wizard.msteams.appPasswordPrompt"),
|
|
67
|
-
validate: (value) => value?.trim() ? void 0 : t$1("common.required")
|
|
68
|
-
})).trim(),
|
|
69
|
-
tenantId: (await prompter.text({
|
|
70
|
-
message: t$1("wizard.msteams.tenantIdPrompt"),
|
|
71
|
-
validate: (value) => value?.trim() ? void 0 : t$1("common.required")
|
|
72
|
-
})).trim()
|
|
56
|
+
appId: await promptRequired(t$1("wizard.msteams.appIdPrompt")),
|
|
57
|
+
appPassword: await promptRequired(t$1("wizard.msteams.appPasswordPrompt")),
|
|
58
|
+
tenantId: await promptRequired(t$1("wizard.msteams.tenantIdPrompt"))
|
|
73
59
|
};
|
|
74
60
|
}
|
|
75
61
|
async function noteMSTeamsCredentialHelp(prompter) {
|
|
@@ -107,8 +93,8 @@ function createMSTeamsSetupWizardBase() {
|
|
|
107
93
|
let appPassword = null;
|
|
108
94
|
let tenantId = null;
|
|
109
95
|
if (!resolved && !hasConfigCreds) await noteMSTeamsCredentialHelp(prompter);
|
|
110
|
-
if (canUseEnv) if (await prompter.confirm({
|
|
111
|
-
message: t$1("wizard.msteams.envPrompt"),
|
|
96
|
+
if (canUseEnv || hasConfigCreds) if (await prompter.confirm({
|
|
97
|
+
message: t$1(canUseEnv ? "wizard.msteams.envPrompt" : "wizard.msteams.credentialsKeep"),
|
|
112
98
|
initialValue: true
|
|
113
99
|
})) next = msteamsSetupAdapter.applyAccountConfig({
|
|
114
100
|
cfg: next,
|
|
@@ -116,12 +102,7 @@ function createMSTeamsSetupWizardBase() {
|
|
|
116
102
|
input: {}
|
|
117
103
|
});
|
|
118
104
|
else ({appId, appPassword, tenantId} = await promptMSTeamsCredentials(prompter));
|
|
119
|
-
else
|
|
120
|
-
if (!await prompter.confirm({
|
|
121
|
-
message: t$1("wizard.msteams.credentialsKeep"),
|
|
122
|
-
initialValue: true
|
|
123
|
-
})) ({appId, appPassword, tenantId} = await promptMSTeamsCredentials(prompter));
|
|
124
|
-
} else ({appId, appPassword, tenantId} = await promptMSTeamsCredentials(prompter));
|
|
105
|
+
else ({appId, appPassword, tenantId} = await promptMSTeamsCredentials(prompter));
|
|
125
106
|
if (appId && appPassword && tenantId) next = {
|
|
126
107
|
...next,
|
|
127
108
|
channels: {
|
|
@@ -390,17 +371,12 @@ function setMSTeamsTeamsAllowlist(cfg, entries) {
|
|
|
390
371
|
};
|
|
391
372
|
} else teams[teamKey] = existing;
|
|
392
373
|
}
|
|
393
|
-
return {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
enabled: true,
|
|
400
|
-
teams
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
};
|
|
374
|
+
return (0, openclaw_plugin_sdk_setup.patchTopLevelChannelConfigSection)({
|
|
375
|
+
cfg,
|
|
376
|
+
channel,
|
|
377
|
+
enabled: true,
|
|
378
|
+
patch: { teams }
|
|
379
|
+
});
|
|
404
380
|
}
|
|
405
381
|
function listMSTeamsGroupEntries(cfg) {
|
|
406
382
|
return Object.entries(cfg.channels?.msteams?.teams ?? {}).flatMap(([teamKey, value]) => {
|
|
@@ -490,7 +466,7 @@ const msteamsSetupWizard = {
|
|
|
490
466
|
};
|
|
491
467
|
let oauthModule;
|
|
492
468
|
try {
|
|
493
|
-
oauthModule = await Promise.resolve().then(() => require("./oauth-
|
|
469
|
+
oauthModule = await Promise.resolve().then(() => require("./oauth-DktsbN22.cjs"));
|
|
494
470
|
} catch (err) {
|
|
495
471
|
await noteDelegatedAuthFailure(err);
|
|
496
472
|
return {
|