@ouispec/agent-worker 0.12.0 → 0.12.1

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/README.md CHANGED
@@ -24,6 +24,8 @@ Optional tuning, with its defaults:
24
24
  - `turnDeadlineMs`: 14 min (keep it below your host's own limit)
25
25
  - `retries`: 3
26
26
 
27
+ A host that fits its stored history loads `@ouispec/agent-worker/history` (`answerWithoutState`): a module with no runtime imports, which also answers a CommonJS resolver.
28
+
27
29
  Policy hooks: `turnPolicy`, `toolPolicy`, `uiActions`, `approvals`, `stops`, `logger`.
28
30
 
29
31
  ## What a UI client sends with a turn
@@ -0,0 +1,9 @@
1
+ /**
2
+ * For a host that fits its stored history before a turn (`@ouispec/agent-worker/history`).
3
+ *
4
+ * A module of its own, with nothing the turn runtime needs: a host's history
5
+ * code, and its tests, load this without loading the model SDK. It also answers
6
+ * a CommonJS resolver (`default`), which the package's other entries do not.
7
+ */
8
+ export { answerWithoutState, STATE_AT_END } from './ui/page-state-at-end.js';
9
+ //# sourceMappingURL=history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../src/history.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * For a host that fits its stored history before a turn (`@ouispec/agent-worker/history`).
3
+ *
4
+ * A module of its own, with nothing the turn runtime needs: a host's history
5
+ * code, and its tests, load this without loading the model SDK. It also answers
6
+ * a CommonJS resolver (`default`), which the package's other entries do not.
7
+ */
8
+ export { answerWithoutState, STATE_AT_END } from './ui/page-state-at-end.js';
9
+ //# sourceMappingURL=history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.js","sourceRoot":"","sources":["../src/history.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouispec/agent-worker",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "The agent runtime — any `ai` model, UI actions answered by the client, streaming and tool loops; one core on Lambda + SQS or in a container",
5
5
  "homepage": "https://github.com/wesreid/oui/tree/main/packages/agent-worker#readme",
6
6
  "bugs": {
@@ -35,6 +35,11 @@
35
35
  "./testing": {
36
36
  "types": "./dist/testing/index.d.ts",
37
37
  "import": "./dist/testing/index.js"
38
+ },
39
+ "./history": {
40
+ "types": "./dist/history.d.ts",
41
+ "import": "./dist/history.js",
42
+ "default": "./dist/history.js"
38
43
  }
39
44
  },
40
45
  "files": [
@@ -47,9 +52,9 @@
47
52
  "ajv-formats": "^3.0.1",
48
53
  "yaml": "^2.7.0",
49
54
  "@ouispec/agent-core": "^0.10.0",
50
- "@ouispec/bindings": "^0.4.0",
51
55
  "oui-spec": "^0.11.0",
52
- "@ouispec/agent-events": "^0.8.0"
56
+ "@ouispec/agent-events": "^0.8.0",
57
+ "@ouispec/bindings": "^0.4.0"
53
58
  },
54
59
  "devDependencies": {
55
60
  "@ai-sdk/amazon-bedrock": "^5.0.50",