chore: generate
This commit is contained in:
@@ -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 */
|
/** 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* () {
|
return Effect.gen(function* () {
|
||||||
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner
|
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner
|
||||||
const dirpath = sanitizePath(path.join(os.tmpdir(), "opencode-test-" + Math.random().toString(36).slice(2)))
|
const dirpath = sanitizePath(path.join(os.tmpdir(), "opencode-test-" + Math.random().toString(36).slice(2)))
|
||||||
|
|||||||
@@ -1808,18 +1808,13 @@ describe("session.llm.stream", () => {
|
|||||||
|
|
||||||
const chunks = [
|
const chunks = [
|
||||||
{
|
{
|
||||||
candidates: [
|
candidates: [{ content: { parts: [{ text: "Hello" }] }, finishReason: "STOP" }],
|
||||||
{ content: { parts: [{ text: "Hello" }] }, finishReason: "STOP" },
|
|
||||||
],
|
|
||||||
usageMetadata: { promptTokenCount: 1, candidatesTokenCount: 1, totalTokenCount: 2 },
|
usageMetadata: { promptTokenCount: 1, candidatesTokenCount: 1, totalTokenCount: 2 },
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
const request = waitRequest(pathSuffix, createEventResponse(chunks))
|
const request = waitRequest(pathSuffix, createEventResponse(chunks))
|
||||||
|
|
||||||
const resolved = yield* Provider.use.getModel(
|
const resolved = yield* Provider.use.getModel(ProviderID.make(geminiFixture.providerID), ModelID.make(model.id))
|
||||||
ProviderID.make(geminiFixture.providerID),
|
|
||||||
ModelID.make(model.id),
|
|
||||||
)
|
|
||||||
const sessionID = SessionID.make("session-test-4")
|
const sessionID = SessionID.make("session-test-4")
|
||||||
const agent = {
|
const agent = {
|
||||||
name: "test",
|
name: "test",
|
||||||
|
|||||||
Reference in New Issue
Block a user