forked from Rockachopa/Timmy-time-dashboard
fix: wire up tick engine scheduler + add journal + systemd timer (#163)
This commit is contained in:
committed by
GitHub
parent
a927241dbe
commit
07f2c1b41e
@@ -23,6 +23,20 @@ _MODEL_SIZE_OPTION = typer.Option(
|
||||
)
|
||||
|
||||
|
||||
@app.command()
|
||||
def tick():
|
||||
"""Run one autonomous thinking cycle (used by systemd timer)."""
|
||||
import asyncio
|
||||
|
||||
from timmy.thinking import thinking_engine
|
||||
|
||||
thought = asyncio.run(thinking_engine.think_once())
|
||||
if thought:
|
||||
typer.echo(f"[{thought.seed_type}] {thought.content}")
|
||||
else:
|
||||
typer.echo("No thought produced (thinking disabled or Ollama down).")
|
||||
|
||||
|
||||
@app.command()
|
||||
def think(
|
||||
topic: str = typer.Argument(..., help="Topic to reason about"),
|
||||
|
||||
Reference in New Issue
Block a user