@kmlckj/licos-ai-cli 1.7.26 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/lib/__templates__/agent/SDK.md +4 -0
- package/lib/__templates__/agent/pyproject.toml +2 -2
- package/lib/__templates__/agent/requirements.txt +2 -2
- package/lib/__templates__/expo/pnpm-lock.yaml +6 -6
- package/lib/__templates__/expo/server/package.json +1 -1
- package/lib/__templates__/nextjs/SDK.md +4 -0
- package/lib/__templates__/nextjs/package.json +1 -1
- package/lib/__templates__/nextjs/pnpm-lock.yaml +6 -6
- package/lib/__templates__/nuxt-vue/SDK.md +4 -0
- package/lib/__templates__/nuxt-vue/package.json +1 -1
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +6 -6
- package/lib/__templates__/taro/package.json +120 -120
- package/lib/__templates__/taro/pnpm-lock.yaml +6 -6
- package/lib/__templates__/taro/server/package.json +1 -1
- package/lib/__templates__/vite/SDK.md +4 -0
- package/lib/__templates__/vite/package.json +1 -1
- package/lib/__templates__/vite/pnpm-lock.yaml +6 -6
- package/lib/__templates__/workflow/SDK.md +4 -0
- package/lib/__templates__/workflow/pyproject.toml +2 -2
- package/lib/__templates__/workflow/requirements.txt +2 -2
- package/lib/cli.js +1 -1
- package/lib/project-preparation-env.cjs +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
LICOS AI 编码工作区 CLI 工具,提供基于前端、移动端和智能体技术栈的项目初始化和开发工具链。
|
|
4
4
|
|
|
5
|
+
云端预览由平台通过 `LICOS_PREVIEW_NONINTERACTIVE=1` 启用无人值守安装:`dev.build` 使用 `CI=true`,`dev.run` 保持开发服务的文件监听和热更新。本地 CLI 不改变用户原有的 CI 设置。旧项目的 TOML、YAML、JSON 配置和项目内 SDK 版本继续使用。
|
|
6
|
+
|
|
7
|
+
`lib/cli.js` 是现有发布包的合并产物;独立维护的运行环境逻辑放在 `lib/project-preparation-env.cjs`,避免继续扩大合并文件。
|
|
8
|
+
|
|
5
9
|
## 特性
|
|
6
10
|
|
|
7
11
|
- 快速初始化: 一键创建预配置的项目模板
|
|
@@ -37,3 +37,7 @@
|
|
|
37
37
|
老版本没有索引时列出其实际文档、查看包描述及源码签名,不从另一版本复制 API。确需新能力时按 [UPGRADING.md](UPGRADING.md) 制定升级与验收步骤;不因查文档自动升级。
|
|
38
38
|
|
|
39
39
|
[README.md](README.md) 介绍项目结构;[examples/README.md](examples/README.md) 介绍模板示例接入;[DATABASE.md](DATABASE.md) 记录持久化准备;AGENTS.md 记录本项目已实现内容和用户决定。
|
|
40
|
+
|
|
41
|
+
## 通用模型服务
|
|
42
|
+
|
|
43
|
+
使用时序、表格等全局模型时,查实际安装 `licos-dev-sdk` 的 `docs/model-services.md`,通过 `ModelServiceClient` 读取模型输入输出定义再调用。外部模型授权由平台配置。
|
|
@@ -4,9 +4,9 @@ version = "0.1.0"
|
|
|
4
4
|
description = "LICOS LangGraph agent project"
|
|
5
5
|
requires-python = ">=3.11"
|
|
6
6
|
dependencies = [
|
|
7
|
-
"licos-agent-runtime>=0.6.
|
|
7
|
+
"licos-agent-runtime>=0.6.34",
|
|
8
8
|
"licos-platform-sdk>=0.9.8",
|
|
9
|
-
"licos-dev-sdk>=0.
|
|
9
|
+
"licos-dev-sdk>=0.7.1",
|
|
10
10
|
]
|
|
11
11
|
|
|
12
12
|
[tool.uv]
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
licos-agent-runtime>=0.6.
|
|
1
|
+
licos-agent-runtime>=0.6.34
|
|
2
2
|
licos-platform-sdk>=0.9.8
|
|
3
|
-
licos-dev-sdk>=0.
|
|
3
|
+
licos-dev-sdk>=0.7.1
|
|
@@ -266,8 +266,8 @@ importers:
|
|
|
266
266
|
server:
|
|
267
267
|
dependencies:
|
|
268
268
|
'@kmlckj/licos-dev-sdk':
|
|
269
|
-
specifier: 0.
|
|
270
|
-
version: 0.
|
|
269
|
+
specifier: 0.5.0
|
|
270
|
+
version: 0.5.0
|
|
271
271
|
'@kmlckj/licos-platform-sdk':
|
|
272
272
|
specifier: 0.15.5
|
|
273
273
|
version: 0.15.5
|
|
@@ -1324,9 +1324,9 @@ packages:
|
|
|
1324
1324
|
'@jridgewell/trace-mapping@0.3.31':
|
|
1325
1325
|
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
|
|
1326
1326
|
|
|
1327
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
1328
|
-
resolution: {
|
|
1329
|
-
engines: {node: '>=18'}
|
|
1327
|
+
'@kmlckj/licos-dev-sdk@0.5.0':
|
|
1328
|
+
resolution: {tarball: https://registry.npmmirror.com/@kmlckj/licos-dev-sdk/-/licos-dev-sdk-0.5.0.tgz}
|
|
1329
|
+
engines: {node: '>=18.17'}
|
|
1330
1330
|
|
|
1331
1331
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
1332
1332
|
resolution: {integrity: sha512-Ywzi3ktucJtpI3BM4G5TjT4G6I4iMLBAKlF4fXcNPcUZ2cRUlzRSPwqQsD5eQDUMLycqwniYP4W7mteNZG0K1Q==}
|
|
@@ -7510,7 +7510,7 @@ snapshots:
|
|
|
7510
7510
|
'@jridgewell/resolve-uri': 3.1.2
|
|
7511
7511
|
'@jridgewell/sourcemap-codec': 1.5.5
|
|
7512
7512
|
|
|
7513
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
7513
|
+
'@kmlckj/licos-dev-sdk@0.5.0': {}
|
|
7514
7514
|
|
|
7515
7515
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
7516
7516
|
dependencies:
|
|
@@ -13,3 +13,7 @@ node --input-type=module -e 'import { fileURLToPath } from "node:url"; console.l
|
|
|
13
13
|
服务端接入放在 `src/app/api/` 路由或 `src/lib/` 的服务端模块;浏览器组件放在 `src/components/`。
|
|
14
14
|
|
|
15
15
|
接入步骤与协议见上述 SDK 文档;开发约束沿用项目规则。这里只维护本模板的目录与文档入口。
|
|
16
|
+
|
|
17
|
+
## 通用模型服务
|
|
18
|
+
|
|
19
|
+
全局模型目录、输入输出定义和调用使用服务端 `@kmlckj/licos-dev-sdk` 的 `ModelServiceClient`,查实际安装包 README 和类型声明。浏览器通过项目自身后端调用,外部模型授权由平台配置。
|
|
@@ -18,8 +18,8 @@ importers:
|
|
|
18
18
|
specifier: ^5.2.2
|
|
19
19
|
version: 5.4.0(react-hook-form@7.77.0(react@19.2.3))
|
|
20
20
|
'@kmlckj/licos-dev-sdk':
|
|
21
|
-
specifier: 0.
|
|
22
|
-
version: 0.
|
|
21
|
+
specifier: 0.5.0
|
|
22
|
+
version: 0.5.0
|
|
23
23
|
'@kmlckj/licos-platform-sdk':
|
|
24
24
|
specifier: 0.15.5
|
|
25
25
|
version: 0.15.5
|
|
@@ -1380,9 +1380,9 @@ packages:
|
|
|
1380
1380
|
'@jridgewell/trace-mapping@0.3.31':
|
|
1381
1381
|
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
|
|
1382
1382
|
|
|
1383
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
1384
|
-
resolution: {
|
|
1385
|
-
engines: {node: '>=18'}
|
|
1383
|
+
'@kmlckj/licos-dev-sdk@0.5.0':
|
|
1384
|
+
resolution: {tarball: https://registry.npmmirror.com/@kmlckj/licos-dev-sdk/-/licos-dev-sdk-0.5.0.tgz}
|
|
1385
|
+
engines: {node: '>=18.17'}
|
|
1386
1386
|
|
|
1387
1387
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
1388
1388
|
resolution: {integrity: sha512-Ywzi3ktucJtpI3BM4G5TjT4G6I4iMLBAKlF4fXcNPcUZ2cRUlzRSPwqQsD5eQDUMLycqwniYP4W7mteNZG0K1Q==}
|
|
@@ -6713,7 +6713,7 @@ snapshots:
|
|
|
6713
6713
|
'@jridgewell/resolve-uri': 3.1.2
|
|
6714
6714
|
'@jridgewell/sourcemap-codec': 1.5.5
|
|
6715
6715
|
|
|
6716
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
6716
|
+
'@kmlckj/licos-dev-sdk@0.5.0': {}
|
|
6717
6717
|
|
|
6718
6718
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
6719
6719
|
dependencies:
|
|
@@ -13,3 +13,7 @@ node --input-type=module -e 'import { fileURLToPath } from "node:url"; console.l
|
|
|
13
13
|
服务端接入放在 `server/api/` 与 `server/` 模块;浏览器页面与组件使用当前 Nuxt 目录结构。
|
|
14
14
|
|
|
15
15
|
接入步骤与协议见上述 SDK 文档;开发约束沿用项目规则。这里只维护本模板的目录与文档入口。
|
|
16
|
+
|
|
17
|
+
## 通用模型服务
|
|
18
|
+
|
|
19
|
+
全局模型目录、输入输出定义和调用使用服务端 `@kmlckj/licos-dev-sdk` 的 `ModelServiceClient`,查实际安装包 README 和类型声明。浏览器通过项目自身后端调用,外部模型授权由平台配置。
|
|
@@ -13,8 +13,8 @@ importers:
|
|
|
13
13
|
.:
|
|
14
14
|
dependencies:
|
|
15
15
|
'@kmlckj/licos-dev-sdk':
|
|
16
|
-
specifier: 0.
|
|
17
|
-
version: 0.
|
|
16
|
+
specifier: 0.5.0
|
|
17
|
+
version: 0.5.0
|
|
18
18
|
'@kmlckj/licos-platform-sdk':
|
|
19
19
|
specifier: 0.15.5
|
|
20
20
|
version: 0.15.5
|
|
@@ -731,9 +731,9 @@ packages:
|
|
|
731
731
|
'@jridgewell/trace-mapping@0.3.31':
|
|
732
732
|
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
|
|
733
733
|
|
|
734
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
735
|
-
resolution: {
|
|
736
|
-
engines: {node: '>=18'}
|
|
734
|
+
'@kmlckj/licos-dev-sdk@0.5.0':
|
|
735
|
+
resolution: {tarball: https://registry.npmmirror.com/@kmlckj/licos-dev-sdk/-/licos-dev-sdk-0.5.0.tgz}
|
|
736
|
+
engines: {node: '>=18.17'}
|
|
737
737
|
|
|
738
738
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
739
739
|
resolution: {integrity: sha512-Ywzi3ktucJtpI3BM4G5TjT4G6I4iMLBAKlF4fXcNPcUZ2cRUlzRSPwqQsD5eQDUMLycqwniYP4W7mteNZG0K1Q==}
|
|
@@ -4765,7 +4765,7 @@ snapshots:
|
|
|
4765
4765
|
'@jridgewell/resolve-uri': 3.1.2
|
|
4766
4766
|
'@jridgewell/sourcemap-codec': 1.5.5
|
|
4767
4767
|
|
|
4768
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
4768
|
+
'@kmlckj/licos-dev-sdk@0.5.0': {}
|
|
4769
4769
|
|
|
4770
4770
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
4771
4771
|
dependencies:
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "<%= appName %>",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"description": "LICOS Mini Program Application",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,server -c red,blue,green,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:server\"",
|
|
8
|
-
"build:all": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,weapp,tt,server -c red,blue,green,yellow,cyan,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:weapp\" \"pnpm build:tt\" \"pnpm build:server\"",
|
|
9
|
-
"build:pack": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n weapp,tt -c yellow,cyan \"pnpm build:weapp\" \"pnpm build:tt\"",
|
|
10
|
-
"build:server": "pnpm --filter server build",
|
|
11
|
-
"build:tt": "taro build --type tt",
|
|
12
|
-
"build:weapp": "taro build --type weapp",
|
|
13
|
-
"build:web": "taro build --type h5",
|
|
14
|
-
"dev": "pnpm exec concurrently --kill-others --kill-signal SIGKILL -n web,server -c blue,green \"pnpm dev:web\" \"pnpm dev:server\"",
|
|
15
|
-
"dev:server": "pnpm --filter server dev",
|
|
16
|
-
"dev:tt": "taro build --type tt --watch",
|
|
17
|
-
"dev:weapp": "taro build --type weapp --watch",
|
|
18
|
-
"dev:web": "taro build --type h5 --watch",
|
|
19
|
-
"ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/concurrently','node_modules/.bin/tsc','node_modules/.bin/eslint','node_modules/.bin/taro']; process.exit(bins.every((p)=>fs.existsSync(p)||fs.existsSync(p+'.cmd'))?0:1)\" || pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only",
|
|
20
|
-
"prebuild": "pnpm run ensure:deps",
|
|
21
|
-
"predev": "pnpm run ensure:deps",
|
|
22
|
-
"preinstall": "node -e \"const ua=process.env.npm_config_user_agent||''; if(!ua.includes('pnpm')){console.error('Use pnpm to install dependencies.'); process.exit(1)}\"",
|
|
23
|
-
"postinstall": "weapp-tw patch",
|
|
24
|
-
"kill:all": "pkill -9 -f 'concurrently' 2>/dev/null || true; pkill -9 -f 'nest start' 2>/dev/null || true; pkill -9 -f 'taro build' 2>/dev/null || true; pkill -9 -f 'node.*dev' 2>/dev/null || true; echo 'All dev processes cleaned'",
|
|
25
|
-
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\"",
|
|
26
|
-
"lint:build": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\" --max-warnings=0",
|
|
27
|
-
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\" --fix",
|
|
28
|
-
"new": "taro new",
|
|
29
|
-
"preview:tt": "taro build --type tt --preview",
|
|
30
|
-
"preview:weapp": "taro build --type weapp --preview",
|
|
31
|
-
"tsc": "pnpm exec tsc --noEmit --skipLibCheck",
|
|
32
|
-
"validate": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc -c red,blue \"pnpm lint:build\" \"pnpm tsc\""
|
|
33
|
-
},
|
|
34
|
-
"lint-staged": {
|
|
35
|
-
"src/**/*.{js,jsx,ts,tsx,css}": [
|
|
36
|
-
"eslint"
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"browserslist": [
|
|
40
|
-
"last 3 versions",
|
|
41
|
-
"Android >= 4.1",
|
|
42
|
-
"ios >= 8"
|
|
43
|
-
],
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@babel/runtime": "^7.24.4",
|
|
46
|
-
"@tarojs/components": "4.2.1",
|
|
47
|
-
"@tarojs/helper": "4.2.1",
|
|
48
|
-
"@tarojs/plugin-framework-react": "4.2.1",
|
|
49
|
-
"@tarojs/plugin-platform-h5": "4.2.1",
|
|
50
|
-
"@tarojs/plugin-platform-tt": "4.2.1",
|
|
51
|
-
"@tarojs/plugin-platform-weapp": "4.2.1",
|
|
52
|
-
"@tarojs/react": "4.2.1",
|
|
53
|
-
"@tarojs/runtime": "4.2.1",
|
|
54
|
-
"@tarojs/shared": "4.2.1",
|
|
55
|
-
"@tarojs/taro": "4.2.1",
|
|
56
|
-
"class-variance-authority": "^0.7.1",
|
|
57
|
-
"clsx": "^2.1.1",
|
|
58
|
-
"date-fns": "^4.1.0",
|
|
59
|
-
"lucide-react-taro": "^1.4.1",
|
|
60
|
-
"react": "^18.0.0",
|
|
61
|
-
"react-dom": "^18.0.0",
|
|
62
|
-
"tailwind-merge": "^3.5.0",
|
|
63
|
-
"tailwindcss-animate": "^1.0.7",
|
|
64
|
-
"zustand": "^5.0.9"
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@babel/core": "^7.24.4",
|
|
68
|
-
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
69
|
-
"@babel/preset-react": "^7.24.1",
|
|
70
|
-
"@eslint/eslintrc": "^3.3.1",
|
|
71
|
-
"@tailwindcss/postcss": "^4.1.18",
|
|
72
|
-
"@tarojs/cli": "4.2.1",
|
|
73
|
-
"@tarojs/plugin-generator": "4.2.1",
|
|
74
|
-
"@tarojs/plugin-mini-ci": "4.2.1",
|
|
75
|
-
"@tarojs/vite-runner": "4.2.1",
|
|
76
|
-
"@types/minimatch": "^5",
|
|
77
|
-
"@types/react": "^18.0.0",
|
|
78
|
-
"@vitejs/plugin-react": "^4.3.0",
|
|
79
|
-
"babel-preset-taro": "4.2.1",
|
|
80
|
-
"concurrently": "^9.2.1",
|
|
81
|
-
"dotenv": "^17.2.3",
|
|
82
|
-
"eslint": "^8.57.0",
|
|
83
|
-
"eslint-config-taro": "4.2.1",
|
|
84
|
-
"eslint-plugin-react": "^7.34.1",
|
|
85
|
-
"eslint-plugin-react-hooks": "^4.4.0",
|
|
86
|
-
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
87
|
-
"less": "^4.2.0",
|
|
88
|
-
"lint-staged": "^16.1.2",
|
|
89
|
-
"miniprogram-ci": "^2.1.26",
|
|
90
|
-
"postcss": "^8.5.6",
|
|
91
|
-
"react-refresh": "^0.14.0",
|
|
92
|
-
"stylelint": "^16.4.0",
|
|
93
|
-
"stylelint-config-standard": "^38.0.0",
|
|
94
|
-
"tailwindcss": "^4.1.18",
|
|
95
|
-
"terser": "^5.30.4",
|
|
96
|
-
"tt-ide-cli": "^0.1.31",
|
|
97
|
-
"typescript": "^5.4.5",
|
|
98
|
-
"vite": "^4.2.0",
|
|
99
|
-
"weapp-tailwindcss": "^4.10.3",
|
|
100
|
-
"@tarojs/binding": "4.2.1"
|
|
101
|
-
},
|
|
102
|
-
"packageManager": "pnpm@9.0.0",
|
|
103
|
-
"engines": {
|
|
104
|
-
"pnpm": ">=9.0.0"
|
|
105
|
-
},
|
|
106
|
-
"pnpm": {
|
|
107
|
-
"overrides": {
|
|
108
|
-
"confbox": "0.2.2",
|
|
109
|
-
"decode-uri-component": "0.2.2",
|
|
110
|
-
"regenerate-unicode-properties": "10.2.2",
|
|
111
|
-
"reflect-metadata": "0.2.2"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"templateInfo": {
|
|
115
|
-
"name": "default",
|
|
116
|
-
"typescript": true,
|
|
117
|
-
"css": "Less",
|
|
118
|
-
"framework": "React"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "<%= appName %>",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "LICOS Mini Program Application",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,server -c red,blue,green,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:server\"",
|
|
8
|
+
"build:all": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,weapp,tt,server -c red,blue,green,yellow,cyan,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:weapp\" \"pnpm build:tt\" \"pnpm build:server\"",
|
|
9
|
+
"build:pack": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n weapp,tt -c yellow,cyan \"pnpm build:weapp\" \"pnpm build:tt\"",
|
|
10
|
+
"build:server": "pnpm --filter server build",
|
|
11
|
+
"build:tt": "taro build --type tt",
|
|
12
|
+
"build:weapp": "taro build --type weapp",
|
|
13
|
+
"build:web": "taro build --type h5",
|
|
14
|
+
"dev": "pnpm exec concurrently --kill-others --kill-signal SIGKILL -n web,server -c blue,green \"pnpm dev:web\" \"pnpm dev:server\"",
|
|
15
|
+
"dev:server": "pnpm --filter server dev",
|
|
16
|
+
"dev:tt": "taro build --type tt --watch",
|
|
17
|
+
"dev:weapp": "taro build --type weapp --watch",
|
|
18
|
+
"dev:web": "taro build --type h5 --watch",
|
|
19
|
+
"ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/concurrently','node_modules/.bin/tsc','node_modules/.bin/eslint','node_modules/.bin/taro']; process.exit(bins.every((p)=>fs.existsSync(p)||fs.existsSync(p+'.cmd'))?0:1)\" || pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only",
|
|
20
|
+
"prebuild": "pnpm run ensure:deps",
|
|
21
|
+
"predev": "pnpm run ensure:deps",
|
|
22
|
+
"preinstall": "node -e \"const ua=process.env.npm_config_user_agent||''; if(!ua.includes('pnpm')){console.error('Use pnpm to install dependencies.'); process.exit(1)}\"",
|
|
23
|
+
"postinstall": "weapp-tw patch",
|
|
24
|
+
"kill:all": "pkill -9 -f 'concurrently' 2>/dev/null || true; pkill -9 -f 'nest start' 2>/dev/null || true; pkill -9 -f 'taro build' 2>/dev/null || true; pkill -9 -f 'node.*dev' 2>/dev/null || true; echo 'All dev processes cleaned'",
|
|
25
|
+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\"",
|
|
26
|
+
"lint:build": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\" --max-warnings=0",
|
|
27
|
+
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\" --fix",
|
|
28
|
+
"new": "taro new",
|
|
29
|
+
"preview:tt": "taro build --type tt --preview",
|
|
30
|
+
"preview:weapp": "taro build --type weapp --preview",
|
|
31
|
+
"tsc": "pnpm exec tsc --noEmit --skipLibCheck",
|
|
32
|
+
"validate": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc -c red,blue \"pnpm lint:build\" \"pnpm tsc\""
|
|
33
|
+
},
|
|
34
|
+
"lint-staged": {
|
|
35
|
+
"src/**/*.{js,jsx,ts,tsx,css}": [
|
|
36
|
+
"eslint"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"browserslist": [
|
|
40
|
+
"last 3 versions",
|
|
41
|
+
"Android >= 4.1",
|
|
42
|
+
"ios >= 8"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@babel/runtime": "^7.24.4",
|
|
46
|
+
"@tarojs/components": "4.2.1",
|
|
47
|
+
"@tarojs/helper": "4.2.1",
|
|
48
|
+
"@tarojs/plugin-framework-react": "4.2.1",
|
|
49
|
+
"@tarojs/plugin-platform-h5": "4.2.1",
|
|
50
|
+
"@tarojs/plugin-platform-tt": "4.2.1",
|
|
51
|
+
"@tarojs/plugin-platform-weapp": "4.2.1",
|
|
52
|
+
"@tarojs/react": "4.2.1",
|
|
53
|
+
"@tarojs/runtime": "4.2.1",
|
|
54
|
+
"@tarojs/shared": "4.2.1",
|
|
55
|
+
"@tarojs/taro": "4.2.1",
|
|
56
|
+
"class-variance-authority": "^0.7.1",
|
|
57
|
+
"clsx": "^2.1.1",
|
|
58
|
+
"date-fns": "^4.1.0",
|
|
59
|
+
"lucide-react-taro": "^1.4.1",
|
|
60
|
+
"react": "^18.0.0",
|
|
61
|
+
"react-dom": "^18.0.0",
|
|
62
|
+
"tailwind-merge": "^3.5.0",
|
|
63
|
+
"tailwindcss-animate": "^1.0.7",
|
|
64
|
+
"zustand": "^5.0.9"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@babel/core": "^7.24.4",
|
|
68
|
+
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
69
|
+
"@babel/preset-react": "^7.24.1",
|
|
70
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
71
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
72
|
+
"@tarojs/cli": "4.2.1",
|
|
73
|
+
"@tarojs/plugin-generator": "4.2.1",
|
|
74
|
+
"@tarojs/plugin-mini-ci": "4.2.1",
|
|
75
|
+
"@tarojs/vite-runner": "4.2.1",
|
|
76
|
+
"@types/minimatch": "^5",
|
|
77
|
+
"@types/react": "^18.0.0",
|
|
78
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
79
|
+
"babel-preset-taro": "4.2.1",
|
|
80
|
+
"concurrently": "^9.2.1",
|
|
81
|
+
"dotenv": "^17.2.3",
|
|
82
|
+
"eslint": "^8.57.0",
|
|
83
|
+
"eslint-config-taro": "4.2.1",
|
|
84
|
+
"eslint-plugin-react": "^7.34.1",
|
|
85
|
+
"eslint-plugin-react-hooks": "^4.4.0",
|
|
86
|
+
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
87
|
+
"less": "^4.2.0",
|
|
88
|
+
"lint-staged": "^16.1.2",
|
|
89
|
+
"miniprogram-ci": "^2.1.26",
|
|
90
|
+
"postcss": "^8.5.6",
|
|
91
|
+
"react-refresh": "^0.14.0",
|
|
92
|
+
"stylelint": "^16.4.0",
|
|
93
|
+
"stylelint-config-standard": "^38.0.0",
|
|
94
|
+
"tailwindcss": "^4.1.18",
|
|
95
|
+
"terser": "^5.30.4",
|
|
96
|
+
"tt-ide-cli": "^0.1.31",
|
|
97
|
+
"typescript": "^5.4.5",
|
|
98
|
+
"vite": "^4.2.0",
|
|
99
|
+
"weapp-tailwindcss": "^4.10.3",
|
|
100
|
+
"@tarojs/binding": "4.2.1"
|
|
101
|
+
},
|
|
102
|
+
"packageManager": "pnpm@9.0.0",
|
|
103
|
+
"engines": {
|
|
104
|
+
"pnpm": ">=9.0.0"
|
|
105
|
+
},
|
|
106
|
+
"pnpm": {
|
|
107
|
+
"overrides": {
|
|
108
|
+
"confbox": "0.2.2",
|
|
109
|
+
"decode-uri-component": "0.2.2",
|
|
110
|
+
"regenerate-unicode-properties": "10.2.2",
|
|
111
|
+
"reflect-metadata": "0.2.2"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"templateInfo": {
|
|
115
|
+
"name": "default",
|
|
116
|
+
"typescript": true,
|
|
117
|
+
"css": "Less",
|
|
118
|
+
"framework": "React"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -181,8 +181,8 @@ importers:
|
|
|
181
181
|
server:
|
|
182
182
|
dependencies:
|
|
183
183
|
'@kmlckj/licos-dev-sdk':
|
|
184
|
-
specifier: 0.
|
|
185
|
-
version: 0.
|
|
184
|
+
specifier: 0.5.0
|
|
185
|
+
version: 0.5.0
|
|
186
186
|
'@kmlckj/licos-platform-sdk':
|
|
187
187
|
specifier: 0.15.5
|
|
188
188
|
version: 0.15.5
|
|
@@ -2590,9 +2590,9 @@ packages:
|
|
|
2590
2590
|
'@keyv/serialize@1.1.1':
|
|
2591
2591
|
resolution: {integrity: sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==}
|
|
2592
2592
|
|
|
2593
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
2594
|
-
resolution: {
|
|
2595
|
-
engines: {node: '>=18'}
|
|
2593
|
+
'@kmlckj/licos-dev-sdk@0.5.0':
|
|
2594
|
+
resolution: {tarball: https://registry.npmmirror.com/@kmlckj/licos-dev-sdk/-/licos-dev-sdk-0.5.0.tgz}
|
|
2595
|
+
engines: {node: '>=18.17'}
|
|
2596
2596
|
|
|
2597
2597
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
2598
2598
|
resolution: {integrity: sha512-Ywzi3ktucJtpI3BM4G5TjT4G6I4iMLBAKlF4fXcNPcUZ2cRUlzRSPwqQsD5eQDUMLycqwniYP4W7mteNZG0K1Q==}
|
|
@@ -12408,7 +12408,7 @@ snapshots:
|
|
|
12408
12408
|
|
|
12409
12409
|
'@keyv/serialize@1.1.1': {}
|
|
12410
12410
|
|
|
12411
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
12411
|
+
'@kmlckj/licos-dev-sdk@0.5.0': {}
|
|
12412
12412
|
|
|
12413
12413
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
12414
12414
|
dependencies:
|
|
@@ -13,3 +13,7 @@ node --input-type=module -e 'import { fileURLToPath } from "node:url"; console.l
|
|
|
13
13
|
服务端接入放在 `server/`,浏览器代码放在 `src/`。保留模板的代理和子路径配置。
|
|
14
14
|
|
|
15
15
|
接入步骤与协议见上述 SDK 文档;开发约束沿用项目规则。这里只维护本模板的目录与文档入口。
|
|
16
|
+
|
|
17
|
+
## 通用模型服务
|
|
18
|
+
|
|
19
|
+
全局模型目录、输入输出定义和调用使用服务端 `@kmlckj/licos-dev-sdk` 的 `ModelServiceClient`,查实际安装包 README 和类型声明。浏览器通过项目自身后端调用,外部模型授权由平台配置。
|
|
@@ -13,8 +13,8 @@ importers:
|
|
|
13
13
|
.:
|
|
14
14
|
dependencies:
|
|
15
15
|
'@kmlckj/licos-dev-sdk':
|
|
16
|
-
specifier: 0.
|
|
17
|
-
version: 0.
|
|
16
|
+
specifier: 0.5.0
|
|
17
|
+
version: 0.5.0
|
|
18
18
|
'@kmlckj/licos-platform-sdk':
|
|
19
19
|
specifier: 0.15.5
|
|
20
20
|
version: 0.15.5
|
|
@@ -291,9 +291,9 @@ packages:
|
|
|
291
291
|
'@jridgewell/trace-mapping@0.3.31':
|
|
292
292
|
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
|
|
293
293
|
|
|
294
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
295
|
-
resolution: {
|
|
296
|
-
engines: {node: '>=18'}
|
|
294
|
+
'@kmlckj/licos-dev-sdk@0.5.0':
|
|
295
|
+
resolution: {tarball: https://registry.npmmirror.com/@kmlckj/licos-dev-sdk/-/licos-dev-sdk-0.5.0.tgz}
|
|
296
|
+
engines: {node: '>=18.17'}
|
|
297
297
|
|
|
298
298
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
299
299
|
resolution: {integrity: sha512-Ywzi3ktucJtpI3BM4G5TjT4G6I4iMLBAKlF4fXcNPcUZ2cRUlzRSPwqQsD5eQDUMLycqwniYP4W7mteNZG0K1Q==}
|
|
@@ -1744,7 +1744,7 @@ snapshots:
|
|
|
1744
1744
|
'@jridgewell/resolve-uri': 3.1.2
|
|
1745
1745
|
'@jridgewell/sourcemap-codec': 1.5.5
|
|
1746
1746
|
|
|
1747
|
-
'@kmlckj/licos-dev-sdk@0.
|
|
1747
|
+
'@kmlckj/licos-dev-sdk@0.5.0': {}
|
|
1748
1748
|
|
|
1749
1749
|
'@kmlckj/licos-platform-sdk@0.15.5':
|
|
1750
1750
|
dependencies:
|
|
@@ -37,3 +37,7 @@
|
|
|
37
37
|
老版本没有索引时列出其实际文档、查看包描述及源码签名,不从另一版本复制 API。确需新能力时按 [UPGRADING.md](UPGRADING.md) 制定升级与验收步骤;不因查文档自动升级。
|
|
38
38
|
|
|
39
39
|
[README.md](README.md) 介绍项目结构;[回执示例](examples/wait_signal.md) 介绍模板示例接入;[DATABASE.md](DATABASE.md) 记录持久化准备;AGENTS.md 记录本项目已实现内容和用户决定。
|
|
40
|
+
|
|
41
|
+
## 通用模型服务
|
|
42
|
+
|
|
43
|
+
使用时序、表格等全局模型时,查实际安装 `licos-dev-sdk` 的 `docs/model-services.md`,通过 `ModelServiceClient` 读取模型输入输出定义再调用。外部模型授权由平台配置。
|
|
@@ -4,9 +4,9 @@ version = "0.1.0"
|
|
|
4
4
|
description = "LICOS LangGraph workflow project"
|
|
5
5
|
requires-python = ">=3.12"
|
|
6
6
|
dependencies = [
|
|
7
|
-
"licos-agent-runtime>=0.6.
|
|
7
|
+
"licos-agent-runtime>=0.6.34",
|
|
8
8
|
"licos-platform-sdk>=0.9.8",
|
|
9
|
-
"licos-dev-sdk>=0.
|
|
9
|
+
"licos-dev-sdk>=0.7.1",
|
|
10
10
|
]
|
|
11
11
|
|
|
12
12
|
[tool.uv]
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
licos-agent-runtime>=0.6.
|
|
1
|
+
licos-agent-runtime>=0.6.34
|
|
2
2
|
licos-platform-sdk>=0.9.8
|
|
3
|
-
licos-dev-sdk>=0.
|
|
3
|
+
licos-dev-sdk>=0.7.1
|
package/lib/cli.js
CHANGED
|
@@ -7034,7 +7034,7 @@ const executeRun = async (
|
|
|
7034
7034
|
logger.info(`Working directory: ${process.cwd()}`);
|
|
7035
7035
|
const buildResult = shelljs.exec(devBuildCommand, {
|
|
7036
7036
|
silent: false,
|
|
7037
|
-
env: buildProjectProgramEnv(),
|
|
7037
|
+
env: require('./project-preparation-env.cjs')(buildProjectProgramEnv()),
|
|
7038
7038
|
});
|
|
7039
7039
|
if (buildResult.code !== 0) {
|
|
7040
7040
|
throw new Error(`Dev build step exited with code ${buildResult.code}`);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/** Cloud previews install without a terminal, then start a watched dev server. */
|
|
4
|
+
module.exports = function projectPreparationEnv(programEnv) {
|
|
5
|
+
return programEnv.LICOS_PREVIEW_NONINTERACTIVE === '1'
|
|
6
|
+
? { ...programEnv, CI: 'true' }
|
|
7
|
+
: programEnv;
|
|
8
|
+
};
|