Skip to content

Add support for .cjs and .mjs JavaScript extensions#285

Merged
wowo-zZ merged 1 commit intoiflytek:mainfrom
utafrali:fix/issue-282-bug
Apr 11, 2026
Merged

Add support for .cjs and .mjs JavaScript extensions#285
wowo-zZ merged 1 commit intoiflytek:mainfrom
utafrali:fix/issue-282-bug

Conversation

@utafrali
Copy link
Copy Markdown
Contributor

Summary

.cjs and .mjs are standard Node.js module formats but weren't in the whitelist, so packages with these files were getting rejected. Added them to the file type whitelist, MIME type detection, and validation policy so they're properly recognized.

Validation

  • Backend tests passed
  • Frontend typecheck/build passed
  • OpenAPI SDK regenerated or checked when API contracts changed
  • Smoke test run when relevant

Commands run:

mvn test

Risk

User-facing impact: Packages with .cjs/.mjs files will now upload successfully instead of being rejected.

Deployment or migration impact: None, just expanding the accepted file types.

Rollback approach: Revert the whitelist additions if needed.

Notes

Related issue: Fixes #282

Follow-up work: None

Docs or operator runbooks updated when behavior changed: Updated docs/07-skill-protocol.md

@wowo-zZ wowo-zZ merged commit 02b3ac5 into iflytek:main Apr 11, 2026
2 of 3 checks passed
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.

[Bug]

2 participants