Skip to content

Sync dev to main: v0.6.1 fixes and docs update - #174

Merged
neuromechanist merged 6 commits into
mainfrom
dev
Feb 21, 2026
Merged

neuromechanist merged 6 commits into
mainfrom
dev

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

Changes since last sync

Bug fixes:

  • S3 archive generation now handles SHA-addressed storage
  • Version DOI target resolves to NEMAR page instead of GitHub
  • Deletion cascade cleans up user_s3_permissions and all S3 objects under prefix
  • E2E upload test timeout increased to prevent flaky failures

Features:

  • Tag-triggered CI workflow for version DOI creation
  • BIDS Name used as authoritative dataset title (falls back to directory name)

Documentation:

  • Complete overhaul of CLI docs, help text, and generate-docs script
  • Cleaned up dead code in retrieve-key handler
  • Fixed RetrieveKeyResponse type and error handling
  • Updated CLAUDE.md and README.md with all current commands

Test plan

* Fix archive generation for SHA-addressed S3 storage

Use annex key (SHA hash) for S3 URL instead of BIDS file path.
Replace process.exit(1) with process.exitCode for proper output flushing.

Fixes #164

* Fix upload error propagation and entry event race
Version DOIs were resolving to the GitHub release page. Both
concept and version DOIs should resolve to the NEMAR data
explorer with appropriate query params.
…itle, S3 cleanup (#170)

* Fix deletion cascade: clean up user_s3_permissions

Closes #149

* Fix flaky e2e-upload test timeout

Add 30s timeout to all CLI subprocess tests that spawn
bun processes for prerequisite checks.

Closes #155

* Add tag-triggered CI for version DOI

Extract DOI minting from pr-merge.yml into a standalone
version-doi.yml workflow triggered on v* tag pushes. All
paths (PR merge, admin push, manual tag) now converge
through the tag trigger. Also creates GitHub release if
missing and triggers archive generation.

Closes #160

* Use BIDS Name as authoritative dataset title

CLI upload now reads Name from dataset_description.json
instead of using directory basename. The LLM enrichment
webhook also syncs BIDS Name to D1 and GitHub repo
description when dataset_description.json changes.

Closes #168

* Fix S3 deletion to clean all objects under prefix

Scan entire {datasetId}/ prefix instead of only objects/,
version/, archives/ sub-prefixes. Older uploads stored
files directly under the dataset root which were missed.

Closes #169

* Address PR review findings

- Remove if: always() from trigger-archive job so it only
  runs when DOI publish succeeds
- Check setRepoDescription return value instead of relying
  on try/catch (function returns result, does not throw)
- Sanitize BIDS Name (strip newlines, trim to 200 chars)
- Track user_s3_permissions deletion count in DeletionSteps
- Distinguish ENOENT from parse errors in CLI BIDS Name read
- Fix JSDoc and comments per review feedback

* Fix biome formatting
* Fix stale CLI docs, help text, and dead code (#172)

- Update generate-docs.ts: add all missing subcommands (clone, get,
  save, push, drop, release, update, collaborators, s3 lock, repo,
  make-public, delete-dataset, etc.), fix static content (downloading
  guide, uploading guide, quickstart, auth guide)
- Fix CLI help text: --name describes BIDS Name fallback, admin help
  lists publish/make-public/delete-dataset, sandbox warning uses EZID
  instead of Zenodo, doi update --refresh mentions metadata.json
- Fix retrieve-key dead code: handle 409 in catch block instead of
  unreachable success branch, pass full response as ApiError details
- Remove unused imports (commitRevert, createRevertBranch,
  listDatasetVersions), remove emoji from make-public output
- Update CLAUDE.md CLI commands section with all 50+ implemented
  commands replacing stale 13-command "Target Structure"
- Update README.md: add retrieve-key/sandbox to quickstart, replace
  non-existent pr/version commands with actual commands
- Regenerate all docs from updated script

* Address PR review findings

- Fix --bump to --type in quickstart docs
- Fix DataLad references to git-annex in index
- Add details wrapper to 409 response in backend
- Revert broad data.details fallback in api.ts
- Clean up RetrieveKeyResponse type (remove stale fields)
- Show actual error message in non-ApiError catch
# Conflicts:
#	src/commands/dataset.ts
@neuromechanist
neuromechanist merged commit 29a8a6a into main Feb 21, 2026
8 checks passed

This branch was previously deployed

1 inactive deployment
npm — ca251f7f Deployed Feb 21, 2026 by neuromechanist via publish #300
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.

1 participant