ssqch 0.8.0 → 0.10.0

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.
Files changed (87) hide show
  1. package/README.md +3 -1
  2. package/bundled/docs/agents.md +70 -0
  3. package/bundled/docs/benchmarks.md +29 -0
  4. package/bundled/docs/build-summary.md +27 -0
  5. package/bundled/docs/comparing-builds.md +51 -0
  6. package/bundled/docs/configuring.md +138 -0
  7. package/bundled/docs/content-schemas.md +54 -0
  8. package/bundled/docs/css-and-javascript.md +33 -0
  9. package/bundled/docs/data-files.md +55 -0
  10. package/bundled/docs/deploying.md +47 -0
  11. package/bundled/docs/field-guide.md +144 -0
  12. package/bundled/docs/footprint.md +27 -0
  13. package/bundled/docs/github-pages.md +41 -0
  14. package/bundled/docs/index.md +26 -0
  15. package/bundled/docs/install.md +27 -0
  16. package/bundled/docs/known-gaps.md +18 -0
  17. package/bundled/docs/markdown.md +114 -0
  18. package/bundled/docs/multilingual.md +14 -0
  19. package/bundled/docs/nav.yml +50 -0
  20. package/bundled/docs/netlify.md +30 -0
  21. package/bundled/docs/new-pages.md +42 -0
  22. package/bundled/docs/plugins.md +13 -0
  23. package/bundled/docs/rust-plugins.md +32 -0
  24. package/bundled/docs/seo.md +19 -0
  25. package/bundled/docs/template-languages.md +106 -0
  26. package/bundled/docs/templates.md +37 -0
  27. package/bundled/docs/themes.md +31 -0
  28. package/bundled/{trailheads → docs/trailheads}/from-component-frameworks.md +7 -3
  29. package/bundled/{trailheads → docs/trailheads}/from-docusaurus.md +7 -4
  30. package/bundled/{trailheads → docs/trailheads}/from-eleventy.md +7 -4
  31. package/bundled/{trailheads → docs/trailheads}/from-hexo.md +7 -4
  32. package/bundled/docs/trailheads/from-jekyll.md +82 -0
  33. package/bundled/{trailheads → docs/trailheads}/from-mkdocs.md +8 -5
  34. package/bundled/{trailheads → docs/trailheads}/from-zola.md +6 -3
  35. package/bundled/docs/trailheads.md +38 -0
  36. package/bundled/docs/where-values-come-from.md +57 -0
  37. package/bundled/ssqch.d.ts +20 -10
  38. package/lib/assets.js +15 -7
  39. package/lib/{chunk-N5QTGQ5N.js → chunk-2LEOPLTZ.js} +2 -2
  40. package/lib/{chunk-AMBFWPZ4.js → chunk-3EPHKJEG.js} +3 -3
  41. package/lib/{chunk-BRK4MXXO.js → chunk-3HHRKG33.js} +65 -18
  42. package/lib/{chunk-EIT4ZDT4.js → chunk-5DNDSNTP.js} +61 -5
  43. package/lib/{chunk-NUKCUDC4.js → chunk-7HXCQEGA.js} +3 -3
  44. package/lib/{chunk-6XYSFG6V.js → chunk-BGCBSQ4A.js} +3067 -3054
  45. package/lib/{chunk-RI2L3VGO.js → chunk-CB6YFUXU.js} +19 -11
  46. package/lib/{chunk-JSPSMIJ2.js → chunk-DMVJ53SM.js} +9 -9
  47. package/lib/{chunk-FYGE634X.js → chunk-DW7VMJEZ.js} +9 -9
  48. package/lib/{chunk-GSKVRAHF.js → chunk-E5UB2YY7.js} +6 -6
  49. package/lib/{chunk-DHHQKW4F.js → chunk-EEJDLCD3.js} +7 -7
  50. package/lib/{chunk-TWCVHOKO.js → chunk-HDQ4SRWM.js} +125 -4
  51. package/lib/{chunk-JRT7TQQP.js → chunk-HGJ5VWUR.js} +1 -1
  52. package/lib/{chunk-C35KIPAR.js → chunk-JWCCVTTR.js} +98 -7
  53. package/lib/{chunk-EZZUUPI4.js → chunk-JXZT5L7W.js} +2 -2
  54. package/lib/{chunk-KBGE5MCY.js → chunk-LAV3DEY4.js} +1 -1
  55. package/lib/{chunk-IRHRK7XB.js → chunk-LCPSKHAV.js} +1 -1
  56. package/lib/{chunk-3PHCFZEU.js → chunk-N4O5MDIB.js} +2 -2
  57. package/lib/{chunk-TDGBQNGW.js → chunk-NFJJKDRI.js} +1 -1
  58. package/lib/{chunk-UGEGUUBT.js → chunk-NUUEOGLZ.js} +8 -8
  59. package/lib/{chunk-VVPZ5PDP.js → chunk-Q4LFTYK2.js} +11 -11
  60. package/lib/{chunk-TN6EEDX2.js → chunk-QMA7CK7B.js} +51 -6
  61. package/lib/{chunk-CDEPYU7W.js → chunk-RJFWTW2Y.js} +2 -2
  62. package/lib/{chunk-YSH2NMIE.js → chunk-RKFZSVNF.js} +6 -6
  63. package/lib/{chunk-GOE4ZSAB.js → chunk-RM5Q3KFB.js} +9 -9
  64. package/lib/{chunk-37KSIVNY.js → chunk-RVBNVGZV.js} +3 -3
  65. package/lib/{chunk-HR2RU2LY.js → chunk-SA5KSJ4Y.js} +11 -7
  66. package/lib/{chunk-BOBPVAX2.js → chunk-SRNLKWXL.js} +424 -78
  67. package/lib/{chunk-WP3RPVUM.js → chunk-Y2ESFAAD.js} +2 -3
  68. package/lib/{chunk-WMOVCQO6.js → chunk-ZM6TU2JB.js} +6 -6
  69. package/lib/cli.js +32 -25
  70. package/lib/elements.js +7 -7
  71. package/lib/image.js +8 -8
  72. package/lib/links.js +10 -10
  73. package/lib/minify.js +7 -7
  74. package/lib/redirects.js +8 -8
  75. package/lib/rss.js +20 -19
  76. package/lib/sass.js +45 -10
  77. package/lib/sitemap.js +36 -11
  78. package/lib/ssqch.js +4 -4
  79. package/package.json +2 -2
  80. package/types/image.d.ts +5 -5
  81. package/types/index.d.ts +12 -4
  82. package/types/rss.d.ts +1 -1
  83. package/types/sitemap.d.ts +2 -0
  84. package/wasm/markdown.wasm +0 -0
  85. package/bundled/README.md +0 -1247
  86. package/lib/{chunk-6XYSFG6V.js.LEGAL.txt → chunk-BGCBSQ4A.js.LEGAL.txt} +3 -3
  87. /package/lib/{chunk-BOBPVAX2.js.LEGAL.txt → chunk-SRNLKWXL.js.LEGAL.txt} +0 -0
