minor cleanup
This commit is contained in:
@@ -1,58 +0,0 @@
|
|||||||
# ARCHITECTURE.md
|
|
||||||
|
|
||||||
## Tech Stack
|
|
||||||
- **Framework**: [Primary framework/language]
|
|
||||||
- **Database**: [Database system]
|
|
||||||
- **Frontend**: [Frontend technology]
|
|
||||||
- **Backend**: [Backend technology]
|
|
||||||
- **Infrastructure**: [Hosting/deployment]
|
|
||||||
- **Build Tools**: [Build system]
|
|
||||||
|
|
||||||
## Directory Structure
|
|
||||||
```
|
|
||||||
project/
|
|
||||||
├── src/ # Source code
|
|
||||||
├── tests/ # Test files
|
|
||||||
├── docs/ # Documentation
|
|
||||||
├── config/ # Configuration files
|
|
||||||
└── scripts/ # Build/deployment scripts
|
|
||||||
```
|
|
||||||
|
|
||||||
## Key Architectural Decisions
|
|
||||||
|
|
||||||
### [Decision 1]
|
|
||||||
**Context**: [Why this decision was needed]
|
|
||||||
**Decision**: [What was decided]
|
|
||||||
**Rationale**: [Why this approach was chosen]
|
|
||||||
**Consequences**: [Trade-offs and implications]
|
|
||||||
|
|
||||||
## Component Architecture
|
|
||||||
|
|
||||||
### [ComponentName] Structure <!-- #component-anchor -->
|
|
||||||
```typescript
|
|
||||||
// Major classes with exact line numbers
|
|
||||||
class MainClass { /* lines 100-500 */ } // <!-- #main-class -->
|
|
||||||
class Helper { /* lines 501-600 */ } // <!-- #helper-class -->
|
|
||||||
```
|
|
||||||
|
|
||||||
## System Flow Diagram
|
|
||||||
```
|
|
||||||
[User] -> [Frontend] -> [API] -> [Database]
|
|
||||||
| |
|
|
||||||
v v
|
|
||||||
[Cache] [External Service]
|
|
||||||
```
|
|
||||||
|
|
||||||
## Common Patterns
|
|
||||||
|
|
||||||
### [Pattern Name]
|
|
||||||
**When to use**: [Circumstances]
|
|
||||||
**Implementation**: [How to implement]
|
|
||||||
**Example**: [Code example with line numbers]
|
|
||||||
|
|
||||||
## Keywords <!-- #keywords -->
|
|
||||||
- architecture
|
|
||||||
- system design
|
|
||||||
- tech stack
|
|
||||||
- components
|
|
||||||
- patterns
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
# BUILD.md
|
|
||||||
|
|
||||||
## Prerequisites
|
|
||||||
- [Runtime requirements]
|
|
||||||
- [Development tools needed]
|
|
||||||
- [Environment setup]
|
|
||||||
|
|
||||||
## Build Commands
|
|
||||||
|
|
||||||
### Development
|
|
||||||
```bash
|
|
||||||
# Start development server
|
|
||||||
npm run dev
|
|
||||||
|
|
||||||
# Run in watch mode
|
|
||||||
npm run watch
|
|
||||||
```
|
|
||||||
|
|
||||||
### Production
|
|
||||||
```bash
|
|
||||||
# Build for production
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
# Start production server
|
|
||||||
npm start
|
|
||||||
```
|
|
||||||
|
|
||||||
### Testing
|
|
||||||
```bash
|
|
||||||
# Run all tests
|
|
||||||
npm test
|
|
||||||
|
|
||||||
# Run tests in watch mode
|
|
||||||
npm run test:watch
|
|
||||||
|
|
||||||
# Run specific test file
|
|
||||||
npm test -- filename
|
|
||||||
```
|
|
||||||
|
|
||||||
### Linting & Formatting
|
|
||||||
```bash
|
|
||||||
# Lint code
|
|
||||||
npm run lint
|
|
||||||
|
|
||||||
# Fix linting issues
|
|
||||||
npm run lint:fix
|
|
||||||
|
|
||||||
# Format code
|
|
||||||
npm run format
|
|
||||||
```
|
|
||||||
|
|
||||||
## CI/CD Pipeline
|
|
||||||
|
|
||||||
### GitHub Actions
|
|
||||||
```yaml
|
|
||||||
# .github/workflows/main.yml
|
|
||||||
name: CI/CD
|
|
||||||
on: [push, pull_request]
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: '18'
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm test
|
|
||||||
- run: npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
## Deployment
|
|
||||||
|
|
||||||
### Staging
|
|
||||||
1. [Deployment steps]
|
|
||||||
2. [Verification steps]
|
|
||||||
|
|
||||||
### Production
|
|
||||||
1. [Pre-deployment checklist]
|
|
||||||
2. [Deployment steps]
|
|
||||||
3. [Post-deployment verification]
|
|
||||||
|
|
||||||
## Rollback Procedures
|
|
||||||
1. [Emergency rollback steps]
|
|
||||||
2. [Database rollback if needed]
|
|
||||||
3. [Verification steps]
|
|
||||||
|
|
||||||
## Troubleshooting
|
|
||||||
|
|
||||||
### Common Issues
|
|
||||||
**Issue**: [Problem description]
|
|
||||||
**Solution**: [How to fix]
|
|
||||||
|
|
||||||
### Build Failures
|
|
||||||
- [Common build errors and solutions]
|
|
||||||
|
|
||||||
## Keywords <!-- #keywords -->
|
|
||||||
- build
|
|
||||||
- deployment
|
|
||||||
- ci/cd
|
|
||||||
- testing
|
|
||||||
- production
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
from src.file_cache import ASTParser
|
|
||||||
from pathlib import Path
|
|
||||||
parser = ASTParser('cpp')
|
|
||||||
code = Path('tests/assets/gencpp_samples/ast.hpp').read_text()
|
|
||||||
tree = parser.get_cached_tree(None, code)
|
|
||||||
code_bytes = code.encode('utf8')
|
|
||||||
def find_node(node):
|
|
||||||
start = node.start_point.row + 1
|
|
||||||
if start == 296:
|
|
||||||
print(f'LINE 296 NODE: {node.type}, NAME: {parser._get_name(node, code_bytes)}, TEXT: {code_bytes[node.start_byte:node.end_byte].decode("utf8")[:50].strip()}...')
|
|
||||||
for child in node.children:
|
|
||||||
find_node(child)
|
|
||||||
find_node(tree.root_node)
|
|
||||||
Binary file not shown.
@@ -1,34 +0,0 @@
|
|||||||
import re
|
|
||||||
|
|
||||||
with open('src/mcp_client.py', 'r', encoding='utf-8') as f:
|
|
||||||
content = f.read()
|
|
||||||
|
|
||||||
# 1. Remove nested imports
|
|
||||||
nested_imports = [
|
|
||||||
r'^\s+from src\.paths import get_config_path\n',
|
|
||||||
r'^\s+from src\.ai_client import get_credentials_path\n',
|
|
||||||
r'^\s+from src\.file_cache import ASTParser\n',
|
|
||||||
r'^\s+import re\n'
|
|
||||||
]
|
|
||||||
|
|
||||||
for pattern in nested_imports:
|
|
||||||
content = re.sub(pattern, '', content, flags=re.MULTILINE)
|
|
||||||
|
|
||||||
# 2. Update _re to re
|
|
||||||
content = content.replace('_re.sub', 're.sub')
|
|
||||||
|
|
||||||
# 3. Ensure 1-space indentation for code
|
|
||||||
# This is tricky without a full parser, but let's try to fix lines that have 4n spaces
|
|
||||||
# and convert them to n spaces if they are not in multi-line strings.
|
|
||||||
# BUT the user said "Ensure the entire file uses exactly 1-space indentation."
|
|
||||||
# If the file is already mostly 1-space, maybe just fixing the ones that are not is enough.
|
|
||||||
|
|
||||||
# Let's try a simple reindentation:
|
|
||||||
# Every leading space count 's' becomes 's/1'? No, that doesn't make sense.
|
|
||||||
# Usually this means: if level 1 was 4 spaces, make it 1 space.
|
|
||||||
# But here level 1 IS already 1 space.
|
|
||||||
# So if something is 4 spaces, it might be level 4 or it might be level 1 in 4-space indent style.
|
|
||||||
# Given the project, it's likely already 1-space per level.
|
|
||||||
|
|
||||||
with open('src/mcp_client.py', 'w', encoding='utf-8') as f:
|
|
||||||
f.write(content)
|
|
||||||
BIN
Binary file not shown.
@@ -1,5 +0,0 @@
|
|||||||
import math
|
|
||||||
import os
|
|
||||||
|
|
||||||
def only_imports():
|
|
||||||
pass
|
|
||||||
Binary file not shown.
@@ -1,2 +0,0 @@
|
|||||||
[presets.ModalPreset]
|
|
||||||
system_prompt = "Modal Content"
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
role = "tier4"
|
|
||||||
prompt = "Just a test"
|
|
||||||
tool_preset = "CustomPreset"
|
|
||||||
debug = true
|
|
||||||
failure_count = 1
|
|
||||||
docs = []
|
|
||||||
-80
@@ -1,80 +0,0 @@
|
|||||||
# Test Manifest for manual_slop
|
|
||||||
|
|
||||||
[categories.core]
|
|
||||||
description = "Manual Slop Core and GUI tests"
|
|
||||||
files = [
|
|
||||||
"tests/test_api_events.py",
|
|
||||||
"tests/test_gui_diagnostics.py",
|
|
||||||
"tests/test_gui_events.py",
|
|
||||||
"tests/test_gui_performance_requirements.py",
|
|
||||||
"tests/test_gui_stress_performance.py",
|
|
||||||
"tests/test_gui_updates.py",
|
|
||||||
"tests/test_gui2_events.py",
|
|
||||||
"tests/test_gui2_layout.py",
|
|
||||||
"tests/test_gui2_mcp.py",
|
|
||||||
"tests/test_gui2_parity.py",
|
|
||||||
"tests/test_gui2_performance.py",
|
|
||||||
"tests/test_history_management.py",
|
|
||||||
"tests/test_headless_service.py",
|
|
||||||
"tests/test_performance_monitor.py",
|
|
||||||
"tests/test_token_usage.py",
|
|
||||||
"tests/test_layout_reorganization.py",
|
|
||||||
"tests/test_async_events.py",
|
|
||||||
"test_mma_persistence.py",
|
|
||||||
"tests/test_session_logging.py",
|
|
||||||
"tests/test_logging_e2e.py",
|
|
||||||
"tests/test_log_management_ui.py",
|
|
||||||
"tests/test_log_pruner.py",
|
|
||||||
"tests/test_log_registry.py"
|
|
||||||
]
|
|
||||||
|
|
||||||
[categories.mma]
|
|
||||||
description = "Manual Slop MMA Feature tests (Project Features)"
|
|
||||||
files = [
|
|
||||||
"tests/test_conductor_engine.py",
|
|
||||||
"tests/test_conductor_tech_lead.py",
|
|
||||||
"tests/test_orchestrator_pm.py",
|
|
||||||
"tests/test_orchestrator_pm_history.py",
|
|
||||||
"tests/test_orchestration_logic.py",
|
|
||||||
"tests/test_mma_models.py",
|
|
||||||
"tests/test_mma_prompts.py",
|
|
||||||
"tests/test_mma_ticket_actions.py",
|
|
||||||
"tests/test_mma_orchestration_gui.py",
|
|
||||||
"tests/test_headless_verification.py",
|
|
||||||
"tests/test_tier4_interceptor.py",
|
|
||||||
"tests/test_conductor_api_hook_integration.py",
|
|
||||||
"tests/test_visual_mma.py",
|
|
||||||
"tests/test_visual_orchestration.py",
|
|
||||||
"tests/test_visual_sim_gui_ux.py",
|
|
||||||
"tests/test_visual_sim_mma_v2.py"
|
|
||||||
]
|
|
||||||
|
|
||||||
[categories.integrations]
|
|
||||||
description = "MCP and other external integration tests"
|
|
||||||
files = [
|
|
||||||
"tests/test_api_hook_client.py",
|
|
||||||
"tests/test_api_hook_extensions.py",
|
|
||||||
"tests/test_hooks.py",
|
|
||||||
"tests/test_sync_hooks.py",
|
|
||||||
"tests/test_mcp_perf_tool.py"
|
|
||||||
]
|
|
||||||
|
|
||||||
[categories.simulations]
|
|
||||||
description = "AI and Workflow simulation tests"
|
|
||||||
files = [
|
|
||||||
"tests/test_sim_ai_settings.py",
|
|
||||||
"tests/test_sim_base.py",
|
|
||||||
"tests/test_sim_context.py",
|
|
||||||
"tests/test_sim_execution.py",
|
|
||||||
"tests/test_sim_tools.py",
|
|
||||||
"tests/test_workflow_sim.py",
|
|
||||||
"tests/test_extended_sims.py",
|
|
||||||
"tests/test_user_agent.py",
|
|
||||||
"tests/test_live_workflow.py",
|
|
||||||
"tests/test_agent_capabilities.py",
|
|
||||||
"tests/test_agent_tools_wiring.py"
|
|
||||||
]
|
|
||||||
|
|
||||||
[execution]
|
|
||||||
default_categories = ["core", "mma", "integrations", "simulations"]
|
|
||||||
blacklist_categories = []
|
|
||||||
Reference in New Issue
Block a user