claudeck 1.0.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.
Files changed (157) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +233 -0
  3. package/cli.js +2 -0
  4. package/config/agent-chains.json +16 -0
  5. package/config/agent-dags.json +16 -0
  6. package/config/agents.json +46 -0
  7. package/config/bot-prompt.json +3 -0
  8. package/config/folders.json +66 -0
  9. package/config/prompts.json +92 -0
  10. package/config/repos.json +86 -0
  11. package/config/telegram-config.json +17 -0
  12. package/config/workflows.json +90 -0
  13. package/db.js +1198 -0
  14. package/package.json +55 -0
  15. package/plugins/claude-editor/client.css +171 -0
  16. package/plugins/claude-editor/client.js +183 -0
  17. package/plugins/event-stream/client.css +207 -0
  18. package/plugins/event-stream/client.js +271 -0
  19. package/plugins/linear/client.css +345 -0
  20. package/plugins/linear/client.js +380 -0
  21. package/plugins/linear/config.json +5 -0
  22. package/plugins/linear/server.js +312 -0
  23. package/plugins/repos/client.css +549 -0
  24. package/plugins/repos/client.js +663 -0
  25. package/plugins/repos/server.js +232 -0
  26. package/plugins/sudoku/client.css +196 -0
  27. package/plugins/sudoku/client.js +329 -0
  28. package/plugins/tasks/client.css +414 -0
  29. package/plugins/tasks/client.js +394 -0
  30. package/plugins/tasks/server.js +116 -0
  31. package/plugins/tic-tac-toe/client.css +167 -0
  32. package/plugins/tic-tac-toe/client.js +241 -0
  33. package/public/css/core/components.css +232 -0
  34. package/public/css/core/layout.css +330 -0
  35. package/public/css/core/print.css +18 -0
  36. package/public/css/core/reset.css +36 -0
  37. package/public/css/core/responsive.css +378 -0
  38. package/public/css/core/theme.css +116 -0
  39. package/public/css/core/variables.css +93 -0
  40. package/public/css/features/agent-monitor.css +297 -0
  41. package/public/css/features/agent-sidebar.css +525 -0
  42. package/public/css/features/agents.css +996 -0
  43. package/public/css/features/analytics.css +181 -0
  44. package/public/css/features/background-sessions.css +321 -0
  45. package/public/css/features/cost-dashboard.css +168 -0
  46. package/public/css/features/home.css +313 -0
  47. package/public/css/features/retro-terminal.css +88 -0
  48. package/public/css/features/telegram.css +127 -0
  49. package/public/css/features/tour.css +148 -0
  50. package/public/css/features/voice-input.css +60 -0
  51. package/public/css/features/welcome.css +241 -0
  52. package/public/css/panels/assistant-bot.css +442 -0
  53. package/public/css/panels/dev-docs.css +292 -0
  54. package/public/css/panels/file-explorer.css +322 -0
  55. package/public/css/panels/git-panel.css +221 -0
  56. package/public/css/panels/mcp-manager.css +199 -0
  57. package/public/css/panels/tips-feed.css +353 -0
  58. package/public/css/ui/commands.css +273 -0
  59. package/public/css/ui/context-gauge.css +76 -0
  60. package/public/css/ui/file-picker.css +69 -0
  61. package/public/css/ui/image-attachments.css +106 -0
  62. package/public/css/ui/messages.css +884 -0
  63. package/public/css/ui/modals.css +122 -0
  64. package/public/css/ui/parallel.css +217 -0
  65. package/public/css/ui/permissions.css +110 -0
  66. package/public/css/ui/right-panel.css +481 -0
  67. package/public/css/ui/sessions.css +689 -0
  68. package/public/css/ui/status-bar.css +425 -0
  69. package/public/css/ui/toolbox.css +206 -0
  70. package/public/data/tips.json +218 -0
  71. package/public/icons/favicon.png +0 -0
  72. package/public/icons/icon-192.png +0 -0
  73. package/public/icons/icon-512.png +0 -0
  74. package/public/icons/whaly.png +0 -0
  75. package/public/index.html +1140 -0
  76. package/public/js/core/api.js +591 -0
  77. package/public/js/core/constants.js +3 -0
  78. package/public/js/core/dom.js +270 -0
  79. package/public/js/core/events.js +10 -0
  80. package/public/js/core/plugin-loader.js +153 -0
  81. package/public/js/core/store.js +39 -0
  82. package/public/js/core/utils.js +25 -0
  83. package/public/js/core/ws.js +64 -0
  84. package/public/js/features/agent-monitor.js +222 -0
  85. package/public/js/features/agents.js +1209 -0
  86. package/public/js/features/analytics.js +397 -0
  87. package/public/js/features/attachments.js +251 -0
  88. package/public/js/features/background-sessions.js +475 -0
  89. package/public/js/features/chat.js +589 -0
  90. package/public/js/features/cost-dashboard.js +152 -0
  91. package/public/js/features/dag-editor.js +399 -0
  92. package/public/js/features/easter-egg.js +46 -0
  93. package/public/js/features/home.js +270 -0
  94. package/public/js/features/projects.js +372 -0
  95. package/public/js/features/prompts.js +228 -0
  96. package/public/js/features/sessions.js +332 -0
  97. package/public/js/features/telegram.js +131 -0
  98. package/public/js/features/tour.js +210 -0
  99. package/public/js/features/voice-input.js +185 -0
  100. package/public/js/features/welcome.js +43 -0
  101. package/public/js/features/workflows.js +277 -0
  102. package/public/js/main.js +51 -0
  103. package/public/js/panels/assistant-bot.js +445 -0
  104. package/public/js/panels/dev-docs.js +380 -0
  105. package/public/js/panels/file-explorer.js +486 -0
  106. package/public/js/panels/git-panel.js +285 -0
  107. package/public/js/panels/mcp-manager.js +311 -0
  108. package/public/js/panels/tips-feed.js +303 -0
  109. package/public/js/ui/commands.js +114 -0
  110. package/public/js/ui/context-gauge.js +100 -0
  111. package/public/js/ui/diff.js +124 -0
  112. package/public/js/ui/disabled-tools.js +36 -0
  113. package/public/js/ui/export.js +74 -0
  114. package/public/js/ui/formatting.js +206 -0
  115. package/public/js/ui/header-dropdowns.js +72 -0
  116. package/public/js/ui/input-meta.js +71 -0
  117. package/public/js/ui/max-turns.js +21 -0
  118. package/public/js/ui/messages.js +387 -0
  119. package/public/js/ui/model-selector.js +20 -0
  120. package/public/js/ui/notifications.js +232 -0
  121. package/public/js/ui/parallel.js +176 -0
  122. package/public/js/ui/permissions.js +168 -0
  123. package/public/js/ui/right-panel.js +173 -0
  124. package/public/js/ui/shortcuts.js +143 -0
  125. package/public/js/ui/sidebar-toggle.js +29 -0
  126. package/public/js/ui/status-bar.js +172 -0
  127. package/public/js/ui/tab-sdk.js +623 -0
  128. package/public/js/ui/theme.js +38 -0
  129. package/public/manifest.json +13 -0
  130. package/public/offline.html +190 -0
  131. package/public/style.css +42 -0
  132. package/public/sw.js +91 -0
  133. package/server/agent-loop.js +385 -0
  134. package/server/dag-executor.js +265 -0
  135. package/server/orchestrator.js +514 -0
  136. package/server/paths.js +61 -0
  137. package/server/plugin-mount.js +56 -0
  138. package/server/push-sender.js +31 -0
  139. package/server/routes/agents.js +294 -0
  140. package/server/routes/bot.js +45 -0
  141. package/server/routes/exec.js +35 -0
  142. package/server/routes/files.js +218 -0
  143. package/server/routes/mcp.js +82 -0
  144. package/server/routes/messages.js +36 -0
  145. package/server/routes/notifications.js +37 -0
  146. package/server/routes/projects.js +207 -0
  147. package/server/routes/prompts.js +53 -0
  148. package/server/routes/sessions.js +103 -0
  149. package/server/routes/stats.js +143 -0
  150. package/server/routes/telegram.js +71 -0
  151. package/server/routes/tips.js +135 -0
  152. package/server/routes/workflows.js +81 -0
  153. package/server/summarizer.js +55 -0
  154. package/server/telegram-poller.js +205 -0
  155. package/server/telegram-sender.js +304 -0
  156. package/server/ws-handler.js +926 -0
  157. package/server.js +179 -0
