@lazehq/cli 0.1.82 → 0.1.84

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 +90 -25
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -36990,7 +36990,7 @@ function flagText({
36990
36990
  }
36991
36991
 
36992
36992
  // src/rules/cli-version.rules.ts
36993
- var STAMPED = "0.1.82";
36993
+ var STAMPED = "0.1.84";
36994
36994
  function cliVersionOf({ stamped = STAMPED } = {}) {
36995
36995
  return stamped.startsWith("__") ? "dev" : stamped;
36996
36996
  }
@@ -62650,6 +62650,11 @@ var conversationSchemaDefinition = external_exports.object({
62650
62650
  departed: external_exports.array(departedPersonSchemaDefinition).optional()
62651
62651
  });
62652
62652
  var conversationSchema = conversationSchemaDefinition;
62653
+ var reachableConversationSchemaDefinition = external_exports.object({
62654
+ conversation: conversationSchema,
62655
+ /** Whether any of the asked readers may read it; members are listed either way. */
62656
+ readable: external_exports.boolean()
62657
+ });
62653
62658
  var conversationSummarySchemaDefinition = external_exports.object({
62654
62659
  ...conversationSchemaDefinition.shape,
62655
62660
  lastReadSeq: external_exports.number().int().nonnegative(),
@@ -66230,7 +66235,9 @@ var askAgentApprovalInputSchemaDefinition = external_exports.object({
66230
66235
  line: external_exports.string().min(1).max(500),
66231
66236
  /** What exactly would happen, shown as code on the card. */
66232
66237
  call: external_exports.string().max(8e3),
66233
- deciderIds: external_exports.array(idSchema6).min(1).max(20)
66238
+ deciderIds: external_exports.array(idSchema6).min(1).max(20),
66239
+ /** Offers "Allow for" this long beside Allow once; the answer comes back as `leaseSeconds`. */
66240
+ leaseSeconds: external_exports.number().int().positive().max(30 * 86400).optional()
66234
66241
  });
66235
66242
  var stopAgentTurnInputSchemaDefinition = external_exports.object({
66236
66243
  workspaceId: workspaceIdSchema3,
@@ -66270,7 +66277,9 @@ var agentAttentionRequestedPayloadSchemaDefinition = external_exports.object({
66270
66277
  call: external_exports.string(),
66271
66278
  /** Who may decide; empty means anyone in the conversation. */
66272
66279
  deciderIds: external_exports.array(external_exports.string()),
66273
- expiresAt: external_exports.iso.datetime()
66280
+ expiresAt: external_exports.iso.datetime(),
66281
+ /** The lease "Allow for" gives on another module's ask; null offers only allow and deny. */
66282
+ alwaysLeaseSeconds: external_exports.number().int().positive().nullable().default(null).catch(null)
66274
66283
  });
66275
66284
  var agentAttentionResolvedPayloadSchemaDefinition = external_exports.object({
66276
66285
  workspaceId: external_exports.string().min(1),
@@ -66283,7 +66292,9 @@ var agentAttentionResolvedPayloadSchemaDefinition = external_exports.object({
66283
66292
  channelId: external_exports.string().default(""),
66284
66293
  requestId: external_exports.string().default(""),
66285
66294
  /** What the waiting harness hears; the worker, which holds the sandbox link, sends it. */
66286
- harness: attentionAnswerSchema.nullable().default(null).catch(null)
66295
+ harness: attentionAnswerSchema.nullable().default(null).catch(null),
66296
+ /** Another module's ask allowed for a while: the lease the decider picked; null otherwise. */
66297
+ leaseSeconds: external_exports.number().int().positive().nullable().default(null).catch(null)
66287
66298
  });
66288
66299
  var agentTurnStopRequestedPayloadSchemaDefinition = external_exports.object({
66289
66300
  workspaceId: external_exports.string().min(1),
@@ -72083,6 +72094,17 @@ function beat({
72083
72094
  ...working && state?.messageId ? { messageId: state.messageId } : {}
72084
72095
  });
72085
72096
  }
72097
+ function placeOf(message2) {
72098
+ return { channelId: message2.channelId, threadRootId: message2.threadRootId };
72099
+ }
72100
+ function newestPerConversation({ messages }) {
72101
+ const newest = /* @__PURE__ */ new Map();
72102
+ for (const message2 of messages) {
72103
+ newest.delete(message2.channelId);
72104
+ newest.set(message2.channelId, message2);
72105
+ }
72106
+ return [...newest.values()];
72107
+ }
72086
72108
  async function turnStarted({
72087
72109
  context,
72088
72110
  client,
@@ -72096,10 +72118,18 @@ async function turnStarted({
72096
72118
  threadRootId: last.threadRootId,
72097
72119
  messageId: last.messageId
72098
72120
  };
72121
+ const others = newestPerConversation({ messages }).filter(
72122
+ (message2) => message2.channelId !== last.channelId
72123
+ );
72099
72124
  const before = await readState({ context, agent: agent3 });
72100
- if (before && before.channelId !== state.channelId) {
72125
+ const kept = before && others.some((message2) => message2.channelId === before.channelId);
72126
+ if (before && before.channelId !== state.channelId && !kept) {
72101
72127
  await beat({ client, state: before, working: false }).catch(() => void 0);
72102
72128
  }
72129
+ for (const other of others) {
72130
+ const opened = { ...placeOf(other), messageId: other.messageId };
72131
+ await beat({ client, state: opened, working: true }).catch(() => void 0);
72132
+ }
72103
72133
  const path = statePath({ context, agent: agent3 });
72104
72134
  await mkdir5(dirname5(path), { recursive: true, mode: 448 });
72105
72135
  await writeFile5(path, JSON.stringify(state));
@@ -72314,7 +72344,7 @@ async function attachmentIdsOf({
72314
72344
  function utcTimeOf(iso3) {
72315
72345
  return `${iso3.slice(0, 10)} ${iso3.slice(11, 16)} UTC`;
72316
72346
  }
72317
- function placeOf(item) {
72347
+ function placeOf2(item) {
72318
72348
  if (item.channelKind === "public" || item.channelKind === "private") {
72319
72349
  return `in #${item.channelName}`;
72320
72350
  }
@@ -72322,7 +72352,7 @@ function placeOf(item) {
72322
72352
  }
72323
72353
  function activityLineOf({ item }) {
72324
72354
  const who = item.actor.name;
72325
- const where = placeOf(item);
72355
+ const where = placeOf2(item);
72326
72356
  switch (item.kind) {
72327
72357
  case "mention":
72328
72358
  return `${who} mentioned you ${where}`;
@@ -72379,7 +72409,7 @@ function sendAtOf({ at, timeZone }) {
72379
72409
  return null;
72380
72410
  }
72381
72411
  }
72382
- function placeOf2({ scheduled: scheduled2 }) {
72412
+ function placeOf3({ scheduled: scheduled2 }) {
72383
72413
  const inChannel = scheduled2.channelKind === "public" || scheduled2.channelKind === "private";
72384
72414
  const channel = inChannel ? `#${scheduled2.channelName}` : "a direct message";
72385
72415
  if (!scheduled2.threadRootId) return channel;
@@ -72402,7 +72432,7 @@ function scheduledLine({
72402
72432
  timeZone
72403
72433
  }) {
72404
72434
  const when = zonedTimeOf({ iso: scheduled2.sendAt, timeZone });
72405
- return `Scheduled ${scheduled2.id} for ${placeOf2({ scheduled: scheduled2 })} at ${when}.
72435
+ return `Scheduled ${scheduled2.id} for ${placeOf3({ scheduled: scheduled2 })} at ${when}.
72406
72436
  ${indented(scheduled2.body)}
72407
72437
  `;
72408
72438
  }
@@ -72415,7 +72445,7 @@ var FAILURES = {
72415
72445
  };
72416
72446
  function entryOf(scheduled2) {
72417
72447
  const failed2 = scheduled2.failure ? `failed: ${FAILURES[scheduled2.failure]}; give it a new time with laze scheduled edit --at, or cancel it` : scheduled2.status;
72418
- const head = `${utcTimeOf(scheduled2.sendAt)} ${failed2} ${placeOf2({ scheduled: scheduled2 })} ${scheduled2.id}`;
72448
+ const head = `${utcTimeOf(scheduled2.sendAt)} ${failed2} ${placeOf3({ scheduled: scheduled2 })} ${scheduled2.id}`;
72419
72449
  return `${head}
72420
72450
  ${indented(scheduled2.body)}`;
72421
72451
  }
@@ -72523,7 +72553,7 @@ async function actOn({
72523
72553
  });
72524
72554
  if (args.flags.json) return context.out(`${JSON.stringify(done, null, 2)}
72525
72555
  `);
72526
- const place = placeOf2({ scheduled: done });
72556
+ const place = placeOf3({ scheduled: done });
72527
72557
  context.out(
72528
72558
  action === "send" ? `Sent ${done.id} now in ${place} as ${done.messageId ?? "a new message"}.
72529
72559
  ` : `Cancelled ${done.id} in ${place}.
@@ -75000,13 +75030,24 @@ async function settleRound(round) {
75000
75030
  return 2;
75001
75031
  }
75002
75032
  if (messages.length === 0) return "again";
75003
- await turnStarted({ context, client, agent: name3, messages }).catch(() => void 0);
75004
75033
  const self2 = await currentNameOf({ context, client, profile: name3 });
75005
- context.err(`${hookContextOf({ messages, self: self2 })}
75034
+ const text3 = hookContextOf({ messages, self: self2 });
75035
+ const sent = round.rush ? await sentThroughRush({ context, rush: round.rush, text: text3 }) : false;
75036
+ await turnStarted({ context, client, agent: name3, messages }).catch(() => void 0);
75037
+ if (!sent) context.err(`${text3}
75006
75038
  `);
75007
75039
  const messageIds = messages.map((message2) => message2.messageId);
75008
75040
  await dropFromSpool({ context, profile: name3, messageIds });
75009
- return 2;
75041
+ return sent ? 0 : 2;
75042
+ }
75043
+ async function sentThroughRush({
75044
+ context,
75045
+ rush,
75046
+ text: text3
75047
+ }) {
75048
+ const command = rushSendCommand(rush);
75049
+ const code = await context.runCommand({ command, env: { LAZE_WAKE_TEXT: text3 } }).catch(() => 1);
75050
+ return code === 0;
75010
75051
  }
75011
75052
  async function waitForMessages({ context, args }) {
75012
75053
  const raw = await context.readStdin();
@@ -75029,7 +75070,8 @@ async function waitForMessages({ context, args }) {
75029
75070
  const deadline = context.nowMs() + (WAIT_HOOK_TIMEOUT_SECONDS - 60) * 1e3;
75030
75071
  try {
75031
75072
  while (context.nowMs() < deadline) {
75032
- const code = await settleRound({ context, client, name: name3, lock, claudePid, session, seen });
75073
+ const round = { context, client, name: name3, lock, claudePid, session, seen, rush };
75074
+ const code = await settleRound(round);
75033
75075
  if (code !== "again") return code;
75034
75076
  }
75035
75077
  return 0;
@@ -86064,13 +86106,23 @@ var WHATSAPP_AGENT_LEVELS = ["allow", "ask", "off"];
86064
86106
  var whatsappAgentLevelSchema = external_exports.enum(WHATSAPP_AGENT_LEVELS);
86065
86107
  var whatsappAgentControlSchema = external_exports.enum(["read", "send"]);
86066
86108
  var WHATSAPP_READ_WAIT_MAX_SECONDS = 50;
86109
+ var WHATSAPP_LEASE_CHOICES = [3600, 86400, 172800];
86110
+ var WHATSAPP_LEASE_DEFAULT_SECONDS = 172800;
86111
+ var whatsappLeaseSecondsSchema = external_exports.number().int().refine((seconds) => WHATSAPP_LEASE_CHOICES.includes(seconds), {
86112
+ message: "A lease is 1 hour, 1 day or 2 days"
86113
+ });
86067
86114
  var agentAccessDefinition = external_exports.object({
86068
86115
  agentId: external_exports.string(),
86069
86116
  name: external_exports.string(),
86070
86117
  /** Whether anyone besides the owner can talk to the agent. */
86071
86118
  shared: external_exports.boolean(),
86072
86119
  read: whatsappAgentLevelSchema,
86073
- send: whatsappAgentLevelSchema
86120
+ send: whatsappAgentLevelSchema,
86121
+ /** What "Allow for" on this agent's cards lasts. */
86122
+ leaseSeconds: external_exports.number().int().positive().default(WHATSAPP_LEASE_DEFAULT_SECONDS),
86123
+ /** Until when a lease lets the agent read, or send, with no card; null when none runs. */
86124
+ readLeaseUntil: external_exports.iso.datetime().nullable().default(null),
86125
+ sendLeaseUntil: external_exports.iso.datetime().nullable().default(null)
86074
86126
  });
86075
86127
  var agentsDefinition = external_exports.object({
86076
86128
  machineId: external_exports.string(),
@@ -86087,6 +86139,13 @@ var setAgentDefinition = external_exports.object({
86087
86139
  reauthToken: external_exports.string().min(1).max(200).optional()
86088
86140
  });
86089
86141
  var setWhatsappAgentInputSchema = setAgentDefinition;
86142
+ var setLeaseDefinition = external_exports.object({
86143
+ workspaceId: external_exports.string().min(1).max(64),
86144
+ machine: external_exports.string().min(1).max(64),
86145
+ agentId: external_exports.string().min(1).max(64),
86146
+ leaseSeconds: whatsappLeaseSecondsSchema
86147
+ });
86148
+ var setWhatsappAgentLeaseInputSchema = setLeaseDefinition;
86090
86149
 
86091
86150
  // ../../modules/compute/contract/src/own-machine-whatsapp.ts
86092
86151
  var workspaceIdSchema20 = external_exports.string().min(1).max(64);
@@ -86594,7 +86653,7 @@ var ownMachineSshConnectSchema = ownMachineSshConnectDefinition;
86594
86653
  var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema22, machineId: idSchema23 });
86595
86654
  var ComputeApi = moduleApi()("compute");
86596
86655
  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();
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();
86656
+ 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).mutation("setWhatsappAgentLease").withInput(setWhatsappAgentLeaseInputSchema).withOutput(whatsappAgentsSchema).build();
86598
86657
  var computeTrpc = joinTrpcContracts("compute", computeCoreTrpc, computeFleetTrpc);
86599
86658
  var restMachineInputDefinition = external_exports.object({ machine: external_exports.string().min(1).max(64) });
86600
86659
  var restRenameInputDefinition = external_exports.object({
@@ -86665,7 +86724,6 @@ var computeUi = uiTokens("compute");
86665
86724
  var ComputeWhatsappMessagingSlot = computeUi.component("whatsapp-messaging");
86666
86725
  var ComputeBrowserTabSlot = computeUi.component("browser-tab");
86667
86726
  var ComputeOpenBrowserSlot = computeUi.component("open-browser");
86668
- var ComputeBrowserLinkOfferSlot = computeUi.component("browser-link-offer");
86669
86727
 
86670
86728
  // ../../modules/compute/contract/src/computer-copy.ts
86671
86729
  var COMPUTER_COPY_MAX_BYTES = 2 * 1024 * 1024 * 1024;
@@ -90320,6 +90378,10 @@ var replyFeedItemInputSchemaDefinition = external_exports.object({
90320
90378
  /** Snoozes the item for these people in the same step, as `update` does. */
90321
90379
  snoozeFor: feedSnoozeForSchema.optional()
90322
90380
  });
90381
+ var feedSetCardSchemaDefinition = external_exports.object({
90382
+ links: external_exports.array(feedLinkSchema),
90383
+ actions: external_exports.array(feedItemActionSchema)
90384
+ });
90323
90385
  var feedEntrySchemaDefinition = external_exports.object({
90324
90386
  id: external_exports.string(),
90325
90387
  author: feedAuthorSchema,
@@ -90333,7 +90395,9 @@ var feedEntrySchemaDefinition = external_exports.object({
90333
90395
  urgent: external_exports.boolean(),
90334
90396
  createdAt: external_exports.iso.datetime(),
90335
90397
  /** 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()
90398
+ attachments: external_exports.array(feedAttachmentSchemaDefinition).max(FEED_ATTACHMENTS_MAX).optional(),
90399
+ /** On an agent's reply: the card's links and actions it set. Spec: feed-reply-card-set.feature */
90400
+ setCard: feedSetCardSchemaDefinition.optional()
90337
90401
  });
90338
90402
  var feedEntrySchema = feedEntrySchemaDefinition;
90339
90403
  var feedApprovalStateSchema = external_exports.enum([
@@ -90830,6 +90894,7 @@ var FeedNavSlot = feedUi.component("nav");
90830
90894
  var FeedDecisionsSlot = feedUi.component("decisions");
90831
90895
  var FeedCountHooksToken = feedUi.hooks("count");
90832
90896
  var FeedChannelCardSlot = feedUi.component("channel-card");
90897
+ var FeedCardPanelSlot = feedUi.component("card-panel");
90833
90898
  var FeedReplyLinksSlot = feedUi.component("reply-links");
90834
90899
  var FeedDelegateSlot = feedUi.component("delegate");
90835
90900
  var FeedSearchSlot = feedUi.component("search");
@@ -91183,7 +91248,7 @@ var USAGE10 = `Usage:
91183
91248
  [--image|--file <path|url|fileId>]... (adds) [--remove-file <fileId|name>]...
91184
91249
  [--auto-send-on <YYYY-MM-DD>|none] [--priority high|low|normal|<0 to 100>|none]
91185
91250
  [--show-at <ISO time>|none] [--snooze-for <userId>... --until <ISO time>|none] [--reopen]
91186
- laze feed reply <id> <text> [--done] [--quiet] [--urgent] [--force]
91251
+ laze feed reply <id> <text|-> [--done] [--quiet] [--urgent] [--force]
91187
91252
  [--snooze-for <userId>... --until <ISO time>]
91188
91253
  laze feed read <id>
91189
91254
  laze feed inbox
@@ -91196,7 +91261,7 @@ var USAGE10 = `Usage:
91196
91261
  laze feed count
91197
91262
  laze feed decisions [--json]
91198
91263
  laze feed act <id> <actionId> [--draft <text|@file>]
91199
- laze feed comment <id> <text> [--draft <text|@file>] [--force]
91264
+ laze feed comment <id> <text|-> [--draft <text|@file>] [--force]
91200
91265
  laze feed done|put-back|unsnooze|pin|unpin <id>
91201
91266
  laze feed snooze <id> --until <ISO time>
91202
91267
  laze feed channel <channelId>
@@ -91357,8 +91422,8 @@ async function feedUpdate({ context, args }) {
91357
91422
  }
91358
91423
  async function feedReply({ context, args }) {
91359
91424
  const itemId = args.words[2];
91360
- const text3 = args.words.slice(3).join(" ").trim();
91361
- if (!itemId || !text3) throw new CliUsageError(USAGE10);
91425
+ if (!itemId || args.words.length < 4) throw new CliUsageError(USAGE10);
91426
+ const text3 = await textOf({ context, args, from: 3 });
91362
91427
  const { client } = await signedIn({ context, args });
91363
91428
  const replied = await client.post("/api/feed/items/reply", {
91364
91429
  itemId,
@@ -91548,8 +91613,8 @@ async function feedAct({ context, args }) {
91548
91613
  }
91549
91614
  async function feedComment({ context, args }) {
91550
91615
  const itemId = args.words[2];
91551
- const text3 = args.words.slice(3).join(" ").trim();
91552
- if (!itemId || !text3) throw new CliUsageError(USAGE10);
91616
+ if (!itemId || args.words.length < 4) throw new CliUsageError(USAGE10);
91617
+ const text3 = await textOf({ context, args, from: 3 });
91553
91618
  const draft = await textFlag({ context, args, name: "draft" });
91554
91619
  const { client } = await signedIn({ context, args });
91555
91620
  const item = await client.post("/api/feed/mine/comment", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.82",
3
+ "version": "0.1.84",
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",