relmio 0.2.13 → 0.2.14
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/CHANGELOG.md +27 -0
- package/README.md +16 -7
- package/docs/troubleshooting.md +13 -5
- package/package.json +5 -2
- package/src/cli.js +75 -29
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,33 @@ checks the registry separately after publication.
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## [0.2.14] - 2026-08-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add staged Homebrew formula and WinGet portable-package generation with
|
|
15
|
+
x64/ARM64 manifests, installed-command smoke tests, and review-only CI
|
|
16
|
+
artifacts for package-manager publication.
|
|
17
|
+
- Add `relmio --version` and `relmio -v` for noninteractive installer and
|
|
18
|
+
package-manager verification.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Report Homebrew and WinGet publication status in the hosted install page and
|
|
23
|
+
documentation, while keeping unapproved commands out of the primary picker.
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- Replace the hosted Command Prompt installer route's PowerShell launch with a
|
|
28
|
+
PowerShell-free, non-admin native batch bootstrap that reuses Node.js 22+
|
|
29
|
+
when available or verifies a pinned official Windows runtime before use.
|
|
30
|
+
- Keep downloaded checksum-manifest text out of CMD evaluation and use reviewed
|
|
31
|
+
Node.js 22.23.2 x64/ARM64 digests embedded in the release.
|
|
32
|
+
- Download the CMD bootstrap to a collision-resistant temporary name without
|
|
33
|
+
overwriting an existing `install.cmd`, then clean it after execution.
|
|
34
|
+
- Show deterministic download, checksum-verification, and extraction stages in
|
|
35
|
+
every bootstrap so temporary Node.js runtime setup does not appear stalled.
|
|
36
|
+
|
|
10
37
|
## [0.2.13] - 2026-08-04
|
|
11
38
|
|
|
12
39
|
### Changed
|
package/README.md
CHANGED
|
@@ -105,16 +105,24 @@ irm https://relmio.vercel.app/install.ps1 | iex
|
|
|
105
105
|
### Windows Command Prompt
|
|
106
106
|
|
|
107
107
|
```bat
|
|
108
|
-
"%
|
|
108
|
+
for /f "delims=" %F in ("%TEMP%\relmio-install-%RANDOM%-%RANDOM%-%RANDOM%.cmd") do @if exist "%~F" (exit /b 80) else curl -fsSL --remove-on-error https://relmio.vercel.app/install.cmd -o "%~F" && set "RELMIO_SELF_DELETE=%~F" && call "%~F"
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
No Node.js or Git Bash installation is required first. The
|
|
112
112
|
[POSIX](https://github.com/Demonbane18/relmio/blob/main/web/public/install.sh)
|
|
113
113
|
and [Windows PowerShell](https://github.com/Demonbane18/relmio/blob/main/web/public/install.ps1)
|
|
114
|
-
bootstraps
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
bootstraps, plus the PowerShell-free [Command Prompt](https://github.com/Demonbane18/relmio/blob/main/web/public/install.cmd)
|
|
115
|
+
bootstrap, reuse Node.js 22 or newer when available. Otherwise they show
|
|
116
|
+
staged **Please wait** messages while they download the matching current
|
|
117
|
+
official Node.js 22 runtime to a private temporary directory, verify its
|
|
118
|
+
SHA-256 checksum, run Relmio with npm lifecycle scripts disabled, and remove
|
|
119
|
+
the temporary runtime when the wizard closes. The Command Prompt path runs as
|
|
120
|
+
the current user and does not request administrator access or change Windows
|
|
121
|
+
security policy.
|
|
122
|
+
|
|
123
|
+
Homebrew tap publication and WinGet catalog approval are pending. Their install
|
|
124
|
+
commands will be added only after each public package passes a real
|
|
125
|
+
package-manager installation test. Use a direct installer above today.
|
|
118
126
|
|
|
119
127
|
Users who already have Node.js 22 or newer can run the npm package directly:
|
|
120
128
|
|
|
@@ -137,8 +145,9 @@ a browser.
|
|
|
137
145
|
|
|
138
146
|
- On macOS/Linux/WSL/Git Bash: `curl`, `awk`, `tar`, and either `sha256sum` or
|
|
139
147
|
`shasum`; Git Bash also needs `unzip`
|
|
140
|
-
- On native Windows:
|
|
141
|
-
|
|
148
|
+
- On native Windows: Command Prompt uses its built-in `curl`, `certutil`, and
|
|
149
|
+
`tar` tools; Windows PowerShell 5.1 or PowerShell 7 remains an alternative
|
|
150
|
+
bootstrap
|
|
142
151
|
- A browser and an eligible ChatGPT/Codex account
|
|
143
152
|
- A self-hosted n8n Docker deployment on a VPS
|
|
144
153
|
- Docker Compose v2, SSH access, and a Docker network shared with n8n
|
package/docs/troubleshooting.md
CHANGED
|
@@ -49,13 +49,19 @@ irm https://relmio.vercel.app/install.ps1 | iex
|
|
|
49
49
|
Windows Command Prompt:
|
|
50
50
|
|
|
51
51
|
```bat
|
|
52
|
-
"%
|
|
52
|
+
for /f "delims=" %F in ("%TEMP%\relmio-install-%RANDOM%-%RANDOM%-%RANDOM%.cmd") do @if exist "%~F" (exit /b 80) else curl -fsSL --remove-on-error https://relmio.vercel.app/install.cmd -o "%~F" && set "RELMIO_SELF_DELETE=%~F" && call "%~F"
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
These commands do not require Node.js to be installed. The Windows options do
|
|
56
56
|
not require Git Bash. Each bootstrap reuses Node.js 22 or newer when available,
|
|
57
|
-
or
|
|
58
|
-
before execution.
|
|
57
|
+
or shows staged **Please wait** messages while it downloads an official
|
|
58
|
+
temporary runtime and verifies its SHA-256 checksum before execution. The
|
|
59
|
+
Command Prompt route is PowerShell-free, non-admin, and does not change Windows
|
|
60
|
+
security policy.
|
|
61
|
+
|
|
62
|
+
Homebrew tap publication and WinGet catalog approval are pending. Until each
|
|
63
|
+
public package passes its real install test, use one of the direct bootstrap
|
|
64
|
+
commands on this page.
|
|
59
65
|
|
|
60
66
|
If you choose the existing-Node fallback, confirm Node is version 22 or newer
|
|
61
67
|
and check the published package version first:
|
|
@@ -117,8 +123,10 @@ bypassed.
|
|
|
117
123
|
| Symptom | Meaning | Fix |
|
|
118
124
|
|---|---|---|
|
|
119
125
|
| `node: command not found`, `node is not recognized`, or Node is older than 22 | The NPX fallback cannot use the local runtime. | Use the macOS/Linux curl command or the native Windows PowerShell/Command Prompt command above. Either can run with a verified temporary runtime. Do not install Node.js on the VPS for the wizard. |
|
|
120
|
-
| `curl` or `sh` is not recognized on Windows | The macOS/Linux command was pasted into a native Windows terminal. | Use the PowerShell command in PowerShell
|
|
121
|
-
|
|
|
126
|
+
| `curl` or `sh` is not recognized on Windows | The macOS/Linux command was pasted into a native Windows terminal. | Use the PowerShell command in PowerShell or the collision-safe temporary-file command shown above in Command Prompt. Git Bash is not required. If Command Prompt does not have `curl`, update Windows or use the PowerShell route. |
|
|
127
|
+
| Command Prompt says it cannot create `powershell.exe` | A Windows policy denied PowerShell before the old CMD route could start its installer. | Use the current PowerShell-free Command Prompt command above. It downloads `install.cmd`, runs as your current user, and does not request elevation or change execution policy. |
|
|
128
|
+
| The bootstrap stays on a `Please wait` stage | Node.js is missing or older than 22, so the bootstrap is downloading, checking, or extracting a temporary Node.js 22 runtime. | Keep the terminal open while the deterministic stage messages advance. The runtime is verified before it runs, is removed after the wizard exits, and is not installed system-wide. |
|
|
129
|
+
| A bootstrap reports a checksum mismatch | The Node.js download did not match its reviewed official SHA-256 checksum, so it was not executed. | Retry on a trusted connection. Do not bypass the check. If it repeats, use an existing Node.js 22+ installation and report the sanitized error. |
|
|
122
130
|
| Windows PowerShell shows `[eval]:1` before the wizard starts | An older bootstrap passed a JavaScript expression through `node -p`; PowerShell native-argument handling can alter that expression. | Update to the latest `relmio@latest` and rerun the same PowerShell or Command Prompt command. The current bootstrap parses the literal `node --version` output and reuses Node.js 22 or newer. |
|
|
123
131
|
| Windows reports `spawn EINVAL` when starting ChatGPT sign-in | An older wizard tried to execute `npx.cmd` directly; Windows requires the current Node runtime to launch npm's JavaScript CLI. | Update to the latest `relmio@latest` release and restart the setup command. The current wizard keeps the macOS/Linux/WSL/Git Bash `npx` path unchanged. |
|
|
124
132
|
| The browser did not open | The automatic browser launch failed, but the local server may still be running. | Keep the newest terminal open and press Enter to ask an interactive wizard terminal to open it again. If the terminal is noninteractive or the launcher still fails, copy its newest `127.0.0.1` setup URL into the browser. Do not reuse a URL from a closed terminal. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "relmio",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "Turn a supported ChatGPT/Codex OAuth sign-in into a private OpenAI-compatible endpoint, starting with self-hosted n8n.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"relmio",
|
|
@@ -37,7 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"src",
|
|
40
|
-
"scripts",
|
|
40
|
+
"scripts/build-npm-package.js",
|
|
41
|
+
"scripts/check-release-metadata.js",
|
|
42
|
+
"scripts/check-syntax.js",
|
|
43
|
+
"scripts/preview.js",
|
|
41
44
|
"docs",
|
|
42
45
|
"README.md",
|
|
43
46
|
"SPEC.md",
|
package/src/cli.js
CHANGED
|
@@ -1,40 +1,86 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { randomBytes } from "node:crypto";
|
|
4
|
+
import { realpathSync } from "node:fs";
|
|
5
|
+
import { readFile } from "node:fs/promises";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
4
7
|
|
|
5
8
|
import { attachBrowserReopenOnEnter, openBrowser } from "./browser.js";
|
|
6
9
|
import { startWizardServer } from "./web/server.js";
|
|
7
10
|
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
const cliPath = fileURLToPath(import.meta.url);
|
|
12
|
+
const packageJsonUrl = new URL("../package.json", import.meta.url);
|
|
13
|
+
|
|
14
|
+
export function isCliEntryPath(entryPath, realpath = realpathSync) {
|
|
15
|
+
if (typeof entryPath !== "string" || entryPath === "") {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
try {
|
|
19
|
+
return realpath(entryPath) === realpath(cliPath);
|
|
20
|
+
} catch {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function cliMode(argumentsList) {
|
|
26
|
+
return argumentsList.length === 1 &&
|
|
27
|
+
(argumentsList[0] === "--version" || argumentsList[0] === "-v")
|
|
28
|
+
? "version"
|
|
29
|
+
: "wizard";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export async function runCli({
|
|
33
|
+
argumentsList = process.argv.slice(2),
|
|
34
|
+
log = console.log,
|
|
35
|
+
readPackage = () => readFile(packageJsonUrl, "utf8"),
|
|
36
|
+
} = {}) {
|
|
37
|
+
if (cliMode(argumentsList) === "version") {
|
|
38
|
+
const packageJson = JSON.parse(await readPackage());
|
|
39
|
+
if (typeof packageJson.version !== "string" || packageJson.version === "") {
|
|
40
|
+
throw new Error("Relmio package metadata does not contain a version.");
|
|
41
|
+
}
|
|
42
|
+
log(packageJson.version);
|
|
28
43
|
return;
|
|
29
44
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
await
|
|
45
|
+
|
|
46
|
+
const sessionToken = randomBytes(32).toString("base64url");
|
|
47
|
+
const wizard = await startWizardServer({ sessionToken });
|
|
48
|
+
const url = `${wizard.origin}/?session=${sessionToken}`;
|
|
49
|
+
|
|
50
|
+
log("");
|
|
51
|
+
log("Relmio");
|
|
52
|
+
log("---------");
|
|
53
|
+
log(`Local wizard: ${url}`);
|
|
54
|
+
log("");
|
|
55
|
+
log("This creates a separate sidecar and never restarts n8n.");
|
|
56
|
+
log("Keep this Terminal window open while using the wizard.");
|
|
57
|
+
log("Press Control+C to stop.");
|
|
58
|
+
log("");
|
|
59
|
+
|
|
60
|
+
openBrowser(url);
|
|
61
|
+
const detachBrowserReopen = attachBrowserReopenOnEnter({ url });
|
|
62
|
+
|
|
63
|
+
let closing = false;
|
|
64
|
+
async function close() {
|
|
65
|
+
if (closing) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
closing = true;
|
|
69
|
+
detachBrowserReopen();
|
|
70
|
+
await wizard.close();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
process.once("SIGINT", async () => {
|
|
74
|
+
await close();
|
|
75
|
+
});
|
|
76
|
+
process.once("SIGTERM", async () => {
|
|
77
|
+
await close();
|
|
78
|
+
});
|
|
33
79
|
}
|
|
34
80
|
|
|
35
|
-
process.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
process.
|
|
39
|
-
|
|
40
|
-
}
|
|
81
|
+
if (isCliEntryPath(process.argv[1])) {
|
|
82
|
+
runCli().catch((error) => {
|
|
83
|
+
console.error(error.message);
|
|
84
|
+
process.exitCode = 1;
|
|
85
|
+
});
|
|
86
|
+
}
|