@contractspec/module.lifecycle-advisor 1.56.1 → 1.58.0
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/__tests__/recommendation-engine.test.d.ts +2 -0
- package/dist/__tests__/recommendation-engine.test.d.ts.map +1 -0
- package/dist/browser/index.js +429 -0
- package/dist/ceremony/ceremony-designer.d.ts +9 -11
- package/dist/ceremony/ceremony-designer.d.ts.map +1 -1
- package/dist/data/library-stage-map.d.ts +7 -9
- package/dist/data/library-stage-map.d.ts.map +1 -1
- package/dist/data/stage-playbooks.d.ts +9 -10
- package/dist/data/stage-playbooks.d.ts.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +429 -4
- package/dist/node/index.js +429 -0
- package/dist/recommendations/library-recommender.d.ts +10 -14
- package/dist/recommendations/library-recommender.d.ts.map +1 -1
- package/dist/recommendations/recommendation-engine.d.ts +10 -13
- package/dist/recommendations/recommendation-engine.d.ts.map +1 -1
- package/package.json +20 -15
- package/dist/ceremony/ceremony-designer.js +0 -18
- package/dist/ceremony/ceremony-designer.js.map +0 -1
- package/dist/data/library-stage-map.js +0 -92
- package/dist/data/library-stage-map.js.map +0 -1
- package/dist/data/stage-playbooks.js +0 -241
- package/dist/data/stage-playbooks.js.map +0 -1
- package/dist/recommendations/library-recommender.js +0 -20
- package/dist/recommendations/library-recommender.js.map +0 -1
- package/dist/recommendations/recommendation-engine.js +0 -46
- package/dist/recommendations/recommendation-engine.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendation-engine.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/recommendation-engine.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
// src/recommendations/recommendation-engine.ts
|
|
2
|
+
import {
|
|
3
|
+
LIFECYCLE_STAGE_META
|
|
4
|
+
} from "@contractspec/lib.lifecycle";
|
|
5
|
+
|
|
6
|
+
// src/data/stage-playbooks.ts
|
|
7
|
+
import { LifecycleStage } from "@contractspec/lib.lifecycle";
|
|
8
|
+
var stagePlaybooks = [
|
|
9
|
+
{
|
|
10
|
+
stage: LifecycleStage.Exploration,
|
|
11
|
+
focusAreas: ["Discovery", "Problem clarity", "Persona"],
|
|
12
|
+
actions: [
|
|
13
|
+
{
|
|
14
|
+
id: "stage0-interview-burst",
|
|
15
|
+
stage: LifecycleStage.Exploration,
|
|
16
|
+
title: "Run a 5-day interview burst",
|
|
17
|
+
description: "Schedule at least 5 back-to-back interviews and capture raw quotes.",
|
|
18
|
+
priority: 1,
|
|
19
|
+
estimatedImpact: "medium",
|
|
20
|
+
effortLevel: "m",
|
|
21
|
+
category: "product",
|
|
22
|
+
recommendedLibraries: ["@contractspec/lib.content-gen"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "stage0-problem-story",
|
|
26
|
+
stage: LifecycleStage.Exploration,
|
|
27
|
+
title: "Write the problem story",
|
|
28
|
+
description: "Summarize the pain in one paragraph you can repeat to partners.",
|
|
29
|
+
priority: 2,
|
|
30
|
+
estimatedImpact: "low",
|
|
31
|
+
effortLevel: "s",
|
|
32
|
+
category: "product"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
ceremony: {
|
|
36
|
+
title: "Discovery Spark",
|
|
37
|
+
copy: "Share the sharpest pain quote with your crew. Frame it, celebrate focus.",
|
|
38
|
+
cues: ["\uD83D\uDD0E", "\uD83D\uDDD2️"]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
43
|
+
focusAreas: ["Prototype", "Feedback", "Value proof"],
|
|
44
|
+
actions: [
|
|
45
|
+
{
|
|
46
|
+
id: "stage1-demo-loop",
|
|
47
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
48
|
+
title: "Prototype feedback loop",
|
|
49
|
+
description: "Ship a low-fidelity prototype and collect 3 rounds of reactions.",
|
|
50
|
+
priority: 1,
|
|
51
|
+
estimatedImpact: "medium",
|
|
52
|
+
effortLevel: "m",
|
|
53
|
+
category: "product",
|
|
54
|
+
recommendedLibraries: ["@contractspec/lib.progressive-delivery"]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "stage1-referrals",
|
|
58
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
59
|
+
title: "Capture referral signals",
|
|
60
|
+
description: "Ask each tester who else should see the demo.",
|
|
61
|
+
priority: 2,
|
|
62
|
+
estimatedImpact: "low",
|
|
63
|
+
effortLevel: "s",
|
|
64
|
+
category: "growth"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
ceremony: {
|
|
68
|
+
title: "Solution Resonance",
|
|
69
|
+
copy: "Record a short screen share telling the before/after story to your future self.",
|
|
70
|
+
cues: ["\uD83C\uDFA4", "✨"]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
75
|
+
focusAreas: ["Activation", "Telemetry", "Feedback"],
|
|
76
|
+
actions: [
|
|
77
|
+
{
|
|
78
|
+
id: "stage2-activation",
|
|
79
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
80
|
+
title: "Define activation checklist",
|
|
81
|
+
description: "Document the 3 steps users must finish to get value.",
|
|
82
|
+
priority: 1,
|
|
83
|
+
estimatedImpact: "high",
|
|
84
|
+
effortLevel: "m",
|
|
85
|
+
category: "operations",
|
|
86
|
+
recommendedLibraries: [
|
|
87
|
+
"@contractspec/lib.analytics",
|
|
88
|
+
"@contractspec/lib.observability"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "stage2-weekly-sync",
|
|
93
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
94
|
+
title: "Weekly user sync",
|
|
95
|
+
description: "Host a standing call with your 5 most active testers.",
|
|
96
|
+
priority: 2,
|
|
97
|
+
estimatedImpact: "medium",
|
|
98
|
+
effortLevel: "m",
|
|
99
|
+
category: "company"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
ceremony: {
|
|
103
|
+
title: "Traction Toast",
|
|
104
|
+
copy: "Toast your first 20 real users—say their names, tell them why they matter.",
|
|
105
|
+
cues: ["\uD83E\uDD42", "\uD83D\uDCE3"]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
110
|
+
focusAreas: ["Retention", "Reliability", "Story"],
|
|
111
|
+
actions: [
|
|
112
|
+
{
|
|
113
|
+
id: "stage3-retention-study",
|
|
114
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
115
|
+
title: "Run a retention study",
|
|
116
|
+
description: "Interview 3 retained users and publish their before/after metrics.",
|
|
117
|
+
priority: 1,
|
|
118
|
+
estimatedImpact: "high",
|
|
119
|
+
effortLevel: "m",
|
|
120
|
+
category: "product",
|
|
121
|
+
recommendedLibraries: ["@contractspec/lib.evolution"]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: "stage3-incident-review",
|
|
125
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
126
|
+
title: "Lightweight incident review",
|
|
127
|
+
description: "Review the last 2 reliability hiccups and capture fixes.",
|
|
128
|
+
priority: 2,
|
|
129
|
+
estimatedImpact: "medium",
|
|
130
|
+
effortLevel: "s",
|
|
131
|
+
category: "operations"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
ceremony: {
|
|
135
|
+
title: "PMF Signal Fire",
|
|
136
|
+
copy: "Write a letter to your future Series A self describing the pull you feel today.",
|
|
137
|
+
cues: ["\uD83D\uDD25", "\uD83D\uDCEC"]
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
142
|
+
focusAreas: ["Systems", "Growth loops", "Specialization"],
|
|
143
|
+
actions: [
|
|
144
|
+
{
|
|
145
|
+
id: "stage4-growth-loop",
|
|
146
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
147
|
+
title: "Codify a growth loop",
|
|
148
|
+
description: "Choose one loop (SEO, referrals, outbound) and document owners + inputs.",
|
|
149
|
+
priority: 1,
|
|
150
|
+
estimatedImpact: "high",
|
|
151
|
+
effortLevel: "l",
|
|
152
|
+
category: "growth",
|
|
153
|
+
recommendedLibraries: [
|
|
154
|
+
"@contractspec/lib.growth",
|
|
155
|
+
"@contractspec/lib.resilience"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: "stage4-hiring-map",
|
|
160
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
161
|
+
title: "Create hiring map",
|
|
162
|
+
description: "List specialized roles you need in the next 2 quarters.",
|
|
163
|
+
priority: 2,
|
|
164
|
+
estimatedImpact: "medium",
|
|
165
|
+
effortLevel: "m",
|
|
166
|
+
category: "company"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
ceremony: {
|
|
170
|
+
title: "Scale Systems",
|
|
171
|
+
copy: "Invite the team to map the journey from first user to repeatable machine.",
|
|
172
|
+
cues: ["\uD83D\uDDFA️", "⚙️"]
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
177
|
+
focusAreas: ["Partners", "APIs", "Expansion bets"],
|
|
178
|
+
actions: [
|
|
179
|
+
{
|
|
180
|
+
id: "stage5-partner-brief",
|
|
181
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
182
|
+
title: "Partner readiness brief",
|
|
183
|
+
description: "Document partner types, value props, and onboarding steps.",
|
|
184
|
+
priority: 1,
|
|
185
|
+
estimatedImpact: "high",
|
|
186
|
+
effortLevel: "m",
|
|
187
|
+
category: "product",
|
|
188
|
+
recommendedLibraries: ["@contractspec/lib.workflow-composer"]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: "stage5-experiment-portfolio",
|
|
192
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
193
|
+
title: "Expansion experiment portfolio",
|
|
194
|
+
description: "List the top 3 markets or product lines with owners.",
|
|
195
|
+
priority: 2,
|
|
196
|
+
estimatedImpact: "medium",
|
|
197
|
+
effortLevel: "m",
|
|
198
|
+
category: "growth"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
ceremony: {
|
|
202
|
+
title: "Platform Threshold",
|
|
203
|
+
copy: "Host a partner circle—invite allies to share what they need from your platform.",
|
|
204
|
+
cues: ["\uD83E\uDD1D", "\uD83C\uDF10"]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
209
|
+
focusAreas: ["Optimization", "Renewal", "Portfolio"],
|
|
210
|
+
actions: [
|
|
211
|
+
{
|
|
212
|
+
id: "stage6-cost-review",
|
|
213
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
214
|
+
title: "Run a cost-to-value review",
|
|
215
|
+
description: "Audit each major surface for margin impact.",
|
|
216
|
+
priority: 1,
|
|
217
|
+
estimatedImpact: "high",
|
|
218
|
+
effortLevel: "m",
|
|
219
|
+
category: "operations",
|
|
220
|
+
recommendedLibraries: ["@contractspec/lib.cost-tracking"]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
id: "stage6-renewal-bet",
|
|
224
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
225
|
+
title: "Define the renewal bet",
|
|
226
|
+
description: "Choose one reinvention or sunset track and set checkpoints.",
|
|
227
|
+
priority: 2,
|
|
228
|
+
estimatedImpact: "medium",
|
|
229
|
+
effortLevel: "m",
|
|
230
|
+
category: "product"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
ceremony: {
|
|
234
|
+
title: "Renewal Summit",
|
|
235
|
+
copy: "Pause to honor what got you here, then commit publicly to the next reinvention.",
|
|
236
|
+
cues: ["\uD83C\uDFD4️", "\uD83D\uDD01"]
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
];
|
|
240
|
+
var stage_playbooks_default = stagePlaybooks;
|
|
241
|
+
|
|
242
|
+
// src/recommendations/recommendation-engine.ts
|
|
243
|
+
var PLAYBOOK_MAP = new Map(stage_playbooks_default.map((entry) => [
|
|
244
|
+
entry.stage,
|
|
245
|
+
{
|
|
246
|
+
...entry,
|
|
247
|
+
stage: entry.stage
|
|
248
|
+
}
|
|
249
|
+
]));
|
|
250
|
+
|
|
251
|
+
class LifecycleRecommendationEngine {
|
|
252
|
+
playbooks;
|
|
253
|
+
constructor(overrides) {
|
|
254
|
+
this.playbooks = overrides?.length ? new Map(overrides.map((entry) => [entry.stage, entry])) : PLAYBOOK_MAP;
|
|
255
|
+
}
|
|
256
|
+
generate(assessment, options = {}) {
|
|
257
|
+
const entry = this.playbooks.get(assessment.stage) ?? createFallbackPlaybook(assessment.stage);
|
|
258
|
+
const limit = options.limit ?? 3;
|
|
259
|
+
const actions = (entry.actions ?? []).slice(0, limit);
|
|
260
|
+
const finalActions = actions.length > 0 ? actions : fallbackActions(assessment, limit);
|
|
261
|
+
return {
|
|
262
|
+
assessmentId: assessment.generatedAt,
|
|
263
|
+
stage: assessment.stage,
|
|
264
|
+
actions: finalActions,
|
|
265
|
+
upcomingMilestones: options.upcomingMilestones ?? [],
|
|
266
|
+
ceremony: entry.ceremony
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
var createFallbackPlaybook = (stage) => ({
|
|
271
|
+
stage,
|
|
272
|
+
actions: [],
|
|
273
|
+
focusAreas: LIFECYCLE_STAGE_META[stage].focusAreas
|
|
274
|
+
});
|
|
275
|
+
var fallbackActions = (assessment, limit) => (assessment.focusAreas ?? LIFECYCLE_STAGE_META[assessment.stage].focusAreas).slice(0, limit).map((focus, index) => ({
|
|
276
|
+
id: `fallback-${assessment.stage}-${index}`,
|
|
277
|
+
stage: assessment.stage,
|
|
278
|
+
title: `Advance ${focus}`,
|
|
279
|
+
description: `Identify one task that will improve "${focus}" this week.`,
|
|
280
|
+
priority: index + 1,
|
|
281
|
+
estimatedImpact: "low",
|
|
282
|
+
effortLevel: "s",
|
|
283
|
+
category: "product"
|
|
284
|
+
}));
|
|
285
|
+
// src/data/library-stage-map.ts
|
|
286
|
+
var libraryStageMap = [
|
|
287
|
+
{
|
|
288
|
+
stage: 0,
|
|
289
|
+
items: [
|
|
290
|
+
{
|
|
291
|
+
id: "@contractspec/lib.content-gen",
|
|
292
|
+
type: "library",
|
|
293
|
+
description: "Summarize interviews and synthesize IC insights."
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
id: "@contractspec/lib.presentation-runtime",
|
|
297
|
+
type: "library",
|
|
298
|
+
description: "Craft low-fi storyboards without custom code."
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
stage: 1,
|
|
304
|
+
items: [
|
|
305
|
+
{
|
|
306
|
+
id: "@contractspec/lib.progressive-delivery",
|
|
307
|
+
type: "library",
|
|
308
|
+
description: "Gate prototype features behind lightweight flags."
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
id: "@contractspec/module.lifecycle-core",
|
|
312
|
+
type: "module",
|
|
313
|
+
description: "Capture questionnaire signals for early scoring."
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
stage: 2,
|
|
319
|
+
items: [
|
|
320
|
+
{
|
|
321
|
+
id: "@contractspec/lib.analytics",
|
|
322
|
+
type: "library",
|
|
323
|
+
description: "Instrument activation paths + cohorts."
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
id: "@contractspec/lib.observability",
|
|
327
|
+
type: "library",
|
|
328
|
+
description: "Collect minimum viable traces and metrics."
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
stage: 3,
|
|
334
|
+
items: [
|
|
335
|
+
{
|
|
336
|
+
id: "@contractspec/lib.evolution",
|
|
337
|
+
type: "library",
|
|
338
|
+
description: "Auto-detect contract gaps and spec improvements."
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
id: "@contractspec/module.lifecycle-advisor",
|
|
342
|
+
type: "module",
|
|
343
|
+
description: "Generate retention-focused guidance at scale."
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
stage: 4,
|
|
349
|
+
items: [
|
|
350
|
+
{
|
|
351
|
+
id: "@contractspec/lib.growth",
|
|
352
|
+
type: "library",
|
|
353
|
+
description: "Experiment orchestration with guardrails."
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
id: "@contractspec/lib.resilience",
|
|
357
|
+
type: "library",
|
|
358
|
+
description: "Stabilize infra and SLOs as teams split."
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
stage: 5,
|
|
364
|
+
items: [
|
|
365
|
+
{
|
|
366
|
+
id: "@contractspec/lib.workflow-composer",
|
|
367
|
+
type: "library",
|
|
368
|
+
description: "Automate partner workflows and integrations."
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
id: "@contractspec/bundle.studio",
|
|
372
|
+
type: "bundle",
|
|
373
|
+
description: "Expose managed partner onboarding via Studio."
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
stage: 6,
|
|
379
|
+
items: [
|
|
380
|
+
{
|
|
381
|
+
id: "@contractspec/lib.cost-tracking",
|
|
382
|
+
type: "library",
|
|
383
|
+
description: "Model margin scenarios and reinvestment bets."
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
id: "@contractspec/lib.workflow-composer",
|
|
387
|
+
type: "library",
|
|
388
|
+
description: "Standardize renewal rituals and automation."
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
];
|
|
393
|
+
var library_stage_map_default = libraryStageMap;
|
|
394
|
+
|
|
395
|
+
// src/recommendations/library-recommender.ts
|
|
396
|
+
var LIBRARY_MAP = new Map(library_stage_map_default.map((entry) => [entry.stage, entry.items]));
|
|
397
|
+
|
|
398
|
+
class ContractSpecLibraryRecommender {
|
|
399
|
+
mapping;
|
|
400
|
+
constructor(overrides) {
|
|
401
|
+
this.mapping = overrides?.length ? new Map(overrides.map((entry) => [entry.stage, entry.items])) : LIBRARY_MAP;
|
|
402
|
+
}
|
|
403
|
+
recommend(stage, limit = 4) {
|
|
404
|
+
const items = this.mapping.get(stage);
|
|
405
|
+
if (!items?.length)
|
|
406
|
+
return [];
|
|
407
|
+
return items.slice(0, limit);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
// src/ceremony/ceremony-designer.ts
|
|
411
|
+
var CEREMONY_MAP = new Map(stage_playbooks_default.map((entry) => [
|
|
412
|
+
entry.stage,
|
|
413
|
+
entry.ceremony
|
|
414
|
+
]));
|
|
415
|
+
|
|
416
|
+
class LifecycleCeremonyDesigner {
|
|
417
|
+
ceremonies;
|
|
418
|
+
constructor(overrides) {
|
|
419
|
+
this.ceremonies = overrides?.length ? new Map(overrides.map((entry) => [entry.stage, entry.ceremony])) : CEREMONY_MAP;
|
|
420
|
+
}
|
|
421
|
+
design(stage) {
|
|
422
|
+
return this.ceremonies.get(stage);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
export {
|
|
426
|
+
LifecycleRecommendationEngine,
|
|
427
|
+
LifecycleCeremonyDesigner,
|
|
428
|
+
ContractSpecLibraryRecommender
|
|
429
|
+
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { LifecycleRecommendation
|
|
2
|
-
|
|
3
|
-
//#region src/ceremony/ceremony-designer.d.ts
|
|
1
|
+
import type { LifecycleRecommendation } from '@contractspec/lib.lifecycle';
|
|
2
|
+
import { LifecycleStage } from '@contractspec/lib.lifecycle';
|
|
4
3
|
type CeremonyConfig = NonNullable<LifecycleRecommendation['ceremony']>;
|
|
5
4
|
interface PlaybookCeremonyEntry {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
stage: LifecycleStage;
|
|
6
|
+
ceremony?: CeremonyConfig;
|
|
8
7
|
}
|
|
9
|
-
declare class LifecycleCeremonyDesigner {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export declare class LifecycleCeremonyDesigner {
|
|
9
|
+
private readonly ceremonies;
|
|
10
|
+
constructor(overrides?: PlaybookCeremonyEntry[]);
|
|
11
|
+
design(stage: LifecycleStage): CeremonyConfig | undefined;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
export { LifecycleCeremonyDesigner };
|
|
13
|
+
export {};
|
|
16
14
|
//# sourceMappingURL=ceremony-designer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ceremony-designer.d.ts","
|
|
1
|
+
{"version":3,"file":"ceremony-designer.d.ts","sourceRoot":"","sources":["../../src/ceremony/ceremony-designer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAG7D,KAAK,cAAc,GAAG,WAAW,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC,CAAC;AAEvE,UAAU,qBAAqB;IAC7B,KAAK,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AASD,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkD;gBAEjE,SAAS,CAAC,EAAE,qBAAqB,EAAE;IAM/C,MAAM,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,GAAG,SAAS;CAG1D"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
stage: LifecycleStage;
|
|
7
|
-
items: LibraryRecommendation[];
|
|
1
|
+
import type { LifecycleStage } from '@contractspec/lib.lifecycle';
|
|
2
|
+
import type { LibraryRecommendation } from '../recommendations/library-recommender';
|
|
3
|
+
export interface LibraryStageEntry {
|
|
4
|
+
stage: LifecycleStage;
|
|
5
|
+
items: LibraryRecommendation[];
|
|
8
6
|
}
|
|
9
|
-
|
|
10
|
-
export
|
|
7
|
+
declare const libraryStageMap: LibraryStageEntry[];
|
|
8
|
+
export default libraryStageMap;
|
|
11
9
|
//# sourceMappingURL=library-stage-map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library-stage-map.d.ts","
|
|
1
|
+
{"version":3,"file":"library-stage-map.d.ts","sourceRoot":"","sources":["../../src/data/library-stage-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAEpF,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,cAAc,CAAC;IACtB,KAAK,EAAE,qBAAqB,EAAE,CAAC;CAChC;AAED,QAAA,MAAM,eAAe,EAAE,iBAAiB,EA0GvC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { LifecycleAction, LifecycleRecommendation
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
ceremony?: LifecycleRecommendation['ceremony'];
|
|
1
|
+
import type { LifecycleAction, LifecycleRecommendation } from '@contractspec/lib.lifecycle';
|
|
2
|
+
import { LifecycleStage } from '@contractspec/lib.lifecycle';
|
|
3
|
+
export interface StagePlaybookData {
|
|
4
|
+
stage: LifecycleStage;
|
|
5
|
+
focusAreas: string[];
|
|
6
|
+
actions: LifecycleAction[];
|
|
7
|
+
ceremony?: LifecycleRecommendation['ceremony'];
|
|
9
8
|
}
|
|
10
|
-
|
|
11
|
-
export
|
|
9
|
+
declare const stagePlaybooks: StagePlaybookData[];
|
|
10
|
+
export default stagePlaybooks;
|
|
12
11
|
//# sourceMappingURL=stage-playbooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage-playbooks.d.ts","
|
|
1
|
+
{"version":3,"file":"stage-playbooks.d.ts","sourceRoot":"","sources":["../../src/data/stage-playbooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAC;CAChD;AAED,QAAA,MAAM,cAAc,EAAE,iBAAiB,EA8OtC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export * from './recommendations/recommendation-engine';
|
|
2
|
+
export * from './recommendations/library-recommender';
|
|
3
|
+
export * from './ceremony/ceremony-designer';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC"}
|