emdash-ai 0.1.39__py3-none-any.whl → 0.1.67__py3-none-any.whl

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.
emdash_ai/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """emdash-ai: Graph-based coding intelligence system."""
2
+
3
+ __version__ = "0.1.46"
@@ -0,0 +1,264 @@
1
+ Metadata-Version: 2.4
2
+ Name: emdash-ai
3
+ Version: 0.1.67
4
+ Summary: Graph-based coding intelligence system - The 'Senior Engineer' Context Engine
5
+ Author: Em Dash Team
6
+ Requires-Python: >=3.10,<4.0
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ Classifier: Programming Language :: Python :: 3.14
13
+ Provides-Extra: local
14
+ Requires-Dist: astroid (>=3.0.1,<4.0.0)
15
+ Requires-Dist: click (>=8.1.7,<9.0.0)
16
+ Requires-Dist: cmake (>=3.25.0)
17
+ Requires-Dist: emdash-cli (>=0.1.67)
18
+ Requires-Dist: emdash-core (>=0.1.67)
19
+ Requires-Dist: gitpython (>=3.1.40,<4.0.0)
20
+ Requires-Dist: httpx (>=0.25.0)
21
+ Requires-Dist: kuzu (>=0.4.0)
22
+ Requires-Dist: loguru (>=0.7.2,<0.8.0)
23
+ Requires-Dist: networkx (>=3.2.1,<4.0.0)
24
+ Requires-Dist: numpy (>=1.26.0)
25
+ Requires-Dist: openai (>=1.0.0)
26
+ Requires-Dist: prompt_toolkit (>=3.0.43,<4.0.0)
27
+ Requires-Dist: pydantic (>=2.5.0,<3.0.0)
28
+ Requires-Dist: pygithub (>=2.1.1,<3.0.0)
29
+ Requires-Dist: pypng (>=0.0.21,<0.0.22)
30
+ Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
31
+ Requires-Dist: python-louvain (>=0.16,<0.17)
32
+ Requires-Dist: rich (>=13.7.0)
33
+ Requires-Dist: scipy (>=1.11.4,<2.0.0)
34
+ Requires-Dist: sentence-transformers (>=2.2.0)
35
+ Requires-Dist: supabase (>=2.0.0)
36
+ Requires-Dist: textual (>=0.47.0)
37
+ Requires-Dist: tqdm (>=4.66.1,<5.0.0)
38
+ Description-Content-Type: text/markdown
39
+
40
+ # emdash-ai
41
+
42
+ Graph-based coding intelligence system - The 'Senior Engineer' Context Engine
43
+
44
+ ## Quick Install
45
+
46
+ ```bash
47
+ curl -sSL "https://gist.githubusercontent.com/mendyEdri/fded37baab4a556cb13920ab79d2bab9/raw/install.sh?$(date +%s)" | bash
48
+ ```
49
+
50
+ This creates an isolated installation at `~/.emdash` and adds the `em` command to your PATH.
51
+
52
+ ### Update / Reinstall
53
+
54
+ ```bash
55
+ # Update to latest version (run same command again)
56
+ curl -sSL "https://gist.githubusercontent.com/mendyEdri/fded37baab4a556cb13920ab79d2bab9/raw/install.sh?$(date +%s)" | bash
57
+
58
+ # Force fresh reinstall
59
+ curl -sSL "https://gist.githubusercontent.com/mendyEdri/fded37baab4a556cb13920ab79d2bab9/raw/install.sh?$(date +%s)" | bash -s -- --reinstall
60
+
61
+ # Install with graph database support
62
+ curl -sSL "https://gist.githubusercontent.com/mendyEdri/fded37baab4a556cb13920ab79d2bab9/raw/install.sh?$(date +%s)" | bash -s -- --with-graph
63
+ ```
64
+
65
+ ## Alternative Installation
66
+
67
+ Using pip (requires Python 3.10+):
68
+ ```bash
69
+ pip install emdash-ai
70
+ ```
71
+
72
+ With graph database support (optional):
73
+ ```bash
74
+ pip install 'emdash-ai[graph]'
75
+ ```
76
+
77
+ ## Usage
78
+
79
+ ```bash
80
+ em # Start the AI coding agent
81
+ emdash index # Index your codebase
82
+ emdash agent # Start the AI agent (alternative)
83
+ ```
84
+
85
+ ## Slash Commands
86
+
87
+ Once inside the agent REPL, use these slash commands:
88
+
89
+ ### Mode Switching
90
+
91
+ | Command | Description |
92
+ |---------|-------------|
93
+ | `/plan` | Switch to plan mode (explore codebase, create plans) |
94
+ | `/code` | Switch to code mode (execute file changes) |
95
+ | `/mode` | Show current operating mode |
96
+
97
+ ### Generation & Research
98
+
99
+ | Command | Description |
100
+ |---------|-------------|
101
+ | `/projectmd` | Generate PROJECT.md describing your codebase architecture |
102
+ | `/pr [url]` | Review a pull request (e.g., `/pr 123` or `/pr https://github.com/org/repo/pull/123`) |
103
+ | `/research [goal]` | Deep research on a topic (e.g., `/research How does auth work?`) |
104
+
105
+ ### Status & Context
106
+
107
+ | Command | Description |
108
+ |---------|-------------|
109
+ | `/status` | Show index and PROJECT.md status |
110
+ | `/context` | Show current context frame (tokens, reranked items) |
111
+ | `/compact` | Compact message history using LLM summarization |
112
+ | `/spec` | Show current specification from plan mode |
113
+
114
+ ### Todo Management
115
+
116
+ | Command | Description |
117
+ |---------|-------------|
118
+ | `/todos` | Show current agent todo list |
119
+ | `/todo-add [title]` | Add a todo item for the agent |
120
+
121
+ ### Session Management
122
+
123
+ | Command | Description |
124
+ |---------|-------------|
125
+ | `/session` | Interactive session menu |
126
+ | `/session save [name]` | Save current session |
127
+ | `/session load [name]` | Load a saved session |
128
+ | `/session list` | List all saved sessions |
129
+ | `/session delete [name]` | Delete a session |
130
+ | `/reset` | Reset session state |
131
+
132
+ ### Configuration
133
+
134
+ | Command | Description |
135
+ |---------|-------------|
136
+ | `/agents` | Manage agents (create, show, edit, delete) |
137
+ | `/rules` | Manage rules that guide agent behavior |
138
+ | `/skills` | Manage reusable skills |
139
+ | `/hooks` | Manage event hooks (triggers on tool_start, session_end, etc.) |
140
+ | `/mcp` | Manage MCP servers |
141
+ | `/registry` | Browse and install community skills, rules, agents, and verifiers |
142
+ | `/setup` | Interactive setup wizard |
143
+
144
+ ### Verification
145
+
146
+ | Command | Description |
147
+ |---------|-------------|
148
+ | `/verify` | Run verification checks on current work |
149
+ | `/verify-loop [task]` | Run task in loop until all verifications pass |
150
+
151
+ ### Authentication & Diagnostics
152
+
153
+ | Command | Description |
154
+ |---------|-------------|
155
+ | `/auth` | GitHub authentication (login, logout, status) |
156
+ | `/doctor` | Check environment and diagnose issues |
157
+
158
+ ### Help & Exit
159
+
160
+ | Command | Description |
161
+ |---------|-------------|
162
+ | `/help` | Show available commands |
163
+ | `/quit` | Exit the agent (also `/exit`, `/q`) |
164
+
165
+ ## Keyboard Shortcuts
166
+
167
+ | Shortcut | Action |
168
+ |----------|--------|
169
+ | `Ctrl+Space` | Auto-complete commands |
170
+ | `Alt+Enter` | Multi-line input |
171
+ | `Ctrl+V` | Paste image from clipboard |
172
+ | `@filename` | Reference a file in your prompt |
173
+
174
+ ## Features
175
+
176
+ - Graph-based code analysis
177
+ - Semantic code search
178
+ - AI-powered code exploration
179
+ - MCP server integration
180
+ - Session persistence
181
+ - Custom agents, rules, and skills
182
+ - Event hooks for automation
183
+ - Verification loops
184
+
185
+ ## Configuration
186
+
187
+ Configuration files are stored in `.emdash/` in your project root:
188
+
189
+ ```
190
+ .emdash/
191
+ ├── agents/ # Custom agent definitions
192
+ ├── rules/ # Coding rules and guidelines
193
+ ├── skills/ # Reusable skills
194
+ ├── sessions/ # Saved sessions
195
+ └── hooks.json # Event hooks configuration
196
+ ```
197
+
198
+ Global config at `~/.config/emdash/`:
199
+ ```
200
+ ~/.config/emdash/
201
+ ├── mcp.json # MCP server configuration
202
+ └── config.json # Global settings
203
+ ```
204
+
205
+ ## Troubleshooting
206
+
207
+ ### "permission denied: em"
208
+
209
+ If you get `zsh: permission denied: em` or similar, the wrapper script doesn't have execute permissions:
210
+
211
+ ```bash
212
+ # Fix permissions
213
+ chmod +x ~/.local/bin/em ~/.local/bin/emdash
214
+
215
+ # Or reinstall
216
+ emdash update --reinstall
217
+ ```
218
+
219
+ ### Command not found
220
+
221
+ If `em` or `emdash` is not found, add `~/.local/bin` to your PATH:
222
+
223
+ ```bash
224
+ # For zsh (add to ~/.zshrc)
225
+ export PATH="$HOME/.local/bin:$PATH"
226
+
227
+ # For bash (add to ~/.bashrc or ~/.bash_profile)
228
+ export PATH="$HOME/.local/bin:$PATH"
229
+
230
+ # Then reload
231
+ source ~/.zshrc # or ~/.bashrc
232
+ ```
233
+
234
+ ### Debug installation
235
+
236
+ ```bash
237
+ # Check which em is being found
238
+ which em
239
+ type em
240
+
241
+ # Check permissions
242
+ ls -la ~/.local/bin/em
243
+
244
+ # Check installed version
245
+ ~/.emdash/venv/bin/pip show emdash-ai
246
+ ```
247
+
248
+ ## Uninstall
249
+
250
+ ```bash
251
+ curl -sSL "https://gist.githubusercontent.com/mendyEdri/fded37baab4a556cb13920ab79d2bab9/raw/install.sh?$(date +%s)" | bash -s -- --uninstall
252
+ ```
253
+
254
+ Or manually:
255
+ ```bash
256
+ rm -rf ~/.emdash ~/.local/bin/em ~/.local/bin/emdash
257
+ ```
258
+
259
+ Options:
260
+ ```bash
261
+ # Skip confirmation prompt
262
+ curl -sSL ... | bash -s -- --uninstall --force
263
+ ```
264
+
@@ -0,0 +1,5 @@
1
+ emdash_ai/__init__.py,sha256=XwdzcpRgDUYpiDKQ2_FVVV3nCuln44uNN8a_Dmo6oRE,81
2
+ emdash_ai-0.1.67.dist-info/METADATA,sha256=S7VUKrq7r9oMmypVg-NMFnAexTrmLM3ELbbdgismCu4,7316
3
+ emdash_ai-0.1.67.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
4
+ emdash_ai-0.1.67.dist-info/entry_points.txt,sha256=31CuYD0k-tM8csFWDunc-JoZTxXaifj3oIXz4V0p6F0,122
5
+ emdash_ai-0.1.67.dist-info/RECORD,,
emdash/__init__.py DELETED
@@ -1,37 +0,0 @@
1
- """EmDash - Graph-based coding intelligence system.
2
-
3
- DEPRECATED: This package now re-exports from emdash_core.
4
- Import directly from emdash_core for new code.
5
-
6
- The business logic has been consolidated into:
7
- - emdash-core: All agents, tools, analytics, etc.
8
- - emdash-cli: CLI that calls the emdash-core FastAPI server
9
-
10
- The `em` and `emdash` commands now use emdash-cli.
11
- """
12
-
13
- import warnings
14
-
15
- warnings.warn(
16
- "Importing from 'emdash' is deprecated. "
17
- "Use 'emdash_core' for business logic or 'emdash_cli' for CLI.",
18
- DeprecationWarning,
19
- stacklevel=2,
20
- )
21
-
22
- # Re-export common items from emdash_core for backwards compatibility
23
- try:
24
- from emdash_core.agent.toolkit import AgentToolkit
25
- from emdash_core.agent.events import AgentEventEmitter
26
- from emdash_core.agent.providers import get_provider
27
- from emdash_core.analytics.engine import AnalyticsEngine
28
- from emdash_core.graph.connection import get_connection
29
- except ImportError:
30
- pass # emdash_core may not be installed
31
-
32
- from importlib.metadata import version, PackageNotFoundError
33
-
34
- try:
35
- __version__ = version("emdash-ai")
36
- except PackageNotFoundError:
37
- __version__ = "0.0.0-dev"
emdash/__main__.py DELETED
@@ -1,6 +0,0 @@
1
- """Entry point for running EmDash as a module."""
2
-
3
- from emdash_cli.main import cli
4
-
5
- if __name__ == "__main__":
6
- cli()
@@ -1,81 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: emdash-ai
3
- Version: 0.1.39
4
- Summary: Graph-based coding intelligence system - The 'Senior Engineer' Context Engine
5
- Author: Em Dash Team
6
- Requires-Python: >=3.10,<4.0
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: Programming Language :: Python :: 3.10
9
- Classifier: Programming Language :: Python :: 3.11
10
- Classifier: Programming Language :: Python :: 3.12
11
- Classifier: Programming Language :: Python :: 3.13
12
- Classifier: Programming Language :: Python :: 3.14
13
- Provides-Extra: local
14
- Requires-Dist: astroid (>=3.0.1,<4.0.0)
15
- Requires-Dist: click (>=8.1.7,<9.0.0)
16
- Requires-Dist: cmake (>=3.25.0)
17
- Requires-Dist: emdash-cli (>=0.1.39)
18
- Requires-Dist: emdash-core (>=0.1.39)
19
- Requires-Dist: gitpython (>=3.1.40,<4.0.0)
20
- Requires-Dist: httpx (>=0.25.0)
21
- Requires-Dist: kuzu (>=0.4.0)
22
- Requires-Dist: loguru (>=0.7.2,<0.8.0)
23
- Requires-Dist: networkx (>=3.2.1,<4.0.0)
24
- Requires-Dist: numpy (>=1.26.0)
25
- Requires-Dist: openai (>=1.0.0)
26
- Requires-Dist: prompt_toolkit (>=3.0.43,<4.0.0)
27
- Requires-Dist: pydantic (>=2.5.0,<3.0.0)
28
- Requires-Dist: pygithub (>=2.1.1,<3.0.0)
29
- Requires-Dist: pypng (>=0.0.21,<0.0.22)
30
- Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
31
- Requires-Dist: python-louvain (>=0.16,<0.17)
32
- Requires-Dist: rich (>=13.7.0)
33
- Requires-Dist: scipy (>=1.11.4,<2.0.0)
34
- Requires-Dist: sentence-transformers (>=2.2.0)
35
- Requires-Dist: supabase (>=2.0.0)
36
- Requires-Dist: textual (>=0.47.0)
37
- Requires-Dist: tqdm (>=4.66.1,<5.0.0)
38
- Description-Content-Type: text/markdown
39
-
40
- # emdash-ai
41
-
42
- Graph-based coding intelligence system - The 'Senior Engineer' Context Engine
43
-
44
- ## Installation
45
-
46
- **Prerequisites** (for building kuzu):
47
- ```bash
48
- # macOS
49
- brew install cmake
50
-
51
- # Ubuntu/Debian
52
- sudo apt-get install cmake
53
- ```
54
-
55
- Then install emdash:
56
- ```bash
57
- pip install emdash-ai
58
- ```
59
-
60
- ## Usage
61
-
62
- ```bash
63
- emdash index # Index your codebase
64
- emdash agent # Start the AI agent
65
- ```
66
-
67
- ## Features
68
-
69
- - Graph-based code analysis
70
- - Semantic code search
71
- - AI-powered code exploration
72
- - MCP server integration
73
-
74
- ## TODO
75
-
76
- - [ ] Ralph Wigum
77
- - [ ] Browser agent
78
- - [ ] Fork conversation
79
- - [x] Hooks
80
- - [x] Agent name and description
81
-
@@ -1,6 +0,0 @@
1
- emdash/__init__.py,sha256=jB8gY1rgbvONvXgShzU9W9GxYUptTQZemkXkDlmbFlw,1163
2
- emdash/__main__.py,sha256=dX8bC3FaUop0Gf-zBOO02B8s8VXzxEjswoI3yU-_6R8,121
3
- emdash_ai-0.1.39.dist-info/METADATA,sha256=jGXwmozvGQ49CfiVj7b1L-59_0NJCB8e-RSaHCLK5wE,2096
4
- emdash_ai-0.1.39.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
5
- emdash_ai-0.1.39.dist-info/entry_points.txt,sha256=31CuYD0k-tM8csFWDunc-JoZTxXaifj3oIXz4V0p6F0,122
6
- emdash_ai-0.1.39.dist-info/RECORD,,