refactor: split native adapter timeout and failure seams

This commit is contained in:
Tom Boucher
2026-05-04 20:06:30 -04:00
parent 6fe4af2546
commit 009cfb1562
3 changed files with 46 additions and 2 deletions

View File

@@ -44,6 +44,8 @@ export function createGSDToolsRuntime(opts: {
dispatch: (registryCommand, registryArgs) => registry.dispatch(registryCommand, registryArgs, opts.projectDir),
createTimeoutError: (message, command, args) =>
GSDToolsError.timeout(message, command, args, '', opts.timeoutMs),
createFailureError: (message, command, args, cause) =>
GSDToolsError.failure(message, command, args, 1, '', { cause }),
});
const transport = new GSDTransport(registry, {