@absolutejs/rag 0.22.10 → 0.22.12

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/CHANGELOG.md CHANGED
@@ -6,6 +6,22 @@ This file is generated by `absolute-changelog` from the entries in
6
6
  `changelog/`. Edit an entry, not this file — and add new ones under
7
7
  `changelog/unreleased/`.
8
8
 
9
+ ## 0.22.12 — 2026-10-29
10
+
11
+ ### Fixed
12
+
13
+ - **Preserve valid reads from oversized research plans while enforcing action limits at runtime** (`createResearch`)
14
+
15
+ ## 0.22.11 — 2026-10-29
16
+
17
+ ### Added
18
+
19
+ - **Expose bounded validationRepairs and server-side onError callbacks for research recovery** (`ResearchConfig`)
20
+
21
+ ### Fixed
22
+
23
+ - **Recover schema-invalid research output with bounded separately admitted corrections and preserve private operation diagnostics** (`createResearch`)
24
+
9
25
  ## 0.22.10 — 2026-10-28
10
26
 
11
27
  ### Fixed
package/RESEARCH.md CHANGED
@@ -44,7 +44,7 @@ const result = await research.run({
44
44
 
45
45
  `authorizeResearchRequest` is your application's authorization function, not an export of this package. It is required. For multiple tenants, pass `runtime: request => runtimeForAuthorizedTenant(request)`; authorization runs first. Scope tenant caches, workflows and budget ledgers to the same resolved identity. The plugin rejects cross-origin browser POSTs and sends `Cache-Control: no-store`. Do not treat a caller-supplied tenant header as identity.
46
46
 
47
- `run` selects server-registered schemas; browsers cannot override models, limits, schemas or credentials. `extract({schema, instructions}, input)` accepts JSON-compatible Elysia 2 `t`, TypeBox 1 (`typebox`), or legacy TypeBox 0.34 (`@sinclair/typebox`) schemas directly, preserving result type inference and runtime validation for trusted server code. The same configured AI provider handles planning, extraction and independent review, with transport retries and schema repair retries disabled.
47
+ `run` selects server-registered schemas; browsers cannot override models, limits, schemas or credentials. `extract({schema, instructions}, input)` accepts JSON-compatible Elysia 2 `t`, TypeBox 1 (`typebox`), or legacy TypeBox 0.34 (`@sinclair/typebox`) schemas directly, preserving result type inference and runtime validation for trusted server code. The same configured AI provider handles planning, extraction and independent review, with transport retries disabled. Schema-invalid extraction and review outputs allow one correction by default (`validationRepairs: 0` disables it; maximum 2). Each correction is a separate operation through admission and settlement, uses the same retrieved evidence and overall deadline, and cannot retry provider/network or accounting failures. Planning retains its evidence-preserving fallback rather than retrying. `onError` supplies phase, run ID, and the original error privately to server-side monitoring; public results contain only safe limitation codes.
48
48
 
49
49
  Default limits are four searches, four page reads, two planning rounds, 90 seconds, 32,000 evidence characters, 4,096 output tokens per model call and 128 primitive output fields. Limits are per research call, not per entire batch. Page reading uses the existing hardened public web transport; optional `render` enables your existing browser service. A browser process is not provisioned automatically. Cancellation must also be honored by custom providers and readers.
50
50
 
package/changelog.json CHANGED
@@ -3,21 +3,52 @@
3
3
  "name": "@absolutejs/rag",
4
4
  "releases": [
5
5
  {
6
- "version": "0.22.10",
7
- "date": "2026-10-28",
8
6
  "changes": [
9
7
  {
10
8
  "kind": "fixed",
11
- "summary": "Preserve complete newly discovered source documents as well as initially searched pages; model excerpt budgets never cap retained source storage.",
9
+ "summary": "Preserve valid reads from oversized research plans while enforcing action limits at runtime",
10
+ "symbols": [
11
+ "createResearch"
12
+ ]
13
+ }
14
+ ],
15
+ "date": "2026-10-29",
16
+ "version": "0.22.12"
17
+ },
18
+ {
19
+ "changes": [
20
+ {
21
+ "kind": "added",
22
+ "summary": "Expose bounded validationRepairs and server-side onError callbacks for research recovery",
23
+ "symbols": [
24
+ "ResearchConfig"
25
+ ]
26
+ },
27
+ {
28
+ "kind": "fixed",
29
+ "summary": "Recover schema-invalid research output with bounded separately admitted corrections and preserve private operation diagnostics",
12
30
  "symbols": [
13
31
  "createResearch"
14
32
  ]
15
33
  }
16
- ]
34
+ ],
35
+ "date": "2026-10-29",
36
+ "version": "0.22.11"
17
37
  },
18
38
  {
19
- "version": "0.22.9",
39
+ "changes": [
40
+ {
41
+ "kind": "fixed",
42
+ "summary": "Preserve complete newly discovered source documents as well as initially searched pages; model excerpt budgets never cap retained source storage.",
43
+ "symbols": [
44
+ "createResearch"
45
+ ]
46
+ }
47
+ ],
20
48
  "date": "2026-10-28",
49
+ "version": "0.22.10"
50
+ },
51
+ {
21
52
  "changes": [
22
53
  {
23
54
  "kind": "fixed",
@@ -31,7 +62,9 @@
31
62
  "createResearch"
32
63
  ]
33
64
  }
34
- ]
65
+ ],
66
+ "date": "2026-10-28",
67
+ "version": "0.22.9"
35
68
  },
36
69
  {
37
70
  "changes": [