@osstack/protocol 0.15.0 → 0.22.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.
Files changed (73) hide show
  1. package/dist/attention.d.ts +863 -0
  2. package/dist/attention.d.ts.map +1 -0
  3. package/dist/attention.js +112 -0
  4. package/dist/attention.js.map +1 -0
  5. package/dist/autonomy.d.ts +14 -14
  6. package/dist/delivery-contract.d.ts +734 -0
  7. package/dist/delivery-contract.d.ts.map +1 -0
  8. package/dist/delivery-contract.js +111 -0
  9. package/dist/delivery-contract.js.map +1 -0
  10. package/dist/envelope.d.ts +42 -42
  11. package/dist/event.d.ts +4 -4
  12. package/dist/follow-up-delivery.d.ts +1831 -0
  13. package/dist/follow-up-delivery.d.ts.map +1 -0
  14. package/dist/follow-up-delivery.js +174 -0
  15. package/dist/follow-up-delivery.js.map +1 -0
  16. package/dist/follow-up.d.ts +1100 -0
  17. package/dist/follow-up.d.ts.map +1 -0
  18. package/dist/follow-up.js +28 -0
  19. package/dist/follow-up.js.map +1 -0
  20. package/dist/generate.d.ts +1 -0
  21. package/dist/generate.d.ts.map +1 -1
  22. package/dist/generate.js +61 -1
  23. package/dist/generate.js.map +1 -1
  24. package/dist/graph-checkpoint.d.ts +409 -0
  25. package/dist/graph-checkpoint.d.ts.map +1 -0
  26. package/dist/graph-checkpoint.js +91 -0
  27. package/dist/graph-checkpoint.js.map +1 -0
  28. package/dist/graph-worker.d.ts +1663 -0
  29. package/dist/graph-worker.d.ts.map +1 -0
  30. package/dist/graph-worker.js +152 -0
  31. package/dist/graph-worker.js.map +1 -0
  32. package/dist/graph.d.ts +13169 -0
  33. package/dist/graph.d.ts.map +1 -0
  34. package/dist/graph.js +427 -0
  35. package/dist/graph.js.map +1 -0
  36. package/dist/index.d.ts +11 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +11 -2
  39. package/dist/index.js.map +1 -1
  40. package/dist/policy.d.ts +10 -10
  41. package/dist/run.d.ts +4 -4
  42. package/dist/session-continuation-grant.d.ts +414 -0
  43. package/dist/session-continuation-grant.d.ts.map +1 -0
  44. package/dist/session-continuation-grant.js +59 -0
  45. package/dist/session-continuation-grant.js.map +1 -0
  46. package/dist/session-continuation.d.ts +129 -0
  47. package/dist/session-continuation.d.ts.map +1 -0
  48. package/dist/session-continuation.js +30 -0
  49. package/dist/session-continuation.js.map +1 -0
  50. package/dist/task.d.ts +2 -2
  51. package/package.json +11 -10
  52. package/schemas/attention-inbox.schema.json +271 -0
  53. package/schemas/attention-status.schema.json +434 -0
  54. package/schemas/continuation-grant-body.schema.json +189 -0
  55. package/schemas/continuation-output-check.schema.json +65 -0
  56. package/schemas/delivery-contract-v2.schema.json +238 -0
  57. package/schemas/delivery-verification-receipt-v2.schema.json +223 -0
  58. package/schemas/follow-up-create-params.schema.json +78 -0
  59. package/schemas/follow-up-draft-params.schema.json +39 -0
  60. package/schemas/follow-up-list-params.schema.json +42 -0
  61. package/schemas/follow-up-list-result.schema.json +241 -0
  62. package/schemas/follow-up-mutation-result.schema.json +361 -0
  63. package/schemas/follow-up-obligation.schema.json +343 -0
  64. package/schemas/follow-up-resolve-params.schema.json +53 -0
  65. package/schemas/frozen-delivery-contract-v2.schema.json +258 -0
  66. package/schemas/graph-checkpoint-request.schema.json +222 -0
  67. package/schemas/graph-checkpoint-response.schema.json +258 -0
  68. package/schemas/graph-worker.schema.json +546 -0
  69. package/schemas/graph.schema.json +1798 -0
  70. package/schemas/session-continuation-request.schema.json +62 -0
  71. package/schemas/session-decision.schema.json +107 -0
  72. package/schemas/signed-continuation-grant.schema.json +209 -0
  73. package/LICENSE +0 -21
