update-grpc-proto

Update Dojo gRPC proto definitions from the Torii repository and regenerate TypeScript bindings.

37|54|Updated Sep 11, 2023
One-click install
npx skills add https://github.com/dojoengine/dojo.js --skill update-grpc-proto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-grpc-proto
Source: https://github.com/dojoengine/dojo.js/tree/main/.claude/skills/update-grpc-proto
Command: npx skills add https://github.com/dojoengine/dojo.js --skill update-grpc-proto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps the Dojo gRPC proto definitions aligned with the Torii repository by automating retrieval and integration of the latest proto files.

Core Features & Use Cases

  • Automated proto synchronization: fetches latest Torii proto definitions and updates the Dojo gRPC package.
  • Diff review and binding regeneration: compares changes, regenerates TypeScript bindings, and ensures client compatibility.
  • Validation and rebuilding: runs diff checks, builds the proto-based code, and verifies tests and lint pass.

Quick Start

Run the update by executing the provided script to pull and apply the latest proto definitions.

Frequently Asked Questions about update-grpc-proto

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update gRPC proto definitions from the Torii repository?

To update gRPC proto definitions, the Skill pulls the latest proto files from the Torii repository, reviews the diffs, regenerates TypeScript bindings, and rebuilds the grpc package to ensure synchronization.

What is the best way to sync Torii proto files with a TypeScript gRPC package?

Syncing Torii proto files is achieved by running an automated script that retrieves the latest definitions, regenerates TypeScript bindings, and rebuilds the gRPC package to maintain client compatibility.

How does TypeScript binding regeneration work after updating proto files?

TypeScript binding regeneration works by comparing the updated proto file diffs, applying the changes to generate new TypeScript bindings, and rebuilding the grpc package to reflect the latest Torii definitions.

Do I need to run tests and lint after updating gRPC proto definitions?

Yes, running tests and lint is required after updating gRPC proto definitions to validate the regenerated TypeScript bindings, ensure correctness, and verify the grpc package is ready for release.

Why does my Dojo gRPC package have outdated proto definitions?

Your Dojo gRPC package has outdated proto definitions because it is not synchronized with the latest Torii repository proto files, requiring a retrieval and TypeScript binding regeneration process to fix.

Can I automate Torii proto synchronization for the Dojo gRPC package?

Yes, you can automate Torii proto synchronization for the Dojo gRPC package by executing the provided script to automatically pull, diff, and integrate the latest proto definitions and regenerate TypeScript bindings.