@ifsoul/core 0.3.0 → 0.5.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 (147) hide show
  1. package/README.md +30 -33
  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/behavior-types.d.ts +150 -0
  8. package/dist/packages/runtime/src/behavior-types.js +1 -0
  9. package/dist/packages/runtime/src/behavior.d.ts +40 -0
  10. package/dist/packages/runtime/src/behavior.js +621 -0
  11. package/dist/packages/runtime/src/group-scheduler.d.ts +165 -0
  12. package/dist/packages/runtime/src/group-scheduler.js +647 -0
  13. package/dist/packages/runtime/src/index.d.ts +4 -0
  14. package/dist/packages/runtime/src/index.js +4 -1
  15. package/dist/packages/runtime/src/participants.d.ts +107 -0
  16. package/dist/packages/runtime/src/participants.js +309 -0
  17. package/dist/packages/runtime/src/types.d.ts +1 -0
  18. package/package.json +2 -3
  19. package/packages/protocol/schemas/current/archive.schema.json +16 -16
  20. package/packages/protocol/schemas/current/character.schema.json +21 -21
  21. package/packages/protocol/schemas/current/common.schema.json +15 -15
  22. package/packages/protocol/schemas/current/context.schema.json +24 -24
  23. package/packages/protocol/schemas/current/conversation.schema.json +39 -39
  24. package/packages/protocol/schemas/current/environment.schema.json +18 -18
  25. package/packages/protocol/schemas/current/memory.schema.json +66 -66
  26. package/packages/protocol/schemas/current/model-provider.schema.json +40 -40
  27. package/packages/protocol/schemas/current/planning.schema.json +61 -61
  28. package/packages/protocol/schemas/current/provider-common.schema.json +6 -6
  29. package/release.json +7 -12
  30. package/specs/README.md +3 -86
  31. package/specs/current/README.md +3 -5
  32. package/specs/current/examples/archive-fork.json +12 -12
  33. package/specs/current/examples/archive-resume.json +12 -12
  34. package/specs/current/examples/character-instance.json +1 -1
  35. package/specs/current/examples/character-template.json +1 -1
  36. package/specs/current/examples/context-after-inspection.json +1 -1
  37. package/specs/current/examples/context-chat.json +1 -1
  38. package/specs/current/examples/context-daily.json +1 -1
  39. package/specs/current/examples/context-no-speech.json +1 -1
  40. package/specs/current/examples/conversation-delivery.json +1 -1
  41. package/specs/current/examples/conversation-live-request.json +1 -1
  42. package/specs/current/examples/conversation-live-response.json +1 -1
  43. package/specs/current/examples/conversation-no-speech-request.json +1 -1
  44. package/specs/current/examples/conversation-no-speech-response.json +1 -1
  45. package/specs/current/examples/conversation-requested-request.json +1 -1
  46. package/specs/current/examples/conversation-requested-response.json +1 -1
  47. package/specs/current/examples/environment-chat.json +1 -1
  48. package/specs/current/examples/environment-game.json +1 -1
  49. package/specs/current/examples/environment-no-speech.json +1 -1
  50. package/specs/current/examples/intent-checkpoint.json +1 -1
  51. package/specs/current/examples/memory-episode.json +1 -1
  52. package/specs/current/examples/memory-event-conversation.json +1 -1
  53. package/specs/current/examples/memory-event-observed.json +2 -2
  54. package/specs/current/examples/memory-event-plan-proposal.json +2 -2
  55. package/specs/current/examples/memory-event-proposed.json +2 -2
  56. package/specs/current/examples/memory-fact.json +1 -1
  57. package/specs/current/examples/memory-relationship.json +1 -1
  58. package/specs/current/examples/memory-working-context.json +1 -1
  59. package/specs/current/examples/plan-cancel-request.json +1 -1
  60. package/specs/current/examples/plan-cancel-result.json +1 -1
  61. package/specs/current/examples/plan-daily.json +1 -1
  62. package/specs/current/examples/plan-partial-decision.json +1 -1
  63. package/specs/current/examples/portable-memory.jsonl +9 -9
  64. package/specs/current/examples/task-outcome.json +1 -1
  65. package/specs/current/examples/task-progress.json +1 -1
  66. package/specs/current/model-provider/examples/capabilities.json +1 -1
  67. package/specs/current/model-provider/examples/error.json +1 -1
  68. package/specs/current/model-provider/examples/request.json +1 -1
  69. package/specs/current/model-provider/examples/response.json +1 -1
  70. package/docs/npm-publishing.md +0 -44
  71. package/packages/protocol/schemas/action-result.schema.json +0 -187
  72. package/packages/protocol/schemas/action.schema.json +0 -68
  73. package/packages/protocol/schemas/archive-manifest.schema.json +0 -126
  74. package/packages/protocol/schemas/capability.schema.json +0 -131
  75. package/packages/protocol/schemas/character-instance.schema.json +0 -73
  76. package/packages/protocol/schemas/character-template.schema.json +0 -67
  77. package/packages/protocol/schemas/common.schema.json +0 -154
  78. package/packages/protocol/schemas/derived-memory.schema.json +0 -145
  79. package/packages/protocol/schemas/memory-event.schema.json +0 -123
  80. package/packages/protocol/schemas/model-provider.schema.json +0 -326
  81. package/packages/protocol/schemas/perception.schema.json +0 -89
  82. package/packages/protocol/schemas/permission-policy.schema.json +0 -153
  83. package/packages/protocol/schemas/v0.2/archive.schema.json +0 -205
  84. package/packages/protocol/schemas/v0.2/character.schema.json +0 -344
  85. package/packages/protocol/schemas/v0.2/common.schema.json +0 -239
  86. package/packages/protocol/schemas/v0.2/context.schema.json +0 -230
  87. package/packages/protocol/schemas/v0.2/conversation.schema.json +0 -340
  88. package/packages/protocol/schemas/v0.2/environment.schema.json +0 -244
  89. package/packages/protocol/schemas/v0.2/memory.schema.json +0 -495
  90. package/packages/protocol/schemas/v0.2/planning.schema.json +0 -443
  91. package/packages/protocol/schemas/world-event.schema.json +0 -74
  92. package/specs/character/README.md +0 -84
  93. package/specs/character/examples/archive-manifest.json +0 -32
  94. package/specs/character/examples/character-instance.json +0 -20
  95. package/specs/character/examples/character-template.json +0 -19
  96. package/specs/memory/README.md +0 -80
  97. package/specs/memory/examples/derived-memory.json +0 -21
  98. package/specs/memory/examples/memory-event.json +0 -35
  99. package/specs/model-provider/README.md +0 -85
  100. package/specs/model-provider/examples/capabilities.json +0 -10
  101. package/specs/model-provider/examples/error.json +0 -18
  102. package/specs/model-provider/examples/request.json +0 -17
  103. package/specs/model-provider/examples/response.json +0 -19
  104. package/specs/v0.2/README.md +0 -421
  105. package/specs/v0.2/examples/archive-fork.json +0 -64
  106. package/specs/v0.2/examples/archive-resume.json +0 -63
  107. package/specs/v0.2/examples/character-instance.json +0 -57
  108. package/specs/v0.2/examples/character-template.json +0 -45
  109. package/specs/v0.2/examples/context-after-inspection.json +0 -44
  110. package/specs/v0.2/examples/context-chat.json +0 -27
  111. package/specs/v0.2/examples/context-daily.json +0 -69
  112. package/specs/v0.2/examples/context-no-speech.json +0 -27
  113. package/specs/v0.2/examples/conversation-delivery.json +0 -17
  114. package/specs/v0.2/examples/conversation-live-request.json +0 -31
  115. package/specs/v0.2/examples/conversation-live-response.json +0 -23
  116. package/specs/v0.2/examples/conversation-no-speech-request.json +0 -23
  117. package/specs/v0.2/examples/conversation-no-speech-response.json +0 -22
  118. package/specs/v0.2/examples/conversation-requested-request.json +0 -31
  119. package/specs/v0.2/examples/conversation-requested-response.json +0 -23
  120. package/specs/v0.2/examples/environment-chat.json +0 -43
  121. package/specs/v0.2/examples/environment-game.json +0 -80
  122. package/specs/v0.2/examples/environment-no-speech.json +0 -47
  123. package/specs/v0.2/examples/intent-checkpoint.json +0 -29
  124. package/specs/v0.2/examples/memory-episode.json +0 -28
  125. package/specs/v0.2/examples/memory-event-conversation.json +0 -32
  126. package/specs/v0.2/examples/memory-event-observed.json +0 -50
  127. package/specs/v0.2/examples/memory-event-plan-proposal.json +0 -82
  128. package/specs/v0.2/examples/memory-event-proposed.json +0 -53
  129. package/specs/v0.2/examples/memory-fact.json +0 -23
  130. package/specs/v0.2/examples/memory-relationship.json +0 -25
  131. package/specs/v0.2/examples/memory-working-context.json +0 -24
  132. package/specs/v0.2/examples/plan-cancel-request.json +0 -16
  133. package/specs/v0.2/examples/plan-cancel-result.json +0 -21
  134. package/specs/v0.2/examples/plan-daily.json +0 -57
  135. package/specs/v0.2/examples/plan-partial-decision.json +0 -28
  136. package/specs/v0.2/examples/portable-memory.jsonl +0 -9
  137. package/specs/v0.2/examples/task-outcome.json +0 -21
  138. package/specs/v0.2/examples/task-progress.json +0 -19
  139. package/specs/world-adapter/README.md +0 -114
  140. package/specs/world-adapter/examples/action-result-unknown.json +0 -23
  141. package/specs/world-adapter/examples/action-result.json +0 -45
  142. package/specs/world-adapter/examples/action.json +0 -17
  143. package/specs/world-adapter/examples/capability.json +0 -44
  144. package/specs/world-adapter/examples/perception.json +0 -30
  145. package/specs/world-adapter/examples/permission-decision.json +0 -14
  146. package/specs/world-adapter/examples/permission-policy.json +0 -17
  147. package/specs/world-adapter/examples/world-event.json +0 -25
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:environment",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:environment",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "schemaVersion": {
7
- "const": "0.3.0"
7
+ "const": "0.4.0"
8
8
  },
