cyberia 2.99.8 → 3.0.2

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 (81) hide show
  1. package/.env.production +1 -0
  2. package/.github/workflows/engine-cyberia.cd.yml +1 -0
  3. package/.github/workflows/gitlab.ci.yml +20 -0
  4. package/.github/workflows/publish.ci.yml +18 -38
  5. package/.github/workflows/publish.cyberia.ci.yml +18 -38
  6. package/.vscode/extensions.json +8 -50
  7. package/.vscode/settings.json +0 -77
  8. package/CHANGELOG.md +171 -1
  9. package/{cli.md → CLI-HELP.md} +49 -44
  10. package/README.md +139 -0
  11. package/bin/build.js +7 -15
  12. package/bin/cyberia.js +385 -71
  13. package/bin/deploy.js +14 -151
  14. package/bin/file.js +13 -8
  15. package/bin/index.js +385 -71
  16. package/bin/zed.js +63 -2
  17. package/conf.js +32 -3
  18. package/deployment.yaml +2 -2
  19. package/jsdoc.json +1 -2
  20. package/manifests/cronjobs/dd-cron/dd-cron-backup.yaml +1 -1
  21. package/manifests/cronjobs/dd-cron/dd-cron-dns.yaml +1 -1
  22. package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
  23. package/manifests/deployment/dd-test-development/deployment.yaml +2 -2
  24. package/manifests/deployment/fastapi/initial_data.sh +4 -52
  25. package/manifests/ipfs/configmap.yaml +64 -0
  26. package/manifests/ipfs/headless-service.yaml +35 -0
  27. package/manifests/ipfs/kustomization.yaml +8 -0
  28. package/manifests/ipfs/statefulset.yaml +149 -0
  29. package/manifests/ipfs/storage-class.yaml +9 -0
  30. package/package.json +15 -11
  31. package/scripts/k3s-node-setup.sh +89 -0
  32. package/scripts/lxd-vm-setup.sh +23 -0
  33. package/scripts/rocky-setup.sh +1 -13
  34. package/src/api/atlas-sprite-sheet/atlas-sprite-sheet.controller.js +2 -0
  35. package/src/api/atlas-sprite-sheet/atlas-sprite-sheet.model.js +7 -0
  36. package/src/api/atlas-sprite-sheet/atlas-sprite-sheet.service.js +93 -2
  37. package/src/api/file/file.controller.js +3 -13
  38. package/src/api/file/file.ref.json +0 -21
  39. package/src/api/ipfs/ipfs.controller.js +104 -0
  40. package/src/api/ipfs/ipfs.model.js +71 -0
  41. package/src/api/ipfs/ipfs.router.js +31 -0
  42. package/src/api/ipfs/ipfs.service.js +193 -0
  43. package/src/api/object-layer/README.md +139 -0
  44. package/src/api/object-layer/object-layer.controller.js +3 -0
  45. package/src/api/object-layer/object-layer.model.js +15 -1
  46. package/src/api/object-layer/object-layer.router.js +6 -10
  47. package/src/api/object-layer/object-layer.service.js +311 -182
  48. package/src/api/user/user.router.js +0 -47
  49. package/src/cli/baremetal.js +7 -9
  50. package/src/cli/cluster.js +95 -152
  51. package/src/cli/deploy.js +8 -5
  52. package/src/cli/index.js +31 -31
  53. package/src/cli/ipfs.js +184 -0
  54. package/src/cli/lxd.js +192 -237
  55. package/src/cli/repository.js +4 -1
  56. package/src/cli/run.js +17 -2
  57. package/src/client/components/core/Docs.js +92 -6
  58. package/src/client/components/core/LoadingAnimation.js +2 -3
  59. package/src/client/components/core/Modal.js +1 -1
  60. package/src/client/components/core/VanillaJs.js +36 -25
  61. package/src/client/components/cyberia/ObjectLayerEngineModal.js +4 -5
  62. package/src/client/components/cyberia/ObjectLayerEngineViewer.js +280 -29
  63. package/src/client/services/ipfs/ipfs.service.js +144 -0
  64. package/src/client/services/object-layer/object-layer.management.js +161 -8
  65. package/src/client/services/user/user.management.js +0 -5
  66. package/src/client/services/user/user.service.js +1 -1
  67. package/src/index.js +12 -1
  68. package/src/runtime/express/Express.js +4 -3
  69. package/src/server/auth.js +18 -18
  70. package/src/server/client-build-docs.js +178 -41
  71. package/src/server/conf.js +1 -1
  72. package/src/server/ipfs-client.js +433 -0
  73. package/src/server/logger.js +22 -10
  74. package/src/server/object-layer.js +649 -18
  75. package/src/server/semantic-layer-generator.js +1083 -0
  76. package/src/server/shape-generator.js +952 -0
  77. package/test/shape-generator.test.js +457 -0
  78. package/.vscode/zed.keymap.json +0 -39
  79. package/.vscode/zed.settings.json +0 -20
  80. package/bin/ssl.js +0 -63
  81. package/manifests/lxd/underpost-setup.sh +0 -163
