ovrule-lab 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/postinstall.js +8 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ovrule-lab",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "TypeScript SDK for Ovrule case-file classification, guardrails, and receipt verification.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/postinstall.js CHANGED
@@ -1,11 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  /* eslint-disable no-console */
3
3
 
4
- // Skip banner when installed as a nested / transitive dependency
5
- if (process.env.npm_config_global === "true") {
6
- // still show
7
- } else if (process.env.INIT_CWD && process.env.INIT_CWD !== process.cwd()) {
8
- // installed as a dependency of another package — skip
4
+ // Allow users to opt out
5
+ if (process.env.OVRULE_SILENT) {
6
+ process.exit(0);
7
+ }
8
+
9
+ // Skip in CI to avoid cluttering build logs
10
+ if (process.env.CI) {
9
11
  process.exit(0);
10
12
  }
11
13
 
@@ -19,7 +21,7 @@ const yellow = "\x1b[33m";
19
21
  const lines = [
20
22
  "",
21
23
  `${bold}${cyan} ╔═══════════════════════════════════════════════╗${reset}`,
22
- `${bold}${cyan} ║${reset} ${bold}O${reset}${magenta}━━${reset}${bold}V${reset} ${bold}Ovrule${reset} · SDK v0.1.1 ${bold}${cyan}║${reset}`,
24
+ `${bold}${cyan} ║${reset} ${bold}O${reset}${magenta}━━${reset}${bold}V${reset} ${bold}Ovrule${reset} · SDK v0.1.2 ${bold}${cyan}║${reset}`,
23
25
  `${bold}${cyan} ║${reset} ${dim}Auditable receipts for AI agents${reset} ${bold}${cyan}║${reset}`,
24
26
  `${bold}${cyan} ╚═══════════════════════════════════════════════╝${reset}`,
25
27
  "",