@base44/superagent-native 0.0.2 → 0.0.3
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/lib/commonjs/AgentSettingsPanel.js +123 -47
- package/lib/commonjs/AgentSettingsPanel.js.map +1 -1
- package/lib/commonjs/AgentSphereIcon.js +14 -118
- package/lib/commonjs/AgentSphereIcon.js.map +1 -1
- package/lib/commonjs/AttachmentPickerStatusModal.js +3 -2
- package/lib/commonjs/AttachmentPickerStatusModal.js.map +1 -1
- package/lib/commonjs/ChannelsPanel.js +66 -44
- package/lib/commonjs/ChannelsPanel.js.map +1 -1
- package/lib/commonjs/ConversationChat.js +11 -2
- package/lib/commonjs/ConversationChat.js.map +1 -1
- package/lib/commonjs/ConversationComposer.js +8 -7
- package/lib/commonjs/ConversationComposer.js.map +1 -1
- package/lib/commonjs/ConversationScreen.js +2 -0
- package/lib/commonjs/ConversationScreen.js.map +1 -1
- package/lib/commonjs/EditorDrawer.js +54 -24
- package/lib/commonjs/EditorDrawer.js.map +1 -1
- package/lib/commonjs/FilesPanel.js +56 -20
- package/lib/commonjs/FilesPanel.js.map +1 -1
- package/lib/commonjs/RenameAgentModal.js +2 -1
- package/lib/commonjs/RenameAgentModal.js.map +1 -1
- package/lib/commonjs/ShareAgentModal.js +11 -10
- package/lib/commonjs/ShareAgentModal.js.map +1 -1
- package/lib/commonjs/ShareAgentModal.styles.js +2 -2
- package/lib/commonjs/ShareAgentModal.styles.js.map +1 -1
- package/lib/commonjs/SuperagentHomeScreen.js +27 -9
- package/lib/commonjs/SuperagentHomeScreen.js.map +1 -1
- package/lib/commonjs/ToolApprovalCard.js +72 -14
- package/lib/commonjs/ToolApprovalCard.js.map +1 -1
- package/lib/commonjs/ToolCallSummary.js +14 -9
- package/lib/commonjs/ToolCallSummary.js.map +1 -1
- package/lib/commonjs/agentSphereAssets.js +327 -0
- package/lib/commonjs/agentSphereAssets.js.map +1 -0
- package/lib/commonjs/agentSphereStyles.js +3 -3
- package/lib/commonjs/agentSphereStyles.js.map +1 -1
- package/lib/commonjs/apiClient.js +7 -0
- package/lib/commonjs/apiClient.js.map +1 -1
- package/lib/commonjs/composerStyles.js +2 -2
- package/lib/commonjs/composerStyles.js.map +1 -1
- package/lib/commonjs/connectorBrandIcons.generated.js +625 -0
- package/lib/commonjs/connectorBrandIcons.generated.js.map +1 -0
- package/lib/commonjs/connectorBrandIcons.js +3 -55
- package/lib/commonjs/connectorBrandIcons.js.map +1 -1
- package/lib/commonjs/connectorCatalog.js +19 -1
- package/lib/commonjs/connectorCatalog.js.map +1 -1
- package/lib/commonjs/conversationParts.js +5 -4
- package/lib/commonjs/conversationParts.js.map +1 -1
- package/lib/commonjs/conversationRuntime.js +120 -12
- package/lib/commonjs/conversationRuntime.js.map +1 -1
- package/lib/commonjs/conversationStyles.js +2 -1
- package/lib/commonjs/conversationStyles.js.map +1 -1
- package/lib/commonjs/editorShellStyles.js +6 -2
- package/lib/commonjs/editorShellStyles.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/markdownStyles.js +2 -2
- package/lib/commonjs/markdownStyles.js.map +1 -1
- package/lib/commonjs/messageActionStyles.js +2 -2
- package/lib/commonjs/messageActionStyles.js.map +1 -1
- package/lib/commonjs/realtimeClient.js +4 -1
- package/lib/commonjs/realtimeClient.js.map +1 -1
- package/lib/commonjs/renameAgentModalStyles.js +2 -2
- package/lib/commonjs/renameAgentModalStyles.js.map +1 -1
- package/lib/commonjs/screenParts.js +24 -41
- package/lib/commonjs/screenParts.js.map +1 -1
- package/lib/commonjs/styles.js +71 -60
- package/lib/commonjs/styles.js.map +1 -1
- package/lib/commonjs/superagentApiClient.js +63 -18
- package/lib/commonjs/superagentApiClient.js.map +1 -1
- package/lib/commonjs/theme.js +249 -0
- package/lib/commonjs/theme.js.map +1 -0
- package/lib/commonjs/useSuperagentConversation.js +133 -20
- package/lib/commonjs/useSuperagentConversation.js.map +1 -1
- package/lib/commonjs/useSuperagentRuntime.js +167 -82
- package/lib/commonjs/useSuperagentRuntime.js.map +1 -1
- package/lib/module/AgentSettingsPanel.js +125 -49
- package/lib/module/AgentSettingsPanel.js.map +1 -1
- package/lib/module/AgentSphereIcon.js +15 -118
- package/lib/module/AgentSphereIcon.js.map +1 -1
- package/lib/module/AttachmentPickerStatusModal.js +4 -3
- package/lib/module/AttachmentPickerStatusModal.js.map +1 -1
- package/lib/module/ChannelsPanel.js +67 -45
- package/lib/module/ChannelsPanel.js.map +1 -1
- package/lib/module/ConversationChat.js +11 -2
- package/lib/module/ConversationChat.js.map +1 -1
- package/lib/module/ConversationComposer.js +8 -7
- package/lib/module/ConversationComposer.js.map +1 -1
- package/lib/module/ConversationScreen.js +2 -0
- package/lib/module/ConversationScreen.js.map +1 -1
- package/lib/module/EditorDrawer.js +55 -25
- package/lib/module/EditorDrawer.js.map +1 -1
- package/lib/module/FilesPanel.js +56 -20
- package/lib/module/FilesPanel.js.map +1 -1
- package/lib/module/RenameAgentModal.js +2 -1
- package/lib/module/RenameAgentModal.js.map +1 -1
- package/lib/module/ShareAgentModal.js +11 -10
- package/lib/module/ShareAgentModal.js.map +1 -1
- package/lib/module/ShareAgentModal.styles.js +2 -2
- package/lib/module/ShareAgentModal.styles.js.map +1 -1
- package/lib/module/SuperagentHomeScreen.js +27 -9
- package/lib/module/SuperagentHomeScreen.js.map +1 -1
- package/lib/module/ToolApprovalCard.js +72 -14
- package/lib/module/ToolApprovalCard.js.map +1 -1
- package/lib/module/ToolCallSummary.js +14 -9
- package/lib/module/ToolCallSummary.js.map +1 -1
- package/lib/module/agentSphereAssets.js +323 -0
- package/lib/module/agentSphereAssets.js.map +1 -0
- package/lib/module/agentSphereStyles.js +3 -3
- package/lib/module/agentSphereStyles.js.map +1 -1
- package/lib/module/apiClient.js +7 -0
- package/lib/module/apiClient.js.map +1 -1
- package/lib/module/composerStyles.js +2 -2
- package/lib/module/composerStyles.js.map +1 -1
- package/lib/module/connectorBrandIcons.generated.js +621 -0
- package/lib/module/connectorBrandIcons.generated.js.map +1 -0
- package/lib/module/connectorBrandIcons.js +1 -53
- package/lib/module/connectorBrandIcons.js.map +1 -1
- package/lib/module/connectorCatalog.js +17 -0
- package/lib/module/connectorCatalog.js.map +1 -1
- package/lib/module/conversationParts.js +5 -4
- package/lib/module/conversationParts.js.map +1 -1
- package/lib/module/conversationRuntime.js +118 -12
- package/lib/module/conversationRuntime.js.map +1 -1
- package/lib/module/conversationStyles.js +3 -2
- package/lib/module/conversationStyles.js.map +1 -1
- package/lib/module/editorShellStyles.js +6 -2
- package/lib/module/editorShellStyles.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/markdownStyles.js +2 -2
- package/lib/module/markdownStyles.js.map +1 -1
- package/lib/module/messageActionStyles.js +2 -2
- package/lib/module/messageActionStyles.js.map +1 -1
- package/lib/module/realtimeClient.js +4 -1
- package/lib/module/realtimeClient.js.map +1 -1
- package/lib/module/renameAgentModalStyles.js +2 -2
- package/lib/module/renameAgentModalStyles.js.map +1 -1
- package/lib/module/screenParts.js +25 -42
- package/lib/module/screenParts.js.map +1 -1
- package/lib/module/styles.js +71 -60
- package/lib/module/styles.js.map +1 -1
- package/lib/module/superagentApiClient.js +63 -18
- package/lib/module/superagentApiClient.js.map +1 -1
- package/lib/module/theme.js +239 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/module/useSuperagentConversation.js +135 -22
- package/lib/module/useSuperagentConversation.js.map +1 -1
- package/lib/module/useSuperagentRuntime.js +167 -82
- package/lib/module/useSuperagentRuntime.js.map +1 -1
- package/lib/typescript/commonjs/AgentSettingsPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/AgentSphereIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/AttachmentPickerStatusModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ChannelsPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ConversationChat.d.ts +1 -1
- package/lib/typescript/commonjs/ConversationChat.d.ts.map +1 -1
- package/lib/typescript/commonjs/ConversationComposer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ConversationMessageList.d.ts +1 -1
- package/lib/typescript/commonjs/ConversationMessageList.d.ts.map +1 -1
- package/lib/typescript/commonjs/ConversationScreen.d.ts +2 -1
- package/lib/typescript/commonjs/ConversationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/EditorDrawer.d.ts +1 -1
- package/lib/typescript/commonjs/EditorDrawer.d.ts.map +1 -1
- package/lib/typescript/commonjs/FilesPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/RenameAgentModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ShareAgentModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ShareAgentModal.styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/SuperagentHomeScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ToolApprovalCard.d.ts +3 -3
- package/lib/typescript/commonjs/ToolApprovalCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/ToolCallSummary.d.ts +1 -1
- package/lib/typescript/commonjs/ToolCallSummary.d.ts.map +1 -1
- package/lib/typescript/commonjs/agentSphereAssets.d.ts +2 -0
- package/lib/typescript/commonjs/agentSphereAssets.d.ts.map +1 -0
- package/lib/typescript/commonjs/agentSphereStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/apiClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/composerStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/connectorBrandIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/connectorBrandIcons.generated.d.ts +2 -0
- package/lib/typescript/commonjs/connectorBrandIcons.generated.d.ts.map +1 -0
- package/lib/typescript/commonjs/connectorCatalog.d.ts +2 -0
- package/lib/typescript/commonjs/connectorCatalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/conversationParts.d.ts +1 -1
- package/lib/typescript/commonjs/conversationParts.d.ts.map +1 -1
- package/lib/typescript/commonjs/conversationRuntime.d.ts +6 -1
- package/lib/typescript/commonjs/conversationRuntime.d.ts.map +1 -1
- package/lib/typescript/commonjs/conversationStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/editorShellStyles.d.ts +4 -0
- package/lib/typescript/commonjs/editorShellStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/markdownStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/messageActionStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/realtimeClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/renameAgentModalStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/screenParts.d.ts +1 -1
- package/lib/typescript/commonjs/screenParts.d.ts.map +1 -1
- package/lib/typescript/commonjs/styles.d.ts +20 -11
- package/lib/typescript/commonjs/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/superagentApiClient.d.ts +2 -1
- package/lib/typescript/commonjs/superagentApiClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme.d.ts +36 -0
- package/lib/typescript/commonjs/theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/types.d.ts +16 -2
- package/lib/typescript/commonjs/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/useSuperagentConversation.d.ts +3 -2
- package/lib/typescript/commonjs/useSuperagentConversation.d.ts.map +1 -1
- package/lib/typescript/commonjs/useSuperagentRuntime.d.ts +2 -1
- package/lib/typescript/commonjs/useSuperagentRuntime.d.ts.map +1 -1
- package/lib/typescript/module/AgentSettingsPanel.d.ts.map +1 -1
- package/lib/typescript/module/AgentSphereIcon.d.ts.map +1 -1
- package/lib/typescript/module/AttachmentPickerStatusModal.d.ts.map +1 -1
- package/lib/typescript/module/ChannelsPanel.d.ts.map +1 -1
- package/lib/typescript/module/ConversationChat.d.ts +1 -1
- package/lib/typescript/module/ConversationChat.d.ts.map +1 -1
- package/lib/typescript/module/ConversationComposer.d.ts.map +1 -1
- package/lib/typescript/module/ConversationMessageList.d.ts +1 -1
- package/lib/typescript/module/ConversationMessageList.d.ts.map +1 -1
- package/lib/typescript/module/ConversationScreen.d.ts +2 -1
- package/lib/typescript/module/ConversationScreen.d.ts.map +1 -1
- package/lib/typescript/module/EditorDrawer.d.ts +1 -1
- package/lib/typescript/module/EditorDrawer.d.ts.map +1 -1
- package/lib/typescript/module/FilesPanel.d.ts.map +1 -1
- package/lib/typescript/module/RenameAgentModal.d.ts.map +1 -1
- package/lib/typescript/module/ShareAgentModal.d.ts.map +1 -1
- package/lib/typescript/module/ShareAgentModal.styles.d.ts.map +1 -1
- package/lib/typescript/module/SuperagentHomeScreen.d.ts.map +1 -1
- package/lib/typescript/module/ToolApprovalCard.d.ts +3 -3
- package/lib/typescript/module/ToolApprovalCard.d.ts.map +1 -1
- package/lib/typescript/module/ToolCallSummary.d.ts +1 -1
- package/lib/typescript/module/ToolCallSummary.d.ts.map +1 -1
- package/lib/typescript/module/agentSphereAssets.d.ts +2 -0
- package/lib/typescript/module/agentSphereAssets.d.ts.map +1 -0
- package/lib/typescript/module/agentSphereStyles.d.ts.map +1 -1
- package/lib/typescript/module/apiClient.d.ts.map +1 -1
- package/lib/typescript/module/composerStyles.d.ts.map +1 -1
- package/lib/typescript/module/connectorBrandIcons.d.ts.map +1 -1
- package/lib/typescript/module/connectorBrandIcons.generated.d.ts +2 -0
- package/lib/typescript/module/connectorBrandIcons.generated.d.ts.map +1 -0
- package/lib/typescript/module/connectorCatalog.d.ts +2 -0
- package/lib/typescript/module/connectorCatalog.d.ts.map +1 -1
- package/lib/typescript/module/conversationParts.d.ts +1 -1
- package/lib/typescript/module/conversationParts.d.ts.map +1 -1
- package/lib/typescript/module/conversationRuntime.d.ts +6 -1
- package/lib/typescript/module/conversationRuntime.d.ts.map +1 -1
- package/lib/typescript/module/conversationStyles.d.ts.map +1 -1
- package/lib/typescript/module/editorShellStyles.d.ts +4 -0
- package/lib/typescript/module/editorShellStyles.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/markdownStyles.d.ts.map +1 -1
- package/lib/typescript/module/messageActionStyles.d.ts.map +1 -1
- package/lib/typescript/module/realtimeClient.d.ts.map +1 -1
- package/lib/typescript/module/renameAgentModalStyles.d.ts.map +1 -1
- package/lib/typescript/module/screenParts.d.ts +1 -1
- package/lib/typescript/module/screenParts.d.ts.map +1 -1
- package/lib/typescript/module/styles.d.ts +20 -11
- package/lib/typescript/module/styles.d.ts.map +1 -1
- package/lib/typescript/module/superagentApiClient.d.ts +2 -1
- package/lib/typescript/module/superagentApiClient.d.ts.map +1 -1
- package/lib/typescript/module/theme.d.ts +36 -0
- package/lib/typescript/module/theme.d.ts.map +1 -0
- package/lib/typescript/module/types.d.ts +16 -2
- package/lib/typescript/module/types.d.ts.map +1 -1
- package/lib/typescript/module/useSuperagentConversation.d.ts +3 -2
- package/lib/typescript/module/useSuperagentConversation.d.ts.map +1 -1
- package/lib/typescript/module/useSuperagentRuntime.d.ts +2 -1
- package/lib/typescript/module/useSuperagentRuntime.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AgentSettingsPanel.tsx +118 -49
- package/src/AgentSphereIcon.tsx +11 -62
- package/src/AttachmentPickerStatusModal.tsx +4 -3
- package/src/ChannelsPanel.tsx +59 -39
- package/src/ConversationChat.tsx +12 -3
- package/src/ConversationComposer.tsx +7 -6
- package/src/ConversationMessageList.tsx +1 -1
- package/src/ConversationScreen.tsx +3 -0
- package/src/EditorDrawer.tsx +66 -41
- package/src/FilesPanel.tsx +48 -20
- package/src/RenameAgentModal.tsx +2 -1
- package/src/ShareAgentModal.styles.ts +2 -1
- package/src/ShareAgentModal.tsx +9 -8
- package/src/SuperagentHomeScreen.tsx +27 -7
- package/src/ToolApprovalCard.tsx +82 -14
- package/src/ToolCallSummary.tsx +18 -12
- package/src/agentSphereAssets.ts +325 -0
- package/src/agentSphereStyles.ts +3 -2
- package/src/apiClient.ts +7 -0
- package/src/composerStyles.ts +2 -1
- package/src/connectorBrandIcons.generated.ts +618 -0
- package/src/connectorBrandIcons.tsx +1 -53
- package/src/connectorCatalog.ts +24 -0
- package/src/conversationParts.tsx +6 -5
- package/src/conversationRuntime.ts +123 -12
- package/src/conversationStyles.ts +2 -1
- package/src/editorShellStyles.ts +6 -1
- package/src/index.ts +2 -0
- package/src/markdownStyles.ts +2 -1
- package/src/messageActionStyles.ts +2 -1
- package/src/realtimeClient.ts +7 -1
- package/src/renameAgentModalStyles.ts +2 -1
- package/src/screenParts.tsx +17 -29
- package/src/styles.ts +63 -54
- package/src/superagentApiClient.ts +68 -18
- package/src/theme.ts +254 -0
- package/src/types.ts +21 -2
- package/src/useSuperagentConversation.ts +141 -24
- package/src/useSuperagentRuntime.ts +165 -84
package/lib/commonjs/styles.js
CHANGED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.styles = void 0;
|
|
7
|
-
var
|
|
8
|
-
const styles = exports.styles =
|
|
7
|
+
var _theme = require("./theme.js");
|
|
8
|
+
const styles = exports.styles = (0, _theme.createThemedStyles)({
|
|
9
9
|
safeArea: {
|
|
10
10
|
flex: 1,
|
|
11
|
-
backgroundColor: '#
|
|
11
|
+
backgroundColor: '#000000'
|
|
12
12
|
},
|
|
13
13
|
container: {
|
|
14
14
|
paddingBottom: 34,
|
|
@@ -17,7 +17,7 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
17
17
|
},
|
|
18
18
|
homeTopBar: {
|
|
19
19
|
alignItems: 'center',
|
|
20
|
-
borderBottomColor: '#
|
|
20
|
+
borderBottomColor: '#101012',
|
|
21
21
|
borderBottomWidth: 1,
|
|
22
22
|
flexDirection: 'row',
|
|
23
23
|
minHeight: 62,
|
|
@@ -39,15 +39,19 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
39
39
|
minWidth: 0
|
|
40
40
|
},
|
|
41
41
|
topBarTitle: {
|
|
42
|
-
color: '#
|
|
42
|
+
color: '#F7F7F7',
|
|
43
43
|
fontSize: 17,
|
|
44
44
|
fontWeight: '900',
|
|
45
45
|
letterSpacing: 0,
|
|
46
46
|
lineHeight: 21
|
|
47
47
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
homeTitle: {
|
|
49
|
+
color: '#FAFAFA',
|
|
50
|
+
fontSize: 24,
|
|
51
|
+
fontWeight: '900',
|
|
52
|
+
marginBottom: 30,
|
|
53
|
+
marginTop: 60,
|
|
54
|
+
textAlign: 'center'
|
|
51
55
|
},
|
|
52
56
|
header: {
|
|
53
57
|
alignItems: 'center',
|
|
@@ -62,20 +66,20 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
62
66
|
marginLeft: 12
|
|
63
67
|
},
|
|
64
68
|
eyebrow: {
|
|
65
|
-
color: '#
|
|
69
|
+
color: '#8E8E93',
|
|
66
70
|
fontSize: 12,
|
|
67
71
|
fontWeight: '800',
|
|
68
72
|
marginTop: 2
|
|
69
73
|
},
|
|
70
74
|
title: {
|
|
71
|
-
color: '#
|
|
75
|
+
color: '#F7F7F7',
|
|
72
76
|
fontSize: 24,
|
|
73
77
|
fontWeight: '900',
|
|
74
78
|
letterSpacing: 0,
|
|
75
79
|
lineHeight: 29
|
|
76
80
|
},
|
|
77
81
|
subtitle: {
|
|
78
|
-
color: '#
|
|
82
|
+
color: '#A1A1AA',
|
|
79
83
|
fontSize: 14,
|
|
80
84
|
fontWeight: '600',
|
|
81
85
|
lineHeight: 20,
|
|
@@ -83,8 +87,8 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
83
87
|
},
|
|
84
88
|
headerAvatar: {
|
|
85
89
|
alignItems: 'center',
|
|
86
|
-
backgroundColor: '#
|
|
87
|
-
borderColor: '#
|
|
90
|
+
backgroundColor: '#151515',
|
|
91
|
+
borderColor: '#2A2A2A',
|
|
88
92
|
borderRadius: 22,
|
|
89
93
|
borderWidth: 1,
|
|
90
94
|
height: 44,
|
|
@@ -93,16 +97,16 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
93
97
|
},
|
|
94
98
|
loadingPanel: {
|
|
95
99
|
alignItems: 'center',
|
|
96
|
-
backgroundColor: '#
|
|
97
|
-
borderColor: '#
|
|
98
|
-
borderRadius:
|
|
100
|
+
backgroundColor: '#0B0B0C',
|
|
101
|
+
borderColor: '#242427',
|
|
102
|
+
borderRadius: 16,
|
|
99
103
|
borderWidth: 1,
|
|
100
104
|
padding: 32
|
|
101
105
|
},
|
|
102
106
|
heroPanel: {
|
|
103
|
-
backgroundColor: '#
|
|
104
|
-
borderColor: '#
|
|
105
|
-
borderRadius:
|
|
107
|
+
backgroundColor: '#0B0B0C',
|
|
108
|
+
borderColor: '#242427',
|
|
109
|
+
borderRadius: 16,
|
|
106
110
|
borderWidth: 1,
|
|
107
111
|
overflow: 'hidden',
|
|
108
112
|
padding: 14
|
|
@@ -114,28 +118,23 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
114
118
|
marginBottom: 16
|
|
115
119
|
},
|
|
116
120
|
heroLabel: {
|
|
117
|
-
color: '#
|
|
121
|
+
color: '#8E8E93',
|
|
118
122
|
fontSize: 11,
|
|
119
123
|
fontWeight: '900',
|
|
120
124
|
textTransform: 'uppercase'
|
|
121
125
|
},
|
|
122
126
|
agentCard: {
|
|
123
127
|
alignItems: 'flex-start',
|
|
124
|
-
flexDirection: 'row'
|
|
125
|
-
minHeight: 100
|
|
128
|
+
flexDirection: 'row'
|
|
126
129
|
},
|
|
127
130
|
avatar: {
|
|
128
131
|
alignItems: 'center',
|
|
129
|
-
backgroundColor: '#F4F4F5',
|
|
130
|
-
borderColor: '#E4E4E7',
|
|
131
|
-
borderRadius: 24,
|
|
132
|
-
borderWidth: 1,
|
|
133
132
|
height: 52,
|
|
134
133
|
justifyContent: 'center',
|
|
135
134
|
width: 52
|
|
136
135
|
},
|
|
137
136
|
avatarText: {
|
|
138
|
-
color: '#
|
|
137
|
+
color: '#F7F7F7',
|
|
139
138
|
fontSize: 18,
|
|
140
139
|
fontWeight: '900'
|
|
141
140
|
},
|
|
@@ -145,20 +144,20 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
145
144
|
minWidth: 0
|
|
146
145
|
},
|
|
147
146
|
agentName: {
|
|
148
|
-
color: '#
|
|
149
|
-
fontSize:
|
|
147
|
+
color: '#F7F7F7',
|
|
148
|
+
fontSize: 16,
|
|
150
149
|
fontWeight: '900',
|
|
151
|
-
lineHeight:
|
|
150
|
+
lineHeight: 20
|
|
152
151
|
},
|
|
153
152
|
agentDescription: {
|
|
154
|
-
color: '#
|
|
153
|
+
color: '#BDBDC2',
|
|
155
154
|
fontSize: 14,
|
|
156
155
|
fontWeight: '600',
|
|
157
156
|
lineHeight: 20,
|
|
158
157
|
marginTop: 7
|
|
159
158
|
},
|
|
160
159
|
chevron: {
|
|
161
|
-
color: '#
|
|
160
|
+
color: '#8E8E93',
|
|
162
161
|
fontSize: 20,
|
|
163
162
|
fontWeight: '900'
|
|
164
163
|
},
|
|
@@ -169,8 +168,8 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
169
168
|
marginTop: 14
|
|
170
169
|
},
|
|
171
170
|
agentMetaPill: {
|
|
172
|
-
backgroundColor: '#
|
|
173
|
-
borderColor: '#
|
|
171
|
+
backgroundColor: '#151515',
|
|
172
|
+
borderColor: '#2A2A2A',
|
|
174
173
|
borderRadius: 13,
|
|
175
174
|
borderWidth: 1,
|
|
176
175
|
marginRight: 7,
|
|
@@ -179,26 +178,26 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
179
178
|
paddingVertical: 6
|
|
180
179
|
},
|
|
181
180
|
agentMetaText: {
|
|
182
|
-
color: '#
|
|
181
|
+
color: '#D4D4D8',
|
|
183
182
|
fontSize: 12,
|
|
184
183
|
fontWeight: '800'
|
|
185
184
|
},
|
|
186
185
|
emptyPanel: {
|
|
187
|
-
backgroundColor: '#
|
|
188
|
-
borderColor: '#
|
|
189
|
-
borderRadius:
|
|
186
|
+
backgroundColor: '#0B0B0C',
|
|
187
|
+
borderColor: '#242427',
|
|
188
|
+
borderRadius: 16,
|
|
190
189
|
borderWidth: 1,
|
|
191
190
|
padding: 16
|
|
192
191
|
},
|
|
193
192
|
emptyTitle: {
|
|
194
|
-
color: '#
|
|
193
|
+
color: '#F7F7F7',
|
|
195
194
|
fontSize: 23,
|
|
196
195
|
fontWeight: '900',
|
|
197
196
|
lineHeight: 28,
|
|
198
197
|
marginTop: 15
|
|
199
198
|
},
|
|
200
199
|
emptyBody: {
|
|
201
|
-
color: '#
|
|
200
|
+
color: '#BDBDC2',
|
|
202
201
|
fontSize: 14,
|
|
203
202
|
fontWeight: '600',
|
|
204
203
|
lineHeight: 21,
|
|
@@ -210,8 +209,8 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
210
209
|
marginTop: 14
|
|
211
210
|
},
|
|
212
211
|
emptyChip: {
|
|
213
|
-
backgroundColor: '#
|
|
214
|
-
borderColor: '#
|
|
212
|
+
backgroundColor: '#151515',
|
|
213
|
+
borderColor: '#2A2A2A',
|
|
215
214
|
borderRadius: 15,
|
|
216
215
|
borderWidth: 1,
|
|
217
216
|
marginRight: 7,
|
|
@@ -220,13 +219,13 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
220
219
|
paddingVertical: 7
|
|
221
220
|
},
|
|
222
221
|
emptyChipText: {
|
|
223
|
-
color: '#
|
|
222
|
+
color: '#D4D4D8',
|
|
224
223
|
fontSize: 12,
|
|
225
224
|
fontWeight: '800'
|
|
226
225
|
},
|
|
227
226
|
primaryButton: {
|
|
228
227
|
alignItems: 'center',
|
|
229
|
-
backgroundColor: '#
|
|
228
|
+
backgroundColor: '#F4F4F5',
|
|
230
229
|
borderRadius: 17,
|
|
231
230
|
justifyContent: 'center',
|
|
232
231
|
marginTop: 20,
|
|
@@ -234,14 +233,19 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
234
233
|
paddingHorizontal: 18
|
|
235
234
|
},
|
|
236
235
|
primaryButtonText: {
|
|
237
|
-
color: '#
|
|
236
|
+
color: '#111111',
|
|
238
237
|
fontSize: 16,
|
|
239
238
|
fontWeight: '900'
|
|
240
239
|
},
|
|
240
|
+
// Overrides primaryButton's marginTop so the card's continue button sits 12px
|
|
241
|
+
// below the agent description (no meta pills between them anymore).
|
|
242
|
+
heroContinueButton: {
|
|
243
|
+
marginTop: 12
|
|
244
|
+
},
|
|
241
245
|
secondaryButton: {
|
|
242
246
|
alignItems: 'center',
|
|
243
|
-
backgroundColor: '#
|
|
244
|
-
borderColor: '#
|
|
247
|
+
backgroundColor: '#151515',
|
|
248
|
+
borderColor: '#2A2A2A',
|
|
245
249
|
borderRadius: 16,
|
|
246
250
|
borderWidth: 1,
|
|
247
251
|
flexDirection: 'row',
|
|
@@ -251,11 +255,22 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
251
255
|
paddingHorizontal: 16
|
|
252
256
|
},
|
|
253
257
|
secondaryButtonText: {
|
|
254
|
-
color: '#
|
|
258
|
+
color: '#F4F4F5',
|
|
255
259
|
fontSize: 14,
|
|
256
260
|
fontWeight: '900',
|
|
257
261
|
marginLeft: 7
|
|
258
262
|
},
|
|
263
|
+
linkButton: {
|
|
264
|
+
alignItems: 'center',
|
|
265
|
+
justifyContent: 'center',
|
|
266
|
+
marginTop: 14,
|
|
267
|
+
paddingVertical: 12
|
|
268
|
+
},
|
|
269
|
+
linkButtonText: {
|
|
270
|
+
color: '#FF5A1F',
|
|
271
|
+
fontSize: 14,
|
|
272
|
+
fontWeight: '900'
|
|
273
|
+
},
|
|
259
274
|
recentSection: {
|
|
260
275
|
marginTop: 22
|
|
261
276
|
},
|
|
@@ -266,20 +281,20 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
266
281
|
marginBottom: 10
|
|
267
282
|
},
|
|
268
283
|
sectionTitle: {
|
|
269
|
-
color: '#
|
|
284
|
+
color: '#F4F4F5',
|
|
270
285
|
fontSize: 17,
|
|
271
286
|
fontWeight: '900'
|
|
272
287
|
},
|
|
273
288
|
sectionCount: {
|
|
274
|
-
color: '#
|
|
289
|
+
color: '#73737A',
|
|
275
290
|
fontSize: 12,
|
|
276
291
|
fontWeight: '900'
|
|
277
292
|
},
|
|
278
293
|
agentRow: {
|
|
279
294
|
alignItems: 'center',
|
|
280
|
-
backgroundColor: '#
|
|
281
|
-
borderColor: '#
|
|
282
|
-
borderRadius:
|
|
295
|
+
backgroundColor: '#0B0B0C',
|
|
296
|
+
borderColor: '#242427',
|
|
297
|
+
borderRadius: 16,
|
|
283
298
|
borderWidth: 1,
|
|
284
299
|
flexDirection: 'row',
|
|
285
300
|
justifyContent: 'space-between',
|
|
@@ -294,12 +309,12 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
294
309
|
minWidth: 0
|
|
295
310
|
},
|
|
296
311
|
agentRowName: {
|
|
297
|
-
color: '#
|
|
312
|
+
color: '#F4F4F5',
|
|
298
313
|
fontSize: 15,
|
|
299
314
|
fontWeight: '900'
|
|
300
315
|
},
|
|
301
316
|
agentRowDescription: {
|
|
302
|
-
color: '#
|
|
317
|
+
color: '#8E8E93',
|
|
303
318
|
fontSize: 12,
|
|
304
319
|
fontWeight: '600',
|
|
305
320
|
lineHeight: 17,
|
|
@@ -307,10 +322,6 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
307
322
|
},
|
|
308
323
|
compactAvatar: {
|
|
309
324
|
alignItems: 'center',
|
|
310
|
-
backgroundColor: '#F4F4F5',
|
|
311
|
-
borderColor: '#E4E4E7',
|
|
312
|
-
borderRadius: 15,
|
|
313
|
-
borderWidth: 1,
|
|
314
325
|
height: 38,
|
|
315
326
|
justifyContent: 'center',
|
|
316
327
|
width: 38
|
|
@@ -330,7 +341,7 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
|
330
341
|
fontWeight: '700'
|
|
331
342
|
},
|
|
332
343
|
helperText: {
|
|
333
|
-
color: '#
|
|
344
|
+
color: '#73737A',
|
|
334
345
|
fontSize: 12,
|
|
335
346
|
fontWeight: '700',
|
|
336
347
|
lineHeight: 18,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_theme","require","styles","exports","createThemedStyles","safeArea","flex","backgroundColor","container","paddingBottom","paddingHorizontal","paddingTop","homeTopBar","alignItems","borderBottomColor","borderBottomWidth","flexDirection","minHeight","paddingVertical","topBarSide","justifyContent","minWidth","topBarRight","topBarTitleWrap","topBarTitle","color","fontSize","fontWeight","letterSpacing","lineHeight","homeTitle","marginBottom","marginTop","textAlign","header","headerAccessory","flexShrink","marginLeft","eyebrow","title","subtitle","headerAvatar","borderColor","borderRadius","borderWidth","height","width","loadingPanel","padding","heroPanel","overflow","heroTopRow","heroLabel","textTransform","agentCard","avatar","avatarText","agentCardBody","agentName","agentDescription","chevron","agentMetaRow","flexWrap","agentMetaPill","marginRight","agentMetaText","emptyPanel","emptyTitle","emptyBody","emptyChipRow","emptyChip","emptyChipText","primaryButton","primaryButtonText","heroContinueButton","secondaryButton","secondaryButtonText","linkButton","linkButtonText","recentSection","sectionHeader","sectionTitle","sectionCount","agentRow","agentRowBody","agentRowName","agentRowDescription","compactAvatar","placeholder","backButton","alignSelf","backButtonText","helperText","pressed","opacity"],"sourceRoot":"../../src","sources":["styles.ts"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEO,MAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,IAAAE,yBAAkB,EAAC;EACvCC,QAAQ,EAAE;IAAEC,IAAI,EAAE,CAAC;IAAEC,eAAe,EAAE;EAAU,CAAC;EACjDC,SAAS,EAAE;IAAEC,aAAa,EAAE,EAAE;IAAEC,iBAAiB,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAG,CAAC;EACvE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url', 'created_date', 'app_type', 'avatar_index', 'model', 'organization_id', 'tools_permission_config'].join(',');
|
|
10
10
|
const USER_AGENT_AGENT_NAME = 'your_agent';
|
|
11
11
|
const USER_AGENT_SANDBOX_LIST_PATHS = ['.agents', '.agents/rules', '.agents/skills', '.agents/mcps', '.agents/hooks', '.agents/cron', '.agents/memory', 'incoming_files'];
|
|
12
|
+
|
|
13
|
+
// /sandbox/files/list-entries returns rich entries (path + size/modified_at), and
|
|
14
|
+
// honors include_all (binaries). Legacy sandbox drivers may still emit bare path
|
|
15
|
+
// strings, so accept either.
|
|
16
|
+
|
|
12
17
|
const OAUTH_INJECTED_SCOPES = new Set(['email', 'openid', 'profile', 'User.Read', 'offline_access']);
|
|
13
18
|
function createSuperagentApiClient(config) {
|
|
14
19
|
const appsEndpoint = `${normalizeBaseUrl(config.baseUrl)}/api/apps`;
|
|
15
20
|
const httpClient = createHttpClient(config);
|
|
16
21
|
return {
|
|
17
22
|
async listAgents() {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
// Match the web Superagent home/sidebar query: filter only by app_type and let
|
|
24
|
+
// the backend default (all_apps_workspace) scope to apps the user can access —
|
|
25
|
+
// owned AND those shared with them as an editor collaborator. Adding owner_id /
|
|
26
|
+
// filter_mode=owned_by_me intersects with ownership and hides shared agents
|
|
27
|
+
// (owned_by_me is also an admin-only mode on the backend). The backend already
|
|
28
|
+
// enforces access, so this only widens the list to what web already shows.
|
|
24
29
|
const endpoint = buildUrl(appsEndpoint, {
|
|
25
30
|
fields: AGENT_FIELDS,
|
|
26
|
-
filter_mode: 'owned_by_me',
|
|
27
31
|
limit: '9',
|
|
28
|
-
q: JSON.stringify(
|
|
32
|
+
q: JSON.stringify({
|
|
33
|
+
app_type: 'user_agent'
|
|
34
|
+
}),
|
|
29
35
|
skip: '0',
|
|
30
36
|
sort: '-updated_date'
|
|
31
37
|
});
|
|
@@ -90,8 +96,12 @@ function createSuperagentApiClient(config) {
|
|
|
90
96
|
}));
|
|
91
97
|
},
|
|
92
98
|
async saveSecret(agentId, name, value) {
|
|
93
|
-
const response = await httpClient.post(`${appsEndpoint}/${encodeURIComponent(agentId)}/secrets`,
|
|
94
|
-
|
|
99
|
+
const response = await httpClient.post(`${appsEndpoint}/${encodeURIComponent(agentId)}/secrets`,
|
|
100
|
+
// Normalize only the key name — preserve the secret value byte-for-byte.
|
|
101
|
+
// Credentials (PEM/private keys, tokens with a trailing newline, passwords)
|
|
102
|
+
// can require exact leading/trailing whitespace; trimming would corrupt them.
|
|
103
|
+
{
|
|
104
|
+
[name.trim().toUpperCase()]: value
|
|
95
105
|
}, true);
|
|
96
106
|
assertSuccess(response, 'Failed to save Superagent secret');
|
|
97
107
|
},
|
|
@@ -189,26 +199,40 @@ function createSuperagentApiClient(config) {
|
|
|
189
199
|
}
|
|
190
200
|
return response.data.token;
|
|
191
201
|
},
|
|
202
|
+
// The token rides in the query string here (unlike runtimeRequest's
|
|
203
|
+
// Authorization header) on purpose: this URL is opened as a *browser
|
|
204
|
+
// navigation* via nativeAdapters.openUrl (not an XHR), so headers can't be
|
|
205
|
+
// attached — the backend must authenticate it from the `token` query param.
|
|
206
|
+
// Hardening to a dedicated short-lived/single-use connect token is a backend
|
|
207
|
+
// follow-up; until that exists this is the only auth channel for a nav URL.
|
|
192
208
|
getWhatsAppConnectUrl(agentId, runtimeAuthToken) {
|
|
193
209
|
return buildUrl(`${appsEndpoint}/${encodeURIComponent(agentId)}/agents/${USER_AGENT_AGENT_NAME}/whatsapp`, {
|
|
194
210
|
token: runtimeAuthToken
|
|
195
211
|
});
|
|
196
212
|
},
|
|
197
213
|
async getChannelStatus(agentId, runtimeAuthToken) {
|
|
198
|
-
const [telegram, imessage] = await Promise.all([this.getTelegramStatus(agentId, runtimeAuthToken).catch(() => ({
|
|
214
|
+
const [telegram, imessage, whatsapp] = await Promise.all([this.getTelegramStatus(agentId, runtimeAuthToken).catch(() => ({
|
|
199
215
|
connected: false
|
|
200
216
|
})), this.getIMessageStatus(agentId, runtimeAuthToken).catch(() => ({
|
|
201
217
|
connected: false
|
|
202
|
-
}))
|
|
218
|
+
})),
|
|
219
|
+
// null signals the editor-gated status call failed (e.g. 403 for viewers).
|
|
220
|
+
this.getWhatsAppStatus(agentId, runtimeAuthToken).catch(() => null)]);
|
|
203
221
|
return {
|
|
204
222
|
imessage,
|
|
205
223
|
line: {
|
|
206
224
|
connected: false
|
|
207
225
|
},
|
|
208
226
|
telegram,
|
|
209
|
-
|
|
210
|
-
|
|
227
|
+
// Only expose connectUrl (which carries the runtime token) when the
|
|
228
|
+
// editor-gated /whatsapp/status call succeeded. Viewers get a 403 there, so
|
|
229
|
+
// omit it — otherwise they'd hold a working WhatsApp connect URL even though
|
|
230
|
+
// the backend redirect doesn't re-check editor access.
|
|
231
|
+
whatsapp: whatsapp ? {
|
|
232
|
+
...whatsapp,
|
|
211
233
|
connectUrl: this.getWhatsAppConnectUrl(agentId, runtimeAuthToken)
|
|
234
|
+
} : {
|
|
235
|
+
connected: false
|
|
212
236
|
}
|
|
213
237
|
};
|
|
214
238
|
},
|
|
@@ -226,6 +250,13 @@ function createSuperagentApiClient(config) {
|
|
|
226
250
|
assertSuccess(response, 'Failed to load iMessage status');
|
|
227
251
|
return normalizeIMessageStatus(response.data);
|
|
228
252
|
},
|
|
253
|
+
async getWhatsAppStatus(agentId, runtimeAuthToken) {
|
|
254
|
+
const response = await runtimeRequest(httpClient, appsEndpoint, agentId, runtimeAuthToken, '/whatsapp/status', {
|
|
255
|
+
method: 'GET'
|
|
256
|
+
});
|
|
257
|
+
assertSuccess(response, 'Failed to load WhatsApp status');
|
|
258
|
+
return normalizeWhatsAppStatus(response.data);
|
|
259
|
+
},
|
|
229
260
|
async generateIMessageCode(agentId, runtimeAuthToken) {
|
|
230
261
|
const response = await runtimeRequest(httpClient, appsEndpoint, agentId, runtimeAuthToken, '/imessage/generate-code', {
|
|
231
262
|
method: 'POST'
|
|
@@ -443,13 +474,18 @@ function buildVoiceStreamUrl(baseUrl, agentId, sessionId) {
|
|
|
443
474
|
return `${websocketBase}/api/apps/${encodeURIComponent(agentId)}/user-agent/voice/live-session/${encodeURIComponent(sessionId)}/stream`;
|
|
444
475
|
}
|
|
445
476
|
async function listSandboxFilesAt(httpClient, appsEndpoint, agentId, path) {
|
|
446
|
-
|
|
477
|
+
// Use list-entries, not list: /sandbox/files/list ignores include_all and
|
|
478
|
+
// filters out binary assets (PNG/PDF/...), so they never reach the native tree.
|
|
479
|
+
// recursive=true so nested files under each listed directory appear — the native
|
|
480
|
+
// tree is built from this one listing and has no per-folder lazy fetch.
|
|
481
|
+
const endpoint = buildUrl(`${appsEndpoint}/${encodeURIComponent(agentId)}/sandbox/files/list-entries`, {
|
|
447
482
|
include_all: 'true',
|
|
448
|
-
path
|
|
483
|
+
path,
|
|
484
|
+
recursive: 'true'
|
|
449
485
|
});
|
|
450
486
|
const response = await httpClient.get(endpoint, true);
|
|
451
487
|
assertSuccess(response, 'Failed to load Superagent files');
|
|
452
|
-
return response.data?.files ?? [];
|
|
488
|
+
return (response.data?.files ?? []).map(entry => typeof entry === 'string' ? entry : entry.path);
|
|
453
489
|
}
|
|
454
490
|
async function listUserAgentSandboxFilePaths(httpClient, appsEndpoint, agentId) {
|
|
455
491
|
const paths = new Set(_fileTreeUtils.DEFAULT_SANDBOX_FILE_PATHS);
|
|
@@ -507,6 +543,9 @@ function toConnector(integration) {
|
|
|
507
543
|
iconUrl: meta?.iconUrl,
|
|
508
544
|
id: integration.integration_type,
|
|
509
545
|
name: meta?.name ?? formatConnectorName(integration.integration_type),
|
|
546
|
+
// Trust the live backend flag from /external-auth/list as well as the static
|
|
547
|
+
// catalog metadata — either signalling config-required must surface in the UI.
|
|
548
|
+
requiresConnectionConfig: meta?.requiresConnectionConfig || integration.requires_connection_config,
|
|
510
549
|
scopes: integration.scopes,
|
|
511
550
|
status: normalizeConnectorStatus(integration.status),
|
|
512
551
|
subtitle: meta?.subtitle,
|
|
@@ -555,7 +594,7 @@ function getAutomationPath(appsEndpoint, agentId, automation) {
|
|
|
555
594
|
return `${appsEndpoint}/${encodeURIComponent(agentId)}/automations/${type}/${encodeURIComponent(automation.id)}`;
|
|
556
595
|
}
|
|
557
596
|
function getAutomationType(automation) {
|
|
558
|
-
if (automation.automation_type === 'scheduled' || automation.automation_type === 'entity' || automation.automation_type === 'connector') {
|
|
597
|
+
if (automation.automation_type === 'scheduled' || automation.automation_type === 'entity' || automation.automation_type === 'connector' || automation.automation_type === 'in_app_agent') {
|
|
559
598
|
return automation.automation_type;
|
|
560
599
|
}
|
|
561
600
|
throw new Error(`Unsupported automation type: ${automation.automation_type}`);
|
|
@@ -583,6 +622,12 @@ function normalizeIMessageStatus(status) {
|
|
|
583
622
|
phoneNumber: status?.phone_number ?? null
|
|
584
623
|
};
|
|
585
624
|
}
|
|
625
|
+
function normalizeWhatsAppStatus(status) {
|
|
626
|
+
return {
|
|
627
|
+
connected: !!status?.connected,
|
|
628
|
+
userHandle: status?.user_handle ?? null
|
|
629
|
+
};
|
|
630
|
+
}
|
|
586
631
|
async function runtimeRequest(httpClient, appsEndpoint, agentId, runtimeAuthToken, path, options) {
|
|
587
632
|
return httpClient.request(`${appsEndpoint}/${encodeURIComponent(agentId)}${path}`, {
|
|
588
633
|
authRequired: false,
|