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,122 @@
1
+ /* ── Modal ────────────────────────────────────────────── */
2
+ .modal-overlay {
3
+ position: fixed;
4
+ inset: 0;
5
+ background: rgba(0, 0, 0, 0.65);
6
+ backdrop-filter: blur(8px);
7
+ -webkit-backdrop-filter: blur(8px);
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ z-index: 100;
12
+ animation: fadeIn 0.15s ease;
13
+ }
14
+
15
+ .modal {
16
+ background: var(--bg-secondary);
17
+ border: 1px solid var(--border);
18
+ border-radius: var(--radius-lg);
19
+ width: 460px;
20
+ max-width: 90vw;
21
+ max-height: 85vh;
22
+ overflow-y: auto;
23
+ padding: 24px;
24
+ box-shadow: var(--shadow-lg), var(--glow-ambient);
25
+ animation: modalEnter 0.25s var(--ease-out-expo);
26
+ position: relative;
27
+ }
28
+
29
+ @keyframes modalEnter {
30
+ from { opacity: 0; transform: translateY(16px) scale(0.97); }
31
+ to { opacity: 1; transform: translateY(0) scale(1); }
32
+ }
33
+
34
+ /* Accent line at top of modal */
35
+ .modal::before {
36
+ content: "";
37
+ position: absolute;
38
+ top: 0;
39
+ left: 0;
40
+ right: 0;
41
+ height: 2px;
42
+ background: linear-gradient(90deg, var(--accent), var(--user), var(--accent));
43
+ opacity: 0.4;
44
+ }
45
+
46
+ .modal-header {
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: space-between;
50
+ margin-bottom: 20px;
51
+ }
52
+
53
+ .modal-header h3 {
54
+ font-size: 16px;
55
+ font-weight: 700;
56
+ font-family: var(--font-display);
57
+ color: var(--text);
58
+ letter-spacing: 0.02em;
59
+ }
60
+
61
+ .modal-close {
62
+ background: none;
63
+ border: none;
64
+ color: var(--text-dim);
65
+ font-size: 22px;
66
+ cursor: pointer;
67
+ width: 32px;
68
+ height: 32px;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ border-radius: var(--radius-md);
73
+ transition: all 0.2s var(--ease-smooth);
74
+ }
75
+
76
+ .modal-close:hover { background: var(--bg-tertiary); color: var(--text); }
77
+
78
+ .modal form label {
79
+ display: block;
80
+ font-size: 10px;
81
+ font-weight: 600;
82
+ text-transform: uppercase;
83
+ letter-spacing: 0.08em;
84
+ color: var(--text-dim);
85
+ margin-bottom: 6px;
86
+ font-family: var(--font-display);
87
+ }
88
+
89
+ .modal form input,
90
+ .modal form textarea {
91
+ width: 100%;
92
+ margin-bottom: 14px;
93
+ }
94
+
95
+ .modal form textarea {
96
+ font-family: var(--font-mono);
97
+ }
98
+
99
+ .sp-hint {
100
+ font-size: 12px;
101
+ color: var(--text-dim);
102
+ margin: 4px 0 10px;
103
+ line-height: 1.6;
104
+ font-family: var(--font-sans);
105
+ }
106
+ .sp-hint code {
107
+ background: var(--bg-tertiary);
108
+ padding: 2px 6px;
109
+ border-radius: 4px;
110
+ font-family: var(--font-mono);
111
+ font-size: 11px;
112
+ color: var(--accent);
113
+ }
114
+
115
+ .modal-actions {
116
+ display: flex;
117
+ justify-content: flex-end;
118
+ gap: 8px;
119
+ margin-top: 4px;
120
+ }
121
+
122
+ /* modal-btn-cancel and modal-btn-save styles unified in components.css */
@@ -0,0 +1,217 @@
1
+ /* ── Chat Grid (Parallel Mode) ───────────────────────── */
2
+ .chat-grid {
3
+ flex: 1;
4
+ display: grid;
5
+ grid-template-columns: 1fr 1fr;
6
+ grid-template-rows: 1fr 1fr;
7
+ gap: 1px;
8
+ background: var(--border);
9
+ min-width: 0;
10
+ }
11
+
12
+ /* ── Chat Pane ───────────────────────────────────────── */
13
+ .chat-pane {
14
+ display: flex;
15
+ flex-direction: column;
16
+ background: var(--bg);
17
+ overflow: hidden;
18
+ min-width: 0;
19
+ min-height: 0;
20
+ }
21
+
22
+ .chat-pane-header {
23
+ display: flex;
24
+ align-items: center;
25
+ gap: 8px;
26
+ padding: 6px 12px;
27
+ background: var(--bg-secondary);
28
+ border-bottom: 1px solid var(--border-subtle);
29
+ font-family: var(--font-mono);
30
+ font-size: 11px;
31
+ font-weight: 600;
32
+ color: var(--text-secondary);
33
+ flex-shrink: 0;
34
+ user-select: none;
35
+ }
36
+
37
+ .chat-pane-label {
38
+ color: var(--accent);
39
+ }
40
+
41
+ .chat-pane-status {
42
+ margin-left: auto;
43
+ font-size: 10px;
44
+ color: var(--text-dim);
45
+ }
46
+
47
+ .chat-pane-status.streaming {
48
+ color: var(--success);
49
+ }
50
+
51
+ .chat-pane .messages {
52
+ flex: 1;
53
+ overflow-y: auto;
54
+ padding: 12px;
55
+ display: flex;
56
+ flex-direction: column;
57
+ gap: 10px;
58
+ }
59
+
60
+ .chat-pane .messages:empty::after {
61
+ content: "";
62
+ display: none;
63
+ }
64
+
65
+ .chat-pane .whaly-placeholder img {
66
+ width: 64px;
67
+ }
68
+
69
+ .chat-pane .whaly-placeholder .whaly-text {
70
+ font-size: 11px;
71
+ }
72
+
73
+ .chat-pane .whaly-placeholder {
74
+ gap: 8px;
75
+ }
76
+
77
+ .chat-pane .msg {
78
+ max-width: 100%;
79
+ }
80
+
81
+ .chat-pane .msg-user {
82
+ padding: 8px 12px;
83
+ font-size: 13px;
84
+ }
85
+
86
+ .chat-pane .msg-assistant {
87
+ font-size: 13px;
88
+ line-height: 1.6;
89
+ }
90
+
91
+ .chat-pane .tool-indicator {
92
+ font-size: 11px;
93
+ padding: 6px 10px;
94
+ }
95
+
96
+ .chat-pane .status {
97
+ font-size: 11px;
98
+ padding: 4px;
99
+ }
100
+
101
+ .chat-pane .thinking-bar {
102
+ padding: 6px 10px;
103
+ font-size: 12px;
104
+ }
105
+
106
+ .chat-pane .input-bar {
107
+ position: relative;
108
+ padding: 8px 12px;
109
+ border-top: 1px solid var(--border-subtle);
110
+ display: flex;
111
+ gap: 6px;
112
+ align-items: flex-end;
113
+ max-width: 100%;
114
+ }
115
+
116
+ .chat-pane .input-bar textarea {
117
+ flex: 1;
118
+ background: var(--bg-secondary);
119
+ border: 1px solid var(--border);
120
+ border-radius: 6px;
121
+ padding: 6px 10px;
122
+ color: var(--text);
123
+ font-size: 13px;
124
+ font-family: var(--font-sans);
125
+ resize: none;
126
+ outline: none;
127
+ max-height: 80px;
128
+ line-height: 1.4;
129
+ transition: border-color 0.15s;
130
+ }
131
+
132
+ .chat-pane .input-bar textarea:focus {
133
+ border-color: var(--accent);
134
+ }
135
+
136
+ .chat-pane .input-bar button {
137
+ width: 30px;
138
+ height: 30px;
139
+ border-radius: 6px;
140
+ border: none;
141
+ cursor: pointer;
142
+ display: flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ flex-shrink: 0;
146
+ transition: opacity 0.15s, background 0.15s;
147
+ margin-bottom: 0;
148
+ }
149
+
150
+ .chat-pane .input-bar .pane-send-btn {
151
+ background: var(--accent-solid);
152
+ color: #fff;
153
+ }
154
+
155
+ .chat-pane .input-bar .pane-send-btn:hover {
156
+ background: var(--accent);
157
+ }
158
+
159
+ .chat-pane .input-bar .pane-stop-btn {
160
+ background: var(--error);
161
+ color: #fff;
162
+ }
163
+
164
+ .chat-pane .input-bar .pane-stop-btn:hover {
165
+ opacity: 0.85;
166
+ }
167
+
168
+ .chat-pane:focus-within {
169
+ box-shadow: inset 0 0 0 1px var(--accent);
170
+ }
171
+
172
+ /* Chat-pane compact overrides for CLI output */
173
+ .chat-pane .cli-output-header {
174
+ font-size: 11px;
175
+ padding: 6px 10px;
176
+ }
177
+
178
+ .chat-pane .cli-output-body pre {
179
+ font-size: 11px;
180
+ }
181
+
182
+ /* Chat-pane compact overrides for diff */
183
+ .chat-pane .diff-view {
184
+ font-size: 11px;
185
+ }
186
+
187
+ .chat-pane .diff-body {
188
+ max-height: 250px;
189
+ }
190
+
191
+ .chat-pane .diff-gutter {
192
+ width: 32px;
193
+ min-width: 32px;
194
+ }
195
+
196
+ /* Chat-pane overrides for autocomplete */
197
+ .chat-pane .slash-autocomplete {
198
+ left: 12px;
199
+ right: 12px;
200
+ }
201
+
202
+ .chat-pane .slash-autocomplete .cmd-name {
203
+ font-size: 11px;
204
+ min-width: 80px;
205
+ }
206
+
207
+ .chat-pane .slash-autocomplete .cmd-desc {
208
+ font-size: 11px;
209
+ }
210
+
211
+ /* Terminal prompt prefix in empty messages area */
212
+ .chat-pane .messages:empty::after {
213
+ content: "> waiting for input...";
214
+ font-family: var(--font-mono);
215
+ font-size: 12px;
216
+ letter-spacing: 0.3px;
217
+ }
@@ -0,0 +1,110 @@
1
+ /* ── Permission / Tool Approval ────────────────────────── */
2
+
3
+ /* Permission modal */
4
+ .perm-modal {
5
+ width: 520px;
6
+ max-width: 92vw;
7
+ }
8
+
9
+ .perm-modal-header {
10
+ display: flex;
11
+ align-items: center;
12
+ gap: 8px;
13
+ }
14
+
15
+ .perm-modal-header h3 {
16
+ white-space: nowrap;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ }
20
+
21
+ .perm-tool-icon {
22
+ color: var(--warning);
23
+ font-size: 16px;
24
+ flex-shrink: 0;
25
+ }
26
+
27
+ .perm-bg-badge {
28
+ display: inline-block;
29
+ font-family: var(--font-mono);
30
+ font-size: 10px;
31
+ font-weight: 600;
32
+ color: var(--warning);
33
+ background: rgba(229, 165, 10, 0.12);
34
+ border: 1px solid rgba(229, 165, 10, 0.3);
35
+ border-radius: var(--radius);
36
+ padding: 2px 8px;
37
+ margin-bottom: 4px;
38
+ letter-spacing: 0.3px;
39
+ max-width: 100%;
40
+ overflow: hidden;
41
+ text-overflow: ellipsis;
42
+ white-space: nowrap;
43
+ }
44
+
45
+ .perm-modal-summary {
46
+ font-family: var(--font-mono);
47
+ font-size: 12px;
48
+ color: var(--text);
49
+ background: var(--bg);
50
+ border-left: 3px solid var(--accent);
51
+ padding: 8px 12px;
52
+ margin: 12px 0;
53
+ border-radius: 0 var(--radius) var(--radius) 0;
54
+ white-space: nowrap;
55
+ overflow: hidden;
56
+ text-overflow: ellipsis;
57
+ max-width: 100%;
58
+ }
59
+
60
+ .perm-modal-details {
61
+ margin: 8px 0 12px;
62
+ }
63
+
64
+ .perm-modal-details summary {
65
+ font-family: var(--font-mono);
66
+ font-size: 11px;
67
+ color: var(--text-dim);
68
+ cursor: pointer;
69
+ user-select: none;
70
+ transition: color 0.15s;
71
+ }
72
+
73
+ .perm-modal-details summary:hover {
74
+ color: var(--text-secondary);
75
+ }
76
+
77
+ .perm-modal-input {
78
+ background: var(--bg);
79
+ border: 1px solid var(--border);
80
+ border-radius: var(--radius);
81
+ padding: 10px 12px;
82
+ margin-top: 8px;
83
+ max-height: 200px;
84
+ overflow: auto;
85
+ font-family: var(--font-mono);
86
+ font-size: 11px;
87
+ color: var(--text-secondary);
88
+ white-space: pre-wrap;
89
+ word-break: break-all;
90
+ line-height: 1.5;
91
+ }
92
+
93
+ .perm-always-allow {
94
+ display: flex;
95
+ align-items: center;
96
+ gap: 6px;
97
+ margin: 12px 0 4px;
98
+ font-family: var(--font-mono);
99
+ font-size: 11px;
100
+ color: var(--text-secondary);
101
+ cursor: pointer;
102
+ user-select: none;
103
+ }
104
+
105
+ .perm-always-allow input[type="checkbox"] {
106
+ accent-color: var(--accent);
107
+ cursor: pointer;
108
+ }
109
+
110
+ /* perm-deny-btn and perm-allow-btn styles unified in components.css */