@jaco-tech/dsh-web-fetch-crw 0.1.0 → 0.2.0

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/README.md CHANGED
@@ -9,9 +9,7 @@ Registers a `WebFetchProvider` into `ctx.web` so that the existing `web_fetch` m
9
9
 
10
10
  crw is a self-hosted web scraping and crawling service that implements the [Firecrawl](https://github.com/nicknisi/firecrawl) API. It provides a drop-in replacement for the Firecrawl `/v1/scrape` endpoint.
11
11
 
12
- ## Status
13
-
14
- ⚠️ **Not yet published to npm.** The CI/CD workflow builds on every push and publishes automatically when a `v*` tag is pushed. Once the first release is cut:
12
+ ## Install
15
13
 
16
14
  ```bash
17
15
  npm install @jaco-tech/dsh-web-fetch-crw
package/lib/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import z from "@deepseek-ai/schemastery";
2
2
  import { WebError } from "@deepseek-ai/dsh-web";
3
+ import { installSettingsSection, settingsNamespace } from "@deepseek-ai/dsh-settings";
3
4
  //#endregion
4
5
  //#region provider
5
6
  /**
@@ -118,8 +119,14 @@ const inject = ["web"];
118
119
  const Config = z.object({
119
120
  baseURL: z.string().required(),
120
121
  });
122
+ /** Settings namespace for the DSH Web UI (Settings → Plugins). */
123
+ const WEB_FETCH_CRW_SETTINGS_NAMESPACE = settingsNamespace("web-fetch-crw");
121
124
  function apply(ctx, config) {
122
- const current = () => config;
125
+ let current = () => config;
126
+ installSettingsSection(ctx, WEB_FETCH_CRW_SETTINGS_NAMESPACE, Config, config, {
127
+ setSource: (source) => { current = source; },
128
+ onChange: () => { },
129
+ });
123
130
  ctx.web.registerFetchProvider(new CrwFetchProvider(() => current()));
124
131
  }
125
132
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jaco-tech/dsh-web-fetch-crw",
3
3
  "description": "crw (Firecrawl-compatible) fetch provider for the DeepSeek Harness web capability seam (ctx.web). No auth, no API key.",
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -34,6 +34,7 @@
34
34
  ],
35
35
  "peerDependencies": {
36
36
  "@deepseek-ai/dsh-web": "^0.1.0-rc.7",
37
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.7",
37
38
  "@deepseek-ai/cordis": "^4.0.1"
38
39
  },
39
40
  "dependencies": {
@@ -41,6 +42,7 @@
41
42
  },
42
43
  "devDependencies": {
43
44
  "@deepseek-ai/dsh-web": "^0.1.0-rc.7",
45
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.7",
44
46
  "@deepseek-ai/cordis": "^4.0.1",
45
47
  "typescript": "^5.7.0"
46
48
  },