You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a seed document to the headless-api Kody starter so a freshly-published app isn't empty (spec §8). Validated locally against a fresh Postgres via kody/headless-api/scripts/local-smoke.mts.
This is also the first PR since pkg-pr-new was enabled — it should exercise the Preview job (pkg-pr-new publish) end-to-end on the private repo.
Adds src/seed.ts (one published contentItem) wired into defineCms, for
spec §8 ("seeded document readable"). Validated by local-smoke.mts against
a fresh Postgres — the seeded doc is present on first registration.
Granting public (no-auth) read on contentItem remains a go-day item.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
The CMS config now includes a published welcome seed, and the local smoke script checks the seeded item. Both scheduled jobs use five-minute interval schedules. The go-day and agent notes record local validation results, workerd constraints, and publishing acceptance checks.
Changes: Headless API setup and validation
Layer / File(s)
Summary
Add and verify the welcome seed kody/headless-api/src/seed.ts, kody/headless-api/src/cms.config.ts, kody/headless-api/scripts/local-smoke.mts, kody/headless-api/GO-DAY.md
The seed contains a published welcome item for the web channel. The CMS config passes it to defineCms. The smoke script triggers registration and checks the title. The go-day notes describe anonymous read acceptance checks.
Update schedules and record runtime validation kody/headless-api/package.json, kody/headless-api/AGENTS.md, kody/headless-api/GO-DAY.md
Both jobs use five-minute interval schedules. The notes document accepted manifest schedule forms, the pg module-loading failure under workerd, standalone-checkout requirements, dependency pinning, and remaining driver and secret-access checks.
Reviewing files that changed from the base of the PR and between 3bbfd85 and ff726a1.
Files selected for processing: 3
kody/headless-api/AGENTS.md
kody/headless-api/GO-DAY.md
kody/headless-api/package.json
Files skipped from review as they are similar to previous changes: 1
kody/headless-api/GO-DAY.md
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Validated the headless-api package under `kody dev` (local workerd). Results:
- The CMS graph bundles + boots under workerd; the `{ fetch }` entry serves
(CMS 404 on `/`). Biggest unknown (workerd-compat) resolved.
- kody dev validated the `kody.jobs` schema: schedule must be an object
`{ type: "interval", every: "5m" }` (or cron), not a bare string. Fixed.
- U2 confirmed locally: a DB request fails under workerd with
`No such module "pg"` — the stock pg driver doesn't load; Neon's serverless
driver behind the store's PgPoolLike interface is the (config-side) fix.
- `kody dev` must run from a standalone checkout; nested in the monorepo it
fails the snapshot with a misleading "bundle target(s) missing" error.
GO-DAY.md and AGENTS.md updated with all of the above.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a seed document to the headless-api Kody starter so a freshly-published app isn't empty (spec §8). Validated locally against a fresh Postgres via
kody/headless-api/scripts/local-smoke.mts.This is also the first PR since pkg-pr-new was enabled — it should exercise the
Previewjob (pkg-pr-new publish) end-to-end on the private repo.🤖 Generated with Claude Code
Summary by CodeRabbit