@contractspec/example.agent-console 3.2.0 → 3.4.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.log +216 -215
- package/.turbo/turbo-prebuild.log +2 -1
- package/CHANGELOG.md +31 -0
- package/dist/agent.feature.js +9 -1
- package/dist/browser/agent.feature.js +9 -1
- package/dist/browser/handlers/agent.handlers.js +17 -0
- package/dist/browser/handlers/index.js +17 -0
- package/dist/browser/index.js +50 -6
- package/dist/browser/ui/AgentDashboard.js +24 -5
- package/dist/browser/ui/hooks/index.js +24 -5
- package/dist/browser/ui/hooks/useAgentMutations.js +24 -5
- package/dist/browser/ui/index.js +24 -5
- package/dist/handlers/agent.handlers.d.ts +8 -0
- package/dist/handlers/agent.handlers.js +17 -0
- package/dist/handlers/index.js +17 -0
- package/dist/index.js +50 -6
- package/dist/node/agent.feature.js +9 -1
- package/dist/node/handlers/agent.handlers.js +17 -0
- package/dist/node/handlers/index.js +17 -0
- package/dist/node/index.js +50 -6
- package/dist/node/ui/AgentDashboard.js +24 -5
- package/dist/node/ui/hooks/index.js +24 -5
- package/dist/node/ui/hooks/useAgentMutations.js +24 -5
- package/dist/node/ui/index.js +24 -5
- package/dist/ui/AgentDashboard.js +24 -5
- package/dist/ui/hooks/index.js +24 -5
- package/dist/ui/hooks/useAgentMutations.d.ts +4 -3
- package/dist/ui/hooks/useAgentMutations.js +24 -5
- package/dist/ui/index.js +24 -5
- package/package.json +8 -8
- package/src/agent.feature.ts +11 -0
- package/src/handlers/agent.handlers.ts +34 -0
- package/src/ui/hooks/useAgentMutations.ts +34 -10
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,215 +1,216 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
[
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
agent
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
agent
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
agent
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
agent
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
agent
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
agent
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build prebuild[0m
|
|
3
|
+
[0m[2m[35m$[0m [2m[1mbun run prebuild && bun run build:bundle && bun run build:types[0m
|
|
4
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build prebuild[0m
|
|
5
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build transpile[0m
|
|
6
|
+
[contractspec-bun-build] transpile target=bun root=src entries=66
|
|
7
|
+
[32mBundled 66 modules in 42ms[0m
|
|
8
|
+
|
|
9
|
+
[34m./agent.capability.js[0m 442 bytes [2m(entry point)[0m
|
|
10
|
+
[34mtool/tool.test-spec.js[0m 1.38 KB [2m(entry point)[0m
|
|
11
|
+
[34mshared/overlay-types.js[0m 8 bytes [2m(entry point)[0m
|
|
12
|
+
[34mrun/run.test-spec.js[0m 1.37 KB [2m(entry point)[0m
|
|
13
|
+
[34mseeders/index.js[0m 0.64 KB [2m(entry point)[0m
|
|
14
|
+
[34m./index.js[33m 202.80 KB [2m(entry point)[0m
|
|
15
|
+
[34mui/index.js[0m 78.0 KB [2m(entry point)[0m
|
|
16
|
+
[34mui/views/index.js[0m 22.0 KB [2m(entry point)[0m
|
|
17
|
+
[34mui/renderers/index.js[0m 14.75 KB [2m(entry point)[0m
|
|
18
|
+
[34mui/renderers/agent-list.markdown.js[0m 1.49 KB [2m(entry point)[0m
|
|
19
|
+
[34mui/renderers/agent-list.renderer.js[0m 5.91 KB [2m(entry point)[0m
|
|
20
|
+
[34mui/renderers/dashboard.markdown.js[0m 4.30 KB [2m(entry point)[0m
|
|
21
|
+
[34mui/renderers/run-list.markdown.js[0m 1.39 KB [2m(entry point)[0m
|
|
22
|
+
[34mui/renderers/tool-registry.markdown.js[0m 1.64 KB [2m(entry point)[0m
|
|
23
|
+
[34mui/views/AgentListView.js[0m 5.35 KB [2m(entry point)[0m
|
|
24
|
+
[34mui/modals/index.js[0m 22.38 KB [2m(entry point)[0m
|
|
25
|
+
[34mui/overlays/index.js[0m 1.46 KB [2m(entry point)[0m
|
|
26
|
+
[34mui/overlays/demo-overlays.js[0m 1.46 KB [2m(entry point)[0m
|
|
27
|
+
[34mui/AgentDashboard.js[0m 63.0 KB [2m(entry point)[0m
|
|
28
|
+
[34mui/modals/AgentActionsModal.js[0m 12.32 KB [2m(entry point)[0m
|
|
29
|
+
[34mui/modals/CreateAgentModal.js[0m 9.99 KB [2m(entry point)[0m
|
|
30
|
+
[34mui/AgentRunList.js[0m 9.39 KB [2m(entry point)[0m
|
|
31
|
+
[34mui/views/RunListView.js[0m 9.33 KB [2m(entry point)[0m
|
|
32
|
+
[34mui/AgentToolRegistry.js[0m 6.99 KB [2m(entry point)[0m
|
|
33
|
+
[34mui/views/ToolRegistryView.js[0m 6.92 KB [2m(entry point)[0m
|
|
34
|
+
[34mui/hooks/index.js[0m 9.30 KB [2m(entry point)[0m
|
|
35
|
+
[34mui/hooks/useRunList.js[0m 1.69 KB [2m(entry point)[0m
|
|
36
|
+
[34mui/hooks/useToolList.js[0m 2.52 KB [2m(entry point)[0m
|
|
37
|
+
[34mui/hooks/useAgentList.js[0m 1.69 KB [2m(entry point)[0m
|
|
38
|
+
[34mui/hooks/useAgentMutations.js[0m 3.18 KB [2m(entry point)[0m
|
|
39
|
+
[34mtool/index.js[0m 28.61 KB [2m(entry point)[0m
|
|
40
|
+
[34mtool/tool.entity.js[0m 2.65 KB [2m(entry point)[0m
|
|
41
|
+
[34mtool/tool.event.js[0m 3.25 KB [2m(entry point)[0m
|
|
42
|
+
[34mtool/tool.operation.js[0m 14.62 KB [2m(entry point)[0m
|
|
43
|
+
[34mshared/index.js[0m 9.67 KB [2m(entry point)[0m
|
|
44
|
+
[34mpresentations/index.js[0m 25.20 KB [2m(entry point)[0m
|
|
45
|
+
[34mtool/tool.presentation.js[0m 6.41 KB [2m(entry point)[0m
|
|
46
|
+
[34mtool/tool.schema.js[0m 4.94 KB [2m(entry point)[0m
|
|
47
|
+
[34mtool/tool.enum.js[0m 0.52 KB [2m(entry point)[0m
|
|
48
|
+
[34mrun/index.js[0m 43.50 KB [2m(entry point)[0m
|
|
49
|
+
[34mrun/run.presentation.js[0m 8.0 KB [2m(entry point)[0m
|
|
50
|
+
[34mrun/run.entity.js[0m 5.11 KB [2m(entry point)[0m
|
|
51
|
+
[34mrun/run.event.js[0m 8.26 KB [2m(entry point)[0m
|
|
52
|
+
[34mrun/run.operation.js[0m 20.69 KB [2m(entry point)[0m
|
|
53
|
+
[34mrun/run.schema.js[0m 6.62 KB [2m(entry point)[0m
|
|
54
|
+
[34mrun/run.enum.js[0m 0.60 KB [2m(entry point)[0m
|
|
55
|
+
[34magent/agent.test-spec.js[0m 1.46 KB [2m(entry point)[0m
|
|
56
|
+
[34magent/index.js[0m 39.69 KB [2m(entry point)[0m
|
|
57
|
+
[34mdocs/index.js[0m 3.74 KB [2m(entry point)[0m
|
|
58
|
+
[34mdocs/agent-console.docblock.js[0m 3.74 KB [2m(entry point)[0m
|
|
59
|
+
[34m./example.js[0m 1.25 KB [2m(entry point)[0m
|
|
60
|
+
[34mhandlers/index.js[0m 25.34 KB [2m(entry point)[0m
|
|
61
|
+
[34mtool/tool.handler.js[0m 6.38 KB [2m(entry point)[0m
|
|
62
|
+
[34mrun/run.handler.js[0m 7.61 KB [2m(entry point)[0m
|
|
63
|
+
[34mshared/mock-runs.js[0m 3.0 KB [2m(entry point)[0m
|
|
64
|
+
[34mhandlers/agent.handlers.js[0m 9.24 KB [2m(entry point)[0m
|
|
65
|
+
[34m./agent.feature.js[0m 4.70 KB [2m(entry point)[0m
|
|
66
|
+
[34magent/agent.entity.js[0m 3.92 KB [2m(entry point)[0m
|
|
67
|
+
[34magent/agent.handler.js[0m 8.88 KB [2m(entry point)[0m
|
|
68
|
+
[34mshared/mock-tools.js[0m 4.15 KB [2m(entry point)[0m
|
|
69
|
+
[34mshared/mock-agents.js[0m 2.54 KB [2m(entry point)[0m
|
|
70
|
+
[34magent/agent.operation.js[0m 24.28 KB [2m(entry point)[0m
|
|
71
|
+
[34magent/agent.event.js[0m 4.1 KB [2m(entry point)[0m
|
|
72
|
+
[34magent/agent.presentation.js[0m 10.36 KB [2m(entry point)[0m
|
|
73
|
+
[34magent/agent.schema.js[0m 8.13 KB [2m(entry point)[0m
|
|
74
|
+
[34magent/agent.enum.js[0m 467 bytes [2m(entry point)[0m
|
|
75
|
+
|
|
76
|
+
[contractspec-bun-build] transpile target=node root=src entries=66
|
|
77
|
+
[32mBundled 66 modules in 66ms[0m
|
|
78
|
+
|
|
79
|
+
[34m./agent.capability.js[0m 434 bytes [2m(entry point)[0m
|
|
80
|
+
[34mtool/tool.test-spec.js[0m 1.38 KB [2m(entry point)[0m
|
|
81
|
+
[34mshared/overlay-types.js[0m 0 KB [2m(entry point)[0m
|
|
82
|
+
[34mrun/run.test-spec.js[0m 1.36 KB [2m(entry point)[0m
|
|
83
|
+
[34mseeders/index.js[0m 0.63 KB [2m(entry point)[0m
|
|
84
|
+
[34m./index.js[33m 202.74 KB [2m(entry point)[0m
|
|
85
|
+
[34mui/index.js[0m 77.99 KB [2m(entry point)[0m
|
|
86
|
+
[34mui/views/index.js[0m 22.00 KB [2m(entry point)[0m
|
|
87
|
+
[34mui/renderers/index.js[0m 14.73 KB [2m(entry point)[0m
|
|
88
|
+
[34mui/renderers/agent-list.markdown.js[0m 1.48 KB [2m(entry point)[0m
|
|
89
|
+
[34mui/renderers/agent-list.renderer.js[0m 5.91 KB [2m(entry point)[0m
|
|
90
|
+
[34mui/renderers/dashboard.markdown.js[0m 4.29 KB [2m(entry point)[0m
|
|
91
|
+
[34mui/renderers/run-list.markdown.js[0m 1.39 KB [2m(entry point)[0m
|
|
92
|
+
[34mui/renderers/tool-registry.markdown.js[0m 1.62 KB [2m(entry point)[0m
|
|
93
|
+
[34mui/views/AgentListView.js[0m 5.34 KB [2m(entry point)[0m
|
|
94
|
+
[34mui/modals/index.js[0m 22.36 KB [2m(entry point)[0m
|
|
95
|
+
[34mui/overlays/index.js[0m 1.45 KB [2m(entry point)[0m
|
|
96
|
+
[34mui/overlays/demo-overlays.js[0m 1.45 KB [2m(entry point)[0m
|
|
97
|
+
[34mui/AgentDashboard.js[0m 62.97 KB [2m(entry point)[0m
|
|
98
|
+
[34mui/modals/AgentActionsModal.js[0m 12.29 KB [2m(entry point)[0m
|
|
99
|
+
[34mui/modals/CreateAgentModal.js[0m 9.99 KB [2m(entry point)[0m
|
|
100
|
+
[34mui/AgentRunList.js[0m 9.38 KB [2m(entry point)[0m
|
|
101
|
+
[34mui/views/RunListView.js[0m 9.32 KB [2m(entry point)[0m
|
|
102
|
+
[34mui/AgentToolRegistry.js[0m 6.97 KB [2m(entry point)[0m
|
|
103
|
+
[34mui/views/ToolRegistryView.js[0m 6.91 KB [2m(entry point)[0m
|
|
104
|
+
[34mui/hooks/index.js[0m 9.29 KB [2m(entry point)[0m
|
|
105
|
+
[34mui/hooks/useRunList.js[0m 1.69 KB [2m(entry point)[0m
|
|
106
|
+
[34mui/hooks/useToolList.js[0m 2.51 KB [2m(entry point)[0m
|
|
107
|
+
[34mui/hooks/useAgentList.js[0m 1.68 KB [2m(entry point)[0m
|
|
108
|
+
[34mui/hooks/useAgentMutations.js[0m 3.18 KB [2m(entry point)[0m
|
|
109
|
+
[34mtool/index.js[0m 28.60 KB [2m(entry point)[0m
|
|
110
|
+
[34mtool/tool.entity.js[0m 2.64 KB [2m(entry point)[0m
|
|
111
|
+
[34mtool/tool.event.js[0m 3.24 KB [2m(entry point)[0m
|
|
112
|
+
[34mtool/tool.operation.js[0m 14.62 KB [2m(entry point)[0m
|
|
113
|
+
[34mshared/index.js[0m 9.67 KB [2m(entry point)[0m
|
|
114
|
+
[34mpresentations/index.js[0m 25.19 KB [2m(entry point)[0m
|
|
115
|
+
[34mtool/tool.presentation.js[0m 6.40 KB [2m(entry point)[0m
|
|
116
|
+
[34mtool/tool.schema.js[0m 4.93 KB [2m(entry point)[0m
|
|
117
|
+
[34mtool/tool.enum.js[0m 0.51 KB [2m(entry point)[0m
|
|
118
|
+
[34mrun/index.js[0m 43.49 KB [2m(entry point)[0m
|
|
119
|
+
[34mrun/run.presentation.js[0m 8.0 KB [2m(entry point)[0m
|
|
120
|
+
[34mrun/run.entity.js[0m 5.1 KB [2m(entry point)[0m
|
|
121
|
+
[34mrun/run.event.js[0m 8.25 KB [2m(entry point)[0m
|
|
122
|
+
[34mrun/run.operation.js[0m 20.68 KB [2m(entry point)[0m
|
|
123
|
+
[34mrun/run.schema.js[0m 6.61 KB [2m(entry point)[0m
|
|
124
|
+
[34mrun/run.enum.js[0m 0.59 KB [2m(entry point)[0m
|
|
125
|
+
[34magent/agent.test-spec.js[0m 1.46 KB [2m(entry point)[0m
|
|
126
|
+
[34magent/index.js[0m 39.68 KB [2m(entry point)[0m
|
|
127
|
+
[34mdocs/index.js[0m 3.72 KB [2m(entry point)[0m
|
|
128
|
+
[34mdocs/agent-console.docblock.js[0m 3.72 KB [2m(entry point)[0m
|
|
129
|
+
[34m./example.js[0m 1.24 KB [2m(entry point)[0m
|
|
130
|
+
[34mhandlers/index.js[0m 25.33 KB [2m(entry point)[0m
|
|
131
|
+
[34mtool/tool.handler.js[0m 6.37 KB [2m(entry point)[0m
|
|
132
|
+
[34mrun/run.handler.js[0m 7.60 KB [2m(entry point)[0m
|
|
133
|
+
[34mshared/mock-runs.js[0m 3.0 KB [2m(entry point)[0m
|
|
134
|
+
[34mhandlers/agent.handlers.js[0m 9.24 KB [2m(entry point)[0m
|
|
135
|
+
[34m./agent.feature.js[0m 4.69 KB [2m(entry point)[0m
|
|
136
|
+
[34magent/agent.entity.js[0m 3.92 KB [2m(entry point)[0m
|
|
137
|
+
[34magent/agent.handler.js[0m 8.88 KB [2m(entry point)[0m
|
|
138
|
+
[34mshared/mock-tools.js[0m 4.14 KB [2m(entry point)[0m
|
|
139
|
+
[34mshared/mock-agents.js[0m 2.54 KB [2m(entry point)[0m
|
|
140
|
+
[34magent/agent.operation.js[0m 24.28 KB [2m(entry point)[0m
|
|
141
|
+
[34magent/agent.event.js[0m 4.1 KB [2m(entry point)[0m
|
|
142
|
+
[34magent/agent.presentation.js[0m 10.35 KB [2m(entry point)[0m
|
|
143
|
+
[34magent/agent.schema.js[0m 8.13 KB [2m(entry point)[0m
|
|
144
|
+
[34magent/agent.enum.js[0m 459 bytes [2m(entry point)[0m
|
|
145
|
+
|
|
146
|
+
[contractspec-bun-build] transpile target=browser root=src entries=66
|
|
147
|
+
[32mBundled 66 modules in 38ms[0m
|
|
148
|
+
|
|
149
|
+
[34m./agent.capability.js[0m 434 bytes [2m(entry point)[0m
|
|
150
|
+
[34mtool/tool.test-spec.js[0m 1.38 KB [2m(entry point)[0m
|
|
151
|
+
[34mshared/overlay-types.js[0m 0 KB [2m(entry point)[0m
|
|
152
|
+
[34mrun/run.test-spec.js[0m 1.36 KB [2m(entry point)[0m
|
|
153
|
+
[34mseeders/index.js[0m 0.63 KB [2m(entry point)[0m
|
|
154
|
+
[34m./index.js[33m 202.74 KB [2m(entry point)[0m
|
|
155
|
+
[34mui/index.js[0m 77.99 KB [2m(entry point)[0m
|
|
156
|
+
[34mui/views/index.js[0m 22.00 KB [2m(entry point)[0m
|
|
157
|
+
[34mui/renderers/index.js[0m 14.73 KB [2m(entry point)[0m
|
|
158
|
+
[34mui/renderers/agent-list.markdown.js[0m 1.48 KB [2m(entry point)[0m
|
|
159
|
+
[34mui/renderers/agent-list.renderer.js[0m 5.91 KB [2m(entry point)[0m
|
|
160
|
+
[34mui/renderers/dashboard.markdown.js[0m 4.29 KB [2m(entry point)[0m
|
|
161
|
+
[34mui/renderers/run-list.markdown.js[0m 1.39 KB [2m(entry point)[0m
|
|
162
|
+
[34mui/renderers/tool-registry.markdown.js[0m 1.62 KB [2m(entry point)[0m
|
|
163
|
+
[34mui/views/AgentListView.js[0m 5.34 KB [2m(entry point)[0m
|
|
164
|
+
[34mui/modals/index.js[0m 22.36 KB [2m(entry point)[0m
|
|
165
|
+
[34mui/overlays/index.js[0m 1.45 KB [2m(entry point)[0m
|
|
166
|
+
[34mui/overlays/demo-overlays.js[0m 1.45 KB [2m(entry point)[0m
|
|
167
|
+
[34mui/AgentDashboard.js[0m 62.97 KB [2m(entry point)[0m
|
|
168
|
+
[34mui/modals/AgentActionsModal.js[0m 12.29 KB [2m(entry point)[0m
|
|
169
|
+
[34mui/modals/CreateAgentModal.js[0m 9.99 KB [2m(entry point)[0m
|
|
170
|
+
[34mui/AgentRunList.js[0m 9.38 KB [2m(entry point)[0m
|
|
171
|
+
[34mui/views/RunListView.js[0m 9.32 KB [2m(entry point)[0m
|
|
172
|
+
[34mui/AgentToolRegistry.js[0m 6.97 KB [2m(entry point)[0m
|
|
173
|
+
[34mui/views/ToolRegistryView.js[0m 6.91 KB [2m(entry point)[0m
|
|
174
|
+
[34mui/hooks/index.js[0m 9.29 KB [2m(entry point)[0m
|
|
175
|
+
[34mui/hooks/useRunList.js[0m 1.69 KB [2m(entry point)[0m
|
|
176
|
+
[34mui/hooks/useToolList.js[0m 2.51 KB [2m(entry point)[0m
|
|
177
|
+
[34mui/hooks/useAgentList.js[0m 1.68 KB [2m(entry point)[0m
|
|
178
|
+
[34mui/hooks/useAgentMutations.js[0m 3.18 KB [2m(entry point)[0m
|
|
179
|
+
[34mtool/index.js[0m 28.60 KB [2m(entry point)[0m
|
|
180
|
+
[34mtool/tool.entity.js[0m 2.64 KB [2m(entry point)[0m
|
|
181
|
+
[34mtool/tool.event.js[0m 3.24 KB [2m(entry point)[0m
|
|
182
|
+
[34mtool/tool.operation.js[0m 14.62 KB [2m(entry point)[0m
|
|
183
|
+
[34mshared/index.js[0m 9.67 KB [2m(entry point)[0m
|
|
184
|
+
[34mpresentations/index.js[0m 25.19 KB [2m(entry point)[0m
|
|
185
|
+
[34mtool/tool.presentation.js[0m 6.40 KB [2m(entry point)[0m
|
|
186
|
+
[34mtool/tool.schema.js[0m 4.93 KB [2m(entry point)[0m
|
|
187
|
+
[34mtool/tool.enum.js[0m 0.51 KB [2m(entry point)[0m
|
|
188
|
+
[34mrun/index.js[0m 43.49 KB [2m(entry point)[0m
|
|
189
|
+
[34mrun/run.presentation.js[0m 8.0 KB [2m(entry point)[0m
|
|
190
|
+
[34mrun/run.entity.js[0m 5.1 KB [2m(entry point)[0m
|
|
191
|
+
[34mrun/run.event.js[0m 8.25 KB [2m(entry point)[0m
|
|
192
|
+
[34mrun/run.operation.js[0m 20.68 KB [2m(entry point)[0m
|
|
193
|
+
[34mrun/run.schema.js[0m 6.61 KB [2m(entry point)[0m
|
|
194
|
+
[34mrun/run.enum.js[0m 0.59 KB [2m(entry point)[0m
|
|
195
|
+
[34magent/agent.test-spec.js[0m 1.46 KB [2m(entry point)[0m
|
|
196
|
+
[34magent/index.js[0m 39.68 KB [2m(entry point)[0m
|
|
197
|
+
[34mdocs/index.js[0m 3.72 KB [2m(entry point)[0m
|
|
198
|
+
[34mdocs/agent-console.docblock.js[0m 3.72 KB [2m(entry point)[0m
|
|
199
|
+
[34m./example.js[0m 1.24 KB [2m(entry point)[0m
|
|
200
|
+
[34mhandlers/index.js[0m 25.33 KB [2m(entry point)[0m
|
|
201
|
+
[34mtool/tool.handler.js[0m 6.37 KB [2m(entry point)[0m
|
|
202
|
+
[34mrun/run.handler.js[0m 7.60 KB [2m(entry point)[0m
|
|
203
|
+
[34mshared/mock-runs.js[0m 3.0 KB [2m(entry point)[0m
|
|
204
|
+
[34mhandlers/agent.handlers.js[0m 9.24 KB [2m(entry point)[0m
|
|
205
|
+
[34m./agent.feature.js[0m 4.69 KB [2m(entry point)[0m
|
|
206
|
+
[34magent/agent.entity.js[0m 3.92 KB [2m(entry point)[0m
|
|
207
|
+
[34magent/agent.handler.js[0m 8.88 KB [2m(entry point)[0m
|
|
208
|
+
[34mshared/mock-tools.js[0m 4.14 KB [2m(entry point)[0m
|
|
209
|
+
[34mshared/mock-agents.js[0m 2.54 KB [2m(entry point)[0m
|
|
210
|
+
[34magent/agent.operation.js[0m 24.28 KB [2m(entry point)[0m
|
|
211
|
+
[34magent/agent.event.js[0m 4.1 KB [2m(entry point)[0m
|
|
212
|
+
[34magent/agent.presentation.js[0m 10.35 KB [2m(entry point)[0m
|
|
213
|
+
[34magent/agent.schema.js[0m 8.13 KB [2m(entry point)[0m
|
|
214
|
+
[34magent/agent.enum.js[0m 459 bytes [2m(entry point)[0m
|
|
215
|
+
|
|
216
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build types[0m
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mcontractspec-bun-build prebuild[0m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @contractspec/example.agent-console
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0ee467a: feat: improve ai and customization
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [0ee467a]
|
|
12
|
+
- Updated dependencies [56ee8e6]
|
|
13
|
+
- @contractspec/lib.example-shared-ui@3.4.0
|
|
14
|
+
- @contractspec/lib.runtime-sandbox@2.4.0
|
|
15
|
+
- @contractspec/lib.contracts-spec@3.4.0
|
|
16
|
+
- @contractspec/lib.design-system@3.4.0
|
|
17
|
+
- @contractspec/lib.schema@3.4.0
|
|
18
|
+
|
|
19
|
+
## 3.3.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 890a0da: fix: stability improvements
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [890a0da]
|
|
28
|
+
- @contractspec/lib.example-shared-ui@3.3.0
|
|
29
|
+
- @contractspec/lib.runtime-sandbox@2.3.0
|
|
30
|
+
- @contractspec/lib.contracts-spec@3.3.0
|
|
31
|
+
- @contractspec/lib.design-system@3.3.0
|
|
32
|
+
- @contractspec/lib.schema@3.3.0
|
|
33
|
+
|
|
3
34
|
## 3.2.0
|
|
4
35
|
|
|
5
36
|
### Minor Changes
|
package/dist/agent.feature.js
CHANGED
|
@@ -112,7 +112,15 @@ var AgentConsoleFeature = defineFeature({
|
|
|
112
112
|
{ key: "jobs", version: "1.0.0" }
|
|
113
113
|
],
|
|
114
114
|
provides: [{ key: "agent", version: "1.0.0" }]
|
|
115
|
-
}
|
|
115
|
+
},
|
|
116
|
+
telemetry: [{ key: "agent-console.telemetry", version: "1.0.0" }],
|
|
117
|
+
jobs: [{ key: "agent-console.job.run-execution", version: "1.0.0" }],
|
|
118
|
+
docs: [
|
|
119
|
+
"docs.examples.agent-console.goal",
|
|
120
|
+
"docs.examples.agent-console.usage",
|
|
121
|
+
"docs.examples.agent-console.reference",
|
|
122
|
+
"docs.examples.agent-console.constraints"
|
|
123
|
+
]
|
|
116
124
|
});
|
|
117
125
|
export {
|
|
118
126
|
AgentConsoleFeature
|
|
@@ -111,7 +111,15 @@ var AgentConsoleFeature = defineFeature({
|
|
|
111
111
|
{ key: "jobs", version: "1.0.0" }
|
|
112
112
|
],
|
|
113
113
|
provides: [{ key: "agent", version: "1.0.0" }]
|
|
114
|
-
}
|
|
114
|
+
},
|
|
115
|
+
telemetry: [{ key: "agent-console.telemetry", version: "1.0.0" }],
|
|
116
|
+
jobs: [{ key: "agent-console.job.run-execution", version: "1.0.0" }],
|
|
117
|
+
docs: [
|
|
118
|
+
"docs.examples.agent-console.goal",
|
|
119
|
+
"docs.examples.agent-console.usage",
|
|
120
|
+
"docs.examples.agent-console.reference",
|
|
121
|
+
"docs.examples.agent-console.constraints"
|
|
122
|
+
]
|
|
115
123
|
});
|
|
116
124
|
export {
|
|
117
125
|
AgentConsoleFeature
|
|
@@ -237,11 +237,28 @@ function createAgentHandlers(db) {
|
|
|
237
237
|
totalCostUsd: data?.totalCost ?? 0
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
|
+
async function executeAgent(input) {
|
|
241
|
+
const agent = await getAgent(input.agentId);
|
|
242
|
+
if (!agent)
|
|
243
|
+
throw new Error("AGENT_NOT_FOUND");
|
|
244
|
+
if (agent.status !== "ACTIVE")
|
|
245
|
+
throw new Error("AGENT_NOT_ACTIVE");
|
|
246
|
+
const id = generateId("run");
|
|
247
|
+
const now = new Date().toISOString();
|
|
248
|
+
const pid = input.context?.projectId ?? agent.projectId;
|
|
249
|
+
await db.execute(`INSERT INTO agent_run (id, projectId, agentId, status, input, totalTokens, promptTokens, completionTokens, estimatedCostUsd, queuedAt)
|
|
250
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`, [id, pid, input.agentId, "QUEUED", input.message, 0, 0, 0, 0, now]);
|
|
251
|
+
const rows = (await db.query(`SELECT r.*, a.name as agentName FROM agent_run r LEFT JOIN agent_definition a ON r.agentId = a.id WHERE r.id = ?`, [id])).rows;
|
|
252
|
+
if (!rows[0])
|
|
253
|
+
throw new Error("Failed to retrieve created run");
|
|
254
|
+
return rowToRun(rows[0], rows[0].agentName);
|
|
255
|
+
}
|
|
240
256
|
return {
|
|
241
257
|
listAgents,
|
|
242
258
|
getAgent,
|
|
243
259
|
createAgent,
|
|
244
260
|
updateAgent,
|
|
261
|
+
executeAgent,
|
|
245
262
|
listTools,
|
|
246
263
|
listRuns,
|
|
247
264
|
getRunMetrics
|