@@ -13,6 +13,7 @@ import type {
|
13 | 13 | InboundSourceModality, |
14 | 14 | MentionSource, |
15 | 15 | MsgContext, |
| 16 | +SupplementalContextFacts, |
16 | 17 | } from "../../auto-reply/templating.js"; |
17 | 18 | import type { GroupKeyResolution } from "../../config/sessions/types.js"; |
18 | 19 | import type { OpenClawConfig } from "../../config/types.openclaw.js"; |
@@ -28,6 +29,7 @@ import type { InboundLastRouteUpdate, RecordInboundSession } from "../session.ty
|
28 | 29 | import type { ChannelBotLoopProtectionFacts } from "./bot-loop-protection.js"; |
29 | 30 | |
30 | 31 | export type { InboundEventKind } from "../inbound-event/kind.js"; |
| 32 | +export type { SupplementalContextFacts } from "../../auto-reply/templating.js"; |
31 | 33 | |
32 | 34 | /** Admission decision for an inbound channel event before agent dispatch. */ |
33 | 35 | export type ChannelTurnAdmission = |
@@ -219,39 +221,6 @@ export type CommandFacts = {
|
219 | 221 | authorized?: boolean; |
220 | 222 | }; |
221 | 223 | |
222 | | -/** Quoted, forwarded, thread, and untrusted context facts attached to an inbound turn. */ |
223 | | -export type SupplementalContextFacts = { |
224 | | -quote?: { |
225 | | -id?: string; |
226 | | -fullId?: string; |
227 | | -body?: string; |
228 | | -sender?: string; |
229 | | -senderAllowed?: boolean; |
230 | | -isExternal?: boolean; |
231 | | -isQuote?: boolean; |
232 | | -}; |
233 | | -forwarded?: { |
234 | | -from?: string; |
235 | | -fromType?: string; |
236 | | -fromId?: string; |
237 | | -date?: number; |
238 | | -senderAllowed?: boolean; |
239 | | -}; |
240 | | -thread?: { |
241 | | -id?: string; |
242 | | -starterBody?: string; |
243 | | -historyBody?: string; |
244 | | -label?: string; |
245 | | -parentSessionKey?: string; |
246 | | -modelParentSessionKey?: string; |
247 | | -senderAllowed?: boolean; |
248 | | -}; |
249 | | -untrustedContext?: Array<{ label: string; source?: string; type?: string; payload: unknown }>; |
250 | | -groupSystemPrompt?: string; |
251 | | -/** Prompt-like group metadata from user-controlled sources; never enters the system prompt. */ |
252 | | -untrustedGroupSystemPrompt?: string; |
253 | | -}; |
254 | | - |
255 | 224 | /** Inbound media facts supplied to the agent context. */ |
256 | 225 | export type InboundMediaFacts = { |
257 | 226 | path?: string; |
|