@remixmate/cli 0.9.33 → 0.9.34
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/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remixmate/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.34",
|
|
4
4
|
"description": "AI media generation skills for Claude Code / Codex — 12 skills covering image, video, voice, digital human, web screenshot, web recording, script, template registry, rendering, Jianying export, and video deconstruction.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -93,6 +93,18 @@ def create_job(priv_token: str, dsl: str = "", dsl_meta: dict = None) -> int:
|
|
|
93
93
|
"""
|
|
94
94
|
创建渲染任务。
|
|
95
95
|
|
|
96
|
+
会话归属:本函数会自动带上环境变量 CONVERSATION_ID(若已设置),让服务端在
|
|
97
|
+
创建时就把 job 挂到该会话的 take 上。
|
|
98
|
+
|
|
99
|
+
为什么要在这里传:渲染任务过去出生就是孤儿——归属全靠事后一次独立的补绑调用,
|
|
100
|
+
而那条路上有四个静默盲区(CLI 的 take 绑定在 job 出生前就跑完了;云端因为
|
|
101
|
+
CONVERSATION_ID 已被注入而整段跳过它;兜底补绑的 jobId 末位来源是从 stdout
|
|
102
|
+
正则抠的)。归属断了,成片在旁白面板里就查不到已生成的音频。
|
|
103
|
+
而 CONVERSATION_ID 在这一刻本来就已经在环境里了——信息在场,以前只是没传。
|
|
104
|
+
见 ab-platform/docs/render-job-binding-fix.md。
|
|
105
|
+
|
|
106
|
+
服务端对该字段是软失败:绑不上只记日志,不影响任务创建。
|
|
107
|
+
|
|
96
108
|
Args:
|
|
97
109
|
priv_token: PrivToken
|
|
98
110
|
dsl: 完整 DSL JSON 字符串(可选)
|
|
@@ -107,6 +119,10 @@ def create_job(priv_token: str, dsl: str = "", dsl_meta: dict = None) -> int:
|
|
|
107
119
|
if dsl_meta:
|
|
108
120
|
payload["dslMeta"] = dsl_meta
|
|
109
121
|
|
|
122
|
+
conversation_id = os.environ.get("CONVERSATION_ID", "").strip()
|
|
123
|
+
if conversation_id:
|
|
124
|
+
payload["conversationId"] = conversation_id
|
|
125
|
+
|
|
110
126
|
data = _post("/renderJob/create", payload, priv_token)
|
|
111
127
|
job_id = data.get("jobId")
|
|
112
128
|
if not job_id:
|