mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
docs: document small extension sources
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Active Memory tests cover config plugin behavior.
|
||||
import fs from "node:fs";
|
||||
import {
|
||||
type JsonSchemaObject,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Active Memory tests cover doctor contract api plugin behavior.
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Active Memory tests cover index plugin behavior.
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Admin Http Rpc tests cover index plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import plugin from "./index.js";
|
||||
import manifest from "./openclaw.plugin.json" with { type: "json" };
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Admin Http Rpc tests cover handler plugin behavior.
|
||||
import { Readable } from "node:stream";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { handleAdminHttpRpcRequest } from "./handler.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Alibaba tests cover video generation provider plugin behavior.
|
||||
import {
|
||||
getProviderHttpMocks,
|
||||
installProviderHttpMockCleanup,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock Mantle tests cover discovery plugin behavior.
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
const {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock Mantle tests cover index plugin behavior.
|
||||
import { registerSingleProviderPlugin } from "openclaw/plugin-sdk/plugin-test-runtime";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import bedrockMantlePlugin from "./index.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock Mantle tests cover mantle anthropic plugin behavior.
|
||||
import type { Model } from "openclaw/plugin-sdk/llm";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock tests cover config compat plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { migrateAmazonBedrockLegacyConfig } from "./config-compat.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock tests cover discovery plugin behavior.
|
||||
import type { BedrockClient } from "@aws-sdk/client-bedrock";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock tests cover embedding provider plugin behavior.
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { testing, hasAwsCredentials } from "./embedding-provider.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock tests cover index plugin behavior.
|
||||
import { readFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock tests cover lazy import plugin behavior.
|
||||
import { registerSingleProviderPlugin } from "openclaw/plugin-sdk/plugin-test-runtime";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock tests cover memory embedding adapter plugin behavior.
|
||||
import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
const hasAwsCredentialsMock = vi.hoisted(() => vi.fn());
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock tests cover provider policy api plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveThinkingProfile } from "./provider-policy-api.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Amazon Bedrock tests cover stream plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { testing } from "./stream.runtime.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic Vertex tests cover api plugin behavior.
|
||||
import { createAssistantMessageEventStream, type Model } from "openclaw/plugin-sdk/llm";
|
||||
import { beforeAll, describe, expect, it, vi } from "vitest";
|
||||
import type { AnthropicVertexStreamDeps } from "./stream-runtime.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic Vertex tests cover index plugin behavior.
|
||||
import { registerSingleProviderPlugin } from "openclaw/plugin-sdk/plugin-test-runtime";
|
||||
import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic Vertex tests cover provider discovery.import guard plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe("anthropic-vertex provider discovery entry", () => {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic Vertex tests cover provider policy api plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveThinkingProfile } from "./provider-policy-api.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic Vertex tests cover region.adc plugin behavior.
|
||||
import { platform } from "node:os";
|
||||
import path from "node:path";
|
||||
import { afterAll, afterEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic Vertex tests cover region plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveAnthropicVertexRegion, resolveAnthropicVertexRegionFromBaseUrl } from "./api.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic Vertex tests cover stream runtime plugin behavior.
|
||||
import { createAssistantMessageEventStream, type Model } from "openclaw/plugin-sdk/llm";
|
||||
import { beforeAll, describe, expect, it, vi } from "vitest";
|
||||
import type { AnthropicVertexStreamDeps } from "./stream-runtime.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic tests cover cli migration plugin behavior.
|
||||
import type {
|
||||
ProviderAuthContext,
|
||||
ProviderAuthMethodNonInteractiveContext,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic tests cover cli shared plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { buildAnthropicCliBackend } from "./cli-backend.js";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic tests cover index plugin behavior.
|
||||
import type {
|
||||
ProviderResolveDynamicModelContext,
|
||||
ProviderRuntimeModel,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic tests cover provider policy api plugin behavior.
|
||||
import type { ModelDefinitionConfig } from "openclaw/plugin-sdk/provider-model-types";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic tests cover provider runtime.contract plugin behavior.
|
||||
import { describeAnthropicProviderRuntimeContract } from "openclaw/plugin-sdk/provider-test-contracts";
|
||||
|
||||
describeAnthropicProviderRuntimeContract(() => import("./index.js"));
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Anthropic tests cover stream wrappers plugin behavior.
|
||||
import type { StreamFn } from "openclaw/plugin-sdk/agent-core";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Arcee tests cover index plugin behavior.
|
||||
import {
|
||||
registerSingleProviderPlugin,
|
||||
resolveProviderPluginChoice,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Azure Speech tests cover azure speech plugin behavior.
|
||||
import {
|
||||
registerProviderPlugin,
|
||||
requireRegisteredProvider,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Azure Speech tests cover speech provider plugin behavior.
|
||||
import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
const { azureSpeechTTSMock, listAzureSpeechVoicesMock } = vi.hoisted(() => ({
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Azure Speech tests cover tts plugin behavior.
|
||||
import { installPinnedHostnameTestHooks } from "openclaw/plugin-sdk/test-env";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Bonjour tests cover index plugin behavior.
|
||||
import { createTestPluginApi } from "openclaw/plugin-sdk/plugin-test-api";
|
||||
import { afterAll, describe, expect, it, vi } from "vitest";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Bonjour tests cover manifest plugin behavior.
|
||||
import fs from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Bonjour tests cover advertiser plugin behavior.
|
||||
import type { ChildProcess } from "node:child_process";
|
||||
import fs from "node:fs";
|
||||
import { createRequire } from "node:module";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Bonjour tests cover ciao plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const { classifyCiaoUnhandledRejection, ignoreCiaoUnhandledRejection } = await import("./ciao.js");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Bonjour tests cover errors plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { formatBonjourError } from "./errors.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Brave tests cover brave web search provider.merge plugin behavior.
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { createBraveWebSearchProvider } from "./brave-web-search-provider.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Brave tests cover brave web search provider plugin behavior.
|
||||
import fs from "node:fs";
|
||||
import { validateJsonSchemaValue } from "openclaw/plugin-sdk/json-schema-runtime";
|
||||
import { afterAll, afterEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Byteplus tests cover index plugin behavior.
|
||||
import { readFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
import { registerSingleProviderPlugin } from "openclaw/plugin-sdk/plugin-test-runtime";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Byteplus tests cover live plugin behavior.
|
||||
import { completeSimple, type Model } from "openclaw/plugin-sdk/llm";
|
||||
import {
|
||||
createSingleUserPromptMessage,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Byteplus tests cover video generation provider plugin behavior.
|
||||
import {
|
||||
getProviderHttpMocks,
|
||||
installProviderHttpMockCleanup,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover index plugin behavior.
|
||||
import type { AnyAgentTool, OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";
|
||||
import { createTestPluginApi } from "openclaw/plugin-sdk/plugin-test-api";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover bundle a2ui plugin behavior.
|
||||
import path from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover copy a2ui plugin behavior.
|
||||
import { createHash } from "node:crypto";
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover pnpm runner plugin behavior.
|
||||
import { chmodSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover cli helpers plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
canvasSnapshotTempPath,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover cli plugin behavior.
|
||||
import { Command } from "commander";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { registerNodesCanvasCommands, type CanvasCliDependencies } from "./cli.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover config migration plugin behavior.
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { migrateLegacyCanvasHostConfig } from "./config-migration.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover config plugin behavior.
|
||||
import { afterEach, describe, expect, it } from "vitest";
|
||||
import {
|
||||
isCanvasHostEnabled,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover documents plugin behavior.
|
||||
import { mkdtemp, mkdir, writeFile, readFile } from "node:fs/promises";
|
||||
import { tmpdir } from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover host url plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveCanvasHostUrl } from "./host-url.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover file resolver plugin behavior.
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { resolvePreferredOpenClawTmpDir, withTempWorkspace } from "openclaw/plugin-sdk/temp-path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover server.state dir plugin behavior.
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { defaultRuntime } from "openclaw/plugin-sdk/runtime-env";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover server plugin behavior.
|
||||
import fs from "node:fs/promises";
|
||||
import type { IncomingMessage } from "node:http";
|
||||
import os from "node:os";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Canvas tests cover tool plugin behavior.
|
||||
import { mkdtemp, mkdir, rm, symlink, writeFile } from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Chutes tests cover implicit provider plugin behavior.
|
||||
import { registerSingleProviderPlugin } from "openclaw/plugin-sdk/plugin-test-runtime";
|
||||
import { resolveOAuthApiKeyMarker } from "openclaw/plugin-sdk/provider-auth";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Chutes tests cover models plugin behavior.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
buildChutesModelDefinition,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Chutes tests cover oauth plugin behavior.
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { loginChutes } from "./oauth.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Clickclack tests cover accounts plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
listClickClackAccountIds,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Clickclack tests cover gateway plugin behavior.
|
||||
import { EventEmitter } from "node:events";
|
||||
import type { ChannelGatewayContext } from "openclaw/plugin-sdk/channel-contract";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Clickclack tests cover inbound plugin behavior.
|
||||
import { createPluginRuntimeMock } from "openclaw/plugin-sdk/channel-test-helpers";
|
||||
import type { PluginRuntime } from "openclaw/plugin-sdk/core";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Clickclack tests cover target plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
buildClickClackTarget,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Cloudflare Ai Gateway tests cover index plugin behavior.
|
||||
import type { StreamFn } from "openclaw/plugin-sdk/agent-core";
|
||||
import { capturePluginRegistration } from "openclaw/plugin-sdk/plugin-test-runtime";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Cloudflare Ai Gateway tests cover provider discovery.contract plugin behavior.
|
||||
import { describeCloudflareAiGatewayProviderDiscoveryContract } from "openclaw/plugin-sdk/provider-test-contracts";
|
||||
|
||||
describeCloudflareAiGatewayProviderDiscoveryContract(() => import("./index.js"));
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Cloudflare Ai Gateway tests cover stream wrappers plugin behavior.
|
||||
import type { StreamFn } from "openclaw/plugin-sdk/agent-core";
|
||||
import { afterAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Codex Supervisor tests cover index plugin behavior.
|
||||
import { createCapturedPluginRegistration } from "openclaw/plugin-sdk/plugin-test-runtime";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import entry from "./index.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Codex Supervisor tests cover mcp tools plugin behavior.
|
||||
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Codex Supervisor tests cover plugin tools plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { createCodexSupervisorTools } from "./plugin-tools.js";
|
||||
import type { CodexSupervisor } from "./supervisor.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Codex Supervisor tests cover supervisor plugin behavior.
|
||||
import * as fs from "node:fs/promises";
|
||||
import * as os from "node:os";
|
||||
import * as path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy tests cover comfy plugin behavior.
|
||||
import { resolveDefaultAgentDir } from "openclaw/plugin-sdk/agent-runtime";
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
||||
import { createTestPluginApi } from "openclaw/plugin-sdk/plugin-test-api";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy tests cover image generation provider plugin behavior.
|
||||
import { MAX_TIMER_TIMEOUT_MS } from "openclaw/plugin-sdk/number-runtime";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy provider module implements model/runtime integration.
|
||||
import type {
|
||||
GeneratedImageAsset,
|
||||
ImageGenerationProvider,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy tests cover index plugin behavior.
|
||||
import fs from "node:fs";
|
||||
import {
|
||||
registerSingleProviderPlugin,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy plugin entrypoint registers its OpenClaw integration.
|
||||
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
||||
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
||||
import { buildComfyImageGenerationProvider } from "./image-generation-provider.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy tests cover music generation provider plugin behavior.
|
||||
import { expectExplicitMusicGenerationCapabilities } from "openclaw/plugin-sdk/provider-test-contracts";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import { buildComfyMusicGenerationProvider } from "./music-generation-provider.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy provider module implements model/runtime integration.
|
||||
import type {
|
||||
GeneratedMusicAsset,
|
||||
MusicGenerationProvider,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy helper module supports test helpers behavior.
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
||||
import * as providerAuth from "openclaw/plugin-sdk/provider-auth-runtime";
|
||||
import { expect, vi } from "vitest";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy tests cover video generation provider plugin behavior.
|
||||
import { expectExplicitVideoGenerationCapabilities } from "openclaw/plugin-sdk/provider-test-contracts";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy provider module implements model/runtime integration.
|
||||
import type {
|
||||
GeneratedVideoAsset,
|
||||
VideoGenerationProvider,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Comfy plugin module implements workflow runtime behavior.
|
||||
import fs from "node:fs/promises";
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
||||
import { canResolveEnvSecretRefInReadOnlyPath } from "openclaw/plugin-sdk/extension-shared";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Copilot Proxy plugin entrypoint registers its OpenClaw integration.
|
||||
import { normalizeStringEntries, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
||||
import {
|
||||
definePluginEntry,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Copilot Proxy API module exposes the plugin public contract.
|
||||
export { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
||||
export type {
|
||||
OpenClawPluginApi,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepgram tests cover audio plugin behavior.
|
||||
import {
|
||||
runRealtimeSttLiveTest,
|
||||
synthesizeElevenLabsLiveSpeech,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepgram tests cover audio plugin behavior.
|
||||
import {
|
||||
createAuthCaptureJsonFetch,
|
||||
createRequestCaptureJsonFetch,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepgram plugin module implements audio behavior.
|
||||
import type {
|
||||
AudioTranscriptionRequest,
|
||||
AudioTranscriptionResult,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepgram plugin entrypoint registers its OpenClaw integration.
|
||||
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
||||
import { deepgramMediaUnderstandingProvider } from "./media-understanding-provider.js";
|
||||
import { buildDeepgramRealtimeTranscriptionProvider } from "./realtime-transcription-provider.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepgram provider module implements model/runtime integration.
|
||||
import type { MediaUnderstandingProvider } from "openclaw/plugin-sdk/media-understanding";
|
||||
import { transcribeDeepgramAudio } from "./audio.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepgram tests cover realtime transcription provider plugin behavior.
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepgram provider module implements model/runtime integration.
|
||||
import {
|
||||
createRealtimeTranscriptionWebSocketSession,
|
||||
type RealtimeTranscriptionProviderConfig,
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
// Deepgram API module exposes the plugin public contract.
|
||||
export { deepgramMediaUnderstandingProvider } from "./media-understanding-provider.js";
|
||||
export { buildDeepgramRealtimeTranscriptionProvider } from "./realtime-transcription-provider.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepinfra API module exposes the plugin public contract.
|
||||
export { buildDeepInfraProvider, buildStaticDeepInfraProvider } from "./provider-catalog.js";
|
||||
export { applyDeepInfraConfig } from "./onboard.js";
|
||||
export { DEEPINFRA_DEFAULT_MODEL_REF } from "./provider-models.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepinfra tests cover cache wrapper plugin behavior.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { createDeepInfraAnthropicCacheWrapper } from "./cache-wrapper.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepinfra plugin module implements cache wrapper behavior.
|
||||
import {
|
||||
applyAnthropicEphemeralCacheControlMarkers,
|
||||
streamWithPayloadPatch,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepinfra provider module implements model/runtime integration.
|
||||
import {
|
||||
createRemoteEmbeddingProvider,
|
||||
resolveRemoteEmbeddingClient,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepinfra tests cover image generation provider plugin behavior.
|
||||
import { afterAll, afterEach, describe, expect, it, vi } from "vitest";
|
||||
import { buildDeepInfraImageGenerationProvider } from "./image-generation-provider.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepinfra provider module implements model/runtime integration.
|
||||
import {
|
||||
createOpenAiCompatibleImageGenerationProvider,
|
||||
imageSourceUploadFileName,
|
||||
@@ -21,9 +22,10 @@ const MAX_DEEPINFRA_INPUT_IMAGES = 1;
|
||||
export function buildDeepInfraImageGenerationProvider(options?: {
|
||||
imageGenModels?: readonly DeepInfraSurfaceModel[];
|
||||
}): ImageGenerationProvider {
|
||||
const ids = options?.imageGenModels && options.imageGenModels.length > 0
|
||||
? options.imageGenModels.map((model) => model.id)
|
||||
: [...DEEPINFRA_IMAGE_FALLBACK_MODELS];
|
||||
const ids =
|
||||
options?.imageGenModels && options.imageGenModels.length > 0
|
||||
? options.imageGenModels.map((model) => model.id)
|
||||
: [...DEEPINFRA_IMAGE_FALLBACK_MODELS];
|
||||
const defaultModel = ids[0] ?? DEEPINFRA_IMAGE_FALLBACK_MODELS[0];
|
||||
return createOpenAiCompatibleImageGenerationProvider({
|
||||
id: "deepinfra",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Deepinfra tests cover index plugin behavior.
|
||||
import {
|
||||
createCapturedPluginRegistration,
|
||||
registerSingleProviderPlugin,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user