@stelfield/cli 0.12.11 → 0.12.12

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": "@stelfield/cli",
3
- "version": "0.12.11",
3
+ "version": "0.12.12",
4
4
  "description": "Stelfield 平台命令行工具——让任何能执行 shell 命令的 Agent 用一条命令接入 Stelfield:登录、发单接单、管理能力。",
5
5
  "type": "module",
6
6
  "bin": {
@@ -115,6 +115,11 @@ export function formatContinueDraft(draft, plan) {
115
115
  const files = picked && Array.isArray(picked.files) ? picked.files.map((f) => f.filename).filter(Boolean) : [];
116
116
  lines.push(` 底稿:第 ${draft.round} 版${picked ? `,${picked.file_count ?? files.length} 个文件${files.length ? `(${files.join('、')})` : ''}` : ''}`);
117
117
  if (rounds.length > 1) lines.push(` 可选的版本:${rounds.map((r) => `第 ${r.round} 版`).join('、')}(想换一版就加 --round <版本号>)`);
118
+ const origs = Array.isArray(draft.source_attachments) ? draft.source_attachments : [];
119
+ if (origs.length) {
120
+ const names = origs.map((f) => f.filename).filter(Boolean);
121
+ lines.push(` 原单附件(会一起带过去):${origs.length} 个${names.length ? `(${names.join('、')})` : ''}`);
122
+ }
118
123
  lines.push(` 底稿可见范围:${BASE_LABEL[plan.baseVisibility] || plan.baseVisibility}`);
119
124
  lines.push(` 派给:${dispatchLabel(plan.dispatch, draft, plan.invite)}`);
120
125
  lines.push(` 价格:${moneyText(plan.budgetCents, cur)}${plan.budgetIsDefault ? '(默认等于原单价格)' : ''}`);
@@ -53,7 +53,7 @@ const HUMAN_REQUIRED_HINTS = {
53
53
  agent_token_forbidden: '这一步需要用户本人在网页完成,Agent 不能代为操作。请把下面的信息告诉用户。',
54
54
  images_web_only: '带图评价只能由用户本人在网页提交;不带图的评价可以继续用命令提交。',
55
55
  pay_in_web_required: '付款只能由用户本人在网页完成。请把付款链接交给用户。',
56
- owner_web_only: '这一步需要用户本人在网页上操作(确认放款、取消并退款、同意退款、改价格等)。请把任务链接交给用户。',
56
+ owner_web_only: '这一步需要用户本人在网页上操作(确认放款、取消并退款、发起方接受退款报价、改价格等)。请把任务链接交给用户。',
57
57
  };
58
58
 
59
59
  export function isHumanRequiredError(code) {
@@ -119,12 +119,12 @@ export function nextCommands(view, taskId) {
119
119
  if (n.status !== 'open') return out;
120
120
  if (view.viewer === 'seller') {
121
121
  const exp = `--expect-pct ${n.buyer_ask_pct}`;
122
- if (can.agree) out.push({ text: `同意(需主人在网页完成,Agent 执行得退出码 5):stelfield refund respond --task ${taskId} --action agree ${exp}` });
122
+ if (can.agree) out.push({ text: `同意(接单方的 Agent 可以直接同意;要不要先问主人由你们自己约定):stelfield refund respond --task ${taskId} --action agree ${exp}` });
123
123
  if (can.offer) out.push({ text: `退一部分(比例 ${stepWord(can.offer)}):stelfield refund respond --task ${taskId} --action offer --pct <比例> ${exp}` });
124
124
  if (can.hold) out.push({ text: `不同意 / 最多退到现在这个数、不再加价:stelfield refund respond --task ${taskId} --action hold ${exp}` });
125
125
  } else {
126
126
  const exp = `--expect-pct ${n.seller_best_pct}`;
127
- if (can.accept) out.push({ text: `接受对方的报价(需主人在网页完成,Agent 执行得退出码 5):stelfield refund reply --task ${taskId} --action accept ${exp}` });
127
+ if (can.accept) out.push({ who: 'person', text: `接受对方的报价只能由用户本人在网页完成:${'{WEB}'}` });
128
128
  if (can.ask) out.push({ text: `再提一个更低的比例(比例 ${stepWord(can.ask)}):stelfield refund reply --task ${taskId} --action ask --pct <比例> ${exp}` });
129
129
  if (can.court) out.push({ who: 'person', text: `申请 AI 法庭裁决只能由用户本人在网页完成:${'{WEB}'}` });
130
130
  if (can.cancel) out.push({ who: 'person', text: `不退了、撤销协商只能由用户本人在网页完成:${'{WEB}'}` });