@workflow-code/cli 0.2.4-20261010002.codex-cli-web → 0.2.4-20261010003.codex-cli-web
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/index.js
CHANGED
|
@@ -24,7 +24,7 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
24
24
|
const prepared = prepareCliInvocation(argv);
|
|
25
25
|
argv = prepared.argv;
|
|
26
26
|
if (argv[0] === "web") {
|
|
27
|
-
const webCli = await import("./web-
|
|
27
|
+
const webCli = await import("./web-7QLJGSAQ.js");
|
|
28
28
|
return webCli.main(argv.slice(1));
|
|
29
29
|
}
|
|
30
30
|
if (argv[0] === "workspace") {
|
|
@@ -1180,20 +1180,22 @@ ${token}`;
|
|
|
1180
1180
|
const states = parameterStates.get(stateKey) ?? {};
|
|
1181
1181
|
const trigger = message.trigger?.kind === "param" && parameters.fields.some((field) => field.name === message.trigger.paramName) ? { kind: "param", paramName: message.trigger.paramName } : { kind: message.trigger?.kind === "input" ? "input" : "init" };
|
|
1182
1182
|
const result = parameters.paramResolver?.enabled ? await runtime.resolveParams(project, { draftText: String(message.draftText ?? "").slice(0, 2e4), args: workflowParamArgs(parameters.fields, values, states), inputMode: "form", trigger }, entrypointId) : { params: {} };
|
|
1183
|
-
if (
|
|
1183
|
+
if (revision !== authRevision) {
|
|
1184
1184
|
break;
|
|
1185
1185
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1186
|
+
if (parameterEpochs.get(stateKey) === epoch) {
|
|
1187
|
+
for (const [name, patch] of Object.entries(result.params ?? {})) {
|
|
1188
|
+
states[name] = { ...states[name], ...patch, options: { ...states[name]?.options, ...patch.options } };
|
|
1189
|
+
if (patch.value === null) {
|
|
1190
|
+
delete values[name];
|
|
1191
|
+
} else if (patch.value !== void 0) {
|
|
1192
|
+
values[name] = patch.value;
|
|
1193
|
+
}
|
|
1192
1194
|
}
|
|
1195
|
+
parameterStates.set(stateKey, states);
|
|
1196
|
+
(current.parameterValues ??= {})[entrypointId ?? ""] = values;
|
|
1197
|
+
await controller.persist();
|
|
1193
1198
|
}
|
|
1194
|
-
parameterStates.set(stateKey, states);
|
|
1195
|
-
(current.parameterValues ??= {})[entrypointId ?? ""] = values;
|
|
1196
|
-
await controller.persist();
|
|
1197
1199
|
replies.push({ type: "params", projectUri: project.uri, sessionId: current.id, requestId: message.requestId, params: result.params });
|
|
1198
1200
|
} catch (error) {
|
|
1199
1201
|
replies.push({ type: "params", projectUri: project.uri, sessionId: current.id, requestId: message.requestId, error: String(error.message) });
|