@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
33 lines • 1.42 kB
TypeScript
import { type CompactContentStore, type LeafId } from "./compact-content-store.ts";
import type { ComponentRoot } from "./compact-component-roots.ts";
import type { SeededBlock } from "./compact-seeded-block.ts";
import type { SeededFields } from "./compact-seeded-draft.ts";
import type { FrozenBlock } from "./compact-text-view.ts";
import { type CompactBlockKind } from "./compact-transition.ts";
export interface ActiveBlock {
readonly kind: CompactBlockKind;
readonly seeded?: SeededBlock;
readonly epoch?: string;
root: LeafId;
tail: string;
tailRoot: LeafId;
units: number;
emitted: number;
covered: number;
witness: string;
}
export interface ActiveMessage {
readonly order: string;
readonly blocks: Map<number, ActiveBlock>;
readonly epoch?: string;
readonly correlation?: SeededFields;
root: ComponentRoot<FrozenBlock>;
fields?: SeededFields;
tailBytes: number;
witnessBytes: number;
}
export declare function appendBlock(store: CompactContentStore, block: ActiveBlock, text: string): void;
export declare function adjustBlock(store: CompactContentStore, block: ActiveBlock, live: number): void;
/** Validate before touching the live text owner or its replay witness. */
export declare function deltaBlock(store: CompactContentStore, block: ActiveBlock, offset: number, text: string): void;
//# sourceMappingURL=compact-active-block.d.ts.map