@@ -1,4 +1,4 @@
1
- ## underpost ci/cd cli v2.99.8
1
+ ## underpost ci/cd cli v3.0.2
2
2
 
3
3
  ### Usage: `underpost [options] [command]`
4
4
  ```
@@ -31,7 +31,7 @@ Commands:
31
31
  monitor [options] <deploy-id> [env] Manages health server monitoring for specified deployments.
32
32
  ssh [options] Manages SSH credentials and sessions for remote access to cluster nodes or services.
33
33
  run [options] <runner-id> [path] Runs specified scripts using various runners.
34
- lxd [options] Manages LXD containers and virtual machines.
34
+ lxd [options] Manages LXD virtual machines as K3s nodes (control plane or workers).
35
35
  baremetal [options] [workflow-id] Manages baremetal server operations, including installation, database setup, commissioning, and user management.
36
36
  help [command] display help for command
37
37
 
@@ -370,6 +370,8 @@ Options:
370
370
  4.4 service.
371
371
  --valkey Initializes the cluster with a Valkey
372
372
  service.
373
+ --ipfs Initializes the cluster with an
374
+ ipfs-cluster statefulset.
373
375
  --contour Initializes the cluster with Project
374
376
  Contour base HTTPProxy and Envoy.
375
377
  --cert-manager Initializes the cluster with a Let's
@@ -377,8 +379,6 @@ Options:
377
379
  --dedicated-gpu Initializes the cluster with dedicated
378
380
  GPU base resources and environment
379
381
  settings.
380
- --full Initializes the cluster with all
381
- available statefulsets and services.
382
382
  --ns-use <ns-name> Switches the current Kubernetes context
383
383
  to the specified namespace (creates if
384
384
  it doesn't exist).
@@ -408,7 +408,6 @@ Options:
408
408
  by init-host.
409
409
  --config Sets the base Kubernetes node
410
410
  configuration.
411
- --worker Sets the context for a worker node.
412
411
  --chown Sets the appropriate ownership for
413
412
  Kubernetes kubeconfig files.
414
413
  --k3s Initializes the cluster using K3s
@@ -419,6 +418,8 @@ Options:
419
418
  after execution.
420
419
  --namespace <namespace> Kubernetes namespace for cluster
421
420
  operations (defaults to "default").
421
+ --replicas <replicas> Sets a custom number of replicas for
422
+ statefulset deployments.
422
423
  -h, --help display help for command
423
424
 
424
425
  ```
@@ -491,6 +492,9 @@ Options:
491
492
  deployment operations.
492
493
  --port <port> Sets up port forwarding from local to
493
494
  remote ports.
495
+ --expose-port <port> Sets the local:remote port to expose when
496
+ --expose is active (overrides
497
+ auto-detected service port).
494
498
  --cmd <cmd> Custom initialization command for
495
499
  deployment (comma-separated commands).
496
500
  -h, --help display help for command
@@ -829,7 +833,7 @@ Options:
829
833
  Runs specified scripts using various runners.
830
834
 
831
835
  Arguments:
