@se-studio/site-check 2.10.17 → 2.10.19

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.10.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [49d9136]
8
+ - @se-studio/contentful-rest-api@1.25.3
9
+
10
+ ## 2.10.18
11
+
12
+ ### Patch Changes
13
+
14
+ - 2b1e79c: Portless local URLs: require `portless service install` for HTTPS 443; document unique last-segment worktree hosts. Refuse local `cms-edit` content commands (hosted MCP only). Smoke/revalidation use `start:dev` so `PORT` is not swallowed by portless.
15
+
3
16
  ## 2.10.17
4
17
 
5
18
  ### Patch Changes
package/README.md CHANGED
@@ -18,7 +18,7 @@ npx @se-studio/site-check http://localhost:3015
18
18
  npx @se-studio/site-check http://localhost:3015 -o ./out
19
19
 
20
20
  # Compare production vs development: use production sitemap, check pages exist on dev
21
- npx @se-studio/site-check https://example.com --check-against http://localhost:3010
21
+ npx @se-studio/site-check https://example.com --check-against https://example.localhost
22
22
 
23
23
  # Enable rewrite check (optional; off by default)
24
24
  npx @se-studio/site-check https://example.com --check-rewrites
@@ -132,9 +132,9 @@ Add `smoke.cases.json`, `scripts/smoke-test-run.ts`, and optionally `scripts/smo
132
132
 
133
133
  | Variable | Purpose |
134
134
  |----------|---------|
135
- | `SMOKE_TEST_SERVER_SCRIPT=dev:dev` | Default dev server; use `start` for prod-like server (runs `pnpm build` first) |
136
- | `SMOKE_TEST_SKIP_BUILD=true` | Skip `pnpm build` when `SERVER_SCRIPT=start` (use after Vercel `next build`) |
137
- | `SMOKE_TEST_VERIFY_CACHE=true` | Run smoke twice; assert `x-nextjs-cache` on HTML (meaningful with `start`, soft in `next dev`) |
135
+ | `SMOKE_TEST_SERVER_SCRIPT=dev:dev` | Default dev server; use `start:dev` for prod-like `next start` (runs `pnpm build` first; not portless) |
136
+ | `SMOKE_TEST_SKIP_BUILD=true` | Skip `pnpm build` when `SERVER_SCRIPT=start:dev` (use after Vercel `next build`) |
137
+ | `SMOKE_TEST_VERIFY_CACHE=true` | Run smoke twice; assert `x-nextjs-cache` on HTML (meaningful with `start:dev`, soft in `next dev`) |
138
138
  | `SMOKE_TEST_AUDIT_CACHE_LOGS=true` | Pipe server/build logs and scan for 2MB cache failures, `cache skip`, and `hard refresh` |
139
139
  | `SMOKE_TEST_CACHE_SKIP_SEVERITY=warn` | `warn` or `error` for cache-skip log lines (default `warn`) |
140
140
  | `SMOKE_TEST_READY_PATH=/` | Path polled until the server responds |
package/docs/llms.md CHANGED
@@ -95,7 +95,7 @@ import { runArticleLinkIntegrityFromSmokeConfig } from '@se-studio/site-check/cm
95
95
  | Variable | Purpose |
96
96
  |----------|---------|
97
97
  | `SMOKE_TEST_IGNORE=true` | Skip smoke entirely |
98
- | `SMOKE_TEST_SERVER_SCRIPT` | `dev:dev` (default) or `start` |
98
+ | `SMOKE_TEST_SERVER_SCRIPT` | `dev:dev` (default) or `start:dev` |
99
99
  | `SMOKE_TEST_SKIP_INTEGRITY` | HTTP-only (set by smoke-test-one when integrity parallel) |
100
100
  | `SMOKE_TEST_VALIDATE_ANALYTICS_CONTEXT=false` | Skip dual AnalyticsProvider chunk scan (default on when `.next/static/chunks` exists) |
101
101
  | `PREVIEW_SITE_URL` | Preview smoke base URL |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/site-check",
3
- "version": "2.10.17",
3
+ "version": "2.10.19",
4
4
  "description": "Validate SE marketing sites (sitemap, llms.txt) and download markdown files preserving structure",
5
5
  "repository": {
6
6
  "type": "git",
@@ -83,12 +83,12 @@
83
83
  "url": "https://github.com/Something-Else-Studio/se-core-product/issues"
84
84
  },
85
85
  "dependencies": {
86
- "@se-studio/contentful-rest-api": "1.25.2",
86
+ "@se-studio/contentful-rest-api": "1.25.3",
87
87
  "@se-studio/core-data-types": "1.12.0"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@biomejs/biome": "^2.5.10",
91
- "@types/node": "^26.2.0",
91
+ "@types/node": "^24.13.3",
92
92
  "typescript": "^7.0.2"
93
93
  },
94
94
  "scripts": {
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+
2
3
  /**
3
4
  * Revalidation matrix test — production server, synthetic webhooks, CMS query audit.
4
5
  * Usage: revalidation-matrix-test <port> (from app directory with revalidation.cases.json)
@@ -9,12 +10,13 @@
9
10
  * REVALIDATION_TEST_REUSE_SERVER=true — reuse server on port (no CMS log capture; not recommended)
10
11
  * REVALIDATION_TEST_STRICT=true — exit 1 on assertion warnings (default audit mode)
11
12
  * REVALIDATION_TEST_READY_PATH=/ — health check path
13
+ * REVALIDATION_TEST_SERVER_SCRIPT=start:dev — pnpm script (raw `next start`; not portless)
12
14
  */
13
15
 
16
+ import { spawn } from 'node:child_process';
14
17
  import fs from 'node:fs';
15
18
  import net from 'node:net';
16
19
  import path from 'node:path';
17
- import { spawn } from 'node:child_process';
18
20
  import { fileURLToPath } from 'node:url';
19
21
 
20
22
  const packageDir = path.dirname(fileURLToPath(import.meta.url));
@@ -104,7 +106,8 @@ function runBuild(env) {
104
106
  }
105
107
 
106
108
  function startServer(env) {
107
- return spawn('pnpm', ['start'], {
109
+ const serverScript = env.REVALIDATION_TEST_SERVER_SCRIPT ?? 'start:dev';
110
+ return spawn('pnpm', [serverScript], {
108
111
  cwd: appDir,
109
112
  env,
110
113
  stdio: ['ignore', 'pipe', 'pipe'],
@@ -7,7 +7,7 @@
7
7
  * Env (set automatically; override if needed):
8
8
  * SMOKE_TEST_SKIP_BUILD=true
9
9
  * SMOKE_TEST_USE_RUNNING_SERVER=false
10
- * SMOKE_TEST_SERVER_SCRIPT=start
10
+ * SMOKE_TEST_SERVER_SCRIPT=start:dev
11
11
  * SMOKE_TEST_IGNORE=true — skip entirely (emergency bypass on Vercel)
12
12
  *
13
13
  * Also runs the analytics context bundle check (via smoke-test-one) against existing
@@ -51,7 +51,7 @@ const env = {
51
51
  ...process.env,
52
52
  SMOKE_TEST_SKIP_BUILD: 'true',
53
53
  SMOKE_TEST_USE_RUNNING_SERVER: 'false',
54
- SMOKE_TEST_SERVER_SCRIPT: 'start',
54
+ SMOKE_TEST_SERVER_SCRIPT: 'start:dev',
55
55
  };
56
56
 
57
57
  const child = spawn(process.execPath, [smokeTestOnePath, port], {
@@ -6,24 +6,24 @@
6
6
  *
7
7
  * Env:
8
8
  * SMOKE_TEST_IGNORE=true — skip entirely
9
- * SMOKE_TEST_SERVER_SCRIPT=dev:dev — pnpm script to start server (default dev:dev; use "start" for prod)
9
+ * SMOKE_TEST_SERVER_SCRIPT=dev:dev — pnpm script (default). Use start:dev for prod-like `next start` (PORT-injected; not portless).
10
10
  * SMOKE_TEST_VERIFY_CACHE=true — run smoke twice and assert cache headers / timing
11
11
  * SMOKE_TEST_AUDIT_CACHE_LOGS=true — capture server/build logs and scan for cache problems
12
12
  * SMOKE_TEST_CACHE_SKIP_SEVERITY=warn — cache-skip log severity: warn | error (default warn)
13
13
  * SMOKE_TEST_READY_PATH=/ — path polled until server responds
14
14
  * SMOKE_TEST_USE_RUNNING_SERVER=true — reuse server already on port (default true)
15
- * SMOKE_TEST_SKIP_BUILD=true — skip pnpm build when SERVER_SCRIPT=start (post-build deploy check)
15
+ * SMOKE_TEST_SKIP_BUILD=true — skip pnpm build when SERVER_SCRIPT is start:dev (post-build deploy check)
16
16
  * SMOKE_TEST_VALIDATE_ROUTES=false — skip route-build-policy.json check after build (default on when file exists)
17
17
  * SMOKE_TEST_VALIDATE_ANALYTICS_CONTEXT=false — skip dual AnalyticsProvider chunk scan (default on when .next/static/chunks exists)
18
18
  * SMOKE_TEST_SKIP_INTEGRITY=true — HTTP smoke only (set by smoke-test-one when cmsIntegrity runs in parallel)
19
19
  * LOG_CMS_FETCH=1 — set when VERIFY_CACHE or AUDIT_CACHE_LOGS is true
20
20
  */
21
21
 
22
- import net from 'node:net';
22
+ import { spawn, spawnSync } from 'node:child_process';
23
23
  import fs from 'node:fs';
24
+ import net from 'node:net';
24
25
  import path from 'node:path';
25
26
  import { fileURLToPath } from 'node:url';
26
- import { spawn, spawnSync } from 'node:child_process';
27
27
 
28
28
  const packageDir = path.dirname(fileURLToPath(import.meta.url));
29
29
 
@@ -277,7 +277,7 @@ const cacheSkipSeverity =
277
277
  const useRunningServer = (env.SMOKE_TEST_USE_RUNNING_SERVER ?? 'true').toLowerCase() !== 'false';
278
278
  const readyPath = env.SMOKE_TEST_READY_PATH ?? '/';
279
279
  const readyUrl = `${baseUrl}${readyPath.startsWith('/') ? readyPath : `/${readyPath}`}`;
280
- const isProductionStart = serverScript === 'start';
280
+ const isProductionStart = serverScript === 'start' || serverScript === 'start:dev';
281
281
  const skipBuild = (env.SMOKE_TEST_SKIP_BUILD ?? '').toLowerCase() === 'true';
282
282
  const validateRoutes = (env.SMOKE_TEST_VALIDATE_ROUTES ?? 'true').toLowerCase() !== 'false';
283
283
  const routePolicyPath = path.join(appDir, 'route-build-policy.json');