@fractary/codex 0.1.3 → 0.2.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/index.d.cts CHANGED
@@ -777,124 +777,6 @@ declare function createCacheManager(config: CacheManagerConfig): CacheManager;
777
777
  declare function getDefaultCacheManager(): CacheManager;
778
778
  declare function setDefaultCacheManager(manager: CacheManager): void;
779
779
 
780
- interface McpTool {
781
- name: string;
782
- description: string;
783
- inputSchema: {
784
- type: 'object';
785
- properties: Record<string, unknown>;
786
- required?: string[];
787
- };
788
- }
789
- interface McpResource {
790
- uri: string;
791
- name: string;
792
- description?: string;
793
- mimeType?: string;
794
- }
795
- interface McpResourceTemplate {
796
- uriTemplate: string;
797
- name: string;
798
- description?: string;
799
- mimeType?: string;
800
- }
801
- interface FetchToolArgs {
802
- uri: string;
803
- branch?: string;
804
- noCache?: boolean;
805
- }
806
- interface SearchToolArgs {
807
- query: string;
808
- org?: string;
809
- project?: string;
810
- limit?: number;
811
- type?: string;
812
- }
813
- interface ListToolArgs {
814
- org?: string;
815
- project?: string;
816
- includeExpired?: boolean;
817
- }
818
- interface InvalidateToolArgs {
819
- pattern: string;
820
- }
821
- interface ToolResult {
822
- content: Array<{
823
- type: 'text' | 'resource';
824
- text?: string;
825
- resource?: {
826
- uri: string;
827
- mimeType?: string;
828
- text?: string;
829
- blob?: string;
830
- };
831
- }>;
832
- isError?: boolean;
833
- }
834
- interface ResourceContent {
835
- uri: string;
836
- mimeType?: string;
837
- text?: string;
838
- blob?: string;
839
- }
840
- interface McpCapabilities {
841
- tools?: {
842
- listChanged?: boolean;
843
- };
844
- resources?: {
845
- subscribe?: boolean;
846
- listChanged?: boolean;
847
- };
848
- prompts?: {
849
- listChanged?: boolean;
850
- };
851
- }
852
- interface McpServerInfo {
853
- name: string;
854
- version: string;
855
- capabilities: McpCapabilities;
856
- }
857
- interface SearchResult {
858
- uri: string;
859
- title?: string;
860
- snippet?: string;
861
- score?: number;
862
- metadata?: Record<string, unknown>;
863
- }
864
-
865
- declare const CODEX_TOOLS: McpTool[];
866
- interface ToolHandlerContext {
867
- cache: CacheManager;
868
- storage: StorageManager;
869
- }
870
- declare function handleFetch(args: FetchToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
871
- declare function handleSearch(args: SearchToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
872
- declare function handleList(args: ListToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
873
- declare function handleInvalidate(args: InvalidateToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
874
- declare function handleToolCall(name: string, args: Record<string, unknown>, ctx: ToolHandlerContext): Promise<ToolResult>;
875
-
876
- interface McpServerConfig {
877
- name?: string;
878
- version?: string;
879
- cache: CacheManager;
880
- storage: StorageManager;
881
- }
882
- declare class McpServer {
883
- private config;
884
- private toolContext;
885
- constructor(config: McpServerConfig);
886
- getServerInfo(): McpServerInfo;
887
- getCapabilities(): McpCapabilities;
888
- listTools(): McpTool[];
889
- callTool(name: string, args: Record<string, unknown>): Promise<ToolResult>;
890
- listResources(): Promise<McpResource[]>;
891
- listResourceTemplates(): McpResourceTemplate[];
892
- readResource(uri: string): Promise<ResourceContent[]>;
893
- handleRequest(method: string, params?: Record<string, unknown>): Promise<unknown>;
894
- processMessage(message: string): Promise<string>;
895
- }
896
- declare function createMcpServer(config: McpServerConfig): McpServer;
897
-
898
780
  type SyncDirection = 'to-codex' | 'from-codex' | 'bidirectional';
899
781
  type SyncOperation = 'create' | 'update' | 'delete' | 'skip' | 'conflict';
900
782
  interface FileSyncStatus {
@@ -1250,4 +1132,4 @@ declare function hasLegacyReferences(text: string): boolean;
1250
1132
  declare function migrateFileReferences(content: string, options?: ConversionOptions): ReferenceConversionResult;
1251
1133
  declare function generateReferenceMigrationSummary(results: ReferenceConversionResult[]): string;
1252
1134
 
1253
- export { type ArtifactType, type AutoSyncPattern, AutoSyncPatternSchema, BUILT_IN_TYPES, CODEX_TOOLS, CODEX_URI_PREFIX, type CacheEntry, type CacheEntryMetadata, type CacheEntryStatus, type CacheLookupResult, CacheManager, type CacheManagerConfig, CachePersistence, type CachePersistenceOptions, type CacheStats, type CodexConfig, CodexConfigSchema, CodexError, CommonRules, ConfigurationError, type ConversionOptions, type ConvertedReference, type CustomSyncDestination, type CustomTypeConfig, CustomTypeSchema, DEFAULT_CACHE_DIR, DEFAULT_FETCH_OPTIONS, DEFAULT_MIGRATION_OPTIONS, DEFAULT_PERMISSION_CONFIG, DEFAULT_SYNC_CONFIG, DEFAULT_TYPE, type EvaluationResult, type EvaluationSummary, type FetchOptions, type FetchResult, type FetchToolArgs, type FileInfo, type FileSyncStatus, GitHubStorage, type GitHubStorageOptions, HttpStorage, type HttpStorageOptions, type InvalidateToolArgs, LEGACY_PATTERNS, LEGACY_REF_PREFIX, type LegacyAutoSyncPattern, type LegacyCodexConfig, type ListToolArgs, type LoadConfigOptions, LocalStorage, type LocalStorageOptions, type McpCapabilities, type McpResource, type McpResourceTemplate, McpServer, type McpServerConfig, type McpServerInfo, type McpTool, type Metadata, MetadataSchema, type MigrationChange, type MigrationOptions, type MigrationResult, type ModernCodexConfig, type ModernSyncPattern, PERMISSION_LEVEL_ORDER, type ParseMetadataOptions, type ParseOptions, type ParseResult, type ParsedReference, type PermissionAction, type PermissionConfig, type PermissionContext, PermissionDeniedError, type PermissionLevel, PermissionManager, type PermissionManagerConfig, type PermissionResult, type PermissionRule, type PermissionScope, type PlanStats, type ReferenceConversionResult, type ResolveOptions, type ResolveOrgOptions, type ResolvedReference, type ResourceContent, type SearchResult, type SearchToolArgs, type SerializedCacheEntry, type ShouldSyncOptions, StorageManager, type StorageManagerConfig, type StorageProvider, type StorageProviderConfig, type StorageProviderType, type SyncConfig, type SyncDirection, SyncManager, type SyncManagerConfig, type SyncManifest, type SyncManifestEntry, type SyncOperation, type SyncOptions, type SyncPlan, type SyncResult, type SyncRule, type SyncRules, SyncRulesSchema, TTL, type ToolHandlerContext, type ToolResult, TypeRegistry, type TypeRegistryOptions, type TypesConfig, TypesConfigSchema, ValidationError, type VersionDetectionResult, buildUri, calculateCachePath, calculateContentHash, convertLegacyReference, convertLegacyReferences, convertToUri, createCacheEntry, createCacheManager, createCachePersistence, createDefaultRegistry, createEmptyModernConfig, createEmptySyncPlan, createGitHubStorage, createHttpStorage, createLocalStorage, createMcpServer, createPermissionManager, createRule, createRulesFromPatterns, createStorageManager, createSyncManager, createSyncPlan, deserializeCacheEntry, detectContentType, detectCurrentProject, detectVersion, estimateSyncTime, evaluatePath, evaluatePaths, evaluatePatterns, evaluatePermission, evaluatePermissions, extendType, extractOrgFromRepoName, extractRawFrontmatter, filterByPatterns, filterByPermission, filterPlanOperations, filterSyncablePaths, findLegacyReferences, formatPlanSummary, generateMigrationReport, generateReferenceMigrationSummary, getBuiltInType, getBuiltInTypeNames, getCacheEntryAge, getCacheEntryStatus, getCurrentContext, getCustomSyncDestinations, getDefaultCacheManager, getDefaultConfig, getDefaultDirectories, getDefaultPermissionManager, getDefaultRules, getDefaultStorageManager, getDirectory, getExtension, getFilename, getMigrationRequirements, getPlanStats, getRelativeCachePath, getRemainingTtl, getTargetRepos, handleFetch, handleInvalidate, handleList, handleSearch, handleToolCall, hasContentChanged, hasFrontmatter, hasLegacyReferences, hasPermission as hasPermissionLevel, isBuiltInType, isCacheEntryFresh, isCacheEntryValid, isCurrentProjectUri, isLegacyConfig, isLegacyReference, isModernConfig, isAllowed as isPermissionAllowed, isValidUri, levelGrants, loadConfig, loadCustomTypes, matchAnyPattern, matchPattern, maxLevel, mergeFetchOptions, mergeRules, mergeTypes, migrateConfig, migrateFileReferences, minLevel, needsMigration, parseCustomDestination, parseMetadata, parseReference, parseTtl, resolveOrganization, resolveReference, resolveReferences, ruleMatchesAction, ruleMatchesContext, ruleMatchesPath, sanitizePath, serializeCacheEntry, setDefaultCacheManager, setDefaultPermissionManager, setDefaultStorageManager, shouldSyncToRepo, summarizeEvaluations, touchCacheEntry, validateCustomTypes, validateMetadata, validateMigratedConfig, validateOrg, validatePath, validateRules as validatePermissionRules, validateProject, validateRules$1 as validateRules, validateUri };
1135
+ export { type ArtifactType, type AutoSyncPattern, AutoSyncPatternSchema, BUILT_IN_TYPES, CODEX_URI_PREFIX, type CacheEntry, type CacheEntryMetadata, type CacheEntryStatus, type CacheLookupResult, CacheManager, type CacheManagerConfig, CachePersistence, type CachePersistenceOptions, type CacheStats, type CodexConfig, CodexConfigSchema, CodexError, CommonRules, ConfigurationError, type ConversionOptions, type ConvertedReference, type CustomSyncDestination, type CustomTypeConfig, CustomTypeSchema, DEFAULT_CACHE_DIR, DEFAULT_FETCH_OPTIONS, DEFAULT_MIGRATION_OPTIONS, DEFAULT_PERMISSION_CONFIG, DEFAULT_SYNC_CONFIG, DEFAULT_TYPE, type EvaluationResult, type EvaluationSummary, type FetchOptions, type FetchResult, type FileInfo, type FileSyncStatus, GitHubStorage, type GitHubStorageOptions, HttpStorage, type HttpStorageOptions, LEGACY_PATTERNS, LEGACY_REF_PREFIX, type LegacyAutoSyncPattern, type LegacyCodexConfig, type LoadConfigOptions, LocalStorage, type LocalStorageOptions, type Metadata, MetadataSchema, type MigrationChange, type MigrationOptions, type MigrationResult, type ModernCodexConfig, type ModernSyncPattern, PERMISSION_LEVEL_ORDER, type ParseMetadataOptions, type ParseOptions, type ParseResult, type ParsedReference, type PermissionAction, type PermissionConfig, type PermissionContext, PermissionDeniedError, type PermissionLevel, PermissionManager, type PermissionManagerConfig, type PermissionResult, type PermissionRule, type PermissionScope, type PlanStats, type ReferenceConversionResult, type ResolveOptions, type ResolveOrgOptions, type ResolvedReference, type SerializedCacheEntry, type ShouldSyncOptions, StorageManager, type StorageManagerConfig, type StorageProvider, type StorageProviderConfig, type StorageProviderType, type SyncConfig, type SyncDirection, SyncManager, type SyncManagerConfig, type SyncManifest, type SyncManifestEntry, type SyncOperation, type SyncOptions, type SyncPlan, type SyncResult, type SyncRule, type SyncRules, SyncRulesSchema, TTL, TypeRegistry, type TypeRegistryOptions, type TypesConfig, TypesConfigSchema, ValidationError, type VersionDetectionResult, buildUri, calculateCachePath, calculateContentHash, convertLegacyReference, convertLegacyReferences, convertToUri, createCacheEntry, createCacheManager, createCachePersistence, createDefaultRegistry, createEmptyModernConfig, createEmptySyncPlan, createGitHubStorage, createHttpStorage, createLocalStorage, createPermissionManager, createRule, createRulesFromPatterns, createStorageManager, createSyncManager, createSyncPlan, deserializeCacheEntry, detectContentType, detectCurrentProject, detectVersion, estimateSyncTime, evaluatePath, evaluatePaths, evaluatePatterns, evaluatePermission, evaluatePermissions, extendType, extractOrgFromRepoName, extractRawFrontmatter, filterByPatterns, filterByPermission, filterPlanOperations, filterSyncablePaths, findLegacyReferences, formatPlanSummary, generateMigrationReport, generateReferenceMigrationSummary, getBuiltInType, getBuiltInTypeNames, getCacheEntryAge, getCacheEntryStatus, getCurrentContext, getCustomSyncDestinations, getDefaultCacheManager, getDefaultConfig, getDefaultDirectories, getDefaultPermissionManager, getDefaultRules, getDefaultStorageManager, getDirectory, getExtension, getFilename, getMigrationRequirements, getPlanStats, getRelativeCachePath, getRemainingTtl, getTargetRepos, hasContentChanged, hasFrontmatter, hasLegacyReferences, hasPermission as hasPermissionLevel, isBuiltInType, isCacheEntryFresh, isCacheEntryValid, isCurrentProjectUri, isLegacyConfig, isLegacyReference, isModernConfig, isAllowed as isPermissionAllowed, isValidUri, levelGrants, loadConfig, loadCustomTypes, matchAnyPattern, matchPattern, maxLevel, mergeFetchOptions, mergeRules, mergeTypes, migrateConfig, migrateFileReferences, minLevel, needsMigration, parseCustomDestination, parseMetadata, parseReference, parseTtl, resolveOrganization, resolveReference, resolveReferences, ruleMatchesAction, ruleMatchesContext, ruleMatchesPath, sanitizePath, serializeCacheEntry, setDefaultCacheManager, setDefaultPermissionManager, setDefaultStorageManager, shouldSyncToRepo, summarizeEvaluations, touchCacheEntry, validateCustomTypes, validateMetadata, validateMigratedConfig, validateOrg, validatePath, validateRules as validatePermissionRules, validateProject, validateRules$1 as validateRules, validateUri };
package/dist/index.d.ts CHANGED
@@ -777,124 +777,6 @@ declare function createCacheManager(config: CacheManagerConfig): CacheManager;
777
777
  declare function getDefaultCacheManager(): CacheManager;
778
778
  declare function setDefaultCacheManager(manager: CacheManager): void;
779
779
 
780
- interface McpTool {
781
- name: string;
782
- description: string;
783
- inputSchema: {
784
- type: 'object';
785
- properties: Record<string, unknown>;
786
- required?: string[];
787
- };
788
- }
789
- interface McpResource {
790
- uri: string;
791
- name: string;
792
- description?: string;
793
- mimeType?: string;
794
- }
795
- interface McpResourceTemplate {
796
- uriTemplate: string;
797
- name: string;
798
- description?: string;
799
- mimeType?: string;
800
- }
801
- interface FetchToolArgs {
802
- uri: string;
803
- branch?: string;
804
- noCache?: boolean;
805
- }
806
- interface SearchToolArgs {
807
- query: string;
808
- org?: string;
809
- project?: string;
810
- limit?: number;
811
- type?: string;
812
- }
813
- interface ListToolArgs {
814
- org?: string;
815
- project?: string;
816
- includeExpired?: boolean;
817
- }
818
- interface InvalidateToolArgs {
819
- pattern: string;
820
- }
821
- interface ToolResult {
822
- content: Array<{
823
- type: 'text' | 'resource';
824
- text?: string;
825
- resource?: {
826
- uri: string;
827
- mimeType?: string;
828
- text?: string;
829
- blob?: string;
830
- };
831
- }>;
832
- isError?: boolean;
833
- }
834
- interface ResourceContent {
835
- uri: string;
836
- mimeType?: string;
837
- text?: string;
838
- blob?: string;
839
- }
840
- interface McpCapabilities {
841
- tools?: {
842
- listChanged?: boolean;
843
- };
844
- resources?: {
845
- subscribe?: boolean;
846
- listChanged?: boolean;
847
- };
848
- prompts?: {
849
- listChanged?: boolean;
850
- };
851
- }
852
- interface McpServerInfo {
853
- name: string;
854
- version: string;
855
- capabilities: McpCapabilities;
856
- }
857
- interface SearchResult {
858
- uri: string;
859
- title?: string;
860
- snippet?: string;
861
- score?: number;
862
- metadata?: Record<string, unknown>;
863
- }
864
-
865
- declare const CODEX_TOOLS: McpTool[];
866
- interface ToolHandlerContext {
867
- cache: CacheManager;
868
- storage: StorageManager;
869
- }
870
- declare function handleFetch(args: FetchToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
871
- declare function handleSearch(args: SearchToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
872
- declare function handleList(args: ListToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
873
- declare function handleInvalidate(args: InvalidateToolArgs, ctx: ToolHandlerContext): Promise<ToolResult>;
874
- declare function handleToolCall(name: string, args: Record<string, unknown>, ctx: ToolHandlerContext): Promise<ToolResult>;
875
-
876
- interface McpServerConfig {
877
- name?: string;
878
- version?: string;
879
- cache: CacheManager;
880
- storage: StorageManager;
881
- }
882
- declare class McpServer {
883
- private config;
884
- private toolContext;
885
- constructor(config: McpServerConfig);
886
- getServerInfo(): McpServerInfo;
887
- getCapabilities(): McpCapabilities;
888
- listTools(): McpTool[];
889
- callTool(name: string, args: Record<string, unknown>): Promise<ToolResult>;
890
- listResources(): Promise<McpResource[]>;
891
- listResourceTemplates(): McpResourceTemplate[];
892
- readResource(uri: string): Promise<ResourceContent[]>;
893
- handleRequest(method: string, params?: Record<string, unknown>): Promise<unknown>;
894
- processMessage(message: string): Promise<string>;
895
- }
896
- declare function createMcpServer(config: McpServerConfig): McpServer;
897
-
898
780
  type SyncDirection = 'to-codex' | 'from-codex' | 'bidirectional';
899
781
  type SyncOperation = 'create' | 'update' | 'delete' | 'skip' | 'conflict';
900
782
  interface FileSyncStatus {
@@ -1250,4 +1132,4 @@ declare function hasLegacyReferences(text: string): boolean;
1250
1132
  declare function migrateFileReferences(content: string, options?: ConversionOptions): ReferenceConversionResult;
1251
1133
  declare function generateReferenceMigrationSummary(results: ReferenceConversionResult[]): string;
1252
1134
 
1253
- export { type ArtifactType, type AutoSyncPattern, AutoSyncPatternSchema, BUILT_IN_TYPES, CODEX_TOOLS, CODEX_URI_PREFIX, type CacheEntry, type CacheEntryMetadata, type CacheEntryStatus, type CacheLookupResult, CacheManager, type CacheManagerConfig, CachePersistence, type CachePersistenceOptions, type CacheStats, type CodexConfig, CodexConfigSchema, CodexError, CommonRules, ConfigurationError, type ConversionOptions, type ConvertedReference, type CustomSyncDestination, type CustomTypeConfig, CustomTypeSchema, DEFAULT_CACHE_DIR, DEFAULT_FETCH_OPTIONS, DEFAULT_MIGRATION_OPTIONS, DEFAULT_PERMISSION_CONFIG, DEFAULT_SYNC_CONFIG, DEFAULT_TYPE, type EvaluationResult, type EvaluationSummary, type FetchOptions, type FetchResult, type FetchToolArgs, type FileInfo, type FileSyncStatus, GitHubStorage, type GitHubStorageOptions, HttpStorage, type HttpStorageOptions, type InvalidateToolArgs, LEGACY_PATTERNS, LEGACY_REF_PREFIX, type LegacyAutoSyncPattern, type LegacyCodexConfig, type ListToolArgs, type LoadConfigOptions, LocalStorage, type LocalStorageOptions, type McpCapabilities, type McpResource, type McpResourceTemplate, McpServer, type McpServerConfig, type McpServerInfo, type McpTool, type Metadata, MetadataSchema, type MigrationChange, type MigrationOptions, type MigrationResult, type ModernCodexConfig, type ModernSyncPattern, PERMISSION_LEVEL_ORDER, type ParseMetadataOptions, type ParseOptions, type ParseResult, type ParsedReference, type PermissionAction, type PermissionConfig, type PermissionContext, PermissionDeniedError, type PermissionLevel, PermissionManager, type PermissionManagerConfig, type PermissionResult, type PermissionRule, type PermissionScope, type PlanStats, type ReferenceConversionResult, type ResolveOptions, type ResolveOrgOptions, type ResolvedReference, type ResourceContent, type SearchResult, type SearchToolArgs, type SerializedCacheEntry, type ShouldSyncOptions, StorageManager, type StorageManagerConfig, type StorageProvider, type StorageProviderConfig, type StorageProviderType, type SyncConfig, type SyncDirection, SyncManager, type SyncManagerConfig, type SyncManifest, type SyncManifestEntry, type SyncOperation, type SyncOptions, type SyncPlan, type SyncResult, type SyncRule, type SyncRules, SyncRulesSchema, TTL, type ToolHandlerContext, type ToolResult, TypeRegistry, type TypeRegistryOptions, type TypesConfig, TypesConfigSchema, ValidationError, type VersionDetectionResult, buildUri, calculateCachePath, calculateContentHash, convertLegacyReference, convertLegacyReferences, convertToUri, createCacheEntry, createCacheManager, createCachePersistence, createDefaultRegistry, createEmptyModernConfig, createEmptySyncPlan, createGitHubStorage, createHttpStorage, createLocalStorage, createMcpServer, createPermissionManager, createRule, createRulesFromPatterns, createStorageManager, createSyncManager, createSyncPlan, deserializeCacheEntry, detectContentType, detectCurrentProject, detectVersion, estimateSyncTime, evaluatePath, evaluatePaths, evaluatePatterns, evaluatePermission, evaluatePermissions, extendType, extractOrgFromRepoName, extractRawFrontmatter, filterByPatterns, filterByPermission, filterPlanOperations, filterSyncablePaths, findLegacyReferences, formatPlanSummary, generateMigrationReport, generateReferenceMigrationSummary, getBuiltInType, getBuiltInTypeNames, getCacheEntryAge, getCacheEntryStatus, getCurrentContext, getCustomSyncDestinations, getDefaultCacheManager, getDefaultConfig, getDefaultDirectories, getDefaultPermissionManager, getDefaultRules, getDefaultStorageManager, getDirectory, getExtension, getFilename, getMigrationRequirements, getPlanStats, getRelativeCachePath, getRemainingTtl, getTargetRepos, handleFetch, handleInvalidate, handleList, handleSearch, handleToolCall, hasContentChanged, hasFrontmatter, hasLegacyReferences, hasPermission as hasPermissionLevel, isBuiltInType, isCacheEntryFresh, isCacheEntryValid, isCurrentProjectUri, isLegacyConfig, isLegacyReference, isModernConfig, isAllowed as isPermissionAllowed, isValidUri, levelGrants, loadConfig, loadCustomTypes, matchAnyPattern, matchPattern, maxLevel, mergeFetchOptions, mergeRules, mergeTypes, migrateConfig, migrateFileReferences, minLevel, needsMigration, parseCustomDestination, parseMetadata, parseReference, parseTtl, resolveOrganization, resolveReference, resolveReferences, ruleMatchesAction, ruleMatchesContext, ruleMatchesPath, sanitizePath, serializeCacheEntry, setDefaultCacheManager, setDefaultPermissionManager, setDefaultStorageManager, shouldSyncToRepo, summarizeEvaluations, touchCacheEntry, validateCustomTypes, validateMetadata, validateMigratedConfig, validateOrg, validatePath, validateRules as validatePermissionRules, validateProject, validateRules$1 as validateRules, validateUri };
1135
+ export { type ArtifactType, type AutoSyncPattern, AutoSyncPatternSchema, BUILT_IN_TYPES, CODEX_URI_PREFIX, type CacheEntry, type CacheEntryMetadata, type CacheEntryStatus, type CacheLookupResult, CacheManager, type CacheManagerConfig, CachePersistence, type CachePersistenceOptions, type CacheStats, type CodexConfig, CodexConfigSchema, CodexError, CommonRules, ConfigurationError, type ConversionOptions, type ConvertedReference, type CustomSyncDestination, type CustomTypeConfig, CustomTypeSchema, DEFAULT_CACHE_DIR, DEFAULT_FETCH_OPTIONS, DEFAULT_MIGRATION_OPTIONS, DEFAULT_PERMISSION_CONFIG, DEFAULT_SYNC_CONFIG, DEFAULT_TYPE, type EvaluationResult, type EvaluationSummary, type FetchOptions, type FetchResult, type FileInfo, type FileSyncStatus, GitHubStorage, type GitHubStorageOptions, HttpStorage, type HttpStorageOptions, LEGACY_PATTERNS, LEGACY_REF_PREFIX, type LegacyAutoSyncPattern, type LegacyCodexConfig, type LoadConfigOptions, LocalStorage, type LocalStorageOptions, type Metadata, MetadataSchema, type MigrationChange, type MigrationOptions, type MigrationResult, type ModernCodexConfig, type ModernSyncPattern, PERMISSION_LEVEL_ORDER, type ParseMetadataOptions, type ParseOptions, type ParseResult, type ParsedReference, type PermissionAction, type PermissionConfig, type PermissionContext, PermissionDeniedError, type PermissionLevel, PermissionManager, type PermissionManagerConfig, type PermissionResult, type PermissionRule, type PermissionScope, type PlanStats, type ReferenceConversionResult, type ResolveOptions, type ResolveOrgOptions, type ResolvedReference, type SerializedCacheEntry, type ShouldSyncOptions, StorageManager, type StorageManagerConfig, type StorageProvider, type StorageProviderConfig, type StorageProviderType, type SyncConfig, type SyncDirection, SyncManager, type SyncManagerConfig, type SyncManifest, type SyncManifestEntry, type SyncOperation, type SyncOptions, type SyncPlan, type SyncResult, type SyncRule, type SyncRules, SyncRulesSchema, TTL, TypeRegistry, type TypeRegistryOptions, type TypesConfig, TypesConfigSchema, ValidationError, type VersionDetectionResult, buildUri, calculateCachePath, calculateContentHash, convertLegacyReference, convertLegacyReferences, convertToUri, createCacheEntry, createCacheManager, createCachePersistence, createDefaultRegistry, createEmptyModernConfig, createEmptySyncPlan, createGitHubStorage, createHttpStorage, createLocalStorage, createPermissionManager, createRule, createRulesFromPatterns, createStorageManager, createSyncManager, createSyncPlan, deserializeCacheEntry, detectContentType, detectCurrentProject, detectVersion, estimateSyncTime, evaluatePath, evaluatePaths, evaluatePatterns, evaluatePermission, evaluatePermissions, extendType, extractOrgFromRepoName, extractRawFrontmatter, filterByPatterns, filterByPermission, filterPlanOperations, filterSyncablePaths, findLegacyReferences, formatPlanSummary, generateMigrationReport, generateReferenceMigrationSummary, getBuiltInType, getBuiltInTypeNames, getCacheEntryAge, getCacheEntryStatus, getCurrentContext, getCustomSyncDestinations, getDefaultCacheManager, getDefaultConfig, getDefaultDirectories, getDefaultPermissionManager, getDefaultRules, getDefaultStorageManager, getDirectory, getExtension, getFilename, getMigrationRequirements, getPlanStats, getRelativeCachePath, getRemainingTtl, getTargetRepos, hasContentChanged, hasFrontmatter, hasLegacyReferences, hasPermission as hasPermissionLevel, isBuiltInType, isCacheEntryFresh, isCacheEntryValid, isCurrentProjectUri, isLegacyConfig, isLegacyReference, isModernConfig, isAllowed as isPermissionAllowed, isValidUri, levelGrants, loadConfig, loadCustomTypes, matchAnyPattern, matchPattern, maxLevel, mergeFetchOptions, mergeRules, mergeTypes, migrateConfig, migrateFileReferences, minLevel, needsMigration, parseCustomDestination, parseMetadata, parseReference, parseTtl, resolveOrganization, resolveReference, resolveReferences, ruleMatchesAction, ruleMatchesContext, ruleMatchesPath, sanitizePath, serializeCacheEntry, setDefaultCacheManager, setDefaultPermissionManager, setDefaultStorageManager, shouldSyncToRepo, summarizeEvaluations, touchCacheEntry, validateCustomTypes, validateMetadata, validateMigratedConfig, validateOrg, validatePath, validateRules as validatePermissionRules, validateProject, validateRules$1 as validateRules, validateUri };