Versions 4 to 5
Lines 50–56 at 5 (were 50–56 at 4)
53−import type { Ask, Draft, DraftBody, News as IssueNews, IssuePage, IssueRow } from "./issues-wire.ts";
53+import type { Ask, Attachment, Draft, DraftBody, News as IssueNews, IssuePage, IssueRow } from "./issues-wire.ts";
5555
Lines 65–71 at 5 (were 65–71 at 4)
68−export type { Ask, Draft, DraftBody, IssueNews, IssuePage, IssueRow };
6969
Lines 400–438 at 5 (were 400–409 at 4)
402402
403− issueOpen(body: DraftBody & { title: string }): Promise<{ id: number; news?: IssueNews }> {
403+ issueOpen(body: DraftBody & { title: string; attachments?: string[] }): Promise<{ id: number; news?: IssueNews }> {
406406
407+ /** Uploads an image to the Issues Worker (abso issue 171): it checks the type by the bytes, strips metadata and answers its id. */
410+ throw new ApiError(`${this.config.server} has no Issues Worker beside it; AVCS_ISSUES_SERVER names one`);
416+ headers: { ...this.headers("application/octet-stream"), "x-avcs-name": encodeURIComponent(name) },
423+ `could not reach ${this.issuesServer}: ${(e.cause as Error | undefined)?.message ?? e.message}`,
427+ if (!res.ok) throw new ApiError(`uploading ${name} answered ${res.status}: ${errorSentence(text)}`, res.status);
430+
435+
407436 /** An edit (abso issue 3): it tells the issue's watchers, and `also`, unless `notify` is false. null clears a parent or Agent. */
Lines 451–467 at 5 (were 422–429 at 4)
424453
425− issueComment(id: number, text: string, objection = false): Promise<{ id: number; news?: IssueNews }> {
426− return this.#issues("POST", this.agentPath(`issue/${id}/comment`), { text, ...(objection ? { objection } : {}) });
428466
- MCP
- compare on this site's /mcp
- CLI
- abso diff 4 5 client/src/api.ts --json
- JSON
- /christopher/abso-core/compare/4..5?file=client%2Fsrc%2Fapi.ts&format=json