@ai-matrx/agents 0.38.1 → 0.38.3

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 +4 -4
  8. package/dist/generated/api-types.d.ts +4 -4
  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-DNRbtHNx.d.cts → keys.generated-BdQt09qH.d.cts} +4 -4
  16. package/dist/{keys.generated-DNRbtHNx.d.ts → keys.generated-BdQt09qH.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 +4 -4
  34. package/mandates/snapshots/keys.0.38.2.json +653 -0
  35. package/mandates/snapshots/keys.0.38.3.json +653 -0
  36. package/package.json +3 -3
@@ -41223,7 +41223,7 @@ interface paths {
41223
41223
  * challenge; this is the door for the challenge nobody could detect — a
41224
41224
  * person or an agent that can SEE the block says so, and the session is
41225
41225
  * checkpointed and reopened through their computer with the same run id.
41226
- * Contract: ``common-docs/systems/platform/residential-egress/FEATURE.md``.
41226
+ * Contract: ``common-docs/systems/architecture/residential-egress/FEATURE.md``.
41227
41227
  */
41228
41228
  post: operations["retry_through_home_computer_browser_manager_runs__run_id__retry_through_home_computer_post"];
41229
41229
  delete?: never;
@@ -58558,7 +58558,7 @@ interface components {
58558
58558
  */
58559
58559
  change_role: "apply" | "edit" | "revert";
58560
58560
  /** Actor Tier */
58561
- actor_tier?: ("ai" | "code" | "human") | null;
58561
+ actor_tier?: ("agent" | "system" | "user") | null;
58562
58562
  /** Actor System */
58563
58563
  actor_system?: string | null;
58564
58564
  /** Actor Id */
@@ -62438,7 +62438,7 @@ interface components {
62438
62438
  * sets it: only the Browser Manager knows that a blocked page was retried
62439
62439
  * through the person's own computer. It rides the command reply because that
62440
62440
  * is where the agent and the panel read the answer, and rule 5 of
62441
- * ``common-docs/systems/platform/residential-egress/FEATURE.md`` says a page
62441
+ * ``common-docs/systems/architecture/residential-egress/FEATURE.md`` says a page
62442
62442
  * fetched through a person's computer always says so.
62443
62443
  */
62444
62444
  CommandEgress: {
@@ -187733,7 +187733,7 @@ interface operations {
187733
187733
  unit_token?: ("agent" | "tool" | "workflow") | null;
187734
187734
  unit_id?: string | null;
187735
187735
  change_role?: ("apply" | "edit" | "revert") | null;
187736
- actor_tier?: ("ai" | "code" | "human") | null;
187736
+ actor_tier?: ("agent" | "ai" | "code" | "human" | "system" | "user") | null;
187737
187737
  /** @description Only changes a Hindsight finding caused. */
187738
187738
  with_findings_only?: boolean;
187739
187739
  limit?: number;
@@ -41223,7 +41223,7 @@ interface paths {
41223
41223
  * challenge; this is the door for the challenge nobody could detect — a
41224
41224
  * person or an agent that can SEE the block says so, and the session is
41225
41225
  * checkpointed and reopened through their computer with the same run id.
41226
- * Contract: ``common-docs/systems/platform/residential-egress/FEATURE.md``.
41226
+ * Contract: ``common-docs/systems/architecture/residential-egress/FEATURE.md``.
41227
41227
  */
41228
41228
  post: operations["retry_through_home_computer_browser_manager_runs__run_id__retry_through_home_computer_post"];
41229
41229
  delete?: never;
@@ -58558,7 +58558,7 @@ interface components {
58558
58558
  */
58559
58559
  change_role: "apply" | "edit" | "revert";
58560
58560
  /** Actor Tier */
58561
- actor_tier?: ("ai" | "code" | "human") | null;
58561
+ actor_tier?: ("agent" | "system" | "user") | null;
58562
58562
  /** Actor System */
58563
58563
  actor_system?: string | null;
58564
58564
  /** Actor Id */
@@ -62438,7 +62438,7 @@ interface components {
62438
62438
  * sets it: only the Browser Manager knows that a blocked page was retried
62439
62439
  * through the person's own computer. It rides the command reply because that
62440
62440
  * is where the agent and the panel read the answer, and rule 5 of
62441
- * ``common-docs/systems/platform/residential-egress/FEATURE.md`` says a page
62441
+ * ``common-docs/systems/architecture/residential-egress/FEATURE.md`` says a page
62442
62442
  * fetched through a person's computer always says so.
62443
62443
  */
62444
62444
  CommandEgress: {
@@ -187733,7 +187733,7 @@ interface operations {
187733
187733
  unit_token?: ("agent" | "tool" | "workflow") | null;
187734
187734
  unit_id?: string | null;
187735
187735
  change_role?: ("apply" | "edit" | "revert") | null;
187736
- actor_tier?: ("ai" | "code" | "human") | null;
187736
+ actor_tier?: ("agent" | "ai" | "code" | "human" | "system" | "user") | null;
187737
187737
  /** @description Only changes a Hindsight finding caused. */
187738
187738
  with_findings_only?: boolean;
187739
187739
  limit?: number;
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
  }