@fabioplunser/epd 0.5.12 → 0.5.14
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.js +109 -18
- package/docs/.vitepress/config.mts +8 -1
- package/docs/.vitepress/theme/DeployAnimation.vue +283 -553
- package/docs/.vitepress/theme/style.css +50 -8
- package/docs/agents.md +151 -0
- package/docs/getting-started.md +76 -24
- package/docs/guide/getting-started.md +76 -24
- package/docs/guide.md +63 -198
- package/docs/index.md +6 -33
- package/docs/public/llms-full.txt +344 -0
- package/docs/public/llms.txt +43 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -270,7 +270,7 @@ function loadEnvironment(root, destination) {
|
|
|
270
270
|
return env;
|
|
271
271
|
}
|
|
272
272
|
function interpolateText(text, env, file) {
|
|
273
|
-
|
|
273
|
+
const substitute = (value) => value.replace(/\$(\$?)\{([A-Za-z_][A-Za-z0-9_]*)(?::-([^}]*))?\}/g, (_m, escape, name, dflt) => {
|
|
274
274
|
if (escape)
|
|
275
275
|
return `\${${name}${dflt !== undefined ? `:-${dflt}` : ""}}`;
|
|
276
276
|
const v = env[name];
|
|
@@ -280,6 +280,83 @@ function interpolateText(text, env, file) {
|
|
|
280
280
|
return dflt;
|
|
281
281
|
throw new EpdError(`${file}: environment variable \${${name}} is not set`, `Export it, add it to .env, or write \${${name}:-fallback}.`);
|
|
282
282
|
});
|
|
283
|
+
let quote = null;
|
|
284
|
+
let flowDepth = 0;
|
|
285
|
+
let blockIndent = null;
|
|
286
|
+
let blockContentIndent = null;
|
|
287
|
+
return text.split(`
|
|
288
|
+
`).map((line) => {
|
|
289
|
+
const indent = line.match(/^ */)[0].length;
|
|
290
|
+
if (blockIndent !== null) {
|
|
291
|
+
if (!line.trim() || indent > blockIndent) {
|
|
292
|
+
blockContentIndent ??= line.trim() ? indent : null;
|
|
293
|
+
if (blockContentIndent === null || indent >= blockContentIndent)
|
|
294
|
+
return substitute(line);
|
|
295
|
+
}
|
|
296
|
+
blockIndent = blockContentIndent = null;
|
|
297
|
+
}
|
|
298
|
+
let comment = line.length;
|
|
299
|
+
let scalarStart = quote === null;
|
|
300
|
+
for (let i = 0;i < line.length; i++) {
|
|
301
|
+
const char = line[i];
|
|
302
|
+
if (quote) {
|
|
303
|
+
if (quote === '"' && char === "\\") {
|
|
304
|
+
i++;
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
if (char === quote) {
|
|
308
|
+
if (quote === "'" && line[i + 1] === "'") {
|
|
309
|
+
i++;
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
quote = null;
|
|
313
|
+
}
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
if (char === "#" && (i === 0 || /\s/.test(line[i - 1]))) {
|
|
317
|
+
comment = i;
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
if (char === "$" && /^\$\$?\{/.test(line.slice(i))) {
|
|
321
|
+
const end = line.indexOf("}", i);
|
|
322
|
+
if (end !== -1) {
|
|
323
|
+
i = end;
|
|
324
|
+
scalarStart = false;
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (scalarStart && (char === "'" || char === '"')) {
|
|
329
|
+
quote = char;
|
|
330
|
+
scalarStart = false;
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
if (/\s/.test(char))
|
|
334
|
+
continue;
|
|
335
|
+
if (scalarStart && (char === "&" || char === "!")) {
|
|
336
|
+
while (i + 1 < line.length && !/\s/.test(line[i + 1]))
|
|
337
|
+
i++;
|
|
338
|
+
continue;
|
|
339
|
+
}
|
|
340
|
+
if (scalarStart && (char === "[" || char === "{")) {
|
|
341
|
+
flowDepth++;
|
|
342
|
+
} else if (flowDepth && (char === "]" || char === "}")) {
|
|
343
|
+
flowDepth--;
|
|
344
|
+
scalarStart = false;
|
|
345
|
+
} else if (flowDepth && (char === "," || char === ":") || (char === ":" || char === "-" || char === "?") && /\s/.test(line[i + 1] || " ")) {
|
|
346
|
+
scalarStart = true;
|
|
347
|
+
} else {
|
|
348
|
+
scalarStart = false;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
const content = line.slice(0, comment);
|
|
352
|
+
if (!quote && /(?:^|:\s+|-\s+)[|>](?:[1-9][+-]?|[+-][1-9]?)?\s*$/.test(content)) {
|
|
353
|
+
blockIndent = indent;
|
|
354
|
+
const explicitIndent = content.match(/[|>][+-]?([1-9])/);
|
|
355
|
+
blockContentIndent = explicitIndent ? indent + Number(explicitIndent[1]) : null;
|
|
356
|
+
}
|
|
357
|
+
return substitute(content) + line.slice(comment);
|
|
358
|
+
}).join(`
|
|
359
|
+
`);
|
|
283
360
|
}
|
|
284
361
|
function deepMerge(base, overlay) {
|
|
285
362
|
const out = Array.isArray(base) ? [...base] : { ...base };
|
|
@@ -7407,7 +7484,13 @@ ${c.bold("SEVALLA MANAGED DATABASES")} (${dbs.length})
|
|
|
7407
7484
|
// src/core/update.ts
|
|
7408
7485
|
import { chmodSync as chmodSync3, existsSync as existsSync10, mkdirSync as mkdirSync6, readFileSync as readFileSync7, renameSync, writeFileSync as writeFileSync7 } from "fs";
|
|
7409
7486
|
import { homedir as homedir4 } from "os";
|
|
7410
|
-
import { dirname as dirname3, join as join9 } from "path";
|
|
7487
|
+
import { basename as basename3, dirname as dirname3, join as join9 } from "path";
|
|
7488
|
+
function isCompiledExecutable(execPath, isBun) {
|
|
7489
|
+
return isBun && !["bun", "bun.exe"].includes(basename3(execPath).toLowerCase());
|
|
7490
|
+
}
|
|
7491
|
+
function packageUpdateCommand(manager, pkgSpec, platform = process.platform) {
|
|
7492
|
+
return platform === "win32" && manager === "npm" ? [process.env.ComSpec || "cmd.exe", "/d", "/s", "/c", `npm install -g ${pkgSpec}`] : [manager, "install", "-g", pkgSpec];
|
|
7493
|
+
}
|
|
7411
7494
|
function parseSemver(v) {
|
|
7412
7495
|
const clean = v.replace(/^v/, "").trim();
|
|
7413
7496
|
const parts = clean.split("-")[0].split(".").map((n) => Number(n) || 0);
|
|
@@ -7486,7 +7569,7 @@ async function checkForUpdate(currentVersion, options = {}) {
|
|
|
7486
7569
|
async function performUpdate(targetVersion) {
|
|
7487
7570
|
const isBun = typeof process.isBun !== "undefined";
|
|
7488
7571
|
const execPath = process.execPath || "";
|
|
7489
|
-
const isCompiledBinary = isBun
|
|
7572
|
+
const isCompiledBinary = isCompiledExecutable(execPath, isBun);
|
|
7490
7573
|
if (isCompiledBinary) {
|
|
7491
7574
|
try {
|
|
7492
7575
|
const platform = process.platform;
|
|
@@ -7504,7 +7587,8 @@ async function performUpdate(targetVersion) {
|
|
|
7504
7587
|
binaryName = "epd-windows-x64.exe";
|
|
7505
7588
|
if (binaryName) {
|
|
7506
7589
|
log.step(`Downloading ${binaryName} from GitHub Releases...`);
|
|
7507
|
-
const
|
|
7590
|
+
const release = targetVersion ? `download/v${targetVersion}` : "latest/download";
|
|
7591
|
+
const url = `https://github.com/FabioPlunser/epd/releases/${release}/${binaryName}`;
|
|
7508
7592
|
const res = await fetch(url);
|
|
7509
7593
|
if (!res.ok)
|
|
7510
7594
|
throw new Error(`HTTP ${res.status} ${res.statusText}`);
|
|
@@ -7522,20 +7606,17 @@ async function performUpdate(targetVersion) {
|
|
|
7522
7606
|
const isBunGlobal = (process.argv[1] || "").includes(".bun");
|
|
7523
7607
|
const pkgMgr = isBunGlobal ? "bun" : "npm";
|
|
7524
7608
|
const pkgSpec = targetVersion ? `@fabioplunser/epd@${targetVersion}` : "@fabioplunser/epd@latest";
|
|
7525
|
-
|
|
7526
|
-
log.step(`Updating via ${pkgMgr}...`);
|
|
7527
|
-
const res = await runShell(`${pkgMgr} install -g ${pkgSpec}`, { stream: true, allowFailure: true });
|
|
7528
|
-
return res.code === 0;
|
|
7529
|
-
} catch {
|
|
7530
|
-
const fallback = pkgMgr === "bun" ? "npm" : "bun";
|
|
7609
|
+
for (const manager of [pkgMgr, pkgMgr === "bun" ? "npm" : "bun"]) {
|
|
7531
7610
|
try {
|
|
7532
|
-
log.step(`
|
|
7533
|
-
const res = await
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7611
|
+
log.step(`Updating via ${manager}...`);
|
|
7612
|
+
const res = await run(packageUpdateCommand(manager, pkgSpec), { stream: true, allowFailure: true });
|
|
7613
|
+
if (res.code === 0)
|
|
7614
|
+
return true;
|
|
7615
|
+
} catch (error) {
|
|
7616
|
+
log.debug(`${manager} update failed: ${error}`);
|
|
7537
7617
|
}
|
|
7538
7618
|
}
|
|
7619
|
+
return false;
|
|
7539
7620
|
}
|
|
7540
7621
|
async function promptAutoUpdate(currentVersion) {
|
|
7541
7622
|
if (!interactive() || process.env.CI || process.env.EPD_NO_UPDATE_CHECK === "1" || process.env.EPD_NO_UPDATE_CHECK === "true") {
|
|
@@ -7570,14 +7651,23 @@ var init_update = __esm(() => {
|
|
|
7570
7651
|
init_proc();
|
|
7571
7652
|
});
|
|
7572
7653
|
|
|
7654
|
+
// package.json
|
|
7655
|
+
var version = "0.5.14";
|
|
7656
|
+
var init_package = () => {};
|
|
7657
|
+
|
|
7573
7658
|
// src/version.ts
|
|
7574
|
-
var VERSION
|
|
7659
|
+
var VERSION;
|
|
7660
|
+
var init_version = __esm(() => {
|
|
7661
|
+
init_package();
|
|
7662
|
+
VERSION = version;
|
|
7663
|
+
});
|
|
7575
7664
|
|
|
7576
7665
|
// src/commands/update.ts
|
|
7577
7666
|
var update;
|
|
7578
7667
|
var init_update2 = __esm(() => {
|
|
7579
7668
|
init_log();
|
|
7580
7669
|
init_update();
|
|
7670
|
+
init_version();
|
|
7581
7671
|
update = {
|
|
7582
7672
|
name: "update",
|
|
7583
7673
|
aliases: ["upgrade"],
|
|
@@ -8490,7 +8580,7 @@ Options
|
|
|
8490
8580
|
|
|
8491
8581
|
// src/commands/restore.ts
|
|
8492
8582
|
import { createReadStream, existsSync as existsSync11 } from "fs";
|
|
8493
|
-
import { basename as
|
|
8583
|
+
import { basename as basename4, resolve as resolve4 } from "path";
|
|
8494
8584
|
var restore;
|
|
8495
8585
|
var init_restore = __esm(() => {
|
|
8496
8586
|
init_log();
|
|
@@ -8521,7 +8611,7 @@ Options
|
|
|
8521
8611
|
throw new EpdError(`Backup file not found: ${absPath}`);
|
|
8522
8612
|
const loaded = ctx.load();
|
|
8523
8613
|
const cfg = loaded.config;
|
|
8524
|
-
const fileBase =
|
|
8614
|
+
const fileBase = basename4(absPath);
|
|
8525
8615
|
const accessories = cfg.accessories;
|
|
8526
8616
|
if (!accessories.length)
|
|
8527
8617
|
throw new EpdError("No accessories configured in epd.yml.");
|
|
@@ -9236,6 +9326,7 @@ init_prompt();
|
|
|
9236
9326
|
init_load();
|
|
9237
9327
|
init_commands();
|
|
9238
9328
|
init_update();
|
|
9329
|
+
init_version();
|
|
9239
9330
|
import { parseArgs } from "util";
|
|
9240
9331
|
var CATEGORIES = [
|
|
9241
9332
|
{
|
|
@@ -14,6 +14,7 @@ export default defineConfig({
|
|
|
14
14
|
siteTitle: "EPD",
|
|
15
15
|
nav: [
|
|
16
16
|
{ text: "Getting Started", link: "/guide/getting-started" },
|
|
17
|
+
{ text: "AI Agents", link: "/agents" },
|
|
17
18
|
{ text: "Guide", link: "/guide" },
|
|
18
19
|
{ text: "CI/CD", link: "/ci-cd" },
|
|
19
20
|
{ text: "Hetzner & DNS", link: "/hetzner-dns" },
|
|
@@ -22,11 +23,13 @@ export default defineConfig({
|
|
|
22
23
|
items: [
|
|
23
24
|
{ text: "CLI Commands", link: "/reference/cli" },
|
|
24
25
|
{ text: "Configuration (epd.yml)", link: "/reference/config" },
|
|
26
|
+
{ text: "For AI Agents", link: "/agents" },
|
|
27
|
+
{ text: "llms.txt (Raw Feed)", link: "/llms.txt" },
|
|
25
28
|
{ text: "Troubleshooting", link: "/guide/troubleshooting" },
|
|
26
29
|
],
|
|
27
30
|
},
|
|
28
31
|
{
|
|
29
|
-
text: "v0.5.
|
|
32
|
+
text: "v0.5.12",
|
|
30
33
|
items: [
|
|
31
34
|
{ text: "Releases & Changelog", link: "https://github.com/FabioPlunser/epd/releases" },
|
|
32
35
|
{ text: "NPM Package", link: "https://www.npmjs.com/package/@fabioplunser/epd" },
|
|
@@ -39,6 +42,7 @@ export default defineConfig({
|
|
|
39
42
|
items: [
|
|
40
43
|
{ text: "Quickstart (5 Mins)", link: "/guide/getting-started" },
|
|
41
44
|
{ text: "Installation", link: "/guide/installation" },
|
|
45
|
+
{ text: "For AI Agents (Cursor / Windsurf)", link: "/agents" },
|
|
42
46
|
],
|
|
43
47
|
},
|
|
44
48
|
{
|
|
@@ -59,6 +63,7 @@ export default defineConfig({
|
|
|
59
63
|
{
|
|
60
64
|
text: "Integrations & Automation",
|
|
61
65
|
items: [
|
|
66
|
+
{ text: "AI Coding Agents", link: "/agents" },
|
|
62
67
|
{ text: "GitHub Actions CI/CD", link: "/ci-cd" },
|
|
63
68
|
{ text: "Hetzner Cloud & DNS", link: "/hetzner-dns" },
|
|
64
69
|
],
|
|
@@ -68,6 +73,8 @@ export default defineConfig({
|
|
|
68
73
|
items: [
|
|
69
74
|
{ text: "CLI Commands Reference", link: "/reference/cli" },
|
|
70
75
|
{ text: "epd.yml Configuration", link: "/reference/config" },
|
|
76
|
+
{ text: "Raw LLM Feed (llms.txt)", link: "/llms.txt" },
|
|
77
|
+
{ text: "Full LLM Context (llms-full.txt)", link: "/llms-full.txt" },
|
|
71
78
|
],
|
|
72
79
|
},
|
|
73
80
|
],
|