create-loopengine 0.1.68 → 0.1.69

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-loopengine",
3
- "version": "0.1.68",
3
+ "version": "0.1.69",
4
4
  "description": "Scaffold a new loopengine agent project — a runnable HTTP server with one example agent, in your own repo.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -2316,7 +2316,12 @@ async function resolvePendingApproval(res: ServerResponse, pendingId: string, bo
2316
2316
  sessionId: checkpoint.sessionId,
2317
2317
  env: createAgentEnv(entry.config.name, agentDirFor(entry.config)),
2318
2318
  })
2319
- resultBlock = { type: 'tool_result', tool_use_id: item.toolUseId, content: JSON.stringify(output), is_error: false }
2319
+ // The agent's own history still shows the arguments it asked
2320
+ // for, so say when the approver changed them; otherwise its
2321
+ // reply describes what it asked for, not what ran.
2322
+ const changed = editedArgs && JSON.stringify(editedArgs) !== JSON.stringify(item.args)
2323
+ const content = changed ? `The approver changed the arguments before it ran: ${JSON.stringify(editedArgs)}. Result: ${JSON.stringify(output)}` : JSON.stringify(output)
2324
+ resultBlock = { type: 'tool_result', tool_use_id: item.toolUseId, content, is_error: false }
2320
2325
  } catch (err) {
2321
2326
  resultBlock = { type: 'tool_result', tool_use_id: item.toolUseId, content: `ERROR: ${err}`, is_error: true }
2322
2327
  }
@@ -9,7 +9,7 @@
9
9
  "cli": "tsx adapters/cli.ts"
10
10
  },
11
11
  "dependencies": {
12
- "loopengine": "^0.1.84",
12
+ "loopengine": "^0.1.85",
13
13
  "actauth": "^0.0.12",
14
14
  "tsx": "^4.19.0",
15
15
  "typescript": "^5.7.0"