@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/module/styles.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
export const styles =
|
|
3
|
+
import { createThemedStyles } from "./theme.js";
|
|
4
|
+
export const styles = createThemedStyles({
|
|
5
5
|
safeArea: {
|
|
6
6
|
flex: 1,
|
|
7
|
-
backgroundColor: '#
|
|
7
|
+
backgroundColor: '#000000'
|
|
8
8
|
},
|
|
9
9
|
container: {
|
|
10
10
|
paddingBottom: 34,
|
|
@@ -13,7 +13,7 @@ export const styles = StyleSheet.create({
|
|
|
13
13
|
},
|
|
14
14
|
homeTopBar: {
|
|
15
15
|
alignItems: 'center',
|
|
16
|
-
borderBottomColor: '#
|
|
16
|
+
borderBottomColor: '#101012',
|
|
17
17
|
borderBottomWidth: 1,
|
|
18
18
|
flexDirection: 'row',
|
|
19
19
|
minHeight: 62,
|
|
@@ -35,15 +35,19 @@ export const styles = StyleSheet.create({
|
|
|
35
35
|
minWidth: 0
|
|
36
36
|
},
|
|
37
37
|
topBarTitle: {
|
|
38
|
-
color: '#
|
|
38
|
+
color: '#F7F7F7',
|
|
39
39
|
fontSize: 17,
|
|
40
40
|
fontWeight: '900',
|
|
41
41
|
letterSpacing: 0,
|
|
42
42
|
lineHeight: 21
|
|
43
43
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
homeTitle: {
|
|
45
|
+
color: '#FAFAFA',
|
|
46
|
+
fontSize: 24,
|
|
47
|
+
fontWeight: '900',
|
|
48
|
+
marginBottom: 30,
|
|
49
|
+
marginTop: 60,
|
|
50
|
+
textAlign: 'center'
|
|
47
51
|
},
|
|
48
52
|
header: {
|
|
49
53
|
alignItems: 'center',
|
|
@@ -58,20 +62,20 @@ export const styles = StyleSheet.create({
|
|
|
58
62
|
marginLeft: 12
|
|
59
63
|
},
|
|
60
64
|
eyebrow: {
|
|
61
|
-
color: '#
|
|
65
|
+
color: '#8E8E93',
|
|
62
66
|
fontSize: 12,
|
|
63
67
|
fontWeight: '800',
|
|
64
68
|
marginTop: 2
|
|
65
69
|
},
|
|
66
70
|
title: {
|
|
67
|
-
color: '#
|
|
71
|
+
color: '#F7F7F7',
|
|
68
72
|
fontSize: 24,
|
|
69
73
|
fontWeight: '900',
|
|
70
74
|
letterSpacing: 0,
|
|
71
75
|
lineHeight: 29
|
|
72
76
|
},
|
|
73
77
|
subtitle: {
|
|
74
|
-
color: '#
|
|
78
|
+
color: '#A1A1AA',
|
|
75
79
|
fontSize: 14,
|
|
76
80
|
fontWeight: '600',
|
|
77
81
|
lineHeight: 20,
|
|
@@ -79,8 +83,8 @@ export const styles = StyleSheet.create({
|
|
|
79
83
|
},
|
|
80
84
|
headerAvatar: {
|
|
81
85
|
alignItems: 'center',
|
|
82
|
-
backgroundColor: '#
|
|
83
|
-
borderColor: '#
|
|
86
|
+
backgroundColor: '#151515',
|
|
87
|
+
borderColor: '#2A2A2A',
|
|
84
88
|
borderRadius: 22,
|
|
85
89
|
borderWidth: 1,
|
|
86
90
|
height: 44,
|
|
@@ -89,16 +93,16 @@ export const styles = StyleSheet.create({
|
|
|
89
93
|
},
|
|
90
94
|
loadingPanel: {
|
|
91
95
|
alignItems: 'center',
|
|
92
|
-
backgroundColor: '#
|
|
93
|
-
borderColor: '#
|
|
94
|
-
borderRadius:
|
|
96
|
+
backgroundColor: '#0B0B0C',
|
|
97
|
+
borderColor: '#242427',
|
|
98
|
+
borderRadius: 16,
|
|
95
99
|
borderWidth: 1,
|
|
96
100
|
padding: 32
|
|
97
101
|
},
|
|
98
102
|
heroPanel: {
|
|
99
|
-
backgroundColor: '#
|
|
100
|
-
borderColor: '#
|
|
101
|
-
borderRadius:
|
|
103
|
+
backgroundColor: '#0B0B0C',
|
|
104
|
+
borderColor: '#242427',
|
|
105
|
+
borderRadius: 16,
|
|
102
106
|
borderWidth: 1,
|
|
103
107
|
overflow: 'hidden',
|
|
104
108
|
padding: 14
|
|
@@ -110,28 +114,23 @@ export const styles = StyleSheet.create({
|
|
|
110
114
|
marginBottom: 16
|
|
111
115
|
},
|
|
112
116
|
heroLabel: {
|
|
113
|
-
color: '#
|
|
117
|
+
color: '#8E8E93',
|
|
114
118
|
fontSize: 11,
|
|
115
119
|
fontWeight: '900',
|
|
116
120
|
textTransform: 'uppercase'
|
|
117
121
|
},
|
|
118
122
|
agentCard: {
|
|
119
123
|
alignItems: 'flex-start',
|
|
120
|
-
flexDirection: 'row'
|
|
121
|
-
minHeight: 100
|
|
124
|
+
flexDirection: 'row'
|
|
122
125
|
},
|
|
123
126
|
avatar: {
|
|
124
127
|
alignItems: 'center',
|
|
125
|
-
backgroundColor: '#F4F4F5',
|
|
126
|
-
borderColor: '#E4E4E7',
|
|
127
|
-
borderRadius: 24,
|
|
128
|
-
borderWidth: 1,
|
|
129
128
|
height: 52,
|
|
130
129
|
justifyContent: 'center',
|
|
131
130
|
width: 52
|
|
132
131
|
},
|
|
133
132
|
avatarText: {
|
|
134
|
-
color: '#
|
|
133
|
+
color: '#F7F7F7',
|
|
135
134
|
fontSize: 18,
|
|
136
135
|
fontWeight: '900'
|
|
137
136
|
},
|
|
@@ -141,20 +140,20 @@ export const styles = StyleSheet.create({
|
|
|
141
140
|
minWidth: 0
|
|
142
141
|
},
|
|
143
142
|
agentName: {
|
|
144
|
-
color: '#
|
|
145
|
-
fontSize:
|
|
143
|
+
color: '#F7F7F7',
|
|
144
|
+
fontSize: 16,
|
|
146
145
|
fontWeight: '900',
|
|
147
|
-
lineHeight:
|
|
146
|
+
lineHeight: 20
|
|
148
147
|
},
|
|
149
148
|
agentDescription: {
|
|
150
|
-
color: '#
|
|
149
|
+
color: '#BDBDC2',
|
|
151
150
|
fontSize: 14,
|
|
152
151
|
fontWeight: '600',
|
|
153
152
|
lineHeight: 20,
|
|
154
153
|
marginTop: 7
|
|
155
154
|
},
|
|
156
155
|
chevron: {
|
|
157
|
-
color: '#
|
|
156
|
+
color: '#8E8E93',
|
|
158
157
|
fontSize: 20,
|
|
159
158
|
fontWeight: '900'
|
|
160
159
|
},
|
|
@@ -165,8 +164,8 @@ export const styles = StyleSheet.create({
|
|
|
165
164
|
marginTop: 14
|
|
166
165
|
},
|
|
167
166
|
agentMetaPill: {
|
|
168
|
-
backgroundColor: '#
|
|
169
|
-
borderColor: '#
|
|
167
|
+
backgroundColor: '#151515',
|
|
168
|
+
borderColor: '#2A2A2A',
|
|
170
169
|
borderRadius: 13,
|
|
171
170
|
borderWidth: 1,
|
|
172
171
|
marginRight: 7,
|
|
@@ -175,26 +174,26 @@ export const styles = StyleSheet.create({
|
|
|
175
174
|
paddingVertical: 6
|
|
176
175
|
},
|
|
177
176
|
agentMetaText: {
|
|
178
|
-
color: '#
|
|
177
|
+
color: '#D4D4D8',
|
|
179
178
|
fontSize: 12,
|
|
180
179
|
fontWeight: '800'
|
|
181
180
|
},
|
|
182
181
|
emptyPanel: {
|
|
183
|
-
backgroundColor: '#
|
|
184
|
-
borderColor: '#
|
|
185
|
-
borderRadius:
|
|
182
|
+
backgroundColor: '#0B0B0C',
|
|
183
|
+
borderColor: '#242427',
|
|
184
|
+
borderRadius: 16,
|
|
186
185
|
borderWidth: 1,
|
|
187
186
|
padding: 16
|
|
188
187
|
},
|
|
189
188
|
emptyTitle: {
|
|
190
|
-
color: '#
|
|
189
|
+
color: '#F7F7F7',
|
|
191
190
|
fontSize: 23,
|
|
192
191
|
fontWeight: '900',
|
|
193
192
|
lineHeight: 28,
|
|
194
193
|
marginTop: 15
|
|
195
194
|
},
|
|
196
195
|
emptyBody: {
|
|
197
|
-
color: '#
|
|
196
|
+
color: '#BDBDC2',
|
|
198
197
|
fontSize: 14,
|
|
199
198
|
fontWeight: '600',
|
|
200
199
|
lineHeight: 21,
|
|
@@ -206,8 +205,8 @@ export const styles = StyleSheet.create({
|
|
|
206
205
|
marginTop: 14
|
|
207
206
|
},
|
|
208
207
|
emptyChip: {
|
|
209
|
-
backgroundColor: '#
|
|
210
|
-
borderColor: '#
|
|
208
|
+
backgroundColor: '#151515',
|
|
209
|
+
borderColor: '#2A2A2A',
|
|
211
210
|
borderRadius: 15,
|
|
212
211
|
borderWidth: 1,
|
|
213
212
|
marginRight: 7,
|
|
@@ -216,13 +215,13 @@ export const styles = StyleSheet.create({
|
|
|
216
215
|
paddingVertical: 7
|
|
217
216
|
},
|
|
218
217
|
emptyChipText: {
|
|
219
|
-
color: '#
|
|
218
|
+
color: '#D4D4D8',
|
|
220
219
|
fontSize: 12,
|
|
221
220
|
fontWeight: '800'
|
|
222
221
|
},
|
|
223
222
|
primaryButton: {
|
|
224
223
|
alignItems: 'center',
|
|
225
|
-
backgroundColor: '#
|
|
224
|
+
backgroundColor: '#F4F4F5',
|
|
226
225
|
borderRadius: 17,
|
|
227
226
|
justifyContent: 'center',
|
|
228
227
|
marginTop: 20,
|
|
@@ -230,14 +229,19 @@ export const styles = StyleSheet.create({
|
|
|
230
229
|
paddingHorizontal: 18
|
|
231
230
|
},
|
|
232
231
|
primaryButtonText: {
|
|
233
|
-
color: '#
|
|
232
|
+
color: '#111111',
|
|
234
233
|
fontSize: 16,
|
|
235
234
|
fontWeight: '900'
|
|
236
235
|
},
|
|
236
|
+
// Overrides primaryButton's marginTop so the card's continue button sits 12px
|
|
237
|
+
// below the agent description (no meta pills between them anymore).
|
|
238
|
+
heroContinueButton: {
|
|
239
|
+
marginTop: 12
|
|
240
|
+
},
|
|
237
241
|
secondaryButton: {
|
|
238
242
|
alignItems: 'center',
|
|
239
|
-
backgroundColor: '#
|
|
240
|
-
borderColor: '#
|
|
243
|
+
backgroundColor: '#151515',
|
|
244
|
+
borderColor: '#2A2A2A',
|
|
241
245
|
borderRadius: 16,
|
|
242
246
|
borderWidth: 1,
|
|
243
247
|
flexDirection: 'row',
|
|
@@ -247,11 +251,22 @@ export const styles = StyleSheet.create({
|
|
|
247
251
|
paddingHorizontal: 16
|
|
248
252
|
},
|
|
249
253
|
secondaryButtonText: {
|
|
250
|
-
color: '#
|
|
254
|
+
color: '#F4F4F5',
|
|
251
255
|
fontSize: 14,
|
|
252
256
|
fontWeight: '900',
|
|
253
257
|
marginLeft: 7
|
|
254
258
|
},
|
|
259
|
+
linkButton: {
|
|
260
|
+
alignItems: 'center',
|
|
261
|
+
justifyContent: 'center',
|
|
262
|
+
marginTop: 14,
|
|
263
|
+
paddingVertical: 12
|
|
264
|
+
},
|
|
265
|
+
linkButtonText: {
|
|
266
|
+
color: '#FF5A1F',
|
|
267
|
+
fontSize: 14,
|
|
268
|
+
fontWeight: '900'
|
|
269
|
+
},
|
|
255
270
|
recentSection: {
|
|
256
271
|
marginTop: 22
|
|
257
272
|
},
|
|
@@ -262,20 +277,20 @@ export const styles = StyleSheet.create({
|
|
|
262
277
|
marginBottom: 10
|
|
263
278
|
},
|
|
264
279
|
sectionTitle: {
|
|
265
|
-
color: '#
|
|
280
|
+
color: '#F4F4F5',
|
|
266
281
|
fontSize: 17,
|
|
267
282
|
fontWeight: '900'
|
|
268
283
|
},
|
|
269
284
|
sectionCount: {
|
|
270
|
-
color: '#
|
|
285
|
+
color: '#73737A',
|
|
271
286
|
fontSize: 12,
|
|
272
287
|
fontWeight: '900'
|
|
273
288
|
},
|
|
274
289
|
agentRow: {
|
|
275
290
|
alignItems: 'center',
|
|
276
|
-
backgroundColor: '#
|
|
277
|
-
borderColor: '#
|
|
278
|
-
borderRadius:
|
|
291
|
+
backgroundColor: '#0B0B0C',
|
|
292
|
+
borderColor: '#242427',
|
|
293
|
+
borderRadius: 16,
|
|
279
294
|
borderWidth: 1,
|
|
280
295
|
flexDirection: 'row',
|
|
281
296
|
justifyContent: 'space-between',
|
|
@@ -290,12 +305,12 @@ export const styles = StyleSheet.create({
|
|
|
290
305
|
minWidth: 0
|
|
291
306
|
},
|
|
292
307
|
agentRowName: {
|
|
293
|
-
color: '#
|
|
308
|
+
color: '#F4F4F5',
|
|
294
309
|
fontSize: 15,
|
|
295
310
|
fontWeight: '900'
|
|
296
311
|
},
|
|
297
312
|
agentRowDescription: {
|
|
298
|
-
color: '#
|
|
313
|
+
color: '#8E8E93',
|
|
299
314
|
fontSize: 12,
|
|
300
315
|
fontWeight: '600',
|
|
301
316
|
lineHeight: 17,
|
|
@@ -303,10 +318,6 @@ export const styles = StyleSheet.create({
|
|
|
303
318
|
},
|
|
304
319
|
compactAvatar: {
|
|
305
320
|
alignItems: 'center',
|
|
306
|
-
backgroundColor: '#F4F4F5',
|
|
307
|
-
borderColor: '#E4E4E7',
|
|
308
|
-
borderRadius: 15,
|
|
309
|
-
borderWidth: 1,
|
|
310
321
|
height: 38,
|
|
311
322
|
justifyContent: 'center',
|
|
312
323
|
width: 38
|
|
@@ -326,7 +337,7 @@ export const styles = StyleSheet.create({
|
|
|
326
337
|
fontWeight: '700'
|
|
327
338
|
},
|
|
328
339
|
helperText: {
|
|
329
|
-
color: '#
|
|
340
|
+
color: '#73737A',
|
|
330
341
|
fontSize: 12,
|
|
331
342
|
fontWeight: '700',
|
|
332
343
|
lineHeight: 18,
|
package/lib/module/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["createThemedStyles","styles","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,SAASA,kBAAkB,QAAQ,YAAS;AAE5C,OAAO,MAAMC,MAAM,GAAGD,kBAAkB,CAAC;EACvCE,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;EACvEC,UAAU,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAE,SAAS;IAC5BC,iBAAiB,EAAE,CAAC;IACpBC,aAAa,EAAE,KAAK;IACpBC,SAAS,EAAE,EAAE;IACbP,iBAAiB,EAAE,EAAE;IACrBQ,eAAe,EAAE;EACnB,CAAC;EACDC,UAAU,EAAE;IACVN,UAAU,EAAE,QAAQ;IACpBO,cAAc,EAAE,QAAQ;IACxBC,QAAQ,EAAE;EACZ,CAAC;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nE2D,mBAAmB,EAAE;IAAE7D,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,KAAK;IAAEE,UAAU,EAAE,EAAE;IAAEG,SAAS,EAAE;EAAE,CAAC;EACxGuD,aAAa,EAAE;IACb1E,UAAU,EAAE,QAAQ;IACpBgC,MAAM,EAAE,EAAE;IACVzB,cAAc,EAAE,QAAQ;IACxB0B,KAAK,EAAE;EACT,CAAC;EACD0C,WAAW,EAAE;IAAElF,IAAI,EAAE,CAAC;IAAE0C,OAAO,EAAE;EAAG,CAAC;EACrCyC,UAAU,EAAE;IAAEC,SAAS,EAAE,YAAY;IAAE3D,YAAY,EAAE,EAAE;IAAEb,eAAe,EAAE;EAAE,CAAC;EAC7EyE,cAAc,EAAE;IAAElE,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAM,CAAC;EACrEiE,UAAU,EAAE;IAAEnE,KAAK,EAAE,SAAS;IAAEC,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,KAAK;IAAEE,UAAU,EAAE,EAAE;IAAEG,SAAS,EAAE;EAAG,CAAC;EAChG6D,OAAO,EAAE;IAAEC,OAAO,EAAE;EAAK;AAC3B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,23 +5,29 @@ import { DEFAULT_SANDBOX_FILE_PATHS, normalizeFilePaths } from "./fileTreeUtils.
|
|
|
5
5
|
const AGENT_FIELDS = ['id', 'name', 'user_description', 'status', 'updated_date', 'logo_url', 'created_date', 'app_type', 'avatar_index', 'model', 'organization_id', 'tools_permission_config'].join(',');
|
|
6
6
|
const USER_AGENT_AGENT_NAME = 'your_agent';
|
|
7
7
|
const USER_AGENT_SANDBOX_LIST_PATHS = ['.agents', '.agents/rules', '.agents/skills', '.agents/mcps', '.agents/hooks', '.agents/cron', '.agents/memory', 'incoming_files'];
|
|
8
|
+
|
|
9
|
+
// /sandbox/files/list-entries returns rich entries (path + size/modified_at), and
|
|
10
|
+
// honors include_all (binaries). Legacy sandbox drivers may still emit bare path
|
|
11
|
+
// strings, so accept either.
|
|
12
|
+
|
|
8
13
|
const OAUTH_INJECTED_SCOPES = new Set(['email', 'openid', 'profile', 'User.Read', 'offline_access']);
|
|
9
14
|
export function createSuperagentApiClient(config) {
|
|
10
15
|
const appsEndpoint = `${normalizeBaseUrl(config.baseUrl)}/api/apps`;
|
|
11
16
|
const httpClient = createHttpClient(config);
|
|
12
17
|
return {
|
|
13
18
|
async listAgents() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
// Match the web Superagent home/sidebar query: filter only by app_type and let
|
|
20
|
+
// the backend default (all_apps_workspace) scope to apps the user can access —
|
|
21
|
+
// owned AND those shared with them as an editor collaborator. Adding owner_id /
|
|
22
|
+
// filter_mode=owned_by_me intersects with ownership and hides shared agents
|
|
23
|
+
// (owned_by_me is also an admin-only mode on the backend). The backend already
|
|
24
|
+
// enforces access, so this only widens the list to what web already shows.
|
|
20
25
|
const endpoint = buildUrl(appsEndpoint, {
|
|
21
26
|
fields: AGENT_FIELDS,
|
|
22
|
-
filter_mode: 'owned_by_me',
|
|
23
27
|
limit: '9',
|
|
24
|
-
q: JSON.stringify(
|
|
28
|
+
q: JSON.stringify({
|
|
29
|
+
app_type: 'user_agent'
|
|
30
|
+
}),
|
|
25
31
|
skip: '0',
|
|
26
32
|
sort: '-updated_date'
|
|
27
33
|
});
|
|
@@ -86,8 +92,12 @@ export function createSuperagentApiClient(config) {
|
|
|
86
92
|
}));
|
|
87
93
|
},
|
|
88
94
|
async saveSecret(agentId, name, value) {
|
|
89
|
-
const response = await httpClient.post(`${appsEndpoint}/${encodeURIComponent(agentId)}/secrets`,
|
|
90
|
-
|
|
95
|
+
const response = await httpClient.post(`${appsEndpoint}/${encodeURIComponent(agentId)}/secrets`,
|
|
96
|
+
// Normalize only the key name — preserve the secret value byte-for-byte.
|
|
97
|
+
// Credentials (PEM/private keys, tokens with a trailing newline, passwords)
|
|
98
|
+
// can require exact leading/trailing whitespace; trimming would corrupt them.
|
|
99
|
+
{
|
|
100
|
+
[name.trim().toUpperCase()]: value
|
|
91
101
|
}, true);
|
|
92
102
|
assertSuccess(response, 'Failed to save Superagent secret');
|
|
93
103
|
},
|
|
@@ -185,26 +195,40 @@ export function createSuperagentApiClient(config) {
|
|
|
185
195
|
}
|
|
186
196
|
return response.data.token;
|
|
187
197
|
},
|
|
198
|
+
// The token rides in the query string here (unlike runtimeRequest's
|
|
199
|
+
// Authorization header) on purpose: this URL is opened as a *browser
|
|
200
|
+
// navigation* via nativeAdapters.openUrl (not an XHR), so headers can't be
|
|
201
|
+
// attached — the backend must authenticate it from the `token` query param.
|
|
202
|
+
// Hardening to a dedicated short-lived/single-use connect token is a backend
|
|
203
|
+
// follow-up; until that exists this is the only auth channel for a nav URL.
|
|
188
204
|
getWhatsAppConnectUrl(agentId, runtimeAuthToken) {
|
|
189
205
|
return buildUrl(`${appsEndpoint}/${encodeURIComponent(agentId)}/agents/${USER_AGENT_AGENT_NAME}/whatsapp`, {
|
|
190
206
|
token: runtimeAuthToken
|
|
191
207
|
});
|
|
192
208
|
},
|
|
193
209
|
async getChannelStatus(agentId, runtimeAuthToken) {
|
|
194
|
-
const [telegram, imessage] = await Promise.all([this.getTelegramStatus(agentId, runtimeAuthToken).catch(() => ({
|
|
210
|
+
const [telegram, imessage, whatsapp] = await Promise.all([this.getTelegramStatus(agentId, runtimeAuthToken).catch(() => ({
|
|
195
211
|
connected: false
|
|
196
212
|
})), this.getIMessageStatus(agentId, runtimeAuthToken).catch(() => ({
|
|
197
213
|
connected: false
|
|
198
|
-
}))
|
|
214
|
+
})),
|
|
215
|
+
// null signals the editor-gated status call failed (e.g. 403 for viewers).
|
|
216
|
+
this.getWhatsAppStatus(agentId, runtimeAuthToken).catch(() => null)]);
|
|
199
217
|
return {
|
|
200
218
|
imessage,
|
|
201
219
|
line: {
|
|
202
220
|
connected: false
|
|
203
221
|
},
|
|
204
222
|
telegram,
|
|
205
|
-
|
|
206
|
-
|
|
223
|
+
// Only expose connectUrl (which carries the runtime token) when the
|
|
224
|
+
// editor-gated /whatsapp/status call succeeded. Viewers get a 403 there, so
|
|
225
|
+
// omit it — otherwise they'd hold a working WhatsApp connect URL even though
|
|
226
|
+
// the backend redirect doesn't re-check editor access.
|
|
227
|
+
whatsapp: whatsapp ? {
|
|
228
|
+
...whatsapp,
|
|
207
229
|
connectUrl: this.getWhatsAppConnectUrl(agentId, runtimeAuthToken)
|
|
230
|
+
} : {
|
|
231
|
+
connected: false
|
|
208
232
|
}
|
|
209
233
|
};
|
|
210
234
|
},
|
|
@@ -222,6 +246,13 @@ export function createSuperagentApiClient(config) {
|
|
|
222
246
|
assertSuccess(response, 'Failed to load iMessage status');
|
|
223
247
|
return normalizeIMessageStatus(response.data);
|
|
224
248
|
},
|
|
249
|
+
async getWhatsAppStatus(agentId, runtimeAuthToken) {
|
|
250
|
+
const response = await runtimeRequest(httpClient, appsEndpoint, agentId, runtimeAuthToken, '/whatsapp/status', {
|
|
251
|
+
method: 'GET'
|
|
252
|
+
});
|
|
253
|
+
assertSuccess(response, 'Failed to load WhatsApp status');
|
|
254
|
+
return normalizeWhatsAppStatus(response.data);
|
|
255
|
+
},
|
|
225
256
|
async generateIMessageCode(agentId, runtimeAuthToken) {
|
|
226
257
|
const response = await runtimeRequest(httpClient, appsEndpoint, agentId, runtimeAuthToken, '/imessage/generate-code', {
|
|
227
258
|
method: 'POST'
|
|
@@ -439,13 +470,18 @@ function buildVoiceStreamUrl(baseUrl, agentId, sessionId) {
|
|
|
439
470
|
return `${websocketBase}/api/apps/${encodeURIComponent(agentId)}/user-agent/voice/live-session/${encodeURIComponent(sessionId)}/stream`;
|
|
440
471
|
}
|
|
441
472
|
async function listSandboxFilesAt(httpClient, appsEndpoint, agentId, path) {
|
|
442
|
-
|
|
473
|
+
// Use list-entries, not list: /sandbox/files/list ignores include_all and
|
|
474
|
+
// filters out binary assets (PNG/PDF/...), so they never reach the native tree.
|
|
475
|
+
// recursive=true so nested files under each listed directory appear — the native
|
|
476
|
+
// tree is built from this one listing and has no per-folder lazy fetch.
|
|
477
|
+
const endpoint = buildUrl(`${appsEndpoint}/${encodeURIComponent(agentId)}/sandbox/files/list-entries`, {
|
|
443
478
|
include_all: 'true',
|
|
444
|
-
path
|
|
479
|
+
path,
|
|
480
|
+
recursive: 'true'
|
|
445
481
|
});
|
|
446
482
|
const response = await httpClient.get(endpoint, true);
|
|
447
483
|
assertSuccess(response, 'Failed to load Superagent files');
|
|
448
|
-
return response.data?.files ?? [];
|
|
484
|
+
return (response.data?.files ?? []).map(entry => typeof entry === 'string' ? entry : entry.path);
|
|
449
485
|
}
|
|
450
486
|
async function listUserAgentSandboxFilePaths(httpClient, appsEndpoint, agentId) {
|
|
451
487
|
const paths = new Set(DEFAULT_SANDBOX_FILE_PATHS);
|
|
@@ -503,6 +539,9 @@ function toConnector(integration) {
|
|
|
503
539
|
iconUrl: meta?.iconUrl,
|
|
504
540
|
id: integration.integration_type,
|
|
505
541
|
name: meta?.name ?? formatConnectorName(integration.integration_type),
|
|
542
|
+
// Trust the live backend flag from /external-auth/list as well as the static
|
|
543
|
+
// catalog metadata — either signalling config-required must surface in the UI.
|
|
544
|
+
requiresConnectionConfig: meta?.requiresConnectionConfig || integration.requires_connection_config,
|
|
506
545
|
scopes: integration.scopes,
|
|
507
546
|
status: normalizeConnectorStatus(integration.status),
|
|
508
547
|
subtitle: meta?.subtitle,
|
|
@@ -551,7 +590,7 @@ function getAutomationPath(appsEndpoint, agentId, automation) {
|
|
|
551
590
|
return `${appsEndpoint}/${encodeURIComponent(agentId)}/automations/${type}/${encodeURIComponent(automation.id)}`;
|
|
552
591
|
}
|
|
553
592
|
function getAutomationType(automation) {
|
|
554
|
-
if (automation.automation_type === 'scheduled' || automation.automation_type === 'entity' || automation.automation_type === 'connector') {
|
|
593
|
+
if (automation.automation_type === 'scheduled' || automation.automation_type === 'entity' || automation.automation_type === 'connector' || automation.automation_type === 'in_app_agent') {
|
|
555
594
|
return automation.automation_type;
|
|
556
595
|
}
|
|
557
596
|
throw new Error(`Unsupported automation type: ${automation.automation_type}`);
|
|
@@ -579,6 +618,12 @@ function normalizeIMessageStatus(status) {
|
|
|
579
618
|
phoneNumber: status?.phone_number ?? null
|
|
580
619
|
};
|
|
581
620
|
}
|
|
621
|
+
function normalizeWhatsAppStatus(status) {
|
|
622
|
+
return {
|
|
623
|
+
connected: !!status?.connected,
|
|
624
|
+
userHandle: status?.user_handle ?? null
|
|
625
|
+
};
|
|
626
|
+
}
|
|
582
627
|
async function runtimeRequest(httpClient, appsEndpoint, agentId, runtimeAuthToken, path, options) {
|
|
583
628
|
return httpClient.request(`${appsEndpoint}/${encodeURIComponent(agentId)}${path}`, {
|
|
584
629
|
authRequired: false,
|