@lynx-seo/engine 3.3.1 → 3.3.2

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.
Files changed (39) hide show
  1. package/README.md +63 -0
  2. package/dist/analytics/app-store-optimization-engine.d.ts +96 -0
  3. package/dist/analytics/behavioral-psychology-persuasion-engine.d.ts +48 -0
  4. package/dist/analytics/co-marketing-partner-scoring-engine.d.ts +58 -0
  5. package/dist/analytics/cold-email-outreach-engine.d.ts +58 -0
  6. package/dist/analytics/competitor-intelligence-radar-engine.d.ts +65 -0
  7. package/dist/analytics/customer-voice-research-voc-engine.d.ts +70 -0
  8. package/dist/analytics/directory-submissions-auditor-engine.d.ts +62 -0
  9. package/dist/analytics/earned-media-pr-pitch-engine.d.ts +56 -0
  10. package/dist/analytics/engineering-as-marketing-free-tool-engine.d.ts +67 -0
  11. package/dist/analytics/ethical-popup-overlay-engine.d.ts +59 -0
  12. package/dist/analytics/grand-slam-offer-engine.d.ts +68 -0
  13. package/dist/analytics/in-app-paywall-gate-engine.d.ts +69 -0
  14. package/dist/analytics/influencer-creator-campaign-engine.d.ts +67 -0
  15. package/dist/analytics/landing-page-hero-copy-engine.d.ts +49 -0
  16. package/dist/analytics/lead-capture-form-optimization-engine.d.ts +57 -0
  17. package/dist/analytics/lead-magnet-architecture-engine.d.ts +40 -0
  18. package/dist/analytics/product-hunt-launch-war-room-engine.d.ts +57 -0
  19. package/dist/analytics/recurring-marketing-loop-engine.d.ts +73 -0
  20. package/dist/analytics/revops-pipeline-scoring-engine.d.ts +58 -0
  21. package/dist/analytics/saas-pricing-packaging-engine.d.ts +55 -0
  22. package/dist/analytics/saas-value-metric-pricing-engine.d.ts +64 -0
  23. package/dist/analytics/server-side-tracking-capi-engine.d.ts +99 -0
  24. package/dist/analytics/signal-prospecting-qualification-engine.d.ts +54 -0
  25. package/dist/analytics/sms-marketing-compliance-engine.d.ts +62 -0
  26. package/dist/analytics/statistical-experiment-ab-testing-engine.d.ts +103 -0
  27. package/dist/analytics/subscription-churn-prevention-engine.d.ts +91 -0
  28. package/dist/analytics/user-onboarding-activation-engine.d.ts +68 -0
  29. package/dist/cro-landing-page-auditor.d.ts +3 -3
  30. package/dist/http-middleware.d.ts +121 -0
  31. package/dist/index.d.ts +39 -0
  32. package/dist/index.js +4706 -22
  33. package/dist/index.mjs +4706 -22
  34. package/dist/matrix-engine.d.ts +3 -0
  35. package/dist/mcp-seo-server.js +7 -1
  36. package/dist/plugins/two-factor-auth/index.d.ts +3 -2
  37. package/dist/sample-dataset.d.ts +15 -0
  38. package/dist/types.d.ts +3 -0
  39. package/package.json +1 -1
