@lazehq/cli 0.1.16 → 0.1.17

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 +28 -12
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -35606,7 +35606,7 @@ function flagText({
35606
35606
  }
35607
35607
 
35608
35608
  // src/rules/cli-version.rules.ts
35609
- var STAMPED = "0.1.16";
35609
+ var STAMPED = "0.1.17";
35610
35610
  function cliVersionOf({ stamped = STAMPED } = {}) {
35611
35611
  return stamped.startsWith("__") ? "dev" : stamped;
35612
35612
  }
@@ -69438,6 +69438,28 @@ import { mkdir as mkdir12, readFile as readFile10, writeFile as writeFile12 } fr
69438
69438
  import { dirname as dirname12 } from "node:path";
69439
69439
  var RELOAD_TIP = "Laze: the Laze plugin is installed in Claude Code, and this session has not loaded it yet. Tell the user once, in one plain line, that it is optional: typing /reload-plugins makes Laze messages arrive right away; until then they still arrive through the hooks.";
69440
69440
  var LINK_RELOAD_TIP = "Tell the user once, in one plain line, that it is optional: typing /reload-plugins makes Laze messages arrive right away; until then they still arrive through the hooks.";
69441
+ function monitorsRunHere({ context }) {
69442
+ const entrypoint = context.environment.inherited.CLAUDE_CODE_ENTRYPOINT;
69443
+ return entrypoint === void 0 || entrypoint === "cli";
69444
+ }
69445
+ function pluginLinesOf({
69446
+ context,
69447
+ registered
69448
+ }) {
69449
+ if (registered === void 0) return [];
69450
+ if (!registered)
69451
+ return ["Claude Code did not take the Laze plugin; the hooks deliver on their own."];
69452
+ if (!monitorsRunHere({ context })) {
69453
+ return [
69454
+ "The Laze plugin is installed in Claude Code. This session runs headless (claude -p), where",
69455
+ "Claude Code starts no plugin monitors, so the hooks deliver here; nothing to type or restart."
69456
+ ];
69457
+ }
69458
+ return [
69459
+ "The Laze plugin is installed in Claude Code: from the next start or resume it delivers too.",
69460
+ LINK_RELOAD_TIP
69461
+ ];
69462
+ }
69441
69463
  function toldPathOf({ context, session }) {
69442
69464
  return statePathOf({ context, kind: "told", profile: `plugin-${sessionKeyOf({ session })}` });
69443
69465
  }
@@ -69454,7 +69476,8 @@ async function reloadTipOnce({
69454
69476
  context,
69455
69477
  session
69456
69478
  }) {
69457
- if (!session || !await pluginRegistered({ context })) return void 0;
69479
+ if (!session || !monitorsRunHere({ context })) return void 0;
69480
+ if (!await pluginRegistered({ context })) return void 0;
69458
69481
  const told = await readFile10(toldPathOf({ context, session }), "utf8").then(
69459
69482
  () => true,
69460
69483
  () => false
@@ -69559,14 +69582,6 @@ async function registerMcp({
69559
69582
  done.abort();
69560
69583
  return code === 0;
69561
69584
  }
69562
- function pluginLinesOf({ plugin: plugin2 }) {
69563
- if (plugin2 === void 0) return [];
69564
- if (!plugin2) return ["Claude Code did not take the Laze plugin; the hooks deliver on their own."];
69565
- return [
69566
- "The Laze plugin is installed in Claude Code: from the next start or resume it delivers too.",
69567
- LINK_RELOAD_TIP
69568
- ];
69569
- }
69570
69585
  function mcpLinesOf({
69571
69586
  mcp: mcp2,
69572
69587
  mcpAdd: mcpAdd2,
@@ -69595,7 +69610,7 @@ function claudeStepsOf({
69595
69610
  "Answer each with",
69596
69611
  ` ${laze} reply <message-id> "<answer>" --profile ${profile}`,
69597
69612
  "Nothing else needs to keep running.",
69598
- ...pluginLinesOf({ plugin: plugin2 }),
69613
+ ...plugin2,
69599
69614
  ...mcpLinesOf({ mcp: mcp2, mcpAdd: mcpAdd2, directory })
69600
69615
  ].join("\n");
69601
69616
  }
@@ -69724,7 +69739,8 @@ async function nextStepsFor({
69724
69739
  }
69725
69740
  const mcp2 = args.flags.mcp ? await registerMcp({ context, directory, profile }) : void 0;
69726
69741
  const mcpAdd2 = mcpAddCommandOf({ context, profile });
69727
- return claudeStepsOf({ profile, laze, directory, mcp: mcp2, mcpAdd: mcpAdd2, plugin: plugin2?.registered });
69742
+ const lines = pluginLinesOf({ context, registered: plugin2?.registered });
69743
+ return claudeStepsOf({ profile, laze, directory, mcp: mcp2, mcpAdd: mcpAdd2, plugin: lines });
69728
69744
  }
69729
69745
  async function reportTranscript({
69730
69746
  client,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
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",