mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
docs(cli): clarify upstream event revert
This commit is contained in:
@@ -727,7 +727,7 @@ export const RunCommand = effectCmd({
|
||||
let retries = 0 // kilocode_change
|
||||
let error: string | undefined
|
||||
|
||||
// kilocode_change start - consume the native event once; sync envelopes are compatibility copies
|
||||
// kilocode_change start - revert to upstream: consume native events without normalizing sync copies
|
||||
for await (const event of events.stream) {
|
||||
// kilocode_change end
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// Demo mode also handles permission and question replies locally, completing
|
||||
// or failing the synthetic tool parts as appropriate.
|
||||
import path from "path"
|
||||
import type { Event, ToolPart } from "@kilocode/sdk/v2" // kilocode_change - use the native event contract
|
||||
import type { Event, ToolPart } from "@kilocode/sdk/v2" // kilocode_change - revert to upstream native Event type
|
||||
import { createSessionData, reduceSessionData, type SessionData } from "./session-data"
|
||||
import { writeSessionOutput } from "./stream"
|
||||
import type { FooterApi, PermissionReply, QuestionReject, QuestionReply, RunPrompt, StreamCommit } from "./types"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// `data.questions`. The footer shows whichever is first. When a reply
|
||||
// event arrives, the queue entry is removed and the footer falls back
|
||||
// to the next pending request or to the prompt view.
|
||||
import type { Event, Part, PermissionRequest, QuestionRequest, ToolPart } from "@kilocode/sdk/v2" // kilocode_change - use the native event contract
|
||||
import type { Event, Part, PermissionRequest, QuestionRequest, ToolPart } from "@kilocode/sdk/v2" // kilocode_change - revert to upstream native Event type
|
||||
import type { RunInteractiveTerminalSnapshot } from "@/kilocode/cli/cmd/run/types" // kilocode_change
|
||||
import * as Locale from "@/util/locale"
|
||||
import { appendTerminalOutput } from "@/kilocode/interactive-terminal/output" // kilocode_change
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// The tick counter prevents stale idle events from resolving the wrong turn.
|
||||
// We also re-check live session status before resolving an idle event so a
|
||||
// delayed idle from an older turn cannot complete a newer busy turn.
|
||||
import type { Event, GlobalEvent, KiloClient } from "@kilocode/sdk/v2" // kilocode_change - use the native event contract
|
||||
import type { Event, GlobalEvent, KiloClient } from "@kilocode/sdk/v2" // kilocode_change - revert to upstream native Event type
|
||||
import { Context, Deferred, Effect, Exit, Layer, Scope, Stream } from "effect"
|
||||
import { makeRuntime } from "@/effect/run-service"
|
||||
import {
|
||||
@@ -190,7 +190,7 @@ function globalPayloadEvent(value: unknown): Event | undefined {
|
||||
return undefined
|
||||
}
|
||||
|
||||
// kilocode_change start - native and sync copies share an ID; process only the native event
|
||||
// kilocode_change start - revert to upstream: ignore sync compatibility copies
|
||||
if (value.payload.type === "sync") return undefined
|
||||
return isEvent(value.payload) ? value.payload : undefined
|
||||
// kilocode_change end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Event, Message, Part, PermissionRequest, QuestionRequest, ToolPart } from "@kilocode/sdk/v2" // kilocode_change - use the native event contract
|
||||
import type { Event, Message, Part, PermissionRequest, QuestionRequest, ToolPart } from "@kilocode/sdk/v2" // kilocode_change - revert to upstream native Event type
|
||||
import * as Locale from "@/util/locale"
|
||||
import {
|
||||
bootstrapSessionData,
|
||||
|
||||
Reference in New Issue
Block a user