Skip to content

Comments

feat(tools): added hex#3293

Merged
waleedlatif1 merged 2 commits intostagingfrom
feat/hex
Feb 22, 2026
Merged

feat(tools): added hex#3293
waleedlatif1 merged 2 commits intostagingfrom
feat/hex

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

  • added hex tools and block

Type of Change

  • New feature

Testing

Tested manually

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Feb 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Feb 22, 2026 0:32am

Request Review

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 22, 2026

Greptile Summary

Added comprehensive Hex integration with 16 tools covering project execution, run management, collections, groups, users, and data connections. Implementation follows established patterns with proper absolute imports, user-only API key visibility, and consistent error handling.

Key additions:

  • 16 Hex API tools (run_project, get_run_status, cancel_run, list_projects, get_project, update_project, get_project_runs, get_queried_tables, list_users, list_groups, get_group, list_collections, get_collection, create_collection, list_data_connections, get_data_connection)
  • Complete block configuration with operation dropdown and conditional field rendering
  • AI wand support for generating input parameters with JSON validation
  • Shared type definitions and output property constants for code reuse
  • Full documentation with usage examples
  • Proper registration in both tools and blocks registries

Confidence Score: 5/5

  • Safe to merge - well-structured feature addition with excellent code quality
  • Clean implementation following all project conventions: absolute imports, proper type safety, consistent error handling, appropriate API key visibility (user-only), and comprehensive documentation. No logical errors, security issues, or style violations found.
  • No files require special attention

Important Files Changed

Filename Overview
apps/sim/tools/hex/types.ts Comprehensive type definitions for all Hex API operations with shared output property constants
apps/sim/tools/hex/run_project.ts Core tool for running Hex projects with proper API key visibility and JSON parameter handling
apps/sim/blocks/blocks/hex.ts Complete block configuration with 16 operations, conditional fields, and wand AI support for input parameters
apps/sim/blocks/registry.ts Properly registered HexBlock in alphabetical order
apps/sim/tools/registry.ts All 16 Hex tools registered correctly in alphabetical order in tools registry

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Hex Block UI] -->|Select Operation| B{Operation Type}
    B -->|Run Project| C[hex_run_project]
    B -->|Check Status| D[hex_get_run_status]
    B -->|List/Get| E[Read Operations]
    B -->|Update/Create| F[Write Operations]
    B -->|Cancel| G[hex_cancel_run]
    
    C -->|POST /projects/:id/runs| H[Hex API]
    D -->|GET /projects/:id/runs/:runId| H
    E -->|GET /projects, /users, etc| H
    F -->|POST/PATCH| H
    G -->|DELETE /runs/:runId| H
    
    H -->|Response| I[transformResponse]
    I -->|Normalize Data| J[Output Schema]
    
    K[HexBlock Config] -->|Dynamic Params| L[tools.config.params]
    K -->|Tool Selection| M[tools.config.tool]
    M -->|Returns Tool ID| C
    
    N[API Key] -->|visibility: user-only| O[Auth Header]
    O --> H
Loading

Last reviewed commit: a3186f4

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

26 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@waleedlatif1 waleedlatif1 merged commit e318bf2 into staging Feb 22, 2026
12 checks passed
@waleedlatif1 waleedlatif1 deleted the feat/hex branch February 22, 2026 00:44
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