@rowan-agent/agent 0.16.1 → 0.16.2

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 +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -738,8 +738,8 @@ function createReadTool(context) {
738
738
  [truncated]` : formatted;
739
739
  const archivePath = await spillResult(context, "read", fullFormatted);
740
740
  content += `
741
- Full result: ${archivePath}
742
- Offset: 0`;
741
+
742
+ [Full result: ${archivePath}, offset 0]`;
743
743
  if (lineTruncated) {
744
744
  content += `
745
745
  Showing lines ${requestedOffset}-${selectedLineEnd} of ${sourceLines.length}. Use offset=${selectedLineEnd + 1} to continue.`;
@@ -896,8 +896,8 @@ function createBashTool(context) {
896
896
  [truncated]` : output;
897
897
  const archivePath = await spillResult(context, "bash", output);
898
898
  content += `
899
- Full result: ${archivePath}
900
- Offset: 0`;
899
+
900
+ [Full result: ${archivePath}, offset 0]`;
901
901
  return toolResult({
902
902
  context: toolContext,
903
903
  toolName: "bash",
@@ -6576,7 +6576,7 @@ async function spillLargeToolResult(result, archiveDir, toolName) {
6576
6576
  const serialized = typeof result.content === "string" ? result.content : JSON.stringify(result.content, null, 2);
6577
6577
  if (serialized === void 0) return result;
6578
6578
  const bytes = new TextEncoder().encode(serialized);
6579
- if (bytes.byteLength <= MAX_INLINE_TOOL_RESULT_BYTES || /\nFull result:\s+\S+/.test(serialized)) {
6579
+ if (bytes.byteLength <= MAX_INLINE_TOOL_RESULT_BYTES || /(?:\[Full result:\s+[^\]]+\]|\nFull result:\s+\S+)/.test(serialized)) {
6580
6580
  return result;
6581
6581
  }
6582
6582
  const toolDir = archiveDir;
@@ -6591,8 +6591,8 @@ async function spillLargeToolResult(result, archiveDir, toolName) {
6591
6591
  ...result,
6592
6592
  content: `${preview}
6593
6593
  [truncated]
6594
- Full result: ${path}
6595
- Offset: 0`
6594
+
6595
+ [Full result: ${path}, offset 0]`
6596
6596
  };
6597
6597
  }
6598
6598
  var AgentRuntime = class _AgentRuntime {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowan-agent/agent",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",