import { type ResumeNoticeReason } from "./sandbox-notice.js"; import type { TranscriptRow, TurnNote } from "./transcript.js"; export declare const RESUME_NOTES: { readonly auth: "The Claude credential that interrupted this conversation has been renewed, and this turn resumed automatically. The interrupted request is repeated below, where part of it was already completed in this session, continue from that point instead of starting over."; readonly outage: "The model provider was briefly unavailable and interrupted this conversation; this turn resumed automatically. The interrupted request is repeated below, where part of it was already completed in this session, continue from that point instead of starting over."; readonly restart: "The sandbox restarted while this turn was running, which stopped it, and this turn resumed automatically once it came back. The interrupted request is repeated below, where part of it was already completed in this session, continue from that point instead of starting over."; readonly stopped: "The previous attempt at this request stopped before it finished, and it has been sent again. The interrupted request is repeated below, where part of it was already completed in this session, continue from that point instead of starting over."; readonly limit: "The model provider's usage allowance ran out while this turn was running, which stopped it, and it has been sent again. The interrupted request is repeated below, where part of it was already completed in this session, continue from that point instead of starting over."; readonly switched: "The model provider's usage allowance ran out while this turn was running, which stopped it, and it has been sent again on a different account, which starts a fresh session. The conversation so far has been carried across above, including the part of the request that was already completed, and the sandbox has measured where the work actually stands (the files changed on this branch, what was verified, what the checklist still holds) in the note headed 'Where the work stands': trust that note over anything recalled, then continue from that point instead of starting over."; readonly trimmed: "The model provider's usage allowance ran out while this conversation was running, and this turn has been sent again in a copy of the same session, to save re-reading it: every message and tool call is still here, but the output of older tool calls has been cleared (each says so where it was). Run a command or read a file again if you need what it returned. The interrupted request is repeated below, where part of it was already completed in this session, continue from that point instead of starting over."; readonly summarized: "The model provider's usage allowance ran out while this conversation was running, and this turn has been sent again in a fresh session, to save re-reading the old one. A summary of the conversation so far is in the note headed 'Summary of the conversation so far', the most recent part of it is carried across above, and the sandbox has measured where the work actually stands in the note headed 'Where the work stands': trust that note over the summary where they differ, then continue from that point instead of starting over."; readonly carried: "The model provider's usage allowance ran out while this turn was running, which stopped it, and it has been sent again on a different account of the same provider, in this same session: everything you knew is still here. The interrupted request is repeated below, where part of it was already completed in this session, continue from that point instead of starting over."; readonly refused: "The model provider refused the previous attempt at this request outright, because its usage allowance was spent: no part of the request below was read or acted on, and nothing has been done towards it. It has been sent again, and starts from the beginning. Where the sandbox has measured earlier work on this branch, it is in the note headed 'Where the work stands'."; readonly door: "The previous attempt at this request was turned away before any of it reached you: no part of the request below was read or acted on. It has now been sent, and starts from the beginning."; readonly overflow: "This conversation's session grew larger than the model's context window can hold, which stopped this turn, and it has been sent again in a fresh session. The conversation so far has been carried across above, including the part of the request that was already completed, and the sandbox has measured where the work actually stands (the files changed on this branch, what was verified, what the checklist still holds) in the note headed 'Where the work stands': trust that note over anything recalled, then continue from that point instead of starting over. Keep this session small: read large files and long command output in parts rather than whole."; readonly flagged: "The model provider's safety classifier stopped the previous attempt at this request partway, and it has been sent again after the person looking at this conversation chose to go on. The stopped response has been removed from this session. The interrupted request is repeated below, where part of it was already completed in this session, continue from that point instead of starting over."; readonly continued: "The previous turn in this conversation ended before it finished (it was stopped, or something cut it short, such as a sandbox restart), and the person looking at this conversation chose to carry on without writing anything new: continue the work from where the conversation left off. Anything they declined along the way stays declined."; readonly answered: "The sandbox restarted while this conversation was waiting for the user to respond; it is back, and their response follows below: continue from where the session left off."; }; export declare const withResumeNote: (prompt: string, note: string) => string; export declare const resumeNoteWith: (note: string, tail: string | undefined) => string; export declare const withoutResumeNote: (prompt: string) => string; export type ResumeReason = keyof typeof RESUME_NOTES; export type ResumeDisclosure = { readonly kind: "notice"; readonly text: string; readonly reason: ResumeNoticeReason; } | { readonly kind: "note"; readonly note: TurnNote; }; export declare const resumeNoticeRow: (resume: Extract) => TranscriptRow; export declare const resumeDisclosure: (prompt: string) => ResumeDisclosure | undefined; //# sourceMappingURL=resume.d.ts.map