cyberia 3.2.12 → 3.2.22

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 (55) hide show
  1. package/.github/workflows/engine-cyberia.cd.yml +1 -0
  2. package/.github/workflows/engine-cyberia.ci.yml +14 -2
  3. package/.github/workflows/ghpkg.ci.yml +1 -0
  4. package/.github/workflows/npmpkg.ci.yml +9 -5
  5. package/CHANGELOG.md +151 -1
  6. package/CLI-HELP.md +975 -1130
  7. package/bin/build.js +97 -136
  8. package/bin/build.template.js +25 -179
  9. package/bin/cyberia.js +11 -6
  10. package/bin/deploy.js +4 -1
  11. package/bin/index.js +11 -6
  12. package/conf.js +1 -0
  13. package/deployment.yaml +74 -2
  14. package/hardhat/package-lock.json +4 -4
  15. package/hardhat/package.json +1 -1
  16. package/manifests/cronjobs/dd-cron/dd-cron-backup.yaml +2 -2
  17. package/manifests/cronjobs/dd-cron/dd-cron-dns.yaml +1 -1
  18. package/manifests/deployment/dd-cyberia-development/deployment.yaml +74 -2
  19. package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
  20. package/package.json +7 -7
  21. package/scripts/link-local-underpost-cli.sh +6 -0
  22. package/scripts/test-monitor.sh +250 -0
  23. package/src/api/cyberia-server-defaults/cyberia-server-defaults.js +7 -0
  24. package/src/cli/deploy.js +200 -282
  25. package/src/cli/env.js +1 -4
  26. package/src/cli/image.js +58 -4
  27. package/src/cli/index.js +47 -0
  28. package/src/cli/monitor.js +387 -6
  29. package/src/cli/release.js +26 -11
  30. package/src/cli/repository.js +101 -7
  31. package/src/cli/run.js +159 -73
  32. package/src/client/components/core/PanelForm.js +44 -44
  33. package/src/client/components/cyberia/SharedDefaultsCyberia.js +1 -1
  34. package/src/client/public/cyberia-docs/ACTION-SYSTEM.md +55 -1
  35. package/src/client/public/cyberia-docs/ARCHITECTURE.md +272 -50
  36. package/src/client/public/cyberia-docs/CYBERIA-SERVER.md +20 -11
  37. package/src/client/public/cyberia-docs/QUEST-SYSTEM.md +23 -1
  38. package/src/client/public/cyberia-docs/ROADMAP.md +1 -1
  39. package/src/client/public/cyberia-docs/WHITE-PAPER.md +1 -1
  40. package/src/db/mongo/MongooseDB.js +2 -1
  41. package/src/index.js +1 -1
  42. package/src/runtime/cyberia-client/Dockerfile +4 -22
  43. package/src/runtime/cyberia-client/Dockerfile.dev +3 -18
  44. package/src/runtime/cyberia-server/Dockerfile +3 -23
  45. package/src/runtime/cyberia-server/Dockerfile.dev +3 -27
  46. package/src/runtime/wp/Dockerfile +3 -3
  47. package/src/server/catalog-underpost.js +61 -0
  48. package/src/server/catalog.js +77 -0
  49. package/src/server/conf.js +414 -56
  50. package/src/server/ipfs-client.js +5 -3
  51. package/src/server/runtime-status.js +235 -0
  52. package/src/server/start.js +32 -11
  53. package/test/deploy-monitor.test.js +251 -0
  54. package/manifests/deployment/dd-test-development/deployment.yaml +0 -256
  55. package/manifests/deployment/dd-test-development/proxy.yaml +0 -102
@@ -126,6 +126,7 @@ jobs:
126
126
  sudo -n -- /bin/bash -lc "node bin run pull"
127
127
  sudo -n -- /bin/bash -lc "npm install"
128
128
  sudo -n -- /bin/bash -lc "node bin run secret"
