@cleocode/caamp 1.2.1 → 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/{chunk-GR47LTXR.js → chunk-O2YG5HT7.js} +162 -26
- package/dist/chunk-O2YG5HT7.js.map +1 -0
- package/dist/cli.js +39 -141
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +33 -1
- package/dist/index.js +15 -1
- package/package.json +1 -1
- package/dist/chunk-GR47LTXR.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1942,6 +1942,38 @@ declare function scanDirectory(dirPath: string): Promise<AuditResult[]>;
|
|
|
1942
1942
|
*/
|
|
1943
1943
|
declare function toSarif(results: AuditResult[]): object;
|
|
1944
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
|
+
|
|
1945
1977
|
/**
|
|
1946
1978
|
* Per-agent MCP config transformations
|
|
1947
1979
|
*
|
|
@@ -2681,4 +2713,4 @@ declare function isVerbose(): boolean;
|
|
|
2681
2713
|
*/
|
|
2682
2714
|
declare function isQuiet(): boolean;
|
|
2683
2715
|
|
|
2684
|
-
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, checkAllSkillUpdates, 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,12 +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,
|
|
10
11
|
checkAllSkillUpdates,
|
|
12
|
+
checkCommandReachability,
|
|
11
13
|
checkInjection,
|
|
12
14
|
checkSkillUpdate,
|
|
13
15
|
clearRegisteredLibrary,
|
|
@@ -56,6 +58,7 @@ import {
|
|
|
56
58
|
installMcpServer,
|
|
57
59
|
installMcpServerToAll,
|
|
58
60
|
installSkill,
|
|
61
|
+
isCleoSource,
|
|
59
62
|
isMarketplaceScoped,
|
|
60
63
|
isQuiet,
|
|
61
64
|
isVerbose,
|
|
@@ -64,7 +67,9 @@ import {
|
|
|
64
67
|
listCanonicalSkills,
|
|
65
68
|
listMcpServers,
|
|
66
69
|
loadLibraryFromModule,
|
|
70
|
+
normalizeCleoChannel,
|
|
67
71
|
normalizeRecommendationCriteria,
|
|
72
|
+
parseEnvAssignments,
|
|
68
73
|
parseInjectionContent,
|
|
69
74
|
parseSkillFile,
|
|
70
75
|
parseSource,
|
|
@@ -84,6 +89,8 @@ import {
|
|
|
84
89
|
removeSkillFromLock,
|
|
85
90
|
resetDetectionCache,
|
|
86
91
|
resolveAlias,
|
|
92
|
+
resolveChannelFromServerName,
|
|
93
|
+
resolveCleoServerName,
|
|
87
94
|
resolveConfigPath,
|
|
88
95
|
resolveRegistryTemplatePath,
|
|
89
96
|
saveLastSelectedAgents,
|
|
@@ -100,17 +107,19 @@ import {
|
|
|
100
107
|
validateRecommendationCriteria,
|
|
101
108
|
validateSkill,
|
|
102
109
|
writeConfig
|
|
103
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-O2YG5HT7.js";
|
|
104
111
|
export {
|
|
105
112
|
MarketplaceClient,
|
|
106
113
|
RECOMMENDATION_ERROR_CODES,
|
|
107
114
|
applyMcpInstallWithPolicy,
|
|
115
|
+
buildCleoProfile,
|
|
108
116
|
buildInjectionContent,
|
|
109
117
|
buildLibraryFromFiles,
|
|
110
118
|
buildServerConfig,
|
|
111
119
|
catalog_exports as catalog,
|
|
112
120
|
checkAllInjections,
|
|
113
121
|
checkAllSkillUpdates,
|
|
122
|
+
checkCommandReachability,
|
|
114
123
|
checkInjection,
|
|
115
124
|
checkSkillUpdate,
|
|
116
125
|
clearRegisteredLibrary,
|
|
@@ -159,6 +168,7 @@ export {
|
|
|
159
168
|
installMcpServer,
|
|
160
169
|
installMcpServerToAll,
|
|
161
170
|
installSkill,
|
|
171
|
+
isCleoSource,
|
|
162
172
|
isMarketplaceScoped,
|
|
163
173
|
isQuiet,
|
|
164
174
|
isVerbose,
|
|
@@ -167,7 +177,9 @@ export {
|
|
|
167
177
|
listCanonicalSkills,
|
|
168
178
|
listMcpServers,
|
|
169
179
|
loadLibraryFromModule,
|
|
180
|
+
normalizeCleoChannel,
|
|
170
181
|
normalizeRecommendationCriteria,
|
|
182
|
+
parseEnvAssignments,
|
|
171
183
|
parseInjectionContent,
|
|
172
184
|
parseSkillFile,
|
|
173
185
|
parseSource,
|
|
@@ -187,6 +199,8 @@ export {
|
|
|
187
199
|
removeSkillFromLock,
|
|
188
200
|
resetDetectionCache,
|
|
189
201
|
resolveAlias,
|
|
202
|
+
resolveChannelFromServerName,
|
|
203
|
+
resolveCleoServerName,
|
|
190
204
|
resolveConfigPath,
|
|
191
205
|
resolveRegistryTemplatePath,
|
|
192
206
|
saveLastSelectedAgents,
|