mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:50:45 +00:00
refactor(plugin-sdk): retire reserved helper exports
This commit is contained in:
@@ -9,9 +9,7 @@ const COMPAT_CONFIG_API_FILES = new Set([
|
||||
"src/config/io.ts",
|
||||
"src/config/mutate.ts",
|
||||
"src/memory-host-sdk/runtime-core.ts",
|
||||
"src/plugin-sdk/browser-config-runtime.ts",
|
||||
"src/plugin-sdk/config-runtime.ts",
|
||||
"src/plugin-sdk/memory-core.ts",
|
||||
"src/plugin-sdk/memory-core-host-runtime-core.ts",
|
||||
"src/plugins/compat/registry.ts",
|
||||
"src/plugins/contracts/config-boundary-guard.test.ts",
|
||||
@@ -224,7 +222,7 @@ export function collectDeprecatedInternalConfigApiViolations({
|
||||
const guards = [
|
||||
{
|
||||
pattern:
|
||||
/\b(?:import|export)\s+(?:type\s+)?\{[^}]*\bloadConfig\b[^}]*\}\s+from\s+["']openclaw\/plugin-sdk\/(?:browser-config-runtime|config-runtime|memory-core-host-runtime-core)["']/,
|
||||
/\b(?:import|export)\s+(?:type\s+)?\{[^}]*\bloadConfig\b[^}]*\}\s+from\s+["']openclaw\/plugin-sdk\/(?:config-runtime|memory-core-host-runtime-core)["']/,
|
||||
replacement:
|
||||
"use getRuntimeConfig(), runtime.config.current(), or pass the already loaded config",
|
||||
},
|
||||
@@ -280,13 +278,13 @@ export function collectDeprecatedInternalConfigApiViolations({
|
||||
const guards = [
|
||||
{
|
||||
pattern:
|
||||
/\b(?:import|export)\s+(?:type\s+)?\{[\s\S]*?\b(?:loadConfig|writeConfigFile)\b[\s\S]*?\}\s+from\s+["']openclaw\/plugin-sdk\/(?:browser-config-runtime|config-runtime|memory-core-host-runtime-core|memory-core)["']/,
|
||||
/\b(?:import|export)\s+(?:type\s+)?\{[\s\S]*?\b(?:loadConfig|writeConfigFile)\b[\s\S]*?\}\s+from\s+["']openclaw\/plugin-sdk\/(?:config-runtime|memory-core-host-runtime-core)["']/,
|
||||
replacement:
|
||||
"use getRuntimeConfig(), runtime.config.current(), or mutation helpers with afterWrite",
|
||||
},
|
||||
{
|
||||
pattern:
|
||||
/ReturnType<typeof import\(["']openclaw\/plugin-sdk\/(?:browser-config-runtime|config-runtime|memory-core-host-runtime-core|memory-core)["']\)\.(?:loadConfig|writeConfigFile)>/,
|
||||
/ReturnType<typeof import\(["']openclaw\/plugin-sdk\/(?:config-runtime|memory-core-host-runtime-core)["']\)\.(?:loadConfig|writeConfigFile)>/,
|
||||
replacement: "use OpenClawConfig or the explicit mutation helper type",
|
||||
},
|
||||
];
|
||||
|
||||
@@ -25,18 +25,6 @@ export const EXTENSION_PACKAGE_BOUNDARY_BASE_PATHS = {
|
||||
"openclaw/plugin-sdk/browser-maintenance": [
|
||||
"../packages/plugin-sdk/dist/extensions/browser/browser-maintenance.d.ts",
|
||||
],
|
||||
"openclaw/plugin-sdk/browser-config-runtime": [
|
||||
"../dist/plugin-sdk/src/plugin-sdk/browser-config-runtime.d.ts",
|
||||
],
|
||||
"openclaw/plugin-sdk/browser-node-runtime": [
|
||||
"../dist/plugin-sdk/src/plugin-sdk/browser-node-runtime.d.ts",
|
||||
],
|
||||
"openclaw/plugin-sdk/browser-setup-tools": [
|
||||
"../dist/plugin-sdk/src/plugin-sdk/browser-setup-tools.d.ts",
|
||||
],
|
||||
"openclaw/plugin-sdk/browser-security-runtime": [
|
||||
"../dist/plugin-sdk/src/plugin-sdk/browser-security-runtime.d.ts",
|
||||
],
|
||||
"openclaw/plugin-sdk/channel-secret-basic-runtime": [
|
||||
"../packages/plugin-sdk/dist/src/plugin-sdk/channel-secret-basic-runtime.d.ts",
|
||||
],
|
||||
|
||||
@@ -76,7 +76,6 @@
|
||||
"media-generation-runtime",
|
||||
"conversation-binding-runtime",
|
||||
"conversation-runtime",
|
||||
"matrix-runtime-shared",
|
||||
"thread-bindings-runtime",
|
||||
"thread-bindings-session-runtime",
|
||||
"text-runtime",
|
||||
@@ -94,7 +93,6 @@
|
||||
"secret-file-runtime",
|
||||
"security-runtime",
|
||||
"gateway-runtime",
|
||||
"github-copilot-token",
|
||||
"cli-runtime",
|
||||
"cli-backend",
|
||||
"agent-harness",
|
||||
@@ -133,11 +131,6 @@
|
||||
"allow-from",
|
||||
"allowlist-config-edit",
|
||||
"browser-config",
|
||||
"browser-config-runtime",
|
||||
"browser-config-support",
|
||||
"browser-node-runtime",
|
||||
"browser-security-runtime",
|
||||
"browser-setup-tools",
|
||||
"boolean-param",
|
||||
"channel-contract-testing",
|
||||
"dangerous-name-runtime",
|
||||
@@ -222,7 +215,6 @@
|
||||
"persistent-dedupe",
|
||||
"keyed-async-queue",
|
||||
"qa-runner-runtime",
|
||||
"memory-core",
|
||||
"memory-core-engine-runtime",
|
||||
"memory-core-host-engine-embeddings",
|
||||
"memory-core-host-engine-foundation",
|
||||
|
||||
Reference in New Issue
Block a user