@humanagencyp/hap-core 0.6.0 → 0.6.2
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/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/identity.ts +14 -4
package/dist/index.d.mts
CHANGED
|
@@ -652,8 +652,18 @@ declare function validateSubject(subject: Subject): SubjectValidation;
|
|
|
652
652
|
* The name appears only at `high` with a disclosed name; otherwise no name.
|
|
653
653
|
*
|
|
654
654
|
* - low / no disclosure → "Sent by an AI agent via «operator»"
|
|
655
|
-
* - high / as_vouched → "Sent by
|
|
656
|
-
* - high / eudi → "Sent by
|
|
655
|
+
* - high / as_vouched → "Sent by «name»'s AI agent, verified by «operator»"
|
|
656
|
+
* - high / eudi → "Sent by «name»'s AI agent, identity verified (EUDI)"
|
|
657
|
+
*
|
|
658
|
+
* Footer wording v1.1 (July 2026): the named forms read "«name»'s AI agent"
|
|
659
|
+
* (more natural than the v1 "an AI agent of «name»"). The v1 wording is frozen
|
|
660
|
+
* for already-sent content; verifiers strip BOTH forms (see the gateway's
|
|
661
|
+
* FOOTER_RE and the AS ContentVerifier).
|
|
662
|
+
*
|
|
663
|
+
* Punctuation is ASCII (comma, not em-dash) so the line survives header and
|
|
664
|
+
* plain-text encoding intact across email, calendar, and publishing channels.
|
|
665
|
+
* The leading verb ("Sent") is the default; presentation layers may swap it
|
|
666
|
+
* (e.g. the gateway uses "Published" for the publish profile).
|
|
657
667
|
*
|
|
658
668
|
* `operatorName` is the rendered AS operator (e.g. "Suveren") — never hardcode it
|
|
659
669
|
* upstream; a different operator self-vouches under its own name.
|
package/dist/index.d.ts
CHANGED
|
@@ -652,8 +652,18 @@ declare function validateSubject(subject: Subject): SubjectValidation;
|
|
|
652
652
|
* The name appears only at `high` with a disclosed name; otherwise no name.
|
|
653
653
|
*
|
|
654
654
|
* - low / no disclosure → "Sent by an AI agent via «operator»"
|
|
655
|
-
* - high / as_vouched → "Sent by
|
|
656
|
-
* - high / eudi → "Sent by
|
|
655
|
+
* - high / as_vouched → "Sent by «name»'s AI agent, verified by «operator»"
|
|
656
|
+
* - high / eudi → "Sent by «name»'s AI agent, identity verified (EUDI)"
|
|
657
|
+
*
|
|
658
|
+
* Footer wording v1.1 (July 2026): the named forms read "«name»'s AI agent"
|
|
659
|
+
* (more natural than the v1 "an AI agent of «name»"). The v1 wording is frozen
|
|
660
|
+
* for already-sent content; verifiers strip BOTH forms (see the gateway's
|
|
661
|
+
* FOOTER_RE and the AS ContentVerifier).
|
|
662
|
+
*
|
|
663
|
+
* Punctuation is ASCII (comma, not em-dash) so the line survives header and
|
|
664
|
+
* plain-text encoding intact across email, calendar, and publishing channels.
|
|
665
|
+
* The leading verb ("Sent") is the default; presentation layers may swap it
|
|
666
|
+
* (e.g. the gateway uses "Published" for the publish profile).
|
|
657
667
|
*
|
|
658
668
|
* `operatorName` is the rendered AS operator (e.g. "Suveren") — never hardcode it
|
|
659
669
|
* upstream; a different operator self-vouches under its own name.
|
package/dist/index.js
CHANGED
|
@@ -170,9 +170,9 @@ function deriveIdentityLine(subject, { operatorName }) {
|
|
|
170
170
|
return `Sent by an AI agent via ${operatorName}`;
|
|
171
171
|
}
|
|
172
172
|
if (subject.method === "eudi") {
|
|
173
|
-
return `Sent by
|
|
173
|
+
return `Sent by ${name}'s AI agent, identity verified (EUDI)`;
|
|
174
174
|
}
|
|
175
|
-
return `Sent by
|
|
175
|
+
return `Sent by ${name}'s AI agent, verified by ${operatorName}`;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
// src/frame.ts
|
package/dist/index.mjs
CHANGED
|
@@ -99,9 +99,9 @@ function deriveIdentityLine(subject, { operatorName }) {
|
|
|
99
99
|
return `Sent by an AI agent via ${operatorName}`;
|
|
100
100
|
}
|
|
101
101
|
if (subject.method === "eudi") {
|
|
102
|
-
return `Sent by
|
|
102
|
+
return `Sent by ${name}'s AI agent, identity verified (EUDI)`;
|
|
103
103
|
}
|
|
104
|
-
return `Sent by
|
|
104
|
+
return `Sent by ${name}'s AI agent, verified by ${operatorName}`;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
// src/frame.ts
|
package/package.json
CHANGED
package/src/identity.ts
CHANGED
|
@@ -56,8 +56,18 @@ export function validateSubject(subject: Subject): SubjectValidation {
|
|
|
56
56
|
* The name appears only at `high` with a disclosed name; otherwise no name.
|
|
57
57
|
*
|
|
58
58
|
* - low / no disclosure → "Sent by an AI agent via «operator»"
|
|
59
|
-
* - high / as_vouched → "Sent by
|
|
60
|
-
* - high / eudi → "Sent by
|
|
59
|
+
* - high / as_vouched → "Sent by «name»'s AI agent, verified by «operator»"
|
|
60
|
+
* - high / eudi → "Sent by «name»'s AI agent, identity verified (EUDI)"
|
|
61
|
+
*
|
|
62
|
+
* Footer wording v1.1 (July 2026): the named forms read "«name»'s AI agent"
|
|
63
|
+
* (more natural than the v1 "an AI agent of «name»"). The v1 wording is frozen
|
|
64
|
+
* for already-sent content; verifiers strip BOTH forms (see the gateway's
|
|
65
|
+
* FOOTER_RE and the AS ContentVerifier).
|
|
66
|
+
*
|
|
67
|
+
* Punctuation is ASCII (comma, not em-dash) so the line survives header and
|
|
68
|
+
* plain-text encoding intact across email, calendar, and publishing channels.
|
|
69
|
+
* The leading verb ("Sent") is the default; presentation layers may swap it
|
|
70
|
+
* (e.g. the gateway uses "Published" for the publish profile).
|
|
61
71
|
*
|
|
62
72
|
* `operatorName` is the rendered AS operator (e.g. "Suveren") — never hardcode it
|
|
63
73
|
* upstream; a different operator self-vouches under its own name.
|
|
@@ -71,7 +81,7 @@ export function deriveIdentityLine(
|
|
|
71
81
|
return `Sent by an AI agent via ${operatorName}`;
|
|
72
82
|
}
|
|
73
83
|
if (subject!.method === 'eudi') {
|
|
74
|
-
return `Sent by
|
|
84
|
+
return `Sent by ${name}'s AI agent, identity verified (EUDI)`;
|
|
75
85
|
}
|
|
76
|
-
return `Sent by
|
|
86
|
+
return `Sent by ${name}'s AI agent, verified by ${operatorName}`;
|
|
77
87
|
}
|