@trylucy/agent-memory 0.0.0 → 0.1.3
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/LICENSE +202 -0
- package/README.md +205 -2
- package/contracts/agent-manifest.json +27 -0
- package/contracts/agent-memory-api.contract.json +200 -0
- package/contracts/hashes.json +23 -0
- package/package.json +83 -5
- package/schemas/canonical-recall/response.schema.json +56 -0
- package/schemas/v1/common.schema.json +191 -0
- package/schemas/v1/contract-document.schema.json +278 -0
- package/schemas/v1/create-proposal-request.schema.json +42 -0
- package/schemas/v1/error.schema.json +90 -0
- package/schemas/v1/memory-version-state.schema.json +39 -0
- package/schemas/v1/memory.schema.json +47 -0
- package/schemas/v1/proposal-status.schema.json +277 -0
- package/schemas/v1/public-surface.schema.json +26 -0
- package/schemas/v1/recall-request.schema.json +45 -0
- package/schemas/v1/recall-response.schema.json +60 -0
- package/schemas/v1/receipt.schema.json +67 -0
- package/schemas/v1/replace-proposal-request.schema.json +46 -0
- package/schemas/v1/replace-transition.schema.json +19 -0
- package/schemas/v1/scope.schema.json +10 -0
- package/scripts/lib/am01.mjs +159 -0
- package/src/client/canonical-validation.mjs +37 -0
- package/src/client/client.mjs +151 -0
- package/src/client/errors.mjs +101 -0
- package/src/client/http-transport.d.ts +12 -0
- package/src/client/http-transport.mjs +212 -0
- package/src/client/index.d.ts +243 -0
- package/src/client/index.mjs +38 -0
- package/src/client/serialization.mjs +53 -0
- package/src/client/validation.mjs +174 -0
- package/src/clients/claude-desktop.json +13 -0
- package/src/clients/claude.json +13 -0
- package/src/clients/codex.toml +8 -0
- package/src/clients/cursor.json +12 -0
- package/src/clients/generic.mcp.json +12 -0
- package/src/clients/openclaw.json +14 -0
- package/src/clients/vscode.json +13 -0
- package/src/integrations/hermes-advisory-lock.mjs +140 -0
- package/src/integrations/hermes-artifact.mjs +551 -0
- package/src/integrations/hermes-filesystem.mjs +112 -0
- package/src/integrations/hermes.d.ts +106 -0
- package/src/integrations/hermes.mjs +425 -0
- package/src/mcp/bin.mjs +4 -0
- package/src/mcp/config.mjs +60 -0
- package/src/mcp/index.d.ts +27 -0
- package/src/mcp/lifecycle.mjs +50 -0
- package/src/mcp/schemas.mjs +106 -0
- package/src/mcp/server.mjs +163 -0
- package/src/mcp/stdio.d.ts +28 -0
- package/src/mcp/stdio.mjs +59 -0
- package/src/onboarding/usage.mjs +44 -0
- package/src/projection/memory-md.mjs +319 -0
- package/src/provider/index.d.ts +9 -0
- package/src/provider/index.mjs +1 -0
- package/src/provider/memory-first.mjs +95 -0
- package/src/routing/destination.mjs +42 -0
- package/src/safety/secrets.mjs +31 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://schemas.trylucy.ai/agent-memory/v1/error.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"error": {
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"if": {
|
|
11
|
+
"properties": {
|
|
12
|
+
"code": {
|
|
13
|
+
"enum": [
|
|
14
|
+
"rate_limited",
|
|
15
|
+
"service_unavailable",
|
|
16
|
+
"billing_unavailable"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"code"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"then": {
|
|
25
|
+
"properties": {
|
|
26
|
+
"retryable": {
|
|
27
|
+
"const": true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"type": "object"
|
|
31
|
+
},
|
|
32
|
+
"else": {
|
|
33
|
+
"properties": {
|
|
34
|
+
"retryable": {
|
|
35
|
+
"const": false
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"type": "object"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"properties": {
|
|
43
|
+
"code": {
|
|
44
|
+
"enum": [
|
|
45
|
+
"unauthenticated",
|
|
46
|
+
"forbidden",
|
|
47
|
+
"not_found_or_not_visible",
|
|
48
|
+
"invalid_scope",
|
|
49
|
+
"invalid_request",
|
|
50
|
+
"unsupported_version",
|
|
51
|
+
"conflict",
|
|
52
|
+
"version_conflict",
|
|
53
|
+
"rate_limited",
|
|
54
|
+
"payload_too_large",
|
|
55
|
+
"service_unavailable",
|
|
56
|
+
"insufficient_credits",
|
|
57
|
+
"billing_unavailable"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"message": {
|
|
61
|
+
"maxLength": 500,
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"retryable": {
|
|
66
|
+
"type": "boolean"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": [
|
|
70
|
+
"code",
|
|
71
|
+
"message",
|
|
72
|
+
"retryable"
|
|
73
|
+
],
|
|
74
|
+
"type": "object"
|
|
75
|
+
},
|
|
76
|
+
"request_id": {
|
|
77
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/requestId"
|
|
78
|
+
},
|
|
79
|
+
"schema_version": {
|
|
80
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/schemaVersion"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"schema_version",
|
|
85
|
+
"request_id",
|
|
86
|
+
"error"
|
|
87
|
+
],
|
|
88
|
+
"title": "Public error response",
|
|
89
|
+
"type": "object"
|
|
90
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://schemas.trylucy.ai/agent-memory/v1/memory-version-state.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryId"
|
|
8
|
+
},
|
|
9
|
+
"key": {
|
|
10
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/key"
|
|
11
|
+
},
|
|
12
|
+
"kind": {
|
|
13
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryKind"
|
|
14
|
+
},
|
|
15
|
+
"lifecycle": {
|
|
16
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryLifecycle"
|
|
17
|
+
},
|
|
18
|
+
"schema_version": {
|
|
19
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/schemaVersion"
|
|
20
|
+
},
|
|
21
|
+
"scope": {
|
|
22
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/scope"
|
|
23
|
+
},
|
|
24
|
+
"version": {
|
|
25
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/version"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"schema_version",
|
|
30
|
+
"id",
|
|
31
|
+
"version",
|
|
32
|
+
"key",
|
|
33
|
+
"kind",
|
|
34
|
+
"scope",
|
|
35
|
+
"lifecycle"
|
|
36
|
+
],
|
|
37
|
+
"title": "Memory version lifecycle state",
|
|
38
|
+
"type": "object"
|
|
39
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://schemas.trylucy.ai/agent-memory/v1/memory.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"content": {
|
|
7
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/content"
|
|
8
|
+
},
|
|
9
|
+
"id": {
|
|
10
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryId"
|
|
11
|
+
},
|
|
12
|
+
"key": {
|
|
13
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/key"
|
|
14
|
+
},
|
|
15
|
+
"kind": {
|
|
16
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryKind"
|
|
17
|
+
},
|
|
18
|
+
"receipt": {
|
|
19
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/receipt.schema.json"
|
|
20
|
+
},
|
|
21
|
+
"schema_version": {
|
|
22
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/schemaVersion"
|
|
23
|
+
},
|
|
24
|
+
"scope": {
|
|
25
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/scope"
|
|
26
|
+
},
|
|
27
|
+
"status": {
|
|
28
|
+
"const": "active"
|
|
29
|
+
},
|
|
30
|
+
"version": {
|
|
31
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/version"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"schema_version",
|
|
36
|
+
"id",
|
|
37
|
+
"version",
|
|
38
|
+
"key",
|
|
39
|
+
"kind",
|
|
40
|
+
"scope",
|
|
41
|
+
"content",
|
|
42
|
+
"status",
|
|
43
|
+
"receipt"
|
|
44
|
+
],
|
|
45
|
+
"title": "Authoritative memory version",
|
|
46
|
+
"type": "object"
|
|
47
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://schemas.trylucy.ai/agent-memory/v1/proposal-status.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"allOf": [
|
|
6
|
+
{
|
|
7
|
+
"if": {
|
|
8
|
+
"properties": {
|
|
9
|
+
"operation": {
|
|
10
|
+
"const": "create"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"then": {
|
|
15
|
+
"properties": {
|
|
16
|
+
"requested": {
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"properties": {
|
|
19
|
+
"key": {
|
|
20
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/key"
|
|
21
|
+
},
|
|
22
|
+
"kind": {
|
|
23
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryKind"
|
|
24
|
+
},
|
|
25
|
+
"scope": {
|
|
26
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/scope"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"key",
|
|
31
|
+
"kind",
|
|
32
|
+
"scope"
|
|
33
|
+
],
|
|
34
|
+
"type": "object"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"if": {
|
|
41
|
+
"properties": {
|
|
42
|
+
"operation": {
|
|
43
|
+
"const": "replace"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"then": {
|
|
48
|
+
"properties": {
|
|
49
|
+
"requested": {
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"expected_version": {
|
|
53
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/expectedVersion"
|
|
54
|
+
},
|
|
55
|
+
"key": {
|
|
56
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/key"
|
|
57
|
+
},
|
|
58
|
+
"kind": {
|
|
59
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryKind"
|
|
60
|
+
},
|
|
61
|
+
"memory_id": {
|
|
62
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryId"
|
|
63
|
+
},
|
|
64
|
+
"scope": {
|
|
65
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/scope"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": [
|
|
69
|
+
"memory_id",
|
|
70
|
+
"expected_version",
|
|
71
|
+
"key",
|
|
72
|
+
"kind",
|
|
73
|
+
"scope"
|
|
74
|
+
],
|
|
75
|
+
"type": "object"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"if": {
|
|
82
|
+
"properties": {
|
|
83
|
+
"status": {
|
|
84
|
+
"const": "pending"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"then": {
|
|
89
|
+
"properties": {
|
|
90
|
+
"decided_at": {
|
|
91
|
+
"type": "null"
|
|
92
|
+
},
|
|
93
|
+
"result": {
|
|
94
|
+
"type": "null"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"if": {
|
|
101
|
+
"properties": {
|
|
102
|
+
"status": {
|
|
103
|
+
"const": "approved"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"then": {
|
|
108
|
+
"properties": {
|
|
109
|
+
"decided_at": {
|
|
110
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/timestamp"
|
|
111
|
+
},
|
|
112
|
+
"result": {
|
|
113
|
+
"type": "object"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"if": {
|
|
120
|
+
"properties": {
|
|
121
|
+
"status": {
|
|
122
|
+
"enum": [
|
|
123
|
+
"rejected",
|
|
124
|
+
"expired",
|
|
125
|
+
"superseded"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"then": {
|
|
131
|
+
"properties": {
|
|
132
|
+
"decided_at": {
|
|
133
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/timestamp"
|
|
134
|
+
},
|
|
135
|
+
"result": {
|
|
136
|
+
"type": "null"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"properties": {
|
|
143
|
+
"created_at": {
|
|
144
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/timestamp"
|
|
145
|
+
},
|
|
146
|
+
"decided_at": {
|
|
147
|
+
"oneOf": [
|
|
148
|
+
{
|
|
149
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/timestamp"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "null"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"expires_at": {
|
|
157
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/timestamp"
|
|
158
|
+
},
|
|
159
|
+
"id": {
|
|
160
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/proposalId"
|
|
161
|
+
},
|
|
162
|
+
"operation": {
|
|
163
|
+
"enum": [
|
|
164
|
+
"create",
|
|
165
|
+
"replace"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"proposal_version": {
|
|
169
|
+
"const": 1
|
|
170
|
+
},
|
|
171
|
+
"relations": {
|
|
172
|
+
"items": false,
|
|
173
|
+
"maxItems": 0,
|
|
174
|
+
"type": "array"
|
|
175
|
+
},
|
|
176
|
+
"requested": {
|
|
177
|
+
"oneOf": [
|
|
178
|
+
{
|
|
179
|
+
"additionalProperties": false,
|
|
180
|
+
"properties": {
|
|
181
|
+
"key": {
|
|
182
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/key"
|
|
183
|
+
},
|
|
184
|
+
"kind": {
|
|
185
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryKind"
|
|
186
|
+
},
|
|
187
|
+
"scope": {
|
|
188
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/scope"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"required": [
|
|
192
|
+
"key",
|
|
193
|
+
"kind",
|
|
194
|
+
"scope"
|
|
195
|
+
],
|
|
196
|
+
"type": "object"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"additionalProperties": false,
|
|
200
|
+
"properties": {
|
|
201
|
+
"expected_version": {
|
|
202
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/version"
|
|
203
|
+
},
|
|
204
|
+
"key": {
|
|
205
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/key"
|
|
206
|
+
},
|
|
207
|
+
"kind": {
|
|
208
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryKind"
|
|
209
|
+
},
|
|
210
|
+
"memory_id": {
|
|
211
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryId"
|
|
212
|
+
},
|
|
213
|
+
"scope": {
|
|
214
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/scope"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"required": [
|
|
218
|
+
"memory_id",
|
|
219
|
+
"expected_version",
|
|
220
|
+
"key",
|
|
221
|
+
"kind",
|
|
222
|
+
"scope"
|
|
223
|
+
],
|
|
224
|
+
"type": "object"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"result": {
|
|
229
|
+
"oneOf": [
|
|
230
|
+
{
|
|
231
|
+
"additionalProperties": false,
|
|
232
|
+
"properties": {
|
|
233
|
+
"memory_id": {
|
|
234
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryId"
|
|
235
|
+
},
|
|
236
|
+
"memory_version": {
|
|
237
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/version"
|
|
238
|
+
},
|
|
239
|
+
"receipt_id": {
|
|
240
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/receiptId"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"required": [
|
|
244
|
+
"memory_id",
|
|
245
|
+
"memory_version",
|
|
246
|
+
"receipt_id"
|
|
247
|
+
],
|
|
248
|
+
"type": "object"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"type": "null"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
"schema_version": {
|
|
256
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/schemaVersion"
|
|
257
|
+
},
|
|
258
|
+
"status": {
|
|
259
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/proposalLifecycle"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"required": [
|
|
263
|
+
"schema_version",
|
|
264
|
+
"id",
|
|
265
|
+
"proposal_version",
|
|
266
|
+
"operation",
|
|
267
|
+
"status",
|
|
268
|
+
"requested",
|
|
269
|
+
"relations",
|
|
270
|
+
"created_at",
|
|
271
|
+
"expires_at",
|
|
272
|
+
"decided_at",
|
|
273
|
+
"result"
|
|
274
|
+
],
|
|
275
|
+
"title": "Proposal status",
|
|
276
|
+
"type": "object"
|
|
277
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://schemas.trylucy.ai/agent-memory/v1/public-surface.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"mcp_tools": {
|
|
7
|
+
"const": [
|
|
8
|
+
"memory_recall",
|
|
9
|
+
"memory_propose",
|
|
10
|
+
"memory_proposal_status"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"public_permissions": {
|
|
14
|
+
"const": [
|
|
15
|
+
"memory:read",
|
|
16
|
+
"memory:propose"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"public_permissions",
|
|
22
|
+
"mcp_tools"
|
|
23
|
+
],
|
|
24
|
+
"title": "Public permission and MCP surface",
|
|
25
|
+
"type": "object"
|
|
26
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://schemas.trylucy.ai/agent-memory/v1/recall-request.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"keys": {
|
|
7
|
+
"items": {
|
|
8
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/key"
|
|
9
|
+
},
|
|
10
|
+
"maxItems": 20,
|
|
11
|
+
"minItems": 1,
|
|
12
|
+
"type": "array",
|
|
13
|
+
"uniqueItems": true
|
|
14
|
+
},
|
|
15
|
+
"kinds": {
|
|
16
|
+
"items": {
|
|
17
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryKind"
|
|
18
|
+
},
|
|
19
|
+
"maxItems": 5,
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"uniqueItems": true
|
|
23
|
+
},
|
|
24
|
+
"limit": {
|
|
25
|
+
"default": 3,
|
|
26
|
+
"maximum": 5,
|
|
27
|
+
"minimum": 1,
|
|
28
|
+
"type": "integer"
|
|
29
|
+
},
|
|
30
|
+
"query": {
|
|
31
|
+
"maxLength": 1024,
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"scope": {
|
|
36
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/scope"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"query",
|
|
41
|
+
"scope"
|
|
42
|
+
],
|
|
43
|
+
"title": "Recall request",
|
|
44
|
+
"type": "object"
|
|
45
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://schemas.trylucy.ai/agent-memory/v1/recall-response.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"as_of": {
|
|
7
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/timestamp"
|
|
8
|
+
},
|
|
9
|
+
"consistency": {
|
|
10
|
+
"const": "canonical_active"
|
|
11
|
+
},
|
|
12
|
+
"notices": {
|
|
13
|
+
"items": {
|
|
14
|
+
"maxLength": 500,
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"maxItems": 20,
|
|
18
|
+
"type": "array"
|
|
19
|
+
},
|
|
20
|
+
"request_id": {
|
|
21
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/requestId"
|
|
22
|
+
},
|
|
23
|
+
"results": {
|
|
24
|
+
"items": {
|
|
25
|
+
"allOf": [
|
|
26
|
+
{
|
|
27
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/memory.schema.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"properties": {
|
|
31
|
+
"status": {
|
|
32
|
+
"const": "active"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"type": "object"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"maxItems": 5,
|
|
40
|
+
"type": "array"
|
|
41
|
+
},
|
|
42
|
+
"schema_version": {
|
|
43
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/schemaVersion"
|
|
44
|
+
},
|
|
45
|
+
"scope": {
|
|
46
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/scope"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"schema_version",
|
|
51
|
+
"request_id",
|
|
52
|
+
"as_of",
|
|
53
|
+
"consistency",
|
|
54
|
+
"scope",
|
|
55
|
+
"results",
|
|
56
|
+
"notices"
|
|
57
|
+
],
|
|
58
|
+
"title": "Recall response",
|
|
59
|
+
"type": "object"
|
|
60
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://schemas.trylucy.ai/agent-memory/v1/receipt.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"authoritative_at": {
|
|
7
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/timestamp"
|
|
8
|
+
},
|
|
9
|
+
"authority": {
|
|
10
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/authority"
|
|
11
|
+
},
|
|
12
|
+
"id": {
|
|
13
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/receiptId"
|
|
14
|
+
},
|
|
15
|
+
"issued_at": {
|
|
16
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/timestamp"
|
|
17
|
+
},
|
|
18
|
+
"key": {
|
|
19
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/key"
|
|
20
|
+
},
|
|
21
|
+
"kind": {
|
|
22
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryKind"
|
|
23
|
+
},
|
|
24
|
+
"lifecycle": {
|
|
25
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryLifecycle"
|
|
26
|
+
},
|
|
27
|
+
"memory_id": {
|
|
28
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/memoryId"
|
|
29
|
+
},
|
|
30
|
+
"memory_version": {
|
|
31
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/version"
|
|
32
|
+
},
|
|
33
|
+
"provenance": {
|
|
34
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/provenance"
|
|
35
|
+
},
|
|
36
|
+
"relations": {
|
|
37
|
+
"items": {
|
|
38
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/relation"
|
|
39
|
+
},
|
|
40
|
+
"maxItems": 20,
|
|
41
|
+
"type": "array"
|
|
42
|
+
},
|
|
43
|
+
"schema_version": {
|
|
44
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/schemaVersion"
|
|
45
|
+
},
|
|
46
|
+
"scope": {
|
|
47
|
+
"$ref": "https://schemas.trylucy.ai/agent-memory/v1/common.schema.json#/$defs/scope"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": [
|
|
51
|
+
"schema_version",
|
|
52
|
+
"id",
|
|
53
|
+
"memory_id",
|
|
54
|
+
"memory_version",
|
|
55
|
+
"key",
|
|
56
|
+
"kind",
|
|
57
|
+
"scope",
|
|
58
|
+
"lifecycle",
|
|
59
|
+
"authority",
|
|
60
|
+
"authoritative_at",
|
|
61
|
+
"issued_at",
|
|
62
|
+
"provenance",
|
|
63
|
+
"relations"
|
|
64
|
+
],
|
|
65
|
+
"title": "Memory authority receipt",
|
|
66
|
+
"type": "object"
|
|
67
|
+
}
|