@keycardai/a2a 0.1.0 → 0.2.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.
- package/LICENSE +21 -0
- package/package.json +12 -12
- package/dist/cjs/types.d.ts +0 -84
- package/dist/cjs/types.d.ts.map +0 -1
- package/dist/cjs/types.js +0 -21
- package/dist/cjs/types.js.map +0 -1
- package/dist/esm/types.d.ts +0 -84
- package/dist/esm/types.d.ts.map +0 -1
- package/dist/esm/types.js +0 -18
- package/dist/esm/types.js.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Keycard
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keycardai/a2a",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "[Preview] Keycard auth integration for Agent-to-Agent (A2A) protocol servers and clients",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,18 +26,10 @@
|
|
|
26
26
|
]
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"build": "pnpm run build:esm && pnpm run build:cjs",
|
|
31
|
-
"build:esm": "tsc -p tsconfig.prod.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
|
|
32
|
-
"build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
|
|
33
|
-
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
|
|
34
|
-
"typecheck": "tsc --noEmit",
|
|
35
|
-
"clean": "rm -rf dist"
|
|
36
|
-
},
|
|
37
29
|
"dependencies": {
|
|
38
30
|
"@a2a-js/sdk": "^0.3.13",
|
|
39
|
-
"@keycardai/express": "
|
|
40
|
-
"@keycardai/oauth": "
|
|
31
|
+
"@keycardai/express": "0.3.0",
|
|
32
|
+
"@keycardai/oauth": "0.6.0"
|
|
41
33
|
},
|
|
42
34
|
"peerDependencies": {
|
|
43
35
|
"express": ">=4.0.0"
|
|
@@ -51,5 +43,13 @@
|
|
|
51
43
|
"supertest": "^7.1.1",
|
|
52
44
|
"ts-jest": "^29.4.0",
|
|
53
45
|
"typescript": "^5.8.3"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "pnpm run build:esm && pnpm run build:cjs",
|
|
49
|
+
"build:esm": "tsc -p tsconfig.prod.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
|
|
50
|
+
"build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
|
|
51
|
+
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
|
|
52
|
+
"typecheck": "tsc --noEmit",
|
|
53
|
+
"clean": "rm -rf dist"
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|
package/dist/cjs/types.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A2A (Agent-to-Agent) protocol types.
|
|
3
|
-
* Reference: https://google.github.io/A2A
|
|
4
|
-
*/
|
|
5
|
-
export interface AgentSkill {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
tags?: readonly string[];
|
|
10
|
-
}
|
|
11
|
-
export interface AgentCapabilities {
|
|
12
|
-
streaming?: boolean;
|
|
13
|
-
pushNotifications?: boolean;
|
|
14
|
-
stateTransitionHistory?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Agent card served at `GET /.well-known/agent-card.json`.
|
|
18
|
-
* Describes the agent's identity, capabilities, and endpoint.
|
|
19
|
-
*/
|
|
20
|
-
export interface AgentCard {
|
|
21
|
-
name: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
url: string;
|
|
24
|
-
version: string;
|
|
25
|
-
capabilities?: AgentCapabilities;
|
|
26
|
-
skills?: AgentSkill[];
|
|
27
|
-
defaultInputModes?: readonly string[];
|
|
28
|
-
defaultOutputModes?: readonly string[];
|
|
29
|
-
}
|
|
30
|
-
export interface TextPart {
|
|
31
|
-
type: "text";
|
|
32
|
-
text: string;
|
|
33
|
-
}
|
|
34
|
-
export interface DataPart {
|
|
35
|
-
type: "data";
|
|
36
|
-
data: Record<string, unknown>;
|
|
37
|
-
}
|
|
38
|
-
export type Part = TextPart | DataPart;
|
|
39
|
-
export type MessageRole = "user" | "agent";
|
|
40
|
-
export interface A2AMessage {
|
|
41
|
-
messageId: string;
|
|
42
|
-
role: MessageRole;
|
|
43
|
-
parts: readonly Part[];
|
|
44
|
-
metadata?: Record<string, unknown>;
|
|
45
|
-
}
|
|
46
|
-
export interface A2ARequest {
|
|
47
|
-
jsonrpc: "2.0";
|
|
48
|
-
id: string;
|
|
49
|
-
method: "message/send";
|
|
50
|
-
params: {
|
|
51
|
-
message: A2AMessage;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export interface A2ASuccessResponse {
|
|
55
|
-
jsonrpc: "2.0";
|
|
56
|
-
id: string;
|
|
57
|
-
result: {
|
|
58
|
-
message: A2AMessage;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export interface A2AErrorResponse {
|
|
62
|
-
jsonrpc: "2.0";
|
|
63
|
-
id: string;
|
|
64
|
-
error: {
|
|
65
|
-
code: number;
|
|
66
|
-
message: string;
|
|
67
|
-
data?: unknown;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
export type A2AResponse = A2ASuccessResponse | A2AErrorResponse;
|
|
71
|
-
export declare const A2A_JSONRPC_VERSION: "2.0";
|
|
72
|
-
export declare const A2A_PROTOCOL_VERSION: "1.0";
|
|
73
|
-
export declare const A2A_VERSION_HEADER: "x-a2a-protocol-version";
|
|
74
|
-
export declare const A2A_JSONRPC_PATH: "/a2a/jsonrpc";
|
|
75
|
-
export declare const A2A_AGENT_CARD_PATH: "/.well-known/agent-card.json";
|
|
76
|
-
export declare const A2A_ERROR_CODES: {
|
|
77
|
-
readonly PARSE_ERROR: -32700;
|
|
78
|
-
readonly INVALID_REQUEST: -32600;
|
|
79
|
-
readonly METHOD_NOT_FOUND: -32601;
|
|
80
|
-
readonly INVALID_PARAMS: -32602;
|
|
81
|
-
readonly INTERNAL_ERROR: -32603;
|
|
82
|
-
readonly UNAUTHORIZED: -32001;
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/cjs/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../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MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE;QACN,OAAO,EAAE,UAAU,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE;QACN,OAAO,EAAE,UAAU,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;CACH;AAED,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;AAEhE,eAAO,MAAM,mBAAmB,EAAG,KAAc,CAAC;AAClD,eAAO,MAAM,oBAAoB,EAAG,KAAc,CAAC;AACnD,eAAO,MAAM,kBAAkB,EAAG,wBAAiC,CAAC;AACpE,eAAO,MAAM,gBAAgB,EAAG,cAAuB,CAAC;AACxD,eAAO,MAAM,mBAAmB,EAAG,8BAAuC,CAAC;AAE3E,eAAO,MAAM,eAAe;;;;;;;CAOlB,CAAC"}
|
package/dist/cjs/types.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* A2A (Agent-to-Agent) protocol types.
|
|
4
|
-
* Reference: https://google.github.io/A2A
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.A2A_ERROR_CODES = exports.A2A_AGENT_CARD_PATH = exports.A2A_JSONRPC_PATH = exports.A2A_VERSION_HEADER = exports.A2A_PROTOCOL_VERSION = exports.A2A_JSONRPC_VERSION = void 0;
|
|
8
|
-
exports.A2A_JSONRPC_VERSION = "2.0";
|
|
9
|
-
exports.A2A_PROTOCOL_VERSION = "1.0";
|
|
10
|
-
exports.A2A_VERSION_HEADER = "x-a2a-protocol-version";
|
|
11
|
-
exports.A2A_JSONRPC_PATH = "/a2a/jsonrpc";
|
|
12
|
-
exports.A2A_AGENT_CARD_PATH = "/.well-known/agent-card.json";
|
|
13
|
-
exports.A2A_ERROR_CODES = {
|
|
14
|
-
PARSE_ERROR: -32700,
|
|
15
|
-
INVALID_REQUEST: -32600,
|
|
16
|
-
METHOD_NOT_FOUND: -32601,
|
|
17
|
-
INVALID_PARAMS: -32602,
|
|
18
|
-
INTERNAL_ERROR: -32603,
|
|
19
|
-
UNAUTHORIZED: -32001,
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=types.js.map
|
package/dist/cjs/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAwFU,QAAA,mBAAmB,GAAG,KAAc,CAAC;AACrC,QAAA,oBAAoB,GAAG,KAAc,CAAC;AACtC,QAAA,kBAAkB,GAAG,wBAAiC,CAAC;AACvD,QAAA,gBAAgB,GAAG,cAAuB,CAAC;AAC3C,QAAA,mBAAmB,GAAG,8BAAuC,CAAC;AAE9D,QAAA,eAAe,GAAG;IAC7B,WAAW,EAAE,CAAC,KAAK;IACnB,eAAe,EAAE,CAAC,KAAK;IACvB,gBAAgB,EAAE,CAAC,KAAK;IACxB,cAAc,EAAE,CAAC,KAAK;IACtB,cAAc,EAAE,CAAC,KAAK;IACtB,YAAY,EAAE,CAAC,KAAK;CACZ,CAAC"}
|
package/dist/esm/types.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A2A (Agent-to-Agent) protocol types.
|
|
3
|
-
* Reference: https://google.github.io/A2A
|
|
4
|
-
*/
|
|
5
|
-
export interface AgentSkill {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
tags?: readonly string[];
|
|
10
|
-
}
|
|
11
|
-
export interface AgentCapabilities {
|
|
12
|
-
streaming?: boolean;
|
|
13
|
-
pushNotifications?: boolean;
|
|
14
|
-
stateTransitionHistory?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Agent card served at `GET /.well-known/agent-card.json`.
|
|
18
|
-
* Describes the agent's identity, capabilities, and endpoint.
|
|
19
|
-
*/
|
|
20
|
-
export interface AgentCard {
|
|
21
|
-
name: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
url: string;
|
|
24
|
-
version: string;
|
|
25
|
-
capabilities?: AgentCapabilities;
|
|
26
|
-
skills?: AgentSkill[];
|
|
27
|
-
defaultInputModes?: readonly string[];
|
|
28
|
-
defaultOutputModes?: readonly string[];
|
|
29
|
-
}
|
|
30
|
-
export interface TextPart {
|
|
31
|
-
type: "text";
|
|
32
|
-
text: string;
|
|
33
|
-
}
|
|
34
|
-
export interface DataPart {
|
|
35
|
-
type: "data";
|
|
36
|
-
data: Record<string, unknown>;
|
|
37
|
-
}
|
|
38
|
-
export type Part = TextPart | DataPart;
|
|
39
|
-
export type MessageRole = "user" | "agent";
|
|
40
|
-
export interface A2AMessage {
|
|
41
|
-
messageId: string;
|
|
42
|
-
role: MessageRole;
|
|
43
|
-
parts: readonly Part[];
|
|
44
|
-
metadata?: Record<string, unknown>;
|
|
45
|
-
}
|
|
46
|
-
export interface A2ARequest {
|
|
47
|
-
jsonrpc: "2.0";
|
|
48
|
-
id: string;
|
|
49
|
-
method: "message/send";
|
|
50
|
-
params: {
|
|
51
|
-
message: A2AMessage;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export interface A2ASuccessResponse {
|
|
55
|
-
jsonrpc: "2.0";
|
|
56
|
-
id: string;
|
|
57
|
-
result: {
|
|
58
|
-
message: A2AMessage;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export interface A2AErrorResponse {
|
|
62
|
-
jsonrpc: "2.0";
|
|
63
|
-
id: string;
|
|
64
|
-
error: {
|
|
65
|
-
code: number;
|
|
66
|
-
message: string;
|
|
67
|
-
data?: unknown;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
export type A2AResponse = A2ASuccessResponse | A2AErrorResponse;
|
|
71
|
-
export declare const A2A_JSONRPC_VERSION: "2.0";
|
|
72
|
-
export declare const A2A_PROTOCOL_VERSION: "1.0";
|
|
73
|
-
export declare const A2A_VERSION_HEADER: "x-a2a-protocol-version";
|
|
74
|
-
export declare const A2A_JSONRPC_PATH: "/a2a/jsonrpc";
|
|
75
|
-
export declare const A2A_AGENT_CARD_PATH: "/.well-known/agent-card.json";
|
|
76
|
-
export declare const A2A_ERROR_CODES: {
|
|
77
|
-
readonly PARSE_ERROR: -32700;
|
|
78
|
-
readonly INVALID_REQUEST: -32600;
|
|
79
|
-
readonly METHOD_NOT_FOUND: -32601;
|
|
80
|
-
readonly INVALID_PARAMS: -32602;
|
|
81
|
-
readonly INTERNAL_ERROR: -32603;
|
|
82
|
-
readonly UNAUTHORIZED: -32001;
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/esm/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sBAAsB,CAAC,EAAE,OAAO,C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/B,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;CACH;AAED,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;AAEhE,eAAO,MAAM,mBAAmB,EAAG,KAAc,CAAC;AAClD,eAAO,MAAM,oBAAoB,EAAG,KAAc,CAAC;AACnD,eAAO,MAAM,kBAAkB,EAAG,wBAAiC,CAAC;AACpE,eAAO,MAAM,gBAAgB,EAAG,cAAuB,CAAC;AACxD,eAAO,MAAM,mBAAmB,EAAG,8BAAuC,CAAC;AAE3E,eAAO,MAAM,eAAe;;;;;;;CAOlB,CAAC"}
|
package/dist/esm/types.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A2A (Agent-to-Agent) protocol types.
|
|
3
|
-
* Reference: https://google.github.io/A2A
|
|
4
|
-
*/
|
|
5
|
-
export const A2A_JSONRPC_VERSION = "2.0";
|
|
6
|
-
export const A2A_PROTOCOL_VERSION = "1.0";
|
|
7
|
-
export const A2A_VERSION_HEADER = "x-a2a-protocol-version";
|
|
8
|
-
export const A2A_JSONRPC_PATH = "/a2a/jsonrpc";
|
|
9
|
-
export const A2A_AGENT_CARD_PATH = "/.well-known/agent-card.json";
|
|
10
|
-
export const A2A_ERROR_CODES = {
|
|
11
|
-
PARSE_ERROR: -32700,
|
|
12
|
-
INVALID_REQUEST: -32600,
|
|
13
|
-
METHOD_NOT_FOUND: -32601,
|
|
14
|
-
INVALID_PARAMS: -32602,
|
|
15
|
-
INTERNAL_ERROR: -32603,
|
|
16
|
-
UNAUTHORIZED: -32001,
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=types.js.map
|
package/dist/esm/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwFH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAc,CAAC;AAClD,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAc,CAAC;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,wBAAiC,CAAC;AACpE,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAuB,CAAC;AACxD,MAAM,CAAC,MAAM,mBAAmB,GAAG,8BAAuC,CAAC;AAE3E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,WAAW,EAAE,CAAC,KAAK;IACnB,eAAe,EAAE,CAAC,KAAK;IACvB,gBAAgB,EAAE,CAAC,KAAK;IACxB,cAAc,EAAE,CAAC,KAAK;IACtB,cAAc,EAAE,CAAC,KAAK;IACtB,YAAY,EAAE,CAAC,KAAK;CACZ,CAAC"}
|