@ottocode/web-sdk 0.1.310 → 0.1.312
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/assets/provider-logos.d.ts +1 -0
- package/dist/assets/provider-logos.d.ts.map +1 -1
- package/dist/components/chat/ChatInput.d.ts +4 -0
- package/dist/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/components/chat/ChatInputContainer.d.ts +4 -0
- package/dist/components/chat/ChatInputContainer.d.ts.map +1 -1
- package/dist/components/chat/ConfigModal.d.ts +3 -1
- package/dist/components/chat/ConfigModal.d.ts.map +1 -1
- package/dist/components/chat/ConfigSelector.d.ts.map +1 -1
- package/dist/components/chat/InputApprovalBar.d.ts.map +1 -1
- package/dist/components/chat/InputSecureInputBar.d.ts.map +1 -1
- package/dist/components/chat/InputSubagentsBar.d.ts.map +1 -1
- package/dist/components/chat/InputTodosBar.d.ts.map +1 -1
- package/dist/components/chat/NewSessionLanding.d.ts +4 -0
- package/dist/components/chat/NewSessionLanding.d.ts.map +1 -1
- package/dist/components/chat/input-bar-chrome.d.ts +24 -0
- package/dist/components/chat/input-bar-chrome.d.ts.map +1 -0
- package/dist/components/common/OttoOIcon.d.ts +8 -0
- package/dist/components/common/OttoOIcon.d.ts.map +1 -0
- package/dist/components/common/ProviderLogo.d.ts.map +1 -1
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4718 -3514
- package/dist/components/index.js.map +46 -36
- package/dist/components/messages/MessageThreadContainer.d.ts +6 -0
- package/dist/components/messages/MessageThreadContainer.d.ts.map +1 -1
- package/dist/components/messages/OttoKickoffNotice.d.ts +15 -0
- package/dist/components/messages/OttoKickoffNotice.d.ts.map +1 -0
- package/dist/components/messages/OttoWakeupNotice.d.ts +12 -0
- package/dist/components/messages/OttoWakeupNotice.d.ts.map +1 -0
- package/dist/components/messages/UserMessageGroup.d.ts.map +1 -1
- package/dist/components/messages/compactActivity.d.ts.map +1 -1
- package/dist/components/messages/otto-notice-parsing.d.ts +43 -0
- package/dist/components/messages/otto-notice-parsing.d.ts.map +1 -0
- package/dist/components/messages/renderers/GoalToolRenderer.d.ts.map +1 -1
- package/dist/components/onboarding/OnboardingModal.d.ts.map +1 -1
- package/dist/components/onboarding/steps/ProviderSetupStep.d.ts +10 -0
- package/dist/components/onboarding/steps/ProviderSetupStep.d.ts.map +1 -1
- package/dist/components/otto/OttoGoalBar.d.ts +18 -0
- package/dist/components/otto/OttoGoalBar.d.ts.map +1 -0
- package/dist/components/otto/OttoSessionRail.d.ts +15 -0
- package/dist/components/otto/OttoSessionRail.d.ts.map +1 -0
- package/dist/components/otto/OttoSessionView.d.ts +14 -0
- package/dist/components/otto/OttoSessionView.d.ts.map +1 -0
- package/dist/components/otto/OttoTabBar.d.ts +20 -0
- package/dist/components/otto/OttoTabBar.d.ts.map +1 -0
- package/dist/components/otto/OttoWorkspace.d.ts +20 -0
- package/dist/components/otto/OttoWorkspace.d.ts.map +1 -0
- package/dist/components/otto/index.d.ts +7 -0
- package/dist/components/otto/index.d.ts.map +1 -0
- package/dist/components/sessions/SessionListContainer.d.ts +8 -0
- package/dist/components/sessions/SessionListContainer.d.ts.map +1 -1
- package/dist/components/subagents/SubagentFloatingViewer.d.ts +3 -2
- package/dist/components/subagents/SubagentFloatingViewer.d.ts.map +1 -1
- package/dist/components/titlebar/TitleBar.d.ts +48 -0
- package/dist/components/titlebar/TitleBar.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +267 -70
- package/dist/hooks/index.js.map +13 -12
- package/dist/hooks/useAgents.d.ts.map +1 -1
- package/dist/hooks/useAuthStatus.d.ts +5 -0
- package/dist/hooks/useAuthStatus.d.ts.map +1 -1
- package/dist/hooks/useChatComposer.d.ts.map +1 -1
- package/dist/hooks/useEdgeHover.d.ts +26 -0
- package/dist/hooks/useEdgeHover.d.ts.map +1 -0
- package/dist/hooks/useGoals.d.ts +34 -6
- package/dist/hooks/useGoals.d.ts.map +1 -1
- package/dist/hooks/useSessionStream.d.ts.map +1 -1
- package/dist/hooks/useSessions.d.ts +9 -2
- package/dist/hooks/useSessions.d.ts.map +1 -1
- package/dist/index.js +4864 -3571
- package/dist/index.js.map +48 -38
- package/dist/lib/api-client/auth.d.ts +10 -0
- package/dist/lib/api-client/auth.d.ts.map +1 -1
- package/dist/lib/api-client/goals.d.ts +9 -1
- package/dist/lib/api-client/goals.d.ts.map +1 -1
- package/dist/lib/api-client/index.d.ts +18 -0
- package/dist/lib/api-client/index.d.ts.map +1 -1
- package/dist/lib/api-client/sessions.d.ts +2 -0
- package/dist/lib/api-client/sessions.d.ts.map +1 -1
- package/dist/lib/index.js +45 -3
- package/dist/lib/index.js.map +6 -6
- package/dist/stores/index.d.ts +1 -1
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +57 -56
- package/dist/stores/index.js.map +6 -6
- package/dist/stores/subagentViewerStore.d.ts +20 -5
- package/dist/stores/subagentViewerStore.d.ts.map +1 -1
- package/dist/stores/workspaceTabStore.d.ts +14 -0
- package/dist/stores/workspaceTabStore.d.ts.map +1 -0
- package/dist/types/api.d.ts +2 -2
- package/dist/types/api.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/components/goals/GoalsSidebar.d.ts +0 -6
- package/dist/components/goals/GoalsSidebar.d.ts.map +0 -1
- package/dist/components/goals/GoalsSidebarToggle.d.ts +0 -6
- package/dist/components/goals/GoalsSidebarToggle.d.ts.map +0 -1
- package/dist/components/goals/index.d.ts +0 -3
- package/dist/components/goals/index.d.ts.map +0 -1
- package/dist/stores/goalsPanelStore.d.ts +0 -9
- package/dist/stores/goalsPanelStore.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAgents.d.ts","sourceRoot":"","sources":["../../src/hooks/useAgents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,gB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cAAc,CAAC,OAAO,GAAE,gBAAqB;;;mBA+Eyl2C,CAAC;;;kBAA6R,CAAC;gBAA0D,CAAC;aAA4B,CAAC;;;UArE5g3C;AAED,wBAAgB,cAAc;;;;;;;;mBAmE2h0C,CAAC;0BAAwC,CAAC;;sBAA8D,CAAC;oBAAyC,CAAC;;;sBAA2F,CAAC;oBAAyC,CAAC;;;sBAA0F,CAAC;oBAAyC,CAAC;;gBAAoD,CAAC;aAA2B,CAAC;;;;;;UAhEhg1C,MAAM;WAAS,gBAAgB;YAQtE;AAED,wBAAgB,cAAc;;;;;;;;;;mBAsDm7tC,CAAC;0BAAwC,CAAC;;sBAA8D,CAAC;oBAAyC,CAAC;;;sBAA2F,CAAC;oBAAyC,CAAC;;;sBAA0F,CAAC;oBAAyC,CAAC;;gBAAoD,CAAC;aAA2B,CAAC;;;;;;UA7Cv7uC,MAAM;YACJ,OAAO,GAAG,QAAQ;YAmB5B;AAED,wBAAgB,kBAAkB;;;;;;oBAuBo8E,CAAC;kBAAsD,CAAC;qBAA2B,CAAC;sBAA4B,CAAC;aAAmE,CAAC;eAA8B,CAAC;qBAA2B,CAAC;kBAAwB,CAAC;kBAAuB,CAAC;qBAA2B,CAAC;wBAA8B,CAAC;kCAAwC,CAAC;mBAA+B,CAAC;;2BAb14F;AAED,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,MAAM,CAQR"}
|
|
@@ -76,6 +76,11 @@ export declare function useAuthStatus(): {
|
|
|
76
76
|
status: "complete" | "pending" | "error";
|
|
77
77
|
error?: string;
|
|
78
78
|
}>;
|
|
79
|
+
startKimiDeviceFlow: any;
|
|
80
|
+
pollKimiDeviceFlow: (sessionId: string) => Promise<{
|
|
81
|
+
status: "complete" | "pending" | "error";
|
|
82
|
+
error?: string;
|
|
83
|
+
}>;
|
|
79
84
|
getCopilotAuthMethods: any;
|
|
80
85
|
saveCopilotToken: (token: string) => Promise<{
|
|
81
86
|
success: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuthStatus.d.ts","sourceRoot":"","sources":["../../src/hooks/useAuthStatus.ts"],"names":[],"mappings":"AAQA,wBAAgB,aAAa;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useAuthStatus.d.ts","sourceRoot":"","sources":["../../src/hooks/useAuthStatus.ts"],"names":[],"mappings":"AAQA,wBAAgB,aAAa;;;;;;;;qBAoBX,CAAC;;;;gBACsB,CAAC;;;yBAGF,CAAC;4BAA+B,CAAC;kBACrD,CAAC;;qBAGJ,CAAC;;;;;;;;;wBAKP,CAAC;;;;;;;;;+BAiCS,MAAM;;;;4BAmBR,MAAM,UAAU,MAAM;;;;8BAoB1B;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,aAAa,EACV,mBAAmB,GACnB,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,QAAQ,CAAC;QACZ,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,aAAa,EAAE,OAAO,CAAC;KACvB;;;;+BA6BgB,MAAM;;;;;2BAoDZ,MAAM,SAAS,MAAM;iCA4Bf,MAAM,SAAS,MAAM;;;;kCA+BrB,MAAM,QAAQ,MAAM,aAAa,MAAM;;sCAqEtC,MAAM;;;;;uCAXN,MAAM;;;;;oCAsBN,MAAM;;;;;8BAWV,MAAM;;;;;;;;;;;;;;;;;EAgErB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatComposer.d.ts","sourceRoot":"","sources":["../../src/hooks/useChatComposer.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,sBAAsB;IACtC,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC/B,SAAS,EACT,YAAY,GACZ,GAAE,sBAA2B;;;;;;;;wBAoBJ,CAAC;sBACG,CAAC;yBAA2B,CAAC;0BACrC,CAAC;iBACkC,CAAC;mBAC7C,CAAC;yBAA2B,CAAC;sBACzB,CAAA;sBAAwB,CAAA;yBAEjC,CAAC;4BACI,CAAC;sCAAwC,CAAC;uBAC3C,CAAC;;;;;;;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"useChatComposer.d.ts","sourceRoot":"","sources":["../../src/hooks/useChatComposer.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,sBAAsB;IACtC,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAC/B,SAAS,EACT,YAAY,GACZ,GAAE,sBAA2B;;;;;;;;wBAoBJ,CAAC;sBACG,CAAC;yBAA2B,CAAC;0BACrC,CAAC;iBACkC,CAAC;mBAC7C,CAAC;yBAA2B,CAAC;sBACzB,CAAA;sBAAwB,CAAA;yBAEjC,CAAC;4BACI,CAAC;sCAAwC,CAAC;uBAC3C,CAAC;;;;;;;;;;;;;;;+BA8BG,MAAM;uCA+BD,OAAO;wCAgBN,MAAM;kCAUT,MAAM;6CAnBH,MAAM,YAAY,MAAM;EA+C7C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface UseEdgeHoverOptions {
|
|
2
|
+
/** Which window edge triggers the reveal. */
|
|
3
|
+
side: 'left' | 'right';
|
|
4
|
+
/** Master switch — usually `preferences.smartEdges && collapsed`. */
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
/** Fraction of window width that counts as the hover zone. */
|
|
7
|
+
hoverRatio: number;
|
|
8
|
+
/**
|
|
9
|
+
* Width (px) the revealed surface occupies; the hover zone expands to
|
|
10
|
+
* this while visible so the surface doesn't dismiss under the cursor.
|
|
11
|
+
*/
|
|
12
|
+
activeWidth?: number;
|
|
13
|
+
/** Elements matching this selector suppress the edge reveal. */
|
|
14
|
+
ignoreSelector?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Smart-edges behavior: reveals a hidden edge surface (sidebar/rail) when
|
|
18
|
+
* the cursor lingers near a window edge, and hides it shortly after the
|
|
19
|
+
* cursor leaves. Mirrors the desktop app's hover-show/hide delays.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useEdgeHover({ side, enabled, hoverRatio, activeWidth, ignoreSelector, }: UseEdgeHoverOptions): {
|
|
22
|
+
isVisible: boolean;
|
|
23
|
+
isHoverPending: boolean;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useEdgeHover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEdgeHover.d.ts","sourceRoot":"","sources":["../../src/hooks/useEdgeHover.ts"],"names":[],"mappings":"AAKA,UAAU,mBAAmB;IAC5B,6CAA6C;IAC7C,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC5B,IAAI,EACJ,OAAO,EACP,UAAU,EACV,WAAW,EACX,cAAc,GACd,EAAE,mBAAmB;;;EA0GrB"}
|
package/dist/hooks/useGoals.d.ts
CHANGED
|
@@ -1,25 +1,53 @@
|
|
|
1
|
-
import type { GoalStatus, GoalTaskStatus, SubagentStatus } from '../lib/api-client';
|
|
1
|
+
import type { Goal, GoalStatus, GoalTaskStatus, SubagentStatus } from '../lib/api-client';
|
|
2
2
|
export declare const goalQueryKey: (sessionId: string | undefined) => string[];
|
|
3
|
+
export declare const projectGoalsQueryKey: readonly ["goals", "project"];
|
|
3
4
|
export declare const subagentsQueryKey: (sessionId: string | undefined) => string[];
|
|
4
5
|
export declare function useOttoEnabled(): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Lists every goal for the current project (active, completed, abandoned),
|
|
8
|
+
* each with its full task queue. Powers the Otto tab overview and goal view.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useProjectGoals(): import("@tanstack/react-query").UseQueryResult<{
|
|
11
|
+
goals: Goal[];
|
|
12
|
+
}, Error>;
|
|
13
|
+
/**
|
|
14
|
+
* Appends tasks to a goal from the Otto tab. Updates the project goals cache
|
|
15
|
+
* with the returned goal so the queue refreshes immediately.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useAddProjectGoalTasks(): import("@tanstack/react-query").UseMutationResult<{
|
|
18
|
+
goal: Goal;
|
|
19
|
+
}, Error, {
|
|
20
|
+
goalId: string;
|
|
21
|
+
tasks: string[];
|
|
22
|
+
}, unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Deletes a goal task from the Otto tab. The server rejects in_progress
|
|
25
|
+
* tasks with a 409 — surface the error to the caller via onError.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useDeleteProjectGoalTask(): import("@tanstack/react-query").UseMutationResult<{
|
|
28
|
+
goal: Goal;
|
|
29
|
+
}, Error, {
|
|
30
|
+
goalId: string;
|
|
31
|
+
taskId: string;
|
|
32
|
+
}, unknown>;
|
|
5
33
|
export declare function useSessionGoal(sessionId: string | undefined): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
-
goal:
|
|
34
|
+
goal: Goal | null;
|
|
7
35
|
}, Error>;
|
|
8
36
|
export declare function useCreateSessionGoal(sessionId: string | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
9
|
-
goal:
|
|
37
|
+
goal: Goal;
|
|
10
38
|
}, Error, {
|
|
11
39
|
title: string;
|
|
12
40
|
tasks?: string[];
|
|
13
41
|
}, unknown>;
|
|
14
42
|
export declare function useUpdateGoal(sessionId: string | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
15
|
-
goal:
|
|
43
|
+
goal: Goal;
|
|
16
44
|
}, Error, {
|
|
17
45
|
goalId: string;
|
|
18
46
|
title?: string;
|
|
19
47
|
status?: GoalStatus;
|
|
20
48
|
}, unknown>;
|
|
21
49
|
export declare function useAddGoalTasks(sessionId: string | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
22
|
-
goal:
|
|
50
|
+
goal: Goal;
|
|
23
51
|
}, Error, {
|
|
24
52
|
goalId: string;
|
|
25
53
|
tasks: string[];
|
|
@@ -41,7 +69,7 @@ export declare function useSessionSubagents(sessionId: string | undefined, statu
|
|
|
41
69
|
* automated tagged kickoff into the main session and marks the goal started.
|
|
42
70
|
*/
|
|
43
71
|
export declare function useStartGoal(sessionId: string | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
44
|
-
goal:
|
|
72
|
+
goal: Goal;
|
|
45
73
|
}, Error, {
|
|
46
74
|
goalId: string;
|
|
47
75
|
}, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGoals.d.ts","sourceRoot":"","sources":["../../src/hooks/useGoals.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,UAAU,EACV,cAAc,EACd,cAAc,EACd,MAAM,mBAAmB,CAAC;AAG3B,eAAO,MAAM,YAAY,GAAI,WAAW,MAAM,GAAG,SAAS,aAGzD,CAAC;AACF,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,GAAG,SAAS,aAG9D,CAAC;AAEF,wBAAgB,cAAc,IAAI,OAAO,CAGxC;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;;UAW3D;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;;;WAGpC,MAAM;YAAU,MAAM,EAAE;YAQrD;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,G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G;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;;;YAG1B,MAAM;YAWrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSessionStream.d.ts","sourceRoot":"","sources":["../../src/hooks/useSessionStream.ts"],"names":[],"mappings":"AAwBA,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,UAAO,
|
|
1
|
+
{"version":3,"file":"useSessionStream.d.ts","sourceRoot":"","sources":["../../src/hooks/useSessionStream.ts"],"names":[],"mappings":"AAwBA,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,UAAO,QAg+Dd"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { CreateSessionRequest, UpdateSessionRequest, Session, SessionsPage } from '../types/api';
|
|
2
2
|
export declare const sessionsQueryKey: readonly ["sessions", "list"];
|
|
3
|
-
export
|
|
4
|
-
export declare function
|
|
3
|
+
export type SessionListFilter = 'otto' | undefined;
|
|
4
|
+
export declare function useSessionsInfinite(sessionType?: SessionListFilter): import("@tanstack/react-query").UseInfiniteQueryResult<import("@tanstack/query-core").InfiniteData<SessionsPage, unknown>, Error>;
|
|
5
|
+
export declare function useSessions(sessionType?: SessionListFilter): {
|
|
5
6
|
data: Session[];
|
|
6
7
|
isLoading: boolean;
|
|
7
8
|
isError: boolean;
|
|
@@ -10,6 +11,12 @@ export declare function useSessions(): {
|
|
|
10
11
|
fetchNextPage: (options?: import("@tanstack/query-core").FetchNextPageOptions) => Promise<import("@tanstack/query-core").InfiniteQueryObserverResult<import("@tanstack/query-core").InfiniteData<SessionsPage, unknown>, Error>>;
|
|
11
12
|
isFetchingNextPage: boolean;
|
|
12
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Resolves a session row by id. Looks in the main sessions list first; when
|
|
16
|
+
* the session is not listed there (e.g. otto orchestrator sessions, which are
|
|
17
|
+
* excluded from the default listing) it falls back to fetching the single
|
|
18
|
+
* session. The fallback query stays disabled for normally-listed sessions.
|
|
19
|
+
*/
|
|
13
20
|
export declare function useSession(sessionId: string): Session;
|
|
14
21
|
export declare function useCreateSession(): import("@tanstack/react-query").UseMutationResult<Session, Error, CreateSessionRequest, unknown>;
|
|
15
22
|
export declare function useUpdateSession(sessionId: string): import("@tanstack/react-query").UseMutationResult<Session, Error, UpdateSessionRequest, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSessions.d.ts","sourceRoot":"","sources":["../../src/hooks/useSessions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSessions.d.ts","sourceRoot":"","sources":["../../src/hooks/useSessions.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,YAAY,EACZ,MAAM,cAAc,CAAC;AAItB,eAAO,MAAM,gBAAgB,+BAAgC,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEnD,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,iBAAiB,qIAiBlE;AAED,wBAAgB,WAAW,CAAC,WAAW,CAAC,EAAE,iBAAiB;;;;;;;;EAgB1D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,WAU3C;AAED,wBAAgB,gBAAgB,qGAwB/B;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,oGAWjD;AAED,wBAAgB,mBAAmB;eAQrB,MAAM;cACP,OAAO;YA0BnB;AAED,wBAAgB,oBAAoB,uFAyBnC;AAED,wBAAgB,gBAAgB;;2BAS/B"}
|