@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.
Files changed (57) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/catalog/index.cjs +7 -0
  3. package/dist/catalog/index.cjs.map +1 -1
  4. package/dist/catalog/index.d.cts +2 -2
  5. package/dist/catalog/index.d.ts +2 -2
  6. package/dist/catalog/index.js +7 -0
  7. package/dist/catalog/index.js.map +1 -1
  8. package/dist/catalog/native/index.cjs +1 -1
  9. package/dist/catalog/native/index.cjs.map +1 -1
  10. package/dist/catalog/native/index.d.cts +2 -2
  11. package/dist/catalog/native/index.d.ts +2 -2
  12. package/dist/catalog/native/index.js +1 -1
  13. package/dist/catalog/native/index.js.map +1 -1
  14. package/dist/catalog/react/index.cjs +1 -1
  15. package/dist/catalog/react/index.cjs.map +1 -1
  16. package/dist/catalog/react/index.d.cts +2 -0
  17. package/dist/catalog/react/index.d.ts +2 -0
  18. package/dist/catalog/react/index.js +1 -1
  19. package/dist/catalog/react/index.js.map +1 -1
  20. package/dist/content-transfer/index.cjs +33 -33
  21. package/dist/content-transfer/index.cjs.map +1 -1
  22. package/dist/content-transfer/index.d.cts +1 -1
  23. package/dist/content-transfer/index.d.ts +1 -1
  24. package/dist/content-transfer/index.js +33 -33
  25. package/dist/content-transfer/index.js.map +1 -1
  26. package/dist/content-transfer/react/index.cjs +33 -33
  27. package/dist/content-transfer/react/index.cjs.map +1 -1
  28. package/dist/content-transfer/react/index.js +33 -33
  29. package/dist/content-transfer/react/index.js.map +1 -1
  30. package/dist/index.cjs +326 -131
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.cts +1 -1
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.js +326 -131
  35. package/dist/index.js.map +1 -1
  36. package/dist/mandates/index.cjs +2 -2
  37. package/dist/mandates/index.cjs.map +1 -1
  38. package/dist/mandates/index.d.cts +4 -4
  39. package/dist/mandates/index.d.ts +4 -4
  40. package/dist/mandates/index.js +2 -2
  41. package/dist/mandates/index.js.map +1 -1
  42. package/dist/matrx/index.cjs +326 -131
  43. package/dist/matrx/index.cjs.map +1 -1
  44. package/dist/matrx/index.d.cts +185 -4
  45. package/dist/matrx/index.d.ts +185 -4
  46. package/dist/matrx/index.js +326 -131
  47. package/dist/matrx/index.js.map +1 -1
  48. package/dist/{orchestra-PbGGooqJ.d.cts → orchestra-zpGHwOag.d.cts} +9 -0
  49. package/dist/{orchestra-PbGGooqJ.d.ts → orchestra-zpGHwOag.d.ts} +9 -0
  50. package/dist/react/index.cjs +41 -41
  51. package/dist/react/index.cjs.map +1 -1
  52. package/dist/react/index.js +41 -41
  53. package/dist/react/index.js.map +1 -1
  54. package/mandates/snapshots/keys.0.21.46.json +652 -0
  55. package/mandates/snapshots/keys.0.22.0.json +652 -0
  56. package/mandates/snapshots/keys.0.23.0.json +652 -0
  57. 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) => {