@wrongstack/tui 0.296.3 → 0.296.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections-health.d.ts","sourceRoot":"","sources":["../src/connections-health.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"connections-health.d.ts","sourceRoot":"","sources":["../src/connections-health.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAgBH,MAAM,MAAM,sBAAsB,GAC9B,SAAS,GACT,UAAU,GACV,SAAS,GACT,aAAa,GACb,OAAO,CAAC;AAEZ,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,WAAW,GAAG,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,sBAAsB,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,SAAS,CAAC;IAC7E,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAC1C,QAAQ,EAAE,uBAAuB,EAAE,CAAC;CACrC;AAED,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAepG"}
|
|
@@ -25,7 +25,6 @@ export declare class HistoryArchive {
|
|
|
25
25
|
/** Byte-offset index: index → { offset, length }. Built on first load. */
|
|
26
26
|
private index;
|
|
27
27
|
/** Total entries written so far (monotonic counter). */
|
|
28
|
-
private entryCount;
|
|
29
28
|
private writeChain;
|
|
30
29
|
private drainToken;
|
|
31
30
|
constructor(sessionDir: string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-archive.d.ts","sourceRoot":"","sources":["../src/history-archive.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,8DAA8D;AAC9D,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,+DAA+D;AAC/D,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAsBrC;;;;;;;;;;;;;;GAcG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,MAAM,CAAS;IAEvB,0EAA0E;IAC1E,OAAO,CAAC,KAAK,CAAmC;IAChD,wDAAwD;
|
|
1
|
+
{"version":3,"file":"history-archive.d.ts","sourceRoot":"","sources":["../src/history-archive.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,8DAA8D;AAC9D,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,+DAA+D;AAC/D,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAsBrC;;;;;;;;;;;;;;GAcG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,MAAM,CAAS;IAEvB,0EAA0E;IAC1E,OAAO,CAAC,KAAK,CAAmC;IAChD,wDAAwD;IAGxD,OAAO,CAAC,UAAU,CAAoC;IACtD,OAAO,CAAC,UAAU,CAA2B;IAE7C,YAAY,UAAU,EAAE,MAAM,EAE7B;IAED;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAIhC;IAED;;;;;;OAMG;IACG,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CA2B1E;IAED,6CAA6C;IAC7C,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAa3B;YAIa,UAAU;IAOxB;;;;OAIG;YACW,UAAU;IA8BxB,iFAAiF;IACjF,OAAO,CAAC,YAAY;CAkCrB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE7D"}
|
package/dist/index.js
CHANGED
|
@@ -27463,7 +27463,7 @@ function parseMeta(meta) {
|
|
|
27463
27463
|
}
|
|
27464
27464
|
function parseSageMemoryLine(line) {
|
|
27465
27465
|
const match = SAGE_MEMORY_DETAIL.exec(line);
|
|
27466
|
-
if (!match
|
|
27466
|
+
if (!match?.groups) return null;
|
|
27467
27467
|
const rawLabels = match.groups["labels"] ?? "";
|
|
27468
27468
|
const labels = Array.from(rawLabels.matchAll(/\[([^\]]+)\]/g)).map((m) => m[1] ?? "").filter(Boolean);
|
|
27469
27469
|
return {
|
|
@@ -29092,7 +29092,11 @@ import {
|
|
|
29092
29092
|
import { resolveWstackPaths as resolveWstackPaths5 } from "@wrongstack/core/utils";
|
|
29093
29093
|
import { getKanbanServerConnection } from "@wrongstack/kanban";
|
|
29094
29094
|
import { isSageProjectServerAvailable, SageProjectServerConnection } from "@wrongstack/sage";
|
|
29095
|
-
import {
|
|
29095
|
+
import {
|
|
29096
|
+
checkCodebaseIndexServerHealth,
|
|
29097
|
+
getIndexState as getIndexState2,
|
|
29098
|
+
resolveProjectIndexDaemonAvailability
|
|
29099
|
+
} from "@wrongstack/tools";
|
|
29096
29100
|
async function collectConnectionsHealth(projectRoot) {
|
|
29097
29101
|
const services = await Promise.all([
|
|
29098
29102
|
chronicleHealth(projectRoot),
|
|
@@ -29138,6 +29142,19 @@ async function chronicleHealth(projectRoot) {
|
|
|
29138
29142
|
}
|
|
29139
29143
|
async function codebaseIndexHealth(projectRoot) {
|
|
29140
29144
|
const startedAt = Date.now();
|
|
29145
|
+
const availability = resolveProjectIndexDaemonAvailability(projectRoot);
|
|
29146
|
+
if (availability.kind === "endpoint-invalid") {
|
|
29147
|
+
return {
|
|
29148
|
+
id: "codebase-index",
|
|
29149
|
+
label: "Codebase index",
|
|
29150
|
+
status: "unavailable",
|
|
29151
|
+
required: false,
|
|
29152
|
+
mode: "endpoint-invalid",
|
|
29153
|
+
detail: `Socket path is ${availability.byteLength} bytes \u2014 over this platform's ${availability.maxBytes}-byte sun_path limit. Queries fall back to a process-local index. Set a shorter TMPDIR to restore the shared daemon.`,
|
|
29154
|
+
endpoint: availability.endpoint,
|
|
29155
|
+
latencyMs: Date.now() - startedAt
|
|
29156
|
+
};
|
|
29157
|
+
}
|
|
29141
29158
|
try {
|
|
29142
29159
|
const health2 = await checkCodebaseIndexServerHealth(projectRoot, void 0, { timeoutMs: 2e3 });
|
|
29143
29160
|
const connection = getIndexState2().server;
|