@kybernesis/brain-contracts 0.1.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/dist/constants.d.ts +75 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +145 -0
- package/dist/constants.js.map +1 -0
- package/dist/entity.d.ts +246 -0
- package/dist/entity.d.ts.map +1 -0
- package/dist/entity.js +94 -0
- package/dist/entity.js.map +1 -0
- package/dist/fact.d.ts +148 -0
- package/dist/fact.d.ts.map +1 -0
- package/dist/fact.js +32 -0
- package/dist/fact.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +8 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +9 -0
- package/dist/logger.js.map +1 -0
- package/dist/sleep.d.ts +175 -0
- package/dist/sleep.d.ts.map +1 -0
- package/dist/sleep.js +69 -0
- package/dist/sleep.js.map +1 -0
- package/dist/tenant.d.ts +28 -0
- package/dist/tenant.d.ts.map +1 -0
- package/dist/tenant.js +22 -0
- package/dist/tenant.js.map +1 -0
- package/dist/timeline.d.ts +136 -0
- package/dist/timeline.d.ts.map +1 -0
- package/dist/timeline.js +30 -0
- package/dist/timeline.js.map +1 -0
- package/package.json +68 -0
package/dist/fact.d.ts
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FactSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
content: z.ZodString;
|
|
5
|
+
sourcePath: z.ZodString;
|
|
6
|
+
sourceConversationId: z.ZodString;
|
|
7
|
+
entities: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
timestamp: z.ZodString;
|
|
9
|
+
confidence: z.ZodNumber;
|
|
10
|
+
category: z.ZodEnum<["biographical", "preference", "event", "relationship", "temporal", "opinion", "plan", "general"]>;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
isLatest: z.ZodBoolean;
|
|
13
|
+
supersededBy: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
15
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
16
|
+
accessCount: z.ZodNumber;
|
|
17
|
+
sourceType: z.ZodString;
|
|
18
|
+
isRetracted: z.ZodBoolean;
|
|
19
|
+
retractedBy: z.ZodOptional<z.ZodString>;
|
|
20
|
+
lastReinforcedAt: z.ZodOptional<z.ZodString>;
|
|
21
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
23
|
+
classification: z.ZodOptional<z.ZodString>;
|
|
24
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
sourceDid: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
id: number;
|
|
28
|
+
accessCount: number;
|
|
29
|
+
sourcePath: string;
|
|
30
|
+
timestamp: string;
|
|
31
|
+
sourceType: string;
|
|
32
|
+
confidence: number;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
content: string;
|
|
35
|
+
sourceConversationId: string;
|
|
36
|
+
entities: string[];
|
|
37
|
+
category: "biographical" | "preference" | "event" | "relationship" | "temporal" | "opinion" | "plan" | "general";
|
|
38
|
+
isLatest: boolean;
|
|
39
|
+
isRetracted: boolean;
|
|
40
|
+
tags: string[];
|
|
41
|
+
expiresAt?: string | undefined;
|
|
42
|
+
supersededBy?: number | undefined;
|
|
43
|
+
updatedAt?: string | undefined;
|
|
44
|
+
retractedBy?: string | undefined;
|
|
45
|
+
lastReinforcedAt?: string | undefined;
|
|
46
|
+
projectId?: string | undefined;
|
|
47
|
+
classification?: string | undefined;
|
|
48
|
+
connectionId?: string | undefined;
|
|
49
|
+
sourceDid?: string | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
id: number;
|
|
52
|
+
accessCount: number;
|
|
53
|
+
sourcePath: string;
|
|
54
|
+
timestamp: string;
|
|
55
|
+
sourceType: string;
|
|
56
|
+
confidence: number;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
content: string;
|
|
59
|
+
sourceConversationId: string;
|
|
60
|
+
entities: string[];
|
|
61
|
+
category: "biographical" | "preference" | "event" | "relationship" | "temporal" | "opinion" | "plan" | "general";
|
|
62
|
+
isLatest: boolean;
|
|
63
|
+
isRetracted: boolean;
|
|
64
|
+
tags: string[];
|
|
65
|
+
expiresAt?: string | undefined;
|
|
66
|
+
supersededBy?: number | undefined;
|
|
67
|
+
updatedAt?: string | undefined;
|
|
68
|
+
retractedBy?: string | undefined;
|
|
69
|
+
lastReinforcedAt?: string | undefined;
|
|
70
|
+
projectId?: string | undefined;
|
|
71
|
+
classification?: string | undefined;
|
|
72
|
+
connectionId?: string | undefined;
|
|
73
|
+
sourceDid?: string | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
export type Fact = z.infer<typeof FactSchema>;
|
|
76
|
+
export declare const FactInputSchema: z.ZodObject<Omit<{
|
|
77
|
+
id: z.ZodNumber;
|
|
78
|
+
content: z.ZodString;
|
|
79
|
+
sourcePath: z.ZodString;
|
|
80
|
+
sourceConversationId: z.ZodString;
|
|
81
|
+
entities: z.ZodArray<z.ZodString, "many">;
|
|
82
|
+
timestamp: z.ZodString;
|
|
83
|
+
confidence: z.ZodNumber;
|
|
84
|
+
category: z.ZodEnum<["biographical", "preference", "event", "relationship", "temporal", "opinion", "plan", "general"]>;
|
|
85
|
+
createdAt: z.ZodString;
|
|
86
|
+
isLatest: z.ZodBoolean;
|
|
87
|
+
supersededBy: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
89
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
90
|
+
accessCount: z.ZodNumber;
|
|
91
|
+
sourceType: z.ZodString;
|
|
92
|
+
isRetracted: z.ZodBoolean;
|
|
93
|
+
retractedBy: z.ZodOptional<z.ZodString>;
|
|
94
|
+
lastReinforcedAt: z.ZodOptional<z.ZodString>;
|
|
95
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
96
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
97
|
+
classification: z.ZodOptional<z.ZodString>;
|
|
98
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
99
|
+
sourceDid: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
101
|
+
accessCount: number;
|
|
102
|
+
sourcePath: string;
|
|
103
|
+
timestamp: string;
|
|
104
|
+
sourceType: string;
|
|
105
|
+
confidence: number;
|
|
106
|
+
createdAt: string;
|
|
107
|
+
content: string;
|
|
108
|
+
sourceConversationId: string;
|
|
109
|
+
entities: string[];
|
|
110
|
+
category: "biographical" | "preference" | "event" | "relationship" | "temporal" | "opinion" | "plan" | "general";
|
|
111
|
+
isLatest: boolean;
|
|
112
|
+
isRetracted: boolean;
|
|
113
|
+
tags: string[];
|
|
114
|
+
expiresAt?: string | undefined;
|
|
115
|
+
supersededBy?: number | undefined;
|
|
116
|
+
updatedAt?: string | undefined;
|
|
117
|
+
retractedBy?: string | undefined;
|
|
118
|
+
lastReinforcedAt?: string | undefined;
|
|
119
|
+
projectId?: string | undefined;
|
|
120
|
+
classification?: string | undefined;
|
|
121
|
+
connectionId?: string | undefined;
|
|
122
|
+
sourceDid?: string | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
accessCount: number;
|
|
125
|
+
sourcePath: string;
|
|
126
|
+
timestamp: string;
|
|
127
|
+
sourceType: string;
|
|
128
|
+
confidence: number;
|
|
129
|
+
createdAt: string;
|
|
130
|
+
content: string;
|
|
131
|
+
sourceConversationId: string;
|
|
132
|
+
entities: string[];
|
|
133
|
+
category: "biographical" | "preference" | "event" | "relationship" | "temporal" | "opinion" | "plan" | "general";
|
|
134
|
+
isLatest: boolean;
|
|
135
|
+
isRetracted: boolean;
|
|
136
|
+
tags: string[];
|
|
137
|
+
expiresAt?: string | undefined;
|
|
138
|
+
supersededBy?: number | undefined;
|
|
139
|
+
updatedAt?: string | undefined;
|
|
140
|
+
retractedBy?: string | undefined;
|
|
141
|
+
lastReinforcedAt?: string | undefined;
|
|
142
|
+
projectId?: string | undefined;
|
|
143
|
+
classification?: string | undefined;
|
|
144
|
+
connectionId?: string | undefined;
|
|
145
|
+
sourceDid?: string | undefined;
|
|
146
|
+
}>;
|
|
147
|
+
export type FactInput = z.infer<typeof FactInputSchema>;
|
|
148
|
+
//# sourceMappingURL=fact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fact.d.ts","sourceRoot":"","sources":["../src/fact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBrB,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAG9C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
package/dist/fact.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { FactCategorySchema } from './constants.js';
|
|
3
|
+
// Maps to facts table in timeline.db.
|
|
4
|
+
export const FactSchema = z.object({
|
|
5
|
+
id: z.number().int(),
|
|
6
|
+
content: z.string(),
|
|
7
|
+
sourcePath: z.string(), // UNIQUE
|
|
8
|
+
sourceConversationId: z.string(),
|
|
9
|
+
entities: z.array(z.string()), // stored as entities_json
|
|
10
|
+
timestamp: z.string(),
|
|
11
|
+
confidence: z.number(),
|
|
12
|
+
category: FactCategorySchema,
|
|
13
|
+
createdAt: z.string(),
|
|
14
|
+
isLatest: z.boolean(),
|
|
15
|
+
supersededBy: z.number().int().optional(),
|
|
16
|
+
expiresAt: z.string().optional(),
|
|
17
|
+
updatedAt: z.string().optional(),
|
|
18
|
+
accessCount: z.number().int(),
|
|
19
|
+
sourceType: z.string(), // 'chat' | 'user-direct' | 'heartbeat' | etc.
|
|
20
|
+
isRetracted: z.boolean(),
|
|
21
|
+
retractedBy: z.string().optional(),
|
|
22
|
+
lastReinforcedAt: z.string().optional(),
|
|
23
|
+
// 4 flat scope columns
|
|
24
|
+
projectId: z.string().optional(),
|
|
25
|
+
tags: z.array(z.string()), // stored as tags_json
|
|
26
|
+
classification: z.string().optional(),
|
|
27
|
+
connectionId: z.string().optional(),
|
|
28
|
+
sourceDid: z.string().optional(),
|
|
29
|
+
});
|
|
30
|
+
// Input shape for storeFact — id assigned by DB.
|
|
31
|
+
export const FactInputSchema = FactSchema.omit({ id: true });
|
|
32
|
+
//# sourceMappingURL=fact.js.map
|
package/dist/fact.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fact.js","sourceRoot":"","sources":["../src/fact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,sCAAsC;AACtC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,EAAS,SAAS;IACxC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE;IAChC,QAAQ,EAAE,CAAC,CAAC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/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
package/dist/logger.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface Logger {
|
|
2
|
+
debug(msg: string, ctx?: Record<string, unknown>): void;
|
|
3
|
+
info(msg: string, ctx?: Record<string, unknown>): void;
|
|
4
|
+
warn(msg: string, ctx?: Record<string, unknown>): void;
|
|
5
|
+
error(msg: string, ctx?: Record<string, unknown>): void;
|
|
6
|
+
}
|
|
7
|
+
export declare function createNoopLogger(): Logger;
|
|
8
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACxD,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvD,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvD,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACzD;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAOzC"}
|
package/dist/logger.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,gBAAgB;IAC9B,OAAO;QACL,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC;QACf,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;QACd,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;QACd,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC;KAChB,CAAC;AACJ,CAAC"}
|
package/dist/sleep.d.ts
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SleepRunSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
startedAt: z.ZodString;
|
|
5
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
6
|
+
status: z.ZodEnum<["running", "completed", "failed", "paused"]>;
|
|
7
|
+
checkpointStep: z.ZodOptional<z.ZodString>;
|
|
8
|
+
checkpointData: z.ZodOptional<z.ZodString>;
|
|
9
|
+
metrics: z.ZodOptional<z.ZodString>;
|
|
10
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
status: "running" | "completed" | "failed" | "paused";
|
|
14
|
+
id: number;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
startedAt: string;
|
|
17
|
+
completedAt?: string | undefined;
|
|
18
|
+
checkpointStep?: string | undefined;
|
|
19
|
+
checkpointData?: string | undefined;
|
|
20
|
+
metrics?: string | undefined;
|
|
21
|
+
errorMessage?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
status: "running" | "completed" | "failed" | "paused";
|
|
24
|
+
id: number;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
startedAt: string;
|
|
27
|
+
completedAt?: string | undefined;
|
|
28
|
+
checkpointStep?: string | undefined;
|
|
29
|
+
checkpointData?: string | undefined;
|
|
30
|
+
metrics?: string | undefined;
|
|
31
|
+
errorMessage?: string | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type SleepRun = z.infer<typeof SleepRunSchema>;
|
|
34
|
+
export declare const MemoryEdgeSchema: z.ZodObject<{
|
|
35
|
+
id: z.ZodNumber;
|
|
36
|
+
fromPath: z.ZodString;
|
|
37
|
+
toPath: z.ZodString;
|
|
38
|
+
relation: z.ZodEnum<["related", "continuation", "referenced", "same_topic", "same_person"]>;
|
|
39
|
+
weight: z.ZodNumber;
|
|
40
|
+
confidence: z.ZodNumber;
|
|
41
|
+
sharedTags: z.ZodOptional<z.ZodString>;
|
|
42
|
+
rationale: z.ZodOptional<z.ZodString>;
|
|
43
|
+
method: z.ZodEnum<["sleep-agent", "manual", "co-occurred", "ai-suggested"]>;
|
|
44
|
+
createdAt: z.ZodString;
|
|
45
|
+
lastVerified: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
id: number;
|
|
48
|
+
confidence: number;
|
|
49
|
+
method: "co-occurred" | "sleep-agent" | "manual" | "ai-suggested";
|
|
50
|
+
createdAt: string;
|
|
51
|
+
fromPath: string;
|
|
52
|
+
toPath: string;
|
|
53
|
+
relation: "related" | "continuation" | "referenced" | "same_topic" | "same_person";
|
|
54
|
+
weight: number;
|
|
55
|
+
rationale?: string | undefined;
|
|
56
|
+
lastVerified?: string | undefined;
|
|
57
|
+
sharedTags?: string | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
id: number;
|
|
60
|
+
confidence: number;
|
|
61
|
+
method: "co-occurred" | "sleep-agent" | "manual" | "ai-suggested";
|
|
62
|
+
createdAt: string;
|
|
63
|
+
fromPath: string;
|
|
64
|
+
toPath: string;
|
|
65
|
+
relation: "related" | "continuation" | "referenced" | "same_topic" | "same_person";
|
|
66
|
+
weight: number;
|
|
67
|
+
rationale?: string | undefined;
|
|
68
|
+
lastVerified?: string | undefined;
|
|
69
|
+
sharedTags?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export type MemoryEdge = z.infer<typeof MemoryEdgeSchema>;
|
|
72
|
+
export declare const MaintenanceItemTypeSchema: z.ZodEnum<["timeline", "entity", "file"]>;
|
|
73
|
+
export type MaintenanceItemType = z.infer<typeof MaintenanceItemTypeSchema>;
|
|
74
|
+
export declare const MaintenanceQueueItemSchema: z.ZodObject<{
|
|
75
|
+
id: z.ZodNumber;
|
|
76
|
+
itemType: z.ZodEnum<["timeline", "entity", "file"]>;
|
|
77
|
+
itemId: z.ZodString;
|
|
78
|
+
task: z.ZodString;
|
|
79
|
+
priority: z.ZodNumber;
|
|
80
|
+
createdAt: z.ZodString;
|
|
81
|
+
processedAt: z.ZodOptional<z.ZodString>;
|
|
82
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
id: number;
|
|
85
|
+
priority: number;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
itemType: "file" | "timeline" | "entity";
|
|
88
|
+
itemId: string;
|
|
89
|
+
task: string;
|
|
90
|
+
errorMessage?: string | undefined;
|
|
91
|
+
processedAt?: string | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
id: number;
|
|
94
|
+
priority: number;
|
|
95
|
+
createdAt: string;
|
|
96
|
+
itemType: "file" | "timeline" | "entity";
|
|
97
|
+
itemId: string;
|
|
98
|
+
task: string;
|
|
99
|
+
errorMessage?: string | undefined;
|
|
100
|
+
processedAt?: string | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
export type MaintenanceQueueItem = z.infer<typeof MaintenanceQueueItemSchema>;
|
|
103
|
+
export declare const SleepTelemetrySchema: z.ZodObject<{
|
|
104
|
+
id: z.ZodNumber;
|
|
105
|
+
runId: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
step: z.ZodString;
|
|
107
|
+
eventType: z.ZodString;
|
|
108
|
+
count: z.ZodNumber;
|
|
109
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
111
|
+
createdAt: z.ZodString;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
id: number;
|
|
114
|
+
createdAt: string;
|
|
115
|
+
step: string;
|
|
116
|
+
eventType: string;
|
|
117
|
+
count: number;
|
|
118
|
+
runId?: number | undefined;
|
|
119
|
+
durationMs?: number | undefined;
|
|
120
|
+
metadata?: string | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
id: number;
|
|
123
|
+
createdAt: string;
|
|
124
|
+
step: string;
|
|
125
|
+
eventType: string;
|
|
126
|
+
count: number;
|
|
127
|
+
runId?: number | undefined;
|
|
128
|
+
durationMs?: number | undefined;
|
|
129
|
+
metadata?: string | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
export type SleepTelemetry = z.infer<typeof SleepTelemetrySchema>;
|
|
132
|
+
export declare const TierTransitionSchema: z.ZodObject<{
|
|
133
|
+
id: z.ZodNumber;
|
|
134
|
+
itemId: z.ZodNumber;
|
|
135
|
+
fromTier: z.ZodOptional<z.ZodString>;
|
|
136
|
+
toTier: z.ZodString;
|
|
137
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
138
|
+
createdAt: z.ZodString;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
id: number;
|
|
141
|
+
createdAt: string;
|
|
142
|
+
itemId: number;
|
|
143
|
+
toTier: string;
|
|
144
|
+
reason?: string | undefined;
|
|
145
|
+
fromTier?: string | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
id: number;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
itemId: number;
|
|
150
|
+
toTier: string;
|
|
151
|
+
reason?: string | undefined;
|
|
152
|
+
fromTier?: string | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
export type TierTransition = z.infer<typeof TierTransitionSchema>;
|
|
155
|
+
export declare const VectorChunkMetaSchema: z.ZodObject<{
|
|
156
|
+
rowid: z.ZodNumber;
|
|
157
|
+
ts: z.ZodString;
|
|
158
|
+
source: z.ZodOptional<z.ZodString>;
|
|
159
|
+
content: z.ZodString;
|
|
160
|
+
originId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
content: string;
|
|
163
|
+
rowid: number;
|
|
164
|
+
ts: string;
|
|
165
|
+
source?: string | undefined;
|
|
166
|
+
originId?: string | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
content: string;
|
|
169
|
+
rowid: number;
|
|
170
|
+
ts: string;
|
|
171
|
+
source?: string | undefined;
|
|
172
|
+
originId?: string | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
export type VectorChunkMeta = z.infer<typeof VectorChunkMetaSchema>;
|
|
175
|
+
//# sourceMappingURL=sleep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../src/sleep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAGtD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,yBAAyB,2CAAyC,CAAC;AAChF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;EASrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAG9E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAMhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/sleep.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { MemoryEdgeRelationSchema, MemoryEdgeMethodSchema, SleepStatusSchema } from './constants.js';
|
|
3
|
+
// Maps to sleep_runs table in sleep.db.
|
|
4
|
+
export const SleepRunSchema = z.object({
|
|
5
|
+
id: z.number().int(),
|
|
6
|
+
startedAt: z.string(),
|
|
7
|
+
completedAt: z.string().optional(),
|
|
8
|
+
status: SleepStatusSchema,
|
|
9
|
+
checkpointStep: z.string().optional(),
|
|
10
|
+
checkpointData: z.string().optional(),
|
|
11
|
+
metrics: z.string().optional(),
|
|
12
|
+
errorMessage: z.string().optional(),
|
|
13
|
+
createdAt: z.string(),
|
|
14
|
+
});
|
|
15
|
+
// Maps to memory_edges table in sleep.db.
|
|
16
|
+
export const MemoryEdgeSchema = z.object({
|
|
17
|
+
id: z.number().int(),
|
|
18
|
+
fromPath: z.string(),
|
|
19
|
+
toPath: z.string(), // UNIQUE(fromPath, toPath)
|
|
20
|
+
relation: MemoryEdgeRelationSchema,
|
|
21
|
+
weight: z.number(),
|
|
22
|
+
confidence: z.number(),
|
|
23
|
+
sharedTags: z.string().optional(),
|
|
24
|
+
rationale: z.string().optional(),
|
|
25
|
+
method: MemoryEdgeMethodSchema,
|
|
26
|
+
createdAt: z.string(),
|
|
27
|
+
lastVerified: z.string().optional(),
|
|
28
|
+
});
|
|
29
|
+
// Maps to maintenance_queue table in sleep.db.
|
|
30
|
+
export const MaintenanceItemTypeSchema = z.enum(['timeline', 'entity', 'file']);
|
|
31
|
+
export const MaintenanceQueueItemSchema = z.object({
|
|
32
|
+
id: z.number().int(),
|
|
33
|
+
itemType: MaintenanceItemTypeSchema,
|
|
34
|
+
itemId: z.string(),
|
|
35
|
+
task: z.string(),
|
|
36
|
+
priority: z.number().int(),
|
|
37
|
+
createdAt: z.string(),
|
|
38
|
+
processedAt: z.string().optional(),
|
|
39
|
+
errorMessage: z.string().optional(),
|
|
40
|
+
});
|
|
41
|
+
// Maps to sleep_telemetry table in sleep.db.
|
|
42
|
+
export const SleepTelemetrySchema = z.object({
|
|
43
|
+
id: z.number().int(),
|
|
44
|
+
runId: z.number().int().optional(),
|
|
45
|
+
step: z.string(),
|
|
46
|
+
eventType: z.string(),
|
|
47
|
+
count: z.number().int(),
|
|
48
|
+
durationMs: z.number().int().optional(),
|
|
49
|
+
metadata: z.string().optional(),
|
|
50
|
+
createdAt: z.string(),
|
|
51
|
+
});
|
|
52
|
+
// Maps to tier_transitions table in sleep.db (created lazily).
|
|
53
|
+
export const TierTransitionSchema = z.object({
|
|
54
|
+
id: z.number().int(),
|
|
55
|
+
itemId: z.number().int(),
|
|
56
|
+
fromTier: z.string().optional(),
|
|
57
|
+
toTier: z.string(),
|
|
58
|
+
reason: z.string().optional(),
|
|
59
|
+
createdAt: z.string(),
|
|
60
|
+
});
|
|
61
|
+
// Maps to chunk_meta table in vectors.db.
|
|
62
|
+
export const VectorChunkMetaSchema = z.object({
|
|
63
|
+
rowid: z.number().int(),
|
|
64
|
+
ts: z.string(),
|
|
65
|
+
source: z.string().optional(),
|
|
66
|
+
content: z.string(),
|
|
67
|
+
originId: z.string().optional(),
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=sleep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep.js","sourceRoot":"","sources":["../src/sleep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAErG,wCAAwC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,iBAAiB;IACzB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAGH,0CAA0C;AAC1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,EAAE,E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AAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
|
package/dist/tenant.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface TenantPaths {
|
|
2
|
+
home: string;
|
|
3
|
+
brainDir: string;
|
|
4
|
+
uploadsDir: string;
|
|
5
|
+
identityYaml: string;
|
|
6
|
+
soulMd: string;
|
|
7
|
+
userMd: string;
|
|
8
|
+
heartbeatMd: string;
|
|
9
|
+
claudeMd: string;
|
|
10
|
+
timelineDbPath: string;
|
|
11
|
+
entityGraphDbPath: string;
|
|
12
|
+
vectorsDbPath: string;
|
|
13
|
+
sleepDbPath: string;
|
|
14
|
+
userProfileJsonPath: string;
|
|
15
|
+
logsDir: string;
|
|
16
|
+
claudeSyncDir?: string;
|
|
17
|
+
kyberagentMirrorDir?: string;
|
|
18
|
+
idempotencyDbPath?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface TenantContext {
|
|
21
|
+
slug: string;
|
|
22
|
+
id?: string;
|
|
23
|
+
accountId?: string;
|
|
24
|
+
displayName?: string;
|
|
25
|
+
paths: TenantPaths;
|
|
26
|
+
}
|
|
27
|
+
export declare function pathsFor(slug: string, storageRoot?: string): TenantPaths;
|
|
28
|
+
//# sourceMappingURL=tenant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../src/tenant.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,WAAW,CAAC;CACpB;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,WAAW,CAuBxE"}
|
package/dist/tenant.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as path from 'node:path';
|
|
2
|
+
export function pathsFor(slug, storageRoot) {
|
|
3
|
+
const home = storageRoot ?? path.join(process.env['HOME'] ?? '/tmp', '.kyberagent', slug);
|
|
4
|
+
const brainDir = path.join(home, 'brain');
|
|
5
|
+
return {
|
|
6
|
+
home,
|
|
7
|
+
brainDir,
|
|
8
|
+
uploadsDir: path.join(home, 'uploads'),
|
|
9
|
+
identityYaml: path.join(home, 'identity.yaml'),
|
|
10
|
+
soulMd: path.join(home, 'soul.md'),
|
|
11
|
+
userMd: path.join(home, 'user.md'),
|
|
12
|
+
heartbeatMd: path.join(home, 'heartbeat.md'),
|
|
13
|
+
claudeMd: path.join(home, 'CLAUDE.md'),
|
|
14
|
+
timelineDbPath: path.join(brainDir, 'timeline.db'),
|
|
15
|
+
entityGraphDbPath: path.join(brainDir, 'entity-graph.db'),
|
|
16
|
+
vectorsDbPath: path.join(brainDir, 'vectors.db'),
|
|
17
|
+
sleepDbPath: path.join(brainDir, 'sleep.db'),
|
|
18
|
+
userProfileJsonPath: path.join(brainDir, 'user-profile.json'),
|
|
19
|
+
logsDir: path.join(home, 'logs'),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=tenant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant.js","sourceRoot":"","sources":["../src/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AA+BlC,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,WAAoB;IACzD,MAAM,IAAI,GAAG,WAAW,IAAI,IAAI,CAAC,IAAI,CACnC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,MAAM,EAC7B,aAAa,EACb,IAAI,CACL,CAAC;IACF,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1C,OAAO;QACL,IAAI;QACJ,QAAQ;QACR,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;QACtC,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC;QAC9C,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;QAClC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;QAClC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC;QAC5C,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC;QACtC,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC;QAClD,iBAAiB,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC;QACzD,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC;QAChD,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,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