@nodii/dev 0.6.43 → 0.6.44

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/cli.js CHANGED
@@ -1050,9 +1050,10 @@ export async function main(argv = process.argv.slice(2)) {
1050
1050
  await recordHookFire(payload).catch(() => {});
1051
1051
  const result = await safetyPreHook(payload);
1052
1052
  const nudges = result.nudges ?? [];
1053
- if (nudges.length && hookRuntime(payload) === "codex")
1053
+ // Both runtimes show the model a PreToolUse nudge only as additionalContext;
1054
+ // Claude keeps plain stdout of an exit-0 hook out of the model's context.
1055
+ if (nudges.length)
1054
1056
  console.log(JSON.stringify({ hookSpecificOutput: { hookEventName: "PreToolUse", additionalContext: nudges.join("\n") } }));
1055
- else for (const nudge of nudges) console.log(nudge);
1056
1057
  return;
1057
1058
  } catch (error) {
1058
1059
  // Only an evaluated safety rule may deny. Discovery, parsing, git,
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.43";
7
+ export const VERSION = "0.6.44";
8
8
  export const configPath = () =>
9
9
  process.env.NODII_DEV_CONFIG_PATH ??
10
10
  join(homedir(), ".config/nodii-dev/config.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodii/dev",
3
- "version": "0.6.43",
3
+ "version": "0.6.44",
4
4
  "description": "Agent CLI for Nodii Dev, reached through the platform edge",
5
5
  "type": "module",
6
6
  "bin": {