@catalyst-cloud/schema 0.1.60 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@catalyst-cloud/schema",
3
- "version": "0.1.60",
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",
@@ -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.",
@@ -1842,6 +1860,20 @@ export const durableEventTypes = {
1842
1860
  wakes: false,
1843
1861
  entity: "pull_request",
1844
1862
  },
1863
+ // CTC-3262 — an operator prompt run's terminal outcome (ADR-20260925T051854). Before this the
1864
+ // failure class lived only on the DO's hub-internal `prompt_runs` row and the host log, where no
1865
+ // replica reader could see it. The payload contract is `PromptRunFinishedPayload`
1866
+ // (packages/protocol/src/prompt-run.ts): identifiers, outcome, failure class and duration, never
1867
+ // the prompt text or the receipt summary.
1868
+ "prompt.run.finished": {
1869
+ rationale:
1870
+ "An operator prompt run left `running` for good: its lease was released with a receipt, released without one, refused after the claim, or recovered after an interrupted container. ADR-0039's own durable-fact example ('a runner reported an outcome'), for the third work-unit kind. It fires once per run, in the transaction that closes the run's row.",
1871
+ // ⚠️ Minted inside the mirror DO, like ask.replied: coordination.publish is the closest true verb.
1872
+ ingestVerb: "coordination.publish",
1873
+ // No consumer acts on it yet. A replica reads it from the event cache; nothing needs a wake.
1874
+ wakes: false,
1875
+ entity: "prompt-run",
1876
+ },
1845
1877
  "recovery.deferred": {
1846
1878
  rationale:
1847
1879
  "A real, ENACTED deferral — much lower volume (2,894/mo) than recovery.would-defer's 505k dry-run evaluations, confirming this is the actual decision, not the counterfactual.",