cursorflow 2.2.1__py3-none-any.whl → 2.2.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.
- cursorflow/__init__.py +1 -1
- cursorflow/cli.py +45 -0
- {cursorflow-2.2.1.dist-info → cursorflow-2.2.2.dist-info}/METADATA +1 -1
- {cursorflow-2.2.1.dist-info → cursorflow-2.2.2.dist-info}/RECORD +8 -8
- {cursorflow-2.2.1.dist-info → cursorflow-2.2.2.dist-info}/WHEEL +0 -0
- {cursorflow-2.2.1.dist-info → cursorflow-2.2.2.dist-info}/entry_points.txt +0 -0
- {cursorflow-2.2.1.dist-info → cursorflow-2.2.2.dist-info}/licenses/LICENSE +0 -0
- {cursorflow-2.2.1.dist-info → cursorflow-2.2.2.dist-info}/top_level.txt +0 -0
cursorflow/__init__.py
CHANGED
cursorflow/cli.py
CHANGED
@@ -33,6 +33,9 @@ def main(ctx):
|
|
33
33
|
if ctx.invoked_subcommand in skip_init_check:
|
34
34
|
return
|
35
35
|
|
36
|
+
# Check for version mismatch and auto-update rules
|
37
|
+
_check_and_update_rules_if_needed()
|
38
|
+
|
36
39
|
# Check if project is initialized, offer to auto-initialize
|
37
40
|
from .auto_init import is_project_initialized, auto_initialize_if_needed
|
38
41
|
|
@@ -1065,5 +1068,47 @@ def display_smoke_test_summary(results: Dict):
|
|
1065
1068
|
|
1066
1069
|
console.print(table)
|
1067
1070
|
|
1071
|
+
def _check_and_update_rules_if_needed():
|
1072
|
+
"""
|
1073
|
+
Auto-update Cursor rules when package version changes
|
1074
|
+
|
1075
|
+
Silently updates rules to match installed package version
|
1076
|
+
"""
|
1077
|
+
try:
|
1078
|
+
# Check if project has rules installed
|
1079
|
+
rules_dir = Path('.cursor/rules')
|
1080
|
+
if not rules_dir.exists():
|
1081
|
+
return # Not initialized yet
|
1082
|
+
|
1083
|
+
# Check version file
|
1084
|
+
version_file = Path('.cursorflow/version_info.json')
|
1085
|
+
if not version_file.exists():
|
1086
|
+
return # No version tracking
|
1087
|
+
|
1088
|
+
# Compare versions
|
1089
|
+
import json
|
1090
|
+
with open(version_file, 'r') as f:
|
1091
|
+
version_info = json.load(f)
|
1092
|
+
|
1093
|
+
installed_version = version_info.get('installed_version', '0.0.0')
|
1094
|
+
current_version = __version__
|
1095
|
+
|
1096
|
+
# If versions don't match, auto-update rules
|
1097
|
+
if installed_version != current_version:
|
1098
|
+
from .install_cursorflow_rules import install_cursorflow_rules
|
1099
|
+
|
1100
|
+
# Silent update
|
1101
|
+
import logging
|
1102
|
+
logger = logging.getLogger(__name__)
|
1103
|
+
logger.info(f"Auto-updating Cursor rules: {installed_version} → {current_version}")
|
1104
|
+
|
1105
|
+
install_cursorflow_rules('.', force=False)
|
1106
|
+
|
1107
|
+
except Exception as e:
|
1108
|
+
# Silent failure - don't break user's workflow
|
1109
|
+
import logging
|
1110
|
+
logging.getLogger(__name__).debug(f"Rules auto-update skipped: {e}")
|
1111
|
+
|
1112
|
+
|
1068
1113
|
if __name__ == '__main__':
|
1069
1114
|
main()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: cursorflow
|
3
|
-
Version: 2.2.
|
3
|
+
Version: 2.2.2
|
4
4
|
Summary: 🔥 Complete page intelligence for AI-driven development with Hot Reload Intelligence - captures DOM, network, console, performance, HMR events, and comprehensive page analysis
|
5
5
|
Author-email: GeekWarrior Development <rbush@cooltheory.com>
|
6
6
|
License-Expression: MIT
|
@@ -1,7 +1,7 @@
|
|
1
|
-
cursorflow/__init__.py,sha256=
|
1
|
+
cursorflow/__init__.py,sha256=UmNWQ3FzbteJbjMrv01dXJhSpgcA8UoReJsQO_fZAE8,2763
|
2
2
|
cursorflow/auto_init.py,sha256=dXQaXXiXe4wkUP-jd8fcJ5fYVt7ASdTb47b7SzXymOM,6122
|
3
3
|
cursorflow/auto_updater.py,sha256=oQ12TIMZ6Cm3HF-x9iRWFtvOLkRh-JWPqitS69-4roE,7851
|
4
|
-
cursorflow/cli.py,sha256=
|
4
|
+
cursorflow/cli.py,sha256=VYC_UJ0j3DggLUjNl82Q2dJNR_gWw-qWnIwRkSo3Oww,45151
|
5
5
|
cursorflow/install_cursorflow_rules.py,sha256=DsZ0680y9JMuTKFXjdgYtOKIEAjBMsdwL8LmA9WEb5A,11864
|
6
6
|
cursorflow/post_install.py,sha256=WieBiKWG0qBAQpF8iMVWUyb9Fr2Xky9qECTMPrlAbpE,2678
|
7
7
|
cursorflow/updater.py,sha256=SroSQHQi5cYyzcOK_bf-WzmQmE7yeOs8qo3r__j-Z6E,19583
|
@@ -30,9 +30,9 @@ cursorflow/log_sources/ssh_remote.py,sha256=kZRpLpiO7cLd67wlCiTvz4Prwx1_Vu3ytB5K
|
|
30
30
|
cursorflow/rules/__init__.py,sha256=gPcA-IkhXj03sl7cvZV0wwo7CtEkcyuKs4y0F5oQbqE,458
|
31
31
|
cursorflow/rules/cursorflow-installation.mdc,sha256=D55pzzDPAVVbE3gAtKPUGoT-2fvB-FI2l6yrTdzUIEo,10208
|
32
32
|
cursorflow/rules/cursorflow-usage.mdc,sha256=hCbA9koCtRoeLOkB-PXmLlGzsag_15RuOveOE_R4JZ0,21628
|
33
|
-
cursorflow-2.2.
|
34
|
-
cursorflow-2.2.
|
35
|
-
cursorflow-2.2.
|
36
|
-
cursorflow-2.2.
|
37
|
-
cursorflow-2.2.
|
38
|
-
cursorflow-2.2.
|
33
|
+
cursorflow-2.2.2.dist-info/licenses/LICENSE,sha256=e4QbjAsj3bW-xgQOvQelr8sGLYDoqc48k6cKgCr_pBU,1080
|
34
|
+
cursorflow-2.2.2.dist-info/METADATA,sha256=1_uK1v9xGrwRg7xn2a9eSMIrNmloYFBDMIE1qdR-9Ws,14014
|
35
|
+
cursorflow-2.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
36
|
+
cursorflow-2.2.2.dist-info/entry_points.txt,sha256=-Ed_n4Uff7wClEtWS-Py6xmQabecB9f0QAOjX0w7ljA,51
|
37
|
+
cursorflow-2.2.2.dist-info/top_level.txt,sha256=t1UZwRyZP4u-ng2CEcNHmk_ZT4ibQxoihB2IjTF7ovc,11
|
38
|
+
cursorflow-2.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|