@openclaw/moonshot-provider 2026.9.1-beta.1 → 2026.9.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/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/media-understanding-provider.js +3 -3
- package/dist/web-search-contract-api.js +1 -1
- 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,6 +1,6 @@
|
|
|
1
1
|
import { t as openclaw_plugin_default } from "./openclaw.plugin-BLi5Z-ZR.js";
|
|
2
2
|
import { MOONSHOT_BASE_URL } from "./provider-catalog.js";
|
|
3
|
-
import {
|
|
3
|
+
import { describeOpenAiCompatibleVideo } from "openclaw/plugin-sdk/media-understanding";
|
|
4
4
|
//#region extensions/moonshot/media-understanding-provider.ts
|
|
5
5
|
const DEFAULT_MOONSHOT_IMAGE_MODEL = openclaw_plugin_default.mediaUnderstandingProviderMetadata.moonshot.defaultModels.image;
|
|
6
6
|
const DEFAULT_MOONSHOT_VIDEO_MODEL = openclaw_plugin_default.mediaUnderstandingProviderMetadata.moonshot.defaultModels.video;
|
|
@@ -23,8 +23,8 @@ const moonshotMediaUnderstandingProvider = {
|
|
|
23
23
|
video: DEFAULT_MOONSHOT_VIDEO_MODEL
|
|
24
24
|
},
|
|
25
25
|
autoPriority: { video: 20 },
|
|
26
|
-
describeImage:
|
|
27
|
-
describeImages:
|
|
26
|
+
describeImage: void 0,
|
|
27
|
+
describeImages: void 0,
|
|
28
28
|
describeVideo: describeMoonshotVideo
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
@@ -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.9.1
|
|
3
|
+
"version": "2026.9.1",
|
|
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.9.1
|
|
17
|
+
"pluginApi": ">=2026.9.1"
|
|
18
18
|
},
|
|
19
19
|
"build": {
|
|
20
|
-
"openclawVersion": "2026.9.1
|
|
20
|
+
"openclawVersion": "2026.9.1",
|
|
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.9.1
|
|
41
|
+
"openclaw": ">=2026.9.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|