@aleph-alpha/chat-kit 3.1.0 → 3.1.1
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.
- package/dist/composables/fileUpload/index.d.ts.map +1 -1
- package/dist/composables/fileUpload/useFileUploadWrapper.d.ts.map +1 -1
- package/dist/composables/index.js +1 -1
- package/dist/{index-THzZwfMU.js → index-CnuiV5vd.js} +2 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/composables/fileUpload/index.spec.ts +0 -5
- package/src/composables/fileUpload/index.ts +0 -1
- package/src/composables/fileUpload/useFileUploadWrapper.spec.ts +0 -1
- package/src/composables/fileUpload/useFileUploadWrapper.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/fileUpload/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAItE,eAAO,MAAM,2BAA2B,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/fileUpload/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAItE,eAAO,MAAM,2BAA2B,EAAE,oBAyFzC,CAAC;AAEF,QAAA,MAA2B,kCAAkC,+FACF,CAAC;AAE5D,OAAO,EAAE,kCAAkC,EAAE,4BAA4B,EAAE,CAAC;AAE5E,YAAY,EACV,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,0BAA0B,EAC1B,SAAS,EACT,UAAU,GACX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFileUploadWrapper.d.ts","sourceRoot":"","sources":["../../../src/composables/fileUpload/useFileUploadWrapper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAOV,oBAAoB,EACpB,sBAAsB,EAIvB,MAAM,SAAS,CAAC;AAiJjB,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,oBAAoB,GAC3B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"useFileUploadWrapper.d.ts","sourceRoot":"","sources":["../../../src/composables/fileUpload/useFileUploadWrapper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAOV,oBAAoB,EACpB,sBAAsB,EAIvB,MAAM,SAAS,CAAC;AAiJjB,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,oBAAoB,GAC3B,sBAAsB,CAqPxB"}
|
|
@@ -1342,11 +1342,10 @@ function createDocumentUploadProvider(config) {
|
|
|
1342
1342
|
let resolvedStoreId = null;
|
|
1343
1343
|
let resolvePromise = null;
|
|
1344
1344
|
async function createSearchStoreWithWorkflow() {
|
|
1345
|
-
const name =
|
|
1345
|
+
const name = `store-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}`;
|
|
1346
1346
|
const storeRes = await httpClient.post("search-stores", {
|
|
1347
1347
|
name,
|
|
1348
|
-
...searchStoreConfig
|
|
1349
|
-
metadata: { created_by: userId }
|
|
1348
|
+
...searchStoreConfig
|
|
1350
1349
|
});
|
|
1351
1350
|
const newStoreId = storeRes.id;
|
|
1352
1351
|
await httpClient.post(
|
|
@@ -1519,7 +1518,6 @@ function createDocumentUploadProvider(config) {
|
|
|
1519
1518
|
const WORKFLOW_ID = "my-doc-ai";
|
|
1520
1519
|
const defaultDocumentUploadConfig = {
|
|
1521
1520
|
baseUrl: "/file-upload",
|
|
1522
|
-
userId: "chat-user",
|
|
1523
1521
|
workflowId: WORKFLOW_ID,
|
|
1524
1522
|
searchStoreConfig: {
|
|
1525
1523
|
models: [
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u } from "./useMessageHandler-CMdy-lm0.js";
|
|
2
2
|
import { C, d, p, u as u2, a } from "./useChatKitLabels-CLsWWwgG.js";
|
|
3
|
-
import { S, c, d as d2, a as a2, u as u3, b, e, f } from "./index-
|
|
3
|
+
import { S, c, d as d2, a as a2, u as u3, b, e, f } from "./index-CnuiV5vd.js";
|
|
4
4
|
import { _, a as a3, b as b2, C as C2, c as c2, d as d3, e as e2, f as f2, g, h, i, j, k, l, m, n, o, p as p2, q, r, s, t, u as u4, v } from "./CkInput.vue_vue_type_script_setup_true_lang-DKzc21Yp.js";
|
|
5
5
|
export {
|
|
6
6
|
C as CHAT_KIT_LABELS,
|
package/package.json
CHANGED
|
@@ -29,10 +29,6 @@ describe('fileUpload index', () => {
|
|
|
29
29
|
expect(defaultDocumentUploadConfig.baseUrl).toBe('/file-upload');
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
it('uses the correct userId', () => {
|
|
33
|
-
expect(defaultDocumentUploadConfig.userId).toBe('chat-user');
|
|
34
|
-
});
|
|
35
|
-
|
|
36
32
|
it('uses the correct workflowId', () => {
|
|
37
33
|
expect(defaultDocumentUploadConfig.workflowId).toBe('my-doc-ai');
|
|
38
34
|
});
|
|
@@ -178,7 +174,6 @@ describe('fileUpload index', () => {
|
|
|
178
174
|
it('passes the config to createDocumentUploadProvider', () => {
|
|
179
175
|
const customConfig: DocumentUploadConfig = {
|
|
180
176
|
baseUrl: '/custom-url',
|
|
181
|
-
userId: 'custom-user',
|
|
182
177
|
workflowId: 'custom-workflow',
|
|
183
178
|
searchStoreConfig: {
|
|
184
179
|
models: [
|
|
@@ -183,11 +183,10 @@ export function createDocumentUploadProvider(
|
|
|
183
183
|
let resolvePromise: Promise<string> | null = null;
|
|
184
184
|
|
|
185
185
|
async function createSearchStoreWithWorkflow(): Promise<string> {
|
|
186
|
-
const name =
|
|
186
|
+
const name = `store-${new Date().toISOString().replace(/[:.]/g, '-')}`;
|
|
187
187
|
const storeRes = await httpClient.post<{ id: string }>('search-stores', {
|
|
188
188
|
name,
|
|
189
189
|
...searchStoreConfig,
|
|
190
|
-
metadata: { created_by: userId },
|
|
191
190
|
});
|
|
192
191
|
const newStoreId = storeRes.id;
|
|
193
192
|
|