@rubytech/create-maxy 1.0.726 → 1.0.727

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.
@@ -16,7 +16,7 @@ import {
16
16
  sanitizeClientCorrId,
17
17
  streamActionEvents,
18
18
  vncLog
19
- } from "./chunk-D53LK5YC.js";
19
+ } from "./chunk-K7GQ5RMN.js";
20
20
 
21
21
  // server/edge.ts
22
22
  import { createServer, request as httpRequest } from "http";
@@ -50,6 +50,7 @@ import {
50
50
  getUserTimezone,
51
51
  getVisitorIdForSession,
52
52
  hashPassword,
53
+ interruptClient,
53
54
  invokeAgent,
54
55
  isActionActive,
55
56
  isPasswordValid,
@@ -98,7 +99,7 @@ import {
98
99
  vncLog,
99
100
  waitForExit,
100
101
  writeChromiumWrapper
101
- } from "./chunk-D53LK5YC.js";
102
+ } from "./chunk-K7GQ5RMN.js";
102
103
 
103
104
  // ../lib/graph-trash/dist/index.js
104
105
  var require_dist = __commonJS({
@@ -8261,6 +8262,21 @@ app11.post("/", requireAdminSession, async (c) => {
8261
8262
  async start(controller) {
8262
8263
  let controllerOpen = true;
8263
8264
  const sseEntry = { controller, conversationId: sseConvId ?? null, sessionKey: session_key };
8265
+ try {
8266
+ const reqSignal = c.req.raw?.signal;
8267
+ if (reqSignal) {
8268
+ reqSignal.addEventListener("abort", () => {
8269
+ const ts = (/* @__PURE__ */ new Date()).toISOString().slice(11, 23);
8270
+ sseLog.write(`[${ts}] [${sk}] admin: ABORT [operator-cancel] interrupting pool client
8271
+ `);
8272
+ interruptClient(session_key, sseLog).catch((err) => {
8273
+ sseLog.write(`[${ts}] [${sk}] admin: ABORT [interrupt-failed] ${err instanceof Error ? err.message : String(err)}
8274
+ `);
8275
+ });
8276
+ }, { once: true });
8277
+ }
8278
+ } catch {
8279
+ }
8264
8280
  try {
8265
8281
  registerAdminSSE(sseEntry);
8266
8282
  if (sseConvId) {