@assistant-ui/react 0.7.49 → 0.7.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/runtimes/local/LocalRuntimeOptions.d.ts +2 -1
- package/dist/runtimes/local/LocalRuntimeOptions.d.ts.map +1 -1
- package/dist/runtimes/local/LocalRuntimeOptions.js +9 -2
- package/dist/runtimes/local/LocalRuntimeOptions.js.map +1 -1
- package/dist/runtimes/local/LocalRuntimeOptions.mjs +9 -2
- package/dist/runtimes/local/LocalRuntimeOptions.mjs.map +1 -1
- package/package.json +3 -3
- package/src/runtimes/local/LocalRuntimeOptions.tsx +8 -1
@@ -34,7 +34,8 @@ export declare const splitLocalRuntimeOptions: <T extends LocalRuntimeOptions>(o
|
|
34
34
|
speech?: SpeechSynthesisAdapter | undefined;
|
35
35
|
feedback?: FeedbackAdapter | undefined;
|
36
36
|
}, "chatModel"> | undefined;
|
37
|
+
unstable_shouldContinueIgnoreToolNames: string[] | undefined;
|
37
38
|
};
|
38
|
-
otherOptions: Omit<T, "adapters" | "maxSteps" | "initialMessages">;
|
39
|
+
otherOptions: Omit<T, "adapters" | "maxSteps" | "unstable_shouldContinueIgnoreToolNames" | "initialMessages">;
|
39
40
|
};
|
40
41
|
//# sourceMappingURL=LocalRuntimeOptions.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalRuntimeOptions.d.ts","sourceRoot":"","sources":["../../../src/runtimes/local/LocalRuntimeOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,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AAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE;QACR,SAAS,EAAE,gBAAgB,CAAC;QAC5B,OAAO,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;QAC3C,WAAW,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;QAC5C,MAAM,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;QAC5C,QAAQ,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;KACxC,CAAC;IAEF;;;OAGG;IACH,sCAAsC,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CAC/D,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,GAAG;IAC5E,eAAe,CAAC,EAAE,SAAS,iBAAiB,EAAE,GAAG,SAAS,CAAC;IAC3D,QAAQ,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,GAAG,SAAS,CAAC;CAC/E,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,mBAAmB,WAC3D,CAAC;;;;;uBArBG,gBAAgB;sBACjB,oBAAoB,GAAG,SAAS;0BAC5B,iBAAiB,GAAG,SAAS;qBAClC,sBAAsB,GAAG,SAAS;uBAChC,eAAe,GAAG,SAAS;;;;;CAoCzC,CAAC"}
|
@@ -24,12 +24,19 @@ __export(LocalRuntimeOptions_exports, {
|
|
24
24
|
});
|
25
25
|
module.exports = __toCommonJS(LocalRuntimeOptions_exports);
|
26
26
|
var splitLocalRuntimeOptions = (options) => {
|
27
|
-
const {
|
27
|
+
const {
|
28
|
+
initialMessages,
|
29
|
+
maxSteps,
|
30
|
+
adapters,
|
31
|
+
unstable_shouldContinueIgnoreToolNames,
|
32
|
+
...rest
|
33
|
+
} = options;
|
28
34
|
return {
|
29
35
|
localRuntimeOptions: {
|
30
36
|
initialMessages,
|
31
37
|
maxSteps,
|
32
|
-
adapters
|
38
|
+
adapters,
|
39
|
+
unstable_shouldContinueIgnoreToolNames
|
33
40
|
},
|
34
41
|
otherOptions: rest
|
35
42
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtimes/local/LocalRuntimeOptions.tsx"],"sourcesContent":["import { ThreadHistoryAdapter } from \"../adapters/thread-history/ThreadHistoryAdapter\";\nimport { AttachmentAdapter } from \"../adapters/attachment/AttachmentAdapter\";\nimport { ThreadMessageLike } from \"../external-store\";\nimport { FeedbackAdapter } from \"../adapters/feedback/FeedbackAdapter\";\nimport { SpeechSynthesisAdapter } from \"../adapters/speech/SpeechAdapterTypes\";\nimport { ChatModelAdapter } from \"./ChatModelAdapter\";\n\nexport type LocalRuntimeOptionsBase = {\n maxSteps?: number | undefined;\n adapters: {\n chatModel: ChatModelAdapter;\n history?: ThreadHistoryAdapter | undefined;\n attachments?: AttachmentAdapter | undefined;\n speech?: SpeechSynthesisAdapter | undefined;\n feedback?: FeedbackAdapter | undefined;\n };\n\n /**\n * @deprecated This is a temporary workaround for subgraph frontend function calls.\n * This feature will be removed in a future version without notice. DO NOT USE.\n */\n unstable_shouldContinueIgnoreToolNames?: string[] | undefined;\n};\n\n// TODO align LocalRuntimeOptions with LocalRuntimeOptionsBase\nexport type LocalRuntimeOptions = Omit<LocalRuntimeOptionsBase, \"adapters\"> & {\n initialMessages?: readonly ThreadMessageLike[] | undefined;\n adapters?: Omit<LocalRuntimeOptionsBase[\"adapters\"], \"chatModel\"> | undefined;\n};\n\nexport const splitLocalRuntimeOptions = <T extends LocalRuntimeOptions>(\n options: T,\n) => {\n const {
|
1
|
+
{"version":3,"sources":["../../../src/runtimes/local/LocalRuntimeOptions.tsx"],"sourcesContent":["import { ThreadHistoryAdapter } from \"../adapters/thread-history/ThreadHistoryAdapter\";\nimport { AttachmentAdapter } from \"../adapters/attachment/AttachmentAdapter\";\nimport { ThreadMessageLike } from \"../external-store\";\nimport { FeedbackAdapter } from \"../adapters/feedback/FeedbackAdapter\";\nimport { SpeechSynthesisAdapter } from \"../adapters/speech/SpeechAdapterTypes\";\nimport { ChatModelAdapter } from \"./ChatModelAdapter\";\n\nexport type LocalRuntimeOptionsBase = {\n maxSteps?: number | undefined;\n adapters: {\n chatModel: ChatModelAdapter;\n history?: ThreadHistoryAdapter | undefined;\n attachments?: AttachmentAdapter | undefined;\n speech?: SpeechSynthesisAdapter | undefined;\n feedback?: FeedbackAdapter | undefined;\n };\n\n /**\n * @deprecated This is a temporary workaround for subgraph frontend function calls.\n * This feature will be removed in a future version without notice. DO NOT USE.\n */\n unstable_shouldContinueIgnoreToolNames?: string[] | undefined;\n};\n\n// TODO align LocalRuntimeOptions with LocalRuntimeOptionsBase\nexport type LocalRuntimeOptions = Omit<LocalRuntimeOptionsBase, \"adapters\"> & {\n initialMessages?: readonly ThreadMessageLike[] | undefined;\n adapters?: Omit<LocalRuntimeOptionsBase[\"adapters\"], \"chatModel\"> | undefined;\n};\n\nexport const splitLocalRuntimeOptions = <T extends LocalRuntimeOptions>(\n options: T,\n) => {\n const {\n initialMessages,\n maxSteps,\n adapters,\n unstable_shouldContinueIgnoreToolNames,\n ...rest\n } = options;\n\n return {\n localRuntimeOptions: {\n initialMessages,\n maxSteps,\n adapters,\n unstable_shouldContinueIgnoreToolNames,\n },\n otherOptions: rest,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BO,IAAM,2BAA2B,CACtC,YACG;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AAEJ,SAAO;AAAA,IACL,qBAAqB;AAAA,MACnB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,cAAc;AAAA,EAChB;AACF;","names":[]}
|
@@ -1,11 +1,18 @@
|
|
1
1
|
// src/runtimes/local/LocalRuntimeOptions.tsx
|
2
2
|
var splitLocalRuntimeOptions = (options) => {
|
3
|
-
const {
|
3
|
+
const {
|
4
|
+
initialMessages,
|
5
|
+
maxSteps,
|
6
|
+
adapters,
|
7
|
+
unstable_shouldContinueIgnoreToolNames,
|
8
|
+
...rest
|
9
|
+
} = options;
|
4
10
|
return {
|
5
11
|
localRuntimeOptions: {
|
6
12
|
initialMessages,
|
7
13
|
maxSteps,
|
8
|
-
adapters
|
14
|
+
adapters,
|
15
|
+
unstable_shouldContinueIgnoreToolNames
|
9
16
|
},
|
10
17
|
otherOptions: rest
|
11
18
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/runtimes/local/LocalRuntimeOptions.tsx"],"sourcesContent":["import { ThreadHistoryAdapter } from \"../adapters/thread-history/ThreadHistoryAdapter\";\nimport { AttachmentAdapter } from \"../adapters/attachment/AttachmentAdapter\";\nimport { ThreadMessageLike } from \"../external-store\";\nimport { FeedbackAdapter } from \"../adapters/feedback/FeedbackAdapter\";\nimport { SpeechSynthesisAdapter } from \"../adapters/speech/SpeechAdapterTypes\";\nimport { ChatModelAdapter } from \"./ChatModelAdapter\";\n\nexport type LocalRuntimeOptionsBase = {\n maxSteps?: number | undefined;\n adapters: {\n chatModel: ChatModelAdapter;\n history?: ThreadHistoryAdapter | undefined;\n attachments?: AttachmentAdapter | undefined;\n speech?: SpeechSynthesisAdapter | undefined;\n feedback?: FeedbackAdapter | undefined;\n };\n\n /**\n * @deprecated This is a temporary workaround for subgraph frontend function calls.\n * This feature will be removed in a future version without notice. DO NOT USE.\n */\n unstable_shouldContinueIgnoreToolNames?: string[] | undefined;\n};\n\n// TODO align LocalRuntimeOptions with LocalRuntimeOptionsBase\nexport type LocalRuntimeOptions = Omit<LocalRuntimeOptionsBase, \"adapters\"> & {\n initialMessages?: readonly ThreadMessageLike[] | undefined;\n adapters?: Omit<LocalRuntimeOptionsBase[\"adapters\"], \"chatModel\"> | undefined;\n};\n\nexport const splitLocalRuntimeOptions = <T extends LocalRuntimeOptions>(\n options: T,\n) => {\n const {
|
1
|
+
{"version":3,"sources":["../../../src/runtimes/local/LocalRuntimeOptions.tsx"],"sourcesContent":["import { ThreadHistoryAdapter } from \"../adapters/thread-history/ThreadHistoryAdapter\";\nimport { AttachmentAdapter } from \"../adapters/attachment/AttachmentAdapter\";\nimport { ThreadMessageLike } from \"../external-store\";\nimport { FeedbackAdapter } from \"../adapters/feedback/FeedbackAdapter\";\nimport { SpeechSynthesisAdapter } from \"../adapters/speech/SpeechAdapterTypes\";\nimport { ChatModelAdapter } from \"./ChatModelAdapter\";\n\nexport type LocalRuntimeOptionsBase = {\n maxSteps?: number | undefined;\n adapters: {\n chatModel: ChatModelAdapter;\n history?: ThreadHistoryAdapter | undefined;\n attachments?: AttachmentAdapter | undefined;\n speech?: SpeechSynthesisAdapter | undefined;\n feedback?: FeedbackAdapter | undefined;\n };\n\n /**\n * @deprecated This is a temporary workaround for subgraph frontend function calls.\n * This feature will be removed in a future version without notice. DO NOT USE.\n */\n unstable_shouldContinueIgnoreToolNames?: string[] | undefined;\n};\n\n// TODO align LocalRuntimeOptions with LocalRuntimeOptionsBase\nexport type LocalRuntimeOptions = Omit<LocalRuntimeOptionsBase, \"adapters\"> & {\n initialMessages?: readonly ThreadMessageLike[] | undefined;\n adapters?: Omit<LocalRuntimeOptionsBase[\"adapters\"], \"chatModel\"> | undefined;\n};\n\nexport const splitLocalRuntimeOptions = <T extends LocalRuntimeOptions>(\n options: T,\n) => {\n const {\n initialMessages,\n maxSteps,\n adapters,\n unstable_shouldContinueIgnoreToolNames,\n ...rest\n } = options;\n\n return {\n localRuntimeOptions: {\n initialMessages,\n maxSteps,\n adapters,\n unstable_shouldContinueIgnoreToolNames,\n },\n otherOptions: rest,\n };\n};\n"],"mappings":";AA8BO,IAAM,2BAA2B,CACtC,YACG;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AAEJ,SAAO;AAAA,IACL,qBAAqB;AAAA,MACnB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,cAAc;AAAA,EAChB;AACF;","names":[]}
|
package/package.json
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
"conversational-ui",
|
30
30
|
"conversational-ai"
|
31
31
|
],
|
32
|
-
"version": "0.7.
|
32
|
+
"version": "0.7.50",
|
33
33
|
"license": "MIT",
|
34
34
|
"exports": {
|
35
35
|
".": {
|
@@ -117,9 +117,9 @@
|
|
117
117
|
"tailwindcss": "^3.4.17",
|
118
118
|
"tailwindcss-animate": "^1.0.7",
|
119
119
|
"tsx": "^4.19.2",
|
120
|
-
"@assistant-ui/tsbuildutils": "^0.0.1",
|
121
120
|
"@assistant-ui/tailwindcss-transformer": "0.1.0",
|
122
|
-
"@assistant-ui/tsconfig": "0.0.0"
|
121
|
+
"@assistant-ui/tsconfig": "0.0.0",
|
122
|
+
"@assistant-ui/tsbuildutils": "^0.0.1"
|
123
123
|
},
|
124
124
|
"publishConfig": {
|
125
125
|
"access": "public",
|
@@ -31,13 +31,20 @@ export type LocalRuntimeOptions = Omit<LocalRuntimeOptionsBase, "adapters"> & {
|
|
31
31
|
export const splitLocalRuntimeOptions = <T extends LocalRuntimeOptions>(
|
32
32
|
options: T,
|
33
33
|
) => {
|
34
|
-
const {
|
34
|
+
const {
|
35
|
+
initialMessages,
|
36
|
+
maxSteps,
|
37
|
+
adapters,
|
38
|
+
unstable_shouldContinueIgnoreToolNames,
|
39
|
+
...rest
|
40
|
+
} = options;
|
35
41
|
|
36
42
|
return {
|
37
43
|
localRuntimeOptions: {
|
38
44
|
initialMessages,
|
39
45
|
maxSteps,
|
40
46
|
adapters,
|
47
|
+
unstable_shouldContinueIgnoreToolNames,
|
41
48
|
},
|
42
49
|
otherOptions: rest,
|
43
50
|
};
|