mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-22 00:45:12 -10:00
+7


![opencode-agent[bot]](/assets/img/avatar_default.png)



![opencode-agent[bot]](/assets/img/avatar_default.png)

41283933ff
Co-authored-by: Brendan Allan <[email protected]> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: Affan Ali <[email protected]> Co-authored-by: affanali2k3 <[email protected]> Co-authored-by: Frank <[email protected]> Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> Co-authored-by: James Long <[email protected]> Co-authored-by: Aiden Cline <[email protected]> Co-authored-by: Jay V <[email protected]> Co-authored-by: Dax Raad <[email protected]> Co-authored-by: Aarav Sareen <[email protected]> Co-authored-by: OpeOginni <[email protected]> Co-authored-by: Luke Parker <[email protected]> Co-authored-by: Ben Guthrie <[email protected]> Co-authored-by: Dax <[email protected]> Co-authored-by: Filip <[email protected]>
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"),
|
|
}),
|
|
)
|
|
}),
|
|
)
|
|
})
|