agdex 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +8 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -7050,6 +7050,13 @@ Cancelled.`));
|
|
|
7050
7050
|
}
|
|
7051
7051
|
async function runEmbed(options) {
|
|
7052
7052
|
const cwd = process.cwd();
|
|
7053
|
+
if (options.url) {
|
|
7054
|
+
await runUrl(options.url, {
|
|
7055
|
+
output: options.output,
|
|
7056
|
+
name: options.description
|
|
7057
|
+
});
|
|
7058
|
+
return;
|
|
7059
|
+
}
|
|
7053
7060
|
let provider;
|
|
7054
7061
|
let version = options.fwVersion;
|
|
7055
7062
|
let output;
|
|
@@ -7668,7 +7675,7 @@ Sources you can index:
|
|
|
7668
7675
|
• Claude Code skills
|
|
7669
7676
|
|
|
7670
7677
|
Run 'agdex' without arguments for interactive mode.`).version("0.4.2");
|
|
7671
|
-
program2.command("embed", { isDefault: true }).description("Embed documentation index into AGENTS.md/CLAUDE.md").option("-p, --provider <name>", "Documentation provider (nextjs, react, etc.)").option("--fw-version <version>", "Framework version (auto-detected if not provided)").option("-o, --output <file>", "Target file (default: from config or CLAUDE.md)").option("--repo <owner/repo>", "Custom GitHub repository").option("--docs-path <path>", "Path to docs folder in repository").option("-g, --global", "Store docs in global cache (~/.cache/agdex/) (default)").option("-l, --local", "Store docs in local .agdex/ instead of global cache").option("-d, --description <text>", "Additional description to include in the index").action(runEmbed);
|
|
7678
|
+
program2.command("embed", { isDefault: true }).description("Embed documentation index into AGENTS.md/CLAUDE.md").option("-p, --provider <name>", "Documentation provider (nextjs, react, etc.)").option("--fw-version <version>", "Framework version (auto-detected if not provided)").option("-o, --output <file>", "Target file (default: from config or CLAUDE.md)").option("--repo <owner/repo>", "Custom GitHub repository").option("--docs-path <path>", "Path to docs folder in repository").option("-g, --global", "Store docs in global cache (~/.cache/agdex/) (default)").option("-l, --local", "Store docs in local .agdex/ instead of global cache").option("-d, --description <text>", "Additional description to include in the index").option("-u, --url <url>", "Scrape documentation from a website URL").action(runEmbed);
|
|
7672
7679
|
program2.command("local <docs-path>").description("Build index from local documentation directory").option("-n, --name <name>", "Display name for the documentation").option("-o, --output <file>", "Target file (default: from config or CLAUDE.md)").option("-e, --extensions <exts>", "File extensions to include (comma-separated, default: .md,.mdx)").action(runLocal);
|
|
7673
7680
|
program2.command("url <url>").description("Scrape documentation from a website URL and build index").option("-n, --name <name>", "Display name for the documentation (default: derived from URL)").option("-o, --output <file>", "Target file (default: from config or CLAUDE.md)").option("-s, --selector <css>", "CSS selector for main content (default: main#main-content, main, article)").option("-c, --concurrency <n>", "Max concurrent fetches (default: 5)").option("--delay <ms>", "Delay between fetch batches in ms (default: 200)").action(runUrl);
|
|
7674
7681
|
program2.command("list").description("List available documentation providers").action(runList);
|