@lssm/example.lifecycle-cli 0.0.0-canary-20251217060834 โ 0.0.0-canary-20251217073102
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/.turbo/turbo-build$colon$bundle.log +202 -20
- package/.turbo/turbo-build.log +18 -21
- package/CHANGELOG.md +6 -5
- package/dist/bundles/lifecycle-managed/dist/agents/lifecycle-advisor-agent.js +70 -0
- package/dist/bundles/lifecycle-managed/dist/api/rest-handlers.js +22 -0
- package/dist/bundles/lifecycle-managed/dist/events/lifecycle-events.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/index.js +4 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/agent/agent-factory.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/agent/contract-spec-agent.js +14 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/agent/index.js +2 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/approval/index.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/approval/workflow.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/index.js +14 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/schema/index.js +2 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/schema/json-schema-to-zod.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/schema/schema-output.js +3 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/spec/spec.js +23 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/tools/index.js +4 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/tools/knowledge-tool.js +2 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/tools/mcp-client.js +2 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/tools/mcp-server.js +3 -0
- package/dist/bundles/lifecycle-managed/dist/libs/ai-agent/dist/tools/tool-adapter.js +2 -0
- package/dist/bundles/lifecycle-managed/dist/libs/analytics/dist/churn/index.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/analytics/dist/churn/predictor.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/analytics/dist/cohort/index.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/analytics/dist/cohort/tracker.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/analytics/dist/index.js +4 -0
- package/dist/bundles/lifecycle-managed/dist/libs/lifecycle/dist/index.js +4 -0
- package/dist/bundles/lifecycle-managed/dist/libs/lifecycle/dist/types/axes.js +28 -0
- package/dist/bundles/lifecycle-managed/dist/libs/lifecycle/dist/types/milestones.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/lifecycle/dist/types/signals.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/lifecycle/dist/types/stages.js +15 -0
- package/dist/bundles/lifecycle-managed/dist/libs/lifecycle/dist/utils/formatters.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/index.js +7 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/intent/detector.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/lifecycle/dist/index.js +4 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/lifecycle/dist/types/milestones.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/lifecycle/dist/types/signals.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/lifecycle/dist/types/stages.js +143 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/lifecycle/dist/utils/formatters.js +7 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/logging/index.js +38 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/metrics/index.js +20 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/pipeline/evolution-pipeline.js +2 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/pipeline/lifecycle-pipeline.js +73 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/tracing/index.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/tracing/middleware.js +2 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/ceremony/ceremony-designer.js +17 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/data/library-stage-map.js +90 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/data/stage-playbooks.js +240 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/index.js +3 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/libs/lifecycle/dist/index.js +4 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/libs/lifecycle/dist/types/milestones.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/libs/lifecycle/dist/types/signals.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/libs/lifecycle/dist/types/stages.js +143 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/libs/lifecycle/dist/utils/formatters.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/recommendations/library-recommender.js +19 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/recommendations/recommendation-engine.js +46 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/collectors/signal-collector.js +65 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/data/milestones-catalog.js +73 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/data/stage-weights.js +169 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/index.js +3 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/libs/lifecycle/dist/index.js +4 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/libs/lifecycle/dist/types/axes.js +28 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/libs/lifecycle/dist/types/milestones.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/libs/lifecycle/dist/types/signals.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/libs/lifecycle/dist/types/stages.js +143 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/libs/lifecycle/dist/utils/formatters.js +1 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/orchestrator/lifecycle-orchestrator.js +53 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/planning/milestone-planner.js +16 -0
- package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-core/dist/scoring/stage-scorer.js +64 -0
- package/dist/bundles/lifecycle-managed/dist/services/assessment-service.js +72 -0
- package/dist/demo.js +53 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/lifecycle-cli.docblock.js +31 -14
- package/dist/example.js +37 -1
- package/dist/index.js +5 -1
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/index.js +29 -0
- package/dist/libs/contracts/dist/docs/presentations.js +71 -0
- package/dist/libs/contracts/dist/docs/registry.js +44 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +80 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +357 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +79 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +84 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +45 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +40 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +69 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +62 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +155 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +101 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -0
- package/dist/libs/lifecycle/dist/index.js +5 -0
- package/dist/libs/lifecycle/dist/types/axes.js +28 -0
- package/dist/libs/lifecycle/dist/types/milestones.js +1 -0
- package/dist/libs/lifecycle/dist/types/signals.js +1 -0
- package/dist/libs/lifecycle/dist/types/stages.js +151 -0
- package/dist/libs/lifecycle/dist/utils/formatters.js +1 -0
- package/dist/libs/logger/dist/context.node.js +78 -0
- package/dist/libs/logger/dist/elysia-plugin.js +3 -0
- package/dist/libs/logger/dist/formatters.js +163 -0
- package/dist/libs/logger/dist/index.js +7 -0
- package/dist/libs/logger/dist/logger.node.js +189 -0
- package/dist/libs/logger/dist/timer.js +126 -0
- package/dist/libs/logger/dist/tracer.node.js +115 -0
- package/dist/libs/logger/dist/types.js +13 -0
- package/package.json +8 -7
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../types/stages.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./stages.js";
|
package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/lifecycle/dist/types/signals.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./stages.js";
|
package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/lifecycle/dist/types/stages.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
//#region ../../bundles/lifecycle-managed/dist/libs/observability/dist/lifecycle/dist/types/stages.js
|
|
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
|
+
LifecycleStage.Exploration, LifecycleStage.ProblemSolutionFit, LifecycleStage.MvpEarlyTraction, LifecycleStage.ProductMarketFit, LifecycleStage.GrowthScaleUp, LifecycleStage.ExpansionPlatform, LifecycleStage.MaturityRenewal;
|
|
13
|
+
const LIFECYCLE_STAGE_META = {
|
|
14
|
+
[LifecycleStage.Exploration]: {
|
|
15
|
+
id: LifecycleStage.Exploration,
|
|
16
|
+
order: 0,
|
|
17
|
+
slug: "exploration",
|
|
18
|
+
name: "Exploration / Ideation",
|
|
19
|
+
question: "Is there a problem worth my time?",
|
|
20
|
+
signals: [
|
|
21
|
+
"20+ discovery interviews",
|
|
22
|
+
"Clear problem statement",
|
|
23
|
+
"Named ICP"
|
|
24
|
+
],
|
|
25
|
+
traps: ["Branding before discovery", "Premature tooling decisions"],
|
|
26
|
+
focusAreas: [
|
|
27
|
+
"Customer discovery",
|
|
28
|
+
"Problem definition",
|
|
29
|
+
"Segment clarity"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
[LifecycleStage.ProblemSolutionFit]: {
|
|
33
|
+
id: LifecycleStage.ProblemSolutionFit,
|
|
34
|
+
order: 1,
|
|
35
|
+
slug: "problem-solution-fit",
|
|
36
|
+
name: "ProblemโSolution Fit",
|
|
37
|
+
question: "Do people care enough about this solution?",
|
|
38
|
+
signals: [
|
|
39
|
+
"Prototype reuse",
|
|
40
|
+
"Referral energy",
|
|
41
|
+
"Pre-pay interest"
|
|
42
|
+
],
|
|
43
|
+
traps: ["โMarket is hugeโ without users", "Skipping qualitative loops"],
|
|
44
|
+
focusAreas: [
|
|
45
|
+
"Solution hypothesis",
|
|
46
|
+
"Value messaging",
|
|
47
|
+
"Feedback capture"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
[LifecycleStage.MvpEarlyTraction]: {
|
|
51
|
+
id: LifecycleStage.MvpEarlyTraction,
|
|
52
|
+
order: 2,
|
|
53
|
+
slug: "mvp-early-traction",
|
|
54
|
+
name: "MVP & Early Traction",
|
|
55
|
+
question: "Can we get real usage and learn fast?",
|
|
56
|
+
signals: [
|
|
57
|
+
"20โ50 named active users",
|
|
58
|
+
"Weekly releases",
|
|
59
|
+
"Noisy feedback"
|
|
60
|
+
],
|
|
61
|
+
traps: ["Overbuilt infra for 10 users", "Undefined retention metric"],
|
|
62
|
+
focusAreas: [
|
|
63
|
+
"Activation",
|
|
64
|
+
"Cohort tracking",
|
|
65
|
+
"Feedback rituals"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
[LifecycleStage.ProductMarketFit]: {
|
|
69
|
+
id: LifecycleStage.ProductMarketFit,
|
|
70
|
+
order: 3,
|
|
71
|
+
slug: "product-market-fit",
|
|
72
|
+
name: "ProductโMarket Fit",
|
|
73
|
+
question: "Is this pulling us forward?",
|
|
74
|
+
signals: [
|
|
75
|
+
"Retention without heroics",
|
|
76
|
+
"Organic word-of-mouth",
|
|
77
|
+
"Value stories"
|
|
78
|
+
],
|
|
79
|
+
traps: ["Hero growth that does not scale", "Ignoring churn signals"],
|
|
80
|
+
focusAreas: [
|
|
81
|
+
"Retention",
|
|
82
|
+
"Reliability",
|
|
83
|
+
"ICP clarity"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
[LifecycleStage.GrowthScaleUp]: {
|
|
87
|
+
id: LifecycleStage.GrowthScaleUp,
|
|
88
|
+
order: 4,
|
|
89
|
+
slug: "growth-scale-up",
|
|
90
|
+
name: "Growth / Scale-up",
|
|
91
|
+
question: "Can we grow this repeatably?",
|
|
92
|
+
signals: [
|
|
93
|
+
"Predictable channels",
|
|
94
|
+
"Specialized hires",
|
|
95
|
+
"Unit economics on track"
|
|
96
|
+
],
|
|
97
|
+
traps: ["Paid spend masking retention gaps", "Infra debt blocking launches"],
|
|
98
|
+
focusAreas: [
|
|
99
|
+
"Ops systems",
|
|
100
|
+
"Growth loops",
|
|
101
|
+
"Reliability engineering"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
[LifecycleStage.ExpansionPlatform]: {
|
|
105
|
+
id: LifecycleStage.ExpansionPlatform,
|
|
106
|
+
order: 5,
|
|
107
|
+
slug: "expansion-platform",
|
|
108
|
+
name: "Expansion / Platform",
|
|
109
|
+
question: "What is the next growth curve?",
|
|
110
|
+
signals: [
|
|
111
|
+
"Stable core metrics",
|
|
112
|
+
"Partner/API demand",
|
|
113
|
+
"Ecosystem pull"
|
|
114
|
+
],
|
|
115
|
+
traps: ["Platform theater before wedge is solid"],
|
|
116
|
+
focusAreas: [
|
|
117
|
+
"Partnerships",
|
|
118
|
+
"APIs",
|
|
119
|
+
"New market validation"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
[LifecycleStage.MaturityRenewal]: {
|
|
123
|
+
id: LifecycleStage.MaturityRenewal,
|
|
124
|
+
order: 6,
|
|
125
|
+
slug: "maturity-renewal",
|
|
126
|
+
name: "Maturity / Renewal",
|
|
127
|
+
question: "Optimize, reinvent, or sunset?",
|
|
128
|
+
signals: [
|
|
129
|
+
"Margin focus",
|
|
130
|
+
"Portfolio bets",
|
|
131
|
+
"Narrative refresh"
|
|
132
|
+
],
|
|
133
|
+
traps: ["Assuming past success is enough"],
|
|
134
|
+
focusAreas: [
|
|
135
|
+
"Cost optimization",
|
|
136
|
+
"Reinvention bets",
|
|
137
|
+
"Sunset planning"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
//#endregion
|
|
143
|
+
export { LIFECYCLE_STAGE_META };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LIFECYCLE_STAGE_META } from "../types/stages.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../bundles/lifecycle-managed/dist/libs/observability/dist/lifecycle/dist/utils/formatters.js
|
|
4
|
+
const getStageLabel = (stage) => LIFECYCLE_STAGE_META[stage].name;
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { getStageLabel };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { context, trace } from "@opentelemetry/api";
|
|
2
|
+
|
|
3
|
+
//#region ../../bundles/lifecycle-managed/dist/libs/observability/dist/logging/index.js
|
|
4
|
+
var Logger = class {
|
|
5
|
+
constructor(serviceName) {
|
|
6
|
+
this.serviceName = serviceName;
|
|
7
|
+
}
|
|
8
|
+
log(level, message, meta = {}) {
|
|
9
|
+
const span = trace.getSpan(context.active());
|
|
10
|
+
const traceId = span?.spanContext().traceId;
|
|
11
|
+
const spanId = span?.spanContext().spanId;
|
|
12
|
+
const entry = {
|
|
13
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
14
|
+
service: this.serviceName,
|
|
15
|
+
level,
|
|
16
|
+
message,
|
|
17
|
+
traceId,
|
|
18
|
+
spanId,
|
|
19
|
+
...meta
|
|
20
|
+
};
|
|
21
|
+
console.log(JSON.stringify(entry));
|
|
22
|
+
}
|
|
23
|
+
debug(message, meta) {
|
|
24
|
+
this.log("debug", message, meta);
|
|
25
|
+
}
|
|
26
|
+
info(message, meta) {
|
|
27
|
+
this.log("info", message, meta);
|
|
28
|
+
}
|
|
29
|
+
warn(message, meta) {
|
|
30
|
+
this.log("warn", message, meta);
|
|
31
|
+
}
|
|
32
|
+
error(message, meta) {
|
|
33
|
+
this.log("error", message, meta);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
new Logger(process.env.OTEL_SERVICE_NAME || "unknown-service");
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { metrics } from "@opentelemetry/api";
|
|
2
|
+
|
|
3
|
+
//#region ../../bundles/lifecycle-managed/dist/libs/observability/dist/metrics/index.js
|
|
4
|
+
const DEFAULT_METER_NAME = "@lssm/lib.observability";
|
|
5
|
+
function getMeter(name = DEFAULT_METER_NAME) {
|
|
6
|
+
return metrics.getMeter(name);
|
|
7
|
+
}
|
|
8
|
+
function createCounter(name, description, meterName) {
|
|
9
|
+
return getMeter(meterName).createCounter(name, { description });
|
|
10
|
+
}
|
|
11
|
+
function createUpDownCounter(name, description, meterName) {
|
|
12
|
+
return getMeter(meterName).createUpDownCounter(name, { description });
|
|
13
|
+
}
|
|
14
|
+
function createHistogram(name, description, meterName) {
|
|
15
|
+
return getMeter(meterName).createHistogram(name, { description });
|
|
16
|
+
}
|
|
17
|
+
createCounter("http_requests_total", "Total HTTP requests"), createHistogram("http_request_duration_seconds", "HTTP request duration"), createCounter("operation_errors_total", "Total operation errors"), createHistogram("workflow_duration_seconds", "Workflow execution duration");
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { createCounter, createHistogram, createUpDownCounter };
|
package/dist/bundles/lifecycle-managed/dist/libs/observability/dist/pipeline/lifecycle-pipeline.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { createCounter, createHistogram, createUpDownCounter } from "../metrics/index.js";
|
|
2
|
+
import { getStageLabel } from "../lifecycle/dist/utils/formatters.js";
|
|
3
|
+
import "../lifecycle/dist/index.js";
|
|
4
|
+
import { EventEmitter } from "node:events";
|
|
5
|
+
|
|
6
|
+
//#region ../../bundles/lifecycle-managed/dist/libs/observability/dist/pipeline/lifecycle-pipeline.js
|
|
7
|
+
var LifecycleKpiPipeline = class {
|
|
8
|
+
assessmentCounter;
|
|
9
|
+
confidenceHistogram;
|
|
10
|
+
stageUpDownCounter;
|
|
11
|
+
emitter;
|
|
12
|
+
lowConfidenceThreshold;
|
|
13
|
+
currentStageByTenant = /* @__PURE__ */ new Map();
|
|
14
|
+
constructor(options = {}) {
|
|
15
|
+
const meterName = options.meterName ?? "@lssm/lib.lifecycle-kpi";
|
|
16
|
+
this.assessmentCounter = createCounter("lifecycle_assessments_total", "Total lifecycle assessments", meterName);
|
|
17
|
+
this.confidenceHistogram = createHistogram("lifecycle_assessment_confidence", "Lifecycle assessment confidence distribution", meterName);
|
|
18
|
+
this.stageUpDownCounter = createUpDownCounter("lifecycle_stage_tenants", "Current tenants per lifecycle stage", meterName);
|
|
19
|
+
this.emitter = options.emitter ?? new EventEmitter();
|
|
20
|
+
this.lowConfidenceThreshold = options.lowConfidenceThreshold ?? .4;
|
|
21
|
+
}
|
|
22
|
+
recordAssessment(assessment, tenantId) {
|
|
23
|
+
const attributes = {
|
|
24
|
+
stage: getStageLabel(assessment.stage),
|
|
25
|
+
tenantId
|
|
26
|
+
};
|
|
27
|
+
this.assessmentCounter.add(1, attributes);
|
|
28
|
+
this.confidenceHistogram.record(assessment.confidence, attributes);
|
|
29
|
+
this.ensureStageCounters(assessment.stage, tenantId);
|
|
30
|
+
this.emitter.emit("event", {
|
|
31
|
+
type: "assessment.recorded",
|
|
32
|
+
payload: {
|
|
33
|
+
tenantId,
|
|
34
|
+
stage: assessment.stage
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
if (assessment.confidence < this.lowConfidenceThreshold) this.emitter.emit("event", {
|
|
38
|
+
type: "confidence.low",
|
|
39
|
+
payload: {
|
|
40
|
+
tenantId,
|
|
41
|
+
confidence: assessment.confidence
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
on(listener) {
|
|
46
|
+
this.emitter.on("event", listener);
|
|
47
|
+
}
|
|
48
|
+
ensureStageCounters(stage, tenantId) {
|
|
49
|
+
if (!tenantId) return;
|
|
50
|
+
const previous = this.currentStageByTenant.get(tenantId);
|
|
51
|
+
if (previous === stage) return;
|
|
52
|
+
if (previous !== void 0) this.stageUpDownCounter.add(-1, {
|
|
53
|
+
stage: getStageLabel(previous),
|
|
54
|
+
tenantId
|
|
55
|
+
});
|
|
56
|
+
this.stageUpDownCounter.add(1, {
|
|
57
|
+
stage: getStageLabel(stage),
|
|
58
|
+
tenantId
|
|
59
|
+
});
|
|
60
|
+
this.currentStageByTenant.set(tenantId, stage);
|
|
61
|
+
this.emitter.emit("event", {
|
|
62
|
+
type: "stage.changed",
|
|
63
|
+
payload: {
|
|
64
|
+
tenantId,
|
|
65
|
+
previousStage: previous,
|
|
66
|
+
nextStage: stage
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
//#endregion
|
|
73
|
+
export { LifecycleKpiPipeline };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { trace } from "@opentelemetry/api";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "../libs/lifecycle/dist/index.js";
|
|
2
|
+
import { stage_playbooks_default } from "../data/stage-playbooks.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/ceremony/ceremony-designer.js
|
|
5
|
+
const CEREMONY_MAP = new Map(stage_playbooks_default.map((entry) => [entry.stage, entry.ceremony]));
|
|
6
|
+
var LifecycleCeremonyDesigner = class {
|
|
7
|
+
ceremonies;
|
|
8
|
+
constructor(overrides) {
|
|
9
|
+
this.ceremonies = overrides?.length ? new Map(overrides.map((entry) => [entry.stage, entry.ceremony])) : CEREMONY_MAP;
|
|
10
|
+
}
|
|
11
|
+
design(stage) {
|
|
12
|
+
return this.ceremonies.get(stage);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { LifecycleCeremonyDesigner };
|
package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/data/library-stage-map.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
//#region ../../bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/data/library-stage-map.js
|
|
2
|
+
var library_stage_map_default = [
|
|
3
|
+
{
|
|
4
|
+
stage: 0,
|
|
5
|
+
items: [{
|
|
6
|
+
id: "@lssm/lib.content-gen",
|
|
7
|
+
type: "library",
|
|
8
|
+
description: "Summarize interviews and synthesize IC insights."
|
|
9
|
+
}, {
|
|
10
|
+
id: "@lssm/lib.presentation-runtime",
|
|
11
|
+
type: "library",
|
|
12
|
+
description: "Craft low-fi storyboards without custom code."
|
|
13
|
+
}]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
stage: 1,
|
|
17
|
+
items: [{
|
|
18
|
+
id: "@lssm/lib.progressive-delivery",
|
|
19
|
+
type: "library",
|
|
20
|
+
description: "Gate prototype features behind lightweight flags."
|
|
21
|
+
}, {
|
|
22
|
+
id: "@lssm/module.lifecycle-core",
|
|
23
|
+
type: "module",
|
|
24
|
+
description: "Capture questionnaire signals for early scoring."
|
|
25
|
+
}]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
stage: 2,
|
|
29
|
+
items: [{
|
|
30
|
+
id: "@lssm/lib.analytics",
|
|
31
|
+
type: "library",
|
|
32
|
+
description: "Instrument activation paths + cohorts."
|
|
33
|
+
}, {
|
|
34
|
+
id: "@lssm/lib.observability",
|
|
35
|
+
type: "library",
|
|
36
|
+
description: "Collect minimum viable traces and metrics."
|
|
37
|
+
}]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
stage: 3,
|
|
41
|
+
items: [{
|
|
42
|
+
id: "@lssm/lib.evolution",
|
|
43
|
+
type: "library",
|
|
44
|
+
description: "Auto-detect contract gaps and spec improvements."
|
|
45
|
+
}, {
|
|
46
|
+
id: "@lssm/module.lifecycle-advisor",
|
|
47
|
+
type: "module",
|
|
48
|
+
description: "Generate retention-focused guidance at scale."
|
|
49
|
+
}]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
stage: 4,
|
|
53
|
+
items: [{
|
|
54
|
+
id: "@lssm/lib.growth",
|
|
55
|
+
type: "library",
|
|
56
|
+
description: "Experiment orchestration with guardrails."
|
|
57
|
+
}, {
|
|
58
|
+
id: "@lssm/lib.resilience",
|
|
59
|
+
type: "library",
|
|
60
|
+
description: "Stabilize infra and SLOs as teams split."
|
|
61
|
+
}]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
stage: 5,
|
|
65
|
+
items: [{
|
|
66
|
+
id: "@lssm/lib.workflow-composer",
|
|
67
|
+
type: "library",
|
|
68
|
+
description: "Automate partner workflows and integrations."
|
|
69
|
+
}, {
|
|
70
|
+
id: "@lssm/bundle.contractspec-studio",
|
|
71
|
+
type: "bundle",
|
|
72
|
+
description: "Expose managed partner onboarding via Studio."
|
|
73
|
+
}]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
stage: 6,
|
|
77
|
+
items: [{
|
|
78
|
+
id: "@lssm/lib.cost-tracking",
|
|
79
|
+
type: "library",
|
|
80
|
+
description: "Model margin scenarios and reinvestment bets."
|
|
81
|
+
}, {
|
|
82
|
+
id: "@lssm/lib.workflow-composer",
|
|
83
|
+
type: "library",
|
|
84
|
+
description: "Standardize renewal rituals and automation."
|
|
85
|
+
}]
|
|
86
|
+
}
|
|
87
|
+
];
|
|
88
|
+
|
|
89
|
+
//#endregion
|
|
90
|
+
export { library_stage_map_default };
|
package/dist/bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/data/stage-playbooks.js
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { LifecycleStage } from "../libs/lifecycle/dist/types/stages.js";
|
|
2
|
+
import "../libs/lifecycle/dist/index.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../bundles/lifecycle-managed/dist/modules/lifecycle-advisor/dist/data/stage-playbooks.js
|
|
5
|
+
var stage_playbooks_default = [
|
|
6
|
+
{
|
|
7
|
+
stage: LifecycleStage.Exploration,
|
|
8
|
+
focusAreas: [
|
|
9
|
+
"Discovery",
|
|
10
|
+
"Problem clarity",
|
|
11
|
+
"Persona"
|
|
12
|
+
],
|
|
13
|
+
actions: [{
|
|
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: ["@lssm/lib.content-gen"]
|
|
23
|
+
}, {
|
|
24
|
+
id: "stage0-problem-story",
|
|
25
|
+
stage: LifecycleStage.Exploration,
|
|
26
|
+
title: "Write the problem story",
|
|
27
|
+
description: "Summarize the pain in one paragraph you can repeat to partners.",
|
|
28
|
+
priority: 2,
|
|
29
|
+
estimatedImpact: "low",
|
|
30
|
+
effortLevel: "s",
|
|
31
|
+
category: "product"
|
|
32
|
+
}],
|
|
33
|
+
ceremony: {
|
|
34
|
+
title: "Discovery Spark",
|
|
35
|
+
copy: "Share the sharpest pain quote with your crew. Frame it, celebrate focus.",
|
|
36
|
+
cues: ["๐", "๐๏ธ"]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
41
|
+
focusAreas: [
|
|
42
|
+
"Prototype",
|
|
43
|
+
"Feedback",
|
|
44
|
+
"Value proof"
|
|
45
|
+
],
|
|
46
|
+
actions: [{
|
|
47
|
+
id: "stage1-demo-loop",
|
|
48
|
+
stage: LifecycleStage.ProblemSolutionFit,
|
|
49
|
+
title: "Prototype feedback loop",
|
|
50
|
+
description: "Ship a low-fidelity prototype and collect 3 rounds of reactions.",
|
|
51
|
+
priority: 1,
|
|
52
|
+
estimatedImpact: "medium",
|
|
53
|
+
effortLevel: "m",
|
|
54
|
+
category: "product",
|
|
55
|
+
recommendedLibraries: ["@lssm/lib.progressive-delivery"]
|
|
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
|
+
ceremony: {
|
|
67
|
+
title: "Solution Resonance",
|
|
68
|
+
copy: "Record a short screen share telling the before/after story to your future self.",
|
|
69
|
+
cues: ["๐ค", "โจ"]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
74
|
+
focusAreas: [
|
|
75
|
+
"Activation",
|
|
76
|
+
"Telemetry",
|
|
77
|
+
"Feedback"
|
|
78
|
+
],
|
|
79
|
+
actions: [{
|
|
80
|
+
id: "stage2-activation",
|
|
81
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
82
|
+
title: "Define activation checklist",
|
|
83
|
+
description: "Document the 3 steps users must finish to get value.",
|
|
84
|
+
priority: 1,
|
|
85
|
+
estimatedImpact: "high",
|
|
86
|
+
effortLevel: "m",
|
|
87
|
+
category: "operations",
|
|
88
|
+
recommendedLibraries: ["@lssm/lib.analytics", "@lssm/lib.observability"]
|
|
89
|
+
}, {
|
|
90
|
+
id: "stage2-weekly-sync",
|
|
91
|
+
stage: LifecycleStage.MvpEarlyTraction,
|
|
92
|
+
title: "Weekly user sync",
|
|
93
|
+
description: "Host a standing call with your 5 most active testers.",
|
|
94
|
+
priority: 2,
|
|
95
|
+
estimatedImpact: "medium",
|
|
96
|
+
effortLevel: "m",
|
|
97
|
+
category: "company"
|
|
98
|
+
}],
|
|
99
|
+
ceremony: {
|
|
100
|
+
title: "Traction Toast",
|
|
101
|
+
copy: "Toast your first 20 real usersโsay their names, tell them why they matter.",
|
|
102
|
+
cues: ["๐ฅ", "๐ฃ"]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
107
|
+
focusAreas: [
|
|
108
|
+
"Retention",
|
|
109
|
+
"Reliability",
|
|
110
|
+
"Story"
|
|
111
|
+
],
|
|
112
|
+
actions: [{
|
|
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: ["@lssm/lib.evolution"]
|
|
122
|
+
}, {
|
|
123
|
+
id: "stage3-incident-review",
|
|
124
|
+
stage: LifecycleStage.ProductMarketFit,
|
|
125
|
+
title: "Lightweight incident review",
|
|
126
|
+
description: "Review the last 2 reliability hiccups and capture fixes.",
|
|
127
|
+
priority: 2,
|
|
128
|
+
estimatedImpact: "medium",
|
|
129
|
+
effortLevel: "s",
|
|
130
|
+
category: "operations"
|
|
131
|
+
}],
|
|
132
|
+
ceremony: {
|
|
133
|
+
title: "PMF Signal Fire",
|
|
134
|
+
copy: "Write a letter to your future Series A self describing the pull you feel today.",
|
|
135
|
+
cues: ["๐ฅ", "๐ฌ"]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
140
|
+
focusAreas: [
|
|
141
|
+
"Systems",
|
|
142
|
+
"Growth loops",
|
|
143
|
+
"Specialization"
|
|
144
|
+
],
|
|
145
|
+
actions: [{
|
|
146
|
+
id: "stage4-growth-loop",
|
|
147
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
148
|
+
title: "Codify a growth loop",
|
|
149
|
+
description: "Choose one loop (SEO, referrals, outbound) and document owners + inputs.",
|
|
150
|
+
priority: 1,
|
|
151
|
+
estimatedImpact: "high",
|
|
152
|
+
effortLevel: "l",
|
|
153
|
+
category: "growth",
|
|
154
|
+
recommendedLibraries: ["@lssm/lib.growth", "@lssm/lib.resilience"]
|
|
155
|
+
}, {
|
|
156
|
+
id: "stage4-hiring-map",
|
|
157
|
+
stage: LifecycleStage.GrowthScaleUp,
|
|
158
|
+
title: "Create hiring map",
|
|
159
|
+
description: "List specialized roles you need in the next 2 quarters.",
|
|
160
|
+
priority: 2,
|
|
161
|
+
estimatedImpact: "medium",
|
|
162
|
+
effortLevel: "m",
|
|
163
|
+
category: "company"
|
|
164
|
+
}],
|
|
165
|
+
ceremony: {
|
|
166
|
+
title: "Scale Systems",
|
|
167
|
+
copy: "Invite the team to map the journey from first user to repeatable machine.",
|
|
168
|
+
cues: ["๐บ๏ธ", "โ๏ธ"]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
173
|
+
focusAreas: [
|
|
174
|
+
"Partners",
|
|
175
|
+
"APIs",
|
|
176
|
+
"Expansion bets"
|
|
177
|
+
],
|
|
178
|
+
actions: [{
|
|
179
|
+
id: "stage5-partner-brief",
|
|
180
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
181
|
+
title: "Partner readiness brief",
|
|
182
|
+
description: "Document partner types, value props, and onboarding steps.",
|
|
183
|
+
priority: 1,
|
|
184
|
+
estimatedImpact: "high",
|
|
185
|
+
effortLevel: "m",
|
|
186
|
+
category: "product",
|
|
187
|
+
recommendedLibraries: ["@lssm/lib.workflow-composer"]
|
|
188
|
+
}, {
|
|
189
|
+
id: "stage5-experiment-portfolio",
|
|
190
|
+
stage: LifecycleStage.ExpansionPlatform,
|
|
191
|
+
title: "Expansion experiment portfolio",
|
|
192
|
+
description: "List the top 3 markets or product lines with owners.",
|
|
193
|
+
priority: 2,
|
|
194
|
+
estimatedImpact: "medium",
|
|
195
|
+
effortLevel: "m",
|
|
196
|
+
category: "growth"
|
|
197
|
+
}],
|
|
198
|
+
ceremony: {
|
|
199
|
+
title: "Platform Threshold",
|
|
200
|
+
copy: "Host a partner circleโinvite allies to share what they need from your platform.",
|
|
201
|
+
cues: ["๐ค", "๐"]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
206
|
+
focusAreas: [
|
|
207
|
+
"Optimization",
|
|
208
|
+
"Renewal",
|
|
209
|
+
"Portfolio"
|
|
210
|
+
],
|
|
211
|
+
actions: [{
|
|
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: ["@lssm/lib.cost-tracking"]
|
|
221
|
+
}, {
|
|
222
|
+
id: "stage6-renewal-bet",
|
|
223
|
+
stage: LifecycleStage.MaturityRenewal,
|
|
224
|
+
title: "Define the renewal bet",
|
|
225
|
+
description: "Choose one reinvention or sunset track and set checkpoints.",
|
|
226
|
+
priority: 2,
|
|
227
|
+
estimatedImpact: "medium",
|
|
228
|
+
effortLevel: "m",
|
|
229
|
+
category: "product"
|
|
230
|
+
}],
|
|
231
|
+
ceremony: {
|
|
232
|
+
title: "Renewal Summit",
|
|
233
|
+
copy: "Pause to honor what got you here, then commit publicly to the next reinvention.",
|
|
234
|
+
cues: ["๐๏ธ", "๐"]
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
];
|
|
238
|
+
|
|
239
|
+
//#endregion
|
|
240
|
+
export { stage_playbooks_default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./stages.js";
|