lean-claudient-core 0.1.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/.reports/detailed-analysis_2026-06-20_01ed326b.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_08d39381.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_0a331144.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_0d54ffef.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_14bfa31c.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_211feac4.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_22381bc2.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_29b4ea0a.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_2df0ad14.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_343ec84c.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_3a01030d.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_3b4c99ec.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_3d368827.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_53544d3d.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_5721164a.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_57caf5e7.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_624302f5.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_62456384.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_636a52f1.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_63d1ad41.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_7451ccd7.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_74da4e9a.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_83a90083.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_867fbdd9.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_974c3299.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_a04639a2.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_a8e23d6d.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_aa9150f0.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_acbeee08.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_c4ffa0e2.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_c5f7684b.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_c963b1fa.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_d4bde41f.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_d6eb2497.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_ea6f7f58.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_ebf4e060.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_ec4313a9.html +200 -0
- package/.reports/detailed-analysis_2026-06-20_fc65d18e.html +200 -0
- package/.reports/executive-summary_2026-06-20_00406d50.html +109 -0
- package/.reports/executive-summary_2026-06-20_0bb202d3.html +109 -0
- package/.reports/executive-summary_2026-06-20_0bcd7481.html +109 -0
- package/.reports/executive-summary_2026-06-20_11506445.html +109 -0
- package/.reports/executive-summary_2026-06-20_13616cda.html +109 -0
- package/.reports/executive-summary_2026-06-20_19d41c2f.html +109 -0
- package/.reports/executive-summary_2026-06-20_1b0d6e96.html +109 -0
- package/.reports/executive-summary_2026-06-20_1e38670b.html +109 -0
- package/.reports/executive-summary_2026-06-20_1f32f793.html +109 -0
- package/.reports/executive-summary_2026-06-20_1f40f7d3.html +109 -0
- package/.reports/executive-summary_2026-06-20_25a40a7e.html +109 -0
- package/.reports/executive-summary_2026-06-20_26d11818.html +109 -0
- package/.reports/executive-summary_2026-06-20_26ed4593.html +109 -0
- package/.reports/executive-summary_2026-06-20_291b90a8.html +109 -0
- package/.reports/executive-summary_2026-06-20_2957a848.html +109 -0
- package/.reports/executive-summary_2026-06-20_2a04eb77.html +109 -0
- package/.reports/executive-summary_2026-06-20_2fa701f9.html +109 -0
- package/.reports/executive-summary_2026-06-20_327af8f5.html +109 -0
- package/.reports/executive-summary_2026-06-20_3418c729.html +109 -0
- package/.reports/executive-summary_2026-06-20_3571763d.html +109 -0
- package/.reports/executive-summary_2026-06-20_36225353.html +109 -0
- package/.reports/executive-summary_2026-06-20_3b2de891.html +109 -0
- package/.reports/executive-summary_2026-06-20_45b980c2.html +109 -0
- package/.reports/executive-summary_2026-06-20_46fcbf17.html +109 -0
- package/.reports/executive-summary_2026-06-20_48c8fa5e.html +109 -0
- package/.reports/executive-summary_2026-06-20_4ba55c43.html +109 -0
- package/.reports/executive-summary_2026-06-20_4f4498e6.html +109 -0
- package/.reports/executive-summary_2026-06-20_54c33bf0.html +109 -0
- package/.reports/executive-summary_2026-06-20_54cc7077.html +109 -0
- package/.reports/executive-summary_2026-06-20_5a12912e.html +109 -0
- package/.reports/executive-summary_2026-06-20_636fac87.html +109 -0
- package/.reports/executive-summary_2026-06-20_6587faaf.html +109 -0
- package/.reports/executive-summary_2026-06-20_6adbdd03.html +109 -0
- package/.reports/executive-summary_2026-06-20_6bf344ec.html +109 -0
- package/.reports/executive-summary_2026-06-20_7142aeed.html +109 -0
- package/.reports/executive-summary_2026-06-20_72bc0ceb.html +109 -0
- package/.reports/executive-summary_2026-06-20_775752ac.html +109 -0
- package/.reports/executive-summary_2026-06-20_7a9c3223.html +109 -0
- package/.reports/executive-summary_2026-06-20_808e6376.html +109 -0
- package/.reports/executive-summary_2026-06-20_8de9142d.html +109 -0
- package/.reports/executive-summary_2026-06-20_91981fbe.html +109 -0
- package/.reports/executive-summary_2026-06-20_93191c8c.html +109 -0
- package/.reports/executive-summary_2026-06-20_9be48a87.html +109 -0
- package/.reports/executive-summary_2026-06-20_9c127198.html +109 -0
- package/.reports/executive-summary_2026-06-20_9ee303ac.html +109 -0
- package/.reports/executive-summary_2026-06-20_9ee52709.html +109 -0
- package/.reports/executive-summary_2026-06-20_a0fa27de.html +109 -0
- package/.reports/executive-summary_2026-06-20_a1813e47.html +109 -0
- package/.reports/executive-summary_2026-06-20_a974edc1.html +109 -0
- package/.reports/executive-summary_2026-06-20_aa711737.html +109 -0
- package/.reports/executive-summary_2026-06-20_aa752246.html +109 -0
- package/.reports/executive-summary_2026-06-20_ac6f0927.html +109 -0
- package/.reports/executive-summary_2026-06-20_b231b143.html +109 -0
- package/.reports/executive-summary_2026-06-20_b570a2bd.html +109 -0
- package/.reports/executive-summary_2026-06-20_b6fbf650.html +109 -0
- package/.reports/executive-summary_2026-06-20_b9f8ddf3.html +109 -0
- package/.reports/executive-summary_2026-06-20_bf95cc63.html +109 -0
- package/.reports/executive-summary_2026-06-20_c0d0aefe.html +109 -0
- package/.reports/executive-summary_2026-06-20_c1933c36.html +109 -0
- package/.reports/executive-summary_2026-06-20_c99bba8a.html +109 -0
- package/.reports/executive-summary_2026-06-20_cc3846ac.html +109 -0
- package/.reports/executive-summary_2026-06-20_d485993c.html +109 -0
- package/.reports/executive-summary_2026-06-20_d56f75f7.html +109 -0
- package/.reports/executive-summary_2026-06-20_d57660cc.html +109 -0
- package/.reports/executive-summary_2026-06-20_dc036f62.html +109 -0
- package/.reports/executive-summary_2026-06-20_df783f47.html +109 -0
- package/.reports/executive-summary_2026-06-20_e2191adb.html +109 -0
- package/.reports/executive-summary_2026-06-20_e9f1d504.html +109 -0
- package/.reports/executive-summary_2026-06-20_ea82f5e1.html +109 -0
- package/.reports/executive-summary_2026-06-20_ec3e70cb.html +109 -0
- package/.reports/executive-summary_2026-06-20_ee6cf902.html +109 -0
- package/.reports/executive-summary_2026-06-20_f6cb657c.html +109 -0
- package/.reports/executive-summary_2026-06-20_f8c60046.html +109 -0
- package/.reports/executive-summary_2026-06-20_fa184840.html +109 -0
- package/.reports/executive-summary_2026-06-20_fc88bcb4.html +109 -0
- package/.reports/executive-summary_2026-06-20_ffa79c4e.html +109 -0
- package/README.md +53 -0
- package/dist/automation/actionApprover.d.ts +89 -0
- package/dist/automation/actionApprover.d.ts.map +1 -0
- package/dist/automation/actionApprover.js +264 -0
- package/dist/automation/actionApprover.js.map +1 -0
- package/dist/automation/actionExecutor.d.ts +125 -0
- package/dist/automation/actionExecutor.d.ts.map +1 -0
- package/dist/automation/actionExecutor.js +304 -0
- package/dist/automation/actionExecutor.js.map +1 -0
- package/dist/automation/alertRules.d.ts +55 -0
- package/dist/automation/alertRules.d.ts.map +1 -0
- package/dist/automation/alertRules.js +70 -0
- package/dist/automation/alertRules.js.map +1 -0
- package/dist/automation/alertSystem.d.ts +109 -0
- package/dist/automation/alertSystem.d.ts.map +1 -0
- package/dist/automation/alertSystem.js +303 -0
- package/dist/automation/alertSystem.js.map +1 -0
- package/dist/automation/competitorResponse.d.ts +119 -0
- package/dist/automation/competitorResponse.d.ts.map +1 -0
- package/dist/automation/competitorResponse.js +343 -0
- package/dist/automation/competitorResponse.js.map +1 -0
- package/dist/automation/composioClient.d.ts +107 -0
- package/dist/automation/composioClient.d.ts.map +1 -0
- package/dist/automation/composioClient.js +286 -0
- package/dist/automation/composioClient.js.map +1 -0
- package/dist/automation/crmExport.d.ts +116 -0
- package/dist/automation/crmExport.d.ts.map +1 -0
- package/dist/automation/crmExport.js +282 -0
- package/dist/automation/crmExport.js.map +1 -0
- package/dist/automation/crmIntegration.d.ts +83 -0
- package/dist/automation/crmIntegration.d.ts.map +1 -0
- package/dist/automation/crmIntegration.js +207 -0
- package/dist/automation/crmIntegration.js.map +1 -0
- package/dist/automation/gmailIntegration.d.ts +73 -0
- package/dist/automation/gmailIntegration.d.ts.map +1 -0
- package/dist/automation/gmailIntegration.js +184 -0
- package/dist/automation/gmailIntegration.js.map +1 -0
- package/dist/automation/index.d.ts +17 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +17 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/automation/jiraIntegration.d.ts +103 -0
- package/dist/automation/jiraIntegration.d.ts.map +1 -0
- package/dist/automation/jiraIntegration.js +222 -0
- package/dist/automation/jiraIntegration.js.map +1 -0
- package/dist/automation/jobQueue.d.ts +98 -0
- package/dist/automation/jobQueue.d.ts.map +1 -0
- package/dist/automation/jobQueue.js +207 -0
- package/dist/automation/jobQueue.js.map +1 -0
- package/dist/automation/leadQualification.d.ts +60 -0
- package/dist/automation/leadQualification.d.ts.map +1 -0
- package/dist/automation/leadQualification.js +204 -0
- package/dist/automation/leadQualification.js.map +1 -0
- package/dist/automation/qualificationRules.d.ts +100 -0
- package/dist/automation/qualificationRules.d.ts.map +1 -0
- package/dist/automation/qualificationRules.js +202 -0
- package/dist/automation/qualificationRules.js.map +1 -0
- package/dist/automation/responseTemplates.d.ts +64 -0
- package/dist/automation/responseTemplates.d.ts.map +1 -0
- package/dist/automation/responseTemplates.js +374 -0
- package/dist/automation/responseTemplates.js.map +1 -0
- package/dist/automation/scheduler.d.ts +85 -0
- package/dist/automation/scheduler.d.ts.map +1 -0
- package/dist/automation/scheduler.js +194 -0
- package/dist/automation/scheduler.js.map +1 -0
- package/dist/automation/types.d.ts +223 -0
- package/dist/automation/types.d.ts.map +1 -0
- package/dist/automation/types.js +32 -0
- package/dist/automation/types.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +575 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/compression/caveman.d.ts +14 -0
- package/dist/compression/caveman.d.ts.map +1 -0
- package/dist/compression/caveman.js +188 -0
- package/dist/compression/caveman.js.map +1 -0
- package/dist/compression/caveman.test.d.ts +2 -0
- package/dist/compression/caveman.test.d.ts.map +1 -0
- package/dist/compression/caveman.test.js.map +1 -0
- package/dist/config/configManager.d.ts +6 -0
- package/dist/config/configManager.d.ts.map +1 -0
- package/dist/config/configManager.js +62 -0
- package/dist/config/configManager.js.map +1 -0
- package/dist/config/schema.d.ts +95 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +19 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/context/autoCompact.d.ts +19 -0
- package/dist/context/autoCompact.d.ts.map +1 -0
- package/dist/context/autoCompact.js +101 -0
- package/dist/context/autoCompact.js.map +1 -0
- package/dist/context/readDedup.d.ts +21 -0
- package/dist/context/readDedup.d.ts.map +1 -0
- package/dist/context/readDedup.js +55 -0
- package/dist/context/readDedup.js.map +1 -0
- package/dist/context/toolBudgets.d.ts +15 -0
- package/dist/context/toolBudgets.d.ts.map +1 -0
- package/dist/context/toolBudgets.js +35 -0
- package/dist/context/toolBudgets.js.map +1 -0
- package/dist/core/auditLogger.d.ts +30 -0
- package/dist/core/auditLogger.d.ts.map +1 -0
- package/dist/core/auditLogger.js +51 -0
- package/dist/core/auditLogger.js.map +1 -0
- package/dist/core/stateManager.d.ts +10 -0
- package/dist/core/stateManager.d.ts.map +1 -0
- package/dist/core/stateManager.js +59 -0
- package/dist/core/stateManager.js.map +1 -0
- package/dist/database/feedbackSchema.d.ts +80 -0
- package/dist/database/feedbackSchema.d.ts.map +1 -0
- package/dist/database/feedbackSchema.js +94 -0
- package/dist/database/feedbackSchema.js.map +1 -0
- package/dist/database/leadsSchema.d.ts +99 -0
- package/dist/database/leadsSchema.d.ts.map +1 -0
- package/dist/database/leadsSchema.js +136 -0
- package/dist/database/leadsSchema.js.map +1 -0
- package/dist/intelligence/competitorScoring.d.ts +25 -0
- package/dist/intelligence/competitorScoring.d.ts.map +1 -0
- package/dist/intelligence/competitorScoring.js +181 -0
- package/dist/intelligence/competitorScoring.js.map +1 -0
- package/dist/intelligence/competitorTracker.d.ts +36 -0
- package/dist/intelligence/competitorTracker.d.ts.map +1 -0
- package/dist/intelligence/competitorTracker.js +286 -0
- package/dist/intelligence/competitorTracker.js.map +1 -0
- package/dist/intelligence/competitorTypes.d.ts +93 -0
- package/dist/intelligence/competitorTypes.d.ts.map +1 -0
- package/dist/intelligence/competitorTypes.js +6 -0
- package/dist/intelligence/competitorTypes.js.map +1 -0
- package/dist/intelligence/competitors.json +76 -0
- package/dist/intelligence/feedbackLoop.d.ts +118 -0
- package/dist/intelligence/feedbackLoop.d.ts.map +1 -0
- package/dist/intelligence/feedbackLoop.js +368 -0
- package/dist/intelligence/feedbackLoop.js.map +1 -0
- package/dist/intelligence/gitHubTracker.d.ts +14 -0
- package/dist/intelligence/gitHubTracker.d.ts.map +1 -0
- package/dist/intelligence/gitHubTracker.js +153 -0
- package/dist/intelligence/gitHubTracker.js.map +1 -0
- package/dist/intelligence/hackerNewsScanner.d.ts +21 -0
- package/dist/intelligence/hackerNewsScanner.d.ts.map +1 -0
- package/dist/intelligence/hackerNewsScanner.js +88 -0
- package/dist/intelligence/hackerNewsScanner.js.map +1 -0
- package/dist/intelligence/hiringSignals.d.ts +16 -0
- package/dist/intelligence/hiringSignals.d.ts.map +1 -0
- package/dist/intelligence/hiringSignals.js +132 -0
- package/dist/intelligence/hiringSignals.js.map +1 -0
- package/dist/intelligence/index.d.ts +9 -0
- package/dist/intelligence/index.d.ts.map +1 -0
- package/dist/intelligence/index.js +9 -0
- package/dist/intelligence/index.js.map +1 -0
- package/dist/intelligence/leadEnrichment.d.ts +59 -0
- package/dist/intelligence/leadEnrichment.d.ts.map +1 -0
- package/dist/intelligence/leadEnrichment.js +209 -0
- package/dist/intelligence/leadEnrichment.js.map +1 -0
- package/dist/intelligence/leadEnrichmentTypes.d.ts +49 -0
- package/dist/intelligence/leadEnrichmentTypes.d.ts.map +1 -0
- package/dist/intelligence/leadEnrichmentTypes.js +7 -0
- package/dist/intelligence/leadEnrichmentTypes.js.map +1 -0
- package/dist/intelligence/marketScanner.d.ts +18 -0
- package/dist/intelligence/marketScanner.d.ts.map +1 -0
- package/dist/intelligence/marketScanner.js +225 -0
- package/dist/intelligence/marketScanner.js.map +1 -0
- package/dist/intelligence/polymarketScanner.d.ts +20 -0
- package/dist/intelligence/polymarketScanner.d.ts.map +1 -0
- package/dist/intelligence/polymarketScanner.js +88 -0
- package/dist/intelligence/polymarketScanner.js.map +1 -0
- package/dist/intelligence/redditScanner.d.ts +22 -0
- package/dist/intelligence/redditScanner.d.ts.map +1 -0
- package/dist/intelligence/redditScanner.js +89 -0
- package/dist/intelligence/redditScanner.js.map +1 -0
- package/dist/intelligence/signalAggregator.d.ts +10 -0
- package/dist/intelligence/signalAggregator.d.ts.map +1 -0
- package/dist/intelligence/signalAggregator.js +64 -0
- package/dist/intelligence/signalAggregator.js.map +1 -0
- package/dist/intelligence/trendAnalysis.d.ts +13 -0
- package/dist/intelligence/trendAnalysis.d.ts.map +1 -0
- package/dist/intelligence/trendAnalysis.js +106 -0
- package/dist/intelligence/trendAnalysis.js.map +1 -0
- package/dist/intelligence/twitterScanner.d.ts +22 -0
- package/dist/intelligence/twitterScanner.d.ts.map +1 -0
- package/dist/intelligence/twitterScanner.js +63 -0
- package/dist/intelligence/twitterScanner.js.map +1 -0
- package/dist/intelligence/types.d.ts +566 -0
- package/dist/intelligence/types.d.ts.map +1 -0
- package/dist/intelligence/types.js +87 -0
- package/dist/intelligence/types.js.map +1 -0
- package/dist/intelligence/userComplaints.d.ts +15 -0
- package/dist/intelligence/userComplaints.d.ts.map +1 -0
- package/dist/intelligence/userComplaints.js +193 -0
- package/dist/intelligence/userComplaints.js.map +1 -0
- package/dist/metrics/businessMetrics.d.ts +41 -0
- package/dist/metrics/businessMetrics.d.ts.map +1 -0
- package/dist/metrics/businessMetrics.js +120 -0
- package/dist/metrics/businessMetrics.js.map +1 -0
- package/dist/metrics/businessMetrics.test.d.ts +2 -0
- package/dist/metrics/businessMetrics.test.d.ts.map +1 -0
- package/dist/metrics/businessMetrics.test.js.map +1 -0
- package/dist/metrics/businessMetricsAgg.d.ts +85 -0
- package/dist/metrics/businessMetricsAgg.d.ts.map +1 -0
- package/dist/metrics/businessMetricsAgg.js +406 -0
- package/dist/metrics/businessMetricsAgg.js.map +1 -0
- package/dist/metrics/competitorMetrics.d.ts +57 -0
- package/dist/metrics/competitorMetrics.d.ts.map +1 -0
- package/dist/metrics/competitorMetrics.js +94 -0
- package/dist/metrics/competitorMetrics.js.map +1 -0
- package/dist/metrics/dashboardGenerator.d.ts +16 -0
- package/dist/metrics/dashboardGenerator.d.ts.map +1 -0
- package/dist/metrics/dashboardGenerator.js +313 -0
- package/dist/metrics/dashboardGenerator.js.map +1 -0
- package/dist/metrics/dashboardHTML.d.ts +18 -0
- package/dist/metrics/dashboardHTML.d.ts.map +1 -0
- package/dist/metrics/dashboardHTML.js +613 -0
- package/dist/metrics/dashboardHTML.js.map +1 -0
- package/dist/metrics/grafanaExport.d.ts +53 -0
- package/dist/metrics/grafanaExport.d.ts.map +1 -0
- package/dist/metrics/grafanaExport.js +277 -0
- package/dist/metrics/grafanaExport.js.map +1 -0
- package/dist/metrics/index.d.ts +17 -0
- package/dist/metrics/index.d.ts.map +1 -0
- package/dist/metrics/index.js +17 -0
- package/dist/metrics/index.js.map +1 -0
- package/dist/metrics/leadsMetrics.d.ts +48 -0
- package/dist/metrics/leadsMetrics.d.ts.map +1 -0
- package/dist/metrics/leadsMetrics.js +82 -0
- package/dist/metrics/leadsMetrics.js.map +1 -0
- package/dist/metrics/leadsMetrics.test.d.ts +2 -0
- package/dist/metrics/leadsMetrics.test.d.ts.map +1 -0
- package/dist/metrics/leadsMetrics.test.js.map +1 -0
- package/dist/metrics/metricsTypes.d.ts +114 -0
- package/dist/metrics/metricsTypes.d.ts.map +1 -0
- package/dist/metrics/metricsTypes.js +7 -0
- package/dist/metrics/metricsTypes.js.map +1 -0
- package/dist/metrics/revenueProjection.d.ts +44 -0
- package/dist/metrics/revenueProjection.d.ts.map +1 -0
- package/dist/metrics/revenueProjection.js +239 -0
- package/dist/metrics/revenueProjection.js.map +1 -0
- package/dist/metrics/revenueTypes.d.ts +62 -0
- package/dist/metrics/revenueTypes.d.ts.map +1 -0
- package/dist/metrics/revenueTypes.js +7 -0
- package/dist/metrics/revenueTypes.js.map +1 -0
- package/dist/metrics/roiCalculator.d.ts +39 -0
- package/dist/metrics/roiCalculator.d.ts.map +1 -0
- package/dist/metrics/roiCalculator.js +128 -0
- package/dist/metrics/roiCalculator.js.map +1 -0
- package/dist/metrics/roiCalculator.test.d.ts +2 -0
- package/dist/metrics/roiCalculator.test.d.ts.map +1 -0
- package/dist/metrics/roiCalculator.test.js.map +1 -0
- package/dist/metrics/trendMetrics.d.ts +51 -0
- package/dist/metrics/trendMetrics.d.ts.map +1 -0
- package/dist/metrics/trendMetrics.js +116 -0
- package/dist/metrics/trendMetrics.js.map +1 -0
- package/dist/modes/conservativeCTOMode.d.ts +32 -0
- package/dist/modes/conservativeCTOMode.d.ts.map +1 -0
- package/dist/modes/conservativeCTOMode.js +98 -0
- package/dist/modes/conservativeCTOMode.js.map +1 -0
- package/dist/modes/index.d.ts +3 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +3 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/seniorDeveloperMode.d.ts +17 -0
- package/dist/modes/seniorDeveloperMode.d.ts.map +1 -0
- package/dist/modes/seniorDeveloperMode.js +77 -0
- package/dist/modes/seniorDeveloperMode.js.map +1 -0
- package/dist/recovery/contextRecovery.d.ts +28 -0
- package/dist/recovery/contextRecovery.d.ts.map +1 -0
- package/dist/recovery/contextRecovery.js +113 -0
- package/dist/recovery/contextRecovery.js.map +1 -0
- package/dist/repair/errorDiagnostics.d.ts +28 -0
- package/dist/repair/errorDiagnostics.d.ts.map +1 -0
- package/dist/repair/errorDiagnostics.js +158 -0
- package/dist/repair/errorDiagnostics.js.map +1 -0
- package/dist/repair/skillCapture.d.ts +22 -0
- package/dist/repair/skillCapture.d.ts.map +1 -0
- package/dist/repair/skillCapture.js +119 -0
- package/dist/repair/skillCapture.js.map +1 -0
- package/dist/reporting/reportGenerator.d.ts +117 -0
- package/dist/reporting/reportGenerator.d.ts.map +1 -0
- package/dist/reporting/reportGenerator.js +613 -0
- package/dist/reporting/reportGenerator.js.map +1 -0
- package/dist/reporting/templates.d.ts +68 -0
- package/dist/reporting/templates.d.ts.map +1 -0
- package/dist/reporting/templates.js +629 -0
- package/dist/reporting/templates.js.map +1 -0
- package/dist/security/owaspScanner.d.ts +74 -0
- package/dist/security/owaspScanner.d.ts.map +1 -0
- package/dist/security/owaspScanner.js +309 -0
- package/dist/security/owaspScanner.js.map +1 -0
- package/dist/security/piiRedaction.d.ts +67 -0
- package/dist/security/piiRedaction.d.ts.map +1 -0
- package/dist/security/piiRedaction.js +189 -0
- package/dist/security/piiRedaction.js.map +1 -0
- package/dist/security/secretsDetection.d.ts +47 -0
- package/dist/security/secretsDetection.d.ts.map +1 -0
- package/dist/security/secretsDetection.js +272 -0
- package/dist/security/secretsDetection.js.map +1 -0
- package/dist/subagents/builder.d.ts +33 -0
- package/dist/subagents/builder.d.ts.map +1 -0
- package/dist/subagents/builder.js +158 -0
- package/dist/subagents/builder.js.map +1 -0
- package/dist/subagents/investigator.d.ts +31 -0
- package/dist/subagents/investigator.d.ts.map +1 -0
- package/dist/subagents/investigator.js +166 -0
- package/dist/subagents/investigator.js.map +1 -0
- package/dist/subagents/orchestrator.d.ts +48 -0
- package/dist/subagents/orchestrator.d.ts.map +1 -0
- package/dist/subagents/orchestrator.js +151 -0
- package/dist/subagents/orchestrator.js.map +1 -0
- package/dist/subagents/reviewer.d.ts +31 -0
- package/dist/subagents/reviewer.d.ts.map +1 -0
- package/dist/subagents/reviewer.js +154 -0
- package/dist/subagents/reviewer.js.map +1 -0
- package/dist/telemetry/tokenCounter.d.ts +21 -0
- package/dist/telemetry/tokenCounter.d.ts.map +1 -0
- package/dist/telemetry/tokenCounter.js +49 -0
- package/dist/telemetry/tokenCounter.js.map +1 -0
- package/package.json +61 -0
- package/src/automation/actionApprover.ts +342 -0
- package/src/automation/actionExecutor.ts +399 -0
- package/src/automation/alertRules.ts +113 -0
- package/src/automation/alertSystem.ts +402 -0
- package/src/automation/competitorResponse.ts +511 -0
- package/src/automation/composioClient.ts +360 -0
- package/src/automation/crmExport.ts +407 -0
- package/src/automation/crmIntegration.ts +268 -0
- package/src/automation/gmailIntegration.ts +244 -0
- package/src/automation/index.ts +17 -0
- package/src/automation/jiraIntegration.ts +310 -0
- package/src/automation/jobQueue.ts +278 -0
- package/src/automation/leadQualification.ts +270 -0
- package/src/automation/qualificationRules.ts +304 -0
- package/src/automation/responseTemplates.ts +419 -0
- package/src/automation/scheduler.ts +254 -0
- package/src/automation/types.ts +270 -0
- package/src/cli/index.ts +646 -0
- package/src/compression/caveman.ts +257 -0
- package/src/config/configManager.ts +63 -0
- package/src/config/schema.ts +27 -0
- package/src/context/autoCompact.ts +123 -0
- package/src/context/readDedup.ts +84 -0
- package/src/context/toolBudgets.ts +43 -0
- package/src/core/auditLogger.ts +69 -0
- package/src/core/stateManager.ts +73 -0
- package/src/database/feedbackSchema.ts +168 -0
- package/src/database/leadsSchema.ts +205 -0
- package/src/intelligence/competitorScoring.ts +292 -0
- package/src/intelligence/competitorTracker.ts +362 -0
- package/src/intelligence/competitorTypes.ts +100 -0
- package/src/intelligence/competitors.json +76 -0
- package/src/intelligence/feedbackLoop.ts +538 -0
- package/src/intelligence/gitHubTracker.ts +204 -0
- package/src/intelligence/hackerNewsScanner.ts +121 -0
- package/src/intelligence/hiringSignals.ts +162 -0
- package/src/intelligence/index.ts +9 -0
- package/src/intelligence/leadEnrichment.ts +275 -0
- package/src/intelligence/leadEnrichmentTypes.ts +54 -0
- package/src/intelligence/marketScanner.ts +285 -0
- package/src/intelligence/polymarketScanner.ts +120 -0
- package/src/intelligence/redditScanner.ts +122 -0
- package/src/intelligence/signalAggregator.ts +94 -0
- package/src/intelligence/trendAnalysis.ts +140 -0
- package/src/intelligence/twitterScanner.ts +94 -0
- package/src/intelligence/types.ts +130 -0
- package/src/intelligence/userComplaints.ts +236 -0
- package/src/metrics/businessMetrics.ts +186 -0
- package/src/metrics/businessMetricsAgg.ts +554 -0
- package/src/metrics/competitorMetrics.ts +175 -0
- package/src/metrics/dashboardGenerator.ts +335 -0
- package/src/metrics/dashboardHTML.ts +637 -0
- package/src/metrics/grafanaExport.ts +347 -0
- package/src/metrics/index.ts +17 -0
- package/src/metrics/leadsMetrics.ts +145 -0
- package/src/metrics/metricsTypes.ts +129 -0
- package/src/metrics/revenueProjection.ts +319 -0
- package/src/metrics/revenueTypes.ts +67 -0
- package/src/metrics/roiCalculator.ts +199 -0
- package/src/metrics/trendMetrics.ts +190 -0
- package/src/modes/conservativeCTOMode.ts +124 -0
- package/src/modes/index.ts +6 -0
- package/src/modes/seniorDeveloperMode.ts +94 -0
- package/src/recovery/contextRecovery.ts +141 -0
- package/src/repair/errorDiagnostics.ts +198 -0
- package/src/repair/skillCapture.ts +157 -0
- package/src/reporting/reportGenerator.ts +802 -0
- package/src/reporting/templates.ts +677 -0
- package/src/security/owaspScanner.ts +390 -0
- package/src/security/phase8Hardening.ts +536 -0
- package/src/security/piiRedaction.ts +215 -0
- package/src/security/secretsDetection.js +271 -0
- package/src/security/secretsDetection.ts +318 -0
- package/src/subagents/builder.ts +277 -0
- package/src/subagents/investigator.ts +224 -0
- package/src/subagents/orchestrator.ts +212 -0
- package/src/subagents/reviewer.ts +215 -0
- package/src/telemetry/tokenCounter.ts +81 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub Competitor Tracker
|
|
3
|
+
* Monitors: Commits, releases, PRs, open issues
|
|
4
|
+
* Detects: Feature additions, architecture changes
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { GithubEvent, Competitor } from './competitorTypes.js';
|
|
8
|
+
|
|
9
|
+
interface GitHubRepoInfo {
|
|
10
|
+
repo: string;
|
|
11
|
+
org: string;
|
|
12
|
+
data: {
|
|
13
|
+
commits_last_week: number;
|
|
14
|
+
recent_releases: string[];
|
|
15
|
+
open_prs: number;
|
|
16
|
+
open_issues: number;
|
|
17
|
+
last_updated: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface MockCommitData {
|
|
22
|
+
date: string;
|
|
23
|
+
message: string;
|
|
24
|
+
hash: string;
|
|
25
|
+
impact: 'low' | 'medium' | 'high';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface MockReleaseData {
|
|
29
|
+
tag: string;
|
|
30
|
+
name: string;
|
|
31
|
+
date: string;
|
|
32
|
+
body: string;
|
|
33
|
+
draft: boolean;
|
|
34
|
+
prerelease: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Mock data: Real implementation would use GitHub API or web scraping
|
|
38
|
+
const MOCK_COMMIT_HISTORY: Record<string, MockCommitData[]> = {
|
|
39
|
+
'anysphere/cursor': [
|
|
40
|
+
{
|
|
41
|
+
date: '2026-06-18',
|
|
42
|
+
message: 'feat: Add Claude 3.5 model support',
|
|
43
|
+
hash: 'abc1234',
|
|
44
|
+
impact: 'high',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
date: '2026-06-15',
|
|
48
|
+
message: 'refactor: Optimize context window management',
|
|
49
|
+
hash: 'def5678',
|
|
50
|
+
impact: 'medium',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
date: '2026-06-10',
|
|
54
|
+
message: 'fix: Improve multi-file editing stability',
|
|
55
|
+
hash: 'ghi9012',
|
|
56
|
+
impact: 'low',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
'Exafunction/codeium': [
|
|
60
|
+
{
|
|
61
|
+
date: '2026-06-17',
|
|
62
|
+
message: 'feat: Add enterprise SSO integration',
|
|
63
|
+
hash: 'jkl3456',
|
|
64
|
+
impact: 'high',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
date: '2026-06-14',
|
|
68
|
+
message: 'perf: Improve latency for real-time suggestions',
|
|
69
|
+
hash: 'mno7890',
|
|
70
|
+
impact: 'medium',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const MOCK_RELEASES: Record<string, MockReleaseData[]> = {
|
|
76
|
+
'anysphere/cursor': [
|
|
77
|
+
{
|
|
78
|
+
tag: 'v0.24.0',
|
|
79
|
+
name: 'Cursor 0.24.0: Claude Opus Integration',
|
|
80
|
+
date: '2026-06-15',
|
|
81
|
+
body: 'Adds support for Claude 3 Opus model for complex tasks',
|
|
82
|
+
draft: false,
|
|
83
|
+
prerelease: false,
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
'Exafunction/codeium': [
|
|
87
|
+
{
|
|
88
|
+
tag: 'v1.15.0',
|
|
89
|
+
name: 'Codeium 1.15.0: Enterprise Features',
|
|
90
|
+
date: '2026-06-10',
|
|
91
|
+
body: 'Enterprise SSO, audit logs, admin dashboard',
|
|
92
|
+
draft: false,
|
|
93
|
+
prerelease: false,
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const FEATURE_KEYWORDS = [
|
|
99
|
+
'feat',
|
|
100
|
+
'feature',
|
|
101
|
+
'add',
|
|
102
|
+
'implement',
|
|
103
|
+
'support',
|
|
104
|
+
'enable',
|
|
105
|
+
'integrate',
|
|
106
|
+
'release',
|
|
107
|
+
];
|
|
108
|
+
const OPTIMIZATION_KEYWORDS = [
|
|
109
|
+
'perf',
|
|
110
|
+
'optimize',
|
|
111
|
+
'improve',
|
|
112
|
+
'refactor',
|
|
113
|
+
'efficiency',
|
|
114
|
+
'speed',
|
|
115
|
+
'latency',
|
|
116
|
+
];
|
|
117
|
+
const BREAKING_KEYWORDS = [
|
|
118
|
+
'breaking',
|
|
119
|
+
'breaking change',
|
|
120
|
+
'major',
|
|
121
|
+
'migration',
|
|
122
|
+
'deprecate',
|
|
123
|
+
];
|
|
124
|
+
|
|
125
|
+
function detectImpactLevel(message: string): 'low' | 'medium' | 'high' {
|
|
126
|
+
const lowerMsg = message.toLowerCase();
|
|
127
|
+
|
|
128
|
+
if (BREAKING_KEYWORDS.some((k) => lowerMsg.includes(k))) return 'high';
|
|
129
|
+
if (FEATURE_KEYWORDS.some((k) => lowerMsg.includes(k))) return 'high';
|
|
130
|
+
if (OPTIMIZATION_KEYWORDS.some((k) => lowerMsg.includes(k))) return 'medium';
|
|
131
|
+
|
|
132
|
+
return 'low';
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export async function trackGitHub(competitor: Competitor): Promise<GithubEvent[]> {
|
|
136
|
+
const events: GithubEvent[] = [];
|
|
137
|
+
|
|
138
|
+
if (!competitor.github_repo || !competitor.github_org) {
|
|
139
|
+
return events;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const fullRepo = `${competitor.github_org}/${competitor.github_repo}`;
|
|
143
|
+
|
|
144
|
+
// Get commit history
|
|
145
|
+
const commits = MOCK_COMMIT_HISTORY[fullRepo] || [];
|
|
146
|
+
for (const commit of commits) {
|
|
147
|
+
events.push({
|
|
148
|
+
date: commit.date,
|
|
149
|
+
type: 'commit',
|
|
150
|
+
feature: extractFeatureFromMessage(commit.message),
|
|
151
|
+
impact_level: commit.impact,
|
|
152
|
+
details: commit.message,
|
|
153
|
+
url: `https://github.com/${fullRepo}/commit/${commit.hash}`,
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Get releases
|
|
158
|
+
const releases = MOCK_RELEASES[fullRepo] || [];
|
|
159
|
+
for (const release of releases) {
|
|
160
|
+
events.push({
|
|
161
|
+
date: release.date,
|
|
162
|
+
type: 'release',
|
|
163
|
+
feature: release.name.replace(/^.*:\s*/, ''),
|
|
164
|
+
impact_level: 'high',
|
|
165
|
+
details: release.body,
|
|
166
|
+
url: `https://github.com/${fullRepo}/releases/tag/${release.tag}`,
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return events.sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime());
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function extractFeatureFromMessage(message: string): string {
|
|
174
|
+
// Extract feature description from commit message
|
|
175
|
+
const match = message.match(/:\s*(.+?)(?:\s*\(|$)/);
|
|
176
|
+
return match ? match[1].trim() : message.substring(0, 50);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function analyzeGitHubTrend(events: GithubEvent[]): {
|
|
180
|
+
monthly_commits: number;
|
|
181
|
+
feature_velocity: number;
|
|
182
|
+
optimization_focus: boolean;
|
|
183
|
+
recent_major_changes: string[];
|
|
184
|
+
} {
|
|
185
|
+
const thirtyDaysAgo = new Date();
|
|
186
|
+
thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
|
|
187
|
+
|
|
188
|
+
const recent = events.filter((e) => new Date(e.date) > thirtyDaysAgo);
|
|
189
|
+
const high_impact = recent.filter((e) => e.impact_level === 'high');
|
|
190
|
+
const has_optimization = recent.some((e) =>
|
|
191
|
+
OPTIMIZATION_KEYWORDS.some((k) =>
|
|
192
|
+
e.details.toLowerCase().includes(k),
|
|
193
|
+
),
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
return {
|
|
197
|
+
monthly_commits: recent.length,
|
|
198
|
+
feature_velocity: high_impact.length,
|
|
199
|
+
optimization_focus: has_optimization,
|
|
200
|
+
recent_major_changes: high_impact
|
|
201
|
+
.slice(0, 3)
|
|
202
|
+
.map((e) => e.feature),
|
|
203
|
+
};
|
|
204
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { HNStory } from './types.js';
|
|
4
|
+
|
|
5
|
+
const HN_API_URL = 'https://hacker-news.firebaseio.com/v0';
|
|
6
|
+
|
|
7
|
+
const HNItemSchema = z.object({
|
|
8
|
+
id: z.number(),
|
|
9
|
+
title: z.string().optional(),
|
|
10
|
+
url: z.string().optional(),
|
|
11
|
+
score: z.number().min(0),
|
|
12
|
+
descendants: z.number().min(0),
|
|
13
|
+
by: z.string(),
|
|
14
|
+
time: z.number(),
|
|
15
|
+
type: z.string(),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
interface HNScannerOptions {
|
|
19
|
+
minPoints?: number;
|
|
20
|
+
days?: number;
|
|
21
|
+
timeout?: number;
|
|
22
|
+
maxStories?: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class HackerNewsScanner {
|
|
26
|
+
private minPoints: number;
|
|
27
|
+
private days: number;
|
|
28
|
+
private timeout: number;
|
|
29
|
+
private maxStories: number;
|
|
30
|
+
|
|
31
|
+
constructor(options: HNScannerOptions = {}) {
|
|
32
|
+
this.minPoints = options.minPoints || 20;
|
|
33
|
+
this.days = options.days || 30;
|
|
34
|
+
this.timeout = options.timeout || 15000;
|
|
35
|
+
this.maxStories = options.maxStories || 500;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async scan(keywords: string[]): Promise<HNStory[]> {
|
|
39
|
+
try {
|
|
40
|
+
const topStories = await this.getTopStories();
|
|
41
|
+
const newStories = await this.getNewStories();
|
|
42
|
+
const deduped = new Set([...topStories, ...newStories]);
|
|
43
|
+
const allStoryIds = Array.from(deduped).slice(0, this.maxStories);
|
|
44
|
+
|
|
45
|
+
const stories: HNStory[] = [];
|
|
46
|
+
const cutoffTime = Date.now() - this.days * 24 * 60 * 60 * 1000;
|
|
47
|
+
|
|
48
|
+
for (const id of allStoryIds) {
|
|
49
|
+
try {
|
|
50
|
+
const story = await this.getStoryDetails(id);
|
|
51
|
+
if (!story) continue;
|
|
52
|
+
|
|
53
|
+
const matchesKeywords = keywords.some((kw) =>
|
|
54
|
+
(story.title || '').toLowerCase().includes(kw.toLowerCase())
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
if (
|
|
58
|
+
matchesKeywords &&
|
|
59
|
+
story.points >= this.minPoints &&
|
|
60
|
+
story.timestamp.getTime() > cutoffTime
|
|
61
|
+
) {
|
|
62
|
+
stories.push(story);
|
|
63
|
+
}
|
|
64
|
+
} catch {
|
|
65
|
+
// Skip failed stories
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return stories;
|
|
70
|
+
} catch (error) {
|
|
71
|
+
console.warn(`HN scan failed: ${(error as Error).message}`);
|
|
72
|
+
return [];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private async getTopStories(): Promise<number[]> {
|
|
77
|
+
const response = await axios.get(`${HN_API_URL}/topstories.json`, {
|
|
78
|
+
timeout: this.timeout,
|
|
79
|
+
});
|
|
80
|
+
return Array.isArray(response.data) ? response.data.slice(0, 100) : [];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
private async getNewStories(): Promise<number[]> {
|
|
84
|
+
const response = await axios.get(`${HN_API_URL}/newstories.json`, {
|
|
85
|
+
timeout: this.timeout,
|
|
86
|
+
});
|
|
87
|
+
return Array.isArray(response.data) ? response.data.slice(0, 100) : [];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
private async getStoryDetails(id: number): Promise<HNStory | null> {
|
|
91
|
+
const response = await axios.get(`${HN_API_URL}/item/${id}.json`, {
|
|
92
|
+
timeout: this.timeout,
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const parsed = HNItemSchema.parse(response.data);
|
|
96
|
+
|
|
97
|
+
if (!parsed.title || parsed.type !== 'story') {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const url = parsed.url || `https://news.ycombinator.com/item?id=${id}`;
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
title: parsed.title,
|
|
105
|
+
url,
|
|
106
|
+
points: parsed.score,
|
|
107
|
+
comments: parsed.descendants,
|
|
108
|
+
rank: 0, // Will be set during ranking
|
|
109
|
+
author: parsed.by,
|
|
110
|
+
timestamp: new Date(parsed.time * 1000),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export async function scanHackerNews(
|
|
116
|
+
keywords: string[],
|
|
117
|
+
options: HNScannerOptions = {}
|
|
118
|
+
): Promise<HNStory[]> {
|
|
119
|
+
const scanner = new HackerNewsScanner(options);
|
|
120
|
+
return scanner.scan(keywords);
|
|
121
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hiring Signals Detector
|
|
3
|
+
* Monitors: LinkedIn hiring pages, job boards (Indeed, Glassdoor)
|
|
4
|
+
* Detects: Strategic pivots via hiring patterns
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { HiringSignal, Competitor } from './competitorTypes.js';
|
|
8
|
+
|
|
9
|
+
interface MockJobPosting {
|
|
10
|
+
date: string;
|
|
11
|
+
title: string;
|
|
12
|
+
role_type: 'engineering' | 'sales' | 'operations' | 'product' | 'leadership';
|
|
13
|
+
location: string[];
|
|
14
|
+
count: number;
|
|
15
|
+
seniority: string;
|
|
16
|
+
description: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Mock hiring data: Real implementation would scrape LinkedIn & job boards
|
|
20
|
+
const MOCK_HIRING_DATA: Record<string, MockJobPosting[]> = {
|
|
21
|
+
'cursor': [
|
|
22
|
+
{
|
|
23
|
+
date: '2026-06-18',
|
|
24
|
+
title: 'Senior ML Engineer',
|
|
25
|
+
role_type: 'engineering',
|
|
26
|
+
location: ['San Francisco, CA', 'Remote'],
|
|
27
|
+
count: 3,
|
|
28
|
+
seniority: 'senior',
|
|
29
|
+
description: 'Build next-generation code generation models',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
date: '2026-06-15',
|
|
33
|
+
title: 'Sales Engineer',
|
|
34
|
+
role_type: 'sales',
|
|
35
|
+
location: ['New York, NY', 'San Francisco, CA'],
|
|
36
|
+
count: 2,
|
|
37
|
+
seniority: 'mid',
|
|
38
|
+
description: 'Enterprise sales for AI code editor',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
'codeium': [
|
|
42
|
+
{
|
|
43
|
+
date: '2026-06-17',
|
|
44
|
+
title: 'Enterprise Account Executive',
|
|
45
|
+
role_type: 'sales',
|
|
46
|
+
location: ['Remote', 'US'],
|
|
47
|
+
count: 5,
|
|
48
|
+
seniority: 'mid-senior',
|
|
49
|
+
description: 'Expand enterprise customer base',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
date: '2026-06-10',
|
|
53
|
+
title: 'ML Research Scientist',
|
|
54
|
+
role_type: 'engineering',
|
|
55
|
+
location: ['Mountain View, CA'],
|
|
56
|
+
count: 2,
|
|
57
|
+
seniority: 'senior',
|
|
58
|
+
description: 'Research better code completion models',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
'github': [
|
|
62
|
+
{
|
|
63
|
+
date: '2026-06-16',
|
|
64
|
+
title: 'AI/ML Product Manager',
|
|
65
|
+
role_type: 'product',
|
|
66
|
+
location: ['San Francisco, CA'],
|
|
67
|
+
count: 1,
|
|
68
|
+
seniority: 'senior',
|
|
69
|
+
description: 'Lead AI-powered developer tools strategy',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// Mock historical data to detect trends
|
|
75
|
+
const HISTORICAL_HIRING: Record<string, number[]> = {
|
|
76
|
+
'cursor': [8, 9, 10, 10, 12], // Last 5 weeks
|
|
77
|
+
'codeium': [15, 16, 18, 20, 22],
|
|
78
|
+
'github': [25, 26, 26, 28, 30],
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
function detectTrend(historical: number[]): 'increasing' | 'stable' | 'decreasing' {
|
|
82
|
+
if (historical.length < 2) return 'stable';
|
|
83
|
+
|
|
84
|
+
const recent = historical.slice(-2);
|
|
85
|
+
const change = recent[1] - recent[0];
|
|
86
|
+
|
|
87
|
+
if (change > 2) return 'increasing';
|
|
88
|
+
if (change < -2) return 'decreasing';
|
|
89
|
+
return 'stable';
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export async function detectHiringSignals(competitor: Competitor): Promise<HiringSignal[]> {
|
|
93
|
+
const signals: HiringSignal[] = [];
|
|
94
|
+
const competitorId = competitor.id.toLowerCase();
|
|
95
|
+
|
|
96
|
+
// Get mock hiring data
|
|
97
|
+
const jobPostings = MOCK_HIRING_DATA[competitorId] || [];
|
|
98
|
+
|
|
99
|
+
const hiring_history = HISTORICAL_HIRING[competitorId] || [10, 10, 10, 10, 10];
|
|
100
|
+
const trend = detectTrend(hiring_history);
|
|
101
|
+
|
|
102
|
+
for (const posting of jobPostings) {
|
|
103
|
+
signals.push({
|
|
104
|
+
date: posting.date,
|
|
105
|
+
competitor_id: competitor.id,
|
|
106
|
+
role: posting.title,
|
|
107
|
+
role_type: posting.role_type,
|
|
108
|
+
count: posting.count,
|
|
109
|
+
location: posting.location,
|
|
110
|
+
trend: trend,
|
|
111
|
+
source: 'linkedin',
|
|
112
|
+
details: posting.description,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return signals.sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime());
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function analyzeHiringStrategy(signals: HiringSignal[]): {
|
|
120
|
+
total_open_positions: number;
|
|
121
|
+
engineering_ratio: number;
|
|
122
|
+
sales_ratio: number;
|
|
123
|
+
strategic_focus: string;
|
|
124
|
+
geographic_expansion: string[];
|
|
125
|
+
} {
|
|
126
|
+
const total = signals.reduce((sum, s) => sum + s.count, 0);
|
|
127
|
+
const engineering = signals
|
|
128
|
+
.filter((s) => s.role_type === 'engineering')
|
|
129
|
+
.reduce((sum, s) => sum + s.count, 0);
|
|
130
|
+
const sales = signals
|
|
131
|
+
.filter((s) => s.role_type === 'sales')
|
|
132
|
+
.reduce((sum, s) => sum + s.count, 0);
|
|
133
|
+
|
|
134
|
+
// Determine strategic focus based on role distribution
|
|
135
|
+
let focus = 'balanced';
|
|
136
|
+
if (engineering > total * 0.6) focus = 'engineering_heavy';
|
|
137
|
+
if (sales > total * 0.4) focus = 'enterprise_expansion';
|
|
138
|
+
|
|
139
|
+
// Extract unique locations
|
|
140
|
+
const locations = Array.from(
|
|
141
|
+
new Set(signals.flatMap((s) => s.location)),
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
total_open_positions: total,
|
|
146
|
+
engineering_ratio: engineering / total,
|
|
147
|
+
sales_ratio: sales / total,
|
|
148
|
+
strategic_focus: focus,
|
|
149
|
+
geographic_expansion: locations,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function calculateHiringVelocity(signals: HiringSignal[]): number {
|
|
154
|
+
// Returns hiring increase rate per month (0-100%)
|
|
155
|
+
if (signals.length === 0) return 0;
|
|
156
|
+
|
|
157
|
+
const thirtyDaysAgo = new Date();
|
|
158
|
+
thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
|
|
159
|
+
|
|
160
|
+
const recent = signals.filter((s) => new Date(s.date) > thirtyDaysAgo);
|
|
161
|
+
return Math.min(recent.length * 5, 100); // Scale to 0-100
|
|
162
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { MarketScanner, scanMarkets } from './marketScanner.js';
|
|
2
|
+
export { RedditScanner, scanReddit } from './redditScanner.js';
|
|
3
|
+
export { HackerNewsScanner, scanHackerNews } from './hackerNewsScanner.js';
|
|
4
|
+
export { TwitterScanner, scanTwitter } from './twitterScanner.js';
|
|
5
|
+
export { PolymarketScanner, scanPolymarket } from './polymarketScanner.js';
|
|
6
|
+
export { TrendAnalyzer, analyzeTrends } from './trendAnalysis.js';
|
|
7
|
+
export { SignalAggregator, aggregateSignals } from './signalAggregator.js';
|
|
8
|
+
|
|
9
|
+
export * from './types.js';
|