diff --git a/assistant/package.json b/assistant/package.json index 872de797..f6237c26 100644 --- a/assistant/package.json +++ b/assistant/package.json @@ -1,6 +1,6 @@ { "name": "@petercatai/assistant", - "version": "1.0.1", + "version": "1.0.3", "description": "Peter Cat Assistant Application", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", @@ -16,7 +16,7 @@ }, "scripts": { "start": "npm run dev", - "dev": "npm run build:css & dumi dev", + "dev": "dumi dev", "build:css": "tailwindcss -i tailwind.css -o ./src/style.css", "build": "npm run build:css && cp ./src/style.css ./.dumi/tmp/style.css && father build", "build:watch": "father dev", @@ -30,9 +30,6 @@ }, "authors": [], "license": "MIT", - "files": [ - "dist" - ], "sideEffects": [ "**/*.css" ], diff --git a/assistant/src/icons/ThunderIcon.tsx b/assistant/src/icons/ThunderIcon.tsx index 113fd8a2..5c3800a9 100644 --- a/assistant/src/icons/ThunderIcon.tsx +++ b/assistant/src/icons/ThunderIcon.tsx @@ -9,7 +9,7 @@ export const ThunderIcon = () => { xmlns="http://www.w3.org/2000/svg" > ( xmlns="http://www.w3.org/2000/svg" > diff --git a/client/public/icons/ErrorBadgeIcon.tsx b/client/public/icons/ErrorBadgeIcon.tsx index a57c95f9..34a2cbfe 100644 --- a/client/public/icons/ErrorBadgeIcon.tsx +++ b/client/public/icons/ErrorBadgeIcon.tsx @@ -7,8 +7,8 @@ const ErrorBadgeIcon = () => ( xmlns="http://www.w3.org/2000/svg" > diff --git a/client/public/icons/HomeIcon.tsx b/client/public/icons/HomeIcon.tsx index 6e38447b..f23c444a 100644 --- a/client/public/icons/HomeIcon.tsx +++ b/client/public/icons/HomeIcon.tsx @@ -7,8 +7,8 @@ const HomeIcon = () => ( xmlns="http://www.w3.org/2000/svg" > diff --git a/client/public/icons/MinusCircleIcon.tsx b/client/public/icons/MinusCircleIcon.tsx index 81c1918f..fcf43e09 100644 --- a/client/public/icons/MinusCircleIcon.tsx +++ b/client/public/icons/MinusCircleIcon.tsx @@ -7,8 +7,8 @@ const MinusCircleIcon = () => ( xmlns="http://www.w3.org/2000/svg" > diff --git a/client/public/icons/PlayIcon.tsx b/client/public/icons/PlayIcon.tsx index 30e92672..c3be32ca 100644 --- a/client/public/icons/PlayIcon.tsx +++ b/client/public/icons/PlayIcon.tsx @@ -8,9 +8,9 @@ const PlayIcon = () => ( focusable="false" > ); diff --git a/client/public/icons/RefreshIcon.tsx b/client/public/icons/RefreshIcon.tsx index 3849d936..c4aca8c9 100644 --- a/client/public/icons/RefreshIcon.tsx +++ b/client/public/icons/RefreshIcon.tsx @@ -7,8 +7,8 @@ const RefreshIcon = () => ( xmlns="http://www.w3.org/2000/svg" > diff --git a/client/yarn.lock b/client/yarn.lock index ed5fe836..689a2cd8 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -2656,10 +2656,10 @@ resolved "https://registry.npmjs.org/@panva/hkdf/-/hkdf-1.2.1.tgz#cb0d111ef700136f4580349ff0226bf25c853f23" integrity sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw== -"@petercatai/assistant@^1.0.0": - version "1.0.0" - resolved "https://registry.npmjs.org/@petercatai/assistant/-/assistant-1.0.0.tgz#cb05d5247126ade08a1fedaf1999f406e3feaf35" - integrity sha512-7BpHBHfV0FcWw3PFmlxhyJVQ9287RKASKOcYDc8qtbrosa2tfifNGFM9MEvVbqbJr+O2YniBbPJOyRwgGijDEA== +"@petercatai/assistant@^1.0.2": + version "1.0.2" + resolved "https://registry.npmjs.org/@petercatai/assistant/-/assistant-1.0.2.tgz#2f824180097eebcacef7106089e3854adee5ca04" + integrity sha512-EG3KAmKmK8VXiH/fbetxz8fB8vBMvfrAdX05+6E5QnRosV/fEMv+qc9PGxVF7pTlHayI3FcHX2Qexf4HSDss/Q== dependencies: "@ant-design/icons" "^5.3.5" "@ant-design/pro-chat" "^1.9.0" diff --git a/server/agent/base.py b/server/agent/base.py index bfb4f0fc..8698259a 100644 --- a/server/agent/base.py +++ b/server/agent/base.py @@ -161,6 +161,7 @@ async def run_stream_chat(self, input_data: ChatData) -> AsyncIterator[str]: yield f"data: {json_output}\n\n" elif kind == "on_tool_end": + children_value = event["data"].get("output", {}) if isinstance(children_value, str): try: parsed_children_value = json.loads(children_value)