@datalayer/agent-runtimes 1.0.4 → 1.0.6

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 (299) hide show
  1. package/README.md +182 -1
  2. package/lib/AgentNode.d.ts +3 -0
  3. package/lib/AgentNode.js +676 -0
  4. package/lib/App.js +1 -1
  5. package/lib/agent-node/themeStore.d.ts +3 -0
  6. package/lib/agent-node/themeStore.js +156 -0
  7. package/lib/agent-node-main.d.ts +1 -0
  8. package/lib/agent-node-main.js +14 -0
  9. package/lib/agents/AgentDetails.d.ts +22 -1
  10. package/lib/agents/AgentDetails.js +34 -47
  11. package/lib/api/index.d.ts +0 -1
  12. package/lib/api/index.js +4 -2
  13. package/lib/chat/Chat.d.ts +5 -106
  14. package/lib/chat/Chat.js +20 -14
  15. package/lib/chat/ChatFloating.d.ts +7 -140
  16. package/lib/chat/ChatFloating.js +3 -3
  17. package/lib/chat/ChatPopupStandalone.d.ts +8 -47
  18. package/lib/chat/ChatPopupStandalone.js +3 -3
  19. package/lib/chat/ChatSidebar.d.ts +4 -69
  20. package/lib/chat/ChatSidebar.js +83 -51
  21. package/lib/chat/ChatStandalone.d.ts +4 -54
  22. package/lib/chat/ChatStandalone.js +3 -3
  23. package/lib/chat/base/ChatBase.js +1414 -174
  24. package/lib/chat/display/FloatingBrandButton.js +8 -1
  25. package/lib/chat/header/ChatHeader.d.ts +3 -1
  26. package/lib/chat/header/ChatHeader.js +15 -12
  27. package/lib/chat/header/ChatHeaderBase.d.ts +30 -5
  28. package/lib/chat/header/ChatHeaderBase.js +41 -16
  29. package/lib/chat/indicators/McpStatusIndicator.d.ts +7 -4
  30. package/lib/chat/indicators/McpStatusIndicator.js +7 -32
  31. package/lib/chat/indicators/SandboxStatusIndicator.d.ts +4 -1
  32. package/lib/chat/indicators/SandboxStatusIndicator.js +91 -56
  33. package/lib/chat/indicators/SkillsStatusIndicator.d.ts +7 -0
  34. package/lib/chat/indicators/SkillsStatusIndicator.js +88 -0
  35. package/lib/chat/indicators/index.d.ts +1 -0
  36. package/lib/chat/indicators/index.js +1 -0
  37. package/lib/chat/messages/ChatMessageList.d.ts +1 -1
  38. package/lib/chat/messages/ChatMessageList.js +154 -114
  39. package/lib/chat/messages/ChatMessages.js +6 -2
  40. package/lib/chat/prompt/InputFooter.d.ts +21 -6
  41. package/lib/chat/prompt/InputFooter.js +76 -20
  42. package/lib/chat/prompt/InputPrompt.d.ts +5 -1
  43. package/lib/chat/prompt/InputPrompt.js +4 -4
  44. package/lib/chat/prompt/InputPromptFooter.d.ts +3 -1
  45. package/lib/chat/prompt/InputPromptFooter.js +3 -3
  46. package/lib/chat/prompt/InputPromptLexical.d.ts +3 -1
  47. package/lib/chat/prompt/InputPromptLexical.js +12 -5
  48. package/lib/chat/prompt/InputPromptText.d.ts +3 -1
  49. package/lib/chat/prompt/InputPromptText.js +2 -2
  50. package/lib/chat/tools/ToolApprovalBanner.js +1 -1
  51. package/lib/chat/tools/ToolCallDisplay.d.ts +3 -1
  52. package/lib/chat/tools/ToolCallDisplay.js +2 -2
  53. package/lib/chat/usage/TokenUsageBar.js +20 -2
  54. package/lib/client/AgentRuntimesClientContext.d.ts +53 -0
  55. package/lib/client/AgentRuntimesClientContext.js +55 -0
  56. package/lib/client/AgentsMixin.d.ts +0 -18
  57. package/lib/client/AgentsMixin.js +20 -30
  58. package/lib/client/IAgentRuntimesClient.d.ts +215 -0
  59. package/lib/client/IAgentRuntimesClient.js +5 -0
  60. package/lib/client/SdkAgentRuntimesClient.d.ts +151 -0
  61. package/lib/client/SdkAgentRuntimesClient.js +134 -0
  62. package/lib/client/index.d.ts +4 -1
  63. package/lib/client/index.js +3 -1
  64. package/lib/components/NotificationEventCard.js +5 -1
  65. package/lib/config/AgentConfiguration.d.ts +22 -0
  66. package/lib/config/AgentConfiguration.js +319 -64
  67. package/lib/context/ContextDistribution.d.ts +3 -1
  68. package/lib/context/ContextDistribution.js +8 -27
  69. package/lib/context/ContextInspector.d.ts +3 -1
  70. package/lib/context/ContextInspector.js +19 -67
  71. package/lib/context/ContextPanel.d.ts +3 -1
  72. package/lib/context/ContextPanel.js +104 -64
  73. package/lib/context/ContextUsage.d.ts +3 -1
  74. package/lib/context/ContextUsage.js +3 -3
  75. package/lib/context/CostTracker.d.ts +9 -3
  76. package/lib/context/CostTracker.js +26 -47
  77. package/lib/context/CostUsageChart.d.ts +12 -0
  78. package/lib/context/CostUsageChart.js +378 -0
  79. package/lib/context/GraphFlowChart.d.ts +16 -0
  80. package/lib/context/GraphFlowChart.js +182 -0
  81. package/lib/context/TokenUsageChart.d.ts +8 -1
  82. package/lib/context/TokenUsageChart.js +349 -211
  83. package/lib/context/TurnGraphChart.d.ts +39 -0
  84. package/lib/context/TurnGraphChart.js +538 -0
  85. package/lib/context/otelWsPool.d.ts +20 -0
  86. package/lib/context/otelWsPool.js +69 -0
  87. package/lib/examples/A2UiComponentGalleryExample.d.ts +0 -17
  88. package/lib/examples/A2UiComponentGalleryExample.js +315 -522
  89. package/lib/examples/A2UiContactCardExample.d.ts +0 -18
  90. package/lib/examples/A2UiContactCardExample.js +154 -411
  91. package/lib/examples/A2UiRestaurantExample.d.ts +0 -30
  92. package/lib/examples/A2UiRestaurantExample.js +114 -212
  93. package/lib/examples/A2UiViewerExample.d.ts +0 -18
  94. package/lib/examples/A2UiViewerExample.js +283 -532
  95. package/lib/examples/AgUiBackendToolRenderingExample.js +1 -1
  96. package/lib/examples/AgUiHaikuGenUiExample.d.ts +1 -1
  97. package/lib/examples/AgUiHaikuGenUiExample.js +1 -1
  98. package/lib/examples/AgUiSharedStateExample.js +2 -1
  99. package/lib/examples/AgentCheckpointsExample.js +14 -28
  100. package/lib/examples/AgentCodemodeExample.d.ts +4 -6
  101. package/lib/examples/AgentCodemodeExample.js +603 -169
  102. package/lib/examples/AgentEvalsExample.js +339 -53
  103. package/lib/examples/AgentGuardrailsExample.js +383 -66
  104. package/lib/examples/AgentHooksExample.d.ts +3 -0
  105. package/lib/examples/AgentHooksExample.js +122 -0
  106. package/lib/examples/AgentInferenceProviderExample.d.ts +3 -0
  107. package/lib/examples/AgentInferenceProviderExample.js +329 -0
  108. package/lib/examples/AgentMCPExample.d.ts +3 -0
  109. package/lib/examples/AgentMCPExample.js +481 -0
  110. package/lib/examples/AgentMemoryExample.d.ts +1 -2
  111. package/lib/examples/AgentMemoryExample.js +78 -33
  112. package/lib/examples/AgentMonitoringExample.js +261 -200
  113. package/lib/examples/AgentNotificationsExample.d.ts +1 -2
  114. package/lib/examples/AgentNotificationsExample.js +114 -33
  115. package/lib/examples/AgentOtelExample.js +32 -42
  116. package/lib/examples/AgentOutputsExample.d.ts +11 -6
  117. package/lib/examples/AgentOutputsExample.js +433 -81
  118. package/lib/examples/AgentParametersExample.d.ts +3 -0
  119. package/lib/examples/AgentParametersExample.js +248 -0
  120. package/lib/examples/AgentSandboxExample.d.ts +3 -3
  121. package/lib/examples/AgentSandboxExample.js +74 -45
  122. package/lib/examples/AgentSkillsExample.js +95 -103
  123. package/lib/examples/AgentSubagentsExample.d.ts +14 -0
  124. package/lib/examples/AgentSubagentsExample.js +228 -0
  125. package/lib/examples/AgentToolApprovalsExample.js +49 -561
  126. package/lib/examples/AgentTriggersExample.js +823 -569
  127. package/lib/examples/{AgentspecExample.d.ts → AgentspecsExample.d.ts} +2 -2
  128. package/lib/examples/AgentspecsExample.js +1096 -0
  129. package/lib/examples/ChatCustomExample.js +16 -28
  130. package/lib/examples/ChatExample.js +13 -29
  131. package/lib/examples/CopilotKitLexicalExample.js +2 -1
  132. package/lib/examples/CopilotKitNotebookExample.js +2 -1
  133. package/lib/examples/HomeExample.d.ts +15 -0
  134. package/lib/examples/HomeExample.js +77 -0
  135. package/lib/examples/Lexical2Example.js +4 -2
  136. package/lib/examples/{LexicalExample.d.ts → LexicalAgentExample.d.ts} +4 -4
  137. package/lib/examples/{LexicalExample.js → LexicalAgentExample.js} +66 -17
  138. package/lib/examples/{LexicalSidebarExample.d.ts → LexicalAgentSidebarExample.d.ts} +5 -5
  139. package/lib/examples/LexicalAgentSidebarExample.js +261 -0
  140. package/lib/examples/NotebookAgentExample.d.ts +9 -0
  141. package/lib/examples/NotebookAgentExample.js +192 -0
  142. package/lib/examples/{NotebookSidebarExample.d.ts → NotebookAgentSidebarExample.d.ts} +2 -2
  143. package/lib/examples/NotebookAgentSidebarExample.js +221 -0
  144. package/lib/examples/{DatalayerNotebookExample.d.ts → NotebookCollaborationExample.d.ts} +4 -4
  145. package/lib/examples/{DatalayerNotebookExample.js → NotebookCollaborationExample.js} +3 -3
  146. package/lib/examples/NotebookExample.d.ts +4 -7
  147. package/lib/examples/NotebookExample.js +14 -146
  148. package/lib/examples/components/AuthRequiredView.d.ts +6 -0
  149. package/lib/examples/components/AuthRequiredView.js +33 -0
  150. package/lib/examples/components/ExampleWrapper.d.ts +9 -3
  151. package/lib/examples/components/ExampleWrapper.js +45 -9
  152. package/lib/examples/{ag-ui → components}/haiku/HaikuDisplay.js +1 -1
  153. package/lib/examples/{ag-ui → components}/haiku/InlineHaikuCard.js +1 -1
  154. package/lib/examples/{ag-ui → components}/haiku/index.d.ts +1 -1
  155. package/lib/examples/{ag-ui → components}/haiku/index.js +1 -1
  156. package/lib/examples/components/index.d.ts +3 -0
  157. package/lib/examples/components/index.js +4 -0
  158. package/lib/examples/{ag-ui → components}/weather/index.d.ts +1 -1
  159. package/lib/examples/{ag-ui → components}/weather/index.js +1 -1
  160. package/lib/examples/example-selector.d.ts +17 -4
  161. package/lib/examples/example-selector.js +108 -41
  162. package/lib/examples/index.d.ts +10 -6
  163. package/lib/examples/index.js +10 -6
  164. package/lib/examples/lexical/initial-content.json +6 -6
  165. package/lib/examples/main.js +257 -27
  166. package/lib/examples/utils/a2ui.d.ts +18 -0
  167. package/lib/examples/utils/a2ui.js +69 -0
  168. package/lib/examples/utils/a2uiMarkdownProvider.d.ts +7 -0
  169. package/lib/examples/utils/a2uiMarkdownProvider.js +9 -0
  170. package/lib/examples/utils/agentId.d.ts +18 -0
  171. package/lib/examples/utils/agentId.js +54 -0
  172. package/lib/examples/utils/agents/earthquake-detector.json +11 -11
  173. package/lib/examples/utils/agents/sales-forecaster.json +11 -11
  174. package/lib/examples/utils/agents/social-post-generator.json +11 -11
  175. package/lib/examples/utils/agents/stock-market.json +11 -11
  176. package/lib/examples/utils/examplesStore.js +82 -27
  177. package/lib/examples/utils/useExampleAgentRuntimesUrl.d.ts +5 -0
  178. package/lib/examples/utils/useExampleAgentRuntimesUrl.js +19 -0
  179. package/lib/hooks/index.d.ts +8 -8
  180. package/lib/hooks/index.js +7 -7
  181. package/lib/hooks/useA2A.d.ts +2 -3
  182. package/lib/hooks/useAIAgentsWebSocket.d.ts +43 -4
  183. package/lib/hooks/useAIAgentsWebSocket.js +153 -12
  184. package/lib/hooks/useAcp.d.ts +1 -2
  185. package/lib/hooks/useAgUi.d.ts +1 -1
  186. package/lib/hooks/{useAgents.d.ts → useAgentRuntimes.d.ts} +70 -4
  187. package/lib/hooks/{useAgents.js → useAgentRuntimes.js} +237 -32
  188. package/lib/hooks/useAgentsCatalog.js +1 -1
  189. package/lib/hooks/useAgentsService.d.ts +2 -2
  190. package/lib/hooks/useAgentsService.js +7 -7
  191. package/lib/hooks/useCheckpoints.js +1 -1
  192. package/lib/hooks/useConfig.d.ts +4 -1
  193. package/lib/hooks/useConfig.js +10 -3
  194. package/lib/hooks/useContextSnapshot.d.ts +9 -4
  195. package/lib/hooks/useContextSnapshot.js +9 -37
  196. package/lib/hooks/useMonitoring.js +3 -0
  197. package/lib/hooks/useSandbox.d.ts +20 -8
  198. package/lib/hooks/useSandbox.js +105 -40
  199. package/lib/hooks/useSkills.d.ts +23 -5
  200. package/lib/hooks/useSkills.js +94 -39
  201. package/lib/hooks/useToolApprovals.d.ts +60 -36
  202. package/lib/hooks/useToolApprovals.js +318 -69
  203. package/lib/hooks/useVercelAI.d.ts +1 -1
  204. package/lib/index.d.ts +2 -1
  205. package/lib/index.js +1 -0
  206. package/lib/inference/index.d.ts +0 -1
  207. package/lib/middleware/index.d.ts +0 -1
  208. package/lib/protocols/AGUIAdapter.js +6 -0
  209. package/lib/protocols/VercelAIAdapter.d.ts +7 -0
  210. package/lib/protocols/VercelAIAdapter.js +59 -7
  211. package/lib/specs/agents/agents.d.ts +21 -4
  212. package/lib/specs/agents/agents.js +2879 -316
  213. package/lib/specs/agents/index.js +3 -1
  214. package/lib/specs/benchmarks.d.ts +20 -0
  215. package/lib/specs/benchmarks.js +205 -0
  216. package/lib/specs/envvars.js +27 -20
  217. package/lib/specs/evals.d.ts +10 -9
  218. package/lib/specs/evals.js +128 -88
  219. package/lib/specs/events.d.ts +3 -10
  220. package/lib/specs/events.js +127 -84
  221. package/lib/specs/frontendTools.js +2 -2
  222. package/lib/specs/guardrails.d.ts +0 -7
  223. package/lib/specs/guardrails.js +240 -159
  224. package/lib/specs/mcpServers.js +35 -6
  225. package/lib/specs/memory.d.ts +0 -2
  226. package/lib/specs/memory.js +4 -17
  227. package/lib/specs/models.d.ts +0 -2
  228. package/lib/specs/models.js +20 -15
  229. package/lib/specs/notifications.js +102 -18
  230. package/lib/specs/outputs.js +15 -9
  231. package/lib/specs/personas.d.ts +41 -0
  232. package/lib/specs/personas.js +168 -0
  233. package/lib/specs/skills.d.ts +1 -1
  234. package/lib/specs/skills.js +23 -23
  235. package/lib/specs/teams/index.js +3 -1
  236. package/lib/specs/teams/teams.js +468 -348
  237. package/lib/specs/tools.js +4 -4
  238. package/lib/specs/triggers.js +61 -11
  239. package/lib/stores/agentRuntimeStore.d.ts +208 -0
  240. package/lib/stores/agentRuntimeStore.js +650 -0
  241. package/lib/stores/conversationStore.js +2 -2
  242. package/lib/stores/index.d.ts +1 -1
  243. package/lib/stores/index.js +1 -1
  244. package/lib/tools/adapters/copilotkit/lexicalHooks.d.ts +1 -2
  245. package/lib/tools/adapters/copilotkit/lexicalHooks.js +1 -3
  246. package/lib/tools/adapters/copilotkit/notebookHooks.d.ts +1 -2
  247. package/lib/tools/adapters/copilotkit/notebookHooks.js +1 -3
  248. package/lib/tools/index.d.ts +0 -2
  249. package/lib/tools/index.js +0 -1
  250. package/lib/types/agents-lifecycle.d.ts +18 -0
  251. package/lib/types/agents.d.ts +6 -0
  252. package/lib/types/agentspecs.d.ts +54 -1
  253. package/lib/types/benchmarks.d.ts +43 -0
  254. package/lib/types/benchmarks.js +5 -0
  255. package/lib/types/chat.d.ts +325 -8
  256. package/lib/types/context.d.ts +27 -0
  257. package/lib/types/cost.d.ts +2 -2
  258. package/lib/types/evals.d.ts +26 -17
  259. package/lib/types/index.d.ts +3 -0
  260. package/lib/types/index.js +3 -0
  261. package/lib/types/mcp.d.ts +8 -0
  262. package/lib/types/models.d.ts +2 -2
  263. package/lib/types/personas.d.ts +25 -0
  264. package/lib/types/personas.js +5 -0
  265. package/lib/types/skills.d.ts +43 -1
  266. package/lib/types/stream.d.ts +110 -0
  267. package/lib/types/stream.js +36 -0
  268. package/lib/utils/utils.d.ts +9 -5
  269. package/lib/utils/utils.js +9 -5
  270. package/package.json +19 -11
  271. package/scripts/codegen/__pycache__/generate_agents.cpython-313.pyc +0 -0
  272. package/scripts/codegen/__pycache__/generate_benchmarks.cpython-313.pyc +0 -0
  273. package/scripts/codegen/__pycache__/generate_evals.cpython-313.pyc +0 -0
  274. package/scripts/codegen/__pycache__/generate_events.cpython-313.pyc +0 -0
  275. package/scripts/codegen/__pycache__/versioning.cpython-313.pyc +0 -0
  276. package/scripts/codegen/generate_agents.py +187 -45
  277. package/scripts/codegen/generate_benchmarks.py +441 -0
  278. package/scripts/codegen/generate_evals.py +94 -16
  279. package/scripts/codegen/generate_events.py +35 -14
  280. package/scripts/codegen/generate_personas.py +319 -0
  281. package/scripts/codegen/generate_skills.py +9 -9
  282. package/scripts/sync-jupyter.sh +26 -7
  283. package/lib/api/tool-approvals.d.ts +0 -62
  284. package/lib/api/tool-approvals.js +0 -145
  285. package/lib/examples/AgentspecExample.js +0 -705
  286. package/lib/examples/LexicalSidebarExample.js +0 -163
  287. package/lib/examples/NotebookSidebarExample.js +0 -119
  288. package/lib/examples/NotebookSimpleExample.d.ts +0 -6
  289. package/lib/examples/NotebookSimpleExample.js +0 -22
  290. package/lib/examples/ag-ui/index.d.ts +0 -10
  291. package/lib/examples/ag-ui/index.js +0 -16
  292. package/lib/hooks/useAgentsRegistry.d.ts +0 -10
  293. package/lib/hooks/useAgentsRegistry.js +0 -20
  294. package/lib/stores/agentsStore.d.ts +0 -123
  295. package/lib/stores/agentsStore.js +0 -270
  296. /package/lib/examples/{ag-ui → components}/haiku/HaikuDisplay.d.ts +0 -0
  297. /package/lib/examples/{ag-ui → components}/haiku/InlineHaikuCard.d.ts +0 -0
  298. /package/lib/examples/{ag-ui → components}/weather/InlineWeatherCard.d.ts +0 -0
  299. /package/lib/examples/{ag-ui → components}/weather/InlineWeatherCard.js +0 -0
