Skip to content

Add snow dcm compile and dependencies commands - #3082

Draft
sfc-gh-jsommerfeld wants to merge 3 commits into
feature/dcm-analyze-improvementsfrom
feature/dcm-dependencies
Draft

Add snow dcm compile and dependencies commands#3082
sfc-gh-jsommerfeld wants to merge 3 commits into
feature/dcm-analyze-improvementsfrom
feature/dcm-dependencies

Conversation

@sfc-gh-jsommerfeld

@sfc-gh-jsommerfeld sfc-gh-jsommerfeld commented Jun 4, 2026

Copy link
Copy Markdown

Combines the snow dcm compile improvements and the new snow dcm dependencies command into a single PR (the former dcm-compile-improvements branch has been folded in here).

Summary

  • compile: rename analyze-errors -> compile; download server-rendered definitions to rendered_definitions/ and the raw response to compile.json (under --save-output); reorder output so "Rendered definitions saved to:" precedes findings, followed by a trailing separator.
  • dependencies: new snow dcm dependencies command that writes a Markdown file with a Mermaid flowchart of the object dependency graph; shares the rendered-definitions output with compile.
  • Both commands use the unified phase checklist (RENDER -> COMPILE); ANALYZE is an implementation detail and never shown as a phase.

Stack

Based on #3070 (analyze) -> #3069 (deploy/plan/purge live progress) -> #3068 (upload progress + canonical phase model).

Test plan

  • tests/dcm/test_commands.py (compile, dependencies, deploy, plan, purge)
  • tests/dcm/test_reporters/test_dependencies_reporter.py
  • tests/dcm/test_progress.py, tests/dcm/test_utils.py
  • Pre-existing unrelated snapshot failures remain in TestDCMTest / TestDCMRefresh.

@sfc-gh-jsommerfeld
sfc-gh-jsommerfeld requested review from a team as code owners June 4, 2026 00:17
@sfc-gh-jsommerfeld
sfc-gh-jsommerfeld marked this pull request as draft June 4, 2026 00:17
@sfc-gh-jsommerfeld sfc-gh-jsommerfeld changed the title Feature/dcm dependencies Adding snow dcm dependencies command Jun 4, 2026
@sfc-gh-jsommerfeld
sfc-gh-jsommerfeld force-pushed the feature/dcm-dependencies branch 3 times, most recently from 004b720 to 3e74830 Compare June 8, 2026 19:09
sfc-gh-jsommerfeld and others added 2 commits June 8, 2026 21:47
Rename the analyze-errors command to compile and have it download the
server-rendered project definitions to rendered_definitions/ plus the raw
response to compile.json (under --save-output). The output is reordered so the
"Rendered definitions saved to:" line precedes the findings, followed by a
trailing separator.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add `snow dcm dependencies`, which analyzes a DCM Project and writes a
Markdown file containing a Mermaid flowchart of the object dependency graph
(plus the rendered definitions under --save-output). Uses the unified
compile-phase checklist (RENDER -> COMPILE) and shares the OUTPUT_FOLDER and
rendered-definitions helpers with the compile command.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sfc-gh-jsommerfeld
sfc-gh-jsommerfeld force-pushed the feature/dcm-dependencies branch from 3e74830 to 2445fae Compare June 8, 2026 19:53
@sfc-gh-jsommerfeld sfc-gh-jsommerfeld changed the title Adding snow dcm dependencies command Add snow dcm compile and dependencies commands Jun 8, 2026
@sfc-gh-jsommerfeld
sfc-gh-jsommerfeld changed the base branch from main to feature/dcm-analyze-improvements June 8, 2026 19:54
Collapse the two divergent blues — the periwinkle hex #a0a8fe (refresh
status / unknown rows) and the terminal-default named "blue" (running
phase, progress bar/spinner, analyze INFO findings / file headers) —
onto one BLUE constant in styles.py, and route progress.py's hardcoded
style="blue" literals through it, so every blue in DCM output renders
the same hue.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant