@reliverse/dler 1.7.95 → 1.7.97

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.
@@ -4,7 +4,7 @@ import { relinka } from "@reliverse/relinka";
4
4
  import { confirmPrompt } from "@reliverse/rempts";
5
5
  import { generateText } from "ai";
6
6
  import { countTokens } from "gpt-tokenizer/model/gpt-4o-mini";
7
- import { CIRCULAR_TRIGGERS, MAX_TOKENS, MODEL, MODEL_NAME } from "../ai-const.js";
7
+ import { CIRCULAR_TRIGGERS, MODEL, MODEL_NAME } from "../ai-const.js";
8
8
  function calculateTokens(content) {
9
9
  return countTokens(content);
10
10
  }
@@ -201,8 +201,7 @@ Additional instructions: ${task}
201
201
  { role: "system", content: systemMessage },
202
202
  { role: "user", content: `path: ${filePath}
203
203
  ${chunk}` }
204
- ],
205
- maxTokens: MAX_TOKENS
204
+ ]
206
205
  });
207
206
  let suggestions = [];
208
207
  let text = response.text;
@@ -4,7 +4,7 @@ import { relinka } from "@reliverse/relinka";
4
4
  import { defineArgs, defineCommand, runCmd } from "@reliverse/rempts";
5
5
  import { execaCommand } from "execa";
6
6
  import MagicString from "magic-string";
7
- import { getAuthGenerateCmd } from "@/app/cmds";
7
+ import { getBetterAuthGenerateCmd } from "../../cmds.js";
8
8
  import { configPath, schemaPath } from "./consts.js";
9
9
  const notice = `/**
10
10
  * THIS FILE IS AUTO-GENERATED - DO NOT EDIT DIRECTLY
@@ -43,7 +43,9 @@ export default defineCommand({
43
43
  relinka("error", "Schema file does not exist; tried:", args.schema);
44
44
  process.exit(1);
45
45
  }
46
- await runCmd(await getAuthGenerateCmd(), [`--config ${configPath} --output ${schemaPath}`]);
46
+ await runCmd(await getBetterAuthGenerateCmd(), [
47
+ `--config ${configPath} --output ${schemaPath}`
48
+ ]);
47
49
  const filePath = path.resolve(schemaPath);
48
50
  const originalContent = await fs.readFile(filePath, "utf8");
49
51
  const s = new MagicString(originalContent);
@@ -3,7 +3,7 @@ import fs from "@reliverse/relifso";
3
3
  import { relinka } from "@reliverse/relinka";
4
4
  import { runCmd } from "@reliverse/rempts";
5
5
  import { glob } from "tinyglobby";
6
- import { getCheckCmd } from "@/app/cmds";
6
+ import { getCheckCmd } from "../cmds.js";
7
7
  import { PROJECT_ROOT } from "../config/constants.js";
8
8
  import { getConfigDler } from "../config/load.js";
9
9
  import { applyMagicSpells } from "../magic/magic-apply.js";
@@ -3,7 +3,7 @@ import fs from "@reliverse/relifso";
3
3
  import { relinka } from "@reliverse/relinka";
4
4
  import { runCmd } from "@reliverse/rempts";
5
5
  import { glob } from "tinyglobby";
6
- import { getCheckCmd } from "@/app/cmds";
6
+ import { getCheckCmd } from "../cmds.js";
7
7
  import { PROJECT_ROOT } from "../config/constants.js";
8
8
  import { executeCommand, executeDlerHooks, isCommandAvailable } from "./ppb-utils.js";
9
9
  const createToolRunner = () => ({
@@ -1,7 +1,7 @@
1
1
  import { runCmd, selectPrompt } from "@reliverse/rempts";
2
2
  import { generate } from "random-words";
3
- import { getWebCmd } from "@/app/cmds";
4
3
  import { aiMenu } from "../ai/ai-menu.js";
4
+ import { getWebCmd } from "../cmds.js";
5
5
  import { detectProject } from "../config/cfg-detect.js";
6
6
  import { cliJsrPath, UNKNOWN_VALUE } from "../config/constants.js";
7
7
  import { ad, getRandomMessage, getWelcomeTitle, premium } from "../db/messages.js";
@@ -1,14 +1,11 @@
1
1
  import FirecrawlApp from "@mendable/firecrawl-js";
2
2
  export async function useFirecrawl(url) {
3
3
  const app = new FirecrawlApp({ apiKey: process.env.FIRECRAWL_API_KEY });
4
- const crawlResponse = await app.crawlUrl(url, {
4
+ const crawlResponse = await app.crawl(url, {
5
5
  limit: 100,
6
6
  scrapeOptions: {
7
7
  formats: ["markdown", "html"]
8
8
  }
9
9
  });
10
- if (!crawlResponse.success) {
11
- throw new Error(`Failed to crawl: ${crawlResponse.error}`);
12
- }
13
10
  console.log(crawlResponse);
14
11
  }
@@ -1,5 +1,5 @@
1
1
  export declare const PROJECT_ROOT: string;
2
- export declare const cliVersion = "1.7.95";
2
+ export declare const cliVersion = "1.7.97";
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.95";
4
+ const version = "1.7.97";
5
5
  export const cliVersion = version;
6
6
  export const cliName = "@reliverse/rse";
7
7
  export const rseName = "@reliverse/rse";
@@ -1,8 +1,8 @@
1
1
  import { re } from "@reliverse/relico";
2
2
  import { relinka } from "@reliverse/relinka";
3
3
  import { inputPrompt, runCmd, selectPrompt } from "@reliverse/rempts";
4
- import { getAuthCmd } from "@/app/cmds";
5
4
  import { useLanguine } from "../../../add/add-local/i18n/languine.js";
5
+ import { getBetterAuthCmd } from "../../../cmds.js";
6
6
  import { getProjectContent } from "../../../config/cfg-content.js";
7
7
  import { envArgImpl } from "../../../env/env-impl.js";
8
8
  import { manageDrizzleSchema } from "../../mm-deprecated/drizzle/manageDrizzleSchema.js";
@@ -148,7 +148,7 @@ export async function handleOpenProjectMenu(projects, isDev, memory, cwd, maskIn
148
148
  relinka("info", "The following args will be passed to the rse auth command:");
149
149
  relinka("log", `--config ${selectedProject.path}/src/lib/auth.ts`);
150
150
  relinka("log", `--output ${selectedProject.path}/src/db/schema/user/tables.ts`);
151
- await runCmd(await getAuthCmd(), [
151
+ await runCmd(await getBetterAuthCmd(), [
152
152
  `--config ${selectedProject.path}/src/lib/auth.ts --output ${selectedProject.path}/src/db/schema/user/tables.ts`
153
153
  ]);
154
154
  break;
@@ -18,9 +18,9 @@ export declare const BackendSchema: z.ZodEnum<{
18
18
  none: "none";
19
19
  hono: "hono";
20
20
  next: "next";
21
+ convex: "convex";
21
22
  express: "express";
22
23
  fastify: "fastify";
23
- convex: "convex";
24
24
  elysia: "elysia";
25
25
  }>;
26
26
  export type Backend = z.infer<typeof BackendSchema>;
@@ -34,29 +34,29 @@ export type Runtime = z.infer<typeof RuntimeSchema>;
34
34
  export declare const FrontendSchema: z.ZodEnum<{
35
35
  none: "none";
36
36
  svelte: "svelte";
37
- nuxt: "nuxt";
38
- solid: "solid";
39
37
  next: "next";
40
38
  "react-router": "react-router";
41
39
  "tanstack-router": "tanstack-router";
40
+ nuxt: "nuxt";
41
+ solid: "solid";
42
+ "tanstack-start": "tanstack-start";
42
43
  "native-nativewind": "native-nativewind";
43
44
  "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
48
  none: "none";
49
49
  biome: "biome";
50
- tauri: "tauri";
51
50
  starlight: "starlight";
51
+ tauri: "tauri";
52
52
  turborepo: "turborepo";
53
53
  pwa: "pwa";
54
54
  husky: "husky";
55
55
  }>;
56
56
  export type Addons = z.infer<typeof AddonsSchema>;
57
57
  export declare const ExamplesSchema: z.ZodEnum<{
58
- ai: "ai";
59
58
  none: "none";
59
+ ai: "ai";
60
60
  todo: "todo";
61
61
  }>;
62
62
  export type Examples = z.infer<typeof ExamplesSchema>;
package/bin/dler.js CHANGED
@@ -12,7 +12,7 @@ let isDev = process.env.DLER_DEV_MODE === "true";
12
12
  const main = defineCommand({
13
13
  meta: {
14
14
  name: "dler",
15
- version: "1.7.95",
15
+ version: "1.7.97",
16
16
  description: `Displays dler's command menu.
17
17
  To see ALL available commands and arguments, run: 'dler --help' (or 'dler <command> --help')
18
18
  Available menu commands: ${MENU_CMDS.join(", ")}`
package/package.json CHANGED
@@ -13,10 +13,10 @@
13
13
  "@reliverse/bleump": "^1.1.4",
14
14
  "@reliverse/pathkit": "^1.3.4",
15
15
  "@reliverse/reglob": "^1.0.0",
16
- "@reliverse/relico": "^1.3.4",
16
+ "@reliverse/relico": "^1.3.5",
17
17
  "@reliverse/relifso": "^1.4.5",
18
18
  "@reliverse/relinka": "^1.5.5",
19
- "@reliverse/rempts": "^1.7.45",
19
+ "@reliverse/rempts": "^1.7.46",
20
20
  "@reliverse/runtime": "^1.0.3",
21
21
  "@rollup/plugin-alias": "^5.1.1",
22
22
  "@rollup/plugin-commonjs": "^28.0.6",
@@ -110,7 +110,7 @@
110
110
  "license": "MIT",
111
111
  "name": "@reliverse/dler",
112
112
  "type": "module",
113
- "version": "1.7.95",
113
+ "version": "1.7.97",
114
114
  "keywords": [
115
115
  "reliverse",
116
116
  "cli",