pocketshell 1.0.6 → 1.0.7

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 CHANGED
@@ -264,7 +264,7 @@ cargo test -p host-agent # CLI tests
264
264
  RUST_LOG=debug cargo run -p host-agent -- daemon run # run with verbose logs
265
265
  ```
266
266
 
267
- Targets supported today: `x86_64-unknown-linux-gnu`, `aarch64-unknown-linux-gnu`, `aarch64-apple-darwin`, `x86_64-apple-darwin`. Windows is not yet supported (PRs welcome).
267
+ Targets supported today: `x86_64-unknown-linux-gnu`, `aarch64-unknown-linux-gnu`, `aarch64-apple-darwin`, `x86_64-apple-darwin`, `x86_64-pc-windows-msvc`. Windows x64 is distributed via npm (`npm i -g pocketshell`); some host features (service install, local-attach, PTY relay) are still stubbed on Windows.
268
268
 
269
269
  ---
270
270
 
@@ -38,6 +38,7 @@ function resolvePackageName() {
38
38
  ? '@pocketshell/linux-x64-musl'
39
39
  : '@pocketshell/linux-x64-gnu';
40
40
  }
41
+ if (platform === 'win32' && arch === 'x64') return '@pocketshell/win32-x64-msvc';
41
42
  return null;
42
43
  }
43
44
 
@@ -45,7 +46,7 @@ const pkgName = resolvePackageName();
45
46
  if (!pkgName) {
46
47
  console.error(
47
48
  `pocketshell: no prebuilt binary for ${process.platform}/${process.arch}.\n` +
48
- `Supported: darwin/arm64, linux/x64 (gnu+musl), linux/arm64.\n` +
49
+ `Supported: darwin/arm64, linux/x64 (gnu+musl), linux/arm64, win32/x64.\n` +
49
50
  `See https://pocketshell.app for manual install options.`
50
51
  );
51
52
  process.exit(1);
@@ -64,7 +65,8 @@ try {
64
65
  process.exit(1);
65
66
  }
66
67
 
67
- const binPath = path.join(pkgRoot, 'bin', 'pocketshell');
68
+ const binName = process.platform === 'win32' ? 'pocketshell.exe' : 'pocketshell';
69
+ const binPath = path.join(pkgRoot, 'bin', binName);
68
70
  const result = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
69
71
 
70
72
  if (result.error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pocketshell",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Secure mobile-to-host terminal access — installs the pocketshell host-agent CLI.",
5
5
  "homepage": "https://pocketshell.app",
6
6
  "repository": {
@@ -18,9 +18,10 @@
18
18
  "node": ">=14"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@pocketshell/darwin-arm64": "1.0.6",
22
- "@pocketshell/linux-x64-gnu": "1.0.6",
23
- "@pocketshell/linux-arm64-gnu": "1.0.6",
24
- "@pocketshell/linux-x64-musl": "1.0.6"
21
+ "@pocketshell/darwin-arm64": "1.0.7",
22
+ "@pocketshell/linux-x64-gnu": "1.0.7",
23
+ "@pocketshell/linux-arm64-gnu": "1.0.7",
24
+ "@pocketshell/linux-x64-musl": "1.0.7",
25
+ "@pocketshell/win32-x64-msvc": "1.0.7"
25
26
  }
26
27
  }