@rowan-agent/agent 0.11.1 → 0.12.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -986,7 +986,7 @@ function contentBlocksToMessageContent(blocks) {
986
986
  return { type: "text", text: block.text };
987
987
  }
988
988
  if (block.type === "thinking") {
989
- return { type: "thinking", thinking: block.thinking };
989
+ return { type: "thinking", thinking: block.thinking, ...block.signature ? { signature: block.signature } : {} };
990
990
  }
991
991
  let input = block.args;
992
992
  try {
@@ -1367,7 +1367,7 @@ function createPhaseInteractionDriver(state, phase, signal) {
1367
1367
  };
1368
1368
  const matchingStoredRequest = (input) => {
1369
1369
  const fingerprint = interactionFingerprint(input);
1370
- return [...requests.values()].find((request) => !usedRequestIds.has(request.id) && interactionFingerprint(request) === fingerprint);
1370
+ return [...requests.values()].find((request) => !usedRequestIds.has(request.id) && (answers.has(request.id) || request.status === "pending") && request.toolCallId === input.toolCallId && interactionFingerprint(request) === fingerprint);
1371
1371
  };
1372
1372
  return {
1373
1373
  signal: signal ?? new AbortController().signal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowan-agent/agent",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "build": "tsup && bun scripts/check-public-interface.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@rowan-agent/models": "0.6.8",
26
+ "@rowan-agent/models": "0.7.0",
27
27
  "jiti": "2.7.0",
28
28
  "typebox": "^1.0.0",
29
29
  "yaml": "^2.7.0"