@dougbots/avenor-pi 0.5.2 → 0.6.0
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/index.js +7 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -155,7 +155,7 @@ function helpText(state) {
|
|
|
155
155
|
"home/end jump",
|
|
156
156
|
"esc close"
|
|
157
157
|
];
|
|
158
|
-
if (state.status && isPromptable(state.status, state.snapshot)) actions.unshift("enter send
|
|
158
|
+
if (state.status && isPromptable(state.status, state.snapshot)) actions.unshift("enter interrupt and send", "ctrl-c cancel run");
|
|
159
159
|
else if (isFollowUpable(state.status, state.snapshot)) actions.unshift("enter follow up");
|
|
160
160
|
return actions.join(" · ");
|
|
161
161
|
}
|
|
@@ -319,12 +319,12 @@ var RunInspectorOverlay = class {
|
|
|
319
319
|
const runtimeId = this.state.run.runtimeId ?? this.state.status?.runtime_id ?? this.state.snapshot.identity.runtime_id;
|
|
320
320
|
if (this.state.status && isPromptable(this.state.status, this.state.snapshot) && runtimeId) {
|
|
321
321
|
this.runAction(async () => {
|
|
322
|
-
await this.deps.
|
|
322
|
+
await this.deps.interruptAndPromptRun(this.state.run, runtimeId, text);
|
|
323
323
|
this.state = {
|
|
324
324
|
...this.state,
|
|
325
|
-
actionMessage: clipText(`
|
|
325
|
+
actionMessage: clipText(`Interrupted and sent: ${text}`, ACTION_STATUS_CHARS)
|
|
326
326
|
};
|
|
327
|
-
}, "sending
|
|
327
|
+
}, "interrupting and sending…");
|
|
328
328
|
return;
|
|
329
329
|
}
|
|
330
330
|
if (!isFollowUpable(this.state.status, this.state.snapshot)) return;
|
|
@@ -463,7 +463,7 @@ var RunInspectorOverlay = class {
|
|
|
463
463
|
for (const line of body) lines.push(padLine(line, innerWidth));
|
|
464
464
|
lines.push(horizontal);
|
|
465
465
|
lines.push(...this.input.render(innerWidth).map((line) => truncateToWidth(line, innerWidth)));
|
|
466
|
-
const promptHint = this.state.status && isPromptable(this.state.status, this.state.snapshot) ? "send
|
|
466
|
+
const promptHint = this.state.status && isPromptable(this.state.status, this.state.snapshot) ? "interrupt and send to running/waiting run" : isFollowUpable(this.state.status, this.state.snapshot) ? "start a follow-up run from this transcript" : "read-only view";
|
|
467
467
|
lines.push(truncateToWidth(theme.fg("dim", `${promptHint} · ${helpText(this.state)}`), innerWidth));
|
|
468
468
|
lines.push(horizontal);
|
|
469
469
|
return lines.map((line) => truncateToWidth(line, innerWidth));
|
|
@@ -915,9 +915,9 @@ function createExtension(deps = defaultDeps) {
|
|
|
915
915
|
await client.cancel(runtimeId);
|
|
916
916
|
});
|
|
917
917
|
},
|
|
918
|
-
|
|
918
|
+
interruptAndPromptRun(run, runtimeId, text) {
|
|
919
919
|
return withClient(run, async (client) => {
|
|
920
|
-
await client.
|
|
920
|
+
await client.interruptAndPrompt(runtimeId, text);
|
|
921
921
|
});
|
|
922
922
|
},
|
|
923
923
|
followUpRun(run, text) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dougbots/avenor-pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dev": "tsdown --watch"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@dougbots/avenor-core": "^0.
|
|
38
|
+
"@dougbots/avenor-core": "^0.6.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@earendil-works/pi-coding-agent": "*",
|