@ottocode/web-sdk 0.1.300 → 0.1.302
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/btw/BtwFloatingChat.d.ts +2 -0
- package/dist/components/btw/BtwFloatingChat.d.ts.map +1 -0
- package/dist/components/chat/ChatInput.d.ts +5 -0
- package/dist/components/chat/ChatInput.d.ts.map +1 -1
- package/dist/components/chat/ChatInputContainer.d.ts.map +1 -1
- package/dist/components/chat/NewSessionLanding.d.ts.map +1 -1
- package/dist/components/file-browser/FileViewerPanel.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +10774 -9815
- package/dist/components/index.js.map +23 -17
- package/dist/components/messages/ActionToolBox.d.ts.map +1 -1
- package/dist/components/messages/AssistantMessageGroup.d.ts +1 -0
- package/dist/components/messages/AssistantMessageGroup.d.ts.map +1 -1
- package/dist/components/messages/CompactionSummaryBox.d.ts +9 -0
- package/dist/components/messages/CompactionSummaryBox.d.ts.map +1 -0
- package/dist/components/messages/MessageThread.d.ts +1 -0
- package/dist/components/messages/MessageThread.d.ts.map +1 -1
- package/dist/components/messages/MessageThreadContainer.d.ts +1 -0
- package/dist/components/messages/MessageThreadContainer.d.ts.map +1 -1
- package/dist/components/messages/UserMessageGroup.d.ts.map +1 -1
- package/dist/components/messages/compactionSummary.d.ts +15 -0
- package/dist/components/messages/compactionSummary.d.ts.map +1 -0
- package/dist/components/session-files/SessionFilesDiffPanel.d.ts.map +1 -1
- package/dist/components/ui/CodeMirrorViewer.d.ts +3 -1
- package/dist/components/ui/CodeMirrorViewer.d.ts.map +1 -1
- package/dist/hooks/index.js +5 -1
- package/dist/hooks/index.js.map +3 -3
- package/dist/hooks/useAgents.d.ts.map +1 -1
- package/dist/hooks/useSessionStream.d.ts.map +1 -1
- package/dist/index.js +14730 -13768
- package/dist/index.js.map +23 -17
- package/dist/lib/fileSelectionContext.d.ts +48 -0
- package/dist/lib/fileSelectionContext.d.ts.map +1 -0
- package/dist/stores/btwStore.d.ts +24 -0
- package/dist/stores/btwStore.d.ts.map +1 -0
- package/dist/stores/fileSelectionStore.d.ts +16 -0
- package/dist/stores/fileSelectionStore.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 +81 -10
- package/dist/stores/index.js.map +5 -3
- package/dist/types/api.d.ts +3 -1
- package/dist/types/api.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionToolBox.d.ts","sourceRoot":"","sources":["../../../src/components/messages/ActionToolBox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionToolBox.d.ts","sourceRoot":"","sources":["../../../src/components/messages/ActionToolBox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAqLnD,UAAU,kBAAkB;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,kBAAkB,+BAyS5E"}
|
|
@@ -12,6 +12,7 @@ interface AssistantMessageGroupProps {
|
|
|
12
12
|
onRetry?: () => void;
|
|
13
13
|
onCompact?: () => void;
|
|
14
14
|
isThreadScrolling?: boolean;
|
|
15
|
+
previousUserMessage?: Message;
|
|
15
16
|
}
|
|
16
17
|
export declare const AssistantMessageGroup: import("react").NamedExoticComponent<AssistantMessageGroupProps>;
|
|
17
18
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantMessageGroup.d.ts","sourceRoot":"","sources":["../../../src/components/messages/AssistantMessageGroup.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"AssistantMessageGroup.d.ts","sourceRoot":"","sources":["../../../src/components/messages/AssistantMessageGroup.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,iBAAiB,CAAC;AAmB5D,UAAU,0BAA0B;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,uBAAuB,EAAE,OAAO,CAAC;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAsKD,eAAO,MAAM,qBAAqB,kEAgqBjC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MessagePart } from '../../types/api';
|
|
2
|
+
interface CompactionSummaryBoxProps {
|
|
3
|
+
part: MessagePart;
|
|
4
|
+
showLine: boolean;
|
|
5
|
+
compact?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function CompactionSummaryBox({ part, showLine, compact, }: CompactionSummaryBoxProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=CompactionSummaryBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompactionSummaryBox.d.ts","sourceRoot":"","sources":["../../../src/components/messages/CompactionSummaryBox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAanD,UAAU,yBAAyB;IAClC,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,oBAAoB,CAAC,EACpC,IAAI,EACJ,QAAQ,EACR,OAAO,GACP,EAAE,yBAAyB,+BA2O3B"}
|
|
@@ -7,6 +7,7 @@ interface MessageThreadProps {
|
|
|
7
7
|
compact?: boolean;
|
|
8
8
|
disableAutoScroll?: boolean;
|
|
9
9
|
onSelectSession?: (sessionId: string) => void;
|
|
10
|
+
footerBottomPaddingClass?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const MessageThread: import("react").NamedExoticComponent<MessageThreadProps>;
|
|
12
13
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageThread.d.ts","sourceRoot":"","sources":["../../../src/components/messages/MessageThread.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,OAAO,EAAe,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAmBrE,UAAU,kBAAkB;IAC3B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageThread.d.ts","sourceRoot":"","sources":["../../../src/components/messages/MessageThread.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,OAAO,EAAe,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAmBrE,UAAU,kBAAkB;IAC3B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,wBAAwB,CAAC,EAAE,MAAM,CAAC;CAClC;AAgZD,eAAO,MAAM,aAAa,0DAuZxB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface MessageThreadContainerProps {
|
|
2
2
|
sessionId: string;
|
|
3
3
|
onSelectSession?: (sessionId: string) => void;
|
|
4
|
+
footerBottomPaddingClass?: string;
|
|
4
5
|
}
|
|
5
6
|
export declare const MessageThreadContainer: import("react").NamedExoticComponent<MessageThreadContainerProps>;
|
|
6
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageThreadContainer.d.ts","sourceRoot":"","sources":["../../../src/components/messages/MessageThreadContainer.tsx"],"names":[],"mappings":"AAUA,UAAU,2BAA2B;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageThreadContainer.d.ts","sourceRoot":"","sources":["../../../src/components/messages/MessageThreadContainer.tsx"],"names":[],"mappings":"AAUA,UAAU,2BAA2B;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,wBAAwB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,eAAO,MAAM,sBAAsB,mEAiBjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMessageGroup.d.ts","sourceRoot":"","sources":["../../../src/components/messages/UserMessageGroup.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserMessageGroup.d.ts","sourceRoot":"","sources":["../../../src/components/messages/UserMessageGroup.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAU/C,UAAU,qBAAqB;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CAChC;AAkBD,eAAO,MAAM,gBAAgB,6DAiX5B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Message, MessagePart } from '../../types/api';
|
|
2
|
+
export declare function getMessagePartText(part: MessagePart): string;
|
|
3
|
+
export declare function isCompactSlashCommand(content: string): boolean;
|
|
4
|
+
export declare function getUserMessageText(message: Message | undefined): string;
|
|
5
|
+
export declare function isCompactionSummaryText(text: string): boolean;
|
|
6
|
+
export declare function summarizeCompactionText(text: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns true when a text part should use the compact compaction summary box.
|
|
9
|
+
*/
|
|
10
|
+
export declare function shouldRenderCompactionSummaryBox(args: {
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
part: MessagePart;
|
|
13
|
+
previousUserMessage?: Message;
|
|
14
|
+
}): boolean;
|
|
15
|
+
//# sourceMappingURL=compactionSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compactionSummary.d.ts","sourceRoot":"","sources":["../../../src/components/messages/compactionSummary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI5D,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAqB5D;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAKvE;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO7D;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAY5D;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,IAAI,EAAE;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,OAAO,CAWV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionFilesDiffPanel.d.ts","sourceRoot":"","sources":["../../../src/components/session-files/SessionFilesDiffPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"SessionFilesDiffPanel.d.ts","sourceRoot":"","sources":["../../../src/components/session-files/SessionFilesDiffPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAmK5D,UAAU,0BAA0B;IACnC,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,kEAqPhC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CodeMirrorTextSelection } from '../../lib/fileSelectionContext';
|
|
1
2
|
export type CodeMirrorLineTone = 'add' | 'remove' | 'primary';
|
|
2
3
|
type CodeMirrorLineNumberFormatter = (lineNumber: number) => string;
|
|
3
4
|
interface CodeMirrorViewerProps {
|
|
@@ -11,7 +12,8 @@ interface CodeMirrorViewerProps {
|
|
|
11
12
|
scrollToEndSignal?: string | number;
|
|
12
13
|
disableMarkdownSyntax?: boolean;
|
|
13
14
|
lineNumberFormatter?: CodeMirrorLineNumberFormatter;
|
|
15
|
+
onSelectionChange?: (selection: CodeMirrorTextSelection | null) => void;
|
|
14
16
|
}
|
|
15
|
-
export declare function CodeMirrorViewer({ content, path, className, highlightedLines, highlightTone, lineTones, scrollToLine, scrollToEndSignal, disableMarkdownSyntax, lineNumberFormatter, }: CodeMirrorViewerProps): import("react").JSX.Element;
|
|
17
|
+
export declare function CodeMirrorViewer({ content, path, className, highlightedLines, highlightTone, lineTones, scrollToLine, scrollToEndSignal, disableMarkdownSyntax, lineNumberFormatter, onSelectionChange, }: CodeMirrorViewerProps): import("react").JSX.Element;
|
|
16
18
|
export {};
|
|
17
19
|
//# sourceMappingURL=CodeMirrorViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeMirrorViewer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/CodeMirrorViewer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeMirrorViewer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/CodeMirrorViewer.tsx"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC9D,KAAK,6BAA6B,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;AAEpE,UAAU,qBAAqB;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,mBAAmB,CAAC,EAAE,6BAA6B,CAAC;IACpD,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,uBAAuB,GAAG,IAAI,KAAK,IAAI,CAAC;CACxE;AA0SD,wBAAgB,gBAAgB,CAAC,EAChC,OAAO,EACP,IAAI,EACJ,SAAS,EACT,gBAAgB,EAChB,aAAyB,EACzB,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,qBAA6B,EAC7B,mBAAmB,EACnB,iBAAiB,GACjB,EAAE,qBAAqB,+BAoLvB"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -4081,6 +4081,7 @@ ${bestEffortUnescapeJsonString(rawTail)}`;
|
|
|
4081
4081
|
if (!callId)
|
|
4082
4082
|
return;
|
|
4083
4083
|
const payloadName = getToolEventName(payload);
|
|
4084
|
+
const payloadMessageId = typeof payload?.messageId === "string" ? payload.messageId : null;
|
|
4084
4085
|
const payloadStepIndex = typeof payload?.stepIndex === "number" ? payload.stepIndex : null;
|
|
4085
4086
|
const payloadResult = payload?.result;
|
|
4086
4087
|
const payloadArtifact = payload?.artifact;
|
|
@@ -4091,6 +4092,9 @@ ${bestEffortUnescapeJsonString(rawTail)}`;
|
|
|
4091
4092
|
let changed = false;
|
|
4092
4093
|
const now = Date.now();
|
|
4093
4094
|
const nextMessages = oldMessages.map((message) => {
|
|
4095
|
+
if (payloadMessageId && message.id !== payloadMessageId) {
|
|
4096
|
+
return message;
|
|
4097
|
+
}
|
|
4094
4098
|
if (!message.parts?.length)
|
|
4095
4099
|
return message;
|
|
4096
4100
|
let messageChanged = false;
|
|
@@ -7982,4 +7986,4 @@ export {
|
|
|
7982
7986
|
getAgentToolCount
|
|
7983
7987
|
};
|
|
7984
7988
|
|
|
7985
|
-
//# debugId=
|
|
7989
|
+
//# debugId=7F6554123FAE14B564756E2164756E21
|