forked from Rockachopa/Timmy-time-dashboard
Add pre-commit hook enforcing 30s test suite time limit (#132)
This commit is contained in:
committed by
GitHub
parent
aff3edb06a
commit
2b97da9e9c
@@ -17,7 +17,7 @@ def _get_app():
|
||||
|
||||
def submit_chat_task(
|
||||
prompt: str,
|
||||
agent_id: str = "timmy",
|
||||
agent_id: str = "default",
|
||||
session_id: str = "celery",
|
||||
) -> str | None:
|
||||
"""Submit a chat task to the Celery queue.
|
||||
@@ -43,7 +43,7 @@ def submit_chat_task(
|
||||
def submit_tool_task(
|
||||
tool_name: str,
|
||||
kwargs: dict | None = None,
|
||||
agent_id: str = "timmy",
|
||||
agent_id: str = "default",
|
||||
) -> str | None:
|
||||
"""Submit a tool execution task to the Celery queue.
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ _app = _get_app()
|
||||
if _app is not None:
|
||||
|
||||
@_app.task(bind=True, name="infrastructure.celery.tasks.run_agent_chat")
|
||||
def run_agent_chat(self, prompt, agent_id="timmy", session_id="celery"):
|
||||
def run_agent_chat(self, prompt, agent_id="default", session_id="celery"):
|
||||
"""Execute a chat prompt against Timmy's agent session.
|
||||
|
||||
Args:
|
||||
@@ -57,7 +57,7 @@ if _app is not None:
|
||||
}
|
||||
|
||||
@_app.task(bind=True, name="infrastructure.celery.tasks.execute_tool")
|
||||
def execute_tool(self, tool_name, kwargs=None, agent_id="timmy"):
|
||||
def execute_tool(self, tool_name, kwargs=None, agent_id="default"):
|
||||
"""Run a specific tool function asynchronously.
|
||||
|
||||
Args:
|
||||
|
||||
@@ -180,7 +180,7 @@ def capture_error(
|
||||
task = create_task(
|
||||
title=title,
|
||||
description="\n".join(description_parts),
|
||||
assigned_to="timmy",
|
||||
assigned_to="default",
|
||||
created_by="system",
|
||||
priority="normal",
|
||||
requires_approval=False,
|
||||
|
||||
@@ -41,7 +41,7 @@ class EventBus:
|
||||
# Publish events
|
||||
await bus.publish(Event(
|
||||
type="agent.task.assigned",
|
||||
source="timmy",
|
||||
source="default",
|
||||
data={"task_id": "123", "agent": "forge"}
|
||||
))
|
||||
"""
|
||||
|
||||
@@ -76,7 +76,7 @@ class PushNotifier:
|
||||
try:
|
||||
script = (
|
||||
f'display notification "{message}" '
|
||||
f'with title "Timmy Time" subtitle "{title}"'
|
||||
f'with title "Agent Dashboard" subtitle "{title}"'
|
||||
)
|
||||
subprocess.Popen(
|
||||
["osascript", "-e", script],
|
||||
|
||||
Reference in New Issue
Block a user