@inf-monkeys-tech/monkeys 1.0.11 → 1.0.13

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,110 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "AgentSessionCommandResult"
8
+ },
9
+ "commandId": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 256
13
+ },
14
+ "sessionId": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 256
18
+ },
19
+ "idempotencyKey": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 256
23
+ },
24
+ "outcome": {
25
+ "type": "string",
26
+ "enum": [
27
+ "accepted",
28
+ "duplicate",
29
+ "rejected",
30
+ "failed"
31
+ ]
32
+ },
33
+ "sessionStatus": {
34
+ "type": "string",
35
+ "enum": [
36
+ "queued",
37
+ "running",
38
+ "waiting_approval",
39
+ "stopping",
40
+ "stopped",
41
+ "completed",
42
+ "failed"
43
+ ]
44
+ },
45
+ "acceptedSequence": {
46
+ "type": "integer",
47
+ "minimum": 0,
48
+ "maximum": 9007199254740991
49
+ },
50
+ "resultEventIds": {
51
+ "default": [],
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 256
57
+ }
58
+ },
59
+ "error": {
60
+ "type": "object",
61
+ "properties": {
62
+ "code": {
63
+ "type": "string",
64
+ "enum": [
65
+ "SESSION_NOT_FOUND",
66
+ "COMMAND_NOT_SUPPORTED",
67
+ "CAPABILITY_UNAVAILABLE",
68
+ "SEQUENCE_CONFLICT",
69
+ "INVALID_SESSION_STATE",
70
+ "TARGET_EVENT_NOT_FOUND",
71
+ "TARGET_EVENT_NOT_RETRYABLE",
72
+ "APPROVAL_NOT_FOUND",
73
+ "APPROVAL_ALREADY_RESOLVED",
74
+ "COMMAND_EXECUTION_FAILED"
75
+ ]
76
+ },
77
+ "message": {
78
+ "type": "string"
79
+ },
80
+ "retryable": {
81
+ "type": "boolean"
82
+ }
83
+ },
84
+ "required": [
85
+ "code",
86
+ "message",
87
+ "retryable"
88
+ ],
89
+ "additionalProperties": false
90
+ },
91
+ "occurredAt": {
92
+ "type": "string",
93
+ "format": "date-time",
94
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
95
+ }
96
+ },
97
+ "required": [
98
+ "contract",
99
+ "commandId",
100
+ "sessionId",
101
+ "idempotencyKey",
102
+ "outcome",
103
+ "sessionStatus",
104
+ "resultEventIds",
105
+ "occurredAt"
106
+ ],
107
+ "additionalProperties": false,
108
+ "$id": "https://schemas.infmonkeys.com/contracts/agent-session-command-result.schema.json",
109
+ "title": "agent-session-command-result"
110
+ }
@@ -0,0 +1,264 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "contract": {
8
+ "type": "string",
9
+ "const": "AgentSessionCommand"
10
+ },
11
+ "commandId": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "maxLength": 256
15
+ },
16
+ "sessionId": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 256
20
+ },
21
+ "idempotencyKey": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 256
25
+ },
26
+ "expectedSequence": {
27
+ "type": "integer",
28
+ "minimum": -1,
29
+ "maximum": 9007199254740991
30
+ },
31
+ "issuedAt": {
32
+ "type": "string",
33
+ "format": "date-time",
34
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
35
+ },
36
+ "commandType": {
37
+ "type": "string",
38
+ "const": "stop"
39
+ },
40
+ "payload": {
41
+ "type": "object",
42
+ "properties": {
43
+ "reason": {
44
+ "type": "string",
45
+ "minLength": 1
46
+ }
47
+ },
48
+ "additionalProperties": false
49
+ }
50
+ },
51
+ "required": [
52
+ "contract",
53
+ "commandId",
54
+ "sessionId",
55
+ "idempotencyKey",
56
+ "expectedSequence",
57
+ "issuedAt",
58
+ "commandType",
59
+ "payload"
60
+ ],
61
+ "additionalProperties": false
62
+ },
63
+ {
64
+ "type": "object",
65
+ "properties": {
66
+ "contract": {
67
+ "type": "string",
68
+ "const": "AgentSessionCommand"
69
+ },
70
+ "commandId": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "maxLength": 256
74
+ },
75
+ "sessionId": {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "maxLength": 256
79
+ },
80
+ "idempotencyKey": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 256
84
+ },
85
+ "expectedSequence": {
86
+ "type": "integer",
87
+ "minimum": -1,
88
+ "maximum": 9007199254740991
89
+ },
90
+ "issuedAt": {
91
+ "type": "string",
92
+ "format": "date-time",
93
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
94
+ },
95
+ "commandType": {
96
+ "type": "string",
97
+ "const": "resume"
98
+ },
99
+ "payload": {
100
+ "type": "object",
101
+ "properties": {
102
+ "resumeEventId": {
103
+ "type": "string",
104
+ "minLength": 1,
105
+ "maxLength": 256
106
+ }
107
+ },
108
+ "additionalProperties": false
109
+ }
110
+ },
111
+ "required": [
112
+ "contract",
113
+ "commandId",
114
+ "sessionId",
115
+ "idempotencyKey",
116
+ "expectedSequence",
117
+ "issuedAt",
118
+ "commandType",
119
+ "payload"
120
+ ],
121
+ "additionalProperties": false
122
+ },
123
+ {
124
+ "type": "object",
125
+ "properties": {
126
+ "contract": {
127
+ "type": "string",
128
+ "const": "AgentSessionCommand"
129
+ },
130
+ "commandId": {
131
+ "type": "string",
132
+ "minLength": 1,
133
+ "maxLength": 256
134
+ },
135
+ "sessionId": {
136
+ "type": "string",
137
+ "minLength": 1,
138
+ "maxLength": 256
139
+ },
140
+ "idempotencyKey": {
141
+ "type": "string",
142
+ "minLength": 1,
143
+ "maxLength": 256
144
+ },
145
+ "expectedSequence": {
146
+ "type": "integer",
147
+ "minimum": -1,
148
+ "maximum": 9007199254740991
149
+ },
150
+ "issuedAt": {
151
+ "type": "string",
152
+ "format": "date-time",
153
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
154
+ },
155
+ "commandType": {
156
+ "type": "string",
157
+ "const": "retry"
158
+ },
159
+ "payload": {
160
+ "type": "object",
161
+ "properties": {
162
+ "sourceEventId": {
163
+ "type": "string",
164
+ "minLength": 1,
165
+ "maxLength": 256
166
+ }
167
+ },
168
+ "required": [
169
+ "sourceEventId"
170
+ ],
171
+ "additionalProperties": false
172
+ }
173
+ },
174
+ "required": [
175
+ "contract",
176
+ "commandId",
177
+ "sessionId",
178
+ "idempotencyKey",
179
+ "expectedSequence",
180
+ "issuedAt",
181
+ "commandType",
182
+ "payload"
183
+ ],
184
+ "additionalProperties": false
185
+ },
186
+ {
187
+ "type": "object",
188
+ "properties": {
189
+ "contract": {
190
+ "type": "string",
191
+ "const": "AgentSessionCommand"
192
+ },
193
+ "commandId": {
194
+ "type": "string",
195
+ "minLength": 1,
196
+ "maxLength": 256
197
+ },
198
+ "sessionId": {
199
+ "type": "string",
200
+ "minLength": 1,
201
+ "maxLength": 256
202
+ },
203
+ "idempotencyKey": {
204
+ "type": "string",
205
+ "minLength": 1,
206
+ "maxLength": 256
207
+ },
208
+ "expectedSequence": {
209
+ "type": "integer",
210
+ "minimum": -1,
211
+ "maximum": 9007199254740991
212
+ },
213
+ "issuedAt": {
214
+ "type": "string",
215
+ "format": "date-time",
216
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
217
+ },
218
+ "commandType": {
219
+ "type": "string",
220
+ "const": "approval"
221
+ },
222
+ "payload": {
223
+ "type": "object",
224
+ "properties": {
225
+ "approvalId": {
226
+ "type": "string",
227
+ "minLength": 1,
228
+ "maxLength": 256
229
+ },
230
+ "decision": {
231
+ "type": "string",
232
+ "enum": [
233
+ "approved",
234
+ "rejected"
235
+ ]
236
+ },
237
+ "reason": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ }
241
+ },
242
+ "required": [
243
+ "approvalId",
244
+ "decision"
245
+ ],
246
+ "additionalProperties": false
247
+ }
248
+ },
249
+ "required": [
250
+ "contract",
251
+ "commandId",
252
+ "sessionId",
253
+ "idempotencyKey",
254
+ "expectedSequence",
255
+ "issuedAt",
256
+ "commandType",
257
+ "payload"
258
+ ],
259
+ "additionalProperties": false
260
+ }
261
+ ],
262
+ "$id": "https://schemas.infmonkeys.com/contracts/agent-session-command.schema.json",
263
+ "title": "agent-session-command"
264
+ }
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "schemas": {
3
+ "agent-session-command": "./agent-session-command.schema.json",
4
+ "agent-session-command-result": "./agent-session-command-result.schema.json",
3
5
  "agent-session-event": "./agent-session-event.schema.json",
4
6
  "agent-session-view-model": "./agent-session-view-model.schema.json",
5
7
  "agent-runtime-event": "./agent-runtime-event.schema.json",