@agen-ai/agent-protocol 0.1.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/README.md +101 -0
- package/dist/artifacts/index.d.ts +3 -0
- package/dist/artifacts/index.js +2 -0
- package/dist/artifacts/parsers.d.ts +5 -0
- package/dist/artifacts/parsers.js +12 -0
- package/dist/artifacts/types.d.ts +19 -0
- package/dist/artifacts/types.js +16 -0
- package/dist/capabilities/index.d.ts +3 -0
- package/dist/capabilities/index.js +2 -0
- package/dist/capabilities/parsers.d.ts +6 -0
- package/dist/capabilities/parsers.js +18 -0
- package/dist/capabilities/types.d.ts +96 -0
- package/dist/capabilities/types.js +20 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +2 -0
- package/dist/events/parsers.d.ts +6 -0
- package/dist/events/parsers.js +16 -0
- package/dist/events/types.d.ts +78 -0
- package/dist/events/types.js +21 -0
- package/dist/foundation/index.d.ts +4 -0
- package/dist/foundation/index.js +3 -0
- package/dist/foundation/ordering.d.ts +2 -0
- package/dist/foundation/ordering.js +15 -0
- package/dist/foundation/parsers.d.ts +39 -0
- package/dist/foundation/parsers.js +148 -0
- package/dist/foundation/types.d.ts +62 -0
- package/dist/foundation/types.js +39 -0
- package/dist/foundation/validation.d.ts +16 -0
- package/dist/foundation/validation.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/internal/parsers.d.ts +5 -0
- package/dist/internal/parsers.js +21 -0
- package/dist/jsonSchema/generated.d.ts +6667 -0
- package/dist/jsonSchema/generated.js +4150 -0
- package/dist/jsonSchema/index.d.ts +2 -0
- package/dist/jsonSchema/index.js +1 -0
- package/dist/public/artifacts.d.ts +2 -0
- package/dist/public/artifacts.js +1 -0
- package/dist/public/capabilities.d.ts +2 -0
- package/dist/public/capabilities.js +1 -0
- package/dist/public/events.d.ts +2 -0
- package/dist/public/events.js +1 -0
- package/dist/public/index.d.ts +8 -0
- package/dist/public/index.js +7 -0
- package/dist/public/requests.d.ts +2 -0
- package/dist/public/requests.js +1 -0
- package/dist/public/sessions.d.ts +2 -0
- package/dist/public/sessions.js +1 -0
- package/dist/public/turns.d.ts +2 -0
- package/dist/public/turns.js +1 -0
- package/dist/requests/index.d.ts +3 -0
- package/dist/requests/index.js +2 -0
- package/dist/requests/parsers.d.ts +9 -0
- package/dist/requests/parsers.js +134 -0
- package/dist/requests/types.d.ts +89 -0
- package/dist/requests/types.js +0 -0
- package/dist/sessions/index.d.ts +3 -0
- package/dist/sessions/index.js +2 -0
- package/dist/sessions/parsers.d.ts +10 -0
- package/dist/sessions/parsers.js +38 -0
- package/dist/sessions/types.d.ts +37 -0
- package/dist/sessions/types.js +0 -0
- package/dist/turns/index.d.ts +3 -0
- package/dist/turns/index.js +2 -0
- package/dist/turns/parsers.d.ts +11 -0
- package/dist/turns/parsers.js +41 -0
- package/dist/turns/types.d.ts +207 -0
- package/dist/turns/types.js +62 -0
- package/dist/zod/artifacts.d.ts +4 -0
- package/dist/zod/artifacts.js +28 -0
- package/dist/zod/capabilities.d.ts +180 -0
- package/dist/zod/capabilities.js +222 -0
- package/dist/zod/events.d.ts +357 -0
- package/dist/zod/events.js +190 -0
- package/dist/zod/foundation.d.ts +45 -0
- package/dist/zod/foundation.js +205 -0
- package/dist/zod/index.d.ts +9 -0
- package/dist/zod/index.js +118 -0
- package/dist/zod/requests.d.ts +123 -0
- package/dist/zod/requests.js +174 -0
- package/dist/zod/sessions.d.ts +65 -0
- package/dist/zod/sessions.js +124 -0
- package/dist/zod/turns.d.ts +219 -0
- package/dist/zod/turns.js +400 -0
- package/dist/zod/typeEquality.generated.d.ts +51 -0
- package/dist/zod/typeEquality.generated.js +0 -0
- package/package.json +95 -0
package/package.json
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agen-ai/agent-protocol",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Provider-neutral sessions, turns, requests, capabilities, artifacts, and events for coding-agent runtimes.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"main": "./dist/public/index.js",
|
|
10
|
+
"module": "./dist/public/index.js",
|
|
11
|
+
"types": "./dist/public/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist/**/*.js",
|
|
14
|
+
"dist/**/*.d.ts",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE"
|
|
17
|
+
],
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/public/index.d.ts",
|
|
21
|
+
"import": "./dist/public/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./sessions": {
|
|
24
|
+
"types": "./dist/public/sessions.d.ts",
|
|
25
|
+
"import": "./dist/public/sessions.js"
|
|
26
|
+
},
|
|
27
|
+
"./turns": {
|
|
28
|
+
"types": "./dist/public/turns.d.ts",
|
|
29
|
+
"import": "./dist/public/turns.js"
|
|
30
|
+
},
|
|
31
|
+
"./requests": {
|
|
32
|
+
"types": "./dist/public/requests.d.ts",
|
|
33
|
+
"import": "./dist/public/requests.js"
|
|
34
|
+
},
|
|
35
|
+
"./events": {
|
|
36
|
+
"types": "./dist/public/events.d.ts",
|
|
37
|
+
"import": "./dist/public/events.js"
|
|
38
|
+
},
|
|
39
|
+
"./capabilities": {
|
|
40
|
+
"types": "./dist/public/capabilities.d.ts",
|
|
41
|
+
"import": "./dist/public/capabilities.js"
|
|
42
|
+
},
|
|
43
|
+
"./artifacts": {
|
|
44
|
+
"types": "./dist/public/artifacts.d.ts",
|
|
45
|
+
"import": "./dist/public/artifacts.js"
|
|
46
|
+
},
|
|
47
|
+
"./zod": {
|
|
48
|
+
"types": "./dist/zod/index.d.ts",
|
|
49
|
+
"import": "./dist/zod/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./json-schema": {
|
|
52
|
+
"types": "./dist/jsonSchema/index.d.ts",
|
|
53
|
+
"import": "./dist/jsonSchema/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./package.json": "./package.json"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"zod": "4.4.3",
|
|
59
|
+
"@agen-ai/validation": "^0.1.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"ajv": "8.17.1",
|
|
63
|
+
"tsup": "^8.5.0"
|
|
64
|
+
},
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=22.0.0"
|
|
67
|
+
},
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/trevor-nichols/agenai-agent-sdk.git",
|
|
71
|
+
"directory": "packages/agent-protocol"
|
|
72
|
+
},
|
|
73
|
+
"homepage": "https://github.com/trevor-nichols/agenai-agent-sdk#readme",
|
|
74
|
+
"bugs": {
|
|
75
|
+
"url": "https://github.com/trevor-nichols/agenai-agent-sdk/issues"
|
|
76
|
+
},
|
|
77
|
+
"publishConfig": {
|
|
78
|
+
"access": "public",
|
|
79
|
+
"provenance": true
|
|
80
|
+
},
|
|
81
|
+
"scripts": {
|
|
82
|
+
"generate:contracts": "node scripts/generate-contract-surfaces.mjs",
|
|
83
|
+
"check:contracts": "node scripts/generate-contract-surfaces.mjs --check",
|
|
84
|
+
"generate:json-schema": "node --import tsx scripts/generate-json-schemas.mjs",
|
|
85
|
+
"check:json-schema": "node --import tsx scripts/generate-json-schemas.mjs --check",
|
|
86
|
+
"build": "pnpm run clean && pnpm run build:runtime && pnpm run build:types",
|
|
87
|
+
"build:runtime": "tsup",
|
|
88
|
+
"build:types": "tsc --project tsconfig.json --emitDeclarationOnly --outDir dist",
|
|
89
|
+
"dev": "pnpm run build:runtime -- --watch",
|
|
90
|
+
"dev:types": "tsc --project tsconfig.json --emitDeclarationOnly --outDir dist --watch",
|
|
91
|
+
"test": "node --import tsx --test tests/*.test.ts",
|
|
92
|
+
"typecheck": "tsc --noEmit && tsc --project tsconfig.test.json --noEmit",
|
|
93
|
+
"clean": "rimraf dist"
|
|
94
|
+
}
|
|
95
|
+
}
|