@modality-counter/core 0.10.0 → 0.11.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.
@@ -5,7 +5,6 @@ export { DEPLOY_METHOD_TOOL } from "./confs/const.js";
5
5
  * util_scripts
6
6
  */
7
7
  export { DeepWiki } from "./util_scripts/DeepWiki";
8
- export { recursiveScanForFiles, type ScannedFile, } from "./util_scripts/recursiveScanForFiles";
9
8
  export { getPagination, needsChunking, getChunk, } from "./util_scripts/pagination";
10
9
  export { getCounterContent, getAllCounterItems, type CounterContent, type CounterTuple, } from "./util_counter_data";
11
10
  export { setupMcpCounter } from "./mcp_counter";
@@ -1,5 +1,6 @@
1
1
  import { type ResourceType } from "./schemas/counter_schemas";
2
- import { type ScannedFile } from "./util_scripts/recursiveScanForFiles";
2
+ import { type ScannedFile } from "modality-kit";
3
+ export declare const COUNTER_FILE_EXTENSIONS: string[];
3
4
  /**
4
5
  * Extract all CounterMethod references from the references directory
5
6
  * Returns object with filename as key and reference data as value
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.10.0",
2
+ "version": "0.11.0",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@mdx-js/esbuild": "^3.1.1",
23
23
  "modality-ai": "^0.6.0",
24
- "modality-kit": "^0.16.2",
24
+ "modality-kit": "^0.17.0",
25
25
  "modality-safe": "^0.3.3",
26
26
  "node-html-markdown": "^2.0.0",
27
27
  "remark-frontmatter": "^5.0.0",
@@ -29,11 +29,11 @@
29
29
  "ucfirst-js": "^0.2.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/bun": "^1.3.12",
32
+ "@types/bun": "^1.3.13",
33
33
  "@types/react": "^19.2.14",
34
34
  "@types/react-dom": "^19.2.3",
35
- "modality-bun-kit": "^0.0.4",
36
- "typescript": "^6.0.2",
35
+ "modality-bun-kit": "^1.3.13",
36
+ "typescript": "^6.0.3",
37
37
  "valibot": "^1.3.1",
38
38
  "xdm": "^3.4.0"
39
39
  },
@@ -1,23 +0,0 @@
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 {};