fix(plugin-sdk): expose delivery hints without utility imports · openclaw/openclaw@d498b1c
obviyus
·
2026-06-14
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -2ac33288de5918da052ee7f1715294135aa99fc829666cc9490d1cd3e17f8a10 plugin-sdk-api-baseline.json |
2 | | -a37ed8fc317d439f33425058c2be7114d8278f7e9ed82fb869ef783ae73bca26 plugin-sdk-api-baseline.jsonl |
| 1 | +40b3c841849fbc29938a3bbb990e28a5db30142941c8ef0c081a94cee4c78331 plugin-sdk-api-baseline.json |
| 2 | +40ee8e1bbf112e768d4944776443f90b2441b02e3e950726e4112015cd106108 plugin-sdk-api-baseline.jsonl |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -236,6 +236,7 @@ usage endpoint failed or returned no usable usage data.
|
236 | 236 | | `plugin-sdk/config-contracts` | Focused type-only config surface for plugin config shapes such as `OpenClawConfig` and channel/provider config types | |
237 | 237 | | `plugin-sdk/plugin-config-runtime` | Runtime plugin-config lookup helpers such as `requireRuntimeConfig`, `resolvePluginConfigObject`, and `resolveLivePluginConfigObject` | |
238 | 238 | | `plugin-sdk/config-mutation` | Transactional config mutation helpers such as `mutateConfigFile`, `replaceConfigFile`, and `logConfigUpdated` | |
| 239 | +| `plugin-sdk/message-tool-delivery-hints` | Shared message-tool delivery metadata hint strings | |
239 | 240 | | `plugin-sdk/runtime-config-snapshot` | Current process config snapshot helpers such as `getRuntimeConfig`, `getRuntimeConfigSnapshot`, and test snapshot setters | |
240 | 241 | | `plugin-sdk/telegram-command-config` | Telegram command-name/description normalization and duplicate/conflict checks, even when the bundled Telegram contract surface is unavailable | |
241 | 242 | | `plugin-sdk/text-autolink-runtime` | File-reference autolink detection without the broad text barrel | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ import {
|
16 | 16 | } from "openclaw/plugin-sdk/agent-harness-runtime"; |
17 | 17 | import { resolveAgentWorkspaceDir } from "openclaw/plugin-sdk/agent-runtime"; |
18 | 18 | import { buildMemorySystemPromptAddition } from "openclaw/plugin-sdk/core"; |
19 | | -import { MESSAGE_TOOL_DELIVERY_HINTS } from "openclaw/plugin-sdk/text-utility-runtime"; |
| 19 | +import { MESSAGE_TOOL_DELIVERY_HINTS } from "openclaw/plugin-sdk/message-tool-delivery-hints"; |
20 | 20 | import type { CodexDynamicToolSpec, JsonValue } from "./protocol.js"; |
21 | 21 | import { isJsonObject } from "./protocol.js"; |
22 | 22 | import type { CodexAppServerThreadBinding } from "./session-binding.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,9 +13,9 @@ import {
|
13 | 13 | } from "openclaw/plugin-sdk/diagnostic-runtime"; |
14 | 14 | import { initializeGlobalHookRunner, registerInternalHook } from "openclaw/plugin-sdk/hook-runtime"; |
15 | 15 | import { registerMemoryCapability } from "openclaw/plugin-sdk/memory-core-host-runtime-core"; |
| 16 | +import { MESSAGE_TOOL_DELIVERY_HINTS } from "openclaw/plugin-sdk/message-tool-delivery-hints"; |
16 | 17 | import { registerPluginCommand } from "openclaw/plugin-sdk/plugin-runtime"; |
17 | 18 | import { createMockPluginRegistry } from "openclaw/plugin-sdk/plugin-test-runtime"; |
18 | | -import { MESSAGE_TOOL_DELIVERY_HINTS } from "openclaw/plugin-sdk/text-utility-runtime"; |
19 | 19 | import { describe, expect, it, vi } from "vitest"; |
20 | 20 | import WebSocket from "ws"; |
21 | 21 | import { CODEX_GPT5_BEHAVIOR_CONTRACT } from "../../prompt-overlay.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,8 +19,8 @@ import {
|
19 | 19 | registerMemoryCapability, |
20 | 20 | type MemoryPluginCapability, |
21 | 21 | } from "openclaw/plugin-sdk/memory-host-core"; |
| 22 | +import { MESSAGE_TOOL_DELIVERY_HINTS } from "openclaw/plugin-sdk/message-tool-delivery-hints"; |
22 | 23 | import { MAX_TIMER_TIMEOUT_MS } from "openclaw/plugin-sdk/number-runtime"; |
23 | | -import { MESSAGE_TOOL_DELIVERY_HINTS } from "openclaw/plugin-sdk/text-utility-runtime"; |
24 | 24 | import { afterEach, describe, test, expect, vi } from "vitest"; |
25 | 25 | import memoryPlugin, { |
26 | 26 | detectCategory, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,6 +17,7 @@ import {
|
17 | 17 | import { BUNDLED_CHAT_CHANNEL_ENVELOPE_PREFIXES } from "openclaw/plugin-sdk/chat-channel-ids"; |
18 | 18 | import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts"; |
19 | 19 | import type { MemoryEmbeddingProvider } from "openclaw/plugin-sdk/memory-core-host-engine-embeddings"; |
| 20 | +import { MESSAGE_TOOL_DELIVERY_HINTS } from "openclaw/plugin-sdk/message-tool-delivery-hints"; |
20 | 21 | import { |
21 | 22 | parseStrictPositiveInteger, |
22 | 23 | resolveTimerTimeoutMs, |
@@ -28,10 +29,7 @@ import {
|
28 | 29 | asOptionalRecord as asRecord, |
29 | 30 | normalizeLowercaseStringOrEmpty, |
30 | 31 | } from "openclaw/plugin-sdk/string-coerce-runtime"; |
31 | | -import { |
32 | | -MESSAGE_TOOL_DELIVERY_HINTS, |
33 | | -truncateUtf16Safe, |
34 | | -} from "openclaw/plugin-sdk/text-utility-runtime"; |
| 32 | +import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime"; |
35 | 33 | import { Type } from "typebox"; |
36 | 34 | import { definePluginEntry, type OpenClawPluginApi } from "./api.js"; |
37 | 35 | import { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1170,6 +1170,10 @@
|
1170 | 1170 | "types": "./dist/plugin-sdk/memory-host-status.d.ts", |
1171 | 1171 | "default": "./dist/plugin-sdk/memory-host-status.js" |
1172 | 1172 | }, |
| 1173 | +"./plugin-sdk/message-tool-delivery-hints": { |
| 1174 | +"types": "./dist/plugin-sdk/message-tool-delivery-hints.d.ts", |
| 1175 | +"default": "./dist/plugin-sdk/message-tool-delivery-hints.js" |
| 1176 | + }, |
1173 | 1177 | "./plugin-sdk/models-provider-runtime": { |
1174 | 1178 | "types": "./dist/plugin-sdk/models-provider-runtime.d.ts", |
1175 | 1179 | "default": "./dist/plugin-sdk/models-provider-runtime.js" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -102,6 +102,9 @@ export const pluginSdkDocMetadata = {
|
102 | 102 | "provider-oauth-runtime": { |
103 | 103 | category: "provider", |
104 | 104 | }, |
| 105 | +"message-tool-delivery-hints": { |
| 106 | +category: "runtime", |
| 107 | +}, |
105 | 108 | "provider-selection-runtime": { |
106 | 109 | category: "provider", |
107 | 110 | }, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -271,6 +271,7 @@
|
271 | 271 | "memory-host-markdown", |
272 | 272 | "memory-host-search", |
273 | 273 | "memory-host-status", |
| 274 | +"message-tool-delivery-hints", |
274 | 275 | "models-provider-runtime", |
275 | 276 | "skill-commands-runtime", |
276 | 277 | "native-command-config-runtime", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,4 +2,4 @@ export {
|
2 | 2 | LEGACY_MESSAGE_TOOL_DELIVERY_HINTS, |
3 | 3 | MESSAGE_TOOL_DELIVERY_HINTS, |
4 | 4 | MESSAGE_TOOL_ONLY_DELIVERY_HINT, |
5 | | -} from "../../plugin-sdk/text-utility-runtime.js"; |
| 5 | +} from "../../plugin-sdk/message-tool-delivery-hints.js"; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。