HAI /packages

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2025 Jun 10 13:21
Editor
Edited
Edited
2025 Jun 10 13:28
Refs
Refs

packages/ Directory Summary

The packages/ directory follows a monorepo structure, containing the various self-contained application and library components.

Core Application Packages:

  • web/: The frontend application. It is a Vite-based SPA that provides the user interface for the entire system.
  • functions/: Contains all the serverless backend functions. This includes the tRPC API implementation, which orchestrates the core business logic.
  • core/: A critical package that contains the core business logic, data models (e.g., AssetTaskAssetCriteria), and service classes. This code defines how the primary entities of the application behave and interact.
  • shared/: Contains code that is shared across different parts of the application, such as type definitions and validation schemas, ensuring consistency between the frontend and backend.

Specialized Worker/Analysis Packages:

  • A number of packages are dedicated to specific analysis tasks, which are likely run as separate, asynchronous processes:
    • repo_risk_eval/: Evaluates risks in code repositories.
    • model_testing_2/: Performs testing on models.
    • clustering/: Executes clustering algorithms.
    • agentgraph/: Likely related to analyzing agentic workflows.
    • cost_monitoring/: Monitors costs.

Overall Structure:

This monorepo is well-organized, separating concerns into distinct packages. This promotes code reuse, modularity, and independent development of different application components. The structure clearly separates the main application (webfunctionscore) from the specialized, task-oriented worker packages.
 
 
 
 
 
 
 
 
 

 

Recommendations