omni-context-cli 0.0.34 → 0.0.35
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/agents/glance.md +58 -0
- package/dist/agents/{craft.md → spark.md} +1 -1
- package/dist/cli.js +7 -7
- package/package.json +1 -1
- package/dist/agents/morph.md +0 -52
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: glance
|
|
3
|
+
description: Preview multiple files at once. Reads files and directories, returns a brief summary for each file to help understand what's in them without reading the full contents.
|
|
4
|
+
allowedTools: [Read, Glob, Grep]
|
|
5
|
+
parameters:
|
|
6
|
+
properties:
|
|
7
|
+
paths:
|
|
8
|
+
type: array
|
|
9
|
+
items:
|
|
10
|
+
type: string
|
|
11
|
+
description: List of file or directory paths to preview.
|
|
12
|
+
recursive:
|
|
13
|
+
type: boolean
|
|
14
|
+
description: Recursively scan directories? Defaults to false.
|
|
15
|
+
maxFiles:
|
|
16
|
+
type: number
|
|
17
|
+
description: Maximum number of files to process. Defaults to 20.
|
|
18
|
+
required: [paths]
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
Preview these files and directories: {{paths}}
|
|
22
|
+
|
|
23
|
+
{{#if recursive}}Recursively scan directories.{{else}}Only scan the top level of directories.{{/if}}
|
|
24
|
+
|
|
25
|
+
Maximum files to process: {{#if maxFiles}}{{maxFiles}}{{else}}20 (default){{/if}}.
|
|
26
|
+
|
|
27
|
+
First, expand any directories into file lists using glob. Then read each file and write a brief summary (under 100 words) describing what the file does, its main exports, or key contents.
|
|
28
|
+
|
|
29
|
+
Return the summaries in this format:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
path/to/file1.ts
|
|
33
|
+
Brief summary of what this file does, its purpose, main functions or exports.
|
|
34
|
+
|
|
35
|
+
path/to/file2.tsx
|
|
36
|
+
Brief summary of this file's contents and role in the project.
|
|
37
|
+
|
|
38
|
+
path/to/file3.json
|
|
39
|
+
Brief summary of the configuration or data structure.
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
If a file can't be read, note it:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
path/to/file.bin
|
|
46
|
+
[Binary file, skipped]
|
|
47
|
+
|
|
48
|
+
path/to/missing.ts
|
|
49
|
+
[File not found]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
If the file list exceeds the limit, process only the first N files and note:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
[Reached limit of N files, X more files not processed]
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Do not include explanations beyond the result format. Keep responses concise and structured.
|