@moonshot-ai/kimi-code 0.23.2 → 0.23.3
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/dist/main.mjs +11 -8
- package/package.json +5 -5
package/dist/main.mjs
CHANGED
|
@@ -78056,7 +78056,7 @@ var init_full = __esmMin((() => {
|
|
|
78056
78056
|
thinking_effort: this.agent.config.thinkingEffort,
|
|
78057
78057
|
error_type: error instanceof Error ? error.name : "Unknown"
|
|
78058
78058
|
});
|
|
78059
|
-
if (isKimiError(error) && error.code === ErrorCodes.AUTH_LOGIN_REQUIRED) throw error;
|
|
78059
|
+
if (isKimiError(error) && (error.code === ErrorCodes.AUTH_LOGIN_REQUIRED || error.code === ErrorCodes.PROVIDER_AUTH_ERROR)) throw error;
|
|
78060
78060
|
throw new KimiError(ErrorCodes.COMPACTION_FAILED, String(error), { cause: error });
|
|
78061
78061
|
}
|
|
78062
78062
|
}
|
|
@@ -206051,13 +206051,16 @@ var init_provider_manager = __esmMin((() => {
|
|
|
206051
206051
|
return await request(auth);
|
|
206052
206052
|
} catch (error) {
|
|
206053
206053
|
if (!(error instanceof APIStatusError) || error.statusCode !== 401) throw error;
|
|
206054
|
-
if (refreshed)
|
|
206055
|
-
|
|
206056
|
-
|
|
206057
|
-
|
|
206058
|
-
|
|
206059
|
-
|
|
206060
|
-
|
|
206054
|
+
if (refreshed) {
|
|
206055
|
+
const reason = error.message.replaceAll("\r", "");
|
|
206056
|
+
throw new KimiError(ErrorCodes.PROVIDER_AUTH_ERROR, reason.length > 0 ? reason : "OAuth provider credentials were rejected.", {
|
|
206057
|
+
cause: error,
|
|
206058
|
+
details: {
|
|
206059
|
+
statusCode: error.statusCode,
|
|
206060
|
+
requestId: error.requestId
|
|
206061
|
+
}
|
|
206062
|
+
});
|
|
206063
|
+
}
|
|
206061
206064
|
auth = await fetchAuth(true);
|
|
206062
206065
|
}
|
|
206063
206066
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonshot-ai/kimi-code",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.3",
|
|
4
4
|
"description": "The Starting Point for Next-Gen Agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Moonshot AI",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"zod": "^4.3.6",
|
|
69
69
|
"@moonshot-ai/acp-adapter": "^0.3.4",
|
|
70
70
|
"@moonshot-ai/kimi-code-oauth": "^0.2.2",
|
|
71
|
-
"@moonshot-ai/kimi-code-sdk": "^0.13.1",
|
|
72
71
|
"@moonshot-ai/kimi-telemetry": "^0.1.1",
|
|
73
72
|
"@moonshot-ai/kimi-web": "^0.1.2",
|
|
74
|
-
"@moonshot-ai/
|
|
73
|
+
"@moonshot-ai/kimi-code-sdk": "^0.13.1",
|
|
75
74
|
"@moonshot-ai/pi-tui": "^0.80.7",
|
|
76
|
-
"@moonshot-ai/
|
|
75
|
+
"@moonshot-ai/server": "^0.2.4",
|
|
76
|
+
"@moonshot-ai/migration-legacy": "^0.1.15",
|
|
77
77
|
"@moonshot-ai/vis-web": "0.1.1",
|
|
78
|
-
"@moonshot-ai/server": "^0.
|
|
78
|
+
"@moonshot-ai/vis-server": "^0.1.1"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=22.19.0"
|