chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-21 04:02:29 +00:00
parent 14366af069
commit 7a554441b4
2 changed files with 114 additions and 116 deletions
+4 -1
View File
@@ -119,7 +119,10 @@ export async function tmpdir<T>(options?: TmpDirOptions<T>) {
}
/** Effectful scoped tmpdir. Cleaned up when the scope closes. Make sure these stay in sync */
export function tmpdirScoped(options?: { git?: boolean; config?: Partial<Config.Info> | (() => Partial<Config.Info>) }) {
export function tmpdirScoped(options?: {
git?: boolean
config?: Partial<Config.Info> | (() => Partial<Config.Info>)
}) {
return Effect.gen(function* () {
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner
const dirpath = sanitizePath(path.join(os.tmpdir(), "opencode-test-" + Math.random().toString(36).slice(2)))
+2 -7
View File
@@ -1808,18 +1808,13 @@ describe("session.llm.stream", () => {
const chunks = [
{
candidates: [
{ content: { parts: [{ text: "Hello" }] }, finishReason: "STOP" },
],
candidates: [{ content: { parts: [{ text: "Hello" }] }, finishReason: "STOP" }],
usageMetadata: { promptTokenCount: 1, candidatesTokenCount: 1, totalTokenCount: 2 },
},
]
const request = waitRequest(pathSuffix, createEventResponse(chunks))
const resolved = yield* Provider.use.getModel(
ProviderID.make(geminiFixture.providerID),
ModelID.make(model.id),
)
const resolved = yield* Provider.use.getModel(ProviderID.make(geminiFixture.providerID), ModelID.make(model.id))
const sessionID = SessionID.make("session-test-4")
const agent = {
name: "test",