@contractspec/lib.lifecycle 2.3.0 → 2.5.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/browser/index.js +1042 -99
- package/dist/i18n/catalogs/en.d.ts +8 -0
- package/dist/i18n/catalogs/es.d.ts +6 -0
- package/dist/i18n/catalogs/fr.d.ts +6 -0
- package/dist/i18n/catalogs/index.d.ts +8 -0
- package/dist/i18n/i18n.test.d.ts +1 -0
- package/dist/i18n/index.d.ts +28 -0
- package/dist/i18n/keys.d.ts +184 -0
- package/dist/i18n/locale.d.ts +8 -0
- package/dist/i18n/messages.d.ts +14 -0
- package/dist/index.js +1042 -99
- package/dist/node/index.js +1042 -99
- package/dist/types/stages.d.ts +12 -0
- package/dist/utils/formatters.d.ts +4 -4
- package/package.json +6 -3
package/dist/types/stages.d.ts
CHANGED
|
@@ -19,5 +19,17 @@ export interface LifecycleStageMetadata {
|
|
|
19
19
|
focusAreas: string[];
|
|
20
20
|
}
|
|
21
21
|
export declare const LIFECYCLE_STAGE_ORDER: LifecycleStage[];
|
|
22
|
+
/**
|
|
23
|
+
* Get localized lifecycle stage metadata for all stages.
|
|
24
|
+
*
|
|
25
|
+
* @param locale - Optional locale (defaults to "en")
|
|
26
|
+
* @returns Record mapping LifecycleStage to localized LifecycleStageMetadata
|
|
27
|
+
*/
|
|
28
|
+
export declare const getLocalizedStageMeta: (locale?: string) => Record<LifecycleStage, LifecycleStageMetadata>;
|
|
29
|
+
/**
|
|
30
|
+
* Static English stage metadata — backward-compatible default.
|
|
31
|
+
*
|
|
32
|
+
* For localized metadata, use `getLocalizedStageMeta(locale)` instead.
|
|
33
|
+
*/
|
|
22
34
|
export declare const LIFECYCLE_STAGE_META: Record<LifecycleStage, LifecycleStageMetadata>;
|
|
23
35
|
export declare const getLifecycleStageBySlug: (slug: LifecycleStageSlug) => LifecycleStage;
|
|
@@ -10,9 +10,9 @@ export interface StageSummary {
|
|
|
10
10
|
focusAreas: string[];
|
|
11
11
|
axesSummary: string[];
|
|
12
12
|
}
|
|
13
|
-
export declare const formatStageSummary: (stage: LifecycleStage, assessment?: Pick<LifecycleAssessment, "axes" | "gaps"
|
|
14
|
-
export declare const summarizeAxes: (axes: LifecycleAxes) => string[];
|
|
13
|
+
export declare const formatStageSummary: (stage: LifecycleStage, assessment?: Pick<LifecycleAssessment, "axes" | "gaps">, locale?: string) => StageSummary;
|
|
14
|
+
export declare const summarizeAxes: (axes: LifecycleAxes, locale?: string) => string[];
|
|
15
15
|
export declare const rankStageCandidates: (scores: LifecycleScore[]) => LifecycleScore[];
|
|
16
|
-
export declare const createRecommendationDigest: (recommendation: LifecycleRecommendation) => string;
|
|
17
|
-
export declare const getStageLabel: (stage: LifecycleStage) => string;
|
|
16
|
+
export declare const createRecommendationDigest: (recommendation: LifecycleRecommendation, locale?: string) => string;
|
|
17
|
+
export declare const getStageLabel: (stage: LifecycleStage, locale?: string) => string;
|
|
18
18
|
export declare const getStageOrderIndex: (stage: LifecycleStage) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.lifecycle",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Contract lifecycle management primitives",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -30,11 +30,14 @@
|
|
|
30
30
|
"prebuild": "contractspec-bun-build prebuild",
|
|
31
31
|
"typecheck": "tsc --noEmit"
|
|
32
32
|
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@contractspec/lib.contracts-spec": "2.5.0"
|
|
35
|
+
},
|
|
33
36
|
"peerDependencies": {},
|
|
34
37
|
"devDependencies": {
|
|
35
|
-
"@contractspec/tool.typescript": "2.
|
|
38
|
+
"@contractspec/tool.typescript": "2.5.0",
|
|
36
39
|
"typescript": "^5.9.3",
|
|
37
|
-
"@contractspec/tool.bun": "2.
|
|
40
|
+
"@contractspec/tool.bun": "2.5.0"
|
|
38
41
|
},
|
|
39
42
|
"exports": {
|
|
40
43
|
".": {
|