@vikasitai/vikasit-code 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/script/build.ts +1 -1
- package/script/publish.ts +1 -1
- package/src/acp/agent.ts +1 -1
- package/src/acp/session.ts +1 -1
- package/src/acp/types.ts +1 -1
- package/src/bun/index.ts +1 -1
- package/src/cli/cmd/acp.ts +1 -1
- package/src/cli/cmd/generate.ts +1 -1
- package/src/cli/cmd/import.ts +1 -1
- package/src/cli/cmd/providers.ts +1 -1
- package/src/cli/cmd/run.ts +1 -1
- package/src/cli/cmd/tui/component/dialog-provider.tsx +1 -1
- package/src/cli/cmd/tui/component/dialog-workspace-list.tsx +1 -1
- package/src/cli/cmd/tui/component/prompt/history.tsx +1 -1
- package/src/cli/cmd/tui/component/prompt/index.tsx +1 -1
- package/src/cli/cmd/tui/context/sdk.tsx +1 -1
- package/src/cli/cmd/tui/context/sync.tsx +4 -4
- package/src/cli/cmd/tui/context/theme.tsx +1 -1
- package/src/cli/cmd/tui/feature-plugins/home/footer.tsx +1 -1
- package/src/cli/cmd/tui/feature-plugins/home/tips.tsx +1 -1
- package/src/cli/cmd/tui/feature-plugins/sidebar/context.tsx +2 -2
- package/src/cli/cmd/tui/feature-plugins/sidebar/files.tsx +1 -1
- package/src/cli/cmd/tui/feature-plugins/sidebar/footer.tsx +1 -1
- package/src/cli/cmd/tui/feature-plugins/sidebar/lsp.tsx +1 -1
- package/src/cli/cmd/tui/feature-plugins/sidebar/mcp.tsx +1 -1
- package/src/cli/cmd/tui/feature-plugins/sidebar/todo.tsx +1 -1
- package/src/cli/cmd/tui/feature-plugins/system/invite.tsx +1 -1
- package/src/cli/cmd/tui/feature-plugins/system/plugins.tsx +1 -1
- package/src/cli/cmd/tui/plugin/api.tsx +2 -2
- package/src/cli/cmd/tui/plugin/internal.ts +1 -1
- package/src/cli/cmd/tui/plugin/runtime.ts +1 -1
- package/src/cli/cmd/tui/plugin/slots.tsx +1 -1
- package/src/cli/cmd/tui/routes/session/dialog-fork-from-timeline.tsx +1 -1
- package/src/cli/cmd/tui/routes/session/dialog-timeline.tsx +1 -1
- package/src/cli/cmd/tui/routes/session/index.tsx +1 -1
- package/src/cli/cmd/tui/routes/session/permission.tsx +1 -1
- package/src/cli/cmd/tui/routes/session/question.tsx +1 -1
- package/src/cli/cmd/tui/routes/session/subagent-footer.tsx +1 -1
- package/src/cli/cmd/tui/thread.ts +1 -1
- package/src/cli/cmd/tui/util/transcript.ts +1 -1
- package/src/cli/cmd/tui/worker.ts +1 -1
- package/src/cli/ui.ts +1 -1
- package/src/config/config.ts +5 -5
- package/src/config/markdown.ts +1 -1
- package/src/config/paths.ts +1 -1
- package/src/file/ripgrep.ts +1 -1
- package/src/ide/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/lsp/client.ts +1 -1
- package/src/lsp/server.ts +1 -1
- package/src/mcp/index.ts +1 -1
- package/src/plugin/codex.ts +1 -1
- package/src/plugin/copilot.ts +1 -1
- package/src/plugin/index.ts +3 -3
- package/src/provider/auth.ts +2 -2
- package/src/provider/provider.ts +1 -1
- package/src/pty/index.ts +1 -1
- package/src/server/middleware.ts +1 -1
- package/src/server/routes/session.ts +1 -1
- package/src/session/index.ts +1 -1
- package/src/session/message-v2.ts +1 -1
- package/src/session/message.ts +1 -1
- package/src/session/prompt.ts +1 -1
- package/src/session/retry.ts +1 -1
- package/src/share/share-next.ts +1 -1
- package/src/skill/index.ts +1 -1
- package/src/storage/db.ts +1 -1
- package/src/storage/storage.ts +1 -1
- package/src/tool/registry.ts +1 -1
- package/src/worktree/index.ts +2 -2
- package/test/acp/event-subscription.test.ts +1 -1
- package/test/cli/plugin-auth-picker.test.ts +1 -1
- package/test/cli/tui/transcript.test.ts +1 -1
- package/test/config/config.test.ts +3 -3
- package/test/fixture/tui-plugin.ts +1 -1
- package/test/session/prompt.test.ts +1 -1
- package/test/session/retry.test.ts +1 -1
- package/test/tool/registry.test.ts +1 -1
- package/test/util/module.test.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"name": "@vikasitai/vikasit-code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@babel/core": "7.28.4",
|
|
39
39
|
"@effect/language-service": "0.79.0",
|
|
40
40
|
"@octokit/webhooks-types": "7.6.1",
|
|
41
|
-
"@
|
|
41
|
+
"@vikasitai/script": "workspace:*",
|
|
42
42
|
"@parcel/watcher-darwin-arm64": "2.5.1",
|
|
43
43
|
"@parcel/watcher-darwin-x64": "2.5.1",
|
|
44
44
|
"@parcel/watcher-linux-arm64-glibc": "2.5.1",
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
"@solid-primitives/event-bus": "1.1.2",
|
|
106
106
|
"@solid-primitives/scheduled": "1.5.2",
|
|
107
107
|
"@standard-schema/spec": "1.0.0",
|
|
108
|
-
"@
|
|
109
|
-
"@
|
|
110
|
-
"@
|
|
111
|
-
"@
|
|
108
|
+
"@vikasitai/plugin": "workspace:*",
|
|
109
|
+
"@vikasitai/script": "workspace:*",
|
|
110
|
+
"@vikasitai/sdk": "workspace:*",
|
|
111
|
+
"@vikasitai/util": "workspace:*",
|
|
112
112
|
"@zip.js/zip.js": "2.7.62",
|
|
113
113
|
"ai": "catalog:",
|
|
114
114
|
"ai-gateway-provider": "3.1.2",
|
package/script/build.ts
CHANGED
|
@@ -12,7 +12,7 @@ const dir = path.resolve(__dirname, "..")
|
|
|
12
12
|
|
|
13
13
|
process.chdir(dir)
|
|
14
14
|
|
|
15
|
-
import { Script } from "@
|
|
15
|
+
import { Script } from "@vikasitai/script"
|
|
16
16
|
import pkg from "../package.json"
|
|
17
17
|
|
|
18
18
|
const modelsUrl = process.env.VIKASIT_MODELS_URL || "https://models.dev"
|
package/script/publish.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { $ } from "bun"
|
|
3
3
|
import pkg from "../package.json"
|
|
4
|
-
import { Script } from "@
|
|
4
|
+
import { Script } from "@vikasitai/script"
|
|
5
5
|
import { fileURLToPath } from "url"
|
|
6
6
|
|
|
7
7
|
const dir = fileURLToPath(new URL("..", import.meta.url))
|
package/src/acp/agent.ts
CHANGED
|
@@ -43,7 +43,7 @@ import { Config } from "@/config/config"
|
|
|
43
43
|
import { Todo } from "@/session/todo"
|
|
44
44
|
import { z } from "zod"
|
|
45
45
|
import { LoadAPIKeyError } from "ai"
|
|
46
|
-
import type { AssistantMessage, Event, OpencodeClient, SessionMessageResponse, ToolPart } from "@
|
|
46
|
+
import type { AssistantMessage, Event, OpencodeClient, SessionMessageResponse, ToolPart } from "@vikasitai/sdk/v2"
|
|
47
47
|
import { applyPatch } from "diff"
|
|
48
48
|
|
|
49
49
|
type ModeOption = { id: string; name: string; description?: string }
|
package/src/acp/session.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestError, type McpServer } from "@agentclientprotocol/sdk"
|
|
2
2
|
import type { ACPSessionState } from "./types"
|
|
3
3
|
import { Log } from "@/util/log"
|
|
4
|
-
import type { OpencodeClient } from "@
|
|
4
|
+
import type { OpencodeClient } from "@vikasitai/sdk/v2"
|
|
5
5
|
|
|
6
6
|
const log = Log.create({ service: "acp-session-manager" })
|
|
7
7
|
|
package/src/acp/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { McpServer } from "@agentclientprotocol/sdk"
|
|
2
|
-
import type { OpencodeClient } from "@
|
|
2
|
+
import type { OpencodeClient } from "@vikasitai/sdk/v2"
|
|
3
3
|
import type { ProviderID, ModelID } from "../provider/schema"
|
|
4
4
|
|
|
5
5
|
export interface ACPSessionState {
|
package/src/bun/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Global } from "../global"
|
|
|
3
3
|
import { Log } from "../util/log"
|
|
4
4
|
import path from "path"
|
|
5
5
|
import { Filesystem } from "../util/filesystem"
|
|
6
|
-
import { NamedError } from "@
|
|
6
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
7
7
|
import { Lock } from "../util/lock"
|
|
8
8
|
import { PackageRegistry } from "./registry"
|
|
9
9
|
import { online, proxied } from "@/util/network"
|
package/src/cli/cmd/acp.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { cmd } from "./cmd"
|
|
|
4
4
|
import { AgentSideConnection, ndJsonStream } from "@agentclientprotocol/sdk"
|
|
5
5
|
import { ACP } from "@/acp/agent"
|
|
6
6
|
import { Server } from "@/server/server"
|
|
7
|
-
import { createOpencodeClient } from "@
|
|
7
|
+
import { createOpencodeClient } from "@vikasitai/sdk/v2"
|
|
8
8
|
import { withNetworkOptions, resolveNetworkOptions } from "../network"
|
|
9
9
|
|
|
10
10
|
const log = Log.create({ service: "acp-command" })
|
package/src/cli/cmd/generate.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const GenerateCommand = {
|
|
|
14
14
|
{
|
|
15
15
|
lang: "js",
|
|
16
16
|
source: [
|
|
17
|
-
`import { createOpencodeClient } from "@
|
|
17
|
+
`import { createOpencodeClient } from "@vikasitai/sdk`,
|
|
18
18
|
``,
|
|
19
19
|
`const client = createOpencodeClient()`,
|
|
20
20
|
`await client.${operation.operationId}({`,
|
package/src/cli/cmd/import.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Argv } from "yargs"
|
|
2
|
-
import type { Session as SDKSession, Message, Part } from "@
|
|
2
|
+
import type { Session as SDKSession, Message, Part } from "@vikasitai/sdk/v2"
|
|
3
3
|
import { Session } from "../../session"
|
|
4
4
|
import { MessageV2 } from "../../session/message-v2"
|
|
5
5
|
import { cmd } from "./cmd"
|
package/src/cli/cmd/providers.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { Config } from "../../config/config"
|
|
|
10
10
|
import { Global } from "../../global"
|
|
11
11
|
import { Plugin } from "../../plugin"
|
|
12
12
|
import { Instance } from "../../project/instance"
|
|
13
|
-
import type { Hooks } from "@
|
|
13
|
+
import type { Hooks } from "@vikasitai/plugin"
|
|
14
14
|
import { Process } from "../../util/process"
|
|
15
15
|
import { text } from "node:stream/consumers"
|
|
16
16
|
|
package/src/cli/cmd/run.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Flag } from "../../flag/flag"
|
|
|
7
7
|
import { bootstrap } from "../bootstrap"
|
|
8
8
|
import { EOL } from "os"
|
|
9
9
|
import { Filesystem } from "../../util/filesystem"
|
|
10
|
-
import { createOpencodeClient, type Message, type OpencodeClient, type ToolPart } from "@
|
|
10
|
+
import { createOpencodeClient, type Message, type OpencodeClient, type ToolPart } from "@vikasitai/sdk/v2"
|
|
11
11
|
import { Server } from "../../server/server"
|
|
12
12
|
import { Provider } from "../../provider/provider"
|
|
13
13
|
import { Agent } from "../../agent/agent"
|
|
@@ -8,7 +8,7 @@ import { DialogPrompt } from "../ui/dialog-prompt"
|
|
|
8
8
|
import { Link } from "../ui/link"
|
|
9
9
|
import { useTheme } from "../context/theme"
|
|
10
10
|
import { TextAttributes } from "@opentui/core"
|
|
11
|
-
import type { ProviderAuthAuthorization, ProviderAuthMethod } from "@
|
|
11
|
+
import type { ProviderAuthAuthorization, ProviderAuthMethod } from "@vikasitai/sdk/v2"
|
|
12
12
|
import { DialogModel } from "./dialog-model"
|
|
13
13
|
import { useKeyboard } from "@opentui/solid"
|
|
14
14
|
import { Clipboard } from "@tui/util/clipboard"
|
|
@@ -3,7 +3,7 @@ import { DialogSelect } from "@tui/ui/dialog-select"
|
|
|
3
3
|
import { useRoute } from "@tui/context/route"
|
|
4
4
|
import { useSync } from "@tui/context/sync"
|
|
5
5
|
import { createEffect, createMemo, createSignal, onMount } from "solid-js"
|
|
6
|
-
import { createOpencodeClient, type Session } from "@
|
|
6
|
+
import { createOpencodeClient, type Session } from "@vikasitai/sdk/v2"
|
|
7
7
|
import { useSDK } from "../context/sdk"
|
|
8
8
|
import { useToast } from "../ui/toast"
|
|
9
9
|
import { useKeybind } from "../context/keybind"
|
|
@@ -5,7 +5,7 @@ import { onMount } from "solid-js"
|
|
|
5
5
|
import { createStore, produce, unwrap } from "solid-js/store"
|
|
6
6
|
import { createSimpleContext } from "../../context/helper"
|
|
7
7
|
import { appendFile, writeFile } from "fs/promises"
|
|
8
|
-
import type { AgentPart, FilePart, TextPart } from "@
|
|
8
|
+
import type { AgentPart, FilePart, TextPart } from "@vikasitai/sdk/v2"
|
|
9
9
|
|
|
10
10
|
export type PromptInfo = {
|
|
11
11
|
input: string
|
|
@@ -22,7 +22,7 @@ import { useKeyboard, useRenderer } from "@opentui/solid"
|
|
|
22
22
|
import { Editor } from "@tui/util/editor"
|
|
23
23
|
import { useExit } from "../../context/exit"
|
|
24
24
|
import { Clipboard } from "../../util/clipboard"
|
|
25
|
-
import type { AssistantMessage, FilePart } from "@
|
|
25
|
+
import type { AssistantMessage, FilePart } from "@vikasitai/sdk/v2"
|
|
26
26
|
import { TuiEvent } from "../../event"
|
|
27
27
|
import { iife } from "@/util/iife"
|
|
28
28
|
import { Locale } from "@/util/locale"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createOpencodeClient, type Event } from "@
|
|
1
|
+
import { createOpencodeClient, type Event } from "@vikasitai/sdk/v2"
|
|
2
2
|
import { createSimpleContext } from "./helper"
|
|
3
3
|
import { createGlobalEmitter } from "@solid-primitives/event-bus"
|
|
4
4
|
import { batch, onCleanup, onMount } from "solid-js"
|
|
@@ -17,18 +17,18 @@ import type {
|
|
|
17
17
|
ProviderListResponse,
|
|
18
18
|
ProviderAuthMethod,
|
|
19
19
|
VcsInfo,
|
|
20
|
-
} from "@
|
|
20
|
+
} from "@vikasitai/sdk/v2"
|
|
21
21
|
import { createStore, produce, reconcile } from "solid-js/store"
|
|
22
22
|
import { useSDK } from "@tui/context/sdk"
|
|
23
|
-
import { Binary } from "@
|
|
23
|
+
import { Binary } from "@vikasitai/util/binary"
|
|
24
24
|
import { createSimpleContext } from "./helper"
|
|
25
25
|
import type { Snapshot } from "@/snapshot"
|
|
26
26
|
import { useExit } from "./exit"
|
|
27
27
|
import { useArgs } from "./args"
|
|
28
28
|
import { batch, onMount } from "solid-js"
|
|
29
29
|
import { Log } from "@/util/log"
|
|
30
|
-
import type { Path } from "@
|
|
31
|
-
import type { Workspace } from "@
|
|
30
|
+
import type { Path } from "@vikasitai/sdk"
|
|
31
|
+
import type { Workspace } from "@vikasitai/sdk/v2"
|
|
32
32
|
|
|
33
33
|
export const { use: useSync, provider: SyncProvider } = createSimpleContext({
|
|
34
34
|
name: "Sync",
|
|
@@ -43,7 +43,7 @@ import { Global } from "@/global"
|
|
|
43
43
|
import { Filesystem } from "@/util/filesystem"
|
|
44
44
|
import { useTuiConfig } from "./tui-config"
|
|
45
45
|
import { isRecord } from "@/util/record"
|
|
46
|
-
import type { TuiThemeCurrent } from "@
|
|
46
|
+
import type { TuiThemeCurrent } from "@vikasitai/plugin/tui"
|
|
47
47
|
|
|
48
48
|
type Theme = TuiThemeCurrent & {
|
|
49
49
|
_hasSelectedListItemText: boolean
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@
|
|
1
|
+
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@vikasitai/plugin/tui"
|
|
2
2
|
import { createMemo, Match, Show, Switch } from "solid-js"
|
|
3
3
|
import { Global } from "@/global"
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AssistantMessage } from "@
|
|
2
|
-
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@
|
|
1
|
+
import type { AssistantMessage } from "@vikasitai/sdk/v2"
|
|
2
|
+
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@vikasitai/plugin/tui"
|
|
3
3
|
import { createMemo } from "solid-js"
|
|
4
4
|
|
|
5
5
|
const id = "internal:sidebar-context"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@
|
|
1
|
+
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@vikasitai/plugin/tui"
|
|
2
2
|
import { createMemo, For, Show, createSignal } from "solid-js"
|
|
3
3
|
|
|
4
4
|
const id = "internal:sidebar-files"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@
|
|
1
|
+
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@vikasitai/plugin/tui"
|
|
2
2
|
import { createMemo, For, Show, createSignal } from "solid-js"
|
|
3
3
|
|
|
4
4
|
const id = "internal:sidebar-lsp"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@
|
|
1
|
+
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@vikasitai/plugin/tui"
|
|
2
2
|
import { createMemo, For, Match, Show, Switch, createSignal } from "solid-js"
|
|
3
3
|
|
|
4
4
|
const id = "internal:sidebar-mcp"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@
|
|
1
|
+
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@vikasitai/plugin/tui"
|
|
2
2
|
import { createMemo, For, Show, createSignal } from "solid-js"
|
|
3
3
|
import { TodoItem } from "../../component/todo-item"
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@
|
|
1
|
+
import type { TuiPlugin, TuiPluginApi, TuiPluginModule } from "@vikasitai/plugin/tui"
|
|
2
2
|
import { createSignal } from "solid-js"
|
|
3
3
|
import { DialogPrompt } from "@tui/ui/dialog-prompt"
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Keybind } from "@/util/keybind"
|
|
2
|
-
import type { TuiPlugin, TuiPluginApi, TuiPluginModule, TuiPluginStatus } from "@
|
|
2
|
+
import type { TuiPlugin, TuiPluginApi, TuiPluginModule, TuiPluginStatus } from "@vikasitai/plugin/tui"
|
|
3
3
|
import { useKeyboard, useTerminalDimensions } from "@opentui/solid"
|
|
4
4
|
import { fileURLToPath } from "url"
|
|
5
5
|
import { DialogSelect, type DialogSelectOption } from "@tui/ui/dialog-select"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ParsedKey } from "@opentui/core"
|
|
2
|
-
import type { TuiDialogSelectOption, TuiPluginApi, TuiRouteDefinition } from "@
|
|
2
|
+
import type { TuiDialogSelectOption, TuiPluginApi, TuiRouteDefinition } from "@vikasitai/plugin/tui"
|
|
3
3
|
import type { useCommandDialog } from "@tui/component/dialog-command"
|
|
4
4
|
import type { useKeybind } from "@tui/context/keybind"
|
|
5
5
|
import type { useRoute } from "@tui/context/route"
|
|
@@ -17,7 +17,7 @@ import { DialogSelect, type DialogSelectOption as SelectOption } from "../ui/dia
|
|
|
17
17
|
import { Prompt } from "../component/prompt"
|
|
18
18
|
import type { useToast } from "../ui/toast"
|
|
19
19
|
import { Installation } from "@/installation"
|
|
20
|
-
import { createOpencodeClient, type OpencodeClient } from "@
|
|
20
|
+
import { createOpencodeClient, type OpencodeClient } from "@vikasitai/sdk/v2"
|
|
21
21
|
|
|
22
22
|
type RouteEntry = {
|
|
23
23
|
key: symbol
|
|
@@ -8,7 +8,7 @@ import SidebarFiles from "../feature-plugins/sidebar/files"
|
|
|
8
8
|
import SidebarFooter from "../feature-plugins/sidebar/footer"
|
|
9
9
|
import PluginManager from "../feature-plugins/system/plugins"
|
|
10
10
|
import Invite from "../feature-plugins/system/invite"
|
|
11
|
-
import type { TuiPlugin, TuiPluginModule } from "@
|
|
11
|
+
import type { TuiPlugin, TuiPluginModule } from "@vikasitai/plugin/tui"
|
|
12
12
|
|
|
13
13
|
export type InternalTuiPlugin = TuiPluginModule & {
|
|
14
14
|
id: string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SlotMode, type TuiPluginApi, type TuiSlotContext, type TuiSlotMap } from "@
|
|
1
|
+
import { type SlotMode, type TuiPluginApi, type TuiSlotContext, type TuiSlotMap } from "@vikasitai/plugin/tui"
|
|
2
2
|
import { createSlot, createSolidSlotRegistry, type JSX, type SolidPlugin } from "@opentui/solid"
|
|
3
3
|
import { isRecord } from "@/util/record"
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createMemo, onMount } from "solid-js"
|
|
2
2
|
import { useSync } from "@tui/context/sync"
|
|
3
3
|
import { DialogSelect, type DialogSelectOption } from "@tui/ui/dialog-select"
|
|
4
|
-
import type { TextPart } from "@
|
|
4
|
+
import type { TextPart } from "@vikasitai/sdk/v2"
|
|
5
5
|
import { Locale } from "@/util/locale"
|
|
6
6
|
import { useSDK } from "@tui/context/sdk"
|
|
7
7
|
import { useRoute } from "@tui/context/route"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createMemo, onMount } from "solid-js"
|
|
2
2
|
import { useSync } from "@tui/context/sync"
|
|
3
3
|
import { DialogSelect, type DialogSelectOption } from "@tui/ui/dialog-select"
|
|
4
|
-
import type { TextPart } from "@
|
|
4
|
+
import type { TextPart } from "@vikasitai/sdk/v2"
|
|
5
5
|
import { Locale } from "@/util/locale"
|
|
6
6
|
import { DialogMessage } from "./dialog-message"
|
|
7
7
|
import { useDialog } from "../../ui/dialog"
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
RGBA,
|
|
30
30
|
} from "@opentui/core"
|
|
31
31
|
import { Prompt, type PromptRef } from "@tui/component/prompt"
|
|
32
|
-
import type { AssistantMessage, Part, ToolPart, UserMessage, TextPart, ReasoningPart } from "@
|
|
32
|
+
import type { AssistantMessage, Part, ToolPart, UserMessage, TextPart, ReasoningPart } from "@vikasitai/sdk/v2"
|
|
33
33
|
import { useLocal } from "@tui/context/local"
|
|
34
34
|
import { Locale } from "@/util/locale"
|
|
35
35
|
import type { Tool } from "@/tool/tool"
|
|
@@ -4,7 +4,7 @@ import { Portal, useKeyboard, useRenderer, useTerminalDimensions, type JSX } fro
|
|
|
4
4
|
import type { TextareaRenderable } from "@opentui/core"
|
|
5
5
|
import { useKeybind } from "../../context/keybind"
|
|
6
6
|
import { useTheme, selectedForeground } from "../../context/theme"
|
|
7
|
-
import type { PermissionRequest } from "@
|
|
7
|
+
import type { PermissionRequest } from "@vikasitai/sdk/v2"
|
|
8
8
|
import { useSDK } from "../../context/sdk"
|
|
9
9
|
import { SplitBorder } from "../../component/border"
|
|
10
10
|
import { useSync } from "../../context/sync"
|
|
@@ -4,7 +4,7 @@ import { useKeyboard } from "@opentui/solid"
|
|
|
4
4
|
import type { TextareaRenderable } from "@opentui/core"
|
|
5
5
|
import { useKeybind } from "../../context/keybind"
|
|
6
6
|
import { selectedForeground, tint, useTheme } from "../../context/theme"
|
|
7
|
-
import type { QuestionAnswer, QuestionRequest } from "@
|
|
7
|
+
import type { QuestionAnswer, QuestionRequest } from "@vikasitai/sdk/v2"
|
|
8
8
|
import { useSDK } from "../../context/sdk"
|
|
9
9
|
import { SplitBorder } from "../../component/border"
|
|
10
10
|
import { useTextareaKeybindings } from "../../component/textarea-keybindings"
|
|
@@ -3,7 +3,7 @@ import { useRouteData } from "@tui/context/route"
|
|
|
3
3
|
import { useSync } from "@tui/context/sync"
|
|
4
4
|
import { useTheme } from "@tui/context/theme"
|
|
5
5
|
import { SplitBorder } from "@tui/component/border"
|
|
6
|
-
import type { AssistantMessage } from "@
|
|
6
|
+
import type { AssistantMessage } from "@vikasitai/sdk/v2"
|
|
7
7
|
import { useCommandDialog } from "@tui/component/dialog-command"
|
|
8
8
|
import { useKeybind } from "../../context/keybind"
|
|
9
9
|
import { Locale } from "@/util/locale"
|
|
@@ -10,7 +10,7 @@ import { errorMessage } from "@/util/error"
|
|
|
10
10
|
import { withTimeout } from "@/util/timeout"
|
|
11
11
|
import { withNetworkOptions, resolveNetworkOptions } from "@/cli/network"
|
|
12
12
|
import { Filesystem } from "@/util/filesystem"
|
|
13
|
-
import type { Event } from "@
|
|
13
|
+
import type { Event } from "@vikasitai/sdk/v2"
|
|
14
14
|
import type { EventSource } from "./context/sdk"
|
|
15
15
|
import { win32DisableProcessedInput, win32InstallCtrlCGuard } from "./win32"
|
|
16
16
|
import { TuiConfig } from "@/config/tui"
|
|
@@ -8,7 +8,7 @@ import { upgrade } from "@/cli/upgrade"
|
|
|
8
8
|
import { Config } from "@/config/config"
|
|
9
9
|
import { Bus } from "@/bus"
|
|
10
10
|
import { GlobalBus } from "@/bus/global"
|
|
11
|
-
import type { Event } from "@
|
|
11
|
+
import type { Event } from "@vikasitai/sdk/v2"
|
|
12
12
|
import { Flag } from "@/flag/flag"
|
|
13
13
|
import { setTimeout as sleep } from "node:timers/promises"
|
|
14
14
|
import { writeHeapSnapshot } from "node:v8"
|
package/src/cli/ui.ts
CHANGED
package/src/config/config.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { ModelsDev } from "../provider/models"
|
|
|
7
7
|
import { mergeDeep, pipe, unique } from "remeda"
|
|
8
8
|
import { Global } from "../global"
|
|
9
9
|
import fsNode from "fs/promises"
|
|
10
|
-
import { NamedError } from "@
|
|
10
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
11
11
|
import { Flag } from "../flag/flag"
|
|
12
12
|
import { Auth } from "../auth"
|
|
13
13
|
import { Env } from "../env"
|
|
@@ -114,7 +114,7 @@ export namespace Config {
|
|
|
114
114
|
}))
|
|
115
115
|
json.dependencies = {
|
|
116
116
|
...json.dependencies,
|
|
117
|
-
"@
|
|
117
|
+
"@vikasitai/plugin": target,
|
|
118
118
|
}
|
|
119
119
|
await Filesystem.writeJson(pkg, json)
|
|
120
120
|
|
|
@@ -198,16 +198,16 @@ export namespace Config {
|
|
|
198
198
|
|
|
199
199
|
const parsed = await Filesystem.readJson<{ dependencies?: Record<string, string> }>(pkg).catch(() => null)
|
|
200
200
|
const dependencies = parsed?.dependencies ?? {}
|
|
201
|
-
const depVersion = dependencies["@
|
|
201
|
+
const depVersion = dependencies["@vikasitai/plugin"]
|
|
202
202
|
if (!depVersion) return true
|
|
203
203
|
|
|
204
204
|
const targetVersion = Installation.isLocal() ? "latest" : Installation.VERSION
|
|
205
205
|
if (targetVersion === "latest") {
|
|
206
206
|
if (!online()) return false
|
|
207
|
-
const stale = await PackageRegistry.isOutdated("@
|
|
207
|
+
const stale = await PackageRegistry.isOutdated("@vikasitai/plugin", depVersion, dir)
|
|
208
208
|
if (!stale) return false
|
|
209
209
|
log.info("Cached version is outdated, proceeding with install", {
|
|
210
|
-
pkg: "@
|
|
210
|
+
pkg: "@vikasitai/plugin",
|
|
211
211
|
cachedVersion: depVersion,
|
|
212
212
|
})
|
|
213
213
|
return true
|
package/src/config/markdown.ts
CHANGED
package/src/config/paths.ts
CHANGED
|
@@ -2,7 +2,7 @@ import path from "path"
|
|
|
2
2
|
import os from "os"
|
|
3
3
|
import z from "zod"
|
|
4
4
|
import { type ParseError as JsoncParseError, parse as parseJsonc, printParseErrorCode } from "jsonc-parser"
|
|
5
|
-
import { NamedError } from "@
|
|
5
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
6
6
|
import { Filesystem } from "@/util/filesystem"
|
|
7
7
|
import { Flag } from "@/flag/flag"
|
|
8
8
|
import { Global } from "@/global"
|
package/src/file/ripgrep.ts
CHANGED
|
@@ -3,7 +3,7 @@ import path from "path"
|
|
|
3
3
|
import { Global } from "../global"
|
|
4
4
|
import fs from "fs/promises"
|
|
5
5
|
import z from "zod"
|
|
6
|
-
import { NamedError } from "@
|
|
6
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
7
7
|
import { lazy } from "../util/lazy"
|
|
8
8
|
|
|
9
9
|
import { Filesystem } from "../util/filesystem"
|
package/src/ide/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BusEvent } from "@/bus/bus-event"
|
|
2
2
|
import { Bus } from "@/bus"
|
|
3
3
|
import z from "zod"
|
|
4
|
-
import { NamedError } from "@
|
|
4
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
5
5
|
import { Log } from "../util/log"
|
|
6
6
|
import { Process } from "@/util/process"
|
|
7
7
|
|
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { UninstallCommand } from "./cli/cmd/uninstall"
|
|
|
11
11
|
import { ModelsCommand } from "./cli/cmd/models"
|
|
12
12
|
import { UI } from "./cli/ui"
|
|
13
13
|
import { Installation } from "./installation"
|
|
14
|
-
import { NamedError } from "@
|
|
14
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
15
15
|
import { FormatError } from "./cli/error"
|
|
16
16
|
import { ServeCommand } from "./cli/cmd/serve"
|
|
17
17
|
import { Filesystem } from "./util/filesystem"
|
package/src/lsp/client.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { Process } from "../util/process"
|
|
|
9
9
|
import { LANGUAGE_EXTENSIONS } from "./language"
|
|
10
10
|
import z from "zod"
|
|
11
11
|
import type { LSPServer } from "./server"
|
|
12
|
-
import { NamedError } from "@
|
|
12
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
13
13
|
import { withTimeout } from "../util/timeout"
|
|
14
14
|
import { Instance } from "../project/instance"
|
|
15
15
|
import { Filesystem } from "../util/filesystem"
|
package/src/lsp/server.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { Flag } from "../flag/flag"
|
|
|
12
12
|
import { Archive } from "../util/archive"
|
|
13
13
|
import { Process } from "../util/process"
|
|
14
14
|
import { which } from "../util/which"
|
|
15
|
-
import { Module } from "@
|
|
15
|
+
import { Module } from "@vikasitai/util/module"
|
|
16
16
|
import { spawn } from "./launch"
|
|
17
17
|
|
|
18
18
|
export namespace LSPServer {
|
package/src/mcp/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@modelcontextprotocol/sdk/types.js"
|
|
12
12
|
import { Config } from "../config/config"
|
|
13
13
|
import { Log } from "../util/log"
|
|
14
|
-
import { NamedError } from "@
|
|
14
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
15
15
|
import z from "zod/v4"
|
|
16
16
|
import { Instance } from "../project/instance"
|
|
17
17
|
import { Installation } from "../installation"
|
package/src/plugin/codex.ts
CHANGED
package/src/plugin/copilot.ts
CHANGED
package/src/plugin/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Hooks, PluginInput, Plugin as PluginInstance, PluginModule } from "@
|
|
1
|
+
import type { Hooks, PluginInput, Plugin as PluginInstance, PluginModule } from "@vikasitai/plugin"
|
|
2
2
|
import { Config } from "../config/config"
|
|
3
3
|
import { Bus } from "../bus"
|
|
4
4
|
import { Log } from "../util/log"
|
|
5
|
-
import { createOpencodeClient } from "@
|
|
5
|
+
import { createOpencodeClient } from "@vikasitai/sdk"
|
|
6
6
|
import { Flag } from "../flag/flag"
|
|
7
7
|
import { CodexAuthPlugin } from "./codex"
|
|
8
8
|
import { Session } from "../session"
|
|
9
|
-
import { NamedError } from "@
|
|
9
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
10
10
|
import { CopilotAuthPlugin } from "./copilot"
|
|
11
11
|
import { gitlabAuthPlugin as GitlabAuthPlugin } from "opencode-gitlab-auth"
|
|
12
12
|
import { PoeAuthPlugin } from "opencode-poe-auth"
|
package/src/provider/auth.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AuthOAuthResult, Hooks } from "@
|
|
2
|
-
import { NamedError } from "@
|
|
1
|
+
import type { AuthOAuthResult, Hooks } from "@vikasitai/plugin"
|
|
2
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
3
3
|
import { Auth } from "@/auth"
|
|
4
4
|
import { InstanceState } from "@/effect/instance-state"
|
|
5
5
|
import { makeRuntime } from "@/effect/run-service"
|
package/src/provider/provider.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Log } from "../util/log"
|
|
|
8
8
|
import { BunProc } from "../bun"
|
|
9
9
|
import { Hash } from "../util/hash"
|
|
10
10
|
import { Plugin } from "../plugin"
|
|
11
|
-
import { NamedError } from "@
|
|
11
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
12
12
|
import { type LanguageModelV3 } from "@ai-sdk/provider"
|
|
13
13
|
import { ModelsDev } from "./models"
|
|
14
14
|
import { Auth } from "../auth"
|
package/src/pty/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Instance } from "@/project/instance"
|
|
|
6
6
|
import { type IPty } from "bun-pty"
|
|
7
7
|
import z from "zod"
|
|
8
8
|
import { Log } from "../util/log"
|
|
9
|
-
import { lazy } from "@
|
|
9
|
+
import { lazy } from "@vikasitai/util/lazy"
|
|
10
10
|
import { Shell } from "@/shell/shell"
|
|
11
11
|
import { Plugin } from "@/plugin"
|
|
12
12
|
import { PtyID } from "./schema"
|
package/src/server/middleware.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Provider } from "../provider/provider"
|
|
2
|
-
import { NamedError } from "@
|
|
2
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
3
3
|
import { NotFoundError } from "../storage/db"
|
|
4
4
|
import { Session } from "../session"
|
|
5
5
|
import type { ContentfulStatusCode } from "hono/utils/http-status"
|
|
@@ -20,7 +20,7 @@ import { ModelID, ProviderID } from "@/provider/schema"
|
|
|
20
20
|
import { errors } from "../error"
|
|
21
21
|
import { lazy } from "../../util/lazy"
|
|
22
22
|
import { Bus } from "../../bus"
|
|
23
|
-
import { NamedError } from "@
|
|
23
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
24
24
|
|
|
25
25
|
const log = Log.create({ service: "server" })
|
|
26
26
|
|
package/src/session/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BusEvent } from "@/bus/bus-event"
|
|
2
2
|
import { SessionID, MessageID, PartID } from "./schema"
|
|
3
3
|
import z from "zod"
|
|
4
|
-
import { NamedError } from "@
|
|
4
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
5
5
|
import { APICallError, convertToModelMessages, LoadAPIKeyError, type ModelMessage, type UIMessage } from "ai"
|
|
6
6
|
import { LSP } from "../lsp"
|
|
7
7
|
import { Snapshot } from "@/snapshot"
|
package/src/session/message.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from "zod"
|
|
2
2
|
import { SessionID } from "./schema"
|
|
3
3
|
import { ModelID, ProviderID } from "../provider/schema"
|
|
4
|
-
import { NamedError } from "@
|
|
4
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
5
5
|
|
|
6
6
|
export namespace Message {
|
|
7
7
|
export const OutputLengthError = NamedError.create("MessageOutputLengthError", z.object({}))
|
package/src/session/prompt.ts
CHANGED
|
@@ -33,7 +33,7 @@ import { Command } from "../command"
|
|
|
33
33
|
import { pathToFileURL, fileURLToPath } from "url"
|
|
34
34
|
import { ConfigMarkdown } from "../config/markdown"
|
|
35
35
|
import { SessionSummary } from "./summary"
|
|
36
|
-
import { NamedError } from "@
|
|
36
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
37
37
|
import { SessionProcessor } from "./processor"
|
|
38
38
|
import { TaskTool } from "@/tool/task"
|
|
39
39
|
import { Tool } from "@/tool/tool"
|
package/src/session/retry.ts
CHANGED
package/src/share/share-next.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { MessageV2 } from "@/session/message-v2"
|
|
|
9
9
|
import { Database, eq } from "@/storage/db"
|
|
10
10
|
import { SessionShareTable } from "./share.sql"
|
|
11
11
|
import { Log } from "@/util/log"
|
|
12
|
-
import type * as SDK from "@
|
|
12
|
+
import type * as SDK from "@vikasitai/sdk/v2"
|
|
13
13
|
|
|
14
14
|
export namespace ShareNext {
|
|
15
15
|
const log = Log.create({ service: "share-next" })
|
package/src/skill/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import path from "path"
|
|
|
3
3
|
import { pathToFileURL } from "url"
|
|
4
4
|
import z from "zod"
|
|
5
5
|
import { Effect, Layer, ServiceMap } from "effect"
|
|
6
|
-
import { NamedError } from "@
|
|
6
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
7
7
|
import type { Agent } from "@/agent/agent"
|
|
8
8
|
import { Bus } from "@/bus"
|
|
9
9
|
import { InstanceState } from "@/effect/instance-state"
|
package/src/storage/db.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Context } from "../util/context"
|
|
|
6
6
|
import { lazy } from "../util/lazy"
|
|
7
7
|
import { Global } from "../global"
|
|
8
8
|
import { Log } from "../util/log"
|
|
9
|
-
import { NamedError } from "@
|
|
9
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
10
10
|
import z from "zod"
|
|
11
11
|
import path from "path"
|
|
12
12
|
import { readFileSync, readdirSync, existsSync } from "fs"
|
package/src/storage/storage.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Log } from "../util/log"
|
|
2
2
|
import path from "path"
|
|
3
3
|
import { Global } from "../global"
|
|
4
|
-
import { NamedError } from "@
|
|
4
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
5
5
|
import z from "zod"
|
|
6
6
|
import { git } from "@/util/git"
|
|
7
7
|
import { AppFileSystem } from "@/filesystem"
|
package/src/tool/registry.ts
CHANGED
|
@@ -17,7 +17,7 @@ import type { Agent } from "../agent/agent"
|
|
|
17
17
|
import { Tool } from "./tool"
|
|
18
18
|
import { Config } from "../config/config"
|
|
19
19
|
import path from "path"
|
|
20
|
-
import { type ToolContext as PluginToolContext, type ToolDefinition } from "@
|
|
20
|
+
import { type ToolContext as PluginToolContext, type ToolDefinition } from "@vikasitai/plugin"
|
|
21
21
|
import z from "zod"
|
|
22
22
|
import { Plugin } from "../plugin"
|
|
23
23
|
import { ProviderID, type ModelID } from "../provider/schema"
|
package/src/worktree/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "zod"
|
|
2
|
-
import { NamedError } from "@
|
|
2
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
3
3
|
import { Global } from "../global"
|
|
4
4
|
import { Instance } from "../project/instance"
|
|
5
5
|
import { InstanceBootstrap } from "../project/bootstrap"
|
|
@@ -8,7 +8,7 @@ import { Database, eq } from "../storage/db"
|
|
|
8
8
|
import { ProjectTable } from "../project/project.sql"
|
|
9
9
|
import type { ProjectID } from "../project/schema"
|
|
10
10
|
import { Log } from "../util/log"
|
|
11
|
-
import { Slug } from "@
|
|
11
|
+
import { Slug } from "@vikasitai/util/slug"
|
|
12
12
|
import { errorMessage } from "../util/error"
|
|
13
13
|
import { BusEvent } from "@/bus/bus-event"
|
|
14
14
|
import { GlobalBus } from "@/bus/global"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test"
|
|
2
2
|
import { ACP } from "../../src/acp/agent"
|
|
3
3
|
import type { AgentSideConnection } from "@agentclientprotocol/sdk"
|
|
4
|
-
import type { Event, EventMessagePartUpdated, ToolStatePending, ToolStateRunning } from "@
|
|
4
|
+
import type { Event, EventMessagePartUpdated, ToolStatePending, ToolStateRunning } from "@vikasitai/sdk/v2"
|
|
5
5
|
import { Instance } from "../../src/project/instance"
|
|
6
6
|
import { tmpdir } from "../fixture/fixture"
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test, expect, describe } from "bun:test"
|
|
2
2
|
import { resolvePluginProviders } from "../../src/cli/cmd/providers"
|
|
3
|
-
import type { Hooks } from "@
|
|
3
|
+
import type { Hooks } from "@vikasitai/plugin"
|
|
4
4
|
|
|
5
5
|
function hookWithAuth(provider: string): Hooks {
|
|
6
6
|
return {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
formatPart,
|
|
6
6
|
formatTranscript,
|
|
7
7
|
} from "../../../src/cli/cmd/tui/util/transcript"
|
|
8
|
-
import type { AssistantMessage, Part, UserMessage } from "@
|
|
8
|
+
import type { AssistantMessage, Part, UserMessage } from "@vikasitai/sdk/v2"
|
|
9
9
|
|
|
10
10
|
describe("transcript", () => {
|
|
11
11
|
describe("formatAssistantHeader", () => {
|
|
@@ -772,7 +772,7 @@ test("installs dependencies in writable VIKASIT_CONFIG_DIR", async () => {
|
|
|
772
772
|
await fs.mkdir(mod, { recursive: true })
|
|
773
773
|
await Filesystem.write(
|
|
774
774
|
path.join(mod, "package.json"),
|
|
775
|
-
JSON.stringify({ name: "@
|
|
775
|
+
JSON.stringify({ name: "@vikasitai/plugin", version: "1.0.0" }),
|
|
776
776
|
)
|
|
777
777
|
return {
|
|
778
778
|
code: 0,
|
|
@@ -832,7 +832,7 @@ test("dedupes concurrent config dependency installs for the same dir", async ()
|
|
|
832
832
|
await fs.mkdir(mod, { recursive: true })
|
|
833
833
|
await Filesystem.write(
|
|
834
834
|
path.join(mod, "package.json"),
|
|
835
|
-
JSON.stringify({ name: "@
|
|
835
|
+
JSON.stringify({ name: "@vikasitai/plugin", version: "1.0.0" }),
|
|
836
836
|
)
|
|
837
837
|
return {
|
|
838
838
|
code: 0,
|
|
@@ -902,7 +902,7 @@ test("serializes config dependency installs across dirs", async () => {
|
|
|
902
902
|
await fs.mkdir(mod, { recursive: true })
|
|
903
903
|
await Filesystem.write(
|
|
904
904
|
path.join(mod, "package.json"),
|
|
905
|
-
JSON.stringify({ name: "@
|
|
905
|
+
JSON.stringify({ name: "@vikasitai/plugin", version: "1.0.0" }),
|
|
906
906
|
)
|
|
907
907
|
if (hit) {
|
|
908
908
|
open -= 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createOpencodeClient } from "@
|
|
1
|
+
import { createOpencodeClient } from "@vikasitai/sdk/v2"
|
|
2
2
|
import { RGBA, type CliRenderer } from "@opentui/core"
|
|
3
3
|
import { createPluginKeybind } from "../../src/cli/cmd/tui/context/plugin-keybinds"
|
|
4
4
|
import type { HostPluginApi } from "../../src/cli/cmd/tui/plugin/slots"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "path"
|
|
2
2
|
import { describe, expect, test } from "bun:test"
|
|
3
|
-
import { NamedError } from "@
|
|
3
|
+
import { NamedError } from "@vikasitai/util/error"
|
|
4
4
|
import { fileURLToPath } from "url"
|
|
5
5
|
import { Instance } from "../../src/project/instance"
|
|
6
6
|
import { ModelID, ProviderID } from "../../src/provider/schema"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test"
|
|
2
|
-
import type { NamedError } from "@
|
|
2
|
+
import type { NamedError } from "@vikasitai/util/error"
|
|
3
3
|
import { APICallError } from "ai"
|
|
4
4
|
import { setTimeout as sleep } from "node:timers/promises"
|
|
5
5
|
import { Effect, Schedule } from "effect"
|
package/test/util/module.test.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test"
|
|
2
2
|
import path from "path"
|
|
3
|
-
import { Module } from "@
|
|
3
|
+
import { Module } from "@vikasitai/util/module"
|
|
4
4
|
import { Filesystem } from "../../src/util/filesystem"
|
|
5
5
|
import { tmpdir } from "../fixture/fixture"
|
|
6
6
|
|