@framers/agentos-ext-local-file-search 0.1.0 → 0.1.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.
- package/manifest.json +2 -2
- package/package.json +18 -6
- package/src/LocalFileSearchTool.ts +0 -172
- package/src/index.ts +0 -31
- package/src/types.ts +0 -64
- package/test/LocalFileSearchTool.spec.ts +0 -83
- package/tsconfig.json +0 -17
package/manifest.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"$schema": "https://agentos.sh/schemas/extension-manifest-v1.json",
|
|
3
3
|
"id": "com.framers.tools.local-file-search",
|
|
4
4
|
"name": "Local File Search",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.1",
|
|
6
6
|
"description": "Search for files on the local filesystem by fuzzy name matching. Supports denylist filtering and relevance-ranked results.",
|
|
7
|
-
"author": { "name": "
|
|
7
|
+
"author": { "name": "Frame", "url": "https://frame.dev" },
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"keywords": ["file", "search", "filesystem", "local", "find"],
|
|
10
10
|
"agentosVersion": "^2.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framers/agentos-ext-local-file-search",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Search for files on the local filesystem by fuzzy name matching",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"./package.json": "./package.json"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@framers/agentos": "
|
|
17
|
+
"@framers/agentos": ">=0.10.40"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"agentos",
|
|
@@ -29,17 +29,29 @@
|
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/
|
|
32
|
+
"url": "git+https://github.com/framerslab/agentos-extensions.git",
|
|
33
33
|
"directory": "registry/curated/tools/local-file-search"
|
|
34
34
|
},
|
|
35
|
-
"homepage": "https://github.com/
|
|
35
|
+
"homepage": "https://github.com/framerslab/agentos-extensions/tree/master/registry/curated/tools/local-file-search#readme",
|
|
36
36
|
"bugs": {
|
|
37
|
-
"url": "https://github.com/
|
|
37
|
+
"url": "https://github.com/framerslab/agentos-extensions/issues"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"manifest.json",
|
|
42
|
+
"README.md"
|
|
43
|
+
],
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@framers/agentos": "^0.10.40",
|
|
46
|
+
"@types/node": "^20.12.12",
|
|
47
|
+
"rimraf": "^5.0.7",
|
|
48
|
+
"typescript": "^5.4.5",
|
|
49
|
+
"vitest": "^3.2.7"
|
|
38
50
|
},
|
|
39
51
|
"scripts": {
|
|
40
52
|
"build": "tsc",
|
|
41
53
|
"dev": "tsc --watch",
|
|
42
|
-
"test": "vitest run",
|
|
54
|
+
"test": "vitest run --passWithNoTests",
|
|
43
55
|
"clean": "rimraf dist"
|
|
44
56
|
}
|
|
45
57
|
}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview Local File Search — find files on the host filesystem by fuzzy name matching.
|
|
4
|
-
*
|
|
5
|
-
* Searches the full filesystem (or a specified directory) with a configurable denylist
|
|
6
|
-
* to exclude sensitive paths. Results are ranked by relevance: exact > startsWith > contains > fuzzy.
|
|
7
|
-
*
|
|
8
|
-
* @module agentos-ext-local-file-search/LocalFileSearchTool
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import { readdir, stat } from 'node:fs/promises';
|
|
12
|
-
import { join, basename, extname } from 'node:path';
|
|
13
|
-
import type {
|
|
14
|
-
FileSearchConfig,
|
|
15
|
-
FileMatch,
|
|
16
|
-
LocalFileSearchInput,
|
|
17
|
-
LocalFileSearchOutput,
|
|
18
|
-
} from './types.js';
|
|
19
|
-
import { DEFAULT_FILE_SEARCH_CONFIG } from './types.js';
|
|
20
|
-
|
|
21
|
-
/** MIME type map for common file extensions. */
|
|
22
|
-
const MIME_MAP: Record<string, string> = {
|
|
23
|
-
'.png': 'image/png', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg',
|
|
24
|
-
'.gif': 'image/gif', '.webp': 'image/webp', '.svg': 'image/svg+xml',
|
|
25
|
-
'.mp4': 'video/mp4', '.mov': 'video/quicktime', '.webm': 'video/webm',
|
|
26
|
-
'.mp3': 'audio/mpeg', '.wav': 'audio/wav', '.ogg': 'audio/ogg',
|
|
27
|
-
'.pdf': 'application/pdf', '.zip': 'application/zip',
|
|
28
|
-
'.txt': 'text/plain', '.json': 'application/json',
|
|
29
|
-
'.csv': 'text/csv', '.md': 'text/markdown',
|
|
30
|
-
'.doc': 'application/msword',
|
|
31
|
-
'.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
32
|
-
'.xls': 'application/vnd.ms-excel',
|
|
33
|
-
'.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
34
|
-
'.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* ITool implementation for local filesystem search.
|
|
39
|
-
* Walks directories recursively, matches files by name, and ranks by relevance.
|
|
40
|
-
*/
|
|
41
|
-
export class LocalFileSearchTool {
|
|
42
|
-
readonly id = 'local_file_search';
|
|
43
|
-
readonly name = 'local_file_search';
|
|
44
|
-
readonly displayName = 'Local File Search';
|
|
45
|
-
readonly description = 'Search for files on the local filesystem by name. Returns matching files sorted by relevance.';
|
|
46
|
-
readonly parameters = {
|
|
47
|
-
type: 'object' as const,
|
|
48
|
-
properties: {
|
|
49
|
-
query: { type: 'string', description: 'Filename or partial filename to search for' },
|
|
50
|
-
directory: { type: 'string', description: 'Specific directory to search (overrides default scope)' },
|
|
51
|
-
},
|
|
52
|
-
required: ['query'],
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
private config: FileSearchConfig;
|
|
56
|
-
|
|
57
|
-
constructor(config?: Partial<FileSearchConfig>) {
|
|
58
|
-
this.config = { ...DEFAULT_FILE_SEARCH_CONFIG, ...config };
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/** Execute the file search. */
|
|
62
|
-
async execute(input: LocalFileSearchInput): Promise<LocalFileSearchOutput> {
|
|
63
|
-
const query = input.query.toLowerCase();
|
|
64
|
-
const rootDir = input.directory ?? '/';
|
|
65
|
-
const matches: FileMatch[] = [];
|
|
66
|
-
let directoriesScanned = 0;
|
|
67
|
-
let timedOut = false;
|
|
68
|
-
const startTime = Date.now();
|
|
69
|
-
|
|
70
|
-
const walk = async (dir: string, depth: number): Promise<void> => {
|
|
71
|
-
if (depth > this.config.maxDepth) return;
|
|
72
|
-
if (Date.now() - startTime > this.config.timeoutMs) { timedOut = true; return; }
|
|
73
|
-
if (this.isDeniedDir(dir)) return;
|
|
74
|
-
|
|
75
|
-
directoriesScanned++;
|
|
76
|
-
let entries;
|
|
77
|
-
try {
|
|
78
|
-
entries = await readdir(dir, { withFileTypes: true });
|
|
79
|
-
} catch { return; } // permission denied, etc.
|
|
80
|
-
|
|
81
|
-
for (const entry of entries) {
|
|
82
|
-
if (timedOut) return;
|
|
83
|
-
const fullPath = join(dir, entry.name);
|
|
84
|
-
|
|
85
|
-
if (entry.isDirectory()) {
|
|
86
|
-
if (!this.isDeniedDir(entry.name) && !this.isDeniedDir(fullPath)) {
|
|
87
|
-
await walk(fullPath, depth + 1);
|
|
88
|
-
}
|
|
89
|
-
} else if (entry.isFile()) {
|
|
90
|
-
if (this.isDeniedFile(entry.name)) continue;
|
|
91
|
-
const relevance = this.scoreRelevance(entry.name.toLowerCase(), query);
|
|
92
|
-
if (relevance > 0) {
|
|
93
|
-
try {
|
|
94
|
-
const fileStat = await stat(fullPath);
|
|
95
|
-
matches.push({
|
|
96
|
-
path: fullPath,
|
|
97
|
-
name: entry.name,
|
|
98
|
-
size: fileStat.size,
|
|
99
|
-
modified: fileStat.mtime.toISOString(),
|
|
100
|
-
mimeType: MIME_MAP[extname(entry.name).toLowerCase()] ?? 'application/octet-stream',
|
|
101
|
-
relevance,
|
|
102
|
-
});
|
|
103
|
-
} catch { /* stat failed — skip */ }
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
await walk(rootDir, 0);
|
|
110
|
-
|
|
111
|
-
matches.sort((a, b) => b.relevance - a.relevance);
|
|
112
|
-
return {
|
|
113
|
-
matches: matches.slice(0, this.config.maxResults),
|
|
114
|
-
directoriesScanned,
|
|
115
|
-
timedOut,
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/** Score how well a filename matches the query. 0 = no match. */
|
|
120
|
-
private scoreRelevance(filename: string, query: string): number {
|
|
121
|
-
const nameNoExt = filename.replace(/\.[^.]+$/, '');
|
|
122
|
-
if (filename === query) return 1.0; // exact match
|
|
123
|
-
if (nameNoExt === query) return 0.95; // match without extension
|
|
124
|
-
if (filename.startsWith(query)) return 0.8; // starts with
|
|
125
|
-
if (nameNoExt.startsWith(query)) return 0.75;
|
|
126
|
-
if (filename.includes(query)) return 0.6; // contains
|
|
127
|
-
if (nameNoExt.includes(query)) return 0.55;
|
|
128
|
-
// Levenshtein for fuzzy (only if query is close in length)
|
|
129
|
-
if (Math.abs(nameNoExt.length - query.length) <= 3) {
|
|
130
|
-
const dist = this.levenshtein(nameNoExt, query);
|
|
131
|
-
if (dist <= 3) return 0.3 - (dist * 0.08);
|
|
132
|
-
}
|
|
133
|
-
return 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/** Check if a directory name or path is in the denylist. */
|
|
137
|
-
private isDeniedDir(nameOrPath: string): boolean {
|
|
138
|
-
const base = basename(nameOrPath);
|
|
139
|
-
return this.config.denylist.some(pattern => {
|
|
140
|
-
if (pattern.startsWith('*')) return false; // glob patterns are for files only
|
|
141
|
-
if (pattern.startsWith('/')) return nameOrPath.startsWith(pattern);
|
|
142
|
-
if (pattern.startsWith('.')) return base === pattern;
|
|
143
|
-
return base === pattern;
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/** Check if a filename matches a glob-style denylist pattern (e.g., *.key). */
|
|
148
|
-
private isDeniedFile(filename: string): boolean {
|
|
149
|
-
return this.config.denylist.some(pattern => {
|
|
150
|
-
if (pattern.startsWith('*.')) {
|
|
151
|
-
return filename.endsWith(pattern.slice(1));
|
|
152
|
-
}
|
|
153
|
-
return false;
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/** Simple Levenshtein distance for fuzzy matching. */
|
|
158
|
-
private levenshtein(a: string, b: string): number {
|
|
159
|
-
const m = a.length, n = b.length;
|
|
160
|
-
const dp: number[][] = Array.from({ length: m + 1 }, () => Array(n + 1).fill(0));
|
|
161
|
-
for (let i = 0; i <= m; i++) dp[i][0] = i;
|
|
162
|
-
for (let j = 0; j <= n; j++) dp[0][j] = j;
|
|
163
|
-
for (let i = 1; i <= m; i++) {
|
|
164
|
-
for (let j = 1; j <= n; j++) {
|
|
165
|
-
dp[i][j] = a[i - 1] === b[j - 1]
|
|
166
|
-
? dp[i - 1][j - 1]
|
|
167
|
-
: 1 + Math.min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return dp[m][n];
|
|
171
|
-
}
|
|
172
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview Extension pack factory for the local-file-search tool.
|
|
4
|
-
* @module agentos-ext-local-file-search
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { LocalFileSearchTool } from './LocalFileSearchTool.js';
|
|
8
|
-
import type { FileSearchConfig } from './types.js';
|
|
9
|
-
|
|
10
|
-
export { LocalFileSearchTool } from './LocalFileSearchTool.js';
|
|
11
|
-
export type { FileSearchConfig, FileMatch, LocalFileSearchInput, LocalFileSearchOutput } from './types.js';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Create the local-file-search extension pack.
|
|
15
|
-
* @param ctx - Extension context with optional configuration.
|
|
16
|
-
*/
|
|
17
|
-
export function createExtensionPack(ctx?: { config?: Partial<FileSearchConfig> }) {
|
|
18
|
-
const tool = new LocalFileSearchTool(ctx?.config);
|
|
19
|
-
return {
|
|
20
|
-
name: '@framers/agentos-ext-local-file-search',
|
|
21
|
-
version: '0.1.0',
|
|
22
|
-
descriptors: [
|
|
23
|
-
{
|
|
24
|
-
id: 'local_file_search',
|
|
25
|
-
kind: 'tool' as const,
|
|
26
|
-
priority: 50,
|
|
27
|
-
payload: tool,
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
};
|
|
31
|
-
}
|
package/src/types.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview Types for the local-file-search extension tool.
|
|
4
|
-
* @module agentos-ext-local-file-search/types
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/** Configuration for file search scope and behavior. */
|
|
8
|
-
export interface FileSearchConfig {
|
|
9
|
-
/** Directories and glob patterns to exclude from search. */
|
|
10
|
-
denylist: string[];
|
|
11
|
-
/** Maximum number of results to return. */
|
|
12
|
-
maxResults: number;
|
|
13
|
-
/** Maximum directory depth to traverse. */
|
|
14
|
-
maxDepth: number;
|
|
15
|
-
/** Timeout in milliseconds — returns best results found so far. */
|
|
16
|
-
timeoutMs: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/** A single file match result. */
|
|
20
|
-
export interface FileMatch {
|
|
21
|
-
/** Absolute path to the file. */
|
|
22
|
-
path: string;
|
|
23
|
-
/** File name (basename). */
|
|
24
|
-
name: string;
|
|
25
|
-
/** File size in bytes. */
|
|
26
|
-
size: number;
|
|
27
|
-
/** ISO 8601 last modified timestamp. */
|
|
28
|
-
modified: string;
|
|
29
|
-
/** Detected MIME type based on extension. */
|
|
30
|
-
mimeType: string;
|
|
31
|
-
/** Relevance score (higher is better). */
|
|
32
|
-
relevance: number;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/** Input schema for the local_file_search tool. */
|
|
36
|
-
export interface LocalFileSearchInput {
|
|
37
|
-
/** Filename or partial filename to search for. */
|
|
38
|
-
query: string;
|
|
39
|
-
/** Specific directory to search (overrides full filesystem scan). */
|
|
40
|
-
directory?: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/** Output schema for the local_file_search tool. */
|
|
44
|
-
export interface LocalFileSearchOutput {
|
|
45
|
-
/** Array of matching files sorted by relevance. */
|
|
46
|
-
matches: FileMatch[];
|
|
47
|
-
/** Number of directories scanned. */
|
|
48
|
-
directoriesScanned: number;
|
|
49
|
-
/** Whether the search timed out before completing. */
|
|
50
|
-
timedOut: boolean;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/** Default file search configuration. */
|
|
54
|
-
export const DEFAULT_FILE_SEARCH_CONFIG: FileSearchConfig = {
|
|
55
|
-
denylist: [
|
|
56
|
-
'/proc', '/sys', '/dev',
|
|
57
|
-
'node_modules', '.git', '.env',
|
|
58
|
-
'.ssh', '.gnupg', '.aws',
|
|
59
|
-
'*.key', '*.pem', '*.secret',
|
|
60
|
-
],
|
|
61
|
-
maxResults: 10,
|
|
62
|
-
maxDepth: 10,
|
|
63
|
-
timeoutMs: 10_000,
|
|
64
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { describe, it, expect, beforeAll, afterAll } from 'vitest';
|
|
3
|
-
import { mkdirSync, writeFileSync, rmSync } from 'node:fs';
|
|
4
|
-
import { join } from 'node:path';
|
|
5
|
-
import { tmpdir } from 'node:os';
|
|
6
|
-
import { LocalFileSearchTool } from '../src/LocalFileSearchTool.js';
|
|
7
|
-
|
|
8
|
-
const TEST_DIR = join(tmpdir(), 'lfs-test-' + Date.now());
|
|
9
|
-
|
|
10
|
-
beforeAll(() => {
|
|
11
|
-
mkdirSync(join(TEST_DIR, 'docs'), { recursive: true });
|
|
12
|
-
mkdirSync(join(TEST_DIR, 'pics'), { recursive: true });
|
|
13
|
-
mkdirSync(join(TEST_DIR, 'node_modules', 'pkg'), { recursive: true });
|
|
14
|
-
mkdirSync(join(TEST_DIR, '.ssh'), { recursive: true });
|
|
15
|
-
writeFileSync(join(TEST_DIR, 'docs', 'report.pdf'), 'fake pdf');
|
|
16
|
-
writeFileSync(join(TEST_DIR, 'docs', 'notes.txt'), 'some notes');
|
|
17
|
-
writeFileSync(join(TEST_DIR, 'pics', 'photo.png'), 'fake png');
|
|
18
|
-
writeFileSync(join(TEST_DIR, 'pics', 'sunset.jpg'), 'fake jpg');
|
|
19
|
-
writeFileSync(join(TEST_DIR, 'node_modules', 'pkg', 'index.js'), 'module');
|
|
20
|
-
writeFileSync(join(TEST_DIR, '.ssh', 'id_rsa.key'), 'secret');
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
afterAll(() => {
|
|
24
|
-
rmSync(TEST_DIR, { recursive: true, force: true });
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
describe('LocalFileSearchTool', () => {
|
|
28
|
-
const tool = new LocalFileSearchTool({
|
|
29
|
-
denylist: ['node_modules', '.ssh', '*.key'],
|
|
30
|
-
maxResults: 10,
|
|
31
|
-
maxDepth: 5,
|
|
32
|
-
timeoutMs: 5000,
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it('finds files by exact name', async () => {
|
|
36
|
-
const result = await tool.execute({ query: 'report.pdf', directory: TEST_DIR });
|
|
37
|
-
expect(result.matches.length).toBeGreaterThanOrEqual(1);
|
|
38
|
-
expect(result.matches[0].name).toBe('report.pdf');
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it('finds files by partial name', async () => {
|
|
42
|
-
const result = await tool.execute({ query: 'photo', directory: TEST_DIR });
|
|
43
|
-
expect(result.matches.some(m => m.name === 'photo.png')).toBe(true);
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
it('respects denylist — skips node_modules', async () => {
|
|
47
|
-
const result = await tool.execute({ query: 'index.js', directory: TEST_DIR });
|
|
48
|
-
expect(result.matches.length).toBe(0);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
it('respects denylist — skips .ssh', async () => {
|
|
52
|
-
const result = await tool.execute({ query: 'id_rsa', directory: TEST_DIR });
|
|
53
|
-
expect(result.matches.length).toBe(0);
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('respects glob denylist — skips *.key files', async () => {
|
|
57
|
-
const result = await tool.execute({ query: 'id_rsa.key', directory: TEST_DIR });
|
|
58
|
-
expect(result.matches.length).toBe(0);
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
it('ranks exact matches higher than partial', async () => {
|
|
62
|
-
const result = await tool.execute({ query: 'notes.txt', directory: TEST_DIR });
|
|
63
|
-
expect(result.matches[0].name).toBe('notes.txt');
|
|
64
|
-
expect(result.matches[0].relevance).toBeGreaterThan(0.8);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
it('returns size and mimeType', async () => {
|
|
68
|
-
const result = await tool.execute({ query: 'photo.png', directory: TEST_DIR });
|
|
69
|
-
expect(result.matches[0].size).toBeGreaterThan(0);
|
|
70
|
-
expect(result.matches[0].mimeType).toBe('image/png');
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
it('limits results to maxResults', async () => {
|
|
74
|
-
const smallTool = new LocalFileSearchTool({
|
|
75
|
-
denylist: ['node_modules', '.ssh', '*.key'],
|
|
76
|
-
maxResults: 1,
|
|
77
|
-
maxDepth: 5,
|
|
78
|
-
timeoutMs: 5000,
|
|
79
|
-
});
|
|
80
|
-
const result = await smallTool.execute({ query: '.', directory: TEST_DIR });
|
|
81
|
-
expect(result.matches.length).toBeLessThanOrEqual(1);
|
|
82
|
-
});
|
|
83
|
-
});
|
package/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"outDir": "dist",
|
|
10
|
-
"rootDir": "src",
|
|
11
|
-
"strict": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"skipLibCheck": true
|
|
14
|
-
},
|
|
15
|
-
"include": ["src"],
|
|
16
|
-
"exclude": ["dist", "test", "node_modules"]
|
|
17
|
-
}
|