@lssm/module.lifecycle-advisor 1.42.0 → 1.42.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/LICENSE +21 -0
- package/README.md +13 -0
- package/dist/ceremony/ceremony-designer.d.ts +16 -0
- package/dist/ceremony/ceremony-designer.d.ts.map +1 -0
- package/dist/ceremony/ceremony-designer.js +18 -1
- package/dist/ceremony/ceremony-designer.js.map +1 -0
- package/dist/data/library-stage-map.d.ts +11 -0
- package/dist/data/library-stage-map.d.ts.map +1 -0
- package/dist/data/library-stage-map.js +92 -1
- package/dist/data/library-stage-map.js.map +1 -0
- package/dist/data/stage-playbooks.d.ts +12 -0
- package/dist/data/stage-playbooks.d.ts.map +1 -0
- package/dist/data/stage-playbooks.js +241 -1
- package/dist/data/stage-playbooks.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -1
- package/dist/recommendations/library-recommender.d.ts +17 -0
- package/dist/recommendations/library-recommender.d.ts.map +1 -0
- package/dist/recommendations/library-recommender.js +20 -1
- package/dist/recommendations/library-recommender.js.map +1 -0
- package/dist/recommendations/recommendation-engine.d.ts +17 -0
- package/dist/recommendations/recommendation-engine.d.ts.map +1 -0
- package/dist/recommendations/recommendation-engine.js +46 -1
- package/dist/recommendations/recommendation-engine.js.map +1 -0
- package/package.json +15 -8
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Chaman Ventures, SASU
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# @lssm/module.lifecycle-advisor
|
|
2
2
|
|
|
3
|
+
Website: https://contractspec.lssm.tech/
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
Guidance layer for the ContractSpec lifecycle engine. Converts assessments into recommended actions, library adoption plans, and ceremony payloads.
|
|
4
7
|
|
|
5
8
|
## Exports
|
|
@@ -38,6 +41,16 @@ Data is stored in JSON playbooks so ContractSpec teams can update copy or mappin
|
|
|
38
41
|
|
|
39
42
|
|
|
40
43
|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
41
54
|
|
|
42
55
|
|
|
43
56
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LifecycleRecommendation, LifecycleStage } from "@lssm/lib.lifecycle";
|
|
2
|
+
|
|
3
|
+
//#region src/ceremony/ceremony-designer.d.ts
|
|
4
|
+
type CeremonyConfig = NonNullable<LifecycleRecommendation['ceremony']>;
|
|
5
|
+
interface PlaybookCeremonyEntry {
|
|
6
|
+
stage: LifecycleStage;
|
|
7
|
+
ceremony?: CeremonyConfig;
|
|
8
|
+
}
|
|
9
|
+
declare class LifecycleCeremonyDesigner {
|
|
10
|
+
private readonly ceremonies;
|
|
11
|
+
constructor(overrides?: PlaybookCeremonyEntry[]);
|
|
12
|
+
design(stage: LifecycleStage): CeremonyConfig | undefined;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { LifecycleCeremonyDesigner };
|
|
16
|
+
//# sourceMappingURL=ceremony-designer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ceremony-designer.d.ts","names":[],"sources":["../../src/ceremony/ceremony-designer.ts"],"sourcesContent":[],"mappings":";;;KAIK,cAAA,GAAiB,YAAY;AAHmB,UAK3C,qBAAA,CAFwB;EAExB,KAAA,EACD,cADC;EAYG,QAAA,CAAA,EAVA,cAUA;;AASG,cATH,yBAAA,CASG;EAAiB,iBAAA,UAAA;EAAc,WAAA,CAAA,SAAA,CAAA,EANrB,qBAMqB,EAAA;gBAA/B,iBAAiB"}
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import stage_playbooks_default from "../data/stage-playbooks.js";
|
|
2
|
+
import { LifecycleStage } from "@lssm/lib.lifecycle";
|
|
3
|
+
|
|
4
|
+
//#region src/ceremony/ceremony-designer.ts
|
|
5
|
+
const CEREMONY_MAP = new Map(stage_playbooks_default.map((entry) => [entry.stage, entry.ceremony]));
|
|
6
|
+
var LifecycleCeremonyDesigner = class {
|
|
7
|
+
ceremonies;
|
|
8
|
+
constructor(overrides) {
|
|
9
|
+
this.ceremonies = overrides?.length ? new Map(overrides.map((entry) => [entry.stage, entry.ceremony])) : CEREMONY_MAP;
|
|
10
|
+
}
|
|
11
|
+
design(stage) {
|
|
12
|
+
return this.ceremonies.get(stage);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { LifecycleCeremonyDesigner };
|
|
18
|
+
//# sourceMappingURL=ceremony-designer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ceremony-designer.js","names":["stagePlaybooks"],"sources":["../../src/ceremony/ceremony-designer.ts"],"sourcesContent":["import type { LifecycleRecommendation } from '@lssm/lib.lifecycle';\nimport { LifecycleStage } from '@lssm/lib.lifecycle';\nimport stagePlaybooks from '../data/stage-playbooks';\n\ntype CeremonyConfig = NonNullable<LifecycleRecommendation['ceremony']>;\n\ninterface PlaybookCeremonyEntry {\n stage: LifecycleStage;\n ceremony?: CeremonyConfig;\n}\n\nconst CEREMONY_MAP = new Map<LifecycleStage, CeremonyConfig | undefined>(\n (stagePlaybooks as PlaybookCeremonyEntry[]).map((entry) => [\n entry.stage,\n entry.ceremony,\n ])\n);\n\nexport class LifecycleCeremonyDesigner {\n private readonly ceremonies: Map<LifecycleStage, CeremonyConfig | undefined>;\n\n constructor(overrides?: PlaybookCeremonyEntry[]) {\n this.ceremonies = overrides?.length\n ? new Map(overrides.map((entry) => [entry.stage, entry.ceremony]))\n : CEREMONY_MAP;\n }\n\n design(stage: LifecycleStage): CeremonyConfig | undefined {\n return this.ceremonies.get(stage);\n }\n}\n"],"mappings":";;;;AAWA,MAAM,eAAe,IAAI,IACtBA,wBAA2C,KAAK,UAAU,CACzD,MAAM,OACN,MAAM,SACP,CAAC,CACH;AAED,IAAa,4BAAb,MAAuC;CACrC,AAAiB;CAEjB,YAAY,WAAqC;AAC/C,OAAK,aAAa,WAAW,SACzB,IAAI,IAAI,UAAU,KAAK,UAAU,CAAC,MAAM,OAAO,MAAM,SAAS,CAAC,CAAC,GAChE;;CAGN,OAAO,OAAmD;AACxD,SAAO,KAAK,WAAW,IAAI,MAAM"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LibraryRecommendation } from "../recommendations/library-recommender.js";
|
|
2
|
+
import { LifecycleStage } from "@lssm/lib.lifecycle";
|
|
3
|
+
|
|
4
|
+
//#region src/data/library-stage-map.d.ts
|
|
5
|
+
interface LibraryStageEntry {
|
|
6
|
+
stage: LifecycleStage;
|
|
7
|
+
items: LibraryRecommendation[];
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { LibraryStageEntry };
|
|
11
|
+
//# sourceMappingURL=library-stage-map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-stage-map.d.ts","names":[],"sources":["../../src/data/library-stage-map.ts"],"sourcesContent":[],"mappings":";;;;UAGiB,iBAAA;SACR;EADQ,KAAA,EAER,qBAFyB,EAAA"}
|
|
@@ -1 +1,92 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/data/library-stage-map.ts
|
|
2
|
+
const libraryStageMap = [
|
|
3
|
+
{
|
|
4
|
+
stage: 0,
|
|
5
|
+
items: [{
|
|
6
|
+
id: "@lssm/lib.content-gen",
|
|
7
|
+
type: "library",
|
|
8
|
+
description: "Summarize interviews and synthesize IC insights."
|
|
9
|
+
}, {
|
|
10
|
+
id: "@lssm/lib.presentation-runtime",
|
|
11
|
+
type: "library",
|
|
12
|
+
description: "Craft low-fi storyboards without custom code."
|
|
13
|
+
}]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
stage: 1,
|
|
17
|
+
items: [{
|
|
18
|
+
id: "@lssm/lib.progressive-delivery",
|
|
19
|
+
type: "library",
|
|
20
|
+
description: "Gate prototype features behind lightweight flags."
|
|
21
|
+
}, {
|
|
22
|
+
id: "@lssm/module.lifecycle-core",
|
|
23
|
+
type: "module",
|
|
24
|
+
description: "Capture questionnaire signals for early scoring."
|
|
25
|
+
}]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
stage: 2,
|
|
29
|
+
items: [{
|
|
30
|
+
id: "@lssm/lib.analytics",
|
|
31
|
+
type: "library",
|
|
32
|
+
description: "Instrument activation paths + cohorts."
|
|
33
|
+
}, {
|
|
34
|
+
id: "@lssm/lib.observability",
|
|
35
|
+
type: "library",
|
|
36
|
+
description: "Collect minimum viable traces and metrics."
|
|
37
|
+
}]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
stage: 3,
|
|
41
|
+
items: [{
|
|
42
|
+
id: "@lssm/lib.evolution",
|
|
43
|
+
type: "library",
|
|
44
|
+
description: "Auto-detect contract gaps and spec improvements."
|
|
45
|
+
}, {
|
|
46
|
+
id: "@lssm/module.lifecycle-advisor",
|
|
47
|
+
type: "module",
|
|
48
|
+
description: "Generate retention-focused guidance at scale."
|
|
49
|
+
}]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
stage: 4,
|
|
53
|
+
items: [{
|
|
54
|
+
id: "@lssm/lib.growth",
|
|
55
|
+
type: "library",
|
|
56
|
+
description: "Experiment orchestration with guardrails."
|
|
57
|
+
}, {
|
|
58
|
+
id: "@lssm/lib.resilience",
|
|
59
|
+
type: "library",
|
|
60
|
+
description: "Stabilize infra and SLOs as teams split."
|
|
61
|
+
}]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
stage: 5,
|
|
65
|
+
items: [{
|
|
66
|
+
id: "@lssm/lib.workflow-composer",
|
|
67
|
+
type: "library",
|
|
68
|
+
description: "Automate partner workflows and integrations."
|
|
69
|
+
}, {
|
|
70
|
+
id: "@lssm/bundle.contractspec-studio",
|
|
71
|
+
type: "bundle",
|
|
72
|
+
description: "Expose managed partner onboarding via Studio."
|
|
73
|
+
}]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
stage: 6,
|
|
77
|
+
items: [{
|
|
78
|
+
id: "@lssm/lib.cost-tracking",
|
|
79
|
+
type: "library",
|
|
80
|
+
description: "Model margin scenarios and reinvestment bets."
|
|
81
|
+
}, {
|
|
82
|
+
id: "@lssm/lib.workflow-composer",
|
|
83
|
+
type: "library",
|
|
84
|
+
description: "Standardize renewal rituals and automation."
|
|
85
|
+
}]
|
|
86
|
+
}
|
|
87
|
+
];
|
|
88
|
+
var library_stage_map_default = libraryStageMap;
|
|
89
|
+
|
|
90
|
+
//#endregion
|
|
91
|
+
export { library_stage_map_default as default };
|
|
92
|
+
//# sourceMappingURL=library-stage-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-stage-map.js","names":["libraryStageMap: LibraryStageEntry[]"],"sources":["../../src/data/library-stage-map.ts"],"sourcesContent":["import type { LifecycleStage } from '@lssm/lib.lifecycle';\nimport type { LibraryRecommendation } from '../recommendations/library-recommender';\n\nexport interface LibraryStageEntry {\n stage: LifecycleStage;\n items: LibraryRecommendation[];\n}\n\nconst libraryStageMap: LibraryStageEntry[] = [\n {\n stage: 0 as LifecycleStage,\n items: [\n {\n id: '@lssm/lib.content-gen',\n type: 'library',\n description: 'Summarize interviews and synthesize IC insights.',\n },\n {\n id: '@lssm/lib.presentation-runtime',\n type: 'library',\n description: 'Craft low-fi storyboards without custom code.',\n },\n ],\n },\n {\n stage: 1 as LifecycleStage,\n items: [\n {\n id: '@lssm/lib.progressive-delivery',\n type: 'library',\n description: 'Gate prototype features behind lightweight flags.',\n },\n {\n id: '@lssm/module.lifecycle-core',\n type: 'module',\n description: 'Capture questionnaire signals for early scoring.',\n },\n ],\n },\n {\n stage: 2 as LifecycleStage,\n items: [\n {\n id: '@lssm/lib.analytics',\n type: 'library',\n description: 'Instrument activation paths + cohorts.',\n },\n {\n id: '@lssm/lib.observability',\n type: 'library',\n description: 'Collect minimum viable traces and metrics.',\n },\n ],\n },\n {\n stage: 3 as LifecycleStage,\n items: [\n {\n id: '@lssm/lib.evolution',\n type: 'library',\n description: 'Auto-detect contract gaps and spec improvements.',\n },\n {\n id: '@lssm/module.lifecycle-advisor',\n type: 'module',\n description: 'Generate retention-focused guidance at scale.',\n },\n ],\n },\n {\n stage: 4 as LifecycleStage,\n items: [\n {\n id: '@lssm/lib.growth',\n type: 'library',\n description: 'Experiment orchestration with guardrails.',\n },\n {\n id: '@lssm/lib.resilience',\n type: 'library',\n description: 'Stabilize infra and SLOs as teams split.',\n },\n ],\n },\n {\n stage: 5 as LifecycleStage,\n items: [\n {\n id: '@lssm/lib.workflow-composer',\n type: 'library',\n description: 'Automate partner workflows and integrations.',\n },\n {\n id: '@lssm/bundle.contractspec-studio',\n type: 'bundle',\n description: 'Expose managed partner onboarding via Studio.',\n },\n ],\n },\n {\n stage: 6 as LifecycleStage,\n items: [\n {\n id: '@lssm/lib.cost-tracking',\n type: 'library',\n description: 'Model margin scenarios and reinvestment bets.',\n },\n {\n id: '@lssm/lib.workflow-composer',\n type: 'library',\n description: 'Standardize renewal rituals and automation.',\n },\n ],\n },\n];\n\nexport default libraryStageMap;\n"],"mappings":";AAQA,MAAMA,kBAAuC;CAC3C;EACE,OAAO;EACP,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,EACD;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,CACF;EACF;CACD;EACE,OAAO;EACP,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,EACD;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,CACF;EACF;CACD;EACE,OAAO;EACP,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,EACD;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,CACF;EACF;CACD;EACE,OAAO;EACP,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,EACD;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,CACF;EACF;CACD;EACE,OAAO;EACP,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,EACD;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,CACF;EACF;CACD;EACE,OAAO;EACP,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,EACD;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,CACF;EACF;CACD;EACE,OAAO;EACP,OAAO,CACL;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,EACD;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACd,CACF;EACF;CACF;AAED,gCAAe"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LifecycleAction, LifecycleRecommendation, LifecycleStage } from "@lssm/lib.lifecycle";
|
|
2
|
+
|
|
3
|
+
//#region src/data/stage-playbooks.d.ts
|
|
4
|
+
interface StagePlaybookData {
|
|
5
|
+
stage: LifecycleStage;
|
|
6
|
+
focusAreas: string[];
|
|
7
|
+
actions: LifecycleAction[];
|
|
8
|
+
ceremony?: LifecycleRecommendation['ceremony'];
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { StagePlaybookData };
|
|
12
|
+
//# sourceMappingURL=stage-playbooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-playbooks.d.ts","names":[],"sources":["../../src/data/stage-playbooks.ts"],"sourcesContent":[],"mappings":";;;UAMiB,iBAAA;EAAA,KAAA,EACR,cADyB;EACzB,UAAA,EAAA,MAAA,EAAA;EAEE,OAAA,EAAA,eAAA,EAAA;EACE,QAAA,CAAA,EAAA,uBAAA,CAAA,UAAA,CAAA"}
|
|
@@ -1 +1,241 @@
|
|
|
1
|
-
import{LifecycleStage
|
|
1
|
+
import { LifecycleStage } from "@lssm/lib.lifecycle";
|
|
2
|
+
|
|
3
|
+
//#region src/data/stage-playbooks.ts
|
|
4
|
+
const stagePlaybooks = [
|
|
5
|
+
{
|
|
6
|
+
stage: LifecycleStage.Exploration,
|
|
7
|
+
focusAreas: [
|
|
8
|
+
"Discovery",
|
|
9
|
+
"Problem clarity",
|
|
10
|
+
"Persona"
|
|
11
|
+
],
|
|
12
|
+
actions: [{
|
|
13
|
+
id: "stage0-interview-burst",
|
|
14
|
+
stage: LifecycleStage.Exploration,
|
|
15
|
+
title: "Run a 5-day interview burst",
|
|
16
|
+
description: "Schedule at least 5 back-to-back interviews and capture raw quotes.",
|
|
17
|
+
priority: 1,
|
|
18
|
+
estimatedImpact: "medium",
|
|
19
|
+
effortLevel: "m",
|
|
20
|
+
category: "product",
|
|
21
|
+
recommendedLibraries: ["@lssm/lib.content-gen"]
|
|
22
|
+
}, {
|
|
23
|
+
id: "stage0-problem-story",
|
|
24
|
+
stage: LifecycleStage.Exploration,
|
|
25
|
+
title: "Write the problem story",
|
|
26
|
+
description: "Summarize the pain in one paragraph you can repeat to partners.",
|
|
27
|
+
priority: 2,
|
|
28
|
+
estimatedImpact: "low",
|
|
29
|
+
effortLevel: "s",
|
|
30
|
+
category: "product"
|
|
31
|
+
}],
|
|
32
|
+
ceremony: {
|
|
33
|
+
title: "Discovery Spark",
|
|
34
|
+
copy: "Share the sharpest pain quote with your crew. Frame it, celebrate focus.",
|
|
35
|
+
cues: ["🔎", "🗒️"]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
40
|
+
focusAreas: [
|
|
41
|
+
"Prototype",
|
|
42
|
+
"Feedback",
|
|
43
|
+
"Value proof"
|
|
44
|
+
],
|
|
45
|
+
actions: [{
|
|
46
|
+
id: "stage1-demo-loop",
|
|
47
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
48
|
+
title: "Prototype feedback loop",
|
|
49
|
+
description: "Ship a low-fidelity prototype and collect 3 rounds of reactions.",
|
|
50
|
+
priority: 1,
|
|
51
|
+
estimatedImpact: "medium",
|
|
52
|
+
effortLevel: "m",
|
|
53
|
+
category: "product",
|
|
54
|
+
recommendedLibraries: ["@lssm/lib.progressive-delivery"]
|
|
55
|
+
}, {
|
|
56
|
+
id: "stage1-referrals",
|
|
57
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
58
|
+
title: "Capture referral signals",
|
|
59
|
+
description: "Ask each tester who else should see the demo.",
|
|
60
|
+
priority: 2,
|
|
61
|
+
estimatedImpact: "low",
|
|
62
|
+
effortLevel: "s",
|
|
63
|
+
category: "growth"
|
|
64
|
+
}],
|
|
65
|
+
ceremony: {
|
|
66
|
+
title: "Solution Resonance",
|
|
67
|
+
copy: "Record a short screen share telling the before/after story to your future self.",
|
|
68
|
+
cues: ["🎤", "✨"]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
73
|
+
focusAreas: [
|
|
74
|
+
"Activation",
|
|
75
|
+
"Telemetry",
|
|
76
|
+
"Feedback"
|
|
77
|
+
],
|
|
78
|
+
actions: [{
|
|
79
|
+
id: "stage2-activation",
|
|
80
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
81
|
+
title: "Define activation checklist",
|
|
82
|
+
description: "Document the 3 steps users must finish to get value.",
|
|
83
|
+
priority: 1,
|
|
84
|
+
estimatedImpact: "high",
|
|
85
|
+
effortLevel: "m",
|
|
86
|
+
category: "operations",
|
|
87
|
+
recommendedLibraries: ["@lssm/lib.analytics", "@lssm/lib.observability"]
|
|
88
|
+
}, {
|
|
89
|
+
id: "stage2-weekly-sync",
|
|
90
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
91
|
+
title: "Weekly user sync",
|
|
92
|
+
description: "Host a standing call with your 5 most active testers.",
|
|
93
|
+
priority: 2,
|
|
94
|
+
estimatedImpact: "medium",
|
|
95
|
+
effortLevel: "m",
|
|
96
|
+
category: "company"
|
|
97
|
+
}],
|
|
98
|
+
ceremony: {
|
|
99
|
+
title: "Traction Toast",
|
|
100
|
+
copy: "Toast your first 20 real users—say their names, tell them why they matter.",
|
|
101
|
+
cues: ["🥂", "📣"]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
106
|
+
focusAreas: [
|
|
107
|
+
"Retention",
|
|
108
|
+
"Reliability",
|
|
109
|
+
"Story"
|
|
110
|
+
],
|
|
111
|
+
actions: [{
|
|
112
|
+
id: "stage3-retention-study",
|
|
113
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
114
|
+
title: "Run a retention study",
|
|
115
|
+
description: "Interview 3 retained users and publish their before/after metrics.",
|
|
116
|
+
priority: 1,
|
|
117
|
+
estimatedImpact: "high",
|
|
118
|
+
effortLevel: "m",
|
|
119
|
+
category: "product",
|
|
120
|
+
recommendedLibraries: ["@lssm/lib.evolution"]
|
|
121
|
+
}, {
|
|
122
|
+
id: "stage3-incident-review",
|
|
123
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
124
|
+
title: "Lightweight incident review",
|
|
125
|
+
description: "Review the last 2 reliability hiccups and capture fixes.",
|
|
126
|
+
priority: 2,
|
|
127
|
+
estimatedImpact: "medium",
|
|
128
|
+
effortLevel: "s",
|
|
129
|
+
category: "operations"
|
|
130
|
+
}],
|
|
131
|
+
ceremony: {
|
|
132
|
+
title: "PMF Signal Fire",
|
|
133
|
+
copy: "Write a letter to your future Series A self describing the pull you feel today.",
|
|
134
|
+
cues: ["🔥", "📬"]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
139
|
+
focusAreas: [
|
|
140
|
+
"Systems",
|
|
141
|
+
"Growth loops",
|
|
142
|
+
"Specialization"
|
|
143
|
+
],
|
|
144
|
+
actions: [{
|
|
145
|
+
id: "stage4-growth-loop",
|
|
146
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
147
|
+
title: "Codify a growth loop",
|
|
148
|
+
description: "Choose one loop (SEO, referrals, outbound) and document owners + inputs.",
|
|
149
|
+
priority: 1,
|
|
150
|
+
estimatedImpact: "high",
|
|
151
|
+
effortLevel: "l",
|
|
152
|
+
category: "growth",
|
|
153
|
+
recommendedLibraries: ["@lssm/lib.growth", "@lssm/lib.resilience"]
|
|
154
|
+
}, {
|
|
155
|
+
id: "stage4-hiring-map",
|
|
156
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
157
|
+
title: "Create hiring map",
|
|
158
|
+
description: "List specialized roles you need in the next 2 quarters.",
|
|
159
|
+
priority: 2,
|
|
160
|
+
estimatedImpact: "medium",
|
|
161
|
+
effortLevel: "m",
|
|
162
|
+
category: "company"
|
|
163
|
+
}],
|
|
164
|
+
ceremony: {
|
|
165
|
+
title: "Scale Systems",
|
|
166
|
+
copy: "Invite the team to map the journey from first user to repeatable machine.",
|
|
167
|
+
cues: ["🗺️", "⚙️"]
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
172
|
+
focusAreas: [
|
|
173
|
+
"Partners",
|
|
174
|
+
"APIs",
|
|
175
|
+
"Expansion bets"
|
|
176
|
+
],
|
|
177
|
+
actions: [{
|
|
178
|
+
id: "stage5-partner-brief",
|
|
179
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
180
|
+
title: "Partner readiness brief",
|
|
181
|
+
description: "Document partner types, value props, and onboarding steps.",
|
|
182
|
+
priority: 1,
|
|
183
|
+
estimatedImpact: "high",
|
|
184
|
+
effortLevel: "m",
|
|
185
|
+
category: "product",
|
|
186
|
+
recommendedLibraries: ["@lssm/lib.workflow-composer"]
|
|
187
|
+
}, {
|
|
188
|
+
id: "stage5-experiment-portfolio",
|
|
189
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
190
|
+
title: "Expansion experiment portfolio",
|
|
191
|
+
description: "List the top 3 markets or product lines with owners.",
|
|
192
|
+
priority: 2,
|
|
193
|
+
estimatedImpact: "medium",
|
|
194
|
+
effortLevel: "m",
|
|
195
|
+
category: "growth"
|
|
196
|
+
}],
|
|
197
|
+
ceremony: {
|
|
198
|
+
title: "Platform Threshold",
|
|
199
|
+
copy: "Host a partner circle—invite allies to share what they need from your platform.",
|
|
200
|
+
cues: ["🤝", "🌐"]
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
205
|
+
focusAreas: [
|
|
206
|
+
"Optimization",
|
|
207
|
+
"Renewal",
|
|
208
|
+
"Portfolio"
|
|
209
|
+
],
|
|
210
|
+
actions: [{
|
|
211
|
+
id: "stage6-cost-review",
|
|
212
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
213
|
+
title: "Run a cost-to-value review",
|
|
214
|
+
description: "Audit each major surface for margin impact.",
|
|
215
|
+
priority: 1,
|
|
216
|
+
estimatedImpact: "high",
|
|
217
|
+
effortLevel: "m",
|
|
218
|
+
category: "operations",
|
|
219
|
+
recommendedLibraries: ["@lssm/lib.cost-tracking"]
|
|
220
|
+
}, {
|
|
221
|
+
id: "stage6-renewal-bet",
|
|
222
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
223
|
+
title: "Define the renewal bet",
|
|
224
|
+
description: "Choose one reinvention or sunset track and set checkpoints.",
|
|
225
|
+
priority: 2,
|
|
226
|
+
estimatedImpact: "medium",
|
|
227
|
+
effortLevel: "m",
|
|
228
|
+
category: "product"
|
|
229
|
+
}],
|
|
230
|
+
ceremony: {
|
|
231
|
+
title: "Renewal Summit",
|
|
232
|
+
copy: "Pause to honor what got you here, then commit publicly to the next reinvention.",
|
|
233
|
+
cues: ["🏔️", "🔁"]
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
];
|
|
237
|
+
var stage_playbooks_default = stagePlaybooks;
|
|
238
|
+
|
|
239
|
+
//#endregion
|
|
240
|
+
export { stage_playbooks_default as default };
|
|
241
|
+
//# sourceMappingURL=stage-playbooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-playbooks.js","names":["stagePlaybooks: StagePlaybookData[]"],"sources":["../../src/data/stage-playbooks.ts"],"sourcesContent":["import type {\n LifecycleAction,\n LifecycleRecommendation,\n} from '@lssm/lib.lifecycle';\nimport { LifecycleStage } from '@lssm/lib.lifecycle';\n\nexport interface StagePlaybookData {\n stage: LifecycleStage;\n focusAreas: string[];\n actions: LifecycleAction[];\n ceremony?: LifecycleRecommendation['ceremony'];\n}\n\nconst stagePlaybooks: StagePlaybookData[] = [\n {\n stage: LifecycleStage.Exploration,\n focusAreas: ['Discovery', 'Problem clarity', 'Persona'],\n actions: [\n {\n id: 'stage0-interview-burst',\n stage: LifecycleStage.Exploration,\n title: 'Run a 5-day interview burst',\n description:\n 'Schedule at least 5 back-to-back interviews and capture raw quotes.',\n priority: 1,\n estimatedImpact: 'medium',\n effortLevel: 'm',\n category: 'product',\n recommendedLibraries: ['@lssm/lib.content-gen'],\n },\n {\n id: 'stage0-problem-story',\n stage: LifecycleStage.Exploration,\n title: 'Write the problem story',\n description:\n 'Summarize the pain in one paragraph you can repeat to partners.',\n priority: 2,\n estimatedImpact: 'low',\n effortLevel: 's',\n category: 'product',\n },\n ],\n ceremony: {\n title: 'Discovery Spark',\n copy: 'Share the sharpest pain quote with your crew. Frame it, celebrate focus.',\n cues: ['🔎', '🗒️'],\n },\n },\n {\n stage: LifecycleStage.ProblemSolutionFit,\n focusAreas: ['Prototype', 'Feedback', 'Value proof'],\n actions: [\n {\n id: 'stage1-demo-loop',\n stage: LifecycleStage.ProblemSolutionFit,\n title: 'Prototype feedback loop',\n description:\n 'Ship a low-fidelity prototype and collect 3 rounds of reactions.',\n priority: 1,\n estimatedImpact: 'medium',\n effortLevel: 'm',\n category: 'product',\n recommendedLibraries: ['@lssm/lib.progressive-delivery'],\n },\n {\n id: 'stage1-referrals',\n stage: LifecycleStage.ProblemSolutionFit,\n title: 'Capture referral signals',\n description: 'Ask each tester who else should see the demo.',\n priority: 2,\n estimatedImpact: 'low',\n effortLevel: 's',\n category: 'growth',\n },\n ],\n ceremony: {\n title: 'Solution Resonance',\n copy: 'Record a short screen share telling the before/after story to your future self.',\n cues: ['🎤', '✨'],\n },\n },\n {\n stage: LifecycleStage.MvpEarlyTraction,\n focusAreas: ['Activation', 'Telemetry', 'Feedback'],\n actions: [\n {\n id: 'stage2-activation',\n stage: LifecycleStage.MvpEarlyTraction,\n title: 'Define activation checklist',\n description: 'Document the 3 steps users must finish to get value.',\n priority: 1,\n estimatedImpact: 'high',\n effortLevel: 'm',\n category: 'operations',\n recommendedLibraries: [\n '@lssm/lib.analytics',\n '@lssm/lib.observability',\n ],\n },\n {\n id: 'stage2-weekly-sync',\n stage: LifecycleStage.MvpEarlyTraction,\n title: 'Weekly user sync',\n description: 'Host a standing call with your 5 most active testers.',\n priority: 2,\n estimatedImpact: 'medium',\n effortLevel: 'm',\n category: 'company',\n },\n ],\n ceremony: {\n title: 'Traction Toast',\n copy: 'Toast your first 20 real users—say their names, tell them why they matter.',\n cues: ['🥂', '📣'],\n },\n },\n {\n stage: LifecycleStage.ProductMarketFit,\n focusAreas: ['Retention', 'Reliability', 'Story'],\n actions: [\n {\n id: 'stage3-retention-study',\n stage: LifecycleStage.ProductMarketFit,\n title: 'Run a retention study',\n description:\n 'Interview 3 retained users and publish their before/after metrics.',\n priority: 1,\n estimatedImpact: 'high',\n effortLevel: 'm',\n category: 'product',\n recommendedLibraries: ['@lssm/lib.evolution'],\n },\n {\n id: 'stage3-incident-review',\n stage: LifecycleStage.ProductMarketFit,\n title: 'Lightweight incident review',\n description: 'Review the last 2 reliability hiccups and capture fixes.',\n priority: 2,\n estimatedImpact: 'medium',\n effortLevel: 's',\n category: 'operations',\n },\n ],\n ceremony: {\n title: 'PMF Signal Fire',\n copy: 'Write a letter to your future Series A self describing the pull you feel today.',\n cues: ['🔥', '📬'],\n },\n },\n {\n stage: LifecycleStage.GrowthScaleUp,\n focusAreas: ['Systems', 'Growth loops', 'Specialization'],\n actions: [\n {\n id: 'stage4-growth-loop',\n stage: LifecycleStage.GrowthScaleUp,\n title: 'Codify a growth loop',\n description:\n 'Choose one loop (SEO, referrals, outbound) and document owners + inputs.',\n priority: 1,\n estimatedImpact: 'high',\n effortLevel: 'l',\n category: 'growth',\n recommendedLibraries: ['@lssm/lib.growth', '@lssm/lib.resilience'],\n },\n {\n id: 'stage4-hiring-map',\n stage: LifecycleStage.GrowthScaleUp,\n title: 'Create hiring map',\n description: 'List specialized roles you need in the next 2 quarters.',\n priority: 2,\n estimatedImpact: 'medium',\n effortLevel: 'm',\n category: 'company',\n },\n ],\n ceremony: {\n title: 'Scale Systems',\n copy: 'Invite the team to map the journey from first user to repeatable machine.',\n cues: ['🗺️', '⚙️'],\n },\n },\n {\n stage: LifecycleStage.ExpansionPlatform,\n focusAreas: ['Partners', 'APIs', 'Expansion bets'],\n actions: [\n {\n id: 'stage5-partner-brief',\n stage: LifecycleStage.ExpansionPlatform,\n title: 'Partner readiness brief',\n description:\n 'Document partner types, value props, and onboarding steps.',\n priority: 1,\n estimatedImpact: 'high',\n effortLevel: 'm',\n category: 'product',\n recommendedLibraries: ['@lssm/lib.workflow-composer'],\n },\n {\n id: 'stage5-experiment-portfolio',\n stage: LifecycleStage.ExpansionPlatform,\n title: 'Expansion experiment portfolio',\n description: 'List the top 3 markets or product lines with owners.',\n priority: 2,\n estimatedImpact: 'medium',\n effortLevel: 'm',\n category: 'growth',\n },\n ],\n ceremony: {\n title: 'Platform Threshold',\n copy: 'Host a partner circle—invite allies to share what they need from your platform.',\n cues: ['🤝', '🌐'],\n },\n },\n {\n stage: LifecycleStage.MaturityRenewal,\n focusAreas: ['Optimization', 'Renewal', 'Portfolio'],\n actions: [\n {\n id: 'stage6-cost-review',\n stage: LifecycleStage.MaturityRenewal,\n title: 'Run a cost-to-value review',\n description: 'Audit each major surface for margin impact.',\n priority: 1,\n estimatedImpact: 'high',\n effortLevel: 'm',\n category: 'operations',\n recommendedLibraries: ['@lssm/lib.cost-tracking'],\n },\n {\n id: 'stage6-renewal-bet',\n stage: LifecycleStage.MaturityRenewal,\n title: 'Define the renewal bet',\n description:\n 'Choose one reinvention or sunset track and set checkpoints.',\n priority: 2,\n estimatedImpact: 'medium',\n effortLevel: 'm',\n category: 'product',\n },\n ],\n ceremony: {\n title: 'Renewal Summit',\n copy: 'Pause to honor what got you here, then commit publicly to the next reinvention.',\n cues: ['🏔️', '🔁'],\n },\n },\n];\n\nexport default stagePlaybooks;\n"],"mappings":"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"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LifecycleRecommendationEngine, RecommendationOptions } from "./recommendations/recommendation-engine.js";
|
|
2
|
+
import { ContractSpecLibraryRecommender, LibraryRecommendation } from "./recommendations/library-recommender.js";
|
|
3
|
+
import { LifecycleCeremonyDesigner } from "./ceremony/ceremony-designer.js";
|
|
4
|
+
export { ContractSpecLibraryRecommender, LibraryRecommendation, LifecycleCeremonyDesigner, LifecycleRecommendationEngine, RecommendationOptions };
|
package/dist/index.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
import{LifecycleRecommendationEngine
|
|
1
|
+
import { LifecycleRecommendationEngine } from "./recommendations/recommendation-engine.js";
|
|
2
|
+
import { ContractSpecLibraryRecommender } from "./recommendations/library-recommender.js";
|
|
3
|
+
import { LifecycleCeremonyDesigner } from "./ceremony/ceremony-designer.js";
|
|
4
|
+
|
|
5
|
+
export { ContractSpecLibraryRecommender, LifecycleCeremonyDesigner, LifecycleRecommendationEngine };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LibraryStageEntry } from "../data/library-stage-map.js";
|
|
2
|
+
import { LifecycleStage } from "@lssm/lib.lifecycle";
|
|
3
|
+
|
|
4
|
+
//#region src/recommendations/library-recommender.d.ts
|
|
5
|
+
interface LibraryRecommendation {
|
|
6
|
+
id: string;
|
|
7
|
+
type: 'library' | 'module' | 'bundle';
|
|
8
|
+
description: string;
|
|
9
|
+
}
|
|
10
|
+
declare class ContractSpecLibraryRecommender {
|
|
11
|
+
private readonly mapping;
|
|
12
|
+
constructor(overrides?: LibraryStageEntry[]);
|
|
13
|
+
recommend(stage: LifecycleStage, limit?: number): LibraryRecommendation[];
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ContractSpecLibraryRecommender, LibraryRecommendation };
|
|
17
|
+
//# sourceMappingURL=library-recommender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-recommender.d.ts","names":[],"sources":["../../src/recommendations/library-recommender.ts"],"sourcesContent":[],"mappings":";;;;UAKiB,qBAAA;;EAAA,IAAA,EAAA,SAAA,GAAA,QAAqB,GAAA,QAAA;EAUzB,WAAA,EAAA,MAAA;;AASM,cATN,8BAAA,CASM;EAA4B,iBAAA,OAAA;EAAqB,WAAA,CAAA,SAAA,CAAA,EAN1C,iBAM0C,EAAA;mBAAjD,iCAA4B"}
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import library_stage_map_default from "../data/library-stage-map.js";
|
|
2
|
+
import { LifecycleStage } from "@lssm/lib.lifecycle";
|
|
3
|
+
|
|
4
|
+
//#region src/recommendations/library-recommender.ts
|
|
5
|
+
const LIBRARY_MAP = new Map(library_stage_map_default.map((entry) => [entry.stage, entry.items]));
|
|
6
|
+
var ContractSpecLibraryRecommender = class {
|
|
7
|
+
mapping;
|
|
8
|
+
constructor(overrides) {
|
|
9
|
+
this.mapping = overrides?.length ? new Map(overrides.map((entry) => [entry.stage, entry.items])) : LIBRARY_MAP;
|
|
10
|
+
}
|
|
11
|
+
recommend(stage, limit = 4) {
|
|
12
|
+
const items = this.mapping.get(stage);
|
|
13
|
+
if (!items?.length) return [];
|
|
14
|
+
return items.slice(0, limit);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ContractSpecLibraryRecommender };
|
|
20
|
+
//# sourceMappingURL=library-recommender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-recommender.js","names":["libraryStageMap"],"sources":["../../src/recommendations/library-recommender.ts"],"sourcesContent":["import { LifecycleStage } from '@lssm/lib.lifecycle';\nimport libraryStageMap, {\n type LibraryStageEntry,\n} from '../data/library-stage-map';\n\nexport interface LibraryRecommendation {\n id: string;\n type: 'library' | 'module' | 'bundle';\n description: string;\n}\n\nconst LIBRARY_MAP = new Map<LifecycleStage, LibraryRecommendation[]>(\n libraryStageMap.map((entry) => [entry.stage, entry.items])\n);\n\nexport class ContractSpecLibraryRecommender {\n private readonly mapping: Map<LifecycleStage, LibraryRecommendation[]>;\n\n constructor(overrides?: LibraryStageEntry[]) {\n this.mapping = overrides?.length\n ? new Map(overrides.map((entry) => [entry.stage, entry.items]))\n : LIBRARY_MAP;\n }\n\n recommend(stage: LifecycleStage, limit = 4): LibraryRecommendation[] {\n const items = this.mapping.get(stage);\n if (!items?.length) return [];\n return items.slice(0, limit);\n }\n}\n"],"mappings":";;;;AAWA,MAAM,cAAc,IAAI,IACtBA,0BAAgB,KAAK,UAAU,CAAC,MAAM,OAAO,MAAM,MAAM,CAAC,CAC3D;AAED,IAAa,iCAAb,MAA4C;CAC1C,AAAiB;CAEjB,YAAY,WAAiC;AAC3C,OAAK,UAAU,WAAW,SACtB,IAAI,IAAI,UAAU,KAAK,UAAU,CAAC,MAAM,OAAO,MAAM,MAAM,CAAC,CAAC,GAC7D;;CAGN,UAAU,OAAuB,QAAQ,GAA4B;EACnE,MAAM,QAAQ,KAAK,QAAQ,IAAI,MAAM;AACrC,MAAI,CAAC,OAAO,OAAQ,QAAO,EAAE;AAC7B,SAAO,MAAM,MAAM,GAAG,MAAM"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StagePlaybookData } from "../data/stage-playbooks.js";
|
|
2
|
+
import { LifecycleAssessment, LifecycleMilestone, LifecycleRecommendation } from "@lssm/lib.lifecycle";
|
|
3
|
+
|
|
4
|
+
//#region src/recommendations/recommendation-engine.d.ts
|
|
5
|
+
type StagePlaybook = StagePlaybookData;
|
|
6
|
+
interface RecommendationOptions {
|
|
7
|
+
limit?: number;
|
|
8
|
+
upcomingMilestones?: LifecycleMilestone[];
|
|
9
|
+
}
|
|
10
|
+
declare class LifecycleRecommendationEngine {
|
|
11
|
+
private readonly playbooks;
|
|
12
|
+
constructor(overrides?: StagePlaybook[]);
|
|
13
|
+
generate(assessment: LifecycleAssessment, options?: RecommendationOptions): LifecycleRecommendation;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { LifecycleRecommendationEngine, RecommendationOptions };
|
|
17
|
+
//# sourceMappingURL=recommendation-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendation-engine.d.ts","names":[],"sources":["../../src/recommendations/recommendation-engine.ts"],"sourcesContent":[],"mappings":";;;;KAWK,aAAA,GAAgB;UAEJ,qBAAA;EAFZ,KAAA,CAAA,EAAA,MAAA;EAEY,kBAAA,CAAA,EAEM,kBAAA,EAAA;AAavB;AAG0B,cAHb,6BAAA,CAGa;EAOV,iBAAA,SAAA;EACH,WAAA,CAAA,SAAA,CAAA,EARa,aAQb,EAAA;EACR,QAAA,CAAA,UAAA,EAFW,mBAEX,EAAA,OAAA,CAAA,EADQ,qBACR,CAAA,EAAA,uBAAA"}
|
|
@@ -1 +1,46 @@
|
|
|
1
|
-
import
|
|
1
|
+
import stage_playbooks_default from "../data/stage-playbooks.js";
|
|
2
|
+
import { LIFECYCLE_STAGE_META, LifecycleStage } from "@lssm/lib.lifecycle";
|
|
3
|
+
|
|
4
|
+
//#region src/recommendations/recommendation-engine.ts
|
|
5
|
+
const PLAYBOOK_MAP = new Map(stage_playbooks_default.map((entry) => [entry.stage, {
|
|
6
|
+
...entry,
|
|
7
|
+
stage: entry.stage
|
|
8
|
+
}]));
|
|
9
|
+
var LifecycleRecommendationEngine = class {
|
|
10
|
+
playbooks;
|
|
11
|
+
constructor(overrides) {
|
|
12
|
+
this.playbooks = overrides?.length ? new Map(overrides.map((entry) => [entry.stage, entry])) : PLAYBOOK_MAP;
|
|
13
|
+
}
|
|
14
|
+
generate(assessment, options = {}) {
|
|
15
|
+
const entry = this.playbooks.get(assessment.stage) ?? createFallbackPlaybook(assessment.stage);
|
|
16
|
+
const limit = options.limit ?? 3;
|
|
17
|
+
const actions = (entry.actions ?? []).slice(0, limit);
|
|
18
|
+
const finalActions = actions.length > 0 ? actions : fallbackActions(assessment, limit);
|
|
19
|
+
return {
|
|
20
|
+
assessmentId: assessment.generatedAt,
|
|
21
|
+
stage: assessment.stage,
|
|
22
|
+
actions: finalActions,
|
|
23
|
+
upcomingMilestones: options.upcomingMilestones ?? [],
|
|
24
|
+
ceremony: entry.ceremony
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const createFallbackPlaybook = (stage) => ({
|
|
29
|
+
stage,
|
|
30
|
+
actions: [],
|
|
31
|
+
focusAreas: LIFECYCLE_STAGE_META[stage].focusAreas
|
|
32
|
+
});
|
|
33
|
+
const fallbackActions = (assessment, limit) => (assessment.focusAreas ?? LIFECYCLE_STAGE_META[assessment.stage].focusAreas).slice(0, limit).map((focus, index) => ({
|
|
34
|
+
id: `fallback-${assessment.stage}-${index}`,
|
|
35
|
+
stage: assessment.stage,
|
|
36
|
+
title: `Advance ${focus}`,
|
|
37
|
+
description: `Identify one task that will improve "${focus}" this week.`,
|
|
38
|
+
priority: index + 1,
|
|
39
|
+
estimatedImpact: "low",
|
|
40
|
+
effortLevel: "s",
|
|
41
|
+
category: "product"
|
|
42
|
+
}));
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { LifecycleRecommendationEngine };
|
|
46
|
+
//# sourceMappingURL=recommendation-engine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendation-engine.js","names":["stagePlaybooks"],"sources":["../../src/recommendations/recommendation-engine.ts"],"sourcesContent":["import type {\n LifecycleAction,\n LifecycleAssessment,\n LifecycleMilestone,\n LifecycleRecommendation,\n} from '@lssm/lib.lifecycle';\nimport { LIFECYCLE_STAGE_META, LifecycleStage } from '@lssm/lib.lifecycle';\nimport stagePlaybooks, {\n type StagePlaybookData,\n} from '../data/stage-playbooks';\n\ntype StagePlaybook = StagePlaybookData;\n\nexport interface RecommendationOptions {\n limit?: number;\n upcomingMilestones?: LifecycleMilestone[];\n}\n\nconst PLAYBOOK_MAP = new Map<LifecycleStage, StagePlaybook>(\n stagePlaybooks.map((entry) => [\n entry.stage,\n {\n ...entry,\n stage: entry.stage as LifecycleStage,\n },\n ])\n);\n\nexport class LifecycleRecommendationEngine {\n private readonly playbooks: Map<LifecycleStage, StagePlaybook>;\n\n constructor(overrides?: StagePlaybook[]) {\n this.playbooks = overrides?.length\n ? new Map(overrides.map((entry) => [entry.stage, entry]))\n : PLAYBOOK_MAP;\n }\n\n generate(\n assessment: LifecycleAssessment,\n options: RecommendationOptions = {}\n ): LifecycleRecommendation {\n const entry =\n this.playbooks.get(assessment.stage) ??\n createFallbackPlaybook(assessment.stage);\n const limit = options.limit ?? 3;\n const actions = (entry.actions ?? []).slice(0, limit);\n const finalActions =\n actions.length > 0 ? actions : fallbackActions(assessment, limit);\n\n return {\n assessmentId: assessment.generatedAt,\n stage: assessment.stage,\n actions: finalActions,\n upcomingMilestones: options.upcomingMilestones ?? [],\n ceremony: entry.ceremony,\n };\n }\n}\n\nconst createFallbackPlaybook = (stage: LifecycleStage): StagePlaybook => ({\n stage,\n actions: [],\n focusAreas: LIFECYCLE_STAGE_META[stage].focusAreas,\n});\n\nconst fallbackActions = (\n assessment: LifecycleAssessment,\n limit: number\n): LifecycleAction[] =>\n (assessment.focusAreas ?? LIFECYCLE_STAGE_META[assessment.stage].focusAreas)\n .slice(0, limit)\n .map((focus, index) => ({\n id: `fallback-${assessment.stage}-${index}`,\n stage: assessment.stage,\n title: `Advance ${focus}`,\n description: `Identify one task that will improve \"${focus}\" this week.`,\n priority: index + 1,\n estimatedImpact: 'low',\n effortLevel: 's',\n category: 'product',\n }));\n"],"mappings":";;;;AAkBA,MAAM,eAAe,IAAI,IACvBA,wBAAe,KAAK,UAAU,CAC5B,MAAM,OACN;CACE,GAAG;CACH,OAAO,MAAM;CACd,CACF,CAAC,CACH;AAED,IAAa,gCAAb,MAA2C;CACzC,AAAiB;CAEjB,YAAY,WAA6B;AACvC,OAAK,YAAY,WAAW,SACxB,IAAI,IAAI,UAAU,KAAK,UAAU,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC,GACvD;;CAGN,SACE,YACA,UAAiC,EAAE,EACV;EACzB,MAAM,QACJ,KAAK,UAAU,IAAI,WAAW,MAAM,IACpC,uBAAuB,WAAW,MAAM;EAC1C,MAAM,QAAQ,QAAQ,SAAS;EAC/B,MAAM,WAAW,MAAM,WAAW,EAAE,EAAE,MAAM,GAAG,MAAM;EACrD,MAAM,eACJ,QAAQ,SAAS,IAAI,UAAU,gBAAgB,YAAY,MAAM;AAEnE,SAAO;GACL,cAAc,WAAW;GACzB,OAAO,WAAW;GAClB,SAAS;GACT,oBAAoB,QAAQ,sBAAsB,EAAE;GACpD,UAAU,MAAM;GACjB;;;AAIL,MAAM,0BAA0B,WAA0C;CACxE;CACA,SAAS,EAAE;CACX,YAAY,qBAAqB,OAAO;CACzC;AAED,MAAM,mBACJ,YACA,WAEC,WAAW,cAAc,qBAAqB,WAAW,OAAO,YAC9D,MAAM,GAAG,MAAM,CACf,KAAK,OAAO,WAAW;CACtB,IAAI,YAAY,WAAW,MAAM,GAAG;CACpC,OAAO,WAAW;CAClB,OAAO,WAAW;CAClB,aAAa,wCAAwC,MAAM;CAC3D,UAAU,QAAQ;CAClB,iBAAiB;CACjB,aAAa;CACb,UAAU;CACX,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/module.lifecycle-advisor",
|
|
3
|
-
"version": "1.42.
|
|
3
|
+
"version": "1.42.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
15
15
|
"publish:pkg:canary": "bun publish:pkg --tag canary",
|
|
16
|
-
"build": "bun build:
|
|
16
|
+
"build": "bun build:types && bun build:bundle",
|
|
17
17
|
"build:bundle": "tsdown",
|
|
18
18
|
"build:types": "tsc --noEmit",
|
|
19
19
|
"dev": "bun build:bundle --watch",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"test": "bun run"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lssm/lib.lifecycle": "1.42.
|
|
27
|
+
"@lssm/lib.lifecycle": "1.42.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@lssm/tool.tsdown": "1.42.
|
|
31
|
-
"@lssm/tool.typescript": "1.42.
|
|
32
|
-
"tsdown": "^0.
|
|
30
|
+
"@lssm/tool.tsdown": "1.42.2",
|
|
31
|
+
"@lssm/tool.typescript": "1.42.2",
|
|
32
|
+
"tsdown": "^0.18.3",
|
|
33
33
|
"typescript": "^5.9.3"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
|
-
".": "./
|
|
36
|
+
".": "./dist/index.js",
|
|
37
37
|
"./*": "./*"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
@@ -41,6 +41,13 @@
|
|
|
41
41
|
"exports": {
|
|
42
42
|
".": "./dist/index.js",
|
|
43
43
|
"./*": "./*"
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"registry": "https://registry.npmjs.org/"
|
|
46
|
+
},
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/lssm-tech/contractspec.git",
|
|
51
|
+
"directory": "packages/modules/lifecycle-advisor"
|
|
45
52
|
}
|
|
46
53
|
}
|