mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-22 08:59:26 -10:00
13 lines
358 B
TypeScript
13 lines
358 B
TypeScript
import { defineScript } from "opencode-drive"
|
|
import * as Effect from "effect/Effect"
|
|
|
|
export default defineScript({
|
|
run: ({ ui }) =>
|
|
Effect.gen(function* () {
|
|
yield* Effect.matchEffect(ui.waitFor("this text never appears", { timeout: 50 }), {
|
|
onFailure: () => Effect.sleep(30_000),
|
|
onSuccess: Effect.succeed,
|
|
})
|
|
}),
|
|
})
|