Skip to content

Commit 62ef2a2

Browse files
authored
refactor: rename shared package to core (anomalyco#24309)
1 parent 37aa844 commit 62ef2a2

166 files changed

Lines changed: 218 additions & 218 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: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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/shared": "workspace:*",
45+
"@opencode-ai/core": "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/shared/util/path"
12+
import { getFilename } from "@opencode-ai/core/util/path"
1313
import { Avatar } from "@opencode-ai/ui/avatar"
1414
import { useLanguage } from "@/context/language"
1515
import { getProjectAvatarSource } from "@/pages/layout/sidebar-items"

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/shared/util/encode"
12+
import { base64Encode } from "@opencode-ai/core/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/shared/util/path"
6+
import { getDirectory, getFilename } from "@opencode-ai/core/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/shared/util/encode"
8-
import { getDirectory, getFilename } from "@opencode-ai/shared/util/path"
7+
import { base64Encode } from "@opencode-ai/core/util/encode"
8+
import { getDirectory, getFilename } from "@opencode-ai/core/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/shared/util/path"
1+
import { getFilename } from "@opencode-ai/core/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/shared/util/path"
5+
import { getDirectory, getFilename, getFilenameTruncated } from "@opencode-ai/core/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/shared/util/path"
4+
import { getDirectory, getFilename } from "@opencode-ai/core/util/path"
55

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

packages/app/src/components/prompt-input/submit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ beforeAll(async () => {
7474
showToast: () => 0,
7575
}))
7676

77-
mock.module("@opencode-ai/shared/util/encode", () => ({
77+
mock.module("@opencode-ai/core/util/encode", () => ({
7878
base64Encode: (value: string) => value,
7979
}))
8080

0 commit comments

Comments
 (0)