wrd 0.1.2__py2.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.
- wrd/__init__.py +39 -0
- wrd/__main__.py +999 -0
- wrd/__version__.py +7 -0
- wrd/cli.py +312 -0
- wrd/py.typed +0 -0
- wrd/template_manager.py +163 -0
- wrd/templates/__init__.py +4 -0
- wrd/templates/__pycache__/__init__.cpython-312.pyc +0 -0
- wrd/templates/python/README.md.j2 +33 -0
- wrd/templates/python/gitignore.j2 +51 -0
- wrd/templates/python/project.yml +39 -0
- wrd/templates/python/pyproject.toml.j2 +35 -0
- wrd-0.1.2.dist-info/METADATA +751 -0
- wrd-0.1.2.dist-info/RECORD +18 -0
- wrd-0.1.2.dist-info/WHEEL +6 -0
- wrd-0.1.2.dist-info/entry_points.txt +2 -0
- wrd-0.1.2.dist-info/licenses/LICENSE +201 -0
- wrd-0.1.2.dist-info/top_level.txt +1 -0
@@ -0,0 +1,751 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: wrd
|
3
|
+
Version: 0.1.2
|
4
|
+
Summary: WRD (WRonai Development) - A powerful workflow automation tool for developers
|
5
|
+
Home-page: https://github.com/wronai/wrd
|
6
|
+
Author: WRonai Team
|
7
|
+
Author-email: WRonai Team <contact@wronai.com>
|
8
|
+
Maintainer: WRonai Team
|
9
|
+
Maintainer-email: WRonai Team <contact@wronai.com>
|
10
|
+
License-Expression: MIT
|
11
|
+
Project-URL: Homepage, https://github.com/wronai/wrd
|
12
|
+
Project-URL: Documentation, https://wronai.github.io/wrd
|
13
|
+
Project-URL: Repository, https://github.com/wronai/wrd
|
14
|
+
Project-URL: Changelog, https://github.com/wronai/wrd/blob/main/CHANGELOG.md
|
15
|
+
Project-URL: Issues, https://github.com/wronai/wrd/issues
|
16
|
+
Classifier: Development Status :: 3 - Alpha
|
17
|
+
Classifier: Intended Audience :: Developers
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
24
|
+
Classifier: Topic :: Software Development
|
25
|
+
Classifier: Topic :: Software Development :: Code Generators
|
26
|
+
Classifier: Topic :: Software Development :: Build Tools
|
27
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
28
|
+
Classifier: Topic :: Utilities
|
29
|
+
Requires-Python: >=3.8
|
30
|
+
Description-Content-Type: text/markdown
|
31
|
+
License-File: LICENSE
|
32
|
+
Requires-Dist: typer[all]<1.0.0,>=0.12.3
|
33
|
+
Requires-Dist: rich<14.0.0,>=13.7.0
|
34
|
+
Requires-Dist: pyyaml<7.0.0,>=6.0.1
|
35
|
+
Requires-Dist: jinja2<4.0.0,>=3.1.2
|
36
|
+
Requires-Dist: python-dotenv<2.0.0,>=1.0.0
|
37
|
+
Requires-Dist: click<9.0.0,>=8.1.7
|
38
|
+
Requires-Dist: pydantic<3.0.0,>=2.5.2
|
39
|
+
Requires-Dist: shellingham<2.0.0,>=1.5.0
|
40
|
+
Provides-Extra: dev
|
41
|
+
Requires-Dist: pytest<8.0.0,>=7.4.0; extra == "dev"
|
42
|
+
Requires-Dist: pytest-cov<5.0.0,>=4.1.0; extra == "dev"
|
43
|
+
Requires-Dist: black<24.0.0,>=23.7.0; extra == "dev"
|
44
|
+
Requires-Dist: isort<6.0.0,>=5.12.0; extra == "dev"
|
45
|
+
Requires-Dist: flake8<7.0.0,>=6.1.0; extra == "dev"
|
46
|
+
Requires-Dist: mypy<2.0.0,>=1.5.1; extra == "dev"
|
47
|
+
Requires-Dist: sphinx<8.0.0,>=7.0.0; extra == "dev"
|
48
|
+
Requires-Dist: sphinx-rtd-theme<2.0.0,>=1.2.0; extra == "dev"
|
49
|
+
Requires-Dist: twine<5.0.0,>=4.0.0; extra == "dev"
|
50
|
+
Requires-Dist: build<1.0.0,>=0.10.0; extra == "dev"
|
51
|
+
Provides-Extra: data
|
52
|
+
Requires-Dist: pandas<2.0.0,>=1.5.0; extra == "data"
|
53
|
+
Requires-Dist: numpy<2.0.0,>=1.24.0; extra == "data"
|
54
|
+
Requires-Dist: matplotlib<4.0.0,>=3.6.0; extra == "data"
|
55
|
+
Provides-Extra: web
|
56
|
+
Requires-Dist: fastapi<1.0.0,>=0.95.0; extra == "web"
|
57
|
+
Requires-Dist: uvicorn<1.0.0,>=0.20.0; extra == "web"
|
58
|
+
Dynamic: license-file
|
59
|
+
|
60
|
+
|
61
|
+

