@lace-cloud/canvas 0.38.0 → 0.40.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-C1v_atT4.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-C1v_atT4.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-C1v_atT4.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-C1v_atT4.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-TGXBVAPM.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": [],
@@ -13373,12 +13409,22 @@ var namedActorSchema = reads()(
13373
13409
  name: import_zod.z.string().nullable()
13374
13410
  })
13375
13411
  );
13376
- var stackSourceSchema = import_zod.z.object({
13412
+ var gitStackSourceSchema = import_zod.z.object({
13377
13413
  kind: import_zod.z.literal("git"),
13378
13414
  repoUrl: import_zod.z.string(),
13379
13415
  ref: import_zod.z.string().optional(),
13380
13416
  path: import_zod.z.string().optional()
13381
13417
  });
13418
+ var stackSourceSchema = import_zod.z.discriminatedUnion("kind", [
13419
+ gitStackSourceSchema,
13420
+ import_zod.z.object({
13421
+ kind: import_zod.z.literal("module_version"),
13422
+ author: import_zod.z.string(),
13423
+ name: import_zod.z.string(),
13424
+ system: import_zod.z.string(),
13425
+ version: import_zod.z.string()
13426
+ })
13427
+ ]);
13382
13428
  var stackSchema = reads()(
13383
13429
  import_zod.z.object({
13384
13430
  id: import_zod.z.string(),
@@ -13389,6 +13435,7 @@ var stackSchema = reads()(
13389
13435
  name: import_zod.z.string(),
13390
13436
  description: import_zod.z.string().nullable(),
13391
13437
  source: stackSourceSchema.nullable(),
13438
+ variables: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).nullable(),
13392
13439
  stateSerial: import_zod.z.number(),
13393
13440
  stateLineage: import_zod.z.string().nullable(),
13394
13441
  stateVersion: import_zod.z.number().nullable(),
@@ -13455,7 +13502,9 @@ var stackDescribeSchema = reads()(
13455
13502
  resourcesByType: import_zod.z.record(import_zod.z.string(), import_zod.z.number()),
13456
13503
  resources: import_zod.z.array(import_zod.z.object({ address: import_zod.z.string(), type: import_zod.z.string() }))
13457
13504
  }).nullable(),
13458
- drift: driftSchema
13505
+ drift: driftSchema,
13506
+ // The sentence the organization's plan holds the stack with; null while it holds nothing.
13507
+ planHold: import_zod.z.string().nullable()
13459
13508
  })
13460
13509
  );
13461
13510
  var policyBindingSchema = reads()(
@@ -13569,7 +13618,30 @@ var previewAdvisorySchema = reads()(
13569
13618
  emittedByDisplayName: import_zod.z.string(),
13570
13619
  confidenceScore: import_zod.z.number(),
13571
13620
  producedAt: import_zod.z.string(),
13572
- outputJson: import_zod.z.unknown()
13621
+ outputJson: import_zod.z.unknown(),
13622
+ read: reads()(
13623
+ import_zod.z.object({
13624
+ plan: import_zod.z.string(),
13625
+ since: import_zod.z.string().nullable(),
13626
+ cites: import_zod.z.array(
13627
+ import_zod.z.union([
13628
+ import_zod.z.object({
13629
+ kind: import_zod.z.string(),
13630
+ id: import_zod.z.string(),
13631
+ at: import_zod.z.string(),
13632
+ present: import_zod.z.literal(true).optional(),
13633
+ ageDays: import_zod.z.number()
13634
+ }),
13635
+ import_zod.z.object({
13636
+ kind: import_zod.z.string(),
13637
+ count: import_zod.z.number(),
13638
+ oldestAt: import_zod.z.string(),
13639
+ ageDays: import_zod.z.number()
13640
+ })
13641
+ ])
13642
+ ).nullable()
13643
+ })
13644
+ )
13573
13645
  })
13574
13646
  );
13575
13647
  var previewEntrySchema = import_zod.z.discriminatedUnion("kind", [
@@ -13636,16 +13708,27 @@ var stackPreviewSchema = import_zod.z.object({
13636
13708
  ),
13637
13709
  // What the Preview shows of the Agents bound at it: the curated queue of
13638
13710
  // 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.
13711
+ // Preview's floor, how far back they read the Stack's Runs where the plan
13712
+ // cut it (the line a host draws under the Advisories, as the API words it),
13713
+ // how many bound Agents have not answered, and how many Agent Bindings the
13714
+ // preview activated.
13641
13715
  advisories: import_zod.z.object({
13642
13716
  queue: import_zod.z.object({
13643
13717
  manifestation: import_zod.z.literal("preview"),
13644
13718
  floor: import_zod.z.number(),
13645
13719
  entries: import_zod.z.array(previewEntrySchema),
13646
- belowFloor: import_zod.z.number()
13720
+ belowFloor: import_zod.z.number(),
13721
+ incompleteAssessment: import_zod.z.boolean().optional()
13647
13722
  }),
13648
13723
  truncated: import_zod.z.boolean(),
13724
+ window: reads()(
13725
+ import_zod.z.object({
13726
+ plan: import_zod.z.string(),
13727
+ since: import_zod.z.string(),
13728
+ notRead: import_zod.z.number(),
13729
+ line: import_zod.z.string()
13730
+ }).nullable()
13731
+ ),
13649
13732
  pending: import_zod.z.number(),
13650
13733
  bound: import_zod.z.number().optional()
13651
13734
  })
@@ -13810,7 +13893,7 @@ var logoutSchema = keyRevocationSchema.extend({ loggedOut: import_zod.z.boolean(
13810
13893
  var loginEventSchema = import_zod.z.discriminatedUnion("type", [
13811
13894
  import_zod.z.object({ type: import_zod.z.literal("code"), code: import_zod.z.string(), verificationUrl: import_zod.z.string().optional() }),
13812
13895
  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() }),
13896
+ import_zod.z.object({ type: import_zod.z.literal("link_requested"), email: import_zod.z.string() }),
13814
13897
  import_zod.z.object({ type: import_zod.z.literal("result"), user: loginUserSchema, replacedKey: keyRevocationSchema })
13815
13898
  ]);
13816
13899
  var SCHEMAS = {
@@ -13832,7 +13915,7 @@ var SCHEMAS = {
13832
13915
  "stack destroy": runEventSchema,
13833
13916
  "drift scan": driftScanSchema,
13834
13917
  "stack create": stackSchema,
13835
- "stack validate": stackSourceSchema,
13918
+ "stack validate": gitStackSourceSchema,
13836
13919
  "module import": moduleImportSchema,
13837
13920
  "run get": runSchema,
13838
13921
  "run plan": runPlanSchema,