@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Plain Agent
2
2
 
3
3
  [![CodeQL](https://github.com/iinm/plain-agent/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/iinm/plain-agent/actions/workflows/github-code-scanning/codeql)
4
- [![Socket Badge](https://badge.socket.dev/npm/package/@iinm/plain-agent/1.13.0)](https://socket.dev/npm/package/@iinm/plain-agent)
4
+ [![Socket Badge](https://badge.socket.dev/npm/package/@iinm/plain-agent/1.13.1)](https://socket.dev/npm/package/@iinm/plain-agent)
5
5
  [![install size](https://packagephobia.com/badge?p=@iinm/plain-agent)](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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iinm/plain-agent",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "A lightweight terminal-based coding agent focused on safety and low token cost",
5
5
  "license": "MIT",
6
6
  "type": "module",
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) {
@@ -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. Finishing current tool...\nPress Ctrl-D twice to exit.\n",
191
+ "\n\n⚠️ Ctrl-C: Auto-approve paused.\nPress Ctrl-D twice to exit.\n",
192
192
  ),
193
193
  );
194
194
  return;