@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.
@@ -8511,6 +8511,42 @@ var COMMANDS = {
8511
8511
  "hidden": false,
8512
8512
  "yes": false
8513
8513
  },
8514
+ "events export": {
8515
+ "path": "events export",
8516
+ "positionals": [],
8517
+ "flags": {
8518
+ "after": {
8519
+ "type": "string"
8520
+ },
8521
+ "file": {
8522
+ "type": "string"
8523
+ },
8524
+ "org": {
8525
+ "type": "string"
8526
+ },
8527
+ "output": {
8528
+ "type": "string",
8529
+ "values": [
8530
+ "ndjson",
8531
+ "json"
8532
+ ],
8533
+ "short": "o"
8534
+ },
8535
+ "since": {
8536
+ "type": "string"
8537
+ },
8538
+ "type": {
8539
+ "type": "stringArray",
8540
+ "repeated": true
8541
+ },
8542
+ "until": {
8543
+ "type": "string"
8544
+ }
8545
+ },
8546
+ "effect": "write",
8547
+ "hidden": false,
8548
+ "yes": false
8549
+ },
8514
8550
  "hooks install": {
8515
8551
  "path": "hooks install",
8516
8552
  "positionals": [],
@@ -9976,12 +10012,22 @@ var namedActorSchema = reads()(
9976
10012
  name: import_zod.z.string().nullable()
9977
10013
  })
9978
10014
  );
9979
- var stackSourceSchema = import_zod.z.object({
10015
+ var gitStackSourceSchema = import_zod.z.object({
9980
10016
  kind: import_zod.z.literal("git"),
9981
10017
  repoUrl: import_zod.z.string(),
9982
10018
  ref: import_zod.z.string().optional(),
9983
10019
  path: import_zod.z.string().optional()
9984
10020
  });
10021
+ var stackSourceSchema = import_zod.z.discriminatedUnion("kind", [
10022
+ gitStackSourceSchema,
10023
+ import_zod.z.object({
10024
+ kind: import_zod.z.literal("module_version"),
10025
+ author: import_zod.z.string(),
10026
+ name: import_zod.z.string(),
10027
+ system: import_zod.z.string(),
10028
+ version: import_zod.z.string()
10029
+ })
10030
+ ]);
9985
10031
  var stackSchema = reads()(
9986
10032
  import_zod.z.object({
9987
10033
  id: import_zod.z.string(),
@@ -9992,6 +10038,7 @@ var stackSchema = reads()(
9992
10038
  name: import_zod.z.string(),
9993
10039
  description: import_zod.z.string().nullable(),
9994
10040
  source: stackSourceSchema.nullable(),
10041
+ variables: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).nullable(),
9995
10042
  stateSerial: import_zod.z.number(),
9996
10043
  stateLineage: import_zod.z.string().nullable(),
9997
10044
  stateVersion: import_zod.z.number().nullable(),
@@ -10058,7 +10105,9 @@ var stackDescribeSchema = reads()(
10058
10105
  resourcesByType: import_zod.z.record(import_zod.z.string(), import_zod.z.number()),
10059
10106
  resources: import_zod.z.array(import_zod.z.object({ address: import_zod.z.string(), type: import_zod.z.string() }))
10060
10107
  }).nullable(),
10061
- drift: driftSchema
10108
+ drift: driftSchema,
10109
+ // The sentence the organization's plan holds the stack with; null while it holds nothing.
10110
+ planHold: import_zod.z.string().nullable()
10062
10111
  })
10063
10112
  );
10064
10113
  var policyBindingSchema = reads()(
@@ -10172,7 +10221,30 @@ var previewAdvisorySchema = reads()(
10172
10221
  emittedByDisplayName: import_zod.z.string(),
10173
10222
  confidenceScore: import_zod.z.number(),
10174
10223
  producedAt: import_zod.z.string(),
10175
- outputJson: import_zod.z.unknown()
10224
+ outputJson: import_zod.z.unknown(),
10225
+ read: reads()(
10226
+ import_zod.z.object({
10227
+ plan: import_zod.z.string(),
10228
+ since: import_zod.z.string().nullable(),
10229
+ cites: import_zod.z.array(
10230
+ import_zod.z.union([
10231
+ import_zod.z.object({
10232
+ kind: import_zod.z.string(),
10233
+ id: import_zod.z.string(),
10234
+ at: import_zod.z.string(),
10235
+ present: import_zod.z.literal(true).optional(),
10236
+ ageDays: import_zod.z.number()
10237
+ }),
10238
+ import_zod.z.object({
10239
+ kind: import_zod.z.string(),
10240
+ count: import_zod.z.number(),
10241
+ oldestAt: import_zod.z.string(),
10242
+ ageDays: import_zod.z.number()
10243
+ })
10244
+ ])
10245
+ ).nullable()
10246
+ })
10247
+ )
10176
10248
  })
10177
10249
  );
