Skip to content

fix: SOLID hardening after service logs + batch uninstall - #73

Merged
Tanya7z merged 3 commits into
mainfrom
cursor/bc-2e989b02-2b0b-4c76-882b-15bc874f78ad-e51d
Jul 25, 2026
Merged

fix: SOLID hardening after service logs + batch uninstall#73
Tanya7z merged 3 commits into
mainfrom
cursor/bc-2e989b02-2b0b-4c76-882b-15bc874f78ad-e51d

Conversation

@cursor

@cursor cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Review of main@ae55513 (unify service file logs, hang-indent, batch packs uninstall). ootb CI on that push was success; this PR patches SOLID issues found in the review.

Fixes (by principle)

Severity Principle Change
MAJOR DRY resolveDisplayLevel + shared level/source tag plain text for formatLog / logPrefixWidth
MAJOR DRY BDS_TS_PREFIX_RE shared by stripLogPrefix / getLogLevel so BDS [ts ERROR] maps correctly
MAJOR LSP resolveUninstallTargets: any protected pack aborts (single- and multi-id same contract)
MAJOR DIP/DRY db-server / qq-bridge project-root.ts as sole ROOT; env/config/log consume it
MINOR LSP FileSink: drop unused flags; document sync-append close() no-op

Tests

  • sfmc npm test: 31 pass (incl. resolveUninstallTargets + resolveDisplayLevel)
  • db-server npm test: 13 pass
  • typecheck: sdk / db-server / qq-bridge / sfmc

Residual (not in this PR)

  1. MINOR — ServiceId pack-manager still registered
  2. MINOR — ootb coverage for eslint-plugin / pack-update
Open in Web View Automation 

cursoragent and others added 3 commits July 24, 2026 17:30
- DRY: share resolveDisplayLevel / level+source tag plain text in sfmc logs
- LSP: resolveUninstallTargets aborts when any protected pack is selected
- DIP: single project-root for db-server and qq-bridge (env/config/log)
- LSP: FileSink contract matches sync append (drop unused flags; clarify close)

Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
Share BDS_TS_PREFIX_RE between stripLogPrefix and getLogLevel so
resolveDisplayLevel maps [ts ERROR] lines to error (DRY).

Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
Restore tracked dist map to pre-review state; rebuild churn was unrelated.

Co-authored-by: Shiroha <Tanya7z@users.noreply.github.com>
@Tanya7z
Tanya7z marked this pull request as ready for review July 25, 2026 05:30
@cursor

cursor Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Tanya7z
Tanya7z merged commit 2d7f763 into main Jul 25, 2026
1 check passed
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