@agenticprimitives/agent-relationships 1.0.0-alpha.5 → 1.0.0-alpha.50
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 +34 -51
- package/dist/abis.d.ts +169 -0
- package/dist/abis.d.ts.map +1 -1
- package/dist/abis.js +33 -0
- package/dist/abis.js.map +1 -1
- package/dist/calls.d.ts +8 -3
- package/dist/calls.d.ts.map +1 -1
- package/dist/calls.js +8 -3
- package/dist/calls.js.map +1 -1
- package/dist/client.d.ts +7 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -10
- package/dist/client.js.map +1 -1
- package/dist/constants.d.ts +41 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +43 -0
- package/dist/constants.js.map +1 -1
- package/dist/credential.d.ts +110 -0
- package/dist/credential.d.ts.map +1 -0
- package/dist/credential.js +154 -0
- package/dist/credential.js.map +1 -0
- package/dist/edge-id.d.ts +1 -1
- package/dist/edge-id.d.ts.map +1 -1
- package/dist/edge-id.js +7 -2
- package/dist/edge-id.js.map +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/taxonomy.d.ts +1 -1
- package/dist/taxonomy.d.ts.map +1 -1
- package/dist/taxonomy.js +11 -1
- package/dist/taxonomy.js.map +1 -1
- package/package.json +20 -10
package/dist/taxonomy.js
CHANGED
|
@@ -16,9 +16,19 @@
|
|
|
16
16
|
* on-chain contract (Phase 3) enforces the two-side-confirmation
|
|
17
17
|
* rule independently for non-symmetric types.
|
|
18
18
|
*/
|
|
19
|
-
import { RELATIONSHIP_TYPE, ROLE, hashRelationshipType, hashRole } from './constants';
|
|
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,
|
package/dist/taxonomy.js.map
CHANGED
|
@@ -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,MAAM,
|
|
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,MAAM,gBAAgB,CAAC;AAGzF,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC;AAenE,MAAM,CAAC,MAAM,cAAc,GAAqD,MAAM,CAAC,MAAM,CAAC;IAC5F,CAAC,iBAAiB,CAAC,eAAe,CAAC,EAAE;QACnC,IAAI,EAAE,iBAAiB;QACvB,qGAAqG;QACrG,iGAAiG;QACjG,gFAAgF;QAChF,YAAY,E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|
"name": "@agenticprimitives/agent-relationships",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.50",
|
|
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
|
+
"homepage": "https://agenticprimitives.dev",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/agentictrustlabs/agenticprimitives/issues"
|
|
8
|
+
},
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "Agentic Trust Labs",
|
|
11
|
+
"url": "https://agenticprimitives.dev"
|
|
12
|
+
},
|
|
5
13
|
"license": "MIT",
|
|
6
14
|
"repository": {
|
|
7
15
|
"type": "git",
|
|
8
16
|
"url": "git+https://github.com/agentictrustlabs/agenticprimitives.git",
|
|
9
17
|
"directory": "packages/agent-relationships"
|
|
10
18
|
},
|
|
11
|
-
"homepage": "https://github.com/agentictrustlabs/agenticprimitives/tree/master/packages/agent-relationships",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/agentictrustlabs/agenticprimitives/issues"
|
|
14
|
-
},
|
|
15
19
|
"type": "module",
|
|
16
20
|
"main": "./dist/index.js",
|
|
17
21
|
"types": "./dist/index.d.ts",
|
|
@@ -36,13 +40,13 @@
|
|
|
36
40
|
},
|
|
37
41
|
"peerDependencies": {
|
|
38
42
|
"viem": "^2.52.2",
|
|
39
|
-
"@agenticprimitives/agent-account": "1.0.0-alpha.
|
|
40
|
-
"@agenticprimitives/connect-auth": "1.0.0-alpha.
|
|
41
|
-
"@agenticprimitives/types": "1.0.0-alpha.
|
|
43
|
+
"@agenticprimitives/agent-account": "^1.0.0-alpha.50",
|
|
44
|
+
"@agenticprimitives/connect-auth": "^1.0.0-alpha.50",
|
|
45
|
+
"@agenticprimitives/types": "^1.0.0-alpha.50"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
44
48
|
"@types/node": "^22.7.0",
|
|
45
|
-
"vitest": "^4.1.
|
|
49
|
+
"vitest": "^4.1.11"
|
|
46
50
|
},
|
|
47
51
|
"keywords": [
|
|
48
52
|
"agent",
|
|
@@ -50,12 +54,18 @@
|
|
|
50
54
|
"trust-fabric",
|
|
51
55
|
"edges",
|
|
52
56
|
"roles",
|
|
53
|
-
"agentic"
|
|
57
|
+
"agentic",
|
|
58
|
+
"agentic-primitives",
|
|
59
|
+
"agenticprimitives",
|
|
60
|
+
"ai-agents",
|
|
61
|
+
"agent-authority",
|
|
62
|
+
"agentic-trust"
|
|
54
63
|
],
|
|
55
64
|
"scripts": {
|
|
56
65
|
"build": "tsc -p tsconfig.build.json",
|
|
57
66
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
58
67
|
"test": "vitest run",
|
|
68
|
+
"test:unit": "vitest run",
|
|
59
69
|
"test:watch": "vitest",
|
|
60
70
|
"clean": "rm -rf dist"
|
|
61
71
|
}
|