@rizom/brain 0.2.0-alpha.340 → 0.2.0-alpha.341
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 +38 -38
- package/dist/chunks/app-y7q0xdcg.js +5 -0
- package/dist/chunks/blog-post-adapter-ae6xkt56.js +5 -0
- package/dist/chunks/{index-aqgmcpkn.js → index-03yfn024.js} +2 -2
- package/dist/chunks/{index-vn7e2ctj.js → index-046155sg.js} +2 -2
- package/dist/chunks/{index-2emvdp0b.js → index-6n3gspsw.js} +3 -3
- package/dist/chunks/{index-4q6q0h7s.js → index-9pgv29vq.js} +3 -3
- package/dist/chunks/{index-4q6q0h7s.js.map → index-9pgv29vq.js.map} +1 -1
- package/dist/chunks/{index-b07ff2bs.js → index-atscxmvg.js} +2 -2
- package/dist/chunks/{index-qe487m15.js → index-f0wsc8k2.js} +2 -2
- package/dist/chunks/{index-1cn8hres.js → index-njsbgnad.js} +2 -2
- package/dist/chunks/{index-42dsww4h.js → index-nwfpmtvv.js} +2 -2
- package/dist/chunks/{index-0x4e8bmm.js → index-pzbj62c8.js} +2 -2
- package/dist/chunks/{index-ap5vwjap.js → index-sqdhe2fa.js} +3 -3
- package/dist/chunks/{index-ap5vwjap.js.map → index-sqdhe2fa.js.map} +5 -5
- package/dist/chunks/linkedin-template-sq3f3xr1.js +5 -0
- package/dist/chunks/{rss-datasource-wzbv8k94.js → rss-datasource-10fgjdhb.js} +2 -2
- package/dist/entities.js +1 -1
- package/dist/git-broker.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces.js +1 -1
- package/dist/model.d.ts +4 -0
- package/dist/model.js +39 -39
- package/dist/model.js.map +4 -4
- package/dist/plugins.js +1 -1
- package/dist/services.js +1 -1
- package/dist/templates.d.ts +5 -0
- package/dist/templates.js +1 -1
- package/dist/ui/app.js +2 -2
- package/dist/ui/app.js.map +4 -4
- package/package.json +1 -1
- package/dist/chunks/app-dabfj0vn.js +0 -5
- package/dist/chunks/blog-post-adapter-tbppq1ge.js +0 -5
- package/dist/chunks/linkedin-template-j6zqergh.js +0 -5
- /package/dist/chunks/{app-dabfj0vn.js.map → app-y7q0xdcg.js.map} +0 -0
- /package/dist/chunks/{blog-post-adapter-tbppq1ge.js.map → blog-post-adapter-ae6xkt56.js.map} +0 -0
- /package/dist/chunks/{index-aqgmcpkn.js.map → index-03yfn024.js.map} +0 -0
- /package/dist/chunks/{index-vn7e2ctj.js.map → index-046155sg.js.map} +0 -0
- /package/dist/chunks/{index-2emvdp0b.js.map → index-6n3gspsw.js.map} +0 -0
- /package/dist/chunks/{index-b07ff2bs.js.map → index-atscxmvg.js.map} +0 -0
- /package/dist/chunks/{index-qe487m15.js.map → index-f0wsc8k2.js.map} +0 -0
- /package/dist/chunks/{index-1cn8hres.js.map → index-njsbgnad.js.map} +0 -0
- /package/dist/chunks/{index-42dsww4h.js.map → index-nwfpmtvv.js.map} +0 -0
- /package/dist/chunks/{index-0x4e8bmm.js.map → index-pzbj62c8.js.map} +0 -0
- /package/dist/chunks/{linkedin-template-j6zqergh.js.map → linkedin-template-sq3f3xr1.js.map} +0 -0
- /package/dist/chunks/{rss-datasource-wzbv8k94.js.map → rss-datasource-10fgjdhb.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{M as d,N as t}from"./chunks/index-
|
|
2
|
+
import{M as d,N as t}from"./chunks/index-nwfpmtvv.js";import"./chunks/index-6n3gspsw.js";import"./chunks/index-0d2k3svj.js";import"./chunks/index-tv8qcsvy.js";import{Rd as a}from"./chunks/index-pzbj62c8.js";import"./chunks/index-atscxmvg.js";import"./chunks/index-pf8xvt8a.js";import"./chunks/index-sqdhe2fa.js";import"./chunks/index-zsva4zb6.js";function s(e,i){let o=new Set,n=new Set;for(let r of e){if(!t(r))throw Error(`${i} contains a value that was not returned by use()`);if(o.has(r.definition))throw Error(`${i} contains duplicate plugin definition "${r.definition.id}"; include each configured definition only once`);if(n.has(r.definition.id))throw Error(`${i} contains duplicate local plugin id "${r.definition.id}"; give each package definition a unique local id before composing it`);o.add(r.definition),n.add(r.definition.id)}}function l(e){a(e.id,"Bundle id"),s(e.members,`Bundle "${e.id}"`);for(let i of e.config??[])if(!t(i.member))throw Error(`Bundle "${e.id}" config contains a value that was not returned by use()`);for(let i of e.permissions??[])if(!t(i.member))throw Error(`Bundle "${e.id}" permissions contains a value that was not returned by use()`);for(let i of e.evalDisable??[])if(!t(i))throw Error(`Bundle "${e.id}" evalDisable contains a value that was not returned by use()`);return Object.freeze({...e,members:Object.freeze([...e.members]),...e.config?{config:Object.freeze([...e.config])}:{},...e.permissions?{permissions:Object.freeze([...e.permissions])}:{},...e.agentInstructions?{agentInstructions:Object.freeze([...e.agentInstructions])}:{},...e.evalDisable?{evalDisable:Object.freeze([...e.evalDisable])}:{}})}function u(e){if(!e.name.trim())throw Error("Brain name must not be empty");if(e.bundleContract?.trim().length===0)throw Error("Brain bundleContract must not be empty");s(e.plugins,`Brain "${e.name}"`);let i=new Set(e.plugins),o=new Set;for(let n of e.bundles??[]){if(o.has(n.id))throw Error(`Brain "${e.name}" has duplicate bundle "${n.id}"`);o.add(n.id);for(let r of n.members)if(!i.has(r))throw Error(`Brain "${e.name}" bundle "${n.id}" references a plugin outside its catalog`);for(let r of n.config??[])if(!i.has(r.member))throw Error(`Brain "${e.name}" bundle "${n.id}" config references a plugin outside its catalog`);for(let r of n.permissions??[])if(!i.has(r.member))throw Error(`Brain "${e.name}" bundle "${n.id}" permissions reference a plugin outside its catalog`);for(let r of n.evalDisable??[])if(!i.has(r))throw Error(`Brain "${e.name}" bundle "${n.id}" evalDisable references a plugin outside its catalog`)}for(let n of e.evalDisable??[])if(!i.has(n))throw Error(`Brain "${e.name}" evalDisable references a plugin outside its catalog`);return Object.freeze({...e,plugins:Object.freeze([...e.plugins]),...e.bundles?{bundles:Object.freeze([...e.bundles])}:{},...e.agentInstructions?{agentInstructions:Object.freeze([...e.agentInstructions])}:{},...e.evalDisable?{evalDisable:Object.freeze([...e.evalDisable])}:{}})}export{u as defineBrain,l as defineBundle,d as use};
|
|
3
3
|
|
|
4
4
|
//# debugId=699CEB1491D37D8B64756E2164756E21
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/interfaces.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ae as i,Be as o,Ce as r,De as s,Ee as f,le as n}from"./chunks/index-
|
|
2
|
+
import{Ae as i,Be as o,Ce as r,De as s,Ee as f,le as n}from"./chunks/index-pzbj62c8.js";import"./chunks/index-atscxmvg.js";import"./chunks/index-pf8xvt8a.js";import{ig as e,ji as t}from"./chunks/index-sqdhe2fa.js";import"./chunks/index-zsva4zb6.js";export{t as UserPermissionLevelSchema,n as defineAccountSettings,r as defineDaemon,s as defineInterface,f as defineMessageInterface,o as defineRoute,i as protocol,e as z};
|
|
3
3
|
|
|
4
4
|
//# debugId=B9CB31C513FB019664756E2164756E21
|
|
5
5
|
//# sourceMappingURL=interfaces.js.map
|
package/dist/model.d.ts
CHANGED
|
@@ -258,6 +258,8 @@ interface TemplateInput {
|
|
|
258
258
|
basePrompt?: string | undefined;
|
|
259
259
|
useKnowledgeContext?: boolean | undefined;
|
|
260
260
|
requiredPermission: "admin" | "trusted" | "public";
|
|
261
|
+
/** Stable author-owned version for output-affecting renderer behavior. */
|
|
262
|
+
renderVersion?: string | undefined;
|
|
261
263
|
formatter?: unknown;
|
|
262
264
|
overlayFormatter?: unknown;
|
|
263
265
|
layout?: {
|
|
@@ -696,6 +698,8 @@ interface ViewTemplate<T extends JsonObject$1 = JsonObject$1> {
|
|
|
696
698
|
schema: TemplateDataSchema<T>;
|
|
697
699
|
description?: string;
|
|
698
700
|
pluginId: string;
|
|
701
|
+
/** Stable author-owned version for output-affecting renderer behavior. */
|
|
702
|
+
renderVersion?: string;
|
|
699
703
|
renderers: {
|
|
700
704
|
web?: WebRenderer<T>;
|
|
701
705
|
image?: ImageRenderer<T>;
|