@lazehq/cli 0.1.29 → 0.1.30

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 +24 -19
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -35707,7 +35707,7 @@ function flagText({
35707
35707
  }
35708
35708
 
35709
35709
  // src/rules/cli-version.rules.ts
35710
- var STAMPED = "0.1.29";
35710
+ var STAMPED = "0.1.30";
35711
35711
  function cliVersionOf({ stamped = STAMPED } = {}) {
35712
35712
  return stamped.startsWith("__") ? "dev" : stamped;
35713
35713
  }
@@ -60942,17 +60942,17 @@ var computerBrowserStateSchemaDefinition = external_exports.object({ running: ex
60942
60942
  var computerNoticeSchemaDefinition = external_exports.discriminatedUnion("type", [
60943
60943
  external_exports.object({
60944
60944
  type: external_exports.literal("memory_stop"),
60945
- /** "stopped: your computer is out of memory (3.9 of 4 GB)". */
60945
+ /** "stopped: your agent computer is out of memory (3.9 of 4 GB)". */
60946
60946
  text: external_exports.string().min(1).max(500)
60947
60947
  }),
60948
60948
  external_exports.object({
60949
60949
  type: external_exports.literal("disk_warning"),
60950
- /** "your computer's disk is 92% full (36.8 of 40 GB)". */
60950
+ /** "your agent computer's disk is 92% full (36.8 of 40 GB)". */
60951
60951
  text: external_exports.string().min(1).max(500)
60952
60952
  }),
60953
60953
  external_exports.object({
60954
60954
  type: external_exports.literal("disk_full"),
60955
- /** "stopped: your computer's disk is full (40.1 of 40 GB)". */
60955
+ /** "stopped: your agent computer's disk is full (40.1 of 40 GB)". */
60956
60956
  text: external_exports.string().min(1).max(500),
60957
60957
  /** Whether one of this agent's commands was stopped for it. */
60958
60958
  stopped: external_exports.boolean()
@@ -77220,7 +77220,7 @@ var computerStatusDefinition = external_exports.object({
77220
77220
  /** The person whose computer this is; an agent reads its owner's. */
77221
77221
  ownerUserId: external_exports.string(),
77222
77222
  ownerName: external_exports.string(),
77223
- /** "Your computer" for its owner, "Mia's computer" for an agent or anyone else. */
77223
+ /** "Agent computer" for its owner, "Mia's agent computer" for an agent or anyone else. */
77224
77224
  name: external_exports.string(),
77225
77225
  /** The size it runs at: the chosen one, or the included one when none was chosen. */
77226
77226
  size: computerSizeSchema,
@@ -78076,7 +78076,7 @@ async function mine({ context, args }) {
78076
78076
  const client = await computeClient({ context, args });
78077
78077
  const answer4 = await client.get(COMPUTER_REST_PATHS.mine);
78078
78078
  if (args.flags.json) return printJson2(context, answer4);
78079
- context.out(`Your Laze computers:
78079
+ context.out(`Your agent computers:
78080
78080
  ${answer4.computers.map(lineOf3).join("\n")}
78081
78081
  `);
78082
78082
  }
@@ -78137,14 +78137,14 @@ var COMPUTER_FLEET_COMMANDS = { mine, add: add2, remove: remove3, creators, move
78137
78137
 
78138
78138
  // src/services/computer-commands.service.ts
78139
78139
  var COMPUTER_USAGE = `Usage:
78140
- laze computer status [--json] your computer: size, CPU, memory and disk in use, your agents, the sizes
78140
+ laze computer status [--json] your agent computer: size, CPU, memory and disk in use, your agents, the sizes
78141
78141
  laze computer sizes the sizes with their prices and what the plan includes per person
78142
- laze computer upgrade <size> change your computer's size: small, medium, large or xl (Owners and
78142
+ laze computer upgrade <size> change your agent computer's size: small, medium, large or xl (Owners and
78143
78143
  Admins); anyone else gets a message to forward and the admins a card
78144
- laze computer request <size> ask the admins for a size for your computer
78144
+ laze computer request <size> ask the admins for a size for your agent computer
78145
78145
  laze computer cancel <request> withdraw your request
78146
78146
  laze computer restart [--person <user id>] [--computer <computer>]
78147
- stop and start your computer, or a person's (Owners and Admins);
78147
+ stop and start your agent computer, or a person's (Owners and Admins);
78148
78148
  its agents start again on their next message
78149
78149
  laze computer list [--json] everyone's computers with size and monthly cost (Owners and Admins)
78150
78150
  ${COMPUTER_FLEET_USAGE}`;
@@ -78169,10 +78169,10 @@ function sizeLines(status8) {
78169
78169
  });
78170
78170
  }
78171
78171
  function stateLine(status8) {
78172
- if (status8.state === "none") return "State: no agent used the computer yet";
78172
+ if (status8.state === "none") return "State: ready, no agent used it yet";
78173
78173
  if (status8.state === "asleep") {
78174
78174
  const since = status8.lastRunningAt ? `, last ran ${utc(status8.lastRunningAt)}` : "";
78175
- return `State: asleep${since}`;
78175
+ return `State: ready, wakes in seconds when an agent needs it${since}`;
78176
78176
  }
78177
78177
  return "State: running";
78178
78178
  }
@@ -78949,8 +78949,8 @@ function removal(path) {
78949
78949
  };
78950
78950
  }
78951
78951
  function usedBy(row) {
78952
- if (row.agentId) return `agent ${row.agentId}`;
78953
78952
  if (row.actorKind === "user") return `person ${row.actorId ?? ""}`;
78953
+ if (row.agentId) return `agent ${row.agentId}`;
78954
78954
  return "laze";
78955
78955
  }
78956
78956
  var uses = async ({ context, args }) => {
@@ -81616,7 +81616,7 @@ var USAGE11 = [
81616
81616
  ' laze machine exec <machine> --vault <connection> [--vault <other>] --reason "<why>" -- <command>',
81617
81617
  " the same, with vault connections in its environment",
81618
81618
  " laze machine host <machine> <agent> [--when-offline wait|computer] run your personal agent there (people)",
81619
- " laze machine unhost <agent> run the agent on your computer again (people)",
81619
+ " laze machine unhost <agent> run the agent on your agent computer again (people)",
81620
81620
  " laze machine remove <machine> cut the machine off and forget it (people)",
81621
81621
  MACHINE_ACCESS_USAGE
81622
81622
  ].join("\n");
@@ -81822,7 +81822,7 @@ ${USAGE11}`);
81822
81822
  });
81823
81823
  if (args.flags.json) return context.out(`${JSON.stringify(machine2, null, 2)}
81824
81824
  `);
81825
- const offline = whenOffline === "wait" ? `${agent2} waits` : `${agent2} answers from your computer`;
81825
+ const offline = whenOffline === "wait" ? `${agent2} waits` : `${agent2} answers from your agent computer`;
81826
81826
  context.out(
81827
81827
  `${agent2} now runs on ${machine2.name}. While ${machine2.name} is offline, ${offline}.
81828
81828
  `
@@ -81835,7 +81835,7 @@ async function unhost({ context, args }) {
81835
81835
  const done = await client.post(COMPUTE_REST_PATHS.unhost, { agent: agent2 });
81836
81836
  if (args.flags.json) return context.out(`${JSON.stringify(done, null, 2)}
81837
81837
  `);
81838
- context.out(`${agent2} runs on your computer again.
81838
+ context.out(`${agent2} runs on your agent computer again.
81839
81839
  `);
81840
81840
  }
81841
81841
  async function remove4({ context, args }) {
@@ -85674,12 +85674,12 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
85674
85674
  laze machine list | health <machine> own machines: online or not, system, disk and tools
85675
85675
  laze machine get|rename|grant|revoke|budget <machine> one machine, its name, who it is shared with, its cap
85676
85676
  laze machine status whether Laze can rent machines here
85677
- laze computer status | sizes your computer: size, CPU, memory, disk, each agent's share, prices
85677
+ laze computer status | sizes your agent computer: size, CPU, memory, disk, each agent's share, prices
85678
85678
  laze computer upgrade <size> small, medium, large or xl (admins); only after the person said yes in chat
85679
85679
  laze computer request <size> | cancel <request> ask the admins for a size, or withdraw the ask
85680
85680
  laze computer list everyone's computers, size and monthly cost (Owners and Admins)
85681
85681
  laze computer restart [--person <user id>] stop and start a computer that runs fine (people, not agents)
85682
- laze computer mine | add <name> --size <size> [--shared] your Laze computers; add one (Owners and Admins)
85682
+ laze computer mine | add <name> --size <size> [--shared] your agent computers; add one (Owners and Admins)
85683
85683
  laze computer remove <computer> [--to <computer>] | move <agent> <computer|default> delete one, or move an agent
85684
85684
  laze computer creators <computer> --everyone | --people <id,id> who may add agents on a shared computer
85685
85685
  laze ip [status|on <country>|off|countries|domains [add|remove|reset]|list] your dedicated IP for sites that block Laze
@@ -85689,7 +85689,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
85689
85689
  When someone wants work done on their own machine, run it there; if it is offline, say so and go on where you run
85690
85690
  laze machine exec <machine> --vault <connection> --reason "<why>" -- <command> the same, with a vault connection
85691
85691
  laze machine host <machine> <agent> [--when-offline wait|computer] run your personal agent on your machine
85692
- laze machine unhost <agent> run the agent on your computer again
85692
+ laze machine unhost <agent> run the agent on your agent computer again
85693
85693
  laze whatsapp chats|read <machine> [<chat>] [--limit <n>] a person's WhatsApp, through their own machine
85694
85694
  laze whatsapp send <machine> <chat> "<text>" send as its owner; each message waits for their approval
85695
85695
  laze whatsapp pair|unpair <machine>, pairing|cancel <id> link WhatsApp on your own machine (owner)
@@ -86095,7 +86095,12 @@ function sleep(ms, signal) {
86095
86095
  signal?.addEventListener("abort", stop3, { once: true });
86096
86096
  });
86097
86097
  }
86098
+ function quietOnClosedPipe(error62) {
86099
+ if (error62.code !== "EPIPE") throw error62;
86100
+ process.exit(process.exitCode ?? 0);
86101
+ }
86098
86102
  if (true) {
86103
+ process.stdout.on("error", quietOnClosedPipe);
86099
86104
  const environment = cliEnvironment();
86100
86105
  const ask = terminalAsk();
86101
86106
  process.exitCode = await runCli({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
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",