refactor: update sdk imports and fix type signatures for v1.3.17 compat
- Update `@kilocode/sdk` imports to use `@kilocode/sdk/v2` path - Replace `@opencode-ai/sdk/v2` import with `@kilocode/sdk/v2` - Change theme color types from `string` to `RGBA` in renderApiDescription - Fix `build` return type in KiloToolRegistry to `Effect.Effect<T, never, any>`
This commit is contained in:
@@ -413,6 +413,7 @@
|
||||
"jsonc-parser": "3.3.1",
|
||||
"mime-types": "3.0.2",
|
||||
"minimatch": "10.2.5",
|
||||
"npm-package-arg": "13.0.2",
|
||||
"open": "10.1.2",
|
||||
"opencode-gitlab-auth": "2.0.1",
|
||||
"opencode-poe-auth": "0.0.1",
|
||||
@@ -457,6 +458,7 @@
|
||||
"@types/bun": "catalog:",
|
||||
"@types/cross-spawn": "catalog:",
|
||||
"@types/mime-types": "3.0.1",
|
||||
"@types/npm-package-arg": "6.1.4",
|
||||
"@types/npmcli__arborist": "6.3.3",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/turndown": "5.0.5",
|
||||
|
||||
@@ -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, ProviderAuthMethod } from "@kilocode/sdk"
|
||||
import type { ProviderAuthAuthorization, ProviderAuthMethod } from "@kilocode/sdk/v2"
|
||||
import { DialogModel } from "./dialog-model"
|
||||
import { useKeyboard } from "@opentui/solid"
|
||||
import { Clipboard } from "@tui/util/clipboard"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
*/
|
||||
|
||||
import type { JSX } from "solid-js"
|
||||
import type { ProviderAuthAuthorization } from "@opencode-ai/sdk/v2"
|
||||
import type { RGBA } from "@opentui/core"
|
||||
import type { ProviderAuthAuthorization } from "@kilocode/sdk/v2"
|
||||
import { KiloAutoMethod } from "@/kilocode/components/dialog-kilo-auto-method"
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -76,7 +77,7 @@ export function renderAutoMethod(opts: {
|
||||
*/
|
||||
export function renderApiDescription(
|
||||
providerID: string,
|
||||
theme: { textMuted: string; text: string; primary: string },
|
||||
theme: { textMuted: RGBA; text: RGBA; primary: RGBA },
|
||||
): (() => JSX.Element) | undefined {
|
||||
if (providerID !== "kilo") return undefined
|
||||
return () => (
|
||||
|
||||
@@ -9,7 +9,9 @@ import { Effect } from "effect"
|
||||
|
||||
export namespace KiloToolRegistry {
|
||||
/** Build Kilo-specific tools (CodebaseSearch, Recall) */
|
||||
export function build(fn: <T extends Tool.Info>(tool: T | Effect.Effect<T, never, any>) => Effect.Effect<T>) {
|
||||
export function build(
|
||||
fn: <T extends Tool.Info>(tool: T | Effect.Effect<T, never, any>) => Effect.Effect<T, never, any>,
|
||||
) {
|
||||
return Effect.gen(function* () {
|
||||
const codebase = yield* fn(CodebaseSearchTool)
|
||||
const recall = yield* fn(RecallTool)
|
||||
|
||||
Reference in New Issue
Block a user