@rizom/brain 0.2.0-alpha.70 → 0.2.0-alpha.71
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 +31 -31
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +49 -49
- package/dist/site.js +5 -5
- 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.71",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=D471D3153CA2789764756E2164756E21
|
|
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": "D471D3153CA2789764756E2164756E21",
|
|
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
|
-
role: "user" | "assistant" | "system";
|
|
396
395
|
actorId: string;
|
|
396
|
+
role: "user" | "assistant" | "system";
|
|
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
|
-
role: "user" | "assistant" | "system";
|
|
404
403
|
actorId: string;
|
|
404
|
+
role: "user" | "assistant" | "system";
|
|
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;
|
|
420
419
|
messageId?: string | undefined;
|
|
421
420
|
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;
|
|
426
425
|
messageId?: string | undefined;
|
|
427
426
|
threadId?: string | undefined;
|
|
427
|
+
metadata?: Record<string, unknown> | undefined;
|
|
428
428
|
}>>;
|
|
429
429
|
}, "strip", z.ZodTypeAny, {
|
|
430
|
+
userPermissionLevel?: "anchor" | "trusted" | "public" | undefined;
|
|
430
431
|
interfaceType?: string | undefined;
|
|
431
432
|
channelId?: string | undefined;
|
|
432
433
|
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;
|
|
441
434
|
actor?: {
|
|
442
435
|
interfaceType: string;
|
|
443
|
-
role: "user" | "assistant" | "system";
|
|
444
436
|
actorId: string;
|
|
437
|
+
role: "user" | "assistant" | "system";
|
|
445
438
|
canonicalId?: string | undefined;
|
|
446
439
|
displayName?: string | undefined;
|
|
447
440
|
username?: string | undefined;
|
|
448
441
|
isBot?: boolean | undefined;
|
|
449
442
|
} | undefined;
|
|
450
|
-
}, {
|
|
451
|
-
interfaceType?: string | undefined;
|
|
452
|
-
channelId?: string | undefined;
|
|
453
|
-
channelName?: string | undefined;
|
|
454
443
|
source?: {
|
|
455
444
|
channelId?: string | undefined;
|
|
456
445
|
channelName?: string | undefined;
|
|
457
|
-
metadata?: Record<string, unknown> | undefined;
|
|
458
446
|
messageId?: string | undefined;
|
|
459
447
|
threadId?: string | undefined;
|
|
448
|
+
metadata?: Record<string, unknown> | undefined;
|
|
460
449
|
} | undefined;
|
|
450
|
+
}, {
|
|
461
451
|
userPermissionLevel?: "anchor" | "trusted" | "public" | undefined;
|
|
452
|
+
interfaceType?: string | undefined;
|
|
453
|
+
channelId?: string | undefined;
|
|
454
|
+
channelName?: string | undefined;
|
|
462
455
|
actor?: {
|
|
463
456
|
interfaceType: string;
|
|
464
|
-
role: "user" | "assistant" | "system";
|
|
465
457
|
actorId: string;
|
|
458
|
+
role: "user" | "assistant" | "system";
|
|
466
459
|
canonicalId?: string | undefined;
|
|
467
460
|
displayName?: string | undefined;
|
|
468
461
|
username?: string | undefined;
|
|
469
462
|
isBot?: boolean | undefined;
|
|
470
463
|
} | 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
|
-
description: string;
|
|
479
478
|
toolName: string;
|
|
479
|
+
description: string;
|
|
480
480
|
args?: unknown;
|
|
481
481
|
}, {
|
|
482
|
-
description: string;
|
|
483
482
|
toolName: string;
|
|
483
|
+
description: 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;
|
|
495
494
|
args?: Record<string, unknown> | undefined;
|
|
496
495
|
jobId?: string | undefined;
|
|
496
|
+
data?: unknown;
|
|
497
497
|
}, {
|
|
498
498
|
toolName: string;
|
|
499
|
-
data?: unknown;
|
|
500
499
|
args?: Record<string, unknown> | undefined;
|
|
501
500
|
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;
|
|
514
513
|
args?: Record<string, unknown> | undefined;
|
|
515
514
|
jobId?: string | undefined;
|
|
515
|
+
data?: unknown;
|
|
516
516
|
}, {
|
|
517
517
|
toolName: string;
|
|
518
|
-
data?: unknown;
|
|
519
518
|
args?: Record<string, unknown> | undefined;
|
|
520
519
|
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
|
-
description: string;
|
|
528
527
|
toolName: string;
|
|
528
|
+
description: string;
|
|
529
529
|
args?: unknown;
|
|
530
530
|
}, {
|
|
531
|
-
description: string;
|
|
532
531
|
toolName: string;
|
|
532
|
+
description: 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;
|
|
558
557
|
args?: Record<string, unknown> | undefined;
|
|
559
558
|
jobId?: string | undefined;
|
|
559
|
+
data?: unknown;
|
|
560
560
|
}[] | undefined;
|
|
561
561
|
pendingConfirmation?: {
|
|
562
|
-
description: string;
|
|
563
562
|
toolName: string;
|
|
563
|
+
description: 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;
|
|
576
575
|
args?: Record<string, unknown> | undefined;
|
|
577
576
|
jobId?: string | undefined;
|
|
577
|
+
data?: unknown;
|
|
578
578
|
}[] | undefined;
|
|
579
579
|
pendingConfirmation?: {
|
|
580
|
-
description: string;
|
|
581
580
|
toolName: string;
|
|
581
|
+
description: 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;
|
|
705
706
|
priority?: number | undefined;
|
|
706
707
|
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;
|
|
791
792
|
priority?: number | undefined;
|
|
792
793
|
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
|
-
id: string;
|
|
811
|
-
sessionId: string;
|
|
812
810
|
interfaceType: string;
|
|
813
811
|
channelId: string;
|
|
812
|
+
metadata: Record<string, unknown>;
|
|
813
|
+
id: string;
|
|
814
|
+
sessionId: string;
|
|
814
815
|
startedAt: string;
|
|
815
816
|
lastActiveAt: string;
|
|
816
817
|
createdAt: string;
|
|
817
818
|
updatedAt: string;
|
|
818
|
-
metadata: Record<string, unknown>;
|
|
819
819
|
channelName?: string | undefined;
|
|
820
820
|
}, {
|
|
821
|
-
id: string;
|
|
822
|
-
sessionId: string;
|
|
823
821
|
interfaceType: string;
|
|
824
822
|
channelId: string;
|
|
823
|
+
metadata: Record<string, unknown>;
|
|
824
|
+
id: string;
|
|
825
|
+
sessionId: string;
|
|
825
826
|
startedAt: string;
|
|
826
827
|
lastActiveAt: string;
|
|
827
828
|
createdAt: string;
|
|
828
829
|
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
|
-
|
|
843
|
+
role: "user" | "assistant" | "system";
|
|
844
844
|
metadata: Record<string, unknown>;
|
|
845
|
+
id: string;
|
|
845
846
|
conversationId: string;
|
|
846
|
-
role: "user" | "assistant" | "system";
|
|
847
847
|
content: string;
|
|
848
848
|
timestamp: string;
|
|
849
849
|
}, {
|
|
850
|
-
|
|
850
|
+
role: "user" | "assistant" | "system";
|
|
851
851
|
metadata: Record<string, unknown>;
|
|
852
|
+
id: string;
|
|
852
853
|
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;
|
|
865
866
|
values: string[];
|
|
866
867
|
name: string;
|
|
867
|
-
role: string;
|
|
868
868
|
purpose: string;
|
|
869
869
|
}, {
|
|
870
|
+
role: string;
|
|
870
871
|
values: string[];
|
|
871
872
|
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
|
-
error?: string | undefined;
|
|
943
942
|
data?: unknown;
|
|
943
|
+
error?: string | undefined;
|
|
944
944
|
}, {
|
|
945
945
|
success: boolean;
|
|
946
|
-
error?: string | undefined;
|
|
947
946
|
data?: unknown;
|
|
947
|
+
error?: string | undefined;
|
|
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;
|
|
972
973
|
id: string;
|
|
973
974
|
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;
|
|
979
980
|
id: string;
|
|
980
981
|
timestamp: string;
|
|
981
|
-
source: string;
|
|
982
982
|
metadata?: Record<string, unknown> | undefined;
|
|
983
983
|
target?: string | undefined;
|
|
984
984
|
}>;
|