Skip to content

Commit a7ac607

Browse files
TexasCodingclaude
andcommitted
docs: Update all AI assistant documentation files for v3.2.0
- Update GEMINI.md, .cursorrules, and GROK.md to match CLAUDE.md - Set version to v3.2.0 - Enhanced Type Safety Release - Add standardized deprecation process documentation - Include Obsidian/external documentation guidelines - Ensure consistency across all AI assistant files All AI assistants now have: - Current v3.2.0 status and features - Standardized deprecation decorator usage - Instructions to keep project clean of non-production docs - Consistent development guidelines 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
1 parent 98b09be commit a7ac607

File tree

3 files changed

+166
-40
lines changed

3 files changed

+166
-40
lines changed

.cursorrules

Lines changed: 49 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This file provides guidance to Cursor AI when working with code in this repository.
44

5-
## Project Status: v3.1.1 - Stable Production Release
5+
## Project Status: v3.2.0 - Enhanced Type Safety Release
66

77
**IMPORTANT**: This project uses a fully asynchronous architecture. All APIs are async-only, optimized for high-performance futures trading.
88

@@ -27,27 +27,62 @@ Example approach:
2727
- ❌ DON'T: Remove deprecated features without proper notice period
2828

2929
### Deprecation Process
30-
1. Mark as deprecated with `warnings.warn()` and `@deprecated` decorator
31-
2. Document replacement in deprecation message
30+
1. Use the standardized `@deprecated` decorator from `project_x_py.utils.deprecation`
31+
2. Provide clear reason, version info, and replacement path
3232
3. Keep deprecated feature for at least 2 minor versions
3333
4. Remove only in major version releases (4.0.0, 5.0.0, etc.)
3434

3535
Example:
3636
```python
37-
import warnings
38-
from typing import deprecated
39-
40-
@deprecated("Use new_method() instead. Will be removed in v4.0.0")
37+
from project_x_py.utils.deprecation import deprecated, deprecated_class
38+
39+
# For functions/methods
40+
@deprecated(
41+
reason="Method renamed for clarity",
42+
version="3.1.14", # When deprecated
43+
removal_version="4.0.0", # When it will be removed
44+
replacement="new_method()" # What to use instead
45+
)
4146
def old_method(self):
42-
warnings.warn(
43-
"old_method() is deprecated, use new_method() instead. "
44-
"Will be removed in v4.0.0",
45-
DeprecationWarning,
46-
stacklevel=2
47-
)
4847
return self.new_method()
48+
49+
# For classes
50+
@deprecated_class(
51+
reason="Integrated into TradingSuite",
52+
version="3.1.14",
53+
removal_version="4.0.0",
54+
replacement="TradingSuite"
55+
)
56+
class OldManager:
57+
pass
4958
```
5059

60+
The standardized deprecation utilities provide:
61+
- Consistent warning messages across the SDK
62+
- Automatic docstring updates with deprecation info
63+
- IDE support through the `deprecated` package
64+
- Metadata tracking for deprecation management
65+
- Support for functions, methods, classes, and parameters
66+
67+
## Development Documentation
68+
69+
### Important: Keep Project Clean - Use External Documentation
70+
71+
**DO NOT create project files for**:
72+
- Personal development notes
73+
- Temporary planning documents
74+
- Testing logs and results
75+
- Work-in-progress documentation
76+
- Meeting notes or discussions
77+
78+
**Instead, use**:
79+
- External documentation tools (Obsidian, Notion, etc.)
80+
- GitHub Issues for bug tracking
81+
- GitHub Discussions for architecture decisions
82+
- Pull Request descriptions for implementation details
83+
84+
This keeps the project repository clean and focused on production code.
85+
5186
## Development Commands
5287

5388
### Package Management (UV)
@@ -96,7 +131,7 @@ uv run python -m build # Alternative build command
96131

97132
## Project Architecture
98133

99-
### Core Components (v3.0.1 - Multi-file Packages)
134+
### Core Components (v3.0.2 - Multi-file Packages)
100135

101136
**ProjectX Client (`src/project_x_py/client/`)**
102137
- Main async API client for TopStepX ProjectX Gateway

GEMINI.md

Lines changed: 69 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This file provides guidance to Google's Gemini models when working with code in this repository.
44

5-
## Project Status: v3.1.7 - Stable Production Release
5+
## Project Status: v3.2.0 - Enhanced Type Safety Release
66

77
**IMPORTANT**: This project uses a fully asynchronous architecture. All APIs are async-only, optimized for high-performance futures trading.
88

@@ -27,27 +27,83 @@ Example approach:
2727
- ❌ DON'T: Remove deprecated features without proper notice period
2828

2929
### Deprecation Process
30-
1. Mark as deprecated with `warnings.warn()` and `@deprecated` decorator
31-
2. Document replacement in deprecation message
30+
1. Use the standardized `@deprecated` decorator from `project_x_py.utils.deprecation`
31+
2. Provide clear reason, version info, and replacement path
3232
3. Keep deprecated feature for at least 2 minor versions
3333
4. Remove only in major version releases (4.0.0, 5.0.0, etc.)
3434

