tacticremote 1.8.1 → 1.9.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/README.md +1 -2
- package/bin/tacticremote.js +15 -3
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -42,9 +42,8 @@ npx tacticremote -p 9000 --path ~/projects # custom port + restricted path
|
|
|
42
42
|
|
|
43
43
|
- macOS — Apple Silicon (arm64) and Intel (x64)
|
|
44
44
|
- Linux — arm64 and x64
|
|
45
|
-
- Windows — x64
|
|
46
45
|
|
|
47
|
-
`npm` automatically downloads
|
|
46
|
+
On macOS and Linux, `npm` automatically downloads the binary matching your platform; no extra setup required. **Windows is not supported via npm** — download the [Windows installer](https://tacticremote.com) instead.
|
|
48
47
|
|
|
49
48
|
## License
|
|
50
49
|
|
package/bin/tacticremote.js
CHANGED
|
@@ -9,7 +9,6 @@ const SUPPORTED = new Set([
|
|
|
9
9
|
'darwin-x64',
|
|
10
10
|
'linux-arm64',
|
|
11
11
|
'linux-x64',
|
|
12
|
-
'win32-x64',
|
|
13
12
|
]);
|
|
14
13
|
|
|
15
14
|
function platformPackageName() {
|
|
@@ -21,7 +20,9 @@ function platformPackageName() {
|
|
|
21
20
|
function resolveBinary(pkg) {
|
|
22
21
|
const pkgJsonPath = require.resolve(`${pkg}/package.json`);
|
|
23
22
|
const pkgDir = path.dirname(pkgJsonPath);
|
|
24
|
-
|
|
23
|
+
// win32 is excluded from SUPPORTED above, so this is only ever reached for
|
|
24
|
+
// darwin/linux; there is no .exe variant to resolve.
|
|
25
|
+
const exe = 'tacticremote-server';
|
|
25
26
|
return path.join(pkgDir, 'bin', exe);
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -29,7 +30,7 @@ function main() {
|
|
|
29
30
|
const pkg = platformPackageName();
|
|
30
31
|
if (!pkg) {
|
|
31
32
|
console.error(`tacticremote: unsupported platform ${process.platform}-${process.arch}`);
|
|
32
|
-
console.error('Supported: darwin/linux
|
|
33
|
+
console.error('Supported: darwin/linux × arm64/x64 (Windows: use the NSIS installer — https://tacticremote.com)');
|
|
33
34
|
console.error('See https://tacticremote.com for installation help.');
|
|
34
35
|
process.exit(1);
|
|
35
36
|
}
|
|
@@ -48,6 +49,17 @@ function main() {
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
const child = spawn(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
52
|
+
|
|
53
|
+
// Forward termination signals to the spawned server so it is not orphaned
|
|
54
|
+
// when a process manager signals the wrapper PID directly (not the group).
|
|
55
|
+
const forwardSignal = (sig) => {
|
|
56
|
+
if (!child.killed) {
|
|
57
|
+
try { child.kill(sig); } catch (_e) { /* child already gone */ }
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
process.on('SIGTERM', () => forwardSignal('SIGTERM'));
|
|
61
|
+
process.on('SIGINT', () => forwardSignal('SIGINT'));
|
|
62
|
+
|
|
51
63
|
child.on('error', (err) => {
|
|
52
64
|
console.error(`tacticremote: failed to launch server binary: ${err.message}`);
|
|
53
65
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tacticremote",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Control AI coding agents from your iPhone or iPad — Tactic Remote CLI",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"bin": {
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
"node": ">=16"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@tacticremote/server-darwin-arm64": "1.
|
|
19
|
-
"@tacticremote/server-darwin-x64": "1.
|
|
20
|
-
"@tacticremote/server-linux-arm64": "1.
|
|
21
|
-
"@tacticremote/server-linux-x64": "1.
|
|
22
|
-
"@tacticremote/server-win32-x64": "1.8.1"
|
|
18
|
+
"@tacticremote/server-darwin-arm64": "1.9.0",
|
|
19
|
+
"@tacticremote/server-darwin-x64": "1.9.0",
|
|
20
|
+
"@tacticremote/server-linux-arm64": "1.9.0",
|
|
21
|
+
"@tacticremote/server-linux-x64": "1.9.0"
|
|
23
22
|
},
|
|
24
23
|
"repository": {
|
|
25
24
|
"type": "git",
|