Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

config plugins support

ahmedcoder0120b490ef4a7d
diff --git a/packages/app/src/react/features/agents/data/onboarding-tasks.ts b/packages/app/src/react/features/agents/data/onboarding-tasks.ts
index bfad3197..f6a6c7a8 100644
--- a/packages/app/src/react/features/agents/data/onboarding-tasks.ts
+++ b/packages/app/src/react/features/agents/data/onboarding-tasks.ts
@@ -1,6 +1,13 @@
+import { plugins, PluginTarget, PluginType } from '@src/react/shared/plugins/Plugins';
import { OnboardingTaskProps, OnboardingTaskType } from '@src/react/shared/types/onboard.types';
import { SMYTHOS_DOCS_URL } from '@src/shared/constants/general';
+const onboardingPlugins = (
+ plugins.getPluginsByTarget(PluginTarget.Onboarding, PluginType.Config) as {
+ config: any;
+ }[]
+).map((plugin) => plugin.config);
+
export const onboardingTasks: OnboardingTaskProps[] = [
{
type: OnboardingTaskType.QUICK_GUIDED_EXAMPLE,
@@ -18,21 +25,24 @@ export const onboardingTasks: OnboardingTaskProps[] = [
],
completeDescription: "You've successfully completed the interactive quickstart guide",
},
- {
- type: OnboardingTaskType.INVITE_TEAM_MEMBERS,
- title: 'Invite Team Members',
- icon: '/img/onboard/invite.svg',
- description: 'Collaborate seamlessly to build and chat with agents.',
- completed: false,
- buttons: [
- {
- label: 'Invite Team Members',
- link: '/teams/members',
- type: OnboardingTaskType.INVITE_TEAM_MEMBERS,
- },
- ],
- completeDescription: "You've successfully invited your team members to the platform",
- },
+ // COMMENTED TEMPORARILY WHILE MIGRATING FROM CE TO SAAS
+ // {
+ // type: OnboardingTaskType.INVITE_TEAM_MEMBERS,
+ // title: 'Invite Team Members',
+ // icon: '/img/onboard/invite.svg',
+ // description: 'Collaborate seamlessly to build and chat with agents.',
+ // completed: false,
+ // buttons: [
+ // {
+ // label: 'Invite Team Members',
+ // link: '/teams/members',
+ // type: OnboardingTaskType.INVITE_TEAM_MEMBERS,
+ // },
+ // ],
+ // completeDescription: "You've successfully invited your team members to the platform",
+ // },
+ ...onboardingPlugins,
+
{
type: OnboardingTaskType.TRY_AGENT_TEMPLATE,
title: 'Start with Template',
diff --git a/packages/app/src/react/shared/plugins/Plugins.ts b/packages/app/src/react/shared/plugins/Plugins.ts
index e7eedc04..9aef07f7 100644
--- a/packages/app/src/react/shared/plugins/Plugins.ts
+++ b/packages/app/src/react/shared/plugins/Plugins.ts
@@ -1,11 +1,13 @@
export enum PluginTarget {
BuilderLoadScript = 'builder/LoadScript',
TopMenuItem = 'topMenuItem',
+ Onboarding = 'onboarding',
}
export enum PluginType {
Function = 'function',
Component = 'component',
+ Config = 'config',
}
export type TPlugin =
@@ -16,6 +18,10 @@ export type TPlugin =
| {
type: PluginType.Component;
component: React.ReactNode;
+ }
+ | {
+ type: PluginType.Config;
+ config: any;
};
export class Plugins {