terse-cli 0.3.8 → 0.4.1

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 (270) hide show
  1. package/dist/cliUi.js +1 -1
  2. package/dist/cliUi.js.map +1 -1
  3. package/dist/commands/deploy.d.ts.map +1 -1
  4. package/dist/commands/deploy.js +138 -22
  5. package/dist/commands/deploy.js.map +1 -1
  6. package/dist/providers/typescript/TypeScriptProvider.js +2 -2
  7. package/dist/providers/typescript/TypeScriptProvider.js.map +1 -1
  8. package/dist/providers/typescript/durableRuntime.d.ts +1 -1
  9. package/dist/providers/typescript/durableRuntime.d.ts.map +1 -1
  10. package/dist/providers/typescript/durableRuntime.js +7 -6
  11. package/dist/providers/typescript/durableRuntime.js.map +1 -1
  12. package/dist/providers/typescript/workflowShim.d.ts +2 -0
  13. package/dist/providers/typescript/workflowShim.d.ts.map +1 -0
  14. package/dist/providers/typescript/workflowShim.js +51 -0
  15. package/dist/providers/typescript/workflowShim.js.map +1 -0
  16. package/package.json +5 -5
  17. package/templates/typescript/init/package.json.hbs +1 -1
  18. package/templates/typescript/workflow-shim/api.js +5 -0
  19. package/templates/typescript/workflow-shim/index.js +2 -0
  20. package/templates/typescript/workflow-shim/internal/builtins.js +83 -0
  21. package/templates/typescript/workflow-shim/internal/class-serialization.js +1 -0
  22. package/templates/typescript/workflow-shim/runtime.js +1 -0
  23. package/templates/typescript/workflow-shim/stdlib.js +18 -0
  24. package/templates/typescript/workflow-shim/workflow.js +2 -0
  25. package/dist/_tmp_create_project.d.ts +0 -2
  26. package/dist/_tmp_create_project.d.ts.map +0 -1
  27. package/dist/_tmp_create_project.js +0 -17
  28. package/dist/_tmp_create_project.js.map +0 -1
  29. package/dist/_tmp_delete_agent.d.ts +0 -2
  30. package/dist/_tmp_delete_agent.d.ts.map +0 -1
  31. package/dist/_tmp_delete_agent.js +0 -14
  32. package/dist/_tmp_delete_agent.js.map +0 -1
  33. package/dist/_tmp_manual_trigger.d.ts +0 -2
  34. package/dist/_tmp_manual_trigger.d.ts.map +0 -1
  35. package/dist/_tmp_manual_trigger.js +0 -17
  36. package/dist/_tmp_manual_trigger.js.map +0 -1
  37. package/dist/_tmp_patch_active.d.ts +0 -2
  38. package/dist/_tmp_patch_active.d.ts.map +0 -1
  39. package/dist/_tmp_patch_active.js +0 -21
  40. package/dist/_tmp_patch_active.js.map +0 -1
  41. package/dist/attach.d.ts +0 -3
  42. package/dist/attach.d.ts.map +0 -1
  43. package/dist/attach.js +0 -61
  44. package/dist/attach.js.map +0 -1
  45. package/dist/auth.d.ts +0 -15
  46. package/dist/auth.d.ts.map +0 -1
  47. package/dist/auth.js +0 -169
  48. package/dist/auth.js.map +0 -1
  49. package/dist/codegen.d.ts +0 -135
  50. package/dist/codegen.d.ts.map +0 -1
  51. package/dist/codegen.js +0 -1196
  52. package/dist/codegen.js.map +0 -1
  53. package/dist/commands/deployTheme.d.ts +0 -28
  54. package/dist/commands/deployTheme.d.ts.map +0 -1
  55. package/dist/commands/deployTheme.js +0 -68
  56. package/dist/commands/deployTheme.js.map +0 -1
  57. package/dist/commands/dev.d.ts +0 -3
  58. package/dist/commands/dev.d.ts.map +0 -1
  59. package/dist/commands/dev.js +0 -47
  60. package/dist/commands/dev.js.map +0 -1
  61. package/dist/commands/fsExec.d.ts +0 -8
  62. package/dist/commands/fsExec.d.ts.map +0 -1
  63. package/dist/commands/fsExec.js +0 -46
  64. package/dist/commands/fsExec.js.map +0 -1
  65. package/dist/commands/metaAdsScope.d.ts +0 -12
  66. package/dist/commands/metaAdsScope.d.ts.map +0 -1
  67. package/dist/commands/metaAdsScope.js +0 -120
  68. package/dist/commands/metaAdsScope.js.map +0 -1
  69. package/dist/commands/serve.d.ts +0 -1
  70. package/dist/commands/serve.d.ts.map +0 -1
  71. package/dist/commands/serve.js +0 -2
  72. package/dist/commands/serve.js.map +0 -1
  73. package/dist/commands/terseCliTheme.d.ts +0 -28
  74. package/dist/commands/terseCliTheme.d.ts.map +0 -1
  75. package/dist/commands/terseCliTheme.js +0 -68
  76. package/dist/commands/terseCliTheme.js.map +0 -1
  77. package/dist/commands/tool.d.ts +0 -6
  78. package/dist/commands/tool.d.ts.map +0 -1
  79. package/dist/commands/tool.js +0 -34
  80. package/dist/commands/tool.js.map +0 -1
  81. package/dist/data/standardSlackEmoji.d.ts +0 -2
  82. package/dist/data/standardSlackEmoji.d.ts.map +0 -1
  83. package/dist/data/standardSlackEmoji.js +0 -1978
  84. package/dist/data/standardSlackEmoji.js.map +0 -1
  85. package/dist/data/standardSlackEmoji.json +0 -1974
  86. package/dist/deploy.d.ts +0 -3
  87. package/dist/deploy.d.ts.map +0 -1
  88. package/dist/deploy.js +0 -124
  89. package/dist/deploy.js.map +0 -1
  90. package/dist/generate.d.ts +0 -3
  91. package/dist/generate.d.ts.map +0 -1
  92. package/dist/generate.js +0 -282
  93. package/dist/generate.js.map +0 -1
  94. package/dist/init.d.ts +0 -3
  95. package/dist/init.d.ts.map +0 -1
  96. package/dist/init.js +0 -98
  97. package/dist/init.js.map +0 -1
  98. package/dist/integrate.d.ts +0 -3
  99. package/dist/integrate.d.ts.map +0 -1
  100. package/dist/integrate.js +0 -214
  101. package/dist/integrate.js.map +0 -1
  102. package/dist/nonInteractive.d.ts +0 -20
  103. package/dist/nonInteractive.d.ts.map +0 -1
  104. package/dist/nonInteractive.js +0 -60
  105. package/dist/nonInteractive.js.map +0 -1
  106. package/dist/perf.d.ts +0 -9
  107. package/dist/perf.d.ts.map +0 -1
  108. package/dist/perf.js +0 -59
  109. package/dist/perf.js.map +0 -1
  110. package/dist/providers/codegen.test.d.ts +0 -2
  111. package/dist/providers/codegen.test.d.ts.map +0 -1
  112. package/dist/providers/codegen.test.js +0 -45
  113. package/dist/providers/codegen.test.js.map +0 -1
  114. package/dist/providers/python/PythonProvider.d.ts +0 -51
  115. package/dist/providers/python/PythonProvider.d.ts.map +0 -1
  116. package/dist/providers/python/PythonProvider.js +0 -414
  117. package/dist/providers/python/PythonProvider.js.map +0 -1
  118. package/dist/providers/python/PythonProvider.test.d.ts +0 -2
  119. package/dist/providers/python/PythonProvider.test.d.ts.map +0 -1
  120. package/dist/providers/python/PythonProvider.test.js +0 -169
  121. package/dist/providers/python/PythonProvider.test.js.map +0 -1
  122. package/dist/providers/python/preparePythonCodegenData.d.ts +0 -139
  123. package/dist/providers/python/preparePythonCodegenData.d.ts.map +0 -1
  124. package/dist/providers/python/preparePythonCodegenData.js +0 -452
  125. package/dist/providers/python/preparePythonCodegenData.js.map +0 -1
  126. package/dist/providers/python/pythonTemplateEngine.d.ts +0 -3
  127. package/dist/providers/python/pythonTemplateEngine.d.ts.map +0 -1
  128. package/dist/providers/python/pythonTemplateEngine.js +0 -30
  129. package/dist/providers/python/pythonTemplateEngine.js.map +0 -1
  130. package/dist/providers/shared/shellUtils.d.ts +0 -2
  131. package/dist/providers/shared/shellUtils.d.ts.map +0 -1
  132. package/dist/providers/shared/shellUtils.js +0 -25
  133. package/dist/providers/shared/shellUtils.js.map +0 -1
  134. package/dist/providers/typescript/attioProjection.d.ts +0 -50
  135. package/dist/providers/typescript/attioProjection.d.ts.map +0 -1
  136. package/dist/providers/typescript/attioProjection.js +0 -358
  137. package/dist/providers/typescript/attioProjection.js.map +0 -1
  138. package/dist/providers/typescript/modules/cursor/CursorModule.d.ts +0 -20
  139. package/dist/providers/typescript/modules/cursor/CursorModule.d.ts.map +0 -1
  140. package/dist/providers/typescript/modules/cursor/CursorModule.js +0 -27
  141. package/dist/providers/typescript/modules/cursor/CursorModule.js.map +0 -1
  142. package/dist/providers/typescript/prepareCodegenData.d.ts +0 -166
  143. package/dist/providers/typescript/prepareCodegenData.d.ts.map +0 -1
  144. package/dist/providers/typescript/prepareCodegenData.js +0 -1431
  145. package/dist/providers/typescript/prepareCodegenData.js.map +0 -1
  146. package/dist/providers/typescript/prepareCodegenData.test.d.ts +0 -2
  147. package/dist/providers/typescript/prepareCodegenData.test.d.ts.map +0 -1
  148. package/dist/providers/typescript/prepareCodegenData.test.js +0 -54
  149. package/dist/providers/typescript/prepareCodegenData.test.js.map +0 -1
  150. package/dist/providers/typescript/projectedTypes.d.ts +0 -11
  151. package/dist/providers/typescript/projectedTypes.d.ts.map +0 -1
  152. package/dist/providers/typescript/projectedTypes.js +0 -53
  153. package/dist/providers/typescript/projectedTypes.js.map +0 -1
  154. package/dist/providers/typescript/projectionPrinter.d.ts +0 -26
  155. package/dist/providers/typescript/projectionPrinter.d.ts.map +0 -1
  156. package/dist/providers/typescript/projectionPrinter.js +0 -110
  157. package/dist/providers/typescript/projectionPrinter.js.map +0 -1
  158. package/dist/providers/typescript/replayLogDedupe.d.ts +0 -6
  159. package/dist/providers/typescript/replayLogDedupe.d.ts.map +0 -1
  160. package/dist/providers/typescript/replayLogDedupe.js +0 -156
  161. package/dist/providers/typescript/replayLogDedupe.js.map +0 -1
  162. package/dist/providers/typescript/triggerPayloads.d.ts +0 -7
  163. package/dist/providers/typescript/triggerPayloads.d.ts.map +0 -1
  164. package/dist/providers/typescript/triggerPayloads.js +0 -60
  165. package/dist/providers/typescript/triggerPayloads.js.map +0 -1
  166. package/dist/providers/typescript/triggerTypeRegistry.d.ts +0 -7
  167. package/dist/providers/typescript/triggerTypeRegistry.d.ts.map +0 -1
  168. package/dist/providers/typescript/triggerTypeRegistry.js +0 -198
  169. package/dist/providers/typescript/triggerTypeRegistry.js.map +0 -1
  170. package/dist/run.d.ts +0 -3
  171. package/dist/run.d.ts.map +0 -1
  172. package/dist/run.js +0 -72
  173. package/dist/run.js.map +0 -1
  174. package/dist/sampleEventCache.d.ts +0 -9
  175. package/dist/sampleEventCache.d.ts.map +0 -1
  176. package/dist/sampleEventCache.js +0 -47
  177. package/dist/sampleEventCache.js.map +0 -1
  178. package/dist/sampleEventId.d.ts +0 -9
  179. package/dist/sampleEventId.d.ts.map +0 -1
  180. package/dist/sampleEventId.js +0 -16
  181. package/dist/sampleEventId.js.map +0 -1
  182. package/dist/shared/ApiRoutes.d.ts +0 -348
  183. package/dist/shared/ApiRoutes.d.ts.map +0 -1
  184. package/dist/shared/ApiRoutes.js +0 -325
  185. package/dist/shared/ApiRoutes.js.map +0 -1
  186. package/dist/shared/ApprovalTypes.d.ts +0 -29
  187. package/dist/shared/ApprovalTypes.d.ts.map +0 -1
  188. package/dist/shared/ApprovalTypes.js +0 -8
  189. package/dist/shared/ApprovalTypes.js.map +0 -1
  190. package/dist/shared/ClientBoundTools.d.ts +0 -37
  191. package/dist/shared/ClientBoundTools.d.ts.map +0 -1
  192. package/dist/shared/ClientBoundTools.js +0 -37
  193. package/dist/shared/ClientBoundTools.js.map +0 -1
  194. package/dist/shared/Configs.d.ts +0 -488
  195. package/dist/shared/Configs.d.ts.map +0 -1
  196. package/dist/shared/Configs.js +0 -785
  197. package/dist/shared/Configs.js.map +0 -1
  198. package/dist/shared/DonatedState.d.ts +0 -5
  199. package/dist/shared/DonatedState.d.ts.map +0 -1
  200. package/dist/shared/DonatedState.js +0 -13
  201. package/dist/shared/DonatedState.js.map +0 -1
  202. package/dist/shared/Entities.d.ts +0 -8
  203. package/dist/shared/Entities.d.ts.map +0 -1
  204. package/dist/shared/Entities.js +0 -9
  205. package/dist/shared/Entities.js.map +0 -1
  206. package/dist/shared/FrontendRoutes.d.ts +0 -54
  207. package/dist/shared/FrontendRoutes.d.ts.map +0 -1
  208. package/dist/shared/FrontendRoutes.js +0 -54
  209. package/dist/shared/FrontendRoutes.js.map +0 -1
  210. package/dist/shared/Integrations.d.ts +0 -235
  211. package/dist/shared/Integrations.d.ts.map +0 -1
  212. package/dist/shared/Integrations.js +0 -143
  213. package/dist/shared/Integrations.js.map +0 -1
  214. package/dist/shared/InvalidationKeys.d.ts +0 -53
  215. package/dist/shared/InvalidationKeys.d.ts.map +0 -1
  216. package/dist/shared/InvalidationKeys.js +0 -166
  217. package/dist/shared/InvalidationKeys.js.map +0 -1
  218. package/dist/shared/ModelEvents.d.ts +0 -176
  219. package/dist/shared/ModelEvents.d.ts.map +0 -1
  220. package/dist/shared/ModelEvents.js +0 -29
  221. package/dist/shared/ModelEvents.js.map +0 -1
  222. package/dist/shared/Notifications.d.ts +0 -43
  223. package/dist/shared/Notifications.d.ts.map +0 -1
  224. package/dist/shared/Notifications.js +0 -6
  225. package/dist/shared/Notifications.js.map +0 -1
  226. package/dist/shared/RunHistoryTypes.d.ts +0 -95
  227. package/dist/shared/RunHistoryTypes.d.ts.map +0 -1
  228. package/dist/shared/RunHistoryTypes.js +0 -11
  229. package/dist/shared/RunHistoryTypes.js.map +0 -1
  230. package/dist/shared/SentNotifications.d.ts +0 -30
  231. package/dist/shared/SentNotifications.d.ts.map +0 -1
  232. package/dist/shared/SentNotifications.js +0 -13
  233. package/dist/shared/SentNotifications.js.map +0 -1
  234. package/dist/shared/SocketEvents.d.ts +0 -49
  235. package/dist/shared/SocketEvents.d.ts.map +0 -1
  236. package/dist/shared/SocketEvents.js +0 -53
  237. package/dist/shared/SocketEvents.js.map +0 -1
  238. package/dist/shared/Survey.d.ts +0 -10
  239. package/dist/shared/Survey.d.ts.map +0 -1
  240. package/dist/shared/Survey.js +0 -2
  241. package/dist/shared/Survey.js.map +0 -1
  242. package/dist/shared/TicketSystem.d.ts +0 -154
  243. package/dist/shared/TicketSystem.d.ts.map +0 -1
  244. package/dist/shared/TicketSystem.js +0 -21
  245. package/dist/shared/TicketSystem.js.map +0 -1
  246. package/dist/shared/ToolDisplayUtils.d.ts +0 -30
  247. package/dist/shared/ToolDisplayUtils.d.ts.map +0 -1
  248. package/dist/shared/ToolDisplayUtils.js +0 -1163
  249. package/dist/shared/ToolDisplayUtils.js.map +0 -1
  250. package/dist/shared/ToolsTypes.d.ts +0 -18
  251. package/dist/shared/ToolsTypes.d.ts.map +0 -1
  252. package/dist/shared/ToolsTypes.js +0 -2
  253. package/dist/shared/ToolsTypes.js.map +0 -1
  254. package/dist/shared/types.d.ts +0 -1732
  255. package/dist/shared/types.d.ts.map +0 -1
  256. package/dist/shared/types.js +0 -17
  257. package/dist/shared/types.js.map +0 -1
  258. package/dist/test.d.ts +0 -3
  259. package/dist/test.d.ts.map +0 -1
  260. package/dist/test.js +0 -82
  261. package/dist/test.js.map +0 -1
  262. package/dist/triggerParseDetail.d.ts +0 -8
  263. package/dist/triggerParseDetail.d.ts.map +0 -1
  264. package/dist/triggerParseDetail.js +0 -30
  265. package/dist/triggerParseDetail.js.map +0 -1
  266. package/dist/util.d.ts +0 -3
  267. package/dist/util.d.ts.map +0 -1
  268. package/dist/util.js +0 -5
  269. package/dist/util.js.map +0 -1
  270. package/templates/typescript/codegen/.impeccable/hook.cache.json +0 -1
