-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
110 lines (110 loc) · 4.8 KB
/
package.json
File metadata and controls
110 lines (110 loc) · 4.8 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
{
"name": "hash-context-codex-lab",
"version": "0.7.0",
"private": true,
"description": "Local context proxy and workbench companion for Codex.",
"author": "",
"main": "electron/context-window.cjs",
"scripts": {
"start": "npm run start:backend",
"setup:python": "powershell -NoProfile -ExecutionPolicy Bypass -Command \"if (-not (Test-Path '.venv\\Scripts\\python.exe')) { py -3 -m venv .venv }; .venv\\Scripts\\python.exe -m pip install --upgrade pip; .venv\\Scripts\\python.exe -m pip install -r requirements.txt\"",
"start:backend": "if exist .venv\\Scripts\\python.exe (.venv\\Scripts\\python.exe web_server.py) else (py -3 web_server.py)",
"proxy": "if exist .venv\\Scripts\\python.exe (.venv\\Scripts\\python.exe proxy_server.py) else (py -3 proxy_server.py)",
"codex": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-with-context.ps1",
"ctx:install": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-ctx-proxy.ps1 install",
"ctx:proxy:on": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-ctx-proxy.ps1 on",
"ctx:proxy:off": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-ctx-proxy.ps1 off",
"ctx:proxy:status": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-ctx-proxy.ps1 status",
"ctx:proxy:uninstall": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-ctx-proxy.ps1 uninstall",
"ctx:desktop:probe": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-desktop-proxy.ps1 probe",
"ctx:desktop:on": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-desktop-proxy.ps1 on",
"ctx:desktop:off": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-desktop-proxy.ps1 off",
"ctx:desktop:status": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-desktop-proxy.ps1 status",
"ctx:desktop:repair": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/codex-desktop-proxy.ps1 repair",
"context": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/show-context-window.ps1",
"window": "electron electron/context-window.cjs",
"electron:dev": "npm run window",
"dev:all": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/dev-all.ps1",
"dev": "vite --config react_app/vite.config.ts",
"dev:react": "vite --config react_app/vite.config.ts",
"typecheck": "tsc -p react_app/tsconfig.json --noEmit",
"test:compact-proxy": "node scripts/run-compact-proxy-test.mjs",
"build": "npm run build:react",
"build:react": "vite build --config react_app/vite.config.ts",
"build:python": "node scripts/build-python.mjs",
"preview:react": "vite preview --config react_app/vite.config.ts",
"pack:win": "npm run build:react && npm run build:python && electron-builder --win --dir",
"dist:win": "npm run build:react && npm run build:python && electron-builder --win nsis --publish never",
"pack:mac": "npm run build:react && npm run build:python && electron-builder --mac --dir",
"dist:mac": "npm run build:react && npm run build:python && electron-builder --mac --publish never"
},
"dependencies": {
"highlight.js": "^11.11.1",
"js-tiktoken": "^1.0.21",
"mermaid": "^11.12.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-markdown": "^10.1.0",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.1",
"remark-github-blockquote-alert": "^2.0.0"
},
"devDependencies": {
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@vitejs/plugin-react": "^5.1.0",
"electron": "^37.10.3",
"electron-builder": "^26.8.1",
"typescript": "^5.9.3",
"vite": "^7.1.12"
},
"build": {
"appId": "dev.codex-context.proxy",
"productName": "Codex Context Proxy",
"asar": false,
"directories": {
"output": "release"
},
"files": [
"electron/**/*",
"codex_context.py",
"web_server.py",
"main.py",
"hash.html",
"requirements.txt",
"RELEASE.md",
".env.example",
"static/**/*",
"react_app/dist/**/*",
"python_dist/*",
"python_dist/**/*",
"scripts/**/*",
"simple_agent/**/*",
"agent_runtime/**/*",
"package.json"
],
"win": {
"target": "nsis",
"signAndEditExecutable": false,
"forceCodeSigning": false
},
"mac": {
"target": [
"dmg",
"zip"
],
"artifactName": "${productName}-${version}-${os}-${arch}.${ext}",
"category": "public.app-category.developer-tools",
"hardenedRuntime": false,
"gatekeeperAssess": false,
"identity": null
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"include": "build/installer.nsh"
}
}
}