:traffic_light:小程序雷达:AI 驱动的小程序技术选型、趋势追踪和迁移诊断工具
This report summarizes scanner evidence for justjavac/awesome-wechat-weapp, a TypeScript project with 51,177 GitHub stars. SynthScan examined 44,141 lines of code across 166 source files, recording 31 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 0.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 31 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 30 finding(s).
Which changes need focused human review? 31 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 31 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/admin/resource-maintenance-form.tsx | 23 | function resolveSelectedResourceId(resources: EditableResource[], requestedId: string | null) { | CODE |
| LOW | app/api/admin/resources/[id]/route.ts | 65 | export function buildResourceMaintenanceLog(input: { | CODE |
| LOW⚡ | scripts/verify-deployment.ts | 146 | function normalizeCanonicalBaseUrl(value: string) { | CODE |
| LOW⚡ | scripts/verify-deployment.ts | 152 | function getExplicitCanonicalBaseUrl() { | CODE |
| LOW⚡ | scripts/verify-deployment.ts | 158 | function parseCanonicalBaseFromRobots(text: string) { | CODE |
| LOW | scripts/verify-deployment.ts | 173 | function parseCanonicalBaseFromSitemap(text: string) { | CODE |
| LOW | scripts/verify-deployment.ts | 486 | async function checkAuthorizedCronDryRun() { | CODE |
| LOW | scripts/verify-deployment.ts | 529 | async function checkAuthorizedAdminReadiness() { | CODE |
| LOW | scripts/validate-data.ts | 52 | function isNonEmptySingleLineStringArray(value: unknown): value is string[] { | CODE |
| LOW | lib/resource-db-mapping.ts | 34 | export function mapResourcesToAlternativeDbInserts(resources: RadarResource[]): ResourceAlternativeInsert[] { | CODE |
| LOW | lib/doctor.ts | 218 | async function buildRecommendedResources(report: DoctorReport, input: DoctorProjectInput) { | CODE |
| LOW | lib/upstash.ts | 19 | export function describeUpstashRedisEnvRequirement() { | CODE |
| LOW | lib/radar-url.ts | 12 | export function buildRadarFilterSearchParams(filters: RadarFilterState) { | CODE |
| LOW | lib/production-readiness.ts | 117 | export function summarizeProductionReadiness(items: ProductionReadinessItem[]) { | CODE |
| LOW | lib/resources.ts | 252 | export function isCompleteDatabaseResourceSet(databaseCount: number, expectedCount: number) { | CODE |
| LOW | lib/resources.ts | 547 | function compareValidationChecklistFor(resource: RadarResource) { | CODE |
| LOW | lib/operation-log.ts | 34 | export function getOperationLogRetentionDays(value = process.env.OPERATION_LOG_RETENTION_DAYS) { | CODE |
| LOW⚡ | lib/ai-summaries.ts | 102 | export function createResourceAiSummaries(resources: RadarResource[], limit?: number) { | CODE |
| LOW⚡ | lib/ai-summaries.ts | 106 | export function filterValidResourceAiSummaries(summaries: GeneratedAiSummary[], resources: RadarResource[]) { | CODE |
| LOW⚡ | lib/ai-summaries.ts | 110 | export async function persistResourceAiSummaries(summaries: GeneratedAiSummary[]) { | CODE |
| LOW | lib/ai-prompts.ts | 150 | export function buildAdvisorPromptContract(question: string, answer: AdvisorAnswer, resources: RadarResource[]): AiPromp | CODE |
| LOW | lib/ai-prompts.ts | 190 | export function buildResourceSummaryPromptContract(resource: RadarResource, draftSummary?: GeneratedAiSummary): AiPrompt | CODE |
| LOW | lib/ai-advisor.ts | 65 | function selectedResourcesForDraft(draftAnswer: AdvisorAnswer, resources: RadarResource[]) { | CODE |
| LOW | lib/ai-advisor.ts | 70 | function buildAdvisorNarrativeMessages(question: string, draftAnswer: AdvisorAnswer, resources: RadarResource[]): AiProm | CODE |
| LOW | lib/ai-advisor.ts | 177 | export async function createAdvisorAnswerWithAi(question: string, resources: RadarResource[]): Promise<AdvisorGeneration | CODE |
| LOW | lib/weekly.ts | 310 | function parsePersistedWeeklySnapshot(value: unknown): PersistedWeeklySnapshot { | CODE |
| LOW | lib/weekly.ts | 327 | export function hydrateWeeklyReportFromSnapshot(row: PersistedWeeklyReportRow, resources: RadarResource[]): WeeklyReport | CODE |
| LOW | lib/weekly.ts | 348 | async function readLatestDatabaseWeeklyReport(): Promise<WeeklyReport | null> { | CODE |
| LOW | lib/ai-output-validation.ts | 18 | export function validateGeneratedAiSummary(summary: GeneratedAiSummary, resources: RadarResource[]): AiOutputValidationR | CODE |
| LOW | lib/ai-output-validation.ts | 55 | export function validateGeneratedAiSummaries(summaries: GeneratedAiSummary[], resources: RadarResource[]): AiOutputValid | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |