@ubean/devtools 0.6.1-beta.3 → 0.6.1

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.
@@ -3,10 +3,10 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <link rel="icon" href="https://r2.soybeanjs.tech/soybeanjs/logo-ubean.svg?v=202608192144" type="image/svg+xml" />
6
+ <link rel="icon" href="https://img.soybeanjs.dev/logo-ubean.svg?v=202608192144" type="image/svg+xml" />
7
7
  <title>Ubean DevTools</title>
8
- <script type="module" crossorigin src="/_devtools/assets/index-CEsrKQJ2.js"></script>
9
- <link rel="stylesheet" crossorigin href="/_devtools/assets/index-Cie3Z4C0.css">
8
+ <script type="module" crossorigin src="/_devtools/assets/index-DJNELO3b.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/_devtools/assets/index-CT-WdmcL.css">
10
10
  </head>
11
11
 
12
12
  <body>
package/dist/index.js CHANGED
@@ -55,7 +55,7 @@ Available resource types for creation: page, api, layout, middleware, cron, plug
55
55
  - api: API route handler under src/api/
56
56
  - layout: Layout component under src/layouts/
57
57
  - middleware: Middleware under src/middleware/
58
- - cron: Scheduled task under src/server/crons/
58
+ - cron: Scheduled task under src/crons/
59
59
  - plugin: Plugin under src/plugins/
60
60
 
61
61
  When creating resources, always use the create_resource tool and confirm the path with the user if ambiguous.
@@ -790,7 +790,11 @@ function createCrudServer(options) {
790
790
  if (content && scaffoldRes?.created?.length) await fs.writeFile(scaffoldRes.created[0], content);
791
791
  result = normalizeResult(scaffoldRes || {});
792
792
  } else if (type === "cron") {
793
- const cronDir = "src/server/crons";
793
+ const config = getConfig?.() ?? {};
794
+ const dir = config.dir ?? {};
795
+ const rawSrcDir = config.srcDir || "src";
796
+ const srcDir = isAbsolute(rawSrcDir) ? rawSrcDir : resolve(cwd, rawSrcDir);
797
+ const cronDir = join(srcDir, dir.crons || "crons");
794
798
  const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
795
799
  const fileName = normalizedPath.endsWith(".ts") ? normalizedPath : `${normalizedPath}.ts`;
796
800
  const filePath = join(cronDir, fileName);
@@ -1322,7 +1326,7 @@ function createDefineWrapperWithContext() {
1322
1326
  };
1323
1327
  }
1324
1328
  //#endregion
1325
- //#region ../../node_modules/.pnpm/@vitejs+devtools-kit@0.7.6_@devframes+agentic@1.2.3_@voidzero-dev+vite-plus-core@1.1.0__e2fc4ec20acb77edd2b9d69c048e98ec/node_modules/@vitejs/devtools-kit/dist/index.js
1329
+ //#region ../../node_modules/.pnpm/@vitejs+devtools-kit@0.7.6_@devframes+agentic@1.2.3_@voidzero-dev+vite-plus-core@1.1.0__089b475afebafe0aa497b2df40bc3712/node_modules/@vitejs/devtools-kit/dist/index.js
1326
1330
  const defineRpcFunction = createDefineWrapperWithContext();
1327
1331
  //#endregion
1328
1332
  //#region src/node/rpc/ai.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubean/devtools",
3
- "version": "0.6.1-beta.3",
3
+ "version": "0.6.1",
4
4
  "description": "DevTools for the ubean framework — server middleware, RPC, and the iframe SPA client",
5
5
  "files": [
6
6
  "dist"
@@ -28,12 +28,12 @@
28
28
  "@codemirror/theme-one-dark": "6.1.3",
29
29
  "@codemirror/view": "6.43.14",
30
30
  "@soybeanjs/unocss-preset": "^0.2.0",
31
- "@types/node": "^26.6.4",
31
+ "@types/node": "^26.6.5",
32
32
  "@vean/ui": "^0.50.2",
33
33
  "@vean/unocss": "^0.50.2",
34
34
  "@vitejs/devtools": "^0.7.6",
35
35
  "@vitejs/devtools-kit": "^0.7.6",
36
- "@vitejs/plugin-vue": "^6.0.9",
36
+ "@vitejs/plugin-vue": "^6.0.10",
37
37
  "@xterm/addon-fit": "^0.11.0",
38
38
  "@xterm/xterm": "^6.0.0",
39
39
  "devframe": "^1.2.3",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "optionalDependencies": {
60
60
  "@ai-sdk/openai-compatible": "3.0.67",
61
- "ai": "7.0.136"
61
+ "ai": "7.0.137"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "pnpm run build:server && pnpm run build:client",