@lazehq/cli 0.1.73 → 0.1.74

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 +34 -19
  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.73";
36930
+ var STAMPED = "0.1.74";
36931
36931
  function cliVersionOf({ stamped = STAMPED } = {}) {
36932
36932
  return stamped.startsWith("__") ? "dev" : stamped;
36933
36933
  }
@@ -60417,7 +60417,7 @@ var createChannelInputSchemaDefinition = external_exports.object({
60417
60417
  memberUserIds: external_exports.array(idSchema4).max(100).default([]),
60418
60418
  /** An agent creator's name, kept on its membership so notices name it. */
60419
60419
  creatorName: external_exports.string().trim().min(1).max(80).optional(),
60420
- /** Makes it a temporary channel that archives itself then, 1 hour to 30 days ahead. */
60420
+ /** Sent by older clients and ignored: new channels never end on their own. */
60421
60421
  endsAt: external_exports.iso.datetime().optional()
60422
60422
  });
60423
60423
  var createChannelInputSchema = createChannelInputSchemaDefinition;
@@ -68699,6 +68699,7 @@ var createChannelAsCallerInputSchemaDefinition = external_exports.object({
68699
68699
  name: external_exports.string().trim().min(1).max(80),
68700
68700
  visibility: external_exports.enum(["public", "private"]).default("public"),
68701
68701
  topic: external_exports.string().trim().max(250).default(""),
68702
+ /** Sent by older CLIs and ignored: new channels never end on their own. */
68702
68703
  temporary: external_exports.enum(CALLER_CHANNEL_DURATIONS).optional()
68703
68704
  });
68704
68705
  var extendChannelAsCallerInputSchemaDefinition = external_exports.object({
@@ -68885,7 +68886,9 @@ var callerInviteManySchemaDefinition = external_exports.object({
68885
68886
  /** Some invitations wait for Team (or for seats) before any email goes out. */
68886
68887
  held: external_exports.boolean(),
68887
68888
  /** The conversation they land in; null without `to`. */
68888
- channelId: external_exports.string().nullable()
68889
+ channelId: external_exports.string().nullable(),
68890
+ /** When some wait: what the plan needs and who can act, said so an agent can pass it on. */
68891
+ planRequired: external_exports.string().nullable().default(null)
68889
68892
  });
68890
68893
  var callerRequestInvitesSchemaDefinition = external_exports.object({
68891
68894
  requests: external_exports.array(callerAccessRequestSchemaDefinition),
@@ -70462,7 +70465,9 @@ var slackFileParamsSchemaDefinition = external_exports.object({
70462
70465
  fileId: external_exports.string().regex(/^F[A-Z0-9]{2,30}$/)
70463
70466
  });
70464
70467
  var slackFileQuerySchemaDefinition = external_exports.object({
70465
- via: external_exports.string().min(1).max(200).optional()
70468
+ via: external_exports.string().min(1).max(200).optional(),
70469
+ /** "1" answers the file as a download of plain bytes, whatever its type. */
70470
+ download: external_exports.literal("1").optional()
70466
70471
  });
70467
70472
  var SLACK_SEARCH_QUERY_MIN = 2;
70468
70473
  var SLACK_SEARCH_QUERY_MAX = 200;
@@ -74850,6 +74855,11 @@ guide first: https://laze.so/docs/agents/apps.md. The short version:
74850
74855
  - Create it where it was asked for, from the closest template (\`laze app templates\` lists
74851
74856
  them): \`laze app create "<Name>" --template <template> --channel <channel>\`. The template is
74852
74857
  the first live version, copied into a folder that is yours to change.
74858
+ - Templates are only for starting from nothing. Sent files that already are a page or a deck (an
74859
+ HTML export, a zip with index.html, a static site): unpack them as they are into a new app
74860
+ with no template (\`laze app create "<Name>" --channel <channel>\`), index.html at the top of
74861
+ its folder, then \`laze app push -m "<what it is>"\`. "Move them here" or "put this here" with
74862
+ an attachment means exactly that: do it, do not ask.
74853
74863
  - Slides, a deck or a talk: start from \`laze app create <name> --template slides\`. Each slide
74854
74864
  is a file in slides/, listed in order in slides/deck.json; the deck presents full screen and
74855
74865
  exports PDF and HTML on its own.
@@ -82598,8 +82608,7 @@ function roleChangedLine({
82598
82608
  `;
82599
82609
  }
82600
82610
  function createdLine({ detail }) {
82601
- const ends = detail.endsAt ? `, temporary until ${utcTimeOf(detail.endsAt)}` : "";
82602
- return `Created ${channelLabelOf(detail)} (${detail.id}), ${detail.kind}${ends}.
82611
+ return `Created ${channelLabelOf(detail)} (${detail.id}), ${detail.kind}.
82603
82612
  `;
82604
82613
  }
82605
82614
  function extendedLine({ detail }) {
@@ -82768,17 +82777,13 @@ async function channelRole({
82768
82777
  }
82769
82778
  });
82770
82779
  }
82771
- var CREATE_USAGE2 = "Usage: laze channel create <name> [--private] [--topic <text>] [--temporary 1d|3d|7d]";
82780
+ var CREATE_USAGE2 = "Usage: laze channel create <name> [--private] [--topic <text>]";
82772
82781
  async function channelCreate({
82773
82782
  context,
82774
82783
  args
82775
82784
  }) {
82776
82785
  const name3 = args.words[2];
82777
- const temporary = flagText({ args, name: "temporary" });
82778
- const duration3 = CALLER_CHANNEL_DURATIONS.find((candidate) => candidate === temporary);
82779
- if (!name3 || args.flags.temporary !== void 0 && !duration3) {
82780
- throw new CliUsageError(CREATE_USAGE2);
82781
- }
82786
+ if (!name3) throw new CliUsageError(CREATE_USAGE2);
82782
82787
  const { client, profile } = await signedIn({ context, args });
82783
82788
  return changing({
82784
82789
  context,
@@ -82787,8 +82792,7 @@ async function channelCreate({
82787
82792
  const detail = await client.post("/api/agents/me/channels/create", {
82788
82793
  name: name3.replace(/^#/, ""),
82789
82794
  visibility: args.flags.private ? "private" : "public",
82790
- topic: flagText({ args, name: "topic" }),
82791
- ...duration3 ? { temporary: duration3 } : {}
82795
+ topic: flagText({ args, name: "topic" })
82792
82796
  });
82793
82797
  if (args.flags.json) return context.out(`${JSON.stringify(detail, null, 2)}
82794
82798
  `);
@@ -84240,7 +84244,7 @@ var inviteQuoteDefinition = external_exports.object({
84240
84244
  plan: planSchema,
84241
84245
  currency: currencySchema,
84242
84246
  rule: teamPricingRuleSchema,
84243
- /** Members plus the seats held for invitations, now. */
84247
+ /** Members plus open invitations: held ones on a paid Team, emailed ones otherwise. */
84244
84248
  people: external_exports.number().int().nonnegative(),
84245
84249
  peopleAfter: external_exports.number().int().nonnegative(),
84246
84250
  /** What the workspace pays a month now: 0 on Free or a complimentary Team. */
@@ -84249,7 +84253,9 @@ var inviteQuoteDefinition = external_exports.object({
84249
84253
  perPersonAfter: external_exports.number().nonnegative(),
84250
84254
  /** Seats Team's first step still includes after the invite ("1 free seat left"); 0 when none. */
84251
84255
  freeSeatsLeft: external_exports.number().int().nonnegative().default(0),
84252
- /** Free, or a Team not paid for: inviting starts Team through Stripe Checkout. */
84256
+ /** More people Free still holds before Team, emailed invitations counted; 0 off Free. */
84257
+ freeInvitesLeft: external_exports.number().int().nonnegative().default(0),
84258
+ /** Free past its people, or a Team not paid for: inviting starts Team through Checkout. */
84253
84259
  upgradeNeeded: external_exports.boolean(),
84254
84260
  /** A live paid Team: the new people are added to the subscription, prorated, as they join. */
84255
84261
  prorated: external_exports.boolean(),
@@ -90400,6 +90406,9 @@ function inviteQuoteText(quote4) {
90400
90406
  const at = (amount) => money2({ amount, currency: quote4.currency });
90401
90407
  const people2 = `${quote4.peopleAfter} ${quote4.peopleAfter === 1 ? "person" : "people"}`;
90402
90408
  const seats = quote4.freeSeatsLeft ? ` ${quote4.freeSeatsLeft} free ${quote4.freeSeatsLeft === 1 ? "seat" : "seats"} left.` : "";
90409
+ if (quote4.plan === "free" && !quote4.upgradeNeeded) {
90410
+ return "Free for up to 2 people, at no charge.\n";
90411
+ }
90403
90412
  if (quote4.seatCap !== null && !quote4.upgradeNeeded) {
90404
90413
  return `Your plan holds ${quote4.seatCap} people, at no charge.
90405
90414
  `;
@@ -90429,6 +90438,12 @@ function inviteInput(args) {
90429
90438
  const to = typeof args.flags.to === "string" ? args.flags.to : void 0;
90430
90439
  return { emails, role: role2, ...to ? { to } : {}, confirmed: true };
90431
90440
  }
90441
+ function heldLine(sent) {
90442
+ const held = sent.invites.filter((one) => one.status === "held").length;
90443
+ const emailed = sent.invites.length - held;
90444
+ const saved3 = `Saved ${held} ${held === 1 ? "invitation" : "invitations"} for Team: Free holds 2 people.`;
90445
+ return emailed > 0 ? `Invited ${emailed}. ${saved3}` : saved3;
90446
+ }
90432
90447
  function refusedLines(refused) {
90433
90448
  const why = { invalid: "not an email address", duplicate: "listed twice", member: "already in" };
90434
90449
  return refused.map((one) => `Left out ${one.email}: ${why[one.reason]}.
@@ -90474,13 +90489,13 @@ async function invite3({ context, args }) {
90474
90489
  returnPath
90475
90490
  });
90476
90491
  context.out(
90477
- `Saved ${sent.invites.length} invitations for Team. Open this link to upgrade; they go out once it is paid: ${url2}
90492
+ `${heldLine(sent)} Open this link to upgrade to Team; they go out once it is paid: ${url2}
90478
90493
  `
90479
90494
  );
90480
90495
  } catch (error63) {
90481
90496
  if (!(error63 instanceof LazeApiError) || error63.status !== 403) throw error63;
90482
90497
  context.out(
90483
- `Saved ${sent.invites.length} invitations for Team. An admin has to upgrade the workspace (laze billing checkout) before they go out.
90498
+ `${heldLine(sent)} An admin has to upgrade the workspace to Team (laze billing checkout) before they go out.
90484
90499
  `
90485
90500
  );
90486
90501
  }
@@ -95773,7 +95788,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
95773
95788
  laze channel members <channel> its people and agents, each an Admin or a Member
95774
95789
  laze channel info <channel> its topic, members and your own setting there (agents)
95775
95790
  laze channel role <channel> <member> admin|member change a channel role (channel admins, people)
95776
- laze channel create <name> [--private] [--topic <t>] [--temporary 1d|3d|7d] a new channel (people)
95791
+ laze channel create <name> [--private] [--topic <t>] a new channel (people)
95777
95792
  laze channel extend <channel> 1d|3d|7d|permanent keep a temporary channel longer (channel admins)
95778
95793
  laze channel browse the channels you may join, joined or not, archived marked
95779
95794
  laze channel join|leave <channel> join a channel, or leave one (people)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
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",