@rizom/brain 0.2.0-alpha.129 → 0.2.0-alpha.130
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 +1076 -1217
- package/dist/entities.d.ts +8 -0
- package/dist/entities.js +2 -2
- package/dist/entities.js.map +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +50 -0
- package/dist/plugins.js +40 -40
- package/dist/plugins.js.map +4 -4
- package/dist/seed-content/rover-seed-content-core/playbook/rover-onboarding.md +9 -1
- package/dist/services.js.map +1 -1
- package/dist/site.js +135 -135
- package/dist/site.js.map +16 -16
- 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.130",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=90307CB20415657E64756E2164756E21
|
|
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": "90307CB20415657E64756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
package/dist/plugins.d.ts
CHANGED
|
@@ -93,14 +93,32 @@ declare const ToolResultDataSchema: z.ZodObject<{
|
|
|
93
93
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
94
94
|
jobId: z.ZodOptional<z.ZodString>;
|
|
95
95
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
96
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
message: z.ZodString;
|
|
98
|
+
code: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
message: string;
|
|
101
|
+
code?: string | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
message: string;
|
|
104
|
+
code?: string | undefined;
|
|
105
|
+
}>>;
|
|
96
106
|
}, "strip", z.ZodTypeAny, {
|
|
97
107
|
toolName: string;
|
|
98
108
|
args?: Record<string, unknown> | undefined;
|
|
109
|
+
error?: {
|
|
110
|
+
message: string;
|
|
111
|
+
code?: string | undefined;
|
|
112
|
+
} | undefined;
|
|
99
113
|
jobId?: string | undefined;
|
|
100
114
|
data?: unknown;
|
|
101
115
|
}, {
|
|
102
116
|
toolName: string;
|
|
103
117
|
args?: Record<string, unknown> | undefined;
|
|
118
|
+
error?: {
|
|
119
|
+
message: string;
|
|
120
|
+
code?: string | undefined;
|
|
121
|
+
} | undefined;
|
|
104
122
|
jobId?: string | undefined;
|
|
105
123
|
data?: unknown;
|
|
106
124
|
}>;
|
|
@@ -112,14 +130,32 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
112
130
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
113
131
|
jobId: z.ZodOptional<z.ZodString>;
|
|
114
132
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
133
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
message: z.ZodString;
|
|
135
|
+
code: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
message: string;
|
|
138
|
+
code?: string | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
message: string;
|
|
141
|
+
code?: string | undefined;
|
|
142
|
+
}>>;
|
|
115
143
|
}, "strip", z.ZodTypeAny, {
|
|
116
144
|
toolName: string;
|
|
117
145
|
args?: Record<string, unknown> | undefined;
|
|
146
|
+
error?: {
|
|
147
|
+
message: string;
|
|
148
|
+
code?: string | undefined;
|
|
149
|
+
} | undefined;
|
|
118
150
|
jobId?: string | undefined;
|
|
119
151
|
data?: unknown;
|
|
120
152
|
}, {
|
|
121
153
|
toolName: string;
|
|
122
154
|
args?: Record<string, unknown> | undefined;
|
|
155
|
+
error?: {
|
|
156
|
+
message: string;
|
|
157
|
+
code?: string | undefined;
|
|
158
|
+
} | undefined;
|
|
123
159
|
jobId?: string | undefined;
|
|
124
160
|
data?: unknown;
|
|
125
161
|
}>, "many">>;
|
|
@@ -435,6 +471,10 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
435
471
|
toolResults?: {
|
|
436
472
|
toolName: string;
|
|
437
473
|
args?: Record<string, unknown> | undefined;
|
|
474
|
+
error?: {
|
|
475
|
+
message: string;
|
|
476
|
+
code?: string | undefined;
|
|
477
|
+
} | undefined;
|
|
438
478
|
jobId?: string | undefined;
|
|
439
479
|
data?: unknown;
|
|
440
480
|
}[] | undefined;
|
|
@@ -521,6 +561,10 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
521
561
|
toolResults?: {
|
|
522
562
|
toolName: string;
|
|
523
563
|
args?: Record<string, unknown> | undefined;
|
|
564
|
+
error?: {
|
|
565
|
+
message: string;
|
|
566
|
+
code?: string | undefined;
|
|
567
|
+
} | undefined;
|
|
524
568
|
jobId?: string | undefined;
|
|
525
569
|
data?: unknown;
|
|
526
570
|
}[] | undefined;
|
|
@@ -821,6 +865,12 @@ interface UploadSaveHandlerRegistration {
|
|
|
821
865
|
*/
|
|
822
866
|
interface EntityAdapter<TEntity extends BaseEntity<TMetadata>, TMetadata = Record<string, unknown>> {
|
|
823
867
|
entityType: string;
|
|
868
|
+
/**
|
|
869
|
+
* One declarative sentence describing what this entity type is. This is the
|
|
870
|
+
* data the model reads to select `entityType`, replacing hardcoded example
|
|
871
|
+
* phrasings in system instructions. Required: every type must define itself.
|
|
872
|
+
*/
|
|
873
|
+
purpose: string;
|
|
824
874
|
schema: z.ZodType<TEntity, z.ZodTypeDef, unknown>;
|
|
825
875
|
toMarkdown(entity: TEntity): string;
|
|
826
876
|
fromMarkdown(markdown: string): Partial<TEntity>;
|