codesift-mcp 0.2.6 → 0.2.7
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/cli/commands.d.ts.map +1 -1
- package/dist/cli/commands.js +5 -1
- package/dist/cli/commands.js.map +1 -1
- package/dist/cli/help.d.ts +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +14 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/hooks.d.ts +1 -0
- package/dist/cli/hooks.d.ts.map +1 -1
- package/dist/cli/hooks.js +170 -61
- package/dist/cli/hooks.js.map +1 -1
- package/dist/cli/platform.d.ts +12 -0
- package/dist/cli/platform.d.ts.map +1 -0
- package/dist/cli/platform.js +36 -0
- package/dist/cli/platform.js.map +1 -0
- package/dist/cli/setup.d.ts +6 -0
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +161 -121
- package/dist/cli/setup.js.map +1 -1
- package/dist/cli/shell-templates.d.ts +4 -0
- package/dist/cli/shell-templates.d.ts.map +1 -0
- package/dist/cli/shell-templates.js +86 -0
- package/dist/cli/shell-templates.js.map +1 -0
- package/dist/instructions.d.ts +1 -1
- package/dist/instructions.d.ts.map +1 -1
- package/dist/instructions.js +4 -4
- package/dist/register-tools.d.ts.map +1 -1
- package/dist/register-tools.js +68 -42
- package/dist/register-tools.js.map +1 -1
- package/dist/server-helpers.d.ts.map +1 -1
- package/dist/server-helpers.js +13 -1
- package/dist/server-helpers.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +17 -0
- package/dist/server.js.map +1 -1
- package/dist/tools/project-tools.d.ts +107 -0
- package/dist/tools/project-tools.d.ts.map +1 -0
- package/dist/tools/project-tools.js +535 -0
- package/dist/tools/project-tools.js.map +1 -0
- package/package.json +1 -1
- package/rules/codesift.md +7 -9
- package/rules/codesift.mdc +6 -8
- package/rules/codex.md +6 -8
- package/rules/gemini.md +6 -8
package/rules/codex.md
CHANGED
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
## Setup
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
2. If the repo is missing: `index_folder(path=<root>)` once to index it.
|
|
11
|
-
3. Use `"local/<folder-name>"` as the `repo` parameter for all tool calls.
|
|
7
|
+
The `repo` parameter auto-resolves from the current working directory — no need to call `list_repos`.
|
|
8
|
+
If the repo is not yet indexed, run `index_folder(path=<root>)` once.
|
|
9
|
+
For multi-repo sessions, call `list_repos()` to discover available repos.
|
|
12
10
|
|
|
13
11
|
## Tool Discovery
|
|
14
12
|
|
|
@@ -131,7 +129,7 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
|
|
|
131
129
|
|------|---------|--------|
|
|
132
130
|
| `H1(n)` | n matches returned | Add `group_by_file=true` |
|
|
133
131
|
| `H2(n,tool)` | n consecutive identical calls | Batch into one `tool` call |
|
|
134
|
-
| `H3(n)` | `list_repos` called n times |
|
|
132
|
+
| `H3(n)` | `list_repos` called n times | Repo auto-resolves from CWD, no need to call |
|
|
135
133
|
| `H4` | `include_source` without `file_pattern` | Add `file_pattern` |
|
|
136
134
|
| `H5(path)` | Duplicate `get_file_tree` | Use cached result |
|
|
137
135
|
| `H6(n)` | n results without `detail_level` | Add `detail_level='compact'` |
|
|
@@ -153,8 +151,8 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
|
|
|
153
151
|
|
|
154
152
|
## NEVER
|
|
155
153
|
|
|
156
|
-
- Call `index_folder` if repo already
|
|
157
|
-
- Call `list_repos`
|
|
154
|
+
- Call `index_folder` if repo is already indexed — file watcher auto-updates
|
|
155
|
+
- Call `list_repos` in single-repo sessions — repo auto-resolves from CWD
|
|
158
156
|
- Use manual Edit on multiple files for rename — use `rename_symbol`
|
|
159
157
|
- Read entire file just to get a return type — use `get_type_info`
|
|
160
158
|
- Index worktrees — use the main repo index
|
package/rules/gemini.md
CHANGED
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
## Setup
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
2. If the repo is missing: `index_folder(path=<root>)` once to index it.
|
|
11
|
-
3. Use `"local/<folder-name>"` as the `repo` parameter for all tool calls.
|
|
7
|
+
The `repo` parameter auto-resolves from the current working directory — no need to call `list_repos`.
|
|
8
|
+
If the repo is not yet indexed, run `index_folder(path=<root>)` once.
|
|
9
|
+
For multi-repo sessions, call `list_repos()` to discover available repos.
|
|
12
10
|
|
|
13
11
|
## Tool Discovery
|
|
14
12
|
|
|
@@ -131,7 +129,7 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
|
|
|
131
129
|
|------|---------|--------|
|
|
132
130
|
| `H1(n)` | n matches returned | Add `group_by_file=true` |
|
|
133
131
|
| `H2(n,tool)` | n consecutive identical calls | Batch into one `tool` call |
|
|
134
|
-
| `H3(n)` | `list_repos` called n times |
|
|
132
|
+
| `H3(n)` | `list_repos` called n times | Repo auto-resolves from CWD, no need to call |
|
|
135
133
|
| `H4` | `include_source` without `file_pattern` | Add `file_pattern` |
|
|
136
134
|
| `H5(path)` | Duplicate `get_file_tree` | Use cached result |
|
|
137
135
|
| `H6(n)` | n results without `detail_level` | Add `detail_level='compact'` |
|
|
@@ -153,8 +151,8 @@ The server appends hint codes to responses to guide tool usage. Act on them imme
|
|
|
153
151
|
|
|
154
152
|
## NEVER
|
|
155
153
|
|
|
156
|
-
- Call `index_folder` if repo already
|
|
157
|
-
- Call `list_repos`
|
|
154
|
+
- Call `index_folder` if repo is already indexed — file watcher auto-updates
|
|
155
|
+
- Call `list_repos` in single-repo sessions — repo auto-resolves from CWD
|
|
158
156
|
- Use manual Edit on multiple files for rename — use `rename_symbol`
|
|
159
157
|
- Read entire file just to get a return type — use `get_type_info`
|
|
160
158
|
- Index worktrees — use the main repo index
|