@humanagencyp/hap-core 0.8.2 → 0.8.4
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 +4 -4
- package/dist/index.d.mts +22 -0
- package/dist/index.d.ts +22 -0
- package/package.json +1 -1
- package/src/types.ts +23 -0
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @humanagencyp/hap-core
|
|
2
2
|
|
|
3
|
-
Core types, cryptographic primitives, and verification logic for the [Human Agency Protocol](https://humanagencyprotocol.
|
|
3
|
+
Core types, cryptographic primitives, and verification logic for the [Human Agency Protocol](https://humanagencyprotocol.org).
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @
|
|
8
|
+
npm install @humanagencyp/hap-core
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## What's included
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
verify,
|
|
27
27
|
registerProfile,
|
|
28
28
|
getProfile,
|
|
29
|
-
} from '@
|
|
29
|
+
} from '@humanagencyp/hap-core';
|
|
30
30
|
|
|
31
31
|
// Register a profile
|
|
32
32
|
registerProfile(profile.id, profile);
|
package/dist/index.d.mts
CHANGED
|
@@ -415,6 +415,28 @@ interface AgentProfile {
|
|
|
415
415
|
* know why 0.5 exists. Absent → surfaces show the version alone.
|
|
416
416
|
*/
|
|
417
417
|
whatsNew?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Whether receipts under this profile may be looked up BY THEIR CONTENT — a
|
|
420
|
+
* verifier holding the content supplies its hash and learns which receipts
|
|
421
|
+
* bind it, without needing a receipt id.
|
|
422
|
+
*
|
|
423
|
+
* OFF unless declared, and that default is the point. The lookup is a
|
|
424
|
+
* confirmation oracle: given a guess at the content it says whether that
|
|
425
|
+
* content was authorized. Where the bound content has low entropy this is
|
|
426
|
+
* disclosure, not verification — guessing a message body is hopeless,
|
|
427
|
+
* guessing `production` takes a second. It is the same enumeration hazard
|
|
428
|
+
* recorded for per-field commitments, arriving from the other direction.
|
|
429
|
+
*
|
|
430
|
+
* Enable only when the bound content is unguessable enough that producing it
|
|
431
|
+
* is equivalent to already having it: prose, an artifact URL, a whole record
|
|
432
|
+
* payload. Never for a binding over a short value drawn from a small set.
|
|
433
|
+
*
|
|
434
|
+
* Why it must exist at all: most consequential actions cannot carry their
|
|
435
|
+
* receipt id. A released build was built before the receipt existed, a
|
|
436
|
+
* content-addressed artifact would change identity if the id were added, and
|
|
437
|
+
* a forwarded message has usually lost the footer that carried it.
|
|
438
|
+
*/
|
|
439
|
+
receipt_lookup?: boolean;
|
|
418
440
|
/**
|
|
419
441
|
* v0.3 frame schema (deprecated, kept for backward compat).
|
|
420
442
|
* Used when boundsSchema is not present.
|
package/dist/index.d.ts
CHANGED
|
@@ -415,6 +415,28 @@ interface AgentProfile {
|
|
|
415
415
|
* know why 0.5 exists. Absent → surfaces show the version alone.
|
|
416
416
|
*/
|
|
417
417
|
whatsNew?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Whether receipts under this profile may be looked up BY THEIR CONTENT — a
|
|
420
|
+
* verifier holding the content supplies its hash and learns which receipts
|
|
421
|
+
* bind it, without needing a receipt id.
|
|
422
|
+
*
|
|
423
|
+
* OFF unless declared, and that default is the point. The lookup is a
|
|
424
|
+
* confirmation oracle: given a guess at the content it says whether that
|
|
425
|
+
* content was authorized. Where the bound content has low entropy this is
|
|
426
|
+
* disclosure, not verification — guessing a message body is hopeless,
|
|
427
|
+
* guessing `production` takes a second. It is the same enumeration hazard
|
|
428
|
+
* recorded for per-field commitments, arriving from the other direction.
|
|
429
|
+
*
|
|
430
|
+
* Enable only when the bound content is unguessable enough that producing it
|
|
431
|
+
* is equivalent to already having it: prose, an artifact URL, a whole record
|
|
432
|
+
* payload. Never for a binding over a short value drawn from a small set.
|
|
433
|
+
*
|
|
434
|
+
* Why it must exist at all: most consequential actions cannot carry their
|
|
435
|
+
* receipt id. A released build was built before the receipt existed, a
|
|
436
|
+
* content-addressed artifact would change identity if the id were added, and
|
|
437
|
+
* a forwarded message has usually lost the footer that carried it.
|
|
438
|
+
*/
|
|
439
|
+
receipt_lookup?: boolean;
|
|
418
440
|
/**
|
|
419
441
|
* v0.3 frame schema (deprecated, kept for backward compat).
|
|
420
442
|
* Used when boundsSchema is not present.
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -427,6 +427,29 @@ export interface AgentProfile {
|
|
|
427
427
|
*/
|
|
428
428
|
whatsNew?: string;
|
|
429
429
|
|
|
430
|
+
/**
|
|
431
|
+
* Whether receipts under this profile may be looked up BY THEIR CONTENT — a
|
|
432
|
+
* verifier holding the content supplies its hash and learns which receipts
|
|
433
|
+
* bind it, without needing a receipt id.
|
|
434
|
+
*
|
|
435
|
+
* OFF unless declared, and that default is the point. The lookup is a
|
|
436
|
+
* confirmation oracle: given a guess at the content it says whether that
|
|
437
|
+
* content was authorized. Where the bound content has low entropy this is
|
|
438
|
+
* disclosure, not verification — guessing a message body is hopeless,
|
|
439
|
+
* guessing `production` takes a second. It is the same enumeration hazard
|
|
440
|
+
* recorded for per-field commitments, arriving from the other direction.
|
|
441
|
+
*
|
|
442
|
+
* Enable only when the bound content is unguessable enough that producing it
|
|
443
|
+
* is equivalent to already having it: prose, an artifact URL, a whole record
|
|
444
|
+
* payload. Never for a binding over a short value drawn from a small set.
|
|
445
|
+
*
|
|
446
|
+
* Why it must exist at all: most consequential actions cannot carry their
|
|
447
|
+
* receipt id. A released build was built before the receipt existed, a
|
|
448
|
+
* content-addressed artifact would change identity if the id were added, and
|
|
449
|
+
* a forwarded message has usually lost the footer that carried it.
|
|
450
|
+
*/
|
|
451
|
+
receipt_lookup?: boolean;
|
|
452
|
+
|
|
430
453
|
/**
|
|
431
454
|
* v0.3 frame schema (deprecated, kept for backward compat).
|
|
432
455
|
* Used when boundsSchema is not present.
|