feat(plugin): expose app metadata (#38179)
This commit is contained in:
parent
2ed8fe5960
commit
8de40be6ea
71 changed files with 477 additions and 286 deletions
8
packages/core/test/app.test.ts
Normal file
8
packages/core/test/app.test.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { expect, test } from "bun:test"
|
||||
import { App } from "@opencode-ai/core/app"
|
||||
|
||||
test("formats app metadata as a user agent", () => {
|
||||
expect(App.useragent(App.make({ name: "sdk", version: "1.2.3", channel: "beta" }))).toBe(
|
||||
"opencode/beta/1.2.3/sdk",
|
||||
)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue