docs: clarify sandbox bind mounts (#790)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { NativeCommandsSetting } from "./types.js";
|
||||
import { normalizeProviderId } from "../providers/registry.js";
|
||||
import type { ProviderId } from "../providers/plugins/types.js";
|
||||
import { normalizeProviderId } from "../providers/registry.js";
|
||||
import type { NativeCommandsSetting } from "./types.js";
|
||||
|
||||
function resolveAutoDefault(providerId?: ProviderId): boolean {
|
||||
const id = normalizeProviderId(providerId);
|
||||
|
||||
@@ -14,8 +14,11 @@ import {
|
||||
type User,
|
||||
} from "@buape/carbon";
|
||||
import { GatewayIntents, GatewayPlugin } from "@buape/carbon/gateway";
|
||||
import type { APIAttachment } from "discord-api-types/v10";
|
||||
import { ApplicationCommandOptionType, Routes } from "discord-api-types/v10";
|
||||
import {
|
||||
type APIAttachment,
|
||||
ApplicationCommandOptionType,
|
||||
Routes,
|
||||
} from "discord-api-types/v10";
|
||||
|
||||
import {
|
||||
resolveAckReaction,
|
||||
@@ -49,12 +52,12 @@ import {
|
||||
} from "../auto-reply/reply/reply-dispatcher.js";
|
||||
import { getReplyFromConfig } from "../auto-reply/reply.js";
|
||||
import type { ReplyPayload } from "../auto-reply/types.js";
|
||||
import type { ClawdbotConfig, ReplyToMode } from "../config/config.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import {
|
||||
isNativeCommandsExplicitlyDisabled,
|
||||
resolveNativeCommandsEnabled,
|
||||
} from "../config/commands.js";
|
||||
import type { ClawdbotConfig, ReplyToMode } from "../config/config.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import { resolveStorePath, updateLastRoute } from "../config/sessions.js";
|
||||
import { danger, logVerbose, shouldLogVerbose } from "../globals.js";
|
||||
import { formatDurationSeconds } from "../infra/format-duration.js";
|
||||
|
||||
@@ -109,7 +109,17 @@ describe("voice-call plugin", () => {
|
||||
|
||||
it("tool get_status returns json payload", async () => {
|
||||
const { tools } = setup({ provider: "mock" });
|
||||
const tool = tools[0] as { execute: (id: string, params: unknown) => any };
|
||||
type VoiceTool = {
|
||||
execute: (
|
||||
id: string,
|
||||
params: unknown,
|
||||
) =>
|
||||
| Promise<{ details: Record<string, unknown> }>
|
||||
| {
|
||||
details: Record<string, unknown>;
|
||||
};
|
||||
};
|
||||
const tool = tools[0] as VoiceTool;
|
||||
const result = await tool.execute("id", {
|
||||
action: "get_status",
|
||||
callId: "call-1",
|
||||
@@ -119,7 +129,17 @@ describe("voice-call plugin", () => {
|
||||
|
||||
it("legacy tool status without sid returns error payload", async () => {
|
||||
const { tools } = setup({ provider: "mock" });
|
||||
const tool = tools[0] as { execute: (id: string, params: unknown) => any };
|
||||
type VoiceTool = {
|
||||
execute: (
|
||||
id: string,
|
||||
params: unknown,
|
||||
) =>
|
||||
| Promise<{ details: Record<string, unknown> }>
|
||||
| {
|
||||
details: Record<string, unknown>;
|
||||
};
|
||||
};
|
||||
const tool = tools[0] as VoiceTool;
|
||||
const result = await tool.execute("id", { mode: "status" });
|
||||
expect(String(result.details.error)).toContain("sid required");
|
||||
});
|
||||
|
||||
@@ -38,13 +38,13 @@ import { createReplyDispatcherWithTyping } from "../auto-reply/reply/reply-dispa
|
||||
import { getReplyFromConfig } from "../auto-reply/reply.js";
|
||||
import { isSilentReplyText, SILENT_REPLY_TOKEN } from "../auto-reply/tokens.js";
|
||||
import type { ReplyPayload } from "../auto-reply/types.js";
|
||||
import { resolveNativeCommandsEnabled } from "../config/commands.js";
|
||||
import type {
|
||||
ClawdbotConfig,
|
||||
SlackReactionNotificationMode,
|
||||
SlackSlashCommandConfig,
|
||||
} from "../config/config.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import { resolveNativeCommandsEnabled } from "../config/commands.js";
|
||||
import {
|
||||
resolveSessionKey,
|
||||
resolveStorePath,
|
||||
|
||||
@@ -33,12 +33,12 @@ import {
|
||||
import { dispatchReplyWithBufferedBlockDispatcher } from "../auto-reply/reply/provider-dispatcher.js";
|
||||
import { getReplyFromConfig } from "../auto-reply/reply.js";
|
||||
import type { ReplyPayload } from "../auto-reply/types.js";
|
||||
import type { ClawdbotConfig, ReplyToMode } from "../config/config.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import {
|
||||
isNativeCommandsExplicitlyDisabled,
|
||||
resolveNativeCommandsEnabled,
|
||||
} from "../config/commands.js";
|
||||
import type { ClawdbotConfig, ReplyToMode } from "../config/config.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import {
|
||||
resolveProviderGroupPolicy,
|
||||
resolveProviderGroupRequireMention,
|
||||
|
||||
Reference in New Issue
Block a user