-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
66 lines (66 loc) · 4.33 KB
/
package.json
File metadata and controls
66 lines (66 loc) · 4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"name": "@just-every/code-bridge",
"version": "0.1.6",
"description": "Development-only bridge for capturing errors and logs in web, Node, and React Native",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./browser": {
"types": "./dist/browser.d.ts",
"import": "./dist/browser.mjs",
"require": "./dist/browser.js"
}
},
"sideEffects": false,
"bin": {
"code-bridge-host": "./bin/code-bridge-host.js",
"code-bridge-mcp": "./bin/code-bridge-mcp.js"
},
"scripts": {
"build": "tsup --config tsup.config.ts",
"dev": "tsup --config tsup.config.ts --watch",
"test": "vitest run",
"test:unit": "vitest run",
"protocol:test-server": "node tools/protocol-test-server.js",
"test:demo": "node demo/node-demo.js",
"copy:lua-client": "node tools/copy-lua-client.js",
"typecheck": "tsc --noEmit",
"sdk:python": "sh -c 'npm ci --ignore-scripts --omit=dev >/dev/null && node tools/protocol-test-server.js --port=9877 --secret=dev-secret >/tmp/cb-server.log 2>&1 & pid=$!; node tools/wait-for-port.js 9877 || exit $?; cd python && python3 -m pip install -r requirements.txt >/dev/null && python3 -m pip install . >/dev/null && CODE_BRIDGE_URL=ws://localhost:9877 CODE_BRIDGE_SECRET=dev-secret PYTHONPATH=$PWD python3 -m pytest tests; status=$?; kill $pid || true; exit $status'",
"sdk:go": "sh -c 'npm ci --ignore-scripts --omit=dev >/dev/null && node tools/protocol-test-server.js --port=9877 --secret=dev-secret >/tmp/cb-server.log 2>&1 & pid=$!; node tools/wait-for-port.js 9877 || exit $?; cd go && CODE_BRIDGE_URL=ws://localhost:9877 CODE_BRIDGE_SECRET=dev-secret go test ./...; status=$?; kill $pid || true; exit $status'",
"sdk:php": "sh -c 'npm ci --ignore-scripts --omit=dev >/dev/null && node tools/protocol-test-server.js --port=9877 --secret=dev-secret >/tmp/cb-server.log 2>&1 & pid=$!; node tools/wait-for-port.js 9877 || exit $?; cd php && composer install --no-interaction --no-progress && CODE_BRIDGE_URL=ws://localhost:9877 CODE_BRIDGE_SECRET=dev-secret php tests/smoke.php; status=$?; kill $pid || true; exit $status'",
"sdk:ruby": "sh -c 'npm ci --ignore-scripts --omit=dev >/dev/null && node tools/protocol-test-server.js --port=9877 --secret=dev-secret >/tmp/cb-server.log 2>&1 & pid=$!; node tools/wait-for-port.js 9877 || exit $?; export GEM_HOME=\"$(ruby -r rubygems -e \"print Gem.user_dir\")\"; export PATH=\"$GEM_HOME/bin:$PATH\"; gem install bundler --no-document --user-install >/dev/null && cd ruby && bundle config set path vendor/bundle >/dev/null && bundle install --quiet && CODE_BRIDGE_URL=ws://localhost:9877 CODE_BRIDGE_SECRET=dev-secret bundle exec ruby tests/smoke.rb; status=$?; kill $pid || true; exit $status'",
"sdk:rust": "sh -c 'npm ci --ignore-scripts --omit=dev >/dev/null && node tools/protocol-test-server.js --port=9877 --secret=dev-secret >/tmp/cb-server.log 2>&1 & pid=$!; node tools/wait-for-port.js 9877 || exit $?; cd rust && cargo test -- --nocapture; status=$?; kill $pid || true; exit $status'",
"sdk:swift": "sh -c 'npm ci --ignore-scripts --omit=dev >/dev/null && node tools/protocol-test-server.js --port=9877 --secret=dev-secret >/tmp/cb-server.log 2>&1 & pid=$!; node tools/wait-for-port.js 9877 || exit $?; cd swift && CODE_BRIDGE_URL=ws://localhost:9877 CODE_BRIDGE_SECRET=dev-secret swift test; status=$?; kill $pid || true; exit $status'",
"sdk:java": "sh -c 'npm ci --ignore-scripts --omit=dev >/dev/null && node tools/protocol-test-server.js --port=9877 --secret=dev-secret >/tmp/cb-server.log 2>&1 & pid=$!; node tools/wait-for-port.js 9877 || exit $?; cd java && CODE_BRIDGE_URL=ws://localhost:9877 CODE_BRIDGE_SECRET=dev-secret mvn -q test; status=$?; kill $pid || true; exit $status'"
},
"keywords": [
"development",
"debugging",
"error-tracking",
"logging",
"websocket"
],
"author": "",
"license": "MIT",
"devDependencies": {
"ajv": "^8.17.1",
"@types/node": "^24.10.1",
"vitest": "^1.4.0",
"tsup": "^8.0.0",
"typescript": "^5.0.0"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.23.0",
"ws": "^8.16.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/just-every/code-bridge.git"
}
}