use-vibes 0.19.16-dev-cli → 0.19.22-dev-cli

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 (55) hide show
  1. package/esm/_dnt.polyfills.d.ts +101 -0
  2. package/esm/_dnt.polyfills.d.ts.map +1 -0
  3. package/esm/_dnt.polyfills.js +127 -0
  4. package/esm/bin.d.ts +3 -0
  5. package/esm/bin.d.ts.map +1 -0
  6. package/{cli.js → esm/bin.js} +4 -1
  7. package/{commands → esm/commands}/cli-output.d.ts +1 -0
  8. package/esm/commands/cli-output.d.ts.map +1 -0
  9. package/{commands → esm/commands}/cli-output.js +0 -1
  10. package/{commands → esm/commands}/help.d.ts +1 -0
  11. package/esm/commands/help.d.ts.map +1 -0
  12. package/{commands → esm/commands}/help.js +1 -2
  13. package/{commands → esm/commands}/not-implemented.d.ts +1 -0
  14. package/esm/commands/not-implemented.d.ts.map +1 -0
  15. package/{commands → esm/commands}/not-implemented.js +0 -1
  16. package/{commands → esm/commands}/skills.d.ts +1 -0
  17. package/esm/commands/skills.d.ts.map +1 -0
  18. package/{commands → esm/commands}/skills.js +0 -1
  19. package/{commands → esm/commands}/system.d.ts +1 -0
  20. package/esm/commands/system.d.ts.map +1 -0
  21. package/{commands → esm/commands}/system.js +0 -1
  22. package/{commands → esm/commands}/whoami.d.ts +1 -0
  23. package/esm/commands/whoami.d.ts.map +1 -0
  24. package/{commands → esm/commands}/whoami.js +0 -1
  25. package/{index.d.ts → esm/index.d.ts} +2 -0
  26. package/esm/index.d.ts.map +1 -0
  27. package/esm/index.js +15 -0
  28. package/esm/package.json +3 -0
  29. package/{run-cli.d.ts → esm/run-cli.d.ts} +1 -0
  30. package/esm/run-cli.d.ts.map +1 -0
  31. package/{run-cli.js → esm/run-cli.js} +0 -1
  32. package/package.json +16 -24
  33. package/LICENSE.md +0 -232
  34. package/README.md +0 -549
  35. package/RELEASE-NOTES.md +0 -21
  36. package/cli.d.ts +0 -1
  37. package/cli.js.map +0 -1
  38. package/commands/cli-output-deno.d.ts +0 -2
  39. package/commands/cli-output-deno.js +0 -10
  40. package/commands/cli-output-deno.js.map +0 -1
  41. package/commands/cli-output.js.map +0 -1
  42. package/commands/help.js.map +0 -1
  43. package/commands/not-implemented.js.map +0 -1
  44. package/commands/skills.js.map +0 -1
  45. package/commands/system.js.map +0 -1
  46. package/commands/whoami.js.map +0 -1
  47. package/deno.json +0 -14
  48. package/index.js +0 -2
  49. package/index.js.map +0 -1
  50. package/main.deno.d.ts +0 -1
  51. package/main.deno.js +0 -9
  52. package/main.deno.js.map +0 -1
  53. package/run-cli.js.map +0 -1
  54. package/tsconfig.json +0 -22
  55. /package/{commands → esm/commands}/help.txt +0 -0
@@ -0,0 +1,101 @@
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";
15
+ declare global {
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;
47
+ /** A flag that indicates if the current module is the main module that was
48
+ * called when starting the program under Deno.
49
+ *
50
+ * ```ts
51
+ * if (import.meta.main) {
52
+ * // this was loaded as the main module, maybe do some bootstrapping
53
+ * }
54
+ * ```
55
+ */
56
+ main: boolean;
57
+ /** The absolute path of the current module.
58
+ *
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
68
+ * ```
69
+ */
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;
85
+ }
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;
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"}
@@ -0,0 +1,127 @@
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
+ });
package/esm/bin.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import "./_dnt.polyfills.js";
3
+ //# sourceMappingURL=bin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAGA,OAAO,qBAAqB,CAAC"}
@@ -1,3 +1,7 @@
1
+ #!/usr/bin/env node
2
+ // Node CLI entry point — compiled by dnt with #!/usr/bin/env node shebang.
3
+ // For Deno, use main.deno.ts instead.
4
+ import "./_dnt.polyfills.js";
1
5
  import { defaultCliOutput } from "./commands/cli-output.js";
2
6
  import { runCli } from "./run-cli.js";
