@lace-cloud/canvas 0.38.0 → 0.39.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,7 +1,7 @@
1
1
  import { RenderEdge } from '@lace-cloud/proto';
2
2
  export { Reason } from '@lace-cloud/proto';
3
- import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-BYGzxLKn.mjs';
4
- 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 ReportEntry, a5 as ReportFold, a6 as ReportPath, a7 as ReportSlot, a8 as ResultKind, a9 as ResultSlots, aa as ResultStore, ab as RunCtx, ac as RunOutcome, ad as RunSlot, ae as RunStage, af as RunStageStatus, ag as RunnerPorts, ah as RunningMark, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ao as SourceEnd, ap as StackRef, aq as Started, ar as ViewStatePort, as as WiringCandidate, at as WiringQuery, au as answering, av as bridgeCaller, aw as commandPathOf, ax as commandUnderWay, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, aE as diagnosticsOfDocument, aF as failureSays, aG as foldReport, aH as generatedTree, aI as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aN as reasonWire, aO as reduceFollow, aP as reducePreview, aQ as reduceReport, aR as reduceRun, aS as reportDiagnostics, aT as settleRun } from '../registry-BYGzxLKn.mjs';
3
+ import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-CFii6MTW.mjs';
4
+ 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 ReportEntry, a5 as ReportFold, a6 as ReportPath, a7 as ReportSlot, a8 as ResultKind, a9 as ResultSlots, aa as ResultStore, ab as RunCtx, ac as RunOutcome, ad as RunSlot, ae as RunStage, af as RunStageStatus, ag as RunnerPorts, ah as RunningMark, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ao as SourceEnd, ap as StackRef, aq as Started, ar as ViewStatePort, as as WiringCandidate, at as WiringQuery, au as answering, av as bridgeCaller, aw as commandPathOf, ax as commandUnderWay, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, aE as diagnosticsOfDocument, aF as failureSays, aG as foldReport, aH as generatedTree, aI as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aN as reasonWire, aO as reduceFollow, aP as reducePreview, aQ as reduceReport, aR as reduceRun, aS as reportDiagnostics, aT as settleRun } from '../registry-CFii6MTW.mjs';
5
5
  import 'zod';
6
6
  import '@bufbuild/protobuf/wire';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { RenderEdge } from '@lace-cloud/proto';
2
2
  export { Reason } from '@lace-cloud/proto';
3
- import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-BYGzxLKn.js';
4
- 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 ReportEntry, a5 as ReportFold, a6 as ReportPath, a7 as ReportSlot, a8 as ResultKind, a9 as ResultSlots, aa as ResultStore, ab as RunCtx, ac as RunOutcome, ad as RunSlot, ae as RunStage, af as RunStageStatus, ag as RunnerPorts, ah as RunningMark, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ao as SourceEnd, ap as StackRef, aq as Started, ar as ViewStatePort, as as WiringCandidate, at as WiringQuery, au as answering, av as bridgeCaller, aw as commandPathOf, ax as commandUnderWay, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, aE as diagnosticsOfDocument, aF as failureSays, aG as foldReport, aH as generatedTree, aI as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aN as reasonWire, aO as reduceFollow, aP as reducePreview, aQ as reduceReport, aR as reduceRun, aS as reportDiagnostics, aT as settleRun } from '../registry-BYGzxLKn.js';
3
+ import { A as ActionContribution, J as JsonOf, S as SourcePort } from '../registry-CFii6MTW.js';
4
+ 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 ReportEntry, a5 as ReportFold, a6 as ReportPath, a7 as ReportSlot, a8 as ResultKind, a9 as ResultSlots, aa as ResultStore, ab as RunCtx, ac as RunOutcome, ad as RunSlot, ae as RunStage, af as RunStageStatus, ag as RunnerPorts, ah as RunningMark, ai as SelectionPort, aj as Sink, ak as SinkInput, al as SlotContext, am as SlotKind, an as SourceConflict, ao as SourceEnd, ap as StackRef, aq as Started, ar as ViewStatePort, as as WiringCandidate, at as WiringQuery, au as answering, av as bridgeCaller, aw as commandPathOf, ax as commandUnderWay, ay as connectCaller, az as createActionRunner, aA as createResultStore, aB as currentReport, aC as defineCommand, aD as diagnosticsOf, aE as diagnosticsOfDocument, aF as failureSays, aG as foldReport, aH as generatedTree, aI as liveSlots, aJ as openEngineCommands, aK as openEngineSession, aL as parseBound, aM as parseCommandFailure, aN as reasonWire, aO as reduceFollow, aP as reducePreview, aQ as reduceReport, aR as reduceRun, aS as reportDiagnostics, aT as settleRun } from '../registry-CFii6MTW.js';
5
5
  import 'zod';
6
6
  import '@bufbuild/protobuf/wire';
7
7
 
