openclaw/extensions/ollama/src
pengxuewu-lab fb52a989b2
fix(plugin-sdk): update ssrf-runtime import path in cdp-proxy-bypass (#96994)
* fix(plugin-sdk): update ssrf-runtime import path in cdp-proxy-bypass.ts

The import path `openclaw/plugin-sdk/ssrf-runtime-internal` was renamed
to `openclaw/plugin-sdk/ssrf-runtime` in a previous version, but
cdp-proxy-bypass.ts still referenced the old path. The neighbouring
cdp.helpers.ts already uses the correct path. This caused the browser
plugin to fail to load with "Package subpath is not defined by exports".

Fixes #96639

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix(plugin-sdk): update ssrf-runtime import path in cdp-proxy-bypass

The import path `openclaw/plugin-sdk/ssrf-runtime-internal` was renamed
to `openclaw/plugin-sdk/ssrf-runtime` in a previous version, but
cdp-proxy-bypass.ts still referenced the old path. The neighbouring
cdp.helpers.ts already uses the correct path. This caused the browser
plugin to fail to load with "Package subpath is not defined by exports".

Update the corresponding vi.mock path in the test file to match.

Fixes #96639

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix(plugin-sdk): promote managed-proxy bypass exports to public ssrf-runtime

Export registerManagedProxyBrowserCdpBypass and fetchConfiguredLocalOriginWithSsrFGuard
from the public ssrf-runtime path so that the browser plugin and ollama embedding
provider can lazy-load without hitting the private ssrf-runtime-internal subpath
that is excluded from package.json exports.

Fixes #96639

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix(build): bundle private SSRF runtime for packaged plugins

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-09 12:20:18 +01:00
..
sanitizers docs: document medium extension sources 2026-06-04 21:33:54 -04:00
config-compat.ts refactor: localize internal implementation symbols (#101831) 2026-07-07 10:23:36 -07:00
defaults.ts fix(ollama): support GLM-5.2 cloud discovery 2026-06-21 19:00:15 -04:00
discovery-shared.test.ts fix(ollama): skip auto-discovery for remote/cloud base URLs (#93956) 2026-06-22 18:08:05 +00:00
discovery-shared.ts feat(nodes): add auto-discovered Ollama inference (#99234) 2026-07-03 01:14:30 -07:00
embedding-provider.test.ts fix(plugin-sdk): update ssrf-runtime import path in cdp-proxy-bypass (#96994) 2026-07-09 12:20:18 +01:00
embedding-provider.ts Bound successful provider response reads 2026-06-24 19:08:22 -05:00
media-understanding-provider.ts docs: document medium extension sources 2026-06-04 21:33:54 -04:00
memory-embedding-adapter.ts fix(ollama): honor memory embedding output dimensionality (#94811) 2026-06-22 17:49:43 +00:00
model-behavior.ts docs: document medium extension sources 2026-06-04 21:33:54 -04:00
model-id.ts docs: document medium extension sources 2026-06-04 21:33:54 -04:00
node-inference.test.ts feat(nodes): add auto-discovered Ollama inference (#99234) 2026-07-03 01:14:30 -07:00
node-inference.ts refactor: localize internal implementation symbols (#101831) 2026-07-07 10:23:36 -07:00
ollama-json.ts docs: document medium extension sources 2026-06-04 21:33:54 -04:00
provider-base-url.test.ts docs: document medium extension sources 2026-06-04 21:33:54 -04:00
provider-base-url.ts fix(ollama): skip auto-discovery for remote/cloud base URLs (#93956) 2026-06-22 18:08:05 +00:00
provider-models.ssrf.test.ts docs: document medium extension sources 2026-06-04 21:33:54 -04:00
provider-models.test.ts fix(ollama): bound model-discovery JSON response reads (#96027) 2026-06-24 10:58:13 -04:00
provider-models.ts feat(nodes): add auto-discovered Ollama inference (#99234) 2026-07-03 01:14:30 -07:00
setup.test.ts fix(ollama): bound cloud-auth 401 JSON response reads 2026-06-28 18:53:28 -07:00
setup.ts fix(ollama): bound cloud-auth 401 JSON response reads 2026-06-28 18:53:28 -07:00
stream-runtime.test.ts fix(ollama): use truncateUtf16Safe for malformed NDJSON log truncation (#102593) 2026-07-09 11:38:54 +01:00
stream.test.ts fix(agent-core): ignore truncated tool calls (#97140) 2026-06-27 03:31:42 +01:00
stream.ts fix(ollama): use truncateUtf16Safe for malformed NDJSON log truncation (#102593) 2026-07-09 11:38:54 +01:00
web-search-provider.test.ts Bound successful provider response reads 2026-06-24 19:08:22 -05:00
web-search-provider.ts Bound successful provider response reads 2026-06-24 19:08:22 -05:00
wsl2-crash-loop-check.test.ts docs: document medium extension sources 2026-06-04 21:33:54 -04:00
wsl2-crash-loop-check.ts docs: document medium extension sources 2026-06-04 21:33:54 -04:00