832
- runner-id The runner ID to run. Options: dev-cluster,metadata,svc-ls,svc-rm,ssh-deploy-info,dev-hosts-expose,dev-hosts-restore,cluster-build,template-deploy,template-deploy-image,clean,pull,release-deploy,ssh-deploy,ide,crypto-policy,sync,stop,ssh-deploy-stop,ssh-deploy-db-rollback,ssh-deploy-db,ssh-deploy-db-status,tz,get-proxy,instance-promote,instance,ls-deployments,host-update,dd-container,ip-info,db-client,git-conf,promote,metrics,cluster,deploy,disk-clean,disk-devices,disk-usage,dev,service,etc-hosts,sh,log,ps,ptls,release-cmt,deploy-test,sync-replica,tf-vae-test,spark-template,rmi,kill,secret,underpost-config,gpu-env,tf-gpu-test,deploy-job.
836
+ runner-id The runner ID to run. Options: dev-cluster,ipfs-expose,metadata,svc-ls,svc-rm,ssh-deploy-info,dev-hosts-expose,dev-hosts-restore,cluster-build,template-deploy,template-deploy-image,clean,pull,release-deploy,ssh-deploy,ide,crypto-policy,sync,stop,ssh-deploy-stop,ssh-deploy-db-rollback,ssh-deploy-db,ssh-deploy-db-status,tz,get-proxy,instance-promote,instance,ls-deployments,host-update,dd-container,ip-info,db-client,git-conf,promote,metrics,cluster,deploy,disk-clean,disk-devices,disk-usage,dev,service,etc-hosts,sh,log,ps,ptls,release-cmt,deploy-test,sync-replica,tf-vae-test,spark-template,rmi,kill,secret,underpost-config,gpu-env,tf-gpu-test,deploy-job.
833
837
  path The input value, identifier, or path for the operation.
834
838
 
835
839
  Options:
@@ -904,47 +908,48 @@ Options:
904
908
  ```
905
909
  Usage: underpost lxd [options]
906
910
 
907
- Manages LXD containers and virtual machines.
911
+ Manages LXD virtual machines as K3s nodes (control plane or workers).
908
912
 
909
913
  Options:
910
- --init Initializes LXD on the current machine.
911
- --reset Resets LXD on the current machine, deleting
912
- all configurations.
913
- --install Installs LXD on the current machine.
914
- --dev Sets the development context environment for
915
- LXD.
916
- --create-virtual-network Creates an LXD virtual network bridge.
917
- --create-admin-profile Creates an admin profile for LXD management.
918
- --control Sets the context for a control node VM.
919
- --worker Sets the context for a worker node VM.
920
- --create-vm <vm-id> Creates default virtual machines with the
921
- specified ID.
922
- --init-vm <vm-id> Retrieves the Underpost initialization
923
- script for the specified VM.
924
- --info-vm <vm-id> Retrieves all information about the
914
+ --init Initializes LXD on the current machine via
915
+ preseed.
916
+ --reset Removes the LXD snap and purges all data.
917
+ --install Installs the LXD snap.
918
+ --dev Use local paths instead of the global npm
919
+ installation.
920
+ --create-virtual-network Creates the lxdbr0 bridge network.
921
+ --ipv4-address <cidr> IPv4 address/CIDR for the lxdbr0 bridge
922
+ network (default: "10.250.250.1/24").
923
+ --create-admin-profile Creates the admin-profile for VM management.
924
+ --control Initialize the target VM as a K3s control
925
+ plane node.
926
+ --worker Initialize the target VM as a K3s worker
927
+ node.
928
+ --create-vm <vm-name> Copy the LXC launch command for a new K3s VM
929
+ to the clipboard.
930
+ --delete-vm <vm-name> Stop and delete the specified VM.
931
+ --init-vm <vm-name> Run k3s-node-setup.sh on the specified VM
932
+ (use with --control or --worker).
933
+ --info-vm <vm-name> Display full configuration and status for
934
+ the specified VM.
935
+ --test <vm-name> Run connectivity and health checks on the
925
936
  specified VM.
926
- --test <vm-id> Tests the health, status, and network
927
- connectivity for a VM.
928
- --root-size <gb-size> Sets the root partition size (in GB) for the
929
- VM.
930
- --k3s Flag to indicate that the VM initialization
931
- is for a K3s cluster type.
932
- --join-node <nodes> A comma-separated list of worker and control
933
- nodes to join (e.g.,
934
- "k8s-worker-1,k8s-control").
935
- --expose <vm-name-ports> Exposes specified ports on a VM (e.g.,
936
- "k8s-control:80,443"). Multiple VM-port
937
- pairs can be comma-separated.
938
- --delete-expose <vm-name-ports> Removes exposed ports on a VM (e.g.,
939
- "k8s-control:80,443"). Multiple VM-port
940
- pairs can be comma-separated.
941
- --workflow-id <workflow-id> Sets the workflow ID context for LXD
942
- operations.
943
- --vm-id <vm-id> Sets the VM ID context for LXD operations.
944
- --deploy-id <deploy-id> Sets the deployment ID context for LXD
945
- operations.
946
- --namespace <namespace> Kubernetes namespace for LXD operations
947
- (defaults to "default").
937
+ --root-size <gb-size> Root disk size in GiB for --create-vm
938
+ (default: 32).
939
+ --join-node <nodes> Join a K3s worker to a control plane.
940
+ Standalone format: "workerName,controlName".
941
+ When used with --init-vm --worker, provide
942
+ just the control node name for auto-join.
943
+ --expose <vm-name:ports> Proxy host ports to a VM (e.g.,
944
+ "k3s-control:80,443").
945
+ --delete-expose <vm-name:ports> Remove proxied ports from a VM (e.g.,
946
+ "k3s-control:80,443").
947
+ --workflow-id <workflow-id> Workflow ID to execute via runWorkflow.
948
+ --vm-id <vm-name> Target VM name for workflow execution.
949
+ --deploy-id <deploy-id> Deployment ID context for workflow
950
+ execution.
951
+ --namespace <namespace> Kubernetes namespace context (defaults to
952
+ "default").
948
953
  -h, --help display help for command
949
954
 
950
955
  ```
