glaip-sdk 0.6.2__py3-none-any.whl → 0.6.3__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.
- glaip_sdk/cli/account_store.py +36 -18
- glaip_sdk/cli/commands/accounts.py +2 -2
- glaip_sdk/cli/slash/accounts_controller.py +308 -25
- glaip_sdk/cli/slash/accounts_shared.py +57 -1
- glaip_sdk/cli/slash/session.py +109 -24
- glaip_sdk/cli/slash/tui/accounts.tcss +33 -1
- glaip_sdk/cli/slash/tui/accounts_app.py +525 -32
- glaip_sdk/cli/slash/tui/remote_runs_app.py +3 -3
- glaip_sdk/utils/validation.py +3 -3
- {glaip_sdk-0.6.2.dist-info → glaip_sdk-0.6.3.dist-info}/METADATA +1 -1
- {glaip_sdk-0.6.2.dist-info → glaip_sdk-0.6.3.dist-info}/RECORD +13 -13
- {glaip_sdk-0.6.2.dist-info → glaip_sdk-0.6.3.dist-info}/WHEEL +0 -0
- {glaip_sdk-0.6.2.dist-info → glaip_sdk-0.6.3.dist-info}/entry_points.txt +0 -0
glaip_sdk/utils/validation.py
CHANGED
|
@@ -205,7 +205,7 @@ def validate_directory_path(dir_path: str | Path, must_exist: bool = True) -> Pa
|
|
|
205
205
|
|
|
206
206
|
|
|
207
207
|
def validate_url(url: str) -> str:
|
|
208
|
-
"""Validate URL format.
|
|
208
|
+
"""Validate URL format (HTTPS only).
|
|
209
209
|
|
|
210
210
|
Args:
|
|
211
211
|
url: URL to validate
|
|
@@ -217,7 +217,7 @@ def validate_url(url: str) -> str:
|
|
|
217
217
|
ValueError: If URL is invalid
|
|
218
218
|
"""
|
|
219
219
|
url_pattern = re.compile(
|
|
220
|
-
r"^https
|
|
220
|
+
r"^https://" # https:// only
|
|
221
221
|
r"(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,6}\.?|" # domain...
|
|
222
222
|
r"localhost|" # localhost...
|
|
223
223
|
r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" # ...or ip
|
|
@@ -227,7 +227,7 @@ def validate_url(url: str) -> str:
|
|
|
227
227
|
)
|
|
228
228
|
|
|
229
229
|
if not url_pattern.match(url):
|
|
230
|
-
raise ValueError(
|
|
230
|
+
raise ValueError("API URL must start with https:// and be a valid host.")
|
|
231
231
|
|
|
232
232
|
return url
|
|
233
233
|
|
|
@@ -4,11 +4,11 @@ glaip_sdk/agents/__init__.py,sha256=VfYov56edbWuySXFEbWJ_jLXgwnFzPk1KB-9-mfsUCc,
|
|
|
4
4
|
glaip_sdk/agents/base.py,sha256=asXkYyOiaeqqzsOk_FoFXbECBozyy7rfxgr9h0iliKc,36060
|
|
5
5
|
glaip_sdk/branding.py,sha256=tLqYCIHMkUf8p2smpuAGNptwaKUN38G4mlh0A0DOl_w,7823
|
|
6
6
|
glaip_sdk/cli/__init__.py,sha256=xCCfuF1Yc7mpCDcfhHZTX0vizvtrDSLeT8MJ3V7m5A0,156
|
|
7
|
-
glaip_sdk/cli/account_store.py,sha256=
|
|
7
|
+
glaip_sdk/cli/account_store.py,sha256=TK4iTV93Q1uD9mCY_2ZMT6EazHKU2jX0qhgWfEM4V-4,18459
|
|
8
8
|
glaip_sdk/cli/agent_config.py,sha256=YAbFKrTNTRqNA6b0i0Q3pH-01rhHDRi5v8dxSFwGSwM,2401
|
|
9
9
|
glaip_sdk/cli/auth.py,sha256=9hfjZyd4cx2_mImqykJ1sWQsuVTR2gy6D4hFqAQNKL4,24129
|
|
10
10
|
glaip_sdk/cli/commands/__init__.py,sha256=6Z3ASXDut0lAbUX_umBFtxPzzFyqoiZfVeTahThFu1A,219
|
|
11
|
-
glaip_sdk/cli/commands/accounts.py,sha256=
|
|
11
|
+
glaip_sdk/cli/commands/accounts.py,sha256=J89chwJWWpEv6TBXaGPUJH-aLrM9Ymxp4jywp5YUUEo,24685
|
|
12
12
|
glaip_sdk/cli/commands/agents.py,sha256=WCOzllyh_Znwlju5camT4vE6OeRJbsAmjWwcyiAqWs4,48429
|
|
13
13
|
glaip_sdk/cli/commands/common_config.py,sha256=chCa0B5t6JER-pGPzItUK7fk_qQgTwf7bIRU004PrUI,3731
|
|
14
14
|
glaip_sdk/cli/commands/configure.py,sha256=95PQiJnpvsdH02v_tLVANd64qAJJnZKlhNe4tpfWIS4,30262
|
|
@@ -32,18 +32,18 @@ glaip_sdk/cli/parsers/json_input.py,sha256=kxoxeIlgfsaH2jhe6apZAgSxAtwlpSINLTMRs
|
|
|
32
32
|
glaip_sdk/cli/resolution.py,sha256=K-VaEHm9SYY_qfb9538VNHykL4_2N6F8iQqI1zMx_64,2402
|
|
33
33
|
glaip_sdk/cli/rich_helpers.py,sha256=kO47N8e506rxrN6Oc9mbAWN3Qb536oQPWZy1s9A616g,819
|
|
34
34
|
glaip_sdk/cli/slash/__init__.py,sha256=J9TPL2UcNTkW8eifG6nRmAEGHhyEgdYMYk4cHaaObC0,386
|
|
35
|
-
glaip_sdk/cli/slash/accounts_controller.py,sha256=
|
|
36
|
-
glaip_sdk/cli/slash/accounts_shared.py,sha256=
|
|
35
|
+
glaip_sdk/cli/slash/accounts_controller.py,sha256=BDKaEfVbMh1B2T4GW3FF5hJo0SCe9_Pmy8vvyXtI9LY,21562
|
|
36
|
+
glaip_sdk/cli/slash/accounts_shared.py,sha256=Mq5HxlI0YsVEQ0KKISWvyBZhzOFFWCzwRbhF5xwvUbM,2626
|
|
37
37
|
glaip_sdk/cli/slash/agent_session.py,sha256=9r1xNRk5mk6rfJXV6KIf2Yo4B4hjknimd9fkxH1LO3c,11304
|
|
38
38
|
glaip_sdk/cli/slash/prompt.py,sha256=2urqR3QqN3O09lHmKKSEbhsIdlS4B7hm9O8AP_VwCSU,8034
|
|
39
39
|
glaip_sdk/cli/slash/remote_runs_controller.py,sha256=Ok6CezIeF1CPGQ8-QN3TRx5kGGEACOrgyPwH_BRRCyI,21354
|
|
40
|
-
glaip_sdk/cli/slash/session.py,sha256=
|
|
40
|
+
glaip_sdk/cli/slash/session.py,sha256=8pfO21vAbpxWnE71fthXXsR0TijYBDDhHR-8LFFapUs,63028
|
|
41
41
|
glaip_sdk/cli/slash/tui/__init__.py,sha256=ljBAeAFY2qNDkbJrZh5NgXxjwUlsv9-UxgKNIv0AF1Q,274
|
|
42
|
-
glaip_sdk/cli/slash/tui/accounts.tcss,sha256=
|
|
43
|
-
glaip_sdk/cli/slash/tui/accounts_app.py,sha256=
|
|
42
|
+
glaip_sdk/cli/slash/tui/accounts.tcss,sha256=xuQjQ0tBM08K1DUv6lI5Sfu1zgZzQxg60c9-RlEWB4s,1160
|
|
43
|
+
glaip_sdk/cli/slash/tui/accounts_app.py,sha256=dE0w10MSGPgjE7YQl8LzF1pSYu6LKX-L6eYMFOM2530,33593
|
|
44
44
|
glaip_sdk/cli/slash/tui/background_tasks.py,sha256=SAe1mV2vXB3mJcSGhelU950vf8Lifjhws9iomyIVFKw,2422
|
|
45
45
|
glaip_sdk/cli/slash/tui/loading.py,sha256=nW5pv_Tnl9FUOPR3Qf2O5gt1AGHSo3b5-Uofg34F6AE,1909
|
|
46
|
-
glaip_sdk/cli/slash/tui/remote_runs_app.py,sha256=
|
|
46
|
+
glaip_sdk/cli/slash/tui/remote_runs_app.py,sha256=RCrI-c5ilKV6Iy1lz2Aok9xo2Ou02vqcXACMXTdodnE,24716
|
|
47
47
|
glaip_sdk/cli/transcript/__init__.py,sha256=yiYHyNtebMCu3BXu56Xm5RBC2tDc865q8UGPnoe6QRs,920
|
|
48
48
|
glaip_sdk/cli/transcript/cache.py,sha256=Wi1uln6HP1U6F-MRTrfnxi9bn6XJTxwWXhREIRPoMqQ,17439
|
|
49
49
|
glaip_sdk/cli/transcript/capture.py,sha256=t8j_62cC6rhb51oCluZd17N04vcXqyjkhPRcRd3ZcmM,10291
|
|
@@ -133,8 +133,8 @@ glaip_sdk/utils/run_renderer.py,sha256=d_VMI6LbvHPUUeRmGqh5wK_lHqDEIAcym2iqpbtDa
|
|
|
133
133
|
glaip_sdk/utils/runtime_config.py,sha256=Y6frWR_PjD3CV2Jl3AqKxhhsJCkrxSuX27jw0-2aX2M,10124
|
|
134
134
|
glaip_sdk/utils/serialization.py,sha256=z-qpvWLSBrGK3wbUclcA1UIKLXJedTnMSwPdq-FF4lo,13308
|
|
135
135
|
glaip_sdk/utils/sync.py,sha256=3VKqs1UfNGWSobgRXohBKP7mMMzdUW3SU0bJQ1uxOgw,4872
|
|
136
|
-
glaip_sdk/utils/validation.py,sha256=
|
|
137
|
-
glaip_sdk-0.6.
|
|
138
|
-
glaip_sdk-0.6.
|
|
139
|
-
glaip_sdk-0.6.
|
|
140
|
-
glaip_sdk-0.6.
|
|
136
|
+
glaip_sdk/utils/validation.py,sha256=hB_k3lvHdIFUiSwHStrC0Eqnhx0OG2UvwqASeem0HuQ,6859
|
|
137
|
+
glaip_sdk-0.6.3.dist-info/METADATA,sha256=2psP5PS0kDjt1Iz_OqWdj8WE3K10qFvRLPHfQYdT7WE,7128
|
|
138
|
+
glaip_sdk-0.6.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
139
|
+
glaip_sdk-0.6.3.dist-info/entry_points.txt,sha256=EGs8NO8J1fdFMWA3CsF7sKBEvtHb_fujdCoNPhfMouE,47
|
|
140
|
+
glaip_sdk-0.6.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|