@ai-matrx/agents 0.37.0 → 0.38.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +23 -4
  2. package/dist/content-transfer/index.cjs.map +1 -1
  3. package/dist/content-transfer/index.js.map +1 -1
  4. package/dist/content-transfer/react/index.cjs.map +1 -1
  5. package/dist/content-transfer/react/index.js.map +1 -1
  6. package/dist/generated/api-types.cjs.map +1 -1
  7. package/dist/generated/api-types.d.cts +5 -0
  8. package/dist/generated/api-types.d.ts +5 -0
  9. package/dist/index.cjs +49 -7
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +2 -2
  12. package/dist/index.d.ts +2 -2
  13. package/dist/index.js +49 -7
  14. package/dist/index.js.map +1 -1
  15. package/dist/{keys.generated-klzs6I1T.d.cts → keys.generated-DNRbtHNx.d.cts} +4 -4
  16. package/dist/{keys.generated-klzs6I1T.d.ts → keys.generated-DNRbtHNx.d.ts} +4 -4
  17. package/dist/mandates/index.cjs +2 -2
  18. package/dist/mandates/index.cjs.map +1 -1
  19. package/dist/mandates/index.d.cts +2 -2
  20. package/dist/mandates/index.d.ts +2 -2
  21. package/dist/mandates/index.js +2 -2
  22. package/dist/mandates/index.js.map +1 -1
  23. package/dist/matrx/index.cjs +49 -7
  24. package/dist/matrx/index.cjs.map +1 -1
  25. package/dist/matrx/index.d.cts +35 -3
  26. package/dist/matrx/index.d.ts +35 -3
  27. package/dist/matrx/index.js +49 -7
  28. package/dist/matrx/index.js.map +1 -1
  29. package/dist/portable/mcp.cjs.map +1 -1
  30. package/dist/portable/mcp.js.map +1 -1
  31. package/dist/react/index.cjs.map +1 -1
  32. package/dist/react/index.js.map +1 -1
  33. package/generated/api-types.ts +5 -0
  34. package/mandates/snapshots/keys.0.37.1.json +653 -0
  35. package/mandates/snapshots/keys.0.37.2.json +653 -0
  36. package/mandates/snapshots/keys.0.38.0.json +653 -0
  37. package/mandates/snapshots/keys.0.38.1.json +653 -0
  38. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,15 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.38.1
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/matrx-agents/v0.37.1..npm/matrx-agents/v0.38.1 -- apps/shared/matrx-agents`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.38.0
10
+
11
+ - **The raw-`Response` lane joins the one request pipeline** (P9c). `./matrx` `call` gains `sendMatrxRequest(url, init, { signal, timeoutMs })` — any method, any body (a `FormData` upload, bytes), resolves with the raw `Response` whatever its status; its own deadline rejects as `BackendApiError` `request_timeout` (504), a caller abort stays the caller's `AbortError` — and `readMatrxJsonResponse(response)` (JSON, `null` on 204, or the ONE `parseHttpError` classification). An imperative host client (matrx-frontend `lib/python-client`, the chat package's bare-host `apiGet`) now rides these instead of its own `fetch` + deadline + error read.
12
+ - `buildMatrxRequestUrl` query values: an array repeats the key, `null` / `undefined` are omitted, and a path that already carries `?` is appended with `&`. Scalar behaviour is unchanged.
13
+ - Consumer action: route imperative server calls through `sendMatrxRequest` + `readMatrxJsonResponse` / `parseMatrxNdjsonResponse`; delete host copies of the fetch, deadline, query builder and NDJSON line parser.
14
+
15
+ ## 0.37.2
16
+
17
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
18
+ `git diff npm/matrx-agents/v0.37.1..npm/matrx-agents/v0.37.2 -- apps/shared/matrx-agents`).
19
+ No source changes intended and no consumer action required.
20
+
21
+ ## 0.37.1
22
+
23
+ - `./generated/api-types` regenerated from the aidream checkout through the guarded pipeline (5 additive lines). New `scripts/typegen/check-api-types-fresh.mjs` — the hand-edit guard for the generated API pair (DD-128), run by `scripts/generate_types.py --check`.
24
+ - (Shipped in 0.37.0, recorded here: `./message-parts` is built in the generated DTS group — 0.36.0's first publish runs ran out of heap; the 0.36.1 that carried the fix was superseded by 0.37.0 before it published.)
25
+
3
26
  ## 0.37.0
4
27
 
5
28
  - **The request pipeline moves in** (chat package independence P9b — one `callApi`, not two). New `./matrx` module `call`: `buildMatrxRequestUrl`, `buildMatrxRequestBody` (scope injection, UI-only strip, fail-closed body-vs-context organization check), `executeMatrxCall` (JSON or NDJSON over the v2 → v1 fallback; stream callbacks, `consumeStream`, 204 = no data), `parseMatrxNdjsonResponse` (broken body → resumable `StreamTransportError`, with `onEvent` / `onTransportError` hooks), `bareStatusSentence`, `isBareTransportCode`, `honestTransportMessage`, `buildSafeRequestLog`, `redactUrlForRequestLog`, `shouldReportMatrxCallError`, and the types `MatrxCallScope`, `MatrxCallResult`, `MatrxHttpMethod`, `MatrxStreamParse`, `ExecuteMatrxCallRequest`, `ExecuteMatrxCallHooks`.
6
29
  - `normalizeMatrxError` is now THE classifier matrx-frontend's `callApi` used: typed `BackendApiError` / `StreamTransportError` keep their `code` and `details` (as `serverDetail`), and no message is ever a bare status line ("HTTP 503" becomes the status sentence; the status rides `status`). `MatrxCallError` gains `raw?`.
7
30
  - Consumer action: build host request clients on `executeMatrxCall` + `normalizeMatrxError`; supply only base URL, credential/org headers, and diagnostics hooks.
8
31
 
9
- ## 0.36.1
10
-
11
- - Build fix (0.36.0 never reached npm: the publish job's DTS worker ran out of heap). `./message-parts` is now built in the generated group, so the 6.8 MB `generated/api-types` declaration is rolled up by exactly one DTS pass. No API change from 0.36.0.
12
-
13
32
  ## 0.36.0
14
33
 
15
34
  - **`./message-parts`** (chat package independence P15 batch 2): `UserInputPart` — the exact generated user-input union every agent route accepts — and its derived part types (`TextBlock`, `ImageBlock`, `AudioBlock`, `VideoBlock`, `DocumentBlock`, `YouTubeVideoBlock`, the structured input blocks, table/list bookmarks, data refs, `ContentBlock`, `UserInput`). Moved from matrx-frontend chat `agents/types/message-types.ts` + `request.types.ts` so chat and the files feature depend on agents, not on each other. Pure; derived from `./generated/api-types` only.