129
+ sudo -n -- /bin/bash -lc "node bin/build dd-cyberia --conf"
129
130
  sudo -n -- /bin/bash -lc "node bin deploy dd-cyberia production --kubeadm --sync --build-manifest --timeout-response 300000ms --versions green --replicas 1"
130
131
  sudo -n -- /bin/bash -lc "node bin deploy dd-cyberia production --kubeadm --disable-update-proxy --git-clean"
131
132
  sudo -n -- /bin/bash -lc "node bin monitor dd-cyberia production --ready-deployment --promote --timeout-response 300000ms --versions green --replicas 1"
@@ -61,6 +61,7 @@ jobs:
61
61
  - name: Build repository
62
62
  env:
63
63
  GITHUB_TOKEN: ${{ secrets.GIT_AUTH_TOKEN }}
64
+ GITHUB_USERNAME: ${{ github.repository_owner }}
64
65
  run: |
65
66
  cd .. && node engine/bin clone underpostnet/pwa-microservices-template
66
67
  if [ -n "${{ github.event.inputs.message }}" ]; then
@@ -78,16 +79,27 @@ jobs:
78
79
  echo "[INFO] Should CD: $SHOULD_CD, Deploy type: $DEPLOY_TYPE"
79
80
  node engine/bin clone --bare underpostnet/engine-cyberia
80
81
  cd engine
82
+ git clone --depth 1 --no-checkout https://$GITHUB_TOKEN@github.com/underpostnet/engine-private.git ./engine-private
83
+ cd ./engine-private && git sparse-checkout set conf/dd-cyberia && git checkout && cd ..
81
84
  node bin/build dd-cyberia development
82
85
  cd ../pwa-microservices-template
83
86
  rm -rf ./.git
84
87
  mv ../engine-cyberia.git ./.git
88
+ mv ../engine/engine-private ./engine-private
89
+ npm install
90
+ node bin new --default-conf --deploy-id dd-cyberia
91
+ mv ./conf.dd-cyberia.js ./conf.js
92
+ rm -rf ./engine-private
85
93
  git init
86
94
  git config user.name 'underpostnet'
87
95
  git config user.email 'development@underpost.net'
88
96
  git add .
89
- git commit -m "$LAST_COMMIT_MESSAGE"
90
- node ../engine/bin push . underpostnet/engine-cyberia
97
+ if git diff --cached --quiet; then
98
+ echo "[INFO] No changes to publish; skipping commit and push."
99
+ else
100
+ git commit -m "$LAST_COMMIT_MESSAGE"
101
+ node ../engine/bin push . underpostnet/engine-cyberia
102
+ fi
91
103
  if [ "$SHOULD_CD" = "true" ]; then
92
104
  if [ -z "$DEPLOY_TYPE" ]; then
93
105
  DEPLOY_TYPE="sync-and-deploy"
@@ -57,6 +57,7 @@ jobs:
57
57
  - name: Clone and Push to github package repository
58
58
  env:
59
59
  GITHUB_TOKEN: ${{ secrets.GIT_AUTH_TOKEN }}
60
+ GITHUB_USERNAME: ${{ github.repository_owner }}
60
61
  run: |
61
62
  node bin clone --bare underpostnet/pwa-microservices-template-ghpkg
62
63
  rm -rf ./.git
@@ -11,7 +11,7 @@ on:
11
11
  required: false
12
12
  default: ''
13
13
  deploy_conf_id:
14
- description: 'Engine conf ID to dispatch after build (e.g., engine-core, engine-cyberia)'
14
+ description: 'Engine conf ID to dispatch after build'
15
15
  required: false
16
16
  default: ''
17
17
  deploy_type:
@@ -85,20 +85,24 @@ jobs:
85
85
  run: |
86
86
  cd .. && node engine/bin clone underpostnet/pwa-microservices-template
87
87
  cd engine
88
- npm run update:template
88
+ npm run build:template
89
89
  cd ../pwa-microservices-template
