@cleocode/skills 2026.4.74 → 2026.4.75
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
|
@@ -17,16 +17,25 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { readFileSync } from 'node:fs';
|
|
20
|
-
import { resolve } from 'node:path';
|
|
20
|
+
import { dirname, resolve } from 'node:path';
|
|
21
|
+
import { fileURLToPath } from 'node:url';
|
|
21
22
|
import { describe, expect, it } from 'vitest';
|
|
22
23
|
|
|
23
24
|
// ---------------------------------------------------------------------------
|
|
24
25
|
// Setup
|
|
25
26
|
// ---------------------------------------------------------------------------
|
|
26
27
|
|
|
27
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Resolve the CLEO-INJECTION.md template from the in-repo source of truth.
|
|
30
|
+
* The template is authored at `packages/core/templates/` and mirrored by
|
|
31
|
+
* `cleo init` into `~/.local/share/cleo/templates/` + `~/.cleo/templates/`.
|
|
32
|
+
* We test the in-repo source directly — portable across dev machines and
|
|
33
|
+
* CI runners without any filesystem provisioning.
|
|
34
|
+
*/
|
|
35
|
+
const thisDir = dirname(fileURLToPath(import.meta.url));
|
|
28
36
|
const injectionPath = resolve(
|
|
29
|
-
|
|
37
|
+
thisDir,
|
|
38
|
+
'../../../../core/templates/CLEO-INJECTION.md',
|
|
30
39
|
);
|
|
31
40
|
|
|
32
41
|
/** Read once — all assertions operate on this string */
|