mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 18:55:37 -04:00
41283933ff
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: Affan Ali <93028901+affanali2k3@users.noreply.github.com> Co-authored-by: affanali2k3 <affanalikhanxx@gmail.com> Co-authored-by: Frank <frank@anoma.ly> Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> Co-authored-by: James Long <longster@gmail.com> Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Co-authored-by: Jay V <air@live.ca> Co-authored-by: Dax Raad <d@ironbay.co> Co-authored-by: Aarav Sareen <96787824+arvsrn@users.noreply.github.com> Co-authored-by: OpeOginni <107570612+OpeOginni@users.noreply.github.com> Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com> Co-authored-by: Ben Guthrie <benjee.012@gmail.com> Co-authored-by: Dax <mail@thdxr.com> Co-authored-by: Filip <34747899+neriousy@users.noreply.github.com>
26 lines
906 B
TypeScript
26 lines
906 B
TypeScript
import { describe, expect } from "bun:test"
|
|
import { Effect } from "effect"
|
|
import { AppNodeBuilder } from "@opencode-ai/core/effect/app-node-builder"
|
|
import { SkillPlugin } from "@opencode-ai/core/plugin/skill"
|
|
import { SkillV2 } from "@opencode-ai/core/skill"
|
|
import { testEffect } from "../lib/effect"
|
|
import { host } from "./host"
|
|
|
|
const it = testEffect(AppNodeBuilder.build(SkillV2.node))
|
|
|
|
describe("SkillPlugin.Plugin", () => {
|
|
it.effect("registers the built-in customize-opencode skill", () =>
|
|
Effect.gen(function* () {
|
|
const skill = yield* SkillV2.Service
|
|
yield* SkillPlugin.Plugin.effect(host({ skill: { ...skill, reload: skill.reload } }))
|
|
|
|
expect(yield* skill.list()).toContainEqual(
|
|
expect.objectContaining({
|
|
name: "customize-opencode",
|
|
description: expect.stringContaining("opencode's own configuration"),
|
|
}),
|
|
)
|
|
}),
|
|
)
|
|
})
|