@lssm/lib.lifecycle 0.3.1 → 1.41.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.
package/README.md CHANGED
@@ -58,4 +58,9 @@ This library intentionally ships no IO logic so it can run in browsers, Node run
58
58
 
59
59
 
60
60
 
61
+
62
+
63
+
64
+
65
+
61
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.lifecycle",
3
- "version": "0.3.1",
3
+ "version": "1.41.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -11,6 +11,7 @@
11
11
  ],
12
12
  "scripts": {
13
13
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
14
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
14
15
  "build": "bun build:bundle && bun build:types",
15
16
  "build:bundle": "tsdown",
16
17
  "build:types": "tsc --noEmit",
@@ -23,16 +24,20 @@
23
24
  },
24
25
  "peerDependencies": {},
25
26
  "devDependencies": {
26
- "@lssm/tool.tsdown": "0.12.1",
27
- "@lssm/tool.typescript": "0.11.1",
28
- "tsdown": "^0.16.6",
27
+ "@lssm/tool.tsdown": "1.41.1",
28
+ "@lssm/tool.typescript": "1.41.1",
29
+ "tsdown": "^0.17.4",
29
30
  "typescript": "^5.9.3"
30
31
  },
31
32
  "exports": {
32
- ".": "./dist/index.js",
33
+ ".": "./src/index.ts",
33
34
  "./*": "./*"
34
35
  },
35
36
  "publishConfig": {
36
- "access": "public"
37
+ "access": "public",
38
+ "exports": {
39
+ ".": "./dist/index.js",
40
+ "./*": "./*"
41
+ }
37
42
  }
38
43
  }
