feat: complete Ancestor quote bot with production-ready Docker support

This commit is contained in:
unfunny
2026-09-13 14:14:38 -04:00
parent f2016da05a
commit fe7351a7dc
1145 changed files with 30890 additions and 97684 deletions

View File

@@ -1,7 +1,7 @@
import { type IMarkerFoundOptions, RoomState } from "./room-state.ts";
import { type EventTimelineSet } from "./event-timeline-set.ts";
import { type MatrixEvent } from "./event.ts";
import { type Filter } from "../filter.ts";
import { IMarkerFoundOptions, RoomState } from "./room-state";
import { EventTimelineSet } from "./event-timeline-set";
import { MatrixEvent } from "./event";
import { Filter } from "../filter";
export interface IInitialiseStateOptions extends Pick<IMarkerFoundOptions, "timelineWasEmpty"> {
}
export interface IAddEventOptions extends Pick<IMarkerFoundOptions, "timelineWasEmpty"> {
@@ -11,11 +11,6 @@ export interface IAddEventOptions extends Pick<IMarkerFoundOptions, "timelineWas
toStartOfTimeline: boolean;
/** The state events to reconcile metadata from */
roomState?: RoomState;
/** Whether to add timeline events to the state as was done in legacy sync v2.
* If true then timeline events will be added to the state.
* In sync v2 with org.matrix.msc4222.use_state_after and simplified sliding sync,
* all state arrives explicitly and timeline events should not be added. */
addToState: boolean;
}
export declare enum Direction {
Backward = "b",
@@ -149,7 +144,7 @@ export declare class EventTimeline {
/**
* Get a pagination token
*
* @param direction - EventTimeline.BACKWARDS to get the pagination
* @param direction - EventTimeline.BACKWARDS to get the pagination
* token for going backwards in time; EventTimeline.FORWARDS to get the
* pagination token for going forwards in time.
*
@@ -194,7 +189,11 @@ export declare class EventTimeline {
* @param event - new event
* @param options - addEvent options
*/
addEvent(event: MatrixEvent, { toStartOfTimeline, roomState, timelineWasEmpty, addToState }: IAddEventOptions): void;
addEvent(event: MatrixEvent, { toStartOfTimeline, roomState, timelineWasEmpty }: IAddEventOptions): void;
/**
* @deprecated In favor of the overload with `IAddEventOptions`
*/
addEvent(event: MatrixEvent, toStartOfTimeline: boolean, roomState?: RoomState): void;
/**
* Insert a new event into the timeline, and update the state.
*
@@ -206,7 +205,7 @@ export declare class EventTimeline {
*
* @internal
*/
insertEvent(event: MatrixEvent, insertIndex: number, roomState: RoomState, addToState: boolean): void;
insertEvent(event: MatrixEvent, insertIndex: number, roomState: RoomState): void;
/**
* Remove an event from the timeline
*