@cleocode/caamp 1.4.0 → 1.5.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/index.d.ts CHANGED
@@ -2181,6 +2181,59 @@ declare function saveLastSelectedAgents(agents: string[]): Promise<void>;
2181
2181
  */
2182
2182
  declare function getLastSelectedAgents(): Promise<string[] | undefined>;
2183
2183
 
2184
+ /**
2185
+ * CLEO MCP lock reconciliation
2186
+ *
2187
+ * Infers lock metadata from live config entries and backfills
2188
+ * missing lock entries for CLEO servers installed before lock tracking.
2189
+ */
2190
+
2191
+ interface InferredLockData {
2192
+ source: string;
2193
+ sourceType: SourceType;
2194
+ version: string | undefined;
2195
+ }
2196
+ /**
2197
+ * Infer lock metadata from a live MCP config entry.
2198
+ *
2199
+ * Determines source, sourceType, and version by inspecting the command and args
2200
+ * of an existing CLEO MCP server config entry.
2201
+ */
2202
+ declare function inferCleoLockData(config: Record<string, unknown>, channel: CleoChannel): InferredLockData;
2203
+ interface ReconcileOptions {
2204
+ providerIds?: string[];
2205
+ all?: boolean;
2206
+ global?: boolean;
2207
+ project?: boolean;
2208
+ prune?: boolean;
2209
+ dryRun?: boolean;
2210
+ }
2211
+ interface ReconcileResult {
2212
+ backfilled: Array<{
2213
+ serverName: string;
2214
+ channel: CleoChannel;
2215
+ scope: "project" | "global";
2216
+ agents: string[];
2217
+ source: string;
2218
+ sourceType: SourceType;
2219
+ version: string | undefined;
2220
+ }>;
2221
+ pruned: string[];
2222
+ alreadyTracked: number;
2223
+ errors: Array<{
2224
+ message: string;
2225
+ }>;
2226
+ }
2227
+ /**
2228
+ * Reconcile CLEO lock entries against live config.
2229
+ *
2230
+ * 1. Scans all providers × scopes for CLEO server entries
2231
+ * 2. Identifies entries not tracked in the lock file
2232
+ * 3. Backfills missing entries via recordMcpInstall
2233
+ * 4. Optionally prunes orphaned lock entries (in lock but not in any config)
2234
+ */
2235
+ declare function reconcileCleoLock(options?: ReconcileOptions): Promise<ReconcileResult>;
2236
+
2184
2237
  /**
2185
2238
  * Skills lock file management
2186
2239
  *
@@ -2714,4 +2767,4 @@ declare function isVerbose(): boolean;
2714
2767
  */
2715
2768
  declare function isQuiet(): boolean;
2716
2769
 
