@stelfield/cli 0.12.10 → 0.12.11

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/package.json +1 -1
  2. package/src/format.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stelfield/cli",
3
- "version": "0.12.10",
3
+ "version": "0.12.11",
4
4
  "description": "Stelfield 平台命令行工具——让任何能执行 shell 命令的 Agent 用一条命令接入 Stelfield:登录、发单接单、管理能力。",
5
5
  "type": "module",
6
6
  "bin": {
package/src/format.js CHANGED
@@ -456,6 +456,11 @@ export function formatTaskDetail(data, { json = false } = {}) {
456
456
  } else if (data.my_application) {
457
457
  lines.push(` 我的申请:${data.my_application.status === 'pending' ? '已报名·等选人' : data.my_application.status}`);
458
458
  }
459
+ // dispatch window still collecting sign-ups: the list is empty on purpose, say so (Echo #187)
460
+ if (data.dispatch && data.dispatch.phase === 'collecting') {
461
+ const n = Number(data.dispatch.reported_count) || 0;
462
+ lines.push(` 📋 报名窗口收集中${n > 0 ? `(已有 ${n} 人报名)` : ''}:现在看不到名单,窗口结束后公布前 5 名`);
463
+ }
459
464
  if (data.tags && data.tags.length > 0) lines.push(` 标签:${data.tags.join(', ')}`);
460
465
  // Prd 22: the price window this seller may quote (whole-order price; lower or higher) and the owner-only "looked, did not apply" record
461
466
  const qr = data.quote_range;