package/README.md CHANGED
@@ -24,12 +24,14 @@ Key features:
24
24
 
25
25
  - Walks the asset directory structure and processes PNG/GIF files.
26
26
  - Produces `frame_matrix` and `map_color` arrays from images.
27
+ - **Procedurally generates object layers** from semantic item-id descriptors with deterministic seeds and temporal coherence.
27
28
  - Saves processed objects to the `ObjectLayer` model with top-level references to `ObjectLayerRenderFrames`.
28
29
  - Creates separate `ObjectLayerRenderFrames` documents for render data.
29
30
  - Links ObjectLayers to AtlasSpriteSheet documents via top-level `atlasSpriteSheetId`.
30
31
  - Generates unique UUID v4 seeds (via `crypto.randomUUID()`) for SHA256 hash uniqueness.
31
32
  - Generates SHA256 hash using `fast-json-stable-stringify` for deterministic serialization.
32
33
  - Reconstructs PNG frames from stored tile data for debugging.
34
+ - Writes static asset PNGs, atlas sprite sheets, and metadata to the conventional directory structure.
33
35
 
34
36
  ## Getting Started
35
37
 
@@ -68,6 +70,104 @@ cyberia ol --import skin,floor
68
70
  cyberia ol --import all
69
71
  ```
70
72
 
73
+ ### Procedural generation with `--generate`
74
+
75
+ Produces semantically consistent object layers with controlled, reproducible variation and short-term temporal coherence (consecutive frames stay visually consistent). Uses the parametric shape generator and object layer engine under the hood.
76
+
77
+ ```bash
78
+ # Generate a desert floor tile (single frame, auto seed)
79
+ cyberia ol floor-desert --generate
80
+
81
+ # Full control: 3 frames, explicit seed, density
82
+ cyberia ol floor-desert --generate --count 3 --seed fx-42 --frame-index 0 --frame-count 3 --density 0.5
83
+
84
+ # Grass terrain, sparse, 5 frames
85
+ cyberia ol floor-grass --generate --seed meadow-7 --frame-count 5 --density 0.3
86
+
87
+ # Water surface, dense, high element count
88
+ cyberia ol floor-water --generate --seed ocean-1 --count 5 --density 0.8 --frame-count 4
89
+
90
+ # Stone cobblestone
91
+ cyberia ol floor-stone --generate --seed cobble-99 --count 4 --density 0.6
92
+
93
+ # Lava flow, 3-frame animation
94
+ cyberia ol floor-lava --generate --seed magma-3 --frame-count 3 --density 0.7
95
+ ```
96
+
97
+ **`--generate` options:**
98
+
99
+ | Option | Default | Description |
100
+ |---|---|---|
101
+ | `--seed <str>` | auto UUID | Deterministic seed string. Same seed → same output. |
102
+ | `--count <n>` | `3` | Shape element count multiplier per layer. |
103
+ | `--frame-index <n>` | `0` | Starting frame index. |
104
+ | `--frame-count <n>` | `1` | Number of consecutive frames to generate. |
105
+ | `--density <f>` | `0.5` | Overall density factor (`0`–`1`). Lower = sparser. |
106
+
107
+ **Available semantic item-id prefixes:**
108
+
109
+ | Prefix | Type | Tags | Palette |
110
+ |---|---|---|---|
111
+ | `floor-desert` | floor | sand, dune, arid | warm ochres, sand tones |
112
+ | `floor-grass` | floor | grass, meadow, earth | greens, earth browns |
113
+ | `floor-water` | floor | water, ocean, wave | blues, foam whites |
114
+ | `floor-stone` | floor | stone, rock, cobble | greys, warm/cool stone |
115
+ | `floor-lava` | floor | lava, magma, fire | reds, oranges, dark crust |
116
+ | `skin-*` | skin | character, body | skin tones, clothing darks |
117
+
118
+ #### How generation works
119
+
120
+ Each item-id maps to a **semantic descriptor** that provides `semanticTags`, `paletteHints`, `preferredShapes`, and named **layer specs** (e.g. `base`, `dunes`, `rocks`, `tufts` for `floor-desert`).
121
+
122
+ **Seed derivation** — deterministic at every level:
123
+
124
+ ```
125
+ layerSeed = hash(seed + ':' + itemId + ':' + layerKey)
126
+ frameSeed = hash(layerSeed + ':' + frameIndex)
127
+ ```
128
+
129
+ **Temporal coherence** — shape topology (which shapes, how many, where) is locked to `layerSeed` and never changes between frames. Only smooth, low-frequency noise perturbations (position jitter, slight rotation/scale wobble) are derived from `frameSeed`, so frame N and N+1 differ by ~2% of cells.
130
+
131
+ **Layer naming** — every generated layer gets an id: `<itemId>-<layerKey>` (e.g. `floor-desert-dunes`).
132
+
133
+ **Generation pipeline per layer:**
134
+
135
+ 1. Pick generator type (`noise-field` for base fills, `shape` for element placement).
136
+ 2. Select palette colors deterministically from `paletteHints` with per-element `colorShift`.
137
+ 3. For shape layers: pick shape via weighted `preferredShapes`, compute stable base transform `(x, y, scale, rotation)`, apply frame-level smooth noise.
138
+ 4. Stamp shapes onto a 24×24 grid via `intCoords` rasterization from the parametric shape generator.
139
+ 5. Composite all layers into a final `frame_matrix` + unified `colors` palette.
140
+
141
+ **Variability factors per layer:**
142
+ `scaleVariance`, `rotationVariance`, `colorShift`, `jitter`, `noiseLevel`, `detailLevel`, `sparsity` — small, deterministic variations that keep each generation unique but semantically coherent.
143
+
144
+ #### What `--generate` persists
145
+
146
+ The full pipeline runs automatically:
147
+
148
+ 1. **Static assets** — PNGs written to `./src/client/public/cyberia/assets/{type}/{itemId}/{dirCode}/{frame}.png` + `metadata.json`.
149
+ 2. **MongoDB** — `ObjectLayerRenderFrames` + `ObjectLayer` documents created with SHA-256 hash.
150
+ 3. **Atlas sprite sheet** — generated, saved to `File` + `AtlasSpriteSheet` collections, and linked via `atlasSpriteSheetId`.
151
+
152
+ #### Reproducibility example
153
+
154
+ Running the same command twice produces byte-identical output:
155
+
156
+ ```bash
157
+ # Run 1
158
+ cyberia ol floor-desert --generate --seed fx-42 --count 3 --frame-count 2
159
+
160
+ # Run 2 (identical output)
161
+ cyberia ol floor-desert --generate --seed fx-42 --count 3 --frame-count 2
162
+ ```
163
+
164
+ Different seeds produce different but semantically consistent results:
165
+
166
+ ```bash
167
+ cyberia ol floor-desert --generate --seed fx-42 # variant A
168
+ cyberia ol floor-desert --generate --seed fx-99 # variant B (same style, different arrangement)
169
+ ```
170
+
71
171
  ## Visualize a processed frame
72
172
 
73
173
  Reconstructs and opens a PNG from the database-stored frame data. Requires item-id as the first positional argument, followed by direction and frame index in the format `[direction]_[frameIndex]`.
@@ -178,6 +278,45 @@ cyberia ol anon --to-atlas-sprite-sheet
178
278
  cyberia ol anon --show-atlas-sprite-sheet
179
279
  ```
