MCPcopy Create free account
hub / github.com/apache/maka / create

Method create

packages/storage/src/session-store.ts:389–401  ·  view source on GitHub ↗
(
    input: CreateSessionInput,
    initialBoundary?: ExecutionBoundary,
  )

Source from the content-addressed store, hash-verified

387 }
388
389 async create(
390 input: CreateSessionInput,
391 initialBoundary?: ExecutionBoundary,
392 ): Promise<SessionHeader> {
393 await this.ensureReady();
394 assertNoConversationCopyMetadata(input);
395 if (input.subagentSpawn) {
396 throw new Error('Subagent spawn metadata requires createSubagent()');
397 }
398 return (
399 await this.metadata.create(buildSessionHeader(this.workspaceRoot, input), initialBoundary)
400 ).header;
401 }
402
403 async createImportedSession(
404 input: CreateSessionInput,

Callers

nothing calls this directly

Calls 4

ensureReadyMethod · 0.95
buildSessionHeaderFunction · 0.85
createMethod · 0.65

Tested by

no test coverage detected