@reddoorla/maintenance 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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Site, b as AuditResult, a as AuditName, c as RecipeResult, R as RecipeName, I as InventoryProvider } from './sync-configs-pMPW4wTq.js';
2
- export { C as ConfigName, d as SyncConfigsOptions, s as syncConfigs } from './sync-configs-pMPW4wTq.js';
1
+ import { S as Site, b as AuditResult, a as AuditName, c as RecipeResult, R as RecipeName, I as InventoryProvider } from './sync-configs-Dn6KhjrW.js';
2
+ export { C as ConfigName, d as SyncConfigsOptions, s as syncConfigs } from './sync-configs-Dn6KhjrW.js';
3
3
  import * as airtable_lib_airtable_base_js from 'airtable/lib/airtable_base.js';
4
4
 
5
5
  type SpawnResult = {
@@ -82,6 +82,63 @@ type OnboardOptions = {
82
82
  };
83
83
  declare function onboard(site: Site, opts?: OnboardOptions): Promise<RecipeResult>;
84
84
 
85
+ /**
86
+ * Writes a starter `src/routes/dev/a11y-fixtures/+page.svelte` if the route
87
+ * doesn't already exist. The hardcoded URL in `src/configs/lighthouse.ts` +
88
+ * `src/configs/playwright-a11y.ts` targets this path — newly-onboarded sites
89
+ * need the route to exist for either audit to pass. Operator edits to an
90
+ * existing page are never clobbered (noop on existing file).
91
+ */
92
+ declare function a11yFixturesPage(site: Site): Promise<RecipeResult>;
93
+
94
+ type InitStepResult = {
95
+ kind: "recipe";
96
+ result: RecipeResult;
97
+ } | {
98
+ kind: "audit";
99
+ results: AuditResult[];
100
+ } | {
101
+ kind: "error";
102
+ message: string;
103
+ };
104
+ type InitStep = {
105
+ name: string;
106
+ run: (site: Site) => Promise<InitStepResult>;
107
+ };
108
+ type InitResult = {
109
+ site: string;
110
+ steps: Array<{
111
+ name: string;
112
+ result: InitStepResult;
113
+ }>;
114
+ /** True if every step ran; false if an `error` or `failed` recipe result
115
+ * short-circuited the chain. `noop` recipes do not break completeness. */
116
+ complete: boolean;
117
+ };
118
+ type InitOptions = {
119
+ /** Override the default step list. Tests inject mocked steps; production
120
+ * code relies on the default. */
121
+ steps?: InitStep[];
122
+ };
123
+ /** convert-to-pnpm → onboard → sync-configs → svelte-codemods →
124
+ * a11y-fixtures-page → audit. Order is deliberate — every step depends on
125
+ * the prior one's output (pnpm before onboard's installs, onboard's deps
126
+ * before sync-configs writes lighthouserc, fixtures page before audit
127
+ * actually has a route to hit). */
128
+ declare const DEFAULT_INIT_STEPS: InitStep[];
129
+ /**
130
+ * One-shot guided onboarding. Runs the default step sequence against a
131
+ * site, collecting per-step results into an InitResult. Each underlying
132
+ * recipe still creates its own branch — init is a thin orchestrator, not
133
+ * a branch-collapser; the operator ends up with one stack of branches per
134
+ * mutated step (recipes that noop don't branch).
135
+ *
136
+ * Stops the chain on the first uncaught error or `failed` recipe result.
137
+ * `noop` results are expected (e.g. running init twice) and continue the
138
+ * chain. The final audit pass runs if no prior step errored.
139
+ */
140
+ declare function init(site: Site, opts?: InitOptions): Promise<InitResult>;
141
+
85
142
  declare const ALL_RECIPE_NAMES: RecipeName[];
86
143
  declare function isRecipeName(value: string): value is RecipeName;
87
144
 
@@ -294,4 +351,4 @@ type DueItem = {
294
351
  */
295
352
  declare function findDueReports(websites: WebsiteRow[], reports: ReportRow[], today: Date): DueItem[];
296
353
 
297
- export { ALL_AUDIT_NAMES, ALL_RECIPE_NAMES, type AirtableInventoryOptions, AuditName, AuditResult, type BumpDepsOptions, type ConvertToPnpmOptions, type DraftOptions, type DraftResult, type DueItem, type HeaderImage, InventoryProvider, type LighthouseScores, type LocalPathOptions, type OnboardAudit, type OnboardOptions, type OrchestrateOptions, RecipeName, RecipeResult, type RenderResult, type ReportData, type ReportType, Site, type UpgradeSvelte4to5Options, a11yAudit, bumpDeps, convertToPnpm, depsAudit, draftReportForSite, findDueReports, fromAirtableBase, fromJsonFile, isRecipeName, lighthouseAudit, lintAudit, localPath, onboard, renderReportHtml, runAudits, runAuditsAcross, securityAudit, sendApprovedReports, svelteCodemods, upgradeSvelte4to5 };
354
+ export { ALL_AUDIT_NAMES, ALL_RECIPE_NAMES, type AirtableInventoryOptions, AuditName, AuditResult, type BumpDepsOptions, type ConvertToPnpmOptions, DEFAULT_INIT_STEPS, type DraftOptions, type DraftResult, type DueItem, type HeaderImage, type InitOptions, type InitResult, type InitStep, type InitStepResult, InventoryProvider, type LighthouseScores, type LocalPathOptions, type OnboardAudit, type OnboardOptions, type OrchestrateOptions, RecipeName, RecipeResult, type RenderResult, type ReportData, type ReportType, Site, type UpgradeSvelte4to5Options, a11yAudit, a11yFixturesPage, bumpDeps, convertToPnpm, depsAudit, draftReportForSite, findDueReports, fromAirtableBase, fromJsonFile, init, isRecipeName, lighthouseAudit, lintAudit, localPath, onboard, renderReportHtml, runAudits, runAuditsAcross, securityAudit, sendApprovedReports, svelteCodemods, upgradeSvelte4to5 };