@ai-matrx/agents 0.59.229 → 0.59.231
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 +32 -1
- package/dist/catalog/native/index.cjs +74 -79
- package/dist/catalog/native/index.js +74 -79
- package/dist/catalog/react/index.cjs +290 -147
- package/dist/catalog/react/index.d.cts +6 -2
- package/dist/catalog/react/index.d.ts +6 -2
- package/dist/catalog/react/index.js +321 -178
- package/dist/content-transfer/index.cjs +5 -654
- package/dist/content-transfer/index.js +15 -652
- package/dist/content-transfer/react/index.cjs +5 -654
- package/dist/content-transfer/react/index.js +15 -652
- package/dist/generated/provision-offers.cjs +2 -0
- package/dist/generated/provision-offers.d.cts +76 -1
- package/dist/generated/provision-offers.d.ts +76 -1
- package/dist/generated/provision-offers.js +2 -0
- package/dist/mandates/index.cjs +12 -797
- package/dist/mandates/index.d.cts +5 -740
- package/dist/mandates/index.d.ts +5 -740
- package/dist/mandates/index.js +17 -788
- package/dist/models/index.cjs +19 -9
- package/dist/models/index.d.cts +4 -1
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +19 -9
- package/dist/models/react/index.cjs +0 -3
- package/dist/models/react/index.js +1 -4
- package/dist/quick/index.cjs +205 -82
- package/dist/quick/index.d.cts +110 -45
- package/dist/quick/index.d.ts +110 -45
- package/dist/quick/index.js +205 -82
- package/package.json +5 -5
package/dist/quick/index.d.cts
CHANGED
|
@@ -6,12 +6,13 @@ import { A as AgentSummary } from '../types-DZhDqrVE.cjs';
|
|
|
6
6
|
* A quick agent is a named bundle of exactly: name, system prompt, model and three settings
|
|
7
7
|
* (temperature, top-p, max output tokens). It is an ordinary `agent.definition` row — one agent
|
|
8
8
|
* table, one permission model, no second prompt store — marked `kind: quick` so the big catalog
|
|
9
|
-
* can hide or group it. This entry owns the shape and the pure builders/selectors;
|
|
10
|
-
*
|
|
9
|
+
* can hide or group it. This entry owns the shape and the pure builders/selectors; the WRITES go
|
|
10
|
+
* through chat's one agent-definition write path (`agents/redux/agent-definition/definition-writes`),
|
|
11
|
+
* never a second one here.
|
|
11
12
|
*
|
|
12
|
-
* The marker
|
|
13
|
-
*
|
|
14
|
-
* metadata
|
|
13
|
+
* The marker is the `kind:quick` tag: it rides every catalog row, so a list can filter without a
|
|
14
|
+
* second read — exactly how `chat-agent` marks presets. (Rows saved before the shared write path also
|
|
15
|
+
* carry `metadata.kind = "quick"`; both read as quick.)
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
18
|
declare const QUICK_AGENT_KIND: "quick";
|
|
@@ -34,26 +35,81 @@ interface QuickAgentDefinition {
|
|
|
34
35
|
interface QuickAgent extends QuickAgentDefinition {
|
|
35
36
|
id: string;
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
/** One setting's slider: where it starts, where it stops, where a new agent rests. */
|
|
39
|
+
interface QuickAgentSettingLimit {
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
step: number;
|
|
43
|
+
default: number;
|
|
44
|
+
}
|
|
45
|
+
interface QuickAgentLimits {
|
|
46
|
+
temperature: QuickAgentSettingLimit;
|
|
47
|
+
topP: QuickAgentSettingLimit;
|
|
48
|
+
maxOutputTokens: QuickAgentSettingLimit;
|
|
49
|
+
}
|
|
50
|
+
/** A model's own settings row for one control (`ai.model` controls: min / max / default), when it states one. */
|
|
51
|
+
interface ModelSettingRow {
|
|
52
|
+
min?: number | null | undefined;
|
|
53
|
+
max?: number | null | undefined;
|
|
54
|
+
default?: unknown;
|
|
55
|
+
}
|
|
56
|
+
/** The chosen model's settings rows for the three controls; a control it does not state is absent. */
|
|
57
|
+
interface ModelSettingRows {
|
|
58
|
+
temperature?: ModelSettingRow | null | undefined;
|
|
59
|
+
top_p?: ModelSettingRow | null | undefined;
|
|
60
|
+
max_output_tokens?: ModelSettingRow | null | undefined;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The `agents.quick` knob values (organization and person can set them). `undefined` = the register
|
|
64
|
+
* has not answered yet. A probability lives in 0..1 and a temperature starts at 0 by definition;
|
|
65
|
+
* every other bound and every default is a knob.
|
|
66
|
+
*/
|
|
67
|
+
interface QuickAgentKnobValues {
|
|
68
|
+
temperatureMax?: unknown;
|
|
69
|
+
temperatureDefault?: unknown;
|
|
70
|
+
topPDefault?: unknown;
|
|
71
|
+
maxOutputMin?: unknown;
|
|
72
|
+
maxOutputMax?: unknown;
|
|
73
|
+
maxOutputDefault?: unknown;
|
|
74
|
+
}
|
|
75
|
+
declare const QUICK_AGENT_KNOBS: {
|
|
76
|
+
readonly temperatureMax: {
|
|
77
|
+
readonly feature: "agents.quick";
|
|
78
|
+
readonly key: "temperature_max";
|
|
79
|
+
};
|
|
80
|
+
readonly temperatureDefault: {
|
|
81
|
+
readonly feature: "agents.quick";
|
|
82
|
+
readonly key: "temperature_default";
|
|
83
|
+
};
|
|
84
|
+
readonly topPDefault: {
|
|
85
|
+
readonly feature: "agents.quick";
|
|
86
|
+
readonly key: "top_p_default";
|
|
87
|
+
};
|
|
88
|
+
readonly maxOutputMin: {
|
|
89
|
+
readonly feature: "agents.quick";
|
|
90
|
+
readonly key: "max_output_min";
|
|
42
91
|
};
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly step: 0.05;
|
|
92
|
+
readonly maxOutputMax: {
|
|
93
|
+
readonly feature: "agents.quick";
|
|
94
|
+
readonly key: "max_output_max";
|
|
47
95
|
};
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly step: 256;
|
|
96
|
+
readonly maxOutputDefault: {
|
|
97
|
+
readonly feature: "agents.quick";
|
|
98
|
+
readonly key: "max_output_default";
|
|
52
99
|
};
|
|
53
100
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
101
|
+
/** A slider step that gives ~100 positions over the range, on a 1 / 2 / 5 grid (0.02 -> 0.05 style). */
|
|
102
|
+
declare function sliderStep(min: number, max: number): number;
|
|
103
|
+
/**
|
|
104
|
+
* THE ONE SOURCE of the three sliders' bounds and resting values: the chosen model's own settings
|
|
105
|
+
* rows where it states them, else the `agents.quick` knobs. `null` until every number is known (the
|
|
106
|
+
* panel shows no slider for a number nobody has answered — there is no code default).
|
|
107
|
+
*/
|
|
108
|
+
declare function resolveQuickAgentLimits(model: ModelSettingRows | null | undefined, knobs: QuickAgentKnobValues): QuickAgentLimits | null;
|
|
109
|
+
/** A new agent's settings: every slider at its resting value. */
|
|
110
|
+
declare function defaultQuickAgentSettings(limits: QuickAgentLimits): QuickAgentSettings;
|
|
111
|
+
/** Settings pulled inside their limits (a slider can never save a value the model refuses). */
|
|
112
|
+
declare function clampQuickAgentSettings(settings: QuickAgentSettings, limits: QuickAgentLimits): QuickAgentSettings;
|
|
57
113
|
/** What stops a save, in words — empty when the definition is saveable. */
|
|
58
114
|
declare function quickAgentProblems(def: Pick<QuickAgentDefinition, "name" | "systemPrompt" | "modelId">): string[];
|
|
59
115
|
interface QuickAgentSystemMessage {
|
|
@@ -66,28 +122,44 @@ interface QuickAgentSystemMessage {
|
|
|
66
122
|
/** The persisted `settings` JSON: the three params plus the stream flag every agent row carries. */
|
|
67
123
|
declare function quickAgentSettingsJson(settings: QuickAgentSettings): Record<string, unknown>;
|
|
68
124
|
declare function quickAgentMessages(systemPrompt: string): QuickAgentSystemMessage[];
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
125
|
+
/**
|
|
126
|
+
* The agent fields a quick agent sets, in the shape of the ONE agent-definition write path
|
|
127
|
+
* (chat `definition-writes`): name + system message + model + the three settings, marked quick, no
|
|
128
|
+
* tools. Nothing else is ever part of a quick agent.
|
|
129
|
+
*/
|
|
130
|
+
declare function quickAgentFields(def: QuickAgentDefinition): {
|
|
131
|
+
name: string;
|
|
132
|
+
tags: string[];
|
|
133
|
+
isActive: true;
|
|
134
|
+
isArchived: false;
|
|
135
|
+
modelId: string;
|
|
136
|
+
messages: QuickAgentSystemMessage[];
|
|
137
|
+
settings: Record<string, unknown>;
|
|
138
|
+
tools: never[];
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* A stored row read back as a quick agent; `null` when the row is not one. A setting the row does
|
|
142
|
+
* not carry rests at `defaults` (the resolved limits' resting values).
|
|
143
|
+
*/
|
|
144
|
+
declare function quickAgentFromRow(row: Record<string, unknown> | null | undefined, defaults: QuickAgentSettings): QuickAgent | null;
|
|
78
145
|
declare function isQuickAgentSummary(row: Pick<AgentSummary, "tags">): boolean;
|
|
79
146
|
/**
|
|
80
|
-
* THE
|
|
81
|
-
*
|
|
147
|
+
* THE QUICK-AGENT LIST in the platform's visibility lanes: mine, then my organization's, then the
|
|
148
|
+
* system's (the catalog's own user-type / builtin split; "mine" is what the person created).
|
|
82
149
|
*/
|
|
150
|
+
declare function listQuickAgents(rows: readonly AgentSummary[], userId: string | null): {
|
|
151
|
+
mine: AgentSummary[];
|
|
152
|
+
organization: AgentSummary[];
|
|
153
|
+
system: AgentSummary[];
|
|
154
|
+
};
|
|
155
|
+
/** The pill's list: mine, then organization, then system. */
|
|
83
156
|
declare function listMyQuickAgents(rows: readonly AgentSummary[], userId: string | null): AgentSummary[];
|
|
84
157
|
/** The big catalogue's view: quick agents leave the general list (a filter, never a delete). */
|
|
85
158
|
declare function withoutQuickAgents<T extends Pick<AgentSummary, "tags">>(rows: readonly T[]): T[];
|
|
86
159
|
|
|
87
160
|
/**
|
|
88
|
-
* The
|
|
89
|
-
*
|
|
90
|
-
* The client is the host's own RLS-bound Supabase client; nothing here knows how it was built.
|
|
161
|
+
* The one READ of a quick agent: its full definition (the catalog row carries no prompt). Reads
|
|
162
|
+
* only; every write goes through chat's one agent-definition write path.
|
|
91
163
|
*/
|
|
92
164
|
|
|
93
165
|
interface QuickAgentClient {
|
|
@@ -95,14 +167,7 @@ interface QuickAgentClient {
|
|
|
95
167
|
from(table: "definition"): any;
|
|
96
168
|
};
|
|
97
169
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
userId: string;
|
|
101
|
-
}): Promise<QuickAgent>;
|
|
102
|
-
declare function updateQuickAgent(client: QuickAgentClient, id: string, def: QuickAgentDefinition): Promise<QuickAgent>;
|
|
103
|
-
/** Soft delete — the same `deleted_at` every agent delete sets, so every list already hides it. */
|
|
104
|
-
declare function deleteQuickAgent(client: QuickAgentClient, id: string): Promise<void>;
|
|
105
|
-
/** One quick agent's full definition (the catalog row carries no prompt). */
|
|
106
|
-
declare function readQuickAgent(client: QuickAgentClient, id: string): Promise<QuickAgent | null>;
|
|
170
|
+
/** One quick agent's full definition; settings the row lacks rest at `defaults`. */
|
|
171
|
+
declare function readQuickAgent(client: QuickAgentClient, id: string, defaults: QuickAgentSettings): Promise<QuickAgent | null>;
|
|
107
172
|
|
|
108
|
-
export {
|
|
173
|
+
export { type ModelSettingRow, type ModelSettingRows, QUICK_AGENT_KIND, QUICK_AGENT_KNOBS, QUICK_AGENT_TAG, type QuickAgent, type QuickAgentClient, type QuickAgentDefinition, type QuickAgentKnobValues, type QuickAgentLimits, type QuickAgentSettingLimit, type QuickAgentSettings, type QuickAgentSystemMessage, clampQuickAgentSettings, defaultQuickAgentSettings, isQuickAgentSummary, listMyQuickAgents, listQuickAgents, quickAgentFields, quickAgentFromRow, quickAgentMessages, quickAgentProblems, quickAgentSettingsJson, readQuickAgent, resolveQuickAgentLimits, sliderStep, withoutQuickAgents };
|
package/dist/quick/index.d.ts
CHANGED
|
@@ -6,12 +6,13 @@ import { A as AgentSummary } from '../types-DZhDqrVE.js';
|
|
|
6
6
|
* A quick agent is a named bundle of exactly: name, system prompt, model and three settings
|
|
7
7
|
* (temperature, top-p, max output tokens). It is an ordinary `agent.definition` row — one agent
|
|
8
8
|
* table, one permission model, no second prompt store — marked `kind: quick` so the big catalog
|
|
9
|
-
* can hide or group it. This entry owns the shape and the pure builders/selectors;
|
|
10
|
-
*
|
|
9
|
+
* can hide or group it. This entry owns the shape and the pure builders/selectors; the WRITES go
|
|
10
|
+
* through chat's one agent-definition write path (`agents/redux/agent-definition/definition-writes`),
|
|
11
|
+
* never a second one here.
|
|
11
12
|
*
|
|
12
|
-
* The marker
|
|
13
|
-
*
|
|
14
|
-
* metadata
|
|
13
|
+
* The marker is the `kind:quick` tag: it rides every catalog row, so a list can filter without a
|
|
14
|
+
* second read — exactly how `chat-agent` marks presets. (Rows saved before the shared write path also
|
|
15
|
+
* carry `metadata.kind = "quick"`; both read as quick.)
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
18
|
declare const QUICK_AGENT_KIND: "quick";
|
|
@@ -34,26 +35,81 @@ interface QuickAgentDefinition {
|
|
|
34
35
|
interface QuickAgent extends QuickAgentDefinition {
|
|
35
36
|
id: string;
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
/** One setting's slider: where it starts, where it stops, where a new agent rests. */
|
|
39
|
+
interface QuickAgentSettingLimit {
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
step: number;
|
|
43
|
+
default: number;
|
|
44
|
+
}
|
|
45
|
+
interface QuickAgentLimits {
|
|
46
|
+
temperature: QuickAgentSettingLimit;
|
|
47
|
+
topP: QuickAgentSettingLimit;
|
|
48
|
+
maxOutputTokens: QuickAgentSettingLimit;
|
|
49
|
+
}
|
|
50
|
+
/** A model's own settings row for one control (`ai.model` controls: min / max / default), when it states one. */
|
|
51
|
+
interface ModelSettingRow {
|
|
52
|
+
min?: number | null | undefined;
|
|
53
|
+
max?: number | null | undefined;
|
|
54
|
+
default?: unknown;
|
|
55
|
+
}
|
|
56
|
+
/** The chosen model's settings rows for the three controls; a control it does not state is absent. */
|
|
57
|
+
interface ModelSettingRows {
|
|
58
|
+
temperature?: ModelSettingRow | null | undefined;
|
|
59
|
+
top_p?: ModelSettingRow | null | undefined;
|
|
60
|
+
max_output_tokens?: ModelSettingRow | null | undefined;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The `agents.quick` knob values (organization and person can set them). `undefined` = the register
|
|
64
|
+
* has not answered yet. A probability lives in 0..1 and a temperature starts at 0 by definition;
|
|
65
|
+
* every other bound and every default is a knob.
|
|
66
|
+
*/
|
|
67
|
+
interface QuickAgentKnobValues {
|
|
68
|
+
temperatureMax?: unknown;
|
|
69
|
+
temperatureDefault?: unknown;
|
|
70
|
+
topPDefault?: unknown;
|
|
71
|
+
maxOutputMin?: unknown;
|
|
72
|
+
maxOutputMax?: unknown;
|
|
73
|
+
maxOutputDefault?: unknown;
|
|
74
|
+
}
|
|
75
|
+
declare const QUICK_AGENT_KNOBS: {
|
|
76
|
+
readonly temperatureMax: {
|
|
77
|
+
readonly feature: "agents.quick";
|
|
78
|
+
readonly key: "temperature_max";
|
|
79
|
+
};
|
|
80
|
+
readonly temperatureDefault: {
|
|
81
|
+
readonly feature: "agents.quick";
|
|
82
|
+
readonly key: "temperature_default";
|
|
83
|
+
};
|
|
84
|
+
readonly topPDefault: {
|
|
85
|
+
readonly feature: "agents.quick";
|
|
86
|
+
readonly key: "top_p_default";
|
|
87
|
+
};
|
|
88
|
+
readonly maxOutputMin: {
|
|
89
|
+
readonly feature: "agents.quick";
|
|
90
|
+
readonly key: "max_output_min";
|
|
42
91
|
};
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly step: 0.05;
|
|
92
|
+
readonly maxOutputMax: {
|
|
93
|
+
readonly feature: "agents.quick";
|
|
94
|
+
readonly key: "max_output_max";
|
|
47
95
|
};
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly step: 256;
|
|
96
|
+
readonly maxOutputDefault: {
|
|
97
|
+
readonly feature: "agents.quick";
|
|
98
|
+
readonly key: "max_output_default";
|
|
52
99
|
};
|
|
53
100
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
101
|
+
/** A slider step that gives ~100 positions over the range, on a 1 / 2 / 5 grid (0.02 -> 0.05 style). */
|
|
102
|
+
declare function sliderStep(min: number, max: number): number;
|
|
103
|
+
/**
|
|
104
|
+
* THE ONE SOURCE of the three sliders' bounds and resting values: the chosen model's own settings
|
|
105
|
+
* rows where it states them, else the `agents.quick` knobs. `null` until every number is known (the
|
|
106
|
+
* panel shows no slider for a number nobody has answered — there is no code default).
|
|
107
|
+
*/
|
|
108
|
+
declare function resolveQuickAgentLimits(model: ModelSettingRows | null | undefined, knobs: QuickAgentKnobValues): QuickAgentLimits | null;
|
|
109
|
+
/** A new agent's settings: every slider at its resting value. */
|
|
110
|
+
declare function defaultQuickAgentSettings(limits: QuickAgentLimits): QuickAgentSettings;
|
|
111
|
+
/** Settings pulled inside their limits (a slider can never save a value the model refuses). */
|
|
112
|
+
declare function clampQuickAgentSettings(settings: QuickAgentSettings, limits: QuickAgentLimits): QuickAgentSettings;
|
|
57
113
|
/** What stops a save, in words — empty when the definition is saveable. */
|
|
58
114
|
declare function quickAgentProblems(def: Pick<QuickAgentDefinition, "name" | "systemPrompt" | "modelId">): string[];
|
|
59
115
|
interface QuickAgentSystemMessage {
|
|
@@ -66,28 +122,44 @@ interface QuickAgentSystemMessage {
|
|
|
66
122
|
/** The persisted `settings` JSON: the three params plus the stream flag every agent row carries. */
|
|
67
123
|
declare function quickAgentSettingsJson(settings: QuickAgentSettings): Record<string, unknown>;
|
|
68
124
|
declare function quickAgentMessages(systemPrompt: string): QuickAgentSystemMessage[];
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
125
|
+
/**
|
|
126
|
+
* The agent fields a quick agent sets, in the shape of the ONE agent-definition write path
|
|
127
|
+
* (chat `definition-writes`): name + system message + model + the three settings, marked quick, no
|
|
128
|
+
* tools. Nothing else is ever part of a quick agent.
|
|
129
|
+
*/
|
|
130
|
+
declare function quickAgentFields(def: QuickAgentDefinition): {
|
|
131
|
+
name: string;
|
|
132
|
+
tags: string[];
|
|
133
|
+
isActive: true;
|
|
134
|
+
isArchived: false;
|
|
135
|
+
modelId: string;
|
|
136
|
+
messages: QuickAgentSystemMessage[];
|
|
137
|
+
settings: Record<string, unknown>;
|
|
138
|
+
tools: never[];
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* A stored row read back as a quick agent; `null` when the row is not one. A setting the row does
|
|
142
|
+
* not carry rests at `defaults` (the resolved limits' resting values).
|
|
143
|
+
*/
|
|
144
|
+
declare function quickAgentFromRow(row: Record<string, unknown> | null | undefined, defaults: QuickAgentSettings): QuickAgent | null;
|
|
78
145
|
declare function isQuickAgentSummary(row: Pick<AgentSummary, "tags">): boolean;
|
|
79
146
|
/**
|
|
80
|
-
* THE
|
|
81
|
-
*
|
|
147
|
+
* THE QUICK-AGENT LIST in the platform's visibility lanes: mine, then my organization's, then the
|
|
148
|
+
* system's (the catalog's own user-type / builtin split; "mine" is what the person created).
|
|
82
149
|
*/
|
|
150
|
+
declare function listQuickAgents(rows: readonly AgentSummary[], userId: string | null): {
|
|
151
|
+
mine: AgentSummary[];
|
|
152
|
+
organization: AgentSummary[];
|
|
153
|
+
system: AgentSummary[];
|
|
154
|
+
};
|
|
155
|
+
/** The pill's list: mine, then organization, then system. */
|
|
83
156
|
declare function listMyQuickAgents(rows: readonly AgentSummary[], userId: string | null): AgentSummary[];
|
|
84
157
|
/** The big catalogue's view: quick agents leave the general list (a filter, never a delete). */
|
|
85
158
|
declare function withoutQuickAgents<T extends Pick<AgentSummary, "tags">>(rows: readonly T[]): T[];
|
|
86
159
|
|
|
87
160
|
/**
|
|
88
|
-
* The
|
|
89
|
-
*
|
|
90
|
-
* The client is the host's own RLS-bound Supabase client; nothing here knows how it was built.
|
|
161
|
+
* The one READ of a quick agent: its full definition (the catalog row carries no prompt). Reads
|
|
162
|
+
* only; every write goes through chat's one agent-definition write path.
|
|
91
163
|
*/
|
|
92
164
|
|
|
93
165
|
interface QuickAgentClient {
|
|
@@ -95,14 +167,7 @@ interface QuickAgentClient {
|
|
|
95
167
|
from(table: "definition"): any;
|
|
96
168
|
};
|
|
97
169
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
userId: string;
|
|
101
|
-
}): Promise<QuickAgent>;
|
|
102
|
-
declare function updateQuickAgent(client: QuickAgentClient, id: string, def: QuickAgentDefinition): Promise<QuickAgent>;
|
|
103
|
-
/** Soft delete — the same `deleted_at` every agent delete sets, so every list already hides it. */
|
|
104
|
-
declare function deleteQuickAgent(client: QuickAgentClient, id: string): Promise<void>;
|
|
105
|
-
/** One quick agent's full definition (the catalog row carries no prompt). */
|
|
106
|
-
declare function readQuickAgent(client: QuickAgentClient, id: string): Promise<QuickAgent | null>;
|
|
170
|
+
/** One quick agent's full definition; settings the row lacks rest at `defaults`. */
|
|
171
|
+
declare function readQuickAgent(client: QuickAgentClient, id: string, defaults: QuickAgentSettings): Promise<QuickAgent | null>;
|
|
107
172
|
|
|
108
|
-
export {
|
|
173
|
+
export { type ModelSettingRow, type ModelSettingRows, QUICK_AGENT_KIND, QUICK_AGENT_KNOBS, QUICK_AGENT_TAG, type QuickAgent, type QuickAgentClient, type QuickAgentDefinition, type QuickAgentKnobValues, type QuickAgentLimits, type QuickAgentSettingLimit, type QuickAgentSettings, type QuickAgentSystemMessage, clampQuickAgentSettings, defaultQuickAgentSettings, isQuickAgentSummary, listMyQuickAgents, listQuickAgents, quickAgentFields, quickAgentFromRow, quickAgentMessages, quickAgentProblems, quickAgentSettingsJson, readQuickAgent, resolveQuickAgentLimits, sliderStep, withoutQuickAgents };
|