From 9b231e39ad1a99221022f2b503b1d847121c06a2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 14:15:51 +0100 Subject: [PATCH] refactor: delete unused extension shared shims --- extensions/shared/channel-status-summary.ts | 5 ----- extensions/shared/config-schema-helpers.ts | 17 ----------------- extensions/shared/deferred.ts | 1 - extensions/shared/passive-monitor.ts | 1 - extensions/shared/runtime.ts | 1 - extensions/shared/status-issues.ts | 4 ---- .../shared/windows-cmd-shim-test-fixtures.ts | 1 - 7 files changed, 30 deletions(-) delete mode 100644 extensions/shared/channel-status-summary.ts delete mode 100644 extensions/shared/config-schema-helpers.ts delete mode 100644 extensions/shared/deferred.ts delete mode 100644 extensions/shared/passive-monitor.ts delete mode 100644 extensions/shared/runtime.ts delete mode 100644 extensions/shared/status-issues.ts delete mode 100644 extensions/shared/windows-cmd-shim-test-fixtures.ts diff --git a/extensions/shared/channel-status-summary.ts b/extensions/shared/channel-status-summary.ts deleted file mode 100644 index 1cddcb6fd37..00000000000 --- a/extensions/shared/channel-status-summary.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { - buildPassiveChannelStatusSummary, - buildPassiveProbedChannelStatusSummary, - buildTrafficStatusSummary, -} from "openclaw/plugin-sdk/extension-shared"; diff --git a/extensions/shared/config-schema-helpers.ts b/extensions/shared/config-schema-helpers.ts deleted file mode 100644 index 06a9d2a4f41..00000000000 --- a/extensions/shared/config-schema-helpers.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { requireOpenAllowFrom } from "openclaw/plugin-sdk/channel-config-primitives"; -import type { z } from "openclaw/plugin-sdk/zod"; - -export function requireChannelOpenAllowFrom(params: { - channel: string; - policy?: string; - allowFrom?: Array; - ctx: z.RefinementCtx; -}) { - requireOpenAllowFrom({ - policy: params.policy, - allowFrom: params.allowFrom, - ctx: params.ctx, - path: ["allowFrom"], - message: `channels.${params.channel}.dmPolicy="open" requires channels.${params.channel}.allowFrom to include "*"`, - }); -} diff --git a/extensions/shared/deferred.ts b/extensions/shared/deferred.ts deleted file mode 100644 index 3cd299d98ee..00000000000 --- a/extensions/shared/deferred.ts +++ /dev/null @@ -1 +0,0 @@ -export { createDeferred } from "openclaw/plugin-sdk/extension-shared"; diff --git a/extensions/shared/passive-monitor.ts b/extensions/shared/passive-monitor.ts deleted file mode 100644 index 01487d02812..00000000000 --- a/extensions/shared/passive-monitor.ts +++ /dev/null @@ -1 +0,0 @@ -export { runStoppablePassiveMonitor } from "openclaw/plugin-sdk/extension-shared"; diff --git a/extensions/shared/runtime.ts b/extensions/shared/runtime.ts deleted file mode 100644 index e66828d0289..00000000000 --- a/extensions/shared/runtime.ts +++ /dev/null @@ -1 +0,0 @@ -export { resolveLoggerBackedRuntime } from "openclaw/plugin-sdk/extension-shared"; diff --git a/extensions/shared/status-issues.ts b/extensions/shared/status-issues.ts deleted file mode 100644 index 4b2b6d27df1..00000000000 --- a/extensions/shared/status-issues.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { - coerceStatusIssueAccountId, - readStatusIssueFields, -} from "openclaw/plugin-sdk/extension-shared"; diff --git a/extensions/shared/windows-cmd-shim-test-fixtures.ts b/extensions/shared/windows-cmd-shim-test-fixtures.ts deleted file mode 100644 index 571629c6708..00000000000 --- a/extensions/shared/windows-cmd-shim-test-fixtures.ts +++ /dev/null @@ -1 +0,0 @@ -export { createWindowsCmdShimFixture } from "openclaw/plugin-sdk/test-env";