3
7
  await runCli(process.argv.slice(2), {
@@ -6,4 +10,3 @@ await runCli(process.argv.slice(2), {
6
10
  process.exitCode = code;
7
11
  },
8
12
  });
9
- //# sourceMappingURL=cli.js.map
@@ -3,3 +3,4 @@ export interface CliOutput {
3
3
  readonly stderr: (text: string) => void;
4
4
  }
5
5
  export declare const defaultCliOutput: CliOutput;
6
+ //# sourceMappingURL=cli-output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-output.d.ts","sourceRoot":"","sources":["../../src/commands/cli-output.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,eAAO,MAAM,gBAAgB,EAAE,SAG9B,CAAC"}
@@ -2,4 +2,3 @@ export const defaultCliOutput = {
2
2
  stdout: (text) => process.stdout.write(text),
3
3
  stderr: (text) => process.stderr.write(text),
4
4
  };
5
- //# sourceMappingURL=cli-output.js.map
@@ -1,3 +1,4 @@
1
1
  import { Result } from "@adviser/cement";
2
2
  import { type CliOutput } from "./cli-output.js";
3
3
  export declare function runHelp(output?: CliOutput): Promise<Result<void>>;
4
+ //# sourceMappingURL=help.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,iBAAiB,CAAC;AAEnE,wBAAsB,OAAO,CAAC,MAAM,GAAE,SAA4B,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAOzF"}
@@ -1,11 +1,10 @@
1
1
  import { Result, loadAsset } from "@adviser/cement";
2
2
  import { defaultCliOutput } from "./cli-output.js";
3
3
  export async function runHelp(output = defaultCliOutput) {
4
- const rHelpText = await loadAsset("./help.txt", { basePath: () => import.meta.url });
4
+ const rHelpText = await loadAsset("./help.txt", { basePath: () => globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).url });
5
5
  if (rHelpText.isErr()) {
6
6
  return Result.Err(`Failed to load help text: ${rHelpText.Err()}`);
7
7
  }
8
8
  output.stdout(rHelpText.Ok());
9
9
  return Result.Ok(undefined);
10
10
  }
11
- //# sourceMappingURL=help.js.map
@@ -3,3 +3,4 @@ export interface NotImplementedOptions {
3
3
  readonly name: string;
4
4
  }
5
5
  export declare function notImplemented(options: NotImplementedOptions): () => Promise<Result<void>>;
6
+ //# sourceMappingURL=not-implemented.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-implemented.d.ts","sourceRoot":"","sources":["../../src/commands/not-implemented.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAI1F"}
@@ -4,4 +4,3 @@ export function notImplemented(options) {
4
4
  return Result.Err(`use-vibes ${options.name}: not yet implemented`);
5
5
  };
6
6
  }
7
- //# sourceMappingURL=not-implemented.js.map
@@ -1,3 +1,4 @@
1
1
  import { Result } from "@adviser/cement";
2
2
  import { type CliOutput } from "./cli-output.js";
3
3
  export declare function runSkills(output?: CliOutput): Promise<Result<void>>;
4
+ //# sourceMappingURL=skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/commands/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAoB,MAAM,iBAAiB,CAAC;AAE3D,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,iBAAiB,CAAC;AAEnE,wBAAsB,SAAS,CAAC,MAAM,GAAE,SAA4B,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAS3F"}
@@ -11,4 +11,3 @@ export async function runSkills(output = defaultCliOutput) {
11
11
  }
12
12
  return Result.Ok(undefined);
13
13
  }
14
- //# sourceMappingURL=skills.js.map
@@ -4,3 +4,4 @@ export interface RunSystemOptions {
4
4
  readonly skillsCsv?: string;
5
5
  }
6
6
  export declare function runSystem(options: RunSystemOptions, output?: CliOutput): Promise<Result<void>>;
7
+ //# sourceMappingURL=system.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../src/commands/system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAoB,MAAM,iBAAiB,CAAC;AAE3D,OAAO,EAAE,KAAK,SAAS,EAAoB,MAAM,iBAAiB,CAAC;AAEnE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAuCD,wBAAsB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAE,SAA4B,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAwCtH"}
@@ -67,4 +67,3 @@ export async function runSystem(options, output = defaultCliOutput) {
67
67
  output.stdout(rPrompt.Ok().systemPrompt);
68
68
  return Result.Ok(undefined);
69
69
  }
70
- //# sourceMappingURL=system.js.map
@@ -1,2 +1,3 @@
1
1
  import { Result } from "@adviser/cement";
2
2
  export declare function runWhoami(): Promise<Result<void>>;
3
+ //# sourceMappingURL=whoami.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whoami.d.ts","sourceRoot":"","sources":["../../src/commands/whoami.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,wBAAsB,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAEvD"}
@@ -2,4 +2,3 @@ import { Result } from "@adviser/cement";
2
2
  export async function runWhoami() {
3
3
  return Result.Err("Not logged in. Run: use-vibes login");
4
4
  }
