Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@earendil-works/pi-tui": "1.2.0",
"@opencode-ai/plugin": "1.19.0",
"@tsconfig/bun": "1.0.11",
"@types/bun": "1.4.2",
"@types/bun": "1.4.3",
"dedent": "^1.7.2",
"jsonc-parser": "^3.3.1",
"lefthook": "2.1.14",
Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/src/tests/killswitch-preflight.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ try {
type WriterEvent = { event: string; [key: string]: unknown }
type WriterResult = {
exitCode: number | null
signalCode: string | null
signalCode: Bun.Subprocess['signalCode']
events: WriterEvent[]
stderr: string
}
Expand Down Expand Up @@ -942,7 +942,7 @@ test('finishing the owning lifetime kills a held writer and joins its exit and b
// Bun reports a SIGTERM exit as status 143 (128 + 15).
const killed = {
exitCode: 143,
signalCode: 'SIGTERM',
signalCode: 'SIGTERM' as const,
stderr: '',
events: [expect.objectContaining({ event: 'held' })],
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-pi-tool-mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface ChildOutcome {
stdout: string
stderr: string
code: number | null
signal: string | null
signal: Bun.Subprocess['signalCode']
timedOut: boolean
joinFailures: string[]
}
Expand Down
7 changes: 5 additions & 2 deletions scripts/run-mutation-bun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ export type Transcript = {
stdout: string
stderr: string
exitCode: number
signal: string | null
// Bun's own type: a signal name, or the bare number of a signal that has
// no name (such as a Linux real-time signal). Kept as Bun reports it, so
// the audit invocation.json records the same value Bun gave.
signal: Bun.Subprocess['signalCode']
}

export type ExecutionEvent = {
Expand Down Expand Up @@ -612,7 +615,7 @@ export type OwnedChild = {
stdout: ReadableStream<Uint8Array>
stderr: ReadableStream<Uint8Array>
exited: Promise<number>
readonly signalCode: string | null
readonly signalCode: Bun.Subprocess['signalCode']
kill: () => void
}
type Dependencies = {
Expand Down
Loading