90
90
  git remote set-url origin git@github.com:underpostnet/pwa-microservices-template.git
91
91
  git add .
92
92
  git config user.name 'underpostnet'
93
93
  git config user.email 'fcoverdugoa@underpost.net'
94
- node ../engine/bin cmt . ci package-pwa-microservices-template-ghpkg "$LAST_COMMIT_MESSAGE"
95
- node ../engine/bin push . underpostnet/pwa-microservices-template
94
+ if git diff --cached --quiet; then
95
+ echo "[INFO] No template changes to publish; skipping commit and push."
96
+ else
97
+ node ../engine/bin cmt . ci package-pwa-microservices-template-ghpkg "$LAST_COMMIT_MESSAGE"
98
+ node ../engine/bin push . underpostnet/pwa-microservices-template
99
+ fi
96
100
 
97
101
  - name: Dispatch all engine CIs
98
102
  run: |
99
103
  DEPLOY_CONF_ID="${{ github.event.inputs.deploy_conf_id }}"
100
104
  DEPLOY_TYPE="${{ github.event.inputs.deploy_type }}"
101
- for ENGINE in engine-core engine-cyberia engine-lampp engine-test; do
105
+ for ENGINE in engine-core engine-prototype engine-cyberia engine-lampp engine-test; do
102
106
  SYNC="false"
103
107
  DT=""
104
108
  if [ "$ENGINE" = "$DEPLOY_CONF_ID" ]; then
package/CHANGELOG.md CHANGED
@@ -1,6 +1,156 @@
1
1
  # Changelog
2
2
 
