gina 0.7.11 → 0.7.12

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 (639) hide show
  1. package/CHANGELOG.md +15 -4
  2. package/CONTRIBUTING.md +7 -0
  3. package/README.md +32 -59
  4. package/ROADMAP.md +1 -0
  5. package/framework/v0.7.12/VERSION +1 -0
  6. package/framework/{v0.7.11 → v0.7.12}/core/config.js +24 -1
  7. package/framework/v0.7.12/core/config.param-bindings.js +351 -0
  8. package/framework/{v0.7.11 → v0.7.12}/core/server.isaac.js +42 -3
  9. package/framework/{v0.7.11 → v0.7.12}/core/server.js +80 -3
  10. package/framework/{v0.7.11 → v0.7.12}/lib/ws-session/src/main.js +129 -10
  11. package/framework/{v0.7.11 → v0.7.12}/package.json +2 -2
  12. package/gna.js +4 -4
  13. package/llms.txt +6 -4
  14. package/package.json +4 -4
  15. package/types/index.d.ts +1 -1
  16. package/framework/v0.7.11/VERSION +0 -1
  17. package/framework/v0.7.11/core/config.param-bindings.js +0 -159
  18. /package/framework/{v0.7.11 → v0.7.12}/AUTHORS +0 -0
  19. /package/framework/{v0.7.11 → v0.7.12}/LICENSE +0 -0
  20. /package/framework/{v0.7.11 → v0.7.12}/core/asset/html/nolayout.html +0 -0
  21. /package/framework/{v0.7.11 → v0.7.12}/core/asset/html/static.html +0 -0
  22. /package/framework/{v0.7.11 → v0.7.12}/core/asset/img/android-chrome-192x192.png +0 -0
  23. /package/framework/{v0.7.11 → v0.7.12}/core/asset/img/android-chrome-512x512.png +0 -0
  24. /package/framework/{v0.7.11 → v0.7.12}/core/asset/img/apple-touch-icon.png +0 -0
  25. /package/framework/{v0.7.11 → v0.7.12}/core/asset/img/favicon-16x16.png +0 -0
  26. /package/framework/{v0.7.11 → v0.7.12}/core/asset/img/favicon-32x32.png +0 -0
  27. /package/framework/{v0.7.11 → v0.7.12}/core/asset/img/favicon.ico +0 -0
  28. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/README.md +0 -0
  29. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
  30. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
  31. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
  32. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
  33. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
  34. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
  35. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
  36. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
  37. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
  38. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
  39. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
  40. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
  41. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
  42. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
  43. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/js/gina.js +0 -0
  44. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -0
  45. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
  46. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
  47. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
  48. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
  49. /package/framework/{v0.7.11 → v0.7.12}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
  50. /package/framework/{v0.7.11 → v0.7.12}/core/config.requirements-anchor.js +0 -0
  51. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/ai/index.js +0 -0
  52. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/ai/lib/connector.js +0 -0
  53. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/couchbase/index.js +0 -0
  54. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/couchbase/lib/connector.js +0 -0
  55. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/couchbase/lib/connector.v3.js +0 -0
  56. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/couchbase/lib/connector.v4.js +0 -0
  57. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/couchbase/lib/n1ql.js +0 -0
  58. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/couchbase/lib/session-store.js +0 -0
  59. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  60. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
  61. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/couchbase/lib/storage-store.js +0 -0
  62. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/duckdb/index.js +0 -0
  63. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/duckdb/lib/connector.js +0 -0
  64. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/mongodb/index.js +0 -0
  65. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/mongodb/lib/connector.js +0 -0
  66. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/mongodb/lib/job-store.js +0 -0
  67. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
  68. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/mongodb/lib/session-store.js +0 -0
  69. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/mysql/index.js +0 -0
  70. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/mysql/lib/connector.js +0 -0
  71. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/param-redact.js +0 -0
  72. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/postgresql/index.js +0 -0
  73. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/postgresql/lib/connector.js +0 -0
  74. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/redis/index.js +0 -0
  75. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/redis/lib/connector.js +0 -0
  76. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/redis/lib/job-store.js +0 -0
  77. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/redis/lib/kv-store.js +0 -0
  78. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/redis/lib/render-cache-store.js +0 -0
  79. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/redis/lib/session-store.js +0 -0
  80. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/scylladb/index.js +0 -0
  81. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/scylladb/lib/connector.js +0 -0
  82. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/scylladb/lib/session-store.js +0 -0
  83. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/settle-once.js +0 -0
  84. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/sql-parser.js +0 -0
  85. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/sqlite/index.js +0 -0
  86. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/sqlite/lib/connector.js +0 -0
  87. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/sqlite/lib/job-store.js +0 -0
  88. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/sqlite/lib/kv-store.js +0 -0
  89. /package/framework/{v0.7.11 → v0.7.12}/core/connectors/sqlite/lib/session-store.js +0 -0
  90. /package/framework/{v0.7.11 → v0.7.12}/core/content.encoding +0 -0
  91. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.framework.js +0 -0
  92. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.js +0 -0
  93. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.render-json.js +0 -0
  94. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.render-nunjucks-async.js +0 -0
  95. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.render-nunjucks.js +0 -0
  96. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.render-stream.js +0 -0
  97. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.render-swig-async.js +0 -0
  98. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.render-swig.js +0 -0
  99. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.render-v1.js +0 -0
  100. /package/framework/{v0.7.11 → v0.7.12}/core/controller/controller.render-xml.js +0 -0
  101. /package/framework/{v0.7.11 → v0.7.12}/core/controller/index.js +0 -0
  102. /package/framework/{v0.7.11 → v0.7.12}/core/controller/inline-script.js +0 -0
  103. /package/framework/{v0.7.11 → v0.7.12}/core/controller/inspector-window-emit.js +0 -0
  104. /package/framework/{v0.7.11 → v0.7.12}/core/controller/layout-source.js +0 -0
  105. /package/framework/{v0.7.11 → v0.7.12}/core/controller/preload-hints.js +0 -0
  106. /package/framework/{v0.7.11 → v0.7.12}/core/controller/release-banner.js +0 -0
  107. /package/framework/{v0.7.11 → v0.7.12}/core/controller/render-data.js +0 -0
  108. /package/framework/{v0.7.11 → v0.7.12}/core/controller/render-session.js +0 -0
  109. /package/framework/{v0.7.11 → v0.7.12}/core/dev/index.js +0 -0
  110. /package/framework/{v0.7.11 → v0.7.12}/core/dev/lib/class.js +0 -0
  111. /package/framework/{v0.7.11 → v0.7.12}/core/dev/lib/factory.js +0 -0
  112. /package/framework/{v0.7.11 → v0.7.12}/core/dev/lib/tools.js +0 -0
  113. /package/framework/{v0.7.11 → v0.7.12}/core/gna.js +0 -0
  114. /package/framework/{v0.7.11 → v0.7.12}/core/locales/README.md +0 -0
  115. /package/framework/{v0.7.11 → v0.7.12}/core/locales/currency.json +0 -0
  116. /package/framework/{v0.7.11 → v0.7.12}/core/locales/dist/language/en.json +0 -0
  117. /package/framework/{v0.7.11 → v0.7.12}/core/locales/dist/language/fr.json +0 -0
  118. /package/framework/{v0.7.11 → v0.7.12}/core/locales/dist/region/en.json +0 -0
  119. /package/framework/{v0.7.11 → v0.7.12}/core/locales/dist/region/fr.json +0 -0
  120. /package/framework/{v0.7.11 → v0.7.12}/core/locales/index.js +0 -0
  121. /package/framework/{v0.7.11 → v0.7.12}/core/mime.types +0 -0
  122. /package/framework/{v0.7.11 → v0.7.12}/core/model/entity.js +0 -0
  123. /package/framework/{v0.7.11 → v0.7.12}/core/model/index.js +0 -0
  124. /package/framework/{v0.7.11 → v0.7.12}/core/model/template/entityFactory.js +0 -0
  125. /package/framework/{v0.7.11 → v0.7.12}/core/model/template/index.js +0 -0
  126. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/README.md +0 -0
  127. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/index.js +0 -0
  128. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/csrf/README.md +0 -0
  129. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/csrf/package.json +0 -0
  130. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/csrf/src/main.js +0 -0
  131. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/README.md +0 -0
  132. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/coep/README.md +0 -0
  133. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/coep/package.json +0 -0
  134. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
  135. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/coop/README.md +0 -0
  136. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/coop/package.json +0 -0
  137. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
  138. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/corp/README.md +0 -0
  139. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/corp/package.json +0 -0
  140. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
  141. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/csp/README.md +0 -0
  142. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/csp/package.json +0 -0
  143. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
  144. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
  145. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
  146. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
  147. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/hsts/README.md +0 -0
  148. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/hsts/package.json +0 -0
  149. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
  150. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
  151. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
  152. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
  153. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/package.json +0 -0
  154. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
  155. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
  156. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
  157. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/src/main.js +0 -0
  158. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
  159. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
  160. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
  161. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
  162. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
  163. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
  164. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
  165. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
  166. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
  167. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
  168. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
  169. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
  170. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
  171. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
  172. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
  173. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
  174. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
  175. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
  176. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/session/README.md +0 -0
  177. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/session/package.json +0 -0
  178. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/session/src/main.js +0 -0
  179. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/storage/README.md +0 -0
  180. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/storage/build.json +0 -0
  181. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/storage/package.json +0 -0
  182. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/storage/src/main.js +0 -0
  183. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/validator/README.md +0 -0
  184. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/validator/build.json +0 -0
  185. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/validator/package.json +0 -0
  186. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/validator/src/form-validator.js +0 -0
  187. /package/framework/{v0.7.11 → v0.7.12}/core/plugins/lib/validator/src/main.js +0 -0
  188. /package/framework/{v0.7.11 → v0.7.12}/core/router.js +0 -0
  189. /package/framework/{v0.7.11 → v0.7.12}/core/server.express.js +0 -0
  190. /package/framework/{v0.7.11 → v0.7.12}/core/server.isaac.early-answer.js +0 -0
  191. /package/framework/{v0.7.11 → v0.7.12}/core/server.isaac.rapid-reset.js +0 -0
  192. /package/framework/{v0.7.11 → v0.7.12}/core/server.route-candidates.js +0 -0
  193. /package/framework/{v0.7.11 → v0.7.12}/core/status.codes +0 -0
  194. /package/framework/{v0.7.11 → v0.7.12}/core/template/_gitignore +0 -0
  195. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/config/app.json +0 -0
  196. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/config/connectors.json +0 -0
  197. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/config/routing.json +0 -0
  198. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/config/settings.json +0 -0
  199. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
  200. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/config/templates.json +0 -0
  201. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/config/watchers.json +0 -0
  202. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  203. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  204. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
  205. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/index.js +0 -0
  206. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle/locales/en.json +0 -0
  207. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  208. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  209. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_public/css/home.css +0 -0
  210. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  211. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  212. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
  213. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  214. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
  215. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_public/readme.md +0 -0
  216. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_public/sw.js +0 -0
  217. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  218. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
  219. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
  220. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
  221. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
  222. /package/framework/{v0.7.11 → v0.7.12}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
  223. /package/framework/{v0.7.11 → v0.7.12}/core/template/command/gina.bat.tpl +0 -0
  224. /package/framework/{v0.7.11 → v0.7.12}/core/template/command/gina.tpl +0 -0
  225. /package/framework/{v0.7.11 → v0.7.12}/core/template/conf/env.json +0 -0
  226. /package/framework/{v0.7.11 → v0.7.12}/core/template/conf/manifest.json +0 -0
  227. /package/framework/{v0.7.11 → v0.7.12}/core/template/conf/package.json +0 -0
  228. /package/framework/{v0.7.11 → v0.7.12}/core/template/conf/settings.json +0 -0
  229. /package/framework/{v0.7.11 → v0.7.12}/core/template/conf/statics.json +0 -0
  230. /package/framework/{v0.7.11 → v0.7.12}/core/template/conf/templates.json +0 -0
  231. /package/framework/{v0.7.11 → v0.7.12}/core/template/error/client/json/401.json +0 -0
  232. /package/framework/{v0.7.11 → v0.7.12}/core/template/error/client/json/403.json +0 -0
  233. /package/framework/{v0.7.11 → v0.7.12}/core/template/error/client/json/404.json +0 -0
  234. /package/framework/{v0.7.11 → v0.7.12}/core/template/error/server/html/50x.html +0 -0
  235. /package/framework/{v0.7.11 → v0.7.12}/core/template/error/server/json/500.json +0 -0
  236. /package/framework/{v0.7.11 → v0.7.12}/core/template/error/server/json/503.json +0 -0
  237. /package/framework/{v0.7.11 → v0.7.12}/core/template/extensions/logger/config.json +0 -0
  238. /package/framework/{v0.7.11 → v0.7.12}/helpers/console.js +0 -0
  239. /package/framework/{v0.7.11 → v0.7.12}/helpers/context.js +0 -0
  240. /package/framework/{v0.7.11 → v0.7.12}/helpers/data/LICENSE +0 -0
  241. /package/framework/{v0.7.11 → v0.7.12}/helpers/data/README.md +0 -0
  242. /package/framework/{v0.7.11 → v0.7.12}/helpers/data/package.json +0 -0
  243. /package/framework/{v0.7.11 → v0.7.12}/helpers/data/src/main.js +0 -0
  244. /package/framework/{v0.7.11 → v0.7.12}/helpers/dateFormat.js +0 -0
  245. /package/framework/{v0.7.11 → v0.7.12}/helpers/index.js +0 -0
  246. /package/framework/{v0.7.11 → v0.7.12}/helpers/json/LICENSE +0 -0
  247. /package/framework/{v0.7.11 → v0.7.12}/helpers/json/README.md +0 -0
  248. /package/framework/{v0.7.11 → v0.7.12}/helpers/json/package.json +0 -0
  249. /package/framework/{v0.7.11 → v0.7.12}/helpers/json/src/main.js +0 -0
  250. /package/framework/{v0.7.11 → v0.7.12}/helpers/path.js +0 -0
  251. /package/framework/{v0.7.11 → v0.7.12}/helpers/plugins/README.md +0 -0
  252. /package/framework/{v0.7.11 → v0.7.12}/helpers/plugins/package.json +0 -0
  253. /package/framework/{v0.7.11 → v0.7.12}/helpers/plugins/src/api-error.js +0 -0
  254. /package/framework/{v0.7.11 → v0.7.12}/helpers/plugins/src/main.js +0 -0
  255. /package/framework/{v0.7.11 → v0.7.12}/helpers/prototypes.js +0 -0
  256. /package/framework/{v0.7.11 → v0.7.12}/helpers/task.js +0 -0
  257. /package/framework/{v0.7.11 → v0.7.12}/helpers/text.js +0 -0
  258. /package/framework/{v0.7.11 → v0.7.12}/lib/admin/package.json +0 -0
  259. /package/framework/{v0.7.11 → v0.7.12}/lib/admin/src/main.js +0 -0
  260. /package/framework/{v0.7.11 → v0.7.12}/lib/archiver/README.md +0 -0
  261. /package/framework/{v0.7.11 → v0.7.12}/lib/archiver/build.json +0 -0
  262. /package/framework/{v0.7.11 → v0.7.12}/lib/archiver/package.json +0 -0
  263. /package/framework/{v0.7.11 → v0.7.12}/lib/archiver/src/dep/jszip.min.js +0 -0
  264. /package/framework/{v0.7.11 → v0.7.12}/lib/archiver/src/main.js +0 -0
  265. /package/framework/{v0.7.11 → v0.7.12}/lib/async/package.json +0 -0
  266. /package/framework/{v0.7.11 → v0.7.12}/lib/async/src/main.js +0 -0
  267. /package/framework/{v0.7.11 → v0.7.12}/lib/audit/package.json +0 -0
  268. /package/framework/{v0.7.11 → v0.7.12}/lib/audit/src/main.js +0 -0
  269. /package/framework/{v0.7.11 → v0.7.12}/lib/audit-store.js +0 -0
  270. /package/framework/{v0.7.11 → v0.7.12}/lib/authn/package.json +0 -0
  271. /package/framework/{v0.7.11 → v0.7.12}/lib/authn/src/lockout.js +0 -0
  272. /package/framework/{v0.7.11 → v0.7.12}/lib/authn/src/main.js +0 -0
  273. /package/framework/{v0.7.11 → v0.7.12}/lib/authn/src/totp.js +0 -0
  274. /package/framework/{v0.7.11 → v0.7.12}/lib/authz-gate/package.json +0 -0
  275. /package/framework/{v0.7.11 → v0.7.12}/lib/authz-gate/src/main.js +0 -0
  276. /package/framework/{v0.7.11 → v0.7.12}/lib/cache/README.md +0 -0
  277. /package/framework/{v0.7.11 → v0.7.12}/lib/cache/build.json +0 -0
  278. /package/framework/{v0.7.11 → v0.7.12}/lib/cache/package.json +0 -0
  279. /package/framework/{v0.7.11 → v0.7.12}/lib/cache/src/main.js +0 -0
  280. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/aliases.json +0 -0
  281. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/audit/arguments.json +0 -0
  282. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/audit/help.txt +0 -0
  283. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/audit/verify.js +0 -0
  284. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/add.js +0 -0
  285. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/arguments.json +0 -0
  286. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/build.js +0 -0
  287. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/copy.js +0 -0
  288. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/cp.js +0 -0
  289. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/help.js +0 -0
  290. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/help.txt +0 -0
  291. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/inc/boot-lines.js +0 -0
  292. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
  293. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/inc/name.js +0 -0
  294. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/inc/start-status.js +0 -0
  295. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/list.js +0 -0
  296. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/man.js +0 -0
  297. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/mcp-start.js +0 -0
  298. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/mcp.js +0 -0
  299. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/oas.js +0 -0
  300. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/openapi.js +0 -0
  301. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/remove.js +0 -0
  302. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/rename.js +0 -0
  303. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/restart.js +0 -0
  304. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/rm.js +0 -0
  305. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/start.js +0 -0
  306. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/status.js +0 -0
  307. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/stop.js +0 -0
  308. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/bundle/types.js +0 -0
  309. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/cache/arguments.json +0 -0
  310. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/cache/clear.js +0 -0
  311. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/cache/help.txt +0 -0
  312. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/cache/stats.js +0 -0
  313. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/add.js +0 -0
  314. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/arguments.json +0 -0
  315. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/help.js +0 -0
  316. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/help.txt +0 -0
  317. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/infer.js +0 -0
  318. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/list.js +0 -0
  319. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/migrate.js +0 -0
  320. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/models.js +0 -0
  321. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/remove.js +0 -0
  322. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/rm.js +0 -0
  323. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/connector/test.js +0 -0
  324. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/container/arguments.json +0 -0
  325. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/container/help.js +0 -0
  326. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/container/help.txt +0 -0
  327. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/container/man.js +0 -0
  328. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/container/ps.js +0 -0
  329. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/container/stop.js +0 -0
  330. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/add.js +0 -0
  331. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/arguments.json +0 -0
  332. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/help.txt +0 -0
  333. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/inc/args.js +0 -0
  334. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/inc/namespace.js +0 -0
  335. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
  336. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/inc/reference-scan.js +0 -0
  337. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/inc/scaffold.js +0 -0
  338. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/remove.js +0 -0
  339. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/rename.js +0 -0
  340. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/controller/rm.js +0 -0
  341. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/add.js +0 -0
  342. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/get.js +0 -0
  343. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/help.js +0 -0
  344. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/help.txt +0 -0
  345. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/inc/name.js +0 -0
  346. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/link-dev.js +0 -0
  347. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/list.js +0 -0
  348. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/remove.js +0 -0
  349. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/rm.js +0 -0
  350. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/set.js +0 -0
  351. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/unset.js +0 -0
  352. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/env/use.js +0 -0
  353. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/add.js +0 -0
  354. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/arguments.json +0 -0
  355. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/build.js +0 -0
  356. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/dot.js +0 -0
  357. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/get.js +0 -0
  358. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/help.js +0 -0
  359. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/help.txt +0 -0
  360. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/inc/child-failure.js +0 -0
  361. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/inc/listen-error.js +0 -0
  362. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/inc/ps-titles.js +0 -0
  363. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/init.js +0 -0
  364. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/link-node-modules.js +0 -0
  365. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/link.js +0 -0
  366. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/list.js +0 -0
  367. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/man.js +0 -0
  368. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/msg.json +0 -0
  369. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/open.js +0 -0
  370. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/remove.js +0 -0
  371. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/reset.js +0 -0
  372. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/restart.js +0 -0
  373. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/set.js +0 -0
  374. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/start.js +0 -0
  375. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/status.js +0 -0
  376. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/stop.js +0 -0
  377. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/tail.js +0 -0
  378. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/update.js +0 -0
  379. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/framework/version.js +0 -0
  380. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/gina-dev.1.md +0 -0
  381. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/gina-framework.1.md +0 -0
  382. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/gina.1.md +0 -0
  383. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/helper.js +0 -0
  384. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/i18n/add.js +0 -0
  385. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/i18n/arguments.json +0 -0
  386. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/i18n/export.js +0 -0
  387. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/i18n/help.js +0 -0
  388. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/i18n/help.txt +0 -0
  389. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/i18n/import.js +0 -0
  390. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/i18n/scan.js +0 -0
  391. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/image/_host.js +0 -0
  392. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/image/arguments.json +0 -0
  393. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/image/build.js +0 -0
  394. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/image/help.js +0 -0
  395. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/image/help.txt +0 -0
  396. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/image/list.js +0 -0
  397. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/image/man.js +0 -0
  398. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/image/rm.js +0 -0
  399. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/image/run.js +0 -0
  400. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/index.js +0 -0
  401. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/inspector/help.js +0 -0
  402. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/inspector/help.txt +0 -0
  403. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/inspector/open.js +0 -0
  404. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/man-render.js +0 -0
  405. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/minion/arguments.json +0 -0
  406. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/minion/help.js +0 -0
  407. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/minion/help.txt +0 -0
  408. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/minion/kill.js +0 -0
  409. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/minion/list.js +0 -0
  410. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/msg.json +0 -0
  411. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/port/help.js +0 -0
  412. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/port/help.txt +0 -0
  413. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/port/inc/scan.js +0 -0
  414. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/port/list.js +0 -0
  415. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/port/reset.js +0 -0
  416. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/port/set.js +0 -0
  417. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/add.js +0 -0
  418. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/arguments.json +0 -0
  419. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/backup.js +0 -0
  420. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/build.js +0 -0
  421. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/help.js +0 -0
  422. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/help.txt +0 -0
  423. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/import.js +0 -0
  424. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/inc/name.js +0 -0
  425. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/list.js +0 -0
  426. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/man.js +0 -0
  427. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/move.js +0 -0
  428. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/remove.js +0 -0
  429. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/rename.js +0 -0
  430. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/restart.js +0 -0
  431. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/restore.js +0 -0
  432. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/rm.js +0 -0
  433. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/start.js +0 -0
  434. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/status.js +0 -0
  435. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/project/stop.js +0 -0
  436. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/protocol/arguments.json +0 -0
  437. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/protocol/help.js +0 -0
  438. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/protocol/help.txt +0 -0
  439. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/protocol/list.js +0 -0
  440. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/protocol/remove.js +0 -0
  441. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/protocol/set.js +0 -0
  442. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/add.js +0 -0
  443. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/help.js +0 -0
  444. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/help.txt +0 -0
  445. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/inc/name.js +0 -0
  446. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/link-local.js +0 -0
  447. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/link-production.js +0 -0
  448. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/list.js +0 -0
  449. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/remove.js +0 -0
  450. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/rm.js +0 -0
  451. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/scope/use.js +0 -0
  452. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/secrets/arguments.json +0 -0
  453. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/secrets/check.js +0 -0
  454. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/secrets/help.js +0 -0
  455. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/secrets/help.txt +0 -0
  456. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/secrets/scan.js +0 -0
  457. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/service/help.js +0 -0
  458. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/service/help.txt +0 -0
  459. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/service/list.js +0 -0
  460. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/service/man.js +0 -0
  461. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/service/start.js +0 -0
  462. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/storage/arguments.json +0 -0
  463. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/storage/gc.js +0 -0
  464. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/storage/help.txt +0 -0
  465. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/storage/stats.js +0 -0
  466. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/storage/verify.js +0 -0
  467. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd/view/add.js +0 -0
  468. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd-status-format/package.json +0 -0
  469. /package/framework/{v0.7.11 → v0.7.12}/lib/cmd-status-format/src/main.js +0 -0
  470. /package/framework/{v0.7.11 → v0.7.12}/lib/collection/README.md +0 -0
  471. /package/framework/{v0.7.11 → v0.7.12}/lib/collection/build.json +0 -0
  472. /package/framework/{v0.7.11 → v0.7.12}/lib/collection/package.json +0 -0
  473. /package/framework/{v0.7.11 → v0.7.12}/lib/collection/src/main.js +0 -0
  474. /package/framework/{v0.7.11 → v0.7.12}/lib/conf-view/package.json +0 -0
  475. /package/framework/{v0.7.11 → v0.7.12}/lib/conf-view/src/main.js +0 -0
  476. /package/framework/{v0.7.11 → v0.7.12}/lib/config.js +0 -0
  477. /package/framework/{v0.7.11 → v0.7.12}/lib/connector-config/package.json +0 -0
  478. /package/framework/{v0.7.11 → v0.7.12}/lib/connector-config/src/main.js +0 -0
  479. /package/framework/{v0.7.11 → v0.7.12}/lib/connector-error/package.json +0 -0
  480. /package/framework/{v0.7.11 → v0.7.12}/lib/connector-error/src/main.js +0 -0
  481. /package/framework/{v0.7.11 → v0.7.12}/lib/connector-registry/package.json +0 -0
  482. /package/framework/{v0.7.11 → v0.7.12}/lib/connector-registry/src/main.js +0 -0
  483. /package/framework/{v0.7.11 → v0.7.12}/lib/cron/README.md +0 -0
  484. /package/framework/{v0.7.11 → v0.7.12}/lib/cron/package.json +0 -0
  485. /package/framework/{v0.7.11 → v0.7.12}/lib/cron/src/main.js +0 -0
  486. /package/framework/{v0.7.11 → v0.7.12}/lib/domain/LICENSE +0 -0
  487. /package/framework/{v0.7.11 → v0.7.12}/lib/domain/README.md +0 -0
  488. /package/framework/{v0.7.11 → v0.7.12}/lib/domain/package.json +0 -0
  489. /package/framework/{v0.7.11 → v0.7.12}/lib/domain/src/main.js +0 -0
  490. /package/framework/{v0.7.11 → v0.7.12}/lib/dto/package.json +0 -0
  491. /package/framework/{v0.7.11 → v0.7.12}/lib/dto/src/main.js +0 -0
  492. /package/framework/{v0.7.11 → v0.7.12}/lib/dto-pipe/package.json +0 -0
  493. /package/framework/{v0.7.11 → v0.7.12}/lib/dto-pipe/src/main.js +0 -0
  494. /package/framework/{v0.7.11 → v0.7.12}/lib/dto-types/package.json +0 -0
  495. /package/framework/{v0.7.11 → v0.7.12}/lib/dto-types/src/main.js +0 -0
  496. /package/framework/{v0.7.11 → v0.7.12}/lib/duration/package.json +0 -0
  497. /package/framework/{v0.7.11 → v0.7.12}/lib/duration/src/main.js +0 -0
  498. /package/framework/{v0.7.11 → v0.7.12}/lib/error-ref/package.json +0 -0
  499. /package/framework/{v0.7.11 → v0.7.12}/lib/error-ref/src/main.js +0 -0
  500. /package/framework/{v0.7.11 → v0.7.12}/lib/generator/index.js +0 -0
  501. /package/framework/{v0.7.11 → v0.7.12}/lib/i18n/package.json +0 -0
  502. /package/framework/{v0.7.11 → v0.7.12}/lib/i18n/src/main.js +0 -0
  503. /package/framework/{v0.7.11 → v0.7.12}/lib/idempotency/package.json +0 -0
  504. /package/framework/{v0.7.11 → v0.7.12}/lib/idempotency/src/main.js +0 -0
  505. /package/framework/{v0.7.11 → v0.7.12}/lib/image-build/package.json +0 -0
  506. /package/framework/{v0.7.11 → v0.7.12}/lib/image-build/src/main.js +0 -0
  507. /package/framework/{v0.7.11 → v0.7.12}/lib/index.js +0 -0
  508. /package/framework/{v0.7.11 → v0.7.12}/lib/inherits/LICENSE +0 -0
  509. /package/framework/{v0.7.11 → v0.7.12}/lib/inherits/README.md +0 -0
  510. /package/framework/{v0.7.11 → v0.7.12}/lib/inherits/package.json +0 -0
  511. /package/framework/{v0.7.11 → v0.7.12}/lib/inherits/src/main.js +0 -0
  512. /package/framework/{v0.7.11 → v0.7.12}/lib/inspector-events/package.json +0 -0
  513. /package/framework/{v0.7.11 → v0.7.12}/lib/inspector-events/src/main.js +0 -0
  514. /package/framework/{v0.7.11 → v0.7.12}/lib/inspector-redact/package.json +0 -0
  515. /package/framework/{v0.7.11 → v0.7.12}/lib/inspector-redact/src/main.js +0 -0
  516. /package/framework/{v0.7.11 → v0.7.12}/lib/instrument/package.json +0 -0
  517. /package/framework/{v0.7.11 → v0.7.12}/lib/instrument/src/main.js +0 -0
  518. /package/framework/{v0.7.11 → v0.7.12}/lib/job/package.json +0 -0
  519. /package/framework/{v0.7.11 → v0.7.12}/lib/job/src/main.js +0 -0
  520. /package/framework/{v0.7.11 → v0.7.12}/lib/job-store.js +0 -0
  521. /package/framework/{v0.7.11 → v0.7.12}/lib/json-config-header/package.json +0 -0
  522. /package/framework/{v0.7.11 → v0.7.12}/lib/json-config-header/src/main.js +0 -0
  523. /package/framework/{v0.7.11 → v0.7.12}/lib/kv/package.json +0 -0
  524. /package/framework/{v0.7.11 → v0.7.12}/lib/kv/src/main.js +0 -0
  525. /package/framework/{v0.7.11 → v0.7.12}/lib/kv-store.js +0 -0
  526. /package/framework/{v0.7.11 → v0.7.12}/lib/lane/package.json +0 -0
  527. /package/framework/{v0.7.11 → v0.7.12}/lib/lane/src/main.js +0 -0
  528. /package/framework/{v0.7.11 → v0.7.12}/lib/loading-state/package.json +0 -0
  529. /package/framework/{v0.7.11 → v0.7.12}/lib/loading-state/src/main.js +0 -0
  530. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/README.md +0 -0
  531. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/package.json +0 -0
  532. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/src/containers/default/index.js +0 -0
  533. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/src/containers/file/index.js +0 -0
  534. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/src/containers/mq/index.js +0 -0
  535. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/src/containers/mq/listener.js +0 -0
  536. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/src/containers/mq/speaker.js +0 -0
  537. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/src/helper.js +0 -0
  538. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/src/main.js +0 -0
  539. /package/framework/{v0.7.11 → v0.7.12}/lib/logger/src/redact.js +0 -0
  540. /package/framework/{v0.7.11 → v0.7.12}/lib/maintenance/package.json +0 -0
  541. /package/framework/{v0.7.11 → v0.7.12}/lib/maintenance/src/main.js +0 -0
  542. /package/framework/{v0.7.11 → v0.7.12}/lib/math/index.js +0 -0
  543. /package/framework/{v0.7.11 → v0.7.12}/lib/mcp-dispatch/package.json +0 -0
  544. /package/framework/{v0.7.11 → v0.7.12}/lib/mcp-dispatch/src/main.js +0 -0
  545. /package/framework/{v0.7.11 → v0.7.12}/lib/mcp-http/package.json +0 -0
  546. /package/framework/{v0.7.11 → v0.7.12}/lib/mcp-http/src/main.js +0 -0
  547. /package/framework/{v0.7.11 → v0.7.12}/lib/mcp-server/package.json +0 -0
  548. /package/framework/{v0.7.11 → v0.7.12}/lib/mcp-server/src/main.js +0 -0
  549. /package/framework/{v0.7.11 → v0.7.12}/lib/merge/README.md +0 -0
  550. /package/framework/{v0.7.11 → v0.7.12}/lib/merge/package.json +0 -0
  551. /package/framework/{v0.7.11 → v0.7.12}/lib/merge/src/main.js +0 -0
  552. /package/framework/{v0.7.11 → v0.7.12}/lib/message-validator/package.json +0 -0
  553. /package/framework/{v0.7.11 → v0.7.12}/lib/message-validator/src/main.js +0 -0
  554. /package/framework/{v0.7.11 → v0.7.12}/lib/metrics/package.json +0 -0
  555. /package/framework/{v0.7.11 → v0.7.12}/lib/metrics/src/main.js +0 -0
  556. /package/framework/{v0.7.11 → v0.7.12}/lib/model.js +0 -0
  557. /package/framework/{v0.7.11 → v0.7.12}/lib/money/package.json +0 -0
  558. /package/framework/{v0.7.11 → v0.7.12}/lib/money/src/main.js +0 -0
  559. /package/framework/{v0.7.11 → v0.7.12}/lib/multipart/package.json +0 -0
  560. /package/framework/{v0.7.11 → v0.7.12}/lib/multipart/src/main.js +0 -0
  561. /package/framework/{v0.7.11 → v0.7.12}/lib/net-locality/package.json +0 -0
  562. /package/framework/{v0.7.11 → v0.7.12}/lib/net-locality/src/main.js +0 -0
  563. /package/framework/{v0.7.11 → v0.7.12}/lib/nunjucks-filters/README.md +0 -0
  564. /package/framework/{v0.7.11 → v0.7.12}/lib/nunjucks-filters/package.json +0 -0
  565. /package/framework/{v0.7.11 → v0.7.12}/lib/nunjucks-filters/src/main.js +0 -0
  566. /package/framework/{v0.7.11 → v0.7.12}/lib/nunjucks-resolver/package.json +0 -0
  567. /package/framework/{v0.7.11 → v0.7.12}/lib/nunjucks-resolver/src/main.js +0 -0
  568. /package/framework/{v0.7.11 → v0.7.12}/lib/priority/package.json +0 -0
  569. /package/framework/{v0.7.11 → v0.7.12}/lib/priority/src/main.js +0 -0
  570. /package/framework/{v0.7.11 → v0.7.12}/lib/proc.js +0 -0
  571. /package/framework/{v0.7.11 → v0.7.12}/lib/push/package.json +0 -0
  572. /package/framework/{v0.7.11 → v0.7.12}/lib/push/src/main.js +0 -0
  573. /package/framework/{v0.7.11 → v0.7.12}/lib/rate-limit/package.json +0 -0
  574. /package/framework/{v0.7.11 → v0.7.12}/lib/rate-limit/src/main.js +0 -0
  575. /package/framework/{v0.7.11 → v0.7.12}/lib/release-watch/package.json +0 -0
  576. /package/framework/{v0.7.11 → v0.7.12}/lib/release-watch/src/main.js +0 -0
  577. /package/framework/{v0.7.11 → v0.7.12}/lib/render-cache/package.json +0 -0
  578. /package/framework/{v0.7.11 → v0.7.12}/lib/render-cache/src/main.js +0 -0
  579. /package/framework/{v0.7.11 → v0.7.12}/lib/render-cache-store.js +0 -0
  580. /package/framework/{v0.7.11 → v0.7.12}/lib/routing/README.md +0 -0
  581. /package/framework/{v0.7.11 → v0.7.12}/lib/routing/build.json +0 -0
  582. /package/framework/{v0.7.11 → v0.7.12}/lib/routing/package.json +0 -0
  583. /package/framework/{v0.7.11 → v0.7.12}/lib/routing/src/main.js +0 -0
  584. /package/framework/{v0.7.11 → v0.7.12}/lib/routing-introspect/package.json +0 -0
  585. /package/framework/{v0.7.11 → v0.7.12}/lib/routing-introspect/src/main.js +0 -0
  586. /package/framework/{v0.7.11 → v0.7.12}/lib/secrets/package.json +0 -0
  587. /package/framework/{v0.7.11 → v0.7.12}/lib/secrets/src/backends/env.js +0 -0
  588. /package/framework/{v0.7.11 → v0.7.12}/lib/secrets/src/backends/exec.js +0 -0
  589. /package/framework/{v0.7.11 → v0.7.12}/lib/secrets/src/backends/file.js +0 -0
  590. /package/framework/{v0.7.11 → v0.7.12}/lib/secrets/src/declaration.js +0 -0
  591. /package/framework/{v0.7.11 → v0.7.12}/lib/secrets/src/env-file.js +0 -0
  592. /package/framework/{v0.7.11 → v0.7.12}/lib/secrets/src/main.js +0 -0
  593. /package/framework/{v0.7.11 → v0.7.12}/lib/secrets/src/sources.js +0 -0
  594. /package/framework/{v0.7.11 → v0.7.12}/lib/security-headers-emitter/package.json +0 -0
  595. /package/framework/{v0.7.11 → v0.7.12}/lib/security-headers-emitter/src/main.js +0 -0
  596. /package/framework/{v0.7.11 → v0.7.12}/lib/session-lifetime/package.json +0 -0
  597. /package/framework/{v0.7.11 → v0.7.12}/lib/session-lifetime/src/main.js +0 -0
  598. /package/framework/{v0.7.11 → v0.7.12}/lib/session-store.js +0 -0
  599. /package/framework/{v0.7.11 → v0.7.12}/lib/shell.js +0 -0
  600. /package/framework/{v0.7.11 → v0.7.12}/lib/sqlite-driver.js +0 -0
  601. /package/framework/{v0.7.11 → v0.7.12}/lib/sri/package.json +0 -0
  602. /package/framework/{v0.7.11 → v0.7.12}/lib/sri/src/main.js +0 -0
  603. /package/framework/{v0.7.11 → v0.7.12}/lib/stall-watchdog/package.json +0 -0
  604. /package/framework/{v0.7.11 → v0.7.12}/lib/stall-watchdog/src/detector.js +0 -0
  605. /package/framework/{v0.7.11 → v0.7.12}/lib/stall-watchdog/src/frames.js +0 -0
  606. /package/framework/{v0.7.11 → v0.7.12}/lib/stall-watchdog/src/main.js +0 -0
  607. /package/framework/{v0.7.11 → v0.7.12}/lib/stall-watchdog/src/worker.js +0 -0
  608. /package/framework/{v0.7.11 → v0.7.12}/lib/state.js +0 -0
  609. /package/framework/{v0.7.11 → v0.7.12}/lib/storage/package.json +0 -0
  610. /package/framework/{v0.7.11 → v0.7.12}/lib/storage/src/local-cas.js +0 -0
  611. /package/framework/{v0.7.11 → v0.7.12}/lib/storage/src/local-stream.js +0 -0
  612. /package/framework/{v0.7.11 → v0.7.12}/lib/storage/src/local.js +0 -0
  613. /package/framework/{v0.7.11 → v0.7.12}/lib/storage/src/main.js +0 -0
  614. /package/framework/{v0.7.11 → v0.7.12}/lib/storage/src/meta-store.js +0 -0
  615. /package/framework/{v0.7.11 → v0.7.12}/lib/storage/src/s3.js +0 -0
  616. /package/framework/{v0.7.11 → v0.7.12}/lib/storage/src/util.js +0 -0
  617. /package/framework/{v0.7.11 → v0.7.12}/lib/storage-store.js +0 -0
  618. /package/framework/{v0.7.11 → v0.7.12}/lib/swig-filters/README.md +0 -0
  619. /package/framework/{v0.7.11 → v0.7.12}/lib/swig-filters/package.json +0 -0
  620. /package/framework/{v0.7.11 → v0.7.12}/lib/swig-filters/src/main.js +0 -0
  621. /package/framework/{v0.7.11 → v0.7.12}/lib/swig-resolver/package.json +0 -0
  622. /package/framework/{v0.7.11 → v0.7.12}/lib/swig-resolver/src/main.js +0 -0
  623. /package/framework/{v0.7.11 → v0.7.12}/lib/template-loaders/package.json +0 -0
  624. /package/framework/{v0.7.11 → v0.7.12}/lib/template-loaders/src/loaders/http.js +0 -0
  625. /package/framework/{v0.7.11 → v0.7.12}/lib/template-loaders/src/loaders/memory.js +0 -0
  626. /package/framework/{v0.7.11 → v0.7.12}/lib/template-loaders/src/main.js +0 -0
  627. /package/framework/{v0.7.11 → v0.7.12}/lib/url/README.md +0 -0
  628. /package/framework/{v0.7.11 → v0.7.12}/lib/url/index.js +0 -0
  629. /package/framework/{v0.7.11 → v0.7.12}/lib/url/routing.json +0 -0
  630. /package/framework/{v0.7.11 → v0.7.12}/lib/uuid/package.json +0 -0
  631. /package/framework/{v0.7.11 → v0.7.12}/lib/uuid/src/main.js +0 -0
  632. /package/framework/{v0.7.11 → v0.7.12}/lib/validator.js +0 -0
  633. /package/framework/{v0.7.11 → v0.7.12}/lib/watcher/package.json +0 -0
  634. /package/framework/{v0.7.11 → v0.7.12}/lib/watcher/src/main.js +0 -0
  635. /package/framework/{v0.7.11 → v0.7.12}/lib/ws-framing/package.json +0 -0
  636. /package/framework/{v0.7.11 → v0.7.12}/lib/ws-framing/src/main.js +0 -0
  637. /package/framework/{v0.7.11 → v0.7.12}/lib/ws-query/package.json +0 -0
  638. /package/framework/{v0.7.11 → v0.7.12}/lib/ws-query/src/main.js +0 -0
  639. /package/framework/{v0.7.11 → v0.7.12}/lib/ws-session/package.json +0 -0
