create-factory 0.3.0-alpha.9 → 0.3.1-alpha.0
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.
- package/dist/index.js +4 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -52,7 +52,8 @@ async function extractError(res) {
|
|
|
52
52
|
const text = await res.text().catch(() => "");
|
|
53
53
|
if (!text) return `${res.status} ${res.statusText}`;
|
|
54
54
|
try {
|
|
55
|
-
const
|
|
55
|
+
const parsed = JSON.parse(text);
|
|
56
|
+
const detail = extractApiErrorDetail(parsed);
|
|
56
57
|
if (detail) return detail;
|
|
57
58
|
} catch {}
|
|
58
59
|
return text.slice(0, 500);
|
|
@@ -252,9 +253,10 @@ async function cloneTemplate(repoUrl, targetPath) {
|
|
|
252
253
|
const tempTarget = path.join(tempRoot, "template");
|
|
253
254
|
try {
|
|
254
255
|
try {
|
|
256
|
+
const degitRepo = repoUrl.replace("https://github.com/", "");
|
|
255
257
|
await x("npx", [
|
|
256
258
|
"degit",
|
|
257
|
-
|
|
259
|
+
degitRepo,
|
|
258
260
|
tempTarget
|
|
259
261
|
], {
|
|
260
262
|
throwOnError: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-factory",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1-alpha.0",
|
|
4
4
|
"description": "Create a Mastra Factory project: an agent-powered software delivery environment built on Mastra. Run `npm create factory` to scaffold and get started.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"commander": "^14.0.3",
|
|
37
37
|
"picocolors": "^1.1.1",
|
|
38
38
|
"tinyexec": "^1.2.4",
|
|
39
|
-
"mastra": "1.35.
|
|
39
|
+
"mastra": "1.35.1-alpha.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/node": "22.20.
|
|
43
|
-
"tsdown": "0.
|
|
42
|
+
"@types/node": "22.20.5",
|
|
43
|
+
"tsdown": "0.23.1",
|
|
44
44
|
"typescript": "^7.0.2",
|
|
45
45
|
"vitest": "4.1.11",
|
|
46
|
-
"@internal/lint": "0.0.
|
|
46
|
+
"@internal/lint": "0.0.145"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsdown --silent --config tsdown.config.ts",
|