@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.
- package/lib/__templates__/agent/AGENTS.md +9 -0
- package/lib/__templates__/agent/pyproject.toml +15 -15
- package/lib/__templates__/agent/requirements.txt +3 -3
- package/lib/__templates__/expo/AGENTS.md +9 -0
- package/lib/__templates__/expo/pnpm-lock.yaml +13000 -13000
- package/lib/__templates__/expo/server/package.json +35 -35
- package/lib/__templates__/nextjs/AGENTS.md +9 -0
- package/lib/__templates__/nextjs/package.json +95 -95
- package/lib/__templates__/nextjs/pnpm-lock.yaml +11296 -11296
- package/lib/__templates__/nuxt-vue/AGENTS.md +9 -0
- package/lib/__templates__/nuxt-vue/package.json +46 -46
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +8717 -8717
- package/lib/__templates__/taro/AGENTS.md +9 -0
- package/lib/__templates__/taro/pnpm-lock.yaml +20924 -20924
- package/lib/__templates__/taro/server/package.json +32 -32
- package/lib/__templates__/vite/AGENTS.md +9 -0
- package/lib/__templates__/vite/package.json +46 -46
- package/lib/__templates__/vite/pnpm-lock.yaml +3040 -3040
- package/lib/__templates__/workflow/AGENTS.md +44 -35
- package/lib/__templates__/workflow/pyproject.toml +15 -15
- package/lib/__templates__/workflow/requirements.txt +3 -3
- package/package.json +37 -37
|
@@ -574,3 +574,12 @@ import { Input } from '@/components/ui/input'
|
|
|
574
574
|
</View>
|
|
575
575
|
)}
|
|
576
576
|
```
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
## 平台调用身份
|
|
580
|
+
|
|
581
|
+
- `LICOS_CURRENT_USER_ID` 仅表示容器初始化用户,不能作为网页登录身份。
|
|
582
|
+
- 当前用户信息、企业知识库、本体搜索/调用/订阅必须显式传本次用户 Token(Node `userToken` / Python `user_token`)。Token 失效直接返回鉴权错误,不换成容器用户。
|
|
583
|
+
- 普通知识库、模型与积分接口默认使用项目身份;需要按网页登录用户执行时显式传 Token。数据库、存储、可观测性和 OAuth 应用管理使用项目身份。项目归属与平台签发的计费上下文独立保留。
|
|
584
|
+
- CLI 用户操作默认按 `LICOS_CURRENT_USER_ID` 换 Token;HTTP 服务调用 CLI 时使用 `--token-stdin`。Dev CLI 可用 `--identity project` 明确选择项目身份。
|
|
585
|
+
- 每个请求单独传 Token 或创建客户端,不把请求 Token、用户 ID 写进共享环境变量。
|