@lssm/lib.lifecycle 0.3.0 → 0.3.1

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.
@@ -33,5 +33,4 @@ interface LifecycleAxisSnapshot {
33
33
  confidence: number;
34
34
  }
35
35
  //#endregion
36
- export { CapitalPhase, CompanyPhase, LifecycleAxes, LifecycleAxis, LifecycleAxisSnapshot, ProductPhase };
37
- //# sourceMappingURL=axes.d.ts.map
36
+ export { CapitalPhase, CompanyPhase, LifecycleAxes, LifecycleAxis, LifecycleAxisSnapshot, ProductPhase };
@@ -1,2 +1 @@
1
- let e=function(e){return e.Sketch=`Sketch`,e.Prototype=`Prototype`,e.Mvp=`MVP`,e.V1=`V1`,e.Ecosystem=`Ecosystem`,e}({}),t=function(e){return e.Solo=`Solo`,e.TinyTeam=`TinyTeam`,e.FunctionalOrg=`FunctionalOrg`,e.MultiTeam=`MultiTeam`,e.Bureaucratic=`Bureaucratic`,e}({}),n=function(e){return e.Bootstrapped=`Bootstrapped`,e.PreSeed=`PreSeed`,e.Seed=`Seed`,e.SeriesAorB=`SeriesAorB`,e.LateStage=`LateStage`,e}({});export{n as CapitalPhase,t as CompanyPhase,e as ProductPhase};
2
- //# sourceMappingURL=axes.js.map
1
+ let e=function(e){return e.Sketch=`Sketch`,e.Prototype=`Prototype`,e.Mvp=`MVP`,e.V1=`V1`,e.Ecosystem=`Ecosystem`,e}({}),t=function(e){return e.Solo=`Solo`,e.TinyTeam=`TinyTeam`,e.FunctionalOrg=`FunctionalOrg`,e.MultiTeam=`MultiTeam`,e.Bureaucratic=`Bureaucratic`,e}({}),n=function(e){return e.Bootstrapped=`Bootstrapped`,e.PreSeed=`PreSeed`,e.Seed=`Seed`,e.SeriesAorB=`SeriesAorB`,e.LateStage=`LateStage`,e}({});export{n as CapitalPhase,t as CompanyPhase,e as ProductPhase};
@@ -49,5 +49,4 @@ interface LifecycleRecommendation {
49
49
  };
50
50
  }
51
51
  //#endregion
52
- export { LifecycleAction, LifecycleAssessment, LifecycleMilestone, LifecycleMilestoneCategory, LifecycleRecommendation };
53
- //# sourceMappingURL=milestones.d.ts.map
52
+ export { LifecycleAction, LifecycleAssessment, LifecycleMilestone, LifecycleMilestoneCategory, LifecycleRecommendation };
@@ -40,5 +40,4 @@ interface LifecycleAssessmentInput {
40
40
  questionnaireAnswers?: Record<string, unknown>;
41
41
  }
42
42
  //#endregion
43
- export { LifecycleAssessmentInput, LifecycleMetricSnapshot, LifecycleScore, LifecycleSignal, LifecycleSignalKind, LifecycleSignalSource };
44
- //# sourceMappingURL=signals.d.ts.map
43
+ export { LifecycleAssessmentInput, LifecycleMetricSnapshot, LifecycleScore, LifecycleSignal, LifecycleSignalKind, LifecycleSignalSource };
@@ -23,5 +23,4 @@ declare const LIFECYCLE_STAGE_ORDER: LifecycleStage[];
23
23
  declare const LIFECYCLE_STAGE_META: Record<LifecycleStage, LifecycleStageMetadata>;
24
24
  declare const getLifecycleStageBySlug: (slug: LifecycleStageSlug) => LifecycleStage;
25
25
  //#endregion
