@modality-counter/core 0.5.7 → 0.6.1

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.
@@ -8,7 +8,7 @@ export { setupMcpCounter } from "./mcp_counter";
8
8
  export { validateMethodFile } from "./schemas/methodology-validation.js";
9
9
  export { validateTemplateFile } from "./schemas/template-validation.js";
10
10
  export { validateProtocolFile } from "./schemas/protocol-validation.js";
11
- export { extractCodeBlocks, readMpxPrompt, readMpxYaml, readPrompt } from "./util_prompts";
11
+ export { extractCodeBlocks, readMdxPrompt, readMdxYaml, readPrompt } from "./util_prompts";
12
12
  export { readMdx, importMdx } from "./util_mdx";
13
13
  /**
14
14
  * 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
  */
@@ -3,8 +3,8 @@ interface CodeBlock {
3
3
  language: string;
4
4
  code: string;
5
5
  }
6
- export declare const readMpxPrompt: (Prompt: string | React.ComponentType<any>, params?: any) => Promise<string>;
7
- export declare const readMpxYaml: (Prompt: string | React.ComponentType<any>, params?: any) => Promise<any>;
6
+ export declare const readMdxPrompt: (Prompt: string | React.ComponentType<any>, params?: any) => Promise<string>;
7
+ export declare const readMdxYaml: (Prompt: string | React.ComponentType<any>, params?: any) => Promise<any>;
8
8
  /**
9
9
  * Read a prompt file from the prompts directory
10
10
  */
@@ -0,0 +1 @@
1
+ export { recursiveScanForFiles, type ScannedFile } from "./recursiveScanForFiles";
@@ -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.5.7",
2
+ "version": "0.6.1",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",