13 Commits
Author SHA1 Message Date
lotherk a7fe287ce1 pkgsrc: build from the source tree, no archive
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.
2026-11-23 19:51:19 +00:00
Hermes 5e28b21f47 libmcp: arguments that arrive as a string no longer mean "no filter"
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.
2026-11-23 08:13:53 +00:00
Hermes e557edd3ae task_scopes: an optional scope, and say which scope a project question wants
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.
2026-11-23 08:13:53 +00:00
lotherkandClaude Sonnet 5.5 92c0d4f63c pkgsrc: the recipe for Makronix (misc/tasksd), IMPORT
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>
2026-11-22 22:13:35 +00:00
Hermes Agent 84d39a19cd README: storage, states, MCP tool table, repo URL
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.
2026-11-19 10:05:15 +00:00
Hermes Agent 0a084532bc tasksd-http: Web-Oberflaeche als CGI; task_update; TASKDIR
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.
2026-11-19 09:55:33 +00:00
Hermes Agent e8bb6d56ea Vorgabe ohne "hermes" im Pfad: $XDG_DATA_HOME/tasksd, sonst ~/.local/share/tasksd
Die Aufgaben gehören dem Dienst, nicht dem Agenten-Framework. Auf n95 unverändert
/var/lib/tasksd über TASKDIR.
2026-11-08 20:03:03 +00:00
Hermes Agent ddb7355868 tasksd: jede Zustandsänderung wird festgeschrieben, wenn git da ist
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.
2026-11-08 18:03:44 +00:00
Hermes 2a54a86049 mcp.h: gemeinsamen Stand übernehmen (SIGCHLD-Fehler behoben) 2026-11-06 19:08:38 +00:00
Hermes 82b6acf344 http: Transport aus libmcp benutzen statt eigener Kopie
Der HTTP-Teil (211 Zeilen) ist in libmcp gewandert; tasksd ruft jetzt
mcp_serve_http und mcp_parse_port. Kein Verhalten geändert, nur der Ort.
2026-11-06 19:03:15 +00:00
olivia 91cb1dcdde fix: --http :8781 band auf Port 0
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.
2026-11-06 18:09:34 +00:00
Konrad d8a9a1f583 build standalone: vendor libmcp header, fix include path
Each repository now builds and tests on its own instead of reaching into a
sibling checkout.
2026-11-06 18:01:10 +00:00
Konrad 225f65e3bd tasksd: initial import 2026-11-06 17:59:15 +00:00