hallpass-client 0.4.0 → 0.5.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 +5 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,13 +4,12 @@ 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
14
|
It needs a running hallpass service. The client has no dependencies; it uses Node's built-in `fetch`
|
|
16
15
|
(Node 18.17 or later). It ships as an ES module with type declarations.
|
|
@@ -49,4 +48,4 @@ await hp.require(...); // rejects with PermissionDenied unless allow
|
|
|
49
48
|
```
|
|
50
49
|
|
|
51
50
|
Framework examples: [examples/agent-ts](https://github.com/roee-hersh/hallpass/tree/main/examples/agent-ts).
|
|
52
|
-
The guide: [docs/
|
|
51
|
+
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.
|