dahrk-node 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.
- package/dist/main.js +4 -4
- package/package.json +1 -1
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 ?? "
|
|
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 ?? "
|
|
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 ?? "
|
|
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.
|
|
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"];
|