@yobekasbah/sdk 6.0.0 → 6.0.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/README.md +7 -7
- package/package.json +23 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @yobekasbah/sdk
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@yobekasbah/sdk)
|
|
4
4
|
[](https://bekasbah.com)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://bekasbah.com)
|
|
@@ -10,13 +10,13 @@ Official Node.js SDK for [KasbahOS](https://bekasbah.com) — govern any AI agen
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npm install @
|
|
13
|
+
npm install @yobekasbah/sdk
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## 5-line quick start
|
|
17
17
|
|
|
18
18
|
```js
|
|
19
|
-
const Kasbah = require('@
|
|
19
|
+
const Kasbah = require('@yobekasbah/sdk');
|
|
20
20
|
|
|
21
21
|
const k = new Kasbah({ apiKey: process.env.KASBAH_API_KEY });
|
|
22
22
|
|
|
@@ -29,7 +29,7 @@ console.log(`Safe — proof: ${result.proof}`);
|
|
|
29
29
|
## Drop-in OpenAI proxy
|
|
30
30
|
|
|
31
31
|
```js
|
|
32
|
-
const Kasbah = require('@
|
|
32
|
+
const Kasbah = require('@yobekasbah/sdk');
|
|
33
33
|
const OpenAI = require('openai');
|
|
34
34
|
|
|
35
35
|
const kasbah = new Kasbah({ apiKey: process.env.KASBAH_API_KEY });
|
|
@@ -56,7 +56,7 @@ const completion = await governed.chat.completions.create({
|
|
|
56
56
|
## Drop-in Anthropic proxy
|
|
57
57
|
|
|
58
58
|
```js
|
|
59
|
-
const Kasbah = require('@
|
|
59
|
+
const Kasbah = require('@yobekasbah/sdk');
|
|
60
60
|
const Anthropic = require('@anthropic-ai/sdk');
|
|
61
61
|
|
|
62
62
|
const kasbah = new Kasbah({ apiKey: process.env.KASBAH_API_KEY });
|
|
@@ -144,7 +144,7 @@ const verified = await fetch('https://api.bekasbah.com/v1/zk/verify', {
|
|
|
144
144
|
Full TypeScript types are included:
|
|
145
145
|
|
|
146
146
|
```typescript
|
|
147
|
-
import Kasbah, { GovernResult, Verdict, Passport, AgentSession } from '@
|
|
147
|
+
import Kasbah, { GovernResult, Verdict, Passport, AgentSession } from '@yobekasbah/sdk';
|
|
148
148
|
|
|
149
149
|
const k = new Kasbah({ apiKey: process.env.KASBAH_API_KEY! });
|
|
150
150
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yobekasbah/sdk",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "KasbahOS — govern any AI agent in one line. Cryptographic receipts, multi-layer threat detection, drop-in middleware for OpenAI, Anthropic, LangChain.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -13,9 +13,22 @@
|
|
|
13
13
|
"test": "node src/test.js"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
|
-
"ai",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
16
|
+
"ai",
|
|
17
|
+
"security",
|
|
18
|
+
"governance",
|
|
19
|
+
"llm",
|
|
20
|
+
"openai",
|
|
21
|
+
"anthropic",
|
|
22
|
+
"langchain",
|
|
23
|
+
"prompt-injection",
|
|
24
|
+
"kasbah",
|
|
25
|
+
"kasbah-os",
|
|
26
|
+
"receipt",
|
|
27
|
+
"audit",
|
|
28
|
+
"compliance",
|
|
29
|
+
"hipaa",
|
|
30
|
+
"soc2",
|
|
31
|
+
"middleware"
|
|
19
32
|
],
|
|
20
33
|
"author": "Kasbah Guard <hello@bekasbah.com>",
|
|
21
34
|
"license": "MIT",
|
|
@@ -24,6 +37,10 @@
|
|
|
24
37
|
"url": "https://github.com/kasbah-guard/kasbah"
|
|
25
38
|
},
|
|
26
39
|
"homepage": "https://bekasbah.com",
|
|
27
|
-
"bugs": {
|
|
28
|
-
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/kasbah-guard/kasbah/issues"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18.0.0"
|
|
45
|
+
}
|
|
29
46
|
}
|