3
- ## 2026-05-31
3
+ ## 2026-06-07
4
+
5
+ ### repository
6
+
7
+ - Add safe repo config in pullSourceRepo ([4325c1ba7](https://github.com/underpostnet/engine/commit/4325c1ba736b4e2fa64f0570dc5bedb9b33e351f))
8
+
9
+ ### docs
10
+
11
+ - Restore runtimeConfig docs logic ([819792d1d](https://github.com/underpostnet/engine/commit/819792d1de4e20e490c7bdffca66f794ef810868))
12
+ - Enhance favicon resolution logic in buildJsDocs function to handle missing files ([4b4b6cca2](https://github.com/underpostnet/engine/commit/4b4b6cca2b31f1b41c1e893e58a3bb94b67c4f26))
13
+ - Fix favicon path resolution in buildJsDocs function to handle missing files ([a572ffaf8](https://github.com/underpostnet/engine/commit/a572ffaf88de3e07b0c90fb485f57e9032d4e5bb))
14
+ - Update favicon path in buildJsDocs function to use publicClientId for dynamic resolution ([d839d6a02](https://github.com/underpostnet/engine/commit/d839d6a02b6a49a2aa6923ce5392ff4509c36f43))
15
+
16
+ ### monitor
17
+
18
+ - Add support for custom image names in deployment scripts ([2d4ddf731](https://github.com/underpostnet/engine/commit/2d4ddf731565e45e90b7e105ce17e6a56862e17f))
19
+ - Enhance transport handling in UnderpostMonitor: Default to exec, add opt-in for http ([eebe7ef03](https://github.com/underpostnet/engine/commit/eebe7ef0318e3bbe2533e31701bba7af9483e73c))
20
+ - Refactor test-monitor script: Enhance deployment modes and flag parsing ([07b65b004](https://github.com/underpostnet/engine/commit/07b65b0040d34883f67ebf6d9fa61872ff4c81f2))
21
+ - Enhance runtime status handling with exec transport and kubernetes gate ([135773938](https://github.com/underpostnet/engine/commit/135773938dcbd4e466e09afea73ccc8994a6509e))
22
+
23
+ ### deploy
24
+
25
+ - Refactor deployment commands to use dynamic node names and update MongoDB flag in run command ([b6a1dc9c7](https://github.com/underpostnet/engine/commit/b6a1dc9c751a09fd677d9778b252d967a08225cb))
26
+
27
+ ### cli-start
28
+
29
+ - Add error handling for deployment build/init process in UnderpostStartUp class ([6c7d7e056](https://github.com/underpostnet/engine/commit/6c7d7e0568903f89a0a3a06683b726e4f34fa843))
30
+ - Add support for private test repositories in build and monitor scripts ([23837d02b](https://github.com/underpostnet/engine/commit/23837d02b6a250ecc420e903a095d5be397494bb))
31
+
32
+ ### ipfs
33
+
34
+ - Refactor IPFS API URL functions to include container check for development environment ([61e3fcd1e](https://github.com/underpostnet/engine/commit/61e3fcd1e08b9ec43dca29a151a4309f2a44f276))
35
+
36
+ ### client-core
37
+
38
+ - Fix bug Panel component; when the user writes markdown content but uploads missing reload md file ([f91da9780](https://github.com/underpostnet/engine/commit/f91da97807b991bf9c6b8693c9c97bb8365df6f4))
39
+
40
+ ## New release v:3.2.21 (2026-06-06)
41
+
42
+ ### release
43
+
44
+ - Add options for MongoDB and Valkey configuration in build process ([7dba2a68a](https://github.com/underpostnet/engine/commit/7dba2a68a01dd0dacdf0e1f430170e80f6ce97d8))
45
+
46
+ ### repository
47
+
48
+ - Enhance deployment process: Include deploy ID in logging and update build commands ([aedd99415](https://github.com/underpostnet/engine/commit/aedd994157a5688b13c9f063b9e1446807282213))
49
+ - Add --has-changes option to check for staged or unstaged git changes and update template repo logic ([f479994a4](https://github.com/underpostnet/engine/commit/f479994a40ad3815839cd85f8664390074799c55))
50
+ - Ensure repository directory is created before initialization ([5cb66853f](https://github.com/underpostnet/engine/commit/5cb66853f2623e18edaf8f63de95757cc48d389a))
51
+
52
+ ### docs
53
+
54
+ - Refactor CLI documentation generation: Update command argument and option sections for improved clarity ([fd20febb1](https://github.com/underpostnet/engine/commit/fd20febb125f547b287edd784504185273080a51))
55
+
56
+ ### deploy
57
+
58
+ - Add support for self-signed TLS certificates and related options in deployment scripts ([d03ddf7b7](https://github.com/underpostnet/engine/commit/d03ddf7b758afb9c55fe7c610011fe9e4828d033))
59
+ - Add localProxy option to enable TCP port forwarding and path-based routing ([6b6c03a4c](https://github.com/underpostnet/engine/commit/6b6c03a4c0a990a9b03c234025b3d68deb48f41a))
60
+ - Add exposeLocalPort option for custom local port configuration in deployment ([60fe88b95](https://github.com/underpostnet/engine/commit/60fe88b95e69c744fb53d900edaf6b918f0824bb))
61
+ - Refactor deployment scripts: Update commands in engine-test workflow and add link-local CLI script ([8506dbca4](https://github.com/underpostnet/engine/commit/8506dbca4280e782cb550206f8bf550f9f6f81af))
62
+
63
+ ### cli-run
64
+
65
+ - Add build-cluster-deployment-manifests method and update test-monitor script: Implement deployment manifest building for production and development environments. ([be2c5a71e](https://github.com/underpostnet/engine/commit/be2c5a71e553a65e57fd9f21a5ccb5acaf7b7d58))
66
+ - Add etc-hosts method: Modify /etc/hosts file for local service access ([c4e7ba286](https://github.com/underpostnet/engine/commit/c4e7ba286651f002c1f6be09225c092b0596e4b8))
67
+
68
+ ### monitor
69
+
70
+ - Refactor monitoring and deployment port resolution: Introduce deployStatusPort for consistent internal status port handling and implement findFreePort for ephemeral TCP port allocation. ([735c2c41e](https://github.com/underpostnet/engine/commit/735c2c41e2cfc7c47dd7ce3f0832b80f9c41188f))
71
+ - Add test-monitor script: Implement deployment and monitoring commands for development environment ([a74316ae1](https://github.com/underpostnet/engine/commit/a74316ae140c7917c2923f9f6f63d0ea74859116))
72
+ - Implement reliable two-phase deployment monitoring with internal HTTP status endpoint ([a2b49dcd6](https://github.com/underpostnet/engine/commit/a2b49dcd62ee5056c6d4e5caba0faf867e531269))
73
+ - Improve pod status handling: Exclude 'empty' status from container status checks ([6d18e2872](https://github.com/underpostnet/engine/commit/6d18e28720004eca5dcff8ad61373ac74b46851a))
74
+ - Improve pod status handling: Exclude 'empty' status from advanced pod tracking ([a90400342](https://github.com/underpostnet/engine/commit/a904003428a2a920f56ea409391812a6d3dab794))
75
+
76
+ ### build-template
77
+
78
+ - Add option to update private template repository ([77cbe276a](https://github.com/underpostnet/engine/commit/77cbe276af8f5a3a85c95ab8ad2044b57ee52326))
79
+
80
+ ### runtime-cyberia
81
+
82
+ - Refactor Dockerfiles: Standardize comments and clean up unnecessary lines ([6ae4d0bef](https://github.com/underpostnet/engine/commit/6ae4d0bef71eb31fc56eb66be5e52ba3334b5f13))
83
+
84
+ ### engine-cyberia
85
+
86
+ - Enhance dialogue and quest systems: Add new dialogue entries for Lain, update action types, and revise implementation status in documentation ([67702fa9c](https://github.com/underpostnet/engine/commit/67702fa9c4219fed4742d078f88a52167dd08249))
87
+
88
+ ### cyberia-cli
89
+
90
+ - Add Mongo host override option to import command for Object Layer items ([b181892b4](https://github.com/underpostnet/engine/commit/b181892b48753f7a40ede0346934f6a8b9fd21dc))
91
+
92
+ ### env
93
+
94
+ - Simplify environment variable check: Remove redundant logging for empty env path ([b192cdff4](https://github.com/underpostnet/engine/commit/b192cdff40c2053c651210fbf244be34b74b8376))
95
+
96
+ ## New release v:3.2.14 (2026-06-02)
97
+
98
+ ### runtime-wp
99
+
100
+ - Enhance Dockerfile: Add retry logic for XAMPP installation to handle flaky SourceForge transfers ([d76f7ec69](https://github.com/underpostnet/engine/commit/d76f7ec6959f6ef049d9ef46475e95b7045855a6))
101
+
102
+ ### cli-run
103
+
104
+ - Bundle runner: Enhance client build process by adding options for zip building and replica handling; improve bundle upload logic for deployment ([ee79ccfea](https://github.com/underpostnet/engine/commit/ee79ccfeaf870c0f772027c0a103634774ac1d10))
105
+ - Add shared-dir command execution to UnderpostRun class ([a5d6a3a09](https://github.com/underpostnet/engine/commit/a5d6a3a09ab8ba439a2a21467a9e290a4f4ed59b))
106
+
107
+ ### monitor
108
+
109
+ - Enhance pod status monitoring by adding advanced error checks and tracking for container status regressions ([de54ee20c](https://github.com/underpostnet/engine/commit/de54ee20c1cb76b53898c9785aefe4d2f972e84c))
110
+ - Refactor deployment monitoring and image management; add tests for deployment failure detection ([819d17f30](https://github.com/underpostnet/engine/commit/819d17f306f1d62e0663023fbd667ecf26f8df61))
111
+
112
+ ### github-actions
113
+
114
+ - Add GITHUB_USERNAME environment variable to CI workflows for better repository management ([2f47aaaa1](https://github.com/underpostnet/engine/commit/2f47aaaa14e08a30904ae2cc8187b8fabb74a906))
115
+ - Update CI workflows to use environment-specific configuration files for engine core, cyberia, lampp, prototype, and test ([5c94eedf5](https://github.com/underpostnet/engine/commit/5c94eedf59ddd0a575288f028dbe8588c2931766))
116
+ - Add conditional checks to skip commit and push if no changes are detected in CI workflows ([033afed27](https://github.com/underpostnet/engine/commit/033afed27cd0fe9e12d614fb15ef00e056140aa9))
117
+ - Add npm install step to CI workflows for engine core, cyberia, lampp, prototype, and test ([25457022f](https://github.com/underpostnet/engine/commit/25457022f22b3b7e53c1a156cb2a0a7d35c7cd83))
118
+ - Add sparse checkout and configuration updates for engine prototype workflows ([787cbac2b](https://github.com/underpostnet/engine/commit/787cbac2b3694c050335f69656cca4e77d2d62bd))
119
+ - Add prototype ci cd workflows ([147f9c90e](https://github.com/underpostnet/engine/commit/147f9c90e00d36a2f44453432849d5b15200c7f5))
120
+
121
+ ### docs
122
+
123
+ - Refactor CLI documentation generation in buildCliDoc ([fd2ef99ba](https://github.com/underpostnet/engine/commit/fd2ef99bac6204bfc3f8188c9e3b9cfb1707f7b9))
124
+ - Update architecture and server documentation ([a3eefadd1](https://github.com/underpostnet/engine/commit/a3eefadd1a26c2c2e1fbed6a6c24fae2bfa21ccf))
125
+ - Refactor documentation for Cyberia and Underpost Platform ([36c8234df](https://github.com/underpostnet/engine/commit/36c8234df258f2af819d21db3da88019f195d354))
126
+
127
+ ### bin-build
128
+
129
+ - Enhance build process by adding source repo validation and restoration; implement pullSourceRepo method for managing public source repositories ([7cf35bcd8](https://github.com/underpostnet/engine/commit/7cf35bcd889f5a690f75df03fc0a082ee15f2c87))
130
+ - Enhance build process by adding template rebuild option and refactoring build template logic; streamline deployment template assembly ([eb28b47f3](https://github.com/underpostnet/engine/commit/eb28b47f3d7b53b3f3209b5db763db6cd7abe419))
131
+ - Refactor build main entry logic related to CI workflows and build process for engine components ([d1aba687a](https://github.com/underpostnet/engine/commit/d1aba687a3b0b3b65ebd5ddaf6a32e14c591150b))
132
+
133
+ ### catalog
134
+
135
+ - Refactor build process and introduce dynamic product catalogs for Cyberia and Prototype; enhance deployment template assembly and configuration syncing ([65dc9cc6b](https://github.com/underpostnet/engine/commit/65dc9cc6bdc39bf9482d26fec74730ff5a942ecd))
136
+
137
+ ### engine-prototype
138
+
139
+ - Add deployment and proxy configurations for dd-prototype-development ([40549234c](https://github.com/underpostnet/engine/commit/40549234c9bae7b3bc62573d1df1104df6bce776))
140
+
141
+ ### repository
142
+
143
+ - Refactor CI workflow and enhance repository management with sparse checkout functionality ([27485162d](https://github.com/underpostnet/engine/commit/27485162d728f4c4d1147b0141c3ebe278097043))
144
+
145
+ ### engine
146
+
147
+ - Remove update defualt conf.js per deploy-id workflow ([746285d10](https://github.com/underpostnet/engine/commit/746285d10debbd30ed652275dad605a3210b7fd4))
148
+
149
+ ### engine-core
150
+
151
+ - Remove no core src ([1a90ce0d7](https://github.com/underpostnet/engine/commit/1a90ce0d7742a88c794ed2d37392632cbf12e11c))
152
+
153
+ ## New release v:3.2.12 (2026-05-31)
4
154
 
5
155
  ### docs
6
156