5
- //# sourceMappingURL=whoami.js.map
@@ -1 +1,3 @@
1
+ import "./_dnt.polyfills.js";
1
2
  export { useFireproof, fireproof, ImgFile, toCloud, type Fireproof, callAI, callAi, type CallAI, ImgGen, type ImgGenProps, useVibes, type UseVibesOptions, type UseVibesResult, type VibeDocument, generateInstallId, useMobile, } from "@vibes.diy/use-vibes-base";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EAEL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,KAAK,SAAS,EAGd,MAAM,EACN,MAAM,EACN,KAAK,MAAM,EAGX,MAAM,EACN,KAAK,WAAW,EAGhB,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,EAGjB,iBAAiB,EAGjB,SAAS,GACV,MAAM,2BAA2B,CAAC"}
package/esm/index.js ADDED
@@ -0,0 +1,15 @@
1
+ // Clean consumer API - ONLY exports for user vibes
2
+ import "./_dnt.polyfills.js";
3
+ export {
4
+ // Core Fireproof integration
5
+ useFireproof, fireproof, ImgFile, toCloud,
6
+ // AI integration
7
+ callAI, callAi,
8
+ // Consumer components
9
+ ImgGen,
10
+ // Vibes generation hook
11
+ useVibes,
12
+ // Install ID generation
13
+ generateInstallId,
14
+ // Hooks (kept for compatibility)
15
+ useMobile, } from "@vibes.diy/use-vibes-base";
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -4,3 +4,4 @@ export interface CliRuntime {
4
4
  readonly setExitCode: (code: number) => void;
5
5
  }
6
6
  export declare function runCli(cliArgs: readonly string[], runtime: CliRuntime): Promise<void>;
7
+ //# sourceMappingURL=run-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-cli.d.ts","sourceRoot":"","sources":["../src/run-cli.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAyFD,wBAAsB,MAAM,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAc3F"}
@@ -98,4 +98,3 @@ export async function runCli(cliArgs, runtime) {
98
98
  break;
99
99
  }
100
100
  }
101
- //# sourceMappingURL=run-cli.js.map
package/package.json CHANGED
@@ -1,10 +1,6 @@
1
1
  {
2
2
  "name": "use-vibes",
3
- "version": "0.19.16-dev-cli",
4
- "type": "module",
5
- "bin": {
6
- "use-vibes": "./cli.js"
7
- },
3
+ "version": "0.19.22-dev-cli",
8
4
  "description": "Transform any DOM element into an AI-powered micro-app",
9
5
  "keywords": [
10
6
  "ai",
@@ -15,32 +11,28 @@
15
11
  "esm",
16
12
  "typescript"
17
13
  ],
14
+ "license": "Apache-2.0",
15
+ "module": "./esm/index.js",
16
+ "exports": {
17
+ "./index.js": {
18
+ "import": "./esm/index.js"
19
+ }
20
+ },
21
+ "scripts": {},
22
+ "bin": {
23
+ "use-vibes": "./esm/bin.js"
24
+ },
25
+ "type": "module",
18
26
  "contributors": [
19
27
  "J Chris Anderson",
20
28
  "Meno Abels"
21
29
  ],
22
- "license": "Apache-2.0",
23
30
  "dependencies": {
24
- "@adviser/cement": "~0.5.32",
25
- "@fireproof/core": "~0.24.12",
26
- "@fireproof/core-keybag": "~0.24.12",
27
- "@fireproof/core-runtime": "~0.24.12",
28
- "@fireproof/core-types-base": "~0.24.12",
29
- "@fireproof/core-types-protocols-cloud": "~0.24.12",
30
- "@fireproof/use-fireproof": "~0.24.12",
31
- "@vibes.diy/prompts": "^0.19.16-dev-cli",
32
- "@vibes.diy/use-vibes-base": "^0.19.16-dev-cli",
33
- "cmd-ts": "~0.15.0",
34
- "tsx": "~4.21.0"
31
+ "@vibes.diy/prompts": "*",
32
+ "@vibes.diy/use-vibes-base": "*"
35
33
  },
36
34
  "peerDependencies": {
37
35
  "react": ">=19.1.0"
38
36
  },
39
- "scripts": {
40
- "build": "core-cli tsc",
41
- "test": "vitest run",
42
- "test:cli": "deno task --config ./deno.json test-cli",
43
- "check:cli": "deno task --config ./deno.json check-cli",
44
- "run:cli:deno": "deno task --config ./deno.json run-cli"
45
- }
37
+ "_generatedBy": "dnt@dev"
46
38
  }