diff --git a/ts/packages/agentServer/server/test/conversationNameIndex.spec.ts b/ts/packages/agentServer/server/test/conversationNameIndex.spec.ts index ab6e1855b4..3039d412db 100644 --- a/ts/packages/agentServer/server/test/conversationNameIndex.spec.ts +++ b/ts/packages/agentServer/server/test/conversationNameIndex.spec.ts @@ -1,7 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { TextEmbeddingModel } from "@typeagent/aiclient"; +import { + initRuntimeConfigFromProcessEnv, + type TextEmbeddingModel, +} from "@typeagent/aiclient"; import { createConversationNameIndex } from "../src/conversationNameIndex.js"; // A tiny deterministic embedding space so tests can assert semantic matches @@ -88,6 +91,7 @@ describe("conversationNameIndex", () => { try { process.env.TYPEAGENT_EMBEDDING_PROVIDER = "local"; delete process.env.AZURE_OPENAI_ENDPOINT_EMBEDDING; + initRuntimeConfigFromProcessEnv(); expect(() => createConversationNameIndex()).not.toThrow(); } finally { if (previousProvider === undefined) { @@ -101,6 +105,7 @@ describe("conversationNameIndex", () => { process.env.AZURE_OPENAI_ENDPOINT_EMBEDDING = previousAzureEndpoint; } + initRuntimeConfigFromProcessEnv(); } }); diff --git a/ts/packages/copilot-memory-plugin/README.AUTOGEN.md b/ts/packages/copilot-memory-plugin/README.AUTOGEN.md index 1edf8608f7..e07d56b43f 100644 --- a/ts/packages/copilot-memory-plugin/README.AUTOGEN.md +++ b/ts/packages/copilot-memory-plugin/README.AUTOGEN.md @@ -3,7 +3,7 @@ - + # @typeagent/copilot-memory-plugin — AI-generated documentation @@ -26,6 +26,7 @@ _No public exports declared in `package.json`._ Workspace: +- [@typeagent/aiclient](../../packages/aiclient/README.md) - [@typeagent/config](../../packages/config/README.md) - [@typeagent/conversation-memory](../../packages/memory/conversation/README.md) @@ -45,6 +46,6 @@ _3 environment variables referenced from `./src/` (set in `ts/.env` or your shel --- -_Auto-generated against commit `e6466ea5a66a5b1e3dc1ee6ee99b7068ab8b547c` on `2026-09-24T04:21:03.480Z` by `docs-generate.yml`. Links validated at that commit; the working tree may have drifted by up to 24h. Re-run `pnpm --filter @typeagent/copilot-memory-plugin docs:verify-links` to spot-check._ +_Auto-generated against commit `42ec617867087da54f54276a8fb9268125235b3e` on `2026-09-29T23:56:44.528Z` by `docs-generate.yml`. Links validated at that commit; the working tree may have drifted by up to 24h. Re-run `pnpm --filter @typeagent/copilot-memory-plugin docs:verify-links` to spot-check._ diff --git a/ts/packages/copilot-memory-plugin/package.json b/ts/packages/copilot-memory-plugin/package.json index 443eea7aa3..689d072556 100644 --- a/ts/packages/copilot-memory-plugin/package.json +++ b/ts/packages/copilot-memory-plugin/package.json @@ -26,6 +26,7 @@ }, "dependencies": { "@modelcontextprotocol/sdk": "^1.26.0", + "@typeagent/aiclient": "workspace:*", "@typeagent/config": "workspace:*", "@typeagent/conversation-memory": "workspace:*", "proper-lockfile": "^4.1.2", diff --git a/ts/packages/copilot-memory-plugin/src/shared/memory-client.ts b/ts/packages/copilot-memory-plugin/src/shared/memory-client.ts index 9965e05647..30d8bb39c2 100644 --- a/ts/packages/copilot-memory-plugin/src/shared/memory-client.ts +++ b/ts/packages/copilot-memory-plugin/src/shared/memory-client.ts @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { initRuntimeConfigFromProcessEnv } from "@typeagent/aiclient"; import { loadConfigSync } from "@typeagent/config"; import { ConversationMemory, @@ -229,6 +230,8 @@ function ensureModelConfig(): void { delete process.env[key]; } } + // Rebuild the cached runtime config so the removed providers take effect. + initRuntimeConfigFromProcessEnv(); } async function openStore(paths: MemoryPaths): Promise { diff --git a/ts/pnpm-lock.yaml b/ts/pnpm-lock.yaml index a05e8d2519..cefa70efa0 100644 --- a/ts/pnpm-lock.yaml +++ b/ts/pnpm-lock.yaml @@ -4699,6 +4699,9 @@ importers: '@modelcontextprotocol/sdk': specifier: 1.26.0 version: 1.26.0(zod@3.25.76) + '@typeagent/aiclient': + specifier: workspace:* + version: link:../aiclient '@typeagent/config': specifier: workspace:* version: link:../config