@exulu/backend 1.48.1 → 1.49.0

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 (165) hide show
  1. package/README.md +2 -2
  2. package/dist/index.cjs +353 -42
  3. package/dist/index.d.cts +422 -327
  4. package/dist/index.d.ts +422 -327
  5. package/dist/index.js +341 -38
  6. package/ee/{markdown.ts → chunking/markdown.ts} +2 -2
  7. package/ee/python/README.md +295 -0
  8. package/ee/python/documents/processing/README.md +155 -0
  9. package/ee/{documents → python/documents}/processing/doc_processor.ts +25 -17
  10. package/ee/{documents/processing/pdf_to_markdown.py → python/documents/processing/document_to_markdown.py} +3 -10
  11. package/ee/python/setup.sh +180 -0
  12. package/package.json +17 -5
  13. package/scripts/postinstall.cjs +149 -0
  14. package/.agents/skills/mintlify/SKILL.md +0 -347
  15. package/.editorconfig +0 -15
  16. package/.eslintrc.json +0 -52
  17. package/.github/workflows/release-backend.yml +0 -38
  18. package/.husky/commit-msg +0 -1
  19. package/.jscpd.json +0 -18
  20. package/.mcp.json +0 -18
  21. package/.nvmrc +0 -1
  22. package/.prettierignore +0 -5
  23. package/.prettierrc.json +0 -12
  24. package/CHANGELOG.md +0 -6
  25. package/SECURITY.md +0 -5
  26. package/commitlint.config.js +0 -4
  27. package/devops/documentation/patch-older-releases.md +0 -42
  28. package/ee/documents/processing/build_pdf_processor.sh +0 -35
  29. package/ee/documents/processing/chunk_markdown.py +0 -263
  30. package/ee/documents/processing/pdf_processor.spec +0 -115
  31. package/eslint.config.js +0 -88
  32. package/jest.config.ts +0 -25
  33. package/mintlify-docs/.mintignore +0 -7
  34. package/mintlify-docs/AGENTS.md +0 -33
  35. package/mintlify-docs/CLAUDE.MD +0 -50
  36. package/mintlify-docs/CONTRIBUTING.md +0 -32
  37. package/mintlify-docs/LICENSE +0 -21
  38. package/mintlify-docs/README.md +0 -55
  39. package/mintlify-docs/ai-tools/claude-code.mdx +0 -43
  40. package/mintlify-docs/ai-tools/cursor.mdx +0 -39
  41. package/mintlify-docs/ai-tools/windsurf.mdx +0 -39
  42. package/mintlify-docs/api-reference/core-types/agent-types.mdx +0 -110
  43. package/mintlify-docs/api-reference/core-types/analytics-types.mdx +0 -95
  44. package/mintlify-docs/api-reference/core-types/configuration-types.mdx +0 -83
  45. package/mintlify-docs/api-reference/core-types/evaluation-types.mdx +0 -106
  46. package/mintlify-docs/api-reference/core-types/job-types.mdx +0 -135
  47. package/mintlify-docs/api-reference/core-types/overview.mdx +0 -73
  48. package/mintlify-docs/api-reference/core-types/prompt-types.mdx +0 -102
  49. package/mintlify-docs/api-reference/core-types/rbac-types.mdx +0 -163
  50. package/mintlify-docs/api-reference/core-types/session-types.mdx +0 -77
  51. package/mintlify-docs/api-reference/core-types/user-management.mdx +0 -112
  52. package/mintlify-docs/api-reference/core-types/workflow-types.mdx +0 -88
  53. package/mintlify-docs/api-reference/core-types.mdx +0 -585
  54. package/mintlify-docs/api-reference/dynamic-types.mdx +0 -851
  55. package/mintlify-docs/api-reference/endpoint/create.mdx +0 -4
  56. package/mintlify-docs/api-reference/endpoint/delete.mdx +0 -4
  57. package/mintlify-docs/api-reference/endpoint/get.mdx +0 -4
  58. package/mintlify-docs/api-reference/endpoint/webhook.mdx +0 -4
  59. package/mintlify-docs/api-reference/introduction.mdx +0 -661
  60. package/mintlify-docs/api-reference/mutations.mdx +0 -1012
  61. package/mintlify-docs/api-reference/openapi.json +0 -217
  62. package/mintlify-docs/api-reference/queries.mdx +0 -1154
  63. package/mintlify-docs/backend/introduction.mdx +0 -218
  64. package/mintlify-docs/changelog.mdx +0 -387
  65. package/mintlify-docs/community-edition.mdx +0 -304
  66. package/mintlify-docs/core/exulu-agent/api-reference.mdx +0 -894
  67. package/mintlify-docs/core/exulu-agent/configuration.mdx +0 -690
  68. package/mintlify-docs/core/exulu-agent/introduction.mdx +0 -552
  69. package/mintlify-docs/core/exulu-app/api-reference.mdx +0 -481
  70. package/mintlify-docs/core/exulu-app/configuration.mdx +0 -319
  71. package/mintlify-docs/core/exulu-app/introduction.mdx +0 -117
  72. package/mintlify-docs/core/exulu-authentication.mdx +0 -810
  73. package/mintlify-docs/core/exulu-chunkers/api-reference.mdx +0 -1011
  74. package/mintlify-docs/core/exulu-chunkers/configuration.mdx +0 -596
  75. package/mintlify-docs/core/exulu-chunkers/introduction.mdx +0 -403
  76. package/mintlify-docs/core/exulu-context/api-reference.mdx +0 -911
  77. package/mintlify-docs/core/exulu-context/configuration.mdx +0 -648
  78. package/mintlify-docs/core/exulu-context/introduction.mdx +0 -394
  79. package/mintlify-docs/core/exulu-database.mdx +0 -811
  80. package/mintlify-docs/core/exulu-default-agents.mdx +0 -545
  81. package/mintlify-docs/core/exulu-eval/api-reference.mdx +0 -772
  82. package/mintlify-docs/core/exulu-eval/configuration.mdx +0 -680
  83. package/mintlify-docs/core/exulu-eval/introduction.mdx +0 -459
  84. package/mintlify-docs/core/exulu-logging.mdx +0 -464
  85. package/mintlify-docs/core/exulu-otel.mdx +0 -670
  86. package/mintlify-docs/core/exulu-queues/api-reference.mdx +0 -648
  87. package/mintlify-docs/core/exulu-queues/configuration.mdx +0 -650
  88. package/mintlify-docs/core/exulu-queues/introduction.mdx +0 -474
  89. package/mintlify-docs/core/exulu-reranker/api-reference.mdx +0 -630
  90. package/mintlify-docs/core/exulu-reranker/configuration.mdx +0 -663
  91. package/mintlify-docs/core/exulu-reranker/introduction.mdx +0 -516
  92. package/mintlify-docs/core/exulu-tool/api-reference.mdx +0 -723
  93. package/mintlify-docs/core/exulu-tool/configuration.mdx +0 -805
  94. package/mintlify-docs/core/exulu-tool/introduction.mdx +0 -539
  95. package/mintlify-docs/core/exulu-variables/api-reference.mdx +0 -699
  96. package/mintlify-docs/core/exulu-variables/configuration.mdx +0 -736
  97. package/mintlify-docs/core/exulu-variables/introduction.mdx +0 -511
  98. package/mintlify-docs/development.mdx +0 -94
  99. package/mintlify-docs/docs.json +0 -248
  100. package/mintlify-docs/enterprise-edition.mdx +0 -538
  101. package/mintlify-docs/essentials/code.mdx +0 -35
  102. package/mintlify-docs/essentials/images.mdx +0 -59
  103. package/mintlify-docs/essentials/markdown.mdx +0 -88
  104. package/mintlify-docs/essentials/navigation.mdx +0 -87
  105. package/mintlify-docs/essentials/reusable-snippets.mdx +0 -110
  106. package/mintlify-docs/essentials/settings.mdx +0 -318
  107. package/mintlify-docs/favicon.svg +0 -3
  108. package/mintlify-docs/frontend/introduction.mdx +0 -39
  109. package/mintlify-docs/getting-started.mdx +0 -267
  110. package/mintlify-docs/guides/custom-agent.mdx +0 -608
  111. package/mintlify-docs/guides/first-agent.mdx +0 -315
  112. package/mintlify-docs/images/admin_ui.png +0 -0
  113. package/mintlify-docs/images/contexts.png +0 -0
  114. package/mintlify-docs/images/create_agents.png +0 -0
  115. package/mintlify-docs/images/evals.png +0 -0
  116. package/mintlify-docs/images/graphql.png +0 -0
  117. package/mintlify-docs/images/graphql_api.png +0 -0
  118. package/mintlify-docs/images/hero-dark.png +0 -0
  119. package/mintlify-docs/images/hero-light.png +0 -0
  120. package/mintlify-docs/images/hero.png +0 -0
  121. package/mintlify-docs/images/knowledge_sources.png +0 -0
  122. package/mintlify-docs/images/mcp.png +0 -0
  123. package/mintlify-docs/images/scaling.png +0 -0
  124. package/mintlify-docs/index.mdx +0 -411
  125. package/mintlify-docs/logo/dark.svg +0 -9
  126. package/mintlify-docs/logo/light.svg +0 -9
  127. package/mintlify-docs/partners.mdx +0 -558
  128. package/mintlify-docs/products.mdx +0 -77
  129. package/mintlify-docs/snippets/snippet-intro.mdx +0 -4
  130. package/mintlify-docs/styles.css +0 -207
  131. package/ngrok.bash +0 -1
  132. package/ngrok.md +0 -6
  133. package/ngrok.yml +0 -10
  134. package/release.config.cjs +0 -15
  135. package/skills-lock.json +0 -10
  136. package/types/context-processor.ts +0 -45
  137. package/types/enums/eval-types.ts +0 -5
  138. package/types/enums/field-types.ts +0 -1
  139. package/types/enums/jobs.ts +0 -11
  140. package/types/enums/statistics.ts +0 -13
  141. package/types/exulu-table-definition.ts +0 -79
  142. package/types/file-types.ts +0 -18
  143. package/types/models/agent-session.ts +0 -27
  144. package/types/models/agent.ts +0 -68
  145. package/types/models/context.ts +0 -53
  146. package/types/models/embedding.ts +0 -17
  147. package/types/models/eval-run.ts +0 -40
  148. package/types/models/exulu-agent-tool-config.ts +0 -11
  149. package/types/models/item.ts +0 -21
  150. package/types/models/job.ts +0 -8
  151. package/types/models/project.ts +0 -16
  152. package/types/models/rate-limiter-rules.ts +0 -7
  153. package/types/models/test-case.ts +0 -25
  154. package/types/models/tool.ts +0 -9
  155. package/types/models/user-role.ts +0 -12
  156. package/types/models/user.ts +0 -20
  157. package/types/models/variable.ts +0 -8
  158. package/types/models/vector-methods.ts +0 -7
  159. package/types/provider-config.ts +0 -21
  160. package/types/queue-config.ts +0 -16
  161. package/types/rbac-rights-modes.ts +0 -1
  162. package/types/statistics.ts +0 -20
  163. package/types/workflow.ts +0 -31
  164. /package/ee/{documents → python/documents}/THIRD_PARTY_LICENSES/docling.txt +0 -0
  165. /package/ee/{documents/processing → python}/requirements.txt +0 -0
