@qwanyx/stack 0.2.93 → 0.2.95

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.
@@ -114,6 +114,7 @@ export declare class AuthService {
114
114
  /**
115
115
  * Login with email and password
116
116
  * Uses system coprocessor for authentication
117
+ * If systemId is configured, validates user belongs to that system
117
118
  */
118
119
  login(email: string, password: string): Promise<LoginResult>;
119
120
  /**
@@ -5,6 +5,12 @@
5
5
  * All operations communicate through the unified `/spu/invoke` endpoint.
6
6
  */
7
7
  export type QwanyxModel = 'xlm' | 'mlm' | 'nlm';
8
+ export type TTSVoice = 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'fable' | 'nova' | 'onyx' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar';
9
+ export declare const TTS_VOICES: {
10
+ id: TTSVoice;
11
+ name: string;
12
+ description: string;
13
+ }[];
8
14
  export interface LLMClientConfig {
9
15
  baseUrl: string;
10
16
  system_id: string;
@@ -62,6 +68,15 @@ export declare class LLMClient {
62
68
  temperature?: number;
63
69
  maxTokens?: number;
64
70
  }): Promise<string>;
71
+ /**
72
+ * Convert text to speech audio
73
+ * @param text - The text to convert to speech
74
+ * @param options - TTS options
75
+ * @returns Base64 encoded MP3 audio
76
+ */
77
+ tts(text: string, options?: {
78
+ voice?: TTSVoice;
79
+ }): Promise<string>;
65
80
  /**
66
81
  * Transcribe audio to text
67
82
  */
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Netflix Card Component
3
+ * Individual card with hover effect
4
+ */
5
+ import { NetflixCardProps } from './types';
6
+ export declare function NetflixCard({ node, aspectRatio, onClick }: NetflixCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Netflix Detail Modal
3
+ * Full detail view for a node
4
+ */
5
+ import { NetflixDetailProps } from './types';
6
+ export declare function NetflixDetail({ node, onClose }: NetflixDetailProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Netflix Lane Component
3
+ * Horizontal scrollable row with Netflix-style arrows
4
+ */
5
+ import { NetflixLaneProps } from './types';
6
+ export declare function NetflixLane({ title, nodes, cardAspectRatio, onNodeClick }: NetflixLaneProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Netflix Stack Component
3
+ * Netflix-like browsing experience with horizontal lanes
4
+ */
5
+ import { NetflixStackProps } from './types';
6
+ export declare function NetflixStack({ nodes, lanes, cardAspectRatio, onNodeClick, }: NetflixStackProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Netflix Stack - Netflix-like browsing experience
3
+ */
4
+ export { NetflixStack } from './NetflixStack';
5
+ export { NetflixLane } from './NetflixLane';
6
+ export { NetflixCard } from './NetflixCard';
7
+ export { NetflixDetail } from './NetflixDetail';
8
+ export type { NetflixStackProps, NetflixLaneProps, NetflixCardProps, NetflixDetailProps, LaneConfig, } from './types';
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Netflix Stack Types
3
+ */
4
+ import { GraphNode } from '../../types';
5
+ export interface LaneConfig {
6
+ id: string;
7
+ title: string;
8
+ filter: (node: GraphNode) => boolean;
9
+ }
10
+ export interface NetflixStackProps {
11
+ nodes: GraphNode[];
12
+ lanes: LaneConfig[];
13
+ cardAspectRatio?: '1:1' | '2:3' | '16:9';
14
+ onNodeClick?: (node: GraphNode) => void;
15
+ }
16
+ export interface NetflixLaneProps {
17
+ title: string;
18
+ nodes: GraphNode[];
19
+ cardAspectRatio: '1:1' | '2:3' | '16:9';
20
+ onNodeClick: (node: GraphNode) => void;
21
+ }
22
+ export interface NetflixCardProps {
23
+ node: GraphNode;
24
+ aspectRatio: '1:1' | '2:3' | '16:9';
25
+ onClick: () => void;
26
+ }
27
+ export interface NetflixDetailProps {
28
+ node: GraphNode;
29
+ onClose: () => void;
30
+ }
31
+ export declare function getNodeImage(node: GraphNode): string | undefined;
32
+ export declare function getNodeSubtitle(node: GraphNode): string | undefined;
33
+ export declare function getNodeDescription(node: GraphNode): string | undefined;
34
+ export declare function getNodeMeta(node: GraphNode): string;
@@ -3,6 +3,7 @@
3
3
  * Combines AudioEditor (recorder + transcription) with a textarea + AI dropdown
4
4
  * Pattern from TaskEditModal: AudioEditor + Notes component
5
5
  */
6
+ import { type TTSVoice } from '../client/LLMClient';
6
7
  export interface VoiceTextEditorProps {
7
8
  /** Label shown above the textarea */
8
9
  label: string;
@@ -22,5 +23,13 @@ export interface VoiceTextEditorProps {
22
23
  className?: string;
23
24
  /** Number of rows for textarea (if not flex) */
24
25
  rows?: number;
26
+ /** Called to generate TTS audio - should return filename */
27
+ onGenerateTTS?: (text: string, voice: TTSVoice) => Promise<string>;
28
+ /** URL of existing audio for playback */
29
+ audioUrl?: string;
30
+ /** Selected voice */
31
+ voice?: TTSVoice;
32
+ /** Called when voice selection changes */
33
+ onVoiceChange?: (voice: TTSVoice) => void;
25
34
  }
26
- export declare function VoiceTextEditor({ label, value, onChange, onTranscribe, onAIAction, onAIPrompt, placeholder, className, rows }: VoiceTextEditorProps): import("react/jsx-runtime").JSX.Element;
35
+ export declare function VoiceTextEditor({ label, value, onChange, onTranscribe, onAIAction, onAIPrompt, placeholder, className, rows, onGenerateTTS, audioUrl, voice, onVoiceChange }: VoiceTextEditorProps): import("react/jsx-runtime").JSX.Element;