-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
191 lines (191 loc) · 10.7 KB
/
package.json
File metadata and controls
191 lines (191 loc) · 10.7 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"name": "mobb-ai-tracer",
"displayName": "Mobb Tracy",
"version": "0.3.19",
"repository": "https://github.com/mobb-dev/tracy",
"publisher": "Mobb",
"icon": "icon.png",
"engines": {
"vscode": "^1.99.0",
"node": "22.x"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"keybindings": [
{
"command": "mobb.acceptInlineCompletion",
"key": "tab",
"when": "inlineSuggestionVisible && editorTextFocus && !editorTabMovesFocus"
}
],
"configuration": {
"title": "Mobb Tracy",
"properties": {
"mobbAiTracer.apiUrl": {
"type": "string",
"default": "https://api.mobb.ai/v1/graphql",
"description": "API endpoint URL for Mobb services. Requires window reload to take effect."
},
"mobbAiTracer.webAppUrl": {
"type": "string",
"default": "https://app.mobb.ai",
"description": "Web application URL for Mobb. Requires window reload to take effect."
},
"mobbAiTracer.sanitizeData": {
"type": "boolean",
"default": false,
"description": "Enable sanitization of sensitive data (PII, secrets) before uploading. May impact performance with large sessions."
}
}
}
},
"scripts": {
"pull-env": "dotenv-vault pull",
"compile": "npm run pull-env && npm run build:production",
"build": "npm run typecheck && node esbuild.mjs",
"build:production": "npm run typecheck && node esbuild.mjs --production",
"typecheck": "tsc -p . --noEmit",
"watch": "node esbuild.mjs --watch",
"lint": "eslint --cache --max-warnings 0 --ignore-path .eslintignore --ext .js,.ts,.tsx,.jsx . && npm run lint:pkg",
"lint:fix": "eslint --fix --cache --max-warnings 0 --ignore-path .eslintignore --ext .js,.ts,.tsx,.jsx .",
"lint:pkg": "npmPkgJsonLint .",
"lint:fix:files": "eslint --fix --cache --max-warnings 0 --ignore-path .eslintignore --ext .js,.ts,.tsx,.jsx",
"test": "vitest run",
"test:ci": "vitest run --bail=1",
"test:watch": "vitest watch",
"build:test": "npm run build && node -e \"const fs=require('fs'); const path=require('path'); const testConfig={DD_RUM_TOKEN:'pubf59c0182545bfb4c299175119f1abf9b',WEB_LOGIN_URL:'http://localhost:5173/cli-login',API_URL:'http://localhost:3000/graphql',WEB_APP_URL:'http://localhost:5173',HASURA_ACCESS_KEY:'test-hasura-key',LOCAL_GRAPHQL_ENDPOINT:'http://localhost:3000/graphql'}; const outDir=path.join(__dirname,'out'); if(!fs.existsSync(outDir))fs.mkdirSync(outDir,{recursive:true}); fs.writeFileSync(path.join(outDir,'runtime.config.json'),JSON.stringify(testConfig,null,2)); const envContent=Object.entries(testConfig).map(([k,v])=>k+'='+v).join('\\n'); fs.writeFileSync(path.join(__dirname,'.env'),envContent); console.log('✅ Test .env and runtime.config.json created');\"",
"package:test": "rm -f mobb-ai-tracer-*.vsix && npm run build:test && npx vsce package --allow-package-env-file --no-dependencies",
"test:e2e": "npm run test:e2e:cursor:docker",
"test:e2e:cursor:docker": "npm run package:test && cd ../.. && docker build --build-arg CURSOR_CACHE_BUST=$(date +%s) -t tracer-ext-cursor-e2e -f clients/tracer_ext/__tests__/e2e/cursor/docker/Dockerfile . && cd clients/tracer_ext && docker run --rm -p 28080:8080 -p 25173:5173 -p 25900:5900 -e CURSOR_STATE_VSCDB_B64=\"$(cat __tests__/e2e/cursor/cursor-auth.b64 2>/dev/null | grep -v '^#' || echo '')\" -v $(pwd)/test-results:/workspace/clients/tracer_ext/test-results -v $(pwd):/host-vsix:ro tracer-ext-cursor-e2e",
"test:e2e:cursor:docker-vnc": "npm run package:test && cd ../.. && docker build --build-arg CURSOR_CACHE_BUST=$(date +%s) -t tracer-ext-cursor-e2e -f clients/tracer_ext/__tests__/e2e/cursor/docker/Dockerfile . && cd clients/tracer_ext && docker run --rm -p 28080:8080 -p 25173:5173 -p 25900:5900 -e ENABLE_VNC=true -e CURSOR_STATE_VSCDB_B64=\"$(cat __tests__/e2e/cursor/cursor-auth.b64 2>/dev/null | grep -v '^#' || echo '')\" -v $(pwd)/test-results:/workspace/clients/tracer_ext/test-results -v $(pwd):/host-vsix:ro tracer-ext-cursor-e2e",
"test:e2e:vscode:docker": "npm run package:test && cd ../.. && docker build -t tracer-ext-vscode-e2e -f clients/tracer_ext/__tests__/e2e/vscode/docker/Dockerfile . && cd clients/tracer_ext && docker run --rm -p 18080:8080 -p 15173:5173 -p 15900:5900 -e VSCODE_STATE_VSCDB_B64=\"$(cat __tests__/e2e/vscode/auth/vscode-auth-linux.b64 2>/dev/null | grep -v '^#' || echo '')\" -v $(pwd)/test-results:/workspace/clients/tracer_ext/test-results -v $(pwd):/host-vsix:ro tracer-ext-vscode-e2e",
"test:e2e:vscode:docker-vnc": "npm run package:test && cd ../.. && docker build -t tracer-ext-vscode-e2e -f clients/tracer_ext/__tests__/e2e/vscode/docker/Dockerfile . && cd clients/tracer_ext && docker run --rm -p 18080:8080 -p 15173:5173 -p 15900:5900 -e ENABLE_VNC=true -e VSCODE_STATE_VSCDB_B64=\"$(cat __tests__/e2e/vscode/auth/vscode-auth-linux.b64 2>/dev/null | grep -v '^#' || echo '')\" -v $(pwd)/test-results:/workspace/clients/tracer_ext/test-results -v $(pwd):/host-vsix:ro tracer-ext-vscode-e2e",
"test:e2e:claude-code:docker": "cd ../.. && docker build -t claude-code-e2e -f clients/tracer_ext/__tests__/e2e/claude-code/docker/Dockerfile . && cd clients/tracer_ext && export AWS_ACCESS_KEY_ID=\"$(grep '^AWS_BEDROCK_ACCESS_KEY_ID_V2=' ../../.env | cut -d'=' -f2 | tr -d '\"')\" && export AWS_SECRET_ACCESS_KEY=\"$(grep '^AWS_BEDROCK_ACCESS_KEY_V2=' ../../.env | cut -d'=' -f2 | tr -d '\"')\" && export AWS_DEFAULT_REGION=\"${AWS_DEFAULT_REGION:-us-west-2}\" && export AWS_REGION=\"$AWS_DEFAULT_REGION\" && export CLAUDE_CODE_USE_BEDROCK=\"true\" && docker run --rm -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_DEFAULT_REGION -e AWS_REGION -e AWS_BEARER_TOKEN_BEDROCK -e CLAUDE_CODE_USE_BEDROCK -e ANTHROPIC_API_KEY -v $(pwd)/test-results:/workspace/clients/tracer_ext/test-results claude-code-e2e",
"test:e2e:claude-code:windows:docker": "cd ../.. && docker build -t claude-code-windows-e2e -f clients/tracer_ext/__tests__/e2e/claude-code/docker/Dockerfile.windows . && cd clients/tracer_ext && docker run --rm -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_DEFAULT_REGION -e AWS_REGION -e AWS_BEARER_TOKEN_BEDROCK -e CLAUDE_CODE_USE_BEDROCK -e ANTHROPIC_API_KEY claude-code-windows-e2e",
"e2e:refresh-cursor-auth": "./__tests__/e2e/cursor/scripts/refresh-cursor-auth.sh",
"e2e:refresh-vscode-auth": "./__tests__/e2e/vscode/scripts/refresh-vscode-auth.sh",
"package": "vsce package --allow-package-env-file --no-dependencies",
"publish:microsoft": "vsce publish --allow-package-env-file --skip-duplicate --no-dependencies",
"publish:openvsx": "ovsx publish --packagePath $(ls *.vsix | sort -V | tail -n1) --skip-duplicate",
"local-install": "pnpm i --no-link-workspace-packages",
"package:dev": "./package-dev.sh --env local",
"package:dev:sandbox": "./package-dev.sh --env sandbox",
"package:dev:prod": "./package-dev.sh --env prod",
"package:dev:uninstall": "code --uninstall-extension Mobb.mobb-ai-tracer-dev 2>/dev/null; cursor --uninstall-extension Mobb.mobb-ai-tracer-dev 2>/dev/null; echo 'Dev extension uninstalled'"
},
"Readme comment dependencies": "IMPORTANT: We use exact versions for reproducibility since package-lock.json is gitignored. esbuild bundles all deps at build time; node_modules is excluded from the VSIX via --no-dependencies.",
"dependencies": {
"@gitbeaker/requester-utils": "43.8.0",
"@gitbeaker/rest": "43.8.0",
"@modelcontextprotocol/sdk": "1.29.0",
"@octokit/core": "5.2.0",
"@octokit/request-error": "5.1.1",
"@openredaction/openredaction": "1.0.4",
"adm-zip": "0.5.16",
"azure-devops-node-api": "15.1.2",
"bitbucket": "2.12.0",
"chalk": "5.6.2",
"configstore": "7.1.0",
"cross-fetch": "4.1.0",
"debug": "4.4.3",
"diff": "5.2.2",
"dotenv": "16.6.1",
"escape-html": "1.0.3",
"extract-zip": "2.0.1",
"fs-extra": "11.3.4",
"graphql-request": "6.1.0",
"graphql-ws": "5.16.2",
"hash-wasm": "4.12.0",
"http-proxy-agent": "7.0.2",
"https-proxy-agent": "7.0.6",
"ignore": "7.0.5",
"isomorphic-ws": "5.0.0",
"istextorbinary": "9.5.0",
"jsonc-parser": "3.3.1",
"node-fetch": "3.3.2",
"octokit": "3.2.1",
"open": "8.4.2",
"p-limit": "3.1.0",
"parse-diff": "0.11.1",
"pino": "9.7.0",
"pino-pretty": "13.0.0",
"sax": "1.6.0",
"semver": "7.7.4",
"simple-git": "3.33.0",
"tmp": "0.2.5",
"tmp-promise": "3.0.3",
"undici": "6.24.0",
"uuid": "11.1.0",
"ws": "8.20.0",
"xml2js": "0.6.2",
"yaml": "2.8.3",
"yargs": "17.7.2",
"zod": "3.25.76"
},
"Readme comment devDependencies": "IMPORTANT: We use exact versions for reproducibility since package-lock.json is gitignored.",
"devDependencies": {
"@grpc/grpc-js": "1.14.3",
"@grpc/proto-loader": "0.8.0",
"@octokit/types": "13.10.0",
"@playwright/test": "1.58.2",
"@types/adm-zip": "0.5.7",
"@types/better-sqlite3": "7.6.13",
"@types/chalk-animation": "1.6.3",
"@types/configstore": "6.0.2",
"@types/debug": "4.1.13",
"@types/diff": "5.2.2",
"@types/fs-extra": "11.0.4",
"@types/escape-html": "1.0.4",
"@types/express": "4.17.21",
"@types/inquirer": "9.0.9",
"@types/libsodium-wrappers": "0.7.14",
"@types/node": "25.0.3",
"@types/sax": "1.2.7",
"@types/semver": "7.7.1",
"@types/tmp": "0.2.6",
"@types/vscode": "1.99.0",
"@types/ws": "8.18.1",
"@types/xml2js": "0.4.14",
"@types/yargs": "17.0.34",
"@typescript-eslint/eslint-plugin": "7.17.0",
"@typescript-eslint/eslint-plugin-tslint": "6.5.0",
"@typescript-eslint/parser": "7.17.0",
"@vitest/coverage-v8": "3.2.4",
"@vscode/test-electron": "2.5.2",
"@vscode/vsce": "3.7.0",
"better-sqlite3": "12.5.0",
"chalk-animation": "2.0.3",
"esbuild": "0.28.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jest": "27.9.0",
"eslint-plugin-prettier": "5.5.5",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-sonarjs": "0.24.0",
"express": "4.22.1",
"globby": "14.1.0",
"imapflow": "1.2.18",
"inquirer": "9.3.8",
"libsodium-wrappers": "0.7.15",
"multimatch": "7.0.0",
"nanospinner": "1.1.0",
"nock": "14.0.11",
"node-stream-zip": "1.15.0",
"npm-package-json-lint": "9.1.0",
"ovsx": "0.10.7",
"playwright": "1.58.2",
"prettier": "3.8.1",
"quoted-printable": "1.0.1",
"ts-node": "10.9.2",
"tsx": "4.20.6",
"typescript": "5.9.3",
"vitest": "3.2.4"
}
}