@contractspec/example.agent-console 1.46.1 → 1.48.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/.turbo/turbo-build$colon$bundle.log +275 -128
- package/.turbo/turbo-build.log +274 -127
- package/CHANGELOG.md +52 -0
- package/dist/agent/agent.entity.d.ts +36 -36
- package/dist/agent/agent.entity.d.ts.map +1 -1
- package/dist/agent/agent.enum.d.ts +4 -4
- package/dist/agent/agent.enum.d.ts.map +1 -1
- package/dist/agent/agent.event.d.ts +31 -31
- package/dist/agent/agent.event.d.ts.map +1 -1
- package/dist/agent/agent.event.js +5 -5
- package/dist/agent/agent.event.js.map +1 -1
- package/dist/agent/agent.handler.js.map +1 -1
- package/dist/agent/agent.operation.d.ts +117 -117
- package/dist/agent/agent.operation.d.ts.map +1 -1
- package/dist/agent/agent.presentation.d.ts +4 -5
- package/dist/agent/agent.presentation.d.ts.map +1 -1
- package/dist/agent/agent.presentation.js +7 -7
- package/dist/agent/agent.presentation.js.map +1 -1
- package/dist/agent/agent.schema.d.ts +95 -95
- package/dist/agent/agent.schema.d.ts.map +1 -1
- package/dist/agent/agent.test-spec.d.ts +8 -0
- package/dist/agent/agent.test-spec.d.ts.map +1 -0
- package/dist/agent/agent.test-spec.js +65 -0
- package/dist/agent/agent.test-spec.js.map +1 -0
- package/dist/agent.capability.d.ts +7 -0
- package/dist/agent.capability.d.ts.map +1 -0
- package/dist/agent.capability.js +20 -0
- package/dist/agent.capability.js.map +1 -0
- package/dist/agent.feature.d.ts.map +1 -1
- package/dist/agent.feature.js +4 -2
- package/dist/agent.feature.js.map +1 -1
- package/dist/example.d.ts +2 -2
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +4 -2
- package/dist/example.js.map +1 -1
- package/dist/handlers/agent.handlers.d.ts +135 -0
- package/dist/handlers/agent.handlers.d.ts.map +1 -0
- package/dist/handlers/agent.handlers.js +263 -0
- package/dist/handlers/agent.handlers.js.map +1 -0
- package/dist/handlers/index.d.ts +2 -1
- package/dist/handlers/index.js +2 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +19 -1
- package/dist/run/run.entity.d.ts +56 -56
- package/dist/run/run.enum.d.ts +5 -5
- package/dist/run/run.event.d.ts +71 -71
- package/dist/run/run.event.js +8 -8
- package/dist/run/run.event.js.map +1 -1
- package/dist/run/run.operation.d.ts +175 -175
- package/dist/run/run.presentation.d.ts +3 -4
- package/dist/run/run.presentation.d.ts.map +1 -1
- package/dist/run/run.presentation.js +5 -5
- package/dist/run/run.presentation.js.map +1 -1
- package/dist/run/run.schema.d.ts +99 -99
- package/dist/run/run.test-spec.d.ts +8 -0
- package/dist/run/run.test-spec.d.ts.map +1 -0
- package/dist/run/run.test-spec.js +65 -0
- package/dist/run/run.test-spec.js.map +1 -0
- package/dist/seeders/index.d.ts +10 -0
- package/dist/seeders/index.d.ts.map +1 -0
- package/dist/seeders/index.js +20 -0
- package/dist/seeders/index.js.map +1 -0
- package/dist/shared/overlay-types.d.ts +34 -0
- package/dist/shared/overlay-types.d.ts.map +1 -0
- package/dist/shared/overlay-types.js +0 -0
- package/dist/tool/tool.entity.d.ts +24 -24
- package/dist/tool/tool.enum.d.ts +4 -4
- package/dist/tool/tool.event.d.ts +25 -25
- package/dist/tool/tool.event.js +4 -4
- package/dist/tool/tool.event.js.map +1 -1
- package/dist/tool/tool.handler.d.ts.map +1 -1
- package/dist/tool/tool.operation.d.ts +101 -101
- package/dist/tool/tool.presentation.d.ts +3 -4
- package/dist/tool/tool.presentation.d.ts.map +1 -1
- package/dist/tool/tool.presentation.js +5 -5
- package/dist/tool/tool.presentation.js.map +1 -1
- package/dist/tool/tool.schema.d.ts +52 -52
- package/dist/tool/tool.schema.d.ts.map +1 -1
- package/dist/tool/tool.test-spec.d.ts +8 -0
- package/dist/tool/tool.test-spec.d.ts.map +1 -0
- package/dist/tool/tool.test-spec.js +65 -0
- package/dist/tool/tool.test-spec.js.map +1 -0
- package/dist/ui/AgentDashboard.d.ts +7 -0
- package/dist/ui/AgentDashboard.d.ts.map +1 -0
- package/dist/ui/AgentDashboard.js +420 -0
- package/dist/ui/AgentDashboard.js.map +1 -0
- package/dist/ui/AgentRunList.d.ts +2 -0
- package/dist/ui/AgentRunList.js +5 -0
- package/dist/ui/AgentToolRegistry.d.ts +2 -0
- package/dist/ui/AgentToolRegistry.js +5 -0
- package/dist/ui/hooks/index.d.ts +6 -0
- package/dist/ui/hooks/index.js +8 -0
- package/dist/ui/hooks/useAgentList.d.ts +28 -0
- package/dist/ui/hooks/useAgentList.d.ts.map +1 -0
- package/dist/ui/hooks/useAgentList.js +66 -0
- package/dist/ui/hooks/useAgentList.js.map +1 -0
- package/dist/ui/hooks/useAgentMutations.d.ts +29 -0
- package/dist/ui/hooks/useAgentMutations.d.ts.map +1 -0
- package/dist/ui/hooks/useAgentMutations.js +124 -0
- package/dist/ui/hooks/useAgentMutations.js.map +1 -0
- package/dist/ui/hooks/useRunList.d.ts +24 -0
- package/dist/ui/hooks/useRunList.d.ts.map +1 -0
- package/dist/ui/hooks/useRunList.js +66 -0
- package/dist/ui/hooks/useRunList.js.map +1 -0
- package/dist/ui/hooks/useToolList.d.ts +40 -0
- package/dist/ui/hooks/useToolList.d.ts.map +1 -0
- package/dist/ui/hooks/useToolList.js +96 -0
- package/dist/ui/hooks/useToolList.js.map +1 -0
- package/dist/ui/index.d.ts +24 -0
- package/dist/ui/index.js +24 -0
- package/dist/ui/modals/AgentActionsModal.d.ts +27 -0
- package/dist/ui/modals/AgentActionsModal.d.ts.map +1 -0
- package/dist/ui/modals/AgentActionsModal.js +262 -0
- package/dist/ui/modals/AgentActionsModal.js.map +1 -0
- package/dist/ui/modals/CreateAgentModal.d.ts +25 -0
- package/dist/ui/modals/CreateAgentModal.d.ts.map +1 -0
- package/dist/ui/modals/CreateAgentModal.js +214 -0
- package/dist/ui/modals/CreateAgentModal.js.map +1 -0
- package/dist/ui/modals/index.d.ts +3 -0
- package/dist/ui/modals/index.js +4 -0
- package/dist/ui/overlays/demo-overlays.d.ts +19 -0
- package/dist/ui/overlays/demo-overlays.d.ts.map +1 -0
- package/dist/ui/overlays/demo-overlays.js +73 -0
- package/dist/ui/overlays/demo-overlays.js.map +1 -0
- package/dist/ui/overlays/index.d.ts +2 -0
- package/dist/ui/overlays/index.js +3 -0
- package/dist/ui/renderers/agent-list.markdown.d.ts +15 -0
- package/dist/ui/renderers/agent-list.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/agent-list.markdown.js +51 -0
- package/dist/ui/renderers/agent-list.markdown.js.map +1 -0
- package/dist/ui/renderers/agent-list.renderer.d.ts +11 -0
- package/dist/ui/renderers/agent-list.renderer.d.ts.map +1 -0
- package/dist/ui/renderers/agent-list.renderer.js +19 -0
- package/dist/ui/renderers/agent-list.renderer.js.map +1 -0
- package/dist/ui/renderers/dashboard.markdown.d.ts +15 -0
- package/dist/ui/renderers/dashboard.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/dashboard.markdown.js +100 -0
- package/dist/ui/renderers/dashboard.markdown.js.map +1 -0
- package/dist/ui/renderers/index.d.ts +6 -0
- package/dist/ui/renderers/index.js +7 -0
- package/dist/ui/renderers/run-list.markdown.d.ts +15 -0
- package/dist/ui/renderers/run-list.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/run-list.markdown.js +44 -0
- package/dist/ui/renderers/run-list.markdown.js.map +1 -0
- package/dist/ui/renderers/tool-registry.markdown.d.ts +15 -0
- package/dist/ui/renderers/tool-registry.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/tool-registry.markdown.js +55 -0
- package/dist/ui/renderers/tool-registry.markdown.js.map +1 -0
- package/dist/ui/views/AgentListView.d.ts +7 -0
- package/dist/ui/views/AgentListView.d.ts.map +1 -0
- package/dist/ui/views/AgentListView.js +93 -0
- package/dist/ui/views/AgentListView.js.map +1 -0
- package/dist/ui/views/RunListView.d.ts +14 -0
- package/dist/ui/views/RunListView.d.ts.map +1 -0
- package/dist/ui/views/RunListView.js +165 -0
- package/dist/ui/views/RunListView.js.map +1 -0
- package/dist/ui/views/ToolRegistryView.d.ts +14 -0
- package/dist/ui/views/ToolRegistryView.d.ts.map +1 -0
- package/dist/ui/views/ToolRegistryView.js +97 -0
- package/dist/ui/views/ToolRegistryView.js.map +1 -0
- package/dist/ui/views/index.d.ts +4 -0
- package/dist/ui/views/index.js +5 -0
- package/package.json +46 -10
- package/src/agent/agent.presentation.ts +7 -8
- package/src/agent/agent.test-spec.ts +55 -0
- package/src/agent.capability.ts +13 -0
- package/src/agent.feature.ts +3 -2
- package/src/example.ts +3 -3
- package/src/handlers/agent.handlers.ts +572 -0
- package/src/handlers/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/run/run.presentation.ts +5 -6
- package/src/run/run.test-spec.ts +55 -0
- package/src/seeders/index.ts +29 -0
- package/src/shared/overlay-types.ts +39 -0
- package/src/tool/tool.presentation.ts +5 -6
- package/src/tool/tool.test-spec.ts +55 -0
- package/src/ui/AgentDashboard.tsx +416 -0
- package/src/ui/AgentRunList.tsx +8 -0
- package/src/ui/AgentToolRegistry.tsx +8 -0
- package/src/ui/hooks/index.ts +14 -0
- package/src/ui/hooks/useAgentList.ts +80 -0
- package/src/ui/hooks/useAgentMutations.ts +156 -0
- package/src/ui/hooks/useRunList.ts +81 -0
- package/src/ui/hooks/useToolList.ts +122 -0
- package/src/ui/index.ts +21 -0
- package/src/ui/modals/AgentActionsModal.tsx +306 -0
- package/src/ui/modals/CreateAgentModal.tsx +257 -0
- package/src/ui/modals/index.ts +2 -0
- package/src/ui/overlays/demo-overlays.ts +77 -0
- package/src/ui/overlays/index.ts +1 -0
- package/src/ui/renderers/agent-list.markdown.ts +84 -0
- package/src/ui/renderers/agent-list.renderer.tsx +27 -0
- package/src/ui/renderers/dashboard.markdown.ts +169 -0
- package/src/ui/renderers/index.ts +12 -0
- package/src/ui/renderers/run-list.markdown.ts +75 -0
- package/src/ui/renderers/tool-registry.markdown.ts +91 -0
- package/src/ui/views/AgentListView.tsx +113 -0
- package/src/ui/views/RunListView.tsx +173 -0
- package/src/ui/views/ToolRegistryView.tsx +140 -0
- package/src/ui/views/index.ts +6 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,168 +1,168 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema821 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/tool/tool.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* AI tool definition.
|
|
6
6
|
*/
|
|
7
|
-
declare const ToolModel:
|
|
7
|
+
declare const ToolModel: _contractspec_lib_schema821.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
organizationId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
name: {
|
|
17
|
-
type:
|
|
17
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
slug: {
|
|
21
|
-
type:
|
|
21
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
description: {
|
|
25
|
-
type:
|
|
25
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
category: {
|
|
29
|
-
type:
|
|
29
|
+
type: _contractspec_lib_schema821.EnumType<[string, string, string, string, string, string]>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
status: {
|
|
33
|
-
type:
|
|
33
|
+
type: _contractspec_lib_schema821.EnumType<[string, string, string, string]>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
parametersSchema: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
outputSchema: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
implementationType: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema821.EnumType<[string, string, string]>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
implementationConfig: {
|
|
49
|
-
type:
|
|
49
|
+
type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
50
50
|
isOptional: false;
|
|
51
51
|
};
|
|
52
52
|
maxInvocationsPerMinute: {
|
|
53
|
-
type:
|
|
53
|
+
type: _contractspec_lib_schema821.FieldType<number, number>;
|
|
54
54
|
isOptional: true;
|
|
55
55
|
};
|
|
56
56
|
timeoutMs: {
|
|
57
|
-
type:
|
|
57
|
+
type: _contractspec_lib_schema821.FieldType<number, number>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
defaultValue: number;
|
|
60
60
|
};
|
|
61
61
|
version: {
|
|
62
|
-
type:
|
|
62
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
tags: {
|
|
66
|
-
type:
|
|
66
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
67
67
|
isArray: true;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
createdAt: {
|
|
71
|
-
type:
|
|
71
|
+
type: _contractspec_lib_schema821.FieldType<Date, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
updatedAt: {
|
|
75
|
-
type:
|
|
75
|
+
type: _contractspec_lib_schema821.FieldType<Date, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
}>;
|
|
79
79
|
/**
|
|
80
80
|
* Summary of a tool for list views.
|
|
81
81
|
*/
|
|
82
|
-
declare const ToolSummaryModel:
|
|
82
|
+
declare const ToolSummaryModel: _contractspec_lib_schema821.SchemaModel<{
|
|
83
83
|
id: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
name: {
|
|
88
|
-
type:
|
|
88
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
slug: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
description: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
category: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema821.EnumType<[string, string, string, string, string, string]>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
status: {
|
|
104
|
-
type:
|
|
104
|
+
type: _contractspec_lib_schema821.EnumType<[string, string, string, string]>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
version: {
|
|
108
|
-
type:
|
|
108
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
createdAt: {
|
|
112
|
-
type:
|
|
112
|
+
type: _contractspec_lib_schema821.FieldType<Date, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
}>;
|
|
116
116
|
/**
|
|
117
117
|
* Input for creating a tool.
|
|
118
118
|
*/
|
|
119
|
-
declare const CreateToolInputModel:
|
|
119
|
+
declare const CreateToolInputModel: _contractspec_lib_schema821.SchemaModel<{
|
|
120
120
|
organizationId: {
|
|
121
|
-
type:
|
|
121
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
name: {
|
|
125
|
-
type:
|
|
125
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
slug: {
|
|
129
|
-
type:
|
|
129
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
description: {
|
|
133
|
-
type:
|
|
133
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
category: {
|
|
137
|
-
type:
|
|
137
|
+
type: _contractspec_lib_schema821.EnumType<[string, string, string, string, string, string]>;
|
|
138
138
|
isOptional: true;
|
|
139
139
|
};
|
|
140
140
|
parametersSchema: {
|
|
141
|
-
type:
|
|
141
|
+
type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
outputSchema: {
|
|
145
|
-
type:
|
|
145
|
+
type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
146
146
|
isOptional: true;
|
|
147
147
|
};
|
|
148
148
|
implementationType: {
|
|
149
|
-
type:
|
|
149
|
+
type: _contractspec_lib_schema821.EnumType<[string, string, string]>;
|
|
150
150
|
isOptional: false;
|
|
151
151
|
};
|
|
152
152
|
implementationConfig: {
|
|
153
|
-
type:
|
|
153
|
+
type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
maxInvocationsPerMinute: {
|
|
157
|
-
type:
|
|
157
|
+
type: _contractspec_lib_schema821.FieldType<number, number>;
|
|
158
158
|
isOptional: true;
|
|
159
159
|
};
|
|
160
160
|
timeoutMs: {
|
|
161
|
-
type:
|
|
161
|
+
type: _contractspec_lib_schema821.FieldType<number, number>;
|
|
162
162
|
isOptional: true;
|
|
163
163
|
};
|
|
164
164
|
tags: {
|
|
165
|
-
type:
|
|
165
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
166
166
|
isArray: true;
|
|
167
167
|
isOptional: true;
|
|
168
168
|
};
|
|
@@ -170,45 +170,45 @@ declare const CreateToolInputModel: _contractspec_lib_schema0.SchemaModel<{
|
|
|
170
170
|
/**
|
|
171
171
|
* Input for updating a tool.
|
|
172
172
|
*/
|
|
173
|
-
declare const UpdateToolInputModel:
|
|
173
|
+
declare const UpdateToolInputModel: _contractspec_lib_schema821.SchemaModel<{
|
|
174
174
|
toolId: {
|
|
175
|
-
type:
|
|
175
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
176
176
|
isOptional: false;
|
|
177
177
|
};
|
|
178
178
|
name: {
|
|
179
|
-
type:
|
|
179
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
180
180
|
isOptional: true;
|
|
181
181
|
};
|
|
182
182
|
description: {
|
|
183
|
-
type:
|
|
183
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
184
184
|
isOptional: true;
|
|
185
185
|
};
|
|
186
186
|
status: {
|
|
187
|
-
type:
|
|
187
|
+
type: _contractspec_lib_schema821.EnumType<[string, string, string, string]>;
|
|
188
188
|
isOptional: true;
|
|
189
189
|
};
|
|
190
190
|
parametersSchema: {
|
|
191
|
-
type:
|
|
191
|
+
type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
192
192
|
isOptional: true;
|
|
193
193
|
};
|
|
194
194
|
outputSchema: {
|
|
195
|
-
type:
|
|
195
|
+
type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
196
196
|
isOptional: true;
|
|
197
197
|
};
|
|
198
198
|
implementationConfig: {
|
|
199
|
-
type:
|
|
199
|
+
type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
202
|
maxInvocationsPerMinute: {
|
|
203
|
-
type:
|
|
203
|
+
type: _contractspec_lib_schema821.FieldType<number, number>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
timeoutMs: {
|
|
207
|
-
type:
|
|
207
|
+
type: _contractspec_lib_schema821.FieldType<number, number>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
210
|
tags: {
|
|
211
|
-
type:
|
|
211
|
+
type: _contractspec_lib_schema821.FieldType<string, string>;
|
|
212
212
|
isArray: true;
|
|
213
213
|
isOptional: true;
|
|
214
214
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.schema.d.ts","names":[],"sources":["../../src/tool/tool.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,SAuCX,
|
|
1
|
+
{"version":3,"file":"tool.schema.d.ts","names":[],"sources":["../../src/tool/tool.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,SAuCX,8BAvCoB,WAuCpB,CAAA;EAAA,EAAA,EAAA;UAAA,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;8CAvCoB,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EA4CT,CAAA;EAaX,gBAAA,EAAA;;;;;;;;;8CAb2B,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAkBhB,CAAA;EA8BX,oBAAA,EAAA;;;;;;;;;;;;;;;;;;+CA9B+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,OAAA,EAAA,IAAA;IAmCpB,UAAA,EAAA,IAAA;EAyBX,CAAA;;;;;;;;;;;;;cA9EW,8CAAgB;;UAa3B,2BAAA,CAAA;;EAwC+B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAnCpB,kDAAoB;;UA8B/B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,kDAAoB;;UAyB/B,2BAAA,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _contractspec_lib_contracts45 from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/tool/tool.test-spec.d.ts
|
|
4
|
+
declare const toolListTest: _contractspec_lib_contracts45.TestSpec;
|
|
5
|
+
declare const toolGetTest: _contractspec_lib_contracts45.TestSpec;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { toolGetTest, toolListTest };
|
|
8
|
+
//# sourceMappingURL=tool.test-spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.test-spec.d.ts","names":[],"sources":["../../src/tool/tool.test-spec.ts"],"sourcesContent":[],"mappings":";;;cAEa,cAyBX,6BAAA,CAzBuB;cA2BZ,aAyBX,6BAAA,CAzBsB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineTestSpec } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/tool/tool.test-spec.ts
|
|
4
|
+
const toolListTest = defineTestSpec({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "test.agent.tool.list",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
owners: ["@agent-console-team"],
|
|
9
|
+
description: "Test for listing tools",
|
|
10
|
+
stability: "stable",
|
|
11
|
+
tags: ["test"]
|
|
12
|
+
},
|
|
13
|
+
target: {
|
|
14
|
+
type: "operation",
|
|
15
|
+
operation: {
|
|
16
|
+
key: "agent.tool.list",
|
|
17
|
+
version: "1.0.0"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
scenarios: [{
|
|
21
|
+
key: "success",
|
|
22
|
+
when: { operation: { key: "agent.tool.list" } },
|
|
23
|
+
then: [{
|
|
24
|
+
type: "expectOutput",
|
|
25
|
+
match: {}
|
|
26
|
+
}]
|
|
27
|
+
}, {
|
|
28
|
+
key: "error",
|
|
29
|
+
when: { operation: { key: "agent.tool.list" } },
|
|
30
|
+
then: [{ type: "expectError" }]
|
|
31
|
+
}]
|
|
32
|
+
});
|
|
33
|
+
const toolGetTest = defineTestSpec({
|
|
34
|
+
meta: {
|
|
35
|
+
key: "test.agent.tool.get",
|
|
36
|
+
version: "1.0.0",
|
|
37
|
+
owners: ["@agent-console-team"],
|
|
38
|
+
description: "Test for getting tool",
|
|
39
|
+
stability: "stable",
|
|
40
|
+
tags: ["test"]
|
|
41
|
+
},
|
|
42
|
+
target: {
|
|
43
|
+
type: "operation",
|
|
44
|
+
operation: {
|
|
45
|
+
key: "agent.tool.get",
|
|
46
|
+
version: "1.0.0"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
scenarios: [{
|
|
50
|
+
key: "success",
|
|
51
|
+
when: { operation: { key: "agent.tool.get" } },
|
|
52
|
+
then: [{
|
|
53
|
+
type: "expectOutput",
|
|
54
|
+
match: {}
|
|
55
|
+
}]
|
|
56
|
+
}, {
|
|
57
|
+
key: "error",
|
|
58
|
+
when: { operation: { key: "agent.tool.get" } },
|
|
59
|
+
then: [{ type: "expectError" }]
|
|
60
|
+
}]
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { toolGetTest, toolListTest };
|
|
65
|
+
//# sourceMappingURL=tool.test-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.test-spec.js","names":[],"sources":["../../src/tool/tool.test-spec.ts"],"sourcesContent":["import { defineTestSpec } from '@contractspec/lib.contracts';\n\nexport const toolListTest = defineTestSpec({\n meta: {\n key: 'test.agent.tool.list',\n version: '1.0.0',\n owners: ['@agent-console-team'],\n description: 'Test for listing tools',\n stability: 'stable',\n tags: ['test'],\n },\n target: {\n type: 'operation',\n operation: { key: 'agent.tool.list', version: '1.0.0' },\n },\n scenarios: [\n {\n key: 'success',\n when: { operation: { key: 'agent.tool.list' } },\n then: [{ type: 'expectOutput', match: {} }],\n },\n {\n key: 'error',\n when: { operation: { key: 'agent.tool.list' } },\n then: [{ type: 'expectError' }],\n },\n ],\n});\n\nexport const toolGetTest = defineTestSpec({\n meta: {\n key: 'test.agent.tool.get',\n version: '1.0.0',\n owners: ['@agent-console-team'],\n description: 'Test for getting tool',\n stability: 'stable',\n tags: ['test'],\n },\n target: {\n type: 'operation',\n operation: { key: 'agent.tool.get', version: '1.0.0' },\n },\n scenarios: [\n {\n key: 'success',\n when: { operation: { key: 'agent.tool.get' } },\n then: [{ type: 'expectOutput', match: {} }],\n },\n {\n key: 'error',\n when: { operation: { key: 'agent.tool.get' } },\n then: [{ type: 'expectError' }],\n },\n ],\n});\n"],"mappings":";;;AAEA,MAAa,eAAe,eAAe;CACzC,MAAM;EACJ,KAAK;EACL,SAAS;EACT,QAAQ,CAAC,sBAAsB;EAC/B,aAAa;EACb,WAAW;EACX,MAAM,CAAC,OAAO;EACf;CACD,QAAQ;EACN,MAAM;EACN,WAAW;GAAE,KAAK;GAAmB,SAAS;GAAS;EACxD;CACD,WAAW,CACT;EACE,KAAK;EACL,MAAM,EAAE,WAAW,EAAE,KAAK,mBAAmB,EAAE;EAC/C,MAAM,CAAC;GAAE,MAAM;GAAgB,OAAO,EAAE;GAAE,CAAC;EAC5C,EACD;EACE,KAAK;EACL,MAAM,EAAE,WAAW,EAAE,KAAK,mBAAmB,EAAE;EAC/C,MAAM,CAAC,EAAE,MAAM,eAAe,CAAC;EAChC,CACF;CACF,CAAC;AAEF,MAAa,cAAc,eAAe;CACxC,MAAM;EACJ,KAAK;EACL,SAAS;EACT,QAAQ,CAAC,sBAAsB;EAC/B,aAAa;EACb,WAAW;EACX,MAAM,CAAC,OAAO;EACf;CACD,QAAQ;EACN,MAAM;EACN,WAAW;GAAE,KAAK;GAAkB,SAAS;GAAS;EACvD;CACD,WAAW,CACT;EACE,KAAK;EACL,MAAM,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE;EAC9C,MAAM,CAAC;GAAE,MAAM;GAAgB,OAAO,EAAE;GAAE,CAAC;EAC5C,EACD;EACE,KAAK;EACL,MAAM,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE;EAC9C,MAAM,CAAC,EAAE,MAAM,eAAe,CAAC;EAChC,CACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentDashboard.d.ts","names":[],"sources":["../../src/ui/AgentDashboard.tsx"],"sourcesContent":[],"mappings":";;;iBA8BgB,cAAA,CAAA,GAAc,kBAAA,CAAA,GAAA,CAAA"}
|