@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.
package/README.md CHANGED
@@ -175,7 +175,10 @@ const { ports, close } = await openEngineSession(caller, { root: '/path/to/autho
175
175
  dashboards): it fetches one Bundle snapshot and never changes —
176
176
  `unsaved`/`ungenerated`/`sourceRefused` are always false, `conflict` is
177
177
  always `null`, `diagnostics` is always empty, since a RunSnapshot has no live
178
- validator and the run's own certification already vouched for it.
178
+ validator and the run's own certification already vouched for it. A fetch
179
+ the server answers with a failure ends the stream `failed` with a
180
+ `SnapshotFetchError`, whose `status` is the answer's HTTP status: a host
181
+ words the failure by it, never by the message.
179
182
 
180
183
  ```ts
181
184
  import { snapshotSource } from '@lace-cloud/canvas';
@@ -11157,6 +11157,32 @@ var COMMANDS = {
11157
11157
  "hidden": false,
11158
11158
  "yes": false
11159
11159
  },
11160
+ "module lock": {
11161
+ "path": "module lock",
11162
+ "positionals": [],
11163
+ "flags": {
11164
+ "org": {
11165
+ "type": "string"
11166
+ },
11167
+ "output": {
11168
+ "type": "string",
11169
+ "values": [
11170
+ "table",
11171
+ "json"
11172
+ ]
11173
+ },
11174
+ "path": {
11175
+ "type": "string"
11176
+ },
11177
+ "upgrade": {
11178
+ "type": "stringArray",
11179
+ "repeated": true
11180
+ }
11181
+ },
11182
+ "effect": "write",
11183
+ "hidden": false,
11184
+ "yes": false
11185
+ },
11160
11186
  "module scan": {
11161
11187
  "path": "module scan",
11162
11188
  "positionals": [],
@@ -12303,10 +12329,18 @@ var moduleValidateResultSchema = z.object({
12303
12329
  failure: commandFailureSchema.optional(),
12304
12330
  diagnostics: z.array(commandDiagnosticSchema)
12305
12331
  });
12332
+ var moduleLockResultSchema = z.object({
12333
+ path: z.string(),
12334
+ lockfile: z.string(),
12335
+ providers: z.array(
12336
+ z.object({ address: z.string(), version: z.string(), platforms: z.array(z.string()) })
12337
+ )
12338
+ });
12306
12339
  var moduleConvertResultSchema = z.object({
12307
12340
  changed: z.boolean(),
12308
12341
  written: z.array(z.string()),
12309
12342
  removed: z.array(z.string()),
12343
+ lock: moduleLockResultSchema.nullable(),
12310
12344
  validate: moduleValidateResultSchema,
12311
12345
  diagnostics: z.array(commandDiagnosticSchema)
12312
12346
  });
@@ -12386,6 +12420,12 @@ var moduleFmtResultSchema = z.object({ changed: z.array(z.string()) });
12386
12420
  var moduleDocsResultSchema = z.object({ markdown: z.string() });
12387
12421
  var moduleScanResultSchema = z.object({
12388
12422
  treeHash: z.string(),
12423
+ tool: z.object({
12424
+ name: z.string(),
12425
+ version: z.string().nullable(),
12426
+ path: z.string(),
12427
+ source: z.enum(["env", "path", "cache"])
12428
+ }),
12389
12429
  diagnostics: z.array(commandDiagnosticSchema)
12390
12430
  });
12391
12431
  var registryDescribeSchema = z.object({
@@ -12539,6 +12579,22 @@ var runSchema = z.object({
12539
12579
  // a portal mount reading the API body sees it absent — optional so both
12540
12580
  // bodies parse. A host opens this link and never composes a portal route.
12541
12581
  url: z.string().optional(),
12582
+ // The provider versions the Run's lockfile pins, each with the
12583
+ // organization's admission it ran under when the version is one admitted
12584
+ // outside the curated range. A single-run read carries it; a list does
12585
+ // not, and the CLI omits an empty one.
12586
+ providers: z.array(
12587
+ z.object({
12588
+ address: z.string(),
12589
+ version: z.string(),
12590
+ admission: z.object({
12591
+ id: z.string(),
12592
+ admittedBy: z.string(),
12593
+ admittedByName: z.string().nullable(),
12594
+ admittedAt: z.string()
12595
+ }).optional()
12596
+ })
12597
+ ).optional(),
12542
12598
  // The CLI's own `api.Run` decode struct (apps/cli/internal/api/runs.go) has no
12543
12599
  // json tag for these, so every CLI JSON golden omits them; the API always sends
12544
12600
  // them (apps/api/src/openapi/schemas/runs.ts) — optional so both bodies parse.
@@ -12758,16 +12814,22 @@ var currentSelectionSchema = z.union([
12758
12814
  z.object({ slug: z.null(), source: z.null() })
12759
12815
  ]);
12760
12816
  var loginUserSchema = z.object({ id: z.string(), email: z.string(), name: z.string() });
12761
- var logoutSchema = z.object({ loggedOut: z.boolean() });
12817
+ var keyRevocationSchema = z.object({
12818
+ revocation: z.enum(["revoked", "refused", "unreachable", "unreadable", "none"]),
12819
+ detail: z.string().optional(),
12820
+ portalUrl: z.string().optional()
12821
+ });
12822
+ var logoutSchema = keyRevocationSchema.extend({ loggedOut: z.boolean() });
12762
12823
  var loginEventSchema = z.discriminatedUnion("type", [
12763
12824
  z.object({ type: z.literal("code"), code: z.string(), verificationUrl: z.string().optional() }),
12764
12825
  z.object({ type: z.literal("url"), url: z.string() }),
12765
12826
  z.object({ type: z.literal("email_sent"), email: z.string() }),
12766
- z.object({ type: z.literal("result"), user: loginUserSchema })
12827
+ z.object({ type: z.literal("result"), user: loginUserSchema, replacedKey: keyRevocationSchema })
12767
12828
  ]);
12768
12829
  var SCHEMAS = {
12769
12830
  "module validate": moduleValidateResultSchema,
12770
12831
  "module convert": moduleConvertResultSchema,
12832
+ "module lock": moduleLockResultSchema,
12771
12833
  "module fmt": moduleFmtResultSchema,
12772
12834
  "module docs": moduleDocsResultSchema,
12773
12835
  "module scan": moduleScanResultSchema,
@@ -14496,4 +14558,4 @@ export {
14496
14558
  AutosaveEndedError,
14497
14559
  autosave
14498
14560
  };
14499
- //# sourceMappingURL=chunk-DYTLLFEM.mjs.map
14561
+ //# sourceMappingURL=chunk-ASG36ZXQ.mjs.map