@contractspec/example.agent-console 0.0.0-canary-20260113170453

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 (306) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +280 -0
  2. package/.turbo/turbo-build.log +281 -0
  3. package/CHANGELOG.md +368 -0
  4. package/LICENSE +21 -0
  5. package/README.md +86 -0
  6. package/dist/agent/agent.entity.d.ts +55 -0
  7. package/dist/agent/agent.entity.d.ts.map +1 -0
  8. package/dist/agent/agent.entity.js +136 -0
  9. package/dist/agent/agent.entity.js.map +1 -0
  10. package/dist/agent/agent.enum.d.ts +18 -0
  11. package/dist/agent/agent.enum.d.ts.map +1 -0
  12. package/dist/agent/agent.enum.js +34 -0
  13. package/dist/agent/agent.enum.js.map +1 -0
  14. package/dist/agent/agent.event.d.ts +128 -0
  15. package/dist/agent/agent.event.d.ts.map +1 -0
  16. package/dist/agent/agent.event.js +210 -0
  17. package/dist/agent/agent.event.js.map +1 -0
  18. package/dist/agent/agent.handler.d.ts +100 -0
  19. package/dist/agent/agent.handler.d.ts.map +1 -0
  20. package/dist/agent/agent.handler.js +84 -0
  21. package/dist/agent/agent.handler.js.map +1 -0
  22. package/dist/agent/agent.operation.d.ts +471 -0
  23. package/dist/agent/agent.operation.d.ts.map +1 -0
  24. package/dist/agent/agent.operation.js +486 -0
  25. package/dist/agent/agent.operation.js.map +1 -0
  26. package/dist/agent/agent.presentation.d.ts +18 -0
  27. package/dist/agent/agent.presentation.d.ts.map +1 -0
  28. package/dist/agent/agent.presentation.js +89 -0
  29. package/dist/agent/agent.presentation.js.map +1 -0
  30. package/dist/agent/agent.schema.d.ts +401 -0
  31. package/dist/agent/agent.schema.d.ts.map +1 -0
  32. package/dist/agent/agent.schema.js +406 -0
  33. package/dist/agent/agent.schema.js.map +1 -0
  34. package/dist/agent/agent.test-spec.d.ts +8 -0
  35. package/dist/agent/agent.test-spec.d.ts.map +1 -0
  36. package/dist/agent/agent.test-spec.js +65 -0
  37. package/dist/agent/agent.test-spec.js.map +1 -0
  38. package/dist/agent/index.d.ts +8 -0
  39. package/dist/agent/index.js +9 -0
  40. package/dist/agent.capability.d.ts +7 -0
  41. package/dist/agent.capability.d.ts.map +1 -0
  42. package/dist/agent.capability.js +20 -0
  43. package/dist/agent.capability.js.map +1 -0
  44. package/dist/agent.feature.d.ts +12 -0
  45. package/dist/agent.feature.d.ts.map +1 -0
  46. package/dist/agent.feature.js +305 -0
  47. package/dist/agent.feature.js.map +1 -0
  48. package/dist/docs/agent-console.docblock.d.ts +1 -0
  49. package/dist/docs/agent-console.docblock.js +113 -0
  50. package/dist/docs/agent-console.docblock.js.map +1 -0
  51. package/dist/docs/index.d.ts +1 -0
  52. package/dist/docs/index.js +1 -0
  53. package/dist/example.d.ts +7 -0
  54. package/dist/example.d.ts.map +1 -0
  55. package/dist/example.js +58 -0
  56. package/dist/example.js.map +1 -0
  57. package/dist/handlers/agent.handlers.d.ts +135 -0
  58. package/dist/handlers/agent.handlers.d.ts.map +1 -0
  59. package/dist/handlers/agent.handlers.js +263 -0
  60. package/dist/handlers/agent.handlers.js.map +1 -0
  61. package/dist/handlers/index.d.ts +5 -0
  62. package/dist/handlers/index.js +6 -0
  63. package/dist/index.d.ts +48 -0
  64. package/dist/index.js +50 -0
  65. package/dist/presentations/index.d.ts +4 -0
  66. package/dist/presentations/index.js +5 -0
  67. package/dist/run/index.d.ts +8 -0
  68. package/dist/run/index.js +9 -0
  69. package/dist/run/run.entity.d.ts +82 -0
  70. package/dist/run/run.entity.d.ts.map +1 -0
  71. package/dist/run/run.entity.js +205 -0
  72. package/dist/run/run.entity.js.map +1 -0
  73. package/dist/run/run.enum.d.ts +22 -0
  74. package/dist/run/run.enum.d.ts.map +1 -0
  75. package/dist/run/run.enum.js +45 -0
  76. package/dist/run/run.enum.js.map +1 -0
  77. package/dist/run/run.event.d.ts +290 -0
  78. package/dist/run/run.event.d.ts.map +1 -0
  79. package/dist/run/run.event.js +434 -0
  80. package/dist/run/run.event.js.map +1 -0
  81. package/dist/run/run.handler.d.ts +203 -0
  82. package/dist/run/run.handler.d.ts.map +1 -0
  83. package/dist/run/run.handler.js +83 -0
  84. package/dist/run/run.handler.js.map +1 -0
  85. package/dist/run/run.operation.d.ts +720 -0
  86. package/dist/run/run.operation.d.ts.map +1 -0
  87. package/dist/run/run.operation.js +626 -0
  88. package/dist/run/run.operation.js.map +1 -0
  89. package/dist/run/run.presentation.d.ts +14 -0
  90. package/dist/run/run.presentation.d.ts.map +1 -0
  91. package/dist/run/run.presentation.js +65 -0
  92. package/dist/run/run.presentation.js.map +1 -0
  93. package/dist/run/run.schema.d.ts +416 -0
  94. package/dist/run/run.schema.d.ts.map +1 -0
  95. package/dist/run/run.schema.js +338 -0
  96. package/dist/run/run.schema.js.map +1 -0
  97. package/dist/run/run.test-spec.d.ts +8 -0
  98. package/dist/run/run.test-spec.d.ts.map +1 -0
  99. package/dist/run/run.test-spec.js +65 -0
  100. package/dist/run/run.test-spec.js.map +1 -0
  101. package/dist/seeders/index.d.ts +10 -0
  102. package/dist/seeders/index.d.ts.map +1 -0
  103. package/dist/seeders/index.js +20 -0
  104. package/dist/seeders/index.js.map +1 -0
  105. package/dist/shared/index.d.ts +4 -0
  106. package/dist/shared/index.js +5 -0
  107. package/dist/shared/mock-agents.d.ts +88 -0
  108. package/dist/shared/mock-agents.d.ts.map +1 -0
  109. package/dist/shared/mock-agents.js +94 -0
  110. package/dist/shared/mock-agents.js.map +1 -0
  111. package/dist/shared/mock-runs.d.ts +120 -0
  112. package/dist/shared/mock-runs.d.ts.map +1 -0
  113. package/dist/shared/mock-runs.js +118 -0
  114. package/dist/shared/mock-runs.js.map +1 -0
  115. package/dist/shared/mock-tools.d.ts +244 -0
  116. package/dist/shared/mock-tools.d.ts.map +1 -0
  117. package/dist/shared/mock-tools.js +181 -0
  118. package/dist/shared/mock-tools.js.map +1 -0
  119. package/dist/shared/overlay-types.d.ts +34 -0
  120. package/dist/shared/overlay-types.d.ts.map +1 -0
  121. package/dist/shared/overlay-types.js +0 -0
  122. package/dist/tool/index.d.ts +8 -0
  123. package/dist/tool/index.js +9 -0
  124. package/dist/tool/tool.entity.d.ts +42 -0
  125. package/dist/tool/tool.entity.d.ts.map +1 -0
  126. package/dist/tool/tool.entity.js +105 -0
  127. package/dist/tool/tool.entity.js.map +1 -0
  128. package/dist/tool/tool.enum.d.ts +18 -0
  129. package/dist/tool/tool.enum.d.ts.map +1 -0
  130. package/dist/tool/tool.enum.js +35 -0
  131. package/dist/tool/tool.enum.js.map +1 -0
  132. package/dist/tool/tool.event.d.ts +103 -0
  133. package/dist/tool/tool.event.d.ts.map +1 -0
  134. package/dist/tool/tool.event.js +159 -0
  135. package/dist/tool/tool.event.js.map +1 -0
  136. package/dist/tool/tool.handler.d.ts +315 -0
  137. package/dist/tool/tool.handler.d.ts.map +1 -0
  138. package/dist/tool/tool.handler.js +87 -0
  139. package/dist/tool/tool.handler.js.map +1 -0
  140. package/dist/tool/tool.operation.d.ts +411 -0
  141. package/dist/tool/tool.operation.d.ts.map +1 -0
  142. package/dist/tool/tool.operation.js +406 -0
  143. package/dist/tool/tool.operation.js.map +1 -0
  144. package/dist/tool/tool.presentation.d.ts +14 -0
  145. package/dist/tool/tool.presentation.d.ts.map +1 -0
  146. package/dist/tool/tool.presentation.js +65 -0
  147. package/dist/tool/tool.presentation.js.map +1 -0
  148. package/dist/tool/tool.schema.d.ts +218 -0
  149. package/dist/tool/tool.schema.d.ts.map +1 -0
  150. package/dist/tool/tool.schema.js +236 -0
  151. package/dist/tool/tool.schema.js.map +1 -0
  152. package/dist/tool/tool.test-spec.d.ts +8 -0
  153. package/dist/tool/tool.test-spec.d.ts.map +1 -0
  154. package/dist/tool/tool.test-spec.js +65 -0
  155. package/dist/tool/tool.test-spec.js.map +1 -0
  156. package/dist/ui/AgentDashboard.d.ts +7 -0
  157. package/dist/ui/AgentDashboard.d.ts.map +1 -0
  158. package/dist/ui/AgentDashboard.js +420 -0
  159. package/dist/ui/AgentDashboard.js.map +1 -0
  160. package/dist/ui/AgentRunList.d.ts +2 -0
  161. package/dist/ui/AgentRunList.js +5 -0
  162. package/dist/ui/AgentToolRegistry.d.ts +2 -0
  163. package/dist/ui/AgentToolRegistry.js +5 -0
  164. package/dist/ui/hooks/index.d.ts +6 -0
  165. package/dist/ui/hooks/index.js +8 -0
  166. package/dist/ui/hooks/useAgentList.d.ts +28 -0
  167. package/dist/ui/hooks/useAgentList.d.ts.map +1 -0
  168. package/dist/ui/hooks/useAgentList.js +66 -0
  169. package/dist/ui/hooks/useAgentList.js.map +1 -0
  170. package/dist/ui/hooks/useAgentMutations.d.ts +29 -0
  171. package/dist/ui/hooks/useAgentMutations.d.ts.map +1 -0
  172. package/dist/ui/hooks/useAgentMutations.js +124 -0
  173. package/dist/ui/hooks/useAgentMutations.js.map +1 -0
  174. package/dist/ui/hooks/useRunList.d.ts +24 -0
  175. package/dist/ui/hooks/useRunList.d.ts.map +1 -0
  176. package/dist/ui/hooks/useRunList.js +66 -0
  177. package/dist/ui/hooks/useRunList.js.map +1 -0
  178. package/dist/ui/hooks/useToolList.d.ts +40 -0
  179. package/dist/ui/hooks/useToolList.d.ts.map +1 -0
  180. package/dist/ui/hooks/useToolList.js +96 -0
  181. package/dist/ui/hooks/useToolList.js.map +1 -0
  182. package/dist/ui/index.d.ts +24 -0
  183. package/dist/ui/index.js +24 -0
  184. package/dist/ui/modals/AgentActionsModal.d.ts +27 -0
  185. package/dist/ui/modals/AgentActionsModal.d.ts.map +1 -0
  186. package/dist/ui/modals/AgentActionsModal.js +262 -0
  187. package/dist/ui/modals/AgentActionsModal.js.map +1 -0
  188. package/dist/ui/modals/CreateAgentModal.d.ts +25 -0
  189. package/dist/ui/modals/CreateAgentModal.d.ts.map +1 -0
  190. package/dist/ui/modals/CreateAgentModal.js +214 -0
  191. package/dist/ui/modals/CreateAgentModal.js.map +1 -0
  192. package/dist/ui/modals/index.d.ts +3 -0
  193. package/dist/ui/modals/index.js +4 -0
  194. package/dist/ui/overlays/demo-overlays.d.ts +19 -0
  195. package/dist/ui/overlays/demo-overlays.d.ts.map +1 -0
  196. package/dist/ui/overlays/demo-overlays.js +73 -0
  197. package/dist/ui/overlays/demo-overlays.js.map +1 -0
  198. package/dist/ui/overlays/index.d.ts +2 -0
  199. package/dist/ui/overlays/index.js +3 -0
  200. package/dist/ui/renderers/agent-list.markdown.d.ts +15 -0
  201. package/dist/ui/renderers/agent-list.markdown.d.ts.map +1 -0
  202. package/dist/ui/renderers/agent-list.markdown.js +51 -0
  203. package/dist/ui/renderers/agent-list.markdown.js.map +1 -0
  204. package/dist/ui/renderers/agent-list.renderer.d.ts +11 -0
  205. package/dist/ui/renderers/agent-list.renderer.d.ts.map +1 -0
  206. package/dist/ui/renderers/agent-list.renderer.js +19 -0
  207. package/dist/ui/renderers/agent-list.renderer.js.map +1 -0
  208. package/dist/ui/renderers/dashboard.markdown.d.ts +15 -0
  209. package/dist/ui/renderers/dashboard.markdown.d.ts.map +1 -0
  210. package/dist/ui/renderers/dashboard.markdown.js +100 -0
  211. package/dist/ui/renderers/dashboard.markdown.js.map +1 -0
  212. package/dist/ui/renderers/index.d.ts +6 -0
  213. package/dist/ui/renderers/index.js +7 -0
  214. package/dist/ui/renderers/run-list.markdown.d.ts +15 -0
  215. package/dist/ui/renderers/run-list.markdown.d.ts.map +1 -0
  216. package/dist/ui/renderers/run-list.markdown.js +44 -0
  217. package/dist/ui/renderers/run-list.markdown.js.map +1 -0
  218. package/dist/ui/renderers/tool-registry.markdown.d.ts +15 -0
  219. package/dist/ui/renderers/tool-registry.markdown.d.ts.map +1 -0
  220. package/dist/ui/renderers/tool-registry.markdown.js +55 -0
  221. package/dist/ui/renderers/tool-registry.markdown.js.map +1 -0
  222. package/dist/ui/views/AgentListView.d.ts +7 -0
  223. package/dist/ui/views/AgentListView.d.ts.map +1 -0
  224. package/dist/ui/views/AgentListView.js +93 -0
  225. package/dist/ui/views/AgentListView.js.map +1 -0
  226. package/dist/ui/views/RunListView.d.ts +14 -0
  227. package/dist/ui/views/RunListView.d.ts.map +1 -0
  228. package/dist/ui/views/RunListView.js +165 -0
  229. package/dist/ui/views/RunListView.js.map +1 -0
  230. package/dist/ui/views/ToolRegistryView.d.ts +14 -0
  231. package/dist/ui/views/ToolRegistryView.d.ts.map +1 -0
  232. package/dist/ui/views/ToolRegistryView.js +97 -0
  233. package/dist/ui/views/ToolRegistryView.js.map +1 -0
  234. package/dist/ui/views/index.d.ts +4 -0
  235. package/dist/ui/views/index.js +5 -0
  236. package/example.ts +1 -0
  237. package/package.json +155 -0
  238. package/src/agent/agent.entity.ts +137 -0
  239. package/src/agent/agent.enum.ts +31 -0
  240. package/src/agent/agent.event.ts +142 -0
  241. package/src/agent/agent.handler.ts +178 -0
  242. package/src/agent/agent.operation.ts +444 -0
  243. package/src/agent/agent.presentation.ts +80 -0
  244. package/src/agent/agent.schema.ts +214 -0
  245. package/src/agent/agent.test-spec.ts +55 -0
  246. package/src/agent/index.ts +67 -0
  247. package/src/agent.capability.ts +13 -0
  248. package/src/agent.feature.ts +147 -0
  249. package/src/docs/agent-console.docblock.ts +97 -0
  250. package/src/docs/index.ts +1 -0
  251. package/src/example.ts +41 -0
  252. package/src/handlers/agent.handlers.ts +572 -0
  253. package/src/handlers/index.ts +30 -0
  254. package/src/index.ts +32 -0
  255. package/src/presentations/index.ts +26 -0
  256. package/src/run/index.ts +68 -0
  257. package/src/run/run.entity.ts +175 -0
  258. package/src/run/run.enum.ts +43 -0
  259. package/src/run/run.event.ts +264 -0
  260. package/src/run/run.handler.ts +138 -0
  261. package/src/run/run.operation.ts +524 -0
  262. package/src/run/run.presentation.ts +54 -0
  263. package/src/run/run.schema.ts +169 -0
  264. package/src/run/run.test-spec.ts +55 -0
  265. package/src/seeders/index.ts +29 -0
  266. package/src/shared/index.ts +6 -0
  267. package/src/shared/mock-agents.ts +81 -0
  268. package/src/shared/mock-runs.ts +107 -0
  269. package/src/shared/mock-tools.ts +145 -0
  270. package/src/shared/overlay-types.ts +39 -0
  271. package/src/tool/index.ts +60 -0
  272. package/src/tool/tool.entity.ts +99 -0
  273. package/src/tool/tool.enum.ts +32 -0
  274. package/src/tool/tool.event.ts +119 -0
  275. package/src/tool/tool.handler.ts +154 -0
  276. package/src/tool/tool.operation.ts +366 -0
  277. package/src/tool/tool.presentation.ts +55 -0
  278. package/src/tool/tool.schema.ts +133 -0
  279. package/src/tool/tool.test-spec.ts +55 -0
  280. package/src/ui/AgentDashboard.tsx +416 -0
  281. package/src/ui/AgentRunList.tsx +8 -0
  282. package/src/ui/AgentToolRegistry.tsx +8 -0
  283. package/src/ui/hooks/index.ts +14 -0
  284. package/src/ui/hooks/useAgentList.ts +80 -0
  285. package/src/ui/hooks/useAgentMutations.ts +156 -0
  286. package/src/ui/hooks/useRunList.ts +81 -0
  287. package/src/ui/hooks/useToolList.ts +122 -0
  288. package/src/ui/index.ts +21 -0
  289. package/src/ui/modals/AgentActionsModal.tsx +306 -0
  290. package/src/ui/modals/CreateAgentModal.tsx +257 -0
  291. package/src/ui/modals/index.ts +2 -0
  292. package/src/ui/overlays/demo-overlays.ts +77 -0
  293. package/src/ui/overlays/index.ts +1 -0
  294. package/src/ui/renderers/agent-list.markdown.ts +84 -0
  295. package/src/ui/renderers/agent-list.renderer.tsx +27 -0
  296. package/src/ui/renderers/dashboard.markdown.ts +169 -0
  297. package/src/ui/renderers/index.ts +12 -0
  298. package/src/ui/renderers/run-list.markdown.ts +75 -0
  299. package/src/ui/renderers/tool-registry.markdown.ts +91 -0
  300. package/src/ui/views/AgentListView.tsx +113 -0
  301. package/src/ui/views/RunListView.tsx +173 -0
  302. package/src/ui/views/ToolRegistryView.tsx +140 -0
  303. package/src/ui/views/index.ts +6 -0
  304. package/tsconfig.json +10 -0
  305. package/tsconfig.tsbuildinfo +1 -0
  306. package/tsdown.config.js +7 -0
