@cleocode/caamp 1.3.1 → 1.5.0
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-DT22SZ7X.js → chunk-G7UPJOYG.js} +271 -120
- package/dist/chunk-G7UPJOYG.js.map +1 -0
- package/dist/cli.js +302 -27
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +56 -2
- package/dist/index.js +7 -1
- package/package.json +1 -1
- package/dist/chunk-DT22SZ7X.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1972,6 +1972,7 @@ declare function resolveChannelFromServerName(serverName: string): CleoChannel |
|
|
|
1972
1972
|
declare function buildCleoProfile(options: CleoProfileBuildOptions): CleoProfileBuildResult;
|
|
1973
1973
|
declare function checkCommandReachability(command: string): CommandReachability;
|
|
1974
1974
|
declare function parseEnvAssignments(values: string[]): Record<string, string>;
|
|
1975
|
+
declare function extractVersionTag(packageSpec?: string): string | undefined;
|
|
1975
1976
|
declare function isCleoSource(source: string): boolean;
|
|
1976
1977
|
|
|
1977
1978
|
/**
|
|
@@ -2127,7 +2128,7 @@ declare function readLockFile(): Promise<CaampLockFile>;
|
|
|
2127
2128
|
* await recordMcpInstall("filesystem", "@mcp/server-fs", "package", ["claude-code"], true);
|
|
2128
2129
|
* ```
|
|
2129
2130
|
*/
|
|
2130
|
-
declare function recordMcpInstall(serverName: string, source: string, sourceType: SourceType, agents: string[], isGlobal: boolean): Promise<void>;
|
|
2131
|
+
declare function recordMcpInstall(serverName: string, source: string, sourceType: SourceType, agents: string[], isGlobal: boolean, version?: string): Promise<void>;
|
|
2131
2132
|
/**
|
|
2132
2133
|
* Remove an MCP server entry from the lock file.
|
|
2133
2134
|
*
|
|
@@ -2180,6 +2181,59 @@ declare function saveLastSelectedAgents(agents: string[]): Promise<void>;
|
|
|
2180
2181
|
*/
|
|
2181
2182
|
declare function getLastSelectedAgents(): Promise<string[] | undefined>;
|
|
2182
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
|
+
|
|
2183
2237
|
/**
|
|
2184
2238
|
* Skills lock file management
|
|
2185
2239
|
*
|
|
@@ -2713,4 +2767,4 @@ declare function isVerbose(): boolean;
|
|
|
2713
2767
|
*/
|
|
2714
2768
|
declare function isQuiet(): boolean;
|
|
2715
2769
|
|
|
2716
|
-
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, 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
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
discoverSkill,
|
|
23
23
|
discoverSkills,
|
|
24
24
|
ensureDir,
|
|
25
|
+
extractVersionTag,
|
|
25
26
|
formatSkillRecommendations,
|
|
26
27
|
generateInjectionContent,
|
|
27
28
|
generateSkillsSection,
|
|
@@ -52,6 +53,7 @@ import {
|
|
|
52
53
|
getTrackedSkills,
|
|
53
54
|
getTransform,
|
|
54
55
|
groupByInstructFile,
|
|
56
|
+
inferCleoLockData,
|
|
55
57
|
inject,
|
|
56
58
|
injectAll,
|
|
57
59
|
installBatchWithRollback,
|
|
@@ -77,6 +79,7 @@ import {
|
|
|
77
79
|
readConfig,
|
|
78
80
|
readLockFile,
|
|
79
81
|
recommendSkills,
|
|
82
|
+
reconcileCleoLock,
|
|
80
83
|
recordMcpInstall,
|
|
81
84
|
recordSkillInstall,
|
|
82
85
|
registerSkillLibrary,
|
|
@@ -107,7 +110,7 @@ import {
|
|
|
107
110
|
validateRecommendationCriteria,
|
|
108
111
|
validateSkill,
|
|
109
112
|
writeConfig
|
|
110
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-G7UPJOYG.js";
|
|
111
114
|
export {
|
|
112
115
|
MarketplaceClient,
|
|
113
116
|
RECOMMENDATION_ERROR_CODES,
|
|
@@ -132,6 +135,7 @@ export {
|
|
|
132
135
|
discoverSkill,
|
|
133
136
|
discoverSkills,
|
|
134
137
|
ensureDir,
|
|
138
|
+
extractVersionTag,
|
|
135
139
|
formatSkillRecommendations,
|
|
136
140
|
generateInjectionContent,
|
|
137
141
|
generateSkillsSection,
|
|
@@ -162,6 +166,7 @@ export {
|
|
|
162
166
|
getTrackedSkills,
|
|
163
167
|
getTransform,
|
|
164
168
|
groupByInstructFile,
|
|
169
|
+
inferCleoLockData,
|
|
165
170
|
inject,
|
|
166
171
|
injectAll,
|
|
167
172
|
installBatchWithRollback,
|
|
@@ -187,6 +192,7 @@ export {
|
|
|
187
192
|
readConfig,
|
|
188
193
|
readLockFile,
|
|
189
194
|
recommendSkills,
|
|
195
|
+
reconcileCleoLock,
|
|
190
196
|
recordMcpInstall,
|
|
191
197
|
recordSkillInstall,
|
|
192
198
|
registerSkillLibrary,
|