@rubytech/create-realagent 1.0.834 → 1.0.836

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.
@@ -45,7 +45,7 @@ import {
45
45
  vncLog,
46
46
  waitForExit,
47
47
  writeChromiumWrapper
48
- } from "./chunk-GK4WHM3H.js";
48
+ } from "./chunk-UXN47TX2.js";
49
49
  import {
50
50
  agentLogStream,
51
51
  clearSessionHistory,
@@ -73,7 +73,7 @@ import {
73
73
  sigtermFlushStreamLogs,
74
74
  unregisterSession,
75
75
  validateSession
76
- } from "./chunk-ZVW5XKPU.js";
76
+ } from "./chunk-BYPWJ4Z6.js";
77
77
  import {
78
78
  ACCOUNTS_DIR,
79
79
  COMMERCIAL_MODE,
@@ -98,7 +98,7 @@ import {
98
98
  openCloudflareTask,
99
99
  readTunnelState,
100
100
  resolveUnitGoneVerdict
101
- } from "./chunk-KKGGT5RH.js";
101
+ } from "./chunk-B43O764H.js";
102
102
  import {
103
103
  GREETING_DIRECTIVE,
104
104
  HAIKU_MODEL,
@@ -130,7 +130,7 @@ import {
130
130
  verifyAndGetConversationUpdatedAt,
131
131
  verifyConversationOwnership,
132
132
  writeAdminUserAndPerson
133
- } from "./chunk-MRJGG6CS.js";
133
+ } from "./chunk-TQ6L56KS.js";
134
134
 
135
135
  // ../lib/graph-trash/dist/index.js
136
136
  var require_dist = __commonJS({
@@ -7493,7 +7493,7 @@ var app11 = new Hono();
7493
7493
  app11.post("/cancel", requireAdminSession, async (c) => {
7494
7494
  const session_key = c.var.sessionKey;
7495
7495
  try {
7496
- const { interruptClient: interruptClient2 } = await import("./client-pool-FM3YJWV5.js");
7496
+ const { interruptClient: interruptClient2 } = await import("./client-pool-HC6PMV2X.js");
7497
7497
  await interruptClient2(session_key);
7498
7498
  return c.json({ ok: true });
7499
7499
  } catch (err) {
@@ -12140,7 +12140,6 @@ app36.get("/:rel{.*}", (c) => {
12140
12140
  const reqPath = c.req.path;
12141
12141
  const rawRel = c.req.param("rel") ?? "";
12142
12142
  const trimmed = rawRel.replace(/^\/+/, "").replace(/\/+$/, "");
12143
- const isDirRequest = rawRel === "" || rawRel.endsWith("/") || reqPath.endsWith("/");
12144
12143
  const account = resolveAccount();
12145
12144
  if (!account) {
12146
12145
  console.error(`[sites] no-account path=${reqPath} status=404`);
@@ -12174,10 +12173,16 @@ app36.get("/:rel{.*}", (c) => {
12174
12173
  } catch {
12175
12174
  stat7 = null;
12176
12175
  }
12176
+ if (stat7?.isDirectory() && !reqPath.endsWith("/")) {
12177
+ const search = new URL(c.req.url).search;
12178
+ const target = `${reqPath}/${search}`;
12179
+ console.log(
12180
+ `[sites] redirect-trailing-slash from=${reqPath} to=${reqPath}/ status=301`
12181
+ );
12182
+ return c.redirect(target, 301);
12183
+ }
12177
12184
  if (stat7?.isDirectory()) {
12178
12185
  filePath = resolve21(filePath, "index.html");
12179
- } else if (stat7 === null && isDirRequest) {
12180
- filePath = resolve21(filePath, "index.html");
12181
12186
  }
12182
12187
  if (!filePath.startsWith(rootDir + "/")) {
12183
12188
  console.error(`[sites] path-traversal-rejected path=${reqPath} reason=escape status=403`);
@@ -12981,7 +12986,10 @@ app37.get("/:slug", async (c, next) => {
12981
12986
  await next();
12982
12987
  });
12983
12988
  if (brandFaviconPath !== "/favicon.ico") {
12984
- app37.get("/favicon.ico", (c) => c.redirect(brandFaviconPath, 302));
12989
+ app37.get("/favicon.ico", (c) => {
12990
+ c.header("Cache-Control", "public, max-age=300");
12991
+ return c.redirect(brandFaviconPath, 302);
12992
+ });
12985
12993
  }
12986
12994
  app37.use("/*", serveStatic({ root: "./public" }));
12987
12995
  var port = parseInt(process.env.MAXY_UI_INTERNAL_PORT ?? process.env.PORT ?? "19199", 10);
@@ -13064,7 +13072,7 @@ autoDeliverPremiumPlugins(bootEntitlement?.purchasedPlugins ?? void 0);
13064
13072
  (async () => {
13065
13073
  if (!bootAccount) return;
13066
13074
  try {
13067
- const { recoverRunningCloudflareTasks } = await import("./cloudflare-task-tracker-FSPEJOTH.js");
13075
+ const { recoverRunningCloudflareTasks } = await import("./cloudflare-task-tracker-R35AJT27.js");
13068
13076
  const result = await recoverRunningCloudflareTasks(
13069
13077
  bootAccount.accountId,
13070
13078
  configDirForWhatsApp,