@lazehq/cli 0.1.20 → 0.1.21

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 -5
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -35620,7 +35620,7 @@ function flagText({
35620
35620
  }
35621
35621
 
35622
35622
  // src/rules/cli-version.rules.ts
35623
- var STAMPED = "0.1.20";
35623
+ var STAMPED = "0.1.21";
35624
35624
  function cliVersionOf({ stamped = STAMPED } = {}) {
35625
35625
  return stamped.startsWith("__") ? "dev" : stamped;
35626
35626
  }
@@ -67482,7 +67482,9 @@ import { readFile as readFile6, rm as rm2, writeFile as writeFile5, mkdir as mkd
67482
67482
  import { dirname as dirname5 } from "node:path";
67483
67483
 
67484
67484
  // src/rules/rush-host.rules.ts
67485
- function rushSessionOf({ parentArgs }) {
67485
+ function rushSessionOf({
67486
+ parentArgs
67487
+ }) {
67486
67488
  if (!parentArgs) return void 0;
67487
67489
  const [program = "", verb, action, id] = parentArgs;
67488
67490
  const isRush = program === "rush" || program.endsWith("/rush");
@@ -68769,9 +68771,10 @@ async function queueInCodex({
68769
68771
  text: text2
68770
68772
  }) {
68771
68773
  let stderr2 = "";
68774
+ const queue = ["codex", "queue", "--thread", delivery.threadId, "--message", text2];
68772
68775
  const code = await context.runCommand({
68773
- command: ["codex", "queue", "--thread", delivery.threadId, "--message", text2],
68774
- env: { CODEX_HOME: delivery.codexHome },
68776
+ command: delivery.rush ? rushSendCommand(delivery.rush) : queue,
68777
+ env: delivery.rush ? { LAZE_WAKE_TEXT: text2 } : { CODEX_HOME: delivery.codexHome },
68775
68778
  stderr: {
68776
68779
  write: (chunk) => {
68777
68780
  stderr2 += chunk;
@@ -69190,6 +69193,20 @@ async function connectService({ context, args }) {
69190
69193
  }
69191
69194
  }
69192
69195
 
69196
+ // src/services/rush-host.service.ts
69197
+ async function rushAboveOf({
69198
+ context,
69199
+ from = context.processes.pid
69200
+ }) {
69201
+ let pid = await context.processes.parentOf(from);
69202
+ for (let depth = 0; pid !== void 0 && pid > 1 && depth < 16; depth += 1) {
69203
+ const rush = rushSessionOf({ parentArgs: await context.processes.argsOf(pid) });
69204
+ if (rush) return rush;
69205
+ pid = await context.processes.parentOf(pid);
69206
+ }
69207
+ return void 0;
69208
+ }
69209
+
69193
69210
  // src/services/codex-link.service.ts
69194
69211
  var ROLLOUTS_READ = 200;
69195
69212
  async function firstLineOf({ path }) {
@@ -69258,6 +69275,7 @@ async function linkCodexSession({
69258
69275
  return startAdoptInBackground({ context, args, profile, laze });
69259
69276
  }
69260
69277
  await stopAdopt({ context, profile });
69278
+ const rush = await rushAboveOf({ context });
69261
69279
  await context.store.setDelivery({
69262
69280
  name: profile,
69263
69281
  delivery: {
@@ -69265,7 +69283,8 @@ async function linkCodexSession({
69265
69283
  threadId,
69266
69284
  codexHome: context.environment.codexHome,
69267
69285
  cwd: directory,
69268
- linkedAt: context.nowMs()
69286
+ linkedAt: context.nowMs(),
69287
+ ...rush ? { rush } : {}
69269
69288
  }
69270
69289
  });
69271
69290
  const service = await installConnectService({ context });
@@ -79563,6 +79582,7 @@ var feedTrpc = defineTrpcContract("feed").query("channelItems").withInput(extern
79563
79582
  var feedUi = uiTokens("feed");
79564
79583
  var FeedNavSlot = feedUi.component("nav");
79565
79584
  var FeedChannelCardSlot = feedUi.component("channel-card");
79585
+ var FeedSearchSlot = feedUi.component("search");
79566
79586
 
79567
79587
  // ../../modules/feed/contract/src/feed.events.ts
79568
79588
  var byKind = external_exports.enum(["agent", "person", "system"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
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",