mirror of
https://github.com/sst/opencode.git
synced 2025-08-23 22:44:08 +00:00
sync
This commit is contained in:
parent
b8be1d0e9e
commit
2dda422ef8
1 changed files with 3 additions and 3 deletions
|
@ -245,8 +245,9 @@ async function assertOpencodeConnected() {
|
||||||
let retry = 0
|
let retry = 0
|
||||||
let connected = false
|
let connected = false
|
||||||
do {
|
do {
|
||||||
|
console.log("!@#!@#!@# TRYING")
|
||||||
try {
|
try {
|
||||||
await client.app.get<false>()
|
await client.app.get<true>()
|
||||||
connected = true
|
connected = true
|
||||||
break
|
break
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
@ -261,8 +262,7 @@ async function assertOpencodeConnected() {
|
||||||
function assertContextEvent(...events: string[]) {
|
function assertContextEvent(...events: string[]) {
|
||||||
const context = useContext()
|
const context = useContext()
|
||||||
if (!events.includes(context.eventName)) {
|
if (!events.includes(context.eventName)) {
|
||||||
core.setFailed(`Unsupported event type: ${context.eventName}`)
|
throw new Error(`Unsupported event type: ${context.eventName}`)
|
||||||
process.exit(1)
|
|
||||||
}
|
}
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue