@lazehq/cli 0.1.144 → 0.1.145

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 +49 -3
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -36984,7 +36984,7 @@ function shadowedLinkLineOf({ shadow }) {
36984
36984
  }
36985
36985
 
36986
36986
  // src/rules/cli-version.rules.ts
36987
- var STAMPED = "0.1.144";
36987
+ var STAMPED = "0.1.145";
36988
36988
  function cliVersionOf({ stamped = STAMPED } = {}) {
36989
36989
  return stamped.startsWith("__") ? "dev" : stamped;
36990
36990
  }
@@ -75886,6 +75886,22 @@ var slackConnectInvitedSchemaDefinition = external_exports.object({
75886
75886
  channelId: external_exports.string(),
75887
75887
  email: external_exports.string()
75888
75888
  });
75889
+ var SLACK_CONNECT_INVITE_NEW_CHANNEL_PATH = "/api/slack/connect-invite/new-channel";
75890
+ var slackConnectInviteNewChannelInputSchemaDefinition = external_exports.object({
75891
+ /** The new Slack channel's name; a leading `#` is dropped and letters are lowercased. */
75892
+ name: external_exports.string().trim().min(1).max(200),
75893
+ email: external_exports.email().max(320),
75894
+ /** Private by default: only the owner and the bot are in it until someone adds more. */
75895
+ isPrivate: external_exports.boolean().default(true),
75896
+ externalLimited: external_exports.boolean().default(true)
75897
+ });
75898
+ var slackConnectInvitedNewChannelSchemaDefinition = external_exports.object({
75899
+ inviteId: external_exports.string(),
75900
+ channelId: external_exports.string(),
75901
+ slackChannelId: external_exports.string(),
75902
+ name: external_exports.string(),
75903
+ email: external_exports.string()
75904
+ });
75889
75905
 
75890
75906
  // ../../modules/slack/contract/src/slack.config.ts
75891
75907
  var positiveInt4 = external_exports.coerce.number().int().positive();
@@ -80543,7 +80559,9 @@ them that link, never only where to find it ("a card in your feed").
80543
80559
  to reply) posts there as them, from their own Slack account, in a turn they started; it can
80544
80560
  wait for their OK. Post as them only a message they told you to send.
80545
80561
  \`laze slack connect-invite <channelId> <email>\` sends a Slack Connect invite to someone at
80546
- another company, from a Slack channel they are in; they always OK it on a card first.
80562
+ another company, from a Slack channel they are in; they always OK it on a card first. For a new
80563
+ lead, \`laze slack connect-invite --new-channel <name> <email>\` does it all in one go: the bot
80564
+ creates the private channel, adds them and sends the invite, after one card.
80547
80565
  - \`laze channels list\` lists the conversations you are in.
80548
80566
  - \`laze conversation new <agent> "text"\` starts a conversation for your person, with you in
80549
80567
  it and your text posted as you; \`laze conversation add <id> <member>\` adds workspace members
@@ -105971,6 +105989,9 @@ var SLACK_USAGE = `Usage (a person's key; Slack stays the source, the bot joins
105971
105989
  an agent has the Laze bot invite someone from another company to its owner's Slack
105972
105990
  channel (Slack Connect), in a turn the owner started, once the owner allows it;
105973
105991
  --full-access lets them also invite others and manage the channel
105992
+ laze slack connect-invite --new-channel <name> <email> [--public] [--full-access]
105993
+ the same in one go for a new channel: the Laze bot creates it (private unless --public),
105994
+ adds the owner and sends the invite; the owner allows it all on one card first
105974
105995
  laze slack profiles <slack:T:U>... Slack status, title and time zone of authors
105975
105996
  laze slack bookmarks <channelId> a mirrored Slack channel's bookmarks
105976
105997
  laze slack link <teamId> prints the link that links your own Slack
@@ -106123,7 +106144,11 @@ var post2 = async ({ context, args, client }) => {
106123
106144
  context.out(`Posted as your owner: ${posted.messageId} in ${posted.channelId}
106124
106145
  `);
106125
106146
  };
106126
- var connectInvite = async ({ context, args, client }) => {
106147
+ var connectInvite = async (input2) => {
106148
+ const { context, args, client } = input2;
106149
+ if (args.flags["new-channel"] === true) throw new CliUsageError(SLACK_USAGE);
106150
+ const newChannel = flagText({ args, name: "new-channel" });
106151
+ if (newChannel) return connectInviteNewChannel({ ...input2, name: newChannel });
106127
106152
  const email3 = wordAt9(args, 3);
106128
106153
  const invited = await client.post(SLACK_CONNECT_INVITE_PATH, {
106129
106154
  channelId: wordAt9(args, 2),
@@ -106134,6 +106159,27 @@ var connectInvite = async ({ context, args, client }) => {
106134
106159
  context.out(`Slack Connect invite sent to ${invited.email} (${invited.inviteId})
106135
106160
  `);
106136
106161
  };
106162
+ var connectInviteNewChannel = async ({
106163
+ context,
106164
+ args,
106165
+ client,
106166
+ name: name3
106167
+ }) => {
106168
+ const invited = await client.post(
106169
+ SLACK_CONNECT_INVITE_NEW_CHANNEL_PATH,
106170
+ {
106171
+ name: name3,
106172
+ email: wordAt9(args, 2),
106173
+ isPrivate: args.flags.public !== true,
106174
+ externalLimited: args.flags["full-access"] !== true
106175
+ }
106176
+ );
106177
+ if (json5({ context, args, data: invited })) return;
106178
+ context.out(
106179
+ `Created #${invited.name} (${invited.channelId}, Slack ${invited.slackChannelId}) and sent a Slack Connect invite to ${invited.email} (${invited.inviteId})
106180
+ `
106181
+ );
106182
+ };
106137
106183
  var dm = async ({ context, args, client }) => {
106138
106184
  const opened = await client.post(SLACK_KEY_PATHS.direct, {
106139
106185
  teamId: wordAt9(args, 2),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.144",
3
+ "version": "0.1.145",
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",