@reddoorla/maintenance 0.36.0 → 0.36.1
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/cli/bin.js +11 -10
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/commands/audit.js +11 -10
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -229,11 +229,6 @@ type WebsiteRow = {
|
|
|
229
229
|
securityVulnsHigh: number | null;
|
|
230
230
|
securityVulnsModerate: number | null;
|
|
231
231
|
securityVulnsLow: number | null;
|
|
232
|
-
/** Fleet-homepage VISIBILITY flag (the per-site token gate was retired
|
|
233
|
-
* 2026-06-10 — the dashboard is operator-only, gated by DASHBOARD_PASSWORD).
|
|
234
|
-
* A non-null value opts the site into the `/` fleet view; `null` hides it.
|
|
235
|
-
* Any truthy marker works; the value is no longer a secret. */
|
|
236
|
-
dashboardToken: string | null;
|
|
237
232
|
/** Per-site copy overrides (M6a). Blank → null → the DEFAULT_COPY value. */
|
|
238
233
|
copyIntro: string | null;
|
|
239
234
|
copyContact: string | null;
|
package/dist/index.js
CHANGED
|
@@ -2620,6 +2620,10 @@ function trimToNull(raw) {
|
|
|
2620
2620
|
const trimmed = raw.trim();
|
|
2621
2621
|
return trimmed.length > 0 ? trimmed : null;
|
|
2622
2622
|
}
|
|
2623
|
+
var ACTIVE_STATUSES = /* @__PURE__ */ new Set([
|
|
2624
|
+
"maintenance",
|
|
2625
|
+
"launch period"
|
|
2626
|
+
]);
|
|
2623
2627
|
function mapRow(rec) {
|
|
2624
2628
|
const f = rec.fields;
|
|
2625
2629
|
const attachments = f["Header image"] ?? [];
|
|
@@ -2654,12 +2658,6 @@ function mapRow(rec) {
|
|
|
2654
2658
|
securityVulnsHigh: f["Security Vulns High"] ?? null,
|
|
2655
2659
|
securityVulnsModerate: f["Security Vulns Moderate"] ?? null,
|
|
2656
2660
|
securityVulnsLow: f["Security Vulns Low"] ?? null,
|
|
2657
|
-
dashboardToken: (() => {
|
|
2658
|
-
const raw = f["Dashboard Token"];
|
|
2659
|
-
if (typeof raw !== "string") return null;
|
|
2660
|
-
const trimmed = raw.trim();
|
|
2661
|
-
return trimmed.length > 0 ? trimmed : null;
|
|
2662
|
-
})(),
|
|
2663
2661
|
copyIntro: trimToNull(f["Copy \u2014 Intro"]),
|
|
2664
2662
|
copyContact: trimToNull(f["Copy \u2014 Contact"]),
|
|
2665
2663
|
copyFooter: trimToNull(f["Copy \u2014 Footer"]),
|
|
@@ -2684,7 +2682,6 @@ async function updateLaunched(base, recordId, at) {
|
|
|
2684
2682
|
}
|
|
2685
2683
|
|
|
2686
2684
|
// src/inventory/airtable.ts
|
|
2687
|
-
var AUDITABLE_STATUSES = /* @__PURE__ */ new Set(["maintenance", "launch period"]);
|
|
2688
2685
|
function fromAirtableBase(base, opts = {}) {
|
|
2689
2686
|
return async () => {
|
|
2690
2687
|
const workdir = opts.workdir ?? process.env.REDDOOR_FLEET_WORKDIR;
|
|
@@ -2694,7 +2691,7 @@ function fromAirtableBase(base, opts = {}) {
|
|
|
2694
2691
|
);
|
|
2695
2692
|
}
|
|
2696
2693
|
const websites = await listWebsites(base);
|
|
2697
|
-
return websites.filter((w) =>
|
|
2694
|
+
return websites.filter((w) => w.status !== null && ACTIVE_STATUSES.has(w.status) && w.url.length > 0).flatMap((w) => {
|
|
2698
2695
|
const slug = siteSlug(w.name);
|
|
2699
2696
|
if (slug.length === 0) {
|
|
2700
2697
|
console.warn(
|