@codemem/server 0.49.1 → 0.50.0-beta.2

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 (47) hide show
  1. package/dist/application/coordinator-maintenance.d.ts.map +1 -1
  2. package/dist/application/sync-health.d.ts +2 -0
  3. package/dist/application/sync-health.d.ts.map +1 -1
  4. package/dist/index.d.ts +8 -2
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +6953 -4700
  7. package/dist/index.js.map +1 -1
  8. package/dist/routes/device-block-action.d.ts +51 -0
  9. package/dist/routes/device-block-action.d.ts.map +1 -0
  10. package/dist/routes/device-block-enrolled.d.ts +58 -0
  11. package/dist/routes/device-block-enrolled.d.ts.map +1 -0
  12. package/dist/routes/device-block-removed.d.ts +57 -0
  13. package/dist/routes/device-block-removed.d.ts.map +1 -0
  14. package/dist/routes/device-rejoin-events.d.ts +47 -0
  15. package/dist/routes/device-rejoin-events.d.ts.map +1 -0
  16. package/dist/routes/device-rejoin-evidence.d.ts +6 -0
  17. package/dist/routes/device-rejoin-evidence.d.ts.map +1 -0
  18. package/dist/routes/device-removal-commit.d.ts +38 -0
  19. package/dist/routes/device-removal-commit.d.ts.map +1 -0
  20. package/dist/routes/device-removal-local.d.ts +41 -0
  21. package/dist/routes/device-removal-local.d.ts.map +1 -0
  22. package/dist/routes/device-removal-lookup.d.ts +37 -0
  23. package/dist/routes/device-removal-lookup.d.ts.map +1 -0
  24. package/dist/routes/device-removal-progress.d.ts +14 -0
  25. package/dist/routes/device-removal-progress.d.ts.map +1 -0
  26. package/dist/routes/device-removal-review.d.ts +126 -0
  27. package/dist/routes/device-removal-review.d.ts.map +1 -0
  28. package/dist/routes/device-rename.d.ts +16 -8
  29. package/dist/routes/device-rename.d.ts.map +1 -1
  30. package/dist/routes/device-retire.d.ts +206 -0
  31. package/dist/routes/device-retire.d.ts.map +1 -0
  32. package/dist/routes/memory-tools.d.ts.map +1 -1
  33. package/dist/routes/project-withdrawal.d.ts +4 -0
  34. package/dist/routes/project-withdrawal.d.ts.map +1 -0
  35. package/dist/routes/sync.d.ts +68 -5
  36. package/dist/routes/sync.d.ts.map +1 -1
  37. package/dist/routes/team-create.d.ts +5 -0
  38. package/dist/routes/team-create.d.ts.map +1 -0
  39. package/dist/routes/team-setup-view.d.ts +5 -0
  40. package/dist/routes/team-setup-view.d.ts.map +1 -1
  41. package/dist/routes/team-setup.d.ts +4 -1
  42. package/dist/routes/team-setup.d.ts.map +1 -1
  43. package/package.json +3 -2
  44. package/static/app.js +65 -63
  45. package/static/app.js.br +0 -0
  46. package/static/app.js.gz +0 -0
  47. package/static/index.html +149 -17
package/static/app.js.br CHANGED
Binary file
package/static/app.js.gz CHANGED
Binary file
package/static/index.html CHANGED
@@ -120,7 +120,7 @@
120
120
  z-index: 10;
121
121
  padding: var(--sp-4) var(--sp-6);
122
122
  border-bottom: 1px solid var(--border);
123
- background: color-mix(in srgb, var(--surface-1) 86%, transparent);
123
+ background: color-mix(in srgb, var(--surface-1) 96%, transparent);
124
124
  backdrop-filter: blur(14px) saturate(1.2);
125
125
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
126
126
  }
@@ -246,6 +246,7 @@
246
246
  .operation-status-detail { color: var(--text-secondary); }
