@tasks-timeline/components 0.4.10 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TasksTimelineApp.d.ts +6 -1
- package/dist/TasksTimelineApp.d.ts.map +1 -1
- package/dist/components/AgentConversationPanel.d.ts +13 -0
- package/dist/components/AgentConversationPanel.d.ts.map +1 -0
- package/dist/components/DaySection.d.ts.map +1 -1
- package/dist/components/InputBar.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/contexts/SettingsContext.d.ts +6 -0
- package/dist/contexts/SettingsContext.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useAIAgent.d.ts +2 -1
- package/dist/hooks/useAIAgent.d.ts.map +1 -1
- package/dist/hooks/useAgentSessions.d.ts +8 -0
- package/dist/hooks/useAgentSessions.d.ts.map +1 -0
- package/dist/hooks/useVoiceInput.d.ts +2 -1
- package/dist/hooks/useVoiceInput.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23540 -22944
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +139 -129
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types.d.ts +62 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/voice-providers.d.ts +35 -6
- package/dist/utils/voice-providers.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { CustomSettingsTab, SettingsRepository, Task } from "./types";
|
|
2
|
+
import type { AgentEvent, CustomSettingsTab, SettingsRepository, Task } from "./types";
|
|
3
|
+
import type { VoiceRuntime } from "./utils/voice-providers";
|
|
3
4
|
import type { Capabilities, CapabilityContext } from "./capabilities";
|
|
4
5
|
import type { AIProviderFactory } from "./hooks/useAIAgent";
|
|
5
6
|
export interface TasksTimelineAppProps {
|
|
@@ -24,6 +25,10 @@ export interface TasksTimelineAppProps {
|
|
|
24
25
|
aiCapabilityContext?: CapabilityContext;
|
|
25
26
|
/** Fully constructed host capabilities for the built-in AI agent. */
|
|
26
27
|
aiCapabilities?: Capabilities;
|
|
28
|
+
/** Host runtime for voice input in embedded environments such as Obsidian. */
|
|
29
|
+
voiceRuntime?: VoiceRuntime;
|
|
30
|
+
/** Optional host observer for structured agent lifecycle events. */
|
|
31
|
+
onAgentEvent?: (event: AgentEvent) => void;
|
|
27
32
|
}
|
|
28
33
|
export declare const TasksTimelineApp: React.FC<TasksTimelineAppProps>;
|
|
29
34
|
//# sourceMappingURL=TasksTimelineApp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TasksTimelineApp.d.ts","sourceRoot":"","sources":["../src/TasksTimelineApp.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TasksTimelineApp.d.ts","sourceRoot":"","sources":["../src/TasksTimelineApp.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EACV,UAAU,EAGV,iBAAiB,EAGjB,kBAAkB,EAElB,IAAI,EAKL,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAO5D,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AA6I5D,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAGxE,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,mDAAmD;IACnD,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,+FAA+F;IAC/F,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACjD,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,kEAAkE;IAClE,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;IACxC,qEAAqE;IACrE,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,8EAA8E;IAC9E,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oEAAoE;IACpE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA+yB5D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AgentSession } from "../types";
|
|
3
|
+
interface AgentConversationPanelProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
sessions: AgentSession[];
|
|
6
|
+
activeSessionId: string | null;
|
|
7
|
+
onSelectSession: (sessionId: string) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onClear: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const AgentConversationPanel: React.FC<AgentConversationPanelProps>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=AgentConversationPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentConversationPanel.d.ts","sourceRoot":"","sources":["../../src/components/AgentConversationPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAc,YAAY,EAAkB,MAAM,UAAU,CAAC;AAKzE,UAAU,2BAA2B;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAoGD,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA2IxE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DaySection.d.ts","sourceRoot":"","sources":["../../src/components/DaySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAGpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAUzC,UAAU,eAAe;IACvB,KAAK,EAAE,QAAQ,CAAC;IAChB,kFAAkF;IAClF,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"DaySection.d.ts","sourceRoot":"","sources":["../../src/components/DaySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAGpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAUzC,UAAU,eAAe;IACvB,KAAK,EAAE,QAAQ,CAAC;IAChB,kFAAkF;IAClF,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyWhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputBar.d.ts","sourceRoot":"","sources":["../../src/components/InputBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,UAAU,aAAa;CAAG;AAE1B,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"InputBar.d.ts","sourceRoot":"","sources":["../../src/components/InputBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,UAAU,aAAa;CAAG;AAE1B,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAib5C,CAAC"}
|
|
@@ -12,6 +12,7 @@ export { InputBar } from "./InputBar";
|
|
|
12
12
|
export { TaskEditModal } from "./TaskEditModal";
|
|
13
13
|
export * from "./settings/index";
|
|
14
14
|
export { HelpModal } from "./HelpModal";
|
|
15
|
+
export { AgentConversationPanel } from "./AgentConversationPanel";
|
|
15
16
|
export { Toast } from "./Toast";
|
|
16
17
|
export type { ToastMessage, ToastVariant, ToastInteraction, DetailBlock, } from "../types";
|
|
17
18
|
export { Icon } from "./Icon";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAA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
2
2
|
import type { AppSettings, FilterState, SortState } from "../types";
|
|
3
|
+
import type { VoiceRuntime } from "../utils/voice-providers";
|
|
3
4
|
export interface SettingsContextType {
|
|
4
5
|
settings: AppSettings;
|
|
5
6
|
updateSettings: (settings: Partial<AppSettings>) => void;
|
|
@@ -12,6 +13,11 @@ export interface SettingsContextType {
|
|
|
12
13
|
sort: SortState;
|
|
13
14
|
onSortChange: (sort: SortState) => void;
|
|
14
15
|
onVoiceError: (msg: string) => void;
|
|
16
|
+
voiceRuntime?: VoiceRuntime;
|
|
17
|
+
hasAgentSession?: boolean;
|
|
18
|
+
isAgentPanelOpen?: boolean;
|
|
19
|
+
agentPanelUnreadCount?: number;
|
|
20
|
+
onOpenAgentPanel?: () => void;
|
|
15
21
|
onOpenSettings?: () => void;
|
|
16
22
|
}
|
|
17
23
|
export declare function useSettingsContext(): SettingsContextType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsContext.d.ts","sourceRoot":"","sources":["../../src/contexts/SettingsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"SettingsContext.d.ts","sourceRoot":"","sources":["../../src/contexts/SettingsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,WAAW,CAAC;IACtB,cAAc,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,cAAc,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAC/C,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAMD,wBAAgB,kBAAkB,wBAMjC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,2CAMA"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { useTaskFiltering } from "./useTaskFiltering";
|
|
|
7
7
|
export { useTaskStats } from "./useTaskStats";
|
|
8
8
|
export { useAIAgent } from "./useAIAgent";
|
|
9
9
|
export type { AIProviderFactory, UseAIAgentOptions } from "./useAIAgent";
|
|
10
|
+
export { useAgentSessions, reduceAgentSessions } from "./useAgentSessions";
|
|
10
11
|
export { useVoiceInput } from "./useVoiceInput";
|
|
11
12
|
export { usePortalContainer } from "./usePortalContainer";
|
|
12
13
|
export { useDateHelpers } from "./useDateHelpers";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppSettings, Task, ToastMessage, TokenUsageRecord } from "../types";
|
|
1
|
+
import type { AgentEvent, AppSettings, Task, ToastMessage, TokenUsageRecord } from "../types";
|
|
2
2
|
import type { IAIProvider } from "../providers/types";
|
|
3
3
|
import type { Capabilities, CapabilityContext } from "../capabilities";
|
|
4
4
|
interface TokenUsageUpdate {
|
|
@@ -12,6 +12,7 @@ export interface UseAIAgentOptions {
|
|
|
12
12
|
providerFactory?: AIProviderFactory;
|
|
13
13
|
capabilities?: Capabilities;
|
|
14
14
|
capabilityContext?: CapabilityContext;
|
|
15
|
+
onAgentEvent?: (event: AgentEvent) => void;
|
|
15
16
|
}
|
|
16
17
|
export declare const useAIAgent: (tasks: Task[], onTaskAdded: (task: Task) => void | Promise<void>, onTaskUpdated: (task: Task, previous: Task) => void | Promise<void>, onTaskDeleted: (taskId: string, previous: Task) => void | Promise<void>, settings: AppSettings, _onManualAdd: (t: Partial<Task>) => void, onNotify: (type: "success" | "error" | "info" | "warning", title: string, desc?: string) => void, onTokenUsageUpdate?: (update: TokenUsageUpdate) => void, aiSystemPrompt?: string, onShowToast?: (toast: Omit<ToastMessage, "id">) => void, onConfirm?: (title: string, description?: string) => Promise<boolean | null>, onSelect?: (title: string, options: {
|
|
17
18
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAIAgent.d.ts","sourceRoot":"","sources":["../../src/hooks/useAIAgent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAe,WAAW,EAAc,MAAM,oBAAoB,CAAC;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGvE,UAAU,gBAAgB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,gBAAgB,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAC9B,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,gBAAgB,CAAC,EACnD,MAAM,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,gBAAgB,CAAC,CAAC,KACpF,OAAO,CAAC,WAAW,CAAC,CAAC;AAE1B,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,iBAAiB,CAA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C,IAAI,CAAC,EACnE,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EACvE,UAAU,WAAW,EACrB,cAAc,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,EACxC,UAAU,CACR,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9C,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,KACV,IAAI,EACT,qBAAqB,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,EACvD,iBAAiB,MAAM,EACvB,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,EACvD,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,EAC5E,WAAW,CACT,KAAK,EAAE,MAAM,EACb,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,KACxC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,EAC3B,WAAW,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,EACvD,UAAU,iBAAiB;6BASW,MAAM;CAmP7C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AgentEvent, AgentSession } from "../types";
|
|
2
|
+
export declare function reduceAgentSessions(sessions: AgentSession[], event: AgentEvent): AgentSession[];
|
|
3
|
+
export declare function useAgentSessions(onAgentEvent?: (event: AgentEvent) => void): {
|
|
4
|
+
agentSessions: AgentSession[];
|
|
5
|
+
emitAgentEvent: (event: AgentEvent) => void;
|
|
6
|
+
clearAgentSessions: () => void;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useAgentSessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAgentSessions.d.ts","sourceRoot":"","sources":["../../src/hooks/useAgentSessions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,UAAU,EACV,YAAY,EAEb,MAAM,UAAU,CAAC;AAsClB,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,YAAY,EAAE,EACxB,KAAK,EAAE,UAAU,GAChB,YAAY,EAAE,CA4FhB;AAED,wBAAgB,gBAAgB,CAC9B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;4BAKhC,UAAU;;EAgBrB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type VoiceRuntime } from "../utils/voice-providers";
|
|
1
2
|
import type { VoiceConfig } from "../types";
|
|
2
|
-
export declare const useVoiceInput: (voiceConfig: VoiceConfig, onResult: (text: string) => void, onError: (msg: string) => void) => {
|
|
3
|
+
export declare const useVoiceInput: (voiceConfig: VoiceConfig, onResult: (text: string) => void, onError: (msg: string) => void, runtime?: VoiceRuntime) => {
|
|
3
4
|
isListening: boolean;
|
|
4
5
|
start: () => void;
|
|
5
6
|
stop: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVoiceInput.d.ts","sourceRoot":"","sources":["../../src/hooks/useVoiceInput.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useVoiceInput.d.ts","sourceRoot":"","sources":["../../src/hooks/useVoiceInput.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,eAAO,MAAM,aAAa,GACxB,aAAa,WAAW,EACxB,UAAU,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAChC,SAAS,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,EAC9B,UAAU,YAAY;;;;CA6GvB,CAAC"}
|