detect_dependencies setupmonitors Scan a project directory for SDKs Phonon knows about (OpenAI, Stripe, Vercel, etc.) and return the matching provider slugs. Call this FIRST when a user asks to set up monitoring — the response tells you what to feed into add_provider_monitors.
Input
| Field | Type | Description |
|---|---|---|
packageJson required | String | The literal contents of package.json (or pyproject.toml / Cargo.toml / etc.) read from the user's repo. Phonon parses imports + dep names from this string. |
extraImports | Optional | Optional extra import paths you found by grepping source files. Use this when package.json is missing or when you can see imports the manifest doesn't list. |
Example prompts
- "Set up monitoring for this app."
- "What upstream services should I monitor?"
- "I'm about to deploy — what should be on my status page?"