@@ -7,20 +7,13 @@
7
7
  * DO NOT EDIT MANUALLY - run 'make specs' to regenerate.
8
8
  */
9
9
  import type { EventSpec } from '../types';
10
- export declare const AGENT_ASSIGNED_EVENT_SPEC_0_0_1: EventSpec;
11
- export declare const AGENT_OUTPUT_EVENT_SPEC_0_0_1: EventSpec;
12
- export declare const AGENT_START_REQUESTED_EVENT_SPEC_0_0_1: EventSpec;
10
+ export declare const AGENT_ENDED_EVENT_SPEC_0_0_1: EventSpec;
13
11
  export declare const AGENT_STARTED_EVENT_SPEC_0_0_1: EventSpec;
14
- export declare const AGENT_TERMINATED_EVENT_SPEC_0_0_1: EventSpec;
15
- export declare const AGENT_TERMINATION_REQUESTED_EVENT_SPEC_0_0_1: EventSpec;
16
12
  export declare const TOOL_APPROVAL_REQUESTED_EVENT_SPEC_0_0_1: EventSpec;
17
- export declare const EVENT_KIND_AGENT_ASSIGNED = "agent-assigned";
18
- export declare const EVENT_KIND_AGENT_OUTPUT = "agent-output";
19
- export declare const EVENT_KIND_AGENT_START_REQUESTED = "agent-start-requested";
13
+ export declare const EVENT_KIND_AGENT_ENDED = "agent-ended";
20
14
  export declare const EVENT_KIND_AGENT_STARTED = "agent-started";
