MCPcopy Index your code
hub / github.com/github/copilot-sdk / setupSessionFs

Method setupSessionFs

nodejs/src/client.ts:733–752  ·  view source on GitHub ↗
(
        session: CopilotSession,
        config: { createSessionFsProvider?: (session: CopilotSession) => SessionFsProvider }
    )

Source from the content-addressed store, hash-verified

731 }
732
733 private setupSessionFs(
734 session: CopilotSession,
735 config: { createSessionFsProvider?: (session: CopilotSession) => SessionFsProvider }
736 ): void {
737 if (!this.sessionFsConfig) {
738 return;
739 }
740 if (!config.createSessionFsProvider) {
741 throw new Error(
742 "createSessionFsProvider is required in session config when sessionFs is enabled in client options."
743 );
744 }
745 const provider = config.createSessionFsProvider(session);
746 if (this.sessionFsConfig.capabilities?.sqlite && !provider.sqlite) {
747 throw new Error(
748 "SessionFsConfig declares capabilities.sqlite but the provider does not implement sqlite."
749 );
750 }
751 session.clientSessionApis.sessionFs = createSessionFsAdapter(provider);
752 }
753
754 private setupLlmInference(): void {
755 if (!this.requestHandler) {

Callers 2

initializeSessionMethod · 0.95
resumeSessionMethod · 0.95

Calls 1

createSessionFsAdapterFunction · 0.90

Tested by

no test coverage detected