@ai-matrx/agents 0.38.2 → 0.38.4

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 (36) hide show
  1. package/CHANGELOG.md +12 -0
  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 +1 -1
  8. package/dist/generated/api-types.d.ts +1 -1
  9. package/dist/index.cjs +19 -18
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.js +19 -18
  14. package/dist/index.js.map +1 -1
  15. package/dist/{keys.generated-DxqNwOgr.d.cts → keys.generated-DxG5tgWt.d.cts} +4 -4
  16. package/dist/{keys.generated-DxqNwOgr.d.ts → keys.generated-DxG5tgWt.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 +19 -18
  24. package/dist/matrx/index.cjs.map +1 -1
  25. package/dist/matrx/index.d.cts +1 -1
  26. package/dist/matrx/index.d.ts +1 -1
  27. package/dist/matrx/index.js +19 -18
  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 +1 -1
  34. package/mandates/snapshots/keys.0.38.3.json +653 -0
  35. package/mandates/snapshots/keys.0.38.4.json +653 -0
  36. package/package.json +4 -4
@@ -36606,7 +36606,7 @@ interface paths {
36606
36606
  * subgraph child runs (hidden by default so fan-outs don't flood the list).
36607
36607
  *
36608
36608
  * 🚨 A LIST IS DECIDED BY ACCESS, NEVER BY THE SELECTED ORGANIZATION
36609
- * (common-docs/policies/access-belongs-to-the-person.md).
36609
+ * (common-docs/policies/access-ladder.md).
36610
36610
  */
36611
36611
  get: operations["list_runs_runs_get"];
36612
36612
  put?: never;
@@ -36606,7 +36606,7 @@ interface paths {
36606
36606
  * subgraph child runs (hidden by default so fan-outs don't flood the list).
36607
36607
  *
36608
36608
  * 🚨 A LIST IS DECIDED BY ACCESS, NEVER BY THE SELECTED ORGANIZATION
36609
- * (common-docs/policies/access-belongs-to-the-person.md).
36609
+ * (common-docs/policies/access-ladder.md).
36610
36610
  */
36611
36611
  get: operations["list_runs_runs_get"];
36612
36612
  put?: never;
package/dist/index.cjs CHANGED
@@ -1088,26 +1088,27 @@ function isStreamTransportLost(error) {
1088
1088
  }
1089
1089
  async function parseHttpError(response) {
1090
1090
  const status = response.status;
1091
- let body = null;
1091
+ let text;
1092
1092
  try {
1093
- body = await response.json();
1093
+ text = await response.text();
1094
1094
  } catch {
1095
- try {
1096
- const text = await response.text();
1097
- return new BackendApiError({
1098
- code: statusToCode(status),
1099
- detail: text || `HTTP ${status}`,
1100
- userMessage: text || `Request failed (${status})`,
1101
- status
1102
- });
1103
- } catch {
1104
- return new BackendApiError({
1105
- code: statusToCode(status),
1106
- detail: `HTTP ${status}`,
1107
- userMessage: `Request failed (${status})`,
1108
- status
1109
- });
1110
- }
1095
+ return new BackendApiError({
1096
+ code: statusToCode(status),
1097
+ detail: `HTTP ${status}`,
1098
+ userMessage: `Request failed (${status})`,
1099
+ status
1100
+ });
1101
+ }
1102
+ let body;
1103
+ try {
1104
+ body = JSON.parse(text);
1105
+ } catch {
1106
+ return new BackendApiError({
1107
+ code: statusToCode(status),
1108
+ detail: text || `HTTP ${status}`,
1109
+ userMessage: text || `Request failed (${status})`,
1110
+ status
1111
+ });
1111
1112
  }
1112
1113
  return parseHttpErrorBody(body, status);
1113
1114
  }