claude-code-kanban 7.26.0 → 7.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/parsers.js +65 -7
- package/lib/retention.js +10 -1
- package/lib/show.js +89 -51
- package/package.json +1 -1
- package/public/app.js +443 -40
- package/public/index.html +36 -1
- package/public/style.css +358 -22
- package/server.js +41 -6
package/public/index.html
CHANGED
|
@@ -350,7 +350,11 @@
|
|
|
350
350
|
<div id="agent-footer" class="agent-footer">
|
|
351
351
|
<div class="agent-footer-header" onclick="toggleAgentFooter()">
|
|
352
352
|
<span id="agent-footer-label">Agents</span>
|
|
353
|
-
<
|
|
353
|
+
<span class="agent-footer-actions">
|
|
354
|
+
<button class="agent-footer-expand" id="agent-footer-expand" onclick="event.stopPropagation(); toggleAgentFooterExpanded()" aria-label="Show all agents" title="Show all agents"><svg class="icon-expand" viewBox="0 0 24 24"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"/></svg><svg class="icon-shrink" viewBox="0 0 24 24"><path d="M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7"/></svg></button>
|
|
355
|
+
<button class="agent-footer-views" onclick="event.stopPropagation(); showAgentViews()" aria-label="Agents timeline and map" title="Agents timeline and map"><svg viewBox="0 0 24 24"><circle cx="5" cy="12" r="2.5"/><circle cx="19" cy="5" r="2.5"/><circle cx="19" cy="19" r="2.5"/><path d="M7.5 12h4M11.5 12V5h5M11.5 12v7h5"/></svg></button>
|
|
356
|
+
<button class="agent-footer-toggle" id="agent-footer-toggle" aria-label="Toggle agent panel"><svg class="collapse-chevron" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6"/></svg></button>
|
|
357
|
+
</span>
|
|
354
358
|
</div>
|
|
355
359
|
<div class="agent-footer-content" id="agent-footer-content"></div>
|
|
356
360
|
</div>
|
|
@@ -504,6 +508,9 @@
|
|
|
504
508
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>
|
|
505
509
|
</button>
|
|
506
510
|
<button class="icon-btn" aria-label="Copy path" title="Copy path" onclick="copyWithFeedback(currentPreviewPath, this)">
|
|
511
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="16" height="16"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg>
|
|
512
|
+
</button>
|
|
513
|
+
<button id="preview-copy-content-btn" class="icon-btn" aria-label="Copy content" title="Copy content" onclick="copyWithFeedback(currentPreviewContent, this)">
|
|
507
514
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="16" height="16"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
|
|
508
515
|
</button>
|
|
509
516
|
<button class="icon-btn" aria-label="Open in editor" title="Open in editor" onclick="openPreviewInEditor()">
|
|
@@ -706,6 +713,34 @@
|
|
|
706
713
|
</div>
|
|
707
714
|
</div>
|
|
708
715
|
|
|
716
|
+
<div id="agent-views-modal" class="modal-overlay plan-modal-overlay" onclick="closeAgentViews()">
|
|
717
|
+
<div class="modal agent-views-modal" onclick="event.stopPropagation()">
|
|
718
|
+
<div class="modal-header">
|
|
719
|
+
<div class="agent-views-head">
|
|
720
|
+
<h3 class="modal-title">Agents</h3>
|
|
721
|
+
<div class="agent-views-tabs" role="tablist">
|
|
722
|
+
<button type="button" role="tab" data-view="timeline" onclick="setAgentView('timeline')">Timeline</button>
|
|
723
|
+
<button type="button" role="tab" data-view="map" onclick="setAgentView('map')">Map</button>
|
|
724
|
+
</div>
|
|
725
|
+
<div class="agent-views-tabs agent-views-colors" role="group" aria-label="Color by">
|
|
726
|
+
<span>color</span>
|
|
727
|
+
<button type="button" data-color="type" onclick="setAgentColor('type')">type</button>
|
|
728
|
+
<button type="button" data-color="model" onclick="setAgentColor('model')">model</button>
|
|
729
|
+
<button type="button" data-color="status" onclick="setAgentColor('status')">status</button>
|
|
730
|
+
<button type="button" data-color="wave" onclick="setAgentColor('wave')">wave</button>
|
|
731
|
+
</div>
|
|
732
|
+
</div>
|
|
733
|
+
<button class="modal-close" aria-label="Close dialog" onclick="closeAgentViews()">
|
|
734
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
735
|
+
<path d="M18 6L6 18M6 6l12 12"/>
|
|
736
|
+
</svg>
|
|
737
|
+
</button>
|
|
738
|
+
</div>
|
|
739
|
+
<div id="agent-views-body" class="modal-body agent-views-body"></div>
|
|
740
|
+
<div id="agent-views-legend" class="agent-views-legend"></div>
|
|
741
|
+
</div>
|
|
742
|
+
</div>
|
|
743
|
+
|
|
709
744
|
<div id="agent-modal" class="modal-overlay plan-modal-overlay" onclick="closeAgentModal()">
|
|
710
745
|
<div class="modal plan-modal" onclick="event.stopPropagation()">
|
|
711
746
|
<div class="modal-header">
|
package/public/style.css
CHANGED
|
@@ -127,15 +127,18 @@ body::before {
|
|
|
127
127
|
background: var(--text-muted);
|
|
128
128
|
}
|
|
129
129
|
.column-tasks::-webkit-scrollbar-thumb,
|
|
130
|
-
.sessions-list::-webkit-scrollbar-thumb
|
|
130
|
+
.sessions-list::-webkit-scrollbar-thumb,
|
|
131
|
+
.agent-footer-content::-webkit-scrollbar-thumb {
|
|
131
132
|
background: transparent;
|
|
132
133
|
}
|
|
133
134
|
.column-tasks:hover::-webkit-scrollbar-thumb,
|
|
134
|
-
.sessions-list:hover::-webkit-scrollbar-thumb
|
|
135
|
+
.sessions-list:hover::-webkit-scrollbar-thumb,
|
|
136
|
+
.agent-footer-content:hover::-webkit-scrollbar-thumb {
|
|
135
137
|
background: var(--border);
|
|
136
138
|
}
|
|
137
139
|
.column-tasks::-webkit-scrollbar-thumb:hover,
|
|
138
|
-
.sessions-list::-webkit-scrollbar-thumb:hover
|
|
140
|
+
.sessions-list::-webkit-scrollbar-thumb:hover,
|
|
141
|
+
.agent-footer-content::-webkit-scrollbar-thumb:hover {
|
|
139
142
|
background: var(--text-muted);
|
|
140
143
|
}
|
|
141
144
|
|
|
@@ -1419,7 +1422,8 @@ body.booting .boot-splash {
|
|
|
1419
1422
|
.detail-context-stats .stat-value {
|
|
1420
1423
|
color: var(--text-primary);
|
|
1421
1424
|
}
|
|
1422
|
-
.detail-context-stats .stat-divider
|
|
1425
|
+
.detail-context-stats .stat-divider,
|
|
1426
|
+
.info-grid .stat-divider {
|
|
1423
1427
|
grid-column: 1 / -1;
|
|
1424
1428
|
border-top: 1px solid var(--border);
|
|
1425
1429
|
margin: 2px 0;
|
|
@@ -4926,7 +4930,9 @@ body.show-resizing iframe {
|
|
|
4926
4930
|
}
|
|
4927
4931
|
|
|
4928
4932
|
.pane-tabs.fade-l,
|
|
4929
|
-
.pane-tabs.fade-r
|
|
4933
|
+
.pane-tabs.fade-r,
|
|
4934
|
+
.agent-footer-content.fade-l,
|
|
4935
|
+
.agent-footer-content.fade-r {
|
|
4930
4936
|
mask-image: linear-gradient(
|
|
4931
4937
|
to right,
|
|
4932
4938
|
transparent,
|
|
@@ -4936,11 +4942,13 @@ body.show-resizing iframe {
|
|
|
4936
4942
|
);
|
|
4937
4943
|
}
|
|
4938
4944
|
|
|
4939
|
-
.pane-tabs.fade-l
|
|
4945
|
+
.pane-tabs.fade-l,
|
|
4946
|
+
.agent-footer-content.fade-l {
|
|
4940
4947
|
--fade-l: 28px;
|
|
4941
4948
|
}
|
|
4942
4949
|
|
|
4943
|
-
.pane-tabs.fade-r
|
|
4950
|
+
.pane-tabs.fade-r,
|
|
4951
|
+
.agent-footer-content.fade-r {
|
|
4944
4952
|
--fade-r: 28px;
|
|
4945
4953
|
}
|
|
4946
4954
|
|
|
@@ -7232,27 +7240,315 @@ body.show-resizing iframe {
|
|
|
7232
7240
|
cursor: pointer;
|
|
7233
7241
|
user-select: none;
|
|
7234
7242
|
color: var(--text-tertiary);
|
|
7235
|
-
font-size:
|
|
7236
|
-
|
|
7243
|
+
font-size: 10.5px;
|
|
7244
|
+
font-weight: 500;
|
|
7237
7245
|
text-transform: uppercase;
|
|
7246
|
+
letter-spacing: 0.08em;
|
|
7238
7247
|
}
|
|
7239
|
-
|
|
7240
|
-
|
|
7248
|
+
#agent-footer-label {
|
|
7249
|
+
display: flex;
|
|
7250
|
+
align-items: baseline;
|
|
7251
|
+
gap: 6px;
|
|
7252
|
+
}
|
|
7253
|
+
.agent-footer-count {
|
|
7254
|
+
font-weight: 500;
|
|
7255
|
+
}
|
|
7256
|
+
.agent-footer-running {
|
|
7257
|
+
color: var(--success);
|
|
7258
|
+
font-weight: 500;
|
|
7259
|
+
}
|
|
7260
|
+
.agent-footer-actions {
|
|
7261
|
+
display: flex;
|
|
7262
|
+
align-items: center;
|
|
7263
|
+
gap: 10px;
|
|
7241
7264
|
}
|
|
7242
|
-
.agent-footer-toggle
|
|
7265
|
+
.agent-footer-toggle,
|
|
7266
|
+
.agent-footer-views,
|
|
7267
|
+
.agent-footer-expand {
|
|
7268
|
+
display: flex;
|
|
7243
7269
|
background: none;
|
|
7244
7270
|
border: none;
|
|
7245
|
-
color: var(--text-tertiary);
|
|
7246
7271
|
cursor: pointer;
|
|
7247
|
-
|
|
7248
|
-
|
|
7272
|
+
padding: 2px;
|
|
7273
|
+
}
|
|
7274
|
+
.agent-footer-views svg,
|
|
7275
|
+
.agent-footer-expand svg {
|
|
7276
|
+
width: 13px;
|
|
7277
|
+
height: 13px;
|
|
7278
|
+
stroke: var(--text-muted);
|
|
7279
|
+
fill: none;
|
|
7280
|
+
stroke-width: 2;
|
|
7281
|
+
stroke-linecap: round;
|
|
7282
|
+
stroke-linejoin: round;
|
|
7283
|
+
}
|
|
7284
|
+
.agent-footer-views:hover svg,
|
|
7285
|
+
.agent-footer-expand:hover svg,
|
|
7286
|
+
.agent-footer.expanded .agent-footer-expand svg {
|
|
7287
|
+
stroke: var(--accent);
|
|
7288
|
+
}
|
|
7289
|
+
.agent-footer-expand .icon-shrink,
|
|
7290
|
+
.agent-footer.expanded .agent-footer-expand .icon-expand {
|
|
7291
|
+
display: none;
|
|
7292
|
+
}
|
|
7293
|
+
.agent-footer.expanded .agent-footer-expand .icon-shrink {
|
|
7294
|
+
display: block;
|
|
7295
|
+
}
|
|
7296
|
+
.agent-footer.expanded .agent-footer-content {
|
|
7297
|
+
display: grid;
|
|
7298
|
+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
7299
|
+
max-height: 50vh;
|
|
7300
|
+
overflow: hidden auto;
|
|
7301
|
+
}
|
|
7302
|
+
.agent-footer.expanded.collapsed .agent-footer-content {
|
|
7303
|
+
display: none;
|
|
7304
|
+
}
|
|
7305
|
+
.agent-footer.expanded .agent-card {
|
|
7306
|
+
min-width: 0;
|
|
7307
|
+
}
|
|
7308
|
+
.agent-footer-more {
|
|
7309
|
+
grid-column: 1 / -1;
|
|
7310
|
+
justify-self: center;
|
|
7311
|
+
padding: 4px 12px;
|
|
7312
|
+
background: none;
|
|
7313
|
+
border: 1px solid var(--border);
|
|
7314
|
+
border-radius: 6px;
|
|
7315
|
+
color: var(--accent);
|
|
7316
|
+
font: inherit;
|
|
7317
|
+
font-size: 12px;
|
|
7318
|
+
cursor: pointer;
|
|
7319
|
+
}
|
|
7320
|
+
.agent-footer-more span {
|
|
7321
|
+
color: var(--text-muted);
|
|
7322
|
+
}
|
|
7323
|
+
.agent-footer-more:hover {
|
|
7324
|
+
border-color: var(--accent);
|
|
7325
|
+
}
|
|
7326
|
+
.modal.agent-views-modal {
|
|
7327
|
+
width: 80vw;
|
|
7328
|
+
max-width: 1100px;
|
|
7329
|
+
max-height: 85vh;
|
|
7330
|
+
display: flex;
|
|
7331
|
+
flex-direction: column;
|
|
7332
|
+
}
|
|
7333
|
+
.agent-views-head {
|
|
7334
|
+
display: flex;
|
|
7335
|
+
align-items: center;
|
|
7336
|
+
gap: 16px;
|
|
7337
|
+
}
|
|
7338
|
+
.agent-views-tabs {
|
|
7339
|
+
display: flex;
|
|
7340
|
+
gap: 2px;
|
|
7341
|
+
padding: 2px;
|
|
7342
|
+
border: 1px solid var(--border);
|
|
7343
|
+
border-radius: 7px;
|
|
7344
|
+
}
|
|
7345
|
+
.agent-views-tabs button {
|
|
7346
|
+
padding: 3px 12px;
|
|
7347
|
+
border: none;
|
|
7348
|
+
border-radius: 5px;
|
|
7349
|
+
background: none;
|
|
7350
|
+
color: var(--text-muted);
|
|
7351
|
+
font: inherit;
|
|
7352
|
+
font-size: 12px;
|
|
7353
|
+
cursor: pointer;
|
|
7354
|
+
}
|
|
7355
|
+
.agent-views-tabs button[aria-selected='true'],
|
|
7356
|
+
.agent-views-tabs button[aria-pressed='true'] {
|
|
7357
|
+
background: var(--bg-hover);
|
|
7358
|
+
color: var(--text-primary);
|
|
7359
|
+
}
|
|
7360
|
+
.agent-views-body {
|
|
7361
|
+
flex: 1 1 auto;
|
|
7362
|
+
min-height: 0;
|
|
7363
|
+
overflow: auto;
|
|
7364
|
+
padding: 2px 14px 4px 0;
|
|
7365
|
+
}
|
|
7366
|
+
.agent-map {
|
|
7367
|
+
position: relative;
|
|
7368
|
+
margin: 4px;
|
|
7369
|
+
}
|
|
7370
|
+
.agent-map-edges,
|
|
7371
|
+
.agent-spine-links {
|
|
7372
|
+
position: absolute;
|
|
7373
|
+
inset: 0;
|
|
7374
|
+
overflow: visible;
|
|
7375
|
+
fill: none;
|
|
7376
|
+
stroke: var(--border);
|
|
7377
|
+
stroke-width: 1.5;
|
|
7378
|
+
}
|
|
7379
|
+
.agent-map-node {
|
|
7380
|
+
position: absolute;
|
|
7381
|
+
display: flex;
|
|
7382
|
+
align-items: center;
|
|
7383
|
+
gap: 6px;
|
|
7384
|
+
box-sizing: border-box;
|
|
7385
|
+
width: var(--node-w);
|
|
7386
|
+
height: var(--node-h);
|
|
7387
|
+
padding: 0 12px;
|
|
7388
|
+
border: 1.5px solid var(--border);
|
|
7389
|
+
border-radius: 18px;
|
|
7390
|
+
background: var(--bg-elevated);
|
|
7391
|
+
color: var(--text-primary);
|
|
7392
|
+
font: inherit;
|
|
7393
|
+
font-size: 11px;
|
|
7394
|
+
text-align: left;
|
|
7395
|
+
}
|
|
7396
|
+
button.agent-map-node {
|
|
7397
|
+
cursor: pointer;
|
|
7398
|
+
}
|
|
7399
|
+
button.agent-map-node:hover {
|
|
7400
|
+
background: var(--bg-surface);
|
|
7401
|
+
}
|
|
7402
|
+
.agent-map-node.root {
|
|
7403
|
+
justify-content: center;
|
|
7404
|
+
color: var(--text-secondary);
|
|
7405
|
+
font-weight: 600;
|
|
7406
|
+
background: var(--bg-surface);
|
|
7407
|
+
}
|
|
7408
|
+
.agent-map-node.active,
|
|
7409
|
+
.agent-spine-row.active .agent-spine-bar,
|
|
7410
|
+
.agent-views-legend .agent-views-live {
|
|
7411
|
+
box-shadow: 0 0 0 2px var(--success);
|
|
7412
|
+
}
|
|
7413
|
+
.agent-map-node.stopped,
|
|
7414
|
+
.agent-spine-row.stopped .agent-spine-label {
|
|
7415
|
+
color: var(--text-secondary);
|
|
7416
|
+
}
|
|
7417
|
+
.agent-map-text {
|
|
7418
|
+
flex: 1;
|
|
7419
|
+
min-width: 0;
|
|
7420
|
+
overflow: hidden;
|
|
7421
|
+
white-space: nowrap;
|
|
7422
|
+
text-overflow: ellipsis;
|
|
7423
|
+
}
|
|
7424
|
+
.agent-map-kind {
|
|
7425
|
+
display: block;
|
|
7426
|
+
color: var(--text-muted);
|
|
7427
|
+
font-family: var(--font-mono);
|
|
7428
|
+
font-size: 9.5px;
|
|
7429
|
+
overflow: hidden;
|
|
7430
|
+
text-overflow: ellipsis;
|
|
7431
|
+
}
|
|
7432
|
+
.agent-views-time {
|
|
7433
|
+
color: var(--text-muted);
|
|
7434
|
+
font-family: var(--font-mono);
|
|
7435
|
+
font-size: 10px;
|
|
7436
|
+
}
|
|
7437
|
+
.agent-spine-row.active .agent-views-time {
|
|
7438
|
+
color: var(--success);
|
|
7439
|
+
}
|
|
7440
|
+
.agent-views-colors {
|
|
7441
|
+
align-items: center;
|
|
7442
|
+
}
|
|
7443
|
+
.agent-views-colors span {
|
|
7444
|
+
padding: 0 4px 0 8px;
|
|
7445
|
+
color: var(--text-muted);
|
|
7446
|
+
font-size: 11px;
|
|
7447
|
+
}
|
|
7448
|
+
.agent-views-legend {
|
|
7449
|
+
display: flex;
|
|
7450
|
+
flex-wrap: wrap;
|
|
7451
|
+
gap: 4px 14px;
|
|
7452
|
+
padding: 8px 4px 0;
|
|
7453
|
+
border-top: 1px solid var(--border);
|
|
7454
|
+
color: var(--text-muted);
|
|
7455
|
+
font-size: 11px;
|
|
7456
|
+
}
|
|
7457
|
+
.agent-views-legend:empty {
|
|
7458
|
+
display: none;
|
|
7459
|
+
}
|
|
7460
|
+
.agent-views-legend span {
|
|
7461
|
+
display: inline-flex;
|
|
7462
|
+
align-items: center;
|
|
7463
|
+
gap: 5px;
|
|
7464
|
+
}
|
|
7465
|
+
.agent-views-legend i {
|
|
7466
|
+
width: 14px;
|
|
7467
|
+
height: 8px;
|
|
7468
|
+
border-radius: 3px;
|
|
7469
|
+
}
|
|
7470
|
+
.agent-spine {
|
|
7471
|
+
position: relative;
|
|
7472
|
+
margin-left: 4px;
|
|
7473
|
+
}
|
|
7474
|
+
.agent-spine-links .agent-spine-main {
|
|
7475
|
+
stroke: var(--text-muted);
|
|
7476
|
+
stroke-width: 2;
|
|
7477
|
+
}
|
|
7478
|
+
.agent-spine-dot {
|
|
7479
|
+
position: absolute;
|
|
7480
|
+
top: 4px;
|
|
7481
|
+
width: 9px;
|
|
7482
|
+
height: 9px;
|
|
7483
|
+
margin-left: -4.5px;
|
|
7484
|
+
border-radius: 50%;
|
|
7485
|
+
background: var(--text-muted);
|
|
7486
|
+
}
|
|
7487
|
+
.agent-spine-cut {
|
|
7488
|
+
position: absolute;
|
|
7489
|
+
top: 0;
|
|
7490
|
+
padding: 0 2px;
|
|
7491
|
+
margin-left: -7px;
|
|
7492
|
+
background: var(--bg-surface);
|
|
7493
|
+
color: var(--text-muted);
|
|
7494
|
+
font-size: 12px;
|
|
7495
|
+
line-height: 16px;
|
|
7496
|
+
}
|
|
7497
|
+
.agent-spine-row {
|
|
7498
|
+
position: absolute;
|
|
7499
|
+
display: flex;
|
|
7500
|
+
align-items: center;
|
|
7501
|
+
gap: 6px;
|
|
7502
|
+
height: var(--row-h);
|
|
7503
|
+
padding: 0 4px 0 0;
|
|
7504
|
+
border: none;
|
|
7505
|
+
border-radius: 4px;
|
|
7506
|
+
background: none;
|
|
7507
|
+
color: var(--text-primary);
|
|
7508
|
+
font: inherit;
|
|
7509
|
+
font-size: 11px;
|
|
7510
|
+
white-space: nowrap;
|
|
7511
|
+
cursor: pointer;
|
|
7512
|
+
}
|
|
7513
|
+
.agent-spine-row:hover {
|
|
7514
|
+
background: var(--bg-elevated);
|
|
7515
|
+
}
|
|
7516
|
+
.agent-spine-bar {
|
|
7517
|
+
flex: none;
|
|
7518
|
+
height: 8px;
|
|
7519
|
+
border-radius: 3px;
|
|
7520
|
+
}
|
|
7521
|
+
.agent-spine-label {
|
|
7522
|
+
max-width: 210px;
|
|
7523
|
+
overflow: hidden;
|
|
7524
|
+
text-overflow: ellipsis;
|
|
7525
|
+
}
|
|
7526
|
+
.agent-spine-axis {
|
|
7527
|
+
position: absolute;
|
|
7528
|
+
left: 0;
|
|
7529
|
+
right: 0;
|
|
7530
|
+
height: 14px;
|
|
7531
|
+
color: var(--text-muted);
|
|
7532
|
+
font-family: var(--font-mono);
|
|
7533
|
+
font-size: 10px;
|
|
7534
|
+
}
|
|
7535
|
+
.agent-spine-axis span {
|
|
7536
|
+
position: absolute;
|
|
7537
|
+
white-space: nowrap;
|
|
7538
|
+
border-left: 1px solid var(--border);
|
|
7539
|
+
padding-left: 3px;
|
|
7540
|
+
}
|
|
7541
|
+
.agent-footer.collapsed .agent-footer-toggle .collapse-chevron {
|
|
7542
|
+
transform: rotate(180deg);
|
|
7543
|
+
}
|
|
7544
|
+
.agent-footer-header:hover .collapse-chevron {
|
|
7545
|
+
stroke: var(--text-secondary);
|
|
7249
7546
|
}
|
|
7250
7547
|
.agent-footer-content {
|
|
7251
7548
|
display: flex;
|
|
7252
7549
|
gap: 10px;
|
|
7253
7550
|
padding: 0 24px 12px;
|
|
7254
7551
|
overflow-x: auto;
|
|
7255
|
-
scrollbar-width: thin;
|
|
7256
7552
|
}
|
|
7257
7553
|
.agent-footer.collapsed .agent-footer-content {
|
|
7258
7554
|
display: none;
|
|
@@ -7261,10 +7557,11 @@ body.show-resizing iframe {
|
|
|
7261
7557
|
display: flex;
|
|
7262
7558
|
flex-direction: column;
|
|
7263
7559
|
gap: 3px;
|
|
7264
|
-
padding:
|
|
7265
|
-
background: var(--bg-
|
|
7266
|
-
border: 1px solid
|
|
7560
|
+
padding: 7px 10px;
|
|
7561
|
+
background: var(--bg-elevated);
|
|
7562
|
+
border: 1px solid var(--border);
|
|
7267
7563
|
border-radius: 8px;
|
|
7564
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
|
|
7268
7565
|
white-space: nowrap;
|
|
7269
7566
|
flex-shrink: 0;
|
|
7270
7567
|
min-width: 180px;
|
|
@@ -7275,6 +7572,14 @@ body.show-resizing iframe {
|
|
|
7275
7572
|
cursor: pointer;
|
|
7276
7573
|
position: relative;
|
|
7277
7574
|
}
|
|
7575
|
+
.agent-card.stopped {
|
|
7576
|
+
background: transparent;
|
|
7577
|
+
box-shadow: none;
|
|
7578
|
+
}
|
|
7579
|
+
.agent-card.stopped .agent-task,
|
|
7580
|
+
.agent-card.stopped .agent-card-model {
|
|
7581
|
+
color: var(--text-secondary);
|
|
7582
|
+
}
|
|
7278
7583
|
.agent-card:hover {
|
|
7279
7584
|
border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
|
|
7280
7585
|
}
|
|
@@ -7288,11 +7593,15 @@ body.show-resizing iframe {
|
|
|
7288
7593
|
border: none;
|
|
7289
7594
|
color: var(--text-muted);
|
|
7290
7595
|
cursor: pointer;
|
|
7291
|
-
opacity: 0
|
|
7596
|
+
opacity: 0;
|
|
7292
7597
|
transition:
|
|
7293
7598
|
opacity 0.15s,
|
|
7294
7599
|
color 0.15s;
|
|
7295
7600
|
}
|
|
7601
|
+
.agent-card:hover .agent-card-log-btn,
|
|
7602
|
+
.agent-card-log-btn:focus-visible {
|
|
7603
|
+
opacity: 0.6;
|
|
7604
|
+
}
|
|
7296
7605
|
.agent-card-log-btn:hover {
|
|
7297
7606
|
opacity: 1;
|
|
7298
7607
|
color: var(--accent);
|
|
@@ -7309,12 +7618,15 @@ body.show-resizing iframe {
|
|
|
7309
7618
|
.agent-task {
|
|
7310
7619
|
max-width: 240px;
|
|
7311
7620
|
padding-right: 14px;
|
|
7312
|
-
font-size:
|
|
7621
|
+
font-size: 11px;
|
|
7313
7622
|
font-weight: 600;
|
|
7314
7623
|
color: var(--text-primary);
|
|
7315
7624
|
overflow: hidden;
|
|
7316
7625
|
text-overflow: ellipsis;
|
|
7317
7626
|
}
|
|
7627
|
+
.agent-card .agent-ident-row {
|
|
7628
|
+
font-size: 10px;
|
|
7629
|
+
}
|
|
7318
7630
|
.agent-ident-row {
|
|
7319
7631
|
display: flex;
|
|
7320
7632
|
align-items: center;
|
|
@@ -7346,7 +7658,16 @@ body.show-resizing iframe {
|
|
|
7346
7658
|
.agent-status-row {
|
|
7347
7659
|
display: flex;
|
|
7348
7660
|
align-items: center;
|
|
7349
|
-
|
|
7661
|
+
justify-content: space-between;
|
|
7662
|
+
gap: 8px;
|
|
7663
|
+
}
|
|
7664
|
+
.agent-duration {
|
|
7665
|
+
font-size: 10px;
|
|
7666
|
+
color: var(--text-muted);
|
|
7667
|
+
font-variant-numeric: tabular-nums;
|
|
7668
|
+
}
|
|
7669
|
+
.agent-card.active .agent-duration {
|
|
7670
|
+
color: var(--success);
|
|
7350
7671
|
}
|
|
7351
7672
|
.agent-dot {
|
|
7352
7673
|
width: 5px;
|
|
@@ -7358,6 +7679,21 @@ body.show-resizing iframe {
|
|
|
7358
7679
|
background: var(--success);
|
|
7359
7680
|
box-shadow: 0 0 4px color-mix(in srgb, var(--success) 50%, transparent);
|
|
7360
7681
|
}
|
|
7682
|
+
.agent-status-row .agent-status {
|
|
7683
|
+
display: inline-flex;
|
|
7684
|
+
align-items: center;
|
|
7685
|
+
gap: 5px;
|
|
7686
|
+
}
|
|
7687
|
+
.agent-status-row .agent-dot {
|
|
7688
|
+
width: 6px;
|
|
7689
|
+
height: 6px;
|
|
7690
|
+
}
|
|
7691
|
+
.agent-status-row .agent-dot.active {
|
|
7692
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 18%, transparent);
|
|
7693
|
+
}
|
|
7694
|
+
.agent-status-row .agent-dot.idle {
|
|
7695
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 18%, transparent);
|
|
7696
|
+
}
|
|
7361
7697
|
.agent-dot.idle {
|
|
7362
7698
|
background: var(--warning);
|
|
7363
7699
|
box-shadow: 0 0 4px color-mix(in srgb, var(--warning) 50%, transparent);
|
package/server.js
CHANGED
|
@@ -121,6 +121,7 @@ const CCK_DIR = path.join(CLAUDE_DIR, '.cck');
|
|
|
121
121
|
const AGENT_ACTIVITY_DIR = path.join(CCK_DIR, 'agent-activity');
|
|
122
122
|
const CONTEXT_STATUS_DIR = path.join(CCK_DIR, 'context-status');
|
|
123
123
|
const ATTACHMENTS_DIR = path.join(CCK_DIR, 'attachments');
|
|
124
|
+
const SHOW_DIR = path.join(CCK_DIR, 'show');
|
|
124
125
|
const PINS_FILE = path.join(CCK_DIR, 'pins.json');
|
|
125
126
|
const USER_GROUPS_FILE = path.join(CCK_DIR, 'groups.json');
|
|
126
127
|
const DISPATCHED_FILE = path.join(CCK_DIR, 'dispatched.json');
|
|
@@ -2581,6 +2582,12 @@ app.get('/api/sessions/:sessionId/agents', async (req, res) => {
|
|
|
2581
2582
|
}
|
|
2582
2583
|
}
|
|
2583
2584
|
|
|
2585
|
+
const subMetas = new Map();
|
|
2586
|
+
const subMeta = (jsonl) => {
|
|
2587
|
+
if (!subMetas.has(jsonl)) subMetas.set(jsonl, readSubagentMeta(jsonl));
|
|
2588
|
+
return subMetas.get(jsonl);
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2584
2591
|
// The plugin's start record carries the model; this covers sessions without it.
|
|
2585
2592
|
const agentsNeedingModel = agents.filter(a => !a.model && a.modelUnavailable !== MODEL_SCAN);
|
|
2586
2593
|
if (agentsNeedingModel.length && meta.jsonlPath) {
|
|
@@ -2598,7 +2605,7 @@ app.get('/api/sessions/:sessionId/agents', async (req, res) => {
|
|
|
2598
2605
|
// Until the transcript has an assistant line, show the requested alias.
|
|
2599
2606
|
// agent.model stays empty so the exact id is still looked up.
|
|
2600
2607
|
if (!agent.modelAlias) {
|
|
2601
|
-
let alias =
|
|
2608
|
+
let alias = subMeta(jsonl)?.model || null;
|
|
2602
2609
|
if (alias === 'inherit') {
|
|
2603
2610
|
try { alias = extractModelFromTranscript(meta.jsonlPath); } catch (_) { alias = null; }
|
|
2604
2611
|
}
|
|
@@ -2614,6 +2621,16 @@ app.get('/api/sessions/:sessionId/agents', async (req, res) => {
|
|
|
2614
2621
|
}
|
|
2615
2622
|
}
|
|
2616
2623
|
|
|
2624
|
+
if (meta.jsonlPath) {
|
|
2625
|
+
for (const agent of agents) {
|
|
2626
|
+
if (agent.parent !== undefined) continue;
|
|
2627
|
+
const sub = subMeta(subagentJsonlForExtraction(meta, agent.agentId));
|
|
2628
|
+
if (!sub && isAgentLive(agent)) continue;
|
|
2629
|
+
agent.parent = sub?.parentAgentId || null;
|
|
2630
|
+
dirty.add(agent);
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2617
2634
|
// Workflow-spawned subagents given a schema end on a forced StructuredOutput
|
|
2618
2635
|
// tool call (background subagents on SubagentHandback) and never emit a text
|
|
2619
2636
|
// lastMessage — surface that result as the agent's response.
|
|
@@ -3502,9 +3519,16 @@ const show = createShowStore({
|
|
|
3502
3519
|
onChange: saveTerminals,
|
|
3503
3520
|
onPosted: (e) => broadcast({ type: 'show:posted', ...e }),
|
|
3504
3521
|
startedSession: terminal.sessionOfTerminal,
|
|
3505
|
-
resolveDir: (id) =>
|
|
3522
|
+
resolveDir: (id) => (sessionMetaFor(id) ? path.join(SHOW_DIR, id) : null),
|
|
3523
|
+
// Claims go where the session can write without a prompt: its scratchpad as of its last process start.
|
|
3524
|
+
// The convention dir follows it, for claims made before Claude Code 2.1.317 moved the root.
|
|
3525
|
+
scratchpadDirs: (id) => {
|
|
3506
3526
|
const meta = sessionMetaFor(id);
|
|
3507
|
-
|
|
3527
|
+
if (!meta?.jsonlPath) return [];
|
|
3528
|
+
const recorded = getScratchpadDir(id, meta);
|
|
3529
|
+
const convention = getScratchpadDir(id, { ...meta, scratchpadDir: null });
|
|
3530
|
+
const dirs = [recorded, convention].filter(Boolean).map((dir) => path.join(dir, '.cck', 'show'));
|
|
3531
|
+
return [...new Set(dirs)];
|
|
3508
3532
|
},
|
|
3509
3533
|
});
|
|
3510
3534
|
mountShowRoutes(app, {
|
|
@@ -3591,6 +3615,16 @@ app.post('/api/dispatch', terminalRoute(async (req, res) => {
|
|
|
3591
3615
|
});
|
|
3592
3616
|
}));
|
|
3593
3617
|
|
|
3618
|
+
app.post('/api/dispatch/:id/child', (req, res) => {
|
|
3619
|
+
const { child } = req.body || {};
|
|
3620
|
+
if (typeof child !== 'boolean') return res.status(400).json({ error: 'child must be true or false' });
|
|
3621
|
+
const marker = dispatched.get(req.params.id);
|
|
3622
|
+
if (!marker) return res.status(404).json({ error: 'not a dispatched session' });
|
|
3623
|
+
if (child && !marker.parent) return res.status(400).json({ error: 'child needs a parent session' });
|
|
3624
|
+
if (dispatched.setChild(req.params.id, child)) broadcast({ type: 'dispatch-update' });
|
|
3625
|
+
res.json({ session: req.params.id, child });
|
|
3626
|
+
});
|
|
3627
|
+
|
|
3594
3628
|
app.get('/api/dispatch', (req, res) => {
|
|
3595
3629
|
res.setHeader('Cache-Control', 'no-store');
|
|
3596
3630
|
const parent = typeof req.query.parent === 'string' && req.query.parent ? req.query.parent : null;
|
|
@@ -4985,7 +5019,7 @@ async function cleanupAgentActivity() {
|
|
|
4985
5019
|
} catch { /* agent-activity dir may not exist */ }
|
|
4986
5020
|
}
|
|
4987
5021
|
|
|
4988
|
-
// Dispatch markers, pane layouts, add-on sessions, reviews, attachments, context status and worktrees: see docs/retention.md.
|
|
5022
|
+
// Dispatch markers, pane layouts, add-on sessions, reviews, attachments, show indexes, context status and worktrees: see docs/retention.md.
|
|
4989
5023
|
async function runRetention() {
|
|
4990
5024
|
try {
|
|
4991
5025
|
const scan = await scanTranscripts(PROJECTS_DIR);
|
|
@@ -4996,12 +5030,13 @@ async function runRetention() {
|
|
|
4996
5030
|
const addonSessions = addons.prune(opts);
|
|
4997
5031
|
const reviews = await pruneSessionDirs(REVIEW_DIR, opts);
|
|
4998
5032
|
const attachments = await pruneSessionDirs(ATTACHMENTS_DIR, opts);
|
|
5033
|
+
const shows = await pruneSessionDirs(SHOW_DIR, opts);
|
|
4999
5034
|
const contexts = await pruneContextStatus(CONTEXT_STATUS_DIR, opts);
|
|
5000
5035
|
const wts = worktrees.prune(scan?.dirs);
|
|
5001
5036
|
const taskMaps = await pruneTaskMaps(TASK_MAPS_DIR, opts);
|
|
5002
5037
|
const grouped = expireGroupMembers(scan?.ids);
|
|
5003
|
-
if (markers || layouts || addonSessions || reviews || attachments || contexts || wts || taskMaps || grouped.members) {
|
|
5004
|
-
console.log(`[retention] removed ${markers} dispatch markers, ${layouts} pane layouts, ${addonSessions} add-on sessions, ${reviews} reviews, ${attachments} attachments, ${contexts} context status files, ${wts} worktrees, ${taskMaps} task-list mappings, ${grouped.members} group members, ${grouped.groups} groups`);
|
|
5038
|
+
if (markers || layouts || addonSessions || reviews || attachments || shows || contexts || wts || taskMaps || grouped.members) {
|
|
5039
|
+
console.log(`[retention] removed ${markers} dispatch markers, ${layouts} pane layouts, ${addonSessions} add-on sessions, ${reviews} reviews, ${attachments} attachments, ${shows} show files, ${contexts} context status files, ${wts} worktrees, ${taskMaps} task-list mappings, ${grouped.members} group members, ${grouped.groups} groups`);
|
|
5005
5040
|
}
|
|
5006
5041
|
} catch (e) {
|
|
5007
5042
|
console.warn('[retention] failed:', e.message);
|