@haakco/hostingctl 1.0.352 → 1.0.353
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/README.md +17 -0
- package/dist/main.js +3 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -82,6 +82,23 @@ older single-session shape is read as the `default` profile and rewritten in the
|
|
|
82
82
|
save, so no one has to migrate by hand. A session is **bound to the target it was issued for**: `--api-url`
|
|
83
83
|
naming a different host is refused before any request rather than spending the token there.
|
|
84
84
|
|
|
85
|
+
### npm and Rust sessions during migration
|
|
86
|
+
|
|
87
|
+
The Rust CLI is still in development. **Sign in separately with each client**: Rust does not import npm's
|
|
88
|
+
session document, and the two formats must not be copied or renamed into each other.
|
|
89
|
+
|
|
90
|
+
- npm keeps all named sessions in `hostingctl/credentials.json` under the platform config home.
|
|
91
|
+
- Rust keeps one session per `hostingctl/<profile>.json`. It uses `default` unless `--profile` or
|
|
92
|
+
`HOSTINGCTL_PROFILE` selects another; signing in to a named profile does not change that default.
|
|
93
|
+
- Rust reserves the profile name `credentials` so it cannot overwrite npm's document.
|
|
94
|
+
|
|
95
|
+
On Unix, both use `XDG_CONFIG_HOME/hostingctl`, falling back to `~/.config/hostingctl`. Windows npm uses
|
|
96
|
+
`%APPDATA%\hostingctl`; Rust uses the same default, falling back to `%USERPROFILE%\AppData\Roaming\hostingctl`.
|
|
97
|
+
Rust additionally accepts `HOSTINGCTL_CONFIG_HOME` as a complete config directory, and honors its XDG override
|
|
98
|
+
on Windows too. Rust refuses unsafe existing Unix directory/file permissions rather than silently repairing
|
|
99
|
+
them. Native Windows credential protection and execution remain unfinished; Unix mode checks are not
|
|
100
|
+
Windows ACL proof.
|
|
101
|
+
|
|
85
102
|
### A machine with no browser
|
|
86
103
|
|
|
87
104
|
`--no-browser` prints the authorize URL, then reads the callback URL pasted on stdin. This is the case where
|
package/dist/main.js
CHANGED
|
@@ -36830,7 +36830,7 @@ function writeUpdateState(state, env = process.env) {
|
|
|
36830
36830
|
}
|
|
36831
36831
|
//#endregion
|
|
36832
36832
|
//#region src/version.ts
|
|
36833
|
-
var VERSION = "1.0.
|
|
36833
|
+
var VERSION = "1.0.353";
|
|
36834
36834
|
//#endregion
|
|
36835
36835
|
//#region src/commands/update.ts
|
|
36836
36836
|
/**
|
|
@@ -36905,7 +36905,7 @@ var update = {
|
|
|
36905
36905
|
}, process.env);
|
|
36906
36906
|
return {
|
|
36907
36907
|
...known,
|
|
36908
|
-
current: after ?? "1.0.
|
|
36908
|
+
current: after ?? "1.0.353",
|
|
36909
36909
|
latest: after ?? latest,
|
|
36910
36910
|
upToDate: after !== null && (latest === null || !isNewerVersion(latest, after)),
|
|
36911
36911
|
action: "run",
|
|
@@ -37180,7 +37180,7 @@ async function printUpdateNotice(options) {
|
|
|
37180
37180
|
}, env, { waitMs: NOTICE_LOCK_WAIT_MS });
|
|
37181
37181
|
} catch {}
|
|
37182
37182
|
if (latest === null) return;
|
|
37183
|
-
if (!isNewerVersion(latest, "1.0.
|
|
37183
|
+
if (!isNewerVersion(latest, "1.0.353")) return;
|
|
37184
37184
|
process.stderr.write(`A newer hostingctl is published: ${latest} (this copy is ${VERSION}). Run \`hostingctl update\` to update.\n`);
|
|
37185
37185
|
}
|
|
37186
37186
|
/** Whether an environment variable is set to something, which is how CI and the opt-out are read. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haakco/hostingctl",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.353",
|
|
4
4
|
"description": "Client-and-operator CLI for the hosting platform, over the public API.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"#/*": "./src/*.ts"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"@haakco/hostingctl-darwin-arm64": "1.0.
|
|
69
|
-
"@haakco/hostingctl-darwin-x64": "1.0.
|
|
70
|
-
"@haakco/hostingctl-linux-arm64": "1.0.
|
|
71
|
-
"@haakco/hostingctl-linux-x64": "1.0.
|
|
72
|
-
"@haakco/hostingctl-windows-x64": "1.0.
|
|
68
|
+
"@haakco/hostingctl-darwin-arm64": "1.0.353",
|
|
69
|
+
"@haakco/hostingctl-darwin-x64": "1.0.353",
|
|
70
|
+
"@haakco/hostingctl-linux-arm64": "1.0.353",
|
|
71
|
+
"@haakco/hostingctl-linux-x64": "1.0.353",
|
|
72
|
+
"@haakco/hostingctl-windows-x64": "1.0.353"
|
|
73
73
|
}
|
|
74
74
|
}
|