The store has many projects; makronix has far more open tasks than mikronix. A
model working in ~/src/mikronix called task_scopes {} and then presented the
makronix counts as the mikronix answer. task_scopes now accepts scope=<project>
with the same prefix match as task_list (scope "mikronix" includes
"mikronix/build"), and its description says to pass the working directory's
project and never present another project's scopes as the answer. task_list
says the same for a scope-less list, and the task_create example no longer
names makronix (a busy real scope seeded the bias).
A 4B and a 35B now call task_scopes {"scope":"mikronix"} and
task_list {"scope":"mikronix","state":"pending"} where the same prompt
previously produced an unscoped call.
tests/run.py: 30 PASS, 0 FAILURES.
tasksd-http ist ein C99-CGI-Programm (HTML 4.01) ueber den MCP-Server von
tasksd (vendor/cgi/cgi.h, tests/test-http.sh, Makefile, README).
Neues Werkzeug task_update: korrigiert die beschreibenden Felder einer Task
(title, goal, scope, tags, priority); Zustandswechsel bleiben bei
task_next/done/pause/drop. Die Umgebungsvariable TASKDIR bleibt als alter
Name gueltig. tests/run.py angepasst.
Ist git installiert, wird $TASKDIR beim ersten Schreiben ein Repository und jedes
task_save committet (Meldung: <zustand> <kennung>, z. B. "done t0001"). Eine Aufgabe,
deren Verlauf niemand mehr nachsehen kann, ist nur ein Zettel — mit git ist "wann wurde
das erledigt und was stand vorher da" eine Frage an das Repository.
Die Meldung besteht nur aus eigenen Kennungen und Zuständen, kein Modell- oder
Menschentext. Ohne git läuft alles weiter.
Nebenbei behoben: der Include zeigte auf "../libmcp/mcp.h" und traf nur, solange zufällig
ein libmcp-Verzeichnis neben dem Quellbaum lag — aus einem frischen Clone fand er nichts.
Jetzt "mcp.h" über -Ivendor/libmcp, wie der Makefile es meint.
Die README dokumentiert 'tasksd --http :8781', der Code las den Port aber mit
atoi(argv[2]). atoi(":8781") ist 0, also band tasksd auf einem zufaelligen
freien Port — der dokumentierte Aufruf startete einen Dienst, den niemand
erreichte. Nur die Form ohne Doppelpunkt funktionierte.
parse_port() springt jetzt hinter den letzten Doppelpunkt und nimmt auch
'0.0.0.0:8781' an, lehnt dagegen 0, >65535 und alles ohne Ziffern mit einer
Meldung ab. Testsuite unveraendert bei FAILURES: 0.