@rizom/brain 0.2.0-alpha.131 → 0.2.0-alpha.133
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/brain.js +1202 -1199
- package/dist/entities.d.ts +4 -1
- package/dist/entities.js.map +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +72 -69
- package/dist/plugins.js.map +2 -2
- package/dist/seed-content/rover-seed-content-core/playbook/rover-first-knowledge-loop.md +89 -0
- package/dist/seed-content/rover-seed-content-core/playbook/rover-onboarding.md +9 -46
- package/dist/services.js.map +2 -2
- package/dist/site.js +146 -146
- package/dist/site.js.map +10 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
function i(t){return t}var e={name:"@rizom/brain",version:"0.2.0-alpha.
|
|
2
|
+
function i(t){return t}var e={name:"@rizom/brain",version:"0.2.0-alpha.133",description:"Brain runtime + CLI \u2014 scaffold, run, and manage AI brain instances",type:"module",bin:{brain:"./dist/brain.js"},exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"},"./cli":"./dist/brain.js","./plugins":{types:"./dist/plugins.d.ts",import:"./dist/plugins.js"},"./entities":{types:"./dist/entities.d.ts",import:"./dist/entities.js"},"./services":{types:"./dist/services.d.ts",import:"./dist/services.js"},"./interfaces":{types:"./dist/interfaces.d.ts",import:"./dist/interfaces.js"},"./templates":{types:"./dist/templates.d.ts",import:"./dist/templates.js"},"./site":{types:"./dist/site.d.ts",import:"./dist/site.js"},"./themes":{types:"./dist/themes.d.ts",import:"./dist/themes.js"},"./deploy":{types:"./dist/deploy.d.ts",import:"./dist/deploy.js"},"./tsconfig.instance.json":"./tsconfig.instance.json"},files:["dist","templates","tsconfig.instance.json"],scripts:{build:"bun scripts/build.ts",prepublishOnly:"bun scripts/build.ts","dev:start":"bun scripts/build.ts && bun dist/brain.js start",typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts"},dependencies:{"@clack/prompts":"^0.11.0","@modelcontextprotocol/sdk":"^1.24.0","@tailwindcss/postcss":"^4.1.13","@tailwindcss/typography":"^0.5.19",postcss:"^8.5.6",preact:"^10.27.2","preact-render-to-string":"^6.3.1",tailwindcss:"^4.1.11"},optionalDependencies:{"@bitwarden/sdk-napi":"^1.0.0","@libsql/client":"^0.15.7","@tailwindcss/oxide":"^4.1.4","better-sqlite3":"^11.8.1",lightningcss:"^1.29.2","playwright-core":"^1.56.0","react-devtools-core":"^6.1.1",sharp:"^0.34.5"},devDependencies:{"@brains/app":"workspace:*","@brains/content-formatters":"workspace:*","@brains/deploy-support":"workspace:*","@brains/eslint-config":"workspace:*","@brains/mcp-service":"workspace:*","@brains/plugins":"workspace:*","@brains/ranger":"workspace:*","@brains/relay":"workspace:*","@brains/rover":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-default":"workspace:*","@brains/site-personal":"workspace:*","@brains/site-professional":"workspace:*","@brains/theme-default":"workspace:*","@brains/theme-rizom":"workspace:*","@brains/typescript-config":"workspace:*","@brains/utils":"workspace:*","@types/bun":"latest",rollup:"^4.60.2","rollup-plugin-dts":"^6.4.1",typescript:"^5.3.3"},publishConfig:{access:"public"},repository:{type:"git",url:"https://github.com/rizom-ai/brains.git",directory:"packages/brain-cli"},license:"Apache-2.0",author:"Yeehaa <yeehaa@rizom.ai> (https://rizom.ai)",homepage:"https://github.com/rizom-ai/brains/tree/main/packages/brain-cli#readme",bugs:"https://github.com/rizom-ai/brains/issues",engines:{bun:">=1.3.3"},keywords:["brain","ai","cli","mcp","agent","personal-ai","knowledge-management"]};var n=e.version;export{i as defineBrain,n as PLUGIN_API_VERSION};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=8AB6C4AAC8C8AD4464756E2164756E21
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
"import packageJson from \"../package.json\" with { type: \"json\" };\n\n/**\n * Pre-v1 external plugin API marker.\n *\n * During alpha, the external plugin API compatibility marker tracks the\n * published @rizom/brain package version. Once the plugin API is declared\n * stable, this can move to an independent semver contract such as 1.0.0.\n */\nexport const PLUGIN_API_VERSION = packageJson.version;\n"
|
|
7
7
|
],
|
|
8
8
|
"mappings": ";AAsEO,SAAS,CAAW,CAAC,EAA8C,CACxE,OAAO,iuFC9DF,IAAM,EAAqB,EAAY",
|
|
9
|
-
"debugId": "
|
|
9
|
+
"debugId": "8AB6C4AAC8C8AD4464756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
package/dist/plugins.d.ts
CHANGED
|
@@ -750,7 +750,7 @@ interface CreateFromConversationMessageInput {
|
|
|
750
750
|
messageId?: string | undefined;
|
|
751
751
|
}
|
|
752
752
|
type CreateFromInput = CreateFromAttachmentInput | CreateFromUploadInput | CreateFromConversationMessageInput;
|
|
753
|
-
type CreateTransform = "extract-markdown";
|
|
753
|
+
type CreateTransform = "extract-markdown" | "preserve";
|
|
754
754
|
interface CreateInput {
|
|
755
755
|
entityType: string;
|
|
756
756
|
prompt?: string;
|
|
@@ -760,6 +760,9 @@ interface CreateInput {
|
|
|
760
760
|
from?: CreateFromInput;
|
|
761
761
|
transform?: CreateTransform;
|
|
762
762
|
replace?: boolean;
|
|
763
|
+
sourceEntityType?: string;
|
|
764
|
+
sourceEntityId?: string;
|
|
765
|
+
sourceEntityIds?: string[];
|
|
763
766
|
targetEntityType?: string;
|
|
764
767
|
targetEntityId?: string;
|
|
765
768
|
coverImage?: boolean | CreateCoverImageInput;
|
|
@@ -1146,16 +1149,16 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
1146
1149
|
isBot: z.ZodOptional<z.ZodBoolean>;
|
|
1147
1150
|
}, "strip", z.ZodTypeAny, {
|
|
1148
1151
|
interfaceType: string;
|
|
1149
|
-
actorId: string;
|
|
1150
1152
|
role: "user" | "assistant";
|
|
1153
|
+
actorId: string;
|
|
1151
1154
|
canonicalId?: string | undefined;
|
|
1152
1155
|
displayName?: string | undefined;
|
|
1153
1156
|
username?: string | undefined;
|
|
1154
1157
|
isBot?: boolean | undefined;
|
|
1155
1158
|
}, {
|
|
1156
1159
|
interfaceType: string;
|
|
1157
|
-
actorId: string;
|
|
1158
1160
|
role: "user" | "assistant";
|
|
1161
|
+
actorId: string;
|
|
1159
1162
|
canonicalId?: string | undefined;
|
|
1160
1163
|
displayName?: string | undefined;
|
|
1161
1164
|
username?: string | undefined;
|
|
@@ -1170,15 +1173,15 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
1170
1173
|
}, "strip", z.ZodTypeAny, {
|
|
1171
1174
|
channelId?: string | undefined;
|
|
1172
1175
|
channelName?: string | undefined;
|
|
1176
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1173
1177
|
messageId?: string | undefined;
|
|
1174
1178
|
threadId?: string | undefined;
|
|
1175
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1176
1179
|
}, {
|
|
1177
1180
|
channelId?: string | undefined;
|
|
1178
1181
|
channelName?: string | undefined;
|
|
1182
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1179
1183
|
messageId?: string | undefined;
|
|
1180
1184
|
threadId?: string | undefined;
|
|
1181
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1182
1185
|
}>>;
|
|
1183
1186
|
attachments: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1184
1187
|
kind: z.ZodLiteral<"text">;
|
|
@@ -1190,32 +1193,32 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
1190
1193
|
kind: z.ZodString;
|
|
1191
1194
|
id: z.ZodString;
|
|
1192
1195
|
}, "strip", z.ZodTypeAny, {
|
|
1193
|
-
kind: string;
|
|
1194
1196
|
id: string;
|
|
1195
|
-
}, {
|
|
1196
1197
|
kind: string;
|
|
1198
|
+
}, {
|
|
1197
1199
|
id: string;
|
|
1200
|
+
kind: string;
|
|
1198
1201
|
}>>;
|
|
1199
1202
|
}, "strip", z.ZodTypeAny, {
|
|
1200
1203
|
kind: "text";
|
|
1204
|
+
content: string;
|
|
1201
1205
|
filename: string;
|
|
1202
1206
|
mediaType: string;
|
|
1203
|
-
content: string;
|
|
1204
|
-
sizeBytes?: number | undefined;
|
|
1205
1207
|
source?: {
|
|
1206
|
-
kind: string;
|
|
1207
1208
|
id: string;
|
|
1209
|
+
kind: string;
|
|
1208
1210
|
} | undefined;
|
|
1211
|
+
sizeBytes?: number | undefined;
|
|
1209
1212
|
}, {
|
|
1210
1213
|
kind: "text";
|
|
1214
|
+
content: string;
|
|
1211
1215
|
filename: string;
|
|
1212
1216
|
mediaType: string;
|
|
1213
|
-
content: string;
|
|
1214
|
-
sizeBytes?: number | undefined;
|
|
1215
1217
|
source?: {
|
|
1216
|
-
kind: string;
|
|
1217
1218
|
id: string;
|
|
1219
|
+
kind: string;
|
|
1218
1220
|
} | undefined;
|
|
1221
|
+
sizeBytes?: number | undefined;
|
|
1219
1222
|
}>, z.ZodObject<{
|
|
1220
1223
|
kind: z.ZodLiteral<"file">;
|
|
1221
1224
|
filename: z.ZodString;
|
|
@@ -1226,49 +1229,49 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
1226
1229
|
kind: z.ZodString;
|
|
1227
1230
|
id: z.ZodString;
|
|
1228
1231
|
}, "strip", z.ZodTypeAny, {
|
|
1229
|
-
kind: string;
|
|
1230
1232
|
id: string;
|
|
1231
|
-
}, {
|
|
1232
1233
|
kind: string;
|
|
1234
|
+
}, {
|
|
1233
1235
|
id: string;
|
|
1236
|
+
kind: string;
|
|
1234
1237
|
}>>;
|
|
1235
1238
|
}, "strip", z.ZodTypeAny, {
|
|
1236
1239
|
kind: "file";
|
|
1240
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
1237
1241
|
filename: string;
|
|
1238
1242
|
mediaType: string;
|
|
1239
|
-
data: Uint8Array<ArrayBufferLike>;
|
|
1240
|
-
sizeBytes?: number | undefined;
|
|
1241
1243
|
source?: {
|
|
1242
|
-
kind: string;
|
|
1243
1244
|
id: string;
|
|
1245
|
+
kind: string;
|
|
1244
1246
|
} | undefined;
|
|
1247
|
+
sizeBytes?: number | undefined;
|
|
1245
1248
|
}, {
|
|
1246
1249
|
kind: "file";
|
|
1250
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
1247
1251
|
filename: string;
|
|
1248
1252
|
mediaType: string;
|
|
1249
|
-
data: Uint8Array<ArrayBufferLike>;
|
|
1250
|
-
sizeBytes?: number | undefined;
|
|
1251
1253
|
source?: {
|
|
1252
|
-
kind: string;
|
|
1253
1254
|
id: string;
|
|
1255
|
+
kind: string;
|
|
1254
1256
|
} | undefined;
|
|
1257
|
+
sizeBytes?: number | undefined;
|
|
1255
1258
|
}>]>, "many">>;
|
|
1256
1259
|
}, "strip", z.ZodTypeAny, {
|
|
1260
|
+
interfaceType?: string | undefined;
|
|
1261
|
+
channelId?: string | undefined;
|
|
1262
|
+
channelName?: string | undefined;
|
|
1257
1263
|
source?: {
|
|
1258
1264
|
channelId?: string | undefined;
|
|
1259
1265
|
channelName?: string | undefined;
|
|
1266
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1260
1267
|
messageId?: string | undefined;
|
|
1261
1268
|
threadId?: string | undefined;
|
|
1262
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1263
1269
|
} | undefined;
|
|
1264
1270
|
userPermissionLevel?: "anchor" | "trusted" | "public" | undefined;
|
|
1265
|
-
interfaceType?: string | undefined;
|
|
1266
|
-
channelId?: string | undefined;
|
|
1267
|
-
channelName?: string | undefined;
|
|
1268
1271
|
actor?: {
|
|
1269
1272
|
interfaceType: string;
|
|
1270
|
-
actorId: string;
|
|
1271
1273
|
role: "user" | "assistant";
|
|
1274
|
+
actorId: string;
|
|
1272
1275
|
canonicalId?: string | undefined;
|
|
1273
1276
|
displayName?: string | undefined;
|
|
1274
1277
|
username?: string | undefined;
|
|
@@ -1276,41 +1279,41 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
1276
1279
|
} | undefined;
|
|
1277
1280
|
attachments?: ({
|
|
1278
1281
|
kind: "text";
|
|
1282
|
+
content: string;
|
|
1279
1283
|
filename: string;
|
|
1280
1284
|
mediaType: string;
|
|
1281
|
-
content: string;
|
|
1282
|
-
sizeBytes?: number | undefined;
|
|
1283
1285
|
source?: {
|
|
1284
|
-
kind: string;
|
|
1285
1286
|
id: string;
|
|
1287
|
+
kind: string;
|
|
1286
1288
|
} | undefined;
|
|
1289
|
+
sizeBytes?: number | undefined;
|
|
1287
1290
|
} | {
|
|
1288
1291
|
kind: "file";
|
|
1292
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
1289
1293
|
filename: string;
|
|
1290
1294
|
mediaType: string;
|
|
1291
|
-
data: Uint8Array<ArrayBufferLike>;
|
|
1292
|
-
sizeBytes?: number | undefined;
|
|
1293
1295
|
source?: {
|
|
1294
|
-
kind: string;
|
|
1295
1296
|
id: string;
|
|
1297
|
+
kind: string;
|
|
1296
1298
|
} | undefined;
|
|
1299
|
+
sizeBytes?: number | undefined;
|
|
1297
1300
|
})[] | undefined;
|
|
1298
1301
|
}, {
|
|
1302
|
+
interfaceType?: string | undefined;
|
|
1303
|
+
channelId?: string | undefined;
|
|
1304
|
+
channelName?: string | undefined;
|
|
1299
1305
|
source?: {
|
|
1300
1306
|
channelId?: string | undefined;
|
|
1301
1307
|
channelName?: string | undefined;
|
|
1308
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1302
1309
|
messageId?: string | undefined;
|
|
1303
1310
|
threadId?: string | undefined;
|
|
1304
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1305
1311
|
} | undefined;
|
|
1306
1312
|
userPermissionLevel?: "anchor" | "trusted" | "public" | undefined;
|
|
1307
|
-
interfaceType?: string | undefined;
|
|
1308
|
-
channelId?: string | undefined;
|
|
1309
|
-
channelName?: string | undefined;
|
|
1310
1313
|
actor?: {
|
|
1311
1314
|
interfaceType: string;
|
|
1312
|
-
actorId: string;
|
|
1313
1315
|
role: "user" | "assistant";
|
|
1316
|
+
actorId: string;
|
|
1314
1317
|
canonicalId?: string | undefined;
|
|
1315
1318
|
displayName?: string | undefined;
|
|
1316
1319
|
username?: string | undefined;
|
|
@@ -1318,24 +1321,24 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
1318
1321
|
} | undefined;
|
|
1319
1322
|
attachments?: ({
|
|
1320
1323
|
kind: "text";
|
|
1324
|
+
content: string;
|
|
1321
1325
|
filename: string;
|
|
1322
1326
|
mediaType: string;
|
|
1323
|
-
content: string;
|
|
1324
|
-
sizeBytes?: number | undefined;
|
|
1325
1327
|
source?: {
|
|
1326
|
-
kind: string;
|
|
1327
1328
|
id: string;
|
|
1329
|
+
kind: string;
|
|
1328
1330
|
} | undefined;
|
|
1331
|
+
sizeBytes?: number | undefined;
|
|
1329
1332
|
} | {
|
|
1330
1333
|
kind: "file";
|
|
1334
|
+
data: Uint8Array<ArrayBufferLike>;
|
|
1331
1335
|
filename: string;
|
|
1332
1336
|
mediaType: string;
|
|
1333
|
-
data: Uint8Array<ArrayBufferLike>;
|
|
1334
|
-
sizeBytes?: number | undefined;
|
|
1335
1337
|
source?: {
|
|
1336
|
-
kind: string;
|
|
1337
1338
|
id: string;
|
|
1339
|
+
kind: string;
|
|
1338
1340
|
} | undefined;
|
|
1341
|
+
sizeBytes?: number | undefined;
|
|
1339
1342
|
})[] | undefined;
|
|
1340
1343
|
}>;
|
|
1341
1344
|
type ChatContext = z.infer<typeof ChatContextSchema>;
|
|
@@ -1442,21 +1445,21 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1442
1445
|
visibility: z.ZodDefault<z.ZodEnum<["anchor", "trusted", "public"]>>;
|
|
1443
1446
|
status: z.ZodDefault<z.ZodEnum<["available", "coming-soon", "disabled"]>>;
|
|
1444
1447
|
}, "strip", z.ZodTypeAny, {
|
|
1445
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1446
|
-
id: string;
|
|
1447
1448
|
status: "available" | "coming-soon" | "disabled";
|
|
1448
1449
|
pluginId: string;
|
|
1449
1450
|
label: string;
|
|
1450
1451
|
priority: number;
|
|
1451
1452
|
visibility: "anchor" | "trusted" | "public";
|
|
1453
|
+
id: string;
|
|
1452
1454
|
href: string;
|
|
1455
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1453
1456
|
description?: string | undefined;
|
|
1454
1457
|
}, {
|
|
1455
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1456
|
-
id: string;
|
|
1457
1458
|
pluginId: string;
|
|
1458
1459
|
label: string;
|
|
1460
|
+
id: string;
|
|
1459
1461
|
href: string;
|
|
1462
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1460
1463
|
status?: "available" | "coming-soon" | "disabled" | undefined;
|
|
1461
1464
|
priority?: number | undefined;
|
|
1462
1465
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
@@ -1495,14 +1498,14 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1495
1498
|
visibility: "anchor" | "trusted" | "public";
|
|
1496
1499
|
}[];
|
|
1497
1500
|
interactions: {
|
|
1498
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1499
|
-
id: string;
|
|
1500
1501
|
status: "available" | "coming-soon" | "disabled";
|
|
1501
1502
|
pluginId: string;
|
|
1502
1503
|
label: string;
|
|
1503
1504
|
priority: number;
|
|
1504
1505
|
visibility: "anchor" | "trusted" | "public";
|
|
1506
|
+
id: string;
|
|
1505
1507
|
href: string;
|
|
1508
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1506
1509
|
description?: string | undefined;
|
|
1507
1510
|
}[];
|
|
1508
1511
|
}, {
|
|
@@ -1538,11 +1541,11 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1538
1541
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
1539
1542
|
}[];
|
|
1540
1543
|
interactions: {
|
|
1541
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1542
|
-
id: string;
|
|
1543
1544
|
pluginId: string;
|
|
1544
1545
|
label: string;
|
|
1546
|
+
id: string;
|
|
1545
1547
|
href: string;
|
|
1548
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1546
1549
|
status?: "available" | "coming-soon" | "disabled" | undefined;
|
|
1547
1550
|
priority?: number | undefined;
|
|
1548
1551
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
@@ -1564,25 +1567,25 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
1564
1567
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1565
1568
|
}, "strip", z.ZodTypeAny, {
|
|
1566
1569
|
id: string;
|
|
1570
|
+
sessionId: string;
|
|
1567
1571
|
interfaceType: string;
|
|
1568
1572
|
channelId: string;
|
|
1569
|
-
metadata: Record<string, unknown>;
|
|
1570
|
-
sessionId: string;
|
|
1571
1573
|
startedAt: string;
|
|
1572
1574
|
lastActiveAt: string;
|
|
1573
1575
|
createdAt: string;
|
|
1574
1576
|
updatedAt: string;
|
|
1577
|
+
metadata: Record<string, unknown>;
|
|
1575
1578
|
channelName?: string | undefined;
|
|
1576
1579
|
}, {
|
|
1577
1580
|
id: string;
|
|
1581
|
+
sessionId: string;
|
|
1578
1582
|
interfaceType: string;
|
|
1579
1583
|
channelId: string;
|
|
1580
|
-
metadata: Record<string, unknown>;
|
|
1581
|
-
sessionId: string;
|
|
1582
1584
|
startedAt: string;
|
|
1583
1585
|
lastActiveAt: string;
|
|
1584
1586
|
createdAt: string;
|
|
1585
1587
|
updatedAt: string;
|
|
1588
|
+
metadata: Record<string, unknown>;
|
|
1586
1589
|
channelName?: string | undefined;
|
|
1587
1590
|
}>;
|
|
1588
1591
|
type Conversation = z.infer<typeof ConversationSchema>;
|
|
@@ -1595,17 +1598,17 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
1595
1598
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1596
1599
|
}, "strip", z.ZodTypeAny, {
|
|
1597
1600
|
id: string;
|
|
1598
|
-
content: string;
|
|
1599
|
-
role: "user" | "assistant";
|
|
1600
1601
|
metadata: Record<string, unknown>;
|
|
1601
1602
|
conversationId: string;
|
|
1603
|
+
role: "user" | "assistant";
|
|
1604
|
+
content: string;
|
|
1602
1605
|
timestamp: string;
|
|
1603
1606
|
}, {
|
|
1604
1607
|
id: string;
|
|
1605
|
-
content: string;
|
|
1606
|
-
role: "user" | "assistant";
|
|
1607
1608
|
metadata: Record<string, unknown>;
|
|
1608
1609
|
conversationId: string;
|
|
1610
|
+
role: "user" | "assistant";
|
|
1611
|
+
content: string;
|
|
1609
1612
|
timestamp: string;
|
|
1610
1613
|
}>;
|
|
1611
1614
|
type Message = z.infer<typeof MessageSchema>;
|
|
@@ -1617,13 +1620,13 @@ declare const BrainCharacterSchema: z.ZodObject<{
|
|
|
1617
1620
|
values: z.ZodArray<z.ZodString, "many">;
|
|
1618
1621
|
}, "strip", z.ZodTypeAny, {
|
|
1619
1622
|
values: string[];
|
|
1620
|
-
role: string;
|
|
1621
1623
|
name: string;
|
|
1624
|
+
role: string;
|
|
1622
1625
|
purpose: string;
|
|
1623
1626
|
}, {
|
|
1624
1627
|
values: string[];
|
|
1625
|
-
role: string;
|
|
1626
1628
|
name: string;
|
|
1629
|
+
role: string;
|
|
1627
1630
|
purpose: string;
|
|
1628
1631
|
}>;
|
|
1629
1632
|
type BrainCharacter = z.infer<typeof BrainCharacterSchema>;
|
|
@@ -1649,8 +1652,8 @@ declare const AnchorProfileSchema: z.ZodObject<{
|
|
|
1649
1652
|
label?: string | undefined;
|
|
1650
1653
|
}>, "many">>;
|
|
1651
1654
|
}, "strip", z.ZodTypeAny, {
|
|
1652
|
-
kind: "professional" | "team" | "collective";
|
|
1653
1655
|
name: string;
|
|
1656
|
+
kind: "professional" | "team" | "collective";
|
|
1654
1657
|
description?: string | undefined;
|
|
1655
1658
|
organization?: string | undefined;
|
|
1656
1659
|
avatar?: string | undefined;
|
|
@@ -1662,8 +1665,8 @@ declare const AnchorProfileSchema: z.ZodObject<{
|
|
|
1662
1665
|
label?: string | undefined;
|
|
1663
1666
|
}[] | undefined;
|
|
1664
1667
|
}, {
|
|
1665
|
-
kind: "professional" | "team" | "collective";
|
|
1666
1668
|
name: string;
|
|
1669
|
+
kind: "professional" | "team" | "collective";
|
|
1667
1670
|
description?: string | undefined;
|
|
1668
1671
|
organization?: string | undefined;
|
|
1669
1672
|
avatar?: string | undefined;
|
|
@@ -1693,12 +1696,12 @@ declare const MessageResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1693
1696
|
error: z.ZodOptional<z.ZodString>;
|
|
1694
1697
|
}, "strip", z.ZodTypeAny, {
|
|
1695
1698
|
success: boolean;
|
|
1696
|
-
data?: unknown;
|
|
1697
1699
|
error?: string | undefined;
|
|
1700
|
+
data?: unknown;
|
|
1698
1701
|
}, {
|
|
1699
1702
|
success: boolean;
|
|
1700
|
-
data?: unknown;
|
|
1701
1703
|
error?: string | undefined;
|
|
1704
|
+
data?: unknown;
|
|
1702
1705
|
}>, z.ZodObject<{
|
|
1703
1706
|
noop: z.ZodLiteral<true>;
|
|
1704
1707
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1722,17 +1725,17 @@ declare const BaseMessageSchema: z.ZodObject<{
|
|
|
1722
1725
|
target: z.ZodOptional<z.ZodString>;
|
|
1723
1726
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1724
1727
|
}, "strip", z.ZodTypeAny, {
|
|
1725
|
-
id: string;
|
|
1726
1728
|
type: string;
|
|
1727
|
-
|
|
1729
|
+
id: string;
|
|
1728
1730
|
timestamp: string;
|
|
1731
|
+
source: string;
|
|
1729
1732
|
metadata?: Record<string, unknown> | undefined;
|
|
1730
1733
|
target?: string | undefined;
|
|
1731
1734
|
}, {
|
|
1732
|
-
id: string;
|
|
1733
1735
|
type: string;
|
|
1734
|
-
|
|
1736
|
+
id: string;
|
|
1735
1737
|
timestamp: string;
|
|
1738
|
+
source: string;
|
|
1736
1739
|
metadata?: Record<string, unknown> | undefined;
|
|
1737
1740
|
target?: string | undefined;
|
|
1738
1741
|
}>;
|