@h1veframework/cli 0.9.0 → 0.10.0
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 +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1279,10 +1279,13 @@ var SUCCESS_HTML = `<!doctype html><html><head><meta charset="utf-8"><title>H1VE
|
|
|
1279
1279
|
<body style="font-family:system-ui;background:#0f1115;color:#e7e9ee;display:flex;min-height:100vh;align-items:center;justify-content:center;margin:0">
|
|
1280
1280
|
<div style="text-align:center"><div style="font-size:22px;font-weight:800;letter-spacing:.12em">H<span style="color:#f5a623">1</span>VE</div>
|
|
1281
1281
|
<p style="color:#9aa0aa;margin-top:12px">\u2713 Autorizado. Pode fechar esta aba e voltar ao terminal.</p></div></body></html>`;
|
|
1282
|
+
function browserOpenCommand(platform, url) {
|
|
1283
|
+
if (platform === "darwin") return { cmd: "open", args: [url] };
|
|
1284
|
+
if (platform === "win32") return { cmd: "explorer.exe", args: [url] };
|
|
1285
|
+
return { cmd: "xdg-open", args: [url] };
|
|
1286
|
+
}
|
|
1282
1287
|
function openBrowser(url) {
|
|
1283
|
-
const
|
|
1284
|
-
const cmd = platform === "darwin" ? "open" : platform === "win32" ? "cmd" : "xdg-open";
|
|
1285
|
-
const args = platform === "win32" ? ["/c", "start", "", url] : [url];
|
|
1288
|
+
const { cmd, args } = browserOpenCommand(process.platform, url);
|
|
1286
1289
|
try {
|
|
1287
1290
|
const child = execFile2(cmd, args, () => {
|
|
1288
1291
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h1veframework/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "The CLI for H1VE — the governance & memory layer for teams building with AI. Drive your feature flow (start, status, move, spec, done) from the terminal. Works with Claude Code, Cursor and Copilot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|