gina 0.7.3 → 0.7.4

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 (636) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +48 -40
  3. package/ROADMAP.md +1 -0
  4. package/bin/cli +33 -4
  5. package/bin/cli-debug +37 -1
  6. package/bin/cmd +18 -0
  7. package/framework/v0.7.4/VERSION +1 -0
  8. package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.js +1504 -621
  9. package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js +736 -0
  10. package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
  11. package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
  12. package/framework/{v0.7.3 → v0.7.4}/core/config.js +13 -3
  13. package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.js +268 -14
  14. package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-json.js +9 -2
  15. package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-nunjucks.js +88 -9
  16. package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-swig-async.js +87 -7
  17. package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-swig.js +115 -9
  18. package/framework/{v0.7.3 → v0.7.4}/core/gna.js +44 -2
  19. package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/src/form-validator.js +43 -4
  20. package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/src/main.js +847 -515
  21. package/framework/{v0.7.3 → v0.7.4}/core/router.js +139 -40
  22. package/framework/{v0.7.3 → v0.7.4}/core/server.express.js +5 -4
  23. package/framework/{v0.7.3 → v0.7.4}/core/server.isaac.js +93 -10
  24. package/framework/{v0.7.3 → v0.7.4}/core/server.js +348 -46
  25. package/framework/{v0.7.3 → v0.7.4}/helpers/context.js +47 -2
  26. package/framework/{v0.7.3 → v0.7.4}/helpers/data/src/main.js +10 -1
  27. package/framework/{v0.7.3 → v0.7.4}/helpers/prototypes.js +23 -1
  28. package/framework/v0.7.4/lib/cmd/bundle/inc/start-status.js +420 -0
  29. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/restart.js +71 -1
  30. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/start.js +207 -41
  31. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/clear.js +39 -8
  32. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/help.txt +3 -4
  33. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/inc/ps-titles.js +62 -6
  34. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/init.js +12 -1
  35. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/restart.js +49 -11
  36. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/status.js +23 -1
  37. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/stop.js +150 -48
  38. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/helper.js +24 -0
  39. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/run.js +6 -0
  40. package/framework/{v0.7.3 → v0.7.4}/lib/cmd/index.js +8 -1
  41. package/framework/{v0.7.3 → v0.7.4}/lib/collection/src/main.js +373 -74
  42. package/framework/{v0.7.3 → v0.7.4}/lib/job/src/main.js +49 -5
  43. package/framework/{v0.7.3 → v0.7.4}/lib/lane/src/main.js +81 -5
  44. package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/main.js +184 -15
  45. package/framework/v0.7.4/lib/logger/src/redact.js +1003 -0
  46. package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-filters/src/main.js +118 -11
  47. package/framework/{v0.7.3 → v0.7.4}/lib/proc.js +27 -8
  48. package/framework/{v0.7.3 → v0.7.4}/lib/render-cache/src/main.js +97 -0
  49. package/framework/{v0.7.3 → v0.7.4}/lib/routing/src/main.js +140 -14
  50. package/framework/{v0.7.3 → v0.7.4}/lib/sqlite-driver.js +15 -5
  51. package/framework/{v0.7.3 → v0.7.4}/lib/swig-filters/src/main.js +123 -16
  52. package/framework/{v0.7.3 → v0.7.4}/package.json +1 -1
  53. package/gna.js +4 -4
  54. package/llms.txt +24 -22
  55. package/package.json +5 -4
  56. package/schema/settings.json +25 -1
  57. package/script/smoke_in_container.js +69 -12
  58. package/types/index.d.ts +3 -2
  59. package/utils/prototypes.js +37 -2
  60. package/framework/v0.7.3/VERSION +0 -1
  61. package/framework/v0.7.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -726
  62. package/framework/v0.7.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
  63. package/framework/v0.7.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
  64. package/framework/v0.7.3/lib/logger/src/redact.js +0 -391
  65. /package/framework/{v0.7.3 → v0.7.4}/AUTHORS +0 -0
  66. /package/framework/{v0.7.3 → v0.7.4}/LICENSE +0 -0
  67. /package/framework/{v0.7.3 → v0.7.4}/core/asset/html/nolayout.html +0 -0
  68. /package/framework/{v0.7.3 → v0.7.4}/core/asset/html/static.html +0 -0
  69. /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/android-chrome-192x192.png +0 -0
  70. /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/android-chrome-512x512.png +0 -0
  71. /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/apple-touch-icon.png +0 -0
  72. /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/favicon-16x16.png +0 -0
  73. /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/favicon-32x32.png +0 -0
  74. /package/framework/{v0.7.3 → v0.7.4}/core/asset/img/favicon.ico +0 -0
  75. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/README.md +0 -0
  76. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
  77. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
  78. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
  79. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
  80. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
  81. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
  82. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
  83. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
  84. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
  85. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
  86. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
  87. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
  88. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
  89. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
  90. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
  91. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
  92. /package/framework/{v0.7.3 → v0.7.4}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
  93. /package/framework/{v0.7.3 → v0.7.4}/core/config.requirements-anchor.js +0 -0
  94. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/ai/index.js +0 -0
  95. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/ai/lib/connector.js +0 -0
  96. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/index.js +0 -0
  97. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/connector.js +0 -0
  98. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/connector.v3.js +0 -0
  99. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/connector.v4.js +0 -0
  100. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/n1ql.js +0 -0
  101. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/session-store.js +0 -0
  102. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  103. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
  104. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/couchbase/lib/storage-store.js +0 -0
  105. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/duckdb/index.js +0 -0
  106. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/duckdb/lib/connector.js +0 -0
  107. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/index.js +0 -0
  108. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/connector.js +0 -0
  109. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/job-store.js +0 -0
  110. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
  111. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mongodb/lib/session-store.js +0 -0
  112. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mysql/index.js +0 -0
  113. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/mysql/lib/connector.js +0 -0
  114. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/param-redact.js +0 -0
  115. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/postgresql/index.js +0 -0
  116. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/postgresql/lib/connector.js +0 -0
  117. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/index.js +0 -0
  118. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/connector.js +0 -0
  119. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/job-store.js +0 -0
  120. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/kv-store.js +0 -0
  121. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/render-cache-store.js +0 -0
  122. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/redis/lib/session-store.js +0 -0
  123. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/scylladb/index.js +0 -0
  124. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/scylladb/lib/connector.js +0 -0
  125. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/scylladb/lib/session-store.js +0 -0
  126. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/settle-once.js +0 -0
  127. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sql-parser.js +0 -0
  128. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/index.js +0 -0
  129. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/connector.js +0 -0
  130. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/job-store.js +0 -0
  131. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/kv-store.js +0 -0
  132. /package/framework/{v0.7.3 → v0.7.4}/core/connectors/sqlite/lib/session-store.js +0 -0
  133. /package/framework/{v0.7.3 → v0.7.4}/core/content.encoding +0 -0
  134. /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.framework.js +0 -0
  135. /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-nunjucks-async.js +0 -0
  136. /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-stream.js +0 -0
  137. /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-v1.js +0 -0
  138. /package/framework/{v0.7.3 → v0.7.4}/core/controller/controller.render-xml.js +0 -0
  139. /package/framework/{v0.7.3 → v0.7.4}/core/controller/index.js +0 -0
  140. /package/framework/{v0.7.3 → v0.7.4}/core/controller/inline-script.js +0 -0
  141. /package/framework/{v0.7.3 → v0.7.4}/core/controller/inspector-window-emit.js +0 -0
  142. /package/framework/{v0.7.3 → v0.7.4}/core/controller/preload-hints.js +0 -0
  143. /package/framework/{v0.7.3 → v0.7.4}/core/controller/release-banner.js +0 -0
  144. /package/framework/{v0.7.3 → v0.7.4}/core/dev/index.js +0 -0
  145. /package/framework/{v0.7.3 → v0.7.4}/core/dev/lib/class.js +0 -0
  146. /package/framework/{v0.7.3 → v0.7.4}/core/dev/lib/factory.js +0 -0
  147. /package/framework/{v0.7.3 → v0.7.4}/core/dev/lib/tools.js +0 -0
  148. /package/framework/{v0.7.3 → v0.7.4}/core/locales/README.md +0 -0
  149. /package/framework/{v0.7.3 → v0.7.4}/core/locales/currency.json +0 -0
  150. /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/language/en.json +0 -0
  151. /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/language/fr.json +0 -0
  152. /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/region/en.json +0 -0
  153. /package/framework/{v0.7.3 → v0.7.4}/core/locales/dist/region/fr.json +0 -0
  154. /package/framework/{v0.7.3 → v0.7.4}/core/locales/index.js +0 -0
  155. /package/framework/{v0.7.3 → v0.7.4}/core/mime.types +0 -0
  156. /package/framework/{v0.7.3 → v0.7.4}/core/model/entity.js +0 -0
  157. /package/framework/{v0.7.3 → v0.7.4}/core/model/index.js +0 -0
  158. /package/framework/{v0.7.3 → v0.7.4}/core/model/template/entityFactory.js +0 -0
  159. /package/framework/{v0.7.3 → v0.7.4}/core/model/template/index.js +0 -0
  160. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/README.md +0 -0
  161. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/index.js +0 -0
  162. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/csrf/README.md +0 -0
  163. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/csrf/package.json +0 -0
  164. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/csrf/src/main.js +0 -0
  165. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/README.md +0 -0
  166. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coep/README.md +0 -0
  167. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coep/package.json +0 -0
  168. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
  169. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coop/README.md +0 -0
  170. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coop/package.json +0 -0
  171. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
  172. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/corp/README.md +0 -0
  173. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/corp/package.json +0 -0
  174. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
  175. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/csp/README.md +0 -0
  176. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/csp/package.json +0 -0
  177. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
  178. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
  179. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
  180. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
  181. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hsts/README.md +0 -0
  182. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hsts/package.json +0 -0
  183. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
  184. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
  185. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
  186. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
  187. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/package.json +0 -0
  188. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
  189. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
  190. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
  191. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/src/main.js +0 -0
  192. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
  193. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
  194. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
  195. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
  196. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
  197. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
  198. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
  199. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
  200. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
  201. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
  202. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
  203. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
  204. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
  205. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
  206. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
  207. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
  208. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
  209. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
  210. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/session/README.md +0 -0
  211. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/session/package.json +0 -0
  212. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/session/src/main.js +0 -0
  213. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/README.md +0 -0
  214. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/build.json +0 -0
  215. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/package.json +0 -0
  216. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/storage/src/main.js +0 -0
  217. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/README.md +0 -0
  218. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/build.json +0 -0
  219. /package/framework/{v0.7.3 → v0.7.4}/core/plugins/lib/validator/package.json +0 -0
  220. /package/framework/{v0.7.3 → v0.7.4}/core/server.isaac.rapid-reset.js +0 -0
  221. /package/framework/{v0.7.3 → v0.7.4}/core/server.route-candidates.js +0 -0
  222. /package/framework/{v0.7.3 → v0.7.4}/core/status.codes +0 -0
  223. /package/framework/{v0.7.3 → v0.7.4}/core/template/_gitignore +0 -0
  224. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/app.json +0 -0
  225. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/connectors.json +0 -0
  226. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/routing.json +0 -0
  227. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/settings.json +0 -0
  228. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
  229. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/templates.json +0 -0
  230. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/config/watchers.json +0 -0
  231. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  232. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  233. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
  234. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/index.js +0 -0
  235. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle/locales/en.json +0 -0
  236. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  237. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  238. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/css/home.css +0 -0
  239. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  240. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  241. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
  242. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  243. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
  244. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/readme.md +0 -0
  245. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_public/sw.js +0 -0
  246. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  247. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
  248. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
  249. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
  250. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
  251. /package/framework/{v0.7.3 → v0.7.4}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
  252. /package/framework/{v0.7.3 → v0.7.4}/core/template/command/gina.bat.tpl +0 -0
  253. /package/framework/{v0.7.3 → v0.7.4}/core/template/command/gina.tpl +0 -0
  254. /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/env.json +0 -0
  255. /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/manifest.json +0 -0
  256. /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/package.json +0 -0
  257. /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/settings.json +0 -0
  258. /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/statics.json +0 -0
  259. /package/framework/{v0.7.3 → v0.7.4}/core/template/conf/templates.json +0 -0
  260. /package/framework/{v0.7.3 → v0.7.4}/core/template/error/client/json/401.json +0 -0
  261. /package/framework/{v0.7.3 → v0.7.4}/core/template/error/client/json/403.json +0 -0
  262. /package/framework/{v0.7.3 → v0.7.4}/core/template/error/client/json/404.json +0 -0
  263. /package/framework/{v0.7.3 → v0.7.4}/core/template/error/server/html/50x.html +0 -0
  264. /package/framework/{v0.7.3 → v0.7.4}/core/template/error/server/json/500.json +0 -0
  265. /package/framework/{v0.7.3 → v0.7.4}/core/template/error/server/json/503.json +0 -0
  266. /package/framework/{v0.7.3 → v0.7.4}/core/template/extensions/logger/config.json +0 -0
  267. /package/framework/{v0.7.3 → v0.7.4}/helpers/console.js +0 -0
  268. /package/framework/{v0.7.3 → v0.7.4}/helpers/data/LICENSE +0 -0
  269. /package/framework/{v0.7.3 → v0.7.4}/helpers/data/README.md +0 -0
  270. /package/framework/{v0.7.3 → v0.7.4}/helpers/data/package.json +0 -0
  271. /package/framework/{v0.7.3 → v0.7.4}/helpers/dateFormat.js +0 -0
  272. /package/framework/{v0.7.3 → v0.7.4}/helpers/index.js +0 -0
  273. /package/framework/{v0.7.3 → v0.7.4}/helpers/json/LICENSE +0 -0
  274. /package/framework/{v0.7.3 → v0.7.4}/helpers/json/README.md +0 -0
  275. /package/framework/{v0.7.3 → v0.7.4}/helpers/json/package.json +0 -0
  276. /package/framework/{v0.7.3 → v0.7.4}/helpers/json/src/main.js +0 -0
  277. /package/framework/{v0.7.3 → v0.7.4}/helpers/path.js +0 -0
  278. /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/README.md +0 -0
  279. /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/package.json +0 -0
  280. /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/src/api-error.js +0 -0
  281. /package/framework/{v0.7.3 → v0.7.4}/helpers/plugins/src/main.js +0 -0
  282. /package/framework/{v0.7.3 → v0.7.4}/helpers/task.js +0 -0
  283. /package/framework/{v0.7.3 → v0.7.4}/helpers/text.js +0 -0
  284. /package/framework/{v0.7.3 → v0.7.4}/lib/admin/package.json +0 -0
  285. /package/framework/{v0.7.3 → v0.7.4}/lib/admin/src/main.js +0 -0
  286. /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/README.md +0 -0
  287. /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/build.json +0 -0
  288. /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/package.json +0 -0
  289. /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/src/dep/jszip.min.js +0 -0
  290. /package/framework/{v0.7.3 → v0.7.4}/lib/archiver/src/main.js +0 -0
  291. /package/framework/{v0.7.3 → v0.7.4}/lib/async/package.json +0 -0
  292. /package/framework/{v0.7.3 → v0.7.4}/lib/async/src/main.js +0 -0
  293. /package/framework/{v0.7.3 → v0.7.4}/lib/audit/package.json +0 -0
  294. /package/framework/{v0.7.3 → v0.7.4}/lib/audit/src/main.js +0 -0
  295. /package/framework/{v0.7.3 → v0.7.4}/lib/audit-store.js +0 -0
  296. /package/framework/{v0.7.3 → v0.7.4}/lib/authn/package.json +0 -0
  297. /package/framework/{v0.7.3 → v0.7.4}/lib/authn/src/lockout.js +0 -0
  298. /package/framework/{v0.7.3 → v0.7.4}/lib/authn/src/main.js +0 -0
  299. /package/framework/{v0.7.3 → v0.7.4}/lib/authn/src/totp.js +0 -0
  300. /package/framework/{v0.7.3 → v0.7.4}/lib/authz-gate/package.json +0 -0
  301. /package/framework/{v0.7.3 → v0.7.4}/lib/authz-gate/src/main.js +0 -0
  302. /package/framework/{v0.7.3 → v0.7.4}/lib/cache/README.md +0 -0
  303. /package/framework/{v0.7.3 → v0.7.4}/lib/cache/build.json +0 -0
  304. /package/framework/{v0.7.3 → v0.7.4}/lib/cache/package.json +0 -0
  305. /package/framework/{v0.7.3 → v0.7.4}/lib/cache/src/main.js +0 -0
  306. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/aliases.json +0 -0
  307. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/audit/arguments.json +0 -0
  308. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/audit/help.txt +0 -0
  309. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/audit/verify.js +0 -0
  310. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/add.js +0 -0
  311. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/arguments.json +0 -0
  312. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/build.js +0 -0
  313. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/copy.js +0 -0
  314. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/cp.js +0 -0
  315. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/help.js +0 -0
  316. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/help.txt +0 -0
  317. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/inc/boot-lines.js +0 -0
  318. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
  319. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/inc/name.js +0 -0
  320. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/list.js +0 -0
  321. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/man.js +0 -0
  322. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/mcp-start.js +0 -0
  323. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/mcp.js +0 -0
  324. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/oas.js +0 -0
  325. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/openapi.js +0 -0
  326. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/remove.js +0 -0
  327. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/rename.js +0 -0
  328. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/rm.js +0 -0
  329. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/status.js +0 -0
  330. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/stop.js +0 -0
  331. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/bundle/types.js +0 -0
  332. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/arguments.json +0 -0
  333. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/cache/stats.js +0 -0
  334. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/add.js +0 -0
  335. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/arguments.json +0 -0
  336. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/help.js +0 -0
  337. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/help.txt +0 -0
  338. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/infer.js +0 -0
  339. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/list.js +0 -0
  340. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/migrate.js +0 -0
  341. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/models.js +0 -0
  342. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/remove.js +0 -0
  343. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/rm.js +0 -0
  344. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/connector/test.js +0 -0
  345. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/arguments.json +0 -0
  346. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/help.js +0 -0
  347. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/help.txt +0 -0
  348. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/man.js +0 -0
  349. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/ps.js +0 -0
  350. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/container/stop.js +0 -0
  351. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/add.js +0 -0
  352. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/arguments.json +0 -0
  353. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/help.txt +0 -0
  354. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/args.js +0 -0
  355. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/namespace.js +0 -0
  356. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
  357. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/reference-scan.js +0 -0
  358. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/inc/scaffold.js +0 -0
  359. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/remove.js +0 -0
  360. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/rename.js +0 -0
  361. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/controller/rm.js +0 -0
  362. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/add.js +0 -0
  363. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/get.js +0 -0
  364. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/help.js +0 -0
  365. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/help.txt +0 -0
  366. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/inc/name.js +0 -0
  367. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/link-dev.js +0 -0
  368. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/list.js +0 -0
  369. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/remove.js +0 -0
  370. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/rm.js +0 -0
  371. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/set.js +0 -0
  372. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/unset.js +0 -0
  373. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/env/use.js +0 -0
  374. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/add.js +0 -0
  375. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/arguments.json +0 -0
  376. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/build.js +0 -0
  377. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/dot.js +0 -0
  378. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/get.js +0 -0
  379. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/help.js +0 -0
  380. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/help.txt +0 -0
  381. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/inc/listen-error.js +0 -0
  382. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/link-node-modules.js +0 -0
  383. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/link.js +0 -0
  384. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/list.js +0 -0
  385. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/man.js +0 -0
  386. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/msg.json +0 -0
  387. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/open.js +0 -0
  388. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/remove.js +0 -0
  389. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/reset.js +0 -0
  390. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/set.js +0 -0
  391. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/start.js +0 -0
  392. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/tail.js +0 -0
  393. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/update.js +0 -0
  394. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/framework/version.js +0 -0
  395. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/gina-dev.1.md +0 -0
  396. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/gina-framework.1.md +0 -0
  397. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/gina.1.md +0 -0
  398. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/add.js +0 -0
  399. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/arguments.json +0 -0
  400. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/export.js +0 -0
  401. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/help.js +0 -0
  402. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/help.txt +0 -0
  403. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/import.js +0 -0
  404. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/i18n/scan.js +0 -0
  405. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/_host.js +0 -0
  406. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/arguments.json +0 -0
  407. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/build.js +0 -0
  408. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/help.js +0 -0
  409. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/help.txt +0 -0
  410. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/list.js +0 -0
  411. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/man.js +0 -0
  412. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/image/rm.js +0 -0
  413. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/inspector/help.js +0 -0
  414. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/inspector/help.txt +0 -0
  415. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/inspector/open.js +0 -0
  416. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/man-render.js +0 -0
  417. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/arguments.json +0 -0
  418. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/help.js +0 -0
  419. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/help.txt +0 -0
  420. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/kill.js +0 -0
  421. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/minion/list.js +0 -0
  422. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/msg.json +0 -0
  423. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/help.js +0 -0
  424. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/help.txt +0 -0
  425. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/inc/scan.js +0 -0
  426. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/list.js +0 -0
  427. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/reset.js +0 -0
  428. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/port/set.js +0 -0
  429. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/add.js +0 -0
  430. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/arguments.json +0 -0
  431. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/backup.js +0 -0
  432. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/build.js +0 -0
  433. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/help.js +0 -0
  434. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/help.txt +0 -0
  435. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/import.js +0 -0
  436. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/inc/name.js +0 -0
  437. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/list.js +0 -0
  438. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/man.js +0 -0
  439. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/move.js +0 -0
  440. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/remove.js +0 -0
  441. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/rename.js +0 -0
  442. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/restart.js +0 -0
  443. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/restore.js +0 -0
  444. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/rm.js +0 -0
  445. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/start.js +0 -0
  446. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/status.js +0 -0
  447. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/project/stop.js +0 -0
  448. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/arguments.json +0 -0
  449. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/help.js +0 -0
  450. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/help.txt +0 -0
  451. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/list.js +0 -0
  452. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/remove.js +0 -0
  453. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/protocol/set.js +0 -0
  454. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/add.js +0 -0
  455. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/help.js +0 -0
  456. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/help.txt +0 -0
  457. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/inc/name.js +0 -0
  458. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/link-local.js +0 -0
  459. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/link-production.js +0 -0
  460. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/list.js +0 -0
  461. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/remove.js +0 -0
  462. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/rm.js +0 -0
  463. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/scope/use.js +0 -0
  464. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/arguments.json +0 -0
  465. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/check.js +0 -0
  466. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/help.js +0 -0
  467. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/help.txt +0 -0
  468. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/secrets/scan.js +0 -0
  469. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/help.js +0 -0
  470. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/help.txt +0 -0
  471. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/list.js +0 -0
  472. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/man.js +0 -0
  473. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/service/start.js +0 -0
  474. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/arguments.json +0 -0
  475. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/gc.js +0 -0
  476. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/help.txt +0 -0
  477. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/stats.js +0 -0
  478. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/storage/verify.js +0 -0
  479. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd/view/add.js +0 -0
  480. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd-status-format/package.json +0 -0
  481. /package/framework/{v0.7.3 → v0.7.4}/lib/cmd-status-format/src/main.js +0 -0
  482. /package/framework/{v0.7.3 → v0.7.4}/lib/collection/README.md +0 -0
  483. /package/framework/{v0.7.3 → v0.7.4}/lib/collection/build.json +0 -0
  484. /package/framework/{v0.7.3 → v0.7.4}/lib/collection/package.json +0 -0
  485. /package/framework/{v0.7.3 → v0.7.4}/lib/conf-view/package.json +0 -0
  486. /package/framework/{v0.7.3 → v0.7.4}/lib/conf-view/src/main.js +0 -0
  487. /package/framework/{v0.7.3 → v0.7.4}/lib/config.js +0 -0
  488. /package/framework/{v0.7.3 → v0.7.4}/lib/connector-config/package.json +0 -0
  489. /package/framework/{v0.7.3 → v0.7.4}/lib/connector-config/src/main.js +0 -0
  490. /package/framework/{v0.7.3 → v0.7.4}/lib/connector-error/package.json +0 -0
  491. /package/framework/{v0.7.3 → v0.7.4}/lib/connector-error/src/main.js +0 -0
  492. /package/framework/{v0.7.3 → v0.7.4}/lib/connector-registry/package.json +0 -0
  493. /package/framework/{v0.7.3 → v0.7.4}/lib/connector-registry/src/main.js +0 -0
  494. /package/framework/{v0.7.3 → v0.7.4}/lib/cron/README.md +0 -0
  495. /package/framework/{v0.7.3 → v0.7.4}/lib/cron/package.json +0 -0
  496. /package/framework/{v0.7.3 → v0.7.4}/lib/cron/src/main.js +0 -0
  497. /package/framework/{v0.7.3 → v0.7.4}/lib/domain/LICENSE +0 -0
  498. /package/framework/{v0.7.3 → v0.7.4}/lib/domain/README.md +0 -0
  499. /package/framework/{v0.7.3 → v0.7.4}/lib/domain/package.json +0 -0
  500. /package/framework/{v0.7.3 → v0.7.4}/lib/domain/src/main.js +0 -0
  501. /package/framework/{v0.7.3 → v0.7.4}/lib/dto/package.json +0 -0
  502. /package/framework/{v0.7.3 → v0.7.4}/lib/dto/src/main.js +0 -0
  503. /package/framework/{v0.7.3 → v0.7.4}/lib/dto-pipe/package.json +0 -0
  504. /package/framework/{v0.7.3 → v0.7.4}/lib/dto-pipe/src/main.js +0 -0
  505. /package/framework/{v0.7.3 → v0.7.4}/lib/dto-types/package.json +0 -0
  506. /package/framework/{v0.7.3 → v0.7.4}/lib/dto-types/src/main.js +0 -0
  507. /package/framework/{v0.7.3 → v0.7.4}/lib/duration/package.json +0 -0
  508. /package/framework/{v0.7.3 → v0.7.4}/lib/duration/src/main.js +0 -0
  509. /package/framework/{v0.7.3 → v0.7.4}/lib/error-ref/package.json +0 -0
  510. /package/framework/{v0.7.3 → v0.7.4}/lib/error-ref/src/main.js +0 -0
  511. /package/framework/{v0.7.3 → v0.7.4}/lib/generator/index.js +0 -0
  512. /package/framework/{v0.7.3 → v0.7.4}/lib/i18n/package.json +0 -0
  513. /package/framework/{v0.7.3 → v0.7.4}/lib/i18n/src/main.js +0 -0
  514. /package/framework/{v0.7.3 → v0.7.4}/lib/idempotency/package.json +0 -0
  515. /package/framework/{v0.7.3 → v0.7.4}/lib/idempotency/src/main.js +0 -0
  516. /package/framework/{v0.7.3 → v0.7.4}/lib/image-build/package.json +0 -0
  517. /package/framework/{v0.7.3 → v0.7.4}/lib/image-build/src/main.js +0 -0
  518. /package/framework/{v0.7.3 → v0.7.4}/lib/index.js +0 -0
  519. /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/LICENSE +0 -0
  520. /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/README.md +0 -0
  521. /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/package.json +0 -0
  522. /package/framework/{v0.7.3 → v0.7.4}/lib/inherits/src/main.js +0 -0
  523. /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-events/package.json +0 -0
  524. /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-events/src/main.js +0 -0
  525. /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-redact/package.json +0 -0
  526. /package/framework/{v0.7.3 → v0.7.4}/lib/inspector-redact/src/main.js +0 -0
  527. /package/framework/{v0.7.3 → v0.7.4}/lib/instrument/package.json +0 -0
  528. /package/framework/{v0.7.3 → v0.7.4}/lib/instrument/src/main.js +0 -0
  529. /package/framework/{v0.7.3 → v0.7.4}/lib/job/package.json +0 -0
  530. /package/framework/{v0.7.3 → v0.7.4}/lib/job-store.js +0 -0
  531. /package/framework/{v0.7.3 → v0.7.4}/lib/json-config-header/package.json +0 -0
  532. /package/framework/{v0.7.3 → v0.7.4}/lib/json-config-header/src/main.js +0 -0
  533. /package/framework/{v0.7.3 → v0.7.4}/lib/kv/package.json +0 -0
  534. /package/framework/{v0.7.3 → v0.7.4}/lib/kv/src/main.js +0 -0
  535. /package/framework/{v0.7.3 → v0.7.4}/lib/kv-store.js +0 -0
  536. /package/framework/{v0.7.3 → v0.7.4}/lib/lane/package.json +0 -0
  537. /package/framework/{v0.7.3 → v0.7.4}/lib/loading-state/package.json +0 -0
  538. /package/framework/{v0.7.3 → v0.7.4}/lib/loading-state/src/main.js +0 -0
  539. /package/framework/{v0.7.3 → v0.7.4}/lib/logger/README.md +0 -0
  540. /package/framework/{v0.7.3 → v0.7.4}/lib/logger/package.json +0 -0
  541. /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/default/index.js +0 -0
  542. /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/file/index.js +0 -0
  543. /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/mq/index.js +0 -0
  544. /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/mq/listener.js +0 -0
  545. /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/containers/mq/speaker.js +0 -0
  546. /package/framework/{v0.7.3 → v0.7.4}/lib/logger/src/helper.js +0 -0
  547. /package/framework/{v0.7.3 → v0.7.4}/lib/maintenance/package.json +0 -0
  548. /package/framework/{v0.7.3 → v0.7.4}/lib/maintenance/src/main.js +0 -0
  549. /package/framework/{v0.7.3 → v0.7.4}/lib/math/index.js +0 -0
  550. /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-dispatch/package.json +0 -0
  551. /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-dispatch/src/main.js +0 -0
  552. /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-http/package.json +0 -0
  553. /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-http/src/main.js +0 -0
  554. /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-server/package.json +0 -0
  555. /package/framework/{v0.7.3 → v0.7.4}/lib/mcp-server/src/main.js +0 -0
  556. /package/framework/{v0.7.3 → v0.7.4}/lib/merge/README.md +0 -0
  557. /package/framework/{v0.7.3 → v0.7.4}/lib/merge/package.json +0 -0
  558. /package/framework/{v0.7.3 → v0.7.4}/lib/merge/src/main.js +0 -0
  559. /package/framework/{v0.7.3 → v0.7.4}/lib/message-validator/package.json +0 -0
  560. /package/framework/{v0.7.3 → v0.7.4}/lib/message-validator/src/main.js +0 -0
  561. /package/framework/{v0.7.3 → v0.7.4}/lib/metrics/package.json +0 -0
  562. /package/framework/{v0.7.3 → v0.7.4}/lib/metrics/src/main.js +0 -0
  563. /package/framework/{v0.7.3 → v0.7.4}/lib/model.js +0 -0
  564. /package/framework/{v0.7.3 → v0.7.4}/lib/money/package.json +0 -0
  565. /package/framework/{v0.7.3 → v0.7.4}/lib/money/src/main.js +0 -0
  566. /package/framework/{v0.7.3 → v0.7.4}/lib/multipart/package.json +0 -0
  567. /package/framework/{v0.7.3 → v0.7.4}/lib/multipart/src/main.js +0 -0
  568. /package/framework/{v0.7.3 → v0.7.4}/lib/net-locality/package.json +0 -0
  569. /package/framework/{v0.7.3 → v0.7.4}/lib/net-locality/src/main.js +0 -0
  570. /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-filters/README.md +0 -0
  571. /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-filters/package.json +0 -0
  572. /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-resolver/package.json +0 -0
  573. /package/framework/{v0.7.3 → v0.7.4}/lib/nunjucks-resolver/src/main.js +0 -0
  574. /package/framework/{v0.7.3 → v0.7.4}/lib/priority/package.json +0 -0
  575. /package/framework/{v0.7.3 → v0.7.4}/lib/priority/src/main.js +0 -0
  576. /package/framework/{v0.7.3 → v0.7.4}/lib/push/package.json +0 -0
  577. /package/framework/{v0.7.3 → v0.7.4}/lib/push/src/main.js +0 -0
  578. /package/framework/{v0.7.3 → v0.7.4}/lib/rate-limit/package.json +0 -0
  579. /package/framework/{v0.7.3 → v0.7.4}/lib/rate-limit/src/main.js +0 -0
  580. /package/framework/{v0.7.3 → v0.7.4}/lib/release-watch/package.json +0 -0
  581. /package/framework/{v0.7.3 → v0.7.4}/lib/release-watch/src/main.js +0 -0
  582. /package/framework/{v0.7.3 → v0.7.4}/lib/render-cache/package.json +0 -0
  583. /package/framework/{v0.7.3 → v0.7.4}/lib/render-cache-store.js +0 -0
  584. /package/framework/{v0.7.3 → v0.7.4}/lib/routing/README.md +0 -0
  585. /package/framework/{v0.7.3 → v0.7.4}/lib/routing/build.json +0 -0
  586. /package/framework/{v0.7.3 → v0.7.4}/lib/routing/package.json +0 -0
  587. /package/framework/{v0.7.3 → v0.7.4}/lib/routing-introspect/package.json +0 -0
  588. /package/framework/{v0.7.3 → v0.7.4}/lib/routing-introspect/src/main.js +0 -0
  589. /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/package.json +0 -0
  590. /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/backends/env.js +0 -0
  591. /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/backends/exec.js +0 -0
  592. /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/backends/file.js +0 -0
  593. /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/declaration.js +0 -0
  594. /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/env-file.js +0 -0
  595. /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/main.js +0 -0
  596. /package/framework/{v0.7.3 → v0.7.4}/lib/secrets/src/sources.js +0 -0
  597. /package/framework/{v0.7.3 → v0.7.4}/lib/security-headers-emitter/package.json +0 -0
  598. /package/framework/{v0.7.3 → v0.7.4}/lib/security-headers-emitter/src/main.js +0 -0
  599. /package/framework/{v0.7.3 → v0.7.4}/lib/session-lifetime/package.json +0 -0
  600. /package/framework/{v0.7.3 → v0.7.4}/lib/session-lifetime/src/main.js +0 -0
  601. /package/framework/{v0.7.3 → v0.7.4}/lib/session-store.js +0 -0
  602. /package/framework/{v0.7.3 → v0.7.4}/lib/shell.js +0 -0
  603. /package/framework/{v0.7.3 → v0.7.4}/lib/sri/package.json +0 -0
  604. /package/framework/{v0.7.3 → v0.7.4}/lib/sri/src/main.js +0 -0
  605. /package/framework/{v0.7.3 → v0.7.4}/lib/state.js +0 -0
  606. /package/framework/{v0.7.3 → v0.7.4}/lib/storage/package.json +0 -0
  607. /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/local-cas.js +0 -0
  608. /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/local-stream.js +0 -0
  609. /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/local.js +0 -0
  610. /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/main.js +0 -0
  611. /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/meta-store.js +0 -0
  612. /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/s3.js +0 -0
  613. /package/framework/{v0.7.3 → v0.7.4}/lib/storage/src/util.js +0 -0
  614. /package/framework/{v0.7.3 → v0.7.4}/lib/storage-store.js +0 -0
  615. /package/framework/{v0.7.3 → v0.7.4}/lib/swig-filters/README.md +0 -0
  616. /package/framework/{v0.7.3 → v0.7.4}/lib/swig-filters/package.json +0 -0
  617. /package/framework/{v0.7.3 → v0.7.4}/lib/swig-resolver/package.json +0 -0
  618. /package/framework/{v0.7.3 → v0.7.4}/lib/swig-resolver/src/main.js +0 -0
  619. /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/package.json +0 -0
  620. /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/src/loaders/http.js +0 -0
  621. /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/src/loaders/memory.js +0 -0
  622. /package/framework/{v0.7.3 → v0.7.4}/lib/template-loaders/src/main.js +0 -0
  623. /package/framework/{v0.7.3 → v0.7.4}/lib/url/README.md +0 -0
  624. /package/framework/{v0.7.3 → v0.7.4}/lib/url/index.js +0 -0
  625. /package/framework/{v0.7.3 → v0.7.4}/lib/url/routing.json +0 -0
  626. /package/framework/{v0.7.3 → v0.7.4}/lib/uuid/package.json +0 -0
  627. /package/framework/{v0.7.3 → v0.7.4}/lib/uuid/src/main.js +0 -0
  628. /package/framework/{v0.7.3 → v0.7.4}/lib/validator.js +0 -0
  629. /package/framework/{v0.7.3 → v0.7.4}/lib/watcher/package.json +0 -0
  630. /package/framework/{v0.7.3 → v0.7.4}/lib/watcher/src/main.js +0 -0
  631. /package/framework/{v0.7.3 → v0.7.4}/lib/ws-framing/package.json +0 -0
  632. /package/framework/{v0.7.3 → v0.7.4}/lib/ws-framing/src/main.js +0 -0
  633. /package/framework/{v0.7.3 → v0.7.4}/lib/ws-query/package.json +0 -0
  634. /package/framework/{v0.7.3 → v0.7.4}/lib/ws-query/src/main.js +0 -0
  635. /package/framework/{v0.7.3 → v0.7.4}/lib/ws-session/package.json +0 -0
  636. /package/framework/{v0.7.3 → v0.7.4}/lib/ws-session/src/main.js +0 -0
