@cleocode/core 2026.4.86 → 2026.4.88

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.86",
3
+ "version": "2026.4.88",
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",
@@ -41,6 +41,11 @@
41
41
  "import": "./dist/memory/transcript-extractor.js",
42
42
  "require": "./dist/memory/transcript-extractor.js"
43
43
  },
44
+ "./system/platform-paths.js": {
45
+ "types": "./dist/system/platform-paths.d.ts",
46
+ "import": "./dist/system/platform-paths.js",
47
+ "require": "./dist/system/platform-paths.js"
48
+ },
44
49
  "./*": {
45
50
  "types": "./dist/*.d.ts",
46
51
  "import": "./dist/*.js",
@@ -76,13 +81,13 @@
76
81
  "write-file-atomic": "^7.0.1",
77
82
  "yaml": "^2.8.3",
78
83
  "zod": "^4.3.6",
79
- "@cleocode/adapters": "2026.4.86",
80
- "@cleocode/agents": "2026.4.86",
81
- "@cleocode/caamp": "2026.4.86",
82
- "@cleocode/contracts": "2026.4.86",
83
- "@cleocode/lafs": "2026.4.86",
84
- "@cleocode/nexus": "2026.4.86",
85
- "@cleocode/skills": "2026.4.86"
84
+ "@cleocode/adapters": "2026.4.88",
85
+ "@cleocode/agents": "2026.4.88",
86
+ "@cleocode/caamp": "2026.4.88",
87
+ "@cleocode/contracts": "2026.4.88",
88
+ "@cleocode/lafs": "2026.4.88",
89
+ "@cleocode/nexus": "2026.4.88",
90
+ "@cleocode/skills": "2026.4.88"
86
91
  },
87
92
  "engines": {
88
93
  "node": ">=24.0.0"
@@ -23,16 +23,21 @@
23
23
 
24
24
  import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
25
25
  import { tmpdir } from 'node:os';
26
- import { join } from 'node:path';
26
+ import { dirname, join, resolve } from 'node:path';
27
27
  import { DatabaseSync } from 'node:sqlite';
28
+ import { fileURLToPath } from 'node:url';
28
29
  import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
29
30
 
30
31
  // ---------------------------------------------------------------------------
31
32
  // Fixtures
32
33
  // ---------------------------------------------------------------------------
33
34
 
34
- const SEED_HISTORIAN_SOURCE =
35
- '/mnt/projects/cleocode/packages/agents/seed-agents/cleo-historian.cant';
35
+ const __dirname = dirname(fileURLToPath(import.meta.url));
36
+ /** Monorepo-relative seed-agent path — works locally and in CI. */
37
+ const SEED_HISTORIAN_SOURCE = resolve(
38
+ __dirname,
39
+ '../../../../agents/seed-agents/cleo-historian.cant',
40
+ );
36
41
 
37
42
  /** Minimal valid .cant manifest used for write-and-install tests. */
38
43
  const FIXTURE_MINIMAL_CANT = `---
@@ -22,16 +22,21 @@
22
22
 
23
23
  import { mkdirSync, mkdtempSync, rmSync, unlinkSync, writeFileSync } from 'node:fs';
24
24
  import { tmpdir } from 'node:os';
25
- import { join } from 'node:path';
25
+ import { dirname, join, resolve } from 'node:path';
26
26
  import { DatabaseSync } from 'node:sqlite';
27
+ import { fileURLToPath } from 'node:url';
27
28
  import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
28
29
 
29
30
  // ---------------------------------------------------------------------------
30
31
  // Fixtures
31
32
  // ---------------------------------------------------------------------------
32
33
 
33
- const SEED_HISTORIAN_SOURCE =
34
- '/mnt/projects/cleocode/packages/agents/seed-agents/cleo-historian.cant';
34
+ const __dirname = dirname(fileURLToPath(import.meta.url));
35
+ /** Monorepo-relative seed-agent — works locally and in CI. */
36
+ const SEED_HISTORIAN_SOURCE = resolve(
37
+ __dirname,
38
+ '../../../../agents/seed-agents/cleo-historian.cant',
39
+ );
35
40
 
36
41
  /** Minimal .cant whose `name` matches the filename base. */
37
42
  const FIXTURE_WORKER_CANT = `---
@@ -322,7 +327,7 @@ describe('W2-4 resolveAgent — 4-tier precedence with real sqlite', () => {
322
327
  try {
323
328
  // Install the canonical target, then look up via the deprecated alias.
324
329
  installAgentFromCant(db, {
325
- cantSource: '/mnt/projects/cleocode/packages/agents/seed-agents/cleo-prime.cant',
330
+ cantSource: resolve(__dirname, '../../../../agents/seed-agents/cleo-prime.cant'),
326
331
  targetTier: 'global',
327
332
  installedFrom: 'seed',
328
333
  globalCantDir: env.globalCantDir,