@kmlckj/licos-ai-cli 1.0.15 → 1.0.18
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__/agent/pyproject.toml +2 -2
- package/lib/__templates__/agent/requirements.txt +1 -1
- package/lib/__templates__/expo/.licosproj/scripts/prod_build.sh +7 -5
- package/lib/__templates__/expo/client/app.config.ts +12 -1
- package/lib/__templates__/expo/pnpm-lock.yaml +12942 -12942
- package/lib/__templates__/expo/server/package.json +2 -2
- package/lib/__templates__/nextjs/next.config.ts +1 -1
- package/lib/__templates__/nextjs/package.json +2 -2
- package/lib/__templates__/nextjs/pnpm-lock.yaml +6 -6
- package/lib/__templates__/nextjs/src/server.ts +1 -1
- package/lib/__templates__/nuxt-vue/nuxt.config.ts +29 -1
- package/lib/__templates__/nuxt-vue/package.json +2 -2
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +6 -6
- package/lib/__templates__/taro/config/index.ts +54 -1
- package/lib/__templates__/taro/pnpm-lock.yaml +21212 -21212
- package/lib/__templates__/taro/server/package.json +8 -8
- package/lib/__templates__/vite/package.json +2 -2
- package/lib/__templates__/vite/pnpm-lock.yaml +6 -6
- package/lib/__templates__/vite/vite.config.ts +30 -1
- package/lib/__templates__/workflow/pyproject.toml +2 -2
- package/lib/__templates__/workflow/requirements.txt +1 -1
- package/package.json +1 -1
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"start:prod": "node dist/main"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@kmlckj/licos-dev-sdk": "0.2.5",
|
|
14
|
+
"@kmlckj/licos-dev-sdk": "0.2.5",
|
|
15
15
|
"@kmlckj/licos-platform-sdk": "0.6.7",
|
|
16
16
|
"@nestjs/common": "^10.4.15",
|
|
17
17
|
"@nestjs/core": "^10.4.15",
|
|
18
18
|
"@nestjs/platform-express": "^10.4.15",
|
|
19
|
-
"dotenv": "^17.2.3",
|
|
20
|
-
"express": "5.2.1",
|
|
21
|
-
"reflect-metadata": "0.2.2",
|
|
22
|
-
"rxjs": "^7.8.1",
|
|
23
|
-
"zod": "^4.3.5"
|
|
24
|
-
},
|
|
19
|
+
"dotenv": "^17.2.3",
|
|
20
|
+
"express": "5.2.1",
|
|
21
|
+
"reflect-metadata": "0.2.2",
|
|
22
|
+
"rxjs": "^7.8.1",
|
|
23
|
+
"zod": "^4.3.5"
|
|
24
|
+
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@nestjs/cli": "^10.4.9",
|
|
27
27
|
"@nestjs/schematics": "^10.2.3",
|
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
"@types/node": "^22.10.2",
|
|
30
30
|
"typescript": "^5.7.2"
|
|
31
31
|
}
|
|
32
|
-
}
|
|
32
|
+
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"ts-check": "tsc -p tsconfig.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@kmlckj/licos-dev-sdk": "0.2.5",
|
|
17
|
+
"@kmlckj/licos-dev-sdk": "0.2.5",
|
|
18
18
|
"@kmlckj/licos-platform-sdk": "0.6.7",
|
|
19
19
|
"dotenv": "^17.2.3",
|
|
20
20
|
"express": "^4.21.2"
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"is-generator-function": "1.0.10"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -13,8 +13,8 @@ importers:
|
|
|
13
13
|
.:
|
|
14
14
|
dependencies:
|
|
15
15
|
'@kmlckj/licos-dev-sdk':
|
|
16
|
-
specifier: 0.2.
|
|
17
|
-
version: 0.2.
|
|
16
|
+
specifier: 0.2.5
|
|
17
|
+
version: 0.2.5
|
|
18
18
|
'@kmlckj/licos-platform-sdk':
|
|
19
19
|
specifier: 0.6.7
|
|
20
20
|
version: 0.6.7
|
|
@@ -291,8 +291,8 @@ packages:
|
|
|
291
291
|
'@jridgewell/trace-mapping@0.3.31':
|
|
292
292
|
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
|
|
293
293
|
|
|
294
|
-
'@kmlckj/licos-dev-sdk@0.2.
|
|
295
|
-
resolution: {integrity: sha512-
|
|
294
|
+
'@kmlckj/licos-dev-sdk@0.2.5':
|
|
295
|
+
resolution: {integrity: sha512-bkju53I3rAgCT4BlF3RjbzQreihoQR6M/9XIoC+/GSluqQOpwwXAkUO2nBCKkwIGd2I61rLizjsaEXi/QviXrg==}
|
|
296
296
|
|
|
297
297
|
'@kmlckj/licos-platform-sdk@0.6.7':
|
|
298
298
|
resolution: {integrity: sha512-7fOUquWSGWWVcu2u+3fZv5GmisZ1yd4zeWdmGodNWHfAgAqJt/03QR1SOWIWMDVWoZYANShRyIVj93vZwzSzAA==}
|
|
@@ -1710,7 +1710,7 @@ snapshots:
|
|
|
1710
1710
|
'@jridgewell/resolve-uri': 3.1.2
|
|
1711
1711
|
'@jridgewell/sourcemap-codec': 1.5.5
|
|
1712
1712
|
|
|
1713
|
-
'@kmlckj/licos-dev-sdk@0.2.
|
|
1713
|
+
'@kmlckj/licos-dev-sdk@0.2.5': {}
|
|
1714
1714
|
|
|
1715
1715
|
'@kmlckj/licos-platform-sdk@0.6.7': {}
|
|
1716
1716
|
|
|
@@ -2970,4 +2970,4 @@ snapshots:
|
|
|
2970
2970
|
|
|
2971
2971
|
word-wrap@1.2.5: {}
|
|
2972
2972
|
|
|
2973
|
-
yocto-queue@0.1.0: {}
|
|
2973
|
+
yocto-queue@0.1.0: {}
|
|
@@ -14,13 +14,42 @@ function isProdProjectEnv(value?: string): boolean {
|
|
|
14
14
|
const deployBasePath = process.env.VITE_BASE_PATH || process.env.BASE_PATH;
|
|
15
15
|
const shouldUseBasePath = Boolean(deployBasePath) || isProdProjectEnv(process.env.LICOS_PROJECT_ENV);
|
|
16
16
|
|
|
17
|
+
function parsePort(value?: string): number | undefined {
|
|
18
|
+
const port = Number.parseInt(value || '', 10);
|
|
19
|
+
return Number.isInteger(port) && port > 0 ? port : undefined;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function createPreviewHmrConfig() {
|
|
23
|
+
if (!process.env.LICOS_PREVIEW_BASE_PATH) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const hmr: Record<string, unknown> = {
|
|
27
|
+
overlay: true,
|
|
28
|
+
path: process.env.LICOS_PREVIEW_HMR_PATH || '/hot/vite-hmr',
|
|
29
|
+
timeout: 30000,
|
|
30
|
+
};
|
|
31
|
+
if (process.env.LICOS_PREVIEW_HMR_HOST) {
|
|
32
|
+
hmr.host = process.env.LICOS_PREVIEW_HMR_HOST;
|
|
33
|
+
}
|
|
34
|
+
if (process.env.LICOS_PREVIEW_HMR_PROTOCOL) {
|
|
35
|
+
hmr.protocol = process.env.LICOS_PREVIEW_HMR_PROTOCOL;
|
|
36
|
+
}
|
|
37
|
+
const clientPort = parsePort(process.env.LICOS_PREVIEW_HMR_CLIENT_PORT);
|
|
38
|
+
if (clientPort) {
|
|
39
|
+
hmr.clientPort = clientPort;
|
|
40
|
+
}
|
|
41
|
+
return hmr;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const previewHmrConfig = createPreviewHmrConfig();
|
|
45
|
+
|
|
17
46
|
export default defineConfig({
|
|
18
47
|
base: shouldUseBasePath ? normalizeBasePath(deployBasePath) : '/',
|
|
19
48
|
server: {
|
|
20
49
|
port: <%= port %>,
|
|
21
50
|
host: '0.0.0.0',
|
|
22
51
|
allowedHosts: true,
|
|
23
|
-
hmr: {
|
|
52
|
+
hmr: previewHmrConfig || {
|
|
24
53
|
overlay: true,
|
|
25
54
|
path: '/hot/vite-hmr',
|
|
26
55
|
port: <%= hmrPort %>,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
licos-agent-runtime>=0.2.25
|
|
1
|
+
licos-agent-runtime>=0.2.25
|