@hmharness/agent 0.23.8 → 0.23.10

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/dist/i18n.d.ts CHANGED
@@ -43,6 +43,12 @@ export interface Strings {
43
43
  viewingNote: string;
44
44
  tuiNeedsTty: string;
45
45
  tuiWelcome: (model: string) => string;
46
+ /** queue circuit breaker (TUI): a permanent provider auth/balance error
47
+ * (HTTP 401/402/403) holds the remaining queue instead of draining it */
48
+ tuiQueueHeld: (waiting: number) => string;
49
+ /** crash-recall notice (TUI startup): the previous process died with a
50
+ * task in flight or tasks queued; the rollout audit survives in /resume */
51
+ tuiPendingNote: (task: string, queued: number) => string;
46
52
  tuiApproval: string;
47
53
  tuiApprove: string;
48
54
  tuiDeny: string;
package/dist/i18n.js CHANGED
@@ -36,6 +36,8 @@ const zh = {
36
36
  viewingNote: '正在查看历史会话',
37
37
  tuiNeedsTty: 'hmh tui 需要交互终端(raw mode)。非交互环境请用:hmh "任务"(一次性)或 hmh web(浏览器)。',
38
38
  tuiWelcome: (model) => `hmh tui · ${model} · 输入 / 查看命令 · 直接输入任务回车运行`,
39
+ tuiQueueHeld: (waiting) => `⛔ 厂商认证/余额错误(HTTP 401/402/403)——队列暂停,保留 ${waiting} 个任务未执行。修复密钥/余额或 /model 换路由后重新提交即可。`,
40
+ tuiPendingNote: (task, queued) => `⟲ 上次异常退出时有未完成任务: "${task}"${queued > 0 ? `(另有 ${queued} 个排队)` : ''}。对话审计可用 /resume 续接;重发可直接输入该任务。`,
39
41
  tuiApproval: '⚠ 审批',
40
42
  tuiApprove: '批准',
41
43
  tuiDeny: '拒绝',
@@ -188,6 +190,8 @@ const en = {
188
190
  viewingNote: 'viewing a past session',
189
191
  tuiNeedsTty: 'hmh tui needs an interactive terminal (raw mode). Non-interactive: use hmh "task" (one-shot) or hmh web (browser).',
190
192
  tuiWelcome: (model) => `hmh tui · ${model} · type / for commands · type a task and press Enter to run`,
193
+ tuiQueueHeld: (waiting) => `⛔ provider auth/balance error (HTTP 401/402/403) - queue PAUSED, ${waiting} task(s) held. Fix the key/balance or /model to switch route, then resubmit.`,
194
+ tuiPendingNote: (task, queued) => `⟲ the previous session died with work pending: "${task}"${queued > 0 ? ` (+${queued} queued)` : ''}. Audit/continue via /resume; resubmit by retyping the task.`,
191
195
  tuiApproval: '⚠ approval',
192
196
  tuiApprove: 'Approve',
193
197
  tuiDeny: 'Deny',
package/dist/runner.js CHANGED
@@ -433,7 +433,7 @@ export async function runAgentTask(opts) {
433
433
  // write drains - awaiting first made model.responded land AFTER
434
434
  // run.completed in the timeline
435
435
  traj.emit('model.responded', 'agent', { contentChars: m.content?.length ?? 0, toolCalls: m.tool_calls?.length ?? 0 });
436
- await session.assistant(m.content ?? null, m.tool_calls);
436
+ await session.assistant(m.content ?? null, m.tool_calls, chatProvider.model);
437
437
  },
438
438
  },
439
439
  }).catch((err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/agent",
3
- "version": "0.23.8",
3
+ "version": "0.23.10",
4
4
  "description": "hmharness agent execution layer: base tools, system prompt, sub-agent spawn, and the shared task runner that frontends (cli, web) drive.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -15,13 +15,13 @@
15
15
  "build": "tsc -p tsconfig.build.json"
16
16
  },
17
17
  "dependencies": {
18
- "@hmharness/cognitive": "0.23.7",
19
- "@hmharness/domain-harmony": "0.23.7",
20
- "@hmharness/domain-ops": "0.23.7",
21
- "@hmharness/evolution": "0.23.7",
22
- "@hmharness/kernel": "0.23.7",
23
- "@hmharness/observability": "0.23.7",
24
- "@hmharness/sandbox": "0.23.7"
18
+ "@hmharness/cognitive": "0.23.10",
19
+ "@hmharness/domain-harmony": "0.23.10",
20
+ "@hmharness/domain-ops": "0.23.10",
21
+ "@hmharness/evolution": "0.23.10",
22
+ "@hmharness/kernel": "0.23.10",
23
+ "@hmharness/observability": "0.23.10",
24
+ "@hmharness/sandbox": "0.23.10"
25
25
  },
26
26
  "files": [
27
27
  "dist"