@@ -2,21 +2,21 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  isAsset
5
- } from "./chunk-N5QTGQ5N.js";
5
+ } from "./chunk-2LEOPLTZ.js";
6
6
  import {
7
7
  build
8
- } from "./chunk-BOBPVAX2.js";
8
+ } from "./chunk-SRNLKWXL.js";
9
9
  import "./chunk-4Q6WMTER.js";
10
- import "./chunk-RI2L3VGO.js";
11
- import "./chunk-3PHCFZEU.js";
10
+ import "./chunk-CB6YFUXU.js";
11
+ import "./chunk-N4O5MDIB.js";
12
12
  import {
13
13
  filesRead
14
14
  } from "./chunk-3NYSSA2C.js";
15
15
  import {
16
16
  fileHash
17
- } from "./chunk-KBGE5MCY.js";
18
- import "./chunk-TN6EEDX2.js";
19
- import "./chunk-IRHRK7XB.js";
17
+ } from "./chunk-LAV3DEY4.js";
18
+ import "./chunk-QMA7CK7B.js";
19
+ import "./chunk-LCPSKHAV.js";
20
20
  import {
21
21
  summary
22
22
  } from "./chunk-NKXEPHRZ.js";
@@ -24,14 +24,14 @@ import "./chunk-AD3HAW3W.js";
24
24
  import {
25
25
  dirsOf
26
26
  } from "./chunk-DDV6JEC2.js";
