@reliverse/dler 1.7.145 → 1.7.146

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.
@@ -165,7 +165,7 @@ export declare const optionsSchema: z.ZodObject<{
165
165
  }, z.core.$strip>;
166
166
  export declare const outroText = "\uD83E\uDD73 All Done, Happy Hacking!";
167
167
  export declare function getLatestNpmVersion(packageName: string): Promise<string>;
168
- export declare function getPackageManager(): Promise<"npm" | "pnpm" | "yarn" | "bun">;
168
+ export declare function getPackageManager(): Promise<"bun" | "npm" | "pnpm" | "yarn">;
169
169
  export declare function getEnvFiles(cwd: string): Promise<string[]>;
170
170
  export declare function updateEnvs({ envs, files, isCommented, }: {
171
171
  /**
@@ -1,5 +1,5 @@
1
1
  export declare const PROJECT_ROOT: string;
2
- export declare const cliVersion = "1.7.145";
2
+ export declare const cliVersion = "1.7.146";
3
3
  export declare const cliName = "@reliverse/rse";
4
4
  export declare const rseName = "@reliverse/rse";
5
5
  export declare const dlerName = "@reliverse/dler";
@@ -1,7 +1,7 @@
1
1
  import os from "node:os";
2
2
  import path from "@reliverse/pathkit";
3
3
  export const PROJECT_ROOT = path.resolve(process.cwd());
4
- const version = "1.7.145";
4
+ const version = "1.7.146";
5
5
  export const cliVersion = version;
6
6
  export const cliName = "@reliverse/rse";
7
7
  export const rseName = "@reliverse/rse";
@@ -1,22 +1,22 @@
1
1
  import { z } from "zod";
2
2
  export declare const DatabaseSchema: z.ZodEnum<{
3
+ none: "none";
3
4
  mysql: "mysql";
4
5
  sqlite: "sqlite";
5
6
  mongodb: "mongodb";
6
- none: "none";
7
7
  postgres: "postgres";
8
8
  }>;
9
9
  export type Database = z.infer<typeof DatabaseSchema>;
10
10
  export declare const ORMSchema: z.ZodEnum<{
11
- mongoose: "mongoose";
12
11
  none: "none";
12
+ mongoose: "mongoose";
13
13
  drizzle: "drizzle";
14
14
  prisma: "prisma";
15
15
  }>;
16
16
  export type ORM = z.infer<typeof ORMSchema>;
17
17
  export declare const BackendSchema: z.ZodEnum<{
18
- hono: "hono";
19
18
  none: "none";
19
+ hono: "hono";
20
20
  next: "next";
21
21
  convex: "convex";
22
22
  express: "express";
@@ -32,38 +32,38 @@ export declare const RuntimeSchema: z.ZodEnum<{
32
32
  }>;
33
33
  export type Runtime = z.infer<typeof RuntimeSchema>;
34
34
  export declare const FrontendSchema: z.ZodEnum<{
35
+ none: "none";
35
36
  svelte: "svelte";
36
37
  nuxt: "nuxt";
37
38
  solid: "solid";
38
- none: "none";
39
39
  next: "next";
40
40
  "react-router": "react-router";
41
41
  "tanstack-router": "tanstack-router";
42
- "tanstack-start": "tanstack-start";
43
42
  "native-nativewind": "native-nativewind";
44
43
  "native-unistyles": "native-unistyles";
44
+ "tanstack-start": "tanstack-start";
45
45
  }>;
46
46
  export type Frontend = z.infer<typeof FrontendSchema>;
47
47
  export declare const AddonsSchema: z.ZodEnum<{
48
+ none: "none";
48
49
  tauri: "tauri";
49
50
  biome: "biome";
50
51
  starlight: "starlight";
51
- none: "none";
52
52
  turborepo: "turborepo";
53
- husky: "husky";
54
53
  pwa: "pwa";
54
+ husky: "husky";
55
55
  }>;
56
56
  export type Addons = z.infer<typeof AddonsSchema>;
57
57
  export declare const ExamplesSchema: z.ZodEnum<{
58
58
  none: "none";
59
- todo: "todo";
60
59
  ai: "ai";
60
+ todo: "todo";
61
61
  }>;
62
62
  export type Examples = z.infer<typeof ExamplesSchema>;
63
63
  export declare const PackageManagerSchema: z.ZodEnum<{
64
+ bun: "bun";
64
65
  npm: "npm";
65
66
  pnpm: "pnpm";
66
- bun: "bun";
67
67
  }>;
68
68
  export type PackageManager = z.infer<typeof PackageManagerSchema>;
69
69
  export declare const DatabaseSetupSchema: z.ZodEnum<{
@@ -0,0 +1,28 @@
1
+ import { Octokit } from "@octokit/rest";
2
+ import type { ReliverseMemory } from "./schemaMemory";
3
+ export declare const OctokitWithRest: typeof Octokit;
4
+ export declare const octokitUserAgent: string;
5
+ export type InstanceGithub = InstanceType<typeof OctokitWithRest>;
6
+ /**
7
+ * Ensures a valid GitHub token is available in rse's memory.
8
+ *
9
+ * If a token is already stored in memory, this function validates it by fetching the
10
+ * authenticated user's information. If the token is missing or invalid, the user is prompted
11
+ * to input one. The new token is then saved persistently.
12
+ *
13
+ * @param memory - The rse memory object.
14
+ * @param maskInput - A flag or the string "prompt" that determines if input should be masked.
15
+ * @returns The valid GitHub token.
16
+ */
17
+ export declare function ensureGithubToken(memory: ReliverseMemory, maskInput: "prompt" | boolean): Promise<string>;
18
+ /**
19
+ * Initializes a GitHub SDK instance and returns the GitHub token along with the Octokit instance.
20
+ *
21
+ * This function is analogous to the Vercel SDK init function; it ensures that a valid GitHub token is
22
+ * available (prompting for one if necessary), initializes Octokit with the token, and returns both.
23
+ *
24
+ * @param memory - The rse memory object.
25
+ * @param maskInput - A flag or "prompt" to determine if the token input should be masked.
26
+ * @returns A tuple containing the GitHub token and works as the wrapper for the Octokit instance.
27
+ */
28
+ export declare function initGithubSDK(memory: ReliverseMemory, frontendUsername: string, maskInput: "prompt" | boolean): Promise<[string, InstanceGithub, string]>;
package/package.json CHANGED
@@ -123,7 +123,7 @@
123
123
  "license": "MIT",
124
124
  "name": "@reliverse/dler",
125
125
  "type": "module",
126
- "version": "1.7.145",
126
+ "version": "1.7.146",
127
127
  "author": "reliverse",
128
128
  "bugs": {
129
129
  "email": "blefnk@gmail.com",