claude-relay 2.4.2 → 2.5.0
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/bin/cli.js +1 -2350
- package/package.json +7 -42
- package/LICENSE +0 -21
- package/README.md +0 -281
- package/lib/cli-sessions.js +0 -270
- package/lib/config.js +0 -222
- package/lib/daemon.js +0 -423
- package/lib/ipc.js +0 -112
- package/lib/pages.js +0 -714
- package/lib/project.js +0 -1224
- package/lib/public/app.js +0 -2157
- package/lib/public/apple-touch-icon.png +0 -0
- package/lib/public/css/base.css +0 -145
- package/lib/public/css/diff.css +0 -128
- package/lib/public/css/filebrowser.css +0 -1076
- package/lib/public/css/highlight.css +0 -144
- package/lib/public/css/input.css +0 -512
- package/lib/public/css/menus.css +0 -683
- package/lib/public/css/messages.css +0 -1159
- package/lib/public/css/overlays.css +0 -731
- package/lib/public/css/rewind.css +0 -529
- package/lib/public/css/sidebar.css +0 -794
- package/lib/public/favicon.svg +0 -26
- package/lib/public/icon-192.png +0 -0
- package/lib/public/icon-512.png +0 -0
- package/lib/public/icon-mono.svg +0 -19
- package/lib/public/index.html +0 -460
- package/lib/public/manifest.json +0 -27
- package/lib/public/modules/diff.js +0 -398
- package/lib/public/modules/events.js +0 -21
- package/lib/public/modules/filebrowser.js +0 -1375
- package/lib/public/modules/fileicons.js +0 -172
- package/lib/public/modules/icons.js +0 -54
- package/lib/public/modules/input.js +0 -578
- package/lib/public/modules/markdown.js +0 -149
- package/lib/public/modules/notifications.js +0 -643
- package/lib/public/modules/qrcode.js +0 -70
- package/lib/public/modules/rewind.js +0 -334
- package/lib/public/modules/sidebar.js +0 -628
- package/lib/public/modules/state.js +0 -3
- package/lib/public/modules/terminal.js +0 -658
- package/lib/public/modules/theme.js +0 -622
- package/lib/public/modules/tools.js +0 -1410
- package/lib/public/modules/utils.js +0 -56
- package/lib/public/style.css +0 -10
- package/lib/public/sw.js +0 -75
- package/lib/push.js +0 -125
- package/lib/sdk-bridge.js +0 -771
- package/lib/server.js +0 -577
- package/lib/sessions.js +0 -402
- package/lib/terminal-manager.js +0 -187
- package/lib/terminal.js +0 -24
- package/lib/themes/ayu-light.json +0 -9
- package/lib/themes/catppuccin-latte.json +0 -9
- package/lib/themes/catppuccin-mocha.json +0 -9
- package/lib/themes/claude-light.json +0 -9
- package/lib/themes/claude.json +0 -9
- package/lib/themes/dracula.json +0 -9
- package/lib/themes/everforest-light.json +0 -9
- package/lib/themes/everforest.json +0 -9
- package/lib/themes/github-light.json +0 -9
- package/lib/themes/gruvbox-dark.json +0 -9
- package/lib/themes/gruvbox-light.json +0 -9
- package/lib/themes/monokai.json +0 -9
- package/lib/themes/nord-light.json +0 -9
- package/lib/themes/nord.json +0 -9
- package/lib/themes/one-dark.json +0 -9
- package/lib/themes/one-light.json +0 -9
- package/lib/themes/rose-pine-dawn.json +0 -9
- package/lib/themes/rose-pine.json +0 -9
- package/lib/themes/solarized-dark.json +0 -9
- package/lib/themes/solarized-light.json +0 -9
- package/lib/themes/tokyo-night-light.json +0 -9
- package/lib/themes/tokyo-night.json +0 -9
- package/lib/updater.js +0 -96
|
Binary file
|
package/lib/public/css/base.css
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
Claude Relay — Design aligned with Claude Desktop
|
|
3
|
-
========================================================================== */
|
|
4
|
-
|
|
5
|
-
/* --- Reset & Variables --- */
|
|
6
|
-
* {
|
|
7
|
-
margin: 0;
|
|
8
|
-
padding: 0;
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
-webkit-tap-highlight-color: transparent;
|
|
11
|
-
scrollbar-width: thin;
|
|
12
|
-
scrollbar-color: rgba(var(--overlay-rgb),0.15) transparent;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
16
|
-
::-webkit-scrollbar-track { background: transparent; }
|
|
17
|
-
::-webkit-scrollbar-thumb { background: rgba(var(--overlay-rgb),0.15); border-radius: 3px; }
|
|
18
|
-
::-webkit-scrollbar-thumb:hover { background: rgba(var(--overlay-rgb),0.25); }
|
|
19
|
-
|
|
20
|
-
:root {
|
|
21
|
-
--bg: #2F2E2B;
|
|
22
|
-
--bg-alt: #35332F;
|
|
23
|
-
--text: #E8E5DE;
|
|
24
|
-
--text-secondary: #B5B0A6;
|
|
25
|
-
--text-muted: #908B81;
|
|
26
|
-
--text-dimmer: #6D6860;
|
|
27
|
-
--accent: #DA7756;
|
|
28
|
-
--accent-hover: #E5886A;
|
|
29
|
-
--accent-bg: rgba(218, 119, 86, 0.12);
|
|
30
|
-
--code-bg: #1E1D1A;
|
|
31
|
-
--border: #3E3C37;
|
|
32
|
-
--border-subtle: #36342F;
|
|
33
|
-
--input-bg: #393733;
|
|
34
|
-
--user-bubble: #46423A;
|
|
35
|
-
--error: #E5534B;
|
|
36
|
-
--success: #57AB5A;
|
|
37
|
-
--warning: #E5A84B;
|
|
38
|
-
--accent-8: rgba(218, 119, 86, 0.08);
|
|
39
|
-
--accent-12: rgba(218, 119, 86, 0.12);
|
|
40
|
-
--accent-15: rgba(218, 119, 86, 0.15);
|
|
41
|
-
--accent-20: rgba(218, 119, 86, 0.20);
|
|
42
|
-
--accent-25: rgba(218, 119, 86, 0.25);
|
|
43
|
-
--accent-30: rgba(218, 119, 86, 0.30);
|
|
44
|
-
--error-8: rgba(229, 83, 75, 0.08);
|
|
45
|
-
--error-12: rgba(229, 83, 75, 0.12);
|
|
46
|
-
--error-15: rgba(229, 83, 75, 0.15);
|
|
47
|
-
--error-25: rgba(229, 83, 75, 0.25);
|
|
48
|
-
--success-8: rgba(87, 171, 90, 0.08);
|
|
49
|
-
--success-12: rgba(87, 171, 90, 0.12);
|
|
50
|
-
--success-15: rgba(87, 171, 90, 0.15);
|
|
51
|
-
--success-25: rgba(87, 171, 90, 0.25);
|
|
52
|
-
--warning-bg: rgba(229, 168, 75, 0.12);
|
|
53
|
-
--overlay-rgb: 255,255,255;
|
|
54
|
-
--shadow-rgb: 0,0,0;
|
|
55
|
-
--hl-comment: #6D6860;
|
|
56
|
-
--hl-keyword: #C586C0;
|
|
57
|
-
--hl-string: #57AB5A;
|
|
58
|
-
--hl-number: #DA7756;
|
|
59
|
-
--hl-function: #569CD6;
|
|
60
|
-
--hl-variable: #E5534B;
|
|
61
|
-
--hl-type: #E5A84B;
|
|
62
|
-
--hl-constant: #DA7756;
|
|
63
|
-
--hl-tag: #E5534B;
|
|
64
|
-
--hl-attr: #569CD6;
|
|
65
|
-
--hl-regexp: #4EC9B0;
|
|
66
|
-
--hl-meta: #D7BA7D;
|
|
67
|
-
--hl-builtin: #DA7756;
|
|
68
|
-
--hl-symbol: #D7BA7D;
|
|
69
|
-
--hl-addition: #57AB5A;
|
|
70
|
-
--hl-deletion: #E5534B;
|
|
71
|
-
--sidebar-bg: #262522;
|
|
72
|
-
--sidebar-hover: #302E2A;
|
|
73
|
-
--sidebar-active: #3A3834;
|
|
74
|
-
--safe-top: env(safe-area-inset-top, 0px);
|
|
75
|
-
--safe-bottom: env(safe-area-inset-bottom, 0px);
|
|
76
|
-
--content-width: 760px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
html, body {
|
|
80
|
-
height: 100%;
|
|
81
|
-
background: var(--bg);
|
|
82
|
-
color: var(--text);
|
|
83
|
-
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
84
|
-
font-size: 15px;
|
|
85
|
-
line-height: 1.6;
|
|
86
|
-
overflow: hidden;
|
|
87
|
-
-webkit-font-smoothing: antialiased;
|
|
88
|
-
-moz-osx-font-smoothing: grayscale;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* --- Lucide icons --- */
|
|
92
|
-
.lucide {
|
|
93
|
-
vertical-align: middle;
|
|
94
|
-
flex-shrink: 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.icon-spin {
|
|
98
|
-
display: inline-flex;
|
|
99
|
-
align-items: center;
|
|
100
|
-
justify-content: center;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.icon-spin .lucide {
|
|
104
|
-
animation: spin 1s linear infinite;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.icon-spin-inline { animation: spin 1s linear infinite; }
|
|
108
|
-
|
|
109
|
-
/* --- Layout --- */
|
|
110
|
-
#layout {
|
|
111
|
-
display: flex;
|
|
112
|
-
height: 100%;
|
|
113
|
-
height: 100dvh;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* --- Toast --- */
|
|
117
|
-
.toast {
|
|
118
|
-
position: fixed;
|
|
119
|
-
bottom: 80px;
|
|
120
|
-
left: 50%;
|
|
121
|
-
transform: translateX(-50%) translateY(8px);
|
|
122
|
-
background: var(--bg-alt);
|
|
123
|
-
color: var(--text);
|
|
124
|
-
border: 1px solid var(--border);
|
|
125
|
-
border-radius: 10px;
|
|
126
|
-
padding: 8px 18px;
|
|
127
|
-
font-size: 13px;
|
|
128
|
-
font-weight: 500;
|
|
129
|
-
z-index: 400;
|
|
130
|
-
opacity: 0;
|
|
131
|
-
transition: opacity 0.2s, transform 0.2s;
|
|
132
|
-
pointer-events: none;
|
|
133
|
-
box-shadow: 0 4px 20px rgba(var(--shadow-rgb), 0.3);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.toast.visible {
|
|
137
|
-
opacity: 1;
|
|
138
|
-
transform: translateX(-50%) translateY(0);
|
|
139
|
-
}
|
|
140
|
-
.toast.toast-warn {
|
|
141
|
-
background: var(--warning-bg);
|
|
142
|
-
border-color: var(--warning);
|
|
143
|
-
color: var(--warning);
|
|
144
|
-
}
|
|
145
|
-
|
package/lib/public/css/diff.css
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
Diff Views (unified + split)
|
|
3
|
-
========================================================================== */
|
|
4
|
-
|
|
5
|
-
.diff-unified,
|
|
6
|
-
.diff-split-view {
|
|
7
|
-
overflow: auto;
|
|
8
|
-
font-family: "SF Mono", Menlo, Monaco, monospace;
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
line-height: 1.5;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.diff-table {
|
|
14
|
-
border-collapse: collapse;
|
|
15
|
-
width: 100%;
|
|
16
|
-
table-layout: fixed;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* --- Line numbers --- */
|
|
20
|
-
.diff-ln {
|
|
21
|
-
width: 40px;
|
|
22
|
-
min-width: 40px;
|
|
23
|
-
padding: 0 8px 0 4px;
|
|
24
|
-
text-align: right;
|
|
25
|
-
color: var(--text-dimmer);
|
|
26
|
-
user-select: none;
|
|
27
|
-
vertical-align: top;
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
opacity: 0.6;
|
|
30
|
-
border-right: 1px solid var(--border-subtle);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* --- Marker column (unified only) --- */
|
|
34
|
-
.diff-marker {
|
|
35
|
-
width: 16px;
|
|
36
|
-
min-width: 16px;
|
|
37
|
-
padding: 0 2px;
|
|
38
|
-
text-align: center;
|
|
39
|
-
color: var(--text-dimmer);
|
|
40
|
-
user-select: none;
|
|
41
|
-
vertical-align: top;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* --- Code cells --- */
|
|
45
|
-
.diff-code {
|
|
46
|
-
padding: 0 12px;
|
|
47
|
-
white-space: pre;
|
|
48
|
-
vertical-align: top;
|
|
49
|
-
tab-size: 2;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* --- Unified diff row colors --- */
|
|
53
|
-
.diff-row-remove {
|
|
54
|
-
background: var(--error-12);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.diff-row-remove .diff-marker {
|
|
58
|
-
color: var(--error);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.diff-row-add {
|
|
62
|
-
background: var(--success-12);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.diff-row-add .diff-marker {
|
|
66
|
-
color: var(--success);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* --- Hunk header row (patch diffs) --- */
|
|
70
|
-
.diff-row-hunk {
|
|
71
|
-
background: rgba(128, 128, 128, 0.05);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.diff-row-hunk .diff-hunk-text {
|
|
75
|
-
color: var(--text-dimmer);
|
|
76
|
-
font-style: italic;
|
|
77
|
-
padding: 2px 12px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* --- Split diff specifics --- */
|
|
81
|
-
.diff-table-split .diff-code-old,
|
|
82
|
-
.diff-table-split .diff-code-new {
|
|
83
|
-
max-width: 0;
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Split: divider between left and right */
|
|
88
|
-
.diff-table-split .diff-code-old {
|
|
89
|
-
border-right: 1px solid var(--border-subtle);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* Split: change rows */
|
|
93
|
-
.diff-row-change .diff-code-old,
|
|
94
|
-
.diff-row-remove .diff-code-old {
|
|
95
|
-
background: var(--error-12);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.diff-row-change .diff-code-new,
|
|
99
|
-
.diff-row-add .diff-code-new {
|
|
100
|
-
background: var(--success-12);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/* Empty cells in split view */
|
|
104
|
-
.diff-row-remove .diff-code-new,
|
|
105
|
-
.diff-row-add .diff-code-old {
|
|
106
|
-
background: rgba(128, 128, 128, 0.03);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/* --- Compact mode for inline previews --- */
|
|
110
|
-
.diff-compact .diff-table {
|
|
111
|
-
font-size: 11px;
|
|
112
|
-
line-height: 1.4;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.diff-compact .diff-ln {
|
|
116
|
-
width: 28px;
|
|
117
|
-
min-width: 28px;
|
|
118
|
-
padding: 0 4px 0 2px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.diff-compact .diff-code {
|
|
122
|
-
padding: 0 6px;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.diff-compact .diff-marker {
|
|
126
|
-
width: 12px;
|
|
127
|
-
min-width: 12px;
|
|
128
|
-
}
|