@hmharness/cli 0.18.11 → 0.18.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.
Files changed (2) hide show
  1. package/dist/main.js +8 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1079,7 +1079,11 @@ flags:
1079
1079
  }
1080
1080
  if (submit) {
1081
1081
  const localJobs = await CF.readLocalFineTuneJobs(home);
1082
- const lastAt = localJobs.length ? new Date(localJobs[localJobs.length - 1].time).getTime() : 0;
1082
+ // cooldown counts real SUBMISSIONS only - a 'staged' row means the last
1083
+ // attempt FAILED before creating a job (files parked, nothing trained),
1084
+ // so it must not block the retry that finally lands (2026-09-27)
1085
+ const lastSubmit = [...localJobs].reverse().find((j) => String(j.status) !== 'staged');
1086
+ const lastAt = lastSubmit ? new Date(lastSubmit.time).getTime() : 0;
1083
1087
  const dueMs = cooldownDays * 86400000;
1084
1088
  if (Date.now() - lastAt < dueMs) {
1085
1089
  stdout.write(DIM(`冷却中(上次提交 ${cooldownDays} 天内)——本次跳过\n`));
@@ -1189,8 +1193,9 @@ flags:
1189
1193
  await CF.recordFineTuneJob(home, { id: 'staged-' + stamp, status: 'staged', model }, { trainFile: upTrain.id, evalFile: upEval?.id, pairs: rows.length, error: msg.slice(0, 200) });
1190
1194
  stdout.write(RED('任务创建失败:' + msg.slice(0, 160) + '\n'));
1191
1195
  if (/参数校验解析异常/.test(msg)) {
1192
- stdout.write(YELLOW('该模型在你账号上的微调权限可能未完全开通(对照:glm-5.3 会返回"微调功能未开放,请联系客服开放")。') + '\n');
1193
- stdout.write(DIM('已上传的 ' + upTrain.id + ' / ' + (upEval?.id ?? '-') + ' 保留在云端并已记录,权限开通后重跑 hmh auto-finetune --submit 无需重新上传。\n'));
1196
+ stdout.write(YELLOW('最常见原因(2026-09-27 实测确认):微调走开放平台按量付费通道,与 GLM Coding Plan 编码套餐互不通用——') + '\n');
1197
+ stdout.write(YELLOW('编码套餐余额再足,开放平台账户没有充值/余额为 0 时,建任务就会在计费环节报这个 500。') + '\n');
1198
+ stdout.write(DIM('解决:到 bigmodel.cn 控制台「财务/账户中心」给开放平台账户充值(glm-4-flash LoRA 约 0.025 元/千 tokens,4000 对×3 轮约 200-250 元),再重跑本命令。已上传文件无需重传。') + '\n');
1194
1199
  }
1195
1200
  else {
1196
1201
  stdout.write(DIM('上传的文件保留在云端可复用:' + upTrain.id + '\n'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/cli",
3
- "version": "0.18.11",
3
+ "version": "0.18.12",
4
4
  "description": "hmharness command line: one-shot tasks, an interactive REPL, a fullscreen TUI, the web frontend, and direct tool invocation.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",