Repository navigation
mcpx: preflight import-graph report stage (#1915 stage 1) #2575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ca3af6b
mcpx: preflight import-graph report stage (#1915 stage 1)
dezren39 44434f6
fix(mcpx): edge-level graph errors, scanner lexical context, warnings…
dezren39 91fcd57
fix(mcpx): runtime resolution args + report-mode isolation for import…
dezren39 03b655b
fix(mcpx): scan template interpolations and skip comments in import()…
dezren39 9defedd
mcpx: address Codex round-4 findings on the import-graph report (PR #…
dezren39 e6ead98
mcpx: address Codex round-5 findings on the import-graph report (PR #…
dezren39 a7ebcfe
fix(mcpx): graph runs in execution cwd, kind-based deno detection, AS…
9b63dfe
ci: retrigger PR workflows (runs never created for heads after ca3af6bf)
dezren39 2ba48bb
Merge remote-tracking branch 'origin/main' into queue/3194-1915-impor…
dezren39 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: developing-today/code
Length of output: 4011
Script executed:
Repository: developing-today/code
Length of output: 14180
Script executed:
Repository: developing-today/code
Length of output: 6548
Reject unknown
importsOnDynamicvalues on/v1/exec./v1/execaccepts anyimportsOnDynamicstring, and an unknown value such asfailsis not fatal. A computed import then reports as non-fatal and the script runs, although the caller asked forfail. Validate the value inhandleExecand return 400 for anything other thanwarn,fail,ignore, or empty.Suggested fix
if strings.TrimSpace(req.Source) == "" && req.File == "" { writeErr(w, http.StatusBadRequest, errors.New("source is required")) return } + switch req.Options.ImportsOnDynamic { + case "", "warn", "fail", "ignore": + default: + writeErr(w, http.StatusBadRequest, fmt.Errorf("importsOnDynamic %q: want warn, fail or ignore", req.Options.ImportsOnDynamic)) + return + }