@cleocode/caamp 1.6.0 → 1.7.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-N5E7BZM2.js → chunk-M6KHYT2D.js} +147 -108
- package/dist/chunk-M6KHYT2D.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +56 -1
- package/dist/index.js +7 -1
- package/package.json +2 -1
- package/providers/registry.json +35 -1
- package/dist/chunk-N5E7BZM2.js.map +0 -1
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1824,6 +1824,61 @@ declare function getProviderCapabilities(idOrAlias: string): ProviderCapabilitie
|
|
|
1824
1824
|
*/
|
|
1825
1825
|
declare function providerSupportsById(idOrAlias: string, capabilityPath: string): boolean;
|
|
1826
1826
|
|
|
1827
|
+
/**
|
|
1828
|
+
* Central OS platform path resolution using env-paths.
|
|
1829
|
+
*
|
|
1830
|
+
* Provides OS-appropriate paths for CAAMP's global directories using
|
|
1831
|
+
* XDG conventions on Linux, standard conventions on macOS/Windows.
|
|
1832
|
+
* Results are cached for the process lifetime. Env vars take precedence.
|
|
1833
|
+
*
|
|
1834
|
+
* Platform path defaults:
|
|
1835
|
+
* data: ~/.local/share/agents | ~/Library/Application Support/agents | %LOCALAPPDATA%\agents\Data
|
|
1836
|
+
* config: ~/.config/agents | ~/Library/Preferences/agents | %APPDATA%\agents\Config
|
|
1837
|
+
* cache: ~/.cache/agents | ~/Library/Caches/agents | %LOCALAPPDATA%\agents\Cache
|
|
1838
|
+
* log: ~/.local/state/agents | ~/Library/Logs/agents | %LOCALAPPDATA%\agents\Log
|
|
1839
|
+
* temp: /tmp/<user>/agents | /var/folders/.../agents | %TEMP%\agents
|
|
1840
|
+
*
|
|
1841
|
+
* AGENTS_HOME env var overrides the data path for backward compatibility
|
|
1842
|
+
* with existing ~/.agents installations.
|
|
1843
|
+
*/
|
|
1844
|
+
interface PlatformPaths {
|
|
1845
|
+
/** User data dir. Override with AGENTS_HOME env var. */
|
|
1846
|
+
data: string;
|
|
1847
|
+
/** OS config dir (XDG_CONFIG_HOME / Library/Preferences / %APPDATA%). */
|
|
1848
|
+
config: string;
|
|
1849
|
+
/** OS cache dir. */
|
|
1850
|
+
cache: string;
|
|
1851
|
+
/** OS log dir. */
|
|
1852
|
+
log: string;
|
|
1853
|
+
/** OS temp dir. */
|
|
1854
|
+
temp: string;
|
|
1855
|
+
}
|
|
1856
|
+
interface SystemInfo {
|
|
1857
|
+
platform: NodeJS.Platform;
|
|
1858
|
+
arch: string;
|
|
1859
|
+
release: string;
|
|
1860
|
+
hostname: string;
|
|
1861
|
+
nodeVersion: string;
|
|
1862
|
+
paths: PlatformPaths;
|
|
1863
|
+
}
|
|
1864
|
+
/**
|
|
1865
|
+
* Get OS-appropriate paths for CAAMP's global directories.
|
|
1866
|
+
* Cached after first call. AGENTS_HOME env var overrides the data path.
|
|
1867
|
+
* Cache auto-invalidates when AGENTS_HOME changes (supports test isolation).
|
|
1868
|
+
*/
|
|
1869
|
+
declare function getPlatformPaths(): PlatformPaths;
|
|
1870
|
+
/**
|
|
1871
|
+
* Get a cached system information snapshot.
|
|
1872
|
+
* Captured once and reused for the process lifetime.
|
|
1873
|
+
*/
|
|
1874
|
+
declare function getSystemInfo(): SystemInfo;
|
|
1875
|
+
/**
|
|
1876
|
+
* Invalidate the path and system info caches.
|
|
1877
|
+
* Use in tests after mutating AGENTS_HOME env var.
|
|
1878
|
+
* @internal
|
|
1879
|
+
*/
|
|
1880
|
+
declare function _resetPlatformPathsCache(): void;
|
|
1881
|
+
|
|
1827
1882
|
/**
|
|
1828
1883
|
* Source URL/path classifier
|
|
1829
1884
|
*
|
|
@@ -2988,4 +3043,4 @@ declare function isVerbose(): boolean;
|
|
|
2988
3043
|
*/
|
|
2989
3044
|
declare function isQuiet(): boolean;
|
|
2990
3045
|
|
|
2991
|
-
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 HookEvent, 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 ProviderCapabilities, type ProviderHooksCapability, type ProviderPriority, type ProviderSkillsCapability, type ProviderSpawnCapability, 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 SkillsPrecedence, type SourceType, type SpawnAdapter, type SpawnMechanism, type SpawnOptions, type SpawnResult, type TransportType, type ValidationIssue, type ValidationResult, applyMcpInstallWithPolicy, buildCleoProfile, buildInjectionContent, buildLibraryFromFiles, buildServerConfig, buildSkillsMap, 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, getCommonHookEvents, getEffectiveSkillsPaths, getInstalledProviders, getInstructionFiles, getLastSelectedAgents, getLockFilePath, getNestedValue, getPlatformLocations, getProjectAgentsDir, getProvider, getProviderCapabilities, getProviderCount, getProvidersByHookEvent, getProvidersByInstructFile, getProvidersByPriority, getProvidersBySkillsPrecedence, getProvidersBySpawnCapability, getProvidersByStatus, getRegistryVersion, getSpawnCapableProviders, 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, providerSupports, providerSupportsById, rankSkills, readConfig, readLockFile, recommendSkills, reconcileCleoLock, recordMcpInstall, recordSkillInstall, registerSkillLibrary, registerSkillLibraryFromPath, removeConfig, removeInjection, removeMcpFromLock, removeMcpServer, removeSkill, removeSkillFromLock, resetDetectionCache, resolveAlias, resolveChannelFromServerName, resolveCleoServerName, resolveConfigPath, resolveProviderSkillsDirs, resolveRegistryTemplatePath, saveLastSelectedAgents, scanDirectory, scanFile, scoreSkillRecommendation, searchSkills, selectProvidersByMinimumPriority, setQuiet, setVerbose, toSarif, tokenizeCriteriaValue, updateInstructionsSingleOperation, validateRecommendationCriteria, validateSkill, writeConfig };
|
|
3046
|
+
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 HookEvent, 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 PlatformPaths, type Provider, type ProviderCapabilities, type ProviderHooksCapability, type ProviderPriority, type ProviderSkillsCapability, type ProviderSpawnCapability, 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 SkillsPrecedence, type SourceType, type SpawnAdapter, type SpawnMechanism, type SpawnOptions, type SpawnResult, type SystemInfo, type TransportType, type ValidationIssue, type ValidationResult, _resetPlatformPathsCache, applyMcpInstallWithPolicy, buildCleoProfile, buildInjectionContent, buildLibraryFromFiles, buildServerConfig, buildSkillsMap, 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, getCommonHookEvents, getEffectiveSkillsPaths, getInstalledProviders, getInstructionFiles, getLastSelectedAgents, getLockFilePath, getNestedValue, getPlatformLocations, getPlatformPaths, getProjectAgentsDir, getProvider, getProviderCapabilities, getProviderCount, getProvidersByHookEvent, getProvidersByInstructFile, getProvidersByPriority, getProvidersBySkillsPrecedence, getProvidersBySpawnCapability, getProvidersByStatus, getRegistryVersion, getSpawnCapableProviders, getSystemInfo, 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, providerSupports, providerSupportsById, rankSkills, readConfig, readLockFile, recommendSkills, reconcileCleoLock, recordMcpInstall, recordSkillInstall, registerSkillLibrary, registerSkillLibraryFromPath, removeConfig, removeInjection, removeMcpFromLock, removeMcpServer, removeSkill, removeSkillFromLock, resetDetectionCache, resolveAlias, resolveChannelFromServerName, resolveCleoServerName, resolveConfigPath, resolveProviderSkillsDirs, resolveRegistryTemplatePath, saveLastSelectedAgents, scanDirectory, scanFile, scoreSkillRecommendation, searchSkills, selectProvidersByMinimumPriority, setQuiet, setVerbose, toSarif, tokenizeCriteriaValue, updateInstructionsSingleOperation, validateRecommendationCriteria, validateSkill, writeConfig };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MarketplaceClient,
|
|
3
3
|
RECOMMENDATION_ERROR_CODES,
|
|
4
|
+
_resetPlatformPathsCache,
|
|
4
5
|
applyMcpInstallWithPolicy,
|
|
5
6
|
buildCleoProfile,
|
|
6
7
|
buildInjectionContent,
|
|
@@ -45,6 +46,7 @@ import {
|
|
|
45
46
|
getLockFilePath,
|
|
46
47
|
getNestedValue,
|
|
47
48
|
getPlatformLocations,
|
|
49
|
+
getPlatformPaths,
|
|
48
50
|
getProjectAgentsDir,
|
|
49
51
|
getProvider,
|
|
50
52
|
getProviderCapabilities,
|
|
@@ -57,6 +59,7 @@ import {
|
|
|
57
59
|
getProvidersByStatus,
|
|
58
60
|
getRegistryVersion,
|
|
59
61
|
getSpawnCapableProviders,
|
|
62
|
+
getSystemInfo,
|
|
60
63
|
getTrackedMcpServers,
|
|
61
64
|
getTrackedSkills,
|
|
62
65
|
getTransform,
|
|
@@ -121,10 +124,11 @@ import {
|
|
|
121
124
|
validateRecommendationCriteria,
|
|
122
125
|
validateSkill,
|
|
123
126
|
writeConfig
|
|
124
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-M6KHYT2D.js";
|
|
125
128
|
export {
|
|
126
129
|
MarketplaceClient,
|
|
127
130
|
RECOMMENDATION_ERROR_CODES,
|
|
131
|
+
_resetPlatformPathsCache,
|
|
128
132
|
applyMcpInstallWithPolicy,
|
|
129
133
|
buildCleoProfile,
|
|
130
134
|
buildInjectionContent,
|
|
@@ -169,6 +173,7 @@ export {
|
|
|
169
173
|
getLockFilePath,
|
|
170
174
|
getNestedValue,
|
|
171
175
|
getPlatformLocations,
|
|
176
|
+
getPlatformPaths,
|
|
172
177
|
getProjectAgentsDir,
|
|
173
178
|
getProvider,
|
|
174
179
|
getProviderCapabilities,
|
|
@@ -181,6 +186,7 @@ export {
|
|
|
181
186
|
getProvidersByStatus,
|
|
182
187
|
getRegistryVersion,
|
|
183
188
|
getSpawnCapableProviders,
|
|
189
|
+
getSystemInfo,
|
|
184
190
|
getTrackedMcpServers,
|
|
185
191
|
getTrackedSkills,
|
|
186
192
|
getTransform,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleocode/caamp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.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": {
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@cleocode/lafs-protocol": "^1.4.1",
|
|
61
61
|
"@iarna/toml": "^2.2.5",
|
|
62
62
|
"commander": "^14.0.0",
|
|
63
|
+
"env-paths": "^4.0.0",
|
|
63
64
|
"gray-matter": "^4.0.3",
|
|
64
65
|
"js-yaml": "^4.1.0",
|
|
65
66
|
"jsonc-parser": "^3.3.1",
|
package/providers/registry.json
CHANGED
|
@@ -132,6 +132,11 @@
|
|
|
132
132
|
"agentsGlobalPath": "$HOME/.agents/skills",
|
|
133
133
|
"agentsProjectPath": ".agents/skills"
|
|
134
134
|
},
|
|
135
|
+
"hooks": {
|
|
136
|
+
"supported": ["onToolStart", "onToolComplete", "onSessionStart", "onSessionEnd"],
|
|
137
|
+
"hookConfigPath": null,
|
|
138
|
+
"hookFormat": "json"
|
|
139
|
+
},
|
|
135
140
|
"spawn": {
|
|
136
141
|
"supportsSubagents": true,
|
|
137
142
|
"supportsProgrammaticSpawn": true,
|
|
@@ -172,6 +177,11 @@
|
|
|
172
177
|
"agentsGlobalPath": "$HOME/.agents/skills",
|
|
173
178
|
"agentsProjectPath": ".agents/skills"
|
|
174
179
|
},
|
|
180
|
+
"hooks": {
|
|
181
|
+
"supported": ["onSessionStart", "onSessionEnd", "onToolStart", "onToolComplete", "onPromptSubmit", "onResponseComplete"],
|
|
182
|
+
"hookConfigPath": "$HOME/.gemini/settings.json",
|
|
183
|
+
"hookFormat": "json"
|
|
184
|
+
},
|
|
175
185
|
"spawn": {
|
|
176
186
|
"supportsSubagents": true,
|
|
177
187
|
"supportsProgrammaticSpawn": true,
|
|
@@ -243,6 +253,11 @@
|
|
|
243
253
|
"agentsGlobalPath": "$HOME/.agents/skills",
|
|
244
254
|
"agentsProjectPath": ".agents/skills"
|
|
245
255
|
},
|
|
256
|
+
"hooks": {
|
|
257
|
+
"supported": ["onToolStart", "onToolComplete", "onSessionStart", "onSessionEnd", "onPromptSubmit", "onResponseComplete"],
|
|
258
|
+
"hookConfigPath": null,
|
|
259
|
+
"hookFormat": "json"
|
|
260
|
+
},
|
|
246
261
|
"spawn": {
|
|
247
262
|
"supportsSubagents": true,
|
|
248
263
|
"supportsProgrammaticSpawn": true,
|
|
@@ -301,7 +316,26 @@
|
|
|
301
316
|
"supportsHeaders": true,
|
|
302
317
|
"priority": "medium",
|
|
303
318
|
"status": "active",
|
|
304
|
-
"agentSkillsCompatible": true
|
|
319
|
+
"agentSkillsCompatible": true,
|
|
320
|
+
"capabilities": {
|
|
321
|
+
"skills": {
|
|
322
|
+
"precedence": "vendor-only",
|
|
323
|
+
"agentsGlobalPath": null,
|
|
324
|
+
"agentsProjectPath": null
|
|
325
|
+
},
|
|
326
|
+
"hooks": {
|
|
327
|
+
"supported": ["onToolStart", "onToolComplete", "onPromptSubmit", "onResponseComplete"],
|
|
328
|
+
"hookConfigPath": null,
|
|
329
|
+
"hookFormat": "json"
|
|
330
|
+
},
|
|
331
|
+
"spawn": {
|
|
332
|
+
"supportsSubagents": false,
|
|
333
|
+
"supportsProgrammaticSpawn": false,
|
|
334
|
+
"supportsInterAgentComms": false,
|
|
335
|
+
"supportsParallelSpawn": false,
|
|
336
|
+
"spawnMechanism": null
|
|
337
|
+
}
|
|
338
|
+
}
|
|
305
339
|
},
|
|
306
340
|
"vscode": {
|
|
307
341
|
"id": "vscode",
|