@tangle-network/agent-app 0.60.63 → 0.60.64
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/{DesignCanvasEditor-3DL3PF6P.js → DesignCanvasEditor-UOOPYYYR.js} +3 -3
- package/dist/VaultPane-XUAGL5SP.js +7 -0
- package/dist/agent-profiles/d1.js +3 -3
- package/dist/agent-profiles/index.js +3 -3
- package/dist/assistant/index.js +5 -4
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-react/index.js +1 -1
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-FAU5FIFD.js → chunk-2FLSODOX.js} +3 -2
- package/dist/chunk-2FLSODOX.js.map +1 -0
- package/dist/{chunk-J2O76TTS.js → chunk-7UB4K2R2.js} +27 -15
- package/dist/{chunk-J2O76TTS.js.map → chunk-7UB4K2R2.js.map} +1 -1
- package/dist/{chunk-T2IESIJ7.js → chunk-BMZTYGKE.js} +2 -2
- package/dist/{chunk-N7ZJWESQ.js → chunk-KBTY4AAU.js} +274 -4
- package/dist/chunk-KBTY4AAU.js.map +1 -0
- package/dist/{chunk-S2G5NAWV.js → chunk-KSITU6BQ.js} +4 -4
- package/dist/{chunk-CN5HNTU6.js → chunk-NRG2YHGY.js} +2 -2
- package/dist/{chunk-GNA5I5NM.js → chunk-ORFRFCXQ.js} +53 -22
- package/dist/chunk-ORFRFCXQ.js.map +1 -0
- package/dist/{chunk-O3ZM5QPC.js → chunk-OUW5AI2G.js} +4 -4
- package/dist/chunk-OUW5AI2G.js.map +1 -0
- package/dist/{chunk-M36GXE2W.js → chunk-QXKKS3I4.js} +3 -3
- package/dist/{chunk-Y6LE5CAW.js → chunk-RYUTKTOR.js} +20 -13
- package/dist/chunk-RYUTKTOR.js.map +1 -0
- package/dist/{chunk-QBNV6BJ4.js → chunk-ST3ARHJH.js} +3 -2
- package/dist/chunk-ST3ARHJH.js.map +1 -0
- package/dist/{chunk-4DIO2LTR.js → chunk-TMOYOMSW.js} +5 -5
- package/dist/{chunk-4DIO2LTR.js.map → chunk-TMOYOMSW.js.map} +1 -1
- package/dist/{chunk-J7TCMW2J.js → chunk-XMIV374H.js} +2 -2
- package/dist/{chunk-XCBDWT5H.js → chunk-Z362IHYL.js} +2 -2
- package/dist/{chunk-VUXCM5ZO.js → chunk-ZZACC24K.js} +1 -1
- package/dist/{chunk-VUXCM5ZO.js.map → chunk-ZZACC24K.js.map} +1 -1
- package/dist/design-canvas-react/index.js +3 -3
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/launch-invariants/cli.js +2 -2
- package/dist/launch-invariants/index.js +1 -1
- package/dist/launch-invariants/testing.js +2 -2
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/sandbox/index.js +4 -4
- package/dist/signoff/cli.js +7 -2
- package/dist/signoff/cli.js.map +1 -1
- package/dist/signoff/index.d.ts +2 -0
- package/dist/signoff/index.js +15 -1
- package/dist/signoff/shell-alignment-cli.d.ts +8 -0
- package/dist/signoff/shell-alignment.d.ts +82 -0
- package/dist/studio-react/index.js +1 -1
- package/dist/theme/brand.generated.d.ts +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/tokens.css +7 -2
- package/dist/tools/index.js +4 -4
- package/dist/vault/index.js +1 -1
- package/dist/vault/lazy.js +1 -1
- package/dist/web-react/index.d.ts +1 -1
- package/dist/web-react/index.js +7 -3
- package/dist/web-react/lazy-load-boundary.d.ts +19 -1
- package/dist/work-product/index.js +2 -2
- package/dist/workspace-export/index.js +30 -9
- package/dist/workspace-export/index.js.map +1 -1
- package/dist/workspace-export/react.js +14 -5
- package/dist/workspace-export/react.js.map +1 -1
- package/package.json +11 -11
- package/dist/VaultPane-A2RGT5PI.js +0 -7
- package/dist/chunk-FAU5FIFD.js.map +0 -1
- package/dist/chunk-GNA5I5NM.js.map +0 -1
- package/dist/chunk-N7ZJWESQ.js.map +0 -1
- package/dist/chunk-O3ZM5QPC.js.map +0 -1
- package/dist/chunk-QBNV6BJ4.js.map +0 -1
- package/dist/chunk-Y6LE5CAW.js.map +0 -1
- /package/dist/{DesignCanvasEditor-3DL3PF6P.js.map → DesignCanvasEditor-UOOPYYYR.js.map} +0 -0
- /package/dist/{VaultPane-A2RGT5PI.js.map → VaultPane-XUAGL5SP.js.map} +0 -0
- /package/dist/{chunk-T2IESIJ7.js.map → chunk-BMZTYGKE.js.map} +0 -0
- /package/dist/{chunk-S2G5NAWV.js.map → chunk-KSITU6BQ.js.map} +0 -0
- /package/dist/{chunk-CN5HNTU6.js.map → chunk-NRG2YHGY.js.map} +0 -0
- /package/dist/{chunk-M36GXE2W.js.map → chunk-QXKKS3I4.js.map} +0 -0
- /package/dist/{chunk-J7TCMW2J.js.map → chunk-XMIV374H.js.map} +0 -0
- /package/dist/{chunk-XCBDWT5H.js.map → chunk-Z362IHYL.js.map} +0 -0
|
@@ -443,7 +443,7 @@ function runCommand(options) {
|
|
|
443
443
|
killGraceMs = DEFAULT_KILL_GRACE_MS,
|
|
444
444
|
onData
|
|
445
445
|
} = options;
|
|
446
|
-
return new Promise((
|
|
446
|
+
return new Promise((resolve5, reject) => {
|
|
447
447
|
const startedAt = Date.now();
|
|
448
448
|
const buffer = new BoundedOutput(maxOutputBytes);
|
|
449
449
|
let timedOut = false;
|
|
@@ -493,7 +493,7 @@ function runCommand(options) {
|
|
|
493
493
|
});
|
|
494
494
|
child.on("close", (code, sig) => {
|
|
495
495
|
cleanup();
|
|
496
|
-
|
|
496
|
+
resolve5({
|
|
497
497
|
command,
|
|
498
498
|
cwd,
|
|
499
499
|
// A signalled process reports code `null`; 128+n is the shell's own
|
|
@@ -1175,6 +1175,269 @@ function formatSignoffLine(report) {
|
|
|
1175
1175
|
return `${report.ok ? "signoff PASS" : "signoff FAIL"} ${report.repo.head.slice(0, 12)} \u2014 ${passed}/${report.steps.length} steps, ${ms(report.wallClockMs)} wall (${ms(report.serialMs)} serial), seed ${report.seedBase}, ${report.install.cacheHit ? "warm" : "cold"} store, clean install`;
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
|
+
// src/signoff/shell-alignment.ts
|
|
1179
|
+
var SHELL_ALIGNMENT_TOLERANCE_PX = 0.5;
|
|
1180
|
+
function judgeShellAlignment(sample, tolerancePx = SHELL_ALIGNMENT_TOLERANCE_PX) {
|
|
1181
|
+
const where = { route: sample.route, width: sample.width, theme: sample.theme };
|
|
1182
|
+
const anchor = sample.rail ?? sample.phoneBar;
|
|
1183
|
+
if (!anchor) {
|
|
1184
|
+
return [{
|
|
1185
|
+
...where,
|
|
1186
|
+
header: "(shell)",
|
|
1187
|
+
offsetPx: Number.NaN,
|
|
1188
|
+
expectedY: Number.NaN,
|
|
1189
|
+
actualY: Number.NaN,
|
|
1190
|
+
reason: "no rail divider or phone bar found: the route does not render the shared shell"
|
|
1191
|
+
}];
|
|
1192
|
+
}
|
|
1193
|
+
const findings = [];
|
|
1194
|
+
if (sample.rail) {
|
|
1195
|
+
const expectedY2 = sample.rail.bottom;
|
|
1196
|
+
for (const header of sample.headers) {
|
|
1197
|
+
const offsetPx = header.bottom - expectedY2;
|
|
1198
|
+
if (Math.abs(offsetPx) > tolerancePx) {
|
|
1199
|
+
findings.push({
|
|
1200
|
+
...where,
|
|
1201
|
+
header: header.label,
|
|
1202
|
+
offsetPx,
|
|
1203
|
+
expectedY: expectedY2,
|
|
1204
|
+
actualY: header.bottom,
|
|
1205
|
+
reason: `header divider is ${formatPx(offsetPx)} from the rail's first divider`
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
return findings;
|
|
1210
|
+
}
|
|
1211
|
+
const bar = sample.phoneBar;
|
|
1212
|
+
const barOffset = bar.bottom - bar.top - sample.shellHeaderPx;
|
|
1213
|
+
if (Math.abs(barOffset) > tolerancePx) {
|
|
1214
|
+
findings.push({
|
|
1215
|
+
...where,
|
|
1216
|
+
header: bar.label,
|
|
1217
|
+
offsetPx: barOffset,
|
|
1218
|
+
expectedY: bar.top + sample.shellHeaderPx,
|
|
1219
|
+
actualY: bar.bottom,
|
|
1220
|
+
reason: `phone bar is ${formatPx(barOffset)} off one shell row`
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
const expectedY = bar.bottom + sample.shellHeaderPx;
|
|
1224
|
+
for (const header of sample.headers) {
|
|
1225
|
+
const offsetPx = header.bottom - expectedY;
|
|
1226
|
+
if (Math.abs(offsetPx) > tolerancePx) {
|
|
1227
|
+
findings.push({
|
|
1228
|
+
...where,
|
|
1229
|
+
header: header.label,
|
|
1230
|
+
offsetPx,
|
|
1231
|
+
expectedY,
|
|
1232
|
+
actualY: header.bottom,
|
|
1233
|
+
reason: `header under the phone bar is ${formatPx(offsetPx)} off one shell row`
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
return findings;
|
|
1238
|
+
}
|
|
1239
|
+
function formatPx(value) {
|
|
1240
|
+
return `${value > 0 ? "+" : ""}${Math.round(value * 100) / 100}px`;
|
|
1241
|
+
}
|
|
1242
|
+
function collectShellDividers() {
|
|
1243
|
+
const probe = document.createElement("div");
|
|
1244
|
+
probe.style.cssText = "position:absolute;visibility:hidden;height:var(--shell-header-height, 3.5rem)";
|
|
1245
|
+
document.body.appendChild(probe);
|
|
1246
|
+
const shellHeaderPx = probe.getBoundingClientRect().height || 56;
|
|
1247
|
+
probe.remove();
|
|
1248
|
+
const viewport = document.documentElement.clientWidth;
|
|
1249
|
+
const describe = (el) => {
|
|
1250
|
+
const id = el.id ? `#${el.id}` : "";
|
|
1251
|
+
const classes = typeof el.className === "string" ? el.className.trim().split(/\s+/).filter((c) => !c.includes(":") && !c.includes("[")).slice(0, 3).map((c) => `.${c}`).join("") : "";
|
|
1252
|
+
const shell = el.hasAttribute("data-shell-header") ? "[data-shell-header]" : "";
|
|
1253
|
+
return `${el.tagName.toLowerCase()}${id}${classes}${shell}`;
|
|
1254
|
+
};
|
|
1255
|
+
const controls = /* @__PURE__ */ new Set(["INPUT", "TEXTAREA", "SELECT", "BUTTON", "HR", "TABLE", "TR", "TD", "TH"]);
|
|
1256
|
+
const visibleColor = (color) => !/^(transparent|rgba\([^)]*,\s*0\))$/.test(color.trim());
|
|
1257
|
+
const rows = [];
|
|
1258
|
+
for (const el of Array.from(document.body.querySelectorAll("*"))) {
|
|
1259
|
+
if (controls.has(el.tagName) || el.closest('[role="dialog"],[role="menu"],[role="listbox"],[data-radix-popper-content-wrapper]')) continue;
|
|
1260
|
+
const rect = el.getBoundingClientRect();
|
|
1261
|
+
if (rect.width < 160 || rect.height < 20 || rect.top > 140 || rect.bottom > 240) continue;
|
|
1262
|
+
const style = getComputedStyle(el);
|
|
1263
|
+
if (style.visibility === "hidden" || style.display === "none" || Number(style.opacity) === 0) continue;
|
|
1264
|
+
const bottomWidth = Number.parseFloat(style.borderBottomWidth);
|
|
1265
|
+
if (!(bottomWidth > 0) || style.borderBottomStyle === "none" || !visibleColor(style.borderBottomColor)) continue;
|
|
1266
|
+
if (Number.parseFloat(style.borderTopWidth) > 0 && style.borderTopStyle !== "none") continue;
|
|
1267
|
+
rows.push({ label: describe(el), left: rect.left, right: rect.right, top: rect.top, bottom: rect.bottom });
|
|
1268
|
+
}
|
|
1269
|
+
const rail = rows.filter((r) => r.left < 2 && r.right < Math.min(480, viewport * 0.5) && r.top < 16).sort((a, b) => a.bottom - b.bottom)[0] ?? null;
|
|
1270
|
+
const phoneBar = rail ? null : rows.filter((r) => r.left < 2 && r.right > viewport - 2 && r.top < 2).sort((a, b) => a.bottom - b.bottom)[0] ?? null;
|
|
1271
|
+
const paneTop = phoneBar ? phoneBar.bottom : 0;
|
|
1272
|
+
const headers = rows.filter((r) => r !== rail && r !== phoneBar && (!rail || r.left >= rail.right - 1) && r.top >= paneTop - 1 && r.top < paneTop + 48 && r.bottom > paneTop + 20 && r.bottom < paneTop + 160);
|
|
1273
|
+
const unique = headers.filter((r, i) => !headers.some((o, j) => j !== i && Math.abs(o.bottom - r.bottom) < 0.01 && o.left <= r.left && o.right >= r.right && (o.right - o.left > r.right - r.left || j < i)));
|
|
1274
|
+
return { shellHeaderPx, rail, phoneBar, headers: unique };
|
|
1275
|
+
}
|
|
1276
|
+
var PHONE_HEIGHT = 844;
|
|
1277
|
+
var DESKTOP_HEIGHT = 900;
|
|
1278
|
+
async function checkShellAlignment(options) {
|
|
1279
|
+
const { chromium } = await import("playwright");
|
|
1280
|
+
const widths = options.widths ?? [1440, 390];
|
|
1281
|
+
const themes = options.themes ?? ["light", "dark"];
|
|
1282
|
+
const browser = await chromium.launch();
|
|
1283
|
+
const samples = [];
|
|
1284
|
+
const findings = [];
|
|
1285
|
+
try {
|
|
1286
|
+
for (const width of widths) {
|
|
1287
|
+
for (const theme of themes) {
|
|
1288
|
+
const context = await browser.newContext({
|
|
1289
|
+
viewport: { width, height: width < 768 ? PHONE_HEIGHT : DESKTOP_HEIGHT },
|
|
1290
|
+
colorScheme: theme,
|
|
1291
|
+
...options.storageState ? { storageState: options.storageState } : {}
|
|
1292
|
+
});
|
|
1293
|
+
if (options.themeScript) {
|
|
1294
|
+
await context.addInitScript({ content: `(() => { const theme = ${JSON.stringify(theme)}; ${options.themeScript} })()` });
|
|
1295
|
+
}
|
|
1296
|
+
const page = await context.newPage();
|
|
1297
|
+
for (const route of options.routes) {
|
|
1298
|
+
await page.goto(new URL(route, options.baseUrl).toString(), { waitUntil: "domcontentloaded" });
|
|
1299
|
+
await page.waitForSelector(options.readySelector ?? "[data-shell-header]", { state: "visible", timeout: 15e3 }).catch(() => void 0);
|
|
1300
|
+
await page.waitForLoadState("networkidle", { timeout: 3e3 }).catch(() => void 0);
|
|
1301
|
+
await page.evaluate(() => document.fonts?.ready);
|
|
1302
|
+
const geometry = await page.evaluate(collectShellDividers);
|
|
1303
|
+
const sample = { route, width, theme, ...geometry };
|
|
1304
|
+
samples.push(sample);
|
|
1305
|
+
const found = judgeShellAlignment(sample, options.tolerancePx);
|
|
1306
|
+
findings.push(...found);
|
|
1307
|
+
if (found.length && options.screenshotDir) {
|
|
1308
|
+
const name = `${route.replace(/[^a-z0-9]+/gi, "_").replace(/^_|_$/g, "") || "root"}-${width}-${theme}.png`;
|
|
1309
|
+
await page.screenshot({ path: `${options.screenshotDir}/${name}`, timeout: 1e4, animations: "disabled" }).catch(() => void 0);
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
await context.close();
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
} finally {
|
|
1316
|
+
await browser.close();
|
|
1317
|
+
}
|
|
1318
|
+
const maxOffsetPx = findings.reduce((max, f) => Number.isFinite(f.offsetPx) ? Math.max(max, Math.abs(f.offsetPx)) : max, 0);
|
|
1319
|
+
return { samples, findings, maxOffsetPx };
|
|
1320
|
+
}
|
|
1321
|
+
function formatShellAlignmentReport(report) {
|
|
1322
|
+
const lines = [`shell alignment: ${report.samples.length} pages, ${report.findings.length} misaligned, max offset ${Math.round(report.maxOffsetPx * 100) / 100}px`];
|
|
1323
|
+
for (const f of report.findings) lines.push(` FAIL ${f.route} @${f.width} ${f.theme}: ${f.header} ${f.reason} (y ${round(f.actualY)} vs ${round(f.expectedY)})`);
|
|
1324
|
+
if (!report.findings.length) lines.push(" ok: every main header divider continues the rail's first divider");
|
|
1325
|
+
return lines.join("\n");
|
|
1326
|
+
}
|
|
1327
|
+
function round(value) {
|
|
1328
|
+
return Number.isFinite(value) ? String(Math.round(value * 100) / 100) : "?";
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
// src/signoff/shell-alignment-cli.ts
|
|
1332
|
+
import { mkdirSync as mkdirSync3, readFileSync as readFileSync5, writeFileSync as writeFileSync3 } from "fs";
|
|
1333
|
+
import { dirname as dirname3, resolve as resolve4 } from "path";
|
|
1334
|
+
function shellAlignmentUsage() {
|
|
1335
|
+
return [
|
|
1336
|
+
"Usage: agent-app-signoff shell-alignment --base-url <url> --route <path> [--route <path> ...] [options]",
|
|
1337
|
+
"",
|
|
1338
|
+
" --widths <w,w> viewport widths (default 1440,390)",
|
|
1339
|
+
" --themes <t,t> light,dark (default both)",
|
|
1340
|
+
" --storage-state <file> Playwright storage state for an authenticated app",
|
|
1341
|
+
" --theme-script <file> JS run before each page loads with `theme` in scope",
|
|
1342
|
+
" --ready <selector> wait for this after navigation (default [data-shell-header])",
|
|
1343
|
+
" --tolerance <px> allowed divider offset (default 0.5)",
|
|
1344
|
+
" --screenshots <dir> screenshot each failing page here",
|
|
1345
|
+
" --json <path> write every sample and finding"
|
|
1346
|
+
].join("\n");
|
|
1347
|
+
}
|
|
1348
|
+
var ShellAlignmentUsageError = class extends Error {
|
|
1349
|
+
};
|
|
1350
|
+
function parseShellAlignmentArgs(argv) {
|
|
1351
|
+
const routes = [];
|
|
1352
|
+
let baseUrl;
|
|
1353
|
+
const out = {};
|
|
1354
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
1355
|
+
const flag = argv[index];
|
|
1356
|
+
const take = () => {
|
|
1357
|
+
const value = argv[index + 1];
|
|
1358
|
+
if (value === void 0) throw new ShellAlignmentUsageError(`${flag} needs a value`);
|
|
1359
|
+
index += 1;
|
|
1360
|
+
return value;
|
|
1361
|
+
};
|
|
1362
|
+
switch (flag) {
|
|
1363
|
+
case "--base-url":
|
|
1364
|
+
baseUrl = take();
|
|
1365
|
+
break;
|
|
1366
|
+
case "--route":
|
|
1367
|
+
routes.push(take());
|
|
1368
|
+
break;
|
|
1369
|
+
case "--widths":
|
|
1370
|
+
out.widths = take().split(",").map((w) => {
|
|
1371
|
+
const n = Number(w);
|
|
1372
|
+
if (!Number.isInteger(n) || n < 200) throw new ShellAlignmentUsageError(`--widths needs integers of at least 200, got "${w}"`);
|
|
1373
|
+
return n;
|
|
1374
|
+
});
|
|
1375
|
+
break;
|
|
1376
|
+
case "--themes":
|
|
1377
|
+
out.themes = take().split(",").map((t) => {
|
|
1378
|
+
if (t !== "light" && t !== "dark") throw new ShellAlignmentUsageError(`--themes takes light and dark, got "${t}"`);
|
|
1379
|
+
return t;
|
|
1380
|
+
});
|
|
1381
|
+
break;
|
|
1382
|
+
case "--storage-state":
|
|
1383
|
+
out.storageState = resolve4(take());
|
|
1384
|
+
break;
|
|
1385
|
+
case "--theme-script":
|
|
1386
|
+
out.themeScript = readFileSync5(resolve4(take()), "utf8");
|
|
1387
|
+
break;
|
|
1388
|
+
case "--ready":
|
|
1389
|
+
out.readySelector = take();
|
|
1390
|
+
break;
|
|
1391
|
+
case "--tolerance": {
|
|
1392
|
+
const n = Number(take());
|
|
1393
|
+
if (!(n >= 0)) throw new ShellAlignmentUsageError("--tolerance needs a non-negative number");
|
|
1394
|
+
out.tolerancePx = n;
|
|
1395
|
+
break;
|
|
1396
|
+
}
|
|
1397
|
+
case "--screenshots":
|
|
1398
|
+
out.screenshotDir = resolve4(take());
|
|
1399
|
+
break;
|
|
1400
|
+
case "--json":
|
|
1401
|
+
out.jsonPath = take();
|
|
1402
|
+
break;
|
|
1403
|
+
default:
|
|
1404
|
+
throw new ShellAlignmentUsageError(`unknown option: ${flag}`);
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
if (!baseUrl) throw new ShellAlignmentUsageError("--base-url is required");
|
|
1408
|
+
if (!routes.length) throw new ShellAlignmentUsageError("at least one --route is required");
|
|
1409
|
+
return { ...out, baseUrl, routes };
|
|
1410
|
+
}
|
|
1411
|
+
async function runShellAlignmentCli(argv) {
|
|
1412
|
+
if (argv.includes("--help") || argv.includes("-h")) {
|
|
1413
|
+
process.stdout.write(`${shellAlignmentUsage()}
|
|
1414
|
+
`);
|
|
1415
|
+
return 0;
|
|
1416
|
+
}
|
|
1417
|
+
let options;
|
|
1418
|
+
try {
|
|
1419
|
+
options = parseShellAlignmentArgs(argv);
|
|
1420
|
+
} catch (error) {
|
|
1421
|
+
if (!(error instanceof ShellAlignmentUsageError)) throw error;
|
|
1422
|
+
process.stderr.write(`agent-app-signoff shell-alignment: ${error.message}
|
|
1423
|
+
|
|
1424
|
+
${shellAlignmentUsage()}
|
|
1425
|
+
`);
|
|
1426
|
+
return 2;
|
|
1427
|
+
}
|
|
1428
|
+
if (options.screenshotDir) mkdirSync3(options.screenshotDir, { recursive: true });
|
|
1429
|
+
const report = await checkShellAlignment(options);
|
|
1430
|
+
if (options.jsonPath) {
|
|
1431
|
+
const abs = resolve4(options.jsonPath);
|
|
1432
|
+
mkdirSync3(dirname3(abs), { recursive: true });
|
|
1433
|
+
writeFileSync3(abs, `${JSON.stringify(report, null, 2)}
|
|
1434
|
+
`);
|
|
1435
|
+
}
|
|
1436
|
+
process.stdout.write(`${formatShellAlignmentReport(report)}
|
|
1437
|
+
`);
|
|
1438
|
+
return report.findings.length ? 1 : 0;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1178
1441
|
export {
|
|
1179
1442
|
WORKER_COMPATIBILITY_DATE_FLOOR,
|
|
1180
1443
|
checkWorkerDefaults,
|
|
@@ -1182,6 +1445,13 @@ export {
|
|
|
1182
1445
|
loadSignoffConfig,
|
|
1183
1446
|
runSignoff,
|
|
1184
1447
|
formatSignoffReport,
|
|
1185
|
-
formatSignoffLine
|
|
1448
|
+
formatSignoffLine,
|
|
1449
|
+
SHELL_ALIGNMENT_TOLERANCE_PX,
|
|
1450
|
+
judgeShellAlignment,
|
|
1451
|
+
collectShellDividers,
|
|
1452
|
+
checkShellAlignment,
|
|
1453
|
+
formatShellAlignmentReport,
|
|
1454
|
+
parseShellAlignmentArgs,
|
|
1455
|
+
runShellAlignmentCli
|
|
1186
1456
|
};
|
|
1187
|
-
//# sourceMappingURL=chunk-
|
|
1457
|
+
//# sourceMappingURL=chunk-KBTY4AAU.js.map
|