@cleocode/cant 2026.4.125 → 2026.4.126
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/index.d.ts +2 -2
- package/dist/index.js +1 -3
- package/dist/native-loader.d.ts +12 -37
- package/dist/native-loader.js +13 -42
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export type { ConsolidateOptions, MentalModel, MentalModelObservation, MentalMod
|
|
|
12
12
|
export { consolidate, createEmptyModel, harvestObservations, renderMentalModel, } from './mental-model.js';
|
|
13
13
|
export type { ConvertedFile, MigrationOptions, MigrationResult, UnconvertedSection, } from './migrate/index';
|
|
14
14
|
export { migrateMarkdown, serializeCantDocument, showDiff, showSummary } from './migrate/index';
|
|
15
|
-
export type { AgentProfile,
|
|
16
|
-
export {
|
|
15
|
+
export type { AgentProfile, NativeDiagnostic, NativeParseDocumentResult, NativeParseError, NativeParseResult, NativePipelineResult, NativePipelineStep, NativeValidateResult, SeedPersonaId, } from './native-loader';
|
|
16
|
+
export { cantClassifyDirectiveNative, cantExecutePipelineNative, cantExtractAgentProfilesNative, cantParseDocumentNative, cantParseNative, cantValidateDocumentNative, extractAgentProfilesTyped, extractAgentSkills, initWasm, isNativeAvailable, isWasmAvailable, loadSeedAgentIdentities, SEED_PERSONA_IDS, validateAgentCantPath, } from './native-loader';
|
|
17
17
|
export type { ParsedCANTMessage } from './parse';
|
|
18
18
|
export { initCantParser, parseCANTMessage } from './parse';
|
|
19
19
|
export type { CantAgentV3, CantContextSourceDef, CantContractBlock, CantContractClause, CantMentalModelRef, CantOverflowStrategy, CantPathPermissions, CantTier, DirectiveType, } from './types';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// JIT Agent Composer (ULTRAPLAN Wave 5)
|
|
3
3
|
// Wave 7a: BRAIN-backed ContextProvider (T432)
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.resolveWorktreeRoot = exports.mergeWorktree = exports.listWorktrees = exports.createWorktree = exports.isCantAgentV3 = exports.parseCANTMessage = exports.initCantParser = exports.validateAgentCantPath = exports.SEED_PERSONA_IDS = exports.loadSeedAgentIdentities = exports.isWasmAvailable = exports.isNativeAvailable = exports.initWasm = exports.extractAgentSkills = exports.extractAgentProfilesTyped = exports.cantValidateDocumentNative = exports.cantParseNative = exports.cantParseDocumentNative = exports.cantExtractAgentProfilesNative = exports.cantExecutePipelineNative = exports.cantClassifyDirectiveNative = exports.
|
|
5
|
+
exports.resolveWorktreeRoot = exports.mergeWorktree = exports.listWorktrees = exports.createWorktree = exports.isCantAgentV3 = exports.parseCANTMessage = exports.initCantParser = exports.validateAgentCantPath = exports.SEED_PERSONA_IDS = exports.loadSeedAgentIdentities = exports.isWasmAvailable = exports.isNativeAvailable = exports.initWasm = exports.extractAgentSkills = exports.extractAgentProfilesTyped = exports.cantValidateDocumentNative = exports.cantParseNative = exports.cantParseDocumentNative = exports.cantExtractAgentProfilesNative = exports.cantExecutePipelineNative = exports.cantClassifyDirectiveNative = exports.showSummary = exports.showDiff = exports.serializeCantDocument = exports.migrateMarkdown = exports.renderMentalModel = exports.harvestObservations = exports.createEmptyModel = exports.consolidate = exports.WORKER_FORBIDDEN_SPAWN_TOOLS = exports.validateSpawnRequest = exports.THIN_AGENT_TOOLS_STRIPPED = exports.stripSpawnToolsForWorker = exports.ORCHESTRATOR_FORBIDDEN_TOOLS = exports.LEAD_FORBIDDEN_TOOLS = exports.filterToolsForRole = exports.validateDocument = exports.parseDocument = exports.listSections = exports.executePipeline = exports.brainContextProvider = exports.TIER_CAPS = exports.estimateTokens = exports.escalateTier = exports.composeSpawnPayload = exports.toCantAgentV3 = exports.compileBundle = void 0;
|
|
6
6
|
// Bundle compiler
|
|
7
7
|
var bundle_1 = require("./bundle");
|
|
8
8
|
Object.defineProperty(exports, "compileBundle", { enumerable: true, get: function () { return bundle_1.compileBundle; } });
|
|
@@ -43,8 +43,6 @@ Object.defineProperty(exports, "showDiff", { enumerable: true, get: function ()
|
|
|
43
43
|
Object.defineProperty(exports, "showSummary", { enumerable: true, get: function () { return index_1.showSummary; } });
|
|
44
44
|
// Native loader (replaces wasm-loader)
|
|
45
45
|
var native_loader_1 = require("./native-loader");
|
|
46
|
-
// T1257 — CLEO dogfood personas (classifier output; NOT shipped)
|
|
47
|
-
Object.defineProperty(exports, "CLEOCODE_DOGFOOD_PERSONAS", { enumerable: true, get: function () { return native_loader_1.CLEOCODE_DOGFOOD_PERSONAS; } });
|
|
48
46
|
Object.defineProperty(exports, "cantClassifyDirectiveNative", { enumerable: true, get: function () { return native_loader_1.cantClassifyDirectiveNative; } });
|
|
49
47
|
Object.defineProperty(exports, "cantExecutePipelineNative", { enumerable: true, get: function () { return native_loader_1.cantExecutePipelineNative; } });
|
|
50
48
|
Object.defineProperty(exports, "cantExtractAgentProfilesNative", { enumerable: true, get: function () { return native_loader_1.cantExtractAgentProfilesNative; } });
|
package/dist/native-loader.d.ts
CHANGED
|
@@ -239,50 +239,25 @@ 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/`
|
|
243
|
-
* (`orchestrator-
|
|
244
|
-
* template (via `agent <name>:`) are
|
|
242
|
+
* Note: filenames under `seed-agents/` use canonical role names
|
|
243
|
+
* (`orchestrator.cant`, `dev-lead.cant`, etc. — T1258 E1 clean-forward),
|
|
244
|
+
* and the agent IDs DECLARED inside each template (via `agent <name>:`) are
|
|
245
|
+
* `project-*`. This list reflects the
|
|
245
246
|
* declared agent IDs the loader surfaces, not the filename stems.
|
|
246
247
|
*
|
|
247
|
-
* Declaration order: universal base first, then the
|
|
248
|
-
* templates
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
248
|
+
* Declaration order: universal base first, then the five canonical role
|
|
249
|
+
* templates (T1258 E1: orchestrator, dev-lead, code-worker, docs-worker,
|
|
250
|
+
* security-worker). Used by the regression test and as documentation of the
|
|
251
|
+
* expected registry contents. Any persona on this list MUST be resolvable
|
|
252
|
+
* from the canonical seed-agents path (either `cleo-subagent.cant` at package
|
|
253
|
+
* root or `seed-agents/<filename>.cant`).
|
|
252
254
|
*
|
|
253
255
|
* @task T1257
|
|
254
|
-
* @
|
|
255
|
-
* in this repo's `.cleo/cant/agents/` and are NOT shipped.
|
|
256
|
+
* @task T1258 E1 canonical naming refactor — security-worker added
|
|
256
257
|
*/
|
|
257
|
-
export declare const SEED_PERSONA_IDS: readonly ["cleo-subagent", "project-orchestrator", "project-dev-lead", "project-code-worker", "project-docs-worker"];
|
|
258
|
+
export declare const SEED_PERSONA_IDS: readonly ["cleo-subagent", "project-orchestrator", "project-dev-lead", "project-code-worker", "project-docs-worker", "project-security-worker"];
|
|
258
259
|
/** Type-safe union of the ship-surface persona IDs. */
|
|
259
260
|
export type SeedPersonaId = (typeof SEED_PERSONA_IDS)[number];
|
|
260
|
-
/**
|
|
261
|
-
* Classifier-produced CLEO dogfood persona IDs that live in this repo's
|
|
262
|
-
* project-tier `.cleo/cant/agents/` directory and are NOT shipped in the
|
|
263
|
-
* `@cleocode/agents` package (per ADR-055 D031).
|
|
264
|
-
*
|
|
265
|
-
* The T891 classifier in `packages/core/src/orchestration/classify.ts` can
|
|
266
|
-
* emit any of these IDs for a task. Per ADR-055 D035, resolution flows
|
|
267
|
-
* through the 5-tier resolver: when no project/global/packaged row exists
|
|
268
|
-
* and no filesystem fallback is found, the `universal` tier synthesises an
|
|
269
|
-
* envelope from `cleo-subagent.cant` so the orchestrator never hits
|
|
270
|
-
* `E_AGENT_NOT_FOUND`.
|
|
271
|
-
*
|
|
272
|
-
* Exported so the regression test in `seed-persona-registry.test.ts` can
|
|
273
|
-
* verify every classifier output remains routable — either because the
|
|
274
|
-
* dogfood `.cant` file is present in `.cleo/cant/agents/` or because the
|
|
275
|
-
* universal-tier fallback catches it.
|
|
276
|
-
*
|
|
277
|
-
* `cleoos-opus-orchestrator` is also present as a `DEPRECATED_ALIASES` entry
|
|
278
|
-
* in `packages/core/src/store/agent-resolver.ts` (remaps to `cleo-prime`) for
|
|
279
|
-
* backward compatibility with stale session records.
|
|
280
|
-
*
|
|
281
|
-
* @task T1257
|
|
282
|
-
*/
|
|
283
|
-
export declare const CLEOCODE_DOGFOOD_PERSONAS: readonly ["cleo-prime", "cleo-dev", "cleo-rust-lead", "cleo-db-lead", "cleo-historian", "cleoos-opus-orchestrator"];
|
|
284
|
-
/** Type-safe union of the CLEO dogfood persona IDs produced by the classifier. */
|
|
285
|
-
export type CleocodeDogfoodPersonaId = (typeof CLEOCODE_DOGFOOD_PERSONAS)[number];
|
|
286
261
|
/**
|
|
287
262
|
* Load all seed-agent {@link PeerIdentity} records from the canonical
|
|
288
263
|
* `packages/agents/` directory shipped with `@cleocode/agents`.
|
package/dist/native-loader.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* `packages/lafs/src/native-loader.ts`.
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.initWasm = exports.isWasmAvailable = exports.
|
|
15
|
+
exports.initWasm = exports.isWasmAvailable = exports.SEED_PERSONA_IDS = void 0;
|
|
16
16
|
exports.isNativeAvailable = isNativeAvailable;
|
|
17
17
|
exports.cantParseNative = cantParseNative;
|
|
18
18
|
exports.cantClassifyDirectiveNative = cantClassifyDirectiveNative;
|
|
@@ -241,20 +241,21 @@ 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/`
|
|
245
|
-
* (`orchestrator-
|
|
246
|
-
* template (via `agent <name>:`) are
|
|
244
|
+
* Note: filenames under `seed-agents/` use canonical role names
|
|
245
|
+
* (`orchestrator.cant`, `dev-lead.cant`, etc. — T1258 E1 clean-forward),
|
|
246
|
+
* and the agent IDs DECLARED inside each template (via `agent <name>:`) are
|
|
247
|
+
* `project-*`. This list reflects the
|
|
247
248
|
* declared agent IDs the loader surfaces, not the filename stems.
|
|
248
249
|
*
|
|
249
|
-
* Declaration order: universal base first, then the
|
|
250
|
-
* templates
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
250
|
+
* Declaration order: universal base first, then the five canonical role
|
|
251
|
+
* templates (T1258 E1: orchestrator, dev-lead, code-worker, docs-worker,
|
|
252
|
+
* security-worker). Used by the regression test and as documentation of the
|
|
253
|
+
* expected registry contents. Any persona on this list MUST be resolvable
|
|
254
|
+
* from the canonical seed-agents path (either `cleo-subagent.cant` at package
|
|
255
|
+
* root or `seed-agents/<filename>.cant`).
|
|
254
256
|
*
|
|
255
257
|
* @task T1257
|
|
256
|
-
* @
|
|
257
|
-
* in this repo's `.cleo/cant/agents/` and are NOT shipped.
|
|
258
|
+
* @task T1258 E1 canonical naming refactor — security-worker added
|
|
258
259
|
*/
|
|
259
260
|
exports.SEED_PERSONA_IDS = [
|
|
260
261
|
'cleo-subagent',
|
|
@@ -262,37 +263,7 @@ exports.SEED_PERSONA_IDS = [
|
|
|
262
263
|
'project-dev-lead',
|
|
263
264
|
'project-code-worker',
|
|
264
265
|
'project-docs-worker',
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Classifier-produced CLEO dogfood persona IDs that live in this repo's
|
|
268
|
-
* project-tier `.cleo/cant/agents/` directory and are NOT shipped in the
|
|
269
|
-
* `@cleocode/agents` package (per ADR-055 D031).
|
|
270
|
-
*
|
|
271
|
-
* The T891 classifier in `packages/core/src/orchestration/classify.ts` can
|
|
272
|
-
* emit any of these IDs for a task. Per ADR-055 D035, resolution flows
|
|
273
|
-
* through the 5-tier resolver: when no project/global/packaged row exists
|
|
274
|
-
* and no filesystem fallback is found, the `universal` tier synthesises an
|
|
275
|
-
* envelope from `cleo-subagent.cant` so the orchestrator never hits
|
|
276
|
-
* `E_AGENT_NOT_FOUND`.
|
|
277
|
-
*
|
|
278
|
-
* Exported so the regression test in `seed-persona-registry.test.ts` can
|
|
279
|
-
* verify every classifier output remains routable — either because the
|
|
280
|
-
* dogfood `.cant` file is present in `.cleo/cant/agents/` or because the
|
|
281
|
-
* universal-tier fallback catches it.
|
|
282
|
-
*
|
|
283
|
-
* `cleoos-opus-orchestrator` is also present as a `DEPRECATED_ALIASES` entry
|
|
284
|
-
* in `packages/core/src/store/agent-resolver.ts` (remaps to `cleo-prime`) for
|
|
285
|
-
* backward compatibility with stale session records.
|
|
286
|
-
*
|
|
287
|
-
* @task T1257
|
|
288
|
-
*/
|
|
289
|
-
exports.CLEOCODE_DOGFOOD_PERSONAS = [
|
|
290
|
-
'cleo-prime',
|
|
291
|
-
'cleo-dev',
|
|
292
|
-
'cleo-rust-lead',
|
|
293
|
-
'cleo-db-lead',
|
|
294
|
-
'cleo-historian',
|
|
295
|
-
'cleoos-opus-orchestrator',
|
|
266
|
+
'project-security-worker',
|
|
296
267
|
];
|
|
297
268
|
/**
|
|
298
269
|
* Discover the `packages/agents/` root by walking up from the compiled
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleocode/cant",
|
|
3
|
-
"version": "2026.4.
|
|
3
|
+
"version": "2026.4.126",
|
|
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/
|
|
13
|
-
"@cleocode/lafs": "2026.4.
|
|
14
|
-
"@cleocode/
|
|
12
|
+
"@cleocode/contracts": "2026.4.126",
|
|
13
|
+
"@cleocode/lafs": "2026.4.126",
|
|
14
|
+
"@cleocode/core": "2026.4.126"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"typescript": "^6.0.2",
|