@vellumai/assistant 0.4.21 → 0.4.22

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.
@@ -665,11 +665,13 @@ export async function surfaceProxyResolver(
665
665
  const actions = input.actions as Array<{ id: string; label: string; style?: string }> | undefined;
666
666
  // Interactive surfaces default to awaiting user action.
667
667
  const hasActions = Array.isArray(actions) && actions.length > 0;
668
- const isInteractive = surfaceType === 'list'
668
+ const isInteractive = surfaceType === 'card'
669
669
  ? hasActions
670
- : surfaceType === 'table'
670
+ : surfaceType === 'list'
671
671
  ? hasActions
672
- : INTERACTIVE_SURFACE_TYPES.includes(surfaceType);
672
+ : surfaceType === 'table'
673
+ ? hasActions
674
+ : INTERACTIVE_SURFACE_TYPES.includes(surfaceType);
673
675
  const awaitAction = (input.await_action as boolean) ?? isInteractive;
674
676
 
675
677
  // Only one non-persistent interactive surface at a time. If another