@wix/ditto-codegen-public 1.0.312 → 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.
Files changed (2) hide show
  1. package/dist/out.js +7 -1
  2. 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) {
@@ -18634,7 +18639,8 @@ async function main(ctx) {
18634
18639
  logger_1.logger.info("[Startup] CodeGen CLI starting", {
18635
18640
  projectId: ctx.projectId,
18636
18641
  appNameSpace: ctx.appNamespace,
18637
- codeIdentifier: ctx.codeIdentifier
18642
+ codeIdentifier: ctx.codeIdentifier,
18643
+ metasiteId: ctx.metasiteId
18638
18644
  });
18639
18645
  await initOpenCode();
18640
18646
  await alwaysOnLoop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.312",
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": "54314505ec73d8bc89e0dd1b9bb6d3ef4e00022671f6894440dcb6ce"
30
+ "falconPackageHash": "e6d1a5f7a174a6739d369cde99966269aa4eca433ac218e6dd63e79f"
31
31
  }