@openharness/core 0.4.2 → 0.4.4

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/README.md +2 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -23,10 +23,8 @@ npm install @openharness/core
23
23
  ### Agent (stateless)
24
24
 
25
25
  ```typescript
26
- import { Agent } from "@openharness/core";
26
+ import { Agent, fsTools, bash } from "@openharness/core";
27
27
  import { openai } from "@ai-sdk/openai";
28
- import { fsTools } from "@openharness/core/tools/fs";
29
- import { bash } from "@openharness/core/tools/bash";
30
28
 
31
29
  const agent = new Agent({
32
30
  name: "dev",
@@ -95,7 +93,7 @@ const chat = new Conversation({ runner });
95
93
  export async function POST(req: Request) {
96
94
  const { messages } = await req.json();
97
95
  const input = await extractUserInput(messages);
98
- return chat.toResponse(input);
96
+ return chat.toResponse(input, { signal: req.signal });
99
97
  }
100
98
  ```
101
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openharness/core",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "description": "Building blocks for capable, general-purpose agents",
6
6
  "exports": {