Skip to content

Commit fc45a9b

Browse files
fix: repair ci audit and memory test
1 parent ca21ea4 commit fc45a9b

3 files changed

Lines changed: 25 additions & 22 deletions

File tree

extensions/memory-core/src/cli.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,13 +1528,16 @@ describe("memory cli", () => {
15281528

15291529
it("prints conceptual promotion signals", async () => {
15301530
await withTempWorkspace(async (workspaceDir) => {
1531+
const secondRecallMs = Date.now();
1532+
const firstRecallMs = secondRecallMs - 2 * 24 * 60 * 60 * 1000;
1533+
const memoryDay = new Date(firstRecallMs).toISOString().slice(0, 10);
15311534
await recordShortTermRecalls({
15321535
workspaceDir,
15331536
query: "router vlan",
1534-
nowMs: Date.parse("2026-04-01T00:00:00.000Z"),
1537+
nowMs: firstRecallMs,
15351538
results: [
15361539
{
1537-
path: "memory/2026-04-01.md",
1540+
path: `memory/${memoryDay}.md`,
15381541
startLine: 4,
15391542
endLine: 8,
15401543
score: 0.9,
@@ -1546,10 +1549,10 @@ describe("memory cli", () => {
15461549
await recordShortTermRecalls({
15471550
workspaceDir,
15481551
query: "glacier backup",
1549-
nowMs: Date.parse("2026-04-03T00:00:00.000Z"),
1552+
nowMs: secondRecallMs,
15501553
results: [
15511554
{
1552-
path: "memory/2026-04-01.md",
1555+
path: `memory/${memoryDay}.md`,
15531556
startLine: 4,
15541557
endLine: 8,
15551558
score: 0.88,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@
17371737
"vitest": "^4.1.5"
17381738
},
17391739
"overrides": {
1740-
"axios": "1.15.0",
1740+
"axios": "1.15.2",
17411741
"follow-redirects": "1.16.0",
17421742
"node-domexception": "npm:@nolyfill/domexception@1.0.28",
17431743
"uuid": "14.0.0"
@@ -1751,13 +1751,13 @@
17511751
"@anthropic-ai/sdk": "0.91.0",
17521752
"hono": "4.12.14",
17531753
"@hono/node-server": "1.19.14",
1754-
"axios": "1.15.0",
1754+
"axios": "1.15.2",
17551755
"follow-redirects": "1.16.0",
17561756
"defu": "6.1.5",
17571757
"fast-xml-parser": "5.7.0",
17581758
"request": "npm:@cypress/request@3.0.10",
17591759
"request-promise": "npm:@cypress/request-promise@5.0.0",
1760-
"basic-ftp": "5.3.0",
1760+
"basic-ftp": "5.3.1",
17611761
"file-type": "22.0.1",
17621762
"form-data": "2.5.4",
17631763
"minimatch": "10.2.4",

pnpm-lock.yaml

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)