shared package (#22626)

This commit is contained in:
Dax 2026-04-15 10:26:20 -04:00 committed by GitHub
commit be9432a893
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
144 changed files with 246 additions and 242 deletions

View file

@ -13,7 +13,7 @@
"shell-prod": "sst shell --target Teams --stage production"
},
"dependencies": {
"@opencode-ai/util": "workspace:*",
"@opencode-ai/shared": "workspace:*",
"@opencode-ai/ui": "workspace:*",
"aws4fetch": "^1.0.20",
"@pierre/diffs": "catalog:",

View file

@ -1,6 +1,6 @@
import { Message, Model, Part, Session, SnapshotFileDiff } from "@opencode-ai/sdk/v2"
import { fn } from "@opencode-ai/util/fn"
import { iife } from "@opencode-ai/util/iife"
import { fn } from "@opencode-ai/shared/util/fn"
import { iife } from "@opencode-ai/shared/util/iife"
import z from "zod"
import { Storage } from "./storage"

View file

@ -1,5 +1,5 @@
import { AwsClient } from "aws4fetch"
import { lazy } from "@opencode-ai/util/lazy"
import { lazy } from "@opencode-ai/shared/util/lazy"
export namespace Storage {
export interface Adapter {

View file

@ -10,9 +10,9 @@ import { Share } from "~/core/share"
import { Logo, Mark } from "@opencode-ai/ui/logo"
import { IconButton } from "@opencode-ai/ui/icon-button"
import { ProviderIcon } from "@opencode-ai/ui/provider-icon"
import { iife } from "@opencode-ai/util/iife"
import { Binary } from "@opencode-ai/util/binary"
import { NamedError } from "@opencode-ai/util/error"
import { iife } from "@opencode-ai/shared/util/iife"
import { Binary } from "@opencode-ai/shared/util/binary"
import { NamedError } from "@opencode-ai/shared/util/error"
import { DateTime } from "luxon"
import { createStore } from "solid-js/store"
import z from "zod"

View file

@ -1,7 +1,7 @@
import { describe, expect, test, afterAll } from "bun:test"
import { Share } from "../../src/core/share"
import { Storage } from "../../src/core/storage"
import { Identifier } from "@opencode-ai/util/identifier"
import { Identifier } from "@opencode-ai/shared/util/identifier"
describe.concurrent("core.share", () => {
test("should create a share", async () => {