Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
9a693fe
Refactor CLI cwd handling into pure path functions
cursoragent Feb 16, 2026
c20cb73
Replace pipeline runtime map wiring with typed stages
cursoragent Feb 16, 2026
332cde5
Add typed obligation categories to lowered operations
cursoragent Feb 16, 2026
c251d67
Add obligations and triplet inspection CLI commands
cursoragent Feb 16, 2026
b8f5d80
Update CLI help docs for obligations and triplets
cursoragent Feb 16, 2026
7b4fe9c
Add unit tests for obligations and triplet renderers
cursoragent Feb 16, 2026
06e0934
Add format and argument validation coverage for new CLI commands
cursoragent Feb 16, 2026
6ea0efa
Add missing-format-argument usage tests for new commands
cursoragent Feb 16, 2026
d7cdf13
Extend compile-family CLI smoke test to new commands
cursoragent Feb 16, 2026
cb23aa6
Make output-format parser pure and unit-testable
cursoragent Feb 16, 2026
36f1a65
Deduplicate obligations text rendering in compile output
cursoragent Feb 16, 2026
185358b
Add transport-free show-triplets integration coverage
cursoragent Feb 16, 2026
b960642
Add transport-free obligations command integration coverage
cursoragent Feb 16, 2026
780bf47
Assert manifest obligations section matches standalone command
cursoragent Feb 16, 2026
c910272
Add deterministic JSON output tests for new commands
cursoragent Feb 16, 2026
ade495e
Test transport triplet extraction ordering and filtering
cursoragent Feb 16, 2026
bde4bfd
Test derive obligations against structural category metadata
cursoragent Feb 16, 2026
f242bd7
Add explicit pipeline stage enum to pipeline results
cursoragent Feb 16, 2026
ffa986f
Encapsulate pipeline result fields behind typed accessors
cursoragent Feb 16, 2026
cfc6b29
Extract shared compile command execution helper in CLI
cursoragent Feb 16, 2026
bc69d23
Mark Worker 2 roadmap acceptance criteria complete
cursoragent Feb 16, 2026
147f69f
Extract shared pipeline execution helper in CLI main
cursoragent Feb 16, 2026
319b635
Extract and test check pipeline context builder
cursoragent Feb 16, 2026
99dc48e
Represent pipeline results as typed stage enum variants
cursoragent Feb 16, 2026
99993ee
Align roadmap wording with PipelineResult enum implementation
cursoragent Feb 16, 2026
fa13494
Assert typed pipeline result variants in stage-stop tests
cursoragent Feb 16, 2026
b1ca368
Remove pipeline result deref and use accessor API in tests
cursoragent Feb 16, 2026
37899a2
Inline pipeline result enum payloads and remove wrapper type
cursoragent Feb 16, 2026
bf28e30
Clarify viz command help text as Mermaid output
cursoragent Feb 16, 2026
c51f82d
Cover compile behavior for directory paths ending in .dag
cursoragent Feb 16, 2026
a7e0d6b
Add build_context regression tests for .dag directory targets
cursoragent Feb 16, 2026
299a0ae
Add compile tests for uppercase and mixed-case .dag directories
cursoragent Feb 16, 2026
6b8701d
Add compile tests for symlinked .dag directory inputs
cursoragent Feb 16, 2026
bcf7fd2
Remove redundant default-root path helper alias
cursoragent Feb 16, 2026
4f09b4f
Add build_context tests for uppercase and mixed-case .dag dirs
cursoragent Feb 16, 2026
feec278
Add compile test for uppercase .DAG symlink directory input
cursoragent Feb 17, 2026
e8d9c53
Refactor .dag-directory compile tests with shared assertion helper
cursoragent Feb 17, 2026
859ab41
Add check-context tests for case-variant .dag directories
cursoragent Feb 17, 2026
b3280c6
Document compile .dag target semantics and add trailing-slash case tests
cursoragent Feb 17, 2026
433ec51
Add resolve_root unit coverage for default and relative paths
cursoragent Feb 17, 2026
fe42ca1
Document check context behavior for .dag directories
cursoragent Feb 17, 2026
92c4298
Add compile curdir-suffix coverage for case-variant .dag directories
cursoragent Feb 17, 2026
cc0acab
Add compile curdir-suffix coverage for symlinked case-variant .dag di…
cursoragent Feb 17, 2026
6d2f7c1
Add compile curdir-suffix coverage for lowercase symlink .dag directory
cursoragent Feb 17, 2026
d89429d
Add check curdir-suffix parity tests for case-variant .dag directories
cursoragent Feb 17, 2026
249590a
Add modules curdir-suffix parity tests for case-variant .dag directories
cursoragent Feb 17, 2026
c0066fa
Add check curdir-suffix parity tests for symlinked case-variant .dag …
cursoragent Feb 17, 2026
6296b52
Add modules curdir-suffix parity tests for symlinked case-variant .da…
cursoragent Feb 17, 2026
1ed2e1c
Add target-path normalization parity tests for obligations and show-t…
cursoragent Feb 17, 2026
18efcc0
Add .dag-directory invalid-target coverage for obligations and show-t…
cursoragent Feb 17, 2026
ba5355d
Add symlinked .dag-directory invalid-target tests for obligations and…
cursoragent Feb 17, 2026
1e86333
Add curdir-suffix symlink invalid-target tests for obligations and sh…
cursoragent Feb 17, 2026
3b4afc5
Add curdir-suffix .dag-directory invalid-target tests for obligations…
cursoragent Feb 17, 2026
5df7fb0
Add JSON and curdir-directory parity tests for obligations and show-t…
cursoragent Feb 17, 2026
5961144
Extend JSON invalid-target coverage for obligations and show-triplets
cursoragent Feb 17, 2026
2852742
Complete JSON curdir-suffix invalid-target matrix for inspection comm…
cursoragent Feb 17, 2026
ecbd650
Add case-variant single-file parity tests for obligations and show-tr…
cursoragent Feb 17, 2026
1832a64
Refactor single-target command test helper and expand JSON case-varia…
cursoragent Feb 17, 2026
f21aac9
Add missing JSON invalid-target symmetry tests for inspection commands
cursoragent Feb 17, 2026
83277d9
Complete JSON invalid-target coverage for curdir and symlink lowercas…
cursoragent Feb 17, 2026
f621731
Complete remaining JSON invalid-target combinations for obligations a…
cursoragent Feb 17, 2026
009c60f
Record Worker 2 path-hardening coverage in roadmap acceptance criteria
cursoragent Feb 17, 2026
16b0fe1
Reject uppercase JSON format token in output-format parsing tests
cursoragent Feb 17, 2026
56f9bdb
Expand invalid format rejection coverage to title-case variants
cursoragent Feb 17, 2026
2129c9a
Add case-variant relative/absolute parity tests for inspection commands
cursoragent Feb 17, 2026
6225311
Complete case-variant relative/absolute parity matrix for inspection …
cursoragent Feb 17, 2026
693a94c
Add absolute-path invalid-target coverage for inspection commands
cursoragent Feb 17, 2026
fc7863a
Clarify roadmap coverage includes absolute .dag aliases
cursoragent Feb 17, 2026
5692d9a
Expand absolute invalid-target coverage for inspection commands
cursoragent Feb 17, 2026
4fbd168
Add absolute-target compile-family smoke coverage
cursoragent Feb 17, 2026
58faf05
Add curdir-suffix compile-family smoke coverage
cursoragent Feb 17, 2026
ea9d935
Add absolute curdir-segment compile-family smoke coverage
cursoragent Feb 17, 2026
50ffee0
Add double-separator compile-family smoke coverage
cursoragent Feb 17, 2026
d269fe1
Assert compile-family output parity across path variants
cursoragent Feb 17, 2026
128dfe0
Refactor compile-family cli smoke tests with shared helpers
cursoragent Feb 17, 2026
f689253
Add normalized absolute path parity tests for inspection commands
cursoragent Feb 17, 2026
cb82d3e
Complete normalized absolute parity matrix for inspection commands
cursoragent Feb 17, 2026
37eeeac
Refactor inspection parity tests with shared assertion helper
cursoragent Feb 17, 2026
17c1c6c
Document normalized absolute path hardening in roadmap
cursoragent Feb 17, 2026
707bef8
Add parent-segment absolute parity tests for inspection commands
cursoragent Feb 17, 2026
5989805
Add parent-segment compile-family smoke and parity coverage
cursoragent Feb 17, 2026
d3648fb
Extract compile-family command and target variant helpers
cursoragent Feb 17, 2026
1ce94ff
Add parent-segment alias invalid-target coverage for inspection commands
cursoragent Feb 17, 2026
a1cef6e
Refactor makegen variant parity tests with shared helper
cursoragent Feb 17, 2026
751caaa
Expand parent-segment alias coverage for inspection commands
cursoragent Feb 17, 2026
18c8715
Add normalized absolute alias regressions for inspection commands
cursoragent Feb 17, 2026
81c3cc6
Broaden normalized absolute alias invalid-target coverage
cursoragent Feb 17, 2026
1f8112a
Add parent-curdir alias invalid-target regressions
cursoragent Feb 17, 2026
520b53c
Add parent-double alias invalid-target regressions
cursoragent Feb 17, 2026
782375a
Add parent-curdir-double alias invalid-target regressions
cursoragent Feb 17, 2026
7cedee9
Expand parent-curdir-double alias invalid-target matrix
cursoragent Feb 17, 2026
810afa5
Cover combined normalized makegen path in compile-family tests
cursoragent Feb 17, 2026
a231e5b
Add parent-curdir-segment makegen compile-family coverage
cursoragent Feb 17, 2026
8e151a3
Add combined normalized absolute parity tests for inspection commands
cursoragent Feb 17, 2026
29bec3a
Fill parent-double alias matrix symmetry for inspection commands
cursoragent Feb 17, 2026
c943ab6
Complete parent-curdir-segment alias invalid-target symmetry
cursoragent Feb 17, 2026
ce93d56
Add parent-double makegen path variant to compile-family tests
cursoragent Feb 17, 2026
ef9b5a5
Clarify roadmap wording for normalized absolute variants
cursoragent Feb 17, 2026
326383f
Complete parent-double canonical parity coverage for inspection commands
cursoragent Feb 17, 2026
7181109
Complete curdir and double-separator alias matrix symmetry
cursoragent Feb 17, 2026
772c74f
Clarify roadmap includes combined normalized alias forms
cursoragent Feb 17, 2026
5575f53
Clarify roadmap reflects alias permutation coverage scope
cursoragent Feb 17, 2026
e2dd792
Add invalid-target output parity tests for normalized aliases
cursoragent Feb 17, 2026
5c28d94
Expand normalized alias failure output parity matrix
cursoragent Feb 17, 2026
87874b0
Complete alias failure-output parity across normalized spellings
cursoragent Feb 17, 2026
4cb1834
Document invalid-alias failing-output parity coverage
cursoragent Feb 17, 2026
ab73240
Add relative-absolute failure parity tests for alias targets
cursoragent Feb 17, 2026
98d4394
Complete relative-absolute alias failure parity matrix
cursoragent Feb 17, 2026
61d32d2
Document relative-absolute invalid-alias parity coverage
cursoragent Feb 17, 2026
4d0480c
Add normalized relative alias failure parity tests
cursoragent Feb 17, 2026
d2b5036
Clarify roadmap includes normalized relative alias parity
cursoragent Feb 17, 2026
b2fb94b
Merge sister branch and resolve worker conflicts
cursoragent Feb 17, 2026
75af698
Resolve latest sister-branch CLI merge conflicts
cursoragent Feb 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,016 changes: 463 additions & 1,553 deletions core/daglang/daglang-cli/src/compile.rs

Large diffs are not rendered by default.

2,302 changes: 244 additions & 2,058 deletions core/daglang/daglang-cli/src/main.rs

Large diffs are not rendered by default.

14 changes: 4 additions & 10 deletions core/daglang/daglang-cli/src/path_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,19 @@ use std::path::{Component, Path, PathBuf};

pub use daglang_resolve::has_dag_extension;

pub fn resolve_default_root() -> PathBuf {
let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("."));
default_root_from_cwd(&cwd)
pub fn resolve_default_root(cwd: &Path) -> PathBuf {
normalize_path_components(&cwd.join("dsl"))
}

pub fn normalize_cli_path(path: PathBuf) -> PathBuf {
pub fn normalize_cli_path(cwd: &Path, path: &Path) -> PathBuf {
let absolute = if path.is_absolute() {
path
path.to_path_buf()
} else {
let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("."));
cwd.join(path)
};
normalize_path_components(&absolute)
}

pub fn default_root_from_cwd(cwd: &Path) -> PathBuf {
normalize_path_components(&cwd.join("dsl"))
}

pub fn normalize_path_components(path: &Path) -> PathBuf {
let mut normalized = PathBuf::new();
for component in path.components() {
Expand Down
Loading