myshell-tools 1.0.0

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 (45) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/LICENSE +21 -0
  3. package/README.md +318 -0
  4. package/data/orchestrator.json +113 -0
  5. package/package.json +49 -0
  6. package/src/auth/recovery.mjs +328 -0
  7. package/src/auth/refresh.mjs +373 -0
  8. package/src/chef.mjs +348 -0
  9. package/src/cli/doctor.mjs +568 -0
  10. package/src/cli/reset.mjs +447 -0
  11. package/src/cli/status.mjs +379 -0
  12. package/src/cli.mjs +429 -0
  13. package/src/commands/doctor.mjs +375 -0
  14. package/src/commands/help.mjs +324 -0
  15. package/src/commands/status.mjs +331 -0
  16. package/src/monitor/health.mjs +486 -0
  17. package/src/monitor/performance.mjs +442 -0
  18. package/src/monitor/report.mjs +535 -0
  19. package/src/orchestrator/classify.mjs +391 -0
  20. package/src/orchestrator/confidence.mjs +151 -0
  21. package/src/orchestrator/handoffs.mjs +231 -0
  22. package/src/orchestrator/review.mjs +222 -0
  23. package/src/providers/balance.mjs +201 -0
  24. package/src/providers/claude.mjs +236 -0
  25. package/src/providers/codex.mjs +255 -0
  26. package/src/providers/detect.mjs +185 -0
  27. package/src/providers/errors.mjs +373 -0
  28. package/src/providers/select.mjs +162 -0
  29. package/src/repl-enhanced.mjs +417 -0
  30. package/src/repl.mjs +321 -0
  31. package/src/state/archive.mjs +366 -0
  32. package/src/state/atomic.mjs +116 -0
  33. package/src/state/cleanup.mjs +440 -0
  34. package/src/state/recovery.mjs +461 -0
  35. package/src/state/session.mjs +147 -0
  36. package/src/ui/errors.mjs +456 -0
  37. package/src/ui/formatter.mjs +327 -0
  38. package/src/ui/icons.mjs +318 -0
  39. package/src/ui/progress.mjs +468 -0
  40. package/templates/prompts/confidence-format.txt +14 -0
  41. package/templates/prompts/ic-with-feedback.txt +41 -0
  42. package/templates/prompts/ic.txt +13 -0
  43. package/templates/prompts/manager-review.txt +40 -0
  44. package/templates/prompts/manager.txt +14 -0
  45. package/templates/prompts/worker.txt +12 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,69 @@
