@lexicallayer/cli 0.1.0 → 0.1.2

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/bin/index.js +8 -2
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -56,8 +56,14 @@ function requestJSON(url, options = {}, data = null) {
56
56
  }
57
57
 
58
58
  function openBrowser(url) {
59
- const startCmd = process.platform === "win32" ? "start" : process.platform === "darwin" ? "open" : "xdg-open";
60
- exec(`${startCmd} "${url}"`);
59
+ if (process.platform === "win32") {
60
+ // On Windows, 'start "" "url"' is required because the first quoted argument is treated as the window title
61
+ exec(`start "" "${url}"`);
62
+ } else if (process.platform === "darwin") {
63
+ exec(`open "${url}"`);
64
+ } else {
65
+ exec(`xdg-open "${url}"`);
66
+ }
61
67
  }
62
68
 
63
69
  async function calibrate() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexicallayer/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "LexicalLayer CLI - Representation engineering and authentic weight calibration for AI agents",
5
5
  "main": "bin/index.js",
6
6
  "bin": {