@stacksjs/bunpress 0.1.11 → 0.1.12

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.
Files changed (36) hide show
  1. package/dist/bin/cli.d.ts +26 -0
  2. package/dist/bin/cli.js +1 -1
  3. package/dist/bin/commands/clean.d.ts +9 -0
  4. package/dist/bin/commands/config.d.ts +15 -0
  5. package/dist/bin/commands/doctor.d.ts +7 -0
  6. package/dist/bin/commands/init.d.ts +9 -0
  7. package/dist/bin/commands/new.d.ts +9 -0
  8. package/dist/bin/commands/preview.d.ts +11 -0
  9. package/dist/bin/commands/seo.d.ts +7 -0
  10. package/dist/bin/commands/stats.d.ts +8 -0
  11. package/dist/bin/utils.d.ts +83 -0
  12. package/dist/{chunk-0sfpwr5e.js → chunk-b99gqcxe.js} +1 -1
  13. package/dist/{chunk-sregzvcv.js → chunk-jxdbykx2.js} +5 -5
  14. package/dist/chunk-mch0qmg4.js +688 -0
  15. package/dist/{chunk-zdvnysqn.js → chunk-w17epehd.js} +2 -2
  16. package/dist/{chunk-semwkmam.js → chunk-z0v4c8zz.js} +1 -1
  17. package/dist/src/index.js +1 -1
  18. package/dist/{themes → src/themes}/bun/index.d.ts +1 -0
  19. package/dist/{themes → src/themes}/index.d.ts +3 -6
  20. package/dist/src/themes/vitepress/index.d.ts +33 -0
  21. package/dist/{types.d.ts → src/types.d.ts} +10 -0
  22. package/dist/templates/sidebar-section.stx +1 -1
  23. package/package.json +4 -4
  24. package/dist/chunk-rfaz4x5j.js +0 -658
  25. package/dist/themes/vitepress/index.d.ts +0 -210
  26. /package/dist/{config.d.ts → src/config.d.ts} +0 -0
  27. /package/dist/{data-loader.d.ts → src/data-loader.d.ts} +0 -0
  28. /package/dist/{highlighter.d.ts → src/highlighter.d.ts} +0 -0
  29. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  30. /package/dist/{robots.d.ts → src/robots.d.ts} +0 -0
  31. /package/dist/{rss.d.ts → src/rss.d.ts} +0 -0
  32. /package/dist/{serve.d.ts → src/serve.d.ts} +0 -0
  33. /package/dist/{sitemap.d.ts → src/sitemap.d.ts} +0 -0
  34. /package/dist/{stx-components.d.ts → src/stx-components.d.ts} +0 -0
  35. /package/dist/{template-loader.d.ts → src/template-loader.d.ts} +0 -0
  36. /package/dist/{toc.d.ts → src/toc.d.ts} +0 -0
