cocoindex-code 0.2.41__tar.gz → 0.2.42__tar.gz

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.
Files changed (26) hide show
  1. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/PKG-INFO +43 -4
  2. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/README.md +41 -2
  3. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/_version.py +2 -2
  4. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/settings.py +2 -0
  5. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/.gitignore +0 -0
  6. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/LICENSE +0 -0
  7. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/pyproject.toml +0 -0
  8. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/__init__.py +0 -0
  9. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/__main__.py +0 -0
  10. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/_daemon_paths.py +0 -0
  11. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/chunking.py +0 -0
  12. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/cli.py +0 -0
  13. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/client.py +0 -0
  14. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/daemon.py +0 -0
  15. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/embedder_defaults.py +0 -0
  16. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/embedder_params.py +0 -0
  17. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/file_walk.py +0 -0
  18. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/grep.py +0 -0
  19. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/indexer.py +0 -0
  20. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/litellm_embedder.py +0 -0
  21. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/project.py +0 -0
  22. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/protocol.py +0 -0
  23. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/query.py +0 -0
  24. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/schema.py +0 -0
  25. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/server.py +0 -0
  26. {cocoindex_code-0.2.41 → cocoindex_code-0.2.42}/src/cocoindex_code/shared.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: cocoindex-code
3
- Version: 0.2.41
3
+ Version: 0.2.42
4
4
  Summary: MCP server for indexing and querying codebases using CocoIndex
5
5
  Project-URL: Homepage, https://github.com/cocoindex-io/cocoindex-code
6
6
  Project-URL: Repository, https://github.com/cocoindex-io/cocoindex-code