26
- export { LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER, LifecycleStage, LifecycleStageMetadata, LifecycleStageSlug, getLifecycleStageBySlug };
27
- //# sourceMappingURL=stages.d.ts.map
26
+ export { LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER, LifecycleStage, LifecycleStageMetadata, LifecycleStageSlug, getLifecycleStageBySlug };
@@ -1,2 +1 @@
1
- let e=function(e){return e[e.Exploration=0]=`Exploration`,e[e.ProblemSolutionFit=1]=`ProblemSolutionFit`,e[e.MvpEarlyTraction=2]=`MvpEarlyTraction`,e[e.ProductMarketFit=3]=`ProductMarketFit`,e[e.GrowthScaleUp=4]=`GrowthScaleUp`,e[e.ExpansionPlatform=5]=`ExpansionPlatform`,e[e.MaturityRenewal=6]=`MaturityRenewal`,e}({});const t=[e.Exploration,e.ProblemSolutionFit,e.MvpEarlyTraction,e.ProductMarketFit,e.GrowthScaleUp,e.ExpansionPlatform,e.MaturityRenewal],n={[e.Exploration]:{id:e.Exploration,order:0,slug:`exploration`,name:`Exploration / Ideation`,question:`Is there a problem worth my time?`,signals:[`20+ discovery interviews`,`Clear problem statement`,`Named ICP`],traps:[`Branding before discovery`,`Premature tooling decisions`],focusAreas:[`Customer discovery`,`Problem definition`,`Segment clarity`]},[e.ProblemSolutionFit]:{id:e.ProblemSolutionFit,order:1,slug:`problem-solution-fit`,name:`Problem–Solution Fit`,question:`Do people care enough about this solution?`,signals:[`Prototype reuse`,`Referral energy`,`Pre-pay interest`],traps:[`“Market is huge” without users`,`Skipping qualitative loops`],focusAreas:[`Solution hypothesis`,`Value messaging`,`Feedback capture`]},[e.MvpEarlyTraction]:{id:e.MvpEarlyTraction,order:2,slug:`mvp-early-traction`,name:`MVP & Early Traction`,question:`Can we get real usage and learn fast?`,signals:[`20–50 named active users`,`Weekly releases`,`Noisy feedback`],traps:[`Overbuilt infra for 10 users`,`Undefined retention metric`],focusAreas:[`Activation`,`Cohort tracking`,`Feedback rituals`]},[e.ProductMarketFit]:{id:e.ProductMarketFit,order:3,slug:`product-market-fit`,name:`Product–Market Fit`,question:`Is this pulling us forward?`,signals:[`Retention without heroics`,`Organic word-of-mouth`,`Value stories`],traps:[`Hero growth that does not scale`,`Ignoring churn signals`],focusAreas:[`Retention`,`Reliability`,`ICP clarity`]},[e.GrowthScaleUp]:{id:e.GrowthScaleUp,order:4,slug:`growth-scale-up`,name:`Growth / Scale-up`,question:`Can we grow this repeatably?`,signals:[`Predictable channels`,`Specialized hires`,`Unit economics on track`],traps:[`Paid spend masking retention gaps`,`Infra debt blocking launches`],focusAreas:[`Ops systems`,`Growth loops`,`Reliability engineering`]},[e.ExpansionPlatform]:{id:e.ExpansionPlatform,order:5,slug:`expansion-platform`,name:`Expansion / Platform`,question:`What is the next growth curve?`,signals:[`Stable core metrics`,`Partner/API demand`,`Ecosystem pull`],traps:[`Platform theater before wedge is solid`],focusAreas:[`Partnerships`,`APIs`,`New market validation`]},[e.MaturityRenewal]:{id:e.MaturityRenewal,order:6,slug:`maturity-renewal`,name:`Maturity / Renewal`,question:`Optimize, reinvent, or sunset?`,signals:[`Margin focus`,`Portfolio bets`,`Narrative refresh`],traps:[`Assuming past success is enough`],focusAreas:[`Cost optimization`,`Reinvention bets`,`Sunset planning`]}},r=e=>{let t=Object.values(n).find(t=>t.slug===e);if(!t)throw Error(`Unknown lifecycle stage slug: ${e}`);return t.id};export{n as LIFECYCLE_STAGE_META,t as LIFECYCLE_STAGE_ORDER,e as LifecycleStage,r as getLifecycleStageBySlug};
2
- //# sourceMappingURL=stages.js.map
1
+ let e=function(e){return e[e.Exploration=0]=`Exploration`,e[e.ProblemSolutionFit=1]=`ProblemSolutionFit`,e[e.MvpEarlyTraction=2]=`MvpEarlyTraction`,e[e.ProductMarketFit=3]=`ProductMarketFit`,e[e.GrowthScaleUp=4]=`GrowthScaleUp`,e[e.ExpansionPlatform=5]=`ExpansionPlatform`,e[e.MaturityRenewal=6]=`MaturityRenewal`,e}({});const t=[e.Exploration,e.ProblemSolutionFit,e.MvpEarlyTraction,e.ProductMarketFit,e.GrowthScaleUp,e.ExpansionPlatform,e.MaturityRenewal],n={[e.Exploration]:{id:e.Exploration,order:0,slug:`exploration`,name:`Exploration / Ideation`,question:`Is there a problem worth my time?`,signals:[`20+ discovery interviews`,`Clear problem statement`,`Named ICP`],traps:[`Branding before discovery`,`Premature tooling decisions`],focusAreas:[`Customer discovery`,`Problem definition`,`Segment clarity`]},[e.ProblemSolutionFit]:{id:e.ProblemSolutionFit,order:1,slug:`problem-solution-fit`,name:`Problem–Solution Fit`,question:`Do people care enough about this solution?`,signals:[`Prototype reuse`,`Referral energy`,`Pre-pay interest`],traps:[`“Market is huge” without users`,`Skipping qualitative loops`],focusAreas:[`Solution hypothesis`,`Value messaging`,`Feedback capture`]},[e.MvpEarlyTraction]:{id:e.MvpEarlyTraction,order:2,slug:`mvp-early-traction`,name:`MVP & Early Traction`,question:`Can we get real usage and learn fast?`,signals:[`20–50 named active users`,`Weekly releases`,`Noisy feedback`],traps:[`Overbuilt infra for 10 users`,`Undefined retention metric`],focusAreas:[`Activation`,`Cohort tracking`,`Feedback rituals`]},[e.ProductMarketFit]:{id:e.ProductMarketFit,order:3,slug:`product-market-fit`,name:`Product–Market Fit`,question:`Is this pulling us forward?`,signals:[`Retention without heroics`,`Organic word-of-mouth`,`Value stories`],traps:[`Hero growth that does not scale`,`Ignoring churn signals`],focusAreas:[`Retention`,`Reliability`,`ICP clarity`]},[e.GrowthScaleUp]:{id:e.GrowthScaleUp,order:4,slug:`growth-scale-up`,name:`Growth / Scale-up`,question:`Can we grow this repeatably?`,signals:[`Predictable channels`,`Specialized hires`,`Unit economics on track`],traps:[`Paid spend masking retention gaps`,`Infra debt blocking launches`],focusAreas:[`Ops systems`,`Growth loops`,`Reliability engineering`]},[e.ExpansionPlatform]:{id:e.ExpansionPlatform,order:5,slug:`expansion-platform`,name:`Expansion / Platform`,question:`What is the next growth curve?`,signals:[`Stable core metrics`,`Partner/API demand`,`Ecosystem pull`],traps:[`Platform theater before wedge is solid`],focusAreas:[`Partnerships`,`APIs`,`New market validation`]},[e.MaturityRenewal]:{id:e.MaturityRenewal,order:6,slug:`maturity-renewal`,name:`Maturity / Renewal`,question:`Optimize, reinvent, or sunset?`,signals:[`Margin focus`,`Portfolio bets`,`Narrative refresh`],traps:[`Assuming past success is enough`],focusAreas:[`Cost optimization`,`Reinvention bets`,`Sunset planning`]}},r=e=>{let t=Object.values(n).find(t=>t.slug===e);if(!t)throw Error(`Unknown lifecycle stage slug: ${e}`);return t.id};export{n as LIFECYCLE_STAGE_META,t as LIFECYCLE_STAGE_ORDER,e as LifecycleStage,r as getLifecycleStageBySlug};
@@ -19,5 +19,4 @@ declare const createRecommendationDigest: (recommendation: LifecycleRecommendati
19
19
  declare const getStageLabel: (stage: LifecycleStage) => string;
20
20
  declare const getStageOrderIndex: (stage: LifecycleStage) => number;
21
21
  //#endregion
22
- export { StageSummary, createRecommendationDigest, formatStageSummary, getStageLabel, getStageOrderIndex, rankStageCandidates, summarizeAxes };
23
- //# sourceMappingURL=formatters.d.ts.map
22
+ export { StageSummary, createRecommendationDigest, formatStageSummary, getStageLabel, getStageOrderIndex, rankStageCandidates, summarizeAxes };
@@ -1,2 +1 @@
1
- import{LIFECYCLE_STAGE_META as e,LIFECYCLE_STAGE_ORDER as t}from"../types/stages.js";const n=(t,n)=>{let i=e[t],a=`Stage ${i.order} · ${i.name}`,o=n?r(n.axes):[];return{title:a,question:i.question,highlights:i.signals,traps:i.traps,focusAreas:n?.gaps?.length?n.gaps:i.focusAreas,axesSummary:o}},r=e=>[`Product: ${e.product}`,`Company: ${e.company}`,`Capital: ${e.capital}`],i=e=>[...e].sort((e,t)=>t.score===e.score?t.confidence-e.confidence:t.score-e.score),a=t=>{let n=e[t.stage],r=t.actions[0],i=r?`${r.title} (${r.estimatedImpact} impact)`:`Focus on upcoming milestones.`;return`Next up for ${n.name}: ${i}`},o=t=>e[t].name,s=e=>t.indexOf(e);export{a as createRecommendationDigest,n as formatStageSummary,o as getStageLabel,s as getStageOrderIndex,i as rankStageCandidates,r as summarizeAxes};
2
- //# sourceMappingURL=formatters.js.map
1
+ import{LIFECYCLE_STAGE_META as e,LIFECYCLE_STAGE_ORDER as t}from"../types/stages.js";const n=(t,n)=>{let i=e[t],a=`Stage ${i.order} · ${i.name}`,o=n?r(n.axes):[];return{title:a,question:i.question,highlights:i.signals,traps:i.traps,focusAreas:n?.gaps?.length?n.gaps:i.focusAreas,axesSummary:o}},r=e=>[`Product: ${e.product}`,`Company: ${e.company}`,`Capital: ${e.capital}`],i=e=>[...e].sort((e,t)=>t.score===e.score?t.confidence-e.confidence:t.score-e.score),a=t=>{let n=e[t.stage],r=t.actions[0],i=r?`${r.title} (${r.estimatedImpact} impact)`:`Focus on upcoming milestones.`;return`Next up for ${n.name}: ${i}`},o=t=>e[t].name,s=e=>t.indexOf(e);export{a as createRecommendationDigest,n as formatStageSummary,o as getStageLabel,s as getStageOrderIndex,i as rankStageCandidates,r as summarizeAxes};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.lifecycle",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "peerDependencies": {},
25
25
  "devDependencies": {
26
- "@lssm/tool.tsdown": "0.12.0",
27
- "@lssm/tool.typescript": "0.11.0",
26
+ "@lssm/tool.tsdown": "0.12.1",
27
+ "@lssm/tool.typescript": "0.11.1",
28
28
  "tsdown": "^0.16.6",
29
29
  "typescript": "^5.9.3"
30
30
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"axes.d.ts","names":[],"sources":["../../src/types/axes.ts"],"sourcesContent":[],"mappings":";aAAY,YAAA;EAAA,MAAA,GAAA,QAAY;EAQZ,SAAA,GAAA,WAAY;EAQZ,GAAA,GAAA,KAAA;EAQA,EAAA,GAAA,IAAA;EAEK,SAAA,GAAA,WAAa;;AAEnB,aApBC,YAAA;EAqBD,IAAA,GAAA,MAAA;EAAY,QAAA,GAAA,UAAA;EAGN,aAAA,GAAA,eAAqB;EAC9B,SAAA,GAAA,WAAA;EACC,YAAA,GAAA,cAAA;;AAA8B,aAlB3B,YAAA;EAkBuC,YAAA,GAAA,cAAA;;;;;;KAVvC,aAAA;UAEK,aAAA;WACN;WACA;WACA;;UAGM,qBAAA;QACT;SACC,eAAe,eAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"axes.js","names":[],"sources":["../../src/types/axes.ts"],"sourcesContent":["export enum ProductPhase {\n Sketch = 'Sketch',\n Prototype = 'Prototype',\n Mvp = 'MVP',\n V1 = 'V1',\n Ecosystem = 'Ecosystem',\n}\n\nexport enum CompanyPhase {\n Solo = 'Solo',\n TinyTeam = 'TinyTeam',\n FunctionalOrg = 'FunctionalOrg',\n MultiTeam = 'MultiTeam',\n Bureaucratic = 'Bureaucratic',\n}\n\nexport enum CapitalPhase {\n Bootstrapped = 'Bootstrapped',\n PreSeed = 'PreSeed',\n Seed = 'Seed',\n SeriesAorB = 'SeriesAorB',\n LateStage = 'LateStage',\n}\n\nexport type LifecycleAxis = 'product' | 'company' | 'capital';\n\nexport interface LifecycleAxes {\n product: ProductPhase;\n company: CompanyPhase;\n capital: CapitalPhase;\n}\n\nexport interface LifecycleAxisSnapshot {\n axis: LifecycleAxis;\n phase: ProductPhase | CompanyPhase | CapitalPhase;\n rationale?: string;\n confidence: number; // 0-1\n}\n"],"mappings":"AAAA,IAAY,EAAA,SAAA,EAAL,OACL,GAAA,OAAA,SACA,EAAA,UAAA,YACA,EAAA,IAAA,MACA,EAAA,GAAA,KACA,EAAA,UAAA,mBAGU,EAAA,SAAA,EAAL,OACL,GAAA,KAAA,OACA,EAAA,SAAA,WACA,EAAA,cAAA,gBACA,EAAA,UAAA,YACA,EAAA,aAAA,sBAGU,EAAA,SAAA,EAAL,OACL,GAAA,aAAA,eACA,EAAA,QAAA,UACA,EAAA,KAAA,OACA,EAAA,WAAA,aACA,EAAA,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"milestones.d.ts","names":[],"sources":["../../src/types/milestones.ts"],"sourcesContent":[],"mappings":";;;;;KAIY,0BAAA;UAMK,kBAAA;EANL,EAAA,EAAA,MAAA;EAMK,KAAA,EAER,cAF0B;EAE1B,QAAA,EACG,0BADH;EACG,KAAA,EAAA,MAAA;EAIU,WAAA,EAAA,MAAA;EAAM,QAAA,EAAA,MAAA;EAKX,iBAAA,CAAe,EALV,MAKU,CAAA,MAEvB,EAAA,OAAA,CAAA;EAUQ,YAAA,CAAA,EAAA,MAAA;EACR,WAAA,CAAA,EAAA,MAAA,EAAA;;AAGE,UAhBM,eAAA,CAgBN;EACC,EAAA,EAAA,MAAA;EAGC,KAAA,EAlBJ,cAkBI;EAAc,KAAA,EAAA,MAAA;EAIV,WAAA,EAAA,MAAA;EAER,QAAA,EAAA,MAAA;EACE,eAAA,EAAA,KAAA,GAAA,QAAA,GAAA,MAAA;EACW,WAAA,EAAA,IAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA;EAAkB,QAAA,EApB5B,0BAoB4B,GAAA,QAAA,GAAA,KAAA;;;UAhBvB,mBAAA;SACR;;QAED;WACG;YACC;;;aAGC;;;UAII,uBAAA;;SAER;WACE;sBACW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"signals.d.ts","names":[],"sources":["../../src/types/signals.ts"],"sourcesContent":[],"mappings":";;;;KAGY,qBAAA;KAOA,mBAAA;AAPA,UAcK,eAAA,CAdgB;EAOrB,EAAA,EAAA,MAAA;EAOK,SAAA,CAAA,EAEH,cAFkB;EAElB,IAAA,CAAA,EACL,aADK;EACL,IAAA,EACD,mBADC;EACD,MAAA,EACE,qBADF;EACE,IAAA,EAAA,MAAA;EAKE,KAAA,EAAA,MAAA,GAAA,MAAA,GAAA,OAAA;EAAM,MAAA,EAAA,MAAA;EAID,UAAA,EAAA,MAAA;EAWA,OAAA,CAAA,EAfL,MAeK,CAAc,MAAA,EAAA,OACtB,CAAA;EAMQ,UAAA,EAAA,MAAA;;AACR,UAnBQ,uBAAA,CAmBR;EACG,WAAA,CAAA,EAAA,MAAA;EACA,iBAAA,CAAA,EAAA,MAAA;EACa,aAAA,CAAA,EAAA,MAAA;EAAM,uBAAA,CAAA,EAAA,MAAA;;;;;;UAXd,cAAA;SACR;;;;;UAMQ,wBAAA;SACR,QAAQ;YACL;YACA;yBACa"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stages.d.ts","names":[],"sources":["../../src/types/stages.ts"],"sourcesContent":[],"mappings":";aAAY,cAAA;EAAA,WAAA,GAAA,CAAA;EAUA,kBAAA,GAAkB,CAAA;EASb,gBAAA,GAAA,CAAA;EAWJ,gBAAA,GAAA,CAAA;EAUA,aAAA,GAAA,CAAA;EACX,iBAAA,GAAA,CAAA;EACA,eAAA,GAAA,CAAA;;AAFuC,KA9B7B,kBAAA,GA8B6B,aAAA,GAAA,sBAAA,GAAA,oBAAA,GAAA,oBAAA,GAAA,iBAAA,GAAA,oBAAA,GAAA,kBAAA;AA2F5B,UAhHI,sBAAA,CA0HhB;MAzHK;;QAEE;;;;;;;cAQK,uBAAuB;cAUvB,sBAAsB,OACjC,gBACA;cAyFW,gCACL,uBACL"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stages.js","names":["LIFECYCLE_STAGE_ORDER: LifecycleStage[]","LIFECYCLE_STAGE_META: Record<\n LifecycleStage,\n LifecycleStageMetadata\n>"],"sources":["../../src/types/stages.ts"],"sourcesContent":["export enum LifecycleStage {\n Exploration = 0,\n ProblemSolutionFit = 1,\n MvpEarlyTraction = 2,\n ProductMarketFit = 3,\n GrowthScaleUp = 4,\n ExpansionPlatform = 5,\n MaturityRenewal = 6,\n}\n\nexport type LifecycleStageSlug =\n | 'exploration'\n | 'problem-solution-fit'\n | 'mvp-early-traction'\n | 'product-market-fit'\n | 'growth-scale-up'\n | 'expansion-platform'\n | 'maturity-renewal';\n\nexport interface LifecycleStageMetadata {\n id: LifecycleStage;\n order: number;\n slug: LifecycleStageSlug;\n name: string;\n question: string;\n signals: string[];\n traps: string[];\n focusAreas: string[];\n}\n\nexport const LIFECYCLE_STAGE_ORDER: LifecycleStage[] = [\n LifecycleStage.Exploration,\n LifecycleStage.ProblemSolutionFit,\n LifecycleStage.MvpEarlyTraction,\n LifecycleStage.ProductMarketFit,\n LifecycleStage.GrowthScaleUp,\n LifecycleStage.ExpansionPlatform,\n LifecycleStage.MaturityRenewal,\n];\n\nexport const LIFECYCLE_STAGE_META: Record<\n LifecycleStage,\n LifecycleStageMetadata\n> = {\n [LifecycleStage.Exploration]: {\n id: LifecycleStage.Exploration,\n order: 0,\n slug: 'exploration',\n name: 'Exploration / Ideation',\n question: 'Is there a problem worth my time?',\n signals: [\n '20+ discovery interviews',\n 'Clear problem statement',\n 'Named ICP',\n ],\n traps: ['Branding before discovery', 'Premature tooling decisions'],\n focusAreas: ['Customer discovery', 'Problem definition', 'Segment clarity'],\n },\n [LifecycleStage.ProblemSolutionFit]: {\n id: LifecycleStage.ProblemSolutionFit,\n order: 1,\n slug: 'problem-solution-fit',\n name: 'Problem–Solution Fit',\n question: 'Do people care enough about this solution?',\n signals: ['Prototype reuse', 'Referral energy', 'Pre-pay interest'],\n traps: ['“Market is huge” without users', 'Skipping qualitative loops'],\n focusAreas: ['Solution hypothesis', 'Value messaging', 'Feedback capture'],\n },\n [LifecycleStage.MvpEarlyTraction]: {\n id: LifecycleStage.MvpEarlyTraction,\n order: 2,\n slug: 'mvp-early-traction',\n name: 'MVP & Early Traction',\n question: 'Can we get real usage and learn fast?',\n signals: ['20–50 named active users', 'Weekly releases', 'Noisy feedback'],\n traps: ['Overbuilt infra for 10 users', 'Undefined retention metric'],\n focusAreas: ['Activation', 'Cohort tracking', 'Feedback rituals'],\n },\n [LifecycleStage.ProductMarketFit]: {\n id: LifecycleStage.ProductMarketFit,\n order: 3,\n slug: 'product-market-fit',\n name: 'Product–Market Fit',\n question: 'Is this pulling us forward?',\n signals: [\n 'Retention without heroics',\n 'Organic word-of-mouth',\n 'Value stories',\n ],\n traps: ['Hero growth that does not scale', 'Ignoring churn signals'],\n focusAreas: ['Retention', 'Reliability', 'ICP clarity'],\n },\n [LifecycleStage.GrowthScaleUp]: {\n id: LifecycleStage.GrowthScaleUp,\n order: 4,\n slug: 'growth-scale-up',\n name: 'Growth / Scale-up',\n question: 'Can we grow this repeatably?',\n signals: [\n 'Predictable channels',\n 'Specialized hires',\n 'Unit economics on track',\n ],\n traps: [\n 'Paid spend masking retention gaps',\n 'Infra debt blocking launches',\n ],\n focusAreas: ['Ops systems', 'Growth loops', 'Reliability engineering'],\n },\n [LifecycleStage.ExpansionPlatform]: {\n id: LifecycleStage.ExpansionPlatform,\n order: 5,\n slug: 'expansion-platform',\n name: 'Expansion / Platform',\n question: 'What is the next growth curve?',\n signals: ['Stable core metrics', 'Partner/API demand', 'Ecosystem pull'],\n traps: ['Platform theater before wedge is solid'],\n focusAreas: ['Partnerships', 'APIs', 'New market validation'],\n },\n [LifecycleStage.MaturityRenewal]: {\n id: LifecycleStage.MaturityRenewal,\n order: 6,\n slug: 'maturity-renewal',\n name: 'Maturity / Renewal',\n question: 'Optimize, reinvent, or sunset?',\n signals: ['Margin focus', 'Portfolio bets', 'Narrative refresh'],\n traps: ['Assuming past success is enough'],\n focusAreas: ['Cost optimization', 'Reinvention bets', 'Sunset planning'],\n },\n};\n\nexport const getLifecycleStageBySlug = (\n slug: LifecycleStageSlug\n): LifecycleStage => {\n const entry = Object.values(LIFECYCLE_STAGE_META).find(\n (meta) => meta.slug === slug\n );\n if (!entry) {\n throw new Error(`Unknown lifecycle stage slug: ${slug}`);\n }\n return entry.id;\n};\n"],"mappings":"AAAA,IAAY,EAAA,SAAA,EAAL,OACL,GAAA,EAAA,YAAA,GAAA,cACA,EAAA,EAAA,mBAAA,GAAA,qBACA,EAAA,EAAA,iBAAA,GAAA,mBACA,EAAA,EAAA,iBAAA,GAAA,mBACA,EAAA,EAAA,cAAA,GAAA,gBACA,EAAA,EAAA,kBAAA,GAAA,oBACA,EAAA,EAAA,gBAAA,GAAA,yBAuBF,MAAaA,EAA0C,CACrD,EAAe,YACf,EAAe,mBACf,EAAe,iBACf,EAAe,iBACf,EAAe,cACf,EAAe,kBACf,EAAe,gBAChB,CAEYC,EAGT,EACD,EAAe,aAAc,CAC5B,GAAI,EAAe,YACnB,MAAO,EACP,KAAM,cACN,KAAM,yBACN,SAAU,oCACV,QAAS,CACP,2BACA,0BACA,YACD,CACD,MAAO,CAAC,4BAA6B,8BAA8B,CACnE,WAAY,CAAC,qBAAsB,qBAAsB,kBAAkB,CAC5E,EACA,EAAe,oBAAqB,CACnC,GAAI,EAAe,mBACnB,MAAO,EACP,KAAM,uBACN,KAAM,uBACN,SAAU,6CACV,QAAS,CAAC,kBAAmB,kBAAmB,mBAAmB,CACnE,MAAO,CAAC,iCAAkC,6BAA6B,CACvE,WAAY,CAAC,sBAAuB,kBAAmB,mBAAmB,CAC3E,EACA,EAAe,kBAAmB,CACjC,GAAI,EAAe,iBACnB,MAAO,EACP,KAAM,qBACN,KAAM,uBACN,SAAU,wCACV,QAAS,CAAC,2BAA4B,kBAAmB,iBAAiB,CAC1E,MAAO,CAAC,+BAAgC,6BAA6B,CACrE,WAAY,CAAC,aAAc,kBAAmB,mBAAmB,CAClE,EACA,EAAe,kBAAmB,CACjC,GAAI,EAAe,iBACnB,MAAO,EACP,KAAM,qBACN,KAAM,qBACN,SAAU,8BACV,QAAS,CACP,4BACA,wBACA,gBACD,CACD,MAAO,CAAC,kCAAmC,yBAAyB,CACpE,WAAY,CAAC,YAAa,cAAe,cAAc,CACxD,EACA,EAAe,eAAgB,CAC9B,GAAI,EAAe,cACnB,MAAO,EACP,KAAM,kBACN,KAAM,oBACN,SAAU,+BACV,QAAS,CACP,uBACA,oBACA,0BACD,CACD,MAAO,CACL,oCACA,+BACD,CACD,WAAY,CAAC,cAAe,eAAgB,0BAA0B,CACvE,EACA,EAAe,mBAAoB,CAClC,GAAI,EAAe,kBACnB,MAAO,EACP,KAAM,qBACN,KAAM,uBACN,SAAU,iCACV,QAAS,CAAC,sBAAuB,qBAAsB,iBAAiB,CACxE,MAAO,CAAC,yCAAyC,CACjD,WAAY,CAAC,eAAgB,OAAQ,wBAAwB,CAC9D,EACA,EAAe,iBAAkB,CAChC,GAAI,EAAe,gBACnB,MAAO,EACP,KAAM,mBACN,KAAM,qBACN,SAAU,iCACV,QAAS,CAAC,eAAgB,iBAAkB,oBAAoB,CAChE,MAAO,CAAC,kCAAkC,CAC1C,WAAY,CAAC,oBAAqB,mBAAoB,kBAAkB,CACzE,CACF,CAEY,EACX,GACmB,CACnB,IAAM,EAAQ,OAAO,OAAO,EAAqB,CAAC,KAC/C,GAAS,EAAK,OAAS,EACzB,CACD,GAAI,CAAC,EACH,MAAU,MAAM,iCAAiC,IAAO,CAE1D,OAAO,EAAM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatters.d.ts","names":[],"sources":["../../src/utils/formatters.ts"],"sourcesContent":[],"mappings":";;;;;;UAYiB,YAAA;;EAAA,QAAA,EAAA,MAAY;EAShB,UAAA,EAAA,MAAA,EAAA;EACJ,KAAA,EAAA,MAAA,EAAA;EACW,UAAA,EAAA,MAAA,EAAA;EAAL,WAAA,EAAA,MAAA,EAAA;;AAcd,cAhBY,kBAgBZ,EAAA,CAAA,KAAA,EAfQ,cAeR,EAAA,UAAA,CAAA,EAdc,IAcd,CAdmB,mBAcnB,EAAA,MAAA,GAAA,MAAA,CAAA,EAAA,GAbE,YAaF;AAEY,cAAA,aAAuB,EAAA,CAAA,IAAA,EAAA,aAAa,EAAA,GAAA,MAAA,EAAA;AAMpC,cAAA,mBACH,EAAA,CAAA,MAAA,EAAA,cACP,EAAA,EAAc,GAAd,cAAc,EAAA;AAQJ,cAAA,0BACK,EAAA,CAAA,cAAA,EAAA,uBAAuB,EAAA,GAAA,MAAA;AAW5B,cAAA,aAAwB,EAAA,CAAA,KAAA,EAAA,cAAc,EAAA,GAAA,MAAA;AAGtC,cAAA,kBAA6B,EAAA,CAAA,KAAA,EAAA,cAAc,EAAA,GAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatters.js","names":[],"sources":["../../src/utils/formatters.ts"],"sourcesContent":["import type {\n LifecycleAssessment,\n LifecycleRecommendation,\n} from '../types/milestones';\nimport type { LifecycleAxes } from '../types/axes';\nimport {\n LIFECYCLE_STAGE_META,\n LIFECYCLE_STAGE_ORDER,\n LifecycleStage,\n} from '../types/stages';\nimport type { LifecycleScore } from '../types/signals';\n\nexport interface StageSummary {\n title: string;\n question: string;\n highlights: string[];\n traps: string[];\n focusAreas: string[];\n axesSummary: string[];\n}\n\nexport const formatStageSummary = (\n stage: LifecycleStage,\n assessment?: Pick<LifecycleAssessment, 'axes' | 'gaps'>\n): StageSummary => {\n const meta = LIFECYCLE_STAGE_META[stage];\n const title = `Stage ${meta.order} · ${meta.name}`;\n const axesSummary = assessment ? summarizeAxes(assessment.axes) : [];\n\n return {\n title,\n question: meta.question,\n highlights: meta.signals,\n traps: meta.traps,\n focusAreas: assessment?.gaps?.length ? assessment.gaps : meta.focusAreas,\n axesSummary,\n };\n};\n\nexport const summarizeAxes = (axes: LifecycleAxes): string[] => [\n `Product: ${axes.product}`,\n `Company: ${axes.company}`,\n `Capital: ${axes.capital}`,\n];\n\nexport const rankStageCandidates = (\n scores: LifecycleScore[]\n): LifecycleScore[] =>\n [...scores].sort((a, b) => {\n if (b.score === a.score) {\n return b.confidence - a.confidence;\n }\n return b.score - a.score;\n });\n\nexport const createRecommendationDigest = (\n recommendation: LifecycleRecommendation\n): string => {\n const meta = LIFECYCLE_STAGE_META[recommendation.stage];\n const topAction = recommendation.actions[0];\n const actionCopy = topAction\n ? `${topAction.title} (${topAction.estimatedImpact} impact)`\n : 'Focus on upcoming milestones.';\n\n return `Next up for ${meta.name}: ${actionCopy}`;\n};\n\nexport const getStageLabel = (stage: LifecycleStage): string =>\n LIFECYCLE_STAGE_META[stage].name;\n\nexport const getStageOrderIndex = (stage: LifecycleStage): number =>\n LIFECYCLE_STAGE_ORDER.indexOf(stage);\n"],"mappings":"qFAqBA,MAAa,GACX,EACA,IACiB,CACjB,IAAM,EAAO,EAAqB,GAC5B,EAAQ,SAAS,EAAK,MAAM,KAAK,EAAK,OACtC,EAAc,EAAa,EAAc,EAAW,KAAK,CAAG,EAAE,CAEpE,MAAO,CACL,QACA,SAAU,EAAK,SACf,WAAY,EAAK,QACjB,MAAO,EAAK,MACZ,WAAY,GAAY,MAAM,OAAS,EAAW,KAAO,EAAK,WAC9D,cACD,EAGU,EAAiB,GAAkC,CAC9D,YAAY,EAAK,UACjB,YAAY,EAAK,UACjB,YAAY,EAAK,UAClB,CAEY,EACX,GAEA,CAAC,GAAG,EAAO,CAAC,MAAM,EAAG,IACf,EAAE,QAAU,EAAE,MACT,EAAE,WAAa,EAAE,WAEnB,EAAE,MAAQ,EAAE,MACnB,CAES,EACX,GACW,CACX,IAAM,EAAO,EAAqB,EAAe,OAC3C,EAAY,EAAe,QAAQ,GACnC,EAAa,EACf,GAAG,EAAU,MAAM,IAAI,EAAU,gBAAgB,UACjD,gCAEJ,MAAO,eAAe,EAAK,KAAK,IAAI,KAGzB,EAAiB,GAC5B,EAAqB,GAAO,KAEjB,EAAsB,GACjC,EAAsB,QAAQ,EAAM"}