agentic-fabriq-sdk 0.1.12__py3-none-any.whl → 0.1.14__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.
Potentially problematic release.
This version of agentic-fabriq-sdk might be problematic. Click here for more details.
- af_cli/core/config.py +18 -0
- {agentic_fabriq_sdk-0.1.12.dist-info → agentic_fabriq_sdk-0.1.14.dist-info}/METADATA +1 -1
- {agentic_fabriq_sdk-0.1.12.dist-info → agentic_fabriq_sdk-0.1.14.dist-info}/RECORD +5 -5
- {agentic_fabriq_sdk-0.1.12.dist-info → agentic_fabriq_sdk-0.1.14.dist-info}/WHEEL +0 -0
- {agentic_fabriq_sdk-0.1.12.dist-info → agentic_fabriq_sdk-0.1.14.dist-info}/entry_points.txt +0 -0
af_cli/core/config.py
CHANGED
|
@@ -58,10 +58,26 @@ class CLIConfig(BaseModel):
|
|
|
58
58
|
with open(self.config_file, 'r') as f:
|
|
59
59
|
data = json.load(f)
|
|
60
60
|
|
|
61
|
+
# Migrate old localhost URLs to production URLs
|
|
62
|
+
needs_migration = False
|
|
63
|
+
if data.get('gateway_url') in ['http://localhost:8000', 'localhost:8000']:
|
|
64
|
+
data['gateway_url'] = 'https://dashboard.agenticfabriq.com'
|
|
65
|
+
needs_migration = True
|
|
66
|
+
print("✨ Migrated gateway_url from localhost to dashboard.agenticfabriq.com")
|
|
67
|
+
|
|
68
|
+
if data.get('keycloak_url') in ['http://localhost:8080', 'localhost:8080']:
|
|
69
|
+
data['keycloak_url'] = 'https://auth.agenticfabriq.com'
|
|
70
|
+
needs_migration = True
|
|
71
|
+
print("✨ Migrated keycloak_url from localhost to auth.agenticfabriq.com")
|
|
72
|
+
|
|
61
73
|
# Update fields from loaded data
|
|
62
74
|
for key, value in data.items():
|
|
63
75
|
if hasattr(self, key):
|
|
64
76
|
setattr(self, key, value)
|
|
77
|
+
|
|
78
|
+
# Save migrated config
|
|
79
|
+
if needs_migration:
|
|
80
|
+
self.save()
|
|
65
81
|
|
|
66
82
|
except Exception as e:
|
|
67
83
|
print(f"Warning: Failed to load config from {self.config_file}: {e}")
|
|
@@ -197,6 +213,8 @@ def get_config() -> CLIConfig:
|
|
|
197
213
|
global _config
|
|
198
214
|
if _config is None:
|
|
199
215
|
_config = CLIConfig()
|
|
216
|
+
# Load existing config (with automatic migration)
|
|
217
|
+
_config.load()
|
|
200
218
|
return _config
|
|
201
219
|
|
|
202
220
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentic-fabriq-sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.14
|
|
4
4
|
Summary: Agentic Fabriq SDK: high-level client, CLI tool, DX helpers, and auth for AI agents
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Keywords: fabriq,agentic-fabriq,sdk,ai,agents,agentic,fabric,cli
|
|
@@ -8,7 +8,7 @@ af_cli/commands/secrets.py,sha256=_XvtST9G7US_0MqHywSqRdp2FXUr76OTiD-SH4WXoJU,34
|
|
|
8
8
|
af_cli/commands/tools.py,sha256=9wPXpemZh9YDCVKdIgvGFzlxMwSy0BuNg50Fs1DU6y0,21188
|
|
9
9
|
af_cli/core/__init__.py,sha256=cQ0H7rGfaMISQPhoNe4Xfu_EKU2TqRVt2OMI7tPea5U,51
|
|
10
10
|
af_cli/core/client.py,sha256=BELf6889BOzOWP6kCk4hSY4DolIATB0YNpui38l7EaI,3939
|
|
11
|
-
af_cli/core/config.py,sha256=
|
|
11
|
+
af_cli/core/config.py,sha256=fwLUF0blNII2RKdFlJ3Hat51vwwNyxpIkU_HvViz8To,8538
|
|
12
12
|
af_cli/core/oauth.py,sha256=sCzo97TZyx8sLmo0GYv53P3zoABK6htRCivHhRpPRdI,18162
|
|
13
13
|
af_cli/core/output.py,sha256=tL5z7M-tLu2M1Yl8O4M7OPP7iQivC1b_YUUB468Od5Y,4811
|
|
14
14
|
af_cli/core/token_storage.py,sha256=WhOQLx5_9pn2lAlFX01Y5DmWO7B9BJYfEkASCsBQwaI,7738
|
|
@@ -34,7 +34,7 @@ af_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
34
34
|
af_sdk/transport/__init__.py,sha256=HsOc6MmlxIS-PSYC_-6E36-dZYyT_auZeoXvGzVAqeg,104
|
|
35
35
|
af_sdk/transport/http.py,sha256=QB3eqQbwug95QHf5PG_714NKtlTjV9PzVTo8izJCylc,13203
|
|
36
36
|
af_sdk/vault.py,sha256=QVNGigIw8ND5sVXt05gvUY222b5-i9EbzLWNsDGdOU4,17926
|
|
37
|
-
agentic_fabriq_sdk-0.1.
|
|
38
|
-
agentic_fabriq_sdk-0.1.
|
|
39
|
-
agentic_fabriq_sdk-0.1.
|
|
40
|
-
agentic_fabriq_sdk-0.1.
|
|
37
|
+
agentic_fabriq_sdk-0.1.14.dist-info/METADATA,sha256=qGriu-AcO4B1GJ_Dc3n2BtfGTHlM7-1FlhX3z6P6Uok,3286
|
|
38
|
+
agentic_fabriq_sdk-0.1.14.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
39
|
+
agentic_fabriq_sdk-0.1.14.dist-info/entry_points.txt,sha256=XUO2EaJhUtUS5pwVIkhemC-nEeFbKgXXLW97gQCCGm8,41
|
|
40
|
+
agentic_fabriq_sdk-0.1.14.dist-info/RECORD,,
|
|
File without changes
|
{agentic_fabriq_sdk-0.1.12.dist-info → agentic_fabriq_sdk-0.1.14.dist-info}/entry_points.txt
RENAMED
|
File without changes
|