@deimoscloud/coreai 0.1.16 → 0.1.18

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
@@ -392,7 +392,7 @@ declare function resolveAgentDefinition(agent: AgentDefinition, config?: CoreAIC
392
392
  /**
393
393
  * Agent Compiler
394
394
  *
395
- * Processes agent Markdown templates with variable substitution.
395
+ * Processes agent Markdown templates with variable substitution and include directives.
396
396
  * For deprecated YAML agents, falls back to structural transformation.
397
397
  */
398
398
 
@@ -2330,7 +2330,7 @@ declare class StepTracker {
2330
2330
  /**
2331
2331
  * Skill category
2332
2332
  */
2333
- type SkillCategory = 'core' | 'optional' | 'custom';
2333
+ type SkillCategory = 'core' | 'custom';
2334
2334
  /**
2335
2335
  * Integration dependency for a skill
2336
2336
  */
@@ -2411,8 +2411,13 @@ interface GenerateSkillsOptions {
2411
2411
  */
2412
2412
  projectRoot?: string;
2413
2413
  /**
2414
- * Output directory for generated skills
2415
- * Default: .claude/commands
2414
+ * Path to core skills source directory.
2415
+ * Default: <package>/skills (bundled with CoreAI)
2416
+ */
2417
+ coreSkillsDir?: string;
2418
+ /**
2419
+ * Output directory for generated skills.
2420
+ * Default: .claude/skills
2416
2421
  */
2417
2422
  outputDir?: string;
2418
2423
  /**
@@ -2424,11 +2429,6 @@ interface GenerateSkillsOptions {
2424
2429
  * Default: true
2425
2430
  */
2426
2431
  includeCoreSkills?: boolean;
2427
- /**
2428
- * Whether to include optional skills based on integrations
2429
- * Default: true
2430
- */
2431
- includeOptionalSkills?: boolean;
2432
2432
  /**
2433
2433
  * Specific skills to generate (by name)
2434
2434
  * If not specified, generates all applicable skills
@@ -2436,7 +2436,7 @@ interface GenerateSkillsOptions {
2436
2436
  skills?: string[];
2437
2437
  /**
2438
2438
  * Whether to overwrite existing skills
2439
- * Default: false
2439
+ * Default: true
2440
2440
  */
2441
2441
  overwrite?: boolean;
2442
2442
  /**
@@ -2503,10 +2503,28 @@ interface GenerateSkillsResult {
2503
2503
  /**
2504
2504
  * Skill Generator
2505
2505
  *
2506
- * Generates Claude skills from templates based on project configuration.
2507
- * Skills are output to .claude/commands/ directory.
2506
+ * Discovers skill source files from skills/ directory and compiles them
2507
+ * to .claude/skills/<name>/SKILL.md format for Claude Code.
2508
+ *
2509
+ * Source: skills/<category>/<name>/SKILL.md (grouped by category)
2510
+ * Output: .claude/skills/<name>/SKILL.md (flat, one level deep)
2508
2511
  */
2509
2512
 
2513
+ /**
2514
+ * Get the default core skills directory (bundled with CoreAI package)
2515
+ */
2516
+ declare function getCoreSkillsDir(): string;
2517
+ /**
2518
+ * Discover skill source files from a skills directory.
2519
+ *
2520
+ * Scans skills/<category>/<name>/SKILL.md structure.
2521
+ * Each category directory (core, git, etc.) contains skill directories.
2522
+ */
2523
+ declare function discoverSkills(skillsDir: string): SkillTemplate[];
2524
+ /**
2525
+ * Parse a SKILL.md file into a SkillTemplate
2526
+ */
2527
+ declare function parseSkillFile(name: string, category: SkillCategory, content: string): SkillTemplate;
2510
2528
  /**
2511
2529
  * Extract variables from config for template substitution
2512
2530
  */
@@ -2523,11 +2541,10 @@ declare function checkDependencies(skill: SkillTemplate, config?: ResolvedCoreAI
2523
2541
  missing: SkillDependency[];
2524
2542
  };
2525
2543
  /**
2526
- * Load custom skill templates from a directory
2527
- */
2528
- declare function loadCustomTemplates(templatesDir: string): SkillTemplate[];
2529
- /**
2530
- * Generate skills from templates
2544
+ * Generate skills from source files to Claude Code output format.
2545
+ *
2546
+ * Discovers skills from skills/<category>/<name>/SKILL.md and writes
2547
+ * compiled output to .claude/skills/<name>/SKILL.md (flattened).
2531
2548
  */
2532
2549
  declare function generateSkills(config: ResolvedCoreAIConfig | undefined, options?: GenerateSkillsOptions): GenerateSkillsResult;
2533
2550
  /**
@@ -2535,18 +2552,6 @@ declare function generateSkills(config: ResolvedCoreAIConfig | undefined, option
2535
2552
  */
2536
2553
  declare function formatGenerateResult(result: GenerateSkillsResult): string;
2537
2554
 
2538
- /**
2539
- * Built-in Skill Templates
2540
- *
2541
- * Core skill templates that are included with CoreAI.
2542
- * These templates use {{VARIABLE}} placeholders for substitution.
2543
- */
2544
-
2545
- /**
2546
- * All built-in skill templates
2547
- */
2548
- declare const builtInSkills: SkillTemplate[];
2549
-
2550
2555
  /**
2551
2556
  * KnowledgeLibrary Types
2552
2557
  *
@@ -3024,4 +3029,4 @@ declare function formatAgentKnowledgeState(state: AgentKnowledgeState): string;
3024
3029
  */
3025
3030
  declare const VERSION: string;
3026
3031
 
3027
- export { AGENT_DIRECTORIES, type Adapter, AdapterError, type AdapterErrorCode, AdapterFactory, type AdapterFactoryOptions, type AdapterImplementation, type AdapterInfo, type AdapterType, type AgentContext, type AgentControl, type AgentDefinition, type AgentDirectories, AgentError, type AgentErrorCode, type AgentKnowledgeState, type AgentMetadata, type AgentSource, type AgentType, type BaseAdapter, type BaseCommandOptions, CACHE_PATHS, CONTROL_FILES, type CacheConfig, type CacheEntry, CacheError, type CacheErrorCode, type CacheListOptions, type CacheManager$1 as CacheManager, type CacheManagerOptions, type CacheMetadata, type CacheOptions, type CacheProvider, type CacheSource, type CacheStats, type CacheStatus, type CommandArgumentDefinition, type CommandCategory, type CommandContext, type CommandDefinition, type CommandHandler, type CommandLoadResult, type CommandLoaderOptions, type CommandMetadata, type CommandOptionDefinition, CommandRegistry, type CommandResult, type CompileOptions, type CompileResult, ConfigError, type ConfigErrorCode, type ContextLoadResult, ContextLoader, type ContextLoaderOptions, type ContextSource, type CoreAIConfig, type CreateContextOptions, type CreateIssueData, type CreatePullRequestData, type CreateReviewData, DEFAULT_CACHE_CONFIG, DEFAULT_KNOWLEDGE_LIBRARY_PATH, type Decision, type Dependency, type DocumentationPage, type DocumentationProviderAdapter, type DocumentationQuery, type FetchOptions, CacheManager as FileCacheManager, FileCacheProvider, type FileCacheProviderOptions, type GenerateSkillsOptions, type GenerateSkillsResult, type GeneratedSkill, type GitProviderAdapter, type InitKnowledgeLibraryOptions, type InitKnowledgeLibraryResult, type IntegrationDependency, type IntegrationsConfig, type Issue, type IssueQuery, type IssueStatus, type IssueTrackerAdapter, type KnowledgeLibraryState, type LoadOptions, type MarkdownCommand, type Message, type MessageMetadata, type MessagePriority, type MessageType, type Objective, type ProjectConfig, type PullRequest, type PullRequestQuery, type PullRequestStatus, type QualityGatesConfig, type ReadMessagesOptions, type RegistryEntry, type RemoteFetcher, type ResolutionContext, ResolutionError, type ResolutionOptions, type ResolvedAgentDefinition, type ResolvedCoreAIConfig, type Review, type ReviewComment, type ReviewDecision, type RunCommandOptions, STANDARD_FILES, type SkillCategory, type SkillDependency, type SkillError, type SkillTemplate, type SkillVariables, type StateEntry, type StateOptions, type StateProviderAdapter, StepTracker, type SyncOptions, type SyncResult, type TeamConfig, type TechStackConfig, type UpdateIssueData, VERSION, type WorkflowType, type WriteMessageOptions, agentKnowledgeLibraryExists, builtInSkills, checkDependencies, cleanupContext, compileAgent, compileAgents, configExists, createAdapterFactory, createAdapterInfo, createCacheManager, createCommandContext, createCommandRegistry, createContextLoader, createDegradingHandler, createFileCacheProvider, executeWithDegradation, extractVariables as extractSkillVariables, extractVariables$1 as extractVariables, filterAgentsByTeam, findConfigFile, formatAgentKnowledgeState, formatGenerateResult, formatKnowledgeLibraryState, generateAgentMarkdown, generateMessageFilename, generateSkills, getAgentDirectories, getAgentKnowledgeState, getConfigPath, getCoreAgentsDir, getGlobalRegistry, getKnowledgeLibraryState, getRoleFromFilename, hasVariables, initAgentKnowledgeLibrary, initKnowledgeLibrary, loadAgentFromFile, loadAgentsFromDirectory, loadAllAgents, loadAllCommands, loadCommandFromFile, loadCommandsFromDirectory, loadConfig, loadConfigFromFile, loadCoreAICommands, loadCustomTemplates, markMessageProcessed, parseAgentYaml, readInboxMessages, resetGlobalRegistry, resolveAgentDefinition, resolveObject, resolveString, runCommand, substituteVariables, updateAgentContext, validateAgentDefinition, withContext, writeInboxMessage };
3032
+ export { AGENT_DIRECTORIES, type Adapter, AdapterError, type AdapterErrorCode, AdapterFactory, type AdapterFactoryOptions, type AdapterImplementation, type AdapterInfo, type AdapterType, type AgentContext, type AgentControl, type AgentDefinition, type AgentDirectories, AgentError, type AgentErrorCode, type AgentKnowledgeState, type AgentMetadata, type AgentSource, type AgentType, type BaseAdapter, type BaseCommandOptions, CACHE_PATHS, CONTROL_FILES, type CacheConfig, type CacheEntry, CacheError, type CacheErrorCode, type CacheListOptions, type CacheManager$1 as CacheManager, type CacheManagerOptions, type CacheMetadata, type CacheOptions, type CacheProvider, type CacheSource, type CacheStats, type CacheStatus, type CommandArgumentDefinition, type CommandCategory, type CommandContext, type CommandDefinition, type CommandHandler, type CommandLoadResult, type CommandLoaderOptions, type CommandMetadata, type CommandOptionDefinition, CommandRegistry, type CommandResult, type CompileOptions, type CompileResult, ConfigError, type ConfigErrorCode, type ContextLoadResult, ContextLoader, type ContextLoaderOptions, type ContextSource, type CoreAIConfig, type CreateContextOptions, type CreateIssueData, type CreatePullRequestData, type CreateReviewData, DEFAULT_CACHE_CONFIG, DEFAULT_KNOWLEDGE_LIBRARY_PATH, type Decision, type Dependency, type DocumentationPage, type DocumentationProviderAdapter, type DocumentationQuery, type FetchOptions, CacheManager as FileCacheManager, FileCacheProvider, type FileCacheProviderOptions, type GenerateSkillsOptions, type GenerateSkillsResult, type GeneratedSkill, type GitProviderAdapter, type InitKnowledgeLibraryOptions, type InitKnowledgeLibraryResult, type IntegrationDependency, type IntegrationsConfig, type Issue, type IssueQuery, type IssueStatus, type IssueTrackerAdapter, type KnowledgeLibraryState, type LoadOptions, type MarkdownCommand, type Message, type MessageMetadata, type MessagePriority, type MessageType, type Objective, type ProjectConfig, type PullRequest, type PullRequestQuery, type PullRequestStatus, type QualityGatesConfig, type ReadMessagesOptions, type RegistryEntry, type RemoteFetcher, type ResolutionContext, ResolutionError, type ResolutionOptions, type ResolvedAgentDefinition, type ResolvedCoreAIConfig, type Review, type ReviewComment, type ReviewDecision, type RunCommandOptions, STANDARD_FILES, type SkillCategory, type SkillDependency, type SkillError, type SkillTemplate, type SkillVariables, type StateEntry, type StateOptions, type StateProviderAdapter, StepTracker, type SyncOptions, type SyncResult, type TeamConfig, type TechStackConfig, type UpdateIssueData, VERSION, type WorkflowType, type WriteMessageOptions, agentKnowledgeLibraryExists, checkDependencies, cleanupContext, compileAgent, compileAgents, configExists, createAdapterFactory, createAdapterInfo, createCacheManager, createCommandContext, createCommandRegistry, createContextLoader, createDegradingHandler, createFileCacheProvider, discoverSkills, executeWithDegradation, extractVariables as extractSkillVariables, extractVariables$1 as extractVariables, filterAgentsByTeam, findConfigFile, formatAgentKnowledgeState, formatGenerateResult, formatKnowledgeLibraryState, generateAgentMarkdown, generateMessageFilename, generateSkills, getAgentDirectories, getAgentKnowledgeState, getConfigPath, getCoreAgentsDir, getCoreSkillsDir, getGlobalRegistry, getKnowledgeLibraryState, getRoleFromFilename, hasVariables, initAgentKnowledgeLibrary, initKnowledgeLibrary, loadAgentFromFile, loadAgentsFromDirectory, loadAllAgents, loadAllCommands, loadCommandFromFile, loadCommandsFromDirectory, loadConfig, loadConfigFromFile, loadCoreAICommands, markMessageProcessed, parseAgentYaml, parseSkillFile, readInboxMessages, resetGlobalRegistry, resolveAgentDefinition, resolveObject, resolveString, runCommand, substituteVariables, updateAgentContext, validateAgentDefinition, withContext, writeInboxMessage };