@plune-ai/cli 0.2.2 → 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 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>`). This is what `plune init` scaffolds:
55
+ passed with `-c <path>`). A minimal example:
54
56
 
55
57
  ```yaml
56
58
  version: 1
package/dist/cli.cjs CHANGED
@@ -2708,8 +2708,16 @@ function createProgram() {
2708
2708
  });
2709
2709
  return program;
2710
2710
  }
2711
- var isMain = process.argv[1] === (0, import_node_url.fileURLToPath)(importMetaUrl);
2712
- if (isMain) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plune-ai/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "AI-powered assertion testing for LLM apps — write assertions, run them against any provider, get a pass/fail report (local, CI, or diff).",
5
5
  "keywords": [
6
6
  "ai",