@@ -141,7 +141,7 @@ For [Grok](https://github.com/xai-org/grok) users, install via Grok's plugin sys
141
141
  | Component | Purpose |
142
142
  |-----------|---------|
143
143
  | **Skill** (`skills/ccc/`) | Agent runs `ccc search` / `ccc index` via the CLI (same as Claude Code above) |
144
- | **Hook** (`hooks/hooks.json`) | `SessionStart` → incremental `ccc index` when `.cocoindex_code/` exists |
144
+ | **Hook** (`hooks/hooks.json`) | `SessionStart` + `PostToolUse` (Edit/Write/…) → incremental `ccc index` when `.cocoindex_code/` exists |
145
145
  | **MCP** (`.mcp.json`) | `ccc mcp` stdio server — `search` tool with `refresh_index=true` by default |
146
146
 
147
147
  Grok does **not** import Claude's `enabledPlugins` or plugin cache; install separately even if you already use cocoindex in Claude Code.
@@ -162,7 +162,7 @@ Prefer the GitHub shorthand (`cocoindex-io/cocoindex-code`) for install — `gro
162
162
 
163
163
  Install and enable as above, then disable the optional components:
164
164
 
165
- 1. **Hooks** — open `/hooks`, select the `SessionStart` hook from `cocoindex-code`, press `Space` to disable.
165
+ 1. **Hooks** — open `/hooks`, select the `SessionStart` / `PostToolUse` hooks from `cocoindex-code`, press `Space` to disable.
166
166
  2. **MCP** — open `/mcps`, select `cocoindex-code`, press `Space` to disable; or persist in `~/.grok/config.toml`:
167
167
 
168
168
  ```toml
@@ -182,6 +182,27 @@ mcps = false
182
182
  mcps = false
183
183
  ```
184
184
 
185
+ #### Oh My Pi plugin
186
+
187
+ [Oh My Pi](https://github.com/can1357/oh-my-pi) reads `.omp-plugin/marketplace.json` (preferred) and falls back to `.claude-plugin/marketplace.json`.
188
+
189
+ ```bash
190
+ omp plugin marketplace add cocoindex-io/cocoindex-code
191
+ omp plugin install cocoindex-code@cocoindex-code --scope project
192
+ ```
193
+
194
+ Then restart the session (`/reload-plugins` does not reload extensions). Requires `ccc` on `PATH` (`uv tool install --upgrade 'cocoindex-code[full]'`).
195
+
196
+ | Component | Purpose |
197
+ |-----------|---------|
198
+ | **Skill** (`skills/ccc/`) | Agent runs `ccc search` / `ccc index` via the CLI |
199
+ | **Hook** (`extensions/ccc-index.ts` via `package.json#omp.extensions`) | `session_start` + post-edit `tool_result` → incremental `ccc index` when `.cocoindex_code/` exists |
200
+ | **MCP** (`.mcp.json`) | `ccc mcp` stdio server |
201
+
202
+ OMP does **not** execute Claude `hooks/hooks.json` command hooks. The TypeScript extension is the OMP equivalent of the Claude/Grok SessionStart + PostToolUse pair.
203
+
204
+ Skill-only (no MCP, no auto-index): install the skill via `npx skills add cocoindex-io/cocoindex-code`, or run `ccc search` / `ccc index` from the shell.
205
+
185
206
  ### MCP Server
186
207
 
187
208
  Alternatively, use `ccc mcp` to run as an MCP server:
@@ -246,6 +267,23 @@ Add a local MCP server in `~/.config/kilo/kilo.jsonc`, `kilo.jsonc`, or `.kilo/k
246
267
  ```
247
268
  </details>
248
269
 
270
+ <details>
271
+ <summary>Oh My Pi</summary>
272
+
273
+ Prefer the marketplace install above. Manual project MCP (`.omp/mcp.json`):
274
+
275
+ ```json
276
+ {
277
+ "mcpServers": {
278
+ "cocoindex-code": {
279
+ "command": "ccc",
280
+ "args": ["mcp"]
281
+ }
282
+ }
283
+ }
284
+ ```
285
+ </details>
286
+
249
287
  Once configured, the agent automatically decides when semantic code search is helpful — finding code by description, exploring unfamiliar codebases, fuzzy/conceptual matches, or locating implementations without knowing exact names.
250
288
 
251
289
  > **Note:** The `cocoindex-code` command (without subcommand) still works as an MCP server for backward compatibility. It auto-creates settings from environment variables on first run.
@@ -850,6 +888,7 @@ embedding:
850
888
  | css | | `.css`, `.scss` |
851
889
  | dart | | `.dart` |
852
890
  | dtd | | `.dtd` |
891
+ | elixir | | `.ex`, `.exs` |
853
892
  | fortran | f, f90, f95, f03 | `.f`, `.f90`, `.f95`, `.f03` |
854
893
  | go | golang | `.go` |
855
894
  | html | | `.html`, `.htm` |
@@ -97,7 +97,7 @@ For [Grok](https://github.com/xai-org/grok) users, install via Grok's plugin sys
97
97
  | Component | Purpose |
98
98
  |-----------|---------|
99
99
  | **Skill** (`skills/ccc/`) | Agent runs `ccc search` / `ccc index` via the CLI (same as Claude Code above) |
100
- | **Hook** (`hooks/hooks.json`) | `SessionStart` → incremental `ccc index` when `.cocoindex_code/` exists |
100
+ | **Hook** (`hooks/hooks.json`) | `SessionStart` + `PostToolUse` (Edit/Write/…) → incremental `ccc index` when `.cocoindex_code/` exists |
101
101
  | **MCP** (`.mcp.json`) | `ccc mcp` stdio server — `search` tool with `refresh_index=true` by default |
102
102
 
103
103
  Grok does **not** import Claude's `enabledPlugins` or plugin cache; install separately even if you already use cocoindex in Claude Code.
@@ -118,7 +118,7 @@ Prefer the GitHub shorthand (`cocoindex-io/cocoindex-code`) for install — `gro
118
118
 
119
119
  Install and enable as above, then disable the optional components:
120
120
 
121
- 1. **Hooks** — open `/hooks`, select the `SessionStart` hook from `cocoindex-code`, press `Space` to disable.
121
+ 1. **Hooks** — open `/hooks`, select the `SessionStart` / `PostToolUse` hooks from `cocoindex-code`, press `Space` to disable.
122
122
  2. **MCP** — open `/mcps`, select `cocoindex-code`, press `Space` to disable; or persist in `~/.grok/config.toml`:
123
123
 
124
124
  ```toml
@@ -138,6 +138,27 @@ mcps = false
138
138
  mcps = false
139
139
  ```
140
140
 
141
+ #### Oh My Pi plugin
142
+
143
+ [Oh My Pi](https://github.com/can1357/oh-my-pi) reads `.omp-plugin/marketplace.json` (preferred) and falls back to `.claude-plugin/marketplace.json`.
144
+
145
+ ```bash
146
+ omp plugin marketplace add cocoindex-io/cocoindex-code
147
+ omp plugin install cocoindex-code@cocoindex-code --scope project
148
+ ```
149
+
150
+ Then restart the session (`/reload-plugins` does not reload extensions). Requires `ccc` on `PATH` (`uv tool install --upgrade 'cocoindex-code[full]'`).
151
+
152
+ | Component | Purpose |
153
+ |-----------|---------|
154
+ | **Skill** (`skills/ccc/`) | Agent runs `ccc search` / `ccc index` via the CLI |
155
+ | **Hook** (`extensions/ccc-index.ts` via `package.json#omp.extensions`) | `session_start` + post-edit `tool_result` → incremental `ccc index` when `.cocoindex_code/` exists |
156
+ | **MCP** (`.mcp.json`) | `ccc mcp` stdio server |
157
+
158
+ OMP does **not** execute Claude `hooks/hooks.json` command hooks. The TypeScript extension is the OMP equivalent of the Claude/Grok SessionStart + PostToolUse pair.
159
+
160
+ Skill-only (no MCP, no auto-index): install the skill via `npx skills add cocoindex-io/cocoindex-code`, or run `ccc search` / `ccc index` from the shell.
161
+
141
162
  ### MCP Server
142
163
 
143
164
  Alternatively, use `ccc mcp` to run as an MCP server:
@@ -202,6 +223,23 @@ Add a local MCP server in `~/.config/kilo/kilo.jsonc`, `kilo.jsonc`, or `.kilo/k
202
223
  ```
203
224
  </details>
204
225
 
226
+ <details>
227
+ <summary>Oh My Pi</summary>
228
+
229
+ Prefer the marketplace install above. Manual project MCP (`.omp/mcp.json`):
230
+
231
+ ```json
232
+ {
233
+ "mcpServers": {
234
+ "cocoindex-code": {
235
+ "command": "ccc",
236
+ "args": ["mcp"]
237
+ }
238
+ }
239
+ }
240
+ ```
241
+ </details>
242
+
205
243
  Once configured, the agent automatically decides when semantic code search is helpful — finding code by description, exploring unfamiliar codebases, fuzzy/conceptual matches, or locating implementations without knowing exact names.
206
244
 
207
245
  > **Note:** The `cocoindex-code` command (without subcommand) still works as an MCP server for backward compatibility. It auto-creates settings from environment variables on first run.
@@ -806,6 +844,7 @@ embedding:
806
844
  | css | | `.css`, `.scss` |
807
845
  | dart | | `.dart` |
808
846
  | dtd | | `.dtd` |
847
+ | elixir | | `.ex`, `.exs` |
809
848
  | fortran | f, f90, f95, f03 | `.f`, `.f90`, `.f95`, `.f03` |
810
849
  | go | golang | `.go` |
811
850
  | html | | `.html`, `.htm` |
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.2.41'
22
- __version_tuple__ = version_tuple = (0, 2, 41)
21
+ __version__ = version = '0.2.42'
22
+ __version_tuple__ = version_tuple = (0, 2, 42)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -38,6 +38,8 @@ DEFAULT_INCLUDED_PATTERNS: list[str] = [
38
38
  "**/*.hh", # C++ headers
39
39
  "**/*.cs", # C#
40
40
  "**/*.dart", # Dart
41
+ "**/*.ex", # Elixir
42
+ "**/*.exs", # Elixir scripts
41
43
  "**/*.sql", # SQL
42
44
  "**/*.sh", # Shell
43
45
  "**/*.bash", # Bash
File without changes