@openclaw/moonshot-provider 2026.8.1-beta.3 → 2026.8.2
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/index.js +2 -4
- package/dist/{kimi-web-search-provider-CofLF1qp.js → kimi-web-search-provider-DlE1dJHa.js} +1 -1
- package/dist/{kimi-web-search-provider.runtime-_hv6i3xa.js → kimi-web-search-provider.runtime-ILfyNM0k.js} +3 -2
- package/dist/web-search-contract-api.js +2 -28
- package/dist/web-search-provider.js +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { t as openclaw_plugin_default } from "./openclaw.plugin-BLi5Z-ZR.js";
|
|
2
|
-
import { MOONSHOT_DEFAULT_MODEL_REF,
|
|
3
|
-
import "./api.js";
|
|
2
|
+
import { MOONSHOT_DEFAULT_MODEL_REF, buildMoonshotProvider } from "./provider-catalog.js";
|
|
4
3
|
import { moonshotMediaUnderstandingProvider } from "./media-understanding-provider.js";
|
|
5
4
|
import { isMoonshotAlwaysThinkingModelId, isMoonshotK3NativeVideoRoute, resolveThinkingProfile } from "./provider-policy-api.js";
|
|
6
5
|
import { wrapMoonshotStream } from "./native-video.js";
|
|
7
6
|
import { applyMoonshotConfig, applyMoonshotConfigCn } from "./onboard.js";
|
|
8
|
-
import { t as createKimiWebSearchProvider } from "./kimi-web-search-provider-
|
|
7
|
+
import { t as createKimiWebSearchProvider } from "./kimi-web-search-provider-DlE1dJHa.js";
|
|
9
8
|
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
10
9
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
11
10
|
import { buildOpenAICompatibleReplayPolicy } from "openclaw/plugin-sdk/provider-model-shared";
|
|
@@ -40,7 +39,6 @@ var moonshot_default = defineSingleProviderPluginEntry({
|
|
|
40
39
|
allowExplicitBaseUrl: true,
|
|
41
40
|
liveModelDiscovery: true
|
|
42
41
|
},
|
|
43
|
-
applyNativeStreamingUsageCompat: ({ providerConfig }) => applyMoonshotNativeStreamingUsageCompat(providerConfig),
|
|
44
42
|
normalizeResolvedModel: (ctx) => ({
|
|
45
43
|
...ctx.model,
|
|
46
44
|
input: ctx.model.input.filter((type) => type !== "video").concat(isMoonshotK3NativeVideoRoute({
|
|
@@ -2,7 +2,7 @@ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
|
2
2
|
import { createWebSearchProviderContractFields } from "openclaw/plugin-sdk/provider-web-search-config-contract";
|
|
3
3
|
//#region extensions/moonshot/src/kimi-web-search-provider.ts
|
|
4
4
|
const KIMI_CREDENTIAL_PATH = "plugins.entries.moonshot.config.webSearch.apiKey";
|
|
5
|
-
const loadKimiWebSearchProviderRuntime = createLazyRuntimeModule(() => import("./kimi-web-search-provider.runtime-
|
|
5
|
+
const loadKimiWebSearchProviderRuntime = createLazyRuntimeModule(() => import("./kimi-web-search-provider.runtime-ILfyNM0k.js"));
|
|
6
6
|
const KimiSearchSchema = {
|
|
7
7
|
type: "object",
|
|
8
8
|
properties: {
|
|
@@ -188,7 +188,8 @@ async function executeKimiWebSearchProviderTool(ctx, args, opts) {
|
|
|
188
188
|
baseUrl,
|
|
189
189
|
model
|
|
190
190
|
]);
|
|
191
|
-
const
|
|
191
|
+
const cacheTtlMs = resolveSearchCacheTtlMs(searchConfig);
|
|
192
|
+
const cached = readCachedSearchPayload(cacheKey, cacheTtlMs);
|
|
192
193
|
if (cached) return cached;
|
|
193
194
|
const start = Date.now();
|
|
194
195
|
const result = await runKimiSearch({
|
|
@@ -223,7 +224,7 @@ async function executeKimiWebSearchProviderTool(ctx, args, opts) {
|
|
|
223
224
|
content: wrapWebContent(result.content),
|
|
224
225
|
citations: result.citations
|
|
225
226
|
};
|
|
226
|
-
writeCachedSearchPayload(cacheKey, payload,
|
|
227
|
+
writeCachedSearchPayload(cacheKey, payload, cacheTtlMs);
|
|
227
228
|
return payload;
|
|
228
229
|
}
|
|
229
230
|
async function runKimiSearchProviderSetup(ctx) {
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
function createKimiWebSearchProvider() {
|
|
4
|
-
const credentialPath = "plugins.entries.moonshot.config.webSearch.apiKey";
|
|
5
|
-
return {
|
|
6
|
-
id: "kimi",
|
|
7
|
-
label: "Kimi (Moonshot)",
|
|
8
|
-
hint: "Requires Moonshot / Kimi API key · Moonshot web search",
|
|
9
|
-
onboardingScopes: ["text-inference"],
|
|
10
|
-
credentialLabel: "Moonshot / Kimi API key",
|
|
11
|
-
envVars: ["KIMI_API_KEY", "MOONSHOT_API_KEY"],
|
|
12
|
-
placeholder: "sk-...",
|
|
13
|
-
signupUrl: "https://platform.moonshot.cn/",
|
|
14
|
-
docsUrl: "https://docs.openclaw.ai/tools/web",
|
|
15
|
-
autoDetectOrder: 40,
|
|
16
|
-
credentialPath,
|
|
17
|
-
...createWebSearchProviderContractFields({
|
|
18
|
-
credentialPath,
|
|
19
|
-
searchCredential: {
|
|
20
|
-
type: "scoped",
|
|
21
|
-
scopeId: "kimi"
|
|
22
|
-
},
|
|
23
|
-
configuredCredential: { pluginId: "moonshot" }
|
|
24
|
-
}),
|
|
25
|
-
createTool: () => null
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
1
|
+
import { t as createKimiWebSearchProvider } from "./kimi-web-search-provider-DlE1dJHa.js";
|
|
2
|
+
import "./web-search-provider.js";
|
|
29
3
|
export { createKimiWebSearchProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createKimiWebSearchProvider } from "./kimi-web-search-provider-
|
|
1
|
+
import { t as createKimiWebSearchProvider } from "./kimi-web-search-provider-DlE1dJHa.js";
|
|
2
2
|
export { createKimiWebSearchProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/moonshot-provider",
|
|
3
|
-
"version": "2026.8.
|
|
3
|
+
"version": "2026.8.2",
|
|
4
4
|
"description": "OpenClaw Moonshot provider plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"openclaw": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"minHostVersion": ">=2026.6.9"
|
|
15
15
|
},
|
|
16
16
|
"compat": {
|
|
17
|
-
"pluginApi": ">=2026.8.
|
|
17
|
+
"pluginApi": ">=2026.8.2"
|
|
18
18
|
},
|
|
19
19
|
"build": {
|
|
20
|
-
"openclawVersion": "2026.8.
|
|
20
|
+
"openclawVersion": "2026.8.2",
|
|
21
21
|
"bundledDist": false
|
|
22
22
|
},
|
|
23
23
|
"release": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"openclaw": ">=2026.8.
|
|
41
|
+
"openclaw": ">=2026.8.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|