@webneat/codewiki 0.0.2 → 0.0.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.cts CHANGED
@@ -1626,10 +1626,26 @@ type WikiCounts = {
1626
1626
  total: number;
1627
1627
  };
1628
1628
  };
1629
+ type EntitiesToDescribe = {
1630
+ type: 'none';
1631
+ } | {
1632
+ type: 'files';
1633
+ items: File[];
1634
+ } | {
1635
+ type: 'symbols';
1636
+ items: Symbol[];
1637
+ } | {
1638
+ type: 'directories';
1639
+ items: Directory[];
1640
+ } | {
1641
+ type: 'dependencies';
1642
+ items: ExternalDependency[];
1643
+ };
1629
1644
  interface CodeWiki {
1630
1645
  readonly config: Config;
1631
1646
  update(): Promise<void>;
1632
1647
  counts(): WikiCounts;
1648
+ to_describe(limit: number): EntitiesToDescribe;
1633
1649
  files: FilesWiki;
1634
1650
  symbols: SymbolsWiki;
1635
1651
  directories: DirectoriesWiki;
@@ -1675,4 +1691,4 @@ declare function context_from_db(db_path: string): Promise<Context>;
1675
1691
  declare function create(config: Config): Promise<CodeWiki>;
1676
1692
  declare function load(db_path: string): Promise<CodeWiki>;
1677
1693
 
1678
- export { type CodeWiki, type Config, type Context, type ContextDependency, type DependenciesWiki, type DirectoriesWiki, type Directory, type ExternalDependency, type File, type FilesWiki, type RelationOptions, type SearchOptions, type SelectOptions, type Symbol, type SymbolsWiki, type WikiCounts, context_from_config, context_from_db, create, load };
1694
+ export { type CodeWiki, type Config, type Context, type ContextDependency, type DependenciesWiki, type DirectoriesWiki, type Directory, type EntitiesToDescribe, type ExternalDependency, type File, type FilesWiki, type RelationOptions, type SearchOptions, type SelectOptions, type Symbol, type SymbolsWiki, type WikiCounts, context_from_config, context_from_db, create, load };
package/dist/index.d.ts CHANGED
@@ -1626,10 +1626,26 @@ type WikiCounts = {
1626
1626
  total: number;
1627
1627
  };
1628
1628
  };
1629
+ type EntitiesToDescribe = {
1630
+ type: 'none';
1631
+ } | {
1632
+ type: 'files';
1633
+ items: File[];
1634
+ } | {
1635
+ type: 'symbols';
1636
+ items: Symbol[];
1637
+ } | {
1638
+ type: 'directories';
1639
+ items: Directory[];
1640
+ } | {
1641
+ type: 'dependencies';
1642
+ items: ExternalDependency[];
1643
+ };
1629
1644
  interface CodeWiki {
1630
1645
  readonly config: Config;
1631
1646
  update(): Promise<void>;
1632
1647
  counts(): WikiCounts;
1648
+ to_describe(limit: number): EntitiesToDescribe;
1633
1649
  files: FilesWiki;
1634
1650
  symbols: SymbolsWiki;
1635
1651
  directories: DirectoriesWiki;
@@ -1675,4 +1691,4 @@ declare function context_from_db(db_path: string): Promise<Context>;
1675
1691
  declare function create(config: Config): Promise<CodeWiki>;
1676
1692
  declare function load(db_path: string): Promise<CodeWiki>;
1677
1693
 
1678
- export { type CodeWiki, type Config, type Context, type ContextDependency, type DependenciesWiki, type DirectoriesWiki, type Directory, type ExternalDependency, type File, type FilesWiki, type RelationOptions, type SearchOptions, type SelectOptions, type Symbol, type SymbolsWiki, type WikiCounts, context_from_config, context_from_db, create, load };
1694
+ export { type CodeWiki, type Config, type Context, type ContextDependency, type DependenciesWiki, type DirectoriesWiki, type Directory, type EntitiesToDescribe, type ExternalDependency, type File, type FilesWiki, type RelationOptions, type SearchOptions, type SelectOptions, type Symbol, type SymbolsWiki, type WikiCounts, context_from_config, context_from_db, create, load };