@contractspec/example.agent-console 3.7.5 → 3.7.7

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.
Files changed (176) hide show
  1. package/.turbo/turbo-build.log +18 -18
  2. package/AGENTS.md +50 -31
  3. package/CHANGELOG.md +12 -0
  4. package/README.md +69 -77
  5. package/dist/agent/agent.event.js +1 -1
  6. package/dist/agent/agent.operation.js +1 -1
  7. package/dist/agent/index.d.ts +5 -5
  8. package/dist/agent/index.js +1 -1
  9. package/dist/browser/agent/agent.event.js +1 -1
  10. package/dist/browser/agent/agent.operation.js +1 -1
  11. package/dist/browser/agent/index.js +1 -1
  12. package/dist/browser/index.js +2145 -2145
  13. package/dist/browser/presentations/index.js +4 -4
  14. package/dist/browser/run/index.js +536 -536
  15. package/dist/browser/run/run.event.js +2 -2
  16. package/dist/browser/run/run.presentation.js +2 -2
  17. package/dist/browser/tool/index.js +260 -260
  18. package/dist/browser/tool/tool.event.js +1 -1
  19. package/dist/browser/tool/tool.presentation.js +2 -2
  20. package/dist/browser/ui/AgentDashboard.js +956 -956
  21. package/dist/browser/ui/AgentRunList.js +16 -16
  22. package/dist/browser/ui/AgentToolRegistry.js +9 -9
  23. package/dist/browser/ui/hooks/index.js +153 -153
  24. package/dist/browser/ui/hooks/useAgentList.js +1 -1
  25. package/dist/browser/ui/hooks/useAgentMutations.js +1 -1
  26. package/dist/browser/ui/hooks/useRunList.js +1 -1
  27. package/dist/browser/ui/hooks/useToolList.js +1 -1
  28. package/dist/browser/ui/index.js +1222 -1222
  29. package/dist/browser/ui/modals/AgentActionsModal.js +13 -13
  30. package/dist/browser/ui/modals/CreateAgentModal.js +15 -15
  31. package/dist/browser/ui/modals/index.js +297 -297
  32. package/dist/browser/ui/renderers/agent-list.renderer.js +7 -7
  33. package/dist/browser/ui/renderers/index.js +157 -157
  34. package/dist/browser/ui/views/AgentListView.js +7 -7
  35. package/dist/browser/ui/views/RunListView.js +16 -16
  36. package/dist/browser/ui/views/ToolRegistryView.js +9 -9
  37. package/dist/browser/ui/views/index.js +97 -97
  38. package/dist/handlers/index.d.ts +1 -1
  39. package/dist/index.d.ts +4 -4
  40. package/dist/index.js +2145 -2145
  41. package/dist/node/agent/agent.event.js +1 -1
  42. package/dist/node/agent/agent.operation.js +1 -1
  43. package/dist/node/agent/index.js +1 -1
  44. package/dist/node/index.js +2145 -2145
  45. package/dist/node/presentations/index.js +4 -4
  46. package/dist/node/run/index.js +536 -536
  47. package/dist/node/run/run.event.js +2 -2
  48. package/dist/node/run/run.presentation.js +2 -2
  49. package/dist/node/tool/index.js +260 -260
  50. package/dist/node/tool/tool.event.js +1 -1
  51. package/dist/node/tool/tool.presentation.js +2 -2
  52. package/dist/node/ui/AgentDashboard.js +956 -956
  53. package/dist/node/ui/AgentRunList.js +16 -16
  54. package/dist/node/ui/AgentToolRegistry.js +9 -9
  55. package/dist/node/ui/hooks/index.js +153 -153
  56. package/dist/node/ui/hooks/useAgentList.js +1 -1
  57. package/dist/node/ui/hooks/useAgentMutations.js +1 -1
  58. package/dist/node/ui/hooks/useRunList.js +1 -1
  59. package/dist/node/ui/hooks/useToolList.js +1 -1
  60. package/dist/node/ui/index.js +1222 -1222
  61. package/dist/node/ui/modals/AgentActionsModal.js +13 -13
  62. package/dist/node/ui/modals/CreateAgentModal.js +15 -15
  63. package/dist/node/ui/modals/index.js +297 -297
  64. package/dist/node/ui/renderers/agent-list.renderer.js +7 -7
  65. package/dist/node/ui/renderers/index.js +157 -157
  66. package/dist/node/ui/views/AgentListView.js +7 -7
  67. package/dist/node/ui/views/RunListView.js +16 -16
  68. package/dist/node/ui/views/ToolRegistryView.js +9 -9
  69. package/dist/node/ui/views/index.js +97 -97
  70. package/dist/presentations/index.d.ts +3 -5
  71. package/dist/presentations/index.js +4 -4
  72. package/dist/run/index.d.ts +7 -7
  73. package/dist/run/index.js +536 -536
  74. package/dist/run/run.event.js +2 -2
  75. package/dist/run/run.handler.d.ts +3 -0
  76. package/dist/run/run.presentation.js +2 -2
  77. package/dist/shared/index.d.ts +1 -1
  78. package/dist/tool/index.d.ts +7 -7
  79. package/dist/tool/index.js +260 -260
  80. package/dist/tool/tool.event.js +1 -1
  81. package/dist/tool/tool.handler.d.ts +1 -1
  82. package/dist/tool/tool.presentation.js +2 -2
  83. package/dist/ui/AgentDashboard.js +956 -956
  84. package/dist/ui/AgentRunList.js +16 -16
  85. package/dist/ui/AgentToolRegistry.js +9 -9
  86. package/dist/ui/hooks/index.d.ts +4 -4
  87. package/dist/ui/hooks/index.js +153 -153
  88. package/dist/ui/hooks/useAgentList.d.ts +5 -0
  89. package/dist/ui/hooks/useAgentList.js +1 -1
  90. package/dist/ui/hooks/useAgentMutations.d.ts +9 -2
  91. package/dist/ui/hooks/useAgentMutations.js +1 -1
  92. package/dist/ui/hooks/useRunList.d.ts +5 -0
  93. package/dist/ui/hooks/useRunList.js +1 -1
  94. package/dist/ui/hooks/useToolList.d.ts +5 -0
  95. package/dist/ui/hooks/useToolList.js +1 -1
  96. package/dist/ui/index.d.ts +3 -3
  97. package/dist/ui/index.js +1222 -1222
  98. package/dist/ui/modals/AgentActionsModal.js +13 -13
  99. package/dist/ui/modals/CreateAgentModal.js +15 -15
  100. package/dist/ui/modals/index.d.ts +1 -1
  101. package/dist/ui/modals/index.js +297 -297
  102. package/dist/ui/renderers/agent-list.markdown.d.ts +5 -0
  103. package/dist/ui/renderers/agent-list.renderer.js +7 -7
  104. package/dist/ui/renderers/dashboard.markdown.d.ts +5 -0
  105. package/dist/ui/renderers/index.d.ts +2 -2
  106. package/dist/ui/renderers/index.js +157 -157
  107. package/dist/ui/renderers/run-list.markdown.d.ts +5 -0
  108. package/dist/ui/renderers/tool-registry.markdown.d.ts +5 -0
  109. package/dist/ui/views/AgentListView.js +7 -7
  110. package/dist/ui/views/RunListView.js +16 -16
  111. package/dist/ui/views/ToolRegistryView.js +9 -9
  112. package/dist/ui/views/index.js +97 -97
  113. package/package.json +10 -10
  114. package/src/agent/agent.entity.ts +111 -111
  115. package/src/agent/agent.enum.ts +12 -12
  116. package/src/agent/agent.event.ts +91 -91
  117. package/src/agent/agent.handler.ts +123 -123
  118. package/src/agent/agent.operation.ts +400 -400
  119. package/src/agent/agent.presentation.ts +62 -62
  120. package/src/agent/agent.schema.ts +175 -175
  121. package/src/agent/agent.test-spec.ts +48 -48
  122. package/src/agent/index.ts +46 -51
  123. package/src/agent.capability.ts +11 -11
  124. package/src/agent.feature.ts +131 -131
  125. package/src/docs/agent-console.docblock.ts +42 -42
  126. package/src/example.ts +35 -35
  127. package/src/handlers/agent.handlers.ts +522 -521
  128. package/src/handlers/index.ts +12 -12
  129. package/src/index.ts +8 -9
  130. package/src/presentations/index.ts +11 -13
  131. package/src/run/index.ts +49 -54
  132. package/src/run/run.entity.ts +137 -137
  133. package/src/run/run.enum.ts +18 -18
  134. package/src/run/run.event.ts +174 -174
  135. package/src/run/run.handler.ts +92 -91
  136. package/src/run/run.operation.ts +474 -474
  137. package/src/run/run.presentation.ts +42 -42
  138. package/src/run/run.schema.ts +126 -126
  139. package/src/run/run.test-spec.ts +48 -48
  140. package/src/seeders/index.ts +21 -21
  141. package/src/shared/index.ts +1 -1
  142. package/src/shared/mock-agents.ts +76 -76
  143. package/src/shared/mock-runs.ts +102 -102
  144. package/src/shared/mock-tools.ts +140 -140
  145. package/src/shared/overlay-types.ts +23 -23
  146. package/src/tool/index.ts +39 -44
  147. package/src/tool/tool.entity.ts +73 -73
  148. package/src/tool/tool.enum.ts +13 -13
  149. package/src/tool/tool.event.ts +80 -80
  150. package/src/tool/tool.handler.ts +102 -102
  151. package/src/tool/tool.operation.ts +328 -328
  152. package/src/tool/tool.presentation.ts +43 -43
  153. package/src/tool/tool.schema.ts +106 -106
  154. package/src/tool/tool.test-spec.ts +48 -48
  155. package/src/ui/AgentDashboard.tsx +348 -348
  156. package/src/ui/hooks/index.ts +7 -7
  157. package/src/ui/hooks/useAgentList.ts +57 -56
  158. package/src/ui/hooks/useAgentMutations.ts +160 -159
  159. package/src/ui/hooks/useRunList.ts +58 -57
  160. package/src/ui/hooks/useToolList.ts +102 -101
  161. package/src/ui/index.ts +6 -9
  162. package/src/ui/modals/AgentActionsModal.tsx +262 -262
  163. package/src/ui/modals/CreateAgentModal.tsx +232 -232
  164. package/src/ui/modals/index.ts +1 -1
  165. package/src/ui/overlays/demo-overlays.ts +52 -52
  166. package/src/ui/renderers/agent-list.markdown.ts +61 -60
  167. package/src/ui/renderers/agent-list.renderer.tsx +14 -14
  168. package/src/ui/renderers/dashboard.markdown.ts +140 -139
  169. package/src/ui/renderers/index.ts +3 -4
  170. package/src/ui/renderers/run-list.markdown.ts +48 -47
  171. package/src/ui/renderers/tool-registry.markdown.ts +66 -65
  172. package/src/ui/views/AgentListView.tsx +90 -90
  173. package/src/ui/views/RunListView.tsx +141 -141
  174. package/src/ui/views/ToolRegistryView.tsx +113 -113
  175. package/tsconfig.json +7 -8
  176. package/tsdown.config.js +7 -3
