Skip to content

feat: render DB-driven notices and forward CLI/CI identity#58

Merged
finalerock44 merged 2 commits into
devfrom
feat/db-driven-notices
Jun 26, 2026
Merged

feat: render DB-driven notices and forward CLI/CI identity#58
finalerock44 merged 2 commits into
devfrom
feat/db-driven-notices

Conversation

@finalerock44

Copy link
Copy Markdown
Contributor

What & why

The CLI now renders deprecation/warn/info/marketing notices the API returns with the compatibility data, honouring --json. Removes the hardcoded iOS-16 warning (now a seeded notice gated on the selected iOS version).

  • notices.service: Notice type, match-DSL evaluator, level-aware renderer
  • ci.ts: detectCiContext() resolves provider + wrapper version (DCD_CI_*)
  • compatibility.ts: carries notices; forwards x-dcd-cli-version + x-dcd-ci-* headers
  • version.service: export compareSemver for reuse

Type of change

  • fix — bug fix
  • feat — new feature
  • perf — performance improvement
  • refactor — code change that's neither a fix nor a feature
  • docs — documentation only
  • chore / ci / build / test — tooling, no user-facing change
  • Breaking change (title has ! or PR notes a BREAKING CHANGE:)

Checklist

  • PR title follows the Conventional Commits format (see comment above)
  • pnpm lint passes
  • pnpm typecheck passes
  • pnpm build passes
  • I have not bumped the version or edited CHANGELOG.md (release-please handles this)
  • I have signed the CLA (the bot will prompt on first contribution)
  • Docs / README.md / STYLE_GUIDE.md updated if behaviour or output changed

How to test

The CLI now renders deprecation/warn/info/marketing notices the API returns with
the compatibility data, honouring --json. Removes the hardcoded iOS-16 warning
(now a seeded notice gated on the selected iOS version).

- notices.service: Notice type, match-DSL evaluator, level-aware renderer
- ci.ts: detectCiContext() resolves provider + wrapper version (DCD_CI_*)
- compatibility.ts: carries notices; forwards x-dcd-cli-version + x-dcd-ci-* headers
- version.service: export compareSemver for reuse
@finalerock44 finalerock44 self-assigned this Jun 26, 2026
@claude

claude Bot commented Jun 26, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

The dcd swagger fix (getBinaryUploadUrl now returns a valid uploads/ staging
path) makes the TUS fallback upload succeed against dev storage, so this test no
longer fails — invert it to assert the command succeeds and returns a binary id.
// --ignore-sha-check skips the dedup short-circuit and performs a real
// upload. The mock returns a valid `uploads/` staging path, so the TUS
// fallback upload succeeds and the command returns the new binary id.
const { stdout } = await exec(command, { timeout: 60_000 });
@finalerock44 finalerock44 merged commit 10dfdbf into dev Jun 26, 2026
10 checks passed
@finalerock44 finalerock44 deleted the feat/db-driven-notices branch June 26, 2026 17:16
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.

2 participants