chat-recall 0.7.80 → 0.7.81
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/README.md +1 -1
- package/dist/cli.js +189 -134
- package/dist/mcp.js +147 -92
- package/dist/scan-worker.js +59 -16
- package/dist/sync-client.d.ts.map +1 -1
- package/dist/sync-client.js +5 -1
- package/dist/sync-client.js.map +1 -1
- package/dist/watch.js +199 -144
- package/dist/yield-loop.d.ts +15 -0
- package/dist/yield-loop.d.ts.map +1 -0
- package/dist/yield-loop.js +17 -0
- package/dist/yield-loop.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Give the event loop one turn.
|
|
3
|
+
*
|
|
4
|
+
* An `await` on a promise that is already settled only runs the next microtask,
|
|
5
|
+
* so a loop of such awaits never reaches the timer phase. The collector pings the
|
|
6
|
+
* systemd watchdog from a timer: a loop of 19 awaits that each scan 8 MB held the
|
|
7
|
+
* ping back for 7 s, and the same shape over a larger session held it past the
|
|
8
|
+
* 5-minute limit. `setImmediate` runs in the check phase, after the timers of
|
|
9
|
+
* the turn, so the ping and the signal handlers run between two iterations.
|
|
10
|
+
*
|
|
11
|
+
* Costs about 2.4 µs a call, measured on 15,727 sessions in the walk of
|
|
12
|
+
* `syncToTargetInScope`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function yieldToEventLoop(): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=yield-loop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yield-loop.d.ts","sourceRoot":"","sources":["../src/yield-loop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEhD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Give the event loop one turn.
|
|
3
|
+
*
|
|
4
|
+
* An `await` on a promise that is already settled only runs the next microtask,
|
|
5
|
+
* so a loop of such awaits never reaches the timer phase. The collector pings the
|
|
6
|
+
* systemd watchdog from a timer: a loop of 19 awaits that each scan 8 MB held the
|
|
7
|
+
* ping back for 7 s, and the same shape over a larger session held it past the
|
|
8
|
+
* 5-minute limit. `setImmediate` runs in the check phase, after the timers of
|
|
9
|
+
* the turn, so the ping and the signal handlers run between two iterations.
|
|
10
|
+
*
|
|
11
|
+
* Costs about 2.4 µs a call, measured on 15,727 sessions in the walk of
|
|
12
|
+
* `syncToTargetInScope`.
|
|
13
|
+
*/
|
|
14
|
+
export function yieldToEventLoop() {
|
|
15
|
+
return new Promise((resolve) => setImmediate(resolve));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=yield-loop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yield-loop.js","sourceRoot":"","sources":["../src/yield-loop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC"}
|