Skip to content

Fix workflow inference for non-JS source files#21

Merged
MageByte-Zero merged 2 commits into
mainfrom
fix/issue-19-workflow-language-detection
Jul 6, 2026
Merged

Fix workflow inference for non-JS source files#21
MageByte-Zero merged 2 commits into
mainfrom
fix/issue-19-workflow-language-detection

Conversation

@MageByte-Zero

Copy link
Copy Markdown
Owner

Summary

  • Expand workflow auto-detection so common non-JavaScript source files are recognized as code files.
  • Prevent multi-task Java, Go, Python, Rust, and similar code changes from being misclassified as config/doc-only tweak work.
  • Prepare the 0.8.12 patch release.

Root Cause

infer-workflow.mjs only recognized JavaScript/TypeScript extensions as code files, and its file-matching regex used the same narrow extension set. Paths like src/Main.java, cmd/server/main.go, app/worker.py, and src/parser.rs were ignored by file collection, so multi-task code changes could fall through into the tweak path.

Verification

  • node --test tests/lib/infer-workflow.test.mjs
  • CLI repro for a 3-task Go change now returns full
  • npm run build
  • npm test
  • node scripts/spec-superflow.mjs doctor
  • node scripts/check-version-consistency.mjs

Fixes #19

@MageByte-Zero
MageByte-Zero merged commit 6b4ef92 into main Jul 6, 2026
3 checks passed
@MageByte-Zero
MageByte-Zero deleted the fix/issue-19-workflow-language-detection branch July 6, 2026 06:46
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.

hotfix 模式检查的代码文件为何只有js、ts 等前端代码

1 participant