@remotehost/cli 2.0.0-beta.1 → 2.0.1
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 +16 -7
- package/THIRD-PARTY-NOTICES.md +6410 -134
- package/bin/remote.js +7 -14
- package/package.json +6 -7
- package/dist/node-commands.js +0 -44626
package/bin/remote.js
CHANGED
|
@@ -6,11 +6,9 @@
|
|
|
6
6
|
// inherited, exiting as it exits. Nothing is downloaded: a machine whose
|
|
7
7
|
// package is missing is told why.
|
|
8
8
|
//
|
|
9
|
-
// It tells the program
|
|
10
|
-
// REMOTEHOST_LAUNCHER
|
|
11
|
-
//
|
|
12
|
-
// stays in Node (`remote claims`)
|
|
13
|
-
// REMOTEHOST_NODE the Node.js running this file, to run it with
|
|
9
|
+
// It tells the program one thing through the environment:
|
|
10
|
+
// REMOTEHOST_LAUNCHER this file
|
|
11
|
+
// The program runs nothing in Node: the package holds this file alone.
|
|
14
12
|
//
|
|
15
13
|
// Plain JavaScript: it runs on the Node.js of whoever installed the package.
|
|
16
14
|
|
|
@@ -77,14 +75,9 @@ export function findBinary({ platform, arch, resolve, exists = existsSync, nodeO
|
|
|
77
75
|
return { binary };
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
/** The program's environment: the caller's, and
|
|
81
|
-
export function childEnv(env, { launcher
|
|
82
|
-
return {
|
|
83
|
-
...env,
|
|
84
|
-
REMOTEHOST_LAUNCHER: launcher,
|
|
85
|
-
REMOTEHOST_NODE_COMMANDS: join(dirname(dirname(launcher)), "dist", "node-commands.js"),
|
|
86
|
-
REMOTEHOST_NODE: node,
|
|
87
|
-
};
|
|
78
|
+
/** The program's environment: the caller's, and this installation's launcher. */
|
|
79
|
+
export function childEnv(env, { launcher }) {
|
|
80
|
+
return { ...env, REMOTEHOST_LAUNCHER: launcher };
|
|
88
81
|
}
|
|
89
82
|
|
|
90
83
|
/** The exit status a shell reports for a process a signal ended. */
|
|
@@ -118,7 +111,7 @@ function main() {
|
|
|
118
111
|
|
|
119
112
|
const child = spawn(found.binary, process.argv.slice(2), {
|
|
120
113
|
stdio: "inherit",
|
|
121
|
-
env: childEnv(process.env, { launcher
|
|
114
|
+
env: childEnv(process.env, { launcher }),
|
|
122
115
|
});
|
|
123
116
|
|
|
124
117
|
// Ctrl-C and Ctrl-\ reach the program from the terminal, which signals the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotehost/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Create, attach to, and manage RemoteHost sandboxes from your terminal.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://remotehost.ai",
|
|
@@ -28,14 +28,13 @@
|
|
|
28
28
|
"LICENSE.md",
|
|
29
29
|
"README.md",
|
|
30
30
|
"THIRD-PARTY-NOTICES.md",
|
|
31
|
-
"bin/remote.js"
|
|
32
|
-
"dist/node-commands.js"
|
|
31
|
+
"bin/remote.js"
|
|
33
32
|
],
|
|
34
33
|
"optionalDependencies": {
|
|
35
|
-
"@remotehost/cli-darwin-arm64": "2.0.
|
|
36
|
-
"@remotehost/cli-darwin-x64": "2.0.
|
|
37
|
-
"@remotehost/cli-linux-x64": "2.0.
|
|
38
|
-
"@remotehost/cli-linux-arm64": "2.0.
|
|
34
|
+
"@remotehost/cli-darwin-arm64": "2.0.1",
|
|
35
|
+
"@remotehost/cli-darwin-x64": "2.0.1",
|
|
36
|
+
"@remotehost/cli-linux-x64": "2.0.1",
|
|
37
|
+
"@remotehost/cli-linux-arm64": "2.0.1"
|
|
39
38
|
},
|
|
40
39
|
"remotehostCli": {
|
|
41
40
|
"nodeOnlyVersion": "1.0.1"
|