10178
10250
  var previewEntrySchema = import_zod.z.discriminatedUnion("kind", [
@@ -10239,16 +10311,27 @@ var stackPreviewSchema = import_zod.z.object({
10239
10311
  ),
10240
10312
  // What the Preview shows of the Agents bound at it: the curated queue of
10241
10313
  // their Advisories about this tree, how many were recorded under the
10242
- // Preview's floor, how many bound Agents have not answered, and how many
10243
- // Agent Bindings the preview activated.
10314
+ // Preview's floor, how far back they read the Stack's Runs where the plan
10315
+ // cut it (the line a host draws under the Advisories, as the API words it),
10316
+ // how many bound Agents have not answered, and how many Agent Bindings the
10317
+ // preview activated.
10244
10318
  advisories: import_zod.z.object({
10245
10319
  queue: import_zod.z.object({
10246
10320
  manifestation: import_zod.z.literal("preview"),
10247
10321
  floor: import_zod.z.number(),
10248
10322
  entries: import_zod.z.array(previewEntrySchema),
10249
- belowFloor: import_zod.z.number()
10323
+ belowFloor: import_zod.z.number(),
10324
+ incompleteAssessment: import_zod.z.boolean().optional()
10250
10325
  }),
10251
10326
  truncated: import_zod.z.boolean(),
10327
+ window: reads()(
10328
+ import_zod.z.object({
10329
+ plan: import_zod.z.string(),
10330
+ since: import_zod.z.string(),
10331
+ notRead: import_zod.z.number(),
10332
+ line: import_zod.z.string()
10333
+ }).nullable()
10334
+ ),
10252
10335
  pending: import_zod.z.number(),
10253
10336
  bound: import_zod.z.number().optional()
10254
10337
  })
@@ -10413,7 +10496,7 @@ var logoutSchema = keyRevocationSchema.extend({ loggedOut: import_zod.z.boolean(
10413
10496
  var loginEventSchema = import_zod.z.discriminatedUnion("type", [
10414
10497
  import_zod.z.object({ type: import_zod.z.literal("code"), code: import_zod.z.string(), verificationUrl: import_zod.z.string().optional() }),
10415
10498
  import_zod.z.object({ type: import_zod.z.literal("url"), url: import_zod.z.string() }),
10416
- import_zod.z.object({ type: import_zod.z.literal("email_sent"), email: import_zod.z.string() }),
10499
+ import_zod.z.object({ type: import_zod.z.literal("link_requested"), email: import_zod.z.string() }),
10417
10500
  import_zod.z.object({ type: import_zod.z.literal("result"), user: loginUserSchema, replacedKey: keyRevocationSchema })
10418
10501
  ]);
10419
10502
  var SCHEMAS = {
@@ -10435,7 +10518,7 @@ var SCHEMAS = {
10435
10518
  "stack destroy": runEventSchema,
10436
10519
  "drift scan": driftScanSchema,
10437
10520
  "stack create": stackSchema,
10438
- "stack validate": stackSourceSchema,
10521
+ "stack validate": gitStackSourceSchema,
10439
10522
  "module import": moduleImportSchema,
10440
10523
  "run get": runSchema,
10441
10524
  "run plan": runPlanSchema,