@threadbase-sh/streamer 1.36.0 → 1.36.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.
- package/dist/cli.cjs +621 -372
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +328 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +313 -72
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -301,6 +301,16 @@ interface SessionResponse {
|
|
|
301
301
|
pid?: number;
|
|
302
302
|
sessionName?: string;
|
|
303
303
|
model?: string;
|
|
304
|
+
/**
|
|
305
|
+
* Reasoning-effort tier scraped from the live PTY status line (e.g. "high").
|
|
306
|
+
* Live sessions only — absent for historical/resumable conversations.
|
|
307
|
+
*/
|
|
308
|
+
effort?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Active permission mode from the live PTY status line (e.g. "accept edits on").
|
|
311
|
+
* Live sessions only.
|
|
312
|
+
*/
|
|
313
|
+
permissionMode?: string;
|
|
304
314
|
account?: string;
|
|
305
315
|
messageCount?: number;
|
|
306
316
|
preview?: string;
|
|
@@ -1032,7 +1042,7 @@ type ApiDeps = {
|
|
|
1032
1042
|
handleSessionsCount: (res: ServerResponse) => void;
|
|
1033
1043
|
handleGetRecentSessions: (url: URL, res: ServerResponse) => void;
|
|
1034
1044
|
handleGetSessionNames: (res: ServerResponse) => void;
|
|
1035
|
-
handleGetSession: (sessionId: string, res: ServerResponse) => void
|
|
1045
|
+
handleGetSession: (sessionId: string, res: ServerResponse) => Promise<void>;
|
|
1036
1046
|
handleGetOutput: (sessionId: string, res: ServerResponse) => void;
|
|
1037
1047
|
handleSendInput: (sessionId: string, req: IncomingMessage, res: ServerResponse) => Promise<void>;
|
|
1038
1048
|
handleSendAnswer: (sessionId: string, req: IncomingMessage, res: ServerResponse) => Promise<void>;
|
|
@@ -1275,6 +1285,15 @@ declare class StreamerServer {
|
|
|
1275
1285
|
private checkExchangeRateLimit;
|
|
1276
1286
|
private checkSessionStartRateLimit;
|
|
1277
1287
|
private checkSessionInputRateLimit;
|
|
1288
|
+
/** Project roots watched for conversation JSONLs (profiles or ~/.claude/projects). */
|
|
1289
|
+
private projectsDirsForFreshnessCheck;
|
|
1290
|
+
/**
|
|
1291
|
+
* Full-glob scan + cache upsert/delete reconcile. Used by ?refresh=1 and by
|
|
1292
|
+
* the automatic freshness path when the directory watcher marked the scanner
|
|
1293
|
+
* stale or shouldRefreshProjectsFromHdd detected disk drift.
|
|
1294
|
+
*/
|
|
1295
|
+
private reconcileConversationsCacheFromDisk;
|
|
1296
|
+
private shouldAutoReconcileConversationList;
|
|
1278
1297
|
private handleListConversations;
|
|
1279
1298
|
private handleConversationsCount;
|
|
1280
1299
|
private refreshCountInBackground;
|
package/dist/index.d.ts
CHANGED
|
@@ -301,6 +301,16 @@ interface SessionResponse {
|
|
|
301
301
|
pid?: number;
|
|
302
302
|
sessionName?: string;
|
|
303
303
|
model?: string;
|
|
304
|
+
/**
|
|
305
|
+
* Reasoning-effort tier scraped from the live PTY status line (e.g. "high").
|
|
306
|
+
* Live sessions only — absent for historical/resumable conversations.
|
|
307
|
+
*/
|
|
308
|
+
effort?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Active permission mode from the live PTY status line (e.g. "accept edits on").
|
|
311
|
+
* Live sessions only.
|
|
312
|
+
*/
|
|
313
|
+
permissionMode?: string;
|
|
304
314
|
account?: string;
|
|
305
315
|
messageCount?: number;
|
|
306
316
|
preview?: string;
|
|
@@ -1032,7 +1042,7 @@ type ApiDeps = {
|
|
|
1032
1042
|
handleSessionsCount: (res: ServerResponse) => void;
|
|
1033
1043
|
handleGetRecentSessions: (url: URL, res: ServerResponse) => void;
|
|
1034
1044
|
handleGetSessionNames: (res: ServerResponse) => void;
|
|
1035
|
-
handleGetSession: (sessionId: string, res: ServerResponse) => void
|
|
1045
|
+
handleGetSession: (sessionId: string, res: ServerResponse) => Promise<void>;
|
|
1036
1046
|
handleGetOutput: (sessionId: string, res: ServerResponse) => void;
|
|
1037
1047
|
handleSendInput: (sessionId: string, req: IncomingMessage, res: ServerResponse) => Promise<void>;
|
|
1038
1048
|
handleSendAnswer: (sessionId: string, req: IncomingMessage, res: ServerResponse) => Promise<void>;
|
|
@@ -1275,6 +1285,15 @@ declare class StreamerServer {
|
|
|
1275
1285
|
private checkExchangeRateLimit;
|
|
1276
1286
|
private checkSessionStartRateLimit;
|
|
1277
1287
|
private checkSessionInputRateLimit;
|
|
1288
|
+
/** Project roots watched for conversation JSONLs (profiles or ~/.claude/projects). */
|
|
1289
|
+
private projectsDirsForFreshnessCheck;
|
|
1290
|
+
/**
|
|
1291
|
+
* Full-glob scan + cache upsert/delete reconcile. Used by ?refresh=1 and by
|
|
1292
|
+
* the automatic freshness path when the directory watcher marked the scanner
|
|
1293
|
+
* stale or shouldRefreshProjectsFromHdd detected disk drift.
|
|
1294
|
+
*/
|
|
1295
|
+
private reconcileConversationsCacheFromDisk;
|
|
1296
|
+
private shouldAutoReconcileConversationList;
|
|
1278
1297
|
private handleListConversations;
|
|
1279
1298
|
private handleConversationsCount;
|
|
1280
1299
|
private refreshCountInBackground;
|