@plune-ai/cli 0.37.0 → 0.38.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.cts CHANGED
@@ -221,6 +221,28 @@ interface EvalResult {
221
221
  tags: string[];
222
222
  rows: RowResult[];
223
223
  passed: boolean;
224
+ /**
225
+ * What the eval measured, so `plune diff` compares an overall pass rate only between runs that
226
+ * measured the same thing. `rows_hash` is over the rows' canonical `vars`, order aside;
227
+ * `assertions_hash` over the checks with their parameters; `model` is `<provider type>/<model>`.
228
+ * The prompt text is left out on purpose. Optional and additive: absent in older runs, which the
229
+ * diff reads as an unknown population. `schemaVersion` stays 1.
230
+ */
231
+ measured?: {
232
+ runs: number;
233
+ rows: number;
234
+ rows_hash: string;
235
+ assertions_hash: string;
236
+ model?: string;
237
+ };
238
+ /**
239
+ * The type and model this result ran on. Written only when the config lists several models, where `id` is
240
+ * `<eval id>@<model>`; absent for a single model, whose id is the eval id. Optional and additive.
241
+ */
242
+ provider?: {
243
+ type: string;
244
+ model: string;
245
+ };
224
246
  }
225
247
  interface RunResult {
226
248
  schemaVersion: 1;
@@ -228,6 +250,12 @@ interface RunResult {
228
250
  started_at: string;
229
251
  finished_at: string;
230
252
  config_hash: string;
253
+ /**
254
+ * plune-ai/cli#244. `true` on the result of `--dry-run`: the rows were priced and none was run. No
255
+ * row is passed, failed or errored (each is `inconclusive: 'skipped'`), no eval is `passed`, and
256
+ * `cost_usd` is an estimate. Optional and additive: absent on a measured run, `schemaVersion` stays 1.
257
+ */
258
+ dry_run?: boolean;
231
259
  summary: Summary;
232
260
  evals: EvalResult[];
233
261
  }
@@ -432,6 +460,8 @@ interface EvalMcpConfig {
432
460
  interface Config {
433
461
  version: 1;
434
462
  provider: ProviderConfig;
463
+ /** Set only when the config lists several models, in config order; `provider` is the first of them. */
464
+ providers?: ProviderConfig[];
435
465
  defaults?: {
436
466
  assertions?: AssertionConfig[];
437
467
  };
@@ -625,6 +655,8 @@ interface RunOptions {
625
655
  cacheMaxAgeMs?: number;
626
656
  /** `--runs`: every row runs this many times (1–100), over `runs` in the config. */
627
657
  runs?: number;
658
+ /** `--tool-description`, each as typed: `<tool>=<text>` or `<tool>=@<file>`. */
659
+ toolDescription?: string[];
628
660
  }
629
661
  declare function handleRun(options: RunOptions, depsFactory?: (config: Config, baseDir: string) => RunDeps): Promise<RunResult>;
630
662
 
@@ -853,6 +885,7 @@ declare const runResultSchema: z.ZodObject<{
853
885
  started_at: z.ZodString;
854
886
  finished_at: z.ZodString;
855
887
  config_hash: z.ZodString;
888
+ dry_run: z.ZodOptional<z.ZodBoolean>;
856
889
  summary: z.ZodObject<{
857
890
  total: z.ZodNumber;
858
891
  passed: z.ZodNumber;
@@ -1011,10 +1044,29 @@ declare const runResultSchema: z.ZodObject<{
1011
1044
  advice: z.ZodOptional<z.ZodArray<z.ZodObject<{
1012
1045
  type: z.ZodString;
1013
1046
  reason: z.ZodString;
1047
+ tool: z.ZodOptional<z.ZodString>;
1048
+ steps: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1049
+ count: z.ZodOptional<z.ZodNumber>;
1050
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
1051
+ }, z.core.$strip>>>;
1052
+ description_overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
1053
+ tool: z.ZodString;
1054
+ sha256: z.ZodString;
1014
1055
  }, z.core.$strip>>>;
1015
1056
  }, z.core.$strip>>;
1016
1057
  }, z.core.$strip>>;
1017
1058
  passed: z.ZodBoolean;
1059
+ measured: z.ZodOptional<z.ZodObject<{
1060
+ runs: z.ZodNumber;
1061
+ rows: z.ZodNumber;
1062
+ rows_hash: z.ZodString;
1063
+ assertions_hash: z.ZodString;
1064
+ model: z.ZodOptional<z.ZodString>;
1065
+ }, z.core.$strip>>;
1066
+ provider: z.ZodOptional<z.ZodObject<{
1067
+ type: z.ZodString;
1068
+ model: z.ZodString;
1069
+ }, z.core.$strip>>;
1018
1070
  }, z.core.$strip>>;
1019
1071
  }, z.core.$strip>;
1020
1072
  /**
@@ -1184,7 +1236,7 @@ declare function formatIngestResult(r: IngestResult): string;
1184
1236
 
1185
1237
  /** The payload version the Plune ingest endpoint validates — ours, not Cairn's. */
1186
1238
  declare const INGEST_SCHEMA_VERSION = 1;
1187
- type CairnRunMode = 'explore' | 'design' | 'api';
1239
+ type CairnRunMode = 'explore' | 'design' | 'api' | 'mcp';
1188
1240
  type CairnExecution = 'auto' | 'manual';
1189
1241
  /**
1190
1242
  * `blocked` (plune-ai/plune#1327): the case's request got no answer — Cairn's evidence records a transport error
package/dist/index.d.ts CHANGED
@@ -221,6 +221,28 @@ interface EvalResult {
221
221
  tags: string[];
222
222
  rows: RowResult[];
223
223
  passed: boolean;
224
+ /**
225
+ * What the eval measured, so `plune diff` compares an overall pass rate only between runs that
226
+ * measured the same thing. `rows_hash` is over the rows' canonical `vars`, order aside;
227
+ * `assertions_hash` over the checks with their parameters; `model` is `<provider type>/<model>`.
228
+ * The prompt text is left out on purpose. Optional and additive: absent in older runs, which the
229
+ * diff reads as an unknown population. `schemaVersion` stays 1.
230
+ */
231
+ measured?: {
232
+ runs: number;
233
+ rows: number;
234
+ rows_hash: string;
235
+ assertions_hash: string;
236
+ model?: string;
237
+ };
238
+ /**
239
+ * The type and model this result ran on. Written only when the config lists several models, where `id` is
240
+ * `<eval id>@<model>`; absent for a single model, whose id is the eval id. Optional and additive.
241
+ */
242
+ provider?: {
243
+ type: string;
244
+ model: string;
245
+ };
224
246
  }
