@cleocode/caamp 2026.10.3 → 2026.10.5-rc.ci.672
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/{chunk-3OL6CAMT.js → chunk-E2QFVEIS.js} +18 -6
- package/dist/chunk-E2QFVEIS.js.map +1 -0
- package/dist/{chunk-UIXTFV35.js → chunk-JR6T47PC.js} +45 -7
- package/dist/chunk-JR6T47PC.js.map +1 -0
- package/dist/cli.js +205 -179
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +63 -3
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/{injector-KSFK5LF2.js → injector-Q6KCKS76.js} +4 -2
- package/package.json +7 -7
- package/dist/chunk-3OL6CAMT.js.map +0 -1
- package/dist/chunk-UIXTFV35.js.map +0 -1
- /package/dist/{injector-KSFK5LF2.js.map → injector-Q6KCKS76.js.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
HomeInstructionFileError,
|
|
2
3
|
blockPattern,
|
|
3
4
|
getAllProviders,
|
|
4
5
|
getPrimaryProvider,
|
|
@@ -11,7 +12,7 @@ import {
|
|
|
11
12
|
resolveGlobalInstructionPath,
|
|
12
13
|
resolveInstructionDelivery,
|
|
13
14
|
withFileLock
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JR6T47PC.js";
|
|
15
16
|
import {
|
|
16
17
|
__export,
|
|
17
18
|
buildSkillSubPathCandidates,
|
|
@@ -482,8 +483,7 @@ import {
|
|
|
482
483
|
} from "fs/promises";
|
|
483
484
|
import { homedir as homedir2 } from "os";
|
|
484
485
|
import { basename as basename2, dirname as dirname2, extname, join as join4 } from "path";
|
|
485
|
-
import {
|
|
486
|
-
import { provisionIsolatedShell } from "@cleocode/contracts";
|
|
486
|
+
import { provisionIsolatedShell } from "@cleocode/contracts/branch-lock.js";
|
|
487
487
|
import { CAAMP_BLOCK_PATTERN_SOURCE } from "@cleocode/contracts/caamp-markers";
|
|
488
488
|
import { writeFileAtomic } from "@cleocode/core/tools/fs.js";
|
|
489
489
|
|
|
@@ -1701,6 +1701,7 @@ var PiHarness = class {
|
|
|
1701
1701
|
throw new Error(`validateCantProfile: source path is not a regular file: ${sourcePath}`);
|
|
1702
1702
|
}
|
|
1703
1703
|
const counts = await extractCantCounts(sourcePath);
|
|
1704
|
+
const { validateDocument } = await import("@cleocode/cant");
|
|
1704
1705
|
const validation = await validateDocument(sourcePath);
|
|
1705
1706
|
const errors = validation.diagnostics.map((d) => ({
|
|
1706
1707
|
ruleId: d.ruleId,
|
|
@@ -1851,7 +1852,8 @@ function collectSkillNames(value, out) {
|
|
|
1851
1852
|
async function extractCantCounts(sourcePath) {
|
|
1852
1853
|
let parsed;
|
|
1853
1854
|
try {
|
|
1854
|
-
|
|
1855
|
+
const cant = await import("@cleocode/cant");
|
|
1856
|
+
parsed = await cant.parseDocument(sourcePath);
|
|
1855
1857
|
} catch {
|
|
1856
1858
|
return { ...EMPTY_CANT_COUNTS };
|
|
1857
1859
|
}
|
|
@@ -3358,6 +3360,8 @@ var ErrorCodes = {
|
|
|
3358
3360
|
REMOVE_FAILED: "E_REMOVE_FAILED",
|
|
3359
3361
|
UPDATE_FAILED: "E_UPDATE_FAILED",
|
|
3360
3362
|
VALIDATION_FAILED: "E_VALIDATION_FAILED",
|
|
3363
|
+
/** A project-scope instruction file was refused at the home directory (T13257). */
|
|
3364
|
+
HOME_INSTRUCTION_FILE: "E_HOME_INSTRUCTION_FILE",
|
|
3361
3365
|
AUDIT_FAILED: "E_AUDIT_FAILED",
|
|
3362
3366
|
// System errors
|
|
3363
3367
|
NETWORK_ERROR: "E_NETWORK_ERROR",
|
|
@@ -3868,7 +3872,15 @@ async function installBatchWithRollback(options) {
|
|
|
3868
3872
|
}
|
|
3869
3873
|
}
|
|
3870
3874
|
async function updateInstructionsSingleOperation(providers, content, scope = "project", projectDir = process.cwd()) {
|
|
3871
|
-
|
|
3875
|
+
let actions;
|
|
3876
|
+
try {
|
|
3877
|
+
actions = await injectAll(providers, projectDir, scope, content);
|
|
3878
|
+
} catch (err) {
|
|
3879
|
+
if (err instanceof HomeInstructionFileError) {
|
|
3880
|
+
return { scope, updatedFiles: 0, actions: [], skipped: err.message };
|
|
3881
|
+
}
|
|
3882
|
+
throw err;
|
|
3883
|
+
}
|
|
3872
3884
|
const groupedByFile = groupByInstructFile(providers);
|
|
3873
3885
|
const summary = {
|
|
3874
3886
|
scope,
|
|
@@ -5484,4 +5496,4 @@ export {
|
|
|
5484
5496
|
recommendSkills2 as recommendSkills,
|
|
5485
5497
|
validateSkill
|
|
5486
5498
|
};
|
|
5487
|
-
//# sourceMappingURL=chunk-
|
|
5499
|
+
//# sourceMappingURL=chunk-E2QFVEIS.js.map
|