@plune-ai/cli 0.2.2 → 0.3.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/README.md +3 -1
- package/dist/cli.cjs +11 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@ locally, in CI, or as a regression diff between two runs. You describe the check
|
|
|
12
12
|
token cost. Ten built-in assertion types cover plain text, JSON-schema, LLM-as-judge, and
|
|
13
13
|
RAG metrics (faithfulness, answer-relevance, context-precision).
|
|
14
14
|
|
|
15
|
+
**Links:** [plune.ai](https://plune.ai) | [npm](https://www.npmjs.com/package/@plune-ai/cli) | [GitHub Action on Marketplace](https://github.com/marketplace/actions/plune-eval-diff)
|
|
16
|
+
|
|
15
17
|
## Install
|
|
16
18
|
|
|
17
19
|
```bash
|
|
@@ -50,7 +52,7 @@ Each run writes its full result to `.plune/last-run.json`.
|
|
|
50
52
|
## Configuration
|
|
51
53
|
|
|
52
54
|
Plune reads a single `plune.yaml`, discovered by walking up from the working directory (or
|
|
53
|
-
passed with `-c <path>`).
|
|
55
|
+
passed with `-c <path>`). A minimal example:
|
|
54
56
|
|
|
55
57
|
```yaml
|
|
56
58
|
version: 1
|
package/dist/cli.cjs
CHANGED
|
@@ -1749,7 +1749,7 @@ async function runOrchestration(config, options, deps) {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
return {
|
|
1752
|
-
|
|
1752
|
+
schemaVersion: 1,
|
|
1753
1753
|
plune_version: PLUNE_VERSION,
|
|
1754
1754
|
started_at: new Date(started).toISOString(),
|
|
1755
1755
|
finished_at: new Date(finished).toISOString(),
|
|
@@ -2708,8 +2708,16 @@ function createProgram() {
|
|
|
2708
2708
|
});
|
|
2709
2709
|
return program;
|
|
2710
2710
|
}
|
|
2711
|
-
|
|
2712
|
-
|
|
2711
|
+
function isMainModule() {
|
|
2712
|
+
const entry = process.argv[1];
|
|
2713
|
+
if (entry === void 0) return false;
|
|
2714
|
+
try {
|
|
2715
|
+
return (0, import_node_fs.realpathSync)(entry) === (0, import_node_fs.realpathSync)((0, import_node_url.fileURLToPath)(importMetaUrl));
|
|
2716
|
+
} catch {
|
|
2717
|
+
return false;
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
if (isMainModule()) {
|
|
2713
2721
|
createProgram().parseAsync(process.argv).catch((err) => {
|
|
2714
2722
|
process.stderr.write(String(err) + "\n");
|
|
2715
2723
|
process.exit(1);
|
package/dist/index.cjs
CHANGED
|
@@ -1425,7 +1425,7 @@ async function runOrchestration(config, options, deps) {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
1427
|
return {
|
|
1428
|
-
|
|
1428
|
+
schemaVersion: 1,
|
|
1429
1429
|
plune_version: PLUNE_VERSION,
|
|
1430
1430
|
started_at: new Date(started).toISOString(),
|
|
1431
1431
|
finished_at: new Date(finished).toISOString(),
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1389,7 +1389,7 @@ async function runOrchestration(config, options, deps) {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
}
|
|
1391
1391
|
return {
|
|
1392
|
-
|
|
1392
|
+
schemaVersion: 1,
|
|
1393
1393
|
plune_version: PLUNE_VERSION,
|
|
1394
1394
|
started_at: new Date(started).toISOString(),
|
|
1395
1395
|
finished_at: new Date(finished).toISOString(),
|
package/package.json
CHANGED