(project: {
name: string;
archivedAt: Date | null;
repoDeletedAt: Date | null;
})
| 7 | import { AgentType, SessionContext } from '../types/index.js'; |
| 8 | import { sessionLogReader } from '../services/session-log-reader.js'; |
| 9 | import { prisma } from '../utils/index.js'; |
| 10 | import { getProviderById } from '../executors/index.js'; |
| 11 | import { RuntimeType } from '@agent-tower/shared'; |
| 12 | import { ServiceError } from '../errors.js'; |
| 13 | import { assertWorkspaceSessionAvailable } from '../services/session-resource-cleanup.js'; |
| 14 | import { |
| 15 | AgentVisualizationError, |
| 16 | AgentVisualizationService, |
| 17 | } from '../services/agent-visualization.service.js'; |
| 18 | import { |
| 19 | AgentArtifactError, |
| 20 | AgentArtifactService, |
| 21 | } from '../services/agent-artifact.service.js'; |
| 22 | import { TeamSchedulerService } from '../services/team-scheduler.service.js'; |
| 23 | import { INTERNAL_API_INVOCATION_ID_HEADER } from '../utils/internal-api-token.js'; |
| 24 | |
| 25 | /** Most entries one `GET /sessions/:id/logs/entries` request may name. */ |
| 26 | const LOG_ENTRY_CONTENT_MAX_IDS = 50; |
| 27 | |
| 28 | /** An empty result marks a malformed ID, which the route rejects. */ |
| 29 | function decodeEntryId(value: string): string { |
| 30 | try { |
no outgoing calls
no test coverage detected