Files
jason.woltje e24a13ad87 sage: Vikunja scripts and read-back records 2026-10-13 to 10-20 (decision 110, mos-0882)
102 files under agents/sage/work/vikunja-setup/: the comment, close and file scripts Sage ran on P19 and their
output records, including P19 386 comment 350 for the mos-0928 Part A window (rows 177 and 180-185). Each script
refuses to write a record that holds a key; a scan for both key values found none.
2026-10-20 03:32:46 -05:00

12 lines
698 B
JavaScript

// Sage, 2026-10-09: one read-only authenticated call after ops-01 deleted user "unnerving" (id 1).
// Uses the tracker adapter's own client (bearer token, /api/v2). Prints time, status and count only.
// Usage: node read-check.mjs BASE_URL TOKEN_FILE PROJECT_ID
import { readFileSync } from "node:fs";
import { client, all } from "../../../../packages/tasks/src/vikunja.mjs";
const [BASE, FILE, P] = process.argv.slice(2);
const token = readFileSync(FILE, "utf8").trim();
const call = client({ baseUrl: BASE });
const at = new Date().toISOString();
const res = await all(call, token, `/projects/${P}/tasks`);
console.log(`at=${at} status=${res.r?.status} ok=${res.ok} tasks=${res.items.length}`);