Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/hanzo-desktop/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/hanzo-desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hanzo-desktop"
version = "1.1.57"
version = "1.1.58"
description = "A first class Desktop application to interact with Hanzo Node"
authors = ["Hanzo AI, Inc. <dev@hanzo.ai>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hanzo/source",
"version": "1.1.57",
"version": "1.1.58",
"private": true,
"packageManager": "pnpm@11.24.0",
"license": "SEE LICENSE IN LICENSE",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/dist/Chat.js b/dist/Chat.js
index 0489151..2a0527b 100644
index dca4365..46e2461 100644
--- a/dist/Chat.js
+++ b/dist/Chat.js
@@ -869,10 +869,12 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -876,10 +876,12 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
};
const listed = mind.models;
const filteredListed = useMemo(() => {
Expand All @@ -17,7 +17,7 @@ index 0489151..2a0527b 100644
const models = useMemo(() => filteredListed.filter(chats), [filteredListed]);
// EVERY MODEL THE GATEWAY LISTS is offered here, through the one picker, and
// read from the catalog's own fields (`parseModels`): its class, its family.
@@ -884,7 +886,8 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -891,7 +893,8 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
const wanted = mind.model;
// A model the catalog lists is sent as picked, whatever it answers with; only
// a name the catalog does not list falls to one that converses (`served`).
Expand All @@ -27,7 +27,7 @@ index 0489151..2a0527b 100644
const model = persona?.model || (rowOf(sent) ? sent : served(models, sent));
// THE PLAN'S USAGE (lib/limits.ts), kept current by every chat answer's
// headers and read again whenever a send settles, below. The pane draws no
@@ -1105,7 +1108,7 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -1112,7 +1115,7 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
// identity changes on every `setMessages` — `useChat` closes over `messages` —
// so an effect depending on it re-runs after each streamed token.
const latest = useRef(send);
Expand All @@ -36,7 +36,7 @@ index 0489151..2a0527b 100644
// THE COMPOSER'S DRAFT IS HELD HERE, so an arriving question can be typed into
// it. `Chat` owns a draft of its own and spreads `composer` after it, so
// passing value/onChange/onSend takes that ownership over rather than fighting
@@ -1218,10 +1221,15 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -1225,10 +1228,15 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
const [anonBusy, setAnonBusy] = useState(false);
const [anonGateOpen, setAnonGateOpen] = useState(false);
const anonCountRef = useRef(0);
Expand All @@ -55,7 +55,7 @@ index 0489151..2a0527b 100644
try {
sessionStorage.setItem("hanzo.build.prompt", clean);
const shortTitle = clean.length > 48 ? `${clean.slice(0, 47).trimEnd()}…` : clean;
@@ -1341,7 +1349,10 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -1348,7 +1356,10 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
if (queued === null || resolving)
return;
setQueued(null);
Expand All @@ -67,7 +67,7 @@ index 0489151..2a0527b 100644
}, [queued, resolving]);
const streaming = useRef(false);
streaming.current = chat.streaming;
@@ -1442,16 +1453,14 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -1449,16 +1460,14 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
* it leaves its place in the thread and is asked at the end, so it is asked
* once and not twice.
*/
Expand All @@ -88,7 +88,7 @@ index 0489151..2a0527b 100644
if (!streaming.current && (again || resolvingNow.current || turns.current.some(blank))) {
apply.current((held) => held.filter((one) => one.id !== again && !blank(one)));
if (again)
@@ -1459,10 +1468,10 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -1466,10 +1475,10 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
const { [again]: _gone, ...rest } = all;
return rest;
});
Expand All @@ -101,7 +101,7 @@ index 0489151..2a0527b 100644
}, [anonymous, sendAnon]);
// THE WAYS PAST A PAUSE. The upgrade opens the plans over the app; a page opens; Continue
// with credits turns the org's choice on and asks the last question again on
@@ -1931,6 +1940,28 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -1974,6 +1983,28 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
setPreparing(t("Uploading {files}", { files: names(holding, t) }));
const landedFiles = (await Promise.all(holding.map(landed))).filter((f) => !!f);
spend(at);
Expand Down Expand Up @@ -130,7 +130,7 @@ index 0489151..2a0527b 100644
const attached = landedFiles.map(refOf);
const reused = earlier.filter((f) => !attached.some((a) => a.id === f.id));
const all = [...attached, ...reused];
@@ -1993,6 +2024,9 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -2036,6 +2067,9 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
const failure = (question) => {
const failed = failures[question.id];
const text = words(question.content);
Expand All @@ -140,7 +140,7 @@ index 0489151..2a0527b 100644
const whom = addressed(text, cast);
const wrong = failed?.error ?? null;
const how = wrong ? refusalOf(wrong) : null;
@@ -2017,7 +2051,7 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
@@ -2060,7 +2094,7 @@ function Thread({ placeholder = message(), initial, anonymous = false, settled =
: how?.provider
? t("{model} is unavailable right now.", { model: familyOf(model) || nameOf(model, listed) })
: plainly(wrong, t("this conversation"), t);
Expand Down
38 changes: 19 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading