@lazehq/cli 0.1.113 → 0.1.114

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 +174 -58
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -36960,7 +36960,7 @@ function shadowedLinkLineOf({ shadow }) {
36960
36960
  }
36961
36961
 
36962
36962
  // src/rules/cli-version.rules.ts
36963
- var STAMPED = "0.1.113";
36963
+ var STAMPED = "0.1.114";
36964
36964
  function cliVersionOf({ stamped = STAMPED } = {}) {
36965
36965
  return stamped.startsWith("__") ? "dev" : stamped;
36966
36966
  }
@@ -62627,13 +62627,23 @@ var layoutFileSchemaDefinition = external_exports.object({
62627
62627
  path: external_exports.string().max(600).regex(/^\/api\/[^\s]*$/),
62628
62628
  image: external_exports.boolean()
62629
62629
  });
62630
+ var QUOTED_FILE_KINDS = [
62631
+ "photo",
62632
+ "video",
62633
+ "voice",
62634
+ "audio",
62635
+ "document",
62636
+ "sticker"
62637
+ ];
62630
62638
  var layoutQuotedSchemaDefinition = external_exports.object({
62631
62639
  originKey: external_exports.string().min(1).max(200),
62632
62640
  channelId: external_exports.string().min(1).max(100).nullable(),
62633
62641
  seq: external_exports.number().int().positive().nullable(),
62634
62642
  imageId: external_exports.string().min(1).max(100).nullable(),
62635
62643
  /** The Laze person who wrote the original, such as a mirror's owner: their picture shows. */
62636
- by: external_exports.object({ kind: external_exports.literal("person"), id: external_exports.string().min(1).max(100) }).optional()
62644
+ by: external_exports.object({ kind: external_exports.literal("person"), id: external_exports.string().min(1).max(100) }).optional(),
62645
+ /** The original's first file, labelled when the quote has no text; its picture is `imageId`. */
62646
+ file: external_exports.enum(QUOTED_FILE_KINDS).optional().catch(void 0)
62637
62647
  });
