@ifsoul/core 0.3.0 → 0.4.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 (137) hide show
  1. package/README.md +28 -34
  2. package/dist/packages/memory/src/sql.js +54 -5
  3. package/dist/packages/protocol/src/generated/validators.cjs +1 -1
  4. package/dist/packages/protocol/src/index.d.ts +1 -6
  5. package/dist/packages/protocol/src/index.js +3 -16
  6. package/dist/packages/protocol/src/types.d.ts +1 -1
  7. package/dist/packages/runtime/src/index.js +1 -1
  8. package/package.json +2 -3
  9. package/packages/protocol/schemas/current/archive.schema.json +16 -16
  10. package/packages/protocol/schemas/current/character.schema.json +21 -21
  11. package/packages/protocol/schemas/current/common.schema.json +15 -15
  12. package/packages/protocol/schemas/current/context.schema.json +24 -24
  13. package/packages/protocol/schemas/current/conversation.schema.json +39 -39
  14. package/packages/protocol/schemas/current/environment.schema.json +18 -18
  15. package/packages/protocol/schemas/current/memory.schema.json +66 -66
  16. package/packages/protocol/schemas/current/model-provider.schema.json +40 -40
  17. package/packages/protocol/schemas/current/planning.schema.json +61 -61
  18. package/packages/protocol/schemas/current/provider-common.schema.json +6 -6
  19. package/release.json +7 -12
  20. package/specs/README.md +3 -86
  21. package/specs/current/README.md +3 -5
  22. package/specs/current/examples/archive-fork.json +12 -12
  23. package/specs/current/examples/archive-resume.json +12 -12
  24. package/specs/current/examples/character-instance.json +1 -1
  25. package/specs/current/examples/character-template.json +1 -1
  26. package/specs/current/examples/context-after-inspection.json +1 -1
  27. package/specs/current/examples/context-chat.json +1 -1
  28. package/specs/current/examples/context-daily.json +1 -1
  29. package/specs/current/examples/context-no-speech.json +1 -1
  30. package/specs/current/examples/conversation-delivery.json +1 -1
  31. package/specs/current/examples/conversation-live-request.json +1 -1
  32. package/specs/current/examples/conversation-live-response.json +1 -1
  33. package/specs/current/examples/conversation-no-speech-request.json +1 -1
  34. package/specs/current/examples/conversation-no-speech-response.json +1 -1
  35. package/specs/current/examples/conversation-requested-request.json +1 -1
  36. package/specs/current/examples/conversation-requested-response.json +1 -1
  37. package/specs/current/examples/environment-chat.json +1 -1
  38. package/specs/current/examples/environment-game.json +1 -1
  39. package/specs/current/examples/environment-no-speech.json +1 -1
  40. package/specs/current/examples/intent-checkpoint.json +1 -1
  41. package/specs/current/examples/memory-episode.json +1 -1
  42. package/specs/current/examples/memory-event-conversation.json +1 -1
  43. package/specs/current/examples/memory-event-observed.json +2 -2
  44. package/specs/current/examples/memory-event-plan-proposal.json +2 -2
  45. package/specs/current/examples/memory-event-proposed.json +2 -2
  46. package/specs/current/examples/memory-fact.json +1 -1
  47. package/specs/current/examples/memory-relationship.json +1 -1
  48. package/specs/current/examples/memory-working-context.json +1 -1
  49. package/specs/current/examples/plan-cancel-request.json +1 -1
  50. package/specs/current/examples/plan-cancel-result.json +1 -1
  51. package/specs/current/examples/plan-daily.json +1 -1
  52. package/specs/current/examples/plan-partial-decision.json +1 -1
  53. package/specs/current/examples/portable-memory.jsonl +9 -9
  54. package/specs/current/examples/task-outcome.json +1 -1
  55. package/specs/current/examples/task-progress.json +1 -1
  56. package/specs/current/model-provider/examples/capabilities.json +1 -1
  57. package/specs/current/model-provider/examples/error.json +1 -1
  58. package/specs/current/model-provider/examples/request.json +1 -1
  59. package/specs/current/model-provider/examples/response.json +1 -1
  60. package/docs/npm-publishing.md +0 -44
  61. package/packages/protocol/schemas/action-result.schema.json +0 -187
  62. package/packages/protocol/schemas/action.schema.json +0 -68
  63. package/packages/protocol/schemas/archive-manifest.schema.json +0 -126
  64. package/packages/protocol/schemas/capability.schema.json +0 -131
  65. package/packages/protocol/schemas/character-instance.schema.json +0 -73
  66. package/packages/protocol/schemas/character-template.schema.json +0 -67
  67. package/packages/protocol/schemas/common.schema.json +0 -154
  68. package/packages/protocol/schemas/derived-memory.schema.json +0 -145
  69. package/packages/protocol/schemas/memory-event.schema.json +0 -123
  70. package/packages/protocol/schemas/model-provider.schema.json +0 -326
  71. package/packages/protocol/schemas/perception.schema.json +0 -89
  72. package/packages/protocol/schemas/permission-policy.schema.json +0 -153
  73. package/packages/protocol/schemas/v0.2/archive.schema.json +0 -205
  74. package/packages/protocol/schemas/v0.2/character.schema.json +0 -344
  75. package/packages/protocol/schemas/v0.2/common.schema.json +0 -239
  76. package/packages/protocol/schemas/v0.2/context.schema.json +0 -230
  77. package/packages/protocol/schemas/v0.2/conversation.schema.json +0 -340
  78. package/packages/protocol/schemas/v0.2/environment.schema.json +0 -244
  79. package/packages/protocol/schemas/v0.2/memory.schema.json +0 -495
  80. package/packages/protocol/schemas/v0.2/planning.schema.json +0 -443
  81. package/packages/protocol/schemas/world-event.schema.json +0 -74
  82. package/specs/character/README.md +0 -84
  83. package/specs/character/examples/archive-manifest.json +0 -32
  84. package/specs/character/examples/character-instance.json +0 -20
  85. package/specs/character/examples/character-template.json +0 -19
  86. package/specs/memory/README.md +0 -80
  87. package/specs/memory/examples/derived-memory.json +0 -21
  88. package/specs/memory/examples/memory-event.json +0 -35
  89. package/specs/model-provider/README.md +0 -85
  90. package/specs/model-provider/examples/capabilities.json +0 -10
  91. package/specs/model-provider/examples/error.json +0 -18
  92. package/specs/model-provider/examples/request.json +0 -17
  93. package/specs/model-provider/examples/response.json +0 -19
  94. package/specs/v0.2/README.md +0 -421
  95. package/specs/v0.2/examples/archive-fork.json +0 -64
  96. package/specs/v0.2/examples/archive-resume.json +0 -63
  97. package/specs/v0.2/examples/character-instance.json +0 -57
  98. package/specs/v0.2/examples/character-template.json +0 -45
  99. package/specs/v0.2/examples/context-after-inspection.json +0 -44
  100. package/specs/v0.2/examples/context-chat.json +0 -27
  101. package/specs/v0.2/examples/context-daily.json +0 -69
  102. package/specs/v0.2/examples/context-no-speech.json +0 -27
  103. package/specs/v0.2/examples/conversation-delivery.json +0 -17
  104. package/specs/v0.2/examples/conversation-live-request.json +0 -31
  105. package/specs/v0.2/examples/conversation-live-response.json +0 -23
  106. package/specs/v0.2/examples/conversation-no-speech-request.json +0 -23
  107. package/specs/v0.2/examples/conversation-no-speech-response.json +0 -22
  108. package/specs/v0.2/examples/conversation-requested-request.json +0 -31
  109. package/specs/v0.2/examples/conversation-requested-response.json +0 -23
  110. package/specs/v0.2/examples/environment-chat.json +0 -43
  111. package/specs/v0.2/examples/environment-game.json +0 -80
  112. package/specs/v0.2/examples/environment-no-speech.json +0 -47
  113. package/specs/v0.2/examples/intent-checkpoint.json +0 -29
  114. package/specs/v0.2/examples/memory-episode.json +0 -28
  115. package/specs/v0.2/examples/memory-event-conversation.json +0 -32
  116. package/specs/v0.2/examples/memory-event-observed.json +0 -50
  117. package/specs/v0.2/examples/memory-event-plan-proposal.json +0 -82
  118. package/specs/v0.2/examples/memory-event-proposed.json +0 -53
  119. package/specs/v0.2/examples/memory-fact.json +0 -23
  120. package/specs/v0.2/examples/memory-relationship.json +0 -25
  121. package/specs/v0.2/examples/memory-working-context.json +0 -24
  122. package/specs/v0.2/examples/plan-cancel-request.json +0 -16
  123. package/specs/v0.2/examples/plan-cancel-result.json +0 -21
  124. package/specs/v0.2/examples/plan-daily.json +0 -57
  125. package/specs/v0.2/examples/plan-partial-decision.json +0 -28
  126. package/specs/v0.2/examples/portable-memory.jsonl +0 -9
  127. package/specs/v0.2/examples/task-outcome.json +0 -21
  128. package/specs/v0.2/examples/task-progress.json +0 -19
  129. package/specs/world-adapter/README.md +0 -114
  130. package/specs/world-adapter/examples/action-result-unknown.json +0 -23
  131. package/specs/world-adapter/examples/action-result.json +0 -45
  132. package/specs/world-adapter/examples/action.json +0 -17
  133. package/specs/world-adapter/examples/capability.json +0 -44
  134. package/specs/world-adapter/examples/perception.json +0 -30
  135. package/specs/world-adapter/examples/permission-decision.json +0 -14
  136. package/specs/world-adapter/examples/permission-policy.json +0 -17
  137. package/specs/world-adapter/examples/world-event.json +0 -25
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:memory",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:memory",
4
4
  "oneOf": [
5
5
  {
6
6
  "$ref": "#/$defs/event"
@@ -26,28 +26,28 @@
26
26
  "type": "object",
27
27
  "properties": {
28
28
  "schemaVersion": {
29
- "const": "0.3.0"
29
+ "const": "0.4.0"
30
30
  },
31
31
  "kind": {
32
32
  "const": "memory-event"
33
33
  },
34
34
  "memoryId": {
35
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
35
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
36
36
  },
37
37
  "characterId": {
38
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
38
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
39
39
  },
40
40
  "recordedAt": {
41
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
41
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
42
42
  },
43
43
  "scope": {
44
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/scope"
44
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/scope"
45
45
  },
46
46
  "provenance": {
47
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/provenance"
47
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/provenance"
48
48
  },
49
49
  "eventType": {
50
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
50
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
51
51
  },
52
52
  "summary": {
53
53
  "type": "string",
@@ -57,28 +57,28 @@
57
57
  "participantIds": {
58
58
  "type": "array",
59
59
  "items": {
60
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
60
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
61
61
  },
62
62
  "minItems": 0,
63
63
  "maxItems": 32,
64
64
  "uniqueItems": true
65
65
  },
66
66
  "environmentId": {
67
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
67
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
68
68
  },
69
69
  "sessionId": {
70
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
70
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
71
71
  },
72
72
  "worldTime": {
73
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/worldTime"
73
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/worldTime"
74
74
  },
75
75
  "extensions": {
76
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
76
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
77
77
  },
78
78
  "requiredExtensions": {
79
79
  "type": "array",
80
80
  "items": {
81
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
81
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
82
82
  },
83
83
  "minItems": 0,
84
84
  "maxItems": 16,
@@ -108,25 +108,25 @@
108
108
  "type": "object",
109
109
  "properties": {
110
110
  "schemaVersion": {
111
- "const": "0.3.0"
111
+ "const": "0.4.0"
112
112
  },
113
113
  "kind": {
114
114
  "const": "working-context"
115
115
  },
116
116
  "memoryId": {
117
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
117
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
118
118
  },
119
119
  "characterId": {
120
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
120
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
121
121
  },
122
122
  "recordedAt": {
123
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
123
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
124
124
  },
125
125
  "scope": {
126
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/scope"
126
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/scope"
127
127
  },
128
128
  "provenance": {
129
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/provenance"
129
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/provenance"
130
130
  },
131
131
  "summary": {
132
132
  "type": "string",
@@ -146,22 +146,22 @@
146
146
  "relevantMemoryIds": {
147
147
  "type": "array",
148
148
  "items": {
149
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
149
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
150
150
  },
151
151
  "minItems": 0,
152
152
  "maxItems": 64,
153
153
  "uniqueItems": true
154
154
  },
155
155
  "expiresAt": {
156
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
156
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
157
157
  },
158
158
  "extensions": {
159
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
159
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
160
160
  },
161
161
  "requiredExtensions": {
162
162
  "type": "array",
163
163
  "items": {
164
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
164
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
165
165
  },
166
166
  "minItems": 0,
167
167
  "maxItems": 16,
@@ -187,25 +187,25 @@
187
187
  "type": "object",
188
188
  "properties": {
189
189
  "schemaVersion": {
190
- "const": "0.3.0"
190
+ "const": "0.4.0"
191
191
  },
192
192
  "kind": {
193
193
  "const": "memory-episode"
194
194
  },
195
195
  "memoryId": {
196
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
196
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
197
197
  },
198
198
  "characterId": {
199
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
199
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
200
200
  },
201
201
  "recordedAt": {
202
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
202
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
203
203
  },
204
204
  "scope": {
205
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/scope"
205
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/scope"
206
206
  },
207
207
  "provenance": {
208
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/provenance"
208
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/provenance"
209
209
  },
210
210
  "summary": {
211
211
  "type": "string",
@@ -215,22 +215,22 @@
215
215
  "sourceMemoryIds": {
216
216
  "type": "array",
217
217
  "items": {
218
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
218
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
219
219
  },
220
220
  "minItems": 1,
221
221
  "maxItems": 64,
222
222
  "uniqueItems": true
223
223
  },
224
224
  "period": {
225
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/period"
225
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/period"
226
226
  },
227
227
  "extensions": {
228
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
228
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
229
229
  },
230
230
  "requiredExtensions": {
231
231
  "type": "array",
232
232
  "items": {
233
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
233
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
234
234
  },
235
235
  "minItems": 0,
236
236
  "maxItems": 16,
@@ -255,25 +255,25 @@
255
255
  "type": "object",
256
256
  "properties": {
257
257
  "schemaVersion": {
258
- "const": "0.3.0"
258
+ "const": "0.4.0"
259
259
  },
260
260
  "kind": {
261
261
  "const": "memory-fact"
262
262
  },
263
263
  "memoryId": {
264
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
264
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
265
265
  },
266
266
  "characterId": {
267
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
267
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
268
268
  },
269
269
  "recordedAt": {
270
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
270
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
271
271
  },
272
272
  "scope": {
273
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/scope"
273
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/scope"
274
274
  },
275
275
  "provenance": {
276
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/provenance"
276
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/provenance"
277
277
  },
278
278
  "claim": {
279
279
  "type": "string",
@@ -283,7 +283,7 @@
283
283
  "sourceMemoryIds": {
284
284
  "type": "array",
285
285
  "items": {
286
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
286
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
287
287
  },
288
288
  "minItems": 1,
289
289
  "maxItems": 64,
@@ -295,12 +295,12 @@
295
295
  "maximum": 1
296
296
  },
297
297
  "extensions": {
298
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
298
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
299
299
  },
300
300
  "requiredExtensions": {
301
301
  "type": "array",
302
302
  "items": {
303
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
303
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
304
304
  },
305
305
  "minItems": 0,
306
306
  "maxItems": 16,
@@ -324,34 +324,34 @@
324
324
  "type": "object",
325
325
  "properties": {
326
326
  "schemaVersion": {
327
- "const": "0.3.0"
327
+ "const": "0.4.0"
328
328
  },
329
329
  "kind": {
330
330
  "const": "memory-relationship"
331
331
  },
332
332
  "memoryId": {
333
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
333
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
334
334
  },
335
335
  "characterId": {
336
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
336
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
337
337
  },
338
338
  "recordedAt": {
339
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
339
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
340
340
  },
341
341
  "scope": {
342
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/scope"
342
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/scope"
343
343
  },
344
344
  "provenance": {
345
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/provenance"
345
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/provenance"
346
346
  },
347
347
  "subjectParticipantId": {
348
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
348
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
349
349
  },
350
350
  "objectParticipantId": {
351
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
351
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
352
352
  },
353
353
  "relation": {
354
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
354
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
355
355
  },
356
356
  "description": {
357
357
  "type": "string",
@@ -361,19 +361,19 @@
361
361
  "sourceMemoryIds": {
362
362
  "type": "array",
363
363
  "items": {
364
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
364
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
365
365
  },
366
366
  "minItems": 1,
367
367
  "maxItems": 64,
368
368
  "uniqueItems": true
369
369
  },
370
370
  "extensions": {
371
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
371
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
372
372
  },
373
373
  "requiredExtensions": {
374
374
  "type": "array",
375
375
  "items": {
376
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
376
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
377
377
  },
378
378
  "minItems": 0,
379
379
  "maxItems": 16,
@@ -400,25 +400,25 @@
400
400
  "type": "object",
401
401
  "properties": {
402
402
  "schemaVersion": {
403
- "const": "0.3.0"
403
+ "const": "0.4.0"
404
404
  },
405
405
  "kind": {
406
406
  "const": "intent-checkpoint"
407
407
  },
408
408
  "memoryId": {
409
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
409
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
410
410
  },
411
411
  "characterId": {
412
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
412
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
413
413
  },
414
414
  "recordedAt": {
415
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
415
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
416
416
  },
417
417
  "scope": {
418
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/scope"
418
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/scope"
419
419
  },
420
420
  "provenance": {
421
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/provenance"
421
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/provenance"
422
422
  },
423
423
  "intents": {
424
424
  "type": "array",
@@ -426,7 +426,7 @@
426
426
  "type": "object",
427
427
  "properties": {
428
428
  "portableIntentId": {
429
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
429
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
430
430
  },
431
431
  "description": {
432
432
  "type": "string",
@@ -444,7 +444,7 @@
444
444
  "sourceMemoryIds": {
445
445
  "type": "array",
446
446
  "items": {
447
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
447
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
448
448
  },
449
449
  "minItems": 0,
450
450
  "maxItems": 64,
@@ -464,15 +464,15 @@
464
464
  "maxItems": 16
465
465
  },
466
466
  "nextReviewAt": {
467
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
467
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
468
468
  },
469
469
  "extensions": {
470
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
470
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
471
471
  },
472
472
  "requiredExtensions": {
473
473
  "type": "array",
474
474
  "items": {
475
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
475
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
476
476
  },
477
477
  "minItems": 0,
478
478
  "maxItems": 16,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:model-provider",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:model-provider",
4
4
  "oneOf": [
5
5
  {
6
6
  "$ref": "#/$defs/capabilities"
@@ -20,16 +20,16 @@
20
20
  "type": "object",
21
21
  "properties": {
22
22
  "schemaVersion": {
23
- "const": "0.3.0"
23
+ "const": "0.4.0"
24
24
  },
25
25
  "kind": {
26
26
  "const": "provider-capabilities"
27
27
  },
28
28
  "providerId": {
29
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
29
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
30
30
  },
31
31
  "modelId": {
32
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
32
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
33
33
  },
34
34
  "toolCalling": {
35
35
  "type": "boolean"
@@ -44,12 +44,12 @@
44
44
  "type": "boolean"
45
45
  },
46
46
  "extensions": {
47
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensions"
47
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensions"
48
48
  },
49
49
  "requiredExtensions": {
50
50
  "type": "array",
51
51
  "items": {
52
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensionName"
52
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensionName"
53
53
  },
54
54
  "minItems": 0,
55
55
  "uniqueItems": true
@@ -71,19 +71,19 @@
71
71
  "type": "object",
72
72
  "properties": {
73
73
  "schemaVersion": {
74
- "const": "0.3.0"
74
+ "const": "0.4.0"
75
75
  },
76
76
  "kind": {
77
77
  "const": "model-request"
78
78
  },
79
79
  "requestId": {
80
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
80
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
81
81
  },
82
82
  "providerId": {
83
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
83
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
84
84
  },
85
85
  "modelId": {
86
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
86
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
87
87
  },
88
88
  "messages": {
89
89
  "type": "array",
@@ -97,7 +97,7 @@
97
97
  "type": "string"
98
98
  },
99
99
  "toolCallId": {
100
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
100
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
101
101
  },
102
102
  "toolCalls": {
103
103
  "type": "array",
@@ -105,13 +105,13 @@
105
105
  "type": "object",
106
106
  "properties": {
107
107
  "toolCallId": {
108
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
108
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
109
109
  },
110
110
  "name": {
111
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
111
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
112
112
  },
113
113
  "arguments": {
114
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/jsonObject"
114
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/jsonObject"
115
115
  }
116
116
  },
117
117
  "required": ["toolCallId", "name", "arguments"],
@@ -131,14 +131,14 @@
131
131
  "type": "object",
132
132
  "properties": {
133
133
  "name": {
134
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
134
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
135
135
  },
136
136
  "description": {
137
137
  "type": "string",
138
138
  "minLength": 1
139
139
  },
140
140
  "argumentsSchema": {
141
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/jsonSchema"
141
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/jsonSchema"
142
142
  }
143
143
  },
144
144
  "required": ["name", "description", "argumentsSchema"],
@@ -153,22 +153,22 @@
153
153
  "enum": ["text", "json-object"]
154
154
  },
155
155
  "deadlineAt": {
156
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/utcTimestamp"
156
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/utcTimestamp"
157
157
  },
158
158
  "cancellationId": {
159
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
159
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
160
160
  },
161
161
  "maxOutputTokens": {
162
162
  "type": "integer",
163
163
  "minimum": 1
164
164
  },
165
165
  "extensions": {
166
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensions"
166
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensions"
167
167
  },
168
168
  "requiredExtensions": {
169
169
  "type": "array",
170
170
  "items": {
171
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensionName"
171
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensionName"
172
172
  },
173
173
  "minItems": 0,
174
174
  "uniqueItems": true
@@ -191,22 +191,22 @@
191
191
  "type": "object",
192
192
  "properties": {
193
193
  "schemaVersion": {
194
- "const": "0.3.0"
194
+ "const": "0.4.0"
195
195
  },
196
196
  "kind": {
197
197
  "const": "model-response"
198
198
  },
199
199
  "requestId": {
200
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
200
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
201
201
  },
202
202
  "providerId": {
203
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
203
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
204
204
  },
205
205
  "modelId": {
206
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
206
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
207
207
  },
208
208
  "recordedAt": {
209
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/utcTimestamp"
209
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/utcTimestamp"
210
210
  },
211
211
  "status": {
212
212
  "enum": ["completed", "incomplete", "cancelled"]
@@ -223,13 +223,13 @@
223
223
  "type": "object",
224
224
  "properties": {
225
225
  "toolCallId": {
226
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
226
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
227
227
  },
228
228
  "name": {
229
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
229
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
230
230
  },
231
231
  "arguments": {
232
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/jsonObject"
232
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/jsonObject"
233
233
  }
234
234
  },
235
235
  "required": ["toolCallId", "name", "arguments"],
@@ -245,15 +245,15 @@
245
245
  "enum": ["stop", "tool-calls", "length", "cancelled"]
246
246
  },
247
247
  "usage": {
248
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/usage"
248
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/usage"
249
249
  },
250
250
  "extensions": {
251
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensions"
251
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensions"
252
252
  },
253
253
  "requiredExtensions": {
254
254
  "type": "array",
255
255
  "items": {
256
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensionName"
256
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensionName"
257
257
  },
258
258
  "minItems": 0,
259
259
  "uniqueItems": true
@@ -276,36 +276,36 @@
276
276
  "type": "object",
277
277
  "properties": {
278
278
  "schemaVersion": {
279
- "const": "0.3.0"
279
+ "const": "0.4.0"
280
280
  },
281
281
  "kind": {
282
282
  "const": "model-error"
283
283
  },
284
284
  "requestId": {
285
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
285
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
286
286
  },
287
287
  "providerId": {
288
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
288
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
289
289
  },
290
290
  "modelId": {
291
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
291
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
292
292
  },
293
293
  "recordedAt": {
294
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/utcTimestamp"
294
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/utcTimestamp"
295
295
  },
296
296
  "error": {
297
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/error"
297
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/error"
298
298
  },
299
299
  "usage": {
300
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/usage"
300
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/usage"
301
301
  },
302
302
  "extensions": {
303
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensions"
303
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensions"
304
304
  },
305
305
  "requiredExtensions": {
306
306
  "type": "array",
307
307
  "items": {
308
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensionName"
308
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensionName"
309
309
  },
310
310
  "minItems": 0,
311
311
  "uniqueItems": true