create-loopengine 0.1.70 → 0.1.71

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.70",
3
+ "version": "0.1.71",
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",
@@ -135,6 +135,7 @@ import {
135
135
  type DecisionOutcome,
136
136
  type MessagingDeps,
137
137
  handleMessagingAction,
138
+ describeChange,
138
139
  openSlackAnswerModal,
139
140
  parseSlackInteraction,
140
141
  replyInSlack,
@@ -2296,8 +2297,10 @@ async function resolvePendingApproval(res: ServerResponse, pendingId: string, bo
2296
2297
  // The agent's own history still shows the arguments it asked
2297
2298
  // for, so say when the approver changed them; otherwise its
2298
2299
  // reply describes what it asked for, not what ran.
2299
- const changed = editedArgs && JSON.stringify(editedArgs) !== JSON.stringify(item.args)
2300
- const content = changed ? `The approver changed the arguments before it ran: ${JSON.stringify(editedArgs)}. Result: ${JSON.stringify(output)}` : JSON.stringify(output)
2300
+ const changes = editedArgs ? describeChange(item.args, editedArgs) : []
2301
+ const content = changes.length
2302
+ ? `A person approved this call after changing its arguments (${changes.join('; ')}). It ran with ${JSON.stringify(editedArgs)}. Result: ${JSON.stringify(output)}`
2303
+ : JSON.stringify(output)
2301
2304
  resultBlock = { type: 'tool_result', tool_use_id: item.toolUseId, content, is_error: false }
2302
2305
  } catch (err) {
2303
2306
  resultBlock = { type: 'tool_result', tool_use_id: item.toolUseId, content: `ERROR: ${err}`, is_error: true }
@@ -9,7 +9,7 @@
9
9
  "cli": "tsx adapters/cli.ts"
10
10
  },
11
11
  "dependencies": {
12
- "loopengine": "^0.1.86",
12
+ "loopengine": "^0.1.88",
13
13
  "actauth": "^0.0.12",
14
14
  "tsx": "^4.19.0",
15
15
  "typescript": "^5.7.0"