itcpr 2.0.8__tar.gz → 2.0.9__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itcpr
3
- Version: 2.0.8
3
+ Version: 2.0.9
4
4
  Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
5
5
  Home-page: https://itcpr.org
6
6
  Author: ITCPR
@@ -1,4 +1,4 @@
1
1
  """ITCPR Agent - CLI tool for syncing GitHub repositories."""
2
2
 
3
- __version__ = "2.0.8"
3
+ __version__ = "2.0.9"
4
4
 
@@ -126,17 +126,10 @@ class Auth:
126
126
 
127
127
  device_code = data.get("device_code")
128
128
  user_code = data.get("user_code")
129
- # Frontend device page is at localhost (not cloud.itcpr.org or api.itcpr.org)
130
- verification_uri = data.get("verification_uri", "http://localhost:5173/device")
131
- # Always replace cloud.itcpr.org or api.itcpr.org with localhost for device page
132
- if verification_uri:
133
- if "cloud.itcpr.org" in verification_uri:
134
- verification_uri = verification_uri.replace("cloud.itcpr.org", "localhost:5173")
135
- if "api.itcpr.org" in verification_uri:
136
- verification_uri = verification_uri.replace("api.itcpr.org", "localhost:5173")
137
- # Ensure http (not https) for localhost
138
- if verification_uri.startswith("https://"):
139
- verification_uri = verification_uri.replace("https://", "http://")
129
+ verification_uri = data.get("verification_uri")
130
+ # Replace api.itcpr.org with cloud.itcpr.org for frontend URL
131
+ if verification_uri and "api.itcpr.org" in verification_uri:
132
+ verification_uri = verification_uri.replace("api.itcpr.org", "cloud.itcpr.org")
140
133
  expires_in = data.get("expires_in", 600)
141
134
  interval = data.get("interval", 5)
142
135
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itcpr
3
- Version: 2.0.8
3
+ Version: 2.0.9
4
4
  Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
5
5
  Home-page: https://itcpr.org
6
6
  Author: ITCPR
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "itcpr"
7
- version = "2.0.8"
7
+ version = "2.0.9"
8
8
  description = "CLI tool for syncing GitHub repositories from ITCPR Cloud"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -9,7 +9,7 @@ long_description = readme_file.read_text() if readme_file.exists() else ""
9
9
 
10
10
  setup(
11
11
  name="itcpr",
12
- version="2.0.8",
12
+ version="2.0.9",
13
13
  description="CLI tool for syncing GitHub repositories from ITCPR Cloud",
14
14
  long_description=long_description,
15
15
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes