@rulvar/cli 1.81.2 → 1.83.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -699,13 +699,17 @@ function createWorker(engine, options) {
699
699
  for (const runId of [...suspendedAt.keys()]) if (!candidateIds.has(runId)) suspendedAt.delete(runId);
700
700
  for (const runId of [...poisoned.keys()]) if (!candidateIds.has(runId)) poisoned.delete(runId);
701
701
  for (const meta of metas) {
702
- if (stopping || active.size >= concurrency) break;
702
+ if (stopping) break;
703
703
  if (!CANDIDATE_STATUSES.has(meta.status)) {
704
704
  if (options.retention !== void 0 && !active.has(meta.runId)) await applyRetention(meta).catch((thrown) => {
705
705
  reportError(meta.runId, thrown);
706
706
  });
707
707
  continue;
708
708
  }
709
+ if (active.size >= concurrency) {
710
+ if (options.retention === void 0) break;
711
+ continue;
712
+ }
709
713
  if (active.has(meta.runId)) continue;
710
714
  if (poisoned.has(meta.runId)) {
711
715
  if (poisoned.get(meta.runId) === meta.genesis) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/cli",
3
- "version": "1.81.2",
3
+ "version": "1.83.0",
4
4
  "description": "Rulvar shell: run/resume/runs/inspect/plan/kb commands, TUI progress, createServer, createWorker, OTel exporter.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -22,17 +22,17 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "@rulvar/core": "1.81.2"
25
+ "@rulvar/core": "1.83.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.20.0",
29
29
  "tsdown": "^0.22.3",
30
30
  "typescript": "~6.0.3",
31
- "@rulvar/testing": "1.81.2",
32
- "@rulvar/store-sqlite": "1.81.2",
33
- "@rulvar/planner": "1.81.2",
34
- "@rulvar/plan": "1.81.2",
35
- "@rulvar/evals": "1.81.2"
31
+ "@rulvar/testing": "1.83.0",
32
+ "@rulvar/planner": "1.83.0",
33
+ "@rulvar/store-sqlite": "1.83.0",
34
+ "@rulvar/evals": "1.83.0",
35
+ "@rulvar/plan": "1.83.0"
36
36
  },
37
37
  "bin": {
38
38
  "rulvar": "./dist/cli.js"