@lazehq/cli 0.1.102 → 0.1.103

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 +25 -16
  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.102";
36963
+ var STAMPED = "0.1.103";
36964
36964
  function cliVersionOf({ stamped = STAMPED } = {}) {
36965
36965
  return stamped.startsWith("__") ? "dev" : stamped;
36966
36966
  }
@@ -77276,7 +77276,7 @@ without a recap; the person's DM already shows your messages elsewhere.
77276
77276
  - \`laze search "words"\` searches messages.
77277
77277
  - \`laze channels list\` lists the conversations you are in.
77278
77278
  - \`laze conversation new <agent> "text"\` starts a conversation (yours starts it for your
77279
- person), \`laze conversation add <id> <member>\` adds people already in the workspace to it,
77279
+ person), \`laze conversation add <id> <member>\` adds workspace members or agents to it,
77280
77280
  and \`laze channel add <channel> <member>\` does the same for a channel. \`laze invite\` is only
77281
77281
  for people new to the workspace.
77282
77282
  - \`laze agent update --self --name "<name>"\` renames you; \`--description <text>\` and
@@ -86155,7 +86155,7 @@ function addMembers(usage) {
86155
86155
  }
86156
86156
  var channelAdd = addMembers("Usage: laze channel add <channel> <member> [<member>...]");
86157
86157
  var conversationAdd = addMembers(
86158
- "Usage: laze conversation add <conversation> <member> [<member>...] people already in the workspace, by email, name or id"
86158
+ "Usage: laze conversation add <conversation> <member> [<member>...] workspace members or agents, by email, name or id"
86159
86159
  );
86160
86160
  async function channelGroups({ context, args }) {
86161
86161
  const [, , channel] = args.words;
@@ -86198,16 +86198,22 @@ var channelRemoveGroup = groupChange({
86198
86198
  verb: "remove-group",
86199
86199
  line: (group) => `Took @${group} out, with the people it brought.`
86200
86200
  });
86201
- async function channelRemove({ context, args }) {
86202
- const [, , channel, member] = args.words;
86203
- if (!channel || !member) throw new CliUsageError("Usage: laze channel remove <channel> <member>");
86204
- return changeChannel({
86205
- context,
86206
- args,
86207
- path: "/api/agents/me/channels/remove",
86208
- body: { channel, member },
86209
- line: (detail) => membersChangedLine({ detail, members: [member], change: "removed" })
86210
- });
86201
+ var channelRemove = removeMember("Usage: laze channel remove <channel> <member>");
86202
+ var conversationRemove = removeMember(
86203
+ "Usage: laze conversation remove <conversation> <member>"
86204
+ );
86205
+ function removeMember(usage) {
86206
+ return async ({ context, args }) => {
86207
+ const [, , channel, member] = args.words;
86208
+ if (!channel || !member) throw new CliUsageError(usage);
86209
+ return changeChannel({
86210
+ context,
86211
+ args,
86212
+ path: "/api/agents/me/channels/remove",
86213
+ body: { channel, member },
86214
+ line: (detail) => membersChangedLine({ detail, members: [member], change: "removed" })
86215
+ });
86216
+ };
86211
86217
  }
86212
86218
  async function openDirect({ context, args }) {
86213
86219
  const people2 = args.words.slice(1);
@@ -90860,8 +90866,9 @@ var CONVERSATION_USAGE = `Usage:
90860
90866
  laze conversation new <agent> <text|-> start a conversation with an agent; an agent's key
90861
90867
  [--about <message id>] starts it for its person. --about continues from a
90862
90868
  message: the first one quotes it
90863
- laze conversation add <id> <member>... add people already in the workspace (by email, name
90864
- or id); laze invite is only for people new to it
90869
+ laze conversation add <id> <member>... add workspace members or agents (by email, name or
90870
+ id); laze invite is only for people new to it
90871
+ laze conversation remove <id> <member> take a member out (whoever started it, or an Admin)
90865
90872
  laze conversation list [--agent <agent>] yours (an agent: its own; --unnamed for untitled)
90866
90873
  [--closed] only the closed ones, which the list leaves out
90867
90874
  laze conversation rename <id> <title> name it (its agent, or a person in it)
@@ -101866,7 +101873,8 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
101866
101873
  laze status set <emoji> [text] [--for 30m|1h|4h|today|week|never] your status next to your name (people)
101867
101874
  laze status clear | away | active clear it, or set yourself away by hand until active
101868
101875
  laze conversation new <agent> <text|-> [--about <message id>] start a conversation with an agent; it names it (an agent's key starts it for its person)
101869
- laze conversation add <id> <member>... add people already in the workspace to a conversation (a person in it, or its agent while its person is in it)
101876
+ laze conversation add <id> <member>... add workspace members or agents to a conversation, as to a channel
101877
+ laze conversation remove <id> <member> take a member out of a conversation (whoever started it, or an Admin)
101870
101878
  laze conversation list [--agent <agent>] [--unnamed] your conversations with agents
101871
101879
  laze conversation rename <id> <title> name a conversation (its agent, or a person in it)
101872
101880
  laze conversation join|close <id> open one of an agent shared with you, or leave it
@@ -102120,6 +102128,7 @@ var COMMANDS4 = {
102120
102128
  emoji: emoji3,
102121
102129
  "conversation new": conversationNew,
102122
102130
  "conversation add": conversationAdd,
102131
+ "conversation remove": conversationRemove,
102123
102132
  "conversation list": conversationList,
102124
102133
  "conversation rename": conversationRename,
102125
102134
  "conversation join": conversationJoin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
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",