Publish agent flows to hub (#4001)
* implement ui for publish system prompt to hub * rework ui + add backend to upload to hub * add success modal view + publish menu item + translations * normalize translations * refactor PublishEntityModal + add hook for hub auth * normalize translations * fix ui for success screen * refactor, auth checks, UI/UX, and naming conventions to be more clear * move components to CommunityHub folder + small ui tweak * wip publish agent flows to community hub * rework translations/implement uploading agent flows * normalize/restructure translations * rename component/add jsdoc for consistency * fix en translation * remove comments/duplicate function from merge conf * update styles of publish button in flow builder * resolve ssr icon issue * UI linting * language diff --------- Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
parent
62d3803bf0
commit
2d210aa90a
@ -0,0 +1,260 @@
|
||||
import { useState, useRef } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import CommunityHub from "@/models/communityHub";
|
||||
import showToast from "@/utils/toast";
|
||||
import paths from "@/utils/paths";
|
||||
import { X, CaretRight } from "@phosphor-icons/react";
|
||||
import { BLOCK_INFO } from "@/pages/Admin/AgentBuilder/BlockList";
|
||||
|
||||
export default function AgentFlows({ entity }) {
|
||||
const { t } = useTranslation();
|
||||
const formRef = useRef(null);
|
||||
const [isSubmitting, setIsSubmitting] = useState(false);
|
||||
const [tags, setTags] = useState([]);
|
||||
const [tagInput, setTagInput] = useState("");
|
||||
const [isSuccess, setIsSuccess] = useState(false);
|
||||
const [itemId, setItemId] = useState(null);
|
||||
const [expandedStep, setExpandedStep] = useState(null);
|
||||
|
||||
const handleSubmit = async (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
setIsSubmitting(true);
|
||||
try {
|
||||
const form = new FormData(formRef.current);
|
||||
const data = {
|
||||
name: form.get("name"),
|
||||
description: form.get("description"),
|
||||
tags: tags,
|
||||
visibility: "private",
|
||||
flow: JSON.stringify({
|
||||
name: form.get("name"),
|
||||
description: form.get("description"),
|
||||
steps: entity.steps,
|
||||
tags: tags,
|
||||
visibility: "private",
|
||||
}),
|
||||
};
|
||||
const { success, error, itemId } =
|
||||
await CommunityHub.createAgentFlow(data);
|
||||
if (!success) throw new Error(error);
|
||||
setItemId(itemId);
|
||||
setIsSuccess(true);
|
||||
} catch (error) {
|
||||
console.error("Failed to publish agent flow:", error);
|
||||
showToast(`Failed to publish agent flow: ${error.message}`, "error", {
|
||||
clear: true,
|
||||
});
|
||||
} finally {
|
||||
setIsSubmitting(false);
|
||||
}
|
||||
};
|
||||
|
||||
const handleKeyDown = (e) => {
|
||||
if (e.key === "Enter" || e.key === ",") {
|
||||
e.preventDefault();
|
||||
const value = tagInput.trim();
|
||||
if (value.length > 20) return;
|
||||
if (value && !tags.includes(value)) {
|
||||
setTags((prevTags) => [...prevTags, value].slice(0, 5)); // Limit to 5 tags
|
||||
setTagInput("");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const removeTag = (tagToRemove) => {
|
||||
setTags(tags.filter((tag) => tag !== tagToRemove));
|
||||
};
|
||||
|
||||
if (isSuccess) {
|
||||
return (
|
||||
<div className="p-6 -mt-12 w-[400px]">
|
||||
<div className="flex flex-col items-center justify-center gap-y-2">
|
||||
<h3 className="text-lg font-semibold text-theme-text-primary">
|
||||
{t("community_hub.publish.agent_flow.success_title")}
|
||||
</h3>
|
||||
<p className="text-lg text-theme-text-primary text-center max-w-2xl">
|
||||
{t("community_hub.publish.agent_flow.success_description")}
|
||||
</p>
|
||||
<p className="text-theme-text-secondary text-center text-sm">
|
||||
{t("community_hub.publish.agent_flow.success_thank_you")}
|
||||
</p>
|
||||
<a
|
||||
href={paths.communityHub.viewItem("agent-flow", itemId)}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="w-[265px] bg-theme-bg-secondary hover:bg-theme-sidebar-item-hover text-theme-text-primary py-2 px-4 rounded-lg transition-colors mt-4 text-sm font-semibold text-center"
|
||||
>
|
||||
{t("community_hub.publish.agent_flow.view_on_hub")}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="w-full flex gap-x-2 items-center mb-3 -mt-8">
|
||||
<h3 className="text-xl font-semibold text-theme-text-primary px-6 py-3">
|
||||
{t("community_hub.publish.agent_flow.modal_title")}
|
||||
</h3>
|
||||
</div>
|
||||
<form ref={formRef} className="flex" onSubmit={handleSubmit}>
|
||||
<div className="w-1/2 p-6 pt-0 space-y-4">
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-theme-text-primary mb-1">
|
||||
{t("community_hub.publish.agent_flow.name_label")}
|
||||
</label>
|
||||
<div className="text-xs text-theme-text-secondary mb-2">
|
||||
{t("community_hub.publish.agent_flow.name_description")}
|
||||
</div>
|
||||
<input
|
||||
type="text"
|
||||
name="name"
|
||||
required
|
||||
minLength={3}
|
||||
maxLength={300}
|
||||
defaultValue={entity.name}
|
||||
placeholder={t(
|
||||
"community_hub.publish.agent_flow.name_placeholder"
|
||||
)}
|
||||
className="w-full bg-theme-bg-secondary rounded-lg p-2 text-theme-text-primary text-sm focus:outline-primary-button active:outline-primary-button outline-none placeholder:text-theme-text-placeholder"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-theme-text-primary mb-1">
|
||||
{t("community_hub.publish.agent_flow.description_label")}
|
||||
</label>
|
||||
<div className="text-xs text-white/60 mb-2">
|
||||
{t("community_hub.publish.agent_flow.description_description")}
|
||||
</div>
|
||||
<textarea
|
||||
name="description"
|
||||
required
|
||||
minLength={10}
|
||||
maxLength={1000}
|
||||
defaultValue={entity.description}
|
||||
placeholder={t(
|
||||
"community_hub.publish.agent_flow.description_description"
|
||||
)}
|
||||
className="w-full bg-theme-bg-secondary rounded-lg p-2 text-white text-sm focus:outline-primary-button active:outline-primary-button outline-none min-h-[80px] placeholder:text-theme-text-placeholder"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-white mb-1">
|
||||
{t("community_hub.publish.agent_flow.tags_label")}
|
||||
</label>
|
||||
<div className="text-xs text-white/60 mb-2">
|
||||
{t("community_hub.publish.agent_flow.tags_description")}
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-2 p-2 bg-theme-bg-secondary rounded-lg min-h-[42px]">
|
||||
{tags.map((tag, index) => (
|
||||
<span
|
||||
key={index}
|
||||
className="flex items-center gap-1 px-2 py-1 text-sm text-theme-text-primary bg-white/10 light:bg-black/10 rounded-md"
|
||||
>
|
||||
{tag}
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => removeTag(tag)}
|
||||
className="border-none text-theme-text-primary hover:text-theme-text-secondary cursor-pointer"
|
||||
>
|
||||
<X size={14} />
|
||||
</button>
|
||||
</span>
|
||||
))}
|
||||
<input
|
||||
type="text"
|
||||
value={tagInput}
|
||||
onChange={(e) => setTagInput(e.target.value)}
|
||||
onKeyDown={handleKeyDown}
|
||||
placeholder={t(
|
||||
"community_hub.publish.agent_flow.tags_placeholder"
|
||||
)}
|
||||
className="flex-1 min-w-[200px] border-none text-sm bg-transparent text-theme-text-primary placeholder:text-theme-text-placeholder p-0 h-[24px] focus:outline-none"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-white">
|
||||
{t("community_hub.publish.agent_flow.visibility_label")}
|
||||
</label>
|
||||
<span className="text-xs text-theme-text-secondary">
|
||||
{t("community_hub.publish.agent_flow.privacy_note")}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className="w-1/2 p-6 pt-0 flex flex-col gap-y-4">
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-theme-text-primary mb-1">
|
||||
Flow Steps
|
||||
</label>
|
||||
<div className="text-xs text-white/60">
|
||||
The steps the agent will follow when the flow is triggered.
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex flex-col gap-y-0.5">
|
||||
{entity.steps && entity.steps.length > 0 ? (
|
||||
entity.steps.map((step, idx) => {
|
||||
const info = BLOCK_INFO[step.type];
|
||||
const isExpanded = expandedStep === idx;
|
||||
const summary = info?.getSummary
|
||||
? info.getSummary(step.config)
|
||||
: "";
|
||||
return (
|
||||
<div key={idx} className="flex flex-col items-center w-full">
|
||||
<div
|
||||
className="flex flex-col bg-theme-bg-secondary rounded-lg px-3 py-2 w-full cursor-pointer group"
|
||||
onClick={() => setExpandedStep(isExpanded ? null : idx)}
|
||||
>
|
||||
<div className="flex items-center gap-x-3 w-full">
|
||||
<span>{info?.icon}</span>
|
||||
<span className="text-theme-text-primary text-sm font-medium flex-1">
|
||||
{info?.label || step.type}
|
||||
</span>
|
||||
{!isExpanded && (
|
||||
<span className="text-theme-text-secondary text-xs ml-2 overflow-hidden text-ellipsis whitespace-nowrap max-w-[120px] min-w-0">
|
||||
{summary}
|
||||
</span>
|
||||
)}
|
||||
<span
|
||||
className={`ml-2 text-theme-text-secondary transition-transform duration-200 ${isExpanded ? "rotate-90" : ""}`}
|
||||
>
|
||||
<CaretRight size={16} />
|
||||
</span>
|
||||
</div>
|
||||
{isExpanded && summary && (
|
||||
<div className="w-full text-theme-text-secondary text-xs mt-1 whitespace-pre-line break-words">
|
||||
{summary}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{idx < entity.steps.length - 1 && (
|
||||
<span className="text-theme-text-secondary text-lg my-1">
|
||||
↓
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
})
|
||||
) : (
|
||||
<div className="text-theme-text-secondary text-xs">
|
||||
No steps defined.
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<button
|
||||
type="submit"
|
||||
disabled={isSubmitting}
|
||||
className="mt-4 w-full bg-cta-button hover:opacity-80 text-theme-text-primary font-medium py-2 px-4 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
|
||||
>
|
||||
{isSubmitting
|
||||
? t("community_hub.publish.agent_flow.submitting")
|
||||
: t("community_hub.publish.agent_flow.submit")}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@ -65,13 +65,13 @@ export default function SystemPrompts({ entity }) {
|
||||
<div className="p-6 -mt-12 w-[400px]">
|
||||
<div className="flex flex-col items-center justify-center gap-y-2">
|
||||
<h3 className="text-lg font-semibold text-theme-text-primary">
|
||||
{t("chat.prompt.publish.success_title")}
|
||||
{t("community_hub.publish.system_prompt.success_title")}
|
||||
</h3>
|
||||
<p className="text-lg text-theme-text-primary text-center max-w-2xl">
|
||||
{t("chat.prompt.publish.success_description")}
|
||||
{t("community_hub.publish.system_prompt.success_description")}
|
||||
</p>
|
||||
<p className="text-theme-text-secondary text-center text-sm">
|
||||
{t("chat.prompt.publish.success_thank_you")}
|
||||
{t("community_hub.publish.system_prompt.success_thank_you")}
|
||||
</p>
|
||||
<a
|
||||
href={paths.communityHub.viewItem("system-prompt", itemId)}
|
||||
@ -79,7 +79,7 @@ export default function SystemPrompts({ entity }) {
|
||||
rel="noreferrer"
|
||||
className="w-[265px] bg-theme-bg-secondary hover:bg-theme-sidebar-item-hover text-theme-text-primary py-2 px-4 rounded-lg transition-colors mt-4 text-sm font-semibold text-center"
|
||||
>
|
||||
{t("chat.prompt.publish.view_on_hub")}
|
||||
{t("community_hub.publish.system_prompt.view_on_hub")}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -90,17 +90,17 @@ export default function SystemPrompts({ entity }) {
|
||||
<>
|
||||
<div className="w-full flex gap-x-2 items-center mb-3 -mt-8">
|
||||
<h3 className="text-xl font-semibold text-theme-text-primary px-6 py-3">
|
||||
{t(`chat.prompt.publish.modal_title`)}
|
||||
{t(`community_hub.publish.system_prompt.modal_title`)}
|
||||
</h3>
|
||||
</div>
|
||||
<form ref={formRef} className="flex" onSubmit={handleSubmit}>
|
||||
<div className="w-1/2 p-6 pt-0 space-y-4">
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-theme-text-primary mb-1">
|
||||
{t("chat.prompt.publish.name_label")}
|
||||
{t("community_hub.publish.system_prompt.name_label")}
|
||||
</label>
|
||||
<div className="text-xs text-theme-text-secondary mb-2">
|
||||
{t("chat.prompt.publish.name_description")}
|
||||
{t("community_hub.publish.system_prompt.name_description")}
|
||||
</div>
|
||||
<input
|
||||
type="text"
|
||||
@ -108,33 +108,37 @@ export default function SystemPrompts({ entity }) {
|
||||
required
|
||||
minLength={3}
|
||||
maxLength={300}
|
||||
placeholder={t("chat.prompt.publish.name_placeholder")}
|
||||
placeholder={t(
|
||||
"community_hub.publish.system_prompt.name_placeholder"
|
||||
)}
|
||||
className="w-full bg-theme-bg-secondary rounded-lg p-2 text-theme-text-primary text-sm focus:outline-primary-button active:outline-primary-button outline-none placeholder:text-theme-text-placeholder"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-theme-text-primary mb-1">
|
||||
{t("chat.prompt.publish.description_label")}
|
||||
{t("community_hub.publish.system_prompt.description_label")}
|
||||
</label>
|
||||
<div className="text-xs text-white/60 mb-2">
|
||||
{t("chat.prompt.publish.description_description")}
|
||||
{t("community_hub.publish.system_prompt.description_description")}
|
||||
</div>
|
||||
<textarea
|
||||
name="description"
|
||||
required
|
||||
minLength={10}
|
||||
maxLength={1000}
|
||||
placeholder={t("chat.prompt.publish.description_description")}
|
||||
placeholder={t(
|
||||
"community_hub.publish.system_prompt.description_description"
|
||||
)}
|
||||
className="w-full bg-theme-bg-secondary rounded-lg p-2 text-white text-sm focus:outline-primary-button active:outline-primary-button outline-none min-h-[80px] placeholder:text-theme-text-placeholder"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-white mb-1">
|
||||
{t("chat.prompt.publish.tags_label")}
|
||||
{t("community_hub.publish.system_prompt.tags_label")}
|
||||
</label>
|
||||
<div className="text-xs text-white/60 mb-2">
|
||||
{t("chat.prompt.publish.tags_description")}
|
||||
{t("community_hub.publish.system_prompt.tags_description")}
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-2 p-2 bg-theme-bg-secondary rounded-lg min-h-[42px]">
|
||||
{tags.map((tag, index) => (
|
||||
@ -157,7 +161,9 @@ export default function SystemPrompts({ entity }) {
|
||||
value={tagInput}
|
||||
onChange={(e) => setTagInput(e.target.value)}
|
||||
onKeyDown={handleKeyDown}
|
||||
placeholder={t("chat.prompt.publish.tags_placeholder")}
|
||||
placeholder={t(
|
||||
"community_hub.publish.system_prompt.tags_placeholder"
|
||||
)}
|
||||
className="flex-1 min-w-[200px] border-none text-sm bg-transparent text-theme-text-primary placeholder:text-theme-text-placeholder p-0 h-[24px] focus:outline-none"
|
||||
/>
|
||||
</div>
|
||||
@ -165,12 +171,12 @@ export default function SystemPrompts({ entity }) {
|
||||
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-white mb-1">
|
||||
{t("chat.prompt.publish.visibility_label")}
|
||||
{t("community_hub.publish.system_prompt.visibility_label")}
|
||||
</label>
|
||||
<div className="text-xs text-white/60 mb-2">
|
||||
{visibility === "public"
|
||||
? t("chat.prompt.publish.public_description")
|
||||
: t("chat.prompt.publish.private_description")}
|
||||
? t("community_hub.publish.system_prompt.public_description")
|
||||
: t("community_hub.publish.system_prompt.private_description")}
|
||||
</div>
|
||||
<div className="w-fit h-[42px] bg-theme-bg-secondary rounded-lg p-0.5">
|
||||
<div className="flex items-center" role="group">
|
||||
@ -211,17 +217,19 @@ export default function SystemPrompts({ entity }) {
|
||||
<div className="w-1/2 p-6 pt-0 space-y-4">
|
||||
<div>
|
||||
<label className="block text-sm font-semibold text-white mb-1">
|
||||
{t("chat.prompt.publish.prompt_label")}
|
||||
{t("community_hub.publish.system_prompt.prompt_label")}
|
||||
</label>
|
||||
<div className="text-xs text-white/60 mb-2">
|
||||
{t("chat.prompt.publish.prompt_description")}
|
||||
{t("community_hub.publish.system_prompt.prompt_description")}
|
||||
</div>
|
||||
<textarea
|
||||
name="prompt"
|
||||
required
|
||||
minLength={10}
|
||||
defaultValue={entity}
|
||||
placeholder={t("chat.prompt.publish.prompt_placeholder")}
|
||||
placeholder={t(
|
||||
"community_hub.publish.system_prompt.prompt_placeholder"
|
||||
)}
|
||||
className="w-full bg-theme-bg-secondary rounded-lg p-2 text-white text-sm focus:outline-primary-button active:outline-primary-button outline-none min-h-[300px] placeholder:text-theme-text-placeholder"
|
||||
/>
|
||||
</div>
|
||||
@ -232,8 +240,8 @@ export default function SystemPrompts({ entity }) {
|
||||
className="w-full bg-cta-button hover:opacity-80 text-theme-text-primary font-medium py-2 px-4 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
|
||||
>
|
||||
{isSubmitting
|
||||
? t("chat.prompt.publish.publishing")
|
||||
: t("chat.prompt.publish.publish_button")}
|
||||
? t("community_hub.publish.system_prompt.submitting")
|
||||
: t("community_hub.publish.system_prompt.publish_button")}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@ -3,6 +3,7 @@ import { useCommunityHubAuth } from "@/hooks/useCommunityHubAuth";
|
||||
import UnauthenticatedHubModal from "@/components/CommunityHub/UnauthenticatedHubModal";
|
||||
import SystemPrompts from "./SystemPrompts";
|
||||
import ModalWrapper from "@/components/ModalWrapper";
|
||||
import AgentFlows from "./AgentFlows";
|
||||
|
||||
export default function PublishEntityModal({
|
||||
show,
|
||||
@ -19,6 +20,8 @@ export default function PublishEntityModal({
|
||||
switch (entityType) {
|
||||
case "system-prompt":
|
||||
return <SystemPrompts entity={entity} />;
|
||||
case "agent-flow":
|
||||
return <AgentFlows entity={entity} />;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -21,16 +21,16 @@ export default function UnauthenticatedHubModal({ show, onClose }) {
|
||||
</button>
|
||||
<div className="flex flex-col items-center justify-center gap-y-4">
|
||||
<h3 className="text-lg font-semibold text-white">
|
||||
{t("chat.prompt.publish.unauthenticated.title")}
|
||||
{t("community_hub.publish.generic.unauthenticated.title")}
|
||||
</h3>
|
||||
<p className="text-lg text-white text-center max-w-[300px]">
|
||||
{t("chat.prompt.publish.unauthenticated.description")}
|
||||
{t("community_hub.publish.generic.unauthenticated.description")}
|
||||
</p>
|
||||
<Link
|
||||
to={paths.communityHub.authentication()}
|
||||
className="w-[265px] bg-theme-bg-secondary hover:bg-theme-sidebar-item-hover text-theme-text-primary py-2 px-4 rounded-lg transition-colors mt-4 text-sm font-semibold text-center"
|
||||
>
|
||||
{t("chat.prompt.publish.unauthenticated.button")}
|
||||
{t("community_hub.publish.generic.unauthenticated.button")}
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -242,34 +242,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "الرد على رفض وضعية الاستعلام",
|
||||
@ -955,6 +927,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -243,34 +243,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Afvisningssvar for forespørgsels-tilstand",
|
||||
@ -994,6 +966,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -331,41 +331,6 @@ const TRANSLATIONS = {
|
||||
"Möchten Sie wirklich alle Einträge löschen? Diese Aktion ist unwiderruflich.",
|
||||
expand: "Ausklappen",
|
||||
},
|
||||
publish: {
|
||||
public_description:
|
||||
"Öffentliche Systemprompts sind für jeden sichtbar.",
|
||||
private_description: "Private Systemprompts können nur Sie sehen.",
|
||||
success_title: "Erfolg!",
|
||||
success_description:
|
||||
"Ihr Systemprompt ist jetzt im Community Hub verfügbar!",
|
||||
success_thank_you:
|
||||
"Herzlichen Dank für Ihre Beteiligung an der Community!",
|
||||
view_on_hub: "Im Community Hub anzeigen",
|
||||
modal_title: "Systemprompt veröffentlichen",
|
||||
name_label: "Name",
|
||||
name_description: "Dies ist der Anzeigename Ihres Systemprompts.",
|
||||
name_placeholder: "Mein Systemprompt",
|
||||
description_label: "Beschreibung",
|
||||
description_description:
|
||||
"Hier können Sie erklären, welchem Zweck Ihr Systemprompt dient.",
|
||||
tags_label: "Tags",
|
||||
tags_description:
|
||||
"Tags erleichtern die Schuche nach Ihrem Prompt. Sie können bis zu 5 Tags vergeben, jedes maximal 20 Zeichen.",
|
||||
tags_placeholder: "Geben Sie Tags ein und bestätigen Sie mit Enter",
|
||||
visibility_label: "Sichtbarkeit",
|
||||
prompt_label: "Prompt",
|
||||
prompt_description:
|
||||
"Hier geben Sie den Slash-Befehl ein, der das LLM steuert.",
|
||||
prompt_placeholder: "Systemprompt hier eingeben...",
|
||||
publish_button: "Im Community Hub veröffentlichen",
|
||||
publishing: "Wird veröffentlicht",
|
||||
unauthenticated: {
|
||||
title: "Anmeldung erforderlich",
|
||||
description:
|
||||
"Vor der Veröffentlichung müssen Sie sich bei AnythingLLM Community Hub anmelden.",
|
||||
button: "Mit Community Hub verbinden",
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Abfragemodus-Ablehnungsantwort",
|
||||
@ -1027,6 +992,75 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: "LLM-Auswahl für Workspace zeigen",
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: "Erfolg!",
|
||||
success_description:
|
||||
"Ihr Systemprompt ist jetzt im Community Hub verfügbar!",
|
||||
success_thank_you:
|
||||
"Herzlichen Dank für Ihre Beteiligung an der Community!",
|
||||
view_on_hub: "Im Community Hub anzeigen",
|
||||
modal_title: "Systemprompt veröffentlichen",
|
||||
name_label: "Name",
|
||||
name_description: "Dies ist der Anzeigename Ihres Systemprompts.",
|
||||
name_placeholder: "Mein Systemprompt",
|
||||
description_label: "Beschreibung",
|
||||
description_description:
|
||||
"Hier können Sie erklären, welchem Zweck Ihr Systemprompt dient.",
|
||||
tags_label: "Tags",
|
||||
tags_description:
|
||||
"Tags erleichtern die Schuche nach Ihrem Prompt. Sie können bis zu 5 Tags vergeben, jedes maximal 20 Zeichen.",
|
||||
tags_placeholder: "Geben Sie Tags ein und bestätigen Sie mit Enter",
|
||||
visibility_label: "Sichtbarkeit",
|
||||
public_description:
|
||||
"Öffentliche Systemprompts sind für jeden sichtbar.",
|
||||
private_description: "Private Systemprompts können nur Sie sehen.",
|
||||
publish_button: "Im Community Hub veröffentlichen",
|
||||
submitting: "Wird veröffentlicht",
|
||||
submit: "Veröffentlichen",
|
||||
prompt_label: "Prompt",
|
||||
prompt_description:
|
||||
"Hier geben Sie den Slash-Befehl ein, der das LLM steuert.",
|
||||
prompt_placeholder: "Systemprompt hier eingeben...",
|
||||
},
|
||||
agent_flow: {
|
||||
public_description:
|
||||
"Öffentliche Agentenflüsse sind für jeden sichtbar.",
|
||||
private_description: "Private Agentenflüsse können nur Sie sehen.",
|
||||
success_title: "Erfolg!",
|
||||
success_description:
|
||||
"Ihr Agentenfluss ist jetzt im Community Hub verfügbar!",
|
||||
success_thank_you:
|
||||
"Herzlichen Dank für Ihre Beteiligung an der Community!",
|
||||
view_on_hub: "Im Community Hub anzeigen",
|
||||
modal_title: "Agentenfluss veröffentlichen",
|
||||
name_label: "Name",
|
||||
name_description: "Dies ist der Anzeigename Ihres Agentenflusses.",
|
||||
name_placeholder: "Mein Agentenfluss",
|
||||
description_label: "Beschreibung",
|
||||
description_description:
|
||||
"Hier können Sie erklären, welchem Zweck Ihr Agentenfluss dient.",
|
||||
tags_label: "Tags",
|
||||
tags_description:
|
||||
"Tags erleichtern die Schuche nach Ihrem Agentenfluss. Sie können bis zu 5 Tags vergeben, jedes maximal 20 Zeichen.",
|
||||
tags_placeholder: "Geben Sie Tags ein und bestätigen Sie mit Enter",
|
||||
visibility_label: "Sichtbarkeit",
|
||||
publish_button: "Im Community Hub veröffentlichen",
|
||||
submitting: "Wird veröffentlicht",
|
||||
submit: "Veröffentlichen",
|
||||
privacy_note: "Private Agentenflüsse können nur Sie sehen.",
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: "Anmeldung erforderlich",
|
||||
description:
|
||||
"Vor der Veröffentlichung müssen Sie sich bei AnythingLLM Community Hub anmelden.",
|
||||
button: "Mit Community Hub verbinden",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -341,39 +341,6 @@ const TRANSLATIONS = {
|
||||
"Are you sure you want to clear all history? This action cannot be undone.",
|
||||
expand: "Expand",
|
||||
},
|
||||
publish: {
|
||||
public_description: "Public system prompts are visible to everyone.",
|
||||
private_description: "Private system prompts are only visible to you.",
|
||||
success_title: "Success!",
|
||||
success_description:
|
||||
"Your System Prompt has been published to the Community Hub!",
|
||||
success_thank_you: "Thank you for sharing to the Community!",
|
||||
view_on_hub: "View on Community Hub",
|
||||
modal_title: "Publish System Prompt",
|
||||
name_label: "Name",
|
||||
name_description: "This is the display name of your system prompt.",
|
||||
name_placeholder: "My System Prompt",
|
||||
description_label: "Description",
|
||||
description_description:
|
||||
"This is the description of your system prompt. Use this to describe the purpose of your system prompt.",
|
||||
tags_label: "Tags",
|
||||
tags_description:
|
||||
"Tags are used to label your system prompt for easier searching. You can add multiple tags. Max 5 tags. Max 20 characters per tag.",
|
||||
tags_placeholder: "Type and press Enter to add tags",
|
||||
visibility_label: "Visibility",
|
||||
prompt_label: "Prompt",
|
||||
prompt_description:
|
||||
"This is the actual slash command that will be used to guide the LLM.",
|
||||
prompt_placeholder: "Enter your system prompt here...",
|
||||
publish_button: "Publish to Community Hub",
|
||||
publishing: "Publishing...",
|
||||
unauthenticated: {
|
||||
title: "Authentication Required",
|
||||
description:
|
||||
"You need to authenticate with the AnythingLLM Community Hub before publishing prompts.",
|
||||
button: "Connect to Community Hub",
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Query mode refusal response",
|
||||
@ -1061,6 +1028,72 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: "Show workspace LLM Selector",
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: "Success!",
|
||||
success_description:
|
||||
"Your System Prompt has been published to the Community Hub!",
|
||||
success_thank_you: "Thank you for sharing to the Community!",
|
||||
view_on_hub: "View on Community Hub",
|
||||
modal_title: "Publish System Prompt",
|
||||
name_label: "Name",
|
||||
name_description: "This is the display name of your system prompt.",
|
||||
name_placeholder: "My System Prompt",
|
||||
description_label: "Description",
|
||||
description_description:
|
||||
"This is the description of your system prompt. Use this to describe the purpose of your system prompt.",
|
||||
tags_label: "Tags",
|
||||
tags_description:
|
||||
"Tags are used to label your system prompt for easier searching. You can add multiple tags. Max 5 tags. Max 20 characters per tag.",
|
||||
tags_placeholder: "Type and press Enter to add tags",
|
||||
visibility_label: "Visibility",
|
||||
public_description: "Public system prompts are visible to everyone.",
|
||||
private_description: "Private system prompts are only visible to you.",
|
||||
publish_button: "Publish to Community Hub",
|
||||
submitting: "Publishing...",
|
||||
submit: "Publish to Community Hub",
|
||||
prompt_label: "Prompt",
|
||||
prompt_description:
|
||||
"This is the actual system prompt that will be used to guide the LLM.",
|
||||
prompt_placeholder: "Enter your system prompt here...",
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: "Public agent flows are visible to everyone.",
|
||||
private_description: "Private agent flows are only visible to you.",
|
||||
success_title: "Success!",
|
||||
success_description:
|
||||
"Your Agent Flow has been published to the Community Hub!",
|
||||
success_thank_you: "Thank you for sharing to the Community!",
|
||||
view_on_hub: "View on Community Hub",
|
||||
modal_title: "Publish Agent Flow",
|
||||
name_label: "Name",
|
||||
name_description: "This is the display name of your agent flow.",
|
||||
name_placeholder: "My Agent Flow",
|
||||
description_label: "Description",
|
||||
description_description:
|
||||
"This is the description of your agent flow. Use this to describe the purpose of your agent flow.",
|
||||
tags_label: "Tags",
|
||||
tags_description:
|
||||
"Tags are used to label your agent flow for easier searching. You can add multiple tags. Max 5 tags. Max 20 characters per tag.",
|
||||
tags_placeholder: "Type and press Enter to add tags",
|
||||
visibility_label: "Visibility",
|
||||
publish_button: "Publish to Community Hub",
|
||||
submitting: "Publishing...",
|
||||
submit: "Publish to Community Hub",
|
||||
privacy_note:
|
||||
"Agent flows are always uploaded as private to protect any sensitive data. You can change the visibility in the Community Hub after publishing. Please verify your flow does not contain any sensitive or private information before publishing.",
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: "Authentication Required",
|
||||
description:
|
||||
"You need to authenticate with the AnythingLLM Community Hub before publishing items.",
|
||||
button: "Connect to Community Hub",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -237,34 +237,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Respuesta de rechazo en modo consulta",
|
||||
@ -959,6 +931,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -233,34 +233,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "پاسخ رد در حالت پرسوجو",
|
||||
@ -947,6 +919,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -238,34 +238,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Réponse de refus en mode requête",
|
||||
@ -955,6 +927,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -231,34 +231,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "תגובת סירוב במצב שאילתה",
|
||||
@ -940,6 +912,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -236,34 +236,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Risposta al rifiuto nella modalità di query",
|
||||
@ -953,6 +925,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -242,34 +242,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "クエリモード拒否応答",
|
||||
@ -989,6 +961,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -231,34 +231,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "쿼리 모드 거부 응답 메시지",
|
||||
@ -940,6 +912,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -327,34 +327,6 @@ const TRANSLATIONS = {
|
||||
expand: "Paplašināt",
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Vaicājuma režīma atteikuma atbilde",
|
||||
@ -1011,6 +983,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -235,34 +235,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Afwijzingsreactie in Querymodus",
|
||||
@ -950,6 +922,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -324,34 +324,6 @@ const TRANSLATIONS = {
|
||||
expand: "Expandir",
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Modo Resposta de recusa",
|
||||
@ -992,6 +964,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -244,34 +244,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Ответ об отказе в режиме запроса",
|
||||
@ -995,6 +967,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -235,34 +235,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Sorgu Modu Ret Yanıtı",
|
||||
@ -950,6 +922,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -234,34 +234,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "Query mode refusal response",
|
||||
@ -949,6 +921,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -314,34 +314,6 @@ const TRANSLATIONS = {
|
||||
expand: "展开",
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "查询模式拒绝响应",
|
||||
@ -951,6 +923,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -232,34 +232,6 @@ const TRANSLATIONS = {
|
||||
expand: null,
|
||||
publish: null,
|
||||
},
|
||||
publish: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
publish_button: null,
|
||||
publishing: null,
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
refusal: {
|
||||
title: "查詢模式拒絕回應",
|
||||
@ -952,6 +924,63 @@ const TRANSLATIONS = {
|
||||
showLLMSelector: null,
|
||||
},
|
||||
},
|
||||
community_hub: {
|
||||
publish: {
|
||||
system_prompt: {
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
prompt_label: null,
|
||||
prompt_description: null,
|
||||
prompt_placeholder: null,
|
||||
},
|
||||
agent_flow: {
|
||||
public_description: null,
|
||||
private_description: null,
|
||||
success_title: null,
|
||||
success_description: null,
|
||||
success_thank_you: null,
|
||||
view_on_hub: null,
|
||||
modal_title: null,
|
||||
name_label: null,
|
||||
name_description: null,
|
||||
name_placeholder: null,
|
||||
description_label: null,
|
||||
description_description: null,
|
||||
tags_label: null,
|
||||
tags_description: null,
|
||||
tags_placeholder: null,
|
||||
visibility_label: null,
|
||||
publish_button: null,
|
||||
submitting: null,
|
||||
submit: null,
|
||||
privacy_note: null,
|
||||
},
|
||||
generic: {
|
||||
unauthenticated: {
|
||||
title: null,
|
||||
description: null,
|
||||
button: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default TRANSLATIONS;
|
||||
|
||||
@ -181,6 +181,25 @@ const CommunityHub = {
|
||||
error: e.message,
|
||||
}));
|
||||
},
|
||||
|
||||
/**
|
||||
* Create a new agent flow in the community hub
|
||||
* @param {Object} data - The agent flow data
|
||||
* @returns {Promise<{success: boolean, error: string | null}>}
|
||||
*/
|
||||
|
||||
createAgentFlow: async (data) => {
|
||||
return await fetch(`${API_BASE}/community-hub/agent-flow/create`, {
|
||||
method: "POST",
|
||||
headers: baseHeaders(),
|
||||
body: JSON.stringify(data),
|
||||
}).then(async (res) => {
|
||||
const response = await res.json();
|
||||
if (!res.ok)
|
||||
throw new Error(response.error || "Failed to create agent flow");
|
||||
return { success: true, error: null, itemId: response.item?.id };
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
export default CommunityHub;
|
||||
|
||||
@ -10,6 +10,7 @@ export default function HeaderMenu({
|
||||
availableFlows = [],
|
||||
onNewFlow,
|
||||
onSaveFlow,
|
||||
onPublishFlow,
|
||||
}) {
|
||||
const { flowId = null } = useParams();
|
||||
const [showDropdown, setShowDropdown] = useState(false);
|
||||
@ -121,6 +122,12 @@ export default function HeaderMenu({
|
||||
<Plus className="w-4 h-4" />
|
||||
New Flow
|
||||
</button>
|
||||
<button
|
||||
onClick={onPublishFlow}
|
||||
className="px-3 py-2 rounded-lg text-sm font-medium flex items-center justify-center gap-2 border border-white/10 bg-theme-bg-primary text-theme-text-primary hover:bg-theme-action-menu-bg transition-all duration-300"
|
||||
>
|
||||
Publish
|
||||
</button>
|
||||
<button
|
||||
onClick={onSaveFlow}
|
||||
className="border-none bg-primary-button hover:opacity-80 text-black light:text-white px-3 py-2 rounded-lg text-sm font-medium transition-all duration-300 flex items-center justify-center gap-2"
|
||||
|
||||
@ -9,6 +9,7 @@ import AgentFlows from "@/models/agentFlows";
|
||||
import { useTheme } from "@/hooks/useTheme";
|
||||
import HeaderMenu from "./HeaderMenu";
|
||||
import paths from "@/utils/paths";
|
||||
import PublishEntityModal from "@/components/CommunityHub/PublishEntityModal";
|
||||
|
||||
const DEFAULT_BLOCKS = [
|
||||
{
|
||||
@ -52,6 +53,7 @@ export default function AgentBuilder() {
|
||||
const [selectedFlowForDetails, setSelectedFlowForDetails] = useState(null);
|
||||
const nameRef = useRef(null);
|
||||
const descriptionRef = useRef(null);
|
||||
const [showPublishModal, setShowPublishModal] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
loadAvailableFlows();
|
||||
@ -307,6 +309,25 @@ export default function AgentBuilder() {
|
||||
setBlocks(newBlocks);
|
||||
};
|
||||
|
||||
const handlePublishFlow = () => {
|
||||
setShowPublishModal(true);
|
||||
};
|
||||
|
||||
const flowInfoBlock = blocks.find(
|
||||
(block) => block.type === BLOCK_TYPES.FLOW_INFO
|
||||
);
|
||||
const flowEntity = {
|
||||
name: flowInfoBlock?.config?.name || "",
|
||||
description: flowInfoBlock?.config?.description || "",
|
||||
steps: blocks
|
||||
.filter(
|
||||
(block) =>
|
||||
block.type !== BLOCK_TYPES.FINISH &&
|
||||
block.type !== BLOCK_TYPES.FLOW_INFO
|
||||
)
|
||||
.map((block) => ({ type: block.type, config: block.config })),
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
@ -319,12 +340,19 @@ export default function AgentBuilder() {
|
||||
}}
|
||||
className="w-full h-screen flex bg-theme-bg-primary"
|
||||
>
|
||||
<PublishEntityModal
|
||||
show={showPublishModal}
|
||||
onClose={() => setShowPublishModal(false)}
|
||||
entityType="agent-flow"
|
||||
entity={flowEntity}
|
||||
/>
|
||||
<div className="w-full flex flex-col">
|
||||
<HeaderMenu
|
||||
agentName={agentName}
|
||||
availableFlows={availableFlows}
|
||||
onNewFlow={clearFlow}
|
||||
onSaveFlow={saveFlow}
|
||||
onPublishFlow={handlePublishFlow}
|
||||
/>
|
||||
<div className="flex-1 p-6 overflow-y-auto">
|
||||
<div className="max-w-xl mx-auto mt-14">
|
||||
|
||||
@ -9,7 +9,7 @@ const CommunityHub = {
|
||||
process.env.NODE_ENV === "development"
|
||||
? "http://127.0.0.1:5001/anythingllm-hub/us-central1/external/v1"
|
||||
: "https://hub.external.anythingllm.com/v1",
|
||||
supportedStaticItemTypes: ["system-prompt"],
|
||||
supportedStaticItemTypes: ["system-prompt", "agent-flow"],
|
||||
|
||||
/**
|
||||
* Validate an import ID and return the entity type and ID.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user