()
| 91 | } |
| 92 | |
| 93 | getCurrentSession(): Session { |
| 94 | if (!this.currentSession) { |
| 95 | // Use test session ID for testing consistency |
| 96 | const sessionId = process.env.CONTINUE_CLI_TEST_SESSION_ID |
| 97 | ? process.env.CONTINUE_CLI_TEST_SESSION_ID |
| 98 | : uuidv4(); |
| 99 | |
| 100 | this.currentSession = { |
| 101 | sessionId, |
| 102 | title: DEFAULT_SESSION_TITLE, |
| 103 | workspaceDirectory: process.cwd(), |
| 104 | history: [], |
| 105 | usage: { ...this.sessionUsage }, |
| 106 | }; |
| 107 | } |
| 108 | return this.currentSession; |
| 109 | } |
| 110 | |
| 111 | setSession(session: Session): void { |
| 112 | this.currentSession = session; |
no outgoing calls
no test coverage detected