@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 +1 -1
- package/src/format.js +1 -1
- package/src/index.js +3 -2
package/package.json
CHANGED
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}
|
|
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 脚本解析)
|