agdex 0.6.0 → 0.7.0
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 +17 -8
- package/dist/index-ecjc59t4.js +2356 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
tailwindProvider,
|
|
40
40
|
tauriProvider,
|
|
41
41
|
tyProvider
|
|
42
|
-
} from "../index-
|
|
42
|
+
} from "../index-ecjc59t4.js";
|
|
43
43
|
import {
|
|
44
44
|
__commonJS,
|
|
45
45
|
__require,
|
|
@@ -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;
|
|
@@ -7347,8 +7354,10 @@ No providers selected.
|
|
|
7347
7354
|
async function promptForOutputFile() {
|
|
7348
7355
|
const defaultOutput = getDefaultOutput();
|
|
7349
7356
|
const choices = [
|
|
7350
|
-
{ title: "
|
|
7357
|
+
{ title: "CLAUDE.local.md", value: "CLAUDE.local.md" },
|
|
7358
|
+
{ title: "AGENTS.local.md", value: "AGENTS.local.md" },
|
|
7351
7359
|
{ title: "CLAUDE.md", value: "CLAUDE.md" },
|
|
7360
|
+
{ title: "AGENTS.md", value: "AGENTS.md" },
|
|
7352
7361
|
{ title: "Custom...", value: "__custom__" }
|
|
7353
7362
|
];
|
|
7354
7363
|
const defaultIndex = choices.findIndex((c) => c.value === defaultOutput);
|
|
@@ -7668,9 +7677,9 @@ Sources you can index:
|
|
|
7668
7677
|
• Claude Code skills
|
|
7669
7678
|
|
|
7670
7679
|
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);
|
|
7672
|
-
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
|
-
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);
|
|
7680
|
+
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.local.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);
|
|
7681
|
+
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.local.md)").option("-e, --extensions <exts>", "File extensions to include (comma-separated, default: .md,.mdx)").action(runLocal);
|
|
7682
|
+
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.local.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
7683
|
program2.command("list").description("List available documentation providers").action(runList);
|
|
7675
7684
|
async function runRemove(options) {
|
|
7676
7685
|
const cwd = process.cwd();
|
|
@@ -7771,7 +7780,7 @@ No indices found to remove.
|
|
|
7771
7780
|
console.log(import_picocolors2.default.gray(` (${formatSize(sizeBefore)} → ${formatSize(sizeAfter)})`));
|
|
7772
7781
|
console.log("");
|
|
7773
7782
|
}
|
|
7774
|
-
program2.command("remove").description("Remove embedded indices from AGENTS.md/CLAUDE.md").option("-o, --output <file>", "Target file (default: from config or CLAUDE.md)").option("--docs", "Remove only docs index").option("--skills", "Remove only skills index").option("-p, --provider <name>", "Remove only a specific provider's docs index").action(runRemove);
|
|
7783
|
+
program2.command("remove").description("Remove embedded indices from AGENTS.md/CLAUDE.md").option("-o, --output <file>", "Target file (default: from config or CLAUDE.local.md)").option("--docs", "Remove only docs index").option("--skills", "Remove only skills index").option("-p, --provider <name>", "Remove only a specific provider's docs index").action(runRemove);
|
|
7775
7784
|
var skillsCommand = program2.command("skills").description("Manage Claude Code skills indexing");
|
|
7776
7785
|
async function runSkillsEmbed(options) {
|
|
7777
7786
|
const cwd = process.cwd();
|
|
@@ -8008,8 +8017,8 @@ Selected ${import_picocolors2.default.bold(selected.name)} from ${import_picocol
|
|
|
8008
8017
|
process.exit(1);
|
|
8009
8018
|
}
|
|
8010
8019
|
}
|
|
8011
|
-
skillsCommand.command("embed").description("Embed skills index into AGENTS.md").option("-o, --output <file>", "Target file (default: from config or CLAUDE.md)").option("--plugin <path...>", "Additional plugin repo paths (with plugins/ structure)").option("--plugins", "Include enabled plugins from settings.json (default: true)").option("--no-plugins", "Exclude enabled plugins from settings.json").option("--user", "Include ~/.claude/skills (default: true)").option("--no-user", "Exclude ~/.claude/skills").option("--project", "Include .claude/skills (default: true)").option("--no-project", "Exclude .claude/skills").option("--repo <owner/repo>", "Fetch and index skills from a skills.sh-compatible GitHub repository").action(runSkillsEmbed);
|
|
8020
|
+
skillsCommand.command("embed").description("Embed skills index into AGENTS.md").option("-o, --output <file>", "Target file (default: from config or CLAUDE.local.md)").option("--plugin <path...>", "Additional plugin repo paths (with plugins/ structure)").option("--plugins", "Include enabled plugins from settings.json (default: true)").option("--no-plugins", "Exclude enabled plugins from settings.json").option("--user", "Include ~/.claude/skills (default: true)").option("--no-user", "Exclude ~/.claude/skills").option("--project", "Include .claude/skills (default: true)").option("--no-project", "Exclude .claude/skills").option("--repo <owner/repo>", "Fetch and index skills from a skills.sh-compatible GitHub repository").action(runSkillsEmbed);
|
|
8012
8021
|
skillsCommand.command("list").description("List discovered skills").option("--plugin <path...>", "Additional plugin repo paths (with plugins/ structure)").option("--plugins", "Include enabled plugins from settings.json (default: true)").option("--no-plugins", "Exclude enabled plugins from settings.json").option("--user", "Include ~/.claude/skills (default: true)").option("--no-user", "Exclude ~/.claude/skills").option("--project", "Include .claude/skills (default: true)").option("--no-project", "Exclude .claude/skills").action(runSkillsList);
|
|
8013
|
-
skillsCommand.command("local <skills-path>").description("Index skills from a local path").option("-o, --output <file>", "Target file (default: from config or CLAUDE.md)").option("-n, --name <name>", "Label for this skill source").action(runSkillsLocal);
|
|
8022
|
+
skillsCommand.command("local <skills-path>").description("Index skills from a local path").option("-o, --output <file>", "Target file (default: from config or CLAUDE.local.md)").option("-n, --name <name>", "Label for this skill source").action(runSkillsLocal);
|
|
8014
8023
|
skillsCommand.command("find [query]").description("Search skills.sh for agent skills").option("-l, --limit <n>", "Max results (default: 20)", parseInt).option("-o, --output <file>", "Target file for embedding").action(runSkillsFind);
|
|
8015
8024
|
program2.parse();
|