@modality-counter/core 0.6.0 → 0.6.2

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.
@@ -1,14 +1,18 @@
1
- export { DeepWiki } from "./util_scripts/DeepWiki";
2
1
  export { MAX_CHAR_LENGTH } from "./confs/const";
3
2
  export { isGoogleBotDomain } from "./confs/domain-config";
4
- export { getPagination, needsChunking, getChunk, } from "./util_scripts/pagination";
5
3
  export { DEPLOY_METHOD_TOOL } from "./confs/const.js";
6
- export { getCounterContent, getAllCounterItems, type CounterContent } from "./util_counter_data";
4
+ /**
5
+ * util_scripts
6
+ */
7
+ export { DeepWiki } from "./util_scripts/DeepWiki";
8
+ export { recursiveScanForFiles, type ScannedFile, } from "./util_scripts/recursiveScanForFiles";
9
+ export { getPagination, needsChunking, getChunk, } from "./util_scripts/pagination";
10
+ export { getCounterContent, getAllCounterItems, type CounterContent, } from "./util_counter_data";
7
11
  export { setupMcpCounter } from "./mcp_counter";
8
12
  export { validateMethodFile } from "./schemas/methodology-validation.js";
9
13
  export { validateTemplateFile } from "./schemas/template-validation.js";
10
14
  export { validateProtocolFile } from "./schemas/protocol-validation.js";
11
- export { extractCodeBlocks, readMdxPrompt, readMdxYaml, readPrompt } from "./util_prompts";
15
+ export { extractCodeBlocks, readMdxPrompt, readMdxYaml, readPrompt, } from "./util_prompts";
12
16
  export { readMdx, importMdx } from "./util_mdx";
13
17
  /**
14
18
  * Test setups
@@ -1,4 +1,5 @@
1
1
  import { type ResourceType } from "./schemas/counter_schemas";
2
+ import { type ScannedFile } from "./util_scripts/recursiveScanForFiles";
2
3
  interface CounterItem {
3
4
  callSign: string;
4
5
  type: ResourceType;
@@ -20,14 +21,6 @@ export interface CounterContent {
20
21
  }
21
22
  export declare function getCounterContent(items: CounterItem[], callSign: string, params?: any, executeScript?: boolean): Promise<CounterContent | false>;
22
23
  export declare function getAllCounterItems(types?: ResourceType[], baseDir?: string): Promise<CounterItem[]>;
23
- /**
24
- * Generic recursive file finder that scans directories for files matching criteria
25
- * Internal utility for scanning templates, protocols, and other resource types
26
- */
27
- interface ScannedFile {
28
- filename: string;
29
- fullPath: string;
30
- }
31
24
  /**
32
25
  * Find all template files - convenience wrapper around recursiveScanForFiles
33
26
  */
@@ -0,0 +1,23 @@
1
+ interface ScanOptions {
2
+ targetFolderName: string;
3
+ fileExtensions?: string[];
4
+ fileNameFilter?: (name: string) => boolean;
5
+ excludePatterns?: string[];
6
+ searchInSubfolders?: boolean;
7
+ }
8
+ /**
9
+ * Generic recursive file finder that scans directories for files matching criteria
10
+ * Internal utility for scanning templates, protocols, and other resource types
11
+ */
12
+ export interface ScannedFile {
13
+ filename: string;
14
+ fullPath: string;
15
+ }
16
+ /**
17
+ * Recursively scan directory for files in folders matching criteria
18
+ * @param baseDir - Base directory to start scanning from
19
+ * @param options - Scan configuration
20
+ * @returns Array of found files sorted by filename
21
+ */
22
+ export declare function recursiveScanForFiles(baseDir: string, options: ScanOptions): ScannedFile[];
23
+ export {};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.6.0",
2
+ "version": "0.6.2",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",