mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-11-28 03:56:26 +02:00
TradingAgents: Towards Agentic Finance Research. See CHANGELOG.md for what 1.0.0 includes.
14 lines
513 B
TypeScript
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);
|