fix(ci): rebalance telegram channel tails

This commit is contained in:
Vincent Koc
2026-03-31 23:22:39 +09:00
parent da6e9bb76f
commit 98c0c38186
4 changed files with 8 additions and 7 deletions

View File

@@ -58,7 +58,7 @@ function resolveTemplateModelId(modelId: string) {
}
function createTemplateModelRegistry(modelId: string): ModelRegistry {
const registry = ModelRegistry.inMemory(AuthStorage.inMemory());
const registry = new ModelRegistry(AuthStorage.inMemory());
const template = getModel("openai", resolveTemplateModelId(modelId));
registry.registerProvider("openai", {
apiKey: "test",

View File

@@ -41,7 +41,7 @@ describeLive("openrouter plugin live", () => {
const resolved = provider.resolveDynamicModel?.({
provider: "openrouter",
modelId: LIVE_MODEL_ID,
modelRegistry: ModelRegistry.inMemory(AuthStorage.inMemory()),
modelRegistry: new ModelRegistry(AuthStorage.inMemory()),
});
if (!resolved) {
throw new Error(`openrouter provider did not resolve ${LIVE_MODEL_ID}`);

View File

@@ -107,14 +107,15 @@ function createOpenClawModelRegistry(
modelsJsonPath: string,
agentDir: string,
): PiModelRegistry {
const registry = PiModelRegistryClass.create(authStorage, modelsJsonPath);
const registry = new PiModelRegistryClass(authStorage, modelsJsonPath);
const getAll = registry.getAll.bind(registry);
const getAvailable = registry.getAvailable.bind(registry);
const find = registry.find.bind(registry);
registry.getAll = () => getAll().map((entry) => normalizeRegistryModel(entry, agentDir));
registry.getAll = () =>
getAll().map((entry: Model<Api>) => normalizeRegistryModel(entry, agentDir));
registry.getAvailable = () =>
getAvailable().map((entry) => normalizeRegistryModel(entry, agentDir));
getAvailable().map((entry: Model<Api>) => normalizeRegistryModel(entry, agentDir));
registry.find = (provider: string, modelId: string) =>
normalizeRegistryModel(find(provider, modelId), agentDir);

View File

@@ -151,7 +151,7 @@
"durationMs": 1300
},
"extensions/telegram/src/bot-message-context.named-account-dm.test.ts": {
"durationMs": 1200
"durationMs": 24070
},
"extensions/slack/src/monitor/events/pins.test.ts": {
"durationMs": 1200
@@ -442,7 +442,7 @@
"durationMs": 19
},
"extensions/telegram/src/bot-message-context.topic-agentid.test.ts": {
"durationMs": 19
"durationMs": 26500
},
"src/browser/routes/agent.existing-session.test.ts": {
"durationMs": 19