@contractspec/module.lifecycle-advisor 3.7.6 โ 3.7.7
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 +43 -42
- package/dist/browser/index.js +382 -385
- package/dist/i18n/catalogs/index.d.ts +1 -1
- package/dist/i18n/index.d.ts +7 -7
- package/dist/i18n/locale.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +382 -385
- package/dist/node/index.js +382 -385
- package/package.json +5 -5
- package/src/data/library-stage-map.ts +117 -117
- package/src/data/stage-playbooks.ts +265 -265
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
LifecycleAction,
|
|
3
|
+
LifecycleRecommendation,
|
|
4
4
|
} from '@contractspec/lib.lifecycle';
|
|
5
5
|
import { LifecycleStage } from '@contractspec/lib.lifecycle';
|
|
6
6
|
import { createLifecycleAdvisorI18n } from '../i18n/messages';
|
|
7
7
|
|
|
8
8
|
export interface StagePlaybookData {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
stage: LifecycleStage;
|
|
10
|
+
focusAreas: string[];
|
|
11
|
+
actions: LifecycleAction[];
|
|
12
|
+
ceremony?: LifecycleRecommendation['ceremony'];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -17,269 +17,269 @@ export interface StagePlaybookData {
|
|
|
17
17
|
* Falls back to English when locale is omitted or unsupported.
|
|
18
18
|
*/
|
|
19
19
|
export function getLocalizedStagePlaybooks(
|
|
20
|
-
|
|
20
|
+
locale?: string
|
|
21
21
|
): StagePlaybookData[] {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
22
|
+
const i18n = createLifecycleAdvisorI18n(locale);
|
|
23
|
+
return staticPlaybooks.map((playbook, stageIdx) => ({
|
|
24
|
+
...playbook,
|
|
25
|
+
focusAreas: playbook.focusAreas.map((_, focusIdx) =>
|
|
26
|
+
i18n.t(`playbook.stage${stageIdx}.focus.${focusIdx}`)
|
|
27
|
+
),
|
|
28
|
+
actions: playbook.actions.map((action, actionIdx) => ({
|
|
29
|
+
...action,
|
|
30
|
+
title: i18n.t(`playbook.stage${stageIdx}.action${actionIdx}.title`),
|
|
31
|
+
description: i18n.t(
|
|
32
|
+
`playbook.stage${stageIdx}.action${actionIdx}.description`
|
|
33
|
+
),
|
|
34
|
+
})),
|
|
35
|
+
ceremony: playbook.ceremony
|
|
36
|
+
? {
|
|
37
|
+
...playbook.ceremony,
|
|
38
|
+
title: i18n.t(`ceremony.stage${stageIdx}.title`),
|
|
39
|
+
copy: i18n.t(`ceremony.stage${stageIdx}.copy`),
|
|
40
|
+
}
|
|
41
|
+
: undefined,
|
|
42
|
+
}));
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
const staticPlaybooks: StagePlaybookData[] = [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
46
|
+
{
|
|
47
|
+
stage: LifecycleStage.Exploration,
|
|
48
|
+
focusAreas: ['Discovery', 'Problem clarity', 'Persona'],
|
|
49
|
+
actions: [
|
|
50
|
+
{
|
|
51
|
+
id: 'stage0-interview-burst',
|
|
52
|
+
stage: LifecycleStage.Exploration,
|
|
53
|
+
title: 'Run a 5-day interview burst',
|
|
54
|
+
description:
|
|
55
|
+
'Schedule at least 5 back-to-back interviews and capture raw quotes.',
|
|
56
|
+
priority: 1,
|
|
57
|
+
estimatedImpact: 'medium',
|
|
58
|
+
effortLevel: 'm',
|
|
59
|
+
category: 'product',
|
|
60
|
+
recommendedLibraries: ['@contractspec/lib.content-gen'],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 'stage0-problem-story',
|
|
64
|
+
stage: LifecycleStage.Exploration,
|
|
65
|
+
title: 'Write the problem story',
|
|
66
|
+
description:
|
|
67
|
+
'Summarize the pain in one paragraph you can repeat to partners.',
|
|
68
|
+
priority: 2,
|
|
69
|
+
estimatedImpact: 'low',
|
|
70
|
+
effortLevel: 's',
|
|
71
|
+
category: 'product',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
ceremony: {
|
|
75
|
+
title: 'Discovery Spark',
|
|
76
|
+
copy: 'Share the sharpest pain quote with your crew. Frame it, celebrate focus.',
|
|
77
|
+
cues: ['๐', '๐๏ธ'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
82
|
+
focusAreas: ['Prototype', 'Feedback', 'Value proof'],
|
|
83
|
+
actions: [
|
|
84
|
+
{
|
|
85
|
+
id: 'stage1-demo-loop',
|
|
86
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
87
|
+
title: 'Prototype feedback loop',
|
|
88
|
+
description:
|
|
89
|
+
'Ship a low-fidelity prototype and collect 3 rounds of reactions.',
|
|
90
|
+
priority: 1,
|
|
91
|
+
estimatedImpact: 'medium',
|
|
92
|
+
effortLevel: 'm',
|
|
93
|
+
category: 'product',
|
|
94
|
+
recommendedLibraries: ['@contractspec/lib.progressive-delivery'],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'stage1-referrals',
|
|
98
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
99
|
+
title: 'Capture referral signals',
|
|
100
|
+
description: 'Ask each tester who else should see the demo.',
|
|
101
|
+
priority: 2,
|
|
102
|
+
estimatedImpact: 'low',
|
|
103
|
+
effortLevel: 's',
|
|
104
|
+
category: 'growth',
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
ceremony: {
|
|
108
|
+
title: 'Solution Resonance',
|
|
109
|
+
copy: 'Record a short screen share telling the before/after story to your future self.',
|
|
110
|
+
cues: ['๐ค', 'โจ'],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
115
|
+
focusAreas: ['Activation', 'Telemetry', 'Feedback'],
|
|
116
|
+
actions: [
|
|
117
|
+
{
|
|
118
|
+
id: 'stage2-activation',
|
|
119
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
120
|
+
title: 'Define activation checklist',
|
|
121
|
+
description: 'Document the 3 steps users must finish to get value.',
|
|
122
|
+
priority: 1,
|
|
123
|
+
estimatedImpact: 'high',
|
|
124
|
+
effortLevel: 'm',
|
|
125
|
+
category: 'operations',
|
|
126
|
+
recommendedLibraries: [
|
|
127
|
+
'@contractspec/lib.analytics',
|
|
128
|
+
'@contractspec/lib.observability',
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
id: 'stage2-weekly-sync',
|
|
133
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
134
|
+
title: 'Weekly user sync',
|
|
135
|
+
description: 'Host a standing call with your 5 most active testers.',
|
|
136
|
+
priority: 2,
|
|
137
|
+
estimatedImpact: 'medium',
|
|
138
|
+
effortLevel: 'm',
|
|
139
|
+
category: 'company',
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
ceremony: {
|
|
143
|
+
title: 'Traction Toast',
|
|
144
|
+
copy: 'Toast your first 20 real usersโsay their names, tell them why they matter.',
|
|
145
|
+
cues: ['๐ฅ', '๐ฃ'],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
150
|
+
focusAreas: ['Retention', 'Reliability', 'Story'],
|
|
151
|
+
actions: [
|
|
152
|
+
{
|
|
153
|
+
id: 'stage3-retention-study',
|
|
154
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
155
|
+
title: 'Run a retention study',
|
|
156
|
+
description:
|
|
157
|
+
'Interview 3 retained users and publish their before/after metrics.',
|
|
158
|
+
priority: 1,
|
|
159
|
+
estimatedImpact: 'high',
|
|
160
|
+
effortLevel: 'm',
|
|
161
|
+
category: 'product',
|
|
162
|
+
recommendedLibraries: ['@contractspec/lib.evolution'],
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: 'stage3-incident-review',
|
|
166
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
167
|
+
title: 'Lightweight incident review',
|
|
168
|
+
description: 'Review the last 2 reliability hiccups and capture fixes.',
|
|
169
|
+
priority: 2,
|
|
170
|
+
estimatedImpact: 'medium',
|
|
171
|
+
effortLevel: 's',
|
|
172
|
+
category: 'operations',
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
ceremony: {
|
|
176
|
+
title: 'PMF Signal Fire',
|
|
177
|
+
copy: 'Write a letter to your future Series A self describing the pull you feel today.',
|
|
178
|
+
cues: ['๐ฅ', '๐ฌ'],
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
183
|
+
focusAreas: ['Systems', 'Growth loops', 'Specialization'],
|
|
184
|
+
actions: [
|
|
185
|
+
{
|
|
186
|
+
id: 'stage4-growth-loop',
|
|
187
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
188
|
+
title: 'Codify a growth loop',
|
|
189
|
+
description:
|
|
190
|
+
'Choose one loop (SEO, referrals, outbound) and document owners + inputs.',
|
|
191
|
+
priority: 1,
|
|
192
|
+
estimatedImpact: 'high',
|
|
193
|
+
effortLevel: 'l',
|
|
194
|
+
category: 'growth',
|
|
195
|
+
recommendedLibraries: [
|
|
196
|
+
'@contractspec/lib.growth',
|
|
197
|
+
'@contractspec/lib.resilience',
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: 'stage4-hiring-map',
|
|
202
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
203
|
+
title: 'Create hiring map',
|
|
204
|
+
description: 'List specialized roles you need in the next 2 quarters.',
|
|
205
|
+
priority: 2,
|
|
206
|
+
estimatedImpact: 'medium',
|
|
207
|
+
effortLevel: 'm',
|
|
208
|
+
category: 'company',
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
ceremony: {
|
|
212
|
+
title: 'Scale Systems',
|
|
213
|
+
copy: 'Invite the team to map the journey from first user to repeatable machine.',
|
|
214
|
+
cues: ['๐บ๏ธ', 'โ๏ธ'],
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
219
|
+
focusAreas: ['Partners', 'APIs', 'Expansion bets'],
|
|
220
|
+
actions: [
|
|
221
|
+
{
|
|
222
|
+
id: 'stage5-partner-brief',
|
|
223
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
224
|
+
title: 'Partner readiness brief',
|
|
225
|
+
description:
|
|
226
|
+
'Document partner types, value props, and onboarding steps.',
|
|
227
|
+
priority: 1,
|
|
228
|
+
estimatedImpact: 'high',
|
|
229
|
+
effortLevel: 'm',
|
|
230
|
+
category: 'product',
|
|
231
|
+
recommendedLibraries: ['@contractspec/lib.workflow-composer'],
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
id: 'stage5-experiment-portfolio',
|
|
235
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
236
|
+
title: 'Expansion experiment portfolio',
|
|
237
|
+
description: 'List the top 3 markets or product lines with owners.',
|
|
238
|
+
priority: 2,
|
|
239
|
+
estimatedImpact: 'medium',
|
|
240
|
+
effortLevel: 'm',
|
|
241
|
+
category: 'growth',
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
ceremony: {
|
|
245
|
+
title: 'Platform Threshold',
|
|
246
|
+
copy: 'Host a partner circleโinvite allies to share what they need from your platform.',
|
|
247
|
+
cues: ['๐ค', '๐'],
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
252
|
+
focusAreas: ['Optimization', 'Renewal', 'Portfolio'],
|
|
253
|
+
actions: [
|
|
254
|
+
{
|
|
255
|
+
id: 'stage6-cost-review',
|
|
256
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
257
|
+
title: 'Run a cost-to-value review',
|
|
258
|
+
description: 'Audit each major surface for margin impact.',
|
|
259
|
+
priority: 1,
|
|
260
|
+
estimatedImpact: 'high',
|
|
261
|
+
effortLevel: 'm',
|
|
262
|
+
category: 'operations',
|
|
263
|
+
recommendedLibraries: ['@contractspec/lib.cost-tracking'],
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
id: 'stage6-renewal-bet',
|
|
267
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
268
|
+
title: 'Define the renewal bet',
|
|
269
|
+
description:
|
|
270
|
+
'Choose one reinvention or sunset track and set checkpoints.',
|
|
271
|
+
priority: 2,
|
|
272
|
+
estimatedImpact: 'medium',
|
|
273
|
+
effortLevel: 'm',
|
|
274
|
+
category: 'product',
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
ceremony: {
|
|
278
|
+
title: 'Renewal Summit',
|
|
279
|
+
copy: 'Pause to honor what got you here, then commit publicly to the next reinvention.',
|
|
280
|
+
cues: ['๐๏ธ', '๐'],
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
283
|
];
|
|
284
284
|
|
|
285
285
|
/** Backward-compatible static export (English defaults). */
|