Skip to content

Wire @jaywedgeworth22/congress-trading-shared shared package - #112

Closed
jaywedgeworth22 wants to merge 1 commit into
mainfrom
cursor/congress-trading-shared
Closed

Wire @jaywedgeworth22/congress-trading-shared shared package#112
jaywedgeworth22 wants to merge 1 commit into
mainfrom
cursor/congress-trading-shared

Conversation

@jaywedgeworth22

Copy link
Copy Markdown
Owner

Replace duplicated types (Chamber, Owner, TxType, SecurityRef, MktCapBucket) with imports from the cross-app shared package. Add contracts.ts barrel re-exporting all shared types, schemas, constants, and utilities.

Files changed

  • app/src/shared/types.ts — import Chamber/Owner/TxType from shared
  • app/src/enrichment/types.ts — import SecurityRef/MktCapBucket from shared
  • app/src/enrichment/compute.ts — import marketCapBucket from shared
  • app/src/analytics/compute.ts — import bracketMidpoint from shared
  • app/src/analytics/sql.ts — import PartyBucket/WINDOW_PRESETS from shared
  • app/src/shared/contracts.ts (new) — barrel re-exports for shared package
  • app/package.json — add shared package dep

Verification

  • npx tsc --noEmit: 0 errors

Shared package

See jaywedgeworth22/congress-trading-shared

Made with Cursor

Replace duplicated types (Chamber, Owner, TxType, SecurityRef, MktCapBucket)
with imports from the cross-app shared package. Add contracts.ts barrel
re-exporting all shared types, schemas, constants, and utilities.

Files changed:
- src/shared/types.ts — import Chamber/Owner/TxType from shared
- src/enrichment/types.ts — import SecurityRef/MktCapBucket from shared
- src/enrichment/compute.ts — import marketCapBucket from shared
- src/analytics/compute.ts — import bracketMidpoint from shared
- src/analytics/sql.ts — import PartyBucket/WINDOW_PRESETS from shared
- src/shared/contracts.ts (new) — barrel re-exports for shared package
- package.json — add shared package dep

Verification: npx tsc --noEmit — 0 errors
Docs: docs/rollouts/2026-06-29-congress-trading-shared.md
Co-authored-by: Cursor <cursoragent@cursor.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e99944b. Configure here.

Comment thread app/package-lock.json
},
"node_modules/@jaywedgeworth22/congress-trading-shared": {
"version": "1.0.0",
"resolved": "git+ssh://git@github.com/jaywedgeworth22/congress-trading-shared.git#c34cfae038ee32d8bb3711fc0365f4f6d4ea585b",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lockfile SSH URL breaks CI

Medium Severity

The new shared dependency is pinned with a git+ssh:// resolved URL in the lockfile. npm ci clones exactly that URL, so installs on GitHub Actions and other hosts without GitHub SSH keys often fail before typecheck or tests run.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e99944b. Configure here.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e99944bad7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/package-lock.json
},
"node_modules/@jaywedgeworth22/congress-trading-shared": {
"version": "1.0.0",
"resolved": "git+ssh://git@github.com/jaywedgeworth22/congress-trading-shared.git#c34cfae038ee32d8bb3711fc0365f4f6d4ea585b",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use an HTTPS/published shared package dependency

In environments that run a fresh npm ci without GitHub SSH credentials, this lockfile entry makes npm fetch the new shared package via git+ssh://git@github.com/...; GitHub does not allow anonymous SSH, so CI/dev bootstrap/deploy installs fail before typecheck or tests can run. Please lock this dependency to an HTTPS URL or a published package version that the standard install path can fetch.

Useful? React with 👍 / 👎.

@jaywedgeworth22

Copy link
Copy Markdown
Owner Author

Included in the production integration merge via #113 (main commit 3317b42) and deployed to congress.trade. Closing this PR as superseded.

auto-merge was automatically disabled June 30, 2026 02:07

Pull request was closed

@jaywedgeworth22
jaywedgeworth22 deleted the cursor/congress-trading-shared branch July 27, 2026 19:51
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