@deimoscloud/coreai 0.1.18 → 0.1.20

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
@@ -3,7 +3,6 @@
3
3
  *
4
4
  * TypeScript types corresponding to the JSON schema at schemas/coreai.config.schema.json
5
5
  */
6
- type ProjectType = 'software' | 'infrastructure' | 'data' | 'mobile';
7
6
  type IssueTrackerProvider = 'jira' | 'linear' | 'github-issues' | 'azure-devops';
8
7
  type GitProvider = 'github' | 'gitlab' | 'bitbucket' | 'azure-devops';
9
8
  type DocumentationProvider = 'confluence' | 'notion' | 'github-wiki' | 'local';
@@ -11,7 +10,7 @@ type StateProvider = 'confluence' | 'notion' | 's3' | 'github-repo' | 'local';
11
10
  type AdapterStrategy = 'mcp' | 'native' | 'auto';
12
11
  interface ProjectConfig {
13
12
  name: string;
14
- type?: ProjectType;
13
+ description?: string;
15
14
  root?: string;
16
15
  }
17
16
  interface TeamConfig {
@@ -71,12 +70,6 @@ interface QualityGate {
71
70
  required?: boolean;
72
71
  }
73
72
  type QualityGatesConfig = Record<string, QualityGate>;
74
- interface TechStackConfig {
75
- primary_language?: string;
76
- frameworks?: string[];
77
- cloud?: string;
78
- [key: string]: unknown;
79
- }
80
73
  interface McpConfig {
81
74
  expose_adapters?: boolean;
82
75
  }
@@ -115,7 +108,6 @@ interface CoreAIConfig {
115
108
  team?: TeamConfig;
116
109
  integrations?: IntegrationsConfig;
117
110
  quality_gates?: QualityGatesConfig;
118
- tech_stack?: TechStackConfig;
119
111
  mcp?: McpConfig;
120
112
  cache?: CacheConfig;
121
113
  }
@@ -123,7 +115,7 @@ interface CoreAIConfig {
123
115
  * Configuration with all defaults applied
124
116
  */
125
117
  interface ResolvedCoreAIConfig extends CoreAIConfig {
126
- project: Required<ProjectConfig>;
118
+ project: Pick<Required<ProjectConfig>, 'name' | 'root'> & Pick<ProjectConfig, 'description'>;
127
119
  team: Required<TeamConfig>;
128
120
  }
129
121
 
@@ -2330,7 +2322,7 @@ declare class StepTracker {
2330
2322
  /**
2331
2323
  * Skill category
2332
2324
  */
2333
- type SkillCategory = 'core' | 'custom';
2325
+ type SkillCategory = 'core' | 'git' | 'jira' | 'docs' | 'custom';
2334
2326
  /**
2335
2327
  * Integration dependency for a skill
2336
2328
  */
@@ -3029,4 +3021,4 @@ declare function formatAgentKnowledgeState(state: AgentKnowledgeState): string;
3029
3021
  */
3030
3022
  declare const VERSION: string;
3031
3023
 
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 };
3024
+ 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 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 };
package/dist/index.js CHANGED
@@ -23,9 +23,6 @@ var ConfigError = class extends Error {
23
23
  }
24
24
  };
25
25
  var DEFAULT_AGENTS = [
26
- "backend-engineer",
27
- "frontend-engineer",
28
- "devops-engineer",
29
26
  "engineering-manager"
30
27
  ];
31
28
  function findConfigFile(startDir = process.cwd()) {
@@ -85,13 +82,16 @@ function validateConfig(config) {
85
82
  return config;
86
83
  }
87
84
  function applyDefaults(config) {
85
+ const project = {
86
+ name: config.project?.name ?? "unnamed",
87
+ root: config.project?.root ?? process.cwd()
88
+ };
89
+ if (config.project?.description) {
90
+ project.description = config.project.description;
91
+ }
88
92
  return {
89
93
  ...config,
90
- project: {
91
- name: config.project?.name ?? "unnamed",
92
- type: config.project?.type ?? "software",
93
- root: config.project?.root ?? process.cwd()
94
- },
94
+ project,
95
95
  team: {
96
96
  agents: config.team?.agents ?? DEFAULT_AGENTS
97
97
  }
@@ -2819,9 +2819,6 @@ function extractVariables2(config) {
2819
2819
  }
2820
2820
  vars.PROJECT_NAME = config.project.name;
2821
2821
  vars.PROJECT_ROOT = config.project.root;
2822
- if (config.project.type) {
2823
- vars.PROJECT_TYPE = config.project.type;
2824
- }
2825
2822
  if (config.integrations?.issue_tracker) {
2826
2823
  const tracker = config.integrations.issue_tracker;
2827
2824
  if (tracker.config?.project_key) {
@@ -2871,9 +2868,6 @@ function extractVariables2(config) {
2871
2868
  }
2872
2869
  }
2873
2870
  }
2874
- if (config.tech_stack?.primary_language) {
2875
- vars.PRIMARY_LANGUAGE = config.tech_stack.primary_language;
2876
- }
2877
2871
  return vars;
2878
2872
  }
2879
2873
  function substituteVariables(content, variables) {