@lazehq/cli 0.1.81 → 0.1.83

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.
Files changed (2) hide show
  1. package/dist/laze.mjs +307 -55
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -84,6 +84,7 @@ var init_ar = __esm({
84
84
  "compact.months": "\u0645\u0646\u0630 {count} \u0634",
85
85
  "day.today": "\u0627\u0644\u064A\u0648\u0645 \u0641\u064A {time}",
86
86
  "day.tomorrow": "\u063A\u062F\u064B\u0627 \u0641\u064A {time}",
87
+ "day.yesterday": "\u0623\u0645\u0633 \u0627\u0644\u0633\u0627\u0639\u0629 {time}",
87
88
  "day.other": "{date} \u0641\u064A {time}"
88
89
  };
89
90
  }
@@ -120,6 +121,7 @@ var init_de = __esm({
120
121
  "compact.months": "vor {count} Mon.",
121
122
  "day.today": "heute um {time}",
122
123
  "day.tomorrow": "morgen um {time}",
124
+ "day.yesterday": "Gestern um {time}",
123
125
  "day.other": "{date} um {time}"
124
126
  };
125
127
  }
@@ -156,6 +158,7 @@ var init_es = __esm({
156
158
  "compact.months": "hace {count} m",
157
159
  "day.today": "hoy a las {time}",
158
160
  "day.tomorrow": "ma\xF1ana a las {time}",
161
+ "day.yesterday": "Ayer a las {time}",
159
162
  "day.other": "{date} a las {time}"
160
163
  };
161
164
  }
@@ -192,6 +195,7 @@ var init_fr = __esm({
192
195
  "compact.months": "il y a {count} mois",
193
196
  "day.today": "aujourd\u2019hui \xE0 {time}",
194
197
  "day.tomorrow": "demain \xE0 {time}",
198
+ "day.yesterday": "Hier \xE0 {time}",
195
199
  "day.other": "{date} \xE0 {time}"
196
200
  };
197
201
  }
@@ -228,6 +232,7 @@ var init_he = __esm({
228
232
  "compact.months": "\u05DC\u05E4\u05E0\u05D9 {count} \u05D7\u05D5\u05D3\u05E9\u05D9\u05DD",
229
233
  "day.today": "\u05D4\u05D9\u05D5\u05DD \u05D1-{time}",
230
234
  "day.tomorrow": "\u05DE\u05D7\u05E8 \u05D1-{time}",
235
+ "day.yesterday": "\u05D0\u05EA\u05DE\u05D5\u05DC \u05D1-{time}",
231
236
  "day.other": "{date} \u05D1-{time}"
232
237
  };
233
238
  }
@@ -264,6 +269,7 @@ var init_hi = __esm({
264
269
  "compact.months": "{count} \u092E\u093E\u0939 \u092A\u0939\u0932\u0947",
265
270
  "day.today": "\u0906\u091C {time}",
266
271
  "day.tomorrow": "\u0915\u0932 {time}",
272
+ "day.yesterday": "\u0915\u0932 {time} \u092C\u091C\u0947",
267
273
  "day.other": "{date} \u0915\u094B {time}"
268
274
  };
269
275
  }
@@ -300,6 +306,7 @@ var init_id = __esm({
300
306
  "compact.months": "{count}bln lalu",
301
307
  "day.today": "hari ini pukul {time}",
302
308
  "day.tomorrow": "besok pukul {time}",
309
+ "day.yesterday": "Kemarin pukul {time}",
303
310
  "day.other": "{date} pukul {time}"
304
311
  };
305
312
  }
@@ -336,6 +343,7 @@ var init_it = __esm({
336
343
  "compact.months": "{count} mesi fa",
337
344
  "day.today": "oggi alle {time}",
338
345
  "day.tomorrow": "domani alle {time}",
346
+ "day.yesterday": "Ieri alle {time}",
339
347
  "day.other": "{date} alle {time}"
340
348
  };
341
349
  }
@@ -372,6 +380,7 @@ var init_ja = __esm({
372
380
  "compact.months": "{count}\u304B\u6708\u524D",
373
381
  "day.today": "\u4ECA\u65E5 {time}",
374
382
  "day.tomorrow": "\u660E\u65E5 {time}",
383
+ "day.yesterday": "\u6628\u65E5 {time}",
375
384
  "day.other": "{date} {time}"
376
385
  };
377
386
  }
@@ -408,6 +417,7 @@ var init_ko = __esm({
408
417
  "compact.months": "{count}\uAC1C\uC6D4 \uC804",
409
418
  "day.today": "\uC624\uB298 {time}",
410
419
  "day.tomorrow": "\uB0B4\uC77C {time}",
420
+ "day.yesterday": "\uC5B4\uC81C {time}",
411
421
  "day.other": "{date} {time}"
412
422
  };
413
423
  }
@@ -444,6 +454,7 @@ var init_nl = __esm({
444
454
  "compact.months": "{count}mnd geleden",
445
455
  "day.today": "vandaag om {time}",
446
456
  "day.tomorrow": "morgen om {time}",
457
+ "day.yesterday": "Gisteren om {time}",
447
458
  "day.other": "{date} om {time}"
448
459
  };
449
460
  }
@@ -480,6 +491,7 @@ var init_pl = __esm({
480
491
  "compact.months": "{count} mies. temu",
481
492
  "day.today": "dzisiaj o {time}",
482
493
  "day.tomorrow": "jutro o {time}",
494
+ "day.yesterday": "Wczoraj o {time}",
483
495
  "day.other": "{date} o {time}"
484
496
  };
485
497
  }
@@ -516,6 +528,7 @@ var init_pt_BR = __esm({
516
528
  "compact.months": "{count, plural, one {h\xE1 # m\xEAs} other {h\xE1 # meses}}",
517
529
  "day.today": "hoje \xE0s {time}",
518
530
  "day.tomorrow": "amanh\xE3 \xE0s {time}",
531
+ "day.yesterday": "Ontem \xE0s {time}",
519
532
  "day.other": "{date} \xE0s {time}"
520
533
  };
521
534
  }
@@ -552,6 +565,7 @@ var init_ru = __esm({
552
565
  "compact.months": "{count} \u043C\u0435\u0441 \u043D\u0430\u0437\u0430\u0434",
553
566
  "day.today": "\u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0432 {time}",
554
567
  "day.tomorrow": "\u0437\u0430\u0432\u0442\u0440\u0430 \u0432 {time}",
568
+ "day.yesterday": "\u0412\u0447\u0435\u0440\u0430 \u0432 {time}",
555
569
  "day.other": "{date} \u0432 {time}"
556
570
  };
557
571
  }
@@ -588,6 +602,7 @@ var init_sv = __esm({
588
602
  "compact.months": "{count}m\xE5n sen",
589
603
  "day.today": "idag kl. {time}",
590
604
  "day.tomorrow": "imorgon kl. {time}",
605
+ "day.yesterday": "I g\xE5r kl. {time}",
591
606
  "day.other": "{date} kl. {time}"
592
607
  };
593
608
  }
@@ -624,6 +639,7 @@ var init_th = __esm({
624
639
  "compact.months": "{count} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",
625
640
  "day.today": "\u0E27\u0E31\u0E19\u0E19\u0E35\u0E49\u0E40\u0E27\u0E25\u0E32 {time}",
626
641
  "day.tomorrow": "\u0E1E\u0E23\u0E38\u0E48\u0E07\u0E19\u0E35\u0E49\u0E40\u0E27\u0E25\u0E32 {time}",
642
+ "day.yesterday": "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E27\u0E32\u0E19\u0E40\u0E27\u0E25\u0E32 {time}",
627
643
  "day.other": "{date} \u0E40\u0E27\u0E25\u0E32 {time}"
628
644
  };
629
645
  }
@@ -660,6 +676,7 @@ var init_tr = __esm({
660
676
  "compact.months": "{count} ay \xF6nce",
661
677
  "day.today": "bug\xFCn {time}",
662
678
  "day.tomorrow": "yar\u0131n {time}",
679
+ "day.yesterday": "D\xFCn {time}",
663
680
  "day.other": "{date} {time}"
664
681
  };
665
682
  }
@@ -696,6 +713,7 @@ var init_vi = __esm({
696
713
  "compact.months": "{count} th\xE1ng tr\u01B0\u1EDBc",
697
714
  "day.today": "h\xF4m nay l\xFAc {time}",
698
715
  "day.tomorrow": "ng\xE0y mai l\xFAc {time}",
716
+ "day.yesterday": "H\xF4m qua l\xFAc {time}",
699
717
  "day.other": "{date} l\xFAc {time}"
700
718
  };
701
719
  }
@@ -732,6 +750,7 @@ var init_zh_Hans = __esm({
732
750
  "compact.months": "{count}\u4E2A\u6708\u524D",
733
751
  "day.today": "\u4ECA\u5929 {time}",
734
752
  "day.tomorrow": "\u660E\u5929 {time}",
753
+ "day.yesterday": "\u6628\u5929 {time}",
735
754
  "day.other": "{date} {time}"
736
755
  };
737
756
  }
@@ -768,6 +787,7 @@ var init_zh_Hant = __esm({
768
787
  "compact.months": "{count} \u500B\u6708\u524D",
769
788
  "day.today": "\u4ECA\u5929 {time}",
770
789
  "day.tomorrow": "\u660E\u5929 {time}",
790
+ "day.yesterday": "\u6628\u5929 {time}",
771
791
  "day.other": "{date} {time}"
772
792
  };
773
793
  }
@@ -36555,6 +36575,7 @@ var en = {
36555
36575
  "compact.months": "{count}mo ago",
36556
36576
  "day.today": "today at {time}",
36557
36577
  "day.tomorrow": "tomorrow at {time}",
36578
+ "day.yesterday": "Yesterday at {time}",
36558
36579
  "day.other": "{date} at {time}"
36559
36580
  };
36560
36581
 
@@ -36630,8 +36651,22 @@ function nameOf({
36630
36651
  const noon = Date.UTC(fields.year, fields.month - 1, fields.day, 12);
36631
36652
  return new Intl.DateTimeFormat(locale, { ...options, timeZone: "UTC" }).format(noon);
36632
36653
  }
36654
+ var WEEKDAYS_LONG = [
36655
+ "Monday",
36656
+ "Tuesday",
36657
+ "Wednesday",
36658
+ "Thursday",
36659
+ "Friday",
36660
+ "Saturday",
36661
+ "Sunday"
36662
+ ];
36633
36663
  var TOKENS = {
36634
36664
  yyyy: (f) => pad(f.year, 4),
36665
+ EEEE: (f) => nameOf({
36666
+ fields: f,
36667
+ options: { weekday: "long" },
36668
+ fallback: WEEKDAYS_LONG[f.weekday - 1] ?? ""
36669
+ }),
36635
36670
  EEE: (f) => nameOf({
36636
36671
  fields: f,
36637
36672
  options: { weekday: "short" },
@@ -36955,7 +36990,7 @@ function flagText({
36955
36990
  }
36956
36991
 
36957
36992
  // src/rules/cli-version.rules.ts
36958
- var STAMPED = "0.1.81";
36993
+ var STAMPED = "0.1.83";
36959
36994
  function cliVersionOf({ stamped = STAMPED } = {}) {
36960
36995
  return stamped.startsWith("__") ? "dev" : stamped;
36961
36996
  }
@@ -59656,6 +59691,7 @@ var VaultShareApprovalSlot = vaultUi.component("shareApproval");
59656
59691
  var VaultDeviceApprovalSlot = vaultUi.component("deviceApproval");
59657
59692
  var VaultMachineKeyApprovalSlot = vaultUi.component("machineKeyApproval");
59658
59693
  var VaultPasskeyStepSlot = vaultUi.component("passkeyStep");
59694
+ var VaultPasskeyConfirmSlot = vaultUi.component("passkeyConfirm");
59659
59695
  var VaultNavSlot = vaultUi.component("nav");
59660
59696
  var answerSealedApprovalInputSchemaDefinition = external_exports.object({
59661
59697
  workspaceId: external_exports.string().min(1),
@@ -61706,6 +61742,22 @@ var gifResultsSchemaDefinition = external_exports.object({
61706
61742
  });
61707
61743
  var gifResultsSchema = gifResultsSchemaDefinition;
61708
61744
 
61745
+ // ../../modules/chat/contract/src/chat.images.ts
61746
+ var MIRROR_AVATAR_PATTERN = /^\/api\/chat\/mirror-avatars\/[A-Za-z0-9_-]{1,64}\/[A-Za-z0-9_-]{1,64}\/[A-Za-z0-9_-]{1,64}$/;
61747
+ function isMirrorAvatarPath(value) {
61748
+ return MIRROR_AVATAR_PATTERN.test(value);
61749
+ }
61750
+ var mirrorAvatarParamsSchemaDefinition = external_exports.object({
61751
+ workspaceId: external_exports.string().min(1).max(64),
61752
+ channelId: external_exports.string().min(1).max(64),
61753
+ fileId: external_exports.string().min(1).max(64)
61754
+ });
61755
+ var externalImageParamsSchemaDefinition = external_exports.object({ workspaceId: external_exports.string().min(1).max(64) });
61756
+ var externalImageQuerySchemaDefinition = external_exports.object({
61757
+ u: external_exports.string().min(1).max(2e3),
61758
+ sig: external_exports.string().max(100).default("")
61759
+ });
61760
+
61709
61761
  // ../../modules/chat/contract/src/chat.layout.ts
61710
61762
  var LAYOUT_BLOCKS_MAX = 50;
61711
61763
  var LAYOUT_TEXT_MAX = 3e3;
@@ -62091,6 +62143,12 @@ var boxSchema = external_exports.object({
62091
62143
  width: external_exports.number().int().positive(),
62092
62144
  height: external_exports.number().int().positive()
62093
62145
  });
62146
+ var ATTACHMENT_TRANSCRIPT_MAX = 2e4;
62147
+ var attachmentTranscriptSchemaDefinition = external_exports.object({
62148
+ text: external_exports.string().max(ATTACHMENT_TRANSCRIPT_MAX),
62149
+ state: external_exports.enum(["pending", "ready", "failed", "unavailable"]),
62150
+ source: external_exports.enum(["live", "final"])
62151
+ });
62094
62152
  var attachmentSchemaDefinition = external_exports.object({
62095
62153
  id: idSchema4,
62096
62154
  fileName: external_exports.string(),
@@ -62108,7 +62166,9 @@ var attachmentSchemaDefinition = external_exports.object({
62108
62166
  preview: boxSchema.nullable(),
62109
62167
  /** The first lines of a text, markdown or code file. */
62110
62168
  previewText: external_exports.string().nullable(),
62111
- previewTruncated: external_exports.boolean()
62169
+ previewTruncated: external_exports.boolean(),
62170
+ /** An audio file's transcript; null for other files and audio from before transcripts. */
62171
+ transcript: attachmentTranscriptSchemaDefinition.nullable().default(null)
62112
62172
  });
62113
62173
  var attachmentSchema = attachmentSchemaDefinition;
62114
62174
  var reactionSchemaDefinition = external_exports.object({
@@ -62146,7 +62206,8 @@ var messageOriginSchemaDefinition = external_exports.object({
62146
62206
  var MIRROR_PEERS_MAX = 9;
62147
62207
  var mirrorPeerSchemaDefinition = external_exports.object({
62148
62208
  name: external_exports.string().min(1).max(120),
62149
- avatarUrl: external_exports.url().max(500).nullable().default(null),
62209
+ /** An address on another host, or a stored photo's address from `mirrorAvatarPathOf`. */
62210
+ avatarUrl: external_exports.union([external_exports.url().max(500), external_exports.string().max(500).refine(isMirrorAvatarPath)]).nullable().default(null),
62150
62211
  personId: external_exports.string().min(1).max(64).nullable().optional()
62151
62212
  });
62152
62213
  var conversationMirrorSchemaDefinition = external_exports.object({
@@ -62405,6 +62466,14 @@ var failureCardSchemaDefinition = external_exports.object({
62405
62466
  /** An agent's unanswered turn: Try again sends this person's message to the agent again. */
62406
62467
  retry: failureRetrySchemaDefinition.optional()
62407
62468
  });
62469
+ var SCHEDULE_RUN_PROMPT_MAX = 2e3;
62470
+ var scheduleRunCardSchemaDefinition = external_exports.object({
62471
+ type: external_exports.literal("schedule_run"),
62472
+ scheduleId: idSchema4,
62473
+ runId: idSchema4,
62474
+ name: external_exports.string().max(200),
62475
+ prompt: external_exports.string().max(SCHEDULE_RUN_PROMPT_MAX)
62476
+ });
62408
62477
  var welcomeCardActionSchema = external_exports.enum(["slides", "connect_agent", "new_channel", "invite"]);
62409
62478
  var welcomeCardSchemaDefinition = external_exports.object({
62410
62479
  type: external_exports.literal("welcome"),
@@ -62428,7 +62497,8 @@ var messageCardSchemaDefinition = external_exports.discriminatedUnion("type", [
62428
62497
  budgetCardSchemaDefinition,
62429
62498
  feedCardSchemaDefinition,
62430
62499
  failureCardSchemaDefinition,
62431
- welcomeCardSchemaDefinition
62500
+ welcomeCardSchemaDefinition,
62501
+ scheduleRunCardSchemaDefinition
62432
62502
  ]);
62433
62503
  var messageRefSchemaDefinition = external_exports.object({
62434
62504
  /** `conversation` points at a conversation with the agent, by its channel. */
@@ -62947,6 +63017,20 @@ var postMirroredInputSchemaDefinition = external_exports.object({
62947
63017
  /** Files the mirror stored in this workspace's files, attached to the message. */
62948
63018
  fileIds: external_exports.array(idSchema4).max(10).default([])
62949
63019
  });
63020
+ var MIRROR_BATCH_MAX = 500;
63021
+ var postMirroredBatchInputSchemaDefinition = external_exports.object({
63022
+ workspaceId: workspaceIdSchema,
63023
+ channelId: idSchema4,
63024
+ keyOwnerUserId: idSchema4,
63025
+ messages: external_exports.array(
63026
+ postMirroredInputSchemaDefinition.omit({
63027
+ workspaceId: true,
63028
+ channelId: true,
63029
+ keyOwnerUserId: true,
63030
+ threadRootId: true
63031
+ })
63032
+ ).min(1).max(MIRROR_BATCH_MAX)
63033
+ });
62950
63034
  var updateMirroredInputSchemaDefinition = external_exports.object({
62951
63035
  workspaceId: workspaceIdSchema,
62952
63036
  messageId: idSchema4,
@@ -63170,9 +63254,34 @@ var uploadTicketSchema = uploadTicketSchemaDefinition;
63170
63254
  var completeUploadInputSchemaDefinition = external_exports.object({
63171
63255
  workspaceId: workspaceIdSchema,
63172
63256
  attachmentId: idSchema4,
63173
- parts: external_exports.array(external_exports.object({ partNumber: external_exports.number().int().positive(), etag: external_exports.string().min(1).max(200) })).max(1e4).default([])
63257
+ parts: external_exports.array(external_exports.object({ partNumber: external_exports.number().int().positive(), etag: external_exports.string().min(1).max(200) })).max(1e4).default([]),
63258
+ /** What a voice message said as it was recorded; the files worker's transcript replaces it. */
63259
+ liveTranscript: external_exports.string().max(2e4).optional()
63174
63260
  });
63175
63261
  var completeUploadInputSchema = completeUploadInputSchemaDefinition;
63262
+ var voiceSegmentRefusalSchema = external_exports.enum([
63263
+ "not_configured",
63264
+ "out_of_credit",
63265
+ "too_large",
63266
+ "failed"
63267
+ ]);
63268
+ var transcribeVoiceSegmentInputSchemaDefinition = external_exports.object({
63269
+ workspaceId: workspaceIdSchema,
63270
+ channelId: idSchema4,
63271
+ /** The recording's id and the segment's number; the spend entry is keyed on it. */
63272
+ segmentId: external_exports.string().min(1).max(100),
63273
+ contentType: external_exports.string().regex(/^audio\/[a-z0-9.+-]+(;.*)?$/i).max(100),
63274
+ /** At most about 2 MB of audio. */
63275
+ audio: external_exports.string().min(1).max(28e5),
63276
+ /** The end of the text before this segment, so words carry across the cut. */
63277
+ prompt: external_exports.string().max(2e3).optional()
63278
+ });
63279
+ var transcribeVoiceSegmentInputSchema = transcribeVoiceSegmentInputSchemaDefinition;
63280
+ var voiceSegmentTextSchemaDefinition = external_exports.discriminatedUnion("kind", [
63281
+ external_exports.object({ kind: external_exports.literal("text"), text: external_exports.string() }),
63282
+ external_exports.object({ kind: external_exports.literal("refused"), reason: voiceSegmentRefusalSchema })
63283
+ ]);
63284
+ var voiceSegmentTextSchema = voiceSegmentTextSchemaDefinition;
63176
63285
  var fileInputSchemaDefinition = external_exports.object({
63177
63286
  workspaceId: workspaceIdSchema,
63178
63287
  attachmentId: idSchema4
@@ -63639,7 +63748,7 @@ var ChatApi = moduleApi()("chat");
63639
63748
  var chatConversationsTrpc = defineTrpcContract("chat").query("overview", { mirrored: overviewMirror }).withInput(workspaceInputSchema).withOutput(chatOverviewSchema).query("unreadSummary").withInput(external_exports.object({})).withOutput(external_exports.array(workspaceUnreadSchema)).query("browse").withInput(workspaceInputSchema).withOutput(external_exports.array(browsableChannelSchema)).mutation("createChannel").withInput(createChannelInputSchema).withOutput(conversationSchema).mutation("join").withInput(channelInputSchema).withOutput(conversationSchema).mutation("leave").withInput(channelInputSchema).withOutput(external_exports.object({ left: external_exports.literal(true) })).mutation("updateChannel").withInput(updateChannelInputSchema).withOutput(conversationSchema).mutation("setDefaultAgent").withInput(setDefaultAgentInputSchema).withOutput(conversationSchema).query("logChannelHint").withInput(channelInputSchema).withOutput(logChannelHintSchema).mutation("dismissLogChannelHint").withInput(channelInputSchema).withOutput(external_exports.object({ dismissed: external_exports.literal(true) })).query("externalNotice").withInput(channelInputSchema).withOutput(externalNoticeSchema).mutation("dismissExternalNotice").withInput(dismissExternalNoticeInputSchema).withOutput(externalNoticeSchema).mutation("archiveChannel").withInput(channelInputSchema).withOutput(conversationSchema).mutation("unarchiveChannel").withInput(channelInputSchema).withOutput(conversationSchema).mutation("addMembers").withInput(addMembersInputSchema).withOutput(conversationSchema).query("channelGroups").withInput(channelInputSchema).withOutput(channelGroupsSchema).mutation("addChannelGroup").withInput(channelGroupInputSchema).withOutput(channelGroupsSchema).mutation("removeChannelGroup").withInput(channelGroupInputSchema).withOutput(channelGroupsSchema).mutation("removeMember").withInput(removeMemberInputSchema).withOutput(conversationSchema).mutation("openDirect").withInput(openDirectInputSchema).withOutput(conversationSchema).query("conversation").withInput(channelInputSchema).withOutput(conversationSchema).build();
63640
63749
  var chatChannelRolesTrpc = defineTrpcContract("chat").mutation("setChannelRole").withInput(setChannelRoleInputSchema).withOutput(conversationSchema).mutation("extendChannel").withInput(extendChannelInputSchema).withOutput(conversationSchema).build();
63641
63750
  var chatMessagesTrpc = defineTrpcContract("chat").query("history", { mirrored: historyMirror }).withInput(historyInputSchema).withOutput(historyPageSchema).query("thread").withInput(messageInputSchema).withOutput(threadSchema).query("message").withInput(messageInputSchema).withOutput(messageSchema).mutation("post").withInput(postMessageInputSchema).withOutput(messageSchema).mutation("forward").withInput(forwardMessageInputSchema).withOutput(messageSchema).mutation("addMentioned").withInput(addMentionedInputSchema).withOutput(messageSchema).mutation("edit").withInput(editMessageInputSchema).withOutput(messageSchema).mutation("delete").withInput(messageInputSchema).withOutput(messageSchema).mutation("remove").withInput(messageInputSchema).withOutput(messageSchema).mutation("react").withInput(reactInputSchema).withOutput(messageSchema).mutation("signalTyping").withInput(signalTypingInputSchema).withOutput(external_exports.object({ sent: external_exports.literal(true) })).mutation("markRead").withInput(markReadInputSchema).withOutput(external_exports.object({ lastReadSeq: external_exports.number().int().nonnegative() })).mutation("markUnread").withInput(markUnreadInputSchema).withOutput(external_exports.object({ lastReadSeq: external_exports.number().int().nonnegative() })).query("search").withInput(searchInputSchema).withOutput(searchResultSchema).build();
63642
- var chatFilesTrpc = defineTrpcContract("chat").mutation("startUpload").withInput(startUploadInputSchema).withOutput(uploadTicketSchema).mutation("completeUpload").withInput(completeUploadInputSchema).withOutput(attachmentSchema).mutation("abortUpload").withInput(fileInputSchema).withOutput(external_exports.object({ aborted: external_exports.literal(true) })).query("fileLink").withInput(fileLinkInputSchema).withOutput(fileLinkSchema).query("channelFiles").withInput(channelFilesInputSchema).withOutput(channelFilesSchema).mutation("renameAttachment").withInput(renameAttachmentInputSchema).withOutput(attachmentSchema).mutation("hideUnfurl").withInput(hideUnfurlInputSchema).withOutput(messageSchema).query("unfurlImage").withInput(unfurlImageInputSchema).withOutput(fileLinkSchema).query("searchGifs").withInput(searchGifsInputSchema).withOutput(gifResultsSchema).build();
63751
+ var chatFilesTrpc = defineTrpcContract("chat").mutation("startUpload").withInput(startUploadInputSchema).withOutput(uploadTicketSchema).mutation("completeUpload").withInput(completeUploadInputSchema).withOutput(attachmentSchema).mutation("transcribeVoiceSegment").withInput(transcribeVoiceSegmentInputSchema).withOutput(voiceSegmentTextSchema).mutation("abortUpload").withInput(fileInputSchema).withOutput(external_exports.object({ aborted: external_exports.literal(true) })).query("fileLink").withInput(fileLinkInputSchema).withOutput(fileLinkSchema).query("channelFiles").withInput(channelFilesInputSchema).withOutput(channelFilesSchema).mutation("renameAttachment").withInput(renameAttachmentInputSchema).withOutput(attachmentSchema).mutation("hideUnfurl").withInput(hideUnfurlInputSchema).withOutput(messageSchema).query("unfurlImage").withInput(unfurlImageInputSchema).withOutput(fileLinkSchema).query("searchGifs").withInput(searchGifsInputSchema).withOutput(gifResultsSchema).build();
63643
63752
  var chatFollowingTrpc = defineTrpcContract("chat").mutation("setNotify").withInput(setNotifyInputSchema).withOutput(conversationSummarySchema).mutation("hideConversation").withInput(channelInputSchema).withOutput(external_exports.object({ hidden: external_exports.literal(true) })).mutation("followThread").withInput(followThreadInputSchema).withOutput(threadFollowSchema).query("threadFollow").withInput(messageInputSchema).withOutput(threadFollowSchema).query("threads", { mirrored: threadsMirror }).withInput(threadsInputSchema).withOutput(threadsPageSchema).query("threadsUnread").withInput(workspaceInputSchema).withOutput(threadsUnreadSchema).query("notificationCount").withInput(workspaceInputSchema).withOutput(external_exports.object({ count: external_exports.number().int().nonnegative() })).mutation("markThreadRead").withInput(messageInputSchema).withOutput(external_exports.object({ read: external_exports.literal(true) })).mutation("pin").withInput(pinMessageInputSchema).withOutput(messageSchema).query("pins").withInput(channelInputSchema).withOutput(pinsPageSchema).query("saved").withInput(savedInputSchema).withOutput(savedPageSchema).query("savedMarks").withInput(workspaceInputSchema).withOutput(savedMarksSchema).mutation("saveMessage").withInput(saveMessageInputSchema).withOutput(savedStatusSchema).mutation("markSavedDone").withInput(markSavedDoneInputSchema).withOutput(savedStatusSchema).mutation("setReminder").withInput(setReminderInputSchema).withOutput(savedStatusSchema).query("activity").withInput(activityInputSchema).withOutput(activityPageSchema).mutation("markActivityRead").withInput(markActivityReadInputSchema).withOutput(external_exports.object({ read: external_exports.literal(true) })).build();
63644
63753
  var chatSessionTrpc = defineTrpcContract("chat").mutation("realtimeToken").withInput(workspaceInputSchema).withOutput(realtimeTokenSchema).query("drafts").withInput(workspaceInputSchema).withOutput(draftListSchema).mutation("saveDraft").withInput(saveDraftInputSchema).withOutput(draftSavedSchema).mutation("deleteDraft").withInput(deleteDraftInputSchema).withOutput(draftSavedSchema).query("sent").withInput(listSentInputSchema).withOutput(sentPageSchema).query("sidebarLayout").withInput(workspaceInputSchema).withOutput(sidebarLayoutSchema).mutation("editSidebar").withInput(editSidebarInputSchema).withOutput(sidebarLayoutSchema).query("readerPreferences").withInput(workspaceInputSchema).withOutput(readerPreferencesSchema).mutation("setReaderPreferences").withInput(setReaderPreferencesInputSchema).withOutput(readerPreferencesSchema).mutation("star").withInput(starInputSchema).withOutput(starStatusSchema).query("starred").withInput(workspaceInputSchema).withOutput(starredListSchema).mutation("scrubSecrets").withInput(scrubChatInputSchema).withOutput(chatScrubReportSchema).mutation("restoreScrubbed").withInput(messageInputSchema).withOutput(messageSchema).build();
63645
63754
  var chatScheduledTrpc = defineTrpcContract("chat").mutation("scheduleMessage").withInput(scheduleMessageInputSchema).withOutput(scheduledMessageSchema).query("scheduled").withInput(listScheduledInputSchema).withOutput(scheduledListSchema).mutation("editScheduled").withInput(editScheduledInputSchema).withOutput(scheduledMessageSchema).mutation("sendScheduledNow").withInput(scheduledInputSchema).withOutput(scheduledMessageSchema).mutation("cancelScheduled").withInput(scheduledInputSchema).withOutput(scheduledMessageSchema).build();
@@ -64417,7 +64526,9 @@ var messagePostedPayloadSchemaDefinition = external_exports.object({
64417
64526
  /** A forward's quote; null once the forward is deleted. */
64418
64527
  forward: postedForwardSchemaDefinition.nullable().optional(),
64419
64528
  /** The card this message carries, such as an approval: a system card, not something said. */
64420
- cardType: external_exports.string().optional()
64529
+ cardType: external_exports.string().optional(),
64530
+ /** Mirrored history in a batch: no live publication of its own, its conversation reads again. */
64531
+ quiet: external_exports.boolean().optional()
64421
64532
  });
64422
64533
  var messageChangedPayloadSchemaDefinition = external_exports.object({
64423
64534
  workspaceId: external_exports.string().min(1),
@@ -64620,6 +64731,7 @@ var ChatExternalPersonCardSlot = chatUi.extension("external-person-card");
64620
64731
  var ChatNewChannelDialogSlot = chatUi.component("new-channel-dialog");
64621
64732
  var ChatPeoplePickerSlot = chatUi.component("people-picker");
64622
64733
  var ChatAddPeopleDialogSlot = chatUi.component("add-people-dialog");
64734
+ var ChatHandoffComposerSlot = chatUi.component("handoff-composer");
64623
64735
 
64624
64736
  // ../../modules/chat/contract/src/chat.markers.ts
64625
64737
  var FILE_MARKER = /<file:([A-Za-z0-9_-]{1,64})>/g;
@@ -64641,13 +64753,6 @@ function withSlackMarkupAsText(text3) {
64641
64753
  return withSlackPeopleAsNames(text3).replace(SLACK_DATE_TOKEN, "$1").replace(ANGLE_LINK, (_link, address, label3) => label3 ?? address);
64642
64754
  }
64643
64755
 
64644
- // ../../modules/chat/contract/src/chat.images.ts
64645
- var externalImageParamsSchemaDefinition = external_exports.object({ workspaceId: external_exports.string().min(1).max(64) });
64646
- var externalImageQuerySchemaDefinition = external_exports.object({
64647
- u: external_exports.string().min(1).max(2e3),
64648
- sig: external_exports.string().max(100).default("")
64649
- });
64650
-
64651
64756
  // ../../modules/agent/contract/src/agent-access.ts
64652
64757
  var idSchema5 = external_exports.string().min(1).max(80);
64653
64758
  var agentGranteeSchemaDefinition = external_exports.discriminatedUnion("kind", [
@@ -69123,12 +69228,16 @@ var fileAgentTurnInputSchemaDefinition = external_exports.object({
69123
69228
  notice: external_exports.string().min(1).optional(),
69124
69229
  anchor: agentTurnAnchorSchema.optional(),
69125
69230
  prompt: external_exports.string().min(1),
69231
+ /** The anchor message's files, staged for the turn as a chat message's are. */
69232
+ attachmentIds: external_exports.array(external_exports.string().min(1)).max(10).optional(),
69126
69233
  /** The caller's id for this turn: the same key again files nothing new. */
69127
69234
  key: external_exports.string().regex(/^[A-Za-z0-9_-]{8,64}$/)
69128
69235
  }).refine((input2) => input2.notice !== void 0 || input2.anchor !== void 0, {
69129
69236
  message: "A turn carries a notice to post or the anchor it hangs off"
69130
69237
  }).refine((input2) => input2.anchor === void 0 || input2.channelId !== null, {
69131
69238
  message: "An anchored turn names the conversation its anchor is in"
69239
+ }).refine((input2) => input2.anchor !== void 0 || (input2.attachmentIds ?? []).length === 0, {
69240
+ message: "Only an anchored turn carries files: they are its anchor message's"
69132
69241
  });
69133
69242
 
69134
69243
  // ../../modules/agent/contract/src/agent-removed.ts
@@ -71036,6 +71145,12 @@ var slackBotCleanupRequestedPayloadSchemaDefinition = external_exports.object({
71036
71145
  runId: external_exports.string().min(1),
71037
71146
  dryRun: external_exports.boolean()
71038
71147
  });
71148
+ var slackCacheTrimRequestedPayloadSchemaDefinition = external_exports.object({
71149
+ workspaceId: external_exports.string().min(1),
71150
+ teamId: external_exports.string().min(1),
71151
+ runId: external_exports.string().min(1),
71152
+ scheduledFor: external_exports.number()
71153
+ });
71039
71154
  var slackBotCleanupOutcomePayloadSchemaDefinition = external_exports.object({
71040
71155
  workspaceId: external_exports.string().min(1),
71041
71156
  runId: external_exports.string().min(1),
@@ -71968,6 +72083,17 @@ function beat({
71968
72083
  ...working && state?.messageId ? { messageId: state.messageId } : {}
71969
72084
  });
71970
72085
  }
72086
+ function placeOf(message2) {
72087
+ return { channelId: message2.channelId, threadRootId: message2.threadRootId };
72088
+ }
72089
+ function newestPerConversation({ messages }) {
72090
+ const newest = /* @__PURE__ */ new Map();
72091
+ for (const message2 of messages) {
72092
+ newest.delete(message2.channelId);
72093
+ newest.set(message2.channelId, message2);
72094
+ }
72095
+ return [...newest.values()];
72096
+ }
71971
72097
  async function turnStarted({
71972
72098
  context,
71973
72099
  client,
@@ -71981,10 +72107,18 @@ async function turnStarted({
71981
72107
  threadRootId: last.threadRootId,
71982
72108
  messageId: last.messageId
71983
72109
  };
72110
+ const others = newestPerConversation({ messages }).filter(
72111
+ (message2) => message2.channelId !== last.channelId
72112
+ );
71984
72113
  const before = await readState({ context, agent: agent3 });
71985
- if (before && before.channelId !== state.channelId) {
72114
+ const kept = before && others.some((message2) => message2.channelId === before.channelId);
72115
+ if (before && before.channelId !== state.channelId && !kept) {
71986
72116
  await beat({ client, state: before, working: false }).catch(() => void 0);
71987
72117
  }
72118
+ for (const other of others) {
72119
+ const opened = { ...placeOf(other), messageId: other.messageId };
72120
+ await beat({ client, state: opened, working: true }).catch(() => void 0);
72121
+ }
71988
72122
  const path = statePath({ context, agent: agent3 });
71989
72123
  await mkdir5(dirname5(path), { recursive: true, mode: 448 });
71990
72124
  await writeFile5(path, JSON.stringify(state));
@@ -72199,7 +72333,7 @@ async function attachmentIdsOf({
72199
72333
  function utcTimeOf(iso3) {
72200
72334
  return `${iso3.slice(0, 10)} ${iso3.slice(11, 16)} UTC`;
72201
72335
  }
72202
- function placeOf(item) {
72336
+ function placeOf2(item) {
72203
72337
  if (item.channelKind === "public" || item.channelKind === "private") {
72204
72338
  return `in #${item.channelName}`;
72205
72339
  }
@@ -72207,7 +72341,7 @@ function placeOf(item) {
72207
72341
  }
72208
72342
  function activityLineOf({ item }) {
72209
72343
  const who = item.actor.name;
72210
- const where = placeOf(item);
72344
+ const where = placeOf2(item);
72211
72345
  switch (item.kind) {
72212
72346
  case "mention":
72213
72347
  return `${who} mentioned you ${where}`;
@@ -72264,7 +72398,7 @@ function sendAtOf({ at, timeZone }) {
72264
72398
  return null;
72265
72399
  }
72266
72400
  }
72267
- function placeOf2({ scheduled: scheduled2 }) {
72401
+ function placeOf3({ scheduled: scheduled2 }) {
72268
72402
  const inChannel = scheduled2.channelKind === "public" || scheduled2.channelKind === "private";
72269
72403
  const channel = inChannel ? `#${scheduled2.channelName}` : "a direct message";
72270
72404
  if (!scheduled2.threadRootId) return channel;
@@ -72287,7 +72421,7 @@ function scheduledLine({
72287
72421
  timeZone
72288
72422
  }) {
72289
72423
  const when = zonedTimeOf({ iso: scheduled2.sendAt, timeZone });
72290
- return `Scheduled ${scheduled2.id} for ${placeOf2({ scheduled: scheduled2 })} at ${when}.
72424
+ return `Scheduled ${scheduled2.id} for ${placeOf3({ scheduled: scheduled2 })} at ${when}.
72291
72425
  ${indented(scheduled2.body)}
72292
72426
  `;
72293
72427
  }
@@ -72300,7 +72434,7 @@ var FAILURES = {
72300
72434
  };
72301
72435
  function entryOf(scheduled2) {
72302
72436
  const failed2 = scheduled2.failure ? `failed: ${FAILURES[scheduled2.failure]}; give it a new time with laze scheduled edit --at, or cancel it` : scheduled2.status;
72303
- const head = `${utcTimeOf(scheduled2.sendAt)} ${failed2} ${placeOf2({ scheduled: scheduled2 })} ${scheduled2.id}`;
72437
+ const head = `${utcTimeOf(scheduled2.sendAt)} ${failed2} ${placeOf3({ scheduled: scheduled2 })} ${scheduled2.id}`;
72304
72438
  return `${head}
72305
72439
  ${indented(scheduled2.body)}`;
72306
72440
  }
@@ -72408,7 +72542,7 @@ async function actOn({
72408
72542
  });
72409
72543
  if (args.flags.json) return context.out(`${JSON.stringify(done, null, 2)}
72410
72544
  `);
72411
- const place = placeOf2({ scheduled: done });
72545
+ const place = placeOf3({ scheduled: done });
72412
72546
  context.out(
72413
72547
  action === "send" ? `Sent ${done.id} now in ${place} as ${done.messageId ?? "a new message"}.
72414
72548
  ` : `Cancelled ${done.id} in ${place}.
@@ -74885,13 +75019,24 @@ async function settleRound(round) {
74885
75019
  return 2;
74886
75020
  }
74887
75021
  if (messages.length === 0) return "again";
74888
- await turnStarted({ context, client, agent: name3, messages }).catch(() => void 0);
74889
75022
  const self2 = await currentNameOf({ context, client, profile: name3 });
74890
- context.err(`${hookContextOf({ messages, self: self2 })}
75023
+ const text3 = hookContextOf({ messages, self: self2 });
75024
+ const sent = round.rush ? await sentThroughRush({ context, rush: round.rush, text: text3 }) : false;
75025
+ await turnStarted({ context, client, agent: name3, messages }).catch(() => void 0);
75026
+ if (!sent) context.err(`${text3}
74891
75027
  `);
74892
75028
  const messageIds = messages.map((message2) => message2.messageId);
74893
75029
  await dropFromSpool({ context, profile: name3, messageIds });
74894
- return 2;
75030
+ return sent ? 0 : 2;
75031
+ }
75032
+ async function sentThroughRush({
75033
+ context,
75034
+ rush,
75035
+ text: text3
75036
+ }) {
75037
+ const command = rushSendCommand(rush);
75038
+ const code = await context.runCommand({ command, env: { LAZE_WAKE_TEXT: text3 } }).catch(() => 1);
75039
+ return code === 0;
74895
75040
  }
74896
75041
  async function waitForMessages({ context, args }) {
74897
75042
  const raw = await context.readStdin();
@@ -74914,7 +75059,8 @@ async function waitForMessages({ context, args }) {
74914
75059
  const deadline = context.nowMs() + (WAIT_HOOK_TIMEOUT_SECONDS - 60) * 1e3;
74915
75060
  try {
74916
75061
  while (context.nowMs() < deadline) {
74917
- const code = await settleRound({ context, client, name: name3, lock, claudePid, session, seen });
75062
+ const round = { context, client, name: name3, lock, claudePid, session, seen, rush };
75063
+ const code = await settleRound(round);
74918
75064
  if (code !== "again") return code;
74919
75065
  }
74920
75066
  return 0;
@@ -85944,6 +86090,35 @@ var trustHostKeyDefinition = external_exports.object({
85944
86090
  var trustHostKeyInputSchema = trustHostKeyDefinition;
85945
86091
  var restTrustHostKeyDefinition = trustHostKeyDefinition.omit({ workspaceId: true });
85946
86092
 
86093
+ // ../../modules/compute/contract/src/whatsapp-agent-access.ts
86094
+ var WHATSAPP_AGENT_LEVELS = ["allow", "ask", "off"];
86095
+ var whatsappAgentLevelSchema = external_exports.enum(WHATSAPP_AGENT_LEVELS);
86096
+ var whatsappAgentControlSchema = external_exports.enum(["read", "send"]);
86097
+ var WHATSAPP_READ_WAIT_MAX_SECONDS = 50;
86098
+ var agentAccessDefinition = external_exports.object({
86099
+ agentId: external_exports.string(),
86100
+ name: external_exports.string(),
86101
+ /** Whether anyone besides the owner can talk to the agent. */
86102
+ shared: external_exports.boolean(),
86103
+ read: whatsappAgentLevelSchema,
86104
+ send: whatsappAgentLevelSchema
86105
+ });
86106
+ var agentsDefinition = external_exports.object({
86107
+ machineId: external_exports.string(),
86108
+ agents: external_exports.array(agentAccessDefinition)
86109
+ });
86110
+ var whatsappAgentsSchema = agentsDefinition;
86111
+ var setAgentDefinition = external_exports.object({
86112
+ workspaceId: external_exports.string().min(1).max(64),
86113
+ machine: external_exports.string().min(1).max(64),
86114
+ agentId: external_exports.string().min(1).max(64),
86115
+ control: whatsappAgentControlSchema,
86116
+ level: whatsappAgentLevelSchema,
86117
+ /** The vault's one-use proof, needed when the level moves towards Allow. */
86118
+ reauthToken: external_exports.string().min(1).max(200).optional()
86119
+ });
86120
+ var setWhatsappAgentInputSchema = setAgentDefinition;
86121
+
85947
86122
  // ../../modules/compute/contract/src/own-machine-whatsapp.ts
85948
86123
  var workspaceIdSchema20 = external_exports.string().min(1).max(64);
85949
86124
  var machineRefText2 = external_exports.string().min(1).max(64);
@@ -85981,21 +86156,28 @@ var messagesResultDefinition = external_exports.object({
85981
86156
  });
85982
86157
  var limitSchema = external_exports.number().int().min(1).max(WHATSAPP_LIMIT_MAX);
85983
86158
  var chatRefSchema = external_exports.string().trim().min(1).max(200);
86159
+ var whatsappMachineRef = machineRefText2.optional();
86160
+ var readAskFields = {
86161
+ request: external_exports.string().min(1).max(64).optional(),
86162
+ waitSeconds: external_exports.number().int().min(0).max(WHATSAPP_READ_WAIT_MAX_SECONDS).optional()
86163
+ };
85984
86164
  var chatsInputDefinition = external_exports.object({
85985
86165
  workspaceId: workspaceIdSchema20,
85986
- machine: machineRefText2,
85987
- limit: limitSchema.optional()
86166
+ machine: whatsappMachineRef,
86167
+ limit: limitSchema.optional(),
86168
+ ...readAskFields
85988
86169
  });
85989
86170
  var readInputDefinition = external_exports.object({
85990
86171
  workspaceId: workspaceIdSchema20,
85991
- machine: machineRefText2,
86172
+ machine: whatsappMachineRef,
85992
86173
  /** A chat id, a phone number or a contact or group name. */
85993
86174
  chat: chatRefSchema,
85994
- limit: limitSchema.optional()
86175
+ limit: limitSchema.optional(),
86176
+ ...readAskFields
85995
86177
  });
85996
86178
  var sendInputDefinition = external_exports.object({
85997
86179
  workspaceId: workspaceIdSchema20,
85998
- machine: machineRefText2,
86180
+ machine: whatsappMachineRef,
85999
86181
  chat: chatRefSchema,
86000
86182
  text: external_exports.string().trim().min(1).max(WHATSAPP_TEXT_MAX)
86001
86183
  });
@@ -86050,15 +86232,26 @@ var whatsappVisitEveryDefinition = external_exports.union([
86050
86232
  external_exports.literal(5),
86051
86233
  external_exports.literal(15),
86052
86234
  external_exports.literal(30),
86053
- external_exports.literal(60)
86235
+ external_exports.literal(60),
86236
+ external_exports.literal(360),
86237
+ external_exports.literal(1440)
86054
86238
  ]);
86055
86239
  var whatsappVisitEverySchema = whatsappVisitEveryDefinition;
86240
+ var whatsappSendLevelDefinition = external_exports.enum(["auto", "checked", "ask"]);
86241
+ var whatsappSendLevelSchema = whatsappSendLevelDefinition;
86056
86242
  var mirrorSettingsDefinition = external_exports.object({
86057
86243
  machineId: external_exports.string(),
86058
86244
  mirrorOn: external_exports.boolean(),
86059
86245
  onlineMode: whatsappOnlineModeSchema,
86060
- agentsRead: external_exports.boolean(),
86061
- visitEveryMinutes: whatsappVisitEverySchema
86246
+ /** Always true: the owner's agents read. Kept one release for pages already loaded. */
86247
+ agentsRead: external_exports.boolean().meta({ deprecated: true }),
86248
+ agentsSend: external_exports.boolean(),
86249
+ sendLevel: whatsappSendLevelSchema,
86250
+ visitEveryMinutes: whatsappVisitEverySchema,
86251
+ /** Whether the computer's size allows checks more often than hourly. */
86252
+ frequentChecks: external_exports.boolean(),
86253
+ /** Messages chat could not show yet; Laze tries them again after its next update. */
86254
+ skipped: external_exports.number().int().min(0).default(0)
86062
86255
  });
86063
86256
  var whatsappMirrorSettingsSchema = mirrorSettingsDefinition;
86064
86257
  var setMirrorSettingsDefinition = external_exports.object({
@@ -86066,8 +86259,11 @@ var setMirrorSettingsDefinition = external_exports.object({
86066
86259
  machine: machineRefText2,
86067
86260
  mirrorOn: external_exports.boolean().optional(),
86068
86261
  onlineMode: whatsappOnlineModeSchema.optional(),
86069
- agentsRead: external_exports.boolean().optional(),
86070
- visitEveryMinutes: whatsappVisitEverySchema.optional()
86262
+ agentsSend: external_exports.boolean().optional(),
86263
+ sendLevel: whatsappSendLevelSchema.optional(),
86264
+ visitEveryMinutes: whatsappVisitEverySchema.optional(),
86265
+ /** The vault's one-use proof, needed when `sendLevel` lowers the level. */
86266
+ reauthToken: external_exports.string().min(1).max(200).optional()
86071
86267
  });
86072
86268
  var setWhatsappMirrorInputSchema = setMirrorSettingsDefinition;
86073
86269
  var whatsappComputerDefinition = external_exports.object({
@@ -86080,6 +86276,13 @@ var whatsappComputerDefinition = external_exports.object({
86080
86276
  var whatsappComputerSchema = whatsappComputerDefinition;
86081
86277
  var whatsappComputerInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema20 });
86082
86278
  var whatsappComputerInputSchema = whatsappComputerInputDefinition;
86279
+ var whatsappChangeMediaDefinition = external_exports.object({
86280
+ kind: external_exports.enum(["voice", "audio", "image", "video", "document", "sticker"]),
86281
+ mime: external_exports.string().max(200),
86282
+ size: external_exports.number().int().positive(),
86283
+ seconds: external_exports.number().int().nonnegative().optional(),
86284
+ name: external_exports.string().max(500).optional()
86285
+ });
86083
86286
  var whatsappChangeDefinition = external_exports.object({
86084
86287
  chat: external_exports.string().min(1).max(200),
86085
86288
  chatName: external_exports.string().max(500),
@@ -86089,7 +86292,11 @@ var whatsappChangeDefinition = external_exports.object({
86089
86292
  fromMe: external_exports.boolean(),
86090
86293
  sender: external_exports.string().max(500),
86091
86294
  text: external_exports.string(),
86092
- deleted: external_exports.boolean()
86295
+ deleted: external_exports.boolean(),
86296
+ /** Fetched with a "media" request while the store is open; absent from older connectors. */
86297
+ media: whatsappChangeMediaDefinition.optional(),
86298
+ /** The chat's other ids, such as the hidden id it was first seen under; new in Nov 2026. */
86299
+ aliases: external_exports.array(external_exports.string().min(1).max(200)).max(16).optional()
86093
86300
  });
86094
86301
  var whatsappPairingSchema = whatsappPairingDefinition;
86095
86302
  var pairingRefDefinition = external_exports.object({
@@ -86418,7 +86625,7 @@ var ownMachineSshConnectSchema = ownMachineSshConnectDefinition;
86418
86625
  var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema22, machineId: idSchema23 });
86419
86626
  var ComputeApi = moduleApi()("compute");
86420
86627
  var computeCoreTrpc = defineTrpcContract("compute").query("status").withInput(computeWorkspaceInputSchema).withOutput(computeStatusSchema).query("browserTabs").withInput(browserTabListInputSchema).withOutput(browserTabListSchema).query("browserTab").withInput(browserTabInputSchema).withOutput(browserTabSchema).mutation("openBrowserTab").withInput(openBrowserTabInputSchema).withOutput(browserTabSchema).mutation("browserTabScreen").withInput(browserTabInputSchema).withOutput(browserTabScreenSchema).mutation("sizeBrowserTabScreen").withInput(browserTabScreenSizeInputSchema).withOutput(browserTabScreenSizeSchema).mutation("gotoBrowserTab").withInput(browserTabGotoInputSchema).withOutput(browserTabPageSchema).mutation("doneOnBrowserTab").withInput(browserTabInputSchema).withOutput(browserTabSchema).mutation("shareBrowserTab").withInput(browserTabShareInputSchema).withOutput(browserTabSchema).mutation("closeBrowserTab").withInput(browserTabInputSchema).withOutput(external_exports.object({ closed: external_exports.literal(true) })).query("computer").withInput(computeWorkspaceInputSchema).withOutput(computerStatusSchema).mutation("setComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerSizeAnswerSchema).mutation("requestComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerRequestSchema).mutation("cancelComputerRequest").withInput(computerRequestRefSchema).withOutput(computerRequestSchema).mutation("restartComputer").withInput(restartComputerInputSchema).withOutput(computerRestartAnswerSchema).query("computers").withInput(computeWorkspaceInputSchema).withOutput(computerListSchema).query("dedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpStatusSchema).mutation("setDedicatedIp").withInput(setDedicatedIpInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("turnOffDedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("setDedicatedIpDomains").withInput(setDedicatedIpDomainsInputSchema).withOutput(dedicatedIpAnswerSchema).query("dedicatedIps").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpListSchema).query("dedicatedIpCountries").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpCountriesSchema).query("dedicatedIpOffer").withInput(dedicatedIpOfferInputSchema).withOutput(dedicatedIpOfferSchema).query("list").withInput(computeWorkspaceInputSchema).withOutput(external_exports.array(machineSchema)).query("get").withInput(machineRefSchema).withOutput(machineSchema).mutation("setupBrowser").withInput(setupBrowserInputSchema).withOutput(machineSchema).mutation("sleep").withInput(machineRefSchema).withOutput(machineSchema).mutation("wake").withInput(machineRefSchema).withOutput(machineSchema).mutation("delete").withInput(machineRefSchema).withOutput(machineSchema).mutation("rename").withInput(renameMachineInputSchema).withOutput(machineSchema).mutation("grant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("revokeGrant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("setBudget").withInput(setMachineBudgetInputSchema).withOutput(machineSchema).mutation("openScreen").withInput(openScreenInputSchema).withOutput(screenSessionSchema).mutation("finishScreen").withInput(screenRefSchema).withOutput(machineSchema).mutation("connectOwn").withInput(connectOwnMachineInputSchema).withOutput(ownMachineConnectSchema).mutation("newConnectCommand").withInput(machineRefSchema).withOutput(ownMachineConnectSchema).mutation("connectSsh").withInput(connectSshMachineInputSchema).withOutput(ownMachineSshConnectSchema).mutation("trustHostKey").withInput(trustHostKeyInputSchema).withOutput(machineSchema).mutation("checkHealth").withInput(machineRefSchema).withOutput(machineSchema).mutation("hostAgent").withInput(hostAgentInputSchema).withOutput(machineSchema).mutation("unhostAgent").withInput(unhostAgentInputSchema).withOutput(external_exports.object({ agentId: external_exports.string() })).mutation("pairWhatsapp").withInput(whatsappPairInputSchema).withOutput(whatsappPairingSchema).query("whatsappMirror").withInput(machineRefSchema).withOutput(whatsappMirrorSettingsSchema).mutation("setWhatsappMirror").withInput(setWhatsappMirrorInputSchema).withOutput(whatsappMirrorSettingsSchema).query("whatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("cancelWhatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("unpairWhatsapp").withInput(machineRefSchema).withOutput(machineSchema).build();
86421
- var computeFleetTrpc = defineTrpcContract("compute").query("whatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("prepareWhatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).query("myComputers").withInput(computeWorkspaceInputSchema).withOutput(myComputersSchema).mutation("createComputer").withInput(createComputerInputSchema).withOutput(computerStatusSchema).mutation("deleteComputer").withInput(deleteComputerInputSchema).withOutput(deleteComputerAnswerSchema).mutation("setComputerCreators").withInput(setComputerCreatorsInputSchema).withOutput(computerStatusSchema).mutation("setAgentComputer").withInput(setAgentComputerInputSchema).withOutput(agentComputerAnswerSchema).build();
86628
+ var computeFleetTrpc = defineTrpcContract("compute").query("whatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("prepareWhatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).query("myComputers").withInput(computeWorkspaceInputSchema).withOutput(myComputersSchema).mutation("createComputer").withInput(createComputerInputSchema).withOutput(computerStatusSchema).mutation("deleteComputer").withInput(deleteComputerInputSchema).withOutput(deleteComputerAnswerSchema).mutation("setComputerCreators").withInput(setComputerCreatorsInputSchema).withOutput(computerStatusSchema).mutation("setAgentComputer").withInput(setAgentComputerInputSchema).withOutput(agentComputerAnswerSchema).query("whatsappAgents").withInput(machineRefSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgent").withInput(setWhatsappAgentInputSchema).withOutput(whatsappAgentsSchema).build();
86422
86629
  var computeTrpc = joinTrpcContracts("compute", computeCoreTrpc, computeFleetTrpc);
86423
86630
  var restMachineInputDefinition = external_exports.object({ machine: external_exports.string().min(1).max(64) });
86424
86631
  var restRenameInputDefinition = external_exports.object({
@@ -90155,7 +90362,9 @@ var feedEntrySchemaDefinition = external_exports.object({
90155
90362
  /** The draft as the person edited it, sent with the action or the comment. */
90156
90363
  draft: external_exports.string().nullable(),
90157
90364
  urgent: external_exports.boolean(),
90158
- createdAt: external_exports.iso.datetime()
90365
+ createdAt: external_exports.iso.datetime(),
90366
+ /** Files a person's comment carried, as they were when sent; their bytes stay in chat. */
90367
+ attachments: external_exports.array(feedAttachmentSchemaDefinition).max(FEED_ATTACHMENTS_MAX).optional()
90159
90368
  });
90160
90369
  var feedEntrySchema = feedEntrySchemaDefinition;
90161
90370
  var feedApprovalStateSchema = external_exports.enum([
@@ -90403,9 +90612,13 @@ var commentFeedItemInputSchemaDefinition = external_exports.object({
90403
90612
  body: external_exports.string(),
90404
90613
  draft: external_exports.string().optional(),
90405
90614
  /** With an after-step the comment is a note on the card and the agent files no turn. */
90406
- after: feedCommentAfterSchemaDefinition.nullable().default(null)
90615
+ after: feedCommentAfterSchemaDefinition.nullable().default(null),
90616
+ /** Chat attachment ids, uploaded where `commentPlace` says; refused with an after-step. */
90617
+ attachmentIds: external_exports.array(external_exports.string().min(1)).max(FEED_ATTACHMENTS_MAX).optional()
90407
90618
  });
90408
90619
  var commentFeedItemInputSchema = commentFeedItemInputSchemaDefinition;
90620
+ var feedCommentPlaceSchemaDefinition = external_exports.object({ channelId: external_exports.string().nullable() });
90621
+ var feedCommentPlaceSchema = feedCommentPlaceSchemaDefinition;
90409
90622
  var saveCommentDraftInputSchemaDefinition = external_exports.object({
90410
90623
  ...itemRef.shape,
90411
90624
  text: external_exports.string().max(MESSAGE_BODY_MAX),
@@ -90580,8 +90793,18 @@ var unshareFeedItemInputSchemaDefinition = external_exports.object({
90580
90793
  userId: external_exports.string().min(1)
90581
90794
  });
90582
90795
  var unshareFeedItemInputSchema = unshareFeedItemInputSchemaDefinition;
90583
- var feedSharePersonSchemaDefinition = external_exports.object({ userId: external_exports.string(), name: external_exports.string() });
90796
+ var feedSharePersonSchemaDefinition = external_exports.object({
90797
+ userId: external_exports.string(),
90798
+ name: external_exports.string(),
90799
+ agentHears: external_exports.boolean().optional()
90800
+ });
90584
90801
  var feedSharePersonSchema = feedSharePersonSchemaDefinition;
90802
+ var feedCommentReachSchemaDefinition = external_exports.object({
90803
+ hears: external_exports.boolean(),
90804
+ agentName: external_exports.string(),
90805
+ ownerName: external_exports.string().nullable()
90806
+ });
90807
+ var feedCommentReachSchema = feedCommentReachSchemaDefinition;
90585
90808
  var feedShareAnswerSchemaDefinition = external_exports.object({
90586
90809
  itemIds: external_exports.array(external_exports.string()),
90587
90810
  people: external_exports.array(feedSharePersonSchemaDefinition),
@@ -90632,7 +90855,7 @@ var feedPageMirror = {
90632
90855
  },
90633
90856
  storable: feedPageForDisk
90634
90857
  };
90635
- var feedTrpc = defineTrpcContract("feed").query("channelItems").withInput(external_exports.object({ workspaceId: external_exports.string().min(1), channelId: external_exports.string().min(1) })).withOutput(external_exports.array(feedAgentItemSchema)).query("list").withInput(listFeedInputSchema).withOutput(feedViewSchema).query("page", { mirrored: feedPageMirror }).withInput(pageFeedInputSchema).withOutput(feedPageSchema).query("card").withInput(itemRef).withOutput(feedCardViewSchema).query("fileLink").withInput(feedFileLinkInputSchema).withOutput(feedFileLinkSchema).query("count").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.object({ count: external_exports.number().int().nonnegative() })).query("decisions").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(feedDecisionsSchema).mutation("act").withInput(actFeedItemInputSchema).withOutput(feedItemSchema).mutation("comment").withInput(commentFeedItemInputSchema).withOutput(feedItemSchema).query("commentDrafts").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(commentDraftListSchema).mutation("saveCommentDraft").withInput(saveCommentDraftInputSchema).withOutput(commentDraftSavedSchema).mutation("deleteCommentDraft").withInput(itemRef).withOutput(commentDraftSavedSchema).mutation("done").withInput(itemRef).withOutput(feedItemSchema).mutation("stopAutoSend").withInput(itemRef).withOutput(feedItemSchema).mutation("putBack").withInput(putBackFeedItemInputSchema).withOutput(feedItemSchema).mutation("snooze").withInput(snoozeFeedItemInputSchema).withOutput(feedItemSchema).mutation("unsnooze").withInput(itemRef).withOutput(feedItemSchema).mutation("saveDraft").withInput(saveFeedDraftInputSchema).withOutput(feedItemSchema).mutation("editItem").withInput(editFeedItemInputSchema).withOutput(feedItemSchema).mutation("saveMessage").withInput(saveFeedMessageInputSchema).withOutput(feedItemSchema).mutation("share").withInput(shareFeedItemInputSchema).withOutput(feedShareAnswerSchema).mutation("unshare").withInput(unshareFeedItemInputSchema).withOutput(feedShareAnswerSchema).query("shareCandidates").withInput(itemRef).withOutput(external_exports.array(feedSharePersonSchema)).mutation("answerApproval").withInput(answerFeedApprovalInputSchema).withOutput(feedItemSchema).mutation("decidePublish").withInput(decideFeedPublishInputSchema).withOutput(feedItemSchema).mutation("decideAccess").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideServer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAppAccess").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideComputer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAgentJoin").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAgentTransfer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("pin").withInput(pinFeedItemInputSchema).withOutput(feedItemSchema).mutation("markRead").withInput(itemRef).withOutput(feedItemSchema).mutation("markUnread").withInput(itemRef).withOutput(feedItemSchema).mutation("markAllRead").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.object({ workspaceId: external_exports.string() })).query("delegates").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.array(feedDelegateSchema)).mutation("setDelegate").withInput(setFeedDelegateInputSchema).withOutput(external_exports.array(feedDelegateSchema)).build();
90858
+ var feedTrpc = defineTrpcContract("feed").query("channelItems").withInput(external_exports.object({ workspaceId: external_exports.string().min(1), channelId: external_exports.string().min(1) })).withOutput(external_exports.array(feedAgentItemSchema)).query("list").withInput(listFeedInputSchema).withOutput(feedViewSchema).query("page", { mirrored: feedPageMirror }).withInput(pageFeedInputSchema).withOutput(feedPageSchema).query("card").withInput(itemRef).withOutput(feedCardViewSchema).query("fileLink").withInput(feedFileLinkInputSchema).withOutput(feedFileLinkSchema).query("count").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.object({ count: external_exports.number().int().nonnegative() })).query("decisions").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(feedDecisionsSchema).mutation("act").withInput(actFeedItemInputSchema).withOutput(feedItemSchema).mutation("comment").withInput(commentFeedItemInputSchema).withOutput(feedItemSchema).mutation("commentPlace").withInput(itemRef).withOutput(feedCommentPlaceSchema).query("commentDrafts").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(commentDraftListSchema).mutation("saveCommentDraft").withInput(saveCommentDraftInputSchema).withOutput(commentDraftSavedSchema).mutation("deleteCommentDraft").withInput(itemRef).withOutput(commentDraftSavedSchema).mutation("done").withInput(itemRef).withOutput(feedItemSchema).mutation("stopAutoSend").withInput(itemRef).withOutput(feedItemSchema).mutation("putBack").withInput(putBackFeedItemInputSchema).withOutput(feedItemSchema).mutation("snooze").withInput(snoozeFeedItemInputSchema).withOutput(feedItemSchema).mutation("unsnooze").withInput(itemRef).withOutput(feedItemSchema).mutation("saveDraft").withInput(saveFeedDraftInputSchema).withOutput(feedItemSchema).mutation("editItem").withInput(editFeedItemInputSchema).withOutput(feedItemSchema).mutation("saveMessage").withInput(saveFeedMessageInputSchema).withOutput(feedItemSchema).mutation("share").withInput(shareFeedItemInputSchema).withOutput(feedShareAnswerSchema).mutation("unshare").withInput(unshareFeedItemInputSchema).withOutput(feedShareAnswerSchema).query("shareCandidates").withInput(itemRef).withOutput(external_exports.array(feedSharePersonSchema)).query("commentReach").withInput(itemRef).withOutput(feedCommentReachSchema).mutation("answerApproval").withInput(answerFeedApprovalInputSchema).withOutput(feedItemSchema).mutation("decidePublish").withInput(decideFeedPublishInputSchema).withOutput(feedItemSchema).mutation("decideAccess").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideServer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAppAccess").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideComputer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAgentJoin").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAgentTransfer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("pin").withInput(pinFeedItemInputSchema).withOutput(feedItemSchema).mutation("markRead").withInput(itemRef).withOutput(feedItemSchema).mutation("markUnread").withInput(itemRef).withOutput(feedItemSchema).mutation("markAllRead").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.object({ workspaceId: external_exports.string() })).query("delegates").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.array(feedDelegateSchema)).mutation("setDelegate").withInput(setFeedDelegateInputSchema).withOutput(external_exports.array(feedDelegateSchema)).build();
90636
90859
  var feedUi = uiTokens("feed");
90637
90860
  var FeedNavSlot = feedUi.component("nav");
90638
90861
  var FeedDecisionsSlot = feedUi.component("decisions");
@@ -98457,12 +98680,15 @@ var PATHS3 = {
98457
98680
  var STATUS_WAIT_SECONDS2 = 50;
98458
98681
  var STATUS_CALLS2 = 2;
98459
98682
  var SETTLED = /* @__PURE__ */ new Set(["sent", "denied", "expired", "failed"]);
98683
+ var READ_WAIT_SECONDS = 50;
98460
98684
  var USAGE19 = [
98461
- "Usage: laze whatsapp chats <machine> [--limit <n>] the chats on the machine, newest first",
98462
- " laze whatsapp read <machine> <chat> [--limit <n>] a chat's last messages, oldest first",
98685
+ "Usage: laze whatsapp chats [<machine>] [--limit <n>] the chats, newest first",
98686
+ " laze whatsapp read [<machine>] <chat> [--limit <n>] a chat's last messages, oldest first",
98687
+ " (a read your owner set to Always ask waits for their answer; --request <id> picks it up later)",
98463
98688
  ' laze whatsapp send <machine> <chat> "<text>" send as the owner; an agent waits for their approval',
98464
98689
  " laze whatsapp status <send-id> where a send stands",
98465
98690
  WHATSAPP_PAIRING_USAGE,
98691
+ "With no machine it is the WhatsApp linked on your (or your agent's owner's) Laze computer.",
98466
98692
  "A chat is its id, a phone number or a contact or group name."
98467
98693
  ].join("\n");
98468
98694
  function word2({ args, at }) {
@@ -98477,17 +98703,35 @@ function limitOf5({ args }) {
98477
98703
  if (!Number.isInteger(limit) || limit < 1) throw new CliUsageError(USAGE19);
98478
98704
  return { limit };
98479
98705
  }
98706
+ async function askingRead({
98707
+ client,
98708
+ path,
98709
+ body,
98710
+ args
98711
+ }) {
98712
+ const request2 = flagText({ args, name: "request" });
98713
+ const first = { ...body, waitSeconds: READ_WAIT_SECONDS, ...request2 ? { request: request2 } : {} };
98714
+ try {
98715
+ return await client.post(path, first);
98716
+ } catch (error63) {
98717
+ const waiting = error63 instanceof LazeApiError && error63.code === "whatsapp_read_waiting";
98718
+ const asked = waiting ? error63.meta?.request : void 0;
98719
+ if (typeof asked !== "string") throw error63;
98720
+ return client.post(path, { ...first, request: asked });
98721
+ }
98722
+ }
98480
98723
  async function chats({ context, args }) {
98481
98724
  const client = await computeClient({ context, args });
98482
- const answer6 = await client.post(PATHS3.chats, {
98483
- machine: word2({ args, at: 2 }),
98484
- ...limitOf5({ args })
98725
+ const machine2 = args.words[2];
98726
+ const answer6 = await askingRead({
98727
+ client,
98728
+ path: PATHS3.chats,
98729
+ body: { ...machine2 ? { machine: machine2 } : {}, ...limitOf5({ args }) },
98730
+ args
98485
98731
  });
98486
98732
  if (args.flags.json) return context.out(`${JSON.stringify(answer6, null, 2)}
98487
98733
  `);
98488
- if (answer6.chats.length === 0)
98489
- return context.out(`No WhatsApp chats on ${answer6.machine} yet.
98490
- `);
98734
+ if (answer6.chats.length === 0) return context.out("No WhatsApp chats kept yet.\n");
98491
98735
  for (const chat of answer6.chats) {
98492
98736
  const kind2 = chat.group ? "group" : "chat";
98493
98737
  context.out(
@@ -98498,13 +98742,21 @@ async function chats({ context, args }) {
98498
98742
  }
98499
98743
  async function read3({ context, args }) {
98500
98744
  const client = await computeClient({ context, args });
98501
- const answer6 = await client.post(
98502
- PATHS3.read,
98503
- { machine: word2({ args, at: 2 }), chat: word2({ args, at: 3 }), ...limitOf5({ args }) }
98504
- );
98745
+ const named = args.words.length > 3;
98746
+ const answer6 = await askingRead({
98747
+ client,
98748
+ path: PATHS3.read,
98749
+ body: {
98750
+ ...named ? { machine: word2({ args, at: 2 }) } : {},
98751
+ chat: word2({ args, at: named ? 3 : 2 }),
98752
+ ...limitOf5({ args })
98753
+ },
98754
+ args
98755
+ });
98505
98756
  if (args.flags.json) return context.out(`${JSON.stringify(answer6, null, 2)}
98506
98757
  `);
98507
- context.out(`${answer6.chat.name} (${answer6.chat.id}) on ${answer6.machine}
98758
+ const where = named ? ` on ${answer6.machine}` : "";
98759
+ context.out(`${answer6.chat.name} (${answer6.chat.id})${where}
98508
98760
  `);
98509
98761
  if (answer6.messages.length === 0) context.out("No messages kept yet.\n");
98510
98762
  for (const message2 of answer6.messages)
@@ -98989,7 +99241,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
98989
99241
  laze machine exec <machine> --vault <connection> --reason "<why>" -- <command> the same, with a vault connection
98990
99242
  laze machine host <machine> <agent> [--when-offline wait|computer] run your personal agent on your machine
98991
99243
  laze machine unhost <agent> run the agent on your agent computer again
98992
- laze whatsapp chats|read <machine> [<chat>] [--limit <n>] a person's WhatsApp, through their own machine
99244
+ laze whatsapp chats|read [<machine>] [<chat>] [--limit <n>] your person's WhatsApp, read through Laze
98993
99245
  laze whatsapp send <machine> <chat> "<text>" send as its owner; each message waits for their approval
98994
99246
  laze whatsapp unpair <machine> unlink WhatsApp; linking is in Settings, Machines
98995
99247
  laze whatsapp-business status|conversations|read|send|send-template|send-status|templates|prices
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.81",
3
+ "version": "0.1.83",
4
4
  "description": "The Laze command line: sign in, read and post in chat, and connect your own Claude Code or Codex session as an agent.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",