@@ -1,15 +1,68 @@
1
- // src/ui/hooks/useRunList.ts
2
- import { useCallback, useEffect, useState } from "react";
1
+ // src/ui/hooks/useAgentList.ts
3
2
  import { useTemplateRuntime } from "@contractspec/lib.example-shared-ui";
4
- function useRunList(options = {}) {
3
+ import { useCallback, useEffect, useMemo, useState } from "react";
4
+ function useAgentList(options = {}) {
5
5
  const { handlers, projectId } = useTemplateRuntime();
6
6
  const { agent } = handlers;
7
7
  const [data, setData] = useState(null);
8
- const [metrics, setMetrics] = useState(null);
9
8
  const [loading, setLoading] = useState(true);
10
9
  const [error, setError] = useState(null);
11
10
  const [page, setPage] = useState(1);
12
11
  const fetchData = useCallback(async () => {
12
+ setLoading(true);
13
+ setError(null);
14
+ try {
15
+ const result = await agent.listAgents({
16
+ projectId,
17
+ search: options.search,
18
+ status: options.status === "all" ? undefined : options.status,
19
+ limit: options.limit ?? 20,
20
+ offset: (page - 1) * (options.limit ?? 20)
21
+ });
22
+ setData(result);
23
+ } catch (err) {
24
+ setError(err instanceof Error ? err : new Error("Unknown error"));
25
+ } finally {
26
+ setLoading(false);
27
+ }
28
+ }, [agent, projectId, options.search, options.status, options.limit, page]);
29
+ useEffect(() => {
30
+ fetchData();
31
+ }, [fetchData]);
32
+ const stats = useMemo(() => {
33
+ if (!data)
34
+ return null;
35
+ return {
36
+ total: data.total,
37
+ active: data.items.filter((a) => a.status === "ACTIVE").length,
38
+ paused: data.items.filter((a) => a.status === "PAUSED").length,
39
+ draft: data.items.filter((a) => a.status === "DRAFT").length
40
+ };
41
+ }, [data]);
42
+ return {
43
+ data,
44
+ loading,
45
+ error,
46
+ stats,
47
+ page,
48
+ refetch: fetchData,
49
+ nextPage: () => setPage((p) => p + 1),
50
+ prevPage: () => page > 1 && setPage((p) => p - 1)
51
+ };
52
+ }
53
+
54
+ // src/ui/hooks/useRunList.ts
55
+ import { useTemplateRuntime as useTemplateRuntime2 } from "@contractspec/lib.example-shared-ui";
56
+ import { useCallback as useCallback2, useEffect as useEffect2, useState as useState2 } from "react";
57
+ function useRunList(options = {}) {
58
+ const { handlers, projectId } = useTemplateRuntime2();
59
+ const { agent } = handlers;
60
+ const [data, setData] = useState2(null);
61
+ const [metrics, setMetrics] = useState2(null);
62
+ const [loading, setLoading] = useState2(true);
63
+ const [error, setError] = useState2(null);
64
+ const [page, setPage] = useState2(1);
65
+ const fetchData = useCallback2(async () => {
13
66
  setLoading(true);
14
67
  setError(null);
15
68
  try {
@@ -36,7 +89,7 @@ function useRunList(options = {}) {
36
89
  setLoading(false);
37
90
  }
38
91
  }, [agent, projectId, options.agentId, options.status, options.limit, page]);
39
- useEffect(() => {
92
+ useEffect2(() => {
40
93
  fetchData();
41
94
  }, [fetchData]);
42
95
  return {
@@ -53,12 +106,12 @@ function useRunList(options = {}) {
53
106
 
54
107
  // src/ui/views/RunListView.tsx
55
108
  import {
56
- StatCard,
57
- StatCardGroup,
58
- StatusChip,
59
109
  EmptyState,
110
+ ErrorState,
60
111
  LoaderBlock,
61
- ErrorState
112
+ StatCard,
113
+ StatCardGroup,
114
+ StatusChip
62
115
  } from "@contractspec/lib.design-system";
63
116
  import { jsxDEV } from "react/jsx-dev-runtime";
64
117
  "use client";
@@ -143,45 +196,45 @@ function RunListView({ agentId, onRunClick }) {
143
196
  ]
144
197
  }, undefined, true, undefined, this),
145
198
  /* @__PURE__ */ jsxDEV("div", {
146
- className: "border-border rounded-lg border",
199
+ className: "rounded-lg border border-border",
147
200
  children: /* @__PURE__ */ jsxDEV("table", {
148
201
  className: "w-full",
149
202
  children: [
150
203
  /* @__PURE__ */ jsxDEV("thead", {
151
- className: "border-border bg-muted/30 border-b",
204
+ className: "border-border border-b bg-muted/30",
152
205
  children: /* @__PURE__ */ jsxDEV("tr", {
153
206
  children: [
154
207
  /* @__PURE__ */ jsxDEV("th", {
155
- className: "text-muted-foreground px-4 py-3 text-left text-sm font-medium",
208
+ className: "px-4 py-3 text-left font-medium text-muted-foreground text-sm",
156
209
  children: "Run"
157
210
  }, undefined, false, undefined, this),
158
211
  /* @__PURE__ */ jsxDEV("th", {
159
- className: "text-muted-foreground px-4 py-3 text-left text-sm font-medium",
212
+ className: "px-4 py-3 text-left font-medium text-muted-foreground text-sm",
160
213
  children: "Agent"
161
214
  }, undefined, false, undefined, this),
162
215
  /* @__PURE__ */ jsxDEV("th", {
163
- className: "text-muted-foreground px-4 py-3 text-left text-sm font-medium",
216
+ className: "px-4 py-3 text-left font-medium text-muted-foreground text-sm",
164
217
  children: "Status"
165
218
  }, undefined, false, undefined, this),
166
219
  /* @__PURE__ */ jsxDEV("th", {
167
- className: "text-muted-foreground px-4 py-3 text-right text-sm font-medium",
220
+ className: "px-4 py-3 text-right font-medium text-muted-foreground text-sm",
168
221
  children: "Tokens"
169
222
  }, undefined, false, undefined, this),
170
223
  /* @__PURE__ */ jsxDEV("th", {
171
- className: "text-muted-foreground px-4 py-3 text-right text-sm font-medium",
224
+ className: "px-4 py-3 text-right font-medium text-muted-foreground text-sm",
172
225
  children: "Duration"
173
226
  }, undefined, false, undefined, this),
174
227
  /* @__PURE__ */ jsxDEV("th", {
175
- className: "text-muted-foreground px-4 py-3 text-right text-sm font-medium",
228
+ className: "px-4 py-3 text-right font-medium text-muted-foreground text-sm",
176
229
  children: "Cost"
177
230
  }, undefined, false, undefined, this)
178
231
  ]
179
232
  }, undefined, true, undefined, this)
180
233
  }, undefined, false, undefined, this),
181
234
  /* @__PURE__ */ jsxDEV("tbody", {
182
- className: "divide-border divide-y",
235
+ className: "divide-y divide-border",
183
236
  children: data.items.map((run) => /* @__PURE__ */ jsxDEV("tr", {
184
- className: "hover:bg-muted/50 cursor-pointer transition-colors",
237
+ className: "cursor-pointer transition-colors hover:bg-muted/50",
185
238
  onClick: () => onRunClick?.(run.id),
186
239
  children: [
187
240
  /* @__PURE__ */ jsxDEV("td", {
@@ -230,7 +283,7 @@ function RunListView({ agentId, onRunClick }) {
230
283
  }, undefined, true, undefined, this)
231
284
  }, undefined, false, undefined, this),
232
285
  /* @__PURE__ */ jsxDEV("div", {
233
- className: "text-muted-foreground text-center text-sm",
286
+ className: "text-center text-muted-foreground text-sm",
234
287
  children: [
235
288
  "Showing ",
236
289
  data.items.length,
@@ -244,16 +297,16 @@ function RunListView({ agentId, onRunClick }) {
244
297
  }
245
298
 
246
299
  // src/ui/hooks/useToolList.ts
247
- import { useCallback as useCallback2, useEffect as useEffect2, useMemo, useState as useState2 } from "react";
248
- import { useTemplateRuntime as useTemplateRuntime2 } from "@contractspec/lib.example-shared-ui";
300
+ import { useTemplateRuntime as useTemplateRuntime3 } from "@contractspec/lib.example-shared-ui";
301
+ import { useCallback as useCallback3, useEffect as useEffect3, useMemo as useMemo2, useState as useState3 } from "react";
249
302
  function useToolList(options = {}) {
250
- const { handlers, projectId } = useTemplateRuntime2();
303
+ const { handlers, projectId } = useTemplateRuntime3();
251
304
  const { agent } = handlers;
252
- const [data, setData] = useState2(null);
253
- const [loading, setLoading] = useState2(true);
254
- const [error, setError] = useState2(null);
255
- const [page, setPage] = useState2(1);
256
- const fetchData = useCallback2(async () => {
305
+ const [data, setData] = useState3(null);
306
+ const [loading, setLoading] = useState3(true);
307
+ const [error, setError] = useState3(null);
308
+ const [page, setPage] = useState3(1);
309
+ const fetchData = useCallback3(async () => {
257
310
  setLoading(true);
258
311
  setError(null);
259
312
  try {
@@ -280,10 +333,10 @@ function useToolList(options = {}) {
280
333
  options.limit,
281
334
  page
282
335
  ]);
283
- useEffect2(() => {
336
+ useEffect3(() => {
284
337
  fetchData();
285
338
  }, [fetchData]);
286
- const { stats, groupedByCategory, categoryStats } = useMemo(() => {
339
+ const { stats, groupedByCategory, categoryStats } = useMemo2(() => {
287
340
  if (!data)
288
341
  return { stats: null, groupedByCategory: {}, categoryStats: [] };
289
342
  const items = data.items;
@@ -328,14 +381,14 @@ function useToolList(options = {}) {
328
381
 
329
382
  // src/ui/views/ToolRegistryView.tsx
330
383
  import {
331
- StatCard as StatCard2,
332
- StatCardGroup as StatCardGroup2,
333
- StatusChip as StatusChip2,
334
- EntityCard,
384
+ Button,
335
385
  EmptyState as EmptyState2,
336
- LoaderBlock as LoaderBlock2,
386
+ EntityCard,
337
387
  ErrorState as ErrorState2,
338
- Button
388
+ LoaderBlock as LoaderBlock2,
389
+ StatCard as StatCard2,
390
+ StatCardGroup as StatCardGroup2,
391
+ StatusChip as StatusChip2
339
392
  } from "@contractspec/lib.design-system";
340
393
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
341
394
  "use client";
@@ -415,11 +468,11 @@ function ToolRegistryView({
415
468
  children: categoryIcons[category]
416
469
  }, undefined, false, undefined, this),
417
470
  /* @__PURE__ */ jsxDEV2("h3", {
418
- className: "text-lg font-semibold",
471
+ className: "font-semibold text-lg",
419
472
  children: category
420
473
  }, undefined, false, undefined, this),
421
474
  /* @__PURE__ */ jsxDEV2("span", {
422
- className: "bg-muted text-muted-foreground rounded-full px-2 py-0.5 text-xs",
475
+ className: "rounded-full bg-muted px-2 py-0.5 text-muted-foreground text-xs",
423
476
  children: tools.length
424
477
  }, undefined, false, undefined, this)
425
478
  ]
@@ -450,69 +503,16 @@ function ToolRegistryView({
450
503
  }, undefined, true, undefined, this);
451
504
  }
452
505
 
453
- // src/ui/hooks/useAgentList.ts
454
- import { useCallback as useCallback3, useEffect as useEffect3, useMemo as useMemo2, useState as useState3 } from "react";
455
- import { useTemplateRuntime as useTemplateRuntime3 } from "@contractspec/lib.example-shared-ui";
456
- function useAgentList(options = {}) {
457
- const { handlers, projectId } = useTemplateRuntime3();
458
- const { agent } = handlers;
459
- const [data, setData] = useState3(null);
460
- const [loading, setLoading] = useState3(true);
461
- const [error, setError] = useState3(null);
462
- const [page, setPage] = useState3(1);
463
- const fetchData = useCallback3(async () => {
464
- setLoading(true);
465
- setError(null);
466
- try {
467
- const result = await agent.listAgents({
468
- projectId,
469
- search: options.search,
470
- status: options.status === "all" ? undefined : options.status,
471
- limit: options.limit ?? 20,
472
- offset: (page - 1) * (options.limit ?? 20)
473
- });
474
- setData(result);
475
- } catch (err) {
476
- setError(err instanceof Error ? err : new Error("Unknown error"));
477
- } finally {
478
- setLoading(false);
479
- }
480
- }, [agent, projectId, options.search, options.status, options.limit, page]);
481
- useEffect3(() => {
482
- fetchData();
483
- }, [fetchData]);
484
- const stats = useMemo2(() => {
485
- if (!data)
486
- return null;
487
- return {
488
- total: data.total,
489
- active: data.items.filter((a) => a.status === "ACTIVE").length,
490
- paused: data.items.filter((a) => a.status === "PAUSED").length,
491
- draft: data.items.filter((a) => a.status === "DRAFT").length
492
- };
493
- }, [data]);
494
- return {
495
- data,
496
- loading,
497
- error,
498
- stats,
499
- page,
500
- refetch: fetchData,
501
- nextPage: () => setPage((p) => p + 1),
502
- prevPage: () => page > 1 && setPage((p) => p - 1)
503
- };
504
- }
505
-
506
506
  // src/ui/views/AgentListView.tsx
507
507
  import {
508
508
  Button as Button2,
509
- StatCard as StatCard3,
510
- StatCardGroup as StatCardGroup3,
509
+ EmptyState as EmptyState3,
511
510
  EntityCard as EntityCard2,
512
- StatusChip as StatusChip3,
513
- LoaderBlock as LoaderBlock3,
514
511
  ErrorState as ErrorState3,
515
- EmptyState as EmptyState3
512
+ LoaderBlock as LoaderBlock3,
513
+ StatCard as StatCard3,
514
+ StatCardGroup as StatCardGroup3,
515
+ StatusChip as StatusChip3
516
516
  } from "@contractspec/lib.design-system";
517
517
  import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
518
518
  "use client";
@@ -577,7 +577,7 @@ function AgentListView() {
577
577
  className: "flex items-center justify-between",
578
578
  children: [
579
579
  /* @__PURE__ */ jsxDEV3("h3", {
580
- className: "text-lg font-semibold",
580
+ className: "font-semibold text-lg",
581
581
  children: "Agents"
582
582
  }, undefined, false, undefined, this),
583
583
  /* @__PURE__ */ jsxDEV3(Button2, {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Agent Console Handlers - re-exports from domain modules for backward compatibility.
3
3
  */
4
- export { mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, type AgentSummary, } from '../agent/agent.handler';
4
+ export { type AgentSummary, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, } from '../agent/agent.handler';
5
5
  export { mockExecuteAgentHandler, mockGetRunHandler, mockListRunsHandler, type RunSummary, } from '../run/run.handler';
6
6
  export { mockCreateToolHandler, mockGetToolHandler, mockListToolsHandler, type ToolSummary, } from '../tool/tool.handler';
7
7
  export * from './agent.handlers';
package/dist/index.d.ts CHANGED
@@ -15,11 +15,11 @@
15
15
  * ```
16
16
  */
17
17
  export * from './agent';
18
+ export * from './agent.feature';
19
+ export { default as example } from './example';
20
+ export { type AgentHandlers, createAgentHandlers, } from './handlers/agent.handlers';
18
21
  export * from './run';
19
- export * from './tool';
20
22
  export * from './shared';
23
+ export * from './tool';
21
24
  export * from './ui';
22
- export { createAgentHandlers, type AgentHandlers, } from './handlers/agent.handlers';
23
- export * from './agent.feature';
24
- export { default as example } from './example';
25
25
  import './docs';