225
247
  interface RunResult {
226
248
  schemaVersion: 1;
@@ -228,6 +250,12 @@ interface RunResult {
228
250
  started_at: string;
229
251
  finished_at: string;
230
252
  config_hash: string;
253
+ /**
254
+ * plune-ai/cli#244. `true` on the result of `--dry-run`: the rows were priced and none was run. No
255
+ * row is passed, failed or errored (each is `inconclusive: 'skipped'`), no eval is `passed`, and
256
+ * `cost_usd` is an estimate. Optional and additive: absent on a measured run, `schemaVersion` stays 1.
257
+ */
258
+ dry_run?: boolean;
231
259
  summary: Summary;
232
260
  evals: EvalResult[];
233
261
  }
@@ -432,6 +460,8 @@ interface EvalMcpConfig {
432
460
  interface Config {
433
461
  version: 1;
434
462
  provider: ProviderConfig;
463
+ /** Set only when the config lists several models, in config order; `provider` is the first of them. */
464
+ providers?: ProviderConfig[];
435
465
  defaults?: {
436
466
  assertions?: AssertionConfig[];
437
467
  };
@@ -625,6 +655,8 @@ interface RunOptions {
625
655
  cacheMaxAgeMs?: number;
626
656
  /** `--runs`: every row runs this many times (1–100), over `runs` in the config. */
627
657
  runs?: number;
658
+ /** `--tool-description`, each as typed: `<tool>=<text>` or `<tool>=@<file>`. */
659
+ toolDescription?: string[];
628
660
  }
629
661
  declare function handleRun(options: RunOptions, depsFactory?: (config: Config, baseDir: string) => RunDeps): Promise<RunResult>;
630
662
 
@@ -853,6 +885,7 @@ declare const runResultSchema: z.ZodObject<{
853
885
  started_at: z.ZodString;
854
886
  finished_at: z.ZodString;
855
887
  config_hash: z.ZodString;
888
+ dry_run: z.ZodOptional<z.ZodBoolean>;
856
889
  summary: z.ZodObject<{
857
890
  total: z.ZodNumber;
858
891
  passed: z.ZodNumber;
@@ -1011,10 +1044,29 @@ declare const runResultSchema: z.ZodObject<{
1011
1044
  advice: z.ZodOptional<z.ZodArray<z.ZodObject<{
1012
1045
  type: z.ZodString;
1013
1046
  reason: z.ZodString;
1047
+ tool: z.ZodOptional<z.ZodString>;
1048
+ steps: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1049
+ count: z.ZodOptional<z.ZodNumber>;
1050
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
1051
+ }, z.core.$strip>>>;
1052
+ description_overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
1053
+ tool: z.ZodString;
1054
+ sha256: z.ZodString;
1014
1055
  }, z.core.$strip>>>;
1015
1056
  }, z.core.$strip>>;
1016
1057
  }, z.core.$strip>>;
1017
1058
  passed: z.ZodBoolean;
1059
+ measured: z.ZodOptional<z.ZodObject<{
1060
+ runs: z.ZodNumber;
1061
+ rows: z.ZodNumber;
1062
+ rows_hash: z.ZodString;
1063
+ assertions_hash: z.ZodString;
1064
+ model: z.ZodOptional<z.ZodString>;
1065
+ }, z.core.$strip>>;
1066
+ provider: z.ZodOptional<z.ZodObject<{
1067
+ type: z.ZodString;
1068
+ model: z.ZodString;
1069
+ }, z.core.$strip>>;
1018
1070
  }, z.core.$strip>>;
1019
1071
  }, z.core.$strip>;
1020
1072
  /**
@@ -1184,7 +1236,7 @@ declare function formatIngestResult(r: IngestResult): string;
1184
1236
 
1185
1237
  /** The payload version the Plune ingest endpoint validates — ours, not Cairn's. */
1186
1238
  declare const INGEST_SCHEMA_VERSION = 1;
1187
- type CairnRunMode = 'explore' | 'design' | 'api';
1239
+ type CairnRunMode = 'explore' | 'design' | 'api' | 'mcp';
1188
1240
  type CairnExecution = 'auto' | 'manual';
1189
1241
  /**
1190
1242
  * `blocked` (plune-ai/plune#1327): the case's request got no answer — Cairn's evidence records a transport error