@rubytech/create-maxy 1.0.726 → 1.0.728

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-HPU24BXP.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,
@@ -62,6 +63,7 @@ import {
62
63
  loadOnboardingStep,
63
64
  logPath,
64
65
  preConversationLogStream,
66
+ preflushStreamLogKey,
65
67
  recordFailedAttempt,
66
68
  registerGrantSession,
67
69
  registerResumedSession,
@@ -98,7 +100,7 @@ import {
98
100
  vncLog,
99
101
  waitForExit,
100
102
  writeChromiumWrapper
101
- } from "./chunk-D53LK5YC.js";
103
+ } from "./chunk-HPU24BXP.js";
102
104
 
103
105
  // ../lib/graph-trash/dist/index.js
104
106
  var require_dist = __commonJS({
@@ -8261,6 +8263,23 @@ app11.post("/", requireAdminSession, async (c) => {
8261
8263
  async start(controller) {
8262
8264
  let controllerOpen = true;
8263
8265
  const sseEntry = { controller, conversationId: sseConvId ?? null, sessionKey: session_key };
8266
+ try {
8267
+ const reqSignal = c.req.raw?.signal;
8268
+ if (reqSignal) {
8269
+ reqSignal.addEventListener("abort", () => {
8270
+ const abortLogKey = sseConvId ?? preflushStreamLogKey(session_key);
8271
+ const abortStreamLog = agentLogStream("claude-agent-stream", account.accountDir, abortLogKey);
8272
+ const ts = (/* @__PURE__ */ new Date()).toISOString().slice(11, 23);
8273
+ sseLog.write(`[${ts}] [${sk}] admin: ABORT [operator-cancel] interrupting pool client
8274
+ `);
8275
+ interruptClient(session_key, abortStreamLog).catch((err) => {
8276
+ sseLog.write(`[${ts}] [${sk}] admin: ABORT [interrupt-failed] ${err instanceof Error ? err.message : String(err)}
8277
+ `);
8278
+ });
8279
+ }, { once: true });
8280
+ }
8281
+ } catch {
8282
+ }
8264
8283
  try {
8265
8284
  registerAdminSSE(sseEntry);
8266
8285
  if (sseConvId) {