Skip to content

Feat/fix init - #508

Merged
ByteZhang1024 merged 2 commits into
onekeyfrom
feat/fixInit
Jul 10, 2025
Merged

Feat/fix init#508
ByteZhang1024 merged 2 commits into
onekeyfrom
feat/fixInit

Conversation

@ByteZhang1024

@ByteZhang1024 ByteZhang1024 commented Jul 10, 2025

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added a new boolean field to the initialization message for enhanced functionality.
  • Chores

    • Updated version numbers across multiple packages to 1.0.39-alpha.3.
    • Synchronized dependency versions to ensure compatibility across the suite.

@coderabbitai

coderabbitai Bot commented Jul 10, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

This update bumps the version numbers for several packages from 1.0.39-alpha.2 to 1.0.39-alpha.3. It also updates internal dependencies to match the new version. Additionally, a new boolean field, is_contains_attach, was added to the Initialize message in the protobuf schema.

Changes

File(s) Change Summary
.../connect-examples/electron-example/package.json Version updated to 1.0.39-alpha.3
.../connect-examples/expo-example/package.json
.../expo-playground/package.json
Version updated to 1.0.39-alpha.3
.../core/package.json Version updated to 1.0.39-alpha.3; internal dependencies bumped to ^1.0.39-alpha.3
.../core/src/data/messages/messages.json Added boolean field is_contains_attach (ID 8001) to Initialize message
.../hd-ble-sdk/package.json Version updated to 1.0.39-alpha.3; internal dependencies bumped to ^1.0.39-alpha.3
.../hd-common-connect-sdk/package.json Version updated to 1.0.39-alpha.3; all internal dependencies bumped to ^1.0.39-alpha.3
.../hd-transport-emulator/package.json
.../hd-transport-http/package.json
Version updated to 1.0.39-alpha.3; internal dependencies bumped to ^1.0.39-alpha.3
.../hd-transport-lowlevel/package.json
.../hd-transport-react-native/package.json
Version updated to 1.0.39-alpha.3; internal dependencies bumped to ^1.0.39-alpha.3
.../hd-transport-webusb/package.json Version updated to 1.0.39-alpha.3; internal dependencies bumped to ^1.0.39-alpha.3
.../hd-transport/package.json Version updated to 1.0.39-alpha.3
.../hd-web-sdk/package.json Version updated to 1.0.39-alpha.3; internal dependencies bumped to ^1.0.39-alpha.3
.../shared/package.json Version updated to 1.0.39-alpha.3

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant Core
    participant Messages

    Client->>Core: Send Initialize request
    Core->>Messages: Build Initialize message with is_contains_attach (bool)
    Messages-->>Core: Return message schema
    Core-->>Client: Respond with Initialize message (includes is_contains_attach)
Loading
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/fixInit

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary or Summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@revan-zhang

revan-zhang commented Jul 10, 2025

Copy link
Copy Markdown
Contributor

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License

View full report

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 7

♻️ Duplicate comments (4)
packages/hd-ble-sdk/package.json (1)

3-3: Same as previous comment – ensure the alpha.3 versions are published and the lock-file is in sync.

Also applies to: 23-25

packages/hd-web-sdk/package.json (1)

3-3: Same check here: confirm publish + lock-file update.

Also applies to: 24-27

packages/hd-transport-react-native/package.json (1)

3-3: Same check here: confirm publish + lock-file update.

Also applies to: 22-23

packages/hd-transport-lowlevel/package.json (1)

3-3: Same check here: confirm publish + lock-file update.

Also applies to: 22-23

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between d821f1a and 78b12ab.

📒 Files selected for processing (15)
  • packages/connect-examples/electron-example/package.json (1 hunks)
  • packages/connect-examples/expo-example/package.json (1 hunks)
  • packages/connect-examples/expo-playground/package.json (1 hunks)
  • packages/core/package.json (2 hunks)
  • packages/core/src/data/messages/messages.json (1 hunks)
  • packages/hd-ble-sdk/package.json (2 hunks)
  • packages/hd-common-connect-sdk/package.json (2 hunks)
  • packages/hd-transport-emulator/package.json (2 hunks)
  • packages/hd-transport-http/package.json (2 hunks)
  • packages/hd-transport-lowlevel/package.json (2 hunks)
  • packages/hd-transport-react-native/package.json (2 hunks)
  • packages/hd-transport-webusb/package.json (2 hunks)
  • packages/hd-transport/package.json (1 hunks)
  • packages/hd-web-sdk/package.json (2 hunks)
  • packages/shared/package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: build (20.x)
  • GitHub Check: lint (20.x)
  • GitHub Check: Socket Security: Pull Request Alerts
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (8)
packages/hd-transport/package.json (1)

3-3: Sync or add a CHANGELOG entry

I couldn’t find any changelog file in the repo.
• If you maintain one, add a 1.0.39-alpha.3 entry and push a matching git tag.
• If not, consider creating a CHANGELOG for future releases.

packages/core/src/data/messages/messages.json (1)

6068-6070: Confirmed: Field ID 8001 is unique
No other occurrences of "id": 8001 were found in the repo.

packages/shared/package.json (1)

3-3: Version bump looks fine

Package version now matches repo-wide bump. No other issues spotted.

packages/connect-examples/electron-example/package.json (1)

5-5: Double-check hidden deps

Only app version changed. If this project pulls SDK packages through monorepo workspaces, ensure their versions also bumped; otherwise builds may mix ±2 versions.

packages/core/package.json (1)

3-3: Core package bump consistent

Version and internal deps now point to 1.0.39-alpha.3. Looks clean.

Also applies to: 28-30

packages/hd-common-connect-sdk/package.json (1)

3-3: Version bump looks good
No functional impact spotted.

packages/hd-transport-http/package.json (1)

3-3: Version updated consistently
Matches the ecosystem bump.

packages/hd-transport-emulator/package.json (1)

3-3: Version bump confirmed
Change is simple and safe.

Comment thread packages/core/src/data/messages/messages.json
Comment thread packages/connect-examples/expo-example/package.json
Comment thread packages/connect-examples/expo-playground/package.json
Comment thread packages/hd-transport-webusb/package.json
Comment thread packages/hd-common-connect-sdk/package.json
Comment thread packages/hd-transport-http/package.json
Comment thread packages/hd-transport-emulator/package.json
@ByteZhang1024
ByteZhang1024 enabled auto-merge (squash) July 10, 2025 06:50
@ByteZhang1024
ByteZhang1024 merged commit 2bd4097 into onekey Jul 10, 2025
10 checks passed
@ByteZhang1024
ByteZhang1024 deleted the feat/fixInit branch July 10, 2025 06:59
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.

3 participants