@seyuna/cli 1.0.0-canary.19 → 1.0.0-canary.21

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.
@@ -1,5 +1,49 @@
1
+ /**
2
+ * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
+ * but instead of using npm to install additional dependencies,
4
+ * this approach manually consolidates cjs/mjs/d.ts into a single file.
5
+ *
6
+ * Note that this code might be imported multiple times
7
+ * (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
8
+ * or Node.js might dynamically clear the cache and then force a require).
9
+ * Therefore, it's important to avoid redundant writes to global objects.
10
+ * Additionally, consider that commonjs is used alongside esm,
11
+ * so the two ponyfill functions are stored independently in two separate global objects.
12
+ */
13
+ import { createRequire } from "node:module";
14
+ import { type URL } from "node:url";
1
15
  declare global {
2
16
  interface ImportMeta {
17
+ /** A string representation of the fully qualified module URL. When the
18
+ * module is loaded locally, the value will be a file URL (e.g.
19
+ * `file:///path/module.ts`).
20
+ *
21
+ * You can also parse the string as a URL to determine more information about
22
+ * how the current module was loaded. For example to determine if a module was
23
+ * local or not:
24
+ *
25
+ * ```ts
26
+ * const url = new URL(import.meta.url);
27
+ * if (url.protocol === "file:") {
28
+ * console.log("this module was loaded locally");
29
+ * }
30
+ * ```
31
+ */
32
+ url: string;
33
+ /**
34
+ * A function that returns resolved specifier as if it would be imported
35
+ * using `import(specifier)`.
36
+ *
37
+ * ```ts
38
+ * console.log(import.meta.resolve("./foo.js"));
39
+ * // file:///dev/foo.js
40
+ * ```
41
+ *
42
+ * @param specifier The module specifier to resolve relative to `parent`.
43
+ * @param parent The absolute parent module URL to resolve from.
44
+ * @returns The absolute (`file:`) URL string for the resolved module.
45
+ */
46
+ resolve(specifier: string, parent?: string | URL | undefined): string;
3
47
  /** A flag that indicates if the current module is the main module that was
4
48
  * called when starting the program under Deno.
5
49
  *
@@ -10,15 +54,48 @@ declare global {
10
54
  * ```
11
55
  */
12
56
  main: boolean;
13
- /** A function that returns resolved specifier as if it would be imported
14
- * using `import(specifier)`.
57
+ /** The absolute path of the current module.
15
58
  *
16
- * ```ts
17
- * console.log(import.meta.resolve("./foo.js"));
18
- * // file:///dev/foo.js
59
+ * This property is only provided for local modules (ie. using `file://` URLs).
60
+ *
61
+ * Example:
62
+ * ```
63
+ * // Unix
64
+ * console.log(import.meta.filename); // /home/alice/my_module.ts
65
+ *
66
+ * // Windows
67
+ * console.log(import.meta.filename); // C:\alice\my_module.ts
19
68
  * ```
20
69
  */
21
- resolve(specifier: string): string;
70
+ filename: string;
71
+ /** The absolute path of the directory containing the current module.
72
+ *
73
+ * This property is only provided for local modules (ie. using `file://` URLs).
74
+ *
75
+ * * Example:
76
+ * ```
77
+ * // Unix
78
+ * console.log(import.meta.dirname); // /home/alice
79
+ *
80
+ * // Windows
81
+ * console.log(import.meta.dirname); // C:\alice
82
+ * ```
83
+ */
84
+ dirname: string;
22
85
  }
23
86
  }
87
+ type NodeRequest = ReturnType<typeof createRequire>;
88
+ type NodeModule = NonNullable<NodeRequest["main"]>;
89
+ interface ImportMetaPonyfillCommonjs {
90
+ (require: NodeRequest, module: NodeModule): ImportMeta;
91
+ }
92
+ interface ImportMetaPonyfillEsmodule {
93
+ (importMeta: ImportMeta): ImportMeta;
94
+ }
95
+ interface ImportMetaPonyfill extends ImportMetaPonyfillCommonjs, ImportMetaPonyfillEsmodule {
96
+ }
97
+ export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
98
+ export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
99
+ export declare let import_meta_ponyfill: ImportMetaPonyfill;
24
100
  export {};
