@bakapiano/ccsm 0.22.6 → 0.22.8

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 (61) hide show
  1. package/CLAUDE.md +521 -540
  2. package/README.md +186 -189
  3. package/bin/ccsm.js +235 -235
  4. package/lib/cliActivity.js +36 -139
  5. package/lib/codexSeed.js +126 -183
  6. package/lib/config.js +277 -274
  7. package/lib/devices.js +229 -229
  8. package/lib/folders.js +124 -124
  9. package/lib/persistedSessions.js +179 -139
  10. package/lib/tunnel.js +621 -621
  11. package/lib/webTerminal.js +225 -225
  12. package/lib/winPath.js +1 -1
  13. package/lib/workspace.js +233 -233
  14. package/package.json +57 -57
  15. package/public/css/base.css +99 -99
  16. package/public/css/cards.css +183 -183
  17. package/public/css/feedback.css +504 -504
  18. package/public/css/forms.css +453 -453
  19. package/public/css/layout.css +154 -154
  20. package/public/css/modal.css +190 -190
  21. package/public/css/responsive.css +176 -176
  22. package/public/css/sidebar.css +707 -707
  23. package/public/css/terminals.css +546 -546
  24. package/public/css/tokens.css +81 -81
  25. package/public/css/wco.css +196 -196
  26. package/public/css/widgets.css +2347 -2725
  27. package/public/index.html +152 -152
  28. package/public/js/api.js +349 -371
  29. package/public/js/backend.js +149 -149
  30. package/public/js/components/App.js +73 -73
  31. package/public/js/components/DirectoryPicker.js +203 -203
  32. package/public/js/components/EntityFormModal.js +153 -153
  33. package/public/js/components/Modal.js +57 -57
  34. package/public/js/components/OfflineBanner.js +67 -67
  35. package/public/js/components/PageTitleBar.js +13 -13
  36. package/public/js/components/PendingApprovalOverlay.js +128 -128
  37. package/public/js/components/Picker.js +179 -179
  38. package/public/js/components/Popover.js +55 -55
  39. package/public/js/components/RestartOverlay.js +36 -36
  40. package/public/js/components/Sidebar.js +380 -380
  41. package/public/js/components/TerminalInstance.js +28 -0
  42. package/public/js/components/useDragSort.js +67 -67
  43. package/public/js/dialog.js +67 -67
  44. package/public/js/icons.js +212 -212
  45. package/public/js/main.js +296 -296
  46. package/public/js/pages/AboutPage.js +90 -90
  47. package/public/js/pages/ConfigurePage.js +730 -713
  48. package/public/js/pages/LaunchPage.js +403 -421
  49. package/public/js/pages/RemotePage.js +743 -743
  50. package/public/js/pages/SessionsPage.js +54 -54
  51. package/public/js/state.js +335 -335
  52. package/public/js/util.js +1 -1
  53. package/scripts/dev.js +149 -149
  54. package/scripts/install.js +153 -153
  55. package/scripts/restart-helper.js +96 -96
  56. package/scripts/upgrade-helper.js +687 -687
  57. package/server.js +1748 -1817
  58. package/lib/localCliSessions.js +0 -519
  59. package/public/js/components/AdoptModal.js +0 -261
  60. package/public/manifest.webmanifest +0 -25
  61. package/public/setup/index.html +0 -567
