@appchy/jarvis 0.1.100 → 0.1.102

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/bin.js CHANGED
@@ -10260,7 +10260,7 @@ import { createRequire as createRequire2 } from "module";
10260
10260
  var _require = createRequire2(import.meta.url);
10261
10261
  var VERSION2 = _require("../package.json").version ?? "0.0.0";
10262
10262
  var IS_DEV = String(_require("../package.json").name ?? "").endsWith("-dev");
10263
- var SHA = "07085df";
10263
+ var SHA = "2ef6df4";
10264
10264
  var BUILT = "2026-09-11";
10265
10265
  var BUILD = SHA ?? "source";
10266
10266
  var BUILD_LABEL = `${SHA ? `${VERSION2} (${SHA}${BUILT ? ` ${BUILT}` : ""})` : `${VERSION2} (source)`}${IS_DEV ? " \u2014 development build" : ""}`;
@@ -12391,7 +12391,7 @@ async function asset(repo, assets, url, res) {
12391
12391
  const wanted = url.pathname === "/" || !extname(url.pathname) ? "/index.html" : url.pathname;
12392
12392
  const path23 = join9(assets, wanted);
12393
12393
  if (!path23.startsWith(assets)) {
12394
- res.writeHead(403).end("no");
12394
+ res.writeHead(403, { "cache-control": "no-store" }).end("no");
12395
12395
  return;
12396
12396
  }
12397
12397
  try {
@@ -12409,7 +12409,12 @@ async function asset(repo, assets, url, res) {
12409
12409
  });
12410
12410
  res.end(body);
12411
12411
  } catch {
12412
- res.writeHead(404, { "content-type": "text/plain; charset=utf-8" });
12412
+ res.writeHead(404, {
12413
+ "content-type": "text/plain; charset=utf-8",
12414
+ // A refusal is cached as readily as a page. A missing asset on a half-built checkout would
12415
+ // otherwise stay missing in the browser after the build that creates it.
12416
+ "cache-control": "no-store"
12417
+ });
12413
12418
  res.end(
12414
12419
  "not found. If this is a fresh checkout, the UI is built by `pnpm --filter @appchy/jarvis build`."
12415
12420
  );