101
+ //# sourceMappingURL=_dnt.polyfills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAgC,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAGlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB;;;;;;;;;;;;;;WAcG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;;;;;;;;;;;WAYG;QACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,GAAG,MAAM,CAAC;QACtE;;;;;;;;WAQG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;;;;;;;WAYG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;;;;;;;;;WAYG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,KAAK,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AACnD,UAAU,0BAA0B;IAClC,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CACxD;AACD,UAAU,0BAA0B;IAClC,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAAC;CACtC;AACD,UAAU,kBACR,SAAQ,0BAA0B,EAAE,0BAA0B;CAC/D;AAiBD,eAAO,IAAI,6BAA6B,EA2BnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,6BAA6B,EA4DnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,oBAAoB,EAoB1B,kBAAkB,CAAC"}
@@ -1 +1,127 @@
1
- export {};
1
+ /**
2
+ * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
+ * but instead of using npm to install additional dependencies,
4
+ * this approach manually consolidates cjs/mjs/d.ts into a single file.
5
+ *
6
+ * Note that this code might be imported multiple times
7
+ * (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
8
+ * or Node.js might dynamically clear the cache and then force a require).
9
+ * Therefore, it's important to avoid redundant writes to global objects.
10
+ * Additionally, consider that commonjs is used alongside esm,
11
+ * so the two ponyfill functions are stored independently in two separate global objects.
12
+ */
13
+ //@ts-ignore
14
+ import { createRequire } from "node:module";
15
+ //@ts-ignore
16
+ import { fileURLToPath, pathToFileURL } from "node:url";
17
+ //@ts-ignore
18
+ import { dirname } from "node:path";
19
+ const defineGlobalPonyfill = (symbolFor, fn) => {
20
+ if (!Reflect.has(globalThis, Symbol.for(symbolFor))) {
21
+ Object.defineProperty(globalThis, Symbol.for(symbolFor), {
22
+ configurable: true,
23
+ get() {
24
+ return fn;
25
+ },
26
+ });
27
+ }
28
+ };
29
+ export let import_meta_ponyfill_commonjs = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-commonjs")) ??
30
+ (() => {
31
+ const moduleImportMetaWM = new WeakMap();
32
+ return (require, module) => {
33
+ let importMetaCache = moduleImportMetaWM.get(module);
34
+ if (importMetaCache == null) {
35
+ const importMeta = Object.assign(Object.create(null), {
36
+ url: pathToFileURL(module.filename).href,
37
+ main: require.main == module,
38
+ resolve: (specifier, parentURL = importMeta.url) => {
39
+ return pathToFileURL((importMeta.url === parentURL
40
+ ? require
41
+ : createRequire(parentURL))
42
+ .resolve(specifier)).href;
43
+ },
44
+ filename: module.filename,
45
+ dirname: module.path,
46
+ });
47
+ moduleImportMetaWM.set(module, importMeta);
48
+ importMetaCache = importMeta;
49
+ }
50
+ return importMetaCache;
51
+ };
52
+ })());
53
+ defineGlobalPonyfill("import-meta-ponyfill-commonjs", import_meta_ponyfill_commonjs);
54
+ export let import_meta_ponyfill_esmodule = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-esmodule")) ??
55
+ ((importMeta) => {
56
+ const resolveFunStr = String(importMeta.resolve);
57
+ const shimWs = new WeakSet();
58
+ //@ts-ignore
59
+ const mainUrl = ("file:///" + process.argv[1].replace(/\\/g, "/"))
60
+ .replace(/\/{3,}/, "///");
61
+ const commonShim = (importMeta) => {
62
+ if (typeof importMeta.main !== "boolean") {
63
+ importMeta.main = importMeta.url === mainUrl;
64
+ }
65
+ if (typeof importMeta.filename !== "string") {
66
+ importMeta.filename = fileURLToPath(importMeta.url);
67
+ importMeta.dirname = dirname(importMeta.filename);
68
+ }
69
+ };
70
+ if (
71
+ // v16.2.0+, v14.18.0+: Add support for WHATWG URL object to parentURL parameter.
72
+ resolveFunStr === "undefined" ||
73
+ // v20.0.0+, v18.19.0+"" This API now returns a string synchronously instead of a Promise.
74
+ resolveFunStr.startsWith("async")
75
+ // enable by --experimental-import-meta-resolve flag
76
+ ) {
77
+ import_meta_ponyfill_esmodule = (importMeta) => {
78
+ if (!shimWs.has(importMeta)) {
79
+ shimWs.add(importMeta);
80
+ const importMetaUrlRequire = {
81
+ url: importMeta.url,
82
+ require: createRequire(importMeta.url),
83
+ };
84
+ importMeta.resolve = function resolve(specifier, parentURL = importMeta.url) {
85
+ return pathToFileURL((importMetaUrlRequire.url === parentURL
86
+ ? importMetaUrlRequire.require
87
+ : createRequire(parentURL)).resolve(specifier)).href;
88
+ };
89
+ commonShim(importMeta);
90
+ }
91
+ return importMeta;
92
+ };
93
+ }
94
+ else {
95
+ /// native support
96
+ import_meta_ponyfill_esmodule = (importMeta) => {
97
+ if (!shimWs.has(importMeta)) {
98
+ shimWs.add(importMeta);
99
+ commonShim(importMeta);
100
+ }
101
+ return importMeta;
102
+ };
103
+ }
104
+ return import_meta_ponyfill_esmodule(importMeta);
105
+ }));
106
+ defineGlobalPonyfill("import-meta-ponyfill-esmodule", import_meta_ponyfill_esmodule);
107
+ export let import_meta_ponyfill = ((...args) => {
108
+ const _MODULE = (() => {
109
+ if (typeof require === "function" && typeof module === "object") {
110
+ return "commonjs";
111
+ }
112
+ else {
113
+ // eval("typeof import.meta");
114
+ return "esmodule";
115
+ }
116
+ })();
117
+ if (_MODULE === "commonjs") {
118
+ //@ts-ignore
119
+ import_meta_ponyfill = (r, m) => import_meta_ponyfill_commonjs(r, m);
120
+ }
121
+ else {
122
+ //@ts-ignore
123
+ import_meta_ponyfill = (im) => import_meta_ponyfill_esmodule(im);
124
+ }
125
+ //@ts-ignore
126
+ return import_meta_ponyfill(...args);
127
+ });
@@ -3,3 +3,4 @@ export { Deno } from "@deno/shim-deno";
3
3
  export declare const dntGlobalThis: Omit<typeof globalThis, "Deno"> & {
4
4
  Deno: typeof Deno;
5
5
  };
