@lace-cloud/canvas 0.20.0 → 0.21.1

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.
Files changed (44) hide show
  1. package/README.md +3 -3
  2. package/dist/{AccordionSection-QHNIBNJT.css → AccordionSection-J3ALHB5M.css} +22 -12
  3. package/dist/{App-D7WF3TWZ.css → App-IFIOMNV7.css} +47 -33
  4. package/dist/Banner-4TSIKYLF.css +48 -0
  5. package/dist/{Canvas-J6F7YHEK.css → Canvas-JRY2HAY6.css} +0 -56
  6. package/dist/CanvasControls-L6Q2LX2P.css +47 -0
  7. package/dist/ContextMenu-C7SLX23S.css +74 -0
  8. package/dist/DiagnosticsPanel-T6VDHH4A.css +64 -0
  9. package/dist/Drawer-34ZYTEWE.css +62 -0
  10. package/dist/EdgeInspectorPanel-JD6CVUAT.css +45 -0
  11. package/dist/EmptyCanvas-QA2OV3T3.css +21 -0
  12. package/dist/GroupNode-QWSLBFCH.css +197 -0
  13. package/dist/Identifier-V6MZ37EG.css +4 -0
  14. package/dist/{ModuleConfigPanel-LZRL4F3Q.css → ModuleConfigPanel-LTPLEG2L.css} +29 -10
  15. package/dist/{ModuleNode-OJXMNOL3.css → ModuleNode-RRZ37SFM.css} +97 -27
  16. package/dist/PaperGrid-WFRL3N4P.css +25 -0
  17. package/dist/ToolbarAction-PQNWHJSU.css +36 -0
  18. package/dist/UpdateButton-TJKSFVBA.css +16 -0
  19. package/dist/{chunk-R4RA2QI7.mjs → chunk-TPJXMHYN.mjs} +106 -110
  20. package/dist/chunk-TPJXMHYN.mjs.map +1 -0
  21. package/dist/engine/index.cjs +83 -104
  22. package/dist/engine/index.cjs.map +1 -1
  23. package/dist/engine/index.d.mts +3 -5
  24. package/dist/engine/index.d.ts +3 -5
  25. package/dist/engine/index.mjs +1 -3
  26. package/dist/icons-SBZCWI5T.css +14 -0
  27. package/dist/index.cjs +10718 -10373
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.mts +35 -25
  30. package/dist/index.d.ts +35 -25
  31. package/dist/index.mjs +3035 -2641
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/{mapping-ChSnv11V.d.mts → mapping-REUTGeUE.d.mts} +61 -53
  34. package/dist/{mapping-ChSnv11V.d.ts → mapping-REUTGeUE.d.ts} +61 -53
  35. package/dist/{panels-shared-OFOUQSUT.css → panels-shared-5JFNYXQ7.css} +47 -66
  36. package/package.json +3 -3
  37. package/dist/ConflictBanner-4V5K2QNU.css +0 -44
  38. package/dist/ContextMenu-EAQFLI5L.css +0 -46
  39. package/dist/DiagnosticsPanel-HB3JQYSY.css +0 -39
  40. package/dist/EdgeInspectorPanel-D536U5MZ.css +0 -54
  41. package/dist/GroupNode-XSB4OKGK.css +0 -150
  42. package/dist/Markers-XLREDZNM.css +0 -16
  43. package/dist/SourceRefusedBanner-5PXHEDHT.css +0 -23
  44. package/dist/chunk-R4RA2QI7.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