247
247
  .operation-status > button { flex-shrink: 0; }
248
248
  .operation-status[data-tone="warning"] { border-color: var(--status-degraded); }
249
+ #devices-commit-status[data-tone="warning"] { color: var(--status-degraded); }
249
250
 
250
251
  /* ── Tab bar ───────────────────────────────────────────── */
251
252
 
@@ -253,7 +254,7 @@
253
254
  display: flex;
254
255
  gap: 2px;
255
256
  padding: 0 var(--sp-6);
256
- background: color-mix(in srgb, var(--surface-1) 55%, transparent);
257
+ background: color-mix(in srgb, var(--surface-1) 94%, transparent);
257
258
  backdrop-filter: blur(10px) saturate(1.2);
258
259
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
259
260
  border-bottom: 1px solid var(--border);
@@ -320,6 +321,15 @@
320
321
  flex-direction: column;
321
322
  gap: var(--sp-5);
322
323
  }
324
+ /* The Projects table needs more width than card layouts to keep each cell on one line. */
325
+ #tab-projects { max-width: 1280px; }
326
+ /* The review card and the Team setup card share this mount, so it applies the panel gap.
327
+ Hidden cards leave the flow, which keeps an empty gap from appearing. */
328
+ #recipientPolicyReviewMount {
329
+ display: flex;
330
+ flex-direction: column;
331
+ gap: var(--sp-5);
332
+ }
323
333
  /* Sync tab wraps its cards in #syncMainView / #syncDiagnosticsView
324
334
  sub-view containers, which breaks the .tab-panel flex gap inheritance.
325
335
  Restore the gap inside each sub-view so Sync cards match the Feed
@@ -823,6 +833,7 @@
823
833
  gap: var(--sp-2);
824
834
  align-items: center;
825
835
  }
836
+ .section-actions > .section-meta { margin-bottom: 0; }
826
837
 
827
838
  /* Utility link that navigates between sibling sub-surfaces (e.g.
828
839
  main Sync view ↔ diagnostics sub-view). One treatment used for
@@ -1306,9 +1317,9 @@
1306
1317
  .project-inventory-table td { padding: 0; text-align: left; font-weight: inherit; }
1307
1318
  .project-inventory-table-row {
1308
1319
  display: grid;
1309
- grid-template-columns: 28px minmax(0, 1fr) 72px 72px 120px minmax(0, 130px) 180px;
1320
+ grid-template-columns: 28px minmax(0, 1fr) 76px 76px 92px minmax(0, 220px) 212px;
1310
1321
  align-items: center;
1311
- column-gap: var(--sp-3);
1322
+ column-gap: var(--sp-4);
1312
1323
  min-width: 0;
1313
1324
  }
1314
1325
  .project-inventory-table-header {
@@ -1331,16 +1342,81 @@
1331
1342
  .project-inventory-project-cell { display: flex; flex-direction: column; gap: var(--sp-1); }
1332
1343
  .project-inventory-title { overflow-wrap: anywhere; color: var(--text-primary); font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); }
1333
1344
  .project-inventory-signal { overflow: hidden; color: var(--text-tertiary); font-size: var(--font-size-xs); text-overflow: ellipsis; white-space: nowrap; }
1334
- .project-inventory-number { font-variant-numeric: tabular-nums; }
1335
- .project-inventory-latest { color: var(--text-secondary); }
1345
+ .project-inventory-table .project-inventory-number,
1346
+ .project-inventory-table-header > th:nth-child(3),
1347
+ .project-inventory-table-header > th:nth-child(4) { font-variant-numeric: tabular-nums; text-align: right; }
1348
+ .project-inventory-latest { color: var(--text-secondary); white-space: nowrap; }
1336
1349
  .project-inventory-badges { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
1337
1350
  .project-inventory-badges:empty { display: none; }
1338
1351
  .project-inventory-row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
1352
+ .project-details-toggle {
1353
+ display: inline-flex;
1354
+ align-items: center;
1355
+ justify-content: center;
1356
+ flex: 0 0 auto;
1357
+ width: 28px;
1358
+ height: 28px;
1359
+ padding: 0;
1360
+ border: 0;
1361
+ border-radius: var(--radius-sm);
1362
+ background: none;
1363
+ color: var(--text-tertiary);
1364
+ cursor: pointer;
1365
+ }
1366
+ .project-details-toggle:hover { background: var(--surface-2); color: var(--text-primary); }
1367
+ .project-details-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1368
+ .project-details-toggle::before {
1369
+ content: "";
1370
+ width: 7px;
1371
+ height: 7px;
1372
+ margin-top: -3px;
1373
+ border-right: 2px solid currentColor;
1374
+ border-bottom: 2px solid currentColor;
1375
+ transform: rotate(45deg);
1376
+ transition: transform var(--duration-fast) var(--ease-standard);
1377
+ }
1378
+ .project-details-toggle[data-open="true"]::before { margin-top: 3px; transform: rotate(225deg); }
1379
+ .project-worktrees-toggle {
1380
+ display: inline-flex;
1381
+ align-items: center;
1382
+ gap: var(--sp-1);
1383
+ min-height: 24px;
1384
+ padding: 0 var(--sp-2) 0 var(--sp-1);
1385
+ border: 1px solid var(--border);
1386
+ border-radius: var(--radius-pill);
1387
+ background: var(--surface-2);
1388
+ color: var(--text-secondary);
1389
+ font: inherit;
1390
+ font-size: var(--font-size-xs);
1391
+ cursor: pointer;
1392
+ }
1393
+ .project-worktrees-toggle::before {
1394
+ content: "";
1395
+ width: 0;
1396
+ height: 0;
1397
+ margin-inline: var(--sp-1) 2px;
1398
+ border-block: 4px solid transparent;
1399
+ border-inline-start: 5px solid currentColor;
1400
+ transition: transform var(--duration-fast) var(--ease-standard);
1401
+ }
1402
+ .project-worktrees-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
1403
+ .project-worktrees-toggle:hover { border-color: var(--control-hover-border); color: var(--text-primary); }
1404
+ .project-worktrees-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1339
1405
  .project-inventory-row-actions .settings-button { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
1340
1406
  .project-row-menu { flex: 0 0 auto; }
1341
1407
  .project-inventory-details { background: var(--surface-2); }
1342
1408
  .project-inventory-details-row,
1343
1409
  .project-inventory-details-cell { display: block; min-width: 0; }
1410
+ .project-inventory-details-cell > .project-inventory-details:not([open]) > summary:not(:focus-visible) {
1411
+ position: absolute;
1412
+ width: 1px;
1413
+ height: 1px;
1414
+ margin: -1px;
1415
+ padding: 0;
1416
+ overflow: hidden;
1417
+ clip-path: inset(50%);
1418
+ white-space: nowrap;
1419
+ }
1344
1420
  .project-inventory-details > summary {
1345
1421
  display: flex;
1346
1422
  align-items: center;
@@ -1372,8 +1448,6 @@
1372
1448
  .projects-pagination { margin-top: var(--sp-4); }
1373
1449
  .project-selection-control { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; cursor: pointer; }
1374
1450
  .project-selection-checkbox { width: 18px; height: 18px; }
1375
- .project-recipient-summary { min-width: 0; }
1376
- .project-recipient-status { color: var(--text-secondary); font-size: var(--font-size-sm); }
1377
1451
  .project-inventory-child-row { padding-left: var(--sp-5); }
1378
1452
  .project-cluster-entries-row:not([hidden]),
1379
1453
  .project-cluster-entries-row > td { display: block; }
@@ -1496,17 +1570,21 @@
1496
1570
  cursor: pointer;
1497
1571
  }
1498
1572
  .project-selection-checkbox { width: 18px; height: 18px; }
1499
- .project-recipient-summary { margin-top: var(--sp-3); }
1500
- .project-recipient-status { color: var(--text-secondary); font-size: var(--font-size-sm); }
1573
+ .project-recipient-status { color: var(--text-tertiary); font-size: var(--font-size-sm); }
1501
1574
  .project-recipient-chips {
1502
1575
  display: flex;
1503
1576
  flex-wrap: wrap;
1504
- gap: var(--sp-2);
1577
+ gap: var(--sp-1) var(--sp-2);
1578
+ min-width: 0;
1505
1579
  padding: 0;
1506
- margin: var(--sp-2) 0 0;
1580
+ margin: 0;
1507
1581
  list-style: none;
1508
1582
  }
1583
+ .project-recipient { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--sp-2); min-width: 0; max-width: 100%; }
1584
+ .project-recipient:has(.project-recipient-coverage) { flex-basis: 100%; }
1585
+ .project-recipient-coverage { color: var(--text-secondary); font-size: var(--font-size-xs); white-space: nowrap; }
1509
1586
  .project-recipient-chip {
1587
+ max-width: 100%;
1510
1588
  overflow: hidden;
1511
1589
  padding: 3px 9px;
1512
1590
  border: 1px solid var(--border);
@@ -1519,16 +1597,54 @@
1519
1597
  }
1520
1598
  .project-advanced-administration { margin-top: var(--sp-3); }
1521
1599
  .project-advanced-surface summary,
1600
+ .removed-devices > summary,
1522
1601
  .advanced-administration-disclosure > summary {
1523
1602
  cursor: pointer;
1524
1603
  color: var(--text-primary);
1525
1604
  font-weight: var(--font-weight-semibold);
1526
1605
  }
1606
+ .removed-devices-status { margin: var(--sp-3) 0 0; color: var(--text-secondary); font-size: var(--font-size-sm); }
1607
+ .removed-devices-status p { margin: 0 0 var(--sp-2); }
1608
+ .removed-devices-list {
1609
+ margin: var(--sp-3) 0 0;
1610
+ padding: 0;
1611
+ overflow: hidden;
1612
+ border: 1px solid var(--border);
1613
+ border-radius: var(--radius-md);
1614
+ list-style: none;
1615
+ }
1616
+ .removed-devices-row {
1617
+ display: flex;
1618
+ align-items: center;
1619
+ justify-content: space-between;
1620
+ gap: var(--sp-4);
1621
+ padding: var(--sp-3) var(--sp-4);
1622
+ background: var(--surface-1);
1623
+ }
1624
+ .removed-devices-row + .removed-devices-row { border-top: 1px solid var(--border); }
1625
+ .removed-devices-identity { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
1626
+ .removed-devices-group { color: var(--text-tertiary); font-size: var(--font-size-sm); }
1627
+ .removed-devices-action { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: var(--sp-1); }
1628
+ .removed-devices-failure { max-width: 36ch; color: var(--text-secondary); font-size: var(--font-size-sm); text-align: right; }
1629
+ @media (max-width: 720px) {
1630
+ .removed-devices-row { align-items: flex-start; flex-direction: column; gap: var(--sp-2); }
1631
+ .removed-devices-action { align-items: flex-start; }
1632
+ .removed-devices-failure { text-align: left; }
1633
+ }
1527
1634
  .recipient-policy-management-dialog .modal-card { width: min(720px, calc(100vw - 32px)); }
1528
1635
  .recipient-policy-team-settings-dialog .modal-card { width: min(440px, calc(100vw - 32px)); }
1529
1636
  .recipient-policy-team-settings-dialog .form-field { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
1530
1637
  .recipient-policy-team-settings-dialog .form-field span { font-weight: var(--font-weight-semibold); }
1531
1638
  .recipient-policy-team-settings-dialog input { width: 100%; }
1639
+ .recipient-policy-team-create { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-4); }
1640
+ .recipient-policy-team-create p { margin: 0; flex: 1 1 280px; }
1641
+ .recipient-policy-person-settings-dialog section { display: grid; gap: var(--sp-2); justify-items: start; }
1642
+ .recipient-policy-person-settings-dialog section + section { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
1643
+ .recipient-policy-person-settings-dialog section h3 { margin: 0; }
1644
+ .recipient-policy-person-settings-dialog section p { margin: 0; }
1645
+ .recipient-policy-person-settings-dialog .form-field { width: 100%; margin-top: var(--sp-2); }
1646
+ .recipient-policy-person-settings-dialog select { width: 100%; }
1647
+ .recipient-policy-person-settings-dialog section .recipient-policy-team-settings-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
1532
1648
  .recipient-policy-team-settings-actions { justify-content: flex-end; flex-wrap: wrap; }
1533
1649
  .legacy-team-setup-dialog .modal-card { width: min(680px, calc(100vw - 32px)); }
1534
1650
  .legacy-team-setup-steps {
@@ -1835,13 +1951,14 @@
1835
1951
  }
1836
1952
  .recipient-policy-sharing-toolbar label { flex: 1; }
1837
1953
  .recipient-policy-sharing-toolbar input { width: 100%; }
1954
+ .recipient-policy-sharing-received-note { max-width: 78ch; margin: 0 0 var(--sp-3); color: var(--text-secondary); }
1838
1955
  .recipient-policy-sharing-received-table { display: block; width: 100%; overflow: hidden; border: 1px solid var(--border); border-spacing: 0; border-radius: var(--radius-md); }
1839
1956
  .recipient-policy-sharing-received-table thead,
1840
1957
  .recipient-policy-sharing-received-table tbody { display: block; }
1841
1958
  .recipient-policy-sharing-received-head,
1842
1959
  .recipient-policy-sharing-received-row {
1843
1960
  display: grid;
1844
- grid-template-columns: minmax(0, 1fr) 180px 190px 170px;
1961
+ grid-template-columns: minmax(0, 1fr) minmax(0, 200px) 88px 112px 200px;
1845
1962
  gap: var(--sp-4);
1846
1963
  align-items: center;
1847
1964
  padding: var(--sp-3) var(--sp-4);
@@ -1857,10 +1974,19 @@
1857
1974
  .recipient-policy-sharing-received-row { border-top: 1px solid var(--border); background: var(--surface-1); }
1858
1975
  .recipient-policy-sharing-received-row > * { min-width: 0; overflow-wrap: anywhere; }
1859
1976
  .recipient-policy-sharing-received-row td { min-width: 0; padding: 0; color: var(--text-secondary); text-align: left; }
1860
- .recipient-policy-sharing-received-row td:first-child { color: var(--text-primary); }
1977
+ .recipient-policy-sharing-received-row td:first-child { display: grid; gap: 2px; color: var(--text-primary); }
1978
+ .recipient-policy-sharing-received-signal { overflow: hidden; color: var(--text-tertiary); font-size: var(--font-size-xs); text-overflow: ellipsis; white-space: nowrap; }
1861
1979
  .recipient-policy-sharing-received-head th { min-width: 0; padding: 0; text-align: left; }
1862
1980
  .recipient-policy-sharing-received-head th:nth-child(n + 3),
1863
1981
  .recipient-policy-sharing-received-row td:nth-child(n + 3) { text-align: right; }
1982
+ .received-project-on-this-device {
1983
+ display: flex;
1984
+ flex-wrap: wrap;
1985
+ align-items: center;
1986
+ justify-content: flex-end;
1987
+ gap: var(--sp-2);
1988
+ }
1989
+ .received-project-on-this-device .recipient-policy-sharing-error { flex-basis: 100%; margin: 0; text-align: left; }
1864
1990
  .recipient-policy-sharing-pointer { display: inline-block; margin-top: var(--sp-3); }
1865
1991
  .recipient-policy-sharing-card,
1866
1992
  .recipient-policy-sharing-card-title,
@@ -2198,6 +2324,9 @@
2198
2324
  .device-sync-direction-details h4 { margin: 0 0 var(--sp-2); color: var(--text-primary); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
2199
2325
  .device-sync-direction-details dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--sp-2); }
2200
2326
  .device-sync-direction-details dd { margin: 0; color: var(--text-primary); font-variant-numeric: tabular-nums; }
2327
+ @media (max-width: 1180px) and (min-width: 901px) {
2328
+ .project-inventory-table-row { grid-template-columns: 28px minmax(0, 1fr) 64px 64px 84px minmax(0, 150px) 200px; }
2329
+ }
2201
2330
  @media (max-width: 1100px) and (min-width: 901px) {
2202
2331
  .devices-table-head, .devices-table-row { grid-template-columns: 16px minmax(110px, 1fr) 92px 56px minmax(280px, 1.6fr) 36px; column-gap: var(--sp-3); }
2203
2332
  }
@@ -2249,8 +2378,10 @@
2249
2378
  text-transform: uppercase;
2250
2379
  }
2251
2380
  .recipient-policy-sharing-received-row td:nth-child(n + 3) { text-align: left; }
2381
+ .received-project-on-this-device { justify-content: flex-start; }
2252
2382
  .project-inventory-table-header { display: none; }
2253
2383
  .project-inventory-table-row { grid-template-columns: 28px minmax(0, 1fr) auto; row-gap: var(--sp-3); }
2384
+ .project-inventory-table .project-inventory-number { text-align: left; }
2254
2385
  .project-inventory-select-cell { grid-column: 1; grid-row: 1; }
2255
2386
  .project-inventory-project-cell { grid-column: 2; grid-row: 1; }
2256
2387
  .project-inventory-row-actions { grid-column: 3; grid-row: 1; flex-wrap: wrap; }
@@ -5183,7 +5314,7 @@
5183
5314
  <div class="section-header">
5184
5315
  <h2>Projects</h2>
5185
5316
  <div class="section-actions project-selection-actions">
5186
- <span class="section-meta" id="projectsSelectionStatus" role="status" aria-live="polite">0 Projects selected.</span>
5317
+ <span class="section-meta" id="projectsSelectionStatus" role="status" aria-live="polite">No Projects selected</span>
5187
5318
  <button class="settings-button project-selection-target" id="projectsShareSelected" type="button" disabled>Add Teams or Identities</button>
5188
5319
  </div>
5189
5320
  </div>
@@ -5224,6 +5355,7 @@
5224
5355
  <!-- ── Tab: Devices ────────────────────────────────────── -->
5225
5356
  <div class="tab-panel" id="tab-devices" hidden>
5226
5357
  <div class="card" id="devicesMount"></div>
5358
+ <div id="removedDevicesMount"></div>
5227
5359
  </div>
5228
5360
 
5229
5361
  <!-- ── Tab: Advanced ───────────────────────────────────── -->
@@ -5325,7 +5457,7 @@
5325
5457
  <button class="settings-button" id="syncActorCreateButton">Create person</button>
5326
5458
  </div>
5327
5459
  <div class="actor-list" id="syncActorsList"></div>
5328
- <div class="sync-skeleton" id="syncActorsSkeleton" role="status" aria-label="Loading actors">
5460
+ <div class="sync-skeleton" id="syncActorsSkeleton" role="status" aria-label="Loading people">
5329
5461
  <div class="sync-skeleton-line long"></div>
5330
5462
  <div class="sync-skeleton-line medium"></div>
5331
5463
  </div>
@@ -5399,6 +5531,6 @@
5399
5531
  </div>
5400
5532
  </div>
5401
5533
 
5402
- <script src="/assets/app.js?v=e6ae4b5a3f43"></script>
5534
+ <script src="/assets/app.js?v=00e4d62a120e"></script>
5403
5535
  </body>
5404
5536
  </html>