@ai-matrx/messaging 0.10.0 → 0.10.1

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/dist/react.d.cts CHANGED
@@ -331,7 +331,13 @@ interface MessagingAiOptions {
331
331
  transport: MatrxTransport;
332
332
  organizationId: string;
333
333
  agents: MessagingAgents;
334
- /** Stable source slugs so server-side analytics can see where a run came from. */
334
+ /**
335
+ * The producer slugs stamped on every run. 🚨 The AI Matrx server keeps a
336
+ * REGISTER of legal producers and refuses an unregistered one with a 422, so
337
+ * the defaults below are placeholders that will NOT survive a real server —
338
+ * only the host knows its registered slugs. Not analytics garnish: an
339
+ * unstamped or unregistered run is a refused run.
340
+ */
335
341
  sourceApp?: string | undefined;
336
342
  sourceFeature?: string | undefined;
337
343
  /** Cap on how much transcript is sent. Default 200 messages. */
@@ -987,6 +993,15 @@ interface MessagingProviderProps {
987
993
  * number so an organization can decide.
988
994
  */
989
995
  maxTranscriptMessages?: number | undefined;
996
+ /**
997
+ * 🚨 REQUIRED IN PRACTICE FOR AI. The producer slugs stamped on every AI run.
998
+ * The AI Matrx server keeps a REGISTER of legal producers and REFUSES an
999
+ * unregistered one with a 422 — so this package's placeholder defaults
1000
+ * (`ai-matrx` / `messaging.<capability>`) fail every call against a real
1001
+ * server. Only the host knows its registered slugs; pass them.
1002
+ */
1003
+ sourceApp?: string | undefined;
1004
+ sourceFeature?: string | undefined;
990
1005
  /** Handlers for actionable messages. Registered once per handler identity. */
991
1006
  actions?: readonly ActionHandler<never>[] | undefined;
992
1007
  /**
package/dist/react.d.ts CHANGED
@@ -331,7 +331,13 @@ interface MessagingAiOptions {
331
331
  transport: MatrxTransport;
332
332
  organizationId: string;
333
333
  agents: MessagingAgents;
334
- /** Stable source slugs so server-side analytics can see where a run came from. */
334
+ /**
335
+ * The producer slugs stamped on every run. 🚨 The AI Matrx server keeps a
336
+ * REGISTER of legal producers and refuses an unregistered one with a 422, so
337
+ * the defaults below are placeholders that will NOT survive a real server —
338
+ * only the host knows its registered slugs. Not analytics garnish: an
339
+ * unstamped or unregistered run is a refused run.
340
+ */
335
341
  sourceApp?: string | undefined;
336
342
  sourceFeature?: string | undefined;
337
343
  /** Cap on how much transcript is sent. Default 200 messages. */
@@ -987,6 +993,15 @@ interface MessagingProviderProps {
987
993
  * number so an organization can decide.
988
994
  */
989
995
  maxTranscriptMessages?: number | undefined;
996
+ /**
997
+ * 🚨 REQUIRED IN PRACTICE FOR AI. The producer slugs stamped on every AI run.
998
+ * The AI Matrx server keeps a REGISTER of legal producers and REFUSES an
999
+ * unregistered one with a 422 — so this package's placeholder defaults
1000
+ * (`ai-matrx` / `messaging.<capability>`) fail every call against a real
1001
+ * server. Only the host knows its registered slugs; pass them.
1002
+ */
1003
+ sourceApp?: string | undefined;
1004
+ sourceFeature?: string | undefined;
990
1005
  /** Handlers for actionable messages. Registered once per handler identity. */
991
1006
  actions?: readonly ActionHandler<never>[] | undefined;
992
1007
  /**
package/dist/react.js CHANGED
@@ -1817,15 +1817,27 @@ function MessagingRuntime(props) {
1817
1817
  const transport = props.transport;
1818
1818
  const agents = props.agents;
1819
1819
  const maxTranscriptMessages = props.maxTranscriptMessages;
1820
+ const sourceApp = props.sourceApp;
1821
+ const sourceFeature = props.sourceFeature;
1820
1822
  const ai = useMemo(() => {
1821
1823
  if (transport === void 0 || agents === void 0 || !ready) return null;
1822
1824
  return createMessagingAi({
1823
1825
  transport,
1824
1826
  organizationId,
1825
1827
  agents,
1826
- ...maxTranscriptMessages !== void 0 ? { maxTranscriptMessages } : {}
1828
+ ...maxTranscriptMessages !== void 0 ? { maxTranscriptMessages } : {},
1829
+ ...sourceApp !== void 0 ? { sourceApp } : {},
1830
+ ...sourceFeature !== void 0 ? { sourceFeature } : {}
1827
1831
  });
1828
- }, [transport, agents, ready, organizationId, maxTranscriptMessages]);
1832
+ }, [
1833
+ transport,
1834
+ agents,
1835
+ ready,
1836
+ organizationId,
1837
+ maxTranscriptMessages,
1838
+ sourceApp,
1839
+ sourceFeature
1840
+ ]);
1829
1841
  const renderers = props.actionRenderers;
1830
1842
  const rendererMap = useMemo(() => {
1831
1843
  const map = /* @__PURE__ */ new Map();