Files
tradingagents/scripts/release-notes.ts
T
Yijia-Xiao da95d501c9 release: TradingAgents 1.0.0
TradingAgents: Towards Agentic Finance Research. See CHANGELOG.md for what 1.0.0 includes.
2026-11-24 10:38:36 +00:00

14 lines
513 B
TypeScript

// Copyright 2026 Tauric Research
// SPDX-License-Identifier: Apache-2.0
/** Print version `argv[2]`'s notes from CHANGELOG.md; fail when it has none. Run with Bun. */
import { readFileSync } from "node:fs";
import { releaseNotes } from "./changelog-source.ts";
const version = (process.argv[2] ?? "").replace(/^v/, "");
const notes = releaseNotes(readFileSync("CHANGELOG.md", "utf8"), version);
if (!notes) {
console.error(`CHANGELOG.md has no notes for ${version}`);
process.exit(1);
}
console.log(notes);