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 149 to 150

Compare

+27 −0 in 1 place
new file, 27 lines
1+// Where the router meets issues, asks and news (server/src/issues/, built alongside this file). Until that folder
2+// lands, this is a stand-in with the same exports, so the Worker builds and its tests run. When it lands, this file
3+// becomes one line:
4+//
5+// export { IssueProject, issuesFetch } from "./issues/index.ts";
6+//
7+// The agreed interface: issuesFetch(request, env, ctx, {project, rest, auth}), where rest is the path after
8+// /issues/p/<project> and auth is {kind: "token"} or {kind: "key", agent, role}. The router has checked auth before it
9+// calls. The issues code reaches the project through env.PROJECT and its RPC methods agents(project) and
10+// news(project, items) on ProjectObject.
12+import { DurableObject } from "cloudflare:workers";
13+import type { Env } from "./env.ts";
14+import type { KeyRole } from "./keys.ts";
16+export type IssuesAuth = { kind: "token" } | { kind: "key"; agent: string; role: KeyRole };
18+export class IssueProject extends DurableObject<Env> {}
20+export async function issuesFetch(
21+ _request: Request,
22+ _env: Env,
23+ _ctx: ExecutionContext,
24+ _where: { project: string; rest: string; auth: IssuesAuth },
25+): Promise<Response> {
26+ return Response.json({ error: "issues aren't on this server yet" }, { status: 404 });
27+}
MCP
compare on this site's /mcp
CLI
abso diff 149 150 server/src/issues-entry.ts --json
JSON
/christopher/abso-core/compare/149..150?file=server%2Fsrc%2Fissues-entry.ts&format=json