Skip to content
Edith

Docs

Command reference

Dependency evidence operations

Enable the dependencyEvidence extension, then inspect a local repository through ed invoke. Every operation requires an absolute path to a repository containing package.json, and rejects payloads with other keys or non-string values. No installation, network request or repository write is performed.

Terminal
ed invoke dependencyEvidence dependencyEvidence.report --timeout 120 --json '{"path":"/Users/you/code/storefront"}'ed invoke dependencyEvidence dependencyEvidence.markdown --timeout 120 --json '{"path":"/Users/you/code/storefront"}' --rawed invoke dependencyEvidence dependencyEvidence.evidence --json '{"path":"/Users/you/code/storefront","file":"node_modules/alpha/LICENSE"}' --raw
Operation Payload Result
dependencyEvidence.report {"path":"/absolute/repository"} JSON inventory
dependencyEvidence.markdown Same JSON string containing the Markdown inventory; --raw prints the text
dependencyEvidence.evidence {"path":"/absolute/repository","file":"node_modules/name/LICENSE"} JSON string with one evidence file's UTF-8 text

The JSON inventory has schemaVersion (2), manifests, packages and issues. Each package has a stable path-based id, name, optional version, optional installed path, optional declaredLicense, assessment, status, relationships, requiredBy and evidence. Missing optional JSON values are omitted. Requirements contain manifest, requested name, requirement and kind; evidence contains the repository-relative path. Pass that path as file to dependencyEvidence.evidence to read the text. The file must be a license candidate of the package that contains it, inside the repository, and at most 256 KiB; any other file is rejected.

relationships contains direct, transitive or both. Each physical install appears once, so identical names and versions at separate paths remain separate. status is filesFound, missingFiles, missingPackage, notInstalled or unreadablePackage. Every assessment remains unverified. File presence never verifies a declaration, and unknown licenses remain unknown. Missing optional dependencies and optional peers are notInstalled and are not reported as issues; a missing required peer is missingPackage.

Reports have stable ordering and no timestamp or absolute repository path. Neither inventory embeds license text. A scan that reaches a limit fails with a message naming it. Failed and cancelled scans do not return partial success.