@datalayer/agent-runtimes 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/lib/App.js +1 -1
- package/lib/agents/AgentDetails.d.ts +22 -1
- package/lib/agents/AgentDetails.js +34 -47
- package/lib/api/index.d.ts +0 -1
- package/lib/api/index.js +4 -2
- package/lib/chat/Chat.d.ts +5 -106
- package/lib/chat/Chat.js +4 -4
- package/lib/chat/ChatFloating.d.ts +7 -140
- package/lib/chat/ChatFloating.js +2 -2
- package/lib/chat/ChatPopupStandalone.d.ts +8 -47
- package/lib/chat/ChatPopupStandalone.js +3 -3
- package/lib/chat/ChatSidebar.d.ts +4 -69
- package/lib/chat/ChatSidebar.js +2 -2
- package/lib/chat/ChatStandalone.d.ts +4 -54
- package/lib/chat/ChatStandalone.js +3 -3
- package/lib/chat/base/ChatBase.js +1083 -157
- package/lib/chat/header/ChatHeaderBase.d.ts +11 -6
- package/lib/chat/header/ChatHeaderBase.js +18 -16
- package/lib/chat/indicators/McpStatusIndicator.d.ts +7 -4
- package/lib/chat/indicators/McpStatusIndicator.js +7 -32
- package/lib/chat/indicators/SandboxStatusIndicator.d.ts +4 -1
- package/lib/chat/indicators/SandboxStatusIndicator.js +9 -9
- package/lib/chat/indicators/SkillsStatusIndicator.d.ts +7 -0
- package/lib/chat/indicators/SkillsStatusIndicator.js +88 -0
- package/lib/chat/indicators/index.d.ts +1 -0
- package/lib/chat/indicators/index.js +1 -0
- package/lib/chat/messages/ChatMessageList.d.ts +1 -1
- package/lib/chat/messages/ChatMessageList.js +108 -113
- package/lib/chat/prompt/InputFooter.d.ts +19 -6
- package/lib/chat/prompt/InputFooter.js +71 -18
- package/lib/chat/prompt/InputPrompt.d.ts +3 -1
- package/lib/chat/prompt/InputPrompt.js +4 -4
- package/lib/chat/prompt/InputPromptFooter.js +1 -1
- package/lib/chat/prompt/InputPromptLexical.d.ts +3 -1
- package/lib/chat/prompt/InputPromptLexical.js +12 -5
- package/lib/chat/prompt/InputPromptText.d.ts +3 -1
- package/lib/chat/prompt/InputPromptText.js +2 -2
- package/lib/chat/tools/ToolApprovalBanner.js +1 -1
- package/lib/chat/tools/ToolCallDisplay.d.ts +3 -1
- package/lib/chat/tools/ToolCallDisplay.js +2 -2
- package/lib/chat/usage/TokenUsageBar.js +20 -2
- package/lib/client/AgentRuntimesClientContext.d.ts +53 -0
- package/lib/client/AgentRuntimesClientContext.js +55 -0
- package/lib/client/AgentsMixin.d.ts +0 -18
- package/lib/client/AgentsMixin.js +6 -30
- package/lib/client/IAgentRuntimesClient.d.ts +215 -0
- package/lib/client/IAgentRuntimesClient.js +5 -0
- package/lib/client/SdkAgentRuntimesClient.d.ts +151 -0
- package/lib/client/SdkAgentRuntimesClient.js +134 -0
- package/lib/client/index.d.ts +4 -1
- package/lib/client/index.js +3 -1
- package/lib/components/NotificationEventCard.js +5 -1
- package/lib/config/AgentConfiguration.js +3 -3
- package/lib/context/ContextDistribution.d.ts +3 -1
- package/lib/context/ContextDistribution.js +8 -27
- package/lib/context/ContextInspector.d.ts +3 -1
- package/lib/context/ContextInspector.js +19 -67
- package/lib/context/ContextPanel.d.ts +3 -1
- package/lib/context/ContextPanel.js +104 -64
- package/lib/context/ContextUsage.d.ts +3 -1
- package/lib/context/ContextUsage.js +3 -3
- package/lib/context/CostTracker.d.ts +9 -3
- package/lib/context/CostTracker.js +26 -47
- package/lib/context/CostUsageChart.d.ts +12 -0
- package/lib/context/CostUsageChart.js +378 -0
- package/lib/context/GraphFlowChart.d.ts +16 -0
- package/lib/context/GraphFlowChart.js +182 -0
- package/lib/context/TokenUsageChart.d.ts +8 -1
- package/lib/context/TokenUsageChart.js +349 -211
- package/lib/context/TurnGraphChart.d.ts +39 -0
- package/lib/context/TurnGraphChart.js +538 -0
- package/lib/context/otelWsPool.d.ts +20 -0
- package/lib/context/otelWsPool.js +69 -0
- package/lib/examples/A2UiComponentGalleryExample.d.ts +0 -17
- package/lib/examples/A2UiComponentGalleryExample.js +315 -522
- package/lib/examples/A2UiContactCardExample.d.ts +0 -18
- package/lib/examples/A2UiContactCardExample.js +154 -411
- package/lib/examples/A2UiRestaurantExample.d.ts +0 -30
- package/lib/examples/A2UiRestaurantExample.js +114 -212
- package/lib/examples/A2UiViewerExample.d.ts +0 -18
- package/lib/examples/A2UiViewerExample.js +283 -532
- package/lib/examples/AgUiBackendToolRenderingExample.js +1 -1
- package/lib/examples/AgUiHaikuGenUiExample.d.ts +1 -1
- package/lib/examples/AgUiHaikuGenUiExample.js +1 -1
- package/lib/examples/AgentCheckpointsExample.js +13 -27
- package/lib/examples/AgentCodemodeExample.d.ts +4 -6
- package/lib/examples/AgentCodemodeExample.js +591 -169
- package/lib/examples/AgentEvalsExample.js +12 -16
- package/lib/examples/AgentGuardrailsExample.js +370 -64
- package/lib/examples/AgentHooksExample.d.ts +3 -0
- package/lib/examples/AgentHooksExample.js +104 -0
- package/lib/examples/AgentMCPExample.d.ts +3 -0
- package/lib/examples/AgentMCPExample.js +480 -0
- package/lib/examples/AgentMemoryExample.js +13 -17
- package/lib/examples/AgentMonitoringExample.js +260 -199
- package/lib/examples/AgentNotificationsExample.js +49 -17
- package/lib/examples/AgentOtelExample.js +2 -3
- package/lib/examples/AgentOutputsExample.d.ts +11 -6
- package/lib/examples/AgentOutputsExample.js +382 -81
- package/lib/examples/AgentParametersExample.d.ts +3 -0
- package/lib/examples/AgentParametersExample.js +246 -0
- package/lib/examples/AgentSandboxExample.d.ts +2 -2
- package/lib/examples/AgentSandboxExample.js +68 -40
- package/lib/examples/AgentSkillsExample.js +91 -99
- package/lib/examples/{AgentspecExample.js → AgentSpecsExample.js} +10 -21
- package/lib/examples/AgentSubagentsExample.d.ts +14 -0
- package/lib/examples/AgentSubagentsExample.js +228 -0
- package/lib/examples/AgentToolApprovalsExample.js +29 -557
- package/lib/examples/AgentTriggersExample.js +819 -565
- package/lib/examples/ChatCustomExample.js +11 -24
- package/lib/examples/ChatExample.js +7 -24
- package/lib/examples/CopilotKitLexicalExample.js +2 -1
- package/lib/examples/CopilotKitNotebookExample.js +2 -1
- package/lib/examples/HomeExample.d.ts +15 -0
- package/lib/examples/HomeExample.js +77 -0
- package/lib/examples/Lexical2Example.js +4 -2
- package/lib/examples/{LexicalExample.d.ts → LexicalAgentExample.d.ts} +4 -4
- package/lib/examples/{LexicalExample.js → LexicalAgentExample.js} +65 -16
- package/lib/examples/{LexicalSidebarExample.d.ts → LexicalAgentSidebarExample.d.ts} +5 -5
- package/lib/examples/LexicalAgentSidebarExample.js +261 -0
- package/lib/examples/NotebookAgentExample.d.ts +9 -0
- package/lib/examples/NotebookAgentExample.js +192 -0
- package/lib/examples/{NotebookSidebarExample.d.ts → NotebookAgentSidebarExample.d.ts} +2 -2
- package/lib/examples/NotebookAgentSidebarExample.js +221 -0
- package/lib/examples/{DatalayerNotebookExample.d.ts → NotebookCollaborationExample.d.ts} +4 -4
- package/lib/examples/{DatalayerNotebookExample.js → NotebookCollaborationExample.js} +3 -3
- package/lib/examples/NotebookExample.d.ts +4 -7
- package/lib/examples/NotebookExample.js +14 -146
- package/lib/examples/components/AuthRequiredView.d.ts +6 -0
- package/lib/examples/components/AuthRequiredView.js +33 -0
- package/lib/examples/components/ExampleWrapper.d.ts +7 -0
- package/lib/examples/components/ExampleWrapper.js +25 -6
- package/lib/examples/{ag-ui → components}/haiku/HaikuDisplay.js +1 -1
- package/lib/examples/{ag-ui → components}/haiku/InlineHaikuCard.js +1 -1
- package/lib/examples/{ag-ui → components}/haiku/index.d.ts +1 -1
- package/lib/examples/{ag-ui → components}/haiku/index.js +1 -1
- package/lib/examples/components/index.d.ts +3 -0
- package/lib/examples/components/index.js +4 -0
- package/lib/examples/{ag-ui → components}/weather/index.d.ts +1 -1
- package/lib/examples/{ag-ui → components}/weather/index.js +1 -1
- package/lib/examples/example-selector.d.ts +17 -4
- package/lib/examples/example-selector.js +107 -41
- package/lib/examples/index.d.ts +9 -6
- package/lib/examples/index.js +9 -6
- package/lib/examples/main.js +217 -27
- package/lib/examples/utils/a2ui.d.ts +18 -0
- package/lib/examples/utils/a2ui.js +69 -0
- package/lib/examples/utils/a2uiMarkdownProvider.d.ts +7 -0
- package/lib/examples/utils/a2uiMarkdownProvider.js +9 -0
- package/lib/examples/utils/agentId.d.ts +18 -0
- package/lib/examples/utils/agentId.js +54 -0
- package/lib/examples/utils/agents/earthquake-detector.json +11 -11
- package/lib/examples/utils/agents/sales-forecaster.json +11 -11
- package/lib/examples/utils/agents/social-post-generator.json +11 -11
- package/lib/examples/utils/agents/stock-market.json +11 -11
- package/lib/examples/utils/examplesStore.js +82 -27
- package/lib/hooks/index.d.ts +8 -8
- package/lib/hooks/index.js +7 -7
- package/lib/hooks/useA2A.d.ts +2 -3
- package/lib/hooks/useAIAgentsWebSocket.d.ts +43 -4
- package/lib/hooks/useAIAgentsWebSocket.js +118 -12
- package/lib/hooks/useAcp.d.ts +1 -2
- package/lib/hooks/useAgUi.d.ts +1 -1
- package/lib/hooks/{useAgents.d.ts → useAgentRuntimes.d.ts} +39 -2
- package/lib/hooks/{useAgents.js → useAgentRuntimes.js} +125 -15
- package/lib/hooks/useAgentsCatalog.js +1 -1
- package/lib/hooks/useAgentsService.d.ts +2 -2
- package/lib/hooks/useAgentsService.js +7 -7
- package/lib/hooks/useCheckpoints.js +1 -1
- package/lib/hooks/useConfig.d.ts +4 -1
- package/lib/hooks/useConfig.js +10 -3
- package/lib/hooks/useContextSnapshot.d.ts +9 -4
- package/lib/hooks/useContextSnapshot.js +9 -37
- package/lib/hooks/useMonitoring.js +3 -0
- package/lib/hooks/useSandbox.d.ts +20 -8
- package/lib/hooks/useSandbox.js +105 -40
- package/lib/hooks/useSkills.d.ts +23 -5
- package/lib/hooks/useSkills.js +94 -39
- package/lib/hooks/useToolApprovals.d.ts +60 -36
- package/lib/hooks/useToolApprovals.js +318 -69
- package/lib/hooks/useVercelAI.d.ts +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -0
- package/lib/inference/index.d.ts +0 -1
- package/lib/middleware/index.d.ts +0 -1
- package/lib/protocols/AGUIAdapter.js +6 -0
- package/lib/protocols/VercelAIAdapter.d.ts +7 -0
- package/lib/protocols/VercelAIAdapter.js +59 -7
- package/lib/specs/agents/agents.d.ts +10 -0
- package/lib/specs/agents/agents.js +2139 -262
- package/lib/specs/agents/index.js +3 -1
- package/lib/specs/envvars.d.ts +1 -0
- package/lib/specs/envvars.js +38 -20
- package/lib/specs/evals.js +6 -6
- package/lib/specs/events.d.ts +3 -10
- package/lib/specs/events.js +127 -84
- package/lib/specs/frontendTools.js +2 -2
- package/lib/specs/guardrails.d.ts +0 -7
- package/lib/specs/guardrails.js +240 -159
- package/lib/specs/index.d.ts +1 -0
- package/lib/specs/index.js +1 -0
- package/lib/specs/mcpServers.js +35 -6
- package/lib/specs/memory.d.ts +0 -2
- package/lib/specs/memory.js +4 -17
- package/lib/specs/models.js +25 -5
- package/lib/specs/notifications.js +102 -18
- package/lib/specs/outputs.js +15 -9
- package/lib/specs/personas.d.ts +41 -0
- package/lib/specs/personas.js +168 -0
- package/lib/specs/skills.d.ts +2 -1
- package/lib/specs/skills.js +41 -23
- package/lib/specs/teams/index.js +3 -1
- package/lib/specs/teams/teams.js +468 -348
- package/lib/specs/tools.js +4 -4
- package/lib/specs/triggers.js +61 -11
- package/lib/stores/agentRuntimeStore.d.ts +204 -0
- package/lib/stores/agentRuntimeStore.js +636 -0
- package/lib/stores/index.d.ts +1 -1
- package/lib/stores/index.js +1 -1
- package/lib/tools/adapters/copilotkit/lexicalHooks.d.ts +1 -2
- package/lib/tools/adapters/copilotkit/lexicalHooks.js +1 -3
- package/lib/tools/adapters/copilotkit/notebookHooks.d.ts +1 -2
- package/lib/tools/adapters/copilotkit/notebookHooks.js +1 -3
- package/lib/tools/index.d.ts +0 -2
- package/lib/tools/index.js +0 -1
- package/lib/types/agentspecs.d.ts +50 -1
- package/lib/types/chat.d.ts +309 -8
- package/lib/types/context.d.ts +27 -0
- package/lib/types/cost.d.ts +2 -2
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.js +2 -0
- package/lib/types/mcp.d.ts +8 -0
- package/lib/types/models.d.ts +2 -2
- package/lib/types/personas.d.ts +25 -0
- package/lib/types/personas.js +5 -0
- package/lib/types/skills.d.ts +43 -1
- package/lib/types/stream.d.ts +110 -0
- package/lib/types/stream.js +36 -0
- package/lib/utils/utils.d.ts +9 -5
- package/lib/utils/utils.js +9 -5
- package/package.json +13 -9
- package/scripts/codegen/__pycache__/generate_agents.cpython-313.pyc +0 -0
- package/scripts/codegen/__pycache__/generate_events.cpython-313.pyc +0 -0
- package/scripts/codegen/__pycache__/versioning.cpython-313.pyc +0 -0
- package/scripts/codegen/generate_agents.py +102 -6
- package/scripts/codegen/generate_events.py +35 -13
- package/scripts/codegen/generate_personas.py +319 -0
- package/scripts/codegen/generate_skills.py +9 -9
- package/scripts/sync-jupyter.sh +26 -7
- package/lib/api/tool-approvals.d.ts +0 -62
- package/lib/api/tool-approvals.js +0 -145
- package/lib/examples/LexicalSidebarExample.js +0 -163
- package/lib/examples/NotebookSidebarExample.js +0 -119
- package/lib/examples/NotebookSimpleExample.d.ts +0 -6
- package/lib/examples/NotebookSimpleExample.js +0 -22
- package/lib/examples/ag-ui/index.d.ts +0 -10
- package/lib/examples/ag-ui/index.js +0 -16
- package/lib/hooks/useAgentsRegistry.d.ts +0 -10
- package/lib/hooks/useAgentsRegistry.js +0 -20
- package/lib/stores/agentsStore.d.ts +0 -123
- package/lib/stores/agentsStore.js +0 -270
- /package/lib/examples/{AgentspecExample.d.ts → AgentSpecsExample.d.ts} +0 -0
- /package/lib/examples/{ag-ui → components}/haiku/HaikuDisplay.d.ts +0 -0
- /package/lib/examples/{ag-ui → components}/haiku/InlineHaikuCard.d.ts +0 -0
- /package/lib/examples/{ag-ui → components}/weather/InlineWeatherCard.d.ts +0 -0
- /package/lib/examples/{ag-ui → components}/weather/InlineWeatherCard.js +0 -0
|
@@ -31,7 +31,9 @@ export function getAgentSpecs(agentId) {
|
|
|
31
31
|
*/
|
|
32
32
|
export function listAgentSpecs(prefix) {
|
|
33
33
|
const specs = Object.values(AGENT_SPECS);
|
|
34
|
-
return prefix !== undefined
|
|
34
|
+
return prefix !== undefined
|
|
35
|
+
? specs.filter(s => s.id.startsWith(prefix))
|
|
36
|
+
: specs;
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
39
|
* Collect all required environment variables for an agent spec.
|
package/lib/specs/envvars.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { EnvvarSpec } from '../types';
|
|
10
10
|
export declare const ALPHAVANTAGE_API_KEY_SPEC_0_0_1: EnvvarSpec;
|
|
11
|
+
export declare const DATALAYER_API_KEY_SPEC_0_0_1: EnvvarSpec;
|
|
11
12
|
export declare const GITHUB_TOKEN_SPEC_0_0_1: EnvvarSpec;
|
|
12
13
|
export declare const GOOGLE_OAUTH_CLIENT_ID_SPEC_0_0_1: EnvvarSpec;
|
|
13
14
|
export declare const GOOGLE_OAUTH_CLIENT_SECRET_SPEC_0_0_1: EnvvarSpec;
|
package/lib/specs/envvars.js
CHANGED
|
@@ -11,7 +11,17 @@ export const ALPHAVANTAGE_API_KEY_SPEC_0_0_1 = {
|
|
|
11
11
|
name: 'Alpha Vantage API Key',
|
|
12
12
|
description: 'API key for accessing Alpha Vantage financial market data and stock information. Provides real-time and historical stock prices, forex data, and cryptocurrency information.',
|
|
13
13
|
registrationUrl: 'https://www.alphavantage.co/support/#api-key',
|
|
14
|
-
tags: [
|
|
14
|
+
tags: ['authentication', 'api-key', 'finance', 'stocks', 'market-data'],
|
|
15
|
+
icon: 'key',
|
|
16
|
+
emoji: '🔑',
|
|
17
|
+
};
|
|
18
|
+
export const DATALAYER_API_KEY_SPEC_0_0_1 = {
|
|
19
|
+
id: 'DATALAYER_API_KEY',
|
|
20
|
+
version: '0.0.1',
|
|
21
|
+
name: 'Datalayer API Key',
|
|
22
|
+
description: 'API key for authenticating with Datalayer services, including datalayer-skills such as datalayer-whoami.',
|
|
23
|
+
registrationUrl: 'https://datalayer.app',
|
|
24
|
+
tags: ['authentication', 'api-key', 'datalayer', 'skill'],
|
|
15
25
|
icon: 'key',
|
|
16
26
|
emoji: '🔑',
|
|
17
27
|
};
|
|
@@ -21,7 +31,7 @@ export const GITHUB_TOKEN_SPEC_0_0_1 = {
|
|
|
21
31
|
name: 'GitHub Token',
|
|
22
32
|
description: 'GitHub API token for repository management and code operations. Required for GitHub MCP server and GitHub skill to interact with GitHub repositories programmatically.',
|
|
23
33
|
registrationUrl: 'https://github.com/settings/tokens',
|
|
24
|
-
tags: [
|
|
34
|
+
tags: ['authentication', 'token', 'github', 'git', 'mcp-server', 'skill'],
|
|
25
35
|
icon: 'key',
|
|
26
36
|
emoji: '🔑',
|
|
27
37
|
};
|
|
@@ -31,7 +41,7 @@ export const GOOGLE_OAUTH_CLIENT_ID_SPEC_0_0_1 = {
|
|
|
31
41
|
name: 'Google OAuth Client ID',
|
|
32
42
|
description: 'OAuth 2.0 client ID for Google Workspace authentication. Required for Google Drive, Gmail, Calendar, and Docs integration through the Google Workspace MCP server.',
|
|
33
43
|
registrationUrl: 'https://console.cloud.google.com/apis/credentials',
|
|
34
|
-
tags: [
|
|
44
|
+
tags: ['authentication', 'oauth', 'google', 'workspace', 'client-id'],
|
|
35
45
|
icon: 'key',
|
|
36
46
|
emoji: '🔑',
|
|
37
47
|
};
|
|
@@ -41,7 +51,14 @@ export const GOOGLE_OAUTH_CLIENT_SECRET_SPEC_0_0_1 = {
|
|
|
41
51
|
name: 'Google OAuth Client Secret',
|
|
42
52
|
description: 'OAuth 2.0 client secret for Google Workspace authentication. Used in conjunction with client ID for secure API access to Google services.',
|
|
43
53
|
registrationUrl: 'https://console.cloud.google.com/apis/credentials',
|
|
44
|
-
tags: [
|
|
54
|
+
tags: [
|
|
55
|
+
'authentication',
|
|
56
|
+
'oauth',
|
|
57
|
+
'google',
|
|
58
|
+
'workspace',
|
|
59
|
+
'client-secret',
|
|
60
|
+
'security',
|
|
61
|
+
],
|
|
45
62
|
icon: 'lock',
|
|
46
63
|
emoji: '🔒',
|
|
47
64
|
};
|
|
@@ -51,7 +68,7 @@ export const HF_TOKEN_SPEC_0_0_1 = {
|
|
|
51
68
|
name: 'Hugging Face Token',
|
|
52
69
|
description: 'Access token for Hugging Face API. Required for Hugging Face MCP server authentication. Create a READ token from your settings.',
|
|
53
70
|
registrationUrl: 'https://huggingface.co/settings/tokens',
|
|
54
|
-
tags: [
|
|
71
|
+
tags: ['authentication', 'api-key', 'huggingface', 'machine-learning'],
|
|
55
72
|
icon: 'key',
|
|
56
73
|
emoji: '🔑',
|
|
57
74
|
};
|
|
@@ -61,7 +78,7 @@ export const KAGGLE_TOKEN_SPEC_0_0_1 = {
|
|
|
61
78
|
name: 'Kaggle API Token',
|
|
62
79
|
description: 'API token for accessing Kaggle datasets, competitions, notebooks, and models. Required for Kaggle MCP server authentication.',
|
|
63
80
|
registrationUrl: 'https://www.kaggle.com/settings/account',
|
|
64
|
-
tags: [
|
|
81
|
+
tags: ['authentication', 'api-key', 'kaggle', 'data'],
|
|
65
82
|
icon: 'key',
|
|
66
83
|
emoji: '🔑',
|
|
67
84
|
};
|
|
@@ -71,7 +88,7 @@ export const SLACK_BOT_TOKEN_SPEC_0_0_1 = {
|
|
|
71
88
|
name: 'Slack Bot Token',
|
|
72
89
|
description: 'OAuth token for Slack bot authentication. Required for Slack MCP server to send messages, manage channels, and interact with workspace members.',
|
|
73
90
|
registrationUrl: 'https://api.slack.com/apps',
|
|
74
|
-
tags: [
|
|
91
|
+
tags: ['authentication', 'oauth', 'token', 'slack', 'messaging', 'bot'],
|
|
75
92
|
icon: 'key',
|
|
76
93
|
emoji: '🔑',
|
|
77
94
|
};
|
|
@@ -80,7 +97,7 @@ export const SLACK_CHANNEL_IDS_SPEC_0_0_1 = {
|
|
|
80
97
|
version: '0.0.1',
|
|
81
98
|
name: 'Slack Channel IDs',
|
|
82
99
|
description: 'Comma-separated list of Slack channel IDs that the bot is allowed to access. Restricts bot operations to specific channels for security and organization.',
|
|
83
|
-
tags: [
|
|
100
|
+
tags: ['configuration', 'slack', 'channels', 'identifier'],
|
|
84
101
|
icon: 'hash',
|
|
85
102
|
emoji: undefined,
|
|
86
103
|
};
|
|
@@ -90,7 +107,7 @@ export const SLACK_TEAM_ID_SPEC_0_0_1 = {
|
|
|
90
107
|
name: 'Slack Team ID',
|
|
91
108
|
description: 'Unique identifier for the Slack workspace (team). Required to specify which workspace the bot should connect to.',
|
|
92
109
|
registrationUrl: 'https://api.slack.com/apps',
|
|
93
|
-
tags: [
|
|
110
|
+
tags: ['configuration', 'slack', 'workspace', 'identifier'],
|
|
94
111
|
icon: 'organization',
|
|
95
112
|
emoji: '🏢',
|
|
96
113
|
};
|
|
@@ -100,7 +117,7 @@ export const TAVILY_API_KEY_SPEC_0_0_1 = {
|
|
|
100
117
|
name: 'Tavily API Key',
|
|
101
118
|
description: 'API key for Tavily web search and research capabilities. Required for web crawling, content extraction, and search operations.',
|
|
102
119
|
registrationUrl: 'https://tavily.com/api-keys',
|
|
103
|
-
tags: [
|
|
120
|
+
tags: ['authentication', 'api-key', 'search', 'web', 'research'],
|
|
104
121
|
icon: 'key',
|
|
105
122
|
emoji: '🔑',
|
|
106
123
|
};
|
|
@@ -108,16 +125,17 @@ export const TAVILY_API_KEY_SPEC_0_0_1 = {
|
|
|
108
125
|
// Environment Variable Catalog
|
|
109
126
|
// ============================================================================
|
|
110
127
|
export const ENVVAR_CATALOG = {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
128
|
+
ALPHAVANTAGE_API_KEY: ALPHAVANTAGE_API_KEY_SPEC_0_0_1,
|
|
129
|
+
DATALAYER_API_KEY: DATALAYER_API_KEY_SPEC_0_0_1,
|
|
130
|
+
GITHUB_TOKEN: GITHUB_TOKEN_SPEC_0_0_1,
|
|
131
|
+
GOOGLE_OAUTH_CLIENT_ID: GOOGLE_OAUTH_CLIENT_ID_SPEC_0_0_1,
|
|
132
|
+
GOOGLE_OAUTH_CLIENT_SECRET: GOOGLE_OAUTH_CLIENT_SECRET_SPEC_0_0_1,
|
|
133
|
+
HF_TOKEN: HF_TOKEN_SPEC_0_0_1,
|
|
134
|
+
KAGGLE_TOKEN: KAGGLE_TOKEN_SPEC_0_0_1,
|
|
135
|
+
SLACK_BOT_TOKEN: SLACK_BOT_TOKEN_SPEC_0_0_1,
|
|
136
|
+
SLACK_CHANNEL_IDS: SLACK_CHANNEL_IDS_SPEC_0_0_1,
|
|
137
|
+
SLACK_TEAM_ID: SLACK_TEAM_ID_SPEC_0_0_1,
|
|
138
|
+
TAVILY_API_KEY: TAVILY_API_KEY_SPEC_0_0_1,
|
|
121
139
|
};
|
|
122
140
|
function resolveEnvvarId(envvarId) {
|
|
123
141
|
if (envvarId in ENVVAR_CATALOG)
|
package/lib/specs/evals.js
CHANGED
|
@@ -69,7 +69,7 @@ export const SWE_BENCH_EVAL_SPEC_0_0_1 = {
|
|
|
69
69
|
id: 'swe-bench',
|
|
70
70
|
version: '0.0.1',
|
|
71
71
|
name: 'SWE-bench',
|
|
72
|
-
description:
|
|
72
|
+
description: "Real-world software engineering tasks from GitHub issues. Tests an agent's ability to understand bug reports and feature requests, then produce working code patches that pass existing test suites.",
|
|
73
73
|
category: 'Coding',
|
|
74
74
|
task_count: 2294,
|
|
75
75
|
metric: 'pass@1',
|
|
@@ -105,14 +105,14 @@ export const TRUTHFULQA_EVAL_SPEC_0_0_1 = {
|
|
|
105
105
|
// Eval Catalog
|
|
106
106
|
// ============================================================================
|
|
107
107
|
export const EVAL_CATALOG = {
|
|
108
|
-
|
|
108
|
+
agentbench: AGENTBENCH_EVAL_SPEC_0_0_1,
|
|
109
109
|
'gpqa-diamond': GPQA_DIAMOND_EVAL_SPEC_0_0_1,
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
humaneval: HUMANEVAL_EVAL_SPEC_0_0_1,
|
|
111
|
+
mmlu: MMLU_EVAL_SPEC_0_0_1,
|
|
112
112
|
'swe-bench-verified': SWE_BENCH_VERIFIED_EVAL_SPEC_0_0_1,
|
|
113
113
|
'swe-bench': SWE_BENCH_EVAL_SPEC_0_0_1,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
toolbench: TOOLBENCH_EVAL_SPEC_0_0_1,
|
|
115
|
+
truthfulqa: TRUTHFULQA_EVAL_SPEC_0_0_1,
|
|
116
116
|
};
|
|
117
117
|
export function getEvalSpecs() {
|
|
118
118
|
return Object.values(EVAL_CATALOG);
|
package/lib/specs/events.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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;
|
package/lib/specs/events.js
CHANGED
|
@@ -5,47 +5,69 @@
|
|
|
5
5
|
// ============================================================================
|
|
6
6
|
// Event Definitions
|
|
7
7
|
// ============================================================================
|
|
8
|
-
export const
|
|
9
|
-
id: 'agent-
|
|
8
|
+
export const AGENT_ENDED_EVENT_SPEC_0_0_1 = {
|
|
9
|
+
id: 'agent-ended',
|
|
10
10
|
version: '0.0.1',
|
|
11
|
-
name: 'Agent
|
|
12
|
-
description: 'Emitted when an agent
|
|
13
|
-
kind: 'agent-
|
|
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
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
{
|
|
87
|
-
|
|
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
|
-
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
|
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-
|
|
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: [
|
|
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: [
|
|
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.
|