@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
|
-
|
|
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
|
-
[
|
|
9528
|
-
|
|
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:
|
package/package.json
CHANGED