@ai-sdk/anthropic 4.0.106 → 4.0.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,7 +54,12 @@ type Bash20241022OptionsWithNullableExecute<OUTPUT> = Omit<
54
54
  execute?: Bash20241022Options<OUTPUT>['execute'] | null;
55
55
  };
56
56
 
57
- type Bash20241022DefaultOutput = Awaited<ReturnType<SandboxSession['run']>>;
57
+ // The default execute function does not pass `maxOutputLength`, so the
58
+ // sandbox returns the full output without the original stream lengths.
59
+ type Bash20241022DefaultOutput = Pick<
60
+ Awaited<ReturnType<SandboxSession['run']>>,
61
+ 'exitCode' | 'stdout' | 'stderr'
62
+ >;
58
63
 
59
64
  export function bash_20241022(
60
65
  options?: Omit<Bash20241022Options<Bash20241022DefaultOutput>, 'execute'> & {
@@ -54,7 +54,12 @@ type Bash20250124OptionsWithNullableExecute<OUTPUT> = Omit<
54
54
  execute?: Bash20250124Options<OUTPUT>['execute'] | null;
55
55
  };
56
56
 
57
- type Bash20250124DefaultOutput = Awaited<ReturnType<SandboxSession['run']>>;
57
+ // The default execute function does not pass `maxOutputLength`, so the
58
+ // sandbox returns the full output without the original stream lengths.
59
+ type Bash20250124DefaultOutput = Pick<
60
+ Awaited<ReturnType<SandboxSession['run']>>,
61
+ 'exitCode' | 'stdout' | 'stderr'
62
+ >;
58
63
 
59
64
  export function bash_20250124(
60
65
  options?: Omit<Bash20250124Options<Bash20250124DefaultOutput>, 'execute'> & {