aether-agent-sdk 1.0.0 → 1.0.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.
Files changed (77) hide show
  1. package/dist/src/agents/AgentRegistry.d.ts +48 -0
  2. package/dist/src/agents/AgentRegistry.d.ts.map +1 -0
  3. package/dist/src/agents/AgentRegistry.js +114 -0
  4. package/dist/src/agents/AgentRegistry.js.map +1 -0
  5. package/dist/src/agents/AnalyzerAgent.d.ts +18 -0
  6. package/dist/src/agents/AnalyzerAgent.d.ts.map +1 -0
  7. package/dist/src/agents/AnalyzerAgent.js +129 -0
  8. package/dist/src/agents/AnalyzerAgent.js.map +1 -0
  9. package/dist/src/agents/IntelligentVerifierAgent.d.ts +46 -0
  10. package/dist/src/agents/IntelligentVerifierAgent.d.ts.map +1 -0
  11. package/dist/src/agents/IntelligentVerifierAgent.js +262 -0
  12. package/dist/src/agents/IntelligentVerifierAgent.js.map +1 -0
  13. package/dist/src/agents/SettlementAgent.d.ts +14 -0
  14. package/dist/src/agents/SettlementAgent.d.ts.map +1 -0
  15. package/dist/src/agents/SettlementAgent.js +146 -0
  16. package/dist/src/agents/SettlementAgent.js.map +1 -0
  17. package/dist/src/agents/SettlementAgentEnhanced.d.ts +33 -0
  18. package/dist/src/agents/SettlementAgentEnhanced.d.ts.map +1 -0
  19. package/dist/src/agents/SettlementAgentEnhanced.js +219 -0
  20. package/dist/src/agents/SettlementAgentEnhanced.js.map +1 -0
  21. package/dist/src/agents/VerifierAgent.d.ts +30 -0
  22. package/dist/src/agents/VerifierAgent.d.ts.map +1 -0
  23. package/dist/src/agents/VerifierAgent.js +181 -0
  24. package/dist/src/agents/VerifierAgent.js.map +1 -0
  25. package/dist/src/agents/index.d.ts +7 -0
  26. package/dist/src/agents/index.d.ts.map +1 -0
  27. package/dist/src/agents/index.js +11 -0
  28. package/dist/src/agents/index.js.map +1 -0
  29. package/dist/src/facilitator/X402FacilitatorServer.d.ts +17 -0
  30. package/dist/src/facilitator/X402FacilitatorServer.d.ts.map +1 -0
  31. package/dist/src/facilitator/X402FacilitatorServer.js +172 -0
  32. package/dist/src/facilitator/X402FacilitatorServer.js.map +1 -0
  33. package/dist/src/facilitator/index.d.ts +7 -0
  34. package/dist/src/facilitator/index.d.ts.map +1 -0
  35. package/dist/src/facilitator/index.js +11 -0
  36. package/dist/src/facilitator/index.js.map +1 -0
  37. package/dist/src/index.d.ts +19 -0
  38. package/dist/src/index.d.ts.map +1 -0
  39. package/dist/src/index.js +39 -0
  40. package/dist/src/index.js.map +1 -0
  41. package/dist/src/modes/HumanInTheLoopMode.d.ts +92 -0
  42. package/dist/src/modes/HumanInTheLoopMode.d.ts.map +1 -0
  43. package/dist/src/modes/HumanInTheLoopMode.js +234 -0
  44. package/dist/src/modes/HumanInTheLoopMode.js.map +1 -0
  45. package/dist/src/modes/index.d.ts +8 -0
  46. package/dist/src/modes/index.d.ts.map +1 -0
  47. package/dist/src/modes/index.js +11 -0
  48. package/dist/src/modes/index.js.map +1 -0
  49. package/dist/src/protocols/A2ANegotiation.d.ts +122 -0
  50. package/dist/src/protocols/A2ANegotiation.d.ts.map +1 -0
  51. package/dist/src/protocols/A2ANegotiation.js +230 -0
  52. package/dist/src/protocols/A2ANegotiation.js.map +1 -0
  53. package/dist/src/protocols/A2AProtocol.d.ts +49 -0
  54. package/dist/src/protocols/A2AProtocol.d.ts.map +1 -0
  55. package/dist/src/protocols/A2AProtocol.js +126 -0
  56. package/dist/src/protocols/A2AProtocol.js.map +1 -0
  57. package/dist/src/protocols/AP2Protocol.d.ts +57 -0
  58. package/dist/src/protocols/AP2Protocol.d.ts.map +1 -0
  59. package/dist/src/protocols/AP2Protocol.js +121 -0
  60. package/dist/src/protocols/AP2Protocol.js.map +1 -0
  61. package/dist/src/protocols/index.d.ts +10 -0
  62. package/dist/src/protocols/index.d.ts.map +1 -0
  63. package/dist/src/protocols/index.js +15 -0
  64. package/dist/src/protocols/index.js.map +1 -0
  65. package/dist/src/services/index.d.ts +8 -0
  66. package/dist/src/services/index.d.ts.map +1 -0
  67. package/dist/src/services/index.js +13 -0
  68. package/dist/src/services/index.js.map +1 -0
  69. package/dist/src/utils/env.d.ts +15 -0
  70. package/dist/src/utils/env.d.ts.map +1 -0
  71. package/dist/src/utils/env.js +39 -0
  72. package/dist/src/utils/env.js.map +1 -0
  73. package/dist/src/utils/index.d.ts +7 -0
  74. package/dist/src/utils/index.d.ts.map +1 -0
  75. package/dist/src/utils/index.js +12 -0
  76. package/dist/src/utils/index.js.map +1 -0
  77. package/package.json +1 -1
