wecool-chat 0.7.1 → 0.9.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.
- package/CHANGELOG.md +50 -3
- package/README.ja.md +161 -13
- package/README.md +301 -33
- package/dist/CopyIndicator-D50ixqNB.js +407 -0
- package/dist/MarkdownBody-eopKrDot.js +19983 -0
- package/dist/abort-BjeyCmGn.js +6 -0
- package/dist/browser-D1aZQhQL.js +1358 -0
- package/dist/core/client.d.ts +46 -2
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/consume-stream.d.ts +5 -0
- package/dist/core/consume-stream.d.ts.map +1 -1
- package/dist/core/debug-logger.d.ts +26 -0
- package/dist/core/debug-logger.d.ts.map +1 -0
- package/dist/core/error-reporter.d.ts +59 -0
- package/dist/core/error-reporter.d.ts.map +1 -0
- package/dist/core/global-error-capture.d.ts +10 -0
- package/dist/core/global-error-capture.d.ts.map +1 -0
- package/dist/core/i18n/messages.d.ts +83 -0
- package/dist/core/i18n/messages.d.ts.map +1 -1
- package/dist/core/run-conversation.d.ts +12 -0
- package/dist/core/run-conversation.d.ts.map +1 -1
- package/dist/core/sanitize-user-message.d.ts +11 -0
- package/dist/core/sanitize-user-message.d.ts.map +1 -0
- package/dist/core/stream-state.d.ts.map +1 -1
- package/dist/core/tool-confirmation.d.ts +35 -0
- package/dist/core/tool-confirmation.d.ts.map +1 -0
- package/dist/core/tool-runner.d.ts +15 -1
- package/dist/core/tool-runner.d.ts.map +1 -1
- package/dist/core/types.d.ts +168 -4
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/widget-origin.d.ts +33 -0
- package/dist/core/widget-origin.d.ts.map +1 -0
- package/dist/define-DZ0itsfG.js +4 -0
- package/dist/index.css +3 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8421 -32540
- package/dist/loader.d.ts +12 -0
- package/dist/loader.d.ts.map +1 -0
- package/dist/messages-CveZLPSJ.js +175 -0
- package/dist/observe/__tests__/format.test.d.ts +2 -0
- package/dist/observe/__tests__/format.test.d.ts.map +1 -0
- package/dist/observe/__tests__/http.test.d.ts +2 -0
- package/dist/observe/__tests__/http.test.d.ts.map +1 -0
- package/dist/observe/__tests__/index.test.d.ts +2 -0
- package/dist/observe/__tests__/index.test.d.ts.map +1 -0
- package/dist/observe/__tests__/js-error.test.d.ts +2 -0
- package/dist/observe/__tests__/js-error.test.d.ts.map +1 -0
- package/dist/observe/__tests__/redact.test.d.ts +2 -0
- package/dist/observe/__tests__/redact.test.d.ts.map +1 -0
- package/dist/observe/__tests__/ring-buffer.test.d.ts +2 -0
- package/dist/observe/__tests__/ring-buffer.test.d.ts.map +1 -0
- package/dist/observe/format.d.ts +10 -0
- package/dist/observe/format.d.ts.map +1 -0
- package/dist/observe/index.d.ts +33 -0
- package/dist/observe/index.d.ts.map +1 -0
- package/dist/observe/observers/http.d.ts +24 -0
- package/dist/observe/observers/http.d.ts.map +1 -0
- package/dist/observe/observers/js-error.d.ts +22 -0
- package/dist/observe/observers/js-error.d.ts.map +1 -0
- package/dist/observe/redact.d.ts +27 -0
- package/dist/observe/redact.d.ts.map +1 -0
- package/dist/observe/ring-buffer.d.ts +20 -0
- package/dist/observe/ring-buffer.d.ts.map +1 -0
- package/dist/observe/types.d.ts +25 -0
- package/dist/observe/types.d.ts.map +1 -0
- package/dist/plugin/registry.d.ts.map +1 -1
- package/dist/plugin/types.d.ts +19 -1
- package/dist/plugin/types.d.ts.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +2 -2
- package/dist/plugins/page-reader/__tests__/get-meta.test.d.ts +2 -0
- package/dist/plugins/page-reader/__tests__/get-meta.test.d.ts.map +1 -0
- package/dist/plugins/page-reader/__tests__/index.test.d.ts +2 -0
- package/dist/plugins/page-reader/__tests__/index.test.d.ts.map +1 -0
- package/dist/plugins/page-reader/__tests__/read-content.test.d.ts +2 -0
- package/dist/plugins/page-reader/__tests__/read-content.test.d.ts.map +1 -0
- package/dist/plugins/page-reader/__tests__/scroll.test.d.ts +2 -0
- package/dist/plugins/page-reader/__tests__/scroll.test.d.ts.map +1 -0
- package/dist/plugins/page-reader/index.d.ts +18 -0
- package/dist/plugins/page-reader/index.d.ts.map +1 -0
- package/dist/plugins/page-reader/tools/get-meta.d.ts +29 -0
- package/dist/plugins/page-reader/tools/get-meta.d.ts.map +1 -0
- package/dist/plugins/page-reader/tools/read-content.d.ts +34 -0
- package/dist/plugins/page-reader/tools/read-content.d.ts.map +1 -0
- package/dist/plugins/page-reader/tools/scroll.d.ts +29 -0
- package/dist/plugins/page-reader/tools/scroll.d.ts.map +1 -0
- package/dist/plugins/page-reader.d.ts +2 -0
- package/dist/plugins/page-reader.js +230 -0
- package/dist/plugins/qrcode/tool.d.ts +9 -6
- package/dist/plugins/qrcode/tool.d.ts.map +1 -1
- package/dist/plugins/qrcode.d.ts +1 -1
- package/dist/plugins/qrcode.js +121 -100
- package/dist/plugins/shared/abort.d.ts +7 -0
- package/dist/plugins/shared/abort.d.ts.map +1 -0
- package/dist/ui/builtin-tools/get-current-page-info.d.ts.map +1 -1
- package/dist/ui/builtin-tools/index.d.ts +1 -1
- package/dist/ui/builtin-tools/index.d.ts.map +1 -1
- package/dist/ui/builtin-tools/merge-builtin-tools.d.ts +9 -0
- package/dist/ui/builtin-tools/merge-builtin-tools.d.ts.map +1 -1
- package/dist/ui/commands/builtin-commands.d.ts +46 -0
- package/dist/ui/commands/builtin-commands.d.ts.map +1 -0
- package/dist/ui/components/ChatErrorBoundary.d.ts +30 -0
- package/dist/ui/components/ChatErrorBoundary.d.ts.map +1 -0
- package/dist/ui/components/ChatFooter.d.ts +18 -2
- package/dist/ui/components/ChatFooter.d.ts.map +1 -1
- package/dist/ui/components/ChatHeader.d.ts +14 -1
- package/dist/ui/components/ChatHeader.d.ts.map +1 -1
- package/dist/ui/components/ChatHeaderMenu.d.ts +7 -2
- package/dist/ui/components/ChatHeaderMenu.d.ts.map +1 -1
- package/dist/ui/components/ChatPanel.d.ts +35 -4
- package/dist/ui/components/ChatPanel.d.ts.map +1 -1
- package/dist/ui/components/ChatWidget.d.ts +1 -1
- package/dist/ui/components/ChatWidget.d.ts.map +1 -1
- package/dist/ui/components/CommandConfirmationCard.d.ts +22 -0
- package/dist/ui/components/CommandConfirmationCard.d.ts.map +1 -0
- package/dist/ui/components/CommandOverlays.d.ts +28 -0
- package/dist/ui/components/CommandOverlays.d.ts.map +1 -0
- package/dist/ui/components/CommandPalette.d.ts +25 -0
- package/dist/ui/components/CommandPalette.d.ts.map +1 -0
- package/dist/ui/components/ConversationSelect.d.ts +15 -0
- package/dist/ui/components/ConversationSelect.d.ts.map +1 -0
- package/dist/ui/components/CopyIndicator.d.ts +1 -1
- package/dist/ui/components/CopyIndicator.d.ts.map +1 -1
- package/dist/ui/components/FloatButton.d.ts +1 -1
- package/dist/ui/components/FloatButton.d.ts.map +1 -1
- package/dist/ui/components/HelpDialogContent.d.ts +7 -0
- package/dist/ui/components/HelpDialogContent.d.ts.map +1 -0
- package/dist/ui/components/MessageActionsPopover.d.ts +1 -1
- package/dist/ui/components/MessageActionsPopover.d.ts.map +1 -1
- package/dist/ui/components/MessageAttachments.d.ts +1 -1
- package/dist/ui/components/MessageAttachments.d.ts.map +1 -1
- package/dist/ui/components/MessageBubble.d.ts +1 -1
- package/dist/ui/components/MessageBubble.d.ts.map +1 -1
- package/dist/ui/components/MessageCopyButton.d.ts +1 -1
- package/dist/ui/components/MessageCopyButton.d.ts.map +1 -1
- package/dist/ui/components/MessageEditor.d.ts +1 -1
- package/dist/ui/components/MessageEditor.d.ts.map +1 -1
- package/dist/ui/components/MessageList.d.ts +6 -1
- package/dist/ui/components/MessageList.d.ts.map +1 -1
- package/dist/ui/components/MessagePopoverButton.d.ts +1 -1
- package/dist/ui/components/MessagePopoverButton.d.ts.map +1 -1
- package/dist/ui/components/MessageRow.d.ts +1 -1
- package/dist/ui/components/MessageRow.d.ts.map +1 -1
- package/dist/ui/components/MessageRowActions.d.ts +1 -1
- package/dist/ui/components/MessageRowActions.d.ts.map +1 -1
- package/dist/ui/components/ResizeHandles.d.ts +15 -0
- package/dist/ui/components/ResizeHandles.d.ts.map +1 -0
- package/dist/ui/components/ToolConfirmationCard.d.ts +22 -0
- package/dist/ui/components/ToolConfirmationCard.d.ts.map +1 -0
- package/dist/ui/components/ToolConfirmationRecord.d.ts +16 -0
- package/dist/ui/components/ToolConfirmationRecord.d.ts.map +1 -0
- package/dist/ui/components/ToolsDialogContent.d.ts +20 -0
- package/dist/ui/components/ToolsDialogContent.d.ts.map +1 -0
- package/dist/ui/components/WidgetDialog.d.ts +22 -0
- package/dist/ui/components/WidgetDialog.d.ts.map +1 -0
- package/dist/ui/components/markdown/CodeBlock.d.ts +1 -1
- package/dist/ui/components/markdown/CodeBlock.d.ts.map +1 -1
- package/dist/ui/components/markdown/MarkdownBody.d.ts +28 -0
- package/dist/ui/components/markdown/MarkdownBody.d.ts.map +1 -0
- package/dist/ui/components/markdown/MarkdownMessage.d.ts +13 -14
- package/dist/ui/components/markdown/MarkdownMessage.d.ts.map +1 -1
- package/dist/ui/components/markdown/trim-autolink-cjk.d.ts +21 -0
- package/dist/ui/components/markdown/trim-autolink-cjk.d.ts.map +1 -0
- package/dist/ui/hooks/conversationPersistence.d.ts +21 -0
- package/dist/ui/hooks/conversationPersistence.d.ts.map +1 -0
- package/dist/ui/hooks/resize-geometry.d.ts +42 -0
- package/dist/ui/hooks/resize-geometry.d.ts.map +1 -0
- package/dist/ui/hooks/use-command-execution.d.ts +38 -0
- package/dist/ui/hooks/use-command-execution.d.ts.map +1 -0
- package/dist/ui/hooks/use-command-palette.d.ts +45 -0
- package/dist/ui/hooks/use-command-palette.d.ts.map +1 -0
- package/dist/ui/hooks/use-fullscreen.d.ts +21 -0
- package/dist/ui/hooks/use-fullscreen.d.ts.map +1 -0
- package/dist/ui/hooks/use-global-error-capture.d.ts +16 -0
- package/dist/ui/hooks/use-global-error-capture.d.ts.map +1 -0
- package/dist/ui/hooks/use-locale-preference.d.ts +14 -0
- package/dist/ui/hooks/use-locale-preference.d.ts.map +1 -0
- package/dist/ui/hooks/use-menu-keyboard.d.ts +7 -1
- package/dist/ui/hooks/use-menu-keyboard.d.ts.map +1 -1
- package/dist/ui/hooks/use-send-message.d.ts +20 -0
- package/dist/ui/hooks/use-send-message.d.ts.map +1 -1
- package/dist/ui/hooks/use-tool-confirmation.d.ts +22 -0
- package/dist/ui/hooks/use-tool-confirmation.d.ts.map +1 -0
- package/dist/ui/hooks/use-tool-runner.d.ts +17 -2
- package/dist/ui/hooks/use-tool-runner.d.ts.map +1 -1
- package/dist/ui/hooks/use-visitor-id.d.ts +10 -0
- package/dist/ui/hooks/use-visitor-id.d.ts.map +1 -0
- package/dist/ui/hooks/useChatStream.d.ts +35 -0
- package/dist/ui/hooks/useChatStream.d.ts.map +1 -1
- package/dist/ui/hooks/useConversationList.d.ts +33 -0
- package/dist/ui/hooks/useConversationList.d.ts.map +1 -0
- package/dist/ui/hooks/useDraggablePanel.d.ts +2 -0
- package/dist/ui/hooks/useDraggablePanel.d.ts.map +1 -1
- package/dist/ui/hooks/useResizablePanel.d.ts +48 -0
- package/dist/ui/hooks/useResizablePanel.d.ts.map +1 -0
- package/dist/ui/types.d.ts +6 -0
- package/dist/ui/types.d.ts.map +1 -1
- package/package.json +43 -27
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/browser-beO7dF90.js +0 -1538
package/dist/core/types.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { ChatPlugin } from '../plugin/types';
|
|
2
|
+
import { ObserveConfig } from '../observe';
|
|
3
|
+
import { Locale } from './i18n/messages';
|
|
4
|
+
/**
|
|
5
|
+
* UI 表示専用の多言語テキスト。単一文字列、または locale ごとの文字列マップ。
|
|
6
|
+
*
|
|
7
|
+
* `/tools` 一覧などウィジェット UI にだけ表示され、**LLM には送信されない**
|
|
8
|
+
* (`toToolDefinition` が name / description / parameters のみを抽出するため構造的に strip される)。
|
|
9
|
+
* 日本語をプロトコル文字列に混ぜると応答言語バイアス(issue #230 実測)が再発するため、
|
|
10
|
+
* 表示メタデータは description(英語規範)とは別経路のこの型で持つ。
|
|
11
|
+
*/
|
|
12
|
+
export type LocalizedText = string | Partial<Record<Locale, string>>;
|
|
2
13
|
/**
|
|
3
14
|
* JSON Schema for tool parameters
|
|
4
15
|
*/
|
|
@@ -48,16 +59,49 @@ export type ToolAttachment = {
|
|
|
48
59
|
filename?: string;
|
|
49
60
|
};
|
|
50
61
|
/**
|
|
51
|
-
*
|
|
62
|
+
* tool handler が「ここで打ち切ってユーザーに直接通知してほしい」と宣言するための分類。
|
|
63
|
+
*
|
|
64
|
+
* - `user_error`: ユーザー入力に起因し、再試行しても結果が変わらない (例: 長さ超過、不正な引数で固定的に失敗するもの)
|
|
65
|
+
* - `policy`: ポリシー違反でこれ以上処理しない (例: 法的・利用規約上拒否すべき入力)
|
|
66
|
+
* - `rate`: レート制限・クォータ超過で当面の継続が無理
|
|
67
|
+
* - `other`: 上記以外の打ち切り
|
|
68
|
+
*/
|
|
69
|
+
export type ToolStopCategory = "user_error" | "policy" | "rate" | "other";
|
|
70
|
+
/**
|
|
71
|
+
* tool handler が ChatWidget に「即終了 + ユーザーへの直接通知」を要求するためのシグナル。
|
|
72
|
+
*
|
|
73
|
+
* `forLLM` (LLM 履歴に積む結果) や `attachments` (UI 添付物) と排他で使う。
|
|
74
|
+
* `stop` を返したターンは LLM ループが即終了し、`userMessage` が専用 bubble で表示される。
|
|
75
|
+
*
|
|
76
|
+
* Why: LLM に同じエラーを延々と再試行させても意味がないケース (例: `text_too_long`) を
|
|
77
|
+
* tool 側が宣言できるようにする。中央でエラー種別を分岐するのではなく、tool 実装が
|
|
78
|
+
* 「これは再試行しても無駄」と判断したら `stop` を返す、という責務配置を取る。
|
|
79
|
+
*/
|
|
80
|
+
export type ToolStopSignal = {
|
|
81
|
+
/** 集計用の自由文字列 (例: `"text_too_long"`)。telemetry / log の集計キーになる */
|
|
82
|
+
reason: string;
|
|
83
|
+
/** 大まかな分類。UI 側のアイコン / 色分けや集計に利用する */
|
|
84
|
+
category: ToolStopCategory;
|
|
85
|
+
/**
|
|
86
|
+
* ユーザーに直接見せる文言。i18n 済みの完成形を tool 側で組み立てる。
|
|
87
|
+
* 未指定なら ChatWidget 側の汎用 fallback 文言を表示。
|
|
88
|
+
* 長さ上限 2000 文字、制御文字はサニタイズされる。
|
|
89
|
+
*/
|
|
90
|
+
userMessage?: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Tool handler が結果を 3 経路に分けて返すための封筒。
|
|
52
94
|
*
|
|
53
|
-
* - `forLLM`:
|
|
95
|
+
* - `forLLM`: LLM 履歴・バックエンドへ送られる結果
|
|
54
96
|
* - `attachments`: ChatWidget が UI として描画するだけで LLM 履歴にもバックエンドにも送らない
|
|
97
|
+
* - `stop`: 即終了 + ユーザーに直接通知。`forLLM` / `attachments` とは排他
|
|
55
98
|
*
|
|
56
99
|
* handler が plain な値を return した場合は従来動作 (全て LLM 履歴行き) を維持する。
|
|
57
100
|
*/
|
|
58
101
|
export type ToolHandlerEnvelope = {
|
|
59
|
-
forLLM
|
|
102
|
+
forLLM?: unknown;
|
|
60
103
|
attachments?: ToolAttachment[];
|
|
104
|
+
stop?: ToolStopSignal;
|
|
61
105
|
};
|
|
62
106
|
/**
|
|
63
107
|
* Tool definition that can be executed by the LLM
|
|
@@ -71,6 +115,36 @@ export type Tool = {
|
|
|
71
115
|
parameters: ToolParameters;
|
|
72
116
|
/** Function to execute when the LLM calls this tool. ctx は optional で既存実装と互換 */
|
|
73
117
|
handler: (args: Record<string, unknown>, ctx?: ToolHandlerContext) => unknown | Promise<unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* true にすると、LLM がこのツールを呼んだとき handler 実行前にチャット内へ
|
|
120
|
+
* 承認 UI(実行する / キャンセル)を表示し、ユーザーが承認するまで実行しない。
|
|
121
|
+
* キャンセル時は handler を呼ばず「ユーザーが拒否した」旨の結果を LLM に返す。
|
|
122
|
+
*
|
|
123
|
+
* Why: フォーム消去・送信・決済のような破壊的操作を LLM の誤解釈で暴発させないための
|
|
124
|
+
* ガード。`onToolExecute` は通知のみで拒否できず、`ToolStopSignal` は handler 実行後の
|
|
125
|
+
* 打ち切り用のため、「実行前に防ぐ」経路はこのフィールドが唯一の手段になる。
|
|
126
|
+
* 未指定 / false は従来どおり即実行(後方互換)。
|
|
127
|
+
*/
|
|
128
|
+
requiresConfirmation?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* 承認 UI に表示する確認文言。`requiresConfirmation: true` のときのみ使われる。
|
|
131
|
+
* ツール名は開発者向け語彙で訪問者に伝わらないため、ホストがサイトの表示言語で
|
|
132
|
+
* 完成形の文(例: 「フォームの内容をすべて消去します。よろしいですか?」)を渡すこと。
|
|
133
|
+
* 未指定時はウィジェットの汎用文言 + ツール名で表示される。
|
|
134
|
+
* `ToolStopSignal.userMessage` と同じサニタイズ(制御文字除去・2000 文字上限)を通る。
|
|
135
|
+
*/
|
|
136
|
+
confirmationMessage?: string;
|
|
137
|
+
/**
|
|
138
|
+
* `/tools`(コマンドパレット経由のツール一覧)に表示する訪問者向けの表示名。
|
|
139
|
+
* UI 表示専用で **LLM には送信されない**。単一文字列か locale 別(`{ ja, en }`)で渡す。
|
|
140
|
+
* 未指定なら英語 description をそのまま劣化表示する。
|
|
141
|
+
*/
|
|
142
|
+
displayName?: LocalizedText;
|
|
143
|
+
/**
|
|
144
|
+
* `/tools` 一覧に出す質問例。クリックで入力欄に挿入される(自動送信はしない)。
|
|
145
|
+
* UI 表示専用で **LLM には送信されない**。各要素は単一文字列か locale 別で渡す。
|
|
146
|
+
*/
|
|
147
|
+
exampleQueries?: LocalizedText[];
|
|
74
148
|
};
|
|
75
149
|
/**
|
|
76
150
|
* Tool definition sent to the API (without handler)
|
|
@@ -92,6 +166,14 @@ export type ChatConfig = {
|
|
|
92
166
|
tools: Tool[];
|
|
93
167
|
/** UI language */
|
|
94
168
|
locale?: "ja" | "en";
|
|
169
|
+
/**
|
|
170
|
+
* 開発者向け debug モード。`true` にすると初期化・送信・完了などの内部イベントを
|
|
171
|
+
* `console` に出力する(トラブルシューティング用)。既定は `false`。
|
|
172
|
+
*
|
|
173
|
+
* 秘匿値(apiKey / endpoint / メッセージ本文)は出力しない。件数や length 等の
|
|
174
|
+
* 非機微な要約のみを出す。本番埋め込み時はコンソールを汚さないよう既定 off のままにする。
|
|
175
|
+
*/
|
|
176
|
+
debug?: boolean;
|
|
95
177
|
/** Callback when a tool is about to be executed */
|
|
96
178
|
onToolExecute?: (toolName: string, args: unknown) => void;
|
|
97
179
|
/** Callback when a tool execution completes */
|
|
@@ -190,6 +272,19 @@ export type ChatConfig = {
|
|
|
190
272
|
* @since 0.9.0
|
|
191
273
|
*/
|
|
192
274
|
additionalSystemPrompt?: string;
|
|
275
|
+
/**
|
|
276
|
+
* 会話の継続スコープ。省略時は現行どおり保存しない(ページ遷移・リロードで新しい会話になる)。
|
|
277
|
+
*
|
|
278
|
+
* - `"tab"`: conversationId を sessionStorage に保存し、同一タブ内のページ遷移・リロード後に
|
|
279
|
+
* 同じ会話を自動復元して継続する。タブを閉じれば消え、別タブは別会話(安全側)。
|
|
280
|
+
*
|
|
281
|
+
* Why: ページ遷移を伴う tool(ナビゲーション等)を持つサイトでは、遷移のたびに
|
|
282
|
+
* 会話が消えると「案内された直後に文脈を失う」体験になる。復元 API(/api/conversations)は
|
|
283
|
+
* 既存のため、これはその自動配線を opt-in で提供するもの。
|
|
284
|
+
*
|
|
285
|
+
* @since 0.9.0
|
|
286
|
+
*/
|
|
287
|
+
persistConversation?: "tab";
|
|
193
288
|
/**
|
|
194
289
|
* チャットのライフサイクル状態 (LLM ストリーミング中 / ツール実行中) が変化したときに呼ばれる。
|
|
195
290
|
*
|
|
@@ -215,6 +310,40 @@ export type ChatConfig = {
|
|
|
215
310
|
* @since 0.9.0
|
|
216
311
|
*/
|
|
217
312
|
augmentUserMessage?: (text: string) => string;
|
|
313
|
+
/**
|
|
314
|
+
* ウィジェット内部で起きたエラー(警告以上)を API のエラー収集エンドポイントへ
|
|
315
|
+
* 送信するか。既定は `true`(有効)。
|
|
316
|
+
*
|
|
317
|
+
* 送信内容: エラー情報(message / stack / code)+ 発生環境(version / URL / userAgent /
|
|
318
|
+
* network 等)+ 相関用の requestId / sessionId。**メッセージ本文・API キー生値・
|
|
319
|
+
* 埋め込み先の行動履歴は一切含めない**(PII 非含有)。API キーはマスク済みのみ載せる。
|
|
320
|
+
*
|
|
321
|
+
* 送信は自ドメインの API(`endpoint`)に対してのみ・エラー発生時のみ・失敗時は破棄
|
|
322
|
+
* (再送・端末保存なし)。埋め込み先サイト起源のエラーは送らない。
|
|
323
|
+
*
|
|
324
|
+
* `false` を指定すると送信を完全に停止する。
|
|
325
|
+
*
|
|
326
|
+
* @since 0.8.0
|
|
327
|
+
*/
|
|
328
|
+
errorReporting?: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* ホストページで起きた不具合の兆候(HTTP の 4xx/5xx・JS エラー)を観測し、チャット送信時に
|
|
331
|
+
* 「現在のページ状況」として LLM への送信本文へ自動付与するか。既定は **有効**(ON)。
|
|
332
|
+
*
|
|
333
|
+
* 訪問者のチャット画面には素の発話だけが表示され、背景情報は AI にのみ渡る。記録するのは
|
|
334
|
+
* 通信/エラーの事実だけで、フォーム入力値は一切記録しない。URL クエリ・エラー文言は
|
|
335
|
+
* 秘匿パターン(token / email 等)を redact してから渡す。観測データは自ドメインへ送らず、
|
|
336
|
+
* チャット送信時に LLM へ一度渡るのみ。
|
|
337
|
+
*
|
|
338
|
+
* - `false`: 完全無効(fetch/console へのパッチも当てない)
|
|
339
|
+
* - `{ http?: false }` / `{ errors?: false }`: チャネル単位で無効化
|
|
340
|
+
*
|
|
341
|
+
* GDPR / ePrivacy 等で訪問者同意が要る地域では、同意基盤(Cookie バナー等)に連動させて
|
|
342
|
+
* 同意が取れるまで観測を止めること(詳細は README)。
|
|
343
|
+
*
|
|
344
|
+
* @since 0.10.0
|
|
345
|
+
*/
|
|
346
|
+
observe?: ObserveConfig;
|
|
218
347
|
};
|
|
219
348
|
/**
|
|
220
349
|
* チャットのライフサイクル状態。`onStateChange` callback に渡される。
|
|
@@ -277,6 +406,18 @@ export type Message = {
|
|
|
277
406
|
* `tool` ロールのメッセージにのみ立つ。
|
|
278
407
|
*/
|
|
279
408
|
attachments?: ToolAttachment[];
|
|
409
|
+
/**
|
|
410
|
+
* 実行前確認 (`requiresConfirmation`) の決着記録。`tool` ロールにのみ立つ。
|
|
411
|
+
*
|
|
412
|
+
* ChatWidget はこれを「承認 / キャンセルの履歴行」として改変不能な形でチャットに描画する。
|
|
413
|
+
* 破壊的操作の informed consent の証跡を会話上に残すため。`buildBody` の送信ホワイトリスト
|
|
414
|
+
* に含めないため LLM・バックエンドには送られない (UI 表示専用)。
|
|
415
|
+
* `message` はサニタイズ済み確認文言。未指定なら描画側が汎用文言 + ツール名で補う。
|
|
416
|
+
*/
|
|
417
|
+
confirmation?: {
|
|
418
|
+
approved: boolean;
|
|
419
|
+
message?: string;
|
|
420
|
+
};
|
|
280
421
|
/** assistant ロールにのみ立つ。エラー由来の行であることを示す */
|
|
281
422
|
isError?: boolean;
|
|
282
423
|
/**
|
|
@@ -296,7 +437,11 @@ export type ToolCall = {
|
|
|
296
437
|
arguments: Record<string, unknown>;
|
|
297
438
|
};
|
|
298
439
|
/**
|
|
299
|
-
* SSE event received from the server
|
|
440
|
+
* SSE event received from the server.
|
|
441
|
+
*
|
|
442
|
+
* - `max_turns`: server `maxTurns` 上限に達したことを通知する。クライアントは
|
|
443
|
+
* これを受けて assistant エラーメッセージとして表示し、ループを終了する。
|
|
444
|
+
* `{ type: "done" }` の前に送られる。
|
|
300
445
|
*/
|
|
301
446
|
export type ChatEvent = {
|
|
302
447
|
type: "thinking";
|
|
@@ -315,6 +460,10 @@ export type ChatEvent = {
|
|
|
315
460
|
} | {
|
|
316
461
|
type: "error";
|
|
317
462
|
message: string;
|
|
463
|
+
code?: string;
|
|
464
|
+
} | {
|
|
465
|
+
type: "max_turns";
|
|
466
|
+
turn: number;
|
|
318
467
|
} | {
|
|
319
468
|
type: "done";
|
|
320
469
|
conversationId: string;
|
|
@@ -325,4 +474,19 @@ export type ChatEvent = {
|
|
|
325
474
|
export type ToolUseEvent = Extract<ChatEvent, {
|
|
326
475
|
type: "tool_use";
|
|
327
476
|
}>;
|
|
477
|
+
/**
|
|
478
|
+
* 会話一覧の各エントリ。最初のユーザー発話の先頭50文字をタイトルとして持つ。
|
|
479
|
+
*/
|
|
480
|
+
export type ConversationSummary = {
|
|
481
|
+
sessionId: string;
|
|
482
|
+
title: string;
|
|
483
|
+
createdAt: string;
|
|
484
|
+
};
|
|
485
|
+
/**
|
|
486
|
+
* 会話詳細。セッション ID と復元済みのメッセージ配列を持つ。
|
|
487
|
+
*/
|
|
488
|
+
export type ConversationDetail = {
|
|
489
|
+
sessionId: string;
|
|
490
|
+
messages: Message[];
|
|
491
|
+
};
|
|
328
492
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/core/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAErE;;GAEG;AACH,MA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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ウィジェット(packages/chat のバンドル)起源のエラーかどうかを判定するユーティリティ。
|
|
3
|
+
*
|
|
4
|
+
* Why: エラー収集は自分(widget)が起こしたエラーだけを送る。埋め込み先サイトの
|
|
5
|
+
* 別スクリプトの失敗を送ると、他人のエラーを勝手に収集することになりプライバシー侵害
|
|
6
|
+
* かつノイズになる(design.md リスク項)。判定は「スタック」と「イベント発生元
|
|
7
|
+
* (ErrorEvent.filename)」の両方を見て、どちらかが widget バンドル由来なら widget 起源
|
|
8
|
+
* とみなす。**判定不能なら送らない側に倒す**。
|
|
9
|
+
*/
|
|
10
|
+
/** isWidgetOriginError が受け取る判定材料。 */
|
|
11
|
+
export type WidgetOriginParams = {
|
|
12
|
+
/** Error.stack(あれば)。 */
|
|
13
|
+
stack?: string;
|
|
14
|
+
/** ErrorEvent.filename(グローバル error イベント時にあれば)。 */
|
|
15
|
+
filename?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* bundleUrl を注入して起源判定関数を作る factory。
|
|
19
|
+
* 実運用では下の `isWidgetOriginError`(import.meta.url 解決済み)を使い、
|
|
20
|
+
* テストでは任意の bundleUrl を注入して判定境界を検証する。
|
|
21
|
+
*
|
|
22
|
+
* @param bundleUrl - widget バンドルの URL(解決不能なら null)
|
|
23
|
+
* @returns エラーが widget 起源かを判定する関数。どちらかの材料がバンドル由来なら true、
|
|
24
|
+
* 判定材料が無い / バンドルを指さない / bundleUrl が判定不能なら false(送らない側)
|
|
25
|
+
*/
|
|
26
|
+
export declare const createWidgetOriginChecker: (bundleUrl: string | null) => ((params: WidgetOriginParams) => boolean);
|
|
27
|
+
/**
|
|
28
|
+
* エラーが widget 起源かを、スタックとイベント発生元の両情報から判定する。
|
|
29
|
+
* どちらかがバンドル由来なら widget 起源。両方とも判定材料が無い / バンドルを指さない
|
|
30
|
+
* 場合は **false(送らない側に倒す)**。
|
|
31
|
+
*/
|
|
32
|
+
export declare const isWidgetOriginError: (params: WidgetOriginParams) => boolean;
|
|
33
|
+
//# sourceMappingURL=widget-origin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-origin.d.ts","sourceRoot":"","sources":["../../src/core/widget-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA2BH,qCAAqC;AACrC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,GACpC,WAAW,MAAM,GAAG,IAAI,KACvB,CAAC,CAAC,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAY1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,WAnBnB,kBAAkB,KAAK,OAmB4C,CAAC"}
|
package/dist/index.css
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary:#2563eb;--color-primary-hover:#1d4ed8}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.block{display:block}.hidden{display:none}.inline{display:inline}.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.\[wecool-chat\:\<plugin-id\>\]{wecool-chat:<plugin-id>}.\[wecool-chat\:acme\/plugin\]{wecool-chat:acme/plugin}.\[wecool-chat\:scope\]{wecool-chat:scope}}:host{z-index:2147483647;touch-action:auto;--wecool-color-bg:#fff;--wecool-color-bg-secondary:#fafafa;--wecool-color-bg-muted:#f4f4f5;--wecool-color-bg-strong:#18181b;--wecool-color-text:#18181b;--wecool-color-text-on-strong:#fafafa;--wecool-color-text-muted:#71717a;--wecool-color-border:#e4e4e7;--wecool-color-border-strong:#d4d4d8;--wecool-color-error-bg:#fef2f2;--wecool-color-error-text:#dc2626;--wecool-color-link:var(--color-primary,#2563eb);--wecool-color-link-hover:var(--color-primary-hover,#1d4ed8);font-size:max(16px,1rem);line-height:1.5;position:relative}@media(prefers-color-scheme:dark){:host{--wecool-color-bg:#18181b;--wecool-color-bg-secondary:#27272a;--wecool-color-bg-muted:#3f3f46;--wecool-color-bg-strong:#fafafa;--wecool-color-text:#fafafa;--wecool-color-text-on-strong:#18181b;--wecool-color-text-muted:#a1a1aa;--wecool-color-border:#3f3f46;--wecool-color-border-strong:#52525b;--wecool-color-error-bg:#450a0a;--wecool-color-error-text:#fca5a5}}:host([data-wecool-theme=light]),.wecool-float-container[data-wecool-theme=light],.wecool-embed-root[data-wecool-theme=light]{--wecool-color-bg:#fff;--wecool-color-bg-secondary:#fafafa;--wecool-color-bg-muted:#f4f4f5;--wecool-color-bg-strong:#18181b;--wecool-color-text:#18181b;--wecool-color-text-on-strong:#fafafa;--wecool-color-text-muted:#71717a;--wecool-color-border:#e4e4e7;--wecool-color-border-strong:#d4d4d8;--wecool-color-error-bg:#fef2f2;--wecool-color-error-text:#dc2626}:host([data-wecool-theme=dark]),.wecool-float-container[data-wecool-theme=dark],.wecool-embed-root[data-wecool-theme=dark]{--wecool-color-bg:#18181b;--wecool-color-bg-secondary:#27272a;--wecool-color-bg-muted:#3f3f46;--wecool-color-bg-strong:#fafafa;--wecool-color-text:#fafafa;--wecool-color-text-on-strong:#18181b;--wecool-color-text-muted:#a1a1aa;--wecool-color-border:#3f3f46;--wecool-color-border-strong:#52525b;--wecool-color-error-bg:#450a0a;--wecool-color-error-text:#fca5a5}.wecool-float-container,.wecool-embed-root{color:var(--wecool-color-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.wecool-float-container :focus-visible,.wecool-embed-root :focus-visible{outline:2px solid var(--color-primary,#2563eb);outline-offset:2px}.wecool-float-container :focus:not(:focus-visible),.wecool-embed-root :focus:not(:focus-visible){outline:none}@keyframes wecool-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.wecool-float-container{display:contents}.wecool-float-container--bottom-right .wecool-float-button{bottom:1.5rem;right:1.5rem}.wecool-float-container--bottom-left .wecool-float-button{bottom:1.5rem;left:1.5rem}.wecool-float-container--top-right .wecool-float-button{top:1.5rem;right:1.5rem}.wecool-float-container--top-left .wecool-float-button{top:1.5rem;left:1.5rem}.wecool-float-panel{border-radius:12px;max-width:23.75rem;max-height:min(32.5rem,100dvh - 1.25rem);position:fixed;overflow:hidden;box-shadow:0 8px 32px #0000001f;container:wecool-chat/inline-size}.wecool-float-panel--bottom-right,.wecool-float-panel--bottom-left,.wecool-float-panel--top-right,.wecool-float-panel--top-left{inset:.625rem}.wecool-float-panel--bottom-right{margin-top:auto;margin-left:auto}.wecool-float-panel--bottom-left{margin-top:auto;margin-right:auto}.wecool-float-panel--top-right{margin-bottom:auto;margin-left:auto}.wecool-float-panel--top-left{margin-bottom:auto;margin-right:auto}.wecool-float-container:has(.wecool-float-panel) .wecool-float-button{display:none}.wecool-float-panel--dragged{width:min(23.75rem,100vw - 1.25rem);height:min(32.5rem,100dvh - 1.25rem);margin:0;inset:auto}.wecool-float-panel[data-dragging=true]{-webkit-user-select:none;user-select:none}.wecool-embed-root{height:100%;container:wecool-chat/inline-size}.wecool-float-button{background-color:var(--wecool-color-bg-strong);width:3.25rem;height:3.25rem;color:var(--wecool-color-text-on-strong);cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;transition:transform .15s,box-shadow .15s;display:flex;position:fixed;box-shadow:0 4px 16px #00000029}.wecool-float-button:hover{transform:scale(1.05);box-shadow:0 6px 20px #0003}.wecool-panel{background-color:var(--wecool-color-bg);border:1px solid var(--wecool-color-border);border-radius:12px;flex-direction:column;height:100%;display:flex;overflow:hidden}.wecool-embed-root--sidebar-left .wecool-panel,.wecool-embed-root--sidebar-right .wecool-panel,.wecool-embed-root--header-banner .wecool-panel,.wecool-embed-root--footer-fixed .wecool-panel{border:none;border-radius:0;width:100%;height:100%}.wecool-embed-root--input-only{box-sizing:border-box;width:100%;height:100%}.wecool-header{border-bottom:1px solid var(--wecool-color-border);background-color:var(--wecool-color-bg);justify-content:space-between;align-items:center;height:2.75rem;padding:0 .75rem;display:flex}.wecool-header--draggable{cursor:move;touch-action:none;-webkit-user-select:none;user-select:none}.wecool-header--spacer{border-bottom:none;height:.5rem}.wecool-header__close,.wecool-header__menu-toggle{min-width:2.75rem;min-height:2.75rem;color:var(--wecool-color-text-muted);cursor:pointer;background-color:#0000;border:none;border-radius:6px;justify-content:center;align-items:center;padding:.5rem;transition:all .15s;display:flex}.wecool-header__close:hover,.wecool-header__menu-toggle:hover{background-color:var(--wecool-color-bg-muted);color:var(--wecool-color-text)}.wecool-header__menu{position:relative}.wecool-header__menu-popover{border:1px solid var(--wecool-color-border);background-color:var(--wecool-color-bg);z-index:1;border-radius:8px;min-width:12rem;margin-top:.25rem;padding:.25rem;position:absolute;top:100%;right:0;box-shadow:0 8px 24px #0000001f}.wecool-header__menu-item{width:100%;min-height:2.25rem;color:var(--wecool-color-text);cursor:pointer;text-align:start;font-size:inherit;background-color:#0000;border:none;border-radius:6px;align-items:center;gap:.5rem;padding:.375rem .75rem;display:flex}.wecool-header__menu-item:hover:not(:disabled){background-color:var(--wecool-color-bg-muted)}.wecool-header__menu-item:disabled{color:var(--wecool-color-text-muted);cursor:not-allowed}.wecool-footer{border-top:1px solid var(--wecool-color-border);background-color:var(--wecool-color-bg);align-items:center;gap:.5rem;padding:.75rem;display:flex}.wecool-footer__input{min-height:2.625rem;max-height:4.125rem;color:var(--wecool-color-text);background-color:var(--wecool-color-bg-secondary);border:1px solid var(--wecool-color-border);resize:none;border-radius:8px;outline:none;flex:1;padding:.5rem .875rem;font-family:inherit;line-height:1.5rem;transition:border-color .15s;overflow-y:auto}.wecool-footer__input:focus-visible{border-color:var(--wecool-color-bg-strong)}.wecool-footer__button{cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;width:2.75rem;min-width:2.75rem;height:2.75rem;min-height:2.75rem;transition:all .15s;display:flex}.wecool-footer__button--send{background-color:var(--wecool-color-bg-strong);color:var(--wecool-color-text-on-strong)}.wecool-footer__button--send:disabled{opacity:.3;cursor:not-allowed}.wecool-footer__button--stop{background-color:var(--wecool-color-error-text);color:#fff}.wecool-footer__button--clear{color:var(--wecool-color-text-muted);background-color:#0000}.wecool-footer__button--clear:hover{background-color:var(--wecool-color-bg-muted);color:var(--wecool-color-text)}.wecool-message-list{background-color:var(--wecool-color-bg);flex-direction:column;flex:1;gap:.75rem;padding:1rem;display:flex;overflow-y:auto}.wecool-message-list__empty{color:var(--wecool-color-text-muted);flex:1;justify-content:center;align-items:center;font-size:.875rem;display:flex}.wecool-message-list__items{flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;display:flex}.wecool-message-row{flex-direction:column;max-width:85%;display:flex;position:relative}.wecool-message-row[data-message-role=user]{align-self:flex-end}.wecool-message-row[data-message-role=assistant]{align-self:flex-start}.wecool-message-row__time{font-variant-numeric:tabular-nums;color:var(--wecool-color-text-muted);margin-top:.25rem;font-size:.75rem}.wecool-message-row[data-message-role=user] .wecool-message-row__time{align-self:flex-end}.wecool-message-row[data-message-role=assistant] .wecool-message-row__time{align-self:flex-start}.wecool-message-bubble{word-break:break-word;cursor:text;padding:.625rem .875rem;font-size:.875rem;line-height:1.5;position:relative}.wecool-message-bubble--user{white-space:pre-wrap;background-color:var(--wecool-color-bg-strong);color:var(--wecool-color-text-on-strong);border-radius:12px}.wecool-message-bubble--assistant{background-color:var(--wecool-color-bg-muted);color:var(--wecool-color-text);border-radius:12px}.wecool-message-bubble--error{background-color:var(--wecool-color-error-bg);color:var(--wecool-color-error-text);border-radius:12px}.wecool-message-bubble--editing.wecool-message-bubble--user{background-color:var(--wecool-color-bg);color:var(--wecool-color-text);border:1px solid var(--wecool-color-border);padding:.375rem}.wecool-message-editor{align-items:center;gap:.375rem;display:flex}.wecool-message-editor__input{height:2rem;color:var(--wecool-color-text);background-color:var(--wecool-color-bg-secondary);border:1px solid var(--wecool-color-border);border-radius:6px;outline:none;flex:1;padding:0 .625rem;transition:border-color .15s}.wecool-message-editor__input:focus-visible{border-color:var(--wecool-color-bg-strong)}.wecool-message-editor__button{cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;width:2rem;min-width:1.5rem;height:2rem;min-height:1.5rem;transition:all .15s;display:flex}.wecool-message-editor__button--send{background-color:var(--wecool-color-bg-strong);color:var(--wecool-color-text-on-strong)}.wecool-message-editor__button--send:disabled{opacity:.3;cursor:not-allowed}.wecool-message-bubble__menu{background-color:var(--wecool-color-bg-muted);border:1px solid var(--wecool-color-border);width:1.5rem;min-width:1.5rem;height:1.5rem;min-height:1.5rem;color:var(--wecool-color-text-muted);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;transition:color .12s,background-color .12s;display:inline-flex;position:absolute;bottom:-.4375rem;right:-.4375rem}.wecool-message-bubble__menu:hover{background-color:var(--wecool-color-border);color:var(--wecool-color-text)}.wecool-message-popover{z-index:10;background:var(--wecool-color-bg);border:1px solid var(--wecool-color-border);border-radius:8px;flex-direction:column;gap:.125rem;min-width:8.75rem;padding:.25rem;animation:.12s ease-out wecool-popover-appear;display:flex;position:absolute;right:0;box-shadow:0 8px 24px #0000001f}.wecool-message-popover button{cursor:pointer;min-height:1.5rem;color:var(--wecool-color-text);text-align:left;background:0 0;border:none;border-radius:4px;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;font-size:.875rem;display:flex}.wecool-message-popover button:hover{background-color:var(--wecool-color-bg-muted)}@keyframes wecool-popover-appear{0%{opacity:0;transform:translateY(.25rem)}to{opacity:1;transform:translateY(0)}}.wecool-loading{background-color:var(--wecool-color-bg-muted);border-radius:12px;align-self:flex-start;align-items:center;gap:.375rem;max-width:85%;padding:.625rem .875rem;display:flex}.wecool-loading-dot{background-color:var(--wecool-color-text-muted);border-radius:50%;width:.375rem;height:.375rem;animation:1.4s ease-in-out infinite both wecool-bounce}.wecool-loading-dot:first-child{animation-delay:-.32s}.wecool-loading-dot:nth-child(2){animation-delay:-.16s}.wecool-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wecool-icon--xs{width:.875em;height:.875em}.wecool-icon--sm{width:1em;height:1em}.wecool-icon--md{width:1.125em;height:1.125em}.wecool-icon--lg{width:1.375em;height:1.375em}@container wecool-chat (max-width:30em){.wecool-message-list{padding:.5rem}.wecool-message-row{max-width:92%}}@container wecool-chat (max-width:20em){.wecool-message-bubble{padding:.5em .625em}.wecool-header__label{display:none}}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.wecool-loading-dot{transform:scale(1);animation:none!important}.wecool-float-button:hover{transform:none!important}}@media(forced-colors:active){.wecool-float-button,.wecool-footer__button,.wecool-header__close,.wecool-message-editor__button,.wecool-message-popover button,.wecool-message-bubble__menu{color:buttontext;background-color:buttonface;border:1px solid buttontext}.wecool-message-bubble--user,.wecool-message-bubble--assistant,.wecool-message-bubble--error,.wecool-loading{border:1px solid canvastext}.wecool-float-container :focus-visible,.wecool-embed-root :focus-visible{outline-offset:2px;outline:2px solid highlight}}.wecool-layout{display:block}.wecool-layout--sidebar-left{z-index:2147483640;background:var(--wecool-color-bg,#fff);border-right:1px solid var(--wecool-color-border,#e5e5e5);width:min(22.5rem,100vw - 1.25rem);position:fixed;top:0;bottom:0;left:0;overflow:hidden;box-shadow:.25rem 0 .75rem #00000014}.wecool-layout--sidebar-right{z-index:2147483640;background:var(--wecool-color-bg,#fff);border-left:1px solid var(--wecool-color-border,#e5e5e5);width:min(22.5rem,100vw - 1.25rem);position:fixed;top:0;bottom:0;right:0;overflow:hidden;box-shadow:-.25rem 0 .75rem #00000014}.wecool-layout--header-banner{z-index:2147483640;background:var(--wecool-color-bg,#fff);border-bottom:1px solid var(--wecool-color-border,#e5e5e5);height:5rem;position:fixed;top:0;left:0;right:0;overflow:hidden;box-shadow:0 .25rem .75rem #00000014}.wecool-layout--header-banner.wecool-layout--transparent{-webkit-backdrop-filter:blur(.5rem);background:#ffffffd9}.wecool-layout--footer-fixed{z-index:2147483640;background:var(--wecool-color-bg,#fff);border-top:1px solid var(--wecool-color-border,#e5e5e5);max-height:50dvh;position:fixed;bottom:0;left:0;right:0;overflow:hidden;box-shadow:0 -.25rem .75rem #00000014}@media(prefers-color-scheme:dark){.wecool-layout--header-banner.wecool-layout--transparent{background:#18181bd9}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}.wecool-markdown{font-size:.875rem;line-height:1.6;color:var(--wecool-color-text, #18181b)}.wecool-markdown>*:first-child{margin-top:0}.wecool-markdown>*:last-child{margin-bottom:0}.wecool-markdown p{margin:.5em 0;word-break:break-word}.wecool-markdown h1,.wecool-markdown h2,.wecool-markdown h3{margin:.8em 0 .4em;font-weight:600;line-height:1.3}.wecool-markdown h1{font-size:1.4em}.wecool-markdown h2{font-size:1.2em}.wecool-markdown h3{font-size:1.05em}.wecool-markdown h4,.wecool-markdown h5,.wecool-markdown h6{margin:.6em 0 .3em;font-size:1em;font-weight:600}.wecool-markdown ul,.wecool-markdown ol{margin:.5em 0;padding-left:1.5em}.wecool-markdown li{margin:.2em 0}.wecool-markdown li>ul,.wecool-markdown li>ol{margin:.2em 0}.wecool-markdown blockquote{margin:.5em 0;padding:.2em .8em;border-left:3px solid var(--wecool-color-border-strong, #d4d4d8);color:var(--wecool-color-text-muted, #71717a)}.wecool-markdown a{color:var(--wecool-color-link, #2563eb);text-decoration:underline}.wecool-markdown a:hover{color:var(--wecool-color-link-hover, #1d4ed8)}.wecool-markdown code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9em}.wecool-markdown :not(pre)>code{background-color:var(--wecool-color-border, #e4e4e7);padding:.0625rem .25rem;border-radius:4px}.wecool-markdown table{display:block;width:100%;overflow-x:auto;border-collapse:collapse;margin:.5em 0}.wecool-markdown th,.wecool-markdown td{border:1px solid var(--wecool-color-border-strong, #d4d4d8);padding:.375rem .625rem;text-align:left}.wecool-markdown th{background-color:var(--wecool-color-border, #e4e4e7);font-weight:600}.wecool-markdown hr{border:none;border-top:1px solid var(--wecool-color-border-strong, #d4d4d8);margin:1em 0}.wecool-code-block{margin:.5em 0;border-radius:8px;overflow:hidden;background-color:var(--wecool-color-bg-secondary, #fafafa);border:1px solid var(--wecool-color-border, #e4e4e7)}.wecool-code-block__header{display:flex;align-items:center;justify-content:space-between;padding:.25rem .625rem;background-color:var(--wecool-color-border, #e4e4e7);font-size:.75rem;color:var(--wecool-color-text-muted, #71717a)}.wecool-code-block__language{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;text-transform:lowercase}.wecool-code-block__copy{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .375rem;min-width:1.5rem;min-height:1.5rem;background:transparent;border:none;cursor:pointer;color:var(--wecool-color-text-muted, #71717a);font-size:.75rem;border-radius:4px}.wecool-code-block__copy:hover{background-color:var(--wecool-color-border-strong, #d4d4d8);color:var(--wecool-color-text, #18181b)}.wecool-code-block pre{margin:0;padding:.625rem .75rem;overflow-x:auto;background-color:transparent}.wecool-code-block pre code{font-size:.85em;line-height:1.5;background:transparent;padding:0}.wecool-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wecool-message-attachments{display:flex;flex-direction:column;gap:.5rem;margin-top:.5rem}.wecool-message-attachment{margin:0;display:flex;flex-direction:column;gap:.375rem}.wecool-message-attachment__image{display:block;max-width:100%;height:auto;border-radius:.5rem;background-color:var(--wecool-color-bg, #ffffff)}.wecool-message-attachment__download{display:inline-flex;align-items:center;gap:.25rem;align-self:flex-start;padding:.375rem .625rem;min-width:1.5rem;min-height:1.5rem;background-color:var(--wecool-color-bg-secondary, #fafafa);border:1px solid var(--wecool-color-border, #e4e4e7);border-radius:.25rem;color:var(--wecool-color-text, #18181b);font-size:.8125rem;cursor:pointer}.wecool-message-attachment__download:hover{background-color:var(--wecool-color-bg-muted, #f4f4f5)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}
|
|
1
|
+
/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.block{display:block}.hidden{display:none}.inline{display:inline}.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.\[wecool-chat\:\<plugin-id\>\]{wecool-chat:<plugin-id>}.\[wecool-chat\:acme\/plugin\]{wecool-chat:acme/plugin}.\[wecool-chat\:debug\]{wecool-chat:debug}.\[wecool-chat\:scope\]{wecool-chat:scope}}:host{z-index:2147483647;touch-action:auto;--wecool-color-bg:#fff;--wecool-color-bg-secondary:#fafafa;--wecool-color-bg-muted:#f4f4f5;--wecool-color-bg-strong:#18181b;--wecool-color-text:#18181b;--wecool-color-text-on-strong:#fafafa;--wecool-color-text-muted:#71717a;--wecool-color-border:#e4e4e7;--wecool-color-border-strong:#d4d4d8;--wecool-color-error-bg:#fef2f2;--wecool-color-error-text:#dc2626;--wecool-color-primary:#2563eb;--wecool-color-primary-hover:#1d4ed8;--wecool-color-link:var(--wecool-color-primary,#2563eb);--wecool-color-link-hover:var(--wecool-color-primary-hover,#1d4ed8);font-size:max(16px,1rem);line-height:1.5;position:relative}@media (prefers-color-scheme:dark){:host{--wecool-color-bg:#18181b;--wecool-color-bg-secondary:#27272a;--wecool-color-bg-muted:#3f3f46;--wecool-color-bg-strong:#fafafa;--wecool-color-text:#fafafa;--wecool-color-text-on-strong:#18181b;--wecool-color-text-muted:#a1a1aa;--wecool-color-border:#3f3f46;--wecool-color-border-strong:#52525b;--wecool-color-error-bg:#450a0a;--wecool-color-error-text:#fca5a5}}:host([data-wecool-theme=light]),.wecool-float-container[data-wecool-theme=light],.wecool-embed-root[data-wecool-theme=light]{--wecool-color-bg:#fff;--wecool-color-bg-secondary:#fafafa;--wecool-color-bg-muted:#f4f4f5;--wecool-color-bg-strong:#18181b;--wecool-color-text:#18181b;--wecool-color-text-on-strong:#fafafa;--wecool-color-text-muted:#71717a;--wecool-color-border:#e4e4e7;--wecool-color-border-strong:#d4d4d8;--wecool-color-error-bg:#fef2f2;--wecool-color-error-text:#dc2626}:host([data-wecool-theme=dark]),.wecool-float-container[data-wecool-theme=dark],.wecool-embed-root[data-wecool-theme=dark]{--wecool-color-bg:#18181b;--wecool-color-bg-secondary:#27272a;--wecool-color-bg-muted:#3f3f46;--wecool-color-bg-strong:#fafafa;--wecool-color-text:#fafafa;--wecool-color-text-on-strong:#18181b;--wecool-color-text-muted:#a1a1aa;--wecool-color-border:#3f3f46;--wecool-color-border-strong:#52525b;--wecool-color-error-bg:#450a0a;--wecool-color-error-text:#fca5a5}.wecool-float-container,.wecool-embed-root{color:var(--wecool-color-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.wecool-float-container :focus-visible,.wecool-embed-root :focus-visible{outline:2px solid var(--wecool-color-primary,#2563eb);outline-offset:2px}.wecool-float-container :focus:not(:focus-visible),.wecool-embed-root :focus:not(:focus-visible){outline:none}@keyframes wecool-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.wecool-float-container{display:contents}.wecool-float-container--bottom-right .wecool-float-button{bottom:1.5rem;right:1.5rem}.wecool-float-container--bottom-left .wecool-float-button{bottom:1.5rem;left:1.5rem}.wecool-float-container--top-right .wecool-float-button{top:1.5rem;right:1.5rem}.wecool-float-container--top-left .wecool-float-button{top:1.5rem;left:1.5rem}.wecool-float-panel{border-radius:12px;max-width:23.75rem;max-height:min(32.5rem,100dvh - 1.25rem);position:fixed;overflow:hidden;box-shadow:0 8px 32px #0000001f;container:wecool-chat/inline-size}.wecool-float-panel--bottom-right,.wecool-float-panel--bottom-left,.wecool-float-panel--top-right,.wecool-float-panel--top-left{inset:.625rem}.wecool-float-panel--bottom-right{margin-top:auto;margin-left:auto}.wecool-float-panel--bottom-left{margin-top:auto;margin-right:auto}.wecool-float-panel--top-right{margin-bottom:auto;margin-left:auto}.wecool-float-panel--top-left{margin-bottom:auto;margin-right:auto}.wecool-float-container:has(.wecool-float-panel) .wecool-float-button{display:none}.wecool-float-panel--dragged{width:min(23.75rem,100vw - 1.25rem);height:min(32.5rem,100dvh - 1.25rem);margin:0;inset:auto}.wecool-float-panel--resized{max-width:none;max-height:calc(100dvh - 1.25rem)}.wecool-float-panel--fullscreen{border-radius:0;width:auto;max-width:none;height:100dvh;max-height:none;margin:0;inset:0}.wecool-float-panel[data-dragging=true],.wecool-float-panel[data-resizing=true]{-webkit-user-select:none;user-select:none}.wecool-resize-handle{touch-action:none;z-index:1;background-color:#0000;border:none;padding:0;position:absolute}.wecool-resize-handle:hover,.wecool-resize-handle:focus-visible{background-color:var(--wecool-color-border-strong);opacity:.6}.wecool-resize-handle--n,.wecool-resize-handle--s{cursor:ns-resize;height:.5rem;left:.75rem;right:.75rem}.wecool-resize-handle--n{top:0}.wecool-resize-handle--s{bottom:0}.wecool-resize-handle--e,.wecool-resize-handle--w{cursor:ew-resize;width:.5rem;top:.75rem;bottom:.75rem}.wecool-resize-handle--e{right:0}.wecool-resize-handle--w{left:0}.wecool-resize-handle--nw,.wecool-resize-handle--ne,.wecool-resize-handle--sw,.wecool-resize-handle--se{width:.75rem;height:.75rem}.wecool-resize-handle--nw{cursor:nwse-resize;top:0;left:0}.wecool-resize-handle--ne{cursor:nesw-resize;top:0;right:0}.wecool-resize-handle--sw{cursor:nesw-resize;bottom:0;left:0}.wecool-resize-handle--se{cursor:nwse-resize;bottom:0;right:0}@media (pointer:coarse){.wecool-resize-handle{display:none}}@media (forced-colors:active){.wecool-resize-handle:hover,.wecool-resize-handle:focus-visible{background-color:#0000;border:1px solid highlight}}.wecool-embed-root{height:100%;position:relative;container:wecool-chat/inline-size}.wecool-float-button{background-color:var(--wecool-color-bg-strong);width:3.25rem;height:3.25rem;color:var(--wecool-color-text-on-strong);cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;transition:transform .15s,box-shadow .15s;display:flex;position:fixed;box-shadow:0 4px 16px #00000029}.wecool-float-button:hover{transform:scale(1.05);box-shadow:0 6px 20px #0003}.wecool-panel{background-color:var(--wecool-color-bg);border:1px solid var(--wecool-color-border);border-radius:12px;flex-direction:column;height:100%;display:flex;overflow:hidden}.wecool-embed-root--sidebar-left .wecool-panel,.wecool-embed-root--sidebar-right .wecool-panel,.wecool-embed-root--header-banner .wecool-panel,.wecool-embed-root--footer-fixed .wecool-panel{border:none;border-radius:0;width:100%;height:100%}.wecool-embed-root--input-only{box-sizing:border-box;width:100%;height:100%}.wecool-header{border-bottom:1px solid var(--wecool-color-border);background-color:var(--wecool-color-bg);justify-content:space-between;align-items:center;padding:.1875rem .75rem;display:flex}.wecool-header--draggable{cursor:move;touch-action:none;-webkit-user-select:none;user-select:none}.wecool-header--spacer{border-bottom:none;height:.5rem}.wecool-header__close,.wecool-header__menu-toggle{min-width:2.75rem;min-height:2.75rem;color:var(--wecool-color-text-muted);cursor:pointer;background-color:#0000;border:none;border-radius:6px;justify-content:center;align-items:center;padding:.5rem;transition:all .15s;display:flex}.wecool-header__close:hover,.wecool-header__menu-toggle:hover{background-color:var(--wecool-color-bg-muted);color:var(--wecool-color-text)}.wecool-header__menu{position:relative}.wecool-header__menu-popover{border:1px solid var(--wecool-color-border);background-color:var(--wecool-color-bg);z-index:1;border-radius:8px;min-width:12rem;margin-top:.25rem;padding:.25rem;position:absolute;top:100%;right:0;box-shadow:0 8px 24px #0000001f}.wecool-header__menu-item{width:100%;min-height:2.25rem;color:var(--wecool-color-text);cursor:pointer;text-align:start;font-size:inherit;background-color:#0000;border:none;border-radius:6px;align-items:center;gap:.5rem;padding:.375rem .75rem;display:flex}.wecool-header__menu-item:hover:not(:disabled){background-color:var(--wecool-color-bg-muted)}.wecool-header__menu-item:disabled{color:var(--wecool-color-text-muted);cursor:not-allowed}.wecool-conversation-select{min-width:0;height:2.25rem;color:var(--wecool-color-text);background-color:var(--wecool-color-bg-secondary);border:1px solid var(--wecool-color-border);font-family:inherit;font-size:inherit;cursor:pointer;border-radius:8px;outline:none;flex:1;padding:0 .625rem;transition:border-color .15s}.wecool-conversation-select:focus-visible{border-color:var(--wecool-color-bg-strong)}.wecool-conversation-select:disabled{cursor:not-allowed;opacity:.5}.wecool-footer{border-top:1px solid var(--wecool-color-border);background-color:var(--wecool-color-bg);align-items:center;gap:.5rem;padding:.75rem;display:flex;position:relative}.wecool-footer__combobox{flex:1;min-width:0;display:flex}.wecool-footer__input{width:100%;min-height:2.625rem;max-height:4.125rem;color:var(--wecool-color-text);background-color:var(--wecool-color-bg-secondary);border:1px solid var(--wecool-color-border);resize:none;border-radius:8px;outline:none;flex:1;padding:.5rem .875rem;font-family:inherit;line-height:1.5rem;transition:border-color .15s;overflow-y:auto}.wecool-footer__input:focus-visible{border-color:var(--wecool-color-bg-strong)}.wecool-footer__button{cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;width:2.75rem;min-width:2.75rem;height:2.75rem;min-height:2.75rem;transition:all .15s;display:flex}.wecool-footer__button--send{background-color:var(--wecool-color-bg-strong);color:var(--wecool-color-text-on-strong)}.wecool-footer__button--send:disabled{opacity:.3;cursor:not-allowed}.wecool-footer__button--stop{background-color:var(--wecool-color-error-text);color:#fff}.wecool-footer__button--clear{color:var(--wecool-color-text-muted);background-color:#0000}.wecool-footer__button--clear:hover{background-color:var(--wecool-color-bg-muted);color:var(--wecool-color-text)}.wecool-message-list{background-color:var(--wecool-color-bg);flex-direction:column;flex:1;gap:.75rem;padding:1rem;display:flex;overflow-y:auto}.wecool-message-list__empty{color:var(--wecool-color-text-muted);flex:1;justify-content:center;align-items:center;font-size:.875rem;display:flex}.wecool-message-list__items{flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;display:flex}.wecool-message-row{flex-direction:column;max-width:85%;display:flex;position:relative}.wecool-message-row[data-message-role=user]{align-self:flex-end}.wecool-message-row[data-message-role=assistant]{align-self:flex-start}.wecool-message-row__time{font-variant-numeric:tabular-nums;color:var(--wecool-color-text-muted);margin-top:.25rem;font-size:.75rem}.wecool-message-row[data-message-role=user] .wecool-message-row__time{align-self:flex-end}.wecool-message-row[data-message-role=assistant] .wecool-message-row__time{align-self:flex-start}.wecool-message-bubble{word-break:break-word;cursor:text;padding:.625rem .875rem;font-size:.875rem;line-height:1.5;position:relative}.wecool-message-bubble--user{white-space:pre-wrap;background-color:var(--wecool-color-bg-strong);color:var(--wecool-color-text-on-strong);border-radius:12px}.wecool-message-bubble--assistant{background-color:var(--wecool-color-bg-muted);color:var(--wecool-color-text);border-radius:12px}.wecool-message-bubble--error{background-color:var(--wecool-color-error-bg);color:var(--wecool-color-error-text);border-radius:12px}.wecool-message-bubble--editing.wecool-message-bubble--user{background-color:var(--wecool-color-bg);color:var(--wecool-color-text);border:1px solid var(--wecool-color-border);padding:.375rem}.wecool-message-editor{align-items:center;gap:.375rem;display:flex}.wecool-message-editor__input{height:2rem;color:var(--wecool-color-text);background-color:var(--wecool-color-bg-secondary);border:1px solid var(--wecool-color-border);border-radius:6px;outline:none;flex:1;padding:0 .625rem;transition:border-color .15s}.wecool-message-editor__input:focus-visible{border-color:var(--wecool-color-bg-strong)}.wecool-message-editor__button{cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;width:2rem;min-width:1.5rem;height:2rem;min-height:1.5rem;transition:all .15s;display:flex}.wecool-message-editor__button--send{background-color:var(--wecool-color-bg-strong);color:var(--wecool-color-text-on-strong)}.wecool-message-editor__button--send:disabled{opacity:.3;cursor:not-allowed}.wecool-message-bubble__menu{background-color:var(--wecool-color-bg-muted);border:1px solid var(--wecool-color-border);width:1.5rem;min-width:1.5rem;height:1.5rem;min-height:1.5rem;color:var(--wecool-color-text-muted);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;transition:color .12s,background-color .12s;display:inline-flex;position:absolute;bottom:-.4375rem;right:-.4375rem}.wecool-message-bubble__menu:hover{background-color:var(--wecool-color-border);color:var(--wecool-color-text)}.wecool-message-popover{z-index:10;background:var(--wecool-color-bg);border:1px solid var(--wecool-color-border);border-radius:8px;flex-direction:column;gap:.125rem;min-width:8.75rem;padding:.25rem;animation:.12s ease-out wecool-popover-appear;display:flex;position:absolute;right:0;box-shadow:0 8px 24px #0000001f}.wecool-message-popover button{cursor:pointer;min-height:1.5rem;color:var(--wecool-color-text);text-align:left;background:0 0;border:none;border-radius:4px;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;font-size:.875rem;display:flex}.wecool-message-popover button:hover{background-color:var(--wecool-color-bg-muted)}@keyframes wecool-popover-appear{0%{opacity:0;transform:translateY(.25rem)}to{opacity:1;transform:translateY(0)}}.wecool-loading{background-color:var(--wecool-color-bg-muted);border-radius:12px;align-self:flex-start;align-items:center;gap:.375rem;max-width:85%;padding:.625rem .875rem;display:flex}.wecool-loading-dot{background-color:var(--wecool-color-text-muted);border-radius:50%;width:.375rem;height:.375rem;animation:1.4s ease-in-out infinite both wecool-bounce}.wecool-loading-dot:first-child{animation-delay:-.32s}.wecool-loading-dot:nth-child(2){animation-delay:-.16s}.wecool-icon--xs{width:.875em;height:.875em}.wecool-icon--sm{width:1em;height:1em}.wecool-icon--md{width:1.125em;height:1.125em}.wecool-icon--lg{width:1.375em;height:1.375em}@container wecool-chat (width<=30em){.wecool-message-list{padding:.5rem}.wecool-message-row{max-width:92%}}@container wecool-chat (width<=20em){.wecool-message-bubble{padding:.5em .625em}.wecool-header__label{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.wecool-loading-dot{transform:scale(1);animation:none!important}.wecool-float-button:hover{transform:none!important}}.wecool-tool-confirmation{color:var(--wecool-color-text);background-color:var(--wecool-color-bg-secondary);border:1px solid var(--wecool-color-border);border-radius:12px;flex-direction:column;gap:.625rem;margin-top:.5rem;padding:.75rem .875rem;font-size:.875rem;line-height:1.5;display:flex}.wecool-tool-confirmation__text{word-break:break-word;align-items:flex-start;gap:.5rem;margin:0;display:flex}.wecool-tool-confirmation__icon{color:var(--wecool-color-text-muted);flex-shrink:0}.wecool-tool-confirmation__tool-name{font-family:ui-monospace,monospace;font-size:.8125rem}.wecool-tool-confirmation__actions{justify-content:flex-end;gap:.5rem;display:flex}.wecool-tool-confirmation__button{cursor:pointer;border-radius:8px;min-width:4rem;min-height:2rem;padding:.25em .875em;font-size:.875rem;transition:all .15s}.wecool-tool-confirmation__button--cancel{color:var(--wecool-color-text);border:1px solid var(--wecool-color-border-strong);background-color:#0000}.wecool-tool-confirmation__button--cancel:hover{background-color:var(--wecool-color-bg-muted)}.wecool-tool-confirmation__button--approve{color:var(--wecool-color-text-on-strong);background-color:var(--wecool-color-bg-strong);border:1px solid var(--wecool-color-bg-strong)}.wecool-tool-confirmation__button--approve:hover{opacity:.85}.wecool-tool-confirmation--record{color:var(--wecool-color-text-muted);border:1px solid var(--wecool-color-border);background-color:#0000;gap:.375rem;padding:.625rem .875rem}.wecool-tool-confirmation--record .wecool-tool-confirmation__text{font-size:.8125rem}.wecool-tool-confirmation__outcome{align-items:center;gap:.375rem;margin:0;font-size:.8125rem;font-weight:600;display:flex}.wecool-tool-confirmation__outcome--approved{color:var(--wecool-color-text)}.wecool-tool-confirmation__outcome--declined{color:var(--wecool-color-text-muted)}.wecool-command-palette{background-color:var(--wecool-color-bg);border:1px solid var(--wecool-color-border);z-index:5;border-radius:12px;max-height:min(15rem,45dvh);margin:0;padding:.25rem;list-style:none;position:absolute;bottom:calc(100% - .25rem);left:.75rem;right:.75rem;overflow-y:auto;box-shadow:0 8px 24px #0000001f}.wecool-command-palette__option{cursor:pointer;border-radius:8px;align-items:baseline;gap:.5rem;min-height:1.5rem;padding:.5rem .625rem;display:flex}.wecool-command-palette__option--active{background-color:var(--wecool-color-bg-muted)}.wecool-command-palette__command{color:var(--wecool-color-text);flex-shrink:0;font-family:ui-monospace,monospace;font-size:.875rem}.wecool-command-palette__description{color:var(--wecool-color-text-muted);font-size:.8125rem}.wecool-command-dialog{z-index:20;background-color:var(--wecool-color-bg);border-radius:inherit;flex-direction:column;display:flex;position:absolute;inset:0}.wecool-embed-root--input-only .wecool-command-dialog{border:1px solid var(--wecool-color-border);border-radius:12px;max-height:min(24rem,70dvh);inset:auto 0 calc(100% + .5rem);overflow:hidden;box-shadow:0 8px 24px #00000029}.wecool-command-overlay{z-index:20;background-color:#0006;justify-content:center;align-items:center;padding:1rem;display:flex;position:absolute;inset:0}.wecool-command-dialog__header{border-bottom:1px solid var(--wecool-color-border);justify-content:space-between;align-items:center;gap:.5rem;padding:.875rem 1rem;display:flex}.wecool-command-dialog__title{color:var(--wecool-color-text);margin:0;font-size:1rem;font-weight:600}.wecool-command-dialog__subtitle{color:var(--wecool-color-text-muted);border-bottom:1px solid var(--wecool-color-border);margin:0;padding:.625rem 1rem;font-size:.8125rem}.wecool-command-dialog__close{min-width:2.75rem;min-height:2.75rem;color:var(--wecool-color-text-muted);cursor:pointer;background-color:#0000;border:none;border-radius:6px;justify-content:center;align-items:center;padding:.5rem;transition:all .15s;display:flex}.wecool-command-dialog__close:hover{background-color:var(--wecool-color-bg-muted);color:var(--wecool-color-text)}.wecool-command-dialog__body{flex:1;min-height:0;padding:.875rem 1rem;overflow-y:auto}.wecool-tools-dialog__list,.wecool-tools-dialog__examples{margin:0;padding:0;list-style:none}.wecool-tools-dialog__item{border-bottom:1px solid var(--wecool-color-border);padding:.625rem 0}.wecool-tools-dialog__item:last-child{border-bottom:none}.wecool-tools-dialog__name{color:var(--wecool-color-text);margin:0 0 .375rem;font-size:.9375rem;font-weight:600}.wecool-tools-dialog__name--fallback{-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;font-weight:400;display:-webkit-box;overflow:hidden}.wecool-tools-dialog__examples{flex-direction:column;gap:.25rem;display:flex}.wecool-tools-dialog__example{text-align:left;width:100%;min-height:1.5rem;color:var(--wecool-color-text);background-color:var(--wecool-color-bg-muted);border:1px solid var(--wecool-color-border);cursor:pointer;border-radius:8px;align-items:center;gap:.5rem;padding:.5rem .625rem;font-size:.8125rem;transition:background-color .15s,border-color .15s;display:flex}.wecool-tools-dialog__example-text{flex:1;min-width:0}.wecool-tools-dialog__example-icon{color:var(--wecool-color-text-muted);flex-shrink:0}.wecool-tools-dialog__example:hover,.wecool-tools-dialog__example:focus-visible{background-color:var(--wecool-color-bg-strong-muted,var(--wecool-color-border));border-color:var(--wecool-color-border-strong)}.wecool-tools-dialog__example:hover .wecool-tools-dialog__example-icon,.wecool-tools-dialog__example:focus-visible .wecool-tools-dialog__example-icon{color:var(--wecool-color-text)}.wecool-tools-dialog__empty{color:var(--wecool-color-text-muted);margin:0;font-size:.875rem}.wecool-help-dialog__list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.wecool-help-dialog__item{flex-direction:column;gap:.125rem;display:flex}.wecool-help-dialog__command{color:var(--wecool-color-text);font-family:ui-monospace,monospace;font-size:.875rem}.wecool-help-dialog__description{color:var(--wecool-color-text-muted);font-size:.8125rem}.wecool-command-confirmation{background-color:var(--wecool-color-bg);width:100%;max-width:22rem;margin-top:0;box-shadow:0 12px 32px #0000002e}@media (forced-colors:active){.wecool-float-button,.wecool-footer__button,.wecool-header__close,.wecool-message-editor__button,.wecool-message-popover button,.wecool-tool-confirmation__button,.wecool-command-dialog__close,.wecool-tools-dialog__example,.wecool-message-bubble__menu{color:buttontext;background-color:buttonface;border:1px solid buttontext}.wecool-message-bubble--user,.wecool-message-bubble--assistant,.wecool-message-bubble--error,.wecool-tool-confirmation,.wecool-command-dialog,.wecool-command-palette,.wecool-loading{border:1px solid canvastext}.wecool-command-palette__option--active{color:highlighttext;background-color:highlight}.wecool-float-container :focus-visible,.wecool-embed-root :focus-visible{outline-offset:2px;outline:2px solid highlight}}.wecool-layout{display:block}.wecool-layout--sidebar-left{z-index:2147483640;background:var(--wecool-color-bg,#fff);border-right:1px solid var(--wecool-color-border,#e5e5e5);width:min(22.5rem,100vw - 1.25rem);position:fixed;top:0;bottom:0;left:0;overflow:hidden;box-shadow:.25rem 0 .75rem #00000014}.wecool-layout--sidebar-right{z-index:2147483640;background:var(--wecool-color-bg,#fff);border-left:1px solid var(--wecool-color-border,#e5e5e5);width:min(22.5rem,100vw - 1.25rem);position:fixed;top:0;bottom:0;right:0;overflow:hidden;box-shadow:-.25rem 0 .75rem #00000014}.wecool-layout--header-banner{z-index:2147483640;background:var(--wecool-color-bg,#fff);border-bottom:1px solid var(--wecool-color-border,#e5e5e5);height:5rem;position:fixed;top:0;left:0;right:0;overflow:hidden;box-shadow:0 .25rem .75rem #00000014}.wecool-layout--header-banner.wecool-layout--transparent{-webkit-backdrop-filter:blur(.5rem);background:#ffffffd9}.wecool-layout--footer-fixed{z-index:2147483640;background:var(--wecool-color-bg,#fff);border-top:1px solid var(--wecool-color-border,#e5e5e5);max-height:50dvh;position:fixed;bottom:0;left:0;right:0;overflow:hidden;box-shadow:0 -.25rem .75rem #00000014}@media (prefers-color-scheme:dark){.wecool-layout--header-banner.wecool-layout--transparent{background:#18181bd9}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}.wecool-markdown{color:var(--wecool-color-text,#18181b);font-size:.875rem;line-height:1.6}.wecool-markdown>:first-child{margin-top:0}.wecool-markdown>:last-child{margin-bottom:0}.wecool-markdown p{word-break:break-word;margin:.5em 0}.wecool-markdown h1,.wecool-markdown h2,.wecool-markdown h3{margin:.8em 0 .4em;font-weight:600;line-height:1.3}.wecool-markdown h1{font-size:1.4em}.wecool-markdown h2{font-size:1.2em}.wecool-markdown h3{font-size:1.05em}.wecool-markdown h4,.wecool-markdown h5,.wecool-markdown h6{margin:.6em 0 .3em;font-size:1em;font-weight:600}.wecool-markdown ul,.wecool-markdown ol{margin:.5em 0;padding-left:1.5em}.wecool-markdown li,.wecool-markdown li>ul,.wecool-markdown li>ol{margin:.2em 0}.wecool-markdown blockquote{border-left:3px solid var(--wecool-color-border-strong,#d4d4d8);color:var(--wecool-color-text-muted,#71717a);margin:.5em 0;padding:.2em .8em}.wecool-markdown a{color:var(--wecool-color-link,#2563eb);text-decoration:underline}.wecool-markdown a:hover{color:var(--wecool-color-link-hover,#1d4ed8)}.wecool-markdown code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9em}.wecool-markdown :not(pre)>code{background-color:var(--wecool-color-border,#e4e4e7);border-radius:4px;padding:.0625rem .25rem}.wecool-markdown table{border-collapse:collapse;width:100%;margin:.5em 0;display:block;overflow-x:auto}.wecool-markdown th,.wecool-markdown td{border:1px solid var(--wecool-color-border-strong,#d4d4d8);text-align:left;padding:.375rem .625rem}.wecool-markdown th{background-color:var(--wecool-color-border,#e4e4e7);font-weight:600}.wecool-markdown hr{border:none;border-top:1px solid var(--wecool-color-border-strong,#d4d4d8);margin:1em 0}.wecool-code-block{background-color:var(--wecool-color-bg-secondary,#fafafa);border:1px solid var(--wecool-color-border,#e4e4e7);border-radius:8px;margin:.5em 0;overflow:hidden}.wecool-code-block__header{background-color:var(--wecool-color-border,#e4e4e7);color:var(--wecool-color-text-muted,#71717a);justify-content:space-between;align-items:center;padding:.25rem .625rem;font-size:.75rem;display:flex}.wecool-code-block__language{text-transform:lowercase;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.wecool-code-block__copy{cursor:pointer;min-width:1.5rem;min-height:1.5rem;color:var(--wecool-color-text-muted,#71717a);background:0 0;border:none;border-radius:4px;align-items:center;gap:.25rem;padding:.125rem .375rem;font-size:.75rem;display:inline-flex}.wecool-code-block__copy:hover{background-color:var(--wecool-color-border-strong,#d4d4d8);color:var(--wecool-color-text,#18181b)}.wecool-code-block pre{background-color:#0000;margin:0;padding:.625rem .75rem;overflow-x:auto}.wecool-code-block pre code{background:0 0;padding:0;font-size:.85em;line-height:1.5}.wecool-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wecool-message-attachments{flex-direction:column;gap:.5rem;margin-top:.5rem;display:flex}.wecool-message-attachment{flex-direction:column;gap:.375rem;margin:0;display:flex}.wecool-message-attachment__image{background-color:var(--wecool-color-bg,#fff);border-radius:.5rem;max-width:100%;height:auto;display:block}.wecool-message-attachment__download{background-color:var(--wecool-color-bg-secondary,#fafafa);border:1px solid var(--wecool-color-border,#e4e4e7);min-width:1.5rem;min-height:1.5rem;color:var(--wecool-color-text,#18181b);cursor:pointer;border-radius:.25rem;align-self:flex-start;align-items:center;gap:.25rem;padding:.375rem .625rem;font-size:.8125rem;display:inline-flex}.wecool-message-attachment__download:hover{background-color:var(--wecool-color-bg-muted,#f4f4f5)}pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}
|
|
3
|
+
/*$vite$:1*/
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,10 @@ import { WecoolChatControls } from './ui/types';
|
|
|
11
11
|
* no-op のため、利用者は ref パターンや requestAnimationFrame で初期化完了を待つこと。
|
|
12
12
|
*/
|
|
13
13
|
export type WecoolChatController = (() => void) & WecoolChatControls;
|
|
14
|
-
export type { Tool, ToolDefinition, ToolParameters, ToolHandlerContext, ChatConfig, ChatState, AssistantToolCall, Message, ToolCall, ChatEvent, } from './core/types';
|
|
14
|
+
export type { Tool, ToolDefinition, ToolParameters, ToolHandlerContext, LocalizedText, ChatConfig, ChatState, AssistantToolCall, Message, ToolCall, ChatEvent, } from './core/types';
|
|
15
|
+
export type { PendingToolConfirmation } from './core/tool-confirmation';
|
|
16
|
+
export type { DebugLogger } from './core/debug-logger';
|
|
17
|
+
export type { ObserveConfig, ObservedEvent } from './observe';
|
|
15
18
|
export type { ChatPlugin, PluginApiVersion, PluginContext, PluginId, PluginLogger, PluginTool, PluginToolInvocation, } from './plugin/types';
|
|
16
19
|
export { definePlugin } from './plugin/define';
|
|
17
20
|
export type { ChatWidgetProps, WecoolChatControls } from './ui/types';
|
|
@@ -21,6 +24,7 @@ export { ChatHeader } from './ui/components/ChatHeader';
|
|
|
21
24
|
export { ChatFooter } from './ui/components/ChatFooter';
|
|
22
25
|
export { MessageList } from './ui/components/MessageList';
|
|
23
26
|
export { FloatButton } from './ui/components/FloatButton';
|
|
27
|
+
export { MarkdownMessage } from './ui/components/markdown/MarkdownMessage';
|
|
24
28
|
export { ChatClient, createMessageId, createUserMessage, createAssistantMessage, createToolMessage, } from './core/client';
|
|
25
29
|
export { getCurrentPageInfo, mergeBuiltinTools } from './ui/builtin-tools';
|
|
26
30
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AAClC,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AAClC,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAmB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEtE;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,kBAAkB,CAAC;AAGrE,YAAY,EACV,IAAI,EACJ,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,S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