tieline

v0.1.4
io.github.nugehs/tieline Checked 16 hours ago Published 5 months ago

Static FE-BE contract-drift checker: finds frontend calls the backend does not expose.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

tieline_check

Run the static frontend↔backend contract-drift check. Returns totals plus the drift bucket (frontend calls that resolve to no backend route — the bug bucket) and the unverifiable bucket (URLs built at runtime, reported never guessed).

ParameterTypeDescription
configstringPath to tieline.config.json. Defaults to searching upward from the server's working directory.

tieline_list

Return the full resolved contract map: every frontend endpoint with its status (matched / drift / unverifiable) plus backend routes no frontend call reaches.

ParameterTypeDescription
configstringPath to tieline.config.json. Defaults to searching upward from the server's working directory.

tieline_orphans

List backend routes that no resolvable frontend call reaches (dead/unused routes).

ParameterTypeDescription
configstringPath to tieline.config.json. Defaults to searching upward from the server's working directory.

tieline_doctor

Diff routes parsed from source code (a native server adapter) against the routes declared in the OpenAPI spec (server.spec). Returns undocumented (in code, missing from the spec) and phantom (in the spec, missing from code).

ParameterTypeDescription
configstringPath to tieline.config.json. Defaults to searching upward from the server's working directory.

tieline_init

Auto-detect nearby repos (frontend + backend stacks) and write a tieline.config.json. Returns the generated config and what was detected.

ParameterTypeDescription
cwdstringDirectory to scan and write the config into. Defaults to the working directory.