@cleocode/cant 2026.5.29 → 2026.5.34
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/dist/native-loader.d.ts +6 -6
- package/dist/native-loader.js +8 -8
- package/package.json +4 -4
package/dist/native-loader.d.ts
CHANGED
|
@@ -239,7 +239,7 @@ export declare function cantExecutePipelineNative(filePath: string, pipelineName
|
|
|
239
239
|
* surface (plus `meta/agent-architect.cant`, the meta-agent, which the loader
|
|
240
240
|
* does not currently walk — tracked as follow-up for a loader extension).
|
|
241
241
|
*
|
|
242
|
-
* Note: filenames under `seed-agents/` use canonical role names
|
|
242
|
+
* Note: filenames under `templates/` (renamed from `seed-agents/` by T1932) use canonical role names
|
|
243
243
|
* (`orchestrator.cant`, `dev-lead.cant`, etc. — T1258 E1 clean-forward),
|
|
244
244
|
* and the agent IDs DECLARED inside each template (via `agent <name>:`) are
|
|
245
245
|
* `project-*`. This list reflects the
|
|
@@ -249,8 +249,8 @@ export declare function cantExecutePipelineNative(filePath: string, pipelineName
|
|
|
249
249
|
* templates (T1258 E1: orchestrator, dev-lead, code-worker, docs-worker,
|
|
250
250
|
* security-worker). Used by the regression test and as documentation of the
|
|
251
251
|
* expected registry contents. Any persona on this list MUST be resolvable
|
|
252
|
-
* from the canonical
|
|
253
|
-
* root or `
|
|
252
|
+
* from the canonical templates path (either `cleo-subagent.cant` at package
|
|
253
|
+
* root or `templates/<filename>.cant`).
|
|
254
254
|
*
|
|
255
255
|
* @task T1257
|
|
256
256
|
* @task T1258 E1 canonical naming refactor — security-worker added
|
|
@@ -263,8 +263,8 @@ export type SeedPersonaId = (typeof SEED_PERSONA_IDS)[number];
|
|
|
263
263
|
* `packages/agents/` directory shipped with `@cleocode/agents`.
|
|
264
264
|
*
|
|
265
265
|
* Walk order:
|
|
266
|
-
* 1. All `.cant` files inside `packages/agents/
|
|
267
|
-
* + any project-specific personas installed there).
|
|
266
|
+
* 1. All `.cant` files inside `packages/agents/templates/` (generic templates
|
|
267
|
+
* + any project-specific personas installed there). Renamed from `seed-agents/` by T1932.
|
|
268
268
|
* 2. `packages/agents/cleo-subagent.cant` — the universal protocol base.
|
|
269
269
|
*
|
|
270
270
|
* Files that cannot be parsed (unreadable, missing `agent <id>:` block) are
|
|
@@ -277,7 +277,7 @@ export type SeedPersonaId = (typeof SEED_PERSONA_IDS)[number];
|
|
|
277
277
|
* omitted the path is resolved automatically relative to this file. Tests
|
|
278
278
|
* should pass an absolute path to an isolated fixture directory.
|
|
279
279
|
* @returns `PeerIdentity[]` for every successfully-parsed `.cant` file, in
|
|
280
|
-
*
|
|
280
|
+
* templates-first, universal-base-last order.
|
|
281
281
|
*
|
|
282
282
|
* @example
|
|
283
283
|
* ```ts
|
package/dist/native-loader.js
CHANGED
|
@@ -241,7 +241,7 @@ function cantExecutePipelineNative(filePath, pipelineName) {
|
|
|
241
241
|
* surface (plus `meta/agent-architect.cant`, the meta-agent, which the loader
|
|
242
242
|
* does not currently walk — tracked as follow-up for a loader extension).
|
|
243
243
|
*
|
|
244
|
-
* Note: filenames under `seed-agents/` use canonical role names
|
|
244
|
+
* Note: filenames under `templates/` (renamed from `seed-agents/` by T1932) use canonical role names
|
|
245
245
|
* (`orchestrator.cant`, `dev-lead.cant`, etc. — T1258 E1 clean-forward),
|
|
246
246
|
* and the agent IDs DECLARED inside each template (via `agent <name>:`) are
|
|
247
247
|
* `project-*`. This list reflects the
|
|
@@ -251,8 +251,8 @@ function cantExecutePipelineNative(filePath, pipelineName) {
|
|
|
251
251
|
* templates (T1258 E1: orchestrator, dev-lead, code-worker, docs-worker,
|
|
252
252
|
* security-worker). Used by the regression test and as documentation of the
|
|
253
253
|
* expected registry contents. Any persona on this list MUST be resolvable
|
|
254
|
-
* from the canonical
|
|
255
|
-
* root or `
|
|
254
|
+
* from the canonical templates path (either `cleo-subagent.cant` at package
|
|
255
|
+
* root or `templates/<filename>.cant`).
|
|
256
256
|
*
|
|
257
257
|
* @task T1257
|
|
258
258
|
* @task T1258 E1 canonical naming refactor — security-worker added
|
|
@@ -418,8 +418,8 @@ function parseCantFileToIdentity(cantFile, fallbackId) {
|
|
|
418
418
|
* `packages/agents/` directory shipped with `@cleocode/agents`.
|
|
419
419
|
*
|
|
420
420
|
* Walk order:
|
|
421
|
-
* 1. All `.cant` files inside `packages/agents/
|
|
422
|
-
* + any project-specific personas installed there).
|
|
421
|
+
* 1. All `.cant` files inside `packages/agents/templates/` (generic templates
|
|
422
|
+
* + any project-specific personas installed there). Renamed from `seed-agents/` by T1932.
|
|
423
423
|
* 2. `packages/agents/cleo-subagent.cant` — the universal protocol base.
|
|
424
424
|
*
|
|
425
425
|
* Files that cannot be parsed (unreadable, missing `agent <id>:` block) are
|
|
@@ -432,7 +432,7 @@ function parseCantFileToIdentity(cantFile, fallbackId) {
|
|
|
432
432
|
* omitted the path is resolved automatically relative to this file. Tests
|
|
433
433
|
* should pass an absolute path to an isolated fixture directory.
|
|
434
434
|
* @returns `PeerIdentity[]` for every successfully-parsed `.cant` file, in
|
|
435
|
-
*
|
|
435
|
+
* templates-first, universal-base-last order.
|
|
436
436
|
*
|
|
437
437
|
* @example
|
|
438
438
|
* ```ts
|
|
@@ -451,8 +451,8 @@ function loadSeedAgentIdentities(agentsRoot) {
|
|
|
451
451
|
if (!root)
|
|
452
452
|
return [];
|
|
453
453
|
const identities = [];
|
|
454
|
-
// 1. Walk seed-agents/
|
|
455
|
-
const seedDir = (0, node_path_1.join)(root, '
|
|
454
|
+
// 1. Walk templates/ directory (renamed from seed-agents/ by T1932)
|
|
455
|
+
const seedDir = (0, node_path_1.join)(root, 'templates');
|
|
456
456
|
if ((0, node_fs_1.existsSync)(seedDir)) {
|
|
457
457
|
let entries = [];
|
|
458
458
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleocode/cant",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.34",
|
|
4
4
|
"description": "CANT protocol parser and runtime for CLEO — wraps cant-core via napi-rs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"napi/"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@cleocode/contracts": "2026.5.
|
|
13
|
-
"@cleocode/
|
|
14
|
-
"@cleocode/
|
|
12
|
+
"@cleocode/contracts": "2026.5.34",
|
|
13
|
+
"@cleocode/lafs": "2026.5.34",
|
|
14
|
+
"@cleocode/core": "2026.5.34"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"typescript": "^6.0.2",
|