diff --git a/skills/xget/SKILL.md b/skills/xget/SKILL.md index 86a6a62..0ad2240 100644 --- a/skills/xget/SKILL.md +++ b/skills/xget/SKILL.md @@ -52,7 +52,6 @@ node scripts/xget.mjs convert --base-url https://xget.example.com --url https:// 1. Identify the user's goal: - convert one or more upstream URLs - generate config snippets for npm, pip, Go, NuGet, Docker, or AI SDKs - - explain the current Cargo limitation for registry source replacement - explain which Xget prefix to use - propose or document a self-hosted deployment 2. Refresh the live platform map with `scripts/xget.mjs` if the answer depends @@ -98,8 +97,5 @@ node scripts/xget.mjs platforms --format table Report that no current Xget mapping was found. - The default pip snippet should omit `trusted-host`; add it only when the deployment really needs it and keep it aligned with the actual host. -- The `cargo` preset is informational for now. Xget can rewrite direct - `crates.io` HTTP URLs under `/crates/...`, but this skill should not emit - Cargo source replacement config until Xget exposes a registry index endpoint. - When generating docs or templates without a real domain, prefer `https://xget.example.com` over the public demo. diff --git a/skills/xget/references/REFERENCE.md b/skills/xget/references/REFERENCE.md index fbfb48b..f6ccc8b 100644 --- a/skills/xget/references/REFERENCE.md +++ b/skills/xget/references/REFERENCE.md @@ -48,10 +48,6 @@ The script derives these path shapes from platform keys: - NuGet v3 index: `https://{base}/nuget/v3/index.json` - Direct crates.io HTTP URLs: `https://{base}/crates/...` -Cargo registry source replacement is not currently emitted by this skill. Xget's -`/crates/...` route rewrites direct crates.io HTTP API and download URLs, but it -does not expose a Cargo registry index endpoint. - ### Container registries - Docker Hub: `https://{base}/cr/docker/...` @@ -82,7 +78,6 @@ Representative presets: - `pip` - `go` - `nuget` -- `cargo` (returns the current limitation instead of source replacement config) - `docker-ghcr` - `openai` - `anthropic` diff --git a/skills/xget/scripts/xget.mjs b/skills/xget/scripts/xget.mjs index 483dac5..7f84479 100644 --- a/skills/xget/scripts/xget.mjs +++ b/skills/xget/scripts/xget.mjs @@ -71,10 +71,8 @@ convert options: snippet options: --base-url URL Xget base URL. Defaults to XGET_BASE_URL. - --preset NAME One of: npm, pip, go, nuget, cargo, docker-ghcr, - openai, anthropic, gemini. The cargo preset - explains the current limitation instead of - emitting source replacement config. + --preset NAME One of: npm, pip, go, nuget, docker-ghcr, + openai, anthropic, gemini. --format json|text Examples: @@ -449,15 +447,6 @@ export function createSnippet(baseUrl, preset) { 'dotnet nuget list source' ] }, - cargo: { - preset, - supported: false, - summary: 'Cargo registry source replacement is not currently supported by Xget.', - notes: [ - 'Xget can convert direct crates.io HTTP URLs under /crates/..., but it does not expose a Cargo registry index.', - 'Do not generate ~/.cargo/config.toml source replacement entries until Xget provides a registry index endpoint.' - ] - }, 'docker-ghcr': { preset, summary: 'Pull GHCR images through Xget.', diff --git a/test/unit/xget-skill.test.js b/test/unit/xget-skill.test.js index 24ebe65..6f9b6ab 100644 --- a/test/unit/xget-skill.test.js +++ b/test/unit/xget-skill.test.js @@ -73,15 +73,5 @@ describe('xget skill helpers', () => { 'Only add "pip config set global.trusted-host xget.example.com" when the deployment really needs it.' ); }); - - it('returns an explicit unsupported notice for cargo instead of a broken config file', () => { - const snippet = createSnippet(BASE_URL, 'cargo'); - - expect(snippet.supported).toBe(false); - expect(snippet.files).toBeUndefined(); - expect(snippet.notes).toContain( - 'Do not generate ~/.cargo/config.toml source replacement entries until Xget provides a registry index endpoint.' - ); - }); }); });