@ai-matrx/agents 0.59.213 → 0.59.214

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/CHANGELOG.md CHANGED
@@ -1,10 +1,20 @@
1
1
  # Changelog
2
2
 
3
- ## 0.59.213
3
+ ## 0.59.214
4
4
 
5
5
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/matrx-agents/src`.
7
7
 
8
+ ## 0.59.213
9
+
10
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff e4cbd9b70f 7b0c0ef2c0 -- apps/shared/matrx-agents/src`
11
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
12
+
13
+ ## 0.59.212
14
+
15
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff 77dc9ac997 e4cbd9b70f -- apps/shared/matrx-agents/src`
16
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
17
+
8
18
  ## 0.59.211
9
19
 
10
20
  Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff bcd75d763a 77dc9ac997 -- apps/shared/matrx-agents/src`
@@ -113,6 +113,7 @@ var MANDATE_KEYS = {
113
113
  audio__speech: "audio.speech",
114
114
  billing__spend_desk: "billing.spend_desk",
115
115
  brand__voice_rewrite: "brand.voice_rewrite",
116
+ brand_discovery__curate: "brand_discovery.curate",
116
117
  brand_discovery__propose_offering_roles: "brand_discovery.propose_offering_roles",
117
118
  brand_discovery__read_self_page: "brand_discovery.read_self_page",
118
119
  brand_discovery__room_outside_world: "brand_discovery.room_outside_world",
@@ -90,6 +90,7 @@ var MANDATE_KEYS = {
90
90
  audio__speech: "audio.speech",
91
91
  billing__spend_desk: "billing.spend_desk",
92
92
  brand__voice_rewrite: "brand.voice_rewrite",
93
+ brand_discovery__curate: "brand_discovery.curate",
93
94
  brand_discovery__propose_offering_roles: "brand_discovery.propose_offering_roles",
94
95
  brand_discovery__read_self_page: "brand_discovery.read_self_page",
95
96
  brand_discovery__room_outside_world: "brand_discovery.room_outside_world",
@@ -66,6 +66,7 @@ var MANDATE_KEYS = {
66
66
  audio__speech: "audio.speech",
67
67
  billing__spend_desk: "billing.spend_desk",
68
68
  brand__voice_rewrite: "brand.voice_rewrite",
69
+ brand_discovery__curate: "brand_discovery.curate",
69
70
  brand_discovery__propose_offering_roles: "brand_discovery.propose_offering_roles",
70
71
  brand_discovery__read_self_page: "brand_discovery.read_self_page",
71
72
  brand_discovery__room_outside_world: "brand_discovery.room_outside_world",
@@ -38,6 +38,7 @@ var MANDATE_KEYS = {
38
38
  audio__speech: "audio.speech",
39
39
  billing__spend_desk: "billing.spend_desk",
40
40
  brand__voice_rewrite: "brand.voice_rewrite",
41
+ brand_discovery__curate: "brand_discovery.curate",
41
42
  brand_discovery__propose_offering_roles: "brand_discovery.propose_offering_roles",
42
43
  brand_discovery__read_self_page: "brand_discovery.read_self_page",
43
44
  brand_discovery__room_outside_world: "brand_discovery.room_outside_world",
@@ -47,9 +47,9 @@ module.exports = __toCommonJS(mandates_exports);
47
47
 
48
48
  // mandates/keys.generated.ts
49
49
  var MANDATE_KEYS_META = {
50
- aidreamRevision: "7b0c0ef2c077e84db21db43adf1c6e297fd08138",
50
+ aidreamRevision: "39e135b031b3ad8faa14dbe24c8ac8303148a00f",
51
51
  generatorVersion: "1.0.0",
52
- packageVersion: "0.59.213",
52
+ packageVersion: "0.59.214",
53
53
  retireWindow: 3
54
54
  };
55
55
  var MANDATE_KEYS = {
@@ -76,6 +76,7 @@ var MANDATE_KEYS = {
76
76
  audio__speech: "audio.speech",
77
77
  billing__spend_desk: "billing.spend_desk",
78
78
  brand__voice_rewrite: "brand.voice_rewrite",
79
+ brand_discovery__curate: "brand_discovery.curate",
79
80
  brand_discovery__propose_offering_roles: "brand_discovery.propose_offering_roles",
80
81
  brand_discovery__read_self_page: "brand_discovery.read_self_page",
81
82
  brand_discovery__room_outside_world: "brand_discovery.room_outside_world",
@@ -6,10 +6,10 @@
6
6
  * from the IN-PROCESS mandate declarations — the same `declared_mandates()` the
7
7
  * boot sync writes to the database from. There is no hand list anywhere.
8
8
  *
9
- * aidream revision: 7b0c0ef2c077e84db21db43adf1c6e297fd08138
9
+ * aidream revision: 39e135b031b3ad8faa14dbe24c8ac8303148a00f
10
10
  * generator version: 1.0.0
11
- * package version: 0.59.213
12
- * active keys: 611
11
+ * package version: 0.59.214
12
+ * active keys: 612
13
13
  * retiring keys: 5
14
14
  *
15
15
  * THE IDENTIFIER RULE: every `.` in a key becomes `__`, any character outside
@@ -19,9 +19,9 @@
19
19
  */
20
20
  /** Where this module came from — surfaced so a report can name the exact build. */
21
21
  declare const MANDATE_KEYS_META: {
22
- readonly aidreamRevision: "7b0c0ef2c077e84db21db43adf1c6e297fd08138";
22
+ readonly aidreamRevision: "39e135b031b3ad8faa14dbe24c8ac8303148a00f";
23
23
  readonly generatorVersion: "1.0.0";
24
- readonly packageVersion: "0.59.213";
24
+ readonly packageVersion: "0.59.214";
25
25
  readonly retireWindow: 3;
26
26
  };
27
27
  /** Every declared mandate key, by THE IDENTIFIER RULE. */
@@ -49,6 +49,7 @@ declare const MANDATE_KEYS: {
49
49
  readonly audio__speech: "audio.speech";
50
50
  readonly billing__spend_desk: "billing.spend_desk";
51
51
  readonly brand__voice_rewrite: "brand.voice_rewrite";
52
+ readonly brand_discovery__curate: "brand_discovery.curate";
52
53
  readonly brand_discovery__propose_offering_roles: "brand_discovery.propose_offering_roles";
53
54
  readonly brand_discovery__read_self_page: "brand_discovery.read_self_page";
54
55
  readonly brand_discovery__room_outside_world: "brand_discovery.room_outside_world";
@@ -6,10 +6,10 @@
6
6
  * from the IN-PROCESS mandate declarations — the same `declared_mandates()` the
7
7
  * boot sync writes to the database from. There is no hand list anywhere.
8
8
  *
9
- * aidream revision: 7b0c0ef2c077e84db21db43adf1c6e297fd08138
9
+ * aidream revision: 39e135b031b3ad8faa14dbe24c8ac8303148a00f
10
10
  * generator version: 1.0.0
11
- * package version: 0.59.213
12
- * active keys: 611
11
+ * package version: 0.59.214
12
+ * active keys: 612
13
13
  * retiring keys: 5
14
14
  *
15
15
  * THE IDENTIFIER RULE: every `.` in a key becomes `__`, any character outside
@@ -19,9 +19,9 @@
19
19
  */
20
20
  /** Where this module came from — surfaced so a report can name the exact build. */
21
21
  declare const MANDATE_KEYS_META: {
22
- readonly aidreamRevision: "7b0c0ef2c077e84db21db43adf1c6e297fd08138";
22
+ readonly aidreamRevision: "39e135b031b3ad8faa14dbe24c8ac8303148a00f";
23
23
  readonly generatorVersion: "1.0.0";
24
- readonly packageVersion: "0.59.213";
24
+ readonly packageVersion: "0.59.214";
25
25
  readonly retireWindow: 3;
26
26
  };
27
27
  /** Every declared mandate key, by THE IDENTIFIER RULE. */
@@ -49,6 +49,7 @@ declare const MANDATE_KEYS: {
49
49
  readonly audio__speech: "audio.speech";
50
50
  readonly billing__spend_desk: "billing.spend_desk";
51
51
  readonly brand__voice_rewrite: "brand.voice_rewrite";
52
+ readonly brand_discovery__curate: "brand_discovery.curate";
52
53
  readonly brand_discovery__propose_offering_roles: "brand_discovery.propose_offering_roles";
53
54
  readonly brand_discovery__read_self_page: "brand_discovery.read_self_page";
54
55
  readonly brand_discovery__room_outside_world: "brand_discovery.room_outside_world";
@@ -1,8 +1,8 @@
1
1
  // mandates/keys.generated.ts
2
2
  var MANDATE_KEYS_META = {
3
- aidreamRevision: "7b0c0ef2c077e84db21db43adf1c6e297fd08138",
3
+ aidreamRevision: "39e135b031b3ad8faa14dbe24c8ac8303148a00f",
4
4
  generatorVersion: "1.0.0",
5
- packageVersion: "0.59.213",
5
+ packageVersion: "0.59.214",
6
6
  retireWindow: 3
7
7
  };
8
8
  var MANDATE_KEYS = {
@@ -29,6 +29,7 @@ var MANDATE_KEYS = {
29
29
  audio__speech: "audio.speech",
30
30
  billing__spend_desk: "billing.spend_desk",
31
31
  brand__voice_rewrite: "brand.voice_rewrite",
32
+ brand_discovery__curate: "brand_discovery.curate",
32
33
  brand_discovery__propose_offering_roles: "brand_discovery.propose_offering_roles",
33
34
  brand_discovery__read_self_page: "brand_discovery.read_self_page",
34
35
  brand_discovery__room_outside_world: "brand_discovery.room_outside_world",
@@ -2776,7 +2776,11 @@ async function resolveNewAgentModelId(resolveKnob, catalog) {
2776
2776
  `The model new agents start on (${NEW_AGENT_DEFAULT_MODEL_KNOB}) could not be read, so no agent was created: ${error instanceof Error ? error.message : String(error)}`
2777
2777
  );
2778
2778
  }
2779
- if (typeof value === "string" && value.trim() !== "") return { modelId: await resolveLiveModelId(catalog, value.trim()) };
2779
+ if (typeof value === "string" && value.trim() !== "") {
2780
+ if (catalog) return { modelId: await resolveLiveModelId(catalog, value.trim()) };
2781
+ console.error(`[newAgentModel] ${NEW_AGENT_DEFAULT_MODEL_KNOB}: no catalog client passed, so a deprecated default is NOT moved to its successor. Pass the host's Supabase client.`);
2782
+ return { modelId: value.trim() };
2783
+ }
2780
2784
  throw new Error(
2781
2785
  `No model is set for new agents (${NEW_AGENT_DEFAULT_MODEL_KNOB} is empty for this organization), so no agent was created. Set it in Settings.`
2782
2786
  );
@@ -1788,7 +1788,12 @@ interface NewAgentModel {
1788
1788
  modelId: string;
1789
1789
  }
1790
1790
  /** The model a new agent starts on. `resolveKnob(fullKey)` is the host's effective-knob read. Throws, naming the knob, when it answers nothing. */
1791
- declare function resolveNewAgentModelId(resolveKnob: (fullKey: string) => Promise<unknown>, catalog: SuccessionClient): Promise<NewAgentModel>;
1791
+ declare function resolveNewAgentModelId(resolveKnob: (fullKey: string) => Promise<unknown>,
1792
+ /**
1793
+ * The catalog the id is resolved through (successor chain). Optional only so a host that has not passed it
1794
+ * yet keeps compiling across a re-lock; without it the knob's id is used as is and that is said loudly.
1795
+ */
1796
+ catalog?: SuccessionClient): Promise<NewAgentModel>;
1792
1797
  /**
1793
1798
  * A json knob mapping names to model ids (e.g. `agents.simple_run.capability_models`), each id resolved through the
1794
1799
  * catalog's successor chain on this read. Non-string entries are dropped; a value that is not an object answers {}.
@@ -1788,7 +1788,12 @@ interface NewAgentModel {
1788
1788
  modelId: string;
1789
1789
  }
1790
1790
  /** The model a new agent starts on. `resolveKnob(fullKey)` is the host's effective-knob read. Throws, naming the knob, when it answers nothing. */
1791
- declare function resolveNewAgentModelId(resolveKnob: (fullKey: string) => Promise<unknown>, catalog: SuccessionClient): Promise<NewAgentModel>;
1791
+ declare function resolveNewAgentModelId(resolveKnob: (fullKey: string) => Promise<unknown>,
1792
+ /**
1793
+ * The catalog the id is resolved through (successor chain). Optional only so a host that has not passed it
1794
+ * yet keeps compiling across a re-lock; without it the knob's id is used as is and that is said loudly.
1795
+ */
1796
+ catalog?: SuccessionClient): Promise<NewAgentModel>;
1792
1797
  /**
1793
1798
  * A json knob mapping names to model ids (e.g. `agents.simple_run.capability_models`), each id resolved through the
1794
1799
  * catalog's successor chain on this read. Non-string entries are dropped; a value that is not an object answers {}.
@@ -2618,7 +2618,11 @@ async function resolveNewAgentModelId(resolveKnob, catalog) {
2618
2618
  `The model new agents start on (${NEW_AGENT_DEFAULT_MODEL_KNOB}) could not be read, so no agent was created: ${error instanceof Error ? error.message : String(error)}`
2619
2619
  );
2620
2620
  }
2621
- if (typeof value === "string" && value.trim() !== "") return { modelId: await resolveLiveModelId(catalog, value.trim()) };
2621
+ if (typeof value === "string" && value.trim() !== "") {
2622
+ if (catalog) return { modelId: await resolveLiveModelId(catalog, value.trim()) };
2623
+ console.error(`[newAgentModel] ${NEW_AGENT_DEFAULT_MODEL_KNOB}: no catalog client passed, so a deprecated default is NOT moved to its successor. Pass the host's Supabase client.`);
2624
+ return { modelId: value.trim() };
2625
+ }
2622
2626
  throw new Error(
2623
2627
  `No model is set for new agents (${NEW_AGENT_DEFAULT_MODEL_KNOB} is empty for this organization), so no agent was created. Set it in Settings.`
2624
2628
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/agents",
3
- "version": "0.59.213",
3
+ "version": "0.59.214",
4
4
  "description": "Portable AI Matrx agent stream protocol, event projection, and safe result-presentation primitives.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -509,14 +509,14 @@
509
509
  "sideEffects": false,
510
510
  "dependencies": {
511
511
  "@ai-matrx/alchemy": "latest",
512
- "@ai-matrx/api": "latest",
513
512
  "@ai-matrx/associations": "latest",
513
+ "@ai-matrx/api": "latest",
514
514
  "@ai-matrx/content-ir": "latest",
515
515
  "@ai-matrx/data": "latest",
516
516
  "@ai-matrx/design-system": "latest",
517
- "@ai-matrx/diff": "latest",
518
517
  "@ai-matrx/icons": "latest",
519
- "@ai-matrx/kit": "latest"
518
+ "@ai-matrx/kit": "latest",
519
+ "@ai-matrx/diff": "latest"
520
520
  },
521
521
  "peerDependencies": {
522
522
  "react": ">=18.0.0",
@@ -561,5 +561,5 @@
561
561
  "verify:tarball": "node ./scripts/verify-tarball.mjs",
562
562
  "typegen:self-test": "node scripts/typegen/drop-guard.self-test.mjs && node scripts/typegen/check-api-types-fresh.mjs --self-test"
563
563
  },
564
- "gitHead": "7b0c0ef2c077e84db21db43adf1c6e297fd08138"
564
+ "gitHead": "39e135b031b3ad8faa14dbe24c8ac8303148a00f"
565
565
  }