@ai-matrx/agents 0.59.197 → 0.59.199
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 +12 -1
- package/dist/content-transfer/index.cjs +1 -1
- package/dist/content-transfer/index.js +1 -1
- package/dist/content-transfer/react/index.cjs +1 -1
- package/dist/content-transfer/react/index.js +1 -1
- package/dist/mandates/index.cjs +4 -4
- package/dist/mandates/index.d.cts +6 -6
- package/dist/mandates/index.d.ts +6 -6
- package/dist/mandates/index.js +4 -4
- package/dist/settings/react/index.cjs +259 -2446
- package/dist/settings/react/index.d.cts +1 -31
- package/dist/settings/react/index.d.ts +1 -31
- package/dist/settings/react/index.js +255 -2458
- package/package.json +4 -4
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { components } from '@ai-matrx/api/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
+
import { LocalModelsPort } from '@ai-matrx/agents/models/react';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Agent Settings — Type Definitions
|
|
@@ -251,37 +252,6 @@ interface UiGates {
|
|
|
251
252
|
declare const UI_GATE_EDITABLE_KEYS: readonly ["image_urls", "file_urls", "youtube_videos"];
|
|
252
253
|
type UiGateEditableKey = (typeof UI_GATE_EDITABLE_KEYS)[number];
|
|
253
254
|
|
|
254
|
-
/** One model a host runs on the person's own computer. */
|
|
255
|
-
interface LocalModelEntry {
|
|
256
|
-
/** The value `onValueChange` receives (the conversation's model override). */
|
|
257
|
-
id: string;
|
|
258
|
-
name: string;
|
|
259
|
-
/** Brand glyph key (e.g. "Meta"); absent draws the neutral glyph. */
|
|
260
|
-
maker?: string | null;
|
|
261
|
-
contextWindow?: number | null;
|
|
262
|
-
/** The computer cannot hold it today: the row is dimmed and says why, but stays pickable. */
|
|
263
|
-
needsMoreMemory?: boolean;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* The host's local-model source (a store: `getModels` + `subscribe`, like the catalog). The picker
|
|
267
|
-
* draws its models as one "On this computer" group marked local. Start/Stop and getting more
|
|
268
|
-
* models stay the host's own screens.
|
|
269
|
-
*/
|
|
270
|
-
interface LocalModelsPort {
|
|
271
|
-
/** Must return the SAME array until the list changes (it is a store snapshot). */
|
|
272
|
-
getModels(): readonly LocalModelEntry[];
|
|
273
|
-
subscribe(listener: () => void): () => void;
|
|
274
|
-
/** Group heading. Default "On this computer". */
|
|
275
|
-
groupLabel?: string;
|
|
276
|
-
/**
|
|
277
|
-
* Open the local model in its own private conversation (the host's Confidential Chat), instead
|
|
278
|
-
* of switching this conversation to it. Present = a local pick calls ONLY this: the cloud value
|
|
279
|
-
* and the class pin stay untouched, and no draft or context is carried. Absent = the pick reports
|
|
280
|
-
* the id through `onValueChange` (the override path).
|
|
281
|
-
*/
|
|
282
|
-
open?(id: string): void;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
255
|
/**
|
|
286
256
|
* THE SETTINGS WRITE TARGET — the one seam between THE model-settings panel
|
|
287
257
|
* (`./react/ModelSettingsPanel`) and whatever a change is written to.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { components } from '@ai-matrx/api/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
+
import { LocalModelsPort } from '@ai-matrx/agents/models/react';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Agent Settings — Type Definitions
|
|
@@ -251,37 +252,6 @@ interface UiGates {
|
|
|
251
252
|
declare const UI_GATE_EDITABLE_KEYS: readonly ["image_urls", "file_urls", "youtube_videos"];
|
|
252
253
|
type UiGateEditableKey = (typeof UI_GATE_EDITABLE_KEYS)[number];
|
|
253
254
|
|
|
254
|
-
/** One model a host runs on the person's own computer. */
|
|
255
|
-
interface LocalModelEntry {
|
|
256
|
-
/** The value `onValueChange` receives (the conversation's model override). */
|
|
257
|
-
id: string;
|
|
258
|
-
name: string;
|
|
259
|
-
/** Brand glyph key (e.g. "Meta"); absent draws the neutral glyph. */
|
|
260
|
-
maker?: string | null;
|
|
261
|
-
contextWindow?: number | null;
|
|
262
|
-
/** The computer cannot hold it today: the row is dimmed and says why, but stays pickable. */
|
|
263
|
-
needsMoreMemory?: boolean;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* The host's local-model source (a store: `getModels` + `subscribe`, like the catalog). The picker
|
|
267
|
-
* draws its models as one "On this computer" group marked local. Start/Stop and getting more
|
|
268
|
-
* models stay the host's own screens.
|
|
269
|
-
*/
|
|
270
|
-
interface LocalModelsPort {
|
|
271
|
-
/** Must return the SAME array until the list changes (it is a store snapshot). */
|
|
272
|
-
getModels(): readonly LocalModelEntry[];
|
|
273
|
-
subscribe(listener: () => void): () => void;
|
|
274
|
-
/** Group heading. Default "On this computer". */
|
|
275
|
-
groupLabel?: string;
|
|
276
|
-
/**
|
|
277
|
-
* Open the local model in its own private conversation (the host's Confidential Chat), instead
|
|
278
|
-
* of switching this conversation to it. Present = a local pick calls ONLY this: the cloud value
|
|
279
|
-
* and the class pin stay untouched, and no draft or context is carried. Absent = the pick reports
|
|
280
|
-
* the id through `onValueChange` (the override path).
|
|
281
|
-
*/
|
|
282
|
-
open?(id: string): void;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
255
|
/**
|
|
286
256
|
* THE SETTINGS WRITE TARGET — the one seam between THE model-settings panel
|
|
287
257
|
* (`./react/ModelSettingsPanel`) and whatever a change is written to.
|