- import { RenderNode, SettingsConfig, CanvasView, Diagnostic, CanvasArrangement } from '@lace-cloud/proto';
1
+ import { NodePin, CanvasView, Diagnostic, RenderNode, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
2
2
  export { CanvasArrangement, CanvasView, Conflict, Diagnostic, GeneratePhase, NodeConfig, NodePin, ProjectionMeta, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, SettingsConfig, ViewportIntent, projectCanvasView } from '@lace-cloud/proto';
3
3
  export { Toast } from '@lace-cloud/ui/feedback';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as React from 'react';
6
6
  import React__default, { FC, ReactNode } from 'react';
7
- import { C as ContributionSet, P as PanelSpec, a as CanvasCtx, b as CanvasPorts, R as ResultStore, S as SourcePort, A as ActionContribution, B as Badge, c as PendingForm, D as Decorations, d as BoundPath, e as CommandRead, J as JsonOf, O as OverlayContribution, f as ActionTarget, g as CommandResult, h as CanvasSource, i as SourceEnd, j as RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-ChSnv11V.mjs';
8
- export { m as ActionRunnerOptions, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, r as BridgeEngineCaller, s as COMMANDS, t as ClipboardStore, u as CommandBinding, v as CommandDetachedError, w as CommandExitError, x as CommandFailure, y as CommandPath, z as CommandRun, F as CommandsPort, G as ConfirmSpec, H as ConnectCallerOptions, I as ConnectError, K as ContextKey, M as ContextPort, N as CreatedRef, Q as DirectEngineCaller, T as EMPTY_REPORT_FOLD, U as EditorBinding, V as EditorEnv, W as EditorEnvExtras, X as EditorPort, Y as EngineCaller, Z as EngineMethodResponse, _ as EngineSession, $ as EngineSessionOptions, a0 as EngineTarget, a1 as ErasedCommand, a2 as FollowSlot, a3 as GenerateEvent, a4 as GraphError, a5 as HostBinding, a6 as Invocation, a7 as NodeDecoration, a8 as Placement, a9 as PortName, aa as PresenterPort, ab as PreviewSlot, ac as Reason, ad as ReportEntry, ae as ReportFold, af as ReportPath, ag as ReportSlot, ah as ResultKind, ai as ResultSlots, aj as RunOutcome, ak as RunSlot, al as RunnerPorts, am as SCHEMAS, an as Sink, ao as SinkInput, ap as SlotContext, aq as SlotKind, ar as SourceConflict, as as StackRef, at as ViewStatePort, au as WiringCandidate, av as WiringQuery, aw as bridgeCaller, ax as carriesFailure, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, aE as foldReport, aF as isBoundPath, aG as openEngineCommands, aH as openEngineSession, aI as parseBound, aJ as parseCommandFailure, aK as reportDiagnostics, aL as toArgv, aM as uniqueDiagnostics } from './mapping-ChSnv11V.mjs';
7
+ import { C as ContributionSet, P as PanelSpec, a as CanvasCtx, b as CanvasPorts, R as ResultStore, S as SourcePort, A as ActionContribution, B as Badge, N as NodeDecoration, D as Decorations, c as PendingForm, d as BoundPath, e as CommandRead, J as JsonOf, O as OverlayContribution, f as ActionTarget, g as CommandResult, h as CanvasSource, i as SourceEnd, j as RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-REUTGeUE.mjs';
8
+ export { m as ActionIcon, n as ActionRunnerOptions, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, s as BridgeEngineCaller, t as COMMANDS, u as ClipboardStore, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, F as CommandRun, G as CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, M as ContextKey, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, W as EditorBinding, X as EditorEnv, Y as EditorEnvExtras, Z as EditorPort, _ as EngineCaller, $ as EngineMethodResponse, a0 as EngineSession, a1 as EngineSessionOptions, a2 as EngineTarget, a3 as ErasedCommand, a4 as FollowSlot, a5 as GenerateEvent, a6 as GraphError, a7 as HostBinding, a8 as Invocation, a9 as KeySpec, aa as Placement, ab as PortName, ac as PresenterPort, ad as PreviewSlot, ae as Reason, af as ReportEntry, ag as ReportFold, ah as ReportPath, ai as ReportSlot, aj as ResultKind, ak as ResultSlots, al as RunOutcome, am as RunSlot, an as RunnerPorts, ao as SCHEMAS, ap as Sink, aq as SinkInput, ar as SlotContext, as as SlotKind, at as SourceConflict, au as StackRef, av as ViewStatePort, aw as WiringCandidate, ax as WiringQuery, ay as bridgeCaller, az as carriesFailure, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as foldReport, aH as isBoundPath, aI as openEngineCommands, aJ as openEngineSession, aK as parseBound, aL as parseCommandFailure, aM as reportDiagnostics, aN as toArgv, aO as uniqueDiagnostics } from './mapping-REUTGeUE.mjs';
9
9
  import { NodeProps, Node } from '@xyflow/react';
10
10
  import 'zod';
11
11
  import '@bufbuild/protobuf/wire';
@@ -30,18 +30,13 @@ type AppProps = {
30
30
  */
31
31
  results?: ResultStore;
32
32
  /**
33
- * Height of the canvas root. Defaults to `100vh`; embedded consumers can
34
- * pass `100%` when their parent establishes an explicit height.
33
+ * Height of the canvas root. Defaults to `100vh`; a host that mounts the
34
+ * canvas inside its own panel passes `100%` when that panel establishes an
35
+ * explicit height.
35
36
  */
36
37
  height?: React__default.CSSProperties['height'];
37
- /**
38
- * True when the canvas is mounted INSIDE a host panel rather than owning
39
- * the window: the native zoom Controls dock top-left instead of
40
- * bottom-right (Canvas.tsx).
41
- */
42
- embedded?: boolean;
43
38
  };
44
- declare function App({ ports, contributions, height, embedded, results: hostResults, }: AppProps): react_jsx_runtime.JSX.Element | null;
39
+ declare function App({ ports, contributions, height, results: hostResults, }: AppProps): react_jsx_runtime.JSX.Element | null;
45
40
 
46
41
  type SnapshotSourceInput = {
47
42
  bundleUrl: string;
@@ -99,9 +94,8 @@ declare class ErrorBoundary extends React__default.Component<{
99
94
  render(): string | number | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
100
95
  }
101
96
 
102
- type ExternalPin = {
97
+ type InterfacePin = NodePin & {
103
98
  handleId: string;
104
- label: string;
105
99
  side: 'input' | 'output';
106
100
  color: {
107
101
  fill: string;
@@ -116,11 +110,27 @@ type GroupNodeData = {
116
110
  collapsed: boolean;
117
111
  hasErrors: boolean;
118
112
  badges: readonly Badge[];
119
- externalPins: ExternalPin[];
113
+ interfacePins: InterfacePin[];
120
114
  };
121
115
  type GroupNodeNode = Node<GroupNodeData, 'groupNode'>;
122
116
  declare const GroupNode: React__default.FC<NodeProps<GroupNodeNode>>;
123
117
 
118
+ /** What the engine found on one of a node's inputs: the worst finding,
119
+ * when it found more than one. */
120
+ type PinFinding = {
121
+ message: string;
122
+ tone: Badge['tone'];
123
+ };
124
+ /** The decorations the canvas draws: each node's badges — the overlays'
125
+ * and the engine's — and the engine's findings on its inputs, by input
126
+ * name. An overlay hands in badges only (`Decorations`). */
127
+ type DrawnDecorations = {
128
+ nodes: Readonly<Record<string, NodeDecoration & {
129
+ pins?: Readonly<Record<string, PinFinding>>;
130
+ }>>;
131
+ };
132
+ declare function decorate(view: Pick<CanvasView, 'nodes' | 'groups'>, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): DrawnDecorations;
133
+
124
134
  type ModuleNodeData = RenderNode & {
125
135
  hasValidationError?: boolean;
126
136
  isNew?: boolean;
@@ -132,6 +142,9 @@ type ModuleNodeData = RenderNode & {
132
142
  * (nodeIdForAddress can return a group id) is not a ModuleNode concern
133
143
  * either way. */
134
144
  badges?: readonly Badge[];
145
+ /** What the engine found on this node's inputs, by input name — the
146
+ * decoration's `pins`. */
147
+ pins?: Readonly<Record<string, PinFinding>>;
135
148
  };
136
149
  type ModuleNodeNode = Node<ModuleNodeData, 'moduleNode'>;
137
150
  declare const ModuleNode: React__default.FC<NodeProps<ModuleNodeNode>>;
@@ -251,8 +264,6 @@ type CommandArgsFormProps = {
251
264
  };
252
265
  declare function CommandArgsForm({ form }: CommandArgsFormProps): react_jsx_runtime.JSX.Element | null;
253
266
 
254
- declare function decorate(view: Pick<CanvasView, 'nodes' | 'groups'>, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): Decorations;
255
-
256
267
  declare function defineOverlay<P extends BoundPath>(o: {
257
268
  id: string;
258
269
  read: CommandRead<P>;
@@ -280,15 +291,15 @@ declare function PanelScope({ ctx, target, paths, tick, onReadError, children, }
280
291
  }): react_jsx_runtime.JSX.Element;
281
292
  declare function usePanelScope(): PanelScopeValue;
282
293
 
283
- declare function ConflictBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
294
+ declare function ConflictBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element;
284
295
  declare const conflictPanel: Panel;
285
296
 
286
- declare function UnsavedMarker({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
297
+ declare function UnsavedMarker(): react_jsx_runtime.JSX.Element;
287
298
  declare const unsavedMarker: Panel;
288
- declare function UngeneratedMarker({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
299
+ declare function UngeneratedMarker(): react_jsx_runtime.JSX.Element;
289
300
  declare const ungeneratedMarker: Panel;
290
301
 
291
- declare function SourceRefusedBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
302
+ declare function SourceRefusedBanner(): react_jsx_runtime.JSX.Element;
292
303
  declare const sourceRefusedPanel: Panel;
293
304
 
294
305
  type SourceState = {
@@ -305,7 +316,7 @@ type CommandReadState<P extends BoundPath> = {
305
316
  };
306
317
  declare function useCommandRead<P extends BoundPath>(read: CommandRead<P>, target?: ActionTarget): CommandReadState<P>;
307
318
 
308
- type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'view' | 'selection' | 'diagnostics'>>;
319
+ type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'generating' | 'sourceRefused' | 'view' | 'selection' | 'diagnostics' | 'settingsOpen'>>;
309
320
  declare function disabledReason(action: ActionContribution, ctx: ResolveCtx, isBusy: boolean): string | undefined;
310
321
  declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<P>, ports: CanvasPorts, ctx: ResolveCtx, target?: ActionTarget): ContributionSet<P>;
311
322
  /** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
@@ -316,7 +327,7 @@ type CanvasContextValue = {
316
327
  bundle: Bundle;
317
328
  view: CanvasView;
318
329
  ctx: CanvasCtx;
319
- decorations: Decorations;
330
+ decorations: DrawnDecorations;
320
331
  editable: boolean;
321
332
  arrangement: CanvasArrangement;
322
333
  updateArrangement: (next: CanvasArrangement) => void;
@@ -330,10 +341,9 @@ type CanvasContextValue = {
330
341
  }) => void;
331
342
  runner: ActionRunner;
332
343
  layout: LayoutHandle;
333
- settingsOpen: boolean;
334
344
  setSettingsOpen: (next: boolean) => void;
335
345
  };
336
346
  declare const CanvasContext: React.Context<CanvasContextValue | null>;
337
347
  declare function useCanvas(): CanvasContextValue;
338
348
 
339
- export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, type AppProps, Badge, BoundPath, CanvasContext, type CanvasContextValue, CanvasCtx, CanvasPorts, CanvasSource, CommandArgsForm, type CommandArgsFormProps, CommandRead, type CommandReadState, CommandResult, ConflictBanner, ContextMenu, ContributionSet, type Contributions, Decorations, EdgeInspectorPanel, EdgeRef, ErrorBoundary, ErrorState, type ExternalPin, GroupNode, type GroupNodeData, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, type ModuleNodeData, NodeConfigBusProvider, OverlayContribution, type Panel, type PanelProps, PanelScope, type PanelScopeValue, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, RunCtx, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, disabledReason, resolveContributions, rowActions, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };
349
+ export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, type AppProps, Badge, BoundPath, CanvasContext, type CanvasContextValue, CanvasCtx, CanvasPorts, CanvasSource, CommandArgsForm, type CommandArgsFormProps, CommandRead, type CommandReadState, CommandResult, ConflictBanner, ContextMenu, ContributionSet, type Contributions, Decorations, EdgeInspectorPanel, EdgeRef, ErrorBoundary, ErrorState, GroupNode, type GroupNodeData, type InterfacePin, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, type ModuleNodeData, NodeConfigBusProvider, NodeDecoration, OverlayContribution, type Panel, type PanelProps, PanelScope, type PanelScopeValue, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, RunCtx, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, disabledReason, resolveContributions, rowActions, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { RenderNode, SettingsConfig, CanvasView, Diagnostic, CanvasArrangement } from '@lace-cloud/proto';
1
+ import { NodePin, CanvasView, Diagnostic, RenderNode, SettingsConfig, CanvasArrangement } from '@lace-cloud/proto';
2
2
  export { CanvasArrangement, CanvasView, Conflict, Diagnostic, GeneratePhase, NodeConfig, NodePin, ProjectionMeta, RenderEdge, RenderGroup, RenderInput, RenderNode, RenderOutput, SettingsConfig, ViewportIntent, projectCanvasView } from '@lace-cloud/proto';
3
3
  export { Toast } from '@lace-cloud/ui/feedback';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as React from 'react';
6
6
  import React__default, { FC, ReactNode } from 'react';
7
- import { C as ContributionSet, P as PanelSpec, a as CanvasCtx, b as CanvasPorts, R as ResultStore, S as SourcePort, A as ActionContribution, B as Badge, c as PendingForm, D as Decorations, d as BoundPath, e as CommandRead, J as JsonOf, O as OverlayContribution, f as ActionTarget, g as CommandResult, h as CanvasSource, i as SourceEnd, j as RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-ChSnv11V.js';
8
- export { m as ActionRunnerOptions, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, r as BridgeEngineCaller, s as COMMANDS, t as ClipboardStore, u as CommandBinding, v as CommandDetachedError, w as CommandExitError, x as CommandFailure, y as CommandPath, z as CommandRun, F as CommandsPort, G as ConfirmSpec, H as ConnectCallerOptions, I as ConnectError, K as ContextKey, M as ContextPort, N as CreatedRef, Q as DirectEngineCaller, T as EMPTY_REPORT_FOLD, U as EditorBinding, V as EditorEnv, W as EditorEnvExtras, X as EditorPort, Y as EngineCaller, Z as EngineMethodResponse, _ as EngineSession, $ as EngineSessionOptions, a0 as EngineTarget, a1 as ErasedCommand, a2 as FollowSlot, a3 as GenerateEvent, a4 as GraphError, a5 as HostBinding, a6 as Invocation, a7 as NodeDecoration, a8 as Placement, a9 as PortName, aa as PresenterPort, ab as PreviewSlot, ac as Reason, ad as ReportEntry, ae as ReportFold, af as ReportPath, ag as ReportSlot, ah as ResultKind, ai as ResultSlots, aj as RunOutcome, ak as RunSlot, al as RunnerPorts, am as SCHEMAS, an as Sink, ao as SinkInput, ap as SlotContext, aq as SlotKind, ar as SourceConflict, as as StackRef, at as ViewStatePort, au as WiringCandidate, av as WiringQuery, aw as bridgeCaller, ax as carriesFailure, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, aE as foldReport, aF as isBoundPath, aG as openEngineCommands, aH as openEngineSession, aI as parseBound, aJ as parseCommandFailure, aK as reportDiagnostics, aL as toArgv, aM as uniqueDiagnostics } from './mapping-ChSnv11V.js';
7
+ import { C as ContributionSet, P as PanelSpec, a as CanvasCtx, b as CanvasPorts, R as ResultStore, S as SourcePort, A as ActionContribution, B as Badge, N as NodeDecoration, D as Decorations, c as PendingForm, d as BoundPath, e as CommandRead, J as JsonOf, O as OverlayContribution, f as ActionTarget, g as CommandResult, h as CanvasSource, i as SourceEnd, j as RunCtx, k as Bundle, E as EdgeRef, l as ActionRunner, L as LayoutHandle } from './mapping-REUTGeUE.js';
8
+ export { m as ActionIcon, n as ActionRunnerOptions, o as ApplyResult, p as ApplyUnobservedError, q as ArgsOf, r as BindingRuntime, s as BridgeEngineCaller, t as COMMANDS, u as ClipboardStore, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, F as CommandRun, G as CommandsPort, H as ConfirmSpec, I as ConnectCallerOptions, K as ConnectError, M as ContextKey, Q as ContextPort, T as CreatedRef, U as DirectEngineCaller, V as EMPTY_REPORT_FOLD, W as EditorBinding, X as EditorEnv, Y as EditorEnvExtras, Z as EditorPort, _ as EngineCaller, $ as EngineMethodResponse, a0 as EngineSession, a1 as EngineSessionOptions, a2 as EngineTarget, a3 as ErasedCommand, a4 as FollowSlot, a5 as GenerateEvent, a6 as GraphError, a7 as HostBinding, a8 as Invocation, a9 as KeySpec, aa as Placement, ab as PortName, ac as PresenterPort, ad as PreviewSlot, ae as Reason, af as ReportEntry, ag as ReportFold, ah as ReportPath, ai as ReportSlot, aj as ResultKind, ak as ResultSlots, al as RunOutcome, am as RunSlot, an as RunnerPorts, ao as SCHEMAS, ap as Sink, aq as SinkInput, ar as SlotContext, as as SlotKind, at as SourceConflict, au as StackRef, av as ViewStatePort, aw as WiringCandidate, ax as WiringQuery, ay as bridgeCaller, az as carriesFailure, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as foldReport, aH as isBoundPath, aI as openEngineCommands, aJ as openEngineSession, aK as parseBound, aL as parseCommandFailure, aM as reportDiagnostics, aN as toArgv, aO as uniqueDiagnostics } from './mapping-REUTGeUE.js';
9
9
  import { NodeProps, Node } from '@xyflow/react';
10
10
  import 'zod';
11
11
  import '@bufbuild/protobuf/wire';
@@ -30,18 +30,13 @@ type AppProps = {
30
30
  */
31
31
  results?: ResultStore;
32
32
  /**
33
- * Height of the canvas root. Defaults to `100vh`; embedded consumers can
34
- * pass `100%` when their parent establishes an explicit height.
33
+ * Height of the canvas root. Defaults to `100vh`; a host that mounts the
34
+ * canvas inside its own panel passes `100%` when that panel establishes an
35
+ * explicit height.
35
36
  */
36
37
  height?: React__default.CSSProperties['height'];
37
- /**
38
- * True when the canvas is mounted INSIDE a host panel rather than owning
39
- * the window: the native zoom Controls dock top-left instead of
40
- * bottom-right (Canvas.tsx).
41
- */
42
- embedded?: boolean;
43
38
  };
44
- declare function App({ ports, contributions, height, embedded, results: hostResults, }: AppProps): react_jsx_runtime.JSX.Element | null;
39
+ declare function App({ ports, contributions, height, results: hostResults, }: AppProps): react_jsx_runtime.JSX.Element | null;
45
40
 
46
41
  type SnapshotSourceInput = {
47
42
  bundleUrl: string;
@@ -99,9 +94,8 @@ declare class ErrorBoundary extends React__default.Component<{
99
94
  render(): string | number | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
100
95
  }
101
96
 
102
- type ExternalPin = {
97
+ type InterfacePin = NodePin & {
103
98
  handleId: string;
104
- label: string;
105
99
  side: 'input' | 'output';
106
100
  color: {
107
101
  fill: string;
@@ -116,11 +110,27 @@ type GroupNodeData = {
116
110
  collapsed: boolean;
117
111
  hasErrors: boolean;
118
112
  badges: readonly Badge[];
119
- externalPins: ExternalPin[];
113
+ interfacePins: InterfacePin[];
120
114
  };
121
115
  type GroupNodeNode = Node<GroupNodeData, 'groupNode'>;
122
116
  declare const GroupNode: React__default.FC<NodeProps<GroupNodeNode>>;
123
117
 
118
+ /** What the engine found on one of a node's inputs: the worst finding,
119
+ * when it found more than one. */
120
+ type PinFinding = {
121
+ message: string;
122
+ tone: Badge['tone'];
123
+ };
124
+ /** The decorations the canvas draws: each node's badges — the overlays'
125
+ * and the engine's — and the engine's findings on its inputs, by input
126
+ * name. An overlay hands in badges only (`Decorations`). */
127
+ type DrawnDecorations = {
128
+ nodes: Readonly<Record<string, NodeDecoration & {
129
+ pins?: Readonly<Record<string, PinFinding>>;
130
+ }>>;
131
+ };
132
+ declare function decorate(view: Pick<CanvasView, 'nodes' | 'groups'>, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): DrawnDecorations;
133
+
124
134
  type ModuleNodeData = RenderNode & {
125
135
  hasValidationError?: boolean;
126
136
  isNew?: boolean;
@@ -132,6 +142,9 @@ type ModuleNodeData = RenderNode & {
132
142
  * (nodeIdForAddress can return a group id) is not a ModuleNode concern
133
143
  * either way. */
134
144
  badges?: readonly Badge[];
145
+ /** What the engine found on this node's inputs, by input name — the
146
+ * decoration's `pins`. */
147
+ pins?: Readonly<Record<string, PinFinding>>;
135
148
  };
136
149
  type ModuleNodeNode = Node<ModuleNodeData, 'moduleNode'>;
137
150
  declare const ModuleNode: React__default.FC<NodeProps<ModuleNodeNode>>;
@@ -251,8 +264,6 @@ type CommandArgsFormProps = {
251
264
  };
252
265
  declare function CommandArgsForm({ form }: CommandArgsFormProps): react_jsx_runtime.JSX.Element | null;
253
266
 
254
- declare function decorate(view: Pick<CanvasView, 'nodes' | 'groups'>, overlayDecorations: readonly Decorations[], diagnostics: readonly Diagnostic[]): Decorations;
255
-
256
267
  declare function defineOverlay<P extends BoundPath>(o: {
257
268
  id: string;
258
269
  read: CommandRead<P>;
@@ -280,15 +291,15 @@ declare function PanelScope({ ctx, target, paths, tick, onReadError, children, }
280
291
  }): react_jsx_runtime.JSX.Element;
281
292
  declare function usePanelScope(): PanelScopeValue;
282
293
 
283
- declare function ConflictBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
294
+ declare function ConflictBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element;
284
295
  declare const conflictPanel: Panel;
285
296
 
286
- declare function UnsavedMarker({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
297
+ declare function UnsavedMarker(): react_jsx_runtime.JSX.Element;
287
298
  declare const unsavedMarker: Panel;
288
- declare function UngeneratedMarker({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
299
+ declare function UngeneratedMarker(): react_jsx_runtime.JSX.Element;
289
300
  declare const ungeneratedMarker: Panel;
290
301
 
291
- declare function SourceRefusedBanner({ ctx }: PanelProps): react_jsx_runtime.JSX.Element | null;
302
+ declare function SourceRefusedBanner(): react_jsx_runtime.JSX.Element;
292
303
  declare const sourceRefusedPanel: Panel;
293
304
 
294
305
  type SourceState = {
@@ -305,7 +316,7 @@ type CommandReadState<P extends BoundPath> = {
305
316
  };
306
317
  declare function useCommandRead<P extends BoundPath>(read: CommandRead<P>, target?: ActionTarget): CommandReadState<P>;
307
318
 
308
- type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'view' | 'selection' | 'diagnostics'>>;
319
+ type ResolveCtx = RunCtx & Partial<Pick<CanvasCtx, 'editable' | 'generating' | 'sourceRefused' | 'view' | 'selection' | 'diagnostics' | 'settingsOpen'>>;
309
320
  declare function disabledReason(action: ActionContribution, ctx: ResolveCtx, isBusy: boolean): string | undefined;
310
321
  declare function resolveContributions<P extends PanelSpec>(all: ContributionSet<P>, ports: CanvasPorts, ctx: ResolveCtx, target?: ActionTarget): ContributionSet<P>;
311
322
  /** Every resolved action placed in a given panel's row (a `row:<panel>` placement). */
@@ -316,7 +327,7 @@ type CanvasContextValue = {
316
327
  bundle: Bundle;
317
328
  view: CanvasView;
318
329
  ctx: CanvasCtx;
319
- decorations: Decorations;
330
+ decorations: DrawnDecorations;
320
331
  editable: boolean;
321
332
  arrangement: CanvasArrangement;
322
333
  updateArrangement: (next: CanvasArrangement) => void;
@@ -330,10 +341,9 @@ type CanvasContextValue = {
330
341
  }) => void;
331
342
  runner: ActionRunner;
332
343
  layout: LayoutHandle;
333
- settingsOpen: boolean;
334
344
  setSettingsOpen: (next: boolean) => void;
335
345
  };
336
346
  declare const CanvasContext: React.Context<CanvasContextValue | null>;
337
347
  declare function useCanvas(): CanvasContextValue;
338
348
 
339
- export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, type AppProps, Badge, BoundPath, CanvasContext, type CanvasContextValue, CanvasCtx, CanvasPorts, CanvasSource, CommandArgsForm, type CommandArgsFormProps, CommandRead, type CommandReadState, CommandResult, ConflictBanner, ContextMenu, ContributionSet, type Contributions, Decorations, EdgeInspectorPanel, EdgeRef, ErrorBoundary, ErrorState, type ExternalPin, GroupNode, type GroupNodeData, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, type ModuleNodeData, NodeConfigBusProvider, OverlayContribution, type Panel, type PanelProps, PanelScope, type PanelScopeValue, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, RunCtx, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, disabledReason, resolveContributions, rowActions, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };
349
+ export { AccordionSection, ActionContribution, ActionRunner, ActionTarget, App, type AppProps, Badge, BoundPath, CanvasContext, type CanvasContextValue, CanvasCtx, CanvasPorts, CanvasSource, CommandArgsForm, type CommandArgsFormProps, CommandRead, type CommandReadState, CommandResult, ConflictBanner, ContextMenu, ContributionSet, type Contributions, Decorations, EdgeInspectorPanel, EdgeRef, ErrorBoundary, ErrorState, GroupNode, type GroupNodeData, type InterfacePin, JsonOf, LocalsContent, LocalsPanel, ModuleConfigPanel, ModuleInterfaceContent, ModuleInterfacePanel, ModuleNode, type ModuleNodeData, NodeConfigBusProvider, NodeDecoration, OverlayContribution, type Panel, type PanelProps, PanelScope, type PanelScopeValue, PanelSpec, PendingForm, ProvidersContent, ProvidersPanel, ResultStore, RunCtx, type SnapshotSourceInput, SourceEnd, SourcePort, SourceRefusedBanner, TerraformConfigContent, TerraformConfigPanel, UngeneratedMarker, UnifiedSettingsPanel, UnsavedMarker, conflictPanel, decorate, decorateDescribe, defineOverlay, describeOverlay, disabledReason, resolveContributions, rowActions, snapshotSource, sourceRefusedPanel, ungeneratedMarker, unsavedMarker, useCanvas, useCanvasSource, useCommandRead, usePanelScope };