@@ -0,0 +1,26 @@
1
+ import { config } from '../src/config';
2
+ /**
3
+ * Find all markdown files in the given directory
4
+ */
5
+ export declare function findMarkdownFiles(dir: string): Promise<string[]>;
6
+ /**
7
+ * Build the documentation files
8
+ */
9
+ export declare function buildDocs(options?: CliOption): Promise<boolean>;
10
+ declare interface CliOption {
11
+ outdir?: string
12
+ config?: string
13
+ port?: number
14
+ open?: boolean
15
+ watch?: boolean
16
+ verbose?: boolean
17
+ dir?: string
18
+ full?: boolean
19
+ output?: string
20
+ minify?: boolean
21
+ sourcemap?: boolean
22
+ name?: string
23
+ template?: string
24
+ title?: string
25
+ force?: boolean
26
+ }
package/dist/bin/cli.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{I as a,J as b}from"../chunk-sregzvcv.js";import"../chunk-ss6yzy9f.js";import"../chunk-e5q66hsy.js";import"../chunk-w6byd4st.js";export{a as findMarkdownFiles,b as buildDocs};
3
+ import{I as a,J as b}from"../chunk-jxdbykx2.js";import"../chunk-ss6yzy9f.js";import"../chunk-e5q66hsy.js";import"../chunk-w6byd4st.js";export{a as findMarkdownFiles,b as buildDocs};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Clean build artifacts and output directories
3
+ */
4
+ export declare function cleanCommand(options?: CleanOptions): Promise<boolean>;
5
+ declare interface CleanOptions {
6
+ outdir?: string
7
+ force?: boolean
8
+ verbose?: boolean
9
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Show current configuration
3
+ */
4
+ export declare function configShowCommand(options?: ConfigOptions): Promise<boolean>;
5
+ /**
6
+ * Validate configuration file
7
+ */
8
+ export declare function configValidateCommand(options?: ConfigOptions): Promise<boolean>;
9
+ /**
10
+ * Initialize configuration file
11
+ */
12
+ export declare function configInitCommand(options?: ConfigOptions): Promise<boolean>;
13
+ declare interface ConfigOptions {
14
+ verbose?: boolean
15
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Run diagnostic checks on the project
3
+ */
4
+ export declare function doctorCommand(options?: DoctorOptions): Promise<boolean>;
5
+ declare interface DoctorOptions {
6
+ verbose?: boolean
7
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Initialize a new BunPress project
3
+ */
4
+ export declare function initCommand(options?: InitOptions): Promise<boolean>;
5
+ declare interface InitOptions {
6
+ name?: string
7
+ template?: string
8
+ force?: boolean
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Create a new markdown file
3
+ */
4
+ export declare function newCommand(path: string, options?: NewOptions): Promise<boolean>;
5
+ declare interface NewOptions {
6
+ title?: string
7
+ template?: string
8
+ verbose?: boolean
9
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Preview the built documentation site
3
+ * Serves files from the .bunpress folder inside the output directory
4
+ */
5
+ export declare function previewCommand(options?: PreviewOptions): Promise<void>;
6
+ declare interface PreviewOptions {
7
+ port?: number
8
+ outdir?: string
9
+ open?: boolean
10
+ verbose?: boolean
11
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Check SEO for all documentation pages
3
+ */
4
+ export declare function seoCheck(options?: {
5
+ dir?: string
6
+ fix?: boolean
7
+ }): Promise<void>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Show statistics about documentation content
3
+ */
4
+ export declare function statsCommand(options?: StatsOptions): Promise<boolean>;
5
+ declare interface StatsOptions {
6
+ dir?: string
7
+ verbose?: boolean
8
+ }
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Format text with color
3
+ */
4
+ export declare function colorize(text: string, color: keyof typeof colors): string;
5
+ /**
6
+ * Log success message
7
+ */
8
+ export declare function logSuccess(message: string): void;
9
+ /**
10
+ * Log error message
11
+ */
12
+ export declare function logError(message: string): void;
13
+ /**
14
+ * Log warning message
15
+ */
16
+ export declare function logWarning(message: string): void;
17
+ /**
18
+ * Log info message
19
+ */
20
+ export declare function logInfo(message: string): void;
21
+ /**
22
+ * Format bytes to human-readable size
23
+ */
24
+ export declare function formatBytes(bytes: number): string;
25
+ /**
26
+ * Format milliseconds to human-readable time
27
+ */
28
+ export declare function formatTime(ms: number): string;
29
+ /**
30
+ * Prompt user for input
31
+ */
32
+ export declare function prompt(question: string, defaultValue?: string): Promise<string>;
33
+ /**
34
+ * Confirm prompt (yes/no)
35
+ */
36
+ export declare function confirm(question: string, defaultValue?: boolean): Promise<boolean>;
37
+ /**
38
+ * Display a table
39
+ */
40
+ export declare function table(rows: Array<Record<string, string | number>>): void;
41
+ /**
42
+ * Check if a directory exists
43
+ */
44
+ export declare function dirExists(path: string): Promise<boolean>;
45
+ /**
46
+ * Check if a file exists
47
+ */
48
+ export declare function fileExists(path: string): Promise<boolean>;
49
+ /**
50
+ * Get file size in bytes
51
+ */
52
+ export declare function getFileSize(path: string): Promise<number>;
53
+ /**
54
+ * CLI utility functions for colors, formatting, and common operations
55
+ */
56
+ // ANSI color codes
57
+ export declare const colors: {
58
+ reset: '\x1B[0m';
59
+ bold: '\x1B[1m';
60
+ dim: '\x1B[2m';
61
+ black: '\x1B[30m';
62
+ red: '\x1B[31m';
63
+ green: '\x1B[32m';
64
+ yellow: '\x1B[33m';
65
+ blue: '\x1B[34m';
66
+ magenta: '\x1B[35m';
67
+ cyan: '\x1B[36m';
68
+ white: '\x1B[37m';
69
+ gray: '\x1B[90m';
70
+ bgRed: '\x1B[41m';
71
+ bgGreen: '\x1B[42m';
72
+ bgYellow: '\x1B[43m';
73
+ bgBlue: '\x1B[44m'
74
+ };
75
+ export declare class Spinner {
76
+ text: string;
77
+ constructor(text: string);
78
+ start(): void;
79
+ succeed(message?: string): void;
80
+ fail(message?: string): void;
81
+ stop(): void;
82
+ update(text: string): void;
83
+ }
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{A as c,B as d,C as e,D as f,y as a,z as b}from"./chunk-zdvnysqn.js";import"./chunk-e5q66hsy.js";import"./chunk-w6byd4st.js";export{c as wrapInLayout,b as stripConfiguredBasePath,e as startServer,f as serveCLI,d as markdownToHtml,a as getConfiguredBasePath};
2
+ import{A as c,B as d,C as e,D as f,y as a,z as b}from"./chunk-w17epehd.js";import"./chunk-e5q66hsy.js";import"./chunk-w6byd4st.js";export{c as wrapInLayout,b as stripConfiguredBasePath,e as startServer,f as serveCLI,d as markdownToHtml,a as getConfiguredBasePath};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{L as W6,M as U6,O as V6}from"./chunk-ss6yzy9f.js";import{Q as b}from"./chunk-e5q66hsy.js";import{S as y}from"./chunk-w6byd4st.js";var{Glob:M6}=globalThis.Bun;import{copyFile as n6,mkdir as j6,readdir as i6}from"fs/promises";import{join as F}from"path";import I from"process";import{CLI as s6}from"@stacksjs/clapp";var s="0.1.11";import{existsSync as z6}from"fs";import{rm as L6}from"fs/promises";import{join as I6}from"path";var z={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m"};function J(K,Z){return`${z[Z]}${K}${z.reset}`}function G(K){console.log(`${z.green}\u2713${z.reset} ${K}`)}function R(K){console.error(`${z.red}\u2717${z.reset} ${K}`)}function g(K){console.warn(`${z.yellow}\u26A0${z.reset} ${K}`)}function A(K){console.log(`${z.blue}\u2139${z.reset} ${K}`)}function S(K){if(K===0)return"0 B";let Z=1024,Q=["B","KB","MB","GB"],$=Math.floor(Math.log(K)/Math.log(Z));return`${Number.parseFloat((K/Z**$).toFixed(2))} ${Q[$]}`}function f(K){if(K<1000)return`${K}ms`;if(K<60000)return`${(K/1000).toFixed(2)}s`;return`${(K/60000).toFixed(2)}m`}var r=!!(process.env.CI||process.env.GITHUB_ACTIONS||process.env.BUILDKITE||process.env.CIRCLECI||process.env.GITLAB_CI);class w{frames=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];index=0;interval=null;text;constructor(K){this.text=K}start(){if(r){console.log(` ${this.text}`);return}process.stdout.write("\x1B[?25l"),this.interval=setInterval(()=>{let K=this.frames[this.index];process.stdout.write(`\r${z.cyan}${K}${z.reset} ${this.text}`),this.index=(this.index+1)%this.frames.length},80)}succeed(K){this.stop(),G(K||this.text)}fail(K){this.stop(),R(K||this.text)}stop(){if(this.interval)clearInterval(this.interval),this.interval=null;if(!r)process.stdout.write("\r\x1B[K"),process.stdout.write("\x1B[?25h")}update(K){this.text=K}}async function d(K,Z=!1){let Q=Z?"Y/n":"y/N";process.stdout.write(`${z.cyan}?${z.reset} ${K} ${z.dim}(${Q})${z.reset}: `);let $=Bun.file("/dev/stdin").stream().getReader(),N=new TextDecoder,{value:X}=await $.read(),Y=N.decode(X).trim().toLowerCase();if(!Y)return Z;return Y==="y"||Y==="yes"}function h(K){if(K.length===0)return;let Z=Object.keys(K[0]),Q={};for(let N of Z)Q[N]=Math.max(N.length,...K.map((X)=>String(X[N]).length));let $=Z.map((N)=>N.padEnd(Q[N])).join(" ");console.log(J($,"bold")),console.log("\u2500".repeat($.length));for(let N of K){let X=Z.map((Y)=>String(N[Y]).padEnd(Q[Y])).join(" ");console.log(X)}}async function u(K){try{return Bun.file(K).size}catch{return 0}}async function S6(K){try{let{Glob:Z}=awaitPromise.resolve(globalThis.Bun),Q=new Z("**/*"),$=0;for await(let N of Q.scan(K)){let X=`${K}/${N}`,Y=await u(X);$+=Y}return $}catch{return 0}}async function e(K={}){let Z=await b,Q=K.outdir||Z.outDir||"./dist",$=I6(Q,".bunpress"),N=K.force||!1,X=K.verbose||!1;try{if(!z6($))return A(`Directory "${$}" does not exist, nothing to clean`),!0;let q=await S6($);if(X)A(`Found "${$}" (${S(q)})`);if(!N){if(!await d(`Delete "${$}" directory? (${S(q)})`,!1))return A("Clean cancelled"),!1}let _=process.env.VITEST==="true"||!1,W=null;if(!_&&!X)W=new w("Cleaning build artifacts..."),W.start();if(await L6($,{recursive:!0,force:!0}),W)W.succeed(`Cleaned ${S(q)} from "${$}"`);else if(X||_)G(`Cleaned ${S(q)} from "${$}"`);return!0}catch(Y){return R(`Failed to clean directory: ${Y}`),!1}}import{existsSync as p}from"fs";import{join as l}from"path";async function t(K={}){try{let Z=["bunpress.config.ts","bunpress.config.js"],Q=null;for(let N of Z){let X=l(process.cwd(),N);if(p(X)){Q=X;break}}if(!Q)return R("No configuration file found"),A('Run "bunpress config init" to create one'),!1;G(`Configuration file: ${Q}`),console.log();let $=await Bun.file(Q).text();return console.log(J("Configuration:","bold")),console.log($),!0}catch(Z){return R(`Failed to show configuration: ${Z}`),!1}}async function o(K={}){let Z=K.verbose||!1;try{let Q=["bunpress.config.ts","bunpress.config.js"],$=null;for(let q of Q){let _=l(process.cwd(),q);if(p(_)){$=_;break}}if(!$)return R("No configuration file found"),!1;if(Z)A(`Validating ${$}...`);let X=(await import($)).default;if(!X)return R("Configuration file does not export a default object"),!1;let Y=[];if(X.markdown){if(X.markdown.toc&&typeof X.markdown.toc!=="object"&&typeof X.markdown.toc!=="boolean")Y.push("markdown.toc should be an object or boolean");if(X.markdown.features){if(typeof X.markdown.features!=="object")Y.push("markdown.features should be an object")}}if(X.nav){if(!Array.isArray(X.nav))Y.push("nav should be an array");else for(let[q,_]of X.nav.entries())if(!_.text||!_.link)Y.push(`nav[${q}] is missing required fields (text, link)`)}if(X.sitemap){if(!X.sitemap.hostname)Y.push("sitemap.hostname is required for SEO")}if(Y.length>0){R("Configuration validation failed:");for(let q of Y)console.log(` \u2022 ${q}`);return!1}return G("Configuration is valid \u2713"),!0}catch(Q){return R(`Failed to validate configuration: ${Q}`),!1}}async function K6(K={}){let Z=l(process.cwd(),"bunpress.config.ts");if(p(Z))return R("Configuration file already exists"),!1;let Q=`import type { BunPressConfig } from '@stacksjs/bunpress'
2
+ import{L as W6,M as U6,O as V6}from"./chunk-ss6yzy9f.js";import{Q as b}from"./chunk-e5q66hsy.js";import{S as y}from"./chunk-w6byd4st.js";var{Glob:M6}=globalThis.Bun;import{copyFile as n6,mkdir as j6,readdir as i6}from"fs/promises";import{join as F}from"path";import I from"process";import{CLI as s6}from"@stacksjs/clapp";var s="0.1.12";import{existsSync as z6}from"fs";import{rm as L6}from"fs/promises";import{join as I6}from"path";var z={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",gray:"\x1B[90m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m"};function J(K,Z){return`${z[Z]}${K}${z.reset}`}function G(K){console.log(`${z.green}\u2713${z.reset} ${K}`)}function R(K){console.error(`${z.red}\u2717${z.reset} ${K}`)}function g(K){console.warn(`${z.yellow}\u26A0${z.reset} ${K}`)}function A(K){console.log(`${z.blue}\u2139${z.reset} ${K}`)}function S(K){if(K===0)return"0 B";let Z=1024,Q=["B","KB","MB","GB"],$=Math.floor(Math.log(K)/Math.log(Z));return`${Number.parseFloat((K/Z**$).toFixed(2))} ${Q[$]}`}function f(K){if(K<1000)return`${K}ms`;if(K<60000)return`${(K/1000).toFixed(2)}s`;return`${(K/60000).toFixed(2)}m`}var r=!!(process.env.CI||process.env.GITHUB_ACTIONS||process.env.BUILDKITE||process.env.CIRCLECI||process.env.GITLAB_CI);class w{frames=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];index=0;interval=null;text;constructor(K){this.text=K}start(){if(r){console.log(` ${this.text}`);return}process.stdout.write("\x1B[?25l"),this.interval=setInterval(()=>{let K=this.frames[this.index];process.stdout.write(`\r${z.cyan}${K}${z.reset} ${this.text}`),this.index=(this.index+1)%this.frames.length},80)}succeed(K){this.stop(),G(K||this.text)}fail(K){this.stop(),R(K||this.text)}stop(){if(this.interval)clearInterval(this.interval),this.interval=null;if(!r)process.stdout.write("\r\x1B[K"),process.stdout.write("\x1B[?25h")}update(K){this.text=K}}async function d(K,Z=!1){let Q=Z?"Y/n":"y/N";process.stdout.write(`${z.cyan}?${z.reset} ${K} ${z.dim}(${Q})${z.reset}: `);let $=Bun.file("/dev/stdin").stream().getReader(),N=new TextDecoder,{value:X}=await $.read(),Y=N.decode(X).trim().toLowerCase();if(!Y)return Z;return Y==="y"||Y==="yes"}function h(K){if(K.length===0)return;let Z=Object.keys(K[0]),Q={};for(let N of Z)Q[N]=Math.max(N.length,...K.map((X)=>String(X[N]).length));let $=Z.map((N)=>N.padEnd(Q[N])).join(" ");console.log(J($,"bold")),console.log("\u2500".repeat($.length));for(let N of K){let X=Z.map((Y)=>String(N[Y]).padEnd(Q[Y])).join(" ");console.log(X)}}async function u(K){try{return Bun.file(K).size}catch{return 0}}async function S6(K){try{let{Glob:Z}=awaitPromise.resolve(globalThis.Bun),Q=new Z("**/*"),$=0;for await(let N of Q.scan(K)){let X=`${K}/${N}`,Y=await u(X);$+=Y}return $}catch{return 0}}async function e(K={}){let Z=await b,Q=K.outdir||Z.outDir||"./dist",$=I6(Q,".bunpress"),N=K.force||!1,X=K.verbose||!1;try{if(!z6($))return A(`Directory "${$}" does not exist, nothing to clean`),!0;let q=await S6($);if(X)A(`Found "${$}" (${S(q)})`);if(!N){if(!await d(`Delete "${$}" directory? (${S(q)})`,!1))return A("Clean cancelled"),!1}let _=process.env.VITEST==="true"||!1,W=null;if(!_&&!X)W=new w("Cleaning build artifacts..."),W.start();if(await L6($,{recursive:!0,force:!0}),W)W.succeed(`Cleaned ${S(q)} from "${$}"`);else if(X||_)G(`Cleaned ${S(q)} from "${$}"`);return!0}catch(Y){return R(`Failed to clean directory: ${Y}`),!1}}import{existsSync as p}from"fs";import{join as l}from"path";async function t(K={}){try{let Z=["bunpress.config.ts","bunpress.config.js"],Q=null;for(let N of Z){let X=l(process.cwd(),N);if(p(X)){Q=X;break}}if(!Q)return R("No configuration file found"),A('Run "bunpress config init" to create one'),!1;G(`Configuration file: ${Q}`),console.log();let $=await Bun.file(Q).text();return console.log(J("Configuration:","bold")),console.log($),!0}catch(Z){return R(`Failed to show configuration: ${Z}`),!1}}async function o(K={}){let Z=K.verbose||!1;try{let Q=["bunpress.config.ts","bunpress.config.js"],$=null;for(let q of Q){let _=l(process.cwd(),q);if(p(_)){$=_;break}}if(!$)return R("No configuration file found"),!1;if(Z)A(`Validating ${$}...`);let X=(await import($)).default;if(!X)return R("Configuration file does not export a default object"),!1;let Y=[];if(X.markdown){if(X.markdown.toc&&typeof X.markdown.toc!=="object"&&typeof X.markdown.toc!=="boolean")Y.push("markdown.toc should be an object or boolean");if(X.markdown.features){if(typeof X.markdown.features!=="object")Y.push("markdown.features should be an object")}}if(X.nav){if(!Array.isArray(X.nav))Y.push("nav should be an array");else for(let[q,_]of X.nav.entries())if(!_.text||!_.link)Y.push(`nav[${q}] is missing required fields (text, link)`)}if(X.sitemap){if(!X.sitemap.hostname)Y.push("sitemap.hostname is required for SEO")}if(Y.length>0){R("Configuration validation failed:");for(let q of Y)console.log(` \u2022 ${q}`);return!1}return G("Configuration is valid \u2713"),!0}catch(Q){return R(`Failed to validate configuration: ${Q}`),!1}}async function K6(K={}){let Z=l(process.cwd(),"bunpress.config.ts");if(p(Z))return R("Configuration file already exists"),!1;let Q=`import type { BunPressConfig } from '@stacksjs/bunpress'
3
3
 
4
4
  export default {
5
5
  verbose: false,
@@ -286,8 +286,8 @@ ${Y}`;await D.promises.writeFile(K,H,"utf-8")}if(!_)Q.passed++}async function m6
286
286
  `)[0]||Q;if($.length>Z)return`${$.slice(0,Z)}...`;return $||"Documentation page"}function c6(K,Z,Q){let $=[],N=/\[([^\]]+)\]\(([^)]+)\)/g,X;while((X=N.exec(K))!==null){let Y=X[2];if(Y.startsWith("http://")||Y.startsWith("https://"))continue;if(Y.startsWith("#"))continue;let q=v.dirname(Q),_=v.resolve(q,Y),W=_.endsWith(".md")?_:`${_}.md`;if(!D.existsSync(W)&&!D.existsSync(_))$.push(Y)}return $}function f6(K){let Z=[],Q=/!\[([^\]]*)\]\(([^)]+)\)/g,$;while(($=Q.exec(K))!==null){let N=$[1],X=$[2];if(!N||N.trim()==="")Z.push(X)}return Z}function p6(K){if(console.log(""),A("\uD83D\uDCCA SEO Report"),console.log(""),console.log(`Total pages checked: ${J(K.totalPages.toString(),"blue")}`),console.log(`Passed: ${J(K.passed.toString(),"green")}`),console.log(`Errors: ${J(K.errors.length.toString(),K.errors.length>0?"red":"green")}`),console.log(`Warnings: ${J(K.warnings.length.toString(),K.warnings.length>0?"yellow":"green")}`),console.log(""),K.errors.length>0){R(`\u2717 ${K.errors.length} errors found:`),console.log("");let Z=K.errors.map((Q)=>({Category:Q.category,File:Q.file,Message:Q.message}));h(Z),console.log("")}if(K.warnings.length>0){g(`\u26A0 ${K.warnings.length} warnings found:`),console.log("");let Z=K.warnings.map((Q)=>({Category:Q.category,File:Q.file,Message:Q.message}));h(Z),console.log("")}if(K.errors.length===0&&K.warnings.length===0)G("\u2713 All SEO checks passed!");else if(K.errors.length===0)G("\u2713 No errors found (only warnings)")}import{join as l6}from"path";async function a6(K){let Z=await Bun.file(K).text(),Q=Z.split(`
287
287
  `),$=0,N=!1,X=[];for(let W of Q){if(W.trim().startsWith("```")){N=!N;continue}if(!N)X.push(W)}$=X.join(" ").split(/\s+/).filter((W)=>W.length>0).length;let q=Q.filter((W)=>W.match(/^#{1,6}\s+/)).length,_=(Z.match(/```/g)||[]).length/2;return{path:K,size:await u(K),lines:Q.length,words:$,headings:q,codeBlocks:Math.floor(_)}}async function _6(K={}){let Z=await b,Q=K.dir||Z.docsDir||"./docs",$=K.verbose||!1;try{console.log(J(`
288
288
  Analyzing documentation...
289
- `,"bold"));let{Glob:N}=awaitPromise.resolve(globalThis.Bun),X=new N("**/*.md"),Y=[];for await(let j of X.scan(Q)){let V=l6(Q,j),c=await a6(V);Y.push(c)}if(Y.length===0)return R("No markdown files found"),!1;let q=Y.reduce((j,V)=>j+V.size,0),_=Y.reduce((j,V)=>j+V.lines,0),W=Y.reduce((j,V)=>j+V.words,0),U=Y.reduce((j,V)=>j+V.headings,0),B=Y.reduce((j,V)=>j+V.codeBlocks,0);if(console.log(J("Summary","bold")),console.log("\u2500".repeat(50)),console.log(`Files: ${Y.length}`),console.log(`Total size: ${S(q)}`),console.log(`Total lines: ${_.toLocaleString()}`),console.log(`Total words: ${W.toLocaleString()}`),console.log(`Headings: ${U}`),console.log(`Code blocks: ${B}`),console.log(),$){console.log(J("Per-file Statistics","bold")),console.log("\u2500".repeat(50));let j=Y.map((V)=>({File:V.path.replace(`${Q}/`,""),Size:S(V.size),Lines:V.lines,Words:V.words,Headings:V.headings,"Code Blocks":V.codeBlocks}));h(j),console.log()}let x=q/Y.length,H=_/Y.length,T=W/Y.length;console.log(J("Averages per File","bold")),console.log("\u2500".repeat(50)),console.log(`Size: ${S(x)}`),console.log(`Lines: ${Math.round(H)}`),console.log(`Words: ${Math.round(T)}`),console.log();let L=[...Y].sort((j,V)=>V.size-j.size).slice(0,5);if(L.length>0){console.log(J("Top 5 Largest Files","bold")),console.log("\u2500".repeat(50));for(let j of L){let V=j.path.replace(`${Q}/`,"");console.log(` ${V.padEnd(40)} ${S(j.size)}`)}console.log()}let E=Math.ceil(W/200);return A(`Estimated reading time: ${E} minutes`),!0}catch(N){return R(`Failed to generate statistics: ${N}`),!1}}var O=new s6("bunpress"),M={outdir:b.outDir||"./dist",docsdir:b.docsDir||"./docs",port:3000,open:!0,watch:!0,verbose:b.verbose};async function A6(K){let Z=new M6("**/*.md"),Q=[];for await(let $ of Z.scan(K))Q.push(F(K,$));return Q}async function r6(K,Z,Q=!1){let $=`${Z}/public`;try{await i6($);let N=new M6("**/*");for await(let X of N.scan($)){let Y=F($,X),q=F(K,X);await j6(F(K,X.split("/").slice(0,-1).join("/")),{recursive:!0}),await n6(Y,q)}}catch{if(Q)console.log("No public directory found, skipping static assets copy")}}async function e6(K,Z,Q){try{let $=await b;if($.sitemap?.enabled!==!1&&$.sitemap?.baseUrl)await V6(K,Z,$);if($.robots?.enabled!==!1)await U6(Z,$);if($.rss?.enabled)await W6(K,Z,$,$.rss)}catch($){if(Q)console.error("Error generating SEO files:",$)}}async function R6(K={}){let Z=await b,Q=K.outdir||Z.outDir||M.outdir,$=F(Q,".bunpress"),N=K.dir||Z.docsDir||M.docsdir,X=K.verbose??M.verbose,Y=K.minify??!1,q=K.sourcemap??!1,_=performance.now(),W=new w("Building documentation...");if(!X)W.start();await j6($,{recursive:!0});let U=await A6(N);if(U.length===0){if(!X)W.fail("No markdown files found in docs directory");else console.log("No markdown files found in docs directory");return!1}if(X)console.log(`Found ${U.length} markdown files:`),U.forEach((B)=>console.log(`- ${B}`));try{let{markdownToHtml:B,wrapInLayout:x}=await import("./chunk-0sfpwr5e.js"),{mkdir:H,writeFile:T}=await import("fs/promises");if(X)console.log("Transforming markdown to HTML...");for(let j of U){let V=await Bun.file(j).text(),{html:c,frontmatter:B6}=await B(V,N),G6=j.replace(/^\.\//,""),J6=N.replace(/^\.\//,""),P=G6.replace(J6,"").replace(/^\//,"").replace(/\.md$/,""),x6=`/${P}`,T6=B6.layout||"doc",b6=await x(c,Z,x6,T6),m=P==="index"||P.endsWith("/index")?F($,`${P}.html`):F($,P,"index.html"),i=m.substring(0,m.lastIndexOf("/"));if(i)await H(i,{recursive:!0});if(await T(m,b6),X)console.log(`Generated: ${m}`)}if(X)console.log(`Processed ${U.length} markdown files.`);await r6($,N,X),await o6($),await t6($,Z),await e6(N,$,X||!1);let E=performance.now()-_;if(!X)W.succeed(`Built ${U.length} pages to HTML in ${f(E)}`);else G(`Build completed in ${f(E)}`),console.log(`
290
- Generated ${U.length} HTML files in ${$}`);return!0}catch(B){if(!X)W.fail("Build failed");return console.error("Error during build:",B),!1}}async function t6(K,Z){let{wrapInLayout:Q}=await import("./chunk-0sfpwr5e.js"),$=`
289
+ `,"bold"));let{Glob:N}=awaitPromise.resolve(globalThis.Bun),X=new N("**/*.md"),Y=[];for await(let j of X.scan(Q)){let V=l6(Q,j),c=await a6(V);Y.push(c)}if(Y.length===0)return R("No markdown files found"),!1;let q=Y.reduce((j,V)=>j+V.size,0),_=Y.reduce((j,V)=>j+V.lines,0),W=Y.reduce((j,V)=>j+V.words,0),U=Y.reduce((j,V)=>j+V.headings,0),B=Y.reduce((j,V)=>j+V.codeBlocks,0);if(console.log(J("Summary","bold")),console.log("\u2500".repeat(50)),console.log(`Files: ${Y.length}`),console.log(`Total size: ${S(q)}`),console.log(`Total lines: ${_.toLocaleString()}`),console.log(`Total words: ${W.toLocaleString()}`),console.log(`Headings: ${U}`),console.log(`Code blocks: ${B}`),console.log(),$){console.log(J("Per-file Statistics","bold")),console.log("\u2500".repeat(50));let j=Y.map((V)=>({File:V.path.replace(`${Q}/`,""),Size:S(V.size),Lines:V.lines,Words:V.words,Headings:V.headings,"Code Blocks":V.codeBlocks}));h(j),console.log()}let x=q/Y.length,H=_/Y.length,T=W/Y.length;console.log(J("Averages per File","bold")),console.log("\u2500".repeat(50)),console.log(`Size: ${S(x)}`),console.log(`Lines: ${Math.round(H)}`),console.log(`Words: ${Math.round(T)}`),console.log();let L=[...Y].sort((j,V)=>V.size-j.size).slice(0,5);if(L.length>0){console.log(J("Top 5 Largest Files","bold")),console.log("\u2500".repeat(50));for(let j of L){let V=j.path.replace(`${Q}/`,"");console.log(` ${V.padEnd(40)} ${S(j.size)}`)}console.log()}let E=Math.ceil(W/200);return A(`Estimated reading time: ${E} minutes`),!0}catch(N){return R(`Failed to generate statistics: ${N}`),!1}}var O=new s6("bunpress"),M={outdir:b.outDir||"./dist",docsdir:b.docsDir||"./docs",port:3000,open:!0,watch:!0,verbose:b.verbose};async function A6(K){let Z=new M6("**/*.md"),Q=[];for await(let $ of Z.scan(K))Q.push(F(K,$));return Q}async function r6(K,Z,Q=!1){let $=`${Z}/public`;try{await i6($);let N=new M6("**/*");for await(let X of N.scan($)){let Y=F($,X),q=F(K,X);await j6(F(K,X.split("/").slice(0,-1).join("/")),{recursive:!0}),await n6(Y,q)}}catch{if(Q)console.log("No public directory found, skipping static assets copy")}}async function e6(K,Z,Q){try{let $=await b;if($.sitemap?.enabled!==!1&&$.sitemap?.baseUrl)await V6(K,Z,$);if($.robots?.enabled!==!1)await U6(Z,$);if($.rss?.enabled)await W6(K,Z,$,$.rss)}catch($){if(Q)console.error("Error generating SEO files:",$)}}async function R6(K={}){let Z=await b,Q=K.outdir||Z.outDir||M.outdir,$=F(Q,".bunpress"),N=K.dir||Z.docsDir||M.docsdir,X=K.verbose??M.verbose,Y=K.minify??!1,q=K.sourcemap??!1,_=performance.now(),W=new w("Building documentation...");if(!X)W.start();await j6($,{recursive:!0});let U=await A6(N);if(U.length===0){if(!X)W.fail("No markdown files found in docs directory");else console.log("No markdown files found in docs directory");return!1}if(X)console.log(`Found ${U.length} markdown files:`),U.forEach((B)=>console.log(`- ${B}`));try{let{markdownToHtml:B,wrapInLayout:x}=await import("./chunk-b99gqcxe.js"),{mkdir:H,writeFile:T}=await import("fs/promises");if(X)console.log("Transforming markdown to HTML...");for(let j of U){let V=await Bun.file(j).text(),{html:c,frontmatter:B6}=await B(V,N),G6=j.replace(/^\.\//,""),J6=N.replace(/^\.\//,""),P=G6.replace(J6,"").replace(/^\//,"").replace(/\.md$/,""),x6=`/${P}`,T6=B6.layout||"doc",b6=await x(c,Z,x6,T6),m=P==="index"||P.endsWith("/index")?F($,`${P}.html`):F($,P,"index.html"),i=m.substring(0,m.lastIndexOf("/"));if(i)await H(i,{recursive:!0});if(await T(m,b6),X)console.log(`Generated: ${m}`)}if(X)console.log(`Processed ${U.length} markdown files.`);await r6($,N,X),await o6($),await t6($,Z),await e6(N,$,X||!1);let E=performance.now()-_;if(!X)W.succeed(`Built ${U.length} pages to HTML in ${f(E)}`);else G(`Build completed in ${f(E)}`),console.log(`
290
+ Generated ${U.length} HTML files in ${$}`);return!0}catch(B){if(!X)W.fail("Build failed");return console.error("Error during build:",B),!1}}async function t6(K,Z){let{wrapInLayout:Q}=await import("./chunk-b99gqcxe.js"),$=`
291
291
  <style>
292
292
  .NotFound {
293
293
  padding: 64px 24px 96px;
@@ -443,7 +443,7 @@ Generated ${U.length} HTML files in ${$}`);return!0}catch(B){if(!X)W.fail("Build
443
443
  </div>
444
444
  `,Z,"/404","doc");await Bun.write(F(K,"404.html"),N)}async function o6(K){let Z=F(K,"index.html");try{if(!await Bun.file(Z).exists())console.error("Warning: No index.html found at root")}catch(Q){console.error("Error checking root index.html:",Q)}}O.command("build","Build the documentation site").option("--outdir <outdir>","Output directory").option("--dir <dir>","Documentation directory").option("--config <config>","Path to config file").option("--minify","Minify output files",{default:!1}).option("--sourcemap","Generate source maps",{default:!1}).option("--watch","Watch for changes and rebuild",{default:!1}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await R6(K))I.exit(1);if(K.watch){let{watch:Q}=await import("fs"),$=await b,N=K.dir||$.docsDir||"./docs";console.log(`
445
445
  Watching for changes...`),Q(N,{recursive:!0},async(X,Y)=>{if(Y&&Y.endsWith(".md"))console.log(`
446
- Detected change in ${Y}, rebuilding...`),await R6(K)}),await new Promise(()=>{})}});O.command("dev","Build and serve documentation using BunPress server").option("--port <port>","Port to listen on",{default:M.port}).option("--dir <dir>","Documentation directory").option("--watch","Watch for changes",{default:M.watch}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{let Z=await b,Q=K.port||M.port,$=K.dir||Z.docsDir||M.docsdir,N=K.watch??M.watch,X=K.verbose??M.verbose;if(X)console.log("Starting BunPress dev server with options:",{port:Q,root:$,watch:N,verbose:X});let{serveCLI:Y}=await import("./chunk-0sfpwr5e.js");await Y({port:Q,root:$,watch:N,config:Z})});async function K4(K={}){let Z=await b,Q=K.dir||Z.docsDir||M.docsdir,$=K.output||"./docs.md",N=K.full??!1,X=K.verbose??M.verbose;if(X)console.log(`Generating LLM markdown from ${Q}`),console.log(`Output file: ${$}`),console.log(`Full content: ${N}`);let Y=await A6(Q);if(Y.length===0)return console.log("No markdown files found in docs directory"),!1;if(X)console.log(`Found ${Y.length} markdown files`);Y.sort();let q=`# Documentation
446
+ Detected change in ${Y}, rebuilding...`),await R6(K)}),await new Promise(()=>{})}});O.command("dev","Build and serve documentation using BunPress server").option("--port <port>","Port to listen on",{default:M.port}).option("--dir <dir>","Documentation directory").option("--watch","Watch for changes",{default:M.watch}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{let Z=await b,Q=K.port||M.port,$=K.dir||Z.docsDir||M.docsdir,N=K.watch??M.watch,X=K.verbose??M.verbose;if(X)console.log("Starting BunPress dev server with options:",{port:Q,root:$,watch:N,verbose:X});let{serveCLI:Y}=await import("./chunk-b99gqcxe.js");await Y({port:Q,root:$,watch:N,config:Z})});async function K4(K={}){let Z=await b,Q=K.dir||Z.docsDir||M.docsdir,$=K.output||"./docs.md",N=K.full??!1,X=K.verbose??M.verbose;if(X)console.log(`Generating LLM markdown from ${Q}`),console.log(`Output file: ${$}`),console.log(`Full content: ${N}`);let Y=await A6(Q);if(Y.length===0)return console.log("No markdown files found in docs directory"),!1;if(X)console.log(`Found ${Y.length} markdown files`);Y.sort();let q=`# Documentation
447
447
 
448
448
  `;q+=`Generated: ${new Date().toISOString()}
449
449
 
@@ -462,5 +462,5 @@ Detected change in ${Y}, rebuilding...`),await R6(K)}),await new Promise(()=>{})
462
462
  `}q+=`---
