ovrule-lab 0.1.2 → 0.1.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/bin/welcome.js ADDED
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env node
2
+ /* eslint-disable no-console */
3
+
4
+ const reset = "\x1b[0m";
5
+ const dim = "\x1b[2m";
6
+ const bold = "\x1b[1m";
7
+ const cyan = "\x1b[36m";
8
+ const magenta = "\x1b[35m";
9
+ const yellow = "\x1b[33m";
10
+
11
+ const lines = [
12
+ "",
13
+ `${bold}${cyan} ╔═══════════════════════════════════════════════╗${reset}`,
14
+ `${bold}${cyan} ║${reset} ${bold}O${reset}${magenta}━━${reset}${bold}V${reset} ${bold}Ovrule${reset} · SDK v0.1.3 ${bold}${cyan}║${reset}`,
15
+ `${bold}${cyan} ║${reset} ${dim}Auditable receipts for AI agents${reset} ${bold}${cyan}║${reset}`,
16
+ `${bold}${cyan} ╚═══════════════════════════════════════════════╝${reset}`,
17
+ "",
18
+ ` ${bold}Quickstart${reset}`,
19
+ ` ${dim}import { classify } from "ovrule-lab";${reset}`,
20
+ ` ${dim}const receipt = await classify("your agent action", {${reset}`,
21
+ ` ${dim} baseUrl: "https://decision-receipt-lab.vercel.app"${reset}`,
22
+ ` ${dim}});${reset}`,
23
+ "",
24
+ ` ${bold}Methods${reset}`,
25
+ ` ${dim}classify(action, opts)${reset} — full case file audit`,
26
+ ` ${dim}guard(action, opts)${reset} — returns { allowed, decision, ... }`,
27
+ ` ${dim}verify(receipt, sig, opts)${reset} — verify a signed receipt`,
28
+ "",
29
+ ` ${bold}Docs${reset} ${yellow}https://decision-receipt-lab.vercel.app/docs${reset}`,
30
+ ` ${bold}GitHub${reset} ${yellow}https://github.com/elakumuk/decision-receipt-lab${reset}`,
31
+ "",
32
+ ` ${dim}Built with Codex for the OpenAI Creator Challenge, April 2026.${reset}`,
33
+ "",
34
+ ];
35
+
36
+ console.log(lines.join("\n"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ovrule-lab",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "TypeScript SDK for Ovrule case-file classification, guardrails, and receipt verification.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,8 +15,12 @@
15
15
  "files": [
16
16
  "dist",
17
17
  "README.md",
18
- "postinstall.js"
18
+ "postinstall.js",
19
+ "bin/welcome.js"
19
20
  ],
21
+ "bin": {
22
+ "ovrule-lab": "./bin/welcome.js"
23
+ },
20
24
  "scripts": {
21
25
  "build": "tsc -p tsconfig.json",
22
26
  "clean": "rm -rf dist",
package/postinstall.js CHANGED
File without changes