@lssm/module.lifecycle-advisor 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821

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 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
@@ -44,6 +44,9 @@ Data is stored in JSON playbooks so ContractSpec teams can update copy or mappin
44
44
 
45
45
 
46
46
 
47
+
48
+
49
+
47
50
 
48
51
 
49
52
 
@@ -12,4 +12,5 @@ declare class LifecycleCeremonyDesigner {
12
12
  design(stage: LifecycleStage): CeremonyConfig | undefined;
13
13
  }
14
14
  //#endregion
15
- export { LifecycleCeremonyDesigner };
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"}
@@ -14,4 +14,5 @@ var LifecycleCeremonyDesigner = class {
14
14
  };
15
15
 
16
16
  //#endregion
17
- export { LifecycleCeremonyDesigner };
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"}
@@ -7,4 +7,5 @@ interface LibraryStageEntry {
7
7
  items: LibraryRecommendation[];
8
8
  }
9
9
  //#endregion
10
- export { LibraryStageEntry };
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"}
@@ -88,4 +88,5 @@ const libraryStageMap = [
88
88
  var library_stage_map_default = libraryStageMap;
89
89
 
90
90
  //#endregion
91
- export { library_stage_map_default as default };
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"}
@@ -8,4 +8,5 @@ interface StagePlaybookData {
8
8
  ceremony?: LifecycleRecommendation['ceremony'];
9
9
  }
10
10
  //#endregion
11
- export { StagePlaybookData };
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"}
@@ -238,4 +238,5 @@ const stagePlaybooks = [
238
238
  var stage_playbooks_default = stagePlaybooks;
239
239
 
240
240
  //#endregion
241
- export { stage_playbooks_default as default };
241
+ export { stage_playbooks_default as default };
242
+ //# 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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"}
@@ -148,4 +148,5 @@ const LIFECYCLE_STAGE_META = {
148
148
  };
149
149
 
150
150
  //#endregion
151
- export { LIFECYCLE_STAGE_META, LifecycleStage };
151
+ export { LIFECYCLE_STAGE_META, LifecycleStage };
152
+ //# sourceMappingURL=stages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stages.js","names":[],"sources":["../../../../../../../libs/lifecycle/dist/types/stages.js"],"sourcesContent":["//#region src/types/stages.ts\nlet LifecycleStage = /* @__PURE__ */ function(LifecycleStage$1) {\n\tLifecycleStage$1[LifecycleStage$1[\"Exploration\"] = 0] = \"Exploration\";\n\tLifecycleStage$1[LifecycleStage$1[\"ProblemSolutionFit\"] = 1] = \"ProblemSolutionFit\";\n\tLifecycleStage$1[LifecycleStage$1[\"MvpEarlyTraction\"] = 2] = \"MvpEarlyTraction\";\n\tLifecycleStage$1[LifecycleStage$1[\"ProductMarketFit\"] = 3] = \"ProductMarketFit\";\n\tLifecycleStage$1[LifecycleStage$1[\"GrowthScaleUp\"] = 4] = \"GrowthScaleUp\";\n\tLifecycleStage$1[LifecycleStage$1[\"ExpansionPlatform\"] = 5] = \"ExpansionPlatform\";\n\tLifecycleStage$1[LifecycleStage$1[\"MaturityRenewal\"] = 6] = \"MaturityRenewal\";\n\treturn LifecycleStage$1;\n}({});\nconst LIFECYCLE_STAGE_ORDER = [\n\tLifecycleStage.Exploration,\n\tLifecycleStage.ProblemSolutionFit,\n\tLifecycleStage.MvpEarlyTraction,\n\tLifecycleStage.ProductMarketFit,\n\tLifecycleStage.GrowthScaleUp,\n\tLifecycleStage.ExpansionPlatform,\n\tLifecycleStage.MaturityRenewal\n];\nconst LIFECYCLE_STAGE_META = {\n\t[LifecycleStage.Exploration]: {\n\t\tid: LifecycleStage.Exploration,\n\t\torder: 0,\n\t\tslug: \"exploration\",\n\t\tname: \"Exploration / Ideation\",\n\t\tquestion: \"Is there a problem worth my time?\",\n\t\tsignals: [\n\t\t\t\"20+ discovery interviews\",\n\t\t\t\"Clear problem statement\",\n\t\t\t\"Named ICP\"\n\t\t],\n\t\ttraps: [\"Branding before discovery\", \"Premature tooling decisions\"],\n\t\tfocusAreas: [\n\t\t\t\"Customer discovery\",\n\t\t\t\"Problem definition\",\n\t\t\t\"Segment clarity\"\n\t\t]\n\t},\n\t[LifecycleStage.ProblemSolutionFit]: {\n\t\tid: LifecycleStage.ProblemSolutionFit,\n\t\torder: 1,\n\t\tslug: \"problem-solution-fit\",\n\t\tname: \"Problem–Solution Fit\",\n\t\tquestion: \"Do people care enough about this solution?\",\n\t\tsignals: [\n\t\t\t\"Prototype reuse\",\n\t\t\t\"Referral energy\",\n\t\t\t\"Pre-pay interest\"\n\t\t],\n\t\ttraps: [\"“Market is huge” without users\", \"Skipping qualitative loops\"],\n\t\tfocusAreas: [\n\t\t\t\"Solution hypothesis\",\n\t\t\t\"Value messaging\",\n\t\t\t\"Feedback capture\"\n\t\t]\n\t},\n\t[LifecycleStage.MvpEarlyTraction]: {\n\t\tid: LifecycleStage.MvpEarlyTraction,\n\t\torder: 2,\n\t\tslug: \"mvp-early-traction\",\n\t\tname: \"MVP & Early Traction\",\n\t\tquestion: \"Can we get real usage and learn fast?\",\n\t\tsignals: [\n\t\t\t\"20–50 named active users\",\n\t\t\t\"Weekly releases\",\n\t\t\t\"Noisy feedback\"\n\t\t],\n\t\ttraps: [\"Overbuilt infra for 10 users\", \"Undefined retention metric\"],\n\t\tfocusAreas: [\n\t\t\t\"Activation\",\n\t\t\t\"Cohort tracking\",\n\t\t\t\"Feedback rituals\"\n\t\t]\n\t},\n\t[LifecycleStage.ProductMarketFit]: {\n\t\tid: LifecycleStage.ProductMarketFit,\n\t\torder: 3,\n\t\tslug: \"product-market-fit\",\n\t\tname: \"Product–Market Fit\",\n\t\tquestion: \"Is this pulling us forward?\",\n\t\tsignals: [\n\t\t\t\"Retention without heroics\",\n\t\t\t\"Organic word-of-mouth\",\n\t\t\t\"Value stories\"\n\t\t],\n\t\ttraps: [\"Hero growth that does not scale\", \"Ignoring churn signals\"],\n\t\tfocusAreas: [\n\t\t\t\"Retention\",\n\t\t\t\"Reliability\",\n\t\t\t\"ICP clarity\"\n\t\t]\n\t},\n\t[LifecycleStage.GrowthScaleUp]: {\n\t\tid: LifecycleStage.GrowthScaleUp,\n\t\torder: 4,\n\t\tslug: \"growth-scale-up\",\n\t\tname: \"Growth / Scale-up\",\n\t\tquestion: \"Can we grow this repeatably?\",\n\t\tsignals: [\n\t\t\t\"Predictable channels\",\n\t\t\t\"Specialized hires\",\n\t\t\t\"Unit economics on track\"\n\t\t],\n\t\ttraps: [\"Paid spend masking retention gaps\", \"Infra debt blocking launches\"],\n\t\tfocusAreas: [\n\t\t\t\"Ops systems\",\n\t\t\t\"Growth loops\",\n\t\t\t\"Reliability engineering\"\n\t\t]\n\t},\n\t[LifecycleStage.ExpansionPlatform]: {\n\t\tid: LifecycleStage.ExpansionPlatform,\n\t\torder: 5,\n\t\tslug: \"expansion-platform\",\n\t\tname: \"Expansion / Platform\",\n\t\tquestion: \"What is the next growth curve?\",\n\t\tsignals: [\n\t\t\t\"Stable core metrics\",\n\t\t\t\"Partner/API demand\",\n\t\t\t\"Ecosystem pull\"\n\t\t],\n\t\ttraps: [\"Platform theater before wedge is solid\"],\n\t\tfocusAreas: [\n\t\t\t\"Partnerships\",\n\t\t\t\"APIs\",\n\t\t\t\"New market validation\"\n\t\t]\n\t},\n\t[LifecycleStage.MaturityRenewal]: {\n\t\tid: LifecycleStage.MaturityRenewal,\n\t\torder: 6,\n\t\tslug: \"maturity-renewal\",\n\t\tname: \"Maturity / Renewal\",\n\t\tquestion: \"Optimize, reinvent, or sunset?\",\n\t\tsignals: [\n\t\t\t\"Margin focus\",\n\t\t\t\"Portfolio bets\",\n\t\t\t\"Narrative refresh\"\n\t\t],\n\t\ttraps: [\"Assuming past success is enough\"],\n\t\tfocusAreas: [\n\t\t\t\"Cost optimization\",\n\t\t\t\"Reinvention bets\",\n\t\t\t\"Sunset planning\"\n\t\t]\n\t}\n};\nconst getLifecycleStageBySlug = (slug) => {\n\tconst entry = Object.values(LIFECYCLE_STAGE_META).find((meta) => meta.slug === slug);\n\tif (!entry) throw new Error(`Unknown lifecycle stage slug: ${slug}`);\n\treturn entry.id;\n};\n\n//#endregion\nexport { LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER, LifecycleStage, getLifecycleStageBySlug };\n//# sourceMappingURL=stages.js.map"],"mappings":";AACA,IAAI,iBAAiC,yBAAS,kBAAkB;AAC/D,kBAAiB,iBAAiB,iBAAiB,KAAK;AACxD,kBAAiB,iBAAiB,wBAAwB,KAAK;AAC/D,kBAAiB,iBAAiB,sBAAsB,KAAK;AAC7D,kBAAiB,iBAAiB,sBAAsB,KAAK;AAC7D,kBAAiB,iBAAiB,mBAAmB,KAAK;AAC1D,kBAAiB,iBAAiB,uBAAuB,KAAK;AAC9D,kBAAiB,iBAAiB,qBAAqB,KAAK;AAC5D,QAAO;EACN,EAAE,CAAC;AACL,MAAM,wBAAwB;CAC7B,eAAe;CACf,eAAe;CACf,eAAe;CACf,eAAe;CACf,eAAe;CACf,eAAe;CACf,eAAe;CACf;AACD,MAAM,uBAAuB;EAC3B,eAAe,cAAc;EAC7B,IAAI,eAAe;EACnB,OAAO;EACP,MAAM;EACN,MAAM;EACN,UAAU;EACV,SAAS;GACR;GACA;GACA;GACA;EACD,OAAO,CAAC,6BAA6B,8BAA8B;EACnE,YAAY;GACX;GACA;GACA;GACA;EACD;EACA,eAAe,qBAAqB;EACpC,IAAI,eAAe;EACnB,OAAO;EACP,MAAM;EACN,MAAM;EACN,UAAU;EACV,SAAS;GACR;GACA;GACA;GACA;EACD,OAAO,CAAC,kCAAkC,6BAA6B;EACvE,YAAY;GACX;GACA;GACA;GACA;EACD;EACA,eAAe,mBAAmB;EAClC,IAAI,eAAe;EACnB,OAAO;EACP,MAAM;EACN,MAAM;EACN,UAAU;EACV,SAAS;GACR;GACA;GACA;GACA;EACD,OAAO,CAAC,gCAAgC,6BAA6B;EACrE,YAAY;GACX;GACA;GACA;GACA;EACD;EACA,eAAe,mBAAmB;EAClC,IAAI,eAAe;EACnB,OAAO;EACP,MAAM;EACN,MAAM;EACN,UAAU;EACV,SAAS;GACR;GACA;GACA;GACA;EACD,OAAO,CAAC,mCAAmC,yBAAyB;EACpE,YAAY;GACX;GACA;GACA;GACA;EACD;EACA,eAAe,gBAAgB;EAC/B,IAAI,eAAe;EACnB,OAAO;EACP,MAAM;EACN,MAAM;EACN,UAAU;EACV,SAAS;GACR;GACA;GACA;GACA;EACD,OAAO,CAAC,qCAAqC,+BAA+B;EAC5E,YAAY;GACX;GACA;GACA;GACA;EACD;EACA,eAAe,oBAAoB;EACnC,IAAI,eAAe;EACnB,OAAO;EACP,MAAM;EACN,MAAM;EACN,UAAU;EACV,SAAS;GACR;GACA;GACA;GACA;EACD,OAAO,CAAC,yCAAyC;EACjD,YAAY;GACX;GACA;GACA;GACA;EACD;EACA,eAAe,kBAAkB;EACjC,IAAI,eAAe;EACnB,OAAO;EACP,MAAM;EACN,MAAM;EACN,UAAU;EACV,SAAS;GACR;GACA;GACA;GACA;EACD,OAAO,CAAC,kCAAkC;EAC1C,YAAY;GACX;GACA;GACA;GACA;EACD;CACD"}
@@ -13,4 +13,5 @@ declare class ContractSpecLibraryRecommender {
13
13
  recommend(stage: LifecycleStage, limit?: number): LibraryRecommendation[];
14
14
  }
15
15
  //#endregion
16
- export { ContractSpecLibraryRecommender, LibraryRecommendation };
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"}
@@ -16,4 +16,5 @@ var ContractSpecLibraryRecommender = class {
16
16
  };
17
17
 
18
18
  //#endregion
19
- export { ContractSpecLibraryRecommender };
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"}
@@ -13,4 +13,5 @@ declare class LifecycleRecommendationEngine {
13
13
  generate(assessment: LifecycleAssessment, options?: RecommendationOptions): LifecycleRecommendation;
14
14
  }
15
15
  //#endregion
16
- export { LifecycleRecommendationEngine, RecommendationOptions };
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"}
@@ -43,4 +43,5 @@ const fallbackActions = (assessment, limit) => (assessment.focusAreas ?? LIFECYC
43
43
  }));
44
44
 
45
45
  //#endregion
46
- export { LifecycleRecommendationEngine };
46
+ export { LifecycleRecommendationEngine };
47
+ //# 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": "0.0.0-canary-20251217083314",
3
+ "version": "0.0.0-canary-20251220002821",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -24,12 +24,12 @@
24
24
  "test": "bun run"
25
25
  },
26
26
  "dependencies": {
27
- "@lssm/lib.lifecycle": "0.0.0-canary-20251217083314"
27
+ "@lssm/lib.lifecycle": "0.0.0-canary-20251220002821"
28
28
  },
29
29
  "devDependencies": {
30
- "@lssm/tool.tsdown": "0.0.0-canary-20251217083314",
31
- "@lssm/tool.typescript": "0.0.0-canary-20251217083314",
32
- "tsdown": "^0.17.4",
30
+ "@lssm/tool.tsdown": "0.0.0-canary-20251220002821",
31
+ "@lssm/tool.typescript": "0.0.0-canary-20251220002821",
32
+ "tsdown": "^0.18.1",
33
33
  "typescript": "^5.9.3"
34
34
  },
35
35
  "exports": {
@@ -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
  }