Repository navigation
Description
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.tsmatches SahajCloudmain'ssrc/payload-types.tsexcept for the strippeddeclare module 'payload'augmentation -
UserMessage,UserMessagesSelect,TaskPurgeUserMessagesandTaskScreenUserMessageare 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.tsshows 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 inConfig['collections']andConfig['collectionsSelect'] interface UserMessage,interface UserMessagesSelectTaskPurgeUserMessages,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 byscripts/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
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Activity