chore(release): prepare v1.5.0

This commit is contained in:
Ralph Chang
2026-04-29 16:56:47 +08:00
parent 73384ca0a4
commit 1c6e143f4b
9 changed files with 274 additions and 44 deletions
+7 -1
View File
@@ -4,7 +4,7 @@ import { mkdir, mkdtemp, readFile, rm, stat, writeFile } from "node:fs/promises"
import { join, dirname } from "node:path";
import { tmpdir } from "node:os";
import type { LongTermMemoryEntry, WorkspaceMemoryStore } from "../src/types.ts";
import { LONG_TERM_LIMITS } from "../src/types.ts";
import { HOT_STATE_LIMITS, LONG_TERM_LIMITS } from "../src/types.ts";
import { workspaceKey, workspaceMemoryPath } from "../src/paths.ts";
import {
renderWorkspaceMemory,
@@ -33,6 +33,12 @@ import { REAL_WORKSPACE_FIXTURES } from "./fixtures/real-workspaces-snapshot.ts"
const DAY_MS = 24 * 60 * 60 * 1000;
test("default prompt budgets use calibrated conservative character caps", () => {
assert.equal(LONG_TERM_LIMITS.maxRenderedChars, 3600);
assert.equal(LONG_TERM_LIMITS.targetRenderedChars, 3000);
assert.equal(HOT_STATE_LIMITS.maxRenderedChars, 700);
});
function entry(id: string, text: string, type: LongTermMemoryEntry["type"] = "decision"): LongTermMemoryEntry {
const now = new Date().toISOString();
return {