@reddoorla/maintenance 0.85.2 → 0.87.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.
- package/README.md +8 -0
- package/dist/airtable-ZBUPQJSC.js +9 -0
- package/dist/{announce-GIAYN67S.js → announce-I2Z4JN3I.js} +58 -30
- package/dist/announce-I2Z4JN3I.js.map +1 -0
- package/dist/attachments-NLZIJ5NU.js +9 -0
- package/dist/{bump-deps-SWJB6H5V.js → bump-deps-CGVELRLK.js} +9 -9
- package/dist/{chunk-SDUJIANJ.js → chunk-2NJQLSEU.js} +3 -3
- package/dist/chunk-2NQUCS7O.js +243 -0
- package/dist/chunk-2NQUCS7O.js.map +1 -0
- package/dist/{chunk-ZTPPCHDB.js → chunk-3G25KIWW.js} +4 -4
- package/dist/{chunk-DTTIFYAM.js → chunk-3JQ2FO3D.js} +44 -405
- package/dist/chunk-3JQ2FO3D.js.map +1 -0
- package/dist/chunk-3SF7D4DY.js +359 -0
- package/dist/chunk-3SF7D4DY.js.map +1 -0
- package/dist/{chunk-37S6L6G4.js → chunk-5UINJNAJ.js} +72 -2
- package/dist/chunk-5UINJNAJ.js.map +1 -0
- package/dist/{chunk-THEFTZ7F.js → chunk-62CMMGEO.js} +5 -5
- package/dist/{chunk-FDIFTIXC.js → chunk-6TWWY7ZU.js} +2 -2
- package/dist/{chunk-PBWDDDQH.js → chunk-7BZUOZPU.js} +2 -2
- package/dist/{chunk-577HCGZO.js → chunk-7NYN2P6I.js} +44 -26
- package/dist/chunk-7NYN2P6I.js.map +1 -0
- package/dist/{chunk-UYCAF77E.js → chunk-7RJ2HMMJ.js} +3 -3
- package/dist/{chunk-Q276MZ7E.js → chunk-7UAYMAKR.js} +2 -2
- package/dist/{chunk-MGR2H7F4.js → chunk-BBUSGEES.js} +58 -45
- package/dist/chunk-BBUSGEES.js.map +1 -0
- package/dist/chunk-BNM5POSJ.js +284 -0
- package/dist/chunk-BNM5POSJ.js.map +1 -0
- package/dist/{chunk-R6FPFMOS.js → chunk-BQRFQSGY.js} +3 -3
- package/dist/{chunk-NWB4O5EY.js → chunk-C6CLRKPV.js} +5 -5
- package/dist/chunk-C6CLRKPV.js.map +1 -0
- package/dist/{chunk-7J53SUT6.js → chunk-CROKUHJB.js} +4 -4
- package/dist/chunk-DEWJMMG3.js +274 -0
- package/dist/chunk-DEWJMMG3.js.map +1 -0
- package/dist/{chunk-SEEA6RXF.js → chunk-DJZWYIPP.js} +2 -2
- package/dist/chunk-DJZWYIPP.js.map +1 -0
- package/dist/chunk-EVBCK2KC.js +68 -0
- package/dist/chunk-EVBCK2KC.js.map +1 -0
- package/dist/chunk-F3JWOPTG.js +202 -0
- package/dist/chunk-F3JWOPTG.js.map +1 -0
- package/dist/{chunk-GZNBCHAZ.js → chunk-HEWSRXYV.js} +4 -4
- package/dist/chunk-HHMMUR4P.js +335 -0
- package/dist/chunk-HHMMUR4P.js.map +1 -0
- package/dist/chunk-HSI6Q7MI.js +1238 -0
- package/dist/chunk-HSI6Q7MI.js.map +1 -0
- package/dist/{chunk-MPBXOJ3N.js → chunk-IY6256GK.js} +33 -2
- package/dist/chunk-IY6256GK.js.map +1 -0
- package/dist/{chunk-LS6QPANO.js → chunk-IYSEC543.js} +2 -2
- package/dist/{chunk-DC5H7KEQ.js → chunk-JHGHLKFS.js} +2 -2
- package/dist/{chunk-4DHQCN5H.js → chunk-LBYOLBW7.js} +17 -2
- package/dist/chunk-LBYOLBW7.js.map +1 -0
- package/dist/{chunk-6QRLRT3P.js → chunk-MT2JINSS.js} +16 -265
- package/dist/chunk-MT2JINSS.js.map +1 -0
- package/dist/{chunk-TP5M2NQB.js → chunk-NCMZMLY7.js} +3 -3
- package/dist/{chunk-COZPL62X.js → chunk-NDWYJLRF.js} +24 -139
- package/dist/chunk-NDWYJLRF.js.map +1 -0
- package/dist/{chunk-3YXDSCM6.js → chunk-NXNPDCF3.js} +29 -11
- package/dist/chunk-NXNPDCF3.js.map +1 -0
- package/dist/chunk-NYUYNYQL.js +48 -0
- package/dist/chunk-NYUYNYQL.js.map +1 -0
- package/dist/chunk-P6AORG32.js +415 -0
- package/dist/chunk-P6AORG32.js.map +1 -0
- package/dist/chunk-PTDMVGKL.js +31 -0
- package/dist/chunk-PTDMVGKL.js.map +1 -0
- package/dist/{chunk-D4FVAIEJ.js → chunk-PZR4EBPY.js} +5 -2
- package/dist/chunk-PZR4EBPY.js.map +1 -0
- package/dist/{chunk-LTB6KVJW.js → chunk-SDDPUAWH.js} +13 -11
- package/dist/{chunk-LTB6KVJW.js.map → chunk-SDDPUAWH.js.map} +1 -1
- package/dist/{chunk-WYYQK4D3.js → chunk-TD2NNXLZ.js} +13 -13
- package/dist/{chunk-ZMIPG6TR.js → chunk-TVL5MVUF.js} +4 -4
- package/dist/chunk-UDRHAQT7.js +172 -0
- package/dist/chunk-UDRHAQT7.js.map +1 -0
- package/dist/chunk-VAD43MOR.js +72 -0
- package/dist/chunk-VAD43MOR.js.map +1 -0
- package/dist/chunk-VSBFM7DS.js +229 -0
- package/dist/chunk-VSBFM7DS.js.map +1 -0
- package/dist/{chunk-VRWUL4TR.js → chunk-XHHMM5HX.js} +2 -2
- package/dist/{chunk-RJB3QUSP.js → chunk-XIDUYLSR.js} +3 -3
- package/dist/{chunk-QG6OSL4M.js → chunk-XUGSZP7Z.js} +2 -2
- package/dist/{chunk-S56JQJ4F.js → chunk-Y53WOQIJ.js} +3 -3
- package/dist/{chunk-62VF32IC.js → chunk-YFAXOD7Z.js} +10 -6
- package/dist/chunk-YFAXOD7Z.js.map +1 -0
- package/dist/{chunk-ICXV25N7.js → chunk-Z3KYFUN6.js} +3 -3
- package/dist/chunk-ZBDZTJUO.js +129 -0
- package/dist/chunk-ZBDZTJUO.js.map +1 -0
- package/dist/chunk-ZGBEIWSC.js +146 -0
- package/dist/chunk-ZGBEIWSC.js.map +1 -0
- package/dist/cli/bin.js +51 -28
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/commands/audit.d.ts +30 -1
- package/dist/cli/commands/audit.js +69 -33
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/client-AUE3XUPO.js +11 -0
- package/dist/{convert-to-pnpm-AT52NWZB.js → convert-to-pnpm-QFJOEP5V.js} +9 -9
- package/dist/db-UXNIZ2RG.js +217 -0
- package/dist/db-UXNIZ2RG.js.map +1 -0
- package/dist/{digest-UVHYZUYE.js → digest-FW6QMZZJ.js} +26 -22
- package/dist/{digest-UVHYZUYE.js.map → digest-FW6QMZZJ.js.map} +1 -1
- package/dist/dump-P6EBSIOH.js +68 -0
- package/dist/dump-P6EBSIOH.js.map +1 -0
- package/dist/email-KJXASVH5.js +195 -0
- package/dist/email-KJXASVH5.js.map +1 -0
- package/dist/{ensure-site-S25MDDHW.js → ensure-site-4DCEBAPM.js} +25 -16
- package/dist/ensure-site-4DCEBAPM.js.map +1 -0
- package/dist/fleet-events-cF2Om88w.d.ts +24 -0
- package/dist/fleet-state-7TJ2GYT2.js +39 -0
- package/dist/{forms-notify-target-TWN4EH6K.js → forms-notify-target-2EAWCWBW.js} +42 -133
- package/dist/forms-notify-target-2EAWCWBW.js.map +1 -0
- package/dist/{github-signals-G4ILZAJ6.js → github-signals-E2WPYTBK.js} +42 -21
- package/dist/github-signals-E2WPYTBK.js.map +1 -0
- package/dist/{header-image-T7XD37JL.js → header-image-6IC53W27.js} +36 -13
- package/dist/header-image-6IC53W27.js.map +1 -0
- package/dist/header-images-SQBCE5OD.js +88 -0
- package/dist/header-images-SQBCE5OD.js.map +1 -0
- package/dist/{health-endpoint-242WG2OJ.js → health-endpoint-RFXL2F4A.js} +9 -9
- package/dist/health-mirror-L5JBEJVA.js +41 -0
- package/dist/health-mirror-L5JBEJVA.js.map +1 -0
- package/dist/import-airtable-OHVY344G.js +37 -0
- package/dist/index.d.ts +324 -21
- package/dist/index.js +215 -76
- package/dist/index.js.map +1 -1
- package/dist/{init-JN26NTWF.js → init-XRAQZYID.js} +21 -18
- package/dist/{init-JN26NTWF.js.map → init-XRAQZYID.js.map} +1 -1
- package/dist/{launch-JA7Z4CIM.js → launch-IX4Y5JJC.js} +65 -30
- package/dist/launch-IX4Y5JJC.js.map +1 -0
- package/dist/lighthouse-VHI77PFB.js +11 -0
- package/dist/{lighthouse-airtable-BIPM26SZ.js → lighthouse-airtable-3GUWHETW.js} +3 -3
- package/dist/mailchimp-XYCTEEJY.js +72 -0
- package/dist/mailchimp-XYCTEEJY.js.map +1 -0
- package/dist/migrate-GQH237A6.js +7 -0
- package/dist/migrate-GQH237A6.js.map +1 -0
- package/dist/notify-C645PGD5.js +22 -0
- package/dist/notify-C645PGD5.js.map +1 -0
- package/dist/{onboard-53CITIM7.js → onboard-O4IAHJMO.js} +9 -9
- package/dist/orchestrate-YLWQ6KK2.js +31 -0
- package/dist/orchestrate-YLWQ6KK2.js.map +1 -0
- package/dist/parity-56KA2DGR.js +12 -0
- package/dist/parity-56KA2DGR.js.map +1 -0
- package/dist/pipeline-3AANZFCR.js +12 -0
- package/dist/pipeline-3AANZFCR.js.map +1 -0
- package/dist/{preflight-3XPDUHFJ.js → preflight-TNORKGCX.js} +17 -13
- package/dist/{preflight-3XPDUHFJ.js.map → preflight-TNORKGCX.js.map} +1 -1
- package/dist/{prismic-ci-UTQ6LRR3.js → prismic-ci-G2AK53VL.js} +12 -12
- package/dist/{prismic-models-PVES6R5V.js → prismic-models-O6Z3OK3A.js} +18 -13
- package/dist/prismic-models-O6Z3OK3A.js.map +1 -0
- package/dist/prospect/types.d.ts +267 -0
- package/dist/prospect/types.js +1 -0
- package/dist/prospect/types.js.map +1 -0
- package/dist/prospect-audit-KSXUNQ5J.js +174 -0
- package/dist/prospect-audit-KSXUNQ5J.js.map +1 -0
- package/dist/prospect-audits-3PMIO73D.js +19 -0
- package/dist/prospect-audits-3PMIO73D.js.map +1 -0
- package/dist/{protection-audit-64PLLBLI.js → protection-audit-SJO53MEQ.js} +3 -3
- package/dist/recipes/sync-configs.js +3 -3
- package/dist/render-IFOGFB5T.js +10 -0
- package/dist/render-IFOGFB5T.js.map +1 -0
- package/dist/render-from-row-BWSOIYDS.js +17 -0
- package/dist/render-from-row-BWSOIYDS.js.map +1 -0
- package/dist/{renovate-dispatch-ICJGSFCE.js → renovate-dispatch-6GQWTRKX.js} +12 -12
- package/dist/{renovate-dispatch-ICJGSFCE.js.map → renovate-dispatch-6GQWTRKX.js.map} +1 -1
- package/dist/replay-C2LXMJZP.js +66 -0
- package/dist/replay-C2LXMJZP.js.map +1 -0
- package/dist/{report-6CKSWJNG.js → report-R3E3Y7HR.js} +100 -32
- package/dist/report-R3E3Y7HR.js.map +1 -0
- package/dist/report-mirror-4MNORYQ4.js +49 -0
- package/dist/report-mirror-4MNORYQ4.js.map +1 -0
- package/dist/reports/header-image/assets/headline-announcement.png +0 -0
- package/dist/reports/header-image/assets/headline-launch.png +0 -0
- package/dist/reports/header-image/assets/headline-maintenance.png +0 -0
- package/dist/reports/header-image/assets/headline-testing.png +0 -0
- package/dist/reports/header-image/assets/plate-clean.png +0 -0
- package/dist/rerender-3FM6DNRH.js +32 -0
- package/dist/rerender-3FM6DNRH.js.map +1 -0
- package/dist/{self-updating-PPQVV6UA.js → self-updating-UCIWESAX.js} +9 -9
- package/dist/{selftest-CQ6NOX52.js → selftest-VGHWPN72.js} +31 -24
- package/dist/selftest-VGHWPN72.js.map +1 -0
- package/dist/site-mirror-NIREX5ME.js +52 -0
- package/dist/site-mirror-NIREX5ME.js.map +1 -0
- package/dist/smoke-B2GQOSIZ.js +20 -0
- package/dist/smoke-B2GQOSIZ.js.map +1 -0
- package/dist/{smoke-suite-TMCSOYRK.js → smoke-suite-U3UKD3NS.js} +9 -9
- package/dist/{submissions-GJ6ITBRH.js → submissions-IQEJX6FK.js} +3 -3
- package/dist/{svelte-codemods-ZOBDHIES.js → svelte-codemods-GOKXTBHW.js} +9 -9
- package/dist/sync-CTUVXMCK.js +44 -0
- package/dist/sync-CTUVXMCK.js.map +1 -0
- package/dist/{sync-configs-CJXUX6MD.js → sync-configs-SPTLFJCC.js} +9 -9
- package/dist/{upgrade-WLX27UPC.js → upgrade-W6ZR3FJH.js} +9 -9
- package/dist/webhook-VOGOW3W6.js +38 -0
- package/dist/webhook-VOGOW3W6.js.map +1 -0
- package/dist/{websites-SADZR4XQ.js → websites-D6WYFAES.js} +6 -2
- package/dist/websites-D6WYFAES.js.map +1 -0
- package/dist/{write-audits-to-airtable-7PH75YWY.js → write-audits-to-airtable-CMKHGJNQ.js} +4 -4
- package/dist/write-audits-to-airtable-CMKHGJNQ.js.map +1 -0
- package/package.json +9 -2
- package/dist/airtable-HRKSA7V4.js +0 -9
- package/dist/announce-GIAYN67S.js.map +0 -1
- package/dist/chunk-37S6L6G4.js.map +0 -1
- package/dist/chunk-3YXDSCM6.js.map +0 -1
- package/dist/chunk-4DHQCN5H.js.map +0 -1
- package/dist/chunk-4SOCPK7A.js +0 -108
- package/dist/chunk-4SOCPK7A.js.map +0 -1
- package/dist/chunk-577HCGZO.js.map +0 -1
- package/dist/chunk-62VF32IC.js.map +0 -1
- package/dist/chunk-6QRLRT3P.js.map +0 -1
- package/dist/chunk-COZPL62X.js.map +0 -1
- package/dist/chunk-D4FVAIEJ.js.map +0 -1
- package/dist/chunk-DTTIFYAM.js.map +0 -1
- package/dist/chunk-MGR2H7F4.js.map +0 -1
- package/dist/chunk-MPBXOJ3N.js.map +0 -1
- package/dist/chunk-NWB4O5EY.js.map +0 -1
- package/dist/chunk-SEEA6RXF.js.map +0 -1
- package/dist/chunk-U5SZ4FOP.js +0 -26
- package/dist/chunk-U5SZ4FOP.js.map +0 -1
- package/dist/client-X5WUJWDE.js +0 -11
- package/dist/db-JSIZYT23.js +0 -23
- package/dist/db-JSIZYT23.js.map +0 -1
- package/dist/ensure-site-S25MDDHW.js.map +0 -1
- package/dist/forms-notify-target-TWN4EH6K.js.map +0 -1
- package/dist/github-signals-G4ILZAJ6.js.map +0 -1
- package/dist/header-image-T7XD37JL.js.map +0 -1
- package/dist/launch-JA7Z4CIM.js.map +0 -1
- package/dist/migrate-LJUFGXQZ.js +0 -7
- package/dist/orchestrate-KDNXZQX7.js +0 -27
- package/dist/prismic-models-PVES6R5V.js.map +0 -1
- package/dist/report-6CKSWJNG.js.map +0 -1
- package/dist/reports/header-image/assets/plate.png +0 -0
- package/dist/selftest-CQ6NOX52.js.map +0 -1
- /package/dist/{airtable-HRKSA7V4.js.map → airtable-ZBUPQJSC.js.map} +0 -0
- /package/dist/{client-X5WUJWDE.js.map → attachments-NLZIJ5NU.js.map} +0 -0
- /package/dist/{bump-deps-SWJB6H5V.js.map → bump-deps-CGVELRLK.js.map} +0 -0
- /package/dist/{chunk-SDUJIANJ.js.map → chunk-2NJQLSEU.js.map} +0 -0
- /package/dist/{chunk-ZTPPCHDB.js.map → chunk-3G25KIWW.js.map} +0 -0
- /package/dist/{chunk-THEFTZ7F.js.map → chunk-62CMMGEO.js.map} +0 -0
- /package/dist/{chunk-FDIFTIXC.js.map → chunk-6TWWY7ZU.js.map} +0 -0
- /package/dist/{chunk-PBWDDDQH.js.map → chunk-7BZUOZPU.js.map} +0 -0
- /package/dist/{chunk-UYCAF77E.js.map → chunk-7RJ2HMMJ.js.map} +0 -0
- /package/dist/{chunk-Q276MZ7E.js.map → chunk-7UAYMAKR.js.map} +0 -0
- /package/dist/{chunk-R6FPFMOS.js.map → chunk-BQRFQSGY.js.map} +0 -0
- /package/dist/{chunk-7J53SUT6.js.map → chunk-CROKUHJB.js.map} +0 -0
- /package/dist/{chunk-GZNBCHAZ.js.map → chunk-HEWSRXYV.js.map} +0 -0
- /package/dist/{chunk-LS6QPANO.js.map → chunk-IYSEC543.js.map} +0 -0
- /package/dist/{chunk-DC5H7KEQ.js.map → chunk-JHGHLKFS.js.map} +0 -0
- /package/dist/{chunk-TP5M2NQB.js.map → chunk-NCMZMLY7.js.map} +0 -0
- /package/dist/{chunk-WYYQK4D3.js.map → chunk-TD2NNXLZ.js.map} +0 -0
- /package/dist/{chunk-ZMIPG6TR.js.map → chunk-TVL5MVUF.js.map} +0 -0
- /package/dist/{chunk-VRWUL4TR.js.map → chunk-XHHMM5HX.js.map} +0 -0
- /package/dist/{chunk-RJB3QUSP.js.map → chunk-XIDUYLSR.js.map} +0 -0
- /package/dist/{chunk-QG6OSL4M.js.map → chunk-XUGSZP7Z.js.map} +0 -0
- /package/dist/{chunk-S56JQJ4F.js.map → chunk-Y53WOQIJ.js.map} +0 -0
- /package/dist/{chunk-ICXV25N7.js.map → chunk-Z3KYFUN6.js.map} +0 -0
- /package/dist/{lighthouse-airtable-BIPM26SZ.js.map → client-AUE3XUPO.js.map} +0 -0
- /package/dist/{convert-to-pnpm-AT52NWZB.js.map → convert-to-pnpm-QFJOEP5V.js.map} +0 -0
- /package/dist/{migrate-LJUFGXQZ.js.map → fleet-state-7TJ2GYT2.js.map} +0 -0
- /package/dist/{health-endpoint-242WG2OJ.js.map → health-endpoint-RFXL2F4A.js.map} +0 -0
- /package/dist/{orchestrate-KDNXZQX7.js.map → import-airtable-OHVY344G.js.map} +0 -0
- /package/dist/{websites-SADZR4XQ.js.map → lighthouse-VHI77PFB.js.map} +0 -0
- /package/dist/{write-audits-to-airtable-7PH75YWY.js.map → lighthouse-airtable-3GUWHETW.js.map} +0 -0
- /package/dist/{onboard-53CITIM7.js.map → onboard-O4IAHJMO.js.map} +0 -0
- /package/dist/{prismic-ci-UTQ6LRR3.js.map → prismic-ci-G2AK53VL.js.map} +0 -0
- /package/dist/{protection-audit-64PLLBLI.js.map → protection-audit-SJO53MEQ.js.map} +0 -0
- /package/dist/{self-updating-PPQVV6UA.js.map → self-updating-UCIWESAX.js.map} +0 -0
- /package/dist/{smoke-suite-TMCSOYRK.js.map → smoke-suite-U3UKD3NS.js.map} +0 -0
- /package/dist/{submissions-GJ6ITBRH.js.map → submissions-IQEJX6FK.js.map} +0 -0
- /package/dist/{svelte-codemods-ZOBDHIES.js.map → svelte-codemods-GOKXTBHW.js.map} +0 -0
- /package/dist/{sync-configs-CJXUX6MD.js.map → sync-configs-SPTLFJCC.js.map} +0 -0
- /package/dist/{upgrade-WLX27UPC.js.map → upgrade-W6ZR3FJH.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { a as AuditResult, S as Site, A as AuditName, b as RecipeResult, R as RecipeName, I as InventoryProvider } from './types-OIQZ5hWN.js';
|
|
2
2
|
export { C as ConfigName } from './types-OIQZ5hWN.js';
|
|
3
|
-
import
|
|
3
|
+
import { A as AirtableBase, a as FleetEventType } from './fleet-events-cF2Om88w.js';
|
|
4
4
|
import { F as FormType } from './types-RXY-vY-5.js';
|
|
5
5
|
export { SyncConfigsOptions, syncConfigs } from './recipes/sync-configs.js';
|
|
6
|
+
import 'airtable/lib/airtable_base.js';
|
|
6
7
|
|
|
7
8
|
type SpawnResult = {
|
|
8
9
|
code: number;
|
|
@@ -119,7 +120,15 @@ type FormSubmitOutcome = {
|
|
|
119
120
|
formPresent: true;
|
|
120
121
|
success: boolean;
|
|
121
122
|
detail?: string;
|
|
123
|
+
/** Click → success banner VISIBLE. A user-experience number: it includes the
|
|
124
|
+
* browser's own render of the banner, which no server budget governs. */
|
|
122
125
|
elapsedMs?: number;
|
|
126
|
+
/** Click → the action's POST response arrives. This is the span the site's
|
|
127
|
+
* `INGEST_TIMEOUT_MS` abort budget actually governs (it wraps the
|
|
128
|
+
* site→central fetch, which is nested inside this POST), so it — not
|
|
129
|
+
* `elapsedMs` — is what the budget check must compare against. Undefined
|
|
130
|
+
* when no POST was observed. */
|
|
131
|
+
postElapsedMs?: number;
|
|
123
132
|
} | {
|
|
124
133
|
testModeUndeclared: true;
|
|
125
134
|
};
|
|
@@ -388,13 +397,6 @@ declare function localPath(path: string, opts?: LocalPathOptions): InventoryProv
|
|
|
388
397
|
|
|
389
398
|
declare function fromJsonFile(path: string): InventoryProvider;
|
|
390
399
|
|
|
391
|
-
type AirtableConfig = {
|
|
392
|
-
apiKey: string;
|
|
393
|
-
baseId: string;
|
|
394
|
-
};
|
|
395
|
-
type AirtableBase = ReturnType<typeof openBase>;
|
|
396
|
-
declare function openBase(cfg: AirtableConfig): airtable_lib_airtable_base_js.AirtableBase;
|
|
397
|
-
|
|
398
400
|
type AirtableInventoryOptions = {
|
|
399
401
|
/**
|
|
400
402
|
* Local workdir to compute each site's path as `{workdir}/{slug}`.
|
|
@@ -407,21 +409,105 @@ type AirtableInventoryOptions = {
|
|
|
407
409
|
* Read sites from the Airtable Websites table as an InventoryProvider.
|
|
408
410
|
* Each row becomes one Site; `path` is computed as `{workdir}/{slug}`.
|
|
409
411
|
* Only LIVE `maintenance` sites that have a `url` are included — pre-launch
|
|
410
|
-
* stages ("
|
|
412
|
+
* stages ("launching" / "building", via isPreLaunch) are excluded so a
|
|
411
413
|
* not-yet-live site is never audited as production (its deploy/domain/uptime/CMS
|
|
412
414
|
* audits would fail against nothing and red its Airtable row) nor swept by other
|
|
413
415
|
* `--fleet airtable` ops; it re-enters the fleet when a Launch report flips its
|
|
414
|
-
* Status to "
|
|
416
|
+
* Status to "maintained". The production URL is exposed as `Site.deployedUrl` so
|
|
415
417
|
* the lighthouse audit can run against it with no checkout. `repoUrl` is
|
|
416
418
|
* intentionally NOT set from `url` — a clone source must come from `gitRepo`
|
|
417
419
|
* (`owner/repo`), never the production URL.
|
|
418
420
|
*/
|
|
419
421
|
declare function fromAirtableBase(base: AirtableBase, opts?: AirtableInventoryOptions): InventoryProvider;
|
|
420
422
|
|
|
423
|
+
/**
|
|
424
|
+
* The site-status vocabulary — ONE module owns it (#539 Phase 4).
|
|
425
|
+
*
|
|
426
|
+
* The fleet's lifecycle names were inherited from an Airtable single-select
|
|
427
|
+
* written by hand years ago ("probably not our problem"). The operator approved
|
|
428
|
+
* a canonical vocabulary, and the migration is now COMPLETE in both stores:
|
|
429
|
+
* Airtable's "Status" single-select carries exactly the six canonical options
|
|
430
|
+
* and nothing else. This module no longer knows the old names at all.
|
|
431
|
+
*
|
|
432
|
+
* The retired mapping, kept as the record of what was merged into what:
|
|
433
|
+
*
|
|
434
|
+
* old (retired 2026-08-25) new (canonical)
|
|
435
|
+
* ───────────────────────── ───────────────
|
|
436
|
+
* in development building
|
|
437
|
+
* launch period launching
|
|
438
|
+
* maintenance maintained
|
|
439
|
+
* hosting hosted-only
|
|
440
|
+
* probably not our problem external
|
|
441
|
+
* legacy ┐
|
|
442
|
+
* deprecated ┴ archived ← approved MERGE, many-to-one
|
|
443
|
+
*
|
|
444
|
+
* `legacy` and `deprecated` were already treated identically by every PREDICATE
|
|
445
|
+
* (ARCHIVED_STATUSES held both), so collapsing them changes no *selection* — no
|
|
446
|
+
* fleet op gains or loses a site. It is NOT true that collapsing them changes
|
|
447
|
+
* nothing at all, and one surface proved it: the cockpit's Archived lane LABELS
|
|
448
|
+
* each row with its Status cell, and canonicalizing there rendered all 12 live
|
|
449
|
+
* archived rows as "archived". That lane now labels from `statusRaw`, which is
|
|
450
|
+
* exactly why `WebsiteRow.statusRaw` exists. The rule this leaves behind:
|
|
451
|
+
* canonical values decide BEHAVIOUR; anything DISPLAYING a Status cell, or
|
|
452
|
+
* writing one back, uses the raw cell.
|
|
453
|
+
*
|
|
454
|
+
* The merge had NO clean reverse map while both vocabularies coexisted, which
|
|
455
|
+
* is why `toAirtableStatus` had to pick one archived name deliberately. With the
|
|
456
|
+
* old names retired there is nothing left to pick between, and no code path
|
|
457
|
+
* feeds operator-supplied text through it anyway (see
|
|
458
|
+
* `src/recipes/forms-notify-target.ts`, which writes `--restore` verbatim).
|
|
459
|
+
*
|
|
460
|
+
* THE SHAPE OF THE TRANSITION (three stages):
|
|
461
|
+
*
|
|
462
|
+
* stage 1 (DONE) code speaks the NEW vocabulary internally; reads canonicalize
|
|
463
|
+
* at the two Airtable/Turso seams; writes still emit the OLD
|
|
464
|
+
* Airtable option names. Airtable untouched. No SELECTION
|
|
465
|
+
* change — every predicate picks exactly the sites it picked
|
|
466
|
+
* before (pinned row-by-row in tests/reports/airtable/
|
|
467
|
+
* site-status.test.ts). Displayed labels come from `statusRaw`.
|
|
468
|
+
* stage 2 (DONE) the Airtable "Status" single-select gained the 6 new options
|
|
469
|
+
* and all 44 cells were migrated (verified live: maintained=13,
|
|
470
|
+
* archived=12, external=9, building=6, hosted-only=2,
|
|
471
|
+
* launching=2 — zero old values, zero unrecognized), `db sync`
|
|
472
|
+
* ran clean (mismatches=0), and AIRTABLE_USES_NEW_VOCABULARY
|
|
473
|
+
* flipped to true. Writers now emit canonical names verbatim.
|
|
474
|
+
* The alias map STAYS: the 7 old options still exist in the
|
|
475
|
+
* field, so a human can still pick one in the Airtable UI.
|
|
476
|
+
* stage 3 (DONE) the operator deleted the 7 old options from the Airtable
|
|
477
|
+
* "Status" field on 2026-08-25, which is what made this safe:
|
|
478
|
+
* the gate was always "no old value CAN BE ENTERED", not
|
|
479
|
+
* merely "none is stored". Verified against the live base
|
|
480
|
+
* before any code changed — the field carries exactly the six
|
|
481
|
+
* canonical choices, byte-exact, and all 44 cells still hold a
|
|
482
|
+
* canonical value with ZERO blanks (deleting a single-select
|
|
483
|
+
* option CLEARS the cells using it, so "no cell was blanked"
|
|
484
|
+
* was checked, not assumed). AIRTABLE_STATUS_ALIASES,
|
|
485
|
+
* AIRTABLE_OLD_NAMES and AIRTABLE_USES_NEW_VOCABULARY are
|
|
486
|
+
* gone; both functions reduce to the identity.
|
|
487
|
+
*
|
|
488
|
+
* WHAT CHANGED IN BEHAVIOUR AT STAGE 3, and it is the only thing that did: an
|
|
489
|
+
* old name is no longer translated. `canonicalizeStatus("maintenance")` used to
|
|
490
|
+
* yield `maintained`; it now yields `"maintenance"` verbatim, which
|
|
491
|
+
* `isUnrecognizedStatus` flags and the cockpit surfaces as a watch row. That is
|
|
492
|
+
* intended. The option cannot be selected any more, so a stored old value would
|
|
493
|
+
* mean something went wrong — a restored backup, a scripted write, an API
|
|
494
|
+
* caller with a stale constant — and the fleet should say so rather than absorb
|
|
495
|
+
* it into a status nobody chose.
|
|
496
|
+
*
|
|
497
|
+
* Canonicalization happens on READ, never at rest: `src/db/import-airtable.ts`
|
|
498
|
+
* still stores the raw Airtable cell verbatim in `sites.status`, so the hourly
|
|
499
|
+
* parity check keeps comparing raw-to-raw and the importer stays honest to its
|
|
500
|
+
* source. Both readers — `mapRow` (Airtable) and `rowFromJoined` (Turso) — run
|
|
501
|
+
* the raw value through `canonicalizeStatus`, which is what keeps the #558
|
|
502
|
+
* reader-equivalence instrument green.
|
|
503
|
+
*/
|
|
504
|
+
/** The canonical site lifecycle vocabulary. */
|
|
505
|
+
type Status = "building" | "launching" | "maintained" | "hosted-only" | "external" | "archived";
|
|
506
|
+
|
|
421
507
|
type Frequency = "None" | "Monthly" | "Quarterly" | "Yearly";
|
|
422
|
-
|
|
508
|
+
|
|
423
509
|
/**
|
|
424
|
-
* Per-site notification routing. When present on a `
|
|
510
|
+
* Per-site notification routing. When present on a `maintained` site, the form
|
|
425
511
|
* notification is addressed by the value of a submission field (`field`, read from
|
|
426
512
|
* `extraFields`) — e.g. route a contact form's `interest` to a different recipient
|
|
427
513
|
* per option, always CC-ing a shared address. Absent (`null`) → the site keeps the
|
|
@@ -443,7 +529,17 @@ type WebsiteRow = {
|
|
|
443
529
|
id: string;
|
|
444
530
|
name: string;
|
|
445
531
|
url: string;
|
|
532
|
+
/** Canonical lifecycle status (see ./site-status.ts). Canonicalized at the read
|
|
533
|
+
* boundary, so an old-vocabulary Airtable cell and a new one read identically.
|
|
534
|
+
* A present-but-unrecognized cell survives VERBATIM (blind-cast) rather than
|
|
535
|
+
* becoming null — `isUnrecognizedStatus` flags it, and null would make
|
|
536
|
+
* due.ts/preflight.ts treat the row as eligible-by-default. */
|
|
446
537
|
status: Status | null;
|
|
538
|
+
/** The literal Airtable Status cell behind `status` — same pattern as
|
|
539
|
+
* `maintenanceFreqRaw`. The dashboard status editor round-trips THIS, so its
|
|
540
|
+
* dropdown offers and preselects the values Airtable actually holds while the
|
|
541
|
+
* two vocabularies coexist. Null = blank cell. */
|
|
542
|
+
statusRaw: string | null;
|
|
447
543
|
pointOfContact: string | null;
|
|
448
544
|
maintenanceFreq: Frequency;
|
|
449
545
|
testingFreq: Frequency;
|
|
@@ -670,6 +766,18 @@ type WebsiteRow = {
|
|
|
670
766
|
*/
|
|
671
767
|
prismicAckUntil: string | null;
|
|
672
768
|
notifyRouting: NotifyRouting | null;
|
|
769
|
+
/** The RAW `Notify Routing` cell, verbatim. Same reason `statusRaw` exists: the
|
|
770
|
+
* dashboard editor round-trips this JSON, and re-serializing the PARSED object
|
|
771
|
+
* would drop any key the parser ignores and reformat what the operator typed —
|
|
772
|
+
* a silent rewrite of a cell they only opened to look at. */
|
|
773
|
+
notifyRoutingRaw: string | null;
|
|
774
|
+
/** Read-back of the code-owned next-due dates (date-only, written by the
|
|
775
|
+
* nightly `writeNextDueDates`). These exist so the writer can DIFF the
|
|
776
|
+
* freshly-computed dates against what the row already holds and skip the
|
|
777
|
+
* ~31 no-op writes a night the fleet was paying for (#539 Phase 3). Null =
|
|
778
|
+
* cell blank or the operator-added `Next … at` column absent. */
|
|
779
|
+
nextMaintenanceAt: string | null;
|
|
780
|
+
nextTestingAt: string | null;
|
|
673
781
|
};
|
|
674
782
|
/** The `Prismic Models` cell — see {@link WebsiteRow.prismicModels} for why it
|
|
675
783
|
* carries a third state that no other verdict column in this table has. */
|
|
@@ -844,6 +952,135 @@ type ReportRow = {
|
|
|
844
952
|
overrideBy: string | null;
|
|
845
953
|
overrideAt: string | null;
|
|
846
954
|
};
|
|
955
|
+
/** Called with the record Airtable echoed back from the create, before it is
|
|
956
|
+
* mapped (#539 Phase 5). Structurally typed rather than importing the db
|
|
957
|
+
* layer's `RawRecord`, so this module stays the leaf it has always been. */
|
|
958
|
+
type CreatedDraftMirror = (rec: {
|
|
959
|
+
id: string;
|
|
960
|
+
fields: Record<string, unknown>;
|
|
961
|
+
}) => Promise<void>;
|
|
962
|
+
|
|
963
|
+
/** Report rows (migration 0007). PK = Airtable rec id. `checklist` is JSON
|
|
964
|
+
* keyed by the STABLE checklist key (src/reports/checklist.ts), not the
|
|
965
|
+
* Airtable column name; `rendered_html` is the downloaded attachment body. */
|
|
966
|
+
interface ReportsTable {
|
|
967
|
+
id: string;
|
|
968
|
+
site_id: string | null;
|
|
969
|
+
report_id: string | null;
|
|
970
|
+
report_type: string | null;
|
|
971
|
+
period: string | null;
|
|
972
|
+
period_start: string | null;
|
|
973
|
+
period_end: string | null;
|
|
974
|
+
completed_on: string | null;
|
|
975
|
+
lighthouse_performance: number | null;
|
|
976
|
+
lighthouse_accessibility: number | null;
|
|
977
|
+
lighthouse_best_practices: number | null;
|
|
978
|
+
lighthouse_seo: number | null;
|
|
979
|
+
ga_users_current: number | null;
|
|
980
|
+
ga_users_previous: number | null;
|
|
981
|
+
search_found_page1: number | null;
|
|
982
|
+
search_position: number | null;
|
|
983
|
+
last_tested_date: string | null;
|
|
984
|
+
commentary: string | null;
|
|
985
|
+
subject_override: string | null;
|
|
986
|
+
draft_ready: number;
|
|
987
|
+
approved_to_send: number;
|
|
988
|
+
approved_at: string | null;
|
|
989
|
+
approved_by: string | null;
|
|
990
|
+
send_override: number;
|
|
991
|
+
override_reason: string | null;
|
|
992
|
+
override_by: string | null;
|
|
993
|
+
override_at: string | null;
|
|
994
|
+
sent_at: string | null;
|
|
995
|
+
delivery_status: string | null;
|
|
996
|
+
resend_message_id: string | null;
|
|
997
|
+
checklist: string | null;
|
|
998
|
+
checklist_auto_evidence: string | null;
|
|
999
|
+
rendered_html: string | null;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
/** Columns a report writer mirrors after its Airtable write (same pattern as
|
|
1003
|
+
* mirrorSiteField): the approve/override flow, the resend-webhook's delivery
|
|
1004
|
+
* status, and — since #539 Phase 5 — the drafting path's queue flag and a
|
|
1005
|
+
* re-run's refreshed scores.
|
|
1006
|
+
*
|
|
1007
|
+
* `rendered_html` stays deliberately OUT even though the drafting path now
|
|
1008
|
+
* writes it: bodies go through `storeRenderedHtml`, so a request handler
|
|
1009
|
+
* holding a patch cannot accidentally write megabytes of HTML. `sent_at` and
|
|
1010
|
+
* `resend_message_id` stay out because nothing but the send batch writes them
|
|
1011
|
+
* and the hourly sync converges those. */
|
|
1012
|
+
type ReportMirrorPatch = Partial<Pick<ReportsTable, "approved_to_send" | "approved_at" | "approved_by" | "send_override" | "override_reason" | "override_by" | "override_at" | "delivery_status" | "commentary" | "draft_ready" | "lighthouse_performance" | "lighthouse_accessibility" | "lighthouse_best_practices" | "lighthouse_seo" | "ga_users_current" | "ga_users_previous" | "search_found_page1" | "search_position" | "completed_on">>;
|
|
1013
|
+
|
|
1014
|
+
/** #539 Phase 5: the Turso write-through for the Reports write surface.
|
|
1015
|
+
*
|
|
1016
|
+
* Before this, the only report mirrors were UPDATEs on the request path
|
|
1017
|
+
* (approve, override, delivery status, commentary). Everything the DRAFTING
|
|
1018
|
+
* path writes — the row itself, the rendered body, the queue flag, a re-run's
|
|
1019
|
+
* refreshed scores — reached Turso only via the hourly sync. Two of those are
|
|
1020
|
+
* visible to the operator today: a fresh draft's row does not exist, and its
|
|
1021
|
+
* preview route answers "No rendered body stored" for up to an hour. At the
|
|
1022
|
+
* freeze they stop being windows.
|
|
1023
|
+
*
|
|
1024
|
+
* Deliberately UNLIKE `makeHealthMirrorBestEffort`, this never returns null.
|
|
1025
|
+
* #585 is the reason: Phase 3's next-due mirror silently no-opped in production
|
|
1026
|
+
* for weeks because the factory returned null without creds, and a dead
|
|
1027
|
+
* dual-write then looked exactly like a healthy one — the only tell was an
|
|
1028
|
+
* ABSENT log suffix nobody was watching for. Here creds-absent is a state the
|
|
1029
|
+
* mirror REPORTS, so every write emits one REPORT_MIRROR line and an absent
|
|
1030
|
+
* line means the wiring is gone, not that conditions were quiet.
|
|
1031
|
+
*/
|
|
1032
|
+
|
|
1033
|
+
/** The three shapes a report write takes. Injected as ONE object rather than
|
|
1034
|
+
* three parameters because they share a db handle and always travel together:
|
|
1035
|
+
* a caller holding `created` but not `body` produces exactly the half-mirrored
|
|
1036
|
+
* state (row present, preview 404) this module exists to prevent. */
|
|
1037
|
+
type ReportMirror = {
|
|
1038
|
+
/** A row Airtable just CREATED, as Airtable echoed it back. */
|
|
1039
|
+
created: CreatedDraftMirror;
|
|
1040
|
+
/** A freshly rendered body for an existing row. */
|
|
1041
|
+
body: (reportId: string, html: string) => Promise<void>;
|
|
1042
|
+
/** Columns just written to an existing row. */
|
|
1043
|
+
patch: (reportId: string, patch: ReportMirrorPatch) => Promise<void>;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
/** #539 Phase 5: the Turso write-through for the ONE-OFF Websites writers.
|
|
1047
|
+
*
|
|
1048
|
+
* Phase 3 mirrored the nightly sweep — the audit write-back, github-signals and
|
|
1049
|
+
* the next-due dates. It did not touch the writers that run on their own
|
|
1050
|
+
* schedule or on demand: the analytics soft-fail stamp, the Renovate
|
|
1051
|
+
* auto-fix counter, the prismic-models verdict, `updateLaunched`, the
|
|
1052
|
+
* forms notify target, and the SINGLE-SITE audit write-back (only the fleet
|
|
1053
|
+
* path ever passed a mirror). Each of those reached Turso solely via the hourly
|
|
1054
|
+
* sync, which stops existing at the freeze.
|
|
1055
|
+
*
|
|
1056
|
+
* It lives in `src/db` rather than a feature folder because its callers span
|
|
1057
|
+
* audits, recipes, CLI commands and the send path — no one feature owns it.
|
|
1058
|
+
*
|
|
1059
|
+
* Deliberately UNLIKE `makeHealthMirrorBestEffort`, this never returns null.
|
|
1060
|
+
* #585 is the reason: that factory returned null without creds and the
|
|
1061
|
+
* dual-write silently no-opped in production for weeks, because a dead mirror
|
|
1062
|
+
* and a healthy one produced identical output — the only tell was an ABSENT log
|
|
1063
|
+
* suffix nobody was watching for. Here creds-absent is a state the mirror
|
|
1064
|
+
* REPORTS, so a missing SITE_MIRROR line means the wiring is gone.
|
|
1065
|
+
*/
|
|
1066
|
+
|
|
1067
|
+
/** Two ops because the Websites row is split across two Turso tables. Callers
|
|
1068
|
+
* pass the EXACT FieldSet the Airtable writer returned, so the mirror can never
|
|
1069
|
+
* carry a different payload than the write it shadows. */
|
|
1070
|
+
type SiteMirror = {
|
|
1071
|
+
/** A row Airtable just CREATED, as Airtable echoed it back (`ensure-site`).
|
|
1072
|
+
* Every other op is an UPDATE, which does nothing for a row that does not
|
|
1073
|
+
* exist yet — so without this a bootstrapped site is invisible to Turso and
|
|
1074
|
+
* every mirror the rest of the bootstrap fires reports `mirrored=missed`. */
|
|
1075
|
+
created: (rec: {
|
|
1076
|
+
id: string;
|
|
1077
|
+
fields: Record<string, unknown>;
|
|
1078
|
+
}) => Promise<void>;
|
|
1079
|
+
/** Columns that live in `site_health`. */
|
|
1080
|
+
health: (siteId: string, fields: Record<string, unknown>) => Promise<void>;
|
|
1081
|
+
/** Columns that live in `sites`. */
|
|
1082
|
+
site: (siteId: string, fields: Record<string, unknown>) => Promise<void>;
|
|
1083
|
+
};
|
|
847
1084
|
|
|
848
1085
|
type ShootOptions = {
|
|
849
1086
|
url: string;
|
|
@@ -884,7 +1121,9 @@ type RefreshHeaderDeps = {
|
|
|
884
1121
|
url: string;
|
|
885
1122
|
slug?: string;
|
|
886
1123
|
}) => Promise<GeneratedHeaderImage>;
|
|
887
|
-
upload?: (recordId: string, field: string, bytes: Uint8Array, filename: string, contentType: string
|
|
1124
|
+
upload?: (recordId: string, field: string, bytes: Uint8Array, filename: string, contentType: string, opts?: {
|
|
1125
|
+
replaceIn?: string;
|
|
1126
|
+
}) => Promise<void>;
|
|
888
1127
|
};
|
|
889
1128
|
type DraftOptions = {
|
|
890
1129
|
/** Where to write the local preview HTML when `previewOnly`. Defaults to `reports/<slug>/draft.html`. */
|
|
@@ -918,6 +1157,22 @@ type DraftOptions = {
|
|
|
918
1157
|
* entirely. Tests set `false` (or a stub) so a unit suite never launches a
|
|
919
1158
|
* browser or resolves DNS. Production leaves it unset and gets the real thing. */
|
|
920
1159
|
refreshHeader?: RefreshHeaderDeps | false;
|
|
1160
|
+
/** #539 Phase 5: Turso write-through for everything this function writes to
|
|
1161
|
+
* Airtable — the created row, the rendered body, and the queue flag — so a
|
|
1162
|
+
* fresh draft is fully readable in the Turso-backed console immediately
|
|
1163
|
+
* instead of after the next hourly sync.
|
|
1164
|
+
*
|
|
1165
|
+
* Deliberately NOT defaulted here. Defaulting would open a real libSQL handle
|
|
1166
|
+
* from inside `draftReportForSite`, which every unit test calls — and on a
|
|
1167
|
+
* machine with TURSO_* exported that means a test suite writing rows into
|
|
1168
|
+
* production. The wiring lives at the composition roots (cli/commands/report.ts,
|
|
1169
|
+
* recipes) where it is pinned by test, the same division `runFleetWriteBack`
|
|
1170
|
+
* uses for the health mirror. */
|
|
1171
|
+
reportMirror?: ReportMirror;
|
|
1172
|
+
/** #539 Phase 5: the Websites-row twin of `reportMirror`. Drafting stamps
|
|
1173
|
+
* `Analytics soft-fail at` on the SITE row, which is a different Turso table
|
|
1174
|
+
* and a different mirror. Injected for the same reason — see reportMirror. */
|
|
1175
|
+
siteMirror?: SiteMirror;
|
|
921
1176
|
};
|
|
922
1177
|
/** An enrichment fetch that *errored* (not one that was legitimately skipped
|
|
923
1178
|
* because it isn't configured / the site lacks the inputs). Surfaced so a
|
|
@@ -996,6 +1251,10 @@ type ResendClient = {
|
|
|
996
1251
|
|
|
997
1252
|
type OrchestrateOptions = {
|
|
998
1253
|
resend?: ResendClient;
|
|
1254
|
+
/** #539 Phase 5: Turso write-through for the Websites row a Launch send
|
|
1255
|
+
* updates. Injected rather than defaulted — this function is called directly
|
|
1256
|
+
* by tests, and a default would open a real libSQL handle inside the suite. */
|
|
1257
|
+
siteMirror?: SiteMirror;
|
|
999
1258
|
};
|
|
1000
1259
|
declare function sendApprovedReports(options?: OrchestrateOptions): Promise<{
|
|
1001
1260
|
output: string;
|
|
@@ -1145,8 +1404,6 @@ type AttentionItem = {
|
|
|
1145
1404
|
autoFixExhausted?: boolean;
|
|
1146
1405
|
};
|
|
1147
1406
|
|
|
1148
|
-
type FleetEventType = "pr_automerged" | "vuln_cleared" | "ci_recovered" | "site_launched" | "fleet_swept" | "cert_renewed" | "report_sent_with_override";
|
|
1149
|
-
|
|
1150
1407
|
type Tier = "attention" | "watch" | "healthy" | "pre-launch";
|
|
1151
1408
|
type SiteCard = {
|
|
1152
1409
|
site: WebsiteRow;
|
|
@@ -1191,7 +1448,7 @@ type CockpitSummary = {
|
|
|
1191
1448
|
attention: number;
|
|
1192
1449
|
watch: number;
|
|
1193
1450
|
healthy: number;
|
|
1194
|
-
/** Count of pre-live "
|
|
1451
|
+
/** Count of pre-live "launching" sites still muted as expected pre-launch
|
|
1195
1452
|
* conditions. A piercing alarm (piercesPreLaunchMute) re-tiers such a site to
|
|
1196
1453
|
* attention, so it counts there instead — muted never means "hidden if broken". */
|
|
1197
1454
|
preLaunch: number;
|
|
@@ -1221,7 +1478,15 @@ type RecentEntry = {
|
|
|
1221
1478
|
ts: string;
|
|
1222
1479
|
};
|
|
1223
1480
|
/** A Websites row surfaced OUTSIDE the fleet cards: archived (legacy/deprecated)
|
|
1224
|
-
* or holding an unrecognized Status cell.
|
|
1481
|
+
* or holding an unrecognized Status cell.
|
|
1482
|
+
*
|
|
1483
|
+
* `status` is the RAW Airtable cell, not the canonical status (#539 Phase 4).
|
|
1484
|
+
* These two lanes exist to mirror what Airtable holds so a row can never
|
|
1485
|
+
* silently vanish, and both of them survive on the distinction the canonical
|
|
1486
|
+
* vocabulary erases: `legacy` and `deprecated` both canonicalize to `archived`,
|
|
1487
|
+
* so labelling the lane canonically would render 12 live rows identically and
|
|
1488
|
+
* disagree with the cell the operator is looking at. Everything else about
|
|
1489
|
+
* these rows — which lane they land in — is decided canonically. */
|
|
1225
1490
|
type OffFleetSiteEntry = {
|
|
1226
1491
|
name: string;
|
|
1227
1492
|
slug: string;
|
|
@@ -1268,7 +1533,7 @@ type SiteAlarmContext = {
|
|
|
1268
1533
|
* fetches data, then hands it here. Easier to unit-test, easier to render
|
|
1269
1534
|
* a static preview from CLI later.
|
|
1270
1535
|
*/
|
|
1271
|
-
declare function renderSiteDashboardHtml(site: WebsiteRow, reports: ReportRow[], submissions?: SubmissionRow[], spamTotals?: ScreenOutTotals | null, now?: Date, alarm?: SiteAlarmContext | null): string;
|
|
1536
|
+
declare function renderSiteDashboardHtml(site: WebsiteRow, reports: ReportRow[], submissions?: SubmissionRow[], spamTotals?: ScreenOutTotals | null, now?: Date, alarm?: SiteAlarmContext | null, operatorEmail?: string | null): string;
|
|
1272
1537
|
|
|
1273
1538
|
/**
|
|
1274
1539
|
* Render the fleet cockpit as a single HTML document. Pure function: no Airtable
|
|
@@ -1277,7 +1542,7 @@ declare function renderSiteDashboardHtml(site: WebsiteRow, reports: ReportRow[],
|
|
|
1277
1542
|
* and hands it here. Renders the doc shell + verdict bar + the per-site Needs-you
|
|
1278
1543
|
* feed + the collapsed Fleet browse panel (one flat, filterable card grid).
|
|
1279
1544
|
*/
|
|
1280
|
-
declare function renderCockpitHtml(model: CockpitModel): string;
|
|
1545
|
+
declare function renderCockpitHtml(model: CockpitModel, operatorEmail?: string | null): string;
|
|
1281
1546
|
|
|
1282
1547
|
/**
|
|
1283
1548
|
* Verify an `Authorization: Basic <base64>` header against the configured
|
|
@@ -1300,7 +1565,45 @@ declare function renderCockpitHtml(model: CockpitModel): string;
|
|
|
1300
1565
|
*/
|
|
1301
1566
|
declare function verifyBasicAuth(authHeader: string | null | undefined, expectedPassword: string | null): boolean;
|
|
1302
1567
|
|
|
1303
|
-
/**
|
|
1568
|
+
/** Per-report-type headline overlays, stamped over the CLEAN plate at send time
|
|
1569
|
+
* (see orchestrate.ts). Types with no entry go out on the clean plate.
|
|
1570
|
+
*
|
|
1571
|
+
* Source: Figma "Web-Maintenance-Email" (mQ3hy2d9JnOG9ljCzbZS8j) —
|
|
1572
|
+
* Maintenance is node 158:15, Testing is 153:721 ("maintenance & testing",
|
|
1573
|
+
* which is what a Testing report actually covers). Export each at 4x; Figma
|
|
1574
|
+
* crops a text export to its ink box, which is why these are 1328x660 /
|
|
1575
|
+
* 1715x664 rather than the 1840x720 text box.
|
|
1576
|
+
*
|
|
1577
|
+
* ⚠️ A Figma MCP `download_assets` export arrives FLATTENED — never
|
|
1578
|
+
* transparent — and it flattens onto WHATEVER SITS BEHIND THE NODE, which is
|
|
1579
|
+
* not one fixed colour: Maintenance/Testing live inside a white Header frame
|
|
1580
|
+
* and come back on white, while Announcement/Launch sit on the bare canvas and
|
|
1581
|
+
* come back on Figma's canvas grey (30,30,30). Stamping either unprocessed
|
|
1582
|
+
* paints a solid slab over the paper texture — that, not a bad design file, is
|
|
1583
|
+
* what made the 2026-08-20 Testing asset unusable.
|
|
1584
|
+
*
|
|
1585
|
+
* Recover the alpha instead of re-exporting by hand: for ink C over backdrop B,
|
|
1586
|
+
* a = (px - B) / (C - B). DETECT B (the export's most common colour) rather
|
|
1587
|
+
* than assuming white, and pick the channel with the largest |C - B| — green
|
|
1588
|
+
* separates the brand red from white by 221 levels but from canvas grey by only
|
|
1589
|
+
* 4, which would quantise the alpha to noise. Verified against the known-good
|
|
1590
|
+
* Maintenance asset at mean abs alpha diff 0.022, 0.0037% of pixels off by
|
|
1591
|
+
* more than 8.
|
|
1592
|
+
*
|
|
1593
|
+
* Editing this copy needs Figma desktop, not the Plugin API: `characters`
|
|
1594
|
+
* requires loadFontAsync and the MCP font environment carries no Helvetica at
|
|
1595
|
+
* all, so the licensed Helvetica Neue LT Std can never load there. */
|
|
1596
|
+
declare const HEADLINE_FILES: {
|
|
1597
|
+
readonly Maintenance: "headline-maintenance.png";
|
|
1598
|
+
readonly Testing: "headline-testing.png";
|
|
1599
|
+
readonly Announcement: "headline-announcement.png";
|
|
1600
|
+
readonly Launch: "headline-launch.png";
|
|
1601
|
+
};
|
|
1602
|
+
type HeadlineKind = keyof typeof HEADLINE_FILES;
|
|
1603
|
+
/** Read the bundled 2400x3200 CLEAN plate (no headline — the report type's
|
|
1604
|
+
* headline is stamped at send time, so one stored image serves every type). */
|
|
1304
1605
|
declare function loadPlate(): Promise<Uint8Array>;
|
|
1606
|
+
/** Read a headline overlay (transparent PNG, ink-box cropped). */
|
|
1607
|
+
declare function loadHeadline(kind: HeadlineKind): Promise<Uint8Array>;
|
|
1305
1608
|
|
|
1306
|
-
export { ALL_AUDIT_NAMES, ALL_RECIPE_NAMES, type AirtableInventoryOptions, AuditName, AuditResult, BLURRED_CID, type BumpDepsOptions, type BundledImage, CHECK_CID, type ConvertToPnpmOptions, DEFAULT_INIT_STEPS, type DraftOptions, type DraftResult, type DueItem, type GenerateInput, type GeneratedHeaderImage, type HeaderImage, type InitOptions, type InitResult, type InitStep, type InitStepResult, InventoryProvider, type LighthouseScores, type LocalPathOptions, type OnboardAudit, type OnboardOptions, type OrchestrateOptions, RecipeName, RecipeResult, type RefreshHeaderDeps, type RenderResult, type ReportData, type ReportType, Site, type UpgradeSvelte4to5Options, a11yAudit, a11yFixturesPage, bumpDeps, convertToPnpm, depsAudit, domainFromUrl, draftReportForSite, findDueReports, fromAirtableBase, fromJsonFile, generateHeaderImage, init, isRecipeName, lighthouseAudit, lintAudit, loadBundledImages, loadPlate, localPath, onboard, renderCockpitHtml, renderReportHtml, renderSiteDashboardHtml, runAudits, runAuditsAcross, securityAudit, selfCaretRange, selfPackageVersion, sendApprovedReports, svelteCodemods, upgradeSvelte4to5, verifyBasicAuth };
|
|
1609
|
+
export { ALL_AUDIT_NAMES, ALL_RECIPE_NAMES, type AirtableInventoryOptions, AuditName, AuditResult, BLURRED_CID, type BumpDepsOptions, type BundledImage, CHECK_CID, type ConvertToPnpmOptions, DEFAULT_INIT_STEPS, type DraftOptions, type DraftResult, type DueItem, type GenerateInput, type GeneratedHeaderImage, type HeaderImage, type InitOptions, type InitResult, type InitStep, type InitStepResult, InventoryProvider, type LighthouseScores, type LocalPathOptions, type OnboardAudit, type OnboardOptions, type OrchestrateOptions, RecipeName, RecipeResult, type RefreshHeaderDeps, type RenderResult, type ReportData, type ReportType, Site, type UpgradeSvelte4to5Options, a11yAudit, a11yFixturesPage, bumpDeps, convertToPnpm, depsAudit, domainFromUrl, draftReportForSite, findDueReports, fromAirtableBase, fromJsonFile, generateHeaderImage, init, isRecipeName, lighthouseAudit, lintAudit, loadBundledImages, loadHeadline, loadPlate, localPath, onboard, renderCockpitHtml, renderReportHtml, renderSiteDashboardHtml, runAudits, runAuditsAcross, securityAudit, selfCaretRange, selfPackageVersion, sendApprovedReports, svelteCodemods, upgradeSvelte4to5, verifyBasicAuth };
|