quassel 0.1.0 → 0.2.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.
Files changed (59) hide show
  1. package/ChatInputToolbar.d.ts +35 -6
  2. package/ChatMessages.d.ts +19 -15
  3. package/ChatPanel.d.ts +4 -2
  4. package/ChatSendContext.d.ts +7 -12
  5. package/DetailModeSwitch.d.ts +1 -1
  6. package/Markdown.d.ts +4 -11
  7. package/MessageActions.d.ts +1 -10
  8. package/PendingActionCard.d.ts +13 -0
  9. package/QuasselProvider.d.ts +76 -0
  10. package/README.md +39 -38
  11. package/StepPopover.d.ts +1 -1
  12. package/TimestampSwitch.d.ts +2 -2
  13. package/WorkingScenes.d.ts +3 -1
  14. package/attachments.d.ts +24 -0
  15. package/chat-attachments.d.ts +6 -0
  16. package/chat-scroll.d.ts +12 -0
  17. package/chat.css +2051 -0
  18. package/chunk-IGCFQJZB.js +183 -0
  19. package/chunk-IGCFQJZB.js.map +7 -0
  20. package/events.d.ts +74 -17
  21. package/events.js +11 -1
  22. package/index.d.ts +17 -10
  23. package/index.js +1615 -980
  24. package/index.js.map +4 -4
  25. package/options.d.ts +1 -1
  26. package/package.json +12 -10
  27. package/texts.d.ts +38 -11
  28. package/timestamps.d.ts +6 -4
  29. package/types.d.ts +6 -6
  30. package/ui/button.d.ts +8 -0
  31. package/ui/card.d.ts +5 -0
  32. package/ui/cn.d.ts +2 -0
  33. package/ui/popover.d.ts +4 -0
  34. package/ui/spinner.d.ts +2 -0
  35. package/ui/stop-button.d.ts +10 -0
  36. package/ui/toggle.d.ts +8 -0
  37. package/ui/useFileInput.d.ts +20 -0
  38. package/useChatAction.d.ts +6 -0
  39. package/QuestionCard.d.ts +0 -12
  40. package/chunk-DOLTANTM.js +0 -84
  41. package/chunk-DOLTANTM.js.map +0 -7
  42. package/css/chat.css +0 -927
  43. package/css/foundation/base.css +0 -24
  44. package/css/foundation/index.css +0 -3
  45. package/css/foundation/panel.css +0 -111
  46. package/css/foundation/tokens.css +0 -68
  47. package/css/foundation/wash.css +0 -26
  48. package/css/question.css +0 -149
  49. package/icons.d.ts +0 -15
  50. package/server/http.d.ts +0 -17
  51. package/server/index.d.ts +0 -6
  52. package/server/index.js +0 -478
  53. package/server/index.js.map +0 -7
  54. package/server/manager.d.ts +0 -12
  55. package/server/openai.d.ts +0 -16
  56. package/server/session.d.ts +0 -27
  57. package/server/store.d.ts +0 -18
  58. package/server/types.d.ts +0 -62
  59. package/useChat.d.ts +0 -14
package/server/types.d.ts DELETED
@@ -1,62 +0,0 @@
1
- import { ChatEvent } from "../events";
2
- /** Konfiguration gegen ein OpenAI-kompatibles Backend (OpenRouter, Ollama, vLLM, ...). */
3
- export interface AgentConfig {
4
- baseUrl: string;
5
- model: string;
6
- apiKey?: string;
7
- systemPrompt?: string;
8
- temperature?: number;
9
- topP?: number;
10
- maxTokens?: number;
11
- headers?: Record<string, string>;
12
- tools?: AgentTool[];
13
- }
14
- export interface AgentTool {
15
- name: string;
16
- description: string;
17
- parameters: object;
18
- run: (args: unknown) => Promise<string> | string;
19
- }
20
- export interface OpenAiToolCall {
21
- id: string;
22
- type: "function";
23
- function: {
24
- name: string;
25
- arguments: string;
26
- };
27
- }
28
- export interface OpenAiMessage {
29
- role: "system" | "user" | "assistant" | "tool";
30
- content: string | null;
31
- tool_calls?: OpenAiToolCall[];
32
- tool_call_id?: string;
33
- }
34
- export interface SessionState {
35
- id: string;
36
- events: ChatEvent[];
37
- history: OpenAiMessage[];
38
- updatedAt: number;
39
- }
40
- export interface SessionInfo {
41
- id: string;
42
- title: string;
43
- updatedAt: number;
44
- }
45
- /** Was der HTTP-Adapter von einer Unterhaltung braucht - AgentSession erfüllt das, andere Backends auch. */
46
- export interface ChatSessionLike {
47
- readonly running: boolean;
48
- subscribe(listener: (event: import("../events").ChatEvent) => void): () => void;
49
- send(text: string): void;
50
- stop(): void;
51
- }
52
- export interface ChatSessionProvider {
53
- get(id: string): Promise<ChatSessionLike>;
54
- list(): Promise<SessionInfo[]>;
55
- delete(id: string): Promise<void>;
56
- }
57
- export interface SessionStore {
58
- load(id: string): Promise<SessionState | undefined>;
59
- save(state: SessionState): Promise<void>;
60
- list(): Promise<SessionInfo[]>;
61
- delete(id: string): Promise<void>;
62
- }
package/useChat.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { ChatEvent, Message } from "./events";
2
- /**
3
- * Verbindet die Chat-Komponenten mit einem quassel/server-Endpunkt: ein dauerhafter
4
- * SSE-Strom liefert erst den Verlauf, dann live; Senden und Stoppen sind eigene Aufrufe
5
- * und erreichen so auch einen laufenden Turn. Bricht der Strom ab, verbindet der Hook
6
- * nach 3 Sekunden neu.
7
- */
8
- export declare function useChat(baseUrl: string, headers?: Record<string, string>, onEvent?: (event: ChatEvent) => void): {
9
- messages: Message[];
10
- running: boolean;
11
- connected: boolean;
12
- send: (text: string) => Promise<void>;
13
- stop: () => Promise<void>;
14
- };