learning_ai_common_plat/scripts/gitea
saravanakumardb1 3a5196417d fix(errors): make ServiceError instanceof cross-instance-safe
When docker-prep packs @bytelyst/* as tarballs, a second physical copy of
@bytelyst/errors can be created, breaking prototype identity. The
fastify-core error handler's 'error instanceof ServiceError' then returned
false, mis-mapping ConflictError/BadRequestError/etc. to HTTP 500.

Fix: brand ServiceError instances with a global Symbol.for() key and add a
Symbol.hasInstance that recognizes any branded instance for the base class,
while preserving prototype-chain semantics for subclasses. Resilient to
duplicated module copies without touching call sites.

- errors: brand + custom hasInstance (+3 cross-instance unit tests)
- fastify-core: regression test (duplicated-copy ServiceError -> 409 not 500)
- bump @bytelyst/errors 0.1.11 -> 0.1.13, published to Gitea registry
2026-05-28 22:02:35 -07:00
..
.publish-manifest.json fix(errors): make ServiceError instanceof cross-instance-safe 2026-05-28 22:02:35 -07:00
add-host-runner.sh feat(gitea): docker-mode env hygiene + document containerized job migration 2026-05-28 19:16:52 -07:00
bootstrap-vm.sh feat(gitea): add bootstrap-vm.sh for fresh cloud VM setup 2026-05-27 01:20:56 -07:00
ci-publish-packages.sh chore(gitea): rename npm package owner ByteLyst -> learning_ai_user 2026-05-26 18:38:57 -07:00
doctor.sh feat(gitea): parameterize owner via GITEA_NPM_OWNER + add doctor/token helpers 2026-05-27 00:41:47 -07:00
harden-publish-config.sh chore(gitea): rename npm package owner ByteLyst -> learning_ai_user 2026-05-26 18:38:57 -07:00
publish-local-packages.sh chore(gitea): rename npm package owner ByteLyst -> learning_ai_user 2026-05-26 18:38:57 -07:00
publish-outdated-packages.sh chore: record gitea package backfill 2026-05-27 18:27:43 +00:00
register-runner.sh feat(gitea): reproducible Actions runner registration + harden runner config 2026-05-28 18:05:55 -07:00
release-packages.sh chore(gitea): rename npm package owner ByteLyst -> learning_ai_user 2026-05-26 18:38:57 -07:00
run-registry-tests.sh chore(gitea): rename npm package owner ByteLyst -> learning_ai_user 2026-05-26 18:38:57 -07:00
token.sh feat(gitea): parameterize owner via GITEA_NPM_OWNER + add doctor/token helpers 2026-05-27 00:41:47 -07:00