@opencraw/azure-durable 0.0.2 → 0.0.4
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 +8 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/russoedu/open.craw/main/docs/assets/opencraw-logo.svg" alt="OpenCraw" width="360">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# @opencraw/azure-durable
|
|
2
6
|
|
|
3
|
-
[OpenCraw](
|
|
7
|
+
[OpenCraw](https://github.com/russoedu/open.craw/blob/main/README.md) over HTTP, on Azure Durable Functions. One deployed Function App holds the browser,
|
|
4
8
|
the captcha readers and the proxies; every crawler calls it with recipes instead of bundling Playwright itself.
|
|
5
9
|
|
|
6
10
|
```sh
|
|
@@ -113,13 +117,13 @@ is nothing to install.
|
|
|
113
117
|
| `publish` | Saves recipes that load as a new version, as a **draft**. A version, once published, never changes. |
|
|
114
118
|
|
|
115
119
|
No tool takes a file path: recipes travel inline, and nothing on the host's disk can be read. Production (`/crawl`
|
|
116
|
-
by name, `/jobs`) refuses a draft until
|
|
117
|
-
`POST /api/recipes/{name}/{version}/promote`. So an agent publishes, and a person decides what runs.
|
|
120
|
+
by name, `/jobs`) refuses a draft until a caller that `canPromote` allows
|
|
121
|
+
calls `POST /api/recipes/{name}/{version}/promote`. So an agent publishes, and a person decides what runs.
|
|
118
122
|
|
|
119
123
|
The endpoint refuses to start without authentication: keep `authLevel: 'function'`, or put the app behind App
|
|
120
124
|
Service authentication and set `identify`.
|
|
121
125
|
|
|
122
126
|
## Deploy it
|
|
123
127
|
|
|
124
|
-
See [docs/recipes/azure-durable.md](
|
|
128
|
+
See [docs/recipes/azure-durable.md](https://github.com/russoedu/open.craw/blob/main/docs/recipes/azure-durable.md): the Dockerfile, `host.json`, the plan,
|
|
125
129
|
and the rules a warm pool needs (one instance per singleton job, enough activity slots).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencraw/azure-durable",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@azure/storage-blob": "^12.34.0",
|
|
25
25
|
"@mnci/az-durable": "^0.1.12",
|
|
26
26
|
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
27
|
-
"@opencraw/cli": "^0.1.
|
|
28
|
-
"@opencraw/core": "^0.1.
|
|
29
|
-
"@opencraw/mcp": "^0.1.
|
|
27
|
+
"@opencraw/cli": "^0.1.11",
|
|
28
|
+
"@opencraw/core": "^0.1.11",
|
|
29
|
+
"@opencraw/mcp": "^0.1.11",
|
|
30
30
|
"durable-functions": ">=3.0.0 <4",
|
|
31
31
|
"zod": "^4.6.5"
|
|
32
32
|
},
|