@cleocode/caamp 1.1.3 → 1.3.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/index.d.ts CHANGED
@@ -1651,10 +1651,9 @@ declare function isMarketplaceScoped(input: string): boolean;
1651
1651
  /**
1652
1652
  * Skill catalog - registry pattern for pluggable skill libraries.
1653
1653
  *
1654
- * Projects register their skill library via registerSkillLibrary() or
1655
- * registerSkillLibraryFromPath(). If no library is registered, CAAMP
1656
- * attempts auto-discovery via CAAMP_SKILL_LIBRARY env var or the
1657
- * canonical ~/.agents/skill-library/ location.
1654
+ * Projects MUST register their skill library via registerSkillLibrary() or
1655
+ * registerSkillLibraryFromPath(). CAAMP no longer auto-discovers from
1656
+ * ~/.agents/skill-library/ - explicit registration is required.
1658
1657
  *
1659
1658
  * All public functions delegate to the registered SkillLibrary instance.
1660
1659
  */
@@ -1943,6 +1942,38 @@ declare function scanDirectory(dirPath: string): Promise<AuditResult[]>;
1943
1942
  */
1944
1943
  declare function toSarif(results: AuditResult[]): object;
1945
1944
 
1945
+ /**
1946
+ * CLEO MCP channel profile helpers.
1947
+ */
1948
+
1949
+ type CleoChannel = "stable" | "beta" | "dev";
1950
+ interface CleoProfileBuildOptions {
1951
+ channel: CleoChannel;
1952
+ version?: string;
1953
+ command?: string;
1954
+ args?: string[];
1955
+ env?: Record<string, string>;
1956
+ cleoDir?: string;
1957
+ }
1958
+ interface CleoProfileBuildResult {
1959
+ channel: CleoChannel;
1960
+ serverName: string;
1961
+ config: McpServerConfig;
1962
+ packageSpec?: string;
1963
+ }
1964
+ interface CommandReachability {
1965
+ reachable: boolean;
1966
+ method: "path" | "lookup";
1967
+ detail: string;
1968
+ }
1969
+ declare function normalizeCleoChannel(value?: string): CleoChannel;
1970
+ declare function resolveCleoServerName(channel: CleoChannel): string;
1971
+ declare function resolveChannelFromServerName(serverName: string): CleoChannel | null;
1972
+ declare function buildCleoProfile(options: CleoProfileBuildOptions): CleoProfileBuildResult;
1973
+ declare function checkCommandReachability(command: string): CommandReachability;
1974
+ declare function parseEnvAssignments(values: string[]): Record<string, string>;
1975
+ declare function isCleoSource(source: string): boolean;
1976
+
1946
1977
  /**
1947
1978
  * Per-agent MCP config transformations
1948
1979
  *
@@ -2213,7 +2244,7 @@ declare function getTrackedSkills(): Promise<Record<string, LockEntry>>;
2213
2244
  * Check if a skill has updates available by comparing the installed version
2214
2245
  * against the latest remote commit SHA.
2215
2246
  *
2216
- * Only supports GitHub and GitLab sources. Returns `"unknown"` for local,
2247
+ * Only supports GitHub, GitLab, and library (package-based) sources. Returns `"unknown"` for local,
2217
2248
  * package, or other source types.
2218
2249
  *
2219
2250
  * @param skillName - Name of the installed skill to check
@@ -2233,6 +2264,17 @@ declare function checkSkillUpdate(skillName: string): Promise<{
2233
2264
  latestVersion?: string;
2234
2265
  status: "up-to-date" | "update-available" | "unknown";
2235
2266
  }>;
2267
+ /**
2268
+ * Check for updates across all tracked skills.
2269
+ *
2270
+ * @returns Object mapping skill names to their update status
2271
+ */
2272
+ declare function checkAllSkillUpdates(): Promise<Record<string, {
2273
+ hasUpdate: boolean;
2274
+ currentVersion?: string;
2275
+ latestVersion?: string;
2276
+ status: "up-to-date" | "update-available" | "unknown";
2277
+ }>>;
2236
2278
 
2237
2279
  /**
2238
2280
  * Unified marketplace client
@@ -2671,4 +2713,4 @@ declare function isVerbose(): boolean;
2671
2713
  */
2672
2714
  declare function isQuiet(): boolean;
2673
2715
 
