@lazehq/cli 0.1.81 → 0.1.82
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/dist/laze.mjs +265 -44
- 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.
|
|
36993
|
+
var STAMPED = "0.1.82";
|
|
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
|
-
|
|
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),
|
|
@@ -85944,6 +86059,35 @@ var trustHostKeyDefinition = external_exports.object({
|
|
|
85944
86059
|
var trustHostKeyInputSchema = trustHostKeyDefinition;
|
|
85945
86060
|
var restTrustHostKeyDefinition = trustHostKeyDefinition.omit({ workspaceId: true });
|
|
85946
86061
|
|
|
86062
|
+
// ../../modules/compute/contract/src/whatsapp-agent-access.ts
|
|
86063
|
+
var WHATSAPP_AGENT_LEVELS = ["allow", "ask", "off"];
|
|
86064
|
+
var whatsappAgentLevelSchema = external_exports.enum(WHATSAPP_AGENT_LEVELS);
|
|
86065
|
+
var whatsappAgentControlSchema = external_exports.enum(["read", "send"]);
|
|
86066
|
+
var WHATSAPP_READ_WAIT_MAX_SECONDS = 50;
|
|
86067
|
+
var agentAccessDefinition = external_exports.object({
|
|
86068
|
+
agentId: external_exports.string(),
|
|
86069
|
+
name: external_exports.string(),
|
|
86070
|
+
/** Whether anyone besides the owner can talk to the agent. */
|
|
86071
|
+
shared: external_exports.boolean(),
|
|
86072
|
+
read: whatsappAgentLevelSchema,
|
|
86073
|
+
send: whatsappAgentLevelSchema
|
|
86074
|
+
});
|
|
86075
|
+
var agentsDefinition = external_exports.object({
|
|
86076
|
+
machineId: external_exports.string(),
|
|
86077
|
+
agents: external_exports.array(agentAccessDefinition)
|
|
86078
|
+
});
|
|
86079
|
+
var whatsappAgentsSchema = agentsDefinition;
|
|
86080
|
+
var setAgentDefinition = external_exports.object({
|
|
86081
|
+
workspaceId: external_exports.string().min(1).max(64),
|
|
86082
|
+
machine: external_exports.string().min(1).max(64),
|
|
86083
|
+
agentId: external_exports.string().min(1).max(64),
|
|
86084
|
+
control: whatsappAgentControlSchema,
|
|
86085
|
+
level: whatsappAgentLevelSchema,
|
|
86086
|
+
/** The vault's one-use proof, needed when the level moves towards Allow. */
|
|
86087
|
+
reauthToken: external_exports.string().min(1).max(200).optional()
|
|
86088
|
+
});
|
|
86089
|
+
var setWhatsappAgentInputSchema = setAgentDefinition;
|
|
86090
|
+
|
|
85947
86091
|
// ../../modules/compute/contract/src/own-machine-whatsapp.ts
|
|
85948
86092
|
var workspaceIdSchema20 = external_exports.string().min(1).max(64);
|
|
85949
86093
|
var machineRefText2 = external_exports.string().min(1).max(64);
|
|
@@ -85981,21 +86125,28 @@ var messagesResultDefinition = external_exports.object({
|
|
|
85981
86125
|
});
|
|
85982
86126
|
var limitSchema = external_exports.number().int().min(1).max(WHATSAPP_LIMIT_MAX);
|
|
85983
86127
|
var chatRefSchema = external_exports.string().trim().min(1).max(200);
|
|
86128
|
+
var whatsappMachineRef = machineRefText2.optional();
|
|
86129
|
+
var readAskFields = {
|
|
86130
|
+
request: external_exports.string().min(1).max(64).optional(),
|
|
86131
|
+
waitSeconds: external_exports.number().int().min(0).max(WHATSAPP_READ_WAIT_MAX_SECONDS).optional()
|
|
86132
|
+
};
|
|
85984
86133
|
var chatsInputDefinition = external_exports.object({
|
|
85985
86134
|
workspaceId: workspaceIdSchema20,
|
|
85986
|
-
machine:
|
|
85987
|
-
limit: limitSchema.optional()
|
|
86135
|
+
machine: whatsappMachineRef,
|
|
86136
|
+
limit: limitSchema.optional(),
|
|
86137
|
+
...readAskFields
|
|
85988
86138
|
});
|
|
85989
86139
|
var readInputDefinition = external_exports.object({
|
|
85990
86140
|
workspaceId: workspaceIdSchema20,
|
|
85991
|
-
machine:
|
|
86141
|
+
machine: whatsappMachineRef,
|
|
85992
86142
|
/** A chat id, a phone number or a contact or group name. */
|
|
85993
86143
|
chat: chatRefSchema,
|
|
85994
|
-
limit: limitSchema.optional()
|
|
86144
|
+
limit: limitSchema.optional(),
|
|
86145
|
+
...readAskFields
|
|
85995
86146
|
});
|
|
85996
86147
|
var sendInputDefinition = external_exports.object({
|
|
85997
86148
|
workspaceId: workspaceIdSchema20,
|
|
85998
|
-
machine:
|
|
86149
|
+
machine: whatsappMachineRef,
|
|
85999
86150
|
chat: chatRefSchema,
|
|
86000
86151
|
text: external_exports.string().trim().min(1).max(WHATSAPP_TEXT_MAX)
|
|
86001
86152
|
});
|
|
@@ -86050,15 +86201,26 @@ var whatsappVisitEveryDefinition = external_exports.union([
|
|
|
86050
86201
|
external_exports.literal(5),
|
|
86051
86202
|
external_exports.literal(15),
|
|
86052
86203
|
external_exports.literal(30),
|
|
86053
|
-
external_exports.literal(60)
|
|
86204
|
+
external_exports.literal(60),
|
|
86205
|
+
external_exports.literal(360),
|
|
86206
|
+
external_exports.literal(1440)
|
|
86054
86207
|
]);
|
|
86055
86208
|
var whatsappVisitEverySchema = whatsappVisitEveryDefinition;
|
|
86209
|
+
var whatsappSendLevelDefinition = external_exports.enum(["auto", "checked", "ask"]);
|
|
86210
|
+
var whatsappSendLevelSchema = whatsappSendLevelDefinition;
|
|
86056
86211
|
var mirrorSettingsDefinition = external_exports.object({
|
|
86057
86212
|
machineId: external_exports.string(),
|
|
86058
86213
|
mirrorOn: external_exports.boolean(),
|
|
86059
86214
|
onlineMode: whatsappOnlineModeSchema,
|
|
86060
|
-
|
|
86061
|
-
|
|
86215
|
+
/** Always true: the owner's agents read. Kept one release for pages already loaded. */
|
|
86216
|
+
agentsRead: external_exports.boolean().meta({ deprecated: true }),
|
|
86217
|
+
agentsSend: external_exports.boolean(),
|
|
86218
|
+
sendLevel: whatsappSendLevelSchema,
|
|
86219
|
+
visitEveryMinutes: whatsappVisitEverySchema,
|
|
86220
|
+
/** Whether the computer's size allows checks more often than hourly. */
|
|
86221
|
+
frequentChecks: external_exports.boolean(),
|
|
86222
|
+
/** Messages chat could not show yet; Laze tries them again after its next update. */
|
|
86223
|
+
skipped: external_exports.number().int().min(0).default(0)
|
|
86062
86224
|
});
|
|
86063
86225
|
var whatsappMirrorSettingsSchema = mirrorSettingsDefinition;
|
|
86064
86226
|
var setMirrorSettingsDefinition = external_exports.object({
|
|
@@ -86066,8 +86228,11 @@ var setMirrorSettingsDefinition = external_exports.object({
|
|
|
86066
86228
|
machine: machineRefText2,
|
|
86067
86229
|
mirrorOn: external_exports.boolean().optional(),
|
|
86068
86230
|
onlineMode: whatsappOnlineModeSchema.optional(),
|
|
86069
|
-
|
|
86070
|
-
|
|
86231
|
+
agentsSend: external_exports.boolean().optional(),
|
|
86232
|
+
sendLevel: whatsappSendLevelSchema.optional(),
|
|
86233
|
+
visitEveryMinutes: whatsappVisitEverySchema.optional(),
|
|
86234
|
+
/** The vault's one-use proof, needed when `sendLevel` lowers the level. */
|
|
86235
|
+
reauthToken: external_exports.string().min(1).max(200).optional()
|
|
86071
86236
|
});
|
|
86072
86237
|
var setWhatsappMirrorInputSchema = setMirrorSettingsDefinition;
|
|
86073
86238
|
var whatsappComputerDefinition = external_exports.object({
|
|
@@ -86080,6 +86245,13 @@ var whatsappComputerDefinition = external_exports.object({
|
|
|
86080
86245
|
var whatsappComputerSchema = whatsappComputerDefinition;
|
|
86081
86246
|
var whatsappComputerInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema20 });
|
|
86082
86247
|
var whatsappComputerInputSchema = whatsappComputerInputDefinition;
|
|
86248
|
+
var whatsappChangeMediaDefinition = external_exports.object({
|
|
86249
|
+
kind: external_exports.enum(["voice", "audio", "image", "video", "document", "sticker"]),
|
|
86250
|
+
mime: external_exports.string().max(200),
|
|
86251
|
+
size: external_exports.number().int().positive(),
|
|
86252
|
+
seconds: external_exports.number().int().nonnegative().optional(),
|
|
86253
|
+
name: external_exports.string().max(500).optional()
|
|
86254
|
+
});
|
|
86083
86255
|
var whatsappChangeDefinition = external_exports.object({
|
|
86084
86256
|
chat: external_exports.string().min(1).max(200),
|
|
86085
86257
|
chatName: external_exports.string().max(500),
|
|
@@ -86089,7 +86261,11 @@ var whatsappChangeDefinition = external_exports.object({
|
|
|
86089
86261
|
fromMe: external_exports.boolean(),
|
|
86090
86262
|
sender: external_exports.string().max(500),
|
|
86091
86263
|
text: external_exports.string(),
|
|
86092
|
-
deleted: external_exports.boolean()
|
|
86264
|
+
deleted: external_exports.boolean(),
|
|
86265
|
+
/** Fetched with a "media" request while the store is open; absent from older connectors. */
|
|
86266
|
+
media: whatsappChangeMediaDefinition.optional(),
|
|
86267
|
+
/** The chat's other ids, such as the hidden id it was first seen under; new in Nov 2026. */
|
|
86268
|
+
aliases: external_exports.array(external_exports.string().min(1).max(200)).max(16).optional()
|
|
86093
86269
|
});
|
|
86094
86270
|
var whatsappPairingSchema = whatsappPairingDefinition;
|
|
86095
86271
|
var pairingRefDefinition = external_exports.object({
|
|
@@ -86418,7 +86594,7 @@ var ownMachineSshConnectSchema = ownMachineSshConnectDefinition;
|
|
|
86418
86594
|
var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema22, machineId: idSchema23 });
|
|
86419
86595
|
var ComputeApi = moduleApi()("compute");
|
|
86420
86596
|
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();
|
|
86597
|
+
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
86598
|
var computeTrpc = joinTrpcContracts("compute", computeCoreTrpc, computeFleetTrpc);
|
|
86423
86599
|
var restMachineInputDefinition = external_exports.object({ machine: external_exports.string().min(1).max(64) });
|
|
86424
86600
|
var restRenameInputDefinition = external_exports.object({
|
|
@@ -90155,7 +90331,9 @@ var feedEntrySchemaDefinition = external_exports.object({
|
|
|
90155
90331
|
/** The draft as the person edited it, sent with the action or the comment. */
|
|
90156
90332
|
draft: external_exports.string().nullable(),
|
|
90157
90333
|
urgent: external_exports.boolean(),
|
|
90158
|
-
createdAt: external_exports.iso.datetime()
|
|
90334
|
+
createdAt: external_exports.iso.datetime(),
|
|
90335
|
+
/** Files a person's comment carried, as they were when sent; their bytes stay in chat. */
|
|
90336
|
+
attachments: external_exports.array(feedAttachmentSchemaDefinition).max(FEED_ATTACHMENTS_MAX).optional()
|
|
90159
90337
|
});
|
|
90160
90338
|
var feedEntrySchema = feedEntrySchemaDefinition;
|
|
90161
90339
|
var feedApprovalStateSchema = external_exports.enum([
|
|
@@ -90403,9 +90581,13 @@ var commentFeedItemInputSchemaDefinition = external_exports.object({
|
|
|
90403
90581
|
body: external_exports.string(),
|
|
90404
90582
|
draft: external_exports.string().optional(),
|
|
90405
90583
|
/** With an after-step the comment is a note on the card and the agent files no turn. */
|
|
90406
|
-
after: feedCommentAfterSchemaDefinition.nullable().default(null)
|
|
90584
|
+
after: feedCommentAfterSchemaDefinition.nullable().default(null),
|
|
90585
|
+
/** Chat attachment ids, uploaded where `commentPlace` says; refused with an after-step. */
|
|
90586
|
+
attachmentIds: external_exports.array(external_exports.string().min(1)).max(FEED_ATTACHMENTS_MAX).optional()
|
|
90407
90587
|
});
|
|
90408
90588
|
var commentFeedItemInputSchema = commentFeedItemInputSchemaDefinition;
|
|
90589
|
+
var feedCommentPlaceSchemaDefinition = external_exports.object({ channelId: external_exports.string().nullable() });
|
|
90590
|
+
var feedCommentPlaceSchema = feedCommentPlaceSchemaDefinition;
|
|
90409
90591
|
var saveCommentDraftInputSchemaDefinition = external_exports.object({
|
|
90410
90592
|
...itemRef.shape,
|
|
90411
90593
|
text: external_exports.string().max(MESSAGE_BODY_MAX),
|
|
@@ -90580,8 +90762,18 @@ var unshareFeedItemInputSchemaDefinition = external_exports.object({
|
|
|
90580
90762
|
userId: external_exports.string().min(1)
|
|
90581
90763
|
});
|
|
90582
90764
|
var unshareFeedItemInputSchema = unshareFeedItemInputSchemaDefinition;
|
|
90583
|
-
var feedSharePersonSchemaDefinition = external_exports.object({
|
|
90765
|
+
var feedSharePersonSchemaDefinition = external_exports.object({
|
|
90766
|
+
userId: external_exports.string(),
|
|
90767
|
+
name: external_exports.string(),
|
|
90768
|
+
agentHears: external_exports.boolean().optional()
|
|
90769
|
+
});
|
|
90584
90770
|
var feedSharePersonSchema = feedSharePersonSchemaDefinition;
|
|
90771
|
+
var feedCommentReachSchemaDefinition = external_exports.object({
|
|
90772
|
+
hears: external_exports.boolean(),
|
|
90773
|
+
agentName: external_exports.string(),
|
|
90774
|
+
ownerName: external_exports.string().nullable()
|
|
90775
|
+
});
|
|
90776
|
+
var feedCommentReachSchema = feedCommentReachSchemaDefinition;
|
|
90585
90777
|
var feedShareAnswerSchemaDefinition = external_exports.object({
|
|
90586
90778
|
itemIds: external_exports.array(external_exports.string()),
|
|
90587
90779
|
people: external_exports.array(feedSharePersonSchemaDefinition),
|
|
@@ -90632,7 +90824,7 @@ var feedPageMirror = {
|
|
|
90632
90824
|
},
|
|
90633
90825
|
storable: feedPageForDisk
|
|
90634
90826
|
};
|
|
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();
|
|
90827
|
+
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
90828
|
var feedUi = uiTokens("feed");
|
|
90637
90829
|
var FeedNavSlot = feedUi.component("nav");
|
|
90638
90830
|
var FeedDecisionsSlot = feedUi.component("decisions");
|
|
@@ -98457,12 +98649,15 @@ var PATHS3 = {
|
|
|
98457
98649
|
var STATUS_WAIT_SECONDS2 = 50;
|
|
98458
98650
|
var STATUS_CALLS2 = 2;
|
|
98459
98651
|
var SETTLED = /* @__PURE__ */ new Set(["sent", "denied", "expired", "failed"]);
|
|
98652
|
+
var READ_WAIT_SECONDS = 50;
|
|
98460
98653
|
var USAGE19 = [
|
|
98461
|
-
"Usage: laze whatsapp chats <machine> [--limit <n>]
|
|
98462
|
-
" laze whatsapp read <machine> <chat> [--limit <n>]
|
|
98654
|
+
"Usage: laze whatsapp chats [<machine>] [--limit <n>] the chats, newest first",
|
|
98655
|
+
" laze whatsapp read [<machine>] <chat> [--limit <n>] a chat's last messages, oldest first",
|
|
98656
|
+
" (a read your owner set to Always ask waits for their answer; --request <id> picks it up later)",
|
|
98463
98657
|
' laze whatsapp send <machine> <chat> "<text>" send as the owner; an agent waits for their approval',
|
|
98464
98658
|
" laze whatsapp status <send-id> where a send stands",
|
|
98465
98659
|
WHATSAPP_PAIRING_USAGE,
|
|
98660
|
+
"With no machine it is the WhatsApp linked on your (or your agent's owner's) Laze computer.",
|
|
98466
98661
|
"A chat is its id, a phone number or a contact or group name."
|
|
98467
98662
|
].join("\n");
|
|
98468
98663
|
function word2({ args, at }) {
|
|
@@ -98477,17 +98672,35 @@ function limitOf5({ args }) {
|
|
|
98477
98672
|
if (!Number.isInteger(limit) || limit < 1) throw new CliUsageError(USAGE19);
|
|
98478
98673
|
return { limit };
|
|
98479
98674
|
}
|
|
98675
|
+
async function askingRead({
|
|
98676
|
+
client,
|
|
98677
|
+
path,
|
|
98678
|
+
body,
|
|
98679
|
+
args
|
|
98680
|
+
}) {
|
|
98681
|
+
const request2 = flagText({ args, name: "request" });
|
|
98682
|
+
const first = { ...body, waitSeconds: READ_WAIT_SECONDS, ...request2 ? { request: request2 } : {} };
|
|
98683
|
+
try {
|
|
98684
|
+
return await client.post(path, first);
|
|
98685
|
+
} catch (error63) {
|
|
98686
|
+
const waiting = error63 instanceof LazeApiError && error63.code === "whatsapp_read_waiting";
|
|
98687
|
+
const asked = waiting ? error63.meta?.request : void 0;
|
|
98688
|
+
if (typeof asked !== "string") throw error63;
|
|
98689
|
+
return client.post(path, { ...first, request: asked });
|
|
98690
|
+
}
|
|
98691
|
+
}
|
|
98480
98692
|
async function chats({ context, args }) {
|
|
98481
98693
|
const client = await computeClient({ context, args });
|
|
98482
|
-
const
|
|
98483
|
-
|
|
98484
|
-
|
|
98694
|
+
const machine2 = args.words[2];
|
|
98695
|
+
const answer6 = await askingRead({
|
|
98696
|
+
client,
|
|
98697
|
+
path: PATHS3.chats,
|
|
98698
|
+
body: { ...machine2 ? { machine: machine2 } : {}, ...limitOf5({ args }) },
|
|
98699
|
+
args
|
|
98485
98700
|
});
|
|
98486
98701
|
if (args.flags.json) return context.out(`${JSON.stringify(answer6, null, 2)}
|
|
98487
98702
|
`);
|
|
98488
|
-
if (answer6.chats.length === 0)
|
|
98489
|
-
return context.out(`No WhatsApp chats on ${answer6.machine} yet.
|
|
98490
|
-
`);
|
|
98703
|
+
if (answer6.chats.length === 0) return context.out("No WhatsApp chats kept yet.\n");
|
|
98491
98704
|
for (const chat of answer6.chats) {
|
|
98492
98705
|
const kind2 = chat.group ? "group" : "chat";
|
|
98493
98706
|
context.out(
|
|
@@ -98498,13 +98711,21 @@ async function chats({ context, args }) {
|
|
|
98498
98711
|
}
|
|
98499
98712
|
async function read3({ context, args }) {
|
|
98500
98713
|
const client = await computeClient({ context, args });
|
|
98501
|
-
const
|
|
98502
|
-
|
|
98503
|
-
|
|
98504
|
-
|
|
98714
|
+
const named = args.words.length > 3;
|
|
98715
|
+
const answer6 = await askingRead({
|
|
98716
|
+
client,
|
|
98717
|
+
path: PATHS3.read,
|
|
98718
|
+
body: {
|
|
98719
|
+
...named ? { machine: word2({ args, at: 2 }) } : {},
|
|
98720
|
+
chat: word2({ args, at: named ? 3 : 2 }),
|
|
98721
|
+
...limitOf5({ args })
|
|
98722
|
+
},
|
|
98723
|
+
args
|
|
98724
|
+
});
|
|
98505
98725
|
if (args.flags.json) return context.out(`${JSON.stringify(answer6, null, 2)}
|
|
98506
98726
|
`);
|
|
98507
|
-
|
|
98727
|
+
const where = named ? ` on ${answer6.machine}` : "";
|
|
98728
|
+
context.out(`${answer6.chat.name} (${answer6.chat.id})${where}
|
|
98508
98729
|
`);
|
|
98509
98730
|
if (answer6.messages.length === 0) context.out("No messages kept yet.\n");
|
|
98510
98731
|
for (const message2 of answer6.messages)
|
|
@@ -98989,7 +99210,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
|
|
|
98989
99210
|
laze machine exec <machine> --vault <connection> --reason "<why>" -- <command> the same, with a vault connection
|
|
98990
99211
|
laze machine host <machine> <agent> [--when-offline wait|computer] run your personal agent on your machine
|
|
98991
99212
|
laze machine unhost <agent> run the agent on your agent computer again
|
|
98992
|
-
laze whatsapp chats|read <machine> [<chat>] [--limit <n>]
|
|
99213
|
+
laze whatsapp chats|read [<machine>] [<chat>] [--limit <n>] your person's WhatsApp, read through Laze
|
|
98993
99214
|
laze whatsapp send <machine> <chat> "<text>" send as its owner; each message waits for their approval
|
|
98994
99215
|
laze whatsapp unpair <machine> unlink WhatsApp; linking is in Settings, Machines
|
|
98995
99216
|
laze whatsapp-business status|conversations|read|send|send-template|send-status|templates|prices
|
package/package.json
CHANGED