@novtia-npm/airg-client 0.4.0 → 0.4.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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +15 -7
  3. package/package.json +8 -2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 NOVTIA LTD
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -11,17 +11,19 @@ returns an **allow / block / review** decision before the tool executes.
11
11
  npm install @novtia-npm/airg-client
12
12
  ```
13
13
 
14
- Requires Node 18 or later (it uses the built-in `fetch`). Earlier versions were
15
- published to GitHub Packages as `@othnielobasi/airg-client`; use
16
- `@novtia-npm/airg-client` from npm instead.
14
+ Requires Node 18 or later (it uses the built-in `fetch`). Create an API key in the
15
+ [AIRG dashboard](https://app.airg.nov-tia.com).
17
16
 
18
17
  ## Quick start
19
18
 
20
19
  ```typescript
21
20
  import { GovernorClient, GovernorBlockedError } from "@novtia-npm/airg-client";
22
21
 
23
- const gov = new GovernorClient();
24
- // Reads GOVERNOR_URL and GOVERNOR_API_KEY from environment automatically
22
+ const gov = new GovernorClient({
23
+ baseUrl: "https://api.airg.nov-tia.com",
24
+ apiKey: process.env.GOVERNOR_API_KEY,
25
+ });
26
+ // With no options, the client reads GOVERNOR_URL and GOVERNOR_API_KEY from the environment.
25
27
 
26
28
  try {
27
29
  const decision = await gov.evaluate("issue_refund", { order_id: "A-1001", amount: 40, currency: "GBP" });
@@ -39,7 +41,7 @@ try {
39
41
 
40
42
  | Option | Env variable | Default | Description |
41
43
  |---|---|---|---|
42
- | `baseUrl` | `GOVERNOR_URL` | `http://localhost:8000` | Base URL of the Governor service |
44
+ | `baseUrl` | `GOVERNOR_URL` | `http://localhost:8000` | Base URL of the Governor service; the hosted service is `https://api.airg.nov-tia.com` |
43
45
  | `apiKey` | `GOVERNOR_API_KEY` | *(empty)* | API key (`airg_…`) sent as `X-API-Key` header |
44
46
  | `timeoutMs` | — | `10000` | Request timeout in milliseconds |
45
47
 
@@ -136,7 +138,13 @@ const decision = await gov.evaluate("issue_refund", { order_id: "A-1001", amount
136
138
  - Node.js ≥ 18 (uses built-in `fetch`)
137
139
  - Zero runtime dependencies
138
140
 
141
+ ## Links
142
+
143
+ - Documentation: https://app.airg.nov-tia.com/docs
144
+ - Developer site: https://developers.airg.nov-tia.com/
145
+ - Python SDK: [`airg-client` on PyPI](https://pypi.org/project/airg-client/)
146
+
139
147
  ## License
140
148
 
141
- MIT — see [LICENSE](../LICENSE).
149
+ MIT © 2026 NOVTIA LTD. The full text is in the `LICENSE` file included in this package.
142
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novtia-npm/airg-client",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "TypeScript/JavaScript client for the AI Runtime Governor – runtime governance for AI agents",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -25,7 +25,13 @@
25
25
  "governor",
26
26
  "ai-safety",
27
27
  "agent-governance",
28
- "runtime-governance"
28
+ "runtime-governance",
29
+ "ai-agents",
30
+ "agents",
31
+ "human-in-the-loop",
32
+ "approvals",
33
+ "llm",
34
+ "typescript"
29
35
  ],
30
36
  "author": "NOVTIA LTD",
31
37
  "license": "MIT",