@multiplayer-app/cli 2.0.4 → 2.0.6
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/.turbo/turbo-build.log +7 -0
- package/bin/multiplayer.js +50 -0
- package/package.json +30 -22
- package/dist/highlights-eq9cgrbb.scm +0 -604
- package/dist/highlights-ghv9g403.scm +0 -205
- package/dist/highlights-hk7bwhj4.scm +0 -284
- package/dist/highlights-r812a2qc.scm +0 -150
- package/dist/highlights-x6tmsnaa.scm +0 -115
- package/dist/index.js +0 -166495
- package/dist/injections-73j83es3.scm +0 -27
- package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
- package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
- package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
- package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
- package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @multiplayer-app/cli@2.0.5 build /Users/dima/Projects/multiplayer-debugger-javascript/packages/cli
|
|
4
|
+
> bun build src/index.tsx --compile --outfile dist/multiplayer-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed 's/x86_64/x64/') --sourcemap=none
|
|
5
|
+
|
|
6
|
+
[0m[2m[[1m219ms[0m[2m][0m [32mbundle[0m 908 modules
|
|
7
|
+
[0m[2m[[1m319ms[0m[2m][0m [32mcompile[0m [1m[34mdist/multiplayer-darwin-arm64[0m
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { execFileSync } from 'child_process'
|
|
3
|
+
import { existsSync } from 'fs'
|
|
4
|
+
import { fileURLToPath } from 'url'
|
|
5
|
+
import path from 'path'
|
|
6
|
+
|
|
7
|
+
const PLATFORM_MAP = { darwin: 'darwin', linux: 'linux', win32: 'windows' }
|
|
8
|
+
const ARCH_MAP = { x64: 'x64', arm64: 'arm64' }
|
|
9
|
+
|
|
10
|
+
const platform = PLATFORM_MAP[process.platform]
|
|
11
|
+
const arch = ARCH_MAP[process.arch]
|
|
12
|
+
|
|
13
|
+
if (!platform || !arch) {
|
|
14
|
+
process.stderr.write(`Unsupported platform: ${process.platform}-${process.arch}\n`)
|
|
15
|
+
process.exit(1)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const pkgName = `@multiplayer-app/cli-${platform}-${arch}`
|
|
19
|
+
const binName = process.platform === 'win32' ? 'multiplayer.exe' : 'multiplayer'
|
|
20
|
+
|
|
21
|
+
// Walk up from this file looking for the binary in node_modules
|
|
22
|
+
function findBinary() {
|
|
23
|
+
if (process.env.MULTIPLAYER_BIN_PATH) return process.env.MULTIPLAYER_BIN_PATH
|
|
24
|
+
|
|
25
|
+
let dir = path.dirname(fileURLToPath(import.meta.url))
|
|
26
|
+
while (true) {
|
|
27
|
+
const candidate = path.join(dir, 'node_modules', pkgName, binName)
|
|
28
|
+
if (existsSync(candidate)) return candidate
|
|
29
|
+
const parent = path.dirname(dir)
|
|
30
|
+
if (parent === dir) break
|
|
31
|
+
dir = parent
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Fallback: sibling dist/ for local dev
|
|
35
|
+
const devBin = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'dist', `${platform}-${arch}`, binName)
|
|
36
|
+
if (existsSync(devBin)) return devBin
|
|
37
|
+
|
|
38
|
+
return null
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const bin = findBinary()
|
|
42
|
+
if (!bin) {
|
|
43
|
+
process.stderr.write(
|
|
44
|
+
`Could not find binary for ${platform}-${arch}.\n` +
|
|
45
|
+
`Try reinstalling: npm install -g @multiplayer-app/cli\n`
|
|
46
|
+
)
|
|
47
|
+
process.exit(1)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
execFileSync(bin, process.argv.slice(2), { stdio: 'inherit' })
|
package/package.json
CHANGED
|
@@ -1,45 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplayer-app/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "Multiplayer CLI",
|
|
5
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"multiplayer": "./
|
|
7
|
+
"multiplayer": "./bin/multiplayer.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "bun
|
|
11
|
-
"
|
|
10
|
+
"build": "bun run scripts/build.ts",
|
|
11
|
+
"publish": "bun run scripts/publish.ts",
|
|
12
12
|
"dev": "bun src/index.tsx",
|
|
13
13
|
"typecheck": "tsc --noEmit",
|
|
14
|
-
"lint": "eslint src/**/*.ts --config eslint.config.js"
|
|
15
|
-
|
|
14
|
+
"lint": "eslint src/**/*.ts --config eslint.config.js"
|
|
15
|
+
},
|
|
16
|
+
"optionalDependencies": {
|
|
17
|
+
"@multiplayer-app/cli-darwin-arm64": "2.0.5",
|
|
18
|
+
"@multiplayer-app/cli-darwin-x64": "2.0.5",
|
|
19
|
+
"@multiplayer-app/cli-linux-x64": "2.0.5",
|
|
20
|
+
"@multiplayer-app/cli-linux-arm64": "2.0.5",
|
|
21
|
+
"@multiplayer-app/cli-windows-x64": "2.0.5",
|
|
22
|
+
"@multiplayer-app/cli-windows-arm64": "2.0.5"
|
|
16
23
|
},
|
|
17
24
|
"license": "MIT",
|
|
18
|
-
"
|
|
25
|
+
"devDependencies": {
|
|
19
26
|
"@anthropic-ai/claude-agent-sdk": "0.2.89",
|
|
20
27
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
21
|
-
"@opentui/core": "0.1.
|
|
22
|
-
"@opentui/
|
|
28
|
+
"@opentui/core": "0.1.96",
|
|
29
|
+
"@opentui/core-darwin-arm64": "0.1.96",
|
|
30
|
+
"@opentui/core-darwin-x64": "0.1.96",
|
|
31
|
+
"@opentui/core-linux-x64": "0.1.96",
|
|
32
|
+
"@opentui/core-linux-arm64": "0.1.96",
|
|
33
|
+
"@opentui/core-win32-x64": "0.1.96",
|
|
34
|
+
"@opentui/core-win32-arm64": "0.1.96",
|
|
35
|
+
"@opentui/react": "0.1.96",
|
|
36
|
+
"@sindresorhus/tsconfig": "^8.1.0",
|
|
37
|
+
"@types/jsonwebtoken": "^9.0.10",
|
|
38
|
+
"@types/node": "25.5.0",
|
|
39
|
+
"@types/react": "19.2.14",
|
|
40
|
+
"@types/superagent": "8.1.9",
|
|
23
41
|
"commander": "14.0.3",
|
|
24
42
|
"dotenv": "16.0.0",
|
|
43
|
+
"eslint": "10.1.0",
|
|
25
44
|
"jsonwebtoken": "9.0.3",
|
|
26
45
|
"mongoose": "9.3.3",
|
|
27
46
|
"openai": "6.33.0",
|
|
28
47
|
"react": "19.2.4",
|
|
29
48
|
"simple-git": "3.33.0",
|
|
30
49
|
"socket.io-client": "4.8.3",
|
|
31
|
-
"superagent": "10.3.0"
|
|
32
|
-
},
|
|
33
|
-
"overrides": {
|
|
34
|
-
"react": "19.2.4"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@sindresorhus/tsconfig": "^8.1.0",
|
|
38
|
-
"@types/jsonwebtoken": "^9.0.10",
|
|
39
|
-
"@types/node": "25.5.0",
|
|
40
|
-
"@types/react": "19.2.14",
|
|
41
|
-
"@types/superagent": "8.1.9",
|
|
42
|
-
"eslint": "10.1.0",
|
|
50
|
+
"superagent": "10.3.0",
|
|
43
51
|
"typescript": "6.0.2"
|
|
44
52
|
}
|
|
45
53
|
}
|