@catalyst-cloud/schema 0.1.61 → 0.1.62
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/package.json +1 -1
- package/src/events/registry.ts +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@catalyst-cloud/schema",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.62",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Typed Drizzle schema = single source of truth for the per-tenant Mirror DO SQLite store (CTC-13 / ADR-0002). Shared by the mirror Worker, the host-sync replica, and the browser OPFS replica.",
|
|
6
6
|
"license": "MIT",
|
package/src/events/registry.ts
CHANGED
|
@@ -399,6 +399,24 @@ export const durableEventTypes = {
|
|
|
399
399
|
wakes: false,
|
|
400
400
|
entity: "push",
|
|
401
401
|
},
|
|
402
|
+
// CTC-1975 — the `repository` event's identity-changing actions. A rename/transfer is the one
|
|
403
|
+
// GitHub fact that rewrites the identity every mirrored repo-scoped row keys on, so it earns its
|
|
404
|
+
// own backbone types; the action vocabulary that changes nothing we track (archived, edited,
|
|
405
|
+
// unarchived, …) deliberately maps to nothing.
|
|
406
|
+
"github.repository.renamed": {
|
|
407
|
+
rationale:
|
|
408
|
+
"A GitHub repository was renamed — the fact that rewrites the `owner/name` identity of every repo-scoped row, recorded so reporting can keep one canonical repository through it (CTC-1975).",
|
|
409
|
+
ingestVerb: "webhook.ingest",
|
|
410
|
+
wakes: false,
|
|
411
|
+
entity: "repository",
|
|
412
|
+
},
|
|
413
|
+
"github.repository.transferred": {
|
|
414
|
+
rationale:
|
|
415
|
+
"A GitHub repository was transferred to a new owner — same identity rewrite as a rename, different field of the same payload (CTC-1975).",
|
|
416
|
+
ingestVerb: "webhook.ingest",
|
|
417
|
+
wakes: false,
|
|
418
|
+
entity: "repository",
|
|
419
|
+
},
|
|
402
420
|
"github.release.created": {
|
|
403
421
|
rationale:
|
|
404
422
|
"A GitHub webhook changed a mirrored release — ADR-0039's own durable-fact example ('a provider webhook changed a relevant mirrored entity'), verbatim.",
|