refactor: remove stale extension helpers

This commit is contained in:
Peter Steinberger
2026-05-01 10:51:45 +01:00
parent 4b09c27398
commit 48b39bffbe
4 changed files with 0 additions and 56 deletions

View File

@@ -699,10 +699,6 @@ export async function recoverCurrentMeetTabOnNode(params: {
};
}
export type GoogleMeetCurrentTabRecoveryResult = Awaited<
ReturnType<typeof recoverCurrentMeetTab | typeof recoverCurrentMeetTabOnNode>
>;
export async function launchChromeMeetOnNode(params: {
runtime: PluginRuntime;
config: GoogleMeetConfig;

View File

@@ -537,22 +537,6 @@ export function isSlashCommandsEnabled(config: MattermostSlashCommandConfig): bo
return false;
}
export function collectMattermostSlashCallbackPaths(raw?: Partial<MattermostSlashCommandConfig>) {
const config = resolveSlashCommandConfig(raw);
const paths = new Set<string>([config.callbackPath]);
if (typeof config.callbackUrl === "string" && config.callbackUrl.trim()) {
try {
const pathname = new URL(config.callbackUrl).pathname;
if (pathname) {
paths.add(pathname);
}
} catch {
// Ignore invalid callback URLs and keep the normalized callback path only.
}
}
return [...paths];
}
/**
* Build the callback URL that Mattermost will POST to when a command is invoked.
*/

View File

@@ -1,7 +1,6 @@
import type { IncomingMessage, ServerResponse } from "node:http";
import type { Mock } from "vitest";
import { vi } from "vitest";
import type { ResolvedSynologyChatAccount } from "./types.js";
export type RegisteredRoute = {
path: string;
@@ -175,25 +174,3 @@ vi.mock("./runtime.js", () => ({
})),
setSynologyRuntime: vi.fn(),
}));
export function makeSecurityAccount(
overrides: Partial<ResolvedSynologyChatAccount> = {},
): ResolvedSynologyChatAccount {
return {
accountId: "default",
enabled: true,
token: "t",
incomingUrl: "https://nas/incoming",
nasHost: "h",
webhookPath: "/w",
webhookPathSource: "default",
dangerouslyAllowNameMatching: false,
dangerouslyAllowInheritedWebhookPath: false,
dmPolicy: "allowlist" as const,
allowedUserIds: [],
rateLimitPerMinute: 30,
botName: "Bot",
allowInsecureSsl: false,
...overrides,
};
}

View File

@@ -5,7 +5,6 @@ import {
XAI_RESPONSES_ENDPOINT,
} from "./responses-tool-shared.js";
import {
coerceXaiToolConfig,
resolveNormalizedXaiToolModel,
resolvePositiveIntegerToolConfig,
} from "./tool-config-shared.js";
@@ -14,12 +13,6 @@ import { type XaiWebSearchResponse } from "./web-search-shared.js";
export const XAI_CODE_EXECUTION_ENDPOINT = XAI_RESPONSES_ENDPOINT;
export const XAI_DEFAULT_CODE_EXECUTION_MODEL = "grok-4-1-fast";
export type XaiCodeExecutionConfig = {
apiKey?: unknown;
model?: unknown;
maxTurns?: unknown;
};
export type XaiCodeExecutionResponse = XaiWebSearchResponse & {
output?: Array<{
type?: string;
@@ -33,12 +26,6 @@ export type XaiCodeExecutionResult = {
outputTypes: string[];
};
export function resolveXaiCodeExecutionConfig(
config?: Record<string, unknown>,
): XaiCodeExecutionConfig {
return coerceXaiToolConfig(config) as XaiCodeExecutionConfig;
}
export function resolveXaiCodeExecutionModel(config?: Record<string, unknown>): string {
return resolveNormalizedXaiToolModel({
config,