Merge claude/starter-gate-fresh: starter:gate packs a fresh tarball every run

starter:gate gives every run a fresh tarball (no stale pnpm dlx cache) and proves
which plugin code generated the site (bundle/cli stamp). No conflicts; the
until-silence filter in generate.ts (aa88e4e) is kept.
This commit is contained in:
Radosław Smoliński
2026-10-29 16:47:00 +01:00
8 changed files with 55 additions and 11 deletions
+2
View File
@@ -221,6 +221,8 @@ describe.runIf(existsSync(path.join(reference, 'starter.manifest.json')))('start
expect(files['AGENTS.md']).toMatch(/## Project decisions\n- Languages: pl, en/)
expect(files['src/seed/base.ts']).toContain("email: '[email protected]'")
expect(files['pnpm-lock.yaml']).not.toContain('@intecion/ipal-kit')
const traced = renderSite(bundle, answers(), { ...ctx, source: { bundleSha256: 'abc', commit: 'def' } })
expect(JSON.parse(traced['.ipal/starter.json'] ?? '')).toMatchObject({ ipalKit: '1.15.0', source: { bundleSha256: 'abc', commit: 'def' } })
const doctor = JSON.parse(files['ipal-doctor.json'] ?? '') as { rules: Record<string, unknown> }
expect(Object.keys(doctor.rules).sort()).toEqual(['audit:collections-present', 'csp', 'i18n-literals'])
expect((JSON.parse(files['package.json'] ?? '') as { packageManager?: string }).packageManager).toMatch(/^pnpm@\d/)