@lace-cloud/canvas 0.28.0 → 0.29.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,5 +1,5 @@
1
- import { A as ActionContribution, S as SourcePort } from '../registry-LzXZx20m.mjs';
2
- export { a_ as Action, k as ActionRunner, m as ActionRunnerOptions, f as ActionTarget, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, d as BoundPath, r as BridgeEngineCaller, s as Busy, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GateChangeRequest, a7 as GenerateEvent, a8 as GraphError, a9 as HostBinding, a$ as InputMode, aa as Invocation, J as JsonOf, b0 as LaceReason, b1 as LiveSlots, b2 as OnScreen, c as PendingForm, ad as PortName, ae as PresenterPort, af as PreviewOutcome, ag as PreviewSlot, ah as Reason, ai as ReportEntry, aj as ReportFold, ak as ReportPath, al as ReportSlot, am as ResultKind, an as ResultSlots, R as ResultStore, ao as RunCtx, ap as RunOutcome, b3 as RunPhase, b4 as RunPhaseStatus, aq as RunSlot, ar as RunnerPorts, as as RunningMark, at as SCHEMAS, au as Sink, av as SinkInput, aw as SlotContext, ax as SlotKind, ay as SourceConflict, i as SourceEnd, az as StackRef, aA as Started, aB as ViewStatePort, aC as WiringCandidate, aD as WiringQuery, aE as answering, aF as bridgeCaller, aG as carriesFailure, aH as commandUnderWay, aI as connectCaller, aJ as createActionRunner, aK as createResultStore, aL as currentReport, aM as defineCommand, aN as diagnosticsOf, b5 as diagnosticsOfDocument, b6 as failureSays, aP as foldReport, aQ as isBoundPath, b7 as liveSlots, aR as openEngineCommands, aS as openEngineSession, aT as parseBound, aU as parseCommandFailure, b8 as reasonWire, b9 as reduceFollow, ba as reducePreview, bb as reduceReport, bc as reduceRun, aV as reportDiagnostics, bd as settleRun, aY as toArgv, aZ as uniqueDiagnostics } from '../registry-LzXZx20m.mjs';
1
+ import { A as ActionContribution, S as SourcePort } from '../registry-CuZ4kEQJ.mjs';
2
+ export { a_ as Action, k as ActionRunner, m as ActionRunnerOptions, f as ActionTarget, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, d as BoundPath, r as BridgeEngineCaller, s as Busy, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GateChangeRequest, a7 as GenerateEvent, a8 as GraphError, a9 as HostBinding, a$ as InputMode, aa as Invocation, J as JsonOf, b0 as LaceReason, b1 as LiveSlots, b2 as OnScreen, c as PendingForm, ad as PortName, ae as PresenterPort, af as PreviewOutcome, ag as PreviewSlot, ah as Reason, ai as ReportEntry, aj as ReportFold, ak as ReportPath, al as ReportSlot, am as ResultKind, an as ResultSlots, R as ResultStore, ao as RunCtx, ap as RunOutcome, b3 as RunPhase, b4 as RunPhaseStatus, aq as RunSlot, ar as RunnerPorts, as as RunningMark, at as SCHEMAS, au as Sink, av as SinkInput, aw as SlotContext, ax as SlotKind, ay as SourceConflict, i as SourceEnd, az as StackRef, aA as Started, aB as ViewStatePort, aC as WiringCandidate, aD as WiringQuery, aE as answering, aF as bridgeCaller, aG as carriesFailure, aH as commandUnderWay, aI as connectCaller, aJ as createActionRunner, aK as createResultStore, aL as currentReport, aM as defineCommand, aN as diagnosticsOf, b5 as diagnosticsOfDocument, b6 as failureSays, aP as foldReport, aQ as isBoundPath, b7 as liveSlots, aR as openEngineCommands, aS as openEngineSession, aT as parseBound, aU as parseCommandFailure, b8 as reasonWire, b9 as reduceFollow, ba as reducePreview, bb as reduceReport, bc as reduceRun, aV as reportDiagnostics, bd as settleRun, aY as toArgv, aZ as uniqueDiagnostics } from '../registry-CuZ4kEQJ.mjs';
3
3
  import '@lace-cloud/proto';
4
4
  import 'zod';
5
5
  import '@bufbuild/protobuf/wire';
@@ -1,5 +1,5 @@
1
- import { A as ActionContribution, S as SourcePort } from '../registry-LzXZx20m.js';
2
- export { a_ as Action, k as ActionRunner, m as ActionRunnerOptions, f as ActionTarget, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, d as BoundPath, r as BridgeEngineCaller, s as Busy, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GateChangeRequest, a7 as GenerateEvent, a8 as GraphError, a9 as HostBinding, a$ as InputMode, aa as Invocation, J as JsonOf, b0 as LaceReason, b1 as LiveSlots, b2 as OnScreen, c as PendingForm, ad as PortName, ae as PresenterPort, af as PreviewOutcome, ag as PreviewSlot, ah as Reason, ai as ReportEntry, aj as ReportFold, ak as ReportPath, al as ReportSlot, am as ResultKind, an as ResultSlots, R as ResultStore, ao as RunCtx, ap as RunOutcome, b3 as RunPhase, b4 as RunPhaseStatus, aq as RunSlot, ar as RunnerPorts, as as RunningMark, at as SCHEMAS, au as Sink, av as SinkInput, aw as SlotContext, ax as SlotKind, ay as SourceConflict, i as SourceEnd, az as StackRef, aA as Started, aB as ViewStatePort, aC as WiringCandidate, aD as WiringQuery, aE as answering, aF as bridgeCaller, aG as carriesFailure, aH as commandUnderWay, aI as connectCaller, aJ as createActionRunner, aK as createResultStore, aL as currentReport, aM as defineCommand, aN as diagnosticsOf, b5 as diagnosticsOfDocument, b6 as failureSays, aP as foldReport, aQ as isBoundPath, b7 as liveSlots, aR as openEngineCommands, aS as openEngineSession, aT as parseBound, aU as parseCommandFailure, b8 as reasonWire, b9 as reduceFollow, ba as reducePreview, bb as reduceReport, bc as reduceRun, aV as reportDiagnostics, bd as settleRun, aY as toArgv, aZ as uniqueDiagnostics } from '../registry-LzXZx20m.js';
1
+ import { A as ActionContribution, S as SourcePort } from '../registry-CuZ4kEQJ.js';
2
+ export { a_ as Action, k as ActionRunner, m as ActionRunnerOptions, f as ActionTarget, n as ApplyResult, o as ApplyUnobservedError, p as ArgsOf, q as BindingRuntime, d as BoundPath, r as BridgeEngineCaller, s as Busy, t as COMMANDS, b as CanvasPorts, h as CanvasSource, v as CommandBinding, w as CommandDetachedError, x as CommandExitError, y as CommandFailure, z as CommandPath, g as CommandResult, F as CommandRun, G as CommandUnobservedError, H as CommandsPort, I as ConfirmSpec, K as ConnectCallerOptions, M as ConnectError, T as ContextPort, U as CreatedRef, V as DirectEngineCaller, W as EMPTY_REPORT_FOLD, _ as EditorPort, $ as EngineCaller, a0 as EngineMethodResponse, a1 as EngineSession, a2 as EngineSessionOptions, a3 as EngineTarget, a4 as ErasedCommand, a5 as FollowSlot, a6 as GateChangeRequest, a7 as GenerateEvent, a8 as GraphError, a9 as HostBinding, a$ as InputMode, aa as Invocation, J as JsonOf, b0 as LaceReason, b1 as LiveSlots, b2 as OnScreen, c as PendingForm, ad as PortName, ae as PresenterPort, af as PreviewOutcome, ag as PreviewSlot, ah as Reason, ai as ReportEntry, aj as ReportFold, ak as ReportPath, al as ReportSlot, am as ResultKind, an as ResultSlots, R as ResultStore, ao as RunCtx, ap as RunOutcome, b3 as RunPhase, b4 as RunPhaseStatus, aq as RunSlot, ar as RunnerPorts, as as RunningMark, at as SCHEMAS, au as Sink, av as SinkInput, aw as SlotContext, ax as SlotKind, ay as SourceConflict, i as SourceEnd, az as StackRef, aA as Started, aB as ViewStatePort, aC as WiringCandidate, aD as WiringQuery, aE as answering, aF as bridgeCaller, aG as carriesFailure, aH as commandUnderWay, aI as connectCaller, aJ as createActionRunner, aK as createResultStore, aL as currentReport, aM as defineCommand, aN as diagnosticsOf, b5 as diagnosticsOfDocument, b6 as failureSays, aP as foldReport, aQ as isBoundPath, b7 as liveSlots, aR as openEngineCommands, aS as openEngineSession, aT as parseBound, aU as parseCommandFailure, b8 as reasonWire, b9 as reduceFollow, ba as reducePreview, bb as reduceReport, bc as reduceRun, aV as reportDiagnostics, bd as settleRun, aY as toArgv, aZ as uniqueDiagnostics } from '../registry-CuZ4kEQJ.js';
3
3
  import '@lace-cloud/proto';