@@ -0,0 +1,59 @@
1
+ /**
2
+ * @file ethical-popup-overlay-engine.ts
3
+ * @description Moteur d'optimisation d'overlays, modales et popups éthiques (Exit-Intent, Scroll, Timer).
4
+ * Audite la conformité stricte aux sanctions Google Interstitials Mobile 2026, éradique le confirm-shaming,
5
+ * applique un frequency capping intelligent et modélise le gain de conversion sans dégrader le SEO ni l'UX.
6
+ * Inspiré de la skill popups et des règles Google Search Central sur les interstitiels intrusifs.
7
+ */
8
+ export type PopupTriggerType = 'exit_intent' | 'scroll_depth' | 'time_delay' | 'inactivity';
9
+ export type PopupOverlayGoal = 'lead_magnet' | 'email_newsletter' | 'discount_offer' | 'exit_survey' | 'feature_announcement';
10
+ export type PopupDeviceTarget = 'desktop_and_mobile' | 'desktop_only' | 'mobile_only';
11
+ export interface EthicalPopupInput {
12
+ campaignName: string;
13
+ overlayGoal: PopupOverlayGoal;
14
+ triggerType: PopupTriggerType;
15
+ deviceTarget?: PopupDeviceTarget;
16
+ triggerDelaySeconds?: number;
17
+ triggerScrollDepthPercent?: number;
18
+ frequencyCappingDays?: number;
19
+ monthlyVisitorsExposed?: number;
20
+ currentConversionRatePercent?: number;
21
+ headlineText: string;
22
+ dismissText: string;
23
+ hasMobileFullscreenModal?: boolean;
24
+ }
25
+ export interface EthicalPopupComplianceAudit {
26
+ isGoogleMobilePenaltyRisk: boolean;
27
+ isConfirmShamingDetected: boolean;
28
+ isAggressiveTimingDetected: boolean;
29
+ overallEthicsScore: number;
30
+ auditIssues: string[];
31
+ correctiveActions: string[];
32
+ }
33
+ export interface EthicalPopupConversionImpact {
34
+ monthlyImpressions: number;
35
+ optimizedConversionRatePercent: number;
36
+ estimatedMonthlyConversions: number;
37
+ incrementalConversionsMonthly: number;
38
+ estimatedLeadValueLiftUsd: number;
39
+ }
40
+ export interface EthicalPopupCodeTemplate {
41
+ reactComponentSnippet: string;
42
+ eventListenerLogic: string;
43
+ recommendedLayout: 'center_modal' | 'bottom_slide_in' | 'top_banner';
44
+ }
45
+ export interface EthicalPopupReport {
46
+ campaignName: string;
47
+ overlayGoal: PopupOverlayGoal;
48
+ triggerType: PopupTriggerType;
49
+ audit: EthicalPopupComplianceAudit;
50
+ impact: EthicalPopupConversionImpact;
51
+ template: EthicalPopupCodeTemplate;
52
+ executiveSummary: string;
53
+ }
54
+ export declare class EthicalPopupOverlayEngine {
55
+ /**
56
+ * Analyse et génère une configuration d'overlay conforme, éthique et à haute conversion.
57
+ */
58
+ static evaluate(input: EthicalPopupInput): EthicalPopupReport;
59
+ }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Grand Slam Offer & Value Equation Engine
3
+ *
4
+ * Implémente le framework d'offre irrésistible ($100M Offers):
5
+ * - Équation de Valeur Perçue = (Dream Outcome x Perceived Likelihood) / (Time Delay x Effort & Sacrifice)
6
+ * - Empilement de Bonus résolvant les objections séquentielles
7
+ * - 5 Archétypes d'inversion du risque (Garanties conditionnelles, inconditionnelles, au résultat)
8
+ * - Leviers de Rareté & Urgence
9
+ *
10
+ * Déterministe, sans dépendance externe.
11
+ */
12
+ export interface ValueEquationFactors {
13
+ dreamOutcomeScore: number;
14
+ perceivedLikelihoodScore: number;
15
+ timeDelayScore: number;
16
+ effortSacrificeScore: number;
17
+ }
18
+ export interface OfferBonusItem {
19
+ id: string;
20
+ title: string;
21
+ addressedObjection: string;
22
+ perceivedRetailValueEur: number;
23
+ format: "template" | "concierge_setup" | "audit_session" | "swipe_file" | "software_addon" | "warranty";
24
+ }
25
+ export type RiskReversalType = "unconditional_30d" | "conditional_roi_performance" | "service_until_success" | "anti_guarantee_exclusive" | "double_money_back";
26
+ export interface GrandSlamOfferConfig {
27
+ coreOfferName: string;
28
+ targetAudience: string;
29
+ corePriceEur: number;
30
+ paymentInterval: "one_off" | "monthly" | "annual";
31
+ factors: ValueEquationFactors;
32
+ bonuses: OfferBonusItem[];
33
+ riskReversalType: RiskReversalType;
34
+ scarcityCohortCap?: number;
35
+ }
36
+ export interface ValueEquationResult {
37
+ rawScore: number;
38
+ normalizedIndex100: number;
39
+ level: "Commodity / Faible" | "Correct / Standard" | "Haute Attractivité" | "Offre Irrésistible (Grand Slam)";
40
+ diagnosis: string;
41
+ improvementRecommendations: string[];
42
+ }
43
+ export interface GuaranteeDetails {
44
+ type: RiskReversalType;
45
+ label: string;
46
+ headline: string;
47
+ clauseLegalFrench: string;
48
+ riskReductionFactor: number;
49
+ }
50
+ export interface GrandSlamOfferReport {
51
+ coreOfferName: string;
52
+ targetAudience: string;
53
+ corePriceEur: number;
54
+ totalBonusesValueEur: number;
55
+ totalPerceivedValueEur: number;
56
+ priceToValueDiscountPercentage: number;
57
+ valueEquation: ValueEquationResult;
58
+ guarantee: GuaranteeDetails;
59
+ bonuses: OfferBonusItem[];
60
+ projectedConversionUpliftPercentage: number;
61
+ markdownSummary: string;
62
+ }
63
+ export declare class GrandSlamOfferEngine {
64
+ private static clamp;
65
+ static evaluateValueEquation(factors: ValueEquationFactors): ValueEquationResult;
66
+ static getGuaranteeDetails(type: RiskReversalType): GuaranteeDetails;
67
+ static generateOfferReport(config: GrandSlamOfferConfig): GrandSlamOfferReport;
68
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * @license AGPL-3.0-or-later
3
+ * LynxSEO - In-App Paywall & Upgrade Gate Engine (CRO & Monetization System)
4
+ *
5
+ * Inspired by industry standards in SaaS monetization, Lenny's Newsletter monetization frameworks,
6
+ * and FTC guidelines on clear subscription disclosures and dark-pattern prevention.
7
+ *
8
+ * Provides deterministic simulation of in-product upgrade screens:
9
+ * 1. 4 Core Upgrade Trigger Archetypes:
10
+ * - feature_lock: User attempts to access a pro/enterprise capability.
11
+ * - usage_limit: User hits quota ceiling (e.g. 10/10 audits, 5 team seats).
12
+ * - trial_expiration: Trial ending in 3 days / 24 hours, value preservation focus.
13
+ * - soft_nudge: Post-"aha moment" contextually gentle upgrade prompt.
14
+ * 2. Anti-Dark Pattern & Ethical Compliance Scoring:
15
+ * - Prominent close / dismissal button (no hidden "X").
16
+ * - Plain transparent pricing (monthly vs annual equivalence).
17
+ * - No guilt-tripping confirm-shaming copy ("No thanks, I hate growing my traffic").
18
+ * - Frictionless cancel & downgrade disclosure.
19
+ * 3. Conversion Economics Model:
20
+ * - Free-to-paid conversion rate estimate based on trigger timing & value experienced.
21
+ * - Incremental MRR & ARR forecast.
22
+ * - Post-upgrade 90-day retention index.
23
+ */
24
+ export type PaywallTriggerType = "feature_lock" | "usage_limit" | "trial_expiration" | "soft_nudge";
25
+ export interface PaywallConfigInput {
26
+ triggerType: PaywallTriggerType;
27
+ headline: string;
28
+ subheadline?: string;
29
+ targetFeatureName: string;
30
+ monthlyPrice: number;
31
+ annualPricePerMonth: number;
32
+ freeTierLimitDescription?: string;
33
+ paidTierBenefits: string[];
34
+ socialProofSnippet?: string;
35
+ hasProminentCloseButton: boolean;
36
+ hasGuiltTripCopy: boolean;
37
+ hasTransparentAnnualDiscount: boolean;
38
+ currentFreeActiveUsers?: number;
39
+ userExperiencedAhaMoment?: boolean;
40
+ }
41
+ export interface PaywallComplianceAudit {
42
+ score: number;
43
+ isFtcCompliant: boolean;
44
+ darkPatternsDetected: string[];
45
+ strengths: string[];
46
+ recommendations: string[];
47
+ }
48
+ export interface PaywallEconomicsForecast {
49
+ estimatedConversionRatePct: number;
50
+ projectedNewPayingCustomersMonthly: number;
51
+ projectedIncrementalMrr: number;
52
+ projectedIncrementalArr: number;
53
+ ninetyDayRetentionForecastPct: number;
54
+ paybackPeriodDays: number;
55
+ }
56
+ export interface PaywallEvaluationReport {
57
+ triggerType: PaywallTriggerType;
58
+ compliance: PaywallComplianceAudit;
59
+ economics: PaywallEconomicsForecast;
60
+ optimizedCopyVariants: {
61
+ headline: string;
62
+ ctaButton: string;
63
+ escapeHatchText: string;
64
+ };
65
+ htmlTailwindSnippet: string;
66
+ }
67
+ export declare class InAppPaywallGateEngine {
68
+ static evaluate(input: PaywallConfigInput): PaywallEvaluationReport;
69
+ }
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Influencer & Creator Marketing Campaign Engine
3
+ *
4
+ * Moteur d'évaluation, de pricing et de conformité pour campagnes d'influence et de créateurs :
5
+ * - Segmentation par tiers (Nano, Micro, Mid, Macro, B2B Thought Leader).
6
+ * - Grille tarifaire déterministe par plateforme (LinkedIn, YouTube, TikTok, Instagram, Podcast).
7
+ * - Modélisation financière (Flat fee, Hybride, CPA, Droits d'amplification / Whitelisting).
8
+ * - Calcul du ROI prévisionnel (Impressions qualifiées, Clics UTM, Conversions, CPA effectif).
9
+ * - Audit de conformité publicitaire (FTC / ARPP, transparence de sponsorisation).
10
+ * - Générateur de brief créateur complet (Hook, Points clés, Do's & Don'ts, CTA tracké).
11
+ */
12
+ export type CreatorTier = 'nano' | 'micro' | 'mid' | 'macro' | 'b2b_thought_leader';
13
+ export type CreatorPlatform = 'linkedin' | 'youtube' | 'tiktok' | 'instagram' | 'podcast_newsletter';
14
+ export type DealModel = 'flat_fee' | 'hybrid' | 'performance_cpa' | 'gifting_product';
15
+ export interface CreatorCampaignInput {
16
+ creatorTier: CreatorTier;
17
+ platform: CreatorPlatform;
18
+ dealModel: DealModel;
19
+ followerCount: number;
20
+ averageViewsPerPost: number;
21
+ includeWhitelistingRights: boolean;
22
+ productName: string;
23
+ coreHookAngle: string;
24
+ keyBenefit: string;
25
+ targetLandingUrl: string;
26
+ customFlatFeeBudget?: number;
27
+ }
28
+ export interface CreatorPricingAndRoiEstimate {
29
+ estimatedCreatorFee: number;
30
+ whitelistingFee: number;
31
+ totalBudget: number;
32
+ estimatedImpressions: number;
33
+ estimatedClicks: number;
34
+ estimatedConversions: number;
35
+ effectiveCpm: number;
36
+ effectiveCpa: number;
37
+ }
38
+ export interface CreatorBrief {
39
+ briefTitle: string;
40
+ recommendedHookConcept: string;
41
+ mandatoryKeyPoints: string[];
42
+ dosAndDonts: {
43
+ dos: string[];
44
+ donts: string[];
45
+ };
46
+ complianceDisclosureRule: string;
47
+ trackingLinkInstruction: string;
48
+ }
49
+ export interface CreatorCampaignResult {
50
+ pricingAndRoi: CreatorPricingAndRoiEstimate;
51
+ brief: CreatorBrief;
52
+ ftcComplianceAudit: {
53
+ isCompliant: boolean;
54
+ requiredHashtags: string[];
55
+ placementRule: string;
56
+ };
57
+ }
58
+ export declare class InfluencerCreatorCampaignEngine {
59
+ /**
60
+ * Calcule le budget prévisionnel et les retombées selon les benchmarks marché
61
+ */
62
+ static calculatePricingAndRoi(input: CreatorCampaignInput): CreatorPricingAndRoiEstimate;
63
+ /**
64
+ * Génère le brief d'exécution opérationnel et l'audit de conformité
65
+ */
66
+ static generateCampaign(input: CreatorCampaignInput): CreatorCampaignResult;
67
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Landing Page Hero Copy Engine
3
+ * Moteur déterministe d'audit et d'optimisation de copywriting pour Hero Section / Landing Page.
4
+ * Inspiré par les méthodologies professionnelles de conversion copywriting :
5
+ * - Règle du test des 5 secondes (Clarté de la proposition de valeur)
6
+ * - Détection et élimination des "AI tells" et clichés creux ("unlock the power", "seamlessly", etc.)
7
+ * - Linter de revendications (Supportable Claims Linter : toute affirmation ambitieuse requiert sa preuve)
8
+ * - 3 Archétypes de titres : Direct JTBD, Agitation du Pain Point, Approche Contrarienne
9
+ */
10
+ export interface HeroCopyInput {
11
+ headline: string;
12
+ subheadline: string;
13
+ ctaText: string;
14
+ targetAudience?: string;
15
+ targetOutcome?: string;
16
+ }
17
+ export interface ClaimLinterFinding {
18
+ claim: string;
19
+ risk: "high" | "medium" | "low";
20
+ reason: string;
21
+ recommendedProof: string;
22
+ }
23
+ export interface HeroFrameworkSuggestion {
24
+ frameworkName: "Direct JTBD (Clarté)" | "Agitation du Pain Point" | "Approche Contrarienne / Niche";
25
+ headline: string;
26
+ subheadline: string;
27
+ ctaText: string;
28
+ rationale: string;
29
+ }
30
+ export interface HeroCopyAuditReport {
31
+ score5SecondTest: number;
32
+ clarityGrade: "A" | "B" | "C" | "D" | "F";
33
+ wordCount: {
34
+ headline: number;
35
+ subheadline: number;
36
+ cta: number;
37
+ };
38
+ aiTellsDetected: string[];
39
+ vagueAdjectivesDetected: string[];
40
+ claimsAudit: ClaimLinterFinding[];
41
+ frameworkSuggestions: HeroFrameworkSuggestion[];
42
+ estimatedConversionLiftPercent: number;
43
+ recommendations: string[];
44
+ }
45
+ export declare class LandingPageHeroCopyEngine {
46
+ private static readonly AI_TELLS_AND_BUZZWORDS;
47
+ private static readonly VAGUE_ADJECTIVES;
48
+ static auditAndOptimize(input: HeroCopyInput): HeroCopyAuditReport;
49
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Lead Capture Form Optimization Engine
3
+ * Moteur déterministe d'audit et d'optimisation de formulaires de capture / démo / devis CRO.
4
+ * Inspiré par les études de friction de formulaire (cro/references/form.md) :
5
+ * - Calcul du taux d'abandon prédictif par champ superflu (Phone -18%, Message libre -22%, Captcha -35%)
6
+ * - Comparaison Single-Step vs Multi-Step (Effet de pied dans la porte / Low-threat micro-commitments)
7
+ * - Audit des attributs HTML d'autocomplétion W3C & Inline validation
8
+ * - Modélisation de volume de leads additionnel et d'économies de CAC
9
+ */
10
+ export type FormFieldType = "email" | "first_name" | "last_name" | "full_name" | "company" | "website_url" | "phone" | "job_title" | "company_size" | "budget" | "free_message" | "captcha";
11
+ export interface FormFieldDefinition {
12
+ id: string;
13
+ label: string;
14
+ type: FormFieldType;
15
+ isRequired: boolean;
16
+ }
17
+ export interface FormAuditInput {
18
+ formTitle: string;
19
+ fields: FormFieldDefinition[];
20
+ monthlyVisitors: number;
21
+ currentConversionRatePercent?: number;
22
+ isMultiStep: boolean;
23
+ hasInlineValidation: boolean;
24
+ hasTrustMicrocopyUnderCta: boolean;
25
+ }
26
+ export interface FormFrictionAnalysis {
27
+ fieldCount: number;
28
+ requiredFieldCount: number;
29
+ totalFrictionPenaltyPercent: number;
30
+ highFrictionFields: {
31
+ field: FormFieldDefinition;
32
+ penalty: number;
33
+ reason: string;
34
+ removalOrEnrichmentRecommendation: string;
35
+ }[];
36
+ baselineConversionRate: number;
37
+ optimizedProjectedConversionRate: number;
38
+ monthlyLeadsCurrent: number;
39
+ monthlyLeadsOptimized: number;
40
+ additionalMonthlyLeads: number;
41
+ multiStepRecommended: boolean;
42
+ multiStepStrategy?: {
43
+ step1Fields: string[];
44
+ step2Fields: string[];
45
+ rationale: string;
46
+ };
47
+ criticalChecklist: {
48
+ item: string;
49
+ passed: boolean;
50
+ importance: "critical" | "high" | "medium";
51
+ guidance: string;
52
+ }[];
53
+ }
54
+ export declare class LeadCaptureFormOptimizationEngine {
55
+ private static readonly FIELD_FRICTION_WEIGHTS;
56
+ static auditForm(input: FormAuditInput): FormFrictionAnalysis;
57
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Moteur d'architecture et de qualification de Lead Magnets (Lead Magnet Architecture Engine)
3
+ * Inspiré de la compétence `lead-magnets` et `free-tools`.
4
+ *
5
+ * Évalue les 5 principes directeurs (Problème spécifique, Alignement cycle d'achat,
6
+ * Ratio valeur perçue / temps de consommation, Passerelle naturelle vers le produit, Facilité d'accès),
7
+ * calcule le score prédictif de conversion (Opt-in %) et génère le blueprint d'opt-in.
8
+ */
9
+ export type LeadMagnetFormat = "interactive_calculator" | "actionable_checklist" | "notion_template" | "swipe_file" | "micro_audit_tool";
10
+ export type BuyerJourneyStage = "awareness" | "consideration" | "decision";
11
+ export interface LeadMagnetSpecification {
12
+ title: string;
13
+ targetAudience: string;
14
+ specificPainPoint: string;
15
+ format: LeadMagnetFormat;
16
+ stage: BuyerJourneyStage;
17
+ estimatedConsumptionMinutes: number;
18
+ naturalNextStepFeature: string;
19
+ deliverables: string[];
20
+ }
21
+ export interface LeadMagnetAuditReport {
22
+ title: string;
23
+ architectureScore: number;
24
+ estimatedOptInRatePercent: {
25
+ min: number;
26
+ max: number;
27
+ };
28
+ perceivedValueRating: "Exceptional" | "High" | "Moderate" | "Low";
29
+ isFrictionFree: boolean;
30
+ warnings: string[];
31
+ conversionBoosters: string[];
32
+ welcomeSequenceBlueprint: {
33
+ day0InstantDelivery: string;
34
+ day2ValueNudge: string;
35
+ day5ProductBridge: string;
36
+ };
37
+ }
38
+ export declare class LeadMagnetArchitectureEngine {
39
+ static evaluate(spec: LeadMagnetSpecification): LeadMagnetAuditReport;
40
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Product Hunt Launch War Room Engine
3
+ * Moteur déterministe de planification, vélocité d'upvotes et orchestration de lancement Product Hunt.
4
+ * Inspiré par les meilleures pratiques de lancement SaaS (skills launch & marketing-ideas) :
5
+ * - Alignement fuseau horaire 00:01 PST (San Francisco)
6
+ * - Pacing de vélocité d'upvotes pour préserver le score algorithmique (anti-bot-detection)
7
+ * - Structuration du Maker Comment (Story, Mission, Offre exclusive Hunter, Q&A)
8
+ * - Matrice multicanale d'amplification (X/Twitter, LinkedIn, Slack VIP, Newsletter)
9
+ * - Modélisation prédictive de trafic et conversion en signups
10
+ */
11
+ export interface PhLaunchInput {
12
+ productName: string;
13
+ tagline: string;
14
+ makerStory: string;
15
+ targetRank: 1 | 2 | 3 | 4 | 5;
16
+ emailSubscriberCount: number;
17
+ communityMembersCount: number;
18
+ twitterFollowersCount: number;
19
+ hunterDiscountPercent?: number;
20
+ }
21
+ export interface LaunchTimelineMilestone {
22
+ timeOffset: string;
23
+ phase: "Pre-Launch" | "Launch Morning" | "Midday Momentum" | "Final Push" | "Post-Mortem";
24
+ actionTitle: string;
25
+ checklist: string[];
26
+ ownerRole: string;
27
+ }
28
+ export interface ChannelBroadcastPlan {
29
+ channel: "X / Twitter" | "LinkedIn" | "Newsletter VIP" | "Slack / Discord" | "Maker Comment";
30
+ timing: string;
31
+ templateSnippet: string;
32
+ prohibitedBehaviors: string[];
33
+ }
34
+ export interface PhLaunchStrategyReport {
35
+ taglineAudit: {
36
+ characterCount: number;
37
+ isValidLength: boolean;
38
+ recommendation: string;
39
+ };
40
+ targetUpvoteVelocityPerHour: number;
41
+ estimatedTotalVotesNeeded: number;
42
+ projectedTrafficVisitors: {
43
+ min: number;
44
+ max: number;
45
+ };
46
+ projectedSignups: {
47
+ min: number;
48
+ max: number;
49
+ };
50
+ makerCommentTemplate: string;
51
+ timeline: LaunchTimelineMilestone[];
52
+ channelPlans: ChannelBroadcastPlan[];
53
+ algorithmGuardRules: string[];
54
+ }
55
+ export declare class ProductHuntLaunchWarRoomEngine {
56
+ static planLaunch(input: PhLaunchInput): PhLaunchStrategyReport;
57
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Recurring Marketing Loop Engine
3
+ *
4
+ * Orchestration déterministe de boucles marketing récurrentes et autonomes,
5
+ * inspirée du framework marketing-loops (9 composantes obligatoires,
6
+ * distinction cadence d'inspection vs condition d'action, fenêtres de cooldown,
7
+ * idempotence et gardes-fous d'approbation humaine).
8
+ */
9
+ export type AutonomousLoopCadence = "realtime" | "hourly" | "daily" | "every_3_days" | "weekly" | "biweekly" | "monthly" | "on_trigger";
10
+ export type LoopActionTier = "autonomous_safe" | "gated_human_review";
11
+ export interface MarketingLoopStep {
12
+ order: number;
13
+ name: string;
14
+ action: string;
15
+ toolOrSkill: string;
16
+ isGated: boolean;
17
+ }
18
+ export interface AutonomousMarketingLoopPlan {
19
+ id: string;
20
+ name: string;
21
+ category: "seo_content" | "paid_media" | "retention_churn" | "competitive" | "referral_advocacy" | "conversion_cro";
22
+ purpose: string;
23
+ checkCadence: AutonomousLoopCadence;
24
+ actsWhen: string;
25
+ skillsUsed: string[];
26
+ loopBody: MarketingLoopStep[];
27
+ selfCheck: string;
28
+ stateIdempotency: {
29
+ cooldownHours: number;
30
+ deduplicationKey: string;
31
+ stateStorage: "kv" | "postgres" | "sqlite_d1" | "redis";
32
+ };
33
+ stopCondition: {
34
+ maxConsecutiveErrors: number;
35
+ bailoutThreshold: string;
36
+ escalateToHuman: boolean;
37
+ };
38
+ outputArtifact: "markdown_report" | "staged_draft" | "pr_review" | "slack_alert" | "crm_task";
39
+ }
40
+ export interface LoopExecutionInput {
41
+ loopId: string;
42
+ currentMetrics: {
43
+ signalValue: number;
44
+ thresholdValue: number;
45
+ metricName: string;
46
+ isAnomalous?: boolean;
47
+ };
48
+ lastRunTimestampIso?: string;
49
+ consecutiveErrorCount?: number;
50
+ }
51
+ export interface AutonomousLoopExecutionResult {
52
+ loopId: string;
53
+ status: "skipped_no_trigger" | "skipped_cooldown_active" | "executed_autonomous" | "staged_for_human_review" | "halted_error_bailout";
54
+ evaluatedAtIso: string;
55
+ canExecute: boolean;
56
+ hoursSinceLastRun: number | null;
57
+ cooldownRemainingHours: number;
58
+ actionRequired: string;
59
+ stagedActions: MarketingLoopStep[];
60
+ auditLogEntry: string;
61
+ recommendedNextCheckIso: string;
62
+ }
63
+ export declare const PRESET_MARKETING_LOOPS: AutonomousMarketingLoopPlan[];
64
+ export declare class RecurringMarketingLoopEngine {
65
+ /**
66
+ * Évalue l'éligibilité et l'exécution d'une boucle marketing récurrente.
67
+ */
68
+ static evaluateLoop(definition: AutonomousMarketingLoopPlan, input: LoopExecutionInput): AutonomousLoopExecutionResult;
69
+ /**
70
+ * Retourne l'intervalle horaire standard d'une cadence.
71
+ */
72
+ static getCadenceHours(cadence: AutonomousLoopCadence): number;
73
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * RevOps Pipeline & Lead Scoring Engine
3
+ *
4
+ * Moteur d'évaluation de pipeline commercial et d'attribution de vélocité :
5
+ * - Scoring composite Fit (ICP / technographique) + Intent (signaux comportementaux d'achat).
6
+ * - Qualification automatique des étapes : Lead -> Engaged -> MQL -> SQL.
7
+ * - Moniteur SLA Speed-to-Lead (érosion de conversion horaire).
8
+ * - Calculateur de vélocité de pipeline V = (N * W * ACV) / L.
9
+ */
10
+ export interface LeadProfileInput {
11
+ companySize: '1-10' | '11-50' | '51-200' | '201-1000' | '1000+';
12
+ decisionMakerRole: 'c-level' | 'head-vp' | 'manager' | 'specialist' | 'intern-student';
13
+ hasAnnualBudget: boolean;
14
+ pricingPageViews: number;
15
+ apiDocsVisits: number;
16
+ calculatorSimulations: number;
17
+ daysSinceLastActivity: number;
18
+ firstTouchMinutesAgo?: number;
19
+ }
20
+ export type LeadLifecycleStage = 'Lead' | 'Marketing Engaged' | 'MQL' | 'SQL' | 'Disqualified';
21
+ export interface LeadScoreResult {
22
+ fitScore: number;
23
+ intentScore: number;
24
+ totalScore: number;
25
+ stage: LeadLifecycleStage;
26
+ slaSpeedToLead: {
27
+ status: 'Optimal (< 5 min)' | 'Acceptable (< 30 min)' | 'At Risk (< 2h)' | 'Critical Decay (> 2h)';
28
+ qualificationOddsMultiplier: number;
29
+ recommendedAction: string;
30
+ };
31
+ insights: string[];
32
+ }
33
+ export interface PipelineVelocityInput {
34
+ activeOpportunitiesCount: number;
35
+ winRatePercent: number;
36
+ averageContractValueEur: number;
37
+ averageSalesCycleDays: number;
38
+ }
39
+ export interface PipelineVelocityResult {
40
+ dailyPipelineVelocityEur: number;
41
+ monthlyProjectedRevenueEur: number;
42
+ quarterlyProjectedRevenueEur: number;
43
+ bottleneckAnalysis: {
44
+ primaryLever: 'win_rate' | 'sales_cycle' | 'acv' | 'volume';
45
+ suggestion: string;
46
+ projectedUpliftEur: number;
47
+ };
48
+ }
49
+ export declare class RevOpsPipelineScoringEngine {
50
+ /**
51
+ * Évalue et score un lead individuel selon la matrice Fit/Intent
52
+ */
53
+ static evaluateLead(input: LeadProfileInput): LeadScoreResult;
54
+ /**
55
+ * Calcule la vélocité du pipeline commercial V = (N * W * ACV) / L
56
+ */
57
+ static calculatePipelineVelocity(input: PipelineVelocityInput): PipelineVelocityResult;
58
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Moteur de tarification et de packaging SaaS (SaaS Pricing & Packaging Strategy Engine)
3
+ * Inspiré de la compétence `pricing`.
4
+ *
5
+ * Modélise les 3 axes de tarification (Packaging, Value Metric, Price Point),
6
+ * analyse l'effet leurre (Decoy Effect) et l'ancrage psychologique,
7
+ * et audite la lisibilité pour les agents IA et les moteurs de réponse (AEO).
8
+ */
9
+ export type PricingTierLevel = "starter" | "growth" | "pro_decoy" | "scale_enterprise";
10
+ export type ValueMetricType = "per_seat" | "per_usage_crawls" | "flat_rate" | "hybrid";
11
+ export interface PricingPlanConfig {
12
+ id: string;
13
+ name: string;
14
+ level: PricingTierLevel;
15
+ monthlyPriceEur: number;
16
+ annualDiscountPercent: number;
17
+ valueMetric: string;
18
+ isMostPopularOrDecoy: boolean;
19
+ featureHighlights: string[];
20
+ ctaLabel: string;
21
+ }
22
+ export interface SaaSPricingInput {
23
+ productName: string;
24
+ targetMarket: "prosumer_smb" | "mid_market" | "enterprise";
25
+ valueMetricType: ValueMetricType;
26
+ plans: PricingPlanConfig[];
27
+ hasFreeTrialNoCard: boolean;
28
+ hasFaqStructuredData: boolean;
29
+ hasTransparentEnterprisePrice: boolean;
30
+ }
31
+ export interface DecoyEffectAnalysis {
32
+ hasDecoyDetected: boolean;
33
+ decoyTierName?: string;
34
+ anchorTierName?: string;
35
+ perceivedStealRatio: number;
36
+ recommendation: string;
37
+ }
38
+ export interface AiReadabilityAudit {
39
+ score: number;
40
+ isAiAgentScannable: boolean;
41
+ clarityIssues: string[];
42
+ strengths: string[];
43
+ }
44
+ export interface SaaSPricingAuditReport {
45
+ productName: string;
46
+ strategicModelVerdicts: string[];
47
+ averageArpuMonthly: number;
48
+ annualCashflowBoostRatio: number;
49
+ decoyAnalysis: DecoyEffectAnalysis;
50
+ aiReadability: AiReadabilityAudit;
51
+ priceAnchorRecommendations: string[];
52
+ }
53
+ export declare class SaaSPricingPackagingEngine {
54
+ static analyze(input: SaaSPricingInput): SaaSPricingAuditReport;
55
+ }