@@ -1,16 +0,0 @@
1
- export interface Project {
2
- id: string;
3
- name: string;
4
- description: string;
5
- custom_instructions: string;
6
- rights_mode?: 'private' | 'users' | 'roles' | 'public';
7
- created_by?: string;
8
- project_items?: string[]; // array of items as global ids ('<context_id>/<item_id>')
9
- RBAC?: {
10
- type?: string;
11
- users?: Array<{ id: string; rights: 'read' | 'write' }>;
12
- roles?: Array<{ id: string; rights: 'read' | 'write' }>;
13
- };
14
- createdAt?: string;
15
- updatedAt?: string;
16
- }
@@ -1,7 +0,0 @@
1
- export interface RateLimiterRule {
2
- name?: string; // optional, if not provided the rate limiter uses the agent id for the queue name
3
- rate_limit: {
4
- time: number; // time until usage expires in seconds
5
- limit: number;
6
- };
7
- }
@@ -1,25 +0,0 @@
1
- import { type UIMessage } from "ai"
2
-
3
- export interface TestCase {
4
- id: string
5
- name: string
6
- description?: string
7
- inputs: UIMessage[]
8
- expected_output: string
9
- expected_tools?: string[]
10
- expected_knowledge_sources?: string[]
11
- expected_agent_tools?: string[]
12
- createdAt: string
13
- updatedAt: string
14
- }
15
-
16
- export interface TestCasePagination {
17
- pageInfo: {
18
- pageCount: number
19
- itemCount: number
20
- currentPage: number
21
- hasPreviousPage: boolean
22
- hasNextPage: boolean
23
- }
24
- items: TestCase[]
25
- }
@@ -1,9 +0,0 @@
1
- export interface Tool {
2
- id: string;
3
- name: string;
4
- description: string;
5
- type: string;
6
- inputSchema: any;
7
- outputSchema: any;
8
- category: string;
9
- }
@@ -1,12 +0,0 @@
1
- export type UserRole = {
2
- id?: string;
3
- name?: string;
4
- agents?: "read" | "write" | null;
5
- workflows?: "read" | "write" | null;
6
- variables?: "read" | "write" | null;
7
- users?: "read" | "write" | null;
8
- api?: "read" | "write" | null;
9
- evals?: "read" | "write" | null;
10
- createdAt?: string;
11
- updatedAt?: string;
12
- };
@@ -1,20 +0,0 @@
1
- export type User = {
2
- id: number;
3
- firstname?: string;
4
- lastname?: string;
5
- email: string;
6
- emailVerified?: string;
7
- type?: "api" | "user"
8
- anthropic_token?: string;
9
- super_admin?: boolean;
10
- favourite_agents?: string[];
11
- role: {
12
- id: string;
13
- name: string;
14
- agents: "read" | "write";
15
- evals: "read" | "write";
16
- workflows: "read" | "write";
17
- variables: "read" | "write";
18
- users: "read" | "write";
19
- };
20
- };
@@ -1,8 +0,0 @@
1
- export interface Variable {
2
- id: string;
3
- name: string;
4
- value: string;
5
- encrypted: boolean;
6
- createdAt: string;
7
- updatedAt: string;
8
- }
@@ -1,7 +0,0 @@
1
- export const VectorMethodEnum = {
2
- "cosineDistance": "cosineDistance",
3
- "hybridSearch": "hybridSearch",
4
- "tsvector": "tsvector"
5
- } as const;
6
-
7
- export type VectorMethod = (typeof VectorMethodEnum)[keyof typeof VectorMethodEnum];
@@ -1,21 +0,0 @@
1
- import { type LanguageModel } from "ai";
2
-
3
- export type ExuluProviderConfig = {
4
- name: string;
5
- instructions: string;
6
- model: {
7
- create: ({ apiKey }: { apiKey?: string | undefined }) => LanguageModel;
8
- };
9
- custom?: {
10
- name: string;
11
- description: string;
12
- }[];
13
- memory?: {
14
- lastMessages: number;
15
- vector: boolean;
16
- semanticRecall: {
17
- topK: number;
18
- messageRange: number;
19
- };
20
- };
21
- };
@@ -1,16 +0,0 @@
1
- import { Queue } from "bullmq";
2
-
3
- export type ExuluQueueConfig = {
4
- queue: Queue;
5
- ratelimit: number;
6
- timeoutInSeconds?: number; // 3 minutes default
7
- concurrency: {
8
- worker: number;
9
- queue: number;
10
- };
11
- retries?: number;
12
- backoff?: {
13
- type: "exponential" | "linear";
14
- delay: number; // in milliseconds
15
- };
16
- };
@@ -1 +0,0 @@
1
- export type ExuluRightsMode = "private" | "users" | "roles" | "public"; /* | "projects" */
@@ -1,20 +0,0 @@
1
- import type { STATISTICS_TYPE } from "./enums/statistics";
2
-
3
- export type ExuluStatisticParams = Omit<ExuluStatistic, "total" | "name" | "type">;
4
-
5
- export type ExuluStatistic = {
6
- name: string;
7
- label: string;
8
- type: STATISTICS_TYPE;
9
- trigger: STATISTICS_LABELS;
10
- total: number;
11
- };
12
-
13
- export type STATISTICS_LABELS =
14
- | "tool"
15
- | "agent"
16
- | "flow"
17
- | "api"
18
- | "claude-code"
19
- | "user"
20
- | "processor";
package/types/workflow.ts DELETED
@@ -1,31 +0,0 @@
1
- import type { ExuluRightsMode } from "./rbac-rights-modes";
2
-
3
- // Workflows in Exulu are "template conversations"
4
- // that contain variables that can be set on each
5
- // invocation. Basically they are a set of UIMessages
6
- // that get run in the background on invocation instead
7
- // of manually in a chat session.
8
- export interface ExuluWorkflow {
9
- id: string;
10
- name: string;
11
- description?: string;
12
- rights_mode?: ExuluRightsMode;
13
- RBAC?: {
14
- users?: Array<{ id: string; rights: "read" | "write" }>;
15
- roles?: Array<{ id: string; rights: "read" | "write" }>;
16
- };
17
- created_by: number;
18
- createdAt: string;
19
- updatedAt: string;
20
- agent: string;
21
- steps_json?: WorkflowStep[];
22
- }
23
-
24
- interface WorkflowStep {
25
- id: string;
26
- type: "user" | "assistant" | "tool";
27
- content?: string;
28
- contentExample?: string;
29
- toolName?: string;
30
- variablesUsed?: string[];
31
- }