@rizom/brain 0.2.0-alpha.638 → 0.2.0-alpha.639

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.
Files changed (46) hide show
  1. package/dist/brain.js +47 -47
  2. package/dist/chunks/{app-xjww1k54.js → app-n4fn3452.js} +2 -2
  3. package/dist/chunks/{blog-post-adapter-hp1jpkh5.js → blog-post-adapter-wmaznez3.js} +2 -2
  4. package/dist/chunks/{index-6hm6arjn.js → index-3mkrcp93.js} +2 -2
  5. package/dist/chunks/{index-dssbcrs8.js → index-78z40h0p.js} +2 -2
  6. package/dist/chunks/{index-f3j9ts9d.js → index-agcfmyk2.js} +5 -5
  7. package/dist/chunks/{index-f3j9ts9d.js.map → index-agcfmyk2.js.map} +6 -6
  8. package/dist/chunks/{index-txh0swvr.js → index-bqxbzrs0.js} +3 -3
  9. package/dist/chunks/{index-4w2en9xb.js → index-ger37r63.js} +3 -3
  10. package/dist/chunks/{index-4w2en9xb.js.map → index-ger37r63.js.map} +1 -1
  11. package/dist/chunks/{index-6fezwyfd.js → index-x0ameew6.js} +2 -2
  12. package/dist/chunks/{linkedin-template-dy495kpt.js → linkedin-template-v2rav111.js} +2 -2
  13. package/dist/chunks/{rss-datasource-ezan9tme.js → rss-datasource-xdcpg5n7.js} +2 -2
  14. package/dist/entities.js +1 -1
  15. package/dist/git-broker.js +3 -3
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.js +1 -1
  18. package/dist/interfaces.js +1 -1
  19. package/dist/model.d.ts +3 -0
  20. package/dist/model.js +44 -44
  21. package/dist/model.js.map +3 -3
  22. package/dist/plugins.d.ts +1 -0
  23. package/dist/plugins.js +1 -1
  24. package/dist/services.js +1 -1
  25. package/dist/ui/{studio-app-ndcrmfzm.js → studio-app-b7p35nrr.js} +2 -2
  26. package/dist/ui/studio-asset-manifest.json +13 -13
  27. package/dist/ui/studio-chunks/{account-view-bx624hra.js → account-view-06a2f2at.js} +1 -1
  28. package/dist/ui/studio-chunks/{main-epetgpas.js → main-2d5rbjdk.js} +1 -1
  29. package/dist/ui/studio-chunks/{main-xsp6hn6k.js → main-34qtzn9g.js} +1 -1
  30. package/dist/ui/studio-chunks/{main-spzjxcrk.js → main-3erzpfwb.js} +4 -4
  31. package/dist/ui/studio-chunks/{main-spzjxcrk.js.map → main-3erzpfwb.js.map} +6 -6
  32. package/dist/ui/studio-chunks/{studio-chat-workspace-fszz87y5.js → studio-chat-workspace-nyqph20k.js} +1 -1
  33. package/package.json +1 -1
  34. /package/dist/chunks/{app-xjww1k54.js.map → app-n4fn3452.js.map} +0 -0
  35. /package/dist/chunks/{blog-post-adapter-hp1jpkh5.js.map → blog-post-adapter-wmaznez3.js.map} +0 -0
  36. /package/dist/chunks/{index-6hm6arjn.js.map → index-3mkrcp93.js.map} +0 -0
  37. /package/dist/chunks/{index-dssbcrs8.js.map → index-78z40h0p.js.map} +0 -0
  38. /package/dist/chunks/{index-txh0swvr.js.map → index-bqxbzrs0.js.map} +0 -0
  39. /package/dist/chunks/{index-6fezwyfd.js.map → index-x0ameew6.js.map} +0 -0
  40. /package/dist/chunks/{linkedin-template-dy495kpt.js.map → linkedin-template-v2rav111.js.map} +0 -0
  41. /package/dist/chunks/{rss-datasource-ezan9tme.js.map → rss-datasource-xdcpg5n7.js.map} +0 -0
  42. /package/dist/ui/{studio-app-ndcrmfzm.js.map → studio-app-b7p35nrr.js.map} +0 -0
  43. /package/dist/ui/studio-chunks/{account-view-bx624hra.js.map → account-view-06a2f2at.js.map} +0 -0
  44. /package/dist/ui/studio-chunks/{main-epetgpas.js.map → main-2d5rbjdk.js.map} +0 -0
  45. /package/dist/ui/studio-chunks/{main-xsp6hn6k.js.map → main-34qtzn9g.js.map} +0 -0
  46. /package/dist/ui/studio-chunks/{studio-chat-workspace-fszz87y5.js.map → studio-chat-workspace-nyqph20k.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -189,6 +189,8 @@ interface SiteLayoutInfo extends SiteMetadata {
189
189
  url: string;
190
190
  label?: string | undefined;
191
191
  }> | undefined;
192
+ /** The anchor's photo, as `![alt](entity://image/<id>)`; the build writes the image to /images/<id>.webp. */
193
+ photo?: string | undefined;
192
194
  }
