dahrk-node 0.1.5 → 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/main.js +4 -4
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -640,7 +640,7 @@ function createClaudeRunner() {
640
640
  maxTurns: MAX_TURNS,
641
641
  includePartialMessages: false
642
642
  };
643
- const exit = ctx.config.exit ?? "gate";
643
+ const exit = ctx.config.exit ?? "either";
644
644
  const wantsTool = exit === "tool" || exit === "either";
645
645
  const mailbox = new ManagedMailbox();
646
646
  const q = query({ prompt: mailbox, options });
@@ -914,7 +914,7 @@ function createCodexRunner() {
914
914
  async runInteractive(ctx, turns, onTrace) {
915
915
  const emit = makeEmit("codex", onTrace);
916
916
  const t = openThread(ctx);
917
- const exit = ctx.config.exit ?? "gate";
917
+ const exit = ctx.config.exit ?? "either";
918
918
  if (exit === "tool" || exit === "either") {
919
919
  process.stderr.write("codex-adapter: interactive tool-exit not supported in M4; using gate exit\n");
920
920
  }
@@ -1163,7 +1163,7 @@ function createPiRunner(deps = {}) {
1163
1163
  const emit = makeEmit("pi", onTrace);
1164
1164
  const s = await openSession(ctx);
1165
1165
  const state = newPiBufferState();
1166
- const exit = ctx.config.exit ?? "gate";
1166
+ const exit = ctx.config.exit ?? "either";
1167
1167
  const wantsTool = exit === "tool" || exit === "either";
1168
1168
  let toolFired = false;
1169
1169
  let toolSummary = null;
@@ -3948,7 +3948,7 @@ var defaultDeps4 = () => ({
3948
3948
  });
3949
3949
 
3950
3950
  // src/main.ts
3951
- var CLIENT_VERSION = "0.1.5";
3951
+ var CLIENT_VERSION = "0.1.7";
3952
3952
  var DEFAULT_HUB_URL = "wss://api.dahrk.ai";
3953
3953
  var list = (v) => (v ?? "").split(",").map((s) => s.trim()).filter(Boolean);
3954
3954
  var RUNTIMES = ["claude-code", "codex", "pi"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dahrk-node",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  "exports": "./dist/main.js",
35
35
  "dependencies": {
36
36
  "@anthropic-ai/claude-agent-sdk": "0.3.183",
37
- "@dahrk/contracts": "^0.1.1",
37
+ "@dahrk/contracts": "^0.1.2",
38
38
  "@openai/codex-sdk": "0.141.0",
39
39
  "ws": "^8.18.0",
40
40
  "zod": "^3.23.8"