180
280
 
281
+ ### Procedural Generation Pipeline
282
+
283
+ Generate an object layer entirely from a semantic descriptor — no source PNGs needed:
284
+
285
+ ```bash
286
+ # 1. Generate a 3-frame desert floor with explicit seed
287
+ cyberia ol floor-desert --generate --seed fx-42 --frame-count 3 --density 0.5
288
+
289
+ # 2. Inspect the generated frame
290
+ cyberia ol floor-desert --show-frame 08_0
291
+
292
+ # 3. View the auto-generated atlas
293
+ cyberia ol floor-desert --show-atlas-sprite-sheet
294
+ ```
295
+
296
+ ### Batch Procedural Generation
297
+
298
+ Generate a full tileset family with consistent seeds:
299
+
300
+ ```bash
301
+ cyberia ol floor-desert --generate --seed world-1 --frame-count 3
302
+ cyberia ol floor-grass --generate --seed world-1 --frame-count 3
303
+ cyberia ol floor-water --generate --seed world-1 --frame-count 4
304
+ cyberia ol floor-stone --generate --seed world-1 --frame-count 2
305
+ cyberia ol floor-lava --generate --seed world-1 --frame-count 3
306
+ ```
307
+
308
+ ### Exploring Seed Variations
309
+
310
+ ```bash
311
+ # Same item, different seeds — compare visual output
312
+ cyberia ol floor-desert --generate --seed alpha --frame-count 1
313
+ cyberia ol floor-desert --generate --seed beta --frame-count 1
314
+ cyberia ol floor-desert --generate --seed gamma --frame-count 1
315
+
316
+ # Inspect each
317
+ cyberia ol floor-desert --show-frame 08_0
318
+ ```
319
+
181
320
  ### Debugging Asset Issues
