@wix/ditto-codegen-public 1.0.305 → 1.0.307
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/out.js +7 -5
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -11675,12 +11675,12 @@ var require_constants5 = __commonJS({
|
|
|
11675
11675
|
function injectCreatedBy(content) {
|
|
11676
11676
|
if (content.includes("createdBy"))
|
|
11677
11677
|
return content;
|
|
11678
|
+
const isGeneric = content.includes("genericExtension(");
|
|
11679
|
+
const createdByValue = isGeneric ? ' createdBy: "CODE_GEN",' : ' createdBy: {\n author: "CODE_GEN",\n },';
|
|
11678
11680
|
return content.replace(/(\S)(\n)(}\))(;?\s*)$/, (_match, preChar, newline, closeBrace, tail) => {
|
|
11679
11681
|
const needsComma = preChar !== "," && preChar !== "{";
|
|
11680
11682
|
const separator = needsComma ? `${preChar},` : preChar;
|
|
11681
|
-
return `${separator}${newline}
|
|
11682
|
-
author: "CODE_GEN",
|
|
11683
|
-
},
|
|
11683
|
+
return `${separator}${newline}${createdByValue}
|
|
11684
11684
|
${closeBrace}${tail}`;
|
|
11685
11685
|
});
|
|
11686
11686
|
}
|
|
@@ -12157,7 +12157,7 @@ var require_config = __commonJS({
|
|
|
12157
12157
|
var AI_PROXY_BASE_URL = process.env.CODEGEN_AI_PROXY_BASE_URL || "http://localhost:3001";
|
|
12158
12158
|
function getAnthropicBaseUrl(projectId) {
|
|
12159
12159
|
if ((0, experiments_1.isUseWixAiGatewayEnabled)()) {
|
|
12160
|
-
return `${AI_PROXY_BASE_URL}/projects/${projectId}/
|
|
12160
|
+
return `${AI_PROXY_BASE_URL}/projects/${projectId}/genai/anthropic`;
|
|
12161
12161
|
}
|
|
12162
12162
|
return `${AI_PROXY_BASE_URL}/projects/${projectId}/anthropic`;
|
|
12163
12163
|
}
|
|
@@ -12576,8 +12576,10 @@ var require_extension_handler = __commonJS({
|
|
|
12576
12576
|
const updated = (0, constants_1.injectCreatedBy)(original);
|
|
12577
12577
|
if (updated !== original) {
|
|
12578
12578
|
await (0, promises_1.writeFile)(fullPath, updated, "utf-8");
|
|
12579
|
+
const format = original.includes("genericExtension(") ? "string" : "object";
|
|
12579
12580
|
logger_12.logger.info("[OpenCode] Injected createdBy into extension file", {
|
|
12580
|
-
filePath
|
|
12581
|
+
filePath,
|
|
12582
|
+
format
|
|
12581
12583
|
});
|
|
12582
12584
|
}
|
|
12583
12585
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.307",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@wix/ditto-codegen": "1.0.0",
|
|
28
28
|
"esbuild": "^0.27.2"
|
|
29
29
|
},
|
|
30
|
-
"falconPackageHash": "
|
|
30
|
+
"falconPackageHash": "be74f7ea48449a9967bdbb7e5bfc36e4b1552b4a9ca2dc81fa00dba9"
|
|
31
31
|
}
|