@alexnetrebskii/hive-agent 0.24.0 → 0.26.0
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/dist/agent.d.ts +2 -2
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +48 -360
- package/dist/agent.js.map +1 -1
- package/dist/executor.d.ts +1 -1
- package/dist/executor.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/prompt/index.d.ts +10 -0
- package/dist/prompt/index.d.ts.map +1 -0
- package/dist/prompt/index.js +11 -0
- package/dist/prompt/index.js.map +1 -0
- package/dist/prompt/main-agent-builder.d.ts +76 -0
- package/dist/prompt/main-agent-builder.d.ts.map +1 -0
- package/dist/prompt/main-agent-builder.js +216 -0
- package/dist/prompt/main-agent-builder.js.map +1 -0
- package/dist/prompt/sub-agent-builder.d.ts +133 -0
- package/dist/prompt/sub-agent-builder.d.ts.map +1 -0
- package/dist/prompt/sub-agent-builder.js +332 -0
- package/dist/prompt/sub-agent-builder.js.map +1 -0
- package/dist/prompt/templates.d.ts +87 -0
- package/dist/prompt/templates.d.ts.map +1 -0
- package/dist/prompt/templates.js +338 -0
- package/dist/prompt/templates.js.map +1 -0
- package/dist/prompt/types.d.ts +159 -0
- package/dist/prompt/types.d.ts.map +1 -0
- package/dist/prompt/types.js +5 -0
- package/dist/prompt/types.js.map +1 -0
- package/dist/prompt.d.ts +1 -0
- package/dist/prompt.d.ts.map +1 -1
- package/dist/prompt.js +2 -0
- package/dist/prompt.js.map +1 -1
- package/dist/providers/dataset/recorder.d.ts.map +1 -1
- package/dist/providers/dataset/recorder.js +8 -2
- package/dist/providers/dataset/recorder.js.map +1 -1
- package/dist/tools/ask-user.d.ts +11 -0
- package/dist/tools/ask-user.d.ts.map +1 -0
- package/dist/tools/ask-user.js +88 -0
- package/dist/tools/ask-user.js.map +1 -0
- package/dist/tools/index.d.ts +10 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +14 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/output.d.ts +15 -0
- package/dist/tools/output.d.ts.map +1 -0
- package/dist/tools/output.js +40 -0
- package/dist/tools/output.js.map +1 -0
- package/dist/tools/task.d.ts +25 -0
- package/dist/tools/task.d.ts.map +1 -0
- package/dist/tools/task.js +292 -0
- package/dist/tools/task.js.map +1 -0
- package/dist/{todo.d.ts → tools/todo.d.ts} +1 -1
- package/dist/tools/todo.d.ts.map +1 -0
- package/dist/tools/todo.js +476 -0
- package/dist/tools/todo.js.map +1 -0
- package/package.json +1 -1
- package/dist/todo.d.ts.map +0 -1
- package/dist/todo.js +0 -325
- package/dist/todo.js.map +0 -1
package/dist/agent.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Main agent class that orchestrates tool execution, sub-agents, and context management.
|
|
5
5
|
*/
|
|
6
|
-
import type { HiveConfig, RunOptions, AgentResult } from
|
|
7
|
-
import { TraceBuilder } from
|
|
6
|
+
import type { HiveConfig, RunOptions, AgentResult } from "./types.js";
|
|
7
|
+
import { TraceBuilder } from "./trace.js";
|
|
8
8
|
/**
|
|
9
9
|
* Hive Agent Class
|
|
10
10
|
*/
|
package/dist/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,UAAU,EAGV,UAAU,EACV,WAAW,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,UAAU,EAGV,UAAU,EACV,WAAW,EAEZ,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAS1C;;GAEG;AACH,qBAAa,IAAI;IACf,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,KAAK,CAAS;IACtB,oEAAoE;IACpE,OAAO,CAAC,mBAAmB,CAAC,CAAe;gBAE/B,MAAM,EAAE,UAAU;IAoC9B;;OAEG;IACH,sBAAsB,IAAI,YAAY,GAAG,SAAS;IAIlD;;OAEG;IACH,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS,GAAG,IAAI;IAI/D;;OAEG;IACH,OAAO,CAAC,WAAW;IAenB;;OAEG;IACG,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,WAAW,CAAC;CAqK3E"}
|
package/dist/agent.js
CHANGED
|
@@ -3,331 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Main agent class that orchestrates tool execution, sub-agents, and context management.
|
|
5
5
|
*/
|
|
6
|
-
import { ContextManager } from
|
|
7
|
-
import { executeLoop } from
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
/**
|
|
12
|
-
* Create the __ask_user__ tool
|
|
13
|
-
*/
|
|
14
|
-
function createAskUserTool() {
|
|
15
|
-
return {
|
|
16
|
-
name: '__ask_user__',
|
|
17
|
-
description: `Ask the user clarifying question(s) when you need more information.
|
|
18
|
-
|
|
19
|
-
Format:
|
|
20
|
-
{
|
|
21
|
-
"questions": [
|
|
22
|
-
{
|
|
23
|
-
"question": "Which database should we use?",
|
|
24
|
-
"header": "Database",
|
|
25
|
-
"options": [
|
|
26
|
-
{ "label": "PostgreSQL", "description": "Best for complex queries" },
|
|
27
|
-
{ "label": "MongoDB", "description": "Best for flexible schemas" }
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
Usage:
|
|
34
|
-
- Use when requirements are ambiguous
|
|
35
|
-
- Use when you need the user to make a decision
|
|
36
|
-
- questions array can have 1-4 questions`,
|
|
37
|
-
parameters: {
|
|
38
|
-
type: 'object',
|
|
39
|
-
properties: {
|
|
40
|
-
questions: {
|
|
41
|
-
type: 'array',
|
|
42
|
-
description: 'Array of 1-4 questions. Each item has: question (string, required), header (short label, optional), options (array of {label, description}, optional)'
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
required: ['questions']
|
|
46
|
-
},
|
|
47
|
-
execute: async () => {
|
|
48
|
-
// This tool is handled specially in the executor
|
|
49
|
-
return { success: true, data: 'Question sent to user' };
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Output tool name constant
|
|
55
|
-
*/
|
|
56
|
-
const OUTPUT_TOOL_NAME = '__output__';
|
|
57
|
-
/**
|
|
58
|
-
* Create the __output__ tool for sub-agents to return structured data
|
|
59
|
-
*/
|
|
60
|
-
function createOutputTool(outputSchema) {
|
|
61
|
-
return {
|
|
62
|
-
name: OUTPUT_TOOL_NAME,
|
|
63
|
-
description: `Return structured output data to the parent agent.
|
|
64
|
-
|
|
65
|
-
Use this tool when you have completed your task and want to return results.
|
|
66
|
-
Include a brief summary and the structured data.
|
|
67
|
-
|
|
68
|
-
IMPORTANT: Call this tool ONCE when your task is complete.`,
|
|
69
|
-
parameters: {
|
|
70
|
-
type: 'object',
|
|
71
|
-
properties: {
|
|
72
|
-
summary: {
|
|
73
|
-
type: 'string',
|
|
74
|
-
description: 'Brief summary of what was done (1-2 sentences)'
|
|
75
|
-
},
|
|
76
|
-
data: outputSchema
|
|
77
|
-
},
|
|
78
|
-
required: ['summary', 'data']
|
|
79
|
-
},
|
|
80
|
-
execute: async (params) => {
|
|
81
|
-
// This tool doesn't actually execute - it's intercepted by the parent
|
|
82
|
-
// The executor will capture this and return it as the result
|
|
83
|
-
return { success: true, data: params };
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Build description for agent in __task__ tool
|
|
89
|
-
*/
|
|
90
|
-
function buildAgentDescription(agent) {
|
|
91
|
-
let desc = `- **${agent.name}**: ${agent.description}`;
|
|
92
|
-
if (agent.inputSchema?.properties) {
|
|
93
|
-
const props = agent.inputSchema.properties;
|
|
94
|
-
const paramList = Object.entries(props)
|
|
95
|
-
.map(([name, schema]) => `${name}: ${schema.description || schema.type || 'any'}`)
|
|
96
|
-
.join(', ');
|
|
97
|
-
desc += `\n Parameters: { ${paramList} }`;
|
|
98
|
-
}
|
|
99
|
-
if (agent.outputSchema) {
|
|
100
|
-
desc += `\n Returns: structured data (summary + data object)`;
|
|
101
|
-
}
|
|
102
|
-
return desc;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Create the __task__ tool for spawning sub-agents
|
|
106
|
-
*/
|
|
107
|
-
function createTaskTool(hive, agents) {
|
|
108
|
-
const agentNames = agents.map(a => a.name);
|
|
109
|
-
const agentDescriptions = agents.map(buildAgentDescription).join('\n');
|
|
110
|
-
// Build combined properties from all agents
|
|
111
|
-
// Runtime validation will check agent-specific requirements
|
|
112
|
-
const combinedProperties = {
|
|
113
|
-
agent: {
|
|
114
|
-
type: 'string',
|
|
115
|
-
enum: agentNames,
|
|
116
|
-
description: 'Which agent to spawn'
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
// Add properties from all agent inputSchemas
|
|
120
|
-
for (const agent of agents) {
|
|
121
|
-
if (agent.inputSchema?.properties) {
|
|
122
|
-
const props = agent.inputSchema.properties;
|
|
123
|
-
for (const [key, schema] of Object.entries(props)) {
|
|
124
|
-
if (!combinedProperties[key]) {
|
|
125
|
-
combinedProperties[key] = {
|
|
126
|
-
type: schema.type || 'string',
|
|
127
|
-
description: `[${agent.name}] ${schema.description || ''}`
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
// Add prompt for legacy agents
|
|
134
|
-
const hasLegacyAgent = agents.some(a => !a.inputSchema);
|
|
135
|
-
if (hasLegacyAgent && !combinedProperties.prompt) {
|
|
136
|
-
combinedProperties.prompt = {
|
|
137
|
-
type: 'string',
|
|
138
|
-
description: 'The task for the agent to perform (for agents without inputSchema)'
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
return {
|
|
142
|
-
name: '__task__',
|
|
143
|
-
description: `Spawn a sub-agent to handle a specific task.
|
|
144
|
-
|
|
145
|
-
Available agents:
|
|
146
|
-
${agentDescriptions}
|
|
147
|
-
|
|
148
|
-
Usage:
|
|
149
|
-
- Select the agent and provide required parameters
|
|
150
|
-
- Sub-agents are isolated and don't see your conversation history
|
|
151
|
-
- They return a summary and optional structured data`,
|
|
152
|
-
parameters: {
|
|
153
|
-
type: 'object',
|
|
154
|
-
properties: combinedProperties,
|
|
155
|
-
required: ['agent']
|
|
156
|
-
},
|
|
157
|
-
execute: async (params, toolCtx) => {
|
|
158
|
-
const { agent: agentName, ...inputParams } = params;
|
|
159
|
-
const agentConfig = agents.find(a => a.name === agentName);
|
|
160
|
-
if (!agentConfig) {
|
|
161
|
-
return { success: false, error: `Unknown agent: ${agentName}` };
|
|
162
|
-
}
|
|
163
|
-
// Build the input message for the sub-agent
|
|
164
|
-
let inputMessage;
|
|
165
|
-
if (agentConfig.inputSchema) {
|
|
166
|
-
// Schema-based: pass parameters as JSON
|
|
167
|
-
inputMessage = `Task parameters:\n${JSON.stringify(inputParams, null, 2)}`;
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
// Legacy: use prompt directly
|
|
171
|
-
inputMessage = inputParams.prompt || '';
|
|
172
|
-
}
|
|
173
|
-
// Log sub-agent start
|
|
174
|
-
hive.config.logger?.info(`[Sub-Agent: ${agentName}] Starting...`);
|
|
175
|
-
hive.config.logger?.debug(`[Sub-Agent: ${agentName}] Input: ${inputMessage.slice(0, 200)}${inputMessage.length > 200 ? '...' : ''}`);
|
|
176
|
-
// Progress: sub-agent starting
|
|
177
|
-
hive.config.logger?.onProgress?.({
|
|
178
|
-
type: 'sub_agent_start',
|
|
179
|
-
message: `Starting ${agentName}...`,
|
|
180
|
-
details: { agentName }
|
|
181
|
-
});
|
|
182
|
-
try {
|
|
183
|
-
// Create a wrapper logger that prefixes sub-agent logs
|
|
184
|
-
const subLogger = hive.config.logger ? {
|
|
185
|
-
...hive.config.logger,
|
|
186
|
-
debug: (msg, data) => hive.config.logger?.debug(`[${agentName}] ${msg}`, data),
|
|
187
|
-
info: (msg, data) => hive.config.logger?.info(`[${agentName}] ${msg}`, data),
|
|
188
|
-
warn: (msg, data) => hive.config.logger?.warn(`[${agentName}] ${msg}`, data),
|
|
189
|
-
error: (msg, data) => hive.config.logger?.error(`[${agentName}] ${msg}`, data),
|
|
190
|
-
onToolCall: (toolName, toolParams) => {
|
|
191
|
-
hive.config.logger?.info(`[${agentName}] Tool: ${toolName}`);
|
|
192
|
-
hive.config.logger?.onToolCall?.(toolName, toolParams);
|
|
193
|
-
},
|
|
194
|
-
onToolResult: (toolName, result, durationMs) => {
|
|
195
|
-
const status = result.success ? 'OK' : 'ERROR';
|
|
196
|
-
hive.config.logger?.info(`[${agentName}] Tool ${toolName}: ${status} (${durationMs}ms)`);
|
|
197
|
-
hive.config.logger?.onToolResult?.(toolName, result, durationMs);
|
|
198
|
-
},
|
|
199
|
-
onProgress: (update) => {
|
|
200
|
-
// Prefix sub-agent progress messages
|
|
201
|
-
hive.config.logger?.onProgress?.({
|
|
202
|
-
...update,
|
|
203
|
-
message: `[${agentName}] ${update.message}`
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
} : undefined;
|
|
207
|
-
// Use agent-specific LLM/model or fall back to parent's
|
|
208
|
-
const subLlm = agentConfig.llm || hive.config.llm;
|
|
209
|
-
// Build sub-agent tools - include __output__ if outputSchema is defined
|
|
210
|
-
const subTools = agentConfig.outputSchema
|
|
211
|
-
? [...agentConfig.tools, createOutputTool(agentConfig.outputSchema)]
|
|
212
|
-
: agentConfig.tools;
|
|
213
|
-
// Get parent's trace builder for nested tracing
|
|
214
|
-
const parentTraceBuilder = hive.getCurrentTraceBuilder();
|
|
215
|
-
// Start sub-agent span in trace
|
|
216
|
-
if (parentTraceBuilder) {
|
|
217
|
-
parentTraceBuilder.startSubAgent(agentName, inputMessage);
|
|
218
|
-
}
|
|
219
|
-
const subHive = new Hive({
|
|
220
|
-
systemPrompt: agentConfig.systemPrompt,
|
|
221
|
-
tools: subTools,
|
|
222
|
-
llm: subLlm,
|
|
223
|
-
logger: subLogger,
|
|
224
|
-
maxIterations: agentConfig.maxIterations || hive.config.maxIterations,
|
|
225
|
-
disableAskUser: true, // Sub-agents return questions as text, not via __ask_user__
|
|
226
|
-
// Pass parent's trace config for nested sub-agents
|
|
227
|
-
trace: hive.config.trace,
|
|
228
|
-
agentName: agentName
|
|
229
|
-
});
|
|
230
|
-
const result = await subHive.run(inputMessage, {
|
|
231
|
-
// Pass trace builder for nested tracing
|
|
232
|
-
_traceBuilder: parentTraceBuilder,
|
|
233
|
-
// Pass context to sub-agent so its tools receive the same context
|
|
234
|
-
conversationId: toolCtx.conversationId,
|
|
235
|
-
userId: toolCtx.userId,
|
|
236
|
-
// Pass context so sub-agent can read/write to same context
|
|
237
|
-
context: toolCtx.context
|
|
238
|
-
});
|
|
239
|
-
// End sub-agent span in trace
|
|
240
|
-
if (parentTraceBuilder) {
|
|
241
|
-
const status = result.status === 'complete' ? 'complete' :
|
|
242
|
-
result.status === 'interrupted' ? 'interrupted' : 'error';
|
|
243
|
-
parentTraceBuilder.endSubAgent(status, result.response);
|
|
244
|
-
}
|
|
245
|
-
// Log sub-agent completion with details
|
|
246
|
-
hive.config.logger?.info(`[Sub-Agent: ${agentName}] Completed with status: ${result.status}`);
|
|
247
|
-
hive.config.logger?.debug(`[Sub-Agent: ${agentName}] Tool calls: ${result.toolCalls.length}`, result.toolCalls.map(tc => tc.name));
|
|
248
|
-
hive.config.logger?.debug(`[Sub-Agent: ${agentName}] Response length: ${result.response?.length || 0}`);
|
|
249
|
-
if (result.response) {
|
|
250
|
-
hive.config.logger?.debug(`[Sub-Agent: ${agentName}] Response preview: ${result.response.slice(0, 200)}${result.response.length > 200 ? '...' : ''}`);
|
|
251
|
-
}
|
|
252
|
-
if (result.thinking && result.thinking.length > 0) {
|
|
253
|
-
hive.config.logger?.debug(`[Sub-Agent: ${agentName}] Thinking blocks: ${result.thinking.length}`);
|
|
254
|
-
}
|
|
255
|
-
// Progress: sub-agent completed
|
|
256
|
-
hive.config.logger?.onProgress?.({
|
|
257
|
-
type: 'sub_agent_end',
|
|
258
|
-
message: `${agentName} completed`,
|
|
259
|
-
details: { agentName, success: true }
|
|
260
|
-
});
|
|
261
|
-
if (result.status === 'needs_input') {
|
|
262
|
-
hive.config.logger?.debug(`[Sub-Agent: ${agentName}] Returning: needs_input`);
|
|
263
|
-
return {
|
|
264
|
-
success: false,
|
|
265
|
-
error: 'Sub-agent needs user input',
|
|
266
|
-
data: result.pendingQuestion
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
if (result.status === 'interrupted') {
|
|
270
|
-
hive.config.logger?.warn(`[Sub-Agent: ${agentName}] Was interrupted: ${result.interrupted?.reason}`);
|
|
271
|
-
return {
|
|
272
|
-
success: false,
|
|
273
|
-
error: `Sub-agent was interrupted: ${result.interrupted?.reason || 'unknown'}`,
|
|
274
|
-
data: {
|
|
275
|
-
reason: result.interrupted?.reason,
|
|
276
|
-
iterationsCompleted: result.interrupted?.iterationsCompleted
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
// Check if sub-agent used __output__ tool to return structured data
|
|
281
|
-
const outputCall = result.toolCalls.find(tc => tc.name === OUTPUT_TOOL_NAME);
|
|
282
|
-
hive.config.logger?.debug(`[Sub-Agent: ${agentName}] __output__ tool used: ${!!outputCall}`);
|
|
283
|
-
if (outputCall && outputCall.output?.success && outputCall.output?.data) {
|
|
284
|
-
const outputData = outputCall.output.data;
|
|
285
|
-
hive.config.logger?.debug(`[Sub-Agent: ${agentName}] Returning structured output`, {
|
|
286
|
-
summaryLength: outputData.summary?.length || 0,
|
|
287
|
-
hasData: outputData.data !== null && outputData.data !== undefined
|
|
288
|
-
});
|
|
289
|
-
return {
|
|
290
|
-
success: true,
|
|
291
|
-
data: {
|
|
292
|
-
summary: outputData.summary,
|
|
293
|
-
data: outputData.data
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
// Legacy: return response text as summary
|
|
298
|
-
hive.config.logger?.debug(`[Sub-Agent: ${agentName}] Returning legacy response`, {
|
|
299
|
-
responseLength: result.response?.length || 0,
|
|
300
|
-
isEmpty: !result.response
|
|
301
|
-
});
|
|
302
|
-
return {
|
|
303
|
-
success: true,
|
|
304
|
-
data: {
|
|
305
|
-
summary: result.response,
|
|
306
|
-
data: null
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
catch (error) {
|
|
311
|
-
// End sub-agent span with error status
|
|
312
|
-
const parentTraceBuilder = hive.getCurrentTraceBuilder();
|
|
313
|
-
if (parentTraceBuilder) {
|
|
314
|
-
parentTraceBuilder.endSubAgent('error');
|
|
315
|
-
}
|
|
316
|
-
hive.config.logger?.error(`[Sub-Agent: ${agentName}] Failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
317
|
-
// Progress: sub-agent failed
|
|
318
|
-
hive.config.logger?.onProgress?.({
|
|
319
|
-
type: 'sub_agent_end',
|
|
320
|
-
message: `${agentName} failed`,
|
|
321
|
-
details: { agentName, success: false }
|
|
322
|
-
});
|
|
323
|
-
return {
|
|
324
|
-
success: false,
|
|
325
|
-
error: error instanceof Error ? error.message : String(error)
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
}
|
|
6
|
+
import { ContextManager } from "./context-manager.js";
|
|
7
|
+
import { executeLoop } from "./executor.js";
|
|
8
|
+
import { TraceBuilder } from "./trace.js";
|
|
9
|
+
import { createContextTools } from "./context.js";
|
|
10
|
+
import { createAskUserTool, createTaskTool, TodoManager, createTodoTool, } from "./tools/index.js";
|
|
331
11
|
/**
|
|
332
12
|
* Hive Agent Class
|
|
333
13
|
*/
|
|
@@ -341,8 +21,8 @@ export class Hive {
|
|
|
341
21
|
this.config = {
|
|
342
22
|
maxIterations: 50,
|
|
343
23
|
maxContextTokens: 100000,
|
|
344
|
-
contextStrategy:
|
|
345
|
-
...config
|
|
24
|
+
contextStrategy: "truncate_old",
|
|
25
|
+
...config,
|
|
346
26
|
};
|
|
347
27
|
this.contextManager = new ContextManager(this.config.maxContextTokens, this.config.contextStrategy);
|
|
348
28
|
// Build tools list with internal tools (todo tool added per-run)
|
|
@@ -353,7 +33,10 @@ export class Hive {
|
|
|
353
33
|
}
|
|
354
34
|
// Add __task__ tool if sub-agents are defined
|
|
355
35
|
if (config.agents && config.agents.length > 0) {
|
|
356
|
-
this.tools.push(createTaskTool(
|
|
36
|
+
this.tools.push(createTaskTool({
|
|
37
|
+
config: this.config,
|
|
38
|
+
getCurrentTraceBuilder: () => this.getCurrentTraceBuilder(),
|
|
39
|
+
}, config.agents, (subConfig) => new Hive(subConfig)));
|
|
357
40
|
}
|
|
358
41
|
}
|
|
359
42
|
/**
|
|
@@ -372,10 +55,7 @@ export class Hive {
|
|
|
372
55
|
* Get tools including internal tools for a specific run
|
|
373
56
|
*/
|
|
374
57
|
getRunTools(todoManager, context, agentName) {
|
|
375
|
-
const tools = [
|
|
376
|
-
...this.tools,
|
|
377
|
-
createTodoTool(todoManager)
|
|
378
|
-
];
|
|
58
|
+
const tools = [...this.tools, createTodoTool(todoManager)];
|
|
379
59
|
// Add context tools if Context is provided
|
|
380
60
|
if (context) {
|
|
381
61
|
tools.push(...createContextTools(context, agentName));
|
|
@@ -386,7 +66,7 @@ export class Hive {
|
|
|
386
66
|
* Run the agent with a user message
|
|
387
67
|
*/
|
|
388
68
|
async run(message, options = {}) {
|
|
389
|
-
const { conversationId, userId, history: providedHistory, signal, shouldContinue, context } = options;
|
|
69
|
+
const { conversationId, userId, history: providedHistory, signal, shouldContinue, context, } = options;
|
|
390
70
|
// Load history from repository or use provided
|
|
391
71
|
let history = [];
|
|
392
72
|
if (providedHistory) {
|
|
@@ -399,56 +79,60 @@ export class Hive {
|
|
|
399
79
|
const messages = [...history];
|
|
400
80
|
const lastMessage = messages[messages.length - 1];
|
|
401
81
|
// Check if last message is assistant with tool_use blocks that need results
|
|
402
|
-
if (lastMessage?.role ===
|
|
403
|
-
|
|
82
|
+
if (lastMessage?.role === "assistant" &&
|
|
83
|
+
Array.isArray(lastMessage.content)) {
|
|
84
|
+
const toolUseBlocks = lastMessage.content.filter((block) => block.type === "tool_use");
|
|
404
85
|
if (toolUseBlocks.length > 0) {
|
|
405
86
|
// Find __ask_user__ tool if present
|
|
406
|
-
const askUserToolUse = toolUseBlocks.find(block => block.name ===
|
|
87
|
+
const askUserToolUse = toolUseBlocks.find((block) => block.name === "__ask_user__");
|
|
407
88
|
// Build tool_results for all tool_use blocks
|
|
408
|
-
const toolResults = toolUseBlocks.map(toolUse => {
|
|
409
|
-
if (toolUse.name ===
|
|
89
|
+
const toolResults = toolUseBlocks.map((toolUse) => {
|
|
90
|
+
if (toolUse.name === "__ask_user__") {
|
|
410
91
|
// User's message is the answer to __ask_user__
|
|
411
92
|
return {
|
|
412
|
-
type:
|
|
93
|
+
type: "tool_result",
|
|
413
94
|
tool_use_id: toolUse.id,
|
|
414
|
-
content: JSON.stringify({
|
|
95
|
+
content: JSON.stringify({
|
|
96
|
+
success: true,
|
|
97
|
+
data: { answer: message },
|
|
98
|
+
}),
|
|
415
99
|
};
|
|
416
100
|
}
|
|
417
101
|
else {
|
|
418
102
|
// Other tools were interrupted - mark as cancelled
|
|
419
103
|
return {
|
|
420
|
-
type:
|
|
104
|
+
type: "tool_result",
|
|
421
105
|
tool_use_id: toolUse.id,
|
|
422
|
-
content: JSON.stringify({
|
|
423
|
-
|
|
106
|
+
content: JSON.stringify({
|
|
107
|
+
success: false,
|
|
108
|
+
error: "Operation cancelled - execution was interrupted",
|
|
109
|
+
}),
|
|
110
|
+
is_error: true,
|
|
424
111
|
};
|
|
425
112
|
}
|
|
426
113
|
});
|
|
427
114
|
// If there was an __ask_user__, the user's message is already the answer
|
|
428
115
|
// Otherwise, we need to include both the tool_results and the user message
|
|
429
116
|
if (askUserToolUse) {
|
|
430
|
-
messages.push({ role:
|
|
117
|
+
messages.push({ role: "user", content: toolResults });
|
|
431
118
|
}
|
|
432
119
|
else {
|
|
433
120
|
// Combine tool_results and user message in a single user message
|
|
434
121
|
// (API doesn't allow consecutive user messages)
|
|
435
122
|
messages.push({
|
|
436
|
-
role:
|
|
437
|
-
content: [
|
|
438
|
-
...toolResults,
|
|
439
|
-
{ type: 'text', text: message }
|
|
440
|
-
]
|
|
123
|
+
role: "user",
|
|
124
|
+
content: [...toolResults, { type: "text", text: message }],
|
|
441
125
|
});
|
|
442
126
|
}
|
|
443
127
|
}
|
|
444
128
|
else {
|
|
445
129
|
// No tool_use blocks, normal user message
|
|
446
|
-
messages.push({ role:
|
|
130
|
+
messages.push({ role: "user", content: message });
|
|
447
131
|
}
|
|
448
132
|
}
|
|
449
133
|
else {
|
|
450
134
|
// Normal user message
|
|
451
|
-
messages.push({ role:
|
|
135
|
+
messages.push({ role: "user", content: message });
|
|
452
136
|
}
|
|
453
137
|
// Create todo manager for this run
|
|
454
138
|
const todoManager = new TodoManager();
|
|
@@ -457,15 +141,16 @@ export class Hive {
|
|
|
457
141
|
remainingTokens: this.contextManager.getRemainingTokens(),
|
|
458
142
|
conversationId,
|
|
459
143
|
userId,
|
|
460
|
-
context
|
|
144
|
+
context,
|
|
461
145
|
};
|
|
462
146
|
// Create or use existing trace builder
|
|
463
147
|
// If _traceBuilder is passed (from parent agent), use it
|
|
464
148
|
// Otherwise create a new one if trace provider is configured
|
|
465
|
-
const traceBuilder = options._traceBuilder ||
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
149
|
+
const traceBuilder = options._traceBuilder ||
|
|
150
|
+
(this.config.trace
|
|
151
|
+
? new TraceBuilder(this.config.agentName || "agent", this.config.trace, message // Pass input message to trace
|
|
152
|
+
)
|
|
153
|
+
: undefined);
|
|
469
154
|
// Store trace builder for __task__ tool to access
|
|
470
155
|
this.setCurrentTraceBuilder(traceBuilder);
|
|
471
156
|
// Execute the agent loop
|
|
@@ -480,7 +165,7 @@ export class Hive {
|
|
|
480
165
|
llmOptions: {},
|
|
481
166
|
signal,
|
|
482
167
|
shouldContinue,
|
|
483
|
-
traceBuilder
|
|
168
|
+
traceBuilder,
|
|
484
169
|
}, messages, toolContext);
|
|
485
170
|
// Save history to repository
|
|
486
171
|
if (conversationId && this.config.repository) {
|
|
@@ -488,8 +173,11 @@ export class Hive {
|
|
|
488
173
|
}
|
|
489
174
|
// End trace and attach to result (only for root agent, not sub-agents)
|
|
490
175
|
if (traceBuilder && !options._traceBuilder) {
|
|
491
|
-
const status = result.status ===
|
|
492
|
-
|
|
176
|
+
const status = result.status === "complete"
|
|
177
|
+
? "complete"
|
|
178
|
+
: result.status === "interrupted"
|
|
179
|
+
? "interrupted"
|
|
180
|
+
: "complete";
|
|
493
181
|
result.trace = traceBuilder.endTrace(status, result.response);
|
|
494
182
|
}
|
|
495
183
|
// Record the run (only for root agent, not sub-agents)
|
|
@@ -498,7 +186,7 @@ export class Hive {
|
|
|
498
186
|
await this.config.recorder.record(message, history, this.config, result);
|
|
499
187
|
}
|
|
500
188
|
catch (error) {
|
|
501
|
-
this.config.logger?.warn(
|
|
189
|
+
this.config.logger?.warn("Failed to record run", error);
|
|
502
190
|
}
|
|
503
191
|
}
|
|
504
192
|
return result;
|
package/dist/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAYH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,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AAI,YAAY,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC3C,MAAM,MAAM,GACV,MAAM,CAAC,MAAM,KAAK,UAAU;gBAC1B,CAAC,CAAC,UAAU;gBACZ,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,aAAa;oBACjC,CAAC,CAAC,aAAa;oBACf,CAAC,CAAC,UAAU,CAAC;YACjB,MAAM,CAAC,KAAK,GAAG,YAAY,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QAChE,CAAC;QAED,uDAAuD;QACvD,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YACnD,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAC/B,OAAO,EACP,OAAO,EACP,IAAI,CAAC,MAAM,EACX,MAAM,CACP,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
package/dist/executor.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Message, Tool, ToolContext, LLMProvider, LLMOptions, LogProvider, AgentResult } from './types.js';
|
|
7
7
|
import { ContextManager } from './context-manager.js';
|
|
8
|
-
import { TodoManager } from './todo.js';
|
|
8
|
+
import { TodoManager } from './tools/todo.js';
|
|
9
9
|
export interface ExecutorConfig {
|
|
10
10
|
systemPrompt: string;
|
|
11
11
|
tools: Tool[];
|
package/dist/executor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,OAAO,EACP,IAAI,EAIJ,WAAW,EAIX,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EAEZ,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,OAAO,EACP,IAAI,EAIJ,WAAW,EAIX,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EAEZ,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAI7C,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,GAAG,EAAE,WAAW,CAAA;IAChB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,cAAc,CAAA;IAC9B,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB,mCAAmC;IACnC,MAAM,CAAC,EAAE,WAAW,CAAA;IAEpB,iDAAiD;IACjD,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;IAEvC,0CAA0C;IAC1C,YAAY,CAAC,EAAE,OAAO,YAAY,EAAE,YAAY,CAAA;CACjD;AA+LD;;GAEG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,cAAc,EACtB,eAAe,EAAE,OAAO,EAAE,EAC1B,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC,WAAW,CAAC,CAoOtB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export { OpenAIProvider, type OpenAIProviderConfig } from './providers/llm/opena
|
|
|
10
10
|
export { ConsoleLogger, type ConsoleLoggerConfig, type LogLevel } from './providers/logger/console.js';
|
|
11
11
|
export { MemoryRepository } from './providers/repository/memory.js';
|
|
12
12
|
export { estimateTokens, estimateMessageTokens, estimateTotalTokens, truncateOldMessages, ContextManager } from './context-manager.js';
|
|
13
|
-
export { buildSystemPrompt, buildEnvironmentSection, buildRemindersSection, getCurrentEnvironment, DEFAULT_SYSTEM_PROMPT } from './prompt.js';
|
|
14
|
-
export { TodoManager, formatTodoList } from './todo.js';
|
|
13
|
+
export { buildSystemPrompt, buildEnvironmentSection, buildRemindersSection, getCurrentEnvironment, DEFAULT_SYSTEM_PROMPT, MainAgentBuilder, SubAgentBuilder, roleSection, subAgentsTable, questionHandlingSection, directToolsSection, contextStorageSection, rulesSection, taskExamplesSection, subAgentRoleSection, taskSection, workflowSection, guidelinesSection, outputSection, type SubAgentDef, type ToolDef, type ContextPathDef, type TaskExample, type WorkflowStep, type OutputFormat, type MainAgentPromptConfig, type SubAgentPromptConfig } from './prompt.js';
|
|
14
|
+
export { TodoManager, formatTodoList } from './tools/todo.js';
|
|
15
15
|
export { TraceBuilder, ConsoleTraceProvider, generateTraceId, generateSpanId, calculateCost, DEFAULT_MODEL_PRICING, type TraceProvider, type TraceId, type SpanId, type Trace, type AgentSpan, type TraceEvent, type LLMCallEvent, type ToolCallEvent, type TraceContext, type ModelPricing, type ConsoleTraceConfig } from './trace.js';
|
|
16
16
|
export { Context, createContextTools, type ContextEntry, type ContextListItem, type ContextConfig, type PathConfig, type ValidatorFn, type ZodLike, type ValidationError, type WriteResult } from './context.js';
|
|
17
17
|
export { RunRecorder, RunReplayer, RunTester, type RunRecorderConfig, type RunRecord, type RunRecordConfig, type RunRecordResult, type SerializedTool, type SerializedSubAgentConfig, type RunTesterConfig, type TestResult, type TestSummary } from './providers/dataset/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAGjC,YAAY,EAEV,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,aAAa,EACb,YAAY,EACZ,eAAe,EAGf,IAAI,EACJ,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,UAAU,EAGV,UAAU,EACV,cAAc,EACd,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,EACd,gBAAgB,EAGhB,QAAQ,EACR,UAAU,EACV,QAAQ,EAGR,WAAW,EACX,WAAW,EACX,UAAU,EACV,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,cAAc,EAGd,UAAU,EAGV,eAAe,EACf,kBAAkB,EAClB,eAAe,EAChB,MAAM,YAAY,CAAA;AAGnB,OAAO,EACL,cAAc,EACd,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,cAAc,EACd,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,aAAa,EACb,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EACL,gBAAgB,EACjB,MAAM,kCAAkC,CAAA;AAGzC,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACf,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAGjC,YAAY,EAEV,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,aA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c,EACf,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACxB,MAAM,YAAY,CAAA;AAGnB,OAAO,EACL,OAAO,EACP,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,WAAW,EACjB,MAAM,cAAc,CAAA;AAGrB,OAAO,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,8BAA8B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -12,9 +12,13 @@ export { ConsoleLogger } from './providers/logger/console.js';
|
|
|
12
12
|
export { MemoryRepository } from './providers/repository/memory.js';
|
|
13
13
|
// Utilities
|
|
14
14
|
export { estimateTokens, estimateMessageTokens, estimateTotalTokens, truncateOldMessages, ContextManager } from './context-manager.js';
|
|
15
|
-
export { buildSystemPrompt, buildEnvironmentSection, buildRemindersSection, getCurrentEnvironment, DEFAULT_SYSTEM_PROMPT
|
|
15
|
+
export { buildSystemPrompt, buildEnvironmentSection, buildRemindersSection, getCurrentEnvironment, DEFAULT_SYSTEM_PROMPT,
|
|
16
|
+
// Prompt builders
|
|
17
|
+
MainAgentBuilder, SubAgentBuilder,
|
|
18
|
+
// Template functions (for advanced customization)
|
|
19
|
+
roleSection, subAgentsTable, questionHandlingSection, directToolsSection, contextStorageSection, rulesSection, taskExamplesSection, subAgentRoleSection, taskSection, workflowSection, guidelinesSection, outputSection } from './prompt.js';
|
|
16
20
|
// Todo utilities
|
|
17
|
-
export { TodoManager, formatTodoList } from './todo.js';
|
|
21
|
+
export { TodoManager, formatTodoList } from './tools/todo.js';
|
|
18
22
|
// Tracing
|
|
19
23
|
export { TraceBuilder, ConsoleTraceProvider, generateTraceId, generateSpanId, calculateCost, DEFAULT_MODEL_PRICING } from './trace.js';
|
|
20
24
|
// Context
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,mBAAmB;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAsDjC,YAAY;AACZ,OAAO,EACL,cAAc,EAEf,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,cAAc,EAEf,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,aAAa,EAGd,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EACL,gBAAgB,EACjB,MAAM,kCAAkC,CAAA;AAEzC,YAAY;AACZ,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACf,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,mBAAmB;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAsDjC,YAAY;AACZ,OAAO,EACL,cAAc,EAEf,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,cAAc,EAEf,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,aAAa,EAGd,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EACL,gBAAgB,EACjB,MAAM,kCAAkC,CAAA;AAEzC,YAAY;AACZ,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACf,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB;AACrB,kBAAkB;AAClB,gBAAgB,EAChB,eAAe;AACf,kDAAkD;AAClD,WAAW,EACX,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,aAAa,EAUd,MAAM,aAAa,CAAA;AAEpB,iBAAiB;AACjB,OAAO,EACL,WAAW,EACX,cAAc,EACf,MAAM,iBAAiB,CAAA;AAExB,UAAU;AACV,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,aAAa,EACb,qBAAqB,EAYtB,MAAM,YAAY,CAAA;AAEnB,UAAU;AACV,OAAO,EACL,OAAO,EACP,kBAAkB,EASnB,MAAM,cAAc,CAAA;AAErB,4CAA4C;AAC5C,OAAO,EACL,WAAW,EACX,WAAW,EACX,SAAS,EAUV,MAAM,8BAA8B,CAAA"}
|