multi-agent-protocol 0.0.1 → 0.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.
- package/README.md +96 -8
- package/docs/00-design-specification.md +460 -0
- package/docs/01-open-questions.md +1055 -0
- package/docs/02-wire-protocol.md +296 -0
- package/docs/03-streaming-semantics.md +252 -0
- package/docs/04-error-handling.md +231 -0
- package/docs/05-connection-model.md +244 -0
- package/docs/06-visibility-permissions.md +243 -0
- package/docs/07-federation.md +259 -0
- package/docs/08-macro-agent-migration.md +253 -0
- package/package.json +28 -30
- package/schema/meta.json +337 -0
- package/schema/schema.json +1828 -0
- package/dist/index.d.mts +0 -37
- package/dist/index.d.ts +0 -37
- package/dist/index.js +0 -16
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -13
- package/dist/index.mjs.map +0 -1
package/dist/index.d.mts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"]}
|