@starci/eslint-grammar-core 0.15.12 → 0.15.13
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
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.13 - 2026-10-29
|
|
4
|
+
|
|
5
|
+
- Changed: the peer moves to the 0.15.13 cohort (eslint-canon-fe 9.5.2); the bundled slot manifest 3.11.0 adds the managed lite slot `app.db.image` (`db/Dockerfile`), narrows `ruleParams.db.extensions` to what the official postgres image plus pgvector carries (pgcrypto, pg_trgm, vector, uuid-ossp, unaccent, btree_gist; no pgmq, pg_cron, pg_net or supabase_vault) and gives `@nestjs/schedule` and `cron` one owner, `platform/jobs`, in `infraOwners`; the bundled rule catalog adds R335 `BE_JOBS_SCHEDULER_OWNER` and its R250 and R276 laws name the platform/jobs tick and the db image; the bundled canon pins name hfs 4.11.0, eslint-canon-be 3.8.0, eslint-canon-fe 9.5.2 and the Grammar family 0.15.13 and pin `@nestjs/schedule` 6.1.3 (CommonJS on the Nest 11 line) and `cron` 4.4.0. No rule changed.
|
|
6
|
+
|
|
3
7
|
## 0.15.12 - 2026-10-29
|
|
4
8
|
|
|
5
9
|
- Changed: the peer moves to the 0.15.12 cohort (eslint-canon-fe 9.5.1); the bundled slot manifest 3.10.0 adds the lite slot `be.platform.database.entities`, the entity registry (slot fields `role: entity-registry` and `importedBy`, validated by the manifest shape); the bundled canon pins name hfs 4.10.1, eslint-canon-be 3.7.1, eslint-canon-fe 9.5.1 and the Grammar family 0.15.12. No rule changed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starci/eslint-grammar-core",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.13",
|
|
4
4
|
"description": "ESLint rules for the core Grammar's component, token and composition contracts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"node": ">=22"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@starci/eslint-canon-fe": "9.5.
|
|
44
|
+
"@starci/eslint-canon-fe": "9.5.2",
|
|
45
45
|
"eslint": ">=9",
|
|
46
46
|
"typescript": ">=5.9"
|
|
47
47
|
},
|
|
@@ -31,35 +31,35 @@ pins:
|
|
|
31
31
|
source: packages/event-stream/package.json
|
|
32
32
|
why: 'the one server-sent-events client of every front end (fe-stack event-stream, owner:event-stream-package): the transport client layer (modules/api/sse/clients) creates one instance for the app with the bearer token source and the stream operations follow on it; it carries Last-Event-ID resume, the capped doubling backoff, the heartbeat timeout, the single 401 renewal and the useSWRSubscription adapter, so no app keeps a hand-written reader.'
|
|
33
33
|
'@starci/grammar':
|
|
34
|
-
version: 0.15.
|
|
34
|
+
version: 0.15.13
|
|
35
35
|
group: starci
|
|
36
36
|
install: registry
|
|
37
37
|
side: fe
|
|
38
38
|
source: packages/grammar/package.json
|
|
39
39
|
why: 'the grammar front ends read: the brand layer sets `--font-sans` and `--font-mono` and the grammar reads them; it carries the Input tel kind, the copyable and read-only Input, the IconButton disclosure props and count badge, ChatBubble, FillViewport, Textarea mentions and Enter-to-send, the leading PrimaryRailLayout rail, the plate-less Image, ListRow, the soft Alert, Progress steps, the floating primary IconButton, FlowGraph, the STATE-8 loading views and the bordered selectable TagGroup chips. The runtime source version wins for a @starci package.'
|
|
40
40
|
'@starci/eslint-canon-be':
|
|
41
|
-
version: 3.
|
|
41
|
+
version: 3.8.0
|
|
42
42
|
group: starci
|
|
43
43
|
install: registry
|
|
44
44
|
side: be
|
|
45
45
|
source: packages/eslint-canon-be/package.json
|
|
46
46
|
why: 'the back-end ESLint canon: `loadHfs(import.meta.url)` of be/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the be side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; `starciBeConfig({ hfs: loadHfs(import.meta.url) })` is the typed factory and the BE-CONVENTION laws are its rules.'
|
|
47
47
|
'@starci/eslint-canon-fe':
|
|
48
|
-
version: 9.5.
|
|
48
|
+
version: 9.5.2
|
|
49
49
|
group: starci
|
|
50
50
|
install: registry
|
|
51
51
|
side: fe
|
|
52
52
|
source: packages/eslint-canon-fe/package.json
|
|
53
53
|
why: 'the front-end ESLint canon: `loadHfs(import.meta.url)` of fe/eslint.config.mjs finds the app-root hfs.json (kind app) and gives every linted file the view of the fe side, and the project graph is built per side; its bundled runtime copies (slots, canon-pins, failure codes, the architecture machine) put .starcistacks and .sops.yaml at the app root; the front end has no tests (FE_NO_TESTS R97 in hfs) and no-vietnamese-in-source (R91) applies.'
|
|
54
54
|
'@starci/eslint-grammar-core':
|
|
55
|
-
version: 0.15.
|
|
55
|
+
version: 0.15.13
|
|
56
56
|
group: starci
|
|
57
57
|
install: registry
|
|
58
58
|
side: fe
|
|
59
59
|
source: packages/eslint-grammar-core/package.json
|
|
60
60
|
why: 'the StarCi Grammar component API lint, versioned with @starci/grammar; front ends compose this family package with the universal FE canon.'
|
|
61
61
|
'@starci/eslint-grammar-offset-pop':
|
|
62
|
-
version: 0.15.
|
|
62
|
+
version: 0.15.13
|
|
63
63
|
group: starci
|
|
64
64
|
install: registry
|
|
65
65
|
side: fe
|
|
@@ -106,7 +106,7 @@ pins:
|
|
|
106
106
|
source: packages/ai-router/package.json
|
|
107
107
|
why: 'the AI pool router of a back end: a NestJS module that routes OpenAI-compatible chat, stream and embeddings calls across keys, models and providers, with @starci/ai-router/testing for its specs; @starci/jest-preset compiles it as an ESM-only dependency.'
|
|
108
108
|
'@starci/hfs':
|
|
109
|
-
version: 4.
|
|
109
|
+
version: 4.11.0
|
|
110
110
|
group: starci
|
|
111
111
|
install: registry
|
|
112
112
|
side: both
|
|
@@ -600,6 +600,16 @@ pins:
|
|
|
600
600
|
group: framework
|
|
601
601
|
side: be
|
|
602
602
|
why: 'PassportStrategy of integrations/passport; 11.0.5 is CommonJS on the Nest 11 line (12.0.0 is ESM-only and breaks Nest 11 jest under the CommonJS transform of @starci/jest-preset), as nivo-lite runs it.'
|
|
603
|
+
'@nestjs/schedule':
|
|
604
|
+
version: 6.1.3
|
|
605
|
+
group: framework
|
|
606
|
+
side: be
|
|
607
|
+
why: 'the tick scheduler of platform/jobs, the one owner that imports it (R335, ruling lite-official-postgres-image); 6.1.3 is CommonJS on the Nest 11 line (12.x is ESM-only and breaks Nest 11 jest under the CommonJS transform of @starci/jest-preset).'
|
|
608
|
+
cron:
|
|
609
|
+
version: 4.4.0
|
|
610
|
+
group: framework
|
|
611
|
+
side: be
|
|
612
|
+
why: 'CronJob of the platform/jobs tick scheduler; the exact version @nestjs/schedule 6.1.3 depends on, so one cron is installed.'
|
|
603
613
|
passport:
|
|
604
614
|
version: 0.7.0
|
|
605
615
|
group: framework
|
|
@@ -4176,7 +4176,7 @@ rules:
|
|
|
4176
4176
|
editions: [lite, full]
|
|
4177
4177
|
docs:
|
|
4178
4178
|
- {path: docs/application-stacks.md#r250-deploy-scan, editions: [lite, full]}
|
|
4179
|
-
law: "In lite and full apps, scheduled work belongs to the back-end queue scheduler, a
|
|
4179
|
+
law: "In lite and full apps, scheduled work belongs to the back-end queue scheduler, a platform/jobs tick (R335) that enqueues through the queue outbox or a declared replicated-job. Deployment files, scripts, workflows, compose files and Dockerfiles install no host crontab, cron.d entry, systemd timer, @reboot job or at job; a workflow does not schedule app work. Docker compose up, down and pull run only against an explicitly dev environment. Deploy shell scripts delegate to docker, starci or the app CLI, and contain no node -e, psql, inline SQL or downloaded shell logic."
|
|
4180
4180
|
kinds: [check]
|
|
4181
4181
|
gates: [settle, land, ci]
|
|
4182
4182
|
failureCodes: ["HFS_HOST_CRON", "HFS_DEPLOY_NO_LOGIC", "HFS_DEPLOY_COMPOSE_ON_VPS", "HFS_DEPLOY_SCHEDULER"]
|
|
@@ -4701,7 +4701,7 @@ rules:
|
|
|
4701
4701
|
- {path: packages/hfs/src/hfs-stacks-full-fixtures.spec.mjs, edition: full}
|
|
4702
4702
|
- id: R276
|
|
4703
4703
|
code: "STACKS_LITE_SELFHOSTED_DB"
|
|
4704
|
-
law: "Lite runs exactly one database, its db component of image
|
|
4704
|
+
law: "Lite runs exactly one database, its db component of the image its managed db/Dockerfile builds (the digest-pinned official postgres image plus pgvector, ruling:lite-official-postgres-image) for vector search too, and no other PostgreSQL, MongoDB or Qdrant backing image, even when declared (owner:lite-vector-is-pgvector, ruling:lite-self-hosted-postgres-passport-minio). A Redis image runs only when hfs.json sides.be.backing declares redis (ruling:R212/case-10), as one minimal instance; a declared Redis runs as exactly one stack service, with AOF persistence (`appendonly yes`, `appendfsync everysec` or `always`, never `no`) on a writable named volume so queue jobs survive a restart and with no maxmemory-policy but noeviction so none is evicted. A queue job Redis loses inside the at most one second `everysec` leaves unwritten is not lost work: every job is born from a Postgres outbox row, and the relay marks that row sent only after Redis confirms the job is in its append-only file (WAITAOF) and still holds it, so a job Redis did not persist leaves its row waiting and the relay adds it again (examples/lite-app queue-relay.service.spec.ts and bullmq-queue-transport.client.spec.ts). A sidecar keeps its own SQLite on a named persistent volume declared by its component and mounted in the rendered model, and never uses the app's declared Redis, which serves the back-end app services only; a sidecar requiring another database, that Redis included, is refused. Full retains its declared backing topology."
|
|
4705
4705
|
kinds: [check]
|
|
4706
4706
|
gates: ["settle","land","ci"]
|
|
4707
4707
|
failureCodes: ["STACKS_LITE_SELFHOSTED_DB", "STACKS_SIDECAR_VOLUME_UNDECLARED", "STACKS_SIDECAR_DB_UNSUPPORTED", "STACKS_LITE_REDIS_PERSISTENCE"]
|
|
@@ -5849,3 +5849,27 @@ rules:
|
|
|
5849
5849
|
source: owner
|
|
5850
5850
|
quote: "big refactor đi … không viết raw sql như thế theo starci-academy-be"
|
|
5851
5851
|
ruling: "Lite persistence moves to TypeORM entities on the EntityManager, the shape of full and starci-academy-be (ruling lite-persistence-typeorm-entities)."
|
|
5852
|
+
- id: R335
|
|
5853
|
+
code: "BE_JOBS_SCHEDULER_OWNER"
|
|
5854
|
+
law: "Recurring work is a tick of platform/jobs (ruling lite-official-postgres-image): JOB_TICKS of job-ticks.contracts.ts lists the ticks as data, and only job-tick.service.ts (JobTickService, which registers one CronJob per tick in SchedulerRegistry) and jobs.module.ts (which composes ScheduleModule.forRoot()) import @nestjs/schedule or cron; no file uses the Cron, Interval or Timeout decorator. JobTickService takes advisoryXactLock(tx, \"tick:<name>\") and claims the tick's UTC minute through callDbFunction(tx, \"job_tick_claim\", ...) in the transaction that writes the queue outbox row, so of the replicas that fire a tick exactly one enqueues it once per minute."
|
|
5855
|
+
kinds: [lint]
|
|
5856
|
+
gates: [pre-commit, settle, land, ci]
|
|
5857
|
+
failureCodes: ["BE_JOBS_SCHEDULER_OWNER"]
|
|
5858
|
+
enforcers:
|
|
5859
|
+
- {kind: eslint-be, id: jobs-scheduler-owner}
|
|
5860
|
+
editions: [lite, full]
|
|
5861
|
+
docs: [contexts/code/be/jobs.md]
|
|
5862
|
+
proves:
|
|
5863
|
+
- packages/eslint-canon-be/src/jobs-scheduler.spec.ts
|
|
5864
|
+
exemplifiedBy:
|
|
5865
|
+
- {path: packages/hfs/templates/be/patterns/jobs/platform-lite/job-tick.service.ts.tpl, edition: lite}
|
|
5866
|
+
- {path: packages/eslint-canon-be/src/jobs-scheduler.spec.ts, editions: [lite, full], codes: [BE_JOBS_SCHEDULER_OWNER]}
|
|
5867
|
+
witness:
|
|
5868
|
+
- {path: packages/eslint-canon-be/src/jobs-scheduler.spec.ts, edition: lite, codes: [BE_JOBS_SCHEDULER_OWNER]}
|
|
5869
|
+
- {path: packages/eslint-canon-be/src/jobs-scheduler.spec.ts, edition: full, codes: [BE_JOBS_SCHEDULER_OWNER]}
|
|
5870
|
+
cases:
|
|
5871
|
+
- id: case-1
|
|
5872
|
+
date: "2026-10-29"
|
|
5873
|
+
source: owner
|
|
5874
|
+
quote: "chạy postgresql thuần image chính chủ nhé ko phải supebase"
|
|
5875
|
+
ruling: "The lite db image carries no pg_cron, so recurring work moves to a Nest schedule tick of platform/jobs under an advisory lock and a minute claim (ruling lite-official-postgres-image)."
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# catalog READ this file through scripts/hfs/slots.mjs; none of them hardcodes a path.
|
|
8
8
|
# Shape: modules/schemas/hfs-slots.schema.yaml. The repository side is hfs.json: modules/schemas/hfs-repo.schema.yaml.
|
|
9
9
|
schema: starci/hfs-slots@3
|
|
10
|
-
version: 3.
|
|
10
|
+
version: 3.11.0
|
|
11
11
|
|
|
12
12
|
versioning:
|
|
13
13
|
# MAJOR.MINOR.PATCH of this manifest. A repository pins only the MAJOR in hfs.json ("hfs": 3).
|
|
@@ -50,6 +50,9 @@ versioning:
|
|
|
50
50
|
# transport client layer), and lets fe.hooks.swr hold the SWR subscription hooks (api/sse/subscriptions/useSubscribe<X>Swr.ts, one useSWRSubscription per stream operation).
|
|
51
51
|
# 3.10.0 is a minor (2026-10-29): it ADDS the lite be.platform.database.entities slot, the entity registry (slot fields role and importedBy), so the
|
|
52
52
|
# tier matrix and the public-entry rules admit exactly its <c>Entities imports and its deep importers (persistence.md BE-PERSISTENCE-3).
|
|
53
|
+
# 3.11.0 (ruling:lite-official-postgres-image, 2026-10-29) is, like 3.9.0, a change for lite only: it ADDS the managed app.db.image slot
|
|
54
|
+
# (db/Dockerfile, written by `starci app sync --write`), narrows ruleParams.db.extensions to the extensions that image carries, and gives
|
|
55
|
+
# @nestjs/schedule and cron one owner, platform/jobs (R335).
|
|
53
56
|
|
|
54
57
|
# Field meaning, per slot.
|
|
55
58
|
# id stable name, never changes meaning inside a major.
|
|
@@ -123,8 +126,8 @@ testValues: [unit-beside, e2e, none]
|
|
|
123
126
|
# specs (unitRoles, logicRoles, 100 per file, @starci/jest-preset doubles, builders). What differs is ADAPTERS and DELIVERY
|
|
124
127
|
# (ruling:R212/case-10): schema authority in db/migrations, the queue port on BullMQ over the Redis hfs.json
|
|
125
128
|
# sides.be.backing declares (as in full, fed by the Postgres outbox), event-bus ports on pgmq-backed topics or in-process
|
|
126
|
-
# delivery, cache and locks on Postgres or the declared Redis, schedules
|
|
127
|
-
# outbox, storage on S3-compatible MinIO (integrations/object-storage) and auth through integrations/passport. Realtime uses SSE or the socket.io gateway
|
|
129
|
+
# delivery, cache and locks on Postgres or the declared Redis, schedules as platform/jobs ticks enqueueing through the queue
|
|
130
|
+
# outbox (R335), storage on S3-compatible MinIO (integrations/object-storage) and auth through integrations/passport. Realtime uses SSE or the socket.io gateway
|
|
128
131
|
# in the api process, which scales horizontally and stateless (memory hub for one replica or tests; the Redis hub and @socket.io/redis-adapter when Redis is declared, else the Postgres hub and @socket.io/postgres-adapter, for N replicas; websocket only, no sticky sessions). Integration and provider sandbox contract specs are optional;
|
|
129
132
|
# declared patterns owe their integration proofs (R284). Lite has no e2e world. Production uses declared docker-swarm under
|
|
130
133
|
# .starcistacks/production/infra/swarm/ (owner ruling 2026-10-14); lite runs its PostgreSQL as the db service of its
|
|
@@ -201,8 +204,9 @@ crossApp: apps never import each other; shared code is a packages/<pkg> slot.
|
|
|
201
204
|
ruleParams:
|
|
202
205
|
db:
|
|
203
206
|
# R259: btree_gist supplies UUID equality for the booking interval exclusion constraint.
|
|
204
|
-
# R259:
|
|
205
|
-
|
|
207
|
+
# R259: the extensions the db image carries (ruling:lite-official-postgres-image): the official postgres image's contrib set and pgvector
|
|
208
|
+
# from PGDG; unaccent serves Vietnamese-content search functions. No pg_cron, pg_net, pgmq or supabase_vault.
|
|
209
|
+
extensions: [pgcrypto, pg_trgm, vector, uuid-ossp, unaccent, btree_gist]
|
|
206
210
|
# R258 DB_CRON_OWNED: THE queue outbox of a lite schema (the relay hands its unsent rows to BullMQ, ruling:R212/case-10). A pg_cron
|
|
207
211
|
# job enqueues only by inserting one row into this table, writing only these columns, one of which is `queue`.
|
|
208
212
|
queueOutbox: {table: public.queue, columns: [queue, payload, created_at, correlation_id]}
|
|
@@ -251,7 +255,8 @@ ruleParams:
|
|
|
251
255
|
bull: [platform/queue]
|
|
252
256
|
"@nestjs/bull": [platform/queue]
|
|
253
257
|
kafkajs: [platform/event-bus] # pattern event-bus: Kafka is the only event transport
|
|
254
|
-
"@nestjs/schedule": []
|
|
258
|
+
"@nestjs/schedule": [platform/jobs] # R335: only the tick scheduler of platform/jobs (jobs.scheduler.ts); elsewhere a schedule is a BullMQ job scheduler of a queue
|
|
259
|
+
cron: [platform/jobs] # R335: CronJob of the tick scheduler
|
|
255
260
|
eventemitter2: []
|
|
256
261
|
setInterval: [platform/retry, platform/event-bus, platform/queue, platform/http, platform/realtime]
|
|
257
262
|
setTimeout: [platform/retry, platform/event-bus, platform/queue, platform/http]
|
|
@@ -434,6 +439,7 @@ ruleParams:
|
|
|
434
439
|
- {name: job_advance, reason: "platform/jobs (add job, lite): the token-guarded step write of jobs.sql"}
|
|
435
440
|
- {name: job_complete, reason: "platform/jobs (add job, lite): the token-guarded completion of jobs.sql"}
|
|
436
441
|
- {name: job_fail, reason: "platform/jobs (add job, lite): the token-guarded failure of jobs.sql"}
|
|
442
|
+
- {name: job_tick_claim, reason: "platform/jobs (add job, lite): the once-per-minute claim of a scheduler tick, jobs.sql (R335)"}
|
|
437
443
|
- {name: queue_write, reason: "platform/queue (add queue, lite): the outbox insert of queue-outbox.sql"}
|
|
438
444
|
- {name: queue_waiting, reason: "platform/queue (add queue, lite): the relay read FOR UPDATE SKIP LOCKED of queue-outbox.sql"}
|
|
439
445
|
- {name: queue_mark_sent, reason: "platform/queue (add queue, lite): the relay mark of queue-outbox.sql"}
|
|
@@ -857,7 +863,7 @@ slots:
|
|
|
857
863
|
"<env>/runtime/{config,env}/**", "<env>/runtime/env/KEYS.md", "<env>/secrets/<slug>.enc", "<env>/secrets/.gitkeep", "<env>/seeds/**"]
|
|
858
864
|
forbids: ["<env>/runtime/files/**", "**/*.enc outside <env>/secrets/", DESIGN.md, deployment.json, "k8s/ at root"]
|
|
859
865
|
# Owner ruling 2026-10-14: lite declares docker-swarm production, app runtime config, sealed custody and seed data.
|
|
860
|
-
# The db service supplies the database
|
|
866
|
+
# The db service supplies the database; schedules are platform/jobs ticks (R335); production has no Compose or host cron.
|
|
861
867
|
lite:
|
|
862
868
|
requires: [application-stacks.yaml]
|
|
863
869
|
allows: [application-stacks.yaml, "<env>/README.md", "<env>/environment.json", "<env>/infra/swarm/**", "<env>/infra/metadata.json",
|
|
@@ -921,7 +927,7 @@ slots:
|
|
|
921
927
|
rules: [HFS_PLAINTEXT_SECRET]
|
|
922
928
|
|
|
923
929
|
# ----- app root: the database of a lite app (ruling:lite-self-hosted-postgres-passport-minio): a self-hosted PostgreSQL in the app's
|
|
924
|
-
# stack (the `db` service,
|
|
930
|
+
# stack (the `db` service, built from the managed db/Dockerfile: the official postgres image plus pgvector, ruling:lite-official-postgres-image), migrated by
|
|
925
931
|
# `starci app db migrate --url-env <NAME>`. A full app keeps its TypeORM migrations under be/ and has no such folder.
|
|
926
932
|
- id: app.db
|
|
927
933
|
profiles: [app]
|
|
@@ -971,12 +977,26 @@ slots:
|
|
|
971
977
|
tier: none
|
|
972
978
|
tests: none
|
|
973
979
|
since: 3.9.0
|
|
980
|
+
- id: app.db.image
|
|
981
|
+
profiles: [app]
|
|
982
|
+
editions: [lite]
|
|
983
|
+
# The managed image of the db service (templates/app/db-image, ruling:lite-official-postgres-image): FROM the digest-pinned official
|
|
984
|
+
# postgres image plus postgresql-17-pgvector from PGDG. The stack's db service, the local db container and the scratch database
|
|
985
|
+
# of `starci app db drift` all build it.
|
|
986
|
+
path: "db/Dockerfile"
|
|
987
|
+
presence: required
|
|
988
|
+
tracked: tracked
|
|
989
|
+
managedBy: db-image
|
|
990
|
+
tier: none
|
|
991
|
+
tests: none
|
|
992
|
+
since: 3.11.0
|
|
993
|
+
rules: [HFS_MANAGED_FILE_DRIFT]
|
|
974
994
|
- id: app.db.bootstrap
|
|
975
995
|
profiles: [app]
|
|
976
996
|
editions: [lite]
|
|
977
|
-
# The managed pre-migration bootstrap (templates/app/db-bootstrap): the auth
|
|
978
|
-
#
|
|
979
|
-
#
|
|
997
|
+
# The managed pre-migration bootstrap (templates/app/db-bootstrap): the auth and storage schemas, auth.users with the GoTrue column
|
|
998
|
+
# set, auth.uid/role/jwt stubs and the NOLOGIN browser roles, so migrations written for a hosted Supabase apply to the db service's
|
|
999
|
+
# official postgres image (nothing else of Supabase: no supabase_admin, extensions schema or realtime publication). `starci app db migrate` applies it before the first migration of an empty database.
|
|
980
1000
|
path: "db/bootstrap.sql"
|
|
981
1001
|
presence: required
|
|
982
1002
|
tracked: tracked
|
|
@@ -1786,7 +1806,7 @@ slots:
|
|
|
1786
1806
|
the same QueueOutbox and QueueWorkerRegistry ports and full's BullMQ adapter on the declared Redis (backing: [redis]): the
|
|
1787
1807
|
relay adds each committed outbox row with the outbox id as the job id, workers retry with exponential backoff and keep a
|
|
1788
1808
|
job that exhausts its attempts as failed (the dead letter); the outbox table comes from a db migration, and a
|
|
1789
|
-
schedule is a BullMQ job scheduler or a
|
|
1809
|
+
schedule is a BullMQ job scheduler or a platform/jobs tick that writes one outbox row, R335 (knowledge/patterns/be/queues.yaml liteAdapter)
|
|
1790
1810
|
requires: [index.ts, queue.module.ts, queue.port.ts, queue.contracts.ts, queue-outbox.service.ts, queue-outbox.service.spec.ts]
|
|
1791
1811
|
tests: unit-beside
|
|
1792
1812
|
coverage: required
|