@@ -1,99 +1,99 @@
1
- /* Reset, root typography, global accents, scrollbars, inline code/kbd. */
2
-
3
- * { box-sizing: border-box; margin: 0; padding: 0; }
4
- [hidden] { display: none !important; }
5
-
6
- html {
7
- /* No reserved scrollbar gutter — the sessions page is full-bleed and a
8
- reserved right-side lane shows as visible empty space against the
9
- terminal. Pages that overflow get the standard overlay scrollbar. */
10
- }
11
- html, body {
12
- background: var(--bg);
13
- color: var(--ink);
14
- font-family: var(--body);
15
- font-size: 14px;
16
- line-height: 1.5;
17
- font-variant-numeric: tabular-nums;
18
- font-feature-settings: "ss01", "ss02", "cv11";
19
- min-height: 100vh;
20
- -webkit-font-smoothing: antialiased;
21
- -moz-osx-font-smoothing: grayscale;
22
- text-rendering: optimizeLegibility;
23
- }
24
-
25
- /* Layer the paper grain over the entire app surface — fixed so panning
26
- doesn't shift the noise pattern under the cursor. Subtle enough that
27
- you only notice it on cream regions, never on terminals or images. */
28
- body::before {
29
- content: "";
30
- position: fixed;
31
- inset: 0;
32
- pointer-events: none;
33
- z-index: 0;
34
- background-image: var(--paper-noise);
35
- opacity: 0.55;
36
- mix-blend-mode: multiply;
37
- }
38
- #app { position: relative; z-index: 1; }
39
-
40
- ::selection { background: var(--ink); color: var(--bg-elev); }
41
- ::-moz-selection { background: var(--ink); color: var(--bg-elev); }
42
-
43
- code, .kbd {
44
- font-family: var(--mono);
45
- font-size: 11.5px;
46
- padding: 1px 5px;
47
- background: var(--bg);
48
- border: 1px solid var(--border-soft);
49
- border-radius: 4px;
50
- color: var(--ink-mid);
51
- }
52
-
53
- /* Fixed scrollbar look so it doesn't fade in/out or shift width on focus.
54
- WebKit (Edge/Chrome): pseudo-elements. Firefox: scrollbar-* properties. */
55
- * {
56
- scrollbar-width: thin;
57
- scrollbar-color: var(--border-strong) transparent;
58
- }
59
- ::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
60
- ::-webkit-scrollbar-track { background: transparent; }
61
- ::-webkit-scrollbar-thumb {
62
- background: var(--border-strong);
63
- border-radius: 4px;
64
- border: 2px solid var(--bg);
65
- /* Forced minimum height so dragging the thumb is always practical even on
66
- very long pages. */
67
- min-height: 32px;
68
- }
69
- ::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
70
- ::-webkit-scrollbar-corner { background: transparent; }
71
-
72
- .row { display: flex; align-items: center; }
73
- .gap-row { gap: var(--s-3); flex-wrap: wrap; }
74
- .divider-dot { color: var(--ink-faint); padding: 0 var(--s-1); }
75
-
76
- .muted-text { color: var(--ink-muted); font-size: 12.5px; }
77
- .muted-text strong { color: var(--ink-mid); font-weight: 600; }
78
-
79
- .post-result {
80
- margin-top: var(--s-3);
81
- font-family: var(--mono);
82
- font-size: 11.5px;
83
- color: var(--ink-muted);
84
- }
85
-
86
- .empty {
87
- padding: var(--s-12) var(--s-6);
88
- text-align: center;
89
- font-size: 13px;
90
- color: var(--ink-muted);
91
- }
92
- .empty code {
93
- font-family: var(--mono);
94
- font-size: 12px;
95
- color: var(--ink-mid);
96
- background: var(--bg);
97
- padding: 1px 5px;
98
- border-radius: 4px;
99
- }
1
+ /* Reset, root typography, global accents, scrollbars, inline code/kbd. */
2
+
3
+ * { box-sizing: border-box; margin: 0; padding: 0; }
4
+ [hidden] { display: none !important; }
5
+
6
+ html {
7
+ /* No reserved scrollbar gutter — the sessions page is full-bleed and a
8
+ reserved right-side lane shows as visible empty space against the
9
+ terminal. Pages that overflow get the standard overlay scrollbar. */
10
+ }
11
+ html, body {
12
+ background: var(--bg);
13
+ color: var(--ink);
14
+ font-family: var(--body);
15
+ font-size: 14px;
16
+ line-height: 1.5;
17
+ font-variant-numeric: tabular-nums;
18
+ font-feature-settings: "ss01", "ss02", "cv11";
19
+ min-height: 100vh;
20
+ -webkit-font-smoothing: antialiased;
21
+ -moz-osx-font-smoothing: grayscale;
22
+ text-rendering: optimizeLegibility;
23
+ }
24
+
25
+ /* Layer the paper grain over the entire app surface — fixed so panning
26
+ doesn't shift the noise pattern under the cursor. Subtle enough that
27
+ you only notice it on cream regions, never on terminals or images. */
28
+ body::before {
29
+ content: "";
30
+ position: fixed;
31
+ inset: 0;
32
+ pointer-events: none;
33
+ z-index: 0;
34
+ background-image: var(--paper-noise);
35
+ opacity: 0.55;
36
+ mix-blend-mode: multiply;
37
+ }
38
+ #app { position: relative; z-index: 1; }
39
+
40
+ ::selection { background: var(--ink); color: var(--bg-elev); }
41
+ ::-moz-selection { background: var(--ink); color: var(--bg-elev); }
42
+
43
+ code, .kbd {
44
+ font-family: var(--mono);
45
+ font-size: 11.5px;
46
+ padding: 1px 5px;
47
+ background: var(--bg);
48
+ border: 1px solid var(--border-soft);
49
+ border-radius: 4px;
50
+ color: var(--ink-mid);
51
+ }
52
+
53
+ /* Fixed scrollbar look so it doesn't fade in/out or shift width on focus.
54
+ WebKit (Edge/Chrome): pseudo-elements. Firefox: scrollbar-* properties. */
55
+ * {
56
+ scrollbar-width: thin;
57
+ scrollbar-color: var(--border-strong) transparent;
58
+ }
59
+ ::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
60
+ ::-webkit-scrollbar-track { background: transparent; }
61
+ ::-webkit-scrollbar-thumb {
62
+ background: var(--border-strong);
63
+ border-radius: 4px;
64
+ border: 2px solid var(--bg);
65
+ /* Forced minimum height so dragging the thumb is always practical even on
66
+ very long pages. */
67
+ min-height: 32px;
68
+ }
69
+ ::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
70
+ ::-webkit-scrollbar-corner { background: transparent; }
71
+
72
+ .row { display: flex; align-items: center; }
73
+ .gap-row { gap: var(--s-3); flex-wrap: wrap; }
74
+ .divider-dot { color: var(--ink-faint); padding: 0 var(--s-1); }
75
+
76
+ .muted-text { color: var(--ink-muted); font-size: 12.5px; }
77
+ .muted-text strong { color: var(--ink-mid); font-weight: 600; }
78
+
79
+ .post-result {
80
+ margin-top: var(--s-3);
81
+ font-family: var(--mono);
82
+ font-size: 11.5px;
83
+ color: var(--ink-muted);
84
+ }
85
+
86
+ .empty {
87
+ padding: var(--s-12) var(--s-6);
88
+ text-align: center;
89
+ font-size: 13px;
90
+ color: var(--ink-muted);
91
+ }
92
+ .empty code {
93
+ font-family: var(--mono);
94
+ font-size: 12px;
95
+ color: var(--ink-mid);
96
+ background: var(--bg);
97
+ padding: 1px 5px;
98
+ border-radius: 4px;
99
+ }
@@ -1,183 +1,183 @@
1
- /* Card surfaces · head with fold toggle · body · title with icon */
2
-
3
- .card {
4
- background: var(--bg-elev);
5
- border: 1px solid var(--border-soft);
6
- border-radius: 6px;
7
- overflow: hidden;
8
- box-shadow: var(--shadow);
9
- transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
10
- }
11
- .card:hover {
12
- box-shadow: var(--shadow-md);
13
- border-color: var(--border);
14
- }
15
-
16
- .card-head {
17
- padding: var(--s-4) var(--s-6) var(--s-3);
18
- border-bottom: 1px solid var(--border-soft);
19
- display: flex;
20
- justify-content: flex-start;
21
- align-items: center;
22
- gap: var(--s-3);
23
- }
24
- /* Whole header clickable to fold, only when card is foldable */
25
- .card[data-fold-key] .card-head {
26
- cursor: pointer;
27
- user-select: none;
28
- transition: background .12s ease;
29
- }
30
- .card[data-fold-key] .card-head:hover {
31
- background: var(--bg);
32
- }
33
- .card[data-collapsed] .card-head { border-bottom-color: transparent; }
34
- .card-titles { flex: 1; min-width: 0; }
35
-
36
- .card-fold {
37
- appearance: none;
38
- background: transparent;
39
- border: 0;
40
- padding: 4px;
41
- margin: 0;
42
- cursor: pointer;
43
- color: var(--ink-muted);
44
- display: inline-flex;
45
- align-items: center;
46
- justify-content: center;
47
- border-radius: 4px;
48
- transition: color .12s ease, background .12s ease, transform .25s cubic-bezier(.4, 0, .2, 1);
49
- line-height: 0;
50
- flex: 0 0 auto;
51
- }
52
- .card-fold:hover {
53
- color: var(--ink);
54
- background: var(--bg);
55
- }
56
- .card[data-collapsed] .card-fold { transform: rotate(-90deg); }
57
- .card[data-collapsed] .card-body { display: none; }
58
-
59
- .card-title {
60
- font-size: 15.5px;
61
- font-weight: 600;
62
- letter-spacing: -0.012em;
63
- color: var(--ink);
64
- line-height: 1.2;
65
- }
66
- .card-title .title-icon {
67
- color: var(--ink-mid);
68
- margin-right: 6px;
69
- vertical-align: -2px;
70
- }
71
- .card-title .title-icon-after {
72
- margin-right: 0;
73
- margin-left: 6px;
74
- vertical-align: -1px;
75
- }
76
- .card-meta {
77
- margin-top: 2px;
78
- font-size: 12.5px;
79
- color: var(--ink-muted);
80
- font-family: var(--body);
81
- }
82
- .card-meta code {
83
- font-family: var(--mono);
84
- font-size: 11.5px;
85
- color: var(--ink-mid);
86
- background: var(--bg);
87
- padding: 1px 5px;
88
- border-radius: 4px;
89
- border: 1px solid var(--border-soft);
90
- }
91
-
92
- .card-body { padding: var(--s-5) var(--s-6); }
93
- .card-body-flush { padding: 0; }
94
-
95
- /* ── About page ── */
96
- .about-block { display: flex; flex-direction: column; gap: var(--s-5); max-width: 640px; }
97
- .about-hero { display: flex; gap: var(--s-4); align-items: center; }
98
- .about-mark { display: inline-flex; }
99
- .about-mark svg { width: 48px; height: 48px; }
100
- .about-name {
101
- font-size: 22px;
102
- font-weight: 600;
103
- letter-spacing: -0.02em;
104
- color: var(--ink);
105
- line-height: 1.1;
106
- }
107
- .about-version {
108
- font-family: var(--mono);
109
- font-size: 12px;
110
- color: var(--ink-muted);
111
- margin-left: 6px;
112
- font-weight: 400;
113
- }
114
- .about-version-row {
115
- display: flex;
116
- align-items: center;
117
- justify-content: space-between;
118
- gap: 16px;
119
- flex-wrap: wrap;
120
- }
121
- .about-version-line {
122
- font-size: 13px;
123
- color: var(--ink);
124
- }
125
- .about-update-line {
126
- margin-top: 4px;
127
- font-size: 12.5px;
128
- color: var(--ink-mid);
129
- font-weight: 500;
130
- }
131
- .about-version-actions {
132
- display: inline-flex;
133
- align-items: center;
134
- gap: 6px;
135
- }
136
- .muted-text {
137
- font-size: 11.5px;
138
- color: var(--ink-muted);
139
- line-height: 1.5;
140
- }
141
- .about-tagline {
142
- margin-top: 2px;
143
- font-size: 13px;
144
- color: var(--ink-mid);
145
- }
146
- .about-tagline code {
147
- font-size: 11px;
148
- padding: 1px 4px;
149
- }
150
- .about-copy {
151
- font-size: 13.5px;
152
- color: var(--ink-mid);
153
- line-height: 1.6;
154
- max-width: 560px;
155
- }
156
- .about-links {
157
- display: flex;
158
- gap: var(--s-3);
159
- flex-wrap: wrap;
160
- }
161
- .about-links .action {
162
- display: inline-flex;
163
- align-items: center;
164
- gap: 6px;
165
- text-decoration: none;
166
- }
167
- .about-meta {
168
- display: grid;
169
- grid-template-columns: 140px 1fr;
170
- gap: 8px var(--s-4);
171
- font-size: 12.5px;
172
- padding-top: var(--s-3);
173
- border-top: 1px solid var(--border-soft);
174
- }
175
- .about-meta dt {
176
- color: var(--ink-muted);
177
- font-weight: 500;
178
- text-transform: uppercase;
179
- letter-spacing: 0.06em;
180
- font-size: 10.5px;
181
- padding-top: 2px;
182
- }
183
- .about-meta dd { color: var(--ink); }
1
+ /* Card surfaces · head with fold toggle · body · title with icon */
2
+
3
+ .card {
4
+ background: var(--bg-elev);
5
+ border: 1px solid var(--border-soft);
6
+ border-radius: 6px;
7
+ overflow: hidden;
8
+ box-shadow: var(--shadow);
9
+ transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
10
+ }
11
+ .card:hover {
12
+ box-shadow: var(--shadow-md);
13
+ border-color: var(--border);
14
+ }
15
+
16
+ .card-head {
17
+ padding: var(--s-4) var(--s-6) var(--s-3);
18
+ border-bottom: 1px solid var(--border-soft);
19
+ display: flex;
20
+ justify-content: flex-start;
21
+ align-items: center;
22
+ gap: var(--s-3);
23
+ }
24
+ /* Whole header clickable to fold, only when card is foldable */
25
+ .card[data-fold-key] .card-head {
26
+ cursor: pointer;
27
+ user-select: none;
28
+ transition: background .12s ease;
29
+ }
30
+ .card[data-fold-key] .card-head:hover {
31
+ background: var(--bg);
32
+ }
33
+ .card[data-collapsed] .card-head { border-bottom-color: transparent; }
34
+ .card-titles { flex: 1; min-width: 0; }
35
+
36
+ .card-fold {
37
+ appearance: none;
38
+ background: transparent;
39
+ border: 0;
40
+ padding: 4px;
41
+ margin: 0;
42
+ cursor: pointer;
43
+ color: var(--ink-muted);
44
+ display: inline-flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ border-radius: 4px;
48
+ transition: color .12s ease, background .12s ease, transform .25s cubic-bezier(.4, 0, .2, 1);
49
+ line-height: 0;
50
+ flex: 0 0 auto;
51
+ }
52
+ .card-fold:hover {
53
+ color: var(--ink);
54
+ background: var(--bg);
55
+ }
56
+ .card[data-collapsed] .card-fold { transform: rotate(-90deg); }
57
+ .card[data-collapsed] .card-body { display: none; }
58
+
59
+ .card-title {
60
+ font-size: 15.5px;
61
+ font-weight: 600;
62
+ letter-spacing: -0.012em;
63
+ color: var(--ink);
64
+ line-height: 1.2;
65
+ }
66
+ .card-title .title-icon {
67
+ color: var(--ink-mid);
68
+ margin-right: 6px;
69
+ vertical-align: -2px;
70
+ }
71
+ .card-title .title-icon-after {
72
+ margin-right: 0;
73
+ margin-left: 6px;
74
+ vertical-align: -1px;
75
+ }
76
+ .card-meta {
77
+ margin-top: 2px;
78
+ font-size: 12.5px;
79
+ color: var(--ink-muted);
80
+ font-family: var(--body);
81
+ }
82
+ .card-meta code {
83
+ font-family: var(--mono);
84
+ font-size: 11.5px;
85
+ color: var(--ink-mid);
86
+ background: var(--bg);
87
+ padding: 1px 5px;
88
+ border-radius: 4px;
89
+ border: 1px solid var(--border-soft);
90
+ }
91
+
92
+ .card-body { padding: var(--s-5) var(--s-6); }
93
+ .card-body-flush { padding: 0; }
94
+
95
+ /* ── About page ── */
96
+ .about-block { display: flex; flex-direction: column; gap: var(--s-5); max-width: 640px; }
97
+ .about-hero { display: flex; gap: var(--s-4); align-items: center; }
98
+ .about-mark { display: inline-flex; }
99
+ .about-mark svg { width: 48px; height: 48px; }
100
+ .about-name {
101
+ font-size: 22px;
102
+ font-weight: 600;
103
+ letter-spacing: -0.02em;
104
+ color: var(--ink);
105
+ line-height: 1.1;
106
+ }
107
+ .about-version {
108
+ font-family: var(--mono);
109
+ font-size: 12px;
110
+ color: var(--ink-muted);
111
+ margin-left: 6px;
112
+ font-weight: 400;
113
+ }
114
+ .about-version-row {
115
+ display: flex;
116
+ align-items: center;
117
+ justify-content: space-between;
118
+ gap: 16px;
119
+ flex-wrap: wrap;
120
+ }
121
+ .about-version-line {
122
+ font-size: 13px;
123
+ color: var(--ink);
124
+ }
125
+ .about-update-line {
126
+ margin-top: 4px;
127
+ font-size: 12.5px;
128
+ color: var(--ink-mid);
129
+ font-weight: 500;
130
+ }
131
+ .about-version-actions {
132
+ display: inline-flex;
133
+ align-items: center;
134
+ gap: 6px;
135
+ }
136
+ .muted-text {
137
+ font-size: 11.5px;
138
+ color: var(--ink-muted);
139
+ line-height: 1.5;
140
+ }
141
+ .about-tagline {
142
+ margin-top: 2px;
143
+ font-size: 13px;
144
+ color: var(--ink-mid);
145
+ }
146
+ .about-tagline code {
147
+ font-size: 11px;
148
+ padding: 1px 4px;
149
+ }
150
+ .about-copy {
151
+ font-size: 13.5px;
152
+ color: var(--ink-mid);
153
+ line-height: 1.6;
154
+ max-width: 560px;
155
+ }
156
+ .about-links {
157
+ display: flex;
158
+ gap: var(--s-3);
159
+ flex-wrap: wrap;
160
+ }
161
+ .about-links .action {
162
+ display: inline-flex;
163
+ align-items: center;
164
+ gap: 6px;
165
+ text-decoration: none;
166
+ }
167
+ .about-meta {
168
+ display: grid;
169
+ grid-template-columns: 140px 1fr;
170
+ gap: 8px var(--s-4);
171
+ font-size: 12.5px;
172
+ padding-top: var(--s-3);
173
+ border-top: 1px solid var(--border-soft);
174
+ }
175
+ .about-meta dt {
176
+ color: var(--ink-muted);
177
+ font-weight: 500;
178
+ text-transform: uppercase;
179
+ letter-spacing: 0.06em;
180
+ font-size: 10.5px;
181
+ padding-top: 2px;
182
+ }
183
+ .about-meta dd { color: var(--ink); }