21
- export declare const EVENT_KIND_AGENT_TERMINATED = "agent-terminated";
22
- export declare const EVENT_KIND_AGENT_TERMINATION_REQUESTED = "agent-termination-requested";
23
15
  export declare const EVENT_KIND_TOOL_APPROVAL_REQUESTED = "tool-approval-requested";
16
+ export declare const EVENT_KIND_AGENT_ASSIGNED = "agent-assigned";
24
17
  export declare const EVENT_CATALOG: Record<string, EventSpec>;
25
18
  export declare function getEventSpecs(): EventSpec[];
26
19
  export declare function getEventSpec(eventId: string): EventSpec | undefined;
@@ -5,47 +5,69 @@
5
5
  // ============================================================================
6
6
  // Event Definitions
7
7
  // ============================================================================
8
- export const AGENT_ASSIGNED_EVENT_SPEC_0_0_1 = {
9
- id: 'agent-assigned',
8
+ export const AGENT_ENDED_EVENT_SPEC_0_0_1 = {
9
+ id: 'agent-ended',
10
10
  version: '0.0.1',
11
- name: 'Agent Assigned',
12
- description: 'Emitted when an agent runtime is assigned/configured by the companion through the MCP servers start API.',
13
- kind: 'agent-assigned',
11
+ name: 'Agent Ended',
12
+ description: 'Emitted when an agent finishes execution. Contains timing information, exit status, optional output summary, and error details if applicable.',
13
+ kind: 'agent-ended',
14
14
  fields: [
15
- { name: 'agent_runtime_id', label: 'Agent Runtime ID', type: 'string', required: true, description: 'Runtime pod or instance identifier.' },
16
- { name: 'assignment_source', label: 'Assignment Source', type: 'string', required: false, description: 'Source that initiated the assignment (for example companion).' },
17
- { name: 'assigned_at', label: 'Assigned At', type: 'string', required: false, description: 'ISO 8601 timestamp when assignment/configuration completed.' },
18
- { name: 'origin', label: 'Origin', type: 'string', required: false, description: 'Producer origin (endpoint, companion, runtime, or agent-runtime).' },
19
- ],
20
- };
21
- export const AGENT_OUTPUT_EVENT_SPEC_0_0_1 = {
22
- id: 'agent-output',
23
- version: '0.0.1',
24
- name: 'Agent Output',
25
- description: 'Emitted when an agent produces output. Contains timing information, exit status, optional output summary, and error details if applicable.',
26
- kind: 'agent-output',
27
- fields: [
28
- { name: 'agent_runtime_id', label: 'Agent Runtime ID', type: 'string', required: true, description: 'Runtime pod or instance identifier.' },
29
- { name: 'agent_spec_id', label: 'Agent Spec ID', type: 'string', required: true, description: 'Identifier of the agent specification that was executed.' },
30
- { name: 'started_at', label: 'Started At', type: 'string', required: true, description: 'ISO 8601 timestamp when the agent started.' },
31
- { name: 'ended_at', label: 'Ended At', type: 'string', required: true, description: 'ISO 8601 timestamp when the agent ended.' },
32
- { name: 'duration_ms', label: 'Duration (ms)', type: 'number', required: true, description: 'Total execution time in milliseconds.' },
33
- { name: 'exit_status', label: 'Exit Status', type: 'string', required: true, description: 'Final status of the agent run (e.g. completed, error).' },
34
- { name: 'outputs', label: 'Outputs', type: 'string', required: false, description: 'Summary of the agent output or generated artifacts.' },
35
- { name: 'error_message', label: 'Error Message', type: 'string', required: false, description: 'Error description if the agent run failed.' },
36
- { name: 'origin', label: 'Origin', type: 'string', required: false, description: 'Producer origin (endpoint, companion, runtime, or agent-runtime).' },
37
- ],
38
- };
39
- export const AGENT_START_REQUESTED_EVENT_SPEC_0_0_1 = {
40
- id: 'agent-start-requested',
41
- version: '0.0.1',
42
- name: 'Agent Start Requested',
43
- description: 'Emitted when the API endpoint receives a request to start an agent runtime.',
44
- kind: 'agent-start-requested',
45
- fields: [
46
- { name: 'agent_runtime_id', label: 'Agent Runtime ID', type: 'string', required: false, description: 'Runtime pod or instance identifier.' },
47
- { name: 'started_at', label: 'Requested At', type: 'string', required: false, description: 'ISO 8601 timestamp when the start was requested.' },
48
- { name: 'origin', label: 'Origin', type: 'string', required: false, description: 'Producer origin (endpoint, companion, runtime, or agent-runtime).' },
15
+ {
16
+ name: 'agent_runtime_id',
17
+ label: 'Agent Runtime ID',
18
+ type: 'string',
19
+ required: true,
20
+ description: 'Runtime pod or instance identifier.',
21
+ },
22
+ {
23
+ name: 'agent_spec_id',
24
+ label: 'Agent Spec ID',
25
+ type: 'string',
26
+ required: true,
27
+ description: 'Identifier of the agent specification that was executed.',
28
+ },
29
+ {
30
+ name: 'started_at',
31
+ label: 'Started At',
32
+ type: 'string',
33
+ required: true,
34
+ description: 'ISO 8601 timestamp when the agent started.',
35
+ },
36
+ {
37
+ name: 'ended_at',
38
+ label: 'Ended At',
39
+ type: 'string',
40
+ required: true,
41
+ description: 'ISO 8601 timestamp when the agent ended.',
42
+ },
43
+ {
44
+ name: 'duration_ms',
45
+ label: 'Duration (ms)',
46
+ type: 'number',
47
+ required: true,
48
+ description: 'Total execution time in milliseconds.',
49
+ },
50
+ {
51
+ name: 'exit_status',
52
+ label: 'Exit Status',
53
+ type: 'string',
54
+ required: true,
55
+ description: 'Final status of the agent run (e.g. completed, error).',
56
+ },
57
+ {
58
+ name: 'outputs',
59
+ label: 'Outputs',
60
+ type: 'string',
61
+ required: false,
62
+ description: 'Summary of the agent output or generated artifacts.',
63
+ },
64
+ {
65
+ name: 'error_message',
66
+ label: 'Error Message',
67
+ type: 'string',
68
+ required: false,
69
+ description: 'Error description if the agent run failed.',
70
+ },
49
71
  ],
50
72
  };
51
73
  export const AGENT_STARTED_EVENT_SPEC_0_0_1 = {
@@ -55,36 +77,41 @@ export const AGENT_STARTED_EVENT_SPEC_0_0_1 = {
55
77
  description: 'Emitted when an agent begins execution. Contains the runtime identifier, agent spec, trigger type, and the prompt being executed.',
56
78
  kind: 'agent-started',
57
79
  fields: [
58
- { name: 'agent_runtime_id', label: 'Agent Runtime ID', type: 'string', required: true, description: 'Runtime pod or instance identifier.' },
59
- { name: 'agent_spec_id', label: 'Agent Spec ID', type: 'string', required: true, description: 'Identifier of the agent specification being executed.' },
60
- { name: 'started_at', label: 'Started At', type: 'string', required: true, description: 'ISO 8601 timestamp when the agent started.' },
61
- { name: 'trigger_type', label: 'Trigger Type', type: 'string', required: true, description: 'Type of trigger that launched the agent (e.g. once, cron, webhook).' },
62
- { name: 'trigger_prompt', label: 'Trigger Prompt', type: 'string', required: false, description: 'The prompt passed to the agent by the trigger.' },
63
- { name: 'origin', label: 'Origin', type: 'string', required: false, description: 'Producer origin (endpoint, companion, runtime, or agent-runtime).' },
64
- ],
65
- };
66
- export const AGENT_TERMINATED_EVENT_SPEC_0_0_1 = {
67
- id: 'agent-terminated',
68
- version: '0.0.1',
69
- name: 'Agent Terminated',
70
- description: 'Emitted when an agent runtime is fully terminated.',
71
- kind: 'agent-terminated',
72
- fields: [
73
- { name: 'agent_runtime_id', label: 'Agent Runtime ID', type: 'string', required: true, description: 'Runtime pod or instance identifier.' },
74
- { name: 'ended_at', label: 'Ended At', type: 'string', required: false, description: 'ISO 8601 timestamp when the runtime termination completed.' },
75
- { name: 'origin', label: 'Origin', type: 'string', required: false, description: 'Producer origin (endpoint, companion, runtime, or agent-runtime).' },
76
- ],
77
- };
78
- export const AGENT_TERMINATION_REQUESTED_EVENT_SPEC_0_0_1 = {
79
- id: 'agent-termination-requested',
80
- version: '0.0.1',
81
- name: 'Agent Termination Requested',
82
- description: 'Emitted when the API endpoint receives a request to terminate an agent runtime.',
83
- kind: 'agent-termination-requested',
84
- fields: [
85
- { name: 'agent_runtime_id', label: 'Agent Runtime ID', type: 'string', required: true, description: 'Runtime pod or instance identifier.' },
86
- { name: 'reason', label: 'Reason', type: 'string', required: false, description: 'Optional reason associated with the termination request.' },
87
- { name: 'origin', label: 'Origin', type: 'string', required: false, description: 'Producer origin (endpoint, companion, runtime, or agent-runtime).' },
80
+ {
81
+ name: 'agent_runtime_id',
82
+ label: 'Agent Runtime ID',
83
+ type: 'string',
84
+ required: true,
85
+ description: 'Runtime pod or instance identifier.',
86
+ },
87
+ {
88
+ name: 'agent_spec_id',
89
+ label: 'Agent Spec ID',
90
+ type: 'string',
91
+ required: true,
92
+ description: 'Identifier of the agent specification being executed.',
93
+ },
94
+ {
95
+ name: 'started_at',
96
+ label: 'Started At',
97
+ type: 'string',
98
+ required: true,
99
+ description: 'ISO 8601 timestamp when the agent started.',
100
+ },
101
+ {
102
+ name: 'trigger_type',
103
+ label: 'Trigger Type',
104
+ type: 'string',
105
+ required: true,
106
+ description: 'Type of trigger that launched the agent (e.g. once, cron, webhook).',
107
+ },
108
+ {
109
+ name: 'trigger_prompt',
110
+ label: 'Trigger Prompt',
111
+ type: 'string',
112
+ required: false,
113
+ description: 'The prompt passed to the agent by the trigger.',
114
+ },
88
115
  ],
89
116
  };
90
117
  export const TOOL_APPROVAL_REQUESTED_EVENT_SPEC_0_0_1 = {
@@ -94,31 +121,47 @@ export const TOOL_APPROVAL_REQUESTED_EVENT_SPEC_0_0_1 = {
94
121
  description: 'Emitted when an agent invokes a tool that requires manual approval before execution. The agent pauses until the request is approved or rejected.',
95
122
  kind: 'tool-approval-requested',
96
123
  fields: [
97
- { name: 'agent_runtime_id', label: 'Agent Runtime ID', type: 'string', required: true, description: 'Runtime pod or instance identifier.' },
98
- { name: 'agent_spec_id', label: 'Agent Spec ID', type: 'string', required: false, description: 'Identifier of the agent specification requesting approval.' },
99
- { name: 'tool_name', label: 'Tool Name', type: 'string', required: true, description: 'Name of the tool requiring approval.' },
100
- { name: 'tool_args', label: 'Tool Arguments', type: 'string', required: false, description: 'JSON-serialized arguments passed to the tool.' },
101
- { name: 'origin', label: 'Origin', type: 'string', required: false, description: 'Producer origin (endpoint, companion, runtime, or agent-runtime).' },
124
+ {
125
+ name: 'agent_runtime_id',
126
+ label: 'Agent Runtime ID',
127
+ type: 'string',
128
+ required: true,
129
+ description: 'Runtime pod or instance identifier.',
130
+ },
131
+ {
132
+ name: 'agent_spec_id',
133
+ label: 'Agent Spec ID',
134
+ type: 'string',
135
+ required: false,
136
+ description: 'Identifier of the agent specification requesting approval.',
137
+ },
138
+ {
139
+ name: 'tool_name',
140
+ label: 'Tool Name',
141
+ type: 'string',
142
+ required: true,
143
+ description: 'Name of the tool requiring approval.',
144
+ },
145
+ {
146
+ name: 'tool_args',
147
+ label: 'Tool Arguments',
148
+ type: 'string',
149
+ required: false,
150
+ description: 'JSON-serialized arguments passed to the tool.',
151
+ },
102
152
  ],
103
153
  };
104
154
  // Event kind constants for programmatic use
105
- export const EVENT_KIND_AGENT_ASSIGNED = 'agent-assigned';
106
- export const EVENT_KIND_AGENT_OUTPUT = 'agent-output';
107
- export const EVENT_KIND_AGENT_START_REQUESTED = 'agent-start-requested';
155
+ export const EVENT_KIND_AGENT_ENDED = 'agent-ended';
108
156
  export const EVENT_KIND_AGENT_STARTED = 'agent-started';
109
- export const EVENT_KIND_AGENT_TERMINATED = 'agent-terminated';
110
- export const EVENT_KIND_AGENT_TERMINATION_REQUESTED = 'agent-termination-requested';
111
157
  export const EVENT_KIND_TOOL_APPROVAL_REQUESTED = 'tool-approval-requested';
158
+ export const EVENT_KIND_AGENT_ASSIGNED = 'agent-assigned';
112
159
  // ============================================================================
113
160
  // Event Catalog
114
161
  // ============================================================================
115
162
  export const EVENT_CATALOG = {
116
- 'agent-assigned': AGENT_ASSIGNED_EVENT_SPEC_0_0_1,
117
- 'agent-output': AGENT_OUTPUT_EVENT_SPEC_0_0_1,
118
- 'agent-start-requested': AGENT_START_REQUESTED_EVENT_SPEC_0_0_1,
163
+ 'agent-ended': AGENT_ENDED_EVENT_SPEC_0_0_1,
119
164
  'agent-started': AGENT_STARTED_EVENT_SPEC_0_0_1,
120
- 'agent-terminated': AGENT_TERMINATED_EVENT_SPEC_0_0_1,
121
- 'agent-termination-requested': AGENT_TERMINATION_REQUESTED_EVENT_SPEC_0_0_1,
122
165
  'tool-approval-requested': TOOL_APPROVAL_REQUESTED_EVENT_SPEC_0_0_1,
123
166
  };
124
167
  export function getEventSpecs() {
@@ -10,7 +10,7 @@ export const JUPYTER_NOTEBOOK_FRONTEND_TOOL_SPEC_0_0_1 = {
10
10
  version: '0.0.1',
11
11
  name: 'Jupyter Notebook',
12
12
  description: 'Frontend tools for interacting with Jupyter notebooks.',
13
- tags: ["frontend", "notebook", "jupyter"],
13
+ tags: ['frontend', 'notebook', 'jupyter'],
14
14
  enabled: true,
15
15
  toolset: 'all',
16
16
  icon: 'notebook',
@@ -21,7 +21,7 @@ export const LEXICAL_DOCUMENT_FRONTEND_TOOL_SPEC_0_0_1 = {
21
21
  version: '0.0.1',
22
22
  name: 'Lexical Document',
23
23
  description: 'Frontend tools for interacting with Lexical documents.',
24
- tags: ["frontend", "document", "lexical"],
24
+ tags: ['frontend', 'document', 'lexical'],
25
25
  enabled: true,
26
26
  toolset: 'all',
27
27
  icon: 'file',
@@ -7,19 +7,12 @@
7
7
  * DO NOT EDIT MANUALLY - run 'make specs' to regenerate.
8
8
  */
9
9
  import type { GuardrailSpec } from '../types';
10
- export declare const ASYNC_GUARDRAIL_POLICY_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
11
- export declare const BLOCKED_KEYWORDS_INTERNAL_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
12
10
  export declare const DATA_ENGINEERING_POWER_USER_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
13
11
  export declare const DEFAULT_PLATFORM_USER_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
14
12
  export declare const GITHUB_ACTIONS_DEPLOY_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
15
13
  export declare const GITHUB_CI_BOT_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
16
14
  export declare const GOOGLE_WORKSPACE_AGENT_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
17
- export declare const NO_REFUSALS_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
18
- export declare const PII_PROTECTION_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
19
- export declare const PROMPT_INJECTION_STRICT_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
20
15
  export declare const RESTRICTED_VIEWER_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
21
- export declare const SECRET_REDACTION_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
22
- export declare const TOOL_GUARD_STRICT_GUARDRAIL_SPEC_0_0_1: GuardrailSpec;
23
16
  export declare const GUARDRAIL_CATALOG: Record<string, GuardrailSpec>;
24
17
  /**
25
18
  * Map identity provider to an icon key for the UI.