reifyui 0.16.1 → 0.18.0
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/README.md +1 -1
- package/dist/agent-chat.cjs +490 -44
- package/dist/agent-chat.cjs.map +1 -1
- package/dist/agent-chat.d.ts +40 -5
- package/dist/agent-chat.js +216 -19
- package/dist/agent-chat.js.map +1 -1
- package/dist/{chunk-UP3CNKZR.js → chunk-Y2MBOXQC.js} +283 -28
- package/dist/chunk-Y2MBOXQC.js.map +1 -0
- package/dist/index.cjs +269 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/agent-chat/artifacts.jsx +160 -19
- package/src/agent-chat/components.jsx +28 -15
- package/src/agent-chat/index.d.ts +40 -5
- package/src/agent-chat/index.js +3 -3
- package/src/agent-chat/tools.js +177 -11
- package/src/components/FilePreview.jsx +3 -2
- package/styles/agent-chat.css +45 -7
- package/dist/chunk-UP3CNKZR.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3,11 +3,12 @@ import {
|
|
|
3
3
|
FileCard,
|
|
4
4
|
FilePreview,
|
|
5
5
|
FileTypeIcon,
|
|
6
|
+
bytesLabel,
|
|
6
7
|
extOf,
|
|
7
8
|
newTurn,
|
|
8
9
|
reduceTurn,
|
|
9
10
|
turnFromMessage
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Y2MBOXQC.js";
|
|
11
12
|
import {
|
|
12
13
|
createResponsesDispatcher,
|
|
13
14
|
pumpResponsesStream,
|
|
@@ -716,14 +717,6 @@ var Chip = forwardRef(function Chip2(props, ref) {
|
|
|
716
717
|
] });
|
|
717
718
|
});
|
|
718
719
|
|
|
719
|
-
// src/format.js
|
|
720
|
-
function bytesLabel(n) {
|
|
721
|
-
if (n == null) return "";
|
|
722
|
-
if (n < 1024) return `${n} B`;
|
|
723
|
-
if (n < 1048576) return `${Math.round(n / 1024)} KB`;
|
|
724
|
-
return `${(n / 1048576).toFixed(1)} MB`;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
720
|
// src/components/ChatPanel.jsx
|
|
728
721
|
import { Fragment as Fragment3, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
729
722
|
var POLL_MS = 3e3;
|