fix: e2e
This commit is contained in:
parent
48a7f0fd93
commit
665b251ee1
3 changed files with 11 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { createOpencodeClient } from "@opencode-ai/sdk/v2/client"
|
||||
import { base64Encode, checksum } from "@opencode-ai/util/encode"
|
||||
import { base64Decode, base64Encode, checksum } from "@opencode-ai/util/encode"
|
||||
|
||||
export const serverHost = process.env.PLAYWRIGHT_SERVER_HOST ?? "127.0.0.1"
|
||||
export const serverPort = process.env.PLAYWRIGHT_SERVER_PORT ?? "4096"
|
||||
|
|
@ -48,6 +48,10 @@ export function dirSlug(directory: string) {
|
|||
return base64Encode(directory)
|
||||
}
|
||||
|
||||
export function dirDecode(slug: string) {
|
||||
return base64Decode(slug)
|
||||
}
|
||||
|
||||
export function dirPath(directory: string) {
|
||||
return `/${dirSlug(directory)}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue