@agenticprimitives/agent-relationships 1.0.0-alpha.22 → 1.0.0-alpha.23

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.
@@ -18,7 +18,36 @@ export declare function hashRole(name: string): `0x${string}`;
18
18
  * Naming hierarchy lives in agent-naming via a parent-pointer, NOT
19
19
  * via a relationships-edge.
20
20
  */
21
+ /**
22
+ * Derive a relationship-type ID from an ONTOLOGY IRI — the convention for every type added after
23
+ * spec 355. The bytes32 on chain then names a term with an `rdfs:comment` that says what it means and
24
+ * what it does not, instead of a short string whose meaning lives in whoever wrote it.
25
+ *
26
+ * The older constants below hash short names (`HAS_MEMBER`) and keep doing so: their IDs are on chain
27
+ * already and re-hashing them would orphan every existing edge. New terms name their IRI.
28
+ */
29
+ export declare function ontologyRelationshipType(iri: string): `0x${string}`;
30
+ /** The ontology IRIs that back the IRI-derived relationship types, for `check:ontology-bindings`. */
31
+ export declare const RELATIONSHIP_TYPE_IRI: {
32
+ readonly CHARTERED_UNDER: "https://agenticprimitives.dev/ns/core#charteredUnder";
33
+ };
34
+ /** Ontology IRIs backing the IRI-derived ROLES. Same convention and same reason as the types above. */
35
+ export declare const ROLE_IRI: {
36
+ /** `ap:primaryPayee` — the agent its owner wants paid into. A preference, never authority. */
37
+ readonly PRIMARY_PAYEE: "https://agenticprimitives.dev/ns/core#primaryPayee";
38
+ /** `ap:primaryPayer` — the account its owner usually pays FROM. The mirror, and never the same thing:
39
+ * the account you publish to be paid into and the one you spend from are often different. */
40
+ readonly PRIMARY_PAYER: "https://agenticprimitives.dev/ns/core#primaryPayer";
41
+ };
21
42
  export declare const RELATIONSHIP_TYPE: {
43
+ /**
44
+ * `ap:charteredUnder` — subject was created under object and BELONGS TO it: a treasury under the
45
+ * person or organization that holds it, a team under its workspace, a workspace under its
46
+ * organization. NEVER AUTHORITY (ADR-0010): the subject is a distinct custodied agent, and the
47
+ * authority to act for it is granted elsewhere and never by this edge. Recorded so a third party can
48
+ * answer "which treasury does alice hold" — which no public source could answer before (spec 355 §3).
49
+ */
50
+ readonly CHARTERED_UNDER: `0x${string}`;
22
51
  /** Membership: subject is a member of object (org / DAO / collective). */
23
52
  readonly HAS_MEMBER: `0x${string}`;
24
53
  /** Governance: subject has governance authority over object. */
@@ -34,6 +63,18 @@ export declare const RELATIONSHIP_TYPE: {
34
63
  };
35
64
  /** Well-known role labels (bytes32-hashed). */
36
65
  export declare const ROLE: {
66
+ /**
67
+ * `ap:primaryPayee` — on an `ap:charteredUnder` edge, marks the child as the one its owner wants paid
68
+ * into. Set by either end (the contract allows subject or object; in practice the owner). A PREFERENCE:
69
+ * it stops a payer having to guess or be asked, and permits nothing.
70
+ */
71
+ readonly PRIMARY_PAYEE: `0x${string}`;
72
+ /**
73
+ * `ap:primaryPayer` — on the same `ap:charteredUnder` edge, marks the child as the account its owner
74
+ * usually SPENDS from. It permits nothing: a payment from it still needs a mandate signed for that
75
+ * request. What it removes is a question the owner is the only one who can answer, asked every time.
76
+ */
77
+ readonly PRIMARY_PAYER: `0x${string}`;
37
78
  /** Generic member role. */
38
79
  readonly MEMBER: `0x${string}`;
39
80
  /** Board / governance member. */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAEhE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAEpD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB;IAC5B,0EAA0E;;IAE1E,gEAAgE;;IAEhE,yEAAyE;;IAEzE,iDAAiD;;IAEjD,oDAAoD;;IAEpD,4DAA4D;;CAEpD,CAAC;AAEX,+CAA+C;AAC/C,eAAO,MAAM,IAAI;IACf,2BAA2B;;IAE3B,iCAAiC;;IAEjC,4BAA4B;;IAE5B,4BAA4B;;IAE5B,2CAA2C;;IAE3C,wBAAwB;;CAEhB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAEhE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAEpD;AAED;;;;;;;;GAQG;AACH;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAEnE;AAED,qGAAqG;AACrG,eAAO,MAAM,qBAAqB;;CAExB,CAAC;AAEX,uGAAuG;AACvG,eAAO,MAAM,QAAQ;IACnB,8FAA8F;;IAE9F;kGAC8F;;CAEtF,CAAC;AAEX,eAAO,MAAM,iBAAiB;IAC5B;;;;;;OAMG;;IAEH,0EAA0E;;IAE1E,gEAAgE;;IAEhE,yEAAyE;;IAEzE,iDAAiD;;IAEjD,oDAAoD;;IAEpD,4DAA4D;;CAEpD,CAAC;AAEX,+CAA+C;AAC/C,eAAO,MAAM,IAAI;IACf;;;;OAIG;;IAEH;;;;OAIG;;IAEH,2BAA2B;;IAE3B,iCAAiC;;IAEjC,4BAA4B;;IAE5B,4BAA4B;;IAE5B,2CAA2C;;IAE3C,wBAAwB;;CAEhB,CAAC"}
package/dist/constants.js CHANGED
@@ -23,7 +23,38 @@ export function hashRole(name) {
23
23
  * Naming hierarchy lives in agent-naming via a parent-pointer, NOT
24
24
  * via a relationships-edge.
25
25
  */
26
+ /**
27
+ * Derive a relationship-type ID from an ONTOLOGY IRI — the convention for every type added after
28
+ * spec 355. The bytes32 on chain then names a term with an `rdfs:comment` that says what it means and
29
+ * what it does not, instead of a short string whose meaning lives in whoever wrote it.
30
+ *
31
+ * The older constants below hash short names (`HAS_MEMBER`) and keep doing so: their IDs are on chain
32
+ * already and re-hashing them would orphan every existing edge. New terms name their IRI.
33
+ */
34
+ export function ontologyRelationshipType(iri) {
35
+ return hashRelationshipType(iri);
36
+ }
37
+ /** The ontology IRIs that back the IRI-derived relationship types, for `check:ontology-bindings`. */
38
+ export const RELATIONSHIP_TYPE_IRI = {
39
+ CHARTERED_UNDER: 'https://agenticprimitives.dev/ns/core#charteredUnder',
40
+ };
41
+ /** Ontology IRIs backing the IRI-derived ROLES. Same convention and same reason as the types above. */
42
+ export const ROLE_IRI = {
43
+ /** `ap:primaryPayee` — the agent its owner wants paid into. A preference, never authority. */
44
+ PRIMARY_PAYEE: 'https://agenticprimitives.dev/ns/core#primaryPayee',
45
+ /** `ap:primaryPayer` — the account its owner usually pays FROM. The mirror, and never the same thing:
46
+ * the account you publish to be paid into and the one you spend from are often different. */
47
+ PRIMARY_PAYER: 'https://agenticprimitives.dev/ns/core#primaryPayer',
48
+ };
26
49
  export const RELATIONSHIP_TYPE = {
50
+ /**
51
+ * `ap:charteredUnder` — subject was created under object and BELONGS TO it: a treasury under the
52
+ * person or organization that holds it, a team under its workspace, a workspace under its
53
+ * organization. NEVER AUTHORITY (ADR-0010): the subject is a distinct custodied agent, and the
54
+ * authority to act for it is granted elsewhere and never by this edge. Recorded so a third party can
55
+ * answer "which treasury does alice hold" — which no public source could answer before (spec 355 §3).
56
+ */
57
+ CHARTERED_UNDER: hashRelationshipType(RELATIONSHIP_TYPE_IRI.CHARTERED_UNDER),
27
58
  /** Membership: subject is a member of object (org / DAO / collective). */
28
59
  HAS_MEMBER: hashRelationshipType('HAS_MEMBER'),
29
60
  /** Governance: subject has governance authority over object. */
@@ -39,6 +70,18 @@ export const RELATIONSHIP_TYPE = {
39
70
  };
40
71
  /** Well-known role labels (bytes32-hashed). */
41
72
  export const ROLE = {
73
+ /**
74
+ * `ap:primaryPayee` — on an `ap:charteredUnder` edge, marks the child as the one its owner wants paid
75
+ * into. Set by either end (the contract allows subject or object; in practice the owner). A PREFERENCE:
76
+ * it stops a payer having to guess or be asked, and permits nothing.
77
+ */
78
+ PRIMARY_PAYEE: hashRole(ROLE_IRI.PRIMARY_PAYEE),
79
+ /**
80
+ * `ap:primaryPayer` — on the same `ap:charteredUnder` edge, marks the child as the account its owner
81
+ * usually SPENDS from. It permits nothing: a payment from it still needs a mandate signed for that
82
+ * request. What it removes is a question the owner is the only one who can answer, asked every time.
83
+ */
84
+ PRIMARY_PAYER: hashRole(ROLE_IRI.PRIMARY_PAYER),
42
85
  /** Generic member role. */
43
86
  MEMBER: hashRole('MEMBER'),
44
87
  /** Board / governance member. */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAExC;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AAChC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,0EAA0E;IAC1E,UAAU,EAAE,oBAAoB,CAAC,YAAY,CAAC;IAC9C,gEAAgE;IAChE,mBAAmB,EAAE,oBAAoB,CAAC,qBAAqB,CAAC;IAChE,yEAAyE;IACzE,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC;IAC1D,iDAAiD;IACjD,WAAW,EAAE,oBAAoB,CAAC,aAAa,CAAC;IAChD,oDAAoD;IACpD,qBAAqB,EAAE,oBAAoB,CAAC,uBAAuB,CAAC;IACpE,4DAA4D;IAC5D,UAAU,EAAE,oBAAoB,CAAC,YAAY,CAAC;CACtC,CAAC;AAEX,+CAA+C;AAC/C,MAAM,C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BAAqB,CAAC,eAAe,CAAC;IAC5E,0EAA0E;IAC1E,UAAU,EAAE,oBAAoB,CAAC,YAAY,CAAC;IAC9C,gEAAgE;IAChE,mBAAmB,EAAE,oBAAoB,CAAC,qBAAqB,CAAC;IAChE,yEAAyE;IACzE,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC;IAC1D,iDAAiD;IACjD,WAAW,EAAE,oBAAoB,CAAC,aAAa,CAAC;IAChD,oDAAoD;IACpD,qBAAqB,EAAE,oBAAoB,CAAC,uBAAuB,CAAC;IACpE,4DAA4D;IAC5D,UAAU,EAAE,oBAAoB,CAAC,YAAY,CAAC;CACtC,CAAC;AAEX,+CAA+C;AAC/C,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB;;;;OAIG;IACH,aAAa,EAAE,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC/C;;;;OAIG;IACH,aAAa,EAAE,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC/C,2BAA2B;IAC3B,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC1B,iCAAiC;IACjC,YAAY,EAAE,QAAQ,CAAC,cAAc,CAAC;IACtC,4BAA4B;IAC5B,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC;IAC9B,4BAA4B;IAC5B,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC;IAChC,2CAA2C;IAC3C,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC;IAChC,wBAAwB;IACxB,gBAAgB,EAAE,QAAQ,CAAC,kBAAkB,CAAC;CACtC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { RELATIONSHIP_TYPE, ROLE, hashRelationshipType, hashRole, } from './constants.js';
1
+ export { RELATIONSHIP_TYPE, ROLE, ROLE_IRI, RELATIONSHIP_TYPE_IRI, hashRelationshipType, hashRole, } from './constants.js';
2
2
  export { computeEdgeId } from './edge-id.js';
3
3
  export { TYPE_SEMANTICS, type RelationshipTypeSemantics, } from './taxonomy.js';
4
4
  export { InvalidEdgeError, UnauthorizedActorError, UnknownRelationshipTypeError, } from './errors.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,iBAAiB,EACjB,IAAI,EACJ,oBAAoB,EACpB,QAAQ,GACT,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EACL,cAAc,EACd,KAAK,yBAAyB,GAC/B,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,4BAA4B,GAClC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,wBAAwB,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAI1E,OAAO,EACL,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,WAAW,CAAC;AAInB,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,iBAAiB,EACjB,IAAI,EAGJ,QAAQ,EACR,qBAAqB,EACrB,oBAAoB,EACpB,QAAQ,GACT,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EACL,cAAc,EACd,KAAK,yBAAyB,GAC/B,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,4BAA4B,GAClC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,wBAAwB,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAI1E,OAAO,EACL,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,WAAW,CAAC;AAInB,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -5,7 +5,10 @@
5
5
  // - CLAUDE.md — doctrine
6
6
  // - specs/216-agent-relationships.md — the contract
7
7
  // - docs/architecture/decisions/0007-agent-identity-stack-three-packages.md
8
- export { RELATIONSHIP_TYPE, ROLE, hashRelationshipType, hashRole, } from './constants.js';
8
+ export { RELATIONSHIP_TYPE, ROLE,
9
+ // The IRIs the roles are DERIVED from — a caller that reads roles by their modelled name (the decision
10
+ // plane, spec 363) needs the term, not only its hash.
11
+ ROLE_IRI, RELATIONSHIP_TYPE_IRI, hashRelationshipType, hashRole, } from './constants.js';
9
12
  export { computeEdgeId } from './edge-id.js';
10
13
  export { TYPE_SEMANTICS, } from './taxonomy.js';
11
14
  export { InvalidEdgeError, UnauthorizedActorError, UnknownRelationshipTypeError, } from './errors.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,EAAE;AACF,OAAO;AACP,0CAA0C;AAC1C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MAAM,aAAa,CAAC;AAE1E,gEAAgE;AAChE,kDAAkD;AAClD,OAAO,EACL,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,WAAW,CAAC;AAEnB,kEAAkE;AAClE,yDAAyD;AACzD,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,GAErB,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"taxonomy.d.ts","sourceRoot":"","sources":["../src/taxonomy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACzF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC;AAEnE,MAAM,WAAW,yBAAyB;IACxC,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,YAAY,EAAE,OAAO,CAAC;IACtB,mEAAmE;IACnE,UAAU,EAAE,OAAO,CAAC;IACpB,uDAAuD;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,yBAAyB,CAAC,CA2C1E,CAAC"}
1
+ {"version":3,"file":"taxonomy.d.ts","sourceRoot":"","sources":["../src/taxonomy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACzF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC;AAEnE,MAAM,WAAW,yBAAyB;IACxC,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,YAAY,EAAE,OAAO,CAAC;IACtB,mEAAmE;IACnE,UAAU,EAAE,OAAO,CAAC;IACpB,uDAAuD;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,yBAAyB,CAAC,CAqD1E,CAAC"}
package/dist/taxonomy.js CHANGED
@@ -19,6 +19,16 @@
19
19
  import { RELATIONSHIP_TYPE, ROLE, hashRelationshipType, hashRole } from './constants.js';
20
20
  export { RELATIONSHIP_TYPE, ROLE, hashRelationshipType, hashRole };
21
21
  export const TYPE_SEMANTICS = Object.freeze({
22
+ [RELATIONSHIP_TYPE.CHARTERED_UNDER]: {
23
+ name: 'CHARTERED_UNDER',
24
+ // Hierarchical in the sense of BELONGING, not of control: a treasury sits under the agent that holds
25
+ // it. Not transitive — a team under a workspace under an organization does not make the team the
26
+ // organization's, and reading it that way would invent a chain nobody asserted.
27
+ hierarchical: true,
28
+ transitive: false,
29
+ symmetric: false,
30
+ description: 'ap:charteredUnder — subject was created under object and belongs to it (a treasury under its holder, a team under its workspace). Never authority: the power to act for the subject is granted elsewhere, never by this edge.',
31
+ },
22
32
  [RELATIONSHIP_TYPE.HAS_MEMBER]: {
23
33
  name: 'HAS_MEMBER',
24
34
  hierarchical: false,
@@ -1 +1 @@
1
- {"version":3,"file":"taxonomy.js","sourceRoot":"","sources":["../src/taxonomy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,M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;QACf,WAAW,EAAE,4CAA4C;KAC1D;IACD,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,EAAE;QACzC,IAAI,EAAE,uBAAuB;QAC7B,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,gFAAgF;KAC9F;IACD,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE;QAC9B,IAAI,EAAE,YAAY;QAClB,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,uCAAuC;KACrD;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticprimitives/agent-relationships",
3
- "version": "1.0.0-alpha.22",
3
+ "version": "1.0.0-alpha.23",
4
4
  "description": "Agent relationships SDK: trust-fabric edge store (subject, object, relationshipType) with role taxonomy. Phase 1 ships edge-ID derivation + relationship-type constants + client skeleton; AgentRelationship.sol + RelationshipTypeRegistry.sol ports land in Phase 3. AgentAssertion + AgentRelationshipResolver deferred to v2.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "peerDependencies": {
38
38
  "viem": "^2.52.2",
39
- "@agenticprimitives/agent-account": "1.0.0-alpha.22",
40
- "@agenticprimitives/connect-auth": "1.0.0-alpha.22",
41
- "@agenticprimitives/types": "1.0.0-alpha.22"
39
+ "@agenticprimitives/agent-account": "1.0.0-alpha.23",
40
+ "@agenticprimitives/connect-auth": "1.0.0-alpha.23",
41
+ "@agenticprimitives/types": "1.0.0-alpha.23"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.7.0",