193
195
  /** A page in one of the languages it is built in. */
194
196
  interface SiteAlternate {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ea as d,Fa as t}from"./chunks/index-6fezwyfd.js";import{ug as a}from"./chunks/index-f3j9ts9d.js";import"./chunks/index-yp4cs2mr.js";import"./chunks/index-pd2bwakt.js";import"./chunks/index-73wgcd6z.js";import"./chunks/index-0a31x08p.js";import"./chunks/index-wy9z16t6.js";import"./chunks/index-49xrgewq.js";import"./chunks/index-150e8xxq.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};
2
+ import{Ea as d,Fa as t}from"./chunks/index-x0ameew6.js";import{ug as a}from"./chunks/index-agcfmyk2.js";import"./chunks/index-yp4cs2mr.js";import"./chunks/index-pd2bwakt.js";import"./chunks/index-73wgcd6z.js";import"./chunks/index-0a31x08p.js";import"./chunks/index-wy9z16t6.js";import"./chunks/index-49xrgewq.js";import"./chunks/index-150e8xxq.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=B5CEE228644F793664756E2164756E21
5
5
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Kg as n,Wg as o,Xg as i,Yg as r,Zg as s,_g as f}from"./chunks/index-f3j9ts9d.js";import"./chunks/index-yp4cs2mr.js";import"./chunks/index-pd2bwakt.js";import"./chunks/index-73wgcd6z.js";import"./chunks/index-0a31x08p.js";import{uu as t}from"./chunks/index-wy9z16t6.js";import{Gu as e}from"./chunks/index-49xrgewq.js";import"./chunks/index-150e8xxq.js";export{t as UserPermissionLevelSchema,n as defineAccountSettings,r as defineDaemon,s as defineInterface,f as defineMessageInterface,i as defineRoute,o as protocol,e as z};
2
+ import{Kg as n,Wg as o,Xg as i,Yg as r,Zg as s,_g as f}from"./chunks/index-agcfmyk2.js";import"./chunks/index-yp4cs2mr.js";import"./chunks/index-pd2bwakt.js";import"./chunks/index-73wgcd6z.js";import"./chunks/index-0a31x08p.js";import{uu as t}from"./chunks/index-wy9z16t6.js";import{Gu as e}from"./chunks/index-49xrgewq.js";import"./chunks/index-150e8xxq.js";export{t as UserPermissionLevelSchema,n as defineAccountSettings,r as defineDaemon,s as defineInterface,f as defineMessageInterface,i as defineRoute,o as protocol,e as z};
3
3
 
4
4
  //# debugId=FA45C8046F16B48A64756E2164756E21
5
5
  //# sourceMappingURL=interfaces.js.map
package/dist/model.d.ts CHANGED
@@ -4000,6 +4000,7 @@ interface AnchorProfile {
4000
4000
  organization?: string | undefined;
4001
4001
  description?: string | undefined;
4002
4002
  avatar?: string | undefined;
4003
+ photo?: string | undefined;
4003
4004
  website?: string | undefined;
4004
4005
  email?: string | undefined;
4005
4006
  socialLinks?: AnchorProfileSocialLink[] | undefined;
@@ -5182,6 +5183,8 @@ interface SiteLayoutInfo extends SiteMetadata {
5182
5183
  url: string;
5183
5184
  label?: string | undefined;
5184
5185
  }> | undefined;
5186
+ /** The anchor's photo, as `![alt](entity://image/<id>)`; the build writes the image to /images/<id>.webp. */
5187
+ photo?: string | undefined;
5185
5188
  }
5186
5189
  /** A page in one of the languages it is built in. */
5187
5190
  interface SiteAlternate {