@rulvar/testing 1.8.0 → 1.10.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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as FAKE_MODEL, c as FakeAdapterOptions, d as FakeToolCallsValue, f as FakeWireErrorValue, i as createTestEngine, l as FakeCall, m as fakeWireError, n as TestEngine, o as FAKE_MODEL_REF, p as fakeToolCalls, r as TestRunHandle, s as FakeAdapter, t as CreateTestEngineOptions, u as FakeResponder } from "./test-engine-DwJtTU7M.js";
1
+ import { a as FAKE_MODEL, c as FakeAdapterOptions, d as FakeToolCallsValue, f as FakeWireErrorValue, i as createTestEngine, l as FakeCall, m as fakeWireError, n as TestEngine, o as FAKE_MODEL_REF, p as fakeToolCalls, r as TestRunHandle, s as FakeAdapter, t as CreateTestEngineOptions, u as FakeResponder } from "./test-engine-2Md1gvT4.js";
2
2
  import { AgentProfile, ChatEvent, ChatRequest, InvocationRole, JournalEntry, JournalStore, ModelCaps, ModelSpec, ProviderAdapter, ResumePreview, RunOutcome, WireError, Workflow, createEngine } from "@rulvar/core";
3
3
 
4
4
  //#region src/replay-strict.d.ts
package/dist/index.js CHANGED
@@ -226,7 +226,8 @@ function createTestEngine(options) {
226
226
  profiles
227
227
  },
228
228
  ...options.budgetDefaults === void 0 ? {} : { budgetDefaults: options.budgetDefaults },
229
- ...options.concurrency === void 0 ? {} : { concurrency: options.concurrency }
229
+ ...options.concurrency === void 0 ? {} : { concurrency: options.concurrency },
230
+ ...options.pricing === void 0 ? {} : { pricing: options.pricing }
230
231
  });
231
232
  return {
232
233
  fake,
@@ -1,4 +1,4 @@
1
- import { r as TestRunHandle } from "./test-engine-DwJtTU7M.js";
1
+ import { r as TestRunHandle } from "./test-engine-2Md1gvT4.js";
2
2
 
3
3
  //#region src/matchers.d.ts
4
4
  interface MatcherResult {
@@ -75,6 +75,8 @@ interface CreateTestEngineOptions {
75
75
  profiles?: Record<string, AgentProfile>;
76
76
  budgetDefaults?: CreateEngineOptions["budgetDefaults"];
77
77
  concurrency?: CreateEngineOptions["concurrency"];
78
+ /** Versioned price table; wins over adapter caps.pricing, as in production. */
79
+ pricing?: CreateEngineOptions["pricing"];
78
80
  }
79
81
  declare function createTestEngine(options: CreateTestEngineOptions): TestEngine;
80
82
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/testing",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "description": "Rulvar test harness: createTestEngine, FakeAdapter, VCR cassettes, replay-strict runs, matchers.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -26,7 +26,7 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@rulvar/core": "1.8.0"
29
+ "@rulvar/core": "1.10.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.20.0",