@wix/ditto-codegen-public 1.0.311 → 1.0.313
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 +8 -1
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -504,6 +504,7 @@ var require_context = __commonJS({
|
|
|
504
504
|
projectId: process.env.PROJECT_ID || "test",
|
|
505
505
|
appNamespace: process.env.APP_NAMESPACE,
|
|
506
506
|
codeIdentifier: process.env.CODE_IDENTIFIER,
|
|
507
|
+
metasiteId: process.env.METASITE_ID,
|
|
507
508
|
hasActiveJobs: () => {
|
|
508
509
|
return Object.keys(exports2.ctx.activeJobs).some((jobId) => exports2.ctx.activeJobs[jobId] === types_1.Status.RUNNING);
|
|
509
510
|
},
|
|
@@ -11434,6 +11435,7 @@ var require_prompt_utils = __commonJS({
|
|
|
11434
11435
|
function buildAppContext() {
|
|
11435
11436
|
const appNamespace = process.env.APP_NAMESPACE;
|
|
11436
11437
|
const codeIdentifier = process.env.CODE_IDENTIFIER;
|
|
11438
|
+
const metasiteId = process.env.METASITE_ID;
|
|
11437
11439
|
const parts = [];
|
|
11438
11440
|
if (appNamespace) {
|
|
11439
11441
|
parts.push(`APP_NAMESPACE: ${appNamespace}
|
|
@@ -11443,6 +11445,9 @@ Use this namespace when creating data collections (for idSuffix scoping).`);
|
|
|
11443
11445
|
parts.push(`CODE_IDENTIFIER: ${codeIdentifier}
|
|
11444
11446
|
When generating editor React component or function library extensions, use this identifier as the type prefix (e.g. type: '${codeIdentifier}.ComponentName').`);
|
|
11445
11447
|
}
|
|
11448
|
+
if (metasiteId) {
|
|
11449
|
+
parts.push(`METASITE_ID: ${metasiteId}`);
|
|
11450
|
+
}
|
|
11446
11451
|
return parts.join("\n\n");
|
|
11447
11452
|
}
|
|
11448
11453
|
function extractUserRequestAndFilteredHistory(chatHistory) {
|
|
@@ -11770,6 +11775,7 @@ var require_codegen_rules = __commonJS({
|
|
|
11770
11775
|
- Do NOT invent or assume new types, modules, functions, props, events, or imports.
|
|
11771
11776
|
- NEVER use mocks, placeholders, debugging, or TODOs in any code.
|
|
11772
11777
|
- ALWAYS implement complete, production-ready functionality.
|
|
11778
|
+
- Do NOT create test files or test code. Tests are out of scope for code generation.
|
|
11773
11779
|
|
|
11774
11780
|
MINIMIZE TEXT OUTPUT \u2014 CRITICAL:
|
|
11775
11781
|
- Do NOT narrate your actions. No "Let me now...", "Perfect!", "Now I'll...", "Excellent!", "Great!".
|
|
@@ -18633,7 +18639,8 @@ async function main(ctx) {
|
|
|
18633
18639
|
logger_1.logger.info("[Startup] CodeGen CLI starting", {
|
|
18634
18640
|
projectId: ctx.projectId,
|
|
18635
18641
|
appNameSpace: ctx.appNamespace,
|
|
18636
|
-
codeIdentifier: ctx.codeIdentifier
|
|
18642
|
+
codeIdentifier: ctx.codeIdentifier,
|
|
18643
|
+
metasiteId: ctx.metasiteId
|
|
18637
18644
|
});
|
|
18638
18645
|
await initOpenCode();
|
|
18639
18646
|
await alwaysOnLoop();
|
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.313",
|
|
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": "e6d1a5f7a174a6739d369cde99966269aa4eca433ac218e6dd63e79f"
|
|
31
31
|
}
|