@scwrap/client 0.2.0 → 0.4.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 +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -35,6 +35,6 @@ Items are checked against your Definition and fail on anything it does not accep
|
|
|
35
35
|
|
|
36
36
|
Failed runs can expose valid partial items. Successfully reading those items does not mean the scrape succeeded. Running-result reads are snapshots, not live tails; their count can change between metadata and item requests.
|
|
37
37
|
|
|
38
|
-
Use a trusted HTTPS origin and the instance's run token, never the deployer token or Cloudflare
|
|
38
|
+
Use a trusted HTTPS origin and the instance's run token, never the deployer token or Cloudflare credentials. Fetch redirects are disabled. Supply a plain HttpClient without retry or redirect middleware: retrying a start whose answer was lost can execute it twice. Interrupting `run` stops polling, not the Run. `runs({ cursor, limit })` lists a Scraper's result records newest first. This package adds no retries or cancellation. Server-side applications and Workers are the target; do not expose the run token to browsers. There is no Promise facade in this initial API.
|
|
39
39
|
|
|
40
40
|
`@scwrap/client/protocol` exports the neutral `ResultRecord`, `ReleaseIdentity`, `ScraperCatalog` and `RunList` schemas, depending only on Effect. The Worker and MCP share these contracts without making HTTP calls to themselves. Deployment admission constraints and deployment status stay in `@scwrap/deploy/protocol`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scwrap/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Typed client for a Scwrap instance: run Scrapers and read their results.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@scwrap/domain": "0.
|
|
33
|
+
"@scwrap/domain": "^0.4.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@effect/vitest": "4.0.5",
|