@plurnk/plurnk-contracts 7.5.0 → 9.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 +9 -9
- package/SPEC.md +78 -83
- package/dist/schema/DaemonNotificationEnvelope.json +555 -0
- package/dist/schema/McpServerDefinition.json +1 -1
- package/dist/schema/PlurnkStatement.json +24 -0
- package/dist/schema/ProposalProjection.json +0 -4
- package/dist/src/Application.d.ts +22 -1
- package/dist/src/Application.d.ts.map +1 -1
- package/dist/src/Application.js +480 -15
- package/dist/src/Application.js.map +1 -1
- package/dist/src/ApplicationNotifications.d.ts +59 -28
- package/dist/src/ApplicationNotifications.d.ts.map +1 -1
- package/dist/src/ApplicationNotifications.js +40 -8
- package/dist/src/ApplicationNotifications.js.map +1 -1
- package/dist/src/ApplicationPort.d.ts +26 -7
- package/dist/src/ApplicationPort.d.ts.map +1 -1
- package/dist/src/ApplicationPort.js.map +1 -1
- package/dist/src/ApplicationStream.d.ts +4 -0
- package/dist/src/ApplicationStream.d.ts.map +1 -1
- package/dist/src/ApplicationStream.js.map +1 -1
- package/dist/src/LogRow.d.ts +1 -1
- package/dist/src/LogRow.js +1 -1
- package/dist/src/LogRow.js.map +1 -1
- package/dist/src/PathSyntax.d.ts +0 -1
- package/dist/src/PathSyntax.d.ts.map +1 -1
- package/dist/src/PathSyntax.js +1 -4
- package/dist/src/PathSyntax.js.map +1 -1
- package/dist/src/Validator.d.ts +3 -3
- package/dist/src/Validator.d.ts.map +1 -1
- package/dist/src/Validator.js +8 -16
- package/dist/src/Validator.js.map +1 -1
- package/dist/src/index.d.ts +2 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/types.d.ts +0 -8
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.generated.d.ts +820 -636
- package/dist/src/types.generated.d.ts.map +1 -1
- package/dist/src/types.generated.js.map +1 -1
- package/dist/src/types.js +1 -1
- package/dist/src/types.js.map +1 -1
- package/package.json +3 -3
- package/plurnk.md +1 -8
- package/dist/schema/ApplicationOperationEvent.json +0 -27
- package/dist/schema/CapabilityDescriptor.json +0 -28
- package/dist/schema/CapabilityPolicy.json +0 -22
- package/dist/schema/CapabilityProjection.json +0 -14
- package/dist/schema/CapabilitySelector.json +0 -29
- package/dist/src/CapabilityAdmission.d.ts +0 -11
- package/dist/src/CapabilityAdmission.d.ts.map +0 -1
- package/dist/src/CapabilityAdmission.js +0 -108
- package/dist/src/CapabilityAdmission.js.map +0 -1
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.plurnk.xyz/v0/DaemonNotificationEnvelope.json",
|
|
4
|
+
"title": "DaemonNotificationEnvelope",
|
|
5
|
+
"description": "Canonical discrete DaemonNotification envelope streamed over GET /notifications and delivered to ApplicationPort.subscribeToEvents.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
13
|
+
"event": { "const": "workspace/created" },
|
|
14
|
+
"timestamp": { "type": "number" },
|
|
15
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
16
|
+
"sessionId": { "type": "null" },
|
|
17
|
+
"data": { "$ref": "#/$defs/WorkspaceCreated" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
26
|
+
"event": { "const": "workspace/renamed" },
|
|
27
|
+
"timestamp": { "type": "number" },
|
|
28
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
29
|
+
"sessionId": { "type": "null" },
|
|
30
|
+
"data": { "$ref": "#/$defs/WorkspaceRenamed" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
39
|
+
"event": { "const": "workspace/archived" },
|
|
40
|
+
"timestamp": { "type": "number" },
|
|
41
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
42
|
+
"sessionId": { "type": "null" },
|
|
43
|
+
"data": { "$ref": "#/$defs/WorkspaceArchived" }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
52
|
+
"event": { "const": "functionality/changed" },
|
|
53
|
+
"timestamp": { "type": "number" },
|
|
54
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
55
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
56
|
+
"data": { "$ref": "#/$defs/FunctionalityChanged" }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
63
|
+
"properties": {
|
|
64
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
65
|
+
"event": { "const": "session/created" },
|
|
66
|
+
"timestamp": { "type": "number" },
|
|
67
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
68
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
69
|
+
"data": { "$ref": "#/$defs/SessionCreated" }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
78
|
+
"event": { "const": "session/archived" },
|
|
79
|
+
"timestamp": { "type": "number" },
|
|
80
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
81
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
82
|
+
"data": { "$ref": "#/$defs/SessionArchived" }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
89
|
+
"properties": {
|
|
90
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
91
|
+
"event": { "const": "session/deleted" },
|
|
92
|
+
"timestamp": { "type": "number" },
|
|
93
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
94
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
95
|
+
"data": { "$ref": "#/$defs/SessionDeleted" }
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
102
|
+
"properties": {
|
|
103
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
104
|
+
"event": { "const": "session/titled" },
|
|
105
|
+
"timestamp": { "type": "number" },
|
|
106
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
107
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
108
|
+
"data": { "$ref": "#/$defs/SessionTitled" }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
115
|
+
"properties": {
|
|
116
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
117
|
+
"event": { "const": "session/policy" },
|
|
118
|
+
"timestamp": { "type": "number" },
|
|
119
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
120
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
121
|
+
"data": { "$ref": "#/$defs/SessionPolicy" }
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"type": "object",
|
|
126
|
+
"additionalProperties": false,
|
|
127
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
128
|
+
"properties": {
|
|
129
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
130
|
+
"event": { "const": "loop/proposal" },
|
|
131
|
+
"timestamp": { "type": "number" },
|
|
132
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
133
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
134
|
+
"data": { "$ref": "https://schemas.plurnk.xyz/v0/ProposalProjection.json" }
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "object",
|
|
139
|
+
"additionalProperties": false,
|
|
140
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
141
|
+
"properties": {
|
|
142
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
143
|
+
"event": { "const": "loop/interaction" },
|
|
144
|
+
"timestamp": { "type": "number" },
|
|
145
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
146
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
147
|
+
"data": { "$ref": "https://schemas.plurnk.xyz/v0/ClientInteractionProjection.json" }
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
154
|
+
"properties": {
|
|
155
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
156
|
+
"event": { "const": "loop/gate-settled" },
|
|
157
|
+
"timestamp": { "type": "number" },
|
|
158
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
159
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
160
|
+
"data": { "$ref": "#/$defs/LoopGateSettled" }
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"type": "object",
|
|
165
|
+
"additionalProperties": false,
|
|
166
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
167
|
+
"properties": {
|
|
168
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
169
|
+
"event": { "const": "loop/terminated" },
|
|
170
|
+
"timestamp": { "type": "number" },
|
|
171
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
172
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
173
|
+
"data": { "$ref": "#/$defs/Terminated" }
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "object",
|
|
178
|
+
"additionalProperties": false,
|
|
179
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
180
|
+
"properties": {
|
|
181
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
182
|
+
"event": { "const": "log/entry" },
|
|
183
|
+
"timestamp": { "type": "number" },
|
|
184
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
185
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
186
|
+
"data": { "$ref": "#/$defs/LogEntry" }
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"type": "object",
|
|
191
|
+
"additionalProperties": false,
|
|
192
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
193
|
+
"properties": {
|
|
194
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
195
|
+
"event": { "const": "stream/concluded" },
|
|
196
|
+
"timestamp": { "type": "number" },
|
|
197
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
198
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
199
|
+
"data": { "$ref": "#/$defs/StreamConcluded" }
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "object",
|
|
204
|
+
"additionalProperties": false,
|
|
205
|
+
"required": ["id", "event", "timestamp", "workspaceId", "sessionId", "data"],
|
|
206
|
+
"properties": {
|
|
207
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
208
|
+
"event": { "const": "notice/event" },
|
|
209
|
+
"timestamp": { "type": "number" },
|
|
210
|
+
"workspaceId": { "type": ["integer", "null"], "minimum": 1 },
|
|
211
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
212
|
+
"data": { "$ref": "#/$defs/NoticeEvent" }
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"$defs": {
|
|
217
|
+
"WorkspaceCreated": {
|
|
218
|
+
"type": "object",
|
|
219
|
+
"additionalProperties": false,
|
|
220
|
+
"required": ["id", "name", "projectRoot", "projectLabel"],
|
|
221
|
+
"properties": {
|
|
222
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
223
|
+
"name": { "type": "string", "minLength": 1 },
|
|
224
|
+
"projectRoot": { "type": ["string", "null"] },
|
|
225
|
+
"projectLabel": { "type": ["string", "null"] }
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"WorkspaceRenamed": {
|
|
229
|
+
"type": "object",
|
|
230
|
+
"additionalProperties": false,
|
|
231
|
+
"required": ["id", "name"],
|
|
232
|
+
"properties": {
|
|
233
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
234
|
+
"name": { "type": "string", "minLength": 1 }
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"WorkspaceArchived": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"additionalProperties": false,
|
|
240
|
+
"required": ["id", "archived_at"],
|
|
241
|
+
"properties": {
|
|
242
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
243
|
+
"archived_at": { "type": ["string", "null"] }
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"FunctionalityChanged": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"additionalProperties": false,
|
|
249
|
+
"required": ["workspaceId", "sessionId", "family"],
|
|
250
|
+
"properties": {
|
|
251
|
+
"workspaceId": { "type": "integer", "minimum": 1 },
|
|
252
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
253
|
+
"family": { "type": "string", "minLength": 1 }
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"SessionCreated": {
|
|
257
|
+
"type": "object",
|
|
258
|
+
"additionalProperties": false,
|
|
259
|
+
"required": [
|
|
260
|
+
"id",
|
|
261
|
+
"workspaceId",
|
|
262
|
+
"workspaceName",
|
|
263
|
+
"projectRoot",
|
|
264
|
+
"projectLabel",
|
|
265
|
+
"name",
|
|
266
|
+
"parentSessionId",
|
|
267
|
+
"origin",
|
|
268
|
+
"kind",
|
|
269
|
+
"lifecycle"
|
|
270
|
+
],
|
|
271
|
+
"properties": {
|
|
272
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
273
|
+
"workspaceId": { "type": "integer", "minimum": 1 },
|
|
274
|
+
"workspaceName": { "type": "string", "minLength": 1 },
|
|
275
|
+
"projectRoot": { "type": ["string", "null"] },
|
|
276
|
+
"projectLabel": { "type": ["string", "null"] },
|
|
277
|
+
"name": { "type": "string", "minLength": 1 },
|
|
278
|
+
"parentSessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
279
|
+
"origin": { "enum": ["model", "_plurnk"] },
|
|
280
|
+
"kind": { "enum": ["root", "fork", "work"] },
|
|
281
|
+
"lifecycle": { "enum": ["idle", "queued", "running", "parked", "completed", "cancelled", "failed"] },
|
|
282
|
+
"persona": { "type": ["string", "null"], "minLength": 1 }
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"SessionArchived": {
|
|
286
|
+
"type": "object",
|
|
287
|
+
"additionalProperties": false,
|
|
288
|
+
"required": ["id", "archived_at", "sessionIds"],
|
|
289
|
+
"properties": {
|
|
290
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
291
|
+
"archived_at": { "type": ["string", "null"] },
|
|
292
|
+
"sessionIds": {
|
|
293
|
+
"type": "array",
|
|
294
|
+
"items": { "type": "integer", "minimum": 1 }
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"SessionDeleted": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"additionalProperties": false,
|
|
301
|
+
"required": ["id", "sessionIds"],
|
|
302
|
+
"properties": {
|
|
303
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
304
|
+
"sessionIds": {
|
|
305
|
+
"type": "array",
|
|
306
|
+
"items": { "type": "integer", "minimum": 1 }
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"SessionTitled": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"additionalProperties": false,
|
|
313
|
+
"required": ["id", "title"],
|
|
314
|
+
"properties": {
|
|
315
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
316
|
+
"title": { "type": "string", "minLength": 1 }
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"SessionPolicy": {
|
|
320
|
+
"type": "object",
|
|
321
|
+
"additionalProperties": false,
|
|
322
|
+
"required": ["sessionId", "model", "spawnModel"],
|
|
323
|
+
"properties": {
|
|
324
|
+
"sessionId": { "type": "integer", "minimum": 1 },
|
|
325
|
+
"model": {
|
|
326
|
+
"oneOf": [
|
|
327
|
+
{ "$ref": "https://schemas.plurnk.xyz/v0/ModelRoute.json" },
|
|
328
|
+
{ "type": "null" }
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
"spawnModel": {
|
|
332
|
+
"oneOf": [
|
|
333
|
+
{ "$ref": "https://schemas.plurnk.xyz/v0/ModelRoute.json" },
|
|
334
|
+
{ "type": "null" }
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
"persona": { "type": ["string", "null"], "minLength": 1 }
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"LoopGateSettled": {
|
|
341
|
+
"oneOf": [
|
|
342
|
+
{
|
|
343
|
+
"type": "object",
|
|
344
|
+
"additionalProperties": false,
|
|
345
|
+
"required": ["kind", "sessionId", "loopId", "logEntryId", "decision", "outcome"],
|
|
346
|
+
"properties": {
|
|
347
|
+
"kind": { "const": "proposal" },
|
|
348
|
+
"sessionId": { "type": "integer", "minimum": 1 },
|
|
349
|
+
"loopId": { "type": "integer", "minimum": 1 },
|
|
350
|
+
"logEntryId": { "type": "integer", "minimum": 1 },
|
|
351
|
+
"decision": { "enum": ["accept", "reject", "cancel"] },
|
|
352
|
+
"outcome": { "type": "string", "minLength": 1 }
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"type": "object",
|
|
357
|
+
"additionalProperties": false,
|
|
358
|
+
"required": ["kind", "sessionId", "loopId", "interactionId", "action"],
|
|
359
|
+
"properties": {
|
|
360
|
+
"kind": { "const": "interaction" },
|
|
361
|
+
"sessionId": { "type": "integer", "minimum": 1 },
|
|
362
|
+
"loopId": { "type": "integer", "minimum": 1 },
|
|
363
|
+
"interactionId": { "type": "integer", "minimum": 1 },
|
|
364
|
+
"action": { "enum": ["accept", "decline", "cancel"] }
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
"Terminated": {
|
|
370
|
+
"type": "object",
|
|
371
|
+
"additionalProperties": false,
|
|
372
|
+
"required": [
|
|
373
|
+
"sessionId",
|
|
374
|
+
"loopId",
|
|
375
|
+
"loopSeq",
|
|
376
|
+
"result",
|
|
377
|
+
"hitMaxTurns",
|
|
378
|
+
"turnIds",
|
|
379
|
+
"attributions",
|
|
380
|
+
"terminatedAt",
|
|
381
|
+
"usage"
|
|
382
|
+
],
|
|
383
|
+
"properties": {
|
|
384
|
+
"sessionId": { "type": "integer", "minimum": 1 },
|
|
385
|
+
"loopId": { "type": "integer", "minimum": 1 },
|
|
386
|
+
"loopSeq": { "type": "integer", "minimum": 1 },
|
|
387
|
+
"result": { "$ref": "https://schemas.plurnk.xyz/v0/OperationResult.json" },
|
|
388
|
+
"hitMaxTurns": { "type": "boolean" },
|
|
389
|
+
"turnIds": {
|
|
390
|
+
"type": "array",
|
|
391
|
+
"items": { "type": "integer", "minimum": 1 }
|
|
392
|
+
},
|
|
393
|
+
"attributions": {
|
|
394
|
+
"type": "array",
|
|
395
|
+
"items": { "type": "string" }
|
|
396
|
+
},
|
|
397
|
+
"terminatedAt": { "type": "number" },
|
|
398
|
+
"usage": {
|
|
399
|
+
"type": "object",
|
|
400
|
+
"additionalProperties": false,
|
|
401
|
+
"required": [
|
|
402
|
+
"accounting",
|
|
403
|
+
"curationWeight",
|
|
404
|
+
"curationBudget",
|
|
405
|
+
"contextTokens",
|
|
406
|
+
"contextCapacity",
|
|
407
|
+
"meta"
|
|
408
|
+
],
|
|
409
|
+
"properties": {
|
|
410
|
+
"accounting": { "$ref": "https://schemas.plurnk.xyz/ProviderAccounting.json" },
|
|
411
|
+
"curationWeight": { "type": ["number", "null"] },
|
|
412
|
+
"curationBudget": { "type": ["number", "null"] },
|
|
413
|
+
"contextTokens": { "type": ["number", "null"] },
|
|
414
|
+
"contextCapacity": { "type": ["number", "null"] },
|
|
415
|
+
"meta": {
|
|
416
|
+
"type": "object",
|
|
417
|
+
"additionalProperties": {}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"LogEntry": {
|
|
424
|
+
"type": "object",
|
|
425
|
+
"additionalProperties": false,
|
|
426
|
+
"required": ["entry"],
|
|
427
|
+
"properties": {
|
|
428
|
+
"entry": {
|
|
429
|
+
"type": "object",
|
|
430
|
+
"additionalProperties": false,
|
|
431
|
+
"required": [
|
|
432
|
+
"id",
|
|
433
|
+
"session_id",
|
|
434
|
+
"session_name",
|
|
435
|
+
"loop_id",
|
|
436
|
+
"loop_seq",
|
|
437
|
+
"turn_id",
|
|
438
|
+
"turn_seq",
|
|
439
|
+
"sequence",
|
|
440
|
+
"at",
|
|
441
|
+
"origin",
|
|
442
|
+
"source",
|
|
443
|
+
"op",
|
|
444
|
+
"scheme",
|
|
445
|
+
"username",
|
|
446
|
+
"password",
|
|
447
|
+
"hostname",
|
|
448
|
+
"port",
|
|
449
|
+
"pathname",
|
|
450
|
+
"query",
|
|
451
|
+
"fragment",
|
|
452
|
+
"signal",
|
|
453
|
+
"lineMarker",
|
|
454
|
+
"tx",
|
|
455
|
+
"mimetype_tx",
|
|
456
|
+
"rx",
|
|
457
|
+
"mimetype_rx",
|
|
458
|
+
"status_rx",
|
|
459
|
+
"weight",
|
|
460
|
+
"attrs",
|
|
461
|
+
"state"
|
|
462
|
+
],
|
|
463
|
+
"properties": {
|
|
464
|
+
"id": { "type": "integer", "minimum": 1 },
|
|
465
|
+
"session_id": { "type": "integer", "minimum": 1 },
|
|
466
|
+
"session_name": { "type": "string", "minLength": 1 },
|
|
467
|
+
"loop_id": { "type": "integer", "minimum": 1 },
|
|
468
|
+
"loop_seq": { "type": "integer", "minimum": 1 },
|
|
469
|
+
"turn_id": { "type": "integer", "minimum": 1 },
|
|
470
|
+
"turn_seq": { "type": "integer", "minimum": 1 },
|
|
471
|
+
"sequence": { "type": "integer", "minimum": 1 },
|
|
472
|
+
"at": { "type": "string", "minLength": 1 },
|
|
473
|
+
"origin": { "type": "string", "minLength": 1 },
|
|
474
|
+
"source": { "type": ["string", "null"] },
|
|
475
|
+
"op": { "type": ["string", "null"] },
|
|
476
|
+
"scheme": { "type": ["string", "null"] },
|
|
477
|
+
"username": { "type": ["string", "null"] },
|
|
478
|
+
"password": { "type": ["string", "null"] },
|
|
479
|
+
"hostname": { "type": ["string", "null"] },
|
|
480
|
+
"port": { "type": ["integer", "null"] },
|
|
481
|
+
"pathname": { "type": ["string", "null"] },
|
|
482
|
+
"query": { "type": ["string", "null"] },
|
|
483
|
+
"fragment": { "type": ["string", "null"] },
|
|
484
|
+
"signal": {},
|
|
485
|
+
"lineMarker": {},
|
|
486
|
+
"tx": {},
|
|
487
|
+
"mimetype_tx": { "type": "string" },
|
|
488
|
+
"rx": {},
|
|
489
|
+
"mimetype_rx": { "type": "string" },
|
|
490
|
+
"status_rx": { "type": "integer" },
|
|
491
|
+
"weight": { "type": "number" },
|
|
492
|
+
"attrs": {},
|
|
493
|
+
"state": { "enum": ["proposed", "resolved", "failed", "cancelled"] },
|
|
494
|
+
"reasoning": { "type": "string" },
|
|
495
|
+
"reasoning_model_call_id": { "type": "integer" },
|
|
496
|
+
"reasoning_request_sequence": { "type": "integer" },
|
|
497
|
+
"invocation": { "type": "string" },
|
|
498
|
+
"answering": { "type": "string" },
|
|
499
|
+
"replied_to_sources": {
|
|
500
|
+
"type": "array",
|
|
501
|
+
"items": { "type": "string" }
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"StreamConcluded": {
|
|
508
|
+
"type": "object",
|
|
509
|
+
"additionalProperties": false,
|
|
510
|
+
"required": [
|
|
511
|
+
"sessionId",
|
|
512
|
+
"entryId",
|
|
513
|
+
"target",
|
|
514
|
+
"subscriptionId",
|
|
515
|
+
"result",
|
|
516
|
+
"scheme",
|
|
517
|
+
"summary",
|
|
518
|
+
"wakeAction"
|
|
519
|
+
],
|
|
520
|
+
"properties": {
|
|
521
|
+
"sessionId": { "type": "integer", "minimum": 1 },
|
|
522
|
+
"entryId": { "type": "integer", "minimum": 1 },
|
|
523
|
+
"target": { "type": "string", "minLength": 1 },
|
|
524
|
+
"subscriptionId": { "type": "integer", "minimum": 1 },
|
|
525
|
+
"result": { "$ref": "https://schemas.plurnk.xyz/v0/OperationResult.json" },
|
|
526
|
+
"scheme": { "type": "string", "minLength": 1 },
|
|
527
|
+
"summary": { "type": "string" },
|
|
528
|
+
"wakeAction": { "type": "string", "minLength": 1 },
|
|
529
|
+
"loop_seq": { "type": "integer", "minimum": 1 },
|
|
530
|
+
"turn_seq": { "type": "integer", "minimum": 1 },
|
|
531
|
+
"sequence": { "type": "integer", "minimum": 1 }
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"NoticeEvent": {
|
|
535
|
+
"type": "object",
|
|
536
|
+
"additionalProperties": false,
|
|
537
|
+
"required": ["sessionId", "loopId", "notice"],
|
|
538
|
+
"properties": {
|
|
539
|
+
"sessionId": { "type": ["integer", "null"], "minimum": 1 },
|
|
540
|
+
"loopId": { "type": "integer", "minimum": 0 },
|
|
541
|
+
"notice": { "$ref": "https://schemas.plurnk.xyz/v0/Notice.json" }
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"NotificationsResync": {
|
|
545
|
+
"type": "object",
|
|
546
|
+
"additionalProperties": false,
|
|
547
|
+
"required": ["reason", "epoch", "latestId"],
|
|
548
|
+
"properties": {
|
|
549
|
+
"reason": { "enum": ["restarted", "evicted", "malformed"] },
|
|
550
|
+
"epoch": { "type": "string", "minLength": 1 },
|
|
551
|
+
"latestId": { "type": "integer", "minimum": 0 }
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schemas.plurnk.xyz/v0/McpServerDefinition.json",
|
|
4
4
|
"title": "McpServerDefinition",
|
|
5
|
-
"description": "One complete MCP connection definition. Configuration sources supply it; workspace management persists it without
|
|
5
|
+
"description": "One complete MCP connection definition. Configuration sources supply it; workspace management persists it without rewriting configuration files.",
|
|
6
6
|
"oneOf": [
|
|
7
7
|
{
|
|
8
8
|
"$ref": "#/$defs/stdio"
|
|
@@ -589,6 +589,18 @@
|
|
|
589
589
|
"body": {
|
|
590
590
|
"type": "string"
|
|
591
591
|
},
|
|
592
|
+
"persona": {
|
|
593
|
+
"type": "string",
|
|
594
|
+
"minLength": 1
|
|
595
|
+
},
|
|
596
|
+
"model": {
|
|
597
|
+
"type": "string",
|
|
598
|
+
"minLength": 1
|
|
599
|
+
},
|
|
600
|
+
"effort": {
|
|
601
|
+
"type": "string",
|
|
602
|
+
"minLength": 1
|
|
603
|
+
},
|
|
592
604
|
"position": {
|
|
593
605
|
"$ref": "#/$defs/PositionRef"
|
|
594
606
|
}
|
|
@@ -621,6 +633,18 @@
|
|
|
621
633
|
"body": {
|
|
622
634
|
"type": "string"
|
|
623
635
|
},
|
|
636
|
+
"persona": {
|
|
637
|
+
"type": "string",
|
|
638
|
+
"minLength": 1
|
|
639
|
+
},
|
|
640
|
+
"model": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"minLength": 1
|
|
643
|
+
},
|
|
644
|
+
"effort": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"minLength": 1
|
|
647
|
+
},
|
|
624
648
|
"position": {
|
|
625
649
|
"$ref": "#/$defs/PositionRef"
|
|
626
650
|
}
|
|
@@ -117,10 +117,6 @@
|
|
|
117
117
|
"disposition": {
|
|
118
118
|
"$ref": "https://schemas.plurnk.xyz/v0/ProposalDisposition.json"
|
|
119
119
|
},
|
|
120
|
-
"selector": {
|
|
121
|
-
"description": "The capability selector for the proposed operation, persisted on allow_always / reject_always.",
|
|
122
|
-
"$ref": "https://schemas.plurnk.xyz/v0/CapabilitySelector.json"
|
|
123
|
-
},
|
|
124
120
|
"subject": {
|
|
125
121
|
"description": "Structured ACP v2 permission subject for the proposed operation.",
|
|
126
122
|
"oneOf": [
|