@lazehq/cli 0.1.68 → 0.1.69

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 +63 -9
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -36927,7 +36927,7 @@ function flagText({
36927
36927
  }
36928
36928
 
36929
36929
  // src/rules/cli-version.rules.ts
36930
- var STAMPED = "0.1.68";
36930
+ var STAMPED = "0.1.69";
36931
36931
  function cliVersionOf({ stamped = STAMPED } = {}) {
36932
36932
  return stamped.startsWith("__") ? "dev" : stamped;
36933
36933
  }
@@ -60806,7 +60806,10 @@ var startUploadInputSchemaDefinition = external_exports.object({
60806
60806
  channelId: idSchema4,
60807
60807
  fileName: external_exports.string().trim().min(1).max(255),
60808
60808
  contentType: external_exports.string().trim().max(127).default("application/octet-stream"),
60809
- sizeBytes: external_exports.number().int().nonnegative()
60809
+ sizeBytes: external_exports.number().int().nonnegative(),
60810
+ /** An image's size as the browser read it, so its box is known before the worker reads it. */
60811
+ width: external_exports.number().optional(),
60812
+ height: external_exports.number().optional()
60810
60813
  });
60811
60814
  var startUploadInputSchema = startUploadInputSchemaDefinition;
60812
60815
  var uploadPartSchemaDefinition = external_exports.object({
@@ -61234,6 +61237,7 @@ var chatTrpc = joinTrpcContracts(
61234
61237
  // ../../modules/notification/contract/src/apns.ts
61235
61238
  var APNS_DEFAULT_BUNDLE_ID = "ai.langwatch.laze";
61236
61239
  var APNS_APPROVAL_CATEGORY = "LAZE_APPROVAL";
61240
+ var feedCardClosedReasonSchema = external_exports.enum(["read", "done", "snoozed"]);
61237
61241
  var apnsEnvironmentSchema = external_exports.enum(["sandbox", "production"]);
61238
61242
  var apnsTokenSchema = external_exports.string().regex(/^[0-9a-fA-F]{64,200}$/, "an APNs device token is 64 to 200 hex characters").transform((token2) => token2.toLowerCase());
61239
61243
  var installIdSchema = external_exports.string().regex(/^[A-Za-z0-9_-]{8,128}$/, "an install id is 8 to 128 letters, digits, - or _");
@@ -61280,12 +61284,14 @@ var apnsPayloadSchemaDefinition = external_exports.object({
61280
61284
  seq: external_exports.number().int().nonnegative().optional(),
61281
61285
  clear: external_exports.object({ threadId: external_exports.string().min(1).max(200), upToSeq: external_exports.number().int().nonnegative() }).strict().optional(),
61282
61286
  /**
61283
- * Absent on an alert; "read" on the silent push a read sends; "approval-decided" on the silent
61284
- * push that takes a decided approval's alert (same `cardId`) off the device.
61287
+ * Absent on an alert; "read" on the silent push a read sends; "approval-decided" and
61288
+ * "feed-card-closed" on the silent pushes that take an alert with the same `cardId` off.
61285
61289
  */
61286
- type: external_exports.enum(["read", "approval-decided"]).optional(),
61287
- /** An approval alert, and the push that retracts it: the card's id, as `link` ends in. */
61290
+ type: external_exports.enum(["read", "approval-decided", "feed-card-closed"]).optional(),
61291
+ /** An approval or feed card alert, and the push that retracts it: the card's id. */
61288
61292
  cardId: external_exports.string().min(1).max(200).optional(),
61293
+ /** A `feed-card-closed` push: why the card's alert came off. */
61294
+ reason: feedCardClosedReasonSchema.optional(),
61289
61295
  /** The conversation an alert tells of, or a read push covers. */
61290
61296
  conversationId: external_exports.string().min(1).max(200).optional(),
61291
61297
  /** The thread's root message, when the alert or the read is in a thread. */
@@ -61610,7 +61616,9 @@ var desktopPublicationSchemaDefinition = external_exports.object({
61610
61616
  }).nullable(),
61611
61617
  badge: external_exports.number().int().nonnegative(),
61612
61618
  /** The tag of a notification to take back, such as one for a message since deleted. */
61613
- withdrawn: external_exports.string().optional()
61619
+ withdrawn: external_exports.string().optional(),
61620
+ /** More tags to take back at once, such as the messages one read covered. */
61621
+ withdrawnTags: external_exports.array(external_exports.string()).max(500).optional()
61614
61622
  });
61615
61623
  var desktopPublicationSchema = desktopPublicationSchemaDefinition;
61616
61624
  var quietReasonSchema = external_exports.enum(["paused", "hours"]);
@@ -61829,8 +61837,30 @@ var feedCardSettledPayloadSchemaDefinition = external_exports.object({
61829
61837
  userId: external_exports.string().min(1),
61830
61838
  itemId: external_exports.string().min(1),
61831
61839
  changeId: external_exports.string().min(1),
61840
+ /** Why, as the push that retracts the card's alert names it; absent on older facts. */
61841
+ reason: feedCardClosedReasonSchema.optional(),
61832
61842
  at: external_exports.iso.datetime()
61833
61843
  });
61844
+ var feedPushSentPayloadSchemaDefinition = external_exports.object({
61845
+ workspaceId: external_exports.string().min(1),
61846
+ userId: external_exports.string().min(1),
61847
+ itemId: external_exports.string().min(1),
61848
+ /** The push's own key, so a retried push records once. */
61849
+ pushKey: external_exports.string().min(1).max(256),
61850
+ at: external_exports.iso.datetime()
61851
+ });
61852
+ var feedPushLedgerStateSchemaDefinition = external_exports.object({
61853
+ workspaceId: external_exports.string(),
61854
+ userId: external_exports.string(),
61855
+ pushed: external_exports.array(external_exports.object({ itemId: external_exports.string().min(1), at: external_exports.number() }))
61856
+ });
61857
+ var feedCardRetractionIntentSchemaDefinition = external_exports.object({
61858
+ workspaceId: external_exports.string().min(1),
61859
+ userId: external_exports.string().min(1),
61860
+ itemId: external_exports.string().min(1),
61861
+ changeId: external_exports.string().min(1),
61862
+ reason: feedCardClosedReasonSchema
61863
+ });
61834
61864
  var feedDigestSetPayloadSchemaDefinition = external_exports.object({
61835
61865
  workspaceId: external_exports.string().min(1),
61836
61866
  userId: external_exports.string().min(1),
@@ -74516,6 +74546,20 @@ are waiting, if you think one was missed.
74516
74546
  with \`laze app pull --app <app>\` (its files: page, plan, code) and
74517
74547
  \`laze app records list <collection> --app <app>\` (its data).
74518
74548
 
74549
+ ## The feed
74550
+
74551
+ When something needs a person to decide or act, post a card in their feed:
74552
+ \`laze feed post "<title>" --summary "<why>" --action "<label>=<what to do>"\`. Run
74553
+ \`laze feed post\` with no title for every flag and how to write a card.
74554
+
74555
+ When you prepare a message for a person to send (email, Slack, LinkedIn), post a feed card with
74556
+ the full text in \`--draft\`, the recipients and subject in
74557
+ \`--draft-header "To: ...\\nCc: ...\\nSubject: ..."\`, an action to send it
74558
+ (\`--action "Send it=<what to do>"\`) and a \`--link\` to the exact draft
74559
+ (\`"Open draft in Gmail=https://mail.google.com/mail/u/0/#drafts?compose=<draft message id>"\`,
74560
+ not the drafts folder). Never leave it only in Gmail drafts. If they edit the text on the card,
74561
+ the press brings you the edited text: update the native draft with it first, then send.
74562
+
74519
74563
  ## Apps
74520
74564
 
74521
74565
  Asked for an app (a tracker, a CRM, a dashboard, a page that explains something), read the full
@@ -88863,10 +88907,20 @@ var FEED_WRITING = `Write for a person deciding on a phone in a few seconds:
88863
88907
  no "Day 9." counters. Numbers only when they change the decision.
88864
88908
  - Not too terse either: whole sentences a person understands without context.
88865
88909
  - Replies and comments: same rules, short when you can.
88910
+ - When you prepare a message for a person to send (email, Slack, LinkedIn), post a card
88911
+ with the full text in --draft, the recipients and subject in
88912
+ --draft-header "To: ...
88913
+ Cc: ...
88914
+ Subject: ...", an action to send it
88915
+ (--action "Send it=<what to do>") and a --link to the exact draft
88916
+ ("Open draft in Gmail=https://mail.google.com/mail/u/0/#drafts?compose=<draft message id>",
88917
+ not the drafts folder). Never leave it only in Gmail drafts. If they edit the text on the
88918
+ card, the press brings you the edited text: update the native draft with it, then send.
88866
88919
  - A draft that sends a file carries the file: pass it with --file. Never name a file you
88867
88920
  did not attach; "Attach: deck.pdf" without a file is stopped unless you pass --force.
88868
- The server pushes back with feed_hard_to_read when the text reads like a log;
88869
- rewrite it, or pass --force to post it as written.`;
88921
+ The server pushes back with feed_hard_to_read when the text reads like a log, and with
88922
+ feed_draft_missing when a card points at a draft without its text; fix it, or pass --force
88923
+ to post it as written.`;
88870
88924
  var FEED_NO_BODY = "feed cards have no body: put the point in the title and one --summary line, text to send in --draft, sources in --link";
88871
88925
  function pairOf({ value, flag: flag2 }) {
88872
88926
  const at = value.indexOf("=");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.68",
3
+ "version": "0.1.69",
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",