hatchee 0.1.6 → 0.1.7

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/cli.mjs +11 -6
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -3943,16 +3943,18 @@ class SpawnedSession {
3943
3943
  sessionId;
3944
3944
  cwd;
3945
3945
  model;
3946
+ effort;
3946
3947
  claudeBin;
3947
3948
  proc = null;
3948
3949
  mode = "edits";
3949
3950
  claudeSessionId = null;
3950
3951
  stopped = false;
3951
- constructor(daemon, sessionId, cwd, model = null, claudeBin = process.env.DROVER_CLAUDE_BIN || "claude") {
3952
+ constructor(daemon, sessionId, cwd, model = null, effort = null, claudeBin = process.env.DROVER_CLAUDE_BIN || "claude") {
3952
3953
  this.daemon = daemon;
3953
3954
  this.sessionId = sessionId;
3954
3955
  this.cwd = cwd;
3955
3956
  this.model = model;
3957
+ this.effort = effort;
3956
3958
  this.claudeBin = claudeBin;
3957
3959
  }
3958
3960
  start(firstTask, mode = "edits") {
@@ -3970,6 +3972,7 @@ class SpawnedSession {
3970
3972
  "--permission-mode",
3971
3973
  PERMISSION_MODE[this.mode] ?? "acceptEdits",
3972
3974
  ...this.model ? ["--model", this.model] : [],
3975
+ ...this.effort ? ["--effort", this.effort] : [],
3973
3976
  ...this.claudeSessionId ? ["--resume", this.claudeSessionId] : []
3974
3977
  ];
3975
3978
  let proc;
@@ -11417,12 +11420,14 @@ var UserMessage = exports_external.object({
11417
11420
  text: exports_external.string()
11418
11421
  });
11419
11422
  var SpawnMode = exports_external.enum(["ask", "edits", "auto", "bypass", "plan"]);
11423
+ var SpawnEffort = exports_external.enum(["low", "medium", "high", "xhigh", "max"]);
11420
11424
  var Spawn = exports_external.object({
11421
11425
  t: exports_external.literal("spawn"),
11422
11426
  task: exports_external.string().default(""),
11423
11427
  cwd: exports_external.string().nullable().default(null),
11424
11428
  mode: SpawnMode.default("edits"),
11425
- model: exports_external.string().nullable().default(null)
11429
+ model: exports_external.string().nullable().default(null),
11430
+ effort: SpawnEffort.nullable().default(null)
11426
11431
  });
11427
11432
  var Stop = exports_external.object({
11428
11433
  t: exports_external.literal("stop"),
@@ -11612,7 +11617,7 @@ class Daemon {
11612
11617
  relayLeave(conn) {
11613
11618
  this.phones.delete(conn);
11614
11619
  }
11615
- async spawnSession(task, cwd, mode = "edits", model = null) {
11620
+ async spawnSession(task, cwd, mode = "edits", model = null, effort = null) {
11616
11621
  const { SpawnedSession: SpawnedSession2 } = await Promise.resolve().then(() => (init_spawn(), exports_spawn));
11617
11622
  const id = `spawn-${crypto.randomUUID()}`;
11618
11623
  const dir = cwd || this.defaultCwd;
@@ -11630,7 +11635,7 @@ class Daemon {
11630
11635
  this.registry.appendLine(id, { text: `❯ ${task}`, color: "me" });
11631
11636
  this.broadcast({ t: "line", sessionId: id, line: { text: `❯ ${task}`, color: "me" } });
11632
11637
  }
11633
- const session = new SpawnedSession2(this, id, dir, model);
11638
+ const session = new SpawnedSession2(this, id, dir, model, effort);
11634
11639
  this.spawned.set(id, session);
11635
11640
  session.start(task, mode);
11636
11641
  }
@@ -11843,7 +11848,7 @@ class Daemon {
11843
11848
  break;
11844
11849
  }
11845
11850
  case "spawn": {
11846
- this.spawnSession(msg.task ?? "", msg.cwd ?? null, msg.mode ?? "edits", msg.model ?? null);
11851
+ this.spawnSession(msg.task ?? "", msg.cwd ?? null, msg.mode ?? "edits", msg.model ?? null, msg.effort ?? null);
11847
11852
  break;
11848
11853
  }
11849
11854
  case "list_dirs":
@@ -12477,7 +12482,7 @@ function uninstallService() {
12477
12482
  }
12478
12483
 
12479
12484
  // src/cli.ts
12480
- var VERSION2 = "0.1.6";
12485
+ var VERSION2 = "0.1.7";
12481
12486
  var cmd = process.argv[2] ?? "help";
12482
12487
  switch (cmd) {
12483
12488
  case "up": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hatchee",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Your coding agents, alive on your iPhone lock screen — Hatchee daemon. Approve Claude Code / Codex from your phone.",
5
5
  "type": "module",
6
6
  "bin": { "hatchee": "dist/cli.mjs" },