Skip to content

Release v0.7.18 - #288

Merged
neuromechanist merged 3 commits into
mainfrom
dev
Mar 14, 2026
Merged

neuromechanist merged 3 commits into
mainfrom
dev

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • YAML validation test added and passing
  • All pre-commit hooks passing
  • CI green

* Add CLI update prompts, system notices, and admin broadcast

- CLI update check: non-blocking npm registry check with 24h cache,
  yellow banner after command output, bun/bunx install detection
- System notices: D1-backed notices with level/scope/expiry, admin
  CRUD commands, CLI display on preAction with dismissal tracking
- Admin broadcast emails: markdown-to-HTML converter, Resend batch
  API in 100-recipient chunks, announcements email preference
- Migrations 0016 (notices) and 0017 (broadcast_emails)

Closes #279

* Address PR review findings for #279

- Add try-catch to GET /notices route for graceful degradation
- Add verbose logging to empty catches in update-check and notices
- Remove redundant NoticeRow interface in notices service
- Add audit failure warning and missing data warning in broadcast
- Remove redundant updateBannerPrinted guard in index.ts
- Add .catch() to program.parseAsync()
- Fix "all disabled" test to actually disable announcements
- Add unit tests for markdownToEmailHtml and normalizeVersion
* Exclude metadata files from git-annex largefiles

TSV, JSON, MD, txt, yml, and common BIDS root files (README,
LICENSE, CHANGES, .bidsignore) are now explicitly excluded from
annexing regardless of size. Previously, the largerthan=100kb
rule could annex large TSV files, causing BIDS validation
failures (nm000112 events.tsv stored as annex pointers).

Tested with git annex matchexpression against all relevant
file types.

* Address PR review findings

- Fix: add missing extensions in restore script (fif, vhdr, eeg, cnt, fdt)
- Refactor pattern into arrays for readability in git-annex.ts
- Update stale patterns in .context/validated_workflows.md
- Add cross-reference comment to restore script
* Fix YAML syntax errors in BIDS validation workflow template

In JS template literals, \n is interpreted as a literal newline
character, not the two-character sequence \n. This broke the
deployed YAML on line 33 (find -printf format) and line 51
(jq split argument) by inserting real newlines mid-line,
violating YAML block scalar indentation rules.

Fix: escape as \\n to produce literal \n in the output.

Affected repos: nm000130, nm000131, on003825.

Fixes #285

* Address PR review findings

- Extract getWorkflowTemplates() for testability
- Add YAML validation test (prevents #285 regression)
- Fix createOrUpdateFile: handle non-OK GET responses,
  wrap fetch errors with context
- Fix empty catch in resolveAnnexKey template
- Remove hardcoded WORKFLOW_FILES; use deployWorkflows
  return data for accurate deployed/failed counts
- Include specific errors in finalize warnings
@neuromechanist
neuromechanist merged commit 7deb99b into main Mar 14, 2026
18 checks passed

This branch was previously deployed

2 inactive deployments
development — 581f7a3d Deployed Mar 14, 2026 by neuromechanist via deploy-dev #139
npm — 581f7a3d Deployed Mar 14, 2026 by neuromechanist via publish #487
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BIDS validation CI broken: escaped newlines in workflow template

1 participant