@lssm/example.agent-console 0.0.0-canary-20251217034842 → 0.0.0-canary-20251217060433
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/.turbo/turbo-build$colon$bundle.log +81 -0
- package/.turbo/turbo-build.log +48 -46
- package/CHANGELOG.md +11 -8
- package/dist/agent/agent.contracts.d.ts +504 -0
- package/dist/agent/agent.entity.d.ts +54 -0
- package/dist/agent/agent.enum.d.ts +17 -0
- package/dist/agent/agent.event.d.ts +127 -0
- package/dist/agent/agent.handler.d.ts +99 -0
- package/dist/agent/agent.presentation.d.ts +18 -0
- package/dist/agent/agent.schema.d.ts +400 -0
- package/dist/agent/index.d.ts +8 -0
- package/dist/agent.feature.d.ts +11 -0
- package/dist/docs/agent-console.docblock.d.ts +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/example.d.ts +39 -0
- package/dist/handlers/index.d.ts +4 -0
- package/dist/index.d.ts +30 -0
- package/dist/presentations/index.d.ts +4 -0
- package/dist/run/index.d.ts +8 -0
- package/dist/run/run.contracts.d.ts +713 -0
- package/dist/run/run.entity.d.ts +81 -0
- package/dist/run/run.enum.d.ts +21 -0
- package/dist/run/run.event.d.ts +289 -0
- package/dist/run/run.handler.d.ts +202 -0
- package/dist/run/run.presentation.d.ts +14 -0
- package/dist/run/run.schema.d.ts +415 -0
- package/dist/shared/index.d.ts +4 -0
- package/dist/shared/mock-agents.d.ts +87 -0
- package/dist/shared/mock-runs.d.ts +119 -0
- package/dist/shared/mock-tools.d.ts +243 -0
- package/dist/tool/index.d.ts +8 -0
- package/dist/tool/tool.contracts.d.ts +404 -0
- package/dist/tool/tool.entity.d.ts +41 -0
- package/dist/tool/tool.enum.d.ts +17 -0
- package/dist/tool/tool.event.d.ts +102 -0
- package/dist/tool/tool.handler.d.ts +314 -0
- package/dist/tool/tool.presentation.d.ts +14 -0
- package/dist/tool/tool.schema.d.ts +217 -0
- package/package.json +10 -8
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
//#region src/agent/agent.handler.d.ts
|
|
2
|
+
interface ListAgentsInput {
|
|
3
|
+
organizationId: string;
|
|
4
|
+
status?: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
|
|
5
|
+
modelProvider?: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'MISTRAL' | 'CUSTOM';
|
|
6
|
+
search?: string;
|
|
7
|
+
limit?: number;
|
|
8
|
+
offset?: number;
|
|
9
|
+
}
|
|
10
|
+
interface AgentSummary {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
status: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
|
|
16
|
+
modelProvider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'MISTRAL' | 'CUSTOM';
|
|
17
|
+
modelName: string;
|
|
18
|
+
version: string;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
}
|
|
21
|
+
interface ListAgentsOutput {
|
|
22
|
+
items: AgentSummary[];
|
|
23
|
+
total: number;
|
|
24
|
+
hasMore: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface GetAgentInput {
|
|
27
|
+
agentId: string;
|
|
28
|
+
includeTools?: boolean;
|
|
29
|
+
}
|
|
30
|
+
interface AgentToolRef {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
slug: string;
|
|
34
|
+
description: string;
|
|
35
|
+
category: string;
|
|
36
|
+
}
|
|
37
|
+
interface AgentWithTools {
|
|
38
|
+
id: string;
|
|
39
|
+
organizationId: string;
|
|
40
|
+
name: string;
|
|
41
|
+
slug: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
status: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
|
|
44
|
+
modelProvider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'MISTRAL' | 'CUSTOM';
|
|
45
|
+
modelName: string;
|
|
46
|
+
modelConfig?: Record<string, unknown>;
|
|
47
|
+
systemPrompt: string;
|
|
48
|
+
userPromptTemplate?: string;
|
|
49
|
+
toolIds?: string[];
|
|
50
|
+
toolChoice: 'auto' | 'required' | 'none';
|
|
51
|
+
maxIterations: number;
|
|
52
|
+
maxTokensPerRun?: number;
|
|
53
|
+
timeoutMs: number;
|
|
54
|
+
version: string;
|
|
55
|
+
tags?: string[];
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
tools?: AgentToolRef[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Mock handler for ListAgentsQuery.
|
|
62
|
+
*/
|
|
63
|
+
declare function mockListAgentsHandler(input: ListAgentsInput): Promise<ListAgentsOutput>;
|
|
64
|
+
/**
|
|
65
|
+
* Mock handler for GetAgentQuery.
|
|
66
|
+
*/
|
|
67
|
+
declare function mockGetAgentHandler(input: GetAgentInput): Promise<AgentWithTools>;
|
|
68
|
+
/**
|
|
69
|
+
* Mock handler for CreateAgentCommand.
|
|
70
|
+
*/
|
|
71
|
+
declare function mockCreateAgentHandler(input: {
|
|
72
|
+
organizationId: string;
|
|
73
|
+
name: string;
|
|
74
|
+
slug: string;
|
|
75
|
+
description?: string;
|
|
76
|
+
modelProvider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'MISTRAL' | 'CUSTOM';
|
|
77
|
+
modelName: string;
|
|
78
|
+
systemPrompt: string;
|
|
79
|
+
}): Promise<{
|
|
80
|
+
id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
slug: string;
|
|
83
|
+
status: "DRAFT";
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Mock handler for UpdateAgentCommand.
|
|
87
|
+
*/
|
|
88
|
+
declare function mockUpdateAgentHandler(input: {
|
|
89
|
+
agentId: string;
|
|
90
|
+
name?: string;
|
|
91
|
+
status?: 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED';
|
|
92
|
+
}): Promise<{
|
|
93
|
+
id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
status: "ACTIVE" | "PAUSED" | "DRAFT" | "ARCHIVED";
|
|
96
|
+
updatedAt: Date;
|
|
97
|
+
}>;
|
|
98
|
+
//#endregion
|
|
99
|
+
export { AgentSummary, AgentToolRef, AgentWithTools, GetAgentInput, ListAgentsInput, ListAgentsOutput, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/agent/agent.presentation.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Presentation for displaying a list of AI agents.
|
|
7
|
+
*/
|
|
8
|
+
declare const AgentListPresentation: PresentationDescriptorV2;
|
|
9
|
+
/**
|
|
10
|
+
* Presentation for agent detail view.
|
|
11
|
+
*/
|
|
12
|
+
declare const AgentDetailPresentation: PresentationDescriptorV2;
|
|
13
|
+
/**
|
|
14
|
+
* Dashboard presentation for Agent Console - overview of agents, runs, and tools.
|
|
15
|
+
*/
|
|
16
|
+
declare const AgentConsoleDashboardPresentation: PresentationDescriptorV2;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation };
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import * as _lssm_lib_schema513 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/agent/agent.schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* AI agent configuration schema.
|
|
6
|
+
*/
|
|
7
|
+
declare const AgentModel: _lssm_lib_schema513.SchemaModel<{
|
|
8
|
+
id: {
|
|
9
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
organizationId: {
|
|
13
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
14
|
+
isOptional: false;
|
|
15
|
+
};
|
|
16
|
+
name: {
|
|
17
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
18
|
+
isOptional: false;
|
|
19
|
+
};
|
|
20
|
+
slug: {
|
|
21
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
22
|
+
isOptional: false;
|
|
23
|
+
};
|
|
24
|
+
description: {
|
|
25
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
26
|
+
isOptional: true;
|
|
27
|
+
};
|
|
28
|
+
status: {
|
|
29
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string, string]>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
modelProvider: {
|
|
33
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string, string, string]>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
modelName: {
|
|
37
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
38
|
+
isOptional: false;
|
|
39
|
+
};
|
|
40
|
+
modelConfig: {
|
|
41
|
+
type: _lssm_lib_schema513.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
42
|
+
isOptional: true;
|
|
43
|
+
};
|
|
44
|
+
systemPrompt: {
|
|
45
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
46
|
+
isOptional: false;
|
|
47
|
+
};
|
|
48
|
+
userPromptTemplate: {
|
|
49
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
50
|
+
isOptional: true;
|
|
51
|
+
};
|
|
52
|
+
toolIds: {
|
|
53
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
54
|
+
isArray: true;
|
|
55
|
+
isOptional: true;
|
|
56
|
+
};
|
|
57
|
+
toolChoice: {
|
|
58
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string]>;
|
|
59
|
+
isOptional: false;
|
|
60
|
+
defaultValue: string;
|
|
61
|
+
};
|
|
62
|
+
maxIterations: {
|
|
63
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
64
|
+
isOptional: false;
|
|
65
|
+
defaultValue: number;
|
|
66
|
+
};
|
|
67
|
+
maxTokensPerRun: {
|
|
68
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
69
|
+
isOptional: true;
|
|
70
|
+
};
|
|
71
|
+
timeoutMs: {
|
|
72
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
73
|
+
isOptional: false;
|
|
74
|
+
defaultValue: number;
|
|
75
|
+
};
|
|
76
|
+
version: {
|
|
77
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
78
|
+
isOptional: false;
|
|
79
|
+
};
|
|
80
|
+
tags: {
|
|
81
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
82
|
+
isArray: true;
|
|
83
|
+
isOptional: true;
|
|
84
|
+
};
|
|
85
|
+
createdAt: {
|
|
86
|
+
type: _lssm_lib_schema513.FieldType<Date, string>;
|
|
87
|
+
isOptional: false;
|
|
88
|
+
};
|
|
89
|
+
updatedAt: {
|
|
90
|
+
type: _lssm_lib_schema513.FieldType<Date, string>;
|
|
91
|
+
isOptional: false;
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* Summary of an agent for list views.
|
|
96
|
+
*/
|
|
97
|
+
declare const AgentSummaryModel: _lssm_lib_schema513.SchemaModel<{
|
|
98
|
+
id: {
|
|
99
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
100
|
+
isOptional: false;
|
|
101
|
+
};
|
|
102
|
+
name: {
|
|
103
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
104
|
+
isOptional: false;
|
|
105
|
+
};
|
|
106
|
+
slug: {
|
|
107
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
108
|
+
isOptional: false;
|
|
109
|
+
};
|
|
110
|
+
description: {
|
|
111
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
112
|
+
isOptional: true;
|
|
113
|
+
};
|
|
114
|
+
status: {
|
|
115
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string, string]>;
|
|
116
|
+
isOptional: false;
|
|
117
|
+
};
|
|
118
|
+
modelProvider: {
|
|
119
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string, string, string]>;
|
|
120
|
+
isOptional: false;
|
|
121
|
+
};
|
|
122
|
+
modelName: {
|
|
123
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
124
|
+
isOptional: false;
|
|
125
|
+
};
|
|
126
|
+
version: {
|
|
127
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
128
|
+
isOptional: false;
|
|
129
|
+
};
|
|
130
|
+
createdAt: {
|
|
131
|
+
type: _lssm_lib_schema513.FieldType<Date, string>;
|
|
132
|
+
isOptional: false;
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
/**
|
|
136
|
+
* Tool reference in agent context.
|
|
137
|
+
*/
|
|
138
|
+
declare const AgentToolRefModel: _lssm_lib_schema513.SchemaModel<{
|
|
139
|
+
id: {
|
|
140
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
141
|
+
isOptional: false;
|
|
142
|
+
};
|
|
143
|
+
name: {
|
|
144
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
145
|
+
isOptional: false;
|
|
146
|
+
};
|
|
147
|
+
slug: {
|
|
148
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
149
|
+
isOptional: false;
|
|
150
|
+
};
|
|
151
|
+
description: {
|
|
152
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
153
|
+
isOptional: false;
|
|
154
|
+
};
|
|
155
|
+
category: {
|
|
156
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
157
|
+
isOptional: false;
|
|
158
|
+
};
|
|
159
|
+
}>;
|
|
160
|
+
/**
|
|
161
|
+
* Agent with associated tools.
|
|
162
|
+
*/
|
|
163
|
+
declare const AgentWithToolsModel: _lssm_lib_schema513.SchemaModel<{
|
|
164
|
+
id: {
|
|
165
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
166
|
+
isOptional: false;
|
|
167
|
+
};
|
|
168
|
+
organizationId: {
|
|
169
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
170
|
+
isOptional: false;
|
|
171
|
+
};
|
|
172
|
+
name: {
|
|
173
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
174
|
+
isOptional: false;
|
|
175
|
+
};
|
|
176
|
+
slug: {
|
|
177
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
178
|
+
isOptional: false;
|
|
179
|
+
};
|
|
180
|
+
description: {
|
|
181
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
182
|
+
isOptional: true;
|
|
183
|
+
};
|
|
184
|
+
status: {
|
|
185
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string, string]>;
|
|
186
|
+
isOptional: false;
|
|
187
|
+
};
|
|
188
|
+
modelProvider: {
|
|
189
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string, string, string]>;
|
|
190
|
+
isOptional: false;
|
|
191
|
+
};
|
|
192
|
+
modelName: {
|
|
193
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
194
|
+
isOptional: false;
|
|
195
|
+
};
|
|
196
|
+
modelConfig: {
|
|
197
|
+
type: _lssm_lib_schema513.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
198
|
+
isOptional: true;
|
|
199
|
+
};
|
|
200
|
+
systemPrompt: {
|
|
201
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
202
|
+
isOptional: false;
|
|
203
|
+
};
|
|
204
|
+
userPromptTemplate: {
|
|
205
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
206
|
+
isOptional: true;
|
|
207
|
+
};
|
|
208
|
+
toolIds: {
|
|
209
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
210
|
+
isArray: true;
|
|
211
|
+
isOptional: true;
|
|
212
|
+
};
|
|
213
|
+
toolChoice: {
|
|
214
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string]>;
|
|
215
|
+
isOptional: false;
|
|
216
|
+
};
|
|
217
|
+
maxIterations: {
|
|
218
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
219
|
+
isOptional: false;
|
|
220
|
+
};
|
|
221
|
+
maxTokensPerRun: {
|
|
222
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
223
|
+
isOptional: true;
|
|
224
|
+
};
|
|
225
|
+
timeoutMs: {
|
|
226
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
227
|
+
isOptional: false;
|
|
228
|
+
};
|
|
229
|
+
version: {
|
|
230
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
231
|
+
isOptional: false;
|
|
232
|
+
};
|
|
233
|
+
tags: {
|
|
234
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
235
|
+
isArray: true;
|
|
236
|
+
isOptional: true;
|
|
237
|
+
};
|
|
238
|
+
createdAt: {
|
|
239
|
+
type: _lssm_lib_schema513.FieldType<Date, string>;
|
|
240
|
+
isOptional: false;
|
|
241
|
+
};
|
|
242
|
+
updatedAt: {
|
|
243
|
+
type: _lssm_lib_schema513.FieldType<Date, string>;
|
|
244
|
+
isOptional: false;
|
|
245
|
+
};
|
|
246
|
+
tools: {
|
|
247
|
+
type: _lssm_lib_schema513.SchemaModel<{
|
|
248
|
+
id: {
|
|
249
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
250
|
+
isOptional: false;
|
|
251
|
+
};
|
|
252
|
+
name: {
|
|
253
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
254
|
+
isOptional: false;
|
|
255
|
+
};
|
|
256
|
+
slug: {
|
|
257
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
258
|
+
isOptional: false;
|
|
259
|
+
};
|
|
260
|
+
description: {
|
|
261
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
262
|
+
isOptional: false;
|
|
263
|
+
};
|
|
264
|
+
category: {
|
|
265
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
266
|
+
isOptional: false;
|
|
267
|
+
};
|
|
268
|
+
}>;
|
|
269
|
+
isArray: true;
|
|
270
|
+
isOptional: true;
|
|
271
|
+
};
|
|
272
|
+
}>;
|
|
273
|
+
/**
|
|
274
|
+
* Input for creating an agent.
|
|
275
|
+
*/
|
|
276
|
+
declare const CreateAgentInputModel: _lssm_lib_schema513.SchemaModel<{
|
|
277
|
+
organizationId: {
|
|
278
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
279
|
+
isOptional: false;
|
|
280
|
+
};
|
|
281
|
+
name: {
|
|
282
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
283
|
+
isOptional: false;
|
|
284
|
+
};
|
|
285
|
+
slug: {
|
|
286
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
287
|
+
isOptional: false;
|
|
288
|
+
};
|
|
289
|
+
description: {
|
|
290
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
291
|
+
isOptional: true;
|
|
292
|
+
};
|
|
293
|
+
modelProvider: {
|
|
294
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string, string, string]>;
|
|
295
|
+
isOptional: false;
|
|
296
|
+
};
|
|
297
|
+
modelName: {
|
|
298
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
299
|
+
isOptional: false;
|
|
300
|
+
};
|
|
301
|
+
modelConfig: {
|
|
302
|
+
type: _lssm_lib_schema513.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
303
|
+
isOptional: true;
|
|
304
|
+
};
|
|
305
|
+
systemPrompt: {
|
|
306
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
307
|
+
isOptional: false;
|
|
308
|
+
};
|
|
309
|
+
userPromptTemplate: {
|
|
310
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
311
|
+
isOptional: true;
|
|
312
|
+
};
|
|
313
|
+
toolIds: {
|
|
314
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
315
|
+
isArray: true;
|
|
316
|
+
isOptional: true;
|
|
317
|
+
};
|
|
318
|
+
toolChoice: {
|
|
319
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string]>;
|
|
320
|
+
isOptional: true;
|
|
321
|
+
};
|
|
322
|
+
maxIterations: {
|
|
323
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
324
|
+
isOptional: true;
|
|
325
|
+
};
|
|
326
|
+
maxTokensPerRun: {
|
|
327
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
328
|
+
isOptional: true;
|
|
329
|
+
};
|
|
330
|
+
timeoutMs: {
|
|
331
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
332
|
+
isOptional: true;
|
|
333
|
+
};
|
|
334
|
+
tags: {
|
|
335
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
336
|
+
isArray: true;
|
|
337
|
+
isOptional: true;
|
|
338
|
+
};
|
|
339
|
+
}>;
|
|
340
|
+
/**
|
|
341
|
+
* Input for updating an agent.
|
|
342
|
+
*/
|
|
343
|
+
declare const UpdateAgentInputModel: _lssm_lib_schema513.SchemaModel<{
|
|
344
|
+
agentId: {
|
|
345
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
346
|
+
isOptional: false;
|
|
347
|
+
};
|
|
348
|
+
name: {
|
|
349
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
350
|
+
isOptional: true;
|
|
351
|
+
};
|
|
352
|
+
description: {
|
|
353
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
354
|
+
isOptional: true;
|
|
355
|
+
};
|
|
356
|
+
status: {
|
|
357
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string, string]>;
|
|
358
|
+
isOptional: true;
|
|
359
|
+
};
|
|
360
|
+
modelConfig: {
|
|
361
|
+
type: _lssm_lib_schema513.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
362
|
+
isOptional: true;
|
|
363
|
+
};
|
|
364
|
+
systemPrompt: {
|
|
365
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
366
|
+
isOptional: true;
|
|
367
|
+
};
|
|
368
|
+
userPromptTemplate: {
|
|
369
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
370
|
+
isOptional: true;
|
|
371
|
+
};
|
|
372
|
+
toolIds: {
|
|
373
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
374
|
+
isArray: true;
|
|
375
|
+
isOptional: true;
|
|
376
|
+
};
|
|
377
|
+
toolChoice: {
|
|
378
|
+
type: _lssm_lib_schema513.EnumType<[string, string, string]>;
|
|
379
|
+
isOptional: true;
|
|
380
|
+
};
|
|
381
|
+
maxIterations: {
|
|
382
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
383
|
+
isOptional: true;
|
|
384
|
+
};
|
|
385
|
+
maxTokensPerRun: {
|
|
386
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
387
|
+
isOptional: true;
|
|
388
|
+
};
|
|
389
|
+
timeoutMs: {
|
|
390
|
+
type: _lssm_lib_schema513.FieldType<number, number>;
|
|
391
|
+
isOptional: true;
|
|
392
|
+
};
|
|
393
|
+
tags: {
|
|
394
|
+
type: _lssm_lib_schema513.FieldType<string, string>;
|
|
395
|
+
isArray: true;
|
|
396
|
+
isOptional: true;
|
|
397
|
+
};
|
|
398
|
+
}>;
|
|
399
|
+
//#endregion
|
|
400
|
+
export { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand } from "./agent.contracts.js";
|
|
2
|
+
import { AgentEntity, AgentStatusEntityEnum, AgentToolEntity, ModelProviderEntityEnum } from "./agent.entity.js";
|
|
3
|
+
import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent.enum.js";
|
|
4
|
+
import { AgentCreatedEvent, AgentToolAssignedEvent, AgentToolRemovedEvent, AgentUpdatedEvent } from "./agent.event.js";
|
|
5
|
+
import { AgentSummary, AgentToolRef, AgentWithTools, GetAgentInput, ListAgentsInput, ListAgentsOutput, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler } from "./agent.handler.js";
|
|
6
|
+
import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "./agent.presentation.js";
|
|
7
|
+
import { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel } from "./agent.schema.js";
|
|
8
|
+
export { AgentConsoleDashboardPresentation, AgentCreatedEvent, AgentDetailPresentation, AgentEntity, AgentListPresentation, AgentModel, AgentStatusEntityEnum, AgentStatusEnum, type AgentSummary, AgentSummaryModel, AgentToolAssignedEvent, AgentToolEntity, type AgentToolRef, AgentToolRefModel, AgentToolRemovedEvent, AgentUpdatedEvent, type AgentWithTools, AgentWithToolsModel, AssignToolToAgentCommand, CreateAgentCommand, CreateAgentInputModel, type GetAgentInput, GetAgentQuery, type ListAgentsInput, type ListAgentsOutput, ListAgentsQuery, ModelProviderEntityEnum, ModelProviderEnum, RemoveToolFromAgentCommand, ToolChoiceEnum, UpdateAgentCommand, UpdateAgentInputModel, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FeatureModuleSpec } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/agent.feature.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Agent Console feature module that bundles all agent, tool, and run
|
|
7
|
+
* operations, events, and presentations into an installable feature.
|
|
8
|
+
*/
|
|
9
|
+
declare const AgentConsoleFeature: FeatureModuleSpec;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AgentConsoleFeature };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/example.d.ts
|
|
2
|
+
declare const example: {
|
|
3
|
+
readonly id: "agent-console";
|
|
4
|
+
readonly title: "Agent Console";
|
|
5
|
+
readonly summary: "AI agent ops console: tools, agents, runs, logs, and metrics (spec-first, regenerable).";
|
|
6
|
+
readonly tags: readonly ["ai", "agents", "tools", "orchestration"];
|
|
7
|
+
readonly kind: "template";
|
|
8
|
+
readonly visibility: "public";
|
|
9
|
+
readonly docs: {
|
|
10
|
+
readonly rootDocId: "docs.examples.agent-console.reference";
|
|
11
|
+
readonly goalDocId: "docs.examples.agent-console.goal";
|
|
12
|
+
readonly usageDocId: "docs.examples.agent-console.usage";
|
|
13
|
+
readonly constraintsDocId: "docs.examples.agent-console.constraints";
|
|
14
|
+
};
|
|
15
|
+
readonly entrypoints: {
|
|
16
|
+
readonly packageName: "@lssm/example.agent-console";
|
|
17
|
+
readonly feature: "./feature";
|
|
18
|
+
readonly contracts: "./contracts";
|
|
19
|
+
readonly presentations: "./presentations";
|
|
20
|
+
readonly handlers: "./handlers";
|
|
21
|
+
readonly docs: "./docs";
|
|
22
|
+
};
|
|
23
|
+
readonly surfaces: {
|
|
24
|
+
readonly templates: true;
|
|
25
|
+
readonly sandbox: {
|
|
26
|
+
readonly enabled: true;
|
|
27
|
+
readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
|
|
28
|
+
};
|
|
29
|
+
readonly studio: {
|
|
30
|
+
readonly enabled: true;
|
|
31
|
+
readonly installable: true;
|
|
32
|
+
};
|
|
33
|
+
readonly mcp: {
|
|
34
|
+
readonly enabled: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { example as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AgentSummary, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler } from "../agent/agent.handler.js";
|
|
2
|
+
import { RunSummary, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "../run/run.handler.js";
|
|
3
|
+
import { ToolSummary, mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler } from "../tool/tool.handler.js";
|
|
4
|
+
export { type AgentSummary, type RunSummary, type ToolSummary, mockCreateAgentHandler, mockCreateToolHandler, mockExecuteAgentHandler, mockGetAgentHandler, mockGetRunHandler, mockGetToolHandler, mockListAgentsHandler, mockListRunsHandler, mockListToolsHandler };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AgentConsoleFeature } from "./agent.feature.js";
|
|
2
|
+
import { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand } from "./agent/agent.contracts.js";
|
|
3
|
+
import { AgentEntity, AgentStatusEntityEnum, AgentToolEntity, ModelProviderEntityEnum } from "./agent/agent.entity.js";
|
|
4
|
+
import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent/agent.enum.js";
|
|
5
|
+
import { AgentCreatedEvent, AgentToolAssignedEvent, AgentToolRemovedEvent, AgentUpdatedEvent } from "./agent/agent.event.js";
|
|
6
|
+
import { AgentSummary, AgentToolRef, AgentWithTools, GetAgentInput, ListAgentsInput, ListAgentsOutput, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler } from "./agent/agent.handler.js";
|
|
7
|
+
import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "./agent/agent.presentation.js";
|
|
8
|
+
import { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel } from "./agent/agent.schema.js";
|
|
9
|
+
import "./agent/index.js";
|
|
10
|
+
import example from "./example.js";
|
|
11
|
+
import { ListRunsInput, ListRunsOutput, RunSummary, mockCancelRunHandler, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "./run/run.handler.js";
|
|
12
|
+
import { ListToolsInput, ListToolsOutput, ToolSummary, mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateToolHandler } from "./tool/tool.handler.js";
|
|
13
|
+
import { GranularityEnum, LogLevelEnum, RunStatusEnum, RunStepTypeEnum } from "./run/run.enum.js";
|
|
14
|
+
import { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel } from "./run/run.schema.js";
|
|
15
|
+
import { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, ListRunsQuery } from "./run/run.contracts.js";
|
|
16
|
+
import { MessageGeneratedEvent, RunCancelledEvent, RunCompletedEvent, RunFailedEvent, RunStartedEvent, ToolCompletedEvent, ToolInvokedEvent } from "./run/run.event.js";
|
|
17
|
+
import { LogLevelEntityEnum, RunEntity, RunLogEntity, RunStatusEntityEnum, RunStepEntity, RunStepTypeEntityEnum } from "./run/run.entity.js";
|
|
18
|
+
import { RunDetailPresentation, RunListPresentation } from "./run/run.presentation.js";
|
|
19
|
+
import "./run/index.js";
|
|
20
|
+
import { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum } from "./tool/tool.enum.js";
|
|
21
|
+
import { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel } from "./tool/tool.schema.js";
|
|
22
|
+
import { CreateToolCommand, GetToolQuery, ListToolsQuery, TestToolCommand, UpdateToolCommand } from "./tool/tool.contracts.js";
|
|
23
|
+
import { ToolCreatedEvent, ToolStatusChangedEvent, ToolUpdatedEvent } from "./tool/tool.event.js";
|
|
24
|
+
import { ImplementationTypeEntityEnum, ToolCategoryEntityEnum, ToolEntity, ToolStatusEntityEnum } from "./tool/tool.entity.js";
|
|
25
|
+
import { ToolDetailPresentation, ToolListPresentation } from "./tool/tool.presentation.js";
|
|
26
|
+
import "./tool/index.js";
|
|
27
|
+
import { MOCK_AGENTS } from "./shared/mock-agents.js";
|
|
28
|
+
import { MOCK_TOOLS } from "./shared/mock-tools.js";
|
|
29
|
+
import { MOCK_RUNS } from "./shared/mock-runs.js";
|
|
30
|
+
export { AgentConsoleDashboardPresentation, AgentConsoleFeature, AgentCreatedEvent, AgentDetailPresentation, AgentEntity, AgentListPresentation, AgentModel, AgentStatusEntityEnum, AgentStatusEnum, AgentSummary, AgentSummaryModel, AgentToolAssignedEvent, AgentToolEntity, AgentToolRef, AgentToolRefModel, AgentToolRemovedEvent, AgentUpdatedEvent, AgentWithTools, AgentWithToolsModel, AssignToolToAgentCommand, CancelRunCommand, CreateAgentCommand, CreateAgentInputModel, CreateToolCommand, CreateToolInputModel, ExecuteAgentCommand, GetAgentInput, GetAgentQuery, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, GetToolQuery, GranularityEnum, ImplementationTypeEntityEnum, ImplementationTypeEnum, ListAgentsInput, ListAgentsOutput, ListAgentsQuery, ListRunsInput, ListRunsOutput, ListRunsQuery, ListToolsInput, ListToolsOutput, ListToolsQuery, LogLevelEntityEnum, LogLevelEnum, MOCK_AGENTS, MOCK_RUNS, MOCK_TOOLS, MessageGeneratedEvent, ModelProviderEntityEnum, ModelProviderEnum, RemoveToolFromAgentCommand, RunAgentRefModel, RunCancelledEvent, RunCompletedEvent, RunDetailPresentation, RunEntity, RunFailedEvent, RunInputModel, RunListPresentation, RunLogEntity, RunLogModel, RunModel, RunStartedEvent, RunStatusEntityEnum, RunStatusEnum, RunStepEntity, RunStepModel, RunStepTypeEntityEnum, RunStepTypeEnum, RunSummary, RunSummaryModel, TestToolCommand, TimelineDataPointModel, ToolCategoryEntityEnum, ToolCategoryEnum, ToolChoiceEnum, ToolCompletedEvent, ToolCreatedEvent, ToolDetailPresentation, ToolEntity, ToolInvokedEvent, ToolListPresentation, ToolModel, ToolStatusChangedEvent, ToolStatusEntityEnum, ToolStatusEnum, ToolSummary, ToolSummaryModel, ToolUpdatedEvent, UpdateAgentCommand, UpdateAgentInputModel, UpdateToolCommand, UpdateToolInputModel, example, mockCancelRunHandler, mockCreateAgentHandler, mockCreateToolHandler, mockExecuteAgentHandler, mockGetAgentHandler, mockGetRunHandler, mockGetToolHandler, mockListAgentsHandler, mockListRunsHandler, mockListToolsHandler, mockTestToolHandler, mockUpdateAgentHandler, mockUpdateToolHandler };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "../agent/agent.presentation.js";
|
|
2
|
+
import { RunDetailPresentation, RunListPresentation } from "../run/run.presentation.js";
|
|
3
|
+
import { ToolDetailPresentation, ToolListPresentation } from "../tool/tool.presentation.js";
|
|
4
|
+
export { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation, RunDetailPresentation, RunListPresentation, RunDetailPresentation as RunMetricsPresentation, ToolDetailPresentation, ToolListPresentation, ToolListPresentation as ToolRegistryPresentation };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ListRunsInput, ListRunsOutput, RunSummary, mockCancelRunHandler, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler } from "./run.handler.js";
|
|
2
|
+
import { GranularityEnum, LogLevelEnum, RunStatusEnum, RunStepTypeEnum } from "./run.enum.js";
|
|
3
|
+
import { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel } from "./run.schema.js";
|
|
4
|
+
import { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, ListRunsQuery } from "./run.contracts.js";
|
|
5
|
+
import { MessageGeneratedEvent, RunCancelledEvent, RunCompletedEvent, RunFailedEvent, RunStartedEvent, ToolCompletedEvent, ToolInvokedEvent } from "./run.event.js";
|
|
6
|
+
import { LogLevelEntityEnum, RunEntity, RunLogEntity, RunStatusEntityEnum, RunStepEntity, RunStepTypeEntityEnum } from "./run.entity.js";
|
|
7
|
+
import { RunDetailPresentation, RunListPresentation } from "./run.presentation.js";
|
|
8
|
+
export { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, GranularityEnum, type ListRunsInput, type ListRunsOutput, ListRunsQuery, LogLevelEntityEnum, LogLevelEnum, MessageGeneratedEvent, RunAgentRefModel, RunCancelledEvent, RunCompletedEvent, RunDetailPresentation, RunEntity, RunFailedEvent, RunInputModel, RunListPresentation, RunLogEntity, RunLogModel, RunModel, RunStartedEvent, RunStatusEntityEnum, RunStatusEnum, RunStepEntity, RunStepModel, RunStepTypeEntityEnum, RunStepTypeEnum, type RunSummary, RunSummaryModel, TimelineDataPointModel, ToolCompletedEvent, ToolInvokedEvent, mockCancelRunHandler, mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler };
|