licos-dev-cli 0.6.1__tar.gz → 0.6.2__tar.gz
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.
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/PKG-INFO +12 -2
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/README.md +10 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/pyproject.toml +2 -2
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/.gitignore +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/src/licos_dev_cli/__init__.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/src/licos_dev_cli/common.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/src/licos_dev_cli/docx_commands.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/src/licos_dev_cli/docx_legacy.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/src/licos_dev_cli/identity.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/src/licos_dev_cli/main.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/src/licos_dev_cli/ppt_master.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/tests/test_cli_output_paths.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/tests/test_credit_check.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/tests/test_document_read_cli.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/tests/test_docx_commands.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/tests/test_identity.py +0 -0
- {licos_dev_cli-0.6.1 → licos_dev_cli-0.6.2}/tests/test_ppt_master_cli.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: licos-dev-cli
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: LICOS Dev CLI - generate files and call model capabilities
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Requires-Dist: click>=8.1
|
|
7
|
-
Requires-Dist: licos-dev-sdk>=0.6.
|
|
7
|
+
Requires-Dist: licos-dev-sdk>=0.6.2
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
|
|
10
10
|
# licos-dev CLI
|
|
@@ -46,3 +46,13 @@ result = subprocess.run(
|
|
|
46
46
|
文档、图片排版等本地文件工具不需要用户身份选项。
|
|
47
47
|
|
|
48
48
|
直接使用 `licos-dev-sdk` 时,模型和积分接口默认是项目身份;需要按用户执行时传 `user_token`。CLI 的默认 `--identity user` 仅适用于独立命令行调用。
|
|
49
|
+
|
|
50
|
+
## 编程项目登录身份
|
|
51
|
+
|
|
52
|
+
- 有内置登录时使用内置登录会话;没有内置登录时使用当前 LICOS 网页登录。内置登录未登录或过期时不能切换成平台用户。
|
|
53
|
+
- Node 服务端使用 `createProjectAuth({ mode: 'builtin', resolveBuiltinToken })` 或 `createProjectAuth({ mode: 'platform' })`,每次请求调用 `await projectAuth.userToken(request)`。内置解析器必须读取已有认证会话并返回用户已授权的 LICOS 凭证。
|
|
54
|
+
- 无内置登录的浏览器用户接口使用 `@kmlckj/licos-platform-sdk/browser` 的 `createProjectUserFetch`:平台登录桥领取一次性票据,项目后端兑换 Token。不要直接读取跨域平台 localStorage,不在 URL 中传 Token,不修改全局 fetch。项目级 API 保持原有请求方法。
|
|
55
|
+
- Python 使用 `ProjectAuth`;Agent/Workflow 通过 `config/licos-auth.json` 配置模式,内置登录设置 `resolver: "模块:函数"`,业务代码使用 `ctx.identity.user_token`。
|
|
56
|
+
- 当前用户、企业知识库、本体用户操作显式传 `userToken`/`user_token`。模型、积分和普通知识库按业务选择用户或项目身份。数据库、对象存储和可观测性继续使用项目身份。
|
|
57
|
+
- OAuth 接入 SDK 的用户、知识库、模型能力分别申请 `project.user`、`project.knowledge`、`project.models`;新增范围需要用户重新授权。业务自签 JWT 不能直接充当 LICOS Token。
|
|
58
|
+
- 修改已有项目时先接它的现有登录机制,不能用新模板的默认平台模式覆盖。真实 Token 只存在于运行时请求/会话,不写入源代码、共享环境变量或 Agent 提示词。
|
|
@@ -37,3 +37,13 @@ result = subprocess.run(
|
|
|
37
37
|
文档、图片排版等本地文件工具不需要用户身份选项。
|
|
38
38
|
|
|
39
39
|
直接使用 `licos-dev-sdk` 时,模型和积分接口默认是项目身份;需要按用户执行时传 `user_token`。CLI 的默认 `--identity user` 仅适用于独立命令行调用。
|
|
40
|
+
|
|
41
|
+
## 编程项目登录身份
|
|
42
|
+
|
|
43
|
+
- 有内置登录时使用内置登录会话;没有内置登录时使用当前 LICOS 网页登录。内置登录未登录或过期时不能切换成平台用户。
|
|
44
|
+
- Node 服务端使用 `createProjectAuth({ mode: 'builtin', resolveBuiltinToken })` 或 `createProjectAuth({ mode: 'platform' })`,每次请求调用 `await projectAuth.userToken(request)`。内置解析器必须读取已有认证会话并返回用户已授权的 LICOS 凭证。
|
|
45
|
+
- 无内置登录的浏览器用户接口使用 `@kmlckj/licos-platform-sdk/browser` 的 `createProjectUserFetch`:平台登录桥领取一次性票据,项目后端兑换 Token。不要直接读取跨域平台 localStorage,不在 URL 中传 Token,不修改全局 fetch。项目级 API 保持原有请求方法。
|
|
46
|
+
- Python 使用 `ProjectAuth`;Agent/Workflow 通过 `config/licos-auth.json` 配置模式,内置登录设置 `resolver: "模块:函数"`,业务代码使用 `ctx.identity.user_token`。
|
|
47
|
+
- 当前用户、企业知识库、本体用户操作显式传 `userToken`/`user_token`。模型、积分和普通知识库按业务选择用户或项目身份。数据库、对象存储和可观测性继续使用项目身份。
|
|
48
|
+
- OAuth 接入 SDK 的用户、知识库、模型能力分别申请 `project.user`、`project.knowledge`、`project.models`;新增范围需要用户重新授权。业务自签 JWT 不能直接充当 LICOS Token。
|
|
49
|
+
- 修改已有项目时先接它的现有登录机制,不能用新模板的默认平台模式覆盖。真实 Token 只存在于运行时请求/会话,不写入源代码、共享环境变量或 Agent 提示词。
|
|
@@ -4,12 +4,12 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "licos-dev-cli"
|
|
7
|
-
version = "0.6.
|
|
7
|
+
version = "0.6.2"
|
|
8
8
|
description = "LICOS Dev CLI - generate files and call model capabilities"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
dependencies = [
|
|
12
|
-
"licos-dev-sdk>=0.6.
|
|
12
|
+
"licos-dev-sdk>=0.6.2",
|
|
13
13
|
"click>=8.1",
|
|
14
14
|
]
|
|
15
15
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|