Skip to content

chore(cms): resync payload-types — it is missing the user-messages collection #74

Closed

Description

@sydevs-bot

Summary

server/payload-types.ts is one SahajCloud schema commit behind main — it predates 5a4035c (feat(api)!: async user-messages intake with deep spam screening, 2026-09-01), so it is missing the whole user-messages collection. No consumer here reads that collection, so nothing is wrong today; this is hygiene before the gap widens.

Filed separately from the same check's finding in SahajAtlasWeb (sydevs/SahajAtlasWeb#191) because that one is a live defect and this one is not — different fixes, different urgency.

Approach

pnpm types:cms and commit the result. The script curls SahajCloud main and then runs scripts/strip-payload-augmentation.mjs, which is why the declare module 'payload' block is legitimately absent and must stay absent.

Acceptance criteria

  • server/payload-types.ts matches SahajCloud main's src/payload-types.ts except for the stripped declare module 'payload' augmentation
  • UserMessage, UserMessagesSelect, TaskPurgeUserMessages and TaskScreenUserMessage are present
  • The relationTo: 'user-messages' arm is present in the locked-document relationship union

Verification checklist

  • pnpm types:cms && pnpm typecheck — passes
  • pnpm test:run — passes
  • diff <(curl -fsSL https://raw.githubusercontent.com/sydevs/SahajCloud/refs/heads/main/src/payload-types.ts) server/payload-types.ts shows only the stripped augmentation block and its trailing blank lines

Notes

Filed by the Thursday survey-contracts run, from check 2 (generated type freshness).

Evidence

diff SahajCloud/src/payload-types.ts WeMeditateWeb/server/payload-types.ts over both repos at origin/main (SahajCloud f0ec974, WeMeditateWeb 34f3a17) → 136 lines, every one a deletion (<), i.e. the local copy is a strict subset. They are:

  • the 'user-messages' entries in Config['collections'] and Config['collectionsSelect']
  • interface UserMessage, interface UserMessagesSelect
  • TaskPurgeUserMessages, TaskScreenUserMessage, and their arms in the two job-name unions
  • the relationTo: 'user-messages' arm of the locked-document relationship union
  • the trailing declare module 'payload' { … } block — this one is deliberate, removed by scripts/strip-payload-augmentation.mjs

git log -1 -- server/payload-types.ts → 73b4765, 2026-08-27. The only SahajCloud commit touching src/payload-types.ts since is 5a4035c (2026-09-01).

🤖 Written by the sydevs autonomous loop — see what this is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    Low

    Hold Until

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions