@oneciel-ai/ciel-runtime 0.2.0 → 0.2.1

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.
package/ciel_runtime.py CHANGED
@@ -9228,7 +9228,14 @@ def run_kimi_oauth_action(action: str) -> list[str]:
9228
9228
  return [f"Kimi OAuth login failed: {type(exc).__name__}: {exc}"]
9229
9229
  if code:
9230
9230
  return [f"Kimi OAuth login exited with status {code}."]
9231
- return ["Kimi OAuth login completed in the official Kimi Code credential store."]
9231
+ if not kimi_oauth_configured():
9232
+ return [
9233
+ "Kimi OAuth login exited successfully, but no usable credential was detected; "
9234
+ "the existing Kimi API key was not cleared."
9235
+ ]
9236
+ messages = ["Kimi OAuth login completed in the official Kimi Code credential store."]
9237
+ messages.extend(clear_api_key_config("kimi"))
9238
+ return messages
9232
9239
 
9233
9240
  def launch_kimi(passthrough: list[str]) -> int:
9234
9241
  cfg = load_config()
@@ -9524,8 +9531,14 @@ def api_key_panel_rows(provider: str, pcfg: dict[str, Any] | None = None) -> tup
9524
9531
  status = "managed profile detected" if kimi_oauth_configured() else "login required"
9525
9532
  mode = "Routed" if bool((pcfg or {}).get("route_through_router")) else "Native"
9526
9533
  return (
9527
- [f"Kimi OAuth ({mode}): {status}", "Login with Kimi Code OAuth", "Set routed API key", "Back"],
9528
- ["__info__", "kimi-oauth-login", "input", "back"],
9534
+ [
9535
+ f"Kimi OAuth ({mode}): {status}",
9536
+ "Login with Kimi Code OAuth (clears API key)",
9537
+ "Set routed API key",
9538
+ "Clear routed API key",
9539
+ "Back",
9540
+ ],
9541
+ ["__info__", "kimi-oauth-login", "input", "clear", "back"],
9529
9542
  )
9530
9543
  oauth_rows = github_copilot_oauth_runtime().panel_rows(provider)
9531
9544
  if oauth_rows is not None:
@@ -93,7 +93,7 @@ OFFICIAL_CHANNEL_PLUGINS = {
93
93
  }
94
94
 
95
95
  APP_NAME = "Ciel Runtime"
96
- VERSION = "0.2.0"
96
+ VERSION = "0.2.1"
97
97
  CREDITS = "Credits: One Ciel LLC"
98
98
  PRELAUNCH_CANCEL = 10
99
99
  PRELAUNCH_LAUNCH_CODEX = 11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneciel-ai/ciel-runtime",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Universal AI coding-agent runtime and model-routing layer for Claude, Codex, AGY, and compatible runtimes.",
5
5
  "license": "MIT",
6
6
  "author": "One Ciel LLC",