@operad-io/pool 0.0.1 → 0.1.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 +12 -0
- package/package.json +3 -3
- package/src/index.ts +2 -1
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @operad-io/pool
|
|
2
|
+
|
|
3
|
+
**The pool plugin: workers shared by runs.** Shares a set of workers between runs so that each agent's limits are kept across flows.
|
|
4
|
+
|
|
5
|
+
This package is part of [operad](https://github.com/operad-io/operad). Most people install only [`@operad-io/cli`](https://www.npmjs.com/package/@operad-io/cli).
|
|
6
|
+
|
|
7
|
+
## Documentation
|
|
8
|
+
|
|
9
|
+
- User guide: [docs/user/dev.md](https://github.com/operad-io/operad/blob/main/docs/user/dev.md)
|
|
10
|
+
- Website: <https://operad.io>
|
|
11
|
+
|
|
12
|
+
MIT licensed.
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operad-io/pool",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./src/index.ts"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@operad-io/engine": "0.0
|
|
9
|
+
"@operad-io/engine": "0.1.0"
|
|
10
10
|
},
|
|
11
|
-
"description": "operad: the pool plugin, workers shared by runs
|
|
11
|
+
"description": "operad: the pool plugin, workers shared by runs",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+https://github.com/operad-io/operad.git",
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* its own `count` in the repository and the home-wide cap on its harness.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import pkg from "../package.json" with { type: "json" };
|
|
8
9
|
import { definePlugin, isRecord, type PluginStepResult, type StepContext, type StepRunOptions } from "@operad-io/engine";
|
|
9
10
|
import { reportWorkerPlaced } from "@operad-io/engine/platform";
|
|
10
11
|
import { join } from "node:path";
|
|
@@ -204,7 +205,7 @@ export function createPoolPlugin(options: PoolPluginOptions = {}) {
|
|
|
204
205
|
return definePlugin({
|
|
205
206
|
name: "pool",
|
|
206
207
|
kind: "stage",
|
|
207
|
-
version:
|
|
208
|
+
version: pkg.version,
|
|
208
209
|
settings: POOL_SETTINGS,
|
|
209
210
|
steps: [
|
|
210
211
|
{
|