@plune-ai/cli 0.2.0 → 0.2.3
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 +12 -4
- 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
|
@@ -31,10 +31,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
));
|
|
32
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/tsup@8.5.1_postcss@8.5.
|
|
34
|
+
// node_modules/.pnpm/tsup@8.5.1_postcss@8.5.15_tsx@4.22.4_typescript@5.9.3_yaml@2.9.0/node_modules/tsup/assets/cjs_shims.js
|
|
35
35
|
var getImportMetaUrl, importMetaUrl;
|
|
36
36
|
var init_cjs_shims = __esm({
|
|
37
|
-
"node_modules/.pnpm/tsup@8.5.1_postcss@8.5.
|
|
37
|
+
"node_modules/.pnpm/tsup@8.5.1_postcss@8.5.15_tsx@4.22.4_typescript@5.9.3_yaml@2.9.0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
38
38
|
"use strict";
|
|
39
39
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
40
40
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -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/package.json
CHANGED