1
+ # Changelog
2
+
3
+ All notable changes to Cortex AI will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.0.0] - 2024-05-29
9
+
10
+ ### Added
11
+ - 🎉 **Initial public release of Cortex AI**
12
+ - **Hierarchical AI orchestration** with three-tier system (Worker/IC/Manager)
13
+ - **Multi-provider support** for Claude (Opus/Sonnet/Haiku) and OpenAI (GPT-4o/GPT-4/GPT-4o-mini)
14
+ - **Smart routing** based on task complexity and confidence scoring
15
+ - **Automatic escalation** when models need help from higher tiers
16
+ - **Load balancing** across AI providers (50/50 split when both available)
17
+ - **Session persistence** with automatic conversation resumption
18
+ - **Zero dependencies** - uses only Node.js built-in modules
19
+ - **CLI detection** for existing Claude CLI and OpenAI CLI setups
20
+ - **Interactive REPL** with command history and helpful commands
21
+ - **System health checks** via `--doctor` flag
22
+ - **Transparent logging** of all model decisions and escalations
23
+
24
+ ### Features
25
+ - **Worker Tier**: Handles simple tasks (file searches, formatting, info lookup)
26
+ - **IC Tier**: Manages most development work (coding, refactoring, testing)
27
+ - **Manager Tier**: Oversees complex decisions (architecture, security, debugging)
28
+ - **Confidence-based escalation**: Models self-assess and escalate when uncertain
29
+ - **Provider failover**: Automatically switches providers if one is unavailable
30
+ - **Local privacy**: All processing uses your existing AI subscriptions
31
+ - **Cross-platform support**: Works on macOS, Linux, and Windows (WSL)
32
+
33
+ ### CLI Commands
34
+ - `npx cortex-ai` - Start interactive AI organization
35
+ - `npx cortex-ai --doctor` - Comprehensive system health check
36
+ - `npx cortex-ai --help` - Show usage information
37
+ - `npx cortex-ai --version` - Display version information
38
+
39
+ ### REPL Commands
40
+ - `/help` - Show available commands
41
+ - `/status` - Current provider status and model availability
42
+ - `/clear` - Clear conversation history
43
+ - `/reset` - Reset session state
44
+ - `/quit` - Exit Cortex
45
+
46
+ ### Technical Details
47
+ - **Node.js requirement**: 20.0.0 or higher
48
+ - **Package size**: Lightweight (~100KB installed)
49
+ - **Memory usage**: ~50MB RAM typical usage
50
+ - **Session storage**: `.cortex/sessions/` directory for conversation history
51
+ - **Configuration**: Environment variables for customization
52
+
53
+ ### Documentation
54
+ - Comprehensive README with installation and usage examples
55
+ - Troubleshooting guide for common setup issues
56
+ - Contributing guidelines for community development
57
+ - MIT license for open source usage
58
+
59
+ ---
60
+
61
+ ## Development History
62
+
63
+ This release represents the culmination of three development phases:
64
+
65
+ **Phase 1**: Core orchestration engine and CLI detection
66
+ **Phase 2**: Enhanced confidence scoring and manager review patterns
67
+ **Phase 3**: UX polish, error handling, and production readiness
68
+
69
+ The codebase is designed for reliability, maintainability, and extensibility as we grow the Cortex ecosystem.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 HeyVera
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,318 @@
1
+ # Cortex AI
2
+
3
+ [![npm version](https://badge.fury.io/js/cortex-ai.svg)](https://badge.fury.io/js/cortex-ai)
4
+ [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen.svg)](https://nodejs.org/)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+
7
+ ```
8
+ ██████╗ ██████╗ ██████╗ ████████╗███████╗██╗ ██╗
9
+ ██╔════╝██╔═══██╗██╔══██╗╚══██╔══╝██╔════╝╚██╗██╔╝
10
+ ██║ ██║ ██║██████╔╝ ██║ █████╗ ╚███╔╝
11
+ ██║ ██║ ██║██╔══██╗ ██║ ██╔══╝ ██╔██╗
12
+ ╚██████╗╚██████╔╝██║ ██║ ██║ ███████╗██╔╝ ██╗
13
+ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
14
+ ```
15
+
16
+ **Hierarchical AI orchestration for your shell**
17
+
18
+ Transform your existing Claude/GPT subscriptions into an intelligent AI organization. No new accounts needed.
19
+
20
+ ## Quick Start
21
+
22
+ ```bash
23
+ # Install and run immediately
24
+ npx cortex-ai
25
+
26
+ # Check your AI providers
27
+ npx cortex-ai --doctor
28
+ ```
29
+
30
+ That's it! Cortex detects your existing Claude CLI and OpenAI setups automatically.
31
+
32
+ ## What is Cortex?
33
+
34
+ Cortex creates a **hierarchical AI organization** in your shell where AI models work together like a company org chart. Instead of always using the most expensive model, tasks flow through appropriate tiers:
35
+
36
+ ```
37
+ 👤 You
38
+
39
+ ├── 👨‍💻 IC (Sonnet/GPT-4) ← Most tasks start here
40
+ │ ├── ⬇️ DELEGATE → 🏗️ Worker (Haiku/GPT-4-mini)
41
+ │ │ └── Simple: grep, format, info lookup
42
+ │ └── ⬆️ ESCALATE → 👔 Manager (Opus/GPT-4-o)
43
+ │ └── Complex: architecture, security, debugging
44
+ └── 🔄 Smart routing based on confidence and complexity
45
+ ```
46
+
47
+ **Result**: Better decisions + lower costs + transparent reasoning.
48
+
49
+ ## The AI Hierarchy Explained
50
+
51
+ ### 🏗️ **Worker Tier** (Efficient Execution)
52
+ - **Models**: Claude Haiku, GPT-4o-mini
53
+ - **Perfect for**: File searches, code formatting, running tests, simple queries
54
+ - **Escalates when**: Task requires reasoning or code changes
55
+ - **Cost**: Lowest tier, handles 30% of simple tasks
56
+
57
+ ### 👨‍💻 **IC Tier** (Individual Contributor)
58
+ - **Models**: Claude Sonnet, GPT-4
59
+ - **Perfect for**: Implementation, refactoring, bug fixes, most coding work
60
+ - **Escalates when**: Low confidence (<50%), complex architecture, security concerns
61
+ - **Cost**: Medium tier, handles 60% of development tasks
62
+
63
+ ### 👔 **Manager Tier** (Strategic Oversight)
64
+ - **Models**: Claude Opus, GPT-4o
65
+ - **Perfect for**: Architecture decisions, security reviews, complex debugging
66
+ - **Never escalates**: Top of the hierarchy, final authority
67
+ - **Cost**: Premium tier, handles 10% of critical decisions
68
+
69
+ ## Installation & Requirements
70
+
71
+ **Prerequisites**: You need at least one AI CLI installed and authenticated:
72
+
73
+ ### Claude CLI Setup
74
+ ```bash
75
+ # Install Claude CLI
76
+ pip install claude-ai-cli
77
+
78
+ # Authenticate with your Anthropic account
79
+ claude auth login
80
+ ```
81
+
82
+ ### OpenAI CLI Setup
83
+ ```bash
84
+ # Install OpenAI CLI
85
+ npm install -g @openai/openai-cli
86
+
87
+ # Authenticate with your OpenAI account
88
+ openai auth login
89
+ ```
90
+
91
+ ### System Requirements
92
+ - **Node.js**: 20.0.0 or higher
93
+ - **Operating System**: macOS, Linux, Windows (WSL recommended)
94
+ - **Memory**: 100MB RAM
95
+ - **Dependencies**: Zero npm dependencies (uses only Node.js builtins)
96
+
97
+ ## Usage Examples
98
+
99
+ ### Basic Interaction
100
+ ```bash
101
+ $ npx cortex-ai
102
+
103
+ 🧠 Cortex v1.0.0
104
+ AI Org Chart Active
105
+ ├─ Claude (Opus/Sonnet/Haiku) ✅
106
+ └─ OpenAI (GPT-4o/GPT-4/GPT-4o-mini) ✅
107
+
108
+ ❯ refactor the auth system to use JWT tokens
109
+
110
+ 🔄 IC (Sonnet): Analyzing authentication architecture...
111
+ ├─ DELEGATE → Worker (Haiku): mapping auth files
112
+ │ └─ Found 12 auth-related files ✅ (confidence: 0.9)
113
+ └─ ESCALATE → Manager (Opus): security-critical refactor
114
+ └─ Manager: Recommending incremental JWT migration ✅
115
+
116
+ ✅ Completed by MANAGER (Opus)
117
+ 🎯 Confidence: 92% | 🔄 Escalations: 1
118
+ ```
119
+
120
+ ### Complex Task Handling
121
+ ```bash
122
+ ❯ optimize this database query for better performance
123
+
124
+ 🔄 IC (GPT-4): Analyzing query performance...
125
+ ├─ Current query uses inefficient joins
126
+ ├─ DELEGATE → Worker: analyze query execution plan
127
+ │ └─ Worker: Found 3 missing indexes ✅
128
+ └─ IC: Proposed optimized query with proper indexing ✅
129
+
130
+ ✅ Completed by IC (GPT-4)
131
+ 🎯 Confidence: 87% | 🔄 No escalation needed
132
+ ```
133
+
134
+ ### System Health Check
135
+ ```bash
136
+ $ npx cortex-ai --doctor
137
+
138
+ 🔍 Cortex System Health Check
139
+
140
+ Provider Status:
141
+ ✅ Claude CLI: Authenticated (3 models available)
142
+ ├─ claude-3-opus-20240229 (Manager tier)
143
+ ├─ claude-3-sonnet-20240229 (IC tier)
144
+ └─ claude-3-haiku-20240307 (Worker tier)
145
+
146
+ ✅ OpenAI CLI: Authenticated (3 models available)
147
+ ├─ gpt-4o (Manager tier)
148
+ ├─ gpt-4 (IC tier)
149
+ └─ gpt-4o-mini (Worker tier)
150
+
151
+ System Status:
152
+ ✅ Node.js 20.2.0 (compatible)
153
+ ✅ Directory permissions (read/write access)
154
+ ✅ Session storage (.cortex/ directory)
155
+ ✅ All prompt templates loaded
156
+
157
+ 🎉 System ready for hierarchical AI orchestration!
158
+ ```
159
+
160
+ ## Advanced Features
161
+
162
+ ### Smart Load Balancing
163
+ Cortex automatically balances work across providers:
164
+ - **50/50 split**: Equal distribution between Claude and OpenAI when both available
165
+ - **Failover**: Automatically switches providers if one is unavailable
166
+ - **Cost optimization**: Prefers cheaper models when confidence is high
167
+
168
+ ### Session Persistence
169
+ All conversations auto-save to `.cortex/sessions/current.jsonl`:
170
+ ```bash
171
+ cd my-project
172
+ npx cortex-ai # Automatically resumes project context
173
+ ```
174
+
175
+ ### Interactive Commands
176
+ Inside Cortex REPL:
177
+ - `/help` - Show available commands
178
+ - `/status` - Current provider balance and model availability
179
+ - `/clear` - Clear conversation history
180
+ - `/reset` - Reset session state
181
+ - `/quit` - Exit Cortex
182
+
183
+ ## Configuration
184
+
185
+ Cortex works zero-config, but you can customize behavior:
186
+
187
+ ### Custom Model Preferences
188
+ ```bash
189
+ # Prefer Claude for coding tasks
190
+ export CORTEX_PREFER_CLAUDE=true
191
+
192
+ # Prefer OpenAI for creative tasks
193
+ export CORTEX_PREFER_OPENAI=true
194
+ ```
195
+
196
+ ### Confidence Thresholds
197
+ ```bash
198
+ # Higher escalation threshold (more conservative)
199
+ export CORTEX_ESCALATION_THRESHOLD=0.7
200
+
201
+ # Lower escalation threshold (more aggressive delegation)
202
+ export CORTEX_ESCALATION_THRESHOLD=0.3
203
+ ```
204
+
205
+ ## Troubleshooting
206
+
207
+ ### "No AI providers detected"
208
+ ```bash
209
+ # Check authentication status
210
+ claude auth status
211
+ openai auth status
212
+
213
+ # Re-authenticate if needed
214
+ claude auth login
215
+ openai auth login
216
+ ```
217
+
218
+ ### "Permission denied" errors
219
+ ```bash
220
+ # Ensure Node.js permissions
221
+ chmod +x ~/.local/bin/cortex
222
+
223
+ # Check directory permissions
224
+ ls -la .cortex/
225
+ ```
226
+
227
+ ### Provider-specific issues
228
+ ```bash
229
+ # Test Claude connection
230
+ claude chat "Hello, can you respond?"
231
+
232
+ # Test OpenAI connection
233
+ openai chat "Hello, can you respond?"
234
+
235
+ # Run full system check
236
+ npx cortex-ai --doctor
237
+ ```
238
+
239
+ ### Performance Issues
240
+ ```bash
241
+ # Clear session cache
242
+ rm -rf .cortex/sessions/
243
+
244
+ # Reset to defaults
245
+ npx cortex-ai --reset
246
+ ```
247
+
248
+ ## Why Hierarchical AI?
249
+
250
+ ### Traditional Approach Problems
251
+ - ❌ Every task burns expensive premium model tokens
252
+ - ❌ Simple tasks get over-engineered solutions
253
+ - ❌ No transparency into decision-making process
254
+ - ❌ High costs for routine work
255
+
256
+ ### Cortex Approach Benefits
257
+ - ✅ **Cost Efficient**: 80% of tasks complete at IC tier or below
258
+ - ✅ **Better Quality**: Managers review complex/security-critical work
259
+ - ✅ **Transparent**: See exactly which model handled what and why
260
+ - ✅ **Adaptive**: Automatically escalates when confidence is low
261
+ - ✅ **Local Privacy**: Uses your existing subscriptions, no data sharing
262
+
263
+ ## Contributing
264
+
265
+ We welcome contributions! This is a community-driven project.
266
+
267
+ ### Development Setup
268
+ ```bash
269
+ git clone https://github.com/heyvera/cortex-ai.git
270
+ cd cortex-ai
271
+ npm install
272
+ npm start
273
+ ```
274
+
275
+ ### Architecture Overview
276
+ - **`src/cli.mjs`**: Main entry point and argument parsing
277
+ - **`src/orchestrator/`**: Hierarchical routing and escalation logic
278
+ - **`src/providers/`**: Claude and OpenAI CLI integration
279
+ - **`src/repl.mjs`**: Interactive shell implementation
280
+ - **`templates/`**: Prompt templates for each tier
281
+
282
+ ### Contributing Guidelines
283
+ 1. **Issues**: Report bugs or suggest features via GitHub Issues
284
+ 2. **Pull Requests**: Fork, create feature branch, submit PR
285
+ 3. **Code Style**: Follow existing patterns, use ESLint
286
+ 4. **Testing**: Test with both Claude and OpenAI setups
287
+ 5. **Documentation**: Update README for new features
288
+
289
+ ## Roadmap
290
+
291
+ ### v1.1 (Next Release)
292
+ - [ ] Plugin system for custom AI providers
293
+ - [ ] Team collaboration features
294
+ - [ ] Advanced analytics and usage tracking
295
+ - [ ] Custom prompt template management
296
+
297
+ ### v1.2 (Future)
298
+ - [ ] Web dashboard for session management
299
+ - [ ] Integration with VS Code extension
300
+ - [ ] Multi-project workspace support
301
+ - [ ] Advanced caching and performance optimization
302
+
303
+ ## License
304
+
305
+ MIT License - see [LICENSE](LICENSE) file for details.
306
+
307
+ ## Support
308
+
309
+ - **Documentation**: [GitHub Wiki](https://github.com/heyvera/cortex-ai/wiki)
310
+ - **Issues**: [GitHub Issues](https://github.com/heyvera/cortex-ai/issues)
311
+ - **Discussions**: [GitHub Discussions](https://github.com/heyvera/cortex-ai/discussions)
312
+ - **Email**: hello@heyvera.org
313
+
314
+ ---
315
+
316
+ **Made with ❤️ by the HeyVera team**
317
+
318
+ *Cortex AI: Where artificial intelligence meets organizational intelligence.*
@@ -0,0 +1,113 @@
1
+ {
2
+ "subscriptions": {
3
+ "claude": {
4
+ "models": {
5
+ "opus": {
6
+ "tier": "manager",
7
+ "input_per_mtok": 5.0,
8
+ "output_per_mtok": 25.0,
9
+ "context_window": 1000000,
10
+ "max_output": 128000,
11
+ "model_id": "opus",
12
+ "strengths": ["complex reasoning", "architecture decisions", "code review", "error recovery"],
13
+ "best_for": "high-stakes decisions, complex debugging, escalations"
14
+ },
15
+ "sonnet": {
16
+ "tier": "ic",
17
+ "input_per_mtok": 3.0,
18
+ "output_per_mtok": 15.0,
19
+ "context_window": 1000000,
20
+ "max_output": 64000,
21
+ "model_id": "sonnet",
22
+ "strengths": ["best speed/intelligence ratio", "precise edits", "implementation"],
23
+ "best_for": "most coding tasks, refactoring, implementing features"
24
+ },
25
+ "haiku": {
26
+ "tier": "worker",
27
+ "input_per_mtok": 1.0,
28
+ "output_per_mtok": 5.0,
29
+ "context_window": 200000,
30
+ "max_output": 64000,
31
+ "model_id": "haiku",
32
+ "strengths": ["fastest latency", "cheapest", "good for simple tasks"],
33
+ "best_for": "file lookups, grep, simple tasks, gathering information"
34
+ }
35
+ }
36
+ },
37
+ "openai": {
38
+ "models": {
39
+ "gpt-5.5": {
40
+ "tier": "manager",
41
+ "input_per_mtok": 5.0,
42
+ "output_per_mtok": 30.0,
43
+ "context_window": 1000000,
44
+ "max_output": 128000,
45
+ "model_id": "gpt-5.5",
46
+ "strengths": ["complex reasoning", "independent perspective", "code review"],
47
+ "best_for": "architectural decisions, second opinions, escalations"
48
+ },
49
+ "gpt-5.4": {
50
+ "tier": "ic",
51
+ "input_per_mtok": 2.5,
52
+ "output_per_mtok": 15.0,
53
+ "context_window": 1000000,
54
+ "max_output": 128000,
55
+ "model_id": "gpt-5.4",
56
+ "strengths": ["good speed/cost ratio", "strong implementation"],
57
+ "best_for": "implementation and execution tasks"
58
+ },
59
+ "gpt-4.1-mini": {
60
+ "tier": "worker",
61
+ "input_per_mtok": 0.40,
62
+ "output_per_mtok": 1.60,
63
+ "context_window": 1047576,
64
+ "max_output": 32768,
65
+ "model_id": "gpt-4.1-mini",
66
+ "strengths": ["extremely cheap", "good for simple tasks"],
67
+ "best_for": "simple lookups, grep, file operations"
68
+ }
69
+ }
70
+ }
71
+ },
72
+
73
+ "tiers": {
74
+ "worker": {
75
+ "description": "Simple tasks: file lookups, grep, basic operations",
76
+ "escalation_threshold": 0.6,
77
+ "max_attempts": 2
78
+ },
79
+ "ic": {
80
+ "description": "Individual contributor: coding, implementation, most work",
81
+ "escalation_threshold": 0.5,
82
+ "max_attempts": 2
83
+ },
84
+ "manager": {
85
+ "description": "Manager: architecture, review, complex decisions",
86
+ "escalation_threshold": 0.3,
87
+ "max_attempts": 1
88
+ }
89
+ },
90
+
91
+ "escalation_triggers": {
92
+ "confidence_threshold": 0.5,
93
+ "keywords": {
94
+ "auth": "critical",
95
+ "credential": "critical",
96
+ "secret": "critical",
97
+ "token": "critical",
98
+ "password": "critical",
99
+ "login": "high",
100
+ "billing": "high",
101
+ "payment": "high",
102
+ "deploy": "high",
103
+ "migration": "high"
104
+ },
105
+ "file_patterns": {
106
+ "**/.env*": "critical",
107
+ "**/auth/**": "high",
108
+ "**/security/**": "high",
109
+ "**/payment/**": "high",
110
+ "**/billing/**": "high"
111
+ }
112
+ }
113
+ }
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "myshell-tools",
3
+ "version": "1.0.0",
4
+ "description": "Hierarchical AI orchestration for your shell - Claude + GPT working together like an org chart",
5
+ "type": "module",
6
+ "bin": {
7
+ "cortex": "src/cli.mjs"
8
+ },
9
+ "engines": {
10
+ "node": ">=20.0.0"
11
+ },
12
+ "keywords": [
13
+ "ai",
14
+ "claude",
15
+ "gpt",
16
+ "orchestration",
17
+ "cli",
18
+ "shell",
19
+ "coding",
20
+ "assistant",
21
+ "hierarchical",
22
+ "automation",
23
+ "developer-tools",
24
+ "artificial-intelligence"
25
+ ],
26
+ "author": "HeyVera <hello@heyvera.org>",
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/heyvera/cortex-ai.git"
31
+ },
32
+ "bugs": {
33
+ "url": "https://github.com/heyvera/cortex-ai/issues"
34
+ },
35
+ "homepage": "https://github.com/heyvera/cortex-ai#readme",
36
+ "files": [
37
+ "src/",
38
+ "data/",
39
+ "templates/",
40
+ "README.md",
41
+ "LICENSE",
42
+ "CHANGELOG.md"
43
+ ],
44
+ "dependencies": {},
45
+ "scripts": {
46
+ "start": "node src/cli.mjs",
47
+ "test": "node src/cli.mjs --doctor"
48
+ }
49
+ }