@rizom/brain 0.2.0-alpha.98 → 0.2.0-alpha.99
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 +623 -621
- package/dist/entities.d.ts +47 -0
- package/dist/entities.js +14 -14
- package/dist/entities.js.map +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +53 -53
- package/dist/plugins.d.ts +47 -0
- package/dist/plugins.js +17 -17
- package/dist/plugins.js.map +3 -3
- package/dist/services.js +15 -15
- package/dist/services.js.map +3 -3
- package/dist/site.js +92 -92
- package/dist/site.js.map +4 -4
- 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.99",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","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{t as defineBrain,n as PLUGIN_API_VERSION};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=9B8B64D200C645E664756E2164756E21
|
|
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,wsFC1DF,IAAM,EAAqB,EAAY",
|
|
9
|
-
"debugId": "
|
|
9
|
+
"debugId": "9B8B64D200C645E664756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -367,17 +367,18 @@ declare const RouteDefinitionSchema: z.ZodObject<{
|
|
|
367
367
|
slot: z.ZodDefault<z.ZodEnum<["primary", "secondary"]>>;
|
|
368
368
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
369
369
|
}, "strip", z.ZodTypeAny, {
|
|
370
|
-
priority: number;
|
|
371
370
|
show: boolean;
|
|
372
371
|
slot: "primary" | "secondary";
|
|
372
|
+
priority: number;
|
|
373
373
|
label?: string | undefined;
|
|
374
374
|
}, {
|
|
375
|
-
label?: string | undefined;
|
|
376
|
-
priority?: number | undefined;
|
|
377
375
|
show?: boolean | undefined;
|
|
376
|
+
label?: string | undefined;
|
|
378
377
|
slot?: "primary" | "secondary" | undefined;
|
|
378
|
+
priority?: number | undefined;
|
|
379
379
|
}>>;
|
|
380
380
|
}, "strip", z.ZodTypeAny, {
|
|
381
|
+
id: string;
|
|
381
382
|
path: string;
|
|
382
383
|
title: string;
|
|
383
384
|
description: string;
|
|
@@ -404,23 +405,23 @@ declare const RouteDefinitionSchema: z.ZodObject<{
|
|
|
404
405
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
405
406
|
order?: number | undefined;
|
|
406
407
|
}[];
|
|
407
|
-
id: string;
|
|
408
408
|
layout: string;
|
|
409
|
-
navigation?: {
|
|
410
|
-
priority: number;
|
|
411
|
-
show: boolean;
|
|
412
|
-
slot: "primary" | "secondary";
|
|
413
|
-
label?: string | undefined;
|
|
414
|
-
} | undefined;
|
|
415
409
|
pageLabel?: string | undefined;
|
|
416
410
|
fullscreen?: boolean | undefined;
|
|
417
411
|
pluginId?: string | undefined;
|
|
418
412
|
sourceEntityType?: string | undefined;
|
|
419
413
|
external?: boolean | undefined;
|
|
414
|
+
navigation?: {
|
|
415
|
+
show: boolean;
|
|
416
|
+
slot: "primary" | "secondary";
|
|
417
|
+
priority: number;
|
|
418
|
+
label?: string | undefined;
|
|
419
|
+
} | undefined;
|
|
420
420
|
}, {
|
|
421
|
-
path: string;
|
|
422
421
|
id: string;
|
|
422
|
+
path: string;
|
|
423
423
|
title?: string | undefined;
|
|
424
|
+
pageLabel?: string | undefined;
|
|
424
425
|
description?: string | undefined;
|
|
425
426
|
sections?: {
|
|
426
427
|
id: string;
|
|
@@ -445,18 +446,17 @@ declare const RouteDefinitionSchema: z.ZodObject<{
|
|
|
445
446
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
446
447
|
order?: number | undefined;
|
|
447
448
|
}[] | undefined;
|
|
448
|
-
navigation?: {
|
|
449
|
-
label?: string | undefined;
|
|
450
|
-
priority?: number | undefined;
|
|
451
|
-
show?: boolean | undefined;
|
|
452
|
-
slot?: "primary" | "secondary" | undefined;
|
|
453
|
-
} | undefined;
|
|
454
|
-
pageLabel?: string | undefined;
|
|
455
449
|
layout?: string | undefined;
|
|
456
450
|
fullscreen?: boolean | undefined;
|
|
457
451
|
pluginId?: string | undefined;
|
|
458
452
|
sourceEntityType?: string | undefined;
|
|
459
453
|
external?: boolean | undefined;
|
|
454
|
+
navigation?: {
|
|
455
|
+
show?: boolean | undefined;
|
|
456
|
+
label?: string | undefined;
|
|
457
|
+
slot?: "primary" | "secondary" | undefined;
|
|
458
|
+
priority?: number | undefined;
|
|
459
|
+
} | undefined;
|
|
460
460
|
}>;
|
|
461
461
|
type SectionDefinition = z.infer<typeof SectionDefinitionSchema>;
|
|
462
462
|
type RouteDefinition = z.infer<typeof RouteDefinitionSchema>;
|
|
@@ -580,17 +580,18 @@ declare const RegisterRoutesPayloadSchema: z.ZodObject<{
|
|
|
580
580
|
slot: z.ZodDefault<z.ZodEnum<["primary", "secondary"]>>;
|
|
581
581
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
582
582
|
}, "strip", z.ZodTypeAny, {
|
|
583
|
-
priority: number;
|
|
584
583
|
show: boolean;
|
|
585
584
|
slot: "primary" | "secondary";
|
|
585
|
+
priority: number;
|
|
586
586
|
label?: string | undefined;
|
|
587
587
|
}, {
|
|
588
|
-
label?: string | undefined;
|
|
589
|
-
priority?: number | undefined;
|
|
590
588
|
show?: boolean | undefined;
|
|
589
|
+
label?: string | undefined;
|
|
591
590
|
slot?: "primary" | "secondary" | undefined;
|
|
591
|
+
priority?: number | undefined;
|
|
592
592
|
}>>;
|
|
593
593
|
}, "strip", z.ZodTypeAny, {
|
|
594
|
+
id: string;
|
|
594
595
|
path: string;
|
|
595
596
|
title: string;
|
|
596
597
|
description: string;
|
|
@@ -617,23 +618,23 @@ declare const RegisterRoutesPayloadSchema: z.ZodObject<{
|
|
|
617
618
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
618
619
|
order?: number | undefined;
|
|
619
620
|
}[];
|
|
620
|
-
id: string;
|
|
621
621
|
layout: string;
|
|
622
|
-
navigation?: {
|
|
623
|
-
priority: number;
|
|
624
|
-
show: boolean;
|
|
625
|
-
slot: "primary" | "secondary";
|
|
626
|
-
label?: string | undefined;
|
|
627
|
-
} | undefined;
|
|
628
622
|
pageLabel?: string | undefined;
|
|
629
623
|
fullscreen?: boolean | undefined;
|
|
630
624
|
pluginId?: string | undefined;
|
|
631
625
|
sourceEntityType?: string | undefined;
|
|
632
626
|
external?: boolean | undefined;
|
|
627
|
+
navigation?: {
|
|
628
|
+
show: boolean;
|
|
629
|
+
slot: "primary" | "secondary";
|
|
630
|
+
priority: number;
|
|
631
|
+
label?: string | undefined;
|
|
632
|
+
} | undefined;
|
|
633
633
|
}, {
|
|
634
|
-
path: string;
|
|
635
634
|
id: string;
|
|
635
|
+
path: string;
|
|
636
636
|
title?: string | undefined;
|
|
637
|
+
pageLabel?: string | undefined;
|
|
637
638
|
description?: string | undefined;
|
|
638
639
|
sections?: {
|
|
639
640
|
id: string;
|
|
@@ -658,23 +659,23 @@ declare const RegisterRoutesPayloadSchema: z.ZodObject<{
|
|
|
658
659
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
659
660
|
order?: number | undefined;
|
|
660
661
|
}[] | undefined;
|
|
661
|
-
navigation?: {
|
|
662
|
-
label?: string | undefined;
|
|
663
|
-
priority?: number | undefined;
|
|
664
|
-
show?: boolean | undefined;
|
|
665
|
-
slot?: "primary" | "secondary" | undefined;
|
|
666
|
-
} | undefined;
|
|
667
|
-
pageLabel?: string | undefined;
|
|
668
662
|
layout?: string | undefined;
|
|
669
663
|
fullscreen?: boolean | undefined;
|
|
670
664
|
pluginId?: string | undefined;
|
|
671
665
|
sourceEntityType?: string | undefined;
|
|
672
666
|
external?: boolean | undefined;
|
|
667
|
+
navigation?: {
|
|
668
|
+
show?: boolean | undefined;
|
|
669
|
+
label?: string | undefined;
|
|
670
|
+
slot?: "primary" | "secondary" | undefined;
|
|
671
|
+
priority?: number | undefined;
|
|
672
|
+
} | undefined;
|
|
673
673
|
}>, "many">;
|
|
674
674
|
pluginId: z.ZodString;
|
|
675
675
|
}, "strip", z.ZodTypeAny, {
|
|
676
676
|
pluginId: string;
|
|
677
677
|
routes: {
|
|
678
|
+
id: string;
|
|
678
679
|
path: string;
|
|
679
680
|
title: string;
|
|
680
681
|
description: string;
|
|
@@ -701,26 +702,26 @@ declare const RegisterRoutesPayloadSchema: z.ZodObject<{
|
|
|
701
702
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
702
703
|
order?: number | undefined;
|
|
703
704
|
}[];
|
|
704
|
-
id: string;
|
|
705
705
|
layout: string;
|
|
706
|
-
navigation?: {
|
|
707
|
-
priority: number;
|
|
708
|
-
show: boolean;
|
|
709
|
-
slot: "primary" | "secondary";
|
|
710
|
-
label?: string | undefined;
|
|
711
|
-
} | undefined;
|
|
712
706
|
pageLabel?: string | undefined;
|
|
713
707
|
fullscreen?: boolean | undefined;
|
|
714
708
|
pluginId?: string | undefined;
|
|
715
709
|
sourceEntityType?: string | undefined;
|
|
716
710
|
external?: boolean | undefined;
|
|
711
|
+
navigation?: {
|
|
712
|
+
show: boolean;
|
|
713
|
+
slot: "primary" | "secondary";
|
|
714
|
+
priority: number;
|
|
715
|
+
label?: string | undefined;
|
|
716
|
+
} | undefined;
|
|
717
717
|
}[];
|
|
718
718
|
}, {
|
|
719
719
|
pluginId: string;
|
|
720
720
|
routes: {
|
|
721
|
-
path: string;
|
|
722
721
|
id: string;
|
|
722
|
+
path: string;
|
|
723
723
|
title?: string | undefined;
|
|
724
|
+
pageLabel?: string | undefined;
|
|
724
725
|
description?: string | undefined;
|
|
725
726
|
sections?: {
|
|
726
727
|
id: string;
|
|
@@ -745,18 +746,17 @@ declare const RegisterRoutesPayloadSchema: z.ZodObject<{
|
|
|
745
746
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
746
747
|
order?: number | undefined;
|
|
747
748
|
}[] | undefined;
|
|
748
|
-
navigation?: {
|
|
749
|
-
label?: string | undefined;
|
|
750
|
-
priority?: number | undefined;
|
|
751
|
-
show?: boolean | undefined;
|
|
752
|
-
slot?: "primary" | "secondary" | undefined;
|
|
753
|
-
} | undefined;
|
|
754
|
-
pageLabel?: string | undefined;
|
|
755
749
|
layout?: string | undefined;
|
|
756
750
|
fullscreen?: boolean | undefined;
|
|
757
751
|
pluginId?: string | undefined;
|
|
758
752
|
sourceEntityType?: string | undefined;
|
|
759
753
|
external?: boolean | undefined;
|
|
754
|
+
navigation?: {
|
|
755
|
+
show?: boolean | undefined;
|
|
756
|
+
label?: string | undefined;
|
|
757
|
+
slot?: "primary" | "secondary" | undefined;
|
|
758
|
+
priority?: number | undefined;
|
|
759
|
+
} | undefined;
|
|
760
760
|
}[];
|
|
761
761
|
}>;
|
|
762
762
|
declare const UnregisterRoutesPayloadSchema: z.ZodObject<{
|
|
@@ -790,12 +790,12 @@ declare const NavigationItemSchema: z.ZodObject<{
|
|
|
790
790
|
priority: z.ZodNumber;
|
|
791
791
|
}, "strip", z.ZodTypeAny, {
|
|
792
792
|
label: string;
|
|
793
|
-
href: string;
|
|
794
793
|
priority: number;
|
|
794
|
+
href: string;
|
|
795
795
|
}, {
|
|
796
796
|
label: string;
|
|
797
|
-
href: string;
|
|
798
797
|
priority: number;
|
|
798
|
+
href: string;
|
|
799
799
|
}>;
|
|
800
800
|
type NavigationItem = z.infer<typeof NavigationItemSchema>;
|
|
801
801
|
|
package/dist/plugins.d.ts
CHANGED
|
@@ -173,12 +173,59 @@ interface CreateExecutionContext {
|
|
|
173
173
|
/**
|
|
174
174
|
* Result returned to system_create when a plugin fully handles creation.
|
|
175
175
|
*/
|
|
176
|
+
declare const createResultAttachmentSchema: z.ZodObject<{
|
|
177
|
+
mediaType: z.ZodString;
|
|
178
|
+
url: z.ZodString;
|
|
179
|
+
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
180
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
181
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
182
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
entityType: z.ZodOptional<z.ZodString>;
|
|
185
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
186
|
+
attachmentType: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
entityType?: string | undefined;
|
|
189
|
+
entityId?: string | undefined;
|
|
190
|
+
attachmentType?: string | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
entityType?: string | undefined;
|
|
193
|
+
entityId?: string | undefined;
|
|
194
|
+
attachmentType?: string | undefined;
|
|
195
|
+
}>>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
mediaType: string;
|
|
198
|
+
url: string;
|
|
199
|
+
downloadUrl?: string | undefined;
|
|
200
|
+
previewUrl?: string | undefined;
|
|
201
|
+
filename?: string | undefined;
|
|
202
|
+
sizeBytes?: number | undefined;
|
|
203
|
+
source?: {
|
|
204
|
+
entityType?: string | undefined;
|
|
205
|
+
entityId?: string | undefined;
|
|
206
|
+
attachmentType?: string | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
mediaType: string;
|
|
210
|
+
url: string;
|
|
211
|
+
downloadUrl?: string | undefined;
|
|
212
|
+
previewUrl?: string | undefined;
|
|
213
|
+
filename?: string | undefined;
|
|
214
|
+
sizeBytes?: number | undefined;
|
|
215
|
+
source?: {
|
|
216
|
+
entityType?: string | undefined;
|
|
217
|
+
entityId?: string | undefined;
|
|
218
|
+
attachmentType?: string | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
}>;
|
|
221
|
+
type CreateResultAttachment = z.infer<typeof createResultAttachmentSchema>;
|
|
176
222
|
type CreateResult = {
|
|
177
223
|
success: true;
|
|
178
224
|
data: {
|
|
179
225
|
entityId?: string;
|
|
180
226
|
jobId?: string;
|
|
181
227
|
status: string;
|
|
228
|
+
attachment?: CreateResultAttachment;
|
|
182
229
|
};
|
|
183
230
|
} | {
|
|
184
231
|
success: false;
|