27
- import "./chunk-EIT4ZDT4.js";
27
+ import "./chunk-5DNDSNTP.js";
28
28
  import "./chunk-FVZ5JBRI.js";
29
- import "./chunk-TDGBQNGW.js";
29
+ import "./chunk-NFJJKDRI.js";
30
30
  import "./chunk-UU43WIZG.js";
31
31
  import {
32
32
  describeThrown,
33
33
  loadedFiles
34
- } from "./chunk-C35KIPAR.js";
34
+ } from "./chunk-JWCCVTTR.js";
35
35
  import "./chunk-CMUWRPSQ.js";
36
36
  import {
37
37
  BuildError,
@@ -43,7 +43,7 @@ import {
43
43
  messageOf,
44
44
  printError,
45
45
  red
46
- } from "./chunk-6XYSFG6V.js";
46
+ } from "./chunk-BGCBSQ4A.js";
47
47
  import {
48
48
  isInside,
49
49
  realPath,
@@ -2,7 +2,7 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  budget
5
- } from "./chunk-IRHRK7XB.js";
5
+ } from "./chunk-LCPSKHAV.js";
6
6
  import {
7
7
  bytes,
8
8
  count
@@ -22,14 +22,14 @@ import {
22
22
  probeFile,
23
23
  site,
24
24
  undecodable
25
- } from "./chunk-EIT4ZDT4.js";
25
+ } from "./chunk-5DNDSNTP.js";
26
26
  import {
27
27
  closest
28
28
  } from "./chunk-FVZ5JBRI.js";
