citation-cli
v0.1.0
Published
Cite, don't import — track cited code in package.json with Quote / Paraphrase / Synthesize semantics
Maintainers
Readme
citation-cli
Cite, don't import — track cited code in package.json with
Quote / Paraphrase / Synthesize semantics.
Install
npm install -g citation-cliOr as a dev dependency:
npm install --save-dev citation-cliUsage
Record a citation — scans files in the target directory and records
each as a quote with its sha256 hash in package.json:
cite add my-pkg \
--source ../packages/ref \
--version 1.0.0 \
--target ./src/clients/my-pkgCheck integrity of cited files — compares sha256 hashes of quoted files, reports drift or missing files:
cite checkCheck a specific package:
cite check my-pkgFile status
Files are tracked with one of three statuses:
- quote — exact copy, sha256 recorded, checked for drift
- paraphrase — intentionally modified, skipped during check
- synthesize — merged into an existing file, skipped during check
Migrating from assimilai
If you have a legacy "assimilai" block in package.json, migrate
it to the v2 "citation" schema with:
cite migrateUse --dry-run to preview the translation without writing.
