mirror of
https://github.com/railly/agentfiles.git
synced 2026-07-22 06:12:56 +00:00
Discover, organize, and edit AI coding agent skills across Claude Code, Cursor, Codex, Windsurf, Copilot, and more from inside Obsidian. - Multi-tool skill discovery (13 tools supported) - Three-column view: sidebar, list, detail - Real-time file watching with debounce - YAML frontmatter parsing and metadata display - Built-in editor with Cmd+S save - Full-text search across all skills - Token/char count estimation - Real SVG logos from tryelements.dev registry - Filter by tool, type, favorites, collections
39 lines
757 B
JavaScript
39 lines
757 B
JavaScript
import esbuild from "esbuild";
|
|
import process from "process";
|
|
|
|
const prod = process.argv[2] === "production";
|
|
|
|
const context = await esbuild.context({
|
|
entryPoints: ["src/main.ts"],
|
|
bundle: true,
|
|
external: [
|
|
"obsidian",
|
|
"electron",
|
|
"@codemirror/autocomplete",
|
|
"@codemirror/collab",
|
|
"@codemirror/commands",
|
|
"@codemirror/language",
|
|
"@codemirror/lint",
|
|
"@codemirror/search",
|
|
"@codemirror/state",
|
|
"@codemirror/view",
|
|
"@lezer/common",
|
|
"@lezer/highlight",
|
|
"@lezer/lr",
|
|
],
|
|
platform: "node",
|
|
format: "cjs",
|
|
target: "es2022",
|
|
logLevel: "info",
|
|
sourcemap: prod ? false : "inline",
|
|
treeShaking: true,
|
|
outfile: "main.js",
|
|
minify: prod,
|
|
});
|
|
|
|
if (prod) {
|
|
await context.rebuild();
|
|
process.exit(0);
|
|
} else {
|
|
await context.watch();
|
|
}
|