T-214: M2.1w — Add notebook snapshot CLI, MCP end-to-end study+snapshot+finding test, and fix docs/->design/ path drift
This commit is contained in:
parent
8e2bf1c7f2
commit
2e71dda7f2
10 changed files with 2192 additions and 43 deletions
|
|
@ -57,12 +57,13 @@ async function defaultOpenExecutor(
|
|||
}
|
||||
|
||||
async function defaultOpenStore(
|
||||
config: ResearchCopilotHostConfig
|
||||
config: ResearchCopilotHostConfig,
|
||||
env?: Readonly<Record<string, string | undefined>>
|
||||
): Promise<ManagedMarketDataStore> {
|
||||
const { openResearchCopilotStore } = await import(
|
||||
'../libs/data/duckdb/src/research-copilot-store'
|
||||
);
|
||||
return openResearchCopilotStore(config);
|
||||
return openResearchCopilotStore(config, env !== undefined ? { env } : undefined);
|
||||
}
|
||||
|
||||
function defaultCreateLibraryCardReader(
|
||||
|
|
@ -91,7 +92,7 @@ export async function runResearchCopilotMcp(
|
|||
await runResearchCopilotStdioHost({
|
||||
config,
|
||||
openExecutor: deps.openExecutor ?? defaultOpenExecutor,
|
||||
openStore: deps.openStore ?? defaultOpenStore,
|
||||
openStore: deps.openStore ?? (hostConfig => defaultOpenStore(hostConfig, deps.env)),
|
||||
createLibraryCardReader: deps.createLibraryCardReader ?? defaultCreateLibraryCardReader,
|
||||
newId: deps.newId ?? randomUUID,
|
||||
now: deps.now ?? Date.now,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue