HAI SST

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

sst.config.ts Summary

This file defines the Serverless Stack (SST) configuration for the hai-agents application. It outlines the entire infrastructure, which is modularized and located in the infra/ directory.

Key Components:

  • Application Core: Defines basic app settings like name and removal policies.
  • Infrastructure (run function): Imports and orchestrates various infrastructure components:
    • storage: Data storage (e.g., S3).
    • apiapi-routes: API Gateway and its routes.
    • frontend: The web frontend.
    • bus: An event bus for asynchronous communication.
    • Other modules for secrets, synthetic data, discovery, criteria, interop, and sync.
  • Development Tools: Includes dev commands to run a local studio and to sync types between different parts of the application.
  • CI/CD: Configures automatic deployments to a staging environment from the main branch.

Architectural View (Initial)

This diagram shows the high-level components of the hai-agents application as defined in sst.config.ts.
graph TD; subgraph "hai-agents SST App" A["sst.config.ts"] --> B["Frontend"]; A --> C["API"]; A --> D["Storage"]; A --> E["Event Bus"]; A --> F["Secrets"]; A --> G["Other Infra (Sync, Interop, etc.)"]; end C --> H["API Routes"]; H --> G; E --> G; subgraph "Development" Dev1["Dev Command: Studio"]; Dev2["Dev Command: SyncTypes"]; end subgraph "CI/CD" CICD["Autodeploy 'main' to 'staging'"]; end A --> Dev1; A --> Dev2; A --> CICD;
 
 
 
 
 
 
 
 

Recommendations