You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reviews pull requests and risky changes for the contentstack-cli-content-type plugin. Use when reviewing diffs, security-sensitive edits, dependency upgrades, or changes to compare/diagram/temp-file behavior, ESLint, and tests.
Changes touching compare HTML, temp files, diagram output, or src/core/contentstack/.
Instructions
Provide consistent security, correctness, and maintainability review for this repository. The plugin handles stack API keys in error messages, opens HTML diffs in a browser, and writes diagram files via Graphviz.
Use Critical / Important / Suggestion when leaving feedback.
Highlights
Secrets: Never approve logging of tokens, authtoken / authorization values, or raw management tokens.
Dependencies: axios, diff2html, git-diff, node-graphviz, tmp, cli-ux—review changelog and supply-chain for version bumps.
Quality: TypeScript and eslint-config-oclif-typescript (.eslintrc); behavioral changes should include or update Jest tests where appropriate.
Security and privacy
Severity
Item
Critical
No logging or serializing of access tokens, management tokens, or Bearer strings.
Critical
No new console.log of full API responses that may contain secrets.
Important
Stack API keys appear in user-facing errors only in line with src/core/contentstack/client.ts (buildError + optional key suffix).
Correctness
Severity
Item
Critical
Command flags and setup(flags) behavior remain consistent; compare-remote still resolves origin vs remote stacks correctly.
Important
Compare: left/right version logic and warning when versions are equal; HTML output path and browser open behavior unchanged unless intentionally redesigned.
Important
Diagram: output path validation; Graphviz / DOT paths; orientation and file type flags.
Suggestion
Edge cases for empty audit logs, missing references, or single-version content types.
Compare and diagram (touching core)
Severity
Item
Critical
compare.ts: temp HTML creation does not write sensitive data beyond the diff; file handling is safe on failure paths.
Important
diagram.ts: sanitizePath / path usage; large stack models do not cause unbounded memory without consideration.
Suggestion
User messaging when Graphviz is missing or SVG generation fails.