@ai-matrx/agents 0.36.0 → 0.37.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/CHANGELOG.md +11 -0
- package/dist/content-transfer/index.cjs +12 -12
- package/dist/content-transfer/index.cjs.map +1 -1
- package/dist/content-transfer/index.d.cts +1 -1
- package/dist/content-transfer/index.d.ts +1 -1
- package/dist/content-transfer/index.js +12 -12
- package/dist/content-transfer/index.js.map +1 -1
- package/dist/content-transfer/react/index.cjs +12 -12
- package/dist/content-transfer/react/index.cjs.map +1 -1
- package/dist/content-transfer/react/index.d.cts +1 -1
- package/dist/content-transfer/react/index.d.ts +1 -1
- package/dist/content-transfer/react/index.js +12 -12
- package/dist/content-transfer/react/index.js.map +1 -1
- package/dist/generated/api-types.cjs.map +1 -1
- package/dist/generated/api-types.d.cts +5 -0
- package/dist/generated/api-types.d.ts +5 -0
- package/dist/index.cjs +1458 -1220
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1461 -1223
- package/dist/index.js.map +1 -1
- package/dist/{keys.generated-DCtN66RS.d.cts → keys.generated-DL-5LCNz.d.cts} +4 -4
- package/dist/{keys.generated-DCtN66RS.d.ts → keys.generated-DL-5LCNz.d.ts} +4 -4
- package/dist/mandates/index.cjs +2 -2
- package/dist/mandates/index.cjs.map +1 -1
- package/dist/mandates/index.d.cts +2 -2
- package/dist/mandates/index.d.ts +2 -2
- package/dist/mandates/index.js +2 -2
- package/dist/mandates/index.js.map +1 -1
- package/dist/matrx/index.cjs +1721 -1483
- package/dist/matrx/index.cjs.map +1 -1
- package/dist/matrx/index.d.cts +376 -211
- package/dist/matrx/index.d.ts +376 -211
- package/dist/matrx/index.js +1724 -1486
- package/dist/matrx/index.js.map +1 -1
- package/dist/message-parts/index.d.cts +1 -100929
- package/dist/message-parts/index.d.ts +1 -100929
- package/dist/portable/mcp.cjs +99 -11
- package/dist/portable/mcp.cjs.map +1 -1
- package/dist/portable/mcp.js +99 -11
- package/dist/portable/mcp.js.map +1 -1
- package/dist/react/index.cjs +145 -57
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +3 -1
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.js +145 -57
- package/dist/react/index.js.map +1 -1
- package/generated/api-types.ts +5 -0
- package/mandates/snapshots/keys.0.37.0.json +653 -0
- package/mandates/snapshots/keys.0.37.1.json +653 -0
- package/package.json +4 -4
- package/dist/{operations-BT5kKMHl.d.cts → operations-DqOe2zob.d.cts} +34 -34
- package/dist/{operations-BT5kKMHl.d.ts → operations-DqOe2zob.d.ts} +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.37.1
|
|
4
|
+
|
|
5
|
+
- `./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`.
|
|
6
|
+
- (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.)
|
|
7
|
+
|
|
8
|
+
## 0.37.0
|
|
9
|
+
|
|
10
|
+
- **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`.
|
|
11
|
+
- `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?`.
|
|
12
|
+
- Consumer action: build host request clients on `executeMatrxCall` + `normalizeMatrxError`; supply only base URL, credential/org headers, and diagnostics hooks.
|
|
13
|
+
|
|
3
14
|
## 0.36.0
|
|
4
15
|
|
|
5
16
|
- **`./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.
|
|
@@ -709,18 +709,6 @@ function extractMatrxErrorCode(serverDetail) {
|
|
|
709
709
|
return null;
|
|
710
710
|
}
|
|
711
711
|
|
|
712
|
-
// matrx/conversation.ts
|
|
713
|
-
function mintMatrxConversationId() {
|
|
714
|
-
return crypto.randomUUID();
|
|
715
|
-
}
|
|
716
|
-
function newStoredConversationStart(conversationId) {
|
|
717
|
-
return {
|
|
718
|
-
conversation_id: conversationId ?? mintMatrxConversationId(),
|
|
719
|
-
is_new: true,
|
|
720
|
-
store: true
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
|
-
|
|
724
712
|
// stream/ndjson.ts
|
|
725
713
|
var DEFAULT_MATRX_NDJSON_READ_AHEAD = 64;
|
|
726
714
|
function isRecord2(value) {
|
|
@@ -941,6 +929,18 @@ async function* readMatrxNdjsonStream(body, options = {}) {
|
|
|
941
929
|
}
|
|
942
930
|
}
|
|
943
931
|
|
|
932
|
+
// matrx/conversation.ts
|
|
933
|
+
function mintMatrxConversationId() {
|
|
934
|
+
return crypto.randomUUID();
|
|
935
|
+
}
|
|
936
|
+
function newStoredConversationStart(conversationId) {
|
|
937
|
+
return {
|
|
938
|
+
conversation_id: conversationId ?? mintMatrxConversationId(),
|
|
939
|
+
is_new: true,
|
|
940
|
+
store: true
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
|
|
944
944
|
// matrx/internal.ts
|
|
945
945
|
function encodePathSegment(value) {
|
|
946
946
|
return encodeURIComponent(value);
|