@rizom/brain 0.2.0-alpha.49 → 0.2.0-alpha.50
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 +743 -758
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +20 -28
- package/dist/interfaces.js +68 -68
- package/dist/interfaces.js.map +6 -4
- package/dist/plugins.d.ts +4 -0
- package/dist/plugins.js +65 -65
- package/dist/plugins.js.map +6 -6
- package/dist/site.js +187 -440
- package/dist/site.js.map +26 -161
- 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.50",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/deploy-templates":"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=432458D4F3AC355864756E2164756E21
|
|
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": ";AAiEO,SAAS,CAAW,CAAC,EAA8C,CACxE,OAAO,moFCzDF,IAAM,EAAqB,EAAY",
|
|
9
|
-
"debugId": "
|
|
9
|
+
"debugId": "432458D4F3AC355864756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -67,9 +67,7 @@ interface MessageContext {
|
|
|
67
67
|
threadId?: string;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
/**
|
|
71
|
-
* Section definition schema
|
|
72
|
-
*/
|
|
70
|
+
/** Section definition schema for site routes. */
|
|
73
71
|
declare const SectionDefinitionSchema: z.ZodObject<{
|
|
74
72
|
id: z.ZodString;
|
|
75
73
|
template: z.ZodString;
|
|
@@ -169,22 +167,10 @@ declare const SectionDefinitionSchema: z.ZodObject<{
|
|
|
169
167
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
170
168
|
order?: number | undefined;
|
|
171
169
|
}>;
|
|
172
|
-
/**
|
|
173
|
-
* Navigation slot types
|
|
174
|
-
*/
|
|
170
|
+
/** Navigation slot types. */
|
|
175
171
|
declare const NavigationSlots: readonly ["primary", "secondary"];
|
|
176
172
|
type NavigationSlot = (typeof NavigationSlots)[number];
|
|
177
|
-
/**
|
|
178
|
-
* Display and behavior metadata for an entity type.
|
|
179
|
-
*
|
|
180
|
-
* Keyed by entity type on `SitePackage.entityDisplay`, these entries
|
|
181
|
-
* describe how an entity type should present itself — its human label,
|
|
182
|
-
* plural name, default layout, pagination, and navigation slot. The
|
|
183
|
-
* site-builder's dynamic route generator consults them when producing
|
|
184
|
-
* auto-generated list/detail routes for each active entity plugin, but
|
|
185
|
-
* the metadata is conceptually about the entity type itself, not about
|
|
186
|
-
* any particular route.
|
|
187
|
-
*/
|
|
173
|
+
/** Display and behavior metadata for an entity type. */
|
|
188
174
|
interface EntityDisplayEntry {
|
|
189
175
|
label: string;
|
|
190
176
|
pluralName?: string;
|
|
@@ -200,9 +186,7 @@ interface EntityDisplayEntry {
|
|
|
200
186
|
priority?: number;
|
|
201
187
|
};
|
|
202
188
|
}
|
|
203
|
-
/**
|
|
204
|
-
* Route definition schema
|
|
205
|
-
*/
|
|
189
|
+
/** Route definition schema. */
|
|
206
190
|
declare const RouteDefinitionSchema: z.ZodObject<{
|
|
207
191
|
id: z.ZodString;
|
|
208
192
|
path: z.ZodString;
|
|
@@ -410,14 +394,7 @@ declare const RouteDefinitionSchema: z.ZodObject<{
|
|
|
410
394
|
type SectionDefinition = z.infer<typeof SectionDefinitionSchema>;
|
|
411
395
|
type RouteDefinition = z.infer<typeof RouteDefinitionSchema>;
|
|
412
396
|
type RouteDefinitionInput = z.input<typeof RouteDefinitionSchema>;
|
|
413
|
-
|
|
414
|
-
label: string;
|
|
415
|
-
href: string;
|
|
416
|
-
priority: number;
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* Message payload schemas for route operations
|
|
420
|
-
*/
|
|
397
|
+
/** Message payload schemas for route operations. */
|
|
421
398
|
declare const RegisterRoutesPayloadSchema: z.ZodObject<{
|
|
422
399
|
routes: z.ZodArray<z.ZodObject<{
|
|
423
400
|
id: z.ZodString;
|
|
@@ -733,6 +710,21 @@ declare const GetRoutePayloadSchema: z.ZodObject<{
|
|
|
733
710
|
}, {
|
|
734
711
|
path: string;
|
|
735
712
|
}>;
|
|
713
|
+
/** Navigation item shape for extracted navigation data. */
|
|
714
|
+
declare const NavigationItemSchema: z.ZodObject<{
|
|
715
|
+
label: z.ZodString;
|
|
716
|
+
href: z.ZodString;
|
|
717
|
+
priority: z.ZodNumber;
|
|
718
|
+
}, "strip", z.ZodTypeAny, {
|
|
719
|
+
label: string;
|
|
720
|
+
priority: number;
|
|
721
|
+
href: string;
|
|
722
|
+
}, {
|
|
723
|
+
label: string;
|
|
724
|
+
priority: number;
|
|
725
|
+
href: string;
|
|
726
|
+
}>;
|
|
727
|
+
type NavigationItem = z.infer<typeof NavigationItemSchema>;
|
|
736
728
|
|
|
737
729
|
declare const apiRouteDefinitionSchema: z.ZodObject<{
|
|
738
730
|
/** Path suffix (prefixed with /api/{pluginId}) */
|