@lace-cloud/canvas 0.36.0 → 0.37.0

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.
@@ -1,6 +1,6 @@
1
- import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-Bflzqecd.mjs';
2
- export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ab as ResultStore, ac as RunCtx, ad as RunOutcome, ae as RunSlot, af as RunStage, ag as RunStageStatus, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, ap as SourceEnd, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as diagnosticsOfDocument, aH as failureSays, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aL as liveSlots, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aQ as reasonWire, aR as reduceFollow, aS as reducePreview, aT as reduceReport, aU as reduceRun, aV as reportDiagnostics, aW as settleRun, aX as toArgv, aY as uniqueDiagnostics } from '../registry-Bflzqecd.mjs';
3
- import '@lace-cloud/proto';
1
+ import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-4-XX1MRe.mjs';
2
+ export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ab as ResultStore, ac as RunCtx, ad as RunOutcome, ae as RunSlot, af as RunStage, ag as RunStageStatus, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, ap as SourceEnd, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as diagnosticsOfDocument, aH as failureSays, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aL as liveSlots, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aQ as reasonWire, aR as reduceFollow, aS as reducePreview, aT as reduceReport, aU as reduceRun, aV as reportDiagnostics, aW as settleRun, aX as toArgv, aY as uniqueDiagnostics } from '../registry-4-XX1MRe.mjs';
3
+ import { RenderEdge } from '@lace-cloud/proto';
4
4
  import 'zod';
5
5
  import '@bufbuild/protobuf/wire';
6
6
 
