ai2ai 1.0.1 → 1.0.2

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 (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  </p>
11
11
 
12
12
  <p align="center">
13
- <a href="https://www.npmjs.com/package/ai2ai-protocol"><img src="https://img.shields.io/npm/v/ai2ai-protocol.svg" alt="npm"></a>
13
+ <a href="https://www.npmjs.com/package/ai2ai"><img src="https://img.shields.io/npm/v/ai2ai.svg" alt="npm"></a>
14
14
  <a href="https://github.com/DarrenEdwards111/ai2ai-protocol/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License"></a>
15
15
  <img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen.svg" alt="Node">
16
16
  <img src="https://img.shields.io/badge/dependencies-0-brightgreen.svg" alt="Zero deps">
@@ -21,7 +21,7 @@
21
21
  ## Quick Start
22
22
 
23
23
  ```js
24
- const { AI2AI } = require('ai2ai-protocol/src/client');
24
+ const { AI2AI } = require('ai2ai');
25
25
 
26
26
  const agent = new AI2AI({ name: 'my-agent', port: 18800 });
27
27
  await agent.start();
@@ -46,7 +46,7 @@ await agent.send('other-agent', 'Hello from my AI!');
46
46
  ## Installation
47
47
 
48
48
  ```bash
49
- npm install ai2ai-protocol
49
+ npm install ai2ai
50
50
  ```
51
51
 
52
52
  Or clone directly:
@@ -59,7 +59,7 @@ git clone https://github.com/DarrenEdwards111/ai2ai-protocol.git
59
59
  ### Create an Agent
60
60
 
61
61
  ```js
62
- const { AI2AI } = require('ai2ai-protocol/src/client');
62
+ const { AI2AI } = require('ai2ai');
63
63
 
64
64
  const agent = new AI2AI({
65
65
  name: 'alice-agent',
@@ -101,7 +101,7 @@ await agent.request('bob-agent', 'schedule.meeting', {
101
101
  ### Registry
102
102
 
103
103
  ```js
104
- const { RegistryServer, RegistryClient } = require('ai2ai-protocol/src/registry');
104
+ const { RegistryServer, RegistryClient } = require('ai2ai/src/registry');
105
105
 
106
106
  // Start a registry server
107
107
  const registry = new RegistryServer();
@@ -130,7 +130,7 @@ _ai2ai.yourdomain.com TXT "endpoint=https://your-server.com/ai2ai"
130
130
  ### Local Network (mDNS)
131
131
 
132
132
  ```js
133
- const { startLocalDiscovery } = require('ai2ai-protocol/src/registry');
133
+ const { startLocalDiscovery } = require('ai2ai/src/registry');
134
134
 
135
135
  const discovery = startLocalDiscovery((agent) => {
136
136
  console.log(`Found: ${agent.agentId} at ${agent.endpoint}`);
@@ -159,7 +159,7 @@ discovery.query();
159
159
  ### OpenClaw
160
160
 
161
161
  ```js
162
- const { createOpenClawAdapter } = require('ai2ai-protocol/src/integrations/openclaw');
162
+ const { createOpenClawAdapter } = require('ai2ai/src/integrations/openclaw');
163
163
 
164
164
  const adapter = createOpenClawAdapter({
165
165
  agentName: 'my-agent',
@@ -172,7 +172,7 @@ await adapter.start();
172
172
  ### Webhooks
173
173
 
174
174
  ```js
175
- const { createWebhookForwarder } = require('ai2ai-protocol/src/integrations/webhook');
175
+ const { createWebhookForwarder } = require('ai2ai/src/integrations/webhook');
176
176
 
177
177
  const webhook = createWebhookForwarder({
178
178
  url: 'https://your-server.com/webhook',
@@ -185,7 +185,7 @@ agent.on('message', webhook.handler);
185
185
  ### Express Middleware
186
186
 
187
187
  ```js
188
- const { ai2aiMiddleware } = require('ai2ai-protocol/src/integrations/express');
188
+ const { ai2aiMiddleware } = require('ai2ai/src/integrations/express');
189
189
 
190
190
  app.use('/ai2ai', ai2aiMiddleware({
191
191
  agentName: 'my-agent',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai2ai",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Production-ready agent-to-agent communication protocol",
5
5
  "main": "client.js",
6
6
  "scripts": {