@coze-arch/cli 0.0.1-alpha.ecba20 → 0.0.1-alpha.ee5d83
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/__templates__/expo/.coze +1 -1
- package/lib/__templates__/expo/.cozeproj/scripts/dev_build.sh +19 -82
- package/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +62 -81
- package/lib/__templates__/expo/README.md +22 -14
- package/lib/__templates__/expo/client/app/index.tsx +1 -0
- package/lib/__templates__/expo/client/app.config.ts +64 -60
- package/lib/__templates__/expo/client/constants/theme.ts +22 -18
- package/lib/__templates__/expo/client/hooks/useColorScheme.ts +34 -1
- package/lib/__templates__/expo/client/package.json +1 -0
- package/lib/__templates__/expo/client/screens/home/index.tsx +12 -37
- package/lib/__templates__/expo/client/screens/home/styles.ts +19 -51
- package/lib/__templates__/expo/pnpm-lock.yaml +57 -5
- package/lib/__templates__/expo/server/package.json +3 -1
- package/lib/__templates__/expo/server/src/index.ts +8 -2
- package/lib/__templates__/expo/template.config.js +1 -0
- package/lib/__templates__/nextjs/.coze +1 -0
- package/lib/__templates__/nextjs/_npmrc +1 -0
- package/lib/__templates__/nextjs/next.config.ts +11 -0
- package/lib/__templates__/nextjs/package.json +3 -5
- package/lib/__templates__/nextjs/pnpm-lock.yaml +13 -1025
- package/lib/__templates__/nextjs/scripts/dev.sh +1 -1
- package/lib/__templates__/nextjs/scripts/prepare.sh +9 -0
- package/lib/__templates__/nextjs/src/app/globals.css +10 -2
- package/lib/__templates__/nextjs/src/app/layout.tsx +1 -16
- package/lib/__templates__/nextjs/src/app/page.tsx +33 -21
- package/lib/__templates__/nextjs/src/components/ui/resizable.tsx +29 -22
- package/lib/__templates__/nextjs/src/components/ui/sidebar.tsx +228 -230
- package/lib/__templates__/nextjs/template.config.js +30 -0
- package/lib/__templates__/templates.json +61 -70
- package/lib/__templates__/vite/.coze +1 -0
- package/lib/__templates__/vite/_npmrc +1 -0
- package/lib/__templates__/vite/eslint.config.mjs +9 -0
- package/lib/__templates__/vite/package.json +5 -1
- package/lib/__templates__/vite/pnpm-lock.yaml +3481 -14
- package/lib/__templates__/vite/scripts/prepare.sh +9 -0
- package/lib/__templates__/vite/template.config.js +28 -4
- package/lib/cli.js +46 -22
- package/package.json +1 -1
- package/lib/__templates__/nextjs/.babelrc +0 -15
- package/lib/__templates__/nextjs/.vscode/settings.json +0 -121
- package/lib/__templates__/nextjs/server.mjs +0 -50
- package/lib/__templates__/vite/.vscode/settings.json +0 -7
- /package/lib/__templates__/expo/client/app/{index.ts → home.tsx} +0 -0
|
@@ -2,23 +2,21 @@ import { Platform, StyleSheet } from "react-native";
|
|
|
2
2
|
|
|
3
3
|
export const Colors = {
|
|
4
4
|
light: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
textSecondary: "#374151",
|
|
5
|
+
textPrimary: "#1C1917",
|
|
6
|
+
textSecondary: "#78716c",
|
|
8
7
|
textMuted: "#9CA3AF",
|
|
9
8
|
textDisabled: "#D1D5DB",
|
|
10
9
|
placeholder: "#9CA3AF",
|
|
11
|
-
buttonText: "#FFFFFF",
|
|
12
10
|
tabIconDefault: "#9CA3AF",
|
|
13
|
-
tabIconSelected: "#
|
|
14
|
-
primary: "#
|
|
11
|
+
tabIconSelected: "#1C1917",
|
|
12
|
+
primary: "#1C1917",
|
|
15
13
|
accent: "#000000",
|
|
16
|
-
link: "#
|
|
14
|
+
link: "#1C1917",
|
|
17
15
|
success: "#16A34A",
|
|
18
16
|
warning: "#F59E0B",
|
|
19
17
|
error: "#DC2626",
|
|
20
18
|
info: "#2563EB",
|
|
21
|
-
backgroundRoot: "#
|
|
19
|
+
backgroundRoot: "#FFF",
|
|
22
20
|
backgroundDefault: "#F9FAFB",
|
|
23
21
|
backgroundSecondary: "#F3F4F6",
|
|
24
22
|
backgroundTertiary: "#E5E7EB",
|
|
@@ -27,25 +25,27 @@ export const Colors = {
|
|
|
27
25
|
divider: "#F3F4F6",
|
|
28
26
|
overlay: "rgba(0, 0, 0, 0.4)",
|
|
29
27
|
chartBackground: "rgba(249, 250, 251, 0.5)",
|
|
28
|
+
buttonPrimaryBackground: "#1C1917",
|
|
29
|
+
buttonPrimaryText: "#FFFFFF",
|
|
30
|
+
buttonSecondaryBackground: "#F3F4F6",
|
|
31
|
+
buttonSecondaryText: "#1C1917",
|
|
30
32
|
},
|
|
31
33
|
dark: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
textSecondary: "#9BA1A6",
|
|
34
|
+
textPrimary: "#FAFAF9",
|
|
35
|
+
textSecondary: "#A8A29E",
|
|
35
36
|
textMuted: "#6F767E",
|
|
36
37
|
textDisabled: "#4A4D50",
|
|
37
38
|
placeholder: "#6F767E",
|
|
38
|
-
buttonText: "#FFFFFF",
|
|
39
39
|
tabIconDefault: "#6F767E",
|
|
40
|
-
tabIconSelected: "#
|
|
41
|
-
primary: "#
|
|
40
|
+
tabIconSelected: "#FAFAF9",
|
|
41
|
+
primary: "#FAFAF9",
|
|
42
42
|
accent: "#FFFFFF",
|
|
43
|
-
link: "#
|
|
43
|
+
link: "#FAFAF9",
|
|
44
44
|
success: "#30D158",
|
|
45
45
|
warning: "#FF9F0A",
|
|
46
46
|
error: "#FF453A",
|
|
47
47
|
info: "#64D2FF",
|
|
48
|
-
backgroundRoot: "#
|
|
48
|
+
backgroundRoot: "#0C0A09",
|
|
49
49
|
backgroundDefault: "#1C1C1E",
|
|
50
50
|
backgroundSecondary: "#2C2C2E",
|
|
51
51
|
backgroundTertiary: "#3A3A3C",
|
|
@@ -54,6 +54,10 @@ export const Colors = {
|
|
|
54
54
|
divider: "#2C2C2E",
|
|
55
55
|
overlay: "rgba(0, 0, 0, 0.6)",
|
|
56
56
|
chartBackground: "rgba(28, 28, 30, 0.5)",
|
|
57
|
+
buttonPrimaryBackground: "#FAFAF9",
|
|
58
|
+
buttonPrimaryText: "#0C0A09",
|
|
59
|
+
buttonSecondaryBackground: "#2C2C2E",
|
|
60
|
+
buttonSecondaryText: "#FAFAF9",
|
|
57
61
|
},
|
|
58
62
|
};
|
|
59
63
|
|
|
@@ -509,7 +513,7 @@ export const createThemedStyles = (theme: Theme) => {
|
|
|
509
513
|
...CommonStyles.scrollContent,
|
|
510
514
|
},
|
|
511
515
|
text: {
|
|
512
|
-
color: theme.
|
|
516
|
+
color: theme.textPrimary,
|
|
513
517
|
},
|
|
514
518
|
textPrimary: {
|
|
515
519
|
color: theme.textPrimary,
|
|
@@ -533,7 +537,7 @@ export const createThemedStyles = (theme: Theme) => {
|
|
|
533
537
|
color: theme.info,
|
|
534
538
|
},
|
|
535
539
|
textButton: {
|
|
536
|
-
color: theme.
|
|
540
|
+
color: theme.buttonPrimaryText,
|
|
537
541
|
},
|
|
538
542
|
avatar: {
|
|
539
543
|
...CommonStyles.avatar,
|
|
@@ -1 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { ColorSchemeName, useColorScheme as useReactNativeColorScheme, Platform } from 'react-native';
|
|
3
|
+
|
|
4
|
+
export function useColorScheme() {
|
|
5
|
+
const systemColorScheme = useReactNativeColorScheme();
|
|
6
|
+
const [colorScheme, setColorScheme] = useState<ColorSchemeName>(systemColorScheme);
|
|
7
|
+
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
setColorScheme(systemColorScheme);
|
|
10
|
+
}, [systemColorScheme])
|
|
11
|
+
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
function handleMessage(e: MessageEvent<{ event: string; colorScheme: ColorSchemeName; } | undefined>) {
|
|
14
|
+
if (e.data?.event === 'coze.workbench.colorScheme') {
|
|
15
|
+
const cs = e.data.colorScheme;
|
|
16
|
+
if (typeof cs === 'string') {
|
|
17
|
+
setColorScheme(cs);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (Platform.OS === 'web') {
|
|
23
|
+
window.addEventListener('message', handleMessage, false);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return () => {
|
|
27
|
+
if (Platform.OS === 'web') {
|
|
28
|
+
window.removeEventListener('message', handleMessage, false);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}, []);
|
|
32
|
+
|
|
33
|
+
return colorScheme;
|
|
34
|
+
}
|
|
@@ -1,50 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
View,
|
|
4
|
-
Text,
|
|
5
|
-
ScrollView,
|
|
6
|
-
RefreshControl,
|
|
7
|
-
} from 'react-native';
|
|
8
|
-
import { useRouter, useFocusEffect } from 'expo-router';
|
|
9
|
-
import { FontAwesome6 } from '@expo/vector-icons';
|
|
10
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
11
|
-
import { useTheme } from "@/hooks/useTheme";
|
|
1
|
+
import { View, Text } from 'react-native';
|
|
2
|
+
import { Image } from 'expo-image';
|
|
12
3
|
|
|
4
|
+
import { useTheme } from '@/hooks/useTheme';
|
|
13
5
|
import { Screen } from '@/components/Screen';
|
|
14
|
-
|
|
15
6
|
import { styles } from './styles';
|
|
16
7
|
|
|
17
8
|
export default function HomeScreen() {
|
|
18
|
-
const insets = useSafeAreaInsets();
|
|
19
9
|
const { theme, isDark } = useTheme();
|
|
20
10
|
|
|
21
|
-
const [isRefreshing, setIsRefreshing] = useState(false);
|
|
22
|
-
|
|
23
|
-
const loadData = useCallback(async () => {
|
|
24
|
-
}, []);
|
|
25
|
-
|
|
26
|
-
useFocusEffect(
|
|
27
|
-
useCallback(() => {
|
|
28
|
-
loadData();
|
|
29
|
-
}, [loadData])
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
const handleRefresh = useCallback(() => {
|
|
33
|
-
setIsRefreshing(true);
|
|
34
|
-
loadData();
|
|
35
|
-
}, [loadData]);
|
|
36
11
|
return (
|
|
37
12
|
<Screen backgroundColor={theme.backgroundRoot} statusBarStyle={isDark ? 'light' : 'dark'}>
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
contentContainerStyle={{}}
|
|
41
|
-
refreshControl={
|
|
42
|
-
<RefreshControl refreshing={isRefreshing} onRefresh={handleRefresh} colors={['#2563EB']} />
|
|
43
|
-
}
|
|
13
|
+
<View
|
|
14
|
+
style={styles.container}
|
|
44
15
|
>
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
16
|
+
<Image
|
|
17
|
+
style={styles.logo}
|
|
18
|
+
source="https://lf-coze-web-cdn.coze.cn/obj/eden-cn/lm-lgvj/ljhwZthlaukjlkulzlp/coze-coding/expo/coze-loading.gif"
|
|
19
|
+
></Image>
|
|
20
|
+
<Text style={{...styles.title, color: theme.textPrimary}}>APP 开发中</Text>
|
|
21
|
+
<Text style={{...styles.description, color: theme.textSecondary}}>即将为您呈现应用界面</Text>
|
|
22
|
+
</View>
|
|
48
23
|
</Screen>
|
|
49
24
|
);
|
|
50
25
|
}
|
|
@@ -1,60 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Spacing } from '@/constants/theme';
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
2
3
|
|
|
3
4
|
export const styles = StyleSheet.create({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
container: {
|
|
6
|
+
position: 'absolute',
|
|
7
|
+
top: 0,
|
|
8
|
+
left: 0,
|
|
9
|
+
width: '100%',
|
|
10
|
+
height: '100%',
|
|
11
|
+
display: 'flex',
|
|
12
|
+
flexDirection: 'column',
|
|
7
13
|
alignItems: 'center',
|
|
8
|
-
},
|
|
9
|
-
loadingText: {
|
|
10
|
-
marginTop: 12,
|
|
11
|
-
fontSize: 14,
|
|
12
|
-
color: '#64748B',
|
|
13
|
-
},
|
|
14
|
-
errorContainer: {
|
|
15
|
-
flex: 1,
|
|
16
14
|
justifyContent: 'center',
|
|
17
|
-
alignItems: 'center',
|
|
18
|
-
paddingHorizontal: 24,
|
|
19
|
-
},
|
|
20
|
-
errorText: {
|
|
21
|
-
marginTop: 16,
|
|
22
|
-
fontSize: 16,
|
|
23
|
-
color: '#64748B',
|
|
24
15
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
alignItems: 'center',
|
|
29
|
-
paddingHorizontal: 16,
|
|
30
|
-
// paddingBottom: 16,
|
|
31
|
-
backgroundColor: '#FFFFFF',
|
|
32
|
-
// borderBottomWidth: 1,
|
|
33
|
-
borderBottomColor: '#E2E8F0',
|
|
16
|
+
logo: {
|
|
17
|
+
width: 130,
|
|
18
|
+
height: 109,
|
|
34
19
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
backgroundColor: '#2563EB',
|
|
39
|
-
borderRadius: 8,
|
|
40
|
-
justifyContent: 'center',
|
|
41
|
-
alignItems: 'center',
|
|
42
|
-
...Platform.select({
|
|
43
|
-
ios: {
|
|
44
|
-
shadowColor: '#000',
|
|
45
|
-
shadowOffset: { width: 0, height: 1 },
|
|
46
|
-
shadowOpacity: 0.1,
|
|
47
|
-
shadowRadius: 2,
|
|
48
|
-
},
|
|
49
|
-
android: {
|
|
50
|
-
elevation: 2,
|
|
51
|
-
},
|
|
52
|
-
}),
|
|
20
|
+
title: {
|
|
21
|
+
fontSize: 16,
|
|
22
|
+
fontWeight: 'bold',
|
|
53
23
|
},
|
|
54
|
-
|
|
55
|
-
fontSize:
|
|
56
|
-
|
|
57
|
-
color: '#1E293B',
|
|
58
|
-
letterSpacing: -0.5,
|
|
24
|
+
description: {
|
|
25
|
+
fontSize: 14,
|
|
26
|
+
marginTop: Spacing.sm,
|
|
59
27
|
},
|
|
60
28
|
});
|
|
@@ -70,6 +70,9 @@ importers:
|
|
|
70
70
|
expo-haptics:
|
|
71
71
|
specifier: ~15.0.6
|
|
72
72
|
version: 15.0.8(expo@54.0.30(@babel/core@7.28.5)(@expo/metro-runtime@6.1.2)(expo-router@6.0.21)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))
|
|
73
|
+
expo-image:
|
|
74
|
+
specifier: ^3.0.11
|
|
75
|
+
version: 3.0.11(expo@54.0.30(@babel/core@7.28.5)(@expo/metro-runtime@6.1.2)(expo-router@6.0.21)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native-web@0.21.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
73
76
|
expo-image-picker:
|
|
74
77
|
specifier: ~17.0.7
|
|
75
78
|
version: 17.0.10(expo@54.0.30(@babel/core@7.28.5)(@expo/metro-runtime@6.1.2)(expo-router@6.0.21)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))
|
|
@@ -230,9 +233,12 @@ importers:
|
|
|
230
233
|
|
|
231
234
|
server:
|
|
232
235
|
dependencies:
|
|
236
|
+
cors:
|
|
237
|
+
specifier: ^2.8.5
|
|
238
|
+
version: 2.8.5
|
|
233
239
|
coze-coding-dev-sdk:
|
|
234
|
-
specifier: ^0.
|
|
235
|
-
version: 0.
|
|
240
|
+
specifier: ^0.7.2
|
|
241
|
+
version: 0.7.2(@types/pg@8.16.0)(openai@6.15.0(ws@8.18.3)(zod@4.3.2))(ws@8.18.3)
|
|
236
242
|
dayjs:
|
|
237
243
|
specifier: ^1.11.19
|
|
238
244
|
version: 1.11.19
|
|
@@ -255,6 +261,9 @@ importers:
|
|
|
255
261
|
specifier: ^4.2.1
|
|
256
262
|
version: 4.3.2
|
|
257
263
|
devDependencies:
|
|
264
|
+
'@types/cors':
|
|
265
|
+
specifier: ^2.8.19
|
|
266
|
+
version: 2.8.19
|
|
258
267
|
'@types/express':
|
|
259
268
|
specifier: ^5.0.6
|
|
260
269
|
version: 5.0.6
|
|
@@ -2064,6 +2073,9 @@ packages:
|
|
|
2064
2073
|
'@types/connect@3.4.38':
|
|
2065
2074
|
resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}
|
|
2066
2075
|
|
|
2076
|
+
'@types/cors@2.8.19':
|
|
2077
|
+
resolution: {integrity: sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==}
|
|
2078
|
+
|
|
2067
2079
|
'@types/estree@1.0.8':
|
|
2068
2080
|
resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
|
|
2069
2081
|
|
|
@@ -2855,12 +2867,16 @@ packages:
|
|
|
2855
2867
|
core-js-compat@3.47.0:
|
|
2856
2868
|
resolution: {integrity: sha512-IGfuznZ/n7Kp9+nypamBhvwdwLsW6KC8IOaURw2doAK5e98AG3acVLdh0woOnEqCfUtS+Vu882JE4k/DAm3ItQ==}
|
|
2857
2869
|
|
|
2870
|
+
cors@2.8.5:
|
|
2871
|
+
resolution: {integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==}
|
|
2872
|
+
engines: {node: '>= 0.10'}
|
|
2873
|
+
|
|
2858
2874
|
cosmiconfig@7.1.0:
|
|
2859
2875
|
resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==}
|
|
2860
2876
|
engines: {node: '>=10'}
|
|
2861
2877
|
|
|
2862
|
-
coze-coding-dev-sdk@0.
|
|
2863
|
-
resolution: {integrity: sha512-
|
|
2878
|
+
coze-coding-dev-sdk@0.7.2:
|
|
2879
|
+
resolution: {integrity: sha512-IAAbI8W6MHL95BV/OmiacM2aMzkruyBwUMsvzJk/9jBT9vra2xiUC5ggS5xFi7V7MrL5VqfLv9ZlWSjcOAVRpw==}
|
|
2864
2880
|
engines: {node: '>=18.0.0'}
|
|
2865
2881
|
hasBin: true
|
|
2866
2882
|
|
|
@@ -3528,6 +3544,17 @@ packages:
|
|
|
3528
3544
|
peerDependencies:
|
|
3529
3545
|
expo: '*'
|
|
3530
3546
|
|
|
3547
|
+
expo-image@3.0.11:
|
|
3548
|
+
resolution: {integrity: sha512-4TudfUCLgYgENv+f48omnU8tjS2S0Pd9EaON5/s1ZUBRwZ7K8acEr4NfvLPSaeXvxW24iLAiyQ7sV7BXQH3RoA==}
|
|
3549
|
+
peerDependencies:
|
|
3550
|
+
expo: '*'
|
|
3551
|
+
react: '*'
|
|
3552
|
+
react-native: '*'
|
|
3553
|
+
react-native-web: '*'
|
|
3554
|
+
peerDependenciesMeta:
|
|
3555
|
+
react-native-web:
|
|
3556
|
+
optional: true
|
|
3557
|
+
|
|
3531
3558
|
expo-keep-awake@15.0.8:
|
|
3532
3559
|
resolution: {integrity: sha512-YK9M1VrnoH1vLJiQzChZgzDvVimVoriibiDIFLbQMpjYBnvyfUeHJcin/Gx1a+XgupNXy92EQJLgI/9ZuXajYQ==}
|
|
3533
3560
|
peerDependencies:
|
|
@@ -5947,6 +5974,11 @@ packages:
|
|
|
5947
5974
|
resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==}
|
|
5948
5975
|
engines: {node: '>=12'}
|
|
5949
5976
|
|
|
5977
|
+
transliteration@2.6.0:
|
|
5978
|
+
resolution: {integrity: sha512-T6frfMj7N5xNK0l+duIzIWKxkc9ewG72uv7NeOs4dIoysqTnYpwxeVEE5qYdKKmy7hby55ah0wNUoMaLsB2Zjw==}
|
|
5979
|
+
engines: {node: '>=20.0.0'}
|
|
5980
|
+
hasBin: true
|
|
5981
|
+
|
|
5950
5982
|
ts-api-utils@2.3.0:
|
|
5951
5983
|
resolution: {integrity: sha512-6eg3Y9SF7SsAvGzRHQvvc1skDAhwI4YQ32ui1scxD1Ccr0G5qIIbUBT3pFTKX8kmWIQClHobtUdNuaBgwdfdWg==}
|
|
5952
5984
|
engines: {node: '>=18.12'}
|
|
@@ -8965,6 +8997,10 @@ snapshots:
|
|
|
8965
8997
|
dependencies:
|
|
8966
8998
|
'@types/node': 25.0.3
|
|
8967
8999
|
|
|
9000
|
+
'@types/cors@2.8.19':
|
|
9001
|
+
dependencies:
|
|
9002
|
+
'@types/node': 25.0.3
|
|
9003
|
+
|
|
8968
9004
|
'@types/estree@1.0.8': {}
|
|
8969
9005
|
|
|
8970
9006
|
'@types/express-serve-static-core@5.1.0':
|
|
@@ -9871,6 +9907,11 @@ snapshots:
|
|
|
9871
9907
|
dependencies:
|
|
9872
9908
|
browserslist: 4.28.1
|
|
9873
9909
|
|
|
9910
|
+
cors@2.8.5:
|
|
9911
|
+
dependencies:
|
|
9912
|
+
object-assign: 4.1.1
|
|
9913
|
+
vary: 1.1.2
|
|
9914
|
+
|
|
9874
9915
|
cosmiconfig@7.1.0:
|
|
9875
9916
|
dependencies:
|
|
9876
9917
|
'@types/parse-json': 4.0.2
|
|
@@ -9879,7 +9920,7 @@ snapshots:
|
|
|
9879
9920
|
path-type: 4.0.0
|
|
9880
9921
|
yaml: 1.10.2
|
|
9881
9922
|
|
|
9882
|
-
coze-coding-dev-sdk@0.
|
|
9923
|
+
coze-coding-dev-sdk@0.7.2(@types/pg@8.16.0)(openai@6.15.0(ws@8.18.3)(zod@4.3.2))(ws@8.18.3):
|
|
9883
9924
|
dependencies:
|
|
9884
9925
|
'@aws-sdk/client-s3': 3.965.0
|
|
9885
9926
|
'@aws-sdk/lib-storage': 3.965.0(@aws-sdk/client-s3@3.965.0)
|
|
@@ -9892,6 +9933,7 @@ snapshots:
|
|
|
9892
9933
|
drizzle-orm: 0.45.1(@types/pg@8.16.0)(pg@8.16.3)
|
|
9893
9934
|
ora: 9.0.0
|
|
9894
9935
|
pg: 8.16.3
|
|
9936
|
+
transliteration: 2.6.0
|
|
9895
9937
|
transitivePeerDependencies:
|
|
9896
9938
|
- '@aws-sdk/client-rds-data'
|
|
9897
9939
|
- '@cloudflare/workers-types'
|
|
@@ -10656,6 +10698,14 @@ snapshots:
|
|
|
10656
10698
|
expo: 54.0.30(@babel/core@7.28.5)(@expo/metro-runtime@6.1.2)(expo-router@6.0.21)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
10657
10699
|
expo-image-loader: 6.0.0(expo@54.0.30(@babel/core@7.28.5)(@expo/metro-runtime@6.1.2)(expo-router@6.0.21)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))
|
|
10658
10700
|
|
|
10701
|
+
expo-image@3.0.11(expo@54.0.30(@babel/core@7.28.5)(@expo/metro-runtime@6.1.2)(expo-router@6.0.21)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native-web@0.21.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0):
|
|
10702
|
+
dependencies:
|
|
10703
|
+
expo: 54.0.30(@babel/core@7.28.5)(@expo/metro-runtime@6.1.2)(expo-router@6.0.21)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
10704
|
+
react: 19.1.0
|
|
10705
|
+
react-native: 0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0)
|
|
10706
|
+
optionalDependencies:
|
|
10707
|
+
react-native-web: 0.21.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
|
|
10708
|
+
|
|
10659
10709
|
expo-keep-awake@15.0.8(expo@54.0.30(@babel/core@7.28.5)(@expo/metro-runtime@6.1.2)(expo-router@6.0.21)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react@19.1.0):
|
|
10660
10710
|
dependencies:
|
|
10661
10711
|
expo: 54.0.30(@babel/core@7.28.5)(@expo/metro-runtime@6.1.2)(expo-router@6.0.21)(react-native-webview@13.15.0(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(@babel/core@7.28.5)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0)
|
|
@@ -13532,6 +13582,8 @@ snapshots:
|
|
|
13532
13582
|
dependencies:
|
|
13533
13583
|
punycode: 2.3.1
|
|
13534
13584
|
|
|
13585
|
+
transliteration@2.6.0: {}
|
|
13586
|
+
|
|
13535
13587
|
ts-api-utils@2.3.0(typescript@5.9.3):
|
|
13536
13588
|
dependencies:
|
|
13537
13589
|
typescript: 5.9.3
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"express": "^4.22.1",
|
|
13
|
-
"
|
|
13
|
+
"cors": "^2.8.5",
|
|
14
|
+
"coze-coding-dev-sdk": "^0.7.2",
|
|
14
15
|
"dayjs": "^1.11.19",
|
|
15
16
|
"drizzle-orm": "^0.45.1",
|
|
16
17
|
"drizzle-zod": "^0.8.3",
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
"zod": "^4.2.1"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
23
|
+
"@types/cors": "^2.8.19",
|
|
22
24
|
"@types/express": "^5.0.6",
|
|
23
25
|
"tsx": "^4.21.0",
|
|
24
26
|
"@types/multer": "^2.0.0",
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import express from "express";
|
|
2
|
+
import cors from "cors";
|
|
2
3
|
|
|
3
4
|
const app = express();
|
|
4
5
|
const port = process.env.PORT || 9091;
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
// Middleware
|
|
8
|
+
app.use(cors());
|
|
9
|
+
app.use(express.json());
|
|
10
|
+
|
|
11
|
+
app.get('/api/v1/health', (req, res) => {
|
|
12
|
+
res.status(200).json({ status: 'ok' });
|
|
8
13
|
});
|
|
9
14
|
|
|
15
|
+
|
|
10
16
|
app.listen(port, () => {
|
|
11
17
|
console.log(`Server listening at http://localhost:${port}/`);
|
|
12
18
|
});
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import type { NextConfig } from 'next';
|
|
2
|
+
import path from 'path';
|
|
2
3
|
|
|
3
4
|
const nextConfig: NextConfig = {
|
|
5
|
+
outputFileTracingRoot: path.resolve(__dirname, '../../'),
|
|
4
6
|
/* config options here */
|
|
5
7
|
allowedDevOrigins: ['*.dev.coze.site'],
|
|
8
|
+
images: {
|
|
9
|
+
remotePatterns: [
|
|
10
|
+
{
|
|
11
|
+
protocol: 'https',
|
|
12
|
+
hostname: 'lf3-static.bytednsdoc.com',
|
|
13
|
+
pathname: '/**',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
},
|
|
6
17
|
};
|
|
7
18
|
|
|
8
19
|
export default nextConfig;
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
"dev": "bash ./scripts/dev.sh",
|
|
8
8
|
"preinstall": "npx only-allow pnpm",
|
|
9
9
|
"lint": "eslint",
|
|
10
|
-
"start": "bash ./scripts/start.sh"
|
|
10
|
+
"start": "bash ./scripts/start.sh",
|
|
11
|
+
"ts-check": "tsc -p tsconfig.json"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@aws-sdk/client-s3": "^3.958.0",
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
"class-variance-authority": "^0.7.1",
|
|
43
44
|
"clsx": "^2.1.1",
|
|
44
45
|
"cmdk": "^1.1.1",
|
|
45
|
-
"coze-coding-dev-sdk": "^0.
|
|
46
|
+
"coze-coding-dev-sdk": "^0.7.0",
|
|
46
47
|
"date-fns": "^4.1.0",
|
|
47
48
|
"drizzle-kit": "^0.31.8",
|
|
48
49
|
"drizzle-orm": "^0.45.1",
|
|
@@ -66,8 +67,6 @@
|
|
|
66
67
|
"zod": "^4.3.5"
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
|
-
"@react-dev-inspector/babel-plugin": "^2.0.1",
|
|
70
|
-
"@react-dev-inspector/middleware": "^2.0.1",
|
|
71
70
|
"@tailwindcss/postcss": "^4",
|
|
72
71
|
"@types/node": "^20",
|
|
73
72
|
"@types/pg": "^8.16.0",
|
|
@@ -76,7 +75,6 @@
|
|
|
76
75
|
"eslint": "^9",
|
|
77
76
|
"eslint-config-next": "16.1.1",
|
|
78
77
|
"only-allow": "^1.2.2",
|
|
79
|
-
"react-dev-inspector": "^2.0.1",
|
|
80
78
|
"shadcn": "latest",
|
|
81
79
|
"tailwindcss": "^4",
|
|
82
80
|
"typescript": "^5"
|