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 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 https://github.com/roee-hersh/hallpass/releases/download/v0.4.0/hallpass-client-node.tgz
7
+ npm install hallpass-client
8
8
  ```
9
9
 
10
- Every [release](https://github.com/roee-hersh/hallpass/releases) carries the package. Pin a version
11
- as above rather than using `latest/download`: npm records the tarball's checksum in
12
- `package-lock.json`, so a URL whose content changes with each release would fail `npm ci` later.
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/agents.md](https://github.com/roee-hersh/hallpass/blob/main/docs/agents.md).
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 from a hallpass release (see sdk/node/README.md). This is the TypeScript
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 from a hallpass release (see sdk/node/README.md). This is the TypeScript
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.4.0",
3
+ "version": "0.5.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",