@livx.cc/agentx 0.99.49 → 0.99.50

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/dist/cli.js CHANGED
@@ -17114,6 +17114,10 @@ async function main() {
17114
17114
  }
17115
17115
  if (args.debug) process.env.DEBUG ||= "*";
17116
17116
  if (args.print && !args.task && !process.stdin.isTTY) args.task = (await readAllStdin()).trim();
17117
+ if (args.print && !args.task) {
17118
+ console.error(red(" -p: empty prompt (no task argument and nothing on stdin)"));
17119
+ process.exit(2);
17120
+ }
17117
17121
  let worktreeCleanup;
17118
17122
  if (args.worktree) {
17119
17123
  const { enterWorktree: enterWorktree2, exitWorktree: exitWorktree2 } = await Promise.resolve().then(() => (init_worktree(), worktree_exports));