29
29
  import {
30
30
  globProblem,
31
31
  globToRegExp
32
- } from "./chunk-TDGBQNGW.js";
32
+ } from "./chunk-NFJJKDRI.js";
33
33
  import {
34
34
  describeThrown,
35
35
  hookModules,
@@ -37,7 +37,7 @@ import {
37
37
  loadedFiles,
38
38
  settle,
39
39
  watchSettle
40
- } from "./chunk-C35KIPAR.js";
40
+ } from "./chunk-JWCCVTTR.js";
41
41
  import {
42
42
  charCount,
43
43
  firstChars,
@@ -63,7 +63,7 @@ import {
63
63
  tomlReason,
64
64
  warn,
65
65
  warning
66
- } from "./chunk-6XYSFG6V.js";
66
+ } from "./chunk-BGCBSQ4A.js";
67
67
  import {
68
68
  compareText,
69
69
  displayPath,
@@ -556,6 +556,11 @@ function normalizeBase(base) {
556
556
  return trimmed.replace(/\/+$/, "");
557
557
  }
558
558
  var fromRoot = (url) => url.startsWith("/") && !url.startsWith("//");
559
+ function withBaseOnce(base, url) {
560
+ if (base === "" || !fromRoot(url)) return url;
561
+ const rest = url.slice(base.length);
562
+ return url.startsWith(base) && (rest === "" || /^[/?#]/.test(rest)) ? url : base + url;
563
+ }
559
564
  function withBase(base, url) {
560
565
  return base === "" || !fromRoot(url) ? url : base + url;
561
566
  }
@@ -2017,6 +2022,14 @@ var Queue = class {
2017
2022
  constructor(limit) {
2018
2023
  this.limit = limit;
2019
2024
  }
2025
+ /** For tests: nothing starts until the answer is called, then as many as there are places. */
2026
+ hold() {
2027
+ this.running += this.limit;
2028
+ return () => {
2029
+ this.running -= this.limit;
2030
+ for (let i = 0; i < this.limit; i++) this.waiting.shift()?.();
2031
+ };
2032
+ }
2020
2033
  /** `task`, once a place is free; `first` goes ahead of everything waiting (the files of a source already decoded, so its pixels are let go of soon). */
2021
2034
  async run(task, first = false) {
2022
2035
  if (this.running >= this.limit) await new Promise((resolve) => first ? this.waiting.unshift(resolve) : this.waiting.push(resolve));
@@ -2059,6 +2072,10 @@ var ImageProcessor = class {
2059
2072
  warned = /* @__PURE__ */ new Set();
2060
2073
  queue = new Queue(ENCODES);
2061
2074
  settings;
2075
+ /** For tests: holds every encode back until the answer is called, so a test can change what they'll find first. */
2076
+ holdEncodesForTest() {
2077
+ return this.queue.hold();
2078
+ }
2062
2079
  /** The settings as image names hold them (`legacySettings`). */
2063
2080
  named;
2064
2081
  constructor(options) {
@@ -3302,13 +3319,17 @@ function emptyConfig(options) {
3302
3319
  bundles: false,
3303
3320
  strict: false,
3304
3321
  lastModified: null,
3322
+ dateFallback: "file",
3323
+ timeZone: null,
3305
3324
  base: "",
3306
3325
  serveRun: [],
3307
3326
  budgets: [],
3308
3327
  schemas: [],
3309
3328
  themes: [],
3310
3329
  passthrough: [],
3330
+ renamedCopies: /* @__PURE__ */ new Map(),
3311
3331
  filters: /* @__PURE__ */ new Map(),
3332
+ siteFilters: /* @__PURE__ */ new Set(),
3312
3333
  globalData: [],
3313
3334
  dataExtensions: /* @__PURE__ */ new Map(),
3314
3335
  collections: [],
@@ -3361,8 +3382,25 @@ async function loadConfig(options) {
3361
3382
  }
3362
3383
  }
3363
3384
  useImages(config);
3385
+ useTimeZone(config.timeZone);
3364
3386
  return config;
3365
3387
  }
3388
+ var MACHINE_TZ = process.env.TZ;
3389
+ function useTimeZone(zone) {
3390
+ const want = zone ?? MACHINE_TZ;
3391
+ if (process.env.TZ === want) return;
3392
+ if (want === void 0) delete process.env.TZ;
3393
+ else process.env.TZ = want;
3394
+ }
3395
+ function checkTimeZone(value) {
3396
+ if (typeof value !== "string" || value === "") bail(`timeZone must be a time zone's name, like "UTC" or "America/New_York", not ${typeof value === "string" ? "an empty string" : typeof value}`);
3397
+ try {
3398
+ new Intl.DateTimeFormat("en", { timeZone: value });
3399
+ } catch {
3400
+ bail(`timeZone: "${value}" isn't a time zone ssqch knows (like "UTC", "Europe/Berlin" or "America/New_York")`);
3401
+ }
3402
+ return value;
3403
+ }
3366
3404
  async function loadJsData(file, root) {
3367
3405
  const name = path7.relative(root, file).split(path7.sep).join("/");
3368
3406
  try {
@@ -3374,7 +3412,7 @@ async function loadJsData(file, root) {
3374
3412
  throw new BuildError(`${name}: ${describeThrown(e, root)}`);
3375
3413
  }
3376
3414
  }
3377
- var SETTINGS = ["dirs", "templateFormats", "markdownEngine", "htmlEngine", "markdown", "deepMerge", "leaveNoTrace", "clean", "ignore", "bundles", "strict", "lastModified", "base", "schemas", "theme", "serve", "budgets"];
3415
+ var SETTINGS = ["dirs", "templateFormats", "markdownEngine", "htmlEngine", "markdown", "deepMerge", "leaveNoTrace", "clean", "ignore", "bundles", "strict", "lastModified", "dateFallback", "timeZone", "base", "schemas", "theme", "serve", "budgets"];
3378
3416
  var PARTS = ["data", "filters", "collections", "transforms", "engines", "passthrough", "watch", "beforeBuild", "afterBuild", "plugins"];
3379
3417
  var CORE_ENGINES = ["edge", "md", "html", "txt"];
3380
3418
  var DIRS = ["input", "output", "includes", "layouts", "data"];
@@ -3555,6 +3593,7 @@ async function loadJs(config, file) {
3555
3593
  claim("filters", "filter", key, where);
3556
3594
  ops.push(() => {
3557
3595
  config.filters.set(key, fn);
3596
+ config.siteFilters.add(key);
3558
3597
  });
3559
3598
  }
3560
3599
  for (const [key, run] of rust.engines) {
@@ -3590,6 +3629,7 @@ async function loadJs(config, file) {
3590
3629
  }
3591
3630
  functions("filters", "filter", part.filters, where, (key, fn) => ops.push(() => {
3592
3631
  config.filters.set(key, fn);
3632
+ config.siteFilters.add(key);
3593
3633
  }));
3594
3634
  functions("collections", "collection", part.collections, where, (key, fn) => ops.push(() => {
3595
3635
  config.collections.push([key, fn]);
@@ -3720,6 +3760,10 @@ function applySettings(config, settings) {
3720
3760
  else if (modified === "git" || modified === "file") config.lastModified = modified;
3721
3761
  else if (typeof modified === "string") bail(`lastModified must be "git", "file" or false, not "${modified}"`);
3722
3762
  else if (modified !== void 0 && modified !== null && modified !== false) bail(`lastModified must be "git", "file" or false, not ${typeof modified}`);
3763
+ const fallback = settings.dateFallback;
3764
+ if (fallback === "git" || fallback === "file") config.dateFallback = fallback;
3765
+ else if (fallback !== void 0 && fallback !== null) bail(`dateFallback must be "git" or "file", not ${typeof fallback === "string" ? `"${fallback}"` : typeof fallback}`);
3766
+ if (settings.timeZone !== void 0 && settings.timeZone !== null) config.timeZone = checkTimeZone(settings.timeZone);
3723
3767
  if (typeof settings.base === "string") config.base = normalizeBase(settings.base);
3724
3768
  else if (settings.base !== void 0 && settings.base !== null) bail(`base must be a URL path like "/docs/", not ${typeof settings.base}`);
3725
3769
  const theme = settings.theme;
@@ -3908,6 +3952,7 @@ function applyToml(config, file) {
3908
3952
 
3909
3953
  export {
3910
3954
  rewriteHtml,
3955
+ withBaseOnce,
3911
3956
  withBase,
3912
3957
  cssWithBase,
3913
3958
  rewriteBase,
@@ -9,8 +9,8 @@ import {
9
9
  starterEngines,
10
10
  starterFiles,
11
11
  write
12
- } from "./chunk-WP3RPVUM.js";
13
- import "./chunk-6XYSFG6V.js";
12
+ } from "./chunk-Y2ESFAAD.js";
13
+ import "./chunk-BGCBSQ4A.js";
14
14
  import "./chunk-VJWQSYEG.js";
15
15
  import "./chunk-I3PS26CI.js";
16
16
  export {
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
- import "./chunk-TN6EEDX2.js";
4
- import "./chunk-IRHRK7XB.js";
3
+ import "./chunk-QMA7CK7B.js";
4
+ import "./chunk-LCPSKHAV.js";
5
5
  import "./chunk-NKXEPHRZ.js";
6
6
  import "./chunk-AD3HAW3W.js";
7
7
  import {
@@ -10,13 +10,13 @@ import {
10
10
  } from "./chunk-DDV6JEC2.js";
11
11
  import {
12
12
  slugWith
13
- } from "./chunk-EIT4ZDT4.js";
13
+ } from "./chunk-5DNDSNTP.js";
14
14
  import "./chunk-FVZ5JBRI.js";
15
- import "./chunk-TDGBQNGW.js";
15
+ import "./chunk-NFJJKDRI.js";
16
16
  import {
17
17
  FIELD_NOTES
18
18
  } from "./chunk-UU43WIZG.js";
19
- import "./chunk-C35KIPAR.js";
19
+ import "./chunk-JWCCVTTR.js";
20
20
  import {
21
21
  serdeFloat
22
22
  } from "./chunk-CMUWRPSQ.js";
@@ -24,7 +24,7 @@ import {
24
24
  bail,
25
25
  context,
26
26
  parseFrontMatter
27
- } from "./chunk-6XYSFG6V.js";
27
+ } from "./chunk-BGCBSQ4A.js";
28
28
  import {
29
29
  isDir,
30
30
  isFile,
@@ -2,24 +2,24 @@ import { createRequire as __ssqchCreateRequire } from "node:module";
2
2
  const require = __ssqchCreateRequire(import.meta.url);
3
3
  import {
4
4
  OUTPUT_LIST
5
- } from "./chunk-BOBPVAX2.js";
5
+ } from "./chunk-SRNLKWXL.js";
6
6
  import "./chunk-4Q6WMTER.js";
7
- import "./chunk-RI2L3VGO.js";
8
- import "./chunk-3PHCFZEU.js";
9
- import "./chunk-TN6EEDX2.js";
10
- import "./chunk-IRHRK7XB.js";
7
+ import "./chunk-CB6YFUXU.js";
8
+ import "./chunk-N4O5MDIB.js";
9
+ import "./chunk-QMA7CK7B.js";
10
+ import "./chunk-LCPSKHAV.js";
11
11
  import {
12
12
  count
13
13
  } from "./chunk-NKXEPHRZ.js";
14
14
  import "./chunk-AD3HAW3W.js";
15
15
  import "./chunk-DDV6JEC2.js";
16
- import "./chunk-EIT4ZDT4.js";
16
+ import "./chunk-5DNDSNTP.js";
17
17
  import "./chunk-FVZ5JBRI.js";
18
- import "./chunk-TDGBQNGW.js";
18
+ import "./chunk-NFJJKDRI.js";
19
19
  import "./chunk-UU43WIZG.js";
20
- import "./chunk-C35KIPAR.js";
20
+ import "./chunk-JWCCVTTR.js";
21
21
  import "./chunk-CMUWRPSQ.js";
22
- import "./chunk-6XYSFG6V.js";
22
+ import "./chunk-BGCBSQ4A.js";
23
23
  import "./chunk-VJWQSYEG.js";
24
24
  import "./chunk-I3PS26CI.js";
25
25
 
@@ -8,14 +8,14 @@ import {
8
8
  measure,
9
9
  overBudget,
10
10
  urlOf
11
- } from "./chunk-3PHCFZEU.js";
12
- import "./chunk-IRHRK7XB.js";
11
+ } from "./chunk-N4O5MDIB.js";
12
+ import "./chunk-LCPSKHAV.js";
13
13
  import "./chunk-NKXEPHRZ.js";
14
14
  import "./chunk-DDV6JEC2.js";
15
15
  import "./chunk-FVZ5JBRI.js";
16
16
  import "./chunk-UU43WIZG.js";
17
17
  import "./chunk-CMUWRPSQ.js";
18
- import "./chunk-6XYSFG6V.js";
18
+ import "./chunk-BGCBSQ4A.js";
19
19
  import "./chunk-VJWQSYEG.js";
20
20
  import "./chunk-I3PS26CI.js";
21
21
  export {
@@ -6,14 +6,14 @@ import {
6
6
  fingerprint,
7
7
  isAsset,
8
8
  sameStamps
9
- } from "./chunk-N5QTGQ5N.js";
9
+ } from "./chunk-2LEOPLTZ.js";
10
10
  import {
11
11
  commandLine
12
12
  } from "./chunk-4Q6WMTER.js";
13
13
  import {
14
14
  Builder,
15
15
  stopBuilders
16
- } from "./chunk-KBGE5MCY.js";
16
+ } from "./chunk-LAV3DEY4.js";
17
17
  import {
18
18
  CONFIG_FILES,
19
19
  dirsOf
@@ -34,7 +34,7 @@ import {
34
34
  red,
35
35
  warn,
36
36
  warning
37
- } from "./chunk-6XYSFG6V.js";
37
+ } from "./chunk-BGCBSQ4A.js";
38
38
  import {
39
39
  isInside,
40
40
  realPath,
@@ -57,7 +57,7 @@ import { setTimeout as sleep } from "node:timers/promises";
57
57
  var running = /* @__PURE__ */ new Set();
58
58
  var shuttingDown = false;
59
59
  var everStarted = false;
60
- var environment = (ctx) => [ctx.root, ctx.env, ctx.input, ctx.output];
60
+ var environment = (ctx) => [ctx.root, ctx.env, ctx.input, ctx.output, String(Boolean(ctx.quiet))];
61
61
  var Companions = class _Companions {
62
62
  commands;
63
63
  /** What they were started with (root, env, input and output folders), so a reload that changes those starts them again. */
@@ -77,7 +77,7 @@ var Companions = class _Companions {
77
77
  for (const command of commands) {
78
78
  const name = toolName(command);
79
79
  progress(`[ssqch] serve.run: ${command}`);
80
- const { file, args, options } = commandLine(command, ctx.root, { SSQCH_ENV: ctx.env, SSQCH_SERVING: "true", SSQCH_INPUT: ctx.input, SSQCH_OUTPUT: ctx.output });
80
+ const { file, args, options } = commandLine(command, ctx.root, { SSQCH_ENV: ctx.env, SSQCH_SERVING: "true", SSQCH_QUIET: ctx.quiet ? "true" : "false", SSQCH_INPUT: ctx.input, SSQCH_OUTPUT: ctx.output });
81
81
  const one = { child: void 0, stopping: false, exited: false };
82
82
  try {
83
83
  one.child = spawn(file, args, { ...options, stdio: ["pipe", "pipe", "pipe"], detached: process.platform !== "win32", windowsHide: true });
@@ -749,7 +749,7 @@ async function serving(first, { args, options, live, site, port, quiet }) {
749
749
  let builder = first;
750
750
  let companions = Companions.none();
751
751
  for (; ; ) {
752
- const info = builder.site;
752
+ const info = { ...builder.site, quiet };
753
753
  Object.assign(site, { output: info.output, base: info.base });
754
754
  const startedTools = !companions.runs(info, info.serveRun);
755
755
  if (startedTools) {
@@ -850,7 +850,11 @@ async function watch({ builder, live, args, quiet, startedTools, firstBuild, say
850
850
  firstBuild(ok);
851
851
  sayWhere();
852
852
  const contents = /* @__PURE__ */ new Map();
853
- const show = (file) => isInside(site.root, file) && file !== site.root ? path3.relative(site.root, file) : file;
853
+ const show = (file) => {
854
+ if (file === site.root) return file;
855
+ const rel = path3.relative(site.root, file);
856
+ return path3.isAbsolute(rel) ? file : rel;
857
+ };
854
858
  const own = (file) => isInside(site.root, file) && path3.relative(site.root, file).split(path3.sep).some((part) => part === ".cache" || part === ".git" || part === "node_modules");
855
859
  for (; ; ) {
856
860
  const paths = carried.length ? carried.splice(0) : await rx.recv();