@tom2012/cc-web 1.5.10

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.
Files changed (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +339 -0
  3. package/backend/dist/auth.d.ts +15 -0
  4. package/backend/dist/auth.d.ts.map +1 -0
  5. package/backend/dist/auth.js +92 -0
  6. package/backend/dist/auth.js.map +1 -0
  7. package/backend/dist/config.d.ts +33 -0
  8. package/backend/dist/config.d.ts.map +1 -0
  9. package/backend/dist/config.js +155 -0
  10. package/backend/dist/config.js.map +1 -0
  11. package/backend/dist/index.d.ts +3 -0
  12. package/backend/dist/index.d.ts.map +1 -0
  13. package/backend/dist/index.js +499 -0
  14. package/backend/dist/index.js.map +1 -0
  15. package/backend/dist/routes/auth.d.ts +3 -0
  16. package/backend/dist/routes/auth.d.ts.map +1 -0
  17. package/backend/dist/routes/auth.js +108 -0
  18. package/backend/dist/routes/auth.js.map +1 -0
  19. package/backend/dist/routes/filesystem.d.ts +3 -0
  20. package/backend/dist/routes/filesystem.d.ts.map +1 -0
  21. package/backend/dist/routes/filesystem.js +243 -0
  22. package/backend/dist/routes/filesystem.js.map +1 -0
  23. package/backend/dist/routes/projects.d.ts +3 -0
  24. package/backend/dist/routes/projects.d.ts.map +1 -0
  25. package/backend/dist/routes/projects.js +235 -0
  26. package/backend/dist/routes/projects.js.map +1 -0
  27. package/backend/dist/routes/shortcuts.d.ts +3 -0
  28. package/backend/dist/routes/shortcuts.d.ts.map +1 -0
  29. package/backend/dist/routes/shortcuts.js +88 -0
  30. package/backend/dist/routes/shortcuts.js.map +1 -0
  31. package/backend/dist/routes/update.d.ts +3 -0
  32. package/backend/dist/routes/update.d.ts.map +1 -0
  33. package/backend/dist/routes/update.js +104 -0
  34. package/backend/dist/routes/update.js.map +1 -0
  35. package/backend/dist/session-manager.d.ts +47 -0
  36. package/backend/dist/session-manager.d.ts.map +1 -0
  37. package/backend/dist/session-manager.js +345 -0
  38. package/backend/dist/session-manager.js.map +1 -0
  39. package/backend/dist/terminal-manager.d.ts +27 -0
  40. package/backend/dist/terminal-manager.d.ts.map +1 -0
  41. package/backend/dist/terminal-manager.js +211 -0
  42. package/backend/dist/terminal-manager.js.map +1 -0
  43. package/backend/dist/types.d.ts +17 -0
  44. package/backend/dist/types.d.ts.map +1 -0
  45. package/backend/dist/types.js +3 -0
  46. package/backend/dist/types.js.map +1 -0
  47. package/backend/dist/usage-terminal.d.ts +18 -0
  48. package/backend/dist/usage-terminal.d.ts.map +1 -0
  49. package/backend/dist/usage-terminal.js +189 -0
  50. package/backend/dist/usage-terminal.js.map +1 -0
  51. package/backend/package-lock.json +1965 -0
  52. package/backend/package.json +31 -0
  53. package/bin/ccweb.js +478 -0
  54. package/electron/dist/main.js +455 -0
  55. package/frontend/dist/assets/index-CQjbS4zv.css +32 -0
  56. package/frontend/dist/assets/index-CtyR65A4.js +434 -0
  57. package/frontend/dist/index.html +14 -0
  58. package/frontend/dist/terminal.svg +4 -0
  59. package/package.json +88 -0
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/terminal.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>CC Web</title>
8
+ <script type="module" crossorigin src="/assets/index-CtyR65A4.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-CQjbS4zv.css">
10
+ </head>
11
+ <body>
12
+ <div id="root"></div>
13
+ </body>
14
+ </html>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#3b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2
+ <polyline points="4 17 10 11 4 5"></polyline>
3
+ <line x1="12" y1="19" x2="20" y2="19"></line>
4
+ </svg>
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@tom2012/cc-web",
3
+ "version": "1.5.10",
4
+ "description": "Self-hosted web UI for Claude Code CLI — run Claude in your browser",
5
+ "private": false,
6
+ "main": "electron/dist/main.js",
7
+ "bin": {
8
+ "ccweb": "./bin/ccweb.js"
9
+ },
10
+ "files": [
11
+ "bin/",
12
+ "backend/dist/",
13
+ "backend/package.json",
14
+ "backend/package-lock.json",
15
+ "frontend/dist/"
16
+ ],
17
+ "keywords": ["claude", "claude-code", "ai", "cli", "web-ui"],
18
+ "homepage": "https://github.com/zbc0315/cc-web",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/zbc0315/cc-web.git"
22
+ },
23
+ "scripts": {
24
+ "setup": "node setup.js",
25
+ "dev:backend": "cd backend && npm run dev",
26
+ "dev:frontend": "cd frontend && npm run dev",
27
+ "install:all": "cd backend && npm install && cd ../frontend && npm install",
28
+ "build": "cd frontend && npm run build && cd ../backend && npm run build",
29
+ "build:electron": "cd electron && npx tsc",
30
+ "build:all": "npm run build && npm run build:electron",
31
+ "prepublishOnly": "npm run build",
32
+ "electron:dev": "npm run build:all && npx electron .",
33
+ "dist": "npm run build:all && npx electron-builder --mac",
34
+ "dist:dmg": "npm run build:all && npx electron-builder --mac dmg",
35
+ "dist:zip": "npm run build:all && npx electron-builder --mac zip",
36
+ "postinstall": "npx electron-builder install-app-deps || true"
37
+ },
38
+ "devDependencies": {
39
+ "electron": "^33.0.0",
40
+ "electron-builder": "^25.1.8",
41
+ "typescript": "^5.3.3"
42
+ },
43
+ "dependencies": {},
44
+ "build": {
45
+ "appId": "com.ccweb.app",
46
+ "productName": "CCWeb",
47
+ "publish": {
48
+ "provider": "github",
49
+ "owner": "zbc0315",
50
+ "repo": "cc-web"
51
+ },
52
+ "directories": {
53
+ "output": "release"
54
+ },
55
+ "files": [
56
+ "electron/dist/**/*",
57
+ "backend/dist/**/*",
58
+ "backend/package.json",
59
+ "frontend/dist/**/*",
60
+ "package.json"
61
+ ],
62
+ "asar": false,
63
+ "extraResources": [
64
+ {
65
+ "from": "backend/node_modules",
66
+ "to": "app/backend/node_modules",
67
+ "filter": ["**/*"]
68
+ }
69
+ ],
70
+ "mac": {
71
+ "category": "public.app-category.developer-tools",
72
+ "target": [
73
+ { "target": "dmg", "arch": ["arm64"] },
74
+ { "target": "zip", "arch": ["arm64"] }
75
+ ],
76
+ "icon": null,
77
+ "darkModeSupport": true,
78
+ "hardenedRuntime": false,
79
+ "gatekeeperAssess": false
80
+ },
81
+ "dmg": {
82
+ "contents": [
83
+ { "x": 130, "y": 220 },
84
+ { "x": 410, "y": 220, "type": "link", "path": "/Applications" }
85
+ ]
86
+ }
87
+ }
88
+ }