@nodii/dev 0.6.38 → 0.6.39

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.
package/dist/core.js CHANGED
@@ -4,7 +4,7 @@ import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
4
4
  import { homedir, platform } from "node:os";
5
5
  import { dirname, join } from "node:path";
6
6
 
7
- export const VERSION = "0.6.38";
7
+ export const VERSION = "0.6.39";
8
8
  export const configPath = () =>
9
9
  process.env.NODII_DEV_CONFIG_PATH ??
10
10
  join(homedir(), ".config/nodii-dev/config.json");
@@ -106,10 +106,15 @@ export function buildRecoveryInvocation(data, { env = process.env, home = homedi
106
106
 
107
107
  function buildInvocation(options, { env = process.env, home = homedir() } = {}) {
108
108
  const { runId, laneKey, runtime, model, cwd, addDirs, profileHome, devConfigPath } = options;
109
+ // A headless lane has nobody to approve a tool call, so it runs in the
110
+ // operator-approved headless lane mode: no permission prompts, under the
111
+ // lane's own profile, with the harness safety hooks as the guard (they
112
+ // still run in this mode). Without it every Bash call, `nodii-dev lane
113
+ // gather` included, is refused "requires approval" (AGENT-HARNESS-43).
109
114
  const args = runtime === "codex"
110
- ? ["exec", "--json", "--cd", cwd, "--model", model, ...addDirs.flatMap((path) => ["--add-dir", path]), "-"]
115
+ ? ["exec", "--json", "--dangerously-bypass-approvals-and-sandbox", "--cd", cwd, "--model", model, ...addDirs.flatMap((path) => ["--add-dir", path]), "-"]
111
116
  // Claude Code refuses --print with stream-json unless --verbose is set.
112
- : ["--print", "--output-format", "stream-json", "--verbose", "--model", model, ...addDirs.flatMap((path) => ["--add-dir", path])];
117
+ : ["--print", "--output-format", "stream-json", "--verbose", "--dangerously-skip-permissions", "--model", model, ...addDirs.flatMap((path) => ["--add-dir", path])];
113
118
  return {
114
119
  command: runtime,
115
120
  args,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodii/dev",
3
- "version": "0.6.38",
3
+ "version": "0.6.39",
4
4
  "description": "Agent CLI for Nodii Dev, reached through the platform edge",
5
5
  "type": "module",
6
6
  "bin": {