@lazehq/cli 0.1.0 → 0.1.1

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 +13 -1
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -3895,7 +3895,7 @@ function flagText({
3895
3895
  }
3896
3896
 
3897
3897
  // src/rules/cli-version.rules.ts
3898
- var STAMPED = "0.1.0";
3898
+ var STAMPED = "0.1.1";
3899
3899
  function cliVersionOf({ stamped = STAMPED } = {}) {
3900
3900
  return stamped.startsWith("__") ? "dev" : stamped;
3901
3901
  }
@@ -28113,6 +28113,12 @@ async function signedGhArgs({
28113
28113
  }
28114
28114
  return out;
28115
28115
  }
28116
+ var LOCAL_COMMANDS = /* @__PURE__ */ new Set(["--version", "version", "help", "--help", "-h", "completion"]);
28117
+ function isLocalGhCall(args) {
28118
+ const [first] = args;
28119
+ if (first === void 0 || LOCAL_COMMANDS.has(first)) return true;
28120
+ return args.includes("--help");
28121
+ }
28116
28122
 
28117
28123
  // src/services/github-commands.service.ts
28118
28124
  var REAL_GH = "/usr/bin/gh";
@@ -28137,6 +28143,12 @@ async function githubGh({
28137
28143
  args
28138
28144
  }) {
28139
28145
  const env = context.environment.inherited;
28146
+ if (isLocalGhCall(args.rest)) {
28147
+ return context.runCommand({
28148
+ command: [REAL_GH, ...args.rest],
28149
+ env: { GH_PROMPT_DISABLED: "1", GH_NO_UPDATE_NOTIFIER: "1" }
28150
+ });
28151
+ }
28140
28152
  const credential = await credentialOf({ env });
28141
28153
  const { profile } = await signedIn({ context, args: { ...args, flags: {} } });
28142
28154
  const ghArgs = await signedGhArgs({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
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",