@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
16 lines • 1.07 kB
TypeScript
import type { SessionEntry, SessionProjection } from "./session-manager.ts";
/**
* Whether an assistant's provider-reported usage still describes the model context after
* `context_edit` entries (boundary omissions and replacements) changed that context.
*/
export interface AssistantUsageScope {
/** The assistant still contributes a message to the current projection. */
readonly projected: boolean;
/** Its usage describes the current context: projected and no later context edit on the branch. */
readonly usageMatchesProjection: boolean;
/** An explicit overflow error stays recoverable: not omitted by a later edit and not behind a compaction. */
readonly retainedForExplicitRecovery: boolean;
}
/** An assistant without a persisted entry is judged as projected, like the upstream session core. */
export declare function resolveAssistantUsageScope(branch: readonly SessionEntry[], buildProjection: () => SessionProjection, assistantEntryId: string | undefined): AssistantUsageScope;
//# sourceMappingURL=assistant-usage-scope.d.ts.map