@workflow-code/cli 0.2.4-20261013002.codex-studio-integration → 0.2.4-20261013004.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) {
@@ -69,6 +69,14 @@
69
69
  --vscode-scrollbarSlider-background: #79797966;
70
70
  --vscode-scrollbarSlider-hoverBackground: #646464b3;
71
71
  }
72
- * { scrollbar-width: thin; scrollbar-color: var(--vscode-scrollbarSlider-background) transparent; }
72
+ * { scrollbar-width: thin; scrollbar-color: transparent transparent; }
73
+ ::-webkit-scrollbar { width: 10px; height: 10px; }
74
+ ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner, ::-webkit-scrollbar-thumb { background-color: transparent; }
75
+ @media (any-hover: hover) {
76
+ *:hover { scrollbar-color: var(--vscode-scrollbarSlider-background, #79797966) transparent; }
77
+ :hover::-webkit-scrollbar-thumb { background-color: var(--vscode-scrollbarSlider-background, #79797966); }
78
+ ::-webkit-scrollbar-thumb:hover { background-color: var(--vscode-scrollbarSlider-hoverBackground, #64646488); }
79
+ ::-webkit-scrollbar-thumb:active { background-color: var(--vscode-scrollbarSlider-activeBackground, var(--vscode-scrollbarSlider-hoverBackground, #64646488)); }
80
+ }
73
81
  #chats { flex: 1; }
74
82
  .web-preview { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 var(--vscode-editor-font-family); }
@@ -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", () => post({ type: "open-file", id: file.id }));
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.preventDefault();
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workflow-code/cli",
3
- "version": "0.2.4-20261013002.codex-studio-integration",
3
+ "version": "0.2.4-20261013004.codex-studio-integration",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "workflow-code": "./dist/index.js"
@@ -37,15 +37,15 @@
37
37
  "vitest": "^4.1.7",
38
38
  "workflow-code": "0.2.4-20260929001",
39
39
  "@workflow-code/auth-config": "0.1.0",
40
- "@workflow-code/execution-targets": "0.1.0",
41
40
  "@workflow-code/i18n": "0.1.0",
41
+ "@workflow-code/execution-targets": "0.1.0",
42
42
  "@workflow-code/kanban-project": "0.1.0",
43
43
  "@workflow-code/openai-responses": "0.1.0",
44
44
  "@workflow-code/project-dependencies": "0.1.0",
45
45
  "@workflow-code/project-info": "0.1.0",
46
46
  "@workflow-code/project-upload": "0.1.0",
47
- "@workflow-code/runtime-compatibility": "0.1.0",
48
47
  "@workflow-code/workflow-ids": "0.1.0",
48
+ "@workflow-code/runtime-compatibility": "0.1.0",
49
49
  "@workflow-code/workflow-mcp": "0.1.0"
50
50
  },
51
51
  "scripts": {