@drisp/protocol 0.6.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.
@@ -0,0 +1,145 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://raw.githubusercontent.com/drisplabs/cli/main/packages/protocol/schema/feed-envelope.json",
4
+ "title": "feed-envelope",
5
+ "x-protocol-version": 1,
6
+ "type": "object",
7
+ "properties": {
8
+ "instanceId": {
9
+ "type": "string"
10
+ },
11
+ "athenaSessionId": {
12
+ "type": "string"
13
+ },
14
+ "runId": {
15
+ "type": "string"
16
+ },
17
+ "origin": {
18
+ "type": "string",
19
+ "enum": ["local", "dashboard"]
20
+ },
21
+ "eventId": {
22
+ "type": "string"
23
+ },
24
+ "feedSeq": {
25
+ "type": "integer",
26
+ "minimum": 0,
27
+ "maximum": 9007199254740991
28
+ },
29
+ "emittedAt": {
30
+ "type": "number"
31
+ },
32
+ "feedEvent": {
33
+ "type": "object",
34
+ "properties": {
35
+ "event_id": {
36
+ "type": "string"
37
+ },
38
+ "seq": {
39
+ "type": "integer",
40
+ "minimum": 0,
41
+ "maximum": 9007199254740991
42
+ },
43
+ "ts": {
44
+ "type": "number"
45
+ },
46
+ "session_id": {
47
+ "type": "string"
48
+ },
49
+ "run_id": {
50
+ "type": "string"
51
+ },
52
+ "prompt_id": {
53
+ "type": "string"
54
+ },
55
+ "effort_level": {
56
+ "type": "string"
57
+ },
58
+ "kind": {
59
+ "type": "string"
60
+ },
61
+ "level": {
62
+ "type": "string",
63
+ "enum": ["debug", "info", "warn", "error"]
64
+ },
65
+ "actor_id": {
66
+ "type": "string"
67
+ },
68
+ "cause": {
69
+ "type": "object",
70
+ "properties": {
71
+ "parent_event_id": {
72
+ "type": "string"
73
+ },
74
+ "hook_request_id": {
75
+ "type": "string"
76
+ },
77
+ "tool_use_id": {
78
+ "type": "string"
79
+ },
80
+ "transcript_path": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "additionalProperties": false
85
+ },
86
+ "title": {
87
+ "type": "string"
88
+ },
89
+ "body": {
90
+ "type": "string"
91
+ },
92
+ "ui": {
93
+ "type": "object",
94
+ "properties": {
95
+ "collapsed_default": {
96
+ "type": "boolean"
97
+ },
98
+ "pin": {
99
+ "type": "boolean"
100
+ },
101
+ "badge": {
102
+ "type": "string"
103
+ }
104
+ },
105
+ "additionalProperties": false
106
+ },
107
+ "display": {
108
+ "type": "object",
109
+ "properties": {
110
+ "title": {
111
+ "type": "string"
112
+ }
113
+ },
114
+ "additionalProperties": false
115
+ },
116
+ "data": {},
117
+ "raw": {}
118
+ },
119
+ "required": [
120
+ "event_id",
121
+ "seq",
122
+ "ts",
123
+ "session_id",
124
+ "run_id",
125
+ "kind",
126
+ "level",
127
+ "actor_id",
128
+ "title",
129
+ "data"
130
+ ],
131
+ "additionalProperties": {}
132
+ }
133
+ },
134
+ "required": [
135
+ "instanceId",
136
+ "athenaSessionId",
137
+ "runId",
138
+ "origin",
139
+ "eventId",
140
+ "feedSeq",
141
+ "emittedAt",
142
+ "feedEvent"
143
+ ],
144
+ "additionalProperties": false
145
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://raw.githubusercontent.com/drisplabs/cli/main/packages/protocol/schema/feed-event.json",
4
+ "title": "feed-event",
5
+ "x-protocol-version": 1,
6
+ "type": "object",
7
+ "properties": {
8
+ "event_id": {
9
+ "type": "string"
10
+ },
11
+ "seq": {
12
+ "type": "integer",
13
+ "minimum": 0,
14
+ "maximum": 9007199254740991
15
+ },
16
+ "ts": {
17
+ "type": "number"
18
+ },
19
+ "session_id": {
20
+ "type": "string"
21
+ },
22
+ "run_id": {
23
+ "type": "string"
24
+ },
25
+ "prompt_id": {
26
+ "type": "string"
27
+ },
28
+ "effort_level": {
29
+ "type": "string"
30
+ },
31
+ "kind": {
32
+ "type": "string"
33
+ },
34
+ "level": {
35
+ "type": "string",
36
+ "enum": ["debug", "info", "warn", "error"]
37
+ },
38
+ "actor_id": {
39
+ "type": "string"
40
+ },
41
+ "cause": {
42
+ "type": "object",
43
+ "properties": {
44
+ "parent_event_id": {
45
+ "type": "string"
46
+ },
47
+ "hook_request_id": {
48
+ "type": "string"
49
+ },
50
+ "tool_use_id": {
51
+ "type": "string"
52
+ },
53
+ "transcript_path": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "additionalProperties": false
58
+ },
59
+ "title": {
60
+ "type": "string"
61
+ },
62
+ "body": {
63
+ "type": "string"
64
+ },
65
+ "ui": {
66
+ "type": "object",
67
+ "properties": {
68
+ "collapsed_default": {
69
+ "type": "boolean"
70
+ },
71
+ "pin": {
72
+ "type": "boolean"
73
+ },
74
+ "badge": {
75
+ "type": "string"
76
+ }
77
+ },
78
+ "additionalProperties": false
79
+ },
80
+ "display": {
81
+ "type": "object",
82
+ "properties": {
83
+ "title": {
84
+ "type": "string"
85
+ }
86
+ },
87
+ "additionalProperties": false
88
+ },
89
+ "data": {},
90
+ "raw": {}
91
+ },
92
+ "required": [
93
+ "event_id",
94
+ "seq",
95
+ "ts",
96
+ "session_id",
97
+ "run_id",
98
+ "kind",
99
+ "level",
100
+ "actor_id",
101
+ "title",
102
+ "data"
103
+ ],
104
+ "additionalProperties": {}
105
+ }