@@ -15,6 +15,11 @@ var runtime = require(__dirname + '/../../../../../utils/runtime.js');
15
15
  // client. Relative path: the bare `lib/<name>` form is unavailable in CLI/daemon scope.
16
16
  var bootLines = require('./inc/boot-lines');
17
17
  var escapeRegex = require('./inc/name-rewrite').escapeRegex;
18
+ // #B851 — the outcome this command reports to the CLI (frames, exit codes, the bind failure)
19
+ // and the « already running » rule; ps-titles reads a pid's title without a shell. Relative
20
+ // paths: the bare `lib/<name>` form is unavailable in CLI/daemon scope.
21
+ var startStatus = require('./inc/start-status');
22
+ var psTitles = require('./../framework/inc/ps-titles');
18
23
  // `lib` is previously defiened as this file is required by anoth
19
24
  // For user output
20
25
  var terminal = lib.logger;
@@ -68,12 +73,20 @@ function Start(opt, cmd) {
68
73
  new CmdHelper(self, opt.client, { port: opt.debugPort, brkEnabled: opt.debugBrkEnabled });
69
74
 
70
75
  // check CMD configuration
71
- if (!isCmdConfigured()) return false;
76
+ // #B855 — isCmdConfigured() is async: the Promise it returns is always truthy, so this
77
+ // guard never fired. Its body runs synchronously, and a refusal in it called exit(), which
78
+ // ended the framework daemon this handler runs in. exit() now ends only this client and
79
+ // marks the command: stop here.
80
+ // was: if (!isCmdConfigured()) return false;
81
+ isCmdConfigured();
82
+ if (self.cmdExited) return false;
72
83
 
73
84
 
74
85
  // start all bundles
75
86
  opt.onlineCount = 0;
76
87
  opt.notStarted = [];
88
+ // #B851 — the first failure's exit code (end() sends it to the CLI)
89
+ opt.exitCode = 0;
77
90
 
78
91
  if (!self.name) {
79
92
  // bulk mode needs at least one bundle — `self.bundles[0]` is undefined on a zero-bundle
@@ -341,6 +354,19 @@ function Start(opt, cmd) {
341
354
  if (isStarting)
342
355
  return;
343
356
 
357
+ // #B851 / #B854 — a bundle that already runs is not started again. A second start
358
+ // spawned a child that overwrote the running bundle's pid file with its own pid,
359
+ // could not bind the port and removed the file as it exited (measured), so
360
+ // `bundle:status` read the running bundle as stopped; the command printed the
361
+ // bind error and exited 0. Checked before the node_modules check, which may
362
+ // remove and reinstall node_modules under the running bundle.
363
+ var runningPid = findRunning(bundle, appPath);
364
+ if ( runningPid !== null ) {
365
+ ++opt.onlineCount;
366
+ opt.client.write('\n\r [ ' + bundle + '@' + self.projectName + ' ] is already running with PID [ ' + runningPid + ' ]');
367
+ return end(opt, cmd, isBulkStart, bundleIndex, 0);
368
+ }
369
+
344
370
 
345
371
  var proceedToStart = function(nodeModulesErr) {
346
372
  if (nodeModulesErr) {
@@ -437,16 +463,49 @@ function Start(opt, cmd) {
437
463
  clearInterval(timerId);
438
464
  opt.client.write('Sorry my friend, this is taking too long ! Terminating. Check your logs.');
439
465
  child.kill('SIGKILL');
440
- if (!opt.client.destroyed) {
441
- opt.client.emit('exit');
442
- opt.client.emit('end');
443
- }
444
-
445
-
446
- //end(opt, cmd, isBulkStart, bundleIndex);
466
+ // #B851 — was: 'exit' and 'end' emitted on the client without end(), so
467
+ // no outcome, and in bulk mode the bundles after this one never started.
468
+ // if (!opt.client.destroyed) {
469
+ // opt.client.emit('exit');
470
+ // opt.client.emit('end');
471
+ // }
472
+ opt.notStarted.push(bundle + '@' + self.projectName);
473
+ settle(1);
447
474
  }
448
475
  }, maxTimeout);
449
476
 
477
+ // #B851 — one outcome per attempt. Several paths can see one failure (an emerg
478
+ // line, then the exit); a second end() wrote to an ended client and, in bulk
479
+ // mode, started the next bundle twice.
480
+ var settled = false;
481
+ var settle = function(code) {
482
+ if (settled) {
483
+ return false;
484
+ }
485
+ settled = true;
486
+ clearInterval(timerId);
487
+ end(opt, cmd, isBulkStart, bundleIndex, code);
488
+ return true;
489
+ };
490
+ // #B851 — the bind failure core/server.js reports before it ends the boot
491
+ var bindFailure = null;
492
+
493
+ // #B851 review F2 — a spawn that fails (the runtime binary gone, EAGAIN, EMFILE)
494
+ // emits 'error' on the child and no 'exit'. With no listener it was an uncaught
495
+ // exception in this daemon, which proc.js only logs here, and nothing ended the
496
+ // attempt until the watchdog. It ends at once now. An 'error' once the attempt
497
+ // has its outcome (a kill that failed) is only logged.
498
+ child.on('error', function(spawnErr) {
499
+ var reason = ( spawnErr && spawnErr.code ) ? spawnErr.code : String( ( spawnErr && spawnErr.message ) || spawnErr );
500
+ if (isStarting || settled) {
501
+ terminal.warn('[bundle:start] ' + bundle + '@' + self.projectName + ': child process error (' + reason + ')');
502
+ return;
503
+ }
504
+ opt.notStarted.push(bundle + '@' + self.projectName);
505
+ opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] could not be started: its process could not be spawned (' + reason + '). Check your logs.');
506
+ settle(1);
507
+ });
508
+
450
509
  var checkCaseCount = 2
451
510
  // The 2 flags we need to free the child.stdout if we do not want the command to wait for a timeout
452
511
  // NB.: you can place flag by using terminal.notice
@@ -470,6 +529,8 @@ function Start(opt, cmd) {
470
529
  // Without this guard, every runtime emerg log (written to stdout by the logger's
471
530
  // 'default' container) triggers child.kill('SIGKILL') and silences the error.
472
531
  if (isStarting) return;
532
+ // #B851 — nor once the attempt has its outcome.
533
+ if (settled) return;
473
534
 
474
535
  // #B691 — pass the bundle's warn-and-above boot lines on to the client, ahead
475
536
  // of the checks below, so a warning comes before the started or aborted line.
@@ -485,30 +546,42 @@ function Start(opt, cmd) {
485
546
  terminal.debug('[bundle:start] boot lines not passed on: '+ bootLinesErr.message);
486
547
  }
487
548
 
488
- // handle errors
489
- if ( /EADDRINUSE.*port/i.test(data) && !errorFound ) {
490
- terminal.log(data);
491
- // kill the bundle starting process first
492
- child.kill('SIGKILL');
493
-
494
- errorFound = true;
495
- //opt.client.write(data);
496
- try {
497
- port = ' #'+ data.match(/port\":\s+\d+/)[0].split(/\:/)[1].trim() +' ';
498
- opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] has already been started, or port'+ port+'might be busy');
499
-
500
- } catch(_err) {
501
- opt.client.write(_err);
502
- }
503
-
504
-
505
- ++opt.onlineCount;
506
- end(opt, cmd, isBulkStart, bundleIndex);
507
- clearInterval(timerId);
508
-
509
- return;
549
+ // #B851 — the bind failure core/server.js reports (its emerg line) before it
550
+ // ends the boot: kept to name the outcome.
551
+ if (!bindFailure) {
552
+ bindFailure = startStatus.parseBindFailure(data);
510
553
  }
511
554
 
555
+ // handle errors
556
+ // #B851 — was: the « has already been started, or port … might be busy »
557
+ // branch. In text logs it never fired (`EADDRINUSE` and `port` sit on
558
+ // different lines of the logged error); in JSON logs `port\":` never
559
+ // matched and the branch wrote an Error object to the client, which threw.
560
+ // A bundle that already runs is now found before the spawn, and a bind
561
+ // failure is named from core/server.js's own line.
562
+ // if ( /EADDRINUSE.*port/i.test(data) && !errorFound ) {
563
+ // terminal.log(data);
564
+ // // kill the bundle starting process first
565
+ // child.kill('SIGKILL');
566
+ //
567
+ // errorFound = true;
568
+ // //opt.client.write(data);
569
+ // try {
570
+ // port = ' #'+ data.match(/port\":\s+\d+/)[0].split(/\:/)[1].trim() +' ';
571
+ // opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] has already been started, or port'+ port+'might be busy');
572
+ //
573
+ // } catch(_err) {
574
+ // opt.client.write(_err);
575
+ // }
576
+ //
577
+ //
578
+ // ++opt.onlineCount;
579
+ // end(opt, cmd, isBulkStart, bundleIndex);
580
+ // clearInterval(timerId);
581
+ //
582
+ // return;
583
+ // }
584
+
512
585
  // catch fatal errors to exit
513
586
  if ( /(\[|\[\s+)emerg/.test(data) ) {
514
587
  terminal.log(data);
@@ -520,11 +593,16 @@ function Start(opt, cmd) {
520
593
  // and CLI output — not just routed to the daemon's MQ logger.
521
594
  var _emergMsg = data.toString().replace(/\x1B\[\d+m/g, '').trim();
522
595
  opt.notStarted.push(bundle + '@' + self.projectName);
523
- opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] aborted :( \n ' + _emergMsg);
596
+ // #B851 — a bind failure is named for what it is
597
+ if (bindFailure) {
598
+ opt.client.write('\n' + startStatus.bindFailureMessage(bundle + '@' + self.projectName, bindFailure, isWin32()));
599
+ } else {
600
+ opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] aborted :( \n ' + _emergMsg);
601
+ }
524
602
 
525
- ++opt.onlineCount;
526
- end(opt, cmd, isBulkStart, bundleIndex);
527
- clearInterval(timerId);
603
+ // #B851 — was: ++opt.onlineCount (an aborted bundle counted as online),
604
+ // end() with no outcome, then clearInterval (settle() clears it).
605
+ settle(1);
528
606
 
529
607
  return;
530
608
  }
@@ -566,7 +644,8 @@ function Start(opt, cmd) {
566
644
  opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] started V(-.o)V'+ url + debuggerOn);
567
645
 
568
646
 
569
- end(opt, cmd, isBulkStart, bundleIndex);
647
+ // #B851 — was: end(opt, cmd, isBulkStart, bundleIndex);
648
+ settle(0);
570
649
  return;
571
650
  }
572
651
 
@@ -580,6 +659,12 @@ function Start(opt, cmd) {
580
659
  child.stderr.on('data', function(err) {
581
660
  error = err.toString();
582
661
 
662
+ // #B851 — core/server.js writes its bind failure here too, synchronously
663
+ // (the stdout emerg line can be lost on a pipe at exit)
664
+ if (!bindFailure) {
665
+ bindFailure = startStatus.parseBindFailure(error);
666
+ }
667
+
583
668
  if (/Waiting for the debugger to disconnect: will be reused if not disconected./.test(error) ) { // dual debug --inspect-gina && --inspect
584
669
  onException = true;
585
670
  }
@@ -616,7 +701,8 @@ function Start(opt, cmd) {
616
701
  // handles only signals that cannot be cannot be caught or ignored
617
702
  // ref.: `framework/<version>/lib/proc.js`
618
703
  if (onException) { // dual debug --inspect-gina && --inspect
619
- return end(opt, cmd, isBulkStart, bundleIndex);
704
+ // #B851 — was: return end(opt, cmd, isBulkStart, bundleIndex);
705
+ return settle(0);
620
706
  }
621
707
  // if (/(SIGKILL|SIGSTOP)/i.test(signal)) {
622
708
  // Fixed on 2023-03-23 - Allowing docker to catch exit signal on `SIGABRT`
@@ -626,6 +712,14 @@ function Start(opt, cmd) {
626
712
  }
627
713
  terminal.emerg('[' + this.pid + '] `'+ self.name +'@'+ self.projectName +'` exiting with signal: ', signal);
628
714
  cmd.proc.dismiss(this.pid, signal);
715
+ // #B851 — a signal from outside before readiness (`kill -9`, the OOM
716
+ // killer) reported nothing: the client waited for the timeout. A kill
717
+ // this command sent itself has already settled the attempt.
718
+ if (!isStarting && !settled) {
719
+ opt.notStarted.push(bundle + '@' + self.projectName);
720
+ opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] stopped before it was ready (signal ' + signal + '). Check your logs.');
721
+ settle(startStatus.exitCodeBeforeReady(code, signal));
722
+ }
629
723
  return;
630
724
  }
631
725
 
@@ -633,11 +727,27 @@ function Start(opt, cmd) {
633
727
  // before stdout emitted the expected readiness flags. Previously this
634
728
  // fell through silently and the setInterval timer ran the full 60-second
635
729
  // wait before reporting "Sorry my friend...". Now we clean up immediately.
636
- if (!isStarting && code !== 0) {
637
- clearInterval(timerId);
730
+ // #B851 — any exit before readiness ends the attempt with the bundle's own
731
+ // code (1 when it was 0, 128 + the signal number for a signal): an exit 0
732
+ // waited for the timeout too. A bind failure is named.
733
+ // was: if (!isStarting && code !== 0) {
734
+ // was: clearInterval(timerId);
735
+ // was: opt.notStarted.push(bundle + '@' + self.projectName);
736
+ // was: opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] crashed during startup (exit code ' + code + '). Check your logs.');
737
+ // was: end(opt, cmd, isBulkStart, bundleIndex);
738
+ // was: }
739
+ if (!isStarting && !settled) {
638
740
  opt.notStarted.push(bundle + '@' + self.projectName);
639
- opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] crashed during startup (exit code ' + code + '). Check your logs.');
640
- end(opt, cmd, isBulkStart, bundleIndex);
741
+ if (bindFailure) {
742
+ opt.client.write('\n' + startStatus.bindFailureMessage(bundle + '@' + self.projectName, bindFailure, isWin32()));
743
+ } else if (signal) {
744
+ opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] stopped before it was ready (signal ' + signal + '). Check your logs.');
745
+ } else if (code !== 0) {
746
+ opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] crashed during startup (exit code ' + code + '). Check your logs.');
747
+ } else {
748
+ opt.client.write(' [ ' + bundle + '@' + self.projectName + ' ] exited before it was ready (exit code 0). Check your logs.');
749
+ }
750
+ settle(startStatus.exitCodeBeforeReady(code, signal));
641
751
  }
642
752
 
643
753
  });
@@ -655,19 +765,71 @@ function Start(opt, cmd) {
655
765
 
656
766
 
657
767
 
768
+ /**
769
+ * #B851 / #B854 — the pid of the bundle when it already runs: its pid file names a running
770
+ * process titled `gina: <bundle>@<project>` (on Bun, one running the bundle's entry; where
771
+ * `ps` cannot tell, a live pid), read with `inc/start-status.js` `findRunningBundle()`.
772
+ * `null` when there is no such file or process. Never throws.
773
+ *
774
+ * @inner
775
+ * @private
776
+ * @param {string} bundle - Bundle name
777
+ * @param {?string} appPath - The bundle's entry (`index.js`), which Bun's `ps` shows
778
+ * @returns {?number} The running bundle's pid, or `null`
779
+ */
780
+ var findRunning = function(bundle, appPath) {
781
+ var content = null;
782
+ try {
783
+ content = fs.readFileSync(_(GINA_RUNDIR +'/'+ bundle +'@'+ self.projectName +'.pid', true)).toString();
784
+ } catch (pidErr) {
785
+ return null;
786
+ }
787
+ try {
788
+ return startStatus.findRunningBundle(content, bundle +'@'+ self.projectName, appPath || null, {
789
+ parsePid : psTitles.parsePid,
790
+ read : psTitles.readPidTitle,
791
+ alive : function(pid) {
792
+ try {
793
+ process.kill(pid, 0);
794
+ return true;
795
+ } catch (killErr) {
796
+ return !!(killErr && killErr.code === 'EPERM');
797
+ }
798
+ }
799
+ });
800
+ } catch (findErr) {
801
+ terminal.debug('[bundle:start] running check skipped: '+ findErr.message);
802
+ return null;
803
+ }
804
+ };
805
+
658
806
  /**
659
807
  * Advances to the next bundle in bulk-start mode, or emits 'end' on the client socket.
808
+ *
809
+ * #B851 — the outcome reaches the CLI: before the connection ends, the exit code is framed
810
+ * to the client (`inc/start-status.js` `writeExit()`, for a client `bin/cmd` marked): the
811
+ * attempt's own code in single mode, 1 when any bundle failed in bulk mode. The CLI
812
+ * exited 0 for every outcome.
813
+ *
660
814
  * @inner
661
815
  * @private
662
816
  * @param {object} opt
663
817
  * @param {object} cmd
664
818
  * @param {boolean} [isBulkStart]
665
819
  * @param {number} [i] - Current bundle index in bulk mode
666
- * @param {boolean} [error]
820
+ * @param {(boolean|number)} [error] - The attempt's exit code; `true` is 1 (a refusal), absent is 0
667
821
  */
668
822
  var end = function (opt, cmd, isBulkStart, i, error) {
669
823
  if ( typeof(opt.msg) != 'undefined' ) {
670
824
  opt.client.write('\n\r'+ opt.msg);
825
+ // #B851 — printed once: in bulk mode every later bundle's end() printed it again
826
+ delete opt.msg;
827
+ }
828
+
829
+ // #B851 — the attempt's exit code; the first failure's is kept for the command
830
+ var code = ( error === true ) ? 1 : ( ( typeof(error) == 'number' ) ? startStatus.normalizeCode(error) : 0 );
831
+ if ( code !== 0 && !opt.exitCode ) {
832
+ opt.exitCode = code;
671
833
  }
672
834
 
673
835
  isBulkStart = ( typeof(isBulkStart) == 'undefined' ) ? false : isBulkStart;
@@ -685,6 +847,8 @@ function Start(opt, cmd) {
685
847
  // process.exit(1);
686
848
  // }
687
849
 
850
+ // #B851 — bulk: 1 when any bundle failed
851
+ startStatus.writeExit(opt.client, opt.exitCode ? 1 : 0);
688
852
  if (!opt.client.destroyed)
689
853
  opt.client.emit('end');
690
854
  }
@@ -696,6 +860,8 @@ function Start(opt, cmd) {
696
860
  // process.exit(1);
697
861
  // }
698
862
 
863
+ // #B851 — the outcome, framed last
864
+ startStatus.writeExit(opt.client, code);
699
865
  if (!opt.client.destroyed)
700
866
  opt.client.emit('end');
701
867
  // Force exit in case process is stuck
@@ -24,13 +24,14 @@ var console = lib.logger;
24
24
  *
25
25
  * `swig:` compiled templates and `http2session:` entries are never touched.
26
26
  *
27
- * The fs reclaim targets `<projectPath>/cache` — the resolved default
28
- * `server.cache.path` (`env.json`: `"path": "${cachePath}"` →
29
- * `"${projectPath}/cache"`, which is exactly CmdHelper's `projectCachePath`). A
30
- * bundle that overrides `server.cache.path` to a custom absolute path is NOT
31
- * auto-discovered by the offline reclaim; its CURRENT entries are still flushed
32
- * in-heap by the POST (the endpoint's cleanup fns close over the real filename),
33
- * only its old-namespace on-disk orphans are left.
27
+ * The fs reclaim targets the bundle's `server.cache.path` — the root the render
28
+ * delegates write under — resolved OFFLINE for the project's default env through
29
+ * `RenderCache.resolveCacheRoot` (#B785): `settings.server.cache.<env>.json`, then
30
+ * `settings.json` → `server.cache`, then the project `env.json`, then the default
31
+ * `${cachePath}` (`<projectPath>/cache`, CmdHelper's `projectCachePath`, which also
32
+ * stands in when the bundle's config cannot be read). Until 0.7.4 the reclaim
33
+ * assumed the default root, so a bundle with a custom `server.cache.path` kept its
34
+ * old-namespace on-disk orphans.
34
35
  *
35
36
  * `--dry-run` previews without mutating: the fs pass reports what WOULD be
36
37
  * removed (via `clearFsBundle({ dryRun:true })`), and the in-heap pass does a
@@ -106,6 +107,36 @@ function Clear(opt, cmd) {
106
107
  });
107
108
  }
108
109
 
110
+ /**
111
+ * Resolves the bundle's cache root offline (#B785): the writer's
112
+ * `server.cache.path`, read from the bundle's settings files and the project
113
+ * `env.json` for the project's default env, through
114
+ * `RenderCache.resolveCacheRoot`. Any read failure falls back to the default
115
+ * root (`projectCachePath`) — the pre-0.7.4 behaviour.
116
+ *
117
+ * @inner
118
+ * @param {string} bundle
119
+ * @returns {string} the absolute cache root
120
+ */
121
+ var resolveBundleRoot = function(bundle) {
122
+ try {
123
+ var project = self.projects[self.projectName];
124
+ var env = project.def_env;
125
+ var entry = self.bundlesByProject[self.projectName][bundle];
126
+ var confDir = _(project.path + '/' + entry.src + '/config', true);
127
+ var readIf = function(file) { return fs.existsSync(file) ? requireJSON(file) : null; };
128
+ var envJson = readIf(_(project.path + '/env.json', true));
129
+ var root = RenderCache.resolveCacheRoot({
130
+ subFile : readIf(_(confDir + '/settings.server.cache.' + env + '.json', true)),
131
+ settings : readIf(_(confDir + '/settings.json', true)),
132
+ envBlock : ( envJson && envJson[bundle] ) ? envJson[bundle][env] : null
133
+ }, { projectPath: project.path, bundle: bundle });
134
+ return ( typeof(root) === 'string' && root ) ? root : self.projectCachePath;
135
+ } catch (e) {
136
+ return self.projectCachePath;
137
+ }
138
+ }
139
+
109
140
  /**
110
141
  * Runs the two passes for one bundle (offline fs reclaim, then the in-heap
111
142
  * flush / dry-run probe), records the result, then advances / reports.
@@ -124,7 +155,7 @@ function Clear(opt, cmd) {
124
155
  try {
125
156
  // new RenderCache() (no store/path) is safe for the offline fs path —
126
157
  // clearFsBundle uses only `fs` + the passed root/bundle.
127
- fsRemoved = new RenderCache().clearFsBundle(self.projectCachePath, bundle, { dryRun: self.dryRun });
158
+ fsRemoved = new RenderCache().clearFsBundle(resolveBundleRoot(bundle), bundle, { dryRun: self.dryRun });
128
159
  } catch (e) {
129
160
  // best-effort — a broken cache dir must not abort the whole run.
130
161
  }
@@ -59,7 +59,6 @@ Notes:
59
59
  that IS evicted still has its on-disk body removed with it. Use --event
60
60
  to invalidate ACROSS bundles — a controller's self.cache.invalidateByEvent()
61
61
  only reaches its own process.
62
- - The offline reclaim assumes the default cache root (<project_path>/cache).
63
- A bundle that overrides server.cache.path to a custom absolute path is
64
- flushed in-heap (via the running bundle) but its on-disk orphans are not
65
- auto-reclaimed.
62
+ - The offline reclaim targets the bundle's own server.cache.path, resolved
63
+ for the project's default env from settings.server.cache.<env>.json,
64
+ settings.json and the project env.json (default: <project_path>/cache).
@@ -22,6 +22,11 @@
22
22
  * `process.title` to `ps` (measured on Bun 1.2.21 under macOS and 1.4.2 under
23
23
  * Linux), so a framework running on Bun keeps the command line it was started
24
24
  * with, `<bun> …/bin/cli start …` (`DAEMON_COMMAND_RE`).
25
+ *
26
+ * `findRecordedDaemons()` finds a framework from its own `procs.json` record,
27
+ * checked with `readPidTitle()`: on Bun the title listing cannot see it, so a
28
+ * Bun framework whose pid file was gone read as not running in
29
+ * `framework:status`, and `gina stop` left it running (#B763).
25
30
  */
26
31
  var execFileSync = require('child_process').execFileSync;
27
32
 
@@ -183,11 +188,62 @@ function readPidTitle(pid) {
183
188
  return { title: command.split(/\s+/)[0] || '', command: command, zombie: zombie };
184
189
  }
185
190
 
191
+ /**
192
+ * Lists the framework daemons that `procs.json` records and that are still
193
+ * running (#B763): each entry whose title is a daemon title, whose pid is a
194
+ * pid, and whose process `ps` shows as that daemon, titled with the entry's
195
+ * title on Node, or running the framework's own start command on Bun, which
196
+ * does not show `process.title` to `ps` (`DAEMON_COMMAND_RE`). A pid `ps`
197
+ * cannot read, a zombie, and a pid another program now has are left out, so
198
+ * nothing is re-registered or signalled on a guess. On Node a pid another
199
+ * framework version now has is left out too; on Bun it is not:
200
+ * `DAEMON_COMMAND_RE` reads no version (a plain `gina start` passes none), so
201
+ * there the record's own title is trusted. A framework whose pid file was
202
+ * removed is still found from its own record: `framework:status` writes its
203
+ * pid file back, and `gina stop` stops it, where the `gina-v<version>` title
204
+ * cannot be seen.
205
+ *
206
+ * @param {?object} procs - The parsed `procs.json`: `{ "<title>": { pid, title, version, port } }`;
207
+ * an entry without a `title` is read under its key
208
+ * @param {function(number): (?object|undefined)} [read] - Replaces `readPidTitle()` (tests)
209
+ * @returns {Array<{pid: number, title: string}>} In the record's order
210
+ * @example
211
+ * findRecordedDaemons({ 'gina-v0.7.4': { pid: 22221, title: 'gina-v0.7.4' } });
212
+ * // [ { pid: 22221, title: 'gina-v0.7.4' } ] while that framework runs, on Node or on Bun
213
+ */
214
+ function findRecordedDaemons(procs, read) {
215
+ var readTitle = (typeof read === 'function') ? read : readPidTitle;
216
+ var found = [];
217
+ if (!procs || typeof procs !== 'object') {
218
+ return found;
219
+ }
220
+ Object.keys(procs).forEach(function (key) {
221
+ var entry = procs[key];
222
+ if (!entry || typeof entry !== 'object') {
223
+ return;
224
+ }
225
+ var title = (typeof entry.title === 'string') ? entry.title : key;
226
+ var pid = parsePid(entry.pid);
227
+ if (pid === null || !DAEMON_TITLE_RE.test(title)) {
228
+ return;
229
+ }
230
+ var seen = readTitle(pid);
231
+ if (!seen || seen.zombie) {
232
+ return;
233
+ }
234
+ if (seen.title === title || DAEMON_COMMAND_RE.test(seen.command || '')) {
235
+ found.push({ pid: pid, title: title });
236
+ }
237
+ });
238
+ return found;
239
+ }
240
+
186
241
  module.exports = {
187
- DAEMON_TITLE_RE : DAEMON_TITLE_RE,
188
- DAEMON_COMMAND_RE : DAEMON_COMMAND_RE,
189
- parsePid : parsePid,
190
- parseDaemonTitles : parseDaemonTitles,
191
- listOwnDaemons : listOwnDaemons,
192
- readPidTitle : readPidTitle
242
+ DAEMON_TITLE_RE : DAEMON_TITLE_RE,
243
+ DAEMON_COMMAND_RE : DAEMON_COMMAND_RE,
244
+ parsePid : parsePid,
245
+ parseDaemonTitles : parseDaemonTitles,
246
+ listOwnDaemons : listOwnDaemons,
247
+ readPidTitle : readPidTitle,
248
+ findRecordedDaemons : findRecordedDaemons
193
249
  };
@@ -19,6 +19,10 @@ var help = require(ginaPath + '/utils/helper');
19
19
 
20
20
 
21
21
  var aliases = require( getPath('gina').lib + '/cmd/aliases.json' );
22
+ // #B851 / #B855 — the framed exit code an online command's client gets (bundle:start, the one
23
+ // online command, runs inside the framework daemon; writeExit() writes only to a connection
24
+ // bin/cmd marked)
25
+ var startStatus = require('../bundle/inc/start-status');
22
26
  /**
23
27
  * Runs the framework initialisation/validation sequence before executing a command.
24
28
  * Validation checks (`self.check*`) are run in declaration order via the async `begin()` loop.
@@ -205,7 +209,7 @@ function Initialize(opt) {
205
209
  // Online runs inside the long-lived daemon serving every client, so
206
210
  // exiting here would drop the control plane. End this client instead.
207
211
  if ( opt.isOnlineCommand ) {
208
- if (opt.client) { opt.client.end(); }
212
+ if (opt.client) { startStatus.writeExit(opt.client, 1); opt.client.end(); }
209
213
  return;
210
214
  }
211
215
  process.exit(1);
@@ -222,6 +226,13 @@ function Initialize(opt) {
222
226
  if (opt.client) {
223
227
  opt.client.write('Gina has some troubles with this command: gina '+ opt.argv.slice(2).join(' ') +'\n' + err.stack);
224
228
  }
229
+ // #B855 — online, a throw from the handler ends this client with exit 1; process.exit
230
+ // here ended the framework daemon, so every later command found no framework.
231
+ if ( opt.isOnlineCommand && opt.client ) {
232
+ startStatus.writeExit(opt.client, 1);
233
+ opt.client.end();
234
+ return;
235
+ }
225
236
  process.exit(1);
226
237
  }
227
238
  }