chain-studio-flow-editor/lib/chain_studio_flow_editor.dart
flemming-it ae09a55146 feat(run): host-injected native file picker for flow file inputs
The Run tab asked the operator to type an absolute path into a text
field — with no file dialog anywhere. FlowEditorPage now accepts an
onPickFile callback (PickedFileData: name + bytes) that hosts wire
to their native picker; the path-entry dialog remains only as the
no-host fallback. 0.23.0.

Signed-off-by: flemming-it <sf@flemming.it>
2026-07-17 01:04:40 +02:00

54 lines
1.8 KiB
Dart

/// Inline flow editor for F∆I Studio — swappable.
///
/// Studio depends on this package via pubspec.yaml. To use
/// a different editor, fork this repo, change the
/// implementation, point Studio's pubspec at the fork,
/// rebuild Studio.
///
/// Public surface:
///
/// * [FlowEditorPage] — the page widget Studio embeds as
/// its Flows destination. Three tabs over one in-memory
/// flow: graph (drag-and-drop WYSIWYG), text (raw YAML),
/// run (inputs form + live step progress + outputs).
/// * [FlowEditorLocale] — render language for inline
/// strings. Studio passes its active Locale through.
/// * [FlowRunDriver] — host-supplied bridge to the hub.
/// Studio implements it with the gRPC SDK; a CLI host
/// could shell out; a test harness can stub it in-memory.
/// * [FlowRunEvent] family — events the driver streams
/// during a run (StepStarted, StepCompleted, …).
/// * [FlowOutputValue] family — typed outputs the driver
/// returns when the run finishes.
library;
export 'src/editor_style.dart'
show FaiEditorStyle, EditorCanvasBackdrop, EditorPanelStyle;
export 'src/flow_editor_page.dart' show FlowEditorPage;
export 'src/l10n.dart' show FlowEditorLocale;
export 'src/quick_fix.dart'
show
InstallCapabilityCallback,
AddModuleSourceCallback,
QuickFix,
InstallCapabilityFix,
AddModuleSourceFix,
ReplaceLineValueFix,
IssueHoverRequest,
IssueHoverSeverity;
export 'src/run_driver.dart'
show
FlowRunDriver,
FlowRunEvent,
PickedFileData,
PickFileCallback,
StepStarted,
StepCompleted,
StepFailed,
StepAwaitingApproval,
FlowOutputValue,
FlowOutputText,
FlowOutputJson,
FlowOutputBytes,
ModuleSpec,
ModuleField;