+5
-5
@@ -10,13 +10,13 @@ export default Plugin.define({
|
||||
const providerID = Provider.ID.make("fixture");
|
||||
yield* context.provider.transform((editor) =>
|
||||
editor.add({
|
||||
info: {
|
||||
...Provider.Info.empty(providerID),
|
||||
// Copy own fields like the former spread; the editor accepts plain info.
|
||||
info: Object.assign({}, Provider.Info.empty(providerID), {
|
||||
name: "Isolated fixture",
|
||||
activation: "enabled",
|
||||
activation: "enabled" as const,
|
||||
package: "@opencode/ai/providers/openai-compatible",
|
||||
settings: { baseURL: process.env.FIXTURE_MODEL_URL! },
|
||||
},
|
||||
settings: { baseURL: process.env["FIXTURE_MODEL_URL"] ?? "" },
|
||||
}),
|
||||
models: ["gpt-6-luna", "gpt-6.1-sol", "gpt-6-astra"].map((id) =>
|
||||
Model.Info.default(providerID, Model.ID.make(id)),
|
||||
),
|
||||
|
||||
Vendored
+2
-2
@@ -37,7 +37,7 @@ export default Plugin.define({
|
||||
const child = yield* context.session.get({ sessionID: event.sessionID });
|
||||
yield* Effect.promise(() =>
|
||||
appendFile(
|
||||
process.env.FIXTURE_TRACE!,
|
||||
process.env["FIXTURE_TRACE"] ?? "",
|
||||
JSON.stringify({
|
||||
id: child.id,
|
||||
parent: child.parentID,
|
||||
@@ -59,7 +59,7 @@ export default Plugin.define({
|
||||
description: "native host proof",
|
||||
prompt: "Reply with FIXTURE_COMPLETE",
|
||||
background: input.background,
|
||||
...(input.child
|
||||
...(input.child !== undefined && input.child !== ""
|
||||
? { sessionID: input.child }
|
||||
: {
|
||||
worktree: {
|
||||
|
||||
Reference in New Issue
Block a user