@kmlckj/licos-ai-cli 1.5.0 → 1.6.0

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.
@@ -43,3 +43,12 @@
43
43
 
44
44
  - 使用 Tailwind CSS 进行样式开发
45
45
  - 项目根 `assets/` 会通过 Nitro 映射到 `/assets/*`,需要按 URL 访问时使用 `useRuntimeConfig().public.baseURL` 派生路径,例如 `assetUrl('assets/logo.svg')`;业务 CSS 仍优先放到 `nuxt.config.ts` 的 `css` 数组或组件 `<style scoped>`。
46
+
47
+
48
+ ## 平台调用身份
49
+
50
+ - `LICOS_CURRENT_USER_ID` 仅表示容器初始化用户,不能作为网页登录身份。
51
+ - 当前用户信息、企业知识库、本体搜索/调用/订阅必须显式传本次用户 Token(Node `userToken` / Python `user_token`)。Token 失效直接返回鉴权错误,不换成容器用户。
52
+ - 普通知识库、模型与积分接口默认使用项目身份;需要按网页登录用户执行时显式传 Token。数据库、存储、可观测性和 OAuth 应用管理使用项目身份。项目归属与平台签发的计费上下文独立保留。
53
+ - CLI 用户操作默认按 `LICOS_CURRENT_USER_ID` 换 Token;HTTP 服务调用 CLI 时使用 `--token-stdin`。Dev CLI 可用 `--identity project` 明确选择项目身份。
54
+ - 每个请求单独传 Token 或创建客户端,不把请求 Token、用户 ID 写进共享环境变量。
@@ -1,46 +1,46 @@
1
- {
2
- "name": "<%= appName %>",
3
- "version": "0.1.0",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "build": "bash ./scripts/build.sh",
8
- "dev": "bash ./scripts/dev.sh",
9
- "ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/nuxt']; 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",
10
- "generate": "nuxt generate",
11
- "prebuild": "pnpm run ensure:deps",
12
- "predev": "pnpm run ensure:deps",
13
- "pregenerate": "pnpm run ensure:deps",
14
- "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)}\"",
15
- "prepreview": "pnpm run ensure:deps",
16
- "preview": "nuxt preview",
17
- "start": "bash ./scripts/start.sh"
18
- },
19
- "dependencies": {
20
- "@kmlckj/licos-dev-sdk": "0.3.0",
21
- "@kmlckj/licos-platform-sdk": "0.10.9",
22
- "@nuxt/image": "2.0.0",
23
- "nuxt": "4.3.1",
24
- "tailwind-merge": "2.6.0",
25
- "vue": "3.5.30",
26
- "vue-router": "4.6.4"
27
- },
28
- "devDependencies": {
29
- "@nuxtjs/tailwindcss": "6.14.0",
30
- "@types/node": "20.19.25",
31
- "autoprefixer": "10.4.20",
32
- "postcss": "8.4.49",
33
- "tailwindcss": "3.4.17",
34
- "typescript": "5.9.3"
35
- },
36
- "pnpm": {
37
- "overrides": {
38
- "ipx": "3.1.1",
39
- "sharp": "0.34.5"
40
- }
41
- },
42
- "packageManager": "pnpm@9.0.0",
43
- "engines": {
44
- "pnpm": ">=9.0.0"
45
- }
46
- }
1
+ {
2
+ "name": "<%= appName %>",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "build": "bash ./scripts/build.sh",
8
+ "dev": "bash ./scripts/dev.sh",
9
+ "ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/nuxt']; 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",
10
+ "generate": "nuxt generate",
11
+ "prebuild": "pnpm run ensure:deps",
12
+ "predev": "pnpm run ensure:deps",
13
+ "pregenerate": "pnpm run ensure:deps",
14
+ "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)}\"",
15
+ "prepreview": "pnpm run ensure:deps",
16
+ "preview": "nuxt preview",
17
+ "start": "bash ./scripts/start.sh"
18
+ },
19
+ "dependencies": {
20
+ "@kmlckj/licos-dev-sdk": "0.4.0",
21
+ "@kmlckj/licos-platform-sdk": "0.12.0",
22
+ "@nuxt/image": "2.0.0",
23
+ "nuxt": "4.3.1",
24
+ "tailwind-merge": "2.6.0",
25
+ "vue": "3.5.30",
26
+ "vue-router": "4.6.4"
27
+ },
28
+ "devDependencies": {
29
+ "@nuxtjs/tailwindcss": "6.14.0",
30
+ "@types/node": "20.19.25",
31
+ "autoprefixer": "10.4.20",
32
+ "postcss": "8.4.49",
33
+ "tailwindcss": "3.4.17",
34
+ "typescript": "5.9.3"
35
+ },
36
+ "pnpm": {
37
+ "overrides": {
38
+ "ipx": "3.1.1",
39
+ "sharp": "0.34.5"
40
+ }
41
+ },
42
+ "packageManager": "pnpm@9.0.0",
43
+ "engines": {
44
+ "pnpm": ">=9.0.0"
45
+ }
46
+ }