@wix/ditto-codegen-public 1.0.461 → 1.0.462

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 +30 -5
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -15188,6 +15188,31 @@ WORKFLOW:
15188
15188
  }
15189
15189
  });
15190
15190
 
15191
+ // dist/opencode-integration/install-manifest.js
15192
+ var require_install_manifest = __commonJS({
15193
+ "dist/opencode-integration/install-manifest.js"(exports2) {
15194
+ "use strict";
15195
+ Object.defineProperty(exports2, "__esModule", { value: true });
15196
+ exports2.SHARED_CODEGEN_RULE_FILENAME = exports2.OPENCODE_TOOLS_DIR = void 0;
15197
+ exports2.listAlwaysOnToolFiles = listAlwaysOnToolFiles;
15198
+ exports2.getCodegenRuleFilenames = getCodegenRuleFilenames;
15199
+ var promises_1 = require("fs/promises");
15200
+ var path_12 = require("path");
15201
+ exports2.OPENCODE_TOOLS_DIR = (0, path_12.join)(__dirname, "opencode-tools");
15202
+ exports2.SHARED_CODEGEN_RULE_FILENAME = "codegen-instructions.md";
15203
+ async function listAlwaysOnToolFiles() {
15204
+ const entries = await (0, promises_1.readdir)(exports2.OPENCODE_TOOLS_DIR);
15205
+ return entries.filter((file) => file.endsWith(".ts"));
15206
+ }
15207
+ function getCodegenRuleFilenames(config) {
15208
+ return [
15209
+ exports2.SHARED_CODEGEN_RULE_FILENAME,
15210
+ ...config.codegenRules.map((rule) => rule.filename)
15211
+ ];
15212
+ }
15213
+ }
15214
+ });
15215
+
15191
15216
  // dist/jobs/job-decision-manager.js
15192
15217
  var require_job_decision_manager = __commonJS({
15193
15218
  "dist/jobs/job-decision-manager.js"(exports2) {
@@ -15276,6 +15301,7 @@ var require_environments = __commonJS({
15276
15301
  var codegen_rules_1 = require_codegen_rules();
15277
15302
  var ask_rules_1 = require_ask_rules();
15278
15303
  var git_conflicts_rules_1 = require_git_conflicts_rules();
15304
+ var install_manifest_1 = require_install_manifest();
15279
15305
  var job_decision_manager_1 = require_job_decision_manager();
15280
15306
  var logger_12 = require_logger();
15281
15307
  var SHARED_GIT_CONFLICTS_RULE = {
@@ -15284,7 +15310,7 @@ var require_environments = __commonJS({
15284
15310
  };
15285
15311
  var withSharedRules = (env) => {
15286
15312
  const sharedCodegenRule = {
15287
- filename: "codegen-instructions.md",
15313
+ filename: install_manifest_1.SHARED_CODEGEN_RULE_FILENAME,
15288
15314
  content: (0, codegen_rules_1.buildCodegenRules)(env.environmentIdentity)
15289
15315
  };
15290
15316
  const sharedAskRule = {
@@ -23950,14 +23976,13 @@ var require_tools_writer = __commonJS({
23950
23976
  var os_1 = require("os");
23951
23977
  var path_12 = require("path");
23952
23978
  var logger_12 = require_logger();
23979
+ var install_manifest_1 = require_install_manifest();
23953
23980
  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
23981
  async function writeToolFiles(pluginTools = []) {
23956
23982
  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"));
23983
+ const alwaysOnTools = await (0, install_manifest_1.listAlwaysOnToolFiles)();
23959
23984
  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))),
23985
+ ...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
23986
  ...pluginTools.map((tool) => (0, promises_1.writeFile)((0, path_12.join)(GLOBAL_TOOLS_DIR, tool.filename), tool.source, "utf-8"))
23962
23987
  ]);
23963
23988
  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.462",
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": "d0ead5d9d6a2d1c1d936e9fffcda2faef1bca6e18f0115a19388fc3b"
33
33
  }