463
463
 
464
464
  `}return await Bun.write($,q),console.log(`
465
- LLM markdown generated successfully: ${$}`),console.log(`Total size: ${(q.length/1024).toFixed(2)} KB`),!0}O.command("llm","Generate LLM-friendly markdown file from documentation").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--output <output>","Output file path",{default:"./docs.md"}).option("--full","Include full content (not just titles and headings)",{default:!1}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await K4(K))I.exit(1)});O.command("init","Initialize a new BunPress project").option("--name <name>","Project name").option("--template <template>","Template to use").option("--force","Overwrite existing files",{default:!1}).action(async(K)=>{if(!await Z6(K))I.exit(1)});O.command("preview","Preview the built documentation site").option("--port <port>","Port to listen on",{default:M.port}).option("--outdir <outdir>","Output directory (looks for .bunpress folder inside)").option("--open","Open in browser",{default:!1}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{await N6(K)});O.command("clean","Clean build artifacts").option("--outdir <outdir>","Output directory to clean",{default:M.outdir}).option("--force","Skip confirmation prompt",{default:!1}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await e(K))I.exit(1)});O.command("doctor","Run diagnostic checks on the project").option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await Q6(K))I.exit(1)});O.command("config:show","Show current configuration").option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await t(K))I.exit(1)});O.command("config:validate","Validate configuration file").option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await o(K))I.exit(1)});O.command("config:init","Initialize configuration file").action(async(K)=>{if(!await K6(K))I.exit(1)});O.command("new <path>","Create a new markdown file").option("--title <title>","Page title").option("--template <template>","Template to use (default, guide, api, blog)",{default:"default"}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K,Z)=>{if(!await X6(K,Z))I.exit(1)});O.command("stats","Show documentation statistics").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await _6(K))I.exit(1)});O.command("seo:check","Check SEO for all documentation pages").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--fix","Automatically fix issues (add missing titles/descriptions)",{default:!1}).action(async(K)=>{await H6(K)});O.command("deploy","Deploy documentation to AWS using CloudFormation (S3 + CloudFront + Route53)").option("--region <region>","AWS region for S3 bucket",{default:"us-east-1"}).option("--bucket <bucket>","S3 bucket name (auto-generated if not provided)").option("--domain <domain>","Custom domain (e.g., docs.example.com)").option("--subdomain <subdomain>","Subdomain (used with --base-domain)").option("--base-domain <baseDomain>","Base domain (e.g., example.com) - must have Route53 hosted zone").option("--stack-name <stackName>","CloudFormation stack name").option("--hosted-zone-id <hostedZoneId>","Route53 hosted zone ID (auto-detected from domain)").option("--certificate-arn <certificateArn>","ACM certificate ARN (auto-created if not provided)").option("--dry-run","Show configuration without deploying",{default:!1}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{let{deployCommand:Z}=await import("./chunk-semwkmam.js");if(!await Z(K))I.exit(1)});O.help();O.version(s);var n=Bun.argv[1]||"",Q4=n.endsWith("/bunpress")||n.endsWith("/cli.ts")||n.endsWith("/cli.js");if(Q4)O.parse();
465
+ LLM markdown generated successfully: ${$}`),console.log(`Total size: ${(q.length/1024).toFixed(2)} KB`),!0}O.command("llm","Generate LLM-friendly markdown file from documentation").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--output <output>","Output file path",{default:"./docs.md"}).option("--full","Include full content (not just titles and headings)",{default:!1}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await K4(K))I.exit(1)});O.command("init","Initialize a new BunPress project").option("--name <name>","Project name").option("--template <template>","Template to use").option("--force","Overwrite existing files",{default:!1}).action(async(K)=>{if(!await Z6(K))I.exit(1)});O.command("preview","Preview the built documentation site").option("--port <port>","Port to listen on",{default:M.port}).option("--outdir <outdir>","Output directory (looks for .bunpress folder inside)").option("--open","Open in browser",{default:!1}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{await N6(K)});O.command("clean","Clean build artifacts").option("--outdir <outdir>","Output directory to clean",{default:M.outdir}).option("--force","Skip confirmation prompt",{default:!1}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await e(K))I.exit(1)});O.command("doctor","Run diagnostic checks on the project").option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await Q6(K))I.exit(1)});O.command("config:show","Show current configuration").option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await t(K))I.exit(1)});O.command("config:validate","Validate configuration file").option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await o(K))I.exit(1)});O.command("config:init","Initialize configuration file").action(async(K)=>{if(!await K6(K))I.exit(1)});O.command("new <path>","Create a new markdown file").option("--title <title>","Page title").option("--template <template>","Template to use (default, guide, api, blog)",{default:"default"}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K,Z)=>{if(!await X6(K,Z))I.exit(1)});O.command("stats","Show documentation statistics").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{if(!await _6(K))I.exit(1)});O.command("seo:check","Check SEO for all documentation pages").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--fix","Automatically fix issues (add missing titles/descriptions)",{default:!1}).action(async(K)=>{await H6(K)});O.command("deploy","Deploy documentation to AWS using CloudFormation (S3 + CloudFront + Route53)").option("--region <region>","AWS region for S3 bucket",{default:"us-east-1"}).option("--bucket <bucket>","S3 bucket name (auto-generated if not provided)").option("--domain <domain>","Custom domain (e.g., docs.example.com)").option("--subdomain <subdomain>","Subdomain (used with --base-domain)").option("--base-domain <baseDomain>","Base domain (e.g., example.com) - must have Route53 hosted zone").option("--stack-name <stackName>","CloudFormation stack name").option("--hosted-zone-id <hostedZoneId>","Route53 hosted zone ID (auto-detected from domain)").option("--certificate-arn <certificateArn>","ACM certificate ARN (auto-created if not provided)").option("--dry-run","Show configuration without deploying",{default:!1}).option("--verbose","Enable verbose logging",{default:M.verbose}).action(async(K)=>{let{deployCommand:Z}=await import("./chunk-z0v4c8zz.js");if(!await Z(K))I.exit(1)});O.help();O.version(s);var n=Bun.argv[1]||"",Q4=n.endsWith("/bunpress")||n.endsWith("/cli.ts")||n.endsWith("/cli.js");if(Q4)O.parse();
466
466
  export{G as E,R as F,A as G,w as H,A6 as I,R6 as J};