@kmlckj/licos-ai-cli 1.4.6 → 1.4.7
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
licos-agent-runtime>=0.3.
|
|
1
|
+
licos-agent-runtime>=0.3.6
|
|
2
2
|
licos-dev-sdk>=0.4.9
|
|
@@ -69,7 +69,7 @@ bash scripts/http_run.sh -p <%= port %>
|
|
|
69
69
|
|
|
70
70
|
- `public.workflow_instances`:`instance_id text` 主键;`workspace_id`、`project_id`、`environment`、`owner_user_id`、`graph_version`、`input_hash`、`input_data`、`status`、`last_run_id` 均为非空 `text`;`lease_until_ms`、`created_at_ms`、`updated_at_ms` 为非空 `bigint`,租约默认 0;`output_data`、`error_message` 为可空 `text`。
|
|
71
71
|
- `public.workflow_checkpoints`:`thread_id`、`checkpoint_ns`、`checkpoint_id` 为非空 `text` 复合主键;`thread_id` 外键引用 `workflow_instances.instance_id` 并级联删除;`run_id`、`checkpoint_type`、`checkpoint_data`、`metadata_type`、`metadata_data` 为非空 `text`,`parent_checkpoint_id` 为可空 `text`。增加 `(thread_id, checkpoint_ns, checkpoint_id DESC)` 索引。
|
|
72
|
-
- `public.workflow_pending_writes`:`thread_id`、`checkpoint_ns`、`checkpoint_id`、`task_id` 为非空 `text`,`write_idx` 为非空 `integer
|
|
72
|
+
- `public.workflow_pending_writes`:`thread_id`、`checkpoint_ns`、`checkpoint_id`、`task_id` 为非空 `text`,`write_idx` 为非空 `integer`,五列组成复合主键;`run_id`、`channel`、`value_type`、`value_data`、`task_path` 为非空 `text`。不要给 pending writes 到检查点加外键:LangGraph 可能在对应检查点事务提交前写入 pending writes。删除实例线程时运行时会先清理 pending writes,再清理检查点。
|
|
73
73
|
- 对检查点与 pending writes 的 `INSERT`/`UPDATE` 加同一个数据库触发器:锁定对应的实例行(`SELECT ... FOR SHARE`),只有 `last_run_id` 等于待写行的 `run_id`、`status = 'running'`,且 `lease_until_ms` 晚于数据库当前时间(毫秒)时才能写入;否则拒绝。行锁要和取消/认领实例的更新互斥,避免检查点检查通过后才提交取消,旧运行仍写入。
|
|
74
74
|
|
|
75
75
|
模板的 `graph.py` 已通过 `workflow_checkpointer()` 按配置编译图;原有项目启用时也须把 `builder.compile()` 改为 `builder.compile(checkpointer=workflow_checkpointer())`。修改图节点、状态 schema 或路由后,应评估旧检查点兼容性,再更新 `graph_version`。版本不兼容的实例不会自动从头执行。
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
licos-agent-runtime>=0.3.
|
|
1
|
+
licos-agent-runtime>=0.3.6
|
|
2
2
|
licos-dev-sdk>=0.4.9
|