@kmlckj/licos-ai-cli 1.8.0 → 1.8.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/README.md +4 -0
- package/lib/__templates__/agent/SDK.md +43 -43
- package/lib/__templates__/agent/pyproject.toml +15 -15
- package/lib/__templates__/agent/requirements.txt +3 -3
- package/lib/__templates__/expo/pnpm-lock.yaml +12995 -12995
- package/lib/__templates__/expo/server/package.json +35 -35
- package/lib/__templates__/nextjs/SDK.md +19 -19
- package/lib/__templates__/nextjs/package.json +95 -95
- package/lib/__templates__/nextjs/pnpm-lock.yaml +11293 -11293
- package/lib/__templates__/nuxt-vue/SDK.md +19 -19
- package/lib/__templates__/nuxt-vue/package.json +46 -46
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +8709 -8709
- package/lib/__templates__/taro/pnpm-lock.yaml +20924 -20924
- package/lib/__templates__/taro/server/package.json +32 -32
- package/lib/__templates__/vite/SDK.md +19 -19
- package/lib/__templates__/vite/package.json +46 -46
- package/lib/__templates__/vite/pnpm-lock.yaml +3033 -3033
- package/lib/__templates__/workflow/SDK.md +43 -43
- package/lib/__templates__/workflow/pyproject.toml +15 -15
- package/lib/__templates__/workflow/requirements.txt +3 -3
- package/lib/cli.js +1 -1
- package/lib/project-preparation-env.cjs +8 -0
- package/package.json +37 -37
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "server",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"description": "NestJS server application",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "nest build",
|
|
8
|
-
"dev": "nest start --watch",
|
|
9
|
-
"start": "nest start",
|
|
10
|
-
"start:debug": "nest start --debug --watch",
|
|
11
|
-
"start:prod": "node dist/main"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@kmlckj/licos-dev-sdk": "0.5.0",
|
|
15
|
-
"@kmlckj/licos-platform-sdk": "0.15.5",
|
|
16
|
-
"@nestjs/common": "^10.4.15",
|
|
17
|
-
"@nestjs/core": "^10.4.15",
|
|
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
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@nestjs/cli": "^10.4.9",
|
|
27
|
-
"@nestjs/schematics": "^10.2.3",
|
|
28
|
-
"@types/express": "5.0.6",
|
|
29
|
-
"@types/node": "^22.10.2",
|
|
30
|
-
"typescript": "^5.7.2"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "server",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "NestJS server application",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "nest build",
|
|
8
|
+
"dev": "nest start --watch",
|
|
9
|
+
"start": "nest start",
|
|
10
|
+
"start:debug": "nest start --debug --watch",
|
|
11
|
+
"start:prod": "node dist/main"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@kmlckj/licos-dev-sdk": "0.5.0",
|
|
15
|
+
"@kmlckj/licos-platform-sdk": "0.15.5",
|
|
16
|
+
"@nestjs/common": "^10.4.15",
|
|
17
|
+
"@nestjs/core": "^10.4.15",
|
|
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
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@nestjs/cli": "^10.4.9",
|
|
27
|
+
"@nestjs/schematics": "^10.2.3",
|
|
28
|
+
"@types/express": "5.0.6",
|
|
29
|
+
"@types/node": "^22.10.2",
|
|
30
|
+
"typescript": "^5.7.2"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# 查阅当前项目的 SDK
|
|
2
|
-
|
|
3
|
-
平台功能、方法、参数和限制以项目实际安装包文档为准;此文件记录查阅与接入位置。
|
|
4
|
-
|
|
5
|
-
先检查本项目 package.json 和锁文件。安装完成后,在项目根目录执行:
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
node --input-type=module -e 'import { fileURLToPath } from "node:url"; console.log(fileURLToPath(new URL("./docs/project-runtime.md", import.meta.resolve("@kmlckj/licos-platform-sdk"))))'
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
同目录的 `project-runtime-api.md` 列出完整接口。旧包不存在该文档时查实际安装包的 README 与声明文件,说明能力差异,不静默升级。
|
|
12
|
-
|
|
13
|
-
服务端接入放在 `server/`,浏览器代码放在 `src/`。保留模板的代理和子路径配置。
|
|
14
|
-
|
|
15
|
-
接入步骤与协议见上述 SDK 文档;开发约束沿用项目规则。这里只维护本模板的目录与文档入口。
|
|
16
|
-
|
|
17
|
-
## 通用模型服务
|
|
18
|
-
|
|
19
|
-
全局模型目录、输入输出定义和调用使用服务端 `@kmlckj/licos-dev-sdk` 的 `ModelServiceClient`,查实际安装包 README 和类型声明。浏览器通过项目自身后端调用,外部模型授权由平台配置。
|
|
1
|
+
# 查阅当前项目的 SDK
|
|
2
|
+
|
|
3
|
+
平台功能、方法、参数和限制以项目实际安装包文档为准;此文件记录查阅与接入位置。
|
|
4
|
+
|
|
5
|
+
先检查本项目 package.json 和锁文件。安装完成后,在项目根目录执行:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
node --input-type=module -e 'import { fileURLToPath } from "node:url"; console.log(fileURLToPath(new URL("./docs/project-runtime.md", import.meta.resolve("@kmlckj/licos-platform-sdk"))))'
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
同目录的 `project-runtime-api.md` 列出完整接口。旧包不存在该文档时查实际安装包的 README 与声明文件,说明能力差异,不静默升级。
|
|
12
|
+
|
|
13
|
+
服务端接入放在 `server/`,浏览器代码放在 `src/`。保留模板的代理和子路径配置。
|
|
14
|
+
|
|
15
|
+
接入步骤与协议见上述 SDK 文档;开发约束沿用项目规则。这里只维护本模板的目录与文档入口。
|
|
16
|
+
|
|
17
|
+
## 通用模型服务
|
|
18
|
+
|
|
19
|
+
全局模型目录、输入输出定义和调用使用服务端 `@kmlckj/licos-dev-sdk` 的 `ModelServiceClient`,查实际安装包 README 和类型声明。浏览器通过项目自身后端调用,外部模型授权由平台配置。
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "<%= appName %>",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Vanilla TypeScript application with Express + Vite (HTML + CSS + TS + Node API)",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "bash ./scripts/build.sh",
|
|
7
|
-
"dev": "bash ./scripts/dev.sh",
|
|
8
|
-
"ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/vite','node_modules/.bin/tsx','node_modules/.bin/tsup','node_modules/.bin/eslint','node_modules/.bin/tsc']; 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",
|
|
9
|
-
"prebuild": "pnpm run ensure:deps",
|
|
10
|
-
"predev": "pnpm run ensure:deps",
|
|
11
|
-
"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)}\"",
|
|
12
|
-
"lint": "eslint",
|
|
13
|
-
"start": "bash ./scripts/start.sh",
|
|
14
|
-
"ts-check": "tsc -p tsconfig.json"
|
|
15
|
-
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@kmlckj/licos-dev-sdk": "0.5.0",
|
|
18
|
-
"@kmlckj/licos-platform-sdk": "0.15.5",
|
|
19
|
-
"dotenv": "^17.2.3",
|
|
20
|
-
"express": "^4.21.2"
|
|
21
|
-
},
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@types/express": "^5.0.0",
|
|
24
|
-
"@types/node": "^22.10.5",
|
|
25
|
-
"autoprefixer": "^10.4.20",
|
|
26
|
-
"esbuild": "^0.24.2",
|
|
27
|
-
"eslint": "^9",
|
|
28
|
-
"postcss": "^8.4.49",
|
|
29
|
-
"tailwindcss": "^3.4.17",
|
|
30
|
-
"tsup": "^8.3.5",
|
|
31
|
-
"tsx": "^4.19.2",
|
|
32
|
-
"typescript": "^5.6.0",
|
|
33
|
-
"typescript-eslint": "^8",
|
|
34
|
-
"vite": "^7.2.4"
|
|
35
|
-
},
|
|
36
|
-
"packageManager": "pnpm@9.0.0",
|
|
37
|
-
"engines": {
|
|
38
|
-
"pnpm": ">=9.0.0"
|
|
39
|
-
},
|
|
40
|
-
"pnpm": {
|
|
41
|
-
"overrides": {
|
|
42
|
-
"esbuild": "^0.27.2",
|
|
43
|
-
"is-generator-function": "1.0.10"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "<%= appName %>",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Vanilla TypeScript application with Express + Vite (HTML + CSS + TS + Node API)",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "bash ./scripts/build.sh",
|
|
7
|
+
"dev": "bash ./scripts/dev.sh",
|
|
8
|
+
"ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/vite','node_modules/.bin/tsx','node_modules/.bin/tsup','node_modules/.bin/eslint','node_modules/.bin/tsc']; 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",
|
|
9
|
+
"prebuild": "pnpm run ensure:deps",
|
|
10
|
+
"predev": "pnpm run ensure:deps",
|
|
11
|
+
"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)}\"",
|
|
12
|
+
"lint": "eslint",
|
|
13
|
+
"start": "bash ./scripts/start.sh",
|
|
14
|
+
"ts-check": "tsc -p tsconfig.json"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@kmlckj/licos-dev-sdk": "0.5.0",
|
|
18
|
+
"@kmlckj/licos-platform-sdk": "0.15.5",
|
|
19
|
+
"dotenv": "^17.2.3",
|
|
20
|
+
"express": "^4.21.2"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/express": "^5.0.0",
|
|
24
|
+
"@types/node": "^22.10.5",
|
|
25
|
+
"autoprefixer": "^10.4.20",
|
|
26
|
+
"esbuild": "^0.24.2",
|
|
27
|
+
"eslint": "^9",
|
|
28
|
+
"postcss": "^8.4.49",
|
|
29
|
+
"tailwindcss": "^3.4.17",
|
|
30
|
+
"tsup": "^8.3.5",
|
|
31
|
+
"tsx": "^4.19.2",
|
|
32
|
+
"typescript": "^5.6.0",
|
|
33
|
+
"typescript-eslint": "^8",
|
|
34
|
+
"vite": "^7.2.4"
|
|
35
|
+
},
|
|
36
|
+
"packageManager": "pnpm@9.0.0",
|
|
37
|
+
"engines": {
|
|
38
|
+
"pnpm": ">=9.0.0"
|
|
39
|
+
},
|
|
40
|
+
"pnpm": {
|
|
41
|
+
"overrides": {
|
|
42
|
+
"esbuild": "^0.27.2",
|
|
43
|
+
"is-generator-function": "1.0.10"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|