qfai 2.2.0 → 2.3.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 +60 -23
- package/assets/defaults/workflows/bump-dependency.yml +4 -1
- package/assets/defaults/workflows/decide-design.yml +5 -1
- package/assets/defaults/workflows/rename-concept.yml +30 -0
- package/assets/defaults/workflows/resolve-conflicts.yml +14 -0
- package/assets/defaults/workflows/retire-feature.yml +26 -0
- package/assets/defaults/workflows/run-release.yml +12 -0
- package/assets/init/.claude/settings.json +11 -11
- package/assets/init/.codex/hooks.json +9 -9
- package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +2 -2
- package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +101 -0
- package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +78 -1
- package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +10 -5
- package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +12 -2
- package/assets/init/.qfai/assistant/rule/agent-selection.md +22 -42
- package/assets/init/.qfai/assistant/rule/constitution.md +5 -3
- package/assets/init/.qfai/assistant/rule/drift-protocol.md +19 -1
- package/assets/init/.qfai/assistant/rule/references/asset-authoring.md +1 -1
- package/assets/init/.qfai/assistant/rule/references/codex-delegation.md +4 -4
- package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +1 -1
- package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +1 -1
- package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +3 -3
- package/assets/init/.qfai/assistant/rule/research-first-protocol.md +7 -6
- package/assets/init/.qfai/assistant/rule/review-convergence.md +10 -4
- package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +81 -56
- package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +8 -8
- package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +2 -1
- package/assets/init/.qfai/assistant/rule/workflow.md +4 -4
- package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +15 -46
- package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +6 -15
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md +15 -2
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md +17 -0
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md +3 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/01_Context.md +4 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/04_Sources.md +5 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/00_index.md +4 -1
- package/assets/init/.qfai/assistant/skill/qfai-grill/SKILL.md +8 -7
- package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +15 -15
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/delegated-session.md +18 -18
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-record.md +3 -3
- package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +2 -16
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +54 -12
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/red-admissibility.md +35 -0
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/test-runner-recipes.md +445 -0
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +0 -1
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +2 -13
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-guide.md +8 -11
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-placement.md +0 -7
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +11 -18
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +34 -3
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/handoff.md +77 -2
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +14 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +7 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +32 -6
- package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +17 -18
- package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +194 -129
- package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +33 -18
- package/assets/init/.qfai/assistant/skill/qfai-run/references/plan.md +46 -22
- package/assets/init/.qfai/assistant/skill/qfai-run/references/reached-step-observations.md +2 -0
- package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +7 -4
- package/assets/init/.qfai/assistant/skill/qfai-sdd/SKILL.md +0 -13
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +3 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +13 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +83 -6
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +23 -5
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/change-request.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions/page-NNNN.md +6 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +9 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/open-questions.md +13 -0
- package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +0 -11
- package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +0 -9
- package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +15 -9
- package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +19 -19
- package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +11 -9
- package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +15 -3
- package/assets/init/.qfai/assistant/step/common-policy-check/STEP.md +0 -1
- package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +48 -12
- package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +11 -5
- package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +12 -2
- package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +18 -4
- package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +4 -2
- package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +3 -4
- package/assets/init/.qfai/assistant/step/implement-backport/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-benchmark/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-bisect/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +4 -4
- package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +31 -12
- package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +12 -9
- package/assets/init/.qfai/assistant/step/implement-minimize/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-oracle-parity/STEP.md +0 -6
- package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +35 -8
- package/assets/init/.qfai/assistant/step/implement-quarantine/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +25 -9
- package/assets/init/.qfai/assistant/step/implement-regression-fix/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +26 -6
- package/assets/init/.qfai/assistant/step/implement-revert/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +28 -7
- package/assets/init/.qfai/assistant/step/implement-seam/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-stress-harness/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-sweep/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +23 -15
- package/assets/init/.qfai/assistant/step/implement-test-fix/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-tooling/STEP.md +0 -3
- package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +71 -10
- package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +39 -8
- package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +12 -5
- package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +71 -23
- package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +5 -2
- package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +10 -4
- package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +9 -6
- package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/sdd-gate/STEP.md +0 -1
- package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +22 -3
- package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +54 -20
- package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-close/STEP.md +7 -4
- package/assets/init/.qfai/assistant/step/triage-cluster/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-decompose/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-dedupe/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +6 -2
- package/assets/init/.qfai/assistant/step/triage-investigate/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +76 -5
- package/assets/init/.qfai/assistant/step/triage-owned-cleanup/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-request-info/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-security-intake/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-advisory/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-change-note/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +35 -12
- package/assets/init/.qfai/assistant/step/verify-context/STEP.md +7 -26
- package/assets/init/.qfai/assistant/step/verify-external/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-manual/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-qfai-gate/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-release-notes/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-repeat-run/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +65 -9
- package/assets/init/root/.agents/rules/api-budget.md +8 -3
- package/assets/init/root/.agents/rules/graph-exploration.md +18 -4
- package/assets/init/root/.agents/rules/grilling.md +9 -9
- package/assets/init/root/.agents/rules/reminders.json +20 -28
- package/assets/init/root/.agents/rules/user-questions.md +21 -11
- package/assets/init/root/.gitattributes +2 -0
- package/assets/init/root/AGENTS.md +1 -1
- package/assets/mdschema/manifest.yml +3 -0
- package/assets/mdschema/story/03_contract/tech.mdschema.yml +1 -1
- package/assets/mdschema/story/decisions/page-NNNN.mdschema.yml +32 -0
- package/assets/mdschema/story/decisions.mdschema.yml +12 -0
- package/assets/schemas/workflow/extraction.schema.json +94 -2
- package/assets/schemas/workflow/plan.schema.json +34 -1
- package/assets/scripts/check-mdschema.mjs +434 -45
- package/dist/cli/index.cjs +4991 -3148
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +4780 -2929
- package/dist/cli/index.mjs.map +1 -1
- package/dist/graph/cli.cjs +14 -2
- package/dist/graph/cli.cjs.map +1 -1
- package/dist/graph/cli.d.cts +1 -1
- package/dist/graph/cli.d.ts +1 -1
- package/dist/graph/cli.mjs +14 -2
- package/dist/graph/cli.mjs.map +1 -1
- package/dist/graph/hook.cjs.map +1 -1
- package/dist/graph/hook.mjs.map +1 -1
- package/dist/index.cjs +4359 -3843
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -21
- package/dist/index.d.ts +60 -21
- package/dist/index.mjs +3594 -3080
- package/dist/index.mjs.map +1 -1
- package/dist/process-qqX2Owgq.d.cts +18 -0
- package/dist/process-qqX2Owgq.d.ts +18 -0
- package/package.json +1 -1
- package/assets/defaults/agent-routing/_contract.yml +0 -77
- package/assets/defaults/agent-routing/common.yml +0 -14
- package/assets/defaults/agent-routing/qfai-discussion.yml +0 -57
- package/assets/defaults/agent-routing/qfai-implement.yml +0 -236
- package/assets/defaults/agent-routing/qfai-maintain.yml +0 -12
- package/assets/defaults/agent-routing/qfai-prototyping.yml +0 -48
- package/assets/defaults/agent-routing/qfai-sdd.yml +0 -56
- package/assets/defaults/agent-routing/qfai-triage.yml +0 -108
- package/assets/defaults/agent-routing/qfai-verify.yml +0 -92
- package/assets/defaults/agent-routing/skills.yml +0 -59
- package/assets/defaults/review-profiles.yml +0 -25
- package/assets/init/.qfai/assistant/agent/acceptance-test-engineer.md +0 -81
- package/assets/init/.qfai/assistant/agent/backend-engineer.md +0 -90
- package/assets/init/.qfai/assistant/agent/completion-reviewer.md +0 -88
- package/assets/init/.qfai/assistant/agent/delivery-planner.md +0 -85
- package/assets/init/.qfai/assistant/agent/devops-ci-engineer.md +0 -78
- package/assets/init/.qfai/assistant/agent/discovery-analyst.md +0 -81
- package/assets/init/.qfai/assistant/agent/doc-steward.md +0 -78
- package/assets/init/.qfai/assistant/agent/frontend-engineer.md +0 -94
- package/assets/init/.qfai/assistant/agent/orchestrator.md +0 -92
- package/assets/init/.qfai/assistant/agent/product-experience-architect.md +0 -101
- package/assets/init/.qfai/assistant/agent/qa-gatekeeper.md +0 -153
- package/assets/init/.qfai/assistant/agent/qa-strategist.md +0 -82
- package/assets/init/.qfai/assistant/agent/requirements-analyst.md +0 -96
- package/assets/init/.qfai/assistant/agent/solution-architect.md +0 -89
- package/assets/init/.qfai/assistant/agent/test-design-analyst.md +0 -132
- package/dist/process-C21nTvkT.d.cts +0 -12
- package/dist/process-C21nTvkT.d.ts +0 -12
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GraphProcess } from './process-
|
|
1
|
+
import { G as GraphProcess } from './process-qqX2Owgq.cjs';
|
|
2
2
|
|
|
3
3
|
type IssueSeverity = "info" | "warning" | "error";
|
|
4
4
|
type IssueCategory = "canonical" | "change";
|
|
@@ -106,6 +106,28 @@ type ValidationTimings = {
|
|
|
106
106
|
ms: number;
|
|
107
107
|
}[];
|
|
108
108
|
};
|
|
109
|
+
/**
|
|
110
|
+
* The time the checks under one label took. The label is the code families of the issues those
|
|
111
|
+
* checks returned (`STORY` for `QFAI-STORY-*`), or a check's own name when it returned none.
|
|
112
|
+
*/
|
|
113
|
+
type ValidationFamilyTiming = {
|
|
114
|
+
family: string;
|
|
115
|
+
ms: number;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Wall-clock cost of each finding family, slowest first, written only when `--timings` asks for it.
|
|
119
|
+
*
|
|
120
|
+
* Like `ValidationTimings` it describes the machine, not the tree, so it raises no finding.
|
|
121
|
+
*/
|
|
122
|
+
type ValidationFamilyTimings = {
|
|
123
|
+
/** Checks that ran one after another, summed per family. */
|
|
124
|
+
sequential: readonly ValidationFamilyTiming[];
|
|
125
|
+
/**
|
|
126
|
+
* The UI/UX group, whose checks run side by side: each time includes waiting for the others,
|
|
127
|
+
* so these overlap and do not add up to the group's own time.
|
|
128
|
+
*/
|
|
129
|
+
overlapping: readonly ValidationFamilyTiming[];
|
|
130
|
+
};
|
|
109
131
|
type ValidationResult = {
|
|
110
132
|
toolVersion: string;
|
|
111
133
|
/**
|
|
@@ -139,6 +161,7 @@ type ValidationResult = {
|
|
|
139
161
|
counts: ValidationCounts;
|
|
140
162
|
waivers?: ValidationWaivers;
|
|
141
163
|
timings?: ValidationTimings;
|
|
164
|
+
familyTimings?: ValidationFamilyTimings;
|
|
142
165
|
};
|
|
143
166
|
|
|
144
167
|
type FailOn = "never" | "warning" | "error";
|
|
@@ -266,21 +289,6 @@ type QfaiReportConfig = {
|
|
|
266
289
|
*/
|
|
267
290
|
keepLatestRuns?: number;
|
|
268
291
|
};
|
|
269
|
-
/**
|
|
270
|
-
* Project routing overrides replace a complete entry, keyed by the step or the
|
|
271
|
-
* skill it routes. An entry carries exactly one of `step:` and `skill:`.
|
|
272
|
-
*/
|
|
273
|
-
type QfaiRoutingEntry = Record<string, unknown> & {
|
|
274
|
-
step?: string;
|
|
275
|
-
skill?: string;
|
|
276
|
-
};
|
|
277
|
-
/** The name a routing entry is keyed by: its `step:`, else its `skill:`. */
|
|
278
|
-
declare function routingEntryName(entry: {
|
|
279
|
-
step?: unknown;
|
|
280
|
-
skill?: unknown;
|
|
281
|
-
}): string | undefined;
|
|
282
|
-
/** Project review-profile overrides replace a complete profile, keyed by name. */
|
|
283
|
-
type QfaiReviewProfile = Record<string, unknown>;
|
|
284
292
|
type QfaiConfig = {
|
|
285
293
|
paths: QfaiPaths;
|
|
286
294
|
validation: QfaiValidationConfig;
|
|
@@ -288,8 +296,6 @@ type QfaiConfig = {
|
|
|
288
296
|
uiux?: QfaiUiuxConfig;
|
|
289
297
|
prototyping?: QfaiPrototypingConfig;
|
|
290
298
|
report?: QfaiReportConfig;
|
|
291
|
-
routing?: QfaiRoutingEntry[];
|
|
292
|
-
reviewProfiles?: Record<string, QfaiReviewProfile>;
|
|
293
299
|
baseBranch?: string;
|
|
294
300
|
};
|
|
295
301
|
/**
|
|
@@ -349,6 +355,20 @@ declare const SKIPPED_WORKFLOWS_MESSAGE: string;
|
|
|
349
355
|
* `null` means the value is not a list of shipped names, and no entry is guessed in its place.
|
|
350
356
|
*/
|
|
351
357
|
declare function readSkippedWorkflows(document: unknown): ReadonlySet<string> | null;
|
|
358
|
+
/** The config issue an invalid `workflow.acceptedDrift` raises. */
|
|
359
|
+
declare const ACCEPTED_DRIFT_MESSAGE: string;
|
|
360
|
+
/** One `workflow.acceptedDrift` entry: the digest of the accepted text and why it is kept. */
|
|
361
|
+
type AcceptedDrift = {
|
|
362
|
+
readonly digest: string;
|
|
363
|
+
readonly reason: string;
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* The shipped workflows `workflow.acceptedDrift` accepts as differing from the shipped text, each
|
|
367
|
+
* with the digest of the accepted text and its trimmed reason, read from the parsed config
|
|
368
|
+
* document. `null` means the value is not a list of such entries, and no entry is accepted in its
|
|
369
|
+
* place.
|
|
370
|
+
*/
|
|
371
|
+
declare function readAcceptedDrift(document: unknown): ReadonlyMap<string, AcceptedDrift> | null;
|
|
352
372
|
declare function resolvePath(root: string, config: QfaiConfig, key: ConfigPathKey): string;
|
|
353
373
|
/**
|
|
354
374
|
* Why the file's `prototyping.primaryUiContract` was rejected, or `undefined` when the file sets
|
|
@@ -611,10 +631,24 @@ declare function formatReportMarkdown(data: ReportData, options?: {
|
|
|
611
631
|
}): string;
|
|
612
632
|
declare function formatReportJson(data: ReportData): string;
|
|
613
633
|
|
|
634
|
+
/**
|
|
635
|
+
* The checks of a clock under the label a user can read, summed per label, slowest first and ties
|
|
636
|
+
* in name order. The label is the code families of the issues the check returned, sorted and
|
|
637
|
+
* joined with `/`, so it cannot disagree with the findings; a check that returned none keeps its
|
|
638
|
+
* own name.
|
|
639
|
+
*/
|
|
640
|
+
declare function labelCheckTimings(clock: ReadonlyMap<string, {
|
|
641
|
+
ms: number;
|
|
642
|
+
families: ReadonlySet<string>;
|
|
643
|
+
}>): ValidationFamilyTiming[];
|
|
614
644
|
type ValidationOptions = {
|
|
615
645
|
profile?: ValidationProfile;
|
|
616
646
|
platform?: string;
|
|
617
647
|
flowIds?: readonly string[];
|
|
648
|
+
/** A rendered-text file the caller wrote (`--rendered`), compared with the UI contracts in every profile. */
|
|
649
|
+
renderedPath?: string;
|
|
650
|
+
/** Add the time of each finding family to the result (`--timings`). */
|
|
651
|
+
familyTimings?: boolean;
|
|
618
652
|
};
|
|
619
653
|
declare function validateProject(root: string, configResult?: ConfigLoadResult, options?: ValidationOptions): Promise<ValidationResult>;
|
|
620
654
|
/**
|
|
@@ -770,8 +804,8 @@ type InstalledOlderThanDeclared = {
|
|
|
770
804
|
* Whether the running qfai is older than the lowest version this project's
|
|
771
805
|
* dependency declaration admits.
|
|
772
806
|
*
|
|
773
|
-
* The declaration is the
|
|
774
|
-
*
|
|
807
|
+
* The declaration is the project's own record of "the qfai this tree was
|
|
808
|
+
* written for", beside the version file `qfai init` writes. An
|
|
775
809
|
* installed copy below that floor is the state a lockfile that moved after the
|
|
776
810
|
* last install leaves, and every rule whose input is a generated file can then
|
|
777
811
|
* disagree with the tree for a reason that is not in the tree.
|
|
@@ -982,6 +1016,11 @@ interface GraphPreparation {
|
|
|
982
1016
|
documents: "documents-not-ready";
|
|
983
1017
|
failedStep?: string;
|
|
984
1018
|
recovery?: string;
|
|
1019
|
+
/** A failed download repeated by hand into a throwaway directory, whose output shows the cause. */
|
|
1020
|
+
rerun?: {
|
|
1021
|
+
command: string;
|
|
1022
|
+
directory: string;
|
|
1023
|
+
};
|
|
985
1024
|
previousInstallation?: "retained" | "none";
|
|
986
1025
|
}
|
|
987
1026
|
|
|
@@ -1042,4 +1081,4 @@ declare function prepareDocumentAnalysis(root: string, run?: GraphProcess, appro
|
|
|
1042
1081
|
/** Run one ordered spec-to-story migration step from the current project root. */
|
|
1043
1082
|
declare function runMigrationStep(step: number, argv: string[]): Promise<number>;
|
|
1044
1083
|
|
|
1045
|
-
export { AC_GHERKIN_SECTION, ARCHETYPES, ATDD_TEST_KIND_DIRS, type ApproveExternalProcessing, type Archetype, type AtddTestKind, COLOR_KEYS, type ColorKey, type ConfigLoadResult, type ConfigPathKey, type ConfigSearchResult, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, type DocumentPreparation, type ExternalProcessingRequest, FONT_KEYS, type FailOn, type FenceMaskOptions, type FontKey, ID_PREFIXES, type IdFormatPrefix, type IdPrefix, type InstalledOlderThanDeclared, type InvalidIdOccurrence, type Issue, type IssueCategory, type IssueLocation, type IssueSeverity, type OutputFormat, type ParseError, type ParseResult, type QfaiConfig, type QfaiForbiddenIdentifier, type QfaiOutputConfig, type QfaiPaths, type QfaiPrototypingConfig, type QfaiPrototypingExecutionConfig, type QfaiReportConfig, type
|
|
1084
|
+
export { ACCEPTED_DRIFT_MESSAGE, AC_GHERKIN_SECTION, ARCHETYPES, ATDD_TEST_KIND_DIRS, type AcceptedDrift, type ApproveExternalProcessing, type Archetype, type AtddTestKind, COLOR_KEYS, type ColorKey, type ConfigLoadResult, type ConfigPathKey, type ConfigSearchResult, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, type DocumentPreparation, type ExternalProcessingRequest, FONT_KEYS, type FailOn, type FenceMaskOptions, type FontKey, ID_PREFIXES, type IdFormatPrefix, type IdPrefix, type InstalledOlderThanDeclared, type InvalidIdOccurrence, type Issue, type IssueCategory, type IssueLocation, type IssueSeverity, type OutputFormat, type ParseError, type ParseResult, type QfaiConfig, type QfaiForbiddenIdentifier, type QfaiOutputConfig, type QfaiPaths, type QfaiPrototypingConfig, type QfaiPrototypingExecutionConfig, type QfaiReportConfig, type QfaiUiuxAuditConfig, type QfaiUiuxConfig, type QfaiValidationConfig, RADIUS_KEYS, type RadiusKey, type ReportData, type RunSddPreflightOptions, SHADOW_KEYS, SKIPPED_WORKFLOWS_MESSAGE, type SddPreflightResult, type SddPreflightSource, type SddPreflightStatus, type ShadowKey, type TestFileExtensions, type TestLayerRoots, VISUAL_BROWSER_SURFACES, type ValidationCounts, type ValidationFamilyTiming, type ValidationFamilyTimings, type ValidationIssue, type ValidationOptions, type ValidationProfile, type ValidationResult, type ValidationTimings, type ValidationWaiverAction, type ValidationWaiverDowngradeTo, type ValidationWaiverEntry, type ValidationWaiverMatch, type ValidationWaiverScope, type ValidationWaiverSeverity, type ValidationWaiverSuppressed, type ValidationWaivers, WORKFLOW_MODE_MESSAGE, type WorkflowMode, atddAcceptanceLayerFilter, atddAcceptanceTestGlobs, atddTestKindDirs, classifyAgainstDeclaration, classifyToolLocation, compareInstalledToDeclared, countIssues, createReportData, createTestLayerRoots, defaultConfig, deriveAtddFilePattern, deriveTestFileExtensions, extractAcSpecNumber, extractAllIds, extractBrSpecNumber, extractCapSpecNumber, extractCaseSpecNumber, extractIds, extractInvalidIdOccurrences, extractInvalidIds, extractScSpecNumber, extractSpecNumber, extractUsSpecNumber, findConfigRoot, findDeclaringDir, findLinkingNodeModules, findPackageJsonUpward, formatReportJson, formatReportMarkdown, getConfigPath, isDiscussionUiBearingSurfaceType, isNonUiDiscussionSurface, isOlderVersion, isUnreplacedDesignMdSample, labelCheckTimings, lintSql, loadConfig, locateToolAgainstProject, lowestVersionOfRange, maskFencedCodeBlocks, orderUiuxParts, packageRootProbe, parseDesignMd, prepareDocumentAnalysis, prepareGraphIntegration, reachedThroughLinkedNodeModules, readAcceptedDrift, readDeclaredQfaiRange, readRejectedPrimaryUiContract, readSkippedWorkflows, readTestFileExtensions, readWorkflowMode, renderGraphPreparation, requiresVisualBrowserEvidence, resolvePath, resolveTestKind, resolveToolPackageDir, resolveToolVersion, resolvesThroughOwnNodeModules, runMigrationStep, runSddPreflight, validateContracts, validateDesignMd, validateProject, validateUiContractParse };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GraphProcess } from './process-
|
|
1
|
+
import { G as GraphProcess } from './process-qqX2Owgq.js';
|
|
2
2
|
|
|
3
3
|
type IssueSeverity = "info" | "warning" | "error";
|
|
4
4
|
type IssueCategory = "canonical" | "change";
|
|
@@ -106,6 +106,28 @@ type ValidationTimings = {
|
|
|
106
106
|
ms: number;
|
|
107
107
|
}[];
|
|
108
108
|
};
|
|
109
|
+
/**
|
|
110
|
+
* The time the checks under one label took. The label is the code families of the issues those
|
|
111
|
+
* checks returned (`STORY` for `QFAI-STORY-*`), or a check's own name when it returned none.
|
|
112
|
+
*/
|
|
113
|
+
type ValidationFamilyTiming = {
|
|
114
|
+
family: string;
|
|
115
|
+
ms: number;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Wall-clock cost of each finding family, slowest first, written only when `--timings` asks for it.
|
|
119
|
+
*
|
|
120
|
+
* Like `ValidationTimings` it describes the machine, not the tree, so it raises no finding.
|
|
121
|
+
*/
|
|
122
|
+
type ValidationFamilyTimings = {
|
|
123
|
+
/** Checks that ran one after another, summed per family. */
|
|
124
|
+
sequential: readonly ValidationFamilyTiming[];
|
|
125
|
+
/**
|
|
126
|
+
* The UI/UX group, whose checks run side by side: each time includes waiting for the others,
|
|
127
|
+
* so these overlap and do not add up to the group's own time.
|
|
128
|
+
*/
|
|
129
|
+
overlapping: readonly ValidationFamilyTiming[];
|
|
130
|
+
};
|
|
109
131
|
type ValidationResult = {
|
|
110
132
|
toolVersion: string;
|
|
111
133
|
/**
|
|
@@ -139,6 +161,7 @@ type ValidationResult = {
|
|
|
139
161
|
counts: ValidationCounts;
|
|
140
162
|
waivers?: ValidationWaivers;
|
|
141
163
|
timings?: ValidationTimings;
|
|
164
|
+
familyTimings?: ValidationFamilyTimings;
|
|
142
165
|
};
|
|
143
166
|
|
|
144
167
|
type FailOn = "never" | "warning" | "error";
|
|
@@ -266,21 +289,6 @@ type QfaiReportConfig = {
|
|
|
266
289
|
*/
|
|
267
290
|
keepLatestRuns?: number;
|
|
268
291
|
};
|
|
269
|
-
/**
|
|
270
|
-
* Project routing overrides replace a complete entry, keyed by the step or the
|
|
271
|
-
* skill it routes. An entry carries exactly one of `step:` and `skill:`.
|
|
272
|
-
*/
|
|
273
|
-
type QfaiRoutingEntry = Record<string, unknown> & {
|
|
274
|
-
step?: string;
|
|
275
|
-
skill?: string;
|
|
276
|
-
};
|
|
277
|
-
/** The name a routing entry is keyed by: its `step:`, else its `skill:`. */
|
|
278
|
-
declare function routingEntryName(entry: {
|
|
279
|
-
step?: unknown;
|
|
280
|
-
skill?: unknown;
|
|
281
|
-
}): string | undefined;
|
|
282
|
-
/** Project review-profile overrides replace a complete profile, keyed by name. */
|
|
283
|
-
type QfaiReviewProfile = Record<string, unknown>;
|
|
284
292
|
type QfaiConfig = {
|
|
285
293
|
paths: QfaiPaths;
|
|
286
294
|
validation: QfaiValidationConfig;
|
|
@@ -288,8 +296,6 @@ type QfaiConfig = {
|
|
|
288
296
|
uiux?: QfaiUiuxConfig;
|
|
289
297
|
prototyping?: QfaiPrototypingConfig;
|
|
290
298
|
report?: QfaiReportConfig;
|
|
291
|
-
routing?: QfaiRoutingEntry[];
|
|
292
|
-
reviewProfiles?: Record<string, QfaiReviewProfile>;
|
|
293
299
|
baseBranch?: string;
|
|
294
300
|
};
|
|
295
301
|
/**
|
|
@@ -349,6 +355,20 @@ declare const SKIPPED_WORKFLOWS_MESSAGE: string;
|
|
|
349
355
|
* `null` means the value is not a list of shipped names, and no entry is guessed in its place.
|
|
350
356
|
*/
|
|
351
357
|
declare function readSkippedWorkflows(document: unknown): ReadonlySet<string> | null;
|
|
358
|
+
/** The config issue an invalid `workflow.acceptedDrift` raises. */
|
|
359
|
+
declare const ACCEPTED_DRIFT_MESSAGE: string;
|
|
360
|
+
/** One `workflow.acceptedDrift` entry: the digest of the accepted text and why it is kept. */
|
|
361
|
+
type AcceptedDrift = {
|
|
362
|
+
readonly digest: string;
|
|
363
|
+
readonly reason: string;
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* The shipped workflows `workflow.acceptedDrift` accepts as differing from the shipped text, each
|
|
367
|
+
* with the digest of the accepted text and its trimmed reason, read from the parsed config
|
|
368
|
+
* document. `null` means the value is not a list of such entries, and no entry is accepted in its
|
|
369
|
+
* place.
|
|
370
|
+
*/
|
|
371
|
+
declare function readAcceptedDrift(document: unknown): ReadonlyMap<string, AcceptedDrift> | null;
|
|
352
372
|
declare function resolvePath(root: string, config: QfaiConfig, key: ConfigPathKey): string;
|
|
353
373
|
/**
|
|
354
374
|
* Why the file's `prototyping.primaryUiContract` was rejected, or `undefined` when the file sets
|
|
@@ -611,10 +631,24 @@ declare function formatReportMarkdown(data: ReportData, options?: {
|
|
|
611
631
|
}): string;
|
|
612
632
|
declare function formatReportJson(data: ReportData): string;
|
|
613
633
|
|
|
634
|
+
/**
|
|
635
|
+
* The checks of a clock under the label a user can read, summed per label, slowest first and ties
|
|
636
|
+
* in name order. The label is the code families of the issues the check returned, sorted and
|
|
637
|
+
* joined with `/`, so it cannot disagree with the findings; a check that returned none keeps its
|
|
638
|
+
* own name.
|
|
639
|
+
*/
|
|
640
|
+
declare function labelCheckTimings(clock: ReadonlyMap<string, {
|
|
641
|
+
ms: number;
|
|
642
|
+
families: ReadonlySet<string>;
|
|
643
|
+
}>): ValidationFamilyTiming[];
|
|
614
644
|
type ValidationOptions = {
|
|
615
645
|
profile?: ValidationProfile;
|
|
616
646
|
platform?: string;
|
|
617
647
|
flowIds?: readonly string[];
|
|
648
|
+
/** A rendered-text file the caller wrote (`--rendered`), compared with the UI contracts in every profile. */
|
|
649
|
+
renderedPath?: string;
|
|
650
|
+
/** Add the time of each finding family to the result (`--timings`). */
|
|
651
|
+
familyTimings?: boolean;
|
|
618
652
|
};
|
|
619
653
|
declare function validateProject(root: string, configResult?: ConfigLoadResult, options?: ValidationOptions): Promise<ValidationResult>;
|
|
620
654
|
/**
|
|
@@ -770,8 +804,8 @@ type InstalledOlderThanDeclared = {
|
|
|
770
804
|
* Whether the running qfai is older than the lowest version this project's
|
|
771
805
|
* dependency declaration admits.
|
|
772
806
|
*
|
|
773
|
-
* The declaration is the
|
|
774
|
-
*
|
|
807
|
+
* The declaration is the project's own record of "the qfai this tree was
|
|
808
|
+
* written for", beside the version file `qfai init` writes. An
|
|
775
809
|
* installed copy below that floor is the state a lockfile that moved after the
|
|
776
810
|
* last install leaves, and every rule whose input is a generated file can then
|
|
777
811
|
* disagree with the tree for a reason that is not in the tree.
|
|
@@ -982,6 +1016,11 @@ interface GraphPreparation {
|
|
|
982
1016
|
documents: "documents-not-ready";
|
|
983
1017
|
failedStep?: string;
|
|
984
1018
|
recovery?: string;
|
|
1019
|
+
/** A failed download repeated by hand into a throwaway directory, whose output shows the cause. */
|
|
1020
|
+
rerun?: {
|
|
1021
|
+
command: string;
|
|
1022
|
+
directory: string;
|
|
1023
|
+
};
|
|
985
1024
|
previousInstallation?: "retained" | "none";
|
|
986
1025
|
}
|
|
987
1026
|
|
|
@@ -1042,4 +1081,4 @@ declare function prepareDocumentAnalysis(root: string, run?: GraphProcess, appro
|
|
|
1042
1081
|
/** Run one ordered spec-to-story migration step from the current project root. */
|
|
1043
1082
|
declare function runMigrationStep(step: number, argv: string[]): Promise<number>;
|
|
1044
1083
|
|
|
1045
|
-
export { AC_GHERKIN_SECTION, ARCHETYPES, ATDD_TEST_KIND_DIRS, type ApproveExternalProcessing, type Archetype, type AtddTestKind, COLOR_KEYS, type ColorKey, type ConfigLoadResult, type ConfigPathKey, type ConfigSearchResult, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, type DocumentPreparation, type ExternalProcessingRequest, FONT_KEYS, type FailOn, type FenceMaskOptions, type FontKey, ID_PREFIXES, type IdFormatPrefix, type IdPrefix, type InstalledOlderThanDeclared, type InvalidIdOccurrence, type Issue, type IssueCategory, type IssueLocation, type IssueSeverity, type OutputFormat, type ParseError, type ParseResult, type QfaiConfig, type QfaiForbiddenIdentifier, type QfaiOutputConfig, type QfaiPaths, type QfaiPrototypingConfig, type QfaiPrototypingExecutionConfig, type QfaiReportConfig, type
|
|
1084
|
+
export { ACCEPTED_DRIFT_MESSAGE, AC_GHERKIN_SECTION, ARCHETYPES, ATDD_TEST_KIND_DIRS, type AcceptedDrift, type ApproveExternalProcessing, type Archetype, type AtddTestKind, COLOR_KEYS, type ColorKey, type ConfigLoadResult, type ConfigPathKey, type ConfigSearchResult, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, type DocumentPreparation, type ExternalProcessingRequest, FONT_KEYS, type FailOn, type FenceMaskOptions, type FontKey, ID_PREFIXES, type IdFormatPrefix, type IdPrefix, type InstalledOlderThanDeclared, type InvalidIdOccurrence, type Issue, type IssueCategory, type IssueLocation, type IssueSeverity, type OutputFormat, type ParseError, type ParseResult, type QfaiConfig, type QfaiForbiddenIdentifier, type QfaiOutputConfig, type QfaiPaths, type QfaiPrototypingConfig, type QfaiPrototypingExecutionConfig, type QfaiReportConfig, type QfaiUiuxAuditConfig, type QfaiUiuxConfig, type QfaiValidationConfig, RADIUS_KEYS, type RadiusKey, type ReportData, type RunSddPreflightOptions, SHADOW_KEYS, SKIPPED_WORKFLOWS_MESSAGE, type SddPreflightResult, type SddPreflightSource, type SddPreflightStatus, type ShadowKey, type TestFileExtensions, type TestLayerRoots, VISUAL_BROWSER_SURFACES, type ValidationCounts, type ValidationFamilyTiming, type ValidationFamilyTimings, type ValidationIssue, type ValidationOptions, type ValidationProfile, type ValidationResult, type ValidationTimings, type ValidationWaiverAction, type ValidationWaiverDowngradeTo, type ValidationWaiverEntry, type ValidationWaiverMatch, type ValidationWaiverScope, type ValidationWaiverSeverity, type ValidationWaiverSuppressed, type ValidationWaivers, WORKFLOW_MODE_MESSAGE, type WorkflowMode, atddAcceptanceLayerFilter, atddAcceptanceTestGlobs, atddTestKindDirs, classifyAgainstDeclaration, classifyToolLocation, compareInstalledToDeclared, countIssues, createReportData, createTestLayerRoots, defaultConfig, deriveAtddFilePattern, deriveTestFileExtensions, extractAcSpecNumber, extractAllIds, extractBrSpecNumber, extractCapSpecNumber, extractCaseSpecNumber, extractIds, extractInvalidIdOccurrences, extractInvalidIds, extractScSpecNumber, extractSpecNumber, extractUsSpecNumber, findConfigRoot, findDeclaringDir, findLinkingNodeModules, findPackageJsonUpward, formatReportJson, formatReportMarkdown, getConfigPath, isDiscussionUiBearingSurfaceType, isNonUiDiscussionSurface, isOlderVersion, isUnreplacedDesignMdSample, labelCheckTimings, lintSql, loadConfig, locateToolAgainstProject, lowestVersionOfRange, maskFencedCodeBlocks, orderUiuxParts, packageRootProbe, parseDesignMd, prepareDocumentAnalysis, prepareGraphIntegration, reachedThroughLinkedNodeModules, readAcceptedDrift, readDeclaredQfaiRange, readRejectedPrimaryUiContract, readSkippedWorkflows, readTestFileExtensions, readWorkflowMode, renderGraphPreparation, requiresVisualBrowserEvidence, resolvePath, resolveTestKind, resolveToolPackageDir, resolveToolVersion, resolvesThroughOwnNodeModules, runMigrationStep, runSddPreflight, validateContracts, validateDesignMd, validateProject, validateUiContractParse };
|