@@ -25,6 +25,22 @@ declare const stackSlugRule: {
25
25
  */
26
26
  declare function proposeStackSlug(folder: string): string;
27
27
 
28
+ type WireEnd = {
29
+ readonly kind: 'group-pin';
30
+ readonly node: string;
31
+ readonly pin: string;
32
+ } | {
33
+ readonly kind: 'call';
34
+ readonly node: string;
35
+ } | {
36
+ readonly kind: 'pin';
37
+ readonly node: string;
38
+ readonly pin: string;
39
+ };
40
+ type WireEnds = Pick<RenderEdge, 'source' | 'target' | 'source_output' | 'target_input'> & Pick<Partial<RenderEdge>, 'source_pin' | 'target_pin'>;
41
+ declare function wireEnd(wire: WireEnds, end: 'source' | 'target'): WireEnd;
42
+ declare function wireEndText(wire: WireEnds, end: 'source' | 'target', pinText: (node: string, pin: string, end: 'source' | 'target') => string): string;
43
+
28
44
  type AutosavePolicy = {
29
45
  kind: 'afterDelay';
30
46
  delayMs: number;
@@ -40,5 +56,5 @@ declare class AutosaveEndedError extends Error {
40
56
  }
41
57
  declare function autosave(source: SourcePort, save: () => Promise<void>, policy: AutosavePolicy, report: (error: unknown) => void): Autosave;
42
58
 
43
- export { ActionContribution, AutosaveEndedError, CORE_COMMAND_ACTIONS, DID_NOT_LOCK, JsonOf, LOCK_LABEL, SourcePort, autosave, lockFailed, lockNotice, lockedIn, lockfileOf, proposeStackSlug, stackSlugRule };
44
- export type { Autosave, AutosavePolicy };
59
+ export { ActionContribution, AutosaveEndedError, CORE_COMMAND_ACTIONS, DID_NOT_LOCK, JsonOf, LOCK_LABEL, SourcePort, autosave, lockFailed, lockNotice, lockedIn, lockfileOf, proposeStackSlug, stackSlugRule, wireEnd, wireEndText };
60
+ export type { Autosave, AutosavePolicy, WireEnd };
@@ -1,6 +1,6 @@
1
- import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-Bflzqecd.js';
2
- export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ab as ResultStore, ac as RunCtx, ad as RunOutcome, ae as RunSlot, af as RunStage, ag as RunStageStatus, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, ap as SourceEnd, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as diagnosticsOfDocument, aH as failureSays, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aL as liveSlots, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aQ as reasonWire, aR as reduceFollow, aS as reducePreview, aT as reduceReport, aU as reduceRun, aV as reportDiagnostics, aW as settleRun, aX as toArgv, aY as uniqueDiagnostics } from '../registry-Bflzqecd.js';
3
- import '@lace-cloud/proto';
1
+ import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-4-XX1MRe.js';
2
+ export { a as Action, b as ActionRunner, c as ActionRunnerOptions, d as ActionTarget, e as ApplyResult, f as ApplyUnobservedError, g as ArgsOf, B as BindingRuntime, h as BoundPath, i as BridgeEngineCaller, j as Busy, C as COMMANDS, k as CanvasPorts, l as CanvasSource, m as CommandBinding, n as CommandDetachedError, o as CommandExitError, p as CommandFailure, q as CommandPath, r as CommandResult, s as CommandRun, t as CommandUnobservedError, u as CommandsPort, v as ConfirmSpec, w as ConnectCallerOptions, x as ConnectError, y as ContextPort, z as CreatedRef, D as DirectEngineCaller, E as EMPTY_REPORT_FOLD, F as EditorPort, G as EngineCaller, H as EngineMethodResponse, I as EngineSession, K as EngineSessionOptions, L as EngineTarget, M as ErasedCommand, N as FollowSlot, O as GENERATE_STAGES, P as GateChangeRequest, Q as GenerateEvent, R as GenerateStage, T as GeneratedTree, U as GraphError, V as HostBinding, W as InputMode, X as Invocation, Y as LaceReason, Z as LiveSlots, _ as OnScreen, $ as PendingForm, a0 as PortName, a1 as PresenterPort, a2 as PreviewOutcome, a3 as PreviewSlot, a4 as Reason, a5 as ReportEntry, a6 as ReportFold, a7 as ReportPath, a8 as ReportSlot, a9 as ResultKind, aa as ResultSlots, ab as ResultStore, ac as RunCtx, ad as RunOutcome, ae as RunSlot, af as RunStage, ag as RunStageStatus, ah as RunnerPorts, ai as RunningMark, aj as SCHEMAS, ak as Sink, al as SinkInput, am as SlotContext, an as SlotKind, ao as SourceConflict, ap as SourceEnd, aq as StackRef, ar as Started, as as ViewStatePort, at as WiringCandidate, au as WiringQuery, av as answering, aw as bridgeCaller, ax as carriesFailure, ay as commandPathOf, az as commandUnderWay, aA as connectCaller, aB as createActionRunner, aC as createResultStore, aD as currentReport, aE as defineCommand, aF as diagnosticsOf, aG as diagnosticsOfDocument, aH as failureSays, aI as foldReport, aJ as generatedTree, aK as isBoundPath, aL as liveSlots, aM as openEngineCommands, aN as openEngineSession, aO as parseBound, aP as parseCommandFailure, aQ as reasonWire, aR as reduceFollow, aS as reducePreview, aT as reduceReport, aU as reduceRun, aV as reportDiagnostics, aW as settleRun, aX as toArgv, aY as uniqueDiagnostics } from '../registry-4-XX1MRe.js';
3
+ import { RenderEdge } from '@lace-cloud/proto';
4
4
  import 'zod';
5
5
  import '@bufbuild/protobuf/wire';
6
6
 
@@ -25,6 +25,22 @@ declare const stackSlugRule: {
25
25
  */
26
26
  declare function proposeStackSlug(folder: string): string;
27
27
 
28
+ type WireEnd = {
29
+ readonly kind: 'group-pin';
30
+ readonly node: string;
31
+ readonly pin: string;
32
+ } | {
33
+ readonly kind: 'call';
34
+ readonly node: string;
35
+ } | {
36
+ readonly kind: 'pin';
37
+ readonly node: string;
38
+ readonly pin: string;
39
+ };
40
+ type WireEnds = Pick<RenderEdge, 'source' | 'target' | 'source_output' | 'target_input'> & Pick<Partial<RenderEdge>, 'source_pin' | 'target_pin'>;
41
+ declare function wireEnd(wire: WireEnds, end: 'source' | 'target'): WireEnd;
42
+ declare function wireEndText(wire: WireEnds, end: 'source' | 'target', pinText: (node: string, pin: string, end: 'source' | 'target') => string): string;
43
+
28
44
  type AutosavePolicy = {
29
45
  kind: 'afterDelay';
30
46
  delayMs: number;
@@ -40,5 +56,5 @@ declare class AutosaveEndedError extends Error {
40
56
  }
41
57
  declare function autosave(source: SourcePort, save: () => Promise<void>, policy: AutosavePolicy, report: (error: unknown) => void): Autosave;
42
58
 
43
- export { ActionContribution, AutosaveEndedError, CORE_COMMAND_ACTIONS, DID_NOT_LOCK, JsonOf, LOCK_LABEL, SourcePort, autosave, lockFailed, lockNotice, lockedIn, lockfileOf, proposeStackSlug, stackSlugRule };
44
- export type { Autosave, AutosavePolicy };
59
+ export { ActionContribution, AutosaveEndedError, CORE_COMMAND_ACTIONS, DID_NOT_LOCK, JsonOf, LOCK_LABEL, SourcePort, autosave, lockFailed, lockNotice, lockedIn, lockfileOf, proposeStackSlug, stackSlugRule, wireEnd, wireEndText };
60
+ export type { Autosave, AutosavePolicy, WireEnd };
@@ -50,8 +50,10 @@ import {
50
50
  settleRun,
51
51
  stackSlugRule,
52
52
  toArgv,
53
- uniqueDiagnostics
54
- } from "../chunk-XPHDFIKV.mjs";
53
+ uniqueDiagnostics,
54
+ wireEnd,
55
+ wireEndText
56
+ } from "../chunk-45ZS7XCZ.mjs";
55
57
  export {
56
58
  ApplyUnobservedError,
57
59
  AutosaveEndedError,
@@ -104,6 +106,8 @@ export {
104
106
  settleRun,
105
107
  stackSlugRule,
106
108
  toArgv,
107
- uniqueDiagnostics
109
+ uniqueDiagnostics,
110
+ wireEnd,
111
+ wireEndText
108
112
  };
109
113
  //# sourceMappingURL=index.mjs.map