package/llms.txt CHANGED
@@ -56,7 +56,7 @@ Previously vendored at `core/deps/swig-1.4.2/` — removed in the migration to t
56
56
 
57
57
  Since 0.7.9 gina requires `^2.12.1` (#B1088; 0.7.8 required `^2.11.0` (#B1034, #B1072), 0.7.7 `^2.9.11`, 0.7.6 `^2.9.6`). On the default (sync) render path an `{% import %}` keeps what the template rendered before it: up to 2.9.3 the compiled tag re-declared the output variable and dropped that output (the text above it, the layout before a block that holds one, every item of a `for` loop that holds one, a macro's output before it; an import at the very top of a template was unaffected), so a template whose import follows a comment and blank lines now starts with those blank lines. On the async loader path (`settings.template.swig.loader`) an `{% include %}` or `{% import %}` inside a `for` loop or a `filter` tag now renders (up to 2.9.3 the template failed to compile, as did one with an include, import or block anywhere in a macro body); calling a macro whose body holds an include, import or block throws an error that names the macro and its template, and a template that only defines it renders. Pinned by `test/lib/swig-import-output-b978.test.js`, through both copies gina resolves (`GINA_B978_SWIG_FROM=<dir>` points it at another copy). Since swig 2.9.7, which `^2.9.6` resolves, an import made inside an imported file is no longer reachable through the importer's alias on the sync path either: with `{% import "buttons.html" as buttons %}` and `buttons.html` importing `icons.html` as `icons`, `{{ buttons.icons.disk() }}` renders nothing on both paths, while a macro of `buttons.html` that calls `icons.disk()` still renders it. Since swig 2.9.8, which `^2.9.6` also resolves, code that comes into an imported macro from the importing side on the async loader path (a macro passed as an argument, a macro of the importing template called back by name) sees the imported template's names only when that template's macros use them, and reads its own template's names for the others, as the sync path always did (the swig loaders guide lists the exceptions); the sync path is unchanged. Since swig 2.9.9, which `^2.9.6` also resolves, native swig reads `and`, `or`, `not`, `in` and `not in` as operators when `(` follows with no space, as it already did before a space, on both paths: `{% if a and(b) %}` now tests both values (2.9.8 read `a and(b)` as `a`), so a function from the locals named `and`, `or` or `not` can no longer be called by that name, and a `{% macro %}` so named fails to compile. Since swig 2.9.10, which `^2.9.6` also resolves, a subscript or member of a missing value renders an empty string on both paths, as a missing variable already did: `{{ arr[0] }}` or `{{ obj['k'] }}` over a missing item prints nothing (2.9.9 printed « undefined », or « null » for a null item), `{{ arr[0].x }}` and `{{ arr[0]|upper }}` no longer throw, and a function from the locals that returns nothing renders empty (`{{ fn() }}` printed « undefined »); on 2.9.10 a tag argument that filters a missing subscript (`{% set y = arr[0]|upper %}`) still throws. Since swig 2.9.11, which gina requires from 0.7.7 (#B1022), native swig applies a filter in a `set`, `if`, `elseif`, `for`, `include` or `filter` tag argument to its own operand, as in an output: `{% set y = arr[0]|upper %}` over an empty array no longer throws, shapes such as `{% for c in (x)|reverse %}` now compile, and a filter after a function or method call with an expression before it applies to that call only, in a `set`, `if`, `elseif` or `for` argument alike (up to 2.9.10 it applied to the whole expression before it: `{% set y = a + f(x)|upper %}` with `a = "x"`, `x = "ab"` gives `xAB`, where it gave `XAB`; `{% if z and f(x)|upper %}` with `z = 0` is now false); a filter after a literal in an output that holds an operator or a ternary applies to the literal (`{{ 3|default(1) + 1 }}` gives 4, 2.9.10 gave 3); an output whose variable is followed by a filter renders an empty string when the last filter returns undefined or null (`{{ items|first }}` over `[]`, a custom filter that returns nothing; 2.9.10 printed « undefined » or « null »); and inside an `{% autoescape true %}` region a missing subscript or member, or a call that returns undefined, renders an empty string (gina's `settings.swig.autoescape` is a boolean, which already did). Since swig 2.9.12, which gina requires from 0.7.8 (#B1034), blocks nested in blocks follow one chain of definitions per block name: a block nested in any block of an extending template defines its name even when the root has no block for the enclosing one (`{% block zz %}{% block b %}N{% endblock %}{% endblock %}` over a parent's `<{% block b %}P{% endblock %}>` renders `<N>`, 2.9.11 rendered `<P>`), `{% parent %}` in a block nested in an override renders the next definition of its name (`<YC>` becomes `<YCI>`), and on the sync path so does `{% parent %}` in an override of a nested block, as the async path already did (`O[C]` becomes `O[CI]`); a block that renders itself through a nested block or `{% parent %}` fails with an error naming the block (2.9.11 overflowed the stack on the sync path). Since swig 2.9.13, also required from 0.7.8: `date` of a missing, null, empty or unparseable value renders an empty string (2.9.11 printed `NaN/NaN/NaN`); a filter or call result that is undefined or null reads as an empty string at a `+` or unary operand, in outputs and `set` arguments alike (`{{ "a" + f() }}` renders `a`, `{{ 1 + f() }}` 1 and `{{ -f() }}` 0, where 2.9.11 printed `aundefined`, NaN and NaN); a filter after a filter or a call that found nothing renders an empty string (`{{ items|first|lower }}` over `[]` threw, `{{ f()|upper }}` with a null result printed `[object Object]`); `first`, `last` and `replace` give an empty string for an undefined or null input, and `length` gives 0 (they threw). The engines gina builds pass `cache: false`, so the template cache that swig 2.9.13 added to its async loader path does not engage: a layout and an include load on every render. Swig 2.10.0's notes change only the swig-twig, swig-jinja2 and swig-django frontends; native swig already rejects an unknown filter name at compile time (`Invalid filter "x" on line 1.` on 2.9.11 and 2.10.0). Swig 2.11.0's notes change only swig-jinja2 and swig-django, whose `==`, `!=` and `in` now compare with Python's equality (swig-jinja2 also gains Jinja2's comparison tests, `x is eq 1`); native swig's own lib files differ from 2.10.0 only in their version stamps, and its compiled code and output for `==`, `!=` and `in` are unchanged.
58
58
 
59
- Swig 2.9.5 bounds the async render path and keeps a cached layout unchanged (advisories GHSA-86pr-x856-xrq5 and GHSA-g628-5x3r-g298). On the async loader path a template that includes, imports or extends itself, directly or through another template, now fails the render once more than 1,000 templates are nested (« Template "<name>" is nested more than 1000 levels deep: a template probably includes, imports or extends itself. »), and an `extends` cycle fails at once (« Illegal circular extends of "<name>" », the sync path's error); up to 2.9.4 it loaded templates until the heap ran out and the process aborted. Up to 2.9.4, with swig's memory compile cache, the first page that overrode a block nested inside a tag of a cached layout put its override into that layout, so other pages extending it showed that block. Gina's render paths never reach that: the sync path renders through the per-bundle engine `getDefaultSwigEngine` builds with `cache: false`, and the async delegate builds its engine with `cache: false`; an application that compiles with swig itself and `cache: 'memory'` did. Pinned by `test/lib/swig-nesting-cache-b983.test.js`, through both copies gina resolves (`GINA_B983_SWIG_FROM=<dir>` points it at another copy). Swig 2.9.6 renders on a copy of the locals it is given (advisory GHSA-25w8-77gg-4ccw): up to 2.9.5 a name a template set (`{% set %}`, a macro, an import, a loop variable) landed in the locals object passed to the render, so a later render given the same object read it, and with swig's memory cache a compile given locals in its options kept them for later compiles of the same file. gina's per-render copy (`renderData.copyForRender`, #B988) keeps a plain object an action passes unwritten on every swig version and returns a class instance as is, which 2.9.6's copy covers (its prototype methods and getters still resolve); gina compiles with `cache: false`, so the cached case is not reached. Also new in 2.9.6: a top-level property of the locals that is not enumerable is no longer seen, a top-level getter is read once per render, frozen locals take a set, and on the async path `{% parent %}` renders, a macro holding `{% parent %}` throws, and an imported template's sets stay out of the importer. Unchanged: an include's set reaches the page, a child template's top-level set reaches its layout, and a dotted set (`{% set a.b = x %}`) still writes into the nested object it names. Pinned by `test/lib/swig-locals-copy-b997.test.js`, through both copies (`GINA_B997_SWIG_FROM=<dir>` points it at another copy). Swig 2.12.1 keeps a key from the template data that names `__proto__`, `constructor` or `prototype`, or a list holding one, off the prototype chain (advisory GHSA-8mf3-p375-389g): up to 2.12.0 such a key reached it in a subscript (`{{ foo[k] }}` printed the Object constructor), in a call on one (`{{ foo[a][b]("return 7")() }}` with a and b set to `constructor` ran text from the data as JavaScript) and through a native `{% set %}` bracket target (`{% set obj[k].x = 1 %}` put a property on `Object.prototype` for the whole process). 2.12.1 reads such a key as missing, a native set target given one throws « Unsafe assignment to "__proto__" via bracket notation is not allowed (prototype-chain guard) » when the template runs, and a prototype-chain name written as a variable inside a set target's brackets fails at compile. A set target keyed by a loop index compiles to a runtime key check whose output is unchanged. gina compiles each template when it renders it and stores no compiled output (its layout cache holds template source), so a restart picks the fix up; output precompiled by 2.12.0 or earlier keeps the old behaviour until it is recompiled. Pinned by `test/lib/swig-prototype-keys-b1088.test.js`, through both copies (`GINA_B1088_SWIG_FROM=<dir>` points it at another copy). Since #B1117 gina's own lockfiles lock swig 2.12.2 (the range stays `^2.12.1`, which a fresh install already resolves to 2.12.2), whose subscripts and native `in` no longer see, on the default (sync) render path, what an object only inherits from `Object.prototype`: `{{ foo[k] }}` with `k` set to `__defineGetter__` and `{{ foo["hasOwnProperty"]("b") }}` print nothing (2.12.1 printed the inherited function and `true`; the dotted `{{ foo.hasOwnProperty("b") }}` still prints `true`), and `{% if k in obj %}` over `{ b: 1 }` is false when `k` is `constructor`, `toString`, `__proto__` or `hasOwnProperty` (true for `b`), while a `{% for k, v in m %}` over data holding an own `hasOwnProperty` key lists it (2.12.1 threw « obj.hasOwnProperty is not a function »), `{% set o = {"__proto__": {"y": 3}, "a": 2} %}` keeps `"__proto__"` as an own key, so `{{ o.y }}` prints nothing (2.12.1 printed 3), and `{% block __proto__ %}` is refused with « Unsafe block name "__proto__" is not allowed (prototype-chain guard) ». Since #B1136 they lock swig 2.12.3 (the range stays `^2.12.1`), a fix release with no advisory whose native changes reach only these shapes: `{% autoescape %}` with no argument fails at compile with « Expected true, false, "html" or "js" in autoescape tag on line N. » (2.12.2 turned escaping off) and with a string other than `"html"` or `"js"` with « Unexpected token » (2.12.2 HTML-escaped), also in a part of a template that never renders; the end of a nested autoescape region restores the enclosing region, not the template default; an `autoescape` option set to `undefined` reads as `true` (gina passes only a boolean); text ending with `#}`, and an unclosed `{#`, render as text (2.12.2 rendered nothing); a second `{% else %}`, or an `{% elseif %}` or `{% elif %}` after it, fails at compile with « Multiple "else" branches in "if" tag on line N. » (2.12.2 threw « Unexpected token 'else' »); `{% for x in arr[0] %}` compiles (`{% for i in 1..3 %}` still throws « Unexpected number »); and `groupBy` leaves out a null or undefined item (2.12.2 threw a TypeError). Output precompiled by 2.12.2 keeps the old autoescape and comment behaviour until it is recompiled; gina compiles at render time, so a restart picks the change up. Since #B1138 they lock swig 2.12.4 (the range stays `^2.12.1`), a fix release with no advisory that changes how a compiled template reads a name: a reserved word (`{{ class }}`) renders its context value; a name an object gets only from `Object.prototype` reads as missing, bare, dotted or called (`{{ o.toString() }}` and `{{ o.hasOwnProperty("a") }}` on a plain object render ""), and in a gina process that includes gina's own `count` and `functionCount` helpers, so `{{ r.count() }}` renders "" and `{% if r.count %}` is false unless `r` holds its own `count` key (a query row's `count` column reads as before); a context key named like a JavaScript global (`JSON`, `Math`, `encodeURIComponent`) that holds null or undefined now hides that global; a name the compiled code uses (`_output`, `_ext`, `__k`) reads only the context, so `{{ _ext.name }}` renders "" (a custom tag's compiled code still reads `_ext`) and `{{ __k }}` in a one-name loop no longer gives the index (`loop.key` does). gina compiles at render time, so a restart picks the change up.
59
+ Swig 2.9.5 bounds the async render path and keeps a cached layout unchanged (advisories GHSA-86pr-x856-xrq5 and GHSA-g628-5x3r-g298). On the async loader path a template that includes, imports or extends itself, directly or through another template, now fails the render once more than 1,000 templates are nested (« Template "<name>" is nested more than 1000 levels deep: a template probably includes, imports or extends itself. »), and an `extends` cycle fails at once (« Illegal circular extends of "<name>" », the sync path's error); up to 2.9.4 it loaded templates until the heap ran out and the process aborted. Up to 2.9.4, with swig's memory compile cache, the first page that overrode a block nested inside a tag of a cached layout put its override into that layout, so other pages extending it showed that block. Gina's render paths never reach that: the sync path renders through the per-bundle engine `getDefaultSwigEngine` builds with `cache: false`, and the async delegate builds its engine with `cache: false`; an application that compiles with swig itself and `cache: 'memory'` did. Pinned by `test/lib/swig-nesting-cache-b983.test.js`, through both copies gina resolves (`GINA_B983_SWIG_FROM=<dir>` points it at another copy). Swig 2.9.6 renders on a copy of the locals it is given (advisory GHSA-25w8-77gg-4ccw): up to 2.9.5 a name a template set (`{% set %}`, a macro, an import, a loop variable) landed in the locals object passed to the render, so a later render given the same object read it, and with swig's memory cache a compile given locals in its options kept them for later compiles of the same file. gina's per-render copy (`renderData.copyForRender`, #B988) keeps a plain object an action passes unwritten on every swig version and returns a class instance as is, which 2.9.6's copy covers (its prototype methods and getters still resolve); gina compiles with `cache: false`, so the cached case is not reached. Also new in 2.9.6: a top-level property of the locals that is not enumerable is no longer seen, a top-level getter is read once per render, frozen locals take a set, and on the async path `{% parent %}` renders, a macro holding `{% parent %}` throws, and an imported template's sets stay out of the importer. Unchanged: an include's set reaches the page, a child template's top-level set reaches its layout, and a dotted set (`{% set a.b = x %}`) still writes into the nested object it names. Pinned by `test/lib/swig-locals-copy-b997.test.js`, through both copies (`GINA_B997_SWIG_FROM=<dir>` points it at another copy). Swig 2.12.1 keeps a key from the template data that names `__proto__`, `constructor` or `prototype`, or a list holding one, off the prototype chain (advisory GHSA-8mf3-p375-389g): up to 2.12.0 such a key reached it in a subscript (`{{ foo[k] }}` printed the Object constructor), in a call on one (`{{ foo[a][b]("return 7")() }}` with a and b set to `constructor` ran text from the data as JavaScript) and through a native `{% set %}` bracket target (`{% set obj[k].x = 1 %}` put a property on `Object.prototype` for the whole process). 2.12.1 reads such a key as missing, a native set target given one throws « Unsafe assignment to "__proto__" via bracket notation is not allowed (prototype-chain guard) » when the template runs, and a prototype-chain name written as a variable inside a set target's brackets fails at compile. A set target keyed by a loop index compiles to a runtime key check whose output is unchanged. gina compiles each template when it renders it and stores no compiled output (its layout cache holds template source), so a restart picks the fix up; output precompiled by 2.12.0 or earlier keeps the old behaviour until it is recompiled. Pinned by `test/lib/swig-prototype-keys-b1088.test.js`, through both copies (`GINA_B1088_SWIG_FROM=<dir>` points it at another copy). Since #B1117 gina's own lockfiles lock swig 2.12.2 (the range stays `^2.12.1`, which a fresh install already resolves to 2.12.2), whose subscripts and native `in` no longer see, on the default (sync) render path, what an object only inherits from `Object.prototype`: `{{ foo[k] }}` with `k` set to `__defineGetter__` and `{{ foo["hasOwnProperty"]("b") }}` print nothing (2.12.1 printed the inherited function and `true`; the dotted `{{ foo.hasOwnProperty("b") }}` still prints `true`), and `{% if k in obj %}` over `{ b: 1 }` is false when `k` is `constructor`, `toString`, `__proto__` or `hasOwnProperty` (true for `b`), while a `{% for k, v in m %}` over data holding an own `hasOwnProperty` key lists it (2.12.1 threw « obj.hasOwnProperty is not a function »), `{% set o = {"__proto__": {"y": 3}, "a": 2} %}` keeps `"__proto__"` as an own key, so `{{ o.y }}` prints nothing (2.12.1 printed 3), and `{% block __proto__ %}` is refused with « Unsafe block name "__proto__" is not allowed (prototype-chain guard) ». Since #B1136 they lock swig 2.12.3 (the range stays `^2.12.1`), a fix release with no advisory whose native changes reach only these shapes: `{% autoescape %}` with no argument fails at compile with « Expected true, false, "html" or "js" in autoescape tag on line N. » (2.12.2 turned escaping off) and with a string other than `"html"` or `"js"` with « Unexpected token » (2.12.2 HTML-escaped), also in a part of a template that never renders; the end of a nested autoescape region restores the enclosing region, not the template default; an `autoescape` option set to `undefined` reads as `true` (gina passes only a boolean); text ending with `#}`, and an unclosed `{#`, render as text (2.12.2 rendered nothing); a second `{% else %}`, or an `{% elseif %}` or `{% elif %}` after it, fails at compile with « Multiple "else" branches in "if" tag on line N. » (2.12.2 threw « Unexpected token 'else' »); `{% for x in arr[0] %}` compiles (`{% for i in 1..3 %}` still throws « Unexpected number »); and `groupBy` leaves out a null or undefined item (2.12.2 threw a TypeError). Output precompiled by 2.12.2 keeps the old autoescape and comment behaviour until it is recompiled; gina compiles at render time, so a restart picks the change up. Since #B1138 they lock swig 2.12.4, now 2.12.5 (the range stays `^2.12.1`). 2.12.4 is a fix release with no advisory that changes how a compiled template reads a name: a reserved word (`{{ class }}`) renders its context value; a name an object gets only from `Object.prototype` reads as missing, bare, dotted or called (`{{ o.toString() }}` and `{{ o.hasOwnProperty("a") }}` on a plain object render ""), and in a gina process that includes gina's own `count` and `functionCount` helpers, so `{{ r.count() }}` renders "" and `{% if r.count %}` is false unless `r` holds its own `count` key (a query row's `count` column reads as before); a context key named like a JavaScript global (`JSON`, `Math`, `encodeURIComponent`) that holds null or undefined now hides that global; a name the compiled code uses (`_output`, `_ext`, `__k`) reads only the context, so `{{ _ext.name }}` renders "" (a custom tag's compiled code still reads `_ext`) and `{{ __k }}` in a one-name loop no longer gives the index (`loop.key` does). 2.12.5, with no advisory either, fixes a for loop that failed to compile when its compile drew a `Math.random()` value under 1e-6 (about one compile in a million). gina compiles at render time, so a restart picks the change up.
60
60
 
61
61
  ---
62
62
 
@@ -411,6 +411,8 @@ Security-critical settings that are hardcoded and not user-overridable: `maxHead
411
411
 
412
412
  **Idle-session close (#B619, `0.6.33`) — `http2Options.sessionIdleTimeout` (parseTimeout format, default `120000`; `0` disables; negative / non-finite / unparseable / > 2147483647 ms ⇒ one boot warn + the default — node clamps a larger timer to 1 ms).** Isaac closes a session that carried no request for the timeout with a graceful `session.close()`: open streams finish on their own (measured: a stream quiet for 2 s answered in full after the close), no new stream is accepted, the client reconnects on its next call. Before 0.6.33 the timer closed only when `session.activeStreams === 0` — a property that does not exist on `Http2Session` — so it re-armed forever and the server never closed an idle session (the audit's orphans were still ESTABLISHED 186 s later partly for this reason). Node's session timer is refreshed by a request or a DATA frame, NOT by a client PING (gina's 5 s keepalive does not keep an idle session alive) and NOT by a quiet open stream (an SSE stream between events sees its session enter shutdown and carries on untouched); the timer RE-ARMS after firing, so on a session still draining an open stream it fires again every T — the handler returns early on `closed || destroyed` (close() is idempotent, the info log line is not). **Node only, by runtime (the #B615 pattern, never by version):** on Bun the timeout resolves to 0 and a set key logs one boot warn — Bun 1.2.21 / 1.3.14 fire the timer on BUSY sessions (requests every 300 ms still time out) and after a close a node or Bun ≤ 1.3 client's next request HANGS (no GOAWAY reaches it); Bun 1.4.2 behaves like node, but a missed close is the status quo while a wrong close is a regression every T. Pins + the REAL handler bytes on a bare server: `test/core/server.isaac.test.js §07b`; the client side: `query-h2-session-lifecycle.test.js §11`.
413
413
 
414
+ **WebSocket over HTTP/2 session limits** (`lib/ws-session`, #H13; per route through `param.wsOptions`, or `onWebSocket()`'s third argument): `maxPayload` (1 MiB) and `maxFragments` (100) cap a reassembled message; `closeTimeout` (5 s) is how long an initiated close waits for the peer's Close frame before the stream is reset (RST_STREAM CANCEL, dropping what is still queued on it); `maxPendingAutoPongs` (60; `0` = no cap; any value that is not a non-negative integer means 60) is how many automatic Pongs may wait to be written, and one more Ping closes the session with 1006 and resets the stream (RST_STREAM ENHANCE_YOUR_CALM) (#B1139). No automatic Pong follows the session's own Close frame.
415
+
414
416
  **Session metrics** — exposed at `/_gina/info` under `"http2"` key:
415
417
  ```json
416
418
  {
@@ -928,7 +930,7 @@ Dev-mode query instrumentation captures every database query tied to the current
928
930
  - **`namespace` is required to target a namespace controller** — omitting `"namespace": "content"` makes the router look in `controller.js` instead of `controller.content.js`. Error surface is `"control not found: list"` pointing at `controller.js`, which is confusing. Always set `namespace` when the action lives in a namespace controller file.
929
931
  - **URL params need `"id": ":id"` in `param` to reach `req.params`** — declaring `"url": "/notes/:id"` alone is not enough. You MUST also add `"id": ":id"` inside the `param` block so the router binds the segment to `req.params.id`. `requirements` are optional (any non-empty segment is accepted when omitted); the `param` binding is not.
930
932
  - **`fitsWithRequirements` requires `"slug": ":slug"` in `param` even when `requirements` is set** — the router only increments the route-match score (and populates `req.params`) for a URL parameter if that parameter key exists in the `param` block. Having `requirements: { "slug": "..." }` alone is not enough — the route 404s without the binding. The `requirements` block adds regex validation on top of the binding; it does not imply the binding. A DELETE rule that declares `requirements` is matched by `parseRouting`'s own DELETE branch instead of `fitsWithRequirements`: it tests each regex against its URL segment — since 0.7.6 a placeholder without a requirement accepts any non-empty segment there (#B956; before, a rule whose requirements covered only some placeholders answered 404 on every request) — and writes the matched value to `req.delete` unconditionally, and since 0.7.6 (#B955) to `req.params` too, for a placeholder bound in `param` — before, `req.params.<key>` stayed unset on that route shape while every other route set it. A placeholder that branch matches without a `param` binding reaches `req.delete` only (the GET path does not match such a placeholder at all).
931
- - **`req.routing.param.<key>` ≠ URL value — use `req.params.<key>`** — `req.routing.param` holds the raw routing config object from `routing.json`. For URL parameter bindings like `"id": ":id"`, the value stored there is the literal placeholder string `":id"`, not the actual URL segment. The actual captured value is in `req.params.id` (always available) and `req.get.id` / `req.delete.id` etc. (method-specific). Static values declared in `param` (e.g. `"code": 302`) ARE correctly available on `req.routing.param.code`. A key gina reads AS configuration keeps that placeholder text too, so bind a URL segment under a name gina does not read: up to 0.7.10 `"code": ":code"` made the status of every `self.redirect()` reading that route `:code` (writeHead threw, a 500 over HTTP/1.1; a 200 page carrying the redirect's JSON over HTTP/2); since #B1122 `redirect()` honours only 301, 302, 303, 307 and 308 (read as writeHead reads them, so `"302"` works) and answers 301 for anything else, logged once per route and value. Since 0.7.11 (#B1124) a bundle also warns once at boot (one `[CONFIG][loadBundleConfig]` line, on the bundles the unanchored-requirement warning judges) about every route whose `param` binds a whole placeholder under one of the 24 keys gina reads as configuration: `requireAuth` `public` `roles` `policy` `dto` `responseDto` `messageValidator` `lane` `wsHandler` `wsOptions` (a placeholder there stops the boot), `control` `route` `url` `urlIndex` `ext` `project` `hostname` `port` `method` (it fails per request), `ignoreWebRoot` `section` `isPopinContext` `keep-params` `code` (a wrong value, no error). It names the binding whatever the route does, so a route that binds `code` and never redirects is warned too. Not warned: `path`, `namespace`, `title`, `file` (the matcher fills a placeholder there from the URL), `culture` (read from `req.params` on a `culturePrefix` route), and the `error`, `displayInspector` and `isLocalOptionResetNeeded` keys gina writes itself on its custom-error route. Nothing is rewritten (`core/config.param-bindings.js`). Rule of thumb: use `req.routing.param` only for static metadata, never for captured URL params. **Precedence (0.7.6, #B954 #B957):** the method's object holds the URL value even when the query string or the body carries a key of the same name, on every request and for every method. Once a rule matches, `_handleDispatch` (core/server.js, after the post-loop restore and before the dispatch branch) copies every own key of `req.params` but the engine's `0` (the request path) over `req[req.method]` — `req.delete` after the GET→DELETE override, `req.head` on a HEAD — on the cold match and on the warm route-cache hit alike, coercing `'true'`/`'false'`/`'on'` to booleans (`'null'` stays a string), and points `req.body` back at that object when it was the method's object before routing (captured before the warm lookup; processRequestData aliases them on a non-empty POST/PUT/PATCH body). A top-level JSON array body (POST, PATCH) is the parsed array in `req[method]` and `req.body` on every request (#B953: the cold loop matched on an `Object.assign` copy that keyed it by index, so the first request to each path got `{ "0": … }` while `req.body` kept the array; a copy captured before the warm lookup is put back after the post-loop restore), with the URL values named on it and coerced as above except under the names the array answers for itself (an index, `length`, a method), whose values stay in `req.params` — a digits-only name past the array's end too, on a warm hit as on the first request (#B965: the router's fill wrote it as an element, `:5` beside two elements giving length 6 with 3 holes, so the array is cut back to its arrival length); on a PUT, processRequestData merges the array into an object keyed by index. Before, the cold loop's copy blocks ran only on GET/HEAD/PUT/PATCH (on GET/DELETE only with an empty query), the warm hit broke out before them, and `lib/routing` fills the bag absent-only — so the client's value won from the second request to a route on, on every POST, and on a DELETE without a regex requirement, and `req.body` was a separate object holding the client's keys on the first request only. The client's value stays readable in `req.originalUrl` (GET), `req.query` (DELETE) and `req.rawBody` (POST/PUT/PATCH). `lib/routing` is unchanged: `fitsWithRequirements` still fills absent-only and the DELETE branch still writes unconditionally (an absent-only DELETE write would leave a placeholder not bound in `param` client-wins — it never reaches `req.params` — so the server block decides).
933
+ - **`req.routing.param.<key>` ≠ URL value — use `req.params.<key>`** — `req.routing.param` holds the raw routing config object from `routing.json`. For URL parameter bindings like `"id": ":id"`, the value stored there is the literal placeholder string `":id"`, not the actual URL segment. The actual captured value is in `req.params.id` (always available) and `req.get.id` / `req.delete.id` etc. (method-specific). Static values declared in `param` (e.g. `"code": 302`) ARE correctly available on `req.routing.param.code`. A key gina reads AS configuration keeps that placeholder text too, so bind a URL segment under a name gina does not read: up to 0.7.10 `"code": ":code"` made the status of every `self.redirect()` reading that route `:code` (writeHead threw, a 500 over HTTP/1.1; a 200 page carrying the redirect's JSON over HTTP/2); since #B1122 `redirect()` honours only 301, 302, 303, 307 and 308 (read as writeHead reads them, so `"302"` works) and answers 301 for anything else, logged once per route and value. Since 0.7.11 (#B1124) a bundle also warns once at boot (one `[CONFIG][loadBundleConfig]` line, on the bundles the unanchored-requirement warning judges) about every route whose `param` binds a whole placeholder under one of the 24 keys gina reads as configuration: `requireAuth` `public` `roles` `policy` `dto` `responseDto` `messageValidator` `lane` `wsHandler` `wsOptions` (a placeholder there stops the boot), `control` `route` `url` `urlIndex` `ext` `project` `hostname` `port` `method` (it fails per request), `ignoreWebRoot` `section` `isPopinContext` `keep-params` `code` (a wrong value, no error). It names the binding whatever the route does, so a route that binds `code` and never redirects is warned too. Not warned: `path`, `namespace`, `title`, `file` (the matcher fills a placeholder there from the URL), `culture` (read from `req.params` on a `culturePrefix` route), and the `error`, `displayInspector` and `isLocalOptionResetNeeded` keys gina writes itself on its custom-error route. Nothing is rewritten (`core/config.param-bindings.js`). Since 0.7.12 (#B1143) the same module also warns, in a second line, about each route URL segment holding a placeholder followed by a character other than a letter, a digit or an underscore: a placeholder's name is `\w` (the matcher reads a segment's names with `/:\w+/g`; the `culturePrefix` culture read takes `/^:\w+$/`), so on every route but a DELETE route with `requirements` (which keys the whole segment, `lang-code`) `/:lang-code/home` is read as `:lang`: a binding under `lang-code` is never filled, the route matches only when `param` also binds `lang`, text after the name is not compared (`/feed/:id.json` also matches `/feed/42`, and gives `id` the value `42.json` on `/feed/42.json`), and `"culture": ":lang-code"` reads no culture from the URL; name it `:lang_code`. Since 0.7.12 (#B646) a third line lists each route URL segment holding text BEFORE a placeholder its route binds (`page:number`): that text is not compared or removed either, the placeholder takes the whole segment (`/articles/page:number` reads `page3` from `/articles/page3`, also matches `/articles/42`, and a requirement tests the whole segment; a DELETE route with `requirements` compares such a segment as written), so put the fixed text in its own segment (`/articles/page/:number`); a segment whose names the route does not bind (`/time/12:30`) and a `ws` route are not listed. Rule of thumb: use `req.routing.param` only for static metadata, never for captured URL params. **Precedence (0.7.6, #B954 #B957):** the method's object holds the URL value even when the query string or the body carries a key of the same name, on every request and for every method. Once a rule matches, `_handleDispatch` (core/server.js, after the post-loop restore and before the dispatch branch) copies every own key of `req.params` but the engine's `0` (the request path) over `req[req.method]` — `req.delete` after the GET→DELETE override, `req.head` on a HEAD — on the cold match and on the warm route-cache hit alike, coercing `'true'`/`'false'`/`'on'` to booleans (`'null'` stays a string), and points `req.body` back at that object when it was the method's object before routing (captured before the warm lookup; processRequestData aliases them on a non-empty POST/PUT/PATCH body). A top-level JSON array body (POST, PATCH) is the parsed array in `req[method]` and `req.body` on every request (#B953: the cold loop matched on an `Object.assign` copy that keyed it by index, so the first request to each path got `{ "0": … }` while `req.body` kept the array; a copy captured before the warm lookup is put back after the post-loop restore), with the URL values named on it and coerced as above except under the names the array answers for itself (an index, `length`, a method), whose values stay in `req.params` — a digits-only name past the array's end too, on a warm hit as on the first request (#B965: the router's fill wrote it as an element, `:5` beside two elements giving length 6 with 3 holes, so the array is cut back to its arrival length); on a PUT, processRequestData merges the array into an object keyed by index. Before, the cold loop's copy blocks ran only on GET/HEAD/PUT/PATCH (on GET/DELETE only with an empty query), the warm hit broke out before them, and `lib/routing` fills the bag absent-only — so the client's value won from the second request to a route on, on every POST, and on a DELETE without a regex requirement, and `req.body` was a separate object holding the client's keys on the first request only. The client's value stays readable in `req.originalUrl` (GET), `req.query` (DELETE) and `req.rawBody` (POST/PUT/PATCH). `lib/routing` is unchanged: `fitsWithRequirements` still fills absent-only and the DELETE branch still writes unconditionally (an absent-only DELETE write would leave a placeholder not bound in `param` client-wins — it never reaches `req.params` — so the server block decides).
932
934
  - **Routing loop cross-route contamination** — `fitsWithRequirements()` mutates `request.params` and `request[method]` during each route comparison. Leftover values from non-matching routes cause `parseRouting` ~line 419 to inject phantom URL segments, compounding work exponentially. Fix: `req.params = Object.assign({}, _origParams)` + restore `req[method]` from `_origReqMethod` (`req[method] = Object.assign({}, _origReqMethod)`, `server.js:4976`) before each `compareUrls()` — NEVER `delete req[method]` (that destroys the parsed POST/PUT body) and never `delete req.params` — `fitsWithRequirements` gates on `typeof(request.params) != 'undefined'`. Never use `JSON.clone` on request state in the routing loop — `Object.assign` is sufficient and safe.
933
935
  - **`server.isaac.js:1954` initializes `req.params`** — `request.params = {}` and `request.params[0] = url` are set before `handle()` runs. Any code that deletes `req.params` breaks `fitsWithRequirements` which checks `typeof(request.params) != 'undefined'` before setting param values.
934
936
  - **A `:param` rule with no `requirements` block was a latent crash** — before the `fitsWithRequirements` fix, every GET to such a rule (for example `"url": "/items/:id"` with no `requirements`) threw a 500 TypeError; it now matches normally.
@@ -944,7 +946,7 @@ Dev-mode query instrumentation captures every database query tied to the current
944
946
 
945
947
  175. **Dev-mode hot-reload & module lifecycle — what reloads, what doesn't, and the `require.cache` poisoning antipattern** (replaces individual entries #22, #25, #28, #34, #104) — in dev mode (`NODE_ENV_IS_DEV` set; `isCacheless()` true) the framework hot-reloads code via two functions with DIFFERENT triggers: `refreshCoreDependencies()` (`core/router.js`) evicts and re-requires the controller pair ONLY when the dev watcher has marked a watched file dirty (`__hotReload` flags; watched: `controller.js`, `controller.render-swig.js`, and the bundle's `controllers/` directory; falls back to per-request eviction when the watcher context is absent), while `refreshCore()` (`core/server.isaac.js`, isaac engine only) re-exports core-path modules and re-requires `lib/index.js` + `plugins/index.js` on EVERY request. Consequence for controllers: module-level state (`var store = {}`) resets whenever a watched file changes (not per request) — for in-process state that survives hot-reloads (but resets on `bundle:restart`) attach to `global` (`if (!global.__myStore) global.__myStore = {}; var store = global.__myStore;`); for durable state use a database or file. NOT hot-reloaded (a full `gina bundle:stop` + `bundle:start` or `docker restart` is required): `server.js` / `server.isaac.js` / `server.express.js` (loaded once at process start, never evicted); connector code (`core/connectors/*/index.js`, loaded once via entity registration, outside the refresh scope); and bundle-registered plugin middleware — the `onInitialize` → `app.use(gina.plugins.X(...))` factories run ONCE at bootstrap, so a plugin config change needs a bundle restart in BOTH dev and prod, despite the misleading per-request refresh cue. Correctness invariant for any eviction code: `require.cache[path]` must hold a `Module` instance — `require.cache[path] = require(path)` poisons the slot by storing the bare exports object (no `.exports` key), so the next plain `require()` of that path returns `undefined`, surfacing as `Cannot read properties of undefined (reading '<X>')` after a hot reload; use `delete require.cache[require.resolve(path)]` + the `require()` return value, or swap `require.cache[c].exports = require(path)` on the existing Module — never the bare assignment. **The eviction cycles also leaked the whole module graph (#B32, folds former #173):** Node pushes every cache-miss require's fresh Module onto the REQUIRING module's `children` array and dedupes only on cache hits, so the per-request delete-and-re-require cycles accumulated one dead Module per eviction on long-lived parents — each pinning its entire evaluated exports graph (~1.8 MB post-GC live heap per request on a minimal dev bundle; heap-limit OOM/SIGABRT at ~2400 requests, presenting upstream as HTTP/2 PING timeouts, then ECONNREFUSED, then a supervisor respawn loop that keeps every process cold). Fixed by a `pruneDeadModuleChildren()` sweep at the end of BOTH eviction cycles — `children` is diagnostic metadata (nothing in Node resolution reads it), so pruning never unloads a module still referenced elsewhere; outside dev these cycles never ran (no eviction, and a cache hit dedupes), except `requireController()` through 0.7.10 (#B1126): its `if (isCacheless)` guard was commented out, so every call in every environment evicted and re-required the super controller and the required controller, and each copy stayed on the router module's `children` (about the controller's source size per call once V8 has flushed its code); it now loads both once outside dev, as a routed controller does, and in dev prunes after its re-require. The sweep walks `require.cache` keys ONLY, so a second residual of the same class existed OFF-cache: hot-evicted leaf/singleton libs captured at gen-0 by load-once modules and re-required per request pushed dead children onto the evicted-but-retained gen-0 parent, prune-blind — those libs are plain-`require`d now (never evicted → cache-hit → children deduped), and a completeness audit closed the gen-0-binding class. Rules: any new delete-`require.cache` + re-require cycle in a long-lived process must end with the prune sweep; a hot-evicted lib captured as a gen-0 binding by a load-once module leaks PAST the prune — plain-require leaf/singleton libs that don't need hot reload. **`requireJSON` has NO cache in ANY mode** — every call is `fs.readFileSync` + comment strip + `JSON.parse` (its dev-mode `require.cache` eviction touches a cache it never fills), so never call it per request in bundle code; read a config once at module load or in `onReady`. The framework's own env template (`core/template/conf/env.json`) is parsed once per process and shared read-only by every `Config` instance since #B610 (0.6.33) — before that, `new Config()` (which runs three times per request) re-read it twice per construction, six disk reads per request.
946
948
 
947
- 176. **Inspector & `/_gina/*` built-in endpoints — in-process architecture, admin IP-allowlist, agent-stream auth, live index coverage** (replaces individual entries #31, #32, #38, #111, #134, #138) — the dev Inspector (formerly Beemaster) is a built-in SPA served at `/_gina/inspector/` inside the bundle's own process: no project registration, no separate port, no auto-start spawn; dev-mode only (production bundles never expose it), and same-origin with the monitored bundle so `window.opener.__ginaData` always works. Every `/_gina/*` route (healthcheck, assets, cache/stats, info, inspector, logs, agent, indexes, reveal, instrument, metrics) is a handler in the same HTTP server process; the Isaac engine is the source of truth and may carry fast-paths, but base functionality belongs in the engine-agnostic dispatcher so Express bundles get the same endpoints. Admin-grade endpoints exposing process/cache internals (`/_gina/info` — memory/uptime/version/HTTP-2 session counters; `/_gina/cache/stats` — full cache contents) are IP-allowlisted via the `admin.allowFrom` block in `app.json`: the client IP is read from the socket only (the spoofable `X-Forwarded-For` is never trusted), `::ffff:`-mapped IPv4 is normalised, the list defaults to loopback (`127.0.0.1`, `::1`) when omitted, an empty list denies everyone, and denied callers get a 403 JSON error; `/_gina/health/check` stays deliberately open for liveness probes, and `/_gina/metrics` keeps its own separate `metrics.allowFrom` axis. **#B709 (fixed for 0.7.1) — a loopback entry admits only a DIRECT caller.** The default list is loopback, and loopback is also the address a reverse proxy on the bundle's own host connects from, so the address-only gate admitted every client such a proxy relayed — maintenance on (a site-wide 503), a cache flush, a storage gc, the process and cache state — with no browser and no credential; an edge block of `/_gina/` did not close it either, because the unanchored handlers also matched a nested endpoint path (`/_gina/health/check/_gina/maintenance`, which a PREFIX proxy location forwards), the endpoint path in a query string, another letter case, or `//_gina/…`. Now (1) `lib.admin.isClientAllowed` and `lib.metrics.isClientAllowed` refuse a listed LOOPBACK caller whose request carries a proxy signal — the classifier the maintenance bypass already used (`lib.maintenance.isProxiedRequest`: any `x-forwarded-*` header name, RFC 7239 `Forwarded`, a `true` #B65 stamp, or a port-less `Host`/`:authority` unless `server.proxy.requireForwardedHeaders` is true); a listed NON-loopback address (a proxy on another host) still admits what it relays, and the first refusal per list is logged once per process. (2) That classification is stamped ONCE per `/_gina/*` request from the pristine headers at both engine tops (`request._ginaAdminProxied`, first-seer): isaac rewrites an h1 `Host` port-less before it hands a request to server.js, so a live read there would take every direct caller of a server.js-only handler (`storage/*`) for a proxied one. (3) `info`, `cache/stats`, `cache/clear`, `maintenance` and `metrics` match EXACTLY on `lib.admin.controlPath(url, webroot)` — the query-free path, in the root form or the bundle's own webroot form, nothing else (a query on these endpoints is now ignored, where it used to 404 some of them); `storage/*` and `release/*` stay `^`-anchored on the url and become case-sensitive; `health/check` and the dev/key-gated family are unchanged. Residual, pinned: a proxy that forwards a port-bearing `Host` and adds no forwarding header is byte-identical to a direct client and stays admitted — call the bundle's port directly from the host or the pod, and block `/_gina/` at the edge in any case and anywhere in the path. False positive: a bundle bound directly to port 80/443 receives a port-less Host from every direct client, so set `server.proxy.requireForwardedHeaders: true` there. Pickup = bundle restart, no re-bake. **#B712 (fixed for 0.7.1) — the handlers #B709 left out match the url's PATH.** `health/check`, `jobs/:id`, `instrument` and the dev/key-gated `inspector`, `logs`, `agent`, `indexes`, `reveal` tested the whole url with no start anchor, so a page whose QUERY ended in an endpoint path (`/web/?next=/_gina/health/check`) got the endpoint instead of the page — inside a maintenance window too, where the page's 503 was due — and a WebSocket upgrade to such a url was taken by the agent. Each matcher now starts `^[^?]*` (the endpoint path must end the url's path) and the dev endpoints' `$` became `(?:\?|$)`; prefix tolerance stays (the Inspector puts the opener page's full pathname before `/_gina/`, and a liveness probe may call the health check under the bundle's webroot), as do letter case, methods and gates. The agent WebSocket upgrade listeners test the query-free path, and the Inspector reads its asset path from it. `/_gina/assets/routing.json`, left out then (`/x?y=/_gina/assets/routing.json` got the routing map), matches its path only since #P48 (0.7.2): that url now gets the page. **#B707 (fixed for 0.7.1) — a GET of the routing table in another letter case no longer ends an isaac bundle.** isaac's fast path tested the url without regard to case, then looked the asset up by the requested spelling through an exact-match `findOne`: `Routing.json` found nothing and the `localAsset.mime` read threw an uncaughtException that ended the process — one unauthenticated request, before routing, with any path prefix. The looked-up name is now lower-cased. A request classified as proxied was served the host-stripped table and escaped it; the express engine serves the table from memory and was not affected. **#B722 (fixed for 0.7.1) — isaac's own event streams answer HTTP/2 clients.** `/_gina/logs`, `/_gina/agent` and `/_gina/release/events` passed `connection: keep-alive` to node's HTTP/2 `stream.respond()`, which throws `ERR_HTTP2_INVALID_CONNECTION_HEADERS` on any connection-specific header (`connection`, `keep-alive`, `proxy-connection`, `transfer-encoding`, `upgrade`); lib/proc.js logged the throw as a warn and the client never got headers, so an `http/2.0` bundle reached directly over HTTP/2 streamed none of them (0.3.0 through 0.7.0; release events since 0.5.18). The header now goes to HTTP/1.1 only. Reflex: a header set shared by an h1 `writeHead()` and a raw h2 `stream.respond()` must carry no HTTP/1-only header — the compat `setHeader('connection', …)` merely drops it with an `UnsupportedWarning`, while a raw `respond()` throws. Pickup for both: bundle restart, no re-bake. The `/_gina/agent` stream (combined data + log events) is dev-only by default but can be enabled outside dev behind an API key (`settings.json > inspector.agent.{enabled, key}`, `${secret:KEY}`-capable, constant-time compared, fail-closed when no key is configured); browsers pass `?key=` as a query param because `EventSource` and WebSocket handshakes cannot set custom headers — and any `$`-anchored endpoint gate regex must become `(?:\?|$)` the moment its endpoint accepts a query param, or the handler silently stops matching the query'd URL. A time-boxed, separately-keyed production instrumentation window (`POST /_gina/instrument`, hard-capped at one hour) can stream per-request query + flow capture over that authenticated channel — channel AUTH, not redaction, is what protects raw query text (redaction masks only secret-NAMED fields, never the statement or its positional params). The Query tab computes live index coverage client-side, so bundles WITHOUT an `indexes.sql` get a correct "no index for filter" badge on the first render too (cached live-index descriptors are cloned per query before stamping coverage — the cache is shared across queries that filter different columns). The live-index refetch's success re-render lands in `#tree-query` — the container the tab renderer owns and silently bails on when missing — never the scroll wrapper around it (#B222: replacing the wrapper's children destroyed `#tree-query`, so after the first render carrying an `indexes: null` query every later payload — navigation, XHR, the refresh button — froze the Query pane and badge until the Inspector window itself was reloaded; the ⟳ button re-armed the freeze via its forced refetch). Inspector toolbar CSS: native macOS `<select>` ignores `line-height` — use explicit vertical padding, and keep `select` (sans font) and `input` (mono font) on separate CSS rules. **SPA + statusbar hardening (folds former #165/#190/#191/#196):** every per-bundle `/_gina/*` consumer in the SPA derives its base URL via the shared 3-fallback `resolveBundleBase()` (`?target=` → opener pathname → path strip) — a bare `window.location.pathname` strip misroutes to the proxy's default bundle in reverse-proxy multi-bundle setups. A `?target=` value loses its own query string and fragment before `/_gina/…` is appended (`normaliseTarget()`, read by `resolveBundleBase()` and both agent builders; `gina inspector:open` does the same to a positional URL — #B719, fixed for 0.7.1): a pasted page URL (`http://host/page?x=1`) otherwise built `http://host/page?x=1/_gina/agent`, the endpoint path inside the query, which the endpoints ignore since #B712. The Inspector binds to its opener tab via a per-tab `BroadcastChannel` (`?ch=<tabId>`): pages sending COOP `same-origin` sever `window.opener` for the popup, and the bundle-global fallbacks (the shared localStorage slot + the worker-wide agent SSE) reflect whichever render last touched them — a diagnostic channel that must track ONE page needs a per-tab transport (the statusbar publishes that tab's data at its existing write points and answers a request/reply handshake; no `?ch=` keeps the prior behaviour, and `?target=` agent mode keeps priority). Structured-localStorage reads need a SHAPE check on top of the try/catch parse (a tampered key holding a JSON primitive otherwise breaks the un-guarded consumer), and every value interpolated into `innerHTML` goes through an HTML-escape helper — untrusted model/app text renders via `.textContent` instead. Server data serialised into those inline scripts goes through the shared helper `core/controller/inline-script.js` (`safeInlineJson` / `safeInlineString` / `escapeForInlineScript`), applied at every emission site in both renderers (4 swig + 3 nunjucks): `<` → `\u003c` (the earlier literal-`</script>`+`<!--` blocklist was bypassable — per the HTML5 script-data end-tag-name state `</script >`, `</script/>` and `</SCRIPT >` all terminated the block; #B451, 0.6.23), U+2028/U+2029 (JS line terminators that are legal in JSON), and — inside JSON string literals only — `{`/`}` → `\u007b`/`\u007d` (#B463): render-swig splices the `__ginaData`/`__ginaLogs` scripts into the layout BEFORE `swig.compile` (the per-request nonce there is a swig conditional), so unescaped `{{ }}`/`{% %}`/`{# #}` in stored data were evaluated as template source — `A{{ 7*7 }}B` rendered `A49B`, measured on fork 2.0.0/2.4.0/2.8.0; nunjucks splices post-render and was never exposed. Structural braces are never touched (an escape outside a literal is neither JSON nor JS), every value parses back byte-identical; pins: `test/lib/inline-script-xss.test.js` (jsdom, 11 spellings) + `test/lib/inline-script-template-injection.test.js` (renders through the real fork, with a firing control). Both server-side only ⇒ pickup = restart, no re-bake. Dev inline-script splices before `</body>` use FUNCTION replacers: `String.replace(/re/, str)` expands `$`-sequences in a STRING replacement (`` $` ``/`$'`/`$&`), so dynamic content carrying a stray dollar-sequence spliced the whole document into the statusbar `<script>` (SyntaxError → statusbar and launch link vanish) on content-heavy pages while a near-empty smoke page stayed falsely green — any `String.replace(re, dynamicX)` with dynamic content must use a function replacer or escape `$`. Inspector SPA files are copied VERBATIM to dist (no minification) — an inspector-only edit rebuilds only those dist files, never the main bundle artifacts. Bound-window data fidelity (#B225): a preload-consumed popin open sets the dev toolbar's XHR overlay on BOTH consume branches exactly like a cold click (dev-gated `updateToolbar(body)` immediately before each dispatch — in consumePreload, never in the shared dispatcher, which would double-fire the cold path); the statusbar-bound Inspector window's refresh button never reopens the passive `/_gina/agent` stream (`source !== 'broadcast'` on the reopen gate — bound mode takes page-scoped data from the statusbar publisher, and a leaked stream applied bundle-wide payloads over it, blinking the Query badge at every XHR overlay); and every Query-pane re-render (filter/search/show-all plus the live-index refetch success path) derives from the live payload via renderTab('query')'s own preference (reveal swap included) instead of the module query cache, which the empty render path never clears and which survives overlay eras ending while the Query tab is inactive — a refresh no longer resurrects a closed popin's badge count. A `?ch=`-less embedded Inspector (direct URL, bookmark, a window predating bound mode) no longer silently runs those bundle-global channels (#B231): every dev page's statusbar advertises its per-tab channel id in localStorage (`__gina_last_tab_ch`) on each publish, a `?ch=`-less Inspector adopts the most-recently-published tab's channel at boot behind a liveness handshake (the bind's request must be answered by a data frame within 1.5 s — a stale advert from a closed tab tears the bound mode down and falls back to the legacy acquisition, closing the bound-mode `/_gina/logs` stream so log entries are not double-delivered once the passive agent stream attaches), and a footer badge names the active data-source mode (`bound` / `agent` / warn-tinted `global` with a tooltip pointing at the statusbar link) so a degraded bundle-global mode is visible instead of silent. That badge renders from `updateSourceModeBadge()`, which init must call on BOTH acquisition branches (#B306): it previously ran only on the non-agent branch and from `pollData()`, and since the poll timer is deliberately never scheduled under `?target=` (agent data is SSE-pushed), a URL-entered standalone Inspector kept the element's shipped `hidden` attribute and named no mode at all — while the identical `agent` mode DID render when reached through the connect form, whose timer is already ticking when `source` flips. Badging depended on how the window was opened rather than on the mode itself, which is exactly what the badge exists to prevent. The timer stays unscheduled in agent mode on purpose, and a future reader must not "reconcile" that guard to the comment that once claimed otherwise: `pollData()` is NOT a no-op under `source === 'agent'` — it repaints the active tab from cache before returning — so putting it on a timer would repaint every `pollDataMs` and fight scroll position, expanded folds and text selection; the refresh button calls `pollData()` directly and needs no timer at all. The footer memory gauge sits its unfilled track on `--bg3` with a theme-scoped inset groove shadow (#B237) — the track previously shared `.bm-footer`'s own `--bg2` background token, so the empty portion rendered invisible in both themes and a low fill read as a floating green dot; a gauge track must contrast the surface it sits on, and an inset box-shadow paints under the fill child, so the groove shades only the empty region. The Forms tab shows the page's DOM forms enriched with runtime validation state (the statusbar merge writes `u.forms[<id>]` per form), while the whole-bundle forms catalog the server seeds into `user.forms` (`page.forms` = the walked `<bundle>/forms/` directory groups — `rules`, `mocks`, `validators`, open-ended) renders as one collapsed, muted "Bundle catalog" card at the bottom (#B343): catalog keys are recognized by their presence in the pristine `gina.forms` half of the payload (which runtime merges never write), so app-custom group directories demote too, departed runtime forms (a closed popin's form) keep their own card, and a payload with no gina half falls back to the legacy per-key rendering — nothing is ever hidden. **The page whisper excludes `mocks` (#B344, every env):** `page.environment.forms` — the RFC5987-encoded export the client loader parses into `gina.forms` — ships a SHALLOW COPY of the catalog minus the `mocks` group in every environment (dev fixture data has zero client consumers: the client bundle reads `gina.forms.rules` and `gina.forms.validators` only), trimming page weight and keeping the client contract uniform across envs; server-side `conf.forms`/`page.forms` — and therefore this catalog card — keep the full set, and the shared catalog object is never mutated. **The localStorage fallback channel is re-synced by the late-bind patch (#B386, fixed 2026-08-16, shipped in 0.6.11).** `statusbar.html` mirrors `window.__ginaData` into `localStorage.__ginaData` at statusbar-execution time, which is BEFORE the render delegates append their late-bind patch script above `</body>` — and that patch mutates the IN-MEMORY object only. Without a re-sync the mirror keeps the EMIT-TIME payload forever: `metrics.weightBytes` null (null at emit by construction, since the body length is unknown until the render finishes) and the late flow entries absent. Measured live on a dev bundle: mirror `{serverMs:2339, weightBytes:null}` with 17 flow entries against an in-page `{serverMs:2860, weightBytes:628192}` with 21 — the four missing being `swig-compile`, `swig-execute`, `response-write`, `total`. Two visible symptoms, and the asymmetry between them IS the diagnostic: the View tab drops its weight badge (both weight legs falsy) while the load badge survives, because `serverMs` IS set at emit and `weightBytes` is not — so a fallback-channel Inspector shows 2 badges instead of 3, and only until something else re-syncs; and the Flow tab loses its template-compile/execute/response-write/total bars. All three patch sites (render-swig cache-hit and cache-miss, render-nunjucks) now end their patch script by refreshing BOTH channels the Inspector can read, placed AFTER the metrics assignments — ordering is load-bearing, since syncing first would re-mirror the stale payload. **localStorage alone was NOT enough, and that was the first fix's mistake:** it is only the FALLBACK channel, while a statusbar-launched Inspector runs in BOUND mode on a per-tab `BroadcastChannel`. Measured: all SEVEN `_ginaPublish()` call sites sit BEFORE the patch (`publishesAfterPatch: 0`), and a surrogate bound listener held across a real navigation received exactly ONE frame carrying `weightBytes: null` with `serverMs` set — the 2-badges-instead-of-3 symptom, reproduced on the transport itself. The patch now also republishes there, keying the channel from `sessionStorage.__gina_tab_id` (per-tab, race-free) and NEVER from the `__gina_last_tab_ch` localStorage advert, which is last-writer-wins across tabs. The subscriber applies it immediately (`setupBoundChannel`'s `onmessage` → `_bcLatest = payload; pollData()`). ⚠️ The convention `'gina-inspector-' + tabId` now spans FOUR files (statusbar publisher, SPA subscriber, both delegates) and is pinned by a test, since a rename in one strands the Inspector on a channel nobody publishes to — silently, with no error. **Generalisable: verifying the PRODUCER and inferring the CONSUMER is not verification** — the page data measured correct on all four reported URLs while the bug was fully present. The nunjucks site was also converted to a FUNCTION replacer, which both swig sites already used. **Cross-origin WRITE guard (#B384, fixed 2026-08-16 — a CSRF that was live in every release up to 0.6.9).** The admin endpoints authenticate with an AMBIENT credential (the client IP via `lib.admin.isClientAllowed`), which a browser attaches automatically, so an operator browsing from an allowlisted address — loopback by DEFAULT, i.e. the machine running the bundle — could be lured to a page that silently wrote to `/_gina/storage/gc`, `/_gina/cache/clear`, `/_gina/release/rebuild` or `/_gina/maintenance`. The first three read their whole input from the QUERY STRING and no body, so the attack needed no `fetch` and no CORS reasoning at all: an auto-submitting `<form>` sufficed. `lib.admin.isCrossOriginWrite(req)` now fronts the WHOLE family from ONE site per engine, placed above every `/_gina/*` handler so current and future handlers inherit it — the body reader `_readInstrumentBody` was the WRONG seam (it fronts only 2 of the family), and folding the check into `isClientAllowed` would have silently widened a function whose name promises an IP check. Signals, in order: `Sec-Fetch-Site` (browser-computed, a forbidden header name so page script cannot forge it, and independent of a proxy rewriting `Host`) — `same-origin`/`none` pass, `same-site`/`cross-site` refused; else `Origin` vs `:authority`/`Host`, built NEVER from `X-Forwarded-*` (#B367), with `Origin: null` refused (#CSRF3). NO browser signal ⇒ ALLOWED, since curl / the gina CLI / a deploy script carry no ambient credential. SAFE methods (GET/HEAD/OPTIONS/TRACE) are untouched, so the Inspector's deliberately cross-origin GET/SSE channels keep working — measured: the plugin source issues ZERO POSTs to `/_gina/*`, control firing at 23 hits on `/_gina/agent`. `/_gina/instrument` was NOT the worst of the family as first filed: it is key-gated (`_instrumentKeyValid`), so an attacker without the key cannot invoke it; its `access-control-allow-origin: *` is set BEFORE the key check, making only the 401 cross-origin readable. Verified live: 5 attack arms (incl. the query-param form vector and an `X-Forwarded-Host` spoof) all 403 with state never flipping, 5 control arms all allowed incl. a real browser's `no-cors` POST refused where it previously flipped the toggle. Residual, pinned: a browser sending NEITHER signal on a POST would pass — legacy-only, and narrower than the IP allowlist already fronting these endpoints. **#B708 (fixed for 0.7.1) — placement was not enough: the guard's URL test must MATCH WHEREVER A WRITE HANDLER MATCHES.** It tested `/^\/_gina\//`, while the unanchored handlers (`cache/clear`, `maintenance`, `instrument`) test the FULL url — so a leading segment (`/web/_gina/…`, `//_gina/…`) and the endpoint path at the END of the query string (`/?next=/_gina/maintenance`) reached them — and `cache/clear`, `storage/*` and `release/*` match in any case (`/_GINA/storage/gc`). Driven live on isaac (dev and prod): a cross-site `text/plain` POST to each shape got 200 and turned maintenance on (a site-wide 503). The guard now tests `/\/_gina\//i` on the full url, a superset of every write handler on both engines, locked by a source-extraction test that derives the write handlers from each condition's methods (a looser future handler turns it red) and a live boot test. Side effect: a cross-origin browser request with an unsafe method to an app URL merely containing `/_gina/` (query included) is refused too; same-origin and non-browser clients are unaffected. #B679 — the isaac `X-Forwarded-Prefix` handler in this same forwarded-header block ran its trailing-slash trim (`/\/+$/`, which backtracks quadratically on a long run of slashes) on the RAW header BEFORE the length+charset gate, on every request: a 15 KB header cost ~100–170 ms CPU (measured on a booted bundle; the regex alone ~8 s at the 64 KB an HTTP/2 header list admits). The gate now runs BEFORE the trim, so a >255 value is zeroed before any regex sees it; a legitimate ≤255 mount path is unchanged. Reflex: any per-request regex over an attacker-controllable header caps length first, then matches.
949
+ 176. **Inspector & `/_gina/*` built-in endpoints — in-process architecture, admin IP-allowlist, agent-stream auth, live index coverage** (replaces individual entries #31, #32, #38, #111, #134, #138) — the dev Inspector (formerly Beemaster) is a built-in SPA served at `/_gina/inspector/` inside the bundle's own process: no project registration, no separate port, no auto-start spawn; dev-mode only (production bundles never expose it), and same-origin with the monitored bundle so `window.opener.__ginaData` always works. Every `/_gina/*` route (healthcheck, assets, cache/stats, info, inspector, logs, agent, indexes, reveal, instrument, metrics) is a handler in the same HTTP server process; the Isaac engine is the source of truth and may carry fast-paths, but base functionality belongs in the engine-agnostic dispatcher so Express bundles get the same endpoints. Admin-grade endpoints exposing process/cache internals (`/_gina/info` — memory/uptime/version/HTTP-2 session counters; `/_gina/cache/stats` — full cache contents) are IP-allowlisted via the `admin.allowFrom` block in `app.json`: the client IP is read from the socket only (the spoofable `X-Forwarded-For` is never trusted), `::ffff:`-mapped IPv4 is normalised, the list defaults to loopback (`127.0.0.1`, `::1`) when omitted, an empty list denies everyone, and denied callers get a 403 JSON error; `/_gina/health/check` stays deliberately open for liveness probes, and `/_gina/metrics` keeps its own separate `metrics.allowFrom` axis. **#B709 (fixed for 0.7.1) — a loopback entry admits only a DIRECT caller.** The default list is loopback, and loopback is also the address a reverse proxy on the bundle's own host connects from, so the address-only gate admitted every client such a proxy relayed — maintenance on (a site-wide 503), a cache flush, a storage gc, the process and cache state — with no browser and no credential; an edge block of `/_gina/` did not close it either, because the unanchored handlers also matched a nested endpoint path (`/_gina/health/check/_gina/maintenance`, which a PREFIX proxy location forwards), the endpoint path in a query string, another letter case, or `//_gina/…`. Now (1) `lib.admin.isClientAllowed` and `lib.metrics.isClientAllowed` refuse a listed LOOPBACK caller whose request carries a proxy signal — the classifier the maintenance bypass already used (`lib.maintenance.isProxiedRequest`: any `x-forwarded-*` header name, RFC 7239 `Forwarded`, a `true` #B65 stamp, or a port-less `Host`/`:authority` unless `server.proxy.requireForwardedHeaders` is true); a listed NON-loopback address (a proxy on another host) still admits what it relays, and the first refusal per list is logged once per process. (2) That classification is stamped ONCE per `/_gina/*` request from the pristine headers at both engine tops (`request._ginaAdminProxied`, first-seer): isaac rewrites an h1 `Host` port-less before it hands a request to server.js, so a live read there would take every direct caller of a server.js-only handler (`storage/*`) for a proxied one. (3) `info`, `cache/stats`, `cache/clear`, `maintenance` and `metrics` match EXACTLY on `lib.admin.controlPath(url, webroot)` — the query-free path, in the root form or the bundle's own webroot form, nothing else (a query on these endpoints is now ignored, where it used to 404 some of them); `storage/*` and `release/*` stay `^`-anchored on the url and become case-sensitive; `health/check` and the dev/key-gated family are unchanged. Residual, pinned: a proxy that forwards a port-bearing `Host` and adds no forwarding header is byte-identical to a direct client and stays admitted — call the bundle's port directly from the host or the pod, and block `/_gina/` at the edge in any case and anywhere in the path. False positive: a bundle bound directly to port 80/443 receives a port-less Host from every direct client, so set `server.proxy.requireForwardedHeaders: true` there. Pickup = bundle restart, no re-bake. **#B712 (fixed for 0.7.1) — the handlers #B709 left out match the url's PATH.** `health/check`, `jobs/:id`, `instrument` and the dev/key-gated `inspector`, `logs`, `agent`, `indexes`, `reveal` tested the whole url with no start anchor, so a page whose QUERY ended in an endpoint path (`/web/?next=/_gina/health/check`) got the endpoint instead of the page — inside a maintenance window too, where the page's 503 was due — and a WebSocket upgrade to such a url was taken by the agent. Each matcher now starts `^[^?]*` (the endpoint path must end the url's path) and the dev endpoints' `$` became `(?:\?|$)`; prefix tolerance stays (the Inspector puts the opener page's full pathname before `/_gina/`, and a liveness probe may call the health check under the bundle's webroot), as do letter case, methods and gates. The agent WebSocket upgrade listeners test the query-free path, and the Inspector reads its asset path from it. `/_gina/assets/routing.json`, left out then (`/x?y=/_gina/assets/routing.json` got the routing map), matches its path only since #P48 (0.7.2): that url now gets the page. **#B707 (fixed for 0.7.1) — a GET of the routing table in another letter case no longer ends an isaac bundle.** isaac's fast path tested the url without regard to case, then looked the asset up by the requested spelling through an exact-match `findOne`: `Routing.json` found nothing and the `localAsset.mime` read threw an uncaughtException that ended the process — one unauthenticated request, before routing, with any path prefix. The looked-up name is now lower-cased. A request classified as proxied was served the host-stripped table and escaped it; the express engine serves the table from memory and was not affected. **#B722 (fixed for 0.7.1) — isaac's own event streams answer HTTP/2 clients.** `/_gina/logs`, `/_gina/agent` and `/_gina/release/events` passed `connection: keep-alive` to node's HTTP/2 `stream.respond()`, which throws `ERR_HTTP2_INVALID_CONNECTION_HEADERS` on any connection-specific header (`connection`, `keep-alive`, `proxy-connection`, `transfer-encoding`, `upgrade`); lib/proc.js logged the throw as a warn and the client never got headers, so an `http/2.0` bundle reached directly over HTTP/2 streamed none of them (0.3.0 through 0.7.0; release events since 0.5.18). The header now goes to HTTP/1.1 only. Reflex: a header set shared by an h1 `writeHead()` and a raw h2 `stream.respond()` must carry no HTTP/1-only header — the compat `setHeader('connection', …)` merely drops it with an `UnsupportedWarning`, while a raw `respond()` throws. Pickup for both: bundle restart, no re-bake. The `/_gina/agent` stream (combined data + log events) is dev-only by default but can be enabled outside dev behind an API key (`settings.json > inspector.agent.{enabled, key}`, `${secret:KEY}`-capable, constant-time compared, fail-closed when no key is configured); browsers pass `?key=` as a query param because `EventSource` and WebSocket handshakes cannot set custom headers — and any `$`-anchored endpoint gate regex must become `(?:\?|$)` the moment its endpoint accepts a query param, or the handler silently stops matching the query'd URL. **#B1141 (fixed for 0.7.12) — an upgrade on another path is answered or closed.** The agent's WebSocket listener is attached to every bundle's server at listen(), and once an `upgrade` listener exists Node.js accepts every upgrade request; an upgrade on any other path that no listener took was left open. A second listener now closes it after 1 s: always when gina's listeners are the server's only upgrade listeners, and otherwise when nothing has been written on its socket (engine.io's own rule and delay for an upgrade it does not own); where the server has `shouldUpgradeCallback` (Node.js 22.21 and later, 24.9 and later) such an upgrade is served as a plain request when gina's listeners are the server's only upgrade listeners. An `ioServer` attach-mode bundle without `"websocket"` in `transports` has no engine.io upgrade listener, Isaac's included, so it is answered or closed like a bundle without `ioServer`. On Node.js an application listener that writes nothing for 1 s loses its socket; on Bun, whose socket reads `bytesWritten` 0 after another listener has answered on it, an upgrade on a server with another upgrade listener is left to that listener. Reflex: a listener on `upgrade` answers for every upgrade request the server receives (answer it, hand it off, or close it), never only for its own path. Pickup = bundle restart, no re-bake. A time-boxed, separately-keyed production instrumentation window (`POST /_gina/instrument`, hard-capped at one hour) can stream per-request query + flow capture over that authenticated channel — channel AUTH, not redaction, is what protects raw query text (redaction masks only secret-NAMED fields, never the statement or its positional params). The Query tab computes live index coverage client-side, so bundles WITHOUT an `indexes.sql` get a correct "no index for filter" badge on the first render too (cached live-index descriptors are cloned per query before stamping coverage — the cache is shared across queries that filter different columns). The live-index refetch's success re-render lands in `#tree-query` — the container the tab renderer owns and silently bails on when missing — never the scroll wrapper around it (#B222: replacing the wrapper's children destroyed `#tree-query`, so after the first render carrying an `indexes: null` query every later payload — navigation, XHR, the refresh button — froze the Query pane and badge until the Inspector window itself was reloaded; the ⟳ button re-armed the freeze via its forced refetch). Inspector toolbar CSS: native macOS `<select>` ignores `line-height` — use explicit vertical padding, and keep `select` (sans font) and `input` (mono font) on separate CSS rules. **SPA + statusbar hardening (folds former #165/#190/#191/#196):** every per-bundle `/_gina/*` consumer in the SPA derives its base URL via the shared 3-fallback `resolveBundleBase()` (`?target=` → opener pathname → path strip) — a bare `window.location.pathname` strip misroutes to the proxy's default bundle in reverse-proxy multi-bundle setups. A `?target=` value loses its own query string and fragment before `/_gina/…` is appended (`normaliseTarget()`, read by `resolveBundleBase()` and both agent builders; `gina inspector:open` does the same to a positional URL — #B719, fixed for 0.7.1): a pasted page URL (`http://host/page?x=1`) otherwise built `http://host/page?x=1/_gina/agent`, the endpoint path inside the query, which the endpoints ignore since #B712. The Inspector binds to its opener tab via a per-tab `BroadcastChannel` (`?ch=<tabId>`): pages sending COOP `same-origin` sever `window.opener` for the popup, and the bundle-global fallbacks (the shared localStorage slot + the worker-wide agent SSE) reflect whichever render last touched them — a diagnostic channel that must track ONE page needs a per-tab transport (the statusbar publishes that tab's data at its existing write points and answers a request/reply handshake; no `?ch=` keeps the prior behaviour, and `?target=` agent mode keeps priority). Structured-localStorage reads need a SHAPE check on top of the try/catch parse (a tampered key holding a JSON primitive otherwise breaks the un-guarded consumer), and every value interpolated into `innerHTML` goes through an HTML-escape helper — untrusted model/app text renders via `.textContent` instead. Server data serialised into those inline scripts goes through the shared helper `core/controller/inline-script.js` (`safeInlineJson` / `safeInlineString` / `escapeForInlineScript`), applied at every emission site in both renderers (4 swig + 3 nunjucks): `<` → `\u003c` (the earlier literal-`</script>`+`<!--` blocklist was bypassable — per the HTML5 script-data end-tag-name state `</script >`, `</script/>` and `</SCRIPT >` all terminated the block; #B451, 0.6.23), U+2028/U+2029 (JS line terminators that are legal in JSON), and — inside JSON string literals only — `{`/`}` → `\u007b`/`\u007d` (#B463): render-swig splices the `__ginaData`/`__ginaLogs` scripts into the layout BEFORE `swig.compile` (the per-request nonce there is a swig conditional), so unescaped `{{ }}`/`{% %}`/`{# #}` in stored data were evaluated as template source — `A{{ 7*7 }}B` rendered `A49B`, measured on fork 2.0.0/2.4.0/2.8.0; nunjucks splices post-render and was never exposed. Structural braces are never touched (an escape outside a literal is neither JSON nor JS), every value parses back byte-identical; pins: `test/lib/inline-script-xss.test.js` (jsdom, 11 spellings) + `test/lib/inline-script-template-injection.test.js` (renders through the real fork, with a firing control). Both server-side only ⇒ pickup = restart, no re-bake. Dev inline-script splices before `</body>` use FUNCTION replacers: `String.replace(/re/, str)` expands `$`-sequences in a STRING replacement (`` $` ``/`$'`/`$&`), so dynamic content carrying a stray dollar-sequence spliced the whole document into the statusbar `<script>` (SyntaxError → statusbar and launch link vanish) on content-heavy pages while a near-empty smoke page stayed falsely green — any `String.replace(re, dynamicX)` with dynamic content must use a function replacer or escape `$`. Inspector SPA files are copied VERBATIM to dist (no minification) — an inspector-only edit rebuilds only those dist files, never the main bundle artifacts. Bound-window data fidelity (#B225): a preload-consumed popin open sets the dev toolbar's XHR overlay on BOTH consume branches exactly like a cold click (dev-gated `updateToolbar(body)` immediately before each dispatch — in consumePreload, never in the shared dispatcher, which would double-fire the cold path); the statusbar-bound Inspector window's refresh button never reopens the passive `/_gina/agent` stream (`source !== 'broadcast'` on the reopen gate — bound mode takes page-scoped data from the statusbar publisher, and a leaked stream applied bundle-wide payloads over it, blinking the Query badge at every XHR overlay); and every Query-pane re-render (filter/search/show-all plus the live-index refetch success path) derives from the live payload via renderTab('query')'s own preference (reveal swap included) instead of the module query cache, which the empty render path never clears and which survives overlay eras ending while the Query tab is inactive — a refresh no longer resurrects a closed popin's badge count. A `?ch=`-less embedded Inspector (direct URL, bookmark, a window predating bound mode) no longer silently runs those bundle-global channels (#B231): every dev page's statusbar advertises its per-tab channel id in localStorage (`__gina_last_tab_ch`) on each publish, a `?ch=`-less Inspector adopts the most-recently-published tab's channel at boot behind a liveness handshake (the bind's request must be answered by a data frame within 1.5 s — a stale advert from a closed tab tears the bound mode down and falls back to the legacy acquisition, closing the bound-mode `/_gina/logs` stream so log entries are not double-delivered once the passive agent stream attaches), and a footer badge names the active data-source mode (`bound` / `agent` / warn-tinted `global` with a tooltip pointing at the statusbar link) so a degraded bundle-global mode is visible instead of silent. That badge renders from `updateSourceModeBadge()`, which init must call on BOTH acquisition branches (#B306): it previously ran only on the non-agent branch and from `pollData()`, and since the poll timer is deliberately never scheduled under `?target=` (agent data is SSE-pushed), a URL-entered standalone Inspector kept the element's shipped `hidden` attribute and named no mode at all — while the identical `agent` mode DID render when reached through the connect form, whose timer is already ticking when `source` flips. Badging depended on how the window was opened rather than on the mode itself, which is exactly what the badge exists to prevent. The timer stays unscheduled in agent mode on purpose, and a future reader must not "reconcile" that guard to the comment that once claimed otherwise: `pollData()` is NOT a no-op under `source === 'agent'` — it repaints the active tab from cache before returning — so putting it on a timer would repaint every `pollDataMs` and fight scroll position, expanded folds and text selection; the refresh button calls `pollData()` directly and needs no timer at all. The footer memory gauge sits its unfilled track on `--bg3` with a theme-scoped inset groove shadow (#B237) — the track previously shared `.bm-footer`'s own `--bg2` background token, so the empty portion rendered invisible in both themes and a low fill read as a floating green dot; a gauge track must contrast the surface it sits on, and an inset box-shadow paints under the fill child, so the groove shades only the empty region. The Forms tab shows the page's DOM forms enriched with runtime validation state (the statusbar merge writes `u.forms[<id>]` per form), while the whole-bundle forms catalog the server seeds into `user.forms` (`page.forms` = the walked `<bundle>/forms/` directory groups — `rules`, `mocks`, `validators`, open-ended) renders as one collapsed, muted "Bundle catalog" card at the bottom (#B343): catalog keys are recognized by their presence in the pristine `gina.forms` half of the payload (which runtime merges never write), so app-custom group directories demote too, departed runtime forms (a closed popin's form) keep their own card, and a payload with no gina half falls back to the legacy per-key rendering — nothing is ever hidden. **The page whisper excludes `mocks` (#B344, every env):** `page.environment.forms` — the RFC5987-encoded export the client loader parses into `gina.forms` — ships a SHALLOW COPY of the catalog minus the `mocks` group in every environment (dev fixture data has zero client consumers: the client bundle reads `gina.forms.rules` and `gina.forms.validators` only), trimming page weight and keeping the client contract uniform across envs; server-side `conf.forms`/`page.forms` — and therefore this catalog card — keep the full set, and the shared catalog object is never mutated. **The localStorage fallback channel is re-synced by the late-bind patch (#B386, fixed 2026-08-16, shipped in 0.6.11).** `statusbar.html` mirrors `window.__ginaData` into `localStorage.__ginaData` at statusbar-execution time, which is BEFORE the render delegates append their late-bind patch script above `</body>` — and that patch mutates the IN-MEMORY object only. Without a re-sync the mirror keeps the EMIT-TIME payload forever: `metrics.weightBytes` null (null at emit by construction, since the body length is unknown until the render finishes) and the late flow entries absent. Measured live on a dev bundle: mirror `{serverMs:2339, weightBytes:null}` with 17 flow entries against an in-page `{serverMs:2860, weightBytes:628192}` with 21 — the four missing being `swig-compile`, `swig-execute`, `response-write`, `total`. Two visible symptoms, and the asymmetry between them IS the diagnostic: the View tab drops its weight badge (both weight legs falsy) while the load badge survives, because `serverMs` IS set at emit and `weightBytes` is not — so a fallback-channel Inspector shows 2 badges instead of 3, and only until something else re-syncs; and the Flow tab loses its template-compile/execute/response-write/total bars. All three patch sites (render-swig cache-hit and cache-miss, render-nunjucks) now end their patch script by refreshing BOTH channels the Inspector can read, placed AFTER the metrics assignments — ordering is load-bearing, since syncing first would re-mirror the stale payload. **localStorage alone was NOT enough, and that was the first fix's mistake:** it is only the FALLBACK channel, while a statusbar-launched Inspector runs in BOUND mode on a per-tab `BroadcastChannel`. Measured: all SEVEN `_ginaPublish()` call sites sit BEFORE the patch (`publishesAfterPatch: 0`), and a surrogate bound listener held across a real navigation received exactly ONE frame carrying `weightBytes: null` with `serverMs` set — the 2-badges-instead-of-3 symptom, reproduced on the transport itself. The patch now also republishes there, keying the channel from `sessionStorage.__gina_tab_id` (per-tab, race-free) and NEVER from the `__gina_last_tab_ch` localStorage advert, which is last-writer-wins across tabs. The subscriber applies it immediately (`setupBoundChannel`'s `onmessage` → `_bcLatest = payload; pollData()`). ⚠️ The convention `'gina-inspector-' + tabId` now spans FOUR files (statusbar publisher, SPA subscriber, both delegates) and is pinned by a test, since a rename in one strands the Inspector on a channel nobody publishes to — silently, with no error. **Generalisable: verifying the PRODUCER and inferring the CONSUMER is not verification** — the page data measured correct on all four reported URLs while the bug was fully present. The nunjucks site was also converted to a FUNCTION replacer, which both swig sites already used. **Cross-origin WRITE guard (#B384, fixed 2026-08-16 — a CSRF that was live in every release up to 0.6.9).** The admin endpoints authenticate with an AMBIENT credential (the client IP via `lib.admin.isClientAllowed`), which a browser attaches automatically, so an operator browsing from an allowlisted address — loopback by DEFAULT, i.e. the machine running the bundle — could be lured to a page that silently wrote to `/_gina/storage/gc`, `/_gina/cache/clear`, `/_gina/release/rebuild` or `/_gina/maintenance`. The first three read their whole input from the QUERY STRING and no body, so the attack needed no `fetch` and no CORS reasoning at all: an auto-submitting `<form>` sufficed. `lib.admin.isCrossOriginWrite(req)` now fronts the WHOLE family from ONE site per engine, placed above every `/_gina/*` handler so current and future handlers inherit it — the body reader `_readInstrumentBody` was the WRONG seam (it fronts only 2 of the family), and folding the check into `isClientAllowed` would have silently widened a function whose name promises an IP check. Signals, in order: `Sec-Fetch-Site` (browser-computed, a forbidden header name so page script cannot forge it, and independent of a proxy rewriting `Host`) — `same-origin`/`none` pass, `same-site`/`cross-site` refused; else `Origin` vs `:authority`/`Host`, built NEVER from `X-Forwarded-*` (#B367), with `Origin: null` refused (#CSRF3). NO browser signal ⇒ ALLOWED, since curl / the gina CLI / a deploy script carry no ambient credential. SAFE methods (GET/HEAD/OPTIONS/TRACE) are untouched, so the Inspector's deliberately cross-origin GET/SSE channels keep working — measured: the plugin source issues ZERO POSTs to `/_gina/*`, control firing at 23 hits on `/_gina/agent`. `/_gina/instrument` was NOT the worst of the family as first filed: it is key-gated (`_instrumentKeyValid`), so an attacker without the key cannot invoke it; its `access-control-allow-origin: *` is set BEFORE the key check, making only the 401 cross-origin readable. Verified live: 5 attack arms (incl. the query-param form vector and an `X-Forwarded-Host` spoof) all 403 with state never flipping, 5 control arms all allowed incl. a real browser's `no-cors` POST refused where it previously flipped the toggle. Residual, pinned: a browser sending NEITHER signal on a POST would pass — legacy-only, and narrower than the IP allowlist already fronting these endpoints. **#B708 (fixed for 0.7.1) — placement was not enough: the guard's URL test must MATCH WHEREVER A WRITE HANDLER MATCHES.** It tested `/^\/_gina\//`, while the unanchored handlers (`cache/clear`, `maintenance`, `instrument`) test the FULL url — so a leading segment (`/web/_gina/…`, `//_gina/…`) and the endpoint path at the END of the query string (`/?next=/_gina/maintenance`) reached them — and `cache/clear`, `storage/*` and `release/*` match in any case (`/_GINA/storage/gc`). Driven live on isaac (dev and prod): a cross-site `text/plain` POST to each shape got 200 and turned maintenance on (a site-wide 503). The guard now tests `/\/_gina\//i` on the full url, a superset of every write handler on both engines, locked by a source-extraction test that derives the write handlers from each condition's methods (a looser future handler turns it red) and a live boot test. Side effect: a cross-origin browser request with an unsafe method to an app URL merely containing `/_gina/` (query included) is refused too; same-origin and non-browser clients are unaffected. #B679 — the isaac `X-Forwarded-Prefix` handler in this same forwarded-header block ran its trailing-slash trim (`/\/+$/`, which backtracks quadratically on a long run of slashes) on the RAW header BEFORE the length+charset gate, on every request: a 15 KB header cost ~100–170 ms CPU (measured on a booted bundle; the regex alone ~8 s at the 64 KB an HTTP/2 header list admits). The gate now runs BEFORE the trim, so a >255 value is zeroed before any regex sees it; a legitimate ≤255 mount path is unchanged. Reflex: any per-request regex over an attacker-controllable header caps length first, then matches.
948
950
 
949
951
  177. **Couchbase connector — install-derived SDK resolution (v2 removed), `connectors.json` semantics, `getCluster()`, dev-mode index reporting** (replaces individual entries #29, #40, #41, #57, #136, #153) — connectors are keyed in `schema/connectors.json` by LOGICAL name (`primary`, `sessionStore`, `cache`, …) with the driver selected by the `connector` enum field (`couchbase`/`mysql`/`postgresql`/`sqlite`/`redis`/`ai`/…); since 0.7.5 an entry WITHOUT `connector` whose key is itself a built-in type (`"sqlite": {…}`) takes that type, filled once where `core/config.js` finalises a bundle's connectors by `lib/connector-config` `applyKeyTypes()` (types = `lib.connectorRegistry.getDriverTypes()` + `ai`) — the convention `connector:add` (which omits the field when name = type, since 0.3.7), `connector:list` and the schema already followed, while the model layer read only `connector`, so such an entry stopped the boot with `No connector found` (#B900); a set `connector` always wins and a key naming no type still needs the field. Entities load from `models/<database>/entities`; since 0.7.5 the Couchbase factory creates that directory when missing, as the six other ORM factories do — before, an entry named differently from its bucket aborted the boot with `ENOENT … scandir …/models/<bucket>/entities` on a project without it (#B894) — and the model layer creates only the models root, the one directory the Couchbase reconnect checks (before 0.7.5 it also created an empty `models/<entry key>/entities` for every entry, which nothing reads, #B901) — never introduce a separate `driver` field; the optional `version` field carries a semver range used by `connector:add --driver-version=…` for the npm-install hint. The Couchbase SDK major is derived from the project's INSTALLED `couchbase` npm version — the leading major of `dependencies.couchbase` selects `connector.v<major>.js`, which stamps `conn.sdk = { version: N }` — never from a config key, so migrating SDK majors is a driver bump (`npm install couchbase@^4`), not a config edit. SDK v2 is REMOVED as of 0.4.0: the resolver now throws a clear "SDK v2 is no longer supported — upgrade couchbase@^3/^4" error when the installed major is ≤ 2 or the connector file is missing (previously a silent fallback that crashed later with an opaque MODULE_NOT_FOUND); the v3-vs-v4 split remains for param shaping. Generalises: when a connector's behavior-version derives from an installed dependency rather than config, fail fast once the installed major drops below the supported floor. Couchbase entities expose a public `getCluster()` (on both the model-entity and N1QL-entity prototypes) returning the underlying SDK `Cluster` handle for features the ORM doesn't wrap — chiefly multi-document ACID transactions (`cluster.transactions().run(...)`, needs SDK 3.2+/4.x) — without touching private `_*` internals; it throws a coded `GINA_COUCHBASE_CLUSTER_UNRESOLVED` error when neither connection shape resolves. Dev-mode index reporting: the SDK v4 C++ binding never populates `meta.profile` despite `profile: 'timings'` being sent (confirmed on v4.6.0), so an async `EXPLAIN <statement>` fallback with a per-process per-statement cache supplies the plan instead (the first request for a new statement may show N/A; subsequent requests hit the cache), and `USE KEYS` plans surface as "KV lookup" via `ExpressionScan`/`KeyScan` operator detection. Three historical traps locked by tests: `conn._cluster.query()` must receive the full `queryOptions` object, not the raw params array (the raw form silently dropped `profile`/`scanConsistency`/`adhoc` from every query); of the connector's two `register()` dispatch paths, Option B (`!_isRegisteredFromProto`) is the ALWAYS-active one — instrumentation or logging added to Option A never executes; and (#B193, 0.6.3) the plan walker must visit the NESTED scan containers, not just `~child`/`~children` — the multi-index operators (`IntersectScan`/`UnionScan`/`OrderedIntersectScan`) put their child `IndexScan3` nodes under a `scans` array and `DistinctScan` under a singular `scan`, so before the fix any plan the planner served with more than one index extracted `[]` and the Inspector rendered the red "no index — full bucket scan" badge/banner for a fully-indexed query — a false negative inviting a pointless (write-amplifying) index build. Both extraction paths (SDK `meta.profile` and the EXPLAIN fallback) share the walker, so one fix covers both; index names still dedupe, and the Query tab already renders one chip per index so multi-index plans display correctly with no client change. A consumer-runnable SDK soak harness ships at `script/soak/couchbase-soak.js` (#CN12): it scaffolds a fully isolated throwaway project, installs a candidate `couchbase` SDK into it (`--sdk=<version>` / `--sdk-path=<dir>` — the install IS the version selector, since the connector resolves the SDK from the project node_modules and derives v3/v4 dispatch from its dependency pin), builds + boots prod, and drives N1QL (incl. a `request_plus` arm) + entity-handle KV (promise AND 4-arg callback forms) + the couchbase session store under sustained concurrent load for `--duration`, FAILING on premature process exit (a clean exit 0 counts as failure — the silent-death class it screens for), unbounded RSS growth, error-rate drift, or a dead arm. A screen, not proof: run it as the first filter on an SDK-bump candidate, ahead of a workload-shaped soak. Pure parts (arg parsing, RSS slope, verdict) are unit-tested in `test/lib/couchbase-soak-evaluator.test.js`; the live harness needs a real cluster and never runs in CI. Named scopes/collections stance (2026-08-02): document-field partitioning (`_scope`/`_collection` fields, one bucket, default collection) IS the data model; the `useScopeAndCollections` option (+ `scope`/`collection` defaults) is accepted but INERT — declared and merged, consumed by nothing — and `schema/connectors.json` says so honestly; named-collection KV is reachable per call via `entity.getConnection(scope, collection)`; native scope/collection routing is deliberately not built (demand-gated). #B203 (2026-08-02): both SDK-major resolver twins derive the major as the dependency pin's FIRST integer — the former caret-only strip mangled range pins (`~4.5.0` → `~4`, `>=4.5` → `>=4`), which slipped the v2 floor (parseInt NaN) into a misdirecting existsSync "supported majors are 3 and 4" error; a digit-less pin (`*`, `latest`) now refuses naming the pin, a package.json without a `dependencies` key no longer TypeErrors, and the v2 floor fires for range v2 pins too (`~2.5.0`). #B243 (2026-08-04): a query parameter the SDK cannot serialize — a bare `undefined`, a function, or a Symbol — was PROCESS-FATAL rather than throwable: the SDK maps `JSON.stringify` over the parameter list, those three types yield no string at all, the native binding coerces that to `""`, and the C++ core's JSON parse of `""` throws on an internal thread reaching `std::terminate()`/`abort()` — uncatchable by `try/catch`, `uncaughtException` or `unhandledRejection`, so the whole bundle died instead of the request 500-ing (measured against a live cluster on SDK 4.1.3 AND 4.7.1; 4.2.0+ maps a bare `undefined` to null but still aborts on functions and Symbols). Reachable with NO misuse of the driver: the cursor-style assembly branch (queries matching `\w+\.($|%)`) fills `queryParams[i]` for every `i < params.length` while guarding only `undefined`, so a call one argument SHORT with a trailing callback puts the CALLBACK into a parameter slot — the arity check cannot catch that shape because it only fires when the last argument is not a function. `getUnserializableParamError()` now gates the single `queryOptions.parameters` assignment (so both assembly branches and any future one are covered) and surfaces a `TypeError` coded `GINA_COUCHBASE_UNSERIALIZABLE_PARAM` naming the offending position, routed through the query callback when there is one and thrown otherwise. Serializable values are untouched: `null`, `0`, `''`, `false` and objects carrying `undefined` PROPERTIES still reach the SDK. An object whose own `toJSON()` returns undefined is deliberately left unguarded — detecting it costs a full `JSON.stringify` per parameter on every query for a shape no realistic call site produces. **`.sql` `@options` annotation — the exact contract, and the consistency gate that silently dropped keys (former #282, #B155; warns since 0.5.26):** the parser accepts ONLY `@options { … }` — a brace-delimited JS-object-literal after exactly ONE space (unquoted keys fine: a key-quoting normalisation runs before `JSON.parse`; a malformed body warns and is skipped). The historical docs-taught brace-less form (`@options consistency=request_plus`) and a double-space-before-brace both MISS the parse regex entirely. The passthrough into the SDK's query options is GATED on the `consistency` key: any other key (`adhoc`, `timeout`, `profile`, …) applies ONLY when `consistency` is present alongside it — alone it is parsed then dropped. Since 0.5.26 BOTH failure shapes warn (was silent): an unparseable `@options` mention warns with the exact working form; a gate-shut drop warns naming the ignored keys + the `"consistency": "not_bounded"` remedy; an empty `@options {}` drops nothing and stays quiet. An UNKNOWN consistency VALUE warns and falls back to `not_bounded` but STILL opens the gate — the gate keys on presence, not validity. Query-path defaults: `adhoc: false` (statement plans cached — `true` disables that) + `not_bounded`; user keys WIN over framework values (direct assignment — including dev-mode's `profile: 'timings'`). `bulkInsert` is a SEPARATE surface: a JS `options` argument, UNGATED, merged caller-wins-on-conflict / defaults-fill-missing (its default is `adhoc: true`). The gate itself deliberately stays: un-gating would make historically-inert options suddenly live for every consumer, and a bare un-gate CRASHES (the next statement dereferences `options.consistency`) — a restructure gated on field evidence, which the warns now collect. Tests: `test/core/couchbase-connector.test.js §09` drives the SHIPPED parse+gate bytes (unique-text-anchored slices — line numbers rot and the parse block's regex holds an unbalanced `{` that defeats brace-matching). **#B204 (0.6.24) — the `gina.onError` reconnect classifier is guarded; it used to THROW under every supported SDK.** `lib/connector.v3.js`/`lib/connector.v4.js` tested `err instanceof couchbase.Error`, but no supported couchnode exports a bare `Error` class (measured on a real 4.1.3 `dist/errors.js`: `Error` undefined, `CouchbaseError` + 81 siblings present, and the classifier condition executed against that surface throws `TypeError: Right-hand side of 'instanceof' is not an object`). Because that operand is evaluated FIRST, the shutdown-bucket message arm — which needs no SDK class — was unreachable too, so the classifier could not classify anything by any route. **Dispatch topology, measured:** `gina.onError` listeners fire ONLY under 4-arg (Express-engine) error-middleware invocation; Isaac's dispatchers invoke middlewares 3-arg, so the arity shim sets `error = false` and the emit branch never runs — on Isaac the listener, broken or fixed, never executes. **Fix = guard, deliberately NOT an activation:** each `instanceof` is prefixed `typeof(couchbase.Error) == 'function' &&` (4 live sites, both files). Modern SDK errors carry no numeric `.code`, so the guarded arms stay inert; the SDK-2 message string greps 0 in the 4.1.3 dist JS (`timeout` firing as control); on Express the real error now reaches the handler's designed terminal (log + JSON 500 / `next(err)`) instead of being replaced by the TypeError. ⚠️ **Do NOT "modernize" this into an active reconnect without a live-cluster gate:** gina's own `connect()` mints a NEW cluster handle per call (`couchbase.connect` at `connector.v4.js:265`) and the only `disconnect()` sits inside the code-23 arm — an activated retry loop would stack unclosed handles. Also do NOT remove the listener: `e` (`gna.js:81`) is a plain EventEmitter, and an `'error'` emit with no listener THROWS (measured), so the registration is load-bearing on Express. Tests: `§16` (both files' real condition bytes extracted and driven — no-`Error` SDK must not throw and the message arm must be evaluable, with an SDK-2-shape control green pre- and post-fix; red-first 3 red / 2 green). **#B509 (0.6.29) — a failed statement's RESULT ROWS no longer ride the synthesized query error.** Both onError sites (`register()` and `bulkInsert`) build `new Error(cause.first_error_message)` from the N1QL `cause` envelope and used to set `error.stack = trigger + '\n' + cause.http_body` and `error.cause = cause` VERBATIM — and `http_body` is the query service's WHOLE response, whose `results` is non-empty whenever the failing statement had already produced rows (a `RETURNING` DML losing a CAS race, 12009; a SELECT timing out part-way, 1080). So the rows reached every sink that printed the error: the controller error path prints `.stack` in ALL scopes; any `console.error(err)` / `logger.error(err)` prints enumerable `cause` through `util.inspect` (the logger's `inspectError` IS `util.inspect`; Node's default `maxStringLength` lets 10,000 chars of the body through); the JSON error response carries `.stack` in LOCAL scope only (stripped elsewhere, #B131 on both engines); a custom error template receives `stack` ungated. NOT sinks: the Inspector query log (`error: err.message` only) and `lib/connector-error` (reads exactly `first_error_code` + `retry`). A consumer measured 17 of 18 logged query errors in 16 h carrying 1–7 full documents each, with no interception point (the controller prints the stack before any bundle `onError` runs). Fix: `param-redact.redactResultRows(httpBody)` — the #B350 module, same fail-safe contract on the OUTPUT side — parses the envelope, replaces `results` with `[N result rows redacted]`, keeps `errors`/`requestID`/`status`/`signature`/metrics, and FAILS CLOSED (a non-string or unparseable body becomes a byte-count marker, never the raw text; it never throws); both sites set `.stack` from the redacted body and `error.cause = Object.assign({}, cause, { http_body: redacted })` — a shallow copy, so the SDK's object is never mutated and the classifier's two inputs survive. The #B153 empty-message guard is untouched. Consumer-visible: nothing reads rows out of a query error's stack any more. Server-side, load-once ⇒ bundle RESTART, no re-bake. Tests: `test/core/couchbase-b509.test.js` (helper arms incl. fail-closed and a `__proto__`-key body; both-site source pins with an anti-vacuity control; a replica proving every channel clean, with the pre-fix branch as the subtract control); `couchbase-connector.test.js §08`'s fixed replica realigned. Generalises: an error object that carries a foreign payload leaks through EVERY generic printer, not just the one you instrumented — redact at the point the payload is attached, and copy foreign objects rather than mutate them. **#B541 (0.6.31) — a connector that cannot CONNECT at boot fails loudly instead of hanging, and one failed attempt reports once instead of twice.** Consumers wait on a ONE-SHOT `ready` (`onReady` registers `self.once('ready', cb)`), and every failure path in `connect()` routes to `onError`, which only re-arms a retry — it never emits. So an unreachable cluster at boot settled nothing: `lib/model.js`'s all-or-nothing ready gate never closed, the bundle never printed the two flags `bundle:start` waits on, and the CLI killed it at ~64s (`lib/cmd/bundle/start.js`: maxRetry 15 × maxTimeout 4000ms) with no error anywhere. The loud path — `console.error` + `process.exit(1)` in `onModelReady` — was already correct and is how every OTHER connector reports a dead database (the other eight invoke the caller's callback on every path, failure included); it was simply unreachable here. Fix, both files: `init()` arms a readiness deadline and, if nothing has settled by it, emits `ready(err, null)` itself so that path runs. ⚠️ Do NOT "fix" this by un-commenting the disabled `self.emit('ready', bErr, null)` — the same 2023 hunk that commented it ADDED the retry, so un-commenting restores the loud path and destroys the retry. Tunable per `connectors.json` entry via `readyTimeout` (MILLISECONDS, default 50000, in `schema/connectors.json`); a value at or above the ~64s start budget cannot take effect because the CLI terminates first, and a non-positive/non-numeric one falls back to the default. Two deliberate shapes: the deadline is NOT unref'd (were it the only handle holding the event loop, unref would let node exit 0 silently instead of reporting), and `_markSettled()` only records the settle + disarms the timer — it does NOT gate the emit, because `core/model/index.js` attaches a persistent `.on('ready')` bridging reconnect churn onto the Inspector event signal while both `onReady` consumers use `once`, which already drops a late delivery. Retry is untouched: uncapped after a settle, so a serving bundle still survives a blip. **Same arc, the double report:** on failure the SDK settles BOTH channels — the `onBucketOpened` callback AND the awaited promise — so one failed attempt called `onError` twice, arming TWO retry chains that each armed two more (2→4→8…) and double-counting `_reconnectAttempts` so the backoff hit its 60s cap after five real attempts instead of ten; `onError` now goes through `settleOnce` minted PER `connect()` invocation (driven: counter 2 → 1). That guard also fixes a shape it was masking — `onError` dereferences `self.instance`, which is never initialised at construction and is assigned only by the callback channel, so an SDK rejection that never calls back THREW at `onError`'s first statement, arming no retry and emitting nothing, visible only as an unhandled rejection of the bare `self.connect(dbString)` (driven: counter `undefined` → 1) — a silent death, which is why it went unnoticed. v3 matters as much as v4: it is the DEFAULT when a project pins no `couchbase` dependency. Server-side, load-once ⇒ bundle RESTART, no re-bake. Tests: `test/core/couchbase-boot-deadline.test.js` (boots the REAL connector against a planted project-side SDK stub — `connector.v*.js` requires the SDK at `getPath('project') + '/node_modules/couchbase'`, so seeding the project dir IS the seam; mocked timers, because `onError` does not retain its retry handle and a real chain would re-arm forever and hang the file; a SUCCESS arm as the firing control, since `init()` reads `getConfig()` inside a try whose catch emits `ready(err)` and an unwired harness therefore makes the FAIL arm settle and read as no-defect). Generalises: a connector that reports readiness by EVENT rather than by invoking the caller's callback has no failure path unless one is built — an error-only retry loop is indistinguishable, from the gate's side, from a connector still trying. **#B608 (0.6.33) — no caller or configuration value reaches N1QL statement TEXT unvalidated.** Three splice sites, three fixes. (1) `SEARCH()`: the 2021 block matched `(search\(|search\s+\().*\)` — greedy, so the span ran to the statement's LAST `)` — and rewrote every `$N` inside it to `'"' + value + '"'` through a STRING replacement: no escaping (a search term carrying `"` made the statement malformed), `$&` expanded, `$1` also rewrote `$10`, value params that merely followed the call were re-typed as string literals, and every distinct term compiled its own prepared plan (`adhoc:false`). Its premise ("N1QL parameters are not interpolated into SEARCH()") was wrong: Couchbase documents a parameter as SEARCH()'s query argument when it resolves to a string or an object (docs 6.5 → 8.0; the engine's `ValidOperands()` accepts a static parameter since 6.5.1, source-read), and it was measured on Server 8.0 CE — ad-hoc AND prepared, a complete search-request object with the parameter nested inside, a `"`-carrying term bound without error, the plan still `IndexFtsSearch`. The block is commented out and `$N` stays bound; behaviour changes: a non-string term is no longer stringified, a value param after SEARCH() keeps its type, one prepared plan per statement. (2) Field-path `$N` (`doc.flags.$2`, which cannot be bound): `getInvalidFieldPathError()` admits only `identifier(.identifier)*` (`[A-Za-z_][A-Za-z0-9_]*`, `$` excluded) and the call is refused BEFORE dispatch with a `TypeError` coded `GINA_COUCHBASE_INVALID_FIELD_PATH`, delivered like #B243 (callback when there is one, else thrown — the Promise form throws synchronously). (3) `$scope`: `resolveScope(infos.scope, process.env.NODE_SCOPE)` resolves it ONCE at factory load (same `||` precedence; the factory runs again when a couchbase reconnect rebuilds the models through `reloadModels`, which passes the entry's `scope` since #B624 — the rebuild used to omit it and fall back to `NODE_SCOPE`; since #B893 the entry's `scope` is the user's own — `connector.v{3,4}.js` `init()` merges its SDK defaults (the inert collections `scope: '_default'` among them) into a COPY of the entry and the keep-alive ping reconnects with that copy, where merging INTO the shared entry had given an entry without `scope` the data scope `_default` instead of `NODE_SCOPE` — and the factory logs « data scope: <value> (from connectors.json "scope" | NODE_SCOPE) » at every load) against `^[A-Za-z0-9_./-]+$` (`/` stays admitted so that a scope registered under the retired `scope:add <bundle>/<scope>` form keeps booting; since #B626 `scope:add` checks the whole name and refuses `/`, pointing at the `manifest.json` `bundles.<name>.scopes` allow-list, the real per-bundle mechanism), stamps both prototypes with it and feeds `/\$scope\b/g` through a function replacer; a refusal ends the boot through the EXPLICIT terminal (`console.emerg` → `fs.writeSync(2)` → `process.exit(1)`, placed just before `return init()` so every factory-level `var x = function` is assigned) — never a bare throw: the factory runs inside the model layer's ready handler, which this connector reaches from inside the SDK's connect callback, and the SDK 4.x hands a throw from that callback back to the same callback as a connection error — logged as a failure to connect and retried, the bundle never listening (read from the SDK 4.1.3 source). Since #B617 `lib/model.js`'s `done()` catches such a throw too; the explicit terminal keeps the refusal's own message and code. Server-side, load-once ⇒ bundle RESTART, no re-bake. Tests: `test/core/couchbase-b608.test.js` — both helpers extracted from the shipped bytes and executed; the REAL connector against a recording cluster stub; the boot terminal in a CHILD process (a `process.exit(1)` in the runner takes the whole file down); comment-stripped source pins with raw-text anti-vacuity checks; the env seam `GINA_COUCHBASE_CONNECTOR_SRC` runs the whole file against pre-fix bytes (8 controls green, 32 fix arms red). Generalises: a comment asserting "the driver cannot bind X" is a claim to re-measure against the vendor docs and a live server before it may justify a splice. **#B616 (0.6.33) — the fourth splice site #B608 missed:** `bulkInsert` wrote the bucket name (the entry's `database`) bare into `INSERT INTO <bucket> (KEY, VALUE)` and `RETURNING <bucket>.*`, so a legal dashed bucket such as `beer-sample` (N1QL needs it escaped) could not be bulk-inserted into. One keyspace string, backtick-quoted with any embedded backtick doubled, now serves both clauses and the redacted log copy; no load-time refusal was added, since Couchbase bucket names may contain `.` and `%`, which the storage store's `IDENTIFIER_RE` excludes. The statement text changes for every bucket; the query means the same. Load-once ⇒ bundle RESTART. Pin: the self-contained `#B616` arm in `test/core/couchbase-concurrency.test.js` §06 (the real factory on a `beer-sample` bucket). The REST query transport is RETIRED (#B634, #B623): `useRestApi: true` used to route every N1QL query through a hand-written plain-http `http.request()` to the query service — `Authorization: Basic` in cleartext even on `couchbases://`, every `'` in the statement rewritten to `"`, parameters spliced in unescaped — so the option is now ignored with ONE warning per connector, and queries always go through the SDK (`conn._cluster.query`).
950
952
 
@@ -1075,7 +1077,7 @@ Dev-mode query instrumentation captures every database query tied to the current
1075
1077
  302. **The `stream` storage strategy (`lib/storage/src/local-stream`, #STO1) — large sequential media with RESUMABLE uploads.** Keys name an ASSET, not a file: `assets/<ulid>/original<ext>` — `original` is the reserved base-rendition name and the per-asset directory reserves the namespace future renditions land in (no rendition API in this release). Keys stay OPAQUE; never parse the directory back out. What per-asset colocation buys is OPERATIONAL grouping (one `rm -rf` per asset, one `rsync` of a subtree), NOT physical locality — a directory does not place extents, the allocator does — and gina neither prevents nor CAN prevent fragmentation: Node exposes no `fallocate` binding, native addons are not shipped, and `ftruncate` yields a fully SPARSE file (measured: a 256MB truncate reserves 0 blocks, and truncating past the free space succeeds, so it delivers neither anti-fragmentation nor an early ENOSPC). Contiguity is a filesystem/volume concern (XFS extent hints and the like); `chunkSize` (default `'8MB'`, `parseSize`) is the write stream's `highWaterMark` and nothing more. **Five capability-gated verbs beyond the shared contract** (`capabilities.resumable` true — branch on the flag, never probe): `createUpload(meta, cb)` -> `{uploadId, chunkSize, expectedSize}` / `writeSegment(uploadId, offset, stream, cb)` -> `{offset, length, received}` / `statUpload(uploadId, cb)` -> `{expectedSize, contentType, originalName, createdAt, received[], missing[], complete}` / `finalize(uploadId, cb)` -> `{key, size, contentType}` (put()'s shape) / `abortUpload(uploadId, cb)` -> `{aborted}`, idempotent. `statUpload` is NOT optional — resume is impossible unless a client can learn what landed; it is the resumable twin of `stat()`, and being computed from the session's own files it stays accurate across a process restart with no in-memory session table. **`expectedSize` is REQUIRED at create**: without a declared total finalise cannot verify coverage and `statUpload` cannot say what is MISSING (only what arrived), so a caller who does not know the size uses `put()` — the same exclusion tus takes without its defer-length extension, and strictly more useful than S3 multipart's `ListParts`, which can never name a missing part because it never learns the total. The declared size also permits an early `maxObjectSize` refusal before any byte moves, **advisory only**: it is client-supplied, so the running byte counter in `writeSegment` (which refuses a segment running past the declared end) is the real enforcement. **The KEY is minted at `createUpload` and persisted in the manifest**, never invented at finalise — minting it late means a row write that fails after the bytes are published leaves them at an address nobody holds, an unreachable orphan PLUS a session that can never finalise again. **The filesystem IS the manifest**, and the seam gains ZERO new verbs: a session is `<root>/.uploads/<uploadId>/` holding `data` (assembled IN PLACE via positional writes, `flags:'r+'` + `start`, so segments may arrive out of order and no assembly pass runs at finalise — measured, a segment-per-file layout costs ~1.9 s/GB of extra concat I/O where this costs ~4ms), `meta.json` (written ONCE through temp+rename) and one zero-byte `<offset>-<length>.ok` marker per DURABLE range. `.uploads` is a dot segment, structurally uncollidable with any caller key (the key guards reject dot segments), like `.tmp` and the `.driver` stamp. The argument for that home is FATE-SHARING, not seam economy: `fsync(data)` happens-before the marker is created, which is only enforceable while both live on the same medium — a store-backed manifest (SQLite WAL, redis, couchbase) can survive a crash the bytes did not, and a manifest claiming a range the bytes lost passes coverage and publishes ZEROS. **Coverage is an INTERVAL UNION, and that is the whole safety argument.** A hole in a sparse file reads back as ZEROS rather than erroring (measured), so an unverified finalise publishes a plausible, silently corrupt object; and SUMMING marker lengths is not enough — markers `0-800` and `400-1200` sum to exactly a declared 1600 while `1200-1600` is uncovered. So finalise sorts the markers, merges overlapping AND adjacent spans, and requires exactly one span equal to `[0, expectedSize)`. A gap is a REAL error and the session is PRESERVED so the client can complete it, never a silent publish; the message names the first gap. A segment that ends early is not an error — its marker records the RECEIVED length only, so the union stays exact and re-sends may overlap freely (re-sending a covered range is idempotent). Two further finalise guards: a data file SHORTER than the declared size under a full marker set refuses the publish (marker/bytes desync — the one shape that would still publish zeros), and one LONGER is truncated back (unreachable through the API, so it means tampering). **`finalize` is IDEMPOTENT with a heal path**: if the final path already exists it skips assembly, (re)writes the row and cleans the session — so a finalise that published the bytes and then failed on the row is completed by simply retrying it. Bytes are published BEFORE the row deliberately (the inverse manufactures rows-without-files, which cas's verify classifies as loss evidence and never auto-fixes); the residue here is the benign kind — `get()` falls through to the file path when no row exists. **Durability: `fsync` defaults TRUE, and only the DATA fsync is load-bearing** — per segment the order is positional write -> `fsync(data)` -> create marker, so a surviving marker implies durable bytes; the marker's own durability is deliberately NOT guaranteed, since a lost marker beside present bytes costs a re-send, which is the safe direction. Measured: a process SIGKILLed after an un-fsynced write still yields the full bytes to a later reader (the page cache carries them), so markers stay honest across PROCESS death without fsync — only power loss or a kernel panic opens the window. The cost is a RANGE, not one flattering figure: ~12ms per 8MB segment is ~2% of network-paced ingest at 100 Mbps, ~19% at 1 Gbps, and fsync-DOMINANT at 10 Gbps, so a LAN-ingest consumer sets `fsync:false` and accepts the documented window. The parent-directory flush is best-effort (Windows and some network mounts cannot), and macOS honours fsync as the platform defines it — the `F_FULLFSYNC` caveat cas already documents. **Abandoned sessions get their OWN age-gated sweep** on two triggers — at driver BUILD (what reclaims whatever a crashed process left behind) and on an unref'd `setInterval` — because sessions legitimately live for DAYS where a crashed put()'s temp is dead immediately. A REFUSED put() (over `maxObjectSize`, or a source that errors) does not rely on that sweep at all: its cleanup waits for the write stream's `'close'` and the CALLBACK WAITS WITH IT, so a caller told the put failed can never observe residue (#B358). Do not "simplify" that back to a synchronous `existsSync`-gated unlink — `fs.createWriteStream()` opens ASYNCHRONOUSLY, so a refusal raised from the `'data'` handler runs while the `open(2)` is still in the threadpool: `existsSync` reads false, the unlink is skipped, and the worker thread creates the file a tick later, with NO event-loop turn in between for a synchronous check to catch it (measured ~30% orphan rate before the fix). **ALL THREE local strategies carry this fix** — `sharded` and `cas` build their write stream lazily inside `spill()`, so their window opens on the OTHER arm (a source error arriving just after the spill, rather than a `maxObjectSize` refusal), which is exactly how a first pass that measured only the refusal arm wrongly concluded they were immune. Fault-injecting the single false `existsSync` answer orphans a real temp on both. Two arms reach this handler — the `'data'` refusal and `stream.on('error')` — and a measurement covering one licenses no claim about the other. `sessionTtl` default `'24h'`, `sessionSweepInterval` default `'1h'`, both `parseDuration` (unit required); `'0s'` disables the interval only, and a ZERO ttl snaps back to the default rather than meaning "off", since it would reclaim in-flight uploads. Liveness is `mtime(data)`, NOT the session directory's — `data` advances on every segment write while a directory mtime only moves when entries are added or removed — with a dir-mtime fallback so a session whose data was renamed away by a half-finished finalise stays reclaimable. The same pass reclaims `<root>/.tmp` orphans from crashed `put()`s at the same cutoff (sharded has that gap and no such sweep). **No tiering, no hashing, by design**: `inlineThreshold` and `hash` are NOT in `STRATEGY_KEYS.stream`, so setting either warns as an ignored key rather than silently doing nothing, and `capabilities` reads `{offload:false, ranges:true, dedup:false, resumable:true, inline:false}`. `release()` unlinks the object and then rmdirs the asset directory, which succeeds only while it is empty — a future rendition beside `original` correctly keeps it. **Not in this release, each still deferred or capability-gated**: a rendition API; async post-hoc checksums; an `s3` adapter; and any `storage:gc`/`storage:verify`/stats extension for stream — those stay cas-only, so a stream driver has NO `sweepNow`/`verify` and is named-and-skipped by the maintenance surface rather than erroring. Multi-process is DOCUMENTED, not enforced: parallel segment writes are safe when ranges are DISJOINT (measured — two uncoordinated processes interleaving 1MB stripes into one shared file produced byte-exact output on a POSIX-coherent local filesystem), but relaxed-coherence network mounts are UNMEASURED, so route one session's segments to one process there. Shipping `stream` also EMPTIED `DEFERRED_STRATEGIES` — the list and its boot branch stay (cheap, and the next designed-before-implemented name inherits a working message) but are now exercised by nothing, which is recorded rather than hidden.
1076
1078
  303. HTTP Range serving for stored objects — `self.serveFromStorage(driverName, key[, opts])` is the read-side companion of `self.store()`'s driver routing and the consumer `capabilities.ranges` was waiting for: a controller action serves a stored object with the whole HTTP protocol dance owned by the framework, identically on both engines (headers and status ride the response object, bytes ride `renderStream`'s two arms — no `/_gina` endpoint involved). The flow is `stat()`-gated: an unknown or released key answers 404 through `throwError` (cas hides zero-ref rows from `stat`, so a released blob 404s by construction; on `stream` a finalize-heal residue whose metadata row write failed is readable at the driver but 404s here until the idempotent finalize heals the row), and a missing/unconfigured DRIVER is an app config error — 500, never 404. Validators are minted from the layer's own invariants: `ETag: "<key>"` is deliberately STRONG because storage keys are immutable (every strategy publishes via temp+rename, cas is content-addressed, and no in-place mutation API exists), plus `Last-Modified` from the publish time; `If-None-Match` is weak-compared against that ETag (a `W/`-prefixed echo matches) and answers 304 with no driver read. Range evaluation is GET-only and capability-gated (`driver.capabilities.ranges` false ⇒ the header is ignored and no `Accept-Ranges` is advertised — the forward seam for offloading adapters): a single `bytes=a-b`/`a-`/`-n` that is satisfiable answers 206 with `Content-Range: bytes a-b/<size>` and an exact `Content-Length`; an unsatisfiable one (start at or past the size, a `-0` suffix, any range against an empty object) answers 416 with `Content-Range: bytes */<size>` and an empty body; multi-range lists, foreign units, syntactic garbage and `a-b` with a>b are IGNORED into the full 200, which RFC 9110 sanctions; `If-Range` honours the Range only on an exact validator match, so anything unevaluable degrades fail-safe to the full body rather than risking a corrupted client-side assembly. Trust model, fail-closed: the stored contentType is UPLOADER-supplied verbatim, so without `opts.contentType` the active-content types (html/xml/svg/javascript/ecmascript) downgrade to `application/octet-stream` — nosniff cannot stop a DECLARED `text/html` from rendering — and every facade response carries `X-Content-Type-Options: nosniff`; an explicit `opts.contentType` is the app's informed choice and serves verbatim. Caching defaults to `Cache-Control: private, max-age=31536000, immutable` (correct because a key's bytes can never change; `private` keeps shared caches out of the application's authorization), with `opts.cacheControl` winning verbatim; `opts.download`/`opts.filename` emit an RFC 6266 attachment disposition with control characters stripped from the uploader-supplied name (header-injection guard — Node's setHeader would otherwise THROW on a CR/LF-bearing stored originalName, inside an async callback); a name outside printable ASCII goes out as an all-ASCII `filename` fallback plus RFC 8187 `filename*` (#B1073 — a name above U+00FF sent raw threw there on HTTP/1.1 and the `uncaughtException` EXITED the bundle; #B1113 — a Latin-1 letter sent raw was saved as U+FFFD by Chromium and WebKit), and every driver callback (stat, get, getRange, resolve) runs through a guard, so any header Node refuses answers 500 through `throwError`, with the ETag and caching headers removed, instead of exiting the process. HEAD answers headers-only with full-size accounting and no driver read. Headers are applied only in the driver-success callback, so a read error routes through `throwError` with no Range headers leaked; a post-stat race (cas grace expiry mid-download, a vanished file) maps the read verbs' `STORAGE_NO_OBJECT` code to 404 and anything else to 500 — the machine codes (`STORAGE_NO_OBJECT`/`STORAGE_RANGE_UNSATISFIABLE`/`STORAGE_INVALID_RANGE`, minted by `util.codedError` with message wording byte-unchanged) shipped for exactly this discrimination. The enablers landed in the same release on `renderStream`: non-SSE Buffer chunks pass through byte-exact (the historical unconditional utf8 decode substituted U+FFFD into binary payloads, which made the delegate unusable for byte serving; valid-UTF-8 re-encodes identically and SSE keeps its decode), HEAD parity (headers-only, the iterable never consumed, a destroyable source destroy()ed), caller-set headers surviving the delegate defaults (the h2 frame literal used to beat the pending merge and the h1 setHeader clobbered — a serving caller's Cache-Control/Content-Range now ride), and the post-end `headersSent` bookkeeping guarded (getter-only on both real response classes under the file's strict mode — the swallowed throw had killed the Inspector Flow stream-write/total timeline entries on every streamed request). Deliberately NOT here: multipart/byteranges (multi-range ⇒ full 200), Range on statics (the pure `_parseRangeHeader(header, size)` helper is reusable when that arc comes), and Range on non-GET methods. Offload serving SHIPPED with the s3 adapter (#304): `capabilities.offload` ⇒ GET/HEAD answer 307 to a presigned URL after the local 304 check, and the provider serves Range natively. Tests: `test/core/serve-from-storage.test.js` (parser matrix + fail-closed contentType matrix as extract-and-execute of the shipped bytes; the protocol arms driven end-to-end on REAL drivers across sharded/cas/stream with byte-exact 200/206 assertions) + `test/core/render-stream.test.js` §13-§16 + `test/lib/storage-error-codes.test.js`.
1077
1079
  304. **s3 storage adapter (#STO1 — the layer's last step)** — the second ADAPTER: `adapter:'s3'` + `bucket` (+ optional `region`/`endpoint` (https:// prepended when scheme-less; region defaults `us-east-1` ONLY beside a custom endpoint — real AWS keeps the SDK's own chain, whose missing-region message beats a mis-signed default)/`prefix` (trailing `/` normalised; the OPAQUE key EXCLUDES it, so re-pointing `prefix` orphans stored objects exactly as re-pointing a local `root` does)/`forcePathStyle` (MinIO)/`presignExpiry` ('15m')/`sweepGrace` ('1h')/`maxObjectSize`/static credentials). Dispatch became adapter × strategy by COMPOSITION — `ADAPTER_FACTORIES = {local: FACTORIES, s3: {sharded}}` — so the flat `_FACTORIES` stays the local row (the `storage:*` CLI dispatches through it offline and source-pins it; all three CLI verbs name s3 drivers remote and SKIP them BEFORE any build, ahead of the store skip so a warn-ignored `store` key cannot mislead the reason). s3 runs `sharded` ONLY — key naming; the provider owns placement — and refuses `cas`/`stream` at boot naming why (S3 ETags are not content digests; multipart is the provider's own resumable); `strategy` may be omitted (defaults sharded). STORELESS: `store=null`, no embedded `.meta.db`, no `.driver` stamp — one PutObject atomically carries bytes + ContentType (verbatim) + `x-amz-meta-gina-name` = encodeURIComponent(originalName) capped ~1KB (URI-encoded OURSELVES — AWS's RFC 2047 handling of non-ASCII metadata values is AWS-specific, plain ASCII round-trips on every compatible; AWS-doc-measured: user metadata 2KB total, keys lowercased, IMMUTABLE after upload, matching the layer's immutable keys). `stat()` = HeadObject (strongly consistent per AWS docs; ⚠️ a missing key answers 404 only WITH `s3:ListBucket`, else 403 — the guide ships the minimal policy: GetObject/PutObject/DeleteObject/ListBucket/ListBucketMultipartUploads/AbortMultipartUpload, bucket/prefix-scoped). `release()` = DeleteObject (idempotent acknowledgement — S3 reports no prior existence, so `existed:true` is DOCUMENTED as ack-only). `put()` streams through lib-storage's `Upload` (unknown length ⇒ multipart under the hood) behind a counting transform enforcing `maxObjectSize` MID-STREAM (breach ⇒ best-effort `Upload.abort()` + the REAL cap error; reported size = the meter's count — the bytes the provider acknowledged). The crashed-put analog is an INCOMPLETE MULTIPART UPLOAD (bills storage until aborted, no expiry — AWS-doc-measured): a build-time age-gated sweep (ListMultipartUploads → AbortMultipartUpload past `sweepGrace`, one bounded page per boot, best-effort never-throw — the sharded temp-orphan shape) reclaims them; a bucket `AbortIncompleteMultipartUpload` lifecycle rule stays recommended defense-in-depth. `resolve(key[, opts], fn)` answers the reserved `{kind:'url', url, expiresAt}` — a presigned GetObject; presigning is LOCAL SigV4 computation, so existence is deliberately NOT verified (the serving facade is stat-gated; a direct caller's URL to a vanished object answers the provider's own 404 — documented, not hidden). The NEW optional middle `opts` ({contentType, download, filename, cacheControl}) rides the SIGNED `response-content-type`/`-content-disposition`/`-cache-control` overrides (signed-request-only per AWS — a presigned URL qualifies); the disposition value is the in-process one, built by a lib-local twin of controller.js's `formatAttachmentDisposition` (printable ASCII: for a name that is not, an all-ASCII `filename` fallback, then `filename*=UTF-8''…`; up to 0.7.10 the raw name, which AWS S3 re-encoded as ISO-8859-1 for a Latin-1 name and refused with a 400 above U+00FF, #B1115) and landed on the CONTRACT for all strategies: locals accept and IGNORE it (zero prior resolve() callers, measured), so one facade call site serves every driver. `capabilities` = `{offload:true` (the layer's FIRST true — and its first reader ships beside it), `ranges:true` (get/getRange are REAL GetObject(+Range) proxies: provider InvalidRange/416 → STORAGE_RANGE_UNSATISFIABLE, NoSuchKey/NotFound → STORAGE_NO_OBJECT, anything else RAW-forwarded — the typed class is the signal), `dedup:false, resumable:false, inline:false}`. `serveFromStorage()` offload path: after the stat gate AND the local If-None-Match 304 (key ETag — no presign spent), GET/HEAD → **307** (method-preserving — HEAD stays HEAD) + Location + `Cache-Control: private, no-store` on the REDIRECT (it must never outlive its signature) while the PAYLOAD's policy (default `private, max-age=31536000, immutable`; `opts.cacheControl` wins) rides `response-cache-control`; the facade runs its fail-closed contentType DOWNGRADE BEFORE presigning and hands resolve() the SAFE type — the stored-XSS guard holds when the provider serves the bytes; `opts.offload:false` forces the in-process proxy path; an offload-claiming driver whose resolve answers no url is a LOUD 500 (driver contract violation), never a silent degrade; non-GET/HEAD methods always proxy. SDK = 3 PROJECT-side packages (`@aws-sdk/client-s3` + `@aws-sdk/lib-storage` + `@aws-sdk/s3-request-presigner`; v3 required — a module without S3Client is refused by name) resolved LAZILY through `start()`'s injected `requireProjectModule` (built in gna.js from `getPath('project')` — lib/storage is framework-independent, test-enforced, and cannot reach the globals; tests inject a fake SDK via the factory's 4th `deps` arg); a missing SDK on a CONFIGURED driver is boot-FATAL with the npm hint (the no-safe-degraded-mode rationale). `${secret:KEY}` works for the static credential pair TODAY (the whole-tree config walk); omit both credentials and the SDK default provider chain runs (env / shared config / IMDS / IRSA — the container-native path, first-class). S3-compat honesty: strong read-after-write consistency (HEAD + LIST included) and the metadata semantics are AWS-DOCUMENTED behaviour; a compatible provider owns its own — stated in the guide, and the adapter uses only the core compat surface (Put/Get/Head/Delete/ListObjectsV2/ListMultipartUploads/Abort + SigV4 presigning). Tests: `test/lib/storage-s3.test.js` (REAL adapter + fake SDK that THROWS on unimplemented commands, 60) + `test/core/serve-from-storage-offload.test.js` (17 — incl. the signed-downgrade security pin and 304-before-presign).
1078
- 305. **`self.push()` — the recipient is decided SERVER-SIDE, and reaching every client requires an explicit `{ broadcast: true }` (#B364, 0.6.8; live vulnerability in every release ≤ 0.6.7).** The engine.io push primitive used to read its recipient from the REQUEST BODY (`req[method].sessionID`), so any caller on a route that reached `push()` could aim a payload at another user's session by naming its id — and OMITTING the id fell open to a broadcast to every connected socket. The payload defaults to request input too, so both the target and the content were attacker-chosen. Resolution order is now `option.sessionID` (supplied by YOUR server-side code) → the caller's own session → nothing at all, with a warn; the request body cannot influence the recipient in any branch, and an all-clients fan-out must be asked for deliberately with `{ broadcast: true }`. **The migration this forces is NARROWER than the release first stated, and the correction matters:** carrying the recipient IN THE REQUEST is the vulnerability, so a hop that threads the queueing user's session id through the body stays closed — but the HTTP-hop SHAPE is recoverable whenever that hop is AUTHENTICATED. `option.sessionID` is the FIRST branch of the resolution order, so a request-bound controller that decodes a credential its own server minted can name the recipient itself (`self.push(payload, { sessionID: verified.sessionID })`), leaving the recipient server-decided and the request body still unable to influence it. ⚠️ `0.6.7` ACCEPTS `option` but never reads it for the recipient (verified at the tag — the recipient there is `req[method].sessionID` and nothing else), so an option-only migration is a SILENT no-op before `0.6.8` and a deployment spanning both versions must write BOTH sinks. What genuinely has NO substitute is a worker with no request context at all: `push()` returns early once the request is released (`local.req == null`) and nothing outside the controller can reach the socket set (measured — zero other `eio.clients` readers across core and lib), so that shape goes through polling `GET /_gina/jobs/:id` or a transport the application owns until an explicit out-of-request channel exists — **which now DOES: `gina.pushToSession(sessionID, payload[, option][, callback])` (#B366).** It is deliberately narrow, because the failure it replaces was a wide default: the recipient is a REQUIRED argument (absent/empty is an ERROR, never a fan-out) and **no broadcast is reachable from that API at all** — the deliberate all-clients send stays in-request as `self.push(payload, { broadcast: true })`. Source the recipient from SERVER-HELD state captured when the work was queued; round-tripping a BARE recipient id through any client-writable field hands the choice back to the caller and re-opens this bug one layer up — but a SERVER-MINTED, integrity-protected token naming the recipient is a sanctioned shape (the same pattern the #B364 fix documents for self.push()'s authenticated hop): the signature fixes the recipient at mint time, so the browser can only replay a decision the server already made. Conditions: the handler VERIFIES the token and derives the recipient ONLY from the verified claims (a plaintext id beside it is never consulted; a disagreeing one is overridden and logged — tamper detection for free); absent/unverifiable fails CLOSED with no unsigned fallback; keep it short-lived, because targeting integrity is NOT replay immunity — though a token naming a destroyed/rotated session matches no bound socket (#B365) and delivers to zero. Delivery is REPORTED, not assumed: `callback(err, {delivered})` fires exactly once with the socket count and `delivered: 0` is a normal outcome, because the shape it replaces was fire-and-forget and blind (a consumer measured ~41% of their progress pushes never sending, with nothing surfacing it). Coded errors: `PUSH_INVALID_RECIPIENT` / `PUSH_INVALID_PAYLOAD` / `PUSH_CHANNEL_NOT_CONFIGURED` (no engine.io — includes the express engine) / `PUSH_CHANNEL_NOT_READY` (before the bundle's first request publishes the instance) / `PUSH_PAYLOAD_SERIALIZE_FAILED`. Also `lib.push.toSession(instance, …)` for code holding its own instance. ⚠️ **The IN-REQUEST `self.push()` now refuses the same way on a channel-less engine (#B371).** The channel is an isaac-engine facility — `serverInstance.eio` is attached there and nowhere else — so on the express engine the client lookup used to dereference `undefined` and surface as an opaque TypeError-derived 500 naming neither push nor the channel. It now warns, hands a supplied `callback` a `PUSH_CHANNEL_NOT_CONFIGURED` error — fulfilling the `callback(err, result)` contract its JSDoc had always documented but the body never once invoked — and sends nothing, WITHOUT failing the request: the condition is structural and process-wide, identical on every call, so a notification side-channel does not take down the response it rode in on. ⚠️ **The obvious escape hatch does NOT work, and fails SILENTLY — measured.** `push()` resolves the caller's session from `req.sessionID` FIRST and only then falls back to `req.session.id`, so an app that assigns **`req.sessionID`** (a plain request property) to the target before the controller runs does keep delivering — but assigning **`req.session.id`** does not: `express-session` defines it as `Object.defineProperty(this, 'id', { value: req.sessionID })` with no `writable` (verified first-hand at `session/session.js:26`, v1.17.3), so outside strict mode the write is a no-op, no error is raised, and push() resolves to a freshly minted per-request id unrelated to the target. This correction is itself a worked example of the rule: a consumer relayed "it still delivers" as MEASURED having only verified the assignment LINE EXISTED, never that it EXECUTED — it sat behind a branch that could not be reached, and would have been inert anyway. Verifying a citation exists is not verifying it runs. Receiver-side identity is the SEPARATE second axis, and it is now CLOSED too (#B365): a socket's `sessionId` used to come from `payload.session.id` — client-sent, on EVERY message, never checked — so anyone could claim another user's session and receive its pushes, needing strictly LESS than the cookie because a rendered page carries the BARE sid in its bootstrap script while the cookie carries the signed form. It is now derived once at connection from the upgrade request's own cookie, by replaying the bundle's OWN session middleware over that request (same secret/store/cookie name, zero new config, and the framework never handles the secret — it works whether or not the bundle adopted `gina.plugins.Session()`), with an INERT response so a socket upgrade can never emit `Set-Cookie` or persist a session. Fails CLOSED: no middleware / no cookie / no verify ⇒ no id ⇒ the socket matches no targeted push and receives only deliberate broadcasts. A client that still asserts an id is logged and ignored — a free impersonation detector. Rule of thumb the pair encodes: decide the SENDER's aim and the RECEIVER's identity separately, and never let either default to a client-supplied value. Rule: a primitive whose blast radius is "everyone connected" must make the wide case the explicit one — a recipient that defaults to the request, and an absent recipient that means everybody, is a broadcast primitive any caller can aim.
1080
+ 305. **`self.push()` — the recipient is decided SERVER-SIDE, and reaching every client requires an explicit `{ broadcast: true }` (#B364, 0.6.8; live vulnerability in every release ≤ 0.6.7).** The engine.io push primitive used to read its recipient from the REQUEST BODY (`req[method].sessionID`), so any caller on a route that reached `push()` could aim a payload at another user's session by naming its id — and OMITTING the id fell open to a broadcast to every connected socket. The payload defaults to request input too, so both the target and the content were attacker-chosen. Resolution order is now `option.sessionID` (supplied by YOUR server-side code) → the caller's own session → nothing at all, with a warn; the request body cannot influence the recipient in any branch, and an all-clients fan-out must be asked for deliberately with `{ broadcast: true }`. **The migration this forces is NARROWER than the release first stated, and the correction matters:** carrying the recipient IN THE REQUEST is the vulnerability, so a hop that threads the queueing user's session id through the body stays closed — but the HTTP-hop SHAPE is recoverable whenever that hop is AUTHENTICATED. `option.sessionID` is the FIRST branch of the resolution order, so a request-bound controller that decodes a credential its own server minted can name the recipient itself (`self.push(payload, { sessionID: verified.sessionID })`), leaving the recipient server-decided and the request body still unable to influence it. ⚠️ `0.6.7` ACCEPTS `option` but never reads it for the recipient (verified at the tag — the recipient there is `req[method].sessionID` and nothing else), so an option-only migration is a SILENT no-op before `0.6.8` and a deployment spanning both versions must write BOTH sinks. What genuinely has NO substitute is a worker with no request context at all: `push()` returns early once the request is released (`local.req == null`) and nothing outside the controller can reach the socket set (measured — zero other `eio.clients` readers across core and lib), so that shape goes through polling `GET /_gina/jobs/:id` or a transport the application owns until an explicit out-of-request channel exists — **which now DOES: `gina.pushToSession(sessionID, payload[, option][, callback])` (#B366).** It is deliberately narrow, because the failure it replaces was a wide default: the recipient is a REQUIRED argument (absent/empty is an ERROR, never a fan-out) and **no broadcast is reachable from that API at all** — the deliberate all-clients send stays in-request as `self.push(payload, { broadcast: true })`. Source the recipient from SERVER-HELD state captured when the work was queued; round-tripping a BARE recipient id through any client-writable field hands the choice back to the caller and re-opens this bug one layer up — but a SERVER-MINTED, integrity-protected token naming the recipient is a sanctioned shape (the same pattern the #B364 fix documents for self.push()'s authenticated hop): the signature fixes the recipient at mint time, so the browser can only replay a decision the server already made. Conditions: the handler VERIFIES the token and derives the recipient ONLY from the verified claims (a plaintext id beside it is never consulted; a disagreeing one is overridden and logged — tamper detection for free); absent/unverifiable fails CLOSED with no unsigned fallback; keep it short-lived, because targeting integrity is NOT replay immunity — though a token naming a destroyed/rotated session matches no bound socket (#B365) and delivers to zero. Delivery is REPORTED, not assumed: `callback(err, {delivered})` fires exactly once with the socket count and `delivered: 0` is a normal outcome, because the shape it replaces was fire-and-forget and blind (a consumer measured ~41% of their progress pushes never sending, with nothing surfacing it). Coded errors: `PUSH_INVALID_RECIPIENT` / `PUSH_INVALID_PAYLOAD` / `PUSH_CHANNEL_NOT_CONFIGURED` (no engine.io — includes the express engine) / `PUSH_CHANNEL_NOT_READY` (before the bundle's first request publishes the instance) / `PUSH_PAYLOAD_SERIALIZE_FAILED`. Also `lib.push.toSession(instance, …)` for code holding its own instance. ⚠️ **The IN-REQUEST `self.push()` now refuses the same way on a channel-less engine (#B371).** The channel is an isaac-engine facility — `serverInstance.eio` is attached there and nowhere else — so on the express engine the client lookup used to dereference `undefined` and surface as an opaque TypeError-derived 500 naming neither push nor the channel. It now warns, hands a supplied `callback` a `PUSH_CHANNEL_NOT_CONFIGURED` error — fulfilling the `callback(err, result)` contract its JSDoc had always documented but the body never once invoked — and sends nothing, WITHOUT failing the request: the condition is structural and process-wide, identical on every call, so a notification side-channel does not take down the response it rode in on. ⚠️ **The obvious escape hatch does NOT work, and fails SILENTLY — measured.** `push()` resolves the caller's session from `req.sessionID` FIRST and only then falls back to `req.session.id`, so an app that assigns **`req.sessionID`** (a plain request property) to the target before the controller runs does keep delivering — but assigning **`req.session.id`** does not: `express-session` defines it as `Object.defineProperty(this, 'id', { value: req.sessionID })` with no `writable` (verified first-hand at `session/session.js:26`, v1.17.3), so outside strict mode the write is a no-op, no error is raised, and push() resolves to a freshly minted per-request id unrelated to the target. This correction is itself a worked example of the rule: a consumer relayed "it still delivers" as MEASURED having only verified the assignment LINE EXISTED, never that it EXECUTED — it sat behind a branch that could not be reached, and would have been inert anyway. Verifying a citation exists is not verifying it runs. Receiver-side identity is the SEPARATE second axis, and it is now CLOSED too (#B365): a socket's `sessionId` used to come from `payload.session.id` — client-sent, on EVERY message, never checked — so anyone could claim another user's session and receive its pushes, needing strictly LESS than the cookie because a rendered page carries the BARE sid in its bootstrap script while the cookie carries the signed form. It is now derived once at connection from the upgrade request's own cookie, by replaying the bundle's OWN session middleware over that request (same secret/store/cookie name, zero new config, and the framework never handles the secret — it works whether or not the bundle adopted `gina.plugins.Session()`), with an INERT response so a socket upgrade can never emit `Set-Cookie` or persist a session. Fails CLOSED: no middleware / no cookie / no verify ⇒ no id ⇒ the socket matches no targeted push and receives only deliberate broadcasts. A client that still asserts an id is logged and ignored — a free impersonation detector. Rule of thumb the pair encodes: decide the SENDER's aim and the RECEIVER's identity separately, and never let either default to a client-supplied value. Rule: a primitive whose blast radius is "everyone connected" must make the wide case the explicit one — a recipient that defaults to the request, and an absent recipient that means everybody, is a broadcast primitive any caller can aim. **Transport (#S25):** engine.io's WebSocket transport runs on `ws`, and every engine.io 6.6.x release pins its own `ws` below 8.23.0, so an install from the registry would place an older copy under engine.io that gina's `ws` range never reaches; Isaac's `ioServer` attach block therefore hands engine.io gina's own `ws` server class as `wsEngine` (unless the block names one), which bounds pending automatic Pongs (`maxPendingAutoPongs` 60, ws's GHSA-37g9-w4hg-h9qr). A project-level `overrides` entry for `ws` decides the version gina loads too. **Upgrades (#B1140):** `Eio.attach()` installs engine.io's own upgrade listener for its path (`/engine.io/` unless `ioServer.path` says otherwise) while the websocket transport is enabled; Isaac's own listener hands engine.io every other upgrade but `/_gina/agent` (a bundle's push path, for instance), never the ones on engine.io's own path, none when there is no WebSocket server, and it drops the socket if engine.io throws; the Inspector agent's listener likewise drops a socket that another listener has already upgraded.
1079
1081
 
1080
1082
  306. **Per-scope bundle deployment — `manifest.json` `bundles[<name>].scopes` (#B373, shipped in 0.6.9).** A registered bundle used to be deployed in EVERY scope: the only exclusion was leaving it out of `manifest.bundles`, which removes it from all of them. `scopes` is an OPTIONAL allow-list with the same semantics as a route's rule-level `scopes` — **absent or null means every scope** (so every existing manifest is unchanged), `["local"]` means that scope only, `[]` parks the bundle everywhere, and a NON-ARRAY is a named manifest error rather than a silent "no scopes" (the predicate returns false for both, so reporting a type error as "not deployed" would send the operator hunting the wrong thing). ⚠️ **Deleting `releases[<scope>]` by hand is NOT a substitute and never was** — measured: BOTH build verbs walk every project scope and re-seed any missing `releases[scope]` + `target`, so a hand-deleted entry regrows on the next build even one built for a different scope; absence cannot carry intent, which is why this is a key and not a convention. A boolean inside `releases[<scope>]` was also refused: `bundle:copy` and `bundle:rename` both `for (var env in entry.releases[scope])`, so it would be iterated as an environment. **Skip vs refuse is split by whether the exclusion was ASKED FOR:** the boot loop and `project:build` (bulk) SKIP an excluded bundle with a notice naming the scope and the remedy — one parked bundle must not block a project build, and a bundle vanishing silently is the #B183 lesson; the STARTING bundle and `bundle:build <name> --scope=X` (an explicit single target) REFUSE by name, because a silent no-op on a deploy script reads as success. The starting-bundle refusal is deliberately placed BEFORE the apps loop: skipping it instead would kill the boot further down in the #B181(b) env.json guard, whose message describes an entirely different cause. The predicate is DUPLICATED in `core/gna.js` because mount resolution runs before Config exists and cannot reach that closure — a test pins the two copies as behaviourally identical, since drift would mean a bundle skipped at one layer and mounted at the other. Both gna sites mattered: the CLI mount deref sits OUTSIDE any try (an excluded starting bundle died there as an opaque TypeError before Config's named refusal could run), and the mount-resolution loop's deref sits in a try whose catch ABORTS the whole mount (so one excluded sibling would have taken the process down at any non-dev scope). Seeding is filtered in both build verbs, which is what makes the opt-out durable. Documented in `schema/manifest.json` (optional, never required) and its docs-site copy. Rule the shape encodes: when a config key already exists whose ABSENCE you are tempted to overload as intent, check who WRITES it — a value your own tooling re-creates cannot express a decision. **The declaration also survives `project:add`/`project:import` (#B375 + #B376, fixed in the same release as this feature, 0.6.9).** Those verbs used to carry a 2023-era count-mismatch reset: whenever a project's DECLARED bundle count differed from a readdir of `<project>/src` (else `/releases`), the whole `manifest.bundles` block was emptied and written back — for EVERY registered project, not just the target — then only the import target was rebuilt from a six-key template carrying no `scopes`, no `gina_version` and no custom keys, with `version`/`tag`/release targets reset to defaults. A bystander project got NO rebuild (a permanently empty `bundles` block that fails its next boot), and plain `project:add` never rebuilds at all. The reset is retired (kept commented in `lib/cmd/helper.js` per the replace-don't-delete convention) and the end-of-loadAssets rescan now runs as a UNION for the current project: manifest-declared bundles keep their entries verbatim, disk-only bundles are appended for the additive #B55 seeding, and a declared bundle whose tree is absent is WARNED about once per command (naming bundle + scanned location) — never auto-pruned, because the declaration may be precisely this entry's scopes restriction; removal stays `gina bundle:remove`'s job. The rescan also derives each bundle's `configPaths.settings` from the loop-invariant scan root (#B376 — the old loop grew the root by one segment per iteration, so every bundle after the first pointed into its predecessors' tree and the protocol/scheme settings-consistency pass silently skipped it), and `addBundlePorts` skips a declared-but-absent bundle's settings check instead of dereferencing its missing `configPaths` (a latent TypeError reachable via a manifest declaring N bundles of which some are swapped for different on-disk names). Tests: `test/lib/project-manifest-resync.test.js` (17 — source pins + union/subtract replicas, red-first validated 11-fail/6-pass against the pre-fix source). **Registration is also protocol/scheme-hygienic (#B378 + #B379 + #B380, fixed in the same release, 0.6.9):** a project's `protocols`/`schemes` lists in `~/.gina/projects.json` are DERIVED bookkeeping constrained to the framework's supported sets in `~/main.json` — they may gain a value a bundle's `settings.json` validly declares (that is how the port matrix learns what a project's bundles use), but an unsupported value is warned about by name (bundle, value, allowed set) once per command and adopted nowhere, not even as the bundle entry's default. Previously ANY string a bundle declared was adopted and persisted, and `image:build` baked the polluted list into the synthesized container's environment (`ENV GINA_PROTOCOLS=…`); worse, the enrichment pass resolved EVERY registered project's bundles against the CURRENT project's path, so two projects sharing a bundle name (an `api`/`web` in both) leaked declarations into each other's registry entries from commands that never named them — each project's bundles now resolve against its own path. The import-time heal that rewrites an invalid bundle declaration to the project default still runs (it keeps the bundle bootable) but reports each change by name as a warning instead of a debug line, and the port-setup merge reads its source list by its own index (it read the target's, pushing `undefined` on overshoot — no demonstrated consequence, fixed for correctness) and admits only framework-supported values, so stale `ports.json` keys from a framework update cannot re-enter the lists. The runtime boot path never reads the project lists (measured — `core/gna.js` zero references, `core/config.js` one comment; `core/server.js`'s read is a dead variable), so pickup is CLI-side only. Tests: `test/lib/project-protocol-hygiene.test.js` (19 — pins + adoption/merge replicas with subtract arms, red-first 12-fail/7-pass against the pre-fix source). **Reading `manifest.json` (#B891, 0.7.5):** every reader — the bundle and project CLI commands, `gina-container`, the boot (`gna.js`) — parses it as `requireJSON()` does, so `//` lines and a `/** … */` docblock are ignored; nine readers used plain `require()` or `JSON.parse`, and one comment line made `bundle:list` crash, `bundle:status` call the bundle missing, `project:status` print nothing, `gina-container` refuse, and a bundle started another way die reading `project.bundles` of `undefined`. They parse with the global `parseJSONWithComments(text, filename)`, which strips comments as `requireJSON()` does but throws an Error naming the file (the JSON error as its `cause`) instead of exiting the process — `requireJSON()` itself calls `process.exit(1)` on an unreadable or malformed file (outside a controller stack), so it is the wrong reader for a CLI command, the daemon or the launcher. The CLI does not keep comments when it rewrites the file (`bundle:add`). Tests: `test/core/manifest-comments-b891.test.js` (9 — red-first 1/9 under Node and Bun; with only `gna.js` reverted, the boot arm alone fails). **The daemon's own reads (#B890, 0.7.5):** `bundle:start` runs inside the framework daemon, and its configuration load (the command helper's `loadAssets()`) read the project's `manifest.json` and `env.json`, and every registered project's `manifest.json`, with `requireJSON()`, as `bundle/start.js` read the project's `package.json`: a malformed or unreadable one ENDED THE DAEMON (measured: its port and MQ listener gone, the CLI printing only « the framework ended this command before it reported the outcome »). They now read without exiting: an unusable file of the current project refuses the command with « <file> cannot be used: <reason> » through the helper's `exit()`, which inside the daemon ends only that client (#B855) and in an offline command exits 1; another project's unusable `manifest.json` is skipped with an error line, as #B24 skips a missing one. A missing `manifest.json` is still rewritten from the template, and `bundle:start` then refuses the bundle as not registered instead of throwing on `def_env`. Pickup: `gina framework:restart` (the daemon caches the command helper). Test: `test/integration/daemon-bundle-start-unusable-file-b890.test.js` (8 — red-first 1/8 under Node; under Bun 1 of the 7 that run, the unreadable arm skipping as root). **Gina's own state files (#B906, 0.7.5):** the command helper read `~/.gina/main.json` and `projects.json` (`isCmdConfigured()`) and `ports.json` / `ports.reverse.json` (`loadAssets()`, twice on its main path) with `requireJSON()` too, so a malformed or unreadable `projects.json`, `ports.json` or `ports.reverse.json` ended the daemon the same way (measured, 6 of 6 arms). They now go through the same reader and refusal. `bin/cli` reads `main.json` before it sends `bundle:start` (the `def_framework` sync) inside a `try` that `requireJSON()`'s exit defeated; it now reads with `parseJSONWithComments()` and only warns, and the daemon refuses. The offline status commands (`bundle:status`, `bundle:list`, `project:status`, `service:list`) refuse an unusable ports file in the same one line: their own « tolerant » `try` never caught `requireJSON()`'s exit, and `loadAssets()` reads first (measured: exit 1 with a long message before, one line now). A missing `ports.reverse.json` is recreated as `{}` by the framework init and shown as `(no port)`. Not changed: the framework init's reads of `main.json` and `projects.json` (its check chain runs in an offline command's CLI process and at the daemon's own start; `onListen` skips it for an online command; the `main.json` read changed with #B938, below), and the offline port allocation (`getPortsList()` / `setPorts()`, reached only after `loadAssets()` has read the same files). Pickup: `gina framework:restart`. Test: `test/integration/daemon-bundle-start-state-file-b906.test.js` (9 — red-first 7/9 under Node; under Bun 5 of the 7 that run, the 2 unreadable arms skipping as root). **The launchers' and the bundle's reads of `~/.gina` (#B934, #B928, 0.7.5):** `gina-container` read `~/.gina/<short>/settings.json`, `projects.json` and `ports.reverse.json` with `JSON.parse`, so a hand-edited trailing comma or `//` comment stopped it with an uncaught SyntaxError naming no file, and its `main.json` warning named none. They now go through `parseJSONWithComments()`: comments and a trailing comma are accepted (with a warning), and an unusable file stops the launcher with « [ gina-container ] <file> cannot be used: <reason> », exit 1; `main.json` keeps its non-fatal warning, now naming the file. `gina-init` parses its config file (`GINA_INIT_CONFIG` / `--config`) and the previous `settings.json` (the `bind_host` it keeps) the same way, so a trailing comma there no longer resets `bind_host` to the loopback default. Past the launcher, the bundle's boot read `projects.json` and `ports.reverse.json` (`core/gna.js`), then `ports.json` too (`core/config.js`), with a plain `require()`: they now use `requireJSON()`, so the same comma passes the bundle. Underneath (#B928): `lib/logger` requires the helpers before it assigns its exports, so the logger `helpers/json` bound when it loaded was the logger's first, empty exports. In the two launchers, whose only instance of `helpers/json` is that one, `parseJSONWithComments()` and `requireJSON()` therefore refused a trailing comma (`manifest.json` included: the warning threw and the retry fell through to the parse error) and `requireJSON()` threw on a malformed file where it exits; in every process, the logger's own reads while it loads (the home `settings.json` log level, `~/.gina/user/extensions/logger/default/config.json`) refused one. `helpers/json` now reads the logger when a function runs, testing an own property so node prints no « inside circular dependency » warning; while the logger is still loading, a warning goes to node's own console (`require('console')`) and a failure still throws into the logger's own `catch`. Not changed: the CLI commands that read `projects.json` with `require()` (shielded, #B938 below), and `helpers/path`, `helpers/task` and `helpers/context`, which keep the same empty exports in the launchers but are not reached there (#B939). Pickup: restart a running bundle (`gna.js`, `config.js` load once); the launchers read their code at each start. Tests: `test/lib/helpers-json-logger-b928.test.js` (10 — red-first 8/10 under Node and Bun), `test/integration/container-boot-home-files-b934.test.js` (13 real boots — red-first 10/13; with only `gna.js` and `config.js` reverted, the comma and comment arms of `projects.json` and `ports.reverse.json` fail), `test/bin/gina-init-json-files-b934.test.js` (6 — red-first 4/6). **The framework init's `main.json` and `env:add`'s ports files (#B938, 0.7.5):** the init's `checkIfMain()` step (every offline command's CLI process and the daemon's own start) read `~/.gina/main.json` with a plain `require()`, so a `//` comment or a trailing comma stopped every offline command and `gina start` with node's SyntaxError, while `bin/cli` and the command helper accepted both; `env:add` read `ports.json` and `ports.reverse.json` with `require()` right after the helper had accepted the same file with a warning. These four reads now go through `parseJSONWithComments()`, fresh from disk. A `main.json` that is still not JSON, or cannot be read, refuses the command with « main.json cannot be used: <reason> » (the init chain prints `Error: …` and exits 1) before the step's commit can rewrite it; the commit rewrites the file as plain JSON, so a comment or a comma does not stay in it. Not changed, measured shielded: the ten CLI handlers that read `projects.json` with `require()` — the init's `checkIfProjects()` reads that file with `requireJSON()` and always rewrites it before any handler runs. Pickup: none, each command reads `lib/cmd` when it runs. Test: `test/bin/cli-home-files-b938.test.js` (14 — red-first 9/14, the five controls passing).
1081
1083
  307. **Express engine — Express 5 supported, range declared `>= 4 < 6` (#B211, shipped in 0.6.9).** A bundle with `settings.server.json > engine: "express"` could not boot on Express 5, twice over: (1) the engine-agnostic catch-all mounted `all('*')`, and Express 5's router (path-to-regexp v8) REJECTS the bare-string wildcard at mount time — `TypeError: Missing parameter name`, exit before `listen()`; (2) past the mount, Express 5 defines `req.query` as a prototype GETTER (v4 assigned it from its auto-mounted query middleware as an own property), and the framework's request pipeline ASSIGNS `request.query` at 8 sites under `'use strict'` — each a per-request `TypeError: Cannot set property query ... which has only a getter`. Fixes: the catch-all pattern is ENGINE-CONDITIONAL — express mounts the RegExp `/(.*)/ ` (accepted + live-dispatching `/`, webroot and deep paths on Express 4 AND 5), while isaac KEEPS the string `'*'` because its request listener's dispatch gate is literally `path === '*' || path == request.url` (server.isaac.js) — a RegExp there matches nothing and every request HANGS with no response (measured; the gate is pinned by `test/core/express-engine-compat.test.js` as a tripwire). The express adapter (`core/server.express.js`) shadows `query` on the per-app request prototype with a writable own DATA property — a measured no-op on Express 4, and on 5 it restores the framework's owns-the-query-parse contract. The adapter logs the detected express version at engine construction (`engine: express v<X> (supported: >= 4 < 6)`), and an out-of-range major (`< 4` or `>= 6`) logs a LOUD warning but still boots — warn-not-refuse by design decision (a wrong refusal is a total outage; a wrong warning is a log line). Express stays CONSUMER-PROVIDED: deliberately not a framework dependency, and NEVER a peerDependency — npm >= 7 auto-installs peers, which would force express onto every consumer; install `express@^5` (or `@^4`) in the project itself. Server-side only ⇒ pickup = bundle restart, NO re-bake. Verified by a live A/B boot smoke on express 4.22.2 AND 5.2.1 (same scaffold, both serve `/web/` + `/_gina/health/check` + `/_gina/info` 200 and complete a POST through the query-assign sites) plus 13 unit pins incl. a pure-node replica of the getter mechanism. **#B666 (0.7.0):** the shadow alone left `request.query` UNDEFINED on Express 5 until the pipeline assigned it (its GET/HEAD branches only), and the DELETE branch plus the empty-body fallback of the POST/PUT/PATCH branches count it raw — so ONE DELETE, or one body-less POST/PUT/PATCH, killed the bundle (uncaughtException → SIGTERM; unauthenticated, any URL, before routing; measured live on express 5.2.1 against the released 0.6.33 — Express 4 and isaac never affected). The shadow is now an ACCESSOR on `app.request` (`queryAccessorDescriptor` in `core/server.express.js`): the getter materialises Express's OWN parse — its getter beneath the shadow, so the app's `query parser` setting is honoured at read time — as a PLAIN, writable own property on the first read (`querystring.parse`, the `simple` default on 5, returns a null-prototype object, which inherits no `count()` for the documented `req.get.count()` to call; the copy is built with `defineProperty`, so a client `__proto__` key never reaches the setter), and the setter stores; on Express 4 (no getter on the chain) it reads undefined and stores — the data property's behaviour byte for byte. ⛔ NO `app.use` at engine construction: gina registers nothing before the bundle's `onInitialize`, and creating Express's router early freezes `strict routing` / `case sensitive routing` on both majors and the query parser on Express 4 ahead of a consumer's `app.set(...)` — the first draft did exactly that and was withdrawn on that measurement. Rated High 7.5 (CWE-476, the #B591 class), affected `>= 0.6.9 <= 0.6.33` with Express 5. Tests: `test/core/express-query-b666.test.js` (the shipped helpers extracted and driven on pure-node replicas of both Express request prototypes; red-first 19/24 against the released adapter). **#B668 (0.7.0):** the express engine never stripped the query string from `request.url` (isaac does, in its listener, before dispatch), so on BOTH majors every URL carrying `?…` answered 404 — routes AND statics (`/css/app.css?v=3`) — because `handle()`'s pathname, `handleStatics` and `fitsWithRequirements` all compared the query-carrying URL (measured live on 4.22.3 and 5.2.1 against the released 0.6.33; not an S6 regression). `core/server.js` now strips it for express inside the catch-all, after the `/_gina` handlers (they read `?key=` off the full URL) and before the webroot filter, the statics and the routing loop — materialising `request.query` FIRST, because the accessor reads the URL lazily, and inside that layer so a throwing `query parser` is a 500 through Express's own catch, never a process exit; `request.originalUrl` keeps the full URL. Consequence: the warm route cache's `method:path` keys collapse query variants on express exactly as on isaac (#B422 re-checks the verdict per hit). Tests: `test/core/express-url-query-strip-b668.test.js` (the shipped block extracted and executed, the isaac arm as the inert control; red-first 7/8 against the released server.js). **#B847 (0.7.4):** with Express 4 and a `querystring`-based `query parser` (`app.set('query parser', 'simple')`), `req.delete` had no prototype on every DELETE to a path after the first (the routing loop copies the bag on a cold route only), so `req.delete.count()` and `.hasOwnProperty()` were not functions (measured on express 4.22.3); the DELETE branch now hands over a plain copy holding the query's own keys on every engine (`copyOwnQueryKeys`, shared with #B848), which also drops a `__proto__`/`constructor`/`prototype` field from `req.delete` on Express. Express 4's default `extended` parser (qs) and Express 5 (through #B666's accessor) already gave a plain object.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gina",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
4
4
  "description": "MVC framework for Node.js and Bun with built-in HTTP/2, multi-bundle architecture, and scope-based data isolation — no Express dependency",
5
5
  "keywords": [
6
6
  "nodejs",
@@ -76,12 +76,12 @@
76
76
  "gina-container": "bin/gina-container",
77
77
  "gina-init": "bin/gina-init"
78
78
  },
79
- "main": "./framework/v0.7.11/core/gna",
79
+ "main": "./framework/v0.7.12/core/gna",
80
80
  "exports": {
81
81
  ".": {
82
82
  "types": "./types/index.d.ts",
83
83
  "import": "./index.mjs",
84
- "require": "./framework/v0.7.11/core/gna.js"
84
+ "require": "./framework/v0.7.12/core/gna.js"
85
85
  },
86
86
  "./gna": {
87
87
  "types": "./types/gna.d.ts",
@@ -119,7 +119,7 @@
119
119
  "@rhinostone/swig": "^2.12.1",
120
120
  "engine.io": "^6.6.10",
121
121
  "psl": "^1.15.0",
122
- "ws": "^8.22.0"
122
+ "ws": "^8.23.0"
123
123
  },
124
124
  "devDependencies": {
125
125
  "@playwright/test": "^1.48.0",
package/types/index.d.ts CHANGED
@@ -711,7 +711,7 @@ declare namespace gina {
711
711
  /** `method: "ws"` routes: the channel handler at `<bundle>/channels/<name>.js`. */
712
712
  wsHandler?: string;
713
713
  /** `method: "ws"` routes: per-route WebSocket options. */
714
- wsOptions?: { maxPayload?: number; protocol?: string; closeTimeout?: number };
714
+ wsOptions?: { maxPayload?: number; protocol?: string; closeTimeout?: number; maxPendingAutoPongs?: number };
715
715
  /** URL-param bindings (`"id": ":id"`) and any static route metadata. */
716
716
  [key: string]: any;
717
717
  }
@@ -1 +0,0 @@
1
- 0.7.11