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