refactor(plugin-sdk): narrow config runtime imports

This commit is contained in:
Peter Steinberger
2026-04-27 14:57:48 +01:00
parent f3e8a8a319
commit 4336a7f3a9
573 changed files with 1066 additions and 860 deletions

View File

@@ -19,7 +19,7 @@ export type {
} from "openclaw/plugin-sdk/core";
export type { OpenClawConfig as ClawdbotConfig } from "openclaw/plugin-sdk/core";
export type { RuntimeEnv } from "openclaw/plugin-sdk/runtime";
export type { GroupToolPolicyConfig } from "openclaw/plugin-sdk/config-runtime";
export type { GroupToolPolicyConfig } from "openclaw/plugin-sdk/config-types";
export {
DEFAULT_ACCOUNT_ID,
buildChannelConfigSchema,
@@ -38,8 +38,11 @@ export {
evaluateSupplementalContextVisibility,
filterSupplementalContextItems,
resolveChannelContextVisibilityMode,
} from "openclaw/plugin-sdk/config-runtime";
export { loadSessionStore, resolveSessionStoreEntry } from "openclaw/plugin-sdk/config-runtime";
} from "openclaw/plugin-sdk/context-visibility-runtime";
export {
loadSessionStore,
resolveSessionStoreEntry,
} from "openclaw/plugin-sdk/session-store-runtime";
export { readJsonFileWithFallback } from "openclaw/plugin-sdk/json-store";
export { createPersistentDedupe } from "openclaw/plugin-sdk/persistent-dedupe";
export { normalizeAgentId } from "openclaw/plugin-sdk/routing";

View File

@@ -1140,7 +1140,7 @@ export const feishuPlugin: ChannelPlugin<ResolvedFeishuAccount, FeishuProbeResul
auth: {
login: async ({ cfg }) => {
const { createClackPrompter } = await import("openclaw/plugin-sdk/setup-runtime");
const { replaceConfigFile } = await import("openclaw/plugin-sdk/config-runtime");
const { replaceConfigFile } = await import("openclaw/plugin-sdk/config-mutation");
const prompter = createClackPrompter();
const nextCfg = await runFeishuLogin({ cfg, prompter });
if (nextCfg !== cfg) {

View File

@@ -1,3 +1,3 @@
export type { OpenClawConfig as ClawdbotConfig } from "openclaw/plugin-sdk/config-runtime";
export type { OpenClawConfig as ClawdbotConfig } from "openclaw/plugin-sdk/config-types";
export type { RuntimeEnv } from "openclaw/plugin-sdk/runtime";
export { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";

View File

@@ -1,4 +1,4 @@
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/config-runtime";
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
import {
convertMarkdownTables,
normalizeLowercaseStringOrEmpty,

View File

@@ -1,4 +1,4 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";
import { getSessionBindingService } from "openclaw/plugin-sdk/conversation-runtime";
import { beforeEach, describe, expect, it } from "vitest";
import { __testing, createFeishuThreadBindingManager } from "./thread-bindings.js";

View File

@@ -1,4 +1,4 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";
import {
resolveThreadBindingIdleTimeoutMsForChannel,
resolveThreadBindingMaxAgeMsForChannel,