@deimoscloud/coreai 0.1.3 → 0.1.5

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
@@ -2994,6 +2994,6 @@ declare function formatAgentKnowledgeState(state: AgentKnowledgeState): string;
2994
2994
  *
2995
2995
  * This is the main library export for programmatic usage.
2996
2996
  */
2997
- declare const VERSION = "0.1.0";
2997
+ declare const VERSION: string;
2998
2998
 
2999
2999
  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 };
package/dist/index.js CHANGED
@@ -1,3 +1,8 @@
1
+ // src/index.ts
2
+ import { readFileSync as readFileSync5 } from "fs";
3
+ import { dirname as dirname5, join as join8 } from "path";
4
+ import { fileURLToPath } from "url";
5
+
1
6
  // src/config/loader.ts
2
7
  import { existsSync, readFileSync } from "fs";
3
8
  import { dirname, join, resolve } from "path";
@@ -3803,7 +3808,24 @@ function formatAgentKnowledgeState(state) {
3803
3808
  }
3804
3809
 
3805
3810
  // src/index.ts
3806
- var VERSION = "0.1.0";
3811
+ function findPackageJson() {
3812
+ let dir = dirname5(fileURLToPath(import.meta.url));
3813
+ while (dir !== dirname5(dir)) {
3814
+ const pkgPath = join8(dir, "package.json");
3815
+ try {
3816
+ const content = readFileSync5(pkgPath, "utf-8");
3817
+ const pkg = JSON.parse(content);
3818
+ if (pkg.name === "@deimoscloud/coreai") {
3819
+ return content;
3820
+ }
3821
+ } catch {
3822
+ }
3823
+ dir = dirname5(dir);
3824
+ }
3825
+ return '{"version": "unknown"}';
3826
+ }
3827
+ var packageJson = JSON.parse(findPackageJson());
3828
+ var VERSION = packageJson.version;
3807
3829
  export {
3808
3830
  AGENT_DIRECTORIES,
3809
3831
  AdapterError,