@ottocode/web-sdk 0.1.300 → 0.1.301
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 +14313 -13671
- package/dist/components/index.js.map +19 -15
- package/dist/components/messages/ActionToolBox.d.ts.map +1 -1
- 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/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 +14534 -13889
- package/dist/index.js.map +19 -15
- 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"}
|
|
@@ -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;AA6YD,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"}
|
|
@@ -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
|