@cleocode/caamp 1.8.0 → 1.8.1

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/cli.js CHANGED
@@ -61,7 +61,7 @@ import {
61
61
  tokenizeCriteriaValue,
62
62
  updateInstructionsSingleOperation,
63
63
  validateSkill
64
- } from "./chunk-YWO4I7LI.js";
64
+ } from "./chunk-LDTYDQGR.js";
65
65
  import {
66
66
  buildSkillSubPathCandidates,
67
67
  buildSkillsMap,
@@ -80,7 +80,7 @@ import {
80
80
  resolvePreferredConfigScope,
81
81
  resolveProviderConfigPath,
82
82
  resolveProviderSkillsDir
83
- } from "./chunk-ZVRDBY6L.js";
83
+ } from "./chunk-CPHF5IM4.js";
84
84
 
85
85
  // src/cli.ts
86
86
  import { Command } from "commander";
package/dist/index.d.ts CHANGED
@@ -1446,7 +1446,7 @@ interface InstructionUpdateSummary {
1446
1446
  updatedFiles: number;
1447
1447
  actions: Array<{
1448
1448
  file: string;
1449
- action: "created" | "added" | "updated" | "intact";
1449
+ action: "created" | "added" | "consolidated" | "updated" | "intact";
1450
1450
  providers: string[];
1451
1451
  configFormats: ConfigFormat[];
1452
1452
  }>;
@@ -1490,8 +1490,8 @@ interface DualScopeConfigureResult {
1490
1490
  project: InstallResult[];
1491
1491
  };
1492
1492
  instructions: {
1493
- global?: Map<string, "created" | "added" | "updated" | "intact">;
1494
- project?: Map<string, "created" | "added" | "updated" | "intact">;
1493
+ global?: Map<string, "created" | "added" | "consolidated" | "updated" | "intact">;
1494
+ project?: Map<string, "created" | "added" | "consolidated" | "updated" | "intact">;
1495
1495
  };
1496
1496
  }
1497
1497
  /**
@@ -2811,6 +2811,7 @@ declare function checkInjection(filePath: string, expectedContent?: string): Pro
2811
2811
  * Behavior depends on the file state:
2812
2812
  * - File does not exist: creates the file with the injection block → `"created"`
2813
2813
  * - File exists without markers: prepends the injection block → `"added"`
2814
+ * - File exists with multiple markers (duplicates): consolidates into single block → `"consolidated"`
2814
2815
  * - File exists with markers, content differs: replaces the block → `"updated"`
2815
2816
  * - File exists with markers, content matches: no-op → `"intact"`
2816
2817
  *
@@ -2819,7 +2820,7 @@ declare function checkInjection(filePath: string, expectedContent?: string): Pro
2819
2820
  *
2820
2821
  * @param filePath - Absolute path to the instruction file
2821
2822
  * @param content - Content to inject between CAAMP markers
2822
- * @returns Action taken: `"created"`, `"added"`, `"updated"`, or `"intact"`
2823
+ * @returns Action taken: `"created"`, `"added"`, `"consolidated"`, `"updated"`, or `"intact"`
2823
2824
  *
2824
2825
  * @example
2825
2826
  * ```typescript
@@ -2827,7 +2828,7 @@ declare function checkInjection(filePath: string, expectedContent?: string): Pro
2827
2828
  * console.log(`File ${action}`); // "created" on first call, "intact" on subsequent
2828
2829
  * ```
2829
2830
  */
2830
- declare function inject(filePath: string, content: string): Promise<"created" | "added" | "updated" | "intact">;
2831
+ declare function inject(filePath: string, content: string): Promise<"created" | "added" | "consolidated" | "updated" | "intact">;
2831
2832
  /**
2832
2833
  * Remove the CAAMP injection block from an instruction file.
2833
2834
  *
@@ -2870,7 +2871,7 @@ declare function checkAllInjections(providers: Provider[], projectDir: string, s
2870
2871
  * @param projectDir - Absolute path to the project directory
2871
2872
  * @param scope - Whether to target project or global instruction files
2872
2873
  * @param content - Content to inject between CAAMP markers
2873
- * @returns Map of file path to action taken (`"created"`, `"added"`, `"updated"`, or `"intact"`)
2874
+ * @returns Map of file path to action taken (`"created"`, `"added"`, `"consolidated"`, `"updated"`, or `"intact"`)
2874
2875
  *
2875
2876
  * @example
2876
2877
  * ```typescript
@@ -2880,7 +2881,7 @@ declare function checkAllInjections(providers: Provider[], projectDir: string, s
2880
2881
  * }
2881
2882
  * ```
2882
2883
  */
