@iinm/plain-agent 1.13.0 → 1.13.1
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/README.md +1 -1
- package/package.json +1 -1
- package/src/agentLoop.mjs +7 -0
- package/src/cli/interactive.mjs +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Plain Agent
|
|
2
2
|
|
|
3
3
|
[](https://github.com/iinm/plain-agent/actions/workflows/github-code-scanning/codeql)
|
|
4
|
-
[](https://socket.dev/npm/package/@iinm/plain-agent)
|
|
5
5
|
[](https://packagephobia.com/result?p=@iinm/plain-agent)
|
|
6
6
|
|
|
7
7
|
A lightweight terminal-based coding agent focused on safety and low token cost
|
package/package.json
CHANGED
package/src/agentLoop.mjs
CHANGED
|
@@ -206,6 +206,13 @@ export function createAgentLoop({
|
|
|
206
206
|
break;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
// Ctrl-C during model call: skip execution and ask for approval
|
|
210
|
+
if (pauseSignal.isPaused()) {
|
|
211
|
+
pauseSignal.reset();
|
|
212
|
+
agentEventEmitter.emit("toolUseRequest", toolUseParts.length);
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
|
|
209
216
|
const executionResult = await toolExecutor.executeBatch(toolUseParts);
|
|
210
217
|
|
|
211
218
|
if (!executionResult.success) {
|
package/src/cli/interactive.mjs
CHANGED
|
@@ -188,7 +188,7 @@ export function startInteractiveSession({
|
|
|
188
188
|
console.error(
|
|
189
189
|
styleText(
|
|
190
190
|
"yellow",
|
|
191
|
-
"\n\n⚠️ Ctrl-C: Auto-approve paused
|
|
191
|
+
"\n\n⚠️ Ctrl-C: Auto-approve paused.\nPress Ctrl-D twice to exit.\n",
|
|
192
192
|
),
|
|
193
193
|
);
|
|
194
194
|
return;
|