Repository navigation
fix: work through the pre-existing CI backlog surfaced by going public #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e4a4dc4
d381e7f
aa251c6
b150b3a
fe20a97
83c854f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| import { defineConfig } from 'vitest/config' | ||
|
|
||
| export default defineConfig({ | ||
| test: { environment: 'node', include: ['tests/**/*.test.ts'] }, | ||
| test: { | ||
| environment: 'node', | ||
| include: ['tests/**/*.test.ts'], | ||
| // PGlite-backed governance tests exceed the 5s default on loaded CI runners. | ||
| testTimeout: 20_000, | ||
| }, | ||
| }) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| "description": "Result of the Astro Starlight → TanStack CMS migration. A thin @tanstack/cms-core consumer.", | ||
| "scripts": { | ||
| "dev": "vite dev --port 3013", | ||
| "build": "vite build", | ||
| "build": "vite build && node ../../scripts/copy-pglite-assets.mjs", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the shared PGlite helper to the The example build runs Add Suggested fix for nx.json
|
||
| "test:build": "node ../../scripts/smoke-ssr.mjs", | ||
| "serve": "vite preview", | ||
| "start": "node .output/server/index.mjs", | ||
|
|
@@ -14,13 +14,15 @@ | |
| "migrate:data": "node scripts/migrate-starlight.mjs ../astro-starlight-before" | ||
| }, | ||
| "dependencies": { | ||
| "@electric-sql/pglite": "^0.5.15", | ||
| "@mcp-b/transports": "^5.1.0", | ||
| "@modelcontextprotocol/sdk": "^1.32.2", | ||
| "@tanstack/ai": "^0.71.0", | ||
| "@tanstack/ai-anthropic": "^0.23.0", | ||
| "@tanstack/ai-gemini": "^0.38.2", | ||
| "@tanstack/ai-mcp": "^0.9.2", | ||
| "@tanstack/cms-core": "workspace:*", | ||
| "@tanstack/cms-store-postgres": "workspace:*", | ||
| "@tanstack/cms-ui-react": "workspace:*", | ||
| "@tanstack/react-router": "^1.170.46", | ||
| "@tanstack/react-start": "^1.169.4", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import type { CmsSkillManifest } from './types' | ||
|
|
||
| /** | ||
| * Identity helper for authoring a {@link CmsSkillManifest}. Preserves literal | ||
| * type inference (via the `const` type parameter) the way other seams in the | ||
| * repo do with `defineCollection`/`defineBlock`/etc, while still statically | ||
| * checking the object against the manifest contract. | ||
| * | ||
| * This lives in its own leaf module — importing only types — so the registry's | ||
| * skill files can author manifests without importing `engine.ts`, which imports | ||
| * the registry back. That cycle (engine → registry → skill files → engine) trips | ||
| * a module-init TDZ (`Cannot access 'formsLeadCaptureSkill' before | ||
| * initialization`) in the bundled package. | ||
| */ | ||
| export function defineSkill<const T extends CmsSkillManifest>(skill: T): T { | ||
| return skill | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include PGlite in the maintenance container's runtime dependencies.
The runtime Docker image copies only
.outputandscripts. It does not install dependencies under/app/node_modules. This new bare import therefore fails when an operator runs the documentednode scripts/recover-owner.mjscommand. Dependencies under.outputare not ancestors of the script. The previous built-in import did not need an installed package. (raw.githubusercontent.com)Copy a deployable dependency tree into the runtime image, or bundle the maintenance script with PGlite and its runtime assets.