@hmharness/agent 0.6.1 → 0.6.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.
package/dist/runner.d.ts CHANGED
@@ -89,6 +89,8 @@ export interface AgentTaskOptions {
89
89
  approvalAsk?: LoopApproval['ask'];
90
90
  resumeMessages?: ChatMessage[];
91
91
  events?: RunnerEvents;
92
+ /** AbortSignal: cancels the agent loop at the next turn boundary. */
93
+ signal?: AbortSignal;
92
94
  }
93
95
  /** Run one full agent task end-to-end; audit + insight recording included. */
94
96
  export declare function runAgentTask(opts: AgentTaskOptions): Promise<LoopResult & {
package/dist/runner.js CHANGED
@@ -274,6 +274,7 @@ export async function runAgentTask(opts) {
274
274
  registry: opts.registry,
275
275
  messages,
276
276
  ctx,
277
+ signal: opts.signal,
277
278
  maxTurns: cfg.maxTurns,
278
279
  maxContextChars: cfg.maxContextChars,
279
280
  summarizeContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/agent",
3
- "version": "0.6.1",
3
+ "version": "0.6.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.6.1",
19
- "@hmharness/evolution": "0.6.1",
20
- "@hmharness/domain-harmony": "0.6.1",
21
- "@hmharness/domain-ops": "0.6.1"
18
+ "@hmharness/kernel": "0.6.2",
19
+ "@hmharness/evolution": "0.6.2",
20
+ "@hmharness/domain-harmony": "0.6.2",
21
+ "@hmharness/domain-ops": "0.6.2"
22
22
  },
23
23
  "files": [
24
24
  "dist"