coderemote 0.0.0-stage → 0.1.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/package.json CHANGED
@@ -1,6 +1,67 @@
1
1
  {
2
2
  "name": "coderemote",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Use your computer from your iPhone: files, git and a real terminal over a secure Microsoft Dev Tunnel. No SSH, no port forwarding, no VPN.",
5
+ "keywords": [
6
+ "remote",
7
+ "remote-terminal",
8
+ "remote-development",
9
+ "terminal",
10
+ "ios",
11
+ "iphone",
12
+ "mobile",
13
+ "dev-tunnels",
14
+ "devtunnel",
15
+ "tunnel",
16
+ "ssh-alternative",
17
+ "file-explorer",
18
+ "git",
19
+ "pty",
20
+ "cli",
21
+ "vscode",
22
+ "code-remote"
23
+ ],
24
+ "homepage": "https://github.com/Tranthanh98/coderemote#readme",
25
+ "bugs": {
26
+ "url": "https://github.com/Tranthanh98/coderemote/issues"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/Tranthanh98/coderemote.git",
31
+ "directory": "apps/agent"
32
+ },
33
+ "license": "AGPL-3.0-or-later",
34
+ "author": "Thanh Tran",
35
+ "type": "module",
36
+ "bin": {
37
+ "coderemote": "dist/coderemote.js"
38
+ },
39
+ "files": [
40
+ "dist",
41
+ "scripts/fix-node-pty.js"
42
+ ],
43
+ "engines": {
44
+ "node": ">=20"
45
+ },
46
+ "os": [
47
+ "darwin",
48
+ "linux"
49
+ ],
50
+ "scripts": {
51
+ "build": "node scripts/build.js",
52
+ "prepare": "node scripts/build.js",
53
+ "prepack": "node scripts/build.js && cp ../../LICENSE LICENSE",
54
+ "postpack": "rm -f LICENSE",
55
+ "postinstall": "node scripts/fix-node-pty.js"
56
+ },
57
+ "dependencies": {
58
+ "node-pty": "^1.1.0",
59
+ "qrcode-terminal": "^0.12.0",
60
+ "ws": "^8.22.0"
61
+ },
62
+ "devDependencies": {
63
+ "@vsremote/agent-core": "*",
64
+ "@vsremote/protocol": "*",
65
+ "esbuild": "^0.25.11"
66
+ }
67
+ }
@@ -0,0 +1,19 @@
1
+ // node-pty's macOS prebuilds ship spawn-helper without the exec bit,
2
+ // which makes every spawn fail with "posix_spawnp failed".
3
+ import fs from 'node:fs';
4
+ import path from 'node:path';
5
+ import { createRequire } from 'node:module';
6
+
7
+ const require = createRequire(import.meta.url);
8
+ let root;
9
+ try {
10
+ root = path.dirname(require.resolve('node-pty/package.json'));
11
+ } catch {
12
+ process.exit(0);
13
+ }
14
+ const prebuilds = path.join(root, 'prebuilds');
15
+ if (!fs.existsSync(prebuilds)) process.exit(0);
16
+ for (const dir of fs.readdirSync(prebuilds)) {
17
+ const helper = path.join(prebuilds, dir, 'spawn-helper');
18
+ if (fs.existsSync(helper)) fs.chmodSync(helper, 0o755);
19
+ }