Skip to content

Commit 18ad56b

Browse files
author
Saran-386
committed
chore: remove all references to deprecated init command
Removes calls to 'cortex init' from test scripts, installer scripts, and all documentation since the command was removed in previous commits.
1 parent 4dd8b97 commit 18ad56b

6 files changed

Lines changed: 7 additions & 45 deletions

File tree

QUICKSTART.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@ curl -sSL https://raw.githubusercontent.com/Dopove/Cortex/main/install.sh | bash
1212

1313
Alternatively, you can move the `cortex` binary manually to your PATH.
1414

15-
## 2. Initialize the Environment
16-
17-
Cortex needs to verify your Python environment and hardware capabilities before its first run.
18-
19-
```bash
20-
./cortex init
21-
```
22-
23-
## 3. Create Your First Bundle
15+
## 2. Create Your First Bundle
2416

2517
Cortex bundles contain your agent logic, dependencies, and model manifests.
2618

@@ -29,7 +21,7 @@ Cortex bundles contain your agent logic, dependencies, and model manifests.
2921
./cortex build path/to/your/agent-dir my-agent.cortex
3022
```
3123

32-
## 4. Run Your Agent
24+
## 3. Run Your Agent
3325

3426
Execute your bundle. Cortex will automatically:
3527

@@ -41,7 +33,7 @@ Execute your bundle. Cortex will automatically:
4133
./cortex run my-first-agent.cortex
4234
```
4335

44-
## 5. Security: Encrypting Your Work (Optional)
36+
## 4. Security: Encrypting Your Work (Optional)
4537

4638
To share bundles securely, add AES-256-GCM encryption.
4739

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,15 @@ Download the pre-compiled binary or archive for your system from **[GitHub Relea
4949

5050
---
5151

52-
Finally, run `cortex init` to prepare your environment.
53-
5452
## 🚀 Quick Start
5553

56-
### 1. Initialize Environment
57-
58-
```bash
59-
./cortex init
60-
```
61-
62-
### 2. Build a Bundle
54+
### 1. Build a Bundle
6355

6456
```bash
6557
./cortex build path/to/your/agent-dir my-agent.cortex
6658
```
6759

68-
### 3. Run safely
60+
### 2. Run safely
6961

7062
```bash
7163
./cortex run my-agent.cortex

USAGE_REFERENCE.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Comprehensive documentation for all `cortex` subcommands.
66

77
- [`build`](#build) - Pack a project directory into a `.cortex` bundle.
88
- [`run`](#run) - Execute agents within a bundle.
9-
- [`init`](#init) - Initialize the execution environment.
109
- [`info`](#info) - Inspect bundle contents.
1110
- [`encrypt`](#encrypt) - Secure a bundle with AES-256-GCM.
1211
- [`verify`](#verify) - Validate bundle integrity (Zstd + SHA256).
@@ -34,12 +33,6 @@ Inflates the bundle into a high-concurrency runtime.
3433
- **--gpu <ID>**: Enables CUDA acceleration for the specified GPU.
3534
- **--json**: Outputs real-time execution logs in JSON format for production indexing.
3635

37-
### `init`
38-
39-
`cortex init`
40-
41-
Pre-flight check for the local machine. It detects AVX/CUDA capabilities and confirms Python 3.10+ availability.
42-
4336
### `encrypt`
4437

4538
`cortex encrypt <BUNDLE>`

install.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ if ($currentPath -notlike "*$INSTALL_DIR*") {
7777
Write-Host "Added $INSTALL_DIR to User PATH." -ForegroundColor Yellow
7878
}
7979

80-
# 6. Initialization
80+
# 6. Finalization
8181
Write-Host "Cortex installed successfully!" -ForegroundColor Green
82-
Write-Host "Running 'cortex init'..." -ForegroundColor Blue
83-
& $DEST_BINARY init
8482

8583
Write-Host "`n========================================" -ForegroundColor Green
8684
Write-Host "Cortex $LATEST_TAG is now available globally." -ForegroundColor Green

install.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,8 @@ else
137137
chmod +x "$INSTALL_DIR/cortex"
138138
fi
139139

140-
# 6. Initialization
140+
# 6. Finalization
141141
echo -e "${GREEN}Cortex installed successfully!${NC}"
142-
echo -e "${BLUE}Running 'cortex init'...${NC}"
143-
144-
# Ensure standard library directory exists before initialization
145-
# This prevents "os error 2" in restricted Docker/CI environments
146-
mkdir -p "$HOME/.cortex/stdlib"
147-
148-
"$INSTALL_DIR/cortex" init
149142

150143
echo -e "\n${GREEN}========================================${NC}"
151144
echo -e "${GREEN}Cortex $LATEST_TAG is now available globally.${NC}"

rust/tests/cross_os_e2e.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ if [ ! -f "$BIN_PATH" ]; then
3131
exit 1
3232
fi
3333

34-
echo "==================================="
35-
echo "1. Testing Environment Initialization"
36-
echo "==================================="
37-
$BIN_PATH init
38-
echo "✅ Environment Initialized."
39-
4034
echo "==================================="
4135
echo "2. Building Agent Bundle"
4236
echo "==================================="

0 commit comments

Comments
 (0)