Same change as splinter: DISTFILES= # empty and do-extract fills WRKSRC from
ext/src/tasksd through tools/ext-extract.sh, so there is no tarball and no
distinfo to regenerate after a commit.
Verified: bmake -C pkgsrc/misc/tasksd package built tasksd-0.1.tgz.
Refresh the vendored header to libmcp 6d2fcb4. A client in the OpenAI
function-call shape sends arguments as a JSON string; until now every handler
saw no argument at all, so task_next(scope="splinter") claimed the
highest-priority task of the whole store - t0352, makronix/mcde, priority 630 -
because scope was invisible to it (2026-11-22, written up in that task).
The new test replays exactly that: two tasks, one at priority 900 in
makronix/mcde and one at 1 in splinter, then tools/call with
"arguments":"{\"scope\": \"splinter\"}". It must claim the splinter task.
tests/run.py 27 PASS, 0 FAIL; test-http.sh ok.
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.
The recipe is copied into pkgsrc/ by Makronix's tools/ext-sync.sh and built
from the archive tools/ext-dist.sh makes of this repository.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Lists all ten registered tools incl. task_update, names TASKD_HOME (TASKDIR still accepted) and the XDG default, the git history of the store, and the curl dependency of tasksd-http.
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.