hallpass-client 0.4.0 → 0.6.0
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 +11 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,16 +4,19 @@ The Node.js and TypeScript client for [hallpass](https://github.com/roee-hersh/h
|
|
|
4
4
|
your AI agent acts for a user, ask the system that owns the resource whether that user may do it.
|
|
5
5
|
|
|
6
6
|
```sh
|
|
7
|
-
npm install
|
|
7
|
+
npm install hallpass-client
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
The package name is `hallpass-client`, so imports read `from "hallpass-client"`.
|
|
10
|
+
It is on [npm](https://www.npmjs.com/package/hallpass-client). Its version matches the hallpass
|
|
11
|
+
release, so in a project pin the one you run (`npm install hallpass-client@0.4.0`). From 0.4.1 on,
|
|
12
|
+
the hallpass release workflow publishes it with npm provenance.
|
|
14
13
|
|
|
15
|
-
It needs a running hallpass
|
|
16
|
-
|
|
14
|
+
It needs a running hallpass server: the `ghcr.io/roee-hersh/hallpass` image, the Helm chart, or
|
|
15
|
+
`pip install hallpass` and `hallpass serve -config hallpass.yaml` (hallpass itself is a Python
|
|
16
|
+
package; in Python you can also run its engine in-process, with no server). The client has no
|
|
17
|
+
dependencies; it uses Node's built-in `fetch` (Node 18.17 or later). It ships as an ES module with
|
|
18
|
+
type declarations. Its source is in
|
|
19
|
+
[`hallpass-ts`](https://github.com/roee-hersh/hallpass/tree/main/hallpass-ts).
|
|
17
20
|
|
|
18
21
|
```ts
|
|
19
22
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -49,4 +52,4 @@ await hp.require(...); // rejects with PermissionDenied unless allow
|
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|
Framework examples: [examples/agent-ts](https://github.com/roee-hersh/hallpass/tree/main/examples/agent-ts).
|
|
52
|
-
The guide: [docs/
|
|
55
|
+
The guide: [docs/guides/agent-tools.md](https://github.com/roee-hersh/hallpass/blob/main/docs/guides/agent-tools.md).
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* The user comes from the application, never from the tool's arguments.
|
|
24
24
|
*
|
|
25
|
-
* Install it
|
|
25
|
+
* Install it with `npm install hallpass-client`. This is the TypeScript
|
|
26
26
|
* counterpart of the Python package (sdk/python) and follows the same
|
|
27
27
|
* contract; the tests in examples/agent-ts/hallpass_client.test.ts spell it
|
|
28
28
|
* out.
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* The user comes from the application, never from the tool's arguments.
|
|
24
24
|
*
|
|
25
|
-
* Install it
|
|
25
|
+
* Install it with `npm install hallpass-client`. This is the TypeScript
|
|
26
26
|
* counterpart of the Python package (sdk/python) and follows the same
|
|
27
27
|
* contract; the tests in examples/agent-ts/hallpass_client.test.ts spell it
|
|
28
28
|
* out.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hallpass-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Check with hallpass whether a user may do something before your AI agent does it for them.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"tools",
|
|
11
11
|
"mcp"
|
|
12
12
|
],
|
|
13
|
-
"homepage": "https://github.com/roee-hersh/hallpass/tree/main/
|
|
13
|
+
"homepage": "https://github.com/roee-hersh/hallpass/tree/main/hallpass-ts",
|
|
14
14
|
"bugs": "https://github.com/roee-hersh/hallpass/issues",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "git+https://github.com/roee-hersh/hallpass.git",
|
|
18
|
-
"directory": "
|
|
18
|
+
"directory": "hallpass-ts"
|
|
19
19
|
},
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"type": "module",
|