@@ -1,53 +0,0 @@
1
- import { GetRunHistoryParams } from "./RunHistoryTypes";
2
- import type { StatsInterval } from "./types";
3
- export declare const currentUserKey: () => readonly [string];
4
- export declare const userOrganizationsKey: () => readonly [string];
5
- export declare const widgetTokenKey: () => readonly [string];
6
- export declare const integrationsKey: () => readonly [string];
7
- export declare const notificationDestinationsKey: () => readonly [string];
8
- export declare const apiTokensKey: () => readonly [string];
9
- export declare const notificationSettingsKey: () => readonly [string];
10
- export declare const sentNotificationsKey: () => readonly [string];
11
- export declare const pendingApprovalsKey: () => readonly [string];
12
- export declare const slackChannelsKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
13
- export declare const slackUsersKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
14
- export declare const notionResourcesKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
15
- export declare const posthogIntegrationsKey: () => readonly [string];
16
- export declare const launchdarklyIntegrationsKey: () => readonly [string];
17
- export declare const datadogIntegrationsKey: () => readonly [string];
18
- export declare const githubRepositoriesKey: (installationId: number | null | undefined) => readonly [string, number] | null;
19
- export declare const confluenceResourcesKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
20
- export declare const jiraResourcesKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
21
- export declare const linearTeamsKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
22
- export declare const gmailIntegrationsKey: () => readonly [string];
23
- export declare const atlassianIntegrationsKey: () => readonly [string];
24
- export declare const figmaIntegrationsKey: () => readonly [string];
25
- export declare const githubIntegrationsKey: () => readonly [string];
26
- export declare const linearIntegrationsKey: () => readonly [string];
27
- export declare const notionIntegrationsKey: () => readonly [string];
28
- export declare const slackIntegrationsKey: () => readonly [string];
29
- export declare const workosIntegrationsKey: () => readonly [string];
30
- export declare const attioIntegrationsKey: () => readonly [string];
31
- export declare const snowflakeIntegrationsKey: () => readonly [string];
32
- export declare const attioObjectsKey: (integrationId: string | null | undefined) => readonly [string, string] | null;
33
- export declare const allRunHistoryKey: (params?: GetRunHistoryParams) => readonly [string, string] | readonly [string];
34
- export declare const runHistoryKey: (agentId: string, params?: GetRunHistoryParams) => readonly [string, string, string] | readonly [string, string];
35
- export declare const recentAgentsKey: (limit?: number) => readonly [string, number] | readonly [string];
36
- export declare const statsKey: (timezone: string, interval?: StatsInterval) => readonly [string, string] | readonly [string, string, StatsInterval];
37
- export type AgentListArgs = {
38
- page?: number;
39
- limit?: number;
40
- isActive?: boolean;
41
- search?: string;
42
- };
43
- export declare const agentListKey: ({ page, limit, isActive, search }?: AgentListArgs) => readonly [string, AgentListArgs];
44
- export declare const agentDetailKey: (id: string | null) => readonly [string, {
45
- id: string;
46
- }] | null;
47
- export declare const agentImprovementsKey: (agentId: string | null) => readonly [string, {
48
- agentId: string;
49
- }] | null;
50
- export declare const builderChatHistoryKey: (sessionId: string | null | undefined) => readonly [string, string] | null;
51
- export declare const orgLogoKey: (organizationId: string | null | undefined) => readonly [string, string] | null;
52
- export declare const userByIdKey: (userId: string | null | undefined) => readonly [string, string] | null;
53
- //# sourceMappingURL=InvalidationKeys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvalidationKeys.d.ts","sourceRoot":"","sources":["../../src/shared/InvalidationKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAA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AAM,UAAU,GAAI,gBAAgB,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAGlG,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAG3F,CAAA"}
@@ -1,166 +0,0 @@
1
- export const currentUserKey = () => ["currentUser"];
2
- export const userOrganizationsKey = () => ["userOrganizations"];
3
- export const widgetTokenKey = () => ["widgetToken"];
4
- export const integrationsKey = () => ["integrations"];
5
- export const notificationDestinationsKey = () => ["notificationDestinations"];
6
- export const apiTokensKey = () => ["apiTokens"];
7
- export const notificationSettingsKey = () => ["notificationSettings"];
8
- export const sentNotificationsKey = () => ["sentNotifications"];
9
- export const pendingApprovalsKey = () => ["pending Approvals"];
10
- export const slackChannelsKey = (integrationId) => {
11
- if (!integrationId) {
12
- return null;
13
- }
14
- return ["slackChannels", integrationId];
15
- };
16
- export const slackUsersKey = (integrationId) => {
17
- if (!integrationId) {
18
- return null;
19
- }
20
- return ["slackUsers", integrationId];
21
- };
22
- export const notionResourcesKey = (integrationId) => {
23
- if (!integrationId) {
24
- return null;
25
- }
26
- return ["notionResources", integrationId];
27
- };
28
- export const posthogIntegrationsKey = () => {
29
- return ["posthogIntegrations"];
30
- };
31
- export const launchdarklyIntegrationsKey = () => {
32
- return ["launchdarklyIntegrations"];
33
- };
34
- export const datadogIntegrationsKey = () => {
35
- return ["datadogIntegrations"];
36
- };
37
- export const githubRepositoriesKey = (installationId) => {
38
- if (!installationId) {
39
- return null;
40
- }
41
- return ["githubRepositories", installationId];
42
- };
43
- export const confluenceResourcesKey = (integrationId) => {
44
- if (!integrationId) {
45
- return null;
46
- }
47
- return ["confluenceResources", integrationId];
48
- };
49
- export const jiraResourcesKey = (integrationId) => {
50
- if (!integrationId) {
51
- return null;
52
- }
53
- return ["jiraResources", integrationId];
54
- };
55
- export const linearTeamsKey = (integrationId) => {
56
- if (!integrationId) {
57
- return null;
58
- }
59
- return ["linearTeams", integrationId];
60
- };
61
- export const gmailIntegrationsKey = () => {
62
- return ["gmailIntegrations"];
63
- };
64
- export const atlassianIntegrationsKey = () => {
65
- return ["atlassianIntegrations"];
66
- };
67
- export const figmaIntegrationsKey = () => {
68
- return ["figmaIntegrations"];
69
- };
70
- export const githubIntegrationsKey = () => {
71
- return ["githubIntegrations"];
72
- };
73
- export const linearIntegrationsKey = () => {
74
- return ["linearIntegrations"];
75
- };
76
- export const notionIntegrationsKey = () => {
77
- return ["notionIntegrations"];
78
- };
79
- export const slackIntegrationsKey = () => {
80
- return ["slackIntegrations"];
81
- };
82
- export const workosIntegrationsKey = () => {
83
- return ["workosIntegrations"];
84
- };
85
- export const attioIntegrationsKey = () => {
86
- return ["attioIntegrations"];
87
- };
88
- export const snowflakeIntegrationsKey = () => {
89
- return ["snowflakeIntegrations"];
90
- };
91
- export const attioObjectsKey = (integrationId) => {
92
- if (!integrationId) {
93
- return null;
94
- }
95
- return ["attioObjects", integrationId];
96
- };
97
- export const allRunHistoryKey = (params) => {
98
- if (!params || Object.keys(params).length === 0) {
99
- return ["allRunHistory"];
100
- }
101
- const sortedKeys = Object.keys(params).sort();
102
- const sortedParams = {};
103
- for (const key of sortedKeys) {
104
- const value = params[key];
105
- if (value !== undefined) {
106
- sortedParams[key] = value;
107
- }
108
- }
109
- return ["allRunHistory", JSON.stringify(sortedParams)];
110
- };
111
- export const runHistoryKey = (agentId, params) => {
112
- if (!params || Object.keys(params).length === 0) {
113
- return ["runHistory", agentId];
114
- }
115
- // Yea we may need to rethink how we do this. I think it may be better to just fetch all params and fiter on the client.
116
- // But I see why it as done this way. It makes more sense if you support text search.
117
- const sortedKeys = Object.keys(params).sort();
118
- const sortedParams = {};
119
- for (const key of sortedKeys) {
120
- const value = params[key];
121
- if (value !== undefined) {
122
- sortedParams[key] = value;
123
- }
124
- }
125
- const serializedParams = JSON.stringify(sortedParams);
126
- return ["runHistory", agentId, serializedParams];
127
- };
128
- export const recentAgentsKey = (limit) => {
129
- if (limit !== undefined) {
130
- return ["recentAgents", limit];
131
- }
132
- return ["recentAgents"];
133
- };
134
- export const statsKey = (timezone, interval) => {
135
- if (!interval) {
136
- return ["stats", timezone];
137
- }
138
- return ["stats", timezone, interval];
139
- };
140
- export const agentListKey = ({ page = 1, limit = 25, isActive, search } = {}) => ["agents", { page, limit, isActive, search }];
141
- export const agentDetailKey = (id) => {
142
- if (!id)
143
- return null;
144
- return ["agent", { id }];
145
- };
146
- export const agentImprovementsKey = (agentId) => {
147
- if (!agentId)
148
- return null;
149
- return ["agentImprovements", { agentId }];
150
- };
151
- export const builderChatHistoryKey = (sessionId) => {
152
- if (!sessionId)
153
- return null;
154
- return ["builderChatHistory", sessionId];
155
- };
156
- export const orgLogoKey = (organizationId) => {
157
- if (!organizationId)
158
- return null;
159
- return ["orgLogo", organizationId];
160
- };
161
- export const userByIdKey = (userId) => {
162
- if (!userId)
163
- return null;
164
- return ["userById", userId];
165
- };
166
- //# sourceMappingURL=InvalidationKeys.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvalidationKeys.js","sourceRoot":"","sources":["../../src/shared/InvalidationKeys.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,cAAc,GAAG,GAAsB,EAAE,CAAC,CAAC,aAAa,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAsB,EAAE,CAAC,CAAC,mBAAmB,CAAC,CAAA;AAElF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAsB,EAAE,CAAC,CAAC,aAAa,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAsB,EAAE,CAAC,CAAC,cAAc,CAAC,CAAA;AAExE,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAsB,EAAE,CAAC,CAAC,0BAA0B,CAAC,CAAA;AAEhG,MAAM,CAAC,MAAM,YAAY,GAAG,G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C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAiC,EAAoC,EAAE;IAC/F,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IACxB,OAAO,CAAC,UAAU,EAAE,MAAM,CAAU,CAAA;AACxC,CAAC,CAAA"}
@@ -1,176 +0,0 @@
1
- import { EntityType } from "./Entities";
2
- import type { MultipleChoiceOption } from "./Survey";
3
- export declare enum ChangeEventType {
4
- CREATED = "CREATED",
5
- UPDATED = "UPDATED",
6
- ACTION_EXECUTED = "ACTION_EXECUTED"
7
- }
8
- export type SharedErrorContext = {
9
- error: Error | unknown;
10
- };
11
- export type ChangedItem = {
12
- type_name: EntityType;
13
- id: string;
14
- change_event_type: ChangeEventType;
15
- };
16
- /** Run-level / agent-level error (e.g. context window exceeded). Use optional code for specific UI handling. */
17
- export type RunError = {
18
- error: string;
19
- code?: string;
20
- timestamp: number;
21
- };
22
- export type Cancelled = {
23
- reason?: string;
24
- timestamp: number;
25
- };
26
- export type FunctionCall = {
27
- function_name: string;
28
- result: string;
29
- step_id: string;
30
- };
31
- export type ModelEvent = (({
32
- type: "ToolApprovalResponse";
33
- } & ToolApprovalResponse) | ({
34
- type: "ToolApprovalRequest";
35
- } & ToolApprovalRequest) | ({
36
- type: "ToolCallGenerating";
37
- } & ToolCallGenerating) | ({
38
- type: "ToolCall";
39
- } & ToolCall) | ({
40
- type: "ToolCallComplete";
41
- } & ToolCallComplete) | ({
42
- type: "TextDelta";
43
- } & TextDelta) | ({
44
- type: "RunError";
45
- } & RunError) | ({
46
- type: "Cancelled";
47
- } & Cancelled) | ({
48
- type: "NaturalStop";
49
- } & NaturalStop) | ({
50
- type: "FilterResult";
51
- } & FilterResult) | ({
52
- type: "UserMessage";
53
- } & UserMessage) | ({
54
- type: "Thinking";
55
- } & Thinking) | ({
56
- type: "Snippet";
57
- } & {
58
- snippet: ChatSnippet;
59
- })) & {
60
- timestamp: number;
61
- };
62
- export type NaturalStop = {
63
- step_id: string;
64
- timestamp: number;
65
- };
66
- export type ModelRequest = ({
67
- type: "SendModelRequest";
68
- } & SendModelRequest) | ({
69
- type: "ToolApprovalResponse";
70
- } & ToolApprovalResponse);
71
- export type SendModelRequest = {
72
- user_message: string;
73
- timezone: string;
74
- ui_state?: string;
75
- client_turn_id: string;
76
- template_id?: string;
77
- };
78
- export type ToolApprovalResponse = {
79
- step_id: string;
80
- approved: boolean;
81
- rejection_reason?: string;
82
- timestamp: number;
83
- };
84
- export type ToolApprovalRequest = {
85
- step_id: string;
86
- name: string;
87
- arguments: string;
88
- timestamp: number;
89
- };
90
- export type TextDelta = {
91
- delta: string;
92
- step_id: string;
93
- timestamp: number;
94
- };
95
- export type ToolCallGenerating = {
96
- tool_name: string;
97
- step_id: string;
98
- timestamp: number;
99
- };
100
- export type ToolCall = {
101
- summary: string;
102
- step_id: string;
103
- parameters: string;
104
- integration: string;
105
- timestamp: number;
106
- };
107
- export type Thinking = {
108
- step_id: string;
109
- timestamp: number;
110
- };
111
- export declare enum ToolCallExecutionStatus {
112
- COMPLETED = "completed",
113
- INCOMPLETE = "incomplete",
114
- FAILED = "failed",
115
- UNKNOWN = "unknown"
116
- }
117
- export type ToolCallComplete = {
118
- tool_name: string;
119
- timestamp: number;
120
- status: ToolCallExecutionStatus;
121
- step_id: string;
122
- changed_items: ChangedItem[];
123
- integration: string;
124
- url?: string;
125
- result?: string;
126
- errorContext?: SharedErrorContext;
127
- };
128
- export type FilterResult = {
129
- isRelevant: boolean;
130
- reason: string;
131
- confidence: number;
132
- step_id: string;
133
- timestamp: number;
134
- };
135
- export declare enum SandboxStage {
136
- DOWNLOADING_SOURCE = "downloading_source",
137
- BOOTING = "booting",
138
- INSTALLING_DEPENDENCIES = "installing_dependencies",
139
- INSTALLING_CLI = "installing_cli",
140
- RUNNING = "running"
141
- }
142
- export declare const SANDBOX_STAGE_LABELS: Record<SandboxStage, string>;
143
- export type UserMessage = {
144
- message: string;
145
- step_id: string;
146
- client_turn_id: string;
147
- timestamp: number;
148
- };
149
- export type SnippetVariant = {
150
- type: "button";
151
- label: string;
152
- url: string;
153
- } | {
154
- type: "integration_prompt";
155
- integration: string;
156
- message: string;
157
- stateToken?: string;
158
- } | {
159
- type: "navigate";
160
- path: string;
161
- } | {
162
- type: "multiple_choice";
163
- questionId: string;
164
- question: string;
165
- options: MultipleChoiceOption[];
166
- allowMultiple?: boolean;
167
- } | {
168
- type: "image";
169
- url: string;
170
- };
171
- export type ChatSnippet = {
172
- id?: string;
173
- step_id?: string;
174
- selectedValue?: string;
175
- } & SnippetVariant;
176
- //# sourceMappingURL=ModelEvents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModelEvents.d.ts","sourceRoot":"","sources":["../../src/shared/ModelEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,eAAe,oBAAoB;CACtC;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC7B,KAAK,EAAE,KAAK,GAAG,OAAO,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IAAE,SAAS,EAAE,UAAU,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,eAAe,CAAA;CAAE,CAAA;AAEnG,gHAAgH;AAChH,MAAM,MAAM,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAC1E,MAAM,MAAM,SAAS,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9D,MAAM,MAAM,YAAY,GAAG;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,MAA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AU,CAAC,EAAE,MAAM,CAAA;CAAE,GACzF;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,GAC3H;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAIpC,MAAM,MAAM,WAAW,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAAA"}
@@ -1,29 +0,0 @@
1
- export var ChangeEventType;
2
- (function (ChangeEventType) {
3
- ChangeEventType["CREATED"] = "CREATED";
4
- ChangeEventType["UPDATED"] = "UPDATED";
5
- ChangeEventType["ACTION_EXECUTED"] = "ACTION_EXECUTED";
6
- })(ChangeEventType || (ChangeEventType = {}));
7
- export var ToolCallExecutionStatus;
8
- (function (ToolCallExecutionStatus) {
9
- ToolCallExecutionStatus["COMPLETED"] = "completed";
10
- ToolCallExecutionStatus["INCOMPLETE"] = "incomplete";
11
- ToolCallExecutionStatus["FAILED"] = "failed";
12
- ToolCallExecutionStatus["UNKNOWN"] = "unknown";
13
- })(ToolCallExecutionStatus || (ToolCallExecutionStatus = {}));
14
- export var SandboxStage;
15
- (function (SandboxStage) {
16
- SandboxStage["DOWNLOADING_SOURCE"] = "downloading_source";
17
- SandboxStage["BOOTING"] = "booting";
18
- SandboxStage["INSTALLING_DEPENDENCIES"] = "installing_dependencies";
19
- SandboxStage["INSTALLING_CLI"] = "installing_cli";
20
- SandboxStage["RUNNING"] = "running";
21
- })(SandboxStage || (SandboxStage = {}));
22
- export const SANDBOX_STAGE_LABELS = {
23
- [SandboxStage.DOWNLOADING_SOURCE]: "Downloading source code",
24
- [SandboxStage.BOOTING]: "Booting sandbox",
25
- [SandboxStage.INSTALLING_DEPENDENCIES]: "Installing dependencies",
26
- [SandboxStage.INSTALLING_CLI]: "Installing CLI",
27
- [SandboxStage.RUNNING]: "Running agent"
28
- };
29
- //# sourceMappingURL=ModelEvents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModelEvents.js","sourceRoot":"","sources":["../../src/shared/ModelEvents.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,sDAAmC,CAAA;AACvC,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAgDD,MAAM,CAAN,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAC/B,kDAAuB,CAAA;IACvB,oDAAyB,CAAA;IACzB,4CAAiB,CAAA;IACjB,8CAAmB,CAAA;AACvB,CAAC,EALW,uBAAuB,KAAvB,uBAAuB,QAKlC;AAgBD,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACpB,yDAAyC,CAAA;IACzC,mCAAmB,CAAA;IACnB,mEAAmD,CAAA;IACnD,iDAAiC,CAAA;IACjC,mCAAmB,CAAA;AACvB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAiC;IAC9D,CAAC,YAAY,CAAC,kBAAkB,CAAC,EAAE,yBAAyB;IAC5D,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,iBAAiB;IACzC,CAAC,YAAY,CAAC,uBAAuB,CAAC,EAAE,yBAAyB;IACjE,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,gBAAgB;IAC/C,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,eAAe;CAC1C,CAAA"}
@@ -1,43 +0,0 @@
1
- import { RunHistoryActionType } from "./RunHistoryTypes";
2
- export interface NotificationDestination {
3
- id: string;
4
- type: NotificationDestinationType;
5
- isActive?: boolean;
6
- }
7
- export interface NotificationSettings {
8
- id: string;
9
- agentDefaultNotifications: RunHistoryActionType[];
10
- weeklyAgentImprovements: boolean;
11
- }
12
- export interface UpdateNotificationSettingsRequest {
13
- agentDefaultNotifications: RunHistoryActionType[];
14
- weeklyAgentImprovements: boolean;
15
- applyToAllAgents?: boolean;
16
- }
17
- export declare enum NotificationDestinationType {
18
- EMAIL = "email",
19
- SLACK = "slack"
20
- }
21
- export interface EmailNotificationDestination extends NotificationDestination {
22
- type: NotificationDestinationType.EMAIL;
23
- email: string;
24
- }
25
- export interface SlackNotificationDestination extends NotificationDestination {
26
- type: NotificationDestinationType.SLACK;
27
- integrationId: string;
28
- slackChannelId?: string;
29
- slackChannelName?: string;
30
- slackUserId?: string;
31
- slackUserName?: string;
32
- }
33
- export interface CreateNotificationDestinationRequest {
34
- type: NotificationDestinationType;
35
- email?: string;
36
- integrationId?: string;
37
- slackChannelId?: string;
38
- slackChannelName?: string;
39
- slackUserId?: string;
40
- slackUserName?: string;
41
- isActive?: boolean;
42
- }
43
- //# sourceMappingURL=Notifications.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Notifications.d.ts","sourceRoot":"","sources":["../../src/shared/Notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAExD,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,2BAA2B,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,yBAAyB,EAAE,oBAAoB,EAAE,CAAA;IACjD,uBAAuB,EAAE,OAAO,CAAA;CACnC;AAED,MAAM,WAAW,iCAAiC;IAC9C,yBAAyB,EAAE,oBAAoB,EAAE,CAAA;IACjD,uBAAuB,EAAE,OAAO,CAAA;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,oBAAY,2BAA2B;IACnC,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,MAAM,WAAW,4BAA6B,SAAQ,uBAAuB;IACzE,IAAI,EAAE,2BAA2B,CAAC,KAAK,CAAA;IACvC,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,4BAA6B,SAAQ,uBAAuB;IACzE,IAAI,EAAE,2BAA2B,CAAC,KAAK,CAAA;IACvC,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,oCAAoC;IACjD,IAAI,EAAE,2BAA2B,CAAA;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB"}
@@ -1,6 +0,0 @@
1
- export var NotificationDestinationType;
2
- (function (NotificationDestinationType) {
3
- NotificationDestinationType["EMAIL"] = "email";
4
- NotificationDestinationType["SLACK"] = "slack";
5
- })(NotificationDestinationType || (NotificationDestinationType = {}));
6
- //# sourceMappingURL=Notifications.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../../src/shared/Notifications.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACnC,8CAAe,CAAA;IACf,8CAAe,CAAA;AACnB,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,QAGtC"}
@@ -1,95 +0,0 @@
1
- import { ConfigType } from "./Configs";
2
- import { IntegrationType } from "./Integrations";
3
- import type { ModelEvent } from "./ModelEvents";
4
- import type { User } from "./types";
5
- export declare enum RunHistoryStatus {
6
- SUCCESS = "success",
7
- FAILED = "failed",
8
- CANCELLED = "cancelled",
9
- SKIPPED = "skipped",
10
- IN_PROGRESS = "in_progress",
11
- AWAITING_APPROVAL = "awaiting_approval"
12
- }
13
- export type RunHistoryDecisionAction = "processed" | "skipped";
14
- export declare const RUN_HISTORY_ACTION_TYPES: readonly ["create", "update", "delete", "read", "approve", "error"];
15
- export type RunHistoryActionType = (typeof RUN_HISTORY_ACTION_TYPES)[number];
16
- export type RunHistoryAction = {
17
- action: string;
18
- integration: IntegrationType;
19
- target: string;
20
- details: string;
21
- url?: string;
22
- step_id?: string;
23
- type: RunHistoryActionType;
24
- isReadOnly?: boolean;
25
- output_items?: Array<{
26
- output_item_id: string;
27
- output_item_type: ConfigType;
28
- }>;
29
- };
30
- export type RunHistoryActionWithId = RunHistoryAction & {
31
- id: string;
32
- };
33
- export type RunHistoryTrigger = {
34
- event: string;
35
- integration: IntegrationType;
36
- source: string;
37
- title?: string;
38
- subheader?: string;
39
- url?: string;
40
- };
41
- export type RunHistoryDecision = {
42
- action: RunHistoryDecisionAction;
43
- reasoning: string;
44
- };
45
- export type RunHistoryRecord = {
46
- id: string;
47
- agentId: string;
48
- timestamp: string;
49
- trigger: RunHistoryTrigger;
50
- filtered: boolean;
51
- decision: RunHistoryDecision;
52
- actions?: RunHistoryAction[];
53
- status: RunHistoryStatus;
54
- isManuallyTriggered: boolean;
55
- };
56
- export type GetRunHistoryParamsRequest = {
57
- agentId: string;
58
- };
59
- export type GetRunHistoryParams = {
60
- q?: string;
61
- start?: string;
62
- end?: string;
63
- status?: RunHistoryStatus[];
64
- page?: number;
65
- pageSize?: number;
66
- };
67
- export type GetRunHistoryResponse = {
68
- items: RunHistoryRecord[];
69
- page: number;
70
- pageSize: number;
71
- total: number;
72
- };
73
- export type RunHistoryRecordWithAgent = RunHistoryRecord & {
74
- agentName: string;
75
- };
76
- export type GetAllRunHistoryResponse = {
77
- items: RunHistoryRecordWithAgent[];
78
- page: number;
79
- pageSize: number;
80
- total: number;
81
- };
82
- export type RunHistoryModelEvent = ModelEvent & {
83
- id: string;
84
- };
85
- export type RunHistoryModelSocketEvent = {
86
- runId: string;
87
- agentId: string;
88
- runHistoryModelEvent: RunHistoryModelEvent;
89
- };
90
- export type TrackingParams = {
91
- runId: string;
92
- agentId: string;
93
- user: User;
94
- };
95
- //# sourceMappingURL=RunHistoryTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RunHistoryTypes.d.ts","sourceRoot":"","sources":["../../src/shared/RunHistoryTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEnC,oBAAY,gBAAgB;IACxB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;CAC1C;AAED,MAAM,MAAM,wBAAwB,GAAG,WAAW,GAAG,SAAS,CAAA;AAC9D,eAAO,MAAM,wBAAwB,qEAAsE,CAAA;AAC3G,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE5E,MAAM,MAAM,gBAAgB,GAAG;IAE3B,MAAM,EAAE,MAAM,CAAA;IAEd,WAAW,EAAE,eAAe,CAAA;IAE5B,MAAM,EAAE,MAAM,CAAA;IAEd,OAAO,EAAE,MAAM,CAAA;IAEf,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,OAA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CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,EAAE,gBAAgB,EAAE,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,GAAG;IACvD,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACnC,KAAK,EAAE,yBAAyB,EAAE,CAAA;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9D,MAAM,MAAM,0BAA0B,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,oBAAoB,EAAE,oBAAoB,CAAA;CAC7C,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;CACb,CAAA"}
@@ -1,11 +0,0 @@
1
- export var RunHistoryStatus;
2
- (function (RunHistoryStatus) {
3
- RunHistoryStatus["SUCCESS"] = "success";
4
- RunHistoryStatus["FAILED"] = "failed";
5
- RunHistoryStatus["CANCELLED"] = "cancelled";
6
- RunHistoryStatus["SKIPPED"] = "skipped";
7
- RunHistoryStatus["IN_PROGRESS"] = "in_progress";
8
- RunHistoryStatus["AWAITING_APPROVAL"] = "awaiting_approval";
9
- })(RunHistoryStatus || (RunHistoryStatus = {}));
10
- export const RUN_HISTORY_ACTION_TYPES = ["create", "update", "delete", "read", "approve", "error"];
11
- //# sourceMappingURL=RunHistoryTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RunHistoryTypes.js","sourceRoot":"","sources":["../../src/shared/RunHistoryTypes.ts"],"names":[],"mappings":"AAKA,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IACxB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;IACnB,+CAA2B,CAAA;IAC3B,2DAAuC,CAAA;AAC3C,CAAC,EAPW,gBAAgB,KAAhB,gBAAgB,QAO3B;AAGD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,CAAU,CAAA"}