2883
- declare function injectAll(providers: Provider[], projectDir: string, scope: "project" | "global", content: string): Promise<Map<string, "created" | "added" | "updated" | "intact">>;
2884
+ declare function injectAll(providers: Provider[], projectDir: string, scope: "project" | "global", content: string): Promise<Map<string, "created" | "added" | "consolidated" | "updated" | "intact">>;
2884
2885
  /**
2885
2886
  * Options for ensuring a provider instruction file.
2886
2887
  */
@@ -2901,7 +2902,7 @@ interface EnsureProviderInstructionFileResult {
2901
2902
  /** Instruction file name from the provider registry. */
2902
2903
  instructFile: string;
2903
2904
  /** Action taken. */
2904
- action: "created" | "added" | "updated" | "intact";
2905
+ action: "created" | "added" | "consolidated" | "updated" | "intact";
2905
2906
  /** Provider ID. */
2906
2907
  providerId: string;
2907
2908
  }
@@ -2929,7 +2930,7 @@ interface EnsureProviderInstructionFileResult {
2929
2930
  * references: ["@AGENTS.md"],
2930
2931
  * });
2931
2932
  * // result.filePath → "/project/CLAUDE.md"
2932
- * // result.action → "created" | "added" | "updated" | "intact"
2933
+ * // result.action → "created" | "added" | "consolidated" | "updated" | "intact"
2933
2934
  *
2934
2935
  * // Global scope:
2935
2936
  * const globalResult = await ensureProviderInstructionFile("claude-code", homedir(), {
package/dist/index.js CHANGED
@@ -78,7 +78,7 @@ import {
78
78
  validateRecommendationCriteria,
79
79
  validateSkill,
80
80
  writeConfig
81
- } from "./chunk-YWO4I7LI.js";
81
+ } from "./chunk-LDTYDQGR.js";
82
82
  import {
83
83
  _resetPlatformPathsCache,
84
84
  buildInjectionContent,
@@ -128,7 +128,7 @@ import {
128
128
  resolveAlias,
129
129
  resolveProviderSkillsDirs,
130
130
  resolveRegistryTemplatePath
131
- } from "./chunk-ZVRDBY6L.js";
131
+ } from "./chunk-CPHF5IM4.js";
132
132
 
133
133
  // src/core/skills/integrity.ts
134
134
  import { existsSync, lstatSync, readlinkSync } from "fs";
@@ -246,7 +246,7 @@ function shouldOverrideSkill(skillName, incomingSource, existingEntry) {
246
246
  return true;
247
247
  }
248
248
  async function validateInstructionIntegrity(providers, projectDir, scope, expectedContent) {
249
- const { checkAllInjections: checkAllInjections2 } = await import("./injector-XGI7NNZA.js");
249
+ const { checkAllInjections: checkAllInjections2 } = await import("./injector-TIUEM4X2.js");
250
250
  const results = await checkAllInjections2(providers, projectDir, scope, expectedContent);
251
251
  const issues = [];
252
252
  for (const result of results) {
@@ -6,7 +6,7 @@ import {
6
6
  inject,
7
7
  injectAll,
8
8
  removeInjection
9
- } from "./chunk-ZVRDBY6L.js";
9
+ } from "./chunk-CPHF5IM4.js";
10
10
  export {
11
11
  checkAllInjections,
12
12
  checkInjection,
@@ -16,4 +16,4 @@ export {
16
16
  injectAll,
17
17
  removeInjection
18
18
  };
19
- //# sourceMappingURL=injector-XGI7NNZA.js.map
19
+ //# sourceMappingURL=injector-TIUEM4X2.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleocode/caamp",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Central AI Agent Managed Packages - unified provider registry and package manager for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -57,7 +57,7 @@
57
57
  "url": "https://github.com/kryptobaseddev/caamp/issues"
58
58
  },
59
59
  "dependencies": {
60
- "@cleocode/lafs-protocol": "^1.4.1",
60
+ "@cleocode/lafs-protocol": "^1.8.0",
61
61
  "@iarna/toml": "^2.2.5",
62
62
  "commander": "^14.0.0",
63
63
  "env-paths": "^4.0.0",
@@ -65,18 +65,18 @@
65
65
  "js-yaml": "^4.1.0",
66
66
  "jsonc-parser": "^3.3.1",
67
67
  "picocolors": "^1.1.1",
68
- "simple-git": "3.32.2"
68
+ "simple-git": "3.33.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@biomejs/biome": "2.4.4",
71
+ "@biomejs/biome": "2.4.8",
72
72
  "@types/js-yaml": "^4.0.9",
73
- "@types/node": "25.3.0",
74
- "@vitest/coverage-v8": "^3.2.4",
73
+ "@types/node": "25.5.0",
74
+ "@vitest/coverage-v8": "^4.1.0",
75
75
  "tsup": "^8.5.0",
76
76
  "tsx": "^4.21.0",
77
77
  "typedoc": "0.28.17",
78
78
  "typescript": "^5.9.0",
79
- "vitest": "^3.2.0"
79
+ "vitest": "^4.1.0"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=20"