@humanagencyp/hap-core 0.6.1 → 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 CHANGED
@@ -652,8 +652,13 @@ 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 an AI agent of «name», verified by «operator»"
656
- * - high / eudi → "Sent by an AI agent of «name», identity verified (EUDI)"
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).
657
662
  *
658
663
  * Punctuation is ASCII (comma, not em-dash) so the line survives header and
659
664
  * plain-text encoding intact across email, calendar, and publishing channels.
package/dist/index.d.ts CHANGED
@@ -652,8 +652,13 @@ 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 an AI agent of «name», verified by «operator»"
656
- * - high / eudi → "Sent by an AI agent of «name», identity verified (EUDI)"
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).
657
662
  *
658
663
  * Punctuation is ASCII (comma, not em-dash) so the line survives header and
659
664
  * plain-text encoding intact across email, calendar, and publishing channels.
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 an AI agent of ${name}, identity verified (EUDI)`;
173
+ return `Sent by ${name}'s AI agent, identity verified (EUDI)`;
174
174
  }
175
- return `Sent by an AI agent of ${name}, verified by ${operatorName}`;
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 an AI agent of ${name}, identity verified (EUDI)`;
102
+ return `Sent by ${name}'s AI agent, identity verified (EUDI)`;
103
103
  }
104
- return `Sent by an AI agent of ${name}, verified by ${operatorName}`;
104
+ return `Sent by ${name}'s AI agent, verified by ${operatorName}`;
105
105
  }
106
106
 
107
107
  // src/frame.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanagencyp/hap-core",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Core types, cryptographic primitives, and verification logic for the Human Agency Protocol",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/identity.ts CHANGED
@@ -56,8 +56,13 @@ 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 an AI agent of «name», verified by «operator»"
60
- * - high / eudi → "Sent by an AI agent of «name», identity verified (EUDI)"
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).
61
66
  *
62
67
  * Punctuation is ASCII (comma, not em-dash) so the line survives header and
63
68
  * plain-text encoding intact across email, calendar, and publishing channels.
@@ -76,7 +81,7 @@ export function deriveIdentityLine(
76
81
  return `Sent by an AI agent via ${operatorName}`;
77
82
  }
78
83
  if (subject!.method === 'eudi') {
79
- return `Sent by an AI agent of ${name}, identity verified (EUDI)`;
84
+ return `Sent by ${name}'s AI agent, identity verified (EUDI)`;
80
85
  }
81
- return `Sent by an AI agent of ${name}, verified by ${operatorName}`;
86
+ return `Sent by ${name}'s AI agent, verified by ${operatorName}`;
82
87
  }