@openclaw/opencode-provider 2026.10.10 → 2026.10.33
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/.setup/{provider-catalog-CU6XOfwX.mjs → provider-catalog-XEhgAiH9.mjs} +4 -2
- package/dist/index.js +3 -2
- package/dist/media-understanding-provider.js +2 -1
- package/dist/onboard.js +2 -1
- package/dist/provider-catalog.js +2 -1
- package/dist/provider-discovery.js +3 -2
- package/dist/provider-policy-api.js +2 -1
- package/dist/session-catalog-plugin.js +2 -1
- package/dist/session-catalog-shared.js +2 -1
- package/dist/session-catalog.js +2 -1
- package/dist/session-upstream-activity.js +2 -1
- package/dist/stream.js +2 -1
- package/package.json +4 -4
- package/dist/.source-module-urls/42b781ef564f0b7427a7abc29c4158635014d16046083da61607b744875c88d2.json +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildOpenAICompatibleLiveModels, createUpstreamProviderCatalog, listProviderCatalogSnapshotEntries, projectProviderCatalogSnapshotRows } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
|
|
2
2
|
import { normalizeModelCompat } from "openclaw/plugin-sdk/provider-model-shared";
|
|
3
3
|
import { normalizeBaseUrl } from "openclaw/plugin-sdk/provider-http";
|
|
4
|
-
|
|
4
|
+
//#region extensions/opencode/openclaw.plugin.json
|
|
5
5
|
var openclaw_plugin_default = {
|
|
6
6
|
id: "opencode",
|
|
7
7
|
categories: ["models"],
|
|
@@ -252,7 +252,8 @@ var openclaw_plugin_default = {
|
|
|
252
252
|
"help": "Auto-detect OpenCode sessions on the Gateway and paired nodes, then show them in the sessions sidebar."
|
|
253
253
|
} }
|
|
254
254
|
};
|
|
255
|
-
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region extensions/opencode/provider-catalog.ts
|
|
256
257
|
const PROVIDER_ID = "opencode";
|
|
257
258
|
const OPENCODE_ZEN_OPENAI_BASE_URL = "https://opencode.ai/zen/v1";
|
|
258
259
|
const OPENCODE_ZEN_ANTHROPIC_BASE_URL = "https://opencode.ai/zen";
|
|
@@ -325,4 +326,5 @@ function normalizeOpencodeZenBaseUrl(params) {
|
|
|
325
326
|
const isAnthropicRoute = params.api === "anthropic-messages";
|
|
326
327
|
if (normalized === OPENCODE_ZEN_ANTHROPIC_BASE_URL || normalized === OPENCODE_ZEN_OPENAI_BASE_URL) return isAnthropicRoute ? OPENCODE_ZEN_ANTHROPIC_BASE_URL : OPENCODE_ZEN_OPENAI_BASE_URL;
|
|
327
328
|
}
|
|
329
|
+
//#endregion
|
|
328
330
|
export { prepareOpencodeZenModel as a, openclaw_plugin_default as c, normalizeOpencodeZenBaseUrl as i, buildStaticOpencodeZenProviderConfig as n, resolveOpencodeZenModel as o, listOpencodeZenModelCatalogEntries as r, resolveOpencodeZenStarterModel as s, buildOpencodeZenLiveProviderConfig as t };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { opencodeMediaUnderstandingProvider } from "./media-understanding-provider.js";
|
|
2
2
|
import { OPENCODE_ZEN_DEFAULT_MODEL_REF, applyOpencodeZenProviderConfig } from "./onboard.js";
|
|
3
|
-
import { a as prepareOpencodeZenModel, c as openclaw_plugin_default, i as normalizeOpencodeZenBaseUrl, n as buildStaticOpencodeZenProviderConfig, o as resolveOpencodeZenModel, r as listOpencodeZenModelCatalogEntries, s as resolveOpencodeZenStarterModel, t as buildOpencodeZenLiveProviderConfig } from "./.setup/provider-catalog-
|
|
3
|
+
import { a as prepareOpencodeZenModel, c as openclaw_plugin_default, i as normalizeOpencodeZenBaseUrl, n as buildStaticOpencodeZenProviderConfig, o as resolveOpencodeZenModel, r as listOpencodeZenModelCatalogEntries, s as resolveOpencodeZenStarterModel, t as buildOpencodeZenLiveProviderConfig } from "./.setup/provider-catalog-XEhgAiH9.mjs";
|
|
4
4
|
import { resolveThinkingProfile } from "./provider-policy-api.js";
|
|
5
5
|
import { registerOpenCodeSessionCatalog } from "./session-catalog-plugin.js";
|
|
6
6
|
import { wrapOpencodeProviderStream } from "./stream.js";
|
|
@@ -9,7 +9,7 @@ import { resolveFirstProviderCatalogAuth } from "openclaw/plugin-sdk/provider-ca
|
|
|
9
9
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
10
10
|
import { buildProviderReplayFamilyHooks, matchesExactOrPrefix } from "openclaw/plugin-sdk/provider-model-shared";
|
|
11
11
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
12
|
-
|
|
12
|
+
//#region extensions/opencode/index.ts
|
|
13
13
|
const PROVIDER_ID = "opencode";
|
|
14
14
|
const MINIMAX_MODERN_MODEL_MATCHERS = ["minimax-m2.7"];
|
|
15
15
|
function isModernOpencodeModel(modelId) {
|
|
@@ -112,4 +112,5 @@ var opencode_default = defineSingleProviderPluginEntry({
|
|
|
112
112
|
registerOpenCodeSessionCatalog(api);
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
|
+
//#endregion
|
|
115
116
|
export { opencode_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
2
|
import { describeImageWithModelPayloadTransform, describeImagesWithModelPayloadTransform } from "openclaw/plugin-sdk/media-understanding";
|
|
3
|
-
|
|
3
|
+
//#region extensions/opencode/media-understanding-provider.ts
|
|
4
4
|
const stripDisabledResponsesReasoning = (payload) => {
|
|
5
5
|
if (!isRecord(payload)) return;
|
|
6
6
|
const reasoning = payload.reasoning;
|
|
@@ -13,4 +13,5 @@ const opencodeMediaUnderstandingProvider = {
|
|
|
13
13
|
describeImage: (request) => describeImageWithModelPayloadTransform(request, stripDisabledResponsesReasoning),
|
|
14
14
|
describeImages: (request) => describeImagesWithModelPayloadTransform(request, stripDisabledResponsesReasoning)
|
|
15
15
|
};
|
|
16
|
+
//#endregion
|
|
16
17
|
export { opencodeMediaUnderstandingProvider };
|
package/dist/onboard.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withAgentModelAliases } from "openclaw/plugin-sdk/provider-onboard";
|
|
2
|
-
|
|
2
|
+
//#region extensions/opencode/onboard.ts
|
|
3
3
|
const OPENCODE_ZEN_DEFAULT_MODEL_REF = "opencode/claude-opus-5";
|
|
4
4
|
function applyOpencodeZenProviderConfig(cfg) {
|
|
5
5
|
return {
|
|
@@ -16,4 +16,5 @@ function applyOpencodeZenProviderConfig(cfg) {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
+
//#endregion
|
|
19
20
|
export { OPENCODE_ZEN_DEFAULT_MODEL_REF, applyOpencodeZenProviderConfig };
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { a as prepareOpencodeZenModel, i as normalizeOpencodeZenBaseUrl, n as buildStaticOpencodeZenProviderConfig, o as resolveOpencodeZenModel, r as listOpencodeZenModelCatalogEntries, s as resolveOpencodeZenStarterModel, t as buildOpencodeZenLiveProviderConfig } from "./.setup/provider-catalog-XEhgAiH9.mjs";
|
|
2
|
+
export { buildOpencodeZenLiveProviderConfig, buildStaticOpencodeZenProviderConfig, listOpencodeZenModelCatalogEntries, normalizeOpencodeZenBaseUrl, prepareOpencodeZenModel, resolveOpencodeZenModel, resolveOpencodeZenStarterModel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as buildStaticOpencodeZenProviderConfig } from "./.setup/provider-catalog-
|
|
2
|
-
|
|
1
|
+
import { n as buildStaticOpencodeZenProviderConfig } from "./.setup/provider-catalog-XEhgAiH9.mjs";
|
|
2
|
+
//#region extensions/opencode/provider-discovery.ts
|
|
3
3
|
const opencodeProviderDiscovery = {
|
|
4
4
|
id: "opencode",
|
|
5
5
|
label: "OpenCode Zen",
|
|
@@ -10,4 +10,5 @@ const opencodeProviderDiscovery = {
|
|
|
10
10
|
run: async () => ({ provider: buildStaticOpencodeZenProviderConfig() })
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
+
//#endregion
|
|
13
14
|
export { opencodeProviderDiscovery as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveClaudeThinkingProfile } from "openclaw/plugin-sdk/claude-model-runtime";
|
|
2
2
|
import { resolveEffortThinkingProfile } from "openclaw/plugin-sdk/provider-thinking-runtime";
|
|
3
|
-
|
|
3
|
+
//#region extensions/opencode/provider-policy-api.ts
|
|
4
4
|
const FIXED_REASONING_PROFILE = {
|
|
5
5
|
levels: [{
|
|
6
6
|
id: "off",
|
|
@@ -15,4 +15,5 @@ function resolveThinkingProfile(params) {
|
|
|
15
15
|
if (effortProfile) return effortProfile;
|
|
16
16
|
return params.reasoning === true && params.api !== "anthropic-messages" ? FIXED_REASONING_PROFILE : void 0;
|
|
17
17
|
}
|
|
18
|
+
//#endregion
|
|
18
19
|
export { resolveThinkingProfile };
|
|
@@ -9,7 +9,7 @@ import { resolveSessionAgentIdsStrict } from "openclaw/plugin-sdk/agent-scope-ru
|
|
|
9
9
|
import { resolveNodeHostExecutable } from "openclaw/plugin-sdk/node-host";
|
|
10
10
|
import { createSessionCatalogFamily, createSessionCatalogNodeHostBindings } from "openclaw/plugin-sdk/session-catalog";
|
|
11
11
|
import { createAcpSessionCatalogAdoption } from "openclaw/plugin-sdk/session-catalog-runtime";
|
|
12
|
-
|
|
12
|
+
//#region extensions/opencode/session-catalog-plugin.ts
|
|
13
13
|
const MAX_HOSTS = 100;
|
|
14
14
|
const ACPX_BACKEND_ID = "acpx";
|
|
15
15
|
const OPENCODE_ACP_AGENT_ID = "opencode";
|
|
@@ -191,4 +191,5 @@ function registerOpenCodeSessionCatalog(api) {
|
|
|
191
191
|
for (const command of nodeHost.commands) api.registerNodeHostCommand(command);
|
|
192
192
|
for (const policy of nodeHost.policies) api.registerNodeInvokePolicy(policy);
|
|
193
193
|
}
|
|
194
|
+
//#endregion
|
|
194
195
|
export { registerOpenCodeSessionCatalog };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region extensions/opencode/session-catalog-shared.ts
|
|
2
2
|
const OPENCODE_SESSIONS_LIST_COMMAND = "opencode.sessions.list.v1";
|
|
3
3
|
const OPENCODE_SESSION_READ_COMMAND = "opencode.sessions.read.v1";
|
|
4
4
|
const OPENCODE_TERMINAL_RESUME_COMMAND = "opencode.terminal.resume.v1";
|
|
@@ -7,4 +7,5 @@ const OPENCODE_LOCAL_SESSION_HOST_ID = "gateway";
|
|
|
7
7
|
const OPENCODE_SESSION_CATALOG_MAX_PAGE_LIMIT = 100;
|
|
8
8
|
const OPENCODE_NODE_INVOKE_TIMEOUT_MS = 35e3;
|
|
9
9
|
const OPENCODE_SESSION_ID_PATTERN = /^(?!-)[A-Za-z0-9._:-]{1,256}$/u;
|
|
10
|
+
//#endregion
|
|
10
11
|
export { OPENCODE_LOCAL_SESSION_HOST_ID, OPENCODE_NODE_INVOKE_TIMEOUT_MS, OPENCODE_SESSIONS_CAPABILITY, OPENCODE_SESSIONS_LIST_COMMAND, OPENCODE_SESSION_CATALOG_MAX_PAGE_LIMIT, OPENCODE_SESSION_ID_PATTERN, OPENCODE_SESSION_READ_COMMAND, OPENCODE_TERMINAL_RESUME_COMMAND };
|
package/dist/session-catalog.js
CHANGED
|
@@ -10,7 +10,7 @@ import { runCommandBuffered } from "openclaw/plugin-sdk/process-runtime";
|
|
|
10
10
|
import { resolvePreferredOpenClawTmpDir } from "openclaw/plugin-sdk/temp-path";
|
|
11
11
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
12
12
|
import { materializeWindowsSpawnProgram, resolveWindowsSpawnProgram } from "openclaw/plugin-sdk/windows-spawn";
|
|
13
|
-
|
|
13
|
+
//#region extensions/opencode/session-catalog.ts
|
|
14
14
|
const LOCAL_HOST_ID = "gateway";
|
|
15
15
|
const MAX_SEARCH_LENGTH = 500;
|
|
16
16
|
const MAX_CLI_LIST_SESSIONS = 1e4;
|
|
@@ -405,4 +405,5 @@ async function readLocalOpenCodeTranscriptPage(value) {
|
|
|
405
405
|
...page
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
+
//#endregion
|
|
408
409
|
export { exportOpenCodeSession, isExactOpenCodeSessionCursor, isOpenCodeV2, listLocalOpenCodeSessionPage, queryOpenCodeDatabase, readLocalOpenCodeTranscriptPage, requireLocalOpenCodeSession, runOpenCodeApi };
|
|
@@ -3,7 +3,7 @@ import { exportOpenCodeSession, isOpenCodeV2, queryOpenCodeDatabase, runOpenCode
|
|
|
3
3
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { isExternalUserText, normalizeUserText } from "openclaw/plugin-sdk/session-catalog";
|
|
5
5
|
import { runTasksWithConcurrency } from "openclaw/plugin-sdk/concurrency-runtime";
|
|
6
|
-
|
|
6
|
+
//#region extensions/opencode/session-upstream-activity.ts
|
|
7
7
|
const OPENCODE_EXPORT_CONCURRENCY = 4;
|
|
8
8
|
const OPENCODE_REPLAY_LOOKBACK_USER_MESSAGES = 50;
|
|
9
9
|
const OPENCODE_SHELL_SENTINEL = "The following tool was executed by the user";
|
|
@@ -262,4 +262,5 @@ async function checkOpenCodeUpstreamActivity(probes) {
|
|
|
262
262
|
});
|
|
263
263
|
return outcomes.filter((outcome) => outcome !== void 0);
|
|
264
264
|
}
|
|
265
|
+
//#endregion
|
|
265
266
|
export { checkOpenCodeUpstreamActivity, linkContinuedOpenCodeSession };
|
package/dist/stream.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
2
|
import { streamSimple } from "openclaw/plugin-sdk/llm";
|
|
3
|
-
|
|
3
|
+
//#region extensions/opencode/stream.ts
|
|
4
4
|
const WEB_SEARCH = "web_search";
|
|
5
5
|
const WEB_SEARCH_ALIAS = "openclaw_web_search";
|
|
6
6
|
function payloadFunctions(payload) {
|
|
@@ -165,4 +165,5 @@ function wrapOpencodeProviderStream(ctx) {
|
|
|
165
165
|
return maybeStream && typeof maybeStream === "object" && "then" in maybeStream ? Promise.resolve(maybeStream).then(wrap) : wrap(maybeStream);
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
+
//#endregion
|
|
168
169
|
export { wrapOpencodeProviderStream };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/opencode-provider",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.33",
|
|
4
4
|
"description": "OpenClaw OpenCode Zen provider plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.7.2"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.
|
|
21
|
+
"pluginApi": ">=2026.11.4"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.10.
|
|
24
|
+
"openclawVersion": "2026.10.33",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.
|
|
43
|
+
"openclaw": ">=2026.11.4"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"index.js","source":"extensions/opencode/index.ts"},{"output":"media-understanding-provider.js","source":"extensions/opencode/media-understanding-provider.ts"},{"output":"onboard.js","source":"extensions/opencode/onboard.ts"},{"output":"provider-catalog.js","source":"extensions/opencode/provider-catalog.ts"},{"output":"provider-discovery.js","source":"extensions/opencode/provider-discovery.ts"},{"output":"provider-policy-api.js","source":"extensions/opencode/provider-policy-api.ts"},{"output":"session-catalog-plugin.js","source":"extensions/opencode/session-catalog-plugin.ts"},{"output":"session-catalog-shared.js","source":"extensions/opencode/session-catalog-shared.ts"},{"output":"session-catalog.js","source":"extensions/opencode/session-catalog.ts"},{"output":"session-upstream-activity.js","source":"extensions/opencode/session-upstream-activity.ts"},{"output":"stream.js","source":"extensions/opencode/stream.ts"}],"chunks":[{"output":".setup/provider-catalog-CU6XOfwX.mjs","sha256":"cc54b87daf8ee4086ace72d0c32c88a0794ccb58e658245c862348b0e06808e9","facadeSource":null,"sources":["extensions/opencode/openclaw.plugin.json","extensions/opencode/provider-catalog.ts"]},{"output":"index.js","sha256":"991054d5f73b96000e66663d541953c987ce22c8fc5abc2dbf8140bee7dd204c","facadeSource":"extensions/opencode/index.ts","sources":["extensions/opencode/index.ts"]},{"output":"media-understanding-provider.js","sha256":"0b7905348b84c3d0e5d408b7b0f383b053979d4982ed1cb9aeca94da29086ad3","facadeSource":"extensions/opencode/media-understanding-provider.ts","sources":["extensions/opencode/media-understanding-provider.ts"]},{"output":"onboard.js","sha256":"3bfe04c0dce12f07a8cd592db1d5221ab9261c4856ea19cca83b54299c90ff97","facadeSource":"extensions/opencode/onboard.ts","sources":["extensions/opencode/onboard.ts"]},{"output":"provider-catalog.js","sha256":"15c0c47108bca79209fafc591964cead4c55d9f9308ee1cfe18f58540deb9c27","facadeSource":"extensions/opencode/provider-catalog.ts","sources":[]},{"output":"provider-discovery.js","sha256":"fb0528f3e869f4430c9dc2eac00d368ac146b66b030ed4b27364051001354ff1","facadeSource":"extensions/opencode/provider-discovery.ts","sources":["extensions/opencode/provider-discovery.ts"]},{"output":"provider-policy-api.js","sha256":"0e5b00dd9fab91c249fa1b749a94fee38e71dfaec3701ba61c67cd43c4f950cf","facadeSource":"extensions/opencode/provider-policy-api.ts","sources":["extensions/opencode/provider-policy-api.ts"]},{"output":"session-catalog-plugin.js","sha256":"af62ea7dc53e31757a136328d4f97871fc4b4d57779ecffdac6b51c1f36d8cd6","facadeSource":"extensions/opencode/session-catalog-plugin.ts","sources":["extensions/opencode/session-catalog-plugin.ts"]},{"output":"session-catalog-shared.js","sha256":"c8ce63680da100917b81727184a04e23d43d116cfab38dca592172b01413536a","facadeSource":"extensions/opencode/session-catalog-shared.ts","sources":["extensions/opencode/session-catalog-shared.ts"]},{"output":"session-catalog.js","sha256":"3302ee8abd4eb9a3de1e8507c14e6e390cf34651845f421ca478501314560869","facadeSource":"extensions/opencode/session-catalog.ts","sources":["extensions/opencode/session-catalog.ts"]},{"output":"session-upstream-activity.js","sha256":"b8dffce6f5d3052ed13e600c7e06d25c9b4efcd83c6f174f05a6ec95a675dab5","facadeSource":"extensions/opencode/session-upstream-activity.ts","sources":["extensions/opencode/session-upstream-activity.ts"]},{"output":"stream.js","sha256":"47e0f43a2694d331ac37d04cbd92c39f0d7b0ec30dac20adadc88006ce1b5d40","facadeSource":"extensions/opencode/stream.ts","sources":["extensions/opencode/stream.ts"]}],"unrenderedSources":[]}
|