@ottocode/web-sdk 0.1.306 → 0.1.307
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/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/components/chat/ConfigModal.d.ts.map +1 -1
- package/dist/components/chat/InputSubagentsBar.d.ts +6 -0
- package/dist/components/chat/InputSubagentsBar.d.ts.map +1 -0
- package/dist/components/goals/GoalsSidebar.d.ts +6 -0
- package/dist/components/goals/GoalsSidebar.d.ts.map +1 -0
- package/dist/components/goals/GoalsSidebarToggle.d.ts +6 -0
- package/dist/components/goals/GoalsSidebarToggle.d.ts.map +1 -0
- package/dist/components/goals/index.d.ts +3 -0
- package/dist/components/goals/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6220 -4751
- package/dist/components/index.js.map +25 -13
- package/dist/components/messages/GoalStartNotice.d.ts +12 -0
- package/dist/components/messages/GoalStartNotice.d.ts.map +1 -0
- package/dist/components/messages/SubagentResultsNotice.d.ts +21 -0
- package/dist/components/messages/SubagentResultsNotice.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/renderers/GoalToolRenderer.d.ts +3 -0
- package/dist/components/messages/renderers/GoalToolRenderer.d.ts.map +1 -0
- package/dist/components/messages/renderers/SubagentToolRenderer.d.ts +3 -0
- package/dist/components/messages/renderers/SubagentToolRenderer.d.ts.map +1 -0
- package/dist/components/messages/renderers/index.d.ts.map +1 -1
- package/dist/components/settings/SettingsSidebar.d.ts.map +1 -1
- package/dist/components/subagents/SubagentFloatingViewer.d.ts +6 -0
- package/dist/components/subagents/SubagentFloatingViewer.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 +260 -63
- package/dist/hooks/index.js.map +9 -7
- package/dist/hooks/useAgents.d.ts +2 -1
- package/dist/hooks/useAgents.d.ts.map +1 -1
- package/dist/hooks/useChatComposer.d.ts +1 -0
- package/dist/hooks/useChatComposer.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +4 -0
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useGoals.d.ts +48 -0
- package/dist/hooks/useGoals.d.ts.map +1 -0
- package/dist/hooks/useSessionStream.d.ts.map +1 -1
- package/dist/index.js +6276 -4795
- package/dist/index.js.map +25 -13
- package/dist/lib/api-client/config.d.ts +3 -0
- package/dist/lib/api-client/config.d.ts.map +1 -1
- package/dist/lib/api-client/goals.d.ts +70 -0
- package/dist/lib/api-client/goals.d.ts.map +1 -0
- package/dist/lib/api-client/index.d.ts +35 -0
- package/dist/lib/api-client/index.d.ts.map +1 -1
- package/dist/lib/index.js +78 -1
- package/dist/lib/index.js.map +6 -5
- package/dist/stores/goalsPanelStore.d.ts +9 -0
- package/dist/stores/goalsPanelStore.d.ts.map +1 -0
- package/dist/stores/index.d.ts +2 -0
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +61 -9
- package/dist/stores/index.js.map +5 -3
- package/dist/stores/subagentViewerStore.d.ts +15 -0
- package/dist/stores/subagentViewerStore.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -62,7 +62,7 @@ export declare function useConfigTools(options?: UseAgentsOptions): import("@tan
|
|
|
62
62
|
tools: Array<{
|
|
63
63
|
name: string;
|
|
64
64
|
description?: string;
|
|
65
|
-
category: "first_class" | "loadable" | "core" | "filesystem" | "search" | "editing" | "shell" | "git" | "web" | "mcp" | "skill" | "research" | "custom" | "other";
|
|
65
|
+
category: "first_class" | "loadable" | "core" | "filesystem" | "search" | "editing" | "shell" | "git" | "web" | "mcp" | "skill" | "research" | "orchestration" | "custom" | "other";
|
|
66
66
|
source: "builtin" | "mcp" | "skill" | "custom";
|
|
67
67
|
activation?: "first_class" | "loadable" | "mcp";
|
|
68
68
|
required?: boolean;
|
|
@@ -150,6 +150,7 @@ export declare function useSetDefaultAgent(): import("@tanstack/react-query").Us
|
|
|
150
150
|
releaseToSend?: boolean;
|
|
151
151
|
fullWidthContent?: boolean;
|
|
152
152
|
autoCompactThresholdTokens?: number | null;
|
|
153
|
+
ottoEnabled?: boolean;
|
|
153
154
|
};
|
|
154
155
|
}, Error, string, unknown>;
|
|
155
156
|
export declare function getAgentToolCount(agent: AgentDetail | null | undefined): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAgents.d.ts","sourceRoot":"","sources":["../../src/hooks/useAgents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG9E,YAAY,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GAChB,MAAM,0BAA0B,CAAC;AAElC,UAAU,gBAAgB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useAgents.d.ts","sourceRoot":"","sources":["../../src/hooks/useAgents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG9E,YAAY,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GAChB,MAAM,0BAA0B,CAAC;AAElC,UAAU,gBAAgB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;sBAwH09qC,CAAC;oBAAyC,CAAC;;;sBAA2F,CAAC;oBAAyC,CAAC;;;sBAA0F,CAAC;oBAAyC,CAAC;;gBAAoD,CAAC;aAA2B,CAAC;;;;;;UA7F95rC;AAED,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;;;;;;;;;sBA2FiuwC,CAAC;oBAAyC,CAAC;;;sBAA2F,CAAC;oBAAyC,CAAC;;;sBAA0F,CAAC;oBAAyC,CAAC;;gBAAoD,CAAC;aAA2B,CAAC;;;;;UAjFxpxC;AAED,wBAAgB,cAAc,CAAC,OAAO,GAAE,gBAAqB;;;mBA+Ek21C,CAAC;;;kBAA6R,CAAC;gBAA0D,CAAC;aAA4B,CAAC;;;UArErx2C;AAED,wBAAgB,cAAc;;;;;;;;;sBAmE44zC,CAAC;oBAAyC,CAAC;;;sBAA2F,CAAC;oBAAyC,CAAC;;;sBAA0F,CAAC;oBAAyC,CAAC;;gBAAoD,CAAC;aAA2B,CAAC;;;;;;UAhEzw0C,MAAM;WAAS,gBAAgB;YAQtE;AAED,wBAAgB,cAAc;;;;;;;;;;;sBAsD+9tC,CAAC;oBAAyC,CAAC;;;sBAA2F,CAAC;oBAAyC,CAAC;;;sBAA0F,CAAC;oBAAyC,CAAC;;gBAAoD,CAAC;aAA2B,CAAC;;;;;;UA7C33uC,MAAM;YACJ,OAAO,GAAG,QAAQ;YAmB5B;AAED,wBAAgB,kBAAkB;;;;;;oBAuBs0F,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;;2BAb5wG;AAED,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,MAAM,CAQR"}
|
|
@@ -32,6 +32,7 @@ export declare function useChatComposer({ sessionId, defaultAgent, }?: UseChatCo
|
|
|
32
32
|
releaseToSend?: boolean;
|
|
33
33
|
fullWidthContent?: boolean;
|
|
34
34
|
autoCompactThresholdTokens?: number | null;
|
|
35
|
+
ottoEnabled?: boolean;
|
|
35
36
|
};
|
|
36
37
|
};
|
|
37
38
|
allModels: import("..").AllModelsResponse;
|
|
@@ -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;;;;;;;;;;;;;;;+
|
|
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;;;;;;;;;;;;;;;+BA6BG,MAAM;uCA+BD,OAAO;wCAgBN,MAAM;kCAUT,MAAM;6CAnBH,MAAM,YAAY,MAAM;EA+C7C"}
|
|
@@ -17,6 +17,7 @@ export declare function useConfig(): import("@tanstack/react-query").UseQueryRes
|
|
|
17
17
|
releaseToSend?: boolean;
|
|
18
18
|
fullWidthContent?: boolean;
|
|
19
19
|
autoCompactThresholdTokens?: number | null;
|
|
20
|
+
ottoEnabled?: boolean;
|
|
20
21
|
};
|
|
21
22
|
}, Error>;
|
|
22
23
|
export declare function useModels(provider?: string): import("@tanstack/react-query").UseQueryResult<{
|
|
@@ -57,6 +58,7 @@ export declare function useUpdateDefaults(): import("@tanstack/react-query").Use
|
|
|
57
58
|
releaseToSend?: boolean;
|
|
58
59
|
fullWidthContent?: boolean;
|
|
59
60
|
autoCompactThresholdTokens?: number | null;
|
|
61
|
+
ottoEnabled?: boolean;
|
|
60
62
|
};
|
|
61
63
|
}, Error, {
|
|
62
64
|
agent?: string;
|
|
@@ -74,6 +76,7 @@ export declare function useUpdateDefaults(): import("@tanstack/react-query").Use
|
|
|
74
76
|
releaseToSend?: boolean;
|
|
75
77
|
fullWidthContent?: boolean;
|
|
76
78
|
autoCompactThresholdTokens?: number | null;
|
|
79
|
+
ottoEnabled?: boolean;
|
|
77
80
|
scope?: "global" | "local";
|
|
78
81
|
}, {
|
|
79
82
|
previousConfig: {
|
|
@@ -95,6 +98,7 @@ export declare function useUpdateDefaults(): import("@tanstack/react-query").Use
|
|
|
95
98
|
releaseToSend?: boolean;
|
|
96
99
|
fullWidthContent?: boolean;
|
|
97
100
|
autoCompactThresholdTokens?: number | null;
|
|
101
|
+
ottoEnabled?: boolean;
|
|
98
102
|
};
|
|
99
103
|
};
|
|
100
104
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useConfig.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS;;;;;;;
|
|
1
|
+
{"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useConfig.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS;;;;;;;oBAoDpB,CAAD;kBACoB,CAAC;qBAA4B,CAAA;sBAE5C,CAAC;aAEwB,CAAC;eACzB,CAAC;qBACI,CAAA;kBACO,CAAC;kBACX,CAAC;qBAGV,CAAH;wBAEwB,CAAC;kCAEK,CAAC;mBACV,CAAC;;UA/DrB;AAED,wBAAgB,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM;;;;gBAsEm+C,CAAC;qBAA2B,CAAC;cAAoB,CAAC;kBAAwB,CAAC;YAAkB,CAAC;qBAA2B,CAAC;uBAA4B,CAAC;iBAAsB,CAAC;yBAA+B,CAAC;;;;;;UAhE3tD;AAED,wBAAgB,YAAY,0FAK3B;AAED,wBAAgB,iBAAiB;;;;;;oBAuDquJ,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;;;YAlDhqK,MAAM;eACH,MAAM;YACT,MAAM;mBACC,MAAM,GAAG,WAAW,GAAG,KAAK,GAAG,MAAM;iBACvC,OAAO;oBACJ,OAAO;qBACN,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO;YAChE,OAAO,GAAG,MAAM;cACd,OAAO;oBACD,OAAO;iBACV,MAAM;iBACN,OAAO;oBACJ,OAAO;uBACJ,OAAO;iCACG,MAAM,GAAG,IAAI;kBAC5B,OAAO;YACb,QAAQ,GAAG,OAAO;;;;;;;;;wBAQxB,CAAD;sBACoB,CAAC;yBAA4B,CAAA;0BAE5C,CAAC;iBAEwB,CAAC;mBACzB,CAAC;yBACI,CAAA;sBACO,CAAC;sBACX,CAAC;yBAGV,CAAH;4BAEwB,CAAC;sCAEK,CAAC;uBACV,CAAC;;;GAQrB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { GoalStatus, GoalTaskStatus, SubagentStatus } from '../lib/api-client';
|
|
2
|
+
export declare const goalQueryKey: (sessionId: string | undefined) => string[];
|
|
3
|
+
export declare const subagentsQueryKey: (sessionId: string | undefined) => string[];
|
|
4
|
+
export declare function useOttoEnabled(): boolean;
|
|
5
|
+
export declare function useSessionGoal(sessionId: string | undefined): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
goal: import("..").Goal | null;
|
|
7
|
+
}, Error>;
|
|
8
|
+
export declare function useCreateSessionGoal(sessionId: string | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
9
|
+
goal: import("..").Goal;
|
|
10
|
+
}, Error, {
|
|
11
|
+
title: string;
|
|
12
|
+
tasks?: string[];
|
|
13
|
+
}, unknown>;
|
|
14
|
+
export declare function useUpdateGoal(sessionId: string | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
15
|
+
goal: import("..").Goal;
|
|
16
|
+
}, Error, {
|
|
17
|
+
goalId: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
status?: GoalStatus;
|
|
20
|
+
}, unknown>;
|
|
21
|
+
export declare function useAddGoalTasks(sessionId: string | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
22
|
+
goal: import("..").Goal;
|
|
23
|
+
}, Error, {
|
|
24
|
+
goalId: string;
|
|
25
|
+
tasks: string[];
|
|
26
|
+
}, unknown>;
|
|
27
|
+
export declare function useUpdateGoalTask(sessionId: string | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
28
|
+
task: import("..").GoalTask;
|
|
29
|
+
}, Error, {
|
|
30
|
+
goalId: string;
|
|
31
|
+
taskId: string;
|
|
32
|
+
content?: string;
|
|
33
|
+
status?: GoalTaskStatus;
|
|
34
|
+
note?: string | null;
|
|
35
|
+
}, unknown>;
|
|
36
|
+
export declare function useSessionSubagents(sessionId: string | undefined, status?: SubagentStatus): import("@tanstack/react-query").UseQueryResult<{
|
|
37
|
+
subagents: import("..").Subagent[];
|
|
38
|
+
}, Error>;
|
|
39
|
+
/**
|
|
40
|
+
* Starts the session's goal via the server start endpoint, which injects an
|
|
41
|
+
* automated tagged kickoff into the main session and marks the goal started.
|
|
42
|
+
*/
|
|
43
|
+
export declare function useStartGoal(sessionId: string | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
44
|
+
goal: import("..").Goal;
|
|
45
|
+
}, Error, {
|
|
46
|
+
goalId: string;
|
|
47
|
+
}, unknown>;
|
|
48
|
+
//# sourceMappingURL=useGoals.d.ts.map
|
|
@@ -0,0 +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,GAAG,SAAS;;;YAIhD,MAAM;YACN,MAAM;aACL,UAAU;YAUrB;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;;;YAG7B,MAAM;WAAS,MAAM,EAAE;YAMtD;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;;;YAIpD,MAAM;YACN,MAAM;cACJ,MAAM;aACP,cAAc;WAChB,MAAM,GAAG,IAAI;YAWtB;AAED,wBAAgB,mBAAmB,CAClC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,CAAC,EAAE,cAAc;;UAgBvB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS;;;YAG1B,MAAM;YASrC"}
|
|
@@ -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,QA49Dd"}
|