Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 32 to 33

Compare

+4 −8 in 2 places
Lines 1–8 at 33 (were 1–6 at 32)
11// When something happened, short and the same everywhere it's shown (abso
22// issue 124): "08:34 UTC" today, "Oct 7 21:10 UTC" before that.
33
4+import { newsShown } from "./core.ts";
5+
46const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
57
68export function shortWhen(time: number, now: number = Date.now()): string {
Lines 18–24 at 33 (were 16–28 at 32)
1618 return seen === null ? "new" : `seen ${shortWhen(seen, now)}`;
1719}
1820
19−/**
20− * A news sentence with its time after the who: an announcement's after
21− * "Announcement from <who> (<how>)", any other at its end.
22− */
21+/** A news item as shown, with its time: a tell's after who told it, any other at its end. */
2322export function newsWithTime(text: string, at: number | null, now: number = Date.now()): string {
24− if (at === null) return text;
25− const time = shortWhen(at, now);
26− const head = /^(Announcement from .+? \([^)]*\)): /.exec(text);
27− return head ? `${head[1]}, ${time}: ${text.slice(head[0].length)}` : `${text} (${time})`;
23+ return newsShown(text, at === null ? undefined : shortWhen(at, now));
2824}
MCP
compare on this site's /mcp
CLI
abso diff 32 33 client/src/times.ts --json
JSON
/christopher/abso-core/compare/32..33?file=client%2Fsrc%2Ftimes.ts&format=json