@@ -0,0 +1,241 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "OSStack FollowUpListResult",
4
+ "$comment": "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget.",
5
+ "type": "object",
6
+ "properties": {
7
+ "schema_version": {
8
+ "type": "number",
9
+ "const": 1
10
+ },
11
+ "scope": {
12
+ "type": "object",
13
+ "properties": {
14
+ "repo_path": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 4096
18
+ },
19
+ "default_tenant": {
20
+ "type": "boolean",
21
+ "const": true
22
+ }
23
+ },
24
+ "required": [
25
+ "repo_path",
26
+ "default_tenant"
27
+ ],
28
+ "additionalProperties": false
29
+ },
30
+ "sampled_at_ms": {
31
+ "type": "integer",
32
+ "minimum": 0,
33
+ "maximum": 8640000000000000
34
+ },
35
+ "obligations": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object",
39
+ "properties": {
40
+ "repo_path": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "maxLength": 4096
44
+ },
45
+ "default_tenant": {
46
+ "type": "boolean",
47
+ "const": true
48
+ },
49
+ "obligation_id": {
50
+ "type": "string",
51
+ "format": "uuid"
52
+ },
53
+ "source_session_id": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 256
57
+ },
58
+ "source_task_id": {
59
+ "type": "string",
60
+ "minLength": 1,
61
+ "maxLength": 256
62
+ },
63
+ "source_run_id": {
64
+ "type": "string",
65
+ "minLength": 1,
66
+ "maxLength": 256
67
+ },
68
+ "source_creation_version": {
69
+ "type": "integer",
70
+ "exclusiveMinimum": 0,
71
+ "maximum": 9007199254740990
72
+ },
73
+ "source_identity_digest": {
74
+ "type": "string",
75
+ "pattern": "^[a-f0-9]{64}$"
76
+ },
77
+ "actor": {
78
+ "type": "string",
79
+ "minLength": 1,
80
+ "maxLength": 128
81
+ },
82
+ "destination_ref": {
83
+ "type": "string",
84
+ "const": "local_operator"
85
+ },
86
+ "resolution_condition": {
87
+ "type": "string",
88
+ "enum": [
89
+ "manual",
90
+ "session_completed"
91
+ ]
92
+ },
93
+ "due_at": {
94
+ "anyOf": [
95
+ {
96
+ "type": "integer",
97
+ "minimum": 0,
98
+ "maximum": 8640000000000000
99
+ },
100
+ {
101
+ "type": "null"
102
+ }
103
+ ]
104
+ },
105
+ "state": {
106
+ "type": "string",
107
+ "enum": [
108
+ "open",
109
+ "drafted",
110
+ "fulfilled_local",
111
+ "waived"
112
+ ]
113
+ },
114
+ "revision": {
115
+ "type": "integer",
116
+ "exclusiveMinimum": 0,
117
+ "maximum": 9007199254740990
118
+ },
119
+ "created_at": {
120
+ "type": "integer",
121
+ "minimum": 0,
122
+ "maximum": 8640000000000000
123
+ },
124
+ "updated_at": {
125
+ "type": "integer",
126
+ "minimum": 0,
127
+ "maximum": 8640000000000000
128
+ },
129
+ "source": {
130
+ "anyOf": [
131
+ {
132
+ "type": "object",
133
+ "properties": {
134
+ "state": {
135
+ "type": "string",
136
+ "enum": [
137
+ "starting",
138
+ "running",
139
+ "awaiting_decision",
140
+ "idle",
141
+ "completed",
142
+ "failed",
143
+ "cancelled"
144
+ ]
145
+ },
146
+ "version": {
147
+ "type": "integer",
148
+ "exclusiveMinimum": 0,
149
+ "maximum": 9007199254740990
150
+ },
151
+ "updated_at": {
152
+ "type": "integer",
153
+ "minimum": 0,
154
+ "maximum": 8640000000000000
155
+ }
156
+ },
157
+ "required": [
158
+ "state",
159
+ "version",
160
+ "updated_at"
161
+ ],
162
+ "additionalProperties": false
163
+ },
164
+ {
165
+ "type": "null"
166
+ }
167
+ ]
168
+ },
169
+ "source_missing": {
170
+ "type": "boolean"
171
+ },
172
+ "external_delivery": {
173
+ "type": "string",
174
+ "const": "unsupported"
175
+ },
176
+ "promise_preview": {
177
+ "type": "string",
178
+ "maxLength": 160
179
+ },
180
+ "has_draft": {
181
+ "type": "boolean"
182
+ }
183
+ },
184
+ "required": [
185
+ "repo_path",
186
+ "default_tenant",
187
+ "obligation_id",
188
+ "source_session_id",
189
+ "source_task_id",
190
+ "source_run_id",
191
+ "source_creation_version",
192
+ "source_identity_digest",
193
+ "actor",
194
+ "destination_ref",
195
+ "resolution_condition",
196
+ "due_at",
197
+ "state",
198
+ "revision",
199
+ "created_at",
200
+ "updated_at",
201
+ "source",
202
+ "source_missing",
203
+ "external_delivery",
204
+ "promise_preview",
205
+ "has_draft"
206
+ ],
207
+ "additionalProperties": false
208
+ },
209
+ "maxItems": 50
210
+ },
211
+ "next_cursor": {
212
+ "anyOf": [
213
+ {
214
+ "type": "string",
215
+ "maxLength": 1024
216
+ },
217
+ {
218
+ "type": "null"
219
+ }
220
+ ]
221
+ },
222
+ "overdue_count": {
223
+ "type": "integer",
224
+ "minimum": 0
225
+ },
226
+ "external_delivery": {
227
+ "type": "string",
228
+ "const": "unsupported"
229
+ }
230
+ },
231
+ "required": [
232
+ "schema_version",
233
+ "scope",
234
+ "sampled_at_ms",
235
+ "obligations",
236
+ "next_cursor",
237
+ "overdue_count",
238
+ "external_delivery"
239
+ ],
240
+ "additionalProperties": false
241
+ }
@@ -0,0 +1,361 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "OSStack FollowUpMutationResult",
4
+ "$comment": "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget.",
5
+ "type": "object",
6
+ "properties": {
7
+ "schema_version": {
8
+ "type": "number",
9
+ "const": 1
10
+ },
11
+ "obligation": {
12
+ "type": "object",
13
+ "properties": {
14
+ "repo_path": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 4096
18
+ },
19
+ "default_tenant": {
20
+ "type": "boolean",
21
+ "const": true
22
+ },
23
+ "obligation_id": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ },
27
+ "source_session_id": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "maxLength": 256
31
+ },
32
+ "source_task_id": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 256
36
+ },
37
+ "source_run_id": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "maxLength": 256
41
+ },
42
+ "source_creation_version": {
43
+ "type": "integer",
44
+ "exclusiveMinimum": 0,
45
+ "maximum": 9007199254740990
46
+ },
47
+ "source_identity_digest": {
48
+ "type": "string",
49
+ "pattern": "^[a-f0-9]{64}$"
50
+ },
51
+ "actor": {
52
+ "type": "string",
53
+ "minLength": 1,
54
+ "maxLength": 128
55
+ },
56
+ "promise": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 4096
60
+ },
61
+ "destination_ref": {
62
+ "type": "string",
63
+ "const": "local_operator"
64
+ },
65
+ "resolution_condition": {
66
+ "type": "string",
67
+ "enum": [
68
+ "manual",
69
+ "session_completed"
70
+ ]
71
+ },
72
+ "due_at": {
73
+ "anyOf": [
74
+ {
75
+ "type": "integer",
76
+ "minimum": 0,
77
+ "maximum": 8640000000000000
78
+ },
79
+ {
80
+ "type": "null"
81
+ }
82
+ ]
83
+ },
84
+ "state": {
85
+ "type": "string",
86
+ "enum": [
87
+ "open",
88
+ "drafted",
89
+ "fulfilled_local",
90
+ "waived"
91
+ ]
92
+ },
93
+ "revision": {
94
+ "type": "integer",
95
+ "exclusiveMinimum": 0,
96
+ "maximum": 9007199254740990
97
+ },
98
+ "created_at": {
99
+ "type": "integer",
100
+ "minimum": 0,
101
+ "maximum": 8640000000000000
102
+ },
103
+ "updated_at": {
104
+ "type": "integer",
105
+ "minimum": 0,
106
+ "maximum": 8640000000000000
107
+ },
108
+ "draft": {
109
+ "anyOf": [
110
+ {
111
+ "type": "object",
112
+ "properties": {
113
+ "text": {
114
+ "type": "string",
115
+ "minLength": 1,
116
+ "maxLength": 8192
117
+ },
118
+ "content_digest": {
119
+ "type": "string",
120
+ "pattern": "^[a-f0-9]{64}$"
121
+ },
122
+ "source": {
123
+ "anyOf": [
124
+ {
125
+ "type": "object",
126
+ "properties": {
127
+ "state": {
128
+ "type": "string",
129
+ "enum": [
130
+ "starting",
131
+ "running",
132
+ "awaiting_decision",
133
+ "idle",
134
+ "completed",
135
+ "failed",
136
+ "cancelled"
137
+ ]
138
+ },
139
+ "version": {
140
+ "type": "integer",
141
+ "exclusiveMinimum": 0,
142
+ "maximum": 9007199254740990
143
+ },
144
+ "updated_at": {
145
+ "type": "integer",
146
+ "minimum": 0,
147
+ "maximum": 8640000000000000
148
+ }
149
+ },
150
+ "required": [
151
+ "state",
152
+ "version",
153
+ "updated_at"
154
+ ],
155
+ "additionalProperties": false
156
+ },
157
+ {
158
+ "type": "null"
159
+ }
160
+ ]
161
+ },
162
+ "source_missing": {
163
+ "type": "boolean"
164
+ },
165
+ "created_at": {
166
+ "type": "integer",
167
+ "minimum": 0,
168
+ "maximum": 8640000000000000
169
+ },
170
+ "delivery_state": {
171
+ "type": "string",
172
+ "const": "unsent"
173
+ }
174
+ },
175
+ "required": [
176
+ "text",
177
+ "content_digest",
178
+ "source",
179
+ "source_missing",
180
+ "created_at",
181
+ "delivery_state"
182
+ ],
183
+ "additionalProperties": false
184
+ },
185
+ {
186
+ "type": "null"
187
+ }
188
+ ]
189
+ },
190
+ "resolution": {
191
+ "anyOf": [
192
+ {
193
+ "type": "object",
194
+ "properties": {
195
+ "mode": {
196
+ "type": "string",
197
+ "enum": [
198
+ "waive",
199
+ "condition"
200
+ ]
201
+ },
202
+ "actor": {
203
+ "type": "string",
204
+ "minLength": 1,
205
+ "maxLength": 128
206
+ },
207
+ "reason": {
208
+ "type": "string",
209
+ "minLength": 1,
210
+ "maxLength": 1024
211
+ },
212
+ "source": {
213
+ "anyOf": [
214
+ {
215
+ "type": "object",
216
+ "properties": {
217
+ "state": {
218
+ "type": "string",
219
+ "enum": [
220
+ "starting",
221
+ "running",
222
+ "awaiting_decision",
223
+ "idle",
224
+ "completed",
225
+ "failed",
226
+ "cancelled"
227
+ ]
228
+ },
229
+ "version": {
230
+ "type": "integer",
231
+ "exclusiveMinimum": 0,
232
+ "maximum": 9007199254740990
233
+ },
234
+ "updated_at": {
235
+ "type": "integer",
236
+ "minimum": 0,
237
+ "maximum": 8640000000000000
238
+ }
239
+ },
240
+ "required": [
241
+ "state",
242
+ "version",
243
+ "updated_at"
244
+ ],
245
+ "additionalProperties": false
246
+ },
247
+ {
248
+ "type": "null"
249
+ }
250
+ ]
251
+ },
252
+ "resolved_at": {
253
+ "type": "integer",
254
+ "minimum": 0,
255
+ "maximum": 8640000000000000
256
+ },
257
+ "external_delivery": {
258
+ "type": "string",
259
+ "const": "unsupported"
260
+ }
261
+ },
262
+ "required": [
263
+ "mode",
264
+ "actor",
265
+ "reason",
266
+ "source",
267
+ "resolved_at",
268
+ "external_delivery"
269
+ ],
270
+ "additionalProperties": false
271
+ },
272
+ {
273
+ "type": "null"
274
+ }
275
+ ]
276
+ },
277
+ "source": {
278
+ "anyOf": [
279
+ {
280
+ "type": "object",
281
+ "properties": {
282
+ "state": {
283
+ "type": "string",
284
+ "enum": [
285
+ "starting",
286
+ "running",
287
+ "awaiting_decision",
288
+ "idle",
289
+ "completed",
290
+ "failed",
291
+ "cancelled"
292
+ ]
293
+ },
294
+ "version": {
295
+ "type": "integer",
296
+ "exclusiveMinimum": 0,
297
+ "maximum": 9007199254740990
298
+ },
299
+ "updated_at": {
300
+ "type": "integer",
301
+ "minimum": 0,
302
+ "maximum": 8640000000000000
303
+ }
304
+ },
305
+ "required": [
306
+ "state",
307
+ "version",
308
+ "updated_at"
309
+ ],
310
+ "additionalProperties": false
311
+ },
312
+ {
313
+ "type": "null"
314
+ }
315
+ ]
316
+ },
317
+ "source_missing": {
318
+ "type": "boolean"
319
+ },
320
+ "external_delivery": {
321
+ "type": "string",
322
+ "const": "unsupported"
323
+ }
324
+ },
325
+ "required": [
326
+ "repo_path",
327
+ "default_tenant",
328
+ "obligation_id",
329
+ "source_session_id",
330
+ "source_task_id",
331
+ "source_run_id",
332
+ "source_creation_version",
333
+ "source_identity_digest",
334
+ "actor",
335
+ "promise",
336
+ "destination_ref",
337
+ "resolution_condition",
338
+ "due_at",
339
+ "state",
340
+ "revision",
341
+ "created_at",
342
+ "updated_at",
343
+ "draft",
344
+ "resolution",
345
+ "source",
346
+ "source_missing",
347
+ "external_delivery"
348
+ ],
349
+ "additionalProperties": false
350
+ },
351
+ "duplicate": {
352
+ "type": "boolean"
353
+ }
354
+ },
355
+ "required": [
356
+ "schema_version",
357
+ "obligation",
358
+ "duplicate"
359
+ ],
360
+ "additionalProperties": false
361
+ }