Skip to content

chore: resolve Speakeasy package.json persistent-edit conflict (regen 1.3.22) - #1103

Merged
sunwrobert merged 2 commits into
mainfrom
devin/1790255956-restore-pristine-scripts
Sep 24, 2026
Merged

sunwrobert merged 2 commits into
mainfrom
devin/1790255956-restore-pristine-scripts

Conversation

@sunwrobert

@sunwrobert sunwrobert commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Nightly Generate has failed since #1095 with both modified: package.json. The hand-edited scripts block differed from Speakeasy's pristine base, and Speakeasy emits the scripts in a different order each run, so the 3-way merge overlapped every time. Reordering to match one run (#1102) could not stick.

This PR applies Speakeasy's documented resolution with the pinned CLI (1.787.0):

  1. speakeasy run -t openrouter reproduced the conflict locally.
  2. Took the generated side of package.json. It already contains the additionalScripts from gen.yaml, so build/compile stay tsc && node scripts/unbarrel-imports.js.
  3. speakeasy run --skip-versioning recorded that output as the new pristine base (refs/speakeasy/gen/50695a38…, pushed to origin).

Committed package.json now equals the pristine blob (2f282a2), so future regens merge cleanly regardless of script order, as long as scripts are changed only through additionalScripts in gen.yaml.

The diff also carries the pending spec regen and the version bump to 1.3.22, which is exactly what the failed Generate runs would have produced. Merging changes .speakeasy/gen.lock on main, which triggers Publish for 1.3.22.

Earlier revision of this PR set build to plain tsc and broke the unbarrel compiled-output test. That is fixed here.

Verified locally: pnpm run build (unbarrel rewrote 211 files), pnpm run lint, vitest --run --exclude 'tests/e2e/**' 211/211.

Existing PR search: continuing this PR, which supersedes #1102.

Link to Devin session: https://openrouter.devinenterprise.com/sessions/a07494c1b0f84282bc49206285c9b5b8
Open in Devin Desktop: https://openrouter.devinenterprise.com/desktop/session/a07494c1b0f84282bc49206285c9b5b8?variant=devin
Requested by: @sunwrobert


Devin Review

… cleanly

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'DevinAI' or '@devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

Original prompt from Robert

whyd this fail? https://github.com/OpenRouterTeam/typescript-sdk/actions/runs/35939188224/job/107443068816

devin-ai-integration[bot]

This comment was marked as resolved.

Ran speakeasy run, kept the generated package.json scripts (which include
the unbarrel-imports build/compile steps), then speakeasy run
--skip-versioning so gen.lock records that output as the pristine base.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mintlify

mintlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
openrouter-production 🟢 Ready View Preview Sep 24, 2026, 1:26 PM

@mintlify

mintlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
openrouter-staging 🟢 Ready View Preview Sep 24, 2026, 1:26 PM

@devin-ai-integration devin-ai-integration Bot changed the title fix: restore generated package.json scripts so Speakeasy regen merges cleanly chore: resolve Speakeasy package.json persistent-edit conflict (regen 1.3.22) Sep 24, 2026
@sunwrobert
sunwrobert merged commit 136da7a into main Sep 24, 2026
2 checks passed
@sunwrobert
sunwrobert deleted the devin/1790255956-restore-pristine-scripts branch September 24, 2026 13:27
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