@rizom/brain 0.2.0-alpha.69 → 0.2.0-alpha.70
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 +336 -336
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +49 -49
- package/dist/site.js +73 -73
- package/dist/site.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
function t(i){return i}var e={name:"@rizom/brain",version:"0.2.0-alpha.
|
|
2
|
+
function t(i){return i}var e={name:"@rizom/brain",version:"0.2.0-alpha.70",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 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","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{t as defineBrain,n as PLUGIN_API_VERSION};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=973A77E343A837F464756E2164756E21
|
|
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": ";AAkEO,SAAS,CAAW,CAAC,EAA8C,CACxE,OAAO,4qFC1DF,IAAM,EAAqB,EAAY",
|
|
9
|
-
"debugId": "
|
|
9
|
+
"debugId": "973A77E343A837F464756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
package/dist/plugins.d.ts
CHANGED
|
@@ -392,16 +392,16 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
392
392
|
isBot: z.ZodOptional<z.ZodBoolean>;
|
|
393
393
|
}, "strip", z.ZodTypeAny, {
|
|
394
394
|
interfaceType: string;
|
|
395
|
-
actorId: string;
|
|
396
395
|
role: "user" | "assistant" | "system";
|
|
396
|
+
actorId: string;
|
|
397
397
|
canonicalId?: string | undefined;
|
|
398
398
|
displayName?: string | undefined;
|
|
399
399
|
username?: string | undefined;
|
|
400
400
|
isBot?: boolean | undefined;
|
|
401
401
|
}, {
|
|
402
402
|
interfaceType: string;
|
|
403
|
-
actorId: string;
|
|
404
403
|
role: "user" | "assistant" | "system";
|
|
404
|
+
actorId: string;
|
|
405
405
|
canonicalId?: string | undefined;
|
|
406
406
|
displayName?: string | undefined;
|
|
407
407
|
username?: string | undefined;
|
|
@@ -416,58 +416,58 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
416
416
|
}, "strip", z.ZodTypeAny, {
|
|
417
417
|
channelId?: string | undefined;
|
|
418
418
|
channelName?: string | undefined;
|
|
419
|
+
metadata?: Record<string, unknown> | undefined;
|
|
419
420
|
messageId?: string | undefined;
|
|
420
421
|
threadId?: string | undefined;
|
|
421
|
-
metadata?: Record<string, unknown> | undefined;
|
|
422
422
|
}, {
|
|
423
423
|
channelId?: string | undefined;
|
|
424
424
|
channelName?: string | undefined;
|
|
425
|
+
metadata?: Record<string, unknown> | undefined;
|
|
425
426
|
messageId?: string | undefined;
|
|
426
427
|
threadId?: string | undefined;
|
|
427
|
-
metadata?: Record<string, unknown> | undefined;
|
|
428
428
|
}>>;
|
|
429
429
|
}, "strip", z.ZodTypeAny, {
|
|
430
|
-
userPermissionLevel?: "anchor" | "trusted" | "public" | undefined;
|
|
431
430
|
interfaceType?: string | undefined;
|
|
432
431
|
channelId?: string | undefined;
|
|
433
432
|
channelName?: string | undefined;
|
|
433
|
+
source?: {
|
|
434
|
+
channelId?: string | undefined;
|
|
435
|
+
channelName?: string | undefined;
|
|
436
|
+
metadata?: Record<string, unknown> | undefined;
|
|
437
|
+
messageId?: string | undefined;
|
|
438
|
+
threadId?: string | undefined;
|
|
439
|
+
} | undefined;
|
|
440
|
+
userPermissionLevel?: "anchor" | "trusted" | "public" | undefined;
|
|
434
441
|
actor?: {
|
|
435
442
|
interfaceType: string;
|
|
436
|
-
actorId: string;
|
|
437
443
|
role: "user" | "assistant" | "system";
|
|
444
|
+
actorId: string;
|
|
438
445
|
canonicalId?: string | undefined;
|
|
439
446
|
displayName?: string | undefined;
|
|
440
447
|
username?: string | undefined;
|
|
441
448
|
isBot?: boolean | undefined;
|
|
442
449
|
} | undefined;
|
|
450
|
+
}, {
|
|
451
|
+
interfaceType?: string | undefined;
|
|
452
|
+
channelId?: string | undefined;
|
|
453
|
+
channelName?: string | undefined;
|
|
443
454
|
source?: {
|
|
444
455
|
channelId?: string | undefined;
|
|
445
456
|
channelName?: string | undefined;
|
|
457
|
+
metadata?: Record<string, unknown> | undefined;
|
|
446
458
|
messageId?: string | undefined;
|
|
447
459
|
threadId?: string | undefined;
|
|
448
|
-
metadata?: Record<string, unknown> | undefined;
|
|
449
460
|
} | undefined;
|
|
450
|
-
}, {
|
|
451
461
|
userPermissionLevel?: "anchor" | "trusted" | "public" | undefined;
|
|
452
|
-
interfaceType?: string | undefined;
|
|
453
|
-
channelId?: string | undefined;
|
|
454
|
-
channelName?: string | undefined;
|
|
455
462
|
actor?: {
|
|
456
463
|
interfaceType: string;
|
|
457
|
-
actorId: string;
|
|
458
464
|
role: "user" | "assistant" | "system";
|
|
465
|
+
actorId: string;
|
|
459
466
|
canonicalId?: string | undefined;
|
|
460
467
|
displayName?: string | undefined;
|
|
461
468
|
username?: string | undefined;
|
|
462
469
|
isBot?: boolean | undefined;
|
|
463
470
|
} | undefined;
|
|
464
|
-
source?: {
|
|
465
|
-
channelId?: string | undefined;
|
|
466
|
-
channelName?: string | undefined;
|
|
467
|
-
messageId?: string | undefined;
|
|
468
|
-
threadId?: string | undefined;
|
|
469
|
-
metadata?: Record<string, unknown> | undefined;
|
|
470
|
-
} | undefined;
|
|
471
471
|
}>;
|
|
472
472
|
type ChatContext = z.infer<typeof ChatContextSchema>;
|
|
473
473
|
declare const PendingConfirmationSchema: z.ZodObject<{
|
|
@@ -475,12 +475,12 @@ declare const PendingConfirmationSchema: z.ZodObject<{
|
|
|
475
475
|
description: z.ZodString;
|
|
476
476
|
args: z.ZodUnknown;
|
|
477
477
|
}, "strip", z.ZodTypeAny, {
|
|
478
|
-
toolName: string;
|
|
479
478
|
description: string;
|
|
479
|
+
toolName: string;
|
|
480
480
|
args?: unknown;
|
|
481
481
|
}, {
|
|
482
|
-
toolName: string;
|
|
483
482
|
description: string;
|
|
483
|
+
toolName: string;
|
|
484
484
|
args?: unknown;
|
|
485
485
|
}>;
|
|
486
486
|
type PendingConfirmation = z.infer<typeof PendingConfirmationSchema>;
|
|
@@ -491,14 +491,14 @@ declare const ToolResultDataSchema: z.ZodObject<{
|
|
|
491
491
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
492
492
|
}, "strip", z.ZodTypeAny, {
|
|
493
493
|
toolName: string;
|
|
494
|
+
data?: unknown;
|
|
494
495
|
args?: Record<string, unknown> | undefined;
|
|
495
496
|
jobId?: string | undefined;
|
|
496
|
-
data?: unknown;
|
|
497
497
|
}, {
|
|
498
498
|
toolName: string;
|
|
499
|
+
data?: unknown;
|
|
499
500
|
args?: Record<string, unknown> | undefined;
|
|
500
501
|
jobId?: string | undefined;
|
|
501
|
-
data?: unknown;
|
|
502
502
|
}>;
|
|
503
503
|
type ToolResultData = z.infer<typeof ToolResultDataSchema>;
|
|
504
504
|
declare const AgentResponseSchema: z.ZodObject<{
|
|
@@ -510,26 +510,26 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
510
510
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
511
511
|
}, "strip", z.ZodTypeAny, {
|
|
512
512
|
toolName: string;
|
|
513
|
+
data?: unknown;
|
|
513
514
|
args?: Record<string, unknown> | undefined;
|
|
514
515
|
jobId?: string | undefined;
|
|
515
|
-
data?: unknown;
|
|
516
516
|
}, {
|
|
517
517
|
toolName: string;
|
|
518
|
+
data?: unknown;
|
|
518
519
|
args?: Record<string, unknown> | undefined;
|
|
519
520
|
jobId?: string | undefined;
|
|
520
|
-
data?: unknown;
|
|
521
521
|
}>, "many">>;
|
|
522
522
|
pendingConfirmation: z.ZodOptional<z.ZodObject<{
|
|
523
523
|
toolName: z.ZodString;
|
|
524
524
|
description: z.ZodString;
|
|
525
525
|
args: z.ZodUnknown;
|
|
526
526
|
}, "strip", z.ZodTypeAny, {
|
|
527
|
-
toolName: string;
|
|
528
527
|
description: string;
|
|
528
|
+
toolName: string;
|
|
529
529
|
args?: unknown;
|
|
530
530
|
}, {
|
|
531
|
-
toolName: string;
|
|
532
531
|
description: string;
|
|
532
|
+
toolName: string;
|
|
533
533
|
args?: unknown;
|
|
534
534
|
}>>;
|
|
535
535
|
usage: z.ZodObject<{
|
|
@@ -554,13 +554,13 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
554
554
|
};
|
|
555
555
|
toolResults?: {
|
|
556
556
|
toolName: string;
|
|
557
|
+
data?: unknown;
|
|
557
558
|
args?: Record<string, unknown> | undefined;
|
|
558
559
|
jobId?: string | undefined;
|
|
559
|
-
data?: unknown;
|
|
560
560
|
}[] | undefined;
|
|
561
561
|
pendingConfirmation?: {
|
|
562
|
-
toolName: string;
|
|
563
562
|
description: string;
|
|
563
|
+
toolName: string;
|
|
564
564
|
args?: unknown;
|
|
565
565
|
} | undefined;
|
|
566
566
|
}, {
|
|
@@ -572,13 +572,13 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
572
572
|
};
|
|
573
573
|
toolResults?: {
|
|
574
574
|
toolName: string;
|
|
575
|
+
data?: unknown;
|
|
575
576
|
args?: Record<string, unknown> | undefined;
|
|
576
577
|
jobId?: string | undefined;
|
|
577
|
-
data?: unknown;
|
|
578
578
|
}[] | undefined;
|
|
579
579
|
pendingConfirmation?: {
|
|
580
|
-
toolName: string;
|
|
581
580
|
description: string;
|
|
581
|
+
toolName: string;
|
|
582
582
|
args?: unknown;
|
|
583
583
|
} | undefined;
|
|
584
584
|
}>;
|
|
@@ -702,9 +702,9 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
702
702
|
href: string;
|
|
703
703
|
kind: "human" | "agent" | "admin" | "protocol";
|
|
704
704
|
status?: "available" | "coming-soon" | "disabled" | undefined;
|
|
705
|
-
description?: string | undefined;
|
|
706
705
|
priority?: number | undefined;
|
|
707
706
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
707
|
+
description?: string | undefined;
|
|
708
708
|
}>, "many">;
|
|
709
709
|
}, "strip", z.ZodTypeAny, {
|
|
710
710
|
model: string;
|
|
@@ -788,9 +788,9 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
788
788
|
href: string;
|
|
789
789
|
kind: "human" | "agent" | "admin" | "protocol";
|
|
790
790
|
status?: "available" | "coming-soon" | "disabled" | undefined;
|
|
791
|
-
description?: string | undefined;
|
|
792
791
|
priority?: number | undefined;
|
|
793
792
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
793
|
+
description?: string | undefined;
|
|
794
794
|
}[];
|
|
795
795
|
}>;
|
|
796
796
|
type AppInfo = z.infer<typeof AppInfoSchema>;
|
|
@@ -807,26 +807,26 @@ declare const ConversationSchema: z.ZodObject<{
|
|
|
807
807
|
updatedAt: z.ZodString;
|
|
808
808
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
809
809
|
}, "strip", z.ZodTypeAny, {
|
|
810
|
-
interfaceType: string;
|
|
811
|
-
channelId: string;
|
|
812
|
-
metadata: Record<string, unknown>;
|
|
813
810
|
id: string;
|
|
814
811
|
sessionId: string;
|
|
812
|
+
interfaceType: string;
|
|
813
|
+
channelId: string;
|
|
815
814
|
startedAt: string;
|
|
816
815
|
lastActiveAt: string;
|
|
817
816
|
createdAt: string;
|
|
818
817
|
updatedAt: string;
|
|
818
|
+
metadata: Record<string, unknown>;
|
|
819
819
|
channelName?: string | undefined;
|
|
820
820
|
}, {
|
|
821
|
-
interfaceType: string;
|
|
822
|
-
channelId: string;
|
|
823
|
-
metadata: Record<string, unknown>;
|
|
824
821
|
id: string;
|
|
825
822
|
sessionId: string;
|
|
823
|
+
interfaceType: string;
|
|
824
|
+
channelId: string;
|
|
826
825
|
startedAt: string;
|
|
827
826
|
lastActiveAt: string;
|
|
828
827
|
createdAt: string;
|
|
829
828
|
updatedAt: string;
|
|
829
|
+
metadata: Record<string, unknown>;
|
|
830
830
|
channelName?: string | undefined;
|
|
831
831
|
}>;
|
|
832
832
|
type Conversation = z.infer<typeof ConversationSchema>;
|
|
@@ -840,17 +840,17 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
840
840
|
timestamp: z.ZodString;
|
|
841
841
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
842
842
|
}, "strip", z.ZodTypeAny, {
|
|
843
|
-
role: "user" | "assistant" | "system";
|
|
844
|
-
metadata: Record<string, unknown>;
|
|
845
843
|
id: string;
|
|
844
|
+
metadata: Record<string, unknown>;
|
|
846
845
|
conversationId: string;
|
|
846
|
+
role: "user" | "assistant" | "system";
|
|
847
847
|
content: string;
|
|
848
848
|
timestamp: string;
|
|
849
849
|
}, {
|
|
850
|
-
role: "user" | "assistant" | "system";
|
|
851
|
-
metadata: Record<string, unknown>;
|
|
852
850
|
id: string;
|
|
851
|
+
metadata: Record<string, unknown>;
|
|
853
852
|
conversationId: string;
|
|
853
|
+
role: "user" | "assistant" | "system";
|
|
854
854
|
content: string;
|
|
855
855
|
timestamp: string;
|
|
856
856
|
}>;
|
|
@@ -862,14 +862,14 @@ declare const BrainCharacterSchema: z.ZodObject<{
|
|
|
862
862
|
purpose: z.ZodString;
|
|
863
863
|
values: z.ZodArray<z.ZodString, "many">;
|
|
864
864
|
}, "strip", z.ZodTypeAny, {
|
|
865
|
-
role: string;
|
|
866
865
|
values: string[];
|
|
867
866
|
name: string;
|
|
867
|
+
role: string;
|
|
868
868
|
purpose: string;
|
|
869
869
|
}, {
|
|
870
|
-
role: string;
|
|
871
870
|
values: string[];
|
|
872
871
|
name: string;
|
|
872
|
+
role: string;
|
|
873
873
|
purpose: string;
|
|
874
874
|
}>;
|
|
875
875
|
type BrainCharacter = z.infer<typeof BrainCharacterSchema>;
|
|
@@ -939,12 +939,12 @@ declare const MessageResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
939
939
|
error: z.ZodOptional<z.ZodString>;
|
|
940
940
|
}, "strip", z.ZodTypeAny, {
|
|
941
941
|
success: boolean;
|
|
942
|
-
data?: unknown;
|
|
943
942
|
error?: string | undefined;
|
|
943
|
+
data?: unknown;
|
|
944
944
|
}, {
|
|
945
945
|
success: boolean;
|
|
946
|
-
data?: unknown;
|
|
947
946
|
error?: string | undefined;
|
|
947
|
+
data?: unknown;
|
|
948
948
|
}>, z.ZodObject<{
|
|
949
949
|
noop: z.ZodLiteral<true>;
|
|
950
950
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -969,16 +969,16 @@ declare const BaseMessageSchema: z.ZodObject<{
|
|
|
969
969
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
970
970
|
}, "strip", z.ZodTypeAny, {
|
|
971
971
|
type: string;
|
|
972
|
-
source: string;
|
|
973
972
|
id: string;
|
|
974
973
|
timestamp: string;
|
|
974
|
+
source: string;
|
|
975
975
|
metadata?: Record<string, unknown> | undefined;
|
|
976
976
|
target?: string | undefined;
|
|
977
977
|
}, {
|
|
978
978
|
type: string;
|
|
979
|
-
source: string;
|
|
980
979
|
id: string;
|
|
981
980
|
timestamp: string;
|
|
981
|
+
source: string;
|
|
982
982
|
metadata?: Record<string, unknown> | undefined;
|
|
983
983
|
target?: string | undefined;
|
|
984
984
|
}>;
|