4
4
  import 'zod';
5
5
  import '@bufbuild/protobuf/wire';
@@ -40,7 +40,7 @@ import {
40
40
  settleRun,
41
41
  toArgv,
42
42
  uniqueDiagnostics
43
- } from "../chunk-DYTLLFEM.mjs";
43
+ } from "../chunk-ASG36ZXQ.mjs";
44
44
  export {
45
45
  ApplyUnobservedError,
46
46
  AutosaveEndedError,
package/dist/index.cjs CHANGED
@@ -59,6 +59,7 @@ __export(index_exports, {
59
59
  ProvidersPanel: () => ProvidersPanel,
60
60
  Reason: () => Reason,
61
61
  SCHEMAS: () => SCHEMAS,
62
+ SnapshotFetchError: () => SnapshotFetchError,
62
63
  SourceRefusedBanner: () => SourceRefusedBanner,
63
64
  TerraformConfigContent: () => TerraformConfigContent,
64
65
  TerraformConfigPanel: () => TerraformConfigPanel,
@@ -13964,6 +13965,32 @@ var COMMANDS = {
13964
13965
  "hidden": false,
13965
13966
  "yes": false
13966
13967
  },
13968
+ "module lock": {
13969
+ "path": "module lock",
13970
+ "positionals": [],
13971
+ "flags": {
13972
+ "org": {
13973
+ "type": "string"
13974
+ },
13975
+ "output": {
13976
+ "type": "string",
13977
+ "values": [
13978
+ "table",
13979
+ "json"
13980
+ ]
13981
+ },
13982
+ "path": {
13983
+ "type": "string"
13984
+ },
13985
+ "upgrade": {
13986
+ "type": "stringArray",
13987
+ "repeated": true
13988
+ }
13989
+ },
13990
+ "effect": "write",
13991
+ "hidden": false,
13992
+ "yes": false
13993
+ },
13967
13994
  "module scan": {
13968
13995
  "path": "module scan",
13969
13996
  "positionals": [],
@@ -15110,10 +15137,18 @@ var moduleValidateResultSchema = import_zod.z.object({
15110
15137
  failure: commandFailureSchema.optional(),
15111
15138
  diagnostics: import_zod.z.array(commandDiagnosticSchema)
15112
15139
  });
15140
+ var moduleLockResultSchema = import_zod.z.object({
15141
+ path: import_zod.z.string(),
15142
+ lockfile: import_zod.z.string(),
15143
+ providers: import_zod.z.array(
15144
+ import_zod.z.object({ address: import_zod.z.string(), version: import_zod.z.string(), platforms: import_zod.z.array(import_zod.z.string()) })
15145
+ )
15146
+ });
15113
15147
  var moduleConvertResultSchema = import_zod.z.object({
15114
15148
  changed: import_zod.z.boolean(),
15115
15149
  written: import_zod.z.array(import_zod.z.string()),
15116
15150
  removed: import_zod.z.array(import_zod.z.string()),
15151
+ lock: moduleLockResultSchema.nullable(),
15117
15152
  validate: moduleValidateResultSchema,
15118
15153
  diagnostics: import_zod.z.array(commandDiagnosticSchema)
15119
15154
  });
@@ -15193,6 +15228,12 @@ var moduleFmtResultSchema = import_zod.z.object({ changed: import_zod.z.array(im
15193
15228
  var moduleDocsResultSchema = import_zod.z.object({ markdown: import_zod.z.string() });
15194
15229
  var moduleScanResultSchema = import_zod.z.object({
15195
15230
  treeHash: import_zod.z.string(),
15231
+ tool: import_zod.z.object({
15232
+ name: import_zod.z.string(),
15233
+ version: import_zod.z.string().nullable(),
15234
+ path: import_zod.z.string(),
15235
+ source: import_zod.z.enum(["env", "path", "cache"])
15236
+ }),
15196
15237
  diagnostics: import_zod.z.array(commandDiagnosticSchema)
15197
15238
  });
15198
15239
  var registryDescribeSchema = import_zod.z.object({
@@ -15346,6 +15387,22 @@ var runSchema = import_zod.z.object({
15346
15387
  // a portal mount reading the API body sees it absent — optional so both
15347
15388
  // bodies parse. A host opens this link and never composes a portal route.
15348
15389
  url: import_zod.z.string().optional(),
15390
+ // The provider versions the Run's lockfile pins, each with the
15391
+ // organization's admission it ran under when the version is one admitted
15392
+ // outside the curated range. A single-run read carries it; a list does
15393
+ // not, and the CLI omits an empty one.
15394
+ providers: import_zod.z.array(
15395
+ import_zod.z.object({
15396
+ address: import_zod.z.string(),
15397
+ version: import_zod.z.string(),
15398
+ admission: import_zod.z.object({
15399
+ id: import_zod.z.string(),
15400
+ admittedBy: import_zod.z.string(),
15401
+ admittedByName: import_zod.z.string().nullable(),
15402
+ admittedAt: import_zod.z.string()
15403
+ }).optional()
15404
+ })
15405
+ ).optional(),
15349
15406
  // The CLI's own `api.Run` decode struct (apps/cli/internal/api/runs.go) has no
15350
15407
  // json tag for these, so every CLI JSON golden omits them; the API always sends
15351
15408
  // them (apps/api/src/openapi/schemas/runs.ts) — optional so both bodies parse.
@@ -15565,16 +15622,22 @@ var currentSelectionSchema = import_zod.z.union([
15565
15622
  import_zod.z.object({ slug: import_zod.z.null(), source: import_zod.z.null() })
15566
15623
  ]);
15567
15624
  var loginUserSchema = import_zod.z.object({ id: import_zod.z.string(), email: import_zod.z.string(), name: import_zod.z.string() });
15568
- var logoutSchema = import_zod.z.object({ loggedOut: import_zod.z.boolean() });
15625
+ var keyRevocationSchema = import_zod.z.object({
15626
+ revocation: import_zod.z.enum(["revoked", "refused", "unreachable", "unreadable", "none"]),
15627
+ detail: import_zod.z.string().optional(),
15628
+ portalUrl: import_zod.z.string().optional()
15629
+ });
15630
+ var logoutSchema = keyRevocationSchema.extend({ loggedOut: import_zod.z.boolean() });
15569
15631
  var loginEventSchema = import_zod.z.discriminatedUnion("type", [
15570
15632
  import_zod.z.object({ type: import_zod.z.literal("code"), code: import_zod.z.string(), verificationUrl: import_zod.z.string().optional() }),
15571
15633
  import_zod.z.object({ type: import_zod.z.literal("url"), url: import_zod.z.string() }),
15572
15634
  import_zod.z.object({ type: import_zod.z.literal("email_sent"), email: import_zod.z.string() }),
15573
- import_zod.z.object({ type: import_zod.z.literal("result"), user: loginUserSchema })
15635
+ import_zod.z.object({ type: import_zod.z.literal("result"), user: loginUserSchema, replacedKey: keyRevocationSchema })
15574
15636
  ]);
15575
15637
  var SCHEMAS = {
15576
15638
  "module validate": moduleValidateResultSchema,
15577
15639
  "module convert": moduleConvertResultSchema,
15640
+ "module lock": moduleLockResultSchema,
15578
15641
  "module fmt": moduleFmtResultSchema,
15579
15642
  "module docs": moduleDocsResultSchema,
15580
15643
  "module scan": moduleScanResultSchema,
@@ -19687,6 +19750,13 @@ function App({
19687
19750
  }
19688
19751
 
19689
19752
  // src/adapters/snapshot-source.ts
19753
+ var SnapshotFetchError = class extends Error {
19754
+ constructor(status) {
19755
+ super(`snapshotSource: failed to fetch bundle (status ${status})`);
19756
+ this.status = status;
19757
+ this.name = "SnapshotFetchError";
19758
+ }
19759
+ };
19690
19760
  function snapshotSource(input) {
19691
19761
  const fetchImpl = input.fetch ?? globalThis.fetch.bind(globalThis);
19692
19762
  let cached = null;
@@ -19698,9 +19768,7 @@ function snapshotSource(input) {
19698
19768
  headers: { accept: "application/octet-stream", ...input.headers },
19699
19769
  credentials: "include"
19700
19770
  });
19701
- if (!res.ok) {
19702
- throw new Error(`snapshotSource: failed to fetch bundle (status ${res.status})`);
19703
- }
19771
+ if (!res.ok) throw new SnapshotFetchError(res.status);
19704
19772
  const bytes = new Uint8Array(await res.arrayBuffer());
19705
19773
  const source = {
19706
19774
  bundle: Bundle.decode(bytes),
@@ -20495,6 +20563,7 @@ function convertCreatedRef(r) {
20495
20563
  ProvidersPanel,
20496
20564
  Reason,
20497
20565
  SCHEMAS,
20566
+ SnapshotFetchError,
20498
20567
  SourceRefusedBanner,
20499
20568
  TerraformConfigContent,
20500
20569
  TerraformConfigPanel,