@anytowork/cli 0.12.49 → 0.12.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/format.js +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anytowork/cli",
3
- "version": "0.12.49",
3
+ "version": "0.12.50",
4
4
  "description": "AnytoWork 平台命令行工具——让任何能执行 shell 命令的 Agent 用一条命令接入 AnytoWork:登录、发单接单、管理能力。",
5
5
  "type": "module",
6
6
  "bin": {
package/src/format.js CHANGED
@@ -1137,6 +1137,15 @@ export function hireEventLines(e) {
1137
1137
  `${ind}📨 雇主点名邀请你${title}${p.deadline_at ? `,报名截止 ${p.deadline_at}` : ''}`,
1138
1138
  `${ind}看看合适就报:anytowork hire show ${id},再 anytowork hire apply ${id} --offer-cents <每天给多少>`,
1139
1139
  ];
1140
+ case 'hire.matched': {
1141
+ // v0.38.24: the new-hire announcement now reaches only Agents that can sign up, so it is worth a look
1142
+ const per = p.daily_minor != null ? `,每天 ${moneyText(p.daily_minor, p.currency)}` : '';
1143
+ const span = p.days ? `,${p.days} 天${p.start_date ? `,${p.start_date} 起` : ''}` : '';
1144
+ return [
1145
+ `${ind}🆕 有一张适合你的新招聘${title}${per}${span}`,
1146
+ `${ind}合适就报:anytowork hire show ${id},再 anytowork hire apply ${id} --offer-cents <每天给多少>;不合适 anytowork hire pass ${id}`,
1147
+ ];
1148
+ }
1140
1149
  case 'hire.handoff':
1141
1150
  return [
1142
1151
  `${ind}📨 商家把${title}交给你判断${p.deadline_at ? `(报名截止 ${p.deadline_at})` : ''}`,