mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
Plugins/acpx: migrate to scoped plugin-sdk imports
This commit is contained in:
BIN
extensions/acpx/.DS_Store
vendored
Normal file
BIN
extensions/acpx/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/core";
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/acpx";
|
||||||
import { createAcpxPluginConfigSchema } from "./src/config.js";
|
import { createAcpxPluginConfigSchema } from "./src/config.js";
|
||||||
import { createAcpxRuntimeService } from "./src/service.js";
|
import { createAcpxRuntimeService } from "./src/service.js";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import type { OpenClawPluginConfigSchema } from "openclaw/plugin-sdk/compat";
|
import type { OpenClawPluginConfigSchema } from "openclaw/plugin-sdk/acpx";
|
||||||
|
|
||||||
export const ACPX_PERMISSION_MODES = ["approve-all", "approve-reads", "deny-all"] as const;
|
export const ACPX_PERMISSION_MODES = ["approve-all", "approve-reads", "deny-all"] as const;
|
||||||
export type AcpxPermissionMode = (typeof ACPX_PERMISSION_MODES)[number];
|
export type AcpxPermissionMode = (typeof ACPX_PERMISSION_MODES)[number];
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type { PluginLogger } from "openclaw/plugin-sdk/compat";
|
import type { PluginLogger } from "openclaw/plugin-sdk/acpx";
|
||||||
import { ACPX_PINNED_VERSION, ACPX_PLUGIN_ROOT, buildAcpxLocalInstallCommand } from "./config.js";
|
import { ACPX_PINNED_VERSION, ACPX_PLUGIN_ROOT, buildAcpxLocalInstallCommand } from "./config.js";
|
||||||
import {
|
import {
|
||||||
resolveSpawnFailure,
|
resolveSpawnFailure,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { AcpRuntimeEvent, AcpSessionUpdateTag } from "openclaw/plugin-sdk/compat";
|
import type { AcpRuntimeEvent, AcpSessionUpdateTag } from "openclaw/plugin-sdk/acpx";
|
||||||
import {
|
import {
|
||||||
asOptionalBoolean,
|
asOptionalBoolean,
|
||||||
asOptionalString,
|
asOptionalString,
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import type {
|
|||||||
WindowsSpawnProgram,
|
WindowsSpawnProgram,
|
||||||
WindowsSpawnProgramCandidate,
|
WindowsSpawnProgramCandidate,
|
||||||
WindowsSpawnResolution,
|
WindowsSpawnResolution,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/acpx";
|
||||||
import {
|
import {
|
||||||
applyWindowsSpawnProgramPolicy,
|
applyWindowsSpawnProgramPolicy,
|
||||||
materializeWindowsSpawnProgram,
|
materializeWindowsSpawnProgram,
|
||||||
resolveWindowsSpawnProgramCandidate,
|
resolveWindowsSpawnProgramCandidate,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/acpx";
|
||||||
|
|
||||||
export type SpawnExit = {
|
export type SpawnExit = {
|
||||||
code: number | null;
|
code: number | null;
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import type {
|
|||||||
AcpRuntimeStatus,
|
AcpRuntimeStatus,
|
||||||
AcpRuntimeTurnInput,
|
AcpRuntimeTurnInput,
|
||||||
PluginLogger,
|
PluginLogger,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/acpx";
|
||||||
import { AcpRuntimeError } from "openclaw/plugin-sdk/compat";
|
import { AcpRuntimeError } from "openclaw/plugin-sdk/acpx";
|
||||||
import { type ResolvedAcpxPluginConfig } from "./config.js";
|
import { type ResolvedAcpxPluginConfig } from "./config.js";
|
||||||
import { checkAcpxVersion } from "./ensure.js";
|
import { checkAcpxVersion } from "./ensure.js";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { AcpRuntime, OpenClawPluginServiceContext } from "openclaw/plugin-sdk/compat";
|
import type { AcpRuntime, OpenClawPluginServiceContext } from "openclaw/plugin-sdk/acpx";
|
||||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
import { AcpRuntimeError } from "../../../src/acp/runtime/errors.js";
|
import { AcpRuntimeError } from "../../../src/acp/runtime/errors.js";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import type {
|
|||||||
OpenClawPluginService,
|
OpenClawPluginService,
|
||||||
OpenClawPluginServiceContext,
|
OpenClawPluginServiceContext,
|
||||||
PluginLogger,
|
PluginLogger,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/acpx";
|
||||||
import { registerAcpRuntimeBackend, unregisterAcpRuntimeBackend } from "openclaw/plugin-sdk/compat";
|
import { registerAcpRuntimeBackend, unregisterAcpRuntimeBackend } from "openclaw/plugin-sdk/acpx";
|
||||||
import { resolveAcpxPluginConfig, type ResolvedAcpxPluginConfig } from "./config.js";
|
import { resolveAcpxPluginConfig, type ResolvedAcpxPluginConfig } from "./config.js";
|
||||||
import { ensureAcpx } from "./ensure.js";
|
import { ensureAcpx } from "./ensure.js";
|
||||||
import { ACPX_BACKEND_ID, AcpxRuntime } from "./runtime.js";
|
import { ACPX_BACKEND_ID, AcpxRuntime } from "./runtime.js";
|
||||||
|
|||||||
Reference in New Issue
Block a user