Audit dependencies for UNPKG conversion
audit_dependenciesClassify a project's runtime dependencies for conversion to direct UNPKG file lookups, in framework context when given. Read the project's package.json yourself and pass its dependencies map; this tool checks each package against live npm/UNPKG data and returns convert_now / convert_carefully / keep_bundled / needs_review with suggested URLs and an import map for the safe conversions. IMPORTANT: suitability is not usage. Before calling, scan the project's HTML/files for an existing import map and CDN URLs and pass them as existingImports; entries already on UNPKG come back as already_on_unpkg, not conversion candidates. If you did not scan, say so — currentUsage will be absent rather than falsely 'not detected'. Only pass runtime dependencies, never devDependencies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framework | No | The project's framework, if any. Framework-managed packages (react/react-dom in Next, vue in Nuxt, ...) are classified keep_bundled in context. Auto-detected from the dependency map when omitted. | |
| dependencies | Yes | Map of package name to the version spec from package.json, e.g. { "preact": "^10.25.4" } | |
| existingImports | No | Existing imports found in the project: bare specifier to current URL, typically an import map extracted from HTML (include subpath keys like preact/hooks). Pass {} if you scanned and found none. Omit only if you did not scan; the result then reports current usage as unknown instead of not detected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| impact | Yes | ||
| summary | Yes | ||
| framework | Yes | ||
| importmap | Yes | ||
| nextSteps | Yes | ||
| peerNotes | Yes | ||
| scopeNote | Yes | ||
| shieldNote | Yes | ||
| dependencies | Yes | ||
| frameworkNote | Yes | ||
| mapValidation | Yes | ||
| importmapScope | Yes | ||
| shieldVerdicts | Yes | ||
| peerImportsAdded | Yes | ||
| currentStateSummary | Yes |