62638
62648
  var layoutAttachmentSchemaDefinition = external_exports.object({
62639
62649
  type: external_exports.literal("attachment"),
@@ -62998,6 +63008,19 @@ var mirrorDeliveryStateSchema = external_exports.enum([
62998
63008
  "edit_kept",
62999
63009
  "reaction_kept"
63000
63010
  ]);
63011
+ var MIRROR_DELIVERY_REASONS = [
63012
+ "offline",
63013
+ "not_linked",
63014
+ "unconfirmed",
63015
+ "chat_unknown",
63016
+ "file_unavailable",
63017
+ "file_too_large",
63018
+ "too_many_files",
63019
+ "secret",
63020
+ "late",
63021
+ "rejected"
63022
+ ];
63023
+ var mirrorDeliveryReasonSchema = external_exports.enum(MIRROR_DELIVERY_REASONS);
63001
63024
  var messageOriginSchemaDefinition = external_exports.object({
63002
63025
  source: mirrorSourceSchema,
63003
63026
  /** The message's key at the source, unique in the workspace (e.g. `slack:T1:C1:1792.0001`). */
@@ -63481,6 +63504,8 @@ var messageSchemaDefinition = external_exports.object({
63481
63504
  mirrorReactionKept: external_exports.boolean().optional(),
63482
63505
  /** Set beside a waiting delivery while the computer that sends it is waking up. */
63483
63506
  mirrorDeliveryWaking: external_exports.boolean().optional(),
63507
+ /** Beside a failed delivery: why it was not sent; an unknown reason reads as none. */
63508
+ mirrorDeliveryReason: mirrorDeliveryReasonSchema.optional().catch(void 0),
63484
63509
  /** A thread reply also sent to its conversation: it shows in the thread and the channel. */
63485
63510
  alsoInChannel: external_exports.boolean().optional(),
63486
63511
  /** A Laze DM message also posted to its paired Slack DM, the id of that conversation. */
@@ -64052,7 +64077,9 @@ var pinMirroredInputSchemaDefinition = external_exports.object({
64052
64077
  var setMirrorDeliveryInputSchemaDefinition = external_exports.object({
64053
64078
  workspaceId: workspaceIdSchema,
64054
64079
  messageId: idSchema4,
64055
- state: mirrorDeliveryStateSchema.nullable()
64080
+ state: mirrorDeliveryStateSchema.nullable(),
64081
+ /** Beside `failed`: why it was not sent. */
64082
+ reason: mirrorDeliveryReasonSchema.optional()
64056
64083
  });
64057
64084
  var reactMirroredInputSchemaDefinition = external_exports.object({
64058
64085
  workspaceId: workspaceIdSchema,
@@ -70579,8 +70606,13 @@ var callerChannelSchemaDefinition = external_exports.object({
70579
70606
  name: external_exports.string(),
70580
70607
  kind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
70581
70608
  unread: external_exports.number().int().nonnegative(),
70582
- /** The caller's setting there, for an agent in a channel; DMs always reach it. */
70609
+ /** The caller's setting there, for an agent in a channel or shared conversation. */
70583
70610
  level: agentChannelLevelSchema.default("mentions"),
70611
+ /**
70612
+ * The caller has a setting and a mute there: a channel, or a conversation or group DM with 3 or
70613
+ * more members. Absent from older servers; a 1:1 DM always reaches the agent.
70614
+ */
70615
+ hasSetting: external_exports.boolean().optional(),
70584
70616
  /** A message there leaves Laze: the channel mirrors Slack or holds an agent run outside. */
70585
70617
  leavesLaze: external_exports.boolean().default(false),
70586
70618
  /** The caller's own mute there, while it lasts; null when not muted. */
@@ -73742,6 +73774,39 @@ var slackMirrorHealthDefinition = external_exports.object({
73742
73774
  });
73743
73775
  var slackMirrorHealthSchema = slackMirrorHealthDefinition;
73744
73776
 
73777
+ // src/rules/channel-mute.rules.ts
73778
+ var DURATION = /^(\d+)\s*(m|min|mins|minutes?|h|hours?|d|days?)$/i;
73779
+ function minutesOf({ text: text3 }) {
73780
+ const match = DURATION.exec(text3.trim());
73781
+ if (!match?.[1] || !match[2]) return null;
73782
+ const count10 = Number(match[1]);
73783
+ const unit = match[2].toLowerCase()[0];
73784
+ const perUnit = { d: 1440, h: 60, m: 1 };
73785
+ const minutes = count10 * (perUnit[unit ?? "m"] ?? 1);
73786
+ return minutes > 0 ? minutes : null;
73787
+ }
73788
+ function muteTextOf({ mute }) {
73789
+ return `muted${mute.until ? ` until ${mute.until}` : ""}: ${mute.reason}`;
73790
+ }
73791
+ function settingTextOf({ channel }) {
73792
+ const level2 = channel.level === "everything" ? "Everything" : "Mentions only";
73793
+ const isDefault = channel.isDefault ? " default agent" : "";
73794
+ const mute = channel.mute ? ` ${muteTextOf({ mute: channel.mute })}` : "";
73795
+ return `${level2}${isDefault}${mute}`;
73796
+ }
73797
+ function hasSettingIn({ channel }) {
73798
+ return channel.hasSetting ?? (channel.kind === "public" || channel.kind === "private");
73799
+ }
73800
+ function placeOf({ channel }) {
73801
+ if (channel.kind === "public" || channel.kind === "private") return `#${channel.name}`;
73802
+ const what = channel.kind === "chat" ? "conversation" : "group DM";
73803
+ return channel.name ? `${what} ${channel.name} (${channel.id})` : `${what} ${channel.id}`;
73804
+ }
73805
+ function settingRowOf({ channel }) {
73806
+ return `${placeOf({ channel })} ${settingTextOf({ channel })}
73807
+ `;
73808
+ }
73809
+
73745
73810
  // src/rules/not-in-channel.rules.ts
73746
73811
  function notInChannelLineOf({
73747
73812
  posted,
@@ -74409,7 +74474,7 @@ function beat({
74409
74474
  ...working && state?.messageId ? { messageId: state.messageId } : {}
74410
74475
  });
74411
74476
  }
74412
- function placeOf(message2) {
74477
+ function placeOf2(message2) {
74413
74478
  return { channelId: message2.channelId, threadRootId: message2.threadRootId };
74414
74479
  }
74415
74480
  function newestPerConversation({ messages }) {
@@ -74442,7 +74507,7 @@ async function turnStarted({
74442
74507
  await beat({ client, state: before, working: false }).catch(() => void 0);
74443
74508
  }
74444
74509
  for (const other of others) {
74445
- const opened = { ...placeOf(other), messageId: other.messageId };
74510
+ const opened = { ...placeOf2(other), messageId: other.messageId };
74446
74511
  await beat({ client, state: opened, working: true }).catch(() => void 0);
74447
74512
  }
74448
74513
  const path = statePath({ context, agent: agent3 });
@@ -74663,7 +74728,7 @@ async function attachmentIdsOf({
74663
74728
  function utcTimeOf(iso3) {
74664
74729
  return `${iso3.slice(0, 10)} ${iso3.slice(11, 16)} UTC`;
74665
74730
  }
74666
- function placeOf2(item) {
74731
+ function placeOf3(item) {
74667
74732
  if (item.channelKind === "public" || item.channelKind === "private") {
74668
74733
  return `in #${item.channelName}`;
74669
74734
  }
@@ -74671,7 +74736,7 @@ function placeOf2(item) {
74671
74736
  }
74672
74737
  function activityLineOf({ item }) {
74673
74738
  const who = item.actor.name;
74674
- const where = placeOf2(item);
74739
+ const where = placeOf3(item);
74675
74740
  switch (item.kind) {
74676
74741
  case "mention":
74677
74742
  return `${who} mentioned you ${where}`;
@@ -74728,7 +74793,7 @@ function sendAtOf({ at: at4, timeZone }) {
74728
74793
  return null;
74729
74794
  }
74730
74795
  }
74731
- function placeOf3({ scheduled: scheduled2 }) {
74796
+ function placeOf4({ scheduled: scheduled2 }) {
74732
74797
  const inChannel = scheduled2.channelKind === "public" || scheduled2.channelKind === "private";
74733
74798
  const channel = inChannel ? `#${scheduled2.channelName}` : "a direct message";
74734
74799
  if (!scheduled2.threadRootId) return channel;
@@ -74751,7 +74816,7 @@ function scheduledLine({
74751
74816
  timeZone
74752
74817
  }) {
74753
74818
  const when = zonedTimeOf({ iso: scheduled2.sendAt, timeZone });
74754
- return `Scheduled ${scheduled2.id} for ${placeOf3({ scheduled: scheduled2 })} at ${when}.
74819
+ return `Scheduled ${scheduled2.id} for ${placeOf4({ scheduled: scheduled2 })} at ${when}.
74755
74820
  ${indented(scheduled2.body)}
74756
74821
  `;
74757
74822
  }
@@ -74764,7 +74829,7 @@ var FAILURES = {
74764
74829
  };
74765
74830
  function entryOf(scheduled2) {
74766
74831
  const failed2 = scheduled2.failure ? `failed: ${FAILURES[scheduled2.failure]}; give it a new time with laze scheduled edit --at, or cancel it` : scheduled2.status;
74767
- const head = `${utcTimeOf(scheduled2.sendAt)} ${failed2} ${placeOf3({ scheduled: scheduled2 })} ${scheduled2.id}`;
74832
+ const head = `${utcTimeOf(scheduled2.sendAt)} ${failed2} ${placeOf4({ scheduled: scheduled2 })} ${scheduled2.id}`;
74768
74833
  return `${head}
74769
74834
  ${indented(scheduled2.body)}`;
74770
74835
  }
@@ -74872,7 +74937,7 @@ async function actOn({
74872
74937
  });
74873
74938
  if (args.flags.json) return context.out(`${JSON.stringify(done, null, 2)}
74874
74939
  `);
74875
- const place = placeOf3({ scheduled: done });
74940
+ const place = placeOf4({ scheduled: done });
74876
74941
  context.out(
74877
74942
  action === "send" ? `Sent ${done.id} now in ${place} as ${done.messageId ?? "a new message"}.
74878
74943
  ` : `Cancelled ${done.id} in ${place}.
@@ -74974,7 +75039,7 @@ async function listChannels({ context, args }) {
74974
75039
  if (args.flags.json) return context.out(`${JSON.stringify(channels3, null, 2)}
74975
75040
  `);
74976
75041
  for (const channel of channels3) {
74977
- const direct2 = ["dm", "group", "chat"].includes(channel.kind);
75042
+ const direct2 = !hasSettingIn({ channel });
74978
75043
  const name3 = channelLabelIn(channel);
74979
75044
  const unread = channel.unread > 0 ? ` ${channel.unread} unread` : "";
74980
75045
  const muted = channel.mute ? " muted" : "";
@@ -75000,10 +75065,9 @@ async function setChannelLevel({
75000
75065
  });
75001
75066
  if (args.flags.json) return context.out(`${JSON.stringify(set2, null, 2)}
75002
75067
  `);
75003
- context.out(
75004
- `#${set2.name} is now ${set2.level === "everything" ? "Everything" : "Mentions only"}.
75005
- `
75006
- );
75068
+ const label3 = set2.level === "everything" ? "Everything" : "Mentions only";
75069
+ context.out(`${placeOf({ channel: set2 })} is now ${label3}.
75070
+ `);
75007
75071
  }
75008
75072
  var LEADING_BLANK_LINES = /^(?:[ \t]*\r?\n)+/;
75009
75073
  async function textOf({
@@ -87121,31 +87185,6 @@ function notifyLine({
87121
87185
  `;
87122
87186
  }
87123
87187
 
87124
- // src/rules/channel-mute.rules.ts
87125
- var DURATION = /^(\d+)\s*(m|min|mins|minutes?|h|hours?|d|days?)$/i;
87126
- function minutesOf({ text: text3 }) {
87127
- const match = DURATION.exec(text3.trim());
87128
- if (!match?.[1] || !match[2]) return null;
87129
- const count10 = Number(match[1]);
87130
- const unit = match[2].toLowerCase()[0];
87131
- const perUnit = { d: 1440, h: 60, m: 1 };
87132
- const minutes = count10 * (perUnit[unit ?? "m"] ?? 1);
87133
- return minutes > 0 ? minutes : null;
87134
- }
87135
- function muteTextOf({ mute }) {
87136
- return `muted${mute.until ? ` until ${mute.until}` : ""}: ${mute.reason}`;
87137
- }
87138
- function settingTextOf({ channel }) {
87139
- const level2 = channel.level === "everything" ? "Everything" : "Mentions only";
87140
- const isDefault = channel.isDefault ? " default agent" : "";
87141
- const mute = channel.mute ? ` ${muteTextOf({ mute: channel.mute })}` : "";
87142
- return `${level2}${isDefault}${mute}`;
87143
- }
87144
- function settingRowOf({ channel }) {
87145
- return `#${channel.name} ${settingTextOf({ channel })}
87146
- `;
87147
- }
87148
-
87149
87188
  // src/services/channel-admin-commands.service.ts
87150
87189
  var AGENT_HINT = "Roles, archiving and removing others are a channel admin's change: ask one.\n";
87151
87190
  var ROLES2 = ["admin", "member"];
@@ -87576,7 +87615,6 @@ async function channelHide({ context, args }) {
87576
87615
  // src/services/channel-mute-commands.service.ts
87577
87616
  var MUTE_USAGE = 'Usage: laze channel mute <channel> --reason "<why>" [--for 30m|2h|1d]';
87578
87617
  var UNMUTE_USAGE = "Usage: laze channel unmute <channel>";
87579
- var isChannel = (channel) => channel.kind === "public" || channel.kind === "private";
87580
87618
  async function channelMute({ context, args }) {
87581
87619
  const channel = args.words[2];
87582
87620
  if (!channel) throw new CliUsageError(MUTE_USAGE);
@@ -87592,8 +87630,10 @@ async function channelMute({ context, args }) {
87592
87630
  if (args.flags.json) return context.out(`${JSON.stringify(muted, null, 2)}
87593
87631
  `);
87594
87632
  const mute = muted.mute ? ` ${muteTextOf({ mute: muted.mute })}` : "";
87595
- context.out(`#${muted.name}${mute}. A mention, a DM or your threads still reach you.
87596
- `);
87633
+ context.out(
87634
+ `${placeOf({ channel: muted })}${mute}. A mention, a DM or your threads still reach you.
87635
+ `
87636
+ );
87597
87637
  }
87598
87638
  async function channelUnmute({ context, args }) {
87599
87639
  const channel = args.words[2];
@@ -87603,17 +87643,21 @@ async function channelUnmute({ context, args }) {
87603
87643
  if (args.flags.json) return context.out(`${JSON.stringify(unmuted, null, 2)}
87604
87644
  `);
87605
87645
  const level2 = unmuted.level === "everything" ? "Everything" : "Mentions only";
87606
- context.out(`#${unmuted.name} is unmuted, on ${level2}.
87646
+ context.out(`${placeOf({ channel: unmuted })} is unmuted, on ${level2}.
87607
87647
  `);
87608
87648
  }
87609
87649
  async function channelSettings({ context, args }) {
87610
87650
  const wanted = args.words[2]?.trim();
87611
87651
  const { client } = await signedIn({ context, args });
87612
- const channels3 = (await client.get("/api/agents/me/channels")).filter(isChannel);
87652
+ const channels3 = (await client.get("/api/agents/me/channels")).filter(
87653
+ (channel) => hasSettingIn({ channel })
87654
+ );
87613
87655
  const name3 = wanted?.replace(/^#/, "").toLowerCase();
87614
87656
  const shown2 = wanted ? channels3.filter((channel) => channel.id === wanted || channel.name === name3) : channels3;
87615
87657
  if (wanted && shown2.length === 0) {
87616
- throw new CliUsageError(`You are not in ${wanted}. laze channel settings lists your channels.`);
87658
+ throw new CliUsageError(
87659
+ `${wanted} has no setting for you: you are not in it, or it is a 1:1 DM, which always reaches you. laze channel settings lists your channels and shared conversations.`
87660
+ );
87617
87661
  }
87618
87662
  if (args.flags.json) {
87619
87663
  const value = wanted ? shown2[0] : shown2;
@@ -90746,6 +90790,33 @@ var whatsappMirrorHealthDefinition = external_exports.object({
90746
90790
  )
90747
90791
  });
90748
90792
  var whatsappMirrorHealthSchema = whatsappMirrorHealthDefinition;
90793
+ var WHATSAPP_SEND_KINDS = ["reply", "edit", "revoke", "react", "read", "agent"];
90794
+ var whatsappSendsDefinition = external_exports.object({
90795
+ /** Newest first. */
90796
+ sends: external_exports.array(
90797
+ external_exports.object({
90798
+ /** The send's own id: for a reply it carries the Laze message id, never WhatsApp's. */
90799
+ id: external_exports.string(),
90800
+ machineId: external_exports.string(),
90801
+ kind: external_exports.enum(WHATSAPP_SEND_KINDS),
90802
+ state: external_exports.string(),
90803
+ /** Whether it quoted a message, and how many files it carried. */
90804
+ quoted: external_exports.boolean(),
90805
+ files: count8,
90806
+ /**
90807
+ * Why a failed send did not go: its stored code, or for older sends the code its outcome
90808
+ * line reads as; "other" when none fits, null for a send that did not fail.
90809
+ */
90810
+ failureCode: external_exports.string().nullable(),
90811
+ /** For a refused or unknown failure, the error number WhatsApp's server gave, if any. */
90812
+ serverErrorCode: external_exports.number().int().nullable(),
90813
+ createdAt: at2,
90814
+ claimedAt: at2.nullable(),
90815
+ sentAt: at2.nullable()
90816
+ })
90817
+ )
90818
+ });
90819
+ var whatsappSendsSchema = whatsappSendsDefinition;
90749
90820
  var WHATSAPP_WAKE_STEPS = [
90750
90821
  "requested",
90751
90822
  "vmRunning",
@@ -95582,6 +95653,31 @@ function feedFlagsOf({ args }) {
95582
95653
  return { fields: { ...fields, ...snoozeOf(args) }, texts, ...rich ? { rich } : {} };
95583
95654
  }
95584
95655
 
95656
+ // src/rules/feed-thread-format.rules.ts
95657
+ function whenOf(entry2) {
95658
+ return `${entry2.createdAt.slice(0, 16).replace("T", " ")} UTC`;
95659
+ }
95660
+ function lineOf4({ item, entry: entry2 }) {
95661
+ const own2 = item.author.kind === "agent" && entry2.author.id === item.author.id;
95662
+ const who = own2 ? `You (${entry2.author.name})` : entry2.author.name;
95663
+ const said = entry2.kind === "action" ? `pressed ${entry2.body}` : entry2.body;
95664
+ const [first = "", ...rest] = said.split("\n");
95665
+ return [` ${who}, ${whenOf(entry2)}: ${first}`, ...rest.map((line) => ` ${line}`)].join("\n");
95666
+ }
95667
+ function feedReadLinesOf(read4) {
95668
+ const { item } = read4;
95669
+ const parts = [];
95670
+ if (item.summary) parts.push(`Hint: ${item.summary}`);
95671
+ if (item.body) parts.push(`Body:
95672
+ ${item.body}`);
95673
+ const entries = item.entries.toSorted((a, b) => a.createdAt.localeCompare(b.createdAt));
95674
+ parts.push(
95675
+ entries.length === 0 ? "Thread: no comments yet." : ["Thread, oldest first:", ...entries.map((entry2) => lineOf4({ item, entry: entry2 }))].join("\n")
95676
+ );
95677
+ return `${parts.join("\n")}
95678
+ `;
95679
+ }
95680
+
95585
95681
  // src/services/feed-files.service.ts
95586
95682
  async function directWith({ client, to }) {
95587
95683
  const me = await client.get("/api/agents/me");
@@ -95851,9 +95947,11 @@ async function feedRead({ context, args }) {
95851
95947
  const { client } = await signedIn({ context, args });
95852
95948
  const read4 = await client.post("/api/feed/items/read", { itemId });
95853
95949
  printItem({ context, args, item: read4 });
95854
- if (!args.flags.json && read4.item.draft) context.out(`Draft:
95950
+ if (args.flags.json) return;
95951
+ if (read4.item.draft) context.out(`Draft:
95855
95952
  ${read4.item.draft}
95856
95953
  `);
95954
+ context.out(feedReadLinesOf(read4));
95857
95955
  }
95858
95956
  async function feedInbox({ context, args }) {
95859
95957
  const { client } = await signedIn({ context, args });
@@ -100837,9 +100935,20 @@ var tenantWhatsappOutputDefinition = external_exports.object({
100837
100935
  since: external_exports.iso.datetime(),
100838
100936
  until: external_exports.iso.datetime(),
100839
100937
  total: count9,
100840
- byKind: external_exports.array(external_exports.object({ kind: external_exports.enum([...WHATSAPP_INTAKE_KEY_KINDS, "other"]), count: count9 }))
100938
+ byKind: external_exports.array(
100939
+ external_exports.object({
100940
+ kind: external_exports.enum([...WHATSAPP_INTAKE_KEY_KINDS, "other"]),
100941
+ count: count9,
100942
+ /** Events dated over a second after Laze got them, and the most ahead: a fast clock. */
100943
+ aheadOfLaze: external_exports.object({ count: count9, maxAheadMs: external_exports.number().int() }).optional()
100944
+ })
100945
+ )
100841
100946
  })
100842
100947
  });
100948
+ var whatsappSendsInputDefinition = external_exports.object({
100949
+ since: external_exports.iso.datetime(),
100950
+ limit: external_exports.number().int().min(1).max(100).default(20)
100951
+ }).strict();
100843
100952
  var wakeTimelineInputDefinition = external_exports.object({
100844
100953
  userId: external_exports.string().trim().min(1).max(64).optional(),
100845
100954
  limit: external_exports.number().int().min(1).max(50).default(10)
@@ -101013,6 +101122,13 @@ var OPS_FUNCTIONS = {
101013
101122
  input: vaultAsksInputDefinition,
101014
101123
  output: vaultAsksOutputDefinition
101015
101124
  }),
101125
+ "tenant.whatsapp_sends": entry({
101126
+ title: "One workspace's last WhatsApp sends: state, failure code and times, no content",
101127
+ scope: "tenant",
101128
+ view: "table",
101129
+ input: whatsappSendsInputDefinition,
101130
+ output: whatsappSendsSchema
101131
+ }),
101016
101132
  "computers.wake_timeline": entry({
101017
101133
  title: "One workspace's last WhatsApp wakes per computer, with each step's time",
101018
101134
  scope: "tenant",
@@ -102631,7 +102747,7 @@ function bareLineOf({ line, where }) {
102631
102747
  if (VARIABLE.test(line)) return { kind: "field", variable: line, ref: line };
102632
102748
  throw new CliUsageError(`${where}: not a name: ${line}`);
102633
102749
  }
102634
- function lineOf4({ line, where }) {
102750
+ function lineOf5({ line, where }) {
102635
102751
  const at4 = line.indexOf("=");
102636
102752
  if (at4 === -1) return bareLineOf({ line, where });
102637
102753
  const variable = line.slice(0, at4).trim();
@@ -102648,7 +102764,7 @@ function parseManifest({ text: text3, file: file4 }) {
102648
102764
  for (const [index, raw] of text3.split(/\r?\n/).entries()) {
102649
102765
  const line = raw.trim().replace(/^export\s+/, "");
102650
102766
  if (!line || line.startsWith("#")) continue;
102651
- lines2.push(lineOf4({ line, where: `${file4}:${index + 1}` }));
102767
+ lines2.push(lineOf5({ line, where: `${file4}:${index + 1}` }));
102652
102768
  }
102653
102769
  return lines2;
102654
102770
  }
@@ -103258,7 +103374,7 @@ async function vaultSave({ context, args }) {
103258
103374
  }
103259
103375
 
103260
103376
  // src/services/vault-scrub-commands.service.ts
103261
- function lineOf5(channel) {
103377
+ function lineOf6(channel) {
103262
103378
  const where = channel.name ? `#${channel.name}` : channel.channelId;
103263
103379
  const found = Object.entries(channel.found).map(([vendor, count10]) => `${vendor} ${count10}`).join(", ");
103264
103380
  const kinds = [`held ${channel.held}`, ...found ? [`found: ${found}`] : []].join("; ");
@@ -103272,7 +103388,7 @@ async function vaultScrub({ context, args }) {
103272
103388
  if (args.flags.json) return context.out(`${JSON.stringify(report3, null, 2)}
103273
103389
  `);
103274
103390
  const changed = report3.channels.filter((channel) => channel.messages > 0);
103275
- for (const channel of changed) context.out(lineOf5(channel));
103391
+ for (const channel of changed) context.out(lineOf6(channel));
103276
103392
  const total = changed.reduce((sum, channel) => sum + channel.messages, 0);
103277
103393
  context.out(
103278
103394
  report3.dryRun ? `Dry run: ${total} message(s) would change. Nothing was changed.
@@ -104361,10 +104477,10 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
104361
104477
  laze groups rename <group> <name> | delete <group> rename one, or delete it and take back what it shared (admins)
104362
104478
  laze groups add|remove <group> --person <member>.. change who is in it (admins)
104363
104479
  laze channels list the conversations you are in, with your setting
104364
- laze channel set <channel> everything|mentions what of a channel reaches your agent
104365
- laze channel mute <channel> --reason "<why>" [--for 30m|2h|1d] stop hearing a noisy channel unless named (agents)
104366
- laze channel unmute <channel> hear the channel on your setting again (agents)
104367
- laze channel settings [<channel>] [--json] each channel's setting and mute (agents)
104480
+ laze channel set <channel> everything|mentions what of a channel or shared conversation (3+ members, by id) reaches your agent
104481
+ laze channel mute <channel> --reason "<why>" [--for 30m|2h|1d] stop hearing a noisy channel or conversation unless named (agents)
104482
+ laze channel unmute <channel> hear the channel or conversation on your setting again (agents)
104483
+ laze channel settings [<channel>] [--json] each channel's and shared conversation's setting and mute; a 1:1 DM always reaches you (agents)
104368
104484
  laze monitor add <name> --channel '#x-*' --prompt '<what to do>' [--from anyone|people|slack] [--not-from bots] [--thread roots-only] [--matches '<re>'] a turn on each new matching message (agents)
104369
104485
  laze monitor list | pause | resume | rm <name> [--json] the agent's monitors
104370
104486
  laze channel members <channel> its people and agents, each an Admin or a Member
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.113",
3
+ "version": "0.1.114",
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",