@@ -0,0 +1,330 @@
1
+ /* ── Header Bar ───────────────────────────────────────── */
2
+ .top-header {
3
+ height: var(--header-h);
4
+ background: var(--bg-deep);
5
+ border-bottom: 1px solid var(--border);
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+ padding: 0 16px;
10
+ font-family: var(--font-mono);
11
+ font-size: 12px;
12
+ flex-shrink: 0;
13
+ user-select: none;
14
+ letter-spacing: 0.02em;
15
+ position: relative;
16
+ z-index: 10;
17
+ }
18
+
19
+ /* Subtle gradient line at bottom of header */
20
+ .top-header::after {
21
+ content: "";
22
+ position: absolute;
23
+ bottom: -1px;
24
+ left: 0;
25
+ right: 0;
26
+ height: 1px;
27
+ background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
28
+ opacity: 0.5;
29
+ }
30
+
31
+ .term-project-name {
32
+ font-weight: 700;
33
+ font-size: 12px;
34
+ font-family: var(--font-display);
35
+ color: var(--accent);
36
+ letter-spacing: 0.08em;
37
+ text-transform: uppercase;
38
+ white-space: nowrap;
39
+ overflow: hidden;
40
+ text-overflow: ellipsis;
41
+ max-width: 300px;
42
+ position: absolute;
43
+ left: 50%;
44
+ transform: translateX(-50%);
45
+ pointer-events: none;
46
+ }
47
+
48
+ .term-line {
49
+ display: flex;
50
+ align-items: center;
51
+ gap: 8px;
52
+ }
53
+
54
+ .term-prompt { color: var(--success); font-weight: 700; }
55
+ .term-cmd { color: var(--accent); font-weight: 600; font-family: var(--font-display); letter-spacing: 0.04em; }
56
+ .term-sep { color: var(--border); }
57
+ .term-user { color: var(--text-secondary); font-size: 11px; }
58
+ .term-plan { color: var(--purple); font-size: 11px; font-weight: 500; }
59
+
60
+ .term-dot {
61
+ width: 7px;
62
+ height: 7px;
63
+ border-radius: 50%;
64
+ background: var(--error);
65
+ flex-shrink: 0;
66
+ box-shadow: 0 0 8px var(--error), 0 0 2px var(--error);
67
+ transition: background 0.3s, box-shadow 0.3s;
68
+ }
69
+
70
+ .term-dot.connected { background: var(--success); box-shadow: 0 0 8px var(--success), 0 0 2px var(--success); }
71
+ .term-dot.reconnecting { background: var(--warning); box-shadow: 0 0 8px var(--warning), 0 0 2px var(--warning); animation: blink 1s infinite; }
72
+
73
+ .term-status { color: var(--text-dim); font-size: 11px; }
74
+ .term-status.ok { color: var(--success); }
75
+
76
+ .header-right {
77
+ display: flex;
78
+ align-items: center;
79
+ gap: 6px;
80
+ margin-left: auto;
81
+ }
82
+
83
+ /* Header dropdowns */
84
+ .header-dropdown {
85
+ position: relative;
86
+ }
87
+
88
+ .header-dropdown-trigger {
89
+ display: flex;
90
+ align-items: center;
91
+ gap: 5px;
92
+ background: none;
93
+ border: 1px solid var(--border);
94
+ border-radius: var(--radius);
95
+ color: var(--text-dim);
96
+ font-family: var(--font-mono);
97
+ font-size: 11px;
98
+ padding: 3px 10px;
99
+ cursor: pointer;
100
+ height: 26px;
101
+ transition: all 0.2s var(--ease-smooth);
102
+ }
103
+
104
+ .header-dropdown-trigger:hover,
105
+ .header-dropdown.open .header-dropdown-trigger {
106
+ color: var(--text);
107
+ border-color: var(--text-dim);
108
+ background: rgba(255,255,255,0.02);
109
+ }
110
+
111
+ .header-dropdown.open .header-dropdown-trigger {
112
+ color: var(--accent);
113
+ border-color: var(--accent);
114
+ background: var(--accent-dim);
115
+ }
116
+
117
+ .header-dropdown-chevron {
118
+ transition: transform 0.2s var(--ease-smooth);
119
+ }
120
+
121
+ .header-dropdown.open .header-dropdown-chevron {
122
+ transform: rotate(180deg);
123
+ }
124
+
125
+ .header-dropdown-menu {
126
+ display: none;
127
+ position: absolute;
128
+ top: calc(100% + 6px);
129
+ left: 0;
130
+ min-width: 200px;
131
+ background: var(--bg-elevated);
132
+ border: 1px solid var(--border);
133
+ border-radius: var(--radius-md);
134
+ box-shadow: var(--shadow-lg);
135
+ padding: 4px;
136
+ z-index: 200;
137
+ animation: fadeInUp 0.15s var(--ease-out-expo);
138
+ }
139
+
140
+ .header-dropdown.open .header-dropdown-menu {
141
+ display: block;
142
+ }
143
+
144
+ .header-dropdown-menu--right {
145
+ left: auto;
146
+ right: 0;
147
+ }
148
+
149
+ .header-dropdown-item {
150
+ display: flex;
151
+ align-items: center;
152
+ gap: 8px;
153
+ width: 100%;
154
+ padding: 8px 12px;
155
+ background: none;
156
+ border: none;
157
+ border-radius: var(--radius);
158
+ color: var(--text);
159
+ font-family: var(--font-sans);
160
+ font-size: 12px;
161
+ cursor: pointer;
162
+ text-align: left;
163
+ position: relative;
164
+ white-space: nowrap;
165
+ transition: all 0.15s;
166
+ }
167
+
168
+ .header-dropdown-item:hover {
169
+ background: var(--accent-dim);
170
+ color: var(--accent);
171
+ }
172
+
173
+ .header-dropdown-item-label {
174
+ flex: 1;
175
+ font-weight: 500;
176
+ }
177
+
178
+ .header-dropdown-item-value {
179
+ font-size: 11px;
180
+ font-family: var(--font-mono);
181
+ color: var(--accent);
182
+ margin-left: auto;
183
+ }
184
+
185
+ .header-dropdown-arrow {
186
+ color: var(--text-dim);
187
+ flex-shrink: 0;
188
+ }
189
+
190
+ /* Submenu (second level) */
191
+ .header-submenu {
192
+ display: none;
193
+ position: absolute;
194
+ left: 100%;
195
+ top: -4px;
196
+ min-width: 140px;
197
+ background: var(--bg-elevated);
198
+ border: 1px solid var(--border);
199
+ border-radius: var(--radius-md);
200
+ box-shadow: var(--shadow-lg);
201
+ padding: 4px;
202
+ z-index: 201;
203
+ }
204
+
205
+ .header-dropdown-item.has-submenu:hover > .header-submenu {
206
+ display: block;
207
+ }
208
+
209
+ .header-submenu--left {
210
+ left: auto;
211
+ right: 100%;
212
+ }
213
+
214
+ .header-submenu-item {
215
+ display: block;
216
+ width: 100%;
217
+ padding: 7px 12px;
218
+ background: none;
219
+ border: none;
220
+ border-radius: var(--radius);
221
+ color: var(--text);
222
+ font-family: var(--font-sans);
223
+ font-size: 12px;
224
+ cursor: pointer;
225
+ text-align: left;
226
+ white-space: nowrap;
227
+ transition: all 0.15s;
228
+ }
229
+
230
+ .header-submenu-item:hover {
231
+ background: var(--accent-dim);
232
+ color: var(--accent);
233
+ }
234
+
235
+ .header-submenu-item.active {
236
+ color: var(--accent);
237
+ font-weight: 500;
238
+ }
239
+
240
+ .header-submenu-item.active::before {
241
+ content: "\2713\0020";
242
+ }
243
+
244
+ /* Checkbox-style submenu items for disabled tools */
245
+ .header-submenu-check {
246
+ display: flex;
247
+ align-items: center;
248
+ gap: 8px;
249
+ width: 100%;
250
+ padding: 6px 14px;
251
+ font-size: 12px;
252
+ color: var(--text-secondary);
253
+ cursor: pointer;
254
+ transition: background 0.15s, color 0.15s;
255
+ white-space: nowrap;
256
+ }
257
+
258
+ .header-submenu-check:hover {
259
+ background: var(--accent-dim);
260
+ color: var(--accent);
261
+ }
262
+
263
+ .header-submenu-check input[type="checkbox"] {
264
+ accent-color: var(--accent);
265
+ width: 13px;
266
+ height: 13px;
267
+ cursor: pointer;
268
+ }
269
+
270
+ .header-submenu--tools {
271
+ max-height: 240px;
272
+ overflow-y: auto;
273
+ }
274
+
275
+ .header-hidden-select {
276
+ display: none !important;
277
+ }
278
+
279
+ .header-icon-btn {
280
+ display: flex;
281
+ align-items: center;
282
+ justify-content: center;
283
+ background: none;
284
+ border: 1px solid var(--border);
285
+ border-radius: var(--radius);
286
+ color: var(--text-dim);
287
+ cursor: pointer;
288
+ width: 26px;
289
+ height: 26px;
290
+ padding: 0;
291
+ transition: all 0.2s var(--ease-smooth);
292
+ }
293
+
294
+ .header-icon-btn:hover {
295
+ color: var(--text);
296
+ border-color: var(--text-dim);
297
+ background: rgba(255,255,255,0.02);
298
+ }
299
+
300
+ .header-icon-btn.active {
301
+ color: var(--accent);
302
+ border-color: var(--accent);
303
+ background: var(--accent-dim);
304
+ box-shadow: var(--glow);
305
+ }
306
+
307
+ .term-costs {
308
+ display: flex;
309
+ align-items: center;
310
+ gap: 6px;
311
+ cursor: pointer;
312
+ transition: opacity 0.15s;
313
+ }
314
+
315
+ .term-costs:hover {
316
+ opacity: 0.8;
317
+ }
318
+
319
+ @keyframes tokenPulse {
320
+ 0%, 100% { opacity: 1; }
321
+ 50% { opacity: 0.6; }
322
+ }
323
+
324
+ .term-cost-value { color: var(--success); font-weight: 600; font-family: var(--font-mono); font-size: 11px; }
325
+
326
+ /* ── Layout ───────────────────────────────────────────── */
327
+ .layout {
328
+ display: flex;
329
+ height: calc(100vh - var(--header-h) - 24px);
330
+ }
@@ -0,0 +1,18 @@
1
+ /* ── Print Styles ───────────────────────────────────── */
2
+ @media print {
3
+ .sidebar, .top-header, .input-bar, .toolbox-panel,
4
+ .workflow-panel, .thinking-bar, .modal-overlay,
5
+ .code-copy-btn, .tool-indicator, .session-delete,
6
+ #send-btn, #stop-btn, .mode-toggle { display: none !important; }
7
+
8
+ .layout { display: block; }
9
+ .chat-area { width: 100%; }
10
+ .messages { padding: 0; overflow: visible; }
11
+ .msg { max-width: 100%; break-inside: avoid; }
12
+ .msg-user { background: #f0f0f0; border: 1px solid #ddd; color: #333; }
13
+ .msg-assistant { color: #222; }
14
+ .msg-assistant .text-content pre { background: #f5f5f5; border: 1px solid #ddd; }
15
+ .msg-assistant .text-content code { background: #eee; }
16
+
17
+ body { background: #fff; color: #222; overflow: visible; height: auto; }
18
+ }
@@ -0,0 +1,36 @@
1
+ /* ── Reset ─────────────────────────────────────────────── */
2
+ * {
3
+ margin: 0;
4
+ padding: 0;
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ body {
9
+ font-family: var(--font-sans);
10
+ background: var(--bg);
11
+ color: var(--text);
12
+ height: 100vh;
13
+ overflow: hidden;
14
+ font-size: 13px;
15
+ -webkit-font-smoothing: antialiased;
16
+ -moz-osx-font-smoothing: grayscale;
17
+ }
18
+
19
+ /* Noise texture overlay for atmosphere */
20
+ body::before {
21
+ content: "";
22
+ position: fixed;
23
+ inset: 0;
24
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
25
+ background-size: 200px 200px;
26
+ opacity: var(--noise-opacity);
27
+ pointer-events: none;
28
+ z-index: 9998;
29
+ mix-blend-mode: overlay;
30
+ }
31
+
32
+ /* Selection styling */
33
+ ::selection {
34
+ background: var(--accent-mid);
35
+ color: var(--text);
36
+ }