@toothfairyai/tfdesign 0.4.3 → 0.4.4
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.
|
@@ -4022,7 +4022,7 @@ async function extractBrandFromUrl(url) {
|
|
|
4022
4022
|
const trimmed = normalizeUrl(url ?? "");
|
|
4023
4023
|
if (!trimmed) throw new Error("url is required");
|
|
4024
4024
|
setDesignlangBrowsersPath();
|
|
4025
|
-
const api = await import("
|
|
4025
|
+
const api = await import("./api-2ZCSAOJG.js");
|
|
4026
4026
|
const design = await api.extract(trimmed);
|
|
4027
4027
|
const extraction = mapDesignToExtraction(design, api.render, trimmed);
|
|
4028
4028
|
extraction.images = await harvestImages(trimmed, extraction.ogImage);
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
startServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OSS3HBKM.js";
|
|
5
5
|
import {
|
|
6
6
|
getJson,
|
|
7
7
|
resolveProjectId
|
|
@@ -1312,7 +1312,7 @@ function sameRoot(a, b) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
async function bootInProcess(root) {
|
|
1314
1314
|
process.env.TFDESIGN_DATA_DIR = root;
|
|
1315
|
-
const { startServer: startServer2 } = await import("./server-
|
|
1315
|
+
const { startServer: startServer2 } = await import("./server-OSLPMCQF.js");
|
|
1316
1316
|
const { url, server } = await startServer2({ port: 0, returnServer: true });
|
|
1317
1317
|
return { url, booted: true, server, dataRoot: root };
|
|
1318
1318
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toothfairyai/tfdesign",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "TF Design — the local design workspace CLI: headless design runs (decks, posters, sites) through the tfdesign daemon, delegable from tfcode.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
15
15
|
"better-sqlite3": "^12.9.0",
|
|
16
16
|
"chokidar": "^5.0.0",
|
|
17
|
-
"designlang": "^12.21.0",
|
|
18
17
|
"express": "^4.19.2",
|
|
19
18
|
"jszip": "^3.10.1",
|
|
20
19
|
"multer": "^1.4.5-lts.1"
|
|
20
|
+
},
|
|
21
|
+
"optionalDependencies": {
|
|
22
|
+
"playwright": "^1.42.0"
|
|
21
23
|
}
|
|
22
24
|
}
|