multi-agent-protocol 0.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.
- package/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/index.d.mts +37 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# multi-agent-protocol
|
|
2
|
+
|
|
3
|
+
A protocol for client connection and internal message routing in multi-agent systems.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install multi-agent-protocol
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AgentClient, MessageRouter } from 'multi-agent-protocol';
|
|
15
|
+
|
|
16
|
+
// TODO: Usage examples
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
MIT
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core type definitions for the Multi-Agent Protocol
|
|
3
|
+
*/
|
|
4
|
+
type AgentId = string;
|
|
5
|
+
type MessageId = string;
|
|
6
|
+
type SessionId = string;
|
|
7
|
+
interface AgentInfo {
|
|
8
|
+
id: AgentId;
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
capabilities?: string[];
|
|
12
|
+
}
|
|
13
|
+
interface Message<T = unknown> {
|
|
14
|
+
id: MessageId;
|
|
15
|
+
from: AgentId;
|
|
16
|
+
to: AgentId | AgentId[];
|
|
17
|
+
timestamp: number;
|
|
18
|
+
payload: T;
|
|
19
|
+
}
|
|
20
|
+
interface ProtocolError {
|
|
21
|
+
code: number;
|
|
22
|
+
message: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Client connection handling for the Multi-Agent Protocol
|
|
27
|
+
*/
|
|
28
|
+
declare class AgentClient {
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Message routing for the Multi-Agent Protocol
|
|
33
|
+
*/
|
|
34
|
+
declare class MessageRouter {
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { AgentClient, type AgentId, type AgentInfo, type Message, type MessageId, MessageRouter, type ProtocolError, type SessionId };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core type definitions for the Multi-Agent Protocol
|
|
3
|
+
*/
|
|
4
|
+
type AgentId = string;
|
|
5
|
+
type MessageId = string;
|
|
6
|
+
type SessionId = string;
|
|
7
|
+
interface AgentInfo {
|
|
8
|
+
id: AgentId;
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
capabilities?: string[];
|
|
12
|
+
}
|
|
13
|
+
interface Message<T = unknown> {
|
|
14
|
+
id: MessageId;
|
|
15
|
+
from: AgentId;
|
|
16
|
+
to: AgentId | AgentId[];
|
|
17
|
+
timestamp: number;
|
|
18
|
+
payload: T;
|
|
19
|
+
}
|
|
20
|
+
interface ProtocolError {
|
|
21
|
+
code: number;
|
|
22
|
+
message: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Client connection handling for the Multi-Agent Protocol
|
|
27
|
+
*/
|
|
28
|
+
declare class AgentClient {
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Message routing for the Multi-Agent Protocol
|
|
33
|
+
*/
|
|
34
|
+
declare class MessageRouter {
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { AgentClient, type AgentId, type AgentInfo, type Message, type MessageId, MessageRouter, type ProtocolError, type SessionId };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/client/index.ts
|
|
4
|
+
var AgentClient = class {
|
|
5
|
+
// TODO: Implement client connection
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
// src/router/index.ts
|
|
9
|
+
var MessageRouter = class {
|
|
10
|
+
// TODO: Implement message routing
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
exports.AgentClient = AgentClient;
|
|
14
|
+
exports.MessageRouter = MessageRouter;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/client/index.ts","../src/router/index.ts"],"names":[],"mappings":";;;AAIO,IAAM,cAAN,MAAkB;AAAA;AAEzB;;;ACFO,IAAM,gBAAN,MAAoB;AAAA;AAE3B","file":"index.js","sourcesContent":["/**\n * Client connection handling for the Multi-Agent Protocol\n */\n\nexport class AgentClient {\n // TODO: Implement client connection\n}\n","/**\n * Message routing for the Multi-Agent Protocol\n */\n\nexport class MessageRouter {\n // TODO: Implement message routing\n}\n"]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/client/index.ts
|
|
2
|
+
var AgentClient = class {
|
|
3
|
+
// TODO: Implement client connection
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
// src/router/index.ts
|
|
7
|
+
var MessageRouter = class {
|
|
8
|
+
// TODO: Implement message routing
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { AgentClient, MessageRouter };
|
|
12
|
+
//# sourceMappingURL=index.mjs.map
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/client/index.ts","../src/router/index.ts"],"names":[],"mappings":";AAIO,IAAM,cAAN,MAAkB;AAAA;AAEzB;;;ACFO,IAAM,gBAAN,MAAoB;AAAA;AAE3B","file":"index.mjs","sourcesContent":["/**\n * Client connection handling for the Multi-Agent Protocol\n */\n\nexport class AgentClient {\n // TODO: Implement client connection\n}\n","/**\n * Message routing for the Multi-Agent Protocol\n */\n\nexport class MessageRouter {\n // TODO: Implement message routing\n}\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "multi-agent-protocol",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A protocol for client connection and internal message routing in multi-agent systems",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup",
|
|
22
|
+
"dev": "tsup --watch",
|
|
23
|
+
"test": "vitest",
|
|
24
|
+
"test:run": "vitest run",
|
|
25
|
+
"lint": "eslint src/",
|
|
26
|
+
"typecheck": "tsc --noEmit",
|
|
27
|
+
"prepublishOnly": "npm run build"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"multi-agent",
|
|
31
|
+
"agent",
|
|
32
|
+
"protocol",
|
|
33
|
+
"message-routing",
|
|
34
|
+
"ai-agents",
|
|
35
|
+
"mcp",
|
|
36
|
+
"a2a"
|
|
37
|
+
],
|
|
38
|
+
"author": "Alex Ngai",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/alexngai/multi-agent-protocol.git"
|
|
43
|
+
},
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/alexngai/multi-agent-protocol/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/alexngai/multi-agent-protocol#readme",
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/node": "^20.11.0",
|
|
50
|
+
"tsup": "^8.0.1",
|
|
51
|
+
"typescript": "^5.3.3",
|
|
52
|
+
"vitest": "^1.2.0"
|
|
53
|
+
},
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=18.0.0"
|
|
56
|
+
}
|
|
57
|
+
}
|