qfai 2.2.1 → 2.4.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 +37 -20
- package/assets/init/.claude/settings.json +35 -1
- package/assets/init/.codex/hooks.json +24 -0
- package/assets/init/.github/instructions/code-review.instructions.md +1 -1
- package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +4 -4
- package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +129 -0
- package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +76 -4
- package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +9 -5
- package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +13 -3
- package/assets/init/.qfai/assistant/rule/agent-selection.md +22 -42
- package/assets/init/.qfai/assistant/rule/communication.md +1 -1
- package/assets/init/.qfai/assistant/rule/constitution.md +77 -242
- package/assets/init/.qfai/assistant/rule/drift-protocol.md +31 -165
- package/assets/init/.qfai/assistant/rule/references/asset-authoring.md +4 -3
- package/assets/init/.qfai/assistant/rule/references/codex-delegation.md +4 -4
- package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +2 -2
- package/assets/init/.qfai/assistant/rule/references/placeholder-scan.md +2 -3
- package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +3 -3
- package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +15 -6
- package/assets/init/.qfai/assistant/rule/research-first-protocol.md +7 -6
- package/assets/init/.qfai/assistant/rule/review-convergence.md +7 -7
- package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +82 -66
- package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +19 -21
- package/assets/init/.qfai/assistant/rule/test-layers.md +1 -1
- package/assets/init/.qfai/assistant/rule/thinking.md +2 -2
- package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +5 -5
- package/assets/init/.qfai/assistant/rule/ui-procurement.md +1 -1
- package/assets/init/.qfai/assistant/rule/workflow.md +16 -16
- package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +27 -60
- package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +3 -17
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/03_Story-Workshop.md +1 -2
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/50_review_input_bundle.md +4 -3
- package/assets/init/.qfai/assistant/skill/qfai-grill/SKILL.md +9 -10
- package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +45 -58
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/confirmation-sheet.md +71 -0
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/delegated-session.md +35 -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 -18
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +53 -21
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +35 -2
- package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +2 -5
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +2 -15
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-guide.md +10 -14
- 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 +6 -15
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +76 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/handoff.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +60 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +15 -6
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +42 -11
- package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +8 -10
- package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +12 -7
- package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +4 -4
- package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/SKILL.md +10 -25
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +27 -29
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +13 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-anti-patterns.md +36 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-authoring.md +8 -9
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/requirements-decomposition.md +6 -6
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +7 -7
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +5 -5
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +7 -7
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +3 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +115 -199
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +25 -25
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +23 -113
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-design-contract-normalization.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/ui-contract.sample.yaml +8 -7
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/03_contract/tech.md +1 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions/page-NNNN.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +59 -31
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/open-questions.md +15 -11
- package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +1 -14
- package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +2 -13
- package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +1 -1
- package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +19 -21
- package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +9 -11
- package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +2 -3
- package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +3 -4
- package/assets/init/.qfai/assistant/step/common-policy-check/STEP.md +1 -2
- package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +8 -7
- package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +7 -9
- package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +43 -2
- package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +1 -5
- 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 +0 -4
- package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +11 -18
- package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +0 -6
- 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 +1 -3
- package/assets/init/.qfai/assistant/step/implement-quarantine/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-regression-fix/STEP.md +2 -6
- package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +0 -6
- package/assets/init/.qfai/assistant/step/implement-revert/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +5 -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 +10 -18
- 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 +18 -21
- package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +4 -6
- package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +106 -31
- package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +18 -19
- package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +8 -11
- package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +25 -6
- package/assets/init/.qfai/assistant/step/sdd-gate/STEP.md +0 -1
- package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +6 -8
- package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +71 -82
- package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-close/STEP.md +0 -2
- 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 +0 -2
- package/assets/init/.qfai/assistant/step/triage-investigate/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +29 -17
- 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 +2 -6
- 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 +0 -2
- package/assets/init/root/.agents/rules/ai-readable-markdown.md +8 -1
- package/assets/init/root/.agents/rules/delegation-steering.md +69 -0
- package/assets/init/root/.agents/rules/grilling.md +81 -52
- package/assets/init/root/.agents/rules/minimal-implementation.md +5 -5
- package/assets/init/root/.agents/rules/reply-forms.md +191 -0
- package/assets/init/root/.agents/rules/session-feedback.md +104 -27
- package/assets/init/root/.agents/rules/user-questions.md +6 -1
- package/assets/init/root/.gitattributes +5 -6
- package/assets/init/root/AGENTS.md +4 -2
- package/assets/mdschema/story/03_contract/tech.mdschema.yml +1 -1
- package/assets/mdschema/story/decisions/page-NNNN.mdschema.yml +3 -3
- package/assets/mdschema/story/decisions.mdschema.yml +4 -4
- package/assets/mdschema/story/open-questions.mdschema.yml +3 -3
- package/assets/schemas/workflow/extraction.schema.json +0 -2
- package/dist/cli/index.cjs +3826 -3929
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +3793 -3904
- 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/hook/turn-end.cjs +1022 -0
- package/dist/hook/turn-end.cjs.map +1 -0
- package/dist/hook/turn-end.d.cts +2 -0
- package/dist/hook/turn-end.d.ts +2 -0
- package/dist/hook/turn-end.mjs +998 -0
- package/dist/hook/turn-end.mjs.map +1 -0
- package/dist/index.cjs +3635 -4578
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -21
- package/dist/index.d.ts +20 -21
- package/dist/index.mjs +3696 -4641
- 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 +2 -2
- 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/assets/init/.qfai/assistant/skill/qfai-sdd/templates/change-request.md +0 -52
- 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";
|
|
@@ -189,6 +189,11 @@ type QfaiForbiddenIdentifier = {
|
|
|
189
189
|
sha256: string;
|
|
190
190
|
byteLength: number;
|
|
191
191
|
};
|
|
192
|
+
type DiagramBudget = {
|
|
193
|
+
nodes: number;
|
|
194
|
+
edges: number;
|
|
195
|
+
};
|
|
196
|
+
declare const DEFAULT_DIAGRAM_BUDGET: DiagramBudget;
|
|
192
197
|
type QfaiValidationConfig = {
|
|
193
198
|
failOn: FailOn;
|
|
194
199
|
/**
|
|
@@ -197,6 +202,12 @@ type QfaiValidationConfig = {
|
|
|
197
202
|
* (QFAI-STORY-016). Unset means no term is checked.
|
|
198
203
|
*/
|
|
199
204
|
staleTerms?: string[];
|
|
205
|
+
/**
|
|
206
|
+
* The largest node and edge counts a Mermaid diagram may have before
|
|
207
|
+
* `qfai validate` warns (QFAI-FLOW-006). A limit left unset is the default
|
|
208
|
+
* of `DEFAULT_DIAGRAM_BUDGET`.
|
|
209
|
+
*/
|
|
210
|
+
diagramBudget?: Partial<DiagramBudget>;
|
|
200
211
|
/** Hash-only identifiers checked against tracked names and current file bytes. */
|
|
201
212
|
forbiddenIdentifiers?: QfaiForbiddenIdentifier[];
|
|
202
213
|
testStrategy: {
|
|
@@ -289,21 +300,6 @@ type QfaiReportConfig = {
|
|
|
289
300
|
*/
|
|
290
301
|
keepLatestRuns?: number;
|
|
291
302
|
};
|
|
292
|
-
/**
|
|
293
|
-
* Project routing overrides replace a complete entry, keyed by the step or the
|
|
294
|
-
* skill it routes. An entry carries exactly one of `step:` and `skill:`.
|
|
295
|
-
*/
|
|
296
|
-
type QfaiRoutingEntry = Record<string, unknown> & {
|
|
297
|
-
step?: string;
|
|
298
|
-
skill?: string;
|
|
299
|
-
};
|
|
300
|
-
/** The name a routing entry is keyed by: its `step:`, else its `skill:`. */
|
|
301
|
-
declare function routingEntryName(entry: {
|
|
302
|
-
step?: unknown;
|
|
303
|
-
skill?: unknown;
|
|
304
|
-
}): string | undefined;
|
|
305
|
-
/** Project review-profile overrides replace a complete profile, keyed by name. */
|
|
306
|
-
type QfaiReviewProfile = Record<string, unknown>;
|
|
307
303
|
type QfaiConfig = {
|
|
308
304
|
paths: QfaiPaths;
|
|
309
305
|
validation: QfaiValidationConfig;
|
|
@@ -311,8 +307,6 @@ type QfaiConfig = {
|
|
|
311
307
|
uiux?: QfaiUiuxConfig;
|
|
312
308
|
prototyping?: QfaiPrototypingConfig;
|
|
313
309
|
report?: QfaiReportConfig;
|
|
314
|
-
routing?: QfaiRoutingEntry[];
|
|
315
|
-
reviewProfiles?: Record<string, QfaiReviewProfile>;
|
|
316
310
|
baseBranch?: string;
|
|
317
311
|
};
|
|
318
312
|
/**
|
|
@@ -356,6 +350,13 @@ declare const defaultConfig: QfaiConfig;
|
|
|
356
350
|
declare function getConfigPath(root: string): string;
|
|
357
351
|
declare function findConfigRoot(startDir: string): Promise<ConfigSearchResult>;
|
|
358
352
|
declare function loadConfig(root: string): Promise<ConfigLoadResult>;
|
|
353
|
+
/** The config issue an invalid `workflow.stopGate` raises. */
|
|
354
|
+
declare const STOP_GATE_MESSAGE = "workflow.stopGate must be true or false; an absent key means true.";
|
|
355
|
+
/**
|
|
356
|
+
* Whether the turn-end hook runs the project's turn-end checks, read from the parsed config
|
|
357
|
+
* document. `null` means the value is not a boolean, which the hook treats as `false`.
|
|
358
|
+
*/
|
|
359
|
+
declare function readStopGate(document: unknown): boolean | null;
|
|
359
360
|
declare const WORKFLOW_MODES: readonly ["active", "shadow", "off"];
|
|
360
361
|
/** The config issue an invalid `workflow.mode` raises. */
|
|
361
362
|
declare const WORKFLOW_MODE_MESSAGE = "workflow.mode must be active, shadow or off; an absent key means active.";
|
|
@@ -662,8 +663,6 @@ type ValidationOptions = {
|
|
|
662
663
|
profile?: ValidationProfile;
|
|
663
664
|
platform?: string;
|
|
664
665
|
flowIds?: readonly string[];
|
|
665
|
-
/** A rendered-text file the caller wrote (`--rendered`), compared with the UI contracts in every profile. */
|
|
666
|
-
renderedPath?: string;
|
|
667
666
|
/** Add the time of each finding family to the result (`--timings`). */
|
|
668
667
|
familyTimings?: boolean;
|
|
669
668
|
};
|
|
@@ -1098,4 +1097,4 @@ declare function prepareDocumentAnalysis(root: string, run?: GraphProcess, appro
|
|
|
1098
1097
|
/** Run one ordered spec-to-story migration step from the current project root. */
|
|
1099
1098
|
declare function runMigrationStep(step: number, argv: string[]): Promise<number>;
|
|
1100
1099
|
|
|
1101
|
-
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
|
|
1100
|
+
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, DEFAULT_DIAGRAM_BUDGET, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, type DiagramBudget, 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, STOP_GATE_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, readStopGate, 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";
|
|
@@ -189,6 +189,11 @@ type QfaiForbiddenIdentifier = {
|
|
|
189
189
|
sha256: string;
|
|
190
190
|
byteLength: number;
|
|
191
191
|
};
|
|
192
|
+
type DiagramBudget = {
|
|
193
|
+
nodes: number;
|
|
194
|
+
edges: number;
|
|
195
|
+
};
|
|
196
|
+
declare const DEFAULT_DIAGRAM_BUDGET: DiagramBudget;
|
|
192
197
|
type QfaiValidationConfig = {
|
|
193
198
|
failOn: FailOn;
|
|
194
199
|
/**
|
|
@@ -197,6 +202,12 @@ type QfaiValidationConfig = {
|
|
|
197
202
|
* (QFAI-STORY-016). Unset means no term is checked.
|
|
198
203
|
*/
|
|
199
204
|
staleTerms?: string[];
|
|
205
|
+
/**
|
|
206
|
+
* The largest node and edge counts a Mermaid diagram may have before
|
|
207
|
+
* `qfai validate` warns (QFAI-FLOW-006). A limit left unset is the default
|
|
208
|
+
* of `DEFAULT_DIAGRAM_BUDGET`.
|
|
209
|
+
*/
|
|
210
|
+
diagramBudget?: Partial<DiagramBudget>;
|
|
200
211
|
/** Hash-only identifiers checked against tracked names and current file bytes. */
|
|
201
212
|
forbiddenIdentifiers?: QfaiForbiddenIdentifier[];
|
|
202
213
|
testStrategy: {
|
|
@@ -289,21 +300,6 @@ type QfaiReportConfig = {
|
|
|
289
300
|
*/
|
|
290
301
|
keepLatestRuns?: number;
|
|
291
302
|
};
|
|
292
|
-
/**
|
|
293
|
-
* Project routing overrides replace a complete entry, keyed by the step or the
|
|
294
|
-
* skill it routes. An entry carries exactly one of `step:` and `skill:`.
|
|
295
|
-
*/
|
|
296
|
-
type QfaiRoutingEntry = Record<string, unknown> & {
|
|
297
|
-
step?: string;
|
|
298
|
-
skill?: string;
|
|
299
|
-
};
|
|
300
|
-
/** The name a routing entry is keyed by: its `step:`, else its `skill:`. */
|
|
301
|
-
declare function routingEntryName(entry: {
|
|
302
|
-
step?: unknown;
|
|
303
|
-
skill?: unknown;
|
|
304
|
-
}): string | undefined;
|
|
305
|
-
/** Project review-profile overrides replace a complete profile, keyed by name. */
|
|
306
|
-
type QfaiReviewProfile = Record<string, unknown>;
|
|
307
303
|
type QfaiConfig = {
|
|
308
304
|
paths: QfaiPaths;
|
|
309
305
|
validation: QfaiValidationConfig;
|
|
@@ -311,8 +307,6 @@ type QfaiConfig = {
|
|
|
311
307
|
uiux?: QfaiUiuxConfig;
|
|
312
308
|
prototyping?: QfaiPrototypingConfig;
|
|
313
309
|
report?: QfaiReportConfig;
|
|
314
|
-
routing?: QfaiRoutingEntry[];
|
|
315
|
-
reviewProfiles?: Record<string, QfaiReviewProfile>;
|
|
316
310
|
baseBranch?: string;
|
|
317
311
|
};
|
|
318
312
|
/**
|
|
@@ -356,6 +350,13 @@ declare const defaultConfig: QfaiConfig;
|
|
|
356
350
|
declare function getConfigPath(root: string): string;
|
|
357
351
|
declare function findConfigRoot(startDir: string): Promise<ConfigSearchResult>;
|
|
358
352
|
declare function loadConfig(root: string): Promise<ConfigLoadResult>;
|
|
353
|
+
/** The config issue an invalid `workflow.stopGate` raises. */
|
|
354
|
+
declare const STOP_GATE_MESSAGE = "workflow.stopGate must be true or false; an absent key means true.";
|
|
355
|
+
/**
|
|
356
|
+
* Whether the turn-end hook runs the project's turn-end checks, read from the parsed config
|
|
357
|
+
* document. `null` means the value is not a boolean, which the hook treats as `false`.
|
|
358
|
+
*/
|
|
359
|
+
declare function readStopGate(document: unknown): boolean | null;
|
|
359
360
|
declare const WORKFLOW_MODES: readonly ["active", "shadow", "off"];
|
|
360
361
|
/** The config issue an invalid `workflow.mode` raises. */
|
|
361
362
|
declare const WORKFLOW_MODE_MESSAGE = "workflow.mode must be active, shadow or off; an absent key means active.";
|
|
@@ -662,8 +663,6 @@ type ValidationOptions = {
|
|
|
662
663
|
profile?: ValidationProfile;
|
|
663
664
|
platform?: string;
|
|
664
665
|
flowIds?: readonly string[];
|
|
665
|
-
/** A rendered-text file the caller wrote (`--rendered`), compared with the UI contracts in every profile. */
|
|
666
|
-
renderedPath?: string;
|
|
667
666
|
/** Add the time of each finding family to the result (`--timings`). */
|
|
668
667
|
familyTimings?: boolean;
|
|
669
668
|
};
|
|
@@ -1098,4 +1097,4 @@ declare function prepareDocumentAnalysis(root: string, run?: GraphProcess, appro
|
|
|
1098
1097
|
/** Run one ordered spec-to-story migration step from the current project root. */
|
|
1099
1098
|
declare function runMigrationStep(step: number, argv: string[]): Promise<number>;
|
|
1100
1099
|
|
|
1101
|
-
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
|
|
1100
|
+
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, DEFAULT_DIAGRAM_BUDGET, DESIGN_MD_SAMPLE_MARKER, DISCUSSION_NON_UI_SURFACES, DISCUSSION_UI_BEARING_SURFACES, type DesignMd, type DesignMdColors, type DesignMdFonts, type DesignMdRadius, type DesignMdShadow, type DiagramBudget, 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, STOP_GATE_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, readStopGate, readTestFileExtensions, readWorkflowMode, renderGraphPreparation, requiresVisualBrowserEvidence, resolvePath, resolveTestKind, resolveToolPackageDir, resolveToolVersion, resolvesThroughOwnNodeModules, runMigrationStep, runSddPreflight, validateContracts, validateDesignMd, validateProject, validateUiContractParse };
|