3535
Example:
3636
```python
37-
import warnings
38-
from typing import deprecated
39-
40-
@deprecated("Use new_method() instead. Will be removed in v4.0.0")
37+
from project_x_py.utils.deprecation import deprecated, deprecated_class
38+
39+
# For functions/methods
40+
@deprecated(
41+
reason="Method renamed for clarity",
42+
version="3.1.14", # When deprecated
43+
removal_version="4.0.0", # When it will be removed
44+
replacement="new_method()" # What to use instead
45+
)
4146
def old_method(self):
42-
warnings.warn(
43-
"old_method() is deprecated, use new_method() instead. "
44-
"Will be removed in v4.0.0",
45-
DeprecationWarning,
46-
stacklevel=2
47-
)
4847
return self.new_method()
48+
49+
# For classes
50+
@deprecated_class(
51+
reason="Integrated into TradingSuite",
52+
version="3.1.14",
53+
removal_version="4.0.0",
54+
replacement="TradingSuite"
55+
)
56+
class OldManager:
57+
pass
58+
```
59+
60+
The standardized deprecation utilities provide:
61+
- Consistent warning messages across the SDK
62+
- Automatic docstring updates with deprecation info
63+
- IDE support through the `deprecated` package
64+
- Metadata tracking for deprecation management
65+
- Support for functions, methods, classes, and parameters
66+
67+
## Development Documentation with Obsidian
68+
69+
### Important: Use Obsidian for Development Plans and Progress Tracking
70+
71+
**ALWAYS use Obsidian MCP integration for**:
72+
- Multi-session development plans
73+
- Testing procedures and results
74+
- Architecture decisions and design documents
75+
- Feature planning and roadmaps
76+
- Bug investigation notes
77+
- Performance optimization tracking
78+
- Release planning and checklists
79+
80+
**DO NOT create project files for**:
81+
- Personal development notes (use Obsidian instead)
82+
- Temporary planning documents
83+
- Testing logs and results
84+
- Work-in-progress documentation
85+
- Meeting notes or discussions
86+
87+
### Obsidian Structure for ProjectX Development
88+
89+
When using Obsidian for this project, use the following structure:
90+
```
91+
Development/
92+
ProjectX SDK/
93+
Feature Planning/
94+
[Feature Name].md
95+
Testing Plans/
96+
[Version] Release Testing.md
97+
Architecture Decisions/
98+
[Decision Topic].md
99+
Bug Investigations/
100+
[Issue Number] - [Description].md
101+
Performance/
102+
[Optimization Area].md
49103
```
50104

105+
This keeps the project repository clean and focused on production code while maintaining comprehensive development documentation in Obsidian.
106+
51107
## Development Commands
52108

53109
### Package Management (UV)

GROK.md

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a Python SDK/client library for the ProjectX Trading Platform Gateway AP
77

88
**Note**: Focus on toolkit development, not on creating trading strategies.
99

10-
## Project Status: v3.1.1 - Stable Production Release
10+
## Project Status: v3.2.0 - Enhanced Type Safety Release
1111

1212
**IMPORTANT**: This project uses a fully asynchronous architecture. All APIs are async-only, optimized for high-performance futures trading.
1313

@@ -32,27 +32,62 @@ Example approach:
3232
- ❌ DON'T: Remove deprecated features without proper notice period
3333

3434
### Deprecation Process
35-
1. Mark as deprecated with `warnings.warn()` and `@deprecated` decorator
36-
2. Document replacement in deprecation message
35+
1. Use the standardized `@deprecated` decorator from `project_x_py.utils.deprecation`
36+
2. Provide clear reason, version info, and replacement path
3737
3. Keep deprecated feature for at least 2 minor versions
3838
4. Remove only in major version releases (4.0.0, 5.0.0, etc.)
3939

4040
Example:
4141
```python
42-
import warnings
43-
from typing import deprecated
44-
45-
@deprecated("Use new_method() instead. Will be removed in v4.0.0")
42+
from project_x_py.utils.deprecation import deprecated, deprecated_class
43+
44+
# For functions/methods
45+
@deprecated(
46+
reason="Method renamed for clarity",
47+
version="3.1.14", # When deprecated
48+
removal_version="4.0.0", # When it will be removed
49+
replacement="new_method()" # What to use instead
50+
)
4651
def old_method(self):
47-
warnings.warn(
48-
"old_method() is deprecated, use new_method() instead. "
49-
"Will be removed in v4.0.0",
50-
DeprecationWarning,
51-
stacklevel=2
52-
)
5352
return self.new_method()
53+
54+
# For classes
55+
@deprecated_class(
56+
reason="Integrated into TradingSuite",
57+
version="3.1.14",
58+
removal_version="4.0.0",
59+
replacement="TradingSuite"
60+
)
61+
class OldManager:
62+
pass
5463
```
5564

65+
The standardized deprecation utilities provide:
66+
- Consistent warning messages across the SDK
67+
- Automatic docstring updates with deprecation info
68+
- IDE support through the `deprecated` package
69+
- Metadata tracking for deprecation management
70+
- Support for functions, methods, classes, and parameters
71+
72+
## Development Documentation
73+
74+
### Important: Keep Project Clean
75+
76+
**DO NOT create project files for**:
77+
- Personal development notes
78+
- Temporary planning documents
79+
- Testing logs and results
80+
- Work-in-progress documentation
81+
- Meeting notes or discussions
82+
83+
**Instead, use**:
84+
- External documentation tools
85+
- GitHub Issues for bug tracking
86+
- GitHub Discussions for architecture decisions
87+
- Pull Request descriptions for implementation details
88+
89+
This keeps the project repository clean and focused on production code.
90+
5691
## Tool Usage Guidelines
5792
As Grok CLI, you have access to tools like view_file, create_file, str_replace_editor, bash, search, and todo lists. Use them efficiently for tasks.
5893

0 commit comments

Comments
 (0)