* refactor: introduce provider plugin registry * refactor: move provider CLI to plugins * docs: add provider plugin implementation notes * refactor: shift provider runtime logic into plugins * refactor: add plugin defaults and summaries * docs: update provider plugin notes * feat(commands): add /commands slash list * Auto-reply: tidy help message * Auto-reply: fix status command lint * Tests: align google shared expectations * Auto-reply: tidy help message * Auto-reply: fix status command lint * refactor: move provider routing into plugins * test: align agent routing expectations * docs: update provider plugin notes * refactor: route replies via provider plugins * docs: note route-reply plugin hooks * refactor: extend provider plugin contract * refactor: derive provider status from plugins * refactor: unify gateway provider control * refactor: use plugin metadata in auto-reply * fix: parenthesize cron target selection * refactor: derive gateway methods from plugins * refactor: generalize provider logout * refactor: route provider logout through plugins * refactor: move WhatsApp web login methods into plugin * refactor: generalize provider log prefixes * refactor: centralize default chat provider * refactor: derive provider lists from registry * refactor: move provider reload noops into plugins * refactor: resolve web login provider via alias * refactor: derive CLI provider options from plugins * refactor: derive prompt provider list from plugins * style: apply biome lint fixes * fix: resolve provider routing edge cases * docs: update provider plugin refactor notes * fix(gateway): harden agent provider routing * refactor: move provider routing into plugins * refactor: move provider CLI to plugins * refactor: derive provider lists from registry * fix: restore slash command parsing * refactor: align provider ids for schema * refactor: unify outbound target resolution * fix: keep outbound labels stable * feat: add msteams to cron surfaces * fix: clean up lint build issues * refactor: localize chat provider alias normalization * refactor: drive gateway provider lists from plugins * docs: update provider plugin notes * style: format message-provider * fix: avoid provider registry init cycles * style: sort message-provider imports * fix: relax provider alias map typing * refactor: move provider routing into plugins * refactor: add plugin pairing/config adapters * refactor: route pairing and provider removal via plugins * refactor: align auto-reply provider typing * test: stabilize telegram media mocks * docs: update provider plugin refactor notes * refactor: pluginize outbound targets * refactor: pluginize provider selection * refactor: generalize text chunk limits * docs: update provider plugin notes * refactor: generalize group session/config * fix: normalize provider id for room detection * fix: avoid provider init in system prompt * style: formatting cleanup * refactor: normalize agent delivery targets * test: update outbound delivery labels * chore: fix lint regressions * refactor: extend provider plugin adapters * refactor: move elevated/block streaming defaults to plugins * refactor: defer outbound send deps to plugins * docs: note plugin-driven streaming/elevated defaults * refactor: centralize webchat provider constant * refactor: add provider setup adapters * refactor: delegate provider add config to plugins * docs: document plugin-driven provider add * refactor: add plugin state/binding metadata * refactor: build agent provider status from plugins * docs: note plugin-driven agent bindings * refactor: centralize internal provider constant usage * fix: normalize WhatsApp targets for groups and E.164 (#631) (thanks @imfing) * refactor: centralize default chat provider * refactor: centralize WhatsApp target normalization * refactor: move provider routing into plugins * refactor: normalize agent delivery targets * chore: fix lint regressions * fix: normalize WhatsApp targets for groups and E.164 (#631) (thanks @imfing) * feat: expand provider plugin adapters * refactor: route auto-reply via provider plugins * fix: align WhatsApp target normalization * fix: normalize WhatsApp targets for groups and E.164 (#631) (thanks @imfing) * refactor: centralize WhatsApp target normalization * feat: add /config chat config updates * docs: add /config get alias * feat(commands): add /commands slash list * refactor: centralize default chat provider * style: apply biome lint fixes * chore: fix lint regressions * fix: clean up whatsapp allowlist typing * style: format config command helpers * refactor: pluginize tool threading context * refactor: normalize session announce targets * docs: note new plugin threading and announce hooks * refactor: pluginize message actions * docs: update provider plugin actions notes * fix: align provider action adapters * refactor: centralize webchat checks * style: format message provider helpers * refactor: move provider onboarding into adapters * docs: note onboarding provider adapters * feat: add msteams onboarding adapter * style: organize onboarding imports * fix: normalize msteams allowFrom types * feat: add plugin text chunk limits * refactor: use plugin chunk limit fallbacks * feat: add provider mention stripping hooks * style: organize provider plugin type imports * refactor: generalize health snapshots * refactor: update macOS health snapshot handling * docs: refresh health snapshot notes * style: format health snapshot updates * refactor: drive security warnings via plugins * docs: note provider security adapter * style: format provider security adapters * refactor: centralize provider account defaults * refactor: type gateway client identity constants * chore: regen gateway protocol swift * fix: degrade health on failed provider probe * refactor: centralize pairing approve hint * docs: add plugin CLI command references * refactor: route auth and tool sends through plugins * docs: expand provider plugin hooks * refactor: document provider docking touchpoints * refactor: normalize internal provider defaults * refactor: streamline outbound delivery wiring * refactor: make provider onboarding plugin-owned * refactor: support provider-owned agent tools * refactor: move telegram draft chunking into telegram module * refactor: infer provider tool sends via extractToolSend * fix: repair plugin onboarding imports * refactor: de-dup outbound target normalization * style: tidy plugin and agent imports * refactor: data-drive provider selection line * fix: satisfy lint after provider plugin rebase * test: deflake gateway-cli coverage * style: format gateway-cli coverage test * refactor(provider-plugins): simplify provider ids * test(pairing-cli): avoid provider-specific ternary * style(macos): swiftformat HealthStore * refactor(sandbox): derive provider tool denylist * fix(sandbox): avoid plugin init in defaults * refactor(provider-plugins): centralize provider aliases * style(test): satisfy biome * refactor(protocol): v3 providers.status maps * refactor(ui): adapt to protocol v3 * refactor(macos): adapt to protocol v3 * test: update providers.status v3 fixtures * refactor(gateway): map provider runtime snapshot * test(gateway): update reload runtime snapshot * refactor(whatsapp): normalize heartbeat provider id * docs(refactor): update provider plugin notes * style: satisfy biome after rebase * fix: describe sandboxed elevated in prompt * feat(gateway): add agent image attachments + live probe * refactor: derive CLI provider options from plugins * fix(gateway): harden agent provider routing * fix(gateway): harden agent provider routing * refactor: align provider ids for schema * fix(protocol): keep agent provider string * fix(gateway): harden agent provider routing * fix(protocol): keep agent provider string * refactor: normalize agent delivery targets * refactor: support provider-owned agent tools * refactor(config): provider-keyed elevated allowFrom * style: satisfy biome * fix(gateway): appease provider narrowing * style: satisfy biome * refactor(reply): move group intro hints into plugin * fix(reply): avoid plugin registry init cycle * refactor(providers): add lightweight provider dock * refactor(gateway): use typed client id in connect * refactor(providers): document docks and avoid init cycles * refactor(providers): make media limit helper generic * fix(providers): break plugin registry import cycles * style: satisfy biome * refactor(status-all): build providers table from plugins * refactor(gateway): delegate web login to provider plugin * refactor(provider): drop web alias * refactor(provider): lazy-load monitors * style: satisfy lint/format * style: format status-all providers table * style: swiftformat gateway discovery model * test: make reload plan plugin-driven * fix: avoid token stringification in status-all * refactor: make provider IDs explicit in status * feat: warn on signal/imessage provider runtime errors * test: cover gateway provider runtime warnings in status * fix: add runtime kind to provider status issues * test: cover health degradation on probe failure * fix: keep routeReply lightweight * style: organize routeReply imports * refactor(web): extract auth-store helpers * refactor(whatsapp): lazy login imports * refactor(outbound): route replies via plugin outbound * docs: update provider plugin notes * style: format provider status issues * fix: make sandbox scope warning wrap-safe * refactor: load outbound adapters from provider plugins * docs: update provider plugin outbound notes * style(macos): fix swiftformat lint * docs: changelog for provider plugins * fix(macos): satisfy swiftformat * fix(macos): open settings via menu action * style: format after rebase * fix(macos): open Settings via menu action --------- Co-authored-by: LK <luke@kyohere.com> Co-authored-by: Luke K (pr-0f3t) <2609441+lc0rp@users.noreply.github.com> Co-authored-by: Xin <xin@imfing.com>
437 lines
13 KiB
TypeScript
437 lines
13 KiB
TypeScript
import { randomUUID } from "node:crypto";
|
|
import fs from "node:fs/promises";
|
|
import { createServer } from "node:net";
|
|
import os from "node:os";
|
|
import path from "node:path";
|
|
|
|
import { describe, expect, it } from "vitest";
|
|
import {
|
|
GATEWAY_CLIENT_MODES,
|
|
GATEWAY_CLIENT_NAMES,
|
|
} from "../utils/message-provider.js";
|
|
|
|
import { GatewayClient } from "./client.js";
|
|
import { startGatewayServer } from "./server.js";
|
|
|
|
type OpenAIResponsesParams = {
|
|
input?: unknown[];
|
|
};
|
|
|
|
type OpenAIResponseStreamEvent =
|
|
| { type: "response.output_item.added"; item: Record<string, unknown> }
|
|
| { type: "response.function_call_arguments.delta"; delta: string }
|
|
| { type: "response.output_item.done"; item: Record<string, unknown> }
|
|
| {
|
|
type: "response.completed";
|
|
response: {
|
|
status: "completed";
|
|
usage: {
|
|
input_tokens: number;
|
|
output_tokens: number;
|
|
total_tokens: number;
|
|
input_tokens_details?: { cached_tokens?: number };
|
|
};
|
|
};
|
|
};
|
|
|
|
function extractLastUserText(input: unknown[]): string {
|
|
for (let i = input.length - 1; i >= 0; i -= 1) {
|
|
const item = input[i] as Record<string, unknown> | undefined;
|
|
if (!item || item.role !== "user") continue;
|
|
const content = item.content;
|
|
if (Array.isArray(content)) {
|
|
const text = content
|
|
.filter(
|
|
(c): c is { type: "input_text"; text: string } =>
|
|
!!c &&
|
|
typeof c === "object" &&
|
|
(c as { type?: unknown }).type === "input_text" &&
|
|
typeof (c as { text?: unknown }).text === "string",
|
|
)
|
|
.map((c) => c.text)
|
|
.join("\n")
|
|
.trim();
|
|
if (text) return text;
|
|
}
|
|
}
|
|
return "";
|
|
}
|
|
|
|
function extractToolOutput(input: unknown[]): string {
|
|
for (const itemRaw of input) {
|
|
const item = itemRaw as Record<string, unknown> | undefined;
|
|
if (!item || item.type !== "function_call_output") continue;
|
|
return typeof item.output === "string" ? item.output : "";
|
|
}
|
|
return "";
|
|
}
|
|
|
|
async function* fakeOpenAIResponsesStream(
|
|
params: OpenAIResponsesParams,
|
|
): AsyncGenerator<OpenAIResponseStreamEvent> {
|
|
const input = Array.isArray(params.input) ? params.input : [];
|
|
const toolOutput = extractToolOutput(input);
|
|
|
|
// Turn 1: return a tool call to `read`.
|
|
if (!toolOutput) {
|
|
const prompt = extractLastUserText(input);
|
|
const quoted = /"([^"]+)"/.exec(prompt)?.[1];
|
|
const toolPath = quoted ?? "package.json";
|
|
const argsJson = JSON.stringify({ path: toolPath });
|
|
|
|
yield {
|
|
type: "response.output_item.added",
|
|
item: {
|
|
type: "function_call",
|
|
id: "fc_test_1",
|
|
call_id: "call_test_1",
|
|
name: "read",
|
|
arguments: "",
|
|
},
|
|
};
|
|
yield { type: "response.function_call_arguments.delta", delta: argsJson };
|
|
yield {
|
|
type: "response.output_item.done",
|
|
item: {
|
|
type: "function_call",
|
|
id: "fc_test_1",
|
|
call_id: "call_test_1",
|
|
name: "read",
|
|
arguments: argsJson,
|
|
},
|
|
};
|
|
yield {
|
|
type: "response.completed",
|
|
response: {
|
|
status: "completed",
|
|
usage: { input_tokens: 10, output_tokens: 10, total_tokens: 20 },
|
|
},
|
|
};
|
|
return;
|
|
}
|
|
|
|
// Turn 2: echo the nonces extracted from the Read tool output.
|
|
const nonceA = /nonceA=([^\s]+)/.exec(toolOutput)?.[1] ?? "";
|
|
const nonceB = /nonceB=([^\s]+)/.exec(toolOutput)?.[1] ?? "";
|
|
const reply = `${nonceA} ${nonceB}`.trim();
|
|
|
|
yield {
|
|
type: "response.output_item.added",
|
|
item: {
|
|
type: "message",
|
|
id: "msg_test_1",
|
|
role: "assistant",
|
|
content: [],
|
|
status: "in_progress",
|
|
},
|
|
};
|
|
yield {
|
|
type: "response.output_item.done",
|
|
item: {
|
|
type: "message",
|
|
id: "msg_test_1",
|
|
role: "assistant",
|
|
status: "completed",
|
|
content: [{ type: "output_text", text: reply, annotations: [] }],
|
|
},
|
|
};
|
|
yield {
|
|
type: "response.completed",
|
|
response: {
|
|
status: "completed",
|
|
usage: { input_tokens: 10, output_tokens: 10, total_tokens: 20 },
|
|
},
|
|
};
|
|
}
|
|
|
|
function decodeBodyText(body: unknown): string {
|
|
if (!body) return "";
|
|
if (typeof body === "string") return body;
|
|
if (body instanceof Uint8Array) return Buffer.from(body).toString("utf8");
|
|
if (body instanceof ArrayBuffer)
|
|
return Buffer.from(new Uint8Array(body)).toString("utf8");
|
|
return "";
|
|
}
|
|
|
|
async function buildOpenAIResponsesSse(
|
|
params: OpenAIResponsesParams,
|
|
): Promise<Response> {
|
|
const events: OpenAIResponseStreamEvent[] = [];
|
|
for await (const event of fakeOpenAIResponsesStream(params)) {
|
|
events.push(event);
|
|
}
|
|
|
|
const sse = `${events.map((e) => `data: ${JSON.stringify(e)}\n\n`).join("")}data: [DONE]\n\n`;
|
|
const encoder = new TextEncoder();
|
|
const body = new ReadableStream<Uint8Array>({
|
|
start(controller) {
|
|
controller.enqueue(encoder.encode(sse));
|
|
controller.close();
|
|
},
|
|
});
|
|
return new Response(body, {
|
|
status: 200,
|
|
headers: { "content-type": "text/event-stream" },
|
|
});
|
|
}
|
|
|
|
async function getFreePort(): Promise<number> {
|
|
return await new Promise((resolve, reject) => {
|
|
const srv = createServer();
|
|
srv.on("error", reject);
|
|
srv.listen(0, "127.0.0.1", () => {
|
|
const addr = srv.address();
|
|
if (!addr || typeof addr === "string") {
|
|
srv.close();
|
|
reject(new Error("failed to acquire free port"));
|
|
return;
|
|
}
|
|
const port = addr.port;
|
|
srv.close((err) => {
|
|
if (err) reject(err);
|
|
else resolve(port);
|
|
});
|
|
});
|
|
});
|
|
}
|
|
|
|
async function isPortFree(port: number): Promise<boolean> {
|
|
if (!Number.isFinite(port) || port <= 0 || port > 65535) return false;
|
|
return await new Promise((resolve) => {
|
|
const srv = createServer();
|
|
srv.once("error", () => resolve(false));
|
|
srv.listen(port, "127.0.0.1", () => {
|
|
srv.close(() => resolve(true));
|
|
});
|
|
});
|
|
}
|
|
|
|
async function getFreeGatewayPort(): Promise<number> {
|
|
// Gateway uses derived ports (bridge/browser/canvas). Avoid flaky collisions by
|
|
// ensuring the common derived offsets are free too.
|
|
for (let attempt = 0; attempt < 25; attempt += 1) {
|
|
const port = await getFreePort();
|
|
const candidates = [port, port + 1, port + 2, port + 4];
|
|
const ok = (
|
|
await Promise.all(candidates.map((candidate) => isPortFree(candidate)))
|
|
).every(Boolean);
|
|
if (ok) return port;
|
|
}
|
|
throw new Error("failed to acquire a free gateway port block");
|
|
}
|
|
|
|
function extractPayloadText(result: unknown): string {
|
|
const record = result as Record<string, unknown>;
|
|
const payloads = Array.isArray(record.payloads) ? record.payloads : [];
|
|
const texts = payloads
|
|
.map((p) =>
|
|
p && typeof p === "object"
|
|
? (p as Record<string, unknown>).text
|
|
: undefined,
|
|
)
|
|
.filter((t): t is string => typeof t === "string" && t.trim().length > 0);
|
|
return texts.join("\n").trim();
|
|
}
|
|
|
|
async function connectClient(params: { url: string; token: string }) {
|
|
return await new Promise<InstanceType<typeof GatewayClient>>(
|
|
(resolve, reject) => {
|
|
let settled = false;
|
|
const stop = (
|
|
err?: Error,
|
|
client?: InstanceType<typeof GatewayClient>,
|
|
) => {
|
|
if (settled) return;
|
|
settled = true;
|
|
clearTimeout(timer);
|
|
if (err) reject(err);
|
|
else resolve(client as InstanceType<typeof GatewayClient>);
|
|
};
|
|
const client = new GatewayClient({
|
|
url: params.url,
|
|
token: params.token,
|
|
clientName: GATEWAY_CLIENT_NAMES.TEST,
|
|
clientDisplayName: "vitest-mock-openai",
|
|
clientVersion: "dev",
|
|
mode: GATEWAY_CLIENT_MODES.TEST,
|
|
onHelloOk: () => stop(undefined, client),
|
|
onConnectError: (err) => stop(err),
|
|
onClose: (code, reason) =>
|
|
stop(new Error(`gateway closed during connect (${code}): ${reason}`)),
|
|
});
|
|
const timer = setTimeout(
|
|
() => stop(new Error("gateway connect timeout")),
|
|
10_000,
|
|
);
|
|
timer.unref();
|
|
client.start();
|
|
},
|
|
);
|
|
}
|
|
|
|
describe("gateway (mock openai): tool calling", () => {
|
|
it("runs a Read tool call end-to-end via gateway agent loop", async () => {
|
|
const prev = {
|
|
home: process.env.HOME,
|
|
configPath: process.env.CLAWDBOT_CONFIG_PATH,
|
|
token: process.env.CLAWDBOT_GATEWAY_TOKEN,
|
|
skipProviders: process.env.CLAWDBOT_SKIP_PROVIDERS,
|
|
skipGmail: process.env.CLAWDBOT_SKIP_GMAIL_WATCHER,
|
|
skipCron: process.env.CLAWDBOT_SKIP_CRON,
|
|
skipCanvas: process.env.CLAWDBOT_SKIP_CANVAS_HOST,
|
|
};
|
|
|
|
const originalFetch = globalThis.fetch;
|
|
const openaiResponsesUrl = "https://api.openai.com/v1/responses";
|
|
const isOpenAIResponsesRequest = (url: string) =>
|
|
url === openaiResponsesUrl ||
|
|
url.startsWith(`${openaiResponsesUrl}/`) ||
|
|
url.startsWith(`${openaiResponsesUrl}?`);
|
|
const fetchImpl = async (
|
|
input: RequestInfo | URL,
|
|
init?: RequestInit,
|
|
): Promise<Response> => {
|
|
const url =
|
|
typeof input === "string"
|
|
? input
|
|
: input instanceof URL
|
|
? input.toString()
|
|
: input.url;
|
|
|
|
if (isOpenAIResponsesRequest(url)) {
|
|
const bodyText =
|
|
typeof (init as { body?: unknown } | undefined)?.body !== "undefined"
|
|
? decodeBodyText((init as { body?: unknown }).body)
|
|
: input instanceof Request
|
|
? await input.clone().text()
|
|
: "";
|
|
|
|
const parsed = bodyText
|
|
? (JSON.parse(bodyText) as Record<string, unknown>)
|
|
: {};
|
|
const inputItems = Array.isArray(parsed.input) ? parsed.input : [];
|
|
return await buildOpenAIResponsesSse({ input: inputItems });
|
|
}
|
|
|
|
if (!originalFetch) {
|
|
throw new Error(`fetch is not available (url=${url})`);
|
|
}
|
|
return await originalFetch(input, init);
|
|
};
|
|
// TypeScript: Bun's fetch typing includes extra properties; keep this test portable.
|
|
(globalThis as unknown as { fetch: unknown }).fetch = fetchImpl;
|
|
|
|
const tempHome = await fs.mkdtemp(
|
|
path.join(os.tmpdir(), "clawdbot-gw-mock-home-"),
|
|
);
|
|
process.env.HOME = tempHome;
|
|
process.env.CLAWDBOT_SKIP_PROVIDERS = "1";
|
|
process.env.CLAWDBOT_SKIP_GMAIL_WATCHER = "1";
|
|
process.env.CLAWDBOT_SKIP_CRON = "1";
|
|
process.env.CLAWDBOT_SKIP_CANVAS_HOST = "1";
|
|
|
|
const token = `test-${randomUUID()}`;
|
|
process.env.CLAWDBOT_GATEWAY_TOKEN = token;
|
|
|
|
const workspaceDir = path.join(tempHome, "clawd");
|
|
await fs.mkdir(workspaceDir, { recursive: true });
|
|
|
|
const nonceA = randomUUID();
|
|
const nonceB = randomUUID();
|
|
const toolProbePath = path.join(
|
|
workspaceDir,
|
|
`.clawdbot-tool-probe.${nonceA}.txt`,
|
|
);
|
|
await fs.writeFile(toolProbePath, `nonceA=${nonceA}\nnonceB=${nonceB}\n`);
|
|
|
|
const configDir = path.join(tempHome, ".clawdbot");
|
|
await fs.mkdir(configDir, { recursive: true });
|
|
const configPath = path.join(configDir, "clawdbot.json");
|
|
|
|
const cfg = {
|
|
agents: { defaults: { workspace: workspaceDir } },
|
|
models: {
|
|
mode: "replace",
|
|
providers: {
|
|
openai: {
|
|
baseUrl: "https://api.openai.com/v1",
|
|
apiKey: "test",
|
|
api: "openai-responses",
|
|
models: [
|
|
{
|
|
id: "gpt-5.2",
|
|
name: "gpt-5.2",
|
|
api: "openai-responses",
|
|
reasoning: false,
|
|
input: ["text"],
|
|
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
contextWindow: 128_000,
|
|
maxTokens: 4096,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
gateway: { auth: { token } },
|
|
};
|
|
|
|
await fs.writeFile(configPath, `${JSON.stringify(cfg, null, 2)}\n`);
|
|
process.env.CLAWDBOT_CONFIG_PATH = configPath;
|
|
|
|
const port = await getFreeGatewayPort();
|
|
const server = await startGatewayServer(port, {
|
|
bind: "loopback",
|
|
auth: { mode: "token", token },
|
|
controlUiEnabled: false,
|
|
});
|
|
|
|
const client = await connectClient({
|
|
url: `ws://127.0.0.1:${port}`,
|
|
token,
|
|
});
|
|
|
|
try {
|
|
const sessionKey = "agent:dev:mock-openai";
|
|
|
|
await client.request<Record<string, unknown>>("sessions.patch", {
|
|
key: sessionKey,
|
|
model: "openai/gpt-5.2",
|
|
});
|
|
|
|
const runId = randomUUID();
|
|
const payload = await client.request<{
|
|
status?: unknown;
|
|
result?: unknown;
|
|
}>(
|
|
"agent",
|
|
{
|
|
sessionKey,
|
|
idempotencyKey: `idem-${runId}`,
|
|
message:
|
|
`Call the read tool on "${toolProbePath}". ` +
|
|
`Then reply with exactly: ${nonceA} ${nonceB}. No extra text.`,
|
|
deliver: false,
|
|
},
|
|
{ expectFinal: true },
|
|
);
|
|
|
|
expect(payload?.status).toBe("ok");
|
|
const text = extractPayloadText(payload?.result);
|
|
expect(text).toContain(nonceA);
|
|
expect(text).toContain(nonceB);
|
|
} finally {
|
|
client.stop();
|
|
await server.close({ reason: "mock openai test complete" });
|
|
await fs.rm(tempHome, { recursive: true, force: true });
|
|
(globalThis as unknown as { fetch: unknown }).fetch = originalFetch;
|
|
process.env.HOME = prev.home;
|
|
process.env.CLAWDBOT_CONFIG_PATH = prev.configPath;
|
|
process.env.CLAWDBOT_GATEWAY_TOKEN = prev.token;
|
|
process.env.CLAWDBOT_SKIP_PROVIDERS = prev.skipProviders;
|
|
process.env.CLAWDBOT_SKIP_GMAIL_WATCHER = prev.skipGmail;
|
|
process.env.CLAWDBOT_SKIP_CRON = prev.skipCron;
|
|
process.env.CLAWDBOT_SKIP_CANVAS_HOST = prev.skipCanvas;
|
|
}
|
|
}, 30_000);
|
|
});
|