@ai-matrx/agents 0.7.0 → 0.7.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.
@@ -19,9 +19,20 @@ import { ComponentType, ReactNode, Ref } from 'react';
19
19
  * default row carries (byte-identical to the ref shape matrx-extend
20
20
  * `src/lib/mandates.ts` and matrx-local `desktop/src/lib/mandates.ts`
21
21
  * already hand back to their hosts).
22
+ *
23
+ * 🚨 The brand is a STRING LITERAL, never `unique symbol`. This package emits
24
+ * `./catalog` and `./catalog/react` as two separate bundles, so each `.d.ts`
25
+ * carries its own copy of these declarations. A `unique symbol` brand is
26
+ * NOMINAL: two copies of it are unrelated types, so `createAgentCatalog()`
27
+ * from `./catalog` was not assignable to `<AgentCatalogProvider catalog=…>`
28
+ * from `./catalog/react` — the exact two-import wiring the README, the
29
+ * CHANGELOG and every consumer use. A literal brand is structural, so the two
30
+ * copies unify, while a bare `string` still cannot be passed where an
31
+ * `AgentId` is required (which is the whole point of branding). Any future
32
+ * brand in this package follows the same rule.
22
33
  */
23
34
  type AgentId = string & {
24
- readonly __agentId: unique symbol;
35
+ readonly __agentId: "ai-matrx.agent-id";
25
36
  };
26
37
  /** `agent_type` verbatim. Only `builtin` changes how a row is grouped. */
27
38
  type AgentCatalogAgentType = "user" | "builtin";
@@ -19,9 +19,20 @@ import { ComponentType, ReactNode, Ref } from 'react';
19
19
  * default row carries (byte-identical to the ref shape matrx-extend
20
20
  * `src/lib/mandates.ts` and matrx-local `desktop/src/lib/mandates.ts`
21
21
  * already hand back to their hosts).
22
+ *
23
+ * 🚨 The brand is a STRING LITERAL, never `unique symbol`. This package emits
24
+ * `./catalog` and `./catalog/react` as two separate bundles, so each `.d.ts`
25
+ * carries its own copy of these declarations. A `unique symbol` brand is
26
+ * NOMINAL: two copies of it are unrelated types, so `createAgentCatalog()`
27
+ * from `./catalog` was not assignable to `<AgentCatalogProvider catalog=…>`
28
+ * from `./catalog/react` — the exact two-import wiring the README, the
29
+ * CHANGELOG and every consumer use. A literal brand is structural, so the two
30
+ * copies unify, while a bare `string` still cannot be passed where an
31
+ * `AgentId` is required (which is the whole point of branding). Any future
32
+ * brand in this package follows the same rule.
22
33
  */
23
34
  type AgentId = string & {
24
- readonly __agentId: unique symbol;
35
+ readonly __agentId: "ai-matrx.agent-id";
25
36
  };
26
37
  /** `agent_type` verbatim. Only `builtin` changes how a row is grouped. */
27
38
  type AgentCatalogAgentType = "user" | "builtin";