glaip-sdk 0.2.0__py3-none-any.whl → 0.2.1__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.
@@ -153,9 +153,15 @@ class SlashSession:
153
153
  # ------------------------------------------------------------------
154
154
  # Session orchestration
155
155
  # ------------------------------------------------------------------
156
- def refresh_branding(self, sdk_version: str | None = None) -> None:
156
+ def refresh_branding(
157
+ self,
158
+ sdk_version: str | None = None,
159
+ *,
160
+ branding_cls: type[AIPBranding] | None = None,
161
+ ) -> None:
157
162
  """Refresh branding assets after an in-session SDK upgrade."""
158
- self._branding = AIPBranding.create_from_sdk(
163
+ branding_type = branding_cls or AIPBranding
164
+ self._branding = branding_type.create_from_sdk(
159
165
  sdk_version=sdk_version,
160
166
  package_name="glaip-sdk",
161
167
  )
@@ -244,6 +244,7 @@ def _suppress_library_logging(
244
244
  def _refresh_installed_version(console: Console, ctx: Any) -> None:
245
245
  """Reload runtime metadata after an in-process upgrade."""
246
246
  new_version: str | None = None
247
+ branding_module: Any | None = None
247
248
 
248
249
  try:
249
250
  version_module = importlib.reload(importlib.import_module("glaip_sdk._version"))
@@ -252,16 +253,18 @@ def _refresh_installed_version(console: Console, ctx: Any) -> None:
252
253
  _LOGGER.debug("Failed to reload glaip_sdk._version: %s", exc, exc_info=True)
253
254
 
254
255
  try:
255
- branding_module = importlib.import_module("glaip_sdk.branding")
256
+ branding_module = importlib.reload(importlib.import_module("glaip_sdk.branding"))
256
257
  if new_version:
257
258
  branding_module.SDK_VERSION = new_version
258
259
  except Exception as exc: # pragma: no cover - defensive guard
259
260
  _LOGGER.debug("Failed to update branding metadata: %s", exc, exc_info=True)
261
+ branding_module = None
260
262
 
261
263
  session = _get_slash_session(ctx)
262
264
  if session and hasattr(session, "refresh_branding"):
263
265
  try:
264
- session.refresh_branding(new_version)
266
+ branding_cls = getattr(branding_module, "AIPBranding", None) if branding_module else None
267
+ session.refresh_branding(new_version, branding_cls=branding_cls)
265
268
  return
266
269
  except Exception as exc: # pragma: no cover - defensive guard
267
270
  _LOGGER.debug("Failed to refresh active slash session: %s", exc, exc_info=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: glaip-sdk
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python SDK for GL AIP (GDP Labs AI Agent Package) - Simplified CLI Design
5
5
  License: MIT
6
6
  Author: Raymond Christopher
@@ -27,7 +27,7 @@ glaip_sdk/cli/rich_helpers.py,sha256=kO47N8e506rxrN6Oc9mbAWN3Qb536oQPWZy1s9A616g
27
27
  glaip_sdk/cli/slash/__init__.py,sha256=J9TPL2UcNTkW8eifG6nRmAEGHhyEgdYMYk4cHaaObC0,386
28
28
  glaip_sdk/cli/slash/agent_session.py,sha256=LbG7MLAptr_JB5YnU6CtDCKUtpmxRzJS0mcQwaZX-5o,9427
29
29
  glaip_sdk/cli/slash/prompt.py,sha256=k-IvAV2LXd6eW60ycOfxnepoaIeFj1DCEFqbKmBnKRA,7747
30
- glaip_sdk/cli/slash/session.py,sha256=ZMT4x6R1x6nCQe6IagGx7bXVAsw6klxMw7vWg9PjRlI,47692
30
+ glaip_sdk/cli/slash/session.py,sha256=Sjm5rCKiJIugIb7WHsdtwhN1zkZeS3Tnrfg4Di_-5Jk,47835
31
31
  glaip_sdk/cli/transcript/__init__.py,sha256=yiYHyNtebMCu3BXu56Xm5RBC2tDc865q8UGPnoe6QRs,920
32
32
  glaip_sdk/cli/transcript/cache.py,sha256=Wi1uln6HP1U6F-MRTrfnxi9bn6XJTxwWXhREIRPoMqQ,17439
33
33
  glaip_sdk/cli/transcript/capture.py,sha256=PMmJGjdC3QEeBdjkmdAE2-aINqUGrSKYmT5lEINzZ08,10345
@@ -35,7 +35,7 @@ glaip_sdk/cli/transcript/export.py,sha256=reCvrZVzli8_LzYe5ZNdaa-MwZ1ov2RjnDzKZW
35
35
  glaip_sdk/cli/transcript/history.py,sha256=2FBjawxP8CX9gRPMUMP8bDjG50BGM2j2zk6IfHvAMH4,26211
36
36
  glaip_sdk/cli/transcript/launcher.py,sha256=z5ivkPXDQJpATIqtRLUK8jH3p3WIZ72PvOPqYRDMJvw,2327
37
37
  glaip_sdk/cli/transcript/viewer.py,sha256=y0JZ2cDLXO7ZUYQMylz1i5-XkAxN4s0aq5vuVPKwLMQ,28212
38
- glaip_sdk/cli/update_notifier.py,sha256=4h3F7q2DoMGyJSp8tu5NJHt8yeCVBOL-3A0ZyHyvRpw,9532
38
+ glaip_sdk/cli/update_notifier.py,sha256=Ub91l-FVhY9Ftx-Cd8HbQpBrQO2T56VQddHEVpMFLZw,9749
39
39
  glaip_sdk/cli/utils.py,sha256=fW2DbnOXa5oY9gzSnaOfRj_fc5toU6gdjqwamR5XpFc,46873
40
40
  glaip_sdk/cli/validators.py,sha256=Squ2W-fMz9kfvhtTt7pCcAYnzFU28ZxxTEqH1vF9r00,5620
41
41
  glaip_sdk/client/__init__.py,sha256=nYLXfBVTTWwKjP0e63iumPYO4k5FifwWaELQPaPIKIg,188
@@ -80,7 +80,7 @@ glaip_sdk/utils/resource_refs.py,sha256=C0ov4RwQBGQqur_UuxpFaKLQdHsTAzt9-o22VLAM
80
80
  glaip_sdk/utils/run_renderer.py,sha256=d_VMI6LbvHPUUeRmGqh5wK_lHqDEIAcym2iqpbtDad0,1365
81
81
  glaip_sdk/utils/serialization.py,sha256=9d0vPrEjMJtbxKlhJTj9yqjTSimlydRcvgRjv7EvTIY,12792
82
82
  glaip_sdk/utils/validation.py,sha256=NPDexNgGUIoLkEIz6hl3K6EG7ZKSEkcNLDElqm8-Ng4,7019
83
- glaip_sdk-0.2.0.dist-info/METADATA,sha256=5nPRuJiocgg5YnFiLnqeh-gyAU5Sch9e15AgTx0wIe0,6023
84
- glaip_sdk-0.2.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
85
- glaip_sdk-0.2.0.dist-info/entry_points.txt,sha256=EGs8NO8J1fdFMWA3CsF7sKBEvtHb_fujdCoNPhfMouE,47
86
- glaip_sdk-0.2.0.dist-info/RECORD,,
83
+ glaip_sdk-0.2.1.dist-info/METADATA,sha256=uu6uaVqZaLrOrp5OyyWHfKeV4D21GXqozJxRKMxdL60,6023
84
+ glaip_sdk-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
85
+ glaip_sdk-0.2.1.dist-info/entry_points.txt,sha256=EGs8NO8J1fdFMWA3CsF7sKBEvtHb_fujdCoNPhfMouE,47
86
+ glaip_sdk-0.2.1.dist-info/RECORD,,