@contractspec/example.agent-console 3.8.8 → 3.8.10
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.log +225 -222
- package/CHANGELOG.md +34 -0
- package/dist/agent/agent.entity.js +1 -127
- package/dist/agent/agent.enum.js +1 -25
- package/dist/agent/agent.event.js +1 -116
- package/dist/agent/agent.handler.js +1 -1030
- package/dist/agent/agent.operation.js +1 -735
- package/dist/agent/agent.presentation.js +1 -282
- package/dist/agent/agent.schema.js +1 -215
- package/dist/agent/agent.test-spec.js +1 -58
- package/dist/agent/index.js +1 -1248
- package/dist/agent.capability.js +1 -19
- package/dist/agent.feature.js +1 -305
- package/dist/browser/agent/agent.entity.js +1 -127
- package/dist/browser/agent/agent.enum.js +1 -25
- package/dist/browser/agent/agent.event.js +1 -116
- package/dist/browser/agent/agent.handler.js +1 -1030
- package/dist/browser/agent/agent.operation.js +1 -735
- package/dist/browser/agent/agent.presentation.js +1 -282
- package/dist/browser/agent/agent.schema.js +1 -215
- package/dist/browser/agent/agent.test-spec.js +1 -58
- package/dist/browser/agent/index.js +1 -1248
- package/dist/browser/agent.capability.js +1 -19
- package/dist/browser/agent.feature.js +1 -305
- package/dist/browser/docs/agent-console.docblock.js +5 -49
- package/dist/browser/docs/index.js +5 -49
- package/dist/browser/example.js +1 -41
- package/dist/browser/handlers/agent.handlers.js +6 -2143
- package/dist/browser/handlers/index.js +6 -2943
- package/dist/browser/index.js +14 -6828
- package/dist/browser/presentations/index.js +1 -693
- package/dist/browser/run/index.js +1 -1363
- package/dist/browser/run/run.entity.js +1 -160
- package/dist/browser/run/run.enum.js +1 -34
- package/dist/browser/run/run.event.js +1 -217
- package/dist/browser/run/run.handler.js +1 -919
- package/dist/browser/run/run.operation.js +1 -667
- package/dist/browser/run/run.presentation.js +1 -223
- package/dist/browser/run/run.schema.js +1 -179
- package/dist/browser/run/run.test-spec.js +1 -58
- package/dist/browser/seeders/index.js +2 -21
- package/dist/browser/shared/index.js +1 -626
- package/dist/browser/shared/mock-agents.js +1 -82
- package/dist/browser/shared/mock-runs.js +1 -113
- package/dist/browser/shared/mock-tools.js +1 -146
- package/dist/browser/tool/index.js +1 -949
- package/dist/browser/tool/tool.entity.js +1 -90
- package/dist/browser/tool/tool.enum.js +1 -26
- package/dist/browser/tool/tool.event.js +1 -99
- package/dist/browser/tool/tool.handler.js +1 -699
- package/dist/browser/tool/tool.operation.js +1 -482
- package/dist/browser/tool/tool.presentation.js +1 -188
- package/dist/browser/tool/tool.schema.js +1 -141
- package/dist/browser/tool/tool.test-spec.js +1 -58
- package/dist/browser/ui/AgentDashboard.js +1 -2527
- package/dist/browser/ui/AgentDashboard.visualizations.js +1 -217
- package/dist/browser/ui/AgentRunList.js +1 -482
- package/dist/browser/ui/AgentToolRegistry.js +1 -212
- package/dist/browser/ui/ExecutionConsoleHost.js +1 -0
- package/dist/browser/ui/hooks/index.js +1 -740
- package/dist/browser/ui/hooks/useAgentList.js +1 -55
- package/dist/browser/ui/hooks/useAgentMutations.js +1 -530
- package/dist/browser/ui/hooks/useRunList.js +1 -70
- package/dist/browser/ui/hooks/useToolList.js +1 -85
- package/dist/browser/ui/index.js +5 -3018
- package/dist/browser/ui/modals/AgentActionsModal.js +1 -304
- package/dist/browser/ui/modals/CreateAgentModal.js +1 -243
- package/dist/browser/ui/modals/index.js +1 -546
- package/dist/browser/ui/overlays/demo-overlays.js +1 -64
- package/dist/browser/ui/overlays/index.js +1 -64
- package/dist/browser/ui/renderers/agent-list.markdown.js +2 -64
- package/dist/browser/ui/renderers/agent-list.renderer.js +1 -180
- package/dist/browser/ui/renderers/dashboard.markdown.js +2 -288
- package/dist/browser/ui/renderers/index.js +5 -642
- package/dist/browser/ui/renderers/run-list.markdown.js +2 -50
- package/dist/browser/ui/renderers/tool-registry.markdown.js +2 -64
- package/dist/browser/ui/views/AgentListView.js +1 -165
- package/dist/browser/ui/views/RunDataTable.js +1 -326
- package/dist/browser/ui/views/RunListView.js +1 -479
- package/dist/browser/ui/views/ToolRegistryView.js +1 -209
- package/dist/browser/ui/views/index.js +1 -851
- package/dist/browser/ui/views/run-data-table.columns.js +1 -271
- package/dist/browser/ui/views/run-list.shared.js +1 -177
- package/dist/browser/visualizations/catalog.js +1 -134
- package/dist/browser/visualizations/index.js +1 -187
- package/dist/browser/visualizations/selectors.js +1 -181
- package/dist/docs/agent-console.docblock.js +5 -49
- package/dist/docs/index.js +5 -49
- package/dist/example.js +1 -41
- package/dist/handlers/agent.handlers.js +6 -2143
- package/dist/handlers/index.js +6 -2943
- package/dist/index.js +14 -6828
- package/dist/node/agent/agent.entity.js +1 -127
- package/dist/node/agent/agent.enum.js +1 -25
- package/dist/node/agent/agent.event.js +1 -116
- package/dist/node/agent/agent.handler.js +1 -1030
- package/dist/node/agent/agent.operation.js +1 -735
- package/dist/node/agent/agent.presentation.js +1 -282
- package/dist/node/agent/agent.schema.js +1 -215
- package/dist/node/agent/agent.test-spec.js +1 -58
- package/dist/node/agent/index.js +1 -1248
- package/dist/node/agent.capability.js +1 -19
- package/dist/node/agent.feature.js +1 -305
- package/dist/node/docs/agent-console.docblock.js +5 -49
- package/dist/node/docs/index.js +5 -49
- package/dist/node/example.js +1 -41
- package/dist/node/handlers/agent.handlers.js +6 -2143
- package/dist/node/handlers/index.js +6 -2943
- package/dist/node/index.js +14 -6828
- package/dist/node/presentations/index.js +1 -693
- package/dist/node/run/index.js +1 -1363
- package/dist/node/run/run.entity.js +1 -160
- package/dist/node/run/run.enum.js +1 -34
- package/dist/node/run/run.event.js +1 -217
- package/dist/node/run/run.handler.js +1 -919
- package/dist/node/run/run.operation.js +1 -667
- package/dist/node/run/run.presentation.js +1 -223
- package/dist/node/run/run.schema.js +1 -179
- package/dist/node/run/run.test-spec.js +1 -58
- package/dist/node/seeders/index.js +2 -21
- package/dist/node/shared/index.js +1 -626
- package/dist/node/shared/mock-agents.js +1 -82
- package/dist/node/shared/mock-runs.js +1 -113
- package/dist/node/shared/mock-tools.js +1 -146
- package/dist/node/tool/index.js +1 -949
- package/dist/node/tool/tool.entity.js +1 -90
- package/dist/node/tool/tool.enum.js +1 -26
- package/dist/node/tool/tool.event.js +1 -99
- package/dist/node/tool/tool.handler.js +1 -699
- package/dist/node/tool/tool.operation.js +1 -482
- package/dist/node/tool/tool.presentation.js +1 -188
- package/dist/node/tool/tool.schema.js +1 -141
- package/dist/node/tool/tool.test-spec.js +1 -58
- package/dist/node/ui/AgentDashboard.js +1 -2527
- package/dist/node/ui/AgentDashboard.visualizations.js +1 -217
- package/dist/node/ui/AgentRunList.js +1 -482
- package/dist/node/ui/AgentToolRegistry.js +1 -212
- package/dist/node/ui/ExecutionConsoleHost.js +1 -0
- package/dist/node/ui/hooks/index.js +1 -740
- package/dist/node/ui/hooks/useAgentList.js +1 -55
- package/dist/node/ui/hooks/useAgentMutations.js +1 -530
- package/dist/node/ui/hooks/useRunList.js +1 -70
- package/dist/node/ui/hooks/useToolList.js +1 -85
- package/dist/node/ui/index.js +5 -3018
- package/dist/node/ui/modals/AgentActionsModal.js +1 -304
- package/dist/node/ui/modals/CreateAgentModal.js +1 -243
- package/dist/node/ui/modals/index.js +1 -546
- package/dist/node/ui/overlays/demo-overlays.js +1 -64
- package/dist/node/ui/overlays/index.js +1 -64
- package/dist/node/ui/renderers/agent-list.markdown.js +2 -64
- package/dist/node/ui/renderers/agent-list.renderer.js +1 -180
- package/dist/node/ui/renderers/dashboard.markdown.js +2 -288
- package/dist/node/ui/renderers/index.js +5 -642
- package/dist/node/ui/renderers/run-list.markdown.js +2 -50
- package/dist/node/ui/renderers/tool-registry.markdown.js +2 -64
- package/dist/node/ui/views/AgentListView.js +1 -165
- package/dist/node/ui/views/RunDataTable.js +1 -326
- package/dist/node/ui/views/RunListView.js +1 -479
- package/dist/node/ui/views/ToolRegistryView.js +1 -209
- package/dist/node/ui/views/index.js +1 -851
- package/dist/node/ui/views/run-data-table.columns.js +1 -271
- package/dist/node/ui/views/run-list.shared.js +1 -177
- package/dist/node/visualizations/catalog.js +1 -134
- package/dist/node/visualizations/index.js +1 -187
- package/dist/node/visualizations/selectors.js +1 -181
- package/dist/presentations/index.js +1 -693
- package/dist/run/index.js +1 -1363
- package/dist/run/run.entity.js +1 -160
- package/dist/run/run.enum.js +1 -34
- package/dist/run/run.event.js +1 -217
- package/dist/run/run.handler.js +1 -919
- package/dist/run/run.operation.js +1 -667
- package/dist/run/run.presentation.js +1 -223
- package/dist/run/run.schema.js +1 -179
- package/dist/run/run.test-spec.js +1 -58
- package/dist/seeders/index.js +2 -21
- package/dist/shared/index.js +1 -626
- package/dist/shared/mock-agents.js +1 -82
- package/dist/shared/mock-runs.js +1 -113
- package/dist/shared/mock-tools.js +1 -146
- package/dist/tool/index.js +1 -949
- package/dist/tool/tool.entity.js +1 -90
- package/dist/tool/tool.enum.js +1 -26
- package/dist/tool/tool.event.js +1 -99
- package/dist/tool/tool.handler.js +1 -699
- package/dist/tool/tool.operation.js +1 -482
- package/dist/tool/tool.presentation.js +1 -188
- package/dist/tool/tool.schema.js +1 -141
- package/dist/tool/tool.test-spec.js +1 -58
- package/dist/ui/AgentDashboard.js +1 -2527
- package/dist/ui/AgentDashboard.visualizations.js +1 -217
- package/dist/ui/AgentRunList.js +1 -482
- package/dist/ui/AgentToolRegistry.js +1 -212
- package/dist/ui/ExecutionConsoleHost.d.ts +1 -0
- package/dist/ui/ExecutionConsoleHost.js +2 -0
- package/dist/ui/ExecutionConsoleHost.test.d.ts +1 -0
- package/dist/ui/hooks/index.js +1 -740
- package/dist/ui/hooks/useAgentList.js +1 -55
- package/dist/ui/hooks/useAgentMutations.js +1 -530
- package/dist/ui/hooks/useRunList.js +1 -70
- package/dist/ui/hooks/useToolList.js +1 -85
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +5 -3018
- package/dist/ui/modals/AgentActionsModal.js +1 -304
- package/dist/ui/modals/CreateAgentModal.js +1 -243
- package/dist/ui/modals/index.js +1 -546
- package/dist/ui/overlays/demo-overlays.js +1 -64
- package/dist/ui/overlays/index.js +1 -64
- package/dist/ui/renderers/agent-list.markdown.js +2 -64
- package/dist/ui/renderers/agent-list.renderer.js +1 -180
- package/dist/ui/renderers/dashboard.markdown.js +2 -288
- package/dist/ui/renderers/index.js +5 -642
- package/dist/ui/renderers/run-list.markdown.js +2 -50
- package/dist/ui/renderers/tool-registry.markdown.js +2 -64
- package/dist/ui/views/AgentListView.js +1 -165
- package/dist/ui/views/RunDataTable.js +1 -326
- package/dist/ui/views/RunListView.js +1 -479
- package/dist/ui/views/ToolRegistryView.js +1 -209
- package/dist/ui/views/index.js +1 -851
- package/dist/ui/views/run-data-table.columns.js +1 -271
- package/dist/ui/views/run-list.shared.js +1 -177
- package/dist/visualizations/catalog.js +1 -134
- package/dist/visualizations/index.js +1 -187
- package/dist/visualizations/selectors.js +1 -181
- package/package.json +29 -13
- package/src/ui/ExecutionConsoleHost.test.tsx +110 -0
- package/src/ui/ExecutionConsoleHost.tsx +14 -0
- package/src/ui/index.ts +1 -1
|
@@ -1,83 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
var MOCK_AGENTS = [
|
|
4
|
-
{
|
|
5
|
-
id: "agent-1",
|
|
6
|
-
organizationId: "demo-org",
|
|
7
|
-
name: "Customer Support Bot",
|
|
8
|
-
slug: "customer-support-bot",
|
|
9
|
-
description: "Handles tier-1 customer inquiries and routes complex issues.",
|
|
10
|
-
status: "ACTIVE",
|
|
11
|
-
modelProvider: "OPENAI",
|
|
12
|
-
modelName: "gpt-4o-mini",
|
|
13
|
-
modelConfig: { temperature: 0.7 },
|
|
14
|
-
systemPrompt: "You are a helpful customer support assistant.",
|
|
15
|
-
toolChoice: "auto",
|
|
16
|
-
maxIterations: 10,
|
|
17
|
-
timeoutMs: 120000,
|
|
18
|
-
version: "1.0.0",
|
|
19
|
-
tags: ["support", "tier-1"],
|
|
20
|
-
createdAt: new Date("2024-01-15T10:00:00Z"),
|
|
21
|
-
updatedAt: new Date("2024-03-20T14:30:00Z")
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "agent-2",
|
|
25
|
-
organizationId: "demo-org",
|
|
26
|
-
name: "Code Review Assistant",
|
|
27
|
-
slug: "code-review-assistant",
|
|
28
|
-
description: "Reviews pull requests and provides actionable feedback.",
|
|
29
|
-
status: "ACTIVE",
|
|
30
|
-
modelProvider: "ANTHROPIC",
|
|
31
|
-
modelName: "claude-sonnet-4-20250514",
|
|
32
|
-
modelConfig: { temperature: 0.3 },
|
|
33
|
-
systemPrompt: "You are a code review expert.",
|
|
34
|
-
toolChoice: "auto",
|
|
35
|
-
maxIterations: 15,
|
|
36
|
-
timeoutMs: 180000,
|
|
37
|
-
version: "2.1.0",
|
|
38
|
-
tags: ["code", "review", "dev"],
|
|
39
|
-
createdAt: new Date("2024-02-10T09:00:00Z"),
|
|
40
|
-
updatedAt: new Date("2024-04-05T11:15:00Z")
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
id: "agent-3",
|
|
44
|
-
organizationId: "demo-org",
|
|
45
|
-
name: "Data Analyst",
|
|
46
|
-
slug: "data-analyst",
|
|
47
|
-
description: "Queries databases and generates insights from data.",
|
|
48
|
-
status: "PAUSED",
|
|
49
|
-
modelProvider: "OPENAI",
|
|
50
|
-
modelName: "gpt-4o",
|
|
51
|
-
modelConfig: { temperature: 0.5 },
|
|
52
|
-
systemPrompt: "You are a data analyst expert in SQL and analytics.",
|
|
53
|
-
toolChoice: "required",
|
|
54
|
-
maxIterations: 20,
|
|
55
|
-
timeoutMs: 300000,
|
|
56
|
-
version: "1.2.0",
|
|
57
|
-
tags: ["data", "analytics", "sql"],
|
|
58
|
-
createdAt: new Date("2024-03-01T08:00:00Z"),
|
|
59
|
-
updatedAt: new Date("2024-04-10T16:45:00Z")
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
id: "agent-4",
|
|
63
|
-
organizationId: "demo-org",
|
|
64
|
-
name: "Meeting Scheduler",
|
|
65
|
-
slug: "meeting-scheduler",
|
|
66
|
-
description: "Schedules meetings and manages calendar conflicts.",
|
|
67
|
-
status: "DRAFT",
|
|
68
|
-
modelProvider: "GOOGLE",
|
|
69
|
-
modelName: "gemini-2.0-flash",
|
|
70
|
-
modelConfig: { temperature: 0.2 },
|
|
71
|
-
systemPrompt: "You help schedule and organize meetings efficiently.",
|
|
72
|
-
toolChoice: "auto",
|
|
73
|
-
maxIterations: 5,
|
|
74
|
-
timeoutMs: 60000,
|
|
75
|
-
version: "0.1.0",
|
|
76
|
-
tags: ["calendar", "scheduling"],
|
|
77
|
-
createdAt: new Date("2024-04-01T12:00:00Z"),
|
|
78
|
-
updatedAt: new Date("2024-04-01T12:00:00Z")
|
|
79
|
-
}
|
|
80
|
-
];
|
|
81
|
-
export {
|
|
82
|
-
MOCK_AGENTS
|
|
83
|
-
};
|
|
2
|
+
var e=[{id:"agent-1",organizationId:"demo-org",name:"Customer Support Bot",slug:"customer-support-bot",description:"Handles tier-1 customer inquiries and routes complex issues.",status:"ACTIVE",modelProvider:"OPENAI",modelName:"gpt-4o-mini",modelConfig:{temperature:0.7},systemPrompt:"You are a helpful customer support assistant.",toolChoice:"auto",maxIterations:10,timeoutMs:120000,version:"1.0.0",tags:["support","tier-1"],createdAt:new Date("2024-01-15T10:00:00Z"),updatedAt:new Date("2024-03-20T14:30:00Z")},{id:"agent-2",organizationId:"demo-org",name:"Code Review Assistant",slug:"code-review-assistant",description:"Reviews pull requests and provides actionable feedback.",status:"ACTIVE",modelProvider:"ANTHROPIC",modelName:"claude-sonnet-4-20250514",modelConfig:{temperature:0.3},systemPrompt:"You are a code review expert.",toolChoice:"auto",maxIterations:15,timeoutMs:180000,version:"2.1.0",tags:["code","review","dev"],createdAt:new Date("2024-02-10T09:00:00Z"),updatedAt:new Date("2024-04-05T11:15:00Z")},{id:"agent-3",organizationId:"demo-org",name:"Data Analyst",slug:"data-analyst",description:"Queries databases and generates insights from data.",status:"PAUSED",modelProvider:"OPENAI",modelName:"gpt-4o",modelConfig:{temperature:0.5},systemPrompt:"You are a data analyst expert in SQL and analytics.",toolChoice:"required",maxIterations:20,timeoutMs:300000,version:"1.2.0",tags:["data","analytics","sql"],createdAt:new Date("2024-03-01T08:00:00Z"),updatedAt:new Date("2024-04-10T16:45:00Z")},{id:"agent-4",organizationId:"demo-org",name:"Meeting Scheduler",slug:"meeting-scheduler",description:"Schedules meetings and manages calendar conflicts.",status:"DRAFT",modelProvider:"GOOGLE",modelName:"gemini-2.0-flash",modelConfig:{temperature:0.2},systemPrompt:"You help schedule and organize meetings efficiently.",toolChoice:"auto",maxIterations:5,timeoutMs:60000,version:"0.1.0",tags:["calendar","scheduling"],createdAt:new Date("2024-04-01T12:00:00Z"),updatedAt:new Date("2024-04-01T12:00:00Z")}];export{e as MOCK_AGENTS};
|
package/dist/shared/mock-runs.js
CHANGED
|
@@ -1,114 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
var MOCK_RUNS = [
|
|
4
|
-
{
|
|
5
|
-
id: "run-1",
|
|
6
|
-
organizationId: "demo-org",
|
|
7
|
-
projectId: "demo-project",
|
|
8
|
-
agentId: "agent-1",
|
|
9
|
-
agentName: "Customer Support Bot",
|
|
10
|
-
userId: "user-1",
|
|
11
|
-
sessionId: "session-1",
|
|
12
|
-
input: { message: "How do I reset my password?", context: {} },
|
|
13
|
-
output: { response: "You can reset your password by clicking..." },
|
|
14
|
-
status: "COMPLETED",
|
|
15
|
-
totalTokens: 1250,
|
|
16
|
-
promptTokens: 800,
|
|
17
|
-
completionTokens: 450,
|
|
18
|
-
totalIterations: 3,
|
|
19
|
-
durationMs: 4500,
|
|
20
|
-
estimatedCostUsd: 0.0025,
|
|
21
|
-
queuedAt: new Date("2024-04-15T10:00:00Z"),
|
|
22
|
-
startedAt: new Date("2024-04-15T10:00:01Z"),
|
|
23
|
-
completedAt: new Date("2024-04-15T10:00:05Z"),
|
|
24
|
-
steps: [],
|
|
25
|
-
logs: []
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: "run-2",
|
|
29
|
-
organizationId: "demo-org",
|
|
30
|
-
projectId: "demo-project",
|
|
31
|
-
agentId: "agent-2",
|
|
32
|
-
agentName: "Code Review Assistant",
|
|
33
|
-
userId: "user-2",
|
|
34
|
-
input: { message: "Review PR #123", context: { prNumber: 123 } },
|
|
35
|
-
status: "IN_PROGRESS",
|
|
36
|
-
totalTokens: 3500,
|
|
37
|
-
promptTokens: 3000,
|
|
38
|
-
completionTokens: 500,
|
|
39
|
-
totalIterations: 5,
|
|
40
|
-
queuedAt: new Date("2024-04-15T10:30:00Z"),
|
|
41
|
-
startedAt: new Date("2024-04-15T10:30:02Z"),
|
|
42
|
-
steps: [],
|
|
43
|
-
logs: []
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
id: "run-3",
|
|
47
|
-
organizationId: "demo-org",
|
|
48
|
-
projectId: "demo-project",
|
|
49
|
-
agentId: "agent-1",
|
|
50
|
-
agentName: "Customer Support Bot",
|
|
51
|
-
userId: "user-1",
|
|
52
|
-
input: { message: "What are your business hours?" },
|
|
53
|
-
output: { response: "Our business hours are 9 AM to 5 PM EST..." },
|
|
54
|
-
status: "COMPLETED",
|
|
55
|
-
totalTokens: 800,
|
|
56
|
-
promptTokens: 500,
|
|
57
|
-
completionTokens: 300,
|
|
58
|
-
totalIterations: 2,
|
|
59
|
-
durationMs: 2100,
|
|
60
|
-
estimatedCostUsd: 0.0012,
|
|
61
|
-
queuedAt: new Date("2024-04-15T09:00:00Z"),
|
|
62
|
-
startedAt: new Date("2024-04-15T09:00:01Z"),
|
|
63
|
-
completedAt: new Date("2024-04-15T09:00:03Z"),
|
|
64
|
-
steps: [],
|
|
65
|
-
logs: []
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: "run-4",
|
|
69
|
-
organizationId: "demo-org",
|
|
70
|
-
projectId: "demo-project",
|
|
71
|
-
agentId: "agent-3",
|
|
72
|
-
agentName: "Data Analyst",
|
|
73
|
-
userId: "user-3",
|
|
74
|
-
input: { message: "Generate sales report for Q1" },
|
|
75
|
-
status: "FAILED",
|
|
76
|
-
errorMessage: "Database connection timeout",
|
|
77
|
-
errorCode: "DB_TIMEOUT",
|
|
78
|
-
totalTokens: 2000,
|
|
79
|
-
promptTokens: 1500,
|
|
80
|
-
completionTokens: 500,
|
|
81
|
-
totalIterations: 8,
|
|
82
|
-
durationMs: 45000,
|
|
83
|
-
queuedAt: new Date("2024-04-14T15:00:00Z"),
|
|
84
|
-
startedAt: new Date("2024-04-14T15:00:05Z"),
|
|
85
|
-
completedAt: new Date("2024-04-14T15:00:50Z"),
|
|
86
|
-
steps: [],
|
|
87
|
-
logs: []
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
id: "run-5",
|
|
91
|
-
organizationId: "demo-org",
|
|
92
|
-
projectId: "demo-project",
|
|
93
|
-
agentId: "agent-2",
|
|
94
|
-
agentName: "Code Review Assistant",
|
|
95
|
-
userId: "user-2",
|
|
96
|
-
input: { message: "Review PR #120" },
|
|
97
|
-
output: { response: "Code review complete. 3 suggestions..." },
|
|
98
|
-
status: "COMPLETED",
|
|
99
|
-
totalTokens: 5200,
|
|
100
|
-
promptTokens: 4000,
|
|
101
|
-
completionTokens: 1200,
|
|
102
|
-
totalIterations: 7,
|
|
103
|
-
durationMs: 15000,
|
|
104
|
-
estimatedCostUsd: 0.0156,
|
|
105
|
-
queuedAt: new Date("2024-04-14T11:00:00Z"),
|
|
106
|
-
startedAt: new Date("2024-04-14T11:00:03Z"),
|
|
107
|
-
completedAt: new Date("2024-04-14T11:00:18Z"),
|
|
108
|
-
steps: [],
|
|
109
|
-
logs: []
|
|
110
|
-
}
|
|
111
|
-
];
|
|
112
|
-
export {
|
|
113
|
-
MOCK_RUNS
|
|
114
|
-
};
|
|
2
|
+
var e=[{id:"run-1",organizationId:"demo-org",projectId:"demo-project",agentId:"agent-1",agentName:"Customer Support Bot",userId:"user-1",sessionId:"session-1",input:{message:"How do I reset my password?",context:{}},output:{response:"You can reset your password by clicking..."},status:"COMPLETED",totalTokens:1250,promptTokens:800,completionTokens:450,totalIterations:3,durationMs:4500,estimatedCostUsd:0.0025,queuedAt:new Date("2024-04-15T10:00:00Z"),startedAt:new Date("2024-04-15T10:00:01Z"),completedAt:new Date("2024-04-15T10:00:05Z"),steps:[],logs:[]},{id:"run-2",organizationId:"demo-org",projectId:"demo-project",agentId:"agent-2",agentName:"Code Review Assistant",userId:"user-2",input:{message:"Review PR #123",context:{prNumber:123}},status:"IN_PROGRESS",totalTokens:3500,promptTokens:3000,completionTokens:500,totalIterations:5,queuedAt:new Date("2024-04-15T10:30:00Z"),startedAt:new Date("2024-04-15T10:30:02Z"),steps:[],logs:[]},{id:"run-3",organizationId:"demo-org",projectId:"demo-project",agentId:"agent-1",agentName:"Customer Support Bot",userId:"user-1",input:{message:"What are your business hours?"},output:{response:"Our business hours are 9 AM to 5 PM EST..."},status:"COMPLETED",totalTokens:800,promptTokens:500,completionTokens:300,totalIterations:2,durationMs:2100,estimatedCostUsd:0.0012,queuedAt:new Date("2024-04-15T09:00:00Z"),startedAt:new Date("2024-04-15T09:00:01Z"),completedAt:new Date("2024-04-15T09:00:03Z"),steps:[],logs:[]},{id:"run-4",organizationId:"demo-org",projectId:"demo-project",agentId:"agent-3",agentName:"Data Analyst",userId:"user-3",input:{message:"Generate sales report for Q1"},status:"FAILED",errorMessage:"Database connection timeout",errorCode:"DB_TIMEOUT",totalTokens:2000,promptTokens:1500,completionTokens:500,totalIterations:8,durationMs:45000,queuedAt:new Date("2024-04-14T15:00:00Z"),startedAt:new Date("2024-04-14T15:00:05Z"),completedAt:new Date("2024-04-14T15:00:50Z"),steps:[],logs:[]},{id:"run-5",organizationId:"demo-org",projectId:"demo-project",agentId:"agent-2",agentName:"Code Review Assistant",userId:"user-2",input:{message:"Review PR #120"},output:{response:"Code review complete. 3 suggestions..."},status:"COMPLETED",totalTokens:5200,promptTokens:4000,completionTokens:1200,totalIterations:7,durationMs:15000,estimatedCostUsd:0.0156,queuedAt:new Date("2024-04-14T11:00:00Z"),startedAt:new Date("2024-04-14T11:00:03Z"),completedAt:new Date("2024-04-14T11:00:18Z"),steps:[],logs:[]}];export{e as MOCK_RUNS};
|
|
@@ -1,147 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
var MOCK_TOOLS = [
|
|
4
|
-
{
|
|
5
|
-
id: "tool-1",
|
|
6
|
-
organizationId: "demo-org",
|
|
7
|
-
name: "Web Search",
|
|
8
|
-
slug: "web-search",
|
|
9
|
-
description: "Search the web for real-time information using Brave API.",
|
|
10
|
-
category: "RETRIEVAL",
|
|
11
|
-
status: "ACTIVE",
|
|
12
|
-
parametersSchema: {
|
|
13
|
-
type: "object",
|
|
14
|
-
properties: {
|
|
15
|
-
query: { type: "string", description: "Search query" },
|
|
16
|
-
numResults: { type: "number", default: 10 }
|
|
17
|
-
},
|
|
18
|
-
required: ["query"]
|
|
19
|
-
},
|
|
20
|
-
outputSchema: { type: "array", items: { type: "object" } },
|
|
21
|
-
implementationType: "http",
|
|
22
|
-
implementationConfig: {
|
|
23
|
-
url: "https://api.brave.com/search",
|
|
24
|
-
method: "GET"
|
|
25
|
-
},
|
|
26
|
-
maxInvocationsPerMinute: 60,
|
|
27
|
-
timeoutMs: 30000,
|
|
28
|
-
version: "1.0.0",
|
|
29
|
-
tags: ["search", "web"],
|
|
30
|
-
createdAt: new Date("2024-01-01T00:00:00Z"),
|
|
31
|
-
updatedAt: new Date("2024-02-15T10:00:00Z")
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "tool-2",
|
|
35
|
-
organizationId: "demo-org",
|
|
36
|
-
name: "SQL Query",
|
|
37
|
-
slug: "sql-query",
|
|
38
|
-
description: "Execute read-only SQL queries against the data warehouse.",
|
|
39
|
-
category: "RETRIEVAL",
|
|
40
|
-
status: "ACTIVE",
|
|
41
|
-
parametersSchema: {
|
|
42
|
-
type: "object",
|
|
43
|
-
properties: {
|
|
44
|
-
query: { type: "string", description: "SQL query" },
|
|
45
|
-
maxRows: { type: "number", default: 100 }
|
|
46
|
-
},
|
|
47
|
-
required: ["query"]
|
|
48
|
-
},
|
|
49
|
-
outputSchema: { type: "object" },
|
|
50
|
-
implementationType: "function",
|
|
51
|
-
implementationConfig: { handler: "executeSqlQuery" },
|
|
52
|
-
maxInvocationsPerMinute: 30,
|
|
53
|
-
timeoutMs: 60000,
|
|
54
|
-
version: "1.1.0",
|
|
55
|
-
tags: ["sql", "database"],
|
|
56
|
-
createdAt: new Date("2024-01-05T00:00:00Z"),
|
|
57
|
-
updatedAt: new Date("2024-03-10T14:00:00Z")
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
id: "tool-3",
|
|
61
|
-
organizationId: "demo-org",
|
|
62
|
-
name: "Email Sender",
|
|
63
|
-
slug: "email-sender",
|
|
64
|
-
description: "Send emails via SMTP or API.",
|
|
65
|
-
category: "COMMUNICATION",
|
|
66
|
-
status: "ACTIVE",
|
|
67
|
-
parametersSchema: {
|
|
68
|
-
type: "object",
|
|
69
|
-
properties: {
|
|
70
|
-
to: { type: "string" },
|
|
71
|
-
subject: { type: "string" },
|
|
72
|
-
body: { type: "string" }
|
|
73
|
-
},
|
|
74
|
-
required: ["to", "subject", "body"]
|
|
75
|
-
},
|
|
76
|
-
implementationType: "http",
|
|
77
|
-
implementationConfig: { url: "/api/send-email", method: "POST" },
|
|
78
|
-
maxInvocationsPerMinute: 10,
|
|
79
|
-
timeoutMs: 30000,
|
|
80
|
-
version: "1.0.0",
|
|
81
|
-
tags: ["email", "communication"],
|
|
82
|
-
createdAt: new Date("2024-02-01T00:00:00Z"),
|
|
83
|
-
updatedAt: new Date("2024-02-01T00:00:00Z")
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: "tool-4",
|
|
87
|
-
organizationId: "demo-org",
|
|
88
|
-
name: "GitHub Integration",
|
|
89
|
-
slug: "github-integration",
|
|
90
|
-
description: "Interact with GitHub repositories, PRs, and issues.",
|
|
91
|
-
category: "INTEGRATION",
|
|
92
|
-
status: "ACTIVE",
|
|
93
|
-
parametersSchema: {
|
|
94
|
-
type: "object",
|
|
95
|
-
properties: {
|
|
96
|
-
action: {
|
|
97
|
-
type: "string",
|
|
98
|
-
enum: ["list_prs", "get_pr", "create_comment"]
|
|
99
|
-
},
|
|
100
|
-
repo: { type: "string" },
|
|
101
|
-
params: { type: "object" }
|
|
102
|
-
},
|
|
103
|
-
required: ["action", "repo"]
|
|
104
|
-
},
|
|
105
|
-
implementationType: "http",
|
|
106
|
-
implementationConfig: { url: "https://api.github.com", auth: "token" },
|
|
107
|
-
maxInvocationsPerMinute: 100,
|
|
108
|
-
timeoutMs: 15000,
|
|
109
|
-
version: "2.0.0",
|
|
110
|
-
tags: ["github", "integration", "code"],
|
|
111
|
-
createdAt: new Date("2024-02-20T00:00:00Z"),
|
|
112
|
-
updatedAt: new Date("2024-04-01T09:00:00Z")
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
id: "tool-5",
|
|
116
|
-
organizationId: "demo-org",
|
|
117
|
-
name: "Calculator",
|
|
118
|
-
slug: "calculator",
|
|
119
|
-
description: "Perform mathematical calculations.",
|
|
120
|
-
category: "COMPUTATION",
|
|
121
|
-
status: "ACTIVE",
|
|
122
|
-
parametersSchema: {
|
|
123
|
-
type: "object",
|
|
124
|
-
properties: {
|
|
125
|
-
expression: {
|
|
126
|
-
type: "string",
|
|
127
|
-
description: "Math expression to evaluate"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
required: ["expression"]
|
|
131
|
-
},
|
|
132
|
-
outputSchema: {
|
|
133
|
-
type: "object",
|
|
134
|
-
properties: { result: { type: "number" } }
|
|
135
|
-
},
|
|
136
|
-
implementationType: "function",
|
|
137
|
-
implementationConfig: { handler: "evaluateMath" },
|
|
138
|
-
timeoutMs: 5000,
|
|
139
|
-
version: "1.0.0",
|
|
140
|
-
tags: ["math", "utility"],
|
|
141
|
-
createdAt: new Date("2024-01-10T00:00:00Z"),
|
|
142
|
-
updatedAt: new Date("2024-01-10T00:00:00Z")
|
|
143
|
-
}
|
|
144
|
-
];
|
|
145
|
-
export {
|
|
146
|
-
MOCK_TOOLS
|
|
147
|
-
};
|
|
2
|
+
var e=[{id:"tool-1",organizationId:"demo-org",name:"Web Search",slug:"web-search",description:"Search the web for real-time information using Brave API.",category:"RETRIEVAL",status:"ACTIVE",parametersSchema:{type:"object",properties:{query:{type:"string",description:"Search query"},numResults:{type:"number",default:10}},required:["query"]},outputSchema:{type:"array",items:{type:"object"}},implementationType:"http",implementationConfig:{url:"https://api.brave.com/search",method:"GET"},maxInvocationsPerMinute:60,timeoutMs:30000,version:"1.0.0",tags:["search","web"],createdAt:new Date("2024-01-01T00:00:00Z"),updatedAt:new Date("2024-02-15T10:00:00Z")},{id:"tool-2",organizationId:"demo-org",name:"SQL Query",slug:"sql-query",description:"Execute read-only SQL queries against the data warehouse.",category:"RETRIEVAL",status:"ACTIVE",parametersSchema:{type:"object",properties:{query:{type:"string",description:"SQL query"},maxRows:{type:"number",default:100}},required:["query"]},outputSchema:{type:"object"},implementationType:"function",implementationConfig:{handler:"executeSqlQuery"},maxInvocationsPerMinute:30,timeoutMs:60000,version:"1.1.0",tags:["sql","database"],createdAt:new Date("2024-01-05T00:00:00Z"),updatedAt:new Date("2024-03-10T14:00:00Z")},{id:"tool-3",organizationId:"demo-org",name:"Email Sender",slug:"email-sender",description:"Send emails via SMTP or API.",category:"COMMUNICATION",status:"ACTIVE",parametersSchema:{type:"object",properties:{to:{type:"string"},subject:{type:"string"},body:{type:"string"}},required:["to","subject","body"]},implementationType:"http",implementationConfig:{url:"/api/send-email",method:"POST"},maxInvocationsPerMinute:10,timeoutMs:30000,version:"1.0.0",tags:["email","communication"],createdAt:new Date("2024-02-01T00:00:00Z"),updatedAt:new Date("2024-02-01T00:00:00Z")},{id:"tool-4",organizationId:"demo-org",name:"GitHub Integration",slug:"github-integration",description:"Interact with GitHub repositories, PRs, and issues.",category:"INTEGRATION",status:"ACTIVE",parametersSchema:{type:"object",properties:{action:{type:"string",enum:["list_prs","get_pr","create_comment"]},repo:{type:"string"},params:{type:"object"}},required:["action","repo"]},implementationType:"http",implementationConfig:{url:"https://api.github.com",auth:"token"},maxInvocationsPerMinute:100,timeoutMs:15000,version:"2.0.0",tags:["github","integration","code"],createdAt:new Date("2024-02-20T00:00:00Z"),updatedAt:new Date("2024-04-01T09:00:00Z")},{id:"tool-5",organizationId:"demo-org",name:"Calculator",slug:"calculator",description:"Perform mathematical calculations.",category:"COMPUTATION",status:"ACTIVE",parametersSchema:{type:"object",properties:{expression:{type:"string",description:"Math expression to evaluate"}},required:["expression"]},outputSchema:{type:"object",properties:{result:{type:"number"}}},implementationType:"function",implementationConfig:{handler:"evaluateMath"},timeoutMs:5000,version:"1.0.0",tags:["math","utility"],createdAt:new Date("2024-01-10T00:00:00Z"),updatedAt:new Date("2024-01-10T00:00:00Z")}];export{e as MOCK_TOOLS};
|