Skip to content

Commit be9432a

Browse files
authored
shared package (#22626)
1 parent af20191 commit be9432a

144 files changed

Lines changed: 246 additions & 242 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bun.lock

Lines changed: 36 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"catalog": {
2929
"@effect/opentelemetry": "4.0.0-beta.48",
3030
"@effect/platform-node": "4.0.0-beta.48",
31+
"@npmcli/arborist": "9.4.0",
3132
"@types/bun": "1.3.11",
3233
"@types/cross-spawn": "6.0.6",
3334
"@octokit/rest": "22.0.0",
@@ -59,6 +60,7 @@
5960
"marked-shiki": "1.2.1",
6061
"remend": "1.3.0",
6162
"@playwright/test": "1.59.1",
63+
"semver": "7.7.4",
6264
"typescript": "5.8.2",
6365
"@typescript/native-preview": "7.0.0-dev.20251207.1",
6466
"zod": "4.1.8",

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@kobalte/core": "catalog:",
4343
"@opencode-ai/sdk": "workspace:*",
4444
"@opencode-ai/ui": "workspace:*",
45-
"@opencode-ai/util": "workspace:*",
45+
"@opencode-ai/shared": "workspace:*",
4646
"@shikijs/transformers": "3.9.2",
4747
"@solid-primitives/active-element": "2.1.3",
4848
"@solid-primitives/audio": "1.4.2",

packages/app/src/components/dialog-edit-project.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { createStore } from "solid-js/store"
99
import { useGlobalSDK } from "@/context/global-sdk"
1010
import { useGlobalSync } from "@/context/global-sync"
1111
import { type LocalProject, getAvatarColors } from "@/context/layout"
12-
import { getFilename } from "@opencode-ai/util/path"
12+
import { getFilename } from "@opencode-ai/shared/util/path"
1313
import { Avatar } from "@opencode-ai/ui/avatar"
1414
import { useLanguage } from "@/context/language"
1515

packages/app/src/components/dialog-fork.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { List } from "@opencode-ai/ui/list"
99
import { showToast } from "@opencode-ai/ui/toast"
1010
import { extractPromptFromParts } from "@/utils/prompt"
1111
import type { TextPart as SDKTextPart } from "@opencode-ai/sdk/v2/client"
12-
import { base64Encode } from "@opencode-ai/util/encode"
12+
import { base64Encode } from "@opencode-ai/shared/util/encode"
1313
import { useLanguage } from "@/context/language"
1414

1515
interface ForkableMessage {

packages/app/src/components/dialog-select-directory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Dialog } from "@opencode-ai/ui/dialog"
33
import { FileIcon } from "@opencode-ai/ui/file-icon"
44
import { List } from "@opencode-ai/ui/list"
55
import type { ListRef } from "@opencode-ai/ui/list"
6-
import { getDirectory, getFilename } from "@opencode-ai/util/path"
6+
import { getDirectory, getFilename } from "@opencode-ai/shared/util/path"
77
import fuzzysort from "fuzzysort"
88
import { createMemo, createResource, createSignal } from "solid-js"
99
import { useGlobalSDK } from "@/context/global-sdk"

packages/app/src/components/dialog-select-file.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { FileIcon } from "@opencode-ai/ui/file-icon"
44
import { Icon } from "@opencode-ai/ui/icon"
55
import { Keybind } from "@opencode-ai/ui/keybind"
66
import { List } from "@opencode-ai/ui/list"
7-
import { base64Encode } from "@opencode-ai/util/encode"
8-
import { getDirectory, getFilename } from "@opencode-ai/util/path"
7+
import { base64Encode } from "@opencode-ai/shared/util/encode"
8+
import { getDirectory, getFilename } from "@opencode-ai/shared/util/path"
99
import { useNavigate } from "@solidjs/router"
1010
import { createMemo, createSignal, Match, onCleanup, Show, Switch } from "solid-js"
1111
import { formatKeybind, useCommand, type CommandOption } from "@/context/command"

packages/app/src/components/prompt-input/build-request-parts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getFilename } from "@opencode-ai/util/path"
1+
import { getFilename } from "@opencode-ai/shared/util/path"
22
import { type AgentPartInput, type FilePartInput, type Part, type TextPartInput } from "@opencode-ai/sdk/v2/client"
33
import type { FileSelection } from "@/context/file"
44
import { encodeFilePath } from "@/context/file/path"

packages/app/src/components/prompt-input/context-items.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Component, For, Show } from "solid-js"
22
import { FileIcon } from "@opencode-ai/ui/file-icon"
33
import { IconButton } from "@opencode-ai/ui/icon-button"
44
import { Tooltip } from "@opencode-ai/ui/tooltip"
5-
import { getDirectory, getFilename, getFilenameTruncated } from "@opencode-ai/util/path"
5+
import { getDirectory, getFilename, getFilenameTruncated } from "@opencode-ai/shared/util/path"
66
import type { ContextItem } from "@/context/prompt"
77

88
type PromptContextItem = ContextItem & { key: string }

packages/app/src/components/prompt-input/slash-popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, For, Match, Show, Switch } from "solid-js"
22
import { FileIcon } from "@opencode-ai/ui/file-icon"
33
import { Icon } from "@opencode-ai/ui/icon"
4-
import { getDirectory, getFilename } from "@opencode-ai/util/path"
4+
import { getDirectory, getFilename } from "@opencode-ai/shared/util/path"
55

66
export type AtOption =
77
| { type: "agent"; name: string; display: string }

0 commit comments

Comments
 (0)