@lssm/lib.lifecycle 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217072406

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1,7 @@
1
- import{LIFECYCLE_STAGE_META as e,LIFECYCLE_STAGE_ORDER as t,LifecycleStage as n,getLifecycleStageBySlug as r}from"./types/stages.js";import{CapitalPhase as i,CompanyPhase as a,ProductPhase as o}from"./types/axes.js";import"./types/signals.js";import"./types/milestones.js";import{createRecommendationDigest as s,formatStageSummary as c,getStageLabel as l,getStageOrderIndex as u,rankStageCandidates as d,summarizeAxes as f}from"./utils/formatters.js";export{i as CapitalPhase,a as CompanyPhase,e as LIFECYCLE_STAGE_META,t as LIFECYCLE_STAGE_ORDER,n as LifecycleStage,o as ProductPhase,s as createRecommendationDigest,c as formatStageSummary,r as getLifecycleStageBySlug,l as getStageLabel,u as getStageOrderIndex,d as rankStageCandidates,f as summarizeAxes};
1
+ import { LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER, LifecycleStage, getLifecycleStageBySlug } from "./types/stages.js";
2
+ import { CapitalPhase, CompanyPhase, ProductPhase } from "./types/axes.js";
3
+ import "./types/signals.js";
4
+ import "./types/milestones.js";
5
+ import { createRecommendationDigest, formatStageSummary, getStageLabel, getStageOrderIndex, rankStageCandidates, summarizeAxes } from "./utils/formatters.js";
6
+
7
+ export { CapitalPhase, CompanyPhase, LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER, LifecycleStage, ProductPhase, createRecommendationDigest, formatStageSummary, getLifecycleStageBySlug, getStageLabel, getStageOrderIndex, rankStageCandidates, summarizeAxes };
@@ -1 +1,28 @@
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};
1
+ //#region src/types/axes.ts
2
+ let ProductPhase = /* @__PURE__ */ function(ProductPhase$1) {
3
+ ProductPhase$1["Sketch"] = "Sketch";
4
+ ProductPhase$1["Prototype"] = "Prototype";
5
+ ProductPhase$1["Mvp"] = "MVP";
6
+ ProductPhase$1["V1"] = "V1";
7
+ ProductPhase$1["Ecosystem"] = "Ecosystem";
8
+ return ProductPhase$1;
9
+ }({});
10
+ let CompanyPhase = /* @__PURE__ */ function(CompanyPhase$1) {
11
+ CompanyPhase$1["Solo"] = "Solo";
12
+ CompanyPhase$1["TinyTeam"] = "TinyTeam";
13
+ CompanyPhase$1["FunctionalOrg"] = "FunctionalOrg";
14
+ CompanyPhase$1["MultiTeam"] = "MultiTeam";
15
+ CompanyPhase$1["Bureaucratic"] = "Bureaucratic";
16
+ return CompanyPhase$1;
17
+ }({});
18
+ let CapitalPhase = /* @__PURE__ */ function(CapitalPhase$1) {
19
+ CapitalPhase$1["Bootstrapped"] = "Bootstrapped";
20
+ CapitalPhase$1["PreSeed"] = "PreSeed";
21
+ CapitalPhase$1["Seed"] = "Seed";
22
+ CapitalPhase$1["SeriesAorB"] = "SeriesAorB";
23
+ CapitalPhase$1["LateStage"] = "LateStage";
24
+ return CapitalPhase$1;
25
+ }({});
26
+
27
+ //#endregion
28
+ export { CapitalPhase, CompanyPhase, ProductPhase };
@@ -1 +1 @@
1
- import"./stages.js";
1
+ import "./stages.js";
@@ -1 +1 @@
1
- import"./stages.js";
1
+ import "./stages.js";
@@ -1 +1,156 @@
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};
1
+ //#region src/types/stages.ts
2
+ let LifecycleStage = /* @__PURE__ */ function(LifecycleStage$1) {
3
+ LifecycleStage$1[LifecycleStage$1["Exploration"] = 0] = "Exploration";
4
+ LifecycleStage$1[LifecycleStage$1["ProblemSolutionFit"] = 1] = "ProblemSolutionFit";
5
+ LifecycleStage$1[LifecycleStage$1["MvpEarlyTraction"] = 2] = "MvpEarlyTraction";
6
+ LifecycleStage$1[LifecycleStage$1["ProductMarketFit"] = 3] = "ProductMarketFit";
7
+ LifecycleStage$1[LifecycleStage$1["GrowthScaleUp"] = 4] = "GrowthScaleUp";
8
+ LifecycleStage$1[LifecycleStage$1["ExpansionPlatform"] = 5] = "ExpansionPlatform";
9
+ LifecycleStage$1[LifecycleStage$1["MaturityRenewal"] = 6] = "MaturityRenewal";
10
+ return LifecycleStage$1;
11
+ }({});
12
+ const LIFECYCLE_STAGE_ORDER = [
13
+ LifecycleStage.Exploration,
14
+ LifecycleStage.ProblemSolutionFit,
15
+ LifecycleStage.MvpEarlyTraction,
16
+ LifecycleStage.ProductMarketFit,
17
+ LifecycleStage.GrowthScaleUp,
18
+ LifecycleStage.ExpansionPlatform,
19
+ LifecycleStage.MaturityRenewal
20
+ ];
21
+ const LIFECYCLE_STAGE_META = {
22
+ [LifecycleStage.Exploration]: {
23
+ id: LifecycleStage.Exploration,
24
+ order: 0,
25
+ slug: "exploration",
26
+ name: "Exploration / Ideation",
27
+ question: "Is there a problem worth my time?",
28
+ signals: [
29
+ "20+ discovery interviews",
30
+ "Clear problem statement",
31
+ "Named ICP"
32
+ ],
33
+ traps: ["Branding before discovery", "Premature tooling decisions"],
34
+ focusAreas: [
35
+ "Customer discovery",
36
+ "Problem definition",
37
+ "Segment clarity"
38
+ ]
39
+ },
40
+ [LifecycleStage.ProblemSolutionFit]: {
41
+ id: LifecycleStage.ProblemSolutionFit,
42
+ order: 1,
43
+ slug: "problem-solution-fit",
44
+ name: "Problem–Solution Fit",
45
+ question: "Do people care enough about this solution?",
46
+ signals: [
47
+ "Prototype reuse",
48
+ "Referral energy",
49
+ "Pre-pay interest"
50
+ ],
51
+ traps: ["“Market is huge” without users", "Skipping qualitative loops"],
52
+ focusAreas: [
53
+ "Solution hypothesis",
54
+ "Value messaging",
55
+ "Feedback capture"
56
+ ]
57
+ },
58
+ [LifecycleStage.MvpEarlyTraction]: {
59
+ id: LifecycleStage.MvpEarlyTraction,
60
+ order: 2,
61
+ slug: "mvp-early-traction",
62
+ name: "MVP & Early Traction",
63
+ question: "Can we get real usage and learn fast?",
64
+ signals: [
65
+ "20–50 named active users",
66
+ "Weekly releases",
67
+ "Noisy feedback"
68
+ ],
69
+ traps: ["Overbuilt infra for 10 users", "Undefined retention metric"],
70
+ focusAreas: [
71
+ "Activation",
72
+ "Cohort tracking",
73
+ "Feedback rituals"
74
+ ]
75
+ },
76
+ [LifecycleStage.ProductMarketFit]: {
77
+ id: LifecycleStage.ProductMarketFit,
78
+ order: 3,
79
+ slug: "product-market-fit",
80
+ name: "Product–Market Fit",
81
+ question: "Is this pulling us forward?",
82
+ signals: [
83
+ "Retention without heroics",
84
+ "Organic word-of-mouth",
85
+ "Value stories"
86
+ ],
87
+ traps: ["Hero growth that does not scale", "Ignoring churn signals"],
88
+ focusAreas: [
89
+ "Retention",
90
+ "Reliability",
91
+ "ICP clarity"
92
+ ]
93
+ },
94
+ [LifecycleStage.GrowthScaleUp]: {
95
+ id: LifecycleStage.GrowthScaleUp,
96
+ order: 4,
97
+ slug: "growth-scale-up",
98
+ name: "Growth / Scale-up",
99
+ question: "Can we grow this repeatably?",
100
+ signals: [
101
+ "Predictable channels",
102
+ "Specialized hires",
103
+ "Unit economics on track"
104
+ ],
105
+ traps: ["Paid spend masking retention gaps", "Infra debt blocking launches"],
106
+ focusAreas: [
107
+ "Ops systems",
108
+ "Growth loops",
109
+ "Reliability engineering"
110
+ ]
111
+ },
112
+ [LifecycleStage.ExpansionPlatform]: {
113
+ id: LifecycleStage.ExpansionPlatform,
114
+ order: 5,
115
+ slug: "expansion-platform",
116
+ name: "Expansion / Platform",
117
+ question: "What is the next growth curve?",
118
+ signals: [
119
+ "Stable core metrics",
120
+ "Partner/API demand",
121
+ "Ecosystem pull"
122
+ ],
123
+ traps: ["Platform theater before wedge is solid"],
124
+ focusAreas: [
125
+ "Partnerships",
126
+ "APIs",
127
+ "New market validation"
128
+ ]
129
+ },
130
+ [LifecycleStage.MaturityRenewal]: {
131
+ id: LifecycleStage.MaturityRenewal,
132
+ order: 6,
133
+ slug: "maturity-renewal",
134
+ name: "Maturity / Renewal",
135
+ question: "Optimize, reinvent, or sunset?",
136
+ signals: [
137
+ "Margin focus",
138
+ "Portfolio bets",
139
+ "Narrative refresh"
140
+ ],
141
+ traps: ["Assuming past success is enough"],
142
+ focusAreas: [
143
+ "Cost optimization",
144
+ "Reinvention bets",
145
+ "Sunset planning"
146
+ ]
147
+ }
148
+ };
149
+ const getLifecycleStageBySlug = (slug) => {
150
+ const entry = Object.values(LIFECYCLE_STAGE_META).find((meta) => meta.slug === slug);
151
+ if (!entry) throw new Error(`Unknown lifecycle stage slug: ${slug}`);
152
+ return entry.id;
153
+ };
154
+
155
+ //#endregion
156
+ export { LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER, LifecycleStage, getLifecycleStageBySlug };
@@ -1 +1,36 @@
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};
1
+ import { LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER } from "../types/stages.js";
2
+
3
+ //#region src/utils/formatters.ts
4
+ const formatStageSummary = (stage, assessment) => {
5
+ const meta = LIFECYCLE_STAGE_META[stage];
6
+ const title = `Stage ${meta.order} · ${meta.name}`;
7
+ const axesSummary = assessment ? summarizeAxes(assessment.axes) : [];
8
+ return {
9
+ title,
10
+ question: meta.question,
11
+ highlights: meta.signals,
12
+ traps: meta.traps,
13
+ focusAreas: assessment?.gaps?.length ? assessment.gaps : meta.focusAreas,
14
+ axesSummary
15
+ };
16
+ };
17
+ const summarizeAxes = (axes) => [
18
+ `Product: ${axes.product}`,
19
+ `Company: ${axes.company}`,
20
+ `Capital: ${axes.capital}`
21
+ ];
22
+ const rankStageCandidates = (scores) => [...scores].sort((a, b) => {
23
+ if (b.score === a.score) return b.confidence - a.confidence;
24
+ return b.score - a.score;
25
+ });
26
+ const createRecommendationDigest = (recommendation) => {
27
+ const meta = LIFECYCLE_STAGE_META[recommendation.stage];
28
+ const topAction = recommendation.actions[0];
29
+ const actionCopy = topAction ? `${topAction.title} (${topAction.estimatedImpact} impact)` : "Focus on upcoming milestones.";
30
+ return `Next up for ${meta.name}: ${actionCopy}`;
31
+ };
32
+ const getStageLabel = (stage) => LIFECYCLE_STAGE_META[stage].name;
33
+ const getStageOrderIndex = (stage) => LIFECYCLE_STAGE_ORDER.indexOf(stage);
34
+
35
+ //#endregion
36
+ export { createRecommendationDigest, formatStageSummary, getStageLabel, getStageOrderIndex, rankStageCandidates, summarizeAxes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.lifecycle",
3
- "version": "0.0.0-canary-20251217063201",
3
+ "version": "0.0.0-canary-20251217072406",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "peerDependencies": {},
26
26
  "devDependencies": {
27
- "@lssm/tool.tsdown": "0.0.0-canary-20251217063201",
28
- "@lssm/tool.typescript": "0.0.0-canary-20251217063201",
27
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217072406",
28
+ "@lssm/tool.typescript": "0.0.0-canary-20251217072406",
29
29
  "tsdown": "^0.17.4",
30
30
  "typescript": "^5.9.3"
31
31
  },