2674
- export { type AuditFinding, type AuditResult, type AuditRule, type AuditSeverity, type BatchInstallOptions, type BatchInstallResult, type CaampLockFile, 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, buildInjectionContent, buildLibraryFromFiles, buildServerConfig, catalog, checkAllInjections, 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, isMarketplaceScoped, isQuiet, isVerbose, listAgentsMcpServers, listAllMcpServers, listCanonicalSkills, listMcpServers, loadLibraryFromModule, normalizeRecommendationCriteria, parseInjectionContent, parseSkillFile, parseSource, rankSkills, readConfig, readLockFile, recommendSkills, recordMcpInstall, recordSkillInstall, registerSkillLibrary, registerSkillLibraryFromPath, removeConfig, removeInjection, removeMcpFromLock, removeMcpServer, removeSkill, removeSkillFromLock, resetDetectionCache, resolveAlias, resolveConfigPath, resolveRegistryTemplatePath, saveLastSelectedAgents, scanDirectory, scanFile, scoreSkillRecommendation, searchSkills, selectProvidersByMinimumPriority, setQuiet, setVerbose, toSarif, tokenizeCriteriaValue, updateInstructionsSingleOperation, validateRecommendationCriteria, validateSkill, writeConfig };
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 };
package/dist/index.js CHANGED
@@ -2,11 +2,14 @@ import {
2
2
  MarketplaceClient,
3
3
  RECOMMENDATION_ERROR_CODES,
4
4
  applyMcpInstallWithPolicy,
5
+ buildCleoProfile,
5
6
  buildInjectionContent,
6
7
  buildLibraryFromFiles,
7
8
  buildServerConfig,
8
9
  catalog_exports,
9
10
  checkAllInjections,
11
+ checkAllSkillUpdates,
12
+ checkCommandReachability,
10
13
  checkInjection,
11
14
  checkSkillUpdate,
12
15
  clearRegisteredLibrary,
@@ -55,6 +58,7 @@ import {
55
58
  installMcpServer,
56
59
  installMcpServerToAll,
57
60
  installSkill,
61
+ isCleoSource,
58
62
  isMarketplaceScoped,
59
63
  isQuiet,
60
64
  isVerbose,
@@ -63,7 +67,9 @@ import {
63
67
  listCanonicalSkills,
64
68
  listMcpServers,
65
69
  loadLibraryFromModule,
70
+ normalizeCleoChannel,
66
71
  normalizeRecommendationCriteria,
72
+ parseEnvAssignments,
67
73
  parseInjectionContent,
68
74
  parseSkillFile,
69
75
  parseSource,
@@ -83,6 +89,8 @@ import {
83
89
  removeSkillFromLock,
84
90
  resetDetectionCache,
85
91
  resolveAlias,
92
+ resolveChannelFromServerName,
93
+ resolveCleoServerName,
86
94
  resolveConfigPath,
87
95
  resolveRegistryTemplatePath,
88
96
  saveLastSelectedAgents,
@@ -99,16 +107,19 @@ import {
99
107
  validateRecommendationCriteria,
100
108
  validateSkill,
101
109
  writeConfig
102
- } from "./chunk-7YV3KXEJ.js";
110
+ } from "./chunk-O2YG5HT7.js";
103
111
  export {
104
112
  MarketplaceClient,
105
113
  RECOMMENDATION_ERROR_CODES,
106
114
  applyMcpInstallWithPolicy,
115
+ buildCleoProfile,
107
116
  buildInjectionContent,
108
117
  buildLibraryFromFiles,
109
118
  buildServerConfig,
110
119
  catalog_exports as catalog,
111
120
  checkAllInjections,
121
+ checkAllSkillUpdates,
122
+ checkCommandReachability,
112
123
  checkInjection,
113
124
  checkSkillUpdate,
114
125
  clearRegisteredLibrary,
@@ -157,6 +168,7 @@ export {
157
168
  installMcpServer,
158
169
  installMcpServerToAll,
159
170
  installSkill,
171
+ isCleoSource,
160
172
  isMarketplaceScoped,
161
173
  isQuiet,
162
174
  isVerbose,
@@ -165,7 +177,9 @@ export {
165
177
  listCanonicalSkills,
166
178
  listMcpServers,
167
179
  loadLibraryFromModule,
180
+ normalizeCleoChannel,
168
181
  normalizeRecommendationCriteria,
182
+ parseEnvAssignments,
169
183
  parseInjectionContent,
170
184
  parseSkillFile,
171
185
  parseSource,
@@ -185,6 +199,8 @@ export {
185
199
  removeSkillFromLock,
186
200
  resetDetectionCache,
187
201
  resolveAlias,
202
+ resolveChannelFromServerName,
203
+ resolveCleoServerName,
188
204
  resolveConfigPath,
189
205
  resolveRegistryTemplatePath,
190
206
  saveLastSelectedAgents,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleocode/caamp",
3
- "version": "1.1.3",
3
+ "version": "1.3.0",
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": {