MCPcopy Create free account
hub / github.com/agent-tower/core / buildProjectReadOnlyError

Function buildProjectReadOnlyError

packages/server/src/routes/sessions.ts:9–27  ·  view source on GitHub ↗
(project: {
  name: string;
  archivedAt: Date | null;
  repoDeletedAt: Date | null;
})

Source from the content-addressed store, hash-verified

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

Callers 2

sessionRoutesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected