@ai-matrx/agents 0.21.45 → 0.23.0
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 +20 -0
- package/dist/catalog/index.cjs +7 -0
- package/dist/catalog/index.cjs.map +1 -1
- package/dist/catalog/index.d.cts +2 -2
- package/dist/catalog/index.d.ts +2 -2
- package/dist/catalog/index.js +7 -0
- package/dist/catalog/index.js.map +1 -1
- package/dist/catalog/native/index.cjs +1 -1
- package/dist/catalog/native/index.cjs.map +1 -1
- package/dist/catalog/native/index.d.cts +2 -2
- package/dist/catalog/native/index.d.ts +2 -2
- package/dist/catalog/native/index.js +1 -1
- package/dist/catalog/native/index.js.map +1 -1
- package/dist/catalog/react/index.cjs +1 -1
- package/dist/catalog/react/index.cjs.map +1 -1
- package/dist/catalog/react/index.d.cts +2 -0
- package/dist/catalog/react/index.d.ts +2 -0
- package/dist/catalog/react/index.js +1 -1
- package/dist/catalog/react/index.js.map +1 -1
- package/dist/content-transfer/index.cjs +33 -33
- 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 +33 -33
- package/dist/content-transfer/index.js.map +1 -1
- package/dist/content-transfer/react/index.cjs +33 -33
- package/dist/content-transfer/react/index.cjs.map +1 -1
- package/dist/content-transfer/react/index.js +33 -33
- package/dist/content-transfer/react/index.js.map +1 -1
- package/dist/index.cjs +326 -131
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +326 -131
- package/dist/index.js.map +1 -1
- package/dist/mandates/index.cjs +2 -2
- package/dist/mandates/index.cjs.map +1 -1
- package/dist/mandates/index.d.cts +4 -4
- package/dist/mandates/index.d.ts +4 -4
- package/dist/mandates/index.js +2 -2
- package/dist/mandates/index.js.map +1 -1
- package/dist/matrx/index.cjs +326 -131
- package/dist/matrx/index.cjs.map +1 -1
- package/dist/matrx/index.d.cts +185 -4
- package/dist/matrx/index.d.ts +185 -4
- package/dist/matrx/index.js +326 -131
- package/dist/matrx/index.js.map +1 -1
- package/dist/{orchestra-PbGGooqJ.d.cts → orchestra-zpGHwOag.d.cts} +9 -0
- package/dist/{orchestra-PbGGooqJ.d.ts → orchestra-zpGHwOag.d.ts} +9 -0
- package/dist/react/index.cjs +41 -41
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +41 -41
- package/dist/react/index.js.map +1 -1
- package/mandates/snapshots/keys.0.21.46.json +652 -0
- package/mandates/snapshots/keys.0.22.0.json +652 -0
- package/mandates/snapshots/keys.0.23.0.json +652 -0
- package/package.json +3 -3
|
@@ -1019,39 +1019,6 @@ async function requestStream(transport, path, options) {
|
|
|
1019
1019
|
return response;
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
|
-
// matrx/run.ts
|
|
1023
|
-
async function streamCall(transport, path, body, options) {
|
|
1024
|
-
const response = await requestStream(transport, path, {
|
|
1025
|
-
method: "POST",
|
|
1026
|
-
// This client IS the streaming path — `stream: true` always, last so a
|
|
1027
|
-
// caller-supplied value can never flip the response off NDJSON.
|
|
1028
|
-
body: { ...body, stream: true },
|
|
1029
|
-
...options.signal ? { signal: options.signal } : {}
|
|
1030
|
-
});
|
|
1031
|
-
return toRunHandle(response, options);
|
|
1032
|
-
}
|
|
1033
|
-
function startMandateRun(transport, mandateKey, request, options = {}) {
|
|
1034
|
-
return streamCall(
|
|
1035
|
-
transport,
|
|
1036
|
-
`/ai/mandates/${encodePathSegment(mandateKey)}`,
|
|
1037
|
-
request,
|
|
1038
|
-
options
|
|
1039
|
-
);
|
|
1040
|
-
}
|
|
1041
|
-
function cancelAgentRun(transport, requestId, options = {}) {
|
|
1042
|
-
const query = buildQuery(
|
|
1043
|
-
options.mode === "interrupt" ? { mode: "interrupt" } : {}
|
|
1044
|
-
);
|
|
1045
|
-
return requestJson(
|
|
1046
|
-
transport,
|
|
1047
|
-
`/ai/cancel/${encodePathSegment(requestId)}${query}`,
|
|
1048
|
-
{
|
|
1049
|
-
method: "POST",
|
|
1050
|
-
...options.signal ? { signal: options.signal } : {}
|
|
1051
|
-
}
|
|
1052
|
-
);
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
1022
|
// stream/sse.ts
|
|
1056
1023
|
var FRAME_SEPARATOR = /\r\n\r\n|\n\n|\r\r/;
|
|
1057
1024
|
var LINE_SEPARATOR = /\r\n|\n|\r/;
|
|
@@ -1250,6 +1217,39 @@ async function rejoinRuntimeOperation(transport, requestId, options = {}) {
|
|
|
1250
1217
|
return toRunHandle(response, options);
|
|
1251
1218
|
}
|
|
1252
1219
|
|
|
1220
|
+
// matrx/run.ts
|
|
1221
|
+
async function streamCall(transport, path, body, options) {
|
|
1222
|
+
const response = await requestStream(transport, path, {
|
|
1223
|
+
method: "POST",
|
|
1224
|
+
// This client IS the streaming path — `stream: true` always, last so a
|
|
1225
|
+
// caller-supplied value can never flip the response off NDJSON.
|
|
1226
|
+
body: { ...body, stream: true },
|
|
1227
|
+
...options.signal ? { signal: options.signal } : {}
|
|
1228
|
+
});
|
|
1229
|
+
return toRunHandle(response, options);
|
|
1230
|
+
}
|
|
1231
|
+
function startMandateRun(transport, mandateKey, request, options = {}) {
|
|
1232
|
+
return streamCall(
|
|
1233
|
+
transport,
|
|
1234
|
+
`/ai/mandates/${encodePathSegment(mandateKey)}`,
|
|
1235
|
+
request,
|
|
1236
|
+
options
|
|
1237
|
+
);
|
|
1238
|
+
}
|
|
1239
|
+
function cancelAgentRun(transport, requestId, options = {}) {
|
|
1240
|
+
const query = buildQuery(
|
|
1241
|
+
options.mode === "interrupt" ? { mode: "interrupt" } : {}
|
|
1242
|
+
);
|
|
1243
|
+
return requestJson(
|
|
1244
|
+
transport,
|
|
1245
|
+
`/ai/cancel/${encodePathSegment(requestId)}${query}`,
|
|
1246
|
+
{
|
|
1247
|
+
method: "POST",
|
|
1248
|
+
...options.signal ? { signal: options.signal } : {}
|
|
1249
|
+
}
|
|
1250
|
+
);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
1253
|
// content-transfer/destination-ports.ts
|
|
1254
1254
|
var success = (message, target) => ({ status: "success", delivered: "action", mimeTypes: [], message, ...target ? { target } : {} });
|
|
1255
1255
|
var active = (bindings, content, expected) => {
|