@hmharness/agent 0.5.0 → 0.5.2

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/runner.js +6 -1
  2. package/package.json +5 -5
package/dist/runner.js CHANGED
@@ -202,7 +202,12 @@ export async function runAgentTask(opts) {
202
202
  agentsMd: agentsMd ?? undefined,
203
203
  });
204
204
  await session.user(opts.task);
205
- const approval = opts.approvalAsk ? { ask: opts.approvalAsk } : makeApproval(cfg, opts.yes === true);
205
+ // YOLO fix: when yes=true the caller's approvalAsk (TUI dialog, web remote
206
+ // gate) must NOT override the auto-approve gate - it used to take
207
+ // precedence unconditionally, so /yolo was cosmetic (user-reported).
208
+ const approval = (opts.approvalAsk && !opts.yes)
209
+ ? { ask: opts.approvalAsk }
210
+ : makeApproval(cfg, opts.yes === true);
206
211
  spawnBase.current = {
207
212
  provider: resolveProvider(cfg, 'chat'),
208
213
  ctx,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/agent",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
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,10 +15,10 @@
15
15
  "build": "tsc -p tsconfig.build.json"
16
16
  },
17
17
  "dependencies": {
18
- "@hmharness/kernel": "0.5.0",
19
- "@hmharness/evolution": "0.5.0",
20
- "@hmharness/domain-harmony": "0.5.0",
21
- "@hmharness/domain-ops": "0.5.0"
18
+ "@hmharness/kernel": "0.5.2",
19
+ "@hmharness/evolution": "0.5.2",
20
+ "@hmharness/domain-harmony": "0.5.2",
21
+ "@hmharness/domain-ops": "0.5.2"
22
22
  },
23
23
  "files": [
24
24
  "dist"