@rizom/site-rizom-ai 0.2.0-alpha.251 → 0.2.0-alpha.252
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/index.js +56 -2
- package/dist/index.js.map +7 -6
- package/package.json +1 -1
- package/src/public-ask.tsx +38 -0
- package/src/routes.ts +12 -0
- package/src/site.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -47592,7 +47592,7 @@ function createTemplate(template) {
|
|
|
47592
47592
|
}
|
|
47593
47593
|
const result = {
|
|
47594
47594
|
...rest,
|
|
47595
|
-
schema:
|
|
47595
|
+
schema: schema2.transform((data) => jsonObjectSchema.parse(data)),
|
|
47596
47596
|
layout: {}
|
|
47597
47597
|
};
|
|
47598
47598
|
if (layout.renderSchema) {
|
|
@@ -48483,6 +48483,17 @@ var aiRoutes = [
|
|
|
48483
48483
|
{ id: "quickstart", template: "brain:quickstart" }
|
|
48484
48484
|
]
|
|
48485
48485
|
},
|
|
48486
|
+
{
|
|
48487
|
+
id: "public-ask",
|
|
48488
|
+
path: "/ask",
|
|
48489
|
+
title: "Ask Rizom AI",
|
|
48490
|
+
description: "Ask a question of Rizom's public Brain knowledge",
|
|
48491
|
+
layout: "default",
|
|
48492
|
+
navigation: { show: false },
|
|
48493
|
+
sections: [
|
|
48494
|
+
{ id: "conversation", template: "public-ask:conversation", content: {} }
|
|
48495
|
+
]
|
|
48496
|
+
},
|
|
48486
48497
|
{
|
|
48487
48498
|
id: "writing",
|
|
48488
48499
|
path: "/writing",
|
|
@@ -48556,6 +48567,48 @@ var aiRoutes = [
|
|
|
48556
48567
|
}
|
|
48557
48568
|
];
|
|
48558
48569
|
|
|
48570
|
+
// src/public-ask.tsx
|
|
48571
|
+
import { jsx as jsx45, jsxs as jsxs29, Fragment as Fragment17 } from "react/jsx-runtime";
|
|
48572
|
+
function PublicAsk() {
|
|
48573
|
+
return /* @__PURE__ */ jsxs29(Fragment17, {
|
|
48574
|
+
children: [
|
|
48575
|
+
/* @__PURE__ */ jsx45("link", {
|
|
48576
|
+
rel: "stylesheet",
|
|
48577
|
+
href: "/ask/assets/app.css"
|
|
48578
|
+
}),
|
|
48579
|
+
/* @__PURE__ */ jsx45("link", {
|
|
48580
|
+
rel: "stylesheet",
|
|
48581
|
+
href: "/ask/assets/page.css"
|
|
48582
|
+
}),
|
|
48583
|
+
/* @__PURE__ */ jsxs29("div", {
|
|
48584
|
+
"data-web-chat-root": "",
|
|
48585
|
+
"data-guest-chat": "",
|
|
48586
|
+
"data-guest-name": "Rizom AI",
|
|
48587
|
+
"data-guest-label": "Rizom AI",
|
|
48588
|
+
"data-chat-api-path": "/api/chat/guest",
|
|
48589
|
+
children: [
|
|
48590
|
+
/* @__PURE__ */ jsx45("p", {
|
|
48591
|
+
children: "Connecting to public Ask\u2026"
|
|
48592
|
+
}),
|
|
48593
|
+
/* @__PURE__ */ jsx45("noscript", {
|
|
48594
|
+
children: "JavaScript is needed to ask a question. No question has been sent."
|
|
48595
|
+
})
|
|
48596
|
+
]
|
|
48597
|
+
}),
|
|
48598
|
+
/* @__PURE__ */ jsx45("script", {
|
|
48599
|
+
type: "module",
|
|
48600
|
+
src: "/ask/assets/app.js"
|
|
48601
|
+
})
|
|
48602
|
+
]
|
|
48603
|
+
});
|
|
48604
|
+
}
|
|
48605
|
+
var publicAskSections = sectionGroup("public-ask", {
|
|
48606
|
+
conversation: defineSection(exports_external.object({}), PublicAsk, {
|
|
48607
|
+
title: "Public Ask",
|
|
48608
|
+
description: "The shared guest conversation inside the site's own layout"
|
|
48609
|
+
})
|
|
48610
|
+
});
|
|
48611
|
+
|
|
48559
48612
|
// src/site.ts
|
|
48560
48613
|
var rizomAiSite = createRizomSite({
|
|
48561
48614
|
packageName: "@rizom/site-rizom-ai",
|
|
@@ -48569,6 +48622,7 @@ var rizomAiSite = createRizomSite({
|
|
|
48569
48622
|
homeSections,
|
|
48570
48623
|
livingMemorySections,
|
|
48571
48624
|
brainSections,
|
|
48625
|
+
publicAskSections,
|
|
48572
48626
|
workSections,
|
|
48573
48627
|
foundationSections
|
|
48574
48628
|
],
|
|
@@ -48604,4 +48658,4 @@ export {
|
|
|
48604
48658
|
workSections
|
|
48605
48659
|
};
|
|
48606
48660
|
|
|
48607
|
-
//# debugId=
|
|
48661
|
+
//# debugId=3458BF54751C695F64756E2164756E21
|