repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
terricain/aioboto3
https://github.com/terricain/aioboto3
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_patches.py
null
null
null
null
null
null
Python
2026-05-04T02:32:58.408526
import hashlib import boto3 from boto3.session import Session from boto3.resources.action import BatchAction, ServiceAction, WaiterAction from boto3.resources.response import ResourceHandler, RawHandler from boto3.resources.collection import ResourceCollection, CollectionManager, CollectionFactory from boto3.resources...
terricain/aioboto3
https://github.com/terricain/aioboto3
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_s3.py
null
null
null
null
null
null
Python
2026-05-04T02:32:58.609318
import asyncio import os import datetime import tempfile from io import BytesIO from unittest.mock import AsyncMock from botocore.exceptions import ClientError from boto3.s3.transfer import S3TransferConfig import aiofiles import pytest @pytest.mark.asyncio async def test_s3_download_file(s3_client, bucket_name, reg...
terricain/aioboto3
https://github.com/terricain/aioboto3
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_s3_cse.py
null
null
null
null
null
null
Python
2026-05-04T02:32:58.639216
import base64 import json import pytest import aioboto3 import aioboto3.s3.cse as cse # Need big chunk of data for range test DATA = b'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed efficitur, turpis at molestie molestie, ' \ b'felis nunc consequat neque, a suscipit ipsum magna a lacus. Nam rhon...
terricain/aioboto3
https://github.com/terricain/aioboto3
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
resources/make_pr.py
null
null
null
null
null
null
Python
2026-05-04T02:33:02.270910
import importlib.machinery import importlib.util import setuptools import pkg_resources import requests import sys import os from github import Github QUIT_EARLY_EXIT_CODE = 38 def extract_values_from_setuptools(): # Wont work if setup.py doesnt use setuptools loader = importlib.machinery.SourceFileLoader('t...
terricain/aioboto3
https://github.com/terricain/aioboto3
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
tests/chalice_app/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:02.373942
from aioboto3.experimental.async_chalice import AsyncChalice app = AsyncChalice(app_name='testclient') @app.route('/hello/{name}') async def hello(name): return {'hello': name} @app.route('/list_buckets') async def get_list_buckets(): async with app.aioboto3.client("s3") as s3: resp = await s3.list...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
examples/image_cv_segautomask.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.703295
from cv2 import COLOR_BGR2RGB, Mat from cv2 import cvtColor as cv_cvtColor from cv2 import imread as cv_imread from metaseg import SegAutoMaskPredictor # If gpu memory is not enough, reduce the points_per_side and points_per_batch. def main(src: Mat) -> None: SegAutoMaskPredictor().image_predict( source=...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
examples/video_segautomask.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.713211
from metaseg import SegAutoMaskPredictor # If gpu memory is not enough, reduce the points_per_side and points_per_batch. # For video def main(src: str = "video.mp4") -> None: SegAutoMaskPredictor().video_predict( source=src, model_type="vit_l", # vit_l, vit_h, vit_b points_per_side=16, ...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/generator/automatic_mask_generator.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.717923
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict, List, Optional, Tuple import numpy as np import torch from torchvision.ops.boxes import bat...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.723808
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import importlib.metadata as importlib_metadata from .falai_predictor import automask_image as automask_image from .falai...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/generator/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.724395
from .automatic_mask_generator import ( SamAutomaticMaskGenerator as SamAutomaticMaskGenerator, ) from .build_sam import build_sam as build_sam from .build_sam import build_sam_vit_b as build_sam_vit_b from .build_sam import build_sam_vit_h as build_sam_vit_h from .build_sam import build_sam_vit_l as build_sam_vit_...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
examples/image_segautomask.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.726320
from metaseg import SegAutoMaskPredictor # If gpu memory is not enough, reduce the points_per_side and points_per_batch. def main(src: str = "image.png") -> None: SegAutoMaskPredictor().image_predict( source=src, model_type="vit_l", # vit_l, vit_h, vit_b points_per_side=16, point...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
examples/image_sahi_slice_predict.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.733787
from metaseg import SahiAutoSegmentation, sahi_sliced_predict def main(src: str = "image.png") -> None: img_path = src boxes = sahi_sliced_predict( image_path=img_path, detection_model_type="yolov5", # yolov8, detectron2, mmdetection, torchvision detection_model_path="yolov5l6.pt", ...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
examples/image_segmanualmask.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.735372
from metaseg import SegManualMaskPredictor # If gpu memory is not enough, reduce the points_per_side and points_per_batch. def main(src: str = "image.png") -> None: SegManualMaskPredictor().image_predict( source=src, model_type="vit_l", # vit_l, vit_h, vit_b input_point=[[100, 100], [200...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
examples/video_segmanualmask.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.740976
from metaseg import SegManualMaskPredictor # If gpu memory is not enough, reduce the points_per_side and points_per_batch. def main(src: str = "video.mp4") -> None: SegManualMaskPredictor().video_predict( source=src, model_type="vit_l", # vit_l, vit_h, vit_b input_point=[0, 0, 100, 100],...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/falai_predictor.py
null
null
null
null
null
null
Python
2026-05-04T02:33:04.848608
from io import BytesIO from PIL import Image from .sam_predictor import SegAutoMaskPredictor, SegManualMaskPredictor from .utils.data_utils import load_server_image try: from fal_serverless import isolated except ImportError: raise ImportError( "Please install FalAI library using 'pip install fal_ser...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/generator/build_sam.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.265832
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from functools import partial import torch from metaseg.modeling import ( ImageEncoderViT, MaskDecoder, Prom...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/generator/predictor.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.304841
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from typing import Optional, Tuple import numpy as np import torch from metaseg.modeling import Sam from metaseg.utils.t...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/modeling/transformer.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.335344
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import math from typing import Tuple, Type import torch from torch import Tensor, nn from metaseg.modeling.common import...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/modeling/sam.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.344039
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict, List, Tuple import torch from torch import nn from torch.nn import functional as F from me...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/modeling/common.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.345630
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from typing import Type import torch import torch.nn as nn class MLPBlock(nn.Module): def __init__( self, ...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/modeling/image_encoder.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.384414
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from typing import Optional, Tuple, Type import torch import torch.nn as nn import torch.nn.functional as F from metaseg...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/modeling/mask_decoder.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.386456
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from typing import List, Tuple, Type import torch from torch import nn from torch.nn import functional as F from metaseg...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/modeling/prompt_encoder.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.388209
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Optional, Tuple, Type import numpy as np import torch from torch import nn from metaseg.modeling...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/sahi_predictor.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.424247
from typing import Union import cv2 import matplotlib.pyplot as plt import numpy as np import torch from cv2 import Mat from PIL import Image from metaseg.generator import SamPredictor, sam_model_registry from metaseg.utils import ( download_model, load_image, multi_boxes, plt_load_box, plt_load_m...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/modeling/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.448634
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from .common import LayerNorm2d as LayerNorm2d from .common import MLPBlock as MLPBlock from .image_encoder import ImageEn...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/utils/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.875555
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from .data_utils import load_box as load_box from .data_utils import load_image as load_image from .data_utils import load...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/utils/model_file_downloader.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.959983
import os from functools import partial from hashlib import md5 from pathlib import Path from shutil import copyfileobj from requests import Response, get from tqdm.auto import tqdm # A dictionary containing model types as keys and their respective URLs as values MODEL_URLS: dict[str : tuple[str]] = { "vit_h": ( ...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/sam_predictor.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.982913
from typing import Union import cv2 import numpy as np import torch from cv2 import Mat from tqdm import tqdm from metaseg.generator.automatic_mask_generator import SamAutomaticMaskGenerator from metaseg.generator.build_sam import sam_model_registry from metaseg.generator.predictor import SamPredictor from metaseg.ut...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/utils/onnx.py
null
null
null
null
null
null
Python
2026-05-04T02:33:05.987838
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from typing import Tuple import torch import torch.nn as nn from torch.nn import functional as F from metaseg.modeling i...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/utils/data_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:33:06.036704
from io import BytesIO from os import system from os.path import isfile as isfile from typing import Union from uuid import uuid4 import cv2 import matplotlib.pyplot as plt import numpy as np from cv2 import Mat from PIL import Image from torch import tensor def load_image(image: Union[str, Mat]) -> Mat: """ ...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/webapp/demo.py
null
null
null
null
null
null
Python
2026-05-04T02:33:06.065765
from metaseg import ( SahiAutoSegmentation, SegAutoMaskPredictor, SegManualMaskPredictor, sahi_sliced_predict, ) # For image def automask_image_app( image_path, model_type, points_per_side, points_per_batch, min_area ): SegAutoMaskPredictor().image_predict( source=image_path, ...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/utils/amg.py
null
null
null
null
null
null
Python
2026-05-04T02:33:06.066446
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import math from copy import deepcopy from itertools import product from typing import Any, Dict, Generator, ItemsView, Li...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/utils/transforms.py
null
null
null
null
null
null
Python
2026-05-04T02:33:06.095004
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from copy import deepcopy from typing import Tuple import numpy as np import torch from torch.nn import functional as F f...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
metaseg/webapp/app.py
null
null
null
null
null
null
Python
2026-05-04T02:33:06.148585
import gradio as gr from demo import automask_image_app, automask_video_app, sahi_autoseg_app def image_app(): with gr.Blocks(): with gr.Row(): with gr.Column(): seg_automask_image_file = gr.Image(type="filepath").style(height=260) with gr.Row(): ...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
scripts/amg.py
null
null
null
null
null
null
Python
2026-05-04T02:33:06.526806
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import argparse import json import os from typing import Any, Dict, List import cv2 from metaseg.generator import SamAut...
kadirnar/segment-anything-video
https://github.com/kadirnar/segment-anything-video
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
scripts/export_onnx_model.py
null
null
null
null
null
null
Python
2026-05-04T02:33:06.622383
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import argparse import warnings import torch from onnxruntime import InferenceSession from onnxruntime.quantization impor...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/config_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.240723
""" System config API routes """ from fastapi import APIRouter, HTTPException, Depends from sqlalchemy.orm import Session from pydantic import BaseModel from typing import Optional import logging from database.connection import SessionLocal from database.models import SystemConfig, GlobalSamplingConfig logger = logg...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/ai_stream_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.247538
""" AI Stream Routes - Common polling API for all AI assistants This module provides the shared polling endpoint for frontend to retrieve AI streaming task results. All AI assistants use this common infrastructure. Endpoints: - GET /api/ai-stream/{task_id} - Poll for task chunks with offset support - GET /api/ai-stre...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/crypto_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.255858
""" Crypto-specific API routes """ from fastapi import APIRouter, HTTPException from typing import List, Dict, Any import logging from services.market_data import get_all_symbols, get_last_price, get_market_status logger = logging.getLogger(__name__) router = APIRouter(prefix="/api/crypto", tags=["crypto"]) @router...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/account_management_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.258116
""" Account Management API Routes - Handle CRUD operations for trading accounts """ from fastapi import APIRouter, HTTPException, Depends from sqlalchemy.orm import Session from typing import List import logging from database.connection import SessionLocal from database.models import Account from repositories.account...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/account_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.259292
""" Account and Asset Curve API Routes (Cleaned) """ from fastapi import APIRouter, HTTPException, Depends from sqlalchemy.orm import Session from sqlalchemy import func from typing import List, Optional from datetime import date, datetime, timedelta, timezone from decimal import Decimal import logging import time fr...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/analytics_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.308084
""" Strategy Analytics API routes. Provides multi-dimensional analysis of trading decisions and performance. """ from datetime import datetime, date, timedelta from decimal import Decimal from typing import Optional, List, Dict, Any from fastapi import APIRouter, Depends, Query, HTTPException from pydantic import Bas...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/binance_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.356010
""" Binance Futures Management API Routes Provides endpoints for: - Wallet setup and configuration (API key binding) - Balance and position queries - Manual order placement - Connection testing """ from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session from pydantic import BaseModel, ...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/bot_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.473914
"""Bot Integration API Routes - Manage Telegram/Discord bot configurations""" import asyncio import json from fastapi import APIRouter, Depends, HTTPException, Request from pydantic import BaseModel from typing import Optional from sqlalchemy.orm import Session from database.connection import get_db from services.bot_...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/arena_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.493091
""" Alpha Arena aggregated data routes. Provides completed trades, model chat summaries, and consolidated positions for showcasing multi-model trading activity on the dashboard. """ from datetime import datetime, timezone from math import sqrt from statistics import mean, pstdev from typing import Dict, List, Optional...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/factor_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.831622
""" Factor System API Routes GET /api/factors/library → Factor registry GET /api/factors/values?exchange=&symbol=&period= → Latest factor values GET /api/factors/effectiveness?exchange=&symbol= → Effectiveness ranking GET /api/factors/effectiveness/{name}/history → IC trend GET /api/fac...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/hyper_ai_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.837674
""" Hyper AI Routes - API endpoints for Hyper AI main agent Endpoints: - GET /api/hyper-ai/providers - List available LLM providers - GET /api/hyper-ai/profile - Get user profile and LLM config status - POST /api/hyper-ai/profile/llm - Save LLM configuration (with connection test) - POST /api/hyper-ai/test-connectio...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/kline_analysis_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.856138
""" K-line AI Analysis API Routes """ import asyncio import logging import time from typing import Any, Dict, List, Optional from fastapi import APIRouter, Depends, HTTPException from pydantic import BaseModel from sqlalchemy.orm import Session from database.connection import SessionLocal from database.models import ...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/hyperliquid_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.898772
""" Hyperliquid Management API Routes Provides endpoints for: - Account setup and configuration - Environment switching (testnet/mainnet) - Balance and position queries - Manual order placement (for testing) - Connection testing """ from datetime import datetime, timedelta, timezone from fastapi import APIRouter, Depe...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/kline_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.905032
""" K线数据管理API路由 """ import asyncio from datetime import datetime, timedelta from fastapi import APIRouter, HTTPException, Depends, BackgroundTasks from sqlalchemy.orm import Session from typing import List, Optional, Dict, Any from pydantic import BaseModel import logging from database.connection import SessionLocal ...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/market_data_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.938449
""" Market data API routes Provides RESTful API interfaces for crypto market data """ from fastapi import APIRouter, HTTPException from typing import List, Dict, Any, Optional from pydantic import BaseModel import logging from services.market_data import get_last_price, get_kline_data, get_market_status, get_ticker_d...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/hyperliquid_action_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.945366
from datetime import datetime, timedelta from typing import Optional, Dict, Any from fastapi import APIRouter, Depends, Query from sqlalchemy import func from sqlalchemy.orm import Session from database.connection import SessionLocal from database.models import HyperliquidExchangeAction router = APIRouter(prefix="/a...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/market_flow_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:09.968615
""" Market Flow Indicators API Routes Provides aggregated market flow indicators: - CVD (Cumulative Volume Delta) - Taker Buy/Sell Volume - OI (Open Interest) - absolute and delta - Funding Rate - Depth Ratio - Order Imbalance """ import logging from datetime import datetime from decimal import Decimal from typing im...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/market_intelligence_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.189538
import asyncio import json import logging import math from datetime import datetime, timedelta, timezone from typing import Any, Dict, List, Optional from fastapi import APIRouter, Query, Request from fastapi.responses import StreamingResponse from sqlalchemy.orm import Session from sqlalchemy import func from databa...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/market_regime_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.191025
""" Market Regime Classification API routes """ from fastapi import APIRouter, HTTPException, Depends from sqlalchemy.orm import Session from pydantic import BaseModel from typing import Optional, List, Dict, Any import logging from database.connection import SessionLocal from database.models import MarketRegimeConfi...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/news_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.449452
""" News Source Management API GET /api/news/sources - List all configured news sources PUT /api/news/sources - Update sources config (enable/disable, add/remove) POST /api/news/sources/test - Test a new RSS/API source (fetch + parse preview) GET /api/news/stats - Get collection sta...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/prompt_backtest_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.487146
""" Prompt Backtest API Routes Provides endpoints for: - Creating backtest tasks - Querying task status and progress - Querying comparison results - Getting individual item details """ import json import logging from datetime import datetime, timezone from typing import List, Optional from decimal import Decimal fro...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/order_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.487673
""" Order Management API Routes Provides functionality for creating, querying, and canceling orders """ from fastapi import APIRouter, HTTPException, Depends from sqlalchemy.orm import Session from typing import List, Optional from pydantic import BaseModel import logging from database.connection import SessionLocal ...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/prompt_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.514229
from __future__ import annotations from typing import Dict, List, Optional from fastapi import APIRouter, Depends, HTTPException, Query from sqlalchemy.orm import Session from database.connection import SessionLocal from repositories import prompt_repo from database.models import PromptTemplate, Account from schemas...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/sampling_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.543722
"""Sampling pool API routes""" from fastapi import APIRouter from typing import Dict, Any from services.sampling_pool import sampling_pool router = APIRouter(prefix="/api/sampling", tags=["sampling"]) @router.get("/pool-status") async def get_sampling_pool_status() -> Dict[str, Any]: """Get current sampling poo...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/signal_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.587346
"""Signal system API routes""" from __future__ import annotations import logging import json from typing import Any, List, Optional from fastapi import APIRouter, Depends, HTTPException, Query from pydantic import BaseModel from sqlalchemy.orm import Session from sqlalchemy import text from database.connection impor...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/ranking_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.625796
""" Ranking API routes for factor-based crypto rankings """ from fastapi import APIRouter, Depends, HTTPException, Query from sqlalchemy.orm import Session from typing import List, Optional import pandas as pd import requests from datetime import datetime, timedelta from database.connection import get_db from database...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/system_log_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.644894
""" System Log API Routes 提供系统日志查询接口 """ from fastapi import APIRouter, Query from typing import Optional, List, Dict, Any from services.system_logger import system_logger router = APIRouter(prefix="/api/system-logs", tags=["System Logs"]) @router.get("/") async def get_system_logs( level: Optional[str] = Query...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/trader_data_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.775449
""" Trader Data Export/Import API Routes Export AI decision logs with related Hyperliquid trades for migration between environments. """ from fastapi import APIRouter, HTTPException, Depends from fastapi.responses import JSONResponse from sqlalchemy.orm import Session from typing import Optional, List, Tuple from date...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/system_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:10.782587
"""System configuration and data management API routes""" import logging from datetime import datetime, timedelta from fastapi import APIRouter, Depends, HTTPException from sqlalchemy import text from sqlalchemy.orm import Session from pydantic import BaseModel from database.connection import get_db from database.mod...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/user_routes.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.013022
""" User authentication API routes """ from fastapi import APIRouter, HTTPException, Depends from sqlalchemy.orm import Session from typing import List import logging from database.connection import SessionLocal from database.models import User, UserExchangeConfig, UserSubscription from repositories.user_repo import ...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/backtest/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.079435
""" Backtest Engine Module Provides event-driven backtesting infrastructure for: - Program Trader strategies - AI Prompt strategies (future) Core components: - BacktestConfig: Backtest configuration - TriggerEvent: Unified trigger event format - BacktestResult: Backtest results and statistics - VirtualAccount: Virtua...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/api/ws.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.081221
import asyncio import json import logging import threading import time from datetime import date, datetime, timedelta from typing import Dict, Optional, Set from fastapi import WebSocket, WebSocketDisconnect from sqlalchemy.orm import Session from database.connection import SessionLocal from database.models import AI...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/backtest/execution_simulator.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.186252
""" Execution Simulator for Backtest Simulates order execution with realistic conditions: - Slippage calculation - Fee calculation - TP/SL order checking - Position management """ import logging from typing import Dict, List, Optional, Tuple, Any from dataclasses import dataclass from .virtual_account import Virtual...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/backtest/historical_data_provider.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.222308
""" Historical Data Provider for Backtest Provides historical market data for backtesting. Interface compatible with DataProvider for strategy code reuse. """ import logging from typing import Dict, List, Any, Optional from datetime import datetime, timezone from sqlalchemy.orm import Session from sqlalchemy import t...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/backtest/models.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.227320
""" Backtest Data Models Core data structures for the backtest engine. """ from dataclasses import dataclass, field from datetime import datetime from typing import Dict, List, Any, Optional @dataclass class BacktestConfig: """Backtest configuration.""" code: str # Strategy code...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/backtest/engine.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.252538
""" Program Backtest Engine Event-driven backtest engine for Program Trader strategies. Orchestrates trigger generation, strategy execution, and result calculation. """ import logging import time from typing import Dict, List, Any, Optional from datetime import datetime, timezone from sqlalchemy.orm import Session f...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/backtest/virtual_account.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.311019
""" Virtual Account for Backtest Manages virtual account state during backtesting: - Balance and equity tracking - Position management - Pending orders (TP/SL) """ from dataclasses import dataclass, field from typing import Dict, List, Optional, Any from copy import deepcopy @dataclass class VirtualPosition: ""...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/config/prompt_templates.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.395625
""" Default and Pro prompt templates for Hyper Alpha Arena. """ # Baseline prompt (simplest version) DEFAULT_PROMPT_TEMPLATE = """You are a cryptocurrency trading AI. === TRADING ENVIRONMENT === {trading_environment} === ACCOUNT STATUS === Available Cash: ${available_cash} Total Account Value: ${total_account_value}...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/config/settings.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.627290
from pydantic import BaseModel from typing import Dict import os class MarketConfig(BaseModel): market: str min_commission: float commission_rate: float exchange_rate: float min_order_quantity: int = 1 lot_size: int = 1 class HyperliquidBuilderConfig(BaseModel): """Hyperliquid Builder Fe...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/database/connection.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.658627
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, declarative_base import os # Prefer explicit env override; default to service name for containerized deployment # Default to docker-compose service name; override via env when needed DATABASE_URL = os.environ.get('DATABASE_URL', "postgresql:...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/database/init_snapshot_db.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.801028
""" Initialize snapshot database tables """ from database.snapshot_connection import snapshot_engine from database.snapshot_models import SnapshotBase def init_snapshot_database(): """Create all snapshot database tables""" SnapshotBase.metadata.create_all(bind=snapshot_engine) print("Snapshot database tabl...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/database/init_hyperliquid_tables.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.801605
""" Initialize Hyperliquid Tables - Simple Approach This script uses SQLAlchemy's create_all() to automatically create missing tables and columns. Much simpler than manual migration for SQLite. Usage: cd /home/wwwroot/open-alpha-arena/backend python database/init_hyperliquid_tables.py """ import sys import os...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/database/migrate_add_hyperliquid.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.852752
""" Database Migration Script - Add Hyperliquid Support This script adds Hyperliquid trading support to the existing database. Run this ONCE after updating the models.py file. Usage: cd /home/wwwroot/open-alpha-arena/backend source .venv/bin/activate # Activate virtual environment python database/migrate...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/database/init_postgresql.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.877059
#!/usr/bin/env python3 """ PostgreSQL database initialization script Automatically creates databases and tables for Hyper Alpha Arena """ import sys import logging import os from sqlalchemy import create_engine, text, inspect from sqlalchemy.exc import OperationalError, ProgrammingError logging.basicConfig(level=logg...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/database/migration_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.898861
#!/usr/bin/env python3 """ Database Migration Manager Runs all migrations on every startup, relying on idempotency. Each migration script must check if changes are needed before applying. Architecture: - No migration records - we don't track "what ran", only "what's correct" - Idempotency is the core guarantee - scri...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/database/migrations/031_hyper_ai_tables.py
null
null
null
null
null
null
Python
2026-05-04T02:33:11.974339
#!/usr/bin/env python3 """ Migration 031: Create Hyper AI tables Hyper AI is the master agent for full-site AI intelligence: - hyper_ai_profile: User trading preferences and LLM configuration - hyper_ai_memory: AI-extracted user insights (preferences, decisions, lessons) - hyper_ai_conversations: Conversation sessions...
HammerGPT/Hyper-Alpha-Arena
https://github.com/HammerGPT/Hyper-Alpha-Arena
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
backend/database/migrations/add_agent_wallet_fields.py
null
null
null
null
null
null
Python
2026-05-04T02:33:12.086916
#!/usr/bin/env python3 """ Migration: Add agent wallet fields to hyperliquid_wallets table. New columns: - key_type: VARCHAR(20), NOT NULL, DEFAULT 'private_key' - master_wallet_address: VARCHAR(100), nullable - agent_valid_until: TIMESTAMP, nullable Idempotent: checks column existence before adding. """ import sys ...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/agents/registry.py
null
null
null
null
null
null
Python
2026-05-04T02:33:15.112742
""" LLM-Note: Sub-agent registry and factory for specialized agents. This module defines configurations for specialized sub-agents and provides a factory function to create them on demand. Key components: - SUBAGENTS: Dictionary mapping agent types to configurations - get_subagent(agent_type): Creates configured Agen...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:15.115029
""" Purpose: CLI module entry point with version metadata LLM-Note: Dependencies: none | imported by [cli/main.py, setup.py] | no direct tests Data flow: pure metadata (version string) State/Effects: no state Integration: exposes __version__ for CLI about/version commands Performance: trivial Errors: none C...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:15.116597
""" LLM-Note: co-ai package - AI coding agent CLI tool built with ConnectOnion. This package implements the `co ai` command that starts an intelligent coding assistant with file operations, planning, and background task execution. Main export: - create_coding_agent(): Factory function for agent with full tool suite ...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:15.118119
""" Purpose: Main package entry point exposing public API for ConnectOnion framework LLM-Note: Dependencies: imports from [core/, logger.py, llm_do.py, transcribe.py, prompts.py, debug/, useful_tools/, network/, address.py] | imported by [user code, tests/, examples/] | no direct tests (integration tests import from ...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/agents/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:15.118988
""" LLM-Note: Sub-agent system for OO coding assistant. This module provides access to specialized sub-agents that can be invoked via the Task tool for specific purposes (exploration, planning, etc.). Key components: - SUBAGENTS: Dictionary of available sub-agent configurations - get_subagent(type): Factory function ...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/commands/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:15.120574
""" LLM-Note: Built-in slash commands for co ai interactive CLI. This module exports all built-in commands that users can invoke with slash syntax (e.g., /help, /cost, /sessions) in the co ai interface. Available commands: - /init: Initialize project context - /help: Show available commands - /cost: Show token costs ...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:33:15.121670
""" LLM-Note: Factory function for creating the 'co ai' coding agent with all tools and plugins. Key function: - create_coding_agent(): Creates Agent with full tool suite and intelligent defaults Tools included: - File operations: glob, grep, read_file, edit, FileWriter - Task management: task, TodoList - Planning: e...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/browser_agent/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:33:15.122700
""" Purpose: Browser agent module exports for CLI browser automation LLM-Note: Dependencies: imports from [browser.py] | imported by [cli/commands/browser_commands.py] | no direct tests Data flow: re-exports execute_browser_command and BrowserAutomation State/Effects: no state Integration: exposes execute_brows...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/address.py
null
null
null
null
null
null
Python
2026-05-04T02:33:15.124302
""" Purpose: Generate and manage Ed25519 cryptographic agent identities with seed phrase recovery LLM-Note: Dependencies: imports from [os, pathlib, typing, nacl.signing, mnemonic] | imported by [cli/commands/auth_commands.py] | tested by [tests/test_address.py] Data flow: generate() → creates 12-word seed phrase v...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/commands/export.py
null
null
null
null
null
null
Python
2026-05-04T02:33:16.531852
""" LLM-Note: /export command - export conversation to markdown format. This command exports the current conversation history to a markdown file and optionally opens it in the user's preferred text editor. Key function: - cmd_export(): Exports messages to timestamped markdown file - set_agent(): Injects agent referen...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/commands/cost.py
null
null
null
null
null
null
Python
2026-05-04T02:33:16.532881
""" LLM-Note: Session cost tracking command for co_ai - Displays token usage and cost metrics This module implements the /cost command which shows comprehensive cost analytics for the current co_ai session. Key components: - cmd_cost(args): Main command handler displaying cost breakdown - _current_agent: Module-level...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/commands/sessions.py
null
null
null
null
null
null
Python
2026-05-04T02:33:16.534063
""" LLM-Note: Session management commands - /sessions, /new, /resume. These commands manage conversation session persistence, allowing users to save, list, and resume previous conversations. Key functions: - cmd_sessions(): Lists recent saved sessions (last 10) - cmd_new(): Creates new session and clears current conv...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/context.py
null
null
null
null
null
null
Python
2026-05-04T02:33:16.535405
""" LLM-Note: Loads project context from multiple sources for co ai agent system prompt. Key function: - load_project_context(): Assembles context from files and git status Context sources (priority order): 1. .co/OO.md - OpenOnion-specific project instructions (primary) 2. CLAUDE.md - Compatibility with Claude Code ...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/commands/undo.py
null
null
null
null
null
null
Python
2026-05-04T02:33:16.536418
""" LLM-Note: Git-backed undo/redo system for co-ai conversations. This module implements /undo and /redo commands which allow reversing conversation turns and their associated file changes using git stash. Key components: - cmd_undo(): Removes last conversation turn and stashes file changes - cmd_redo(): Restores la...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/commands/compact.py
null
null
null
null
null
null
Python
2026-05-04T02:33:16.537860
""" LLM-Note: /compact command - compress conversation context using LLM summarization. This command uses an LLM to intelligently summarize older messages in the conversation history, freeing up context window space while preserving important information. Key function: - cmd_compact(): Triggers context compression fo...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/commands/init.py
null
null
null
null
null
null
Python
2026-05-04T02:33:16.538955
""" LLM-Note: Project initialization command for co_ai - Creates .co/OO.md configuration file This module implements the /init command which sets up co_ai for a new project by creating the .co directory structure and OO.md configuration template. Key components: - cmd_init(args): Main command handler for project init...
openonion/connectonion
https://github.com/openonion/connectonion
null
null
null
null
983
null
null
apache-2.0
null
null
null
null
null
null
null
connectonion/cli/co_ai/commands/tasks.py
null
null
null
null
null
null
Python
2026-05-04T02:33:16.539853
""" LLM-Note: /tasks command for background task management. This module implements the /tasks command which lists and manages background tasks running in the co-ai environment. Key components: - cmd_tasks(args): Lists all background tasks or kills specific task - Displays task table with ID, status, command, and ela...