hanoman 0.1.37 → 0.1.38
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/build-info.json
CHANGED
package/dist/server.js
CHANGED
|
@@ -30237,6 +30237,7 @@ async function recordSessionResult(input) {
|
|
|
30237
30237
|
// src/routes/terminal.ts
|
|
30238
30238
|
init_stage_machine();
|
|
30239
30239
|
init_pty();
|
|
30240
|
+
var TERMINAL_WS_MESSAGES_PER_MINUTE = 6e3;
|
|
30240
30241
|
async function advanceStage(specId, repoDir, sessionId2, flow, worktree) {
|
|
30241
30242
|
const next = stageForRun(readPhases(phaseFilePath(repoDir, sessionId2), flow), worktree, specId);
|
|
30242
30243
|
if (!next) return;
|
|
@@ -30580,7 +30581,7 @@ async function terminal_default(app2, opts) {
|
|
|
30580
30581
|
socket2.close(1008, "connection limit");
|
|
30581
30582
|
return;
|
|
30582
30583
|
}
|
|
30583
|
-
const guard = new WsMessageGuard();
|
|
30584
|
+
const guard = new WsMessageGuard({ perWindow: TERMINAL_WS_MESSAGES_PER_MINUTE });
|
|
30584
30585
|
const client = { send: (m) => socket2.send(m), close: () => socket2.close() };
|
|
30585
30586
|
attach(id, client);
|
|
30586
30587
|
socket2.on("message", async (raw2) => {
|