()
| 41 | // Local seed/fallback used when GitHub is unreachable, unconfigured, or the |
| 42 | // data file doesn't exist in the repo yet. |
| 43 | function readLocalFeatures(): Feature[] { |
| 44 | try { |
| 45 | const raw = readFileSync(LOCAL_DATA_PATH, "utf-8"); |
| 46 | const parsed = JSON.parse(raw); |
| 47 | return Array.isArray(parsed) ? parsed : []; |
| 48 | } catch { |
| 49 | return []; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | const featureInputSchema = z.object({ |
| 54 | nameEn: z.string().trim().min(1).max(80), |
no outgoing calls
no test coverage detected