@devtron-labs/devtron-fe-common-lib 1.22.6-beta-1 → 1.22.6-beta-2

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 (33) hide show
  1. package/dist/{@code-editor-BOwy_w23.js → @code-editor-DfnKQDgo.js} +4953 -5007
  2. package/dist/{@common-rjsf-CJEbml3S.js → @common-rjsf-BfIaNHhi.js} +2 -2
  3. package/dist/{@framer-motion-Bi7d_Mil.js → @framer-motion-LZK2bgCK.js} +64 -64
  4. package/dist/{@react-dates-CR-uCH60.js → @react-dates-CbpfVsC0.js} +1 -1
  5. package/dist/{@react-select-C5q5RdNV.js → @react-select-BuPEYnTv.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-LXSXNrbc.js → @react-virtualized-sticky-tree-DX7VkyTZ.js} +1 -1
  7. package/dist/{@vendor-CtCMPfdc.js → @vendor-BsABdDGm.js} +9181 -9266
  8. package/dist/Common/API/reactQueryHooks.d.ts +1 -2
  9. package/dist/Common/Constants.d.ts +1 -4
  10. package/dist/Pages-Devtron-2.0/Navigation/types.d.ts +1 -1
  11. package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +1 -1
  12. package/dist/Shared/Components/AppStatusModal/types.d.ts +1 -4
  13. package/dist/Shared/Components/Charts/types.d.ts +2 -0
  14. package/dist/Shared/Components/DocLink/constants.d.ts +1 -0
  15. package/dist/Shared/Components/Icon/Icon.d.ts +0 -11
  16. package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
  17. package/dist/Shared/Providers/MainContextProvider/types.d.ts +4 -43
  18. package/dist/Shared/Services/types.d.ts +0 -1
  19. package/dist/Shared/types.d.ts +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +1003 -1005
  22. package/package.json +1 -1
  23. package/dist/assets/ic-bell.d2aa01ec.svg +0 -3
  24. package/dist/assets/ic-bulb.3906a732.svg +0 -7
  25. package/dist/assets/ic-close-circle.b39dd87d.svg +0 -3
  26. package/dist/assets/ic-comment.cc141b33.svg +0 -3
  27. package/dist/assets/ic-dot-circle.5ce1fccf.svg +0 -3
  28. package/dist/assets/ic-new-chat.f7c90f8e.svg +0 -5
  29. package/dist/assets/ic-piggybank.3a4839d7.svg +0 -3
  30. package/dist/assets/ic-priority-high-fill.53755d8f.svg +0 -3
  31. package/dist/assets/ic-priority-low-fill.79e781ae.svg +0 -4
  32. package/dist/assets/ic-priority-urgent-fill.78d42fa0.svg +0 -10
  33. package/dist/assets/ic-red-bulb.25e01bfc.svg +0 -9
@@ -1,7 +1,6 @@
1
- import { QueryKey, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
1
+ import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import { ServerErrors } from '../ServerError';
3
3
  import { ResponseType } from '../Types';
4
4
  export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
5
5
  export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
6
- export declare const useInfiniteQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseInfiniteQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, TQueryKey>) => UseInfiniteQueryResult<TData, ServerErrors>;
7
6
  export { useQueryClient };
