@ai-matrx/agents 0.36.0 → 0.37.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 (49) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/content-transfer/index.cjs +12 -12
  3. package/dist/content-transfer/index.cjs.map +1 -1
  4. package/dist/content-transfer/index.d.cts +1 -1
  5. package/dist/content-transfer/index.d.ts +1 -1
  6. package/dist/content-transfer/index.js +12 -12
  7. package/dist/content-transfer/index.js.map +1 -1
  8. package/dist/content-transfer/react/index.cjs +12 -12
  9. package/dist/content-transfer/react/index.cjs.map +1 -1
  10. package/dist/content-transfer/react/index.d.cts +1 -1
  11. package/dist/content-transfer/react/index.d.ts +1 -1
  12. package/dist/content-transfer/react/index.js +12 -12
  13. package/dist/content-transfer/react/index.js.map +1 -1
  14. package/dist/index.cjs +1458 -1220
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +1461 -1223
  19. package/dist/index.js.map +1 -1
  20. package/dist/{keys.generated-DCtN66RS.d.cts → keys.generated-klzs6I1T.d.cts} +4 -4
  21. package/dist/{keys.generated-DCtN66RS.d.ts → keys.generated-klzs6I1T.d.ts} +4 -4
  22. package/dist/mandates/index.cjs +2 -2
  23. package/dist/mandates/index.cjs.map +1 -1
  24. package/dist/mandates/index.d.cts +2 -2
  25. package/dist/mandates/index.d.ts +2 -2
  26. package/dist/mandates/index.js +2 -2
  27. package/dist/mandates/index.js.map +1 -1
  28. package/dist/matrx/index.cjs +1721 -1483
  29. package/dist/matrx/index.cjs.map +1 -1
  30. package/dist/matrx/index.d.cts +376 -211
  31. package/dist/matrx/index.d.ts +376 -211
  32. package/dist/matrx/index.js +1724 -1486
  33. package/dist/matrx/index.js.map +1 -1
  34. package/dist/message-parts/index.d.cts +1 -100929
  35. package/dist/message-parts/index.d.ts +1 -100929
  36. package/dist/portable/mcp.cjs +99 -11
  37. package/dist/portable/mcp.cjs.map +1 -1
  38. package/dist/portable/mcp.js +99 -11
  39. package/dist/portable/mcp.js.map +1 -1
  40. package/dist/react/index.cjs +145 -57
  41. package/dist/react/index.cjs.map +1 -1
  42. package/dist/react/index.d.cts +3 -1
  43. package/dist/react/index.d.ts +3 -1
  44. package/dist/react/index.js +145 -57
  45. package/dist/react/index.js.map +1 -1
  46. package/mandates/snapshots/keys.0.37.0.json +653 -0
  47. package/package.json +2 -2
  48. package/dist/{operations-BT5kKMHl.d.cts → operations-DqOe2zob.d.cts} +34 -34
  49. package/dist/{operations-BT5kKMHl.d.ts → operations-DqOe2zob.d.ts} +34 -34
@@ -53,6 +53,40 @@ interface MatrxTransport {
53
53
  fetch(path: string, init: MatrxTransportRequest): Promise<Response>;
54
54
  }
55
55
 
56
+ /**
57
+ * Canonical AI Matrx NDJSON wire kernel.
58
+ *
59
+ * This module is deliberately independent of React, Redux, Next.js, Supabase,
60
+ * and generated application types. Every Matrx client uses it to turn the
61
+ * backend's byte stream into the same normalized `{ event, data }` envelopes.
62
+ * Host runtimes remain responsible for HTTP/auth errors and for deciding what
63
+ * each event means in their state model.
64
+ */
65
+ interface MatrxStreamEnvelope<TData = unknown> {
66
+ event: string;
67
+ /** Immutable emitter segment; transport sequence is scoped to this id. */
68
+ stream_id?: string;
69
+ data: TData;
70
+ /** Monotonic transport sequence from full envelopes, when supplied. */
71
+ stream_seq?: number;
72
+ }
73
+ interface MatrxNdjsonIssue {
74
+ line: string;
75
+ error: unknown;
76
+ /** One-based physical NDJSON line number. */
77
+ lineNumber: number;
78
+ /** True when an unterminated trailing fragment was parsed by `finish()`. */
79
+ atCompletion: boolean;
80
+ }
81
+ interface MatrxStreamEnvelopeObservation {
82
+ /** Exact parsed JSON value before compact/full normalization. */
83
+ raw: unknown;
84
+ envelope: MatrxStreamEnvelope;
85
+ line: string;
86
+ lineNumber: number;
87
+ atCompletion: boolean;
88
+ }
89
+
56
90
  /**
57
91
  * The conversation-start contract — client-minted `conversation_id`, `is_new`,
58
92
  * `store` — typed exactly per the cross-repo System of Record
@@ -127,40 +161,6 @@ interface MatrxEphemeralConversation {
127
161
  /** The full conversation-start triple, one member per contract cell. */
128
162
  type MatrxConversationStart = MatrxStoredConversationCreate | MatrxStoredConversationContinue | MatrxEphemeralConversation;
129
163
 