2717
- export { type AuditFinding, type AuditResult, type AuditRule, type AuditSeverity, type BatchInstallOptions, type BatchInstallResult, type CaampLockFile, type CleoChannel, type CleoProfileBuildResult, type ConfigFormat, type ConflictPolicy, type CtDispatchMatrix, type CtManifest, type CtManifestSkill, type CtProfileDefinition, type CtSkillEntry, type CtValidationIssue, type CtValidationResult, type DetectionCacheOptions, type DetectionResult, type DualScopeConfigureOptions, type DualScopeConfigureResult, type GlobalOptions, type InjectionCheckResult, type InjectionStatus, type InjectionTemplate, type InstallResult, type InstructionUpdateSummary, type LockEntry, MarketplaceClient, type MarketplaceResult, type MarketplaceSearchResult, type MarketplaceSkill, type McpBatchOperation, type McpConflict, type McpConflictCode, type McpPlanApplyResult, type McpServerConfig, type McpServerEntry, type NormalizedRecommendationCriteria, type ParsedSource, type Provider, type ProviderPriority, type ProviderStatus, RECOMMENDATION_ERROR_CODES, type RankedSkillRecommendation, type RecommendSkillsResult, type RecommendationCriteriaInput, type RecommendationErrorCode, type RecommendationOptions, type RecommendationReason, type RecommendationReasonCode, type RecommendationScoreBreakdown, type RecommendationValidationIssue, type RecommendationValidationResult, type RecommendationWeights, type SkillBatchOperation, type SkillEntry, type SkillInstallResult, type SkillLibrary, type SkillLibraryDispatchMatrix, type SkillLibraryEntry, type SkillLibraryManifest, type SkillLibraryManifestSkill, type SkillLibraryProfile, type SkillLibraryValidationIssue, type SkillLibraryValidationResult, type SkillMetadata, type SourceType, type TransportType, type ValidationIssue, type ValidationResult, applyMcpInstallWithPolicy, buildCleoProfile, buildInjectionContent, buildLibraryFromFiles, buildServerConfig, catalog, checkAllInjections, checkAllSkillUpdates, checkCommandReachability, checkInjection, checkSkillUpdate, clearRegisteredLibrary, configureProviderGlobalAndProject, deepMerge, detectAllProviders, detectMcpConfigConflicts, detectProjectProviders, detectProvider, discoverSkill, discoverSkills, ensureDir, extractVersionTag, formatSkillRecommendations, generateInjectionContent, generateSkillsSection, getAgentsConfigPath, getAgentsHome, getAgentsInstructFile, getAgentsLinksDir, getAgentsMcpDir, getAgentsMcpServersPath, getAgentsSpecDir, getAgentsWikiDir, getAllProviders, getCanonicalSkillsDir, getInstalledProviders, getInstructionFiles, getLastSelectedAgents, getLockFilePath, getNestedValue, getPlatformLocations, getProjectAgentsDir, getProvider, getProviderCount, getProvidersByInstructFile, getProvidersByPriority, getProvidersByStatus, getRegistryVersion, getTrackedMcpServers, getTrackedSkills, getTransform, groupByInstructFile, inject, injectAll, installBatchWithRollback, installMcpServer, installMcpServerToAll, installSkill, isCleoSource, isMarketplaceScoped, isQuiet, isVerbose, listAgentsMcpServers, listAllMcpServers, listCanonicalSkills, listMcpServers, loadLibraryFromModule, normalizeCleoChannel, normalizeRecommendationCriteria, parseEnvAssignments, parseInjectionContent, parseSkillFile, parseSource, rankSkills, readConfig, readLockFile, recommendSkills, recordMcpInstall, recordSkillInstall, registerSkillLibrary, registerSkillLibraryFromPath, removeConfig, removeInjection, removeMcpFromLock, removeMcpServer, removeSkill, removeSkillFromLock, resetDetectionCache, resolveAlias, resolveChannelFromServerName, resolveCleoServerName, resolveConfigPath, resolveRegistryTemplatePath, saveLastSelectedAgents, scanDirectory, scanFile, scoreSkillRecommendation, searchSkills, selectProvidersByMinimumPriority, setQuiet, setVerbose, toSarif, tokenizeCriteriaValue, updateInstructionsSingleOperation, validateRecommendationCriteria, validateSkill, writeConfig };
2770
+ export { type AuditFinding, type AuditResult, type AuditRule, type AuditSeverity, type BatchInstallOptions, type BatchInstallResult, type CaampLockFile, type CleoChannel, type CleoProfileBuildResult, type ConfigFormat, type ConflictPolicy, type CtDispatchMatrix, type CtManifest, type CtManifestSkill, type CtProfileDefinition, type CtSkillEntry, type CtValidationIssue, type CtValidationResult, type DetectionCacheOptions, type DetectionResult, type DualScopeConfigureOptions, type DualScopeConfigureResult, type GlobalOptions, type InferredLockData, type InjectionCheckResult, type InjectionStatus, type InjectionTemplate, type InstallResult, type InstructionUpdateSummary, type LockEntry, MarketplaceClient, type MarketplaceResult, type MarketplaceSearchResult, type MarketplaceSkill, type McpBatchOperation, type McpConflict, type McpConflictCode, type McpPlanApplyResult, type McpServerConfig, type McpServerEntry, type NormalizedRecommendationCriteria, type ParsedSource, type Provider, type ProviderPriority, type ProviderStatus, RECOMMENDATION_ERROR_CODES, type RankedSkillRecommendation, type RecommendSkillsResult, type RecommendationCriteriaInput, type RecommendationErrorCode, type RecommendationOptions, type RecommendationReason, type RecommendationReasonCode, type RecommendationScoreBreakdown, type RecommendationValidationIssue, type RecommendationValidationResult, type RecommendationWeights, type ReconcileOptions, type ReconcileResult, type SkillBatchOperation, type SkillEntry, type SkillInstallResult, type SkillLibrary, type SkillLibraryDispatchMatrix, type SkillLibraryEntry, type SkillLibraryManifest, type SkillLibraryManifestSkill, type SkillLibraryProfile, type SkillLibraryValidationIssue, type SkillLibraryValidationResult, type SkillMetadata, type SourceType, type TransportType, type ValidationIssue, type ValidationResult, applyMcpInstallWithPolicy, buildCleoProfile, buildInjectionContent, buildLibraryFromFiles, buildServerConfig, catalog, checkAllInjections, checkAllSkillUpdates, checkCommandReachability, checkInjection, checkSkillUpdate, clearRegisteredLibrary, configureProviderGlobalAndProject, deepMerge, detectAllProviders, detectMcpConfigConflicts, detectProjectProviders, detectProvider, discoverSkill, discoverSkills, ensureDir, extractVersionTag, formatSkillRecommendations, generateInjectionContent, generateSkillsSection, getAgentsConfigPath, getAgentsHome, getAgentsInstructFile, getAgentsLinksDir, getAgentsMcpDir, getAgentsMcpServersPath, getAgentsSpecDir, getAgentsWikiDir, getAllProviders, getCanonicalSkillsDir, getInstalledProviders, getInstructionFiles, getLastSelectedAgents, getLockFilePath, getNestedValue, getPlatformLocations, getProjectAgentsDir, getProvider, getProviderCount, getProvidersByInstructFile, getProvidersByPriority, getProvidersByStatus, getRegistryVersion, getTrackedMcpServers, getTrackedSkills, getTransform, groupByInstructFile, inferCleoLockData, inject, injectAll, installBatchWithRollback, installMcpServer, installMcpServerToAll, installSkill, isCleoSource, isMarketplaceScoped, isQuiet, isVerbose, listAgentsMcpServers, listAllMcpServers, listCanonicalSkills, listMcpServers, loadLibraryFromModule, normalizeCleoChannel, normalizeRecommendationCriteria, parseEnvAssignments, parseInjectionContent, parseSkillFile, parseSource, rankSkills, readConfig, readLockFile, recommendSkills, reconcileCleoLock, recordMcpInstall, recordSkillInstall, registerSkillLibrary, registerSkillLibraryFromPath, removeConfig, removeInjection, removeMcpFromLock, removeMcpServer, removeSkill, removeSkillFromLock, resetDetectionCache, resolveAlias, resolveChannelFromServerName, resolveCleoServerName, resolveConfigPath, resolveRegistryTemplatePath, saveLastSelectedAgents, scanDirectory, scanFile, scoreSkillRecommendation, searchSkills, selectProvidersByMinimumPriority, setQuiet, setVerbose, toSarif, tokenizeCriteriaValue, updateInstructionsSingleOperation, validateRecommendationCriteria, validateSkill, writeConfig };
package/dist/index.js CHANGED
@@ -53,6 +53,7 @@ import {
53
53
  getTrackedSkills,
54
54
  getTransform,
55
55
  groupByInstructFile,
56
+ inferCleoLockData,
56
57
  inject,
57
58
  injectAll,
58
59
  installBatchWithRollback,
@@ -78,6 +79,7 @@ import {
78
79
  readConfig,
79
80
  readLockFile,
80
81
  recommendSkills,
82
+ reconcileCleoLock,
81
83
  recordMcpInstall,
82
84
  recordSkillInstall,
83
85
  registerSkillLibrary,
@@ -108,7 +110,7 @@ import {
108
110
  validateRecommendationCriteria,
109
111
  validateSkill,
110
112
  writeConfig
111
- } from "./chunk-QZOOTKAJ.js";
113
+ } from "./chunk-ZEXRZTQX.js";
112
114
  export {
113
115
  MarketplaceClient,
114
116
  RECOMMENDATION_ERROR_CODES,
@@ -164,6 +166,7 @@ export {
164
166
  getTrackedSkills,
165
167
  getTransform,
166
168
  groupByInstructFile,
169
+ inferCleoLockData,
167
170
  inject,
168
171
  injectAll,
169
172
  installBatchWithRollback,
@@ -189,6 +192,7 @@ export {
189
192
  readConfig,
190
193
  readLockFile,
191
194
  recommendSkills,
195
+ reconcileCleoLock,
192
196
  recordMcpInstall,
193
197
  recordSkillInstall,
194
198
  registerSkillLibrary,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleocode/caamp",
3
- "version": "1.4.0",
3
+ "version": "1.5.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": {