@rizom/brain 0.2.0-alpha.165 → 0.2.0-alpha.167
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 +1406 -1350
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/interfaces.js +2 -2
- package/dist/interfaces.js.map +3 -3
- package/dist/plugins.js +2 -2
- package/dist/plugins.js.map +3 -3
- package/dist/site.js +5 -5
- package/dist/site.js.map +3 -3
- package/dist/templates.d.ts +10 -0
- package/dist/templates.js +2 -2
- package/dist/templates.js.map +3 -3
- package/package.json +1 -1
package/dist/templates.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ interface TemplateInput {
|
|
|
57
57
|
useKnowledgeContext?: boolean | undefined;
|
|
58
58
|
requiredPermission: "anchor" | "trusted" | "public";
|
|
59
59
|
formatter?: unknown;
|
|
60
|
+
overlayFormatter?: unknown;
|
|
60
61
|
layout?: {
|
|
61
62
|
component?: unknown;
|
|
62
63
|
fullscreen?: boolean | undefined;
|
|
@@ -83,6 +84,15 @@ interface Template extends Omit<TemplateInput, "schema" | "layout" | "formatter"
|
|
|
83
84
|
fullscreen?: boolean;
|
|
84
85
|
};
|
|
85
86
|
formatter?: ContentFormatter<unknown>;
|
|
87
|
+
/**
|
|
88
|
+
* Opt-in content overlay. When set alongside a `dataSourceId`, the section's
|
|
89
|
+
* saved content is parsed with this formatter and merged over the datasource
|
|
90
|
+
* output (authored fields win), rather than the two being mutually exclusive.
|
|
91
|
+
* Lets a live datasource-backed section carry content-authored fields — e.g.
|
|
92
|
+
* a map whose data is live but whose hero copy is editable. Absent → the
|
|
93
|
+
* classic datasource-or-saved precedence is unchanged.
|
|
94
|
+
*/
|
|
95
|
+
overlayFormatter?: ContentFormatter<unknown>;
|
|
86
96
|
/**
|
|
87
97
|
* Whether to retrieve relevant entities from the knowledge base
|
|
88
98
|
* and inject them as context before AI generation. Default: false.
|