@@ -47,7 +47,7 @@ import {
47
47
  settleRun,
48
48
  stackSlugRule,
49
49
  wireEndText
50
- } from "../chunk-GLQVTWB4.mjs";
50
+ } from "../chunk-C6QJEJO5.mjs";
51
51
  export {
52
52
  ApplyUnobservedError,
53
53
  AutosaveEndedError,
package/dist/index.cjs CHANGED
@@ -11908,6 +11908,42 @@ var COMMANDS = {
11908
11908
  "hidden": false,
11909
11909
  "yes": false
11910
11910
  },
11911
+ "events export": {
11912
+ "path": "events export",
11913
+ "positionals": [],
11914
+ "flags": {
11915
+ "after": {
11916
+ "type": "string"
11917
+ },
11918
+ "file": {
11919
+ "type": "string"
11920
+ },
11921
+ "org": {
11922
+ "type": "string"
11923
+ },
11924
+ "output": {
11925
+ "type": "string",
11926
+ "values": [
11927
+ "ndjson",
11928
+ "json"
11929
+ ],
11930
+ "short": "o"
11931
+ },
11932
+ "since": {
11933
+ "type": "string"
11934
+ },
11935
+ "type": {
11936
+ "type": "stringArray",
11937
+ "repeated": true
11938
+ },
11939
+ "until": {
11940
+ "type": "string"
11941
+ }
11942
+ },
11943
+ "effect": "write",
11944
+ "hidden": false,
11945
+ "yes": false
11946
+ },
11911
11947
  "hooks install": {
11912
11948
  "path": "hooks install",
11913
11949
  "positionals": [],
@@ -13569,7 +13605,30 @@ var previewAdvisorySchema = reads()(
13569
13605
  emittedByDisplayName: import_zod.z.string(),
13570
13606
  confidenceScore: import_zod.z.number(),
13571
13607
  producedAt: import_zod.z.string(),
13572
- outputJson: import_zod.z.unknown()
13608
+ outputJson: import_zod.z.unknown(),
13609
+ read: reads()(
13610
+ import_zod.z.object({
13611
+ plan: import_zod.z.string(),
13612
+ since: import_zod.z.string().nullable(),
13613
+ cites: import_zod.z.array(
13614
+ import_zod.z.union([
13615
+ import_zod.z.object({
13616
+ kind: import_zod.z.string(),
13617
+ id: import_zod.z.string(),
13618
+ at: import_zod.z.string(),
13619
+ present: import_zod.z.literal(true).optional(),
13620
+ ageDays: import_zod.z.number()
13621
+ }),
13622
+ import_zod.z.object({
13623
+ kind: import_zod.z.string(),
13624
+ count: import_zod.z.number(),
13625
+ oldestAt: import_zod.z.string(),
13626
+ ageDays: import_zod.z.number()
13627
+ })
13628
+ ])
13629
+ ).nullable()
13630
+ })
13631
+ )
13573
13632
  })
13574
13633
  );
13575
13634
  var previewEntrySchema = import_zod.z.discriminatedUnion("kind", [
@@ -13636,16 +13695,27 @@ var stackPreviewSchema = import_zod.z.object({
13636
13695
  ),
13637
13696
  // What the Preview shows of the Agents bound at it: the curated queue of
13638
13697
  // their Advisories about this tree, how many were recorded under the
13639
- // Preview's floor, how many bound Agents have not answered, and how many
13640
- // Agent Bindings the preview activated.
13698
+ // Preview's floor, how far back they read the Stack's Runs where the plan
13699
+ // cut it (the line a host draws under the Advisories, as the API words it),
13700
+ // how many bound Agents have not answered, and how many Agent Bindings the
13701
+ // preview activated.
13641
13702
  advisories: import_zod.z.object({
13642
13703
  queue: import_zod.z.object({
13643
13704
  manifestation: import_zod.z.literal("preview"),
13644
13705
  floor: import_zod.z.number(),
13645
13706
  entries: import_zod.z.array(previewEntrySchema),
13646
- belowFloor: import_zod.z.number()
13707
+ belowFloor: import_zod.z.number(),
13708
+ incompleteAssessment: import_zod.z.boolean().optional()
13647
13709
  }),
13648
13710
  truncated: import_zod.z.boolean(),
13711
+ window: reads()(
13712
+ import_zod.z.object({
13713
+ plan: import_zod.z.string(),
13714
+ since: import_zod.z.string(),
13715
+ notRead: import_zod.z.number(),
13716
+ line: import_zod.z.string()
13717
+ }).nullable()
13718
+ ),
13649
13719
  pending: import_zod.z.number(),
13650
13720
  bound: import_zod.z.number().optional()
13651
13721
  })
@@ -13810,7 +13880,7 @@ var logoutSchema = keyRevocationSchema.extend({ loggedOut: import_zod.z.boolean(
13810
13880
  var loginEventSchema = import_zod.z.discriminatedUnion("type", [
13811
13881
  import_zod.z.object({ type: import_zod.z.literal("code"), code: import_zod.z.string(), verificationUrl: import_zod.z.string().optional() }),
13812
13882
  import_zod.z.object({ type: import_zod.z.literal("url"), url: import_zod.z.string() }),
13813
- import_zod.z.object({ type: import_zod.z.literal("email_sent"), email: import_zod.z.string() }),
13883
+ import_zod.z.object({ type: import_zod.z.literal("link_requested"), email: import_zod.z.string() }),
13814
13884
  import_zod.z.object({ type: import_zod.z.literal("result"), user: loginUserSchema, replacedKey: keyRevocationSchema })
13815
13885
  ]);
13816
13886
  var SCHEMAS = {