@roll-agent/protocol 0.0.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/README.md +58 -0
- package/dist/index.d.ts +1100 -0
- package/dist/index.js +506 -0
- package/dist/schema/roll-runtime-protocol-v1.schema.json +2695 -0
- package/fixtures/v1/invalid-operation-raw-response.json +21 -0
- package/fixtures/v1/invalid-runtime-event-notification.json +17 -0
- package/fixtures/v1/invalid-turn-start-request.json +13 -0
- package/fixtures/v1/valid-initialize-request.json +12 -0
- package/fixtures/v1/valid-runtime-event-notification.json +17 -0
- package/fixtures/v1/valid-thread-snapshot-response.json +31 -0
- package/package.json +40 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jsonrpc": "2.0",
|
|
3
|
+
"id": 4,
|
|
4
|
+
"result": {
|
|
5
|
+
"operation": {
|
|
6
|
+
"id": "00000000-0000-4000-8000-000000000006",
|
|
7
|
+
"sequence": 0,
|
|
8
|
+
"toolCallId": "call-1",
|
|
9
|
+
"agentName": "demo-agent",
|
|
10
|
+
"toolName": "lookup",
|
|
11
|
+
"createdAt": "2026-07-28T12:00:00.000Z",
|
|
12
|
+
"outcome": {
|
|
13
|
+
"kind": "success"
|
|
14
|
+
},
|
|
15
|
+
"display": "visible",
|
|
16
|
+
"raw": {
|
|
17
|
+
"secret": "must-not-cross-the-wire"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jsonrpc": "2.0",
|
|
3
|
+
"method": "runtime.event",
|
|
4
|
+
"params": {
|
|
5
|
+
"protocolVersion": "1.0",
|
|
6
|
+
"runtimeInstanceId": "00000000-0000-4000-8000-000000000001",
|
|
7
|
+
"sequence": -1,
|
|
8
|
+
"timestamp": "2026-07-28T12:00:00.000Z",
|
|
9
|
+
"threadId": "00000000-0000-4000-8000-000000000002",
|
|
10
|
+
"turnId": "00000000-0000-4000-8000-000000000003",
|
|
11
|
+
"event": {
|
|
12
|
+
"type": "message.delta",
|
|
13
|
+
"streamId": "00000000-0000-4000-8000-000000000004",
|
|
14
|
+
"delta": "invalid negative sequence"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jsonrpc": "2.0",
|
|
3
|
+
"method": "runtime.event",
|
|
4
|
+
"params": {
|
|
5
|
+
"protocolVersion": "1.0",
|
|
6
|
+
"runtimeInstanceId": "00000000-0000-4000-8000-000000000001",
|
|
7
|
+
"sequence": 7,
|
|
8
|
+
"timestamp": "2026-07-28T12:00:00.000Z",
|
|
9
|
+
"threadId": "00000000-0000-4000-8000-000000000002",
|
|
10
|
+
"turnId": "00000000-0000-4000-8000-000000000003",
|
|
11
|
+
"event": {
|
|
12
|
+
"type": "message.delta",
|
|
13
|
+
"streamId": "00000000-0000-4000-8000-000000000004",
|
|
14
|
+
"delta": "hello"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jsonrpc": "2.0",
|
|
3
|
+
"id": 2,
|
|
4
|
+
"result": {
|
|
5
|
+
"thread": {
|
|
6
|
+
"id": "00000000-0000-4000-8000-000000000002",
|
|
7
|
+
"title": "Golden thread",
|
|
8
|
+
"model": "fixture-model",
|
|
9
|
+
"createdAt": "2026-07-28T12:00:00.000Z",
|
|
10
|
+
"updatedAt": "2026-07-28T12:01:00.000Z",
|
|
11
|
+
"messageCount": 1
|
|
12
|
+
},
|
|
13
|
+
"messages": {
|
|
14
|
+
"items": [
|
|
15
|
+
{
|
|
16
|
+
"sequence": 0,
|
|
17
|
+
"role": "user",
|
|
18
|
+
"createdAt": "2026-07-28T12:00:00.000Z",
|
|
19
|
+
"parts": [{ "type": "text", "text": "hello" }]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"nextBeforeSequence": null
|
|
23
|
+
},
|
|
24
|
+
"operations": {
|
|
25
|
+
"items": [],
|
|
26
|
+
"nextBeforeSequence": null
|
|
27
|
+
},
|
|
28
|
+
"pendingApprovals": [],
|
|
29
|
+
"transcriptCompleteness": "complete"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@roll-agent/protocol",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/steveoon/roll-agent"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/steveoon/roll-agent",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/steveoon/roll-agent/issues"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./schema": "./dist/schema/roll-runtime-protocol-v1.schema.json",
|
|
19
|
+
"./fixtures/*": "./fixtures/*"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"fixtures"
|
|
27
|
+
],
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"zod": "3.25.76"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "^22.0.0"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/generate-schema.mjs",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"test": "node --experimental-strip-types --test \"src/**/*.test.ts\"",
|
|
38
|
+
"clean": "rm -rf dist"
|
|
39
|
+
}
|
|
40
|
+
}
|