@anybio/govern 0.0.0 → 0.2.1

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/package.json CHANGED
@@ -1,7 +1,128 @@
1
1
  {
2
- "name": "@anybio/govern",
3
- "version": "0.0.0",
4
- "description": "Placeholder. The AnyBio Govern SDK ships from the anybio/govern-js repository.",
5
- "license": "UNLICENSED",
6
- "files": ["README.md"]
7
- }
2
+ "name": "@anybio/govern",
3
+ "version": "0.2.1",
4
+ "license": "Apache-2.0",
5
+ "description": "AnyBio Govern SDK for JavaScript and TypeScript: one server-side call between the text your AI produced and the moment it reaches a patient. Evaluate, allow, hold, block; observe first, then enforce.",
6
+ "keywords": [
7
+ "anybio",
8
+ "govern",
9
+ "healthcare",
10
+ "ai-safety",
11
+ "compliance-gate",
12
+ "vercel-ai-sdk",
13
+ "langchain"
14
+ ],
15
+ "homepage": "https://developer.anybio.io",
16
+ "author": {
17
+ "name": "AnyBio Engineering",
18
+ "email": "platform@anybio.io",
19
+ "url": "https://developer.anybio.io"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/anybio/govern-js.git"
24
+ },
25
+ "type": "module",
26
+ "sideEffects": false,
27
+ "engines": {
28
+ "node": ">=20"
29
+ },
30
+ "main": "./dist/index.cjs",
31
+ "module": "./dist/index.js",
32
+ "types": "./dist/index.d.cts",
33
+ "typesVersions": {
34
+ "*": {
35
+ "vercel-ai": [
36
+ "./dist/vercel-ai.d.cts"
37
+ ],
38
+ "langchain": [
39
+ "./dist/langchain.d.cts"
40
+ ]
41
+ }
42
+ },
43
+ "exports": {
44
+ ".": {
45
+ "import": {
46
+ "types": "./dist/index.d.ts",
47
+ "default": "./dist/index.js"
48
+ },
49
+ "require": {
50
+ "types": "./dist/index.d.cts",
51
+ "default": "./dist/index.cjs"
52
+ }
53
+ },
54
+ "./vercel-ai": {
55
+ "import": {
56
+ "types": "./dist/vercel-ai.d.ts",
57
+ "default": "./dist/vercel-ai.js"
58
+ },
59
+ "require": {
60
+ "types": "./dist/vercel-ai.d.cts",
61
+ "default": "./dist/vercel-ai.cjs"
62
+ }
63
+ },
64
+ "./langchain": {
65
+ "import": {
66
+ "types": "./dist/langchain.d.ts",
67
+ "default": "./dist/langchain.js"
68
+ },
69
+ "require": {
70
+ "types": "./dist/langchain.d.cts",
71
+ "default": "./dist/langchain.cjs"
72
+ }
73
+ },
74
+ "./package.json": "./package.json"
75
+ },
76
+ "bin": {
77
+ "govern": "./dist/cli.js"
78
+ },
79
+ "files": [
80
+ "dist",
81
+ "spec/openapi.json",
82
+ "README.md",
83
+ "CHANGELOG.md",
84
+ "LICENSE",
85
+ "NOTICE"
86
+ ],
87
+ "peerDependencies": {
88
+ "@langchain/core": "^1.0.0",
89
+ "ai": "^7.0.0"
90
+ },
91
+ "peerDependenciesMeta": {
92
+ "@langchain/core": {
93
+ "optional": true
94
+ },
95
+ "ai": {
96
+ "optional": true
97
+ }
98
+ },
99
+ "devDependencies": {
100
+ "@eslint/js": "^9.39.5",
101
+ "@langchain/core": "^1.2.11",
102
+ "@types/node": "^22.19.0",
103
+ "ai": "^7.0.105",
104
+ "eslint": "^9.39.5",
105
+ "openapi-typescript": "^7.13.0",
106
+ "tsup": "^8.5.1",
107
+ "typescript": "^5.9.3",
108
+ "typescript-eslint": "^8.70.0",
109
+ "vitest": "^4.1.11",
110
+ "zod": "^4.1.8"
111
+ },
112
+ "publishConfig": {
113
+ "access": "public"
114
+ },
115
+ "scripts": {
116
+ "build": "tsup",
117
+ "dev": "tsup --watch",
118
+ "clean": "rm -rf dist coverage",
119
+ "typecheck": "tsc --noEmit -p tsconfig.json",
120
+ "lint": "eslint .",
121
+ "test": "vitest run",
122
+ "test:watch": "vitest",
123
+ "generate:types": "node scripts/generate-types.mjs",
124
+ "spec:extract": "node scripts/extract-govern-openapi.mjs",
125
+ "check:package": "node scripts/check-package.mjs",
126
+ "check": "pnpm lint && pnpm typecheck && pnpm test && pnpm build && pnpm check:package"
127
+ }
128
+ }