@cleocode/cant 2026.11.16 → 2026.11.17-rc.ci.734
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/README.md +5 -7
- package/dist/.source-stamp.json +1 -1
- package/dist/document.d.ts +4 -1
- package/dist/document.js +5 -2
- package/dist/native-loader.d.ts +7 -3
- package/dist/native-loader.js +7 -3
- package/napi/cant.darwin-arm64.node +0 -0
- package/napi/cant.darwin-x64.node +0 -0
- package/napi/cant.linux-arm64-gnu.node +0 -0
- package/napi/cant.linux-arm64-musl.node +0 -0
- package/napi/cant.linux-x64-gnu.node +0 -0
- package/napi/cant.linux-x64-musl.node +0 -0
- package/napi/cant.wasm32-wasi.wasm +0 -0
- package/napi/cant.win32-arm64-msvc.node +0 -0
- package/napi/cant.win32-x64-msvc.node +0 -0
- package/napi/index.cjs +54 -54
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -147,13 +147,11 @@ form back to `.cant` text. `cleo cant migrate` uses them.
|
|
|
147
147
|
`cant-core`'s validator (`crates/cant-core/src/validate/`) numbers 42 rules:
|
|
148
148
|
S01–S13 (scope, imports, permissions), P01–P07 (pipeline purity), T01–T07
|
|
149
149
|
(types), H01–H04 (hooks) and W01–W11 (workflow limits), plus hierarchy rules.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
escalation) checks.
|
|
156
|
-
- S11 (import depth) always sees an empty import chain, so it never fires.
|
|
150
|
+
S04 has no implementation, so 41 of the 42 are emitted. `cleo cant validate`
|
|
151
|
+
passes the file path to the validator, so it also walks the file's imports
|
|
152
|
+
and runs the cross-file rules S03 (circular imports), S11 (import depth) and
|
|
153
|
+
S12 (permission escalation). `cantValidateDocumentNative(content)` without a
|
|
154
|
+
`filePath` cannot resolve imports and skips those three.
|
|
157
155
|
|
|
158
156
|
## Architecture
|
|
159
157
|
|
package/dist/.source-stamp.json
CHANGED
package/dist/document.d.ts
CHANGED
|
@@ -74,7 +74,10 @@ export interface CantPipelineResult {
|
|
|
74
74
|
*/
|
|
75
75
|
export declare function parseDocument(filePath: string): Promise<CantDocumentResult>;
|
|
76
76
|
/**
|
|
77
|
-
* Validate a `.cant` file
|
|
77
|
+
* Validate a `.cant` file with cant-core's validator: the 41 implemented
|
|
78
|
+
* numbered rules (S04 has no validator) plus the hierarchy lints. Imports
|
|
79
|
+
* resolve relative to `filePath`, so the cross-file rules S03 (circular
|
|
80
|
+
* imports), S11 (import depth) and S12 (permission escalation) run too.
|
|
78
81
|
*
|
|
79
82
|
* @param filePath - Absolute path to the `.cant` file.
|
|
80
83
|
* @returns A {@link CantValidationResult} with all diagnostics.
|
package/dist/document.js
CHANGED
|
@@ -38,7 +38,10 @@ async function parseDocument(filePath) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* Validate a `.cant` file
|
|
41
|
+
* Validate a `.cant` file with cant-core's validator: the 41 implemented
|
|
42
|
+
* numbered rules (S04 has no validator) plus the hierarchy lints. Imports
|
|
43
|
+
* resolve relative to `filePath`, so the cross-file rules S03 (circular
|
|
44
|
+
* imports), S11 (import depth) and S12 (permission escalation) run too.
|
|
42
45
|
*
|
|
43
46
|
* @param filePath - Absolute path to the `.cant` file.
|
|
44
47
|
* @returns A {@link CantValidationResult} with all diagnostics.
|
|
@@ -47,7 +50,7 @@ async function validateDocument(filePath) {
|
|
|
47
50
|
// Normalize CRLF → LF so the Rust validator sees consistent line endings
|
|
48
51
|
// on Windows runners that check out files with core.autocrlf=true.
|
|
49
52
|
const content = (await (0, promises_1.readFile)(filePath, 'utf-8')).replace(/\r\n/g, '\n');
|
|
50
|
-
const result = (0, native_loader_1.cantValidateDocumentNative)(content);
|
|
53
|
+
const result = (0, native_loader_1.cantValidateDocumentNative)(content, filePath);
|
|
51
54
|
return {
|
|
52
55
|
file: filePath,
|
|
53
56
|
valid: result.valid,
|
package/dist/native-loader.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export interface NativeParseDocumentResult {
|
|
|
62
62
|
/** Parse errors (empty if parsing succeeded). */
|
|
63
63
|
errors: NativeParseError[];
|
|
64
64
|
}
|
|
65
|
-
/** A validation diagnostic from the
|
|
65
|
+
/** A validation diagnostic from the cant-core validation engine. */
|
|
66
66
|
export interface NativeDiagnostic {
|
|
67
67
|
/** The rule ID (e.g., "S01", "P06", "W08"). */
|
|
68
68
|
ruleId: string;
|
|
@@ -176,11 +176,15 @@ export declare function cantClassifyDirectiveNative(verb: string): string;
|
|
|
176
176
|
*/
|
|
177
177
|
export declare function cantParseDocumentNative(content: string): NativeParseDocumentResult;
|
|
178
178
|
/**
|
|
179
|
-
* Parse and validate a `.cant` document via the native addon
|
|
179
|
+
* Parse and validate a `.cant` document via the native addon: the 41
|
|
180
|
+
* implemented numbered rules (S04 has no validator) plus the hierarchy lints.
|
|
180
181
|
*
|
|
181
182
|
* @param content - The raw `.cant` file content to parse and validate.
|
|
183
|
+
* @param filePath - The path `content` was read from. When given, imports
|
|
184
|
+
* resolve relative to it and the cross-file rules S03 (circular imports),
|
|
185
|
+
* S11 (import depth) and S12 (permission escalation) run as well.
|
|
182
186
|
*/
|
|
183
|
-
export declare function cantValidateDocumentNative(content: string): NativeValidateResult;
|
|
187
|
+
export declare function cantValidateDocumentNative(content: string, filePath?: string): NativeValidateResult;
|
|
184
188
|
/**
|
|
185
189
|
* A single agent profile extracted from a `.cant` document.
|
|
186
190
|
*
|
package/dist/native-loader.js
CHANGED
|
@@ -147,12 +147,16 @@ function cantParseDocumentNative(content) {
|
|
|
147
147
|
return requireNative().cantParseDocument(content);
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
|
-
* Parse and validate a `.cant` document via the native addon
|
|
150
|
+
* Parse and validate a `.cant` document via the native addon: the 41
|
|
151
|
+
* implemented numbered rules (S04 has no validator) plus the hierarchy lints.
|
|
151
152
|
*
|
|
152
153
|
* @param content - The raw `.cant` file content to parse and validate.
|
|
154
|
+
* @param filePath - The path `content` was read from. When given, imports
|
|
155
|
+
* resolve relative to it and the cross-file rules S03 (circular imports),
|
|
156
|
+
* S11 (import depth) and S12 (permission escalation) run as well.
|
|
153
157
|
*/
|
|
154
|
-
function cantValidateDocumentNative(content) {
|
|
155
|
-
return requireNative().cantValidateDocument(content);
|
|
158
|
+
function cantValidateDocumentNative(content, filePath) {
|
|
159
|
+
return requireNative().cantValidateDocument(content, filePath);
|
|
156
160
|
}
|
|
157
161
|
/**
|
|
158
162
|
* Extract agent profiles from a `.cant` document via the native addon.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/napi/index.cjs
CHANGED
|
@@ -89,8 +89,8 @@ function requireNative() {
|
|
|
89
89
|
try {
|
|
90
90
|
const binding = require('@cleocode/cant-android-arm64')
|
|
91
91
|
const bindingPackageVersion = require('@cleocode/cant-android-arm64/package.json').version
|
|
92
|
-
if (bindingPackageVersion !== '2026.11.
|
|
93
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
92
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
93
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
94
94
|
}
|
|
95
95
|
return binding
|
|
96
96
|
} catch (e) {
|
|
@@ -105,8 +105,8 @@ function requireNative() {
|
|
|
105
105
|
try {
|
|
106
106
|
const binding = require('@cleocode/cant-android-arm-eabi')
|
|
107
107
|
const bindingPackageVersion = require('@cleocode/cant-android-arm-eabi/package.json').version
|
|
108
|
-
if (bindingPackageVersion !== '2026.11.
|
|
109
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
108
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
109
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
110
110
|
}
|
|
111
111
|
return binding
|
|
112
112
|
} catch (e) {
|
|
@@ -126,8 +126,8 @@ function requireNative() {
|
|
|
126
126
|
try {
|
|
127
127
|
const binding = require('@cleocode/cant-win32-x64-gnu')
|
|
128
128
|
const bindingPackageVersion = require('@cleocode/cant-win32-x64-gnu/package.json').version
|
|
129
|
-
if (bindingPackageVersion !== '2026.11.
|
|
130
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
129
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
130
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
131
131
|
}
|
|
132
132
|
return binding
|
|
133
133
|
} catch (e) {
|
|
@@ -142,8 +142,8 @@ function requireNative() {
|
|
|
142
142
|
try {
|
|
143
143
|
const binding = require('@cleocode/cant-win32-x64-msvc')
|
|
144
144
|
const bindingPackageVersion = require('@cleocode/cant-win32-x64-msvc/package.json').version
|
|
145
|
-
if (bindingPackageVersion !== '2026.11.
|
|
146
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
145
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
146
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
147
147
|
}
|
|
148
148
|
return binding
|
|
149
149
|
} catch (e) {
|
|
@@ -159,8 +159,8 @@ function requireNative() {
|
|
|
159
159
|
try {
|
|
160
160
|
const binding = require('@cleocode/cant-win32-ia32-msvc')
|
|
161
161
|
const bindingPackageVersion = require('@cleocode/cant-win32-ia32-msvc/package.json').version
|
|
162
|
-
if (bindingPackageVersion !== '2026.11.
|
|
163
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
162
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
163
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
164
164
|
}
|
|
165
165
|
return binding
|
|
166
166
|
} catch (e) {
|
|
@@ -175,8 +175,8 @@ function requireNative() {
|
|
|
175
175
|
try {
|
|
176
176
|
const binding = require('@cleocode/cant-win32-arm64-msvc')
|
|
177
177
|
const bindingPackageVersion = require('@cleocode/cant-win32-arm64-msvc/package.json').version
|
|
178
|
-
if (bindingPackageVersion !== '2026.11.
|
|
179
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
178
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
179
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
180
180
|
}
|
|
181
181
|
return binding
|
|
182
182
|
} catch (e) {
|
|
@@ -194,8 +194,8 @@ function requireNative() {
|
|
|
194
194
|
try {
|
|
195
195
|
const binding = require('@cleocode/cant-darwin-universal')
|
|
196
196
|
const bindingPackageVersion = require('@cleocode/cant-darwin-universal/package.json').version
|
|
197
|
-
if (bindingPackageVersion !== '2026.11.
|
|
198
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
197
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
198
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
199
199
|
}
|
|
200
200
|
return binding
|
|
201
201
|
} catch (e) {
|
|
@@ -210,8 +210,8 @@ function requireNative() {
|
|
|
210
210
|
try {
|
|
211
211
|
const binding = require('@cleocode/cant-darwin-x64')
|
|
212
212
|
const bindingPackageVersion = require('@cleocode/cant-darwin-x64/package.json').version
|
|
213
|
-
if (bindingPackageVersion !== '2026.11.
|
|
214
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
213
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
214
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
215
215
|
}
|
|
216
216
|
return binding
|
|
217
217
|
} catch (e) {
|
|
@@ -226,8 +226,8 @@ function requireNative() {
|
|
|
226
226
|
try {
|
|
227
227
|
const binding = require('@cleocode/cant-darwin-arm64')
|
|
228
228
|
const bindingPackageVersion = require('@cleocode/cant-darwin-arm64/package.json').version
|
|
229
|
-
if (bindingPackageVersion !== '2026.11.
|
|
230
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
229
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
230
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
231
231
|
}
|
|
232
232
|
return binding
|
|
233
233
|
} catch (e) {
|
|
@@ -246,8 +246,8 @@ function requireNative() {
|
|
|
246
246
|
try {
|
|
247
247
|
const binding = require('@cleocode/cant-freebsd-x64')
|
|
248
248
|
const bindingPackageVersion = require('@cleocode/cant-freebsd-x64/package.json').version
|
|
249
|
-
if (bindingPackageVersion !== '2026.11.
|
|
250
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
249
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
250
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
251
251
|
}
|
|
252
252
|
return binding
|
|
253
253
|
} catch (e) {
|
|
@@ -262,8 +262,8 @@ function requireNative() {
|
|
|
262
262
|
try {
|
|
263
263
|
const binding = require('@cleocode/cant-freebsd-arm64')
|
|
264
264
|
const bindingPackageVersion = require('@cleocode/cant-freebsd-arm64/package.json').version
|
|
265
|
-
if (bindingPackageVersion !== '2026.11.
|
|
266
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
265
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
266
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
267
267
|
}
|
|
268
268
|
return binding
|
|
269
269
|
} catch (e) {
|
|
@@ -283,8 +283,8 @@ function requireNative() {
|
|
|
283
283
|
try {
|
|
284
284
|
const binding = require('@cleocode/cant-linux-x64-musl')
|
|
285
285
|
const bindingPackageVersion = require('@cleocode/cant-linux-x64-musl/package.json').version
|
|
286
|
-
if (bindingPackageVersion !== '2026.11.
|
|
287
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
286
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
287
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
288
288
|
}
|
|
289
289
|
return binding
|
|
290
290
|
} catch (e) {
|
|
@@ -299,8 +299,8 @@ function requireNative() {
|
|
|
299
299
|
try {
|
|
300
300
|
const binding = require('@cleocode/cant-linux-x64-gnu')
|
|
301
301
|
const bindingPackageVersion = require('@cleocode/cant-linux-x64-gnu/package.json').version
|
|
302
|
-
if (bindingPackageVersion !== '2026.11.
|
|
303
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
302
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
303
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
304
304
|
}
|
|
305
305
|
return binding
|
|
306
306
|
} catch (e) {
|
|
@@ -317,8 +317,8 @@ function requireNative() {
|
|
|
317
317
|
try {
|
|
318
318
|
const binding = require('@cleocode/cant-linux-arm64-musl')
|
|
319
319
|
const bindingPackageVersion = require('@cleocode/cant-linux-arm64-musl/package.json').version
|
|
320
|
-
if (bindingPackageVersion !== '2026.11.
|
|
321
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
320
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
321
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
322
322
|
}
|
|
323
323
|
return binding
|
|
324
324
|
} catch (e) {
|
|
@@ -333,8 +333,8 @@ function requireNative() {
|
|
|
333
333
|
try {
|
|
334
334
|
const binding = require('@cleocode/cant-linux-arm64-gnu')
|
|
335
335
|
const bindingPackageVersion = require('@cleocode/cant-linux-arm64-gnu/package.json').version
|
|
336
|
-
if (bindingPackageVersion !== '2026.11.
|
|
337
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
336
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
337
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
338
338
|
}
|
|
339
339
|
return binding
|
|
340
340
|
} catch (e) {
|
|
@@ -351,8 +351,8 @@ function requireNative() {
|
|
|
351
351
|
try {
|
|
352
352
|
const binding = require('@cleocode/cant-linux-arm-musleabihf')
|
|
353
353
|
const bindingPackageVersion = require('@cleocode/cant-linux-arm-musleabihf/package.json').version
|
|
354
|
-
if (bindingPackageVersion !== '2026.11.
|
|
355
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
354
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
355
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
356
356
|
}
|
|
357
357
|
return binding
|
|
358
358
|
} catch (e) {
|
|
@@ -367,8 +367,8 @@ function requireNative() {
|
|
|
367
367
|
try {
|
|
368
368
|
const binding = require('@cleocode/cant-linux-arm-gnueabihf')
|
|
369
369
|
const bindingPackageVersion = require('@cleocode/cant-linux-arm-gnueabihf/package.json').version
|
|
370
|
-
if (bindingPackageVersion !== '2026.11.
|
|
371
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
370
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
371
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
372
372
|
}
|
|
373
373
|
return binding
|
|
374
374
|
} catch (e) {
|
|
@@ -385,8 +385,8 @@ function requireNative() {
|
|
|
385
385
|
try {
|
|
386
386
|
const binding = require('@cleocode/cant-linux-loong64-musl')
|
|
387
387
|
const bindingPackageVersion = require('@cleocode/cant-linux-loong64-musl/package.json').version
|
|
388
|
-
if (bindingPackageVersion !== '2026.11.
|
|
389
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
388
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
389
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
390
390
|
}
|
|
391
391
|
return binding
|
|
392
392
|
} catch (e) {
|
|
@@ -401,8 +401,8 @@ function requireNative() {
|
|
|
401
401
|
try {
|
|
402
402
|
const binding = require('@cleocode/cant-linux-loong64-gnu')
|
|
403
403
|
const bindingPackageVersion = require('@cleocode/cant-linux-loong64-gnu/package.json').version
|
|
404
|
-
if (bindingPackageVersion !== '2026.11.
|
|
405
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
404
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
405
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
406
406
|
}
|
|
407
407
|
return binding
|
|
408
408
|
} catch (e) {
|
|
@@ -419,8 +419,8 @@ function requireNative() {
|
|
|
419
419
|
try {
|
|
420
420
|
const binding = require('@cleocode/cant-linux-riscv64-musl')
|
|
421
421
|
const bindingPackageVersion = require('@cleocode/cant-linux-riscv64-musl/package.json').version
|
|
422
|
-
if (bindingPackageVersion !== '2026.11.
|
|
423
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
422
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
423
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
424
424
|
}
|
|
425
425
|
return binding
|
|
426
426
|
} catch (e) {
|
|
@@ -435,8 +435,8 @@ function requireNative() {
|
|
|
435
435
|
try {
|
|
436
436
|
const binding = require('@cleocode/cant-linux-riscv64-gnu')
|
|
437
437
|
const bindingPackageVersion = require('@cleocode/cant-linux-riscv64-gnu/package.json').version
|
|
438
|
-
if (bindingPackageVersion !== '2026.11.
|
|
439
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
438
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
439
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
440
440
|
}
|
|
441
441
|
return binding
|
|
442
442
|
} catch (e) {
|
|
@@ -452,8 +452,8 @@ function requireNative() {
|
|
|
452
452
|
try {
|
|
453
453
|
const binding = require('@cleocode/cant-linux-ppc64-gnu')
|
|
454
454
|
const bindingPackageVersion = require('@cleocode/cant-linux-ppc64-gnu/package.json').version
|
|
455
|
-
if (bindingPackageVersion !== '2026.11.
|
|
456
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
455
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
456
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
457
457
|
}
|
|
458
458
|
return binding
|
|
459
459
|
} catch (e) {
|
|
@@ -468,8 +468,8 @@ function requireNative() {
|
|
|
468
468
|
try {
|
|
469
469
|
const binding = require('@cleocode/cant-linux-s390x-gnu')
|
|
470
470
|
const bindingPackageVersion = require('@cleocode/cant-linux-s390x-gnu/package.json').version
|
|
471
|
-
if (bindingPackageVersion !== '2026.11.
|
|
472
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
471
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
472
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
473
473
|
}
|
|
474
474
|
return binding
|
|
475
475
|
} catch (e) {
|
|
@@ -488,8 +488,8 @@ function requireNative() {
|
|
|
488
488
|
try {
|
|
489
489
|
const binding = require('@cleocode/cant-openharmony-arm64')
|
|
490
490
|
const bindingPackageVersion = require('@cleocode/cant-openharmony-arm64/package.json').version
|
|
491
|
-
if (bindingPackageVersion !== '2026.11.
|
|
492
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
491
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
492
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
493
493
|
}
|
|
494
494
|
return binding
|
|
495
495
|
} catch (e) {
|
|
@@ -504,8 +504,8 @@ function requireNative() {
|
|
|
504
504
|
try {
|
|
505
505
|
const binding = require('@cleocode/cant-openharmony-x64')
|
|
506
506
|
const bindingPackageVersion = require('@cleocode/cant-openharmony-x64/package.json').version
|
|
507
|
-
if (bindingPackageVersion !== '2026.11.
|
|
508
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
507
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
508
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
509
509
|
}
|
|
510
510
|
return binding
|
|
511
511
|
} catch (e) {
|
|
@@ -520,8 +520,8 @@ function requireNative() {
|
|
|
520
520
|
try {
|
|
521
521
|
const binding = require('@cleocode/cant-openharmony-arm')
|
|
522
522
|
const bindingPackageVersion = require('@cleocode/cant-openharmony-arm/package.json').version
|
|
523
|
-
if (bindingPackageVersion !== '2026.11.
|
|
524
|
-
throw new Error(`Native binding package version mismatch, expected 2026.11.
|
|
523
|
+
if (bindingPackageVersion !== '2026.11.16' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
524
|
+
throw new Error(`Native binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
525
525
|
}
|
|
526
526
|
return binding
|
|
527
527
|
} catch (e) {
|
|
@@ -661,8 +661,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
661
661
|
if (!candidateFailed) {
|
|
662
662
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
663
663
|
const bindingPackageVersion = require('@cleocode/cant-wasm32-wasi/package.json').version
|
|
664
|
-
if (bindingPackageVersion !== '2026.11.
|
|
665
|
-
throw new Error(`WASI binding package version mismatch, expected 2026.11.
|
|
664
|
+
if (bindingPackageVersion !== '2026.11.16') {
|
|
665
|
+
throw new Error(`WASI binding package version mismatch, expected 2026.11.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
wasiBinding = require('@cleocode/cant-wasm32-wasi')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleocode/cant",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.17-rc.ci.734",
|
|
4
4
|
"description": "CANT DSL — cant-core (SSoT) parser, validator, and pipeline executor via napi-rs; agent identity, message parsing, and migration utilities",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"@emnapi/core": "1.11.3",
|
|
17
17
|
"@emnapi/runtime": "1.11.3",
|
|
18
18
|
"@napi-rs/wasm-runtime": "1.2.4",
|
|
19
|
-
"@cleocode/contracts": "2026.11.
|
|
20
|
-
"@cleocode/core": "2026.11.
|
|
21
|
-
"@cleocode/lafs": "2026.11.
|
|
19
|
+
"@cleocode/contracts": "2026.11.17-rc.ci.734",
|
|
20
|
+
"@cleocode/core": "2026.11.17-rc.ci.734",
|
|
21
|
+
"@cleocode/lafs": "2026.11.17-rc.ci.734"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^6.0.2",
|