6
+ //# sourceMappingURL=_dnt.shims.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAKvC,eAAO,MAAM,aAAa;;CAA2C,CAAC"}
package/esm/deno.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  declare namespace _default {
2
+ let nodeModulesDir: string;
2
3
  let name: string;
3
4
  let version: string;
4
5
  let exports: string;
@@ -23,3 +24,4 @@ declare namespace _default {
23
24
  };
24
25
  }
25
26
  export default _default;
27
+ //# sourceMappingURL=deno.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deno.d.ts","sourceRoot":"","sources":["../src/deno.js"],"names":[],"mappings":""}
package/esm/deno.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export default {
2
+ "nodeModulesDir": "auto",
2
3
  "name": "@seyuna/cli",
3
- "version": "1.0.0-canary.19",
4
+ "version": "1.0.0-canary.21",
4
5
  "exports": "./src/main.ts",
5
6
  "publish": {
6
7
  "include": [
@@ -15,15 +16,15 @@ export default {
15
16
  "test": "deno test -A"
16
17
  },
17
18
  "imports": {
18
- "@std/cli": "jsr:@std/cli@^1.0.25",
19
- "@std/fs": "jsr:@std/fs@^1.0.0",
20
- "@std/path": "jsr:@std/path@^1.0.0",
21
- "@std/streams": "jsr:@std/streams@^1.0.8",
22
- "@std/assert": "jsr:@std/assert@^1.0.0",
23
- "@std/async": "jsr:@std/async@^1.0.0",
24
- "@std/fmt": "jsr:@std/fmt@^1.0.0",
25
- "@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.8",
26
- "@cliffy/prompt": "jsr:@cliffy/prompt@1.0.0-rc.8",
27
- "dnt": "https://deno.land/x/dnt@0.40.0/mod.ts"
19
+ "@std/cli": "npm:@jsr/std__cli@^1.0.25",
20
+ "@std/fs": "npm:@jsr/std__fs@^1.0.0",
21
+ "@std/path": "npm:@jsr/std__path@^1.0.0",
22
+ "@std/streams": "npm:@jsr/std__streams@^1.0.8",
23
+ "@std/assert": "npm:@jsr/std__assert@^1.0.0",
24
+ "@std/async": "npm:@jsr/std__async@^1.0.0",
25
+ "@std/fmt": "npm:@jsr/std__fmt@^1.0.0",
26
+ "@cliffy/command": "npm:@jsr/cliffy__command@^1.0.0-rc.8",
27
+ "@cliffy/prompt": "npm:@jsr/cliffy__prompt@^1.0.0-rc.8",
28
+ "dnt": "jsr:@deno/dnt@0.42.3"
28
29
  }
29
30
  };
@@ -5,3 +5,4 @@
5
5
  * @returns A promise that resolves when initialization is complete.
6
6
  */
7
7
  export declare function initConfig(): Promise<void>;
8
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/src/config/init.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAgEhD"}
@@ -2,7 +2,7 @@ import * as dntShim from "../../_dnt.shims.js";
2
2
  import { UI_CONFIGURATION } from "../ui/default.js";
3
3
  import { SeyunaSpinner } from "../helpers/cli.js";
4
4
  import { Brand } from "../helpers/styles.js";
5
- import { Input, Select } from "@cliffy/prompt";
5
+ import { Input, Select } from "@jsr/cliffy__prompt";
6
6
  /**
7
7
  * Initializes a new Seyuna project by creating a 'seyuna.json' configuration file.
8
8
  * This function performs safety checks to avoid overwriting existing configurations.
@@ -22,3 +22,4 @@ export interface Config {
22
22
  * @returns A new configuration object with combined properties
23
23
  */
24
24
  export declare function mergeConfig(base: Config, override: Config): Config;
25
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,EAAE,CAAC,EAAE,EAAE,CAAC;CACT;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAQlE"}
@@ -42,3 +42,4 @@ export declare class SeyunaSpinner {
42
42
  * @returns An active SeyunaSpinner instance.
43
43
  */
44
44
  export declare function startSpinner(message: string): SeyunaSpinner;
45
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/src/helpers/cli.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAU;IAEzB;;;OAGG;gBACS,OAAO,EAAE,MAAM;IAO3B;;;OAGG;IACH,KAAK,IAAI,IAAI;IAKb;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI/B;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAK3B;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAK5B;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAI/B;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAE3D"}
@@ -1,4 +1,4 @@
1
- import { Spinner } from "@std/cli/unstable-spinner";
1
+ import { Spinner } from "@jsr/std__cli/unstable-spinner";
2
2
  import { Brand, seyunaGradient, Symbols } from "./styles.js";
3
3
  /**
4
4
  * A branded spinner class that provides visual feedback for long-running CLI operations.
@@ -32,3 +32,4 @@ export declare function saveFile(path: string, content: string | Uint8Array): Pr
32
32
  * @returns The merged configuration object
33
33
  */
34
34
  export declare function loadSeyunaUserConfig(): Promise<Config>;
35
+ //# sourceMappingURL=fs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../src/src/helpers/fs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAIjD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,MAAM,CAQR;AAED;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAS5D;AAED;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAC5B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,UAAU,GAC3B,OAAO,CAAC,IAAI,CAAC,CAQf;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAuB5D"}
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../../_dnt.shims.js";
2
- import { dirname, join } from "@std/path";
3
- import { ensureDir } from "@std/fs";
2
+ import { dirname, join } from "@jsr/std__path";
3
+ import { ensureDir } from "@jsr/std__fs";
4
4
  import { mergeConfig } from "../config/types.js";
5
5
  import { UI_CONFIGURATION } from "../ui/default.js";
6
6
  /**
@@ -8,19 +8,19 @@ export type ColorFunction = (text: string) => string;
8
8
  */
9
9
  export declare const Brand: {
10
10
  /** Vibrant Spring Green - Primary brand color */
11
- readonly primary: (text: string) => any;
11
+ readonly primary: (text: string) => string;
12
12
  /** Cyan - Secondary brand color */
13
- readonly secondary: (text: string) => any;
13
+ readonly secondary: (text: string) => string;
14
14
  /** Magenta - Accent color for highlights */
15
- readonly accent: (text: string) => any;
15
+ readonly accent: (text: string) => string;
16
16
  /** Bold Green - Indicates successful operations */
17
- readonly success: (text: string) => any;
17
+ readonly success: (text: string) => string;
18
18
  /** Bold Red - Indicates errors or critical failures */
19
- readonly error: (text: string) => any;
19
+ readonly error: (text: string) => string;
20
20
  /** Bold Yellow - Indicates warnings or non-critical issues */
21
- readonly warning: (text: string) => any;
21
+ readonly warning: (text: string) => string;
22
22
  /** Gray - For less important or decorative text */
23
- readonly muted: (text: string) => any;
23
+ readonly muted: (text: string) => string;
24
24
  };
25
25
  /**
26
26
  * Interpolates between two hex colors to create a gradient effect on text.
@@ -41,13 +41,14 @@ export declare const seyunaGradient: ColorFunction;
41
41
  */
42
42
  export declare const Symbols: {
43
43
  /** Info icon (Cyan) */
44
- readonly info: any;
44
+ readonly info: string;
45
45
  /** Success icon (Green) */
46
- readonly success: any;
46
+ readonly success: string;
47
47
  /** Warning icon (Yellow) */
48
- readonly warning: any;
48
+ readonly warning: string;
49
49
  /** Error icon (Red) */
50
- readonly error: any;
50
+ readonly error: string;
51
51
  /** Decorative arrow (Muted) */
52
- readonly arrow: any;
52
+ readonly arrow: string;
53
53
  };
54
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/src/helpers/styles.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,KAAK;IAChB,iDAAiD;6BACjC,MAAM;IAEtB,mCAAmC;+BACjB,MAAM;IAExB,4CAA4C;4BAC7B,MAAM;IAErB,mDAAmD;6BACnC,MAAM;IAEtB,uDAAuD;2BACzC,MAAM;IAEpB,8DAA8D;6BAC9C,MAAM;IAEtB,mDAAmD;2BACrC,MAAM;CAC4B,CAAC;AAEnD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAyB/E;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,aACO,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,OAAO;IAClB,uBAAuB;;IAGvB,2BAA2B;;IAG3B,4BAA4B;;IAG5B,uBAAuB;;IAGvB,+BAA+B;;CAEU,CAAC"}
@@ -1,4 +1,4 @@
1
- import * as colors from "@std/fmt/colors";
1
+ import * as colors from "@jsr/std__fmt/colors";
2
2
  /**
3
3
  * Standard brand colors and styles for the Seyuna CLI.
4
4
  * Provides a consistent visual identity across all command outputs.
package/esm/src/main.d.ts CHANGED
@@ -8,3 +8,4 @@
8
8
  * @module
9
9
  */
10
10
  import "../_dnt.polyfills.js";
11
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,sBAAsB,CAAC"}
package/esm/src/main.js CHANGED
@@ -10,8 +10,8 @@
10
10
  */
11
11
  import "../_dnt.polyfills.js";
12
12
  import * as dntShim from "../_dnt.shims.js";
13
- import { Command } from "@cliffy/command";
14
- import * as colors from "@std/fmt/colors";
13
+ import { Command } from "@jsr/cliffy__command";
14
+ import * as colors from "@jsr/std__fmt/colors";
15
15
  import { initConfig } from "./config/init.js";
16
16
  import { compile } from "./ui/compile.js";
17
17
  import { Brand, seyunaGradient } from "./helpers/styles.js";
@@ -97,7 +97,7 @@ applyBrandedHelp(cmd);
97
97
  * CLI Execution Loop.
98
98
  * Handles argument parsing and top-level error reporting.
99
99
  */
100
- if ((import.meta.url === ("file:///" + process.argv[1].replace(/\\/g, "/")).replace(/\/{3,}/, "///"))) {
100
+ if (globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).main) {
101
101
  try {
102
102
  await cmd.parse(dntShim.Deno.args);
103
103
  }
@@ -18,3 +18,4 @@ export declare function compile(options: {
18
18
  * @param config - The project configuration object
19
19
  */
20
20
  export declare function compileCss(config: Config): Promise<void>;
21
+ //# sourceMappingURL=compile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../src/src/ui/compile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAYjD;;;;;;;GAOG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAc3E;AAkCD;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAyB9D"}
@@ -2,7 +2,7 @@ import * as dntShim from "../../_dnt.shims.js";
2
2
  import { GLOBAL_CSS } from "./global.css.js";
3
3
  import { createPathFromFileName, loadSeyunaUserConfig, saveFile, } from "../helpers/fs.js";
4
4
  import { SeyunaSpinner } from "../helpers/cli.js";
5
- import { delay } from "@std/async";
5
+ import { delay } from "@jsr/std__async";
6
6
  import { Brand } from "../helpers/styles.js";
7
7
  /**
8
8
  * Main entrypoint for the UI compilation process.
@@ -5,3 +5,4 @@ import type { UI } from "./types.js";
5
5
  * Greek-lettered hue scale and foundational semantic colors.
6
6
  */
7
7
  export declare const UI_CONFIGURATION: UI;
8
+ //# sourceMappingURL=default.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/src/ui/default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAgE9B,CAAC"}
@@ -8,3 +8,4 @@
8
8
  * - Standardized element baselines (links, images, headings)
9
9
  */
10
10
  export declare const GLOBAL_CSS = "@layer reset, base, components, utilities;\n\n@layer reset {\n/* \n Reset all elements to a zeroed baseline to ensure consistency in all browsers.\n*/\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n line-height: 2;\n font-family: inherit;\n }\n\n/* \n Prevent automatic font size adjustments on mobile devices to keep text rendering consistent across platforms.\n*/\n html {\n -moz-text-size-adjust: none; /* Firefox */\n -webkit-text-size-adjust: none; /* Safari / older WebKit browsers */\n text-size-adjust: none; /* Modern spec-compliant browsers */\n color: var(--text);\n background-color: var(--background);\n font-size: max(1rem, 0.833vw);\n }\n\n/* \n Remove default list styling from unordered and ordered lists that \n explicitly use role=\"list\".\n*/\n ul[role=\"list\"],\n ol[role=\"list\"] {\n list-style: none;\n }\n\n/* \n Ensure the body element always fills at least the full height of the viewport\n so short pages don't collapse. Improve text rendering across browsers by\n enabling smoother grayscale antialiasing. Set the body as a container\n (queryable by its inline size) for use with CSS container queries, and\n enable smooth scrolling for anchor links and programmatic scroll actions.\n*/\n body {\n min-height: 100vh;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n container-type: inline-size;\n scroll-behavior: smooth;\n }\n\n/* \n Improve heading readability by evenly distributing words across lines.\n This prevents awkward line breaks and creates more balanced, aesthetic headings.\n*/\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n text-wrap: balance;\n }\n\n/* \n Reset all link styles to inherit from parent elements.\n This removes default colors, underlines, and visited/hover states.\n*/\n a {\n all: unset;\n color: inherit;\n text-decoration: none;\n cursor: pointer;\n }\n\n/* \n Ensure images and <picture> elements scale within their container,\n preventing overflow and maintaining layout integrity on any screen size.\n*/\n img,\n picture {\n max-width: 100%;\n display: block;\n }\n\n/* \n Add extra scroll margin above and below elements targeted via anchors.\n This prevents the element from hugging the top edge of the viewport when navigated to.\n*/\n :target {\n scroll-margin-block: 1rem;\n }\n}\n";
11
+ //# sourceMappingURL=global.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.css.d.ts","sourceRoot":"","sources":["../../../src/src/ui/global.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,q4EA8FtB,CAAC"}
@@ -74,3 +74,4 @@ export declare function mergeTheme(base: Theme, override: Theme): Theme;
74
74
  * Recursively merges two UI engine configurations.
75
75
  */
76
76
  export declare function mergeUI(base: UI, override: UI): UI;
77
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/ui/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,KAAK;IACpB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,UAAU,EAAE,KAAK,CAAC;IAClB,kCAAkC;IAClC,IAAI,EAAE,KAAK,CAAC;IACZ,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9B,uCAAuC;IACvC,KAAK,EAAE,OAAO,CAAC;IACf,sCAAsC;IACtC,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,EAAE;IACjB,0BAA0B;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,yBAAyB;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,KAAK,CAE/D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAQtE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,KAAK,CAS9D;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,CAMlD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seyuna/cli",
3
- "version": "1.0.0-canary.19",
3
+ "version": "1.0.0-canary.21",
4
4
  "description": "Seyuna CLI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,6 +16,7 @@
16
16
  "import": "./esm/src/main.js"
17
17
  }
18
18
  },
19
+ "scripts": {},
19
20
  "engines": {
20
21
  "node": ">=18"
21
22
  },
@@ -23,10 +24,17 @@
23
24
  "seyuna": "./esm/src/main.js"
24
25
  },
25
26
  "dependencies": {
27
+ "@jsr/cliffy__command": "^1.0.0-rc.8",
28
+ "@jsr/cliffy__prompt": "^1.0.0-rc.8",
29
+ "@jsr/std__async": "^1.0.0",
30
+ "@jsr/std__cli": "^1.0.25",
31
+ "@jsr/std__fmt": "^1.0.0",
32
+ "@jsr/std__fs": "^1.0.0",
33
+ "@jsr/std__path": "^1.0.0",
26
34
  "@deno/shim-deno": "~0.18.0"
27
35
  },
28
36
  "devDependencies": {
29
37
  "@types/node": "^20.9.0"
30
38
  },
31
- "_generatedBy": "dnt@0.40.0"
39
+ "_generatedBy": "dnt@dev"
32
40
  }