Add config initialization to agent and swarm command groups
Some checks failed
CLI Tests / test-cli (push) Failing after 10s
Cross-Node Transaction Testing / transaction-test (push) Successful in 2s
Deploy to Testnet / deploy-testnet (push) Successful in 1m6s
Documentation Validation / validate-docs (push) Failing after 8s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Successful in 4s
Security Scanning / security-scan (push) Successful in 25s
Some checks failed
CLI Tests / test-cli (push) Failing after 10s
Cross-Node Transaction Testing / transaction-test (push) Successful in 2s
Deploy to Testnet / deploy-testnet (push) Successful in 1m6s
Documentation Validation / validate-docs (push) Failing after 8s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Successful in 4s
Security Scanning / security-scan (push) Successful in 25s
- Initialize Click context object with config in agent and swarm groups - Import get_config and CLIConfig from aitbc_cli.config - Add httpx import to swarm.py - Set default output_format to 'table' in context - Update scenario 24 to use --task instead of --task-type and --payload - Change swarm status command to use task_id instead of swarm-id
This commit is contained in:
@@ -8,12 +8,18 @@ import uuid
|
||||
from typing import Optional, Dict, Any, List
|
||||
from pathlib import Path
|
||||
from utils import output, error, success, warning
|
||||
from aitbc_cli.config import get_config, CLIConfig
|
||||
|
||||
|
||||
@click.group()
|
||||
def agent():
|
||||
@click.pass_context
|
||||
def agent(ctx):
|
||||
"""Advanced AI agent workflow and execution management"""
|
||||
pass
|
||||
# Initialize context object with config
|
||||
if ctx.obj is None:
|
||||
ctx.obj = {}
|
||||
ctx.obj['config'] = get_config()
|
||||
ctx.obj['output_format'] = ctx.obj.get('output_format', 'table')
|
||||
|
||||
|
||||
@agent.command()
|
||||
|
||||
@@ -1,14 +1,21 @@
|
||||
"""Swarm intelligence and collective optimization commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import httpx
|
||||
from utils import output, error, success, warning
|
||||
from typing import Optional, Dict, Any, List
|
||||
from aitbc_cli.config import get_config, CLIConfig
|
||||
|
||||
|
||||
@click.group()
|
||||
def swarm():
|
||||
@click.pass_context
|
||||
def swarm(ctx):
|
||||
"""Swarm intelligence and collective optimization"""
|
||||
pass
|
||||
# Initialize context object with config
|
||||
if ctx.obj is None:
|
||||
ctx.obj = {}
|
||||
ctx.obj['config'] = get_config()
|
||||
ctx.obj['output_format'] = ctx.obj.get('output_format', 'table')
|
||||
|
||||
|
||||
@swarm.command()
|
||||
|
||||
Reference in New Issue
Block a user