Repository navigation
fix(scripts): update generate script to use buf and remove obsolete generateTypes - #653
Merged
Merged
Conversation
🧪 Code CoverageNo coverage changes. Generated by coverage-comment.yml |
JakubWorek
approved these changes
Aug 20, 2026
JakubWorek
force-pushed
the
fix/issue-648
branch
from
August 20, 2026 08:58
995757d to
728ebdb
Compare
JakubWorek
force-pushed
the
fix/issue-648
branch
from
August 20, 2026 09:05
728ebdb to
723f639
Compare
This was referenced Aug 20, 2026
bartek-gralewicz
added a commit
that referenced
this pull request
Aug 26, 2026
🤖 I have created a release *beep* *boop* --- ## [1.1.0](v1.0.1...v1.1.0) (2026-08-26) ### Features * make event bus keep-alive states configurable ([#669](#669)) ([f844dad](f844dad)), closes [#620](#620) ### Bug Fixes * Add serialization for listTasks input/output parameters. ([#610](#610)) ([c863497](c863497)) * clone push notification configs before storing ([#662](#662)) ([4d175a0](4d175a0)) * **compat/v0_3/translate:** add null and undefined checks to array and string fields ([#618](#618)) ([108736b](108736b)) * **deps:** replace `uuid` package with `crypto.randomUUID()` ([#665](#665)) ([636b060](636b060)) * Do not filter tasks in ListTasks if task state is unspecified ([#622](#622)) ([1c6eb32](1c6eb32)) * **errors:** global error branding via Symbol.hasInstance to fix instanceof checks across bundle entry points ([#612](#612)) ([cc33173](cc33173)) * **scripts:** update generate script to use buf and remove obsolete generateTypes ([#653](#653)) ([8bf3cd3](8bf3cd3)) * **server:** send full Task on every v0.3 push trigger ([#658](#658)) ([b3afbe4](b3afbe4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: bartek-gralewicz <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
CONTRIBUTINGGuide.fix:which represents bug fixes, and correlates to a SemVer patch.feat:represents a new feature, and correlates to a SemVer minor.feat!:, orfix!:,refactor!:, etc., which represent a breaking change (indicated by the!) and will result in a SemVer major.Fixes #648 🦕.
🔍 Summary of the Issue
When running
npm run generate, the command failed because:a2a.jsonfrom a URL onmainthat no longer exists (as the spec transitioned to Protobuf).curlsaved the error message"404: Not Found"intospec.json.scripts/generateTypes.jscrashed trying to parse the 404 message as JSON, leaving behind a leftoverspec.jsonfile.src/types/pb/a2a.tsvia Buf), makingscripts/generateTypes.jsobsolete leftover code.🛠️ Changes Made
package.json:generatescript to run the modern Protobuf code generator:src/types/README.md.generate:compatwith-fSLoncurlso it fails fast on HTTP/network errors rather than silently saving corrupt files.scripts/generateTypes.js:🧪 Verification & Testing
npm run generate: Successfully runs Buf generation without network errors (exit code0).npm run generate:compat: Successfully generates v0.3 compatibility types (exit code0).spec.jsonfiles are left on disk.npm test): All 68 test suites passed (1,487 unit tests).npm run lint): Passed with 0 TypeScript/ESLint errors.npm run build&npm run test-build): All ESM, CJS, DTS, workers-safe, gRPC, and Express bundles built successfully.