9
9
  "kind": {
10
10
  "const": "environment-profile"
11
11
  },
12
12
  "binding": {
13
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/binding"
13
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/binding"
14
14
  },
15
15
  "hostId": {
16
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
16
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
17
17
  },
18
18
  "revision": {
19
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
19
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
20
20
  },
21
21
  "medium": {
22
22
  "enum": ["game", "chat"]
@@ -25,7 +25,7 @@
25
25
  "type": "object",
26
26
  "properties": {
27
27
  "form": {
28
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
28
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
29
29
  },
30
30
  "description": {
31
31
  "type": "string",
@@ -51,16 +51,16 @@
51
51
  "type": "object",
52
52
  "properties": {
53
53
  "claimId": {
54
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
54
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
55
55
  },
56
56
  "participantId": {
57
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
57
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
58
58
  },
59
59
  "environmentSubjectId": {
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
  "issuerId": {
63
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
63
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
64
64
  }
65
65
  },
66
66
  "required": [
@@ -104,7 +104,7 @@
104
104
  "channelIds": {
105
105
  "type": "array",
106
106
  "items": {
107
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
107
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
108
108
  },
109
109
  "minItems": 0,
110
110
  "maxItems": 16,
@@ -125,7 +125,7 @@
125
125
  "type": "object",
126
126
  "properties": {
127
127
  "intentId": {
128
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
128
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
129
129
  },
130
130
  "description": {
131
131
  "type": "string",
@@ -138,7 +138,7 @@
138
138
  "type": "object",
139
139
  "properties": {
140
140
  "name": {
141
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
141
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
142
142
  },
143
143
  "type": {
144
144
  "enum": ["entity-ref", "choice", "quantity", "boolean"]
@@ -149,14 +149,14 @@
149
149
  "choices": {
150
150
  "type": "array",
151
151
  "items": {
152
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
152
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
153
153
  },
154
154
  "minItems": 1,
155
155
  "maxItems": 32,
156
156
  "uniqueItems": true
157
157
  },
158
158
  "unit": {
159
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
159
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
160
160
  },
161
161
  "minimum": {
162
162
  "type": "number"
@@ -182,15 +182,15 @@
182
182
  "maxItems": 32
183
183
  },
184
184
  "worldTime": {
185
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/worldTime"
185
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/worldTime"
186
186
  },
187
187
  "extensions": {
188
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
188
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
189
189
  },
190
190
  "requiredExtensions": {
191
191
  "type": "array",
192
192
  "items": {
193
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
193
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
194
194
  },
195
195
  "minItems": 0,
196
196
  "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: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,