@breign/db-schemas 0.1.93 → 0.1.94
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Long-term agent memory — one row per virtual file under /memories/ (this agent)
|
|
3
|
-
*
|
|
2
|
+
* Long-term agent memory — one row per virtual file under /memories/ (this agent), /shared/
|
|
3
|
+
* (shared by all the user's agents in the organisation) or /org/ (shared by all the
|
|
4
|
+
* organisation's agents and users).
|
|
4
5
|
*
|
|
5
6
|
* Shared between brain-api (storage adapters + tool) and any other consumer.
|
|
6
7
|
* The path is a virtual filesystem key (e.g. '/memories/core.md'); identity
|
|
@@ -17,14 +18,17 @@ export type AgentMemory = {
|
|
|
17
18
|
organisationId: string;
|
|
18
19
|
/**
|
|
19
20
|
* agentId (not brainId) — consistent with Chat.agentId and the rest of the code.
|
|
20
|
-
* null:
|
|
21
|
+
* null: shared by every agent of the organisation (/shared/ and /org/).
|
|
21
22
|
*/
|
|
22
23
|
agentId: string | null;
|
|
23
|
-
|
|
24
|
+
/** null: the organisation's memory, shared by all its users (/org/). */
|
|
25
|
+
userId: string | null;
|
|
24
26
|
/** e.g. '/memories/core.md' — namespace validated tool-side, never by the model alone. */
|
|
25
27
|
path: string;
|
|
26
28
|
content: string;
|
|
27
29
|
/** Optimistic lock — incremented on every write (see "Concurrency" in the spec). */
|
|
28
30
|
version: number;
|
|
31
|
+
/** Last user who wrote the file: in /org/, the only trace of who put what in front of everyone. */
|
|
32
|
+
updatedBy?: string;
|
|
29
33
|
updatedAt: string;
|
|
30
34
|
};
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export type AgentMemoryConfiguration = {
|
|
|
61
61
|
userMemoryEnabled?: boolean;
|
|
62
62
|
/** The user's memory within this agent only (/memories/). */
|
|
63
63
|
agentMemoryEnabled?: boolean;
|
|
64
|
-
/**
|
|
64
|
+
/** The organisation's memory shared by all its agents and all its users (/org/). */
|
|
65
65
|
organizationMemoryEnabled?: boolean;
|
|
66
66
|
};
|
|
67
67
|
export type AgentComputerUseConfiguration = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Long-term agent memory — one row per virtual file under /memories/ (this agent)
|
|
3
|
-
*
|
|
2
|
+
* Long-term agent memory — one row per virtual file under /memories/ (this agent), /shared/
|
|
3
|
+
* (shared by all the user's agents in the organisation) or /org/ (shared by all the
|
|
4
|
+
* organisation's agents and users).
|
|
4
5
|
*
|
|
5
6
|
* Shared between brain-api (storage adapters + tool) and any other consumer.
|
|
6
7
|
* The path is a virtual filesystem key (e.g. '/memories/core.md'); identity
|
|
@@ -17,14 +18,17 @@ export type AgentMemory = {
|
|
|
17
18
|
organisationId: string;
|
|
18
19
|
/**
|
|
19
20
|
* agentId (not brainId) — consistent with Chat.agentId and the rest of the code.
|
|
20
|
-
* null:
|
|
21
|
+
* null: shared by every agent of the organisation (/shared/ and /org/).
|
|
21
22
|
*/
|
|
22
23
|
agentId: string | null;
|
|
23
|
-
|
|
24
|
+
/** null: the organisation's memory, shared by all its users (/org/). */
|
|
25
|
+
userId: string | null;
|
|
24
26
|
/** e.g. '/memories/core.md' — namespace validated tool-side, never by the model alone. */
|
|
25
27
|
path: string;
|
|
26
28
|
content: string;
|
|
27
29
|
/** Optimistic lock — incremented on every write (see "Concurrency" in the spec). */
|
|
28
30
|
version: number;
|
|
31
|
+
/** Last user who wrote the file: in /org/, the only trace of who put what in front of everyone. */
|
|
32
|
+
updatedBy?: string;
|
|
29
33
|
updatedAt: string;
|
|
30
34
|
};
|
package/src/types/agent.ts
CHANGED
|
@@ -55,7 +55,7 @@ export type AgentMemoryConfiguration = {
|
|
|
55
55
|
userMemoryEnabled?: boolean;
|
|
56
56
|
/** The user's memory within this agent only (/memories/). */
|
|
57
57
|
agentMemoryEnabled?: boolean;
|
|
58
|
-
/**
|
|
58
|
+
/** The organisation's memory shared by all its agents and all its users (/org/). */
|
|
59
59
|
organizationMemoryEnabled?: boolean;
|
|
60
60
|
};
|
|
61
61
|
|