130
- /**
131
- * Canonical AI Matrx NDJSON wire kernel.
132
- *
133
- * This module is deliberately independent of React, Redux, Next.js, Supabase,
134
- * and generated application types. Every Matrx client uses it to turn the
135
- * backend's byte stream into the same normalized `{ event, data }` envelopes.
136
- * Host runtimes remain responsible for HTTP/auth errors and for deciding what
137
- * each event means in their state model.
138
- */
139
- interface MatrxStreamEnvelope<TData = unknown> {
140
- event: string;
141
- /** Immutable emitter segment; transport sequence is scoped to this id. */
142
- stream_id?: string;
143
- data: TData;
144
- /** Monotonic transport sequence from full envelopes, when supplied. */
145
- stream_seq?: number;
146
- }
147
- interface MatrxNdjsonIssue {
148
- line: string;
149
- error: unknown;
150
- /** One-based physical NDJSON line number. */
151
- lineNumber: number;
152
- /** True when an unterminated trailing fragment was parsed by `finish()`. */
153
- atCompletion: boolean;
154
- }
155
- interface MatrxStreamEnvelopeObservation {
156
- /** Exact parsed JSON value before compact/full normalization. */
157
- raw: unknown;
158
- envelope: MatrxStreamEnvelope;
159
- line: string;
160
- lineNumber: number;
161
- atCompletion: boolean;
162
- }
163
-
164
164
  /**
165
165
  * Runtime operations — the canonical reconnect & resume read surface of the
166
166
  * execution spine, over the `MatrxTransport` port.
@@ -53,6 +53,40 @@ interface MatrxTransport {
53
53
  fetch(path: string, init: MatrxTransportRequest): Promise<Response>;
54
54
  }
55
55
 
56
+ /**
57
+ * Canonical AI Matrx NDJSON wire kernel.
58
+ *
59
+ * This module is deliberately independent of React, Redux, Next.js, Supabase,
60
+ * and generated application types. Every Matrx client uses it to turn the
61
+ * backend's byte stream into the same normalized `{ event, data }` envelopes.
62
+ * Host runtimes remain responsible for HTTP/auth errors and for deciding what
63
+ * each event means in their state model.
64
+ */
65
+ interface MatrxStreamEnvelope<TData = unknown> {
66
+ event: string;
67
+ /** Immutable emitter segment; transport sequence is scoped to this id. */
68
+ stream_id?: string;
69
+ data: TData;
70
+ /** Monotonic transport sequence from full envelopes, when supplied. */
71
+ stream_seq?: number;
72
+ }
73
+ interface MatrxNdjsonIssue {
74
+ line: string;
75
+ error: unknown;
76
+ /** One-based physical NDJSON line number. */
77
+ lineNumber: number;
78
+ /** True when an unterminated trailing fragment was parsed by `finish()`. */
79
+ atCompletion: boolean;
80
+ }
81
+ interface MatrxStreamEnvelopeObservation {
82
+ /** Exact parsed JSON value before compact/full normalization. */
83
+ raw: unknown;
84
+ envelope: MatrxStreamEnvelope;
85
+ line: string;
86
+ lineNumber: number;
87
+ atCompletion: boolean;
88
+ }
89
+
56
90
  /**
57
91
  * The conversation-start contract — client-minted `conversation_id`, `is_new`,
58
92
  * `store` — typed exactly per the cross-repo System of Record
@@ -127,40 +161,6 @@ interface MatrxEphemeralConversation {
127
161
  /** The full conversation-start triple, one member per contract cell. */
128
162
  type MatrxConversationStart = MatrxStoredConversationCreate | MatrxStoredConversationContinue | MatrxEphemeralConversation;
129
163
 
130
- /**
131
- * Canonical AI Matrx NDJSON wire kernel.
132
- *
133
- * This module is deliberately independent of React, Redux, Next.js, Supabase,
134
- * and generated application types. Every Matrx client uses it to turn the
135
- * backend's byte stream into the same normalized `{ event, data }` envelopes.
136
- * Host runtimes remain responsible for HTTP/auth errors and for deciding what
137
- * each event means in their state model.
138
- */
139
- interface MatrxStreamEnvelope<TData = unknown> {
140
- event: string;
141
- /** Immutable emitter segment; transport sequence is scoped to this id. */
142
- stream_id?: string;
143
- data: TData;
144
- /** Monotonic transport sequence from full envelopes, when supplied. */
145
- stream_seq?: number;
146
- }
147
- interface MatrxNdjsonIssue {
148
- line: string;
149
- error: unknown;
150
- /** One-based physical NDJSON line number. */
151
- lineNumber: number;
152
- /** True when an unterminated trailing fragment was parsed by `finish()`. */
153
- atCompletion: boolean;
154
- }
155
- interface MatrxStreamEnvelopeObservation {
156
- /** Exact parsed JSON value before compact/full normalization. */
157
- raw: unknown;
158
- envelope: MatrxStreamEnvelope;
159
- line: string;
160
- lineNumber: number;
161
- atCompletion: boolean;
162
- }
163
-
164
164
  /**
165
165
  * Runtime operations — the canonical reconnect & resume read surface of the
166
166
  * execution spine, over the `MatrxTransport` port.