Commit Graph
18 Commits
Author SHA1 Message Date
xixu-me 82c27dab5e chore: align repository docs and ci 2026-03-21 17:05:21 +08:00
xixu-me 1b67fd2ff1 refactor(core): modularize request pipeline 2026-03-20 15:36:10 +08:00
xixu-me 29e2d2c966 chore: switch license to AGPL-3.0 2026-03-16 18:31:06 +08:00
xixu-me 993570fede fix(docker): harden auth token parsing 2026-03-16 14:51:43 +08:00
xixu-me fc7e08abfc feat: refactor AI inference request detection and Docker authentication handling 2026-03-09 17:49:47 +08:00
xixu-me 929337c494 feat: update dependencies and improve request handling 2026-03-09 17:37:27 +08:00
xixu-me 3957f78d9d Revert "fix(proxy): correct registry auth and rewrite lengths"
This reverts commit cb44ddb66c.
2026-03-09 17:00:43 +08:00
xixu-me 9a666f37a0 Revert "style(proxy): format docker protocol tests"
This reverts commit 213e04de76.
2026-03-09 16:56:27 +08:00
xixu-meandCopilot Autofix powered by AI 7cfcee61ba Potential fix for code scanning alert no. 17: Information exposure through a stack trace
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-03-06 21:24:53 +08:00
xixu-me 213e04de76 style(proxy): format docker protocol tests 2026-03-06 20:30:35 +08:00
xixu-me cb44ddb66c fix(proxy): correct registry auth and rewrite lengths 2026-03-06 20:27:43 +08:00
xixu-me 71e239060c fix(proxy): tighten protocol routing and stabilize tests 2026-03-06 19:41:14 +08:00
xixu-me e2e571aef4 fix: resolve ESLint JSDoc warnings
- Remove duplicate @param in docker.js
- Remove extra blank lines after JSDoc descriptions in huggingface.js
2026-01-31 22:40:27 +08:00
xixu-me 29fe048984 Improve Docker redirect and auth header handling
Adds special handling for Docker registry redirects to prevent leaking Authorization headers to S3 or blob storage by using manual redirect mode and stripping sensitive headers before following redirects. Refactors scope handling for unauthorized responses and ensures retry logic for token fetches also respects Docker redirect requirements.
2025-12-12 13:29:07 +08:00
xixu-me e8d7a0ef6b Refactor Docker scope extraction and 401 response
Moved Docker registry scope extraction logic into a new getScopeFromUrl function in docker.js for reuse and clarity. Updated responseUnauthorized to accept an optional scope and improved its error response format to be more Docker/OCI-compliant. Refactored index.js to use the new scope extraction and 401 response logic.
2025-12-12 13:16:21 +08:00
xixu-me 07f5f35972 Improve JSDoc types and add eslint-plugin-jsdoc
Standardized JSDoc type annotations across the codebase, replacing 'Object' with 'object' and refining function signatures for better type safety. Added and configured eslint-plugin-jsdoc for enhanced documentation linting, and updated ESLint settings to include adapters and new JSDoc rules. Updated dependencies to include eslint-plugin-jsdoc and related packages.
2025-12-11 13:27:26 +08:00
xixu-me 5cbcd0c3d4 Add GPLv3 license headers to source files
Added GNU General Public License v3 headers to protocol and utility modules for Xget, clarifying copyright and licensing information. This ensures compliance and transparency regarding the project's open source status.
2025-12-11 12:34:10 +08:00
xixu-me 70ff5b248d Refactor protocol and utility logic into separate modules
Moved Docker/OCI protocol handling, performance monitoring, security, and validation logic into dedicated modules under src/protocols and src/utils. Updated src/index.js to use these new modules, improving maintainability and separation of concerns. Added pre-computed sorted platform keys for efficient matching in platform config.
2025-12-10 15:03:27 +08:00