Files
Hunter Bown 772ec46c98 chore(release): v0.8.53 — Arcee support, telegram bridge, provider fixes
- Fix Rust syntax/clippy fallout in client.rs, cli/src/lib.rs, web_search.rs
- Fix 0.8.53 release metadata: changelog links, TUI changelog, npm wrapper
- Update visible help copy for multi-provider support
- Add telegram-bridge integration with deploy configs
- Add US remote VM quickstart doc
- Update Tencent Cloud deploy scripts and docs
- Bump npm wrapper to 0.8.53
2026-06-03 16:12:38 -07:00

24 lines
930 B
JavaScript

import test from "node:test";
import assert from "node:assert/strict";
import fs from "node:fs/promises";
import path from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
test("ThreadStore is initialized before bridge startup polls Telegram", async () => {
const source = await fs.readFile(path.join(__dirname, "../src/index.mjs"), "utf8");
const declaration = source.indexOf("class ThreadStore");
const startupUse = source.indexOf("await ThreadStore.open");
const pollCall = source.indexOf("await pollTelegram()");
const reattachCall = source.indexOf("reattachActiveTurns().catch");
assert.notEqual(declaration, -1);
assert.notEqual(startupUse, -1);
assert.notEqual(pollCall, -1);
assert.notEqual(reattachCall, -1);
assert.ok(declaration < startupUse);
assert.ok(startupUse < reattachCall);
assert.ok(reattachCall < pollCall);
});