@rizom/brain 0.2.0-alpha.354 → 0.2.0-alpha.355
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 +37 -37
- package/dist/chunks/{app-m9hjd2pg.js → app-c5pdekt0.js} +2 -2
- package/dist/chunks/{blog-post-adapter-bqm9vrja.js → blog-post-adapter-njnq5kyv.js} +2 -2
- package/dist/chunks/{index-dqe1320c.js → index-6ckkrggy.js} +3 -3
- package/dist/chunks/{index-dqe1320c.js.map → index-6ckkrggy.js.map} +1 -1
- package/dist/chunks/{index-4x71s1h0.js → index-bjmmrp5q.js} +3 -3
- package/dist/chunks/{index-4x71s1h0.js.map → index-bjmmrp5q.js.map} +3 -3
- package/dist/chunks/{index-qpztpfw8.js → index-e2scq3d5.js} +2 -2
- package/dist/chunks/{index-d6q3sk2w.js → index-p49nmsdm.js} +2 -2
- package/dist/chunks/{index-d6q3sk2w.js.map → index-p49nmsdm.js.map} +2 -2
- package/dist/chunks/{index-6m5e8k9d.js → index-v3xvnwsn.js} +2 -2
- package/dist/chunks/{index-4mr9k51y.js → index-w5e9n75h.js} +3 -3
- package/dist/chunks/{index-4mr9k51y.js.map → index-w5e9n75h.js.map} +3 -3
- package/dist/chunks/{linkedin-template-d4av3dpq.js → linkedin-template-2yn0zvz4.js} +2 -2
- package/dist/chunks/{rss-datasource-5vhyhygh.js → rss-datasource-6drt6y87.js} +2 -2
- package/dist/entities.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces.js +1 -1
- package/dist/model.js +38 -38
- package/dist/model.js.map +13 -13
- package/dist/plugins.js +1 -1
- package/dist/services.js +1 -1
- package/dist/ui/studio-app.js +3 -3
- package/dist/ui/studio-app.js.map +3 -3
- package/dist/ui/studio-asset-manifest.json +4 -4
- package/dist/ui/studio-chunks/{main-x38k1kej.js → main-8g7rwpye.js} +5 -9
- package/dist/ui/studio-chunks/{main-x38k1kej.js.map → main-8g7rwpye.js.map} +3 -3
- package/dist/ui/studio-chunks/{studio-chat-workspace-a7km8rss.js → studio-chat-workspace-z9973dz1.js} +1 -1
- package/package.json +1 -1
- package/templates/deploy/scripts/create-predeploy-backup.ts +11 -1
- /package/dist/chunks/{app-m9hjd2pg.js.map → app-c5pdekt0.js.map} +0 -0
- /package/dist/chunks/{blog-post-adapter-bqm9vrja.js.map → blog-post-adapter-njnq5kyv.js.map} +0 -0
- /package/dist/chunks/{index-qpztpfw8.js.map → index-e2scq3d5.js.map} +0 -0
- /package/dist/chunks/{index-6m5e8k9d.js.map → index-v3xvnwsn.js.map} +0 -0
- /package/dist/chunks/{linkedin-template-d4av3dpq.js.map → linkedin-template-2yn0zvz4.js.map} +0 -0
- /package/dist/chunks/{rss-datasource-5vhyhygh.js.map → rss-datasource-6drt6y87.js.map} +0 -0
- /package/dist/ui/studio-chunks/{studio-chat-workspace-a7km8rss.js.map → studio-chat-workspace-z9973dz1.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{I as a,J as b}from"./index-vaywz62b.js";import"./index-
|
|
2
|
+
import{I as a,J as b}from"./index-vaywz62b.js";import"./index-w5e9n75h.js";import"./index-tn0cdbvz.js";import"./index-1zp6cenk.js";import"./index-jmww3sdn.js";import"./index-a7613zm4.js";import"./index-1g11e6qn.js";export{a as linkedinPostSchema,b as linkedinTemplate};
|
|
3
3
|
|
|
4
4
|
//# debugId=43F656C2A0053F4C64756E2164756E21
|
|
5
|
-
//# sourceMappingURL=linkedin-template-
|
|
5
|
+
//# sourceMappingURL=linkedin-template-2yn0zvz4.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{D as g}from"./index-058stchf.js";import{F as n,G as l}from"./index-
|
|
2
|
+
import{D as g}from"./index-058stchf.js";import{F as n,G as l}from"./index-e2scq3d5.js";import{Wc as i}from"./index-w5e9n75h.js";import"./index-tn0cdbvz.js";import"./index-1zp6cenk.js";import"./index-jmww3sdn.js";import{kj as t}from"./index-a7613zm4.js";import"./index-1g11e6qn.js";var S=t.object({siteUrl:t.url(),title:t.string(),description:t.string(),language:t.string().optional(),copyright:t.string().optional()});class d{logger;id="blog:rss";name="Blog RSS Feed DataSource";description="Generates RSS 2.0 feed XML from published blog posts";constructor(r){this.logger=r,this.logger.debug("RSSDataSource initialized")}async fetch(r,c,p){let e=S.parse(r),a=(await p.entityService.listEntities({entityType:"post",options:{limit:1000}},l)).filter((o)=>o.metadata.status==="published"&&o.metadata.publishedAt).map((o)=>{let s=i(o.content,n);return{...o,frontmatter:s.metadata,body:s.content}});this.logger.debug(`Generating RSS feed with ${a.length} posts`);let m={title:e.title,description:e.description,link:e.siteUrl,language:e.language??"en-us",...e.copyright&&{copyright:e.copyright}},u={xml:g(a,m)};return c.parse(u)}}export{d as RSSDataSource};
|
|
3
3
|
|
|
4
4
|
//# debugId=733A82A7520EEF6B64756E2164756E21
|
|
5
|
-
//# sourceMappingURL=rss-datasource-
|
|
5
|
+
//# sourceMappingURL=rss-datasource-6drt6y87.js.map
|
package/dist/entities.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$d as i,_d as n,ae as e}from"./chunks/index-
|
|
2
|
+
import{$d as i,_d as n,ae as e}from"./chunks/index-w5e9n75h.js";import"./chunks/index-tn0cdbvz.js";import"./chunks/index-1zp6cenk.js";import"./chunks/index-jmww3sdn.js";import{kj as t}from"./chunks/index-a7613zm4.js";import"./chunks/index-1g11e6qn.js";export{n as defineEntity,e as defineEntityPackage,i as defineProjection,t as z};
|
|
3
3
|
|
|
4
4
|
//# debugId=4A85782A64936C8B64756E2164756E21
|
|
5
5
|
//# sourceMappingURL=entities.js.map
|
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-v3xvnwsn.js";import"./chunks/index-bjmmrp5q.js";import"./chunks/index-8zn63rap.js";import"./chunks/index-s1vqxwhm.js";import{Yd as a}from"./chunks/index-w5e9n75h.js";import"./chunks/index-tn0cdbvz.js";import"./chunks/index-1zp6cenk.js";import"./chunks/index-jmww3sdn.js";import"./chunks/index-a7613zm4.js";import"./chunks/index-1g11e6qn.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=BF49F12F9DC1EC8164756E2164756E21
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/interfaces.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{He as i,Ie as o,Je as r,Ke as s,Le as f,se as n}from"./chunks/index-
|
|
2
|
+
import{He as i,Ie as o,Je as r,Ke as s,Le as f,se as n}from"./chunks/index-w5e9n75h.js";import"./chunks/index-tn0cdbvz.js";import"./chunks/index-1zp6cenk.js";import{_i as t}from"./chunks/index-jmww3sdn.js";import{kj as e}from"./chunks/index-a7613zm4.js";import"./chunks/index-1g11e6qn.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=7DC676500A75A97864756E2164756E21
|
|
5
5
|
//# sourceMappingURL=interfaces.js.map
|