@cleocode/core 2026.4.54 → 2026.4.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleocode/core",
3
- "version": "2026.4.54",
3
+ "version": "2026.4.55",
4
4
  "description": "CLEO core business logic kernel — tasks, sessions, memory, orchestration, lifecycle, with bundled SQLite store",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -63,13 +63,13 @@
63
63
  "write-file-atomic": "^7.0.1",
64
64
  "yaml": "^2.8.3",
65
65
  "zod": "^4.3.6",
66
- "@cleocode/adapters": "2026.4.54",
67
- "@cleocode/agents": "2026.4.54",
68
- "@cleocode/caamp": "2026.4.54",
69
- "@cleocode/contracts": "2026.4.54",
70
- "@cleocode/lafs": "2026.4.54",
71
- "@cleocode/nexus": "2026.4.54",
72
- "@cleocode/skills": "2026.4.54"
66
+ "@cleocode/adapters": "2026.4.55",
67
+ "@cleocode/agents": "2026.4.55",
68
+ "@cleocode/contracts": "2026.4.55",
69
+ "@cleocode/caamp": "2026.4.55",
70
+ "@cleocode/lafs": "2026.4.55",
71
+ "@cleocode/nexus": "2026.4.55",
72
+ "@cleocode/skills": "2026.4.55"
73
73
  },
74
74
  "engines": {
75
75
  "node": ">=24.0.0"
@@ -25,9 +25,15 @@ vi.mock('../../audit.js', () => ({
25
25
  queryAudit: mocks.queryAudit,
26
26
  }));
27
27
 
28
- vi.mock('../../paths.js', () => ({
29
- getCleoDirAbsolute: (cwd?: string) => (cwd ? join(cwd, '.cleo') : mocks.tempCleoDir.value),
30
- }));
28
+ // Use importActual + spread so OTHER exports of paths.js remain available — see
29
+ // session-grade.test.ts for the T633 root-cause comment.
30
+ vi.mock('../../paths.js', async () => {
31
+ const actual = await vi.importActual<typeof import('../../paths.js')>('../../paths.js');
32
+ return {
33
+ ...actual,
34
+ getCleoDirAbsolute: (cwd?: string) => (cwd ? join(cwd, '.cleo') : mocks.tempCleoDir.value),
35
+ };
36
+ });
31
37
 
32
38
  import { gradeSession, readGrades } from '../session-grade.js';
33
39
 
@@ -21,9 +21,18 @@ vi.mock('../../audit.js', () => ({
21
21
  queryAudit: mocks.queryAudit,
22
22
  }));
23
23
 
24
- vi.mock('../../paths.js', () => ({
25
- getCleoDirAbsolute: (cwd?: string) => (cwd ? join(cwd, '.cleo') : mocks.tempCleoDir.value),
26
- }));
24
+ // Use importActual + spread so OTHER exports of paths.js remain available to any
25
+ // module that loads this test's mocked paths.js from the vitest module registry.
26
+ // Without this, tests that run AFTER this file in the same shard see paths.js
27
+ // missing every export except getCleoDirAbsolute (T633 root cause: nexus-e2e
28
+ // shard-2 audit failures, graph-memory-bridge mock errors).
29
+ vi.mock('../../paths.js', async () => {
30
+ const actual = await vi.importActual<typeof import('../../paths.js')>('../../paths.js');
31
+ return {
32
+ ...actual,
33
+ getCleoDirAbsolute: (cwd?: string) => (cwd ? join(cwd, '.cleo') : mocks.tempCleoDir.value),
34
+ };
35
+ });
27
36
 
28
37
  // Import after mocks are set up
29
38
  import { gradeSession, readGrades } from '../session-grade.js';