@humanagencyp/hap-core 0.6.0 → 0.6.1

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 an AI agent of «name», verified by «operator»"
656
+ * - high / eudi → "Sent by an AI agent of «name», identity verified (EUDI)"
657
+ *
658
+ * Punctuation is ASCII (comma, not em-dash) so the line survives header and
659
+ * plain-text encoding intact across email, calendar, and publishing channels.
660
+ * The leading verb ("Sent") is the default; presentation layers may swap it
661
+ * (e.g. the gateway uses "Published" for the publish profile).
657
662
  *
658
663
  * `operatorName` is the rendered AS operator (e.g. "Suveren") — never hardcode it
659
664
  * upstream; a different operator self-vouches under its own name.
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 an AI agent of «name», verified by «operator»"
656
+ * - high / eudi → "Sent by an AI agent of «name», identity verified (EUDI)"
657
+ *
658
+ * Punctuation is ASCII (comma, not em-dash) so the line survives header and
659
+ * plain-text encoding intact across email, calendar, and publishing channels.
660
+ * The leading verb ("Sent") is the default; presentation layers may swap it
661
+ * (e.g. the gateway uses "Published" for the publish profile).
657
662
  *
658
663
  * `operatorName` is the rendered AS operator (e.g. "Suveren") — never hardcode it
659
664
  * 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 an AI agent of ${name} \u2014 identity verified (EUDI)`;
173
+ return `Sent by an AI agent of ${name}, identity verified (EUDI)`;
174
174
  }
175
- return `Sent by an AI agent of ${name} \u2014 verified by ${operatorName}`;
175
+ return `Sent by an AI agent of ${name}, 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} \u2014 identity verified (EUDI)`;
102
+ return `Sent by an AI agent of ${name}, identity verified (EUDI)`;
103
103
  }
104
- return `Sent by an AI agent of ${name} \u2014 verified by ${operatorName}`;
104
+ return `Sent by an AI agent of ${name}, 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.0",
3
+ "version": "0.6.1",
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 an AI agent of «name», verified by «operator»"
60
+ * - high / eudi → "Sent by an AI agent of «name», identity verified (EUDI)"
61
+ *
62
+ * Punctuation is ASCII (comma, not em-dash) so the line survives header and
63
+ * plain-text encoding intact across email, calendar, and publishing channels.
64
+ * The leading verb ("Sent") is the default; presentation layers may swap it
65
+ * (e.g. the gateway uses "Published" for the publish profile).
61
66
  *
62
67
  * `operatorName` is the rendered AS operator (e.g. "Suveren") — never hardcode it
63
68
  * upstream; a different operator self-vouches under its own name.
@@ -71,7 +76,7 @@ export function deriveIdentityLine(
71
76
  return `Sent by an AI agent via ${operatorName}`;
72
77
  }
73
78
  if (subject!.method === 'eudi') {
74
- return `Sent by an AI agent of ${name} — identity verified (EUDI)`;
79
+ return `Sent by an AI agent of ${name}, identity verified (EUDI)`;
75
80
  }
76
- return `Sent by an AI agent of ${name} — verified by ${operatorName}`;
81
+ return `Sent by an AI agent of ${name}, verified by ${operatorName}`;
77
82
  }