|
| 1 | +import type { SessionGistCommand } from "./session-gist-domain.js" |
| 2 | + |
1 | 3 | export type { MenuAction, ParseError } from "./menu.js" |
2 | 4 | export { parseMenuSelection } from "./menu.js" |
3 | 5 | export { deriveRepoPathParts, deriveRepoSlug, resolveRepoInput } from "./repo.js" |
@@ -271,44 +273,13 @@ export interface AuthGeminiLogoutCommand { |
271 | 273 | readonly geminiAuthPath: string |
272 | 274 | } |
273 | 275 |
|
274 | | -// CHANGE: add session gist backup commands for PR-based session history |
275 | | -// WHY: enables returning to old AI sessions via private gists linked to PRs |
276 | | -// QUOTE(ТЗ): "иметь возможность возвращаться ко всем старым сессиям с агентами" |
277 | | -// REF: issue-143 |
278 | | -// PURITY: CORE |
279 | | -// EFFECT: n/a |
280 | | -// INVARIANT: gist commands are always tied to a repository context |
281 | | -// COMPLEXITY: O(1) |
282 | | -export interface SessionGistBackupCommand { |
283 | | - readonly _tag: "SessionGistBackup" |
284 | | - readonly projectDir: string |
285 | | - readonly prNumber: number | null |
286 | | - readonly repo: string | null |
287 | | - readonly postComment: boolean |
288 | | -} |
289 | | - |
290 | | -export interface SessionGistListCommand { |
291 | | - readonly _tag: "SessionGistList" |
292 | | - readonly limit: number |
293 | | - readonly repo: string | null |
294 | | -} |
295 | | - |
296 | | -export interface SessionGistViewCommand { |
297 | | - readonly _tag: "SessionGistView" |
298 | | - readonly gistId: string |
299 | | -} |
300 | | - |
301 | | -export interface SessionGistDownloadCommand { |
302 | | - readonly _tag: "SessionGistDownload" |
303 | | - readonly gistId: string |
304 | | - readonly outputDir: string |
305 | | -} |
306 | | - |
307 | | -export type SessionGistCommand = |
308 | | - | SessionGistBackupCommand |
309 | | - | SessionGistListCommand |
310 | | - | SessionGistViewCommand |
311 | | - | SessionGistDownloadCommand |
| 276 | +export type { |
| 277 | + SessionGistBackupCommand, |
| 278 | + SessionGistCommand, |
| 279 | + SessionGistDownloadCommand, |
| 280 | + SessionGistListCommand, |
| 281 | + SessionGistViewCommand |
| 282 | +} from "./session-gist-domain.js" |
312 | 283 | export type SessionsCommand = |
313 | 284 | | SessionsListCommand |
314 | 285 | | SessionsKillCommand |
|
0 commit comments