sync-omo-config 1.3.3 → 1.3.4

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -50,10 +50,10 @@ async function notifyDesktop(title, message) {
50
50
  ].join("; ");
51
51
  await run(["powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", toast]);
52
52
  const dialog = [
53
- "Add-Type -AssemblyName PresentationCore,PresentationFramework",
54
- `[System.Windows.MessageBox]::Show('${escps(message)}','${escps(title)}') | Out-Null`
53
+ "Add-Type -AssemblyName System.Windows.Forms",
54
+ `[System.Windows.Forms.MessageBox]::Show('${escps(message)}','${escps(title)}',[System.Windows.Forms.MessageBoxButtons]::OK,[System.Windows.Forms.MessageBoxIcon]::Warning,[System.Windows.Forms.MessageBoxDefaultButton]::Button1,[System.Windows.Forms.MessageBoxOptions]::DefaultDesktopOnly) | Out-Null`
55
55
  ].join("; ");
56
- await run(["powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", dialog]);
56
+ await run(["powershell", "-NoProfile", "-Sta", "-ExecutionPolicy", "Bypass", "-Command", dialog]);
57
57
  return;
58
58
  }
59
59
  console.warn(`[sync-omo-config] Desktop notify not supported on ${platform}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sync-omo-config",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "OpenCode plugin to sync omo config from well-known endpoint to oh-my-opencode.json",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",