ax-agents 0.1.8 → 0.1.10

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/ax.js +8 -9
  2. package/package.json +1 -1
package/ax.js CHANGED
@@ -308,7 +308,7 @@ ${progress || "(No progress yet)"}
308
308
  ## Your Task
309
309
  ${userPrompt}
310
310
 
311
- Remember: Work on ONE thing, update ${relProgressPath}, run tests, commit.
311
+ Remember: Work on ONE thing, update ${relProgressPath}, then verify it works.
312
312
  When ALL tasks are complete, output <promise>COMPLETE</promise>`;
313
313
  }
314
314
 
@@ -639,7 +639,7 @@ const RFP_PREAMBLE = `## Guidelines
639
639
  // Note: DO_PREAMBLE is a template - {progressPath} gets replaced at runtime
640
640
  const DO_PREAMBLE = `You are an autonomous coding agent in a loop. Each iteration:
641
641
 
642
- 1. Read {progressPath} to see what's done.
642
+ 1. Read {progressPath} to see what's done (empty means nothing done yet).
643
643
  2. Choose the next task:
644
644
  - Start with trivial/mechanistic work. It banks progress, builds context, and constrains nothing.
645
645
  - Then do foundational work that makes harder problems easier and safer to approach.
@@ -1428,17 +1428,17 @@ function formatClaudeLogEntry(entry) {
1428
1428
  const input = part.input || part.arguments || {};
1429
1429
  let summary;
1430
1430
  if (name === "Bash" && input.command) {
1431
- summary = input.command.slice(0, 50);
1431
+ summary = truncate(input.command, 50);
1432
1432
  } else if (
1433
1433
  name === "Task" &&
1434
1434
  (input.description || input.subagent_type)
1435
1435
  ) {
1436
1436
  // Task tool: show description or subagent type
1437
1437
  summary = input.description || input.subagent_type || "";
1438
- summary = summary.slice(0, 40);
1438
+ summary = truncate(summary, 40);
1439
1439
  } else {
1440
1440
  const target = input.file_path || input.path || input.pattern || "";
1441
- summary = target.split("/").pop() || target.slice(0, 30);
1441
+ summary = target.split("/").pop() || truncate(target, 30);
1442
1442
  }
1443
1443
  output.push({ type: "tool", content: `> ${name}(${summary})` });
1444
1444
  }
@@ -1476,14 +1476,14 @@ function formatCodexLogEntry(entry) {
1476
1476
  try {
1477
1477
  const args = JSON.parse(entry.payload.arguments || "{}");
1478
1478
  if (name === "shell_command" && args.command) {
1479
- summary = args.command.slice(0, 50);
1479
+ summary = truncate(args.command, 50);
1480
1480
  } else if (name === "Task" && (args.description || args.subagent_type)) {
1481
1481
  // Task tool: show description or subagent type
1482
1482
  summary = args.description || args.subagent_type || "";
1483
- summary = summary.slice(0, 40);
1483
+ summary = truncate(summary, 40);
1484
1484
  } else {
1485
1485
  const target = args.file_path || args.path || args.pattern || "";
1486
- summary = target.split("/").pop() || target.slice(0, 30);
1486
+ summary = target.split("/").pop() || truncate(target, 30);
1487
1487
  }
1488
1488
  } catch {
1489
1489
  summary = "...";
@@ -6730,7 +6730,6 @@ async function main() {
6730
6730
  loop: flags.loop,
6731
6731
  reset: flags.reset,
6732
6732
  session: flags.session ? session : null,
6733
- yolo,
6734
6733
  timeoutMs,
6735
6734
  });
6736
6735
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ax-agents",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "A CLI for orchestrating AI coding agents via tmux",
5
5
  "bin": {
6
6
  "ax": "ax.js",