Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .tmp_check
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Refresh Data button (dashboard)
const refreshBtn = document.getElementById('refresh-data-btn');
if (refreshBtn) {
refreshBtn.addEventListener('click', async () => {
refreshBtn.disabled = true;
refreshBtn.innerHTML = '<span class="loader"></span> Refreshing...';
try {
const resp = await fetch('/api/refresh', { method: 'POST' });
if (resp.ok) {
window.location.reload();
} else {
1 change: 0 additions & 1 deletion examples/invalid_prompt_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""



def process_prompt(prompt: str) -> None:
"""
Processes a prompt. Fails if the prompt is invalid.
Expand Down
11 changes: 11 additions & 0 deletions out.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Refresh Data button (dashboard)
const refreshBtn = document.getElementById('refresh-data-btn');
if (refreshBtn) {
refreshBtn.addEventListener('click', async () => {
refreshBtn.disabled = true;
refreshBtn.innerHTML = '<span class="loader"></span> Refreshing...';
try {
const resp = await fetch('/api/refresh', { method: 'POST' });
if (resp.ok) {
window.location.reload();
} else {
5 changes: 4 additions & 1 deletion scripts/agents/agent_setup/run_agent_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand Down Expand Up @@ -50,5 +52,6 @@ def main() -> int:
print_success("Agent setup probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
5 changes: 4 additions & 1 deletion scripts/agents/agentic_seek/run_agentic_seek.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand Down Expand Up @@ -50,5 +52,6 @@ def main() -> int:
print_success("agenticSeek probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
9 changes: 7 additions & 2 deletions scripts/agents/ai_code_editing/run_ai_code_editing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand All @@ -34,9 +36,12 @@ def main() -> int:
return 1

print_success(f"CodeEditor imported: {CodeEditor.__name__}")
print_info(f" Methods: {[m for m in dir(CodeEditor) if not m.startswith('_')][:10]}")
print_info(
f" Methods: {[m for m in dir(CodeEditor) if not m.startswith('_')][:10]}"
)
print_success("AI Code Editing probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
5 changes: 4 additions & 1 deletion scripts/agents/cli/run_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand All @@ -39,5 +41,6 @@ def main() -> int:
print_success("CLI probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
5 changes: 4 additions & 1 deletion scripts/agents/context/run_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand Down Expand Up @@ -41,5 +43,6 @@ def main() -> int:
print_success("Context probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
5 changes: 4 additions & 1 deletion scripts/agents/core/run_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand Down Expand Up @@ -62,5 +64,6 @@ def main() -> int:
print_success("Core infrastructure probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
6 changes: 5 additions & 1 deletion scripts/agents/every_code/run_every_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand All @@ -37,6 +39,7 @@ def main() -> int:
return 1

import shutil

ec_bin = shutil.which("every-code") or shutil.which("everycode")
if ec_bin:
print_success(f" every-code CLI found: {ec_bin}")
Expand All @@ -49,5 +52,6 @@ def main() -> int:
print_success("Every Code probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
5 changes: 4 additions & 1 deletion scripts/agents/generic/run_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand Down Expand Up @@ -47,5 +49,6 @@ def main() -> int:
print_success("Generic agents probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
11 changes: 9 additions & 2 deletions scripts/agents/git_agent/run_git_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand All @@ -25,7 +27,11 @@

def main() -> int:
setup_logging()
repo_path = sys.argv[1] if len(sys.argv) > 1 else str(Path(__file__).resolve().parent.parent.parent.parent)
repo_path = (
sys.argv[1]
if len(sys.argv) > 1
else str(Path(__file__).resolve().parent.parent.parent.parent)
)
print_info(f"Git Agent — analyzing {repo_path}...")

try:
Expand All @@ -47,5 +53,6 @@ def main() -> int:
print_success("Git agent probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
5 changes: 4 additions & 1 deletion scripts/agents/google_workspace/run_google_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand Down Expand Up @@ -50,5 +52,6 @@ def main() -> int:
print_success("Google Workspace probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
10 changes: 8 additions & 2 deletions scripts/agents/hermes/run_hermes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand Down Expand Up @@ -55,7 +57,11 @@ def main() -> int:
print_info("")

# Real prompt
prompt = sys.argv[1] if len(sys.argv) > 1 else "Explain what Hermes Agent is in one sentence."
prompt = (
sys.argv[1]
if len(sys.argv) > 1
else "Explain what Hermes Agent is in one sentence."
)
print_info(f" Prompt: {prompt}")
print_info("─" * 60)

Expand Down
13 changes: 10 additions & 3 deletions scripts/agents/infrastructure/run_infrastructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand All @@ -37,16 +39,21 @@ def main() -> int:
return 1

print_success("InfrastructureAgent and CloudToolFactory imported.")
print_info(f" InfrastructureAgent bases: {[b.__name__ for b in InfrastructureAgent.__mro__[1:]]}")
print_info(
f" InfrastructureAgent bases: {[b.__name__ for b in InfrastructureAgent.__mro__[1:]]}"
)

factory = CloudToolFactory()
_tools = factory.list_tools() if hasattr(factory, "list_tools") else dir(factory)
print_info(f" CloudToolFactory methods: {[m for m in dir(factory) if not m.startswith('_')][:10]}")
print_info(
f" CloudToolFactory methods: {[m for m in dir(factory) if not m.startswith('_')][:10]}"
)

agent = InfrastructureAgent()
print_success(f" Agent name: {getattr(agent, 'name', type(agent).__name__)}")
print_success("Infrastructure agent probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
20 changes: 15 additions & 5 deletions scripts/agents/jules/mega_swarm_v2_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def parse_tasks(filepath: Path) -> list[dict[str, str]]:
stripped,
)
if wave_match:
current_wave = f"Wave {wave_match.group(1)}: {wave_match.group(2).strip()}"
current_wave = (
f"Wave {wave_match.group(1)}: {wave_match.group(2).strip()}"
)
continue

# Module marker: # --- module_name ---
Expand Down Expand Up @@ -215,7 +217,9 @@ def main() -> None:
# Filter by start-from
if args.start_from > 1:
all_tasks = [t for t in all_tasks if t["id"] >= args.start_from]
print(f"⏩ Starting from task #{args.start_from}: {len(all_tasks)} tasks remaining")
print(
f"⏩ Starting from task #{args.start_from}: {len(all_tasks)} tasks remaining"
)

# Apply limit
if args.limit is not None:
Expand Down Expand Up @@ -243,15 +247,19 @@ def main() -> None:
print("🔍 DRY RUN — Previewing tasks:\n")
for task in all_tasks:
print(f" [{task['id']:3d}] [{task['wave']}]")
prompt_preview = task["prompt"][:120] + ("..." if len(task["prompt"]) > 120 else "")
prompt_preview = task["prompt"][:120] + (
"..." if len(task["prompt"]) > 120 else ""
)
print(f" {prompt_preview}")
print()
print(f"\n✅ Dry run complete. {len(all_tasks)} tasks would be dispatched.")
save_dispatch_log(all_tasks, TRACKING_FILE)
return

# Dispatch in batches
print(f"🚀 Dispatching {len(all_tasks)} Jules agents in batches of {args.batch_size}...")
print(
f"🚀 Dispatching {len(all_tasks)} Jules agents in batches of {args.batch_size}..."
)
dispatched: list[dict[str, str]] = []
failed = 0

Expand All @@ -269,7 +277,9 @@ def main() -> None:
print(f" ✅ [{task['id']:3d}] {task['module'] or 'cross-cutting'}")
else:
failed += 1
print(f" ❌ [{task['id']:3d}] FAILED — {task['module'] or 'cross-cutting'}")
print(
f" ❌ [{task['id']:3d}] FAILED — {task['module'] or 'cross-cutting'}"
)

# Wait between batches (not after the last one)
if i + args.batch_size < len(all_tasks):
Expand Down
5 changes: 4 additions & 1 deletion scripts/agents/learning/run_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand All @@ -38,5 +40,6 @@ def main() -> int:
print_success("Learning probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
5 changes: 4 additions & 1 deletion scripts/agents/memory/run_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
try:
import codomyrmex
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent.parent / "src"))
sys.path.insert(
0, str(Path(__file__).resolve().parent.parent.parent.parent / "src")
)

from codomyrmex.utils.cli_helpers import (
print_error,
Expand Down Expand Up @@ -41,5 +43,6 @@ def main() -> int:
print_success("Memory probe complete.")
return 0


if __name__ == "__main__":
sys.exit(main())
Loading