@join-pantheon/cli 0.34.0 → 0.34.1-rc.1
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/dist/admin-founder.js +179 -0
- package/dist/admin-pages.js +249 -116
- package/dist/admin-ui.js +149 -73
- package/dist/board.js +30 -3
- package/dist/claude-confine.js +3 -2
- package/dist/cli.js +75 -5
- package/dist/client.js +31 -3
- package/dist/config.js +21 -0
- package/dist/conn-report.js +148 -0
- package/dist/doctor.js +13 -0
- package/dist/flow-stats.js +21 -18
- package/dist/founder-stats.js +203 -0
- package/dist/goal-flow.js +218 -0
- package/dist/home-safety.js +2 -0
- package/dist/machine.js +95 -2
- package/dist/mcp.js +6 -0
- package/dist/notifier.js +166 -101
- package/dist/power.js +66 -0
- package/dist/readiness-alert.js +16 -3
- package/dist/relay.js +303 -23
- package/dist/spend.js +24 -1
- package/dist/status-engine.js +222 -0
- package/dist/status-nudge.js +34 -0
- package/dist/tray.js +57 -7
- package/dist/viewer-pages.js +36 -29
- package/dist/win-host.js +79 -7
- package/dist/worker.js +17 -8
- package/helper/macos/main.swift +45 -12
- package/helper/macos/menubar.swift +409 -67
- package/helper/macos/prebuilt/manifest.json +6 -6
- package/helper/macos/prebuilt/pantheon-hud +0 -0
- package/helper/macos/prebuilt/pantheon-tray +0 -0
- package/helper/windows/pantheon-tray.ps1 +216 -15
- package/package.json +1 -1
package/dist/admin-ui.js
CHANGED
|
@@ -11,89 +11,109 @@ const TOKENS = `
|
|
|
11
11
|
--ease-out:cubic-bezier(.16,1,.3,1);
|
|
12
12
|
--chart-worker:var(--teal);--chart-person:var(--mustard);
|
|
13
13
|
|
|
14
|
-
--bg:var(--paper);--surface:var(--cream);--surface-2:#e5d8bd;--line:#
|
|
15
|
-
|
|
16
|
-
--
|
|
14
|
+
--bg:var(--paper);--surface:var(--cream);--surface-2:#e5d8bd;--line:#cdbd9e;--edge:#c3b291;--zebra:#ebe0ca;
|
|
15
|
+
/* Readability first (0.34.1): body text 13.4:1 and up, secondary text 7.5:1 and up, the faintest text 5.7:1. */
|
|
16
|
+
--text:var(--ink);--muted:#453d35;--quiet:#574e44;--placeholder:#5e554a;--shadow:rgba(27,25,23,.9);
|
|
17
|
+
/* a link's underline (3.5:1 against every surface) and the keyboard focus ring (12:1) */
|
|
18
|
+
--link-line:#7a6e5c;--focus:var(--ink);
|
|
19
|
+
--accent:var(--coral);--accent-text:#9a3a24;--on-accent:var(--ink);
|
|
17
20
|
--chip-bg:var(--teal-deep);--chip-text:var(--cream);
|
|
18
21
|
--worker:var(--chart-worker);--person:var(--chart-person);--grid:#d9cbae;--matrix-low:var(--ink);
|
|
19
|
-
/* text on a lever that ends or removes something: coral-deep,
|
|
20
|
-
--danger-text:#
|
|
22
|
+
/* text on a lever that ends or removes something: coral-deep, darker to reach 4.9:1 on every surface */
|
|
23
|
+
--danger-text:#9a3a24;
|
|
21
24
|
/* who-asked-whom cells: how strong the darkest may get, and its text, so every cell keeps 4.5:1 */
|
|
22
25
|
--matrix-max:.85;--matrix-text:var(--ink);
|
|
23
26
|
color-scheme:light;
|
|
24
27
|
}
|
|
25
28
|
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
|
|
26
|
-
--bg:var(--ink);--surface:var(--ink-mid);--surface-2:#2f2a26;--line:#
|
|
27
|
-
--text:var(--cream);--muted:#
|
|
28
|
-
--
|
|
29
|
+
--bg:var(--ink);--surface:var(--ink-mid);--surface-2:#2f2a26;--line:#433b35;--edge:#4a423b;--zebra:#2b2723;
|
|
30
|
+
--text:var(--cream);--muted:#d8ccb6;--quiet:#c6baa4;--placeholder:#bdb19b;--shadow:#0b0a09;
|
|
31
|
+
--link-line:#8a7f6c;--focus:var(--mustard);
|
|
32
|
+
--accent-text:#ef8a72;--grid:#3a3430;--matrix-low:var(--cream);--danger-text:#ef8a72;--matrix-max:.75;--matrix-text:var(--cream);color-scheme:dark;
|
|
29
33
|
}}
|
|
30
34
|
:root[data-theme="dark"]{
|
|
31
|
-
--bg:var(--ink);--surface:var(--ink-mid);--surface-2:#2f2a26;--line:#
|
|
32
|
-
--text:var(--cream);--muted:#
|
|
33
|
-
--
|
|
35
|
+
--bg:var(--ink);--surface:var(--ink-mid);--surface-2:#2f2a26;--line:#433b35;--edge:#4a423b;--zebra:#2b2723;
|
|
36
|
+
--text:var(--cream);--muted:#d8ccb6;--quiet:#c6baa4;--placeholder:#bdb19b;--shadow:#0b0a09;
|
|
37
|
+
--link-line:#8a7f6c;--focus:var(--mustard);
|
|
38
|
+
--accent-text:#ef8a72;--grid:#3a3430;--matrix-low:var(--cream);--danger-text:#ef8a72;--matrix-max:.75;--matrix-text:var(--cream);color-scheme:dark;
|
|
34
39
|
}`;
|
|
35
40
|
export const CSS = `${TOKENS}
|
|
36
41
|
*{box-sizing:border-box}
|
|
37
42
|
html{-webkit-text-size-adjust:100%}
|
|
38
|
-
body{margin:0;background:var(--bg);color:var(--text);font:400
|
|
39
|
-
|
|
40
|
-
a:
|
|
41
|
-
:
|
|
42
|
-
|
|
43
|
+
body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.55 var(--ui);font-feature-settings:"ss01"}
|
|
44
|
+
/* A link is underlined everywhere, so it never relies on colour alone; hover thickens the line. */
|
|
45
|
+
a{color:inherit;text-decoration:underline;text-decoration-color:var(--link-line);text-decoration-thickness:1px;text-underline-offset:3px}
|
|
46
|
+
a:hover{text-decoration-color:currentColor;text-decoration-thickness:2px}
|
|
47
|
+
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
|
|
48
|
+
::placeholder{color:var(--placeholder);opacity:1}
|
|
49
|
+
code,.mono{font-family:var(--ui-mono);font-size:13px}
|
|
50
|
+
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
51
|
+
[id]{scroll-margin-top:var(--stick-h,132px)}
|
|
52
|
+
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
|
|
43
53
|
.muted{color:var(--muted)}.quiet{color:var(--quiet)}
|
|
44
54
|
.num{font-variant-numeric:tabular-nums}
|
|
45
55
|
h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.01em}
|
|
46
|
-
h1{font-size:
|
|
56
|
+
h1{font-size:24px}h2{font-size:18.5px}h3{font-size:15.5px}
|
|
47
57
|
.mark{width:22px;height:22px;flex:none}
|
|
48
58
|
.seal{width:14px;height:14px;flex:none;vertical-align:-2px}
|
|
49
59
|
.skip{position:absolute;left:-999px;top:8px;background:var(--text);color:var(--bg);padding:6px 10px;border-radius:6px;z-index:60}
|
|
50
60
|
.skip:focus{left:12px}
|
|
51
61
|
|
|
52
|
-
|
|
62
|
+
/* The header, and a page's section bar under it, stay pinned while the page scrolls. */
|
|
63
|
+
.stick{position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:1px solid var(--line)}
|
|
64
|
+
.top{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px clamp(16px,3vw,32px);background:var(--bg)}
|
|
65
|
+
.secbar{position:relative;border-top:1px solid var(--line)}
|
|
66
|
+
.secbar-in{display:flex;gap:4px;overflow-x:auto;padding:6px clamp(16px,3vw,32px);max-width:1440px;margin:0 auto;scrollbar-width:thin}
|
|
67
|
+
.secbar a{white-space:nowrap;padding:6px 11px;border-radius:7px;text-decoration:none;color:var(--muted);font:500 14px/1.3 var(--ui)}
|
|
68
|
+
.secbar a:hover{color:var(--text);background:var(--surface-2)}
|
|
69
|
+
.secbar a[aria-current]{color:var(--text);background:var(--surface);box-shadow:inset 0 0 0 1px var(--edge),inset 0 -3px 0 var(--accent)}
|
|
70
|
+
.secbar a .n{font:500 12.5px var(--ui-mono);color:var(--quiet);margin-left:6px}
|
|
71
|
+
.secbar a[aria-current] .n{color:var(--text)}
|
|
53
72
|
.lockup{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--text)}
|
|
54
73
|
.lockup b{font:400 18px/1 var(--display);letter-spacing:-.01em}
|
|
55
74
|
.ctx{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;flex-wrap:wrap;min-width:0}
|
|
56
|
-
.ctx .sep{
|
|
75
|
+
.ctx .sep{color:var(--quiet)}
|
|
57
76
|
.tabs{display:flex;gap:2px;flex-wrap:wrap}
|
|
58
|
-
.tabs a{white-space:nowrap;padding:6px 10px;border-radius:6px;text-decoration:none;color:var(--muted);font-weight:500;font-size:
|
|
77
|
+
.tabs a{white-space:nowrap;padding:6px 10px;border-radius:6px;text-decoration:none;color:var(--muted);font-weight:500;font-size:14.5px}
|
|
59
78
|
.tabs a:hover{background:var(--surface-2);color:var(--text)}
|
|
60
79
|
.tabs a[aria-current]{color:var(--text);box-shadow:inset 0 -2px 0 var(--text);border-radius:0}
|
|
61
|
-
.tabs a .n{font-family:var(--ui-mono);font-size:
|
|
62
|
-
.right{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:
|
|
63
|
-
.iconbtn{font:500
|
|
80
|
+
.tabs a .n{font-family:var(--ui-mono);font-size:12.5px;color:var(--quiet);margin-left:4px}
|
|
81
|
+
.right{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:14px;color:var(--muted);flex-wrap:wrap}
|
|
82
|
+
.iconbtn{font:500 13.5px var(--ui);color:var(--text);background:transparent;border:1px solid var(--line);border-radius:7px;padding:5px 9px;cursor:pointer;text-decoration:none;display:inline-block}
|
|
64
83
|
.iconbtn:hover{border-color:var(--edge);background:var(--surface-2)}
|
|
65
|
-
.linkbtn{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-decoration-color:var(--
|
|
84
|
+
.linkbtn{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-decoration-color:var(--link-line);text-underline-offset:3px}
|
|
66
85
|
|
|
67
86
|
main{padding:0 clamp(16px,3vw,32px) 56px;max-width:1440px;margin:0 auto}
|
|
68
87
|
.row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
|
|
69
88
|
.sec{margin-top:36px}
|
|
70
89
|
.sechead{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
|
|
71
|
-
.sechead p{margin:0;color:var(--muted);font-size:
|
|
72
|
-
.sechead .end{margin-left:auto;display:flex;gap:8px;align-items:center;font-size:
|
|
90
|
+
.sechead p{margin:0;color:var(--muted);font-size:14px}
|
|
91
|
+
.sechead .end{margin-left:auto;display:flex;gap:8px;align-items:center;font-size:14px;flex-wrap:wrap}
|
|
73
92
|
.cardhead{padding:16px 18px 0}
|
|
74
93
|
|
|
75
|
-
.health{display:flex;flex-wrap:wrap;gap:6px 22px;padding:10px 0;margin-top:14px;font-size:
|
|
94
|
+
.health{display:flex;flex-wrap:wrap;gap:6px 22px;padding:10px 0;margin-top:14px;font-size:14px;color:var(--muted)}
|
|
76
95
|
.health span b{color:var(--text);font-weight:500}
|
|
77
96
|
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--teal);margin-right:6px;vertical-align:0}
|
|
78
97
|
.dot.off{background:transparent;border:1.5px solid var(--quiet)}
|
|
98
|
+
.dot.bad{background:var(--accent-text)}
|
|
79
99
|
.dot.amber{background:var(--mustard)}
|
|
80
100
|
.dot.bad{background:var(--coral)}
|
|
81
101
|
|
|
82
102
|
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface)}
|
|
83
|
-
.seg a{font:500
|
|
103
|
+
.seg a{font:500 14px var(--ui);color:var(--muted);text-decoration:none;padding:6px 11px}
|
|
84
104
|
.seg a:hover{color:var(--text)}
|
|
85
105
|
.seg a[aria-current]{background:var(--text);color:var(--bg)}
|
|
86
106
|
.seg a:focus-visible{outline-offset:-3px;border-radius:7px}
|
|
87
107
|
|
|
88
108
|
.tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:16px}
|
|
89
109
|
.tile{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 16px 13px;box-shadow:0 3px 0 var(--line);min-width:0}
|
|
90
|
-
.tile .l{font-size:
|
|
110
|
+
.tile .l{font-size:14px;color:var(--muted);font-weight:500}
|
|
91
111
|
.tile .v{font-size:28px;font-weight:600;line-height:1.15;margin:6px 0 2px;letter-spacing:-.02em}
|
|
92
112
|
.tile .v small{font-size:13px;font-weight:500;color:var(--muted);margin-left:4px;letter-spacing:0}
|
|
93
|
-
.tile .d{font-size:
|
|
113
|
+
.tile .d{font-size:13.5px;color:var(--muted)}
|
|
94
114
|
.tile.call{border-color:var(--text);box-shadow:0 4px 0 var(--shadow)}
|
|
95
115
|
.tile.call .v{color:var(--accent-text)}
|
|
96
|
-
.delta{font-family:var(--ui-mono);font-size:
|
|
116
|
+
.delta{font-family:var(--ui-mono);font-size:12.5px;color:var(--text);background:var(--surface-2);border-radius:5px;padding:1px 5px;margin-left:6px;vertical-align:2px}
|
|
97
117
|
|
|
98
118
|
.card{background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 0 var(--line);min-width:0}
|
|
99
119
|
.card.pad{padding:16px 18px}
|
|
@@ -102,25 +122,28 @@ main{padding:0 clamp(16px,3vw,32px) 56px;max-width:1440px;margin:0 auto}
|
|
|
102
122
|
.grid2.even{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
|
|
103
123
|
.stack{display:flex;flex-direction:column;gap:16px;min-width:0}
|
|
104
124
|
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
|
|
105
|
-
th{font-size:
|
|
106
|
-
td{padding:
|
|
125
|
+
th{font-size:13.5px;font-weight:600;color:var(--muted);text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
|
|
126
|
+
td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.5}
|
|
127
|
+
/* Rows of a data table alternate, so a long row is easy to follow across. */
|
|
128
|
+
.rt tbody tr:nth-child(even){background:var(--zebra)}
|
|
107
129
|
tbody tr:last-child td{border-bottom:0}
|
|
108
130
|
tbody tr.link{cursor:pointer}
|
|
109
131
|
tbody tr.link:hover td{background:var(--surface-2)}
|
|
110
132
|
td.r,th.r{text-align:right}
|
|
111
133
|
td.empty{color:var(--muted);text-align:center;padding:22px 14px}
|
|
112
|
-
.sub{display:block;font-size:
|
|
134
|
+
.sub{display:block;font-size:13.5px;color:var(--muted);margin-top:2px}
|
|
135
|
+
.sub.text{color:var(--text)}
|
|
113
136
|
.who{font-weight:500}
|
|
114
|
-
.tname{font-weight:600
|
|
115
|
-
.tname:hover{text-decoration:underline}
|
|
137
|
+
.tname{font-weight:600}
|
|
116
138
|
.wrapc{overflow-wrap:anywhere}
|
|
117
139
|
|
|
118
|
-
.chip{display:inline-flex;align-items:center;gap:5px;font:500
|
|
140
|
+
.chip{display:inline-flex;align-items:center;gap:5px;font:500 13px/1 var(--ui);padding:5px 9px;border-radius:999px;white-space:nowrap;background:var(--chip-bg);color:var(--chip-text)}
|
|
119
141
|
.chip.plain{background:var(--surface-2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}
|
|
120
142
|
.chip.line{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--text)}
|
|
121
|
-
.chip.mono{font-family:var(--ui-mono);font-size:
|
|
143
|
+
.chip.mono{font-family:var(--ui-mono);font-size:12.5px}
|
|
144
|
+
.chip.act{font:600 13px/1 var(--ui)}
|
|
122
145
|
.chip .seal{width:12px;height:12px}
|
|
123
|
-
.role{font:500
|
|
146
|
+
.role{font:500 13px var(--ui);color:var(--muted);white-space:nowrap}
|
|
124
147
|
.role.w::before,.role.p::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px;vertical-align:0}
|
|
125
148
|
.role.w::before{background:var(--worker)}.role.p::before{background:var(--person)}
|
|
126
149
|
|
|
@@ -130,15 +153,15 @@ td.empty{color:var(--muted);text-align:center;padding:22px 14px}
|
|
|
130
153
|
.meter i.over{background:var(--text)}
|
|
131
154
|
|
|
132
155
|
.steps{display:flex;align-items:flex-start;gap:0;margin-top:8px;max-width:560px}
|
|
133
|
-
.step{flex:0 0
|
|
156
|
+
.step{flex:0 0 120px;position:relative;min-width:0;text-align:left}
|
|
134
157
|
.step .pt{width:12px;height:12px;border-radius:50%;border:2px solid var(--edge);background:var(--surface);position:relative;z-index:1}
|
|
135
158
|
.step.done .pt{background:var(--teal);border-color:var(--teal)}
|
|
136
159
|
.step.now .pt{background:var(--surface);border-color:var(--mustard);box-shadow:0 0 0 3px color-mix(in srgb,var(--mustard) 30%,transparent)}
|
|
137
160
|
.step::after{content:"";position:absolute;left:12px;right:0;top:5px;height:2px;background:var(--line)}
|
|
138
161
|
.step.done::after{background:var(--mustard)}
|
|
139
162
|
.step:last-child::after{display:none}
|
|
140
|
-
.step .sl{font:
|
|
141
|
-
.step .st{font-size:
|
|
163
|
+
.step .sl{font:600 12.5px var(--ui);color:var(--text);margin-top:6px;white-space:nowrap}
|
|
164
|
+
.step .st{font-size:12.5px;color:var(--muted);white-space:nowrap}
|
|
142
165
|
.step.todo .sl{color:var(--quiet)}
|
|
143
166
|
|
|
144
167
|
.list{list-style:none;margin:0;padding:0}
|
|
@@ -152,49 +175,62 @@ td.empty{color:var(--muted);text-align:center;padding:22px 14px}
|
|
|
152
175
|
|
|
153
176
|
.chart{position:relative}
|
|
154
177
|
.chart svg{display:block;width:100%;height:auto;overflow:visible}
|
|
155
|
-
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:
|
|
178
|
+
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13.5px;color:var(--muted);margin:4px 0 8px}
|
|
156
179
|
.legend span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
|
|
157
180
|
.legend .w::before{background:var(--worker)}.legend .p::before{background:var(--person)}
|
|
158
|
-
.axis{font:400
|
|
181
|
+
.axis{font:400 12px var(--ui-mono);fill:var(--muted)}
|
|
159
182
|
.hit{fill:transparent;cursor:default}
|
|
160
183
|
.col:hover rect,.col:hover path,.col:focus rect,.col:focus path{opacity:.85}
|
|
161
|
-
.chart svg[tabindex]:focus-visible{outline:3px solid var(--
|
|
162
|
-
.col.kbd .hit{stroke:var(--
|
|
163
|
-
details.tv{margin-top:8px;font-size:
|
|
184
|
+
.chart svg[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
|
|
185
|
+
.col.kbd .hit{stroke:var(--focus);stroke-width:3}.col.kbd rect,.col.kbd path{opacity:.85}
|
|
186
|
+
details.tv{margin-top:8px;font-size:14px}
|
|
164
187
|
details.tv summary{cursor:pointer;color:var(--muted)}
|
|
165
188
|
details.tv table{margin-top:8px}
|
|
166
189
|
details.tv td,details.tv th{padding:4px 10px}
|
|
167
|
-
#tip{position:fixed;z-index:50;pointer-events:none;background:var(--text);color:var(--bg);font:500
|
|
168
|
-
#tip b{font-weight:600;font-size:
|
|
190
|
+
#tip{position:fixed;z-index:50;pointer-events:none;background:var(--text);color:var(--bg);font:500 13.5px/1.45 var(--ui);padding:8px 10px;border-radius:7px;max-width:320px;opacity:0;transition:opacity .12s}
|
|
191
|
+
#tip b{font-weight:600;font-size:14px}
|
|
169
192
|
|
|
170
193
|
.matrix{border-collapse:separate;border-spacing:3px;width:auto}
|
|
171
|
-
.matrix th{border:0;padding:4px 6px;font-size:
|
|
194
|
+
.matrix th{border:0;padding:4px 6px;font-size:13.5px}
|
|
172
195
|
.matrix td{border:0;width:58px;height:40px;text-align:center;vertical-align:middle;border-radius:6px;font:500 13px var(--ui-mono);padding:0}
|
|
173
196
|
.matrix td.self{background:transparent}
|
|
174
197
|
.matrix td.z{color:var(--quiet);background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
|
|
175
198
|
.matrix td.h{background:color-mix(in srgb,var(--teal) calc(var(--a) * var(--matrix-max) * 100%),var(--surface));color:var(--matrix-text)}
|
|
176
199
|
.matrix th.rowh{text-align:right}
|
|
177
200
|
|
|
178
|
-
.note{font-size:
|
|
179
|
-
.privacy{display:flex;gap:10px;align-items:flex-start;padding:12px 16px;border-radius:10px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);font-size:
|
|
180
|
-
.hidden-text{font-style:normal;color:var(--quiet);font-size:
|
|
181
|
-
.flash{margin-top:14px;padding:10px 14px;border-radius:9px;background:var(--surface);border:1px solid var(--text);font-size:
|
|
182
|
-
.more{white-space:nowrap;font:
|
|
201
|
+
.note{font-size:14px;color:var(--muted);margin:10px 0 0;max-width:90ch}
|
|
202
|
+
.privacy{display:flex;gap:10px;align-items:flex-start;padding:12px 16px;border-radius:10px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);font-size:14.5px;margin-top:16px}
|
|
203
|
+
.hidden-text{font-style:normal;color:var(--quiet);font-size:13.5px}
|
|
204
|
+
.flash{margin-top:14px;padding:10px 14px;border-radius:9px;background:var(--surface);border:1px solid var(--text);font-size:14.5px}
|
|
205
|
+
.more{white-space:nowrap;font:600 14px var(--ui);background:transparent;border:0;color:var(--text);text-decoration:underline;text-decoration-color:var(--link-line);text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer;padding:2px 0}
|
|
206
|
+
.more:hover{text-decoration-color:currentColor;text-decoration-thickness:2px}
|
|
207
|
+
.more[aria-busy=true]{cursor:progress}
|
|
183
208
|
.agewrap{white-space:nowrap}
|
|
184
|
-
.fullbody{white-space:pre-wrap;overflow-wrap:anywhere;font:400
|
|
185
|
-
.kv{display:grid;grid-template-columns:max-content 1fr;gap:
|
|
209
|
+
.fullbody{white-space:pre-wrap;overflow-wrap:anywhere;font:400 15px/1.6 var(--ui);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin-top:4px;max-width:110ch}
|
|
210
|
+
.kv{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;font-size:13.5px;margin-top:10px}
|
|
211
|
+
/* The Messages table: the summary takes the width; the number, time, people, act and the open control stay compact. */
|
|
212
|
+
.msgs td.c,.msgs th.c{width:1%;white-space:nowrap}
|
|
213
|
+
.msgs td.ft,.msgs th.ft{width:1%;white-space:nowrap}
|
|
214
|
+
.msgs td.sum{min-width:24ch}
|
|
215
|
+
.msgs tr.detail{background:var(--surface-2)!important}
|
|
216
|
+
.msgs tr.detail>td{padding-top:6px;padding-bottom:16px}
|
|
217
|
+
.inread{outline:none;border-radius:8px}
|
|
218
|
+
.inread:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
|
|
186
219
|
.kv span{color:var(--muted)}
|
|
187
220
|
|
|
188
221
|
/* forms */
|
|
189
|
-
input.field,select.field,input[type=search].field{font:
|
|
222
|
+
input.field,select.field,input[type=search].field{font:14px var(--ui);padding:6px 10px;border-radius:7px;border:1px solid var(--line);background:var(--surface);color:var(--text);min-width:0}
|
|
190
223
|
input[type=number].field{width:80px}
|
|
191
224
|
.filters{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;margin-bottom:12px}
|
|
192
|
-
.filters label{display:flex;flex-direction:column;gap:4px;font-size:
|
|
225
|
+
.filters label{display:flex;flex-direction:column;gap:4px;font-size:13.5px;color:var(--muted)}
|
|
193
226
|
.filters label.chk{flex-direction:row;align-items:center;gap:6px}
|
|
194
|
-
.btn{font:500
|
|
227
|
+
.btn{font:500 14px var(--ui);color:var(--text);background:var(--surface-2);border:1px solid var(--edge);border-radius:7px;padding:6px 11px;cursor:pointer}
|
|
195
228
|
.btn:hover{border-color:var(--text)}
|
|
196
229
|
.btn.danger{color:var(--danger-text);border-color:currentColor;background:transparent}
|
|
230
|
+
.btn:disabled,.iconbtn:disabled{color:var(--muted);border-style:dashed;cursor:not-allowed}
|
|
197
231
|
.inl{display:inline}
|
|
232
|
+
.card.pad>form.filters:last-child{margin-bottom:0}
|
|
233
|
+
.seeflow{display:inline-block;margin-top:6px}
|
|
198
234
|
|
|
199
235
|
/* the destructive and rare levers live behind a menu */
|
|
200
236
|
details.menu{position:relative;display:inline-block}
|
|
@@ -203,8 +239,8 @@ details.menu>summary::-webkit-details-marker{display:none}
|
|
|
203
239
|
details.menu[open]>summary{background:var(--surface-2)}
|
|
204
240
|
details.menu .pop{position:absolute;right:0;top:32px;z-index:20;background:var(--surface);border:1px solid var(--text);border-radius:10px;box-shadow:0 4px 0 var(--shadow);padding:8px;min-width:260px;text-align:left;display:flex;flex-direction:column;gap:6px}
|
|
205
241
|
details.menu .pop form{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0}
|
|
206
|
-
details.menu .pop .h{font-size:
|
|
207
|
-
details.menu .pop button.item{width:100%;text-align:left;font:500
|
|
242
|
+
details.menu .pop .h{font-size:13px;color:var(--muted);padding:2px 4px}
|
|
243
|
+
details.menu .pop button.item{width:100%;text-align:left;font:500 14px var(--ui);background:transparent;border:0;border-radius:6px;padding:7px 8px;color:var(--text);cursor:pointer}
|
|
208
244
|
details.menu .pop button.item:hover{background:var(--surface-2)}
|
|
209
245
|
details.menu .pop button.item.danger{color:var(--danger-text)}
|
|
210
246
|
details.menu .pop hr{border:0;border-top:1px solid var(--line);margin:2px 0;width:100%}
|
|
@@ -214,8 +250,16 @@ details.menu .pop hr{border:0;border-top:1px solid var(--line);margin:2px 0;widt
|
|
|
214
250
|
@media (max-width:720px){
|
|
215
251
|
.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
|
|
216
252
|
.tile{padding:12px 13px}.tile .v{font-size:24px}
|
|
217
|
-
.
|
|
218
|
-
.tabs{
|
|
253
|
+
.top{gap:6px 12px;padding:8px 16px}
|
|
254
|
+
.top:has(.tabs) .ctx{display:none}
|
|
255
|
+
.ctx{order:3;flex:1 1 100%;flex-wrap:nowrap;overflow:hidden;white-space:nowrap}
|
|
256
|
+
.right{margin-left:auto;gap:10px}
|
|
257
|
+
.right .id{display:none}
|
|
258
|
+
.tabs{order:4;width:100%;flex-wrap:wrap;row-gap:2px}
|
|
259
|
+
.tabs a{padding:5px 8px}
|
|
260
|
+
/* The section bar scrolls sideways; the fade at its edge says there is more. */
|
|
261
|
+
.secbar-in{padding:5px 40px 5px 16px}
|
|
262
|
+
.secbar::after{content:"";position:absolute;right:0;top:1px;bottom:0;width:40px;background:linear-gradient(to right,transparent,var(--bg) 70%);pointer-events:none}
|
|
219
263
|
.rt thead{display:none}
|
|
220
264
|
.rt,.rt tbody,.rt tr,.rt td{display:block;width:100%}
|
|
221
265
|
.rt tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 14px;padding:14px 16px;border-bottom:1px solid var(--line)}
|
|
@@ -224,22 +268,25 @@ details.menu .pop hr{border:0;border-top:1px solid var(--line);margin:2px 0;widt
|
|
|
224
268
|
.rt td.span{grid-column:1/-1}
|
|
225
269
|
.rt td.hide-s{display:none}
|
|
226
270
|
.rt td.menu-s{grid-column:1/-1}
|
|
227
|
-
.rt td[data-l]::before{content:attr(data-l);display:block;font-size:
|
|
271
|
+
.rt td[data-l]::before{content:attr(data-l);display:block;font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:2px}
|
|
228
272
|
.steps{max-width:none}
|
|
229
|
-
.step{flex:1 1 0}.step .sl{font-size:
|
|
273
|
+
.step{flex:1 1 0}.step .sl{font-size:12px}.step .st{font-size:12px}
|
|
230
274
|
.wide{display:none}
|
|
231
|
-
.matrix td{width:44px;height:34px;font-size:
|
|
275
|
+
.matrix td{width:44px;height:34px;font-size:13px}
|
|
232
276
|
.health{gap:4px 14px}
|
|
233
277
|
details.menu .pop{right:auto;left:0}
|
|
234
278
|
}
|
|
235
279
|
@media (min-width:721px){.narrow{display:none}}
|
|
236
280
|
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
|
|
237
281
|
`;
|
|
282
|
+
export function secbar(items, label = "On this page") {
|
|
283
|
+
return `<nav class="secbar" aria-label="${esc(label)}"><div class="secbar-in">${items.map((i) => `<a href="#${esc(i.id)}">${esc(i.label)}${i.n !== undefined && i.n !== null && i.n !== "" ? `<span class="n">${esc(String(i.n))}</span>` : ""}</a>`).join("")}</div></nav>`;
|
|
284
|
+
}
|
|
238
285
|
export const newNonce = () => randomBytes(16).toString("base64");
|
|
239
|
-
export const csp = (nonce) => `default-src 'none'; script-src 'nonce-${nonce}'; style-src 'nonce-${nonce}' https://fonts.googleapis.com; style-src-attr 'unsafe-inline'; font-src https://fonts.gstatic.com; img-src data
|
|
240
|
-
export const pageHeaders = (nonce) => ({
|
|
286
|
+
export const csp = (nonce, connect = false) => `default-src 'none'; script-src 'nonce-${nonce}'; style-src 'nonce-${nonce}' https://fonts.googleapis.com; style-src-attr 'unsafe-inline'; font-src https://fonts.gstatic.com; img-src data:;${connect ? " connect-src 'self';" : ""} form-action 'self'; frame-ancestors 'none'; base-uri 'none'`;
|
|
287
|
+
export const pageHeaders = (nonce, o = {}) => ({
|
|
241
288
|
"content-type": "text/html; charset=utf-8", "cache-control": "no-store", "referrer-policy": "no-referrer",
|
|
242
|
-
"x-content-type-options": "nosniff", "x-frame-options": "DENY", "content-security-policy": csp(nonce),
|
|
289
|
+
"x-content-type-options": "nosniff", "x-frame-options": "DENY", "content-security-policy": csp(nonce, !!o.connect),
|
|
243
290
|
});
|
|
244
291
|
export function head(o) {
|
|
245
292
|
return `<!doctype html>
|
|
@@ -291,11 +338,12 @@ export function script(nonce) {
|
|
|
291
338
|
function two(n){return (n<10?"0":"")+n;}
|
|
292
339
|
// Every time on the page, in this browser's own zone. A time today shows as 14:05; any other day with its date.
|
|
293
340
|
var today=new Date().toDateString();
|
|
294
|
-
document.querySelectorAll("time[data-t]").forEach(function(t){
|
|
341
|
+
document.querySelectorAll("time[data-t],text[data-t]").forEach(function(t){
|
|
295
342
|
var d=new Date(Number(t.getAttribute("data-t"))); if(isNaN(d)) return;
|
|
296
343
|
var f=t.getAttribute("data-f"), day=WD[d.getDay()]+" "+d.getDate()+" "+MN[d.getMonth()], hm=two(d.getHours())+":"+two(d.getMinutes());
|
|
297
344
|
if(f==="time"&&d.toDateString()!==today) f="full";
|
|
298
|
-
|
|
345
|
+
if(f==="hm"){t.textContent=hm;return;}
|
|
346
|
+
t.textContent=f==="date"?day:f==="full"?day+" "+hm:f==="sec"?hm+":"+two(d.getSeconds()):hm; if(t.tagName.toLowerCase()==="time") t.title=d.toString();
|
|
299
347
|
});
|
|
300
348
|
// A chart is one tab stop: arrow keys walk its columns, each read out by the tooltip; the table view has every number.
|
|
301
349
|
document.querySelectorAll("svg[data-cols]").forEach(function(svg){
|
|
@@ -322,6 +370,25 @@ export function script(nonce) {
|
|
|
322
370
|
if(typed!==null){var v=prompt(c||"Type the name to confirm."); if(v!==typed){e.preventDefault();return;} var inp=f.querySelector("[name=confirm]"); if(inp) inp.value=v; return;}
|
|
323
371
|
if(c&&!confirm(c)) e.preventDefault();
|
|
324
372
|
});
|
|
373
|
+
// The pinned header: anchors land below it (scroll-margin-top reads --stick-h), measured as it changes.
|
|
374
|
+
var stick=document.querySelector(".stick");
|
|
375
|
+
function stickH(){ if(stick) root.style.setProperty("--stick-h",(stick.offsetHeight+12)+"px"); }
|
|
376
|
+
stickH(); if(stick&&window.ResizeObserver) new ResizeObserver(stickH).observe(stick);
|
|
377
|
+
// The section bar marks the section being read: the first one whose top part is in view below the header.
|
|
378
|
+
var bar=document.querySelector(".secbar");
|
|
379
|
+
if(bar&&window.IntersectionObserver){
|
|
380
|
+
var inner=bar.querySelector(".secbar-in"), links=[].slice.call(bar.querySelectorAll("a[href^='#']")), secs=[], seen={};
|
|
381
|
+
links.forEach(function(a){var el=document.getElementById(decodeURIComponent(a.getAttribute("href").slice(1))); if(el) secs.push({el:el,a:a});});
|
|
382
|
+
var mark=function(a){
|
|
383
|
+
links.forEach(function(l){ if(l===a) l.setAttribute("aria-current","true"); else l.removeAttribute("aria-current"); });
|
|
384
|
+
if(a&&inner&&inner.scrollWidth>inner.clientWidth){ var x=a.offsetLeft-(inner.clientWidth-a.offsetWidth)/2; inner.scrollLeft=Math.max(0,x); }
|
|
385
|
+
};
|
|
386
|
+
var io=new IntersectionObserver(function(es){
|
|
387
|
+
es.forEach(function(e){ seen[e.target.id]=e.isIntersecting; });
|
|
388
|
+
for(var i=0;i<secs.length;i++) if(seen[secs[i].el.id]){ mark(secs[i].a); return; }
|
|
389
|
+
},{rootMargin:"-"+((stick?stick.offsetHeight:0)+8)+"px 0px -55% 0px"});
|
|
390
|
+
secs.forEach(function(s){ io.observe(s.el); });
|
|
391
|
+
}
|
|
325
392
|
document.addEventListener("keydown",function(e){
|
|
326
393
|
if(e.key!=="Escape") return;
|
|
327
394
|
document.querySelectorAll("details.menu[open]").forEach(function(d){d.removeAttribute("open");var s=d.querySelector("summary");if(s)s.focus();});
|
|
@@ -335,15 +402,24 @@ export function script(nonce) {
|
|
|
335
402
|
const W = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], MO = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
336
403
|
export const shortDay = (ts) => { const d = new Date(ts); return `${d.getUTCDate()} ${MO[d.getUTCMonth()]}`; };
|
|
337
404
|
export const longDay = (ts) => { const d = new Date(ts); return `${W[d.getUTCDay()]} ${d.getUTCDate()} ${MO[d.getUTCMonth()]}`; };
|
|
338
|
-
export const hhmm = (ts) => new Date(ts).toISOString().slice(11, 16);
|
|
405
|
+
export const hhmm = (ts) => (validTime(ts) ? new Date(ts).toISOString().slice(11, 16) : "--:--");
|
|
406
|
+
export const validTime = (ts) => typeof ts === "number" && Number.isFinite(ts) && Math.abs(ts) <= 8.64e15;
|
|
339
407
|
export const when = (ts, f = "time") => {
|
|
340
408
|
if (!ts)
|
|
341
409
|
return `<span class="quiet">never</span>`;
|
|
410
|
+
if (!validTime(ts))
|
|
411
|
+
return `<span class="quiet">unknown time</span>`;
|
|
342
412
|
const today = new Date().toISOString().slice(0, 10) === new Date(ts).toISOString().slice(0, 10);
|
|
343
413
|
const fmt = f === "time" && !today ? "full" : f;
|
|
344
414
|
const text = fmt === "date" ? longDay(ts) : fmt === "full" ? `${longDay(ts)} ${hhmm(ts)} UTC` : fmt === "sec" ? `${new Date(ts).toISOString().slice(11, 19)} UTC` : `${hhmm(ts)} UTC`;
|
|
345
415
|
return `<time data-t="${ts}" data-f="${f}" datetime="${new Date(ts).toISOString()}">${text}</time>`;
|
|
346
416
|
};
|
|
417
|
+
export const ACT_WORDS = {
|
|
418
|
+
JOIN: "Arrived", LEAVE: "Left", NOTE: "Note", ASK: "Ask", ANSWER: "Answer", PROPOSE: "Proposal", ACCEPT: "Accepted",
|
|
419
|
+
OBJECT: "Objection", CONTRACT: "Agreement", COMMIT: "Commitment", DELIVERED: "Delivered", ESCALATE: "Escalation",
|
|
420
|
+
HUMAN_REQUIRED: "Needs a person", RETRACT: "Retraction", WITHDRAW: "Release request", CLOSE: "Goal closed",
|
|
421
|
+
};
|
|
422
|
+
export const actWords = (act) => ACT_WORDS[act] ?? cap(act.toLowerCase().replace(/_/g, " "));
|
|
347
423
|
export const plural = (n, one, many = `${one}s`) => `${n} ${n === 1 ? one : many}`;
|
|
348
424
|
export const pct = (a, b) => (b ? Math.round((a / b) * 100) : 0);
|
|
349
425
|
export const cap = (s) => (s ? s[0].toUpperCase() + s.slice(1) : s);
|
package/dist/board.js
CHANGED
|
@@ -13,10 +13,18 @@ import { which } from "./which.js";
|
|
|
13
13
|
import { VERSION } from "./version.js";
|
|
14
14
|
import { withoutAgentMarkers } from "./setup-changes.js";
|
|
15
15
|
import { shellArg } from "./team-name.js";
|
|
16
|
+
import { POLL_MS, powerNow } from "./power.js";
|
|
17
|
+
import { runsTodayLine } from "./spend.js";
|
|
16
18
|
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
17
19
|
export const CLI_ENTRY = resolve(HERE, "cli.js");
|
|
18
20
|
export const BOARD_IDLE_MS = 30 * 60_000;
|
|
19
21
|
export const BOARD_REFRESH_MS = 15_000;
|
|
22
|
+
export const boardRefreshMs = () => { try {
|
|
23
|
+
return POLL_MS[powerNow()];
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
return BOARD_REFRESH_MS;
|
|
27
|
+
} };
|
|
20
28
|
export const LANES = [
|
|
21
29
|
{ id: "now", title: "Needs you now", empty: "Nothing needs you right now." },
|
|
22
30
|
{ id: "handling", title: "Your agents are handling", empty: "Your agents are not working on anything for the team." },
|
|
@@ -530,7 +538,7 @@ export async function startBoardServer(o = {}) {
|
|
|
530
538
|
}
|
|
531
539
|
if (method === "GET" && url.pathname === "/api/board") {
|
|
532
540
|
try {
|
|
533
|
-
sendJson(res, 200, { ok: true, at: deps.now(), refresh_ms:
|
|
541
|
+
sendJson(res, 200, { ok: true, at: deps.now(), refresh_ms: boardRefreshMs(), status: await status() });
|
|
534
542
|
}
|
|
535
543
|
catch (e) {
|
|
536
544
|
sendJson(res, 200, { ok: false, error: `could not read the board: ${e.message}` });
|
|
@@ -937,6 +945,14 @@ export function renderWatch(s, o = { now: Date.now() }) {
|
|
|
937
945
|
if (s.agent_problem)
|
|
938
946
|
for (const l of wrapWords(`! ${termSafe(s.agent_problem_lead ?? "Unattended work can't run")}: ${termSafe(s.agent_problem)}`, width))
|
|
939
947
|
lines.push(Y(l));
|
|
948
|
+
{
|
|
949
|
+
const r = runsTodayLine(s.runs_today);
|
|
950
|
+
if (r)
|
|
951
|
+
lines.push(D(fit(r)));
|
|
952
|
+
}
|
|
953
|
+
for (const c of s.stuck_connections ?? [])
|
|
954
|
+
for (const l of wrapWords(`! Not connected: ${termSafe(c.line)}`, width))
|
|
955
|
+
lines.push(Y(l));
|
|
940
956
|
for (const g of s.gone_spaces ?? [])
|
|
941
957
|
lines.push(fit(`${termSafe(g.line)} · Remove from this computer: pantheon leave ${termSafe(shellArg(g.space))}`));
|
|
942
958
|
if (s.relay_ok === false || s.decisions_ok === false)
|
|
@@ -1056,10 +1072,11 @@ export function boardHtml(nonce) {
|
|
|
1056
1072
|
<body>
|
|
1057
1073
|
<a class="skip" href="#board">Skip to the board</a>
|
|
1058
1074
|
<header class="top">
|
|
1059
|
-
<div class="title"><h1>Pantheon</h1><p id="who" class="muted"></p></div>
|
|
1075
|
+
<div class="title"><h1>Pantheon</h1><p id="who" class="muted"></p><p id="runs" class="muted" hidden></p></div>
|
|
1060
1076
|
<div class="bar"><span id="health" class="muted"></span><button type="button" id="refresh">Refresh</button></div>
|
|
1061
1077
|
</header>
|
|
1062
1078
|
<div id="problem" class="banner problem" role="status" hidden><strong id="problem-lead"></strong> <span id="problem-text"></span></div>
|
|
1079
|
+
<div id="stuck" class="banner problem" role="status" hidden></div>
|
|
1063
1080
|
<ul id="gone" class="gone" hidden></ul>
|
|
1064
1081
|
<div id="banner" class="banner" role="alert" hidden></div>
|
|
1065
1082
|
<main id="board" tabindex="-1" aria-busy="true">
|
|
@@ -1131,8 +1148,9 @@ button:hover{border-color:var(--muted)}
|
|
|
1131
1148
|
button[disabled]{opacity:.55;cursor:default}
|
|
1132
1149
|
.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}
|
|
1133
1150
|
.banner{max-width:980px;margin:12px auto 0;padding:10px 14px;border-radius:8px;background:var(--warn-bg);color:var(--warn-text)}
|
|
1151
|
+
@media (max-width:1012px){.banner,.gone{margin-left:16px;margin-right:16px}}
|
|
1134
1152
|
.banner.err{background:var(--err-bg);color:var(--err-text)}
|
|
1135
|
-
.banner.problem{border-left:4px solid var(--warn-text);overflow-wrap:anywhere}
|
|
1153
|
+
.banner.problem{border-left:4px solid var(--warn-text);overflow-wrap:anywhere;white-space:pre-line}
|
|
1136
1154
|
.gone{max-width:980px;margin:12px auto 0;padding:0;list-style:none}
|
|
1137
1155
|
.gone>li{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--card);margin:0 0 8px;overflow-wrap:anywhere}
|
|
1138
1156
|
.empty{margin:4px 0}
|
|
@@ -1277,6 +1295,15 @@ function render() {
|
|
|
1277
1295
|
}));
|
|
1278
1296
|
return li;
|
|
1279
1297
|
}));
|
|
1298
|
+
// "Your agent ran N teammate requests today (M min)" — the words spend.ts runsTodayLine uses; hidden when none ran.
|
|
1299
|
+
const rt = s.runs_today || null;
|
|
1300
|
+
const rn = rt && rt.n > 0 ? rt.n : 0;
|
|
1301
|
+
$("runs").hidden = !rn;
|
|
1302
|
+
$("runs").textContent = rn ? "Your agent ran " + rn + " teammate request" + (rn === 1 ? "" : "s") + " today" + (typeof rt.minutes === "number" ? " (" + (rt.minutes < 1 ? "<1" : rt.minutes) + " min)" : "") : "";
|
|
1303
|
+
// A process here stuck without the relay for over two minutes: which, and the fix.
|
|
1304
|
+
const stuck = (s.stuck_connections || []).map((c) => c.line).filter(Boolean);
|
|
1305
|
+
$("stuck").hidden = !stuck.length;
|
|
1306
|
+
$("stuck").textContent = stuck.map((l) => "Not connected: " + l).join("\\n");
|
|
1280
1307
|
$("health").textContent = (!spaces.length && (s.gone_spaces || []).length ? "" : (s.relay_ok ? (s.online || 0) + " of " + (s.members || 0) + " online" : "relay unreachable") + " · ") + "worker " + (s.worker_running ? "running" : "off") + (problem ? "" : s.worker_state ? " (" + s.worker_state + ")" : "");
|
|
1281
1308
|
const down = (s.unavailable_spaces || []);
|
|
1282
1309
|
const items = s.items || [];
|
package/dist/claude-confine.js
CHANGED
|
@@ -154,13 +154,14 @@ function realFoldersBelow(root, dir) {
|
|
|
154
154
|
}
|
|
155
155
|
return true;
|
|
156
156
|
}
|
|
157
|
-
export function removeSandboxLeftovers(absent, common) {
|
|
157
|
+
export function removeSandboxLeftovers(absent, common, own) {
|
|
158
158
|
const root = resolve(common);
|
|
159
159
|
const removed = [];
|
|
160
|
+
const ownPath = own && basename(own) === "config.worktree" && dirname(dirname(resolve(own))) === join(root, "worktrees") ? resolve(own) : null;
|
|
160
161
|
for (const p of absent) {
|
|
161
162
|
if (!p.startsWith(root + sep) || !realFoldersBelow(root, dirname(p)))
|
|
162
163
|
continue;
|
|
163
|
-
const anyMode = p === join(root, "commondir");
|
|
164
|
+
const anyMode = p === join(root, "commondir") || (ownPath !== null && resolve(p) === ownPath);
|
|
164
165
|
let st;
|
|
165
166
|
try {
|
|
166
167
|
st = lstatSync(p);
|