@wix/ditto-codegen-public 1.0.501 → 1.0.502

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/README.md +22 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @wix/ditto-codegen-public
2
+
3
+ Standalone, publishable build of codegen (`@wix/ditto-codegen`): a single esbuild bundle (`dist/out.js`, exposed as the package `bin`) plus the static files codegen reads at runtime. This is the artifact the codegen installer and preview flows consume.
4
+
5
+ ## Build (`yarn build` -> `node build.mjs`)
6
+
7
+ 1. Cleans `dist/` and `assets/`.
8
+ 2. Copies `../codegen/src/opencode-integration/opencode-tools` (always-on tools and the `env-tools/` subdir) to `dist/opencode-tools`.
9
+ 3. Copies the `assets/` dir of every workspace package matching `codegen-*-plugin*` (the checkpoint and feature-vibe plugins) into one flat `assets/` dir. Plugin factories read these via `__dirname/../assets/`, which resolves to this package's `assets/` once bundled. Same-named files from different plugins overwrite each other.
10
+ 4. Bundles `dist/index.js` of `../codegen` (so `@wix/ditto-codegen` must be built first, via turbo) into `dist/out.js` for Node 22 with `esbuild` kept external. `SKILLS_OVERRIDE_BRANCH`, if set at build time, is baked in.
11
+
12
+ Published files: `dist` and `assets`.
13
+
14
+ ## Tests (`yarn test`, runs after build via `turbo.json`)
15
+
16
+ - `test/bundle-startup.test.mjs` boots the bundled CLI for `STUDIO_2` and checks the generated plugins and tools.
17
+ - `test/pack-install.e2e.test.mjs` packs the package, installs the tarball in a sandbox and checks the shipped layout.
18
+
19
+ ## Related
20
+
21
+ - `packages/codegen/local-preview.sh` builds and uploads this package for preview runs.
22
+ - [packages/codegen/docs/plugins.md](../codegen/docs/plugins.md) describes plugin asset bundling.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.501",
3
+ "version": "1.0.502",
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": "b71f6f873710cf5eaac7318ce54b5f6c9cefe810435242a6a8792202"
32
+ "falconPackageHash": "60edbe5f7cd333e6a1fee879a59b78559f5e63f196806994d0034f31"
33
33
  }