@burdenoff/microfe-botmanor 2026.1116.1 → 2026.1117.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 (31) hide show
  1. package/dist/botlit/hooks/internal/workspaceGateway.js +33 -32
  2. package/dist/botlit/hooks/internal/workspaceGateway.js.map +1 -1
  3. package/dist/botlit/hooks/useAgents.d.ts +3 -1
  4. package/dist/botlit/hooks/useAgents.js +5 -4
  5. package/dist/botlit/hooks/useAgents.js.map +1 -1
  6. package/dist/botlit/hooks/useBotAgents.d.ts +12 -0
  7. package/dist/botlit/hooks/useBotAgents.js +54 -28
  8. package/dist/botlit/hooks/useBotAgents.js.map +1 -1
  9. package/dist/botlit/hooks/useKnowledgeBases.d.ts +13 -0
  10. package/dist/botlit/hooks/useKnowledgeBases.js +76 -53
  11. package/dist/botlit/hooks/useKnowledgeBases.js.map +1 -1
  12. package/dist/botlit/pages/AgentBuilderPage.js +229 -213
  13. package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
  14. package/dist/botlit/pages/AgentDetailPage.js +408 -379
  15. package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
  16. package/dist/botlit/pages/KnowledgeBaseDetailPage.js +519 -265
  17. package/dist/botlit/pages/KnowledgeBaseDetailPage.js.map +1 -1
  18. package/dist/botlit/pages/KnowledgeBasesPage.js +269 -130
  19. package/dist/botlit/pages/KnowledgeBasesPage.js.map +1 -1
  20. package/dist/botlit/utils/kbDelete.d.ts +5 -0
  21. package/dist/botlit/utils/kbDelete.js +11 -0
  22. package/dist/botlit/utils/kbDelete.js.map +1 -0
  23. package/dist/botlit/utils/kbSettings.d.ts +41 -0
  24. package/dist/botlit/utils/kbSettings.js +60 -0
  25. package/dist/botlit/utils/kbSettings.js.map +1 -0
  26. package/dist/generated/wspace-operations.d.ts +71 -0
  27. package/dist/generated/wspace-operations.js +60 -48
  28. package/dist/generated/wspace-operations.js.map +1 -1
  29. package/dist/generated/wspace-types.d.ts +23 -0
  30. package/dist/generated/wspace-types.js.map +1 -1
  31. package/package.json +10 -12
