@codemem/server 0.20.0-alpha.7 → 0.20.0-alpha.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.
- package/package.json +2 -2
- package/static/app.js +15 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemem/server",
|
|
3
|
-
"version": "0.20.0-alpha.
|
|
3
|
+
"version": "0.20.0-alpha.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@hono/node-server": "^1.14.3",
|
|
19
19
|
"drizzle-orm": "^0.45.1",
|
|
20
20
|
"hono": "^4.7.10",
|
|
21
|
-
"@codemem/core": "^0.20.0-alpha.
|
|
21
|
+
"@codemem/core": "^0.20.0-alpha.8"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/better-sqlite3": "^7.6.13",
|
package/static/app.js
CHANGED
|
@@ -1542,36 +1542,36 @@
|
|
|
1542
1542
|
if (hasBacklog) {
|
|
1543
1543
|
recommendations.push({
|
|
1544
1544
|
label: "Pipeline needs attention. Check queue health first.",
|
|
1545
|
-
command: "
|
|
1545
|
+
command: "codemem db raw-events-status"
|
|
1546
1546
|
});
|
|
1547
1547
|
recommendations.push({
|
|
1548
1548
|
label: "Then retry failed batches for impacted sessions.",
|
|
1549
|
-
command: "
|
|
1549
|
+
command: "codemem db raw-events-retry <opencode_session_id>"
|
|
1550
1550
|
});
|
|
1551
1551
|
} else if (syncState === "stopped") recommendations.push({
|
|
1552
1552
|
label: "Sync daemon is stopped. Start the background service.",
|
|
1553
|
-
command: "
|
|
1553
|
+
command: "codemem sync start"
|
|
1554
1554
|
});
|
|
1555
1555
|
else if (!syncDisabled && !syncNoPeers && (syncState === "error" || syncState === "degraded")) {
|
|
1556
1556
|
recommendations.push({
|
|
1557
1557
|
label: "Sync is unhealthy. Restart and run one immediate pass.",
|
|
1558
|
-
command: "
|
|
1558
|
+
command: "codemem sync restart",
|
|
1559
1559
|
action: triggerSync$1,
|
|
1560
1560
|
actionLabel: "Sync now"
|
|
1561
1561
|
});
|
|
1562
1562
|
recommendations.push({
|
|
1563
1563
|
label: "Then run doctor to see root cause details.",
|
|
1564
|
-
command: "
|
|
1564
|
+
command: "codemem sync doctor"
|
|
1565
1565
|
});
|
|
1566
1566
|
} else if (!syncDisabled && !syncNoPeers && syncLooksStale) recommendations.push({
|
|
1567
1567
|
label: "Sync is stale. Run one immediate sync pass.",
|
|
1568
|
-
command: "
|
|
1568
|
+
command: "codemem sync once",
|
|
1569
1569
|
action: triggerSync$1,
|
|
1570
1570
|
actionLabel: "Sync now"
|
|
1571
1571
|
});
|
|
1572
1572
|
if (tagCoverage > 0 && tagCoverage < .7 && recommendations.length < 2) recommendations.push({
|
|
1573
1573
|
label: "Tag coverage is low. Preview backfill impact.",
|
|
1574
|
-
command: "
|
|
1574
|
+
command: "codemem db backfill-tags --dry-run"
|
|
1575
1575
|
});
|
|
1576
1576
|
renderActionList$1(healthActions, recommendations);
|
|
1577
1577
|
healthMeta.textContent = drivers.length ? `Why this status: ${drivers.join(", ")}.` : "Healthy right now. Diagnostics stay available if you want details.";
|
|
@@ -2023,24 +2023,24 @@
|
|
|
2023
2023
|
if (syncNoPeers) {} else if (daemonState === "offline-peers") {} else if (daemonState === "stopped") {
|
|
2024
2024
|
actions.push({
|
|
2025
2025
|
label: "Sync daemon is stopped. Start it.",
|
|
2026
|
-
command: "
|
|
2026
|
+
command: "codemem sync start"
|
|
2027
2027
|
});
|
|
2028
2028
|
actions.push({
|
|
2029
2029
|
label: "Then run one immediate sync pass.",
|
|
2030
|
-
command: "
|
|
2030
|
+
command: "codemem sync once"
|
|
2031
2031
|
});
|
|
2032
2032
|
} else if (syncError || pingError || daemonState === "error") {
|
|
2033
2033
|
actions.push({
|
|
2034
2034
|
label: "Sync reports errors. Restart now.",
|
|
2035
|
-
command: "
|
|
2035
|
+
command: "codemem sync restart && codemem sync once"
|
|
2036
2036
|
});
|
|
2037
2037
|
actions.push({
|
|
2038
2038
|
label: "Then run doctor for root cause.",
|
|
2039
|
-
command: "
|
|
2039
|
+
command: "codemem sync doctor"
|
|
2040
2040
|
});
|
|
2041
2041
|
} else if (!syncDisabled && !syncNoPeers && pending > 0) actions.push({
|
|
2042
2042
|
label: "Pending sync work detected. Run one pass now.",
|
|
2043
|
-
command: "
|
|
2043
|
+
command: "codemem sync once"
|
|
2044
2044
|
});
|
|
2045
2045
|
renderActionList(syncActions, actions);
|
|
2046
2046
|
}
|
|
@@ -2293,9 +2293,9 @@
|
|
|
2293
2293
|
const row = el("div", "sync-action");
|
|
2294
2294
|
const textWrap = el("div", "sync-action-text");
|
|
2295
2295
|
textWrap.textContent = "No devices are paired yet.";
|
|
2296
|
-
textWrap.appendChild(el("span", "sync-action-command", "
|
|
2296
|
+
textWrap.appendChild(el("span", "sync-action-command", "codemem sync pair --payload-only"));
|
|
2297
2297
|
const btn = el("button", "settings-button sync-action-copy", "Copy");
|
|
2298
|
-
btn.addEventListener("click", () => copyToClipboard("
|
|
2298
|
+
btn.addEventListener("click", () => copyToClipboard("codemem sync pair --payload-only", btn));
|
|
2299
2299
|
row.append(textWrap, btn);
|
|
2300
2300
|
actions.appendChild(row);
|
|
2301
2301
|
}
|
|
@@ -3206,7 +3206,7 @@
|
|
|
3206
3206
|
if (liveApplied.length) lines.push(`Live settings updated: ${joinPhrases(liveApplied)}.`);
|
|
3207
3207
|
if (sync.attempted && typeof sync.message === "string" && sync.message) lines.push(`Sync: ${sync.message}.`);
|
|
3208
3208
|
else if (Array.isArray(sync.affected_keys) && sync.affected_keys.length && typeof sync.reason === "string" && sync.reason) lines.push(`Sync: ${sync.reason}.`);
|
|
3209
|
-
if (restartRequired.length) lines.push(`
|
|
3209
|
+
if (restartRequired.length) lines.push(`Restart required for ${joinPhrases(restartRequired)}. Run: codemem serve restart`);
|
|
3210
3210
|
warnings.forEach((warning) => {
|
|
3211
3211
|
lines.push(warning);
|
|
3212
3212
|
});
|