package/dist/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER, LifecycleStage, LifecycleStageMetadata, LifecycleStageSlug, getLifecycleStageBySlug } from "./types/stages.js";
2
- import { CapitalPhase, CompanyPhase, LifecycleAxes, LifecycleAxis, LifecycleAxisSnapshot, ProductPhase } from "./types/axes.js";
3
- import { LifecycleAssessmentInput, LifecycleMetricSnapshot, LifecycleScore, LifecycleSignal, LifecycleSignalKind, LifecycleSignalSource } from "./types/signals.js";
4
- import { LifecycleAction, LifecycleAssessment, LifecycleMilestone, LifecycleMilestoneCategory, LifecycleRecommendation } from "./types/milestones.js";
5
- import { StageSummary, createRecommendationDigest, formatStageSummary, getStageLabel, getStageOrderIndex, rankStageCandidates, summarizeAxes } from "./utils/formatters.js";
6
- export { CapitalPhase, CompanyPhase, LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER, LifecycleAction, LifecycleAssessment, LifecycleAssessmentInput, LifecycleAxes, LifecycleAxis, LifecycleAxisSnapshot, LifecycleMetricSnapshot, LifecycleMilestone, LifecycleMilestoneCategory, LifecycleRecommendation, LifecycleScore, LifecycleSignal, LifecycleSignalKind, LifecycleSignalSource, LifecycleStage, LifecycleStageMetadata, LifecycleStageSlug, ProductPhase, StageSummary, createRecommendationDigest, formatStageSummary, getLifecycleStageBySlug, getStageLabel, getStageOrderIndex, rankStageCandidates, summarizeAxes };
@@ -1,36 +0,0 @@
1
- //#region src/types/axes.d.ts
2
- declare enum ProductPhase {
3
- Sketch = "Sketch",
4
- Prototype = "Prototype",
5
- Mvp = "MVP",
6
- V1 = "V1",
7
- Ecosystem = "Ecosystem",
8
- }
9
- declare enum CompanyPhase {
10
- Solo = "Solo",
11
- TinyTeam = "TinyTeam",
12
- FunctionalOrg = "FunctionalOrg",
13
- MultiTeam = "MultiTeam",
14
- Bureaucratic = "Bureaucratic",
15
- }
16
- declare enum CapitalPhase {
17
- Bootstrapped = "Bootstrapped",
18
- PreSeed = "PreSeed",
19
- Seed = "Seed",
20
- SeriesAorB = "SeriesAorB",
21
- LateStage = "LateStage",
22
- }
23
- type LifecycleAxis = 'product' | 'company' | 'capital';
24
- interface LifecycleAxes {
25
- product: ProductPhase;
26
- company: CompanyPhase;
27
- capital: CapitalPhase;
28
- }
29
- interface LifecycleAxisSnapshot {
30
- axis: LifecycleAxis;
31
- phase: ProductPhase | CompanyPhase | CapitalPhase;
32
- rationale?: string;
33
- confidence: number;
34
- }
35
- //#endregion
36
- export { CapitalPhase, CompanyPhase, LifecycleAxes, LifecycleAxis, LifecycleAxisSnapshot, ProductPhase };
@@ -1,52 +0,0 @@
1
- import { LifecycleStage } from "./stages.js";
2
- import { LifecycleAxes } from "./axes.js";
3
- import { LifecycleScore, LifecycleSignal } from "./signals.js";
4
-
5
- //#region src/types/milestones.d.ts
6
- type LifecycleMilestoneCategory = 'product' | 'company' | 'capital' | 'operations';
7
- interface LifecycleMilestone {
8
- id: string;
9
- stage: LifecycleStage;
10
- category: LifecycleMilestoneCategory;
11
- title: string;
12
- description: string;
13
- priority: number;
14
- detectionCriteria?: Record<string, unknown>;
15
- guideContent?: string;
16
- actionItems?: string[];
17
- }
18
- interface LifecycleAction {
19
- id: string;
20
- stage: LifecycleStage;
21
- title: string;
22
- description: string;
23
- priority: number;
24
- estimatedImpact: 'low' | 'medium' | 'high';
25
- effortLevel: 'xs' | 's' | 'm' | 'l';
26
- category: LifecycleMilestoneCategory | 'growth' | 'ops';
27
- recommendedLibraries?: string[];
28
- }
29
- interface LifecycleAssessment {
30
- stage: LifecycleStage;
31
- confidence: number;
32
- axes: LifecycleAxes;
33
- signals: LifecycleSignal[];
34
- metrics?: Record<string, number | undefined>;
35
- gaps: string[];
36
- focusAreas: string[];
37
- scorecard: LifecycleScore[];
38
- generatedAt: string;
39
- }
40
- interface LifecycleRecommendation {
41
- assessmentId: string;
42
- stage: LifecycleStage;
43
- actions: LifecycleAction[];
44
- upcomingMilestones: LifecycleMilestone[];
45
- ceremony?: {
46
- title: string;
47
- copy: string;
48
- cues: string[];
49
- };
50
- }
51
- //#endregion
52
- export { LifecycleAction, LifecycleAssessment, LifecycleMilestone, LifecycleMilestoneCategory, LifecycleRecommendation };
@@ -1,43 +0,0 @@
1
- import { LifecycleStage } from "./stages.js";
2
- import { LifecycleAxes, LifecycleAxis } from "./axes.js";
3
-
4
- //#region src/types/signals.d.ts
5
- type LifecycleSignalSource = 'analytics' | 'questionnaire' | 'intent' | 'manual' | 'simulation';
6
- type LifecycleSignalKind = 'metric' | 'qualitative' | 'event' | 'milestone' | 'heuristic';
7
- interface LifecycleSignal {
8
- id: string;
9
- stageHint?: LifecycleStage;
10
- axis?: LifecycleAxis;
11
- kind: LifecycleSignalKind;
12
- source: LifecycleSignalSource;
13
- name: string;
14
- value: number | string | boolean;
15
- weight: number;
16
- confidence: number;
17
- details?: Record<string, unknown>;
18
- capturedAt: string;
19
- }
20
- interface LifecycleMetricSnapshot {
21
- activeUsers?: number;
22
- weeklyActiveUsers?: number;
23
- retentionRate?: number;
24
- monthlyRecurringRevenue?: number;
25
- customerCount?: number;
26
- teamSize?: number;
27
- burnMultiple?: number;
28
- qualitativeSupport?: string[];
29
- }
30
- interface LifecycleScore {
31
- stage: LifecycleStage;
32
- score: number;
33
- confidence: number;
34
- supportingSignals: string[];
35
- }
36
- interface LifecycleAssessmentInput {
37
- axes?: Partial<LifecycleAxes>;
38
- metrics?: LifecycleMetricSnapshot;
39
- signals?: LifecycleSignal[];
40
- questionnaireAnswers?: Record<string, unknown>;
41
- }
42
- //#endregion
43
- export { LifecycleAssessmentInput, LifecycleMetricSnapshot, LifecycleScore, LifecycleSignal, LifecycleSignalKind, LifecycleSignalSource };
@@ -1,26 +0,0 @@
1
- //#region src/types/stages.d.ts
2
- declare enum LifecycleStage {
3
- Exploration = 0,
4
- ProblemSolutionFit = 1,
5
- MvpEarlyTraction = 2,
6
- ProductMarketFit = 3,
7
- GrowthScaleUp = 4,
8
- ExpansionPlatform = 5,
9
- MaturityRenewal = 6,
10
- }
11
- type LifecycleStageSlug = 'exploration' | 'problem-solution-fit' | 'mvp-early-traction' | 'product-market-fit' | 'growth-scale-up' | 'expansion-platform' | 'maturity-renewal';
12
- interface LifecycleStageMetadata {
13
- id: LifecycleStage;
14
- order: number;
15
- slug: LifecycleStageSlug;
16
- name: string;
17
- question: string;
18
- signals: string[];
19
- traps: string[];
20
- focusAreas: string[];
21
- }
22
- declare const LIFECYCLE_STAGE_ORDER: LifecycleStage[];
23
- declare const LIFECYCLE_STAGE_META: Record<LifecycleStage, LifecycleStageMetadata>;
24
- declare const getLifecycleStageBySlug: (slug: LifecycleStageSlug) => LifecycleStage;
25
- //#endregion
26
- export { LIFECYCLE_STAGE_META, LIFECYCLE_STAGE_ORDER, LifecycleStage, LifecycleStageMetadata, LifecycleStageSlug, getLifecycleStageBySlug };
@@ -1,22 +0,0 @@
1
- import { LifecycleStage } from "../types/stages.js";
2
- import { LifecycleAxes } from "../types/axes.js";
3
- import { LifecycleScore } from "../types/signals.js";
4
- import { LifecycleAssessment, LifecycleRecommendation } from "../types/milestones.js";
5
-
6
- //#region src/utils/formatters.d.ts
7
- interface StageSummary {
8
- title: string;
9
- question: string;
10
- highlights: string[];
11
- traps: string[];
12
- focusAreas: string[];
13
- axesSummary: string[];
14
- }
15
- declare const formatStageSummary: (stage: LifecycleStage, assessment?: Pick<LifecycleAssessment, "axes" | "gaps">) => StageSummary;
16
- declare const summarizeAxes: (axes: LifecycleAxes) => string[];
17
- declare const rankStageCandidates: (scores: LifecycleScore[]) => LifecycleScore[];
18
- declare const createRecommendationDigest: (recommendation: LifecycleRecommendation) => string;
19
- declare const getStageLabel: (stage: LifecycleStage) => string;
20
- declare const getStageOrderIndex: (stage: LifecycleStage) => number;
21
- //#endregion
22
- export { StageSummary, createRecommendationDigest, formatStageSummary, getStageLabel, getStageOrderIndex, rankStageCandidates, summarizeAxes };