@wix/ditto-codegen-public 1.0.461 → 1.0.463

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 +34 -6
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -11989,7 +11989,10 @@ skills already cover. Read-only.`;
11989
11989
  var MODEL_VARIANTS = {
11990
11990
  "openai/gpt-5.6-luna": ["xhigh", "high", "medium", "low"],
11991
11991
  "openai/gpt-5.6-sol": ["xhigh", "high", "medium", "low"],
11992
- "openai/gpt-5.6-terra": ["xhigh", "high", "medium", "low"]
11992
+ "openai/gpt-5.6-terra": ["xhigh", "high", "medium", "low"],
11993
+ "openai/gpt-6-astra": ["xhigh", "high", "medium", "low"],
11994
+ "openai/gpt-6-sol": ["xhigh", "high", "medium", "low"],
11995
+ "openai/gpt-6-luna": ["xhigh", "high", "medium", "low"]
11993
11996
  };
11994
11997
  function agentModel(model, opts = {}) {
11995
11998
  if (opts.variant && !MODEL_VARIANTS[model]?.includes(opts.variant)) {
@@ -15188,6 +15191,31 @@ WORKFLOW:
15188
15191
  }
15189
15192
  });
15190
15193
 
15194
+ // dist/opencode-integration/install-manifest.js
15195
+ var require_install_manifest = __commonJS({
15196
+ "dist/opencode-integration/install-manifest.js"(exports2) {
15197
+ "use strict";
15198
+ Object.defineProperty(exports2, "__esModule", { value: true });
15199
+ exports2.SHARED_CODEGEN_RULE_FILENAME = exports2.OPENCODE_TOOLS_DIR = void 0;
15200
+ exports2.listAlwaysOnToolFiles = listAlwaysOnToolFiles;
15201
+ exports2.getCodegenRuleFilenames = getCodegenRuleFilenames;
15202
+ var promises_1 = require("fs/promises");
15203
+ var path_12 = require("path");
15204
+ exports2.OPENCODE_TOOLS_DIR = (0, path_12.join)(__dirname, "opencode-tools");
15205
+ exports2.SHARED_CODEGEN_RULE_FILENAME = "codegen-instructions.md";
15206
+ async function listAlwaysOnToolFiles() {
15207
+ const entries = await (0, promises_1.readdir)(exports2.OPENCODE_TOOLS_DIR);
15208
+ return entries.filter((file) => file.endsWith(".ts"));
15209
+ }
15210
+ function getCodegenRuleFilenames(config) {
15211
+ return [
15212
+ exports2.SHARED_CODEGEN_RULE_FILENAME,
15213
+ ...config.codegenRules.map((rule) => rule.filename)
15214
+ ];
15215
+ }
15216
+ }
15217
+ });
15218
+
15191
15219
  // dist/jobs/job-decision-manager.js
15192
15220
  var require_job_decision_manager = __commonJS({
15193
15221
  "dist/jobs/job-decision-manager.js"(exports2) {
@@ -15276,6 +15304,7 @@ var require_environments = __commonJS({
15276
15304
  var codegen_rules_1 = require_codegen_rules();
15277
15305
  var ask_rules_1 = require_ask_rules();
15278
15306
  var git_conflicts_rules_1 = require_git_conflicts_rules();
15307
+ var install_manifest_1 = require_install_manifest();
15279
15308
  var job_decision_manager_1 = require_job_decision_manager();
15280
15309
  var logger_12 = require_logger();
15281
15310
  var SHARED_GIT_CONFLICTS_RULE = {
@@ -15284,7 +15313,7 @@ var require_environments = __commonJS({
15284
15313
  };
15285
15314
  var withSharedRules = (env) => {
15286
15315
  const sharedCodegenRule = {
15287
- filename: "codegen-instructions.md",
15316
+ filename: install_manifest_1.SHARED_CODEGEN_RULE_FILENAME,
15288
15317
  content: (0, codegen_rules_1.buildCodegenRules)(env.environmentIdentity)
15289
15318
  };
15290
15319
  const sharedAskRule = {
@@ -23950,14 +23979,13 @@ var require_tools_writer = __commonJS({
23950
23979
  var os_1 = require("os");
23951
23980
  var path_12 = require("path");
23952
23981
  var logger_12 = require_logger();
23982
+ var install_manifest_1 = require_install_manifest();
23953
23983
  var GLOBAL_TOOLS_DIR = (0, path_12.join)((0, os_1.homedir)(), ".config", "opencode", "tools");
23954
- var OPENCODE_TOOLS_DIR = (0, path_12.join)(__dirname, "opencode-tools");
23955
23984
  async function writeToolFiles(pluginTools = []) {
23956
23985
  await (0, promises_1.mkdir)(GLOBAL_TOOLS_DIR, { recursive: true });
23957
- const entries = await (0, promises_1.readdir)(OPENCODE_TOOLS_DIR);
23958
- const alwaysOnTools = entries.filter((f) => f.endsWith(".ts"));
23986
+ const alwaysOnTools = await (0, install_manifest_1.listAlwaysOnToolFiles)();
23959
23987
  await Promise.all([
23960
- ...alwaysOnTools.map((file) => (0, promises_1.copyFile)((0, path_12.join)(OPENCODE_TOOLS_DIR, file), (0, path_12.join)(GLOBAL_TOOLS_DIR, file))),
23988
+ ...alwaysOnTools.map((file) => (0, promises_1.copyFile)((0, path_12.join)(install_manifest_1.OPENCODE_TOOLS_DIR, file), (0, path_12.join)(GLOBAL_TOOLS_DIR, file))),
23961
23989
  ...pluginTools.map((tool) => (0, promises_1.writeFile)((0, path_12.join)(GLOBAL_TOOLS_DIR, tool.filename), tool.source, "utf-8"))
23962
23990
  ]);
23963
23991
  logger_12.logger.info("[OpenCode] Wrote global tool files", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.461",
3
+ "version": "1.0.463",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -29,5 +29,5 @@
29
29
  "esbuild": "^0.27.2",
30
30
  "vitest": "^4.0.16"
31
31
  },
32
- "falconPackageHash": "2bcf1aaf514fb3987e4a728cfa8b23f462397f2492b7bac0ae519499"
32
+ "falconPackageHash": "4b4c9bb0574e94bfd5df434744eef2f05f876dbd9776e8d6616a3fc5"
33
33
  }