@@ -0,0 +1,60 @@
1
+ // src/botlit/utils/kbSettings.ts
2
+ var e = {
3
+ min: 1,
4
+ max: 8e3
5
+ }, t = {
6
+ nameRequired: "Enter a name for the knowledge base.",
7
+ modelRequired: "Choose an embedding model.",
8
+ chunkSizeRange: `Chunk size must be a whole number from ${e.min} to ${e.max}.`,
9
+ chunkOverlapInvalid: "Chunk overlap must be a whole number, 0 or more.",
10
+ chunkOverlapTooLarge: "Chunk overlap must be smaller than the chunk size."
11
+ };
12
+ function n(e) {
13
+ let t = e.trim();
14
+ return t === "" ? void 0 : Number(t);
15
+ }
16
+ function r(t, r) {
17
+ let i = {};
18
+ t.name.trim() === "" && (i.name = "nameRequired"), r === "create" && t.embeddingModel === "" && (i.embeddingModel = "modelRequired");
19
+ let a = n(t.chunkSize), o = n(t.chunkOverlap), s = r === "create", c = a ?? 512;
20
+ return (a === void 0 && !s || !Number.isInteger(c) || c < e.min || c > e.max) && (i.chunkSize = "chunkSizeRange"), o === void 0 ? s || (i.chunkOverlap = "chunkOverlapInvalid") : !Number.isInteger(o) || o < 0 ? i.chunkOverlap = "chunkOverlapInvalid" : !i.chunkSize && o >= c && (i.chunkOverlap = "chunkOverlapTooLarge"), i;
21
+ }
22
+ function i(e) {
23
+ switch (e.toUpperCase()) {
24
+ case "READY": return {
25
+ key: "ready",
26
+ fallback: "Ready to search. Agents can answer from it."
27
+ };
28
+ case "EMPTY": return {
29
+ key: "empty",
30
+ fallback: "No documents are indexed yet. Agents cannot answer from it until there are."
31
+ };
32
+ case "INDEXING": return {
33
+ key: "indexing",
34
+ fallback: "Documents are being indexed. Agents cannot answer from it until this finishes."
35
+ };
36
+ case "REBUILDING": return {
37
+ key: "rebuilding",
38
+ fallback: "The index is being rebuilt. Agents cannot answer from it until this finishes."
39
+ };
40
+ case "FAILED": return {
41
+ key: "failed",
42
+ fallback: "Indexing failed. Rebuild the index or remove the document that failed."
43
+ };
44
+ default: return {
45
+ key: "unknown",
46
+ fallback: "Status unknown."
47
+ };
48
+ }
49
+ }
50
+ function a(e) {
51
+ let t = (e ?? "").toUpperCase();
52
+ return t === "INDEXING" || t === "REBUILDING";
53
+ }
54
+ function o(e) {
55
+ let t = (e ?? "").toUpperCase();
56
+ return t === "PENDING" || t === "PROCESSING" || t === "INDEXING";
57
+ }
58
+ export { e as KB_CHUNK_SIZE_RANGE, t as KB_FIELD_MESSAGES, i as indexStatusHelp, o as isDocumentBusy, a as isIndexBusy, n as parseKbNumber, r as validateKbForm };
59
+
60
+ //# sourceMappingURL=kbSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kbSettings.js","names":["KB_CHUNK_SIZE_RANGE","KB_FIELD_MESSAGES","parseKbNumber","trimmed","text","validateKbForm","errors","values","mode","givenSize","givenOverlap","blankOk","size","indexStatusHelp","status","isIndexBusy","value","isDocumentBusy"],"sources":["../../../src/botlit/utils/kbSettings.ts"],"sourcesContent":["/**\n * Knowledge base form rules (BOFF-12470, BOFF-12477)\n * @module botlit/utils\n *\n * What valid chunk settings are, mirrored from `wspace-botmanor-svc`\n * (`knowledge-bases/kb-settings.ts`), so the form and the server never disagree.\n * Chunk size is counted in approximate tokens. An overlap of 0 is a real value.\n */\n\nexport const KB_CHUNK_SIZE_RANGE = { min: 1, max: 8000 } as const;\nexport const KB_DEFAULT_CHUNK_SIZE = 512;\nexport const KB_DEFAULT_CHUNK_OVERLAP = 50;\n\nexport type KbFieldError =\n | 'nameRequired'\n | 'modelRequired'\n | 'chunkSizeRange'\n | 'chunkOverlapInvalid'\n | 'chunkOverlapTooLarge';\n\nexport interface KbFormValues {\n name: string;\n embeddingModel: string;\n chunkSize: string;\n chunkOverlap: string;\n}\n\nexport type KbFormErrors = Partial<Record<keyof KbFormValues, KbFieldError>>;\n\n/** English fallbacks, keyed so callers translate through `useTr`. */\nexport const KB_FIELD_MESSAGES: Record<KbFieldError, string> = {\n nameRequired: 'Enter a name for the knowledge base.',\n modelRequired: 'Choose an embedding model.',\n chunkSizeRange: `Chunk size must be a whole number from ${KB_CHUNK_SIZE_RANGE.min} to ${KB_CHUNK_SIZE_RANGE.max}.`,\n chunkOverlapInvalid: 'Chunk overlap must be a whole number, 0 or more.',\n chunkOverlapTooLarge: 'Chunk overlap must be smaller than the chunk size.',\n};\n\n/** `undefined` for a blank field; NaN for text that is not a number, so it can be refused. */\nexport function parseKbNumber(text: string): number | undefined {\n const trimmed = text.trim();\n return trimmed === '' ? undefined : Number(trimmed);\n}\n\n/**\n * Validates the form. On create a blank chunk field means \"use the default\" (the\n * field shows it); on edit a blank field is an error, because \"keep the previous\n * value\" is exactly the silent behaviour this replaces.\n */\nexport function validateKbForm(values: KbFormValues, mode: 'create' | 'edit'): KbFormErrors {\n const errors: KbFormErrors = {};\n if (values.name.trim() === '') errors.name = 'nameRequired';\n if (mode === 'create' && values.embeddingModel === '') errors.embeddingModel = 'modelRequired';\n\n const givenSize = parseKbNumber(values.chunkSize);\n const givenOverlap = parseKbNumber(values.chunkOverlap);\n const blankOk = mode === 'create';\n\n // A blank size on create is the default one.\n const size = givenSize ?? KB_DEFAULT_CHUNK_SIZE;\n if (\n (givenSize === undefined && !blankOk) ||\n !Number.isInteger(size) ||\n size < KB_CHUNK_SIZE_RANGE.min ||\n size > KB_CHUNK_SIZE_RANGE.max\n ) {\n errors.chunkSize = 'chunkSizeRange';\n }\n\n if (givenOverlap === undefined) {\n if (!blankOk) errors.chunkOverlap = 'chunkOverlapInvalid';\n } else if (!Number.isInteger(givenOverlap) || givenOverlap < 0) {\n errors.chunkOverlap = 'chunkOverlapInvalid';\n } else if (!errors.chunkSize && givenOverlap >= size) {\n errors.chunkOverlap = 'chunkOverlapTooLarge';\n }\n return errors;\n}\n\n/** What a knowledge base's index status means, so a badge is never the whole explanation. */\nexport function indexStatusHelp(status: string): { key: string; fallback: string } {\n switch (status.toUpperCase()) {\n case 'READY':\n return { key: 'ready', fallback: 'Ready to search. Agents can answer from it.' };\n case 'EMPTY':\n return {\n key: 'empty',\n fallback: 'No documents are indexed yet. Agents cannot answer from it until there are.',\n };\n case 'INDEXING':\n return {\n key: 'indexing',\n fallback: 'Documents are being indexed. Agents cannot answer from it until this finishes.',\n };\n case 'REBUILDING':\n return {\n key: 'rebuilding',\n fallback: 'The index is being rebuilt. Agents cannot answer from it until this finishes.',\n };\n case 'FAILED':\n return {\n key: 'failed',\n fallback: 'Indexing failed. Rebuild the index or remove the document that failed.',\n };\n default:\n return { key: 'unknown', fallback: 'Status unknown.' };\n }\n}\n\n/** Index statuses that mean work is still running, so the page keeps refreshing. */\nexport function isIndexBusy(status: string | null | undefined): boolean {\n const value = (status ?? '').toUpperCase();\n return value === 'INDEXING' || value === 'REBUILDING';\n}\n\n/** Document statuses that mean the document is still being processed. */\nexport function isDocumentBusy(status: string | null | undefined): boolean {\n const value = (status ?? '').toUpperCase();\n return value === 'PENDING' || value === 'PROCESSING' || value === 'INDEXING';\n}\n"],"mappings":";AASA,IAAaA,IAAsB;CAAE,KAAK;CAAG,KAAK;AAAK,GAqB1CC,IAAkD;CAC7D,cAAc;CACd,eAAe;CACf,gBAAgB,0CAA0CD,EAAoB,IAAI,MAAMA,EAAoB,IAAI;CAChH,qBAAqB;CACrB,sBAAsB;AACxB;AAGA,SAAgBE,EAAc,GAAkC;CAC9D,IAAMC,IAAUC,EAAK,KAAK;CAC1B,OAAOD,MAAY,KAAK,KAAA,IAAY,OAAOA,CAAO;AACpD;AAOA,SAAgBE,EAAe,GAAsB,GAAuC;CAC1F,IAAMC,IAAuB,CAAC;CAE9B,AADIC,EAAO,KAAK,KAAK,MAAM,OAAI,EAAO,OAAO,iBACzCC,MAAS,YAAYD,EAAO,mBAAmB,OAAI,EAAO,iBAAiB;CAE/E,IAAME,IAAYP,EAAcK,EAAO,SAAS,GAC1CG,IAAeR,EAAcK,EAAO,YAAY,GAChDI,IAAUH,MAAS,UAGnBI,IAAOH,KAAA;CAiBb,QAfGA,MAAc,KAAA,KAAa,CAACE,KAC7B,CAAC,OAAO,UAAUC,CAAI,KACtBA,IAAOZ,EAAoB,OAC3BY,IAAOZ,EAAoB,SAE3B,EAAO,YAAY,mBAGjBU,MAAiB,KAAA,IACdC,MAAS,EAAO,eAAe,yBAC3B,CAAC,OAAO,UAAUD,CAAY,KAAKA,IAAe,IAC3D,EAAO,eAAe,wBACb,CAACJ,EAAO,aAAaI,KAAgBE,MAC9C,EAAO,eAAe,yBAEjBN;AACT;AAGA,SAAgBO,EAAgB,GAAmD;CACjF,QAAQC,EAAO,YAAY,GAA3B;EACE,KAAK,SACH,OAAO;GAAE,KAAK;GAAS,UAAU;EAA8C;EACjF,KAAK,SACH,OAAO;GACL,KAAK;GACL,UAAU;EACZ;EACF,KAAK,YACH,OAAO;GACL,KAAK;GACL,UAAU;EACZ;EACF,KAAK,cACH,OAAO;GACL,KAAK;GACL,UAAU;EACZ;EACF,KAAK,UACH,OAAO;GACL,KAAK;GACL,UAAU;EACZ;EACF,SACE,OAAO;GAAE,KAAK;GAAW,UAAU;EAAkB;CACzD;AACF;AAGA,SAAgBC,EAAY,GAA4C;CACtE,IAAMC,KAASF,KAAU,GAAA,CAAI,YAAY;CACzC,OAAOE,MAAU,cAAcA,MAAU;AAC3C;AAGA,SAAgBC,EAAe,GAA4C;CACzE,IAAMD,KAASF,KAAU,GAAA,CAAI,YAAY;CACzC,OAAOE,MAAU,aAAaA,MAAU,gBAAgBA,MAAU;AACpE"}
@@ -1938,6 +1938,24 @@ export type RebuildKnowledgeBaseIndexMutationVariables = Exact<{
1938
1938
  export type RebuildKnowledgeBaseIndexMutation = {
1939
1939
  rebuildKnowledgeBaseIndex: boolean;
1940
1940
  };
1941
+ export type RemoveKnowledgeDocumentMutationVariables = Exact<{
1942
+ id: string | number;
1943
+ }>;
1944
+ export type RemoveKnowledgeDocumentMutation = {
1945
+ removeKnowledgeDocument: boolean;
1946
+ };
1947
+ export type GetKnowledgeBaseUsageQueryVariables = Exact<{
1948
+ id: string | number;
1949
+ }>;
1950
+ export type GetKnowledgeBaseUsageQuery = {
1951
+ getKnowledgeBaseUsage: {
1952
+ agents: Array<{
1953
+ id: string;
1954
+ name: string;
1955
+ status: string;
1956
+ }>;
1957
+ };
1958
+ };
1941
1959
  export type ListBotmanorLlmProvidersQueryVariables = Exact<{
1942
1960
  filters?: Types.BotmanorLlmProviderFilterInput | null | undefined;
1943
1961
  pagination?: Types.PaginationInput | null | undefined;
@@ -4620,6 +4638,59 @@ export declare function useRebuildKnowledgeBaseIndexMutation(baseOptions?: Apoll
4620
4638
  export type RebuildKnowledgeBaseIndexMutationHookResult = ReturnType<typeof useRebuildKnowledgeBaseIndexMutation>;
4621
4639
  export type RebuildKnowledgeBaseIndexMutationResult = Apollo.MutationResult<Types.RebuildKnowledgeBaseIndexMutation>;
4622
4640
  export type RebuildKnowledgeBaseIndexMutationOptions = Apollo.BaseMutationOptions<Types.RebuildKnowledgeBaseIndexMutation, Types.RebuildKnowledgeBaseIndexMutationVariables>;
4641
+ export declare const RemoveKnowledgeDocumentDocument: Apollo.DocumentNode;
4642
+ export type RemoveKnowledgeDocumentMutationFn = Apollo.MutationFunction<Types.RemoveKnowledgeDocumentMutation, Types.RemoveKnowledgeDocumentMutationVariables>;
4643
+ /**
4644
+ * __useRemoveKnowledgeDocumentMutation__
4645
+ *
4646
+ * To run a mutation, you first call `useRemoveKnowledgeDocumentMutation` within a React component and pass it any options that fit your needs.
4647
+ * When your component renders, `useRemoveKnowledgeDocumentMutation` returns a tuple that includes:
4648
+ * - A mutate function that you can call at any time to execute the mutation
4649
+ * - An object with fields that represent the current status of the mutation's execution
4650
+ *
4651
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
4652
+ *
4653
+ * @example
4654
+ * const [removeKnowledgeDocumentMutation, { data, loading, error }] = useRemoveKnowledgeDocumentMutation({
4655
+ * variables: {
4656
+ * id: // value for 'id'
4657
+ * },
4658
+ * });
4659
+ */
4660
+ export declare function useRemoveKnowledgeDocumentMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.RemoveKnowledgeDocumentMutation, Types.RemoveKnowledgeDocumentMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.RemoveKnowledgeDocumentMutation, any, Apollo.ApolloCache, undefined>;
4661
+ export type RemoveKnowledgeDocumentMutationHookResult = ReturnType<typeof useRemoveKnowledgeDocumentMutation>;
4662
+ export type RemoveKnowledgeDocumentMutationResult = Apollo.MutationResult<Types.RemoveKnowledgeDocumentMutation>;
4663
+ export type RemoveKnowledgeDocumentMutationOptions = Apollo.BaseMutationOptions<Types.RemoveKnowledgeDocumentMutation, Types.RemoveKnowledgeDocumentMutationVariables>;
4664
+ export declare const GetKnowledgeBaseUsageDocument: Apollo.DocumentNode;
4665
+ /**
4666
+ * __useGetKnowledgeBaseUsageQuery__
4667
+ *
4668
+ * To run a query within a React component, call `useGetKnowledgeBaseUsageQuery` and pass it any options that fit your needs.
4669
+ * When your component renders, `useGetKnowledgeBaseUsageQuery` returns an object from Apollo Client that contains loading, error, and data properties
4670
+ * you can use to render your UI.
4671
+ *
4672
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
4673
+ *
4674
+ * @example
4675
+ * const { data, loading, error } = useGetKnowledgeBaseUsageQuery({
4676
+ * variables: {
4677
+ * id: // value for 'id'
4678
+ * },
4679
+ * });
4680
+ */
4681
+ export declare function useGetKnowledgeBaseUsageQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetKnowledgeBaseUsageQuery, Types.GetKnowledgeBaseUsageQueryVariables> & ({
4682
+ variables: Types.GetKnowledgeBaseUsageQueryVariables;
4683
+ skip?: boolean;
4684
+ } | {
4685
+ skip: boolean;
4686
+ })): ApolloReactHooks.useQuery.Result<Types.GetKnowledgeBaseUsageQuery, Types.GetKnowledgeBaseUsageQueryVariables, "empty" | "complete" | "streaming", Types.GetKnowledgeBaseUsageQueryVariables, undefined>;
4687
+ export declare function useGetKnowledgeBaseUsageLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetKnowledgeBaseUsageQuery, Types.GetKnowledgeBaseUsageQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetKnowledgeBaseUsageQuery, Types.GetKnowledgeBaseUsageQueryVariables, "empty" | "complete" | "streaming", undefined>;
4688
+ export declare function useGetKnowledgeBaseUsageSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetKnowledgeBaseUsageQuery, Types.GetKnowledgeBaseUsageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetKnowledgeBaseUsageQuery, Types.GetKnowledgeBaseUsageQueryVariables>;
4689
+ export declare function useGetKnowledgeBaseUsageSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetKnowledgeBaseUsageQuery, Types.GetKnowledgeBaseUsageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetKnowledgeBaseUsageQuery | undefined, Types.GetKnowledgeBaseUsageQueryVariables>;
4690
+ export type GetKnowledgeBaseUsageQueryHookResult = ReturnType<typeof useGetKnowledgeBaseUsageQuery>;
4691
+ export type GetKnowledgeBaseUsageLazyQueryHookResult = ReturnType<typeof useGetKnowledgeBaseUsageLazyQuery>;
4692
+ export type GetKnowledgeBaseUsageSuspenseQueryHookResult = ReturnType<typeof useGetKnowledgeBaseUsageSuspenseQuery>;
4693
+ export type GetKnowledgeBaseUsageQueryResult = Apollo.QueryResult<Types.GetKnowledgeBaseUsageQuery, Types.GetKnowledgeBaseUsageQueryVariables>;
4623
4694
  export declare const ListBotmanorLlmProvidersDocument: Apollo.DocumentNode;
4624
4695
  /**
4625
4696
  * __useListBotmanorLlmProvidersQuery__
@@ -1067,17 +1067,29 @@ var F = e`
1067
1067
  workspaceId
1068
1068
  }
1069
1069
  }
1070
- `;
1071
- e`
1070
+ `, W = e`
1072
1071
  mutation deleteKnowledgeBase($id: ID!) {
1073
1072
  deleteKnowledgeBase(id: $id)
1074
1073
  }
1075
- `;
1076
- var W = e`
1074
+ `, G = e`
1077
1075
  mutation rebuildKnowledgeBaseIndex($knowledgeBaseId: ID!) {
1078
1076
  rebuildKnowledgeBaseIndex(knowledgeBaseId: $knowledgeBaseId)
1079
1077
  }
1080
- `, G = e`
1078
+ `, K = e`
1079
+ mutation removeKnowledgeDocument($id: ID!) {
1080
+ removeKnowledgeDocument(id: $id)
1081
+ }
1082
+ `, q = e`
1083
+ query getKnowledgeBaseUsage($id: ID!) {
1084
+ getKnowledgeBaseUsage(id: $id) {
1085
+ agents {
1086
+ id
1087
+ name
1088
+ status
1089
+ }
1090
+ }
1091
+ }
1092
+ `, J = e`
1081
1093
  query listBotmanorLLMProviders($filters: BotmanorLLMProviderFilterInput, $pagination: PaginationInput) {
1082
1094
  listBotmanorLLMProviders(filters: $filters, pagination: $pagination) {
1083
1095
  id
@@ -1115,7 +1127,7 @@ e`
1115
1127
  }
1116
1128
  }
1117
1129
  `;
1118
- var K = e`
1130
+ var Y = e`
1119
1131
  mutation createBotmanorLLMProvider($input: CreateBotmanorLLMProviderInput!) {
1120
1132
  createBotmanorLLMProvider(input: $input) {
1121
1133
  id
@@ -1129,7 +1141,7 @@ var K = e`
1129
1141
  workspaceId
1130
1142
  }
1131
1143
  }
1132
- `, q = e`
1144
+ `, X = e`
1133
1145
  mutation updateBotmanorLLMProvider($id: ID!, $input: UpdateBotmanorLLMProviderInput!) {
1134
1146
  updateBotmanorLLMProvider(id: $id, input: $input) {
1135
1147
  id
@@ -1151,7 +1163,7 @@ e`
1151
1163
  deleteLLMProvider(id: $id)
1152
1164
  }
1153
1165
  `;
1154
- var J = e`
1166
+ var Z = e`
1155
1167
  query listBotmanorLLMModels($filters: LLMModelFilterInput, $pagination: PaginationInput) {
1156
1168
  listBotmanorLLMModels(filters: $filters, pagination: $pagination) {
1157
1169
  id
@@ -1177,7 +1189,7 @@ e`
1177
1189
  testLlmConnection(id: $id)
1178
1190
  }
1179
1191
  `;
1180
- var Y = e`
1192
+ var Q = e`
1181
1193
  mutation createBotmanorLLMModel($input: CreateBotmanorLLMModelInput!) {
1182
1194
  createBotmanorLLMModel(input: $input) {
1183
1195
  id
@@ -1197,7 +1209,7 @@ var Y = e`
1197
1209
  updatedAt
1198
1210
  }
1199
1211
  }
1200
- `, X = e`
1212
+ `, $ = e`
1201
1213
  query GetMCPConnection($id: ID!) {
1202
1214
  getMCPConnection(id: $id) {
1203
1215
  config
@@ -1218,7 +1230,7 @@ var Y = e`
1218
1230
  workspaceId
1219
1231
  }
1220
1232
  }
1221
- `, Z = e`
1233
+ `, ee = e`
1222
1234
  query ListMCPConnections($filters: MCPConnectionFilterInput, $pagination: PaginationInput) {
1223
1235
  listMCPConnections(filters: $filters, pagination: $pagination) {
1224
1236
  config
@@ -1239,7 +1251,7 @@ var Y = e`
1239
1251
  workspaceId
1240
1252
  }
1241
1253
  }
1242
- `, Q = e`
1254
+ `, te = e`
1243
1255
  query ListMCPTools($connectionId: ID!) {
1244
1256
  listMCPTools(connectionId: $connectionId) {
1245
1257
  description
@@ -1249,7 +1261,7 @@ var Y = e`
1249
1261
  riskLevel
1250
1262
  }
1251
1263
  }
1252
- `, $ = e`
1264
+ `, ne = e`
1253
1265
  query ListMCPResources($connectionId: ID!) {
1254
1266
  listMCPResources(connectionId: $connectionId) {
1255
1267
  description
@@ -1258,7 +1270,7 @@ var Y = e`
1258
1270
  uri
1259
1271
  }
1260
1272
  }
1261
- `, ee = e`
1273
+ `, re = e`
1262
1274
  mutation CreateMCPConnection($input: CreateMCPConnectionInput!) {
1263
1275
  createMCPConnection(input: $input) {
1264
1276
  config
@@ -1279,7 +1291,7 @@ var Y = e`
1279
1291
  workspaceId
1280
1292
  }
1281
1293
  }
1282
- `, te = e`
1294
+ `, ie = e`
1283
1295
  mutation UpdateMCPConnection($id: ID!, $input: UpdateMCPConnectionInput!) {
1284
1296
  updateMCPConnection(id: $id, input: $input) {
1285
1297
  config
@@ -1300,11 +1312,11 @@ var Y = e`
1300
1312
  workspaceId
1301
1313
  }
1302
1314
  }
1303
- `, ne = e`
1315
+ `, ae = e`
1304
1316
  mutation DeleteMCPConnection($id: ID!) {
1305
1317
  deleteMCPConnection(id: $id)
1306
1318
  }
1307
- `, re = e`
1319
+ `, oe = e`
1308
1320
  mutation TestMCPConnection($id: ID!) {
1309
1321
  testMCPConnection(id: $id)
1310
1322
  }
@@ -1320,7 +1332,7 @@ e`
1320
1332
  }
1321
1333
  }
1322
1334
  `;
1323
- var ie = e`
1335
+ var se = e`
1324
1336
  mutation UpdateMCPTool($id: ID!, $input: UpdateMCPToolInput!) {
1325
1337
  updateMCPTool(id: $id, input: $input) {
1326
1338
  description
@@ -1341,7 +1353,7 @@ e`
1341
1353
  }
1342
1354
  }
1343
1355
  `;
1344
- var ae = e`
1356
+ var ce = e`
1345
1357
  query GetPolicy($id: ID!) {
1346
1358
  getPolicy(id: $id) {
1347
1359
  bucketId
@@ -1362,7 +1374,7 @@ var ae = e`
1362
1374
  workspaceId
1363
1375
  }
1364
1376
  }
1365
- `, oe = e`
1377
+ `, le = e`
1366
1378
  query ListPolicies($filters: PolicyFilterInput, $pagination: PaginationInput) {
1367
1379
  listPolicies(filters: $filters, pagination: $pagination) {
1368
1380
  bucketId
@@ -1383,7 +1395,7 @@ var ae = e`
1383
1395
  workspaceId
1384
1396
  }
1385
1397
  }
1386
- `, se = e`
1398
+ `, ue = e`
1387
1399
  mutation CreatePolicy($input: CreatePolicyInput!) {
1388
1400
  createPolicy(input: $input) {
1389
1401
  bucketId
@@ -1404,7 +1416,7 @@ var ae = e`
1404
1416
  workspaceId
1405
1417
  }
1406
1418
  }
1407
- `, ce = e`
1419
+ `, de = e`
1408
1420
  mutation UpdatePolicy($id: ID!, $input: UpdatePolicyInput!) {
1409
1421
  updatePolicy(id: $id, input: $input) {
1410
1422
  bucketId
@@ -1425,11 +1437,11 @@ var ae = e`
1425
1437
  workspaceId
1426
1438
  }
1427
1439
  }
1428
- `, le = e`
1440
+ `, fe = e`
1429
1441
  mutation DeletePolicy($id: ID!) {
1430
1442
  deletePolicy(id: $id)
1431
1443
  }
1432
- `, ue = e`
1444
+ `, pe = e`
1433
1445
  query GetPromptTemplate($id: ID!) {
1434
1446
  getPromptTemplate(id: $id) {
1435
1447
  bucketId
@@ -1479,7 +1491,7 @@ e`
1479
1491
  }
1480
1492
  }
1481
1493
  `;
1482
- var de = e`
1494
+ var me = e`
1483
1495
  query ListPromptTemplates($filters: PromptTemplateFilterInput, $pagination: PaginationInput) {
1484
1496
  listPromptTemplates(filters: $filters, pagination: $pagination) {
1485
1497
  bucketId
@@ -1503,7 +1515,7 @@ var de = e`
1503
1515
  workspaceId
1504
1516
  }
1505
1517
  }
1506
- `, fe = e`
1518
+ `, he = e`
1507
1519
  mutation CreatePromptTemplate($input: CreatePromptTemplateInput!) {
1508
1520
  createPromptTemplate(input: $input) {
1509
1521
  bucketId
@@ -1527,7 +1539,7 @@ var de = e`
1527
1539
  workspaceId
1528
1540
  }
1529
1541
  }
1530
- `, pe = e`
1542
+ `, ge = e`
1531
1543
  mutation UpdatePromptTemplate($id: ID!, $input: UpdatePromptTemplateInput!) {
1532
1544
  updatePromptTemplate(id: $id, input: $input) {
1533
1545
  bucketId
@@ -1551,7 +1563,7 @@ var de = e`
1551
1563
  workspaceId
1552
1564
  }
1553
1565
  }
1554
- `, me = e`
1566
+ `, _e = e`
1555
1567
  mutation DeletePromptTemplate($id: ID!) {
1556
1568
  deletePromptTemplate(id: $id)
1557
1569
  }
@@ -1581,11 +1593,11 @@ e`
1581
1593
  }
1582
1594
  }
1583
1595
  `;
1584
- var he = e`
1596
+ var ve = e`
1585
1597
  mutation RenderPromptTemplate($id: ID!, $variables: JSON) {
1586
1598
  renderPromptTemplate(id: $id, variables: $variables)
1587
1599
  }
1588
- `, ge = e`
1600
+ `, ye = e`
1589
1601
  query BotmanorRetentionStatus {
1590
1602
  botmanorRetentionStatus {
1591
1603
  executionDataRetentionDays
@@ -1606,7 +1618,7 @@ var he = e`
1606
1618
  }
1607
1619
  }
1608
1620
  }
1609
- `, _e = e`
1621
+ `, be = e`
1610
1622
  mutation ApplyBotmanorRetention {
1611
1623
  applyBotmanorRetention {
1612
1624
  id
@@ -1621,7 +1633,7 @@ var he = e`
1621
1633
  finishedAt
1622
1634
  }
1623
1635
  }
1624
- `, ve = e`
1636
+ `, xe = e`
1625
1637
  query GetRetrievalProfile($id: ID!) {
1626
1638
  getRetrievalProfile(id: $id) {
1627
1639
  bucketId
@@ -1656,7 +1668,7 @@ var he = e`
1656
1668
  workspaceId
1657
1669
  }
1658
1670
  }
1659
- `, ye = e`
1671
+ `, Se = e`
1660
1672
  query ListRetrievalProfiles($filters: RetrievalProfileFilterInput, $pagination: PaginationInput) {
1661
1673
  listRetrievalProfiles(filters: $filters, pagination: $pagination) {
1662
1674
  bucketId
@@ -1690,7 +1702,7 @@ var he = e`
1690
1702
  workspaceId
1691
1703
  }
1692
1704
  }
1693
- `, be = e`
1705
+ `, Ce = e`
1694
1706
  mutation CreateRetrievalProfile($input: CreateRetrievalProfileInput!) {
1695
1707
  createRetrievalProfile(input: $input) {
1696
1708
  bucketId
@@ -1725,7 +1737,7 @@ var he = e`
1725
1737
  workspaceId
1726
1738
  }
1727
1739
  }
1728
- `, xe = e`
1740
+ `, we = e`
1729
1741
  mutation UpdateRetrievalProfile($id: ID!, $input: UpdateRetrievalProfileInput!) {
1730
1742
  updateRetrievalProfile(id: $id, input: $input) {
1731
1743
  bucketId
@@ -1760,11 +1772,11 @@ var he = e`
1760
1772
  workspaceId
1761
1773
  }
1762
1774
  }
1763
- `, Se = e`
1775
+ `, Te = e`
1764
1776
  mutation DeleteRetrievalProfile($id: ID!) {
1765
1777
  deleteRetrievalProfile(id: $id)
1766
1778
  }
1767
- `, Ce = e`
1779
+ `, Ee = e`
1768
1780
  query GetSkill($id: ID!) {
1769
1781
  getSkill(id: $id) {
1770
1782
  bucketId
@@ -1789,7 +1801,7 @@ var he = e`
1789
1801
  workspaceId
1790
1802
  }
1791
1803
  }
1792
- `, we = e`
1804
+ `, De = e`
1793
1805
  query ListSkills($filters: SkillFilterInput, $pagination: PaginationInput) {
1794
1806
  listSkills(filters: $filters, pagination: $pagination) {
1795
1807
  bucketId
@@ -1814,7 +1826,7 @@ var he = e`
1814
1826
  workspaceId
1815
1827
  }
1816
1828
  }
1817
- `, Te = e`
1829
+ `, Oe = e`
1818
1830
  mutation CreateSkill($input: CreateSkillInput!) {
1819
1831
  createSkill(input: $input) {
1820
1832
  bucketId
@@ -1839,7 +1851,7 @@ var he = e`
1839
1851
  workspaceId
1840
1852
  }
1841
1853
  }
1842
- `, Ee = e`
1854
+ `, ke = e`
1843
1855
  mutation UpdateSkill($id: ID!, $input: UpdateSkillInput!) {
1844
1856
  updateSkill(id: $id, input: $input) {
1845
1857
  bucketId
@@ -1864,7 +1876,7 @@ var he = e`
1864
1876
  workspaceId
1865
1877
  }
1866
1878
  }
1867
- `, De = e`
1879
+ `, Ae = e`
1868
1880
  mutation DeleteSkill($id: ID!) {
1869
1881
  deleteSkill(id: $id)
1870
1882
  }
@@ -1876,13 +1888,13 @@ e`
1876
1888
  }
1877
1889
  }
1878
1890
  ${t}`;
1879
- var Oe = e`
1891
+ var je = e`
1880
1892
  query GetStorePackageBySlug($slug: String!) {
1881
1893
  getStorePackageBySlug(slug: $slug) {
1882
1894
  ...StorePackageFields
1883
1895
  }
1884
1896
  }
1885
- ${t}`, ke = e`
1897
+ ${t}`, Me = e`
1886
1898
  query ListStorePackages($filters: StorePackageFilterInput, $pagination: PaginationInput) {
1887
1899
  listStorePackages(filters: $filters, pagination: $pagination) {
1888
1900
  ...StorePackageFields
@@ -1897,28 +1909,28 @@ e`
1897
1909
  }
1898
1910
  ${n}
1899
1911
  ${t}`;
1900
- var Ae = e`
1912
+ var Ne = e`
1901
1913
  query ListInstalledPackages($filters: InstalledPackageFilterInput!, $pagination: PaginationInput) {
1902
1914
  listInstalledPackages(filters: $filters, pagination: $pagination) {
1903
1915
  ...InstalledPackageFields
1904
1916
  }
1905
1917
  }
1906
1918
  ${n}
1907
- ${t}`, je = e`
1919
+ ${t}`, Pe = e`
1908
1920
  mutation InstallPackage($input: InstallPackageInput!) {
1909
1921
  installPackage(input: $input) {
1910
1922
  ...InstalledPackageFields
1911
1923
  }
1912
1924
  }
1913
1925
  ${n}
1914
- ${t}`, Me = e`
1926
+ ${t}`, Fe = e`
1915
1927
  mutation UpdateInstalledPackage($id: ID!, $input: UpdateInstalledPackageInput!) {
1916
1928
  updateInstalledPackage(id: $id, input: $input) {
1917
1929
  ...InstalledPackageFields
1918
1930
  }
1919
1931
  }
1920
1932
  ${n}
1921
- ${t}`, Ne = e`
1933
+ ${t}`, Ie = e`
1922
1934
  mutation UninstallPackage($id: ID!) {
1923
1935
  uninstallPackage(id: $id)
1924
1936
  }
@@ -1931,6 +1943,6 @@ e`
1931
1943
  }
1932
1944
  ${n}
1933
1945
  ${t}`;
1934
- export { F as AcceptHandoffDocument, _e as ApplyBotmanorRetentionDocument, ge as BotmanorRetentionStatusDocument, p as ConfigureSupervisorDocument, a as CreateA2ARegistryEntryDocument, Y as CreateBotmanorLlmModelDocument, K as CreateBotmanorLlmProviderDocument, v as CreateBucketDocument, w as CreateChannelConnectorDocument, D as CreateChannelRouteDocument, j as CreateExecutionDocument, H as CreateKnowledgeBaseDocument, ee as CreateMcpConnectionDocument, se as CreatePolicyDocument, fe as CreatePromptTemplateDocument, be as CreateRetrievalProfileDocument, Te as CreateSkillDocument, s as DeleteA2ARegistryEntryDocument, b as DeleteBucketDocument, E as DeleteChannelConnectorDocument, O as DeleteChannelRouteDocument, ne as DeleteMcpConnectionDocument, le as DeletePolicyDocument, me as DeletePromptTemplateDocument, Se as DeleteRetrievalProfileDocument, De as DeleteSkillDocument, r as GetA2ARegistryEntryDocument, g as GetBucketDocument, x as GetChannelConnectorDocument, k as GetExecutionDocument, B as GetKnowledgeBaseDocument, X as GetMcpConnectionDocument, ae as GetPolicyDocument, ue as GetPromptTemplateDocument, ve as GetRetrievalProfileDocument, Ce as GetSkillDocument, Oe as GetStorePackageBySlugDocument, c as GetSupervisorConfigDocument, M as HandoffConfigDocument, N as HandoffQueueDocument, je as InstallPackageDocument, n as InstalledPackageFieldsFragmentDoc, i as ListA2ARegistryEntriesDocument, u as ListAiPredictionsDocument, J as ListBotmanorLlmModelsDocument, G as ListBotmanorLlmProvidersDocument, _ as ListBucketsDocument, S as ListChannelConnectorsDocument, C as ListChannelRoutesDocument, A as ListExecutionsDocument, Ae as ListInstalledPackagesDocument, z as ListKnowledgeBasesDocument, V as ListKnowledgeDocumentsDocument, Z as ListMcpConnectionsDocument, $ as ListMcpResourcesDocument, Q as ListMcpToolsDocument, oe as ListPoliciesDocument, de as ListPromptTemplatesDocument, ye as ListRetrievalProfilesDocument, we as ListSkillsDocument, ke as ListStorePackagesDocument, l as ListSupervisorRunsDocument, h as PauseBotmanorAgentForSupervisorDocument, W as RebuildKnowledgeBaseIndexDocument, m as RebuildKnowledgeBaseIndexForSupervisorDocument, R as RejectHandoffDocument, I as ReleaseHandoffDocument, he as RenderPromptTemplateDocument, L as ResolveHandoffDocument, f as RunSupervisorNowDocument, d as SetAiPredictionStatusDocument, t as StorePackageFieldsFragmentDoc, re as TestMcpConnectionDocument, Ne as UninstallPackageDocument, o as UpdateA2ARegistryEntryDocument, q as UpdateBotmanorLlmProviderDocument, y as UpdateBucketDocument, T as UpdateChannelConnectorDocument, Me as UpdateInstalledPackageDocument, U as UpdateKnowledgeBaseDocument, te as UpdateMcpConnectionDocument, ie as UpdateMcpToolDocument, ce as UpdatePolicyDocument, pe as UpdatePromptTemplateDocument, xe as UpdateRetrievalProfileDocument, Ee as UpdateSkillDocument, P as UpsertHandoffConfigDocument };
1946
+ export { F as AcceptHandoffDocument, be as ApplyBotmanorRetentionDocument, ye as BotmanorRetentionStatusDocument, p as ConfigureSupervisorDocument, a as CreateA2ARegistryEntryDocument, Q as CreateBotmanorLlmModelDocument, Y as CreateBotmanorLlmProviderDocument, v as CreateBucketDocument, w as CreateChannelConnectorDocument, D as CreateChannelRouteDocument, j as CreateExecutionDocument, H as CreateKnowledgeBaseDocument, re as CreateMcpConnectionDocument, ue as CreatePolicyDocument, he as CreatePromptTemplateDocument, Ce as CreateRetrievalProfileDocument, Oe as CreateSkillDocument, s as DeleteA2ARegistryEntryDocument, b as DeleteBucketDocument, E as DeleteChannelConnectorDocument, O as DeleteChannelRouteDocument, W as DeleteKnowledgeBaseDocument, ae as DeleteMcpConnectionDocument, fe as DeletePolicyDocument, _e as DeletePromptTemplateDocument, Te as DeleteRetrievalProfileDocument, Ae as DeleteSkillDocument, r as GetA2ARegistryEntryDocument, g as GetBucketDocument, x as GetChannelConnectorDocument, k as GetExecutionDocument, B as GetKnowledgeBaseDocument, q as GetKnowledgeBaseUsageDocument, $ as GetMcpConnectionDocument, ce as GetPolicyDocument, pe as GetPromptTemplateDocument, xe as GetRetrievalProfileDocument, Ee as GetSkillDocument, je as GetStorePackageBySlugDocument, c as GetSupervisorConfigDocument, M as HandoffConfigDocument, N as HandoffQueueDocument, Pe as InstallPackageDocument, n as InstalledPackageFieldsFragmentDoc, i as ListA2ARegistryEntriesDocument, u as ListAiPredictionsDocument, Z as ListBotmanorLlmModelsDocument, J as ListBotmanorLlmProvidersDocument, _ as ListBucketsDocument, S as ListChannelConnectorsDocument, C as ListChannelRoutesDocument, A as ListExecutionsDocument, Ne as ListInstalledPackagesDocument, z as ListKnowledgeBasesDocument, V as ListKnowledgeDocumentsDocument, ee as ListMcpConnectionsDocument, ne as ListMcpResourcesDocument, te as ListMcpToolsDocument, le as ListPoliciesDocument, me as ListPromptTemplatesDocument, Se as ListRetrievalProfilesDocument, De as ListSkillsDocument, Me as ListStorePackagesDocument, l as ListSupervisorRunsDocument, h as PauseBotmanorAgentForSupervisorDocument, G as RebuildKnowledgeBaseIndexDocument, m as RebuildKnowledgeBaseIndexForSupervisorDocument, R as RejectHandoffDocument, I as ReleaseHandoffDocument, K as RemoveKnowledgeDocumentDocument, ve as RenderPromptTemplateDocument, L as ResolveHandoffDocument, f as RunSupervisorNowDocument, d as SetAiPredictionStatusDocument, t as StorePackageFieldsFragmentDoc, oe as TestMcpConnectionDocument, Ie as UninstallPackageDocument, o as UpdateA2ARegistryEntryDocument, X as UpdateBotmanorLlmProviderDocument, y as UpdateBucketDocument, T as UpdateChannelConnectorDocument, Fe as UpdateInstalledPackageDocument, U as UpdateKnowledgeBaseDocument, ie as UpdateMcpConnectionDocument, se as UpdateMcpToolDocument, de as UpdatePolicyDocument, ge as UpdatePromptTemplateDocument, we as UpdateRetrievalProfileDocument, ke as UpdateSkillDocument, P as UpsertHandoffConfigDocument };
1935
1947
 
1936
1948
  //# sourceMappingURL=wspace-operations.js.map