@drisp/cli 0.6.10 → 0.6.11
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.
|
@@ -14868,7 +14868,7 @@ async function restoreCheckpoint(store, input) {
|
|
|
14868
14868
|
|
|
14869
14869
|
// ../../modules/runtime/src/software-version.ts
|
|
14870
14870
|
import "fs";
|
|
14871
|
-
var runnerSoftwareVersion = true ? "0.6.
|
|
14871
|
+
var runnerSoftwareVersion = true ? "0.6.11" : JSON.parse(readFileSync2(new URL("../../../apps/cli/package.json", import.meta.url), "utf8")).version;
|
|
14872
14872
|
|
|
14873
14873
|
// ../../modules/runtime/src/connection.ts
|
|
14874
14874
|
var RunnerDisconnectedError = class extends Error {
|
|
@@ -19915,6 +19915,7 @@ var CAP_BY_BOUND = {
|
|
|
19915
19915
|
"handover cap": "handover",
|
|
19916
19916
|
"token budget": "tokens"
|
|
19917
19917
|
};
|
|
19918
|
+
var AGENT_QUESTION = /^agent asked a question with no human attached to answer(?::\s*(.*))?$/s;
|
|
19918
19919
|
function group(match, index) {
|
|
19919
19920
|
return match[index];
|
|
19920
19921
|
}
|
|
@@ -19927,9 +19928,7 @@ function interruptionFromSuspension(stopReason) {
|
|
|
19927
19928
|
const reason = group(blocked, 1)?.trim();
|
|
19928
19929
|
return { kind: "blocked", message, ...reason ? { reason } : {} };
|
|
19929
19930
|
}
|
|
19930
|
-
const question =
|
|
19931
|
-
message
|
|
19932
|
-
);
|
|
19931
|
+
const question = AGENT_QUESTION.exec(message);
|
|
19933
19932
|
if (question) {
|
|
19934
19933
|
const text = group(question, 1)?.trim();
|
|
19935
19934
|
return { kind: "question", message, ...text ? { question: text } : {} };
|
|
@@ -19977,6 +19976,12 @@ function interruptionFromSuspension(stopReason) {
|
|
|
19977
19976
|
}
|
|
19978
19977
|
return { kind: "blocked", message, reason: message };
|
|
19979
19978
|
}
|
|
19979
|
+
function agentQuestion(interruption) {
|
|
19980
|
+
if (interruption.kind !== "question" || interruption.requestId)
|
|
19981
|
+
return void 0;
|
|
19982
|
+
if (!AGENT_QUESTION.test(interruption.message)) return void 0;
|
|
19983
|
+
return interruption.question?.trim() || void 0;
|
|
19984
|
+
}
|
|
19980
19985
|
|
|
19981
19986
|
// ../../modules/runtime/src/session-store.ts
|
|
19982
19987
|
import { resolve as resolve4 } from "path";
|
|
@@ -21482,9 +21487,10 @@ ${prompt2}`;
|
|
|
21482
21487
|
...interruption ? {
|
|
21483
21488
|
interruption: {
|
|
21484
21489
|
kind: interruption.kind === "question" ? interruption.requestId ? "permission" : "question" : "guidance",
|
|
21485
|
-
// A `NEEDS_HUMAN` park says why in the agent's own words
|
|
21486
|
-
// is for its logs, not the person
|
|
21487
|
-
|
|
21490
|
+
// A `NEEDS_HUMAN` park says why in the agent's own words, and a parked question is just the
|
|
21491
|
+
// question (DRI-186); the Runner's stop sentence around them is for its logs, not the person
|
|
21492
|
+
// the Run waits on (apps/macos ADR-0006). Permission requests keep the sentence.
|
|
21493
|
+
message: interruption.kind === "blocked" && interruption.reason || agentQuestion(interruption) || interruption.message,
|
|
21488
21494
|
...interruption.kind === "question" && interruption.requestId ? { requestId: interruption.requestId } : {}
|
|
21489
21495
|
}
|
|
21490
21496
|
} : {}
|
|
@@ -21880,4 +21886,4 @@ export {
|
|
|
21880
21886
|
runMachineRunners,
|
|
21881
21887
|
writeIdentityOnce
|
|
21882
21888
|
};
|
|
21883
|
-
//# sourceMappingURL=chunk-
|
|
21889
|
+
//# sourceMappingURL=chunk-D7QQIZDI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runMachineRunners
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D7QQIZDI.js";
|
|
4
4
|
|
|
5
5
|
// src/app/entry/runnerDaemon.ts
|
|
6
6
|
if (process.argv.includes("--help")) {
|
|
@@ -13,4 +13,4 @@ if (process.argv.includes("--help")) {
|
|
|
13
13
|
process.exitCode = 1;
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-PGMV5I7Y.js.map
|
package/dist/cli.js
CHANGED
package/dist/dashboard-daemon.js
CHANGED
package/dist/runner.js
CHANGED