@rulvar/cli 1.154.0 → 1.156.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 +2 -10
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ as loadCliConfig, a as invoiceCommand, c as runCommand, d as reportOutcome, f as strictExitCode, g as assembleEngine, h as DEFAULT_STORE_DIR, i as inspectCommand, l as runsLsCommand, m as renderEventLine, n as HELP, o as preflightCommand, p as attachProgress, r as runCli, s as resumeCommand, t as processIo, u as driveRun, v as loadWorkflowModule, y as looksLikeFile } from "./io-CMUAtJ9j.js";
2
- import { ConfigError, InvalidResolutionError, JournalCompatibilityError, LeaseHeldError, Replayer, RulvarError, buildDeriverRegistry, compileSecretMasker, costReportFromJournal, journalPricingSnapshot, maskSecrets, normalizeEntry, persistedTerminalEnvelope, readRunMeta, scanJournalCompatibility, validateSchemaSpec } from "@rulvar/core";
2
+ import { ConfigError, JournalCompatibilityError, LeaseHeldError, Replayer, RulvarError, buildDeriverRegistry, compileSecretMasker, costReportFromJournal, journalPricingSnapshot, maskSecrets, normalizeEntry, persistedTerminalEnvelope, readRunMeta, scanJournalCompatibility, validateDetachedResolution } from "@rulvar/core";
3
3
  //#region src/server.ts
4
4
  /**
5
5
  * createServer (M8-T01): the HTTP shell over the public engine API
@@ -514,15 +514,7 @@ function createServer(options) {
514
514
  reason: state.state === "resolved" ? "already_resolved" : "target_abandoned",
515
515
  resumed: false
516
516
  });
517
- if (target.kind === "approval") {
518
- const decision = value?.decision;
519
- if (decision !== "allow" && decision !== "deny") throw new InvalidResolutionError(`approval '${key}' resolves with { decision: 'allow' | 'deny', reason? }`);
520
- }
521
- const pinnedSchema = target.value?.schema;
522
- if (pinnedSchema !== void 0) {
523
- const validation = await validateSchemaSpec(pinnedSchema, value);
524
- if (!validation.valid) throw new InvalidResolutionError(`resolution for '${key}' does not validate against the pinned schema: ` + validation.issues.map((issue) => issue.message).join("; "));
525
- }
517
+ await validateDetachedResolution(target, key, value);
526
518
  return json(200, {
527
519
  ...await replayer.resolveSuspended(target.seq, {
528
520
  by: "external",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/cli",
3
- "version": "1.154.0",
3
+ "version": "1.156.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.154.0"
25
+ "@rulvar/core": "1.156.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.20.1",
29
29
  "tsdown": "^0.22.14",
30
30
  "typescript": "~6.0.3",
31
- "@rulvar/testing": "1.154.0",
32
- "@rulvar/store-sqlite": "1.154.0",
33
- "@rulvar/planner": "1.154.0",
34
- "@rulvar/evals": "1.154.0",
35
- "@rulvar/plan": "1.154.0"
31
+ "@rulvar/store-sqlite": "1.156.0",
32
+ "@rulvar/evals": "1.156.0",
33
+ "@rulvar/plan": "1.156.0",
34
+ "@rulvar/testing": "1.156.0",
35
+ "@rulvar/planner": "1.156.0"
36
36
  },
37
37
  "bin": {
38
38
  "rulvar": "./dist/cli.js"