@workflow-code/cli 0.2.4-20261013002.codex-studio-integration → 0.2.4-20261013003.codex-studio-integration
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.
|
@@ -15884,6 +15884,9 @@ ${state2.user?.avatarUrl ?? ""}`;
|
|
|
15884
15884
|
}
|
|
15885
15885
|
if (event.data.clipboardVersion !== void 0) {
|
|
15886
15886
|
clipboard.enable(event.data.clipboardVersion);
|
|
15887
|
+
if (event.data.clipboardVersion === 1) {
|
|
15888
|
+
window.parent.postMessage({ type: "workflow-edit", version: 1 }, "*");
|
|
15889
|
+
}
|
|
15887
15890
|
}
|
|
15888
15891
|
if (event.data.resourceVersion === 1) {
|
|
15889
15892
|
resourceHost = true;
|
|
@@ -15891,6 +15894,9 @@ ${state2.user?.avatarUrl ?? ""}`;
|
|
|
15891
15894
|
if (event.data.resourceError) {
|
|
15892
15895
|
emit(event.data.resourceError);
|
|
15893
15896
|
}
|
|
15897
|
+
if (["paste", "copy", "cut", "selectAll", "undo", "redo"].includes(event.data.editCommand)) {
|
|
15898
|
+
document.execCommand(event.data.editCommand);
|
|
15899
|
+
}
|
|
15894
15900
|
clipboard.receive(event.data.clipboard);
|
|
15895
15901
|
const traceCommand = trace.command(event.data.traceCommand);
|
|
15896
15902
|
if (traceCommand) {
|
|
@@ -15884,6 +15884,9 @@ ${state.user?.avatarUrl ?? ""}`;
|
|
|
15884
15884
|
}
|
|
15885
15885
|
if (event.data.clipboardVersion !== void 0) {
|
|
15886
15886
|
clipboard.enable(event.data.clipboardVersion);
|
|
15887
|
+
if (event.data.clipboardVersion === 1) {
|
|
15888
|
+
window.parent.postMessage({ type: "workflow-edit", version: 1 }, "*");
|
|
15889
|
+
}
|
|
15887
15890
|
}
|
|
15888
15891
|
if (event.data.resourceVersion === 1) {
|
|
15889
15892
|
resourceHost = true;
|
|
@@ -15891,6 +15894,9 @@ ${state.user?.avatarUrl ?? ""}`;
|
|
|
15891
15894
|
if (event.data.resourceError) {
|
|
15892
15895
|
emit(event.data.resourceError);
|
|
15893
15896
|
}
|
|
15897
|
+
if (["paste", "copy", "cut", "selectAll", "undo", "redo"].includes(event.data.editCommand)) {
|
|
15898
|
+
document.execCommand(event.data.editCommand);
|
|
15899
|
+
}
|
|
15894
15900
|
clipboard.receive(event.data.clipboard);
|
|
15895
15901
|
const traceCommand = trace.command(event.data.traceCommand);
|
|
15896
15902
|
if (traceCommand) {
|
package/dist/web/workflow-ui.js
CHANGED
|
@@ -17686,6 +17686,9 @@ ${state.user?.avatarUrl ?? ""}`;
|
|
|
17686
17686
|
}
|
|
17687
17687
|
if (event.data.clipboardVersion !== void 0) {
|
|
17688
17688
|
clipboard.enable(event.data.clipboardVersion);
|
|
17689
|
+
if (event.data.clipboardVersion === 1) {
|
|
17690
|
+
window.parent.postMessage({ type: "workflow-edit", version: 1 }, "*");
|
|
17691
|
+
}
|
|
17689
17692
|
}
|
|
17690
17693
|
if (event.data.resourceVersion === 1) {
|
|
17691
17694
|
resourceHost = true;
|
|
@@ -17693,6 +17696,9 @@ ${state.user?.avatarUrl ?? ""}`;
|
|
|
17693
17696
|
if (event.data.resourceError) {
|
|
17694
17697
|
emit(event.data.resourceError);
|
|
17695
17698
|
}
|
|
17699
|
+
if (["paste", "copy", "cut", "selectAll", "undo", "redo"].includes(event.data.editCommand)) {
|
|
17700
|
+
document.execCommand(event.data.editCommand);
|
|
17701
|
+
}
|
|
17696
17702
|
clipboard.receive(event.data.clipboard);
|
|
17697
17703
|
const traceCommand = trace.command(event.data.traceCommand);
|
|
17698
17704
|
if (traceCommand) {
|
|
@@ -18445,7 +18451,13 @@ ${state.user?.avatarUrl ?? ""}`;
|
|
|
18445
18451
|
} else {
|
|
18446
18452
|
preview.innerHTML = iconHtml(file.mimeType.startsWith("audio/") ? "unmute" : file.mimeType.startsWith("video/") ? "device-camera-video" : "file");
|
|
18447
18453
|
}
|
|
18448
|
-
preview.addEventListener("click", () =>
|
|
18454
|
+
preview.addEventListener("click", () => {
|
|
18455
|
+
if (file.kind === "image" && file.previewUrl) {
|
|
18456
|
+
dialogs.image(file.previewUrl, file.name);
|
|
18457
|
+
} else {
|
|
18458
|
+
post({ type: "open-file", id: file.id });
|
|
18459
|
+
}
|
|
18460
|
+
});
|
|
18449
18461
|
const name = document.createElement("span");
|
|
18450
18462
|
name.textContent = file.name;
|
|
18451
18463
|
name.title = file.name;
|
|
@@ -18778,7 +18790,7 @@ ${state.user?.avatarUrl ?? ""}`;
|
|
|
18778
18790
|
requestParams({ kind: "init" });
|
|
18779
18791
|
}
|
|
18780
18792
|
updateControls();
|
|
18781
|
-
if (switching && !next.running) {
|
|
18793
|
+
if (switching && !next.running && document.hasFocus()) {
|
|
18782
18794
|
textarea.focus();
|
|
18783
18795
|
}
|
|
18784
18796
|
}
|
|
@@ -18969,7 +18981,9 @@ ${state.user?.avatarUrl ?? ""}`;
|
|
|
18969
18981
|
textarea.addEventListener("paste", (event) => {
|
|
18970
18982
|
const files = Array.from(event.clipboardData?.files ?? []);
|
|
18971
18983
|
if (files.length) {
|
|
18972
|
-
event.
|
|
18984
|
+
if (!event.clipboardData?.getData("text/plain")) {
|
|
18985
|
+
event.preventDefault();
|
|
18986
|
+
}
|
|
18973
18987
|
void uploadFiles(files);
|
|
18974
18988
|
}
|
|
18975
18989
|
});
|
|
@@ -19428,6 +19428,9 @@ ${state2.user?.avatarUrl ?? ""}`;
|
|
|
19428
19428
|
}
|
|
19429
19429
|
if (event.data.clipboardVersion !== void 0) {
|
|
19430
19430
|
clipboard.enable(event.data.clipboardVersion);
|
|
19431
|
+
if (event.data.clipboardVersion === 1) {
|
|
19432
|
+
window.parent.postMessage({ type: "workflow-edit", version: 1 }, "*");
|
|
19433
|
+
}
|
|
19431
19434
|
}
|
|
19432
19435
|
if (event.data.resourceVersion === 1) {
|
|
19433
19436
|
resourceHost = true;
|
|
@@ -19435,6 +19438,9 @@ ${state2.user?.avatarUrl ?? ""}`;
|
|
|
19435
19438
|
if (event.data.resourceError) {
|
|
19436
19439
|
emit(event.data.resourceError);
|
|
19437
19440
|
}
|
|
19441
|
+
if (["paste", "copy", "cut", "selectAll", "undo", "redo"].includes(event.data.editCommand)) {
|
|
19442
|
+
document.execCommand(event.data.editCommand);
|
|
19443
|
+
}
|
|
19438
19444
|
clipboard.receive(event.data.clipboard);
|
|
19439
19445
|
const traceCommand = trace.command(event.data.traceCommand);
|
|
19440
19446
|
if (traceCommand) {
|