@lazehq/cli 0.1.52 → 0.1.53

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 +16 -11
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -35737,7 +35737,8 @@ var SWITCHES = /* @__PURE__ */ new Set([
35737
35737
  "local",
35738
35738
  "done",
35739
35739
  "names",
35740
- "shell"
35740
+ "shell",
35741
+ "self"
35741
35742
  ]);
35742
35743
  function parseArgs({ argv }) {
35743
35744
  const words = [];
@@ -35775,7 +35776,7 @@ function flagText({
35775
35776
  }
35776
35777
 
35777
35778
  // src/rules/cli-version.rules.ts
35778
- var STAMPED = "0.1.52";
35779
+ var STAMPED = "0.1.53";
35779
35780
  function cliVersionOf({ stamped = STAMPED } = {}) {
35780
35781
  return stamped.startsWith("__") ? "dev" : stamped;
35781
35782
  }
@@ -65050,8 +65051,9 @@ var createdAgentSchemaDefinition = external_exports.object({
65050
65051
  /** The owner's direct message with the new agent. */
65051
65052
  channelId: external_exports.string()
65052
65053
  });
65053
- var updateAgentAsCallerInputSchemaDefinition = external_exports.object({
65054
- agent: agentRefSchema4,
65054
+ var updateAgentAsCallerInputSchemaDefinition = external_exports.strictObject({
65055
+ /** Left out, the agent whose key calls: `laze agent update --self`. */
65056
+ agent: agentRefSchema4.optional(),
65055
65057
  name: nameSchema.optional(),
65056
65058
  description: descriptionSchema.optional(),
65057
65059
  avatar: agentAvatarInputSchema.optional(),
@@ -71216,6 +71218,8 @@ are waiting, if you think one was missed.
71216
71218
  - \`laze history <channel>\` and \`laze thread <id>\` read a conversation.
71217
71219
  - \`laze search "words"\` searches messages.
71218
71220
  - \`laze channels list\` lists the conversations you are in.
71221
+ - \`laze agent update --self --name "<name>"\` renames you; \`--description <text>\` and
71222
+ \`--avatar <file>\` change your description and face.
71219
71223
  - \`laze channel info <channel>\` shows its members and the apps pinned there. Read a pinned app
71220
71224
  with \`laze app pull --app <app>\` (its files: page, plan, code) and
71221
71225
  \`laze app records list <collection> --app <app>\` (its data).
@@ -72078,7 +72082,7 @@ function formatLoginActivity({ activity: activity2 }) {
72078
72082
 
72079
72083
  // src/services/agent-manage-commands.service.ts
72080
72084
  var CREATE_USAGE = "Usage: laze agent create --name <name> [--description <text>] [--harness laze-models|claude-code|codex] [--team] [--pool <pool>] [--avatar <file>]";
72081
- var UPDATE_USAGE = "Usage: laze agent update <agent> [--name <name>] [--description <text>] [--avatar <file>] [--model <model>|default] [--effort <level>|default] [--max-context <tokens, such as 200k>|default]";
72085
+ var UPDATE_USAGE = "Usage: laze agent update <agent>|--self [--name <name>] [--description <text>] [--avatar <file>] [--model <model>|default] [--effort <level>|default] [--max-context <tokens, such as 200k>|default]";
72082
72086
  var ARCHIVE_USAGE = "Usage: laze agent archive <agent>";
72083
72087
  var PAUSE_USAGE = 'Usage: laze agent pause <agent> [--reason "<why>"] | laze agent resume <agent>';
72084
72088
  var TRANSFER_USAGE = "Usage: laze agent transfer <agent> <member: user id, email or name> | accept|decline|cancel <agent> | offers";
@@ -72223,16 +72227,17 @@ async function updateAgent({
72223
72227
  context,
72224
72228
  args
72225
72229
  }) {
72226
- const agent2 = args.words[2];
72230
+ const agent2 = args.flags.self === true ? void 0 : args.words[2];
72227
72231
  const name3 = flagText({ args, name: "name" }).trim();
72228
72232
  const description = descriptionOf({ args });
72229
72233
  const run4 = runChangesOf({ args });
72230
72234
  const nothing = !name3 && description === void 0 && !args.flags.avatar;
72231
- if (!agent2 || nothing && Object.keys(run4).length === 0) throw new CliUsageError(UPDATE_USAGE);
72235
+ const both = args.flags.self !== void 0 && args.words[2] !== void 0;
72236
+ if (both || nothing && Object.keys(run4).length === 0) throw new CliUsageError(UPDATE_USAGE);
72232
72237
  const { client } = await signedIn({ context, args });
72233
72238
  const avatar = await avatarOf({ context, args, client });
72234
72239
  const updated = await client.post("/api/agents/update", {
72235
- agent: agent2,
72240
+ ...agent2 !== void 0 && { agent: agent2 },
72236
72241
  ...name3 && { name: name3 },
72237
72242
  ...description !== void 0 && { description },
72238
72243
  ...avatar !== void 0 && { avatar },
@@ -74304,7 +74309,7 @@ var appCliCommands = [
74304
74309
  command: "laze app publish",
74305
74310
  operation: "requestPublish",
74306
74311
  arguments: ["[version]", "--visibility restricted|channel|internal|public"],
74307
- summary: "Bring the app back online after unpublish, or open it to other people with --visibility; a push is live already. Opening it to more people may wait for an approval"
74312
+ summary: "Bring the app back online after unpublish, or open it to other people with --visibility; a push is live already. Making it public waits for an admin only when the workspace turned off public apps"
74308
74313
  },
74309
74314
  {
74310
74315
  command: "laze app make-internal",
@@ -74346,7 +74351,7 @@ var appCliCommands = [
74346
74351
  command: "laze app access visibility",
74347
74352
  operation: "setVisibility",
74348
74353
  arguments: ["restricted|channel|internal|public"],
74349
- summary: "Change who can open the app: narrowing applies at once, widening waits for an admin's approval"
74354
+ summary: "Change who can open the app, at once; making it public waits for an admin's approval only when the workspace turned off public apps"
74350
74355
  },
74351
74356
  {
74352
74357
  command: "laze app access member-role",
@@ -89759,7 +89764,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
89759
89764
  laze agent create --name <name> [--description <text>] [--harness laze-models|claude-code|codex] [--avatar <file>]
89760
89765
  make an agent for your owner (or for you): personal, opened in their direct messages
89761
89766
  --team makes a team agent; on Claude Code or Codex it needs --pool <pool>, a login pool to draw from
89762
- laze agent update <agent> [--name] [--description] [--avatar] [--model] [--effort] [--max-context] change an agent your owner owns
89767
+ laze agent update <agent>|--self [--name] [--description] [--avatar] [--model] [--effort] [--max-context] change an agent your owner owns, or yourself
89763
89768
  laze agent archive <agent> remove an agent your owner owns; kept 30 days
89764
89769
  laze agent archived removed agents you may restore, with the day each goes
89765
89770
  laze agent restore|delete <agent> bring an archived agent back, or delete it for good now
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
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",