feat(sdk): add strict mode and explicit fallback policy to runtime bridge
This commit is contained in:
@@ -23,6 +23,8 @@ export function createGSDToolsRuntime(opts: {
|
||||
shouldUseNativeQuery: () => boolean;
|
||||
execJsonFallback: (legacyCommand: string, legacyArgs: string[]) => Promise<unknown>;
|
||||
execRawFallback: (legacyCommand: string, legacyArgs: string[]) => Promise<string>;
|
||||
strictSdk?: boolean;
|
||||
allowFallbackToSubprocess?: boolean;
|
||||
}): GSDToolsRuntime {
|
||||
const registry = createRegistry(opts.eventStream, opts.sessionId);
|
||||
|
||||
@@ -69,6 +71,10 @@ export function createGSDToolsRuntime(opts: {
|
||||
executionPolicy,
|
||||
nativeHotpathAdapter,
|
||||
opts.shouldUseNativeQuery,
|
||||
{
|
||||
strictSdk: opts.strictSdk,
|
||||
allowFallbackToSubprocess: opts.allowFallbackToSubprocess,
|
||||
},
|
||||
);
|
||||
|
||||
return { bridge };
|
||||
|
||||
Reference in New Issue
Block a user