@@ -42,8 +42,6 @@ export declare const URLS: {
42
42
  readonly APP_DEPLOYMNENT_HISTORY: "deployments";
43
43
  readonly APP_DETAILS: "details";
44
44
  readonly APP_DETAILS_K8: "k8s-resources";
45
- readonly EXTERNAL_ARGO_APP: "eaa";
46
- readonly EXTERNAL_FLUX_APP: "external-flux";
47
45
  readonly DETAILS: "/details";
48
46
  readonly CD_DETAILS: "cd-details";
49
47
  readonly APP_TRIGGER: "trigger";
@@ -61,7 +59,6 @@ export declare const URLS: {
61
59
  readonly APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP: "/application-management/templates/devtron-app";
62
60
  readonly APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP_CREATE: "/application-management/templates/devtron-app/create";
63
61
  readonly APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP_DETAIL: "/application-management/templates/devtron-app/detail/:appId";
64
- readonly APPLICATION_MANAGEMENT_PROJECTS: "/application-management/projects";
65
62
  readonly APPLICATION_MANAGEMENT_CONFIGURATIONS: "/application-management/configurations";
66
63
  readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_DEPLOYMENT_CHARTS: "/application-management/configurations/deployment-charts";
67
64
  readonly APPLICATION_MANAGEMENT_CONFIGURATIONS_SCOPED_VARIABLES: "/application-management/configurations/scoped-variables";
@@ -106,12 +103,12 @@ export declare const URLS: {
106
103
  readonly GLOBAL_CONFIG: "/global-configuration";
107
104
  readonly GLOBAL_CONFIG_DOCKER: "/global-configuration/docker";
108
105
  readonly GLOBAL_CONFIG_EDIT_CLUSTER: "/global-configuration/cluster-env/edit/:clusterId";
106
+ readonly GLOBAL_CONFIG_PROJECTS: "/global-configuration/projects";
109
107
  readonly PERMISSION_GROUPS: "/global-configuration/auth/groups";
110
108
  readonly EXTERNAL_APPS: "ea";
111
109
  };
112
110
  export declare const ROUTES: {
113
111
  readonly APP: "app";
114
- readonly ATHENA: "athena";
115
112
  readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
116
113
  readonly APP_TEMPLATE_DATA: "app/template/data";
117
114
  readonly ENVIRONMENT_CATEGORIES: "env/categories";
@@ -1,6 +1,6 @@
1
1
  import { customEnv, Never } from 'src';
2
2
  import { IconsProps } from '../../Shared/Components';
3
- export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-vulnerabilities' | 'security-center-security-enablement' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-external-links' | 'global-configuration-chart-repository' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs';
3
+ export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-vulnerabilities' | 'security-center-security-enablement' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-external-links' | 'global-configuration-chart-repository' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'global-configuration-projects' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs';
4
4
  export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-api-tokens';
5
5
  export type NavigationRootItemID = 'application-management' | 'infrastructure-management' | 'software-release-management' | 'cost-visibility' | 'security-center' | 'automation-and-enablement' | 'data-protection-management' | 'global-configuration';
6
6
  export type CommonNavigationItemType = {
@@ -1,2 +1,2 @@
1
1
  import { AppStatusBodyProps } from './types';
2
- export declare const AppStatusBody: ({ appDetails, type, handleShowConfigDriftModal, deploymentStatusDetailsBreakdownData, selectedTab, debugWithAIButton: ExplainWithAIButton, handleClose, }: AppStatusBodyProps) => JSX.Element;
2
+ export declare const AppStatusBody: ({ appDetails, type, handleShowConfigDriftModal, deploymentStatusDetailsBreakdownData, selectedTab, debugWithAIButton: ExplainWithAIButton, }: AppStatusBodyProps) => JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
2
2
  import { APIOptions, DeploymentAppTypes } from '../../../Common/Types';
3
- import { MainContext } from '../../Providers';
4
3
  import { AppDetails, ConfigDriftModalProps, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, IntelligenceConfig } from '../../types';
5
4
  export declare enum AppStatusModalTabType {
6
5
  APP_STATUS = "appStatus",
@@ -14,8 +13,6 @@ export type AppStatusModalProps = {
14
13
  processVirtualEnvironmentDeploymentData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
15
14
  debugWithAIButton: FunctionComponent<{
16
15
  intelligenceConfig: IntelligenceConfig;
17
- debugAgentContext: MainContext['debugAgentContext'];
18
- onClick?: () => void;
19
16
  }>;
20
17
  } & ({
21
18
  type: 'release';
@@ -32,7 +29,7 @@ export type AppStatusModalProps = {
32
29
  appId?: never;
33
30
  envId?: never;
34
31
  });
35
- export interface AppStatusBodyProps extends Required<Pick<AppStatusModalProps, 'appDetails' | 'type' | 'debugWithAIButton' | 'handleClose'>> {
32
+ export interface AppStatusBodyProps extends Required<Pick<AppStatusModalProps, 'appDetails' | 'type' | 'debugWithAIButton'>> {
36
33
  handleShowConfigDriftModal: () => void;
37
34
  selectedTab: AppStatusModalTabType;
38
35
  deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
@@ -93,7 +93,9 @@ export type ChartProps = {
93
93
  placement?: TooltipProps['placement'];
94
94
  datasetValueFormatter?: (value: number) => string | number;
95
95
  };
96
+ /** A title for x axis */
96
97
  xScaleTitle?: string;
98
+ /** A title for y axis */
97
99
  yScaleTitle?: string;
98
100
  } & TypeAndDatasetsType;
99
101
  export type TransformDatasetProps = {
@@ -104,5 +104,6 @@ export declare const DOCUMENTATION: {
104
104
  readonly COST_CALCULATION: "docs/user-guide/finops/overview-cost-visibility#how-is-the-cost-calculated";
105
105
  readonly COST_VISIBILITY_OVERVIEW: "docs/user-guide/finops/overview-cost-visibility";
106
106
  readonly SECURITY_CENTER: "docs/user-guide/security-features";
107
+ readonly AI_RECOMMENDATIONS: "docs/user-guide/ai-recommendations";
107
108
  readonly AUTOMATION_AND_ENABLEMENT: "docs/user-guide/automation";
108
109
  };
@@ -30,7 +30,6 @@ export declare const iconMap: {
30
30
  'ic-backup-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
31
31
  'ic-backup-location': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
32
32
  'ic-backup-schedule-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
- 'ic-bell': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
34
33
  'ic-bg-backup-schedule': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
35
34
  'ic-bg-backups': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
36
35
  'ic-bg-build': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -57,7 +56,6 @@ export declare const iconMap: {
57
56
  'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
57
  'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
58
  'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
- 'ic-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
59
  'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
62
60
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
61
  'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -81,7 +79,6 @@ export declare const iconMap: {
81
79
  'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
82
80
  'ic-clock-counterclockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
83
81
  'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
84
- 'ic-close-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
85
82
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
86
83
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
87
84
  'ic-cloud-upload': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -91,7 +88,6 @@ export declare const iconMap: {
91
88
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
92
89
  'ic-coins-color-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
93
90
  'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
94
- 'ic-comment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
95
91
  'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
96
92
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
97
93
  'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -120,7 +116,6 @@ export declare const iconMap: {
120
116
  'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
121
117
  'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
122
118
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
123
- 'ic-dot-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
124
119
  'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
125
120
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
126
121
  'ic-edit-lines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -224,7 +219,6 @@ export declare const iconMap: {
224
219
  'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
225
220
  'ic-namespace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
226
221
  'ic-nav-cursor': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
227
- 'ic-new-chat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
228
222
  'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
229
223
  'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
230
224
  'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -242,16 +236,11 @@ export declare const iconMap: {
242
236
  'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
243
237
  'ic-pause': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
244
238
  'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
245
- 'ic-piggybank': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
246
239
  'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
247
- 'ic-priority-high-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
248
- 'ic-priority-low-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
249
240
  'ic-priority-medium-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
250
- 'ic-priority-urgent-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
251
241
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
252
242
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
253
243
  'ic-ratings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
254
- 'ic-red-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
255
244
  'ic-release-hub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
256
245
  'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
257
246
  'ic-resource-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,3 +1,3 @@
1
1
  export * from './MainContextProvider';
2
2
  export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig, TempAppWindowConfig } from './types';
3
- export { AIAgentContextSourceType, type AIAgentContextType, SidePanelTab } from './types';
3
+ export { SidePanelTab } from './types';
@@ -1,4 +1,4 @@
1
- import { Dispatch, FunctionComponent, MutableRefObject, ReactNode, SetStateAction } from 'react';
1
+ import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
2
2
  import { SERVER_MODE } from '../../../Common';
3
3
  import { DevtronLicenseInfo, EnvironmentDataValuesDTO, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '../..';
4
4
  import { ServerInfo } from '../../Components/Header/types';
@@ -22,43 +22,10 @@ export interface SidePanelConfig {
22
22
  /** URL to documentation that should be displayed in the panel */
23
23
  docLink: string | null;
24
24
  aiSessionId?: string;
25
- isExpandedView?: boolean;
26
25
  }
27
- export declare enum AIAgentContextSourceType {
28
- APP_DETAILS = "app-details",
29
- RESOURCE_BROWSER_CLUSTER = "resource-browser-cluster"
30
- }
31
- export type AIAgentAppType = 'devtronApp' | 'devtronHelmChart' | 'externalHelmChart' | 'externalArgoApp' | 'externalFluxApp';
32
- type AIAgentAppDataMasterType = {
33
- appId: number | string;
34
- appName: string;
35
- envId: number;
36
- envName: string;
37
- clusterId: number;
38
- namespace: string;
39
- appType: AIAgentAppType;
40
- fluxAppDeploymentType: string;
41
- };
42
- type AIAgentAppDataType<TAppType extends AIAgentAppType, TRequiredFields extends keyof AIAgentAppDataMasterType> = Pick<AIAgentAppDataMasterType, TRequiredFields> & {
43
- [K in Exclude<keyof AIAgentAppDataMasterType, TRequiredFields | 'appType'>]?: never;
44
- } & {
45
- appType: TAppType;
46
- };
47
- type CommonContextDataType = Record<string, unknown> & {
48
- uiMarkup?: string;
49
- };
50
- export type AIAgentContextType = {
51
- source: AIAgentContextSourceType.APP_DETAILS;
52
- data: AIAgentAppDataType<'devtronApp' | 'devtronHelmChart', 'appId' | 'appName' | 'envId' | 'envName' | 'clusterId'> | AIAgentAppDataType<'externalHelmChart', 'appId' | 'appName' | 'clusterId' | 'namespace'> | AIAgentAppDataType<'externalArgoApp', 'appName' | 'clusterId' | 'namespace'> | (AIAgentAppDataType<'externalFluxApp', 'appName' | 'clusterId' | 'namespace' | 'fluxAppDeploymentType'> & CommonContextDataType);
53
- } | {
54
- source: AIAgentContextSourceType.RESOURCE_BROWSER_CLUSTER;
55
- data: {
56
- clusterId: number;
57
- clusterName: string;
58
- } & CommonContextDataType;
59
- };
60
- export type DebugAgentContextType = AIAgentContextType & {
61
- prompt?: string;
26
+ type AIAgentContextType = {
27
+ path: string;
28
+ context: Record<string, string>;
62
29
  };
63
30
  export interface TempAppWindowConfig {
64
31
  /** Whether the temporary window is open */
@@ -120,8 +87,6 @@ type CommonMainContextProps = {
120
87
  setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
121
88
  canFetchHelmAppStatus: boolean;
122
89
  setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
123
- debugAgentContext: DebugAgentContextType | null;
124
- setDebugAgentContext: (aiAgentContext: DebugAgentContextType | null) => void;
125
90
  setAIAgentContext: (aiAgentContext: AIAgentContextType) => void;
126
91
  setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
127
92
  } & Pick<EnvironmentDataValuesDTO, 'isResourceRecommendationEnabled'>;
@@ -150,8 +115,6 @@ export type MainContext = CommonMainContextProps & ({
150
115
  aiAgentContext: AIAgentContextType;
151
116
  tempAppWindowConfig: TempAppWindowConfig;
152
117
  setTempAppWindowConfig: Dispatch<SetStateAction<TempAppWindowConfig>>;
153
- AIRecommendations?: FunctionComponent;
154
- featureAskDevtronExpert: EnvironmentDataValuesDTO['featureAskDevtronExpert'];
155
118
  } | {
156
119
  isLicenseDashboard: true;
157
120
  serverMode: null;
@@ -169,8 +132,6 @@ export type MainContext = CommonMainContextProps & ({
169
132
  aiAgentContext: null;
170
133
  tempAppWindowConfig: null;
171
134
  setTempAppWindowConfig: null;
172
- AIRecommendations?: null;
173
- featureAskDevtronExpert?: null;
174
135
  });
175
136
  export interface MainContextProviderProps {
176
137
  children: ReactNode;
@@ -39,7 +39,6 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
39
39
  canOnlyViewPermittedEnvOrgLevel: boolean;
40
40
  devtronManagedLicensingEnabled: boolean;
41
41
  isResourceRecommendationEnabled?: boolean;
42
- featureAskDevtronExpert: boolean;
43
42
  }
44
43
  export interface ClusterMinDTO {
45
44
  id: number;
@@ -1128,7 +1128,7 @@ export interface DeploymentStatusDetailsBreakdownDataType {
1128
1128
  }
1129
1129
  export interface IntelligenceConfig {
1130
1130
  clusterId: number;
1131
- metadata: Record<string, string | number>;
1131
+ metadata: Record<string, string>;
1132
1132
  prompt: string;
1133
1133
  analyticsCategory: string;
1134
1134
  }
package/dist/index.d.ts CHANGED
@@ -135,6 +135,7 @@ export interface customEnv {
135
135
  GATEKEEPER_URL?: string;
136
136
  FEATURE_AI_INTEGRATION_ENABLE?: boolean;
137
137
  LOGIN_PAGE_IMAGE?: string;
138
+ FEATURE_ASK_DEVTRON_EXPERT?: boolean;
138
139
  /**
139
140
  * If true, the manage traffic feature is enabled in apps & app groups.
140
141
  *
@@ -167,7 +168,6 @@ export interface customEnv {
167
168
  * @default false
168
169
  */
169
170
  FEATURE_STORAGE_ENABLE?: boolean;
170
- FEATURE_ATHENA_DEBUG_MODE_ENABLE?: boolean;
171
171
  }
172
172
  declare global {
173
173
  interface Window {