gbz185-sdk 0.1.0

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.
Files changed (86) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +21 -0
  3. package/README.md +192 -0
  4. package/dist/agent-maintenance.d.ts +35 -0
  5. package/dist/agent-maintenance.d.ts.map +1 -0
  6. package/dist/agent-maintenance.js +107 -0
  7. package/dist/agent-maintenance.js.map +1 -0
  8. package/dist/authorization.d.ts +32 -0
  9. package/dist/authorization.d.ts.map +1 -0
  10. package/dist/authorization.js +37 -0
  11. package/dist/authorization.js.map +1 -0
  12. package/dist/client.d.ts +39 -0
  13. package/dist/client.d.ts.map +1 -0
  14. package/dist/client.js +70 -0
  15. package/dist/client.js.map +1 -0
  16. package/dist/conformance.d.ts +11 -0
  17. package/dist/conformance.d.ts.map +1 -0
  18. package/dist/conformance.js +195 -0
  19. package/dist/conformance.js.map +1 -0
  20. package/dist/credentials.d.ts +124 -0
  21. package/dist/credentials.d.ts.map +1 -0
  22. package/dist/credentials.js +209 -0
  23. package/dist/credentials.js.map +1 -0
  24. package/dist/description-registry.d.ts +66 -0
  25. package/dist/description-registry.d.ts.map +1 -0
  26. package/dist/description-registry.js +137 -0
  27. package/dist/description-registry.js.map +1 -0
  28. package/dist/discovery.d.ts +14 -0
  29. package/dist/discovery.d.ts.map +1 -0
  30. package/dist/discovery.js +105 -0
  31. package/dist/discovery.js.map +1 -0
  32. package/dist/factory.d.ts +34 -0
  33. package/dist/factory.d.ts.map +1 -0
  34. package/dist/factory.js +98 -0
  35. package/dist/factory.js.map +1 -0
  36. package/dist/functional-architecture.d.ts +18 -0
  37. package/dist/functional-architecture.d.ts.map +1 -0
  38. package/dist/functional-architecture.js +159 -0
  39. package/dist/functional-architecture.js.map +1 -0
  40. package/dist/identity-code.d.ts +8 -0
  41. package/dist/identity-code.d.ts.map +1 -0
  42. package/dist/identity-code.js +76 -0
  43. package/dist/identity-code.js.map +1 -0
  44. package/dist/identity-registry.d.ts +68 -0
  45. package/dist/identity-registry.d.ts.map +1 -0
  46. package/dist/identity-registry.js +155 -0
  47. package/dist/identity-registry.js.map +1 -0
  48. package/dist/index.d.ts +19 -0
  49. package/dist/index.d.ts.map +1 -0
  50. package/dist/index.js +19 -0
  51. package/dist/index.js.map +1 -0
  52. package/dist/interaction.d.ts +41 -0
  53. package/dist/interaction.d.ts.map +1 -0
  54. package/dist/interaction.js +95 -0
  55. package/dist/interaction.js.map +1 -0
  56. package/dist/message-distribution.d.ts +18 -0
  57. package/dist/message-distribution.d.ts.map +1 -0
  58. package/dist/message-distribution.js +35 -0
  59. package/dist/message-distribution.js.map +1 -0
  60. package/dist/tool-access.d.ts +16 -0
  61. package/dist/tool-access.d.ts.map +1 -0
  62. package/dist/tool-access.js +30 -0
  63. package/dist/tool-access.js.map +1 -0
  64. package/dist/tools.d.ts +18 -0
  65. package/dist/tools.d.ts.map +1 -0
  66. package/dist/tools.js +77 -0
  67. package/dist/tools.js.map +1 -0
  68. package/dist/transport.d.ts +21 -0
  69. package/dist/transport.d.ts.map +1 -0
  70. package/dist/transport.js +36 -0
  71. package/dist/transport.js.map +1 -0
  72. package/dist/types.d.ts +165 -0
  73. package/dist/types.d.ts.map +1 -0
  74. package/dist/types.js +2 -0
  75. package/dist/types.js.map +1 -0
  76. package/dist/validation.d.ts +12 -0
  77. package/dist/validation.d.ts.map +1 -0
  78. package/dist/validation.js +94 -0
  79. package/dist/validation.js.map +1 -0
  80. package/docs/API_REFERENCE.md +116 -0
  81. package/docs/CONFORMANCE.md +96 -0
  82. package/docs/GITHUB_PAGES.md +54 -0
  83. package/docs/NPM_RELEASE.md +107 -0
  84. package/docs/SDK_GUIDE.md +439 -0
  85. package/examples/calendar.ts +105 -0
  86. package/package.json +60 -0
@@ -0,0 +1,137 @@
1
+ import { assertAgentDescription } from "./validation.js";
2
+ import { randomUUID } from "node:crypto";
3
+ export class InMemoryDescriptionStore {
4
+ records = new Map();
5
+ async save(record) {
6
+ this.records.set(record.description.agentId, record);
7
+ }
8
+ async get(agentId) {
9
+ return this.records.get(agentId);
10
+ }
11
+ async list() {
12
+ return [...this.records.values()];
13
+ }
14
+ }
15
+ export class AgentDescriptionRegistry {
16
+ store;
17
+ constructor(store = new InMemoryDescriptionStore()) {
18
+ this.store = store;
19
+ }
20
+ async register(description) {
21
+ assertAgentDescription(description);
22
+ const now = new Date().toISOString();
23
+ const record = {
24
+ description: {
25
+ ...description,
26
+ discoverable: description.discoverable ?? true,
27
+ available: description.available ?? true
28
+ },
29
+ status: "registered",
30
+ published: false,
31
+ createdAt: now,
32
+ updatedAt: now
33
+ };
34
+ await this.store.save(record);
35
+ return record;
36
+ }
37
+ async review(agentId, review) {
38
+ const record = await this.requireRecord(agentId);
39
+ const updated = {
40
+ ...record,
41
+ reviews: [
42
+ ...(record.reviews ?? []),
43
+ {
44
+ reviewId: randomUUID(),
45
+ createdAt: new Date().toISOString(),
46
+ ...review
47
+ }
48
+ ],
49
+ updatedAt: new Date().toISOString()
50
+ };
51
+ await this.store.save(updated);
52
+ return updated;
53
+ }
54
+ async issuePublicationCertificate(agentId, input) {
55
+ const record = await this.requireRecord(agentId);
56
+ const certificate = {
57
+ certificateId: randomUUID(),
58
+ agentId,
59
+ issuedAt: new Date().toISOString(),
60
+ ...input
61
+ };
62
+ await this.store.save({ ...record, publicationCertificate: certificate, updatedAt: new Date().toISOString() });
63
+ return certificate;
64
+ }
65
+ async publish(agentId, publication) {
66
+ const record = await this.requireRecord(agentId);
67
+ if (record.status === "revoked") {
68
+ throw new Error(`Cannot publish revoked agent description: ${agentId}`);
69
+ }
70
+ const updated = {
71
+ ...record,
72
+ status: "published",
73
+ published: true,
74
+ publication,
75
+ updatedAt: new Date().toISOString()
76
+ };
77
+ await this.store.save(updated);
78
+ return updated;
79
+ }
80
+ async change(agentId, patch) {
81
+ const record = await this.requireRecord(agentId);
82
+ if (record.status === "revoked") {
83
+ throw new Error(`Cannot change revoked agent description: ${agentId}`);
84
+ }
85
+ const description = { ...record.description, ...patch, agentId };
86
+ assertAgentDescription(description);
87
+ const updated = {
88
+ ...record,
89
+ description,
90
+ updatedAt: new Date().toISOString()
91
+ };
92
+ await this.store.save(updated);
93
+ return updated;
94
+ }
95
+ async unpublish(agentId) {
96
+ const record = await this.requireRecord(agentId);
97
+ const updated = {
98
+ ...record,
99
+ status: "unpublished",
100
+ published: false,
101
+ description: { ...record.description, available: false },
102
+ updatedAt: new Date().toISOString()
103
+ };
104
+ await this.store.save(updated);
105
+ return updated;
106
+ }
107
+ async revoke(agentId, reason) {
108
+ const record = await this.requireRecord(agentId);
109
+ const now = new Date().toISOString();
110
+ const updated = {
111
+ ...record,
112
+ status: "revoked",
113
+ published: false,
114
+ description: { ...record.description, discoverable: false, available: false },
115
+ revokedAt: now,
116
+ revokeReason: reason,
117
+ updatedAt: now
118
+ };
119
+ await this.store.save(updated);
120
+ return updated;
121
+ }
122
+ async get(agentId) {
123
+ return this.store.get(agentId);
124
+ }
125
+ async list(options = {}) {
126
+ const records = await this.store.list();
127
+ return options.publishedOnly ? records.filter((record) => record.published) : records;
128
+ }
129
+ async requireRecord(agentId) {
130
+ const record = await this.store.get(agentId);
131
+ if (!record) {
132
+ throw new Error(`Agent description not found: ${agentId}`);
133
+ }
134
+ return record;
135
+ }
136
+ }
137
+ //# sourceMappingURL=description-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description-registry.js","sourceRoot":"","sources":["../src/description-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAkDzC,MAAM,OAAO,wBAAwB;IAC3B,OAAO,GAAG,IAAI,GAAG,EAAwC,CAAC;IAElE,KAAK,CAAC,IAAI,CAAC,MAAyB;QAClC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,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T,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,KAAK;YAChB,WAAW,EAAE,EAAE,GAAG,MAAM,CAAC,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE;YAC7E,SAAS,EAAE,GAAG;YACd,YAAY,EAAE,MAAM;YACpB,SAAS,EAAE,GAAG;SACf,CAAC;QACF,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,OAA0B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,UAAuC,EAAE;QAClD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACxC,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IACxF,CAAC;IAEO,KAAK,CAAC,aAAa,CAAC,OAA0B;QACpD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,gCAAgC,OAAO,EAAE,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ import type { AgentDescription, DiscoveryQuery, DiscoveryResult } from "./types.js";
2
+ import type { AgentDescriptionRegistry } from "./description-registry.js";
3
+ export declare class PresetDiscoverySource {
4
+ private readonly descriptions;
5
+ constructor(descriptions?: AgentDescription[]);
6
+ list(): Promise<AgentDescription[]>;
7
+ }
8
+ export declare class DiscoveryService {
9
+ private readonly registry;
10
+ private readonly presetSources;
11
+ constructor(registry: AgentDescriptionRegistry, presetSources?: PresetDiscoverySource[]);
12
+ discover(query: DiscoveryQuery): Promise<DiscoveryResult[]>;
13
+ }
14
+ //# sourceMappingURL=discovery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE1E,qBAAa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,GAAE,gBAAgB,EAAO;IAE5D,IAAI,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAG1C;AAED,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADb,QAAQ,EAAE,wBAAwB,EAClC,aAAa,GAAE,qBAAqB,EAAO;IAGxD,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;CAelE"}
@@ -0,0 +1,105 @@
1
+ export class PresetDiscoverySource {
2
+ descriptions;
3
+ constructor(descriptions = []) {
4
+ this.descriptions = descriptions;
5
+ }
6
+ async list() {
7
+ return this.descriptions;
8
+ }
9
+ }
10
+ export class DiscoveryService {
11
+ registry;
12
+ presetSources;
13
+ constructor(registry, presetSources = []) {
14
+ this.registry = registry;
15
+ this.presetSources = presetSources;
16
+ }
17
+ async discover(query) {
18
+ const published = (await this.registry.list({ publishedOnly: true })).map((record) => record.description);
19
+ const presets = (await Promise.all(this.presetSources.map((source) => source.list()))).flat();
20
+ const byId = new Map();
21
+ for (const description of [...published, ...presets]) {
22
+ byId.set(description.agentId, description);
23
+ }
24
+ const results = [...byId.values()]
25
+ .map((description) => scoreDescription(description, query))
26
+ .filter((result) => result !== undefined)
27
+ .sort((left, right) => right.score - left.score || left.description.name.localeCompare(right.description.name));
28
+ return typeof query.limit === "number" ? results.slice(0, query.limit) : results;
29
+ }
30
+ }
31
+ function scoreDescription(description, query) {
32
+ if (!query.includeUndiscoverable && description.discoverable === false) {
33
+ return undefined;
34
+ }
35
+ if (query.requireAvailable && description.available === false) {
36
+ return undefined;
37
+ }
38
+ if (query.agentId && description.agentId !== query.agentId) {
39
+ return undefined;
40
+ }
41
+ let score = 0;
42
+ const matchedBy = [];
43
+ const haystack = [
44
+ description.name,
45
+ description.alias ?? "",
46
+ description.description,
47
+ ...description.skills.flatMap((skill) => [skill.skillName, skill.skillDescription, ...skill.tags])
48
+ ].join(" ").toLowerCase();
49
+ if (query.name) {
50
+ const name = query.name.toLowerCase();
51
+ if (!description.name.toLowerCase().includes(name) && !description.alias?.toLowerCase().includes(name)) {
52
+ return undefined;
53
+ }
54
+ score += 20;
55
+ matchedBy.push("name");
56
+ }
57
+ if (query.text) {
58
+ const terms = query.text.toLowerCase().split(/\s+/).filter(Boolean);
59
+ const matches = terms.filter((term) => haystack.includes(term));
60
+ if (matches.length === 0) {
61
+ return undefined;
62
+ }
63
+ score += matches.length * 10;
64
+ matchedBy.push("text");
65
+ }
66
+ if (query.requiredSkills?.length) {
67
+ const skillIds = new Set(description.skills.map((skill) => skill.skillId));
68
+ const skillNames = new Set(description.skills.map((skill) => skill.skillName.toLowerCase()));
69
+ if (!query.requiredSkills.every((skill) => skillIds.has(skill) || skillNames.has(skill.toLowerCase()))) {
70
+ return undefined;
71
+ }
72
+ score += query.requiredSkills.length * 15;
73
+ matchedBy.push("requiredSkills");
74
+ }
75
+ if (query.tags?.length) {
76
+ const tags = new Set(description.skills.flatMap((skill) => skill.tags.map((tag) => tag.toLowerCase())));
77
+ if (!query.tags.every((tag) => tags.has(tag.toLowerCase()))) {
78
+ return undefined;
79
+ }
80
+ score += query.tags.length * 8;
81
+ matchedBy.push("tags");
82
+ }
83
+ if (query.inputTypes?.length) {
84
+ const supported = new Set(description.defaultInputTypes.map((type) => type.toLowerCase()));
85
+ if (!query.inputTypes.every((type) => supported.has(type.toLowerCase()))) {
86
+ return undefined;
87
+ }
88
+ score += query.inputTypes.length * 5;
89
+ matchedBy.push("inputTypes");
90
+ }
91
+ if (query.outputTypes?.length) {
92
+ const supported = new Set(description.defaultOutputTypes.map((type) => type.toLowerCase()));
93
+ if (!query.outputTypes.every((type) => supported.has(type.toLowerCase()))) {
94
+ return undefined;
95
+ }
96
+ score += query.outputTypes.length * 5;
97
+ matchedBy.push("outputTypes");
98
+ }
99
+ if (matchedBy.length === 0) {
100
+ score = 1;
101
+ matchedBy.push("all");
102
+ }
103
+ return { description, score, matchedBy };
104
+ }
105
+ //# sourceMappingURL=discovery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discovery.js","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,qBAAqB;IACH;IAA7B,YAA6B,eAAmC,EAAE;QAArC,iBAAY,GAAZ,YAAY,CAAyB;IAAG,CAAC;IAEtE,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,OAAO,gBAAgB;IAER;IACA;IAFnB,YACmB,QAAkC,EAClC,gBAAyC,EAAE;QAD3C,aAAQ,GAAR,QAAQ,CAA0B;QAClC,kBAAa,GAAb,aAAa,CAA8B;IAC3D,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,KAAqB;QAClC,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC1G,MAAM,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAA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SAAS,CAAC;QACnB,CAAC;QACD,KAAK,IAAI,KAAK,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;QACtC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,KAAK,GAAG,CAAC,CAAC;QACV,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AAC3C,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { AgentDescriptionMaintenance, AgentIdentityMaintenance } from "./agent-maintenance.js";
2
+ import { InterconnectionAuthorizationRuntime } from "./authorization.js";
3
+ import { AgentInterconnectClient } from "./client.js";
4
+ import { DevelopmentCredentialIssuer, DevelopmentCredentialVerifier, InMemoryCredentialRepository, InMemoryCredentialStatusStore } from "./credentials.js";
5
+ import { AgentDescriptionRegistry } from "./description-registry.js";
6
+ import { DiscoveryService } from "./discovery.js";
7
+ import { IdentityRegistryRuntime } from "./identity-registry.js";
8
+ import { InteractionRuntime } from "./interaction.js";
9
+ import { MessageDistributionRuntime } from "./message-distribution.js";
10
+ import { ToolAccessRuntime } from "./tool-access.js";
11
+ import { InProcessJsonTransport } from "./transport.js";
12
+ import { ToolRuntime } from "./tools.js";
13
+ export interface AgentInterconnectRuntime {
14
+ credentials: {
15
+ repository: InMemoryCredentialRepository;
16
+ statusStore: InMemoryCredentialStatusStore;
17
+ issuer: DevelopmentCredentialIssuer;
18
+ verifier: DevelopmentCredentialVerifier;
19
+ };
20
+ agentIdentityMaintenance: AgentIdentityMaintenance;
21
+ agentDescriptionMaintenance: AgentDescriptionMaintenance;
22
+ interconnectionAuthorization: InterconnectionAuthorizationRuntime;
23
+ identityRegistry: IdentityRegistryRuntime;
24
+ descriptionRegistry: AgentDescriptionRegistry;
25
+ discoveryService: DiscoveryService;
26
+ interactionRuntime: InteractionRuntime;
27
+ messageDistribution: MessageDistributionRuntime;
28
+ toolRuntime: ToolRuntime;
29
+ toolAccess: ToolAccessRuntime;
30
+ transport: InProcessJsonTransport;
31
+ client: AgentInterconnectClient;
32
+ }
33
+ export declare function createAgentInterconnectRuntime(): AgentInterconnectRuntime;
34
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAC3J,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE;QACX,UAAU,EAAE,4BAA4B,CAAC;QACzC,WAAW,EAAE,6BAA6B,CAAC;QAC3C,MAAM,EAAE,2BAA2B,CAAC;QACpC,QAAQ,EAAE,6BAA6B,CAAC;KACzC,CAAC;IACF,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,2BAA2B,EAAE,2BAA2B,CAAC;IACzD,4BAA4B,EAAE,mCAAmC,CAAC;IAClE,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,mBAAmB,EAAE,wBAAwB,CAAC;IAC9C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,mBAAmB,EAAE,0BAA0B,CAAC;IAChD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,SAAS,EAAE,sBAAsB,CAAC;IAClC,MAAM,EAAE,uBAAuB,CAAC;CACjC;AAED,wBAAgB,8BAA8B,IAAI,wBAAwB,CAsFzE"}
@@ -0,0 +1,98 @@
1
+ import { AgentDescriptionMaintenance, AgentIdentityMaintenance } from "./agent-maintenance.js";
2
+ import { InterconnectionAuthorizationRuntime } from "./authorization.js";
3
+ import { AgentInterconnectClient } from "./client.js";
4
+ import { DevelopmentCredentialIssuer, DevelopmentCredentialVerifier, InMemoryCredentialRepository, InMemoryCredentialStatusStore } from "./credentials.js";
5
+ import { AgentDescriptionRegistry } from "./description-registry.js";
6
+ import { DiscoveryService } from "./discovery.js";
7
+ import { IdentityRegistryRuntime } from "./identity-registry.js";
8
+ import { InteractionRuntime } from "./interaction.js";
9
+ import { MessageDistributionRuntime } from "./message-distribution.js";
10
+ import { ToolAccessRuntime } from "./tool-access.js";
11
+ import { InProcessJsonTransport } from "./transport.js";
12
+ import { ToolRuntime } from "./tools.js";
13
+ export function createAgentInterconnectRuntime() {
14
+ const credentialRepository = new InMemoryCredentialRepository();
15
+ const credentialStatusStore = new InMemoryCredentialStatusStore();
16
+ const credentialIssuer = new DevelopmentCredentialIssuer(credentialRepository, credentialStatusStore);
17
+ const credentialVerifier = new DevelopmentCredentialVerifier(credentialStatusStore);
18
+ const identityRegistry = new IdentityRegistryRuntime(undefined, credentialIssuer);
19
+ const descriptionRegistry = new AgentDescriptionRegistry();
20
+ const discoveryService = new DiscoveryService(descriptionRegistry);
21
+ const interactionRuntime = new InteractionRuntime();
22
+ const messageDistribution = new MessageDistributionRuntime(interactionRuntime);
23
+ const toolRuntime = new ToolRuntime();
24
+ const toolAccess = new ToolAccessRuntime(toolRuntime);
25
+ const agentIdentityMaintenance = new AgentIdentityMaintenance(identityRegistry, credentialIssuer);
26
+ const agentDescriptionMaintenance = new AgentDescriptionMaintenance(descriptionRegistry);
27
+ const interconnectionAuthorization = new InterconnectionAuthorizationRuntime(credentialVerifier);
28
+ const transport = new InProcessJsonTransport();
29
+ transport.register("identity.register", (payload) => identityRegistry.register(payload));
30
+ transport.register("identity.get", (payload) => identityRegistry.get(payload.agentId));
31
+ transport.register("identity.issueCredential", (payload) => {
32
+ const typed = payload;
33
+ return identityRegistry.issueCredential(typed.agentId, typed.input);
34
+ });
35
+ transport.register("identity.lock", (payload) => {
36
+ const typed = payload;
37
+ return identityRegistry.lock(typed.agentId, typed.reason);
38
+ });
39
+ transport.register("identity.unlock", (payload) => {
40
+ const typed = payload;
41
+ return identityRegistry.unlock(typed.agentId, typed.reason);
42
+ });
43
+ transport.register("identity.revoke", (payload) => {
44
+ const typed = payload;
45
+ return identityRegistry.revoke(typed.agentId, typed.reason);
46
+ });
47
+ transport.register("description.register", (payload) => descriptionRegistry.register(payload));
48
+ transport.register("description.review", (payload) => {
49
+ const typed = payload;
50
+ return descriptionRegistry.review(typed.agentId, typed.review);
51
+ });
52
+ transport.register("description.issuePublicationCertificate", (payload) => {
53
+ const typed = payload;
54
+ return descriptionRegistry.issuePublicationCertificate(typed.agentId, typed.input);
55
+ });
56
+ transport.register("description.publish", (payload) => {
57
+ const typed = payload;
58
+ return descriptionRegistry.publish(typed.agentId, typed.publication);
59
+ });
60
+ transport.register("description.unpublish", (payload) => descriptionRegistry.unpublish(payload.agentId));
61
+ transport.register("description.revoke", (payload) => {
62
+ const typed = payload;
63
+ return descriptionRegistry.revoke(typed.agentId, typed.reason);
64
+ });
65
+ transport.register("discovery.discover", (payload) => discoveryService.discover(payload));
66
+ transport.register("interaction.createSession", (payload) => interactionRuntime.createSession(payload));
67
+ transport.register("interaction.submitTask", (payload) => interactionRuntime.submitTask(payload));
68
+ transport.register("interaction.sendMessage", (payload) => interactionRuntime.sendMessage(payload));
69
+ transport.register("interaction.distributeMessage", (payload) => {
70
+ const typed = payload;
71
+ return messageDistribution.distribute(typed.input, typed.recipients);
72
+ });
73
+ transport.register("tool.list", (payload) => toolRuntime.listTools(payload.toolRequestList));
74
+ transport.register("tool.updates", () => toolRuntime.getUpdates());
75
+ transport.register("tool.invoke", (payload) => toolRuntime.invoke(payload));
76
+ const client = new AgentInterconnectClient(transport);
77
+ return {
78
+ credentials: {
79
+ repository: credentialRepository,
80
+ statusStore: credentialStatusStore,
81
+ issuer: credentialIssuer,
82
+ verifier: credentialVerifier
83
+ },
84
+ agentIdentityMaintenance,
85
+ agentDescriptionMaintenance,
86
+ interconnectionAuthorization,
87
+ identityRegistry,
88
+ descriptionRegistry,
89
+ discoveryService,
90
+ interactionRuntime,
91
+ messageDistribution,
92
+ toolRuntime,
93
+ toolAccess,
94
+ transport,
95
+ client
96
+ };
97
+ }
98
+ //# sourceMappingURL=factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAC3J,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,E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B,mBAAmB;QACnB,gBAAgB;QAChB,kBAAkB;QAClB,mBAAmB;QACnB,WAAW;QACX,UAAU;QACV,SAAS;QACT,MAAM;KACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ export type Gbz185Domain = "agent" | "management_service" | "interconnection_service" | "resource_access";
2
+ export interface Gbz185FunctionDescriptor {
3
+ id: string;
4
+ domain: Gbz185Domain;
5
+ name: string;
6
+ sdkSurface: string;
7
+ standardPart: string;
8
+ }
9
+ export interface Gbz185FraiInterfaceDescriptor {
10
+ id: `FRAI-${string}`;
11
+ standardPart: string;
12
+ functionA: string;
13
+ functionB: string;
14
+ sdkSurface: string;
15
+ }
16
+ export declare const GBZ185_FUNCTIONS: Gbz185FunctionDescriptor[];
17
+ export declare const GBZ185_FRAI_INTERFACES: Gbz185FraiInterfaceDescriptor[];
18
+ //# sourceMappingURL=functional-architecture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functional-architecture.d.ts","sourceRoot":"","sources":["../src/functional-architecture.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,oBAAoB,GAAG,yBAAyB,GAAG,iBAAiB,CAAC;AAE1G,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,QAAQ,MAAM,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,wBAAwB,EAqFtD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,6BAA6B,EAuEjE,CAAC"}
@@ -0,0 +1,159 @@
1
+ export const GBZ185_FUNCTIONS = [
2
+ {
3
+ id: "agent.identityMaintenance",
4
+ domain: "agent",
5
+ name: "Agent identity maintenance",
6
+ sdkSurface: "AgentIdentityMaintenance",
7
+ standardPart: "GB/Z 185.1, GB/Z 185.2, GB/Z 185.3"
8
+ },
9
+ {
10
+ id: "agent.descriptionMaintenance",
11
+ domain: "agent",
12
+ name: "Agent description maintenance",
13
+ sdkSurface: "AgentDescriptionMaintenance",
14
+ standardPart: "GB/Z 185.1, GB/Z 185.4"
15
+ },
16
+ {
17
+ id: "agent.interconnectionAuthorization",
18
+ domain: "agent",
19
+ name: "Agent interconnection authorization",
20
+ sdkSurface: "InterconnectionAuthorizationRuntime",
21
+ standardPart: "GB/Z 185.1, GB/Z 185.3"
22
+ },
23
+ {
24
+ id: "agent.interaction",
25
+ domain: "agent",
26
+ name: "Agent interaction",
27
+ sdkSurface: "InteractionRuntime",
28
+ standardPart: "GB/Z 185.6"
29
+ },
30
+ {
31
+ id: "agent.toolAccess",
32
+ domain: "agent",
33
+ name: "Tool access",
34
+ sdkSurface: "ToolAccessRuntime",
35
+ standardPart: "GB/Z 185.7"
36
+ },
37
+ {
38
+ id: "management.identityManagement",
39
+ domain: "management_service",
40
+ name: "Agent identity management",
41
+ sdkSurface: "IdentityRegistryRuntime",
42
+ standardPart: "GB/Z 185.3"
43
+ },
44
+ {
45
+ id: "management.credentialManagement",
46
+ domain: "management_service",
47
+ name: "Agent credential management",
48
+ sdkSurface: "CredentialIssuer",
49
+ standardPart: "GB/Z 185.3"
50
+ },
51
+ {
52
+ id: "management.identityAuthentication",
53
+ domain: "management_service",
54
+ name: "Agent identity authentication",
55
+ sdkSurface: "CredentialVerifier",
56
+ standardPart: "GB/Z 185.3"
57
+ },
58
+ {
59
+ id: "interconnection.descriptionManagement",
60
+ domain: "interconnection_service",
61
+ name: "Agent description management",
62
+ sdkSurface: "AgentDescriptionRegistry",
63
+ standardPart: "GB/Z 185.4"
64
+ },
65
+ {
66
+ id: "interconnection.discovery",
67
+ domain: "interconnection_service",
68
+ name: "Agent discovery",
69
+ sdkSurface: "DiscoveryService",
70
+ standardPart: "GB/Z 185.5"
71
+ },
72
+ {
73
+ id: "interconnection.messageDistribution",
74
+ domain: "interconnection_service",
75
+ name: "Message distribution",
76
+ sdkSurface: "MessageDistributionRuntime",
77
+ standardPart: "GB/Z 185.6"
78
+ },
79
+ {
80
+ id: "resource.toolService",
81
+ domain: "resource_access",
82
+ name: "Tool service",
83
+ sdkSurface: "ToolRuntime",
84
+ standardPart: "GB/Z 185.7"
85
+ }
86
+ ];
87
+ export const GBZ185_FRAI_INTERFACES = [
88
+ {
89
+ id: "FRAI-01",
90
+ standardPart: "GB/Z 185.3",
91
+ functionA: "Agent identity maintenance",
92
+ functionB: "Agent identity management",
93
+ sdkSurface: "AgentIdentityMaintenance + IdentityRegistryRuntime"
94
+ },
95
+ {
96
+ id: "FRAI-02",
97
+ standardPart: "GB/Z 185.3",
98
+ functionA: "Agent identity maintenance",
99
+ functionB: "Agent credential management",
100
+ sdkSurface: "AgentIdentityMaintenance + CredentialIssuer"
101
+ },
102
+ {
103
+ id: "FRAI-03",
104
+ standardPart: "GB/Z 185.3",
105
+ functionA: "Agent interconnection authorization",
106
+ functionB: "Agent identity authentication",
107
+ sdkSurface: "InterconnectionAuthorizationRuntime + CredentialVerifier"
108
+ },
109
+ {
110
+ id: "FRAI-04",
111
+ standardPart: "GB/Z 185.3",
112
+ functionA: "Agent identity management",
113
+ functionB: "Agent credential management",
114
+ sdkSurface: "IdentityRegistryRuntime.issueCredential"
115
+ },
116
+ {
117
+ id: "FRAI-05",
118
+ standardPart: "GB/Z 185.3",
119
+ functionA: "Agent credential management",
120
+ functionB: "Agent identity authentication",
121
+ sdkSurface: "CredentialStatusStore + CredentialVerifier"
122
+ },
123
+ {
124
+ id: "FRAI-06",
125
+ standardPart: "GB/Z 185.4",
126
+ functionA: "Agent description maintenance",
127
+ functionB: "Agent description management",
128
+ sdkSurface: "AgentDescriptionMaintenance + AgentDescriptionRegistry"
129
+ },
130
+ {
131
+ id: "FRAI-07",
132
+ standardPart: "GB/Z 185.5",
133
+ functionA: "Agent description management",
134
+ functionB: "Agent discovery",
135
+ sdkSurface: "AgentDescriptionRegistry + DiscoveryService"
136
+ },
137
+ {
138
+ id: "FRAI-08",
139
+ standardPart: "GB/Z 185.6",
140
+ functionA: "Agent interaction",
141
+ functionB: "Agent interaction",
142
+ sdkSurface: "InteractionRuntime"
143
+ },
144
+ {
145
+ id: "FRAI-09",
146
+ standardPart: "GB/Z 185.6",
147
+ functionA: "Agent interaction",
148
+ functionB: "Message distribution",
149
+ sdkSurface: "InteractionRuntime + MessageDistributionRuntime"
150
+ },
151
+ {
152
+ id: "FRAI-10",
153
+ standardPart: "GB/Z 185.7",
154
+ functionA: "Tool access",
155
+ functionB: "Tool service",
156
+ sdkSurface: "ToolAccessRuntime + ToolRuntime"
157
+ }
158
+ ];
159
+ //# sourceMappingURL=functional-architecture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functional-architecture.js","sourceRoot":"","sources":["../src/functional-architecture.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,gBAAgB,GAA+B;IAC1D;QACE,EAAE,EAAE,2BAA2B;QAC/B,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE,0BAA0B;QACtC,YAAY,EAAE,oCAAoC;KACnD;IACD;QACE,EAAE,EAAE,8BAA8B;QAClC,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,+BAA+B;QACrC,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,wBAAwB;KACvC;IACD;QACE,EAAE,EAAE,oCAAoC;QACxC,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,qCAAqC;QAC3C,UAAU,EAAE,qCAAqC;QACjD,YAAY,EAAE,wBAAwB;KACvC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,MAAM,EAAE,OAAO;QACf,IA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sB;QACjC,UAAU,EAAE,iDAAiD;KAC9D;IACD;QACE,EAAE,EAAE,SAAS;QACb,YAAY,EAAE,YAAY;QAC1B,SAAS,EAAE,aAAa;QACxB,SAAS,EAAE,cAAc;QACzB,UAAU,EAAE,iCAAiC;KAC9C;CACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { AgentIdentityCode, AgentIdentityCodeParts } from "./types.js";
2
+ export declare const AGENT_IDENTITY_CODE_OID: "1.2.156.3088";
3
+ export declare const CURRENT_IDENTITY_CODE_VERSION: "1";
4
+ export declare function formatIdentityCode(parts: Omit<AgentIdentityCodeParts, "oid" | "version"> & Partial<Pick<AgentIdentityCodeParts, "oid" | "version">>): AgentIdentityCode;
5
+ export declare function parseIdentityCode(code: AgentIdentityCode): AgentIdentityCodeParts;
6
+ export declare function validateIdentityCode(code: AgentIdentityCode): boolean;
7
+ export declare function validateIdentityCodeParts(parts: AgentIdentityCodeParts): void;
8
+ //# sourceMappingURL=identity-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-code.d.ts","sourceRoot":"","sources":["../src/identity-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE5E,eAAO,MAAM,uBAAuB,EAAG,cAAuB,CAAC;AAC/D,eAAO,MAAM,6BAA6B,EAAG,GAAY,CAAC;AAU1D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,sBAAsB,EAAE,KAAK,GAAG,SAAS,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,KAAK,GAAG,SAAS,CAAC,CAAC,GAAG,iBAAiB,CAmBvK;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,GAAG,sBAAsB,CA6BjF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAOrE;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,sBAAsB,GAAG,IAAI,CAW7E"}