chore(plugins): drop stale core channel lint comments

This commit is contained in:
Vincent Koc
2026-04-06 15:56:19 +01:00
parent 378b2c2f5c
commit 2537ae503d
4 changed files with 0 additions and 21 deletions

View File

@@ -23,7 +23,6 @@ async function runConfigureChannelAccess<TResolved>(params: {
}) {
return await configureChannelAccessWithAllowlist({
cfg: params.cfg,
// oxlint-disable-next-line typescript/no-explicit-any
prompter: params.prompter as any,
label: params.label ?? "Slack channels",
currentPolicy: "allowlist",
@@ -106,7 +105,6 @@ describe("configureChannelAccessWithAllowlist", () => {
const next = await configureChannelAccessWithAllowlist({
cfg,
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
label: "Twitch chat",
currentPolicy: "disabled",

View File

@@ -51,7 +51,6 @@ describe("promptChannelAllowlist", () => {
});
const result = await promptChannelAllowlist({
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
label: "Test",
currentEntries: ["alpha", "beta"],
@@ -73,7 +72,6 @@ describe("promptChannelAccessPolicy", () => {
});
const result = await promptChannelAccessPolicy({
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
label: "Discord",
currentPolicy: "allowlist",
@@ -94,7 +92,6 @@ describe("promptChannelAccessConfig", () => {
});
const result = await promptChannelAccessConfig({
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
label: "Twitch chat",
skipAllowlistEntries: true,
@@ -111,7 +108,6 @@ describe("promptChannelAccessConfig", () => {
});
const result = await promptChannelAccessConfig({
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
label: "Slack",
});
@@ -127,7 +123,6 @@ describe("promptChannelAccessConfig", () => {
});
const result = await promptChannelAccessConfig({
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
label: "Slack",
});
@@ -145,7 +140,6 @@ describe("promptChannelAccessConfig", () => {
});
const result = await promptChannelAccessConfig({
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
label: "Slack",
allowDisabled: true,

View File

@@ -141,7 +141,6 @@ async function runPromptResolvedAllowFromWithToken(params: {
resolveEntries: AllowFromResolver;
}) {
return await promptResolvedAllowFrom({
// oxlint-disable-next-line typescript/no-explicit-any
prompter: params.prompter as any,
existing: [],
token: "xoxb-test",
@@ -199,7 +198,6 @@ async function runPromptSingleChannelSecretInput(params: {
}) {
return await promptSingleChannelSecretInput({
cfg: {},
// oxlint-disable-next-line typescript/no-explicit-any
prompter: params.prompter as any,
providerHint: params.providerHint,
credentialLabel: params.credentialLabel,
@@ -262,7 +260,6 @@ async function runPromptLegacyAllowFrom(params: {
return await promptLegacyChannelAllowFrom({
cfg: params.cfg ?? {},
channel: params.channel,
// oxlint-disable-next-line typescript/no-explicit-any
prompter: params.prompter as any,
existing: params.existing,
token: params.token,
@@ -282,7 +279,6 @@ describe("promptResolvedAllowFrom", () => {
const resolveEntries = vi.fn();
const result = await promptResolvedAllowFrom({
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
existing: ["111"],
token: "",
@@ -292,7 +288,6 @@ describe("promptResolvedAllowFrom", () => {
parseInputs: parseCsvInputs,
parseId: (value) => (/^\d+$/.test(value.trim()) ? value.trim() : null),
invalidWithoutTokenNote: "ids only",
// oxlint-disable-next-line typescript/no-explicit-any
resolveEntries: resolveEntries as any,
});
@@ -397,7 +392,6 @@ describe("promptLegacyChannelAllowFromForAccount", () => {
},
} as OpenClawConfig,
channel: "slack",
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
defaultAccountId: DEFAULT_ACCOUNT_ID,
resolveAccount: () => ({
@@ -774,7 +768,6 @@ describe("createPromptParsedAllowFromForAccount", () => {
},
},
},
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
});
@@ -798,7 +791,6 @@ describe("parsed allowFrom prompt builders", () => {
const prompter = createPrompter(["npub1"]);
const next = await promptAllowFrom({
cfg: {},
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
});
@@ -819,7 +811,6 @@ describe("parsed allowFrom prompt builders", () => {
const next = await promptAllowFrom({
cfg: {},
// oxlint-disable-next-line typescript/no-explicit-any
prompter: createPrompter(["users/123"]) as any,
});
@@ -2010,7 +2001,6 @@ describe("resolveAccountIdForConfigure", () => {
it("uses normalized override without prompting", async () => {
const accountId = await resolveAccountIdForConfigure({
cfg: {},
// oxlint-disable-next-line typescript/no-explicit-any
prompter: {} as any,
label: "Signal",
accountOverride: " Team Primary ",
@@ -2024,7 +2014,6 @@ describe("resolveAccountIdForConfigure", () => {
it("uses default account when override is missing and prompting disabled", async () => {
const accountId = await resolveAccountIdForConfigure({
cfg: {},
// oxlint-disable-next-line typescript/no-explicit-any
prompter: {} as any,
label: "Signal",
shouldPromptAccountIds: false,
@@ -2043,7 +2032,6 @@ describe("resolveAccountIdForConfigure", () => {
const accountId = await resolveAccountIdForConfigure({
cfg: {},
// oxlint-disable-next-line typescript/no-explicit-any
prompter: prompter as any,
label: "Signal",
shouldPromptAccountIds: true,

View File

@@ -17,7 +17,6 @@ import type { OpenClawPluginCommandDefinition } from "./types.js";
* output chunk, so any module-level const/let would be uninitialized when
* first accessed during plugin registration.
*/
// eslint-disable-next-line no-var -- var avoids TDZ when bundler reorders module bodies in a chunk
var reservedCommands: Set<string> | undefined;
export type CommandRegistrationResult = {