mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
fix(plugins): route slack streaming compat through a focused streaming-config subpath
The channel-streaming compat barrel is deprecated for extension production code (deprecated-api-usage guard + SDK package contract). Add the narrow non-deprecated openclaw/plugin-sdk/channel-streaming-config subpath for the pure streaming config readers, and drop the now consumer-less short-term-promotion barrel re-exports knip flagged.
This commit is contained in:
@@ -48,6 +48,7 @@ f3cee48527f5cddde81912a588e72947d40443322b716871a8d9e5dc0c37c542 module/channel
|
|||||||
fb123c1b557ed2527e335f13c3d6de41ab0c3305151001cf2b1075d1da8034c5 module/channel-setup
|
fb123c1b557ed2527e335f13c3d6de41ab0c3305151001cf2b1075d1da8034c5 module/channel-setup
|
||||||
aeac9bb8127faf636dde79772a577d9cb003660ef3d1df03ddf606101020c402 module/channel-status
|
aeac9bb8127faf636dde79772a577d9cb003660ef3d1df03ddf606101020c402 module/channel-status
|
||||||
f008d1d9ea73cd17e9833143bd117436599438523041fd157b6b6cb17500ac06 module/channel-streaming
|
f008d1d9ea73cd17e9833143bd117436599438523041fd157b6b6cb17500ac06 module/channel-streaming
|
||||||
|
d1ff8728d99acf8130b94db7ba75ad7050a549c96365f56b8d4f601a533ca947 module/channel-streaming-config
|
||||||
14f0103adb14627b662fbe9fdd5ed08596ed702a250853e8beb8bb8dd1361588 module/cli-argv
|
14f0103adb14627b662fbe9fdd5ed08596ed702a250853e8beb8bb8dd1361588 module/cli-argv
|
||||||
c89ec1b194b76f67a6f4dd108dccf460da6065646cba31374c8aa748f23a39e4 module/collection-runtime
|
c89ec1b194b76f67a6f4dd108dccf460da6065646cba31374c8aa748f23a39e4 module/collection-runtime
|
||||||
391e6f0c77da2e17a058fc5aea87fd193830b2a14e12fae77c7f63b0226f0bb5 module/command-auth
|
391e6f0c77da2e17a058fc5aea87fd193830b2a14e12fae77c7f63b0226f0bb5 module/command-auth
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ deprecated for new code; see the per-row notes below.
|
|||||||
| `plugin-sdk/channel-inbound-debounce` | Narrow inbound debounce helpers |
|
| `plugin-sdk/channel-inbound-debounce` | Narrow inbound debounce helpers |
|
||||||
| `plugin-sdk/channel-mention-gating` | Private-local after July 2026; Narrow mention-policy, mention marker, and mention text helpers without the broader inbound runtime surface |
|
| `plugin-sdk/channel-mention-gating` | Private-local after July 2026; Narrow mention-policy, mention marker, and mention text helpers without the broader inbound runtime surface |
|
||||||
| `plugin-sdk/channel-streaming` | Deprecated compatibility facade. Use `plugin-sdk/channel-outbound`. |
|
| `plugin-sdk/channel-streaming` | Deprecated compatibility facade. Use `plugin-sdk/channel-outbound`. |
|
||||||
|
| `plugin-sdk/channel-streaming-config` | Dependency-light channel streaming config readers (`getChannelStreamingConfigObject`, `resolveChannelStreamingNativeTransport`) for doctor contract closures and other control-plane paths that must not load the reply pipeline |
|
||||||
| `plugin-sdk/channel-send-result` | Reply result types |
|
| `plugin-sdk/channel-send-result` | Reply result types |
|
||||||
| `plugin-sdk/channel-actions` | Channel message-action helpers, plus deprecated native schema helpers kept for plugin compatibility |
|
| `plugin-sdk/channel-actions` | Channel message-action helpers, plus deprecated native schema helpers kept for plugin compatibility |
|
||||||
| `plugin-sdk/channel-route` | Private-local after July 2026; Shared route normalization, parser-driven target resolution, thread-id stringification, dedupe/compact route keys, parsed-target types, and route/target comparison helpers |
|
| `plugin-sdk/channel-route` | Private-local after July 2026; Shared route normalization, parser-driven target resolution, thread-id stringification, dedupe/compact route keys, parsed-target types, and route/target comparison helpers |
|
||||||
|
|||||||
@@ -240,8 +240,6 @@ export {
|
|||||||
DEFAULT_PROMOTION_MIN_RECALL_COUNT,
|
DEFAULT_PROMOTION_MIN_RECALL_COUNT,
|
||||||
DEFAULT_PROMOTION_MIN_SCORE,
|
DEFAULT_PROMOTION_MIN_SCORE,
|
||||||
DEFAULT_PROMOTION_MIN_UNIQUE_QUERIES,
|
DEFAULT_PROMOTION_MIN_UNIQUE_QUERIES,
|
||||||
SHORT_TERM_PHASE_SIGNAL_RELATIVE_PATH,
|
|
||||||
SHORT_TERM_STORE_RELATIVE_PATH,
|
|
||||||
type PromotionCandidate,
|
type PromotionCandidate,
|
||||||
type RepairShortTermPromotionArtifactsResult,
|
type RepairShortTermPromotionArtifactsResult,
|
||||||
type ShortTermAuditSummary,
|
type ShortTermAuditSummary,
|
||||||
@@ -249,8 +247,6 @@ export {
|
|||||||
type ShortTermDreamingStatsEntry,
|
type ShortTermDreamingStatsEntry,
|
||||||
type ShortTermRecallEntry,
|
type ShortTermRecallEntry,
|
||||||
} from "./short-term-promotion-types.js";
|
} from "./short-term-promotion-types.js";
|
||||||
export { normalizeShortTermPhaseSignalStore } from "./short-term-promotion-store.js";
|
|
||||||
export { normalizeShortTermRecallStore } from "./short-term-promotion-utils.js";
|
|
||||||
export {
|
export {
|
||||||
filterFreshLightDreamingEntries,
|
filterFreshLightDreamingEntries,
|
||||||
loadShortTermPromotionDreamingStats,
|
loadShortTermPromotionDreamingStats,
|
||||||
|
|||||||
@@ -25,11 +25,9 @@ import {
|
|||||||
writeMemoryCoreWorkspaceEntries,
|
writeMemoryCoreWorkspaceEntries,
|
||||||
writeMemoryCoreWorkspaceEntry,
|
writeMemoryCoreWorkspaceEntry,
|
||||||
} from "./dreaming-state.js";
|
} from "./dreaming-state.js";
|
||||||
import {
|
import { normalizeShortTermPhaseSignalStore } from "./short-term-promotion-store.js";
|
||||||
normalizeShortTermPhaseSignalStore,
|
import { normalizeShortTermRecallStore } from "./short-term-promotion-utils.js";
|
||||||
normalizeShortTermRecallStore,
|
import type { ShortTermRecallEntry } from "./short-term-promotion.js";
|
||||||
type ShortTermRecallEntry,
|
|
||||||
} from "./short-term-promotion.js";
|
|
||||||
|
|
||||||
const MEMORY_CORE_PLUGIN_ID = "memory-core";
|
const MEMORY_CORE_PLUGIN_ID = "memory-core";
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Slack plugin module implements streaming compat behavior.
|
// Slack plugin module implements streaming compat behavior.
|
||||||
// channel-streaming exports the same helpers without channel-outbound's
|
// channel-streaming-config exports the same helpers without channel-outbound's
|
||||||
// reply-pipeline/channel-registry graph, which doctor enumeration cold-loads.
|
// reply-pipeline/channel-registry graph, which doctor enumeration cold-loads.
|
||||||
import {
|
import {
|
||||||
getChannelStreamingConfigObject,
|
getChannelStreamingConfigObject,
|
||||||
resolveChannelStreamingNativeTransport,
|
resolveChannelStreamingNativeTransport,
|
||||||
} from "openclaw/plugin-sdk/channel-streaming";
|
} from "openclaw/plugin-sdk/channel-streaming-config";
|
||||||
import {
|
import {
|
||||||
normalizeLowercaseStringOrEmpty,
|
normalizeLowercaseStringOrEmpty,
|
||||||
normalizeOptionalString,
|
normalizeOptionalString,
|
||||||
|
|||||||
@@ -431,6 +431,10 @@
|
|||||||
"types": "./dist/plugin-sdk/channel-streaming.d.ts",
|
"types": "./dist/plugin-sdk/channel-streaming.d.ts",
|
||||||
"default": "./dist/plugin-sdk/channel-streaming.js"
|
"default": "./dist/plugin-sdk/channel-streaming.js"
|
||||||
},
|
},
|
||||||
|
"./plugin-sdk/channel-streaming-config": {
|
||||||
|
"types": "./dist/plugin-sdk/channel-streaming-config.d.ts",
|
||||||
|
"default": "./dist/plugin-sdk/channel-streaming-config.js"
|
||||||
|
},
|
||||||
"./plugin-sdk/setup-tools": {
|
"./plugin-sdk/setup-tools": {
|
||||||
"types": "./dist/plugin-sdk/setup-tools.d.ts",
|
"types": "./dist/plugin-sdk/setup-tools.d.ts",
|
||||||
"default": "./dist/plugin-sdk/setup-tools.js"
|
"default": "./dist/plugin-sdk/setup-tools.js"
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
"setup-runtime",
|
"setup-runtime",
|
||||||
"channel-setup",
|
"channel-setup",
|
||||||
"channel-streaming",
|
"channel-streaming",
|
||||||
|
"channel-streaming-config",
|
||||||
"setup-tools",
|
"setup-tools",
|
||||||
"archive",
|
"archive",
|
||||||
"root-walk",
|
"root-walk",
|
||||||
|
|||||||
@@ -166,7 +166,8 @@ export function readPluginSdkSurfaceBudgets(env = process.env) {
|
|||||||
// +1: focused inbound-event delivery correlation for channel plugins.
|
// +1: focused inbound-event delivery correlation for channel plugins.
|
||||||
// +1: dependency-light agent scope helpers for doctor migration enumeration.
|
// +1: dependency-light agent scope helpers for doctor migration enumeration.
|
||||||
// +1: dependency-light realtime-voice activation helpers for doctor closures.
|
// +1: dependency-light realtime-voice activation helpers for doctor closures.
|
||||||
151,
|
// +1: dependency-light channel streaming config readers for doctor closures.
|
||||||
|
152,
|
||||||
env,
|
env,
|
||||||
),
|
),
|
||||||
publicExports: readPluginSdkSurfaceBudgetEnv(
|
publicExports: readPluginSdkSurfaceBudgetEnv(
|
||||||
@@ -228,7 +229,8 @@ export function readPluginSdkSurfaceBudgets(env = process.env) {
|
|||||||
// +4: focused agent scope functions for doctor migration enumeration.
|
// +4: focused agent scope functions for doctor migration enumeration.
|
||||||
// +1: shared transcript credential-safety prompt for plugin-owned agent harnesses.
|
// +1: shared transcript credential-safety prompt for plugin-owned agent harnesses.
|
||||||
// +12: realtime-voice activation subpath re-exports and session-agent scope resolver.
|
// +12: realtime-voice activation subpath re-exports and session-agent scope resolver.
|
||||||
4852,
|
// +2: channel streaming config reader re-exports.
|
||||||
|
4854,
|
||||||
env,
|
env,
|
||||||
),
|
),
|
||||||
publicFunctionExports: readPluginSdkSurfaceBudgetEnv(
|
publicFunctionExports: readPluginSdkSurfaceBudgetEnv(
|
||||||
@@ -281,7 +283,8 @@ export function readPluginSdkSurfaceBudgets(env = process.env) {
|
|||||||
// +1: simple channel secret contract factory replacing repeated collectors.
|
// +1: simple channel secret contract factory replacing repeated collectors.
|
||||||
// +4: focused agent scope functions for doctor migration enumeration.
|
// +4: focused agent scope functions for doctor migration enumeration.
|
||||||
// +8: realtime-voice activation functions and session-agent scope resolver.
|
// +8: realtime-voice activation functions and session-agent scope resolver.
|
||||||
2924,
|
// +2: channel streaming config reader functions.
|
||||||
|
2926,
|
||||||
env,
|
env,
|
||||||
),
|
),
|
||||||
publicDeprecatedExports: readPluginSdkSurfaceBudgetEnv(
|
publicDeprecatedExports: readPluginSdkSurfaceBudgetEnv(
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
/**
|
||||||
|
* Dependency-light channel streaming config readers.
|
||||||
|
*
|
||||||
|
* Doctor contract closures (e.g. Slack's streaming compat rules) need these
|
||||||
|
* pure config helpers; the broad `channel-outbound` barrel also value-loads
|
||||||
|
* the reply-pipeline/channel-registry graph, which doctor enumeration must
|
||||||
|
* not cold-load, and `channel-streaming` is a deprecated compat barrel.
|
||||||
|
*/
|
||||||
|
export {
|
||||||
|
getChannelStreamingConfigObject,
|
||||||
|
resolveChannelStreamingNativeTransport,
|
||||||
|
} from "../channels/streaming.js";
|
||||||
@@ -66,7 +66,7 @@ const FORBIDDEN_SPECIFIER_RULES = new Map<string, { reason: string; kinds: Set<C
|
|||||||
{
|
{
|
||||||
reason:
|
reason:
|
||||||
"the channel-outbound barrel makes doctor enumeration cold-load the reply-pipeline/channel-registry graph; " +
|
"the channel-outbound barrel makes doctor enumeration cold-load the reply-pipeline/channel-registry graph; " +
|
||||||
"use openclaw/plugin-sdk/channel-streaming for streaming config helpers",
|
"use openclaw/plugin-sdk/channel-streaming-config for streaming config helpers",
|
||||||
kinds: new Set(["doctor-contract"]),
|
kinds: new Set(["doctor-contract"]),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user