@@ -0,0 +1,218 @@
1
+ import * as _contractspec_lib_schema821 from "@contractspec/lib.schema";
2
+
3
+ //#region src/tool/tool.schema.d.ts
4
+ /**
5
+ * AI tool definition.
6
+ */
7
+ declare const ToolModel: _contractspec_lib_schema821.SchemaModel<{
8
+ id: {
9
+ type: _contractspec_lib_schema821.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ organizationId: {
13
+ type: _contractspec_lib_schema821.FieldType<string, string>;
14
+ isOptional: false;
15
+ };
16
+ name: {
17
+ type: _contractspec_lib_schema821.FieldType<string, string>;
18
+ isOptional: false;
19
+ };
20
+ slug: {
21
+ type: _contractspec_lib_schema821.FieldType<string, string>;
22
+ isOptional: false;
23
+ };
24
+ description: {
25
+ type: _contractspec_lib_schema821.FieldType<string, string>;
26
+ isOptional: false;
27
+ };
28
+ category: {
29
+ type: _contractspec_lib_schema821.EnumType<[string, string, string, string, string, string]>;
30
+ isOptional: false;
31
+ };
32
+ status: {
33
+ type: _contractspec_lib_schema821.EnumType<[string, string, string, string]>;
34
+ isOptional: false;
35
+ };
36
+ parametersSchema: {
37
+ type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
38
+ isOptional: false;
39
+ };
40
+ outputSchema: {
41
+ type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
42
+ isOptional: true;
43
+ };
44
+ implementationType: {
45
+ type: _contractspec_lib_schema821.EnumType<[string, string, string]>;
46
+ isOptional: false;
47
+ };
48
+ implementationConfig: {
49
+ type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
50
+ isOptional: false;
51
+ };
52
+ maxInvocationsPerMinute: {
53
+ type: _contractspec_lib_schema821.FieldType<number, number>;
54
+ isOptional: true;
55
+ };
56
+ timeoutMs: {
57
+ type: _contractspec_lib_schema821.FieldType<number, number>;
58
+ isOptional: false;
59
+ defaultValue: number;
60
+ };
61
+ version: {
62
+ type: _contractspec_lib_schema821.FieldType<string, string>;
63
+ isOptional: false;
64
+ };
65
+ tags: {
66
+ type: _contractspec_lib_schema821.FieldType<string, string>;
67
+ isArray: true;
68
+ isOptional: true;
69
+ };
70
+ createdAt: {
71
+ type: _contractspec_lib_schema821.FieldType<Date, string>;
72
+ isOptional: false;
73
+ };
74
+ updatedAt: {
75
+ type: _contractspec_lib_schema821.FieldType<Date, string>;
76
+ isOptional: false;
77
+ };
78
+ }>;
79
+ /**
80
+ * Summary of a tool for list views.
81
+ */
82
+ declare const ToolSummaryModel: _contractspec_lib_schema821.SchemaModel<{
83
+ id: {
84
+ type: _contractspec_lib_schema821.FieldType<string, string>;
85
+ isOptional: false;
86
+ };
87
+ name: {
88
+ type: _contractspec_lib_schema821.FieldType<string, string>;
89
+ isOptional: false;
90
+ };
91
+ slug: {
92
+ type: _contractspec_lib_schema821.FieldType<string, string>;
93
+ isOptional: false;
94
+ };
95
+ description: {
96
+ type: _contractspec_lib_schema821.FieldType<string, string>;
97
+ isOptional: false;
98
+ };
99
+ category: {
100
+ type: _contractspec_lib_schema821.EnumType<[string, string, string, string, string, string]>;
101
+ isOptional: false;
102
+ };
103
+ status: {
104
+ type: _contractspec_lib_schema821.EnumType<[string, string, string, string]>;
105
+ isOptional: false;
106
+ };
107
+ version: {
108
+ type: _contractspec_lib_schema821.FieldType<string, string>;
109
+ isOptional: false;
110
+ };
111
+ createdAt: {
112
+ type: _contractspec_lib_schema821.FieldType<Date, string>;
113
+ isOptional: false;
114
+ };
115
+ }>;
116
+ /**
117
+ * Input for creating a tool.
118
+ */
119
+ declare const CreateToolInputModel: _contractspec_lib_schema821.SchemaModel<{
120
+ organizationId: {
121
+ type: _contractspec_lib_schema821.FieldType<string, string>;
122
+ isOptional: false;
123
+ };
124
+ name: {
125
+ type: _contractspec_lib_schema821.FieldType<string, string>;
126
+ isOptional: false;
127
+ };
128
+ slug: {
129
+ type: _contractspec_lib_schema821.FieldType<string, string>;
130
+ isOptional: false;
131
+ };
132
+ description: {
133
+ type: _contractspec_lib_schema821.FieldType<string, string>;
134
+ isOptional: false;
135
+ };
136
+ category: {
137
+ type: _contractspec_lib_schema821.EnumType<[string, string, string, string, string, string]>;
138
+ isOptional: true;
139
+ };
140
+ parametersSchema: {
141
+ type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
142
+ isOptional: false;
143
+ };
144
+ outputSchema: {
145
+ type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
146
+ isOptional: true;
147
+ };
148
+ implementationType: {
149
+ type: _contractspec_lib_schema821.EnumType<[string, string, string]>;
150
+ isOptional: false;
151
+ };
152
+ implementationConfig: {
153
+ type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
154
+ isOptional: false;
155
+ };
156
+ maxInvocationsPerMinute: {
157
+ type: _contractspec_lib_schema821.FieldType<number, number>;
158
+ isOptional: true;
159
+ };
160
+ timeoutMs: {
161
+ type: _contractspec_lib_schema821.FieldType<number, number>;
162
+ isOptional: true;
163
+ };
164
+ tags: {
165
+ type: _contractspec_lib_schema821.FieldType<string, string>;
166
+ isArray: true;
167
+ isOptional: true;
168
+ };
169
+ }>;
170
+ /**
171
+ * Input for updating a tool.
172
+ */
173
+ declare const UpdateToolInputModel: _contractspec_lib_schema821.SchemaModel<{
174
+ toolId: {
175
+ type: _contractspec_lib_schema821.FieldType<string, string>;
176
+ isOptional: false;
177
+ };
178
+ name: {
179
+ type: _contractspec_lib_schema821.FieldType<string, string>;
180
+ isOptional: true;
181
+ };
182
+ description: {
183
+ type: _contractspec_lib_schema821.FieldType<string, string>;
184
+ isOptional: true;
185
+ };
186
+ status: {
187
+ type: _contractspec_lib_schema821.EnumType<[string, string, string, string]>;
188
+ isOptional: true;
189
+ };
190
+ parametersSchema: {
191
+ type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
192
+ isOptional: true;
193
+ };
194
+ outputSchema: {
195
+ type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
196
+ isOptional: true;
197
+ };
198
+ implementationConfig: {
199
+ type: _contractspec_lib_schema821.FieldType<Record<string, unknown>, Record<string, unknown>>;
200
+ isOptional: true;
201
+ };
202
+ maxInvocationsPerMinute: {
203
+ type: _contractspec_lib_schema821.FieldType<number, number>;
204
+ isOptional: true;
205
+ };
206
+ timeoutMs: {
207
+ type: _contractspec_lib_schema821.FieldType<number, number>;
208
+ isOptional: true;
209
+ };
210
+ tags: {
211
+ type: _contractspec_lib_schema821.FieldType<string, string>;
212
+ isArray: true;
213
+ isOptional: true;
214
+ };
215
+ }>;
216
+ //#endregion
217
+ export { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel };
218
+ //# sourceMappingURL=tool.schema.d.ts.map
@@ -0,0 +1 @@
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,236 @@
1
+ import { ImplementationTypeEnum, ToolCategoryEnum, ToolStatusEnum } from "./tool.enum.js";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
+
4
+ //#region src/tool/tool.schema.ts
5
+ /**
6
+ * AI tool definition.
7
+ */
8
+ const ToolModel = defineSchemaModel({
9
+ name: "Tool",
10
+ description: "AI tool definition",
11
+ fields: {
12
+ id: {
13
+ type: ScalarTypeEnum.String_unsecure(),
14
+ isOptional: false
15
+ },
16
+ organizationId: {
17
+ type: ScalarTypeEnum.String_unsecure(),
18
+ isOptional: false
19
+ },
20
+ name: {
21
+ type: ScalarTypeEnum.NonEmptyString(),
22
+ isOptional: false
23
+ },
24
+ slug: {
25
+ type: ScalarTypeEnum.String_unsecure(),
26
+ isOptional: false
27
+ },
28
+ description: {
29
+ type: ScalarTypeEnum.String_unsecure(),
30
+ isOptional: false
31
+ },
32
+ category: {
33
+ type: ToolCategoryEnum,
34
+ isOptional: false
35
+ },
36
+ status: {
37
+ type: ToolStatusEnum,
38
+ isOptional: false
39
+ },
40
+ parametersSchema: {
41
+ type: ScalarTypeEnum.JSONObject(),
42
+ isOptional: false
43
+ },
44
+ outputSchema: {
45
+ type: ScalarTypeEnum.JSONObject(),
46
+ isOptional: true
47
+ },
48
+ implementationType: {
49
+ type: ImplementationTypeEnum,
50
+ isOptional: false
51
+ },
52
+ implementationConfig: {
53
+ type: ScalarTypeEnum.JSONObject(),
54
+ isOptional: false
55
+ },
56
+ maxInvocationsPerMinute: {
57
+ type: ScalarTypeEnum.Int_unsecure(),
58
+ isOptional: true
59
+ },
60
+ timeoutMs: {
61
+ type: ScalarTypeEnum.Int_unsecure(),
62
+ isOptional: false,
63
+ defaultValue: 3e4
64
+ },
65
+ version: {
66
+ type: ScalarTypeEnum.NonEmptyString(),
67
+ isOptional: false
68
+ },
69
+ tags: {
70
+ type: ScalarTypeEnum.String_unsecure(),
71
+ isArray: true,
72
+ isOptional: true
73
+ },
74
+ createdAt: {
75
+ type: ScalarTypeEnum.DateTime(),
76
+ isOptional: false
77
+ },
78
+ updatedAt: {
79
+ type: ScalarTypeEnum.DateTime(),
80
+ isOptional: false
81
+ }
82
+ }
83
+ });
84
+ /**
85
+ * Summary of a tool for list views.
86
+ */
87
+ const ToolSummaryModel = defineSchemaModel({
88
+ name: "ToolSummary",
89
+ description: "Summary of a tool for list views",
90
+ fields: {
91
+ id: {
92
+ type: ScalarTypeEnum.String_unsecure(),
93
+ isOptional: false
94
+ },
95
+ name: {
96
+ type: ScalarTypeEnum.NonEmptyString(),
97
+ isOptional: false
98
+ },
99
+ slug: {
100
+ type: ScalarTypeEnum.String_unsecure(),
101
+ isOptional: false
102
+ },
103
+ description: {
104
+ type: ScalarTypeEnum.String_unsecure(),
105
+ isOptional: false
106
+ },
107
+ category: {
108
+ type: ToolCategoryEnum,
109
+ isOptional: false
110
+ },
111
+ status: {
112
+ type: ToolStatusEnum,
113
+ isOptional: false
114
+ },
115
+ version: {
116
+ type: ScalarTypeEnum.NonEmptyString(),
117
+ isOptional: false
118
+ },
119
+ createdAt: {
120
+ type: ScalarTypeEnum.DateTime(),
121
+ isOptional: false
122
+ }
123
+ }
124
+ });
125
+ /**
126
+ * Input for creating a tool.
127
+ */
128
+ const CreateToolInputModel = defineSchemaModel({
129
+ name: "CreateToolInput",
130
+ description: "Input for creating a tool",
131
+ fields: {
132
+ organizationId: {
133
+ type: ScalarTypeEnum.String_unsecure(),
134
+ isOptional: false
135
+ },
136
+ name: {
137
+ type: ScalarTypeEnum.NonEmptyString(),
138
+ isOptional: false
139
+ },
140
+ slug: {
141
+ type: ScalarTypeEnum.String_unsecure(),
142
+ isOptional: false
143
+ },
144
+ description: {
145
+ type: ScalarTypeEnum.String_unsecure(),
146
+ isOptional: false
147
+ },
148
+ category: {
149
+ type: ToolCategoryEnum,
150
+ isOptional: true
151
+ },
152
+ parametersSchema: {
153
+ type: ScalarTypeEnum.JSONObject(),
154
+ isOptional: false
155
+ },
156
+ outputSchema: {
157
+ type: ScalarTypeEnum.JSONObject(),
158
+ isOptional: true
159
+ },
160
+ implementationType: {
161
+ type: ImplementationTypeEnum,
162
+ isOptional: false
163
+ },
164
+ implementationConfig: {
165
+ type: ScalarTypeEnum.JSONObject(),
166
+ isOptional: false
167
+ },
168
+ maxInvocationsPerMinute: {
169
+ type: ScalarTypeEnum.Int_unsecure(),
170
+ isOptional: true
171
+ },
172
+ timeoutMs: {
173
+ type: ScalarTypeEnum.Int_unsecure(),
174
+ isOptional: true
175
+ },
176
+ tags: {
177
+ type: ScalarTypeEnum.String_unsecure(),
178
+ isArray: true,
179
+ isOptional: true
180
+ }
181
+ }
182
+ });
183
+ /**
184
+ * Input for updating a tool.
185
+ */
186
+ const UpdateToolInputModel = defineSchemaModel({
187
+ name: "UpdateToolInput",
188
+ description: "Input for updating a tool",
189
+ fields: {
190
+ toolId: {
191
+ type: ScalarTypeEnum.String_unsecure(),
192
+ isOptional: false
193
+ },
194
+ name: {
195
+ type: ScalarTypeEnum.NonEmptyString(),
196
+ isOptional: true
197
+ },
198
+ description: {
199
+ type: ScalarTypeEnum.String_unsecure(),
200
+ isOptional: true
201
+ },
202
+ status: {
203
+ type: ToolStatusEnum,
204
+ isOptional: true
205
+ },
206
+ parametersSchema: {
207
+ type: ScalarTypeEnum.JSONObject(),
208
+ isOptional: true
209
+ },
210
+ outputSchema: {
211
+ type: ScalarTypeEnum.JSONObject(),
212
+ isOptional: true
213
+ },
214
+ implementationConfig: {
215
+ type: ScalarTypeEnum.JSONObject(),
216
+ isOptional: true
217
+ },
218
+ maxInvocationsPerMinute: {
219
+ type: ScalarTypeEnum.Int_unsecure(),
220
+ isOptional: true
221
+ },
222
+ timeoutMs: {
223
+ type: ScalarTypeEnum.Int_unsecure(),
224
+ isOptional: true
225
+ },
226
+ tags: {
227
+ type: ScalarTypeEnum.String_unsecure(),
228
+ isArray: true,
229
+ isOptional: true
230
+ }
231
+ }
232
+ });
233
+
234
+ //#endregion
235
+ export { CreateToolInputModel, ToolModel, ToolSummaryModel, UpdateToolInputModel };
236
+ //# sourceMappingURL=tool.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool.schema.js","names":[],"sources":["../../src/tool/tool.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\nimport {\n ToolCategoryEnum,\n ToolStatusEnum,\n ImplementationTypeEnum,\n} from './tool.enum';\n\n/**\n * AI tool definition.\n */\nexport const ToolModel = defineSchemaModel({\n name: 'Tool',\n description: 'AI tool definition',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ToolCategoryEnum, isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n parametersSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n outputSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n implementationType: { type: ImplementationTypeEnum, isOptional: false },\n implementationConfig: {\n type: ScalarTypeEnum.JSONObject(),\n isOptional: false,\n },\n maxInvocationsPerMinute: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 30000,\n },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Summary of a tool for list views.\n */\nexport const ToolSummaryModel = defineSchemaModel({\n name: 'ToolSummary',\n description: 'Summary of a tool for list views',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ToolCategoryEnum, isOptional: false },\n status: { type: ToolStatusEnum, isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for creating a tool.\n */\nexport const CreateToolInputModel = defineSchemaModel({\n name: 'CreateToolInput',\n description: 'Input for creating a tool',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ToolCategoryEnum, isOptional: true },\n parametersSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n outputSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n implementationType: { type: ImplementationTypeEnum, isOptional: false },\n implementationConfig: {\n type: ScalarTypeEnum.JSONObject(),\n isOptional: false,\n },\n maxInvocationsPerMinute: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n\n/**\n * Input for updating a tool.\n */\nexport const UpdateToolInputModel = defineSchemaModel({\n name: 'UpdateToolInput',\n description: 'Input for updating a tool',\n fields: {\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ToolStatusEnum, isOptional: true },\n parametersSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n outputSchema: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n implementationConfig: {\n type: ScalarTypeEnum.JSONObject(),\n isOptional: true,\n },\n maxInvocationsPerMinute: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n"],"mappings":"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"}
@@ -0,0 +1,8 @@
1
+ import * as _contractspec_lib_contracts35 from "@contractspec/lib.contracts";
2
+
3
+ //#region src/tool/tool.test-spec.d.ts
4
+ declare const toolListTest: _contractspec_lib_contracts35.TestSpec;
5
+ declare const toolGetTest: _contractspec_lib_contracts35.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,7 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+
3
+ //#region src/ui/AgentDashboard.d.ts
4
+ declare function AgentDashboard(): react_jsx_runtime0.JSX.Element;
5
+ //#endregion
6
+ export { AgentDashboard };
7
+ //# sourceMappingURL=AgentDashboard.d.ts.map
@@ -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"}