mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 00:03:47 +00:00
11 lines
274 B
TypeScript
11 lines
274 B
TypeScript
import type { RpcResponse } from '../runtime/rpc/core'
|
|
|
|
export function buildRemoteCliError(message: string, code = 'runtime_error'): RpcResponse {
|
|
return {
|
|
id: 'remote-cli-local',
|
|
ok: false,
|
|
error: { code, message },
|
|
_meta: { runtimeId: 'unknown' }
|
|
}
|
|
}
|