@wrongstack/webui-server 0.302.2 → 0.303.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/dist/index.js +343 -187
- package/dist/server/agent-roster-handlers.d.ts +7 -6
- package/dist/server/codemap-cache.d.ts +13 -1
- package/dist/server/entry.js +325 -185
- package/dist/server/handlers/worklist-handlers.d.ts +23 -4
- package/dist/server/handlers.js +126 -23
- package/dist/server/kanban-route-protocol.d.ts +1 -1
- package/dist/server/kanban-routes.d.ts +2 -2
- package/dist/server/server-runtime.d.ts +14 -2
- package/package.json +11 -11
|
@@ -44,18 +44,19 @@ export interface AgentRosterHandlerOptions {
|
|
|
44
44
|
* clients refresh the affected roster card without a manual reload.
|
|
45
45
|
*/
|
|
46
46
|
broadcast?: (msg: WSServerMessage) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Live read of `fleet.learning.autoOptimize`. Optional: without it the
|
|
49
|
+
* status endpoint reports the built-in defaults, which is still the right
|
|
50
|
+
* answer for a host that never overrode them.
|
|
51
|
+
*/
|
|
52
|
+
getAutoOptimizeSettings?: (() => Record<string, unknown> | undefined) | undefined;
|
|
47
53
|
}
|
|
48
54
|
export declare class AgentRosterWSHandler {
|
|
49
55
|
private readonly getProjectRoot;
|
|
50
56
|
private readonly getLlm;
|
|
51
57
|
private readonly broadcast;
|
|
58
|
+
private readonly getAutoOptimizeSettings;
|
|
52
59
|
constructor(opts: AgentRosterHandlerOptions);
|
|
53
|
-
/**
|
|
54
|
-
* Run the consolidation LLM synthesis headlessly and return the cleaned
|
|
55
|
-
* document text. Returns undefined when no LLM is available so the caller
|
|
56
|
-
* can fall back to the instruction-only path.
|
|
57
|
-
*/
|
|
58
|
-
private synthesizeConsolidation;
|
|
59
60
|
/** Handle an incoming client message. Returns a response payload. */
|
|
60
61
|
handleMessage(_ws: WebSocket, type: string, payload: unknown): Promise<WSServerMessage>;
|
|
61
62
|
}
|
|
@@ -3,7 +3,19 @@ export interface CodemapCacheEntry {
|
|
|
3
3
|
/** Pre-serialized JSON body — avoids re-stringify on cache hits. */
|
|
4
4
|
body: string;
|
|
5
5
|
}
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Filesystem fingerprint of the index DB used as the cache generation key.
|
|
8
|
+
*
|
|
9
|
+
* The index uses WAL mode (`PRAGMA journal_mode = WAL`), so indexer writes land
|
|
10
|
+
* in `index.db-wal` and only move into `index.db` on a checkpoint. Fingerprinting
|
|
11
|
+
* `index.db` alone returns the same mtime/size across an entire indexing run,
|
|
12
|
+
* which makes a stale empty-graph response cached before the first successful
|
|
13
|
+
* index look like a permanent cache hit — the CodeMap canvas shows
|
|
14
|
+
* "No indexed nodes at this level" indefinitely.
|
|
15
|
+
*
|
|
16
|
+
* Including the WAL file's mtime/size (and falling back gracefully when no WAL
|
|
17
|
+
* exists yet) ensures the fingerprint changes as soon as the indexer writes.
|
|
18
|
+
*/
|
|
7
19
|
export declare function indexDbVersion(projectRoot: string, indexDir?: string): string;
|
|
8
20
|
export declare function codemapCacheKey(projectRoot: string, indexDir: string | undefined, scope: string): string;
|
|
9
21
|
export declare function getCachedCodemapBody(key: string, version: string): string | undefined;
|