@plune-ai/cli 0.39.8 → 0.39.9
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.cjs +4 -1
- package/dist/index.cjs +4 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -34275,12 +34275,15 @@ async function readCairnRun(dir, deps = {}) {
|
|
|
34275
34275
|
} else {
|
|
34276
34276
|
cases = casesFromDesign(report);
|
|
34277
34277
|
}
|
|
34278
|
+
const tokens2 = own2(asRecord2(own2(report, "cost")), "totalTokens");
|
|
34278
34279
|
return {
|
|
34279
34280
|
schemaVersion: INGEST_SCHEMA_VERSION,
|
|
34280
34281
|
run: {
|
|
34281
34282
|
runId: str(report["runId"], path22.basename(dir)),
|
|
34282
34283
|
mode,
|
|
34283
|
-
target: str(report["url"], "unknown")
|
|
34284
|
+
target: str(report["url"], "unknown"),
|
|
34285
|
+
// Cairn states the run's tokens as `cost.totalTokens` in every mode; the platform copies it onto each proposal.
|
|
34286
|
+
...Number.isInteger(tokens2) && tokens2 >= 0 ? { cost: { tokens: tokens2, cases: cases.length } } : {}
|
|
34284
34287
|
},
|
|
34285
34288
|
cases
|
|
34286
34289
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -7882,12 +7882,15 @@ async function readCairnRun(dir, deps = {}) {
|
|
|
7882
7882
|
} else {
|
|
7883
7883
|
cases = casesFromDesign(report);
|
|
7884
7884
|
}
|
|
7885
|
+
const tokens = own(asRecord(own(report, "cost")), "totalTokens");
|
|
7885
7886
|
return {
|
|
7886
7887
|
schemaVersion: INGEST_SCHEMA_VERSION,
|
|
7887
7888
|
run: {
|
|
7888
7889
|
runId: str(report["runId"], path9.basename(dir)),
|
|
7889
7890
|
mode,
|
|
7890
|
-
target: str(report["url"], "unknown")
|
|
7891
|
+
target: str(report["url"], "unknown"),
|
|
7892
|
+
// Cairn states the run's tokens as `cost.totalTokens` in every mode; the platform copies it onto each proposal.
|
|
7893
|
+
...Number.isInteger(tokens) && tokens >= 0 ? { cost: { tokens, cases: cases.length } } : {}
|
|
7891
7894
|
},
|
|
7892
7895
|
cases
|
|
7893
7896
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -1284,10 +1284,15 @@ interface CairnScreencast {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
interface CairnIngestPayload {
|
|
1286
1286
|
schemaVersion: typeof INGEST_SCHEMA_VERSION;
|
|
1287
|
+
/** `cost` is what the whole run spent, once per run; absent when the report counted nothing. */
|
|
1287
1288
|
run: {
|
|
1288
1289
|
runId: string;
|
|
1289
1290
|
mode: CairnRunMode;
|
|
1290
1291
|
target: string;
|
|
1292
|
+
cost?: {
|
|
1293
|
+
tokens: number;
|
|
1294
|
+
cases: number;
|
|
1295
|
+
};
|
|
1291
1296
|
};
|
|
1292
1297
|
cases: CairnIngestCase[];
|
|
1293
1298
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1284,10 +1284,15 @@ interface CairnScreencast {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
interface CairnIngestPayload {
|
|
1286
1286
|
schemaVersion: typeof INGEST_SCHEMA_VERSION;
|
|
1287
|
+
/** `cost` is what the whole run spent, once per run; absent when the report counted nothing. */
|
|
1287
1288
|
run: {
|
|
1288
1289
|
runId: string;
|
|
1289
1290
|
mode: CairnRunMode;
|
|
1290
1291
|
target: string;
|
|
1292
|
+
cost?: {
|
|
1293
|
+
tokens: number;
|
|
1294
|
+
cases: number;
|
|
1295
|
+
};
|
|
1291
1296
|
};
|
|
1292
1297
|
cases: CairnIngestCase[];
|
|
1293
1298
|
}
|
package/dist/index.js
CHANGED
|
@@ -7844,12 +7844,15 @@ async function readCairnRun(dir, deps = {}) {
|
|
|
7844
7844
|
} else {
|
|
7845
7845
|
cases = casesFromDesign(report);
|
|
7846
7846
|
}
|
|
7847
|
+
const tokens = own(asRecord(own(report, "cost")), "totalTokens");
|
|
7847
7848
|
return {
|
|
7848
7849
|
schemaVersion: INGEST_SCHEMA_VERSION,
|
|
7849
7850
|
run: {
|
|
7850
7851
|
runId: str(report["runId"], path10.basename(dir)),
|
|
7851
7852
|
mode,
|
|
7852
|
-
target: str(report["url"], "unknown")
|
|
7853
|
+
target: str(report["url"], "unknown"),
|
|
7854
|
+
// Cairn states the run's tokens as `cost.totalTokens` in every mode; the platform copies it onto each proposal.
|
|
7855
|
+
...Number.isInteger(tokens) && tokens >= 0 ? { cost: { tokens, cases: cases.length } } : {}
|
|
7853
7856
|
},
|
|
7854
7857
|
cases
|
|
7855
7858
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plune-ai/cli",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.9",
|
|
4
4
|
"mcpName": "ai.plune/cli",
|
|
5
5
|
"description": "AI-powered assertion testing for LLM apps — write assertions, run them against any provider, get a pass/fail report (local, CI, or diff).",
|
|
6
6
|
"keywords": [
|