@hina114514/chaite 1.9.6 → 1.9.7
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/{adapters-CIf_e4TX.mjs → adapters-B2n5lYRi.mjs} +2 -2
- package/dist/chunks/openai/{index.mjs-CE7SAzV0.mjs → index.mjs-D4ZfGFNk.mjs} +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{src-Biu4SIt6.mjs → src-DHDZlyre.mjs} +4 -4
- package/dist/{types-Cd68vIOz.mjs → types-G1zCyFOu.mjs} +2 -2
- package/frontend/build/index.html +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as init_adapters, f as createClient, g as AbstractClient, h as OpenAIClient, m as ClaudeClient, p as GeminiClient } from "./src-
|
|
1
|
+
import { d as init_adapters, f as createClient, g as AbstractClient, h as OpenAIClient, m as ClaudeClient, p as GeminiClient } from "./src-DHDZlyre.mjs";
|
|
2
2
|
import "./chunks/lop/index.mjs-BWbOMJZv.mjs";
|
|
3
3
|
import "./chunks/bluebird/index.mjs-D4zFjek8.mjs";
|
|
4
4
|
import "./chunks/mammoth/index.mjs-C9xwBIgf.mjs";
|
|
@@ -12,7 +12,7 @@ import "./chunks/@xmldom/xmldom/index.mjs-BARr5-gb.mjs";
|
|
|
12
12
|
import "./chunks/dingbat-to-unicode/index.mjs-DjR5pQCM.mjs";
|
|
13
13
|
import "./chunks/@karinjs/node-schedule/index.mjs-UoPXNUgp.mjs";
|
|
14
14
|
import "./chunks/chokidar/index.mjs-BvSuth5p.mjs";
|
|
15
|
-
import "./chunks/openai/index.mjs-
|
|
15
|
+
import "./chunks/openai/index.mjs-D4ZfGFNk.mjs";
|
|
16
16
|
import "./chunks/@anthropic-ai/sdk/index.mjs-BBdoshoG.mjs";
|
|
17
17
|
import "./chunks/accepts/index.mjs-BpfWQu4-.mjs";
|
|
18
18
|
import "./chunks/express/index.mjs-CHnhA_pr.mjs";
|
|
@@ -5282,7 +5282,6 @@ function addOutputText(rsp) {
|
|
|
5282
5282
|
rsp.output_text = texts.join("");
|
|
5283
5283
|
}
|
|
5284
5284
|
var init_ResponsesParser = __esm({ "node_modules/.pnpm/openai@5.23.2_ws@8.18.3/node_modules/openai/lib/ResponsesParser.mjs": (() => {
|
|
5285
|
-
init_error();
|
|
5286
5285
|
init_parser$1();
|
|
5287
5286
|
}) });
|
|
5288
5287
|
|
|
@@ -6673,6 +6672,8 @@ var init_client = __esm({ "node_modules/.pnpm/openai@5.23.2_ws@8.18.3/node_modul
|
|
|
6673
6672
|
//#endregion
|
|
6674
6673
|
//#region node_modules/.pnpm/openai@5.23.2_ws@8.18.3/node_modules/openai/azure.mjs
|
|
6675
6674
|
var init_azure = __esm({ "node_modules/.pnpm/openai@5.23.2_ws@8.18.3/node_modules/openai/azure.mjs": (() => {
|
|
6675
|
+
init_error();
|
|
6676
|
+
init_utils();
|
|
6676
6677
|
init_client();
|
|
6677
6678
|
}) });
|
|
6678
6679
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1567,7 +1567,7 @@ declare const PROCESSOR_TYPE_MAP: {
|
|
|
1567
1567
|
};
|
|
1568
1568
|
//#endregion
|
|
1569
1569
|
//#region src/version.d.ts
|
|
1570
|
-
declare const VERSION = "1.9.
|
|
1570
|
+
declare const VERSION = "1.9.7";
|
|
1571
1571
|
//#endregion
|
|
1572
1572
|
//#region src/controllers/index.d.ts
|
|
1573
1573
|
declare function createApp(configure?: (app: Application) => void): Application;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ChaiteStorage, A as FrontEndAuthHandler, B as VectorizerImpl, C as Channel, D as ExecutableShareableManager, E as ToolManager, F as PureTextFileParser, G as KVHistoryManager, H as RAGManager, I as DocxBufferParser, J as getKey, K as asyncLocalStorage, L as DocxFileParser, M as DEFAULT_PORT, N as GlobalConfig, O as NonExecutableShareableManager, P as PureTextBufferParser, Q as ChaiteResponse, R as PdfBufferParser, S as ChatPreset, T as DefaultCloudService, U as TextProcessor, V as AbstractVectorDatabase, W as InMemoryHistoryManager, X as useEvent, Y as saveAndLoadModule, Z as AbstractUserModeSelector, _ as TriggerManager, _t as AbstractShareable, a as EventTrigger, at as AbstractHistoryManager, b as ProcessorsManager, c as createApp, ct as DocumentFileParser, dt as ToolDTO, et as PostProcessor, f as createClient, ft as ToolsGroupDTO, g as AbstractClient, gt as MultipleKeyStrategyChoice, h as OpenAIClient, ht as DefaultLogger, i as CronTrigger, it as PROCESSOR_TYPE_MAP, j as DEFAULT_HOST, k as getLogger, l as runServer, lt as DocumentPathParser, m as ClaudeClient, mt as ChaiteContext, nt as ProcessorDTO, o as TriggerDTO, ot as SendMessageOption, p as GeminiClient, pt as BaseClientOptions, q as extractClassName, r as BaseTrigger, rt as CHANNEL_STATUS_MAP, s as Chaite, st as ChannelStatistics, t as init_src, tt as PreProcessor, u as VERSION, ut as CustomTool, v as ToolsGroupManager, w as DefaultChannelLoadBalancer, x as ChannelsManager, y as ChatPresetManager, z as PdfFileParser } from "./src-
|
|
1
|
+
import { $ as ChaiteStorage, A as FrontEndAuthHandler, B as VectorizerImpl, C as Channel, D as ExecutableShareableManager, E as ToolManager, F as PureTextFileParser, G as KVHistoryManager, H as RAGManager, I as DocxBufferParser, J as getKey, K as asyncLocalStorage, L as DocxFileParser, M as DEFAULT_PORT, N as GlobalConfig, O as NonExecutableShareableManager, P as PureTextBufferParser, Q as ChaiteResponse, R as PdfBufferParser, S as ChatPreset, T as DefaultCloudService, U as TextProcessor, V as AbstractVectorDatabase, W as InMemoryHistoryManager, X as useEvent, Y as saveAndLoadModule, Z as AbstractUserModeSelector, _ as TriggerManager, _t as AbstractShareable, a as EventTrigger, at as AbstractHistoryManager, b as ProcessorsManager, c as createApp, ct as DocumentFileParser, dt as ToolDTO, et as PostProcessor, f as createClient, ft as ToolsGroupDTO, g as AbstractClient, gt as MultipleKeyStrategyChoice, h as OpenAIClient, ht as DefaultLogger, i as CronTrigger, it as PROCESSOR_TYPE_MAP, j as DEFAULT_HOST, k as getLogger, l as runServer, lt as DocumentPathParser, m as ClaudeClient, mt as ChaiteContext, nt as ProcessorDTO, o as TriggerDTO, ot as SendMessageOption, p as GeminiClient, pt as BaseClientOptions, q as extractClassName, r as BaseTrigger, rt as CHANNEL_STATUS_MAP, s as Chaite, st as ChannelStatistics, t as init_src, tt as PreProcessor, u as VERSION, ut as CustomTool, v as ToolsGroupManager, w as DefaultChannelLoadBalancer, x as ChannelsManager, y as ChatPresetManager, z as PdfFileParser } from "./src-DHDZlyre.mjs";
|
|
2
2
|
import "./chunks/lop/index.mjs-BWbOMJZv.mjs";
|
|
3
3
|
import "./chunks/bluebird/index.mjs-D4zFjek8.mjs";
|
|
4
4
|
import "./chunks/mammoth/index.mjs-C9xwBIgf.mjs";
|
|
@@ -12,7 +12,7 @@ import "./chunks/@xmldom/xmldom/index.mjs-BARr5-gb.mjs";
|
|
|
12
12
|
import "./chunks/dingbat-to-unicode/index.mjs-DjR5pQCM.mjs";
|
|
13
13
|
import "./chunks/@karinjs/node-schedule/index.mjs-UoPXNUgp.mjs";
|
|
14
14
|
import "./chunks/chokidar/index.mjs-BvSuth5p.mjs";
|
|
15
|
-
import "./chunks/openai/index.mjs-
|
|
15
|
+
import "./chunks/openai/index.mjs-D4ZfGFNk.mjs";
|
|
16
16
|
import "./chunks/@anthropic-ai/sdk/index.mjs-BBdoshoG.mjs";
|
|
17
17
|
import "./chunks/accepts/index.mjs-BpfWQu4-.mjs";
|
|
18
18
|
import "./chunks/express/index.mjs-CHnhA_pr.mjs";
|
|
@@ -3,7 +3,7 @@ import { t as require_lib } from "./chunks/mammoth/index.mjs-C9xwBIgf.mjs";
|
|
|
3
3
|
import { i as init_node, n as GoogleGenAI, r as Type, t as FunctionCallingConfigMode } from "./chunks/@google/genai/index.mjs-CJMm4uh0.mjs";
|
|
4
4
|
import { n as src_default, t as init_dist } from "./chunks/@karinjs/node-schedule/index.mjs-UoPXNUgp.mjs";
|
|
5
5
|
import { n as init_esm, t as esm_default } from "./chunks/chokidar/index.mjs-BvSuth5p.mjs";
|
|
6
|
-
import { n as OpenAI, t as init_openai$1 } from "./chunks/openai/index.mjs-
|
|
6
|
+
import { n as OpenAI, t as init_openai$1 } from "./chunks/openai/index.mjs-D4ZfGFNk.mjs";
|
|
7
7
|
import { n as sdk_default, t as init_sdk } from "./chunks/@anthropic-ai/sdk/index.mjs-BBdoshoG.mjs";
|
|
8
8
|
import { t as require_express } from "./chunks/express/index.mjs-CHnhA_pr.mjs";
|
|
9
9
|
import { t as require_lib$1 } from "./chunks/cors/index.mjs-DGt6p49t.mjs";
|
|
@@ -4441,7 +4441,7 @@ var init_trigger$1 = __esm({ "src/controllers/trigger.ts": (() => {
|
|
|
4441
4441
|
//#region src/version.ts
|
|
4442
4442
|
var VERSION;
|
|
4443
4443
|
var init_version = __esm({ "src/version.ts": (() => {
|
|
4444
|
-
VERSION = "1.9.
|
|
4444
|
+
VERSION = "1.9.7";
|
|
4445
4445
|
}) });
|
|
4446
4446
|
|
|
4447
4447
|
//#endregion
|
|
@@ -4567,8 +4567,8 @@ var init_basic = __esm({ "src/controllers/basic.ts": (() => {
|
|
|
4567
4567
|
res.status(404).json(ChaiteResponse.fail(null, "Channel not found"));
|
|
4568
4568
|
return;
|
|
4569
4569
|
}
|
|
4570
|
-
const { createClient: createClient$1 } = await import("./adapters-
|
|
4571
|
-
const { ChaiteContext: ChaiteContext$1 } = await import("./types-
|
|
4570
|
+
const { createClient: createClient$1 } = await import("./adapters-B2n5lYRi.mjs");
|
|
4571
|
+
const { ChaiteContext: ChaiteContext$1 } = await import("./types-G1zCyFOu.mjs");
|
|
4572
4572
|
const ctx = new ChaiteContext$1(chaite.getLogger());
|
|
4573
4573
|
ctx.setChaite(chaite);
|
|
4574
4574
|
const client = createClient$1(channel.adapterType, channel.options, ctx);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ChaiteStorage, Q as ChaiteResponse, Z as AbstractUserModeSelector, _t as AbstractShareable, a as EventTrigger, at as AbstractHistoryManager, ct as DocumentFileParser, dt as ToolDTO, et as PostProcessor, ft as ToolsGroupDTO, gt as MultipleKeyStrategyChoice, ht as DefaultLogger, i as CronTrigger, lt as DocumentPathParser, mt as ChaiteContext, n as init_types, nt as ProcessorDTO, o as TriggerDTO, ot as SendMessageOption, pt as BaseClientOptions, r as BaseTrigger, st as ChannelStatistics, tt as PreProcessor, ut as CustomTool } from "./src-
|
|
1
|
+
import { $ as ChaiteStorage, Q as ChaiteResponse, Z as AbstractUserModeSelector, _t as AbstractShareable, a as EventTrigger, at as AbstractHistoryManager, ct as DocumentFileParser, dt as ToolDTO, et as PostProcessor, ft as ToolsGroupDTO, gt as MultipleKeyStrategyChoice, ht as DefaultLogger, i as CronTrigger, lt as DocumentPathParser, mt as ChaiteContext, n as init_types, nt as ProcessorDTO, o as TriggerDTO, ot as SendMessageOption, pt as BaseClientOptions, r as BaseTrigger, st as ChannelStatistics, tt as PreProcessor, ut as CustomTool } from "./src-DHDZlyre.mjs";
|
|
2
2
|
import "./chunks/lop/index.mjs-BWbOMJZv.mjs";
|
|
3
3
|
import "./chunks/bluebird/index.mjs-D4zFjek8.mjs";
|
|
4
4
|
import "./chunks/mammoth/index.mjs-C9xwBIgf.mjs";
|
|
@@ -12,7 +12,7 @@ import "./chunks/@xmldom/xmldom/index.mjs-BARr5-gb.mjs";
|
|
|
12
12
|
import "./chunks/dingbat-to-unicode/index.mjs-DjR5pQCM.mjs";
|
|
13
13
|
import "./chunks/@karinjs/node-schedule/index.mjs-UoPXNUgp.mjs";
|
|
14
14
|
import "./chunks/chokidar/index.mjs-BvSuth5p.mjs";
|
|
15
|
-
import "./chunks/openai/index.mjs-
|
|
15
|
+
import "./chunks/openai/index.mjs-D4ZfGFNk.mjs";
|
|
16
16
|
import "./chunks/@anthropic-ai/sdk/index.mjs-BBdoshoG.mjs";
|
|
17
17
|
import "./chunks/accepts/index.mjs-BpfWQu4-.mjs";
|
|
18
18
|
import "./chunks/express/index.mjs-CHnhA_pr.mjs";
|
|
@@ -245,14 +245,14 @@ createApp({
|
|
|
245
245
|
}
|
|
246
246
|
function fmtNum(n){if(n>=1e6)return(n/1e6).toFixed(1)+'M';if(n>=1e3)return(n/1e3).toFixed(1)+'K';return String(n||0)}
|
|
247
247
|
|
|
248
|
+
const loggedIn=computed(()=>!!jwt.value)
|
|
249
|
+
|
|
248
250
|
onMounted(()=>{
|
|
249
251
|
if(loggedIn.value)refreshAll()
|
|
250
|
-
timer=setInterval(()=>{if(
|
|
252
|
+
timer=setInterval(()=>{if(loggedIn.value)refreshAll()},30000)
|
|
251
253
|
})
|
|
252
254
|
onUnmounted(()=>clearInterval(timer))
|
|
253
255
|
|
|
254
|
-
const loggedIn=computed(()=>!!jwt.value)
|
|
255
|
-
|
|
256
256
|
return{
|
|
257
257
|
jwt,loggedIn,loginLoading,loginError,doLogin,logout,
|
|
258
258
|
tab,health,stats,channels,tools,presets,processors,triggers,toolGroups,loading,refreshTime,
|