Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/__tests__/memory-context-format.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function item(overrides: Record<string, any>) {

{
const processed = preprocessClaims([
item({ item_id: "old-item", content: "Andrew decided to prioritize temporal schema", score: 0.72, created_at: "2026-04-10T00:00:00Z" }),
item({ item_id: "new-item", content: "Andrew decided to prioritize temporal schema", score: 0.78, created_at: "2026-04-14T00:00:00Z" }),
item({ item_id: "old-item", content: "Casey decided to prioritize temporal schema", score: 0.72, created_at: "2026-04-10T00:00:00Z" }),
item({ item_id: "new-item", content: "Casey decided to prioritize temporal schema", score: 0.78, created_at: "2026-04-14T00:00:00Z" }),
Comment on lines +21 to +22

@chatgpt-codex-connector chatgpt-codex-connector Bot Aug 13, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Regenerate the compiled test fixture

The tracked and published dist/__tests__/memory-context-format.test.js still contains all 11 primary operator literals, so this source-only change does not actually remove the name from the public repository or npm package. Regenerate and commit the compiled test output (including its source map) so it matches this fixture; tests in this repository are explicitly built and run from dist.

AGENTS.md reference: AGENTS.md:L33-L38

Useful? React with 👍 / 👎.

], {
showConflicts: true,
showRelations: true,
Expand All @@ -32,8 +32,8 @@ function item(overrides: Record<string, any>) {

{
const processed = preprocessClaims([
item({ item_id: "older1234", content: "Andrew decided to prioritize temporal schema", created_at: "2026-04-10T00:00:00Z" }),
item({ item_id: "newer1234", content: "Andrew decided to prioritize memorybench", created_at: "2026-04-14T00:00:00Z" }),
item({ item_id: "older1234", content: "Casey decided to prioritize temporal schema", created_at: "2026-04-10T00:00:00Z" }),
item({ item_id: "newer1234", content: "Casey decided to prioritize memorybench", created_at: "2026-04-14T00:00:00Z" }),
], {
showConflicts: true,
showRelations: true,
Expand All @@ -45,8 +45,8 @@ function item(overrides: Record<string, any>) {

{
const processed = preprocessClaims([
item({ item_id: "a1234567", content: "Andrew decided to prioritize temporal schema", created_at: "2026-04-14T00:00:00Z" }),
item({ item_id: "b1234567", content: "Andrew plans to implement temporal schema next", created_at: "2026-04-13T00:00:00Z" }),
item({ item_id: "a1234567", content: "Casey decided to prioritize temporal schema", created_at: "2026-04-14T00:00:00Z" }),
item({ item_id: "b1234567", content: "Casey plans to implement temporal schema next", created_at: "2026-04-13T00:00:00Z" }),
], {
showConflicts: true,
showRelations: true,
Expand All @@ -70,9 +70,9 @@ function item(overrides: Record<string, any>) {

{
const items = [
item({ item_id: "4ff4823b999", content: "Andrew decided to prioritize temporal schema", score: 0.78, created_at: "2026-04-10T00:00:00Z", metadata: { salience: "high", category: "decisions" } }),
item({ item_id: "1c60ea4b999", content: "Andrew plans to implement temporal schema as next build priority", score: 0.72, created_at: "2026-04-14T00:00:00Z", metadata: { salience: "high", category: "decisions" } }),
item({ item_id: "a8f1170d999", content: "Andrew decided to prioritize memorybench first", score: 0.65, created_at: "2026-04-08T00:00:00Z", metadata: { salience: "medium", category: "episodic" } }),
item({ item_id: "4ff4823b999", content: "Casey decided to prioritize temporal schema", score: 0.78, created_at: "2026-04-10T00:00:00Z", metadata: { salience: "high", category: "decisions" } }),
item({ item_id: "1c60ea4b999", content: "Casey plans to implement temporal schema as next build priority", score: 0.72, created_at: "2026-04-14T00:00:00Z", metadata: { salience: "high", category: "decisions" } }),
item({ item_id: "a8f1170d999", content: "Casey decided to prioritize memorybench first", score: 0.65, created_at: "2026-04-08T00:00:00Z", metadata: { salience: "medium", category: "episodic" } }),
];
const formatted = formatMemoryContext(items, 8000, items.length, 8, 0.25, {
injectionFormat: "v2",
Expand All @@ -87,8 +87,8 @@ function item(overrides: Record<string, any>) {

{
const items = [
item({ item_id: "dup111111", content: "Andrew decided to prioritize temporal schema", score: 0.78, created_at: "2026-04-14T00:00:00Z", metadata: { salience: "high", category: "decisions" } }),
item({ item_id: "dup222222", content: "Andrew decided to prioritize temporal schema", score: 0.74, created_at: "2026-04-13T00:00:00Z", metadata: { salience: "high", category: "decisions" } }),
item({ item_id: "dup111111", content: "Casey decided to prioritize temporal schema", score: 0.78, created_at: "2026-04-14T00:00:00Z", metadata: { salience: "high", category: "decisions" } }),
item({ item_id: "dup222222", content: "Casey decided to prioritize temporal schema", score: 0.74, created_at: "2026-04-13T00:00:00Z", metadata: { salience: "high", category: "decisions" } }),
];
const formatted = formatMemoryContext(items, 8000, items.length, 8, 0.25, {
injectionFormat: "v2",
Expand Down
Loading