fix: create missing scripts/types/, restore Chart.js tag, pin tsx devDependency#413
Merged
pethers merged 2 commits intostricttypingfrom Feb 21, 2026
Merged
fix: create missing scripts/types/, restore Chart.js tag, pin tsx devDependency#413pethers merged 2 commits intostricttypingfrom
pethers merged 2 commits intostricttypingfrom
Conversation
…onfig Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
[WIP] Add Evening Analysis Content Validator for assessment quality
fix: create missing scripts/types/, restore Chart.js tag, pin tsx devDependency
Feb 21, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Four CI failures in PR #407: TypeScript compilation errors from missing type modules, Cypress failure from a truncated Chart.js script tag, and workflow reproducibility risk from unpinned
npx tsx.Changes
scripts/types/— 8 new type definition filesAll scripts imported from
./types/*.jsbut the directory never existed. Created:language.ts—Languageunion (14 codes)party.ts—PartyCode,PartyVariantMapeditorial.ts—EditorialPillar,PillarHeadings,LocalizedPillarHeadingsarticle.ts—ArticleType,ArticleData,GeneratedArticle,GenerationResult,GenerationStats,MCPCallRecord,DateRange, breaking-news variantscontent.ts—BreadcrumbLabels,FooterLabelSet,CommitteeName,CommitteeNameMap,ContentLabelSetmcp.ts—MCPClientConfig,MCPStats,JsonRpcRequest/Response, search/filter param interfaces,RiksdagDocumentvalidation.ts— evening-analysis, quality-enhancer, and cross-reference validation typesworkflow.ts—WorkflowState,MCPCacheEntry,RecentArticleEntry,DuplicateCheckResult,WorkflowStatisticstsconfig.scripts.jsonnoUncheckedIndexedAccess: true → false— the flag madetitles[lang]returnTitleSet | undefinedin 9 locations across 6 files that already guarded with|| titles.enfallbacks.politician-dashboard.htmlThe Chart.js
<script>tag was truncated — onlyintegrityandcrossoriginattributes remained, stripping thesrc. Restored:package.json+update-cia-stats.ymlAdded
tsx@^4.21.0as adevDependency; changed both workflow invocations fromnpx tsxtonpx --no-install tsxsonpm cigoverns the version rather than runtime resolution.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.