182
321
 
183
322
  ```bash
package/bin/build.js CHANGED
@@ -10,13 +10,6 @@ if (fs.existsSync(baseConfPath)) dotenv.config({ path: baseConfPath, override: t
10
10
 
11
11
  const logger = loggerFactory(import.meta);
12
12
 
13
- // (async () => {
14
- // return;
15
- // const files = await fs.readdir(`./src`);
16
- // for (const relativePath of files) {
17
- // }
18
- // })();
19
-
20
13
  const confName = process.argv[2];
21
14
  const basePath = '../pwa-microservices-template';
22
15
  const repoName = `engine-${confName.split('dd-')[1]}`;
@@ -24,20 +17,13 @@ const deployList = (confName === 'dd' ? fs.readFileSync(`./engine-private/deploy
24
17
  ',',
25
18
  );
26
19
 
27
- logger.info('', {
20
+ logger.info('Build repository', {
28
21
  confName,
29
22
  repoName,
30
23
  basePath,
31
24
  deployList,
32
25
  });
33
26
 
34
- if (process.argv.includes('clean')) {
35
- if (fs.existsSync(`${basePath}/images`)) fs.copySync(`${basePath}/images`, `./images`);
36
- shellExec(`cd ${basePath} && git checkout .`);
37
- shellExec(`cd ${basePath} && git clean -f -d`);
38
- process.exit(0);
39
- }
40
-
41
27
  if (process.argv.includes('conf')) {
42
28
  for (const _confName of deployList) {
43
29
  const _repoName = `engine-${_confName.split('dd-')[1]}`;
@@ -186,6 +172,7 @@ const { DefaultConf } = await import(`../conf.${confName}.js`);
186
172
  ...packageJson.dependencies,
187
173
  ...CyberiaDependencies,
188
174
  };
175
+ packageJson.overrides = originPackageJson.overrides;
189
176
  fs.writeFileSync(`${basePath}/bin/index.js`, fs.readFileSync(`./bin/cyberia.js`, 'utf8'), 'utf8');
190
177
  fs.copyFileSync(`./src/api/object-layer/README.md`, `${basePath}/README.md`);
191
178
  fs.copySync(`./hardhat`, `${basePath}/hardhat`);
@@ -194,6 +181,9 @@ const { DefaultConf } = await import(`../conf.${confName}.js`);
194
181
  '/src/client/ssr/pages/CyberiaServerMetrics.js',
195
182
  '/src/server/object-layer.js',
196
183
  '/src/server/atlas-sprite-sheet-generator.js',
184
+ '/src/server/shape-generator.js',
185
+ '/src/server/semantic-layer-generator.js',
186
+ '/test/shape-generator.test.js',
197
187
  ])
198
188
  fs.copySync(`.${path}`, `${basePath}${path}`);
199
189
 
@@ -230,4 +220,6 @@ const { DefaultConf } = await import(`../conf.${confName}.js`);
230
220
  if (fs.existsSync(`./src/ws/${confName.split('-')[1]}`)) {
231
221
  fs.copySync(`./src/ws/${confName.split('-')[1]}`, `${basePath}/src/ws/${confName.split('-')[1]}`);
232
222
  }
223
+ shellExec(`cd ${basePath} && npm install --ignore-scripts`);
224
+ shellExec(`cd ${basePath} && npm run fix`);
233
225
  }