Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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) {
Expand All @@ -101,6 +105,7 @@ describe("conversationNameIndex", () => {
process.env.AZURE_OPENAI_ENDPOINT_EMBEDDING =
previousAzureEndpoint;
}
initRuntimeConfigFromProcessEnv();
}
});

Expand Down
5 changes: 3 additions & 2 deletions ts/packages/copilot-memory-plugin/README.AUTOGEN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- AUTOGEN:DOCS:START -->

<!-- AUTOGEN:DOCS:HASH:sha256=16206da41d7fb9120a0340f35b053cb0bd664f2017074e41242800035994d747 -->
<!-- AUTOGEN:DOCS:HASH:sha256=931445d5bb8e21a014965c87542bddb682615c65c0fb260c42bf0a9bc2307550 -->
<!-- AUTOGEN:DOCS:SOURCE: ./README.md (hand-written documentation; this file is the AI-generated companion) -->

# @typeagent/copilot-memory-plugin — AI-generated documentation
Expand All @@ -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)

Expand All @@ -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._

<!-- AUTOGEN:DOCS:END -->
1 change: 1 addition & 0 deletions ts/packages/copilot-memory-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions ts/packages/copilot-memory-plugin/src/shared/memory-client.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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<ConversationMemory> {
Expand Down
3 changes: 3 additions & 0 deletions ts/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading