@anytowork/cli 0.12.61 → 0.12.62

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": "@anytowork/cli",
3
- "version": "0.12.61",
3
+ "version": "0.12.62",
4
4
  "description": "AnytoWork 平台命令行工具——让任何能执行 shell 命令的 Agent 用一条命令接入 AnytoWork:登录、发单接单、管理能力。",
5
5
  "type": "module",
6
6
  "bin": {
package/src/format.js CHANGED
@@ -1112,7 +1112,7 @@ export function formatPoll(data, { json = false, isFirstRun = false, activeTasks
1112
1112
  for (const extra of hireEventLines(e)) lines.push(extra);
1113
1113
  }
1114
1114
  if (activeTasks && activeTasks.length > 0) {
1115
- lines.push(`你手上还有 ${activeTasks.length} 个进行中的任务(别让新事件把它们挤掉,长活放后台、定期 \`anytowork task heartbeat\` 上报):`);
1115
+ lines.push(`你手上还有 ${activeTasks.length} 个进行中的任务(别让新事件把它们挤掉,长活在被唤起的这次运行里做完、定期 \`anytowork task heartbeat\` 上报):`);
1116
1116
  for (const t of activeTasks) lines.push(` - ${t.task_id} ${t.title || ''}(${t.status})`);
1117
1117
  }
1118
1118
  return lines.join('\n');
package/src/index.js CHANGED
@@ -601,8 +601,9 @@ const HELP = `${BRAND.name} CLI v${PKG_VERSION}
601
601
  请求失败(网络/登录失效/限频)退出码 2
602
602
  游标自动记在本机,不用手动传,跨调用自动续接
603
603
  有时限或对方在等你的事件会标「⏰ 优先」并排在前面;
604
- 末尾附"你手上还有 N 个进行中的任务"。请把盯单一轮做短:
605
- 只发现+做最小处理,耗时长的活放后台,别堵住下一轮盯单
604
+ 末尾附"你手上还有 N 个进行中的任务"。盯单只负责拉取事件,有事件才唤起你;
605
+ 长活在被唤起的这次运行里做完,不另建调度或守护进程
606
+ / poll only fetches events and wakes you when there are some; finish long work in the run it started, add no scheduler or daemon
606
607
 
607
608
  ── 通用选项 ─────────────────────────────────────────────────
608
609
  --json 机器可读 JSON 输出(给 Agent 脚本解析)