fix(channels): isolate inbound turn kind type · openclaw/openclaw@6f7897d
obviyus
·
2026-05-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import type { ImageContent } from "@earendil-works/pi-ai";
|
2 | 2 | import type { SourceReplyDeliveryMode } from "../../auto-reply/get-reply-options.types.js"; |
3 | 3 | import type { ReplyOperation } from "../../auto-reply/reply/reply-run-registry.js"; |
4 | 4 | import type { ThinkLevel } from "../../auto-reply/thinking.js"; |
5 | | -import type { InboundTurnKind } from "../../channels/turn/types.js"; |
| 5 | +import type { InboundTurnKind } from "../../channels/turn/kind.js"; |
6 | 6 | import type { CliSessionBinding } from "../../config/sessions.js"; |
7 | 7 | import type { SessionSystemPromptReport } from "../../config/sessions/types.js"; |
8 | 8 | import type { CliBackendConfig } from "../../config/types.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ import type {
|
7 | 7 | import type { ReplyPayload } from "../../../auto-reply/reply-payload.js"; |
8 | 8 | import type { ReplyOperation } from "../../../auto-reply/reply/reply-run-registry.js"; |
9 | 9 | import type { ReasoningLevel, ThinkLevel, VerboseLevel } from "../../../auto-reply/thinking.js"; |
10 | | -import type { InboundTurnKind } from "../../../channels/turn/types.js"; |
| 10 | +import type { InboundTurnKind } from "../../../channels/turn/kind.js"; |
11 | 11 | import type { OpenClawConfig } from "../../../config/types.openclaw.js"; |
12 | 12 | import type { PromptImageOrderEntry } from "../../../media/prompt-image-order.js"; |
13 | 13 | import type { CommandQueueEnqueueFn } from "../../../process/command-queue.types.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import type { ExecToolDefaults } from "../../../agents/bash-tools.js";
|
2 | 2 | import type { CurrentTurnPromptContext } from "../../../agents/pi-embedded-runner/run/params.js"; |
3 | 3 | import type { SkillSnapshot } from "../../../agents/skills.js"; |
4 | 4 | import type { SilentReplyPromptMode } from "../../../agents/system-prompt.types.js"; |
5 | | -import type { InboundTurnKind } from "../../../channels/turn/types.js"; |
| 5 | +import type { InboundTurnKind } from "../../../channels/turn/kind.js"; |
6 | 6 | import type { SessionEntry } from "../../../config/sessions.js"; |
7 | 7 | import type { OpenClawConfig } from "../../../config/types.openclaw.js"; |
8 | 8 | import type { PromptImageOrderEntry } from "../../../media/prompt-image-order.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import type { InboundTurnKind } from "../channels/turn/types.js"; |
| 1 | +import type { InboundTurnKind } from "../channels/turn/kind.js"; |
2 | 2 | import type { |
3 | 3 | MediaUnderstandingDecision, |
4 | 4 | MediaUnderstandingOutput, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,8 +12,8 @@ import type {
|
12 | 12 | AccessFacts, |
13 | 13 | CommandFacts, |
14 | 14 | ConversationFacts, |
15 | | -InboundTurnKind, |
16 | 15 | InboundMediaFacts, |
| 16 | +InboundTurnKind, |
17 | 17 | MessageFacts, |
18 | 18 | ReplyPlanFacts, |
19 | 19 | RouteFacts, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export type { InboundTurnKind } from "./types.js"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,6 +19,7 @@ import type { CreateChannelReplyPipelineParams } from "../message/reply-pipeline
|
19 | 19 | import type { MessageReceipt } from "../message/types.js"; |
20 | 20 | import type { InboundLastRouteUpdate, RecordInboundSession } from "../session.types.js"; |
21 | 21 | import type { ChannelBotLoopProtectionFacts } from "./bot-loop-protection.js"; |
| 22 | +import type { InboundTurnKind } from "./kind.js"; |
22 | 23 | |
23 | 24 | export type ChannelTurnAdmission = |
24 | 25 | | { kind: "dispatch"; reason?: string } |
@@ -32,8 +33,6 @@ export type ChannelEventClass = {
|
32 | 33 | requiresImmediateAck?: boolean; |
33 | 34 | }; |
34 | 35 | |
35 | | -export type InboundTurnKind = "user_request" | "room_event"; |
36 | | - |
37 | 36 | export type NormalizedTurnInput = { |
38 | 37 | id: string; |
39 | 38 | timestamp?: number; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。