nogic 0.0.1__py3-none-any.whl → 0.0.2__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.
nogic/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Nogic CLI package."""
2
2
 
3
- __version__ = "0.0.1"
3
+ __version__ = "0.0.2"
@@ -0,0 +1,150 @@
1
+ Metadata-Version: 2.4
2
+ Name: nogic
3
+ Version: 0.0.2
4
+ Summary: Code intelligence CLI for AI agents — index, search, and understand codebases via graph + vector embeddings.
5
+ Project-URL: Homepage, https://nogic.dev
6
+ Project-URL: Repository, https://github.com/nogic-dev/cli
7
+ Project-URL: Documentation, https://docs.nogic.dev
8
+ Author-email: Nogic <hello@nogic.dev>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: ai-agents,code-graph,code-intelligence,embeddings,mcp,tree-sitter
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Software Development :: Libraries
22
+ Classifier: Topic :: Software Development :: Quality Assurance
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.11
25
+ Requires-Dist: httpx>=0.27.0
26
+ Requires-Dist: pathspec>=0.12.0
27
+ Requires-Dist: posthog>=3.0.0
28
+ Requires-Dist: python-dotenv>=1.0.0
29
+ Requires-Dist: rich>=13.0.0
30
+ Requires-Dist: tree-sitter-javascript>=0.23.0
31
+ Requires-Dist: tree-sitter-python>=0.23.0
32
+ Requires-Dist: tree-sitter-typescript>=0.23.0
33
+ Requires-Dist: tree-sitter>=0.24.0
34
+ Requires-Dist: typer>=0.12.0
35
+ Requires-Dist: watchdog>=6.0.0
36
+ Description-Content-Type: text/markdown
37
+
38
+ # Nogic CLI
39
+
40
+ Code Intelligence for AI Agents.
41
+
42
+ ## Installation
43
+
44
+ ### Prerequisites
45
+
46
+ - Python 3.11 or higher
47
+
48
+ ### Install with pipx (Recommended)
49
+
50
+ ```bash
51
+ pipx install nogic
52
+ ```
53
+
54
+ ### Install with pip
55
+
56
+ ```bash
57
+ pip install nogic
58
+ ```
59
+
60
+ ## Quick Start
61
+
62
+ ### 1. Login with your API key
63
+
64
+ ```bash
65
+ nogic login
66
+ ```
67
+
68
+ You'll be prompted to enter your API key from the [Nogic dashboard](https://nogic.dev).
69
+
70
+ ### 2. Initialize a project
71
+
72
+ ```bash
73
+ cd /path/to/your/project
74
+ nogic init
75
+ ```
76
+
77
+ This creates a `.nogic/` directory with project configuration.
78
+
79
+ ### 3. Sync your codebase
80
+
81
+ One-time sync:
82
+
83
+ ```bash
84
+ nogic sync
85
+ ```
86
+
87
+ Or watch for continuous syncing:
88
+
89
+ ```bash
90
+ nogic watch
91
+ ```
92
+
93
+ ## Commands
94
+
95
+ - `nogic login` — Authenticate with your API key
96
+ - `nogic init` — Initialize a project in a directory
97
+ - `nogic watch` — Watch for file changes and sync continuously
98
+ - `nogic sync` — One-time full sync
99
+ - `nogic reindex` — Wipe graph data and re-index from scratch
100
+ - `nogic status` — Show project configuration and backend status
101
+ - `nogic projects list` — List all your projects
102
+ - `nogic projects create` — Create a new project
103
+ - `nogic projects use` — Switch the current project
104
+ - `nogic telemetry disable` — Opt out of anonymous telemetry
105
+
106
+ See the full [CLI reference](https://docs.nogic.dev/cli/commands) for all options.
107
+
108
+ ## Supported Languages
109
+
110
+ - Python (`.py`)
111
+ - JavaScript (`.js`, `.jsx`)
112
+ - TypeScript (`.ts`, `.tsx`)
113
+
114
+ ## Data & Privacy
115
+
116
+ ### What we store
117
+
118
+ When you sync your codebase, Nogic stores the following in our graph database:
119
+
120
+ - **Code structure** — Function and class signatures, call relationships, import/export graphs
121
+ - **File metadata** — File paths, hashes, and modification timestamps
122
+ - **Embeddings** — Vector representations of code for semantic search
123
+
124
+ We do **not** store raw source code, comments, string literals, or any secrets/credentials.
125
+
126
+ ### Telemetry
127
+
128
+ Nogic collects anonymous usage telemetry to help improve the product:
129
+
130
+ - CLI version, OS, Python version
131
+ - Command names (e.g., `cli_login`, `cli_sync`)
132
+ - An anonymous ID (SHA-256 hash of your API key or machine info)
133
+
134
+ ### Opt out of telemetry
135
+
136
+ ```bash
137
+ nogic telemetry disable
138
+ ```
139
+
140
+ Or set `NOGIC_TELEMETRY_DISABLED=1` or `DO_NOT_TRACK=1`.
141
+
142
+ For full details, see our [Privacy Policy](https://nogic.dev/privacy).
143
+
144
+ ## Documentation
145
+
146
+ Full documentation at [docs.nogic.dev](https://docs.nogic.dev).
147
+
148
+ ## License
149
+
150
+ MIT
@@ -1,4 +1,4 @@
1
- nogic/__init__.py,sha256=mrqbp3Uwau7m5t8uqo6Eq7az13oFNOWlx9Q1ETCRBHo,47
1
+ nogic/__init__.py,sha256=gtjR7i4GDwJaqTYdSusWUlIsWAzrbb2JpRxlwAbCN74,48
2
2
  nogic/config.py,sha256=LPjsIPHjhERh0LkFIKe6n2z-RdkibOFvIlMQFTkBaAs,5006
3
3
  nogic/ignore.py,sha256=Q2uumbWVAXW201GAahvEEtgipqQmTPf49W_SEpyVyDk,2695
4
4
  nogic/main.py,sha256=AdAbbnXlxcbek8nTxL44-ZTNc1sqzWGIlWu-jzXK_9M,1399
@@ -28,8 +28,8 @@ nogic/watcher/__init__.py,sha256=NXX_7l69rhPc0EmNpGuV9uuFrqYqw2g9ulod5280f-c,238
28
28
  nogic/watcher/monitor.py,sha256=zSz6YLB0Wzp3u3bXITn6LuTFZ3uZ66l_Dg12S4KDE9s,2289
29
29
  nogic/watcher/storage.py,sha256=zrYK81CFxTFDPoFwFazbJi6EKna-bUkX2nofetUxiVU,5924
30
30
  nogic/watcher/sync.py,sha256=JZwDzYxbRFEufYDIGF9ND0UWxb0uySr1MWLTcr-R9d4,32703
31
- nogic-0.0.1.dist-info/METADATA,sha256=rKY5eGXtfCqBrRxzCnvSMvJY1p5e4LC3mfxUw8fus-U,4555
32
- nogic-0.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
33
- nogic-0.0.1.dist-info/entry_points.txt,sha256=_mT_cZ1fXzhogKq9r5T7c_qI7xAgcniKzftL0P6xTuQ,43
34
- nogic-0.0.1.dist-info/licenses/LICENSE,sha256=x8apHaKgnADt4dR_45yHyL-OBaRP8310XzD2jv8HRWg,1062
35
- nogic-0.0.1.dist-info/RECORD,,
31
+ nogic-0.0.2.dist-info/METADATA,sha256=bcKb4fKOKPQx80CdsDyOr4YYvpJ3JbIU6gM2x9lpWNE,3891
32
+ nogic-0.0.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
33
+ nogic-0.0.2.dist-info/entry_points.txt,sha256=_mT_cZ1fXzhogKq9r5T7c_qI7xAgcniKzftL0P6xTuQ,43
34
+ nogic-0.0.2.dist-info/licenses/LICENSE,sha256=x8apHaKgnADt4dR_45yHyL-OBaRP8310XzD2jv8HRWg,1062
35
+ nogic-0.0.2.dist-info/RECORD,,
@@ -1,201 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: nogic
3
- Version: 0.0.1
4
- Summary: Code intelligence CLI for AI agents — index, search, and understand codebases via graph + vector embeddings.
5
- Project-URL: Homepage, https://nogic.dev
6
- Project-URL: Repository, https://github.com/nogic-dev/cli
7
- Project-URL: Documentation, https://docs.nogic.dev
8
- Author-email: Nogic <support@nogic.dev>
9
- License-Expression: MIT
10
- License-File: LICENSE
11
- Keywords: ai-agents,code-graph,code-intelligence,embeddings,mcp,tree-sitter
12
- Classifier: Development Status :: 4 - Beta
13
- Classifier: Environment :: Console
14
- Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved :: MIT License
16
- Classifier: Operating System :: OS Independent
17
- Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.11
19
- Classifier: Programming Language :: Python :: 3.12
20
- Classifier: Programming Language :: Python :: 3.13
21
- Classifier: Topic :: Software Development :: Libraries
22
- Classifier: Topic :: Software Development :: Quality Assurance
23
- Classifier: Typing :: Typed
24
- Requires-Python: >=3.11
25
- Requires-Dist: httpx>=0.27.0
26
- Requires-Dist: pathspec>=0.12.0
27
- Requires-Dist: posthog>=3.0.0
28
- Requires-Dist: python-dotenv>=1.0.0
29
- Requires-Dist: rich>=13.0.0
30
- Requires-Dist: tree-sitter-javascript>=0.23.0
31
- Requires-Dist: tree-sitter-python>=0.23.0
32
- Requires-Dist: tree-sitter-typescript>=0.23.0
33
- Requires-Dist: tree-sitter>=0.24.0
34
- Requires-Dist: typer>=0.12.0
35
- Requires-Dist: watchdog>=6.0.0
36
- Description-Content-Type: text/markdown
37
-
38
- # Nogic CLI
39
-
40
- Graph visualization for Developers and AI Agents.
41
-
42
- ## Installation
43
-
44
- ### Prerequisites
45
-
46
- - Python 3.11 or higher
47
-
48
- ### Install from PyPI
49
-
50
- ```bash
51
- pip install nogic
52
- ```
53
-
54
- ### Install from Source
55
-
56
- ```bash
57
- git clone https://github.com/nogic/cli.git
58
- cd cli
59
- pip install .
60
- ```
61
-
62
- ## Quick Start
63
-
64
- ### 1. Login with your API key
65
-
66
- ```bash
67
- nogic login
68
- ```
69
-
70
- You'll be prompted to enter your API key from the Nogic dashboard.
71
-
72
- ### 2. Initialize a project
73
-
74
- ```bash
75
- cd /path/to/your/project
76
- nogic init
77
- ```
78
-
79
- This creates a `.nogic/` directory with project configuration.
80
-
81
- ### 3. Sync your codebase
82
-
83
- One-time sync:
84
-
85
- ```bash
86
- nogic sync
87
- ```
88
-
89
- Or watch for continuous syncing:
90
-
91
- ```bash
92
- nogic watch
93
- ```
94
-
95
- ## Commands
96
-
97
- ### `nogic login`
98
-
99
- Authenticate with the Nogic API.
100
-
101
- ```bash
102
- nogic login
103
- nogic login --api-key YOUR_API_KEY
104
- ```
105
-
106
- ### `nogic init`
107
-
108
- Initialize a project for Nogic tracking.
109
-
110
- ```bash
111
- nogic init # Initialize current directory
112
- nogic init /path/to/project # Initialize specific directory
113
- nogic init --name "My Project" # Set project name
114
- nogic init --project-id UUID # Use existing project ID
115
- ```
116
-
117
- ### `nogic sync`
118
-
119
- Perform a one-time full sync of your codebase.
120
-
121
- ```bash
122
- nogic sync # Sync current directory
123
- nogic sync /path/to/project # Sync specific directory
124
- nogic sync --ignore "*.log" # Ignore specific patterns
125
- ```
126
-
127
- ### `nogic watch`
128
-
129
- Continuously monitor and sync file changes.
130
-
131
- ```bash
132
- nogic watch # Watch current directory
133
- nogic watch /path/to/project # Watch specific directory
134
- nogic watch --ignore "*.log" # Ignore specific patterns
135
- ```
136
-
137
- Press `Ctrl+C` to stop watching.
138
-
139
- ### `nogic projects`
140
-
141
- Manage your Nogic projects.
142
-
143
- ```bash
144
- nogic projects list # List all projects
145
- nogic projects create "Project Name" # Create new project
146
- nogic projects create "Name" --use # Create and set as current
147
- nogic projects use PROJECT_ID # Set current project
148
- ```
149
-
150
- ## Configuration
151
-
152
- ### Environment Variables
153
-
154
- Create a `.env` file or set environment variables:
155
-
156
- ```bash
157
- NOGIC_API_URL=http://localhost:8000 # Backend API URL
158
- NOGIC_API_KEY=your-api-key # API key (alternative to login)
159
- ```
160
-
161
- ### Config Files
162
-
163
- - **Global config**: `~/.nogic/config.json` - Stores API key and telemetry preference
164
- - **Project config**: `.nogic/config.json` - Stores project ID
165
-
166
- ## Telemetry
167
-
168
- Nogic collects anonymous usage data to improve the product. All data is anonymized.
169
-
170
- ### Manage Telemetry
171
-
172
- ```bash
173
- nogic telemetry status # Check current status
174
- nogic telemetry disable # Opt out
175
- nogic telemetry enable # Opt back in
176
- ```
177
-
178
- ### Environment Variables
179
-
180
- ```bash
181
- NOGIC_TELEMETRY_DISABLED=1 # Disable telemetry
182
- DO_NOT_TRACK=1 # Standard opt-out (also works)
183
- ```
184
-
185
- ### Default Ignore Patterns
186
-
187
- The following patterns are ignored by default:
188
-
189
- - `.git/`
190
- - `__pycache__/`
191
- - `node_modules/`
192
- - `.venv/`
193
- - `.nogic/`
194
- - `*.pyc`
195
- - `.DS_Store`
196
-
197
- Add custom patterns with the `--ignore` flag.
198
-
199
- ## License
200
-
201
- MIT
File without changes