mirror of
https://github.com/stackblitz-labs/bolt.diy.git
synced 2025-06-18 01:49:07 +01:00
This reverts commit 871aefbe83c31660b32b53b63772ebba33ed7954, reversing changes made to 8c72ed76b3315d8b9be77976769567bd4c41512e.
31 lines
655 B
TypeScript
31 lines
655 B
TypeScript
export type ActionType = 'file' | 'shell';
|
|
|
|
export interface BaseAction {
|
|
content: string;
|
|
}
|
|
|
|
export interface FileAction extends BaseAction {
|
|
type: 'file';
|
|
filePath: string;
|
|
}
|
|
|
|
export interface ShellAction extends BaseAction {
|
|
type: 'shell';
|
|
}
|
|
|
|
export interface StartAction extends BaseAction {
|
|
type: 'start';
|
|
}
|
|
|
|
export type BoltAction = FileAction | ShellAction | StartAction;
|
|
|
|
export type BoltActionData = BoltAction | BaseAction;
|
|
|
|
export interface ActionAlert {
|
|
type: string;
|
|
title: string;
|
|
description: string;
|
|
content: string;
|
|
source?: 'terminal' | 'preview'; // Add source to differentiate between terminal and preview errors
|
|
}
|