speckeeper 0.19.1 → 0.19.2
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/cli-contract.yaml +1 -1
- package/dist/{config-api-BVPg8Ewm.d.ts → config-api-4eGvNZX0.d.ts} +3 -2
- package/dist/dsl/index.d.ts +4 -3
- package/dist/external/insight-provider.d.ts +3 -2
- package/dist/index.d.ts +5 -4
- package/dist/{relation-FGdEl6Yg.d.ts → relation-DeDVtUqo.d.ts} +4 -3
- package/dist/speckeeper.bundle.mjs +329 -337
- package/docs/cli-reference.md +1 -1
- package/package.json +31 -22
package/cli-contract.yaml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z, ZodType } from 'zod';
|
|
2
|
-
import { M as ModelLevel } from './relation-
|
|
2
|
+
import { M as ModelLevel } from './relation-DeDVtUqo.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The output a judge returns for one packet.
|
|
@@ -1348,4 +1348,5 @@ declare function createLintRule<T>(config: {
|
|
|
1348
1348
|
} | null;
|
|
1349
1349
|
}): LintRule<T>;
|
|
1350
1350
|
|
|
1351
|
-
export {
|
|
1351
|
+
export { ID_PATTERNS as W, createIaCRefId as a$, LinkSchema as a0, LintIssueSchema as a1, Model as a8, buildRegistryFromConfig as aQ, createAPIRefId as aR, createActorId as aS, createBatchRefId as aT, createBoundaryId as aU, createComponentId as aV, createDTORequirementId as aW, createEntityId as aX, createErrorCaseId as aY, createEventRequirementId as aZ, createFormId as a_, PhaseSchema as ac, PrioritySchema as ae, ReferenceDefinitionSchema as ai, createLayerId as b0, createLintRule as b1, createMarkdownExporter as b2, createMermaidExporter as b3, createProcessFlowId as b4, createRelationId as b5, createRequirementId as b6, createRuleId as b7, createScreenId as b8, createStateId as b9, createTableRefId as ba, createTermId as bb, createTransitionId as bc, createUIComponentId as bd, createUseCaseId as be, defineConfig as bf, defineModel as bg, defineReviewOutput as bh, defineSpecs as bi, findModelTypeFromConfig as bj, getPhaseIndex as bk, getSpecsFromConfig as bl, isSlotUnresolved as bm, loadYamlDir as bn, loadYamlSpecs as bo, mergeSpecs as bp, traverseReferenceGraph as bq, CheckErrorSchema as s, CheckResultSchema as t, CheckWarningSchema as v, ConcretizationSlotSchema as y, ConcretizationSlotsFieldSchema as z };
|
|
1352
|
+
export type { Link as $, ArtifactConfig as A, BaseModelInstance as B, CoverageChecker as C, DeepValidationConfig as D, Exporter as E, ContextResult as F, CoverageResult as G, DDLValidationMapping as H, DTORequirementId as I, DeepValidationRule as J, EntityId as K, LintRule$1 as L, ModelDefinition as M, ErrorCaseId as N, EventRequirementId as O, Phase as P, ExternalChecker$1 as Q, ReferenceGraphEdge as R, SourceMatch as S, ExternalConstraint as T, ExternalSsotPaths as U, FormId as V, IaCRefId as X, InferModelType as Y, JsonSchemaExporter as Z, LayerId as _, SourceScanner as a, LintResult as a2, LookupKeyConfig as a3, MarkdownExporter as a4, MergedDesign as a5, MermaidExporter as a6, MetaModelConfig as a7, ModelDefinitionInput as a9, ReviewRegistry as aA, ReviewRule as aB, ReviewTarget as aC, RuleId as aD, ScanReporter as aE, ScreenId as aF, Severity as aG, SpecModule as aH, StateId as aI, TableRefId as aJ, TermId as aK, TransitionId as aL, UIComponentId as aM, UseCaseId as aN, ValidationError as aO, ValidationResult as aP, ModelRegistrySchema as aa, OpenAPIValidationMapping as ab, Priority as ad, ProcessFlowId as af, ReachedSpec as ag, ReferenceDefinition as ah, ReferenceDirection as aj, ReferenceGraph as ak, ReferenceGraphNode as al, RelationId as am, RenderContext as an, Renderer as ao, RequirementId as ap, ResolvedSpeckeeperConfig as aq, ReviewAdapterName as ar, ReviewCheck as as, ReviewConfigInput as at, ReviewFinding as au, ReviewGateConfig as av, ReviewGateSeverity as aw, ReviewModelClass as ax, ReviewOutputDefinition as ay, ReviewPrompt as az, CheckResult$1 as b, SourceConfig as c, CheckContext as d, CheckResult as e, ExportContext as f, MetaModelRegistry as g, LintContext as h, LintRule as i, LintIssue as j, ContextProvider as k, SpecEntry as l, SpeckeeperConfigInput as m, APIRefId as n, ActorId as o, BatchRefId as p, BoundaryId as q, CheckError as r, CheckWarning as u, ComponentId as w, ConcretizationSlot as x };
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import '../relation-
|
|
2
|
+
import { LintRule, Exporter, CoverageChecker, ArtifactConfig, SourceMatch, SourceScanner, DeepValidationConfig, CheckResult, SourceConfig } from '../index.js';
|
|
3
|
+
import '../relation-DeDVtUqo.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Core DSL — Base spec schema
|
|
@@ -441,4 +441,5 @@ declare function runGlobalScan(sources: SourceConfig[], specIds: string[], baseP
|
|
|
441
441
|
*/
|
|
442
442
|
declare function runDeepValidation(specId: string, matches: GlobalScanMatch[], deepValidation: DeepValidationConfig<any>, spec: unknown): CheckResult;
|
|
443
443
|
|
|
444
|
-
export {
|
|
444
|
+
export { ImplementsRelationSchema, VerifiedByRelationSchema, annotationCoverage, annotationScanner, apiRefSchema, arrayMinLength, baseSpecSchema, batchRefSchema, childIdFormat, createAnnotationScanner, ddlScanner, externalRefSchema, externalRefSourceSchema, findTestFiles, getArtifactsConfig, iacRefSchema, idFormat, isTypeContainedBy, markdownExporter, openapiScanner, parseTestResults, relationCoverage, requireField, runDeepValidation, runGlobalScan, setArtifactsConfig, tableRefSchema, verifyTests };
|
|
445
|
+
export type { APIRef, AnnotationCoverageConfig, BaseSpec, BatchRef, ExternalRef, ExternalRefSource, GlobalScanMatch, GlobalScanOutput, GlobalScanResult, IaCRef, ImplementsRelation, LookupKeyMap, MarkdownExporterConfig, ScanDiagnostic, TableRef, TestCasePatternInput, TestResultSummary, TestVerificationInput, TestVerificationResult, VerifiedByRelation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Relation } from '../index.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -74,4 +74,5 @@ declare function createSpeckeeperInsightProvider(configPath?: string): Speckeepe
|
|
|
74
74
|
declare function filterInsight(insight: ExternalInsight, query: InsightQuery): ExternalInsight;
|
|
75
75
|
declare function findRelationLocation(sourceFile: string, specId: string, relation: Relation, projectRoot: string): RelationLocation | undefined;
|
|
76
76
|
|
|
77
|
-
export {
|
|
77
|
+
export { SpeckeeperInsightProvider, createSpeckeeperInsightProvider, filterInsight, findRelationLocation };
|
|
78
|
+
export type { RelationLocation };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as CheckContext, e as CheckResult, f as ExportContext, M as ModelDefinition, g as MetaModelRegistry, h as LintContext, i as LintRule, j as LintIssue, R as ReferenceGraphEdge, k as ContextProvider, c as SourceConfig, P as Phase, l as SpecEntry, m as SpeckeeperConfigInput } from './config-api-
|
|
2
|
-
export { n as APIRefId, o as ActorId, A as ArtifactConfig, B as BaseModelInstance, p as BatchRefId, q as BoundaryId, r as CheckError, s as CheckErrorSchema, b as CheckResult, t as CheckResultSchema, u as CheckWarning, v as CheckWarningSchema, w as ComponentId, x as ConcretizationSlot, y as ConcretizationSlotSchema, z as ConcretizationSlotsFieldSchema, F as ContextResult, C as CoverageChecker, G as CoverageResult, H as DDLValidationMapping, I as DTORequirementId, D as DeepValidationConfig, J as DeepValidationRule, K as EntityId, N as ErrorCaseId, O as EventRequirementId, E as Exporter, Q as ExternalChecker, T as ExternalConstraint, U as ExternalSsotPaths, V as FormId, W as ID_PATTERNS, X as IaCRefId, Y as InferModelType, Z as JsonSchemaExporter, _ as LayerId, $ as Link, a0 as LinkSchema, a1 as LintIssueSchema, a2 as LintResult, L as LintRule, a3 as LookupKeyConfig, a4 as MarkdownExporter, a5 as MergedDesign, a6 as MermaidExporter, a7 as MetaModelConfig, a8 as Model, a9 as ModelDefinitionInput, aa as ModelRegistrySchema, ab as OpenAPIValidationMapping, ac as PhaseSchema, ad as Priority, ae as PrioritySchema, af as ProcessFlowId, ag as ReachedSpec, ah as ReferenceDefinition, ai as ReferenceDefinitionSchema, aj as ReferenceDirection, ak as ReferenceGraph, al as ReferenceGraphNode, am as RelationId, an as RenderContext, ao as Renderer, ap as RequirementId, aq as ResolvedSpeckeeperConfig, ar as ReviewAdapterName, as as ReviewCheck, at as ReviewConfigInput, au as ReviewFinding, av as ReviewGateConfig, aw as ReviewGateSeverity, ax as ReviewModelClass, ay as ReviewOutputDefinition, az as ReviewPrompt, aA as ReviewRegistry, aB as ReviewRule, aC as ReviewTarget, aD as RuleId, aE as ScanReporter, aF as ScreenId, aG as Severity, S as SourceMatch, a as SourceScanner, aH as SpecModule, aI as StateId, aJ as TableRefId, aK as TermId, aL as TransitionId, aM as UIComponentId, aN as UseCaseId, aO as ValidationError, aP as ValidationResult, aQ as buildRegistryFromConfig, aR as createAPIRefId, aS as createActorId, aT as createBatchRefId, aU as createBoundaryId, aV as createComponentId, aW as createDTORequirementId, aX as createEntityId, aY as createErrorCaseId, aZ as createEventRequirementId, a_ as createFormId, a$ as createIaCRefId, b0 as createLayerId, b1 as createLintRule, b2 as createMarkdownExporter, b3 as createMermaidExporter, b4 as createProcessFlowId, b5 as createRelationId, b6 as createRequirementId, b7 as createRuleId, b8 as createScreenId, b9 as createStateId, ba as createTableRefId, bb as createTermId, bc as createTransitionId, bd as createUIComponentId, be as createUseCaseId, bf as defineConfig, bg as defineModel, bh as defineReviewOutput, bi as defineSpecs, bj as findModelTypeFromConfig, bk as getPhaseIndex, bl as getSpecsFromConfig, bm as isSlotUnresolved, bn as loadYamlDir, bo as loadYamlSpecs, bp as mergeSpecs, bq as traverseReferenceGraph } from './config-api-
|
|
3
|
-
export { M as ModelLevel, a as RELATION_CONSTRAINTS, b as RELATION_TYPES, R as Relation, c as RelationSchema, d as RelationValidationError, e as RelationsFieldSchema, f as detectCycles, g as getLevelIndex, i as inferModelIdFromSpecId, v as validateRelationLevel } from './relation-
|
|
1
|
+
import { d as CheckContext, e as CheckResult, f as ExportContext, M as ModelDefinition, g as MetaModelRegistry, h as LintContext, i as LintRule, j as LintIssue, R as ReferenceGraphEdge, k as ContextProvider, c as SourceConfig, P as Phase, l as SpecEntry, m as SpeckeeperConfigInput } from './config-api-4eGvNZX0.js';
|
|
2
|
+
export { n as APIRefId, o as ActorId, A as ArtifactConfig, B as BaseModelInstance, p as BatchRefId, q as BoundaryId, r as CheckError, s as CheckErrorSchema, b as CheckResult, t as CheckResultSchema, u as CheckWarning, v as CheckWarningSchema, w as ComponentId, x as ConcretizationSlot, y as ConcretizationSlotSchema, z as ConcretizationSlotsFieldSchema, F as ContextResult, C as CoverageChecker, G as CoverageResult, H as DDLValidationMapping, I as DTORequirementId, D as DeepValidationConfig, J as DeepValidationRule, K as EntityId, N as ErrorCaseId, O as EventRequirementId, E as Exporter, Q as ExternalChecker, T as ExternalConstraint, U as ExternalSsotPaths, V as FormId, W as ID_PATTERNS, X as IaCRefId, Y as InferModelType, Z as JsonSchemaExporter, _ as LayerId, $ as Link, a0 as LinkSchema, a1 as LintIssueSchema, a2 as LintResult, L as LintRule, a3 as LookupKeyConfig, a4 as MarkdownExporter, a5 as MergedDesign, a6 as MermaidExporter, a7 as MetaModelConfig, a8 as Model, a9 as ModelDefinitionInput, aa as ModelRegistrySchema, ab as OpenAPIValidationMapping, ac as PhaseSchema, ad as Priority, ae as PrioritySchema, af as ProcessFlowId, ag as ReachedSpec, ah as ReferenceDefinition, ai as ReferenceDefinitionSchema, aj as ReferenceDirection, ak as ReferenceGraph, al as ReferenceGraphNode, am as RelationId, an as RenderContext, ao as Renderer, ap as RequirementId, aq as ResolvedSpeckeeperConfig, ar as ReviewAdapterName, as as ReviewCheck, at as ReviewConfigInput, au as ReviewFinding, av as ReviewGateConfig, aw as ReviewGateSeverity, ax as ReviewModelClass, ay as ReviewOutputDefinition, az as ReviewPrompt, aA as ReviewRegistry, aB as ReviewRule, aC as ReviewTarget, aD as RuleId, aE as ScanReporter, aF as ScreenId, aG as Severity, S as SourceMatch, a as SourceScanner, aH as SpecModule, aI as StateId, aJ as TableRefId, aK as TermId, aL as TransitionId, aM as UIComponentId, aN as UseCaseId, aO as ValidationError, aP as ValidationResult, aQ as buildRegistryFromConfig, aR as createAPIRefId, aS as createActorId, aT as createBatchRefId, aU as createBoundaryId, aV as createComponentId, aW as createDTORequirementId, aX as createEntityId, aY as createErrorCaseId, aZ as createEventRequirementId, a_ as createFormId, a$ as createIaCRefId, b0 as createLayerId, b1 as createLintRule, b2 as createMarkdownExporter, b3 as createMermaidExporter, b4 as createProcessFlowId, b5 as createRelationId, b6 as createRequirementId, b7 as createRuleId, b8 as createScreenId, b9 as createStateId, ba as createTableRefId, bb as createTermId, bc as createTransitionId, bd as createUIComponentId, be as createUseCaseId, bf as defineConfig, bg as defineModel, bh as defineReviewOutput, bi as defineSpecs, bj as findModelTypeFromConfig, bk as getPhaseIndex, bl as getSpecsFromConfig, bm as isSlotUnresolved, bn as loadYamlDir, bo as loadYamlSpecs, bp as mergeSpecs, bq as traverseReferenceGraph } from './config-api-4eGvNZX0.js';
|
|
3
|
+
export { M as ModelLevel, a as RELATION_CONSTRAINTS, b as RELATION_TYPES, R as Relation, c as RelationSchema, d as RelationValidationError, e as RelationsFieldSchema, f as detectCycles, g as getLevelIndex, i as inferModelIdFromSpecId, v as validateRelationLevel } from './relation-DeDVtUqo.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -231,4 +231,5 @@ declare function findDefinitionFiles(srcDir: string, subDir: string): Promise<st
|
|
|
231
231
|
declare function generateDocsPath(baseDir: string, category: string, filename: string): string;
|
|
232
232
|
declare function generateSpecsPath(baseDir: string, category: string, filename: string): string;
|
|
233
233
|
|
|
234
|
-
export {
|
|
234
|
+
export { CheckContext, ContextProvider, ExportContext, LintContext, LintIssue, MetaModelRegistry, ModelDefinition, Phase, ReferenceGraphEdge, SourceConfig, SpecEntry, SpeckeeperConfigInput, batchWriteFiles, checkBatchDrift, checkExternalSsot, checkFileDrift, checkReferenceIntegrity, computeHash, ensureDir, exportAllModels, exportMarkdown, exportMermaid, findConfigFile, findDefinitionFiles, findFiles, findTypeScriptFiles, generateDocsPath, generateSpecsPath, getAllInstances, getAllModelDefinitions, getAllModelInstances, getGlobalModelRegistry, getModelDefinition, getModelInstance, getModelRegistryStats, lintAllModels, lintModel, loadConfig, registerModelDefinition, registerModelDefinitions, registerModelInstance, relationsContext, resetModelInstances, resetModelRegistry, resolveReference, writeFile, writeJsonFile };
|
|
235
|
+
export type { BatchWriteResult, DriftResult, RelationsContextOptions, SpeckeeperConfig, WriteResult };
|
|
@@ -31,9 +31,9 @@ type RelationType = typeof RELATION_TYPES[number];
|
|
|
31
31
|
*/
|
|
32
32
|
declare const RelationSchema: z.ZodObject<{
|
|
33
33
|
type: z.ZodEnum<{
|
|
34
|
-
includes: "includes";
|
|
35
34
|
dependsOn: "dependsOn";
|
|
36
35
|
uses: "uses";
|
|
36
|
+
includes: "includes";
|
|
37
37
|
implements: "implements";
|
|
38
38
|
refines: "refines";
|
|
39
39
|
verifies: "verifies";
|
|
@@ -51,9 +51,9 @@ declare const RelationSchema: z.ZodObject<{
|
|
|
51
51
|
*/
|
|
52
52
|
declare const RelationsFieldSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
53
|
type: z.ZodEnum<{
|
|
54
|
-
includes: "includes";
|
|
55
54
|
dependsOn: "dependsOn";
|
|
56
55
|
uses: "uses";
|
|
56
|
+
includes: "includes";
|
|
57
57
|
implements: "implements";
|
|
58
58
|
refines: "refines";
|
|
59
59
|
verifies: "verifies";
|
|
@@ -117,4 +117,5 @@ declare function detectCycles(relations: Array<{
|
|
|
117
117
|
*/
|
|
118
118
|
declare function inferModelIdFromSpecId(specId: string): string | undefined;
|
|
119
119
|
|
|
120
|
-
export {
|
|
120
|
+
export { RELATION_CONSTRAINTS as a, RELATION_TYPES as b, RelationSchema as c, RelationsFieldSchema as e, detectCycles as f, getLevelIndex as g, inferModelIdFromSpecId as i, validateRelationLevel as v };
|
|
121
|
+
export type { ModelLevel as M, Relation as R, RelationValidationError as d };
|