resolve merge conflicts

This commit is contained in:
Catriel Müller
2026-02-03 19:28:35 -03:00
189 changed files with 2483 additions and 1322 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { cmd } from "./cmd"
import { AgentSideConnection, ndJsonStream } from "@agentclientprotocol/sdk"
import { ACP } from "@/acp/agent"
import { Server } from "@/server/server"
import { createOpencodeClient } from "@kilocode/sdk/v2" // kilocode_change
import { createOpencodeClient } from "@kilocode/sdk/v2"
import { withNetworkOptions, resolveNetworkOptions } from "../network"
const log = Log.create({ service: "acp-command" })
+1 -1
View File
@@ -10,7 +10,7 @@ import { Config } from "../../config/config"
import { Global } from "../../global"
import { Plugin } from "../../plugin"
import { Instance } from "../../project/instance"
import type { Hooks } from "@kilocode/plugin" // kilocode_change
import type { Hooks } from "@kilocode/plugin"
type PluginAuth = NonNullable<Hooks["auth"]>
+1 -1
View File
@@ -7,7 +7,7 @@ import { bootstrap } from "../bootstrap"
import { Command } from "../../command"
import { EOL } from "os"
import { select } from "@clack/prompts"
import { createOpencodeClient, type OpencodeClient } from "@kilocode/sdk/v2" // kilocode_change
import { createOpencodeClient, type OpencodeClient } from "@kilocode/sdk/v2"
import { Server } from "../../server/server"
import { Provider } from "../../provider/provider"
import { Agent } from "../../agent/agent"
@@ -11,7 +11,7 @@ import {
} from "solid-js"
import { useKeyboard } from "@opentui/solid"
import { useKeybind } from "@tui/context/keybind"
import type { KeybindsConfig } from "@kilocode/sdk/v2" // kilocode_change
import type { KeybindsConfig } from "@kilocode/sdk/v2"
type Context = ReturnType<typeof init>
const ctx = createContext<Context>()
@@ -176,7 +176,7 @@ export function DialogModel(props: { providerID?: string }) {
(item) => item.providerID === value.providerID && item.modelID === value.modelID,
)
if (inFavorites) return false
const inRecents = recentList.some(
const inRecents = recents.some(
(item) => item.providerID === value.providerID && item.modelID === value.modelID,
)
if (inRecents) return false
@@ -8,7 +8,7 @@ import { DialogPrompt } from "../ui/dialog-prompt"
import { Link } from "../ui/link"
import { useTheme } from "../context/theme"
import { TextAttributes } from "@opentui/core"
import type { ProviderAuthAuthorization } from "@kilocode/sdk/v2" // kilocode_change
import type { ProviderAuthAuthorization } from "@kilocode/sdk/v2"
import { DialogModel } from "./dialog-model"
import { useKeyboard } from "@opentui/solid"
import { Clipboard } from "@tui/util/clipboard"
@@ -5,7 +5,7 @@ import { createStore, produce } from "solid-js/store"
import { clone } from "remeda"
import { createSimpleContext } from "../../context/helper"
import { appendFile, writeFile } from "fs/promises"
import type { AgentPart, FilePart, TextPart } from "@kilocode/sdk/v2" // kilocode_change
import type { AgentPart, FilePart, TextPart } from "@kilocode/sdk/v2"
export type PromptInfo = {
input: string
@@ -19,7 +19,7 @@ import { useRenderer } from "@opentui/solid"
import { Editor } from "@tui/util/editor"
import { useExit } from "../../context/exit"
import { Clipboard } from "../../util/clipboard"
import type { FilePart } from "@kilocode/sdk/v2" // kilocode_change
import type { FilePart } from "@kilocode/sdk/v2"
import { TuiEvent } from "../../event"
import { iife } from "@/util/iife"
import { Locale } from "@/util/locale"
@@ -2,7 +2,7 @@ import { createMemo } from "solid-js"
import { useSync } from "@tui/context/sync"
import { Keybind } from "@/util/keybind"
import { pipe, mapValues } from "remeda"
import type { KeybindsConfig } from "@kilocode/sdk/v2" // kilocode_change
import type { KeybindsConfig } from "@kilocode/sdk/v2"
import type { ParsedKey, Renderable } from "@opentui/core"
import { createStore } from "solid-js/store"
import { useKeyboard, useRenderer } from "@opentui/solid"
@@ -1,4 +1,4 @@
import { createOpencodeClient, type Event } from "@kilocode/sdk/v2" // kilocode_change
import { createOpencodeClient, type Event } from "@kilocode/sdk/v2"
import { createSimpleContext } from "./helper"
import { createGlobalEmitter } from "@solid-primitives/event-bus"
import { batch, onCleanup, onMount } from "solid-js"
@@ -1,4 +1,3 @@
// kilocode_change start
import type {
Message,
Agent,
@@ -19,7 +18,6 @@ import type {
ProviderAuthMethod,
VcsInfo,
} from "@kilocode/sdk/v2"
// kilocode_change end
import { createStore, produce, reconcile } from "solid-js/store"
import { useSDK } from "@tui/context/sdk"
import { Binary } from "@opencode-ai/util/binary"
@@ -29,7 +27,7 @@ import { useExit } from "./exit"
import { useArgs } from "./args"
import { batch, onMount } from "solid-js"
import { Log } from "@/util/log"
import type { Path } from "@kilocode/sdk" // kilocode_change
import type { Path } from "@kilocode/sdk"
export const { use: useSync, provider: SyncProvider } = createSimpleContext({
name: "Sync",
@@ -1,7 +1,7 @@
import { createMemo, onMount } from "solid-js"
import { useSync } from "@tui/context/sync"
import { DialogSelect, type DialogSelectOption } from "@tui/ui/dialog-select"
import type { TextPart } from "@kilocode/sdk/v2" // kilocode_change
import type { TextPart } from "@kilocode/sdk/v2"
import { Locale } from "@/util/locale"
import { useSDK } from "@tui/context/sdk"
import { useRoute } from "@tui/context/route"
@@ -1,7 +1,7 @@
import { createMemo, onMount } from "solid-js"
import { useSync } from "@tui/context/sync"
import { DialogSelect, type DialogSelectOption } from "@tui/ui/dialog-select"
import type { TextPart } from "@kilocode/sdk/v2" // kilocode_change
import type { TextPart } from "@kilocode/sdk/v2"
import { Locale } from "@/util/locale"
import { DialogMessage } from "./dialog-message"
import { useDialog } from "../../ui/dialog"
@@ -4,7 +4,7 @@ import { useSync } from "@tui/context/sync"
import { pipe, sumBy } from "remeda"
import { useTheme } from "@tui/context/theme"
import { SplitBorder } from "@tui/component/border"
import type { AssistantMessage, Session } from "@kilocode/sdk/v2" // kilocode_change
import type { AssistantMessage, Session } from "@kilocode/sdk/v2"
import { useCommandDialog } from "@tui/component/dialog-command"
import { useKeybind } from "../../context/keybind"
import { Installation } from "@/installation"
@@ -27,7 +27,7 @@ import {
RGBA,
} from "@opentui/core"
import { Prompt, type PromptRef } from "@tui/component/prompt"
import type { AssistantMessage, Part, ToolPart, UserMessage, TextPart, ReasoningPart } from "@kilocode/sdk/v2" // kilocode_change
import type { AssistantMessage, Part, ToolPart, UserMessage, TextPart, ReasoningPart } from "@kilocode/sdk/v2"
import { useLocal } from "@tui/context/local"
import { Locale } from "@/util/locale"
import type { Tool } from "@/tool/tool"
@@ -1346,7 +1346,12 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMess
<box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexShrink={0}>
<Switch>
<Match when={Flag.OPENCODE_EXPERIMENTAL_MARKDOWN}>
<markdown syntaxStyle={syntax()} streaming={true} content={content()} conceal={ctx.conceal()} />
<markdown
syntaxStyle={syntax()}
streaming={true}
content={props.part.text.trim()}
conceal={ctx.conceal()}
/>
</Match>
<Match when={!Flag.OPENCODE_EXPERIMENTAL_MARKDOWN}>
<code
@@ -1354,7 +1359,7 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMess
drawUnstyledText={false}
streaming={true}
syntaxStyle={syntax()}
content={content()}
content={props.part.text.trim()}
conceal={ctx.conceal()}
fg={theme.text}
/>
@@ -4,7 +4,7 @@ import { Portal, useKeyboard, useRenderer, useTerminalDimensions, type JSX } fro
import type { TextareaRenderable } from "@opentui/core"
import { useKeybind } from "../../context/keybind"
import { useTheme, selectedForeground } from "../../context/theme"
import type { PermissionRequest } from "@kilocode/sdk/v2" // kilocode_change
import type { PermissionRequest } from "@kilocode/sdk/v2"
import { useSDK } from "../../context/sdk"
import { SplitBorder } from "../../component/border"
import { useSync } from "../../context/sync"
@@ -4,7 +4,7 @@ import { useKeyboard } from "@opentui/solid"
import type { TextareaRenderable } from "@opentui/core"
import { useKeybind } from "../../context/keybind"
import { selectedForeground, tint, useTheme } from "../../context/theme"
import type { QuestionAnswer, QuestionRequest } from "@kilocode/sdk/v2" // kilocode_change
import type { QuestionAnswer, QuestionRequest } from "@kilocode/sdk/v2"
import { useSDK } from "../../context/sdk"
import { SplitBorder } from "../../component/border"
import { useTextareaKeybindings } from "../../component/textarea-keybindings"
@@ -4,7 +4,7 @@ import { createStore } from "solid-js/store"
import { useTheme } from "../../context/theme"
import { Locale } from "@/util/locale"
import path from "path"
import type { AssistantMessage } from "@kilocode/sdk/v2" // kilocode_change
import type { AssistantMessage } from "@kilocode/sdk/v2"
import { Global } from "@/global"
import { Installation } from "@/installation"
import { useKeybind } from "../../context/keybind"
+1 -1
View File
@@ -7,7 +7,7 @@ import { UI } from "@/cli/ui"
import { iife } from "@/util/iife"
import { Log } from "@/util/log"
import { withNetworkOptions, resolveNetworkOptions } from "@/cli/network"
import type { Event } from "@kilocode/sdk/v2" // kilocode_change
import type { Event } from "@kilocode/sdk/v2"
import type { EventSource } from "./context/sdk"
declare global {
@@ -1,4 +1,4 @@
import type { AssistantMessage, Part, UserMessage } from "@kilocode/sdk/v2" // kilocode_change
import type { AssistantMessage, Part, UserMessage } from "@kilocode/sdk/v2"
import { Locale } from "@/util/locale"
export type TranscriptOptions = {
+1 -1
View File
@@ -7,7 +7,7 @@ import { Rpc } from "@/util/rpc"
import { upgrade } from "@/cli/upgrade"
import { Config } from "@/config/config"
import { GlobalBus } from "@/bus/global"
import { createOpencodeClient, type Event } from "@kilocode/sdk/v2" // kilocode_change
import { createOpencodeClient, type Event } from "@kilocode/sdk/v2"
import type { BunWebSocketData } from "hono/bun"
import { Flag } from "@/flag/flag"