@@ -0,0 +1,49 @@
1
+ /**
2
+ * A2A (Agent-to-Agent) Protocol Implementation
3
+ * Based on JSON-RPC 2.0 for agent communication
4
+ */
5
+ export interface A2AMessage {
6
+ jsonrpc: '2.0';
7
+ id: string | number;
8
+ method: string;
9
+ params?: any;
10
+ }
11
+ export interface A2AResponse {
12
+ jsonrpc: '2.0';
13
+ id: string | number;
14
+ result?: any;
15
+ error?: {
16
+ code: number;
17
+ message: string;
18
+ data?: any;
19
+ };
20
+ }
21
+ export interface Task {
22
+ id: string;
23
+ status: 'pending' | 'processing' | 'completed' | 'failed';
24
+ input: any;
25
+ output?: any;
26
+ error?: string;
27
+ createdAt: number;
28
+ updatedAt: number;
29
+ }
30
+ export declare class A2AProtocol {
31
+ private baseUrl;
32
+ private agentId;
33
+ constructor(baseUrl: string, agentId: string);
34
+ sendTask(input: any): Promise<Task>;
35
+ getTask(taskId: string): Promise<Task>;
36
+ cancelTask(taskId: string): Promise<boolean>;
37
+ private makeRequest;
38
+ }
39
+ export declare class A2AServer {
40
+ private handlers;
41
+ private tasks;
42
+ constructor();
43
+ registerHandler(method: string, handler: (params: any) => Promise<any>): void;
44
+ handleRequest(message: A2AMessage): Promise<A2AResponse>;
45
+ createTask(input: any): Task;
46
+ updateTask(taskId: string, updates: Partial<Task>): Task | null;
47
+ getTask(taskId: string): Task | null;
48
+ }
49
+ //# sourceMappingURL=A2AProtocol.d.ts.map
@@ -0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IAC5D,OAAO,CAAC,KAAK,CAAmB;;IAOhC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;IAIhE,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;IAkC9D,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAa5B,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI;IAQ/D,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;CAGrC"}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ /**
3
+ * A2A (Agent-to-Agent) Protocol Implementation
4
+ * Based on JSON-RPC 2.0 for agent communication
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.A2AServer = exports.A2AProtocol = void 0;
8
+ class A2AProtocol {
9
+ baseUrl;
10
+ agentId;
11
+ constructor(baseUrl, agentId) {
12
+ this.baseUrl = baseUrl;
13
+ this.agentId = agentId;
14
+ }
15
+ async sendTask(input) {
16
+ const message = {
17
+ jsonrpc: '2.0',
18
+ id: Date.now(),
19
+ method: 'sendTask',
20
+ params: { input }
21
+ };
22
+ const response = await this.makeRequest(message);
23
+ return response.result;
24
+ }
25
+ async getTask(taskId) {
26
+ const message = {
27
+ jsonrpc: '2.0',
28
+ id: Date.now(),
29
+ method: 'getTask',
30
+ params: { taskId }
31
+ };
32
+ const response = await this.makeRequest(message);
33
+ return response.result;
34
+ }
35
+ async cancelTask(taskId) {
36
+ const message = {
37
+ jsonrpc: '2.0',
38
+ id: Date.now(),
39
+ method: 'cancelTask',
40
+ params: { taskId }
41
+ };
42
+ const response = await this.makeRequest(message);
43
+ return response.result;
44
+ }
45
+ async makeRequest(message) {
46
+ const response = await fetch(this.baseUrl, {
47
+ method: 'POST',
48
+ headers: {
49
+ 'Content-Type': 'application/json',
50
+ 'X-Agent-Id': this.agentId
51
+ },
52
+ body: JSON.stringify(message)
53
+ });
54
+ if (!response.ok) {
55
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
56
+ }
57
+ return await response.json();
58
+ }
59
+ }
60
+ exports.A2AProtocol = A2AProtocol;
61
+ class A2AServer {
62
+ handlers;
63
+ tasks;
64
+ constructor() {
65
+ this.handlers = new Map();
66
+ this.tasks = new Map();
67
+ }
68
+ registerHandler(method, handler) {
69
+ this.handlers.set(method, handler);
70
+ }
71
+ async handleRequest(message) {
72
+ const handler = this.handlers.get(message.method);
73
+ if (!handler) {
74
+ return {
75
+ jsonrpc: '2.0',
76
+ id: message.id,
77
+ error: {
78
+ code: -32601,
79
+ message: 'Method not found'
80
+ }
81
+ };
82
+ }
83
+ try {
84
+ const result = await handler(message.params);
85
+ return {
86
+ jsonrpc: '2.0',
87
+ id: message.id,
88
+ result
89
+ };
90
+ }
91
+ catch (error) {
92
+ return {
93
+ jsonrpc: '2.0',
94
+ id: message.id,
95
+ error: {
96
+ code: -32603,
97
+ message: 'Internal error',
98
+ data: error.message
99
+ }
100
+ };
101
+ }
102
+ }
103
+ createTask(input) {
104
+ const task = {
105
+ id: `task-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
106
+ status: 'pending',
107
+ input,
108
+ createdAt: Date.now(),
109
+ updatedAt: Date.now()
110
+ };
111
+ this.tasks.set(task.id, task);
112
+ return task;
113
+ }
114
+ updateTask(taskId, updates) {
115
+ const task = this.tasks.get(taskId);
116
+ if (!task)
117
+ return null;
118
+ Object.assign(task, updates, { updatedAt: Date.now() });
119
+ return task;
120
+ }
121
+ getTask(taskId) {
122
+ return this.tasks.get(taskId) || null;
123
+ }
124
+ }
125
+ exports.A2AServer = A2AServer;
126
+ //# sourceMappingURL=A2AProtocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A2AProtocol.js","sourceRoot":"","sources":["../../../src/protocols/A2AProtocol.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AvED,8BAuEC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * AP2 (A2A Payment) Protocol
3
+ * Agent-to-Agent Payment Protocol for autonomous transactions
4
+ */
5
+ export interface AP2PaymentRequest {
6
+ id: string;
7
+ from: string;
8
+ to: string;
9
+ amount: string;
10
+ currency: string;
11
+ network: string;
12
+ description?: string;
13
+ metadata?: Record<string, any>;
14
+ createdAt: number;
15
+ expiresAt: number;
16
+ }
17
+ export interface AP2PaymentResponse {
18
+ requestId: string;
19
+ status: 'pending' | 'approved' | 'rejected' | 'completed' | 'failed';
20
+ transactionHash?: string;
21
+ message?: string;
22
+ timestamp: number;
23
+ }
24
+ export interface AP2PaymentVerification {
25
+ requestId: string;
26
+ transactionHash: string;
27
+ network: string;
28
+ verified: boolean;
29
+ confirmations: number;
30
+ timestamp: number;
31
+ }
32
+ export declare class AP2Protocol {
33
+ private network;
34
+ private currency;
35
+ constructor(network?: string, currency?: string);
36
+ createPaymentRequest(from: string, to: string, amount: number, description?: string, metadata?: Record<string, any>): AP2PaymentRequest;
37
+ createPaymentResponse(requestId: string, status: AP2PaymentResponse['status'], transactionHash?: string, message?: string): AP2PaymentResponse;
38
+ verifyPayment(requestId: string, transactionHash: string, verified: boolean, confirmations?: number): AP2PaymentVerification;
39
+ isExpired(request: AP2PaymentRequest): boolean;
40
+ validateRequest(request: AP2PaymentRequest): {
41
+ valid: boolean;
42
+ errors: string[];
43
+ };
44
+ encodeRequest(request: AP2PaymentRequest): string;
45
+ decodeRequest(encoded: string): AP2PaymentRequest;
46
+ }
47
+ export declare class AP2PaymentNegotiation {
48
+ private requests;
49
+ private responses;
50
+ constructor();
51
+ proposePayment(request: AP2PaymentRequest): void;
52
+ respondToPayment(response: AP2PaymentResponse): void;
53
+ getRequest(requestId: string): AP2PaymentRequest | undefined;
54
+ getResponse(requestId: string): AP2PaymentResponse | undefined;
55
+ clearExpiredRequests(): number;
56
+ }
57
+ //# sourceMappingURL=AP2Protocol.d.ts.map
@@ -0,0 +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AE,GAAG,CAAC,GAC7B,iBAAiB;IAoBpB,qBAAqB,CACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EACpC,eAAe,CAAC,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,MAAM,GACf,kBAAkB;IAarB,aAAa,CACX,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,OAAO,EACjB,aAAa,GAAE,MAAU,GACxB,sBAAsB;IAWzB,SAAS,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO;IAI9C,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE;IAmBjF,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM;IAIjD,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB;CAIlD;AAED,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAgC;IAChD,OAAO,CAAC,SAAS,CAAiC;;IAOlD,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAIhD,gBAAgB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;IAIpD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS;IAI5D,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAI9D,oBAAoB,IAAI,MAAM;CAa/B"}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ /**
3
+ * AP2 (A2A Payment) Protocol
4
+ * Agent-to-Agent Payment Protocol for autonomous transactions
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.AP2PaymentNegotiation = exports.AP2Protocol = void 0;
8
+ class AP2Protocol {
9
+ network;
10
+ currency;
11
+ constructor(network = 'solana-devnet', currency = 'USDC') {
12
+ this.network = network;
13
+ this.currency = currency;
14
+ }
15
+ createPaymentRequest(from, to, amount, description, metadata) {
16
+ const now = Date.now();
17
+ const request = {
18
+ id: `ap2-${now}-${Math.random().toString(36).substr(2, 9)}`,
19
+ from,
20
+ to,
21
+ amount: amount.toString(),
22
+ currency: this.currency,
23
+ network: this.network,
24
+ createdAt: now,
25
+ expiresAt: now + (5 * 60 * 1000)
26
+ };
27
+ if (description !== undefined)
28
+ request.description = description;
29
+ if (metadata !== undefined)
30
+ request.metadata = metadata;
31
+ return request;
32
+ }
33
+ createPaymentResponse(requestId, status, transactionHash, message) {
34
+ const response = {
35
+ requestId,
36
+ status,
37
+ timestamp: Date.now()
38
+ };
39
+ if (transactionHash !== undefined)
40
+ response.transactionHash = transactionHash;
41
+ if (message !== undefined)
42
+ response.message = message;
43
+ return response;
44
+ }
45
+ verifyPayment(requestId, transactionHash, verified, confirmations = 0) {
46
+ return {
47
+ requestId,
48
+ transactionHash,
49
+ network: this.network,
50
+ verified,
51
+ confirmations,
52
+ timestamp: Date.now()
53
+ };
54
+ }
55
+ isExpired(request) {
56
+ return Date.now() > request.expiresAt;
57
+ }
58
+ validateRequest(request) {
59
+ const errors = [];
60
+ if (!request.id)
61
+ errors.push('Missing request ID');
62
+ if (!request.from)
63
+ errors.push('Missing sender address');
64
+ if (!request.to)
65
+ errors.push('Missing recipient address');
66
+ if (!request.amount || Number(request.amount) <= 0) {
67
+ errors.push('Invalid amount');
68
+ }
69
+ if (!request.currency)
70
+ errors.push('Missing currency');
71
+ if (!request.network)
72
+ errors.push('Missing network');
73
+ if (this.isExpired(request))
74
+ errors.push('Request expired');
75
+ return {
76
+ valid: errors.length === 0,
77
+ errors
78
+ };
79
+ }
80
+ encodeRequest(request) {
81
+ return Buffer.from(JSON.stringify(request)).toString('base64');
82
+ }
83
+ decodeRequest(encoded) {
84
+ const json = Buffer.from(encoded, 'base64').toString('utf-8');
85
+ return JSON.parse(json);
86
+ }
87
+ }
88
+ exports.AP2Protocol = AP2Protocol;
89
+ class AP2PaymentNegotiation {
90
+ requests;
91
+ responses;
92
+ constructor() {
93
+ this.requests = new Map();
94
+ this.responses = new Map();
95
+ }
96
+ proposePayment(request) {
97
+ this.requests.set(request.id, request);
98
+ }
99
+ respondToPayment(response) {
100
+ this.responses.set(response.requestId, response);
101
+ }
102
+ getRequest(requestId) {
103
+ return this.requests.get(requestId);
104
+ }
105
+ getResponse(requestId) {
106
+ return this.responses.get(requestId);
107
+ }
108
+ clearExpiredRequests() {
109
+ let cleared = 0;
110
+ const now = Date.now();
111
+ for (const [id, request] of this.requests.entries()) {
112
+ if (request.expiresAt < now) {
113
+ this.requests.delete(id);
114
+ cleared++;
115
+ }
116
+ }
117
+ return cleared;
118
+ }
119
+ }
120
+ exports.AP2PaymentNegotiation = AP2PaymentNegotiation;
121
+ //# sourceMappingURL=AP2Protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AP2Protocol.js","sourceRoot":"","sources":["../../../src/protocols/AP2Protocol.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAgCH,MAAa,WAAW;IACd,OAAO,CAAQ;IACf,QAAQ,CAAQ;IAExB,YAAY,UAAkB,eAAe,EAAE,WAAmB,MAAM;QACtE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;IAED,oBAAoB,CAClB,IAAY,EACZ,EAAU,EACV,MAAc,EACd,WAAoB,EACpB,QAA8B;QAE9B,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;QAEtB,MAAM,OAAO,GAAsB;YACjC,EAAE,EAAE,OAAO,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;YAC3D,IAAI;YACJ,EAAE;YACF,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE;YACzB,QAAQ,EAAE,IAAI,CAAC,QAA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AI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IACxC,CAAC;IAED,gBAAgB,CAAC,QAA4B;QAC3C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IAClD,CAAC;IAED,UAAU,CAAC,SAAiB;QAC1B,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACrC,CAAC;IAED,WAAW,CAAC,SAAiB;QAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACtC,CAAC;IAED,oBAAoB;QAClB,IAAI,OAAO,GAAG,CAAC,CAAA;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;QAEtB,KAAK,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC;YACpD,IAAI,OAAO,CAAC,SAAS,GAAG,GAAG,EAAE,CAAC;gBAC5B,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;gBACxB,OAAO,EAAE,CAAA;YACX,CAAC;QACH,CAAC;QAED,OAAO,OAAO,CAAA;IAChB,CAAC;CACF;AAtCD,sDAsCC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Aether Agent SDK - Protocols Module
3
+ *
4
+ * Export protocol implementations for agent communication and payments
5
+ */
6
+ export { A2AProtocol, A2AServer } from './A2AProtocol';
7
+ export type { A2AMessage, A2AResponse, Task } from './A2AProtocol';
8
+ export { AP2Protocol, AP2PaymentNegotiation } from './AP2Protocol';
9
+ export type { AP2PaymentRequest, AP2PaymentResponse, AP2PaymentVerification } from './AP2Protocol';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/protocols/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACtD,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAElE,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAClE,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,eAAe,CAAA"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * Aether Agent SDK - Protocols Module
4
+ *
5
+ * Export protocol implementations for agent communication and payments
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.AP2PaymentNegotiation = exports.AP2Protocol = exports.A2AServer = exports.A2AProtocol = void 0;
9
+ var A2AProtocol_1 = require("./A2AProtocol");
10
+ Object.defineProperty(exports, "A2AProtocol", { enumerable: true, get: function () { return A2AProtocol_1.A2AProtocol; } });
11
+ Object.defineProperty(exports, "A2AServer", { enumerable: true, get: function () { return A2AProtocol_1.A2AServer; } });
12
+ var AP2Protocol_1 = require("./AP2Protocol");
13
+ Object.defineProperty(exports, "AP2Protocol", { enumerable: true, get: function () { return AP2Protocol_1.AP2Protocol; } });
14
+ Object.defineProperty(exports, "AP2PaymentNegotiation", { enumerable: true, get: function () { return AP2Protocol_1.AP2PaymentNegotiation; } });
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/protocols/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,6CAAsD;AAA7C,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAG/B,6CAAkE;AAAzD,0GAAA,WAAW,OAAA;AAAE,oHAAA,qBAAqB,OAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Hedron Agent SDK - Services Module
3
+ *
4
+ * Export all service classes and utilities
5
+ */
6
+ export { TokenService } from './TokenService';
7
+ export { createRoyaltyTokenForNFTs } from './TokenService';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Hedron Agent SDK - Services Module
4
+ *
5
+ * Export all service classes and utilities
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.createRoyaltyTokenForNFTs = exports.TokenService = void 0;
9
+ var TokenService_1 = require("./TokenService");
10
+ Object.defineProperty(exports, "TokenService", { enumerable: true, get: function () { return TokenService_1.TokenService; } });
11
+ var TokenService_2 = require("./TokenService");
12
+ Object.defineProperty(exports, "createRoyaltyTokenForNFTs", { enumerable: true, get: function () { return TokenService_2.createRoyaltyTokenForNFTs; } });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,+CAA6C;AAApC,4GAAA,YAAY,OAAA;AACrB,+CAA0D;AAAjD,yHAAA,yBAAyB,OAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Environment utility functions
3
+ *
4
+ * Allows optional dotenv loading for SDK usage
5
+ */
6
+ /**
7
+ * Load environment variables from .env file (if not already loaded)
8
+ * This is optional and only runs once
9
+ */
10
+ export declare function loadEnvIfNeeded(): void;
11
+ /**
12
+ * Get environment variable with optional default
13
+ */
14
+ export declare function getEnv(key: string, defaultValue?: string): string | undefined;
15
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/utils/env.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAgBtC;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG7E"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * Environment utility functions
4
+ *
5
+ * Allows optional dotenv loading for SDK usage
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.loadEnvIfNeeded = loadEnvIfNeeded;
9
+ exports.getEnv = getEnv;
10
+ let dotenvLoaded = false;
11
+ /**
12
+ * Load environment variables from .env file (if not already loaded)
13
+ * This is optional and only runs once
14
+ */
15
+ function loadEnvIfNeeded() {
16
+ if (dotenvLoaded) {
17
+ return;
18
+ }
19
+ try {
20
+ // Only load dotenv if it's available (not bundled in SDK)
21
+ const dotenv = require('dotenv');
22
+ if (dotenv && typeof dotenv.config === 'function') {
23
+ dotenv.config();
24
+ dotenvLoaded = true;
25
+ }
26
+ }
27
+ catch (error) {
28
+ // dotenv is optional - if not available, environment variables
29
+ // should be provided by the user via process.env
30
+ }
31
+ }
32
+ /**
33
+ * Get environment variable with optional default
34
+ */
35
+ function getEnv(key, defaultValue) {
36
+ loadEnvIfNeeded();
37
+ return process.env[key] || defaultValue;
38
+ }
39
+ //# sourceMappingURL=env.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../../../src/utils/env.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAQH,0CAgBC;AAKD,wBAGC;AA9BD,IAAI,YAAY,GAAG,KAAK,CAAA;AAExB;;;GAGG;AACH,SAAgB,eAAe;IAC7B,IAAI,YAAY,EAAE,CAAC;QACjB,OAAM;IACR,CAAC;IAED,IAAI,CAAC;QACH,0DAA0D;QAC1D,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;QAChC,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;YAClD,MAAM,CAAC,MAAM,EAAE,CAAA;YACf,YAAY,GAAG,IAAI,CAAA;QACrB,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,+DAA+D;QAC/D,iDAAiD;IACnD,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,MAAM,CAAC,GAAW,EAAE,YAAqB;IACvD,eAAe,EAAE,CAAA;IACjB,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,YAAY,CAAA;AACzC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Hedron Agent SDK - Utilities Module
3
+ *
4
+ * Export utility functions
5
+ */
6
+ export { loadEnvIfNeeded, getEnv } from './env';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * Hedron Agent SDK - Utilities Module
4
+ *
5
+ * Export utility functions
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.getEnv = exports.loadEnvIfNeeded = void 0;
9
+ var env_1 = require("./env");
10
+ Object.defineProperty(exports, "loadEnvIfNeeded", { enumerable: true, get: function () { return env_1.loadEnvIfNeeded; } });
11
+ Object.defineProperty(exports, "getEnv", { enumerable: true, get: function () { return env_1.getEnv; } });
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,6BAA+C;AAAtC,sGAAA,eAAe,OAAA;AAAE,6FAAA,MAAM,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aether-agent-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Autonomous Agent Ecosystem SDK for Solana - A2A Protocol, x402 Payment Standard, and Agent-to-Agent Communication",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",