|
62
|
+
<div align="center">
|
63
|
+
<h1>WRD (WRonai Development)</h1>
|
64
|
+
<p>A powerful workflow automation tool for developers</p>
|
65
|
+
|
66
|
+
[](https://pypi.org/project/wrd/)
|
67
|
+
[](https://www.python.org/)
|
68
|
+
[](LICENSE)
|
69
|
+
|
70
|
+
[Documentation](https://wronai.github.io/wrd) |
|
71
|
+
[Examples](https://github.com/wronai/wrd/tree/main/examples) |
|
72
|
+
[Report Bug](https://github.com/wronai/wrd/issues)
|
73
|
+
</div>
|
74
|
+
|
75
|
+
## 🚀 Features
|
76
|
+
|
77
|
+
- **Project Templates**: Quickly bootstrap projects with pre-configured templates
|
78
|
+
- **Interactive Shell**: User-friendly command-line interface with rich menus
|
79
|
+
- **Multi-language Support**: Works with Python, JavaScript, and more
|
80
|
+
- **Customizable**: Create and share your own templates
|
81
|
+
- **PWA Support**: Generate single-file Progressive Web Apps
|
82
|
+
- **Git Integration**: Automatic Git repository initialization
|
83
|
+
- **Configuration**: Simple YAML-based configuration
|
84
|
+
- **Claude Code Integration**: Seamless integration with Claude Code AI assistant
|
85
|
+
|
86
|
+
## Features
|
87
|
+
|
88
|
+
- 🚀 **Project Management**: Create and manage projects with a single command
|
89
|
+
- 📝 **Automatic Documentation**: Generate and maintain project documentation
|
90
|
+
- 🤖 **AI Integration**: Optimized for working with AI coding assistants
|
91
|
+
- 🔄 **Workflow Automation**: Automate repetitive tasks
|
92
|
+
- ⏱️ **Session Monitoring**: Track your coding sessions
|
93
|
+
- 💾 **Backup System**: Keep your work safe with automated backups
|
94
|
+
- 📊 **Progress Tracking**: Monitor your project's progress
|
95
|
+
|
96
|
+
## Installation
|
97
|
+
|
98
|
+
### Prerequisites
|
99
|
+
|
100
|
+
- Python 3.8 or higher
|
101
|
+
- Git
|
102
|
+
- pip (Python package manager)
|
103
|
+
|
104
|
+
### Using pip (recommended)
|
105
|
+
|
106
|
+
```bash
|
107
|
+
pip install wrd-tool
|
108
|
+
```
|
109
|
+
|
110
|
+
### From source
|
111
|
+
```bash
|
112
|
+
# Clone the repository
|
113
|
+
git clone https://github.com/wronai/wrd.git
|
114
|
+
cd wrd
|
115
|
+
|
116
|
+
# Install in development mode
|
117
|
+
pip install -e .
|
118
|
+
```
|
119
|
+
|
120
|
+
## Quick Start
|
121
|
+
|
122
|
+
### Create a new project
|
123
|
+
```bash
|
124
|
+
wrd create my-awesome-project --type python --description "My awesome project"
|
125
|
+
```
|
126
|
+
|
127
|
+
### List all projects
|
128
|
+
```bash
|
129
|
+
wrd list
|
130
|
+
```
|
131
|
+
|
132
|
+
### Update project progress
|
133
|
+
```bash
|
134
|
+
wrd progress my-awesome-project "Initial setup complete"
|
135
|
+
```
|
136
|
+
|
137
|
+
### Create a backup
|
138
|
+
```bash
|
139
|
+
wrd backup
|
140
|
+
```
|
141
|
+
|
142
|
+
## Project Structure
|
143
|
+
|
144
|
+
When you create a new project, the following structure is generated:
|
145
|
+
|
146
|
+
```
|
147
|
+
my-awesome-project/
|
148
|
+
├── .git/
|
149
|
+
├── .gitignore
|
150
|
+
├── README.md
|
151
|
+
├── CLAUDE.md
|
152
|
+
├── requirements.txt
|
153
|
+
├── src/
|
154
|
+
│ └── __init__.py
|
155
|
+
├── tests/
|
156
|
+
│ └── __init__.py
|
157
|
+
└── .wrd/
|
158
|
+
└── config.json
|
159
|
+
```
|
160
|
+
|
161
|
+
## 🐳 Docker Setup (Recommended)
|
162
|
+
|
163
|
+
For an isolated development environment, you can use Docker to run WRD with Claude Code:
|
164
|
+
|
165
|
+
### Prerequisites
|
166
|
+
- Docker and Docker Compose
|
167
|
+
- At least 2GB of free disk space
|
168
|
+
|
169
|
+
### Quick Start
|
170
|
+
|
171
|
+
1. **Clone the repository** (if not already done):
|
172
|
+
```bash
|
173
|
+
git clone https://github.com/wronai/wrd.git
|
174
|
+
cd wrd
|
175
|
+
```
|
176
|
+
|
177
|
+
2. **Start the container**:
|
178
|
+
```bash
|
179
|
+
./cli/claude-code.sh
|
180
|
+
```
|
181
|
+
|
182
|
+
3. **If you encounter disk space issues**, try cleaning up Docker resources:
|
183
|
+
```bash
|
184
|
+
# Clean up unused containers and images
|
185
|
+
docker system prune -a
|
186
|
+
|
187
|
+
# Check disk usage
|
188
|
+
docker system df
|
189
|
+
|
190
|
+
# Remove all unused volumes (be careful, this will delete all unused volumes)
|
191
|
+
docker volume prune
|
192
|
+
```
|
193
|
+
|
194
|
+
4. **For persistent storage issues**, you can configure Docker to use a different storage location:
|
195
|
+
```bash
|
196
|
+
# Stop Docker
|
197
|
+
sudo systemctl stop docker
|
198
|
+
|
199
|
+
# Edit Docker daemon configuration
|
200
|
+
sudo nano /etc/docker/daemon.json
|
201
|
+
```
|
202
|
+
Add or modify the following (replace `/path/to/with/space` with your desired location):
|
203
|
+
```json
|
204
|
+
{
|
205
|
+
"data-root": "/path/to/with/space/docker"
|
206
|
+
}
|
207
|
+
```
|
208
|
+
Then restart Docker:
|
209
|
+
```bash
|
210
|
+
sudo systemctl start docker
|
211
|
+
```
|
212
|
+
|
213
|
+
## 🤖 Claude Code Integration
|
214
|
+
|
215
|
+
WRD works seamlessly with [Claude Code](https://www.anthropic.com/product/claude-code), an AI coding assistant. Follow these steps to set up Claude Code with WRD:
|
216
|
+
|
217
|
+
### Quick Setup
|
218
|
+
|
219
|
+
1. Install Claude Code globally:
|
220
|
+
```bash
|
221
|
+
npm install -g @anthropic-ai/claude-code
|
222
|
+
```
|
223
|
+
|
224
|
+
2. Authenticate with your preferred method:
|
225
|
+
- Anthropic Console (requires billing)
|
226
|
+
- Claude Pro/Max subscription
|
227
|
+
- Enterprise platforms (Bedrock/Vertex AI)
|
228
|
+
|
229
|
+
3. Initialize a new project with WRD and Claude Code:
|
230
|
+
```bash
|
231
|
+
wrd create my-ai-project --type python
|
232
|
+
cd my-ai-project
|
233
|
+
claude
|
234
|
+
```
|
235
|
+
|
236
|
+
4. Use the `/init` command in the Claude Code interface to generate project-specific documentation.
|
237
|
+
|
238
|
+
For detailed installation instructions, troubleshooting, and advanced configuration, see our [Claude Code Setup Guide](./docs/how-to-guides/claude-code-setup.md).
|
239
|
+
|
240
|
+
## Documentation
|
241
|
+
|
242
|
+
For detailed documentation, please visit our [documentation site](https://wronai.github.io/wrd/).
|
243
|
+
|
244
|
+
## Contributing
|
245
|
+
|
246
|
+
Contributions are welcome! Please read our [contributing guidelines](CONTRIBUTING.md) before submitting pull requests.
|
247
|
+
|
248
|
+
1. Fork the repository
|
249
|
+
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
|
250
|
+
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
|
251
|
+
4. Push to the branch (`git push origin feature/amazing-feature`)
|
252
|
+
5. Open a Pull Request
|
253
|
+
|
254
|
+
## License
|
255
|
+
|
256
|
+
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
|
257
|
+
|
258
|
+
## Support
|
259
|
+
|
260
|
+
For support, please open an issue in the [issue tracker](https://github.com/wronai/wrd/issues).
|
261
|
+
|
262
|
+
## Acknowledgments
|
263
|
+
|
264
|
+
- Inspired by Claude Code workflow
|
265
|
+
- Built with ❤️ by the WRonai team
|
266
|
+
|
267
|
+
## 📦 Features
|
268
|
+
|
269
|
+
- **Project Management**: Create and manage projects with a single command
|
270
|
+
- **Automatic Documentation**: Generate and maintain project documentation
|
271
|
+
- **Workflow Automation**: Automate repetitive tasks
|
272
|
+
- **Session Monitoring**: Track your coding sessions
|
273
|
+
- **Backup System**: Keep your work safe with automated backups
|
274
|
+
|
275
|
+
## 🚀 Installation
|
276
|
+
|
277
|
+
### Prerequisites
|
278
|
+
|
279
|
+
- Python 3.8 or higher
|
280
|
+
- Git
|
281
|
+
- pip (Python package manager)
|
282
|
+
|
283
|
+
### Quick Start
|
284
|
+
|
285
|
+
1. **Clone the repository**:
|
286
|
+
```bash
|
287
|
+
git clone https://github.com/wronai/wrd.git
|
288
|
+
cd wrd
|
289
|
+
```
|
290
|
+
|
291
|
+
2. **Set up a virtual environment (recommended)**:
|
292
|
+
```bash
|
293
|
+
python -m venv venv
|
294
|
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
295
|
+
```
|
296
|
+
|
297
|
+
3. **Install in development mode**:
|
298
|
+
```bash
|
299
|
+
pip install -e .
|
300
|
+
```
|
301
|
+
|
302
|
+
4. **Verify installation**:
|
303
|
+
```bash
|
304
|
+
wrd --help
|
305
|
+
```
|
306
|
+
|
307
|
+
## 🛠 Usage
|
308
|
+
|
309
|
+
### Basic Commands
|
310
|
+
|
311
|
+
```bash
|
312
|
+
# Show help
|
313
|
+
wrd --help
|
314
|
+
|
315
|
+
# Create a new project
|
316
|
+
wrd create my-project --description "My awesome project"
|
317
|
+
|
318
|
+
# List all projects
|
319
|
+
wrd list
|
320
|
+
|
321
|
+
# Show project status
|
322
|
+
wrd status
|
323
|
+
|
324
|
+
# Update project progress
|
325
|
+
wrd progress my-project "Initial setup complete"
|
326
|
+
|
327
|
+
# Create a backup
|
328
|
+
wrd backup
|
329
|
+
```
|
330
|
+
|
331
|
+
### Creating a New Project
|
332
|
+
|
333
|
+
```bash
|
334
|
+
# Create a new Python project
|
335
|
+
wrd create my-python-project --type python --description "My Python project"
|
336
|
+
|
337
|
+
# Create a new web project
|
338
|
+
wrd create my-web-project --type web --description "My Web project"
|
339
|
+
```
|
340
|
+
|
341
|
+
### Project Structure
|
342
|
+
|
343
|
+
When you create a new project, the following structure is generated:
|
344
|
+
|
345
|
+
```
|
346
|
+
my-project/
|
347
|
+
├── .git/
|
348
|
+
├── .gitignore
|
349
|
+
├── README.md
|
350
|
+
├── CLAUDE.md
|
351
|
+
├── requirements.txt
|
352
|
+
├── src/
|
353
|
+
│ └── __init__.py
|
354
|
+
├── tests/
|
355
|
+
│ └── __init__.py
|
356
|
+
└── .wrd/
|
357
|
+
└── config.json
|
358
|
+
```
|
359
|
+
|
360
|
+
## 🧪 Testing
|
361
|
+
|
362
|
+
Run the test suite with:
|
363
|
+
|
364
|
+
```bash
|
365
|
+
pytest tests/
|
366
|
+
```
|
367
|
+
|
368
|
+
## 📚 Documentation
|
369
|
+
|
370
|
+
For detailed documentation, please visit our [documentation site](https://github.com/wronai/wrd/wiki).
|
371
|
+
|
372
|
+
## 🤝 Contributing
|
373
|
+
|
374
|
+
Contributions are welcome! Please read our [contributing guidelines](CONTRIBUTING.md) before submitting pull requests.
|
375
|
+
|
376
|
+
## 📄 License
|
377
|
+
|
378
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
379
|
+
|
380
|
+
## 📞 Support
|
381
|
+
|
382
|
+
For support, please open an issue in the [issue tracker](https://github.com/wronai/wrd/issues).
|
383
|
+
|
384
|
+
---
|
385
|
+
|
386
|
+
## Fedora-Specific Setup (Optional)
|
387
|
+
|
388
|
+
If you're using Fedora, you can use the following setup script:
|
389
|
+
|
390
|
+
```bash
|
391
|
+
# Run the setup script
|
392
|
+
curl -fsSL https://raw.githubusercontent.com/wronai/wrd/main/fedora.sh | bash
|
393
|
+
|
394
|
+
# Or download and run manually:
|
395
|
+
wget https://raw.githubusercontent.com/wronai/wrd/main/fedora.sh
|
396
|
+
chmod +x fedora.sh
|
397
|
+
./fedora.sh
|
398
|
+
```
|
399
|
+
|
400
|
+
After running the script:
|
401
|
+
```bash
|
402
|
+
# Reload your shell configuration
|
403
|
+
source ~/.bashrc
|
404
|
+
|
405
|
+
# Verify the installation
|
406
|
+
cc-workspace
|
407
|
+
```
|
408
|
+
|
409
|
+
```bash
|
410
|
+
# Przejdź do workspace
|
411
|
+
cc-workspace
|
412
|
+
|
413
|
+
# Sklonuj repozytorium WRD
|
414
|
+
git clone https://github.com/wronai/wrd.git
|
415
|
+
cd wrd
|
416
|
+
|
417
|
+
# Utwórz dedykowane środowisko wirtualne dla WRD
|
418
|
+
python3 -m venv ~/.wrd-env
|
419
|
+
source ~/.wrd-env/bin/activate
|
420
|
+
|
421
|
+
# Instalacja w trybie deweloperskim
|
422
|
+
pip install -e .
|
423
|
+
|
424
|
+
# Dodaj ścieżkę do PATH (w ~/.bashrc)
|
425
|
+
echo 'export PATH="$HOME/.wrd-env/bin:$PATH"' >> ~/.bashrc
|
426
|
+
source ~/.bashrc
|
427
|
+
```
|
428
|
+
|
429
|
+
### Metoda B: Instalacja przez pip (gdy będzie dostępne)
|
430
|
+
|
431
|
+
```bash
|
432
|
+
pip install wrd
|
433
|
+
```
|
434
|
+
|
435
|
+
### Metoda C: Budowanie z źródła
|
436
|
+
|
437
|
+
```bash
|
438
|
+
# Pobierz wszystkie pliki WRD
|
439
|
+
mkdir -p ~/wrd-build
|
440
|
+
cd ~/wrd-build
|
441
|
+
|
442
|
+
# Skopiuj kod główny (plik wrd.py)
|
443
|
+
# Skopiuj pliki setup (setup.py, pyproject.toml, etc.)
|
444
|
+
# [Pliki są dostępne w artefaktach Claude]
|
445
|
+
|
446
|
+
# Instalacja
|
447
|
+
python3 -m venv venv
|
448
|
+
source venv/bin/activate
|
449
|
+
pip install --upgrade pip setuptools wheel
|
450
|
+
pip install -e .
|
451
|
+
```
|
452
|
+
|
453
|
+
## Krok 3: Konfiguracja WRD
|
454
|
+
|
455
|
+
```bash
|
456
|
+
# Pierwszy start - automatyczna konfiguracja
|
457
|
+
wrd status
|
458
|
+
|
459
|
+
# Sprawdź czy wszystko działa
|
460
|
+
wrd list
|
461
|
+
|
462
|
+
# Utwórz pierwszy projekt testowy
|
463
|
+
wrd create test-project --description "Testowy projekt WRD"
|
464
|
+
|
465
|
+
# Sprawdź strukturę
|
466
|
+
ls -la ~/claude-projects/test-project/
|
467
|
+
```
|
468
|
+
|
469
|
+
## Krok 4: Integracja z Claude Code
|
470
|
+
|
471
|
+
### Instalacja Claude Code
|
472
|
+
|
473
|
+
1. **Zaloguj się na https://claude.ai**
|
474
|
+
2. **Przejdź do ustawień → API**
|
475
|
+
3. **Wygeneruj klucz API** (wymaga Claude Pro)
|
476
|
+
4. **Pobierz Claude Code CLI** według oficjalnej dokumentacji Anthropic
|
477
|
+
|
478
|
+
### Konfiguracja
|
479
|
+
|
480
|
+
```bash
|
481
|
+
# Ustaw klucz API (przykład)
|
482
|
+
export ANTHROPIC_API_KEY="your-api-key-here"
|
483
|
+
|
484
|
+
# Dodaj do ~/.bashrc dla trwałości
|
485
|
+
echo 'export ANTHROPIC_API_KEY="your-api-key-here"' >> ~/.bashrc
|
486
|
+
|
487
|
+
# Sprawdź instalację Claude Code
|
488
|
+
claude-code --version
|
489
|
+
```
|
490
|
+
|
491
|
+
## Krok 5: Workflow setup
|
492
|
+
|
493
|
+
### Tworzenie pierwszego prawdziwego projektu
|
494
|
+
|
495
|
+
```bash
|
496
|
+
# Utwórz projekt
|
497
|
+
wrd create moj-pierwszy-ai-projekt --type python --description "Pierwszy projekt z Claude Code"
|
498
|
+
|
499
|
+
# Przejdź do projektu
|
500
|
+
cd ~/claude-projects/moj-pierwszy-ai-projekt
|
501
|
+
|
502
|
+
# Aktywuj środowisko Python
|
503
|
+
source venv/bin/activate
|
504
|
+
|
505
|
+
# Zainicjalizuj git
|
506
|
+
git init
|
507
|
+
git add .
|
508
|
+
git commit -m "Initial commit via WRD"
|
509
|
+
|
510
|
+
# Edytuj CLAUDE.md - dodaj specyfikację projektu
|
511
|
+
nano CLAUDE.md
|
512
|
+
|
513
|
+
# Zacznij pracę z Claude Code
|
514
|
+
claude-code init # lub odpowiednia komenda
|
515
|
+
```
|
516
|
+
|
517
|
+
### Testowanie workflow
|
518
|
+
|
519
|
+
```bash
|
520
|
+
# Test 1: Tworzenie kodu
|
521
|
+
echo "print('Hello from WRD!')" > src/main.py
|
522
|
+
|
523
|
+
# Test 2: Aktualizacja postępu
|
524
|
+
wrd progress moj-pierwszy-ai-projekt "Dodano główny plik aplikacji"
|
525
|
+
|
526
|
+
# Test 3: Automatyczny commit
|
527
|
+
wrd commit moj-pierwszy-ai-projekt --message "Dodanie main.py"
|
528
|
+
|
529
|
+
# Test 4: Backup
|
530
|
+
wrd backup
|
531
|
+
|
532
|
+
# Test 5: Status
|
533
|
+
wrd status
|
534
|
+
```
|
535
|
+
|
536
|
+
## Krok 6: Integracja z innymi narzędziami
|
537
|
+
|
538
|
+
### Cursor IDE
|
539
|
+
|
540
|
+
```bash
|
541
|
+
# Jeśli masz Cursor zainstalowany
|
542
|
+
cursor ~/claude-projects/moj-pierwszy-ai-projekt
|
543
|
+
```
|
544
|
+
|
545
|
+
### Gemini CLI (opcjonalnie)
|
546
|
+
|
547
|
+
```bash
|
548
|
+
# Instalacja Gemini CLI według dokumentacji Google
|
549
|
+
# Konfiguracja w WRD
|
550
|
+
nano ~/.wrd/config.json
|
551
|
+
# Ustaw "gemini_cli": {"enabled": true, "priority": 2}
|
552
|
+
```
|
553
|
+
|
554
|
+
### SSH dla zdalnej pracy
|
555
|
+
|
556
|
+
```bash
|
557
|
+
# Sprawdź czy SSH działa
|
558
|
+
sudo systemctl status sshd
|
559
|
+
|
560
|
+
# Test połączenia z telefonu/innego urządzenia
|
561
|
+
ssh wronai@your-fedora-ip
|
562
|
+
|
563
|
+
# Na zdalnym urządzeniu:
|
564
|
+
cc-workspace
|
565
|
+
wrd status
|
566
|
+
```
|
567
|
+
|
568
|
+
## Krok 7: Zaawansowana konfiguracja
|
569
|
+
|
570
|
+
### Aliasy i funkcje pomocnicze
|
571
|
+
|
572
|
+
Dodaj do `~/.bashrc`:
|
573
|
+
|
574
|
+
```bash
|
575
|
+
# WRD shortcuts
|
576
|
+
alias w='wrd'
|
577
|
+
alias ws='wrd status'
|
578
|
+
alias wl='wrd list'
|
579
|
+
alias wp='wrd progress'
|
580
|
+
alias wb='wrd backup'
|
581
|
+
|
582
|
+
# Claude Code shortcuts
|
583
|
+
alias cc='claude-code'
|
584
|
+
alias ccd='claude-code dev'
|
585
|
+
alias ccb='claude-code build'
|
586
|
+
|
587
|
+
# Combined workflow functions
|
588
|
+
wcc-start() {
|
589
|
+
wrd create "$1" --type "${2:-python}" --description "${3:-AI project}"
|
590
|
+
cd ~/claude-projects/"$1"
|
591
|
+
source venv/bin/activate
|
592
|
+
echo "Projekt $1 gotowy. Uruchom: claude-code dev"
|
593
|
+
}
|
594
|
+
|
595
|
+
wcc-session() {
|
596
|
+
cd ~/claude-projects/"$1" || { echo "Projekt nie istnieje"; return 1; }
|
597
|
+
source venv/bin/activate
|
598
|
+
echo "Sesja $1 uruchomiona. Czas: $(date)"
|
599
|
+
wrd progress "$1" "Rozpoczęcie sesji $(date '+%H:%M')"
|
600
|
+
}
|
601
|
+
```
|
602
|
+
|
603
|
+
### Automatyczne backup
|
604
|
+
|
605
|
+
```bash
|
606
|
+
# Dodaj cron job dla automatycznych backup (opcjonalnie)
|
607
|
+
(crontab -l 2>/dev/null; echo "0 */6 * * * /home/$USER/.wrd-env/bin/wrd backup > /dev/null 2>&1") | crontab -
|
608
|
+
```
|
609
|
+
|
610
|
+
### Monitoring sesji
|
611
|
+
|
612
|
+
```bash
|
613
|
+
# Skrypt do monitorowania czasu sesji (5h limit Claude Code)
|
614
|
+
cat > ~/claude-projects/scripts/session-monitor.sh << 'EOF'
|
615
|
+
#!/bin/bash
|
616
|
+
echo "⏰ Monitor sesji Claude Code (limit 5h)"
|
617
|
+
start_time=$(date +%s)
|
618
|
+
while true; do
|
619
|
+
current_time=$(date +%s)
|
620
|
+
elapsed=$((current_time - start_time))
|
621
|
+
hours=$((elapsed / 3600))
|
622
|
+
minutes=$(((elapsed % 3600) / 60))
|
623
|
+
|
624
|
+
if [ $hours -ge 4 ]; then
|
625
|
+
echo "⚠️ UWAGA: Zbliżasz się do limitu! Czas: ${hours}h ${minutes}m"
|
626
|
+
fi
|
627
|
+
|
628
|
+
if [ $hours -ge 5 ]; then
|
629
|
+
echo "🛑 LIApache OSIĄGNIĘTY! Reset za $(date -d '+5 hours' '+%H:%M')"
|
630
|
+
break
|
631
|
+
fi
|
632
|
+
|
633
|
+
sleep 300 # Check every 5 minutes
|
634
|
+
done
|
635
|
+
EOF
|
636
|
+
|
637
|
+
chmod +x ~/claude-projects/scripts/session-monitor.sh
|
638
|
+
```
|
639
|
+
|
640
|
+
## Krok 8: Rozwiązywanie problemów
|
641
|
+
|
642
|
+
### Problem: Brak uprawnień Docker
|
643
|
+
|
644
|
+
```bash
|
645
|
+
sudo usermod -aG docker $USER
|
646
|
+
newgrp docker
|
647
|
+
# lub zaloguj się ponownie
|
648
|
+
```
|
649
|
+
|
650
|
+
### Problem: Python venv nie działa
|
651
|
+
|
652
|
+
```bash
|
653
|
+
# Reinstalacja python3-venv
|
654
|
+
sudo dnf reinstall python3-venv
|
655
|
+
# Usuń stare środowisko
|
656
|
+
rm -rf ~/.wrd-env
|
657
|
+
# Stwórz nowe
|
658
|
+
python3 -m venv ~/.wrd-env
|
659
|
+
source ~/.wrd-env/bin/activate
|
660
|
+
pip install -e ~/wrd-build/
|
661
|
+
```
|
662
|
+
|
663
|
+
### Problem: Claude Code nie działa
|
664
|
+
|
665
|
+
```bash
|
666
|
+
# Sprawdź klucz API
|
667
|
+
echo $ANTHROPIC_API_KEY
|
668
|
+
|
669
|
+
# Sprawdź połączenie internetowe
|
670
|
+
curl -s https://api.anthropic.com/v1/messages
|
671
|
+
|
672
|
+
# Sprawdź wersję
|
673
|
+
claude-code --version
|
674
|
+
```
|
675
|
+
|
676
|
+
### Problem: Brak miejsca na dysku
|
677
|
+
|
678
|
+
```bash
|
679
|
+
# Wyczyść stare backup
|
680
|
+
wrd backup # Nowy backup
|
681
|
+
rm ~/claude-projects/archive/backup-*.tar.gz.old
|
682
|
+
|
683
|
+
# Wyczyść cache pip
|
684
|
+
pip cache purge
|
685
|
+
|
686
|
+
# Wyczyść Docker (jeśli używasz)
|
687
|
+
docker system prune -a
|
688
|
+
```
|
689
|
+
|
690
|
+
## Krok 9: Pierwsze prawdziwe użycie
|
691
|
+
|
692
|
+
### Scenariusz: Projekt w 48h (konkurs)
|
693
|
+
|
694
|
+
```bash
|
695
|
+
# Dzień 1 - Setup (wieczór)
|
696
|
+
wcc-start konkurs-super-app fastapi "Aplikacja konkursowa - API + Frontend"
|
697
|
+
|
698
|
+
# Otwórz Claude.ai w przeglądarce
|
699
|
+
# Stwórz szczegółową specyfikację
|
700
|
+
# Skopiuj do CLAUDE.md
|
701
|
+
|
702
|
+
# Dzień 2 - Sesja #1 (rano, 5h)
|
703
|
+
wcc-session konkurs-super-app
|
704
|
+
# Uruchom session-monitor w drugim terminalu
|
705
|
+
~/claude-projects/scripts/session-monitor.sh &
|
706
|
+
# Rozpocznij pracę z Claude Code
|
707
|
+
claude-code dev
|
708
|
+
|
709
|
+
# Po sesji
|
710
|
+
wrd progress konkurs-super-app "Sesja 1 zakończona - podstawowa struktura API"
|
711
|
+
wrd commit konkurs-super-app "Implementacja podstawowego API"
|
712
|
+
|
713
|
+
# Dzień 2 - Sesja #2 (po przerwie, 3h)
|
714
|
+
# Podobnie jak wyżej...
|
715
|
+
|
716
|
+
# Finalizacja
|
717
|
+
wrd progress konkurs-super-app "Aplikacja gotowa do zgłoszenia!"
|
718
|
+
wrd backup
|
719
|
+
```
|
720
|
+
|
721
|
+
### Scenariusz: Długoterminowe narzędzie
|
722
|
+
|
723
|
+
```bash
|
724
|
+
# Tydzień 1
|
725
|
+
wcc-start moje-cli-tool python "Autorskie narzędzie CLI"
|
726
|
+
# Rozwój iteracyjny...
|
727
|
+
|
728
|
+
# Tydzień 2
|
729
|
+
wrd progress moje-cli-tool "Tydzień 2 - dodano funkcje X, Y, Z"
|
730
|
+
|
731
|
+
# Tydzień 3
|
732
|
+
wrd progress moje-cli-tool "Tydzień 3 - optymalizacja i testy"
|
733
|
+
```
|
734
|
+
|
735
|
+
## 🎉 Gratulacje!
|
736
|
+
|
737
|
+
Masz teraz w pełni skonfigurowane środowisko WRD na Fedorze z integracją Claude Code.
|
738
|
+
|
739
|
+
**Następne kroki:**
|
740
|
+
1. Stwórz pierwszy prawdziwy projekt
|
741
|
+
2. Przetestuj workflow 5-godzinnych sesji
|
742
|
+
3. Rozwijaj własne techniki i flow
|
743
|
+
4. Dokumentuj wszystko w CLAUDE.md
|
744
|
+
5. Dziel się doświadczeniami z community!
|
745
|
+
|
746
|
+
**Przydatne komendy do zapamiętania:**
|
747
|
+
- `wrd status` - sprawdź status
|
748
|
+
- `wcc-start nazwa typ` - nowy projekt + sesja
|
749
|
+
- `wrd progress projekt "opis"` - zaktualizuj postęp
|
750
|
+
- `wrd backup` - zabezpiecz pracę
|
751
|
+
|