@rulvar/cli 1.162.0 → 1.164.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/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { r as runCli, t as processIo } from "./io-CMUAtJ9j.js";
2
+ import { r as runCli, t as processIo } from "./io-Cnnpu6i5.js";
3
3
  import { sanitizeTerminalText } from "@rulvar/core";
4
4
  import { inspect } from "node:util";
5
5
  //#region src/cli.ts
package/dist/index.d.ts CHANGED
@@ -187,6 +187,7 @@ interface AssembledCli {
187
187
  currentPricingVersion?: string;
188
188
  }
189
189
  declare function assembleEngine(options: {
190
+ /** RV1512: disarm the JSONL torn-tail repair on load (audit reads). */repairOnLoad?: boolean;
190
191
  config: CliConfig;
191
192
  module?: LoadedWorkflowModule;
192
193
  storePath?: string;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
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";
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-Cnnpu6i5.js";
2
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
  /**
@@ -86,7 +86,10 @@ function assembleEngine(options) {
86
86
  if (profile === void 0) throw new ConfigError(`unknown run profile '${options.profile}'; shipped: fast, standard, deep, ultra`);
87
87
  engineOptions = applyRunProfile(profile, engineOptions);
88
88
  }
89
- const store = engineOptions.stores?.journal ?? new JsonlFileStore({ dir: resolve(options.cwd, options.storePath ?? ".rulvar") });
89
+ const store = engineOptions.stores?.journal ?? new JsonlFileStore({
90
+ dir: resolve(options.cwd, options.storePath ?? ".rulvar"),
91
+ ...options.repairOnLoad === false ? { repairOnLoad: false } : {}
92
+ });
90
93
  const workflows = {
91
94
  ...config.workflows,
92
95
  ...module?.workflows
@@ -475,7 +478,11 @@ const GRAMMAR = {
475
478
  "runs audit": {
476
479
  command: "runs audit",
477
480
  positionals: [],
478
- flags: [STORE, { name: "repair" }]
481
+ flags: [
482
+ STORE,
483
+ { name: "repair" },
484
+ { name: "no-load-repair" }
485
+ ]
479
486
  },
480
487
  inspect: {
481
488
  command: "inspect",
@@ -1018,9 +1025,15 @@ async function runsAuditCommand(argv, context) {
1018
1025
  const parsed = parseCommand(GRAMMAR["runs audit"], argv);
1019
1026
  const store = parsed.values.store;
1020
1027
  const repair = parsed.values.repair === true;
1028
+ const noLoadRepair = parsed.values["no-load-repair"] === true;
1029
+ if (noLoadRepair && repair) {
1030
+ context.io.err("runs audit: --no-load-repair and --repair contradict; pick one");
1031
+ return 1;
1032
+ }
1021
1033
  const assembled = assembleEngine({
1022
1034
  config: await loadCliConfig(context.cwd),
1023
1035
  ...store === void 0 ? {} : { storePath: store },
1036
+ ...noLoadRepair ? { repairOnLoad: false } : {},
1024
1037
  cwd: context.cwd
1025
1038
  });
1026
1039
  const audits = await auditRuns(assembled.store);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/cli",
3
- "version": "1.162.0",
3
+ "version": "1.164.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.162.0"
25
+ "@rulvar/core": "1.164.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/planner": "1.162.0",
32
- "@rulvar/testing": "1.162.0",
33
- "@rulvar/store-sqlite": "1.162.0",
34
- "@rulvar/plan": "1.162.0",
35
- "@rulvar/evals": "1.162.0"
31
+ "@rulvar/testing": "1.164.0",
32
+ "@rulvar/store-sqlite": "1.164.0",
33
+ "@rulvar/planner": "1.164.0",
34
+ "@rulvar/evals": "1.164.0",
35
+ "@rulvar/plan": "1.164.0"
36
36
  },
37
37
  "bin": {
38
38
  "rulvar": "./dist/cli.js"