@kmlckj/licos-ai-cli 1.0.7 → 1.0.9

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.
@@ -4,7 +4,7 @@ version = "0.1.0"
4
4
  description = "LICOS LangGraph agent project"
5
5
  requires-python = ">=3.12"
6
6
  dependencies = [
7
- "licos-agent-runtime>=0.2.21",
7
+ "licos-agent-runtime>=0.2.22",
8
8
  "licos-dev-sdk>=0.2.3",
9
9
  ]
10
10
 
@@ -1 +1 @@
1
- licos-agent-runtime>=0.2.21
1
+ licos-agent-runtime>=0.2.22
@@ -26,6 +26,8 @@
26
26
 
27
27
  维护规则:
28
28
 
29
- - `AGENTS.md` 只是项目索引,输入输出样例必须跟随 `src/graphs/state.py` 和节点实现更新。
30
- - 工作流存在真实业务节点时,不要把输入输出写成 `{}`,除非它确实没有外部输入也没有返回结果。
29
+ - `AGENTS.md` 只是项目索引,输入输出样例必须跟随 `src/graphs/state.py` 和节点实现更新。
30
+ - 工作流存在真实业务节点时,不要把输入输出写成 `{}`,除非它确实没有外部输入也没有返回结果。
31
+ - 涉及文件输入/输出时,schema 使用文件对象字段,例如 `url`、`file_type`、`content`、`name`。节点生成文件时优先写入 `assets/`,并在输出中返回 `/assets/<文件名>`、`assets/<文件名>` 或本地文件路径。运行时会自动把输出文件发布到 Studio 对象存储并补齐签名 URL、`download_url`、`file_id`、`expires_at` 等字段。
32
+ - 不要在节点代码里手写 workspace-file-service 公共 URL、MinIO URL、签名参数或平台文件服务路径;部署后的工作流没有开发态文件服务,文件发布交给运行时统一处理。
31
33
  - 如果文档与源码 schema 冲突,应修正文档,不要为了匹配文档清空 `GraphInput` / `GraphOutput`。
@@ -52,6 +52,24 @@ bash scripts/http_run.sh -p <%= port %>
52
52
 
53
53
  `/agent/canvas` 返回工作流画布结构,`/agent/canvas_submit` 接收前端编辑后的 `after_canvas` 并生成给 Agent 执行源码修改的 `QueryDiff` 文本。
54
54
 
55
+ ## 文件输入输出
56
+
57
+ 涉及文件输入/输出时,schema 使用文件对象字段,例如 `url`、`file_type`、`content`、`name`。前端上传文件后会按 schema 把文件对象传给工作流。
58
+
59
+ 节点生成文件时,优先写入项目 `assets/` 目录,并在输出中返回文件对象:
60
+
61
+ ```json
62
+ {
63
+ "pdf_file": {
64
+ "url": "/assets/result.pdf",
65
+ "file_type": "document",
66
+ "name": "result.pdf"
67
+ }
68
+ }
69
+ ```
70
+
71
+ 运行时会自动把输出文件发布到 Studio 对象存储,并补齐签名 `url`、`download_url`、`file_id`、`expires_at` 等字段。节点代码不要手写 workspace-file-service URL、MinIO URL 或签名参数。
72
+
55
73
  ## 项目上下文
56
74
 
57
75
  项目内的 `AGENTS.md` 用于记录可由用户维护的项目上下文,例如业务目标、节点清单、输入输出样例和测试方式。
@@ -4,7 +4,7 @@ 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.2.21",
7
+ "licos-agent-runtime>=0.2.22",
8
8
  "licos-dev-sdk>=0.2.3",
9
9
  ]
10
10
 
@@ -1 +1 @@
1
- licos-agent-runtime>=0.2.21
1
+ licos-agent-runtime>=0.2.22
package/lib/cli.js CHANGED
@@ -2109,7 +2109,7 @@ const EventBuilder = {
2109
2109
  };
2110
2110
 
2111
2111
  var name = "@kmlckj/licos-ai-cli";
2112
- var version = "1.0.7";
2112
+ var version = "1.0.9";
2113
2113
  var description = "LICOS AI coding workspace CLI - project template engine and dev tools";
2114
2114
  var license = "MIT";
2115
2115
  var author = "kmlckj";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmlckj/licos-ai-cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "LICOS AI coding workspace CLI - project template engine and dev tools",
5
5
  "license": "MIT",
6
6
  "author": "kmlckj",