dsh-web-search-enhanced 0.0.2 → 0.0.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/CHANGELOG.md +6 -0
- package/cordis.patch.yml +2 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the `dsh-web-search-enhanced` package will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.0.3] - 2026-08-31
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **Cordis Profile Patch Optimization**: Removed hardcoded `fetchProvider: http` from `cordis.patch.yml` under `- id: web`, preventing Object Replace patch collisions when coexisting with custom fetch plugins (such as `dsh-web-fetch-enhanced`) and allowing DSH `WebRuntime` to auto-select active fetch providers cleanly.
|
|
9
|
+
- **Bundle & Coexistence Testing**: Added `tests/bundle.spec.ts` test suite to verify profile bundle configuration, `cordis.patch.yml` structure, module loader registration, and seamless auto-selection of fetch providers.
|
|
10
|
+
|
|
5
11
|
## [0.0.2] - 2026-08-30
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/cordis.patch.yml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Select the enhanced provider for DSH's stable model-facing web_search tool.
|
|
2
|
-
#
|
|
2
|
+
# Leave fetchProvider unset so WebRuntime auto-selects the sole active fetch
|
|
3
|
+
# provider (native http or any third-party fetch plugin like dsh-web-fetch-enhanced).
|
|
3
4
|
- id: web
|
|
4
5
|
config:
|
|
5
6
|
searchProvider: enhanced-search
|
|
6
|
-
fetchProvider: http
|
|
7
7
|
|
|
8
8
|
# Avoid registering two implementations under separate selectable ids by default.
|
|
9
9
|
- id: web-search-deepseek
|
package/lib/index.js
CHANGED
|
@@ -22,7 +22,7 @@ function buildWireRequest(config, query, apiKey) {
|
|
|
22
22
|
const commonHeaders = {
|
|
23
23
|
"accept": "application/json",
|
|
24
24
|
"content-type": "application/json",
|
|
25
|
-
"user-agent": "dsh-web-search-enhanced/0.0.
|
|
25
|
+
"user-agent": "dsh-web-search-enhanced/0.0.3"
|
|
26
26
|
};
|
|
27
27
|
switch (config.protocol) {
|
|
28
28
|
case "anthropic-messages": return {
|