@e-llm-studio/instant-learning 0.0.64 → 0.0.66

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 (37) hide show
  1. package/dist/index.esm.js +62 -20
  2. package/dist/index.js +74 -32
  3. package/dist/src/CommonComponents/GradientSparkleIcon.d.ts +5 -0
  4. package/dist/src/CommonComponents/GradientSparkleIcon.d.ts.map +1 -0
  5. package/dist/src/features/InstantLearning/_components/ConflictingLearningWarnCardDB.d.ts.map +1 -1
  6. package/dist/src/features/InstantLearning/_components/MessageRendering.d.ts.map +1 -1
  7. package/dist/src/features/WtaWnta/WtaWnta.d.ts +38 -0
  8. package/dist/src/features/WtaWnta/WtaWnta.d.ts.map +1 -0
  9. package/dist/src/features/WtaWnta/_components/AgentDetailsForm.d.ts +40 -0
  10. package/dist/src/features/WtaWnta/_components/AgentDetailsForm.d.ts.map +1 -0
  11. package/dist/src/features/WtaWnta/_components/SimilarConflictingCard.d.ts +15 -0
  12. package/dist/src/features/WtaWnta/_components/SimilarConflictingCard.d.ts.map +1 -0
  13. package/dist/src/features/WtaWnta/_components/ValidationCard.d.ts +29 -0
  14. package/dist/src/features/WtaWnta/_components/ValidationCard.d.ts.map +1 -0
  15. package/dist/src/hooks/useAgentFix.d.ts +15 -0
  16. package/dist/src/hooks/useAgentFix.d.ts.map +1 -0
  17. package/dist/src/hooks/useAgentSuggestions.d.ts +20 -0
  18. package/dist/src/hooks/useAgentSuggestions.d.ts.map +1 -0
  19. package/dist/src/hooks/useAgentValidation.d.ts +17 -0
  20. package/dist/src/hooks/useAgentValidation.d.ts.map +1 -0
  21. package/dist/src/hooks/useDebounce copy.d.ts +2 -0
  22. package/dist/src/hooks/useDebounce copy.d.ts.map +1 -0
  23. package/dist/src/hooks/useExistingAgentCheck.d.ts +28 -0
  24. package/dist/src/hooks/useExistingAgentCheck.d.ts.map +1 -0
  25. package/dist/src/hooks/usePromptFix.d.ts +14 -0
  26. package/dist/src/hooks/usePromptFix.d.ts.map +1 -0
  27. package/dist/src/hooks/usePromptSuggestions.d.ts +8 -0
  28. package/dist/src/hooks/usePromptSuggestions.d.ts.map +1 -0
  29. package/dist/src/hooks/usePromptValidation.d.ts +18 -0
  30. package/dist/src/hooks/usePromptValidation.d.ts.map +1 -0
  31. package/dist/src/hooks/useTableHeadCellsCount copy.d.ts +6 -0
  32. package/dist/src/hooks/useTableHeadCellsCount copy.d.ts.map +1 -0
  33. package/dist/src/hooks/useURLQuery copy.d.ts +10 -0
  34. package/dist/src/hooks/useURLQuery copy.d.ts.map +1 -0
  35. package/dist/src/index.d.ts +1 -0
  36. package/dist/src/index.d.ts.map +1 -1
  37. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ declare const GradientSparkleIcon: ({ color }: {
2
+ color?: string | undefined;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default GradientSparkleIcon;
5
+ //# sourceMappingURL=GradientSparkleIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GradientSparkleIcon.d.ts","sourceRoot":"","sources":["../../../src/CommonComponents/GradientSparkleIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,mBAAmB;;6CAqBxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConflictingLearningWarnCardDB.d.ts","sourceRoot":"","sources":["../../../../../src/features/InstantLearning/_components/ConflictingLearningWarnCardDB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAwB3D,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACtC;AAED,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAG,MAAM,CAAC;CACjB;AAED,UAAU,uBAAuB;IAC/B,qBAAqB,EAAE,CAAC,gBAAgB,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE;QAAE,WAAW,EAAE,MAAM,EAAE,CAAC;QAAC,cAAc,EAAE,MAAM,EAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IACrH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;IAClE,8BAA8B,CAAC,EAAE,GAAG,CAAC;IACrC,0BAA0B,CAAC,EAAE,GAAG,CAAC;IACjC,eAAe,CAAC,EAAE;QAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1E,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAC;CAClG;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAk8CzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"ConflictingLearningWarnCardDB.d.ts","sourceRoot":"","sources":["../../../../../src/features/InstantLearning/_components/ConflictingLearningWarnCardDB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAwB3D,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACtC;AAED,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAG,MAAM,CAAC;CACjB;AAED,UAAU,uBAAuB;IAC/B,qBAAqB,EAAE,CAAC,gBAAgB,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE;QAAE,WAAW,EAAE,MAAM,EAAE,CAAC;QAAC,cAAc,EAAE,MAAM,EAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IACrH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;IAClE,8BAA8B,CAAC,EAAE,GAAG,CAAC;IACrC,0BAA0B,CAAC,EAAE,GAAG,CAAC;IACjC,eAAe,CAAC,EAAE;QAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1E,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAC;CAClG;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAg8CzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../src/features/InstantLearning/_components/MessageRendering.tsx"],"names":[],"mappings":"AA8JA,QAAA,MAAM,gBAAgB;WAEP,MAAM;aACJ,MAAM;cACL,GAAG;kBACC,GAAG;oBACD,GAAG;6CAwmB1B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../src/features/InstantLearning/_components/MessageRendering.tsx"],"names":[],"mappings":"AA8JA,QAAA,MAAM,gBAAgB;WAEP,MAAM;aACJ,MAAM;cACL,GAAG;kBACC,GAAG;oBACD,GAAG;6CAulB1B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ export type ModeConfig = {
3
+ mainTitle: string;
4
+ mainTitleTooltip: string;
5
+ wtaTitle: string;
6
+ wtaTooltip: string;
7
+ wntaTitle: string;
8
+ wntaTooltip: string;
9
+ };
10
+ interface IAgentGenieProps {
11
+ mode: 'agent-genie';
12
+ agent_context?: string;
13
+ agent_description: string;
14
+ agent_id: string | null;
15
+ assistant_name: string;
16
+ organization_name: string;
17
+ base_url: string;
18
+ wta?: string[];
19
+ wnta?: string[];
20
+ }
21
+ interface IPromptGenieProps {
22
+ mode: 'prompt-genie';
23
+ template_context: string;
24
+ template_description: string;
25
+ baseUrl: string;
26
+ }
27
+ interface ICodingStandardsProps {
28
+ mode: 'coding-standards';
29
+ }
30
+ type WtaWntaProps = (IAgentGenieProps | IPromptGenieProps | ICodingStandardsProps) & {
31
+ onSaveComplete?: (result: {
32
+ wta: string;
33
+ wnta: string;
34
+ }) => void;
35
+ };
36
+ declare const WtaWnta: React.FC<WtaWntaProps>;
37
+ export default WtaWnta;
38
+ //# sourceMappingURL=WtaWnta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WtaWnta.d.ts","sourceRoot":"","sources":["../../../../src/features/WtaWnta/WtaWnta.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAenD,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAgCF,UAAU,gBAAgB;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAG,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CAEjB;AACD,UAAU,iBAAiB;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,gBAAgB,EAAG,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAG,MAAM,CAAC;CAClB;AACD,UAAU,qBAAqB;IAC7B,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,KAAK,YAAY,GACf,CAAC,gBAAgB,GAAG,iBAAiB,GAAG,qBAAqB,CAAC,GAAG;IAC/D,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAClE,CAAC;AAGJ,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAoWnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import { ModeConfig } from '../WtaWnta';
3
+ import { ValidationResponse } from '../_components/ValidationCard';
4
+ export interface RuleItem {
5
+ text: string;
6
+ score?: number;
7
+ reason?: string;
8
+ }
9
+ export interface IFormState {
10
+ wta: RuleItem[];
11
+ wnta: RuleItem[];
12
+ }
13
+ interface IAgentDetailsFormProps {
14
+ formState: IFormState;
15
+ setFormState: React.Dispatch<React.SetStateAction<IFormState>>;
16
+ config: ModeConfig;
17
+ isLoadingSuggestions?: boolean;
18
+ onSave: (newState: IFormState) => void;
19
+ isSaving: boolean;
20
+ modelProvider: string;
21
+ setModelProvider: (provider: string) => void;
22
+ modelName: string;
23
+ setModelName: (name: string) => void;
24
+ isCheckingExisting: boolean;
25
+ suggestedFixes: IFormState;
26
+ onRejectFix: (type: 'wta' | 'wnta', index: number) => void;
27
+ onAcceptFix: (type: 'wta' | 'wnta', rule: RuleItem) => void;
28
+ isFixing: boolean;
29
+ isValidDb: boolean;
30
+ isFormDirty: boolean;
31
+ isSaveButtonDisabled: boolean;
32
+ onValidate: (state: IFormState, modelName: string) => void;
33
+ validationResponse: ValidationResponse | null;
34
+ onFixConflicts: () => void;
35
+ formCommand: string | null;
36
+ setFormCommand: React.Dispatch<React.SetStateAction<string | null>>;
37
+ }
38
+ declare const AgentDetailsForm: React.FC<IAgentDetailsFormProps>;
39
+ export default AgentDetailsForm;
40
+ //# sourceMappingURL=AgentDetailsForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentDetailsForm.d.ts","sourceRoot":"","sources":["../../../../../src/features/WtaWnta/_components/AgentDetailsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAA6B,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAyBzF,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,QAAQ,EAAE,CAAC;IAChB,IAAI,EAAE,QAAQ,EAAE,CAAC;CAGlB;AAED,UAAU,sBAAsB;IAC9B,SAAS,EAAE,UAAU,CAAC;IACtB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;IAC/D,MAAM,EAAE,UAAU,CAAC;IACnB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,MAAM,EAAE,CAAC,QAAQ,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAElB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,UAAU,CAAC;IAC3B,WAAW,EAAE,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,WAAW,EAAE,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC5D,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC9C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;CACrE;AASD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA6rCtD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface SimilarRule {
3
+ agentName: string;
4
+ confidenceScore: number;
5
+ reason: string;
6
+ wtaRules: string[];
7
+ wntaRules: string[];
8
+ }
9
+ export interface SimilarRulesCardProps {
10
+ similarRules: SimilarRule[];
11
+ showUpdateWarning: boolean;
12
+ }
13
+ declare const SimilarRulesCard: React.FC<SimilarRulesCardProps>;
14
+ export default SimilarRulesCard;
15
+ //# sourceMappingURL=SimilarConflictingCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimilarConflictingCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/WtaWnta/_components/SimilarConflictingCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAgBxC,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAGD,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,WAAW,EAAE,CAAC;IAE5B,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAkDD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqMrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ export interface Conflict {
3
+ condition_wta?: string;
4
+ condition_wnta?: string;
5
+ reason: string;
6
+ confidence_score: number;
7
+ }
8
+ export interface DuplicationConflict {
9
+ type: 'wta' | 'wnta';
10
+ duplicate_conditions: string[];
11
+ reason: string;
12
+ confidence_score: number;
13
+ }
14
+ export interface ValidationResponse {
15
+ is_valid: boolean;
16
+ correctness?: {
17
+ reason: string;
18
+ confidence_score: number;
19
+ };
20
+ duplication?: DuplicationConflict[];
21
+ cross_validation?: Conflict[];
22
+ }
23
+ interface CurrentRuleConflictsProps {
24
+ validationResponse: ValidationResponse;
25
+ onFixConflicts?: () => void;
26
+ }
27
+ declare const CurrentRuleConflicts: React.FC<CurrentRuleConflictsProps>;
28
+ export default CurrentRuleConflicts;
29
+ //# sourceMappingURL=ValidationCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValidationCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/WtaWnta/_components/ValidationCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAkBxC,MAAM,WAAW,QAAQ;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAGD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAGD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,WAAW,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACpC,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC/B;AAED,UAAU,yBAAyB;IACjC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AA+CD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAyQ7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { IFormState } from '../features/WtaWnta/_components/AgentDetailsForm';
2
+ import { ValidationResponse } from '../features/WtaWnta/_components/ValidationCard';
3
+ import { Suggestion } from './useAgentSuggestions';
4
+ /**
5
+ * Custom hook to call the API that fixes validation conflicts.
6
+ * @returns An object with a function to trigger the fix, the loading state, and the resulting suggestions.
7
+ */
8
+ declare const useAgentFix: (baseUrl: string) => {
9
+ fixAgentRules: (validationData: ValidationResponse, currentState: IFormState, agentContext: string, agentDescription: string, modelName: string) => Promise<void>;
10
+ isFixing: boolean;
11
+ fixedSuggestions: Suggestion[];
12
+ error: Error | null;
13
+ };
14
+ export default useAgentFix;
15
+ //# sourceMappingURL=useAgentFix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAgentFix.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAgentFix.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAoBnD;;;GAGG;AACH,QAAA,MAAM,WAAW,YAAa,MAAM;oCAMhB,kBAAkB,gBACpB,UAAU,gBACV,MAAM,oBACF,MAAM,aACZ,MAAM;;;;CAsDrB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,20 @@
1
+ export interface Suggestion {
2
+ type: 'wta' | 'wnta';
3
+ text: string;
4
+ score: number;
5
+ reason: string;
6
+ }
7
+ /**
8
+ * Custom hook to fetch AI-powered WTA/WNTA suggestions.
9
+ * It calls the API on initial render and whenever the agent context or description changes.
10
+ * @param agentContext The system prompt or context for the agent.
11
+ * @param agentDescription A description of the agent's purpose.
12
+ * @returns An object containing the suggestions, loading state, and any errors.
13
+ */
14
+ declare const useAgentSuggestions: (agentContext: string, agentDescription: string, refetchTrigger: number, modelName: string, enabled: boolean | undefined, baseUrl: string) => {
15
+ suggestions: Suggestion[];
16
+ isLoading: boolean;
17
+ error: Error | null;
18
+ };
19
+ export default useAgentSuggestions;
20
+ //# sourceMappingURL=useAgentSuggestions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAgentSuggestions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAgentSuggestions.ts"],"names":[],"mappings":"AAqBA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAG,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB,iBACT,MAAM,oBACF,MAAM,kBACR,MAAM,aACX,MAAM,yCAEP,MAAM;;;;CAwEjB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { IFormState } from '../features/WtaWnta/_components/AgentDetailsForm';
2
+ import { ValidationResponse } from '../features/WtaWnta/_components/ValidationCard';
3
+ /**
4
+ * Custom hook to trigger agent rule validation.
5
+ * @param agentContext The system prompt or context for the agent.
6
+ * @param agentDescription A description of the agent's purpose.
7
+ * @returns An object with a function to trigger validation, the saving state, and any conflicts.
8
+ */
9
+ declare const useAgentValidation: (agentContext: string, agentDescription: string, baseUrl: string) => {
10
+ validateAgentRules: (currentState: IFormState, modelName: string) => Promise<ValidationResponse | null>;
11
+ clearValidation: () => void;
12
+ isSaving: boolean;
13
+ validationResponse: ValidationResponse | null;
14
+ error: Error | null;
15
+ };
16
+ export default useAgentValidation;
17
+ //# sourceMappingURL=useAgentValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAgentValidation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAgentValidation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAUpF;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,iBAAkB,MAAM,oBAAoB,MAAM,WAAY,MAAM;uCAS9B,UAAU,aAAa,MAAM;;;;;CAuD1F,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function useDebounce<T>(value: T, delayInMs?: number): T;
2
+ //# sourceMappingURL=useDebounce%20copy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebounce copy.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDebounce copy.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,GAAE,MAAY,GAAG,CAAC,CAc3E"}
@@ -0,0 +1,28 @@
1
+ import { IFormState } from '../features/WtaWnta/_components/AgentDetailsForm';
2
+ export interface ExistingConflictItem {
3
+ id: string;
4
+ ui_name: string;
5
+ title: string;
6
+ description: string;
7
+ when_to_use: string;
8
+ when_not_to_use: string | null;
9
+ reason: string;
10
+ confidence_score: number;
11
+ }
12
+ export interface ExistingCheckResponse {
13
+ is_valid_db: boolean;
14
+ similar_conditions: ExistingConflictItem[];
15
+ }
16
+ /**
17
+ * Custom hook to check for conflicts with existing agent rules in the database.
18
+ * @returns An object with a function to trigger the check, loading state, and any conflicts found.
19
+ */
20
+ declare const useExistingAgentCheck: (baseUrl: string) => {
21
+ checkExistingRules: (currentState: IFormState, agentId: string | null, assistantName: string, organizationName: string) => Promise<void>;
22
+ isLoading: boolean;
23
+ existingConflicts: ExistingCheckResponse | null;
24
+ error: Error | null;
25
+ clearExistingAgentConflicts: () => void;
26
+ };
27
+ export default useExistingAgentCheck;
28
+ //# sourceMappingURL=useExistingAgentCheck.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExistingAgentCheck.d.ts","sourceRoot":"","sources":["../../../src/hooks/useExistingAgentCheck.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAK9E,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAGD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,OAAO,CAAC;IAErB,kBAAkB,EAAE,oBAAoB,EAAE,CAAC;CAC5C;AASD;;;GAGG;AACH,QAAA,MAAM,qBAAqB,YAAc,MAAM;uCASG,UAAU,WAAY,MAAM,GAAG,IAAI,iBAAiB,MAAM,oBAAoB,MAAM;;;;;CAwDrI,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { IFormState } from '../features/WtaWnta/_components/AgentDetailsForm';
2
+ import { ValidationResponse } from '../features/WtaWnta/_components/ValidationCard';
3
+ import { Suggestion } from './useAgentSuggestions';
4
+ /**
5
+ * Custom hook to call the API that fixes validation conflicts for Prompt Genie mode.
6
+ */
7
+ declare const usePromptFix: (baseUrl: string) => {
8
+ fixPromptRules: (validationData: ValidationResponse, currentState: IFormState, templateContext: string, templateDescription: string, modelName: string) => Promise<void>;
9
+ isFixing: boolean;
10
+ fixedSuggestions: Suggestion[];
11
+ error: Error | null;
12
+ };
13
+ export default usePromptFix;
14
+ //# sourceMappingURL=usePromptFix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePromptFix.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePromptFix.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAoBnD;;GAEG;AACH,QAAA,MAAM,YAAY,YAAa,MAAM;qCAMjB,kBAAkB,gBACpB,UAAU,mBACP,MAAM,uBACF,MAAM,aAChB,MAAM;;;;CAoDpB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Suggestion } from './useAgentSuggestions';
2
+ declare const usePromptSuggestions: (templateContext: string, templateDescription: string, refetchTrigger: number, modelName: string, enabled: boolean | undefined, baseUrl: string) => {
3
+ suggestions: Suggestion[];
4
+ isLoading: boolean;
5
+ error: Error | null;
6
+ };
7
+ export default usePromptSuggestions;
8
+ //# sourceMappingURL=usePromptSuggestions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePromptSuggestions.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePromptSuggestions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAoBnD,QAAA,MAAM,oBAAoB,oBACP,MAAM,uBACF,MAAM,kBACX,MAAM,aACX,MAAM,yCAER,MAAM;;;;CA+DhB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { IFormState } from '../features/WtaWnta/_components/AgentDetailsForm';
2
+ import { ValidationResponse } from '../features/WtaWnta/_components/ValidationCard';
3
+ /**
4
+ * Custom hook to trigger prompt rule validation for PromptGenie mode.
5
+ * @param templateContext The context for the prompt template.
6
+ * @param templateDescription A description of the template's purpose.
7
+ * @param enabled A flag to enable or disable the hook.
8
+ * @returns An object with a function to trigger validation, the saving state, and any conflicts.
9
+ */
10
+ declare const usePromptValidation: (templateContext: string, templateDescription: string, enabled: boolean | undefined, baseUrl: string) => {
11
+ validateRules: (currentState: IFormState, modelName: string) => Promise<ValidationResponse | null>;
12
+ clearValidation: () => void;
13
+ isSaving: boolean;
14
+ validationResponse: ValidationResponse | null;
15
+ error: Error | null;
16
+ };
17
+ export default usePromptValidation;
18
+ //# sourceMappingURL=usePromptValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePromptValidation.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePromptValidation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AASpF;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB,oBACN,MAAM,uBACF,MAAM,yCAElB,MAAM;kCAU4B,UAAU,aAAa,MAAM;;;;;CAyDzE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { DependencyList } from "react";
2
+ /**
3
+ * This hook returns total number of table cells count in table header
4
+ */
5
+ export declare function useTableHeadCellsCount(tableElementId: string, dependencies: DependencyList): number;
6
+ //# sourceMappingURL=useTableHeadCellsCount%20copy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableHeadCellsCount copy.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableHeadCellsCount copy.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5D;;GAEG;AAEH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,cAAc,GAC3B,MAAM,CAcR"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Use to fetch query parameters from url.
3
+ *
4
+ * for example "url?foo=bar"
5
+ *
6
+ * const query = useURLQuery();
7
+ * query.get('foo');
8
+ */
9
+ export declare function useURLQuery(): URLSearchParams;
10
+ //# sourceMappingURL=useURLQuery%20copy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useURLQuery copy.d.ts","sourceRoot":"","sources":["../../../src/hooks/useURLQuery copy.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,wBAAgB,WAAW,oBAK1B"}
@@ -2,6 +2,7 @@ import { ConfigType } from "./userProvidedConfig";
2
2
  export { default as CodeCitation } from "./features/CodeCitation/CodeCitation";
3
3
  export { default as ProjectAccordian } from "./features/ProjectAccordion/ProjectAccordion";
4
4
  export { default as InstantLearning } from "./features/InstantLearning/InstantLearning";
5
+ export { default as WtaWnta } from "./features/WtaWnta/WtaWnta";
5
6
  export { PdfEditorCitation as PdfCitation } from "./features/PdfEditorCitation/PdfEditorCitation";
6
7
  export type configurationType = ConfigType;
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,MAAM,sBAAsB,CAAC;AAc5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAElG,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,MAAM,sBAAsB,CAAC;AAc5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAElG,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/instant-learning",
3
- "version": "0.0.64",
3
+ "version": "0.0.66",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",